OGRE
13.6
Object-Oriented Graphics Rendering Engine
|
Object representing one pass or operation in a composition sequence. More...
#include <OgreCompositionPass.h>
Classes | |
struct | InputTex |
Inputs (for material used for rendering the quad) More... | |
Public Types | |
enum | PassType { PT_CLEAR , PT_STENCIL , PT_RENDERSCENE , PT_RENDERQUAD , PT_RENDERCUSTOM , PT_COMPUTE } |
Enumeration that enumerates the various composition pass types. More... | |
Public Member Functions | |
CompositionPass (CompositionTargetPass *parent) | |
~CompositionPass () | |
bool | _isSupported (void) |
Determine if this target pass is supported on the current rendering device. More... | |
void | clearAllInputs () |
Clear all inputs. More... | |
bool | getAlignCameraToFace () const |
bool | getAutomaticColour () const |
Retrieves if the clear colour is automatically set to the background colour of the original viewport. More... | |
const String & | getCameraName () const |
uint32 | getClearBuffers () const |
Get the viewport clear buffers. More... | |
const ColourValue & | getClearColour () const |
Get the viewport clear colour (defaults to 0,0,0,0) More... | |
float | getClearDepth () const |
Get the viewport clear depth (defaults to 1.0) More... | |
uint16 | getClearStencil () const |
Get the viewport clear stencil value (defaults to 0) More... | |
const String & | getCustomType () const |
Get the type name of this custom composition pass. More... | |
uint8 | getFirstRenderQueue () const |
Get the first render queue to be rendered in this pass (inclusive) More... | |
uint32 | getIdentifier () const |
Get the identifier for this pass. More... | |
const InputTex & | getInput (size_t id) const |
Get the value of an input. More... | |
uint8 | getLastRenderQueue () const |
Get the last render queue to be rendered in this pass (inclusive) More... | |
const MaterialPtr & | getMaterial () const |
Get the material used by this pass. More... | |
const String & | getMaterialScheme (void) const |
Get the material scheme used by this pass. More... | |
size_t | getNumInputs () const |
Get the number of inputs used. More... | |
CompositionTargetPass * | getParent () |
Get parent object. More... | |
bool | getQuadCorners (FloatRect &quad) const |
Get quad normalised positions [-1;1]x[-1;1]. More... | |
bool | getQuadFarCorners () const |
Returns true if camera frustum far corners are provided in the quad. More... | |
bool | getQuadFarCornersViewSpace () const |
Returns true if the far corners provided in the quad are in view space. More... | |
bool | getStencilCheck () const |
Get stencil check enable. More... | |
StencilOperation | getStencilDepthFailOp () const |
Get stencil depth fail operation. More... | |
StencilOperation | getStencilFailOp () const |
Get stencil fail operation. More... | |
CompareFunction | getStencilFunc () const |
Get stencil compare function. More... | |
uint32 | getStencilMask () const |
Get stencil mask. More... | |
StencilOperation | getStencilPassOp () const |
Get stencil pass operation. More... | |
uint32 | getStencilRefValue () const |
Get stencil reference value. More... | |
const StencilState & | getStencilState () const |
bool | getStencilTwoSidedOperation () const |
Get two sided stencil operation. More... | |
const Vector3i & | getThreadGroups () const |
PassType | getType () const |
Get the type of composition pass. More... | |
void | setAlignCameraToFace (bool val) |
void | setAutomaticColour (bool val) |
Set the clear colour to be the background colour of the original viewport. More... | |
void | setCameraName (const String &name) |
void | setClearBuffers (uint32 val) |
Would be nice to have for RENDERSCENE: flags to: exclude transparents override material (at least – color) More... | |
void | setClearColour (const ColourValue &val) |
Set the viewport clear colour (defaults to 0,0,0,0) More... | |
void | setClearDepth (float depth) |
Set the viewport clear depth (defaults to 1.0) More... | |
void | setClearStencil (uint16 value) |
Set the viewport clear stencil value (defaults to 0) More... | |
void | setCustomType (const String &customType) |
Set the type name of this custom composition pass. More... | |
void | setFirstRenderQueue (uint8 id) |
Set the first render queue to be rendered in this pass (inclusive) More... | |
void | setIdentifier (uint32 id) |
Set an identifier for this pass. More... | |
void | setInput (size_t id, const String &input=BLANKSTRING, size_t mrtIndex=0) |
Set an input local texture. More... | |
void | setLastRenderQueue (uint8 id) |
Set the last render queue to be rendered in this pass (inclusive) More... | |
void | setMaterial (const MaterialPtr &mat) |
Set the material used by this pass. More... | |
void | setMaterialName (const String &name) |
Set the material used by this pass. More... | |
void | setMaterialScheme (const String &schemeName) |
Set the material scheme used by this pass. More... | |
void | setQuadCorners (const FloatRect &quad) |
Set quad normalised positions [-1;1]x[-1;1]. More... | |
void | setQuadFarCorners (bool farCorners, bool farCornersViewSpace) |
Sets the use of camera frustum far corners provided in the quad's normals. More... | |
void | setStencilCheck (bool value) |
Set stencil check on or off. More... | |
void | setStencilDepthFailOp (StencilOperation value) |
Set stencil depth fail operation. More... | |
void | setStencilFailOp (StencilOperation value) |
Set stencil fail operation. More... | |
void | setStencilFunc (CompareFunction value) |
Set stencil compare function. More... | |
void | setStencilMask (uint32 value) |
Set stencil mask. More... | |
void | setStencilPassOp (StencilOperation value) |
Set stencil pass operation. More... | |
void | setStencilRefValue (uint32 value) |
Set stencil reference value. More... | |
void | setStencilTwoSidedOperation (bool value) |
Set two sided stencil operation. More... | |
void | setThreadGroups (const Vector3i &g) |
void | setType (PassType type) |
Set the type of composition pass. More... | |
Object representing one pass or operation in a composition sequence.
This provides a method to conveniently interleave RenderSystem commands between Render Queues.
Enumeration that enumerates the various composition pass types.
Ogre::CompositionPass::CompositionPass | ( | CompositionTargetPass * | parent | ) |
Ogre::CompositionPass::~CompositionPass | ( | ) |
void Ogre::CompositionPass::setType | ( | PassType | type | ) |
Set the type of composition pass.
PassType Ogre::CompositionPass::getType | ( | ) | const |
Get the type of composition pass.
void Ogre::CompositionPass::setIdentifier | ( | uint32 | id | ) |
Set an identifier for this pass.
This identifier can be used to "listen in" on this pass with an CompositorInstance::Listener.
uint32 Ogre::CompositionPass::getIdentifier | ( | ) | const |
Get the identifier for this pass.
void Ogre::CompositionPass::setMaterial | ( | const MaterialPtr & | mat | ) |
Set the material used by this pass.
void Ogre::CompositionPass::setMaterialName | ( | const String & | name | ) |
Set the material used by this pass.
const MaterialPtr& Ogre::CompositionPass::getMaterial | ( | ) | const |
Get the material used by this pass.
void Ogre::CompositionPass::setFirstRenderQueue | ( | uint8 | id | ) |
Set the first render queue to be rendered in this pass (inclusive)
uint8 Ogre::CompositionPass::getFirstRenderQueue | ( | ) | const |
Get the first render queue to be rendered in this pass (inclusive)
void Ogre::CompositionPass::setLastRenderQueue | ( | uint8 | id | ) |
Set the last render queue to be rendered in this pass (inclusive)
uint8 Ogre::CompositionPass::getLastRenderQueue | ( | ) | const |
Get the last render queue to be rendered in this pass (inclusive)
void Ogre::CompositionPass::setMaterialScheme | ( | const String & | schemeName | ) |
Set the material scheme used by this pass.
const String& Ogre::CompositionPass::getMaterialScheme | ( | void | ) | const |
Get the material scheme used by this pass.
void Ogre::CompositionPass::setClearBuffers | ( | uint32 | val | ) |
Would be nice to have for RENDERSCENE: flags to: exclude transparents override material (at least – color)
Set the viewport clear buffers (defaults to FBT_COLOUR|FBT_DEPTH)
val | is a combination of FBT_COLOUR, FBT_DEPTH, FBT_STENCIL. |
uint32 Ogre::CompositionPass::getClearBuffers | ( | ) | const |
Get the viewport clear buffers.
void Ogre::CompositionPass::setClearColour | ( | const ColourValue & | val | ) |
Set the viewport clear colour (defaults to 0,0,0,0)
const ColourValue& Ogre::CompositionPass::getClearColour | ( | ) | const |
Get the viewport clear colour (defaults to 0,0,0,0)
void Ogre::CompositionPass::setAutomaticColour | ( | bool | val | ) |
Set the clear colour to be the background colour of the original viewport.
bool Ogre::CompositionPass::getAutomaticColour | ( | ) | const |
Retrieves if the clear colour is automatically set to the background colour of the original viewport.
void Ogre::CompositionPass::setClearDepth | ( | float | depth | ) |
Set the viewport clear depth (defaults to 1.0)
float Ogre::CompositionPass::getClearDepth | ( | ) | const |
Get the viewport clear depth (defaults to 1.0)
void Ogre::CompositionPass::setClearStencil | ( | uint16 | value | ) |
Set the viewport clear stencil value (defaults to 0)
uint16 Ogre::CompositionPass::getClearStencil | ( | ) | const |
Get the viewport clear stencil value (defaults to 0)
void Ogre::CompositionPass::setStencilCheck | ( | bool | value | ) |
Set stencil check on or off.
bool Ogre::CompositionPass::getStencilCheck | ( | ) | const |
Get stencil check enable.
void Ogre::CompositionPass::setStencilFunc | ( | CompareFunction | value | ) |
Set stencil compare function.
CompareFunction Ogre::CompositionPass::getStencilFunc | ( | ) | const |
Get stencil compare function.
void Ogre::CompositionPass::setStencilRefValue | ( | uint32 | value | ) |
Set stencil reference value.
uint32 Ogre::CompositionPass::getStencilRefValue | ( | ) | const |
Get stencil reference value.
void Ogre::CompositionPass::setStencilMask | ( | uint32 | value | ) |
Set stencil mask.
uint32 Ogre::CompositionPass::getStencilMask | ( | ) | const |
Get stencil mask.
void Ogre::CompositionPass::setStencilFailOp | ( | StencilOperation | value | ) |
Set stencil fail operation.
StencilOperation Ogre::CompositionPass::getStencilFailOp | ( | ) | const |
Get stencil fail operation.
void Ogre::CompositionPass::setStencilDepthFailOp | ( | StencilOperation | value | ) |
Set stencil depth fail operation.
StencilOperation Ogre::CompositionPass::getStencilDepthFailOp | ( | ) | const |
Get stencil depth fail operation.
void Ogre::CompositionPass::setStencilPassOp | ( | StencilOperation | value | ) |
Set stencil pass operation.
StencilOperation Ogre::CompositionPass::getStencilPassOp | ( | ) | const |
Get stencil pass operation.
void Ogre::CompositionPass::setStencilTwoSidedOperation | ( | bool | value | ) |
Set two sided stencil operation.
bool Ogre::CompositionPass::getStencilTwoSidedOperation | ( | ) | const |
Get two sided stencil operation.
|
inline |
void Ogre::CompositionPass::setInput | ( | size_t | id, |
const String & | input = BLANKSTRING , |
||
size_t | mrtIndex = 0 |
||
) |
Set an input local texture.
An empty string clears the input.
id | Input to set. Must be in 0..OGRE_MAX_TEXTURE_LAYERS-1 |
input | Which texture to bind to this input. An empty string clears the input. |
mrtIndex | Which surface of an MRT to retrieve |
const InputTex& Ogre::CompositionPass::getInput | ( | size_t | id | ) | const |
Get the value of an input.
id | Input to get. Must be in 0..OGRE_MAX_TEXTURE_LAYERS-1. |
size_t Ogre::CompositionPass::getNumInputs | ( | ) | const |
Get the number of inputs used.
void Ogre::CompositionPass::clearAllInputs | ( | ) |
Clear all inputs.
CompositionTargetPass* Ogre::CompositionPass::getParent | ( | ) |
Get parent object.
bool Ogre::CompositionPass::_isSupported | ( | void | ) |
Determine if this target pass is supported on the current rendering device.
|
inline |
Set quad normalised positions [-1;1]x[-1;1].
|
inline |
Get quad normalised positions [-1;1]x[-1;1].
void Ogre::CompositionPass::setQuadFarCorners | ( | bool | farCorners, |
bool | farCornersViewSpace | ||
) |
Sets the use of camera frustum far corners provided in the quad's normals.
bool Ogre::CompositionPass::getQuadFarCorners | ( | ) | const |
Returns true if camera frustum far corners are provided in the quad.
bool Ogre::CompositionPass::getQuadFarCornersViewSpace | ( | ) | const |
Returns true if the far corners provided in the quad are in view space.
void Ogre::CompositionPass::setCustomType | ( | const String & | customType | ) |
Set the type name of this custom composition pass.
const String& Ogre::CompositionPass::getCustomType | ( | ) | const |
Get the type name of this custom composition pass.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |