Public Member Functions | Public Attributes

FBTexture Class Reference

This reference page is linked to from the following overview topics: MotionBuilder 2014, Your First Python Program, Scene Elements, FBModel - Transformation Data and the Scene Graph, FBMaterial and FBTexture - Materials and Textures.


Search for all occurrences

Detailed Description

Definition at line 116 of file fbtexture.h.

#include <fbtexture.h>

Inheritance diagram for FBTexture:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 FBTexture (const char *pName, HIObject pObject=NULL)
 Constructor.
virtual void FBDelete ()
 Open Reality deletion function.
FBTextureClone ()
 Clone the texture.
void OGLInit (FBRenderOptions *pRenderOptions=NULL)
unsigned int GetTextureObject ()
double * GetMatrix ()

Public Attributes

FBPropertyInt Width
 Read Only Property: Width of texture.
FBPropertyInt Height
 Read Only Property: Height of texture.
FBPropertyTextureUseType UseType
 Read Write Property: Texture Use Type.
FBPropertyTextureMapping Mapping
 Read Write Property: Texture mapping.
FBPropertyTextureBlendMode BlendMode
 Read Write Property: Texture blend mode.
FBPropertyAnimatableVector3d Translation
 Read Write Property: Translation coordinates.
FBPropertyAnimatableVector3d Rotation
 Read Write Property: Rotation coordinates.
FBPropertyAnimatableVector3d Scaling
 Read Write Property: Scaling coordinates.
FBPropertyAnimatableDouble Alpha
 Read Write Property: Texture alpha value.
FBPropertyBool SwapUV
 Read Write Property: Swap UV coordinates?
FBPropertyInt CroppingX [2]
 Read Write Property: X cropping.
FBPropertyInt CroppingY [2]
 Read Write Property: Y cropping.
FBPropertyVideo Video
 Read Write Property: Media used for texturing.
FBPropertyBool TakeBased
 Read Write Property: A video is linked to a take, changing the take will change the connected video.
FBPropertyInt TextureOGLId
 Read Only: OpenGL texture buffer object Id.

Constructor & Destructor Documentation

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

Constructor.

Parameters:
pNameName of the texture media. If pName is a valid path, FBTexture will create a FBVideo object which is used in the Video property; else just a ordinary name.
pObjectFor internal use only.

Member Function Documentation

virtual void FBDelete ( ) [virtual]

Open Reality deletion function.

Reimplemented from FBComponent.

Reimplemented in FBLayeredTexture.

FBTexture* Clone ( )

Clone the texture.

This will duplicated the current texture.

Returns:
Newly created texture.

Reimplemented in FBLayeredTexture.

void OGLInit ( FBRenderOptions pRenderOptions = NULL)
unsigned int GetTextureObject ( )
double* GetMatrix ( )

Member Data Documentation

Read Only Property: Width of texture.

Definition at line 132 of file fbtexture.h.

Read Only Property: Height of texture.

Definition at line 133 of file fbtexture.h.

FBPropertyTextureUseType UseType

Read Write Property: Texture Use Type.

Definition at line 134 of file fbtexture.h.

FBPropertyTextureMapping Mapping

Read Write Property: Texture mapping.

Definition at line 135 of file fbtexture.h.

FBPropertyTextureBlendMode BlendMode

Read Write Property: Texture blend mode.

Definition at line 136 of file fbtexture.h.

Read Write Property: Translation coordinates.

Definition at line 137 of file fbtexture.h.

Read Write Property: Rotation coordinates.

Definition at line 138 of file fbtexture.h.

Read Write Property: Scaling coordinates.

Definition at line 139 of file fbtexture.h.

Read Write Property: Texture alpha value.

Definition at line 140 of file fbtexture.h.

Read Write Property: Swap UV coordinates?

Definition at line 141 of file fbtexture.h.

Read Write Property: X cropping.

Definition at line 142 of file fbtexture.h.

Read Write Property: Y cropping.

Definition at line 143 of file fbtexture.h.

FBPropertyVideo Video

Read Write Property: Media used for texturing.

Definition at line 144 of file fbtexture.h.

Read Write Property: A video is linked to a take, changing the take will change the connected video.

Definition at line 145 of file fbtexture.h.

Read Only: OpenGL texture buffer object Id.

Definition at line 146 of file fbtexture.h.


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

FBTexture FBTexture FBTexture FBTexture FBTexture FBTexture FBTexture FBTexture FBTexture FBTexture
FBTexture FBTexture FBTexture FBTexture FBTexture FBTexture FBTexture FBTexture FBTexture FBTexture