8mb.video-AKi-W9TIfiN8.mp4
C++ game engine
Hi, this is my game engine. Nice to meet you. Goodnight.
8/30/24If main
doesn't work, stable
probably will
Arguments: clean
, platform
, release
, debug
, app
, cloc
, run
, meta
./build.bat meta debug platform app
SDL3 and box2d 3.1 need to be installed. Also, this doesn't compile on linux/mac yet. I am fixing the compiler errors one by one. I get bored sometimes. Give it a crack if you want. Its all platform related.
clang
and gcc
are also valid args.
./build.sh meta debug clang platform app
Open issue and make pr for anything. Off the top of my head, nothing comes to mind. If you want, you can attempt a linux / mac port. Linux port will require making sure it compiles and updating build.sh
to match the current build.bat
. For a mac port, you'd likely have to make an opengl 3.3 backend for the renderer. This would be quite a bit of work since the 4.5 backend is about 900 loc.
backends/
: opengl, win32 and linux backend codegenerated/
: Generated code. Usually implicit params and templates.meta/
: Metaprogramsthird_party/
: external libraries, currently SDL, glad, box2d and stbbase.cpp
: utility functions.context.cpp
: libc replacements + platform context crackingdraw.cpp
: high level renderer layer. Handles batching.editor.cpp
: ui abstraction to make gfx toolsmain.cpp
: entry + gameos.cpp
: OS abstraction. Mainly windowing and memory.render.cpp
: low level renderer layertexture.cpp
: texture cacheui.cpp
: immediate mode UI layer.