improve minimap

This commit is contained in:
Eduardo Bart
2012-06-22 02:26:22 -03:00
parent aed779a2c8
commit d39cf361ab
20 changed files with 144 additions and 77 deletions

View File

@@ -60,7 +60,7 @@ void FrameBuffer::resize(const Size& size)
return;
m_texture = TexturePtr(new Texture(size));
m_texture->setSmooth(true);
m_texture->setSmooth(m_smooth);
m_texture->setUpsideDown(true);
if(m_fbo) {

View File

@@ -44,10 +44,12 @@ public:
void draw(const Rect& dest, const Rect& src);
void setBackuping(bool enabled) { m_backuping = enabled; }
void setSmooth(bool enabled) { m_smooth = enabled; }
TexturePtr getTexture() { return m_texture; }
Size getSize();
bool isBackuping() { return m_backuping; }
bool isSmooth() { return m_smooth; }
private:
void internalCreate();
@@ -60,6 +62,7 @@ private:
uint m_fbo;
uint m_prevBoundFbo;
Boolean<true> m_backuping;
Boolean<true> m_smooth;
static uint boundFbo;
};