41 lines
736 B
C++
41 lines
736 B
C++
/* -----------------------------------------------------------------------------
|
|
GSFramework
|
|
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
|
|
------------------------------------------------------------------------------*/
|
|
|
|
|
|
#ifndef __GPUTERRAIN__
|
|
#define __GPUTERRAIN__
|
|
|
|
|
|
#include "gpu/gpu_display_list.h"
|
|
|
|
|
|
namespace GS {
|
|
namespace Core { class Terrain; }
|
|
namespace GPU {
|
|
struct DisplayList;
|
|
|
|
//
|
|
struct CachedTerrainPatch
|
|
{
|
|
NPLACEMENT_NEW(RendererTerrain)
|
|
|
|
Core::Terrain *terrain;
|
|
|
|
int u, v, w, h;
|
|
int decimation;
|
|
|
|
uint score;
|
|
|
|
AutoPtr <DisplayList> patch;
|
|
|
|
CachedTerrainPatch() : terrain(0), u(0), v(0), w(-1), h(-1), decimation(0), score(0) {}
|
|
};
|
|
|
|
} // GPU
|
|
} // GS
|
|
|
|
|
|
#endif // __GPUTERRAIN__
|