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.
Definition at line 29 of file TerritoryTexture.h.
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.
Definition at line 61 of file TerritoryTexture.cpp.
void CTerritoryTexture::ConstructTexture |
( |
int |
unit | ) |
|
|
private |
void CTerritoryTexture::DeleteTexture |
( |
| ) |
|
|
private |
const float * 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.
Definition at line 83 of file TerritoryTexture.cpp.
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.
Definition at line 69 of file TerritoryTexture.cpp.
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.
Definition at line 77 of file TerritoryTexture.cpp.
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.
Definition at line 52 of file TerritoryTexture.cpp.
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: