25#ifndef SFML_TRANSFORMABLE_H
26#define SFML_TRANSFORMABLE_H
31#include <SFML/Graphics/Export.h>
32#include <SFML/Graphics/Types.h>
33#include <SFML/Graphics/Transform.h>
34#include <SFML/System/Vector2.h>
43CSFML_GRAPHICS_API sfTransformable* sfTransformable_create(
void);
53CSFML_GRAPHICS_API sfTransformable* sfTransformable_copy(
const sfTransformable* transformable);
61CSFML_GRAPHICS_API
void sfTransformable_destroy(sfTransformable* transformable);
74CSFML_GRAPHICS_API
void sfTransformable_setPosition(sfTransformable* transformable,
sfVector2f position);
87CSFML_GRAPHICS_API
void sfTransformable_setRotation(sfTransformable* transformable,
float angle);
100CSFML_GRAPHICS_API
void sfTransformable_setScale(sfTransformable* transformable,
sfVector2f scale);
116CSFML_GRAPHICS_API
void sfTransformable_setOrigin(sfTransformable* transformable,
sfVector2f origin);
126CSFML_GRAPHICS_API
sfVector2f sfTransformable_getPosition(
const sfTransformable* transformable);
138CSFML_GRAPHICS_API
float sfTransformable_getRotation(
const sfTransformable* transformable);
148CSFML_GRAPHICS_API
sfVector2f sfTransformable_getScale(
const sfTransformable* transformable);
158CSFML_GRAPHICS_API
sfVector2f sfTransformable_getOrigin(
const sfTransformable* transformable);
170CSFML_GRAPHICS_API
void sfTransformable_move(sfTransformable* transformable,
sfVector2f offset);
182CSFML_GRAPHICS_API
void sfTransformable_rotate(sfTransformable* transformable,
float angle);
194CSFML_GRAPHICS_API
void sfTransformable_scale(sfTransformable* transformable,
sfVector2f factors);
204CSFML_GRAPHICS_API
sfTransform sfTransformable_getTransform(
const sfTransformable* transformable);
214CSFML_GRAPHICS_API
sfTransform sfTransformable_getInverseTransform(
const sfTransformable* transformable);
2-component vector of floats