GlVersion
struct · ferroui-opengl · v0.5.0
struct GlVersion
The version of the OpenGL API of a context.
Members
new
const fn new(type_: GlProfileType, major: i32, minor: i32) -> Self
A version of the core profile.
with_compatibility_profile
const fn with_compatibility_profile(type_: GlProfileType, major: i32, minor: i32, is_compatibility_profile: bool) -> Self
A version with an explicit choice of the compatibility profile.
type_
const fn type_(self: &Self) -> GlProfileType
The flavour of the API.
major
const fn major(self: &Self) -> i32
The major version.
minor
const fn minor(self: &Self) -> i32
The minor version.
is_compatibility_profile
const fn is_compatibility_profile(self: &Self) -> bool
Whether the compatibility profile is requested. Only makes sense if the type is OpenGL and the version is at least 3.2.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedResourceKeyObjectPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherCloneCopyDebugStructuralPartialEqPartialEqEqHash
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.