[−][src]Struct mutiny::renderer::geometry::DebugNormals
Methods from Deref<Target = SimpleVao<Vertex3D>>
pub fn id(&self) -> u32
[src]
pub fn id(&self) -> u32
GL id
pub fn range<R>(&self, range: R, mode: u32) -> Range where
R: InputRange,
[src]
pub fn range<R>(&self, range: R, mode: u32) -> Range where
R: InputRange,
Returns a Range
which specifies a range of vertices and a drawing mode
Used to draw a portion of a Vao
through a Context
pub fn range_base_vertex<R>(
&self,
range: R,
base_vertex: i32,
mode: u32
) -> Range where
R: InputRange,
[src]
pub fn range_base_vertex<R>(
&self,
range: R,
base_vertex: i32,
mode: u32
) -> Range where
R: InputRange,
Returns a Range
which specifies a range of vertices and a drawing mode
Used to draw a portion of a VAO
through a Context
base_vertex adds an offset to the indices See glDrawElementsBaseVertex
pub fn range_base_instance<R>(
&self,
range: R,
base_instance: u32,
mode: u32
) -> Range where
R: InputRange,
[src]
pub fn range_base_instance<R>(
&self,
range: R,
base_instance: u32,
mode: u32
) -> Range where
R: InputRange,
Returns a Range
which specifies a range of vertices and a drawing mode
Used to draw a portion of a VAO
through a Context
base_instance adds an offset to the instanced attributes index See glDrawArraysInstancedBaseInstance
pub fn range_base_vertex_base_instance<R>(
&self,
range: R,
base_vertex: i32,
base_instance: u32,
mode: u32
) -> Range where
R: InputRange,
[src]
pub fn range_base_vertex_base_instance<R>(
&self,
range: R,
base_vertex: i32,
base_instance: u32,
mode: u32
) -> Range where
R: InputRange,
Returns a Range
which specifies a range of vertices and a drawing mode
Used to draw a portion of a VAO
through a Context
- base_vertex adds an offset to the indices
- base_instance adds an offset to the instanced attributes index
See glDrawElementsBaseVertexBaseInstance
pub fn full_range(&self) -> Range
[src]
pub fn full_range(&self) -> Range
Returns the full range of the SimpleVao
vertices
Used to draw the full SimpleVao
through a Context
pub fn full_range_base_vertex(&self, base_vertex: i32) -> Range
[src]
pub fn full_range_base_vertex(&self, base_vertex: i32) -> Range
Returns the full range of the SimpleVao
vertices
Used to draw the full SimpleVao
through a Context
base_vertex adds an offset to the indices
See glDrawElementsBaseVertex
pub fn full_range_base_instance(&self, base_instance: u32) -> Range
[src]
pub fn full_range_base_instance(&self, base_instance: u32) -> Range
Returns the full range of the SimpleVao
vertices
Used to draw the full SimpleVao
through a Context
base_vertex adds an offset to the indices
See glDrawArraysInstancedBaseInstance
pub fn full_range_base_vertex_base_instance(
&self,
base_vertex: i32,
base_instance: u32
) -> Range
[src]
pub fn full_range_base_vertex_base_instance(
&self,
base_vertex: i32,
base_instance: u32
) -> Range
Returns the full range of the SimpleVao
vertices
Used to draw the full SimpleVao
through a Context
- base_vertex adds an offset to the indices
- base_instance adds an offset to the instanced attributes index
See glDrawElementsBaseVertexBaseInstance
pub fn buffer(&self) -> &Buffer<T>
[src]
pub fn buffer(&self) -> &Buffer<T>
Reference to the internal buffer
pub fn buffer_mut(&mut self) -> &mut Buffer<T>
[src]
pub fn buffer_mut(&mut self) -> &mut Buffer<T>
Mutable reference to the internal buffer
pub fn load<'a, D>(&mut self, data: D, usage: u32) where
D: Into<Data<'a, T>>,
[src]
pub fn load<'a, D>(&mut self, data: D, usage: u32) where
D: Into<Data<'a, T>>,
Load data into the internal buffer and indices (re)allocating them
pub fn load_vertices(&mut self, data: &dyn AsRef<[T]>, usage: u32)
[src]
pub fn load_vertices(&mut self, data: &dyn AsRef<[T]>, usage: u32)
Load vertices into the internal buffer (re)allocating it
pub fn load_indices(&mut self, indices: &[u32], usage: u32) -> Result<(), Error>
[src]
pub fn load_indices(&mut self, indices: &[u32], usage: u32) -> Result<(), Error>
Load indices into the internal buffer (re)allocating it
pub fn update_vertices(&mut self, data: &dyn AsRef<[T]>)
[src]
pub fn update_vertices(&mut self, data: &dyn AsRef<[T]>)
Update the vertices in the internal buffer
Will panic if the capacity of the buffer is not enough to hold the passed data
pub fn update_indices(&mut self, indices: &[u32])
[src]
pub fn update_indices(&mut self, indices: &[u32])
Update the indices in the internal buffer
Will panic if the capacity of the buffer is not enough to hold the passed data
pub fn enable(&mut self, attr_name: &str) -> Result<(), Error>
[src]
pub fn enable(&mut self, attr_name: &str) -> Result<(), Error>
Enable an attribute by name
pub fn disable(&mut self, attr_name: &str) -> Result<(), Error>
[src]
pub fn disable(&mut self, attr_name: &str) -> Result<(), Error>
Disable an attribute by name
pub fn enable_indices(&mut self)
[src]
pub fn enable_indices(&mut self)
Enable the indices in the VAO
pub fn disable_indices(&mut self)
[src]
pub fn disable_indices(&mut self)
Disable the indices in the VAO
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
Returns the len of the internal vertex buffer
pub fn len_indices(&self) -> usize
[src]
pub fn len_indices(&self) -> usize
Returns the len of the internal index buffer
pub fn is_empty(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
pub fn mode(&self) -> u32
[src]
pub fn mode(&self) -> u32
Returns the draw mode
pub fn capacity(&self) -> usize
[src]
pub fn capacity(&self) -> usize
Returns the capacity of the internal vertex buffer
pub fn capacity_indices(&self) -> usize
[src]
pub fn capacity_indices(&self) -> usize
Returns the capacity of the internal index buffer
pub fn set_mode(&mut self, mode: u32)
[src]
pub fn set_mode(&mut self, mode: u32)
Change the draw mode
Trait Implementations
impl Debug for DebugNormals
[src]
impl Debug for DebugNormals
impl Deref for DebugNormals
[src]
impl Deref for DebugNormals
type Target = SimpleVao<Vertex3D>
The resulting type after dereferencing.
fn deref(&self) -> &SimpleVao<Vertex3D>
[src]
fn deref(&self) -> &SimpleVao<Vertex3D>
impl DerefMut for DebugNormals
[src]
impl DerefMut for DebugNormals
impl Component for DebugNormals
[src]
impl Component for DebugNormals
impl<'a> DebugParameter for DebugNormals
[src]
impl<'a> DebugParameter for DebugNormals
fn debug<S: Serializer>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
[src]
fn debug<S: Serializer>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
Auto Trait Implementations
impl !Send for DebugNormals
impl !Send for DebugNormals
impl !Sync for DebugNormals
impl !Sync for DebugNormals
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<C> ComponentThreadLocal for C where
C: Component,
[src]
impl<C> ComponentThreadLocal for C where
C: Component,
impl<T> Any for T where
T: Any,
[src]
impl<T> Any for T where
T: Any,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T> SetParameter for T
[src]
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
[src]
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<T> Same for T
[src]
impl<T> Same for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
[src]
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
[src]
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
[src]
fn from_subset(element: &SS) -> SP
impl<V> IntoVec for V
[src]
impl<V> IntoVec for V
impl<V> IntoPnt for V
[src]
impl<V> IntoPnt for V
impl<B, P> IntoControlBuilder for P where
B: BuilderFromProperty<P>,
[src]
impl<B, P> IntoControlBuilder for P where
B: BuilderFromProperty<P>,
fn into_builder<S>(self, name: &str, events: S) -> B where
S: Stream<'static, Event>,
[src]
fn into_builder<S>(self, name: &str, events: S) -> B where
S: Stream<'static, Event>,
impl<T, U> IntoDuration for T where
U: FromDuration<T>,
[src]
impl<T, U> IntoDuration for T where
U: FromDuration<T>,
type Error = <U as FromDuration<T>>::Error
fn into_duration(self) -> Result<U, <U as FromDuration<T>>::Error>
[src]
fn into_duration(self) -> Result<U, <U as FromDuration<T>>::Error>