[][src]Struct alacritty::renderer::TextShaderProgram

pub struct TextShaderProgram {
    id: c_uint,
    u_projection: c_int,
    u_cell_dim: c_int,
    u_background: c_int,
}

Text drawing program.

Uniforms are prefixed with "u", and vertex attributes are prefixed with "a".

Fields

id: c_uint

Program id.

u_projection: c_int

Projection scale and offset uniform.

u_cell_dim: c_int

Cell dimensions (pixels).

u_background: c_int

Background 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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.