Changeset 8602 in orxonox.OLD for branches/bsp_model/src/lib
- Timestamp:
- Jun 20, 2006, 5:34:01 AM (18 years ago)
- Location:
- branches/bsp_model/src/lib/graphics/importer/md3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/graphics/importer/md3/md3_data.cc
r8597 r8602 37 37 MD3Data::MD3Data(const std::string& modelFileName, const std::string& skinFileName, float scale) 38 38 { 39 this->filename = filename; 39 40 40 41 this->parentTagIndex = -1; … … 107 108 // char* buffer; //buffer for frame data 108 109 int fileOffset = 0; // file data offset 109 110 110 111 111 -
branches/bsp_model/src/lib/graphics/importer/md3/md3_data.h
r8597 r8602 104 104 105 105 std::string filename; //!< the name of the file as recorded in the .md3 file 106 std::string loadFilename; //!< filename of the actual file from which data was loaded107 106 108 107 MD3AnimationState animationState; //!< the animation state of this model -
branches/bsp_model/src/lib/graphics/importer/md3/md3_model.cc
r8601 r8602 274 274 void MD3Model::draw() const 275 275 { 276 PRINTF(0)("\ndraw========================\n"); 276 277 //draw current bone frame 277 278 this->draw(this->md3Data); … … 359 360 void MD3Model::drawMesh(MD3Mesh* mesh, sVec3D* frame) const 360 361 { 362 PRINTF(0)("drawMesh: %s\n", mesh->header->name); 363 Vector tmpVec1, tmpVec2; 364 361 365 glColor3f(1.0f, 1.0f, 1.0f); 362 363 366 glBegin( GL_TRIANGLES); 364 glScalef( 0.7f , 0.7f, 0.7f );365 366 Vector tmpVec1, tmpVec2;367 367 368 368 // upload all triangles in the frame to OpenGL
Note: See TracChangeset
for help on using the changeset viewer.