pub struct TextShaderProgram {
program: ShaderProgram,
u_projection: c_int,
u_cell_dim: c_int,
u_rendering_pass: c_int,
}Expand description
Text drawing program.
Uniforms are prefixed with “u”, and vertex attributes are prefixed with “a”.
Fields§
§program: ShaderProgramShader program.
u_projection: c_intProjection scale and offset uniform.
u_cell_dim: c_intCell dimensions (pixels).
u_rendering_pass: c_intBackground pass flag.
Rendering is split into two passes; one for backgrounds, and one for text.