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

#include <normal2d.h>

Inheritance diagram for Texel::Normal2D:
Texel::Texture2D ViewUpdate Texel::Texture Texel::Sampler Component

Public Member Functions

 Normal2D (float *pLightPosition, Engine::Texture *pTexture, const Attribute &attribute)
 
 Normal2D (float *pLightPosition, Engine::Texture *pTexture, const Vector3fArray &tangent, const Vector3fArray &bitangent, const Attribute &attribute)
 
 Normal2D (Raster::Light *pObject, Engine::Texture *pTexture, const Attribute &attribute)
 
 Normal2D (Raster::Light *pObject, Engine::Texture *pTexture, const Vector3fArray &tangent, const Vector3fArray &bitangent, const Attribute &attribute)
 
virtual ~Normal2D ()
 
virtual void create (Material *pMaterial)
 
virtual void update (Material *pMaterial)
 
virtual void addShaderResources (Material *pMaterial)
 
virtual void addShaderCode (Material *pMaterial)
 
virtual void set (const Matrix4f &viewMatrix)
 
void setLight (float *pPosition)
 
void setLight (Raster::Light *pObject)
 
void setAmbient (const Vertex3f &color)
 
void setSpecular (const Vertex3f &color)
 
void setDiffuse (const Vertex3f &color)
 
void setShine (float shine)
 
Vector3fArraygetTangentArray ()
 
Vector3fArraygetBiTangentArray ()
 
void createTangents (Shape::Geometry *pGeometry)
 
- Public Member Functions inherited from Texel::Texture2D
 Texture2D (const Attribute &attribute, bool mixed=true, const char *baseSamplerName="s_texture2d")
 
 Texture2D (Engine::Texture *pTexture, const Attribute &attribute, bool mixed=true, const char *baseSamplerName="s_texture2d")
 
virtual ~Texture2D ()
 
Vector2fArraygetTextureCoord ()
 
void setTextureCoordArray (const Vector2fArray &array)
 
void setTextureCoord (const Vector2f &textureCoord, uint index)
 
- 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 ()
 
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 ()
 

Static Public Attributes

static const String tangentAttributeString
 
static const String bitangentAttributeString
 
- Static Public Attributes inherited from Texel::Texture2D
static const String attributeString
 
static const String varyingString
 

Protected Attributes

Matrix4f model
 
Render::NormalVertexpNormalVertex
 
Render::NormalMatrixpNormalMatrix
 
Vertex3f viewPosition
 
Vector3f ambient
 
Vector3f specular
 
Vector3f diffuse
 
float shine
 
floatpLightPosition
 
Vector3fArray tangent
 
Vector3fArray bitangent
 
bool calculateTangents
 
- Protected Attributes inherited from Texel::Texture2D
Vector2fArray textureCoord
 
- 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
 

Additional Inherited Members

- Protected Member Functions inherited from Texel::Sampler
void setSamplerName (uint samplerIndex)
 

Constructor & Destructor Documentation

◆ Normal2D() [1/4]

Texel::Normal2D::Normal2D ( float * pLightPosition,
Engine::Texture * pTexture,
const Attribute & attribute )

◆ Normal2D() [2/4]

Texel::Normal2D::Normal2D ( float * pLightPosition,
Engine::Texture * pTexture,
const Vector3fArray & tangent,
const Vector3fArray & bitangent,
const Attribute & attribute )

◆ Normal2D() [3/4]

Texel::Normal2D::Normal2D ( Raster::Light * pObject,
Engine::Texture * pTexture,
const Attribute & attribute )

◆ Normal2D() [4/4]

Texel::Normal2D::Normal2D ( Raster::Light * pObject,
Engine::Texture * pTexture,
const Vector3fArray & tangent,
const Vector3fArray & bitangent,
const Attribute & attribute )

◆ ~Normal2D()

virtual Texel::Normal2D::~Normal2D ( )
virtual

Member Function Documentation

◆ addShaderCode()

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

Reimplemented from Texel::Texture2D.

◆ addShaderResources()

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

Reimplemented from Texel::Texture2D.

◆ create()

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

Reimplemented from Texel::Texture2D.

◆ createTangents()

void Texel::Normal2D::createTangents ( Shape::Geometry * pGeometry)

◆ getBiTangentArray()

Vector3fArray & Texel::Normal2D::getBiTangentArray ( )
inline

◆ getTangentArray()

Vector3fArray & Texel::Normal2D::getTangentArray ( )
inline

◆ set()

virtual void Texel::Normal2D::set ( const Matrix4f & viewMatrix)
virtual

◆ setAmbient()

void Texel::Normal2D::setAmbient ( const Vertex3f & color)

◆ setDiffuse()

void Texel::Normal2D::setDiffuse ( const Vertex3f & color)

◆ setLight() [1/2]

void Texel::Normal2D::setLight ( float * pPosition)
inline

◆ setLight() [2/2]

void Texel::Normal2D::setLight ( Raster::Light * pObject)

◆ setShine()

void Texel::Normal2D::setShine ( float shine)

◆ setSpecular()

void Texel::Normal2D::setSpecular ( const Vertex3f & color)

◆ update()

virtual void Texel::Normal2D::update ( Material * pMaterial)
virtual

Reimplemented from Texel::Texture2D.

Member Data Documentation

◆ ambient

Vector3f Texel::Normal2D::ambient
protected

Array describing the color of the ambient light. Ambient-light is independent of light-position and view-position.

◆ bitangent

Vector3fArray Texel::Normal2D::bitangent
protected

An array of vertex bitangents.

◆ bitangentAttributeString

const String Texel::Normal2D::bitangentAttributeString
static

◆ calculateTangents

bool Texel::Normal2D::calculateTangents
protected

◆ diffuse

Vector3f Texel::Normal2D::diffuse
protected

Array describing the color of the diffuse light. Diffuse-light is dependent on the light-position.

◆ model

Matrix4f Texel::Normal2D::model
protected

◆ pLightPosition

float* Texel::Normal2D::pLightPosition
protected

The light-position within the scene.

◆ pNormalMatrix

Render::NormalMatrix* Texel::Normal2D::pNormalMatrix
protected

Pointer to component containing the normal-matrix. Normal2D will only allocate if does not exist.

◆ pNormalVertex

Render::NormalVertex* Texel::Normal2D::pNormalVertex
protected

Pointer to component containing the normal-attribute array. Normal2D will only allocate if does not exist.

◆ shine

float Texel::Normal2D::shine
protected

Factor of 'shine' for the light.

◆ specular

Vector3f Texel::Normal2D::specular
protected

Array describing the color of the specular light. Specular-light is dependent on the light-position and view-position.

◆ tangent

Vector3fArray Texel::Normal2D::tangent
protected

An array of vertex tangents.

◆ tangentAttributeString

const String Texel::Normal2D::tangentAttributeString
static

◆ viewPosition

Vertex3f Texel::Normal2D::viewPosition
protected

This is the position of the view-matrix or camera-source and the represents the point-of-view.


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