]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_screen.h
renamed NetConn_UpdateServerStuff to NetConn_UpdateSockets and made it non-static...
[xonotic/darkplaces.git] / cl_screen.h
index 79fb54f1cd3b02c68228076ec1831e8874854c5e..b1663a15e98dfe19d328493c06e9fef0596adc20 100644 (file)
@@ -7,11 +7,13 @@
 #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;
 }
@@ -64,6 +66,10 @@ void DrawQ_Mesh(drawqueuemesh_t *mesh, int flags);
 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);
@@ -72,7 +78,7 @@ void SHOWLMP_clear(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;