Rubeus::GraphicComponents::RSceneLayer class

Rendering Layer used for drawing the game scene (non-UI) to the screen.

Base classes

class Rubeus::GraphicComponents::RLayer
A layer class. Manages layer renders and groups.

Constructors, destructors, conversion operators

RSceneLayer(RShaderComponent& shader)
Constructor. Initialises the layer's shader.

Public functions

auto addGroup(RGroup& group) -> RLayer& override
Adds the group object to this layer.
void draw() override
Draws the layer.

Function documentation

Rubeus::GraphicComponents::RSceneLayer::RSceneLayer(RShaderComponent& shader)

Constructor. Initialises the layer's shader.

Parameters
shader The shader to be alloted to this layer.

RLayer& Rubeus::GraphicComponents::RSceneLayer::addGroup(RGroup& group) override

Adds the group object to this layer.

Parameters
group The group object to add.
Returns Reference to this layer. Allows chaining multiple group additions. E.g.: layer.addGoup(g1).addGroup(g2);

void Rubeus::GraphicComponents::RSceneLayer::draw() override

Draws the layer.