summaryrefslogtreecommitdiff
path: root/include/rvl
diff options
context:
space:
mode:
authorrobojumper <robojumper@gmail.com>2024-09-13 20:51:33 +0200
committerGitHub <noreply@github.com>2024-09-13 14:51:33 -0400
commit3b8392aeac8360e49e5a789c0b3537d5de137daa (patch)
tree5e899c8a946ce35a997825073fd40ccbf881c1f3 /include/rvl
parent4c6262aecd863929284360c66f8da1716117d3c1 (diff)
Largely match m_shadow (#20)
* Largely match m_shadow --------- Co-authored-by: elijah-thomas774 <elijahthomas774@gmail.com>
Diffstat (limited to 'include/rvl')
-rw-r--r--include/rvl/GX/GXFrameBuf.h7
-rw-r--r--include/rvl/GX/GXTexture.h2
-rw-r--r--include/rvl/GX/GXTransform.h2
3 files changed, 10 insertions, 1 deletions
diff --git a/include/rvl/GX/GXFrameBuf.h b/include/rvl/GX/GXFrameBuf.h
index 7e8592b5..4b5814ca 100644
--- a/include/rvl/GX/GXFrameBuf.h
+++ b/include/rvl/GX/GXFrameBuf.h
@@ -30,6 +30,13 @@ void GXSetDispCopyDst(u16 width, u16 height);
u32 GXSetDispCopyYScale(f32 scale);
void GXCopyDisp(void *data, GXBool bUpdate);
+void GXSetTexCopySrc(u16 left, u16 top, u16 width, u16 height);
+void GXSetTexCopyDst(u16 left, u16 top, GXTexFmt fmt, u8 mipmap);
+void GXCopyTex(void *data, GXBool bUpdate);
+
+// Not sure where this belongs
+void GXPixModeSync();
+
extern GXRenderModeObj GXNtsc480IntDf;
extern GXRenderModeObj GXMpal480IntDf;
extern GXRenderModeObj GXPal528IntDf;
diff --git a/include/rvl/GX/GXTexture.h b/include/rvl/GX/GXTexture.h
index fa82a9e4..6b758649 100644
--- a/include/rvl/GX/GXTexture.h
+++ b/include/rvl/GX/GXTexture.h
@@ -27,6 +27,8 @@ void GXGetTexObjAll(const GXTexObj *pTexObj, void **pImage, u16 *width, u16 *hei
void GXGetTexObjLODAll(const GXTexObj *pTexObj, GXTexFilter *minFilter, GXTexFilter *magFilter, f32 *minLOD,
f32 *maxLOD, f32 *LODBias, u8 *biasClampEnable, u8 *edgeLODEnable, GXAnisotropy *anisotropy);
u32 GXGetTexObjTlut(GXTexObj *);
+u32 GXGetTexBufferSize(u16 width, u16 height, u32 format, GXBool arg3, u8 arg4);
+void GXInvalidateTexAll();
#ifdef __cplusplus
}
diff --git a/include/rvl/GX/GXTransform.h b/include/rvl/GX/GXTransform.h
index 780af102..6a9ed39a 100644
--- a/include/rvl/GX/GXTransform.h
+++ b/include/rvl/GX/GXTransform.h
@@ -15,7 +15,7 @@ void GXLoadPosMtxIndx(u16 index, u32 id);
void GXLoadNrmMtxImm(const Mtx mtx, u32 id);
void GXLoadNrmMtxIndx3x3(u16 index, u32 id);
void GXSetCurrentMtx(u32 id);
-void GXLoadTexMtxImm(const Mtx mtx, u32 id, GXMtxType type);
+void GXLoadTexMtxImm(const f32 mtx[][4], u32 id, GXMtxType type);
void GXSetViewportJitter(f32 ox, f32 oy, f32 sx, f32 sy, f32 near, f32 far, u32 nextField);
void GXSetViewport(f32 ox, f32 oy, f32 sx, f32 sy, f32 near, f32 far);
void GXGetViewportv(f32 view[6]);