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