Added love.graphics.origin(): resets the coordinate system (replaces the current transformation matrix with the identity)

--HG--
branch : love.graphics.origin
This commit is contained in:
Alex Szpakowski
2013-02-24 14:07:03 -04:00
parent 6282cad960
commit 083218742a
6 changed files with 26 additions and 1 deletions
+5 -1
View File
@@ -207,7 +207,6 @@ void Graphics::reset()
void Graphics::clear()
{
glClear(GL_COLOR_BUFFER_BIT);
glLoadIdentity();
}
void Graphics::present()
@@ -1117,6 +1116,11 @@ void Graphics::shear(float kx, float ky)
glMultMatrixf((const GLfloat *)t.getElements());
}
void Graphics::origin()
{
glLoadIdentity();
}
bool Graphics::hasFocus() const
{
return currentWindow->hasFocus();