List of all members.
Public Member Functions |
| Camera (GameObject *gameObject) |
virtual void | deactivated () |
virtual void | render (EngineUniforms *engineUniforms) |
virtual void | resetProjectionMatrix () |
glm::vec4 | clearColor () |
void | setClearColor (glm::vec4 clearColor) |
void | setClearColorBuffer (bool clear) |
bool | clearColorBuffer () |
void | setClearDepthBuffer (bool clear) |
bool | clearDepthBuffer () |
void | setClearStencilBuffer (bool clear) |
bool | clearStencilBuffer () |
void | setupCamera (EngineUniforms *engineUniforms) |
glm::mat4 | projectionMatrix () |
glm::mat4 | viewMatrix () |
void | setProjectionMatrix (glm::mat4 projectionMatrix) |
bool | shadow () const |
void | setShadow (bool renderShadow) |
int | cullingMask () const |
void | setCullingMask (int cullingMask) |
TextureRenderTarget * | target () const |
void | setTarget (TextureRenderTarget *target) |
void | pick (glm::ivec2 point, std::function< void(GameObject *, int)> onPicked, glm::ivec2 size=glm::ivec2{1, 1}, bool returnNullptrOnNoHit=false) |
std::shared_ptr< Material > const & | replacementMaterial () const |
void | setReplacementMaterial (std::shared_ptr< Material > const &replacementMaterial) |
glm::vec2 const & | viewportOffset () const |
void | setViewportOffset (glm::vec2 const &normalizedViewportOffset) |
glm::vec2 const & | viewportDim () const |
void | setViewportDim (glm::vec2 const &normalizedViewportDim) |
Ray | screenPointToRay (glm::vec2 point) |
bool | main () |
void | setMain (bool main) |
void | setIndex (int index) |
int | index () |
Static Public Member Functions |
static std::shared_ptr< Camera > | mainCamera () |
Protected Attributes |
glm::mat4 | mProjectionMatrix = glm::mat4{1} |
glm::vec2 | mNormalizedViewportOffset = glm::vec2(0,0) |
glm::vec2 | mNormalizedViewportDim = glm::vec2(1,1) |
Detailed Description
Definition at line 35 of file camera.h.
The documentation for this class was generated from the following files:
- /Users/morten/Programmering/cpp/kick/src/kick/scene/camera.h
- /Users/morten/Programmering/cpp/kick/src/kick/scene/camera.cpp