Chira Engine
A customizable MIT-licensed game engine.
chira::Viewport Class Reference

Public Member Functions

 Viewport (glm::vec2i size_, ColorRGB backgroundColor_={}, bool linearFiltering_=true)
 
SceneaddScene ()
 
SceneaddScene (const std::string &name)
 
SceneaddScene (uuids::uuid uuid)
 
SceneaddScene (uuids::uuid uuid, const std::string &name)
 
ScenegetScene (uuids::uuid sceneID)
 
const auto & getScenes () const
 
bool hasScene (uuids::uuid sceneID)
 
void removeScene (uuids::uuid sceneID)
 
void removeAllScenes ()
 
void update ()
 
void render ()
 
CameraComponentgetCamera () const
 
ColorRGB getBackgroundColor () const
 
void setBackgroundColor (ColorRGB color)
 
glm::vec2i getSize () const
 
void setSize (glm::vec2i size_)
 
bool isLinearFiltered () const
 
void setLinearFiltering (bool enable)
 
Renderer::FrameBufferHandlegetRawHandle ()
 

Detailed Description

Definition at line 8 of file Viewport.h.


The documentation for this class was generated from the following files: