Egui backend implementation for GLFW and OpenGL
This is a backend implementation for Egui that can be used with Rust bindings for GLFW and OpenGL.
Since the egui_glfw_gl has not been updated for a long time, I have updated the dependencies to the latest version and made the following things:
- Refactored some parts of the code.
- Fixed the issue in the old project's demo where the "actual size" of the window did not match the visible size.
- Implemented the window scroll event, you can now use the mouse wheel in the egui window.
- Implemented copy and paste functionality.
- The mouse cursor is now properly displayed by using crates "winapi".
I have made an example to demonstrate the usage of egui_glfw_gl. To run the example, run the following:
cargo run --example demo
- Due to the addition of the cursor's icon part, project is currently not compatible with Linux and MacOS.
egui_glfw_gl2 is based off egui_glfw_gl, created by cohae
The project's code heavily references the implementations of winit and egui_vulkano. Many thanks to them.
- Significantly refactored the project.
- Now OpenGL uses version 330, and the method of uploading vertex data has been modified, which theoretically improves rendering performance.
- Breaking change: Switched OpenGL binding crate from gl to gl33 (as the function and variable names in gl33 are consistent with C++).
- Update: Updated the egui dependency to the latest version (0.27.0).
- Updated the egui dependency to 0.26.2.
- Refactored some parts of the code.