Text Extension’s Free Functions

AtlasGLGenerateTexture ( io Ref<AtlasGL> atlas )

Helper function to generate the OpenGl texture.

atlas Reference to an AtlasGL


AtlasGLSetTextureData ( io Ref<AtlasGL> atlas )

Helper function to set the texture content.

atlas Reference to an AtlasGL


Ref<AtlasGL> GetAtlasGL ( in FilePath fontPath, in UInt32 fontSize )

Gets an GetOrCreateAtlasGL singleton (if it exists already).

name The singleton name.


Ref<AtlasGL> GetOrCreateAtlasGL ( in FilePath fontPath, in UInt32 fontSize )

Gets or creates an AtlasGL singleton.

fontPath Font path, use default Roboto font if path is not valid
fontSize Font size


UInt32 OGLTextCompileShader ( in String source, in UInt32 type )

バージョン 2.4.0 で追加.

OpenGL helpers functions and structures for Text extension.

source The shader source.
type Shader type (GL_VERTEX_SHADER, GL_FRAGMENT_SHADER)


UInt32 OGLTextLoadShader ( in String vertexPath, in String fragPath )

Helper function to get the ID of the GL shader (program) used.

vertexPath The vertex shader path.
fragPath The fragment shader path.