Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //-----------------------------------------------------------------------------
- // Draw Rectangle
- //-----------------------------------------------------------------------------
- void GFXDrawUtil::drawRect( const Point2I &upperLeft, const Point2I &lowerRight, const ColorI &color )
- {
- drawRect( Point2F((F32)upperLeft.x,(F32)upperLeft.y),Point2F((F32)lowerRight.x,(F32)lowerRight.y),color);
- }
- void GFXDrawUtil::drawRect( const RectI &rect, const ColorI &color )
- {
- drawRect( rect.point, Point2I(rect.point.x + rect.extent.x - 1, rect.point.y + rect.extent.y - 1), color );
- }
- void GFXDrawUtil::drawRect( const RectF &rect, const ColorI &color )
- {
- drawRect( rect.point, Point2F(rect.point.x + rect.extent.x - 1, rect.point.y + rect.extent.y - 1), color );
- }
Advertisement