#include "gl_local.h"
Go to the source code of this file.
Classes | |
struct | glmode_t |
struct | gltmode_t |
struct | _TargaHeader |
struct | floodfill_t |
Macros | |
#define | NUM_GL_MODES (sizeof(modes) / sizeof (glmode_t)) |
#define | NUM_GL_ALPHA_MODES (sizeof(gl_alpha_modes) / sizeof (gltmode_t)) |
#define | NUM_GL_SOLID_MODES (sizeof(gl_solid_modes) / sizeof (gltmode_t)) |
#define | MAX_SCRAPS 1 |
#define | BLOCK_WIDTH 256 |
#define | BLOCK_HEIGHT 256 |
#define | FLOODFILL_FIFO_SIZE 0x1000 |
#define | FLOODFILL_FIFO_MASK (FLOODFILL_FIFO_SIZE - 1) |
#define | FLOODFILL_STEP(off, dx, dy) |
Typedefs | |
typedef struct _TargaHeader | TargaHeader |
Variables | |
image_t | gltextures [MAX_GLTEXTURES] |
int | numgltextures |
int | base_textureid |
static byte | intensitytable [256] |
static unsigned char | gammatable [256] |
cvar_t * | intensity |
unsigned | d_8to24table [256] |
int | gl_solid_format = 3 |
int | gl_alpha_format = 4 |
int | gl_tex_solid_format = 3 |
int | gl_tex_alpha_format = 4 |
int | gl_filter_min = GL_LINEAR_MIPMAP_NEAREST |
int | gl_filter_max = GL_LINEAR |
glmode_t | modes [] |
gltmode_t | gl_alpha_modes [] |
gltmode_t | gl_solid_modes [] |
int | scrap_allocated [MAX_SCRAPS][BLOCK_WIDTH] |
byte | scrap_texels [MAX_SCRAPS][BLOCK_WIDTH *BLOCK_HEIGHT] |
qboolean | scrap_dirty |
int | scrap_uploads |
int | upload_width |
int | upload_height |
qboolean | uploaded_paletted |
#define BLOCK_HEIGHT 256 |
Definition at line 361 of file gl_image.c.
#define BLOCK_WIDTH 256 |
Definition at line 360 of file gl_image.c.
#define FLOODFILL_FIFO_MASK (FLOODFILL_FIFO_SIZE - 1) |
Definition at line 760 of file gl_image.c.
#define FLOODFILL_FIFO_SIZE 0x1000 |
Definition at line 759 of file gl_image.c.
#define FLOODFILL_STEP | ( | off, | |
dx, | |||
dy | |||
) |
Definition at line 762 of file gl_image.c.
#define MAX_SCRAPS 1 |
Definition at line 359 of file gl_image.c.
#define NUM_GL_ALPHA_MODES (sizeof(gl_alpha_modes) / sizeof (gltmode_t)) |
Definition at line 197 of file gl_image.c.
Definition at line 180 of file gl_image.c.
#define NUM_GL_SOLID_MODES (sizeof(gl_solid_modes) / sizeof (gltmode_t)) |
Definition at line 211 of file gl_image.c.
typedef struct _TargaHeader TargaHeader |
Definition at line 137 of file gl_image.c.
Referenced by Draw_Char(), Draw_InitLocal(), Draw_Pic(), Draw_StretchPic(), Draw_StretchRaw(), Draw_TileClear(), GL_BeginBuildingLightmaps(), GL_DrawParticles(), GL_LoadPic(), GL_MBind(), GL_TextureMode(), LM_UploadBlock(), R_BlendLightmaps(), R_DrawAliasModel(), R_DrawAlphaSurfaces(), R_DrawSkyBox(), R_DrawSpriteModel(), R_RenderBrushPoly(), and Scrap_Upload().
void GL_BuildPalettedTexture | ( | unsigned char * | paletted_texture, |
unsigned char * | scaled, | ||
int | scaled_width, | ||
int | scaled_height | ||
) |
Definition at line 71 of file gl_image.c.
Referenced by DrawTextureChains(), GL_BeginBuildingLightmaps(), GL_EndBuildingLightmaps(), R_DrawBrushModel(), R_DrawInlineBModel(), and R_DrawWorld().
image_t* GL_FindImage | ( | char * | name, |
imagetype_t | type | ||
) |
Definition at line 1363 of file gl_image.c.
Referenced by Draw_FindPic(), Draw_InitLocal(), Mod_LoadAliasModel(), Mod_LoadSpriteModel(), Mod_LoadTexinfo(), R_RegisterModel(), R_RegisterSkin(), and R_SetSky().
Definition at line 1247 of file gl_image.c.
Referenced by GL_FindImage(), and GL_LoadWal().
image_t* GL_LoadWal | ( | char * | name | ) |
void GL_ResampleTexture | ( | unsigned * | in, |
int | inwidth, | ||
int | inheight, | ||
unsigned * | out, | ||
int | outwidth, | ||
int | outheight | ||
) |
Definition at line 92 of file gl_image.c.
Referenced by GL_BeginBuildingLightmaps(), GL_EnableMultitexture(), GL_MBind(), R_DrawBrushModel(), and R_DrawWorld().
void GL_SetTexturePalette | ( | unsigned | palette[256] | ) |
Definition at line 126 of file gl_image.c.
Referenced by DrawTextureChains(), GL_DrawParticles(), GL_EnableMultitexture(), GL_SetDefaultState(), R_DrawAliasModel(), R_DrawAlphaSurfaces(), R_DrawBrushModel(), R_DrawInlineBModel(), R_DrawSkyBox(), R_DrawSpriteModel(), R_DrawWorld(), and R_RenderBrushPoly().
void GL_TextureAlphaMode | ( | char * | string | ) |
void GL_TextureMode | ( | char * | string | ) |
void GL_TextureSolidMode | ( | char * | string | ) |
Definition at line 968 of file gl_image.c.
Referenced by GL_LoadPic(), and GL_Upload8().
struct image_s* R_RegisterSkin | ( | char * | name | ) |
Definition at line 1428 of file gl_image.c.
int base_textureid |
Definition at line 26 of file gl_image.c.
unsigned d_8to24table[256] |
Definition at line 33 of file gl_image.c.
Referenced by Draw_GetPalette(), GL_Upload8(), and R_FloodFillSkin().
|
static |
Definition at line 29 of file gl_image.c.
Referenced by GL_InitImages(), and GL_LightScaleTexture().
int gl_alpha_format = 4 |
Definition at line 40 of file gl_image.c.
Referenced by GL_Upload32().
gltmode_t gl_alpha_modes[] |
Definition at line 188 of file gl_image.c.
Referenced by GL_TextureAlphaMode().
int gl_filter_max = GL_LINEAR |
Definition at line 46 of file gl_image.c.
Referenced by GL_SetDefaultState(), GL_TextureMode(), GL_Upload32(), and GL_Upload8().
int gl_filter_min = GL_LINEAR_MIPMAP_NEAREST |
Definition at line 45 of file gl_image.c.
Referenced by GL_SetDefaultState(), GL_TextureMode(), and GL_Upload32().
int gl_solid_format = 3 |
Definition at line 39 of file gl_image.c.
Referenced by GL_Upload32().
gltmode_t gl_solid_modes[] |
Definition at line 199 of file gl_image.c.
Referenced by GL_TextureSolidMode().
int gl_tex_alpha_format = 4 |
Definition at line 43 of file gl_image.c.
Referenced by GL_BeginBuildingLightmaps(), GL_TextureAlphaMode(), and GL_Upload32().
int gl_tex_solid_format = 3 |
Definition at line 42 of file gl_image.c.
Referenced by Draw_StretchRaw(), GL_BeginBuildingLightmaps(), GL_TextureSolidMode(), and GL_Upload32().
image_t gltextures[MAX_GLTEXTURES] |
Definition at line 24 of file gl_image.c.
Referenced by DrawTextureChains(), GL_FindImage(), GL_FreeUnusedImages(), GL_ImageList_f(), GL_LoadPic(), GL_ShutdownImages(), and GL_TextureMode().
cvar_t* intensity |
Definition at line 31 of file gl_image.c.
Referenced by CL_AddPacketEntities(), CL_ColorFlash(), GL_InitImages(), R_MarkLights(), and V_AddLight().
|
static |
Definition at line 28 of file gl_image.c.
Referenced by GL_InitImages(), and GL_LightScaleTexture().
glmode_t modes[] |
Definition at line 171 of file gl_image.c.
Referenced by GL_TextureMode().
int numgltextures |
Definition at line 25 of file gl_image.c.
Referenced by DrawTextureChains(), GL_FindImage(), GL_FreeUnusedImages(), GL_ImageList_f(), GL_LoadPic(), GL_ShutdownImages(), and GL_TextureMode().
int scrap_allocated[MAX_SCRAPS][BLOCK_WIDTH] |
Definition at line 363 of file gl_image.c.
Referenced by Scrap_AllocBlock().
qboolean scrap_dirty |
Definition at line 365 of file gl_image.c.
Referenced by Draw_Pic(), Draw_StretchPic(), GL_LoadPic(), and Scrap_Upload().
byte scrap_texels[MAX_SCRAPS][BLOCK_WIDTH *BLOCK_HEIGHT] |
Definition at line 364 of file gl_image.c.
Referenced by GL_LoadPic(), and Scrap_Upload().
int scrap_uploads |
Definition at line 409 of file gl_image.c.
Referenced by Scrap_Upload().
int upload_height |
Definition at line 965 of file gl_image.c.
Referenced by GL_LoadPic(), and GL_Upload32().
int upload_width |
Definition at line 965 of file gl_image.c.
Referenced by GL_LoadPic(), and GL_Upload32().
qboolean uploaded_paletted |
Definition at line 966 of file gl_image.c.
Referenced by GL_LoadPic(), and GL_Upload32().