Crates.io | kart-graphics-engine |
lib.rs | kart-graphics-engine |
version | 0.2.4 |
source | src |
created_at | 2023-08-16 18:11:03.640973 |
updated_at | 2023-09-04 02:16:12.197643 |
description | a graphics engine using gl, glfw, and cgmath for 2d and 3d games |
homepage | |
repository | |
max_upload_size | |
id | 946243 |
size | 14,067 |
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);
}
}
sudo apt install cmake
choco install cmake