Struct radiant_rs::RenderContext [−][src]
pub struct RenderContext(_);
A thread-safe render-context.
Required to load fonts or sprites and aquired from Renderer::context()
.
Methods
impl RenderContext
[src]
impl RenderContext
pub fn prune(&self)
[src]
pub fn prune(&self)
Prunes no longer used textures. Requires all layers to be cleared before adding new sprites or rendering the layer.
Trait Implementations
impl Clone for RenderContext
[src]
impl Clone for RenderContext
fn clone(&self) -> RenderContext
[src]
fn clone(&self) -> RenderContext
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Send for RenderContext
[src]
impl Send for RenderContext
impl Sync for RenderContext
[src]
impl Sync for RenderContext
impl Debug for RenderContext
[src]
impl Debug for RenderContext