pub trait IPlatformGraphicsContext: IOptionalFeatureProvider {
// Required methods
fn is_lost(&self) -> bool;
fn ensure_current(&self) -> Rc<dyn IDisposable>;
fn dispose(&self);
fn as_any(&self) -> &dyn Any;
}Expand description
A context of a platform GPU API.
Required Methods§
Sourcefn ensure_current(&self) -> Rc<dyn IDisposable>
fn ensure_current(&self) -> Rc<dyn IDisposable>
Makes the context current. Disposing the result restores the previously current context.
Trait Implementations§
Source§impl OwnedDisposableValue for dyn IPlatformGraphicsContext
impl OwnedDisposableValue for dyn IPlatformGraphicsContext
fn dispose_owned(&self)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".