diff options
author | johndoe123 | 2013-04-17 12:41:49 +0200 |
---|---|---|
committer | johndoe123 | 2013-04-17 12:41:49 +0200 |
commit | 0a0b2f397b95e6e219f2ac8c5b79bbe6300ef432 (patch) | |
tree | 4351e3a630eb9dc4e684d5147e1c1499fbf0e98e /engines/sword25/gfx/renderobjectmanager.h | |
parent | 6548104b96be211b1c93412a05802cc821b1d2e0 (diff) | |
download | scummvm-rg350-0a0b2f397b95e6e219f2ac8c5b79bbe6300ef432.tar.gz scummvm-rg350-0a0b2f397b95e6e219f2ac8c5b79bbe6300ef432.tar.bz2 scummvm-rg350-0a0b2f397b95e6e219f2ac8c5b79bbe6300ef432.zip |
SWORD25: Optimize graphics drawing code
Diffstat (limited to 'engines/sword25/gfx/renderobjectmanager.h')
-rw-r--r-- | engines/sword25/gfx/renderobjectmanager.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/engines/sword25/gfx/renderobjectmanager.h b/engines/sword25/gfx/renderobjectmanager.h index 9e7efd8e60..1db91dfbe6 100644 --- a/engines/sword25/gfx/renderobjectmanager.h +++ b/engines/sword25/gfx/renderobjectmanager.h @@ -47,11 +47,28 @@ #include "sword25/gfx/renderobjectptr.h" #include "sword25/kernel/persistable.h" +#include "sword25/gfx/microtiles.h" + namespace Sword25 { class Kernel; class RenderObject; class TimedRenderObject; +class RenderObjectManager; + +struct RenderObjectQueueItem { + RenderObject *_renderObject; + Common::Rect _bbox; + int _version; + RenderObjectQueueItem(RenderObject *renderObject, const Common::Rect &bbox, int version) + : _renderObject(renderObject), _bbox(bbox), _version(version) {} +}; + +class RenderObjectQueue : public Common::List<RenderObjectQueueItem> { +public: + void add(RenderObject *renderObject); + bool exists(const RenderObjectQueueItem &renderObjectQueueItem); +}; /** @brief Diese Klasse ist für die Verwaltung von BS_RenderObjects zuständig. @@ -114,6 +131,9 @@ private: typedef Common::Array<RenderObjectPtr<TimedRenderObject> > RenderObjectList; RenderObjectList _timedRenderObjects; + MicroTileArray *_uta; + RenderObjectQueue *_currQueue, *_prevQueue; + // RenderObject-Tree Variablen // --------------------------- // Der Baum legt die hierachische Ordnung der BS_RenderObjects fest. |