Magnum::DartIntegration::DrawData struct

Shape draw data.

Constructors, destructors, conversion operators

DrawData(Containers::Array<GL::Mesh> meshes, Containers::Array<Trade::PhongMaterialData> materials, Containers::Array<Containers::Optional<GL::Texture2D>> textures, const Vector3& scaling) explicit
Constructor.
DrawData(const DrawData&) deleted
Copying is not allowed.
DrawData(DrawData&&) noexcept defaulted
Move constructor.

Public functions

auto operator=(const DrawData&) -> DrawData& deleted
Copying is not allowed.
auto operator=(DrawData&&) noexcept -> DrawData& defaulted
Move assignment.

Public variables

Containers::Array<GL::Mesh> meshes
Meshes.
Containers::Array<Trade::PhongMaterialData> materials
Material data.
Containers::Array<Containers::Optional<GL::Texture2D>> textures
Textures.
Vector3 scaling
Scaling.

Function documentation

Magnum::DartIntegration::DrawData::DrawData(Containers::Array<GL::Mesh> meshes, Containers::Array<Trade::PhongMaterialData> materials, Containers::Array<Containers::Optional<GL::Texture2D>> textures, const Vector3& scaling) explicit

Constructor.

Parameters
meshes Meshes
materials Material data
textures Textures
scaling Object scaling

Used internally by Object.