Struct gfx_device_gl::Device [] [src]

pub struct Device {
    // some fields omitted
}

An OpenGL device with GLSL shaders.

Methods

impl Device

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

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

fn get_info<'a>(&'a self) -> &'a Info

Get the OpenGL-specific driver information

Trait Implementations

impl Device for Device

type Resources = Resources

type CommandBuffer = CommandBuffer

fn get_capabilities<'a>(&'a self) -> &'a Capabilities

fn reset_state(&mut self)

fn submit(&mut self, (cb, db, handles): SubmitInfo<Device>)

fn after_frame(&mut self)