add bold font

This commit is contained in:
Nishi 2026-01-25 06:31:19 +09:00
commit 28c720f882
Signed by: nishi
GPG key ID: 27EF69B208EB9343
8 changed files with 4528 additions and 27 deletions

View file

@ -27,6 +27,7 @@ GSDECL GSBool GSGLTextureLoadFile(GSGL gl, GLuint* texture, int* width, int* hei
GSDECL GSBool GSGLTextureLoadFileEx(GSGL gl, GLuint* texture, int* width, int* height, const char* filename, int expand);
GSDECL GSBool GSGLTextureTry(GSGL gl, GLuint* texture, int* width, int* height, const char* prefix);
GSDECL GSBool GSGLTextureTryEx(GSGL gl, GLuint* texture, int* width, int* height, const char* prefix, int expand);
GSDECL void GSGLTextBold(GSGL gl, GSBool bold);
GSDECL void GSGLTextEx(GSGL gl, GSNumber x, GSNumber y, const char* text, GSNumber sx, GSNumber sy);
GSDECL void GSGLText(GSGL gl, GSNumber x, GSNumber y, const char* text);
GSDECL double GSGLTextWidth(GSGL gl, const char* text);

View file

@ -105,17 +105,27 @@ struct _GSGL {
GLdouble shadow_projection[16];
GLdouble shadow_old_projection[16];
GLdouble shadow_old_modelview[16];
GSBool bold;
};
struct _GSClient {
GSEngine engine;
GSGL gl;
GLuint font;
int font_width;
int font_height;
int glyph_width;
int glyph_height;
GSGL gl;
GLuint font_normal;
int font_normal_width;
int font_normal_height;
int glyph_normal_width;
int glyph_normal_height;
GLuint font_bold;
int font_bold_width;
int font_bold_height;
int glyph_bold_width;
int glyph_bold_height;
GSVector3 look_at;
GSVector3 camera;
GSVector4 light0;
@ -181,6 +191,7 @@ struct _GSEngine {
int width;
int height;
GSNumber tps;
GSNumber tps_sampled;
};
struct _GSFile {