/* Texture maneger. by stalkerg[PLG Team] stalkerg@newmail.ru http://plg.lrn.ru */ #ifndef TEX_M #define TEX_M #include #include #include #include "../uni.h" using namespace std; class Texture { GLuint id; public: bool enable; string name, file; int pr, timenow; float *ticknow; Texture() { pr=6; } void Bind() { if(!enable) { cout<<"ReLoad texture: "< TextureList; typedef list UTextureList; struct DueTList { TextureList *Main; UTextureList *Slave; Options *in_options; }; Texture *GetTFName(string name, TextureList *inlist); void DeleteTFName(string name, TextureList *inlist); void addTexture(TextureList *TL, char *FileName, char *Name, int Param, float *ticknow); void addTexture(TextureList *TL, const char *FileName, const char *Name, int Param, float *ticknow); /*Test mode!!!*/ Texture **GetHesh(TextureList *inlist, int *outsize); Texture **GetHesh(TextureList *inlist); void LoadTextureList(string file, TextureList *inlist, float *ticknow); int ManagerTexture(void *unused); #endif