34typedef enum cachepicflags_e
60typedef struct drawqueuemesh_s
84#define DRAWFLAGS_BLEND 0xFF
86typedef struct ft2_settings_s
91 float outline,
blur, shadowx, shadowy, shadowz;
94#define MAX_FONT_SIZES 16
95#define MAX_FONT_FALLBACKS 3
96#define MAX_FONT_CMDLINE MAX_QPATH * (MAX_FONT_FALLBACKS + 1)
97typedef struct dp_font_s
118typedef struct dp_fonts_s
127#define FONTS_EXPAND 8
128#define FONT_DEFAULT (&dp_fonts.f[0])
129#define FONT_CONSOLE (&dp_fonts.f[1])
130#define FONT_SBAR (&dp_fonts.f[2])
131#define FONT_NOTIFY (&dp_fonts.f[3])
132#define FONT_CHAT (&dp_fonts.f[4])
133#define FONT_CENTERPRINT (&dp_fonts.f[5])
134#define FONT_INFOBAR (&dp_fonts.f[6])
135#define FONT_MENU (&dp_fonts.f[7])
136#define FONT_USER(i) (&dp_fonts.f[8+i])
137#define MAX_USERFONTS (dp_fonts.maxsize - 8)
140#define STRING_COLOR_TAG '^'
141#define STRING_COLOR_DEFAULT 7
142#define STRING_COLOR_DEFAULT_STR "^7"
143#define STRING_COLOR_RGB_TAG_CHAR 'x'
144#define STRING_COLOR_RGB_TAG "^x"
159void DrawQ_RotPic(
float x,
float y, cachepic_t *pic,
float width,
float height,
float org_x,
float org_y,
float angle,
float red,
float green,
float blue,
float alpha,
int flags);
171float 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,
qbool ignorecolorcodes,
const dp_font_t *fnt);
172float 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,
qbool ignorecolorcodes,
const dp_font_t *fnt);
179void DrawQ_SuperPic(
float x,
float y, cachepic_t *pic,
float width,
float height,
float s1,
float t1,
float r1,
float g1,
float b1,
float a1,
float s2,
float t2,
float r2,
float g2,
float b2,
float a2,
float s3,
float t3,
float r3,
float g3,
float b3,
float a3,
float s4,
float t4,
float r4,
float g4,
float b4,
float a4,
int flags);
cachepic_t * Draw_CachePic(const char *path)
@ CACHEPICFLAG_FAILONMISSING
@ CACHEPICFLAG_NOTPERSISTENT
@ CACHEPICFLAG_NOCOMPRESSION
rtexturepool_t * drawtexturepool
float DrawQ_TextWidth_UntilWidth_TrackColors(const char *text, size_t *maxlen, float w, float h, int *outcolor, qbool ignorecolorcodes, const dp_font_t *fnt, float maxwidth)
void DrawQ_Fill(float x, float y, float width, float height, float red, float green, float blue, float alpha, int flags)
void Draw_FreePic(const char *picname)
void DrawQ_Pic(float x, float y, cachepic_t *pic, float width, float height, float red, float green, float blue, float alpha, int flags)
void DrawQ_SuperPic(float x, float y, cachepic_t *pic, float width, float height, float s1, float t1, float r1, float g1, float b1, float a1, float s2, float t2, float r2, float g2, float b2, float a2, float s3, float t3, float r3, float g3, float b3, float a3, float s4, float t4, float r4, float g4, float b4, float a4, int flags)
cachepic_t * Draw_NewPic(const char *picname, int width, int height, unsigned char *pixels, textype_t textype, int texflags)
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, qbool ignorecolorcodes, const dp_font_t *fnt)
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, qbool ignorecolorcodes, const dp_font_t *fnt)
void DrawQ_RotPic(float x, float y, cachepic_t *pic, float width, float height, float org_x, float org_y, float angle, float red, float green, float blue, float alpha, int flags)
void DrawQ_Line(float width, float x1, float y1, float x2, float y2, float r, float g, float b, float alpha, int flags)
const char * Draw_GetPicName(cachepic_t *pic)
const vec4_t string_colors[]
color tag printing
cachepic_t * Draw_CachePic_Flags(const char *path, unsigned int cachepicflags)
int Draw_GetPicWidth(cachepic_t *pic)
float DrawQ_TextWidth(const char *text, size_t maxlen, float w, float h, qbool ignorecolorcodes, const dp_font_t *fnt)
rtexture_t * Draw_GetPicTexture(cachepic_t *pic)
void DrawQ_SetClipArea(float x, float y, float width, float height)
float DrawQ_TextWidth_UntilWidth(const char *text, size_t *maxlen, float w, float h, qbool ignorecolorcodes, const dp_font_t *fnt, float maxWidth)
void DrawQ_RecalcView(void)
#define MAX_FONT_FALLBACKS
int Draw_GetPicHeight(cachepic_t *pic)
float DrawQ_TextWidth_UntilWidth_TrackColors_Scale(const char *text, size_t *maxlen, float w, float h, float sw, float sh, int *outcolor, qbool ignorecolorcodes, const dp_font_t *fnt, float maxwidth)
qbool Draw_IsPicLoaded(cachepic_t *pic)
void DrawQ_ResetClipArea(void)
GLenum GLsizei GLsizei height
GLubyte GLubyte GLubyte GLubyte w
GLint GLenum GLint GLint y
GLint GLenum GLenum GLvoid * pixels
#define MAX_QPATH
max length of a quake game pathname
unsigned short * data_element3s