summaryrefslogtreecommitdiff
path: root/src/koopatlas/map.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-09-23 15:59:10 +0200
committerTreeki <treeki@gmail.com>2012-09-23 15:59:10 +0200
commit01b29290b95a116c9bd18db567fa51b2bec47846 (patch)
tree991fa014531f1cc7d09472273979fee966802d6a /src/koopatlas/map.cpp
parente8701fd19f92b4a2cd7d6bb9c52ca9c558d2221f (diff)
downloadkamek-01b29290b95a116c9bd18db567fa51b2bec47846.tar.gz
kamek-01b29290b95a116c9bd18db567fa51b2bec47846.zip
fixed effect rendering on the map
Diffstat (limited to '')
-rw-r--r--src/koopatlas/map.cpp10
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);