quicksilver 0.3.4

A simple game framework for 2D games in pure Rust
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::backend::{Backend, instance};

#[derive(Debug)]
pub struct ImageData {
    pub id: u32,
    pub width: u32,
    pub height: u32,
}

impl Drop for ImageData {
    fn drop(&mut self) {
        unsafe { instance().destroy_texture(self) };
    }
}