Struct valor::Model
[−]
[src]
pub struct Model { pub vertices: Vec<Vertex>, pub transform: Matrix4<f32>, pub gpu_data: GpuData, pub is_dirty: bool, }
Data structure with vertex data and underlying GPU representation, shared among all instances.
Fields
vertices: Vec<Vertex>
The vertex data
transform: Matrix4<f32>
A static per-model (not per-instance) transform
gpu_data: GpuData
The params which are sent through the pipeline to the shader program
is_dirty: bool
Flag to indicate the model gpu data needs to be refreshed