FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    GlContextInfo

    struct · ferroui-opengl · v0.5.0

    struct GlContextInfo
    

    What a context is: its version and its extensions.

    View source

    Members

    new

    fn new(version: GlVersion, extensions: HashSet<String>) -> Self
    

    Describes a context.

    Source

    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.

    Source

    version

    fn version(self: &Self) -> GlVersion
    

    The version of the API.

    Source

    extensions

    fn extensions(self: &Self) -> &HashSet<String>
    

    The names of the supported extensions.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither

    Availability

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