Maintains the territory boundary texture, used for rendering and for the minimap.
More...
#include <TerritoryTexture.h>
Maintains the territory boundary texture, used for rendering and for the minimap.
CTerritoryTexture::CTerritoryTexture |
( |
CSimulation2 & |
simulation | ) |
|
CTerritoryTexture::~CTerritoryTexture |
( |
| ) |
|
void CTerritoryTexture::BindTexture |
( |
int |
unit | ) |
|
Recomputes the territory texture if necessary, and binds it to the requested texture unit.
Also switches the current active texture unit, and enables texturing on it. The texture is in 32-bit BGRA format.
void CTerritoryTexture::ConstructTexture |
( |
int |
unit | ) |
|
|
private |
void CTerritoryTexture::DeleteTexture |
( |
| ) |
|
|
private |
const CMatrix3D * CTerritoryTexture::GetMinimapTextureMatrix |
( |
| ) |
|
Returns a matrix to map (0,0)-(1,1) texture coordinates onto texture coordinates, in the form expected by glLoadMatrixf.
This must only be called after BindTexture.
GLuint CTerritoryTexture::GetTexture |
( |
| ) |
|
Recomputes the territory texture if necessary, and returns the texture handle.
Also potentially switches the current active texture unit, and enables texturing on it. The texture is in 32-bit BGRA format.
const float * CTerritoryTexture::GetTextureMatrix |
( |
| ) |
|
Returns a matrix to map (x,y,z) world coordinates onto (u,v) texture coordinates, in the form expected by glLoadMatrixf.
This must only be called after BindTexture.
void CTerritoryTexture::RecomputeTexture |
( |
int |
unit | ) |
|
|
private |
bool CTerritoryTexture::UpdateDirty |
( |
| ) |
|
|
private |
Returns true if the territory state has changed since the last call to this function.
size_t CTerritoryTexture::m_DirtyID |
|
private |
ssize_t CTerritoryTexture::m_MapSize |
|
private |
CMatrix3D CTerritoryTexture::m_MinimapTextureMatrix |
|
private |
GLuint CTerritoryTexture::m_Texture |
|
private |
GLsizei CTerritoryTexture::m_TextureSize |
|
private |
The documentation for this class was generated from the following files: