/* ================ UI_DrawRect Coordinates are 640*480 virtual values ================= */ void CG_DrawRect( gfixed x, gfixed y, gfixed width, gfixed height, gfixed size, const gfixed *color ) { _CG_trap_R_SetColor( color ); CG_DrawTopBottom(x, y, width, height, size); CG_DrawSides(x, y, width, height, size); _CG_trap_R_SetColor( NULL ); }
/* ================ UI_DrawRect Coordinates are 640*480 virtual values ================= */ void CG_DrawRect( float x, float y, float width, float height, float size, const float *color ) { trap_R_SetColor( color ); CG_DrawTopBottom( x, y, width, height, size ); CG_DrawSides( x, y, width, height, size ); trap_R_SetColor( NULL ); }
/* ================ CG_DrawRect Coordinates are 640*480 virtual values ================= */ void CG_DrawRect( float x, float y, float width, float height, float size, const Color::Color& color ) { trap_R_SetColor( color ); CG_DrawTopBottom( x, y, width, height, size ); CG_DrawSides( x, y, width, height, size ); trap_R_ClearColor(); }
/* ================ CG_DrawRoundedRect Coordinates are 640*480 virtual values ================= */ void CG_DrawRoundedRect( float x, float y, float width, float height, float size, const float *color ) { trap_R_SetColor( color ); CG_DrawTopBottom( x + size * 4, y, width - size * 8, height, size ); CG_DrawSides( x, y + size * 4, width, height - size * 8, size ); CG_DrawCorners( x, y, width, height, size * 4, cgDC.Assets.cornerOut ); trap_R_SetColor( NULL ); }
/* ================ UI_DrawRect Coordinates are 640*480 virtual values ================= */ void CG_DrawRect( float x, float y, float width, float height, float size, const float *color ) { vec4_t hudAlphaColor; Vector4Copy( color, hudAlphaColor ); hudAlphaColor[3] *= cg_hudAlpha.value; trap_R_SetColor( hudAlphaColor ); CG_DrawTopBottom( x, y, width, height, size ); CG_DrawSides( x, y, width, height, size ); trap_R_SetColor( NULL ); }
void CG_DrawSidesDc (float x, float y, float w, float h, float size, int widescreen, rectDef_t menuRect) { wsset(); CG_DrawSides(x, y, w, h, size); wsoff(); }
void UI_DisplayContextCG::drawSides( float x, float y, float w, float h, float size ) { CG_DrawSides( x, y, w, h, size ); }