#define DRAWQUEUE_MESH 1
#define DRAWQUEUE_SETCLIP 2
#define DRAWQUEUE_RESETCLIP 3
+#define DRAWQUEUE_LINEWIDTH 4
+#define DRAWQUEUE_LINES 5
typedef struct drawqueue_s
{
unsigned short size;
- qbyte command, flags;
+ unsigned char command, flags;
unsigned int color;
float x, y, scalex, scaley;
}
// shared color tag printing constants
#define STRING_COLOR_TAG '^'
#define STRING_COLOR_DEFAULT 7
-#define STRING_COLOR_DEFAULT_STR "7"
+#define STRING_COLOR_DEFAULT_STR "^7"
// clear the draw queue
void DrawQ_Clear(void);
void DrawQ_SetClipArea(float x, float y, float width, float height);
// reset the clipping area
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 line loop
+void DrawQ_LineLoop(drawqueuemesh_t *mesh, int flags);
void SHOWLMP_decodehide(void);
void SHOWLMP_decodeshow(void);
extern cvar_t vid_conwidth;
extern cvar_t vid_conheight;
-extern cvar_t vid_pixelaspect;
+extern cvar_t vid_pixelheight;
extern cvar_t scr_screenshot_jpeg;
extern cvar_t scr_screenshot_jpeg_quality;
extern cvar_t scr_screenshot_gamma;