Easy, lightweight, and beautiful C++ game framework. (WIP!!)
- C++ 98.5%
- Meson 1.5%
| assets | Easy way to use custom shaders | |
| src | Spritebatch shouldn't systematically flush when drawing text. | |
| test | Spritebatch shouldn't systematically flush when drawing text. | |
| .gitignore | some more comments + add doxygen | |
| BUILDING.md | better docs about buildtypes | |
| Doxyfile | exclude test directory from docs | |
| LICENSE | add license | |
| meson.build | Simple object pooling utils | |
| README.md | the minimal example looks much sexier like that | |
Orgon2D provides a simple and concise interface to program games while shielding developers from the horrors of C++ and exposing them to its strengths.
It aims to limit abstraction, or harness it to make game development less and not more painful.
int main(int argc, char **argv) {
Orgon orgon = Orgon();
orgon.init(1000, 1000);
orgon.window->setWindowTitle("My first Orgon2D window!!");
Font *font = orgon.graphics->newFont("assets/Roboto-Regular.ttf", 32);
const char *txt = "Boxers had zap of gay jock love, quit women";
while (orgon.running()) {
orgon.processEvents();
orgon.graphics->clear(1, 0, 0, 1);
orgon.graphics->drawText(txt, 100, 500, font);
orgon.graphics->flip();
orgon.clock->tick();
}
delete font;
}
Originally written as a toy framework to learn OpenGL and SDL, Orgon2D can occasionally be useful for games and graphical applications in general.
The framework contains the following modules:
- graphics
- audio
- input
- window
- math
- clock
The following dependencies are required:
- SDL2
- SDL2_Mixer
- SDL2_Image
- OpenGL
- glm
- Freetype
Enjoy making games :)!
Fun fact: Orgon2D is named after the mystical energy of Orgone