class RED::RenderShaderData

Data record used by a RED::RenderShader for a given hardware platform.

#include <REDRenderShader.h>

Inherits: Object.

Public functions:

RenderShaderData ( )
RenderShaderData ( RED::HARDWARE_PLATFORM iPlatformID, int iShaderTarget )
RenderShaderData ( const RenderShaderData & iSource )
virtual ~RenderShaderData ( )
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 ( )
RED_RCoperator= ( const RenderShaderData & iSource )

Public static functions:

static RED::CIDGetClassID ( )

Public variables:

RED::ShaderProgramID_gshid
int_is_rendercode
int_ltarget
RED::Vector< RED::RenderShaderParameter >_parameters
RED::HARDWARE_PLATFORM_platform_id
RED::ShaderProgramID_pshid
RED::RenderCode_rendercode
RED::ShaderProgramID_vshid

Functions documentation

Default constructor.

Constructor.

Parameters:

iPlatformID:Identifier of the targeted hardware platform.
iShaderTarget:Identifier of the targeted shading configuration.

Copy constructor.

Parameters:

iSource:Source for the copy.

Destructor.

public virtual void * RED::RenderShaderData::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::RenderShaderData::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::RenderShaderData::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::RenderShaderData::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.

Assignment operator.

Performs a copy of the object contents.

Parameters:

iSource:Source for the assignment.

Returns:

RED_OK if the operation has succeeded,
RED_ALLOC_FAILURE if an internal allocation has failed.

Variables documentation

Geometry shader identifier.

Do we have a rendercode for that target ?

Lighting target identifier.

Vector of the shader parameters

Platform identifier.

Pixel shader identifier.

Vertex shader input specification.

Vertex shader identifier.