fbmaterial.h File Reference

This reference page is linked to from the following overview topics: FBMaterial and FBTexture - Materials and Textures.


Base class for Material. More...

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

Go to the source code of this file.

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 (FBSDK_DLL, Material)

Detailed Description

Base class for Material.

Definition in file fbmaterial.h.


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 ( FBSDK_DLL  ,
Material   
)