X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=cl_screen.h;h=c48a2cf4592c859e7b961b2f87f097fc1fa001d5;hb=5a2506c15b552f73998d5cb90326d6c7185e3ef7;hp=da063b8d8e24694604049e34eaf421de39a4ca58;hpb=a76b746a4cd4e319c9629348ad2fb6563ef49393;p=xonotic%2Fdarkplaces.git diff --git a/cl_screen.h b/cl_screen.h index da063b8d..c48a2cf4 100644 --- a/cl_screen.h +++ b/cl_screen.h @@ -17,15 +17,18 @@ typedef struct drawqueue_s drawqueue_t; // a triangle mesh... embedded in the drawqueue +// each vertex is 4 floats (3 are used) +// each texcoord is 4 floats (3 are used) +// each color is 4 floats (4 are used) typedef struct drawqueuemesh_s { rtexture_t *texture; - int numindices; + int numtriangles; int numvertices; int *indices; float *vertices; float *texcoords; - qbyte *colors; + float *colors; } drawqueuemesh_t; @@ -36,7 +39,7 @@ void DrawQ_Clear(void); // draw an image void DrawQ_Pic(float x, float y, 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, char *string, int maxlen, float scalex, float scaley, float red, float green, float blue, float alpha, int flags); +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 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 triangle mesh