mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-26 21:16:13 +01:00
Updated sfShader_bind and sfTexture_bind
This commit is contained in:
1 parent
de75c6a122
commit
44288a186c
4 files changed
+44
-23
No files matched your search
@@ -220,7 +220,7 @@ void sfShader_setCurrentTextureParameter(sfShader* shader, const char* name)
|
||||
////////////////////////////////////////////////////////////
|
||||
void sfShader_bind(const sfShader* shader)
|
||||
{
|
||||
CSFML_CALL(shader, bind());
|
||||
sf::Shader::bind(shader ? &shader->This : NULL);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -208,13 +208,6 @@ void sfTexture_updateFromRenderWindow(sfTexture* texture, const sfRenderWindow*
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
void sfTexture_bind(const sfTexture* texture)
|
||||
{
|
||||
CSFML_CALL_PTR(texture, bind());
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
void sfTexture_setSmooth(sfTexture* texture, sfBool smooth)
|
||||
{
|
||||
@@ -249,6 +242,13 @@ sfBool sfTexture_isRepeated(const sfTexture* texture)
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
void sfTexture_bind(const sfTexture* texture)
|
||||
{
|
||||
sf::Texture::bind(texture ? texture->This : NULL);
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
unsigned int sfTexture_getMaximumSize()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user