Crate rust_raylib

Source
Expand description

§rust-raylib

Unsafe bindings for raylib and safe wrappers for them. Currently targets raylib 4.5.

Some features (like logging and text formatting) are excluded from the wrappers, because there are more safe and idiomatic solutions available for them.

The minor version of the crate follows raylib’s major and minor versions (i.e. 0.45.X for raylib 4.5) It will only be increased when updated to a new raylib version. The patch version is increased when new fixes and/or improvements are introduced. They may contain breaking changes!

§Cargo features

  • serde: serde support for most types.
  • rl-opengl-***: force raylib to use a specific GL version. If none are selected, raylib will choose on its own.

Re-exports§

pub use ffi::RAYLIB_VERSION;
pub use ffi::RAYLIB_VERSION_MAJOR;
pub use ffi::RAYLIB_VERSION_MINOR;
pub use ffi::RAYLIB_VERSION_PATCH;
pub use ffi::ConfigFlags;
pub use ffi::GamepadAxis;
pub use ffi::GamepadButton;
pub use ffi::Gesture;
pub use ffi::KeyboardKey;
pub use ffi::MouseButton;
pub use ffi::MouseCursor;
pub use ffi::TraceLogLevel;

Modules§

audio
Audio
collision
Collision checks between different shapes
color
Color type and color constants
drawing
Drawing traits and functions
ffi
Raw ffi bindings
math
Math types
model
3D models
shader
Shader type
text
Fonts and text related types and functions
texture
Images and textures
vr
VR related types

Structs§

Raylib
Main raylib handle