81 std::unique_ptr<Renderer::Backend::ITexture>
m_Texture;
std::unique_ptr< Renderer::Backend::ITexture > m_Texture
Definition: TerritoryTexture.h:81
CTerritoryTexture(CSimulation2 &simulation)
Definition: TerritoryTexture.cpp:39
Definition: ITexture.h:33
void ConstructTexture(Renderer::Backend::IDeviceCommandContext *deviceCommandContext)
Definition: TerritoryTexture.cpp:78
void UpdateIfNeeded(Renderer::Backend::IDeviceCommandContext *deviceCommandContext)
Updates the texture if needed (territory was changed or the texture wasn't created).
Definition: TerritoryTexture.cpp:251
Basic 2D array, intended for storing tile data, plus support for lazy updates by ICmpObstructionManag...
Definition: TerritoryBoundary.h:27
void RecomputeTexture(Renderer::Backend::IDeviceCommandContext *deviceCommandContext)
Definition: TerritoryTexture.cpp:134
uint8_t u8
Definition: types.h:37
Public API for simulation system.
Definition: Simulation2.h:46
CMatrix3D m_TextureMatrix
Definition: TerritoryTexture.h:85
Definition: Matrix3D.h:33
bool UpdateDirty()
Returns true if the territory state has changed since the last call to this function.
Definition: TerritoryTexture.cpp:54
Renderer::Backend::ITexture * GetTexture()
Recomputes the territory texture if necessary, and returns the texture handle.
Definition: TerritoryTexture.cpp:60
void GenerateBitmap(const Grid< u8 > &territories, u8 *bitmap, ssize_t w, ssize_t h)
Definition: TerritoryTexture.cpp:161
CMatrix3D m_MinimapTextureMatrix
Definition: TerritoryTexture.h:86
intptr_t ssize_t
Definition: wposix_types.h:82
const CMatrix3D & GetTextureMatrix()
Returns a matrix to map (x,y,z) world coordinates onto (u,v) texture coordinates, in the form expecte...
Definition: TerritoryTexture.cpp:66
NONCOPYABLE(CTerritoryTexture)
void DeleteTexture()
Definition: TerritoryTexture.cpp:49
~CTerritoryTexture()
Definition: TerritoryTexture.cpp:44
ssize_t m_MapSize
Definition: TerritoryTexture.h:83
size_t m_DirtyID
Definition: TerritoryTexture.h:79
const CMatrix3D & GetMinimapTextureMatrix()
Returns a matrix to map (0,0)-(1,1) texture coordinates onto texture coordinates, in the form expecte...
Definition: TerritoryTexture.cpp:72
Definition: IDeviceCommandContext.h:40
Maintains the territory boundary texture, used for rendering and for the minimap. ...
Definition: TerritoryTexture.h:30
CSimulation2 & m_Simulation
Definition: TerritoryTexture.h:77