The common base class of Nebula.
Definition refcounted.h:38
The graphics server is the main singleton for the Graphics subsystem.
Definition graphicsserver.h:47
A view describes a camera which can observe a Stage.
Definition view.h:23
const GraphicsEntityId & GetCamera()
get camera
bool IsEnabled() const
returns whether view is enabled
Definition view.h:111
virtual ~View()
destructor
Definition view.cc:35
void SetFrameScript(void(*func)(const Math::rectangle< int > &viewport, IndexT frameIndex, IndexT bufferIndex))
Set run function.
Definition view.h:138
GraphicsEntityId camera
Definition view.h:66
void SetStage(const Ptr< Stage > &stage)
set stage
Definition view.h:93
void(* func)(const Math::rectangle< int > &viewport, IndexT frameIndex, IndexT bufferIndex)
Definition view.h:65
Ptr< Stage > stage
Definition view.h:67
const Math::rectangle< int > & GetViewport()
Get viewport.
Definition view.h:156
void SetViewport(const Math::rectangle< int > &rect)
Set viewport.
Definition view.h:147
const Ptr< Stage > & GetStage() const
get stage
Definition view.h:102
void Render(const IndexT frameIndex, const Timing::Time time, const IndexT bufferIndex)
render through view
Definition view.cc:85
Math::rectangle< int > viewport
Definition view.h:64
void Disable()
disable this view
Definition view.h:129
bool enabled
Definition view.h:68
void SetCamera(const GraphicsEntityId &camera)
set camera
Definition view.h:75
void UpdateConstants()
Update constants.
Definition view.cc:44
void Enable()
enable this view
Definition view.h:120
View()
constructor
Definition view.cc:23
A 2d rectangle class.
Definition rectangle.h:20
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition ptr.h:38
Implements the shader server used by Vulkan.
Definition cameramanager.h:21
double Time
the time datatype
Definition time.h:18
@ Camera
Definition visibility.h:39
The graphics entity is only an Id, to which we can attach GraphicsContexts.
Definition graphicsentity.h:16
Typedefs for the Timing subsystem.
int IndexT
Definition types.h:48