tweak_runner 0.4.0

a runner for the tweak shader library.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::sync::{Arc, Mutex};

pub struct VideoLoader;

impl super::VideoLoaderTrait for VideoLoader {
    fn init<P: AsRef<std::path::Path>>(_path: P) -> Result<Self, String> {
        Err("Compiled without the video feature!".to_owned())
    }
    fn present(&self) -> Option<Arc<Mutex<Vec<u8>>>> {
        None
    }
    fn width(&self) -> u32 {
        1
    }
    fn height(&self) -> u32 {
        1
    }
}