[−][src]Trait thyme::Renderer
A trait to be implemented on the type to be used for rendering the UI. See GliumRenderer
for an example implementation. The Renderer
takes a completed frame and renders the widget tree stored within it.
Required methods
fn register_font(
&mut self,
handle: FontHandle,
source: &FontSource,
size: f32,
scale: f32
) -> Result<Font, Error>
&mut self,
handle: FontHandle,
source: &FontSource,
size: f32,
scale: f32
) -> Result<Font, Error>
Register a font with Thyme. This method is called via the ContextBuilder
.
fn register_texture(
&mut self,
handle: TextureHandle,
image_data: &[u8],
dimensions: (u32, u32)
) -> Result<TextureData, Error>
&mut self,
handle: TextureHandle,
image_data: &[u8],
dimensions: (u32, u32)
) -> Result<TextureData, Error>
Register a texture with Thyme. This method is called via the ContextBuilder
.
Implementors
impl Renderer for GliumRenderer
[src]
fn register_texture(
&mut self,
handle: TextureHandle,
image_data: &[u8],
dimensions: (u32, u32)
) -> Result<TextureData, Error>
[src]
&mut self,
handle: TextureHandle,
image_data: &[u8],
dimensions: (u32, u32)
) -> Result<TextureData, Error>
fn register_font(
&mut self,
handle: FontHandle,
source: &FontSource,
size: f32,
scale: f32
) -> Result<Font, Error>
[src]
&mut self,
handle: FontHandle,
source: &FontSource,
size: f32,
scale: f32
) -> Result<Font, Error>