#[repr(C)]pub struct SDL_Vertex {
pub position: SDL_FPoint,
pub color: SDL_FColor,
pub tex_coord: SDL_FPoint,
}Expand description
Fields§
§position: SDL_FPointVertex position, in SDL_Renderer coordinates
color: SDL_FColorVertex color
tex_coord: SDL_FPointNormalized 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 duplicate 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 moreSource§impl Debug for SDL_Vertex
impl Debug for SDL_Vertex
Source§impl Default for SDL_Vertex
impl Default for SDL_Vertex
Source§fn default() -> SDL_Vertex
fn default() -> SDL_Vertex
Returns the “default value” for a type. Read more
Source§impl PartialEq for SDL_Vertex
impl PartialEq for SDL_Vertex
impl Copy for SDL_Vertex
impl StructuralPartialEq 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