pub struct Context { /* private fields */ }
Expand description
An OpenAL context.
Implementations§
Source§impl Context
impl Context
Sourcepub fn make_current(&self) -> Option<MutexGuard<'_, ()>>
pub fn make_current(&self) -> Option<MutexGuard<'_, ()>>
Locks the current context into self for the entire thread (if not possible, entire process).
pub fn is_current(&self) -> bool
pub fn vendor(&self) -> &'static str
pub fn version(&self) -> &'static str
pub fn renderer(&self) -> &'static str
pub fn extensions(&self) -> &'static str
pub fn listener(&self) -> Listener
pub fn new_buffer(&self) -> Result<Buffer, AllenError>
pub fn new_source(&self) -> Result<Source, AllenError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl !Send for Context
impl !Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more