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

Method present

src/window.rs:120–129  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

118 }
119
120 pub fn present(&mut self) {
121 unsafe {
122 SDL_GL_SwapWindow(self.window);
123
124 if !self.visible {
125 SDL_ShowWindow(self.window);
126 self.visible = true;
127 }
128 }
129 }
130
131 pub fn set_title(&mut self, title: &str) {
132 let c_title = CString::new(title).unwrap();

Callers 1

runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected