Repository navigation
Core Systems
VOID is split into focused systems that can be used together without requiring an editor-driven workflow.
This page is a map of the main systems rather than a second API reference.
The Game class owns the main loop, window, frame timing, lifecycle, coroutine updates, and presentation.
var settings = GameSettings.Instance
.SetAppCompany("MyStudio")
.SetAppName("MyGame")
.Build();
using var game = new MyGame(settings);
game.Run();Lifecycle hooks:
OnEnter()OnUpdate(FrameTime)OnDraw(FrameTime)OnExit()
See Game Class.
Startup behavior is configured through GameSettings.
Some commonly used settings:
var settings = GameSettings.Instance
.SetAppCompany("MyStudio")
.SetAppName("MyGame")
.SetAppTitle("My Game")
.SetWindow(1280, 720)
.SetViewport(320, 180)
.SetVsync(true)
.SetClearColor("#20232a")
.SetTargetFPS(60)
.Build();Window/display options now also include:
.SetDisplay(0)
.SetDesktopFullscreen()
.SetFullscreenMode(1920, 1080, 144f)
.SetLinuxWindowBackend(LinuxWindowBackend.X11ThenWayland)Renderer options include:
.SetOpenGLVersion(3, 3)
.SetRenderer(() => new MyRenderer())See Window & Displays and Custom Renderers.
VOID provides:
SpriteBatcherPrimitiveBatcher- renderer-neutral scissor clipping
- texture atlasing
- render targets
- custom shaders
- post-processing
- cameras
- renderer-neutral GPU contracts
The built-in backend uses Silk.NET.OpenGL.
See Rendering, Camera, and Matrix.
AssetManager provides:
- typed asset loading
- caching
- automatic reloading after eviction
- mount priority
- custom asset types
- loose-file mounts
- encrypted/compressed pack mounts
See Asset Management.
VOID exposes renderer/platform-neutral keyboard, mouse, gamepad, and action APIs. SDL3 is used internally.
See Input.
VOID uses OpenAL internally while game code works with Sound, SoundInstance, and SoundHelper.
See Audio.
Use coroutines for waits, sequencing, conditions, and tweens without turning every timed behavior into a state machine.
See Coroutines.
StateMachine provides coroutine-backed finite state machines for gameplay modes, AI, menus, interactions, and other logic that is easier to express as named states.
It supports:
- fluent state registration
- transitions by yielding another state name
- direct child
IEnumeratorroutines - current and previous state tracking
- state history and
GoBack() - restart and forced re-entry
- pause/resume
- enter, exit, and changed callbacks
- access to the latest
FrameTime
Only the active state is advanced. Inactive states are not polled or updated.
See State Machine. For general waits, sequencing, tweens, and reusable routines, see Coroutines.
VOID provides typed save/load helpers with encryption and manifest verification.
See Save System.
Built-in pathfinding includes:
- A*
- Dijkstra
- BFS
- flow fields
See Pathfinding.
Logging is asynchronous and supports multiple sinks.
See Logging.
DiscoverableHelper finds opted-in types from loaded assemblies.
InstanceHelper creates compatible types dynamically by name or Type.
These are building blocks for registries, gameplay modules, factories, tools, and custom plugin systems.
See Discoverable System and Instance Helper.
Upgrading an older project? See Migrating to 2.0.
Home · Getting Started · Rendering · Custom Renderers · GitHub · Report an Issue
Built with VOID Engine · MIT License
- Coroutines
- State Machine
- Save System
- Pathfinding
- Logging
- Beacon Manager
- Beacon Event System
- Discoverable System
- Instance Helper
- BeaconManager Extensions
- BeaconHandle Extensions
- Enum Extensions
- String Extensions
- Int Extensions
- Float Extensions
- IEnumerable Extensions
- Random Extensions
- Sound Extensions
- Font Extensions