- Timestamp:
- 09/28/06 17:49:37 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GTGeometry/include/GeoLodStripsLibrary.h
r1090 r1526 34 34 typedef struct 35 35 { 36 unsigned long strip; 37 char position; 38 char vertexRepetition; 39 char edgeRepetition; 36 unsigned long strip; // change this to uint32 37 char position; 38 char vertexRepetition; 39 char edgeRepetition; 40 char obligatory; 40 41 } LODRegisterType; 41 42 42 43 typedef struct 43 44 { 44 float 45 float Vertex[3]; 45 46 SmallInt Next; 46 47 } VertexType; … … 130 131 131 132 // Copa STL vectors to C arrays. 132 void CopyVectors2Arrays( );133 void CopyVectors2Arrays(void); 133 134 134 135 // Loads Mesh. 135 136 void LoadStripMesh(const LodStripsLibraryData *, Mesh *geomesh); 136 137 137 Geometry::CREATEINDEXDATAFUNC create_index_data_func;138 // Geometry::CREATEINDEXDATAFUNC create_index_data_func; 138 139 139 140 // Strips vector. … … 146 147 //Number of strips in each submesh 147 148 int* mStripsSubmesh; 149 bool delete_indexdata; 150 int *submesh_x_strip; 151 Real lodFactor; 152 IndexData *dataRetrievalInterface; 153 uint32 current_triangle_count; 148 154 149 155 public: 150 156 151 IndexData * dataRetrievalInterface;157 IndexData *GetIndexDataInterface(void){ return dataRetrievalInterface; } 152 158 153 159 /** Constructor, receives as a parameter the name of the file 154 160 * including the multiresolution object. 155 161 */ 156 LodStripsLibrary(const LodStripsLibraryData *, Mesh *geomesh, CREATEINDEXDATAFUNC idfun=NULL);162 LodStripsLibrary(const LodStripsLibraryData *, Mesh *geomesh, IndexData * userindexdata = NULL); 157 163 158 164 /// Destructor. … … 182 188 uint32 GetTotalStripCount(void) const { return mTotalStrips; } 183 189 uint32 GetSubMeshtripCount(int submeshid) const { return mStripsSubmesh[submeshid]; } 190 uint32 GetCurrentTriangleCount(void) const { return current_triangle_count; } 191 192 virtual Real GetCurrentLodFactor(void) const { return lodFactor; } 184 193 }; 185 194 }
Note: See TracChangeset
for help on using the changeset viewer.