Struct sdl2_sys::SDL_Vertex
source · #[repr(C)]pub struct SDL_Vertex {
pub position: SDL_FPoint,
pub color: SDL_Color,
pub tex_coord: SDL_FPoint,
}
Expand description
Vertex structure
Fields§
§position: SDL_FPoint
< Vertex position, in SDL_Renderer coordinates
color: SDL_Color
< Vertex color
tex_coord: SDL_FPoint
< Normalized texture coordinates, if needed
Trait Implementations§
source§impl Clone for SDL_Vertex
impl Clone for SDL_Vertex
source§fn clone(&self) -> SDL_Vertex
fn clone(&self) -> SDL_Vertex
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for SDL_Vertex
Auto Trait Implementations§
impl Freeze for SDL_Vertex
impl RefUnwindSafe for SDL_Vertex
impl Send for SDL_Vertex
impl Sync for SDL_Vertex
impl Unpin for SDL_Vertex
impl UnwindSafe for SDL_Vertex
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more