[][src]Struct gfx_window_sdl::Device

pub struct Device { /* fields omitted */ }

An OpenGL device with GLSL shaders.


impl Device[src]

pub unsafe fn with_gl<F>(&mut self, fun: F) where
    F: FnMut(&Gl), 

Access the OpenGL directly via a closure. OpenGL types and enumerations can be found in the gl crate.

pub fn get_info(&'a self) -> &'a Info[src]

Get the OpenGL-specific driver information

Trait Implementations

impl Device for Device[src]

type Resources = Resources

Associated Resources type.

type CommandBuffer = CommandBuffer

Associated CommandBuffer type. Every Device type can only work with one CommandBuffer type. Read more

Auto Trait Implementations

impl !Send for Device

impl !Sync for Device

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> BorrowMut for T where
    T: ?Sized

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.