2021-08-13 20:01:28 +07:00
|
|
|
## OpenGL integration
|
2020-11-15 23:51:13 +01:00
|
|
|
|
|
|
|
|
A demonstration of how to integrate Iced in an existing graphical OpenGL application.
|
|
|
|
|
|
|
|
|
|
The __[`main`]__ file contains all the code of the example.
|
|
|
|
|
|
|
|
|
|
<div align="center">
|
|
|
|
|
<a href="https://imgbox.com/9P9ETcod" target="_blank"><img src="https://images2.imgbox.com/2a/51/9P9ETcod_o.gif" alt="image host"/></a>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
You can run it with `cargo run`:
|
|
|
|
|
```
|
2021-10-04 21:54:38 +08:00
|
|
|
cargo run --package integration_opengl
|
2020-11-15 23:51:13 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
[`main`]: src/main.rs
|