[go: up one dir, main page]

drm 0.1.0

A rust library for using the Linux Kernal's DRM and KMS Api.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14

extern crate drm;
use drm::Device;
use drm::mode::*;

#[test]
fn destroy_dumb() {
    let dev = Device::first_card().expect("Failed to open card");
    let buf = DumbBuf::<u32>::create(&dev, 640, 480).expect("Failed to crate dumbbuf");

    drop(buf);

    println!("Didn't panic!");
}