kick
Public Member Functions | Static Public Member Functions | Protected Attributes
kick::Camera Class Reference
Inheritance diagram for kick::Camera:
kick::Component kick::CameraOrthographic kick::CameraPerspective

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)
TextureRenderTargettarget () 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< CameramainCamera ()

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:
 All Classes Functions Variables