Метод | Описание | |
---|---|---|
Draw ( RenderTarget target, |
Draw the shape to a render target
|
|
GetGlobalBounds ( ) : FloatRect |
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.
|
|
GetLocalBounds ( ) : FloatRect |
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 ( uint index ) : Vector2f |
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 ( ) : uint |
Get the total number of points of the shape
|
|
Shape ( |
Construct the shape from another shape
|
Метод | Описание | |
---|---|---|
Destroy ( bool disposing ) : void |
Handle the destruction of the object
|
|
Shape ( ) : System |
Default constructor
|
|
Update ( ) : void |
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).
|
Метод | Описание | |
---|---|---|
InternalGetPoint ( uint index, |
Callback passed to the C API
|
|
InternalGetPointCount ( |
Callback passed to the C API
|
|
sfRenderTexture_drawShape ( |
||
sfRenderWindow_drawShape ( |
||
sfShape_copy ( |
||
sfShape_create ( GetPointCountCallbackType getPointCount, GetPointCallbackType getPoint, |
||
sfShape_destroy ( |
||
sfShape_getFillColor ( |
||
sfShape_getLocalBounds ( |
||
sfShape_getOutlineColor ( |
||
sfShape_getOutlineThickness ( |
||
sfShape_getTextureRect ( |
||
sfShape_setFillColor ( |
||
sfShape_setOutlineColor ( |
||
sfShape_setOutlineThickness ( |
||
sfShape_setTexture ( |
||
sfShape_setTextureRect ( |
||
sfShape_update ( |
protected Destroy ( bool disposing ) : void | ||
disposing | bool | Is the GC disposing the object, or is it an explicit call ? |
Результат | void |
public Draw ( RenderTarget target, |
||
target | RenderTarget | Render target to draw to |
states | Current render states | |
Результат | void |
public abstract GetPoint ( uint index ) : Vector2f | ||
index | uint | Index of the point to get, in range [0 .. PointCount - 1] |
Результат | Vector2f |
public Shape ( |
||
copy | Shape to copy | |
Результат | System |