![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
Base class for texture-based terrain overlays, with an arbitrary number of texels per terrain tile, intended for debugging purposes. More...
#include <TerrainOverlay.h>


Public Member Functions | |
| TerrainTextureOverlay (float texelsPerTile, std::function< void(std::uint8_t *, std::size_t, std::size_t)> buildTextureRGBA) | |
| ~TerrainTextureOverlay () final | |
Public Member Functions inherited from ITerrainOverlay | |
| virtual | ~ITerrainOverlay () |
| virtual void | RenderBeforeWater (Renderer::Backend::IDeviceCommandContext *) |
| virtual void | RenderAfterWater (Renderer::Backend::IDeviceCommandContext *, int) |
Static Public Member Functions | |
| static SColor4ub | GetColor (std::size_t idx, std::uint8_t alpha) |
| Returns an arbitrary color, for subclasses that want to distinguish different integers visually. More... | |
| static void | OverwriteEachTile (std::uint8_t *data, const std::size_t w, const std::size_t h, const auto generate) |
Static Public Member Functions inherited from ITerrainOverlay | |
| static void | RenderOverlaysBeforeWater (Renderer::Backend::IDeviceCommandContext *deviceCommandContext) |
| Draw all ITerrainOverlay objects that exist and that should be drawn before water. More... | |
| static void | RenderOverlaysAfterWater (Renderer::Backend::IDeviceCommandContext *deviceCommandContext, int cullGroup) |
| Draw all ITerrainOverlay objects that exist and that should be drawn after water. More... | |
Private Member Functions | |
| void | RenderAfterWater (Renderer::Backend::IDeviceCommandContext *deviceCommandContext, int cullGroup) final |
Private Attributes | |
| std::function< void(std::uint8_t *, std::size_t, std::size_t)> | m_BuildTextureRGBA |
| float | m_TexelsPerTile |
| std::unique_ptr< Renderer::Backend::ITexture > | m_Texture |
Additional Inherited Members | |
Protected Member Functions inherited from ITerrainOverlay | |
| ITerrainOverlay (int priority) | |
Base class for texture-based terrain overlays, with an arbitrary number of texels per terrain tile, intended for debugging purposes.
Subclasses must implement BuildTextureRGBA which will be called each frame.
| TerrainTextureOverlay::TerrainTextureOverlay | ( | float | texelsPerTile, |
| std::function< void(std::uint8_t *, std::size_t, std::size_t)> | buildTextureRGBA | ||
| ) |
|
finaldefault |
|
static |
Returns an arbitrary color, for subclasses that want to distinguish different integers visually.
|
inlinestatic |
|
finalprivatevirtual |
Reimplemented from ITerrainOverlay.
|
private |
|
private |
|
private |