FBMaterial Class Reference


Detailed Description

Inheritance diagram for FBMaterial:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  __init__ (str pName, object pObject=None)
  Constructor.
FBMaterial  Clone ()
  Clone the material.
HFBTexture  GetTexture (FBMaterialTextureType=kFBMaterialTextureDiffuse)
  Retrieve associated texture.
  SetTexture (FBTexture pTexture, FBMaterialTextureType pType=kFBMaterialTextureDiffuse)
  Set associated texture.
  OGLInit ()
  Setup OpenGL fixed pipeline material settings.

Public Attributes

FBPropertyBaseAnimatable  Ambient
  Read Write Property: Ambient color.
FBPropertyBaseAnimatable  AmbientFactor
  Read Write Property: Ambient Factor value.
FBPropertyBaseAnimatable  Emissive
  Read Write Property: Emissive color.
FBPropertyBaseAnimatable  EmissiveFactor
  Read Write Property: Emissive Factor value.
FBPropertyBaseAnimatable  Diffuse
  Read Write Property: Diffuse color.
FBPropertyBaseAnimatable  DiffuseFactor
  Read Write Property: Diffuse Factor value.
FBPropertyBaseAnimatable  TransparentColor
  Read Write Property: Transparent color.
FBPropertyBaseAnimatable  TransparencyFactor
  Read Write Property: Transparency Factor value.
FBPropertyBaseAnimatable  Bump
  Read Write Property: Bump.
FBPropertyBaseAnimatable  NormalMap
  Read Write Property: Normal Map.
FBPropertyBaseAnimatable  BumpFactor
  Read Write Property: Bump Factor value.
FBPropertyBaseAnimatable  Specular
  Read Write Property: Specular color.
FBPropertyBaseAnimatable  SpecularFactor
  Read Write Property: Specular Factor value.
FBPropertyBaseAnimatable  Shininess
  Read Write Property: Shininess value.
FBPropertyBaseAnimatable  Reflection
  Read Write Property: Reflection color.
FBPropertyBaseAnimatable  ReflectionFactor
  Read Write Property: Reflection Factor value.
FBPropertyBaseAnimatable  DisplacementColor
  Read Write Property: Displacement color.
FBPropertyBaseAnimatable  DisplacementFactor
  Read Write Property: Displacement Factor value.

Member Function Documentation

__init__ ( str  pName,
object  pObject = None 
)

Constructor.

Parameters:
pName Name of material.
pObject For internal use only(default=NULL).
Examples
Samples/VideoInput/VideoInput.py, Samples/MaterialAndTexture/MaterialAndTexture.py, Samples/MaterialAndTexture/TextureAnimation.py

Reimplemented from FBBox.

FBMaterial Clone ( )

Clone the material.

This will duplicated the current material.

Returns:
Newly created material.
HFBTexture GetTexture ( FBMaterialTextureType  = kFBMaterialTextureDiffuse )

Retrieve associated texture.

Parameters:
pType MaterialTextureType to get connected texture from (default is Diffuse is not specified).
SetTexture ( FBTexture  pTexture,
FBMaterialTextureType  pType = kFBMaterialTextureDiffuse 
)

Set associated texture.

Parameters:
pTexture texture to be connected.
pType MaterialTextureType to set connected texture to.
OGLInit ( )

Setup OpenGL fixed pipeline material settings.


Member Data Documentation

FBPropertyBaseAnimatable Ambient

Read Write Property: Ambient color.

FBPropertyBaseAnimatable AmbientFactor

Read Write Property: Ambient Factor value.

FBPropertyBaseAnimatable Emissive

Read Write Property: Emissive color.

FBPropertyBaseAnimatable EmissiveFactor

Read Write Property: Emissive Factor value.

FBPropertyBaseAnimatable Diffuse

Read Write Property: Diffuse color.

FBPropertyBaseAnimatable DiffuseFactor

Read Write Property: Diffuse Factor value.

FBPropertyBaseAnimatable TransparentColor

Read Write Property: Transparent color.

FBPropertyBaseAnimatable TransparencyFactor

Read Write Property: Transparency Factor value.

FBPropertyBaseAnimatable Bump

Read Write Property: Bump.

FBPropertyBaseAnimatable NormalMap

Read Write Property: Normal Map.

FBPropertyBaseAnimatable BumpFactor

Read Write Property: Bump Factor value.

FBPropertyBaseAnimatable Specular

Read Write Property: Specular color.

FBPropertyBaseAnimatable SpecularFactor

Read Write Property: Specular Factor value.

FBPropertyBaseAnimatable Shininess

Read Write Property: Shininess value.

FBPropertyBaseAnimatable Reflection

Read Write Property: Reflection color.

FBPropertyBaseAnimatable ReflectionFactor

Read Write Property: Reflection Factor value.

FBPropertyBaseAnimatable DisplacementColor

Read Write Property: Displacement color.

FBPropertyBaseAnimatable DisplacementFactor

Read Write Property: Displacement Factor value.


FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial
FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial