#define CL_SCREEN_H
// drawqueue stuff for use by client to feed 2D art to renderer
-#define MAX_DRAWQUEUE 262144
-
#define DRAWQUEUE_PIC 0
#define DRAWQUEUE_STRING 1
#define DRAWQUEUE_MESH 2
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;
// 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