This class inherits all the functions of $(TRANSFORMABLE_LINK) (position, rotation, scale, bounds, ...) as well as the functions of $(SHAPE_LINK) (outline, color, texture, ...).
Specialized shape representing a rectangle.
1 auto rectangle = new RectangleShape(); 2 rectangle.size = Vector2f(100, 50); 3 rectangle.outlineColor = Color.Red; 4 rectangle.outlineThickness = 5; 5 rectangle.position = Vector2f(10, 20); 6 ... 7 window.draw(rectangle);
$(SHAPE_LINK), $(CIRCLESHAPE_LINK), $(CONVEXSHAPE_LINK)
See Source File
This class inherits all the functions of $(TRANSFORMABLE_LINK) (position, rotation, scale, bounds, ...) as well as the functions of $(SHAPE_LINK) (outline, color, texture, ...).