An OrthoGPUProducer layer to draw static rivers and lakes. More...
#include <WaterOrthoLayer.h>
Public Types | |
enum | riverType { BORDER = -2, OBSTACLE = -1, RIVER = 0, ISLAND = 1, LAKE = 2 } |
Predefined type for rivers. More... | |
Public Member Functions | |
WaterOrthoLayer (ptr< GraphProducer > graphProducer, ptr< Program > layerProgram, int displayLevel=0, bool quality=true, vec4f color=vec4f(0, 0, 0, 0), bool deform=false) | |
Creates a new WaterOrthoLayer. | |
virtual | ~WaterOrthoLayer () |
Deletes this WaterOrthoLayer. | |
Protected Member Functions | |
WaterOrthoLayer () | |
Creates an uninitialized WaterOrthoLayer. | |
void | init (ptr< GraphProducer > graphProducer, ptr< Program > layerProgram, int displayLevel=0, bool quality=true, vec4f color=vec4f(0, 0, 0, 0), bool deform=true) |
Initializes this WaterOrthoLayer. | |
Private Attributes | |
vec4f | color |
Water color. | |
ptr< Mesh< vec2f, unsigned int > > | mesh |
The mesh used for drawing curves. | |
ptr< Tesselator > | tess |
The tesselator used for drawing areas. |
An OrthoGPUProducer layer to draw static rivers and lakes.
Predefined type for rivers.
Used for drawing and managing rivers.
proland::WaterOrthoLayer::WaterOrthoLayer | ( | ptr< GraphProducer > | graphProducer, | |
ptr< Program > | layerProgram, | |||
int | displayLevel = 0 , |
|||
bool | quality = true , |
|||
vec4f | color = vec4f(0, 0, 0, 0) , |
|||
bool | deform = false | |||
) |
Creates a new WaterOrthoLayer.
graphProducer | the GraphProducer that produces the graphs to be drawn by this layer. | |
layerProgram | the Program to be used to draw the graphs. | |
displayLevel | the quadtree level at which the display of this layer must start. | |
quality | enable or not the quality mode (better display). | |
color | the color of water (default 0:0:0). | |
deform | true if the produced tiles will be mapped on a spherical terrain. |
virtual proland::WaterOrthoLayer::~WaterOrthoLayer | ( | ) | [virtual] |
Deletes this WaterOrthoLayer.
proland::WaterOrthoLayer::WaterOrthoLayer | ( | ) | [protected] |
Creates an uninitialized WaterOrthoLayer.
void proland::WaterOrthoLayer::init | ( | ptr< GraphProducer > | graphProducer, | |
ptr< Program > | layerProgram, | |||
int | displayLevel = 0 , |
|||
bool | quality = true , |
|||
vec4f | color = vec4f(0, 0, 0, 0) , |
|||
bool | deform = true | |||
) | [protected] |
Initializes this WaterOrthoLayer.
See WaterOrthoLayer.
vec4f proland::WaterOrthoLayer::color [private] |
Water color.
ptr< Mesh<vec2f, unsigned int> > proland::WaterOrthoLayer::mesh [private] |
The mesh used for drawing curves.
ptr<Tesselator> proland::WaterOrthoLayer::tess [private] |
The tesselator used for drawing areas.