Redline/source/textures.h
maride 02061d74c2 Original 1.0.5 code
(as received from Jonas Echterhoff)
2016-04-02 14:43:55 +02:00

42 lines
768 B
C
Executable File

#ifndef __TEXTURES
#define __TEXTURES
#include "fileio.h"
#include <OpenGL/gl.h>
typedef struct{
tFileRef texture;
int priority;
} tTexturePriority;
typedef struct{
int numPriorities;
tTexturePriority *priorities;
} tTexturePriorityList;
typedef struct{
GLint compressionSize;
GLenum target;
GLint level;
GLint internalformat;
GLsizei width;
GLsizei height;
GLint border;
GLenum format;
GLenum type;
GLbyte data[1];
} tCachedTexture;
typedef struct{
int numEntries;
int offsets[1];
} tTextureCacheFile;
extern int gEnableTextureLoad,gNumTexturesRequested,gNumTexturesLoaded,gTexturesQualityModifier;
void TexturesSelectTex(tFileRef tex);
void TexturesAlphaFadeMipMaps();
void TexturesUnloadAll();
int TexturesSelectTextureUnit(int unit);
#endif