An open-source, single-header, multimedia library for C++ Graphics development!
Klomble is an open-source, single-header, multimedia library designed for graphics development without a steep learning curve! Instead of spending hours with OpenGL functions, build systems, or too many of linked dependencies, Klomble gives you a small, readable API that gets a window on screen and shapes rendering in just under 10 lines of code!
Klomble skips external dependencies entirely, loading only the specific OpenGL functions it actually needs, so compile times stay fast and overhead stays low!
We compact all of the complex OpenGL functions into simple, easy to understand functions which both new developers, and experienced developers can understand and boost their workflow!
// simple window and square example in C++ using Klomble
#include "../Klomble.h" // main klomble header file
int main() {
KlombleWindow* mainWindow = klombleCreateWindow(800, 600, "Main Game"); // create window
while (klombleUpdate(mainWindow)) {
// update loop
klombleClearBackground(mainWindow, Klomble::Color(225, 225, 225));
klombleDrawSquare(mainWindow, Klomble::Vec2(-0.5f, 0.0f), 0.4f, 0.0f, Klomble::Color(0, 255, 0));
}
klombleCloseWindow(mainWindow); // closes window
return 0;
}
Klomble is built for modern C++ game development
No Makefiles, no linking errors, no complicated build configuration. Just drop klomble.h into your project, include it, and get to work!
Klomble fully utilizes modern VAOs and shaders instead of the legacy fixed function pipeline, so the code it generates runs efficiently on all hardware!
Klomble takes only the OpenGL functions it needs, and compacts them into simple and easy functions that everyone can understand!
Lightweight helper types like Klomble::Vec2, Klomble::Vec3, and Klomble::Color make positioning objects and setting colours easy and simple, without needing an external math library!
Because there's nothing to compile or link separately, you can go from downloading Klomble.h to a running window with rendered shapes in under 10 lines of code!
Klomble is released under the Zlib license, so it's free to use in both personal and commercial projects! The full source code is available on GitHub for anyone to inspect, use, or contribute to!
Download, and start coding in under 2 minutes! Just download Klomble.h from Github,
include it in your code and get to work! Not sure how to use Klomble? Look at our documentation!
This project is inspired by both Graphics.h and rayLib!