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:
@@ -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());
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user