Struct kiss3d::scene::Object [] [src]

pub struct Object { /* fields omitted */ }

A 3d objects on the scene.

This is the only interface to manipulate the object position, color, vertices and texture.

Methods

impl Object
[src]

Gets the data of this object.

Gets the data of this object.

Enables or disables backface culling for this object.

Attaches user-defined data to this object.

Gets the material of this object.

Sets the material of this object.

Sets the width of the lines drawn for this object.

Returns the width of the lines drawn for this object.

Sets the size of the points drawn for this object.

Returns the size of the points drawn for this object.

Activate or deactivate the rendering of this object surface.

Activate or deactivate the rendering of this object surface.

This object's mesh.

Mutably access the object's vertices.

Access the object's vertices.

Recomputes the normals of this object's mesh.

Mutably access the object's normals.

Access the object's normals.

Mutably access the object's faces.

Access the object's faces.

Mutably access the object's texture coordinates.

Access the object's texture coordinates.

Sets the color of the object.

Colors components must be on the range [0.0, 1.0].

Sets the texture of the object.

The texture is loaded from a file and registered by the global TextureManager.

Arguments

  • path - relative path of the texture on the disk

Sets the texture of the object.

The texture must already have been registered as name.

Sets the texture of the object.