Changeset 4467 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Jun 2, 2005, 1:45:40 AM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/importer/abstract_model.h
r4278 r4467 35 35 typedef float sVec3D[3]; 36 36 37 37 38 //! small and performant 2D vector 38 39 typedef float sVec2D[2]; 40 39 41 40 42 //! compressed vertex data: char insetead of float, the value will be expanded by the scale value. only for loading 41 43 typedef struct 42 44 { 43 byte v[3];44 unsigned char lightNormalIndex;45 byte v[3]; //!< the vector of the vertex 46 unsigned char lightNormalIndex; //!< the index of the light normal 45 47 } sVertex; 48 46 49 47 50 //! compressed texture offset data: coords scaled by the texture size. Only for loading 48 51 typedef struct 49 52 { 50 short s,t; 53 short s; //!< the s,t coordinates of a texture 54 short t; //!< the s,t coordinates of a texture 51 55 } sTexCoor; 52 56 … … 55 59 typedef struct 56 60 { 57 sVec3D scale;//!< scales values of the model58 sVec3D translate;//!< translates the model59 char name[16];//!< frame name: something like "run32"60 sVertex pVertices[1];//!< first vertex of thes frame61 sVec3D scale; //!< scales values of the model 62 sVec3D translate; //!< translates the model 63 char name[16]; //!< frame name: something like "run32" 64 sVertex pVertices[1]; //!< first vertex of thes frame 61 65 } sFrame; 62 66 … … 65 69 typedef struct 66 70 { 67 short indexToVertices[3];//!< index to the verteces of the triangle68 short indexToTexCoor[3];//!< index to the texture coordinates71 short indexToVertices[3]; //!< index to the verteces of the triangle 72 short indexToTexCoor[3]; //!< index to the texture coordinates 69 73 } sTriangle; 70 74 71 75 76 //! the command list of the md2 model, very md2 specific 72 77 typedef struct 73 78 { 74 float s, t; 75 int vertexIndex; 79 float s; //!< texture coordinate 1 80 float t; //!< texture coordinate 2 81 int vertexIndex; //!< index of the vertex in the vertex list 76 82 } glCommandVertex; 77 83 … … 80 86 typedef struct 81 87 { 82 int firstFrame;//!< first frame of the animation83 int lastFrame;//!< last frame of the animation84 int fps;//!< speed: number of frames per second88 int firstFrame; //!< first frame of the animation 89 int lastFrame; //!< last frame of the animation 90 int fps; //!< speed: number of frames per second 85 91 } sAnim; 92 86 93 87 94 //! animation state definition 88 95 typedef struct 89 96 { 90 int startFrame;91 int endFrame;92 int fps;97 int startFrame; //!< the start frame of an animation 98 int endFrame; //!< last frame of the animation 99 int fps; //!< fps of the animaion (speed) 93 100 94 float localTime;95 float lastTime;96 float interpolationState;//!< the state of the animation [0..1]101 float localTime; //!< the local time 102 float lastTime; //!< last time stamp 103 float interpolationState; //!< the state of the animation [0..1] 97 104 98 int type;//!< animation type105 int type; //!< animation type 99 106 100 int currentFrame;101 int nextFrame;107 int currentFrame; //!< the current frame 108 int nextFrame; //!< the next frame in the list 102 109 } sAnimState; 103 110 -
orxonox/trunk/src/world_entities/test_gun.cc
r4464 r4467 135 135 136 136 this is called from the player.cc, when fire-button is been pushed 137 \todo: the ObjectManager deliveres Projectiles not TestBullets! this should be diffrent 137 138 */ 138 139 void TestGun::fire()
Note: See TracChangeset
for help on using the changeset viewer.