Implement FONTDEF (3)

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

No files matched your search

+12
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);
}
}