A game engine being built in C++ and OpenGL 4.6
I'm making this engine as a learning exercise. As such I probably won't be accepting any pull requests.
(That is if someone somehow finds this repository lol)
CMake
- glfw: For Windowing, Creating OpenGL Context, Input handling, etc.
- glad: For accessing OpenGL functions.
- stb:
- stb_image for loading images.
- stb_truetype for loading ttf fonts
- miniaudio: For audio
First clone the repo recursively.
Note: This engine builds GLFW from source at vendor/glfw. For required development libraries and tools depending on your OS, see GLFW’s compile guide and install what CMake reports as missing.
Specify a generator manually like so:
$ cmake -S. -Bbuild -G"MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug
$ cmake --build build
$ .\build\windows_x86-64\Debug\Sandbox.exeOr use a predefined preset.
For example, to use gcc and makefiles for a debug build on windows x86-64:
$ cmake --preset=windows_x86-64_debug_mingw-w64_makefiles
$ cmake --build build
$ .\build\windows_x86-64\Debug\Sandbox.exeSpecify a generator manually like so:
$ cmake -S. -Bbuild -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug
$ cmake --build build
$ ./build/linux_x86-64/Debug/SandboxOr use a predefined preset.
For example, to use gcc and makefiles for a debug build on linux x86-64:
$ cmake --preset=linux_x86-64_debug_gcc_makefiles
$ cmake --build build
$ ./build/linux_x86-64/Debug/SandboxNote: Use cmake --list-presets to see all available presets
- SpriteSheet: RPG_Base
- Music: CriticalTheme
Heavily inspired by the TheCherno's Sparky Engine series and Hazel Game Engine series
The font rendering was implemented based on tutorial and code in this article.