This reference page is linked to from the following overview topics: MotionBuilder 2014, FBMaterial and FBTexture - Materials and Textures, Updated Objects.
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.
Definition at line 189 of file fbtexture.h.
#include <fbtexture.h>
Public Member Functions | |
FBLayeredTexture (const char *pName, HIObject pObject=NULL) | |
Constructor. | |
virtual void | FBDelete () |
Open Reality deletion function. | |
FBLayeredTexture * | Clone () |
Clone the current texture. | |
virtual void | TextureLayerComposition (FBTime pTime, FBTime pTimeInCurrentTimeRef, int pWidth, int pHeight) |
Virtual function to be override if custom layer blend method needed. | |
void | SetLayerConfigDirty () |
Set layer config dirty to trigger new composition. | |
Public Attributes | |
FBPropertyAnimatableColorAndAlpha | BackgroundColor |
Read/Write Property: Animatable Background color which is used to clear color buffer before composition. | |
FBPropertyListTexture | Layers |
Read/Write Property: Textures Layers. |
FBLayeredTexture | ( | const char * | pName, |
HIObject | pObject = NULL |
||
) |
Constructor.
pName | Name of texture media. Can be a NULL pointer. If set, this will create a FBVideo object used as the Video property. |
pObject | For internal use only. |
virtual void FBDelete | ( | ) | [virtual] |
FBLayeredTexture* Clone | ( | ) |
Clone the current texture.
Duplicates the current texture.
Reimplemented from FBTexture.
virtual void TextureLayerComposition | ( | FBTime | pTime, |
FBTime | pTimeInCurrentTimeRef, | ||
int | pWidth, | ||
int | pHeight | ||
) | [virtual] |
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 |
void SetLayerConfigDirty | ( | ) |
Set layer config dirty to trigger new composition.
Read/Write Property: Animatable Background color which is used to clear color buffer before composition.
Definition at line 219 of file fbtexture.h.
Read/Write Property: Textures Layers.
Definition at line 220 of file fbtexture.h.