Modules | |
| QPic functions | |
Functions | |
| 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... | |
| void | Draw_Character (int x, int y, unsigned ch) |
| Draws one 8*8 graphics character with 0 being transparent. More... | |
| 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_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... | |
| void | Draw_nString (int x, int y, const char *str, int count) |
| Draws a character sub-string to the screen. More... | |
| void | Draw_String (int x, int y, const char *str) |
| Draws a character string to the screen. 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... | |
Variables | |
| byte * | draw_chars |
Draws a character string to the screen.
No line wrapping is performed.
| x | horizontal location of the top left corner of the character. |
| y | vertical location of the top left corner of the character. |
| str | 8 bit character string to draw. |
| void Draw_BlendScreen | ( | quat_t | color | ) |
Shift the screen colors.
Draws one 8*8 graphics character with 0 being transparent.
It can be clipped to the top of the screen to allow the console to be smoothly scrolled off.
| x | horizontal location of the top left corner of the character. |
| y | vertical location of the top left corner of the character. |
| ch | 8 bit character to draw. |
Draw the console background with various optional effects.
| lines | Vertical size in pixels of the console. |
| alpha | Console transparency level (255 = opaque). |
alpha is effective only in the OpenGL renderer. Effectively 255 (opaque) for the software renderer.gl_conspin causes the background to spin.
gl_constretch causes the background to stretch rather than slide.
| void Draw_Crosshair | ( | void | ) |
Draw a crosshair at the center of the screen.
crosshair specifies which crosshair (1 = '+', 2 = large 'x' shape, 3 = fancy '+' shape) cl_crossx and cl_crossy offset the crosshair from the center of the screen.
Draw the specified crosshair on the screen.
| ch | crosshair to draw |
| x | horizontal position of the center of the crosshair. |
| y | vertical position of the center of the crosshair. |
See Draw_Crosshair() for description of crosshair values.
| void Draw_FadeScreen | ( | void | ) |
Darken the screen.
Clear a rectangle with a solid color.
| x | horizontal position of the upper left corner of the rectangle |
| y | horizontal position of the upper left corner of the rectangle |
| w | width of the rectangle |
| h | height of the rectangle |
| c | 8 bit color index. |
The color comes from the quake palette.
| void Draw_Init | ( | void | ) |
Initialize the draw stuff.
Draws a character sub-string to the screen.
No line wrapping is performed.
| x | horizontal location of the top left corner of the character. |
| y | vertical location of the top left corner of the character. |
| str | 8 bit character string to draw. |
| count | Maximum characters of the string to draw. |
count characters, or stops at the first nul character. Draws a character string to the screen.
No line wrapping is performed.
| x | horizontal location of the top left corner of the character. |
| y | vertical location of the top left corner of the character. |
| str | 8 bit character string to draw. |
Draw a text box on the screen.
| x | horizontal location of the upper left corner of the box |
| y | vertical location of the upper left corner of the box |
| width | horizontal size in character cells of the region |
| lines | vertical size in character cells of the region |
| alpha | transparency of the box |
Clear a rectangle with a tiled background.
| x | horizontal position of the upper left corner of the rectangle |
| y | horizontal position of the upper left corner of the rectangle |
| w | width of the rectangle |
| h | height of the rectangle |
The background used is the "backtile" WAD lump.
| byte* draw_chars |