[][src]Struct miniquad::graphics::Context

pub struct Context { /* fields omitted */ }

Methods

impl Context[src]

pub fn new() -> Context[src]

pub fn screen_size(&self) -> (f32, f32)[src]

pub fn apply_pipeline(&mut self, pipeline: &Pipeline)[src]

pub fn apply_scissor_rect(&mut self, x: i32, y: i32, w: i32, h: i32)[src]

pub fn apply_bindings(&mut self, bindings: &Bindings)[src]

pub fn apply_uniforms<U>(&mut self, uniforms: &U)[src]

pub fn clear(
    &self,
    color: Option<(f32, f32, f32, f32)>,
    depth: Option<f32>,
    stencil: Option<i32>
)
[src]

pub fn begin_default_pass(&mut self, action: PassAction)[src]

start rendering to the default frame buffer

pub fn begin_pass(
    &mut self,
    pass: impl Into<Option<RenderPass>>,
    action: PassAction
)
[src]

start rendering to an offscreen framebuffer

pub fn end_render_pass(&mut self)[src]

pub fn commit_frame(&self)[src]

pub fn draw(&self, base_element: i32, num_elements: i32, num_instances: i32)[src]

Auto Trait Implementations

impl RefUnwindSafe for Context

impl Send for Context

impl Sync for Context

impl Unpin for Context

impl UnwindSafe for Context

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.