Go to the documentation of this file.
28 #ifndef __CompositorInstance_H__
29 #define __CompositorInstance_H__
92 virtual void notifyResourcesCreated(
bool forResizeOnly);
118 target(inTarget), currentQueueGroupID(0), visibilityMask(0xFFFFFFFF),
120 onlyInitial(false), hasBeenRendered(false), findVisibleObjects(false),
121 materialScheme(
MaterialManager::DEFAULT_SCHEME_NAME), shadowsEnabled(true)
170 void setEnabled(
bool value);
182 void setAlive(
bool value);
201 const String& getTextureInstanceName(
const String& name,
size_t mrtIndex);
231 virtual void _compileTargetOperations(CompiledState &compiledState);
236 virtual void _compileOutputOperation(TargetOperation &finalState);
268 void setScheme(
const String& schemeName,
bool reuseTextures =
true);
278 void notifyResized();
289 void addListener(Listener *l);
294 void removeListener(Listener *l);
306 void _fireNotifyResourcesCreated(
bool forResizeOnly);
351 void createResources(
bool forResizeOnly);
355 void freeResources(
bool forResizeOnly,
bool clearReserveTextures);
367 const String &getSourceForTex(
const String &name,
size_t mrtIndex = 0);
374 String getMRTTexLocalName(
const String& baseName,
size_t attachment);
379 void deriveTextureRenderTargetOptions(
const String& texname,
380 bool *hwGammaWrite,
uint *fsaa,
String* fsaaHint);
383 void notifyCameraChanged(
Camera* camera);
394 #endif // __CompositorInstance_H__
const size_t RENDER_QUEUE_COUNT
Defines the functionality of a 3D API.
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
map< int, MaterialPtr >::type QuadMaterialMap
map< String, MultiRenderTarget * >::type LocalMRTMap
Store a list of MRTs we've created.
A viewpoint from which the scene will be rendered.
Class representing a Compositor object.
Chain of compositor effects applying to one viewport.
std::pair< int, RenderSystemOperation * > RenderSystemOpPair
bool hasBeenRendered
"Has been rendered" flag; used in combination with onlyInitial to determine whether to skip this targ...
Class for managing Material settings for Ogre.
bool getEnabled() const
Get enabled flag.
ReserveTextureMap mReserveTextures
Textures that are not currently in use, but that we want to keep for now, for example if we switch te...
Operation setup for a RenderTarget (collected).
Base composition technique, can be subclassed in plugins.
CompositorInstance * mPreviousInstance
Previous instance (set by chain).
bool findVisibleObjects
Whether this op needs to find visible scene objects or not.
RenderSystemOpPairs renderSystemOperations
RenderSystem operations to queue into the scene manager, by uint8.
static const String BLANK
Constant blank string, useful for returning by ref where local does not exist.
@ RENDER_QUEUE_MAX
Final possible render queue, don't exceed this.
RenderTarget * target
Target.
A 'canvas' which can receive the results of a rendering operation.
Manages the organisation and rendering of a 'scene' i.e.
Object representing one render to a RenderTarget or Viewport in the Ogre Composition framework.
bool shadowsEnabled
Whether shadows will be enabled.
bool mEnabled
Is this instance enabled?
TargetOperation(RenderTarget *inTarget)
map< CompositionTechnique::TextureDefinition *, TexturePtr >::type ReserveTextureMap
map< String, TexturePtr >::type LocalTextureMap
Map from name->local texture.
Specific render system operation.
String materialScheme
Which material scheme this op will use.
bool mAlive
Is this instance allocating resources?
Provides an interface to "listen in" to to render system operations executed by this CompositorInstan...
std::map< K, V, P, A > type
vector< TargetOperation >::type CompiledState
CompositionTechnique * mTechnique
Composition technique used by this instance.
std::bitset< RENDER_QUEUE_COUNT > RenderQueueBitSet
A set of render queues to either include or exclude certain render queues.
Compositor * mCompositor
Compositor of which this is an instance.
uint32 visibilityMask
Scene visibility mask If this is 0, the scene is not rendered at all.
int currentQueueGroupID
Current group ID.
vector< RenderSystemOpPair >::type RenderSystemOpPairs
vector< Listener * >::type Listeners
Vector of listeners.
An instance of a Compositor object for one Viewport.
CompositorChain * mChain
Composition chain of which this instance is part.
bool getAlive() const
Get alive flag.
LocalTextureMap mLocalTextures
RenderQueueBitSet renderQueues
Which renderqueues to render from scene.
const String & getScheme() const
Returns the name of the scheme this compositor is using.
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