1 /** 2 * @file 3 */ 4 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 vec3_t absmins, const vec3_t absmaxs); 46 void R_DrawBoundingBoxBatched(const vec3_t absmins, const vec3_t absmaxs); 47 void R_DrawBoundingBoxes(void); 48 void R_DrawTexturedBox(const vec3_t absmins, const vec3_t absmaxs); 49