kart-apple-gl

Crates.iokart-apple-gl
lib.rskart-apple-gl
version0.4.41
sourcesrc
created_at2023-09-12 04:14:09.350074
updated_at2023-09-17 21:31:44.395211
descriptiona graphics engine using gl, glfw, and cgmath (kart-graphics-engine > KartApple-GL > kartapple-gl
homepage
repositoryhttps://github.com/Carter907/kartapple-gl
max_upload_size
id970438
size90,926
Carter (Carter907)

documentation

README

KartApple-GL

KartApple icon

Rust opengl library for creating whatever you want in opengl!

Goals

  • Lightweight
  • Flexible for general purpose graphics
  • Easy to use for beginners
fn main() {
    unsafe {
        let mut app = Kartappl::new(700, 500, "KartApple-GL");
        app.init();
        gl::Enable(gl::DEPTH_TEST);

        let mut program = GLuint::from(1u32);
        let vert_code = include_str!("../shaders/vert.glsl").to_string();
        let frag_code = include_str!("../shaders/frag.glsl").to_string();

        program = ProgramUtils::create_program(&vert_code, &frag_code);

        app.set_program(program);
        
        //...
    } 
}

Picture_of_3D_cube.png

Requirements

  • must have cmake installed for glfw
sudo apt install cmake
choco install cmake

Quick Start

Commit count: 15

cargo fmt