Crate egui_render_glow
source ·Re-exports§
pub use glow;
Macros§
- This is a simple macro tha checks for any opengl errors, and logs them. But this flushes all commands and forces synchronization with driver, which will slow down your program. So, by default, we only check for errors if
check_gl_error
feature is enabled. otherwise, this does nothing.
Structs§
- Configuration for Glow context when you are creating one
- Egui Painter using glow::Context Assumptions:
- these are config to be provided to browser when requesting a webgl context
Constants§
- output will be in linear space, so make suer to enable framebuffer srgb
- the output will be in srgb space, so make sure to disable framebuffer srgb.
- All shaders are targeting #version 300 es
Functions§
- NOTE: egui coordinates are in logical window space with top left being [0, 0]. In opengl, bottom left is [0, 0]. so, we need to use bottom left clip-rect coordinate as x,y instead of top left.