namespace
TradeData format exchange.
Contains plugin interfaces for importing data of various formats and classes for direct access to the data.
This library is built if MAGNUM_WITH_TRADE
is enabled when building Magnum. To use this library with CMake, request the Trade
component of the Magnum
package and link to the Magnum::Trade
target:
find_package(Magnum REQUIRED Trade) # ... target_link_libraries(your-app PRIVATE Magnum::Trade)
Additional plugins and utilities are built separately. See particular Trade::*Importer
and *ImageConverter
class documentation, the magnum-imageconverter and magnum-sceneconverter utility documentation, Downloading and building, Downloading and building plugins, Usage with CMake, Plugin usage with CMake and Loading and using plugins for more information.
Namespaces
- namespace OpenGex
- OpenGEX structure and property names.
Classes
- class AbstractImageConverter
- Base for image converter plugins.
- class AbstractImporter
- Base for importer plugins.
- class AbstractSceneConverter new in 2020.06
- Base for scene converter plugins.
- class AnimationData
- Animation clip data.
- class AnimationTrackData
- Animation track data.
- class AnyImageConverter
- Any image converter plugin.
- class AnyImageImporter
- Any image importer plugin.
- class AnySceneConverter new in 2020.06
- Any scene converter plugin.
- class AnySceneImporter
- Any scene importer plugin.
-
template<class T>struct ArrayAllocator new in 2020.06
- Growable array allocator to be used in importer plugins.
- class AssimpImporter
- Assimp importer.
- class AstcImporter new in Git master
- ASTC importer plugin.
- class BasisImageConverter new in 2019.10
- Basis Universal image converter plugin.
- class BasisImporter new in 2019.10
- Basis Universal importer plugin.
- class BcDecImageConverter new in Git master
- BCn-compressed image decoding using bcdec.
- class CameraData
- Camera data.
- class CgltfImporter deprecated in Git master
- glTF importer plugin
- class DdsImporter
- DDS image importer plugin.
- class DevIlImageImporter
- DevIL Image importer plugin.
- class EtcDecImageConverter new in Git master
- ETC/EAC-compressed image decoding using etcdec.
- class FlatMaterialData new in Git master
- Flat material data.
- class GltfImporter new in Git master
- glTF importer plugin
- class GltfSceneConverter new in Git master
- glTF converter plugin
- class IcoImporter new in 2020.06
- ICO importer plugin.
-
template<UnsignedInt dimensions>class ImageData
- Image data.
- class JpegImageConverter
- JPEG image converter plugin.
- class JpegImporter
- JPEG importer plugin.
- class KtxImageConverter new in Git master
- KTX2 image converter plugin.
- class KtxImporter new in Git master
- KTX2 image importer plugin.
- class LightData
- Light data.
- class MaterialAttributeData new in Git master
- Material attribute data.
- class MaterialData new in Git master
- Material data.
-
template<MaterialLayer layer>class MaterialLayerData new in Git master
- Material layer data.
- class MeshAttributeData new in 2020.06
- Mesh attribute data.
- class MeshData new in 2020.06
- Mesh data.
- class MeshData2D deprecated in 2020.06
- Two-dimensional mesh data.
- class MeshData3D deprecated in 2020.06
- Three-dimensional mesh data.
- class MeshIndexData new in 2020.06
- Mesh index data.
- class MeshObjectData2D deprecated in Git master
- Two-dimensional mesh object data.
- class MeshObjectData3D deprecated in Git master
- Three-dimensional mesh object data.
- class MeshOptimizerSceneConverter new in 2020.06
- MeshOptimizer converter plugin.
- class MiniExrImageConverter
- OpenEXR image converter plugin using miniexr.
- class ObjectData2D deprecated in Git master
- Two-dimensional object data.
- class ObjectData3D deprecated in Git master
- Three-dimensional object data.
- class ObjImporter
- OBJ importer plugin.
- class OpenExrImageConverter new in Git master
- OpenEXR image converter plugin.
- class OpenExrImporter new in Git master
- OpenEXR importer plugin.
- class OpenGexImporter
- OpenGEX importer.
- class PbrClearCoatMaterialData new in Git master
- Clear coat material layer data.
- class PbrMetallicRoughnessMaterialData new in Git master
- PBR metallic/roughness material data.
- class PbrSpecularGlossinessMaterialData new in Git master
- PBR specular/glossiness material data.
- class PhongMaterialData
- Phong material data.
- class PngImageConverter
- PNG image converter plugin.
- class PngImporter
- PNG importer plugin.
- class PrimitiveImporter new in 2020.06
- Primitive importer plugin.
- class SceneData
- Scene data.
- class SceneFieldData new in Git master
- Scene field data.
-
template<UnsignedInt dimensions>class SkinData new in Git master
- Skin data.
- class SpngImporter new in Git master
- PNG importer plugin using libspng.
- class StanfordImporter
- Stanford PLY importer plugin.
- class StanfordSceneConverter new in 2020.06
- Stanford PLY converter plugin.
- class StbDxtImageConverter new in Git master
- BC1/BC3 compressor using stb_dxt.
- class StbImageConverter
- Image converter plugin using stb_image_write.
- class StbImageImporter
- Image importer plugin using stb_image.
- class StbResizeImageConverter new in Git master
- Image resizing using stb_image_resize.
- class StlImporter new in 2020.06
- STL importer plugin.
- class TextureData
- Texture data.
- class TgaImageConverter
- TGA image converter plugin.
- class TgaImporter
- TGA importer plugin.
- class TinyGltfImporter deprecated in Git master
- TinyGltf importer plugin.
- class UfbxImporter new in Git master
- FBX and OBJ importer using ufbx.
- class WebPImageConverter new in Git master
- WebP image converter plugin.
- class WebPImporter new in Git master
- WebP importer plugin.
Enums
- enum class ImageConverterFeature: UnsignedInt { Convert1D = 1 << 0 new in Git master, Convert2D = 1 << 1 new in Git master, ConvertImage = Convert2D deprecated in Git master, ConvertCompressedImage = Convert2D deprecated in Git master, Convert3D = 1 << 3 new in Git master, ConvertCompressed1D = 1 << 4 new in Git master, ConvertCompressed2D = 1 << 5 new in Git master, ConvertCompressed3D = 1 << 6 new in Git master, Convert1DToFile = 1 << 7 new in Git master, Convert2DToFile = 1 << 8 new in Git master, ConvertFile = Convert2DToFile deprecated in Git master, Convert3DToFile = 1 << 9 new in Git master, ConvertCompressed1DToFile = 1 << 10 new in Git master, ConvertCompressed2DToFile = 1 << 11 new in Git master, ConvertCompressedFile = ConvertCompressed2DToFile deprecated in Git master, ConvertCompressed3DToFile = 1 << 12 new in Git master, Convert1DToData = Convert1DToFile|(1 << 13) new in Git master, Convert2DToData = Convert2DToFile|(1 << 13) new in Git master, ConvertData = Convert2DToData deprecated in Git master, Convert3DToData = Convert3DToFile|(1 << 13) new in Git master, ConvertCompressed1DToData = ConvertCompressed1DToFile|(1 << 13) new in Git master, ConvertCompressed2DToData = ConvertCompressed2DToFile|(1 << 13) new in Git master, ConvertCompressedData = ConvertCompressed2DToData deprecated in Git master, ConvertCompressed3DToData = ConvertCompressed3DToFile|(1 << 13) new in Git master, Levels = 1 << 14 new in Git master, ConvertLevels1DToFile = Convert1DToFile|Levels deprecated in Git master, ConvertLevels2DToFile = Convert2DToFile|Levels deprecated in Git master, ConvertLevels3DToFile = Convert3DToFile|Levels deprecated in Git master, ConvertCompressedLevels1DToFile = ConvertCompressed1DToFile|Levels deprecated in Git master, ConvertCompressedLevels2DToFile = ConvertCompressed2DToFile|Levels deprecated in Git master, ConvertCompressedLevels3DToFile = ConvertCompressed3DToFile|Levels deprecated in Git master, ConvertLevels1DToData = Convert1DToData|Levels deprecated in Git master, ConvertLevels2DToData = Convert2DToData|Levels deprecated in Git master, ConvertLevels3DToData = Convert3DToData|Levels deprecated in Git master, ConvertCompressedLevels1DToData = ConvertCompressed1DToData|Levels deprecated in Git master, ConvertCompressedLevels2DToData = ConvertCompressed2DToData|Levels deprecated in Git master, ConvertCompressedLevels3DToData = ConvertCompressed3DToData|Levels deprecated in Git master } new in 2020.06
- Features supported by an image converter.
- enum class ImageConverterFlag: UnsignedByte { Quiet = 1 << 1 new in Git master, Verbose = 1 << 0 } new in 2020.06
- Image converter flag.
- enum class ImporterFeature: UnsignedByte { OpenData = 1 << 0, OpenState = 1 << 1, FileCallback = 1 << 2 } new in 2020.06
- Features supported by an importer.
- enum class ImporterFlag: UnsignedByte { Quiet = 1 << 1 new in Git master, Verbose = 1 << 0 } new in 2020.06
- Importer flag.
- enum class SceneConverterFeature: UnsignedInt { ConvertMesh = 1 << 0, ConvertMeshInPlace = 1 << 1, ConvertMeshToFile = 1 << 2, ConvertMeshToData = ConvertMeshToFile|(1 << 3), ConvertMultiple = 1 << 4 new in Git master, ConvertMultipleToFile = 1 << 5 new in Git master, ConvertMultipleToData = ConvertMultipleToFile|(1 << 6) new in Git master, AddScenes = 1 << 7 new in Git master, AddAnimations = 1 << 8 new in Git master, AddLights = 1 << 9 new in Git master, AddCameras = 1 << 10 new in Git master, AddSkins2D = 1 << 11 new in Git master, AddSkins3D = 1 << 12 new in Git master, AddMeshes = 1 << 13 new in Git master, AddMaterials = 1 << 14 new in Git master, AddTextures = 1 << 15 new in Git master, AddImages1D = 1 << 16 new in Git master, AddImages2D = 1 << 17 new in Git master, AddImages3D = 1 << 18 new in Git master, AddCompressedImages1D = 1 << 19 new in Git master, AddCompressedImages2D = 1 << 20 new in Git master, AddCompressedImages3D = 1 << 21 new in Git master, MeshLevels = 1 << 22 new in Git master, ImageLevels = 1 << 23 new in Git master } new in 2020.06
- Features supported by a scene converter.
- enum class SceneConverterFlag: UnsignedByte { Quiet = 1 << 1, Verbose = 1 << 0 } new in 2020.06
- Scene converter flag.
- enum class SceneContent: UnsignedInt { Scenes = 1 << 0, Animations = 1 << 1, Lights = 1 << 2, Cameras = 1 << 3, Skins2D = 1 << 4, Skins3D = 1 << 5, Meshes = 1 << 6, Materials = 1 << 7, Textures = 1 << 8, Images1D = 1 << 9, Images2D = 1 << 10, Images3D = 1 << 11, MeshLevels = 1 << 12, ImageLevels = 1 << 13, Names = 1 << 14 } new in Git master
- Scene content.
- enum class AnimationTrackType: UnsignedByte { Bool = 1, Float, UnsignedInt, Int, BitVector2 new in Git master, BoolVector2 = BitVector2 deprecated in Git master, BitVector3 new in Git master, BoolVector3 = BitVector3 deprecated in Git master, BitVector4 new in Git master, BoolVector4 = BitVector4 deprecated in Git master, Vector2, Vector2ui, Vector2i, Vector3, Vector3ui, Vector3i, Vector4, Vector4ui, Vector4i, Complex, Quaternion, DualQuaternion, CubicHermite1D, CubicHermite2D, CubicHermite3D, CubicHermiteComplex, CubicHermiteQuaternion }
- Type of animation track data.
- enum class AnimationTrackTarget: UnsignedShort { Translation2D = 1, Translation3D, Rotation2D, Rotation3D, Scaling2D, Scaling3D, Custom = Implementation::AnimationTrackTargetCustom deprecated in Git master }
- Target of an animation track.
- enum class CameraType: UnsignedByte { Orthographic2D, Orthographic3D, Perspective3D }
- Camera type.
- enum class DataFlag: UnsignedByte { Owned = 1 << 0, ExternallyOwned = 1 << 3 new in Git master, Global = 1 << 4 new in Git master, Mutable = 1 << 2 } new in 2020.06
- Data flag.
- enum class LightType: UnsignedByte { Ambient = 1 new in Git master, Directional new in Git master, Infinite = Directional deprecated in Git master, Point, Spot } new in Git master
- Light type.
- enum class MaterialLayer: UnsignedInt { ClearCoat = 1 } new in Git master
- Material layer name.
- enum class MaterialAttribute: UnsignedInt { LayerName = 1, AlphaMask, AlphaBlend, DoubleSided, AmbientColor, AmbientTexture, AmbientTextureMatrix, AmbientTextureCoordinates, AmbientTextureLayer, DiffuseColor, DiffuseTexture, DiffuseTextureMatrix, DiffuseTextureCoordinates, DiffuseTextureLayer, SpecularColor, SpecularTexture, SpecularTextureSwizzle, SpecularTextureMatrix, SpecularTextureCoordinates, SpecularTextureLayer, Shininess, BaseColor, BaseColorTexture, BaseColorTextureMatrix, BaseColorTextureCoordinates, BaseColorTextureLayer, Metalness, MetalnessTexture, MetalnessTextureSwizzle, MetalnessTextureMatrix, MetalnessTextureCoordinates, MetalnessTextureLayer, Roughness, RoughnessTexture, RoughnessTextureSwizzle, RoughnessTextureMatrix, RoughnessTextureCoordinates, RoughnessTextureLayer, NoneRoughnessMetallicTexture, Glossiness, GlossinessTexture, GlossinessTextureSwizzle, GlossinessTextureMatrix, GlossinessTextureCoordinates, GlossinessTextureLayer, SpecularGlossinessTexture, NormalTexture, NormalTextureScale, NormalTextureSwizzle, NormalTextureMatrix, NormalTextureCoordinates, NormalTextureLayer, OcclusionTexture, OcclusionTextureStrength, OcclusionTextureSwizzle, OcclusionTextureMatrix, OcclusionTextureCoordinates, OcclusionTextureLayer, EmissiveColor, EmissiveTexture, EmissiveTextureMatrix, EmissiveTextureCoordinates, EmissiveTextureLayer, LayerFactor, LayerFactorTexture, LayerFactorTextureSwizzle, LayerFactorTextureMatrix, LayerFactorTextureCoordinates, LayerFactorTextureLayer, TextureMatrix, TextureCoordinates, TextureLayer } new in Git master
- Material attribute name.
- enum class MaterialTextureSwizzle: UnsignedInt { R = Utility::Endianness::fourCC('R', '\0', '\0', '\0'), G = Utility::Endianness::fourCC('G', '\0', '\0', '\0'), B = Utility::Endianness::fourCC('B', '\0', '\0', '\0'), A = Utility::Endianness::fourCC('A', '\0', '\0', '\0'), RG = Utility::Endianness::fourCC('R', 'G', '\0', '\0'), GB = Utility::Endianness::fourCC('G', 'B', '\0', '\0'), GA = Utility::Endianness::fourCC('G', 'A', '\0', '\0'), BA = Utility::Endianness::fourCC('B', 'A', '\0', '\0'), RGB = Utility::Endianness::fourCC('R', 'G', 'B', '\0'), GBA = Utility::Endianness::fourCC('G', 'B', 'A', '\0'), RGBA = Utility::Endianness::fourCC('R', 'G', 'B', 'A') } new in Git master
- Material texture swizzle.
- enum class MaterialAttributeType: UnsignedByte { Bool = 1, Float, Deg, Rad, UnsignedInt, Int, UnsignedLong, Long, Vector2, Vector2ui, Vector2i, Vector3, Vector3ui, Vector3i, Vector4, Vector4ui, Vector4i, Matrix2x2, Matrix2x3, Matrix2x4, Matrix3x2, Matrix3x3, Matrix3x4, Matrix4x2, Matrix4x3, Pointer, MutablePointer, String, Buffer, TextureSwizzle } new in Git master
- Material attribute type.
- enum class MaterialType: UnsignedInt { Flat = 1 << 0, Phong = 1 << 1, PbrMetallicRoughness = 1 << 2, PbrSpecularGlossiness = 1 << 3, PbrClearCoat = 1 << 4 }
- Material type.
- enum class MaterialAlphaMode: UnsignedByte { Opaque, Mask, Blend }
- Material alpha mode.
- enum class MeshAttribute: UnsignedShort { Position = 1, Tangent, Bitangent, Normal, TextureCoordinates, Color, JointIds new in Git master, Weights new in Git master, ObjectId } new in 2020.06
- Mesh attribute name.
- enum class ObjectInstanceType2D: UnsignedByte { Camera, Mesh, Empty } deprecated in Git master
- Type of instance held by given 2D object.
- enum class ObjectFlag2D: UnsignedByte { HasTranslationRotationScaling = 1 << 0 } deprecated in Git master
- 2D object flag
- enum class ObjectInstanceType3D: UnsignedByte { Camera, Light, Mesh, Empty } deprecated in Git master
- Type of instance held by given 3D object.
- enum class ObjectFlag3D: UnsignedByte { HasTranslationRotationScaling = 1 << 0 } deprecated in Git master
- 3D object flag
- enum class SceneMappingType: UnsignedByte { UnsignedByte = 1, UnsignedShort, UnsignedInt, UnsignedLong } new in Git master
- Scene object mapping type.
- enum class SceneField: UnsignedInt { Parent = 1, Transformation, Translation, Rotation, Scaling, Mesh, MeshMaterial, Light, Camera, Skin, ImporterState } new in Git master
- Scene field name.
- enum class SceneFieldType: UnsignedShort { Bit = 13, Float, Half, Double, UnsignedByte, Byte, UnsignedShort, Short, UnsignedInt, Int, UnsignedLong, Long, Vector2, Vector2h, Vector2d, Vector2ub, Vector2b, Vector2us, Vector2s, Vector2ui, Vector2i, Vector3, Vector3h, Vector3d, Vector3ub, Vector3b, Vector3us, Vector3s, Vector3ui, Vector3i, Vector4, Vector4h, Vector4d, Vector4ub, Vector4b, Vector4us, Vector4s, Vector4ui, Vector4i, Matrix2x2, Matrix2x2h, Matrix2x2d, Matrix2x3, Matrix2x3h, Matrix2x3d, Matrix2x4, Matrix2x4h, Matrix2x4d, Matrix3x2, Matrix3x2h, Matrix3x2d, Matrix3x3, Matrix3x3h, Matrix3x3d, Matrix3x4, Matrix3x4h, Matrix3x4d, Matrix4x2, Matrix4x2h, Matrix4x2d, Matrix4x3, Matrix4x3h, Matrix4x3d, Matrix4x4, Matrix4x4h, Matrix4x4d, Range1D, Range1Dh, Range1Dd, Range1Di, Range2D, Range2Dh, Range2Dd, Range2Di, Range3D, Range3Dh, Range3Dd, Range3Di, Complex, Complexd, DualComplex, DualComplexd, Quaternion, Quaterniond, DualQuaternion, DualQuaterniond, Deg, Degh, Degd, Rad, Radh, Radd, Pointer, MutablePointer, StringOffset32 = 3, StringOffset8 = 1, StringOffset16 = 2, StringOffset64 = 4, StringRange32 = 7, StringRange8 = 5, StringRange16 = 6, StringRange64 = 8, StringRangeNullTerminated32 = 11, StringRangeNullTerminated8 = 9, StringRangeNullTerminated16 = 10, StringRangeNullTerminated64 = 12 } new in Git master
- Scene field type.
- enum class SceneFieldFlag: UnsignedByte { OffsetOnly = 1 << 0, OrderedMapping = 1 << 1, ImplicitMapping = (1 << 2)|OrderedMapping, MultiEntry = 1 << 4, NullTerminatedString = 1 << 3 } new in Git master
- Scene field flag.
- enum class TextureType: UnsignedByte { Texture1D, Texture1DArray new in Git master, Texture2D, Texture2DArray new in Git master, Texture3D, CubeMap new in Git master, CubeMapArray new in Git master, Cube = CubeMap deprecated in Git master } new in Git master
- Texture type.
Typedefs
-
using ImageConverterFeatures = Containers::
EnumSet<ImageConverterFeature> new in 2020.06 - Features supported by an image converter.
-
using ImageConverterFlags = Containers::
EnumSet<ImageConverterFlag> new in 2020.06 - Image converter flags.
-
using ImporterFeatures = Containers::
EnumSet<ImporterFeature> new in 2020.06 - Set of features supported by an importer.
- using ImporterFileCallbackPolicy = InputFileCallbackPolicy deprecated in 2019.10
- Input file callback policy.
-
using ImporterFlags = Containers::
EnumSet<ImporterFlag> new in 2020.06 - Importer flags.
- using AbstractMaterialData = MaterialData deprecated in Git master
- Material data.
-
using SceneConverterFeatures = Containers::
EnumSet<SceneConverterFeature> new in 2020.06 - Features supported by a scene converter.
-
using SceneConverterFlags = Containers::
EnumSet<SceneConverterFlag> new in 2020.06 - Scene converter flags.
-
using SceneContents = Containers::
EnumSet<SceneContent> new in Git master - Scene contents.
- using AnimationTrackTargetType = AnimationTrackTarget deprecated in Git master
- Target of an animation track.
-
using DataFlags = Containers::
EnumSet<DataFlag> new in 2020.06 - Data flags.
- using ImageData1D = ImageData<1>
- One-dimensional image data.
- using ImageData2D = ImageData<2>
- Two-dimensional image data.
- using ImageData3D = ImageData<3>
- Three-dimensional image data.
-
using MaterialTypes = Containers::
EnumSet<MaterialType> new in Git master - Material types.
-
using ObjectFlags2D = Containers::
EnumSet<ObjectFlag2D> deprecated in Git master - 2D object flags
-
using ObjectFlags3D = Containers::
EnumSet<ObjectFlag3D> deprecated in Git master - 3D object flags
-
using SceneFieldFlags = Containers::
EnumSet<SceneFieldFlag> new in Git master - Scene field flags.
- using SkinData2D = SkinData<2> new in Git master
- Two-dimensional skin data.
- using SkinData3D = SkinData<3> new in Git master
- Three-dimensional skin data.
Functions
- auto operator<<(Debug& debug, ImageConverterFeature value) -> Debug&
- Debug output operator.
- auto operator<<(Debug& debug, ImageConverterFeatures value) -> Debug&
- Debug output operator.
- auto operator<<(Debug& debug, ImageConverterFlag value) -> Debug& new in 2020.06
- Debug output operator.
- auto operator<<(Debug& debug, ImageConverterFlags value) -> Debug& new in 2020.06
- Debug output operator.
- auto operator<<(Debug& debug, ImporterFeature value) -> Debug&
- Debug output operator.
- auto operator<<(Debug& debug, ImporterFeatures value) -> Debug&
- Debug output operator.
- auto operator<<(Debug& debug, ImporterFlag value) -> Debug& new in 2020.06
- Debug output operator.
- auto operator<<(Debug& debug, ImporterFlags value) -> Debug& new in 2020.06
- Debug output operator.
- auto operator<<(Debug& debug, SceneConverterFeature value) -> Debug&
- Debug output operator.
- auto operator<<(Debug& debug, SceneConverterFeatures value) -> Debug&
- Debug output operator.
- auto operator<<(Debug& debug, SceneConverterFlag value) -> Debug& new in 2020.06
- Debug output operator.
- auto operator<<(Debug& debug, SceneConverterFlags value) -> Debug& new in 2020.06
- Debug output operator.
- auto operator<<(Debug& debug, SceneContent value) -> Debug& new in Git master
- Debug output operator.
- auto operator<<(Debug& debug, SceneContents value) -> Debug& new in Git master
- Debug output operator.
- auto sceneContentsFor(const AbstractImporter& importer) -> SceneContents new in Git master
- Scene contents for an importer.
- auto sceneContentsFor(const AbstractSceneConverter& converter) -> SceneContents new in Git master
- Scene contents supported by a converter.
- auto operator<<(Debug& debug, AnimationTrackType value) -> Debug&
- Debug output operator.
- auto animationTrackTypeSize(AnimationTrackType type) -> UnsignedInt new in Git master
- Size of given animation track data type.
- auto animationTrackTypeAlignment(AnimationTrackType type) -> UnsignedInt new in Git master
- Alignment of given animation track data type.
- auto operator<<(Debug& debug, AnimationTrackTarget value) -> Debug&
- Debug output operator.
- auto isAnimationTrackTargetCustom(AnimationTrackTarget name) -> bool constexpr new in Git master
- Whether a target for an animation track is custom.
- auto animationTrackTargetCustom(UnsignedShort id) -> AnimationTrackTarget constexpr new in Git master
- Create a custom target for an animation track.
- auto animationTrackTargetCustom(AnimationTrackTarget name) -> UnsignedShort constexpr new in Git master
- Get index of a custom target for an animation track.
-
template<class V, class R = Animation::ResultOf<V>>auto animationInterpolatorFor(Animation::
Interpolation interpolation) -> auto - Animation interpolator function for given interpolation behavior.
- auto operator<<(Debug& debug, CameraType value) -> Debug&
- Debug output operator.
- auto operator<<(Debug& debug, DataFlag value) -> Debug& new in 2020.06
- Debug output operator.
- auto operator<<(Debug& debug, DataFlags value) -> Debug& new in 2020.06
- Debug output operator.
- auto operator<<(Debug& debug, LightType value) -> Debug&
- Debug output operator.
-
auto materialLayerName(MaterialLayer layer) -> Containers::
StringView - Material layer name as a string.
- auto operator<<(Debug& debug, MaterialLayer value) -> Debug& new in Git master
- Debug output operator.
-
auto materialAttributeName(MaterialAttribute attribute) -> Containers::
StringView new in Git master - Material layer name as a string.
- auto operator<<(Debug& debug, MaterialAttribute value) -> Debug& new in Git master
- Debug output operator.
- auto materialTextureSwizzleComponentCount(MaterialTextureSwizzle swizzle) -> UnsignedInt new in Git master
- Component count in a material texture swizzle.
- auto operator<<(Debug& debug, MaterialTextureSwizzle value) -> Debug& new in Git master
- Debug output operator.
-
auto materialAttributeTypeSize(MaterialAttributeType type) -> std::
size_t new in Git master - Byte size of a material attribute type.
- auto operator<<(Debug& debug, MaterialAttributeType value) -> Debug& new in Git master
- Debug output operator.
- auto operator<<(Debug& debug, MaterialType value) -> Debug&
- Debug output operator.
- auto operator<<(Debug& debug, MaterialTypes value) -> Debug&
- Debug output operator.
- auto operator<<(Debug& debug, MaterialAlphaMode value) -> Debug&
- Debug output operator.
-
auto operator<<(Debug& debug,
MaterialData::
Flag value) -> Debug& deprecated in Git master - Debug output operator.
-
auto operator<<(Debug& debug,
MaterialData::
Flags value) -> Debug& deprecated in Git master - Debug output operator.
- auto operator<<(Debug& debug, MeshAttribute value) -> Debug& new in 2020.06
- Debug output operator.
- auto isMeshAttributeCustom(MeshAttribute name) -> bool constexpr new in 2020.06
- Whether a mesh attribute is custom.
- auto meshAttributeCustom(UnsignedShort id) -> MeshAttribute constexpr new in 2020.06
- Create a custom mesh attribute.
- auto meshAttributeCustom(MeshAttribute name) -> UnsignedShort constexpr new in 2020.06
- Get index of a custom mesh attribute.
-
auto meshAttributeDataNonOwningArray(Containers::
ArrayView<const MeshAttributeData> view) -> Containers:: Array<MeshAttributeData> new in 2020.06 - Create a non-owning array of MeshAttributeData items.
- auto operator<<(Debug& debug, ObjectInstanceType2D value) -> Debug& deprecated in Git master
- Debug output operator.
- auto operator<<(Debug& debug, ObjectFlag2D value) -> Debug& deprecated in Git master
- Debug output operator.
- auto operator<<(Debug& debug, ObjectFlags2D value) -> Debug& deprecated in Git master
- Debug output operator.
- auto operator<<(Debug& debug, ObjectInstanceType3D value) -> Debug& deprecated in Git master
- Debug output operator.
- auto operator<<(Debug& debug, ObjectFlag3D value) -> Debug& deprecated in Git master
- Debug output operator.
- auto operator<<(Debug& debug, ObjectFlags3D value) -> Debug& deprecated in Git master
- Debug output operator.
-
auto operator<<(Debug& debug,
PhongMaterialData::
Flag value) -> Debug& deprecated in Git master - Debug output operator.
- auto operator<<(Debug& debug, SceneMappingType value) -> Debug& new in Git master
- Debug output operator.
- auto sceneMappingTypeSize(SceneMappingType type) -> UnsignedInt new in Git master
- Size of given scene object mapping type.
- auto sceneMappingTypeAlignment(SceneMappingType type) -> UnsignedInt new in Git master
- Alignment of given scene object mapping type.
- auto operator<<(Debug& debug, SceneField value) -> Debug& new in Git master
- Debug output operator.
- auto isSceneFieldCustom(SceneField name) -> bool constexpr new in Git master
- Whether a scene field is custom.
- auto sceneFieldCustom(UnsignedInt id) -> SceneField constexpr new in Git master
- Create a custom scene field.
- auto sceneFieldCustom(SceneField name) -> UnsignedInt constexpr new in Git master
- Get index of a custom scene field.
- auto operator<<(Debug& debug, SceneFieldType value) -> Debug& new in Git master
- Debug output operator.
- auto sceneFieldTypeSize(SceneFieldType type) -> UnsignedInt new in Git master
- Size of given scene field type.
- auto sceneFieldTypeAlignment(SceneFieldType type) -> UnsignedInt new in Git master
- Alignment of given scene field type.
- auto operator<<(Debug& debug, SceneFieldFlag value) -> Debug& new in Git master
- Debug output operator.
- auto operator<<(Debug& debug, SceneFieldFlags value) -> Debug& new in Git master
- Debug output operator.
-
auto sceneFieldDataNonOwningArray(Containers::
ArrayView<const SceneFieldData> view) -> Containers:: Array<SceneFieldData> new in Git master - Create a non-owning array of SceneFieldData items.
- auto operator<<(Debug& debug, TextureType value) -> Debug&
- Debug output operator.
Enum documentation
enum class Magnum:: Trade:: ImageConverterFeature: UnsignedInt new in 2020.06
Features supported by an image converter.
enum class Magnum:: Trade:: ImageConverterFlag: UnsignedByte new in 2020.06
Image converter flag.
Enumerators | |
---|---|
Quiet new in Git master |
Suppress warnings, print just errors. By default the converter prints both warnings and errors. |
Verbose |
Print verbose diagnostic during conversion. By default the converter only prints messages on error or when some operation might cause unexpected data modification or loss. Corresponds to the |
enum class Magnum:: Trade:: ImporterFeature: UnsignedByte new in 2020.06
#include <Magnum/Trade/AbstractImporter.h>
Features supported by an importer.
Enumerators | |
---|---|
OpenData |
Opening files from raw data or non-temporary memory using AbstractImporter:: |
OpenState |
Opening already loaded state using AbstractImporter:: |
FileCallback |
Specifying callbacks for loading additional files referenced from the main file using AbstractImporter:: See Loading data from memory, using file callbacks and particular importer documentation for more information. |
enum class Magnum:: Trade:: ImporterFlag: UnsignedByte new in 2020.06
#include <Magnum/Trade/AbstractImporter.h>
Importer flag.
Enumerators | |
---|---|
Quiet new in Git master |
Suppress warnings, print just errors. By default the converter prints both warnings and errors. |
Verbose |
Print verbose diagnostic during import. By default the importer only prints messages on error or when some operation might cause unexpected data modification or loss. Corresponds to the |
enum class Magnum:: Trade:: SceneConverterFeature: UnsignedInt new in 2020.06
Features supported by a scene converter.
enum class Magnum:: Trade:: SceneConverterFlag: UnsignedByte new in 2020.06
Scene converter flag.
Enumerators | |
---|---|
Quiet |
Suppress warnings, print just errors. By default the converter prints both warnings and errors. |
Verbose |
Print verbose diagnostic during conversion. By default the converter only prints messages on error or when some operation might cause unexpected data modification or loss. Corresponds to the |
enum class Magnum:: Trade:: SceneContent: UnsignedInt new in Git master
Scene content.
Content to be taken from an AbstractImporter and passed to an AbstractSceneConverter in AbstractSceneConverter::
enum class Magnum:: Trade:: AnimationTrackType: UnsignedByte
#include <Magnum/Trade/AnimationData.h>
Type of animation track data.
A type in which track data for given AnimationTrackTarget is stored, See AnimationData for more information.
enum class Magnum:: Trade:: AnimationTrackTarget: UnsignedShort
#include <Magnum/Trade/AnimationData.h>
Target of an animation track.
See AnimationData for more information.
Apart from builtin target types it's possible to have custom ones, which use the upper half of the enum range. Those are detected via isAnimationTrackTargetCustom() and can be converted to and from a numeric identifier using animationTrackTargetCustom(AnimationTrackTarget) and animationTrackTargetCustom(UnsignedShort). Unlike the builtin ones, these can be of any type and AnimationData::
Enumerators | |
---|---|
Translation2D |
Modifies 2D object translation. Type is usually Vector2 or CubicHermite2D for spline-interpolated data. |
Translation3D |
Modifies 3D object translation. Type is usually Vector3 or CubicHermite3D for spline-interpolated data. |
Rotation2D |
Modifies 2D object rotation. Type is usually Complex or CubicHermiteComplex for spline-interpolated data. |
Rotation3D |
Modifies 3D object rotation. Type is usually Quaternion or CubicHermiteQuaternion for spline-interpolated data. |
Scaling2D |
Modifies 2D object scaling. Type is usually Vector2 or CubicHermite2D for spline-interpolated data. |
Scaling3D |
Modifies 3D object scaling. Type is usually Vector3 or CubicHermite3D for spline-interpolated data. |
Custom |
This and all higher values are for importer-specific targets. |
enum class Magnum:: Trade:: CameraType: UnsignedByte
#include <Magnum/Trade/CameraData.h>
Camera type.
Enumerators | |
---|---|
Orthographic2D |
2D orthographic camera |
Orthographic3D |
3D orthographic camera |
Perspective3D |
3D perspective camera |
enum class Magnum:: Trade:: DataFlag: UnsignedByte new in 2020.06
#include <Magnum/Trade/Data.h>
Data flag.
Used to describe data contained in various classes returned from AbstractImporter interfaces and also data passed internally in the importer itself.
Enumerators | |
---|---|
Owned |
Data is owned by the instance, meaning it stays in scope for as long as the instance. If neither DataFlag:: |
ExternallyOwned new in Git master |
Data has an owner external to the instance, for example a memory-mapped file or a constant memory. In general the data lifetime exceeds lifetime of the instance wrapping it. If neither DataFlag:: |
Global new in Git master |
Data is global, for example stored in static memory, so guaranteed to never go out of scope. Usually such data are not DataFlag:: |
Mutable |
Data is mutable. If this flag is not set, the instance might be for example referencing a readonly memory-mapped file or a constant memory. |
enum class Magnum:: Trade:: LightType: UnsignedByte new in Git master
#include <Magnum/Trade/LightData.h>
Light type.
Enumerators | |
---|---|
Ambient new in Git master |
Ambient light, without any position, direction or attenuation. Meant to be added to ambient color in Phong workflows, has no use in physically based workflows. |
Directional new in Git master |
Light at a position that is infinitely far away, emitted in a direction of negative Z axis. The rotation is inherited from absolute object transformation; scale and position don't affect the light in any way. Because the light is at infinite distance, it's not attenuated in any way. |
Infinite |
Directional light. |
Point |
Point light, emitting light in all directions. The position is inherited from absolute object transformation; scale and rotation don't affect the light in any way. Brightness attenuates depending on the LightData:: |
Spot |
Spot light, emitting light in a cone in direction of local negative Z axis. The position and rotation is inherited from absolute object transformation; scale doesn't affect the light in any way. The angle and falloff of the cone is defined using LightData:: |
enum class Magnum:: Trade:: MaterialLayer: UnsignedInt new in Git master
#include <Magnum/Trade/MaterialData.h>
Material layer name.
Convenience aliases to actual layer name strings. The alias is in the same form and capitalization — so for example MaterialLayer::"ClearCoat"
. Each layer is expected to contain (a subset of) the MaterialAttribute::
Enumerators | |
---|---|
ClearCoat |
Clear coat material layer. Expected to contain (a subset of) the MaterialAttribute:: |
enum class Magnum:: Trade:: MaterialAttribute: UnsignedInt new in Git master
#include <Magnum/Trade/MaterialData.h>
Material attribute name.
Convenience aliases to actual attribute name strings. In most cases the alias is in the same form and capitalization — so for example MaterialAttribute::"DoubleSided"
, the only exception is MaterialAttribute::" LayerName"
(with a space at the front).
When this enum is used in MaterialAttributeData constructors, the data are additionally checked for type compatibility. Other than that, there is no difference to the string variants.
Each attribute value documents the default value that should be used if the attribute isn't present. Some attributes, such as *Texture
, have no defaults — in that case it means the material doesn't use given feature.
Enumerators | |
---|---|
LayerName |
Layer name, MaterialAttributeType:: Unlike other attributes where string name matches the enum name, in this case the corresponding string is Default value is an empty string. |
AlphaMask |
Alpha mask, MaterialAttributeType:: If set together with MaterialAttribute:: Default value is |
AlphaBlend |
Alpha blending, MaterialAttributeType:: If Default value is |
DoubleSided |
Double sided, MaterialAttributeType:: Default value is |
AmbientColor |
Ambient color for Phong materials, MaterialAttributeType:: If MaterialAttribute:: Default value is |
AmbientTexture |
Ambient texture index for Phong materials, MaterialAttributeType:: If MaterialAttribute:: |
AmbientTextureMatrix |
Ambient texture transformation matrix for Phong materials, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is an identity matrix. |
AmbientTextureCoordinates |
Ambient texture coordinate set index for Phong materials, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is |
AmbientTextureLayer |
Ambient texture array layer for Phong materials, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is |
DiffuseColor |
Diffuse color for Phong or PBR specular/glossiness materials, MaterialAttributeType:: If MaterialAttribute:: Default value is |
DiffuseTexture |
Diffuse texture index for Phong or PBR specular/glossiness materials, MaterialAttributeType:: If MaterialAttribute:: |
DiffuseTextureMatrix |
Diffuse texture transformation matrix for Phong or PBR specular/glossiness materials, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is an identity matrix. |
DiffuseTextureCoordinates |
Diffuse texture coordinate set index for Phong or PBR specular/glossiness materials, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is |
DiffuseTextureLayer |
Diffuse texture array layer for Phong materials, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is |
SpecularColor |
Specular color for Phong or PBR specular/glossiness materials, MaterialAttributeType:: If MaterialAttribute:: Default value is |
SpecularTexture |
Specular texture index for Phong or PBR specular/glossiness materials, MaterialAttributeType:: If MaterialAttribute:: Default value is |
SpecularTextureSwizzle |
Specular texture swizzle for Phong or PBR specular/glossiness materials, MaterialAttributeType:: Can be used to describe whether the alpha channel of a MaterialAttribute:: Default value is MaterialTextureSwizzle:: |
SpecularTextureMatrix |
Specular texture transformation matrix for Phong or PBR specular/glossiness materials, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is an identity matrix. |
SpecularTextureCoordinates |
Specular texture coordinate set index for Phong or PBR specular/glossiness materials, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is |
SpecularTextureLayer |
Specular texture array layer for Phong materials, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is |
Shininess |
Shininess value for Phong materials, MaterialAttributeType:: No default value is specified for this attribute. |
BaseColor |
Base color for PBR metallic/roughness materials, MaterialAttributeType:: If MaterialAttribute:: Default value is |
BaseColorTexture |
Base color texture index for PBR metallic/roughness materials, MaterialAttributeType:: If MaterialAttribute:: |
BaseColorTextureMatrix |
Base color texture transformation matrix for PBR metallic/roughness materials, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is an identity matrix. |
BaseColorTextureCoordinates |
Base color texture coordinate set index for PBR metallic/roughness materials, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is |
BaseColorTextureLayer |
Base color texture array layer for PBR metallic/roughness materials, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is |
Metalness |
Metalness for PBR metallic/roughness materials, MaterialAttributeType:: If MaterialAttribute:: Default value is |
MetalnessTexture |
Metalness texture index for PBR metallic/roughness materials, MaterialAttributeType:: If MaterialAttribute:: |
MetalnessTextureSwizzle |
Metalness texture swizzle for PBR metallic/roughness materials, MaterialAttributeType:: Can be used to express arbitrary packing of MaterialAttribute:: Default value is MaterialTextureSwizzle:: |
MetalnessTextureMatrix |
Metalness texture transformation matrix for PBR metallic/roughness materials, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is an identity matrix. |
MetalnessTextureCoordinates |
Metalness texture coordinate set index for PBR metallic/roughness materials, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is |
MetalnessTextureLayer |
Metalness texture array layer for PBR metallic/roughness materials, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is |
Roughness |
Roughness for PBR metallic/roughness materials, MaterialAttributeType:: If MaterialAttribute:: Default value is |
RoughnessTexture |
Roughness texture index for PBR metallic/roughness materials, MaterialAttributeType:: If MaterialAttribute:: |
RoughnessTextureSwizzle |
Roughness texture swizzle for PBR metallic/roughness materials, MaterialAttributeType:: Can be used to express arbitrary packing of MaterialAttribute:: Default value is MaterialTextureSwizzle:: |
RoughnessTextureMatrix |
Roughness texture transformation matrix for PBR metallic/roughness materials, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is an identity matrix. |
RoughnessTextureCoordinates |
Roughness texture coordinate set index for PBR metallic/roughness materials, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is |
RoughnessTextureLayer |
Roughness texture array layer for PBR metallic/roughness materials, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is |
NoneRoughnessMetallicTexture |
Combined roughness/metallic texture index for PBR metallic/roughness materials with metalness in the blue channel and roughness in the green channel, MaterialAttributeType:: If MaterialAttribute:: This is a convenience alias to simplify representation of glTF and UE4 materials, which is where this packing is used (rationale). This packing (and other variants) can be alternatively specified as a pair of MaterialAttribute:: |
Glossiness |
Glossiness for PBR specular/glossiness materials, MaterialAttributeType:: If MaterialAttribute:: Default value is |
GlossinessTexture |
Glossiness texture index for PBR specular/glossiness materials, MaterialAttributeType:: If MaterialAttribute:: |
GlossinessTextureSwizzle |
Glossiness texture swizzle for PBR specular/glossiness materials, MaterialAttributeType:: Can be used to express arbitrary packing of MaterialAttribute:: Default value is MaterialTextureSwizzle:: |
GlossinessTextureMatrix |
Glossiness texture transformation matrix for PBR specular/glossiness materials, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is an identity matrix. |
GlossinessTextureCoordinates |
Glossiness texture coordinate set index for PBR specular/glossiness materials, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is |
GlossinessTextureLayer |
Metalness texture array layer for PBR specular/glossiness materials, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is |
SpecularGlossinessTexture |
Combined specular/glossiness texture index for PBR specular/glossiness materials with specular color in the RGB channels and glossiness in alpha, MaterialAttributeType:: If MaterialAttribute:: |
NormalTexture |
Tangent-space normal map texture index, MaterialAttributeType:: If MaterialAttribute:: |
NormalTextureScale |
Normal texture scale, MaterialAttributeType:: Scales the texture defined by MaterialAttribute:: Default value is |
NormalTextureSwizzle |
Normal texture swizzle, MaterialAttributeType:: Can be used to express arbitrary packing together with other maps in a single texture. A two- or three-channel swizzle value is expected. If the texture is just two-component, the remaining component is implicit and calculated as . In order to account for numeric issues and avoid negative values under the square root, it's commonly done as . Additionally, to mitigate artifacts when storing normal texture in a compressed format, MaterialTextureSwizzle:: Shader code that is able to reconstruct a XYZ normal from both RG and GA variants assuming constant values in other channels (source): /* Assumes (1, y, 1, x) or (x, y, <anything>, 1) */ vec3 unpackTwoChannelNormal(vec4 packed) { packed.x *= packed.w; /* reconstruct Z */ vec3 normal; normal.xy = packed.xy*2.0 - 1.0; normal.z = sqrt(max(0.0, 1.0 - dot(normal.xy, normal.xy))); return normal; } Default value is MaterialTextureSwizzle:: |
NormalTextureMatrix |
Normal texture transformation matrix, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is an identity matrix. |
NormalTextureCoordinates |
Normal texture coordinate set index, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is |
NormalTextureLayer |
Normal texture array layer, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is |
OcclusionTexture |
Occlusion texture index, MaterialAttributeType:: Single-channel texture that multiplies the resulting material color : If MaterialAttribute:: |
OcclusionTextureStrength |
Occlusion texture strength, MaterialAttributeType:: Affects the texture defined by MaterialAttribute:: Default value is |
OcclusionTextureSwizzle |
Occlusion texture swizzle, MaterialAttributeType:: Can be used to express arbitrary packing together with other maps in a single texture. A single-channel swizzle value is expected. Default value is MaterialTextureSwizzle:: |
OcclusionTextureMatrix |
Occlusion texture transformation matrix, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is an identity matrix. |
OcclusionTextureCoordinates |
Occlusion texture coordinate set index, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is |
OcclusionTextureLayer |
Occlusion texture array layer, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is |
EmissiveColor |
Emissive color, MaterialAttributeType:: If MaterialAttribute:: Default value is |
EmissiveTexture |
Emissive texture index, MaterialAttributeType:: If MaterialAttribute:: |
EmissiveTextureMatrix |
Emissive texture transformation matrix, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is an identity matrix. |
EmissiveTextureCoordinates |
Emissive texture coordinate set index, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is |
EmissiveTextureLayer |
Emissive texture array layer, MaterialAttributeType:: Has a precedence over MaterialAttribute:: Default value is |
LayerFactor |
Layer intensity. MaterialAttributeType:: Expected to be contained in additional layers, not the base material. The exact semantic of this attribute is layer-specific. If MaterialAttribute:: Default value is |
LayerFactorTexture |
Layer intensity texture, MaterialAttributeType:: Expected to be contained in additional layers, not the base material. The exact semantic of this attribute is layer-specific. If MaterialAttribute:: |
LayerFactorTextureSwizzle |
Layer intensity texture swizzle, MaterialAttributeType:: Can be used to express arbitrary packing together with other maps in a single texture. A single-channel swizzle value is expected. Default value is MaterialTextureSwizzle:: |
LayerFactorTextureMatrix |
Layer intensity texture transformation matrix, MaterialAttributeType:: Expected to be contained in additional layers, not the base material. Has a precedence over MaterialAttribute:: Default value is an identity matrix. |
LayerFactorTextureCoordinates |
Layer intensity texture coordinate set index, MaterialAttributeType:: Expected to be contained in additional layers, not the base material. Has a precedence over MaterialAttribute:: Default value is |
LayerFactorTextureLayer |
Layer intensity texture array layer, MaterialAttributeType:: Expected to be contained in additional layers, not the base material. Has a precedence over MaterialAttribute:: Default value is |
TextureMatrix |
Common texture transformation matrix for all textures, MaterialAttributeType:: MaterialAttribute:: Default value is an identity matrix. |
TextureCoordinates |
Common texture coordinate set index for all textures, MaterialAttributeType:: MaterialAttribute:: Default value is |
TextureLayer |
Common texture array layer for all textures, MaterialAttributeType:: MaterialAttribute:: Default value is |
enum class Magnum:: Trade:: MaterialTextureSwizzle: UnsignedInt new in Git master
#include <Magnum/Trade/MaterialData.h>
Material texture swizzle.
See MaterialData for more information.
Enumerators | |
---|---|
R |
Red component |
G |
Green component |
B |
Blue component |
A |
Alpha component |
RG |
Red and green component |
GB |
Green and blue component |
GA |
Green and alpha component. May get used to mitigate artifacts when storing two independent channels (such as two-channel normal maps) in compressed texture formats — these commonly have separately compressed RGB and alpha, with green channel having the most precision of the RGB triplet. |
BA |
Blue and alpha component |
RGB |
RGB components |
GBA |
GBA components |
RGBA |
RGBA components |
enum class Magnum:: Trade:: MaterialAttributeType: UnsignedByte new in Git master
#include <Magnum/Trade/MaterialData.h>
Material attribute type.
See MaterialData for more information.
Enumerators | |
---|---|
Bool |
|
Float | |
Deg | |
Rad | |
UnsignedInt | |
Int | |
UnsignedLong | |
Long | |
Vector2 | |
Vector2ui | |
Vector2i | |
Vector3 | |
Vector3ui | |
Vector3i | |
Vector4 | |
Vector4ui | |
Vector4i | |
Matrix2x2 | |
Matrix2x3 | |
Matrix2x4 | |
Matrix3x2 | |
Matrix3x3 | |
Matrix3x4 | |
Matrix4x2 | |
Matrix4x3 | |
Pointer |
|
MutablePointer |
|
String |
Null-terminated string. Can be stored using any type convertible to Containers:: |
Buffer |
Opaque data. Can be stored using any type convertible to Containers:: |
TextureSwizzle |
One of the values from MaterialTextureSwizzle |
enum class Magnum:: Trade:: MaterialType: UnsignedInt
#include <Magnum/Trade/MaterialData.h>
Material type.
Enumerators | |
---|---|
Flat |
Flat. Use FlatMaterialData for convenience attribute access. Materials of this type are generally not combined with any other types. |
Phong |
Phong. Use PhongMaterialData for convenience attribute access. |
PbrMetallicRoughness |
PBR metallic/roughness. Use PbrMetallicRoughnessMaterialData for convenience attribute access. |
PbrSpecularGlossiness |
PBR specular/glossiness. Use PbrSpecularGlossinessMaterialData for convenience attribute access. |
PbrClearCoat |
PBR clear coat layer. Use PbrClearCoatMaterialData for convenience attribute access. |
enum class Magnum:: Trade:: MaterialAlphaMode: UnsignedByte
#include <Magnum/Trade/MaterialData.h>
Material alpha mode.
Convenience access to MaterialAttribute::
Enumerators | |
---|---|
Opaque |
Alpha value is ignored and the rendered output is fully opaque. |
Mask |
The rendered output is either fully transparent or fully opaque, depending on the alpha value and specified MaterialData:: |
Blend |
The alpha value is used to combine source and destination colors using additive blending. |
enum class Magnum:: Trade:: MeshAttribute: UnsignedShort new in 2020.06
#include <Magnum/Trade/MeshData.h>
Mesh attribute name.
See MeshData for more information.
Apart from the builtin attribute names it's possible to have custom ones, which use the upper half of the enum range. Those are detected via isMeshAttributeCustom() and can be converted to and from a numeric identifier using meshAttributeCustom(MeshAttribute) and meshAttributeCustom(UnsignedShort). Unlike the builtin ones, these can be of any type. An importer that exposes custom attributes then may also provide a string mapping using AbstractImporter::
Enumerators | |
---|---|
Position |
Position. Type is usually VertexFormat:: |
Tangent |
Tangent, optionally including bitangent sign. In the first case the type is usually VertexFormat:: Vector3 bitangent = Math::cross(normal, tangent.xyz())*tangent.w(); When used as a morph target attribute, the handedness shouldn't change compared to the base attribute. It's not checked or enforced in any way though. Corresponds to Shaders:: |
Bitangent |
Bitangent. Type is usually VertexFormat:: When used as a morph target attribute, the handedness shouldn't change compared to the base attribute. It's not checked or enforced in any way though. Corresponds to Shaders:: |
Normal |
Normal. Type is usually VertexFormat:: |
TextureCoordinates |
Texture coordinates. Type is usually VertexFormat:: |
Color |
Vertex color. Type is usually VertexFormat:: |
JointIds new in Git master |
Skin joint IDs. Array attribute, type is usually VertexFormat:: Count of instances of this attribute and array size of each instance is expected to match instance count and array sizes of MeshAttribute:: Corresponds to Shaders:: |
Weights new in Git master |
Skin weights. Array attribute, type is usually VertexFormat:: Count of instances of this attribute and array size of each instance is expected to match instance count and array sizes of MeshAttribute:: Corresponds to Shaders:: |
ObjectId |
(Instanced) object ID for editor selection or scene annotation. Type is usually VertexFormat:: This attribute isn't allowed to be a morph target. Corresponds to Shaders:: |
enum class Magnum:: Trade:: ObjectInstanceType2D: UnsignedByte
#include <Magnum/Trade/ObjectData2D.h>
Type of instance held by given 2D object.
Enumerators | |
---|---|
Camera |
Camera instance (see CameraData) |
Mesh |
Mesh instance. The data can be cast to MeshObjectData2D to provide more information. |
Empty |
Empty |
enum class Magnum:: Trade:: ObjectFlag2D: UnsignedByte
#include <Magnum/Trade/ObjectData2D.h>
2D object flag
Enumerators | |
---|---|
HasTranslationRotationScaling |
The object provides separate translation / rotation / scaling properties. The ObjectData2D:: |
enum class Magnum:: Trade:: ObjectInstanceType3D: UnsignedByte
#include <Magnum/Trade/ObjectData3D.h>
Type of instance held by given 3D object.
Enumerators | |
---|---|
Camera |
Camera instance (see CameraData) |
Light |
Light instance (see LightData) |
Mesh |
Mesh instance. The data can be cast to MeshObjectData3D to provide more information. |
Empty |
Empty |
enum class Magnum:: Trade:: ObjectFlag3D: UnsignedByte
#include <Magnum/Trade/ObjectData3D.h>
3D object flag
Enumerators | |
---|---|
HasTranslationRotationScaling |
The object provides separate translation / rotation / scaling properties. The ObjectData3D:: |
enum class Magnum:: Trade:: SceneMappingType: UnsignedByte new in Git master
#include <Magnum/Trade/SceneData.h>
Scene object mapping type.
Type used for mapping fields to corresponding objects. Unlike SceneFieldType that is different for different fields, the object mapping type is the same for all fields, and is guaranteed to be large enough to fit SceneData::
Enumerators | |
---|---|
UnsignedByte | |
UnsignedShort | |
UnsignedInt | |
UnsignedLong |
enum class Magnum:: Trade:: SceneField: UnsignedInt new in Git master
#include <Magnum/Trade/SceneData.h>
Scene field name.
See SceneData for more information.
Apart from the builtin field names it's possible to have custom ones, which use the upper half of the enum range. While it's unlikely to have billions of custom fields, the enum intentionally reserves a full 31-bit range to avoid the need to remap field identifiers coming from 3rd party ECS frameworks, for example.
Custom fields are detected via isSceneFieldCustom() and can be converted to and from a numeric identifier using sceneFieldCustom(SceneField) and sceneFieldCustom(UnsignedInt). Unlike the builtin ones, these can be of any type. An importer that exposes custom fields then may also provide a string mapping using AbstractImporter::
Enumerators | |
---|---|
Parent |
Parent object. Type is usually SceneFieldType:: |
Transformation |
Transformation. Type is usually SceneFieldType:: The transformation can be also represented by separate SceneField:: |
Translation |
Translation. Type is usually SceneFieldType:: The translation field usually is (but doesn't have to be) complemented by a SceneField:: |
Rotation |
Rotation. Type is usually SceneFieldType:: The rotation field usually is (but doesn't have to be) complemented by a SceneField:: |
Scaling |
Scaling. Type is usually SceneFieldType:: The scaling field usually is (but doesn't have to be) complemented by a SceneField:: |
Mesh |
ID of a mesh associated with this object, corresponding to the ID passed to AbstractImporter:: Usually complemented with a SceneField:: |
MeshMaterial |
ID of a material for a SceneField:: |
Light |
ID of a light associated with this object, corresponding to the ID passed to AbstractImporter:: |
Camera |
ID of a camera associated with this object, corresponding to the ID passed to AbstractImporter:: |
Skin |
ID of a skin associated with this object, corresponding to the ID passed to AbstractImporter:: |
ImporterState |
Importer state for given object, per-object counterpart to scene-specific SceneData:: |
enum class Magnum:: Trade:: SceneFieldType: UnsignedShort new in Git master
#include <Magnum/Trade/SceneData.h>
Scene field type.
A type in which a SceneField is stored. See SceneData for more information.
Enumerators | |
---|---|
Bit |
A single bit or an array of bits. Use SceneData:: |
Float | |
Half | |
Double | |
UnsignedByte | |
Byte | |
UnsignedShort | |
Short | |
UnsignedInt | |
Int | |
UnsignedLong | |
Long | |
Vector2 | |
Vector2h | |
Vector2d | |
Vector2ub | |
Vector2b | |
Vector2us | |
Vector2s | |
Vector2ui | |
Vector2i | |
Vector3 | |
Vector3h | |
Vector3d | |
Vector3ub | |
Vector3b | |
Vector3us | |
Vector3s | |
Vector3ui | |
Vector3i | |
Vector4 | |
Vector4h | |
Vector4d | |
Vector4ub | |
Vector4b | |
Vector4us | |
Vector4s | |
Vector4ui | |
Vector4i | |
Matrix2x2 | |
Matrix2x2h | |
Matrix2x2d | |
Matrix2x3 | |
Matrix2x3h | |
Matrix2x3d | |
Matrix2x4 | |
Matrix2x4h | |
Matrix2x4d | |
Matrix3x2 | |
Matrix3x2h | |
Matrix3x2d | |
Matrix3x3 | |
Matrix3x3h | |
Matrix3x3d | |
Matrix3x4 | |
Matrix3x4h | |
Matrix3x4d | |
Matrix4x2 | |
Matrix4x2h | |
Matrix4x2d | |
Matrix4x3 | |
Matrix4x3h | |
Matrix4x3d | |
Matrix4x4 | |
Matrix4x4h | |
Matrix4x4d | |
Range1D | |
Range1Dh | |
Range1Dd | |
Range1Di | |
Range2D | |
Range2Dh | |
Range2Dd | |
Range2Di | |
Range3D | |
Range3Dh | |
Range3Dd | |
Range3Di | |
Complex | |
Complexd | |
DualComplex | |
DualComplexd | |
Quaternion | |
Quaterniond | |
DualQuaternion | |
DualQuaterniond | |
Deg | |
Degh | |
Degd | |
Rad | |
Radh | |
Radd | |
Pointer |
|
MutablePointer |
|
StringOffset32 |
32-bit string offsets with implicit sizes. Use SceneData:: Internally, the first string starts at SceneData:: The |
StringOffset8 |
8-bit string offsets with implicit sizes. Use SceneData:: The internal layout is similar to SceneFieldType:: |
StringOffset16 |
16-bit string offsets with implicit sizes. Use SceneData:: The internal layout is similar to SceneFieldType:: |
StringOffset64 |
64-bit string offsets with implicit sizes. Use SceneData:: The internal layout is similar to SceneFieldType:: |
StringRange32 |
Containers:: Internally, string The main use case for |
StringRange8 |
Containers:: The internal layout is similar to SceneFieldType:: |
StringRange16 |
Containers:: The internal layout is similar to SceneFieldType:: |
StringRange64 |
Containers:: The internal layout is similar to SceneFieldType:: |
StringRangeNullTerminated32 |
32-bit offsets to null-terminated strings. Use SceneData:: Compared to SceneFieldType:: Internally, string |
StringRangeNullTerminated8 |
8-bit offsets to null-terminated strings. Use SceneData:: The internal layout is similar to SceneFieldType:: |
StringRangeNullTerminated16 |
16-bit offsets to null-terminated strings. Use SceneData:: The internal layout is similar to SceneFieldType:: |
StringRangeNullTerminated64 |
32-bit offsets to null-terminated strings. Use SceneData:: The internal layout is similar to SceneFieldType:: |
enum class Magnum:: Trade:: SceneFieldFlag: UnsignedByte new in Git master
#include <Magnum/Trade/SceneData.h>
Scene field flag.
Enumerators | |
---|---|
OffsetOnly |
The field is offset-only, i.e. doesn't contain the data views directly but referes to unspecified external data. Set implicitly by the SceneFieldData:: |
OrderedMapping |
The field has an ordered object mapping, i.e. a monotonically increasing sequence. Object IDs in fields marked with this flag can be looked up with an complexity, gaps and duplicates are possible. Note that validity of the object mapping data isn't checked in any way and if the data doesn't correspond to rules of the flag, queries such as SceneData:: If a field has neither this nor the SceneFieldFlag:: |
ImplicitMapping |
The field has an implicit object mapping, i.e. a contiguous sequence from 0 up to size of the field. A superset of SceneFieldFlag:: Note that validity of the object mapping data isn't checked in any way and if the data doesn't correspond to rules of the flag, queries such as SceneData:: If a field has neither this nor the SceneFieldFlag:: |
MultiEntry |
The field may have multiple entries for the same object. Meant to be used as a hint to distinguish between fields that are expected to have at most one entry for an object and fields that can have multiple entries for an object but sometimes have just one. Note that presence of this flag isn't enforced in any way, fields without this flag may still have multiple entries for the same object. Can't be set for SceneField:: |
NullTerminatedString |
The string field is null-terminated, i.e. string views returned from SceneData:: Can only be set for string SceneFieldType. |
enum class Magnum:: Trade:: TextureType: UnsignedByte new in Git master
#include <Magnum/Trade/TextureData.h>
Texture type.
Enumerators | |
---|---|
Texture1D |
One-dimensional texture. The TextureData:: |
Texture1DArray new in Git master |
One-dimensional texture array. The TextureData:: |
Texture2D |
Two-dimensional texture. The TextureData:: |
Texture2DArray new in Git master |
Two-dimensional texture array. The TextureData:: |
Texture3D |
Three-dimensional texture. The TextureData:: |
CubeMap new in Git master |
Cube map texture. The TextureData:: |
CubeMapArray new in Git master |
Cube map texture array. The TextureData:: |
Cube |
Cube map texture. |
Typedef documentation
typedef Containers:: EnumSet<ImageConverterFeature> Magnum:: Trade:: ImageConverterFeatures new in 2020.06
Features supported by an image converter.
typedef Containers:: EnumSet<ImageConverterFlag> Magnum:: Trade:: ImageConverterFlags new in 2020.06
Image converter flags.
typedef Containers:: EnumSet<ImporterFeature> Magnum:: Trade:: ImporterFeatures new in 2020.06
#include <Magnum/Trade/AbstractImporter.h>
Set of features supported by an importer.
typedef InputFileCallbackPolicy Magnum:: Trade:: ImporterFileCallbackPolicy
#include <Magnum/Trade/AbstractImporter.h>
Input file callback policy.
typedef Containers:: EnumSet<ImporterFlag> Magnum:: Trade:: ImporterFlags new in 2020.06
#include <Magnum/Trade/AbstractImporter.h>
Importer flags.
typedef MaterialData Magnum:: Trade:: AbstractMaterialData
Material data.
typedef Containers:: EnumSet<SceneConverterFeature> Magnum:: Trade:: SceneConverterFeatures new in 2020.06
Features supported by a scene converter.
typedef Containers:: EnumSet<SceneConverterFlag> Magnum:: Trade:: SceneConverterFlags new in 2020.06
Scene converter flags.
typedef Containers:: EnumSet<SceneContent> Magnum:: Trade:: SceneContents new in Git master
Scene contents.
Content to be taken from an AbstractImporter and passed to an AbstractSceneConverter in AbstractSceneConverter::
typedef AnimationTrackTarget Magnum:: Trade:: AnimationTrackTargetType
#include <Magnum/Trade/AnimationData.h>
Target of an animation track.
typedef Containers:: EnumSet<DataFlag> Magnum:: Trade:: DataFlags new in 2020.06
#include <Magnum/Trade/Data.h>
Data flags.
typedef ImageData<1> Magnum:: Trade:: ImageData1D
#include <Magnum/Trade/ImageData.h>
One-dimensional image data.
typedef ImageData<2> Magnum:: Trade:: ImageData2D
#include <Magnum/Trade/ImageData.h>
Two-dimensional image data.
typedef ImageData<3> Magnum:: Trade:: ImageData3D
#include <Magnum/Trade/ImageData.h>
Three-dimensional image data.
typedef Containers:: EnumSet<MaterialType> Magnum:: Trade:: MaterialTypes new in Git master
#include <Magnum/Trade/MaterialData.h>
Material types.
typedef Containers:: EnumSet<ObjectFlag2D> Magnum:: Trade:: ObjectFlags2D
#include <Magnum/Trade/ObjectData2D.h>
2D object flags
typedef Containers:: EnumSet<ObjectFlag3D> Magnum:: Trade:: ObjectFlags3D
#include <Magnum/Trade/ObjectData3D.h>
3D object flags
typedef Containers:: EnumSet<SceneFieldFlag> Magnum:: Trade:: SceneFieldFlags new in Git master
#include <Magnum/Trade/SceneData.h>
Scene field flags.
typedef SkinData<2> Magnum:: Trade:: SkinData2D new in Git master
#include <Magnum/Trade/SkinData.h>
Two-dimensional skin data.
typedef SkinData<3> Magnum:: Trade:: SkinData3D new in Git master
#include <Magnum/Trade/SkinData.h>
Three-dimensional skin data.
Function documentation
Debug& Magnum:: Trade:: operator<<(Debug& debug,
ImageConverterFeature value)
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
ImageConverterFeatures value)
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
ImageConverterFlag value) new in 2020.06
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
ImageConverterFlags value) new in 2020.06
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
ImporterFeature value)
#include <Magnum/Trade/AbstractImporter.h>
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
ImporterFeatures value)
#include <Magnum/Trade/AbstractImporter.h>
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
ImporterFlag value) new in 2020.06
#include <Magnum/Trade/AbstractImporter.h>
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
ImporterFlags value) new in 2020.06
#include <Magnum/Trade/AbstractImporter.h>
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
SceneConverterFeature value)
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
SceneConverterFeatures value)
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
SceneConverterFlag value) new in 2020.06
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
SceneConverterFlags value) new in 2020.06
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
SceneContent value) new in Git master
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
SceneContents value) new in Git master
Debug output operator.
SceneContents Magnum:: Trade:: sceneContentsFor(const AbstractImporter& importer) new in Git master
Scene contents for an importer.
Returns contents exposed by given importer, i.e. all for which the importer returns a non-zero count. Expects that the importer is opened. SceneContent::
SceneContents Magnum:: Trade:: sceneContentsFor(const AbstractSceneConverter& converter) new in Git master
Scene contents supported by a converter.
Returns contents supported by given converter, as exposed via AbstractSceneConverter::
Debug& Magnum:: Trade:: operator<<(Debug& debug,
AnimationTrackType value)
#include <Magnum/Trade/AnimationData.h>
Debug output operator.
UnsignedInt Magnum:: Trade:: animationTrackTypeSize(AnimationTrackType type) new in Git master
#include <Magnum/Trade/AnimationData.h>
Size of given animation track data type.
UnsignedInt Magnum:: Trade:: animationTrackTypeAlignment(AnimationTrackType type) new in Git master
#include <Magnum/Trade/AnimationData.h>
Alignment of given animation track data type.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
AnimationTrackTarget value)
#include <Magnum/Trade/AnimationData.h>
Debug output operator.
bool Magnum:: Trade:: isAnimationTrackTargetCustom(AnimationTrackTarget name) constexpr new in Git master
#include <Magnum/Trade/AnimationData.h>
Whether a target for an animation track is custom.
Returns true
if name
has a value in the upper 15 bits of the enum range, false
otherwise.
AnimationTrackTarget Magnum:: Trade:: animationTrackTargetCustom(UnsignedShort id) constexpr new in Git master
#include <Magnum/Trade/AnimationData.h>
Create a custom target for an animation track.
Returns a custom animation track target with index id
. The index is expected to fit into 15 bits. Use animationTrackTargetCustom(AnimationTrackTarget) to get the index back.
UnsignedShort Magnum:: Trade:: animationTrackTargetCustom(AnimationTrackTarget name) constexpr new in Git master
#include <Magnum/Trade/AnimationData.h>
Get index of a custom target for an animation track.
Inverse to animationTrackTargetCustom(UnsignedShort). Expects that the type is custom.
#include <Magnum/Trade/AnimationData.h>
template<class V, class R = Animation::ResultOf<V>>
auto Magnum:: Trade:: animationInterpolatorFor(Animation:: Interpolation interpolation)
Animation interpolator function for given interpolation behavior.
To be used from importer plugins — wrapper around Animation::
Debug& Magnum:: Trade:: operator<<(Debug& debug,
CameraType value)
#include <Magnum/Trade/CameraData.h>
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
DataFlag value) new in 2020.06
#include <Magnum/Trade/Data.h>
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
DataFlags value) new in 2020.06
#include <Magnum/Trade/Data.h>
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
LightType value)
#include <Magnum/Trade/LightData.h>
Debug output operator.
Containers:: StringView Magnum:: Trade:: materialLayerName(MaterialLayer layer)
#include <Magnum/Trade/MaterialData.h>
Material layer name as a string.
Expects that layer
is a valid MaterialLayer value. The returned view has both Containers::
Debug& Magnum:: Trade:: operator<<(Debug& debug,
MaterialLayer value) new in Git master
#include <Magnum/Trade/MaterialData.h>
Debug output operator.
Containers:: StringView Magnum:: Trade:: materialAttributeName(MaterialAttribute attribute) new in Git master
#include <Magnum/Trade/MaterialData.h>
Material layer name as a string.
Expects that attribute
is a valid MaterialAttribute value. The returned view has both Containers::
Debug& Magnum:: Trade:: operator<<(Debug& debug,
MaterialAttribute value) new in Git master
#include <Magnum/Trade/MaterialData.h>
Debug output operator.
UnsignedInt Magnum:: Trade:: materialTextureSwizzleComponentCount(MaterialTextureSwizzle swizzle) new in Git master
#include <Magnum/Trade/MaterialData.h>
Component count in a material texture swizzle.
Returns for example 2
for MaterialTextureSwizzle::
Debug& Magnum:: Trade:: operator<<(Debug& debug,
MaterialTextureSwizzle value) new in Git master
#include <Magnum/Trade/MaterialData.h>
Debug output operator.
std:: size_t Magnum:: Trade:: materialAttributeTypeSize(MaterialAttributeType type) new in Git master
#include <Magnum/Trade/MaterialData.h>
Byte size of a material attribute type.
Can't be used with MaterialAttributeType::
Debug& Magnum:: Trade:: operator<<(Debug& debug,
MaterialAttributeType value) new in Git master
#include <Magnum/Trade/MaterialData.h>
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
MaterialType value)
#include <Magnum/Trade/MaterialData.h>
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
MaterialTypes value)
#include <Magnum/Trade/MaterialData.h>
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
MaterialAlphaMode value)
#include <Magnum/Trade/MaterialData.h>
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
MaterialData:: Flag value)
#include <Magnum/Trade/MaterialData.h>
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
MaterialData:: Flags value)
#include <Magnum/Trade/MaterialData.h>
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
MeshAttribute value) new in 2020.06
#include <Magnum/Trade/MeshData.h>
Debug output operator.
bool Magnum:: Trade:: isMeshAttributeCustom(MeshAttribute name) constexpr new in 2020.06
#include <Magnum/Trade/MeshData.h>
Whether a mesh attribute is custom.
Returns true
if name
has a value in the upper 15 bits of the enum range, false
otherwise.
MeshAttribute Magnum:: Trade:: meshAttributeCustom(UnsignedShort id) constexpr new in 2020.06
#include <Magnum/Trade/MeshData.h>
Create a custom mesh attribute.
Returns a custom mesh attribute with index id
. The index is expected to fit into 15 bits. Use meshAttributeCustom(MeshAttribute) to get the index back.
UnsignedShort Magnum:: Trade:: meshAttributeCustom(MeshAttribute name) constexpr new in 2020.06
#include <Magnum/Trade/MeshData.h>
Get index of a custom mesh attribute.
Inverse to meshAttributeCustom(UnsignedShort). Expects that the attribute is custom.
Containers:: Array<MeshAttributeData> Magnum:: Trade:: meshAttributeDataNonOwningArray(Containers:: ArrayView<const MeshAttributeData> view) new in 2020.06
#include <Magnum/Trade/MeshData.h>
Create a non-owning array of MeshAttributeData items.
Useful when you have the attribute definitions statically defined (for example when the vertex data themselves are already defined at compile time) and don't want to allocate just to pass those to MeshData. See documentation about populating a MeshData instance for more information.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
ObjectInstanceType2D value)
#include <Magnum/Trade/ObjectData2D.h>
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
ObjectFlag2D value)
#include <Magnum/Trade/ObjectData2D.h>
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
ObjectFlags2D value)
#include <Magnum/Trade/ObjectData2D.h>
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
ObjectInstanceType3D value)
#include <Magnum/Trade/ObjectData3D.h>
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
ObjectFlag3D value)
#include <Magnum/Trade/ObjectData3D.h>
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
ObjectFlags3D value)
#include <Magnum/Trade/ObjectData3D.h>
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
PhongMaterialData:: Flag value)
#include <Magnum/Trade/PhongMaterialData.h>
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
SceneMappingType value) new in Git master
#include <Magnum/Trade/SceneData.h>
Debug output operator.
UnsignedInt Magnum:: Trade:: sceneMappingTypeSize(SceneMappingType type) new in Git master
#include <Magnum/Trade/SceneData.h>
Size of given scene object mapping type.
UnsignedInt Magnum:: Trade:: sceneMappingTypeAlignment(SceneMappingType type) new in Git master
#include <Magnum/Trade/SceneData.h>
Alignment of given scene object mapping type.
Returns the same value as sceneMappingTypeSize().
Debug& Magnum:: Trade:: operator<<(Debug& debug,
SceneField value) new in Git master
#include <Magnum/Trade/SceneData.h>
Debug output operator.
bool Magnum:: Trade:: isSceneFieldCustom(SceneField name) constexpr new in Git master
#include <Magnum/Trade/SceneData.h>
Whether a scene field is custom.
Returns true
if name
has a value in the upper 31 bits of the enum range, false
otherwise.
SceneField Magnum:: Trade:: sceneFieldCustom(UnsignedInt id) constexpr new in Git master
#include <Magnum/Trade/SceneData.h>
Create a custom scene field.
Returns a custom scene field with index id
. The index is expected to fit into 31 bits. Use sceneFieldCustom(SceneField) to get the index back.
UnsignedInt Magnum:: Trade:: sceneFieldCustom(SceneField name) constexpr new in Git master
#include <Magnum/Trade/SceneData.h>
Get index of a custom scene field.
Inverse to sceneFieldCustom(UnsignedInt). Expects that the field is custom.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
SceneFieldType value) new in Git master
#include <Magnum/Trade/SceneData.h>
Debug output operator.
UnsignedInt Magnum:: Trade:: sceneFieldTypeSize(SceneFieldType type) new in Git master
#include <Magnum/Trade/SceneData.h>
Size of given scene field type.
Expects that type
isn't SceneFieldType::
UnsignedInt Magnum:: Trade:: sceneFieldTypeAlignment(SceneFieldType type) new in Git master
#include <Magnum/Trade/SceneData.h>
Alignment of given scene field type.
Expects that type
isn't SceneFieldType::
Debug& Magnum:: Trade:: operator<<(Debug& debug,
SceneFieldFlag value) new in Git master
#include <Magnum/Trade/SceneData.h>
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
SceneFieldFlags value) new in Git master
#include <Magnum/Trade/SceneData.h>
Debug output operator.
Containers:: Array<SceneFieldData> Magnum:: Trade:: sceneFieldDataNonOwningArray(Containers:: ArrayView<const SceneFieldData> view) new in Git master
#include <Magnum/Trade/SceneData.h>
Create a non-owning array of SceneFieldData items.
Useful when you have the field definitions statically defined (for example when the data themselves are already defined at compile time) and don't want to allocate just to pass those to SceneData.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
TextureType value)
#include <Magnum/Trade/TextureData.h>
Debug output operator.