Rubeus::GraphicComponents::RLayerComposition class

A wrapper around UI and Scene layers of the screen.

Constructors, destructors, conversion operators

RLayerComposition(const char* pathToUIVertexShader, const char* pathToUIFragmentShader, const char* pathToSceneVertexShader, const char* pathToSceneFragmentShader)
Constructor.
~RLayerComposition()
Destructor.

Public functions

void add(RGameObject* gameObject, bool UIElement = false)
Add a gameobject to the layers.
void draw()
Draw all layers to screen.

Function documentation

Rubeus::GraphicComponents::RLayerComposition::RLayerComposition(const char* pathToUIVertexShader, const char* pathToUIFragmentShader, const char* pathToSceneVertexShader, const char* pathToSceneFragmentShader)

Constructor.

Parameters
pathToUIVertexShader Path to vertex shader for the UI layer.
pathToUIFragmentShader Path to fragment shader for the UI layer.
pathToSceneVertexShader Path to vertex shader for the Scene layer.
pathToSceneFragmentShader Path to fragment shader for the Scene layer.

void Rubeus::GraphicComponents::RLayerComposition::add(RGameObject* gameObject, bool UIElement = false)

Add a gameobject to the layers.

Parameters
gameObject Pointer to the game object.
UIElement Whether the game object is a part of the UI.