Enum glium::draw_parameters::ProvokingVertex
source · pub enum ProvokingVertex {
LastVertex,
FirstVertex,
}
Expand description
The vertex to use for flat shading.
Variants§
LastVertex
Use the last vertex of each primitive.
FirstVertex
Use the first vertex of each primitive.
Note that for triangle fans, this is not the first vertex but the second vertex.
Trait Implementations§
source§impl Clone for ProvokingVertex
impl Clone for ProvokingVertex
source§fn clone(&self) -> ProvokingVertex
fn clone(&self) -> ProvokingVertex
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 moresource§impl Debug for ProvokingVertex
impl Debug for ProvokingVertex
source§impl PartialEq<ProvokingVertex> for ProvokingVertex
impl PartialEq<ProvokingVertex> for ProvokingVertex
source§fn eq(&self, other: &ProvokingVertex) -> bool
fn eq(&self, other: &ProvokingVertex) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ProvokingVertex
impl Eq for ProvokingVertex
impl StructuralEq for ProvokingVertex
impl StructuralPartialEq for ProvokingVertex
Auto Trait Implementations§
impl RefUnwindSafe for ProvokingVertex
impl Send for ProvokingVertex
impl Sync for ProvokingVertex
impl Unpin for ProvokingVertex
impl UnwindSafe for ProvokingVertex
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
source§impl<T> Content for Twhere
T: Copy,
impl<T> Content for Twhere T: Copy,
source§unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>where
F: FnOnce(&mut T) -> Result<(), E>,
unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>where F: FnOnce(&mut T) -> Result<(), E>,
Prepares an output buffer, then turns this buffer into an
Owned
.
User-provided closure F
must only write to and not read from &mut Self
.source§fn get_elements_size() -> usize
fn get_elements_size() -> usize
Returns the size of each element.
source§fn to_void_ptr(&self) -> *const ()
fn to_void_ptr(&self) -> *const ()
Produces a pointer to the data.
source§fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
source§fn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.