caiman 0.0.1

a lightweight asset manager for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub trait Asset: Send + Sync + 'static {}

pub struct Texture {
    pub width: u32,
    pub height: u32,
    pub data: Vec<u8>,
}

impl Asset for Texture {}

pub struct Sound {
    pub sample_rate: u32,
    pub channels: u16,
    pub samples: Vec<i16>,
}

impl Asset for Sound {}