Type Alias freya_engine::prelude::Interface
pub type Interface = RCHandle<GrGLInterface>;
Aliased Type§
struct Interface(/* private fields */);
Implementations§
§impl RCHandle<GrGLInterface>
impl RCHandle<GrGLInterface>
pub fn new_native() -> Option<RCHandle<GrGLInterface>>
pub fn new_load_with<F>(load_fn: F) -> Option<RCHandle<GrGLInterface>>where F: FnMut(&str) -> *const c_void,
pub fn new_load_with_cstr<F>(load_fn: F) -> Option<RCHandle<GrGLInterface>>where F: FnMut(&CStr) -> *const c_void,
pub fn validate(&self) -> bool
pub fn extensions(&self) -> &Handle<GrGLExtensions>
pub fn extensions_mut(&mut self) -> &mut Handle<GrGLExtensions>
pub fn has_extension(&self, extension: impl AsRef<str>) -> bool
Trait Implementations§
§impl<H> ConditionallySend for RCHandle<H>where
H: NativeRefCountedBase,
impl<H> ConditionallySend for RCHandle<H>where H: NativeRefCountedBase,
RCHandle<H>
is conditionally Send and can be sent to
another thread when its reference count is 1.
§impl<N> Flattenable for RCHandle<N>where
N: NativeFlattenable + NativeRefCountedBase,
impl<N> Flattenable for RCHandle<N>where N: NativeFlattenable + NativeRefCountedBase,
§impl<N> From<&RCHandle<N>> for RCHandle<N>where
N: NativeRefCounted,
impl<N> From<&RCHandle<N>> for RCHandle<N>where N: NativeRefCounted,
A reference counted handle is cheap to clone, so we do support a conversion from a reference to a ref counter to an owned handle.