Add is_current function
This commit is contained in:
parent
41e3328ca7
commit
689ace8b25
9 changed files with 47 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue