4 releases
0.4.41 | Sep 17, 2023 |
---|---|
0.4.2 | Sep 13, 2023 |
0.4.1 | Sep 13, 2023 |
0.3.1 | Sep 12, 2023 |
#790 in Graphics APIs
70KB
548 lines
KartApple-GL
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);
//...
}
}
Requirements
- must have cmake installed for glfw
sudo apt install cmake
choco install cmake
Quick Start
Dependencies
~3MB
~57K SLoC