Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
LongOverlay Class Reference

Terrain overlay for pathfinder debugging. More...

Inheritance diagram for LongOverlay:
Collaboration diagram for LongOverlay:

Public Member Functions

 LongOverlay (LongPathfinder &pathfinder)
 
virtual void BuildTextureRGBA (u8 *data, size_t w, size_t h)
 Called each frame to generate the texture to render on the terrain. More...
 
- Public Member Functions inherited from TerrainTextureOverlay
 TerrainTextureOverlay (float texelsPerTile, int priority=100)
 
 ~TerrainTextureOverlay () override
 
- Public Member Functions inherited from ITerrainOverlay
virtual ~ITerrainOverlay ()
 
virtual void RenderBeforeWater (Renderer::Backend::IDeviceCommandContext *deviceCommandContext)
 
virtual void RenderAfterWater (Renderer::Backend::IDeviceCommandContext *deviceCommandContext, int cullGroup)
 

Public Attributes

LongPathfinderm_Pathfinder
 

Additional Inherited Members

- 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...
 
- Protected Member Functions inherited from TerrainTextureOverlay
virtual void BuildTextureRGBA (u8 *data, size_t w, size_t h)=0
 Called each frame to generate the texture to render on the terrain. More...
 
SColor4ub GetColor (size_t idx, u8 alpha) const
 Returns an arbitrary color, for subclasses that want to distinguish different integers visually. More...
 
- Protected Member Functions inherited from ITerrainOverlay
 ITerrainOverlay (int priority)
 

Detailed Description

Terrain overlay for pathfinder debugging.

Renders a representation of the most recent pathfinding operation.

Constructor & Destructor Documentation

◆ LongOverlay()

LongOverlay::LongOverlay ( LongPathfinder pathfinder)
inline

Member Function Documentation

◆ BuildTextureRGBA()

virtual void LongOverlay::BuildTextureRGBA ( u8 data,
size_t  w,
size_t  h 
)
inlinevirtual

Called each frame to generate the texture to render on the terrain.

data is w*h*4 bytes, where w and h are the terrain size multiplied by texelsPerTile. data defaults to fully transparent, and should be filled with data in RGBA order.

Implements TerrainTextureOverlay.

Member Data Documentation

◆ m_Pathfinder

LongPathfinder& LongOverlay::m_Pathfinder

The documentation for this class was generated from the following file: