org.ogre4j
Interface ICompositorInstance

All Superinterfaces:
IAllocatedObject<IResourceAllocPolicy>, INativeObject, IResourceAllocatedObject
All Known Implementing Classes:
CompositorInstance

public interface ICompositorInstance
extends INativeObject, IResourceAllocatedObject


Nested Class Summary
static interface ICompositorInstance.ICompiledState
           
static interface ICompositorInstance.IListener
           
static interface ICompositorInstance.IListeners
           
static interface ICompositorInstance.ILocalMRTMap
           
static interface ICompositorInstance.ILocalTextureMap
           
static interface ICompositorInstance.IQuadMaterialMap
           
static interface ICompositorInstance.IRenderSystemOperation
           
static interface ICompositorInstance.IRenderSystemOpPair
           
static interface ICompositorInstance.IRenderSystemOpPairs
           
static interface ICompositorInstance.ITargetOperation
           
 
Method Summary
 void _compileOutputOperation(ICompositorInstance.ITargetOperation finalState)
          Compile the final (output) operation.
 void _compileTargetOperations(ICompositorInstance.ICompiledState compiledState)
          Recursively collect target states (except for final ).
 void _fireNotifyMaterialRender(long pass_id, IMaterialPtr mat)
          Notify listeners of a material render.
 void _fireNotifyMaterialSetup(long pass_id, IMaterialPtr mat)
          Notify listeners of a material compilation.
 void addListener(ICompositorInstance.IListener l)
          Add a listener.
 ICompositorChain getChain()
          Get Chain that this instance is part of
 ICompositor getCompositor()
          Get of which this is an instance
 boolean getEnabled()
          Get enabled flag.
 IRenderTarget getRenderTarget(java.lang.String name)
          Get the render target for a given render texture name.
 ICompositionTechnique getTechnique()
          Get used by this instance
 java.lang.String getTextureInstanceName(java.lang.String name, int mrtIndex)
          Get the instance name for a local texture.
 void removeListener(ICompositorInstance.IListener l)
          Remove a listener.
 void setEnabled(boolean value)
          Set enabled flag.
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

setEnabled

void setEnabled(boolean value)
Set enabled flag. The compositor instance will only render if it is enabled, otherwise it is pass-through.


getEnabled

boolean getEnabled()
Get enabled flag.


getTextureInstanceName

java.lang.String getTextureInstanceName(java.lang.String name,
                                        int mrtIndex)
Get the instance name for a local texture.


getRenderTarget

IRenderTarget getRenderTarget(java.lang.String name)
Get the render target for a given render texture name.


_compileTargetOperations

void _compileTargetOperations(ICompositorInstance.ICompiledState compiledState)
Recursively collect target states (except for final ).


_compileOutputOperation

void _compileOutputOperation(ICompositorInstance.ITargetOperation finalState)
Compile the final (output) operation. This is done separately because this is combined with the input in chained filters.


getCompositor

ICompositor getCompositor()
Get of which this is an instance


getTechnique

ICompositionTechnique getTechnique()
Get used by this instance


getChain

ICompositorChain getChain()
Get Chain that this instance is part of


addListener

void addListener(ICompositorInstance.IListener l)
Add a listener. Listeners provide an interface to "listen in" to to render system operations executed by this so that materials can be programmatically set up.


removeListener

void removeListener(ICompositorInstance.IListener l)
Remove a listener.


_fireNotifyMaterialSetup

void _fireNotifyMaterialSetup(long pass_id,
                              IMaterialPtr mat)
Notify listeners of a material compilation.


_fireNotifyMaterialRender

void _fireNotifyMaterialRender(long pass_id,
                               IMaterialPtr mat)
Notify listeners of a material render.



Copyright © 2007 netAllied GmbH. All Rights Reserved.