OGRE  13.6
Object-Oriented Graphics Rendering Engine
Ogre::RTShader::GBuffer Class Reference

Transform sub render state implementation of writing to GBuffers. More...

#include <OgreShaderExGBuffer.h>

+ Inheritance diagram for Ogre::RTShader::GBuffer:

Public Types

typedef std::vector< TargetLayoutTargetBuffers
 
enum  TargetLayout {
  TL_DEPTH , TL_NORMAL , TL_VIEWPOS , TL_NORMAL_VIEWDEPTH ,
  TL_DIFFUSE_SPECULAR
}
 

Public Member Functions

void copyFrom (const SubRenderState &rhs) override
 
bool createCpuSubPrograms (ProgramSet *programSet) override
 
int getExecutionOrder () const override
 
const StringgetType () const override
 
bool preAddToRenderState (const RenderState *renderState, Pass *srcPass, Pass *dstPass) override
 Called before adding this sub render state to the given render state. More...
 
void setOutBuffers (const TargetBuffers &buffers)
 
- Public Member Functions inherited from Ogre::RTShader::SubRenderState
 SubRenderState ()
 Class default constructor. More...
 
virtual ~SubRenderState ()
 Class destructor. More...
 
SubRenderStateAccessorPtr getAccessor ()
 Return the accessor object to this sub render state. More...
 
SubRenderStateAccessorPtr getAccessor () const
 Return the accessor object to this sub render state. More...
 
SubRenderStateoperator= (const SubRenderState &rhs)
 Operator = declaration. More...
 
virtual bool setParameter (const String &name, const String &value)
 generic set method for parameters that connot be derived in preAddToRenderState More...
 
virtual void updateGpuProgramsParams (Renderable *rend, const Pass *pass, const AutoParamDataSource *source, const LightList *pLightList)
 Update GPU programs parameters before a rendering operation occurs. More...
 

Static Public Attributes

static String Type
 

Detailed Description

Transform sub render state implementation of writing to GBuffers.

Member Typedef Documentation

◆ TargetBuffers

Member Enumeration Documentation

◆ TargetLayout

Enumerator
TL_DEPTH 
TL_NORMAL 
TL_VIEWPOS 
TL_NORMAL_VIEWDEPTH 
TL_DIFFUSE_SPECULAR 

Member Function Documentation

◆ getType()

const String& Ogre::RTShader::GBuffer::getType ( ) const
overridevirtual

◆ getExecutionOrder()

int Ogre::RTShader::GBuffer::getExecutionOrder ( ) const
overridevirtual

◆ copyFrom()

void Ogre::RTShader::GBuffer::copyFrom ( const SubRenderState rhs)
overridevirtual

◆ createCpuSubPrograms()

bool Ogre::RTShader::GBuffer::createCpuSubPrograms ( ProgramSet programSet)
overridevirtual

◆ preAddToRenderState()

bool Ogre::RTShader::GBuffer::preAddToRenderState ( const RenderState renderState,
Pass srcPass,
Pass dstPass 
)
overridevirtual

Called before adding this sub render state to the given render state.

Allows this sub render state class to configure specific parameters depending on source pass or parent render state. Return of false value will cause canceling the add operation.

Parameters
renderStateThe target render state container this sub render state is about to be added.
srcPassThe source pass.
dstPassThe destination pass.

Reimplemented from Ogre::RTShader::SubRenderState.

◆ setOutBuffers()

void Ogre::RTShader::GBuffer::setOutBuffers ( const TargetBuffers buffers)
inline

Member Data Documentation

◆ Type

String Ogre::RTShader::GBuffer::Type
static

The documentation for this class was generated from the following file: