Crate egui_render_glow
source ·Re-exports
pub use glow;
Macros
- opengl error checking flushes all commands and forces synchronization so, we should make this feature gated eventually and maybe use debug callbacks (on desktop atleast)
Structs
- 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.