Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | List of all members
om::graphics::textures::ShadowMap Class Reference

A class that stores a shadow map texture and shadow map texture matrix for that texture. More...

#include <omGraphicsShadowMap.h>

Public Member Functions

 ShadowMap ()
 Create a shadow map object with no associated texture. More...
 
 ShadowMap (const Resource< Texture > &newTexture, const Matrix4 &newShadowTextureMatrix)
 Create a shadow map object for the given shadow map texture and shadow texture matrix. More...
 
const Resource< Texture > & getTexture () const
 Return a pointer to the texture that is used to store this shadow map. More...
 
void setTexture (const Resource< Texture > &newTexture)
 Set a pointer to the texture that is used to store this shadow map. More...
 
const Matrix4getMatrix () const
 Return a reference to the shadow texture matrix for this shadow map. More...
 
void setMatrix (const Matrix4 &newShadowTextureMatrix)
 Set a pointer to the texture that is used to store this shadow map. More...
 

Detailed Description

A class that stores a shadow map texture and shadow map texture matrix for that texture.

The texture matrix transforms points from world space into the normalized texture coordinate space for the light's shadow map.

Constructor & Destructor Documentation

om::graphics::textures::ShadowMap::ShadowMap ( )
inline

Create a shadow map object with no associated texture.

om::graphics::textures::ShadowMap::ShadowMap ( const Resource< Texture > &  newTexture,
const Matrix4 newShadowTextureMatrix 
)
inline

Create a shadow map object for the given shadow map texture and shadow texture matrix.

Member Function Documentation

const Resource<Texture>& om::graphics::textures::ShadowMap::getTexture ( ) const
inline

Return a pointer to the texture that is used to store this shadow map.

void om::graphics::textures::ShadowMap::setTexture ( const Resource< Texture > &  newTexture)
inline

Set a pointer to the texture that is used to store this shadow map.

const Matrix4& om::graphics::textures::ShadowMap::getMatrix ( ) const
inline

Return a reference to the shadow texture matrix for this shadow map.

The texture matrix transforms points from world space into the normalized texture coordinate space for the light's shadow map.

void om::graphics::textures::ShadowMap::setMatrix ( const Matrix4 newShadowTextureMatrix)
inline

Set a pointer to the texture that is used to store this shadow map.

The texture matrix transforms points from world space into the normalized texture coordinate space for the light's shadow map.


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