kart-graphics-engine

Crates.iokart-graphics-engine
lib.rskart-graphics-engine
version0.2.4
sourcesrc
created_at2023-08-16 18:11:03.640973
updated_at2023-09-04 02:16:12.197643
descriptiona graphics engine using gl, glfw, and cgmath for 2d and 3d games
homepage
repository
max_upload_size
id946243
size14,067
Carter (Carter907)

documentation

README

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
Commit count: 0

cargo fmt