LayeredTexture class.
This class is used to encapsulate list of textures. User could subclass this class to support customized blending & compostion modes. See /OpenRealitySDK/Samples/miscellaneous/texture_template/ for example.
Public Member Functions | |
__init__ (str pName, object pObject=None) | |
Constructor. | |
FBDelete () | |
Open Reality deletion function. | |
FBLayeredTexture | Clone () |
Clone the current texture. | |
TextureLayerComposition (FBTime pTime, FBTime pTimeInCurrentTimeRef, int pWidth, int pHeight) | |
Virtual function to be override if custom layer blend method needed. | |
SetLayerConfigDirty () | |
Set layer config dirty to trigger new composition. | |
Public Attributes | |
FBPropertyBaseAnimatable | BackgroundColor |
Read/Write Property: Animatable Background color which is used to clear color buffer before composition. | |
FBPropertyListTexture | Layers |
Read/Write Property: Textures Layers. |
FBDelete | ( | ) |
FBLayeredTexture Clone | ( | ) |
Clone the current texture.
Duplicates the current texture.
Reimplemented from FBTexture.
Virtual function to be override if custom layer blend method needed.
Upon callback occurs, MotionBuilder already setup GL Render-To-Texture frame buffer target. plugin code is responsible to fill up RTT buffer accordingly.
pTime | time in action time referential |
pTimeInCurrentTimeRef | time in current time ref |
pWidth | width of the RTT frame buffer target |
pHeight | height of the RTT frame buffer target |
SetLayerConfigDirty | ( | ) |
Set layer config dirty to trigger new composition.
FBPropertyBaseAnimatable BackgroundColor |
Read/Write Property: Animatable Background color which is used to clear color buffer before composition.
Read/Write Property: Textures Layers.