pub trait GLContextExt: 'static {
Show 21 methods // Required methods fn allowed_apis(&self) -> GLAPI; fn api(&self) -> GLAPI; fn is_debug_enabled(&self) -> bool; fn display(&self) -> Option<Display>; fn is_forward_compatible(&self) -> bool; fn required_version(&self) -> (i32, i32); fn shared_context(&self) -> Option<GLContext>; fn surface(&self) -> Option<Surface>; fn uses_es(&self) -> bool; fn version(&self) -> (i32, i32); fn is_legacy(&self) -> bool; fn is_shared(&self, other: &impl IsA<GLContext>) -> bool; fn make_current(&self); fn realize(&self) -> Result<(), Error>; fn set_allowed_apis(&self, apis: GLAPI); fn set_debug_enabled(&self, enabled: bool); fn set_forward_compatible(&self, compatible: bool); fn set_required_version(&self, major: i32, minor: i32); fn set_use_es(&self, use_es: i32); fn connect_allowed_apis_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_api_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId;
}

Required Methods§

source

fn allowed_apis(&self) -> GLAPI

Available on crate feature v4_6 only.
source

fn api(&self) -> GLAPI

Available on crate feature v4_6 only.
source

fn is_debug_enabled(&self) -> bool

source

fn display(&self) -> Option<Display>

source

fn is_forward_compatible(&self) -> bool

source

fn required_version(&self) -> (i32, i32)

source

fn shared_context(&self) -> Option<GLContext>

👎Deprecated: Since 4.4
source

fn surface(&self) -> Option<Surface>

source

fn uses_es(&self) -> bool

source

fn version(&self) -> (i32, i32)

source

fn is_legacy(&self) -> bool

source

fn is_shared(&self, other: &impl IsA<GLContext>) -> bool

Available on crate feature v4_4 only.
source

fn make_current(&self)

source

fn realize(&self) -> Result<(), Error>

source

fn set_allowed_apis(&self, apis: GLAPI)

Available on crate feature v4_6 only.
source

fn set_debug_enabled(&self, enabled: bool)

source

fn set_forward_compatible(&self, compatible: bool)

source

fn set_required_version(&self, major: i32, minor: i32)

source

fn set_use_es(&self, use_es: i32)

source

fn connect_allowed_apis_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

Available on crate feature v4_6 only.
source

fn connect_api_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Available on crate feature v4_6 only.

Implementors§