mach: Added runtime application options

Reused mach.Options for run time options. It is set with
Engine.setOptions function. ``pub const options`` on top level App has
no effect and will be ignored completely.

Added a blank struct StartupOptions which would be used for startup time
options in future. Currently they aren't used for anything.
This commit is contained in:
iddev5 2022-06-01 12:43:37 +05:30 committed by Stephen Gutekanst
parent 01eee68f5b
commit ed0e6f5c61
4 changed files with 27 additions and 9 deletions

View file

@ -12,6 +12,9 @@ pub const SizeOptional = struct {
};
/// Application options that can be configured at init time.
pub const StartupOptions = struct {};
/// Application options that can be configured at run time.
pub const Options = struct {
/// The title of the window.
title: [*:0]const u8 = "Mach engine",