what am i doing

This commit is contained in:
Nishi 2026-01-11 01:36:32 +09:00
commit 4cce33c16b
Signed by: nishi
GPG key ID: 27EF69B208EB9343
9 changed files with 196 additions and 21 deletions

View file

@ -18,11 +18,19 @@ GBDECL int GBGLTexturePrepare(GBGL gl, GLuint* texture, unsigned char* rgba, int
/* gl_shadow.c */
GBDECL void GBGLShadowInit(GBGL gl);
GBDECL void GBGLShadowBeforeMapping(GBGL gl);
GBDECL void GBGLShadowAfterMapping(GBGL gl);
GBDECL void GBGLShadowEnd(GBGL gl);
/* gl.c */
GBDECL GBGL GBGLCreate(GBClient client);
GBDECL void GBGLDestroy(GBGL gl);
/* gl_camera.c */
GBDECL void GBGLPerspective(GBGL gl, double width, double height);
GBDECL void GBGLSetCamera(GBGL gl);
GBDECL void GBGLLookAt(GBGL gl, GBVector3 camera, GBVector3 look_at);
#ifdef __cplusplus
}
#endif

View file

@ -75,8 +75,11 @@ struct _GBResourceKV {
struct _GBGL {
GBEngine engine;
GLuint shadow_texture;
GLuint shadow_shader;
GLuint shadow_texture;
GLuint shadow_shader;
GLdouble shadow_modelview[16];
GLdouble shadow_old_projection[16];
GLdouble shadow_old_modelview[16];
};
struct _GBClient {
@ -85,6 +88,7 @@ struct _GBClient {
GBGL gl;
GBVector3 look_at;
GBVector3 camera;
GBVector4 light0;
};
struct _GBServer {
@ -96,6 +100,8 @@ struct _GBEngine {
GBClient client;
GBServer server;
GBResourceKV* resource;
int width;
int height;
};
struct _GBFile {