summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorColin Noga <Tempus@Spectrum-Song.local>2011-10-15 22:47:10 -0500
committerColin Noga <Tempus@Spectrum-Song.local>2011-10-15 22:47:10 -0500
commit87fdc854404c855363481d99e7ff0806bf7aaa4c (patch)
treef24d3eb5a75d740edba41e5fc744992b00a05944 /src
parent4a8e3bab52041db92648a2c8773b0952bdf39703 (diff)
parent85e0eb418a06e751653a4977464ff5ed92561768 (diff)
downloadkamek-87fdc854404c855363481d99e7ff0806bf7aaa4c.tar.gz
kamek-87fdc854404c855363481d99e7ff0806bf7aaa4c.zip
Merge branch 'level-select' of ssh://treeki.shacknet.nu:30000/Kamek into level-select
Diffstat (limited to 'src')
-rw-r--r--src/bossMegaGoomba.cpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/bossMegaGoomba.cpp b/src/bossMegaGoomba.cpp
index e733f4d..bac2516 100644
--- a/src/bossMegaGoomba.cpp
+++ b/src/bossMegaGoomba.cpp
@@ -17,6 +17,10 @@ class daMegaGoomba_c : public dEn_c {
m3d::anmChr_c animationChr;
nw4r::g3d::ResAnmTexPat resTexPat;
m3d::anmTexPat_c animationPat;
+ /* SRT TESTS
+ nw4r::g3d::ResAnmTexSrt resTexSrt;
+ m3d::anmTexSrt_c animationSrt;
+ */
//mAllocator_c allocator2;
//FIXME add this back in ?
//EGG::Effect effect;
@@ -242,6 +246,33 @@ void daMegaGoomba_c::setupBodyModel() {
allocator.unlink();
+
+ /* SRT TESTS
+ allocator.link(-1, GameHeaps[0], 0, 0x20);
+
+ this->resFile.data = getResource("ice", "g3d/t02.brres");
+ nw4r::g3d::ResMdl mdl = this->resFile.GetResMdl("ice_B1");
+ bodyModel.setup(mdl, &allocator, 0x20, 1, 0);
+ m3d__mdl_c__SetupTexturesForMapObj_Scene0();
+ //SetupTextures_Enemy(&bodyModel, 0);
+
+ // USED ONCE
+ // uses this->bodyModel.setDrawPriorities(0x7f, 0x80);
+ //m3d__scnLeaf_c__setDrawPriorities(0x7f, 0x80);
+
+ nw4r::g3d::ResTexSrt anmSrt = this->resFile.getResAnmTexSrt("ice_B1");
+ ret = this->animationSrt.setup(mdl, anmSrt, &this->allocator, 0, 1);
+ // USED ONCE
+ // this->animationSrt.setEntryByte34(0, 0);
+ this->animationSrt.bindEntry(&this->bodyModel, &anmSrt, 0, 0);
+
+ //SOMETIMES DOES BINDANIM
+ //this->bodyModel.bindAnim(&this->animationSrt, 1.0);
+ //this->animationSrt.setFrameForEntry(1.0, 0);
+ //this->animationSrt.setUpdateRateForEntry(1.0, 0);
+
+ allocator.unlink();
+ */
}
int daMegaGoomba_c::onCreate() {
@@ -328,6 +359,9 @@ int daMegaGoomba_c::onDraw() {
bodyModel.scheduleForDrawing();
bodyModel._vf1C();
animationPat.process();
+ /* SRT TESTS
+ animationSrt.process();
+ */
return true;
}