Untold Engine  Beta v0.0.16
docs
U4DEngine::U4DLayerManager Class Reference

The U4DLayerManager class manages the layer objects currently present in the scene. Layers are object that can be rendered on top of the view component. More...

Public Member Functions

void setController (U4DControllerInterface *uController)
 sets the active controller More...
 
void setWorld (U4DWorld *uWorld)
 sets the current active view component More...
 
void addLayerToContainer (U4DLayer *uLayer)
 adds layer to the layer-container More...
 
void pushLayer (std::string uLayerName)
 pushes a new layer into the stack More...
 
void popLayer ()
 pops the top layer from the stack
 
U4DLayergetActiveLayer ()
 returs the active layer
 
void clear ()
 clears the layer container and stack
 

Static Public Member Functions

static U4DLayerManagersharedInstance ()
 returns the instance of the singleton
 

Protected Member Functions

 U4DLayerManager ()
 Constructor.
 
 ~U4DLayerManager ()
 Destructor.
 

Detailed Description

The U4DLayerManager class manages the layer objects currently present in the scene. Layers are object that can be rendered on top of the view component.

Member Function Documentation

◆ addLayerToContainer()

void U4DEngine::U4DLayerManager::addLayerToContainer ( U4DLayer uLayer)

adds layer to the layer-container

Parameters
uLayerlayer to add

◆ pushLayer()

void U4DEngine::U4DLayerManager::pushLayer ( std::string  uLayerName)

pushes a new layer into the stack

Parameters
uLayerNamename of the layer to push onto the stack

◆ setController()

void U4DEngine::U4DLayerManager::setController ( U4DControllerInterface uController)

sets the active controller

Parameters
uControllercurrent active controller in the game

◆ setWorld()

void U4DEngine::U4DLayerManager::setWorld ( U4DWorld uWorld)

sets the current active view component

Parameters
uWorldview Component