OrblitInstance
Inherits: Object
Description
Section titled “Description”Provides access to an embedded Orblit instance.
OrblitInstance represents a running Orblit instance that is controlled from an outside codebase, without a perpetual main loop. It is created by the C API liborblit_create_instance. Only one may be created per process.
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| void | focus_in() |
| void | focus_out() |
| bool | is_started() |
| bool | iteration() |
| void | pause() |
| void | resume() |
| bool | start() |
Method descriptions
Section titled “Method descriptions”focus_in
void focus_in()
Notifies the instance that it is now in focus.
focus_out
void focus_out()
Notifies the instance that it is now not in focus.
is_started
bool is_started()
Returns true if this instance has been fully started.
iteration
bool iteration()
Runs a single iteration of the main loop. Returns true if the engine is attempting to quit.
pause
void pause()
Notifies the instance that it is going to be paused.
resume
void resume()
Notifies the instance that it is being resumed.
start
bool start()
Finishes this instance’s startup sequence. Returns true on success.
