r_draw.h

Go to the documentation of this file.
00001 
00005 /*
00006 Copyright (C) 1997-2001 Id Software, Inc.
00007 
00008 This program is free software; you can redistribute it and/or
00009 modify it under the terms of the GNU General Public License
00010 as published by the Free Software Foundation; either version 2
00011 of the License, or (at your option) any later version.
00012 
00013 This program is distributed in the hope that it will be useful,
00014 but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00016 
00017 See the GNU General Public License for more details.
00018 
00019 You should have received a copy of the GNU General Public License
00020 along with this program; if not, write to the Free Software
00021 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00022 
00023 */
00024 
00025 #ifndef R_DRAW_H
00026 #define R_DRAW_H
00027 
00028 void R_DrawImage(float x, float y, const image_t *image);
00029 void R_DrawStretchImage(float x, float y, int w, int h, const image_t *image);
00030 const image_t *R_DrawImageArray(const vec2_t texcoords[4], const vec2_t verts[4], const image_t *image);
00031 void R_DrawChar(int x, int y, int c);
00032 void R_DrawChars(void);
00033 void R_DrawFill(int x, int y, int w, int h, const vec4_t color);
00034 void R_DrawRect(int x, int y, int w, int h, const vec4_t color, float lineWidth, int pattern);
00035 int R_UploadData(const char *name, byte *frame, int width, int height);
00036 void R_DrawTexture(int texnum, int x, int y, int w, int h);
00037 void R_DrawLineStrip(int points, int *verts);
00038 void R_DrawLineLoop(int points, int *verts);
00039 void R_DrawLine(int *verts, float thickness);
00040 void R_DrawCircle(vec3_t mid, float radius, const vec4_t color, int thickness);
00041 void R_DrawCircle2D(int x, int y, float radius, qboolean fill, const vec4_t color, float thickness);
00042 void R_DrawPolygon(int points, int *verts);
00043 void R_PushClipRect(int x, int y, int width, int height);
00044 void R_PopClipRect(void);
00045 void R_CleanupDepthBuffer(int x, int y, int width, int height);
00046 void R_DrawBoundingBox(const vec3_t mins, const vec3_t maxs);
00047 
00048 #endif

Generated by  doxygen 1.6.2