mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-26 13:06:13 +01:00
Added missing SetSmooth / IsSmooth for sfRenderTexture
This commit is contained in:
1 parent
17e5d60619
commit
a56471ad0f
2 files changed
+36
No files matched your search
@@ -226,3 +226,20 @@ const sfTexture* sfRenderTexture_GetTexture(const sfRenderTexture* renderTexture
|
||||
|
||||
return renderTexture->Target;
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
void sfRenderTexture_SetSmooth(sfRenderTexture* renderTexture, sfBool smooth)
|
||||
{
|
||||
CSFML_CALL(renderTexture, SetSmooth(smooth == sfTrue));
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfBool sfRenderTexture_IsSmooth(const sfRenderTexture* renderTexture)
|
||||
{
|
||||
CSFML_CHECK_RETURN(renderTexture, sfFalse);
|
||||
CSFML_CHECK_RETURN(renderTexture->This, sfFalse);
|
||||
|
||||
return renderTexture->This.IsSmooth();
|
||||
}
|
||||
Reference in new issue
Block a user