[−][src]Struct quad_gl::QuadGl
Methods
impl QuadGl
[src]
pub fn new(ctx: &mut Context) -> QuadGl
[src]
pub fn reset(&mut self)
[src]
Reset internal state to known default
pub fn draw(&mut self, ctx: &mut Context)
[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 geometry(
&mut self,
vertices: &[impl Into<VertexInterop> + Copy],
indices: &[u16]
)
[src]
&mut self,
vertices: &[impl Into<VertexInterop> + Copy],
indices: &[u16]
)
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,
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>,