egui/examples/custom_3d_glow
Emil Ernerfeldt 39e60e367f
Use `egui::ViewportBuilder` in `eframe::NativeOptions` (#3572)
* Part of https://github.com/emilk/egui/issues/3556

This PR replaces a bunch of options in `eframe::NativeOptions` with
`egui::ViewportBuilder`. For instance:

``` diff
 let options = eframe::NativeOptions {
-    initial_window_size: Some(egui::vec2(320.0, 240.0)),
-    drag_and_drop_support: true,
+    viewport: egui::ViewportBuilder::default()
+        .with_inner_size([320.0, 240.0])
+        .with_drag_and_drop(true),
     centered: true,
     ..Default::default()
 };
```
2023-11-19 11:08:47 +01:00
..
src Use `egui::ViewportBuilder` in `eframe::NativeOptions` (#3572) 2023-11-19 11:08:47 +01:00
Cargo.toml Update MSRV to Rust 1.70.0 (#3310) 2023-09-06 07:59:24 +02:00
README.md Remove references to the removed `custom_3d_three-d` example 2023-05-22 17:04:58 +02:00
screenshot.png Update example screenshots 2023-05-23 13:38:02 +02:00

README.md

This demo shows how to embed 3D rendering using glow in eframe.

This is very advanced usage, and you need to be careful.

If you are content of having egui sit on top of a 3D background, take a look at:

cargo run -p custom_3d_glow