Expand description
Meshes: the two traits a game’s mesh types implement, the data they build, the draws of them, and the set of every mesh a game draws.
A mesh is a type of the game’s own — Ship, Crate — or one of the
engine’s primitives. It implements Catalog, which lists every value
of it a game ever draws, and Mesh, whose build returns the
MeshData that value is made of, out of the Assets startup
loaded. meshes! holds the types a game draws in one
set, and Game::Meshes names that set. A draw
is Mesh::at over a value, set up by the calls on Instance, and
passed to ctx.draw, which takes a mesh of
the game’s own set and no other; startup builds and uploads everything
the set catalogs, so a game whose meshes fit
Config::with_mesh_memory, 256
MiB unless set, builds none of them in a frame.
A build that names what startup did not load stops startup, under the
mesh type’s own name.
Structs§
- Cube
- A one-meter cube centered on the origin.
- Frame
- The part of a texture a draw samples.
- Instance
- A draw a game builds and submits: a mesh’s position, its turn, the part of its textures it samples, the style it is drawn with, the fade over its slots, and any materials that override its slot defaults.
- Mesh
Data - A mesh’s vertices and indices, in the slots the parts
Pselect, posed by the clipsCname. - Plane
- A one-meter square in the XZ plane, facing up — a surface under a scene.
- Quad
- A one-meter square in the XY plane, facing the default camera.
- Sheet
- A texture’s cells, laid out in a grid.
- Slot
- What one part of a mesh draws with: a material and its maps, over some of the mesh’s triangles.
- Sphere
- A one-meter sphere centered on the origin.
- Vertex
- One corner of a mesh.
Enums§
- NoClips
- The vocabulary of a mesh no clip poses.
- NoMeshes
- The set of a game that draws no mesh of its own.
- NoParts
- The vocabulary of a mesh with no parts a draw repaints one at a time.
Traits§
- Clip
- A name for one clip a mesh is posed by.
- Mesh
- A type that is a mesh: a draw is a value of it and a transform.
- Meshes
- The set of every mesh type a game draws, named as
Game::Meshes. - Part
- A name for one repaintable part of a mesh.