6 #ifndef MATERIALX_MDLSYNTAX_H
7 #define MATERIALX_MDLSYNTAX_H
42 static const string CONST_QUALIFIER;
70 string modifyPortName(
const string& word)
const;
74 string replaceSourceCodeMarkers(
const string& nodeName,
const string& soureCode, std::function<
string(
const string&)> lambda)
const;
77 const string& getMdlVersionSuffixMarker()
const;
static const string SOURCE_FILE_EXTENSION
static const StringVec FILTERLOOKUPMODE_MEMBERS
#define MATERIALX_NAMESPACE_BEGIN
vector< string > StringVec
A vector of strings.
virtual string getArrayTypeSuffix(TypeDesc, const Value &) const
Return the array suffix to use for declaring an array type.
GLsizei const GLfloat * value
static const StringVec VECTOR3_MEMBERS
string getArrayVariableSuffix(TypeDesc, const Value &) const override
Override to indicate array variables have no array suffix.
MATERIALX_NAMESPACE_BEGIN MX_CORE_API const string EMPTY_STRING
shared_ptr< Syntax > SyntaxPtr
Shared pointer to a Syntax.
**But if you need a result
const string & getSourceFileExtension() const override
Return the file extension used for source code files in this language.
shared_ptr< class TypeSystem > TypeSystemPtr
static const string PORT_NAME_PREFIX
static const StringVec SCATTER_MODE_MEMBERS
static const StringVec COLOR3_MEMBERS
GLint GLint GLsizei GLint GLenum GLenum type
static const StringVec DISTRIBUTIONTYPE_MEMBERS
static const StringVec FILTERTYPE_MEMBERS
static const string UNIFORM_QUALIFIER
static const StringVec VECTOR4_MEMBERS
A generic, discriminated value, whose type may be queried dynamically.
static const StringVec ADDRESSMODE_MEMBERS
GLuint const GLchar * name
virtual bool remapEnumeration(const string &value, TypeDesc type, const string &enumNames, std::pair< TypeDesc, ValuePtr > &result) const
#define TYPEDESC_DEFINE_TYPE(T, name, basetype, semantic, size)
Macro to define global type descriptions for commonly used types.
static const StringVec SHEEN_MODE_MEMBERS
static const StringVec VECTOR2_MEMBERS
const string & getConstantQualifier() const override
static const StringVec COORDINATESPACE_MEMBERS
shared_ptr< MdlSyntax > MdlSyntaxPtr
Shared pointer to an MdlSyntax.
#define MATERIALX_NAMESPACE_END
static const StringVec COLOR4_MEMBERS
static SyntaxPtr create(TypeSystemPtr typeSystem)
virtual void makeValidName(string &name) const
Modify the given name string to remove any invalid characters or tokens.
const string & getUniformQualifier() const override