Public Member Functions | Friends

sp::video::Direct3D9Shader Class Reference

#include <spDirect3D9Shader.hpp>

Inheritance diagram for sp::video::Direct3D9Shader:
sp::video::Shader

List of all members.

Public Member Functions

 Direct3D9Shader (ShaderClass *Table, const EShaderTypes Type, const EShaderVersions Version)
 ~Direct3D9Shader ()
bool compile (const std::list< io::stringc > &ShaderBuffer, const io::stringc &EntryPoint="", const c8 **CompilerOptions=0)
bool setConstant (s32 Number, const EConstantTypes Type, const f32 Value)
bool setConstant (s32 Number, const EConstantTypes Type, const f32 *Buffer, s32 Count)
bool setConstant (s32 Number, const EConstantTypes Type, const dim::vector3df &Position)
bool setConstant (s32 Number, const EConstantTypes Type, const video::color &Color)
bool setConstant (s32 Number, const EConstantTypes Type, const dim::matrix4f &Matrix)
bool setConstant (const io::stringc &Name, const f32 Value)
bool setConstant (const io::stringc &Name, const f32 *Buffer, s32 Count)
bool setConstant (const io::stringc &Name, const s32 Value)
bool setConstant (const io::stringc &Name, const s32 *Buffer, s32 Count)
bool setConstant (const io::stringc &Name, const dim::vector3df &Position)
bool setConstant (const io::stringc &Name, const dim::vector4df &Position)
bool setConstant (const io::stringc &Name, const video::color &Color)
bool setConstant (const io::stringc &Name, const dim::matrix4f &Matrix)
bool setConstant (const f32 *Buffer, s32 StartRegister, s32 ConstAmount)

Friends

class Direct3D9ShaderClass

Constructor & Destructor Documentation

sp::video::Direct3D9Shader::Direct3D9Shader ( ShaderClass Table,
const EShaderTypes  Type,
const EShaderVersions  Version 
)
sp::video::Direct3D9Shader::~Direct3D9Shader (  ) 

Member Function Documentation

bool sp::video::Direct3D9Shader::compile ( const std::list< io::stringc > &  ShaderBuffer,
const io::stringc EntryPoint = "",
const c8 **  CompilerOptions = 0 
) [virtual]

Compiles the given shader source code.

Parameters:
[in] ShaderBuffer Specifies the shader source code in form of a string container. Each string line has to end with the end-of-line character ('
')!
[in] EntryPoint Specifies the shader entry point. This not required for GLSL shaders. But for HLSL and Cg. It's actually just the shader's main function name.
[in] CompilerOptions Specifies the pointer to the comiler option strings.
Returns:
True if the shader could be compiled successful.

Reimplemented from sp::video::Shader.

bool sp::video::Direct3D9Shader::setConstant ( const f32 Buffer,
s32  StartRegister,
s32  ConstAmount 
) [virtual]

Sets floating-point constant arrays for assembly shaders.

Parameters:
[in] Buffer Pointer to a floating-point buffer.
[in] StartRegister Specifies the register start offset (in 4 bytes).
[in] ConstAmount Specifies the count of constants (or rather array size).

Reimplemented from sp::video::Shader.

bool sp::video::Direct3D9Shader::setConstant ( const io::stringc Name,
const dim::matrix4f Matrix 
) [virtual]

Reimplemented from sp::video::Shader.

bool sp::video::Direct3D9Shader::setConstant ( const io::stringc Name,
const video::color Color 
) [virtual]

Reimplemented from sp::video::Shader.

bool sp::video::Direct3D9Shader::setConstant ( const io::stringc Name,
const dim::vector4df Position 
) [virtual]

Reimplemented from sp::video::Shader.

bool sp::video::Direct3D9Shader::setConstant ( const io::stringc Name,
const dim::vector3df Position 
) [virtual]

Reimplemented from sp::video::Shader.

bool sp::video::Direct3D9Shader::setConstant ( const io::stringc Name,
const s32 Buffer,
s32  Count 
) [virtual]

Reimplemented from sp::video::Shader.

bool sp::video::Direct3D9Shader::setConstant ( const io::stringc Name,
const s32  Value 
) [virtual]

Reimplemented from sp::video::Shader.

bool sp::video::Direct3D9Shader::setConstant ( const io::stringc Name,
const f32 Buffer,
s32  Count 
) [virtual]

Reimplemented from sp::video::Shader.

bool sp::video::Direct3D9Shader::setConstant ( const io::stringc Name,
const f32  Value 
) [virtual]

Reimplemented from sp::video::Shader.

bool sp::video::Direct3D9Shader::setConstant ( s32  Number,
const EConstantTypes  Type,
const dim::matrix4f Matrix 
) [virtual]

Reimplemented from sp::video::Shader.

bool sp::video::Direct3D9Shader::setConstant ( s32  Number,
const EConstantTypes  Type,
const video::color Color 
) [virtual]

Reimplemented from sp::video::Shader.

bool sp::video::Direct3D9Shader::setConstant ( s32  Number,
const EConstantTypes  Type,
const dim::vector3df Position 
) [virtual]

Reimplemented from sp::video::Shader.

bool sp::video::Direct3D9Shader::setConstant ( s32  Number,
const EConstantTypes  Type,
const f32 Buffer,
s32  Count 
) [virtual]

Reimplemented from sp::video::Shader.

bool sp::video::Direct3D9Shader::setConstant ( s32  Number,
const EConstantTypes  Type,
const f32  Value 
) [virtual]

Reimplemented from sp::video::Shader.


Friends And Related Function Documentation

friend class Direct3D9ShaderClass [friend]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines