00001 /* 00002 ----------------------------------------------------------------------------- 00003 This source file is part of OGRE 00004 (Object-oriented Graphics Rendering Engine) 00005 For the latest info, see http://ogre.sourceforge.net/ 00006 00007 Copyright © 2000-2002 The OGRE Team 00008 Also see acknowledgements in Readme.html 00009 00010 This program is free software; you can redistribute it and/or modify it under 00011 the terms of the GNU Lesser General Public License as published by the Free Software 00012 Foundation; either version 2 of the License, or (at your option) any later 00013 version. 00014 00015 This program is distributed in the hope that it will be useful, but WITHOUT 00016 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00017 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. 00018 00019 You should have received a copy of the GNU Lesser General Public License along with 00020 this program; if not, write to the Free Software Foundation, Inc., 59 Temple 00021 Place - Suite 330, Boston, MA 02111-1307, USA, or go to 00022 http://www.gnu.org/copyleft/lesser.txt. 00023 ----------------------------------------------------------------------------- 00024 */ 00025 #ifndef __StaticFaceGroup_H__ 00026 #define __StaticFaceGroup_H__ 00027 00028 #include "OgrePrerequisites.h" 00029 00030 #include "OgreVector3.h" 00031 #include "OgrePlane.h" 00032 #include "OgrePatchSurface.h" 00033 00034 namespace Ogre { 00035 00037 enum FaceGroupType { 00038 FGT_FACE_LIST, 00039 FGT_PATCH, 00040 FGT_UNKNOWN 00041 }; 00042 00061 struct StaticFaceGroup { 00062 // Type of face group. 00063 FaceGroupType fType; 00064 00066 bool isSky; 00067 00071 int vertexStart; 00072 00077 int numVertices; 00078 00086 int elementStart; 00087 00091 int numElements; 00092 00097 int materialHandle; 00098 00099 Plane plane; 00100 00102 PatchSurface* patchSurf; 00103 00104 00105 friend std::ostream& operator<<(std::ostream& o, StaticFaceGroup& s) 00106 { 00107 o << "StaticFaceGroup("; 00108 if (s.fType == FGT_FACE_LIST) 00109 { 00110 o << "faceList, numVertices=" << s.numVertices << ", vertexStart=" << s.vertexStart; 00111 o << ", numElements=" << s.numElements << ", elementStart=" << s.elementStart; 00112 o << ", normal=" << s.plane.normal; 00113 } 00114 else if (s.fType == FGT_PATCH) 00115 { 00116 o << "bezierPatch, numVertices=" << s.numVertices << ", vertexStart=" << s.vertexStart; 00117 // TODO 00118 } 00119 00120 o << ", materialHandle=" << s.materialHandle; 00121 o << ")"; 00122 00123 return o; 00124 } 00125 00126 00127 }; 00128 00129 } // namespace 00130 00131 #endif
Copyright © 2002 by The OGRE Team