Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 492e8e5

Browse filesBrowse files
Newsletter 13: Add a section about Egui (rust-gamedev#245)
* Newsletter 13: Add a section about Egui * Add missing _ for correct italics Co-authored-by: Joe Clay <27cupsofcoffee@gmail.com> Co-authored-by: Joe Clay <27cupsofcoffee@gmail.com>
1 parent c9b2687 commit 492e8e5
Copy full SHA for 492e8e5

File tree

Expand file treeCollapse file tree

2 files changed

+31
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+31
-0
lines changed

‎content/posts/newsletter-013/egui.png

Copy file name to clipboard
28.5 KB
Loading

‎content/posts/newsletter-013/index.md

Copy file name to clipboardExpand all lines: content/posts/newsletter-013/index.md
+31Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,37 @@ organized with one branch for each subsection.
153153

154154
## Library & Tooling Updates
155155

156+
### [Egui]
157+
158+
[Egui] is a highly portable immediate mode GUI library in pure Rust.
159+
Egui can be integrated anywhere you can paint textured triangles.
160+
You can compile Egui to WASM and render it on a web page using [egui_web]
161+
or compile and run natively using [egui_glium].
162+
163+
[Click to run Egui web demo](https://emilk.github.io/egui/index.html)
164+
165+
Example:
166+
167+
```rust
168+
Window::new("Debug").show(ui.ctx(), |ui| {
169+
ui.label(format!("Hello, world {}", 123));
170+
if ui.button("Save").clicked {
171+
my_save_function();
172+
}
173+
ui.text_edit(&mut my_string);
174+
ui.add(Slider::f32(&mut value, 0.0..=1.0).text("float"));
175+
});
176+
```
177+
178+
![Egui](egui.png)
179+
180+
_Discussions:
181+
[/r/rust](https://reddit.com/r/rust/comments/hzwvsk/emigui_deserves_more_love)_
182+
183+
[Egui]: https://github.com/emilk/egui/
184+
[egui_glium]: https://crates.io/crates/egui_glium
185+
[egui_web]: https://crates.io/crates/egui_web
186+
156187
### 🐦 [Puffin Profiler]
157188

158189
Pufin is a simple instrumentation profiler created by [Embark]

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.