model.h
来自「Ion Team Lord Of The Rings Demo 模拟指环王的3」· C头文件 代码 · 共 26 行
H
26 行
/********************************************************************************
* *
* Model.cpp -- every model loading class should follow this prototype *
* *
*********************************************************************************/
enum ModelErrorCode {mOK=0, errFileDoesNotExist, errNoMem, errNotModelFile, errGenericError};
class Model
{
public:
virtual ~Model()
{}
virtual ModelErrorCode Load(string meshFilename, string skinFilename) = 0;
virtual ModelErrorCode LoadMesh(string Filename) = 0;
virtual ModelErrorCode LoadSkin(string Filename) = 0;
virtual void SetFrames(int FirstFrame, int LastFrame) = 0;
virtual void SetAnimation(string ModelState) = 0;
virtual inline void Draw(int Frame) = 0;
virtual inline void Animate(float Percent, bool looping) = 0;
virtual void UnLoad() = 0;
//virtual int CurrentFrame() = 0; //<-- to be implemented if need arrives
bool bLooping;
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?