diff options
Diffstat (limited to 'alacritty/src/renderer/text/mod.rs')
-rw-r--r-- | alacritty/src/renderer/text/mod.rs | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/alacritty/src/renderer/text/mod.rs b/alacritty/src/renderer/text/mod.rs index a032ffc7..96945f67 100644 --- a/alacritty/src/renderer/text/mod.rs +++ b/alacritty/src/renderer/text/mod.rs @@ -24,11 +24,27 @@ use glyph_cache::{Glyph, LoadGlyph}; bitflags! { #[repr(C)] struct RenderingGlyphFlags: u8 { - const WIDE_CHAR = 0b0000_0001; - const COLORED = 0b0000_0010; + const COLORED = 0b0000_0001; + const WIDE_CHAR = 0b0000_0010; } } +/// Rendering passes, for both GLES2 and GLSL3 renderer. +#[repr(u8)] +enum RenderingPass { + /// Rendering pass used to render background color in text shaders. + Background = 0, + + /// The first pass to render text with both GLES2 and GLSL3 renderers. + SubpixelPass1 = 1, + + /// The second pass to render text with GLES2 renderer. + SubpixelPass2 = 2, + + /// The third pass to render text with GLES2 renderer. + SubpixelPass3 = 3, +} + pub trait TextRenderer<'a> { type Shader: TextShader; type RenderBatch: TextRenderBatch; |