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

#include <reflection2d.h>

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

Public Member Functions

 Reflection2D (bool dynamic, uint faceIndex, const Attribute &attribute)
 
virtual ~Reflection2D ()
 
virtual void create (Material *pMaterial)
 
virtual void addShaderResources (Material *pMaterial)
 
virtual void addShaderCode (Material *pMaterial)
 
void setEnabled (bool enabled)
 
bool isDynamic ()
 
uint getGeometryNormalIndex ()
 
- 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

int enabled
 
bool dynamic
 
uint faceIndex
 
Matrix4fpTransform
 
String enabledStr
 

Static Public Attributes

static const String enabledStrBase
 
static String reflectionCoordString
 

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
 

Detailed Description

This component renders a single planar-reflection to texture2D.

Constructor & Destructor Documentation

◆ Reflection2D()

Texel::Reflection2D::Reflection2D ( bool dynamic,
uint faceIndex,
const Attribute & attribute )
Parameters
flagto indicate need for updating by rendering scene.
indexof the Geometry::normal.

◆ ~Reflection2D()

virtual Texel::Reflection2D::~Reflection2D ( )
virtual

Member Function Documentation

◆ addShaderCode()

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

Implements Texel::Texture.

◆ addShaderResources()

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

Implements Texel::Texture.

◆ create()

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

Reimplemented from Texel::Texture.

◆ getGeometryNormalIndex()

uint Texel::Reflection2D::getGeometryNormalIndex ( )
inline

◆ isDynamic()

bool Texel::Reflection2D::isDynamic ( )
inline

◆ setEnabled()

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

Member Data Documentation

◆ dynamic

bool Texel::Reflection2D::dynamic

◆ enabled

int Texel::Reflection2D::enabled

◆ enabledStr

String Texel::Reflection2D::enabledStr

◆ enabledStrBase

const String Texel::Reflection2D::enabledStrBase
static

◆ faceIndex

uint Texel::Reflection2D::faceIndex

◆ pTransform

Matrix4f* Texel::Reflection2D::pTransform

◆ reflectionCoordString

String Texel::Reflection2D::reflectionCoordString
static

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