25#include "../qcommon/q_shared.h"
26#include "../renderercommon/tr_public.h"
43 IMGFLAG_NONE = 0x0000,
44 IMGFLAG_MIPMAP = 0x0001,
45 IMGFLAG_PICMIP = 0x0002,
46 IMGFLAG_CUBEMAP = 0x0004,
47 IMGFLAG_NO_COMPRESSION = 0x0010,
48 IMGFLAG_NOLIGHTSCALE = 0x0020,
49 IMGFLAG_CLAMPTOEDGE = 0x0040,
50 IMGFLAG_GENNORMALMAP = 0x0080,
54 char imgName[MAX_QPATH];
56 int uploadWidth, uploadHeight;
71 qboolean dynamicallyUpdated;
83#define LIGHTMAP_BY_VERTEX -3
84#define LIGHTMAP_WHITEIMAGE -2
85#define LIGHTMAP_NONE -1
94extern qboolean textureFilterAnisotropic;
95extern int maxAnisotropy;
96extern float displayAspect;
97extern qboolean haveClampToEdge;
102extern cvar_t *r_stencilbits;
103extern cvar_t *r_depthbits;
104extern cvar_t *r_colorbits;
105extern cvar_t *r_texturebits;
106extern cvar_t *r_ext_multisample;
112extern cvar_t *r_mode;
113extern cvar_t *r_noborder;
114extern cvar_t *r_fullscreen;
115extern cvar_t *r_ignorehwgamma;
116extern cvar_t *r_drawBuffer;
117extern cvar_t *r_swapInterval;
119extern cvar_t *r_allowExtensions;
120extern cvar_t *r_ext_compressed_textures;
121extern cvar_t *r_ext_multitexture;
122extern cvar_t *r_ext_compiled_vertex_array;
123extern cvar_t *r_ext_texture_env_add;
125extern cvar_t *r_ext_texture_filter_anisotropic;
126extern cvar_t *r_ext_max_anisotropy;
128extern cvar_t *r_stereoEnabled;
130extern cvar_t *r_saveFontData;
132qboolean R_GetModeInfo(
int *width,
int *height,
float *windowAspect,
int mode );
134float R_NoiseGet4f(
float x,
float y,
float z,
double t );
135void R_NoiseInit(
void );
137image_t *R_FindImageFile(
const char *name, imgType_t type, imgFlags_t flags );
138image_t *R_RefreshImageFile(
const char *name, imgType_t type, imgFlags_t flags );
139image_t *R_CreateImage(
const char *name,
byte *pic,
int width,
int height, imgType_t type, imgFlags_t flags,
int internalFormat );
141void R_IssuePendingRenderCommands(
void );
142qhandle_t RE_RegisterShaderLightMap(
const char *name,
int lightmapIndex );
143qhandle_t RE_RegisterShader(
const char *name );
144qhandle_t RE_RegisterShaderNoMip(
const char *name );
145qhandle_t RE_RegisterShaderFromImage(
const char *name,
int lightmapIndex, image_t *image, qboolean mipRawImage);
148void R_InitFreeType(
void );
149void R_DoneFreeType(
void );
150void RE_RegisterFont(
const char *fontName,
int pointSize,
fontInfo_t *font);
160void R_LoadBMP(
const char *name,
byte **pic,
int *width,
int *height );
161void R_LoadJPG(
const char *name,
byte **pic,
int *width,
int *height );
162void R_LoadPCX(
const char *name,
byte **pic,
int *width,
int *height );
163void R_LoadPNG(
const char *name,
byte **pic,
int *width,
int *height );
164void R_LoadTGA(
const char *name,
byte **pic,
int *width,
int *height );
174void GLimp_Init( qboolean fixedFunction );
175void GLimp_Shutdown(
void );
176void GLimp_EndFrame(
void );
178void GLimp_LogComment(
char *comment );
179void GLimp_Minimize(
void);
181void GLimp_SetGamma(
unsigned char red[256],
182 unsigned char green[256],
183 unsigned char blue[256] );
Definition q_shared.h:2181
Definition tr_types.h:244
Definition tr_common.h:53
Definition tr_public.h:186