mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 14:50:03 -04:00
Refactor: move things into eframe (#1542)
* Move all epi-related code from egui_glow into eframe * Move epi stuff from egui-winit into eframe * Remove mention of epi in egui * Remove mention of epi in egui_glium * Remove trait epi::NativeTexture * Remove confusing mentions of epi * Refactor egui_web: break up into smaller files * Clean up feature flags further, and update changelogs * Clean up check.sh * Small cleanup of egui_web/Cargo.toml * Fix dependencies for pure_glow example * Fix clippy false positive
This commit is contained in:
@@ -24,23 +24,16 @@ all-features = true
|
||||
|
||||
|
||||
[features]
|
||||
default = ["clipboard", "default_fonts", "links", "persistence"]
|
||||
default = ["clipboard", "links"]
|
||||
|
||||
# enable cut/copy/paste to OS clipboard.
|
||||
# if disabled a clipboard will be simulated so you can still copy/paste within the egui app.
|
||||
clipboard = ["egui-winit/clipboard"]
|
||||
|
||||
# If set, egui will use `include_bytes!` to bundle some fonts.
|
||||
# If you plan on specifying your own fonts you may disable this feature.
|
||||
default_fonts = ["egui/default_fonts"]
|
||||
|
||||
# enable opening links in a browser when an egui hyperlink is clicked.
|
||||
links = ["egui-winit/links"]
|
||||
|
||||
# enable persisting native window options and egui memory
|
||||
persistence = ["egui-winit/persistence", "egui/persistence"]
|
||||
|
||||
# experimental support for a screen reader
|
||||
# experimental support for a screen reader.
|
||||
screen_reader = ["egui-winit/screen_reader"]
|
||||
|
||||
|
||||
@@ -54,5 +47,6 @@ ahash = "0.7"
|
||||
bytemuck = "1.7"
|
||||
glium = "0.31"
|
||||
|
||||
|
||||
[dev-dependencies]
|
||||
image = { version = "0.24", default-features = false, features = ["png"] }
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
//! Example how to use [`epi::NativeTexture`] with glium.
|
||||
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release
|
||||
|
||||
use glium::glutin;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//! Example how to use pure `egui_glium` without [`epi`].
|
||||
//! Example how to use `egui_glium`.
|
||||
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release
|
||||
|
||||
|
||||
Reference in New Issue
Block a user