mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +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);
|
||||
}
|
||||
|
||||
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
|
||||
R_Progs_Init (progs_t *pr)
|
||||
{
|
||||
PR_AddBuiltin (pr, "Draw_Pic", bi_Draw_Pic, -1);
|
||||
PR_AddBuiltin (pr, "Draw_String", bi_Draw_String, -1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue