mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-23 04:32:28 +00:00
Added DrawCleanBox for scoreboard
This commit is contained in:
parent
a68414cfa8
commit
40e184a58c
1 changed files with 21 additions and 0 deletions
|
@ -5,6 +5,9 @@
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.8 2002/02/04 00:22:50 niceass
|
||||||
|
// Added DrawCleanBox for scoreboard
|
||||||
|
//
|
||||||
// Revision 1.7 2002/01/11 19:48:29 jbravo
|
// Revision 1.7 2002/01/11 19:48:29 jbravo
|
||||||
// Formatted the source in non DOS format.
|
// Formatted the source in non DOS format.
|
||||||
//
|
//
|
||||||
|
@ -75,6 +78,7 @@ void CG_DrawTopBottom(float x, float y, float w, float h, float size) {
|
||||||
trap_R_DrawStretchPic( x, y, w, size, 0, 0, 0, 0, cgs.media.whiteShader );
|
trap_R_DrawStretchPic( x, y, w, size, 0, 0, 0, 0, cgs.media.whiteShader );
|
||||||
trap_R_DrawStretchPic( x, y + h - size, w, size, 0, 0, 0, 0, cgs.media.whiteShader );
|
trap_R_DrawStretchPic( x, y + h - size, w, size, 0, 0, 0, 0, cgs.media.whiteShader );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
================
|
================
|
||||||
UI_DrawRect
|
UI_DrawRect
|
||||||
|
@ -91,6 +95,23 @@ void CG_DrawRect( float x, float y, float width, float height, float size, const
|
||||||
trap_R_SetColor( NULL );
|
trap_R_SetColor( NULL );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
================
|
||||||
|
UI_DrawRect -- Added by NiceAss
|
||||||
|
"Size" not scaled
|
||||||
|
|
||||||
|
Coordinates are 640*480 virtual values
|
||||||
|
=================
|
||||||
|
*/
|
||||||
|
void CG_DrawCleanRect( float x, float y, float width, float height, float size, const float *color ) {
|
||||||
|
CG_AdjustFrom640( &x, &y, &width, &height );
|
||||||
|
trap_R_SetColor( color );
|
||||||
|
trap_R_DrawStretchPic( x, y, size, height, 0, 0, 0, 0, cgs.media.whiteShader );
|
||||||
|
trap_R_DrawStretchPic( x + width- size, y, size, height, 0, 0, 0, 0, cgs.media.whiteShader );
|
||||||
|
trap_R_DrawStretchPic( x, y, width, size, 0, 0, 0, 0, cgs.media.whiteShader );
|
||||||
|
trap_R_DrawStretchPic( x, y + height - size, width, size, 0, 0, 0, 0, cgs.media.whiteShader );
|
||||||
|
trap_R_SetColor( NULL );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue