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: ShaderProgram
Shader program.
u_projection: c_int
Projection scale and offset uniform.
u_cell_dim: c_int
Cell dimensions (pixels).
u_rendering_pass: c_int
Background pass flag.
Rendering is split into two passes; one for backgrounds, and one for text.