OGLTextHelper.kl

Functions

OGLTextCompileShader

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)

OGLTextLoadShader

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.

AtlasGLGenerateTexture

AtlasGLGenerateTexture ( io Ref<AtlasGL> atlas )

Helper function to generate the OpenGl texture.

atlas Reference to an AtlasGL

AtlasGLSetTextureData

AtlasGLSetTextureData ( io Ref<AtlasGL> atlas )

Helper function to set the texture content.

atlas Reference to an AtlasGL