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§

source

type Facade: Facade

The object that this DisplayBuild builds.

source

type Err

The type of error that initialization can return.

Required Methods§

source

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.

source

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.

source

fn rebuild_glium(self, _: &Self::Facade) -> Result<(), Self::Err>

Changes the settings of an existing facade.

Provided Methods§

source

fn build_glium(self) -> Result<Self::Facade, Self::Err>where Self: Sized,

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.

source

unsafe fn build_glium_unchecked(self) -> Result<Self::Facade, Self::Err>where Self: Sized,

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.

Implementations on Foreign Types§

source§

impl<'a> DisplayBuild for HeadlessRendererBuilder<'a>

source§

impl DisplayBuild for WindowBuilder<'static>

Implementors§