class RED::StateShaderPlatformData

Data used by a RED::StateShader for a given target hardware platform. More...

#include <REDStateShader.h>

Inherits: Object.

Public functions:

StateShaderPlatformData ( )
virtual ~StateShaderPlatformData ( )
virtual void *As ( const RED::CID & iCID )
virtual const void *As ( const RED::CID & iCID ) const
template< class T_As > const T_As *As ( ) const
template< class T_As > T_As *As ( )

Public static functions:

static RED::CIDGetClassID ( )

Public variables:

RED::HARDWARE_PLATFORM_platform_id
int_statevec [RED_RENDER_STATEVEC_SIZE]

Detailed description:

Data used by a RED::StateShader for a given target hardware platform.

This class contains the effective parameters used for the configuration of the graphical board according to the state shader needs.

Functions documentation

Constructor.

Sets the platform to RED::HW_GENERIC and all state parameters to their default value.

Destructor.

public virtual void * RED::StateShaderPlatformData::As(const RED::CID &iCID)

Converts the object to an instance of the given type.

Parameters:

iCID:Requested class.

Returns:

An object pointer of the given class on success, NULL otherwise.

Reimplements: RED::Object::As.

public virtual const void * RED::StateShaderPlatformData::As(const RED::CID &iCID) const

Converts the object to an instance of the given type.

Parameters:

iCID:Requested class.

Returns:

An object pointer of the given class on success, NULL otherwise.

Reimplements: RED::Object::As.

template< class T_As > public const T_As * RED::StateShaderPlatformData::As() const

Template version of the as const method.

Simply set T to be the class you want to retrieve an interface to.

Returns:

A pointer to a const instance of class T on success, NULL otherwise.

Reimplements: RED::Object::As.

template< class T_As > public T_As * RED::StateShaderPlatformData::As()

Template version of the as method.

Simply set T to be the class you want to retrieve an interface to.

Returns:

A pointer to an instance of class T on success, NULL otherwise.

Reimplements: RED::Object::As.

Variables documentation

Platform identifier.

public int RED::StateShaderPlatformData::_statevec[RED_RENDER_STATEVEC_SIZE]

State vector.