Rubeus::GraphicComponents::RMainLayer class

Rendering Layer used for drawing UI elements to the screen.

Base classes

class RLayer
A layer class. Manages layer renders and groups.

Constructors, destructors, conversion operators

RMainLayer(RShaderComponent& shader)
Constructor. Initialises the layer's shader.
~RMainLayer() virtual
Destructor.

Public functions

auto addGameObject(RGameObject* gameObject) -> RLayer& override
Adds a game object to this layer.
void draw() override
Draws the layer.

Function documentation

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

Constructor. Initialises the layer's shader.

Parameters
shader The shader to be alloted to this layer.

RLayer& Rubeus::GraphicComponents::RMainLayer::addGameObject(RGameObject* gameObject) override

Adds a game object to this layer.

Parameters
gameObject The game object to pass in.
Returns Reference to this layer. Provides chaining group additions. E.g. layer.addGameObject(g1).addGameObject(g2);

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

Draws the layer.