GlContextInfo
struct · ferroui-opengl · v0.5.0
struct GlContextInfo
What a context is: its version and its extensions.
Members
new
fn new(version: GlVersion, extensions: HashSet<String>) -> Self
Describes a context.
create
unsafe fn create(version: GlVersion, get_proc_address: &GetProcAddress) -> GlContextInfo
Describes the current context, asking it for its extensions.
Safety
See GlBasicInfoInterface::new.
Panics
Panics when a required entry point cannot be resolved; see
GlContextInfo::try_create.
version
fn version(self: &Self) -> GlVersion
The version of the API.
extensions
fn extensions(self: &Self) -> &HashSet<String>
The names of the supported extensions.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.