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(&self) -> &Capabilities

fn pin_submitted_resources(&mut self, man: &Manager<Resources>)

fn submit(&mut self, cb: &mut CommandBuffer)

fn cleanup(&mut self)

impl DeviceFence<Resources> for Device

fn fenced_submit(&mut self, cb: &mut CommandBuffer, after: Option<Fence<Resources>>) -> Fence<Resources>

fn fence_wait(&mut self, fence: &Fence<Resources>)