OpenGlLimitedFont

Note that the constructor calls OpenGL functions and thus this must be called AFTER the context creation, e.g. on simpledisplay's window first visible delegate.

Any text with characters outside the range you bake in the constructor are simply ignored - that's why it is called "limited" font. The TtfFont struct can generate any string on-demand which is more flexible, and even faster for strings repeated frequently, but slower for frequently-changing or one-off strings. That's what this class is made for.

final
class OpenGlLimitedFont : OpenGlLimitedFontBase!()(
OpenGlFontGLVersion ver = OpenGlFontGLVersion.old
) {
static if(ver == OpenGlFontGLVersion.shader)
BasicMatrix!(4, 4) mymatrix;
static if(ver == OpenGlFontGLVersion.shader)
BasicMatrix!(4, 4) projection;
}

Meta

History

Added April 24, 2020