Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <SFML/Graphics.hpp>
  2.  
  3. using namespace sf;
  4.  
  5. RectangleShape PB_Rect(int posX, int posY, int width, int height)
  6. {
  7.     RectangleShape rect(Vector2f(width, height));
  8.     rect.setPosition(posX, posY);
  9.     rect.setFillColor(Color(255,0,0));
  10.     return rect;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement