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

The vertex data

A static per-model (not per-instance) transform

The params which are sent through the pipeline to the shader program

Flag to indicate the model gpu data needs to be refreshed

Methods

impl Model
[src]

[src]

Create a new instance of the model

[src]