Crate comfy_wgpu::epaint

Expand description

A simple 2D graphics library for turning simple 2D shapes and text into textured triangles.

Made for egui.

Create some Shape:s and pass them to tessellate_shapes to generate Mesh:es that you can then paint using some graphics API of your choice (e.g. OpenGL).

Feature flags

Modules

  • AHash is a high performance keyed hash function.
  • Color conversions and types.
  • Opinionated 2D math library for building GUIs.
  • Helper module that wraps some Mutex types with different implementations.
  • Collect statistics about what is being painted.
  • Converts graphics primitives into textured triangles.
  • Everything related to text, fonts, text layout, cursors etc.

Macros

  • An assert that is only active when epaint is compiled with the extra_asserts feature or with the extra_debug_asserts feature in debug builds.

Structs

Enums

Constants

  • The UV coordinate of a white region of the texture mesh. The default egui texture has the top-left corner pixel fully white. You need need use a clamping texture sampler for this to work (so it doesn’t do bilinear blending with bottom right corner).

Functions