void RecomputeTexture(int unit)
Definition: LOSTexture.cpp:318
size_t GetBitmapSize(size_t w, size_t h, size_t *pitch)
Definition: LOSTexture.cpp:361
~CLOSTexture()
Definition: LOSTexture.cpp:69
void DeleteTexture()
Definition: LOSTexture.cpp:94
CLOSTexture(CSimulation2 &simulation)
Definition: LOSTexture.cpp:60
CMatrix3D m_MinimapTextureMatrix
Definition: LOSTexture.h:106
friend class TestLOSTexture
Definition: LOSTexture.h:35
GLsizei m_TextureSize
Definition: LOSTexture.h:103
GLuint m_TextureSmooth1
Definition: LOSTexture.h:95
GLuint GetTextureSmooth()
Definition: LOSTexture.cpp:125
GLuint m_Texture
Definition: LOSTexture.h:94
shared_ptr< CShaderTechnique > CShaderTechniquePtr
Definition: ShaderTechnique.h:113
uint8_t u8
Definition: types.h:37
bool m_ShaderInitialized
Definition: LOSTexture.h:92
CShaderTechniquePtr m_smoothShader
Definition: LOSTexture.h:100
Public API for simulation system.
Definition: Simulation2.h:47
GLuint m_TextureSmooth2
Definition: LOSTexture.h:95
Definition: Matrix3D.h:33
bool m_Dirty
Definition: LOSTexture.h:90
CSimulation2 & m_Simulation
Definition: LOSTexture.h:88
const CMatrix3D * GetMinimapTextureMatrix()
Returns a matrix to map (0,0)-(1,1) texture coordinates onto LOS texture coordinates, in the form expected by glLoadMatrixf.
Definition: LOSTexture.cpp:238
GLuint GetTexture()
Recomputes the LOS texture if necessary, and returns the texture handle.
Definition: LOSTexture.cpp:221
void MakeDirty()
Marks the LOS texture as needing recomputation.
Definition: LOSTexture.cpp:109
ssize_t m_MapSize
Definition: LOSTexture.h:102
intptr_t ssize_t
Definition: wposix_types.h:82
void ConstructTexture(int unit)
Definition: LOSTexture.cpp:244
bool CreateShader()
Definition: LOSTexture.cpp:76
CMatrix3D m_TextureMatrix
Definition: LOSTexture.h:105
Object providing efficient abstracted access to the LOS state.
Definition: ICmpRangeManager.h:242
void BindTexture(int unit)
Recomputes the LOS texture if necessary, and binds it to the requested texture unit.
Definition: LOSTexture.cpp:114
Maintains the LOS (fog-of-war / shroud-of-darkness) texture, used for rendering and for the minimap...
Definition: LOSTexture.h:32
const CMatrix3D & GetTextureMatrix()
Returns a matrix to map (x,y,z) world coordinates onto (u,v) LOS texture coordinates, in the form expected by glLoadMatrixf.
Definition: LOSTexture.cpp:232
GLuint m_smoothFbo
Definition: LOSTexture.h:99
void InterpolateLOS()
Definition: LOSTexture.cpp:133
void GenerateBitmap(ICmpRangeManager::CLosQuerier los, u8 *losData, size_t w, size_t h, size_t pitch)
Definition: LOSTexture.cpp:367
bool whichTex
Definition: LOSTexture.h:97