wake.getEngineMode

From Wake
Jump to: navigation, search

Get the engine mode. This will generally be either normal, which is when the engine is running normally, testing where the engine is running tests in headless mode, or tool when the engine is running tools in headless mode.

Function

Synopsis

mode = wake.getEngineMode()

Arguments

None.

Returns

string mode

The engine mode. This may be invalid, normal, testing, or tool.


Testing & Tool Modes

In testing and tool mode, not everything is available as the engine is running in headless mode without an OpenGL context. As such, anything dealing with windowing or affecting anything visual will likely not work or outright crash.

See Also