Open Search
    materialexport.h File Reference

    Classes

    class  MaterialExportInterface
     
    struct  MaterialExportDescription
     

    Namespaces

     maxon
     
     maxon::material
     
     maxon::material::EXPORT
     
     maxon::material::EXPORT::CONFIG
     

    Typedefs

    using MaterialTypesMap = HashMap< Id, MaterialTypeSupport >
     

    Enumerations

    enum class  MaterialTypeSupport {
      DIRECT ,
      MAPPED
    }
     
    enum class  TextureSupport {
      NONE ,
      TEXTUREBUFFER ,
      IMAGEREFERENCE ,
      SUBSTANCEREFERENCE ,
      ALL
    }
     
    enum class  TextureResize {
      ALWAYS ,
      OFF ,
      DONT_ENLARGE
    }
     

    Functions

    enum maxon::material::MaterialTypeSupport MAXON_ENUM_LIST (MaterialTypeSupport)
     
     MAXON_DATATYPE (MaterialTypesMap, "net.maxon.material.datatype.materialtypesmap")
     
    enum maxon::material::EXPORT::TextureSupport MAXON_ENUM_FLAGS (TextureSupport)
     
    enum maxon::material::EXPORT::TextureResize MAXON_ENUM_LIST (TextureResize)
     
     MAXON_ATTRIBUTE (Id, NODESPACEID, "spaceId")
     
     MAXON_ATTRIBUTE (MaterialTypesMap, MATERIALTYPESWITHSUPPORT, "materialTypes")
     
     MAXON_ATTRIBUTE (IntVector2d, TEXTUREDIMENSIONS, "textureDimensions")
     
     MAXON_ATTRIBUTE (TextureResize, TEXTURE_RESIZE, "textureResize")
     
     MAXON_ATTRIBUTE (TextureSupport, TEXTURESUPPORT, "textureSupport")
     
     MAXON_DATATYPE (MaterialExportDescription, "net.maxon.material.datatype.materialexportdescription")
     
     MAXON_REGISTRY (MaterialExportDescription, MaterialExporters, "net.maxon.material.registry.materialexporters")
     

    Variables

     DIRECT
     
     MAPPED
     
     NONE
     
     TEXTUREBUFFER
     
     IMAGEREFERENCE
     
     SUBSTANCEREFERENCE
     
     ALL
     
     ALWAYS
     
     OFF
     
     DONT_ENLARGE
     
    maxon::material::MaterialExportInterface MAXON_ENUM_LIST
     

    Variable Documentation

    ◆ DIRECT

    DIRECT

    ◆ MAPPED

    MAPPED

    ◆ NONE

    NONE

    Indicates support for no kind of data in MaterialExchangeData::_textures.

    ◆ TEXTUREBUFFER

    TEXTUREBUFFER

    Indicates that data of type TextureBuffer can be consumed by the caller.

    ◆ IMAGEREFERENCE

    IMAGEREFERENCE

    Indicates that data of type ImageReference can be consumed by the caller.

    ◆ SUBSTANCEREFERENCE

    SUBSTANCEREFERENCE

    Indicates that data of type SubstanceReference can be consumed by the caller.

    ◆ ALL

    ALL

    ◆ ALWAYS

    ALWAYS

    Legacy behaviour. Textures should be up- and downscaled to the requested texture dimensions.

    ◆ OFF

    OFF

    Textures should be passed with their native resolution.

    ◆ DONT_ENLARGE

    DONT_ENLARGE

    Textures should only be downscaled to the requested texture dimensions.