Go to the documentation of this file.
28 #ifndef __CompositorChain_H__
29 #define __CompositorChain_H__
62 static const size_t LAST = (size_t)-1;
64 static const size_t BEST = 0;
80 void removeCompositor(
size_t position=LAST);
84 size_t getNumCompositors();
88 void removeAllCompositors();
104 InstanceIterator getCompositors();
112 void setCompositorEnabled(
size_t position,
bool state);
124 virtual void viewportCameraChanged(
Viewport* viewport);
126 virtual void viewportDimensionsChanged(
Viewport* viewport);
128 virtual void viewportDestroyed(
Viewport* viewport);
185 void clearCompiledState();
195 void createOriginalScene();
196 void destroyOriginalScene();
199 void destroyResources(
void);
205 RQListener() : mOperation(0), mSceneManager(0), mRenderSystem(0), mViewport(0) {}
209 virtual void renderQueueStarted(
uint8 queueGroupId,
const String& invocation,
bool& skipThisInvocation);
212 virtual void renderQueueEnded(
uint8 queueGroupId,
const String& invocation,
bool& repeatThisInvocation);
221 void flushUpTo(
uint8 id);
227 CompositorInstance::RenderSystemOpPairs::iterator currentOp,
lastOp;
250 #endif // __CompositorChain_H__
CompositorInstance::TargetOperation mOutputOperation
vector< CompositorInstance * >::type Instances
Data types.
Defines the functionality of a 3D API.
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
void notifyViewport(Viewport *vp)
Notify current destination viewport.
A viewpoint from which the scene will be rendered.
Chain of compositor effects applying to one viewport.
CompositorInstance::CompiledState mCompiledState
Compiled state (updated with _compile)
Concrete IteratorWrapper for nonconst access to the underlying container.
Abstract interface which classes must implement if they wish to receive events from the render queue.
Instances mInstances
Postfilter instances in this chain.
CompositorInstance::TargetOperation * mOperation
Listener interface so you can be notified of Viewport changes.
bool mAnyCompositorsEnabled
Any compositors enabled?
Operation setup for a RenderTarget (collected).
String mOldMaterialScheme
Store old viewport material scheme.
String mOriginalSceneScheme
A interface class defining a listener which can be used to receive notifications of RenderTarget even...
static const String BLANK
Constant blank string, useful for returning by ref where local does not exist.
Manages the organisation and rendering of a 'scene' i.e.
An abstraction of a viewport, i.e.
Struct containing information about a RenderTarget event.
uint32 mOldVisibilityMask
Store old scene visibility mask.
CompositorInstance * _getOriginalSceneCompositor(void)
Get the original scene compositor instance for this chain (internal use).
bool mOldShadowsEnabled
Store old shadows enabled flag.
CompositorInstance * mOriginalScene
Plainly renders the scene; implicit first compositor in the chain.
Specific render system operation.
RenderSystem * mRenderSystem
bool mDirty
State needs recompile.
float mOldLodBias
Store old camera LOD bias.
Reference-counted shared pointer, used for objects where implicit destruction is required.
vector< TargetOperation >::type CompiledState
SceneManager * mSceneManager
vector< CompositorInstance::RenderSystemOperation * >::type RenderSystemOperations
Render System operations queued by last compile, these are created by this instance thus managed and ...
unsigned int mOldClearEveryFrameBuffers
Old viewport settings.
Struct containing information about a RenderTarget Viewport-specific event.
An instance of a Compositor object for one Viewport.
CompositorInstance::RenderSystemOpPairs::iterator lastOp
Render queue listener used to set up rendering events.
Viewport * mViewport
Viewport affected by this CompositorChain.
RenderSystemOperations mRenderSystemOperations
VectorIterator< Instances > InstanceIterator
bool mOldFindVisibleObjects
Store old find visible objects.
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