Example #1
0
/*
================
CG_SetClipRegion
=================
*/
void CG_SetClipRegion( float x, float y, float w, float h ) {
	vec4_t clip;

	CG_AdjustFrom640( &x, &y, &w, &h );

	clip[ 0 ] = x;
	clip[ 1 ] = y;
	clip[ 2 ] = x + w;
	clip[ 3 ] = y + h;

	trap_R_SetClipRegion( clip );
}
Example #2
0
/*
================
CG_ClearClipRegion
=================
*/
void CG_ClearClipRegion( void )
{
	trap_R_SetClipRegion( NULL );
}