Created by Samuel Rasquinha using C++17 and OpenGL 3.3 🎲
This game has long since been ABANDONED. I do not recommend using it as I was new to graphics/gamedev/game engine dev when I wrote it.
GLGame is a Tiny OpenGL Game Engine that is simple, lightweight and easy to use.
GLGame was created to be as simple and straightforward as possible. Each part of the engine requires little to no understanding of OpenGL and other computer graphic concepts.
It uses simple type names and has simple arguments such as Object
, Entity
or Sprite
.
A Tiny 2D OpenGL based C++ Game Engine that is fast, lightweight and comes with a level editor and the below features :
- Abstract OpenGL (To write custom code) ✓
- Camera Culling ✓
- Sprite Batching ✓
- Lighting ✓
- Custom Light colors ✓
- Light Batching ✓
- Animations ✓
- Custom animation speed ✓
- Scene Editor ✓
- Parser ✓
- Slight encryption ✓
- Grid ✓
- Transformations ✓
- Logger ✓
- Audio
- Lighting ✓
- Particles ✓
- Particle Batcher ✓
- Physics
- Helper functions (such as windowing functions etc..) ✓
- Texture atlas / Sprite Sheet api ✓
- Custom Sampling ✓
This engine is still in development.
I would like to implement the following features in the coming years :
- Multithreading
- Networking
- Save game
- Post Processing
- More helper functions
- Custom GUI Library
To compile this project, you will need Microsoft Visual Studio 2019 and the VSC++ compiler (which supports C++17).
Open the .sln
file using Visual Studio and select the x86 (or Win32) configuration.
You can compile it in both modes (Debug or Release) with the x86 (Win32) configuration.
The scene editor has to be run during runtime.
Just set the fifth argument of the Init()
function to true and it will launch the Scene Editor with all the objects you have or will create.
GLGame has very humble dependencies.
C++17
(forstd::filesystem
)stb_image
(for reading texture files)ImGui
(Bloat free immediate mode GUI interface by Omar Cornut)GLEW
(OpenGL wrangler library)GLFW
(Windowing environment)
- Processor : AMD Ryzen 3 2200g
- Graphics : Integrated Vega 8 graphics
- Ram : 8.0 GB
- MB : AsRock A320M MB
This engine managed to get 500+ FPS in the game with the scene editor running. (With the above specs) and about 300 FPS on an intel HD 4000 GPU.
It got around 1000+ FPS in game without the scene editor running and 400+ FPS on an Intel HD 4000.
A wiki has been written for GLGame. Please refer to the demos and the Wiki
tab in the repo page.
This project is licensed under the highly permissive MIT License. Read the LICENSE file for more info.
If you like this project and would like to support it, please do star it on GitHub.
A Basic lighting demo created with the built-in 2D Light classes and batchers
A Basic lighting demo emulated over a 2D sprite
The GLGame Scene Editor created and rendered at runtime
The particle emitter demo that has a particle batcher and can render upto 10,000 particles in one draw call
The batch renderer that comes with GLGame can render upto 10,000 sprites in one draw call
A platformer demo that comes included with GLGame
Thankyou for visiting the GLGame github page.