Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7468 in orxonox.OLD for trunk/src/lib/graphics/importer/height_map.h


Ignore:
Timestamp:
May 1, 2006, 11:06:09 PM (19 years ago)
Author:
patrick
Message:

orxonox: reading through the code and adjusting here and there, whatever dropps in to my eye

File:
1 edited

Legend:

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

    r7467 r7468  
    2323#define tileSize     64
    2424
     25//!< define the LOD level distances. later this could be dynamicaly adjusted
     26#define HM_LOD_LOW_RES     5000         //!< low resolution unless farther away than LOW_RES
     27#define HM_LOD_HIGH_RES    1000
     28
     29
    2530class SDL_Surface;
    2631class Vector;
     
    4247
    4348    void draw();
    44     void drawHighRes();
    45     void drawLowRes();
     49    inline void drawHighRes() { highResModel->draw(); }
     50    inline void drawLowRes() { lowResModel->draw(); }
    4651
    4752
     
    5661
    5762  private:
    58     HeightMap*                                 hmref;                             //!<
    59     VertexArrayModel*                          highResModel;                      //!<
    60     VertexArrayModel*                          lowResModel;                       //!<
     63    VertexArrayModel*                          highResModel;                      //!< heigh resolution model of the tile
     64    VertexArrayModel*                          lowResModel;                       //!< low resolution model of the tile
     65
     66    HeightMap*                                 heightMapReference;                             //!<
    6167    int                                        highRes;                           //!<
    6268    int                                        lowRes;                            //!<
Note: See TracChangeset for help on using the changeset viewer.