Chicane

Instance

Header
Includes/Chicane/Runtime/Renderer/Instance.hpp
Namespace
Chicane::Renderer::Instance

Types

NameValueDescription
ViewportObservable
ViewportSubscription
Super

Constructors

NameDescription
Instance()

Destructors

NameDescription
~Instance()

Virtual Functions

AccessReturnModifierNameDescription
protected
void
inline
onInit()
protected
void
inline
onRender()
protected
void
inline
onEvent(
const  Window::Event& inEvent
)
protected
void
inline
onResizing()
protected
void
inline
onRepositioning()

Functions

AccessReturnModifierNameDescription
public
bool
const
canRender()
public
void
init(
const  CreateInfo& inCreateInfo
)
public
void
render()
public
const  Vec2&
const
getSize()
public
void
setSize(
const  Vec2& inValue
)
public
void
setSize(
float inWidth
float inHeight
)
public
const  Vec2&
const
getPosition()
public
void
setPosition(
const  Vec2& inValue
)
public
void
setPosition(
float inX
float inY
)
public
bool
const
hasLayer(
Layer::Instance* inLayer
)
public
bool
const
hasLayer(
const  std::string& inId
)
public
void
pushLayer(
Layer::Instance* inLayer
Layer::PushStrategy inPushStrategy
const  std::string& inId
)
protected
void
pushLayerStart(
Layer::Instance* inLayer
)
protected
void
pushLayerBack(
Layer::Instance* inLayer
)
protected
void
pushLayerBefore(
const  std::string& inId
Layer::Instance* inLayer
)
protected
void
pushLayerAfter(
const  std::string& inId
Layer::Instance* inLayer
)
protected
void
setupLayers()
protected
void
destroyLayers()
protected
void
rebuildLayers()
protected
void
deleteLayers()
private
void
loadEvents()
private
void
updateViewComponents()

Members

AccessTypeModifierNameDescription
protected
m_size
protected
m_position
protected
std::vector<Layer::Instance*>
m_layers
protected
std::vector<CCamera*>
m_cameras
protected
std::vector<CLight*>
m_lights
protected
std::vector<CMesh*>
m_meshes