Klomble Logo

Klomble is a lightweight C++ library for
game development!



Join Discord

What is Klomble?

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!

Light weight, small, and efficient

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!

  • Single-header design
  • Modern OpenGL rendering
  • Compact and efficient
// 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's Features

Klomble is built for modern C++ game development

Single-Header Simplicity

No Makefiles, no linking errors, no complicated build configuration. Just drop klomble.h into your project, include it, and get to work!

Modern OpenGL Under the Hood!

Klomble fully utilizes modern VAOs and shaders instead of the legacy fixed function pipeline, so the code it generates runs efficiently on all hardware!

Simple to understand!

Klomble takes only the OpenGL functions it needs, and compacts them into simple and easy functions that everyone can understand!

Klomble helpers!

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!

Fast to Get Started

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!

Free & Open Source

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!

Klomble Download

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!