SFML.Net
Transformable Class |
Decomposed transform defined by a position, a rotation and a scale

SystemObject SFMLObjectBase
SFML.GraphicsTransformable
SFML.GraphicsShape
SFML.GraphicsSprite
SFML.GraphicsText
SFML.GraphicsTransformable
SFML.GraphicsShape
SFML.GraphicsSprite
SFML.GraphicsText
Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)

The Transformable type exposes the following members.

Name | Description | |
---|---|---|
![]() | Transformable |
Default constructor
|
![]() | Transformable(IntPtr) |
Construct the object from its internal C pointer
|
![]() | Transformable(Transformable) |
Construct the transformable from another transformable
|

Name | Description | |
---|---|---|
![]() | Destroy |
Handle the destruction of the object
(Overrides ObjectBaseDestroy(Boolean).) |
![]() | Dispose |
Explicitely dispose the object
(Inherited from ObjectBase.) |
![]() | Equals |
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.) |
![]() | Finalize |
Dispose the object
(Inherited from ObjectBase.) |
![]() | GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
![]() | 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.) |

Name | Description | |
---|---|---|
![]() | CPointer |
Access to the internal pointer of the object.
For internal use only
(Inherited from ObjectBase.) |
![]() | InverseTransform |
The combined transform of the object
|
![]() | 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).
|
![]() | Position |
Position of the object
|
![]() | Rotation |
Rotation of the object
|
![]() | Scale |
Scale of the object
|
![]() | Transform |
The combined transform of the object
|

A note on coordinates and undistorted rendering:
By default, SFML (or more exactly, OpenGL) may interpolate drawable objects
such as sprites or texts when rendering. While this allows transitions
like slow movements or rotations to appear smoothly, it can lead to
unwanted results in some cases, for example blurred or distorted objects.
In order to render a SFML.Graphics.Drawable object pixel-perfectly, make sure
the involved coordinates allow a 1:1 mapping of pixels in the window
to texels (pixels in the texture). More specifically, this means:
* The object's position, origin and scale have no fractional part
* The object's and the view's rotation are a multiple of 90 degrees
* The view's center and size have no fractional part
