YAGE  1.0
Yet Another Game Engine
Shadow_Manager Class Reference

Manager for shadows implemented as a Singleton. More...

#include <Shadow_Manager.h>

Public Member Functions

GLuint GetShadowMap () const
 Gets shadow map texture. More...
 
glm::mat4 GetDepthMatrix () const
 Gets the 4x4 depth matrix. More...
 
void SetDepthMatrix (glm::mat4 DepthMatrix)
 Sets the depth matrix. More...
 
void BindForWriting () const
 Bind the depth t exture for writing. More...
 
void Unbind () const
 Unbinds the depth texture. More...
 

Static Public Member Functions

static Shadow_ManagerGetInstance ()
 Gets the instance. More...
 

Static Public Attributes

static const int DEPTH_TEXTURE_SIZE = 1024
 Size of the depth texture in pixels. More...
 

Detailed Description

Manager for shadows implemented as a Singleton.

Author
Harry Gogonis

Member Function Documentation

void Shadow_Manager::BindForWriting ( ) const

Bind the depth t exture for writing.

glm::mat4 Shadow_Manager::GetDepthMatrix ( ) const

Gets the 4x4 depth matrix.

Returns
The depth matrix.
static Shadow_Manager * Shadow_Manager::GetInstance ( )
static

Gets the instance.

Author
Harry
Returns
The Singleton instance
GLuint Shadow_Manager::GetShadowMap ( ) const

Gets shadow map texture.

Returns
The shadow map.
void Shadow_Manager::SetDepthMatrix ( glm::mat4  DepthMatrix)

Sets the depth matrix.

Parameters
DepthMatrixThe depth matrix.
void Shadow_Manager::Unbind ( ) const

Unbinds the depth texture.

Member Data Documentation

const int Shadow_Manager::DEPTH_TEXTURE_SIZE = 1024
static

Size of the depth texture in pixels.