[][src]Struct macroquad::QuadGl

pub struct QuadGl { /* fields omitted */ }

Implementations

impl QuadGl[src]

pub fn new(ctx: &mut Context) -> QuadGl[src]

pub fn make_pipeline(
    &mut self,
    ctx: &mut Context,
    fragment_shader: &str,
    vertex_shader: &str,
    params: PipelineParams
) -> Result<GlPipeline, ShaderError>
[src]

pub fn reset(&mut self)[src]

Reset internal state to known default

pub fn draw(&mut self, ctx: &mut Context)[src]

pub fn depth_test(&mut self, enable: bool)[src]

pub fn texture(&mut self, texture: Option<Texture2D>)[src]

pub fn scissor(&mut self, clip: Option<(i32, i32, i32, i32)>)[src]

pub fn set_projection_matrix(&mut self, matrix: Mat4)[src]

pub fn push_model_matrix(&mut self, matrix: Mat4)[src]

pub fn pop_model_matrix(&mut self)[src]

pub fn pipeline(&mut self, pipeline: Option<GlPipeline>)[src]

pub fn draw_mode(&mut self, mode: DrawMode)[src]

pub fn geometry(
    &mut self,
    vertices: &[impl Into<([f32; 3], [f32; 2], [f32; 4])> + Copy],
    indices: &[u16]
)
[src]

Auto Trait Implementations

impl RefUnwindSafe for QuadGl

impl Send for QuadGl

impl Sync for QuadGl

impl Unpin for QuadGl

impl UnwindSafe for QuadGl

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.