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

#include <projection.h>

Inheritance diagram for Render::Model::Projection:
Render::Model::Position Render::ModelViewUpdate Render::Component DynamicType Render::Model::Skeletal

Public Member Functions

 Projection (const Attribute &attribute)
 
virtual ~Projection ()
 
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, const Matrix4f &viewMatrix)
 
void setProjectionMatrix (const Matrix4f &projectionMatrix)
 
const Matrix4fgetCompositionMatrix ()
 
- Public Member Functions inherited from Render::Model::Position
 Position (const Attribute &attribute)
 
virtual ~Position ()
 
- 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 compositionMatrixString
 
- Static Public Attributes inherited from Render::Model::Position
static const String uniformViewPositionString
 
static const String attributeString
 

Protected Attributes

Matrix4f composition
 
Matrix4f projectionMatrix
 
- Protected Attributes inherited from Render::Component
Attribute attribute
 

Friends

class Material
 

Detailed Description

Applies the projection and composed transforms with respect to the vertex shader.

Constructor & Destructor Documentation

◆ Projection()

Render::Model::Projection::Projection ( const Attribute & attribute)

◆ ~Projection()

virtual Render::Model::Projection::~Projection ( )
virtual

Member Function Documentation

◆ addShaderCode()

virtual void Render::Model::Projection::addShaderCode ( Material * pMaterial)
virtual

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

Reimplemented from Render::Model::Position.

Reimplemented in Render::Model::Skeletal.

◆ addShaderResources()

virtual void Render::Model::Projection::addShaderResources ( Material * pMaterial)
virtual

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

Reimplemented from Render::Model::Position.

Reimplemented in Render::Model::Skeletal.

◆ create()

virtual void Render::Model::Projection::create ( Material * pMaterial)
virtual

Reimplemented from Render::Model::Position.

Reimplemented in Render::Model::Skeletal.

◆ getCompositionMatrix()

const Matrix4f & Render::Model::Projection::getCompositionMatrix ( )
inline

◆ set()

virtual void Render::Model::Projection::set ( const Matrix4f & modelMatrix,
const Matrix4f & viewMatrix )
virtual

◆ setProjectionMatrix()

void Render::Model::Projection::setProjectionMatrix ( const Matrix4f & projectionMatrix)

◆ update()

virtual void Render::Model::Projection::update ( Material * pMaterial)
virtual

Reimplemented from Render::Model::Position.

Reimplemented in Render::Model::Skeletal.

Friends And Related Symbol Documentation

◆ Material

friend class Material
friend

Member Data Documentation

◆ composition

Matrix4f Render::Model::Projection::composition
protected

◆ compositionMatrixString

const String Render::Model::Projection::compositionMatrixString
static

◆ projectionMatrix

Matrix4f Render::Model::Projection::projectionMatrix
protected

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