Add texture abstract class

This commit is contained in:
Henrique Santiago
2013-03-03 03:32:49 -03:00
committed by Eduardo Bart
parent ab9351196c
commit b3b849000d
13 changed files with 318 additions and 230 deletions

View File

@@ -30,6 +30,7 @@
#include <framework/graphics/particlemanager.h>
#include <framework/graphics/texturemanager.h>
#include <framework/graphics/painter.h>
#include <framework/graphics/ogl/textureogl.h>
#ifdef FW_SOUND
#include <framework/sound/soundmanager.h>
@@ -232,7 +233,7 @@ void GraphicalApplication::resize(const Size& size)
m_onInputEvent = false;
if(g_graphics.canCacheBackbuffer()) {
m_foreground = TexturePtr(new Texture(size));
m_foreground = TexturePtr(new TextureOGL(size));
m_foreground->setUpsideDown(true);
}
m_mustRepaint = true;