Struct glitter::vertex_data::VertexAttributeType
[−]
[src]
pub struct VertexAttributeType { pub data: DataType, pub components: i8, pub normalize: bool, }
Used to specify type of a vertex attribute. The size of the vertex
attribute is size_of(data) * components
.
Fields
data: DataType
The type of data that makes up this vertex attribute.
components: i8
The number of data
components that make up this vertex attribute.
normalize: bool
If the data
type is fixed-point data, indicates if the data
should be normalized when being accessed. true
indicates
that the vertex attribute should be normalized when being
accessed.
Trait Implementations
impl Clone for VertexAttributeType
[src]
fn clone(&self) -> VertexAttributeType
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more