Mario Kart 64
Loading...
Searching...
No Matches
Animation.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <Resource.h>
5#include <libultraship/libultra/types.h>
6
7namespace SF64 {
8struct JointKey {
9 /* 0x0 */ uint16_t xLen;
10 /* 0x2 */ uint16_t x;
11 /* 0x4 */ uint16_t yLen;
12 /* 0x6 */ uint16_t y;
13 /* 0x8 */ uint16_t zLen;
14 /* 0xA */ uint16_t z;
15}; // size = 0xC
16
18 /* 0x00 */ int16_t frameCount;
19 /* 0x02 */ int16_t limbCount;
20 /* 0x04 */ uint16_t* frameData;
21 /* 0x08 */ JointKey* jointKey;
22}; // size = 0xC
23
24class Animation : public Ship::Resource<AnimationData> {
25 public:
26 using Resource::Resource;
27
28 Animation() : Resource(std::shared_ptr<Ship::ResourceInitData>()) {
29 }
30
32 size_t GetPointerSize();
33
35
36 std::vector<uint16_t> frameData;
37 std::vector<JointKey> jointKey;
38};
39} // namespace SF64
std::vector< JointKey > jointKey
Definition Animation.h:37
std::vector< uint16_t > frameData
Definition Animation.h:36
size_t GetPointerSize()
Definition Animation.cpp:8
Animation()
Definition Animation.h:28
AnimationData mData
Definition Animation.h:34
AnimationData * GetPointer()
Definition Animation.cpp:4
Definition GenericArrayFactory.cpp:5
Definition SpaghettiGui.cpp:43
Definition Animation.h:17
JointKey * jointKey
Definition Animation.h:21
uint16_t * frameData
Definition Animation.h:20
int16_t limbCount
Definition Animation.h:19
int16_t frameCount
Definition Animation.h:18
Definition Animation.h:8
uint16_t zLen
Definition Animation.h:13
uint16_t yLen
Definition Animation.h:11
uint16_t xLen
Definition Animation.h:9
uint16_t z
Definition Animation.h:14
uint16_t y
Definition Animation.h:12
uint16_t x
Definition Animation.h:10