nudsfml.graphics.rectangleshape

This class inherits all the functions of $(TRANSFORMABLE_LINK) (position, rotation, scale, bounds, ...) as well as the functions of $(SHAPE_LINK) (outline, color, texture, ...).

Members

Classes

RectangleShape
class RectangleShape

Specialized shape representing a rectangle.

Examples

auto rectangle = new RectangleShape();
rectangle.size = Vector2f(100, 50);
rectangle.outlineColor = Color.Red;
rectangle.outlineThickness = 5;
rectangle.position = Vector2f(10, 20);
...
window.draw(rectangle);

See Also

$(SHAPE_LINK), $(CIRCLESHAPE_LINK), $(CONVEXSHAPE_LINK)

Meta