📄 model.h
字号:
/********************************************************************************
* *
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -