FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    GlVersion

    struct · ferroui-opengl · v0.5.0

    struct GlVersion
    

    The version of the OpenGL API of a context.

    View source

    Members

    new

    const fn new(type_: GlProfileType, major: i32, minor: i32) -> Self
    

    A version of the core profile.

    Source

    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.

    Source

    type_

    const fn type_(self: &Self) -> GlProfileType
    

    The flavour of the API.

    Source

    major

    const fn major(self: &Self) -> i32
    

    The major version.

    Source

    minor

    const fn minor(self: &Self) -> i32
    

    The minor version.

    Source

    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.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ResourceKeyObject
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.