Labrador
A 2D game engine in C++, with four GPU render backends held to the same pixel tests.
- ~42k lines of engine
- ~38k lines of tests
- Direct3D 11 · Direct3D 12 · OpenGL 3.3 · Vulkan · null
labradorengine.com · Source on GitHub
Labrador is a 2D game engine: ten modules with a fixed dependency direction that the build enforces, documented on labradorengine.com from the same checkout it builds from.
What I’d point at
- One renderer seam, five backends. Direct3D 11, Direct3D 12, OpenGL 3.3 core and Vulkan are held to the same pixel tests and the same checked-in reference images. A fifth, null backend records what it was asked to draw, so rendering can be tested on a machine with no graphics driver.
- A real client keeps it honest. ColourWars, a split-screen game, consumes the engine as a submodule from its own repository, so awkward APIs show up as friction in a real game rather than in guesses.
- Written decisions. The design documents say what the engine is, what it refuses to be, and why - and the reviews that argued with them are kept alongside.
- Tested. Nineteen doctest targets and throughput benchmarks run under ctest.