Struct glow::Context [−][src]
pub struct Context { /* fields omitted */ }
Implementations
pub unsafe fn from_loader_function<F>(loader_function: F) -> Self where
F: FnMut(&str) -> *const c_void,
Creates a texture from an external GL name.
This can be useful when a texture is created outside of glow (e.g. OpenXR surface) but glow still needs access to it for rendering.