25 #ifndef SFML_RENDERTEXTURE_H
26 #define SFML_RENDERTEXTURE_H
31 #include <SFML/Graphics/Export.h>
32 #include <SFML/Graphics/Color.h>
33 #include <SFML/Graphics/Rect.h>
34 #include <SFML/Graphics/Types.h>
35 #include <SFML/Graphics/PrimitiveType.h>
36 #include <SFML/Graphics/RenderStates.h>
37 #include <SFML/Graphics/Vertex.h>
38 #include <SFML/Window/Window.h>
39 #include <SFML/System/Vector2.h>
56 CSFML_GRAPHICS_API sfRenderTexture* sfRenderTexture_create(
unsigned int width,
unsigned int height, sfBool depthBuffer);
68 CSFML_GRAPHICS_API sfRenderTexture* sfRenderTexture_createWithSettings(
unsigned int width,
unsigned int height,
sfContextSettings settings);
76 CSFML_GRAPHICS_API
void sfRenderTexture_destroy(sfRenderTexture* renderTexture);
86 CSFML_GRAPHICS_API
sfVector2u sfRenderTexture_getSize(
const sfRenderTexture* renderTexture);
97 CSFML_GRAPHICS_API sfBool sfRenderTexture_setActive(sfRenderTexture* renderTexture, sfBool active);
105 CSFML_GRAPHICS_API
void sfRenderTexture_display(sfRenderTexture* renderTexture);
114 CSFML_GRAPHICS_API
void sfRenderTexture_clear(sfRenderTexture* renderTexture,
sfColor color);
123 CSFML_GRAPHICS_API
void sfRenderTexture_setView(sfRenderTexture* renderTexture,
const sfView* view);
133 CSFML_GRAPHICS_API
const sfView* sfRenderTexture_getView(
const sfRenderTexture* renderTexture);
143 CSFML_GRAPHICS_API
const sfView* sfRenderTexture_getDefaultView(
const sfRenderTexture* renderTexture);
154 CSFML_GRAPHICS_API
sfIntRect sfRenderTexture_getViewport(
const sfRenderTexture* renderTexture,
const sfView* view);
181 CSFML_GRAPHICS_API
sfVector2f sfRenderTexture_mapPixelToCoords(
const sfRenderTexture* renderTexture,
sfVector2i point,
const sfView* view);
207 CSFML_GRAPHICS_API
sfVector2i sfRenderTexture_mapCoordsToPixel(
const sfRenderTexture* renderTexture,
sfVector2f point,
const sfView* view);
217 CSFML_GRAPHICS_API
void sfRenderTexture_drawSprite(sfRenderTexture* renderTexture,
const sfSprite*
object,
const sfRenderStates* states);
218 CSFML_GRAPHICS_API
void sfRenderTexture_drawText(sfRenderTexture* renderTexture,
const sfText*
object,
const sfRenderStates* states);
219 CSFML_GRAPHICS_API
void sfRenderTexture_drawShape(sfRenderTexture* renderTexture,
const sfShape*
object,
const sfRenderStates* states);
220 CSFML_GRAPHICS_API
void sfRenderTexture_drawCircleShape(sfRenderTexture* renderTexture,
const sfCircleShape*
object,
const sfRenderStates* states);
221 CSFML_GRAPHICS_API
void sfRenderTexture_drawConvexShape(sfRenderTexture* renderTexture,
const sfConvexShape*
object,
const sfRenderStates* states);
222 CSFML_GRAPHICS_API
void sfRenderTexture_drawRectangleShape(sfRenderTexture* renderTexture,
const sfRectangleShape*
object,
const sfRenderStates* states);
223 CSFML_GRAPHICS_API
void sfRenderTexture_drawVertexArray(sfRenderTexture* renderTexture,
const sfVertexArray*
object,
const sfRenderStates* states);
224 CSFML_GRAPHICS_API
void sfRenderTexture_drawVertexBuffer(sfRenderTexture* renderTexture,
const sfVertexBuffer*
object,
const sfRenderStates* states);
236 CSFML_GRAPHICS_API
void sfRenderTexture_drawPrimitives(sfRenderTexture* renderTexture,
237 const sfVertex* vertices,
size_t vertexCount,
261 CSFML_GRAPHICS_API
void sfRenderTexture_pushGLStates(sfRenderTexture* renderTexture);
272 CSFML_GRAPHICS_API
void sfRenderTexture_popGLStates(sfRenderTexture* renderTexture);
286 CSFML_GRAPHICS_API
void sfRenderTexture_resetGLStates(sfRenderTexture* renderTexture);
296 CSFML_GRAPHICS_API
const sfTexture* sfRenderTexture_getTexture(
const sfRenderTexture* renderTexture);
305 unsigned int sfRenderTexture_getMaximumAntialiasingLevel();
314 CSFML_GRAPHICS_API
void sfRenderTexture_setSmooth(sfRenderTexture* renderTexture, sfBool smooth);
324 CSFML_GRAPHICS_API sfBool sfRenderTexture_isSmooth(
const sfRenderTexture* renderTexture);
333 CSFML_GRAPHICS_API
void sfRenderTexture_setRepeated(sfRenderTexture* renderTexture, sfBool repeated);
343 CSFML_GRAPHICS_API sfBool sfRenderTexture_isRepeated(
const sfRenderTexture* renderTexture);
359 CSFML_GRAPHICS_API sfBool sfRenderTexture_generateMipmap(sfRenderTexture* renderTexture);
362 #endif // SFML_RENDERTEXTURE_H