math functions
This commit is contained in:
parent
0cef6840af
commit
9d11089a75
15 changed files with 265 additions and 47 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue