All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
draw.c File Reference


#define CLIP(x, y, w, h, mw, mh)
#define MAX_CACHED_PICS   128


typedef struct cachepic_s cachepic_t


void Draw_AltString (int x, int y, const char *str)
 Draws a character string to the screen. More...
void Draw_BlendScreen (quat_t color)
 Shift the screen colors. More...
qpic_tDraw_CachePic (const char *path, qboolean alpha)
 Load a qpic from the filesystem. More...
void Draw_Character (int x, int y, unsigned int chr)
void Draw_ConsoleBackground (int lines, byte alpha)
 Draw the console background with various optional effects. More...
void Draw_Crosshair (void)
 Draw a crosshair at the center of the screen. More...
void Draw_CrosshairAt (int ch, int x, int y)
 Draw the specified crosshair on the screen. More...
void Draw_DestroyPic (qpic_t *pic)
 Destroy a qpic created by Draw_MakePic. More...
void Draw_FadeScreen (void)
 Darken the screen. More...
void Draw_Fill (int x, int y, int w, int h, int c)
 Clear a rectangle with a solid color. More...
void Draw_Init (void)
 Initialize the draw stuff. More...
qpic_tDraw_MakePic (int width, int height, const byte *data)
 Create a qpic from raw data. More...
void Draw_nString (int x, int y, const char *str, int count)
 Draws a character sub-string to the screen. More...
void Draw_Pic (int x, int y, qpic_t *pic)
 Draw a qpic to the screen. More...
void Draw_Picf (float x, float y, qpic_t *pic)
 Draw a qpic to the screen. More...
qpic_tDraw_PicFromWad (const char *name)
 Load a qpic from gfx.wad. More...
void Draw_String (int x, int y, const char *str)
 Draws a character string to the screen. More...
void Draw_SubPic (int x, int y, qpic_t *pic, int srcx, int srcy, int width, int height)
 Draw a sub-region of a qpic to the screan. More...
void Draw_TextBox (int x, int y, int width, int lines, byte alpha)
 Draw a text box on the screen. More...
void Draw_TileClear (int x, int y, int w, int h)
 Clear a rectangle with a tiled background. More...
void Draw_UncachePic (const char *path)
 Remove a qpic from the qpic cache. More...

Macro Definition Documentation

#define CLIP (   x,
do { \
if (y < 0) { \
h += y; \
y = 0; \
} \
if (y + h > mh) \
h = mh - y; \
if (h <= 0) \
return; \
if (x < 0) { \
w += x; \
x = 0; \
} \
if (x + w > mw) \
w = mw - x; \
if (w <= 0) \
return; \
} while (0)
vec_t * x
Definition: test-bary.c:27
Definition: qp-lex.c:893
#define MAX_CACHED_PICS   128

Typedef Documentation

typedef struct cachepic_s cachepic_t

Function Documentation

void Draw_Character ( int  x,
int  y,
unsigned int  chr