pub struct RenderApi<'a> {
    active_tex: &'a mut c_uint,
    batch: &'a mut Batch,
    atlas: &'a mut Vec<Atlas>,
    current_atlas: &'a mut usize,
    program: &'a mut TextShaderProgram,
}

Fields§

§active_tex: &'a mut c_uint§batch: &'a mut Batch§atlas: &'a mut Vec<Atlas>§current_atlas: &'a mut usize§program: &'a mut TextShaderProgram

Trait Implementations§

source§

impl<'a> Debug for RenderApi<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> Drop for RenderApi<'a>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<'a> LoadGlyph for RenderApi<'a>

source§

fn load_glyph(&mut self, rasterized: &RasterizedGlyph) -> Glyph

Load the rasterized glyph into GPU memory.
source§

fn clear(&mut self)

Clear any state accumulated from previous loaded glyphs. Read more
source§

impl<'a> TextRenderApi<Batch> for RenderApi<'a>

source§

fn batch(&mut self) -> &mut Batch

Get Batch the api is using.
source§

fn render_batch(&mut self)

Render the underlying data.
source§

fn add_render_item( &mut self, cell: &RenderableCell, glyph: &Glyph, size_info: &SizeInfo )

Add item to the rendering queue.
source§

fn draw_cell( &mut self, cell: RenderableCell, glyph_cache: &mut GlyphCache, size_info: &SizeInfo )

Draw cell.

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for RenderApi<'a>

§

impl<'a> Send for RenderApi<'a>

§

impl<'a> Sync for RenderApi<'a>

§

impl<'a> Unpin for RenderApi<'a>

§

impl<'a> !UnwindSafe for RenderApi<'a>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.