pub struct Context { /* private fields */ }Implementations§
source§impl Context
impl Context
pub unsafe fn from_loader_function<F>(loader_function: F) -> Contextwhere F: FnMut(&str) -> *const c_void,
sourcepub unsafe fn create_texture_from_gl_name(gl_name: u32) -> NativeTexture
pub unsafe fn create_texture_from_gl_name(gl_name: u32) -> NativeTexture
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.