d7engine 1.1.5

A game engine in rust with SDL2 and opengl.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// this struct holds the information 
// of the actuall window (e.g width height)
// we don't want to allow to write to width and
// height

#[derive(Copy,Clone)]
pub struct Window {
    pub width: f32,
    pub height: f32,
}

impl Window {
    // create a new window struct
    pub fn new(width: f32, height: f32) -> Window {
        Window {width, height}
    }
}