00001 #ifndef _SUPERMODEL_H_
00002 #define _SUPERMODEL_H_
00003
00004 #include "animadead.h"
00005 #include "Texture.h"
00006
00007 class UserFunctionTexture : public jb::UserFunction
00008 {
00009 public:
00010 void operator()(string file, void *&userdata)
00011 {
00012
00013 string path = "../data/duke/";
00014 string::size_type pos = file.find_last_of("/");
00015 string therest = string(file, pos+1);
00016 path += therest;
00017 userdata = (void *)t.createTexture(path);
00018 }
00019
00020 protected:
00021 static Texture t;
00022 };
00023
00024 class SuperModel : public jb::Model
00025 {
00026 public:
00027 SuperModel(jb::ModelType type, jb::UserFunction *fp);
00028 virtual ~SuperModel();
00029
00030 virtual void Draw();
00031
00032 };
00033
00034 #endif