Changeset 7507 in orxonox.OLD
- Timestamp:
- May 3, 2006, 1:59:17 PM (19 years ago)
- Location:
- branches/bsp_model/src/lib/graphics/importer
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/graphics/importer/bsp_file.cc
r7465 r7507 141 141 PRINTF(4)("BSP FILE: Remainder: %i. \n", size % 8); 142 142 PRINTF(4)("BSP FILE: BrushSidesOffset: %i. \n", offset); 143 this-> brushSides = new char [size];144 this-> numBrushSides = size/8;145 bspFile.seekg(offset); 146 bspFile.read( this->brushSides, size);143 this->numBrushSides = size/sizeof(brushside); 144 this->brushSides = new brushside [this->numBrushSides]; 145 bspFile.seekg(offset); 146 bspFile.read((char*)this->brushSides, size); 147 147 148 148 // Get the Vertice -
branches/bsp_model/src/lib/graphics/importer/bsp_file.h
r7465 r7507 154 154 char* leafBrushes; //!< Buffer to store brush indice 155 155 brush* brushes; //!< Buffer to store brushes 156 char* brushSides;//!<156 brushside* brushSides; //!< 157 157 char* vertice; //!< 158 158 meshvert* meshverts; //!<
Note: See TracChangeset
for help on using the changeset viewer.