mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
PostFx::SetTexture now takes a const sf::Image*
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1141 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
e6483d2165
commit
ab580aa35b
@ -127,7 +127,7 @@ public :
|
||||
/// \param Texture : Image to set (pass NULL to use content of current framebuffer)
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
void SetTexture(const std::string& Name, Image* Texture);
|
||||
void SetTexture(const std::string& Name, const Image* Texture);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Assignment operator
|
||||
|
@ -217,7 +217,7 @@ void PostFX::SetParameter(const std::string& Name, float X, float Y, float Z, fl
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Set a texture parameter
|
||||
////////////////////////////////////////////////////////////
|
||||
void PostFX::SetTexture(const std::string& Name, Image* Texture)
|
||||
void PostFX::SetTexture(const std::string& Name, const Image* Texture)
|
||||
{
|
||||
// Check that the current texture unit is available
|
||||
GLint MaxUnits;
|
||||
|
Loading…
Reference in New Issue
Block a user