206 #endif // SFML_VIEW_H #define CSFML_GRAPHICS_API
CSFML_GRAPHICS_API sfView * sfView_create(void)
Create a default view.
CSFML_GRAPHICS_API void sfView_setViewport(sfView *view, sfFloatRect viewport)
Set the target viewport of a view.
CSFML_GRAPHICS_API sfView * sfView_copy(const sfView *view)
Copy an existing view.
CSFML_GRAPHICS_API sfFloatRect sfView_getViewport(const sfView *view)
Get the target viewport rectangle of a view.
CSFML_GRAPHICS_API float sfView_getRotation(const sfView *view)
Get the current orientation of a view.
CSFML_GRAPHICS_API void sfView_destroy(sfView *view)
Destroy an existing view.
CSFML_GRAPHICS_API void sfView_rotate(sfView *view, float angle)
Rotate a view relatively to its current orientation.
CSFML_GRAPHICS_API void sfView_setRotation(sfView *view, float angle)
Set the orientation of a view.
CSFML_GRAPHICS_API sfVector2f sfView_getSize(const sfView *view)
Get the size of a view.
sfFloatRect and sfIntRect are utility classes for manipulating rectangles.
CSFML_GRAPHICS_API void sfView_zoom(sfView *view, float factor)
Resize a view rectangle relatively to its current size.
CSFML_GRAPHICS_API void sfView_setCenter(sfView *view, sfVector2f center)
Set the center of a view.
CSFML_GRAPHICS_API void sfView_setSize(sfView *view, sfVector2f size)
Set the size of a view.
CSFML_GRAPHICS_API sfVector2f sfView_getCenter(const sfView *view)
Get the center of a view.
CSFML_GRAPHICS_API void sfView_reset(sfView *view, sfFloatRect rectangle)
Reset a view to the given rectangle.
CSFML_GRAPHICS_API void sfView_move(sfView *view, sfVector2f offset)
Move a view relatively to its current position.
2-component vector of floats
CSFML_GRAPHICS_API sfView * sfView_createFromRect(sfFloatRect rectangle)
Construct a view from a rectangle.