1
0

Implement FONTDEF (3)

This commit is contained in:
otya128
2016-12-30 16:49:32 +09:00
parent 20b00236a2
commit 6f4b4d0f65
3 changed files with 18 additions and 5 deletions

View File

@@ -524,4 +524,16 @@ class Console
glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, w, h, GL_BGRA, GL_UNSIGNED_BYTE, buffer);
glFlush();
}
void initGRPF()
{
if (GRPF)
{
GRPF.deleteGL();
GRPF.deleteSDL();
}
GRPF = petitcom.graphic.createGRPF(petitcom.fontFile);
petitcom.graphic.GRPFWidth = GRPF.surface.w;
petitcom.graphic.GRPFHeight = GRPF.surface.h;
GRPF.createTexture(petitcom.renderer, petitcom.textureScaleMode);
}
}