class
#include <Magnum/Trade/MeshObjectData2D.h>
MeshObjectData2D Two-dimensional mesh object data.
Provides access to material information for given mesh instance.
Base classes
- class ObjectData2D deprecated in Git master
- Two-dimensional object data.
Constructors, destructors, conversion operators
-
MeshObjectData2D(std::
vector<UnsignedInt> children, const Matrix3& transformation, UnsignedInt instance, Int material, Int skin, const void* importerState = nullptr) explicit - Construct with combined transformation.
-
MeshObjectData2D(std::
vector<UnsignedInt> children, const Matrix3& transformation, UnsignedInt instance, Int material, const void* importerState = nullptr) deprecated in Git master explicit - Construct with combined transformation.
-
MeshObjectData2D(std::
vector<UnsignedInt> children, const Vector2& translation, const Complex& rotation, const Vector2& scaling, UnsignedInt instance, Int material, Int skin, const void* importerState = nullptr) explicit - Construct with separate transformations.
-
MeshObjectData2D(std::
vector<UnsignedInt> children, const Vector2& translation, const Complex& rotation, const Vector2& scaling, UnsignedInt instance, Int material, const void* importerState = nullptr) deprecated in Git master explicit - Construct with separate transformations.
- MeshObjectData2D(const MeshObjectData2D&) deleted
- Copying is not allowed.
- MeshObjectData2D(MeshObjectData2D&&) defaulted noexcept
- Move constructor.
Public functions
- auto operator=(const MeshObjectData2D&) -> MeshObjectData2D& deleted
- Copying is not allowed.
- auto operator=(MeshObjectData2D&&) -> MeshObjectData2D& defaulted noexcept
- Move assignment.
- auto material() const -> Int
- Material ID.
- auto skin() const -> Int new in Git master
- Skin ID.
Function documentation
Magnum:: Trade:: MeshObjectData2D:: MeshObjectData2D(std:: vector<UnsignedInt> children,
const Matrix3& transformation,
UnsignedInt instance,
Int material,
Int skin,
const void* importerState = nullptr) explicit
Construct with combined transformation.
Parameters | |
---|---|
children | Child objects |
transformation | Transformation (relative to parent) |
instance | Instance ID |
material | Material ID or -1 |
skin | Skin ID or -1 |
importerState | Importer-specific state |
Creates object with mesh instance type.
Magnum:: Trade:: MeshObjectData2D:: MeshObjectData2D(std:: vector<UnsignedInt> children,
const Matrix3& transformation,
UnsignedInt instance,
Int material,
const void* importerState = nullptr) explicit
Construct with combined transformation.
Magnum:: Trade:: MeshObjectData2D:: MeshObjectData2D(std:: vector<UnsignedInt> children,
const Vector2& translation,
const Complex& rotation,
const Vector2& scaling,
UnsignedInt instance,
Int material,
Int skin,
const void* importerState = nullptr) explicit
Construct with separate transformations.
Parameters | |
---|---|
children | Child objects |
translation | Translation (relative to parent) |
rotation | Rotation (relative to parent) |
scaling | Scaling (relative to parent) |
instance | Instance ID |
material | Material ID or -1 |
skin | Skin ID or -1 |
importerState | Importer-specific state |
Creates object with mesh instance type.
Magnum:: Trade:: MeshObjectData2D:: MeshObjectData2D(std:: vector<UnsignedInt> children,
const Vector2& translation,
const Complex& rotation,
const Vector2& scaling,
UnsignedInt instance,
Int material,
const void* importerState = nullptr) explicit
Construct with separate transformations.
Int Magnum:: Trade:: MeshObjectData2D:: skin() const new in Git master
Skin ID.
Returns -1
if the object has no skin assigned.