]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_screen.h
use sdl-config --static-libs on Mac
[xonotic/darkplaces.git] / cl_screen.h
index d914bfaa821e969c6b7bff2073c6e5fa7267c0fd..50530abd73cb7c2618fa767e1d3ea8528772b313 100644 (file)
@@ -41,12 +41,19 @@ DRAWFLAG_2XMODULATE,
 DRAWFLAG_NUMFLAGS
 };
 
+// shared color tag printing constants
+#define STRING_COLOR_TAG                       '^'
+#define STRING_COLOR_DEFAULT           7
+#define STRING_COLOR_DEFAULT_STR       "7"
+
 // clear the draw queue
 void DrawQ_Clear(void);
 // draw an image
 void DrawQ_Pic(float x, float y, const char *picname, float width, float height, float red, float green, float blue, float alpha, int flags);
 // draw a text string
 void DrawQ_String(float x, float y, const char *string, int maxlen, float scalex, float scaley, float red, float green, float blue, float alpha, int flags);
+// draw a text string that supports color tags (colorindex can either be NULL, -1 to make it choose the default color or valid index to start with)
+void DrawQ_ColoredString( float x, float y, const char *text, int maxlen, float scalex, float scaley, float basered, float basegreen, float baseblue, float basealpha, int flags, int *outcolor );
 // draw a filled rectangle
 void DrawQ_Fill(float x, float y, float w, float h, float red, float green, float blue, float alpha, int flags);
 // draw a very fancy pic (per corner texcoord/color control), the order is tl, tr, bl, br