mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 05:53:26 +02:00
improve minimap
This commit is contained in:
@@ -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) {
|
||||
|
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user