Graphics::LambdaLayer class

Base classes

class ILayer
This interfaces defines a layer that is rendered every game loop, by callings its ILayer::DrawLayer() method.

Public types

using Render_t = void(*)(int, int, App::cViewer**, RenderStatistics&)

Constructors, destructors, conversion operators

LambdaLayer(Render_t)

Public functions

auto AddRef() -> int override
auto Release() -> int override
auto DrawLayer(int flags, int layerIndex, App::cViewer** viewers, RenderStatistics& statistics) -> void override
Renders this layer.

Protected variables

int mnRefCount
Render_t mFunction

Function documentation

void Graphics::LambdaLayer::DrawLayer(int flags, int layerIndex, App::cViewer** viewers, RenderStatistics& statistics) override

Renders this layer.

Parameters
flags The flags this layer was registered with, combined with the global render flags.
layerIndex The layer index this layer was registered with.
viewers
statistics