www.pudn.com > Gimcrack-v0.0051-Source.zip > model.h
/////////////////////////////////////////////////////
// //
// This is a abstract model class for use with the //
// GMD, ms3d and MD2 formats. //
// //
/////////////////////////////////////////////////////
#ifndef _MODEL_H_
#define _MODEL_H_
#include "../global.h"
#include "../rendernode.h"
class GcModel : public GcRenderNode
{
public:
// Load the model
virtual bool Load(char *fileName, char *skinName) = NULL;
virtual bool Load(char *fileName) = NULL;
// Load the skin
virtual bool LoadSkin(char *skinName, uint index) = NULL;
virtual void SetNumberOfSkins(uint num) = NULL;
virtual void SetActiveSkin(uint index) = NULL;
// Render / Animate
virtual bool Animate(int startFrame, int endFrame, float percent) = NULL;
virtual bool RenderKeyFrame(int frame) = NULL;
// Unload the model
virtual void Destroy() = NULL;
private:
};
#endif