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.
auto rectangle = new RectangleShape(); rectangle.size = Vector2f(100, 50); rectangle.outlineColor = Color.Red; rectangle.outlineThickness = 5; rectangle.position = Vector2f(10, 20); ... 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, ...).