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

#include <normalvertex.h>

Inheritance diagram for Render::NormalVertex:
Render::Normal Render::Component DynamicType

Public Member Functions

 NormalVertex (const Attribute &attribute)
 
 NormalVertex (const Vector3fArray &normal, const Attribute &attribute)
 
virtual ~NormalVertex ()
 
virtual void create (Material *pMaterial)
 
virtual void update (Material *pMaterial)
 
virtual void addShaderResources (Material *pMaterial)
 
virtual void addShaderCode (Material *pMaterial)
 
const Vector3fArraygetNormalArray ()
 
void setNormalArray (const Vector3fArray &array)
 
void setNormalArray (const Vector3fInitializer &list, uint startIndex=0)
 
void setNormal (const Vector3f &normal, uint index)
 
void reverseNormals ()
 
String normalsToCArray ()
 
- 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
 

Static Public Attributes

static const String attributeString
 
- 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

◆ NormalVertex() [1/2]

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

The resources of this class may be enabled by other components prior to call from Material to add shader resouces.

Parameters
Createa attribute buffer.
Createa varying vector.
Createa uniform matrix.

◆ NormalVertex() [2/2]

Render::NormalVertex::NormalVertex ( const Vector3fArray & normal,
const Attribute & attribute )

◆ ~NormalVertex()

virtual Render::NormalVertex::~NormalVertex ( )
virtual

Member Function Documentation

◆ addShaderCode()

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

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

Implements Render::Normal.

◆ addShaderResources()

virtual void Render::NormalVertex::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::NormalVertex::create ( Material * pMaterial)
virtual

Implements Render::Normal.

◆ getNormalArray()

const Vector3fArray & Render::NormalVertex::getNormalArray ( )
inline

◆ normalsToCArray()

String Render::NormalVertex::normalsToCArray ( )

◆ reverseNormals()

void Render::NormalVertex::reverseNormals ( )

◆ setNormal()

void Render::NormalVertex::setNormal ( const Vector3f & normal,
uint index )

◆ setNormalArray() [1/2]

void Render::NormalVertex::setNormalArray ( const Vector3fArray & array)
inline

◆ setNormalArray() [2/2]

void Render::NormalVertex::setNormalArray ( const Vector3fInitializer & list,
uint startIndex = 0 )

◆ update()

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

Implements Render::Normal.

Friends And Related Symbol Documentation

◆ Surface::Material

friend class Surface::Material
friend

Member Data Documentation

◆ attributeString

const String Render::NormalVertex::attributeString
static

◆ normal

Vector3fArray Render::NormalVertex::normal
protected

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