28 #ifndef __CompositionPass_H__
29 #define __CompositionPass_H__
64 void setType(PassType type);
66 PassType getType()
const;
71 void setIdentifier(
uint32 id);
73 uint32 getIdentifier()
const;
82 void setMaterialName(
const String &name);
90 void setFirstRenderQueue(
uint8 id);
94 uint8 getFirstRenderQueue()
const;
98 void setLastRenderQueue(
uint8 id);
102 uint8 getLastRenderQueue()
const;
109 void setMaterialScheme(
const String& schemeName);
115 const String& getMaterialScheme(
void)
const;
127 void setClearBuffers(
uint32 val);
131 uint32 getClearBuffers()
const;
143 void setClearDepth(
Real depth);
147 Real getClearDepth()
const;
151 void setClearStencil(
uint32 value);
155 uint32 getClearStencil()
const;
160 void setStencilCheck(
bool value);
164 bool getStencilCheck()
const;
176 void setStencilRefValue(
uint32 value);
180 uint32 getStencilRefValue()
const;
184 void setStencilMask(
uint32 value);
188 uint32 getStencilMask()
const;
216 void setStencilTwoSidedOperation(
bool value);
220 bool getStencilTwoSidedOperation()
const;
231 : name(_name), mrtIndex(_mrtIndex) {}
246 const InputTex &getInput(
size_t id)
const;
251 size_t getNumInputs()
const;
256 void clearAllInputs();
265 bool _isSupported(
void);
275 bool getQuadCorners(
Real & left,
Real & top,
Real & right,
Real & bottom)
const;
280 void setQuadFarCorners(
bool farCorners,
bool farCornersViewSpace);
285 bool getQuadFarCorners()
const;
290 bool getQuadFarCornersViewSpace()
const;
296 void setCustomType(
const String& customType);
302 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)
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.
Specialisation of SharedPtr to allow SharedPtr to be assigned to MaterialPtr.
StencilOperation
Enum describing the various actions which can be taken onthe 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...