OGRE 1.12.10
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
Ogre::RTShader::FFPFog Class Reference

Fog sub render state implementation of the Fixed Function Pipeline. More...

#include <OgreShaderFFPFog.h>

Inheritance diagram for Ogre::RTShader::FFPFog:

Public Types

enum  CalcMode { CM_PER_VERTEX = 1 , CM_PER_PIXEL = 2 }

Public Member Functions

 FFPFog ()
 Class default constructor.
virtual void copyFrom (const SubRenderState &rhs)
CalcMode getCalcMode () const
 Return the current calculation mode.
virtual int getExecutionOrder () const
virtual const StringgetType () const
virtual bool preAddToRenderState (const RenderState *renderState, Pass *srcPass, Pass *dstPass)
void setCalcMode (CalcMode calcMode)
 Set the fog calculation mode.
void setFogProperties (FogMode fogMode, const ColourValue &fogColour, float fogStart, float fogEnd, float fogDensity)
 Set the fog properties this fog sub render state should emulate.
bool setParameter (const String &name, const String &value) override
 generic set method for parameters that connot be derived in preAddToRenderState
virtual void updateGpuProgramsParams (Renderable *rend, const Pass *pass, const AutoParamDataSource *source, const LightList *pLightList)
Public Member Functions inherited from Ogre::RTShader::SubRenderState
 SubRenderState ()
 Class default constructor.
virtual ~SubRenderState ()
 Class destructor.
virtual bool createCpuSubPrograms (ProgramSet *programSet)
 Create sub programs that represents this sub render state as part of a program set.
SubRenderStateAccessorPtr getAccessor ()
 Return the accessor object to this sub render state.
SubRenderStateAccessorPtr getAccessor () const
 Return the accessor object to this sub render state.
SubRenderStateoperator= (const SubRenderState &rhs)
 Operator = declaration.

Static Public Attributes

static String Type

Detailed Description

Fog sub render state implementation of the Fixed Function Pipeline.

See also
http://msdn.microsoft.com/en-us/library/bb173398.aspx Derives from SubRenderState class.

Member Enumeration Documentation

◆ CalcMode

Enumerator
CM_PER_VERTEX 
CM_PER_PIXEL 

Constructor & Destructor Documentation

◆ FFPFog()

Ogre::RTShader::FFPFog::FFPFog ( )

Class default constructor.

Member Function Documentation

◆ getType()

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

◆ getExecutionOrder()

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

◆ updateGpuProgramsParams()

virtual void Ogre::RTShader::FFPFog::updateGpuProgramsParams ( Renderable * rend,
const Pass * pass,
const AutoParamDataSource * source,
const LightList * pLightList )
virtual

◆ copyFrom()

virtual void Ogre::RTShader::FFPFog::copyFrom ( const SubRenderState & rhs)
virtual

◆ preAddToRenderState()

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

◆ setFogProperties()

void Ogre::RTShader::FFPFog::setFogProperties ( FogMode fogMode,
const ColourValue & fogColour,
float fogStart,
float fogEnd,
float fogDensity )

Set the fog properties this fog sub render state should emulate.

Parameters
fogModeThe fog mode to emulate (FOG_NONE, FOG_EXP, FOG_EXP2, FOG_LINEAR).
fogColourThe colour of the fog.
fogStartStart distance of fog, used for linear mode only.
fogEndEnd distance of fog, used for linear mode only.
fogDensityFog density used in exponential modes only.
See also
http://msdn.microsoft.com/en-us/library/bb173401.aspx

◆ setCalcMode()

void Ogre::RTShader::FFPFog::setCalcMode ( CalcMode calcMode)
inline

Set the fog calculation mode.

Either per vertex or per pixel.

Parameters
calcModeThe calculation mode to set.

◆ setParameter()

bool Ogre::RTShader::FFPFog::setParameter ( const String & name,
const String & value )
overridevirtual

generic set method for parameters that connot be derived in preAddToRenderState

Reimplemented from Ogre::RTShader::SubRenderState.

◆ getCalcMode()

CalcMode Ogre::RTShader::FFPFog::getCalcMode ( ) const
inline

Return the current calculation mode.

Member Data Documentation

◆ Type

String Ogre::RTShader::FFPFog::Type
static

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