Changeset 7465 in orxonox.OLD for branches/bsp_model/src/lib/graphics/importer/bsp_file.h
- Timestamp:
- May 1, 2006, 9:08:19 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/graphics/importer/bsp_file.h
r7410 r7465 88 88 int lm_index; //!< Lightmap index. 89 89 int lm_start [ 2 ]; //!< Corner of this face's lightmap image in lightmap. 90 int lm_size [ 2 ]; //!< Size of this face's lightmap image in lightmap.90 int lm_size [ 2 ]; //!< Size of this face's lightmap image in lightmap. 91 91 float lm_origin [ 3 ] ; //!< World space origin of lightmap. 92 92 float lm_vecs [ 2 ][ 3 ]; //!< World space lightmap s and t unit vectors. … … 123 123 AMat; 124 124 125 typedef struct 126 { 127 unsigned char map [128][128][3]; 128 } 129 lightmap; 130 125 131 class BspFile 126 132 { … … 153 159 char* visData; //!< 154 160 char* textures; //!< 155 char* patchVertice; 161 char* patchVertice; //!< 156 162 char* patchIndexes; 157 163 char* patchTrianglesPerRow; 158 159 164 lightmap* lightMaps; //!< Buffer to store lightmap-images 165 166 160 167 int** patchRowIndexes; 161 168 VertexArrayModel** VertexArrayModels; … … 173 180 int numPatches; 174 181 int numBrushSides; 182 int numLightMaps; 175 183 176 184 BspTreeNode* build_tree_rec( int i ); 185 unsigned int loadLightMapToGL(lightmap&); 177 186 AMat* Materials; 187 unsigned int* glLightMapTextures; 188 unsigned int whiteLightMap; 189 unsigned char whiteTexture[3]; 178 190 SDL_Surface* testSurf; 179 191
Note: See TracChangeset
for help on using the changeset viewer.