Rasterfarm-SDK
Loading...
Searching...
No Matches
Render::NormalMatrix Class Reference

#include <normalmatrix.h>

Inheritance diagram for Render::NormalMatrix:
Render::Normal Render::ModelUpdate Render::Component DynamicType

Public Member Functions

 NormalMatrix (const Attribute &attribute)
 
virtual ~NormalMatrix ()
 
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 &modelMatrix)
 
Matrix4fgetMatrix ()
 
void setMatrix (Matrix4f matrix)
 
- Public Member Functions inherited from Render::Normal
 Normal (const Attribute &attribute)
 
virtual ~Normal ()
 
- Public Member Functions inherited from Render::Component
 Component (const Attribute &attribute)
 
virtual ~Component ()
 
const AttributegetAttribute ()
 
- Public Member Functions inherited from DynamicType
 DynamicType ()
 
template<class C >
void addType ()
 
TypeID getDerivedTypeId () const
 
template<class C >
const bool isType () const
 
template<class C >
const C * cast () const
 
template<class C >
C * cast ()
 
template<class FROM , class TO >
TO * cast ()
 
template<class FROM , class TO >
const TO * cast () const
 

Public Attributes

Matrix4f normalMatrix
 

Static Public Attributes

static const String uniformString
 
- Static Public Attributes inherited from Render::Normal
static const String varyingString
 

Protected Attributes

Vector3fArray normal
 
- Protected Attributes inherited from Render::Component
Attribute attribute
 

Friends

class Surface::Material
 

Constructor & Destructor Documentation

◆ NormalMatrix()

Render::NormalMatrix::NormalMatrix ( const Attribute & attribute)

◆ ~NormalMatrix()

virtual Render::NormalMatrix::~NormalMatrix ( )
virtual

Member Function Documentation

◆ addShaderCode()

virtual void Render::NormalMatrix::addShaderCode ( Material * pMaterial)
virtual

Add shader-code for vertex, tessellation, geometry, and fragment shaders.

Implements Render::Normal.

◆ addShaderResources()

virtual void Render::NormalMatrix::addShaderResources ( Material * pMaterial)
virtual

Add your uniforms, attributes, and varyings along with resources utilized by your shader-code modules.

Implements Render::Normal.

◆ create()

virtual void Render::NormalMatrix::create ( Material * pMaterial)
virtual

Implements Render::Normal.

◆ getMatrix()

Matrix4f & Render::NormalMatrix::getMatrix ( )
inline

◆ set()

virtual void Render::NormalMatrix::set ( const Matrix4f & modelMatrix)
virtual

Implements Render::ModelUpdate.

◆ setMatrix()

void Render::NormalMatrix::setMatrix ( Matrix4f matrix)
inline

◆ update()

virtual void Render::NormalMatrix::update ( Material * pMaterial)
virtual

Implements Render::Normal.

Friends And Related Symbol Documentation

◆ Surface::Material

friend class Surface::Material
friend

Member Data Documentation

◆ normal

Vector3fArray Render::NormalMatrix::normal
protected

◆ normalMatrix

Matrix4f Render::NormalMatrix::normalMatrix

◆ uniformString

const String Render::NormalMatrix::uniformString
static

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