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

Method size

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

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected