QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
draw.c File Reference

Macros

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

Typedefs

typedef struct cachepic_s cachepic_t
 

Functions

void sw32_Draw_AltString (int x, int y, const char *str)
 
void sw32_Draw_BlendScreen (quat_t color)
 
qpic_tsw32_Draw_CachePic (const char *path, qboolean alpha)
 
void sw32_Draw_Character (int x, int y, unsigned int chr)
 
void sw32_Draw_ConsoleBackground (int lines, byte alpha)
 
void sw32_Draw_Crosshair (void)
 
void sw32_Draw_CrosshairAt (int ch, int x, int y)
 
void sw32_Draw_DestroyPic (qpic_t *pic)
 
void sw32_Draw_FadeScreen (void)
 
void sw32_Draw_Fill (int x, int y, int w, int h, int c)
 
void sw32_Draw_Init (void)
 
qpic_tsw32_Draw_MakePic (int width, int height, const byte *data)
 
void sw32_Draw_nString (int x, int y, const char *str, int count)
 
void sw32_Draw_Pic (int x, int y, qpic_t *pic)
 
void sw32_Draw_Picf (float x, float y, qpic_t *pic)
 
qpic_tsw32_Draw_PicFromWad (const char *name)
 
void sw32_Draw_String (int x, int y, const char *str)
 
void sw32_Draw_SubPic (int x, int y, qpic_t *pic, int srcx, int srcy, int width, int height)
 
void sw32_Draw_TextBox (int x, int y, int width, int lines, byte alpha)
 
void sw32_Draw_TileClear (int x, int y, int w, int h)
 
void sw32_Draw_UncachePic (const char *path)
 

Macro Definition Documentation

#define CLIP (   x,
  y,
  w,
  h,
  mw,
  mh 
)
Value:
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
if(!(yy_init))
Definition: qp-lex.c:893
#define MAX_CACHED_PICS   128
#define NH_DEFINE

Typedef Documentation

typedef struct cachepic_s cachepic_t

Function Documentation

void sw32_Draw_AltString ( int  x,
int  y,
const char *  str 
)
void sw32_Draw_BlendScreen ( quat_t  color)
qpic_t* sw32_Draw_CachePic ( const char *  path,
qboolean  alpha 
)
void sw32_Draw_Character ( int  x,
int  y,
unsigned int  chr 
)
void sw32_Draw_ConsoleBackground ( int  lines,
byte  alpha 
)
void sw32_Draw_Crosshair ( void  )
void sw32_Draw_CrosshairAt ( int  ch,
int  x,
int  y 
)
void sw32_Draw_DestroyPic ( qpic_t pic)
void sw32_Draw_FadeScreen ( void  )
void sw32_Draw_Fill ( int  x,
int  y,
int  w,
int  h,
int  c 
)
void sw32_Draw_Init ( void  )
qpic_t* sw32_Draw_MakePic ( int  width,
int  height,
const byte data 
)
void sw32_Draw_nString ( int  x,
int  y,
const char *  str,
int  count 
)
void sw32_Draw_Pic ( int  x,
int  y,
qpic_t pic 
)
void sw32_Draw_Picf ( float  x,
float  y,
qpic_t pic 
)
qpic_t* sw32_Draw_PicFromWad ( const char *  name)
void sw32_Draw_String ( int  x,
int  y,
const char *  str 
)
void sw32_Draw_SubPic ( int  x,
int  y,
qpic_t pic,
int  srcx,
int  srcy,
int  width,
int  height 
)
void sw32_Draw_TextBox ( int  x,
int  y,
int  width,
int  lines,
byte  alpha 
)
void sw32_Draw_TileClear ( int  x,
int  y,
int  w,
int  h 
)
void sw32_Draw_UncachePic ( const char *  path)