?? modelbone.cpp
字號(hào):
//+-----------------------------------------------------------------------------
//| Included files
//+-----------------------------------------------------------------------------
#include "ModelBone.h"
//+-----------------------------------------------------------------------------
//| Constructor
//+-----------------------------------------------------------------------------
MODEL_BONE::MODEL_BONE()
{
ModelBaseData = &BoneData;
ModelBaseData->Type = NODE_TYPE_BONE;
GeosetNode.SetData(this);
GeosetAnimationNode.SetData(this);
}
//+-----------------------------------------------------------------------------
//| Destructor
//+-----------------------------------------------------------------------------
MODEL_BONE::~MODEL_BONE()
{
Clear();
}
//+-----------------------------------------------------------------------------
//| Clears the bone
//+-----------------------------------------------------------------------------
VOID MODEL_BONE::Clear()
{
BoneData = MODEL_BONE_DATA();
}
//+-----------------------------------------------------------------------------
//| Returns the mdx size of the bone
//+-----------------------------------------------------------------------------
INT MODEL_BONE::GetSize()
{
return GetBaseSize() + 8;
}
//+-----------------------------------------------------------------------------
//| Returns a reference to the data
//+-----------------------------------------------------------------------------
MODEL_BONE_DATA& MODEL_BONE::Data()
{
return BoneData;
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -