Magnum::DartIntegration::ShapeData struct

Shape data.

Returned from convertShapeNode().

Constructors, destructors, conversion operators

ShapeData(Containers::Array<Trade::MeshData> meshes, Containers::Array<Trade::PhongMaterialData> materials, Containers::Array<Containers::Optional<Trade::ImageData2D>> images, Containers::Array<Containers::Optional<Trade::TextureData>> textures, const Vector3& scaling) explicit
Constructor.
ShapeData(const ShapeData&) deleted
Copying is not allowed.
ShapeData(ShapeData&&) defaulted noexcept
Move constructor.

Public functions

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

Public variables

Containers::Array<Trade::MeshData> meshes
Mesh data.
Containers::Array<Trade::PhongMaterialData> materials
Material data corresponding to meshes.
Containers::Array<Containers::Optional<Trade::ImageData2D>> images
Image data corresponding to meshes.
Containers::Array<Containers::Optional<Trade::TextureData>> textures
Texture data corresponding to meshes.
Vector3 scaling
Scaling.

Function documentation

Magnum::DartIntegration::ShapeData::ShapeData(Containers::Array<Trade::MeshData> meshes, Containers::Array<Trade::PhongMaterialData> materials, Containers::Array<Containers::Optional<Trade::ImageData2D>> images, Containers::Array<Containers::Optional<Trade::TextureData>> textures, const Vector3& scaling) explicit

Constructor.

Parameters
meshes Mesh data
materials Material data
images Image data
textures Texture data
scaling Shape scaling

Used internally by convertShapeNode().

Variable documentation

Containers::Array<Trade::MeshData> Magnum::DartIntegration::ShapeData::meshes

Mesh data.

Each mesh has corresponding material data in materials and optionally texture data in images and textures at the same index.

Containers::Array<Containers::Optional<Trade::ImageData2D>> Magnum::DartIntegration::ShapeData::images

Image data corresponding to meshes.

Set to Corrade::Containers::NullOpt in case given mesh has no texture.

Containers::Array<Containers::Optional<Trade::TextureData>> Magnum::DartIntegration::ShapeData::textures

Texture data corresponding to meshes.

Set to Corrade::Containers::NullOpt in case given mesh has no texture.