BloodknightStudios

Untitled

Jul 18th, 2017
675
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. //-----------------------------------------------------------------------------
  2. // Draw Rectangle
  3. //-----------------------------------------------------------------------------
  4. void GFXDrawUtil::drawRect( const Point2I &upperLeft, const Point2I &lowerRight, const ColorI &color )
  5. {
  6. drawRect( Point2F((F32)upperLeft.x,(F32)upperLeft.y),Point2F((F32)lowerRight.x,(F32)lowerRight.y),color);
  7. }
  8.  
  9. void GFXDrawUtil::drawRect( const RectI &rect, const ColorI &color )
  10. {
  11. drawRect( rect.point, Point2I(rect.point.x + rect.extent.x - 1, rect.point.y + rect.extent.y - 1), color );
  12. }
  13.  
  14. void GFXDrawUtil::drawRect( const RectF &rect, const ColorI &color )
  15. {
  16. drawRect( rect.point, Point2F(rect.point.x + rect.extent.x - 1, rect.point.y + rect.extent.y - 1), color );
  17. }
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment