OGRE  1.12.13
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

virtual void copyFrom (const SubRenderState &rhs)
 
virtual bool createCpuSubPrograms (ProgramSet *programSet)
 
virtual int getExecutionOrder () const
 
virtual const StringgetType () const
 
bool preAddToRenderState (const RenderState *renderState, Pass *srcPass, Pass *dstPass)
 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()

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

◆ getExecutionOrder()

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

◆ copyFrom()

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

◆ createCpuSubPrograms()

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

◆ preAddToRenderState()

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

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: