Transformable Class

SFML.Net

Transformable Class
Decomposed transform defined by a position, a rotation and a scale
Inheritance Hierarchy
SystemObject  SFMLObjectBase
    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)
Syntax
public class Transformable : ObjectBase
Public Class Transformable
	Inherits ObjectBase
public ref class Transformable : public ObjectBase
type Transformable =  
    class
        inherit ObjectBase
    end

The Transformable type exposes the following members.

Constructors
  NameDescription
Public methodTransformable
Default constructor
Protected methodTransformable(IntPtr)
Construct the object from its internal C pointer
Public methodTransformable(Transformable)
Construct the transformable from another transformable
Top
Methods
  NameDescription
Protected methodDestroy
Handle the destruction of the object
(Overrides ObjectBaseDestroy(Boolean).)
Public methodDispose
Explicitely dispose the object
(Inherited from ObjectBase.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Dispose the object
(Inherited from ObjectBase.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyCPointer
Access to the internal pointer of the object. For internal use only
(Inherited from ObjectBase.)
Public propertyInverseTransform
The combined transform of the object
Public propertyOrigin
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).
Public propertyPosition
Position of the object
Public propertyRotation
Rotation of the object
Public propertyScale
Scale of the object
Public propertyTransform
The combined transform of the object
Top
Remarks
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
See Also