(&self)
| 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 { |