MCPcopy Create free account
hub / github.com/17cupsofcoffee/nova / load_gl

Method load_gl

src/window.rs:94–104  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

92 }
93
94 pub fn load_gl(&self) -> Context {
95 unsafe {
96 Context::from_loader_function_cstr(|s| {
97 if let Some(ptr) = SDL_GL_GetProcAddress(s.as_ptr()) {
98 ptr as *mut _
99 } else {
100 std::ptr::null()
101 }
102 })
103 }
104 }
105
106 pub fn next_event(&mut self) -> Option<Event> {
107 unsafe {

Callers 1

newMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected