CTerritoryTexture(CSimulation2 &simulation)
const float * GetMinimapTextureMatrix()
Returns a matrix to map (0,0)-(1,1) texture coordinates onto texture coordinates, in the form expecte...
void BindTexture(int unit)
Recomputes the territory texture if necessary, and binds it to the requested texture unit...
CMatrix3D m_TextureMatrix
bool UpdateDirty()
Returns true if the territory state has changed since the last call to this function.
void GenerateBitmap(const Grid< u8 > &territories, u8 *bitmap, ssize_t w, ssize_t h)
GLuint GetTexture()
Recomputes the territory texture if necessary, and returns the texture handle.
CMatrix3D m_MinimapTextureMatrix
const float * GetTextureMatrix()
Returns a matrix to map (x,y,z) world coordinates onto (u,v) texture coordinates, in the form expecte...
NONCOPYABLE(CTerritoryTexture)
void RecomputeTexture(int unit)
void ConstructTexture(int unit)
Maintains the territory boundary texture, used for rendering and for the minimap. ...
CSimulation2 & m_Simulation