Struct crayon::scene::sprite_renderer::SpriteVertex
[−]
[src]
#[repr(C)]pub struct SpriteVertex { /* fields omitted */ }
Methods
impl SpriteVertex
[src]
fn new(
position: [f32; 3],
diffuse: [u8; 4],
additive: [u8; 4],
texcoord: [f32; 2]
) -> Self
[src]
position: [f32; 3],
diffuse: [u8; 4],
additive: [u8; 4],
texcoord: [f32; 2]
) -> Self
fn layout() -> VertexLayout
[src]
fn as_bytes(values: &[Self]) -> &[u8]
[src]
Trait Implementations
impl Debug for SpriteVertex
[src]
impl Copy for SpriteVertex
[src]
impl Clone for SpriteVertex
[src]
fn clone(&self) -> SpriteVertex
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more