Module prelude

Module prelude 

Source

Re-exports§

pub use crate::Settings;
pub use crate::meshes;
pub use crate::shaders;
pub use glium;
pub use winit;
pub use crate::application::*;

Modules§

base_input_codes
imports everything needed to reduce boilerplate when creating an input_map
draw_parameters
Describes miscellaneous parameters to be used when drawing.
params
thread
Native threads.

Macros§

binds
Outputs binds in the expected format for add_binds, set_binds and InputMap::new though in the latter case input_map! should be used to skip the middle man.
binds_muncher
input_map
Outputs an input with the inputed binds.
mesh
create a triangle mesh from a Display, u32 indices followed by anything that can be stored in a vertex buffer e.g Vertex and/or TextureCoords. if an error occurs it returns the MeshError enum
uniform
Returns an implementation-defined type which implements the Uniform trait.

Structs§

ActiveEventLoop
Target that associates windows with an EventLoop.
AsyncRequestSerial
A unique identifier of the winit’s async request.
BVec2
a boolean vector with an x and y component
BVec3
a boolean vector with an x, y and z component
BVec4
a boolean vector with an x, y, z and w component
DIVec2
a double interger vector made from an x and y coordinate.
DIVec3
a double interger vector made from a x, y and z coordinate.
DIVec4
a double interger vector made from a x, y, z and w coordinate.
DMat2
a matrix often used for transformations in glium.
DMat3
a double matrix often used for transformations in glium.
DMat4
a matrix often used for transformations in glium.
DQuat
a 4 part double vector often used to represent rotations. note that multiplication of quaternions is applying transformations
DUVec2
an unsigned double interger vector made from a x and y coordinate.
DUVec3
an unsigned interger vector made from an x, y and z coordinate
DUVec4
an unsigned double interger vector made from a x, y, z and w coordinate.
DVec2
a double vector made from a x and y coordinate
DVec3
a double vector made from a x, y and z coordinate.
DVec4
a double vector made from a x, y, z and w coordinate.
DrawParameters
Represents the parameters to use when drawing.
Duration
A Duration type to represent a span of time, typically used for system timeouts.
EventLoop
Provides a way to retrieve events from the system and from the windows that were registered to the events loop.
EventLoopBuilder
Object that allows building the event loop.
EventLoopClosed
The error that is returned when an EventLoopProxy attempts to wake up an EventLoop that no longer exists.
EventLoopProxy
Used to send custom events to EventLoop.
Frame
Implementation of Surface, targeting the default framebuffer.
IVec2
an interger vector made from a x and y coordinate.
IVec3
an interger vector made from a x, y and z coordinate.
IVec4
an interger vector made from a x, y, z and w coordinate.
IndexBuffer
A list of indices loaded in the graphics card’s memory.
InputMap
A struct that handles all your input needs once you’ve hooked it up to winit and gilrs.
Instant
A measurement of a monotonically nondecreasing clock. Opaque and useful only with Duration.
Mat2
a matrix often used for transformations in glium.
Mat3
a matrix often used for transformations in glium
Mat4
a matrix often used for transformations in glium
Normal
a normal used for rendering by glium. stores vertex direction. equivelant to normal in the supplied vertex shader and v_normal in fragment shader.
OwnedDisplayHandle
A proxy for the underlying display handle.
Program
A combination of shaders linked together.
Quat
a 4 part vector often used to represent rotations. note that multiplication of quaternions is applying transformations
SimpleWindowBuilder
Builder to simplify glium/glutin context creation.
Texture2d
A two-dimensional texture containing floating-point data.
TextureCoords
a texture coordinate used for rendering by glium. also called a uv. stores uvs. equivelant to texture_coords in the supplied vertex shader and uv in fragment shader.
UVec2
an unsigned interger vector made from a x and y coordinate.
UVec3
an unsigned interger vector made from a x, y and z coordinate.
UVec4
an unsigned interger vector made from a x, y, z and w coordinate.
Vec2
a vector made from a x and y coordinate.
Vec3
a vector made from a x, y and z coordinate.
Vec4
a vector made from a x, y, z and w coordinate.
Vertex
a vertex used for rendering by glium. stores vertex position. equivelant to position in the supplied vertex shader and v_position in fragment shader.
VertexBuffer
A list of vertices loaded in the graphics card’s memory.
VertexColour
a vertex colour used for rendering by glium. stores vertex colour. equivelant to colour in the supplied vertex shader and v_colour in fragment shader.

Enums§

ControlFlow
Set through ActiveEventLoop::set_control_flow().
CursorGrabMode
The behavior of cursor grabbing.
DeviceEvents
Control when device events are captured.
DeviceInput
Fullscreen
Fullscreen modes.
GamepadAxis
Gamepad’s elements which state can be represented by value from -1.0 to 1.0.
GamepadButton
Gamepad’s elements which state can be represented by value from 0.0 to 1.0.
GamepadInput
InputCode
Enum that specifies an input
KeyCode
Code representing the location of a physical key
MouseButton
Describes a button of a mouse controller.
SpecifyDevice
specify device to listen to. defaults to any and can be specified later on at runtime
SpecifyGamepad
Specify gamepad to listen to. defaults to any and can be specified later on at runtime

Traits§

Surface
Object that can be drawn upon.

Functions§

axis_neg
axis_pos
bvec2
a boolean vector with an x and y component
bvec3
a boolean vector with an x, y and z component
bvec4
a boolean vector with an x, y, z and w component
divec2
create an double interger vector with an x and y coordinate.
divec3
create an double interger vector with an x, y and z coordinate.
divec4
create an interger vector with an x, y, z and w coordinate.
duvec2
create an unsigned double interger vector with an x and y coordinate.
duvec3
create an unsigned interger vector with an x, y and z coordinate.
duvec4
create an unsigned double interger vector with an x, y, z and w coordinate.
dvec2
create a double vector with an x and y coordinate.
dvec3
create a double vector with an x, y and z coordinate.
dvec4
creates a double vector with an x, y, z and w coordinate.
ivec2
create an interger vector with an x and y coordinate.
ivec3
create an interger vector with an x, y and z coordinate.
ivec4
create an interger vector with an x, y, z and w coordinate.
uvec2
create an unsigned interger vector with an x and y coordinate.
uvec3
create an unsigned interger vector with an x, y and z coordinate.
uvec4
create an unsigned interger vector with an x, y, z and w coordinate.
vec2
create a vector with an x and y coordinate.
vec3
create a vector with an x, y and z coordinate.
vec4
create a vector with an x, y, z and w coordinate.

Type Aliases§

Binds
Binds are a list of actions and their bindings