animated texture

This commit is contained in:
Eduardo Bart
2011-05-12 20:24:57 -03:00
parent c6753747fb
commit 42eae9afd8
32 changed files with 289 additions and 146 deletions

View File

@@ -128,8 +128,10 @@ void Graphics::endRender()
void Graphics::disableDrawing()
{
glEnd();
m_drawMode = DRAW_NONE;
if(m_drawMode != DRAW_NONE) {
glEnd();
m_drawMode = DRAW_NONE;
}
}
void Graphics::drawTexturedRect(const Rect& screenCoords, const TexturePtr& texture, const Rect& textureCoords, const Color& color)