Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4467 in orxonox.OLD for orxonox/trunk/src/lib/graphics


Ignore:
Timestamp:
Jun 2, 2005, 1:45:40 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: commented the abstract_class.h right

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/graphics/importer/abstract_model.h

    r4278 r4467  
    3535typedef float sVec3D[3];
    3636
     37
    3738//! small and performant 2D vector
    3839typedef float sVec2D[2];
     40
    3941
    4042//! compressed vertex data: char insetead of float, the value will be expanded by the scale value. only for loading
    4143typedef struct
    4244{
    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
    4547} sVertex;
     48
    4649
    4750//! compressed texture offset data: coords scaled by the texture size. Only for loading
    4851typedef struct
    4952{
    50   short s,t;
     53  short            s;                    //!< the s,t coordinates of a texture
     54  short            t;                    //!< the s,t coordinates of a texture
    5155} sTexCoor;
    5256
     
    5559typedef struct
    5660{
    57   sVec3D scale;                        //!< scales values of the model
    58   sVec3D translate;                    //!< translates the model
    59   char name[16];                       //!< frame name: something like "run32"
    60   sVertex pVertices[1];                //!< first vertex of thes frame
     61  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
    6165} sFrame;
    6266
     
    6569typedef struct
    6670{
    67   short indexToVertices[3];             //!< index to the verteces of the triangle
    68   short indexToTexCoor[3];              //!< index to the texture coordinates
     71  short            indexToVertices[3];   //!< index to the verteces of the triangle
     72  short            indexToTexCoor[3];    //!< index to the texture coordinates
    6973} sTriangle;
    7074
    7175
     76//! the command list of the md2 model, very md2 specific
    7277typedef struct
    7378{
    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
    7682} glCommandVertex;
    7783
     
    8086typedef struct
    8187{
    82   int firstFrame;                       //!< first frame of the animation
    83   int lastFrame;                        //!< last frame of the animation
    84   int fps;                              //!< speed: number of frames per second
     88  int              firstFrame;           //!< first frame of the animation
     89  int              lastFrame;            //!< last frame of the animation
     90  int              fps;                  //!< speed: number of frames per second
    8591} sAnim;
     92
    8693
    8794//! animation state definition
    8895typedef struct
    8996{
    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)
    93100
    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]
    97104 
    98   int type;                            //!< animation type
     105  int              type;                 //!< animation type
    99106
    100   int currentFrame;
    101   int nextFrame;
     107  int              currentFrame;         //!< the current frame
     108  int              nextFrame;            //!< the next frame in the list
    102109} sAnimState;
    103110
Note: See TracChangeset for help on using the changeset viewer.