Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <SFML/Graphics.hpp>
- using namespace sf;
- RectangleShape PB_Rect(int posX, int posY, int width, int height)
- {
- RectangleShape rect(Vector2f(width, height));
- rect.setPosition(posX, posY);
- rect.setFillColor(Color(255,0,0));
- return rect;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement