Struct rin::scene::renderer::geometry::DebugNormals [−][src]
Methods from Deref<Target = SimpleVao<Vertex3D>>
pub fn id(&self) -> u32
[src]
GL id
pub fn range<R>(&self, range: R, mode: u32) -> Range<'_> where
R: InputRange,
[src]
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]
&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]
&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]
&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]
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]
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]
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]
&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]
Reference to the internal buffer
pub fn buffer_mut(&mut self) -> &mut Buffer<T>
[src]
Mutable reference to the internal buffer
pub fn load<'a, D>(&mut self, data: D, usage: u32) where
D: Into<Data<'a, T>>,
[src]
D: Into<Data<'a, T>>,
Load data into the internal buffer and indices (re)allocating them
pub fn load_vertices<V>(&mut self, data: V, usage: u32) where
V: AsRef<[T]>,
[src]
V: AsRef<[T]>,
Load vertices into the internal buffer (re)allocating it
pub fn load_indices(&mut self, indices: &[u32], usage: u32) -> Result<(), Error>
[src]
Load indices into the internal buffer (re)allocating it
pub fn update_vertices<V>(&mut self, data: V) where
V: AsRef<[T]>,
[src]
V: 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]
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]
Enable an attribute by name
pub fn disable(&mut self, attr_name: &str) -> Result<(), Error>
[src]
Disable an attribute by name
pub fn enable_indices(&mut self)
[src]
Enable the indices in the VAO
pub fn disable_indices(&mut self)
[src]
Disable the indices in the VAO
pub fn len(&self) -> usize
[src]
Returns the len of the internal vertex buffer
pub fn len_indices(&self) -> usize
[src]
Returns the len of the internal index buffer
pub fn is_empty(&self) -> bool
[src]
pub fn mode(&self) -> u32
[src]
Returns the draw mode
pub fn capacity(&self) -> usize
[src]
Returns the capacity of the internal vertex buffer
pub fn capacity_indices(&self) -> usize
[src]
Returns the capacity of the internal index buffer
pub fn set_mode(&mut self, mode: u32)
[src]
Change the draw mode
Trait Implementations
impl Component for DebugNormals
[src]
impl Component for DebugNormals
[src]type Storage = KeyedDenseVec<usize, DebugNormals>
type MutStorageCacheGuard = ()
pub fn type_name() -> &'static str
[src]
pub fn is_reference() -> bool
[src]
pub fn id() -> TypeId
[src]
pub fn references_other(
) -> Option<Box<dyn Fn(&Storages, &Entity) + 'static, Global>>
[src]
) -> Option<Box<dyn Fn(&Storages, &Entity) + 'static, Global>>
impl<'a> DebugParameter for DebugNormals
[src]
impl<'a> DebugParameter for DebugNormals
[src]pub fn debug<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
impl Deref for DebugNormals
[src]
impl Deref for DebugNormals
[src]Auto Trait Implementations
impl !RefUnwindSafe for DebugNormals
impl !Send for DebugNormals
impl !Sync for DebugNormals
impl Unpin for DebugNormals
impl !UnwindSafe for DebugNormals
Blanket Implementations
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<C> ComponentThreadLocal for C where
C: Component,
[src]
C: Component,