X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=draw.h;h=f0af80c681ea45f94268de39a2ca798bfddbd72d;hb=980ac035e70ad26a44913dabebe4be5726f966ac;hp=88b3d5a11f1e8f5c850cb4f854f875b54d107fb0;hpb=971ad66cc21064832305abca4e356213dd513d9b;p=xonotic%2Fdarkplaces.git diff --git a/draw.h b/draw.h index 88b3d5a1..f0af80c6 100644 --- a/draw.h +++ b/draw.h @@ -110,11 +110,15 @@ extern dp_font_t dp_fonts[MAX_FONTS]; #define STRING_COLOR_TAG '^' #define STRING_COLOR_DEFAULT 7 #define STRING_COLOR_DEFAULT_STR "^7" +#define STRING_COLOR_RGB_TAG_CHAR 'x' +#define STRING_COLOR_RGB_TAG "^x" // all of these functions will set r_defdef.draw2dstage if not in 2D rendering mode (and of course prepare for 2D rendering in that case) // draw an image (or a filled rectangle if pic == NULL) void DrawQ_Pic(float x, float y, cachepic_t *pic, float width, float height, float red, float green, float blue, float alpha, int flags); +// draw a rotated image +void DrawQ_RotPic(float x, float y, cachepic_t *pic, float width, float height, float org_x, float org_y, float angle, float red, float green, float blue, float alpha, int flags); // draw a filled rectangle (slightly faster than DrawQ_Pic with pic = NULL) void DrawQ_Fill(float x, float y, float width, float height, float red, float green, float blue, float alpha, int flags); // draw a text string,