122#define AiCreateFuncs(_name, _type) \
123AI_API void AiMetaDataSet##_name (AtNodeEntry* nentry, const AtString param, const AtString name, _type value); \
124inline void AiMetaDataSet##_name (AtNodeEntry* nentry, const char* param, const char* name, _type value) \
126 AiMetaDataSet##_name(nentry, AtString(param), AtString(name), value); \
129AiCreateFuncs(Bool,
bool)
130AiCreateFuncs(Int,
int)
131AiCreateFuncs(Flt,
float)
132AiCreateFuncs(RGB,
AtRGB)
133AiCreateFuncs(RGBA,
AtRGBA)
139inline void AiMetaDataSetStr(
AtNodeEntry* nentry,
const char* param,
const char* name,
const char* value)
141 AiMetaDataSetStr(nentry, param, name,
AtString(value));
172#define AiCreateFuncs(_name, _type) \
173AI_API bool AiMetaDataGet##_name(const AtNodeEntry* nentry, const AtString param, const AtString name, _type* value);\
174inline AI_DEPRECATED bool AiMetaDataGet##_name(const AtNodeEntry* nentry, const char* param, const char* name, _type* value) \
176 return AiMetaDataGet##_name(nentry, AtString(param), AtString(name), value); \
179AiCreateFuncs(Bool,
bool)
180AiCreateFuncs(Int,
int)
181AiCreateFuncs(Flt,
float)
182AiCreateFuncs(RGB,
AtRGB)
183AiCreateFuncs(RGBA,
AtRGBA)
212#define AiCreateFuncs(_name, _type) \
213AI_API void AiMetadataStoreSet##_name(AtMetadataStore* mds, const AtString name, _type value); \
214AI_API void AiMetadataStoreParamSet##_name(AtMetadataStore* mds, const AtString param, const AtString name, _type value);
216AiCreateFuncs(Bool,
bool)
217AiCreateFuncs(Int,
int)
218AiCreateFuncs(Flt,
float)
219AiCreateFuncs(RGB,
AtRGB)
227 AiMetadataStoreSetStr(mds, name,
AtString(value));
232 AiMetadataStoreParamSetStr(mds, param, name,
AtString(value));
259#define AiCreateFuncs(_name, _type) \
260AI_API bool AiMetadataStoreGet##_name(const AtMetadataStore* mds, const AtString name, _type* value); \
261AI_API bool AiMetadataStoreParamGet##_name(const AtMetadataStore* mds, const AtString param, const AtString name, _type* value);
263AiCreateFuncs(Bool,
bool)
264AiCreateFuncs(Int,
int)
265AiCreateFuncs(Flt,
float)
266AiCreateFuncs(RGB,
AtRGB)
DLL export prefix for API functions (necessary for multi-platform development)
Color types and utilities.
AtNodeEntry type and methods.
AtString class for fast comparisons.
Vector math types, operators and utilities.
Arnold String allows for fast string comparisons.
Definition: ai_string.h:54
This represents a node type in Arnold.
RGB color + alpha.
Definition: ai_color.h:267
RGB color.
Definition: ai_color.h:32
2D point
Definition: ai_vector.h:255
3D point (single precision)
Definition: ai_vector.h:30