base
This commit is contained in:
parent
0286bd63f1
commit
6a68ba0bd0
7 changed files with 78 additions and 8 deletions
|
|
@ -20,5 +20,6 @@
|
|||
#include <GearSrc/SoundDriver.h>
|
||||
#include <GearSrc/SoundEngine.h>
|
||||
#include <GearSrc/Sound.h>
|
||||
#include <GearSrc/Net.h>
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue