summaryrefslogtreecommitdiff
path: root/include/JSystem/J3DGraphBase/J3DTexture.h
diff options
context:
space:
mode:
authorhatal175 <hatal175@users.noreply.github.com>2024-02-06 07:04:35 +0200
committerGitHub <noreply@github.com>2024-02-06 07:04:35 +0200
commitc19d9b02be5d894f91cd45884eed67152dffffa4 (patch)
treeeaa14d73085ab7adfdd657ba8d1b2d2e23e149f2 /include/JSystem/J3DGraphBase/J3DTexture.h
parente98d9c845c3476b3060a4bada25ced6a736835de (diff)
J3D work (#2064)
Diffstat (limited to 'include/JSystem/J3DGraphBase/J3DTexture.h')
-rw-r--r--include/JSystem/J3DGraphBase/J3DTexture.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/JSystem/J3DGraphBase/J3DTexture.h b/include/JSystem/J3DGraphBase/J3DTexture.h
index c0741a4d0a..6deb7e563f 100644
--- a/include/JSystem/J3DGraphBase/J3DTexture.h
+++ b/include/JSystem/J3DGraphBase/J3DTexture.h
@@ -28,8 +28,13 @@ public:
}
};
+extern J3DTexMtxInfo const j3dDefaultTexMtxInfo;
+
class J3DTexMtx {
public:
+ J3DTexMtx() {
+ mTexMtxInfo = j3dDefaultTexMtxInfo;
+ }
J3DTexMtx(const J3DTexMtxInfo& info) {
mTexMtxInfo = info;
}
@@ -75,6 +80,7 @@ struct J3DTexCoord : public J3DTexCoordInfo {
u8 getTexGenSrc() { return mTexGenSrc; }
u8 getTexGenMtx() { return mTexGenMtx & 0xff; }
u16 getTexMtxReg() { return mTexMtxReg & 0xff; }
+ void setTexGenMtx(u8 param_1) { mTexGenMtx = param_1; }
void resetTexMtxReg() {
mTexMtxReg = mTexGenMtx;