noworldtexture cleanup

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2297 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-08-08 08:14:58 +00:00
parent fce52698aa
commit 930f4e223c
5 changed files with 21 additions and 20 deletions
+5 -2
View File
@@ -217,16 +217,19 @@ struct Texture
int xs, ys, bpp, clamp;
GLuint id;
};
extern Texture *notexture;
extern Texture *notexture, *noworldtexture;
extern void createtexture(int tnum, int w, int h, void *pixels, int clamp, bool mipmap, GLenum format);
extern Texture *textureload(const char *name, int clamp = 0);
extern Texture *lookuptexture(int tex);
extern Texture *lookuptexture(int tex, Texture *failtex = notexture);
extern void draw_envbox(int fogdist);
extern bool reloadtexture(Texture &t);
extern bool reloadtexture(const char *name);
extern void reloadtextures();
static inline Texture *lookupworldtexture(int tex)
{ return lookuptexture(tex, noworldtexture); }
extern int maxtmus;
extern void inittmus();
extern void resettmu(int n);