Skip to content

A Rust OpenGL layer for rendering graphics with ease!

Notifications You must be signed in to change notification settings

Carter907/kartapple-gl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
impl AppScaffold for PrismGL {
    unsafe fn on_init(&mut self, app: &mut KartApple) {
        gl::Enable(gl::DEPTH_TEST);

        let vert_code = include_str!("../shaders/vert.glsl").to_string();
        let frag_code = include_str!("../shaders/frag.glsl").to_string();

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

        let mut vao = GLuint::from(1u32);
        gl::GenVertexArrays(1, &mut vao);
        gl::BindVertexArray(vao);
        self.vao = vao;
        let side_length = 0.75f32;

        //...
    } 
}

picture of a cube with code

Requirements

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

Quick Start

  • implement the Scaffold trait and pass it in as an argument to KartApple.start

About

A Rust OpenGL layer for rendering graphics with ease!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages