soon
This commit is contained in:
parent
1864346fe1
commit
3af095361d
10 changed files with 63 additions and 51 deletions
|
|
@ -11,8 +11,8 @@ extern "C" {
|
|||
GSDECL GSClient GSClientCreate(GSEngine engine);
|
||||
GSDECL void GSClientDestroy(GSClient client);
|
||||
GSDECL void GSClientStep(GSClient client);
|
||||
GSDECL GSGL GSClientGetGL(GSClient client);
|
||||
GSDECL void GSClientToggleSkybox(GSClient client, GSBool toggle);
|
||||
GSDECL GSGL GSClientGetGL(GSClient client);
|
||||
GSDECL void GSClientToggleSkybox(GSClient client, GSBool toggle);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,19 +23,19 @@ GSDECL void GSGLTextureDelete(GSGL gl, GLuint texture);
|
|||
/* gl_common.c */
|
||||
GSDECL GSBool GSGLTextureLoadFile(GSGL gl, GLuint* texture, int* width, int* height, const char* filename);
|
||||
GSDECL GSBool GSGLTextureTry(GSGL gl, GLuint* texture, int* width, int* height, const char* prefix);
|
||||
GSDECL void GSGLTextEx(GSGL gl, double x, double y, double sx, double sy, const char* text);
|
||||
GSDECL void GSGLText(GSGL gl, double x, double y, const char* text);
|
||||
GSDECL void GSGLTextEx(GSGL gl, double x, double y, double sx, double sy, const char* text);
|
||||
GSDECL void GSGLText(GSGL gl, double x, double y, const char* text);
|
||||
GSDECL double GSGLTextWidth(GSGL gl, const char* text);
|
||||
GSDECL double GSGLTextHeight(GSGL gl, const char* text);
|
||||
|
||||
/* gl_shadow.c */
|
||||
GSDECL void GSGLShadowInit(GSGL gl);
|
||||
GSDECL void GSGLShadowInit(GSGL gl);
|
||||
GSDECL GSBool GSGLShadowBeforeMapping(GSGL gl);
|
||||
GSDECL void GSGLShadowAfterMapping(GSGL gl);
|
||||
GSDECL void GSGLShadowEnd(GSGL gl);
|
||||
GSDECL void GSGLShadowDeinit(GSGL gl);
|
||||
GSDECL void GSGLShadowDisable(GSGL gl);
|
||||
GSDECL void GSGLShadowEnable(GSGL gl);
|
||||
GSDECL void GSGLShadowAfterMapping(GSGL gl);
|
||||
GSDECL void GSGLShadowEnd(GSGL gl);
|
||||
GSDECL void GSGLShadowDeinit(GSGL gl);
|
||||
GSDECL void GSGLShadowDisable(GSGL gl);
|
||||
GSDECL void GSGLShadowEnable(GSGL gl);
|
||||
|
||||
/* gl.c */
|
||||
GSDECL GSGL GSGLCreate(GSClient client);
|
||||
|
|
@ -55,7 +55,7 @@ GSDECL void GSGLPopMatrix(GSGL gl);
|
|||
GSDECL GLuint GSGLBeginList(GSGL gl);
|
||||
GSDECL void GSGLEndList(GSGL gl);
|
||||
GSDECL void GSGLCallList(GSGL gl, GLuint list);
|
||||
GSDECL void GSGLSetColor(GSGL gl, GSVector4 color);
|
||||
GSDECL void GSGLSetColor(GSGL gl, GSVector4 color);
|
||||
|
||||
/* gl_camera.c */
|
||||
GSDECL void GSGLCameraPerspective(GSGL gl, GSNumber width, GSNumber height);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
@ -105,14 +111,14 @@ struct _GSClient {
|
|||
GSEngine engine;
|
||||
|
||||
GSGL gl;
|
||||
GLuint font;
|
||||
int font_width;
|
||||
int font_height;
|
||||
GLuint font;
|
||||
int font_width;
|
||||
int font_height;
|
||||
GSVector3 look_at;
|
||||
GSVector3 camera;
|
||||
GSVector4 light0;
|
||||
GSSkyBox skybox;
|
||||
GSBool skybox_enabled;
|
||||
GSBool skybox_enabled;
|
||||
};
|
||||
|
||||
struct _GSSkyBox {
|
||||
|
|
@ -197,8 +203,8 @@ struct _GSEngineParam {
|
|||
GSTickCallback tick;
|
||||
GSGetTickCallback get_tick;
|
||||
GSSleepCallback sleep;
|
||||
GSRenderCallback render;
|
||||
GSAfterRenderCallback after_render;
|
||||
GSRenderCallback render;
|
||||
GSAfterRenderCallback after_render;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue