Go to the documentation of this file.
28 #ifndef __CompositionPass_H__
29 #define __CompositionPass_H__
65 void setType(PassType type);
67 PassType getType()
const;
72 void setIdentifier(
uint32 id);
74 uint32 getIdentifier()
const;
83 void setMaterialName(
const String &name);
91 void setFirstRenderQueue(
uint8 id);
95 uint8 getFirstRenderQueue()
const;
99 void setLastRenderQueue(
uint8 id);
103 uint8 getLastRenderQueue()
const;
110 void setMaterialScheme(
const String& schemeName);
116 const String& getMaterialScheme(
void)
const;
128 void setClearBuffers(
uint32 val);
132 uint32 getClearBuffers()
const;
144 void setClearDepth(
Real depth);
148 Real getClearDepth()
const;
152 void setClearStencil(
uint32 value);
156 uint32 getClearStencil()
const;
161 void setStencilCheck(
bool value);
165 bool getStencilCheck()
const;
177 void setStencilRefValue(
uint32 value);
181 uint32 getStencilRefValue()
const;
185 void setStencilMask(
uint32 value);
189 uint32 getStencilMask()
const;
217 void setStencilTwoSidedOperation(
bool value);
221 bool getStencilTwoSidedOperation()
const;
232 : name(_name), mrtIndex(_mrtIndex) {}
247 const InputTex &getInput(
size_t id)
const;
252 size_t getNumInputs()
const;
257 void clearAllInputs();
266 bool _isSupported(
void);
276 bool getQuadCorners(
Real & left,
Real & top,
Real & right,
Real & bottom)
const;
281 void setQuadFarCorners(
bool farCorners,
bool farCornersViewSpace);
286 bool getQuadFarCorners()
const;
291 bool getQuadFarCornersViewSpace()
const;
297 void setCustomType(
const String& customType);
303 const String& getCustomType()
const;
Real mClearDepth
Clear depth (in case of PT_CLEAR)
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
bool mStencilCheck
Stencil operation parameters.
CompositionTargetPass * mParent
Parent technique.
PassType
Enumeration that enumerates the various composition pass types.
Object representing one pass or operation in a composition sequence.
uint32 mClearBuffers
Clear buffers (in case of PT_CLEAR)
bool mStencilTwoSidedOperation
uint32 mClearStencil
Clear stencil value (in case of PT_CLEAR)
CompareFunction
Comparison functions used for the depth/stencil buffer operations and others.
StencilOperation mStencilPassOp
Real mQuadLeft
quad positions in normalised coordinates [-1;1]x[-1;1] (in case of PT_RENDERQUAD)
static const String BLANK
Constant blank string, useful for returning by ref where local does not exist.
StencilOperation
Enum describing the various actions which can be taken on the stencil buffer.
PassType mType
Type of composition pass.
String mMaterialScheme
Material scheme name.
Object representing one render to a RenderTarget or Viewport in the Ogre Composition framework.
StencilOperation mStencilFailOp
CompareFunction mStencilFunc
@ PT_STENCIL
Clear target to one colour.
String mCustomType
The type name of the custom composition pass.
StencilOperation mStencilDepthFailOp
#define OGRE_MAX_TEXTURE_LAYERS
Define max number of texture layers allowed per pass on any card.
Class representing colour.
bool mQuadCornerModified
True if quad should not cover whole screen.
bool mQuadFarCornersViewSpace
Utility class for manipulating Strings.
ColourValue mClearColour
Clear colour (in case of PT_CLEAR)
@ PT_RENDERSCENE
Set stencil operation.
uint32 mIdentifier
Identifier for this pass.
float Real
Software floating point type.
MaterialPtr mMaterial
Material used for rendering.
@ PT_RENDERQUAD
Render the scene or part of it.
uint8 mFirstRenderQueue
[first,last] render queue to render this pass (in case of PT_RENDERSCENE)
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Apr 13 2021 08:53:15