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<N> PointerWrapper<N> for RCHandle<N>where
N: NativeRefCounted,
impl<N> PointerWrapper<N> for RCHandle<N>where N: NativeRefCounted,
§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.