The common base class of Nebula.
Definition refcounted.h:38
bool(* func)(const Math::rectangle< int > &viewport, IndexT frameIndex, IndexT bufferIndex)
Definition view.h:64
const GraphicsEntityId & GetCamera()
get camera
Definition view.h:82
bool IsEnabled() const
returns whether view is enabled
Definition view.h:109
void SetStageMask(const uint16_t stage)
set stage
Definition view.h:91
virtual ~View()
destructor
Definition view.cc:35
friend class GraphicsServer
Definition view.h:60
GraphicsEntityId camera
Definition view.h:65
void SetFrameScript(bool(*func)(const Math::rectangle< int > &viewport, IndexT frameIndex, IndexT bufferIndex))
Set run function.
Definition view.h:136
const uint16_t GetStageMask() const
get stage
Definition view.h:100
const Math::rectangle< int > & GetViewport()
Get viewport.
Definition view.h:154
void SetViewport(const Math::rectangle< int > &rect)
Set viewport.
Definition view.h:145
Math::rectangle< int > viewport
Definition view.h:62
void Disable()
disable this view
Definition view.h:127
bool enabled
Definition view.h:66
void SetCamera(const GraphicsEntityId &camera)
set camera
Definition view.h:73
void UpdateConstants()
Update constants.
Definition view.cc:44
void Enable()
enable this view
Definition view.h:118
View()
constructor
Definition view.cc:23
uint16_t stageMask
Definition view.h:63
bool Render(const IndexT frameIndex, const Timing::Time time, const IndexT bufferIndex)
render through view, returns true if framescript needs resizing
Definition view.cc:85
A 2d rectangle class.
Definition rectangle.h:20
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:41