From 17c77af0443d08316e07556c81ced491277d7ca7 Mon Sep 17 00:00:00 2001 From: kipcode66 Date: Mon, 26 Jan 2026 21:12:58 -0500 Subject: [PATCH] adding card.h and mtx.h stubs --- src/dusk/stubs.c | 49 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/src/dusk/stubs.c b/src/dusk/stubs.c index c38cede70d..846cb91187 100644 --- a/src/dusk/stubs.c +++ b/src/dusk/stubs.c @@ -5,6 +5,8 @@ #include #include #include +#include +#include #include #include @@ -571,3 +573,50 @@ u32 ARInit(u32* stack_index_addr, u32 num_entries) { void ARQPostRequest(ARQRequest* request, u32 owner, u32 type, u32 priority, u32 source, u32 dest, u32 length, ARQCallback callback) { puts("ARQPostRequest is a stub"); } + +int CARDProbe(s32 chan) { + puts("CARDProbe is a stub"); + return 0; +} + +void C_MTXLightOrtho(Mtx m, f32 t, f32 b, f32 l, f32 r, f32 scaleS, f32 scaleT, f32 transS, + f32 transT) { + puts("C_MTXLightOrtho is a stub"); +} + +void C_MTXLightPerspective(Mtx m, f32 fovY, f32 aspect, f32 scaleS, f32 scaleT, f32 transS, + f32 transT) { + puts("C_MTXLightPerspective is a stub"); +} + +void C_MTXLookAt(Mtx m, const Point3d* camPos, const Vec* camUp, const Point3d* target) { + puts("C_MTXLookAt is a stub"); +} + +void C_MTXOrtho(Mtx44 m, f32 t, f32 b, f32 l, f32 r, f32 n, f32 f) { + puts("C_MTXOrtho is a stub"); +} + +void C_MTXPerspective(Mtx44 m, f32 fovY, f32 aspect, f32 n, f32 f) { + puts("C_MTXPerspective is a stub"); +} + +void C_MTXRotAxisRad(Mtx m, const Vec* axis, f32 rad) { + puts("C_MTXRotAxisRad is a stub"); +} + +void C_QUATRotAxisRad(Quaternion* r, const Vec* axis, f32 rad) { + puts("C_QUATRotAxisRad is a stub"); +} + +void C_QUATSlerp(const Quaternion* p, const Quaternion* q, Quaternion* r, f32 t) { + puts("C_QUATSlerp is a stub"); +} + +void C_VECHalfAngle(const Vec* a, const Vec* b, Vec* half) { + puts("C_VECHalfAngle is a stub"); +} + +void C_VECReflect(const Vec* src, const Vec* normal, Vec* dst) { + puts("C_VECReflect is a stub"); +}