Expand description
Integration between egui
and glow
for SDL2 applications.
This module provides EguiGlow
, a convenience wrapper that bundles
together:
egui::Context
for running your UIcrate::State
for event/input handlingegui_glow::Painter
for rendering with OpenGL (viaglow
)
§When to use
Use EguiGlow
if you want to render egui using OpenGL through glow
in an SDL2 application. If you prefer SDL2’s Canvas
renderer, see the
crate::canvas
module instead.
§Usage
Typical usage is to:
- Create an
EguiGlow
for your SDL2 window and GL context - Pass SDL2 events to
crate::State::on_event
- Call
egui::Context::run
providing your UI fuction - Paint egui output via
EguiGlow::paint