first commit
This commit is contained in:
40
include/engine/gpu/gpu_terrain.h
Normal file
40
include/engine/gpu/gpu_terrain.h
Normal file
@ -0,0 +1,40 @@
|
||||
/* -----------------------------------------------------------------------------
|
||||
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__
|
||||
Reference in New Issue
Block a user