Struct gfx_device_gl::Device[][src]

pub struct Device { /* fields omitted */ }

An OpenGL device with GLSL shaders.

Implementations

impl Device[src]

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

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

pub fn get_info<'a>(&'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 !RefUnwindSafe for Device

impl !Send for Device

impl !Sync for Device

impl Unpin for Device

impl !UnwindSafe for Device

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.