UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
r_draw.h
Go to the documentation of this file.
1 
5 /*
6 Copyright (C) 1997-2001 Id Software, Inc.
7 
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 2
11 of the License, or (at your option) any later version.
12 
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 
17 See the GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 
23 */
24 
25 #pragma once
26 
27 void R_DrawImage(float x, float y, const image_t* image);
28 void R_DrawStretchImage(float x, float y, int w, int h, const image_t* image);
29 const image_t* R_DrawImageArray(const vec2_t texcoords[4], const vec2_t verts[4], const image_t* image);
30 void R_DrawChar(int x, int y, int c, uint32_t color);
31 void R_DrawChars(void);
32 void R_DrawFills(void);
33 void R_DrawFill(int x, int y, int w, int h, const vec4_t color);
34 void R_DrawRect(int x, int y, int w, int h, const vec4_t color, float lineWidth, int pattern);
35 int R_UploadData(const char* name, unsigned* frame, int width, int height);
36 void R_DrawTexture(int texnum, int x, int y, int w, int h);
37 void R_DrawLineStrip(int points, int* verts);
38 void R_DrawLineLoop(int points, int* verts);
39 void R_DrawLine(int* verts, float thickness);
40 void R_DrawCircle(float radius, const vec4_t color, float thickness, const vec3_t shift);
41 void R_DrawPolygon(int points, int* verts);
42 void R_PushClipRect(int x, int y, int width, int height);
43 void R_PopClipRect(void);
44 void R_CleanupDepthBuffer(int x, int y, int width, int height);
45 void R_DrawBoundingBox(const AABB& absBox);
46 void R_DrawBoundingBoxBatched(const AABB& box);
47 void R_DrawBoundingBoxes(void);
48 void R_DrawTexturedBox(const vec3_t absmins, const vec3_t absmaxs);
const image_t * R_DrawImageArray(const vec2_t texcoords[4], const vec2_t verts[4], const image_t *image)
Definition: r_draw.cpp:357
static ipos3_t shift
The shift array is used for random map assemblies (RMA) to shift the mins/maxs and stuff like that...
void R_DrawLine(int *verts, float thickness)
Draws one line with only one start and one end point.
Definition: r_draw.cpp:494
void R_DrawLineStrip(int points, int *verts)
2 dimensional line strip
Definition: r_draw.cpp:477
Definition: aabb.h:42
void R_DrawImage(float x, float y, const image_t *image)
Draws an image or parts of it.
Definition: r_draw.cpp:341
void R_PushClipRect(int x, int y, int width, int height)
Force to draw only on a rect.
Definition: r_draw.cpp:550
void R_DrawCircle(float radius, const vec4_t color, float thickness, const vec3_t shift)
Definition: r_draw.cpp:422
void R_DrawFill(int x, int y, int w, int h, const vec4_t color)
Fills a box of pixels with a single color.
Definition: r_draw.cpp:188
void R_DrawTexture(int texnum, int x, int y, int w, int h)
Bind and draw a texture.
Definition: r_draw.cpp:328
void R_DrawLineLoop(int points, int *verts)
Definition: r_draw.cpp:485
void R_CleanupDepthBuffer(int x, int y, int width, int height)
"Clean up" the depth buffer into a rect
Definition: r_draw.cpp:596
void R_PopClipRect(void)
Definition: r_draw.cpp:579
void R_DrawChar(int x, int y, int c, uint32_t color)
Draws one 8*8 graphics character with 0 being transparent. It can be clipped to the top of the screen...
Definition: r_draw.cpp:99
void R_DrawChars(void)
Definition: r_draw.cpp:155
void R_DrawStretchImage(float x, float y, int w, int h, const image_t *image)
Definition: r_draw.cpp:349
void R_DrawBoundingBoxBatched(const AABB &box)
Definition: r_draw.cpp:670
void R_DrawBoundingBox(const AABB &absBox)
Draws the model bounding box.
Definition: r_draw.cpp:690
void R_DrawRect(int x, int y, int w, int h, const vec4_t color, float lineWidth, int pattern)
Draws a rect to the screen. Also has support for stippled rendering of the rect.
Definition: r_draw.cpp:390
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
Definition: r_gl.h:110
void R_DrawBoundingBoxes(void)
Definition: r_draw.cpp:640
void R_DrawTexturedBox(const vec3_t absmins, const vec3_t absmaxs)
Draws the textured box, the caller should bind the texture.
Definition: r_draw.cpp:714
vec_t vec3_t[3]
Definition: ufotypes.h:39
vec_t vec2_t[2]
Definition: ufotypes.h:38
int R_UploadData(const char *name, unsigned *frame, int width, int height)
Uploads image data.
Definition: r_draw.cpp:270
void R_DrawPolygon(int points, int *verts)
Definition: r_draw.cpp:509
void R_DrawFills(void)
Definition: r_draw.cpp:232
vec_t vec4_t[4]
Definition: ufotypes.h:40