This commit is contained in:
Nishi 2026-01-23 15:38:08 +09:00
commit 3af095361d
Signed by: nishi
GPG key ID: 27EF69B208EB9343
10 changed files with 63 additions and 51 deletions

View file

@ -44,6 +44,7 @@ typedef GSU8 GSBool;
typedef struct _GSVersion GSVersion;
typedef struct _GSEngineParam GSEngineParam;
typedef struct _GSResourceKV GSResourceKV;
typedef struct _GSBox GSBox;
#ifdef _GEARSRC
typedef struct _GSClient* GSClient;
typedef struct _GSServer* GSServer;
@ -81,6 +82,11 @@ typedef void (*GSSleepCallback)(int ms);
typedef void (*GSRenderCallback)(GSEngine engine);
typedef void (*GSAfterRenderCallback)(GSEngine engine);
struct _GSBox {
GSVector3 a;
GSVector3 b;
};
struct _GSResourceKV {
char* key;
GSResource value;

View file

@ -84,7 +84,6 @@ void GSClientStep(GSClient client) {
scene(client);
GSGLShadowEnd(client->gl);
GSVersionGet(&ver);
sprintf(buf, "GearSrc Engine %s", ver.string);

View file

@ -132,7 +132,7 @@ void GSEngineLoop(GSEngine engine) {
if(engine->param->tick != NULL) engine->param->tick();
if(wait_actually) {
if(wait_actually && !engine->param->client) {
int diff = (engine->param->get_tick() - t);
if(wait > diff)

7
engine/src/gl_cull.c Normal file
View file

@ -0,0 +1,7 @@
#include <GearSrc/GL.h>
void GSGLCullCalculate(GSGL gl) {
}
GSBool GSGLCullTest(GSGL gl, GSBox* box) {
}

@ -1 +1 @@
Subproject commit b458613f87b1cfcf05e0cf102688814861010d9f
Subproject commit 5413332506b2929c30c169a3f68934252d39cfff