1 #ifndef __FBTEXTURE_H__
2 #define __FBTEXTURE_H__
43 #include <kaydaradef.h>
48 #define FBSDK_DLL K_DLLIMPORT
56 #ifdef FBSDKUseNamespace
57 namespace FBSDKNamespace {
70 enum FBTextureUseType {
73 kFBTextureUseShadowMap,
74 kFBTextureUseLightMap,
75 kFBTextureUseSphericalReflexionMap,
76 kFBTextureUseSphereReflexionMap,
77 kFBTextureUseBumpNormalMap
83 enum FBTextureMapping {
89 kFBTextureMappingSpherical,
90 kFBTextureMappingCylindrical,
91 kFBTextureMappingEnvironment,
92 kFBTextureMappingProjection
98 enum FBTextureBlendMode {
99 kFBTextureBlendTranslucent,
100 kFBTextureBlendAdditive,
101 kFBTextureBlendModulate,
102 kFBTextureBlendModulate2,
149 unsigned int GetTextureObject();
225 #define FBStorableCustomTextureImplementation(ClassName, Type)\
226 const char* ClassName::FbxGetObjectSubType(){ return #ClassName; }\
227 HIObject RegisterStorable##ClassName##Create(HIObject , const char* pName, void* ){\
228 ClassName* Class = new ClassName(pName);\
229 Class->mAllocated = true;\
230 if( Class->FBCreate() ){\
231 return Class->GetHIObject();\
235 FBLibraryModule(ClassName##Storable){\
236 FBString lGroup = "FbxStorable/";\
238 FBRegisterObject(ClassName##R2, lGroup, #ClassName, "", RegisterStorable##ClassName##Create, true, NULL);\
239 FBSetStoreableCustomTextureRegistered();}\
242 #ifdef FBSDKUseNamespace
A box is a fundamental building block in the application architecture.
MotionBuilder SDK base class.
virtual void FBDelete() override
Open Reality deletion function.
void SetLayerConfigDirty()
Set layer config dirty to trigger new composition.
FBLayeredTexture * Clone()
Clone the current texture.
FBPropertyListTexture Layers
Read/Write Property: Textures Layers.
virtual void TextureLayerComposition(FBTime pTime, FBTime pTimeInCurrentTimeRef, int pWidth, int pHeight)
Virtual function to be override if custom layer blend method needed.
FBPropertyAnimatableColorAndAlpha BackgroundColor
Read/Write Property: Animatable Background color which is used to clear color buffer before compositi...
FBLayeredTexture(const char *pName, HIObject pObject=NULL)
Constructor.
PropertyList: Concrete class for PropertyList of component
FBTexture * operator[](int pIndex)
Get the texture at a specific index.
virtual int Add(FBTexture *pItem)
Add a texture to the property list.
FBPropertyAnimatableVector3d Scaling
Read Write Property: Scaling coordinates.
FBPropertyAnimatableDouble Alpha
Read Write Property: Texture alpha value.
FBPropertyInt Height
Read Only Property: Height of texture.
virtual void FBDelete() override
Open Reality deletion function.
FBPropertyTextureMapping Mapping
Read Write Property: Texture mapping.
FBPropertyInt TextureOGLId
Read Only: OpenGL texture buffer object Id.
FBPropertyBool TakeBased
Read Write Property: A video is linked to a take, changing the take will change the connected video.
FBPropertyVideo Video
Read Write Property: Media used for texturing.
FBPropertyAnimatableVector3d Translation
Read Write Property: Translation coordinates.
FBPropertyTextureUseType UseType
Read Write Property: Texture Use Type.
FBPropertyTextureBlendMode BlendMode
Read Write Property: Texture blend mode.
FBTexture(const char *pName, HIObject pObject=NULL)
Constructor.
FBPropertyAnimatableVector3d Rotation
Read Write Property: Rotation coordinates.
FBTexture * Clone()
Clone the texture.
FBPropertyInt Width
Read Only Property: Width of texture.
FBPropertyBool SwapUV
Read Write Property: Swap UV coordinates?
#define __FBClassDeclare(Name, Parent)
For internal use only.
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
Contains definitions for devices, boxes and models.
FB_DEFINE_COMPONENT(K_DLLIMPORT, AnimationNode)
Animation node class.
class K_DLLIMPORT FBPropertyBaseAnimatable< FBVector3d, kFBPT_Vector3D > FBPropertyAnimatableVector3d
FBPropertyAnimatableVector3D type definition.
class K_DLLIMPORT FBPropertyBase< int, kFBPT_int > FBPropertyInt
Property: int
class K_DLLIMPORT FBPropertyBaseAnimatable< double, kFBPT_double > FBPropertyAnimatableDouble
FBPropertyBaseAnimatableDouble type definition.
class K_DLLIMPORT FBPropertyBaseAnimatable< FBColorAndAlpha, kFBPT_ColorRGBA > FBPropertyAnimatableColorAndAlpha
FBPropertyAnimatableColorAndAlpha type definition.
class K_DLLIMPORT FBPropertyBase< bool, kFBPT_bool > FBPropertyBool
Property: bool
#define FB_DEFINE_ENUM(DllTag, Type)
Define an enum and give it the ability to be a property.
#define FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
#define __FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
FBVideo and derivative classes.