6 releases
0.2.4 | Sep 4, 2023 |
---|---|
0.2.3 | Sep 1, 2023 |
0.2.0 | Aug 23, 2023 |
0.1.0 | Aug 16, 2023 |
#1014 in Game dev
47 downloads per month
15KB
356 lines
kart-graphics-engine
rust graphics engine
fn main() {
unsafe {
// create a new kart application to store the state of your app
let mut app = kart_application::Kartappl::new(700, 500, "hello world");
app.init();
let mut program = GLuint::from(1u32);
gl::Enable(gl::DEPTH_TEST);
let frag_code = String::from_utf8_lossy(include_bytes!("../shaders/frag.glsl")).to_string();
let vert_code = String::from_utf8_lossy(include_bytes!("../shaders/vert.glsl")).to_string();
program = ProgramUtils::create_program(&vert_code, &frag_code);
app.set_program(program);
}
}
Requirements
- must have cmake installed
sudo apt install cmake
choco install cmake
Dependencies
~2.5MB
~54K SLoC