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

#include <skeletal.h>

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

Public Member Functions

 Skeletal (uint boneSize, uint blends, const Attribute &attribute)
 
virtual ~Skeletal ()
 
virtual void create (Material *pMaterial)
 
virtual void update (Material *pMaterial)
 
virtual void addShaderResources (Material *pMaterial)
 
virtual void addShaderCode (Material *pMaterial)
 
- Public Member Functions inherited from Render::Model::Projection
 Projection (const Attribute &attribute)
 
virtual ~Projection ()
 
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 weightAttributeString
 
static const String indexAttributeString
 
static const String matrixString
 
static const String varyingString
 
static const String blendedMatrixString
 
- Static Public Attributes inherited from Render::Model::Projection
static const String compositionMatrixString
 
- Static Public Attributes inherited from Render::Model::Position
static const String uniformViewPositionString
 
static const String attributeString
 

Protected Attributes

uint boneSize
 
uint blends
 
- Protected Attributes inherited from Render::Model::Projection
Matrix4f composition
 
Matrix4f projectionMatrix
 
- Protected Attributes inherited from Render::Component
Attribute attribute
 

Friends

class Material
 

Detailed Description

Applies the projection and composed transforms for each 'bone' with respect to the vertex shader. The technique is known as 'skinning' where by transforms are blended with associated weights.

Constructor & Destructor Documentation

◆ Skeletal()

Render::Model::Skeletal::Skeletal ( uint boneSize,
uint blends,
const Attribute & attribute )
Parameters
Thenumber of bones/joints in this Skeleton.
Thenumber of matrixes to blend. Zero indicates no-blending.

◆ ~Skeletal()

virtual Render::Model::Skeletal::~Skeletal ( )
virtual

Member Function Documentation

◆ addShaderCode()

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

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

Reimplemented from Render::Model::Projection.

◆ addShaderResources()

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

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

Reimplemented from Render::Model::Projection.

◆ create()

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

Reimplemented from Render::Model::Projection.

◆ update()

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

Reimplemented from Render::Model::Projection.

Friends And Related Symbol Documentation

◆ Material

friend class Material
friend

Member Data Documentation

◆ blendedMatrixString

const String Render::Model::Skeletal::blendedMatrixString
static

◆ blends

uint Render::Model::Skeletal::blends
protected

◆ boneSize

uint Render::Model::Skeletal::boneSize
protected

◆ indexAttributeString

const String Render::Model::Skeletal::indexAttributeString
static

◆ matrixString

const String Render::Model::Skeletal::matrixString
static

◆ varyingString

const String Render::Model::Skeletal::varyingString
static

◆ weightAttributeString

const String Render::Model::Skeletal::weightAttributeString
static

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