This commit is contained in:
Nishi 2026-02-03 10:41:50 +09:00
commit ee178645bf
Signed by: nishi
GPG key ID: 27EF69B208EB9343
4 changed files with 139 additions and 12 deletions

View file

@ -70,10 +70,12 @@ GSDECL void GSGLClearDepth(GSGL gl);
GSDECL void GSGLInitialTranslation(GSGL gl);
/* gl_camera.c */
GSDECL void GSGLCameraPerspective(GSGL gl, GSNumber width, GSNumber height);
GSDECL void GSGLCameraSet(GSGL gl);
GSDECL void GSGLCameraLookAt(GSGL gl, GSVector3 camera, GSVector3 look_at);
GSDECL void GSGLCameraSetup(GSGL gl);
GSDECL void GSGLCameraPerspective(GSGL gl, GSNumber width, GSNumber height);
GSDECL void GSGLCameraSet(GSGL gl);
GSDECL void GSGLCameraLookAt(GSGL gl, GSVector3 camera, GSVector3 look_at);
GSDECL void GSGLCameraSetup(GSGL gl);
GSDECL void GSGLCameraFrustum(GSGL gl);
GSDECL GSBool GSGLCameraFrustumContain(GSGL gl, GSVector3 a, GSVector3 b);
#ifdef __cplusplus
}

View file

@ -206,6 +206,11 @@ struct _GSGL {
GLdouble shadow_old_projection[16];
GLdouble shadow_old_modelview[16];
GLdouble frustum_projection[16];
GLdouble frustum_modelview[16];
GSNumber frustum_planes[6][16];
GSNumber frustum_clip[16];
GSBool bold;
};
@ -253,6 +258,8 @@ struct _GSModel {
float* vertex;
float* texcoord;
GSModelFace* face;
GSVector3 bbox[2];
};
struct _GSSound {