OGRE 14.3
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
Ogre::CompositionTargetPass Class Reference

Object representing one render to a RenderTarget or Viewport in the Ogre Composition framework. More...

#include <OgreCompositionTargetPass.h>

+ Inheritance diagram for Ogre::CompositionTargetPass:

Public Types

enum  InputMode { IM_NONE , IM_PREVIOUS }
 Input mode of a TargetPass. More...
 
typedef std::vector< CompositionPass * > Passes
 
typedef VectorIterator< PassesPassIterator
 

Public Member Functions

 CompositionTargetPass (CompositionTechnique *parent)
 
 ~CompositionTargetPass ()
 
bool _isSupported (void)
 Determine if this target pass is supported on the current rendering device.
 
CompositionPasscreatePass (CompositionPass::PassType type=CompositionPass::PT_RENDERQUAD)
 Create a new pass, and return a pointer to it.
 
InputMode getInputMode () const
 Get input mode.
 
float getLodBias ()
 Get the scene LOD bias used by this pass.
 
const StringgetMaterialScheme (void) const
 Get the material scheme used by this target pass.
 
size_t getNumPasses () const
 Get the number of passes.
 
bool getOnlyInitial ()
 Get "only initial" flag.
 
const StringgetOutputName () const
 Get output local texture name.
 
int getOutputSlice () const
 
CompositionTechniquegetParent ()
 Get parent object.
 
CompositionPassgetPass (size_t idx) const
 Get a pass.
 
const PassesgetPasses () const
 Get the Passes in this TargetPass.
 
PassIterator getPassIterator (void)
 Get an iterator over the Passes in this TargetPass.
 
bool getShadowsEnabled (void) const
 Get whether shadows are enabled in this target pass.
 
uint32 getVisibilityMask ()
 Get the scene visibility mask used by this pass.
 
void removeAllPasses ()
 Remove all passes.
 
void removePass (size_t idx)
 Remove a pass.
 
void setInputMode (InputMode mode)
 Set input mode of this TargetPass.
 
void setLodBias (float bias)
 Set the scene LOD bias used by this pass.
 
void setMaterialScheme (const String &schemeName)
 Set the material scheme used by this target pass.
 
void setOnlyInitial (bool value)
 Set "only initial" flag.
 
void setOutputName (const String &out)
 Set output local texture name.
 
void setOutputSlice (int slice)
 sets the slice of output texture
 
void setShadowsEnabled (bool enabled)
 Set whether shadows are enabled in this target pass.
 
void setVisibilityMask (uint32 mask)
 Set the scene visibility mask used by this pass.
 

Detailed Description

Object representing one render to a RenderTarget or Viewport in the Ogre Composition framework.

Member Typedef Documentation

◆ Passes

◆ PassIterator

Member Enumeration Documentation

◆ InputMode

Input mode of a TargetPass.

Enumerator
IM_NONE 
IM_PREVIOUS 

No input.

Output of previous Composition in chain

Constructor & Destructor Documentation

◆ CompositionTargetPass()

Ogre::CompositionTargetPass::CompositionTargetPass ( CompositionTechnique parent)

◆ ~CompositionTargetPass()

Ogre::CompositionTargetPass::~CompositionTargetPass ( )

Member Function Documentation

◆ setInputMode()

void Ogre::CompositionTargetPass::setInputMode ( InputMode  mode)

Set input mode of this TargetPass.

◆ getInputMode()

InputMode Ogre::CompositionTargetPass::getInputMode ( ) const

Get input mode.

◆ setOutputName()

void Ogre::CompositionTargetPass::setOutputName ( const String out)

Set output local texture name.

◆ getOutputName()

const String & Ogre::CompositionTargetPass::getOutputName ( ) const

Get output local texture name.

◆ setOutputSlice()

void Ogre::CompositionTargetPass::setOutputSlice ( int  slice)
inline

sets the slice of output texture

◆ getOutputSlice()

int Ogre::CompositionTargetPass::getOutputSlice ( ) const
inline

◆ setOnlyInitial()

void Ogre::CompositionTargetPass::setOnlyInitial ( bool  value)

Set "only initial" flag.

This makes that this target pass is only executed initially after the effect has been enabled.

◆ getOnlyInitial()

bool Ogre::CompositionTargetPass::getOnlyInitial ( )

Get "only initial" flag.

◆ setVisibilityMask()

void Ogre::CompositionTargetPass::setVisibilityMask ( uint32  mask)

Set the scene visibility mask used by this pass.

◆ getVisibilityMask()

uint32 Ogre::CompositionTargetPass::getVisibilityMask ( )

Get the scene visibility mask used by this pass.

◆ setMaterialScheme()

void Ogre::CompositionTargetPass::setMaterialScheme ( const String schemeName)

Set the material scheme used by this target pass.

Only applicable to targets that render the scene as one of their passes.

See also
Technique::setScheme.

◆ getMaterialScheme()

const String & Ogre::CompositionTargetPass::getMaterialScheme ( void  ) const

Get the material scheme used by this target pass.

Only applicable to targets that render the scene as one of their passes.

See also
Technique::setScheme.

◆ setShadowsEnabled()

void Ogre::CompositionTargetPass::setShadowsEnabled ( bool  enabled)

Set whether shadows are enabled in this target pass.

Only applicable to targets that render the scene as one of their passes.

◆ getShadowsEnabled()

bool Ogre::CompositionTargetPass::getShadowsEnabled ( void  ) const

Get whether shadows are enabled in this target pass.

Only applicable to targets that render the scene as one of their passes.

◆ setLodBias()

void Ogre::CompositionTargetPass::setLodBias ( float  bias)

Set the scene LOD bias used by this pass.

The default is 1.0, everything below that means lower quality, higher means higher quality.

◆ getLodBias()

float Ogre::CompositionTargetPass::getLodBias ( )

Get the scene LOD bias used by this pass.

◆ createPass()

CompositionPass * Ogre::CompositionTargetPass::createPass ( CompositionPass::PassType  type = CompositionPass::PT_RENDERQUAD)

Create a new pass, and return a pointer to it.

◆ removePass()

void Ogre::CompositionTargetPass::removePass ( size_t  idx)

Remove a pass.

It will also be destroyed.

◆ getPass()

CompositionPass * Ogre::CompositionTargetPass::getPass ( size_t  idx) const
inline

Get a pass.

◆ getNumPasses()

size_t Ogre::CompositionTargetPass::getNumPasses ( ) const
inline

Get the number of passes.

◆ getPasses()

const Passes & Ogre::CompositionTargetPass::getPasses ( ) const
inline

Get the Passes in this TargetPass.

◆ removeAllPasses()

void Ogre::CompositionTargetPass::removeAllPasses ( )

Remove all passes.

◆ getPassIterator()

PassIterator Ogre::CompositionTargetPass::getPassIterator ( void  )

Get an iterator over the Passes in this TargetPass.

Deprecated:
use getPasses()

◆ getParent()

CompositionTechnique * Ogre::CompositionTargetPass::getParent ( )

Get parent object.

◆ _isSupported()

bool Ogre::CompositionTargetPass::_isSupported ( void  )

Determine if this target pass is supported on the current rendering device.


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