diff options
author | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-11-04 11:27:50 +0100 |
---|---|---|
committer | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-11-09 08:46:52 +0100 |
commit | 37262fb2288c38553cc8c8f36e59782273c83e7d (patch) | |
tree | 8107afeac457b2ffcc2f839df407f5857a2cf37c /src/window.rs | |
parent | 439d25168e0145bb563c2675ce490c521448f4ba (diff) | |
download | glutin-37262fb2288c38553cc8c8f36e59782273c83e7d.tar.gz glutin-37262fb2288c38553cc8c8f36e59782273c83e7d.zip |
Remove public exports of gl_common and libc
Diffstat (limited to 'src/window.rs')
-rw-r--r-- | src/window.rs | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/window.rs b/src/window.rs index 7a87806..86322bd 100644 --- a/src/window.rs +++ b/src/window.rs @@ -18,9 +18,7 @@ use Window; use WindowAttributes; use native_monitor::NativeMonitorId; -use gl_common; use libc; - use platform; /// Object that allows you to build windows. @@ -397,8 +395,8 @@ impl Window { /// /// Contrary to `wglGetProcAddress`, all available OpenGL functions return an address. #[inline] - pub fn get_proc_address(&self, addr: &str) -> *const libc::c_void { - self.window.get_proc_address(addr) as *const libc::c_void + pub fn get_proc_address(&self, addr: &str) -> *const () { + self.window.get_proc_address(addr) } /// Swaps the buffers in case of double or triple buffering. @@ -492,13 +490,6 @@ impl Window { } } -impl gl_common::GlFunctionsSource for Window { - #[inline] - fn get_proc_addr(&self, addr: &str) -> *const libc::c_void { - self.get_proc_address(addr) - } -} - impl GlContext for Window { #[inline] unsafe fn make_current(&self) -> Result<(), ContextError> { @@ -511,7 +502,7 @@ impl GlContext for Window { } #[inline] - fn get_proc_address(&self, addr: &str) -> *const libc::c_void { + fn get_proc_address(&self, addr: &str) -> *const () { self.get_proc_address(addr) } |