mirror of
https://github.com/huderlem/porymap.git
synced 2026-09-14 03:45:35 -05:00
add bounds to map render to prevent doing extra work when rendering only pieces of the map (eg, connections)
This commit is contained in:
@@ -76,7 +76,7 @@ public:
|
||||
int getHeight();
|
||||
int getBorderWidth();
|
||||
int getBorderHeight();
|
||||
QPixmap render(bool ignoreCache, MapLayout * fromLayout = nullptr);
|
||||
QPixmap render(bool ignoreCache, MapLayout *fromLayout = nullptr, QRect bounds = QRect(0, 0, -1, -1));
|
||||
QPixmap renderCollision(qreal opacity, bool ignoreCache);
|
||||
bool mapBlockChanged(int i, const Blockdata &cache);
|
||||
bool borderBlockChanged(int i, const Blockdata &cache);
|
||||
|
||||
Reference in New Issue
Block a user