Magnum/Primitives/Grid.h file

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

Contents

Namespaces

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

Enums

enum class GridFlag: UnsignedByte { GenerateTextureCoords = 1 << 0, GenerateNormals = 1 << 1 }
Grid flag.

Typedefs

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

Functions

auto grid3DSolid(const Vector2i& subdivisions, GridFlags flags = GridFlag::GenerateNormals) -> Trade::MeshData3D
3D solid grid
auto grid3DWireframe(const Vector2i& subdivisions) -> Trade::MeshData3D
3D wireframe grid