Documentation
¶
Overview ¶
The base amore package is simply for stopping and starting your game. It will also automatically lock the os thread and set the application to use all available cpus.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var OnLoad func()
OnLoad will be called after the context is all setup but before the game loop has started. This is a good time to get information like screen size from the window and setup environment. Set this variable with amore.OnLoad = func() {}
Functions ¶
func Quit ¶
func Quit()
Quit will prepare the window to close at the end of the next game loop. This will allow a nice clean destruction of all object that are allocated in OpenGL, SDL, and OpenAl
Types ¶
This section is empty.
Directories
¶
Path | Synopsis |
---|---|
The audio package is use for creating audio sources, managing/pooling resources, and playback of those audio sources.
|
The audio package is use for creating audio sources, managing/pooling resources, and playback of those audio sources. |
decoding
Package decoding is used for converting familiar file types to data usable by OpenAL.
|
Package decoding is used for converting familiar file types to data usable by OpenAL. |
cmd
|
|
amore
The amore command for bundling assets and helpers for quick project creation.
|
The amore command for bundling assets and helpers for quick project creation. |
The event pacakge manages and delegates all the events in the gl context to thier respective handlers.
|
The event pacakge manages and delegates all the events in the gl context to thier respective handlers. |
The file Package is meant to take care of all asset file opening so that file access is safe if trying to access a bundled file or a file from the disk
|
The file Package is meant to take care of all asset file opening so that file access is safe if trying to access a bundled file or a file from the disk |
The gfx Pacakge is used largly to simplify OpenGL calls and to manage state of transformations.
|
The gfx Pacakge is used largly to simplify OpenGL calls and to manage state of transformations. |
The joystick Package handles any joystick or gamepad events on the gl context, it can be used for feedback and input.
|
The joystick Package handles any joystick or gamepad events on the gl context, it can be used for feedback and input. |
The keyboard Pacakge handles the keyboard events on the gl context To capture events as they happen you can use the callbacks OnKeyDown, OnKeyUp, OnTextInput, and OnTextEdit.
|
The keyboard Pacakge handles the keyboard events on the gl context To capture events as they happen you can use the callbacks OnKeyDown, OnKeyUp, OnTextInput, and OnTextEdit. |
The system Pacakge is a utility pacakge meant to interface with system operations like opening an application or setting the clipboard text
|
The system Pacakge is a utility pacakge meant to interface with system operations like opening an application or setting the clipboard text |
The timer Package manages game timing by calling step so that the user can get FPS, and delta time from this pacakge
|
The timer Package manages game timing by calling step so that the user can get FPS, and delta time from this pacakge |
The touch Pacakge handles touch events in the gl context To capture events as they happen you can use the callbacks OnTouchPress, OnTouchRelease, and OnTouchMove.
|
The touch Pacakge handles touch events in the gl context To capture events as they happen you can use the callbacks OnTouchPress, OnTouchRelease, and OnTouchMove. |
The window Pacakge creates and manages the window and gl context.
|
The window Pacakge creates and manages the window and gl context. |
surface
A simple package meant to load sdl surfaces without sdl_image.
|
A simple package meant to load sdl surfaces without sdl_image. |
Click to show internal directories.
Click to hide internal directories.