Skip to main content

Crate wgame_gfx_shapes

Crate wgame_gfx_shapes 

Source
Expand description

GPU-accelerated shapes and textured triangle meshes in 2D and 3D.

Provides geometry primitives with fill, stroke, and texture support.

Re-exports§

pub use self::circle::Circle;
pub use self::circle::CircleFill;
pub use self::circle::CircleStroke;
pub use self::geometry::Mesh;
pub use self::polygon::Polygon;
pub use self::polygon::PolygonFill;
pub use self::polyline::Polyline;
pub use self::polyline::PolylineFill;
pub use self::polyline::PolylinePoint;
pub use self::shape::Shape;
pub use self::shape::Textured;

Modules§

geometry
material
Custom shading on the shared mesh/instance renderer.
prelude
Commonly used shape traits.
shader

Macros§

impl_textured

Structs§

Circle
CircleFill
CircleStroke
Polygon
PolygonFill
Polyline
An open ribbon with flat caps and miter joins, falling back to bevel joins when the outer miter exceeds four times the half-width.
PolylineFill
A filled Polyline, with the usual color and texture modifiers.
PolylinePoint
A polyline junction. Width is the full width in local world units, like ShapesLibrary::line; zero width produces a tapered tip or pinch.
ShapesLibrary
Shared graphics library for rendering shapes and meshes.
ShapesState
Shared state for shape rendering.

Traits§

Shape
Textured