CircleShape

Specialized shape representing a circle.

Constructors

this
this(float radius = 0, uint pointCount = 30)

* Default constructor. * * Params: * radius = Radius of the circle * pointCount = Number of points composing the circle

Destructor

~this
~this()

Destructor

Members

Functions

getPoint
Vector2f getPoint(uint index)

Get a point of the shape.

Properties

dup
CircleShape dup [@property getter]

Clones this CircleShape

pointCount
uint pointCount [@property setter]
uint pointCount [@property getter]

The number of points of the circle.

radius
float radius [@property setter]
float radius [@property getter]

The radius of the circle.

Inherited Members

From Shape

textureRect
IntRect textureRect [@property setter]
IntRect textureRect [@property getter]

The sub-rectangle of the texture that the shape will display.

fillColor
Color fillColor [@property setter]
Color fillColor [@property getter]

The fill color of the shape.

outlineColor
Color outlineColor [@property setter]
Color outlineColor [@property getter]

The outline color of the shape.

outlineThickness
float outlineThickness [@property setter]
float outlineThickness [@property getter]

The thickness of the shape's outline.

pointCount
uint pointCount [@property getter]

The total number of points in the shape.

getGlobalBounds
FloatRect getGlobalBounds()

Get the global bounding rectangle of the entity.

getLocalBounds
FloatRect getLocalBounds()

Get the local bounding rectangle of the entity.

getPoint
Vector2f getPoint(uint index)

Get a point of the shape.

getTexture
const(Texture) getTexture()

Get the source texture of the shape.

setTexture
void setTexture(const(Texture) texture, bool resetRect = false)

Change the source texture of the shape.

draw
void draw(RenderTarget renderTarget, RenderStates renderStates)

Draw the shape to a render target.

update
void update()

Recompute the internal geometry of the shape.

Meta