[][src]Struct mallumo_gls::renderer::Renderer

pub struct Renderer { /* fields omitted */ }

Methods

impl Renderer[src]

pub fn new(context: &Context) -> Result<Renderer, Error>[src]

pub fn bind_default_framebuffer(&mut self)[src]

pub fn bind_framebuffer(&mut self, framebuffer: &GeneralFramebuffer)[src]

pub fn clear_default_framebuffer(&mut self, buffers: ClearBuffers)[src]

pub fn clear_framebuffer(
    &mut self,
    framebuffer: &GeneralFramebuffer,
    buffers: ClearBuffers
)
[src]

pub fn unbind_all(&mut self) -> Result<(), Error>[src]

pub fn draw(&mut self, draw_command: &DrawCommand) -> Result<(), Error>[src]

pub fn memory_barrier(&mut self, barriers: MemoryBarriers)[src]

pub fn dispatch_compute(
    &mut self,
    buffers: &[BufferObjectTargetLocation],
    program: &ComputeProgram,
    command: DispatchCommand
) -> Result<(), Error>
[src]

pub fn dispatch_compute_indirect<T: Buffer>(
    &mut self,
    buffers: &[BufferObjectTargetLocation],
    program: &ComputeProgram,
    command_buffer: &T,
    command_offset: usize
) -> Result<(), Error>
[src]

pub fn get_default_framebuffer(&self) -> &DefaultFramebuffer[src]

pub fn get_mut_default_framebuffer(&mut self) -> &mut DefaultFramebuffer[src]

pub fn get_state(&self) -> FramebufferState[src]

pub fn set_state(&mut self, state: FramebufferState)[src]

pub fn set_viewport(&mut self, viewport: Viewport)[src]

pub fn set_enable(&mut self, option: EnableOption)[src]

pub fn set_disable(&mut self, option: EnableOption)[src]

pub fn set_stencil_test(&mut self, face: Face, stencil_test: StencilTest)[src]

pub fn set_depth_test(&mut self, depth_test: DepthTest)[src]

pub fn set_depth_mask(&mut self, depth_mask: DepthMask)[src]

pub fn set_depth_range(&mut self, depth_range: DepthRange)[src]

pub fn set_logic_operation(&mut self, logic_operation: LogicOperation)[src]

pub fn set_blending_equation(
    &mut self,
    blending_equation_rgb: BlendingEquation,
    blending_equation_alpha: BlendingEquation
)
[src]

pub fn set_linear_blending_factors(
    &mut self,
    source_rgb: LinearBlendingFactor,
    destination_rgb: LinearBlendingFactor,
    source_alpha: LinearBlendingFactor,
    destination_alpha: LinearBlendingFactor
)
[src]

pub fn set_face_orientation(&mut self, face_orientation: FaceOrientation)[src]

pub fn set_cull_face(&mut self, cull_face: Face)[src]

pub fn set_clear_color(&mut self, clear_color: ClearColor)[src]

pub fn set_color_mask(&mut self, color_mask: [bool; 4])[src]

Trait Implementations

impl Drop for Renderer[src]

Auto Trait Implementations

impl Send for Renderer

impl Sync for Renderer

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.