[][src]Struct mutiny::renderer::geometry::DebugNormals

pub struct DebugNormals(pub SimpleVao<Vertex3D>);

Methods from Deref<Target = SimpleVao<Vertex3D>>

GL id

Returns a Range which specifies a range of vertices and a drawing mode

Used to draw a portion of a Vao through a Context

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

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

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

Returns the full range of the SimpleVao vertices

Used to draw the full SimpleVao through a Context

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

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

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

Reference to the internal buffer

Mutable reference to the internal buffer

Load data into the internal buffer and indices (re)allocating them

Load vertices into the internal buffer (re)allocating it

Load indices into the internal buffer (re)allocating it

Update the vertices in the internal buffer

Will panic if the capacity of the buffer is not enough to hold the passed data

Update the indices in the internal buffer

Will panic if the capacity of the buffer is not enough to hold the passed data

Enable an attribute by name

Disable an attribute by name

Enable the indices in the VAO

Disable the indices in the VAO

Returns the len of the internal vertex buffer

Returns the len of the internal index buffer

Returns the draw mode

Returns the capacity of the internal vertex buffer

Returns the capacity of the internal index buffer

Change the draw mode

Trait Implementations

impl Debug for DebugNormals
[src]

impl Deref for DebugNormals
[src]

The resulting type after dereferencing.

impl DerefMut for DebugNormals
[src]

impl Component for DebugNormals
[src]

impl<'a> DebugParameter for DebugNormals
[src]

Auto Trait Implementations

impl !Send for DebugNormals

impl !Sync for DebugNormals

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<C> ComponentThreadLocal for C where
    C: Component
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> SetParameter for T
[src]

Sets value as a parameter of self.

impl<T> Same for T
[src]

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]

impl<V> IntoVec for V
[src]

impl<V> IntoPnt for V
[src]

impl<B, P> IntoControlBuilder for P where
    B: BuilderFromProperty<P>, 
[src]

impl<T, U> IntoDuration for T where
    U: FromDuration<T>, 
[src]