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;
MaterialPtr mMaterial
Material used for rendering.
PassType mType
Type of composition pass.
StencilOperation mStencilDepthFailOp
StencilOperation mStencilPassOp
Render the scene or part of it.
Object representing one render to a RenderTarget or Viewport in the Ogre Composition framework...
Class representing colour.
float Real
Software floating point type.
Object representing one pass or operation in a composition sequence.
CompareFunction mStencilFunc
bool mQuadFarCornersViewSpace
bool mQuadCornerModified
True if quad should not cover whole screen.
Real mClearDepth
Clear depth (in case of PT_CLEAR)
Utility class for manipulating Strings.
bool mStencilTwoSidedOperation
Clear target to one colour.
#define OGRE_MAX_TEXTURE_LAYERS
Define max number of texture layers allowed per pass on any card.
ColourValue mClearColour
Clear colour (in case of PT_CLEAR)
CompositionTargetPass * mParent
Parent technique.
bool mStencilCheck
Stencil operation parameters.
CompareFunction
Comparison functions used for the depth/stencil buffer operations and others.
uint8 mFirstRenderQueue
[first,last] render queue to render this pass (in case of PT_RENDERSCENE)
StencilOperation mStencilFailOp
PassType
Enumeration that enumerates the various composition pass types.
uint32 mClearBuffers
Clear buffers (in case of PT_CLEAR)
StencilOperation
Enum describing the various actions which can be taken on the stencil buffer.
String mCustomType
The type name of the custom composition pass.
String mMaterialScheme
Material scheme name.
uint32 mClearStencil
Clear stencil value (in case of PT_CLEAR)
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.
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
uint32 mIdentifier
Identifier for this pass.