All pastes #835438 Raw Edit

Something

public cpp v1 · immutable
#835438 ·published 2007-12-28 21:37 UTC
rendered paste body
void Qw::DrawBounds2D(const sdBounds2D b, const idVec4 &color, const float borderWidth = 1.0f) {	idVec4 v = b.ToVec4();		//virtual void DrawLine( const idVec2& start, const idVec2& end, const float width, const idVec4 &color ) = 0;	deviceContext->DrawLine( idVec2(v.x, v.y), idVec2(v.x+v.z, v.y), borderWidth, color); //right	deviceContext->DrawLine( idVec2(v.x+v.z, v.y), idVec2(v.x+v.z, v.y+v.w), borderWidth, color); //down	deviceContext->DrawLine( idVec2(v.x+v.z, v.y+v.w), idVec2(v.x, v.y+v.w), borderWidth, color); //left	deviceContext->DrawLine( idVec2(v.x, v.y+v.w), idVec2(v.x, v.y), borderWidth, color); //up}