Struct gfx_device_gl::CommandBuffer [] [src]

pub struct CommandBuffer {
    // some fields omitted
}

Methods

impl CommandBuffer

fn iter<'a>(&'a self) -> Iter<'a, Command>

Trait Implementations

impl CommandBuffer<Resources> for CommandBuffer

fn new() -> CommandBuffer

fn clear(&mut self)

fn bind_program(&mut self, prog: Program)

fn bind_array_buffer(&mut self, vao: ArrayBuffer)

fn bind_attribute(&mut self, slot: AttributeSlot, buf: Buffer, format: Format)

fn bind_index(&mut self, buf: Buffer)

fn bind_frame_buffer(&mut self, access: Access, fbo: FrameBuffer, gamma: Gamma)

fn unbind_target(&mut self, access: Access, tar: Target)

fn bind_target_surface(&mut self, access: Access, tar: Target, suf: Surface)

fn bind_target_texture(&mut self, access: Access, tar: Target, tex: Texture, level: Level, layer: Option<Layer>)

fn bind_uniform_block(&mut self, prog: Program, slot: UniformBufferSlot, index: UniformBlockIndex, buf: Buffer)

fn bind_uniform(&mut self, loc: Location, value: UniformValue)

fn bind_texture(&mut self, slot: TextureSlot, kind: TextureKind, tex: Texture, sampler: Option<(Sampler, SamplerInfo)>)

fn set_draw_color_buffers(&mut self, num: usize)

fn set_primitive(&mut self, prim: Primitive)

fn set_viewport(&mut self, view: Rect)

fn set_multi_sample(&mut self, ms: Option<MultiSample>)

fn set_scissor(&mut self, rect: Option<Rect>)

fn set_depth_stencil(&mut self, depth: Option<Depth>, stencil: Option<Stencil>, cull: CullFace)

fn set_blend(&mut self, blend: Option<Blend>)

fn set_color_mask(&mut self, mask: ColorMask)

fn update_buffer(&mut self, buf: Buffer, data: DataPointer, offset_bytes: usize)

fn update_texture(&mut self, kind: TextureKind, tex: Texture, info: ImageInfo, data: DataPointer)

fn call_clear(&mut self, data: ClearData, mask: Mask)

fn call_draw(&mut self, ptype: PrimitiveType, start: VertexCount, count: VertexCount, instances: InstanceOption)

fn call_draw_indexed(&mut self, ptype: PrimitiveType, itype: IndexType, start: VertexCount, count: VertexCount, base: VertexCount, instances: InstanceOption)

fn call_blit(&mut self, s_rect: Rect, d_rect: Rect, mirror: Mirror, mask: Mask)