SFML.Net
ConvexShape Class |
Specialized shape representing a convex polygon

Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)

The ConvexShape type exposes the following members.

Name | Description | |
---|---|---|
![]() | ConvexShape |
Default constructor
|
![]() | ConvexShape(UInt32) |
Construct the shape with an initial point count
|
![]() | ConvexShape(ConvexShape) |
Construct the shape from another shape
|

Name | Description | |
---|---|---|
![]() | Destroy |
Handle the destruction of the object
(Inherited from Shape.) |
![]() | Dispose |
Explicitely dispose the object
(Inherited from ObjectBase.) |
![]() | Draw | (Inherited from Shape.) |
![]() | 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.
(Inherited from Shape.) |
![]() | 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.
(Inherited from Shape.) |
![]() | 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.
(Overrides ShapeGetPoint(UInt32).) |
![]() | GetPointCount |
Get the total number of points of the polygon
(Overrides ShapeGetPointCount.) |
![]() | GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
![]() | MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
![]() | SetPoint |
Set the position of a point.
Don't forget that the polygon must remain convex, and
the points need to stay ordered!
PointCount must be set first in order to set the total
number of points. The result is undefined if index is out
of the valid range.
|
![]() | SetPointCount |
Set the number of points of the polygon.
The count must be greater than 2 to define a valid shape.
|
![]() | 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).
(Inherited from Shape.) |

Name | Description | |
---|---|---|
![]() | CPointer |
Access to the internal pointer of the object.
For internal use only
(Inherited from ObjectBase.) |
![]() | FillColor |
Fill color of the shape
(Inherited from Shape.) |
![]() | InverseTransform |
The combined transform of the object
(Inherited from Transformable.) |
![]() | Origin |
The origin of an object defines the center point for
all transformations (position, scale, rotation).
The coordinates of this point must be relative to the
top-left corner of the object, and ignore all
transformations (position, scale, rotation).
(Inherited from Transformable.) |
![]() | OutlineColor |
Outline color of the shape
(Inherited from Shape.) |
![]() | OutlineThickness |
Thickness of the shape's outline
(Inherited from Shape.) |
![]() | Position |
Position of the object
(Inherited from Transformable.) |
![]() | Rotation |
Rotation of the object
(Inherited from Transformable.) |
![]() | Scale |
Scale of the object
(Inherited from Transformable.) |
![]() | Texture |
Source texture of the shape
(Inherited from Shape.) |
![]() | TextureRect |
Sub-rectangle of the texture that the shape will display
(Inherited from Shape.) |
![]() | Transform |
The combined transform of the object
(Inherited from Transformable.) |
