Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 23, 2006, 4:26:49 PM (18 years ago)
Author:
ponder
Message:
  • Optimized the multi-layer renderings. pages which do not show a certain material aren't rendered anymore.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/terrain/src/lib/graphics/importer/terrain/types.h

    r8697 r8745  
    2020#endif
    2121#include <math.h>
    22 
     22#include "texture.h"
    2323
    2424struct Triple {
     
    139139}
    140140typedef unsigned char UByte;
     141struct Heightfield {
     142        int                     width;
     143        int                     height;
     144        int                             pitch;
     145        UByte                   *data;
     146};
     147
     148struct LayerInfo {
     149
     150        int                             envmode;
     151        float                   repeatX,
     152                                        repeatZ;
     153        Texture                 *alpha;
     154        Texture                 *detail;
     155       
     156};
     157typedef enum { LV_FULL, LV_PARTIAL, LV_NO } LayerVisibility;
     158
     159struct BufferInfo {
     160       
     161        BufferInfo( unsigned int _vb, unsigned int _ib,
     162                unsigned int _numV, unsigned int _numI )
     163        {
     164                vbIdentifier = _vb; ibIdentifier = _ib;
     165                numIndices = _numI; numVertices =_numV;
     166               
     167        }
     168       
     169        BufferInfo()
     170        {
     171                vbIdentifier = ibIdentifier = numIndices = numVertices = 0;
     172        }
     173        unsigned int    vbIdentifier,
     174                                        ibIdentifier,
     175                                        numIndices,
     176                                        numVertices;   
     177};
    141178#endif
Note: See TracChangeset for help on using the changeset viewer.