Returns the Clip Rect. The Sprite will notice if a Texture Rect is used or not and will therefore adapt the size of the view automatically
Returns a pointer to the current Texture
Returns the current Texture Rect
Set a Color for the Sprite which is painted over the displayed Texture.
Reset the Texture
Set the Texture Rect. With this you can define a specific view of the Texture, so that only this specific view will be drawn.
Returns the current matrix. If any transformations was made, the matrix is updated before
Sets the position
Sets the position
Move the position by offset (x, y)
Move the position by offset (x, y)
Returns the current position
Returns the x coordinate <b>by value</b>
Sets a new x coordinate
Returns the y coordinate <b>by value</b>
Sets a new y coordinate
Sets the center position
Sets the center of the rotation
Returns the current rotation center
Sets the origin. The origin is a offset which is added to the position and serves as center position for scaling and rotation.
Sets the origin. The origin is a offset which is added to the position and serves as center position for scaling and rotation.
Returns the current origin
Sets the scaling (for both, x and y)
Sets the scaling (for both, x and y)
Inc-/Decrease the scaling
Inc-/Decrease the scaling
Returns the current scaling
Set the rotation angle. If not in range of 0 .. 360 it will be set to 0.
Inc-/Decrease the rotation. If the rotation is <b>after</b> that not in range of 0 .. 360 it will be set to 0.
Returns the current rotation
Draw method which is called from the Window's draw method
Sprite represents a drawable object and maintains a Texture