2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-14 11:26:09 +00:00

More CCubeModel/CCubeMaterial

This commit is contained in:
2022-02-26 02:05:59 -05:00
parent 832eb180bd
commit 586268c66f
9 changed files with 813 additions and 42 deletions

View File

@@ -27,8 +27,13 @@ class CCubeSurface {
public:
explicit CCubeSurface(const u8* ptr, u32 len); // Metaforce addition for extracting surface data
// bool IsValid() const;
[[nodiscard]] CCubeModel* GetParent() { return x14_parent; }
[[nodiscard]] const CCubeModel* GetParent() const { return x14_parent; }
void SetParent(CCubeModel* parent) { x14_parent = parent; }
[[nodiscard]] CCubeSurface* GetNextSurface() { return x18_nextSurface; }
[[nodiscard]] const CCubeSurface* GetNextSurface() const { return x18_nextSurface; }
void SetNextSurface(CCubeSurface* next) { x18_nextSurface = next; }
[[nodiscard]] u32 GetMaterialIndex() const { return xc_materialIndex; }
[[nodiscard]] u32 GetDisplayListSize() const { return x10_displayListSize & 0x7fffffff; }