Rubeus::GraphicComponents::RUILayer class

Rendering Layer used for drawing UI elements to the screen.

Base classes

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

Constructors, destructors, conversion operators

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

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::RUILayer::RUILayer(RShaderComponent& shader)

Constructor. Initialises the layer's shader.

Parameters
shader The shader to be alloted to this layer.

RLayer& Rubeus::GraphicComponents::RUILayer::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::RUILayer::draw() override

Draws the layer.