MaterialX 1.39.2
Loading...
Searching...
No Matches
Library.h File Reference

Library-wide includes and types. More...

#include <algorithm>
#include <cstdlib>
#include <functional>
#include <memory>
#include <set>
#include <string>
#include <unordered_map>
#include <vector>
#include <MaterialXCore/Generated.h>

Go to the source code of this file.

Macros

#define MATERIALX_GENERATE_INDEX(major, minor, build)
 
#define MATERIALX_VERSION_INDEX    MATERIALX_GENERATE_INDEX(MATERIALX_MAJOR_VERSION, MATERIALX_MINOR_VERSION, MATERIALX_BUILD_VERSION)
 
#define MATERIALX_SYMBOL_EXPORT
 Platform-specific macros for declaring imported and exported symbols.
 
#define MATERIALX_SYMBOL_IMPORT
 
#define MATERIALX_EXPORT_EXTERN_TEMPLATE(...)
 
#define MATERIALX_IMPORT_EXTERN_TEMPLATE(...)
 

Typedefs

using StringVec = vector<string>
 A vector of strings.
 
using StringMap = std::unordered_map<string, string>
 An unordered map with strings as both keys and values.
 
using StringSet = std::set<string>
 A set of strings.
 

Detailed Description

Library-wide includes and types.

This file should be the first include for any public header in the MaterialX library.

Macro Definition Documentation

◆ MATERIALX_GENERATE_INDEX

#define MATERIALX_GENERATE_INDEX ( major,
minor,
build )
Value:
((((uint32_t)(major)) << 22U) | (((uint32_t)(minor)) << 12U) | ((uint32_t)(build)))