ai_shader_userdef.h
1 /*
2  * Arnold API header file
3  * Copyright (c) 1998-2009 Marcos Fajardo, (c) 2009-2013 Solid Angle SL
4  */
5 
11 #pragma once
12 #include "ai_shaderglobals.h"
13 #include "ai_array.h"
14 #include "ai_color.h"
15 #include "ai_matrix.h"
16 #include "ai_vector.h"
17 #include "ai_types.h"
18 #include "ai_nodes.h"
19 
70 #define AiUDataGetBool(_name,_val) AiUserGetBoolFunc (_name, sg, _val)
71 #define AiUDataGetByte(_name,_val) AiUserGetByteFunc (_name, sg, _val)
72 #define AiUDataGetInt(_name,_val) AiUserGetIntFunc (_name, sg, _val)
73 #define AiUDataGetUInt(_name,_val) AiUserGetUIntFunc (_name, sg, _val)
74 #define AiUDataGetFlt(_name,_val) AiUserGetFltFunc (_name, sg, _val)
75 #define AiUDataGetRGB(_name,_val) AiUserGetRGBFunc (_name, sg, _val)
76 #define AiUDataGetRGBA(_name,_val) AiUserGetRGBAFunc (_name, sg, _val)
77 #define AiUDataGetVec(_name,_val) AiUserGetVecFunc (_name, sg, _val)
78 #define AiUDataGetPnt(_name,_val) AiUserGetPntFunc (_name, sg, _val)
79 #define AiUDataGetPnt2(_name,_val) AiUserGetPnt2Func (_name, sg, _val)
80 #define AiUDataGetStr(_name,_val) AiUserGetStrFunc (_name, sg, _val)
81 #define AiUDataGetPtr(_name,_val) AiUserGetPtrFunc (_name, sg, _val)
82 #define AiUDataGetNode(_name,_val) AiUserGetNodeFunc (_name, sg, _val)
83 #define AiUDataGetArray(_name,_val) AiUserGetArrayFunc (_name, sg, _val)
84 #define AiUDataGetMatrix(_name,_val) AiUserGetMatrixFunc(_name, sg, _val)
85 /*\}*/
86 
87 
111 #define AiUDataGetDxyDerivativesFlt(_name,_dx_val,_dy_val) AiUserGetDxyDerivativesFltFunc (_name, sg, _dx_val, _dy_val)
112 #define AiUDataGetDxyDerivativesRGB(_name,_dx_val,_dy_val) AiUserGetDxyDerivativesRGBFunc (_name, sg, _dx_val, _dy_val)
113 #define AiUDataGetDxyDerivativesRGBA(_name,_dx_val,_dy_val) AiUserGetDxyDerivativesRGBAFunc (_name, sg, _dx_val, _dy_val)
114 #define AiUDataGetDxyDerivativesVec(_name,_dx_val,_dy_val) AiUserGetDxyDerivativesVecFunc (_name, sg, _dx_val, _dy_val)
115 #define AiUDataGetDxyDerivativesPnt(_name,_dx_val,_dy_val) AiUserGetDxyDerivativesPntFunc (_name, sg, _dx_val, _dy_val)
116 #define AiUDataGetDxyDerivativesPnt2(_name,_dx_val,_dy_val) AiUserGetDxyDerivativesPnt2Func (_name, sg, _dx_val, _dy_val)
117 #define AiUDataGetDxyDerivativesArray(_name,_dx_val,_dy_val) AiUserGetDxyDerivativesArrayFunc (_name, sg, _dx_val, _dy_val)
118 #define AiUDataGetDxyDerivativesMatrix(_name,_dx_val,_dy_val) AiUserGetDxyDerivativesMatrixFunc(_name, sg, _dx_val, _dy_val)
119 /*\}*/
120 
121 
122 /*\}*/
123 
124 
125 AI_API bool AiUserGetBoolFunc (const char*, const AtShaderGlobals*, bool* );
126 AI_API bool AiUserGetByteFunc (const char*, const AtShaderGlobals*, AtByte* );
127 AI_API bool AiUserGetIntFunc (const char*, const AtShaderGlobals*, int* );
128 AI_API bool AiUserGetUIntFunc (const char*, const AtShaderGlobals*, unsigned int*);
129 AI_API bool AiUserGetFltFunc (const char*, const AtShaderGlobals*, float* );
130 AI_API bool AiUserGetRGBFunc (const char*, const AtShaderGlobals*, AtRGB* );
131 AI_API bool AiUserGetRGBAFunc (const char*, const AtShaderGlobals*, AtRGBA* );
132 AI_API bool AiUserGetVecFunc (const char*, const AtShaderGlobals*, AtVector* );
133 AI_API bool AiUserGetPntFunc (const char*, const AtShaderGlobals*, AtPoint* );
134 AI_API bool AiUserGetPnt2Func (const char*, const AtShaderGlobals*, AtPoint2* );
135 AI_API bool AiUserGetStrFunc (const char*, const AtShaderGlobals*, const char** );
136 AI_API bool AiUserGetPtrFunc (const char*, const AtShaderGlobals*, void** );
137 AI_API bool AiUserGetNodeFunc (const char*, const AtShaderGlobals*, AtNode** );
138 AI_API bool AiUserGetArrayFunc (const char*, const AtShaderGlobals*, AtArray** );
139 AI_API bool AiUserGetMatrixFunc(const char*, const AtShaderGlobals*, AtMatrix* );
140 
141 AI_API bool AiUserGetDxyDerivativesFltFunc (const char*, const AtShaderGlobals*, float*, float* );
142 AI_API bool AiUserGetDxyDerivativesRGBFunc (const char*, const AtShaderGlobals*, AtRGB*, AtRGB* );
143 AI_API bool AiUserGetDxyDerivativesRGBAFunc (const char*, const AtShaderGlobals*, AtRGBA*, AtRGBA* );
144 AI_API bool AiUserGetDxyDerivativesVecFunc (const char*, const AtShaderGlobals*, AtVector*, AtVector*);
145 AI_API bool AiUserGetDxyDerivativesPntFunc (const char*, const AtShaderGlobals*, AtPoint*, AtPoint* );
146 AI_API bool AiUserGetDxyDerivativesPnt2Func (const char*, const AtShaderGlobals*, AtPoint2*, AtPoint2*);
147 AI_API bool AiUserGetDxyDerivativesArrayFunc (const char*, const AtShaderGlobals*, AtArray**, AtArray**);
148 AI_API bool AiUserGetDxyDerivativesMatrixFunc(const char*, const AtShaderGlobals*, AtMatrix*, AtMatrix*);

© 2009-2013 Solid Angle SL · all rights reserved · www.solidangle.com