diff options
author | Treeki <treeki@gmail.com> | 2012-09-24 05:40:39 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-09-24 05:40:39 +0200 |
commit | 245bb3325f613f81973866100e86ee681b0fde9d (patch) | |
tree | 7837866a91fc6c422ffb9b730c2fdbbb6577ea53 /src/koopatlas/map.cpp | |
parent | aafa2a57c88c01067266244eae2a906d8771c065 (diff) | |
parent | 4f567256d015cf7a835ac03b9e5abb8a2a7eb12a (diff) | |
download | kamek-245bb3325f613f81973866100e86ee681b0fde9d.tar.gz kamek-245bb3325f613f81973866100e86ee681b0fde9d.zip |
Merge branch 'level-select' into new-hud
Diffstat (limited to '')
-rw-r--r-- | src/koopatlas/map.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/koopatlas/map.cpp b/src/koopatlas/map.cpp index 316c001..ff28e19 100644 --- a/src/koopatlas/map.cpp +++ b/src/koopatlas/map.cpp @@ -62,6 +62,12 @@ int dWMMap_c::onCreate() { bgSrtAnm.bindEntry(&bgModel, anmRes, 0, 0); bgModel.bindAnim(&bgSrtAnm, 0.0f); + static int EffectGroups[] = {1,0,4,5,7,8,9,10,11,12,13,14}; + static int EffectPrios[] = {141,142,143,129,144,145,146,147,148,149,150,151}; + for (int i = 0; i < EFFECT_RENDERER_COUNT; i++) { + effectRenderers[i].setupEffectRenderer(&allocator, -1, EffectPrios[i], EffectGroups[i]); + } + allocator.unlink(); return true; @@ -83,6 +89,10 @@ int dWMMap_c::onDraw() { renderer.scheduleForDrawing(); bgModel.scheduleForDrawing(); + for (int i = 0; i < EFFECT_RENDERER_COUNT; i++) { + effectRenderers[i].scheduleForDrawing(); + } + dKPMapData_c *dataCls = &dScKoopatlas_c::instance->mapData; renderPathLayer(dataCls->pathLayer); |