fbsdk/fbmaterial.h File Reference

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

Namespaces

 ORSDK2018
 

Macros

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

Typedefs

typedef class FBPropertyBase< FBMaterial *, kFBPT_object > FBPropertyBaseMaterial
 
typedef class FBPropertyBaseComponent< FBMaterial * > FBPropertyMaterial
 

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

Macro Definition 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();}\
#define NULL
Definition: kaydara.h:169

Custom Storable Material Class implementation.

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

+ Examples:

Definition at line 194 of file fbmaterial.h.

Go to the source code of this file.