summaryrefslogtreecommitdiff
path: root/src/bossMegaGoomba.cpp
diff options
context:
space:
mode:
authorStephen Simpson <megazig@gmail.com>2011-10-15 19:43:43 -0500
committerStephen Simpson <megazig@gmail.com>2011-10-15 19:43:43 -0500
commit41e9d139fb839ad35ad61c57dfc239d648265980 (patch)
treec1f1c8a4a4deea72ccba71b5b63148388488496e /src/bossMegaGoomba.cpp
parent53dc80d96a6e8ff0411d0bbc45bcbe87a8f2146a (diff)
downloadkamek-41e9d139fb839ad35ad61c57dfc239d648265980.tar.gz
kamek-41e9d139fb839ad35ad61c57dfc239d648265980.zip
Started on adding anmTexSrt into code
Diffstat (limited to '')
-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;
}