[−][src]Struct ggraphics::QuadData
Data we need for each quad instance. DrawParam gets turned into this, eventually. We have to be quite particular about layout since this gets fed straight to the shader.
Fields
color: [f32; 4]
Color to blend the result texture with.
src_rect: [f32; 4]
Source region on the texture to draw, coordinates range from 0 to 1
dst_rect: [f32; 4]
Destination rectangle in your render target to draw the texture on, coordinates are whatever you set in your transform and viewport.
offset: [f32; 2]
Rotation offset -- A point within your dst_rect
to rotate around,
coordinates range from 0 to 1
rotation: f32
Rotation, in radians, CCW.
Methods
impl QuadData
[src]
Trait Implementations
impl Clone for QuadData
[src]
impl Copy for QuadData
[src]
impl PartialEq<QuadData> for QuadData
[src]
impl PartialOrd<QuadData> for QuadData
[src]
fn partial_cmp(&self, other: &QuadData) -> Option<Ordering>
[src]
fn lt(&self, other: &QuadData) -> bool
[src]
fn le(&self, other: &QuadData) -> bool
[src]
fn gt(&self, other: &QuadData) -> bool
[src]
fn ge(&self, other: &QuadData) -> bool
[src]
impl Debug for QuadData
[src]
impl StructuralPartialEq for QuadData
[src]
impl Zeroable for QuadData
[src]
impl Pod for QuadData
[src]
Auto Trait Implementations
impl Send for QuadData
impl Sync for QuadData
impl Unpin for QuadData
impl UnwindSafe for QuadData
impl RefUnwindSafe for QuadData
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,