110#define AiCreateFuncs(_name, _type) \
111AI_API void AiMetaDataSet##_name (AtNodeEntry* nentry, const AtString param, const AtString name, _type value); \
112inline void AiMetaDataSet##_name (AtNodeEntry* nentry, const char* param, const char* name, _type value) \
114 AiMetaDataSet##_name(nentry, AtString(param), AtString(name), value); \
117AiCreateFuncs(Bool,
bool)
118AiCreateFuncs(Int,
int)
119AiCreateFuncs(Flt,
float)
120AiCreateFuncs(RGB,
AtRGB)
121AiCreateFuncs(RGBA,
AtRGBA)
127inline void AiMetaDataSetStr(
AtNodeEntry* nentry,
const char* param,
const char* name,
const char* value)
129 AiMetaDataSetStr(nentry, param, name,
AtString(value));
160#define AiCreateFuncs(_name, _type) \
161AI_API bool AiMetaDataGet##_name(const AtNodeEntry* nentry, const AtString param, const AtString name, _type* value);\
162inline AI_DEPRECATED bool AiMetaDataGet##_name(const AtNodeEntry* nentry, const char* param, const char* name, _type* value) \
164 return AiMetaDataGet##_name(nentry, AtString(param), AtString(name), value); \
167AiCreateFuncs(Bool,
bool)
168AiCreateFuncs(Int,
int)
169AiCreateFuncs(Flt,
float)
170AiCreateFuncs(RGB,
AtRGB)
171AiCreateFuncs(RGBA,
AtRGBA)
200#define AiCreateFuncs(_name, _type) \
201AI_API void AiMetadataStoreSet##_name(AtMetadataStore* mds, const AtString name, _type value); \
202AI_API void AiMetadataStoreParamSet##_name(AtMetadataStore* mds, const AtString param, const AtString name, _type value);
204AiCreateFuncs(Bool,
bool)
205AiCreateFuncs(Int,
int)
206AiCreateFuncs(Flt,
float)
207AiCreateFuncs(RGB,
AtRGB)
215 AiMetadataStoreSetStr(mds, name,
AtString(value));
220 AiMetadataStoreParamSetStr(mds, param, name,
AtString(value));
247#define AiCreateFuncs(_name, _type) \
248AI_API bool AiMetadataStoreGet##_name(const AtMetadataStore* mds, const AtString name, _type* value); \
249AI_API bool AiMetadataStoreParamGet##_name(const AtMetadataStore* mds, const AtString param, const AtString name, _type* value);
251AiCreateFuncs(Bool,
bool)
252AiCreateFuncs(Int,
int)
253AiCreateFuncs(Flt,
float)
254AiCreateFuncs(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:46
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