mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-26 21:16:13 +01:00
Added sRGB support to sfTexture.
This commit is contained in:
1 parent
490a21fdff
commit
784b20038f
2 files changed
+49
No files matched your search
@@ -225,6 +225,20 @@ sfBool sfTexture_isSmooth(const sfTexture* texture)
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
void sfTexture_setSrgb(sfTexture* texture, sfBool sRgb)
|
||||
{
|
||||
CSFML_CALL_PTR(texture, setSrgb(sRgb == sfTrue));
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfBool sfTexture_isSrgb(const sfTexture* texture)
|
||||
{
|
||||
CSFML_CALL_PTR_RETURN(texture, isSrgb(), sfFalse);
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
void sfTexture_setRepeated(sfTexture* texture, sfBool repeated)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user