Nebula
Loading...
Searching...
No Matches
view.cc File Reference

Namespaces

namespace  Graphics
 Implements the shader server used by Vulkan.

Functions

ViewId Graphics::CreateView (const ViewCreateInfo &info)
 Create a new view.
void Graphics::DestroyView (const ViewId id)
 Destroy view.
void Graphics::ViewApply (const ViewId id)
 Apply view.
bool Graphics::ViewRender (const ViewId id, const IndexT frameIndex, const Timing::Time time, const IndexT bufferIndex)
 Render view.
void Graphics::ViewSetFrameScript (const ViewId id, bool(*func)(const Math::rectangle< int > &viewport, IndexT frameIndex, IndexT bufferIndex))
 Set view frame script.
void Graphics::ViewSetViewport (const ViewId id, const Math::rectangle< int > &rect)
 Set view viewport.
const Math::rectangle< int > & Graphics::ViewGetViewport (const ViewId id)
 Get view viewport.
void Graphics::ViewSetCamera (const ViewId id, const GraphicsEntityId &camera)
 Set view camera.
const GraphicsEntityIdGraphics::ViewGetCamera (const ViewId id)
 Get view camera.
Shared::ViewConstants::STRUCT & Graphics::ViewGetViewConstants (const ViewId id)
 Get view constants.
Shared::ShadowViewConstants::STRUCT & Graphics::ViewGetShadowConstants (const ViewId id)
 Get shadow view constants.
void Graphics::ViewSetStageMask (const ViewId id, const Graphics::StageMask stage)
 Set view stage.
const Graphics::StageMask Graphics::ViewGetStageMask (const ViewId id)
 Get view stage.
void Graphics::ViewEnable (const ViewId id)
 Enable view.
void Graphics::ViewDisable (const ViewId id)
 Disable view.
bool Graphics::ViewIsEnabled (const ViewId id)
 Check if view is enabled.

Variables

ViewAllocator Graphics::viewAllocator