Module lux::prelude
[−]
[src]
A collection of common traits, structs and functions that are recommended for average Lux usage.
Structs
EventIterator |
An iterator for windowing events. |
Frame |
A frame is a render target that can be drawn on. |
Sprite |
A ref-counted reference to a texture on the GPU. |
Texture |
An owned texture on the hardware. |
Window |
A 1 to 1 correlation with a window shown on your desktop. |
Enums
LuxError |
Any error that Lux might run into. |
Traits
Canvas |
Canvas is the main trait for drawing in Lux. It supports all operations that paint to the screen or to a buffer. |
Color |
A |
Colored |
A trait representing objects that can be colored with seperate fill colors and stroke colors. |
Interactive |
A trait for objects that are interactive to the user. The only known impelementation for this trait is the glutin Window. |
IntoSprite |
Implemented by any object that can be converted into a Sprite. |
TextureLoader |
TextureLoader is implemented on any object that can load textures. |
Transform |
A trait for objects that can be "transformed". Transformations include scaling, translation, shearing, rotating, and general purpose matrix application. |
Functions
hsv |
Constructs a color from Hue, Saturation and Value components. |
hsva |
Same as |
rgb |
Constructs a color from R, G, and B components. |
rgba |
Constructs a color from R, G, B, and A components. |
Type Definitions
LuxResult |
A result returning either a value or a lux-generated error. |