00001
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
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