SFML.Net
Shape Methods |
The Shape type exposes the following members.

Name | Description | |
---|---|---|
![]() |
Destroy |
Handle the destruction of the object
(Overrides TransformableDestroy(Boolean).) |
![]() |
Dispose |
Explicitely dispose the object
(Inherited from ObjectBase.) |
![]() |
Draw | |
![]() |
Equals |
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.) |
![]() |
Finalize |
Dispose the object
(Inherited from ObjectBase.) |
![]() |
GetGlobalBounds |
Get the global bounding rectangle of the entity.
The returned rectangle is in global coordinates, which means
that it takes in account the transformations (translation,
rotation, scale, ...) that are applied to the entity.
In other words, this function returns the bounds of the
sprite in the global 2D world's coordinate system.
|
![]() |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
![]() |
GetLocalBounds |
Get the local bounding rectangle of the entity.
The returned rectangle is in local coordinates, which means
that it ignores the transformations (translation, rotation,
scale, ...) that are applied to the entity.
In other words, this function returns the bounds of the
entity in the entity's coordinate system.
|
![]() |
GetPoint |
Get the position of a point
The returned point is in local coordinates, that is,
the shape's transforms (position, rotation, scale) are
not taken into account.
The result is undefined if index is out of the valid range.
|
![]() |
GetPointCount |
Get the total number of points of the shape
|
![]() |
GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
![]() |
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
![]() |
ToString |
Returns a String that represents the current Object.
(Inherited from Object.) |
![]() |
Update |
Recompute the internal geometry of the shape.
This function must be called by the derived class everytime
the shape's points change (ie. the result of either
PointCount or GetPoint is different).
|
