some fancy things

This commit is contained in:
Nishi 2026-01-20 14:34:13 +09:00
commit 7cf83fbb2a
7 changed files with 117 additions and 3 deletions

View file

@ -23,6 +23,10 @@ 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 double GSGLTextWidth(GSGL gl, const char* text);
GSDECL double GSGLTextHeight(GSGL gl, const char* text);
/* gl_shadow.c */
GSDECL void GSGLShadowInit(GSGL gl);
@ -51,6 +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);
/* gl_camera.c */
GSDECL void GSGLCameraPerspective(GSGL gl, GSNumber width, GSNumber height);

View file

@ -105,6 +105,9 @@ struct _GSClient {
GSEngine engine;
GSGL gl;
GLuint font;
int font_width;
int font_height;
GSVector3 look_at;
GSVector3 camera;
GSVector4 light0;
@ -180,6 +183,7 @@ struct _GSResource {
struct _GSVersion {
char string[64];
char copyright[256];
int majorlevel;
int minorlevel;
int patchlevel;