fbsdk/fbtexture.h File Reference
 
 
 
fbsdk/fbtexture.h File Reference

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


#include <kaydaradef.h>
#include <fbsdk/fbcomponent.h>
#include <fbsdk/fbcore.h>
#include <fbsdk/fbproperties.h>
#include <fbsdk/fbvideo.h>

Classes

class   FBTexture
class   FBPropertyListTexture
  PropertyList: Texture More...
class   FBLayeredTexture
  LayeredTexture class. More...

Defines

#define  FBSDK_DLL   K_DLLIMPORT
  Be sure that FBSDK_DLL is defined only once...
#define  FBStorableCustomTextureImplementation(ClassName, Type)
  Custom Storeable Texture Class implementation.

Enumerations

enum   FBTextureUseType {
  kFBTextureUseAll, kFBTextureUseColor, kFBTextureUseShadowMap, kFBTextureUseLightMap,
  kFBTextureUseSphericalReflexionMap, kFBTextureUseSphereReflexionMap, kFBTextureUseBumpNormalMap
}
  Texture Use Type. More...
enum   FBTextureMapping {
  kFBTextureNoMapping, kFBTextureMappingUV, kFBTextureMappingXY, kFBTextureMappingYZ,
  kFBTextureMappingXZ, kFBTextureMappingSpherical, kFBTextureMappingCylindrical, kFBTextureMappingEnvironment,
  kFBTextureMappingProjection
}
  Texture mapping modes. More...
enum   FBTextureBlendMode { kFBTextureBlendTranslucent, kFBTextureBlendAdditive, kFBTextureBlendModulate, kFBTextureBlendModulate2 }
  Texture blend modes. More...

Functions

  __FB_FORWARD (FBTexture)
  FB_DEFINE_ENUM (K_DLLIMPORT, TextureUseType)
  FB_DEFINE_ENUM (K_DLLIMPORT, TextureMapping)
  FB_DEFINE_ENUM (K_DLLIMPORT, TextureBlendMode)
  FB_FORWARD (FBRenderOptions)
  Texture class.
  FB_DEFINE_COMPONENT (K_DLLIMPORT, Texture)
  __FB_FORWARD (FBLayeredTexture)

Define Documentation

#define FBSDK_DLL   K_DLLIMPORT

Be sure that FBSDK_DLL is defined only once...

Definition at line 48 of file fbtexture.h.

#define FBStorableCustomTextureImplementation (   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);\
    FBSetStoreableCustomTextureRegistered();}\

Custom Storeable Texture Class implementation.

(only LayeredTexture is supported for now).

Definition at line 225 of file fbtexture.h.


Enumeration Type Documentation

Texture Use Type.

How the texture is used.

Enumerator:
kFBTextureUseAll 

All textures.

kFBTextureUseColor 

standard color type, work with material.

kFBTextureUseShadowMap 

Shadow Map, work with model.

kFBTextureUseLightMap 

Light Map, work with model.

kFBTextureUseSphericalReflexionMap 

Spherical Reflexion Map, work with model.

kFBTextureUseSphereReflexionMap 

Sphere Reflexion Map, work with model.

kFBTextureUseBumpNormalMap 

Bump Normal Map, work with model.

Definition at line 70 of file fbtexture.h.

Texture mapping modes.

How the texture is mapped.

Enumerator:
kFBTextureNoMapping 

No mapping.

kFBTextureMappingUV 

UV mapping.

kFBTextureMappingXY 

XY mapping.

kFBTextureMappingYZ 

YZ mapping.

kFBTextureMappingXZ 

XZ mapping.

kFBTextureMappingSpherical 

Spherical mapping.

kFBTextureMappingCylindrical 

Cylindrical mapping.

kFBTextureMappingEnvironment 

Environment mapping.

kFBTextureMappingProjection 

Projection mapping.

Definition at line 83 of file fbtexture.h.

Texture blend modes.

How the texture is blended with another.

Enumerator:
kFBTextureBlendTranslucent 

Layer transparency.

kFBTextureBlendAdditive 

Layer addition.

kFBTextureBlendModulate 

Layer multiplication.

kFBTextureBlendModulate2 

Layer multiplication + brightness.

Definition at line 98 of file fbtexture.h.


Function Documentation

FB_DEFINE_ENUM ( K_DLLIMPORT  ,
TextureUseType   
)
FB_DEFINE_ENUM ( K_DLLIMPORT  ,
TextureMapping   
)
FB_DEFINE_ENUM ( K_DLLIMPORT  ,
TextureBlendMode   
)
FB_FORWARD ( FBRenderOptions  )
FB_DEFINE_COMPONENT ( K_DLLIMPORT  ,
Texture   
)

Go to the source code of this file.