Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Running ¶
func Running() bool
Running reports whether the engine is considered to still be running. It will only return true when the main loop is running and before shutdown confirmation from Program.Shutdown(). This is so that you can depend on Running() to terminate your loops/threads.
SIGINT will bypass Program.Shutdown() and force a terminate. This is so we have a easy way to terminate the engine in the event of deadlocks.
Types ¶
type Audio ¶
type Audio interface { AudioConfig() AudioConfig Init(AudioConfig) error Mix() (int, audio.Track) Update() Destroy() }
type AudioConfig ¶
type AudioConfig struct { Spec audio.Spec // Length of the buffer in terms of samples, this is usually a power of 2 BufferLength int }
Refer to driver's documentation on the valid value ranges
type GLInstance ¶
type GLInstance interface { ProcAddr() uintptr SwapBuffers() }
type GLRenderer ¶
type GLRenderer interface { Renderer GLConfig() GLConfig GLInit(GLInstance) error }
type VkInstance ¶
type VkRenderer ¶
type VkRenderer interface { Renderer VkConfig() VkConfig VkInit(VkInstance) error }
Click to show internal directories.
Click to hide internal directories.