Mercator
Public Member Functions | Public Attributes
Mercator::Surface Class Reference

Data store for terrain surface data. More...

#include <Surface.h>

Inheritance diagram for Mercator::Surface:
Mercator::Buffer< ColorT >

List of all members.

Public Member Functions

 Surface (const Segment &segment, const Shader &shader, bool colors=true, bool alpha=true)
 Constructor.
void populate ()
 Populate the data buffer using the correct shader.

Public Attributes

const Shaderm_shader
 The shader that populates this surface.

Detailed Description

Data store for terrain surface data.


Constructor & Destructor Documentation

Mercator::Surface::Surface ( const Segment seg,
const Shader sh,
bool  color = true,
bool  alpha = true 
) [explicit]

Constructor.

Parameters:
segthe terrain height segment this surface maps on to.
shthe shader used to generate the surface data.
colortrue if this shader contains color data.
alphatrue if this shader contains alpha data.

Member Function Documentation

Populate the data buffer using the correct shader.

Call the shader to full this surface buffer with surface data.

References Mercator::Buffer< ColorT >::allocate(), Mercator::Buffer< ColorT >::isValid(), m_shader, and Mercator::Shader::shade().

Referenced by Mercator::TileShader::shade().


The documentation for this class was generated from the following files: