(&self)
| 81 | } |
| 82 | |
| 83 | pub fn size(&self) -> (u32, u32) { |
| 84 | unsafe { |
| 85 | let mut w = 0; |
| 86 | let mut h = 0; |
| 87 | |
| 88 | SDL_GetWindowSizeInPixels(self.window, &mut w, &mut h); |
| 89 | |
| 90 | (w as u32, h as u32) |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | pub fn load_gl(&self) -> Context { |
| 95 | unsafe { |
nothing calls this directly
no outgoing calls
no test coverage detected