1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 04:40:03 -04:00

Rename Egui to egui

Also update iamges in README.md
This commit is contained in:
Emil Ernerfeldt
2021-01-17 14:48:59 +01:00
parent 9dba63fa3f
commit 31b7eda51e
55 changed files with 173 additions and 172 deletions

View File

@@ -1,4 +1,4 @@
# epaint - Egui Paint Library
# epaint - egui paint library
A bare-bones 2D graphics library for turning simple 2D shapes and text into textured triangles.

View File

@@ -71,7 +71,7 @@ pub use ahash;
pub use emath;
/// The UV coordinate of a white region of the texture mesh.
/// The default Egui texture has the top-left corner pixel fully white.
/// 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).
pub const WHITE_UV: emath::Pos2 = emath::pos2(0.0, 0.0);
@@ -79,12 +79,12 @@ pub const WHITE_UV: emath::Pos2 = emath::pos2(0.0, 0.0);
/// What texture to use in a [`Triangles`] mesh.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub enum TextureId {
/// The Egui font texture.
/// The egui font texture.
/// If you don't want to use a texture, pick this and the [`WHITE_UV`] for uv-coord.
Egui,
/// Your own texture, defined in any which way you want.
/// Egui won't care. The backend renderer will presumably use this to look up what texture to use.
/// egui won't care. The backend renderer will presumably use this to look up what texture to use.
User(u64),
}

View File

@@ -25,7 +25,7 @@ pub struct Vertex {
pub struct Triangles {
/// Draw as triangles (i.e. the length is always multiple of three).
///
/// Egui is NOT consistent with what winding order it uses, so turn off backface culling.
/// egui is NOT consistent with what winding order it uses, so turn off backface culling.
pub indices: Vec<u32>,
/// The vertex data indexed by `indices`.