Magnum/Primitives/Grid.h file

Function Magnum::Primitives::grid3DSolid(), Magnum::Primitives::grid3DWireframe()

Namespaces

namespace Magnum
Root namespace.
namespace Magnum::Primitives
Primitive library.

Enums

enum class GridFlag: UnsignedByte { TextureCoordinates = 1 << 0 new in 2020.06, GenerateTextureCoords = TextureCoordinates deprecated in 2020.06, Normals = 1 << 1, GenerateNormals = Normals deprecated in 2020.06, Tangents = 1 << 2 new in 2020.06 }
Grid flag.

Typedefs

using GridFlags = Containers::EnumSet<GridFlag>
Grid flags.

Functions

auto grid3DSolid(const Vector2i& subdivisions, GridFlags flags = GridFlag::Normals) -> Trade::MeshData
Solid 3D grid.
auto grid3DWireframe(const Vector2i& subdivisions) -> Trade::MeshData
Wireframe 3D grid.