xege 0.2.1

Rust style safe warpper of C++ graphics libraries.
1
2
3
4
5
6
7
8
9
10
11
use xege::*;

fn main() {
    let mut xege = initgraph(640, 480, Init::Default).unwrap();
    xege.setfillcolor(color::RED);
    Draw::fillrect(&mut xege, 10, 10, 100, 100);
    xege.setwritemode(|pen, dst| pen & !dst);
    xege.setfillcolor(color::YELLOW);
    Draw::fillrect(&mut xege, 50, 50, 140, 140);
    loop {}
}