Struct mallumo::ShapeList [] [src]

pub struct ShapeList {
    pub shapes: Vec<Shape>,
    pub indices: Vec<u32>,
    pub vertices: Vec<Vertex>,
    pub primitive_parameters: Vec<PrimitiveParameters>,
    pub textures: Vec<Texture2D>,
    pub ibl_diffuse_texture: Option<TextureCubemap>,
    pub ibl_specular_texture: Option<TextureCubemap>,
    pub indices_buffer: MutableBuffer,
    pub vertices_buffer: MutableBuffer,
    pub primitive_parameters_buffer: MutableBuffer,
    // some fields omitted
}

Describes multiple shapes. This structure contains data sufficient for drawing.

Fields

Methods

impl ShapeList
[src]

[src]

Create Shape List from single shape.

[src]

Create Shape List from multiple shapes.

[src]

Creates Shape List from joined shapes: indices and vertices are in single array.

[src]

Creates Shape List from file.

Currently only .obj and .gltf files are supported.

[src]

Create Shape List from multiple files.

Currently only .obj and .gltf files are supported.

[src]

Updates Shape List's buffer, necessary to use after any changes(if changes are supposed to be seen on GPU side).

[src]

Adds shape into Shape List.

[src]

Gets all texture references excluding ibl textures.

[src]

QoL function used to index into texture array.