"L. Spiro Engine"
Classes | Public Types | Public Member Functions | Protected Types | Protected Attributes | Friends

lsg::CShader Class Reference

A shader for the graphics engine. More...

#include <LSGShader.h>

Inheritance diagram for lsg::CShader:
lsg::CDirectX11Shader lsg::CShaderBase

List of all members.

Classes

struct  LSG_ENGINE_UNIFORMS
struct  LSG_FOG
struct  LSG_LIGHT_FULLDATA

Public Types

typedef struct
lsg::CShader::LSG_LIGHT_FULLDATA
LPLSG_LIGHT_DATA
typedef struct
lsg::CShader::LSG_LIGHT_FULLDATA 
LPCLSG_LIGHT_DATA
typedef struct
lsg::CShader::LSG_FOG
LPLSG_FOG
typedef struct
lsg::CShader::LSG_FOG 
LPCLSG_FOG

Public Member Functions

LSVOID LSE_CALL Reset ()
virtual LSG_SHADER_ERRORS LSE_CALL PostCompile (CString &_sError)
virtual LSBOOL LSE_CALL Activate (LSVOID *_pvSysValue)

Protected Types

typedef struct
lsg::CShader::LSG_ENGINE_UNIFORMS
LPLSG_ENGINE_UNIFORMS
typedef struct
lsg::CShader::LSG_ENGINE_UNIFORMS 
LPCLSG_ENGINE_UNIFORMS

Protected Attributes

LSG_ENGINE_UNIFORMS m_euEngineHandles
LSBOOL m_bBeenActivated

Friends

class CFnd

Detailed Description

A shader for the graphics engine.

Class CShader Description: A shader for the graphics engine. This is the object into which the source code is fed and a compiled runnable shader is output.


Member Typedef Documentation

A structure that simply holds engine-specific uniform handles.

Fog data.

Light information. Optimized for speed.


Member Function Documentation

virtual LSBOOL LSE_CALL lsg::CShader::Activate ( LSVOID *  _pvSysValue) [virtual]

Activation callback. This class allows its base class to activate the shader and then applies engine-specific values to the shader once it is applied to the hardware.

Parameters:
_pvSysValueA value with special system meaning.
Returns:
Returns false if there is a failure to apply the shader via the current graphics API.

Reimplemented from lsg::CDirectX11Shader.

virtual LSG_SHADER_ERRORS LSE_CALL lsg::CShader::PostCompile ( CString &  _sError) [virtual]

Post compile. If all shaders are compiled successfully, this is called. We use it to get handles to engine-specific uniforms.

Parameters:
_sErrorThe returned error string if there is an error.
Returns:
Returns an error code or LSG_SE_SUCCESS.

Reimplemented from lsg::CDirectX11Shader.

LSVOID LSE_CALL lsg::CShader::Reset ( )

Reset everything.

Reimplemented from lsg::CDirectX11Shader.


Member Data Documentation

LSBOOL lsg::CShader::m_bBeenActivated [protected]

The first time we are activated we need to set the samplers.

Handles.


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