StateShaderPlatformData

Fields

HARDWARE_PLATFORM

_platform_id

int

_statevec

Functions

CID

GetClassID

void *

As

const void *

As

class T_As

As

class T_As

As

StateShaderPlatformData

~StateShaderPlatformData

Detailed Description

class StateShaderPlatformData : public RED::Object

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

@related class RED::StateShader

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

Public Functions

virtual void *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.

virtual const void *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.

template<class T_As>
inline T_As *As()
template<class T_As>
inline const T_As *As() const
StateShaderPlatformData()

Constructor.

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

virtual ~StateShaderPlatformData()

Destructor.

Public Members

RED::HARDWARE_PLATFORM _platform_id

Platform identifier.

int _statevec[105]

State vector.

Public Static Functions

static inline RED::CID GetClassID()