summaryrefslogtreecommitdiff
path: root/include/JSystem
diff options
context:
space:
mode:
Diffstat (limited to 'include/JSystem')
-rw-r--r--include/JSystem/J3DGraphAnimator/J3DAnimation.h17
-rw-r--r--include/JSystem/J3DGraphBase/J3DMaterial.h1
2 files changed, 18 insertions, 0 deletions
diff --git a/include/JSystem/J3DGraphAnimator/J3DAnimation.h b/include/JSystem/J3DGraphAnimator/J3DAnimation.h
index 2d6107db5c..7f21d3d1fe 100644
--- a/include/JSystem/J3DGraphAnimator/J3DAnimation.h
+++ b/include/JSystem/J3DGraphAnimator/J3DAnimation.h
@@ -24,6 +24,23 @@ struct JUTDataFileHeader { // actual struct name unknown
/* 0x20 */ JUTDataBlockHeader mFirstBlock;
};
+// unknown name. refers to ANK1 chunk of BCK files
+struct J3DAnmTransform_ANK1 {
+ /* 0x00 */ u32 magic;
+ /* 0x04 */ u32 size;
+ /* 0x08 */ u8 attribute;
+ /* 0x09 */ u8 rotation_frac;
+ /* 0x0A */ s16 duration;
+ /* 0x0C */ s16 keyframe_num;
+ /* 0x0E */ s16 scale_entries;
+ /* 0x10 */ s16 rotation_entries;
+ /* 0x12 */ s16 translation_entries;
+ /* 0x14 */ u32 anm_data_offset;
+ /* 0x18 */ u32 scale_data_offset;
+ /* 0x1C */ u32 rotation_data_offset;
+ /* 0x20 */ u32 translation_data_offset;
+};
+
typedef struct _GXColor GXColor;
typedef struct _GXColorS10 GXColorS10;
diff --git a/include/JSystem/J3DGraphBase/J3DMaterial.h b/include/JSystem/J3DGraphBase/J3DMaterial.h
index 7deeff03f0..4113522218 100644
--- a/include/JSystem/J3DGraphBase/J3DMaterial.h
+++ b/include/JSystem/J3DGraphBase/J3DMaterial.h
@@ -78,6 +78,7 @@ public:
J3DTexCoord* getTexCoord(u32 idx) { return mTexGenBlock->getTexCoord(idx); }
J3DZMode* getZMode() { return mPEBlock->getZMode(); }
J3DBlend* getBlend() { return mPEBlock->getBlend(); }
+ J3DColorChan* getColorChan(u32 idx) { return getColorBlock()->getColorChan(idx); }
void setTevColor(u32 i, const J3DGXColorS10* i_color) { mTevBlock->setTevColor(i, i_color); }
void setTevKColor(u32 i, const J3DGXColor* i_color) { mTevBlock->setTevKColor(i, i_color); }