math functions

This commit is contained in:
Nishi 2026-01-10 19:51:48 +09:00
commit 9d11089a75
Signed by: nishi
GPG key ID: 27EF69B208EB9343
15 changed files with 265 additions and 47 deletions

View file

@ -1,6 +1,7 @@
#include <GearBox/Client.h>
#include <GearBox/Log.h>
#include <GearBox/GL.h>
GBClient GBClientCreate(GBEngine engine) {
GBClient client = malloc(sizeof(*client));
@ -9,14 +10,21 @@ GBClient GBClientCreate(GBEngine engine) {
client->engine = engine;
GBLog(GBLogInfo, "Creating client");
client->gl = GBGLCreate(client);
GBLog(GBLogInfo, "Created client");
return client;
}
void GBClientDestroy(GBClient client) {
GBGLDestroy(client->gl);
free(client);
GBLog(GBLogInfo, "Destroyed client");
}
void GBClientStep(GBClient client) {
client->engine->param->gl_swapbuffer();
}