Added missing SetSmooth / IsSmooth for sfRenderTexture

This commit is contained in:
Laurent Gomila committed 2012-02-23 19:00:30 +01:00
1 parent 17e5d60619
commit a56471ad0f
2 files changed
+36

No files matched your search

+17
View File
@@ -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();
}