Crate qilin

Source

Modules§

game
Contains structs for game control and windowing.
math
Contains math functions to manipulate mint types, like Vector2 or Vector3.
render
Contains structs for the game module to use. Mostly rendering and geometry stuff.
scene
Contains the scene::Scene trait.
simplified
Contains some functions for creating structs simpler and more readable.
types
Contains common types of qilin.

Structs§

EulerAngles
Abstract set of Euler angles in 3D space. The basis of angles is defined by the generic parameter B.
Quaternion
Standard quaternion represented by the scalar and vector parts. Useful for representing rotation in 3D space. Corresponds to a right-handed rotation matrix.
Vector2
Vector3
Vector4
WindowOptions
WindowOptions is creation settings for the window. By default the settings are defined for displayng a 32-bit buffer (no scaling of window is possible)

Enums§

Key
Key is used by the get key functions to check if some keys on the keyboard has been pressed
KeyRepeat
Used for is_key_pressed and get_keys_pressed() to indicated if repeat of presses is wanted
MouseButton
The various mouse buttons that are availible
Scale
Scale will scale the frame buffer and the window that is being sent in when calling the update function. This is useful if you for example want to display a 320 x 256 window on a screen with much higher resolution which would result in that the window is very small.
ScaleMode
On some OS (X11 for example) it’s possible a window can resize even if no resize has been set. This causes some issues depending on how the content of an input buffer should be displayed then it’s possible to set this scaling mode to get a better behavior.