Added RenderImage

Cleaned internal CSFML code
Synchronized with trunk

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1135 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
laurentgom 2009-06-11 15:49:36 +00:00
commit 2deb8bd021
228 changed files with 15844 additions and 7152 deletions

View file

@ -169,12 +169,17 @@ void RenderTarget::PreserveOpenGLStates(bool Preserve)
////////////////////////////////////////////////////////////
void RenderTarget::Initialize()
{
// Set the default rendering states
SetRenderStates();
if (Activate(true))
{
// Set the default rendering states
SetRenderStates();
// Setup the default view
myDefaultView.SetFromRect(FloatRect(0, 0, static_cast<float>(GetWidth()), static_cast<float>(GetHeight())));
SetView(myDefaultView);
// Setup the default view
myDefaultView.SetFromRect(FloatRect(0, 0, static_cast<float>(GetWidth()), static_cast<float>(GetHeight())));
SetView(myDefaultView);
Activate(false);
}
}
@ -185,7 +190,7 @@ void RenderTarget::SetRenderStates()
{
GLCheck(glDisable(GL_ALPHA_TEST));
GLCheck(glDisable(GL_DEPTH_TEST));
GLCheck(glDisable(GL_LIGHTING));
GLCheck(glDisable(GL_LIGHTING));
}
} // namespace sf