25 #ifndef SFML_TEXTURE_H
26 #define SFML_TEXTURE_H
31 #include <SFML/Graphics/Export.h>
32 #include <SFML/Graphics/Rect.h>
33 #include <SFML/Graphics/Types.h>
34 #include <SFML/Window/Types.h>
35 #include <SFML/System/InputStream.h>
36 #include <SFML/System/Vector2.h>
49 CSFML_GRAPHICS_API sfTexture* sfTexture_create(
unsigned int width,
unsigned int height);
60 CSFML_GRAPHICS_API sfTexture* sfTexture_createFromFile(
const char* filename,
const sfIntRect* area);
72 CSFML_GRAPHICS_API sfTexture* sfTexture_createFromMemory(
const void* data,
size_t sizeInBytes,
const sfIntRect* area);
94 CSFML_GRAPHICS_API sfTexture* sfTexture_createFromImage(
const sfImage* image,
const sfIntRect* area);
104 CSFML_GRAPHICS_API sfTexture* sfTexture_copy(
const sfTexture* texture);
112 CSFML_GRAPHICS_API
void sfTexture_destroy(sfTexture* texture);
122 CSFML_GRAPHICS_API
sfVector2u sfTexture_getSize(
const sfTexture* texture);
132 CSFML_GRAPHICS_API sfImage* sfTexture_copyToImage(
const sfTexture* texture);
145 CSFML_GRAPHICS_API
void sfTexture_updateFromPixels(sfTexture* texture,
const sfUint8* pixels,
unsigned int width,
unsigned int height,
unsigned int x,
unsigned int y);
163 CSFML_GRAPHICS_API
void sfTexture_updateFromTexture(sfTexture* destination,
const sfTexture* source,
unsigned int x,
unsigned int y);
174 CSFML_GRAPHICS_API
void sfTexture_updateFromImage(sfTexture* texture,
const sfImage* image,
unsigned int x,
unsigned int y);
185 CSFML_GRAPHICS_API
void sfTexture_updateFromWindow(sfTexture* texture,
const sfWindow* window,
unsigned int x,
unsigned int y);
196 CSFML_GRAPHICS_API
void sfTexture_updateFromRenderWindow(sfTexture* texture,
const sfRenderWindow* renderWindow,
unsigned int x,
unsigned int y);
205 CSFML_GRAPHICS_API
void sfTexture_setSmooth(sfTexture* texture, sfBool smooth);
215 CSFML_GRAPHICS_API sfBool sfTexture_isSmooth(
const sfTexture* texture);
240 CSFML_GRAPHICS_API
void sfTexture_setSrgb(sfTexture* texture, sfBool sRgb);
250 CSFML_GRAPHICS_API sfBool sfTexture_isSrgb(
const sfTexture* texture);
273 CSFML_GRAPHICS_API
void sfTexture_setRepeated(sfTexture* texture, sfBool repeated);
283 CSFML_GRAPHICS_API sfBool sfTexture_isRepeated(
const sfTexture* texture);
308 CSFML_GRAPHICS_API sfBool sfTexture_generateMipmap(sfTexture* texture);
317 CSFML_GRAPHICS_API
void sfTexture_swap(sfTexture* left, sfTexture* right);
331 CSFML_GRAPHICS_API
unsigned int sfTexture_getNativeHandle(
const sfTexture* texture);
354 CSFML_GRAPHICS_API
void sfTexture_bind(
const sfTexture* texture);
362 CSFML_GRAPHICS_API
unsigned int sfTexture_getMaximumSize();
365 #endif // SFML_TEXTURE_H