Crate reng

Crate reng 

Source

Re-exports§

pub use window::*;
pub use shader::*;
pub use macros::*;
pub use camera::*;
pub use shapes::*;
pub use line::*;
pub use light::*;
pub use game_object::*;
pub use mesh::*;
pub use texture::*;
pub use transform::*;
pub use vertex::*;
pub use raycast::*;
pub use utilities::*;
pub use model::*;
pub use ui_renderer::*;

Modules§

bool
bool vector mask types.
camera
f32
f32 vector, quaternion and matrix types.
f64
f64 vector, quaternion and matrix types.
ffi
Low-level function bindings and constants pertaining to the underlying GLFW library.
game_object
i8
i8 vector types.
i16
i16 vector types.
i32
i32 vector types.
i64
i64 vector types.
instance_rendering
light
line
macros
mesh
model
raycast
shader
shapes
swizzles
Traits adding swizzle methods to all vector types.
texture
transform
u8
u8 vector types.
u16
u16 vector types.
u32
u32 vector types.
u64
u64 vector types.
ui_renderer
utilities
vertex
window

Macros§

bind_buffer
ecs
fail_on_errors
A callback that triggers a task failure when an error is encountered.
gen_attrib_pointers
log_errors
A callback that logs each error as it is encountered without triggering a task failure

Structs§

Affine2
A 2D affine transform, which can represent translation, rotation, scaling and shear.
Affine3A
A 3D affine transform, which can represent translation, rotation, scaling and shear.
BVec2
A 2-dimensional bool vector mask.
BVec3
A 3-dimensional bool vector mask.
BVec4
A 4-dimensional bool vector mask.
BVec3A
A 3-dimensional SIMD vector mask.
BVec4A
A 4-dimensional SIMD vector mask.
Cursor
Represents a window cursor that can be used to display any of the standard cursors or load a custom cursor from an image.
DAffine2
A 2D affine transform, which can represent translation, rotation, scaling and shear.
DAffine3
A 3D affine transform, which can represent translation, rotation, scaling and shear.
DMat2
A 2x2 column major matrix.
DMat3
A 3x3 column major matrix.
DMat4
A 4x4 column major matrix.
DQuat
A quaternion representing an orientation.
DVec2
A 2-dimensional vector.
DVec3
A 3-dimensional vector.
DVec4
A 4-dimensional vector.
DebugAliases
Formats the type using aliases rather than the default variant names.
FlushedMessages
An iterator that yields until no more messages are contained in the Receiver’s queue.
GamepadState
State of a gamepad.
GammaRamp
Describes the gamma ramp of a monitor.
Glfw
A token from which to call various GLFW functions. It can be obtained by calling the init function. This cannot be sent to other tasks, and should only be initialized on the main platform thread. Whilst this might make performing some operations harder, this is to ensure thread safety is enforced statically.
GlfwReceiver
I8Vec2
A 2-dimensional vector.
I8Vec3
A 3-dimensional vector.
I8Vec4
A 4-dimensional vector.
I16Vec2
A 2-dimensional vector.
I16Vec3
A 3-dimensional vector.
I16Vec4
A 4-dimensional vector.
I64Vec2
A 2-dimensional vector.
I64Vec3
A 3-dimensional vector.
I64Vec4
A 4-dimensional vector.
IVec2
A 2-dimensional vector.
IVec3
A 3-dimensional vector.
IVec4
A 4-dimensional vector.
Joystick
A joystick handle.
JoystickHats
Joystick hats.
Mat2
A 2x2 column major matrix.
Mat3
A 3x3 column major matrix.
Mat4
A 4x4 column major matrix.
Mat3A
A 3x3 column major matrix.
Modifiers
Key modifiers (e.g., Shift, Control, Alt, Super)
Monitor
A struct that wraps a *GLFWmonitor handle.
PRenderContext
PWindow
PixelImage
When not using the image library, or if you just want to, you can specify an image from its raw pixel data using this structure.
Quat
A quaternion representing an orientation.
RenderContext
A rendering context that can be shared between tasks.
ThreadSafeGlfw
A struct that represents a thread safe handle to a Glfw
U8Vec2
A 2-dimensional vector.
U8Vec3
A 3-dimensional vector.
U8Vec4
A 4-dimensional vector.
U16Vec2
A 2-dimensional vector.
U16Vec3
A 3-dimensional vector.
U16Vec4
A 4-dimensional vector.
U64Vec2
A 2-dimensional vector.
U64Vec3
A 3-dimensional vector.
U64Vec4
A 4-dimensional vector.
UVec2
A 2-dimensional vector.
UVec3
A 3-dimensional vector.
UVec4
A 4-dimensional vector.
Vec2
A 2-dimensional vector.
Vec3
A 3-dimensional vector.
Vec4
A 4-dimensional vector.
Vec3A
A 3-dimensional vector.
Version
VidMode
Describes a single video mode.

Enums§

Action
Input actions.
ClientApiHint
Client API tokens.
ContextCreationApi
Specifies the API to use to create the context
ContextReleaseBehavior
ContextReleaseBehavior specifies the release behavior to be used by the context.
ContextRobustnessHint
Context robustness tokens.
CursorMode
Cursor modes.
Error
Tokens corresponding to various error types.
EulerRot
Euler rotation sequences.
GamepadAxis
Axis identifier tokens.
GamepadButton
Button identifier tokens.
InitError
An error that might be returned when glfw::init is called.
InitHint
Initialization hints that can be set using the init_hint function.
JoystickEvent
Joystick events.
JoystickId
Joystick identifier tokens.
Key
Input keys.
MonitorEvent
Monitor events.
MouseButton
Mouse buttons. The MouseButtonLeft, MouseButtonRight, and MouseButtonMiddle aliases are supplied for convenience.
OpenGlProfileHint
OpenGL profile tokens.
StandardCursor
Standard cursors provided by GLFW
SwapInterval
Specifies how the context should handle swapping the buffers.
WindowEvent
Window event messages.
WindowHint
Window hints that can be set using the window_hint function.
WindowMode
Describes the mode of a window

Traits§

Context
Methods common to renderable contexts
FloatExt
A trait for extending f32 and f64 with extra methods.
Vec2Swizzles
Vec3Swizzles
Vec4Swizzles

Functions§

bvec2
Creates a 2-dimensional bool vector mask.
bvec3
Creates a 3-dimensional bool vector mask.
bvec4
Creates a 4-dimensional bool vector mask.
bvec3a
Creates a 3-dimensional bool vector mask.
bvec4a
Creates a 4-dimensional bool vector mask.
dmat2
Creates a 2x2 matrix from two column vectors.
dmat3
Creates a 3x3 matrix from three column vectors.
dmat4
Creates a 4x4 matrix from four column vectors.
dquat
Creates a quaternion from x, y, z and w values.
dvec2
Creates a 2-dimensional vector.
dvec3
Creates a 3-dimensional vector.
dvec4
Creates a 4-dimensional vector.
fail_on_errors
The function to be used with the fail_on_errors!() callback.
flush_messages
Returns an iterator that yields until no more messages are contained in the Receiver’s queue. This is useful for event handling where the blocking behaviour of Receiver::iter is undesirable.
get_error
Wrapper for glfwGetError.
get_error_string
Wrapper for glfwGetError.
get_key_name
Wrapper around glfwGetKeyName
get_key_scancode
Wrapper around glfwGetKeyScancode.
get_version
Wrapper for glfwGetVersion.
get_version_string
Wrapper for glfwGetVersionString.
i8vec2
Creates a 2-dimensional vector.
i8vec3
Creates a 3-dimensional vector.
i8vec4
Creates a 4-dimensional vector.
i16vec2
Creates a 2-dimensional vector.
i16vec3
Creates a 3-dimensional vector.
i16vec4
Creates a 4-dimensional vector.
i64vec2
Creates a 2-dimensional vector.
i64vec3
Creates a 3-dimensional vector.
i64vec4
Creates a 4-dimensional vector.
init
Initializes the GLFW library. This must be called on the main platform thread.
init_hint
Sets hints for the next initialization of GLFW.
init_no_callbacks
ivec2
Creates a 2-dimensional vector.
ivec3
Creates a 3-dimensional vector.
ivec4
Creates a 4-dimensional vector.
key_nameDeprecated
Wrapper around glfwGetKeyName
log_errors
The function to be used with the LOG_ERRORS callback.
make_context_current
Wrapper for glfwMakeContextCurrent.
mat2
Creates a 2x2 matrix from two column vectors.
mat3
Creates a 3x3 matrix from three column vectors.
mat4
Creates a 4x4 matrix from four column vectors.
mat3a
Creates a 3x3 matrix from three column vectors.
quat
Creates a quaternion from x, y, z and w values.
string_from_c_str
Replacement for String::from_raw_buf
string_from_nullable_c_str
Like string_from_c_str, but handles null pointers correctly
u8vec2
Creates a 2-dimensional vector.
u8vec3
Creates a 3-dimensional vector.
u8vec4
Creates a 4-dimensional vector.
u16vec2
Creates a 2-dimensional vector.
u16vec3
Creates a 3-dimensional vector.
u16vec4
Creates a 4-dimensional vector.
u64vec2
Creates a 2-dimensional vector.
u64vec3
Creates a 3-dimensional vector.
u64vec4
Creates a 4-dimensional vector.
uvec2
Creates a 2-dimensional vector.
uvec3
Creates a 3-dimensional vector.
uvec4
Creates a 4-dimensional vector.
vec2
Creates a 2-dimensional vector.
vec3
Creates a 3-dimensional vector.
vec4
Creates a 4-dimensional vector.
vec3a
Creates a 3-dimensional vector.
with_c_str
Replacement for ToCStr::with_c_str

Type Aliases§

GLProc
An OpenGL process address.
Scancode
Keyboard code returned by the OS
WindowId
Unique identifier for a Window.