From c7bfbf72db4748bf29d9b2392d6e4a7b839c9679 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Mon, 19 Jan 2026 15:05:47 +0900 Subject: [PATCH] test crate --- engine/src/client.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/engine/src/client.c b/engine/src/client.c index e35031e..36874c8 100644 --- a/engine/src/client.c +++ b/engine/src/client.c @@ -43,7 +43,20 @@ void GSClientDestroy(GSClient client) { GSLog(GSLogInfo, "Destroyed client"); } +GSModel m = NULL; +GSVector3 rot = {0, 0, 0}; + static void scene(GSClient client) { + if(m == NULL) m = GSModelOpen(client->engine, "game:/mdl/crate.gsm"); + + rot[0]++; + rot[1]++; + rot[2]++; + + GSGLPushMatrix(client->gl); + GSGLSetRotation(client->gl, rot); + GSModelDraw(m); + GSGLPopMatrix(client->gl); } void GSClientStep(GSClient client) {