25 #ifndef SFML_CONVEXSHAPE_H
26 #define SFML_CONVEXSHAPE_H
31 #include <SFML/Graphics/Export.h>
32 #include <SFML/Graphics/Color.h>
33 #include <SFML/Graphics/Rect.h>
34 #include <SFML/Graphics/Transform.h>
35 #include <SFML/Graphics/Types.h>
36 #include <SFML/System/Vector2.h>
46 CSFML_GRAPHICS_API sfConvexShape* sfConvexShape_create(
void);
56 CSFML_GRAPHICS_API sfConvexShape* sfConvexShape_copy(
const sfConvexShape* shape);
64 CSFML_GRAPHICS_API
void sfConvexShape_destroy(sfConvexShape* shape);
77 CSFML_GRAPHICS_API
void sfConvexShape_setPosition(sfConvexShape* shape,
sfVector2f position);
90 CSFML_GRAPHICS_API
void sfConvexShape_setRotation(sfConvexShape* shape,
float angle);
103 CSFML_GRAPHICS_API
void sfConvexShape_setScale(sfConvexShape* shape,
sfVector2f scale);
119 CSFML_GRAPHICS_API
void sfConvexShape_setOrigin(sfConvexShape* shape,
sfVector2f origin);
129 CSFML_GRAPHICS_API
sfVector2f sfConvexShape_getPosition(
const sfConvexShape* shape);
141 CSFML_GRAPHICS_API
float sfConvexShape_getRotation(
const sfConvexShape* shape);
151 CSFML_GRAPHICS_API
sfVector2f sfConvexShape_getScale(
const sfConvexShape* shape);
161 CSFML_GRAPHICS_API
sfVector2f sfConvexShape_getOrigin(
const sfConvexShape* shape);
173 CSFML_GRAPHICS_API
void sfConvexShape_move(sfConvexShape* shape,
sfVector2f offset);
185 CSFML_GRAPHICS_API
void sfConvexShape_rotate(sfConvexShape* shape,
float angle);
197 CSFML_GRAPHICS_API
void sfConvexShape_scale(sfConvexShape* shape,
sfVector2f factors);
207 CSFML_GRAPHICS_API
sfTransform sfConvexShape_getTransform(
const sfConvexShape* shape);
217 CSFML_GRAPHICS_API
sfTransform sfConvexShape_getInverseTransform(
const sfConvexShape* shape);
238 CSFML_GRAPHICS_API
void sfConvexShape_setTexture(sfConvexShape* shape,
const sfTexture* texture, sfBool resetRect);
251 CSFML_GRAPHICS_API
void sfConvexShape_setTextureRect(sfConvexShape* shape,
sfIntRect rect);
267 CSFML_GRAPHICS_API
void sfConvexShape_setFillColor(sfConvexShape* shape,
sfColor color);
279 CSFML_GRAPHICS_API
void sfConvexShape_setOutlineColor(sfConvexShape* shape,
sfColor color);
292 CSFML_GRAPHICS_API
void sfConvexShape_setOutlineThickness(sfConvexShape* shape,
float thickness);
306 CSFML_GRAPHICS_API
const sfTexture* sfConvexShape_getTexture(
const sfConvexShape* shape);
316 CSFML_GRAPHICS_API
sfIntRect sfConvexShape_getTextureRect(
const sfConvexShape* shape);
326 CSFML_GRAPHICS_API
sfColor sfConvexShape_getFillColor(
const sfConvexShape* shape);
336 CSFML_GRAPHICS_API
sfColor sfConvexShape_getOutlineColor(
const sfConvexShape* shape);
346 CSFML_GRAPHICS_API
float sfConvexShape_getOutlineThickness(
const sfConvexShape* shape);
356 CSFML_GRAPHICS_API
size_t sfConvexShape_getPointCount(
const sfConvexShape* shape);
369 CSFML_GRAPHICS_API
sfVector2f sfConvexShape_getPoint(
const sfConvexShape* shape,
size_t index);
380 CSFML_GRAPHICS_API
void sfConvexShape_setPointCount(sfConvexShape* shape,
size_t count);
396 CSFML_GRAPHICS_API
void sfConvexShape_setPoint(sfConvexShape* shape,
size_t index,
sfVector2f point);
412 CSFML_GRAPHICS_API
sfFloatRect sfConvexShape_getLocalBounds(
const sfConvexShape* shape);
428 CSFML_GRAPHICS_API
sfFloatRect sfConvexShape_getGlobalBounds(
const sfConvexShape* shape);
431 #endif // SFML_CONVEXSHAPE_H