This commit is contained in:
Nishi 2026-01-29 15:23:28 +09:00
commit 6a68ba0bd0
Signed by: nishi
GPG key ID: 27EF69B208EB9343
7 changed files with 78 additions and 8 deletions

View file

@ -20,5 +20,6 @@
#include <GearSrc/SoundDriver.h>
#include <GearSrc/SoundEngine.h>
#include <GearSrc/Sound.h>
#include <GearSrc/Net.h>
#endif

View file

@ -8,6 +8,8 @@
extern "C" {
#endif
#define GSNetDefaultPort 23903
/* net_client.c */
GSDECL GSNetClient GSNetClientOpen(GSClient client, const char* hostname, int port);
GSDECL void GSNetClientClose(GSNetClient client);

View file

@ -79,6 +79,8 @@ typedef void* GSModel;
typedef void* GSSoundDriver;
typedef void* GSSoundEngine;
typedef void* GSSound;
typedef void* GSNetClient;
typedef void* GSNetServer;
#endif
typedef float GSNumber;
typedef GSNumber GSVector2[2];
@ -244,10 +246,14 @@ struct _GSSoundEngine {
struct _GSNetClient {
GSEngine engine;
int fd;
};
struct _GSNetServer {
GSEngine engine;
int fd;
};
struct _GSClient {
@ -274,10 +280,14 @@ struct _GSClient {
GSBool skybox_enabled;
GSSoundEngine sengine;
GSNetClient net;
};
struct _GSServer {
GSEngine engine;
GSNetServer net;
};
struct _GSEngineLog {
@ -325,6 +335,7 @@ struct _GSVersion {
struct _GSEngineParam {
int client;
int server;
int port;
GSGLSwapBufferCallback gl_swapbuffer;
GSReadyCallback ready;
GSTickCallback tick;