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