Module three_d::definition[][src]

Structs for constructing a CPU-side version of a GPU feature (for example a triangle mesh) before transferring it to the GPU. Can be constructed manually or loaded via io.

Structs

CPUMaterial

A CPU-side version of a material (for example phong material). Can be constructed manually or loaded via io.

CPUMesh

A CPU-side version of a triangle mesh (for example Mesh). Can be constructed manually or loaded via io or via the utility functions for generating simple triangle meshes.

CPUTexture

A CPU-side version of a texture (for example 2D texture. Can be constructed manually or loaded via io.

Enums

Format

Possible formats for pixels in a texture.

Interpolation

Possible modes of interpolation which determines the texture output between texture pixels.

Wrapping

Possible wrapping modes for a texture which determines how the texture is applied outside of the [0..1] uv coordinate range.