An instance of a Compositor object for one Viewport.
More...
#include <OgreCompositorInstance.h>
An instance of a Compositor object for one Viewport.
It is part of the CompositorChain for a Viewport.
◆ QuadMaterialMap
◆ RenderSystemOpPair
◆ RenderSystemOpPairs
◆ CompiledState
◆ CompositorInstance()
◆ ~CompositorInstance()
virtual Ogre::CompositorInstance::~CompositorInstance |
( |
| ) |
|
|
virtual |
◆ setEnabled()
void Ogre::CompositorInstance::setEnabled |
( |
bool |
value | ) |
|
Set enabled flag.
The compositor instance will only render if it is enabled, otherwise it is pass-through. Resources are only created if they weren't alive when enabling.
◆ getEnabled()
bool Ogre::CompositorInstance::getEnabled |
( |
| ) |
const |
|
inline |
◆ setAlive()
void Ogre::CompositorInstance::setAlive |
( |
bool |
value | ) |
|
Set alive/active flag.
The compositor instance will create resources when alive, and destroy them when inactive.
◆ getAlive()
bool Ogre::CompositorInstance::getAlive |
( |
| ) |
const |
|
inline |
◆ getTextureInstanceName()
const String& Ogre::CompositorInstance::getTextureInstanceName |
( |
const String & |
name, |
|
|
size_t |
mrtIndex |
|
) |
| |
Get the instance name for a local texture.
- Note
- It is only valid to call this when local textures have been loaded, which in practice means that the compositor instance is active. Calling it at other times will cause an exception. Note that since textures are cleaned up aggressively, this name is not guaranteed to stay the same if you disable and re-enable the compositor instance.
- Parameters
-
name | The name of the texture in the original compositor definition. |
mrtIndex | If name identifies a MRT, which texture attachment to retrieve. |
- Returns
- The instance name for the texture, corresponds to a real texture.
◆ getTextureInstance()
const TexturePtr& Ogre::CompositorInstance::getTextureInstance |
( |
const String & |
name, |
|
|
size_t |
mrtIndex |
|
) |
| |
Get the instance of a local texture.
- Note
- Textures are only valid when local textures have been loaded, which in practice means that the compositor instance is active. Calling this method at other times will return null pointers. Note that since textures are cleaned up aggressively, this pointer is not guaranteed to stay the same if you disable and re-enable the compositor instance.
- Parameters
-
name | The name of the texture in the original compositor definition. |
mrtIndex | If name identifies a MRT, which texture attachment to retrieve. |
- Returns
- The texture pointer, corresponds to a real texture.
◆ getRenderTarget()
RenderTarget* Ogre::CompositorInstance::getRenderTarget |
( |
const String & |
name, |
|
|
int |
slice = 0 |
|
) |
| |
Get the render target for a given render texture name.
◆ _compileTargetOperations()
virtual void Ogre::CompositorInstance::_compileTargetOperations |
( |
CompiledState & |
compiledState | ) |
|
|
virtual |
Recursively collect target states (except for final Pass).
- Parameters
-
◆ _compileOutputOperation()
virtual void Ogre::CompositorInstance::_compileOutputOperation |
( |
TargetOperation & |
finalState | ) |
|
|
virtual |
Compile the final (output) operation.
This is done separately because this is combined with the input in chained filters.
◆ getCompositor()
Compositor* Ogre::CompositorInstance::getCompositor |
( |
| ) |
|
◆ getTechnique()
◆ setTechnique()
void Ogre::CompositorInstance::setTechnique |
( |
CompositionTechnique * |
tech, |
|
|
bool |
reuseTextures = true |
|
) |
| |
Change the technique we're using to render this compositor.
- Parameters
-
tech | The technique to use (must be supported and from the same Compositor) |
reuseTextures | If textures have already been created for the current technique, whether to try to re-use them if sizes & formats match. |
◆ setScheme()
void Ogre::CompositorInstance::setScheme |
( |
const String & |
schemeName, |
|
|
bool |
reuseTextures = true |
|
) |
| |
Pick a technique to use to render this compositor based on a scheme.
- See also
- CompositionTechnique::setSchemeName
- Parameters
-
schemeName | The scheme to use |
reuseTextures | If textures have already been created for the current technique, whether to try to re-use them if sizes & formats match. Note that for this feature to be of benefit, the textures must have been created with the 'pooled' option enabled. |
◆ getScheme()
const String& Ogre::CompositorInstance::getScheme |
( |
| ) |
const |
|
inline |
Returns the name of the scheme this compositor is using.
References Ogre::BLANKSTRING.
◆ notifyResized()
void Ogre::CompositorInstance::notifyResized |
( |
| ) |
|
Notify this instance that the primary surface has been resized.
◆ getChain()
Get Chain that this instance is part of.
◆ addListener()
void Ogre::CompositorInstance::addListener |
( |
Listener * |
l | ) |
|
◆ removeListener()
void Ogre::CompositorInstance::removeListener |
( |
Listener * |
l | ) |
|
◆ _fireNotifyMaterialSetup()
void Ogre::CompositorInstance::_fireNotifyMaterialSetup |
( |
uint32 |
pass_id, |
|
|
MaterialPtr & |
mat |
|
) |
| |
Notify listeners of a material compilation.
◆ _fireNotifyMaterialRender()
void Ogre::CompositorInstance::_fireNotifyMaterialRender |
( |
uint32 |
pass_id, |
|
|
MaterialPtr & |
mat |
|
) |
| |
Notify listeners of a material render.
◆ _fireNotifyResourcesCreated()
void Ogre::CompositorInstance::_fireNotifyResourcesCreated |
( |
bool |
forResizeOnly | ) |
|
Notify listeners of a material render.
◆ _fireNotifyResourcesReleased()
void Ogre::CompositorInstance::_fireNotifyResourcesReleased |
( |
bool |
forResizeOnly | ) |
|
Notify listeners ressources.
The documentation for this class was generated from the following file: