summaryrefslogtreecommitdiff
path: root/src/ui/ui_syscalls.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2009-10-12 22:36:35 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:48 +0000
commit35249fc2c3762fe1690559772a6d89724fb7469c (patch)
treeefad01bc9142be45298594fbf8c01fdcca5e8237 /src/ui/ui_syscalls.c
parent6e5fbea644646afa82130be9bf366d866c9838ca (diff)
* Add [trap_R|RE]_SetClipRegion to prevent rendering outside a specified area
* Rewrite CG_DrawTeamSpectators to scroll on a pixel basis rather than a character basis
Diffstat (limited to 'src/ui/ui_syscalls.c')
-rw-r--r--src/ui/ui_syscalls.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/ui_syscalls.c b/src/ui/ui_syscalls.c
index 29938149..4da66e03 100644
--- a/src/ui/ui_syscalls.c
+++ b/src/ui/ui_syscalls.c
@@ -197,6 +197,11 @@ void trap_R_SetColor( const float *rgba )
syscall( UI_R_SETCOLOR, rgba );
}
+void trap_R_SetClipRegion( const float *region )
+{
+ syscall( UI_R_SETCLIPREGION, region );
+}
+
void trap_R_DrawStretchPic( float x, float y, float w, float h, float s1, float t1, float s2, float t2, qhandle_t hShader )
{
syscall( UI_R_DRAWSTRETCHPIC, PASSFLOAT( x ), PASSFLOAT( y ), PASSFLOAT( w ), PASSFLOAT( h ), PASSFLOAT( s1 ), PASSFLOAT( t1 ), PASSFLOAT( s2 ), PASSFLOAT( t2 ), hShader );