#include <kaydaradef.h>
#include <fbsdk/fbcore.h>
#include <fbsdk/fbcomponent.h>
#include <fbsdk/fbtexture.h>
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 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 | |||
) |
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.
Various Material texture channels' type.
Definition at line 65 of file fbmaterial.h.
{ kFBMaterialTextureEmissive, kFBMaterialTextureEmissiveFactor, kFBMaterialTextureAmbient, kFBMaterialTextureAmbientFactor, kFBMaterialTextureDiffuse, kFBMaterialTextureDiffuseFactor, kFBMaterialTextureSpecular, kFBMaterialTextureSpecularFactor, kFBMaterialTextureShiness, kFBMaterialTextureBump, kFBMaterialTextureNormalMap, kFBMaterialTextureTransparent, kFBMaterialTextureTransparentFactor, kFBMaterialTextureReflection, kFBMaterialTextureReflectionFactor, kFBMaterialTextureDisplacementColor };
__FB_FORWARD | ( | FBMaterial | ) |
FB_DEFINE_COMPONENT | ( | K_DLLIMPORT | , |
Material | |||
) |