[−][src]Struct alacritty::renderer::TextShaderProgram
Text drawing program.
Uniforms are prefixed with "u", and vertex attributes are prefixed with "a".
Fields
id: c_uintProgram id.
u_projection: c_intProjection scale and offset uniform.
u_cell_dim: c_intCell dimensions (pixels).
u_background: c_intBackground pass flag.
Rendering is split into two passes; 1 for backgrounds, and one for text.
Implementations
impl TextShaderProgram[src]
pub fn new() -> Result<TextShaderProgram, ShaderCreationError>[src]
fn update_projection(
&self,
width: f32,
height: f32,
padding_x: f32,
padding_y: f32
)[src]
&self,
width: f32,
height: f32,
padding_x: f32,
padding_y: f32
)
fn set_term_uniforms(&self, props: &SizeInfo)[src]
fn set_background_pass(&self, background_pass: bool)[src]
Trait Implementations
impl Debug for TextShaderProgram[src]
impl Drop for TextShaderProgram[src]
Auto Trait Implementations
impl RefUnwindSafe for TextShaderProgram
impl Send for TextShaderProgram
impl Sync for TextShaderProgram
impl Unpin for TextShaderProgram
impl UnwindSafe for TextShaderProgram
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,