Add is_current function

This commit is contained in:
Pierre Krieger 2015-03-04 07:38:55 +01:00
parent 41e3328ca7
commit 689ace8b25
9 changed files with 47 additions and 0 deletions

View file

@ -329,6 +329,12 @@ impl Window {
self.window.make_current()
}
/// Returns true if this context is the current one in this thread.
#[inline]
pub fn is_current(&self) -> bool {
self.window.is_current()
}
/// Returns the address of an OpenGL function.
///
/// Contrary to `wglGetProcAddress`, all available OpenGL functions return an address.