Rasterfarm-SDK
Loading...
Searching...
No Matches
Texel::Shadow2D Class Reference

#include <shadow2d.h>

Inheritance diagram for Texel::Shadow2D:
Texel::Texture Texel::Sampler Component

Public Member Functions

 Shadow2D (Raster::Light *pLight, bool caster, bool dynamic, const Attribute &attribute)
 
virtual ~Shadow2D ()
 
virtual void create (Material *pMaterial)
 
virtual void addShaderResources (Material *pMaterial)
 
virtual void addShaderCode (Material *pMaterial)
 
void setShadowMVP (const Matrix4f &matrix)
 
void setEnabled (bool enabled)
 
Raster::Light * getLight ()
 
bool isCaster ()
 
bool isDynamic ()
 
- Public Member Functions inherited from Texel::Texture
 Texture (const char *baseSamplerName, TextureType target, const Attribute &attribute, bool projection, bool mixed)
 
 Texture (Engine::Texture *pTexture, const char *baseSamplerName, TextureType target, const Attribute &attribute, bool projection, bool mixed)
 
virtual ~Texture ()
 
virtual void update (Material *pMaterial)
 
Engine::Texture * getTexture ()
 
virtual void setTexture (Engine::Texture *pTexture)
 
bool isProjection ()
 
bool isMixed ()
 
- Public Member Functions inherited from Texel::Sampler
 Sampler (const char *samplerName, const Attribute &attribute)
 
virtual ~Sampler ()
 
uint getSamplerIndex ()
 

Public Attributes

bool caster
 
bool dynamic
 
int enabled
 
Raster::Light * pLight
 
Matrix4f shadowMVP
 
String enabledStr
 
String shadowMVPStr
 
String shadowCoordStr
 

Static Public Attributes

static const String enabledStrBase
 
static const String shadowMVPStrBase
 
static const String shadowCoordStrBase
 

Additional Inherited Members

- Protected Member Functions inherited from Texel::Sampler
void setSamplerName (uint samplerIndex)
 
- Protected Attributes inherited from Texel::Texture
Engine::Texture * pTexture
 
TextureType target
 
bool projection
 
bool mixed
 
- Protected Attributes inherited from Texel::Sampler
String samplerName
 
TextureUnit samplerIndex
 

Constructor & Destructor Documentation

◆ Shadow2D()

Texel::Shadow2D::Shadow2D ( Raster::Light * pLight,
bool caster,
bool dynamic,
const Attribute & attribute )

◆ ~Shadow2D()

virtual Texel::Shadow2D::~Shadow2D ( )
virtual

Member Function Documentation

◆ addShaderCode()

virtual void Texel::Shadow2D::addShaderCode ( Material * pMaterial)
virtual

Implements Texel::Texture.

◆ addShaderResources()

virtual void Texel::Shadow2D::addShaderResources ( Material * pMaterial)
virtual

Implements Texel::Texture.

◆ create()

virtual void Texel::Shadow2D::create ( Material * pMaterial)
virtual

Reimplemented from Texel::Texture.

◆ getLight()

Raster::Light * Texel::Shadow2D::getLight ( )
inline

◆ isCaster()

bool Texel::Shadow2D::isCaster ( )
inline

◆ isDynamic()

bool Texel::Shadow2D::isDynamic ( )
inline

◆ setEnabled()

void Texel::Shadow2D::setEnabled ( bool enabled)

◆ setShadowMVP()

void Texel::Shadow2D::setShadowMVP ( const Matrix4f & matrix)

Member Data Documentation

◆ caster

bool Texel::Shadow2D::caster

True if this component is simultaneously casting shadow.

◆ dynamic

bool Texel::Shadow2D::dynamic

The if the shadow is updated upon each render.

◆ enabled

int Texel::Shadow2D::enabled

◆ enabledStr

String Texel::Shadow2D::enabledStr

◆ enabledStrBase

const String Texel::Shadow2D::enabledStrBase
static

◆ pLight

Raster::Light* Texel::Shadow2D::pLight

The light within the scene.

◆ shadowCoordStr

String Texel::Shadow2D::shadowCoordStr

◆ shadowCoordStrBase

const String Texel::Shadow2D::shadowCoordStrBase
static

◆ shadowMVP

Matrix4f Texel::Shadow2D::shadowMVP

◆ shadowMVPStr

String Texel::Shadow2D::shadowMVPStr

◆ shadowMVPStrBase

const String Texel::Shadow2D::shadowMVPStrBase
static

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