-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMyKFbxMesh.h
63 lines (49 loc) · 1.38 KB
/
MyKFbxMesh.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/****************************************************************************************
Copyright (C) 2015 Autodesk, Inc.
All rights reserved.
Use of this software is subject to the terms of the Autodesk license agreement
provided at the time of installation or download, or which otherwise accompanies
this software in either electronic or hard copy form.
****************************************************************************************/
#ifndef _MYKFBXMESH_H_
#define _MYKFBXMESH_H_
#include <fbxsdk.h>
//Show how to create a class derived from existing kfbx class
class MyKFbxMesh : public FbxMesh
{
FBXSDK_OBJECT_DECLARE(MyKFbxMesh, FbxMesh);
public:
typedef enum
{
eColor =0, //inherited by FbxMesh
eMY_PROPERTY1,
eMY_PROPERTY2,
eMY_PROPERTY3,
eMY_PROPERTY4,
eMY_PROPERTY5,
eMY_PROPERTY6,
eMY_PROPERTY7,
eMY_PROPERTY8,
eMY_PROPERTY9,
eMY_PROPERTY10,
eMY_PROPERTY11,
eMY_PROPERTY_COUNT
} ePROPERTY;
//Important to implement
const char* GetTypeName() const;
FbxProperty GetProperty(int pId);
protected:
virtual void ConstructProperties(bool pForceSet);
private:
int mExtraOption;
};
class MyFbxObject : public FbxObject
{
FBXSDK_OBJECT_DECLARE(MyFbxObject, FbxObject);
public:
virtual const char* GetTypeName() const;
protected:
virtual void Destruct(bool pRecursive);
virtual void ConstructProperties(bool pForceSet);
};
#endif