FBMaterial Class Reference

#include <fbmodel.h>
FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial FBMaterial
Inheritance diagram for FBMaterial:
Inheritance graph
[legend]

List of all members.


Detailed Description

Material class.

Definition at line 852 of file fbmodel.h.


Public Member Functions

  FBMaterial (char *pName, HIObject pObject=NULL)
  Constructor.
FBMaterial Clone ()
  Clone the material.
HFBTexture  GetTexture (FBMaterialTextureType=kFBMaterialTextureDiffuse)
  Retrieve associated texture.
void  SetTexture (FBTexture *pTexture, FBMaterialTextureType pType=kFBMaterialTextureDiffuse)
  Set associated texture.
void  OGLInit ()
  Setup OpenGL fixed pipeline material settings.

Public Attributes

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

Constructor & Destructor Documentation

FBMaterial ( char *  pName,
HIObject  pObject = NULL  
)

Constructor.

Parameters:
pName  Name of material.
pObject  For internal use only(default=NULL).

Member Function Documentation

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

void SetTexture ( FBTexture pTexture,
FBMaterialTextureType  pType = kFBMaterialTextureDiffuse  
)

Set associated texture.

Parameters:
pTexture  texture to be connected.
pType  MaterialTextureType to set connected texture to.

void OGLInit (  ) 

Setup OpenGL fixed pipeline material settings.


Member Data Documentation

FBPropertyAnimatableColor Ambient

Read Write Property: Ambient color.

Definition at line 867 of file fbmodel.h.

FBPropertyAnimatableDouble AmbientFactor

Read Write Property: Ambient Factor value.

Definition at line 868 of file fbmodel.h.

FBPropertyAnimatableColor Emissive

Read Write Property: Emissive color.

Definition at line 870 of file fbmodel.h.

FBPropertyAnimatableDouble EmissiveFactor

Read Write Property: Emissive Factor value.

Definition at line 871 of file fbmodel.h.

FBPropertyAnimatableColor Diffuse

Read Write Property: Diffuse color.

Definition at line 873 of file fbmodel.h.

FBPropertyAnimatableDouble DiffuseFactor

Read Write Property: Diffuse Factor value.

Definition at line 874 of file fbmodel.h.

FBPropertyAnimatableColor TransparentColor

Read Write Property: Transparent color.

Definition at line 876 of file fbmodel.h.

FBPropertyAnimatableDouble TransparencyFactor

Read Write Property: Transparency Factor value.

Definition at line 877 of file fbmodel.h.

FBPropertyAnimatableColor Bump

Read Write Property: Bump.

Definition at line 879 of file fbmodel.h.

FBPropertyAnimatableColor NormalMap

Read Write Property: Normal Map.

Definition at line 880 of file fbmodel.h.

FBPropertyAnimatableDouble BumpFactor

Read Write Property: Bump Factor value.

Definition at line 881 of file fbmodel.h.

FBPropertyAnimatableColor Specular

Read Write Property: Specular color.

Definition at line 883 of file fbmodel.h.

FBPropertyAnimatableDouble SpecularFactor

Read Write Property: Specular Factor value.

Definition at line 884 of file fbmodel.h.

FBPropertyAnimatableDouble Shininess

Read Write Property: Shininess value.

Definition at line 885 of file fbmodel.h.

FBPropertyAnimatableColor Reflection

Read Write Property: Reflection color.

Definition at line 887 of file fbmodel.h.

FBPropertyAnimatableDouble ReflectionFactor

Read Write Property: Reflection Factor value.

Definition at line 888 of file fbmodel.h.

FBPropertyAnimatableColor DisplacementColor

Read Write Property: Displacement color.

Definition at line 890 of file fbmodel.h.

FBPropertyAnimatableDouble DisplacementFactor

Read Write Property: Displacement Factor value.

Definition at line 891 of file fbmodel.h.


Please send us your comments about this page.