Open Reality Reference Guide
fbmaterial.h File Reference

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

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

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)
 

Detailed Description

Base class for Material.

Definition in file fbmaterial.h.

Macro Definition Documentation

◆ FBSDK_DLL

#define FBSDK_DLL   K_DLLIMPORT

Be sure that FBSDK_DLL is defined only once...

Definition at line 48 of file fbmaterial.h.

◆ FBStorableCustomMaterialImplementation

#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

◆ FBMaterialTextureType

Various Material texture channels' type.

Definition at line 65 of file fbmaterial.h.