25 #ifndef SFML_RENDERTEXTURE_H 26 #define SFML_RENDERTEXTURE_H 220 const sfVertex* vertices,
size_t vertexCount,
336 #endif // SFML_RENDERTEXTURE_H CSFML_GRAPHICS_API sfBool sfRenderTexture_generateMipmap(sfRenderTexture *renderTexture)
Generate a mipmap using the current texture data.
#define CSFML_GRAPHICS_API
CSFML_GRAPHICS_API void sfRenderTexture_destroy(sfRenderTexture *renderTexture)
Destroy an existing render texture.
sfPrimitiveType
Types of primitives that a sf::VertexArray can render.
struct sfRenderTexture sfRenderTexture
CSFML_GRAPHICS_API void sfRenderTexture_drawSprite(sfRenderTexture *renderTexture, const sfSprite *object, const sfRenderStates *states)
Draw a drawable object to the render-target.
CSFML_GRAPHICS_API void sfRenderTexture_display(sfRenderTexture *renderTexture)
Update the contents of the target texture.
struct sfConvexShape sfConvexShape
struct sfVertexArray sfVertexArray
CSFML_GRAPHICS_API void sfRenderTexture_drawRectangleShape(sfRenderTexture *renderTexture, const sfRectangleShape *object, const sfRenderStates *states)
CSFML_GRAPHICS_API void sfRenderTexture_clear(sfRenderTexture *renderTexture, sfColor color)
Clear the rendertexture with the given color.
CSFML_GRAPHICS_API void sfRenderTexture_setView(sfRenderTexture *renderTexture, const sfView *view)
Change the current active view of a render texture.
CSFML_GRAPHICS_API sfVector2i sfRenderTexture_mapCoordsToPixel(const sfRenderTexture *renderTexture, sfVector2f point, const sfView *view)
Convert a point from world coordinates to texture coordinates.
CSFML_GRAPHICS_API sfRenderTexture * sfRenderTexture_create(unsigned int width, unsigned int height, sfBool depthBuffer)
Construct a new render texture.
CSFML_GRAPHICS_API sfBool sfRenderTexture_setActive(sfRenderTexture *renderTexture, sfBool active)
Activate or deactivate a render texture as the current target for rendering.
CSFML_GRAPHICS_API void sfRenderTexture_drawText(sfRenderTexture *renderTexture, const sfText *object, const sfRenderStates *states)
CSFML_GRAPHICS_API sfVector2u sfRenderTexture_getSize(const sfRenderTexture *renderTexture)
Get the size of the rendering region of a render texture.
CSFML_GRAPHICS_API sfVector2f sfRenderTexture_mapPixelToCoords(const sfRenderTexture *renderTexture, sfVector2i point, const sfView *view)
Convert a point from texture coordinates to world coordinates.
CSFML_GRAPHICS_API const sfTexture * sfRenderTexture_getTexture(const sfRenderTexture *renderTexture)
Get the target texture of a render texture.
CSFML_GRAPHICS_API void sfRenderTexture_setRepeated(sfRenderTexture *renderTexture, sfBool repeated)
Enable or disable texture repeating.
CSFML_GRAPHICS_API const sfView * sfRenderTexture_getView(const sfRenderTexture *renderTexture)
Get the current active view of a render texture.
2-component vector of integers
2-component vector of unsigned integers
CSFML_GRAPHICS_API const sfView * sfRenderTexture_getDefaultView(const sfRenderTexture *renderTexture)
Get the default view of a render texture.
Utility class for manpulating RGBA colors.
CSFML_GRAPHICS_API sfBool sfRenderTexture_isSmooth(const sfRenderTexture *renderTexture)
Tell whether the smooth filter is enabled or not for a render texture.
Define the states used for drawing to a RenderTarget.
struct sfRectangleShape sfRectangleShape
CSFML_GRAPHICS_API void sfRenderTexture_popGLStates(sfRenderTexture *renderTexture)
Restore the previously saved OpenGL render states and matrices.
CSFML_GRAPHICS_API void sfRenderTexture_setSmooth(sfRenderTexture *renderTexture, sfBool smooth)
Enable or disable the smooth filter on a render texture.
struct sfCircleShape sfCircleShape
CSFML_GRAPHICS_API void sfRenderTexture_drawShape(sfRenderTexture *renderTexture, const sfShape *object, const sfRenderStates *states)
CSFML_GRAPHICS_API void sfRenderTexture_pushGLStates(sfRenderTexture *renderTexture)
Save the current OpenGL render states and matrices.
CSFML_GRAPHICS_API sfBool sfRenderTexture_isRepeated(const sfRenderTexture *renderTexture)
Tell whether the texture is repeated or not.
CSFML_GRAPHICS_API void sfRenderTexture_drawConvexShape(sfRenderTexture *renderTexture, const sfConvexShape *object, const sfRenderStates *states)
CSFML_GRAPHICS_API void sfRenderTexture_drawPrimitives(sfRenderTexture *renderTexture, const sfVertex *vertices, size_t vertexCount, sfPrimitiveType type, const sfRenderStates *states)
Draw primitives defined by an array of vertices to a render texture.
2-component vector of floats
CSFML_GRAPHICS_API void sfRenderTexture_drawVertexArray(sfRenderTexture *renderTexture, const sfVertexArray *object, const sfRenderStates *states)
CSFML_GRAPHICS_API sfIntRect sfRenderTexture_getViewport(const sfRenderTexture *renderTexture, const sfView *view)
Get the viewport of a view applied to this target.
CSFML_GRAPHICS_API void sfRenderTexture_resetGLStates(sfRenderTexture *renderTexture)
Reset the internal OpenGL states so that the target is ready for drawing.
struct sfTexture sfTexture
CSFML_GRAPHICS_API void sfRenderTexture_drawCircleShape(sfRenderTexture *renderTexture, const sfCircleShape *object, const sfRenderStates *states)
Define a point with color and texture coordinates.