[−][src]Struct quad_gl::QuadGl
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]
&mut self,
ctx: &mut Context,
vertex_shader: &str,
fragment_shader: &str,
params: PipelineParams,
uniforms: Vec<(String, UniformType)>
) -> Result<GlPipeline, ShaderError>
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]
&mut self,
vertices: &[impl Into<VertexInterop> + Copy],
indices: &[u16]
)
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
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]
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,
pub 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.
pub 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>,