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

Use explicit epaint over paint alias (re-export)

egui reexports the `epaint` crate both under its original name
and under the alias `paint` (for historical reasons)
This commit is contained in:
Emil Ernerfeldt
2021-02-14 10:53:39 +01:00
parent 6d255cd179
commit 7dad76b913
26 changed files with 61 additions and 66 deletions

View File

@@ -5,9 +5,8 @@ use {
};
use egui::{
emath::clamp,
paint::{Color32, Texture},
vec2,
emath::{clamp, vec2},
epaint::{Color32, Texture},
};
type Gl = WebGlRenderingContext;
@@ -263,7 +262,7 @@ impl WebGlPainter {
}
}
fn paint_mesh(&self, mesh: &egui::paint::Mesh16) -> Result<(), JsValue> {
fn paint_mesh(&self, mesh: &egui::epaint::Mesh16) -> Result<(), JsValue> {
debug_assert!(mesh.is_valid());
let mut positions: Vec<f32> = Vec::with_capacity(2 * mesh.vertices.len());

View File

@@ -7,9 +7,8 @@ use {
};
use egui::{
emath::clamp,
paint::{Color32, Texture},
vec2,
emath::{clamp, vec2},
epaint::{Color32, Texture},
};
type Gl = WebGl2RenderingContext;
@@ -253,7 +252,7 @@ impl WebGl2Painter {
}
}
fn paint_mesh(&self, mesh: &egui::paint::Mesh16) -> Result<(), JsValue> {
fn paint_mesh(&self, mesh: &egui::epaint::Mesh16) -> Result<(), JsValue> {
debug_assert!(mesh.is_valid());
let mut positions: Vec<f32> = Vec::with_capacity(2 * mesh.vertices.len());