Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 18, 2006, 8:26:57 PM (18 years ago)
Author:
ponder
Message:
  • The terrain now uses VBO's instead of VARS. Its possible to switch back, though.
  • The multitexturing works fine.
File:
1 edited

Legend:

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

    r8548 r8569  
    1717#ifndef TERRAIN_PAGE_H
    1818#define TERRAIN_PAGE_H
    19 
     19#define USE_VBO
    2020#include "terrain_quad.h"
    2121#include <stdio.h>
     
    2626
    2727typedef TerrainPage *pTerrainPage;
     28
     29struct Vertex {
     30        TexCoord        t;     
     31        Triple          p;
     32};
     33
     34typedef Vertex *pVertex;
    2835
    2936typedef struct {
     
    208215                        if ( wantedLOD >= TerrainPage::MAX_LODS )
    209216                                wantedLOD = 4;
     217                        else if ( wantedLOD < 0 )
     218                                wantedLOD = 0;
    210219                        else
    211220                                wantedLOD = _lod;
     
    271280                bool                                            forceTesselation;
    272281                bool                                            active;
    273                 Triple                                          *vertices;
     282                pVertex                                         vertices;
    274283                unsigned short                          *indices;
    275284                unsigned short                          *indexHash;
    276                 TexCoord                                        *coords;
    277285                int                                                     numIndices;
    278286                int                                                     numVertices;
     287               
     288#ifdef  USE_VBO
     289                GLuint                                          ibIdentifier,
     290                                                                        vbIdentifier;
     291#endif         
    279292                bool                                            isVisible;
    280293                pTerrainPage                            next;
Note: See TracChangeset for help on using the changeset viewer.