imesh/clothmesh.h
00001 /* 00002 Cloth Mesh Object Interface 00003 Copyl3ft (C) 2002 by Charles Quarra 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_IMESH_CLOTHMESH_H__ 00021 #define __CS_IMESH_CLOTHMESH_H__ 00022 00023 #include "csutil/scf.h" 00024 00025 class csVector3; 00026 class csVector2; 00027 class csColor; 00028 class csBox3; 00029 struct csTriangle; 00030 00031 struct iMaterialWrapper; 00032 00033 SCF_VERSION (iClothMeshState, 0, 0, 1); 00034 00038 struct iClothMeshState : public iBase 00039 { 00041 virtual void SetMaterialWrapper (iMaterialWrapper* material) = 0; 00043 virtual iMaterialWrapper* GetMaterialWrapper () const = 0; 00045 virtual void SetMixMode (uint mode) = 0; 00047 virtual uint GetMixMode () const = 0; 00048 00050 virtual void SetLighting (bool l) = 0; 00052 virtual bool IsLighting () const = 0; 00054 virtual void SetColor (const csColor& col) = 0; 00056 virtual csColor GetColor () const = 0; 00062 virtual void SetManualColors (bool m) = 0; 00064 virtual bool IsManualColors () const = 0; 00065 }; 00066 00067 SCF_VERSION (iClothFactoryState, 0, 0, 1); 00068 00072 struct iClothFactoryState : public iBase 00073 { 00075 virtual void SetMaterialWrapper (iMaterialWrapper* material) = 0; 00077 virtual iMaterialWrapper* GetMaterialWrapper () const = 0; 00078 00080 virtual void SetVertexCount (int n) = 0; 00082 virtual int GetVertexCount () const = 0; 00088 virtual csVector3* GetVertices () = 0; 00094 virtual csVector2* GetTexels () = 0; 00102 virtual csVector3* GetNormals () = 0; 00103 00105 virtual void SetTriangleCount (int n) = 0; 00107 virtual int GetTriangleCount () const = 0; 00113 virtual csTriangle* GetTriangles () = 0; 00120 virtual csColor* GetColors () = 0; 00121 00128 virtual void Invalidate () = 0; 00129 00133 virtual void CalculateNormals () = 0; 00134 00138 virtual void GenerateFabric ( uint Xsize , uint Ysize ) = 0; 00139 }; 00140 00141 #endif // __CS_IMESH_CLOTHMESH_H__ 00142
Generated for Crystal Space by doxygen 1.2.18