Changeset 4224 in orxonox.OLD for orxonox/branches/md2_loader/src/lib/graphics/importer/md2Model.h
- Timestamp:
- May 19, 2005, 9:37:46 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/md2_loader/src/lib/graphics/importer/md2Model.h
r4213 r4224 2 2 \file md2Model.h 3 3 \brief Definition of an MD2 Model, a model format invented by ID Software. 4 5 6 7 8 9 10 11 12 13 14 15 4 5 We are deeply thankfull for all the wunderfull things id software made for us gamers! 6 7 The md2 file format is structured in a very simple way: it contains animations which are made out of 8 frames (so called keyframes). Each frame is a complete draweable model in a specific position. 9 A frame is a collection of vertex and its compagnions (normals, texture coordinates). 10 11 A typical model has about 200 frames, the maximum frame count is fixed by MD2_MAX_FRAMES to currently 12 512 frames. The maximal vetices count is set to 2048 verteces, not enough? 13 You just have to change the MD2_MAX_* values if it doesn't fit your purposes... 14 15 Surface Culling is fully implemented in md2 models: quake2 uses front face culling. 16 16 */ 17 17 … … 187 187 void drawFrame(int frame); 188 188 void draw(); 189 void draw2(); 189 190 190 191 void setAnim(int type); … … 209 210 int numFrames; 210 211 int numVertices; 212 int numTriangles; 211 213 int numGLCommands; 212 214 … … 219 221 sAnimState animationState; 220 222 float scaleFactor; 223 //tMd2Header* header; 221 224 }; 222 225
Note: See TracChangeset
for help on using the changeset viewer.