pub struct Context { /* private fields */ }
Implementations§
Source§impl Context
impl Context
pub async fn new(window: &Window, px_size: (u32, u32, u32)) -> Self
pub fn render(&mut self, data: &[u8])
pub fn render_no_update(&mut self)
pub fn create_decal(&mut self, spr: (&[u8], (u32, u32))) -> Decal
pub fn draw_decal_instance(&mut self, decal_instance: DecalInstances)
Auto Trait Implementations§
impl !Freeze for Context
impl !RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl !UnwindSafe for Context
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more