|
YAGE
1.0
Yet Another Game Engine
|
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_Manager * | GetInstance () |
| Gets the instance. More... | |
Static Public Attributes | |
| static const int | DEPTH_TEXTURE_SIZE = 1024 |
| Size of the depth texture in pixels. More... | |
Manager for shadows implemented as a Singleton.
| void Shadow_Manager::BindForWriting | ( | ) | const |
Bind the depth t exture for writing.
| glm::mat4 Shadow_Manager::GetDepthMatrix | ( | ) | const |
Gets the 4x4 depth matrix.
|
static |
Gets the instance.
| GLuint Shadow_Manager::GetShadowMap | ( | ) | const |
Gets shadow map texture.
| void Shadow_Manager::SetDepthMatrix | ( | glm::mat4 | DepthMatrix | ) |
Sets the depth matrix.
| DepthMatrix | The depth matrix. |
| void Shadow_Manager::Unbind | ( | ) | const |
Unbinds the depth texture.
|
static |
Size of the depth texture in pixels.