mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 16:27:43 +00:00
CUVElement: Convert stateful structs into classes
Avoids exposing the internals of the data by default (since they were previously fully accessible).
This commit is contained in:
@@ -25,7 +25,7 @@ public:
|
|||||||
virtual bool HasConstantUV() const = 0;
|
virtual bool HasConstantUV() const = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CUVEConstant : public CUVElement {
|
class CUVEConstant : public CUVElement {
|
||||||
TLockedToken<CTexture> x4_tex;
|
TLockedToken<CTexture> x4_tex;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@@ -38,7 +38,7 @@ public:
|
|||||||
bool HasConstantUV() const override { return true; }
|
bool HasConstantUV() const override { return true; }
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CUVEAnimTexture : public CUVElement {
|
class CUVEAnimTexture : public CUVElement {
|
||||||
TLockedToken<CTexture> x4_tex;
|
TLockedToken<CTexture> x4_tex;
|
||||||
int x10_tileW, x14_tileH, x18_strideW, x1c_strideH;
|
int x10_tileW, x14_tileH, x18_strideW, x1c_strideH;
|
||||||
int x20_tiles;
|
int x20_tiles;
|
||||||
|
|||||||
Reference in New Issue
Block a user