]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - draw.h
new con_closeontoggleconsole logic:
[xonotic/darkplaces.git] / draw.h
diff --git a/draw.h b/draw.h
index cd220ce03a1ebef6a38d8edb522906dcfdecfeb3..7c3b6543766a46ad26c9d40a84b11f087587312f 100644 (file)
--- a/draw.h
+++ b/draw.h
@@ -100,7 +100,7 @@ typedef struct ft2_settings_s
        float outline, blur, shadowx, shadowy, shadowz;
 } ft2_settings_t;
 
-#define MAX_FONT_SIZES 8
+#define MAX_FONT_SIZES 16
 #define MAX_FONT_FALLBACKS 3
 typedef struct dp_font_s
 {
@@ -162,6 +162,7 @@ void DrawQ_Fill(float x, float y, float width, float height, float red, float gr
 // if outcolor is provided the initial color is read from it, and it is updated at the end with the new value at the end of the text (not at the end of the clipped part)
 // the color is tinted by the provided base color
 // if r_textshadow is not zero, an additional instance of the text is drawn first at an offset with an inverted shade of gray (black text produces a white shadow, brightly colored text produces a black shadow)
+extern float DrawQ_Color[4];
 float DrawQ_String(float x, float y, const char *text, size_t maxlen, float scalex, float scaley, float basered, float basegreen, float baseblue, float basealpha, int flags, int *outcolor, qboolean ignorecolorcodes, const dp_font_t *fnt);
 float DrawQ_String_Scale(float x, float y, const char *text, size_t maxlen, float sizex, float sizey, float scalex, float scaley, float basered, float basegreen, float baseblue, float basealpha, int flags, int *outcolor, qboolean ignorecolorcodes, const dp_font_t *fnt);
 float DrawQ_TextWidth(const char *text, size_t maxlen, float w, float h, qboolean ignorecolorcodes, const dp_font_t *fnt);
@@ -178,6 +179,8 @@ void DrawQ_SetClipArea(float x, float y, float width, float height);
 void DrawQ_ResetClipArea(void);
 // draw a line
 void DrawQ_Line(float width, float x1, float y1, float x2, float y2, float r, float g, float b, float alpha, int flags);
+// draw a lot of lines
+void DrawQ_Lines (float width, int numlines, const float *vertex3f, const float *color4f, int flags);
 // draw a line loop
 void DrawQ_LineLoop(drawqueuemesh_t *mesh, int flags);
 // resets r_refdef.draw2dstage