Merge pull request #66 from glennw/platform_data
Add accessor for underlying display handle on Linux.
This commit is contained in:
commit
fe8646c556
5 changed files with 24 additions and 0 deletions
|
|
@ -469,6 +469,10 @@ impl Window {
|
|||
pub fn swap_buffers(&self) {
|
||||
unsafe { ffi::glx::SwapBuffers(self.display, self.window) }
|
||||
}
|
||||
|
||||
pub fn platform_display(&self) -> *mut libc::c_void {
|
||||
self.display as *mut libc::c_void
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for Window {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue