25 #ifndef SFML_TEXTURE_H
26 #define SFML_TEXTURE_H
278 #endif // SFML_TEXTURE_H
#define CSFML_GRAPHICS_API
CSFML_GRAPHICS_API sfBool sfTexture_isRepeated(const sfTexture *texture)
Tell whether a texture is repeated or not.
CSFML_GRAPHICS_API void sfTexture_setRepeated(sfTexture *texture, sfBool repeated)
Enable or disable repeating for a texture.
CSFML_GRAPHICS_API unsigned int sfTexture_getMaximumSize()
Get the maximum texture size allowed.
CSFML_GRAPHICS_API void sfTexture_destroy(sfTexture *texture)
Destroy an existing texture.
CSFML_GRAPHICS_API unsigned int sfTexture_getNativeHandle(const sfTexture *texture)
Get the underlying OpenGL handle of the texture.
CSFML_GRAPHICS_API void sfTexture_updateFromWindow(sfTexture *texture, const sfWindow *window, unsigned int x, unsigned int y)
Update a texture from the contents of a window.
2-component vector of unsigned integers
CSFML_GRAPHICS_API void sfTexture_updateFromImage(sfTexture *texture, const sfImage *image, unsigned int x, unsigned int y)
Update a texture from an image.
CSFML_GRAPHICS_API void sfTexture_updateFromPixels(sfTexture *texture, const sfUint8 *pixels, unsigned int width, unsigned int height, unsigned int x, unsigned int y)
Update a texture from an array of pixels.
struct sfRenderWindow sfRenderWindow
CSFML_GRAPHICS_API sfImage * sfTexture_copyToImage(const sfTexture *texture)
Copy a texture's pixels to an image.
CSFML_GRAPHICS_API sfTexture * sfTexture_create(unsigned int width, unsigned int height)
Create a new texture.
CSFML_GRAPHICS_API sfVector2u sfTexture_getSize(const sfTexture *texture)
Return the size of the texture.
CSFML_GRAPHICS_API sfTexture * sfTexture_createFromImage(const sfImage *image, const sfIntRect *area)
Create a new texture from an image.
CSFML_GRAPHICS_API void sfTexture_updateFromRenderWindow(sfTexture *texture, const sfRenderWindow *renderWindow, unsigned int x, unsigned int y)
Update a texture from the contents of a render-window.
CSFML_GRAPHICS_API void sfTexture_bind(const sfTexture *texture)
Bind a texture for rendering.
CSFML_GRAPHICS_API void sfTexture_setSmooth(sfTexture *texture, sfBool smooth)
Enable or disable the smooth filter on a texture.
CSFML_GRAPHICS_API sfTexture * sfTexture_createFromMemory(const void *data, size_t sizeInBytes, const sfIntRect *area)
Create a new texture from a file in memory.
CSFML_GRAPHICS_API sfBool sfTexture_isSmooth(const sfTexture *texture)
Tell whether the smooth filter is enabled or not for a texture.
struct sfTexture sfTexture
CSFML_GRAPHICS_API sfTexture * sfTexture_createFromFile(const char *filename, const sfIntRect *area)
Create a new texture from a file.
CSFML_GRAPHICS_API sfTexture * sfTexture_createFromStream(sfInputStream *stream, const sfIntRect *area)
Create a new texture from a custom stream.
CSFML_GRAPHICS_API sfTexture * sfTexture_copy(const sfTexture *texture)
Copy an existing texture.