namespace
TradeData format exchange.
Contents
- Reference
Contains plugin interfaces for importing data of various formats and classes for direct access to the data.
This library is built if WITH_TRADE
is enabled when building Magnum. To use this library with CMake, you need to 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 Magnum::Trade)
See Downloading and building and Usage with CMake for more information.
Additional plugins are built separately, see particular Trade::*Importer
and *ImageConverter
class 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 AbstractMaterialData
- Base for material data.
- class AnyImageConverter
- Any image converter plugin.
- class AnyImageImporter
- Any image importer plugin.
- class AnySceneImporter
- Any scene importer plugin.
- class AssimpImporter
- Assimp importer.
- class CameraData
- 3D camera data
- class ColladaImporter
- Collada importer plugin.
- class DdsImporter
- DDS image importer plugin.
- class DevIlImageImporter
- DevIL Image importer plugin.
-
template<UnsignedInt dimensions>class ImageData
- Image data.
- class JpegImporter
- JPEG importer plugin.
- class LightData
- Light data.
- class MeshData2D
- Two-dimensional mesh data.
- class MeshData3D
- Three-dimensional mesh data.
- class MeshObjectData2D
- Two-dimensional mesh object data.
- class MeshObjectData3D
- Three-dimensional mesh object data.
- class MiniExrImageConverter
- OpenEXR image converter plugin using miniexr.
- class ObjectData2D
- Two-dimensional object data.
- class ObjectData3D
- Three-dimensional object data.
- class ObjImporter
- OBJ importer plugin.
- class OpenGexImporter
- OpenGEX importer.
- class PhongMaterialData
- Phong material data.
- class PngImageConverter
- PNG image converter plugin.
- class PngImporter
- PNG importer plugin.
- class SceneData
- Scene data.
- class StanfordImporter
- Stanford PLY importer plugin.
- class StbImageConverter
- Image converter plugin using stb_image_write.
- class StbImageImporter
- Image importer plugin using stb_image.
- class TextureData
- Texture data.
- class TgaImageConverter
- TGA image converter plugin.
- class TgaImporter
- TGA importer plugin.
- class TinyGltfImporter
- TinyGltf importer plugin.
Enums
- enum class MaterialType: UnsignedByte { Phong }
- Material type.
- enum class ObjectInstanceType2D: UnsignedByte { Camera, Mesh, Empty }
- Type of instance held by given 2D object.
- enum class ObjectInstanceType3D: UnsignedByte { Camera, Light, Mesh, Empty }
- Type of instance held by given 3D object.
Typedefs
- using ImageData1D = ImageData<1>
- One-dimensional image.
- using ImageData2D = ImageData<2>
- Two-dimensional image.
- using ImageData3D = ImageData<3>
- Three-dimensional image.
Functions
- auto operator<<(Debug& debug, MaterialType value) -> Debug&
- Debug output operator.
-
auto operator<<(Debug& debug,
LightData::
Type value) -> Debug& - Debug output operator.
- auto operator<<(Debug& debug, ObjectInstanceType2D value) -> Debug&
- Debug output operator.
- auto operator<<(Debug& debug, ObjectInstanceType3D value) -> Debug&
- Debug output operator.
-
auto operator<<(Debug& debug,
PhongMaterialData::
Flag value) -> Debug& - Debug output operator.
-
auto operator<<(Debug& debug,
PhongMaterialData::
Flags value) -> Debug& - Debug output operator.
-
auto operator<<(Debug& debug,
TextureData::
Type value) -> Debug& - Debug output operator.
Enum documentation
enum class Magnum:: Trade:: MaterialType: UnsignedByte
Material type.
Enumerators | |
---|---|
Phong |
Phong shading (see PhongMaterialData) |
enum class Magnum:: Trade:: ObjectInstanceType2D: UnsignedByte
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:: ObjectInstanceType3D: UnsignedByte
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 |
Function documentation
Debug& Magnum:: Trade:: operator<<(Debug& debug,
MaterialType value)
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
LightData:: Type value)
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
ObjectInstanceType2D value)
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
ObjectInstanceType3D value)
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
PhongMaterialData:: Flag value)
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
PhongMaterialData:: Flags value)
Debug output operator.
Debug& Magnum:: Trade:: operator<<(Debug& debug,
TextureData:: Type value)
Debug output operator.