Public Member Functions | Public Attributes

FBLayeredTexture Class Reference

This reference page is linked to from the following overview topics: MotionBuilder 2014, FBMaterial and FBTexture - Materials and Textures, Updated Objects.


Search for all occurrences

Detailed Description

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>

Inheritance diagram for FBLayeredTexture:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 FBLayeredTexture (const char *pName, HIObject pObject=NULL)
 Constructor.
virtual void FBDelete ()
 Open Reality deletion function.
FBLayeredTextureClone ()
 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.

Constructor & Destructor Documentation

FBLayeredTexture ( const char *  pName,
HIObject  pObject = NULL 
)

Constructor.

Parameters:
pNameName of texture media. Can be a NULL pointer. If set, this will create a FBVideo object used as the Video property.
pObjectFor internal use only.

Member Function Documentation

virtual void FBDelete ( ) [virtual]

Open Reality deletion function.

Reimplemented from FBTexture.

FBLayeredTexture* Clone ( )

Clone the current texture.

Duplicates the current texture.

Returns:
Newly created 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.

Parameters:
pTimetime in action time referential
pTimeInCurrentTimeReftime in current time ref
pWidthwidth of the RTT frame buffer target
pHeightheight of the RTT frame buffer target
Note:
If not override in subclass, the internal layer composition logic will be used.
void SetLayerConfigDirty ( )

Set layer config dirty to trigger new composition.


Member Data Documentation

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.


The documentation for this class was generated from the following file:

FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture
FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture FBLayeredTexture