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

@@ -26,6 +26,7 @@
#include <framework/platform/platformwindow.h>
#include <framework/core/application.h>
#include <framework/graphics/ogl/textureogl.h>
uint FrameBuffer::boundFbo = 0;
@@ -61,7 +62,7 @@ void FrameBuffer::resize(const Size& size)
if(m_texture && m_texture->getSize() == size)
return;
m_texture = TexturePtr(new Texture(size));
m_texture = TexturePtr(new TextureOGL(size));
m_texture->setSmooth(m_smooth);
m_texture->setUpsideDown(true);
@@ -75,7 +76,7 @@ void FrameBuffer::resize(const Size& size)
internalRelease();
} else {
if(m_backuping) {
m_screenBackup = TexturePtr(new Texture(size));
m_screenBackup = TexturePtr(new TextureOGL(size));
m_screenBackup->setUpsideDown(true);
}
}