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.

Return None if the mesh data is not available on the CPU.

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 index buffer to a vertex attribute.

Binds this mesh buffers to vertex attributes.

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.

Auto Trait Implementations

impl Send for Mesh

impl Sync for Mesh