Added SetSmooth / IsSmooth to sf::RenderImage
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1299 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
10296333be
commit
4418469d97
2 changed files with 37 additions and 2 deletions
|
@ -72,8 +72,8 @@ bool RenderImage::Create(unsigned int width, unsigned int height, bool depthBuff
|
|||
return false;
|
||||
}
|
||||
|
||||
// Disable smoothing -- we don't want to alter the original rendering
|
||||
myImage.SetSmooth(false);
|
||||
// We disable smoothing by default for render images
|
||||
SetSmooth(false);
|
||||
|
||||
// Create the implementation
|
||||
delete myRenderImage;
|
||||
|
@ -99,6 +99,24 @@ bool RenderImage::Create(unsigned int width, unsigned int height, bool depthBuff
|
|||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Enable or disable image smoothing filter
|
||||
////////////////////////////////////////////////////////////
|
||||
void RenderImage::SetSmooth(bool smooth)
|
||||
{
|
||||
myImage.SetSmooth(smooth);
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Tells whether the smooth filtering is enabled or not
|
||||
////////////////////////////////////////////////////////////
|
||||
bool RenderImage::IsSmooth() const
|
||||
{
|
||||
return myImage.IsSmooth();
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Activate of deactivate the render-image as the current target
|
||||
/// for rendering
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue