[−][src]Struct miniquad::graphics::Context
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_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]
&self,
color: Option<(f32, f32, f32, f32)>,
depth: Option<f32>,
stencil: Option<i32>
)
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]
&mut self,
pass: impl Into<Option<RenderPass>>,
action: PassAction
)
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,