Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5085 in orxonox.OLD for trunk/src/lib/graphics/importer/md2Model.h


Ignore:
Timestamp:
Aug 20, 2005, 3:37:12 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: bugfixing the md2 animation class. there seems to be a problem with the animation itself which prevents the model from being drawn correctly

File:
1 edited

Legend:

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

    r5039 r5085  
    6666
    6767
     68
    6869//! animation names enumeration
    6970typedef enum animType
     
    116117  int                numVertices;           //!< number of vertices
    117118  int                numTriangles;          //!< number of triangles
     119  int                numTexCoor;            //!< number of texture coordinates
    118120  int                numGLCommands;         //!< number of gl commands in the glList (tells how to draw)
    119121  char*              fileName;              //!< file name of the model File
     
    123125  sVec3D*            pVertices;             //!< pointer to the vertices data block
    124126  sTriangle*         pTriangles;            //!< pointer to the triangles data
     127  sTexCoor*          pTexCoor;              //!< pointer to the texture coordinate data
    125128  int*               pGLCommands;           //!< pointer to the gllist data block
    126129  int*               pLightNormals;         //!< pointer to the light normals
     
    129132  float              scaleFactor;           //!< the scale factor of the model, (global)
    130133};
     134
     135
    131136
    132137
     
    155160  void processLighting();
    156161  void interpolate(sVec3D* verticesList);
    157   void renderFrame();
     162  void renderFrameGLList();
     163  void renderFrameTriangles();
    158164
    159165 public:
Note: See TracChangeset for help on using the changeset viewer.