igeom/trimesh.h
Go to the documentation of this file.00001 /* 00002 Crystal Space 3D engine 00003 Copyright (C) 2000-2007 by Jorrit Tyberghein 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public 00016 License along with this library; if not, write to the Free 00017 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00018 */ 00019 00020 #ifndef __CS_IGEOM_TRIMESH_H__ 00021 #define __CS_IGEOM_TRIMESH_H__ 00022 00023 #include "csutil/scf_interface.h" 00024 00025 class csFlags; 00026 00037 enum 00038 { 00047 CS_TRIMESH_CLOSED = 1, 00048 00057 CS_TRIMESH_NOTCLOSED = 2, 00058 00067 CS_TRIMESH_CONVEX = 4, 00068 00077 CS_TRIMESH_NOTCONVEX = 8, 00078 00082 CS_TRIMESH_DEFORMABLE = 16 00083 }; 00086 class csVector3; 00087 struct csTriangle; 00088 00112 struct iTriangleMesh : public virtual iBase 00113 { 00114 SCF_INTERFACE(iTriangleMesh, 1, 0, 0); 00116 virtual size_t GetVertexCount () = 0; 00118 virtual csVector3* GetVertices () = 0; 00120 virtual size_t GetTriangleCount () = 0; 00122 virtual csTriangle* GetTriangles () = 0; 00127 virtual void Lock () = 0; 00131 virtual void Unlock () = 0; 00132 00147 virtual csFlags& GetFlags () = 0; 00148 00154 virtual uint32 GetChangeNumber () const = 0; 00155 }; 00156 00159 #endif // __CS_IGEOM_TRIMESH_H__ 00160
Generated for Crystal Space 2.0 by doxygen 1.6.1