FreeTypeGL.kl¶
Types¶
FreeTypeAtlas (object)¶
バージョン 2.4.0 で追加.
FreeTypeGL extension wraps the C++ freeType-gl library in KL to draw in OpenGL 2D primitives such as text or lines. https://github.com/rougier/freetype-gl
Because the FreeTypeGL extension can be used with any OpenGL version/implementation, it doesn’t expose freeType-gl high level api.
Indeed, freeType-gl relies on OpenGL 1.2, and the managment of the OpenGL buffers (insertion/push) is limited.
Instead, the FreeTypeGL extension exposes the low level methods, and OpenGL calls (such as buffer binding) are left to specialized classes.
See BaseTextGL, BaseAtlasGL
for a complete examples.
Methods¶
FreeTypeGL (object)¶
Members¶
UInt32 | indexSize | Size of the index. |
UInt32 | vertexSize | Size of the vertex. |
UInt32 | maxVerticesCount | Number max of vertices per element. |
UInt32 | elementCount | Number of element to draw. |