Crate graphene

Source
Expand description

§Rust Graphene bindings

Rust bindings and wrappers for Graphene, part of gtk-rs-core.

Graphene 1.10 is the lowest supported version for the underlying library.

§Minimum supported Rust version

Currently, the minimum supported Rust version is 1.70.0.

§Documentation

§Using

We recommend using crates from crates.io, as demonstrated here.

If you want to track the bleeding edge, use the git dependency instead:

[dependencies]
graphene = { git = "https://github.com/gtk-rs/gtk-rs-core.git", package = "graphene" }

Avoid mixing versioned and git crates like this:

# This will not compile
[dependencies]
graphene = "0.13"
graphene = { git = "https://github.com/gtk-rs/gtk-rs-core.git", package = "graphene" }

§See Also

§License

graphene is available under the MIT License, please refer to it.

Re-exports§

pub use glib;
pub use graphene_sys as ffi;

Modules§

prelude
Traits intended for blanket imports.

Structs§

Box
A 3D box, described as the volume between a minimum and a maximum vertices.
Euler
Describe a rotation using Euler angles.
Frustum
A 3D volume delimited by 2D clip planes.
Matrix
A structure capable of holding a 4x4 matrix.
Plane
A 2D plane that extends infinitely in a 3D volume.
Point
A point with two coordinates.
Point3D
A point with three components: X, Y, and Z.
Quad
A 4 vertex quadrilateral, as represented by four Point.
Quaternion
A quaternion.
Ray
A ray emitted from an origin in a given direction.
Rect
The location and size of a rectangle region.
Size
A size.
Sphere
A sphere, represented by its center and radius.
Triangle
A triangle.
Vec2
A structure capable of holding a vector with two dimensions, x and y.
Vec3
A structure capable of holding a vector with three dimensions: x, y, and z.
Vec4
A structure capable of holding a vector with four dimensions: x, y, z, and w.

Enums§

EulerOrder
Specify the order of the rotations on each axis.
RayIntersectionKind
The type of intersection.