QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages

Functions

qpic_tDraw_CachePic (const char *path, qboolean alpha)
 Load a qpic from the filesystem. More...
 
void Draw_DestroyPic (qpic_t *pic)
 Destroy a qpic created by Draw_MakePic. More...
 
qpic_tDraw_MakePic (int width, int height, const byte *data)
 Create a qpic from raw data. 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_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_UncachePic (const char *path)
 Remove a qpic from the qpic cache. More...
 

Detailed Description

Function Documentation

qpic_t* Draw_CachePic ( const char *  path,
qboolean  alpha 
)

Load a qpic from the filesystem.

Parameters
pathpath of the file within the quake filesystem
alphatransparency level of the pic.
Returns
pointer qpic data.
Note
Up to MAX_CACHED_PICS qpics can be loaded at a time this way
void Draw_DestroyPic ( qpic_t pic)

Destroy a qpic created by Draw_MakePic.

Parameters
picThe qpic to destory.
qpic_t* Draw_MakePic ( int  width,
int  height,
const byte data 
)

Create a qpic from raw data.

Parameters
widthThe width of the pic.
heightThe height of the pic.
dataThe raw data bytes. The system palette will be used for colors.
Returns
pointer qpic data.
void Draw_Pic ( int  x,
int  y,
qpic_t pic 
)

Draw a qpic to the screen.

Parameters
xhorizontal location of the upper left corner of the qpic
yvertical location of the upper left corner of the qpic
picqpic to draw
void Draw_Picf ( float  x,
float  y,
qpic_t pic 
)

Draw a qpic to the screen.

Parameters
xhorizontal location of the upper left corner of the qpic
yvertical location of the upper left corner of the qpic
picqpic to draw
qpic_t* Draw_PicFromWad ( const char *  name)

Load a qpic from gfx.wad.

Parameters
namename of the was lump to load
Returns
pointer qpic data.
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.

Parameters
xhorizontal screen location of the upper left corner of the sub-region
yvertical screen location of the upper left corner of the sub-region
picqpic to draw
srcxhorizontal qpic location of the upper left corner of the sub-region
srcyvertical qpic location of the upper left corner of the sub-region
widthhorizontal size of the sub-region to be drawn
heightvertical size of the sub-region to be drawn
void Draw_UncachePic ( const char *  path)

Remove a qpic from the qpic cache.

This affects only those qpics that were loaded via Draw_CachePic.

Parameters
pathpath of the file within the quake filesystem