This commit is contained in:
Isaac Mills 2024-02-05 11:19:45 -05:00
parent 03ad1aa499
commit c635390455
Signed by: fnmain
GPG key ID: B67D7410F33A0F61
3 changed files with 29 additions and 69 deletions

90
Cargo.lock generated
View file

@ -910,16 +910,7 @@ checksum = "9ea835d29036a4087793836fa931b08837ad5e957da9e23886b29586fb9b6650"
[[package]] [[package]]
name = "ecolor" name = "ecolor"
version = "0.25.0" version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/emilk/egui#74f00f9017781d193bca6142ce764b6dd32a0e6f"
checksum = "57539aabcdbb733b6806ef421b66dec158dc1582107ad6d51913db3600303354"
dependencies = [
"bytemuck",
]
[[package]]
name = "ecolor"
version = "0.25.0"
source = "git+https://github.com/emilk/egui#b5222008047b469f06c4fd6e868942752df7ff68"
dependencies = [ dependencies = [
"bytemuck", "bytemuck",
] ]
@ -927,12 +918,13 @@ dependencies = [
[[package]] [[package]]
name = "eframe" name = "eframe"
version = "0.25.0" version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/emilk/egui#74f00f9017781d193bca6142ce764b6dd32a0e6f"
checksum = "79c00143a1d564cf27570234c9a199cbe75dc3d43a135510fb2b93406a87ee8e"
dependencies = [ dependencies = [
"bytemuck", "bytemuck",
"cocoa", "cocoa",
"egui 0.25.0 (registry+https://github.com/rust-lang/crates.io-index)", "document-features",
"egui",
"egui-wgpu",
"egui-winit", "egui-winit",
"egui_glow", "egui_glow",
"glow", "glow",
@ -945,11 +937,13 @@ dependencies = [
"parking_lot", "parking_lot",
"percent-encoding", "percent-encoding",
"raw-window-handle 0.5.2", "raw-window-handle 0.5.2",
"raw-window-handle 0.6.0",
"static_assertions", "static_assertions",
"thiserror", "thiserror",
"wasm-bindgen", "wasm-bindgen",
"wasm-bindgen-futures", "wasm-bindgen-futures",
"web-sys", "web-sys",
"web-time",
"winapi", "winapi",
"winit", "winit",
] ]
@ -957,32 +951,21 @@ dependencies = [
[[package]] [[package]]
name = "egui" name = "egui"
version = "0.25.0" version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/emilk/egui#74f00f9017781d193bca6142ce764b6dd32a0e6f"
checksum = "e0bf640ed7f3bf3d14ebf00d73bacc09c886443ee84ca6494bde37953012c9e3"
dependencies = [ dependencies = [
"accesskit", "accesskit",
"ahash", "ahash",
"epaint 0.25.0 (registry+https://github.com/rust-lang/crates.io-index)", "epaint",
"log", "log",
"nohash-hasher", "nohash-hasher",
] ]
[[package]]
name = "egui"
version = "0.25.0"
source = "git+https://github.com/emilk/egui#b5222008047b469f06c4fd6e868942752df7ff68"
dependencies = [
"ahash",
"epaint 0.25.0 (git+https://github.com/emilk/egui)",
"nohash-hasher",
]
[[package]] [[package]]
name = "egui-glyphon" name = "egui-glyphon"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"eframe", "eframe",
"egui 0.25.0 (git+https://github.com/emilk/egui)", "egui",
"egui-wgpu", "egui-wgpu",
"glyphon", "glyphon",
] ]
@ -990,30 +973,30 @@ dependencies = [
[[package]] [[package]]
name = "egui-wgpu" name = "egui-wgpu"
version = "0.25.0" version = "0.25.0"
source = "git+https://github.com/emilk/egui#b5222008047b469f06c4fd6e868942752df7ff68" source = "git+https://github.com/emilk/egui#74f00f9017781d193bca6142ce764b6dd32a0e6f"
dependencies = [ dependencies = [
"bytemuck", "bytemuck",
"document-features", "document-features",
"egui 0.25.0 (git+https://github.com/emilk/egui)", "egui",
"epaint 0.25.0 (git+https://github.com/emilk/egui)", "epaint",
"log", "log",
"thiserror", "thiserror",
"type-map", "type-map",
"web-time", "web-time",
"wgpu", "wgpu",
"winit",
] ]
[[package]] [[package]]
name = "egui-winit" name = "egui-winit"
version = "0.25.0" version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/emilk/egui#74f00f9017781d193bca6142ce764b6dd32a0e6f"
checksum = "1d95d9762056c541bd2724de02910d8bccf3af8e37689dc114b21730e64f80a0"
dependencies = [ dependencies = [
"accesskit_winit", "accesskit_winit",
"arboard", "arboard",
"egui 0.25.0 (registry+https://github.com/rust-lang/crates.io-index)", "egui",
"log", "log",
"raw-window-handle 0.5.2", "raw-window-handle 0.6.0",
"smithay-clipboard", "smithay-clipboard",
"web-time", "web-time",
"webbrowser", "webbrowser",
@ -1023,31 +1006,23 @@ dependencies = [
[[package]] [[package]]
name = "egui_glow" name = "egui_glow"
version = "0.25.0" version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/emilk/egui#74f00f9017781d193bca6142ce764b6dd32a0e6f"
checksum = "cb2ef815e80d117339c7d6b813f7678d23522d699ccd3243e267ef06166009b9"
dependencies = [ dependencies = [
"bytemuck", "bytemuck",
"egui 0.25.0 (registry+https://github.com/rust-lang/crates.io-index)", "egui",
"glow", "glow",
"log", "log",
"memoffset 0.7.1", "memoffset 0.7.1",
"raw-window-handle 0.5.2",
"wasm-bindgen", "wasm-bindgen",
"web-sys", "web-sys",
"winit",
] ]
[[package]] [[package]]
name = "emath" name = "emath"
version = "0.25.0" version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/emilk/egui#74f00f9017781d193bca6142ce764b6dd32a0e6f"
checksum = "3ee58355767587db7ba3738930d93cad3052cd834c2b48b9ef6ef26fe4823b7e"
dependencies = [
"bytemuck",
]
[[package]]
name = "emath"
version = "0.25.0"
source = "git+https://github.com/emilk/egui#b5222008047b469f06c4fd6e868942752df7ff68"
dependencies = [ dependencies = [
"bytemuck", "bytemuck",
] ]
@ -1076,33 +1051,18 @@ dependencies = [
[[package]] [[package]]
name = "epaint" name = "epaint"
version = "0.25.0" version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/emilk/egui#74f00f9017781d193bca6142ce764b6dd32a0e6f"
checksum = "e638cb066bff0903bbb6143116cfd134a42279c7d68f19c0352a94f15a402de7"
dependencies = [ dependencies = [
"ab_glyph", "ab_glyph",
"ahash", "ahash",
"bytemuck", "bytemuck",
"ecolor 0.25.0 (registry+https://github.com/rust-lang/crates.io-index)", "ecolor",
"emath 0.25.0 (registry+https://github.com/rust-lang/crates.io-index)", "emath",
"log", "log",
"nohash-hasher", "nohash-hasher",
"parking_lot", "parking_lot",
] ]
[[package]]
name = "epaint"
version = "0.25.0"
source = "git+https://github.com/emilk/egui#b5222008047b469f06c4fd6e868942752df7ff68"
dependencies = [
"ab_glyph",
"ahash",
"bytemuck",
"ecolor 0.25.0 (git+https://github.com/emilk/egui)",
"emath 0.25.0 (git+https://github.com/emilk/egui)",
"nohash-hasher",
"parking_lot",
]
[[package]] [[package]]
name = "equivalent" name = "equivalent"
version = "1.0.1" version = "1.0.1"

View file

@ -6,9 +6,9 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
egui = { git = "https://github.com/emilk/egui", version = "0.25.0" } egui = { git = "https://github.com/emilk/egui" }
egui-wgpu = { git = "https://github.com/emilk/egui", version = "0.25.0" } egui-wgpu = { git = "https://github.com/emilk/egui" }
glyphon = { git = "https://github.com/StratusFearMe21/glyphon" } glyphon = { git = "https://github.com/StratusFearMe21/glyphon" }
[dev-dependencies] [dev-dependencies]
eframe = { git = "https://github.com/emilk/egui", version = "0.25.0" } eframe = { git = "https://github.com/emilk/egui" }

View file

@ -5,8 +5,8 @@ use std::sync::Arc;
use egui::mutex::{Mutex, RwLock}; use egui::mutex::{Mutex, RwLock};
use egui::{Pos2, Rect, Vec2}; use egui::{Pos2, Rect, Vec2};
use egui_wgpu::renderer::ScreenDescriptor;
use egui_wgpu::wgpu; use egui_wgpu::wgpu;
use egui_wgpu::ScreenDescriptor;
use glyphon::{ use glyphon::{
Buffer, Color, ColorMode, FontSystem, PrepareError, RenderError, Resolution, SwashCache, Buffer, Color, ColorMode, FontSystem, PrepareError, RenderError, Resolution, SwashCache,
TextArea, TextAtlas, TextBounds, TextRenderer, TextArea, TextAtlas, TextBounds, TextRenderer,