teto pear

This commit is contained in:
Nishi 2026-01-13 04:28:36 +09:00
commit e02687863f
Signed by: nishi
GPG key ID: 27EF69B208EB9343
18 changed files with 3484 additions and 19 deletions

View file

@ -4,6 +4,7 @@
#include <GearSrc/GL.h>
#include <GearSrc/SkyBox.h>
#include <GearSrc/Math.h>
#include <GearSrc/Model.h>
GSClient GSClientCreate(GSEngine engine) {
GSClient client = malloc(sizeof(*client));
@ -12,12 +13,12 @@ GSClient GSClientCreate(GSEngine engine) {
client->engine = engine;
client->camera[0] = 5;
client->camera[1] = 0;
client->camera[0] = 0;
client->camera[1] = 1;
client->camera[2] = 5;
client->look_at[0] = 0;
client->look_at[1] = 1;
client->look_at[1] = 0;
client->look_at[2] = 0;
client->light0[0] = 2.5;
@ -42,7 +43,28 @@ void GSClientDestroy(GSClient client) {
GSLog(GSLogInfo, "Destroyed client");
}
GSModel m = NULL;
static void scene(GSClient client) {
static double r = 0;
GSVector3 pos = {0, 0, 0};
GSVector3 rot = {0, 0, 0};
int i;
int a = 1;
if(m == NULL) m = GSModelOpen(client->engine, "game:/mdl/tetopear.mdl");
rot[1] = r;
for(i = -a; i <= a; i++) {
int j;
pos[0] = i * 2;
for(j = -a; j <= a; j++) {
pos[2] = j * 2;
GSModelDraw(m, pos, rot);
}
}
r++;
}
void GSClientStep(GSClient client) {