Struct adi_screen::ModelBuilder [−][src]
pub struct ModelBuilder { /* fields omitted */ }
The builder for Model
.
Methods
impl ModelBuilder
[src]
impl ModelBuilder
pub fn m(self, mat4: Transform) -> Self
[src]
pub fn m(self, mat4: Transform) -> Self
Set transformation matrix
pub fn c(self, color: [f32; 4]) -> Self
[src]
pub fn c(self, color: [f32; 4]) -> Self
Set one color for the whole model.
pub fn o(self, opacity: f32) -> Self
[src]
pub fn o(self, opacity: f32) -> Self
Set the opacity for the whole model.
pub fn g(self, vertices: &[[f32; 4]]) -> Self
[src]
pub fn g(self, vertices: &[[f32; 4]]) -> Self
Set the colors for the following faces.
pub fn t(self, vertices: &[[f32; 4]]) -> Self
[src]
pub fn t(self, vertices: &[[f32; 4]]) -> Self
Set the texture coordinates for the following faces.
pub fn v(self, vertices: &[[f32; 4]]) -> Self
[src]
pub fn v(self, vertices: &[[f32; 4]]) -> Self
Set the vertices for the following faces.
pub fn d(self) -> Self
[src]
pub fn d(self) -> Self
Set the vertices for a double-sided face (actually 2 faces)
pub fn f(self) -> Self
[src]
pub fn f(self) -> Self
Add a face to the model, this unapplies the transformation matrix.
pub fn shape(self) -> Self
[src]
pub fn shape(self) -> Self
Add a shape to the model.
pub fn finish(self, window: &mut Window) -> Model
[src]
pub fn finish(self, window: &mut Window) -> Model
Create the model
Auto Trait Implementations
impl Send for ModelBuilder
impl Send for ModelBuilder
impl Sync for ModelBuilder
impl Sync for ModelBuilder