mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
add Draw_String to csqc
This commit is contained in:
parent
60e1b2caf3
commit
bb82e48ab1
1 changed files with 11 additions and 0 deletions
|
@ -51,8 +51,19 @@ bi_Draw_Pic (progs_t *pr)
|
||||||
Draw_Pic (x, y, pic);
|
Draw_Pic (x, y, pic);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
bi_Draw_String (progs_t *pr)
|
||||||
|
{
|
||||||
|
int x = G_INT (pr, OFS_PARM0);
|
||||||
|
int y = G_INT (pr, OFS_PARM1);
|
||||||
|
const char *text = G_STRING (pr, OFS_PARM2);
|
||||||
|
|
||||||
|
Draw_String (x, y, text);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
R_Progs_Init (progs_t *pr)
|
R_Progs_Init (progs_t *pr)
|
||||||
{
|
{
|
||||||
PR_AddBuiltin (pr, "Draw_Pic", bi_Draw_Pic, -1);
|
PR_AddBuiltin (pr, "Draw_Pic", bi_Draw_Pic, -1);
|
||||||
|
PR_AddBuiltin (pr, "Draw_String", bi_Draw_String, -1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue