update font
This commit is contained in:
parent
2608502217
commit
5a2f965295
12 changed files with 2066 additions and 2701 deletions
|
|
@ -33,12 +33,17 @@ GSClient GSClientCreate(GSEngine engine) {
|
|||
|
||||
client->skybox = GSSkyBoxTry(client, "default");
|
||||
|
||||
if(GSGLTextureTry(client->gl, &client->font, &client->font_width, &client->font_height, "game:/font")) {
|
||||
} else if(GSGLTextureTry(client->gl, &client->font, &client->font_width, &client->font_height, "base:/font")) {
|
||||
if(GSGLTextureTryEx(client->gl, &client->font, &client->glyph_width, &client->glyph_height, "game:/font", 0)) {
|
||||
} else if(GSGLTextureTryEx(client->gl, &client->font, &client->glyph_width, &client->glyph_height, "base:/font", 0)) {
|
||||
} else {
|
||||
client->font = 0;
|
||||
}
|
||||
|
||||
client->font_width = GSMathClosestPOT(client->glyph_width);
|
||||
client->font_height = GSMathClosestPOT(client->glyph_height);
|
||||
client->glyph_width /= 16;
|
||||
client->glyph_height /= 16;
|
||||
|
||||
GSLog(GSLogInfo, "Created client");
|
||||
|
||||
return client;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue