FBTexture Class Reference


Detailed Description

Inheritance diagram for FBTexture:

List of all members.

Public Member Functions

 __init__ (str pName, object pObject=None)
 Constructor.
 FBDelete ()
 Open Reality deletion function.
FBTexture Clone ()
 Clone the texture.
 OGLInit (FBRenderOptions pRenderOptions=None)
int GetTextureObject ()
float GetMatrix ()

Public Attributes

FBPropertyBase Width
 Read Only Property: Width of texture.
FBPropertyBase 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.
FBPropertyBaseAnimatable Translation
 Read Write Property: Translation coordinates.
FBPropertyBaseAnimatable Rotation
 Read Write Property: Rotation coordinates.
FBPropertyBaseAnimatable Scaling
 Read Write Property: Scaling coordinates.
FBPropertyBaseAnimatable Alpha
 Read Write Property: Texture alpha value.
FBPropertyBase SwapUV
 Read Write Property: Swap UV coordinates?.
FBPropertyBase CroppingX
 Read Write Property: X cropping.
FBPropertyBase CroppingY
 Read Write Property: Y cropping.
FBPropertyVideo Video
 Read Write Property: Media used for texturing.
FBPropertyBase TakeBased
 Read Write Property: A video is linked to a take, changing the take will change the connected video.
FBPropertyBase TextureOGLId
 Read Only: OpenGL texture buffer object Id.

Member Function Documentation

__init__ ( str  pName,
object  pObject = None 
)

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.
Examples
Tasks/DeleteUnusedMedia.py, Samples/Video/VideoInput.py, Samples/Video/VideoMemory.py, Samples/MaterialAndTexture/MaterialAndTexture.py, Samples/MaterialAndTexture/TextureAnimation.py, Samples/HUD/HUDElements.py

Reimplemented from FBBox.

Reimplemented in FBLayeredTexture.

FBDelete ( )

Open Reality deletion function.

Examples
Tasks/DeleteHierarchy.py

Reimplemented from FBComponent.

Reimplemented in FBLayeredTexture.

FBTexture Clone ( )

Clone the texture.

This will duplicated the current texture.

Returns:
Newly created texture.

Reimplemented in FBLayeredTexture.

OGLInit ( FBRenderOptions  pRenderOptions = None)
int GetTextureObject ( )

Member Data Documentation

FBPropertyBase Width

Read Only Property: Width of texture.

FBPropertyBase 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.

FBPropertyBaseAnimatable Translation

Read Write Property: Translation coordinates.

FBPropertyBaseAnimatable Rotation

Read Write Property: Rotation coordinates.

FBPropertyBaseAnimatable Scaling

Read Write Property: Scaling coordinates.

FBPropertyBaseAnimatable Alpha

Read Write Property: Texture alpha value.

FBPropertyBase SwapUV

Read Write Property: Swap UV coordinates?.

FBPropertyBase CroppingX

Read Write Property: X cropping.

FBPropertyBase CroppingY

Read Write Property: Y cropping.

FBPropertyVideo Video

Read Write Property: Media used for texturing.

FBPropertyBase TakeBased

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

FBPropertyBase TextureOGLId

Read Only: OpenGL texture buffer object Id.


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