Trait glium::DisplayBuild
source · pub trait DisplayBuild {
type Facade: Facade;
type Err;
// Required methods
fn build_glium_debug(
self,
_: DebugCallbackBehavior
) -> Result<Self::Facade, Self::Err>;
unsafe fn build_glium_unchecked_debug(
self,
_: DebugCallbackBehavior
) -> Result<Self::Facade, Self::Err>;
fn rebuild_glium(self, _: &Self::Facade) -> Result<(), Self::Err>;
// Provided methods
fn build_glium(self) -> Result<Self::Facade, Self::Err>
where Self: Sized { ... }
unsafe fn build_glium_unchecked(self) -> Result<Self::Facade, Self::Err>
where Self: Sized { ... }
}
Expand description
Objects that can build a facade object.
Required Associated Types§
Required Methods§
sourcefn build_glium_debug(
self,
_: DebugCallbackBehavior
) -> Result<Self::Facade, Self::Err>
fn build_glium_debug( self, _: DebugCallbackBehavior ) -> Result<Self::Facade, Self::Err>
Build a context and a facade to draw on it.
Performs a compatibility check to make sure that all core elements of glium are supported by the implementation.
sourceunsafe fn build_glium_unchecked_debug(
self,
_: DebugCallbackBehavior
) -> Result<Self::Facade, Self::Err>
unsafe fn build_glium_unchecked_debug( self, _: DebugCallbackBehavior ) -> Result<Self::Facade, Self::Err>
Build a context and a facade to draw on it
This function does the same as build_glium
, except that the resulting context
will assume that the current OpenGL context will never change.