Magnum/MeshTools/Compile.h file

Function Magnum::MeshTools::compile()

Contents

Namespaces

namespace Magnum
Root namespace.
namespace Magnum::MeshTools
Mesh tools.

Enums

enum class CompileFlag: UnsignedByte { GenerateFlatNormals = 1 << 0, GenerateSmoothNormals = 1 << 1 }
Mesh compilation flag.

Typedefs

using CompileFlags = Containers::EnumSet<CompileFlag>
Mesh compilation flags.

Functions

auto compile(const Trade::MeshData2D& meshData) -> GL::Mesh
Compile 2D mesh data.
auto compile(const Trade::MeshData2D& meshData, GL::BufferUsage usage) -> std::tuple<GL::Mesh, std::unique_ptr<GL::Buffer>, std::unique_ptr<GL::Buffer>> deprecated
Compile 2D mesh data.
auto compile(const Trade::MeshData3D& meshData, CompileFlags flags = {}) -> GL::Mesh
Compile 3D mesh data.
auto compile(const Trade::MeshData3D& meshData, GL::BufferUsage usage) -> std::tuple<GL::Mesh, std::unique_ptr<GL::Buffer>, std::unique_ptr<GL::Buffer>> deprecated
Compile 3D mesh data.