[][src]Struct quad_gl::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,
    vertex_shader: &str,
    fragment_shader: &str,
    params: PipelineParams,
    uniforms: Vec<(String, UniformType)>
) -> Result<GlPipeline, ShaderError>
[src]

pub fn clear_draw_calls(&mut self)[src]

Reset only draw calls state

pub fn reset(&mut self)[src]

Reset internal state to known default

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

pub fn get_projection_matrix(&self) -> Mat4[src]

pub fn get_active_render_pass(&self) -> Option<RenderPass>[src]

pub fn render_pass(&mut self, render_pass: Option<RenderPass>)[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<VertexInterop> + Copy],
    indices: &[u16]
)
[src]

pub fn delete_pipeline(&mut self, pipeline: GlPipeline)[src]

pub fn set_uniform<T>(&mut self, pipeline: GlPipeline, name: &str, uniform: T)[src]

Auto Trait Implementations

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.