#[repr(transparent)]pub struct SDL_GPUFrontFace(pub c_int);Expand description
Specifies the vertex winding that will cause a triangle to be determined to be front-facing.
§Availability
This enum is available since SDL 3.2.0.
§See also
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
COUNTER_CLOCKWISE | SDL_GPU_FRONTFACE_COUNTER_CLOCKWISE | A triangle with counter-clockwise vertex winding will be considered front-facing. |
CLOCKWISE | SDL_GPU_FRONTFACE_CLOCKWISE | A triangle with clockwise vertex winding will be considered front-facing. |
Tuple Fields§
§0: c_intImplementations§
Source§impl SDL_GPUFrontFace
impl SDL_GPUFrontFace
Sourcepub const COUNTER_CLOCKWISE: Self
pub const COUNTER_CLOCKWISE: Self
A triangle with counter-clockwise vertex winding will be considered front-facing.
Trait Implementations§
Source§impl Clone for SDL_GPUFrontFace
impl Clone for SDL_GPUFrontFace
Source§fn clone(&self) -> SDL_GPUFrontFace
fn clone(&self) -> SDL_GPUFrontFace
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_GPUFrontFace
Available on crate feature debug-impls only.
impl Debug for SDL_GPUFrontFace
Available on crate feature
debug-impls only.Source§impl Default for SDL_GPUFrontFace
impl Default for SDL_GPUFrontFace
Source§fn default() -> SDL_GPUFrontFace
fn default() -> SDL_GPUFrontFace
Returns the “default value” for a type. Read more
Source§impl From<SDL_GPUFrontFace> for c_int
impl From<SDL_GPUFrontFace> for c_int
Source§fn from(value: SDL_GPUFrontFace) -> Self
fn from(value: SDL_GPUFrontFace) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_GPUFrontFace
Available on crate feature metadata only.
impl GroupMetadata for SDL_GPUFrontFace
Available on crate feature
metadata only.Source§const GROUP_METADATA: &'static Group
const GROUP_METADATA: &'static Group
Metadata for this group
Source§impl Hash for SDL_GPUFrontFace
impl Hash for SDL_GPUFrontFace
Source§impl Ord for SDL_GPUFrontFace
impl Ord for SDL_GPUFrontFace
Source§fn cmp(&self, other: &SDL_GPUFrontFace) -> Ordering
fn cmp(&self, other: &SDL_GPUFrontFace) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<SDL_GPUFrontFace> for c_int
impl PartialEq<SDL_GPUFrontFace> for c_int
Source§impl PartialEq<i32> for SDL_GPUFrontFace
impl PartialEq<i32> for SDL_GPUFrontFace
Source§impl PartialEq for SDL_GPUFrontFace
impl PartialEq for SDL_GPUFrontFace
Source§impl PartialOrd for SDL_GPUFrontFace
impl PartialOrd for SDL_GPUFrontFace
impl Copy for SDL_GPUFrontFace
impl Eq for SDL_GPUFrontFace
impl StructuralPartialEq for SDL_GPUFrontFace
Auto Trait Implementations§
impl Freeze for SDL_GPUFrontFace
impl RefUnwindSafe for SDL_GPUFrontFace
impl Send for SDL_GPUFrontFace
impl Sync for SDL_GPUFrontFace
impl Unpin for SDL_GPUFrontFace
impl UnwindSafe for SDL_GPUFrontFace
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