fbsdk/fbmaterial.h File Reference
 
 
 
fbsdk/fbmaterial.h File Reference
#include <kaydaradef.h>
#include <fbsdk/fbcore.h>
#include <fbsdk/fbcomponent.h>
#include <fbsdk/fbtexture.h>

File Description

Base class for Material.

Definition in file fbmaterial.h.

Classes

class   FBMaterial
  Material class. More...
class   FBPropertyListMaterial
  PropertyList: Material More...

Defines

#define  FBSDK_DLL   K_DLLIMPORT
  Be sure that FBSDK_DLL is defined only once...
#define  FBStorableCustomMaterialImplementation(ClassName, Type)
  Custom Storable Material Class implementation.

Enumerations

enum   FBMaterialTextureType {
  kFBMaterialTextureEmissive, kFBMaterialTextureEmissiveFactor, kFBMaterialTextureAmbient, kFBMaterialTextureAmbientFactor,
  kFBMaterialTextureDiffuse, kFBMaterialTextureDiffuseFactor, kFBMaterialTextureSpecular, kFBMaterialTextureSpecularFactor,
  kFBMaterialTextureShiness, kFBMaterialTextureBump, kFBMaterialTextureNormalMap, kFBMaterialTextureTransparent,
  kFBMaterialTextureTransparentFactor, kFBMaterialTextureReflection, kFBMaterialTextureReflectionFactor, kFBMaterialTextureDisplacementColor
}
  Various Material texture channels' type. More...

Functions

  __FB_FORWARD (FBMaterial)
  FB_DEFINE_COMPONENT (K_DLLIMPORT, Material)

Define Documentation

#define FBSDK_DLL   K_DLLIMPORT

Be sure that FBSDK_DLL is defined only once...

Definition at line 48 of file fbmaterial.h.

#define FBStorableCustomMaterialImplementation (   ClassName,
  Type 
)
Value:
const char* ClassName::FbxGetObjectSubType(){ return #ClassName; }\
    HIObject RegisterStorable##ClassName##Create(HIObject /*pOwner*/, const char* pName, void* /*pData*/){\
    ClassName* Class = new ClassName(pName);\
    Class->mAllocated = true;\
    if( Class->FBCreate() ){\
    return Class->GetHIObject();\
    } else {\
    delete Class;\
    return NULL;}}\
    FBLibraryModule(ClassName##Storable){\
    FBString lGroup = "FbxStorable/";\
    lGroup += #Type;\
    FBRegisterObject(ClassName##R2, lGroup, #ClassName, "", RegisterStorable##ClassName##Create, true, NULL);\
    FBSetStoreableCustomMaterialRegistered();}\

Custom Storable Material Class implementation.

This should be placed in the source code file for a custom material class.

Definition at line 194 of file fbmaterial.h.


Enumeration Type Documentation

Various Material texture channels' type.

Enumerator:
kFBMaterialTextureEmissive 
kFBMaterialTextureEmissiveFactor 
kFBMaterialTextureAmbient 
kFBMaterialTextureAmbientFactor 
kFBMaterialTextureDiffuse 
kFBMaterialTextureDiffuseFactor 
kFBMaterialTextureSpecular 
kFBMaterialTextureSpecularFactor 
kFBMaterialTextureShiness 
kFBMaterialTextureBump 
kFBMaterialTextureNormalMap 
kFBMaterialTextureTransparent 
kFBMaterialTextureTransparentFactor 
kFBMaterialTextureReflection 
kFBMaterialTextureReflectionFactor 
kFBMaterialTextureDisplacementColor 

Definition at line 65 of file fbmaterial.h.


Function Documentation

FB_DEFINE_COMPONENT ( K_DLLIMPORT  ,
Material   
)

Go to the source code of this file.