Struct kiss3d::resource::Mesh [] [src]

pub struct Mesh { /* fields omitted */ }

Aggregation of vertices, indices, normals and texture coordinates.

It also contains the GPU location of those buffers.

Methods

impl Mesh
[src]

Creates a new mesh.

If the normals and uvs are not given, they are automatically computed.

Creates a new mesh from a mesh descr.

In the normals and uvs are not given, they are automatically computed.

Creates a triangle mesh from this mesh.

Creates a new mesh. Arguments set to None are automatically computed.

Binds this mesh vertex coordinates buffer to a vertex attribute.

Binds this mesh vertex normals buffer to a vertex attribute.

Binds this mesh vertex uvs buffer to a vertex attribute.

Binds this mesh vertex uvs buffer to a vertex attribute.

Binds this mesh buffers to vertex attributes.

Unbind this mesh buffers to vertex attributes.

Number of points needed to draw this mesh.

Recompute this mesh normals.

This mesh faces.

This mesh normals.

This mesh vertex coordinates.

This mesh texture coordinates.

Computes normals from a set of faces.

Computes normals from a set of faces.