#include <OgreCompositionPass.h>
Public Types | |
enum | PassType { PT_CLEAR, PT_STENCIL, PT_RENDERSCENE, PT_RENDERQUAD } |
Enumeration that enumerates the various composition pass types. More... | |
Public Member Functions | |
CompositionPass (CompositionTargetPass *parent) | |
~CompositionPass () | |
void | setType (PassType type) |
Set the type of composition pass. | |
PassType | getType () const |
Get the type of composition pass. | |
void | setIdentifier (uint32 id) |
Set an identifier for this pass. | |
uint32 | getIdentifier () const |
Get the identifier for this pass. | |
void | setMaterial (MaterialPtr mat) |
Set the material used by this pass. | |
void | setMaterialName (const String &name) |
Set the material used by this pass. | |
MaterialPtr | getMaterial () const |
Get the material used by this pass. | |
void | setFirstRenderQueue (uint8 id) |
Set the first render queue to be rendered in this pass (inclusive). | |
uint8 | getFirstRenderQueue () |
Get the first render queue to be rendered in this pass (inclusive). | |
void | setLastRenderQueue (uint8 id) |
Set the last render queue to be rendered in this pass (inclusive). | |
uint8 | getLastRenderQueue () |
Get the last render queue to be rendered in this pass (inclusive). | |
void | setClearBuffers (uint32 val) |
Set the viewport clear buffers (defaults to FBT_COLOUR|FBT_DEPTH). | |
uint32 | getClearBuffers () |
Get the viewport clear buffers. | |
void | setClearColour (ColourValue val) |
Set the viewport clear colour (defaults to 0,0,0,0). | |
const ColourValue & | getClearColour () |
Get the viewport clear colour (defaults to 0,0,0,0). | |
void | setClearDepth (Real depth) |
Set the viewport clear depth (defaults to 1.0). | |
Real | getClearDepth () |
Get the viewport clear depth (defaults to 1.0). | |
void | setClearStencil (uint32 value) |
Set the viewport clear stencil value (defaults to 0). | |
uint32 | getClearStencil () |
Get the viewport clear stencil value (defaults to 0). | |
void | setStencilCheck (bool value) |
Set stencil check on or off. | |
bool | getStencilCheck () |
Get stencil check enable. | |
void | setStencilFunc (CompareFunction value) |
Set stencil compare function. | |
CompareFunction | getStencilFunc () |
Get stencil compare function. | |
void | setStencilRefValue (uint32 value) |
Set stencil reference value. | |
uint32 | getStencilRefValue () |
Get stencil reference value. | |
void | setStencilMask (uint32 value) |
Set stencil mask. | |
uint32 | getStencilMask () |
Get stencil mask. | |
void | setStencilFailOp (StencilOperation value) |
Set stencil fail operation. | |
StencilOperation | getStencilFailOp () |
Get stencil fail operation. | |
void | setStencilDepthFailOp (StencilOperation value) |
Set stencil depth fail operation. | |
StencilOperation | getStencilDepthFailOp () |
Get stencil depth fail operation. | |
void | setStencilPassOp (StencilOperation value) |
Set stencil pass operation. | |
StencilOperation | getStencilPassOp () |
Get stencil pass operation. | |
void | setStencilTwoSidedOperation (bool value) |
Set two sided stencil operation. | |
bool | getStencilTwoSidedOperation () |
Get two sided stencil operation. | |
void | setInput (size_t id, const String &input="") |
Set an input local texture. | |
const String & | getInput (size_t id) |
Get the value of an input. | |
size_t | getNumInputs () |
Get the number of inputs used. | |
void | clearAllInputs () |
Clear all inputs. | |
CompositionTargetPass * | getParent () |
Get parent object. | |
Private Attributes | |
CompositionTargetPass * | mParent |
Parent technique. | |
PassType | mType |
Type of composition pass. | |
uint32 | mIdentifier |
Identifier for this pass. | |
MaterialPtr | mMaterial |
Material used for rendering. | |
uint8 | mFirstRenderQueue |
[first,last] render queue to render this pass (in case of PT_RENDERSCENE) | |
uint8 | mLastRenderQueue |
uint32 | mClearBuffers |
Clear buffers (in case of PT_CLEAR). | |
ColourValue | mClearColour |
Clear colour (in case of PT_CLEAR). | |
Real | mClearDepth |
Clear depth (in case of PT_CLEAR). | |
uint32 | mClearStencil |
Clear stencil value (in case of PT_CLEAR). | |
String | mInputs [OGRE_MAX_TEXTURE_LAYERS] |
Inputs (for material used for rendering the quad) An empty string signifies that no input is used. | |
bool | mStencilCheck |
Stencil operation parameters. | |
CompareFunction | mStencilFunc |
uint32 | mStencilRefValue |
uint32 | mStencilMask |
StencilOperation | mStencilFailOp |
StencilOperation | mStencilDepthFailOp |
StencilOperation | mStencilPassOp |
bool | mStencilTwoSidedOperation |
This provides a method to conviently interleave RenderSystem commands between Render Queues.
Definition at line 37 of file OgreCompositionPass.h.
|
Enumeration that enumerates the various composition pass types.
Definition at line 45 of file OgreCompositionPass.h. |
|
|
|
|
|
Clear all inputs.
|
|
Get the viewport clear buffers.
|
|
Get the viewport clear colour (defaults to 0,0,0,0).
|
|
Get the viewport clear depth (defaults to 1.0).
|
|
Get the viewport clear stencil value (defaults to 0).
|
|
Get the first render queue to be rendered in this pass (inclusive).
|
|
Get the identifier for this pass.
|
|
Get the value of an input.
|
|
Get the last render queue to be rendered in this pass (inclusive).
|
|
Get the material used by this pass.
|
|
Get the number of inputs used.
|
|
Get parent object.
|
|
Get stencil check enable.
|
|
Get stencil depth fail operation.
|
|
Get stencil fail operation.
|
|
Get stencil compare function.
|
|
Get stencil mask.
|
|
Get stencil pass operation.
|
|
Get stencil reference value.
|
|
Get two sided stencil operation.
|
|
Get the type of composition pass.
|
|
Set the viewport clear buffers (defaults to FBT_COLOUR|FBT_DEPTH).
|
|
Set the viewport clear colour (defaults to 0,0,0,0).
|
|
Set the viewport clear depth (defaults to 1.0).
|
|
Set the viewport clear stencil value (defaults to 0).
|
|
Set the first render queue to be rendered in this pass (inclusive).
|
|
Set an identifier for this pass. This identifier can be used to "listen in" on this pass with an CompositorInstance::Listener. |
|
Set an input local texture. An empty string clears the input.
|
|
Set the last render queue to be rendered in this pass (inclusive).
|
|
Set the material used by this pass.
|
|
Set the material used by this pass.
|
|
Set stencil check on or off.
|
|
Set stencil depth fail operation.
|
|
Set stencil fail operation.
|
|
Set stencil compare function.
|
|
Set stencil mask.
|
|
Set stencil pass operation.
|
|
Set stencil reference value.
|
|
Set two sided stencil operation.
|
|
Set the type of composition pass.
|
|
Clear buffers (in case of PT_CLEAR).
Definition at line 239 of file OgreCompositionPass.h. |
|
Clear colour (in case of PT_CLEAR).
Definition at line 241 of file OgreCompositionPass.h. |
|
Clear depth (in case of PT_CLEAR).
Definition at line 243 of file OgreCompositionPass.h. |
|
Clear stencil value (in case of PT_CLEAR).
Definition at line 245 of file OgreCompositionPass.h. |
|
[first,last] render queue to render this pass (in case of PT_RENDERSCENE)
Definition at line 236 of file OgreCompositionPass.h. |
|
Identifier for this pass.
Definition at line 232 of file OgreCompositionPass.h. |
|
Inputs (for material used for rendering the quad) An empty string signifies that no input is used.
Definition at line 248 of file OgreCompositionPass.h. |
|
Definition at line 237 of file OgreCompositionPass.h. |
|
Material used for rendering.
Definition at line 234 of file OgreCompositionPass.h. |
|
Parent technique.
Definition at line 228 of file OgreCompositionPass.h. |
|
Stencil operation parameters.
Definition at line 250 of file OgreCompositionPass.h. |
|
Definition at line 255 of file OgreCompositionPass.h. |
|
Definition at line 254 of file OgreCompositionPass.h. |
|
Definition at line 251 of file OgreCompositionPass.h. |
|
Definition at line 253 of file OgreCompositionPass.h. |
|
Definition at line 256 of file OgreCompositionPass.h. |
|
Definition at line 252 of file OgreCompositionPass.h. |
|
Definition at line 257 of file OgreCompositionPass.h. |
|
Type of composition pass.
Definition at line 230 of file OgreCompositionPass.h. |
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:38:26 2006