Advertisement
Guest User

Untitled

a guest
Feb 29th, 2016
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 369.02 KB | None | 0 0
  1. /*
  2. ** Lua binding: bind_anl
  3. */
  4.  
  5. #ifndef __cplusplus
  6. #include "stdlib.h"
  7. #endif
  8. #include "string.h"
  9.  
  10. #include "toluapp/tolua++.h"
  11.  
  12. /* Exported function */
  13. TOLUA_API int tolua_bind_anl_open (lua_State* tolua_S);
  14.  
  15. #include "ANL/VM/vm.h"
  16. #include "ANL/VM/instruction.h"
  17. #include "ANL/VM/kernel.h"
  18. #include "ANL/VM/coordinate.h"
  19. #include "ANL/VM/random_gen.h"
  20. #include "ANL/Imaging/imaging.h"
  21. using namespace anl;
  22.  
  23. /* function to release collected object via destructor */
  24. #ifdef __cplusplus
  25.  
  26. static int tolua_collect_CNoiseExecutor (lua_State* tolua_S)
  27. {
  28. CNoiseExecutor* self = (CNoiseExecutor*) tolua_tousertype(tolua_S,1,0);
  29. Mtolua_delete(self);
  30. return 0;
  31. }
  32.  
  33. static int tolua_collect_SMappingRanges (lua_State* tolua_S)
  34. {
  35. SMappingRanges* self = (SMappingRanges*) tolua_tousertype(tolua_S,1,0);
  36. Mtolua_delete(self);
  37. return 0;
  38. }
  39.  
  40. static int tolua_collect_CVec2i (lua_State* tolua_S)
  41. {
  42. CVec2i* self = (CVec2i*) tolua_tousertype(tolua_S,1,0);
  43. Mtolua_delete(self);
  44. return 0;
  45. }
  46.  
  47. static int tolua_collect_CArray3Drgba (lua_State* tolua_S)
  48. {
  49. CArray3Drgba* self = (CArray3Drgba*) tolua_tousertype(tolua_S,1,0);
  50. Mtolua_delete(self);
  51. return 0;
  52. }
  53.  
  54. static int tolua_collect_SVMOutput (lua_State* tolua_S)
  55. {
  56. SVMOutput* self = (SVMOutput*) tolua_tousertype(tolua_S,1,0);
  57. Mtolua_delete(self);
  58. return 0;
  59. }
  60.  
  61. static int tolua_collect_KISS (lua_State* tolua_S)
  62. {
  63. KISS* self = (KISS*) tolua_tousertype(tolua_S,1,0);
  64. Mtolua_delete(self);
  65. return 0;
  66. }
  67.  
  68. static int tolua_collect_CVec4i (lua_State* tolua_S)
  69. {
  70. CVec4i* self = (CVec4i*) tolua_tousertype(tolua_S,1,0);
  71. Mtolua_delete(self);
  72. return 0;
  73. }
  74.  
  75. static int tolua_collect_CArray2Dd (lua_State* tolua_S)
  76. {
  77. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  78. Mtolua_delete(self);
  79. return 0;
  80. }
  81.  
  82. static int tolua_collect_MWC256 (lua_State* tolua_S)
  83. {
  84. MWC256* self = (MWC256*) tolua_tousertype(tolua_S,1,0);
  85. Mtolua_delete(self);
  86. return 0;
  87. }
  88.  
  89. static int tolua_collect_CVec2f (lua_State* tolua_S)
  90. {
  91. CVec2f* self = (CVec2f*) tolua_tousertype(tolua_S,1,0);
  92. Mtolua_delete(self);
  93. return 0;
  94. }
  95.  
  96. static int tolua_collect_CCoordinate (lua_State* tolua_S)
  97. {
  98. CCoordinate* self = (CCoordinate*) tolua_tousertype(tolua_S,1,0);
  99. Mtolua_delete(self);
  100. return 0;
  101. }
  102.  
  103. static int tolua_collect_CArray3Dd (lua_State* tolua_S)
  104. {
  105. CArray3Dd* self = (CArray3Dd*) tolua_tousertype(tolua_S,1,0);
  106. Mtolua_delete(self);
  107. return 0;
  108. }
  109.  
  110. static int tolua_collect_CInstructionIndex (lua_State* tolua_S)
  111. {
  112. CInstructionIndex* self = (CInstructionIndex*) tolua_tousertype(tolua_S,1,0);
  113. Mtolua_delete(self);
  114. return 0;
  115. }
  116.  
  117. static int tolua_collect_CVec3f (lua_State* tolua_S)
  118. {
  119. CVec3f* self = (CVec3f*) tolua_tousertype(tolua_S,1,0);
  120. Mtolua_delete(self);
  121. return 0;
  122. }
  123.  
  124. static int tolua_collect_CArray2Drgba (lua_State* tolua_S)
  125. {
  126. CArray2Drgba* self = (CArray2Drgba*) tolua_tousertype(tolua_S,1,0);
  127. Mtolua_delete(self);
  128. return 0;
  129. }
  130.  
  131. static int tolua_collect_CVec3i (lua_State* tolua_S)
  132. {
  133. CVec3i* self = (CVec3i*) tolua_tousertype(tolua_S,1,0);
  134. Mtolua_delete(self);
  135. return 0;
  136. }
  137.  
  138. static int tolua_collect_Xorshift (lua_State* tolua_S)
  139. {
  140. Xorshift* self = (Xorshift*) tolua_tousertype(tolua_S,1,0);
  141. Mtolua_delete(self);
  142. return 0;
  143. }
  144.  
  145. static int tolua_collect_CMWC4096 (lua_State* tolua_S)
  146. {
  147. CMWC4096* self = (CMWC4096*) tolua_tousertype(tolua_S,1,0);
  148. Mtolua_delete(self);
  149. return 0;
  150. }
  151.  
  152. static int tolua_collect_SRGBA (lua_State* tolua_S)
  153. {
  154. SRGBA* self = (SRGBA*) tolua_tousertype(tolua_S,1,0);
  155. Mtolua_delete(self);
  156. return 0;
  157. }
  158.  
  159. static int tolua_collect_anl__SRGBA (lua_State* tolua_S)
  160. {
  161. anl::SRGBA* self = (anl::SRGBA*) tolua_tousertype(tolua_S,1,0);
  162. Mtolua_delete(self);
  163. return 0;
  164. }
  165.  
  166. static int tolua_collect_LCG (lua_State* tolua_S)
  167. {
  168. LCG* self = (LCG*) tolua_tousertype(tolua_S,1,0);
  169. Mtolua_delete(self);
  170. return 0;
  171. }
  172.  
  173. static int tolua_collect_CKernel (lua_State* tolua_S)
  174. {
  175. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  176. Mtolua_delete(self);
  177. return 0;
  178. }
  179. #endif
  180.  
  181.  
  182. /* function to register type */
  183. static void tolua_reg_types (lua_State* tolua_S)
  184. {
  185. tolua_usertype(tolua_S,"CInstructionListType");
  186. tolua_usertype(tolua_S,"CNoiseExecutor");
  187. tolua_usertype(tolua_S,"SMappingRanges");
  188. tolua_usertype(tolua_S,"CVec3f");
  189. tolua_usertype(tolua_S,"CArray3Drgba");
  190. tolua_usertype(tolua_S,"SVMOutput");
  191. tolua_usertype(tolua_S,"KISS");
  192. tolua_usertype(tolua_S,"CVec4i");
  193. tolua_usertype(tolua_S,"CArray2Dd");
  194. tolua_usertype(tolua_S,"MWC256");
  195. tolua_usertype(tolua_S,"CVec2f");
  196. tolua_usertype(tolua_S,"CCoordinate");
  197. tolua_usertype(tolua_S,"CBasePRNG");
  198. tolua_usertype(tolua_S,"CVec2i");
  199. tolua_usertype(tolua_S,"CArray2Drgba");
  200. tolua_usertype(tolua_S,"CArray3Dd");
  201. tolua_usertype(tolua_S,"CInstructionIndex");
  202. tolua_usertype(tolua_S,"anl::SMappingRanges");
  203. tolua_usertype(tolua_S,"InstructionListType");
  204. tolua_usertype(tolua_S,"CVec3i");
  205. tolua_usertype(tolua_S,"Xorshift");
  206. tolua_usertype(tolua_S,"CMWC4096");
  207. tolua_usertype(tolua_S,"SRGBA");
  208. tolua_usertype(tolua_S,"anl::SRGBA");
  209. tolua_usertype(tolua_S,"LCG");
  210. tolua_usertype(tolua_S,"CKernel");
  211. }
  212.  
  213. /* function: highresTime */
  214. #ifndef TOLUA_DISABLE_tolua_bind_anl_highresTime00
  215. static int tolua_bind_anl_highresTime00(lua_State* tolua_S)
  216. {
  217. #ifndef TOLUA_RELEASE
  218. tolua_Error tolua_err;
  219. if (
  220. !tolua_isnoobj(tolua_S,1,&tolua_err)
  221. )
  222. goto tolua_lerror;
  223. else
  224. #endif
  225. {
  226. {
  227. double tolua_ret = (double) highresTime();
  228. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  229. }
  230. }
  231. return 1;
  232. #ifndef TOLUA_RELEASE
  233. tolua_lerror:
  234. tolua_error(tolua_S,"#ferror in function 'highresTime'.",&tolua_err);
  235. return 0;
  236. #endif
  237. }
  238. #endif //#ifndef TOLUA_DISABLE
  239.  
  240. /* method: new of class CVec2f */
  241. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec2f_new00
  242. static int tolua_bind_anl_CVec2f_new00(lua_State* tolua_S)
  243. {
  244. #ifndef TOLUA_RELEASE
  245. tolua_Error tolua_err;
  246. if (
  247. !tolua_isusertable(tolua_S,1,"CVec2f",0,&tolua_err) ||
  248. !tolua_isnoobj(tolua_S,2,&tolua_err)
  249. )
  250. goto tolua_lerror;
  251. else
  252. #endif
  253. {
  254. {
  255. CVec2f* tolua_ret = (CVec2f*) Mtolua_new((CVec2f)());
  256. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec2f");
  257. }
  258. }
  259. return 1;
  260. #ifndef TOLUA_RELEASE
  261. tolua_lerror:
  262. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  263. return 0;
  264. #endif
  265. }
  266. #endif //#ifndef TOLUA_DISABLE
  267.  
  268. /* method: new_local of class CVec2f */
  269. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec2f_new00_local
  270. static int tolua_bind_anl_CVec2f_new00_local(lua_State* tolua_S)
  271. {
  272. #ifndef TOLUA_RELEASE
  273. tolua_Error tolua_err;
  274. if (
  275. !tolua_isusertable(tolua_S,1,"CVec2f",0,&tolua_err) ||
  276. !tolua_isnoobj(tolua_S,2,&tolua_err)
  277. )
  278. goto tolua_lerror;
  279. else
  280. #endif
  281. {
  282. {
  283. CVec2f* tolua_ret = (CVec2f*) Mtolua_new((CVec2f)());
  284. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec2f");
  285. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  286. }
  287. }
  288. return 1;
  289. #ifndef TOLUA_RELEASE
  290. tolua_lerror:
  291. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  292. return 0;
  293. #endif
  294. }
  295. #endif //#ifndef TOLUA_DISABLE
  296.  
  297. /* method: delete of class CVec2f */
  298. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec2f_delete00
  299. static int tolua_bind_anl_CVec2f_delete00(lua_State* tolua_S)
  300. {
  301. #ifndef TOLUA_RELEASE
  302. tolua_Error tolua_err;
  303. if (
  304. !tolua_isusertype(tolua_S,1,"CVec2f",0,&tolua_err) ||
  305. !tolua_isnoobj(tolua_S,2,&tolua_err)
  306. )
  307. goto tolua_lerror;
  308. else
  309. #endif
  310. {
  311. CVec2f* self = (CVec2f*) tolua_tousertype(tolua_S,1,0);
  312. #ifndef TOLUA_RELEASE
  313. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  314. #endif
  315. Mtolua_delete(self);
  316. }
  317. return 0;
  318. #ifndef TOLUA_RELEASE
  319. tolua_lerror:
  320. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  321. return 0;
  322. #endif
  323. }
  324. #endif //#ifndef TOLUA_DISABLE
  325.  
  326. /* method: new of class CVec2f */
  327. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec2f_new01
  328. static int tolua_bind_anl_CVec2f_new01(lua_State* tolua_S)
  329. {
  330. tolua_Error tolua_err;
  331. if (
  332. !tolua_isusertable(tolua_S,1,"CVec2f",0,&tolua_err) ||
  333. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  334. !tolua_isnoobj(tolua_S,3,&tolua_err)
  335. )
  336. goto tolua_lerror;
  337. else
  338. {
  339. int a = ((int) tolua_tonumber(tolua_S,2,0));
  340. {
  341. CVec2f* tolua_ret = (CVec2f*) Mtolua_new((CVec2f)(a));
  342. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec2f");
  343. }
  344. }
  345. return 1;
  346. tolua_lerror:
  347. return tolua_bind_anl_CVec2f_new00(tolua_S);
  348. }
  349. #endif //#ifndef TOLUA_DISABLE
  350.  
  351. /* method: new_local of class CVec2f */
  352. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec2f_new01_local
  353. static int tolua_bind_anl_CVec2f_new01_local(lua_State* tolua_S)
  354. {
  355. tolua_Error tolua_err;
  356. if (
  357. !tolua_isusertable(tolua_S,1,"CVec2f",0,&tolua_err) ||
  358. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  359. !tolua_isnoobj(tolua_S,3,&tolua_err)
  360. )
  361. goto tolua_lerror;
  362. else
  363. {
  364. int a = ((int) tolua_tonumber(tolua_S,2,0));
  365. {
  366. CVec2f* tolua_ret = (CVec2f*) Mtolua_new((CVec2f)(a));
  367. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec2f");
  368. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  369. }
  370. }
  371. return 1;
  372. tolua_lerror:
  373. return tolua_bind_anl_CVec2f_new00_local(tolua_S);
  374. }
  375. #endif //#ifndef TOLUA_DISABLE
  376.  
  377. /* method: new of class CVec2f */
  378. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec2f_new02
  379. static int tolua_bind_anl_CVec2f_new02(lua_State* tolua_S)
  380. {
  381. tolua_Error tolua_err;
  382. if (
  383. !tolua_isusertable(tolua_S,1,"CVec2f",0,&tolua_err) ||
  384. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  385. !tolua_isnoobj(tolua_S,3,&tolua_err)
  386. )
  387. goto tolua_lerror;
  388. else
  389. {
  390. float a = ((float) tolua_tonumber(tolua_S,2,0));
  391. {
  392. CVec2f* tolua_ret = (CVec2f*) Mtolua_new((CVec2f)(a));
  393. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec2f");
  394. }
  395. }
  396. return 1;
  397. tolua_lerror:
  398. return tolua_bind_anl_CVec2f_new01(tolua_S);
  399. }
  400. #endif //#ifndef TOLUA_DISABLE
  401.  
  402. /* method: new_local of class CVec2f */
  403. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec2f_new02_local
  404. static int tolua_bind_anl_CVec2f_new02_local(lua_State* tolua_S)
  405. {
  406. tolua_Error tolua_err;
  407. if (
  408. !tolua_isusertable(tolua_S,1,"CVec2f",0,&tolua_err) ||
  409. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  410. !tolua_isnoobj(tolua_S,3,&tolua_err)
  411. )
  412. goto tolua_lerror;
  413. else
  414. {
  415. float a = ((float) tolua_tonumber(tolua_S,2,0));
  416. {
  417. CVec2f* tolua_ret = (CVec2f*) Mtolua_new((CVec2f)(a));
  418. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec2f");
  419. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  420. }
  421. }
  422. return 1;
  423. tolua_lerror:
  424. return tolua_bind_anl_CVec2f_new01_local(tolua_S);
  425. }
  426. #endif //#ifndef TOLUA_DISABLE
  427.  
  428. /* method: new of class CVec2f */
  429. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec2f_new03
  430. static int tolua_bind_anl_CVec2f_new03(lua_State* tolua_S)
  431. {
  432. tolua_Error tolua_err;
  433. if (
  434. !tolua_isusertable(tolua_S,1,"CVec2f",0,&tolua_err) ||
  435. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const CVec2f",0,&tolua_err)) ||
  436. !tolua_isnoobj(tolua_S,3,&tolua_err)
  437. )
  438. goto tolua_lerror;
  439. else
  440. {
  441. const CVec2f* tvec = ((const CVec2f*) tolua_tousertype(tolua_S,2,0));
  442. {
  443. CVec2f* tolua_ret = (CVec2f*) Mtolua_new((CVec2f)(*tvec));
  444. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec2f");
  445. }
  446. }
  447. return 1;
  448. tolua_lerror:
  449. return tolua_bind_anl_CVec2f_new02(tolua_S);
  450. }
  451. #endif //#ifndef TOLUA_DISABLE
  452.  
  453. /* method: new_local of class CVec2f */
  454. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec2f_new03_local
  455. static int tolua_bind_anl_CVec2f_new03_local(lua_State* tolua_S)
  456. {
  457. tolua_Error tolua_err;
  458. if (
  459. !tolua_isusertable(tolua_S,1,"CVec2f",0,&tolua_err) ||
  460. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const CVec2f",0,&tolua_err)) ||
  461. !tolua_isnoobj(tolua_S,3,&tolua_err)
  462. )
  463. goto tolua_lerror;
  464. else
  465. {
  466. const CVec2f* tvec = ((const CVec2f*) tolua_tousertype(tolua_S,2,0));
  467. {
  468. CVec2f* tolua_ret = (CVec2f*) Mtolua_new((CVec2f)(*tvec));
  469. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec2f");
  470. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  471. }
  472. }
  473. return 1;
  474. tolua_lerror:
  475. return tolua_bind_anl_CVec2f_new02_local(tolua_S);
  476. }
  477. #endif //#ifndef TOLUA_DISABLE
  478.  
  479. /* method: new of class CVec2f */
  480. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec2f_new04
  481. static int tolua_bind_anl_CVec2f_new04(lua_State* tolua_S)
  482. {
  483. tolua_Error tolua_err;
  484. if (
  485. !tolua_isusertable(tolua_S,1,"CVec2f",0,&tolua_err) ||
  486. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  487. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  488. !tolua_isnoobj(tolua_S,4,&tolua_err)
  489. )
  490. goto tolua_lerror;
  491. else
  492. {
  493. const float t1 = ((const float) tolua_tonumber(tolua_S,2,0));
  494. const float t2 = ((const float) tolua_tonumber(tolua_S,3,0));
  495. {
  496. CVec2f* tolua_ret = (CVec2f*) Mtolua_new((CVec2f)(t1,t2));
  497. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec2f");
  498. }
  499. }
  500. return 1;
  501. tolua_lerror:
  502. return tolua_bind_anl_CVec2f_new03(tolua_S);
  503. }
  504. #endif //#ifndef TOLUA_DISABLE
  505.  
  506. /* method: new_local of class CVec2f */
  507. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec2f_new04_local
  508. static int tolua_bind_anl_CVec2f_new04_local(lua_State* tolua_S)
  509. {
  510. tolua_Error tolua_err;
  511. if (
  512. !tolua_isusertable(tolua_S,1,"CVec2f",0,&tolua_err) ||
  513. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  514. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  515. !tolua_isnoobj(tolua_S,4,&tolua_err)
  516. )
  517. goto tolua_lerror;
  518. else
  519. {
  520. const float t1 = ((const float) tolua_tonumber(tolua_S,2,0));
  521. const float t2 = ((const float) tolua_tonumber(tolua_S,3,0));
  522. {
  523. CVec2f* tolua_ret = (CVec2f*) Mtolua_new((CVec2f)(t1,t2));
  524. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec2f");
  525. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  526. }
  527. }
  528. return 1;
  529. tolua_lerror:
  530. return tolua_bind_anl_CVec2f_new03_local(tolua_S);
  531. }
  532. #endif //#ifndef TOLUA_DISABLE
  533.  
  534. /* method: dotprod of class CVec2f */
  535. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec2f_dotprod00
  536. static int tolua_bind_anl_CVec2f_dotprod00(lua_State* tolua_S)
  537. {
  538. #ifndef TOLUA_RELEASE
  539. tolua_Error tolua_err;
  540. if (
  541. !tolua_isusertype(tolua_S,1,"CVec2f",0,&tolua_err) ||
  542. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const CVec2f",0,&tolua_err)) ||
  543. !tolua_isnoobj(tolua_S,3,&tolua_err)
  544. )
  545. goto tolua_lerror;
  546. else
  547. #endif
  548. {
  549. CVec2f* self = (CVec2f*) tolua_tousertype(tolua_S,1,0);
  550. const CVec2f* tvec = ((const CVec2f*) tolua_tousertype(tolua_S,2,0));
  551. #ifndef TOLUA_RELEASE
  552. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'dotprod'", NULL);
  553. #endif
  554. {
  555. const float tolua_ret = (const float) self->dotprod(*tvec);
  556. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  557. }
  558. }
  559. return 1;
  560. #ifndef TOLUA_RELEASE
  561. tolua_lerror:
  562. tolua_error(tolua_S,"#ferror in function 'dotprod'.",&tolua_err);
  563. return 0;
  564. #endif
  565. }
  566. #endif //#ifndef TOLUA_DISABLE
  567.  
  568. /* method: length of class CVec2f */
  569. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec2f_length00
  570. static int tolua_bind_anl_CVec2f_length00(lua_State* tolua_S)
  571. {
  572. #ifndef TOLUA_RELEASE
  573. tolua_Error tolua_err;
  574. if (
  575. !tolua_isusertype(tolua_S,1,"CVec2f",0,&tolua_err) ||
  576. !tolua_isnoobj(tolua_S,2,&tolua_err)
  577. )
  578. goto tolua_lerror;
  579. else
  580. #endif
  581. {
  582. CVec2f* self = (CVec2f*) tolua_tousertype(tolua_S,1,0);
  583. #ifndef TOLUA_RELEASE
  584. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'length'", NULL);
  585. #endif
  586. {
  587. const float tolua_ret = (const float) self->length();
  588. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  589. }
  590. }
  591. return 1;
  592. #ifndef TOLUA_RELEASE
  593. tolua_lerror:
  594. tolua_error(tolua_S,"#ferror in function 'length'.",&tolua_err);
  595. return 0;
  596. #endif
  597. }
  598. #endif //#ifndef TOLUA_DISABLE
  599.  
  600. /* method: normalize of class CVec2f */
  601. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec2f_normalize00
  602. static int tolua_bind_anl_CVec2f_normalize00(lua_State* tolua_S)
  603. {
  604. #ifndef TOLUA_RELEASE
  605. tolua_Error tolua_err;
  606. if (
  607. !tolua_isusertype(tolua_S,1,"CVec2f",0,&tolua_err) ||
  608. !tolua_isnoobj(tolua_S,2,&tolua_err)
  609. )
  610. goto tolua_lerror;
  611. else
  612. #endif
  613. {
  614. CVec2f* self = (CVec2f*) tolua_tousertype(tolua_S,1,0);
  615. #ifndef TOLUA_RELEASE
  616. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'normalize'", NULL);
  617. #endif
  618. {
  619. self->normalize();
  620. }
  621. }
  622. return 0;
  623. #ifndef TOLUA_RELEASE
  624. tolua_lerror:
  625. tolua_error(tolua_S,"#ferror in function 'normalize'.",&tolua_err);
  626. return 0;
  627. #endif
  628. }
  629. #endif //#ifndef TOLUA_DISABLE
  630.  
  631. /* method: set of class CVec2f */
  632. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec2f_set00
  633. static int tolua_bind_anl_CVec2f_set00(lua_State* tolua_S)
  634. {
  635. #ifndef TOLUA_RELEASE
  636. tolua_Error tolua_err;
  637. if (
  638. !tolua_isusertype(tolua_S,1,"CVec2f",0,&tolua_err) ||
  639. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  640. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  641. !tolua_isnoobj(tolua_S,4,&tolua_err)
  642. )
  643. goto tolua_lerror;
  644. else
  645. #endif
  646. {
  647. CVec2f* self = (CVec2f*) tolua_tousertype(tolua_S,1,0);
  648. float v1 = ((float) tolua_tonumber(tolua_S,2,0));
  649. float v2 = ((float) tolua_tonumber(tolua_S,3,0));
  650. #ifndef TOLUA_RELEASE
  651. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set'", NULL);
  652. #endif
  653. {
  654. self->set(v1,v2);
  655. }
  656. }
  657. return 0;
  658. #ifndef TOLUA_RELEASE
  659. tolua_lerror:
  660. tolua_error(tolua_S,"#ferror in function 'set'.",&tolua_err);
  661. return 0;
  662. #endif
  663. }
  664. #endif //#ifndef TOLUA_DISABLE
  665.  
  666. /* get function: x of class CVec2f */
  667. #ifndef TOLUA_DISABLE_tolua_get_CVec2f_x
  668. static int tolua_get_CVec2f_x(lua_State* tolua_S)
  669. {
  670. CVec2f* self = (CVec2f*) tolua_tousertype(tolua_S,1,0);
  671. #ifndef TOLUA_RELEASE
  672. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x'",NULL);
  673. #endif
  674. tolua_pushnumber(tolua_S,(lua_Number)self->get_x());
  675. return 1;
  676. }
  677. #endif //#ifndef TOLUA_DISABLE
  678.  
  679. /* set function: x of class CVec2f */
  680. #ifndef TOLUA_DISABLE_tolua_set_CVec2f_x
  681. static int tolua_set_CVec2f_x(lua_State* tolua_S)
  682. {
  683. CVec2f* self = (CVec2f*) tolua_tousertype(tolua_S,1,0);
  684. #ifndef TOLUA_RELEASE
  685. tolua_Error tolua_err;
  686. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x'",NULL);
  687. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  688. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  689. #endif
  690. self->set_x(((float) tolua_tonumber(tolua_S,2,0))
  691. )
  692. ;
  693. return 0;
  694. }
  695. #endif //#ifndef TOLUA_DISABLE
  696.  
  697. /* get function: y of class CVec2f */
  698. #ifndef TOLUA_DISABLE_tolua_get_CVec2f_y
  699. static int tolua_get_CVec2f_y(lua_State* tolua_S)
  700. {
  701. CVec2f* self = (CVec2f*) tolua_tousertype(tolua_S,1,0);
  702. #ifndef TOLUA_RELEASE
  703. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y'",NULL);
  704. #endif
  705. tolua_pushnumber(tolua_S,(lua_Number)self->get_y());
  706. return 1;
  707. }
  708. #endif //#ifndef TOLUA_DISABLE
  709.  
  710. /* set function: y of class CVec2f */
  711. #ifndef TOLUA_DISABLE_tolua_set_CVec2f_y
  712. static int tolua_set_CVec2f_y(lua_State* tolua_S)
  713. {
  714. CVec2f* self = (CVec2f*) tolua_tousertype(tolua_S,1,0);
  715. #ifndef TOLUA_RELEASE
  716. tolua_Error tolua_err;
  717. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y'",NULL);
  718. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  719. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  720. #endif
  721. self->set_y(((float) tolua_tonumber(tolua_S,2,0))
  722. )
  723. ;
  724. return 0;
  725. }
  726. #endif //#ifndef TOLUA_DISABLE
  727.  
  728. /* method: new of class CVec3f */
  729. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec3f_new00
  730. static int tolua_bind_anl_CVec3f_new00(lua_State* tolua_S)
  731. {
  732. #ifndef TOLUA_RELEASE
  733. tolua_Error tolua_err;
  734. if (
  735. !tolua_isusertable(tolua_S,1,"CVec3f",0,&tolua_err) ||
  736. !tolua_isnoobj(tolua_S,2,&tolua_err)
  737. )
  738. goto tolua_lerror;
  739. else
  740. #endif
  741. {
  742. {
  743. CVec3f* tolua_ret = (CVec3f*) Mtolua_new((CVec3f)());
  744. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec3f");
  745. }
  746. }
  747. return 1;
  748. #ifndef TOLUA_RELEASE
  749. tolua_lerror:
  750. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  751. return 0;
  752. #endif
  753. }
  754. #endif //#ifndef TOLUA_DISABLE
  755.  
  756. /* method: new_local of class CVec3f */
  757. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec3f_new00_local
  758. static int tolua_bind_anl_CVec3f_new00_local(lua_State* tolua_S)
  759. {
  760. #ifndef TOLUA_RELEASE
  761. tolua_Error tolua_err;
  762. if (
  763. !tolua_isusertable(tolua_S,1,"CVec3f",0,&tolua_err) ||
  764. !tolua_isnoobj(tolua_S,2,&tolua_err)
  765. )
  766. goto tolua_lerror;
  767. else
  768. #endif
  769. {
  770. {
  771. CVec3f* tolua_ret = (CVec3f*) Mtolua_new((CVec3f)());
  772. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec3f");
  773. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  774. }
  775. }
  776. return 1;
  777. #ifndef TOLUA_RELEASE
  778. tolua_lerror:
  779. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  780. return 0;
  781. #endif
  782. }
  783. #endif //#ifndef TOLUA_DISABLE
  784.  
  785. /* method: delete of class CVec3f */
  786. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec3f_delete00
  787. static int tolua_bind_anl_CVec3f_delete00(lua_State* tolua_S)
  788. {
  789. #ifndef TOLUA_RELEASE
  790. tolua_Error tolua_err;
  791. if (
  792. !tolua_isusertype(tolua_S,1,"CVec3f",0,&tolua_err) ||
  793. !tolua_isnoobj(tolua_S,2,&tolua_err)
  794. )
  795. goto tolua_lerror;
  796. else
  797. #endif
  798. {
  799. CVec3f* self = (CVec3f*) tolua_tousertype(tolua_S,1,0);
  800. #ifndef TOLUA_RELEASE
  801. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  802. #endif
  803. Mtolua_delete(self);
  804. }
  805. return 0;
  806. #ifndef TOLUA_RELEASE
  807. tolua_lerror:
  808. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  809. return 0;
  810. #endif
  811. }
  812. #endif //#ifndef TOLUA_DISABLE
  813.  
  814. /* method: new of class CVec3f */
  815. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec3f_new01
  816. static int tolua_bind_anl_CVec3f_new01(lua_State* tolua_S)
  817. {
  818. tolua_Error tolua_err;
  819. if (
  820. !tolua_isusertable(tolua_S,1,"CVec3f",0,&tolua_err) ||
  821. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  822. !tolua_isnoobj(tolua_S,3,&tolua_err)
  823. )
  824. goto tolua_lerror;
  825. else
  826. {
  827. int a = ((int) tolua_tonumber(tolua_S,2,0));
  828. {
  829. CVec3f* tolua_ret = (CVec3f*) Mtolua_new((CVec3f)(a));
  830. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec3f");
  831. }
  832. }
  833. return 1;
  834. tolua_lerror:
  835. return tolua_bind_anl_CVec3f_new00(tolua_S);
  836. }
  837. #endif //#ifndef TOLUA_DISABLE
  838.  
  839. /* method: new_local of class CVec3f */
  840. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec3f_new01_local
  841. static int tolua_bind_anl_CVec3f_new01_local(lua_State* tolua_S)
  842. {
  843. tolua_Error tolua_err;
  844. if (
  845. !tolua_isusertable(tolua_S,1,"CVec3f",0,&tolua_err) ||
  846. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  847. !tolua_isnoobj(tolua_S,3,&tolua_err)
  848. )
  849. goto tolua_lerror;
  850. else
  851. {
  852. int a = ((int) tolua_tonumber(tolua_S,2,0));
  853. {
  854. CVec3f* tolua_ret = (CVec3f*) Mtolua_new((CVec3f)(a));
  855. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec3f");
  856. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  857. }
  858. }
  859. return 1;
  860. tolua_lerror:
  861. return tolua_bind_anl_CVec3f_new00_local(tolua_S);
  862. }
  863. #endif //#ifndef TOLUA_DISABLE
  864.  
  865. /* method: new of class CVec3f */
  866. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec3f_new02
  867. static int tolua_bind_anl_CVec3f_new02(lua_State* tolua_S)
  868. {
  869. tolua_Error tolua_err;
  870. if (
  871. !tolua_isusertable(tolua_S,1,"CVec3f",0,&tolua_err) ||
  872. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  873. !tolua_isnoobj(tolua_S,3,&tolua_err)
  874. )
  875. goto tolua_lerror;
  876. else
  877. {
  878. float a = ((float) tolua_tonumber(tolua_S,2,0));
  879. {
  880. CVec3f* tolua_ret = (CVec3f*) Mtolua_new((CVec3f)(a));
  881. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec3f");
  882. }
  883. }
  884. return 1;
  885. tolua_lerror:
  886. return tolua_bind_anl_CVec3f_new01(tolua_S);
  887. }
  888. #endif //#ifndef TOLUA_DISABLE
  889.  
  890. /* method: new_local of class CVec3f */
  891. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec3f_new02_local
  892. static int tolua_bind_anl_CVec3f_new02_local(lua_State* tolua_S)
  893. {
  894. tolua_Error tolua_err;
  895. if (
  896. !tolua_isusertable(tolua_S,1,"CVec3f",0,&tolua_err) ||
  897. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  898. !tolua_isnoobj(tolua_S,3,&tolua_err)
  899. )
  900. goto tolua_lerror;
  901. else
  902. {
  903. float a = ((float) tolua_tonumber(tolua_S,2,0));
  904. {
  905. CVec3f* tolua_ret = (CVec3f*) Mtolua_new((CVec3f)(a));
  906. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec3f");
  907. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  908. }
  909. }
  910. return 1;
  911. tolua_lerror:
  912. return tolua_bind_anl_CVec3f_new01_local(tolua_S);
  913. }
  914. #endif //#ifndef TOLUA_DISABLE
  915.  
  916. /* method: new of class CVec3f */
  917. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec3f_new03
  918. static int tolua_bind_anl_CVec3f_new03(lua_State* tolua_S)
  919. {
  920. tolua_Error tolua_err;
  921. if (
  922. !tolua_isusertable(tolua_S,1,"CVec3f",0,&tolua_err) ||
  923. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const CVec3f",0,&tolua_err)) ||
  924. !tolua_isnoobj(tolua_S,3,&tolua_err)
  925. )
  926. goto tolua_lerror;
  927. else
  928. {
  929. const CVec3f* tvec = ((const CVec3f*) tolua_tousertype(tolua_S,2,0));
  930. {
  931. CVec3f* tolua_ret = (CVec3f*) Mtolua_new((CVec3f)(*tvec));
  932. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec3f");
  933. }
  934. }
  935. return 1;
  936. tolua_lerror:
  937. return tolua_bind_anl_CVec3f_new02(tolua_S);
  938. }
  939. #endif //#ifndef TOLUA_DISABLE
  940.  
  941. /* method: new_local of class CVec3f */
  942. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec3f_new03_local
  943. static int tolua_bind_anl_CVec3f_new03_local(lua_State* tolua_S)
  944. {
  945. tolua_Error tolua_err;
  946. if (
  947. !tolua_isusertable(tolua_S,1,"CVec3f",0,&tolua_err) ||
  948. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const CVec3f",0,&tolua_err)) ||
  949. !tolua_isnoobj(tolua_S,3,&tolua_err)
  950. )
  951. goto tolua_lerror;
  952. else
  953. {
  954. const CVec3f* tvec = ((const CVec3f*) tolua_tousertype(tolua_S,2,0));
  955. {
  956. CVec3f* tolua_ret = (CVec3f*) Mtolua_new((CVec3f)(*tvec));
  957. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec3f");
  958. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  959. }
  960. }
  961. return 1;
  962. tolua_lerror:
  963. return tolua_bind_anl_CVec3f_new02_local(tolua_S);
  964. }
  965. #endif //#ifndef TOLUA_DISABLE
  966.  
  967. /* method: new of class CVec3f */
  968. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec3f_new04
  969. static int tolua_bind_anl_CVec3f_new04(lua_State* tolua_S)
  970. {
  971. tolua_Error tolua_err;
  972. if (
  973. !tolua_isusertable(tolua_S,1,"CVec3f",0,&tolua_err) ||
  974. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  975. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  976. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  977. !tolua_isnoobj(tolua_S,5,&tolua_err)
  978. )
  979. goto tolua_lerror;
  980. else
  981. {
  982. const float t1 = ((const float) tolua_tonumber(tolua_S,2,0));
  983. const float t2 = ((const float) tolua_tonumber(tolua_S,3,0));
  984. const float t3 = ((const float) tolua_tonumber(tolua_S,4,0));
  985. {
  986. CVec3f* tolua_ret = (CVec3f*) Mtolua_new((CVec3f)(t1,t2,t3));
  987. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec3f");
  988. }
  989. }
  990. return 1;
  991. tolua_lerror:
  992. return tolua_bind_anl_CVec3f_new03(tolua_S);
  993. }
  994. #endif //#ifndef TOLUA_DISABLE
  995.  
  996. /* method: new_local of class CVec3f */
  997. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec3f_new04_local
  998. static int tolua_bind_anl_CVec3f_new04_local(lua_State* tolua_S)
  999. {
  1000. tolua_Error tolua_err;
  1001. if (
  1002. !tolua_isusertable(tolua_S,1,"CVec3f",0,&tolua_err) ||
  1003. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1004. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1005. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  1006. !tolua_isnoobj(tolua_S,5,&tolua_err)
  1007. )
  1008. goto tolua_lerror;
  1009. else
  1010. {
  1011. const float t1 = ((const float) tolua_tonumber(tolua_S,2,0));
  1012. const float t2 = ((const float) tolua_tonumber(tolua_S,3,0));
  1013. const float t3 = ((const float) tolua_tonumber(tolua_S,4,0));
  1014. {
  1015. CVec3f* tolua_ret = (CVec3f*) Mtolua_new((CVec3f)(t1,t2,t3));
  1016. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec3f");
  1017. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1018. }
  1019. }
  1020. return 1;
  1021. tolua_lerror:
  1022. return tolua_bind_anl_CVec3f_new03_local(tolua_S);
  1023. }
  1024. #endif //#ifndef TOLUA_DISABLE
  1025.  
  1026. /* method: dotprod of class CVec3f */
  1027. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec3f_dotprod00
  1028. static int tolua_bind_anl_CVec3f_dotprod00(lua_State* tolua_S)
  1029. {
  1030. #ifndef TOLUA_RELEASE
  1031. tolua_Error tolua_err;
  1032. if (
  1033. !tolua_isusertype(tolua_S,1,"CVec3f",0,&tolua_err) ||
  1034. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const CVec3f",0,&tolua_err)) ||
  1035. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1036. )
  1037. goto tolua_lerror;
  1038. else
  1039. #endif
  1040. {
  1041. CVec3f* self = (CVec3f*) tolua_tousertype(tolua_S,1,0);
  1042. const CVec3f* tvec = ((const CVec3f*) tolua_tousertype(tolua_S,2,0));
  1043. #ifndef TOLUA_RELEASE
  1044. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'dotprod'", NULL);
  1045. #endif
  1046. {
  1047. const float tolua_ret = (const float) self->dotprod(*tvec);
  1048. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1049. }
  1050. }
  1051. return 1;
  1052. #ifndef TOLUA_RELEASE
  1053. tolua_lerror:
  1054. tolua_error(tolua_S,"#ferror in function 'dotprod'.",&tolua_err);
  1055. return 0;
  1056. #endif
  1057. }
  1058. #endif //#ifndef TOLUA_DISABLE
  1059.  
  1060. /* method: length of class CVec3f */
  1061. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec3f_length00
  1062. static int tolua_bind_anl_CVec3f_length00(lua_State* tolua_S)
  1063. {
  1064. #ifndef TOLUA_RELEASE
  1065. tolua_Error tolua_err;
  1066. if (
  1067. !tolua_isusertype(tolua_S,1,"CVec3f",0,&tolua_err) ||
  1068. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1069. )
  1070. goto tolua_lerror;
  1071. else
  1072. #endif
  1073. {
  1074. CVec3f* self = (CVec3f*) tolua_tousertype(tolua_S,1,0);
  1075. #ifndef TOLUA_RELEASE
  1076. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'length'", NULL);
  1077. #endif
  1078. {
  1079. const float tolua_ret = (const float) self->length();
  1080. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1081. }
  1082. }
  1083. return 1;
  1084. #ifndef TOLUA_RELEASE
  1085. tolua_lerror:
  1086. tolua_error(tolua_S,"#ferror in function 'length'.",&tolua_err);
  1087. return 0;
  1088. #endif
  1089. }
  1090. #endif //#ifndef TOLUA_DISABLE
  1091.  
  1092. /* method: normalize of class CVec3f */
  1093. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec3f_normalize00
  1094. static int tolua_bind_anl_CVec3f_normalize00(lua_State* tolua_S)
  1095. {
  1096. #ifndef TOLUA_RELEASE
  1097. tolua_Error tolua_err;
  1098. if (
  1099. !tolua_isusertype(tolua_S,1,"CVec3f",0,&tolua_err) ||
  1100. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1101. )
  1102. goto tolua_lerror;
  1103. else
  1104. #endif
  1105. {
  1106. CVec3f* self = (CVec3f*) tolua_tousertype(tolua_S,1,0);
  1107. #ifndef TOLUA_RELEASE
  1108. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'normalize'", NULL);
  1109. #endif
  1110. {
  1111. self->normalize();
  1112. }
  1113. }
  1114. return 0;
  1115. #ifndef TOLUA_RELEASE
  1116. tolua_lerror:
  1117. tolua_error(tolua_S,"#ferror in function 'normalize'.",&tolua_err);
  1118. return 0;
  1119. #endif
  1120. }
  1121. #endif //#ifndef TOLUA_DISABLE
  1122.  
  1123. /* method: set of class CVec3f */
  1124. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec3f_set00
  1125. static int tolua_bind_anl_CVec3f_set00(lua_State* tolua_S)
  1126. {
  1127. #ifndef TOLUA_RELEASE
  1128. tolua_Error tolua_err;
  1129. if (
  1130. !tolua_isusertype(tolua_S,1,"CVec3f",0,&tolua_err) ||
  1131. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1132. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1133. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  1134. !tolua_isnoobj(tolua_S,5,&tolua_err)
  1135. )
  1136. goto tolua_lerror;
  1137. else
  1138. #endif
  1139. {
  1140. CVec3f* self = (CVec3f*) tolua_tousertype(tolua_S,1,0);
  1141. float v1 = ((float) tolua_tonumber(tolua_S,2,0));
  1142. float v2 = ((float) tolua_tonumber(tolua_S,3,0));
  1143. float v3 = ((float) tolua_tonumber(tolua_S,4,0));
  1144. #ifndef TOLUA_RELEASE
  1145. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set'", NULL);
  1146. #endif
  1147. {
  1148. self->set(v1,v2,v3);
  1149. }
  1150. }
  1151. return 0;
  1152. #ifndef TOLUA_RELEASE
  1153. tolua_lerror:
  1154. tolua_error(tolua_S,"#ferror in function 'set'.",&tolua_err);
  1155. return 0;
  1156. #endif
  1157. }
  1158. #endif //#ifndef TOLUA_DISABLE
  1159.  
  1160. /* get function: x of class CVec3f */
  1161. #ifndef TOLUA_DISABLE_tolua_get_CVec3f_x
  1162. static int tolua_get_CVec3f_x(lua_State* tolua_S)
  1163. {
  1164. CVec3f* self = (CVec3f*) tolua_tousertype(tolua_S,1,0);
  1165. #ifndef TOLUA_RELEASE
  1166. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x'",NULL);
  1167. #endif
  1168. tolua_pushnumber(tolua_S,(lua_Number)self->get_x());
  1169. return 1;
  1170. }
  1171. #endif //#ifndef TOLUA_DISABLE
  1172.  
  1173. /* set function: x of class CVec3f */
  1174. #ifndef TOLUA_DISABLE_tolua_set_CVec3f_x
  1175. static int tolua_set_CVec3f_x(lua_State* tolua_S)
  1176. {
  1177. CVec3f* self = (CVec3f*) tolua_tousertype(tolua_S,1,0);
  1178. #ifndef TOLUA_RELEASE
  1179. tolua_Error tolua_err;
  1180. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x'",NULL);
  1181. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  1182. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  1183. #endif
  1184. self->set_x(((float) tolua_tonumber(tolua_S,2,0))
  1185. )
  1186. ;
  1187. return 0;
  1188. }
  1189. #endif //#ifndef TOLUA_DISABLE
  1190.  
  1191. /* get function: y of class CVec3f */
  1192. #ifndef TOLUA_DISABLE_tolua_get_CVec3f_y
  1193. static int tolua_get_CVec3f_y(lua_State* tolua_S)
  1194. {
  1195. CVec3f* self = (CVec3f*) tolua_tousertype(tolua_S,1,0);
  1196. #ifndef TOLUA_RELEASE
  1197. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y'",NULL);
  1198. #endif
  1199. tolua_pushnumber(tolua_S,(lua_Number)self->get_y());
  1200. return 1;
  1201. }
  1202. #endif //#ifndef TOLUA_DISABLE
  1203.  
  1204. /* set function: y of class CVec3f */
  1205. #ifndef TOLUA_DISABLE_tolua_set_CVec3f_y
  1206. static int tolua_set_CVec3f_y(lua_State* tolua_S)
  1207. {
  1208. CVec3f* self = (CVec3f*) tolua_tousertype(tolua_S,1,0);
  1209. #ifndef TOLUA_RELEASE
  1210. tolua_Error tolua_err;
  1211. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y'",NULL);
  1212. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  1213. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  1214. #endif
  1215. self->set_y(((float) tolua_tonumber(tolua_S,2,0))
  1216. )
  1217. ;
  1218. return 0;
  1219. }
  1220. #endif //#ifndef TOLUA_DISABLE
  1221.  
  1222. /* get function: z of class CVec3f */
  1223. #ifndef TOLUA_DISABLE_tolua_get_CVec3f_z
  1224. static int tolua_get_CVec3f_z(lua_State* tolua_S)
  1225. {
  1226. CVec3f* self = (CVec3f*) tolua_tousertype(tolua_S,1,0);
  1227. #ifndef TOLUA_RELEASE
  1228. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'z'",NULL);
  1229. #endif
  1230. tolua_pushnumber(tolua_S,(lua_Number)self->get_z());
  1231. return 1;
  1232. }
  1233. #endif //#ifndef TOLUA_DISABLE
  1234.  
  1235. /* set function: z of class CVec3f */
  1236. #ifndef TOLUA_DISABLE_tolua_set_CVec3f_z
  1237. static int tolua_set_CVec3f_z(lua_State* tolua_S)
  1238. {
  1239. CVec3f* self = (CVec3f*) tolua_tousertype(tolua_S,1,0);
  1240. #ifndef TOLUA_RELEASE
  1241. tolua_Error tolua_err;
  1242. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'z'",NULL);
  1243. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  1244. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  1245. #endif
  1246. self->set_z(((float) tolua_tonumber(tolua_S,2,0))
  1247. )
  1248. ;
  1249. return 0;
  1250. }
  1251. #endif //#ifndef TOLUA_DISABLE
  1252.  
  1253. /* method: new of class CVec2i */
  1254. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec2i_new00
  1255. static int tolua_bind_anl_CVec2i_new00(lua_State* tolua_S)
  1256. {
  1257. #ifndef TOLUA_RELEASE
  1258. tolua_Error tolua_err;
  1259. if (
  1260. !tolua_isusertable(tolua_S,1,"CVec2i",0,&tolua_err) ||
  1261. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1262. )
  1263. goto tolua_lerror;
  1264. else
  1265. #endif
  1266. {
  1267. {
  1268. CVec2i* tolua_ret = (CVec2i*) Mtolua_new((CVec2i)());
  1269. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec2i");
  1270. }
  1271. }
  1272. return 1;
  1273. #ifndef TOLUA_RELEASE
  1274. tolua_lerror:
  1275. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  1276. return 0;
  1277. #endif
  1278. }
  1279. #endif //#ifndef TOLUA_DISABLE
  1280.  
  1281. /* method: new_local of class CVec2i */
  1282. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec2i_new00_local
  1283. static int tolua_bind_anl_CVec2i_new00_local(lua_State* tolua_S)
  1284. {
  1285. #ifndef TOLUA_RELEASE
  1286. tolua_Error tolua_err;
  1287. if (
  1288. !tolua_isusertable(tolua_S,1,"CVec2i",0,&tolua_err) ||
  1289. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1290. )
  1291. goto tolua_lerror;
  1292. else
  1293. #endif
  1294. {
  1295. {
  1296. CVec2i* tolua_ret = (CVec2i*) Mtolua_new((CVec2i)());
  1297. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec2i");
  1298. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1299. }
  1300. }
  1301. return 1;
  1302. #ifndef TOLUA_RELEASE
  1303. tolua_lerror:
  1304. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  1305. return 0;
  1306. #endif
  1307. }
  1308. #endif //#ifndef TOLUA_DISABLE
  1309.  
  1310. /* method: new of class CVec2i */
  1311. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec2i_new01
  1312. static int tolua_bind_anl_CVec2i_new01(lua_State* tolua_S)
  1313. {
  1314. tolua_Error tolua_err;
  1315. if (
  1316. !tolua_isusertable(tolua_S,1,"CVec2i",0,&tolua_err) ||
  1317. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1318. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1319. )
  1320. goto tolua_lerror;
  1321. else
  1322. {
  1323. int a = ((int) tolua_tonumber(tolua_S,2,0));
  1324. {
  1325. CVec2i* tolua_ret = (CVec2i*) Mtolua_new((CVec2i)(a));
  1326. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec2i");
  1327. }
  1328. }
  1329. return 1;
  1330. tolua_lerror:
  1331. return tolua_bind_anl_CVec2i_new00(tolua_S);
  1332. }
  1333. #endif //#ifndef TOLUA_DISABLE
  1334.  
  1335. /* method: new_local of class CVec2i */
  1336. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec2i_new01_local
  1337. static int tolua_bind_anl_CVec2i_new01_local(lua_State* tolua_S)
  1338. {
  1339. tolua_Error tolua_err;
  1340. if (
  1341. !tolua_isusertable(tolua_S,1,"CVec2i",0,&tolua_err) ||
  1342. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1343. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1344. )
  1345. goto tolua_lerror;
  1346. else
  1347. {
  1348. int a = ((int) tolua_tonumber(tolua_S,2,0));
  1349. {
  1350. CVec2i* tolua_ret = (CVec2i*) Mtolua_new((CVec2i)(a));
  1351. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec2i");
  1352. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1353. }
  1354. }
  1355. return 1;
  1356. tolua_lerror:
  1357. return tolua_bind_anl_CVec2i_new00_local(tolua_S);
  1358. }
  1359. #endif //#ifndef TOLUA_DISABLE
  1360.  
  1361. /* method: new of class CVec2i */
  1362. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec2i_new02
  1363. static int tolua_bind_anl_CVec2i_new02(lua_State* tolua_S)
  1364. {
  1365. tolua_Error tolua_err;
  1366. if (
  1367. !tolua_isusertable(tolua_S,1,"CVec2i",0,&tolua_err) ||
  1368. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const CVec2i",0,&tolua_err)) ||
  1369. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1370. )
  1371. goto tolua_lerror;
  1372. else
  1373. {
  1374. const CVec2i* tvec = ((const CVec2i*) tolua_tousertype(tolua_S,2,0));
  1375. {
  1376. CVec2i* tolua_ret = (CVec2i*) Mtolua_new((CVec2i)(*tvec));
  1377. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec2i");
  1378. }
  1379. }
  1380. return 1;
  1381. tolua_lerror:
  1382. return tolua_bind_anl_CVec2i_new01(tolua_S);
  1383. }
  1384. #endif //#ifndef TOLUA_DISABLE
  1385.  
  1386. /* method: new_local of class CVec2i */
  1387. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec2i_new02_local
  1388. static int tolua_bind_anl_CVec2i_new02_local(lua_State* tolua_S)
  1389. {
  1390. tolua_Error tolua_err;
  1391. if (
  1392. !tolua_isusertable(tolua_S,1,"CVec2i",0,&tolua_err) ||
  1393. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const CVec2i",0,&tolua_err)) ||
  1394. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1395. )
  1396. goto tolua_lerror;
  1397. else
  1398. {
  1399. const CVec2i* tvec = ((const CVec2i*) tolua_tousertype(tolua_S,2,0));
  1400. {
  1401. CVec2i* tolua_ret = (CVec2i*) Mtolua_new((CVec2i)(*tvec));
  1402. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec2i");
  1403. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1404. }
  1405. }
  1406. return 1;
  1407. tolua_lerror:
  1408. return tolua_bind_anl_CVec2i_new01_local(tolua_S);
  1409. }
  1410. #endif //#ifndef TOLUA_DISABLE
  1411.  
  1412. /* method: new of class CVec2i */
  1413. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec2i_new03
  1414. static int tolua_bind_anl_CVec2i_new03(lua_State* tolua_S)
  1415. {
  1416. tolua_Error tolua_err;
  1417. if (
  1418. !tolua_isusertable(tolua_S,1,"CVec2i",0,&tolua_err) ||
  1419. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1420. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1421. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1422. )
  1423. goto tolua_lerror;
  1424. else
  1425. {
  1426. const int t1 = ((const int) tolua_tonumber(tolua_S,2,0));
  1427. const int t2 = ((const int) tolua_tonumber(tolua_S,3,0));
  1428. {
  1429. CVec2i* tolua_ret = (CVec2i*) Mtolua_new((CVec2i)(t1,t2));
  1430. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec2i");
  1431. }
  1432. }
  1433. return 1;
  1434. tolua_lerror:
  1435. return tolua_bind_anl_CVec2i_new02(tolua_S);
  1436. }
  1437. #endif //#ifndef TOLUA_DISABLE
  1438.  
  1439. /* method: new_local of class CVec2i */
  1440. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec2i_new03_local
  1441. static int tolua_bind_anl_CVec2i_new03_local(lua_State* tolua_S)
  1442. {
  1443. tolua_Error tolua_err;
  1444. if (
  1445. !tolua_isusertable(tolua_S,1,"CVec2i",0,&tolua_err) ||
  1446. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1447. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1448. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1449. )
  1450. goto tolua_lerror;
  1451. else
  1452. {
  1453. const int t1 = ((const int) tolua_tonumber(tolua_S,2,0));
  1454. const int t2 = ((const int) tolua_tonumber(tolua_S,3,0));
  1455. {
  1456. CVec2i* tolua_ret = (CVec2i*) Mtolua_new((CVec2i)(t1,t2));
  1457. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec2i");
  1458. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1459. }
  1460. }
  1461. return 1;
  1462. tolua_lerror:
  1463. return tolua_bind_anl_CVec2i_new02_local(tolua_S);
  1464. }
  1465. #endif //#ifndef TOLUA_DISABLE
  1466.  
  1467. /* method: delete of class CVec2i */
  1468. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec2i_delete00
  1469. static int tolua_bind_anl_CVec2i_delete00(lua_State* tolua_S)
  1470. {
  1471. #ifndef TOLUA_RELEASE
  1472. tolua_Error tolua_err;
  1473. if (
  1474. !tolua_isusertype(tolua_S,1,"CVec2i",0,&tolua_err) ||
  1475. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1476. )
  1477. goto tolua_lerror;
  1478. else
  1479. #endif
  1480. {
  1481. CVec2i* self = (CVec2i*) tolua_tousertype(tolua_S,1,0);
  1482. #ifndef TOLUA_RELEASE
  1483. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  1484. #endif
  1485. Mtolua_delete(self);
  1486. }
  1487. return 0;
  1488. #ifndef TOLUA_RELEASE
  1489. tolua_lerror:
  1490. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  1491. return 0;
  1492. #endif
  1493. }
  1494. #endif //#ifndef TOLUA_DISABLE
  1495.  
  1496. /* get function: x of class CVec2i */
  1497. #ifndef TOLUA_DISABLE_tolua_get_CVec2i_x
  1498. static int tolua_get_CVec2i_x(lua_State* tolua_S)
  1499. {
  1500. CVec2i* self = (CVec2i*) tolua_tousertype(tolua_S,1,0);
  1501. #ifndef TOLUA_RELEASE
  1502. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x'",NULL);
  1503. #endif
  1504. tolua_pushnumber(tolua_S,(lua_Number)self->get_x());
  1505. return 1;
  1506. }
  1507. #endif //#ifndef TOLUA_DISABLE
  1508.  
  1509. /* set function: x of class CVec2i */
  1510. #ifndef TOLUA_DISABLE_tolua_set_CVec2i_x
  1511. static int tolua_set_CVec2i_x(lua_State* tolua_S)
  1512. {
  1513. CVec2i* self = (CVec2i*) tolua_tousertype(tolua_S,1,0);
  1514. #ifndef TOLUA_RELEASE
  1515. tolua_Error tolua_err;
  1516. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x'",NULL);
  1517. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  1518. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  1519. #endif
  1520. self->set_x(((int) tolua_tonumber(tolua_S,2,0))
  1521. )
  1522. ;
  1523. return 0;
  1524. }
  1525. #endif //#ifndef TOLUA_DISABLE
  1526.  
  1527. /* get function: y of class CVec2i */
  1528. #ifndef TOLUA_DISABLE_tolua_get_CVec2i_y
  1529. static int tolua_get_CVec2i_y(lua_State* tolua_S)
  1530. {
  1531. CVec2i* self = (CVec2i*) tolua_tousertype(tolua_S,1,0);
  1532. #ifndef TOLUA_RELEASE
  1533. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y'",NULL);
  1534. #endif
  1535. tolua_pushnumber(tolua_S,(lua_Number)self->get_y());
  1536. return 1;
  1537. }
  1538. #endif //#ifndef TOLUA_DISABLE
  1539.  
  1540. /* set function: y of class CVec2i */
  1541. #ifndef TOLUA_DISABLE_tolua_set_CVec2i_y
  1542. static int tolua_set_CVec2i_y(lua_State* tolua_S)
  1543. {
  1544. CVec2i* self = (CVec2i*) tolua_tousertype(tolua_S,1,0);
  1545. #ifndef TOLUA_RELEASE
  1546. tolua_Error tolua_err;
  1547. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y'",NULL);
  1548. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  1549. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  1550. #endif
  1551. self->set_y(((int) tolua_tonumber(tolua_S,2,0))
  1552. )
  1553. ;
  1554. return 0;
  1555. }
  1556. #endif //#ifndef TOLUA_DISABLE
  1557.  
  1558. /* method: new of class CVec3i */
  1559. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec3i_new00
  1560. static int tolua_bind_anl_CVec3i_new00(lua_State* tolua_S)
  1561. {
  1562. #ifndef TOLUA_RELEASE
  1563. tolua_Error tolua_err;
  1564. if (
  1565. !tolua_isusertable(tolua_S,1,"CVec3i",0,&tolua_err) ||
  1566. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1567. )
  1568. goto tolua_lerror;
  1569. else
  1570. #endif
  1571. {
  1572. {
  1573. CVec3i* tolua_ret = (CVec3i*) Mtolua_new((CVec3i)());
  1574. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec3i");
  1575. }
  1576. }
  1577. return 1;
  1578. #ifndef TOLUA_RELEASE
  1579. tolua_lerror:
  1580. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  1581. return 0;
  1582. #endif
  1583. }
  1584. #endif //#ifndef TOLUA_DISABLE
  1585.  
  1586. /* method: new_local of class CVec3i */
  1587. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec3i_new00_local
  1588. static int tolua_bind_anl_CVec3i_new00_local(lua_State* tolua_S)
  1589. {
  1590. #ifndef TOLUA_RELEASE
  1591. tolua_Error tolua_err;
  1592. if (
  1593. !tolua_isusertable(tolua_S,1,"CVec3i",0,&tolua_err) ||
  1594. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1595. )
  1596. goto tolua_lerror;
  1597. else
  1598. #endif
  1599. {
  1600. {
  1601. CVec3i* tolua_ret = (CVec3i*) Mtolua_new((CVec3i)());
  1602. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec3i");
  1603. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1604. }
  1605. }
  1606. return 1;
  1607. #ifndef TOLUA_RELEASE
  1608. tolua_lerror:
  1609. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  1610. return 0;
  1611. #endif
  1612. }
  1613. #endif //#ifndef TOLUA_DISABLE
  1614.  
  1615. /* method: new of class CVec3i */
  1616. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec3i_new01
  1617. static int tolua_bind_anl_CVec3i_new01(lua_State* tolua_S)
  1618. {
  1619. tolua_Error tolua_err;
  1620. if (
  1621. !tolua_isusertable(tolua_S,1,"CVec3i",0,&tolua_err) ||
  1622. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1623. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1624. )
  1625. goto tolua_lerror;
  1626. else
  1627. {
  1628. int a = ((int) tolua_tonumber(tolua_S,2,0));
  1629. {
  1630. CVec3i* tolua_ret = (CVec3i*) Mtolua_new((CVec3i)(a));
  1631. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec3i");
  1632. }
  1633. }
  1634. return 1;
  1635. tolua_lerror:
  1636. return tolua_bind_anl_CVec3i_new00(tolua_S);
  1637. }
  1638. #endif //#ifndef TOLUA_DISABLE
  1639.  
  1640. /* method: new_local of class CVec3i */
  1641. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec3i_new01_local
  1642. static int tolua_bind_anl_CVec3i_new01_local(lua_State* tolua_S)
  1643. {
  1644. tolua_Error tolua_err;
  1645. if (
  1646. !tolua_isusertable(tolua_S,1,"CVec3i",0,&tolua_err) ||
  1647. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1648. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1649. )
  1650. goto tolua_lerror;
  1651. else
  1652. {
  1653. int a = ((int) tolua_tonumber(tolua_S,2,0));
  1654. {
  1655. CVec3i* tolua_ret = (CVec3i*) Mtolua_new((CVec3i)(a));
  1656. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec3i");
  1657. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1658. }
  1659. }
  1660. return 1;
  1661. tolua_lerror:
  1662. return tolua_bind_anl_CVec3i_new00_local(tolua_S);
  1663. }
  1664. #endif //#ifndef TOLUA_DISABLE
  1665.  
  1666. /* method: new of class CVec3i */
  1667. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec3i_new02
  1668. static int tolua_bind_anl_CVec3i_new02(lua_State* tolua_S)
  1669. {
  1670. tolua_Error tolua_err;
  1671. if (
  1672. !tolua_isusertable(tolua_S,1,"CVec3i",0,&tolua_err) ||
  1673. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const CVec3i",0,&tolua_err)) ||
  1674. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1675. )
  1676. goto tolua_lerror;
  1677. else
  1678. {
  1679. const CVec3i* tvec = ((const CVec3i*) tolua_tousertype(tolua_S,2,0));
  1680. {
  1681. CVec3i* tolua_ret = (CVec3i*) Mtolua_new((CVec3i)(*tvec));
  1682. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec3i");
  1683. }
  1684. }
  1685. return 1;
  1686. tolua_lerror:
  1687. return tolua_bind_anl_CVec3i_new01(tolua_S);
  1688. }
  1689. #endif //#ifndef TOLUA_DISABLE
  1690.  
  1691. /* method: new_local of class CVec3i */
  1692. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec3i_new02_local
  1693. static int tolua_bind_anl_CVec3i_new02_local(lua_State* tolua_S)
  1694. {
  1695. tolua_Error tolua_err;
  1696. if (
  1697. !tolua_isusertable(tolua_S,1,"CVec3i",0,&tolua_err) ||
  1698. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const CVec3i",0,&tolua_err)) ||
  1699. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1700. )
  1701. goto tolua_lerror;
  1702. else
  1703. {
  1704. const CVec3i* tvec = ((const CVec3i*) tolua_tousertype(tolua_S,2,0));
  1705. {
  1706. CVec3i* tolua_ret = (CVec3i*) Mtolua_new((CVec3i)(*tvec));
  1707. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec3i");
  1708. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1709. }
  1710. }
  1711. return 1;
  1712. tolua_lerror:
  1713. return tolua_bind_anl_CVec3i_new01_local(tolua_S);
  1714. }
  1715. #endif //#ifndef TOLUA_DISABLE
  1716.  
  1717. /* method: new of class CVec3i */
  1718. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec3i_new03
  1719. static int tolua_bind_anl_CVec3i_new03(lua_State* tolua_S)
  1720. {
  1721. tolua_Error tolua_err;
  1722. if (
  1723. !tolua_isusertable(tolua_S,1,"CVec3i",0,&tolua_err) ||
  1724. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1725. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1726. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  1727. !tolua_isnoobj(tolua_S,5,&tolua_err)
  1728. )
  1729. goto tolua_lerror;
  1730. else
  1731. {
  1732. const int t1 = ((const int) tolua_tonumber(tolua_S,2,0));
  1733. const int t2 = ((const int) tolua_tonumber(tolua_S,3,0));
  1734. const int t3 = ((const int) tolua_tonumber(tolua_S,4,0));
  1735. {
  1736. CVec3i* tolua_ret = (CVec3i*) Mtolua_new((CVec3i)(t1,t2,t3));
  1737. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec3i");
  1738. }
  1739. }
  1740. return 1;
  1741. tolua_lerror:
  1742. return tolua_bind_anl_CVec3i_new02(tolua_S);
  1743. }
  1744. #endif //#ifndef TOLUA_DISABLE
  1745.  
  1746. /* method: new_local of class CVec3i */
  1747. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec3i_new03_local
  1748. static int tolua_bind_anl_CVec3i_new03_local(lua_State* tolua_S)
  1749. {
  1750. tolua_Error tolua_err;
  1751. if (
  1752. !tolua_isusertable(tolua_S,1,"CVec3i",0,&tolua_err) ||
  1753. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1754. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1755. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  1756. !tolua_isnoobj(tolua_S,5,&tolua_err)
  1757. )
  1758. goto tolua_lerror;
  1759. else
  1760. {
  1761. const int t1 = ((const int) tolua_tonumber(tolua_S,2,0));
  1762. const int t2 = ((const int) tolua_tonumber(tolua_S,3,0));
  1763. const int t3 = ((const int) tolua_tonumber(tolua_S,4,0));
  1764. {
  1765. CVec3i* tolua_ret = (CVec3i*) Mtolua_new((CVec3i)(t1,t2,t3));
  1766. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec3i");
  1767. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1768. }
  1769. }
  1770. return 1;
  1771. tolua_lerror:
  1772. return tolua_bind_anl_CVec3i_new02_local(tolua_S);
  1773. }
  1774. #endif //#ifndef TOLUA_DISABLE
  1775.  
  1776. /* method: delete of class CVec3i */
  1777. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec3i_delete00
  1778. static int tolua_bind_anl_CVec3i_delete00(lua_State* tolua_S)
  1779. {
  1780. #ifndef TOLUA_RELEASE
  1781. tolua_Error tolua_err;
  1782. if (
  1783. !tolua_isusertype(tolua_S,1,"CVec3i",0,&tolua_err) ||
  1784. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1785. )
  1786. goto tolua_lerror;
  1787. else
  1788. #endif
  1789. {
  1790. CVec3i* self = (CVec3i*) tolua_tousertype(tolua_S,1,0);
  1791. #ifndef TOLUA_RELEASE
  1792. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  1793. #endif
  1794. Mtolua_delete(self);
  1795. }
  1796. return 0;
  1797. #ifndef TOLUA_RELEASE
  1798. tolua_lerror:
  1799. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  1800. return 0;
  1801. #endif
  1802. }
  1803. #endif //#ifndef TOLUA_DISABLE
  1804.  
  1805. /* get function: x of class CVec3i */
  1806. #ifndef TOLUA_DISABLE_tolua_get_CVec3i_x
  1807. static int tolua_get_CVec3i_x(lua_State* tolua_S)
  1808. {
  1809. CVec3i* self = (CVec3i*) tolua_tousertype(tolua_S,1,0);
  1810. #ifndef TOLUA_RELEASE
  1811. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x'",NULL);
  1812. #endif
  1813. tolua_pushnumber(tolua_S,(lua_Number)self->get_x());
  1814. return 1;
  1815. }
  1816. #endif //#ifndef TOLUA_DISABLE
  1817.  
  1818. /* set function: x of class CVec3i */
  1819. #ifndef TOLUA_DISABLE_tolua_set_CVec3i_x
  1820. static int tolua_set_CVec3i_x(lua_State* tolua_S)
  1821. {
  1822. CVec3i* self = (CVec3i*) tolua_tousertype(tolua_S,1,0);
  1823. #ifndef TOLUA_RELEASE
  1824. tolua_Error tolua_err;
  1825. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x'",NULL);
  1826. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  1827. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  1828. #endif
  1829. self->set_x(((int) tolua_tonumber(tolua_S,2,0))
  1830. )
  1831. ;
  1832. return 0;
  1833. }
  1834. #endif //#ifndef TOLUA_DISABLE
  1835.  
  1836. /* get function: y of class CVec3i */
  1837. #ifndef TOLUA_DISABLE_tolua_get_CVec3i_y
  1838. static int tolua_get_CVec3i_y(lua_State* tolua_S)
  1839. {
  1840. CVec3i* self = (CVec3i*) tolua_tousertype(tolua_S,1,0);
  1841. #ifndef TOLUA_RELEASE
  1842. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y'",NULL);
  1843. #endif
  1844. tolua_pushnumber(tolua_S,(lua_Number)self->get_y());
  1845. return 1;
  1846. }
  1847. #endif //#ifndef TOLUA_DISABLE
  1848.  
  1849. /* set function: y of class CVec3i */
  1850. #ifndef TOLUA_DISABLE_tolua_set_CVec3i_y
  1851. static int tolua_set_CVec3i_y(lua_State* tolua_S)
  1852. {
  1853. CVec3i* self = (CVec3i*) tolua_tousertype(tolua_S,1,0);
  1854. #ifndef TOLUA_RELEASE
  1855. tolua_Error tolua_err;
  1856. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y'",NULL);
  1857. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  1858. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  1859. #endif
  1860. self->set_y(((int) tolua_tonumber(tolua_S,2,0))
  1861. )
  1862. ;
  1863. return 0;
  1864. }
  1865. #endif //#ifndef TOLUA_DISABLE
  1866.  
  1867. /* get function: z of class CVec3i */
  1868. #ifndef TOLUA_DISABLE_tolua_get_CVec3i_z
  1869. static int tolua_get_CVec3i_z(lua_State* tolua_S)
  1870. {
  1871. CVec3i* self = (CVec3i*) tolua_tousertype(tolua_S,1,0);
  1872. #ifndef TOLUA_RELEASE
  1873. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'z'",NULL);
  1874. #endif
  1875. tolua_pushnumber(tolua_S,(lua_Number)self->get_z());
  1876. return 1;
  1877. }
  1878. #endif //#ifndef TOLUA_DISABLE
  1879.  
  1880. /* set function: z of class CVec3i */
  1881. #ifndef TOLUA_DISABLE_tolua_set_CVec3i_z
  1882. static int tolua_set_CVec3i_z(lua_State* tolua_S)
  1883. {
  1884. CVec3i* self = (CVec3i*) tolua_tousertype(tolua_S,1,0);
  1885. #ifndef TOLUA_RELEASE
  1886. tolua_Error tolua_err;
  1887. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'z'",NULL);
  1888. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  1889. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  1890. #endif
  1891. self->set_z(((int) tolua_tonumber(tolua_S,2,0))
  1892. )
  1893. ;
  1894. return 0;
  1895. }
  1896. #endif //#ifndef TOLUA_DISABLE
  1897.  
  1898. /* method: new of class CVec4i */
  1899. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec4i_new00
  1900. static int tolua_bind_anl_CVec4i_new00(lua_State* tolua_S)
  1901. {
  1902. #ifndef TOLUA_RELEASE
  1903. tolua_Error tolua_err;
  1904. if (
  1905. !tolua_isusertable(tolua_S,1,"CVec4i",0,&tolua_err) ||
  1906. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1907. )
  1908. goto tolua_lerror;
  1909. else
  1910. #endif
  1911. {
  1912. {
  1913. CVec4i* tolua_ret = (CVec4i*) Mtolua_new((CVec4i)());
  1914. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec4i");
  1915. }
  1916. }
  1917. return 1;
  1918. #ifndef TOLUA_RELEASE
  1919. tolua_lerror:
  1920. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  1921. return 0;
  1922. #endif
  1923. }
  1924. #endif //#ifndef TOLUA_DISABLE
  1925.  
  1926. /* method: new_local of class CVec4i */
  1927. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec4i_new00_local
  1928. static int tolua_bind_anl_CVec4i_new00_local(lua_State* tolua_S)
  1929. {
  1930. #ifndef TOLUA_RELEASE
  1931. tolua_Error tolua_err;
  1932. if (
  1933. !tolua_isusertable(tolua_S,1,"CVec4i",0,&tolua_err) ||
  1934. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1935. )
  1936. goto tolua_lerror;
  1937. else
  1938. #endif
  1939. {
  1940. {
  1941. CVec4i* tolua_ret = (CVec4i*) Mtolua_new((CVec4i)());
  1942. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec4i");
  1943. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1944. }
  1945. }
  1946. return 1;
  1947. #ifndef TOLUA_RELEASE
  1948. tolua_lerror:
  1949. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  1950. return 0;
  1951. #endif
  1952. }
  1953. #endif //#ifndef TOLUA_DISABLE
  1954.  
  1955. /* method: new of class CVec4i */
  1956. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec4i_new01
  1957. static int tolua_bind_anl_CVec4i_new01(lua_State* tolua_S)
  1958. {
  1959. tolua_Error tolua_err;
  1960. if (
  1961. !tolua_isusertable(tolua_S,1,"CVec4i",0,&tolua_err) ||
  1962. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1963. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1964. )
  1965. goto tolua_lerror;
  1966. else
  1967. {
  1968. int a = ((int) tolua_tonumber(tolua_S,2,0));
  1969. {
  1970. CVec4i* tolua_ret = (CVec4i*) Mtolua_new((CVec4i)(a));
  1971. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec4i");
  1972. }
  1973. }
  1974. return 1;
  1975. tolua_lerror:
  1976. return tolua_bind_anl_CVec4i_new00(tolua_S);
  1977. }
  1978. #endif //#ifndef TOLUA_DISABLE
  1979.  
  1980. /* method: new_local of class CVec4i */
  1981. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec4i_new01_local
  1982. static int tolua_bind_anl_CVec4i_new01_local(lua_State* tolua_S)
  1983. {
  1984. tolua_Error tolua_err;
  1985. if (
  1986. !tolua_isusertable(tolua_S,1,"CVec4i",0,&tolua_err) ||
  1987. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1988. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1989. )
  1990. goto tolua_lerror;
  1991. else
  1992. {
  1993. int a = ((int) tolua_tonumber(tolua_S,2,0));
  1994. {
  1995. CVec4i* tolua_ret = (CVec4i*) Mtolua_new((CVec4i)(a));
  1996. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec4i");
  1997. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1998. }
  1999. }
  2000. return 1;
  2001. tolua_lerror:
  2002. return tolua_bind_anl_CVec4i_new00_local(tolua_S);
  2003. }
  2004. #endif //#ifndef TOLUA_DISABLE
  2005.  
  2006. /* method: new of class CVec4i */
  2007. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec4i_new02
  2008. static int tolua_bind_anl_CVec4i_new02(lua_State* tolua_S)
  2009. {
  2010. tolua_Error tolua_err;
  2011. if (
  2012. !tolua_isusertable(tolua_S,1,"CVec4i",0,&tolua_err) ||
  2013. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const CVec4i",0,&tolua_err)) ||
  2014. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2015. )
  2016. goto tolua_lerror;
  2017. else
  2018. {
  2019. const CVec4i* tvec = ((const CVec4i*) tolua_tousertype(tolua_S,2,0));
  2020. {
  2021. CVec4i* tolua_ret = (CVec4i*) Mtolua_new((CVec4i)(*tvec));
  2022. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec4i");
  2023. }
  2024. }
  2025. return 1;
  2026. tolua_lerror:
  2027. return tolua_bind_anl_CVec4i_new01(tolua_S);
  2028. }
  2029. #endif //#ifndef TOLUA_DISABLE
  2030.  
  2031. /* method: new_local of class CVec4i */
  2032. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec4i_new02_local
  2033. static int tolua_bind_anl_CVec4i_new02_local(lua_State* tolua_S)
  2034. {
  2035. tolua_Error tolua_err;
  2036. if (
  2037. !tolua_isusertable(tolua_S,1,"CVec4i",0,&tolua_err) ||
  2038. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const CVec4i",0,&tolua_err)) ||
  2039. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2040. )
  2041. goto tolua_lerror;
  2042. else
  2043. {
  2044. const CVec4i* tvec = ((const CVec4i*) tolua_tousertype(tolua_S,2,0));
  2045. {
  2046. CVec4i* tolua_ret = (CVec4i*) Mtolua_new((CVec4i)(*tvec));
  2047. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec4i");
  2048. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2049. }
  2050. }
  2051. return 1;
  2052. tolua_lerror:
  2053. return tolua_bind_anl_CVec4i_new01_local(tolua_S);
  2054. }
  2055. #endif //#ifndef TOLUA_DISABLE
  2056.  
  2057. /* method: new of class CVec4i */
  2058. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec4i_new03
  2059. static int tolua_bind_anl_CVec4i_new03(lua_State* tolua_S)
  2060. {
  2061. tolua_Error tolua_err;
  2062. if (
  2063. !tolua_isusertable(tolua_S,1,"CVec4i",0,&tolua_err) ||
  2064. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2065. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  2066. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  2067. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  2068. !tolua_isnoobj(tolua_S,6,&tolua_err)
  2069. )
  2070. goto tolua_lerror;
  2071. else
  2072. {
  2073. const int t1 = ((const int) tolua_tonumber(tolua_S,2,0));
  2074. const int t2 = ((const int) tolua_tonumber(tolua_S,3,0));
  2075. const int t3 = ((const int) tolua_tonumber(tolua_S,4,0));
  2076. const int t4 = ((const int) tolua_tonumber(tolua_S,5,0));
  2077. {
  2078. CVec4i* tolua_ret = (CVec4i*) Mtolua_new((CVec4i)(t1,t2,t3,t4));
  2079. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec4i");
  2080. }
  2081. }
  2082. return 1;
  2083. tolua_lerror:
  2084. return tolua_bind_anl_CVec4i_new02(tolua_S);
  2085. }
  2086. #endif //#ifndef TOLUA_DISABLE
  2087.  
  2088. /* method: new_local of class CVec4i */
  2089. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec4i_new03_local
  2090. static int tolua_bind_anl_CVec4i_new03_local(lua_State* tolua_S)
  2091. {
  2092. tolua_Error tolua_err;
  2093. if (
  2094. !tolua_isusertable(tolua_S,1,"CVec4i",0,&tolua_err) ||
  2095. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2096. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  2097. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  2098. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  2099. !tolua_isnoobj(tolua_S,6,&tolua_err)
  2100. )
  2101. goto tolua_lerror;
  2102. else
  2103. {
  2104. const int t1 = ((const int) tolua_tonumber(tolua_S,2,0));
  2105. const int t2 = ((const int) tolua_tonumber(tolua_S,3,0));
  2106. const int t3 = ((const int) tolua_tonumber(tolua_S,4,0));
  2107. const int t4 = ((const int) tolua_tonumber(tolua_S,5,0));
  2108. {
  2109. CVec4i* tolua_ret = (CVec4i*) Mtolua_new((CVec4i)(t1,t2,t3,t4));
  2110. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CVec4i");
  2111. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2112. }
  2113. }
  2114. return 1;
  2115. tolua_lerror:
  2116. return tolua_bind_anl_CVec4i_new02_local(tolua_S);
  2117. }
  2118. #endif //#ifndef TOLUA_DISABLE
  2119.  
  2120. /* method: delete of class CVec4i */
  2121. #ifndef TOLUA_DISABLE_tolua_bind_anl_CVec4i_delete00
  2122. static int tolua_bind_anl_CVec4i_delete00(lua_State* tolua_S)
  2123. {
  2124. #ifndef TOLUA_RELEASE
  2125. tolua_Error tolua_err;
  2126. if (
  2127. !tolua_isusertype(tolua_S,1,"CVec4i",0,&tolua_err) ||
  2128. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2129. )
  2130. goto tolua_lerror;
  2131. else
  2132. #endif
  2133. {
  2134. CVec4i* self = (CVec4i*) tolua_tousertype(tolua_S,1,0);
  2135. #ifndef TOLUA_RELEASE
  2136. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  2137. #endif
  2138. Mtolua_delete(self);
  2139. }
  2140. return 0;
  2141. #ifndef TOLUA_RELEASE
  2142. tolua_lerror:
  2143. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  2144. return 0;
  2145. #endif
  2146. }
  2147. #endif //#ifndef TOLUA_DISABLE
  2148.  
  2149. /* get function: x of class CVec4i */
  2150. #ifndef TOLUA_DISABLE_tolua_get_CVec4i_x
  2151. static int tolua_get_CVec4i_x(lua_State* tolua_S)
  2152. {
  2153. CVec4i* self = (CVec4i*) tolua_tousertype(tolua_S,1,0);
  2154. #ifndef TOLUA_RELEASE
  2155. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x'",NULL);
  2156. #endif
  2157. tolua_pushnumber(tolua_S,(lua_Number)self->get_x());
  2158. return 1;
  2159. }
  2160. #endif //#ifndef TOLUA_DISABLE
  2161.  
  2162. /* set function: x of class CVec4i */
  2163. #ifndef TOLUA_DISABLE_tolua_set_CVec4i_x
  2164. static int tolua_set_CVec4i_x(lua_State* tolua_S)
  2165. {
  2166. CVec4i* self = (CVec4i*) tolua_tousertype(tolua_S,1,0);
  2167. #ifndef TOLUA_RELEASE
  2168. tolua_Error tolua_err;
  2169. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x'",NULL);
  2170. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  2171. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  2172. #endif
  2173. self->set_x(((int) tolua_tonumber(tolua_S,2,0))
  2174. )
  2175. ;
  2176. return 0;
  2177. }
  2178. #endif //#ifndef TOLUA_DISABLE
  2179.  
  2180. /* get function: y of class CVec4i */
  2181. #ifndef TOLUA_DISABLE_tolua_get_CVec4i_y
  2182. static int tolua_get_CVec4i_y(lua_State* tolua_S)
  2183. {
  2184. CVec4i* self = (CVec4i*) tolua_tousertype(tolua_S,1,0);
  2185. #ifndef TOLUA_RELEASE
  2186. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y'",NULL);
  2187. #endif
  2188. tolua_pushnumber(tolua_S,(lua_Number)self->get_y());
  2189. return 1;
  2190. }
  2191. #endif //#ifndef TOLUA_DISABLE
  2192.  
  2193. /* set function: y of class CVec4i */
  2194. #ifndef TOLUA_DISABLE_tolua_set_CVec4i_y
  2195. static int tolua_set_CVec4i_y(lua_State* tolua_S)
  2196. {
  2197. CVec4i* self = (CVec4i*) tolua_tousertype(tolua_S,1,0);
  2198. #ifndef TOLUA_RELEASE
  2199. tolua_Error tolua_err;
  2200. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y'",NULL);
  2201. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  2202. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  2203. #endif
  2204. self->set_y(((int) tolua_tonumber(tolua_S,2,0))
  2205. )
  2206. ;
  2207. return 0;
  2208. }
  2209. #endif //#ifndef TOLUA_DISABLE
  2210.  
  2211. /* get function: z of class CVec4i */
  2212. #ifndef TOLUA_DISABLE_tolua_get_CVec4i_z
  2213. static int tolua_get_CVec4i_z(lua_State* tolua_S)
  2214. {
  2215. CVec4i* self = (CVec4i*) tolua_tousertype(tolua_S,1,0);
  2216. #ifndef TOLUA_RELEASE
  2217. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'z'",NULL);
  2218. #endif
  2219. tolua_pushnumber(tolua_S,(lua_Number)self->get_z());
  2220. return 1;
  2221. }
  2222. #endif //#ifndef TOLUA_DISABLE
  2223.  
  2224. /* set function: z of class CVec4i */
  2225. #ifndef TOLUA_DISABLE_tolua_set_CVec4i_z
  2226. static int tolua_set_CVec4i_z(lua_State* tolua_S)
  2227. {
  2228. CVec4i* self = (CVec4i*) tolua_tousertype(tolua_S,1,0);
  2229. #ifndef TOLUA_RELEASE
  2230. tolua_Error tolua_err;
  2231. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'z'",NULL);
  2232. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  2233. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  2234. #endif
  2235. self->set_z(((int) tolua_tonumber(tolua_S,2,0))
  2236. )
  2237. ;
  2238. return 0;
  2239. }
  2240. #endif //#ifndef TOLUA_DISABLE
  2241.  
  2242. /* get function: w of class CVec4i */
  2243. #ifndef TOLUA_DISABLE_tolua_get_CVec4i_w
  2244. static int tolua_get_CVec4i_w(lua_State* tolua_S)
  2245. {
  2246. CVec4i* self = (CVec4i*) tolua_tousertype(tolua_S,1,0);
  2247. #ifndef TOLUA_RELEASE
  2248. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'w'",NULL);
  2249. #endif
  2250. tolua_pushnumber(tolua_S,(lua_Number)self->get_w());
  2251. return 1;
  2252. }
  2253. #endif //#ifndef TOLUA_DISABLE
  2254.  
  2255. /* set function: w of class CVec4i */
  2256. #ifndef TOLUA_DISABLE_tolua_set_CVec4i_w
  2257. static int tolua_set_CVec4i_w(lua_State* tolua_S)
  2258. {
  2259. CVec4i* self = (CVec4i*) tolua_tousertype(tolua_S,1,0);
  2260. #ifndef TOLUA_RELEASE
  2261. tolua_Error tolua_err;
  2262. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'w'",NULL);
  2263. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  2264. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  2265. #endif
  2266. self->set_w(((int) tolua_tonumber(tolua_S,2,0))
  2267. )
  2268. ;
  2269. return 0;
  2270. }
  2271. #endif //#ifndef TOLUA_DISABLE
  2272.  
  2273. /* method: get of class CBasePRNG */
  2274. #ifndef TOLUA_DISABLE_tolua_bind_anl_CBasePRNG_get00
  2275. static int tolua_bind_anl_CBasePRNG_get00(lua_State* tolua_S)
  2276. {
  2277. #ifndef TOLUA_RELEASE
  2278. tolua_Error tolua_err;
  2279. if (
  2280. !tolua_isusertype(tolua_S,1,"CBasePRNG",0,&tolua_err) ||
  2281. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2282. )
  2283. goto tolua_lerror;
  2284. else
  2285. #endif
  2286. {
  2287. CBasePRNG* self = (CBasePRNG*) tolua_tousertype(tolua_S,1,0);
  2288. #ifndef TOLUA_RELEASE
  2289. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'get'", NULL);
  2290. #endif
  2291. {
  2292. unsigned int tolua_ret = (unsigned int) self->get();
  2293. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2294. }
  2295. }
  2296. return 1;
  2297. #ifndef TOLUA_RELEASE
  2298. tolua_lerror:
  2299. tolua_error(tolua_S,"#ferror in function 'get'.",&tolua_err);
  2300. return 0;
  2301. #endif
  2302. }
  2303. #endif //#ifndef TOLUA_DISABLE
  2304.  
  2305. /* method: setSeed of class CBasePRNG */
  2306. #ifndef TOLUA_DISABLE_tolua_bind_anl_CBasePRNG_setSeed00
  2307. static int tolua_bind_anl_CBasePRNG_setSeed00(lua_State* tolua_S)
  2308. {
  2309. #ifndef TOLUA_RELEASE
  2310. tolua_Error tolua_err;
  2311. if (
  2312. !tolua_isusertype(tolua_S,1,"CBasePRNG",0,&tolua_err) ||
  2313. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2314. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2315. )
  2316. goto tolua_lerror;
  2317. else
  2318. #endif
  2319. {
  2320. CBasePRNG* self = (CBasePRNG*) tolua_tousertype(tolua_S,1,0);
  2321. unsigned int s = ((unsigned int) tolua_tonumber(tolua_S,2,0));
  2322. #ifndef TOLUA_RELEASE
  2323. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setSeed'", NULL);
  2324. #endif
  2325. {
  2326. self->setSeed(s);
  2327. }
  2328. }
  2329. return 0;
  2330. #ifndef TOLUA_RELEASE
  2331. tolua_lerror:
  2332. tolua_error(tolua_S,"#ferror in function 'setSeed'.",&tolua_err);
  2333. return 0;
  2334. #endif
  2335. }
  2336. #endif //#ifndef TOLUA_DISABLE
  2337.  
  2338. /* method: setSeedTime of class CBasePRNG */
  2339. #ifndef TOLUA_DISABLE_tolua_bind_anl_CBasePRNG_setSeedTime00
  2340. static int tolua_bind_anl_CBasePRNG_setSeedTime00(lua_State* tolua_S)
  2341. {
  2342. #ifndef TOLUA_RELEASE
  2343. tolua_Error tolua_err;
  2344. if (
  2345. !tolua_isusertype(tolua_S,1,"CBasePRNG",0,&tolua_err) ||
  2346. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2347. )
  2348. goto tolua_lerror;
  2349. else
  2350. #endif
  2351. {
  2352. CBasePRNG* self = (CBasePRNG*) tolua_tousertype(tolua_S,1,0);
  2353. #ifndef TOLUA_RELEASE
  2354. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setSeedTime'", NULL);
  2355. #endif
  2356. {
  2357. self->setSeedTime();
  2358. }
  2359. }
  2360. return 0;
  2361. #ifndef TOLUA_RELEASE
  2362. tolua_lerror:
  2363. tolua_error(tolua_S,"#ferror in function 'setSeedTime'.",&tolua_err);
  2364. return 0;
  2365. #endif
  2366. }
  2367. #endif //#ifndef TOLUA_DISABLE
  2368.  
  2369. /* method: getTarget of class CBasePRNG */
  2370. #ifndef TOLUA_DISABLE_tolua_bind_anl_CBasePRNG_getTarget00
  2371. static int tolua_bind_anl_CBasePRNG_getTarget00(lua_State* tolua_S)
  2372. {
  2373. #ifndef TOLUA_RELEASE
  2374. tolua_Error tolua_err;
  2375. if (
  2376. !tolua_isusertype(tolua_S,1,"CBasePRNG",0,&tolua_err) ||
  2377. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2378. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2379. )
  2380. goto tolua_lerror;
  2381. else
  2382. #endif
  2383. {
  2384. CBasePRNG* self = (CBasePRNG*) tolua_tousertype(tolua_S,1,0);
  2385. unsigned int t = ((unsigned int) tolua_tonumber(tolua_S,2,0));
  2386. #ifndef TOLUA_RELEASE
  2387. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getTarget'", NULL);
  2388. #endif
  2389. {
  2390. unsigned int tolua_ret = (unsigned int) self->getTarget(t);
  2391. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2392. }
  2393. }
  2394. return 1;
  2395. #ifndef TOLUA_RELEASE
  2396. tolua_lerror:
  2397. tolua_error(tolua_S,"#ferror in function 'getTarget'.",&tolua_err);
  2398. return 0;
  2399. #endif
  2400. }
  2401. #endif //#ifndef TOLUA_DISABLE
  2402.  
  2403. /* method: getRange of class CBasePRNG */
  2404. #ifndef TOLUA_DISABLE_tolua_bind_anl_CBasePRNG_getRange00
  2405. static int tolua_bind_anl_CBasePRNG_getRange00(lua_State* tolua_S)
  2406. {
  2407. #ifndef TOLUA_RELEASE
  2408. tolua_Error tolua_err;
  2409. if (
  2410. !tolua_isusertype(tolua_S,1,"CBasePRNG",0,&tolua_err) ||
  2411. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2412. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  2413. !tolua_isnoobj(tolua_S,4,&tolua_err)
  2414. )
  2415. goto tolua_lerror;
  2416. else
  2417. #endif
  2418. {
  2419. CBasePRNG* self = (CBasePRNG*) tolua_tousertype(tolua_S,1,0);
  2420. unsigned int low = ((unsigned int) tolua_tonumber(tolua_S,2,0));
  2421. unsigned int high = ((unsigned int) tolua_tonumber(tolua_S,3,0));
  2422. #ifndef TOLUA_RELEASE
  2423. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getRange'", NULL);
  2424. #endif
  2425. {
  2426. unsigned int tolua_ret = (unsigned int) self->getRange(low,high);
  2427. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2428. }
  2429. }
  2430. return 1;
  2431. #ifndef TOLUA_RELEASE
  2432. tolua_lerror:
  2433. tolua_error(tolua_S,"#ferror in function 'getRange'.",&tolua_err);
  2434. return 0;
  2435. #endif
  2436. }
  2437. #endif //#ifndef TOLUA_DISABLE
  2438.  
  2439. /* method: get01 of class CBasePRNG */
  2440. #ifndef TOLUA_DISABLE_tolua_bind_anl_CBasePRNG_get0100
  2441. static int tolua_bind_anl_CBasePRNG_get0100(lua_State* tolua_S)
  2442. {
  2443. #ifndef TOLUA_RELEASE
  2444. tolua_Error tolua_err;
  2445. if (
  2446. !tolua_isusertype(tolua_S,1,"CBasePRNG",0,&tolua_err) ||
  2447. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2448. )
  2449. goto tolua_lerror;
  2450. else
  2451. #endif
  2452. {
  2453. CBasePRNG* self = (CBasePRNG*) tolua_tousertype(tolua_S,1,0);
  2454. #ifndef TOLUA_RELEASE
  2455. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'get01'", NULL);
  2456. #endif
  2457. {
  2458. double tolua_ret = (double) self->get01();
  2459. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2460. }
  2461. }
  2462. return 1;
  2463. #ifndef TOLUA_RELEASE
  2464. tolua_lerror:
  2465. tolua_error(tolua_S,"#ferror in function 'get01'.",&tolua_err);
  2466. return 0;
  2467. #endif
  2468. }
  2469. #endif //#ifndef TOLUA_DISABLE
  2470.  
  2471. /* method: new of class LCG */
  2472. #ifndef TOLUA_DISABLE_tolua_bind_anl_LCG_new00
  2473. static int tolua_bind_anl_LCG_new00(lua_State* tolua_S)
  2474. {
  2475. #ifndef TOLUA_RELEASE
  2476. tolua_Error tolua_err;
  2477. if (
  2478. !tolua_isusertable(tolua_S,1,"LCG",0,&tolua_err) ||
  2479. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2480. )
  2481. goto tolua_lerror;
  2482. else
  2483. #endif
  2484. {
  2485. {
  2486. LCG* tolua_ret = (LCG*) Mtolua_new((LCG)());
  2487. tolua_pushusertype(tolua_S,(void*)tolua_ret,"LCG");
  2488. }
  2489. }
  2490. return 1;
  2491. #ifndef TOLUA_RELEASE
  2492. tolua_lerror:
  2493. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  2494. return 0;
  2495. #endif
  2496. }
  2497. #endif //#ifndef TOLUA_DISABLE
  2498.  
  2499. /* method: new_local of class LCG */
  2500. #ifndef TOLUA_DISABLE_tolua_bind_anl_LCG_new00_local
  2501. static int tolua_bind_anl_LCG_new00_local(lua_State* tolua_S)
  2502. {
  2503. #ifndef TOLUA_RELEASE
  2504. tolua_Error tolua_err;
  2505. if (
  2506. !tolua_isusertable(tolua_S,1,"LCG",0,&tolua_err) ||
  2507. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2508. )
  2509. goto tolua_lerror;
  2510. else
  2511. #endif
  2512. {
  2513. {
  2514. LCG* tolua_ret = (LCG*) Mtolua_new((LCG)());
  2515. tolua_pushusertype(tolua_S,(void*)tolua_ret,"LCG");
  2516. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2517. }
  2518. }
  2519. return 1;
  2520. #ifndef TOLUA_RELEASE
  2521. tolua_lerror:
  2522. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  2523. return 0;
  2524. #endif
  2525. }
  2526. #endif //#ifndef TOLUA_DISABLE
  2527.  
  2528. /* method: delete of class LCG */
  2529. #ifndef TOLUA_DISABLE_tolua_bind_anl_LCG_delete00
  2530. static int tolua_bind_anl_LCG_delete00(lua_State* tolua_S)
  2531. {
  2532. #ifndef TOLUA_RELEASE
  2533. tolua_Error tolua_err;
  2534. if (
  2535. !tolua_isusertype(tolua_S,1,"LCG",0,&tolua_err) ||
  2536. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2537. )
  2538. goto tolua_lerror;
  2539. else
  2540. #endif
  2541. {
  2542. LCG* self = (LCG*) tolua_tousertype(tolua_S,1,0);
  2543. #ifndef TOLUA_RELEASE
  2544. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  2545. #endif
  2546. Mtolua_delete(self);
  2547. }
  2548. return 0;
  2549. #ifndef TOLUA_RELEASE
  2550. tolua_lerror:
  2551. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  2552. return 0;
  2553. #endif
  2554. }
  2555. #endif //#ifndef TOLUA_DISABLE
  2556.  
  2557. /* method: new of class Xorshift */
  2558. #ifndef TOLUA_DISABLE_tolua_bind_anl_Xorshift_new00
  2559. static int tolua_bind_anl_Xorshift_new00(lua_State* tolua_S)
  2560. {
  2561. #ifndef TOLUA_RELEASE
  2562. tolua_Error tolua_err;
  2563. if (
  2564. !tolua_isusertable(tolua_S,1,"Xorshift",0,&tolua_err) ||
  2565. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2566. )
  2567. goto tolua_lerror;
  2568. else
  2569. #endif
  2570. {
  2571. {
  2572. Xorshift* tolua_ret = (Xorshift*) Mtolua_new((Xorshift)());
  2573. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Xorshift");
  2574. }
  2575. }
  2576. return 1;
  2577. #ifndef TOLUA_RELEASE
  2578. tolua_lerror:
  2579. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  2580. return 0;
  2581. #endif
  2582. }
  2583. #endif //#ifndef TOLUA_DISABLE
  2584.  
  2585. /* method: new_local of class Xorshift */
  2586. #ifndef TOLUA_DISABLE_tolua_bind_anl_Xorshift_new00_local
  2587. static int tolua_bind_anl_Xorshift_new00_local(lua_State* tolua_S)
  2588. {
  2589. #ifndef TOLUA_RELEASE
  2590. tolua_Error tolua_err;
  2591. if (
  2592. !tolua_isusertable(tolua_S,1,"Xorshift",0,&tolua_err) ||
  2593. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2594. )
  2595. goto tolua_lerror;
  2596. else
  2597. #endif
  2598. {
  2599. {
  2600. Xorshift* tolua_ret = (Xorshift*) Mtolua_new((Xorshift)());
  2601. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Xorshift");
  2602. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2603. }
  2604. }
  2605. return 1;
  2606. #ifndef TOLUA_RELEASE
  2607. tolua_lerror:
  2608. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  2609. return 0;
  2610. #endif
  2611. }
  2612. #endif //#ifndef TOLUA_DISABLE
  2613.  
  2614. /* method: delete of class Xorshift */
  2615. #ifndef TOLUA_DISABLE_tolua_bind_anl_Xorshift_delete00
  2616. static int tolua_bind_anl_Xorshift_delete00(lua_State* tolua_S)
  2617. {
  2618. #ifndef TOLUA_RELEASE
  2619. tolua_Error tolua_err;
  2620. if (
  2621. !tolua_isusertype(tolua_S,1,"Xorshift",0,&tolua_err) ||
  2622. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2623. )
  2624. goto tolua_lerror;
  2625. else
  2626. #endif
  2627. {
  2628. Xorshift* self = (Xorshift*) tolua_tousertype(tolua_S,1,0);
  2629. #ifndef TOLUA_RELEASE
  2630. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  2631. #endif
  2632. Mtolua_delete(self);
  2633. }
  2634. return 0;
  2635. #ifndef TOLUA_RELEASE
  2636. tolua_lerror:
  2637. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  2638. return 0;
  2639. #endif
  2640. }
  2641. #endif //#ifndef TOLUA_DISABLE
  2642.  
  2643. /* method: new of class MWC256 */
  2644. #ifndef TOLUA_DISABLE_tolua_bind_anl_MWC256_new00
  2645. static int tolua_bind_anl_MWC256_new00(lua_State* tolua_S)
  2646. {
  2647. #ifndef TOLUA_RELEASE
  2648. tolua_Error tolua_err;
  2649. if (
  2650. !tolua_isusertable(tolua_S,1,"MWC256",0,&tolua_err) ||
  2651. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2652. )
  2653. goto tolua_lerror;
  2654. else
  2655. #endif
  2656. {
  2657. {
  2658. MWC256* tolua_ret = (MWC256*) Mtolua_new((MWC256)());
  2659. tolua_pushusertype(tolua_S,(void*)tolua_ret,"MWC256");
  2660. }
  2661. }
  2662. return 1;
  2663. #ifndef TOLUA_RELEASE
  2664. tolua_lerror:
  2665. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  2666. return 0;
  2667. #endif
  2668. }
  2669. #endif //#ifndef TOLUA_DISABLE
  2670.  
  2671. /* method: new_local of class MWC256 */
  2672. #ifndef TOLUA_DISABLE_tolua_bind_anl_MWC256_new00_local
  2673. static int tolua_bind_anl_MWC256_new00_local(lua_State* tolua_S)
  2674. {
  2675. #ifndef TOLUA_RELEASE
  2676. tolua_Error tolua_err;
  2677. if (
  2678. !tolua_isusertable(tolua_S,1,"MWC256",0,&tolua_err) ||
  2679. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2680. )
  2681. goto tolua_lerror;
  2682. else
  2683. #endif
  2684. {
  2685. {
  2686. MWC256* tolua_ret = (MWC256*) Mtolua_new((MWC256)());
  2687. tolua_pushusertype(tolua_S,(void*)tolua_ret,"MWC256");
  2688. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2689. }
  2690. }
  2691. return 1;
  2692. #ifndef TOLUA_RELEASE
  2693. tolua_lerror:
  2694. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  2695. return 0;
  2696. #endif
  2697. }
  2698. #endif //#ifndef TOLUA_DISABLE
  2699.  
  2700. /* method: delete of class MWC256 */
  2701. #ifndef TOLUA_DISABLE_tolua_bind_anl_MWC256_delete00
  2702. static int tolua_bind_anl_MWC256_delete00(lua_State* tolua_S)
  2703. {
  2704. #ifndef TOLUA_RELEASE
  2705. tolua_Error tolua_err;
  2706. if (
  2707. !tolua_isusertype(tolua_S,1,"MWC256",0,&tolua_err) ||
  2708. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2709. )
  2710. goto tolua_lerror;
  2711. else
  2712. #endif
  2713. {
  2714. MWC256* self = (MWC256*) tolua_tousertype(tolua_S,1,0);
  2715. #ifndef TOLUA_RELEASE
  2716. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  2717. #endif
  2718. Mtolua_delete(self);
  2719. }
  2720. return 0;
  2721. #ifndef TOLUA_RELEASE
  2722. tolua_lerror:
  2723. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  2724. return 0;
  2725. #endif
  2726. }
  2727. #endif //#ifndef TOLUA_DISABLE
  2728.  
  2729. /* method: new of class CMWC4096 */
  2730. #ifndef TOLUA_DISABLE_tolua_bind_anl_CMWC4096_new00
  2731. static int tolua_bind_anl_CMWC4096_new00(lua_State* tolua_S)
  2732. {
  2733. #ifndef TOLUA_RELEASE
  2734. tolua_Error tolua_err;
  2735. if (
  2736. !tolua_isusertable(tolua_S,1,"CMWC4096",0,&tolua_err) ||
  2737. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2738. )
  2739. goto tolua_lerror;
  2740. else
  2741. #endif
  2742. {
  2743. {
  2744. CMWC4096* tolua_ret = (CMWC4096*) Mtolua_new((CMWC4096)());
  2745. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CMWC4096");
  2746. }
  2747. }
  2748. return 1;
  2749. #ifndef TOLUA_RELEASE
  2750. tolua_lerror:
  2751. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  2752. return 0;
  2753. #endif
  2754. }
  2755. #endif //#ifndef TOLUA_DISABLE
  2756.  
  2757. /* method: new_local of class CMWC4096 */
  2758. #ifndef TOLUA_DISABLE_tolua_bind_anl_CMWC4096_new00_local
  2759. static int tolua_bind_anl_CMWC4096_new00_local(lua_State* tolua_S)
  2760. {
  2761. #ifndef TOLUA_RELEASE
  2762. tolua_Error tolua_err;
  2763. if (
  2764. !tolua_isusertable(tolua_S,1,"CMWC4096",0,&tolua_err) ||
  2765. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2766. )
  2767. goto tolua_lerror;
  2768. else
  2769. #endif
  2770. {
  2771. {
  2772. CMWC4096* tolua_ret = (CMWC4096*) Mtolua_new((CMWC4096)());
  2773. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CMWC4096");
  2774. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2775. }
  2776. }
  2777. return 1;
  2778. #ifndef TOLUA_RELEASE
  2779. tolua_lerror:
  2780. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  2781. return 0;
  2782. #endif
  2783. }
  2784. #endif //#ifndef TOLUA_DISABLE
  2785.  
  2786. /* method: delete of class CMWC4096 */
  2787. #ifndef TOLUA_DISABLE_tolua_bind_anl_CMWC4096_delete00
  2788. static int tolua_bind_anl_CMWC4096_delete00(lua_State* tolua_S)
  2789. {
  2790. #ifndef TOLUA_RELEASE
  2791. tolua_Error tolua_err;
  2792. if (
  2793. !tolua_isusertype(tolua_S,1,"CMWC4096",0,&tolua_err) ||
  2794. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2795. )
  2796. goto tolua_lerror;
  2797. else
  2798. #endif
  2799. {
  2800. CMWC4096* self = (CMWC4096*) tolua_tousertype(tolua_S,1,0);
  2801. #ifndef TOLUA_RELEASE
  2802. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  2803. #endif
  2804. Mtolua_delete(self);
  2805. }
  2806. return 0;
  2807. #ifndef TOLUA_RELEASE
  2808. tolua_lerror:
  2809. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  2810. return 0;
  2811. #endif
  2812. }
  2813. #endif //#ifndef TOLUA_DISABLE
  2814.  
  2815. /* method: new of class KISS */
  2816. #ifndef TOLUA_DISABLE_tolua_bind_anl_KISS_new00
  2817. static int tolua_bind_anl_KISS_new00(lua_State* tolua_S)
  2818. {
  2819. #ifndef TOLUA_RELEASE
  2820. tolua_Error tolua_err;
  2821. if (
  2822. !tolua_isusertable(tolua_S,1,"KISS",0,&tolua_err) ||
  2823. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2824. )
  2825. goto tolua_lerror;
  2826. else
  2827. #endif
  2828. {
  2829. {
  2830. KISS* tolua_ret = (KISS*) Mtolua_new((KISS)());
  2831. tolua_pushusertype(tolua_S,(void*)tolua_ret,"KISS");
  2832. }
  2833. }
  2834. return 1;
  2835. #ifndef TOLUA_RELEASE
  2836. tolua_lerror:
  2837. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  2838. return 0;
  2839. #endif
  2840. }
  2841. #endif //#ifndef TOLUA_DISABLE
  2842.  
  2843. /* method: new_local of class KISS */
  2844. #ifndef TOLUA_DISABLE_tolua_bind_anl_KISS_new00_local
  2845. static int tolua_bind_anl_KISS_new00_local(lua_State* tolua_S)
  2846. {
  2847. #ifndef TOLUA_RELEASE
  2848. tolua_Error tolua_err;
  2849. if (
  2850. !tolua_isusertable(tolua_S,1,"KISS",0,&tolua_err) ||
  2851. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2852. )
  2853. goto tolua_lerror;
  2854. else
  2855. #endif
  2856. {
  2857. {
  2858. KISS* tolua_ret = (KISS*) Mtolua_new((KISS)());
  2859. tolua_pushusertype(tolua_S,(void*)tolua_ret,"KISS");
  2860. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2861. }
  2862. }
  2863. return 1;
  2864. #ifndef TOLUA_RELEASE
  2865. tolua_lerror:
  2866. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  2867. return 0;
  2868. #endif
  2869. }
  2870. #endif //#ifndef TOLUA_DISABLE
  2871.  
  2872. /* method: delete of class KISS */
  2873. #ifndef TOLUA_DISABLE_tolua_bind_anl_KISS_delete00
  2874. static int tolua_bind_anl_KISS_delete00(lua_State* tolua_S)
  2875. {
  2876. #ifndef TOLUA_RELEASE
  2877. tolua_Error tolua_err;
  2878. if (
  2879. !tolua_isusertype(tolua_S,1,"KISS",0,&tolua_err) ||
  2880. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2881. )
  2882. goto tolua_lerror;
  2883. else
  2884. #endif
  2885. {
  2886. KISS* self = (KISS*) tolua_tousertype(tolua_S,1,0);
  2887. #ifndef TOLUA_RELEASE
  2888. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  2889. #endif
  2890. Mtolua_delete(self);
  2891. }
  2892. return 0;
  2893. #ifndef TOLUA_RELEASE
  2894. tolua_lerror:
  2895. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  2896. return 0;
  2897. #endif
  2898. }
  2899. #endif //#ifndef TOLUA_DISABLE
  2900.  
  2901. /* method: new of class CCoordinate */
  2902. #ifndef TOLUA_DISABLE_tolua_bind_anl_CCoordinate_new00
  2903. static int tolua_bind_anl_CCoordinate_new00(lua_State* tolua_S)
  2904. {
  2905. #ifndef TOLUA_RELEASE
  2906. tolua_Error tolua_err;
  2907. if (
  2908. !tolua_isusertable(tolua_S,1,"CCoordinate",0,&tolua_err) ||
  2909. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2910. )
  2911. goto tolua_lerror;
  2912. else
  2913. #endif
  2914. {
  2915. {
  2916. CCoordinate* tolua_ret = (CCoordinate*) Mtolua_new((CCoordinate)());
  2917. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CCoordinate");
  2918. }
  2919. }
  2920. return 1;
  2921. #ifndef TOLUA_RELEASE
  2922. tolua_lerror:
  2923. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  2924. return 0;
  2925. #endif
  2926. }
  2927. #endif //#ifndef TOLUA_DISABLE
  2928.  
  2929. /* method: new_local of class CCoordinate */
  2930. #ifndef TOLUA_DISABLE_tolua_bind_anl_CCoordinate_new00_local
  2931. static int tolua_bind_anl_CCoordinate_new00_local(lua_State* tolua_S)
  2932. {
  2933. #ifndef TOLUA_RELEASE
  2934. tolua_Error tolua_err;
  2935. if (
  2936. !tolua_isusertable(tolua_S,1,"CCoordinate",0,&tolua_err) ||
  2937. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2938. )
  2939. goto tolua_lerror;
  2940. else
  2941. #endif
  2942. {
  2943. {
  2944. CCoordinate* tolua_ret = (CCoordinate*) Mtolua_new((CCoordinate)());
  2945. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CCoordinate");
  2946. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2947. }
  2948. }
  2949. return 1;
  2950. #ifndef TOLUA_RELEASE
  2951. tolua_lerror:
  2952. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  2953. return 0;
  2954. #endif
  2955. }
  2956. #endif //#ifndef TOLUA_DISABLE
  2957.  
  2958. /* method: new of class CCoordinate */
  2959. #ifndef TOLUA_DISABLE_tolua_bind_anl_CCoordinate_new01
  2960. static int tolua_bind_anl_CCoordinate_new01(lua_State* tolua_S)
  2961. {
  2962. tolua_Error tolua_err;
  2963. if (
  2964. !tolua_isusertable(tolua_S,1,"CCoordinate",0,&tolua_err) ||
  2965. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2966. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  2967. !tolua_isnoobj(tolua_S,4,&tolua_err)
  2968. )
  2969. goto tolua_lerror;
  2970. else
  2971. {
  2972. double x = ((double) tolua_tonumber(tolua_S,2,0));
  2973. double y = ((double) tolua_tonumber(tolua_S,3,0));
  2974. {
  2975. CCoordinate* tolua_ret = (CCoordinate*) Mtolua_new((CCoordinate)(x,y));
  2976. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CCoordinate");
  2977. }
  2978. }
  2979. return 1;
  2980. tolua_lerror:
  2981. return tolua_bind_anl_CCoordinate_new00(tolua_S);
  2982. }
  2983. #endif //#ifndef TOLUA_DISABLE
  2984.  
  2985. /* method: new_local of class CCoordinate */
  2986. #ifndef TOLUA_DISABLE_tolua_bind_anl_CCoordinate_new01_local
  2987. static int tolua_bind_anl_CCoordinate_new01_local(lua_State* tolua_S)
  2988. {
  2989. tolua_Error tolua_err;
  2990. if (
  2991. !tolua_isusertable(tolua_S,1,"CCoordinate",0,&tolua_err) ||
  2992. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2993. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  2994. !tolua_isnoobj(tolua_S,4,&tolua_err)
  2995. )
  2996. goto tolua_lerror;
  2997. else
  2998. {
  2999. double x = ((double) tolua_tonumber(tolua_S,2,0));
  3000. double y = ((double) tolua_tonumber(tolua_S,3,0));
  3001. {
  3002. CCoordinate* tolua_ret = (CCoordinate*) Mtolua_new((CCoordinate)(x,y));
  3003. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CCoordinate");
  3004. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3005. }
  3006. }
  3007. return 1;
  3008. tolua_lerror:
  3009. return tolua_bind_anl_CCoordinate_new00_local(tolua_S);
  3010. }
  3011. #endif //#ifndef TOLUA_DISABLE
  3012.  
  3013. /* method: new of class CCoordinate */
  3014. #ifndef TOLUA_DISABLE_tolua_bind_anl_CCoordinate_new02
  3015. static int tolua_bind_anl_CCoordinate_new02(lua_State* tolua_S)
  3016. {
  3017. tolua_Error tolua_err;
  3018. if (
  3019. !tolua_isusertable(tolua_S,1,"CCoordinate",0,&tolua_err) ||
  3020. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3021. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  3022. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  3023. !tolua_isnoobj(tolua_S,5,&tolua_err)
  3024. )
  3025. goto tolua_lerror;
  3026. else
  3027. {
  3028. double x = ((double) tolua_tonumber(tolua_S,2,0));
  3029. double y = ((double) tolua_tonumber(tolua_S,3,0));
  3030. double z = ((double) tolua_tonumber(tolua_S,4,0));
  3031. {
  3032. CCoordinate* tolua_ret = (CCoordinate*) Mtolua_new((CCoordinate)(x,y,z));
  3033. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CCoordinate");
  3034. }
  3035. }
  3036. return 1;
  3037. tolua_lerror:
  3038. return tolua_bind_anl_CCoordinate_new01(tolua_S);
  3039. }
  3040. #endif //#ifndef TOLUA_DISABLE
  3041.  
  3042. /* method: new_local of class CCoordinate */
  3043. #ifndef TOLUA_DISABLE_tolua_bind_anl_CCoordinate_new02_local
  3044. static int tolua_bind_anl_CCoordinate_new02_local(lua_State* tolua_S)
  3045. {
  3046. tolua_Error tolua_err;
  3047. if (
  3048. !tolua_isusertable(tolua_S,1,"CCoordinate",0,&tolua_err) ||
  3049. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3050. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  3051. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  3052. !tolua_isnoobj(tolua_S,5,&tolua_err)
  3053. )
  3054. goto tolua_lerror;
  3055. else
  3056. {
  3057. double x = ((double) tolua_tonumber(tolua_S,2,0));
  3058. double y = ((double) tolua_tonumber(tolua_S,3,0));
  3059. double z = ((double) tolua_tonumber(tolua_S,4,0));
  3060. {
  3061. CCoordinate* tolua_ret = (CCoordinate*) Mtolua_new((CCoordinate)(x,y,z));
  3062. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CCoordinate");
  3063. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3064. }
  3065. }
  3066. return 1;
  3067. tolua_lerror:
  3068. return tolua_bind_anl_CCoordinate_new01_local(tolua_S);
  3069. }
  3070. #endif //#ifndef TOLUA_DISABLE
  3071.  
  3072. /* method: new of class CCoordinate */
  3073. #ifndef TOLUA_DISABLE_tolua_bind_anl_CCoordinate_new03
  3074. static int tolua_bind_anl_CCoordinate_new03(lua_State* tolua_S)
  3075. {
  3076. tolua_Error tolua_err;
  3077. if (
  3078. !tolua_isusertable(tolua_S,1,"CCoordinate",0,&tolua_err) ||
  3079. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3080. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  3081. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  3082. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  3083. !tolua_isnoobj(tolua_S,6,&tolua_err)
  3084. )
  3085. goto tolua_lerror;
  3086. else
  3087. {
  3088. double x = ((double) tolua_tonumber(tolua_S,2,0));
  3089. double y = ((double) tolua_tonumber(tolua_S,3,0));
  3090. double z = ((double) tolua_tonumber(tolua_S,4,0));
  3091. double w = ((double) tolua_tonumber(tolua_S,5,0));
  3092. {
  3093. CCoordinate* tolua_ret = (CCoordinate*) Mtolua_new((CCoordinate)(x,y,z,w));
  3094. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CCoordinate");
  3095. }
  3096. }
  3097. return 1;
  3098. tolua_lerror:
  3099. return tolua_bind_anl_CCoordinate_new02(tolua_S);
  3100. }
  3101. #endif //#ifndef TOLUA_DISABLE
  3102.  
  3103. /* method: new_local of class CCoordinate */
  3104. #ifndef TOLUA_DISABLE_tolua_bind_anl_CCoordinate_new03_local
  3105. static int tolua_bind_anl_CCoordinate_new03_local(lua_State* tolua_S)
  3106. {
  3107. tolua_Error tolua_err;
  3108. if (
  3109. !tolua_isusertable(tolua_S,1,"CCoordinate",0,&tolua_err) ||
  3110. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3111. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  3112. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  3113. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  3114. !tolua_isnoobj(tolua_S,6,&tolua_err)
  3115. )
  3116. goto tolua_lerror;
  3117. else
  3118. {
  3119. double x = ((double) tolua_tonumber(tolua_S,2,0));
  3120. double y = ((double) tolua_tonumber(tolua_S,3,0));
  3121. double z = ((double) tolua_tonumber(tolua_S,4,0));
  3122. double w = ((double) tolua_tonumber(tolua_S,5,0));
  3123. {
  3124. CCoordinate* tolua_ret = (CCoordinate*) Mtolua_new((CCoordinate)(x,y,z,w));
  3125. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CCoordinate");
  3126. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3127. }
  3128. }
  3129. return 1;
  3130. tolua_lerror:
  3131. return tolua_bind_anl_CCoordinate_new02_local(tolua_S);
  3132. }
  3133. #endif //#ifndef TOLUA_DISABLE
  3134.  
  3135. /* method: new of class CCoordinate */
  3136. #ifndef TOLUA_DISABLE_tolua_bind_anl_CCoordinate_new04
  3137. static int tolua_bind_anl_CCoordinate_new04(lua_State* tolua_S)
  3138. {
  3139. tolua_Error tolua_err;
  3140. if (
  3141. !tolua_isusertable(tolua_S,1,"CCoordinate",0,&tolua_err) ||
  3142. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3143. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  3144. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  3145. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  3146. !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
  3147. !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
  3148. !tolua_isnoobj(tolua_S,8,&tolua_err)
  3149. )
  3150. goto tolua_lerror;
  3151. else
  3152. {
  3153. double x = ((double) tolua_tonumber(tolua_S,2,0));
  3154. double y = ((double) tolua_tonumber(tolua_S,3,0));
  3155. double z = ((double) tolua_tonumber(tolua_S,4,0));
  3156. double w = ((double) tolua_tonumber(tolua_S,5,0));
  3157. double u = ((double) tolua_tonumber(tolua_S,6,0));
  3158. double v = ((double) tolua_tonumber(tolua_S,7,0));
  3159. {
  3160. CCoordinate* tolua_ret = (CCoordinate*) Mtolua_new((CCoordinate)(x,y,z,w,u,v));
  3161. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CCoordinate");
  3162. }
  3163. }
  3164. return 1;
  3165. tolua_lerror:
  3166. return tolua_bind_anl_CCoordinate_new03(tolua_S);
  3167. }
  3168. #endif //#ifndef TOLUA_DISABLE
  3169.  
  3170. /* method: new_local of class CCoordinate */
  3171. #ifndef TOLUA_DISABLE_tolua_bind_anl_CCoordinate_new04_local
  3172. static int tolua_bind_anl_CCoordinate_new04_local(lua_State* tolua_S)
  3173. {
  3174. tolua_Error tolua_err;
  3175. if (
  3176. !tolua_isusertable(tolua_S,1,"CCoordinate",0,&tolua_err) ||
  3177. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3178. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  3179. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  3180. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  3181. !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
  3182. !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
  3183. !tolua_isnoobj(tolua_S,8,&tolua_err)
  3184. )
  3185. goto tolua_lerror;
  3186. else
  3187. {
  3188. double x = ((double) tolua_tonumber(tolua_S,2,0));
  3189. double y = ((double) tolua_tonumber(tolua_S,3,0));
  3190. double z = ((double) tolua_tonumber(tolua_S,4,0));
  3191. double w = ((double) tolua_tonumber(tolua_S,5,0));
  3192. double u = ((double) tolua_tonumber(tolua_S,6,0));
  3193. double v = ((double) tolua_tonumber(tolua_S,7,0));
  3194. {
  3195. CCoordinate* tolua_ret = (CCoordinate*) Mtolua_new((CCoordinate)(x,y,z,w,u,v));
  3196. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CCoordinate");
  3197. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3198. }
  3199. }
  3200. return 1;
  3201. tolua_lerror:
  3202. return tolua_bind_anl_CCoordinate_new03_local(tolua_S);
  3203. }
  3204. #endif //#ifndef TOLUA_DISABLE
  3205.  
  3206. /* method: new of class CCoordinate */
  3207. #ifndef TOLUA_DISABLE_tolua_bind_anl_CCoordinate_new05
  3208. static int tolua_bind_anl_CCoordinate_new05(lua_State* tolua_S)
  3209. {
  3210. tolua_Error tolua_err;
  3211. if (
  3212. !tolua_isusertable(tolua_S,1,"CCoordinate",0,&tolua_err) ||
  3213. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const CCoordinate",0,&tolua_err)) ||
  3214. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3215. )
  3216. goto tolua_lerror;
  3217. else
  3218. {
  3219. const CCoordinate* c = ((const CCoordinate*) tolua_tousertype(tolua_S,2,0));
  3220. {
  3221. CCoordinate* tolua_ret = (CCoordinate*) Mtolua_new((CCoordinate)(*c));
  3222. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CCoordinate");
  3223. }
  3224. }
  3225. return 1;
  3226. tolua_lerror:
  3227. return tolua_bind_anl_CCoordinate_new04(tolua_S);
  3228. }
  3229. #endif //#ifndef TOLUA_DISABLE
  3230.  
  3231. /* method: new_local of class CCoordinate */
  3232. #ifndef TOLUA_DISABLE_tolua_bind_anl_CCoordinate_new05_local
  3233. static int tolua_bind_anl_CCoordinate_new05_local(lua_State* tolua_S)
  3234. {
  3235. tolua_Error tolua_err;
  3236. if (
  3237. !tolua_isusertable(tolua_S,1,"CCoordinate",0,&tolua_err) ||
  3238. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const CCoordinate",0,&tolua_err)) ||
  3239. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3240. )
  3241. goto tolua_lerror;
  3242. else
  3243. {
  3244. const CCoordinate* c = ((const CCoordinate*) tolua_tousertype(tolua_S,2,0));
  3245. {
  3246. CCoordinate* tolua_ret = (CCoordinate*) Mtolua_new((CCoordinate)(*c));
  3247. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CCoordinate");
  3248. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3249. }
  3250. }
  3251. return 1;
  3252. tolua_lerror:
  3253. return tolua_bind_anl_CCoordinate_new04_local(tolua_S);
  3254. }
  3255. #endif //#ifndef TOLUA_DISABLE
  3256.  
  3257. /* method: set of class CCoordinate */
  3258. #ifndef TOLUA_DISABLE_tolua_bind_anl_CCoordinate_set00
  3259. static int tolua_bind_anl_CCoordinate_set00(lua_State* tolua_S)
  3260. {
  3261. #ifndef TOLUA_RELEASE
  3262. tolua_Error tolua_err;
  3263. if (
  3264. !tolua_isusertype(tolua_S,1,"CCoordinate",0,&tolua_err) ||
  3265. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3266. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  3267. !tolua_isnoobj(tolua_S,4,&tolua_err)
  3268. )
  3269. goto tolua_lerror;
  3270. else
  3271. #endif
  3272. {
  3273. CCoordinate* self = (CCoordinate*) tolua_tousertype(tolua_S,1,0);
  3274. double x = ((double) tolua_tonumber(tolua_S,2,0));
  3275. double y = ((double) tolua_tonumber(tolua_S,3,0));
  3276. #ifndef TOLUA_RELEASE
  3277. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set'", NULL);
  3278. #endif
  3279. {
  3280. self->set(x,y);
  3281. }
  3282. }
  3283. return 0;
  3284. #ifndef TOLUA_RELEASE
  3285. tolua_lerror:
  3286. tolua_error(tolua_S,"#ferror in function 'set'.",&tolua_err);
  3287. return 0;
  3288. #endif
  3289. }
  3290. #endif //#ifndef TOLUA_DISABLE
  3291.  
  3292. /* method: set of class CCoordinate */
  3293. #ifndef TOLUA_DISABLE_tolua_bind_anl_CCoordinate_set01
  3294. static int tolua_bind_anl_CCoordinate_set01(lua_State* tolua_S)
  3295. {
  3296. tolua_Error tolua_err;
  3297. if (
  3298. !tolua_isusertype(tolua_S,1,"CCoordinate",0,&tolua_err) ||
  3299. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3300. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  3301. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  3302. !tolua_isnoobj(tolua_S,5,&tolua_err)
  3303. )
  3304. goto tolua_lerror;
  3305. else
  3306. {
  3307. CCoordinate* self = (CCoordinate*) tolua_tousertype(tolua_S,1,0);
  3308. double x = ((double) tolua_tonumber(tolua_S,2,0));
  3309. double y = ((double) tolua_tonumber(tolua_S,3,0));
  3310. double z = ((double) tolua_tonumber(tolua_S,4,0));
  3311. #ifndef TOLUA_RELEASE
  3312. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set'", NULL);
  3313. #endif
  3314. {
  3315. self->set(x,y,z);
  3316. }
  3317. }
  3318. return 0;
  3319. tolua_lerror:
  3320. return tolua_bind_anl_CCoordinate_set00(tolua_S);
  3321. }
  3322. #endif //#ifndef TOLUA_DISABLE
  3323.  
  3324. /* method: set of class CCoordinate */
  3325. #ifndef TOLUA_DISABLE_tolua_bind_anl_CCoordinate_set02
  3326. static int tolua_bind_anl_CCoordinate_set02(lua_State* tolua_S)
  3327. {
  3328. tolua_Error tolua_err;
  3329. if (
  3330. !tolua_isusertype(tolua_S,1,"CCoordinate",0,&tolua_err) ||
  3331. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3332. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  3333. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  3334. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  3335. !tolua_isnoobj(tolua_S,6,&tolua_err)
  3336. )
  3337. goto tolua_lerror;
  3338. else
  3339. {
  3340. CCoordinate* self = (CCoordinate*) tolua_tousertype(tolua_S,1,0);
  3341. double x = ((double) tolua_tonumber(tolua_S,2,0));
  3342. double y = ((double) tolua_tonumber(tolua_S,3,0));
  3343. double z = ((double) tolua_tonumber(tolua_S,4,0));
  3344. double w = ((double) tolua_tonumber(tolua_S,5,0));
  3345. #ifndef TOLUA_RELEASE
  3346. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set'", NULL);
  3347. #endif
  3348. {
  3349. self->set(x,y,z,w);
  3350. }
  3351. }
  3352. return 0;
  3353. tolua_lerror:
  3354. return tolua_bind_anl_CCoordinate_set01(tolua_S);
  3355. }
  3356. #endif //#ifndef TOLUA_DISABLE
  3357.  
  3358. /* method: set of class CCoordinate */
  3359. #ifndef TOLUA_DISABLE_tolua_bind_anl_CCoordinate_set03
  3360. static int tolua_bind_anl_CCoordinate_set03(lua_State* tolua_S)
  3361. {
  3362. tolua_Error tolua_err;
  3363. if (
  3364. !tolua_isusertype(tolua_S,1,"CCoordinate",0,&tolua_err) ||
  3365. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3366. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  3367. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  3368. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  3369. !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
  3370. !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
  3371. !tolua_isnoobj(tolua_S,8,&tolua_err)
  3372. )
  3373. goto tolua_lerror;
  3374. else
  3375. {
  3376. CCoordinate* self = (CCoordinate*) tolua_tousertype(tolua_S,1,0);
  3377. double x = ((double) tolua_tonumber(tolua_S,2,0));
  3378. double y = ((double) tolua_tonumber(tolua_S,3,0));
  3379. double z = ((double) tolua_tonumber(tolua_S,4,0));
  3380. double w = ((double) tolua_tonumber(tolua_S,5,0));
  3381. double u = ((double) tolua_tonumber(tolua_S,6,0));
  3382. double v = ((double) tolua_tonumber(tolua_S,7,0));
  3383. #ifndef TOLUA_RELEASE
  3384. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set'", NULL);
  3385. #endif
  3386. {
  3387. self->set(x,y,z,w,u,v);
  3388. }
  3389. }
  3390. return 0;
  3391. tolua_lerror:
  3392. return tolua_bind_anl_CCoordinate_set02(tolua_S);
  3393. }
  3394. #endif //#ifndef TOLUA_DISABLE
  3395.  
  3396. /* method: new of class CKernel */
  3397. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_new00
  3398. static int tolua_bind_anl_CKernel_new00(lua_State* tolua_S)
  3399. {
  3400. #ifndef TOLUA_RELEASE
  3401. tolua_Error tolua_err;
  3402. if (
  3403. !tolua_isusertable(tolua_S,1,"CKernel",0,&tolua_err) ||
  3404. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3405. )
  3406. goto tolua_lerror;
  3407. else
  3408. #endif
  3409. {
  3410. {
  3411. CKernel* tolua_ret = (CKernel*) Mtolua_new((CKernel)());
  3412. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CKernel");
  3413. }
  3414. }
  3415. return 1;
  3416. #ifndef TOLUA_RELEASE
  3417. tolua_lerror:
  3418. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  3419. return 0;
  3420. #endif
  3421. }
  3422. #endif //#ifndef TOLUA_DISABLE
  3423.  
  3424. /* method: new_local of class CKernel */
  3425. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_new00_local
  3426. static int tolua_bind_anl_CKernel_new00_local(lua_State* tolua_S)
  3427. {
  3428. #ifndef TOLUA_RELEASE
  3429. tolua_Error tolua_err;
  3430. if (
  3431. !tolua_isusertable(tolua_S,1,"CKernel",0,&tolua_err) ||
  3432. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3433. )
  3434. goto tolua_lerror;
  3435. else
  3436. #endif
  3437. {
  3438. {
  3439. CKernel* tolua_ret = (CKernel*) Mtolua_new((CKernel)());
  3440. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CKernel");
  3441. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3442. }
  3443. }
  3444. return 1;
  3445. #ifndef TOLUA_RELEASE
  3446. tolua_lerror:
  3447. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  3448. return 0;
  3449. #endif
  3450. }
  3451. #endif //#ifndef TOLUA_DISABLE
  3452.  
  3453. /* method: delete of class CKernel */
  3454. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_delete00
  3455. static int tolua_bind_anl_CKernel_delete00(lua_State* tolua_S)
  3456. {
  3457. #ifndef TOLUA_RELEASE
  3458. tolua_Error tolua_err;
  3459. if (
  3460. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  3461. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3462. )
  3463. goto tolua_lerror;
  3464. else
  3465. #endif
  3466. {
  3467. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  3468. #ifndef TOLUA_RELEASE
  3469. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  3470. #endif
  3471. Mtolua_delete(self);
  3472. }
  3473. return 0;
  3474. #ifndef TOLUA_RELEASE
  3475. tolua_lerror:
  3476. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  3477. return 0;
  3478. #endif
  3479. }
  3480. #endif //#ifndef TOLUA_DISABLE
  3481.  
  3482. /* method: constant of class CKernel */
  3483. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_constant00
  3484. static int tolua_bind_anl_CKernel_constant00(lua_State* tolua_S)
  3485. {
  3486. #ifndef TOLUA_RELEASE
  3487. tolua_Error tolua_err;
  3488. if (
  3489. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  3490. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3491. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3492. )
  3493. goto tolua_lerror;
  3494. else
  3495. #endif
  3496. {
  3497. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  3498. double val = ((double) tolua_tonumber(tolua_S,2,0));
  3499. #ifndef TOLUA_RELEASE
  3500. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'constant'", NULL);
  3501. #endif
  3502. {
  3503. CInstructionIndex tolua_ret = (CInstructionIndex) self->constant(val);
  3504. {
  3505. #ifdef __cplusplus
  3506. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  3507. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  3508. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3509. #else
  3510. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  3511. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  3512. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3513. #endif
  3514. }
  3515. }
  3516. }
  3517. return 1;
  3518. #ifndef TOLUA_RELEASE
  3519. tolua_lerror:
  3520. tolua_error(tolua_S,"#ferror in function 'constant'.",&tolua_err);
  3521. return 0;
  3522. #endif
  3523. }
  3524. #endif //#ifndef TOLUA_DISABLE
  3525.  
  3526. /* method: valueBasis of class CKernel */
  3527. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_valueBasis00
  3528. static int tolua_bind_anl_CKernel_valueBasis00(lua_State* tolua_S)
  3529. {
  3530. #ifndef TOLUA_RELEASE
  3531. tolua_Error tolua_err;
  3532. if (
  3533. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  3534. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  3535. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  3536. !tolua_isnoobj(tolua_S,4,&tolua_err)
  3537. )
  3538. goto tolua_lerror;
  3539. else
  3540. #endif
  3541. {
  3542. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  3543. CInstructionIndex interpindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  3544. unsigned int seed = ((unsigned int) tolua_tonumber(tolua_S,3,0));
  3545. #ifndef TOLUA_RELEASE
  3546. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'valueBasis'", NULL);
  3547. #endif
  3548. {
  3549. CInstructionIndex tolua_ret = (CInstructionIndex) self->valueBasis(interpindex,seed);
  3550. {
  3551. #ifdef __cplusplus
  3552. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  3553. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  3554. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3555. #else
  3556. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  3557. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  3558. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3559. #endif
  3560. }
  3561. }
  3562. }
  3563. return 1;
  3564. #ifndef TOLUA_RELEASE
  3565. tolua_lerror:
  3566. tolua_error(tolua_S,"#ferror in function 'valueBasis'.",&tolua_err);
  3567. return 0;
  3568. #endif
  3569. }
  3570. #endif //#ifndef TOLUA_DISABLE
  3571.  
  3572. /* method: gradientBasis of class CKernel */
  3573. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_gradientBasis00
  3574. static int tolua_bind_anl_CKernel_gradientBasis00(lua_State* tolua_S)
  3575. {
  3576. #ifndef TOLUA_RELEASE
  3577. tolua_Error tolua_err;
  3578. if (
  3579. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  3580. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  3581. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  3582. !tolua_isnoobj(tolua_S,4,&tolua_err)
  3583. )
  3584. goto tolua_lerror;
  3585. else
  3586. #endif
  3587. {
  3588. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  3589. CInstructionIndex interpindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  3590. unsigned int seed = ((unsigned int) tolua_tonumber(tolua_S,3,0));
  3591. #ifndef TOLUA_RELEASE
  3592. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'gradientBasis'", NULL);
  3593. #endif
  3594. {
  3595. CInstructionIndex tolua_ret = (CInstructionIndex) self->gradientBasis(interpindex,seed);
  3596. {
  3597. #ifdef __cplusplus
  3598. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  3599. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  3600. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3601. #else
  3602. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  3603. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  3604. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3605. #endif
  3606. }
  3607. }
  3608. }
  3609. return 1;
  3610. #ifndef TOLUA_RELEASE
  3611. tolua_lerror:
  3612. tolua_error(tolua_S,"#ferror in function 'gradientBasis'.",&tolua_err);
  3613. return 0;
  3614. #endif
  3615. }
  3616. #endif //#ifndef TOLUA_DISABLE
  3617.  
  3618. /* method: simplexBasis of class CKernel */
  3619. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_simplexBasis00
  3620. static int tolua_bind_anl_CKernel_simplexBasis00(lua_State* tolua_S)
  3621. {
  3622. #ifndef TOLUA_RELEASE
  3623. tolua_Error tolua_err;
  3624. if (
  3625. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  3626. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3627. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3628. )
  3629. goto tolua_lerror;
  3630. else
  3631. #endif
  3632. {
  3633. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  3634. unsigned int seed = ((unsigned int) tolua_tonumber(tolua_S,2,0));
  3635. #ifndef TOLUA_RELEASE
  3636. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'simplexBasis'", NULL);
  3637. #endif
  3638. {
  3639. CInstructionIndex tolua_ret = (CInstructionIndex) self->simplexBasis(seed);
  3640. {
  3641. #ifdef __cplusplus
  3642. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  3643. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  3644. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3645. #else
  3646. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  3647. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  3648. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3649. #endif
  3650. }
  3651. }
  3652. }
  3653. return 1;
  3654. #ifndef TOLUA_RELEASE
  3655. tolua_lerror:
  3656. tolua_error(tolua_S,"#ferror in function 'simplexBasis'.",&tolua_err);
  3657. return 0;
  3658. #endif
  3659. }
  3660. #endif //#ifndef TOLUA_DISABLE
  3661.  
  3662. /* method: cellularBasis of class CKernel */
  3663. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_cellularBasis00
  3664. static int tolua_bind_anl_CKernel_cellularBasis00(lua_State* tolua_S)
  3665. {
  3666. #ifndef TOLUA_RELEASE
  3667. tolua_Error tolua_err;
  3668. if (
  3669. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  3670. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  3671. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  3672. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"CInstructionIndex",0,&tolua_err)) ||
  3673. (tolua_isvaluenil(tolua_S,5,&tolua_err) || !tolua_isusertype(tolua_S,5,"CInstructionIndex",0,&tolua_err)) ||
  3674. (tolua_isvaluenil(tolua_S,6,&tolua_err) || !tolua_isusertype(tolua_S,6,"CInstructionIndex",0,&tolua_err)) ||
  3675. (tolua_isvaluenil(tolua_S,7,&tolua_err) || !tolua_isusertype(tolua_S,7,"CInstructionIndex",0,&tolua_err)) ||
  3676. (tolua_isvaluenil(tolua_S,8,&tolua_err) || !tolua_isusertype(tolua_S,8,"CInstructionIndex",0,&tolua_err)) ||
  3677. (tolua_isvaluenil(tolua_S,9,&tolua_err) || !tolua_isusertype(tolua_S,9,"CInstructionIndex",0,&tolua_err)) ||
  3678. (tolua_isvaluenil(tolua_S,10,&tolua_err) || !tolua_isusertype(tolua_S,10,"CInstructionIndex",0,&tolua_err)) ||
  3679. !tolua_isnumber(tolua_S,11,0,&tolua_err) ||
  3680. !tolua_isnoobj(tolua_S,12,&tolua_err)
  3681. )
  3682. goto tolua_lerror;
  3683. else
  3684. #endif
  3685. {
  3686. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  3687. CInstructionIndex f1 = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  3688. CInstructionIndex f2 = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  3689. CInstructionIndex f3 = *((CInstructionIndex*) tolua_tousertype(tolua_S,4,0));
  3690. CInstructionIndex f4 = *((CInstructionIndex*) tolua_tousertype(tolua_S,5,0));
  3691. CInstructionIndex d1 = *((CInstructionIndex*) tolua_tousertype(tolua_S,6,0));
  3692. CInstructionIndex d2 = *((CInstructionIndex*) tolua_tousertype(tolua_S,7,0));
  3693. CInstructionIndex d3 = *((CInstructionIndex*) tolua_tousertype(tolua_S,8,0));
  3694. CInstructionIndex d4 = *((CInstructionIndex*) tolua_tousertype(tolua_S,9,0));
  3695. CInstructionIndex dist = *((CInstructionIndex*) tolua_tousertype(tolua_S,10,0));
  3696. unsigned int seed = ((unsigned int) tolua_tonumber(tolua_S,11,0));
  3697. #ifndef TOLUA_RELEASE
  3698. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'cellularBasis'", NULL);
  3699. #endif
  3700. {
  3701. CInstructionIndex tolua_ret = (CInstructionIndex) self->cellularBasis(f1,f2,f3,f4,d1,d2,d3,d4,dist,seed);
  3702. {
  3703. #ifdef __cplusplus
  3704. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  3705. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  3706. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3707. #else
  3708. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  3709. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  3710. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3711. #endif
  3712. }
  3713. }
  3714. }
  3715. return 1;
  3716. #ifndef TOLUA_RELEASE
  3717. tolua_lerror:
  3718. tolua_error(tolua_S,"#ferror in function 'cellularBasis'.",&tolua_err);
  3719. return 0;
  3720. #endif
  3721. }
  3722. #endif //#ifndef TOLUA_DISABLE
  3723.  
  3724. /* method: add of class CKernel */
  3725. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_add00
  3726. static int tolua_bind_anl_CKernel_add00(lua_State* tolua_S)
  3727. {
  3728. #ifndef TOLUA_RELEASE
  3729. tolua_Error tolua_err;
  3730. if (
  3731. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  3732. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  3733. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  3734. !tolua_isnoobj(tolua_S,4,&tolua_err)
  3735. )
  3736. goto tolua_lerror;
  3737. else
  3738. #endif
  3739. {
  3740. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  3741. CInstructionIndex s1index = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  3742. CInstructionIndex s2index = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  3743. #ifndef TOLUA_RELEASE
  3744. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'add'", NULL);
  3745. #endif
  3746. {
  3747. CInstructionIndex tolua_ret = (CInstructionIndex) self->add(s1index,s2index);
  3748. {
  3749. #ifdef __cplusplus
  3750. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  3751. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  3752. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3753. #else
  3754. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  3755. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  3756. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3757. #endif
  3758. }
  3759. }
  3760. }
  3761. return 1;
  3762. #ifndef TOLUA_RELEASE
  3763. tolua_lerror:
  3764. tolua_error(tolua_S,"#ferror in function 'add'.",&tolua_err);
  3765. return 0;
  3766. #endif
  3767. }
  3768. #endif //#ifndef TOLUA_DISABLE
  3769.  
  3770. /* method: subtract of class CKernel */
  3771. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_subtract00
  3772. static int tolua_bind_anl_CKernel_subtract00(lua_State* tolua_S)
  3773. {
  3774. #ifndef TOLUA_RELEASE
  3775. tolua_Error tolua_err;
  3776. if (
  3777. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  3778. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  3779. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  3780. !tolua_isnoobj(tolua_S,4,&tolua_err)
  3781. )
  3782. goto tolua_lerror;
  3783. else
  3784. #endif
  3785. {
  3786. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  3787. CInstructionIndex s1 = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  3788. CInstructionIndex s2 = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  3789. #ifndef TOLUA_RELEASE
  3790. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'subtract'", NULL);
  3791. #endif
  3792. {
  3793. CInstructionIndex tolua_ret = (CInstructionIndex) self->subtract(s1,s2);
  3794. {
  3795. #ifdef __cplusplus
  3796. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  3797. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  3798. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3799. #else
  3800. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  3801. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  3802. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3803. #endif
  3804. }
  3805. }
  3806. }
  3807. return 1;
  3808. #ifndef TOLUA_RELEASE
  3809. tolua_lerror:
  3810. tolua_error(tolua_S,"#ferror in function 'subtract'.",&tolua_err);
  3811. return 0;
  3812. #endif
  3813. }
  3814. #endif //#ifndef TOLUA_DISABLE
  3815.  
  3816. /* method: multiply of class CKernel */
  3817. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_multiply00
  3818. static int tolua_bind_anl_CKernel_multiply00(lua_State* tolua_S)
  3819. {
  3820. #ifndef TOLUA_RELEASE
  3821. tolua_Error tolua_err;
  3822. if (
  3823. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  3824. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  3825. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  3826. !tolua_isnoobj(tolua_S,4,&tolua_err)
  3827. )
  3828. goto tolua_lerror;
  3829. else
  3830. #endif
  3831. {
  3832. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  3833. CInstructionIndex s1index = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  3834. CInstructionIndex s2index = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  3835. #ifndef TOLUA_RELEASE
  3836. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'multiply'", NULL);
  3837. #endif
  3838. {
  3839. CInstructionIndex tolua_ret = (CInstructionIndex) self->multiply(s1index,s2index);
  3840. {
  3841. #ifdef __cplusplus
  3842. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  3843. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  3844. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3845. #else
  3846. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  3847. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  3848. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3849. #endif
  3850. }
  3851. }
  3852. }
  3853. return 1;
  3854. #ifndef TOLUA_RELEASE
  3855. tolua_lerror:
  3856. tolua_error(tolua_S,"#ferror in function 'multiply'.",&tolua_err);
  3857. return 0;
  3858. #endif
  3859. }
  3860. #endif //#ifndef TOLUA_DISABLE
  3861.  
  3862. /* method: divide of class CKernel */
  3863. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_divide00
  3864. static int tolua_bind_anl_CKernel_divide00(lua_State* tolua_S)
  3865. {
  3866. #ifndef TOLUA_RELEASE
  3867. tolua_Error tolua_err;
  3868. if (
  3869. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  3870. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  3871. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  3872. !tolua_isnoobj(tolua_S,4,&tolua_err)
  3873. )
  3874. goto tolua_lerror;
  3875. else
  3876. #endif
  3877. {
  3878. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  3879. CInstructionIndex s1 = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  3880. CInstructionIndex s2 = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  3881. #ifndef TOLUA_RELEASE
  3882. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'divide'", NULL);
  3883. #endif
  3884. {
  3885. CInstructionIndex tolua_ret = (CInstructionIndex) self->divide(s1,s2);
  3886. {
  3887. #ifdef __cplusplus
  3888. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  3889. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  3890. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3891. #else
  3892. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  3893. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  3894. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3895. #endif
  3896. }
  3897. }
  3898. }
  3899. return 1;
  3900. #ifndef TOLUA_RELEASE
  3901. tolua_lerror:
  3902. tolua_error(tolua_S,"#ferror in function 'divide'.",&tolua_err);
  3903. return 0;
  3904. #endif
  3905. }
  3906. #endif //#ifndef TOLUA_DISABLE
  3907.  
  3908. /* method: maximum of class CKernel */
  3909. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_maximum00
  3910. static int tolua_bind_anl_CKernel_maximum00(lua_State* tolua_S)
  3911. {
  3912. #ifndef TOLUA_RELEASE
  3913. tolua_Error tolua_err;
  3914. if (
  3915. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  3916. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  3917. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  3918. !tolua_isnoobj(tolua_S,4,&tolua_err)
  3919. )
  3920. goto tolua_lerror;
  3921. else
  3922. #endif
  3923. {
  3924. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  3925. CInstructionIndex s1index = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  3926. CInstructionIndex s2index = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  3927. #ifndef TOLUA_RELEASE
  3928. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maximum'", NULL);
  3929. #endif
  3930. {
  3931. CInstructionIndex tolua_ret = (CInstructionIndex) self->maximum(s1index,s2index);
  3932. {
  3933. #ifdef __cplusplus
  3934. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  3935. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  3936. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3937. #else
  3938. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  3939. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  3940. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3941. #endif
  3942. }
  3943. }
  3944. }
  3945. return 1;
  3946. #ifndef TOLUA_RELEASE
  3947. tolua_lerror:
  3948. tolua_error(tolua_S,"#ferror in function 'maximum'.",&tolua_err);
  3949. return 0;
  3950. #endif
  3951. }
  3952. #endif //#ifndef TOLUA_DISABLE
  3953.  
  3954. /* method: minimum of class CKernel */
  3955. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_minimum00
  3956. static int tolua_bind_anl_CKernel_minimum00(lua_State* tolua_S)
  3957. {
  3958. #ifndef TOLUA_RELEASE
  3959. tolua_Error tolua_err;
  3960. if (
  3961. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  3962. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  3963. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  3964. !tolua_isnoobj(tolua_S,4,&tolua_err)
  3965. )
  3966. goto tolua_lerror;
  3967. else
  3968. #endif
  3969. {
  3970. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  3971. CInstructionIndex s1index = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  3972. CInstructionIndex s2index = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  3973. #ifndef TOLUA_RELEASE
  3974. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'minimum'", NULL);
  3975. #endif
  3976. {
  3977. CInstructionIndex tolua_ret = (CInstructionIndex) self->minimum(s1index,s2index);
  3978. {
  3979. #ifdef __cplusplus
  3980. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  3981. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  3982. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3983. #else
  3984. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  3985. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  3986. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  3987. #endif
  3988. }
  3989. }
  3990. }
  3991. return 1;
  3992. #ifndef TOLUA_RELEASE
  3993. tolua_lerror:
  3994. tolua_error(tolua_S,"#ferror in function 'minimum'.",&tolua_err);
  3995. return 0;
  3996. #endif
  3997. }
  3998. #endif //#ifndef TOLUA_DISABLE
  3999.  
  4000. /* method: abs of class CKernel */
  4001. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_abs00
  4002. static int tolua_bind_anl_CKernel_abs00(lua_State* tolua_S)
  4003. {
  4004. #ifndef TOLUA_RELEASE
  4005. tolua_Error tolua_err;
  4006. if (
  4007. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  4008. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  4009. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4010. )
  4011. goto tolua_lerror;
  4012. else
  4013. #endif
  4014. {
  4015. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  4016. CInstructionIndex sindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  4017. #ifndef TOLUA_RELEASE
  4018. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'abs'", NULL);
  4019. #endif
  4020. {
  4021. CInstructionIndex tolua_ret = (CInstructionIndex) self->abs(sindex);
  4022. {
  4023. #ifdef __cplusplus
  4024. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  4025. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4026. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4027. #else
  4028. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  4029. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4030. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4031. #endif
  4032. }
  4033. }
  4034. }
  4035. return 1;
  4036. #ifndef TOLUA_RELEASE
  4037. tolua_lerror:
  4038. tolua_error(tolua_S,"#ferror in function 'abs'.",&tolua_err);
  4039. return 0;
  4040. #endif
  4041. }
  4042. #endif //#ifndef TOLUA_DISABLE
  4043.  
  4044. /* method: pow of class CKernel */
  4045. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_pow00
  4046. static int tolua_bind_anl_CKernel_pow00(lua_State* tolua_S)
  4047. {
  4048. #ifndef TOLUA_RELEASE
  4049. tolua_Error tolua_err;
  4050. if (
  4051. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  4052. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  4053. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  4054. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4055. )
  4056. goto tolua_lerror;
  4057. else
  4058. #endif
  4059. {
  4060. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  4061. CInstructionIndex s1 = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  4062. CInstructionIndex s2 = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  4063. #ifndef TOLUA_RELEASE
  4064. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'pow'", NULL);
  4065. #endif
  4066. {
  4067. CInstructionIndex tolua_ret = (CInstructionIndex) self->pow(s1,s2);
  4068. {
  4069. #ifdef __cplusplus
  4070. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  4071. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4072. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4073. #else
  4074. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  4075. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4076. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4077. #endif
  4078. }
  4079. }
  4080. }
  4081. return 1;
  4082. #ifndef TOLUA_RELEASE
  4083. tolua_lerror:
  4084. tolua_error(tolua_S,"#ferror in function 'pow'.",&tolua_err);
  4085. return 0;
  4086. #endif
  4087. }
  4088. #endif //#ifndef TOLUA_DISABLE
  4089.  
  4090. /* method: bias of class CKernel */
  4091. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_bias00
  4092. static int tolua_bind_anl_CKernel_bias00(lua_State* tolua_S)
  4093. {
  4094. #ifndef TOLUA_RELEASE
  4095. tolua_Error tolua_err;
  4096. if (
  4097. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  4098. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  4099. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  4100. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4101. )
  4102. goto tolua_lerror;
  4103. else
  4104. #endif
  4105. {
  4106. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  4107. CInstructionIndex s1 = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  4108. CInstructionIndex s2 = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  4109. #ifndef TOLUA_RELEASE
  4110. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'bias'", NULL);
  4111. #endif
  4112. {
  4113. CInstructionIndex tolua_ret = (CInstructionIndex) self->bias(s1,s2);
  4114. {
  4115. #ifdef __cplusplus
  4116. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  4117. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4118. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4119. #else
  4120. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  4121. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4122. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4123. #endif
  4124. }
  4125. }
  4126. }
  4127. return 1;
  4128. #ifndef TOLUA_RELEASE
  4129. tolua_lerror:
  4130. tolua_error(tolua_S,"#ferror in function 'bias'.",&tolua_err);
  4131. return 0;
  4132. #endif
  4133. }
  4134. #endif //#ifndef TOLUA_DISABLE
  4135.  
  4136. /* method: gain of class CKernel */
  4137. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_gain00
  4138. static int tolua_bind_anl_CKernel_gain00(lua_State* tolua_S)
  4139. {
  4140. #ifndef TOLUA_RELEASE
  4141. tolua_Error tolua_err;
  4142. if (
  4143. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  4144. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  4145. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  4146. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4147. )
  4148. goto tolua_lerror;
  4149. else
  4150. #endif
  4151. {
  4152. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  4153. CInstructionIndex s1 = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  4154. CInstructionIndex s2 = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  4155. #ifndef TOLUA_RELEASE
  4156. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'gain'", NULL);
  4157. #endif
  4158. {
  4159. CInstructionIndex tolua_ret = (CInstructionIndex) self->gain(s1,s2);
  4160. {
  4161. #ifdef __cplusplus
  4162. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  4163. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4164. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4165. #else
  4166. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  4167. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4168. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4169. #endif
  4170. }
  4171. }
  4172. }
  4173. return 1;
  4174. #ifndef TOLUA_RELEASE
  4175. tolua_lerror:
  4176. tolua_error(tolua_S,"#ferror in function 'gain'.",&tolua_err);
  4177. return 0;
  4178. #endif
  4179. }
  4180. #endif //#ifndef TOLUA_DISABLE
  4181.  
  4182. /* method: scaleDomain of class CKernel */
  4183. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_scaleDomain00
  4184. static int tolua_bind_anl_CKernel_scaleDomain00(lua_State* tolua_S)
  4185. {
  4186. #ifndef TOLUA_RELEASE
  4187. tolua_Error tolua_err;
  4188. if (
  4189. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  4190. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  4191. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  4192. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"CInstructionIndex",0,&tolua_err)) ||
  4193. !tolua_isnoobj(tolua_S,5,&tolua_err)
  4194. )
  4195. goto tolua_lerror;
  4196. else
  4197. #endif
  4198. {
  4199. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  4200. CInstructionIndex srcindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  4201. CInstructionIndex xindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  4202. CInstructionIndex yindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,4,0));
  4203. #ifndef TOLUA_RELEASE
  4204. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'scaleDomain'", NULL);
  4205. #endif
  4206. {
  4207. CInstructionIndex tolua_ret = (CInstructionIndex) self->scaleDomain(srcindex,xindex,yindex);
  4208. {
  4209. #ifdef __cplusplus
  4210. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  4211. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4212. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4213. #else
  4214. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  4215. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4216. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4217. #endif
  4218. }
  4219. }
  4220. }
  4221. return 1;
  4222. #ifndef TOLUA_RELEASE
  4223. tolua_lerror:
  4224. tolua_error(tolua_S,"#ferror in function 'scaleDomain'.",&tolua_err);
  4225. return 0;
  4226. #endif
  4227. }
  4228. #endif //#ifndef TOLUA_DISABLE
  4229.  
  4230. /* method: scaleDomain of class CKernel */
  4231. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_scaleDomain01
  4232. static int tolua_bind_anl_CKernel_scaleDomain01(lua_State* tolua_S)
  4233. {
  4234. tolua_Error tolua_err;
  4235. if (
  4236. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  4237. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  4238. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  4239. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"CInstructionIndex",0,&tolua_err)) ||
  4240. (tolua_isvaluenil(tolua_S,5,&tolua_err) || !tolua_isusertype(tolua_S,5,"CInstructionIndex",0,&tolua_err)) ||
  4241. !tolua_isnoobj(tolua_S,6,&tolua_err)
  4242. )
  4243. goto tolua_lerror;
  4244. else
  4245. {
  4246. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  4247. CInstructionIndex srcindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  4248. CInstructionIndex xindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  4249. CInstructionIndex yindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,4,0));
  4250. CInstructionIndex zindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,5,0));
  4251. #ifndef TOLUA_RELEASE
  4252. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'scaleDomain'", NULL);
  4253. #endif
  4254. {
  4255. CInstructionIndex tolua_ret = (CInstructionIndex) self->scaleDomain(srcindex,xindex,yindex,zindex);
  4256. {
  4257. #ifdef __cplusplus
  4258. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  4259. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4260. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4261. #else
  4262. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  4263. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4264. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4265. #endif
  4266. }
  4267. }
  4268. }
  4269. return 1;
  4270. tolua_lerror:
  4271. return tolua_bind_anl_CKernel_scaleDomain00(tolua_S);
  4272. }
  4273. #endif //#ifndef TOLUA_DISABLE
  4274.  
  4275. /* method: scaleDomain of class CKernel */
  4276. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_scaleDomain02
  4277. static int tolua_bind_anl_CKernel_scaleDomain02(lua_State* tolua_S)
  4278. {
  4279. tolua_Error tolua_err;
  4280. if (
  4281. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  4282. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  4283. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  4284. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"CInstructionIndex",0,&tolua_err)) ||
  4285. (tolua_isvaluenil(tolua_S,5,&tolua_err) || !tolua_isusertype(tolua_S,5,"CInstructionIndex",0,&tolua_err)) ||
  4286. (tolua_isvaluenil(tolua_S,6,&tolua_err) || !tolua_isusertype(tolua_S,6,"CInstructionIndex",0,&tolua_err)) ||
  4287. !tolua_isnoobj(tolua_S,7,&tolua_err)
  4288. )
  4289. goto tolua_lerror;
  4290. else
  4291. {
  4292. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  4293. CInstructionIndex srcindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  4294. CInstructionIndex xindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  4295. CInstructionIndex yindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,4,0));
  4296. CInstructionIndex zindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,5,0));
  4297. CInstructionIndex windex = *((CInstructionIndex*) tolua_tousertype(tolua_S,6,0));
  4298. #ifndef TOLUA_RELEASE
  4299. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'scaleDomain'", NULL);
  4300. #endif
  4301. {
  4302. CInstructionIndex tolua_ret = (CInstructionIndex) self->scaleDomain(srcindex,xindex,yindex,zindex,windex);
  4303. {
  4304. #ifdef __cplusplus
  4305. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  4306. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4307. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4308. #else
  4309. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  4310. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4311. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4312. #endif
  4313. }
  4314. }
  4315. }
  4316. return 1;
  4317. tolua_lerror:
  4318. return tolua_bind_anl_CKernel_scaleDomain01(tolua_S);
  4319. }
  4320. #endif //#ifndef TOLUA_DISABLE
  4321.  
  4322. /* method: scaleDomain of class CKernel */
  4323. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_scaleDomain03
  4324. static int tolua_bind_anl_CKernel_scaleDomain03(lua_State* tolua_S)
  4325. {
  4326. tolua_Error tolua_err;
  4327. if (
  4328. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  4329. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  4330. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  4331. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"CInstructionIndex",0,&tolua_err)) ||
  4332. (tolua_isvaluenil(tolua_S,5,&tolua_err) || !tolua_isusertype(tolua_S,5,"CInstructionIndex",0,&tolua_err)) ||
  4333. (tolua_isvaluenil(tolua_S,6,&tolua_err) || !tolua_isusertype(tolua_S,6,"CInstructionIndex",0,&tolua_err)) ||
  4334. (tolua_isvaluenil(tolua_S,7,&tolua_err) || !tolua_isusertype(tolua_S,7,"CInstructionIndex",0,&tolua_err)) ||
  4335. (tolua_isvaluenil(tolua_S,8,&tolua_err) || !tolua_isusertype(tolua_S,8,"CInstructionIndex",0,&tolua_err)) ||
  4336. !tolua_isnoobj(tolua_S,9,&tolua_err)
  4337. )
  4338. goto tolua_lerror;
  4339. else
  4340. {
  4341. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  4342. CInstructionIndex srcindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  4343. CInstructionIndex xindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  4344. CInstructionIndex yindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,4,0));
  4345. CInstructionIndex zindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,5,0));
  4346. CInstructionIndex windex = *((CInstructionIndex*) tolua_tousertype(tolua_S,6,0));
  4347. CInstructionIndex uindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,7,0));
  4348. CInstructionIndex vindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,8,0));
  4349. #ifndef TOLUA_RELEASE
  4350. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'scaleDomain'", NULL);
  4351. #endif
  4352. {
  4353. CInstructionIndex tolua_ret = (CInstructionIndex) self->scaleDomain(srcindex,xindex,yindex,zindex,windex,uindex,vindex);
  4354. {
  4355. #ifdef __cplusplus
  4356. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  4357. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4358. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4359. #else
  4360. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  4361. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4362. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4363. #endif
  4364. }
  4365. }
  4366. }
  4367. return 1;
  4368. tolua_lerror:
  4369. return tolua_bind_anl_CKernel_scaleDomain02(tolua_S);
  4370. }
  4371. #endif //#ifndef TOLUA_DISABLE
  4372.  
  4373. /* method: scaleX of class CKernel */
  4374. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_scaleX00
  4375. static int tolua_bind_anl_CKernel_scaleX00(lua_State* tolua_S)
  4376. {
  4377. #ifndef TOLUA_RELEASE
  4378. tolua_Error tolua_err;
  4379. if (
  4380. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  4381. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  4382. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  4383. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4384. )
  4385. goto tolua_lerror;
  4386. else
  4387. #endif
  4388. {
  4389. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  4390. CInstructionIndex src = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  4391. CInstructionIndex scale = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  4392. #ifndef TOLUA_RELEASE
  4393. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'scaleX'", NULL);
  4394. #endif
  4395. {
  4396. CInstructionIndex tolua_ret = (CInstructionIndex) self->scaleX(src,scale);
  4397. {
  4398. #ifdef __cplusplus
  4399. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  4400. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4401. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4402. #else
  4403. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  4404. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4405. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4406. #endif
  4407. }
  4408. }
  4409. }
  4410. return 1;
  4411. #ifndef TOLUA_RELEASE
  4412. tolua_lerror:
  4413. tolua_error(tolua_S,"#ferror in function 'scaleX'.",&tolua_err);
  4414. return 0;
  4415. #endif
  4416. }
  4417. #endif //#ifndef TOLUA_DISABLE
  4418.  
  4419. /* method: scaleY of class CKernel */
  4420. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_scaleY00
  4421. static int tolua_bind_anl_CKernel_scaleY00(lua_State* tolua_S)
  4422. {
  4423. #ifndef TOLUA_RELEASE
  4424. tolua_Error tolua_err;
  4425. if (
  4426. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  4427. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  4428. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  4429. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4430. )
  4431. goto tolua_lerror;
  4432. else
  4433. #endif
  4434. {
  4435. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  4436. CInstructionIndex src = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  4437. CInstructionIndex scale = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  4438. #ifndef TOLUA_RELEASE
  4439. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'scaleY'", NULL);
  4440. #endif
  4441. {
  4442. CInstructionIndex tolua_ret = (CInstructionIndex) self->scaleY(src,scale);
  4443. {
  4444. #ifdef __cplusplus
  4445. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  4446. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4447. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4448. #else
  4449. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  4450. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4451. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4452. #endif
  4453. }
  4454. }
  4455. }
  4456. return 1;
  4457. #ifndef TOLUA_RELEASE
  4458. tolua_lerror:
  4459. tolua_error(tolua_S,"#ferror in function 'scaleY'.",&tolua_err);
  4460. return 0;
  4461. #endif
  4462. }
  4463. #endif //#ifndef TOLUA_DISABLE
  4464.  
  4465. /* method: scaleZ of class CKernel */
  4466. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_scaleZ00
  4467. static int tolua_bind_anl_CKernel_scaleZ00(lua_State* tolua_S)
  4468. {
  4469. #ifndef TOLUA_RELEASE
  4470. tolua_Error tolua_err;
  4471. if (
  4472. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  4473. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  4474. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  4475. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4476. )
  4477. goto tolua_lerror;
  4478. else
  4479. #endif
  4480. {
  4481. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  4482. CInstructionIndex src = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  4483. CInstructionIndex scale = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  4484. #ifndef TOLUA_RELEASE
  4485. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'scaleZ'", NULL);
  4486. #endif
  4487. {
  4488. CInstructionIndex tolua_ret = (CInstructionIndex) self->scaleZ(src,scale);
  4489. {
  4490. #ifdef __cplusplus
  4491. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  4492. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4493. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4494. #else
  4495. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  4496. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4497. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4498. #endif
  4499. }
  4500. }
  4501. }
  4502. return 1;
  4503. #ifndef TOLUA_RELEASE
  4504. tolua_lerror:
  4505. tolua_error(tolua_S,"#ferror in function 'scaleZ'.",&tolua_err);
  4506. return 0;
  4507. #endif
  4508. }
  4509. #endif //#ifndef TOLUA_DISABLE
  4510.  
  4511. /* method: scaleW of class CKernel */
  4512. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_scaleW00
  4513. static int tolua_bind_anl_CKernel_scaleW00(lua_State* tolua_S)
  4514. {
  4515. #ifndef TOLUA_RELEASE
  4516. tolua_Error tolua_err;
  4517. if (
  4518. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  4519. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  4520. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  4521. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4522. )
  4523. goto tolua_lerror;
  4524. else
  4525. #endif
  4526. {
  4527. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  4528. CInstructionIndex src = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  4529. CInstructionIndex scale = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  4530. #ifndef TOLUA_RELEASE
  4531. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'scaleW'", NULL);
  4532. #endif
  4533. {
  4534. CInstructionIndex tolua_ret = (CInstructionIndex) self->scaleW(src,scale);
  4535. {
  4536. #ifdef __cplusplus
  4537. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  4538. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4539. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4540. #else
  4541. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  4542. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4543. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4544. #endif
  4545. }
  4546. }
  4547. }
  4548. return 1;
  4549. #ifndef TOLUA_RELEASE
  4550. tolua_lerror:
  4551. tolua_error(tolua_S,"#ferror in function 'scaleW'.",&tolua_err);
  4552. return 0;
  4553. #endif
  4554. }
  4555. #endif //#ifndef TOLUA_DISABLE
  4556.  
  4557. /* method: scaleU of class CKernel */
  4558. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_scaleU00
  4559. static int tolua_bind_anl_CKernel_scaleU00(lua_State* tolua_S)
  4560. {
  4561. #ifndef TOLUA_RELEASE
  4562. tolua_Error tolua_err;
  4563. if (
  4564. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  4565. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  4566. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  4567. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4568. )
  4569. goto tolua_lerror;
  4570. else
  4571. #endif
  4572. {
  4573. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  4574. CInstructionIndex src = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  4575. CInstructionIndex scale = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  4576. #ifndef TOLUA_RELEASE
  4577. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'scaleU'", NULL);
  4578. #endif
  4579. {
  4580. CInstructionIndex tolua_ret = (CInstructionIndex) self->scaleU(src,scale);
  4581. {
  4582. #ifdef __cplusplus
  4583. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  4584. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4585. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4586. #else
  4587. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  4588. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4589. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4590. #endif
  4591. }
  4592. }
  4593. }
  4594. return 1;
  4595. #ifndef TOLUA_RELEASE
  4596. tolua_lerror:
  4597. tolua_error(tolua_S,"#ferror in function 'scaleU'.",&tolua_err);
  4598. return 0;
  4599. #endif
  4600. }
  4601. #endif //#ifndef TOLUA_DISABLE
  4602.  
  4603. /* method: scaleV of class CKernel */
  4604. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_scaleV00
  4605. static int tolua_bind_anl_CKernel_scaleV00(lua_State* tolua_S)
  4606. {
  4607. #ifndef TOLUA_RELEASE
  4608. tolua_Error tolua_err;
  4609. if (
  4610. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  4611. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  4612. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  4613. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4614. )
  4615. goto tolua_lerror;
  4616. else
  4617. #endif
  4618. {
  4619. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  4620. CInstructionIndex src = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  4621. CInstructionIndex scale = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  4622. #ifndef TOLUA_RELEASE
  4623. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'scaleV'", NULL);
  4624. #endif
  4625. {
  4626. CInstructionIndex tolua_ret = (CInstructionIndex) self->scaleV(src,scale);
  4627. {
  4628. #ifdef __cplusplus
  4629. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  4630. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4631. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4632. #else
  4633. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  4634. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4635. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4636. #endif
  4637. }
  4638. }
  4639. }
  4640. return 1;
  4641. #ifndef TOLUA_RELEASE
  4642. tolua_lerror:
  4643. tolua_error(tolua_S,"#ferror in function 'scaleV'.",&tolua_err);
  4644. return 0;
  4645. #endif
  4646. }
  4647. #endif //#ifndef TOLUA_DISABLE
  4648.  
  4649. /* method: translateDomain of class CKernel */
  4650. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_translateDomain00
  4651. static int tolua_bind_anl_CKernel_translateDomain00(lua_State* tolua_S)
  4652. {
  4653. #ifndef TOLUA_RELEASE
  4654. tolua_Error tolua_err;
  4655. if (
  4656. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  4657. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  4658. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  4659. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"CInstructionIndex",0,&tolua_err)) ||
  4660. !tolua_isnoobj(tolua_S,5,&tolua_err)
  4661. )
  4662. goto tolua_lerror;
  4663. else
  4664. #endif
  4665. {
  4666. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  4667. CInstructionIndex srcindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  4668. CInstructionIndex xindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  4669. CInstructionIndex yindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,4,0));
  4670. #ifndef TOLUA_RELEASE
  4671. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'translateDomain'", NULL);
  4672. #endif
  4673. {
  4674. CInstructionIndex tolua_ret = (CInstructionIndex) self->translateDomain(srcindex,xindex,yindex);
  4675. {
  4676. #ifdef __cplusplus
  4677. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  4678. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4679. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4680. #else
  4681. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  4682. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4683. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4684. #endif
  4685. }
  4686. }
  4687. }
  4688. return 1;
  4689. #ifndef TOLUA_RELEASE
  4690. tolua_lerror:
  4691. tolua_error(tolua_S,"#ferror in function 'translateDomain'.",&tolua_err);
  4692. return 0;
  4693. #endif
  4694. }
  4695. #endif //#ifndef TOLUA_DISABLE
  4696.  
  4697. /* method: translateDomain of class CKernel */
  4698. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_translateDomain01
  4699. static int tolua_bind_anl_CKernel_translateDomain01(lua_State* tolua_S)
  4700. {
  4701. tolua_Error tolua_err;
  4702. if (
  4703. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  4704. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  4705. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  4706. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"CInstructionIndex",0,&tolua_err)) ||
  4707. (tolua_isvaluenil(tolua_S,5,&tolua_err) || !tolua_isusertype(tolua_S,5,"CInstructionIndex",0,&tolua_err)) ||
  4708. !tolua_isnoobj(tolua_S,6,&tolua_err)
  4709. )
  4710. goto tolua_lerror;
  4711. else
  4712. {
  4713. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  4714. CInstructionIndex srcindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  4715. CInstructionIndex xindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  4716. CInstructionIndex yindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,4,0));
  4717. CInstructionIndex zindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,5,0));
  4718. #ifndef TOLUA_RELEASE
  4719. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'translateDomain'", NULL);
  4720. #endif
  4721. {
  4722. CInstructionIndex tolua_ret = (CInstructionIndex) self->translateDomain(srcindex,xindex,yindex,zindex);
  4723. {
  4724. #ifdef __cplusplus
  4725. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  4726. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4727. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4728. #else
  4729. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  4730. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4731. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4732. #endif
  4733. }
  4734. }
  4735. }
  4736. return 1;
  4737. tolua_lerror:
  4738. return tolua_bind_anl_CKernel_translateDomain00(tolua_S);
  4739. }
  4740. #endif //#ifndef TOLUA_DISABLE
  4741.  
  4742. /* method: translateDomain of class CKernel */
  4743. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_translateDomain02
  4744. static int tolua_bind_anl_CKernel_translateDomain02(lua_State* tolua_S)
  4745. {
  4746. tolua_Error tolua_err;
  4747. if (
  4748. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  4749. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  4750. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  4751. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"CInstructionIndex",0,&tolua_err)) ||
  4752. (tolua_isvaluenil(tolua_S,5,&tolua_err) || !tolua_isusertype(tolua_S,5,"CInstructionIndex",0,&tolua_err)) ||
  4753. (tolua_isvaluenil(tolua_S,6,&tolua_err) || !tolua_isusertype(tolua_S,6,"CInstructionIndex",0,&tolua_err)) ||
  4754. !tolua_isnoobj(tolua_S,7,&tolua_err)
  4755. )
  4756. goto tolua_lerror;
  4757. else
  4758. {
  4759. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  4760. CInstructionIndex srcindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  4761. CInstructionIndex xindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  4762. CInstructionIndex yindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,4,0));
  4763. CInstructionIndex zindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,5,0));
  4764. CInstructionIndex windex = *((CInstructionIndex*) tolua_tousertype(tolua_S,6,0));
  4765. #ifndef TOLUA_RELEASE
  4766. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'translateDomain'", NULL);
  4767. #endif
  4768. {
  4769. CInstructionIndex tolua_ret = (CInstructionIndex) self->translateDomain(srcindex,xindex,yindex,zindex,windex);
  4770. {
  4771. #ifdef __cplusplus
  4772. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  4773. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4774. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4775. #else
  4776. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  4777. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4778. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4779. #endif
  4780. }
  4781. }
  4782. }
  4783. return 1;
  4784. tolua_lerror:
  4785. return tolua_bind_anl_CKernel_translateDomain01(tolua_S);
  4786. }
  4787. #endif //#ifndef TOLUA_DISABLE
  4788.  
  4789. /* method: translateDomain of class CKernel */
  4790. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_translateDomain03
  4791. static int tolua_bind_anl_CKernel_translateDomain03(lua_State* tolua_S)
  4792. {
  4793. tolua_Error tolua_err;
  4794. if (
  4795. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  4796. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  4797. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  4798. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"CInstructionIndex",0,&tolua_err)) ||
  4799. (tolua_isvaluenil(tolua_S,5,&tolua_err) || !tolua_isusertype(tolua_S,5,"CInstructionIndex",0,&tolua_err)) ||
  4800. (tolua_isvaluenil(tolua_S,6,&tolua_err) || !tolua_isusertype(tolua_S,6,"CInstructionIndex",0,&tolua_err)) ||
  4801. (tolua_isvaluenil(tolua_S,7,&tolua_err) || !tolua_isusertype(tolua_S,7,"CInstructionIndex",0,&tolua_err)) ||
  4802. (tolua_isvaluenil(tolua_S,8,&tolua_err) || !tolua_isusertype(tolua_S,8,"CInstructionIndex",0,&tolua_err)) ||
  4803. !tolua_isnoobj(tolua_S,9,&tolua_err)
  4804. )
  4805. goto tolua_lerror;
  4806. else
  4807. {
  4808. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  4809. CInstructionIndex srcindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  4810. CInstructionIndex xindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  4811. CInstructionIndex yindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,4,0));
  4812. CInstructionIndex zindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,5,0));
  4813. CInstructionIndex windex = *((CInstructionIndex*) tolua_tousertype(tolua_S,6,0));
  4814. CInstructionIndex uindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,7,0));
  4815. CInstructionIndex vindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,8,0));
  4816. #ifndef TOLUA_RELEASE
  4817. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'translateDomain'", NULL);
  4818. #endif
  4819. {
  4820. CInstructionIndex tolua_ret = (CInstructionIndex) self->translateDomain(srcindex,xindex,yindex,zindex,windex,uindex,vindex);
  4821. {
  4822. #ifdef __cplusplus
  4823. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  4824. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4825. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4826. #else
  4827. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  4828. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4829. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4830. #endif
  4831. }
  4832. }
  4833. }
  4834. return 1;
  4835. tolua_lerror:
  4836. return tolua_bind_anl_CKernel_translateDomain02(tolua_S);
  4837. }
  4838. #endif //#ifndef TOLUA_DISABLE
  4839.  
  4840. /* method: translateX of class CKernel */
  4841. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_translateX00
  4842. static int tolua_bind_anl_CKernel_translateX00(lua_State* tolua_S)
  4843. {
  4844. #ifndef TOLUA_RELEASE
  4845. tolua_Error tolua_err;
  4846. if (
  4847. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  4848. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  4849. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  4850. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4851. )
  4852. goto tolua_lerror;
  4853. else
  4854. #endif
  4855. {
  4856. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  4857. CInstructionIndex src = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  4858. CInstructionIndex trans = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  4859. #ifndef TOLUA_RELEASE
  4860. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'translateX'", NULL);
  4861. #endif
  4862. {
  4863. CInstructionIndex tolua_ret = (CInstructionIndex) self->translateX(src,trans);
  4864. {
  4865. #ifdef __cplusplus
  4866. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  4867. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4868. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4869. #else
  4870. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  4871. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4872. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4873. #endif
  4874. }
  4875. }
  4876. }
  4877. return 1;
  4878. #ifndef TOLUA_RELEASE
  4879. tolua_lerror:
  4880. tolua_error(tolua_S,"#ferror in function 'translateX'.",&tolua_err);
  4881. return 0;
  4882. #endif
  4883. }
  4884. #endif //#ifndef TOLUA_DISABLE
  4885.  
  4886. /* method: translateY of class CKernel */
  4887. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_translateY00
  4888. static int tolua_bind_anl_CKernel_translateY00(lua_State* tolua_S)
  4889. {
  4890. #ifndef TOLUA_RELEASE
  4891. tolua_Error tolua_err;
  4892. if (
  4893. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  4894. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  4895. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  4896. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4897. )
  4898. goto tolua_lerror;
  4899. else
  4900. #endif
  4901. {
  4902. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  4903. CInstructionIndex src = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  4904. CInstructionIndex trans = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  4905. #ifndef TOLUA_RELEASE
  4906. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'translateY'", NULL);
  4907. #endif
  4908. {
  4909. CInstructionIndex tolua_ret = (CInstructionIndex) self->translateY(src,trans);
  4910. {
  4911. #ifdef __cplusplus
  4912. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  4913. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4914. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4915. #else
  4916. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  4917. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4918. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4919. #endif
  4920. }
  4921. }
  4922. }
  4923. return 1;
  4924. #ifndef TOLUA_RELEASE
  4925. tolua_lerror:
  4926. tolua_error(tolua_S,"#ferror in function 'translateY'.",&tolua_err);
  4927. return 0;
  4928. #endif
  4929. }
  4930. #endif //#ifndef TOLUA_DISABLE
  4931.  
  4932. /* method: translateZ of class CKernel */
  4933. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_translateZ00
  4934. static int tolua_bind_anl_CKernel_translateZ00(lua_State* tolua_S)
  4935. {
  4936. #ifndef TOLUA_RELEASE
  4937. tolua_Error tolua_err;
  4938. if (
  4939. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  4940. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  4941. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  4942. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4943. )
  4944. goto tolua_lerror;
  4945. else
  4946. #endif
  4947. {
  4948. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  4949. CInstructionIndex src = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  4950. CInstructionIndex trans = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  4951. #ifndef TOLUA_RELEASE
  4952. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'translateZ'", NULL);
  4953. #endif
  4954. {
  4955. CInstructionIndex tolua_ret = (CInstructionIndex) self->translateZ(src,trans);
  4956. {
  4957. #ifdef __cplusplus
  4958. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  4959. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4960. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4961. #else
  4962. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  4963. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  4964. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4965. #endif
  4966. }
  4967. }
  4968. }
  4969. return 1;
  4970. #ifndef TOLUA_RELEASE
  4971. tolua_lerror:
  4972. tolua_error(tolua_S,"#ferror in function 'translateZ'.",&tolua_err);
  4973. return 0;
  4974. #endif
  4975. }
  4976. #endif //#ifndef TOLUA_DISABLE
  4977.  
  4978. /* method: translateW of class CKernel */
  4979. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_translateW00
  4980. static int tolua_bind_anl_CKernel_translateW00(lua_State* tolua_S)
  4981. {
  4982. #ifndef TOLUA_RELEASE
  4983. tolua_Error tolua_err;
  4984. if (
  4985. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  4986. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  4987. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  4988. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4989. )
  4990. goto tolua_lerror;
  4991. else
  4992. #endif
  4993. {
  4994. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  4995. CInstructionIndex src = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  4996. CInstructionIndex trans = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  4997. #ifndef TOLUA_RELEASE
  4998. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'translateW'", NULL);
  4999. #endif
  5000. {
  5001. CInstructionIndex tolua_ret = (CInstructionIndex) self->translateW(src,trans);
  5002. {
  5003. #ifdef __cplusplus
  5004. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  5005. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5006. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5007. #else
  5008. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  5009. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5010. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5011. #endif
  5012. }
  5013. }
  5014. }
  5015. return 1;
  5016. #ifndef TOLUA_RELEASE
  5017. tolua_lerror:
  5018. tolua_error(tolua_S,"#ferror in function 'translateW'.",&tolua_err);
  5019. return 0;
  5020. #endif
  5021. }
  5022. #endif //#ifndef TOLUA_DISABLE
  5023.  
  5024. /* method: translateU of class CKernel */
  5025. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_translateU00
  5026. static int tolua_bind_anl_CKernel_translateU00(lua_State* tolua_S)
  5027. {
  5028. #ifndef TOLUA_RELEASE
  5029. tolua_Error tolua_err;
  5030. if (
  5031. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  5032. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  5033. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  5034. !tolua_isnoobj(tolua_S,4,&tolua_err)
  5035. )
  5036. goto tolua_lerror;
  5037. else
  5038. #endif
  5039. {
  5040. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  5041. CInstructionIndex src = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  5042. CInstructionIndex trans = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  5043. #ifndef TOLUA_RELEASE
  5044. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'translateU'", NULL);
  5045. #endif
  5046. {
  5047. CInstructionIndex tolua_ret = (CInstructionIndex) self->translateU(src,trans);
  5048. {
  5049. #ifdef __cplusplus
  5050. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  5051. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5052. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5053. #else
  5054. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  5055. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5056. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5057. #endif
  5058. }
  5059. }
  5060. }
  5061. return 1;
  5062. #ifndef TOLUA_RELEASE
  5063. tolua_lerror:
  5064. tolua_error(tolua_S,"#ferror in function 'translateU'.",&tolua_err);
  5065. return 0;
  5066. #endif
  5067. }
  5068. #endif //#ifndef TOLUA_DISABLE
  5069.  
  5070. /* method: translateV of class CKernel */
  5071. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_translateV00
  5072. static int tolua_bind_anl_CKernel_translateV00(lua_State* tolua_S)
  5073. {
  5074. #ifndef TOLUA_RELEASE
  5075. tolua_Error tolua_err;
  5076. if (
  5077. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  5078. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  5079. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  5080. !tolua_isnoobj(tolua_S,4,&tolua_err)
  5081. )
  5082. goto tolua_lerror;
  5083. else
  5084. #endif
  5085. {
  5086. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  5087. CInstructionIndex src = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  5088. CInstructionIndex trans = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  5089. #ifndef TOLUA_RELEASE
  5090. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'translateV'", NULL);
  5091. #endif
  5092. {
  5093. CInstructionIndex tolua_ret = (CInstructionIndex) self->translateV(src,trans);
  5094. {
  5095. #ifdef __cplusplus
  5096. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  5097. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5098. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5099. #else
  5100. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  5101. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5102. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5103. #endif
  5104. }
  5105. }
  5106. }
  5107. return 1;
  5108. #ifndef TOLUA_RELEASE
  5109. tolua_lerror:
  5110. tolua_error(tolua_S,"#ferror in function 'translateV'.",&tolua_err);
  5111. return 0;
  5112. #endif
  5113. }
  5114. #endif //#ifndef TOLUA_DISABLE
  5115.  
  5116. /* method: rotateDomain of class CKernel */
  5117. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_rotateDomain00
  5118. static int tolua_bind_anl_CKernel_rotateDomain00(lua_State* tolua_S)
  5119. {
  5120. #ifndef TOLUA_RELEASE
  5121. tolua_Error tolua_err;
  5122. if (
  5123. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  5124. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  5125. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  5126. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"CInstructionIndex",0,&tolua_err)) ||
  5127. (tolua_isvaluenil(tolua_S,5,&tolua_err) || !tolua_isusertype(tolua_S,5,"CInstructionIndex",0,&tolua_err)) ||
  5128. (tolua_isvaluenil(tolua_S,6,&tolua_err) || !tolua_isusertype(tolua_S,6,"CInstructionIndex",0,&tolua_err)) ||
  5129. !tolua_isnoobj(tolua_S,7,&tolua_err)
  5130. )
  5131. goto tolua_lerror;
  5132. else
  5133. #endif
  5134. {
  5135. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  5136. CInstructionIndex src = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  5137. CInstructionIndex angle = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  5138. CInstructionIndex ax = *((CInstructionIndex*) tolua_tousertype(tolua_S,4,0));
  5139. CInstructionIndex ay = *((CInstructionIndex*) tolua_tousertype(tolua_S,5,0));
  5140. CInstructionIndex az = *((CInstructionIndex*) tolua_tousertype(tolua_S,6,0));
  5141. #ifndef TOLUA_RELEASE
  5142. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'rotateDomain'", NULL);
  5143. #endif
  5144. {
  5145. CInstructionIndex tolua_ret = (CInstructionIndex) self->rotateDomain(src,angle,ax,ay,az);
  5146. {
  5147. #ifdef __cplusplus
  5148. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  5149. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5150. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5151. #else
  5152. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  5153. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5154. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5155. #endif
  5156. }
  5157. }
  5158. }
  5159. return 1;
  5160. #ifndef TOLUA_RELEASE
  5161. tolua_lerror:
  5162. tolua_error(tolua_S,"#ferror in function 'rotateDomain'.",&tolua_err);
  5163. return 0;
  5164. #endif
  5165. }
  5166. #endif //#ifndef TOLUA_DISABLE
  5167.  
  5168. /* method: addSequence of class CKernel */
  5169. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_addSequence00
  5170. static int tolua_bind_anl_CKernel_addSequence00(lua_State* tolua_S)
  5171. {
  5172. #ifndef TOLUA_RELEASE
  5173. tolua_Error tolua_err;
  5174. if (
  5175. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  5176. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  5177. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  5178. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  5179. !tolua_isnoobj(tolua_S,5,&tolua_err)
  5180. )
  5181. goto tolua_lerror;
  5182. else
  5183. #endif
  5184. {
  5185. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  5186. CInstructionIndex baseindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  5187. unsigned int number = ((unsigned int) tolua_tonumber(tolua_S,3,0));
  5188. unsigned int stride = ((unsigned int) tolua_tonumber(tolua_S,4,0));
  5189. #ifndef TOLUA_RELEASE
  5190. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'addSequence'", NULL);
  5191. #endif
  5192. {
  5193. CInstructionIndex tolua_ret = (CInstructionIndex) self->addSequence(baseindex,number,stride);
  5194. {
  5195. #ifdef __cplusplus
  5196. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  5197. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5198. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5199. #else
  5200. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  5201. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5202. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5203. #endif
  5204. }
  5205. }
  5206. }
  5207. return 1;
  5208. #ifndef TOLUA_RELEASE
  5209. tolua_lerror:
  5210. tolua_error(tolua_S,"#ferror in function 'addSequence'.",&tolua_err);
  5211. return 0;
  5212. #endif
  5213. }
  5214. #endif //#ifndef TOLUA_DISABLE
  5215.  
  5216. /* method: multiplySequence of class CKernel */
  5217. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_multiplySequence00
  5218. static int tolua_bind_anl_CKernel_multiplySequence00(lua_State* tolua_S)
  5219. {
  5220. #ifndef TOLUA_RELEASE
  5221. tolua_Error tolua_err;
  5222. if (
  5223. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  5224. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  5225. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  5226. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  5227. !tolua_isnoobj(tolua_S,5,&tolua_err)
  5228. )
  5229. goto tolua_lerror;
  5230. else
  5231. #endif
  5232. {
  5233. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  5234. CInstructionIndex baseindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  5235. unsigned int number = ((unsigned int) tolua_tonumber(tolua_S,3,0));
  5236. unsigned int stride = ((unsigned int) tolua_tonumber(tolua_S,4,0));
  5237. #ifndef TOLUA_RELEASE
  5238. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'multiplySequence'", NULL);
  5239. #endif
  5240. {
  5241. CInstructionIndex tolua_ret = (CInstructionIndex) self->multiplySequence(baseindex,number,stride);
  5242. {
  5243. #ifdef __cplusplus
  5244. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  5245. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5246. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5247. #else
  5248. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  5249. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5250. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5251. #endif
  5252. }
  5253. }
  5254. }
  5255. return 1;
  5256. #ifndef TOLUA_RELEASE
  5257. tolua_lerror:
  5258. tolua_error(tolua_S,"#ferror in function 'multiplySequence'.",&tolua_err);
  5259. return 0;
  5260. #endif
  5261. }
  5262. #endif //#ifndef TOLUA_DISABLE
  5263.  
  5264. /* method: maxSequence of class CKernel */
  5265. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_maxSequence00
  5266. static int tolua_bind_anl_CKernel_maxSequence00(lua_State* tolua_S)
  5267. {
  5268. #ifndef TOLUA_RELEASE
  5269. tolua_Error tolua_err;
  5270. if (
  5271. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  5272. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  5273. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  5274. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  5275. !tolua_isnoobj(tolua_S,5,&tolua_err)
  5276. )
  5277. goto tolua_lerror;
  5278. else
  5279. #endif
  5280. {
  5281. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  5282. CInstructionIndex baseindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  5283. unsigned int number = ((unsigned int) tolua_tonumber(tolua_S,3,0));
  5284. unsigned int stride = ((unsigned int) tolua_tonumber(tolua_S,4,0));
  5285. #ifndef TOLUA_RELEASE
  5286. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxSequence'", NULL);
  5287. #endif
  5288. {
  5289. CInstructionIndex tolua_ret = (CInstructionIndex) self->maxSequence(baseindex,number,stride);
  5290. {
  5291. #ifdef __cplusplus
  5292. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  5293. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5294. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5295. #else
  5296. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  5297. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5298. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5299. #endif
  5300. }
  5301. }
  5302. }
  5303. return 1;
  5304. #ifndef TOLUA_RELEASE
  5305. tolua_lerror:
  5306. tolua_error(tolua_S,"#ferror in function 'maxSequence'.",&tolua_err);
  5307. return 0;
  5308. #endif
  5309. }
  5310. #endif //#ifndef TOLUA_DISABLE
  5311.  
  5312. /* method: minSequence of class CKernel */
  5313. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_minSequence00
  5314. static int tolua_bind_anl_CKernel_minSequence00(lua_State* tolua_S)
  5315. {
  5316. #ifndef TOLUA_RELEASE
  5317. tolua_Error tolua_err;
  5318. if (
  5319. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  5320. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  5321. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  5322. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  5323. !tolua_isnoobj(tolua_S,5,&tolua_err)
  5324. )
  5325. goto tolua_lerror;
  5326. else
  5327. #endif
  5328. {
  5329. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  5330. CInstructionIndex baseindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  5331. unsigned int number = ((unsigned int) tolua_tonumber(tolua_S,3,0));
  5332. unsigned int stride = ((unsigned int) tolua_tonumber(tolua_S,4,0));
  5333. #ifndef TOLUA_RELEASE
  5334. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'minSequence'", NULL);
  5335. #endif
  5336. {
  5337. CInstructionIndex tolua_ret = (CInstructionIndex) self->minSequence(baseindex,number,stride);
  5338. {
  5339. #ifdef __cplusplus
  5340. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  5341. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5342. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5343. #else
  5344. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  5345. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5346. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5347. #endif
  5348. }
  5349. }
  5350. }
  5351. return 1;
  5352. #ifndef TOLUA_RELEASE
  5353. tolua_lerror:
  5354. tolua_error(tolua_S,"#ferror in function 'minSequence'.",&tolua_err);
  5355. return 0;
  5356. #endif
  5357. }
  5358. #endif //#ifndef TOLUA_DISABLE
  5359.  
  5360. /* method: blend of class CKernel */
  5361. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_blend00
  5362. static int tolua_bind_anl_CKernel_blend00(lua_State* tolua_S)
  5363. {
  5364. #ifndef TOLUA_RELEASE
  5365. tolua_Error tolua_err;
  5366. if (
  5367. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  5368. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  5369. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  5370. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"CInstructionIndex",0,&tolua_err)) ||
  5371. !tolua_isnoobj(tolua_S,5,&tolua_err)
  5372. )
  5373. goto tolua_lerror;
  5374. else
  5375. #endif
  5376. {
  5377. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  5378. CInstructionIndex low = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  5379. CInstructionIndex high = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  5380. CInstructionIndex control = *((CInstructionIndex*) tolua_tousertype(tolua_S,4,0));
  5381. #ifndef TOLUA_RELEASE
  5382. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'blend'", NULL);
  5383. #endif
  5384. {
  5385. CInstructionIndex tolua_ret = (CInstructionIndex) self->blend(low,high,control);
  5386. {
  5387. #ifdef __cplusplus
  5388. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  5389. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5390. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5391. #else
  5392. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  5393. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5394. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5395. #endif
  5396. }
  5397. }
  5398. }
  5399. return 1;
  5400. #ifndef TOLUA_RELEASE
  5401. tolua_lerror:
  5402. tolua_error(tolua_S,"#ferror in function 'blend'.",&tolua_err);
  5403. return 0;
  5404. #endif
  5405. }
  5406. #endif //#ifndef TOLUA_DISABLE
  5407.  
  5408. /* method: select of class CKernel */
  5409. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_select00
  5410. static int tolua_bind_anl_CKernel_select00(lua_State* tolua_S)
  5411. {
  5412. #ifndef TOLUA_RELEASE
  5413. tolua_Error tolua_err;
  5414. if (
  5415. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  5416. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  5417. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  5418. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"CInstructionIndex",0,&tolua_err)) ||
  5419. (tolua_isvaluenil(tolua_S,5,&tolua_err) || !tolua_isusertype(tolua_S,5,"CInstructionIndex",0,&tolua_err)) ||
  5420. (tolua_isvaluenil(tolua_S,6,&tolua_err) || !tolua_isusertype(tolua_S,6,"CInstructionIndex",0,&tolua_err)) ||
  5421. !tolua_isnoobj(tolua_S,7,&tolua_err)
  5422. )
  5423. goto tolua_lerror;
  5424. else
  5425. #endif
  5426. {
  5427. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  5428. CInstructionIndex low = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  5429. CInstructionIndex high = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  5430. CInstructionIndex control = *((CInstructionIndex*) tolua_tousertype(tolua_S,4,0));
  5431. CInstructionIndex threshold = *((CInstructionIndex*) tolua_tousertype(tolua_S,5,0));
  5432. CInstructionIndex falloff = *((CInstructionIndex*) tolua_tousertype(tolua_S,6,0));
  5433. #ifndef TOLUA_RELEASE
  5434. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'select'", NULL);
  5435. #endif
  5436. {
  5437. CInstructionIndex tolua_ret = (CInstructionIndex) self->select(low,high,control,threshold,falloff);
  5438. {
  5439. #ifdef __cplusplus
  5440. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  5441. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5442. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5443. #else
  5444. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  5445. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5446. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5447. #endif
  5448. }
  5449. }
  5450. }
  5451. return 1;
  5452. #ifndef TOLUA_RELEASE
  5453. tolua_lerror:
  5454. tolua_error(tolua_S,"#ferror in function 'select'.",&tolua_err);
  5455. return 0;
  5456. #endif
  5457. }
  5458. #endif //#ifndef TOLUA_DISABLE
  5459.  
  5460. /* method: clamp of class CKernel */
  5461. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_clamp00
  5462. static int tolua_bind_anl_CKernel_clamp00(lua_State* tolua_S)
  5463. {
  5464. #ifndef TOLUA_RELEASE
  5465. tolua_Error tolua_err;
  5466. if (
  5467. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  5468. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  5469. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  5470. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"CInstructionIndex",0,&tolua_err)) ||
  5471. !tolua_isnoobj(tolua_S,5,&tolua_err)
  5472. )
  5473. goto tolua_lerror;
  5474. else
  5475. #endif
  5476. {
  5477. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  5478. CInstructionIndex src = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  5479. CInstructionIndex low = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  5480. CInstructionIndex high = *((CInstructionIndex*) tolua_tousertype(tolua_S,4,0));
  5481. #ifndef TOLUA_RELEASE
  5482. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'clamp'", NULL);
  5483. #endif
  5484. {
  5485. CInstructionIndex tolua_ret = (CInstructionIndex) self->clamp(src,low,high);
  5486. {
  5487. #ifdef __cplusplus
  5488. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  5489. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5490. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5491. #else
  5492. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  5493. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5494. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5495. #endif
  5496. }
  5497. }
  5498. }
  5499. return 1;
  5500. #ifndef TOLUA_RELEASE
  5501. tolua_lerror:
  5502. tolua_error(tolua_S,"#ferror in function 'clamp'.",&tolua_err);
  5503. return 0;
  5504. #endif
  5505. }
  5506. #endif //#ifndef TOLUA_DISABLE
  5507.  
  5508. /* method: cos of class CKernel */
  5509. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_cos00
  5510. static int tolua_bind_anl_CKernel_cos00(lua_State* tolua_S)
  5511. {
  5512. #ifndef TOLUA_RELEASE
  5513. tolua_Error tolua_err;
  5514. if (
  5515. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  5516. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  5517. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5518. )
  5519. goto tolua_lerror;
  5520. else
  5521. #endif
  5522. {
  5523. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  5524. CInstructionIndex src = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  5525. #ifndef TOLUA_RELEASE
  5526. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'cos'", NULL);
  5527. #endif
  5528. {
  5529. CInstructionIndex tolua_ret = (CInstructionIndex) self->cos(src);
  5530. {
  5531. #ifdef __cplusplus
  5532. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  5533. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5534. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5535. #else
  5536. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  5537. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5538. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5539. #endif
  5540. }
  5541. }
  5542. }
  5543. return 1;
  5544. #ifndef TOLUA_RELEASE
  5545. tolua_lerror:
  5546. tolua_error(tolua_S,"#ferror in function 'cos'.",&tolua_err);
  5547. return 0;
  5548. #endif
  5549. }
  5550. #endif //#ifndef TOLUA_DISABLE
  5551.  
  5552. /* method: sin of class CKernel */
  5553. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_sin00
  5554. static int tolua_bind_anl_CKernel_sin00(lua_State* tolua_S)
  5555. {
  5556. #ifndef TOLUA_RELEASE
  5557. tolua_Error tolua_err;
  5558. if (
  5559. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  5560. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  5561. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5562. )
  5563. goto tolua_lerror;
  5564. else
  5565. #endif
  5566. {
  5567. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  5568. CInstructionIndex src = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  5569. #ifndef TOLUA_RELEASE
  5570. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'sin'", NULL);
  5571. #endif
  5572. {
  5573. CInstructionIndex tolua_ret = (CInstructionIndex) self->sin(src);
  5574. {
  5575. #ifdef __cplusplus
  5576. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  5577. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5578. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5579. #else
  5580. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  5581. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5582. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5583. #endif
  5584. }
  5585. }
  5586. }
  5587. return 1;
  5588. #ifndef TOLUA_RELEASE
  5589. tolua_lerror:
  5590. tolua_error(tolua_S,"#ferror in function 'sin'.",&tolua_err);
  5591. return 0;
  5592. #endif
  5593. }
  5594. #endif //#ifndef TOLUA_DISABLE
  5595.  
  5596. /* method: tan of class CKernel */
  5597. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_tan00
  5598. static int tolua_bind_anl_CKernel_tan00(lua_State* tolua_S)
  5599. {
  5600. #ifndef TOLUA_RELEASE
  5601. tolua_Error tolua_err;
  5602. if (
  5603. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  5604. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  5605. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5606. )
  5607. goto tolua_lerror;
  5608. else
  5609. #endif
  5610. {
  5611. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  5612. CInstructionIndex src = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  5613. #ifndef TOLUA_RELEASE
  5614. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'tan'", NULL);
  5615. #endif
  5616. {
  5617. CInstructionIndex tolua_ret = (CInstructionIndex) self->tan(src);
  5618. {
  5619. #ifdef __cplusplus
  5620. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  5621. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5622. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5623. #else
  5624. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  5625. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5626. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5627. #endif
  5628. }
  5629. }
  5630. }
  5631. return 1;
  5632. #ifndef TOLUA_RELEASE
  5633. tolua_lerror:
  5634. tolua_error(tolua_S,"#ferror in function 'tan'.",&tolua_err);
  5635. return 0;
  5636. #endif
  5637. }
  5638. #endif //#ifndef TOLUA_DISABLE
  5639.  
  5640. /* method: acos of class CKernel */
  5641. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_acos00
  5642. static int tolua_bind_anl_CKernel_acos00(lua_State* tolua_S)
  5643. {
  5644. #ifndef TOLUA_RELEASE
  5645. tolua_Error tolua_err;
  5646. if (
  5647. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  5648. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  5649. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5650. )
  5651. goto tolua_lerror;
  5652. else
  5653. #endif
  5654. {
  5655. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  5656. CInstructionIndex src = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  5657. #ifndef TOLUA_RELEASE
  5658. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'acos'", NULL);
  5659. #endif
  5660. {
  5661. CInstructionIndex tolua_ret = (CInstructionIndex) self->acos(src);
  5662. {
  5663. #ifdef __cplusplus
  5664. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  5665. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5666. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5667. #else
  5668. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  5669. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5670. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5671. #endif
  5672. }
  5673. }
  5674. }
  5675. return 1;
  5676. #ifndef TOLUA_RELEASE
  5677. tolua_lerror:
  5678. tolua_error(tolua_S,"#ferror in function 'acos'.",&tolua_err);
  5679. return 0;
  5680. #endif
  5681. }
  5682. #endif //#ifndef TOLUA_DISABLE
  5683.  
  5684. /* method: asin of class CKernel */
  5685. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_asin00
  5686. static int tolua_bind_anl_CKernel_asin00(lua_State* tolua_S)
  5687. {
  5688. #ifndef TOLUA_RELEASE
  5689. tolua_Error tolua_err;
  5690. if (
  5691. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  5692. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  5693. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5694. )
  5695. goto tolua_lerror;
  5696. else
  5697. #endif
  5698. {
  5699. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  5700. CInstructionIndex src = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  5701. #ifndef TOLUA_RELEASE
  5702. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'asin'", NULL);
  5703. #endif
  5704. {
  5705. CInstructionIndex tolua_ret = (CInstructionIndex) self->asin(src);
  5706. {
  5707. #ifdef __cplusplus
  5708. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  5709. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5710. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5711. #else
  5712. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  5713. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5714. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5715. #endif
  5716. }
  5717. }
  5718. }
  5719. return 1;
  5720. #ifndef TOLUA_RELEASE
  5721. tolua_lerror:
  5722. tolua_error(tolua_S,"#ferror in function 'asin'.",&tolua_err);
  5723. return 0;
  5724. #endif
  5725. }
  5726. #endif //#ifndef TOLUA_DISABLE
  5727.  
  5728. /* method: atan of class CKernel */
  5729. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_atan00
  5730. static int tolua_bind_anl_CKernel_atan00(lua_State* tolua_S)
  5731. {
  5732. #ifndef TOLUA_RELEASE
  5733. tolua_Error tolua_err;
  5734. if (
  5735. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  5736. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  5737. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5738. )
  5739. goto tolua_lerror;
  5740. else
  5741. #endif
  5742. {
  5743. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  5744. CInstructionIndex src = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  5745. #ifndef TOLUA_RELEASE
  5746. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'atan'", NULL);
  5747. #endif
  5748. {
  5749. CInstructionIndex tolua_ret = (CInstructionIndex) self->atan(src);
  5750. {
  5751. #ifdef __cplusplus
  5752. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  5753. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5754. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5755. #else
  5756. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  5757. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5758. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5759. #endif
  5760. }
  5761. }
  5762. }
  5763. return 1;
  5764. #ifndef TOLUA_RELEASE
  5765. tolua_lerror:
  5766. tolua_error(tolua_S,"#ferror in function 'atan'.",&tolua_err);
  5767. return 0;
  5768. #endif
  5769. }
  5770. #endif //#ifndef TOLUA_DISABLE
  5771.  
  5772. /* method: tiers of class CKernel */
  5773. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_tiers00
  5774. static int tolua_bind_anl_CKernel_tiers00(lua_State* tolua_S)
  5775. {
  5776. #ifndef TOLUA_RELEASE
  5777. tolua_Error tolua_err;
  5778. if (
  5779. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  5780. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  5781. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  5782. !tolua_isnoobj(tolua_S,4,&tolua_err)
  5783. )
  5784. goto tolua_lerror;
  5785. else
  5786. #endif
  5787. {
  5788. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  5789. CInstructionIndex src = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  5790. CInstructionIndex numtiers = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  5791. #ifndef TOLUA_RELEASE
  5792. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'tiers'", NULL);
  5793. #endif
  5794. {
  5795. CInstructionIndex tolua_ret = (CInstructionIndex) self->tiers(src,numtiers);
  5796. {
  5797. #ifdef __cplusplus
  5798. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  5799. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5800. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5801. #else
  5802. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  5803. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5804. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5805. #endif
  5806. }
  5807. }
  5808. }
  5809. return 1;
  5810. #ifndef TOLUA_RELEASE
  5811. tolua_lerror:
  5812. tolua_error(tolua_S,"#ferror in function 'tiers'.",&tolua_err);
  5813. return 0;
  5814. #endif
  5815. }
  5816. #endif //#ifndef TOLUA_DISABLE
  5817.  
  5818. /* method: smoothTiers of class CKernel */
  5819. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_smoothTiers00
  5820. static int tolua_bind_anl_CKernel_smoothTiers00(lua_State* tolua_S)
  5821. {
  5822. #ifndef TOLUA_RELEASE
  5823. tolua_Error tolua_err;
  5824. if (
  5825. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  5826. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  5827. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  5828. !tolua_isnoobj(tolua_S,4,&tolua_err)
  5829. )
  5830. goto tolua_lerror;
  5831. else
  5832. #endif
  5833. {
  5834. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  5835. CInstructionIndex src = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  5836. CInstructionIndex numtiers = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  5837. #ifndef TOLUA_RELEASE
  5838. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'smoothTiers'", NULL);
  5839. #endif
  5840. {
  5841. CInstructionIndex tolua_ret = (CInstructionIndex) self->smoothTiers(src,numtiers);
  5842. {
  5843. #ifdef __cplusplus
  5844. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  5845. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5846. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5847. #else
  5848. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  5849. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5850. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5851. #endif
  5852. }
  5853. }
  5854. }
  5855. return 1;
  5856. #ifndef TOLUA_RELEASE
  5857. tolua_lerror:
  5858. tolua_error(tolua_S,"#ferror in function 'smoothTiers'.",&tolua_err);
  5859. return 0;
  5860. #endif
  5861. }
  5862. #endif //#ifndef TOLUA_DISABLE
  5863.  
  5864. /* method: x of class CKernel */
  5865. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_x00
  5866. static int tolua_bind_anl_CKernel_x00(lua_State* tolua_S)
  5867. {
  5868. #ifndef TOLUA_RELEASE
  5869. tolua_Error tolua_err;
  5870. if (
  5871. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  5872. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5873. )
  5874. goto tolua_lerror;
  5875. else
  5876. #endif
  5877. {
  5878. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  5879. #ifndef TOLUA_RELEASE
  5880. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'x'", NULL);
  5881. #endif
  5882. {
  5883. CInstructionIndex tolua_ret = (CInstructionIndex) self->x();
  5884. {
  5885. #ifdef __cplusplus
  5886. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  5887. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5888. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5889. #else
  5890. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  5891. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5892. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5893. #endif
  5894. }
  5895. }
  5896. }
  5897. return 1;
  5898. #ifndef TOLUA_RELEASE
  5899. tolua_lerror:
  5900. tolua_error(tolua_S,"#ferror in function 'x'.",&tolua_err);
  5901. return 0;
  5902. #endif
  5903. }
  5904. #endif //#ifndef TOLUA_DISABLE
  5905.  
  5906. /* method: y of class CKernel */
  5907. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_y00
  5908. static int tolua_bind_anl_CKernel_y00(lua_State* tolua_S)
  5909. {
  5910. #ifndef TOLUA_RELEASE
  5911. tolua_Error tolua_err;
  5912. if (
  5913. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  5914. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5915. )
  5916. goto tolua_lerror;
  5917. else
  5918. #endif
  5919. {
  5920. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  5921. #ifndef TOLUA_RELEASE
  5922. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'y'", NULL);
  5923. #endif
  5924. {
  5925. CInstructionIndex tolua_ret = (CInstructionIndex) self->y();
  5926. {
  5927. #ifdef __cplusplus
  5928. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  5929. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5930. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5931. #else
  5932. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  5933. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5934. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5935. #endif
  5936. }
  5937. }
  5938. }
  5939. return 1;
  5940. #ifndef TOLUA_RELEASE
  5941. tolua_lerror:
  5942. tolua_error(tolua_S,"#ferror in function 'y'.",&tolua_err);
  5943. return 0;
  5944. #endif
  5945. }
  5946. #endif //#ifndef TOLUA_DISABLE
  5947.  
  5948. /* method: z of class CKernel */
  5949. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_z00
  5950. static int tolua_bind_anl_CKernel_z00(lua_State* tolua_S)
  5951. {
  5952. #ifndef TOLUA_RELEASE
  5953. tolua_Error tolua_err;
  5954. if (
  5955. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  5956. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5957. )
  5958. goto tolua_lerror;
  5959. else
  5960. #endif
  5961. {
  5962. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  5963. #ifndef TOLUA_RELEASE
  5964. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'z'", NULL);
  5965. #endif
  5966. {
  5967. CInstructionIndex tolua_ret = (CInstructionIndex) self->z();
  5968. {
  5969. #ifdef __cplusplus
  5970. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  5971. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5972. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5973. #else
  5974. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  5975. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  5976. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  5977. #endif
  5978. }
  5979. }
  5980. }
  5981. return 1;
  5982. #ifndef TOLUA_RELEASE
  5983. tolua_lerror:
  5984. tolua_error(tolua_S,"#ferror in function 'z'.",&tolua_err);
  5985. return 0;
  5986. #endif
  5987. }
  5988. #endif //#ifndef TOLUA_DISABLE
  5989.  
  5990. /* method: w of class CKernel */
  5991. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_w00
  5992. static int tolua_bind_anl_CKernel_w00(lua_State* tolua_S)
  5993. {
  5994. #ifndef TOLUA_RELEASE
  5995. tolua_Error tolua_err;
  5996. if (
  5997. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  5998. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5999. )
  6000. goto tolua_lerror;
  6001. else
  6002. #endif
  6003. {
  6004. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  6005. #ifndef TOLUA_RELEASE
  6006. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'w'", NULL);
  6007. #endif
  6008. {
  6009. CInstructionIndex tolua_ret = (CInstructionIndex) self->w();
  6010. {
  6011. #ifdef __cplusplus
  6012. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  6013. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6014. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6015. #else
  6016. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  6017. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6018. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6019. #endif
  6020. }
  6021. }
  6022. }
  6023. return 1;
  6024. #ifndef TOLUA_RELEASE
  6025. tolua_lerror:
  6026. tolua_error(tolua_S,"#ferror in function 'w'.",&tolua_err);
  6027. return 0;
  6028. #endif
  6029. }
  6030. #endif //#ifndef TOLUA_DISABLE
  6031.  
  6032. /* method: u of class CKernel */
  6033. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_u00
  6034. static int tolua_bind_anl_CKernel_u00(lua_State* tolua_S)
  6035. {
  6036. #ifndef TOLUA_RELEASE
  6037. tolua_Error tolua_err;
  6038. if (
  6039. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  6040. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6041. )
  6042. goto tolua_lerror;
  6043. else
  6044. #endif
  6045. {
  6046. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  6047. #ifndef TOLUA_RELEASE
  6048. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'u'", NULL);
  6049. #endif
  6050. {
  6051. CInstructionIndex tolua_ret = (CInstructionIndex) self->u();
  6052. {
  6053. #ifdef __cplusplus
  6054. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  6055. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6056. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6057. #else
  6058. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  6059. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6060. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6061. #endif
  6062. }
  6063. }
  6064. }
  6065. return 1;
  6066. #ifndef TOLUA_RELEASE
  6067. tolua_lerror:
  6068. tolua_error(tolua_S,"#ferror in function 'u'.",&tolua_err);
  6069. return 0;
  6070. #endif
  6071. }
  6072. #endif //#ifndef TOLUA_DISABLE
  6073.  
  6074. /* method: v of class CKernel */
  6075. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_v00
  6076. static int tolua_bind_anl_CKernel_v00(lua_State* tolua_S)
  6077. {
  6078. #ifndef TOLUA_RELEASE
  6079. tolua_Error tolua_err;
  6080. if (
  6081. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  6082. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6083. )
  6084. goto tolua_lerror;
  6085. else
  6086. #endif
  6087. {
  6088. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  6089. #ifndef TOLUA_RELEASE
  6090. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'v'", NULL);
  6091. #endif
  6092. {
  6093. CInstructionIndex tolua_ret = (CInstructionIndex) self->v();
  6094. {
  6095. #ifdef __cplusplus
  6096. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  6097. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6098. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6099. #else
  6100. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  6101. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6102. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6103. #endif
  6104. }
  6105. }
  6106. }
  6107. return 1;
  6108. #ifndef TOLUA_RELEASE
  6109. tolua_lerror:
  6110. tolua_error(tolua_S,"#ferror in function 'v'.",&tolua_err);
  6111. return 0;
  6112. #endif
  6113. }
  6114. #endif //#ifndef TOLUA_DISABLE
  6115.  
  6116. /* method: radial of class CKernel */
  6117. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_radial00
  6118. static int tolua_bind_anl_CKernel_radial00(lua_State* tolua_S)
  6119. {
  6120. #ifndef TOLUA_RELEASE
  6121. tolua_Error tolua_err;
  6122. if (
  6123. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  6124. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6125. )
  6126. goto tolua_lerror;
  6127. else
  6128. #endif
  6129. {
  6130. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  6131. #ifndef TOLUA_RELEASE
  6132. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'radial'", NULL);
  6133. #endif
  6134. {
  6135. CInstructionIndex tolua_ret = (CInstructionIndex) self->radial();
  6136. {
  6137. #ifdef __cplusplus
  6138. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  6139. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6140. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6141. #else
  6142. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  6143. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6144. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6145. #endif
  6146. }
  6147. }
  6148. }
  6149. return 1;
  6150. #ifndef TOLUA_RELEASE
  6151. tolua_lerror:
  6152. tolua_error(tolua_S,"#ferror in function 'radial'.",&tolua_err);
  6153. return 0;
  6154. #endif
  6155. }
  6156. #endif //#ifndef TOLUA_DISABLE
  6157.  
  6158. /* method: hexTile of class CKernel */
  6159. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_hexTile00
  6160. static int tolua_bind_anl_CKernel_hexTile00(lua_State* tolua_S)
  6161. {
  6162. #ifndef TOLUA_RELEASE
  6163. tolua_Error tolua_err;
  6164. if (
  6165. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  6166. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6167. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6168. )
  6169. goto tolua_lerror;
  6170. else
  6171. #endif
  6172. {
  6173. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  6174. unsigned int seed = ((unsigned int) tolua_tonumber(tolua_S,2,0));
  6175. #ifndef TOLUA_RELEASE
  6176. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'hexTile'", NULL);
  6177. #endif
  6178. {
  6179. CInstructionIndex tolua_ret = (CInstructionIndex) self->hexTile(seed);
  6180. {
  6181. #ifdef __cplusplus
  6182. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  6183. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6184. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6185. #else
  6186. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  6187. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6188. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6189. #endif
  6190. }
  6191. }
  6192. }
  6193. return 1;
  6194. #ifndef TOLUA_RELEASE
  6195. tolua_lerror:
  6196. tolua_error(tolua_S,"#ferror in function 'hexTile'.",&tolua_err);
  6197. return 0;
  6198. #endif
  6199. }
  6200. #endif //#ifndef TOLUA_DISABLE
  6201.  
  6202. /* method: hexBump of class CKernel */
  6203. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_hexBump00
  6204. static int tolua_bind_anl_CKernel_hexBump00(lua_State* tolua_S)
  6205. {
  6206. #ifndef TOLUA_RELEASE
  6207. tolua_Error tolua_err;
  6208. if (
  6209. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  6210. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6211. )
  6212. goto tolua_lerror;
  6213. else
  6214. #endif
  6215. {
  6216. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  6217. #ifndef TOLUA_RELEASE
  6218. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'hexBump'", NULL);
  6219. #endif
  6220. {
  6221. CInstructionIndex tolua_ret = (CInstructionIndex) self->hexBump();
  6222. {
  6223. #ifdef __cplusplus
  6224. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  6225. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6226. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6227. #else
  6228. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  6229. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6230. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6231. #endif
  6232. }
  6233. }
  6234. }
  6235. return 1;
  6236. #ifndef TOLUA_RELEASE
  6237. tolua_lerror:
  6238. tolua_error(tolua_S,"#ferror in function 'hexBump'.",&tolua_err);
  6239. return 0;
  6240. #endif
  6241. }
  6242. #endif //#ifndef TOLUA_DISABLE
  6243.  
  6244. /* method: combineRGBA of class CKernel */
  6245. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_combineRGBA00
  6246. static int tolua_bind_anl_CKernel_combineRGBA00(lua_State* tolua_S)
  6247. {
  6248. #ifndef TOLUA_RELEASE
  6249. tolua_Error tolua_err;
  6250. if (
  6251. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  6252. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  6253. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  6254. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"CInstructionIndex",0,&tolua_err)) ||
  6255. (tolua_isvaluenil(tolua_S,5,&tolua_err) || !tolua_isusertype(tolua_S,5,"CInstructionIndex",0,&tolua_err)) ||
  6256. !tolua_isnoobj(tolua_S,6,&tolua_err)
  6257. )
  6258. goto tolua_lerror;
  6259. else
  6260. #endif
  6261. {
  6262. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  6263. CInstructionIndex r = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  6264. CInstructionIndex g = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  6265. CInstructionIndex b = *((CInstructionIndex*) tolua_tousertype(tolua_S,4,0));
  6266. CInstructionIndex a = *((CInstructionIndex*) tolua_tousertype(tolua_S,5,0));
  6267. #ifndef TOLUA_RELEASE
  6268. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'combineRGBA'", NULL);
  6269. #endif
  6270. {
  6271. CInstructionIndex tolua_ret = (CInstructionIndex) self->combineRGBA(r,g,b,a);
  6272. {
  6273. #ifdef __cplusplus
  6274. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  6275. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6276. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6277. #else
  6278. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  6279. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6280. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6281. #endif
  6282. }
  6283. }
  6284. }
  6285. return 1;
  6286. #ifndef TOLUA_RELEASE
  6287. tolua_lerror:
  6288. tolua_error(tolua_S,"#ferror in function 'combineRGBA'.",&tolua_err);
  6289. return 0;
  6290. #endif
  6291. }
  6292. #endif //#ifndef TOLUA_DISABLE
  6293.  
  6294. /* method: scaleOffset of class CKernel */
  6295. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_scaleOffset00
  6296. static int tolua_bind_anl_CKernel_scaleOffset00(lua_State* tolua_S)
  6297. {
  6298. #ifndef TOLUA_RELEASE
  6299. tolua_Error tolua_err;
  6300. if (
  6301. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  6302. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CInstructionIndex",0,&tolua_err)) ||
  6303. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  6304. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  6305. !tolua_isnoobj(tolua_S,5,&tolua_err)
  6306. )
  6307. goto tolua_lerror;
  6308. else
  6309. #endif
  6310. {
  6311. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  6312. CInstructionIndex src = *((CInstructionIndex*) tolua_tousertype(tolua_S,2,0));
  6313. double scale = ((double) tolua_tonumber(tolua_S,3,0));
  6314. double offset = ((double) tolua_tonumber(tolua_S,4,0));
  6315. #ifndef TOLUA_RELEASE
  6316. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'scaleOffset'", NULL);
  6317. #endif
  6318. {
  6319. CInstructionIndex tolua_ret = (CInstructionIndex) self->scaleOffset(src,scale,offset);
  6320. {
  6321. #ifdef __cplusplus
  6322. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  6323. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6324. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6325. #else
  6326. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  6327. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6328. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6329. #endif
  6330. }
  6331. }
  6332. }
  6333. return 1;
  6334. #ifndef TOLUA_RELEASE
  6335. tolua_lerror:
  6336. tolua_error(tolua_S,"#ferror in function 'scaleOffset'.",&tolua_err);
  6337. return 0;
  6338. #endif
  6339. }
  6340. #endif //#ifndef TOLUA_DISABLE
  6341.  
  6342. /* method: simpleFractalLayer of class CKernel */
  6343. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_simpleFractalLayer00
  6344. static int tolua_bind_anl_CKernel_simpleFractalLayer00(lua_State* tolua_S)
  6345. {
  6346. #ifndef TOLUA_RELEASE
  6347. tolua_Error tolua_err;
  6348. if (
  6349. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  6350. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6351. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  6352. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  6353. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  6354. !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
  6355. !tolua_isboolean(tolua_S,7,1,&tolua_err) ||
  6356. !tolua_isnumber(tolua_S,8,1,&tolua_err) ||
  6357. !tolua_isnumber(tolua_S,9,1,&tolua_err) ||
  6358. !tolua_isnumber(tolua_S,10,1,&tolua_err) ||
  6359. !tolua_isnumber(tolua_S,11,1,&tolua_err) ||
  6360. !tolua_isnoobj(tolua_S,12,&tolua_err)
  6361. )
  6362. goto tolua_lerror;
  6363. else
  6364. #endif
  6365. {
  6366. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  6367. unsigned int basistype = ((unsigned int) tolua_tonumber(tolua_S,2,0));
  6368. CInstructionIndex interptypeindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  6369. double layerscale = ((double) tolua_tonumber(tolua_S,4,0));
  6370. double layerfreq = ((double) tolua_tonumber(tolua_S,5,0));
  6371. unsigned int seed = ((unsigned int) tolua_tonumber(tolua_S,6,0));
  6372. bool rot = ((bool) tolua_toboolean(tolua_S,7,true));
  6373. double angle = ((double) tolua_tonumber(tolua_S,8,0.5));
  6374. double ax = ((double) tolua_tonumber(tolua_S,9,0));
  6375. double ay = ((double) tolua_tonumber(tolua_S,10,0));
  6376. double az = ((double) tolua_tonumber(tolua_S,11,1));
  6377. #ifndef TOLUA_RELEASE
  6378. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'simpleFractalLayer'", NULL);
  6379. #endif
  6380. {
  6381. CInstructionIndex tolua_ret = (CInstructionIndex) self->simpleFractalLayer(basistype,interptypeindex,layerscale,layerfreq,seed,rot,angle,ax,ay,az);
  6382. {
  6383. #ifdef __cplusplus
  6384. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  6385. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6386. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6387. #else
  6388. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  6389. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6390. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6391. #endif
  6392. }
  6393. }
  6394. }
  6395. return 1;
  6396. #ifndef TOLUA_RELEASE
  6397. tolua_lerror:
  6398. tolua_error(tolua_S,"#ferror in function 'simpleFractalLayer'.",&tolua_err);
  6399. return 0;
  6400. #endif
  6401. }
  6402. #endif //#ifndef TOLUA_DISABLE
  6403.  
  6404. /* method: simpleRidgedLayer of class CKernel */
  6405. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_simpleRidgedLayer00
  6406. static int tolua_bind_anl_CKernel_simpleRidgedLayer00(lua_State* tolua_S)
  6407. {
  6408. #ifndef TOLUA_RELEASE
  6409. tolua_Error tolua_err;
  6410. if (
  6411. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  6412. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6413. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  6414. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  6415. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  6416. !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
  6417. !tolua_isboolean(tolua_S,7,1,&tolua_err) ||
  6418. !tolua_isnumber(tolua_S,8,1,&tolua_err) ||
  6419. !tolua_isnumber(tolua_S,9,1,&tolua_err) ||
  6420. !tolua_isnumber(tolua_S,10,1,&tolua_err) ||
  6421. !tolua_isnumber(tolua_S,11,1,&tolua_err) ||
  6422. !tolua_isnoobj(tolua_S,12,&tolua_err)
  6423. )
  6424. goto tolua_lerror;
  6425. else
  6426. #endif
  6427. {
  6428. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  6429. unsigned int basistype = ((unsigned int) tolua_tonumber(tolua_S,2,0));
  6430. CInstructionIndex interptypeindex = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  6431. double layerscale = ((double) tolua_tonumber(tolua_S,4,0));
  6432. double layerfreq = ((double) tolua_tonumber(tolua_S,5,0));
  6433. unsigned int seed = ((unsigned int) tolua_tonumber(tolua_S,6,0));
  6434. bool rot = ((bool) tolua_toboolean(tolua_S,7,true));
  6435. double angle = ((double) tolua_tonumber(tolua_S,8,0.5));
  6436. double ax = ((double) tolua_tonumber(tolua_S,9,0));
  6437. double ay = ((double) tolua_tonumber(tolua_S,10,0));
  6438. double az = ((double) tolua_tonumber(tolua_S,11,1));
  6439. #ifndef TOLUA_RELEASE
  6440. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'simpleRidgedLayer'", NULL);
  6441. #endif
  6442. {
  6443. CInstructionIndex tolua_ret = (CInstructionIndex) self->simpleRidgedLayer(basistype,interptypeindex,layerscale,layerfreq,seed,rot,angle,ax,ay,az);
  6444. {
  6445. #ifdef __cplusplus
  6446. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  6447. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6448. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6449. #else
  6450. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  6451. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6452. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6453. #endif
  6454. }
  6455. }
  6456. }
  6457. return 1;
  6458. #ifndef TOLUA_RELEASE
  6459. tolua_lerror:
  6460. tolua_error(tolua_S,"#ferror in function 'simpleRidgedLayer'.",&tolua_err);
  6461. return 0;
  6462. #endif
  6463. }
  6464. #endif //#ifndef TOLUA_DISABLE
  6465.  
  6466. /* method: simplefBm of class CKernel */
  6467. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_simplefBm00
  6468. static int tolua_bind_anl_CKernel_simplefBm00(lua_State* tolua_S)
  6469. {
  6470. #ifndef TOLUA_RELEASE
  6471. tolua_Error tolua_err;
  6472. if (
  6473. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  6474. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6475. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  6476. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  6477. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  6478. !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
  6479. !tolua_isboolean(tolua_S,7,1,&tolua_err) ||
  6480. !tolua_isnoobj(tolua_S,8,&tolua_err)
  6481. )
  6482. goto tolua_lerror;
  6483. else
  6484. #endif
  6485. {
  6486. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  6487. unsigned int basistype = ((unsigned int) tolua_tonumber(tolua_S,2,0));
  6488. unsigned int interptype = ((unsigned int) tolua_tonumber(tolua_S,3,0));
  6489. unsigned int numoctaves = ((unsigned int) tolua_tonumber(tolua_S,4,0));
  6490. double frequency = ((double) tolua_tonumber(tolua_S,5,0));
  6491. unsigned int seed = ((unsigned int) tolua_tonumber(tolua_S,6,0));
  6492. bool rot = ((bool) tolua_toboolean(tolua_S,7,true));
  6493. #ifndef TOLUA_RELEASE
  6494. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'simplefBm'", NULL);
  6495. #endif
  6496. {
  6497. CInstructionIndex tolua_ret = (CInstructionIndex) self->simplefBm(basistype,interptype,numoctaves,frequency,seed,rot);
  6498. {
  6499. #ifdef __cplusplus
  6500. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  6501. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6502. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6503. #else
  6504. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  6505. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6506. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6507. #endif
  6508. }
  6509. }
  6510. }
  6511. return 1;
  6512. #ifndef TOLUA_RELEASE
  6513. tolua_lerror:
  6514. tolua_error(tolua_S,"#ferror in function 'simplefBm'.",&tolua_err);
  6515. return 0;
  6516. #endif
  6517. }
  6518. #endif //#ifndef TOLUA_DISABLE
  6519.  
  6520. /* method: simpleRidgedMultifractal of class CKernel */
  6521. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_simpleRidgedMultifractal00
  6522. static int tolua_bind_anl_CKernel_simpleRidgedMultifractal00(lua_State* tolua_S)
  6523. {
  6524. #ifndef TOLUA_RELEASE
  6525. tolua_Error tolua_err;
  6526. if (
  6527. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  6528. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6529. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  6530. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  6531. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  6532. !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
  6533. !tolua_isboolean(tolua_S,7,1,&tolua_err) ||
  6534. !tolua_isnoobj(tolua_S,8,&tolua_err)
  6535. )
  6536. goto tolua_lerror;
  6537. else
  6538. #endif
  6539. {
  6540. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  6541. unsigned int basistype = ((unsigned int) tolua_tonumber(tolua_S,2,0));
  6542. unsigned int interptype = ((unsigned int) tolua_tonumber(tolua_S,3,0));
  6543. unsigned int numoctaves = ((unsigned int) tolua_tonumber(tolua_S,4,0));
  6544. double frequency = ((double) tolua_tonumber(tolua_S,5,0));
  6545. unsigned int seed = ((unsigned int) tolua_tonumber(tolua_S,6,0));
  6546. bool rot = ((bool) tolua_toboolean(tolua_S,7,true));
  6547. #ifndef TOLUA_RELEASE
  6548. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'simpleRidgedMultifractal'", NULL);
  6549. #endif
  6550. {
  6551. CInstructionIndex tolua_ret = (CInstructionIndex) self->simpleRidgedMultifractal(basistype,interptype,numoctaves,frequency,seed,rot);
  6552. {
  6553. #ifdef __cplusplus
  6554. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  6555. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6556. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6557. #else
  6558. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  6559. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6560. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6561. #endif
  6562. }
  6563. }
  6564. }
  6565. return 1;
  6566. #ifndef TOLUA_RELEASE
  6567. tolua_lerror:
  6568. tolua_error(tolua_S,"#ferror in function 'simpleRidgedMultifractal'.",&tolua_err);
  6569. return 0;
  6570. #endif
  6571. }
  6572. #endif //#ifndef TOLUA_DISABLE
  6573.  
  6574. /* method: getKernel of class CKernel */
  6575. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_getKernel00
  6576. static int tolua_bind_anl_CKernel_getKernel00(lua_State* tolua_S)
  6577. {
  6578. #ifndef TOLUA_RELEASE
  6579. tolua_Error tolua_err;
  6580. if (
  6581. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  6582. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6583. )
  6584. goto tolua_lerror;
  6585. else
  6586. #endif
  6587. {
  6588. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  6589. #ifndef TOLUA_RELEASE
  6590. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getKernel'", NULL);
  6591. #endif
  6592. {
  6593. InstructionListType* tolua_ret = (InstructionListType*) self->getKernel();
  6594. tolua_pushusertype(tolua_S,(void*)tolua_ret,"InstructionListType");
  6595. }
  6596. }
  6597. return 1;
  6598. #ifndef TOLUA_RELEASE
  6599. tolua_lerror:
  6600. tolua_error(tolua_S,"#ferror in function 'getKernel'.",&tolua_err);
  6601. return 0;
  6602. #endif
  6603. }
  6604. #endif //#ifndef TOLUA_DISABLE
  6605.  
  6606. /* method: lastIndex of class CKernel */
  6607. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_lastIndex00
  6608. static int tolua_bind_anl_CKernel_lastIndex00(lua_State* tolua_S)
  6609. {
  6610. #ifndef TOLUA_RELEASE
  6611. tolua_Error tolua_err;
  6612. if (
  6613. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  6614. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6615. )
  6616. goto tolua_lerror;
  6617. else
  6618. #endif
  6619. {
  6620. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  6621. #ifndef TOLUA_RELEASE
  6622. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'lastIndex'", NULL);
  6623. #endif
  6624. {
  6625. CInstructionIndex tolua_ret = (CInstructionIndex) self->lastIndex();
  6626. {
  6627. #ifdef __cplusplus
  6628. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  6629. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6630. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6631. #else
  6632. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  6633. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6634. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6635. #endif
  6636. }
  6637. }
  6638. }
  6639. return 1;
  6640. #ifndef TOLUA_RELEASE
  6641. tolua_lerror:
  6642. tolua_error(tolua_S,"#ferror in function 'lastIndex'.",&tolua_err);
  6643. return 0;
  6644. #endif
  6645. }
  6646. #endif //#ifndef TOLUA_DISABLE
  6647.  
  6648. /* method: nextIndex of class CKernel */
  6649. #ifndef TOLUA_DISABLE_tolua_bind_anl_CKernel_nextIndex00
  6650. static int tolua_bind_anl_CKernel_nextIndex00(lua_State* tolua_S)
  6651. {
  6652. #ifndef TOLUA_RELEASE
  6653. tolua_Error tolua_err;
  6654. if (
  6655. !tolua_isusertype(tolua_S,1,"CKernel",0,&tolua_err) ||
  6656. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6657. )
  6658. goto tolua_lerror;
  6659. else
  6660. #endif
  6661. {
  6662. CKernel* self = (CKernel*) tolua_tousertype(tolua_S,1,0);
  6663. #ifndef TOLUA_RELEASE
  6664. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'nextIndex'", NULL);
  6665. #endif
  6666. {
  6667. CInstructionIndex tolua_ret = (CInstructionIndex) self->nextIndex();
  6668. {
  6669. #ifdef __cplusplus
  6670. void* tolua_obj = Mtolua_new((CInstructionIndex)(tolua_ret));
  6671. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6672. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6673. #else
  6674. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CInstructionIndex));
  6675. tolua_pushusertype(tolua_S,tolua_obj,"CInstructionIndex");
  6676. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6677. #endif
  6678. }
  6679. }
  6680. }
  6681. return 1;
  6682. #ifndef TOLUA_RELEASE
  6683. tolua_lerror:
  6684. tolua_error(tolua_S,"#ferror in function 'nextIndex'.",&tolua_err);
  6685. return 0;
  6686. #endif
  6687. }
  6688. #endif //#ifndef TOLUA_DISABLE
  6689.  
  6690. /* method: new of class SRGBA */
  6691. #ifndef TOLUA_DISABLE_tolua_bind_anl_SRGBA_new00
  6692. static int tolua_bind_anl_SRGBA_new00(lua_State* tolua_S)
  6693. {
  6694. #ifndef TOLUA_RELEASE
  6695. tolua_Error tolua_err;
  6696. if (
  6697. !tolua_isusertable(tolua_S,1,"SRGBA",0,&tolua_err) ||
  6698. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6699. )
  6700. goto tolua_lerror;
  6701. else
  6702. #endif
  6703. {
  6704. {
  6705. SRGBA* tolua_ret = (SRGBA*) Mtolua_new((SRGBA)());
  6706. tolua_pushusertype(tolua_S,(void*)tolua_ret,"SRGBA");
  6707. }
  6708. }
  6709. return 1;
  6710. #ifndef TOLUA_RELEASE
  6711. tolua_lerror:
  6712. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  6713. return 0;
  6714. #endif
  6715. }
  6716. #endif //#ifndef TOLUA_DISABLE
  6717.  
  6718. /* method: new_local of class SRGBA */
  6719. #ifndef TOLUA_DISABLE_tolua_bind_anl_SRGBA_new00_local
  6720. static int tolua_bind_anl_SRGBA_new00_local(lua_State* tolua_S)
  6721. {
  6722. #ifndef TOLUA_RELEASE
  6723. tolua_Error tolua_err;
  6724. if (
  6725. !tolua_isusertable(tolua_S,1,"SRGBA",0,&tolua_err) ||
  6726. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6727. )
  6728. goto tolua_lerror;
  6729. else
  6730. #endif
  6731. {
  6732. {
  6733. SRGBA* tolua_ret = (SRGBA*) Mtolua_new((SRGBA)());
  6734. tolua_pushusertype(tolua_S,(void*)tolua_ret,"SRGBA");
  6735. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6736. }
  6737. }
  6738. return 1;
  6739. #ifndef TOLUA_RELEASE
  6740. tolua_lerror:
  6741. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  6742. return 0;
  6743. #endif
  6744. }
  6745. #endif //#ifndef TOLUA_DISABLE
  6746.  
  6747. /* method: new of class SRGBA */
  6748. #ifndef TOLUA_DISABLE_tolua_bind_anl_SRGBA_new01
  6749. static int tolua_bind_anl_SRGBA_new01(lua_State* tolua_S)
  6750. {
  6751. tolua_Error tolua_err;
  6752. if (
  6753. !tolua_isusertable(tolua_S,1,"SRGBA",0,&tolua_err) ||
  6754. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6755. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6756. )
  6757. goto tolua_lerror;
  6758. else
  6759. {
  6760. int a = ((int) tolua_tonumber(tolua_S,2,0));
  6761. {
  6762. SRGBA* tolua_ret = (SRGBA*) Mtolua_new((SRGBA)(a));
  6763. tolua_pushusertype(tolua_S,(void*)tolua_ret,"SRGBA");
  6764. }
  6765. }
  6766. return 1;
  6767. tolua_lerror:
  6768. return tolua_bind_anl_SRGBA_new00(tolua_S);
  6769. }
  6770. #endif //#ifndef TOLUA_DISABLE
  6771.  
  6772. /* method: new_local of class SRGBA */
  6773. #ifndef TOLUA_DISABLE_tolua_bind_anl_SRGBA_new01_local
  6774. static int tolua_bind_anl_SRGBA_new01_local(lua_State* tolua_S)
  6775. {
  6776. tolua_Error tolua_err;
  6777. if (
  6778. !tolua_isusertable(tolua_S,1,"SRGBA",0,&tolua_err) ||
  6779. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6780. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6781. )
  6782. goto tolua_lerror;
  6783. else
  6784. {
  6785. int a = ((int) tolua_tonumber(tolua_S,2,0));
  6786. {
  6787. SRGBA* tolua_ret = (SRGBA*) Mtolua_new((SRGBA)(a));
  6788. tolua_pushusertype(tolua_S,(void*)tolua_ret,"SRGBA");
  6789. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6790. }
  6791. }
  6792. return 1;
  6793. tolua_lerror:
  6794. return tolua_bind_anl_SRGBA_new00_local(tolua_S);
  6795. }
  6796. #endif //#ifndef TOLUA_DISABLE
  6797.  
  6798. /* method: new of class SRGBA */
  6799. #ifndef TOLUA_DISABLE_tolua_bind_anl_SRGBA_new02
  6800. static int tolua_bind_anl_SRGBA_new02(lua_State* tolua_S)
  6801. {
  6802. tolua_Error tolua_err;
  6803. if (
  6804. !tolua_isusertable(tolua_S,1,"SRGBA",0,&tolua_err) ||
  6805. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const SRGBA",0,&tolua_err)) ||
  6806. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6807. )
  6808. goto tolua_lerror;
  6809. else
  6810. {
  6811. const SRGBA* tvec = ((const SRGBA*) tolua_tousertype(tolua_S,2,0));
  6812. {
  6813. SRGBA* tolua_ret = (SRGBA*) Mtolua_new((SRGBA)(*tvec));
  6814. tolua_pushusertype(tolua_S,(void*)tolua_ret,"SRGBA");
  6815. }
  6816. }
  6817. return 1;
  6818. tolua_lerror:
  6819. return tolua_bind_anl_SRGBA_new01(tolua_S);
  6820. }
  6821. #endif //#ifndef TOLUA_DISABLE
  6822.  
  6823. /* method: new_local of class SRGBA */
  6824. #ifndef TOLUA_DISABLE_tolua_bind_anl_SRGBA_new02_local
  6825. static int tolua_bind_anl_SRGBA_new02_local(lua_State* tolua_S)
  6826. {
  6827. tolua_Error tolua_err;
  6828. if (
  6829. !tolua_isusertable(tolua_S,1,"SRGBA",0,&tolua_err) ||
  6830. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const SRGBA",0,&tolua_err)) ||
  6831. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6832. )
  6833. goto tolua_lerror;
  6834. else
  6835. {
  6836. const SRGBA* tvec = ((const SRGBA*) tolua_tousertype(tolua_S,2,0));
  6837. {
  6838. SRGBA* tolua_ret = (SRGBA*) Mtolua_new((SRGBA)(*tvec));
  6839. tolua_pushusertype(tolua_S,(void*)tolua_ret,"SRGBA");
  6840. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6841. }
  6842. }
  6843. return 1;
  6844. tolua_lerror:
  6845. return tolua_bind_anl_SRGBA_new01_local(tolua_S);
  6846. }
  6847. #endif //#ifndef TOLUA_DISABLE
  6848.  
  6849. /* method: new of class SRGBA */
  6850. #ifndef TOLUA_DISABLE_tolua_bind_anl_SRGBA_new03
  6851. static int tolua_bind_anl_SRGBA_new03(lua_State* tolua_S)
  6852. {
  6853. tolua_Error tolua_err;
  6854. if (
  6855. !tolua_isusertable(tolua_S,1,"SRGBA",0,&tolua_err) ||
  6856. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6857. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  6858. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  6859. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  6860. !tolua_isnoobj(tolua_S,6,&tolua_err)
  6861. )
  6862. goto tolua_lerror;
  6863. else
  6864. {
  6865. const float t1 = ((const float) tolua_tonumber(tolua_S,2,0));
  6866. const float t2 = ((const float) tolua_tonumber(tolua_S,3,0));
  6867. const float t3 = ((const float) tolua_tonumber(tolua_S,4,0));
  6868. const float t4 = ((const float) tolua_tonumber(tolua_S,5,0));
  6869. {
  6870. SRGBA* tolua_ret = (SRGBA*) Mtolua_new((SRGBA)(t1,t2,t3,t4));
  6871. tolua_pushusertype(tolua_S,(void*)tolua_ret,"SRGBA");
  6872. }
  6873. }
  6874. return 1;
  6875. tolua_lerror:
  6876. return tolua_bind_anl_SRGBA_new02(tolua_S);
  6877. }
  6878. #endif //#ifndef TOLUA_DISABLE
  6879.  
  6880. /* method: new_local of class SRGBA */
  6881. #ifndef TOLUA_DISABLE_tolua_bind_anl_SRGBA_new03_local
  6882. static int tolua_bind_anl_SRGBA_new03_local(lua_State* tolua_S)
  6883. {
  6884. tolua_Error tolua_err;
  6885. if (
  6886. !tolua_isusertable(tolua_S,1,"SRGBA",0,&tolua_err) ||
  6887. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6888. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  6889. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  6890. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  6891. !tolua_isnoobj(tolua_S,6,&tolua_err)
  6892. )
  6893. goto tolua_lerror;
  6894. else
  6895. {
  6896. const float t1 = ((const float) tolua_tonumber(tolua_S,2,0));
  6897. const float t2 = ((const float) tolua_tonumber(tolua_S,3,0));
  6898. const float t3 = ((const float) tolua_tonumber(tolua_S,4,0));
  6899. const float t4 = ((const float) tolua_tonumber(tolua_S,5,0));
  6900. {
  6901. SRGBA* tolua_ret = (SRGBA*) Mtolua_new((SRGBA)(t1,t2,t3,t4));
  6902. tolua_pushusertype(tolua_S,(void*)tolua_ret,"SRGBA");
  6903. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6904. }
  6905. }
  6906. return 1;
  6907. tolua_lerror:
  6908. return tolua_bind_anl_SRGBA_new02_local(tolua_S);
  6909. }
  6910. #endif //#ifndef TOLUA_DISABLE
  6911.  
  6912. /* method: delete of class SRGBA */
  6913. #ifndef TOLUA_DISABLE_tolua_bind_anl_SRGBA_delete00
  6914. static int tolua_bind_anl_SRGBA_delete00(lua_State* tolua_S)
  6915. {
  6916. #ifndef TOLUA_RELEASE
  6917. tolua_Error tolua_err;
  6918. if (
  6919. !tolua_isusertype(tolua_S,1,"SRGBA",0,&tolua_err) ||
  6920. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6921. )
  6922. goto tolua_lerror;
  6923. else
  6924. #endif
  6925. {
  6926. SRGBA* self = (SRGBA*) tolua_tousertype(tolua_S,1,0);
  6927. #ifndef TOLUA_RELEASE
  6928. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  6929. #endif
  6930. Mtolua_delete(self);
  6931. }
  6932. return 0;
  6933. #ifndef TOLUA_RELEASE
  6934. tolua_lerror:
  6935. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  6936. return 0;
  6937. #endif
  6938. }
  6939. #endif //#ifndef TOLUA_DISABLE
  6940.  
  6941. /* get function: r of class SRGBA */
  6942. #ifndef TOLUA_DISABLE_tolua_get_SRGBA_r
  6943. static int tolua_get_SRGBA_r(lua_State* tolua_S)
  6944. {
  6945. SRGBA* self = (SRGBA*) tolua_tousertype(tolua_S,1,0);
  6946. #ifndef TOLUA_RELEASE
  6947. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'r'",NULL);
  6948. #endif
  6949. tolua_pushnumber(tolua_S,(lua_Number)self->r);
  6950. return 1;
  6951. }
  6952. #endif //#ifndef TOLUA_DISABLE
  6953.  
  6954. /* set function: r of class SRGBA */
  6955. #ifndef TOLUA_DISABLE_tolua_set_SRGBA_r
  6956. static int tolua_set_SRGBA_r(lua_State* tolua_S)
  6957. {
  6958. SRGBA* self = (SRGBA*) tolua_tousertype(tolua_S,1,0);
  6959. #ifndef TOLUA_RELEASE
  6960. tolua_Error tolua_err;
  6961. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'r'",NULL);
  6962. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  6963. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  6964. #endif
  6965. self->r = ((float) tolua_tonumber(tolua_S,2,0))
  6966. ;
  6967. return 0;
  6968. }
  6969. #endif //#ifndef TOLUA_DISABLE
  6970.  
  6971. /* get function: g of class SRGBA */
  6972. #ifndef TOLUA_DISABLE_tolua_get_SRGBA_g
  6973. static int tolua_get_SRGBA_g(lua_State* tolua_S)
  6974. {
  6975. SRGBA* self = (SRGBA*) tolua_tousertype(tolua_S,1,0);
  6976. #ifndef TOLUA_RELEASE
  6977. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'g'",NULL);
  6978. #endif
  6979. tolua_pushnumber(tolua_S,(lua_Number)self->g);
  6980. return 1;
  6981. }
  6982. #endif //#ifndef TOLUA_DISABLE
  6983.  
  6984. /* set function: g of class SRGBA */
  6985. #ifndef TOLUA_DISABLE_tolua_set_SRGBA_g
  6986. static int tolua_set_SRGBA_g(lua_State* tolua_S)
  6987. {
  6988. SRGBA* self = (SRGBA*) tolua_tousertype(tolua_S,1,0);
  6989. #ifndef TOLUA_RELEASE
  6990. tolua_Error tolua_err;
  6991. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'g'",NULL);
  6992. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  6993. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  6994. #endif
  6995. self->g = ((float) tolua_tonumber(tolua_S,2,0))
  6996. ;
  6997. return 0;
  6998. }
  6999. #endif //#ifndef TOLUA_DISABLE
  7000.  
  7001. /* get function: b of class SRGBA */
  7002. #ifndef TOLUA_DISABLE_tolua_get_SRGBA_b
  7003. static int tolua_get_SRGBA_b(lua_State* tolua_S)
  7004. {
  7005. SRGBA* self = (SRGBA*) tolua_tousertype(tolua_S,1,0);
  7006. #ifndef TOLUA_RELEASE
  7007. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'b'",NULL);
  7008. #endif
  7009. tolua_pushnumber(tolua_S,(lua_Number)self->b);
  7010. return 1;
  7011. }
  7012. #endif //#ifndef TOLUA_DISABLE
  7013.  
  7014. /* set function: b of class SRGBA */
  7015. #ifndef TOLUA_DISABLE_tolua_set_SRGBA_b
  7016. static int tolua_set_SRGBA_b(lua_State* tolua_S)
  7017. {
  7018. SRGBA* self = (SRGBA*) tolua_tousertype(tolua_S,1,0);
  7019. #ifndef TOLUA_RELEASE
  7020. tolua_Error tolua_err;
  7021. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'b'",NULL);
  7022. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  7023. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  7024. #endif
  7025. self->b = ((float) tolua_tonumber(tolua_S,2,0))
  7026. ;
  7027. return 0;
  7028. }
  7029. #endif //#ifndef TOLUA_DISABLE
  7030.  
  7031. /* get function: a of class SRGBA */
  7032. #ifndef TOLUA_DISABLE_tolua_get_SRGBA_a
  7033. static int tolua_get_SRGBA_a(lua_State* tolua_S)
  7034. {
  7035. SRGBA* self = (SRGBA*) tolua_tousertype(tolua_S,1,0);
  7036. #ifndef TOLUA_RELEASE
  7037. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'a'",NULL);
  7038. #endif
  7039. tolua_pushnumber(tolua_S,(lua_Number)self->a);
  7040. return 1;
  7041. }
  7042. #endif //#ifndef TOLUA_DISABLE
  7043.  
  7044. /* set function: a of class SRGBA */
  7045. #ifndef TOLUA_DISABLE_tolua_set_SRGBA_a
  7046. static int tolua_set_SRGBA_a(lua_State* tolua_S)
  7047. {
  7048. SRGBA* self = (SRGBA*) tolua_tousertype(tolua_S,1,0);
  7049. #ifndef TOLUA_RELEASE
  7050. tolua_Error tolua_err;
  7051. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'a'",NULL);
  7052. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  7053. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  7054. #endif
  7055. self->a = ((float) tolua_tonumber(tolua_S,2,0))
  7056. ;
  7057. return 0;
  7058. }
  7059. #endif //#ifndef TOLUA_DISABLE
  7060.  
  7061. /* get function: outfloat_ of class SVMOutput */
  7062. #ifndef TOLUA_DISABLE_tolua_get_SVMOutput_outfloat_
  7063. static int tolua_get_SVMOutput_outfloat_(lua_State* tolua_S)
  7064. {
  7065. SVMOutput* self = (SVMOutput*) tolua_tousertype(tolua_S,1,0);
  7066. #ifndef TOLUA_RELEASE
  7067. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'outfloat_'",NULL);
  7068. #endif
  7069. tolua_pushnumber(tolua_S,(lua_Number)self->outfloat_);
  7070. return 1;
  7071. }
  7072. #endif //#ifndef TOLUA_DISABLE
  7073.  
  7074. /* set function: outfloat_ of class SVMOutput */
  7075. #ifndef TOLUA_DISABLE_tolua_set_SVMOutput_outfloat_
  7076. static int tolua_set_SVMOutput_outfloat_(lua_State* tolua_S)
  7077. {
  7078. SVMOutput* self = (SVMOutput*) tolua_tousertype(tolua_S,1,0);
  7079. #ifndef TOLUA_RELEASE
  7080. tolua_Error tolua_err;
  7081. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'outfloat_'",NULL);
  7082. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  7083. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  7084. #endif
  7085. self->outfloat_ = ((double) tolua_tonumber(tolua_S,2,0))
  7086. ;
  7087. return 0;
  7088. }
  7089. #endif //#ifndef TOLUA_DISABLE
  7090.  
  7091. /* get function: outrgba_ of class SVMOutput */
  7092. #ifndef TOLUA_DISABLE_tolua_get_SVMOutput_outrgba_
  7093. static int tolua_get_SVMOutput_outrgba_(lua_State* tolua_S)
  7094. {
  7095. SVMOutput* self = (SVMOutput*) tolua_tousertype(tolua_S,1,0);
  7096. #ifndef TOLUA_RELEASE
  7097. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'outrgba_'",NULL);
  7098. #endif
  7099. tolua_pushusertype(tolua_S,(void*)&self->outrgba_,"SRGBA");
  7100. return 1;
  7101. }
  7102. #endif //#ifndef TOLUA_DISABLE
  7103.  
  7104. /* set function: outrgba_ of class SVMOutput */
  7105. #ifndef TOLUA_DISABLE_tolua_set_SVMOutput_outrgba_
  7106. static int tolua_set_SVMOutput_outrgba_(lua_State* tolua_S)
  7107. {
  7108. SVMOutput* self = (SVMOutput*) tolua_tousertype(tolua_S,1,0);
  7109. #ifndef TOLUA_RELEASE
  7110. tolua_Error tolua_err;
  7111. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'outrgba_'",NULL);
  7112. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"SRGBA",0,&tolua_err)))
  7113. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  7114. #endif
  7115. self->outrgba_ = *((SRGBA*) tolua_tousertype(tolua_S,2,0))
  7116. ;
  7117. return 0;
  7118. }
  7119. #endif //#ifndef TOLUA_DISABLE
  7120.  
  7121. /* method: new of class SVMOutput */
  7122. #ifndef TOLUA_DISABLE_tolua_bind_anl_SVMOutput_new00
  7123. static int tolua_bind_anl_SVMOutput_new00(lua_State* tolua_S)
  7124. {
  7125. #ifndef TOLUA_RELEASE
  7126. tolua_Error tolua_err;
  7127. if (
  7128. !tolua_isusertable(tolua_S,1,"SVMOutput",0,&tolua_err) ||
  7129. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7130. )
  7131. goto tolua_lerror;
  7132. else
  7133. #endif
  7134. {
  7135. {
  7136. SVMOutput* tolua_ret = (SVMOutput*) Mtolua_new((SVMOutput)());
  7137. tolua_pushusertype(tolua_S,(void*)tolua_ret,"SVMOutput");
  7138. }
  7139. }
  7140. return 1;
  7141. #ifndef TOLUA_RELEASE
  7142. tolua_lerror:
  7143. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  7144. return 0;
  7145. #endif
  7146. }
  7147. #endif //#ifndef TOLUA_DISABLE
  7148.  
  7149. /* method: new_local of class SVMOutput */
  7150. #ifndef TOLUA_DISABLE_tolua_bind_anl_SVMOutput_new00_local
  7151. static int tolua_bind_anl_SVMOutput_new00_local(lua_State* tolua_S)
  7152. {
  7153. #ifndef TOLUA_RELEASE
  7154. tolua_Error tolua_err;
  7155. if (
  7156. !tolua_isusertable(tolua_S,1,"SVMOutput",0,&tolua_err) ||
  7157. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7158. )
  7159. goto tolua_lerror;
  7160. else
  7161. #endif
  7162. {
  7163. {
  7164. SVMOutput* tolua_ret = (SVMOutput*) Mtolua_new((SVMOutput)());
  7165. tolua_pushusertype(tolua_S,(void*)tolua_ret,"SVMOutput");
  7166. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  7167. }
  7168. }
  7169. return 1;
  7170. #ifndef TOLUA_RELEASE
  7171. tolua_lerror:
  7172. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  7173. return 0;
  7174. #endif
  7175. }
  7176. #endif //#ifndef TOLUA_DISABLE
  7177.  
  7178. /* method: delete of class SVMOutput */
  7179. #ifndef TOLUA_DISABLE_tolua_bind_anl_SVMOutput_delete00
  7180. static int tolua_bind_anl_SVMOutput_delete00(lua_State* tolua_S)
  7181. {
  7182. #ifndef TOLUA_RELEASE
  7183. tolua_Error tolua_err;
  7184. if (
  7185. !tolua_isusertype(tolua_S,1,"SVMOutput",0,&tolua_err) ||
  7186. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7187. )
  7188. goto tolua_lerror;
  7189. else
  7190. #endif
  7191. {
  7192. SVMOutput* self = (SVMOutput*) tolua_tousertype(tolua_S,1,0);
  7193. #ifndef TOLUA_RELEASE
  7194. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  7195. #endif
  7196. Mtolua_delete(self);
  7197. }
  7198. return 0;
  7199. #ifndef TOLUA_RELEASE
  7200. tolua_lerror:
  7201. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  7202. return 0;
  7203. #endif
  7204. }
  7205. #endif //#ifndef TOLUA_DISABLE
  7206.  
  7207. /* method: new of class CNoiseExecutor */
  7208. #ifndef TOLUA_DISABLE_tolua_bind_anl_CNoiseExecutor_new00
  7209. static int tolua_bind_anl_CNoiseExecutor_new00(lua_State* tolua_S)
  7210. {
  7211. #ifndef TOLUA_RELEASE
  7212. tolua_Error tolua_err;
  7213. if (
  7214. !tolua_isusertable(tolua_S,1,"CNoiseExecutor",0,&tolua_err) ||
  7215. !tolua_isusertype(tolua_S,2,"CKernel",0,&tolua_err) ||
  7216. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7217. )
  7218. goto tolua_lerror;
  7219. else
  7220. #endif
  7221. {
  7222. CKernel* kernel = ((CKernel*) tolua_tousertype(tolua_S,2,0));
  7223. {
  7224. CNoiseExecutor* tolua_ret = (CNoiseExecutor*) Mtolua_new((CNoiseExecutor)(kernel));
  7225. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CNoiseExecutor");
  7226. }
  7227. }
  7228. return 1;
  7229. #ifndef TOLUA_RELEASE
  7230. tolua_lerror:
  7231. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  7232. return 0;
  7233. #endif
  7234. }
  7235. #endif //#ifndef TOLUA_DISABLE
  7236.  
  7237. /* method: new_local of class CNoiseExecutor */
  7238. #ifndef TOLUA_DISABLE_tolua_bind_anl_CNoiseExecutor_new00_local
  7239. static int tolua_bind_anl_CNoiseExecutor_new00_local(lua_State* tolua_S)
  7240. {
  7241. #ifndef TOLUA_RELEASE
  7242. tolua_Error tolua_err;
  7243. if (
  7244. !tolua_isusertable(tolua_S,1,"CNoiseExecutor",0,&tolua_err) ||
  7245. !tolua_isusertype(tolua_S,2,"CKernel",0,&tolua_err) ||
  7246. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7247. )
  7248. goto tolua_lerror;
  7249. else
  7250. #endif
  7251. {
  7252. CKernel* kernel = ((CKernel*) tolua_tousertype(tolua_S,2,0));
  7253. {
  7254. CNoiseExecutor* tolua_ret = (CNoiseExecutor*) Mtolua_new((CNoiseExecutor)(kernel));
  7255. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CNoiseExecutor");
  7256. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  7257. }
  7258. }
  7259. return 1;
  7260. #ifndef TOLUA_RELEASE
  7261. tolua_lerror:
  7262. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  7263. return 0;
  7264. #endif
  7265. }
  7266. #endif //#ifndef TOLUA_DISABLE
  7267.  
  7268. /* method: delete of class CNoiseExecutor */
  7269. #ifndef TOLUA_DISABLE_tolua_bind_anl_CNoiseExecutor_delete00
  7270. static int tolua_bind_anl_CNoiseExecutor_delete00(lua_State* tolua_S)
  7271. {
  7272. #ifndef TOLUA_RELEASE
  7273. tolua_Error tolua_err;
  7274. if (
  7275. !tolua_isusertype(tolua_S,1,"CNoiseExecutor",0,&tolua_err) ||
  7276. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7277. )
  7278. goto tolua_lerror;
  7279. else
  7280. #endif
  7281. {
  7282. CNoiseExecutor* self = (CNoiseExecutor*) tolua_tousertype(tolua_S,1,0);
  7283. #ifndef TOLUA_RELEASE
  7284. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  7285. #endif
  7286. Mtolua_delete(self);
  7287. }
  7288. return 0;
  7289. #ifndef TOLUA_RELEASE
  7290. tolua_lerror:
  7291. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  7292. return 0;
  7293. #endif
  7294. }
  7295. #endif //#ifndef TOLUA_DISABLE
  7296.  
  7297. /* method: evaluate of class CNoiseExecutor */
  7298. #ifndef TOLUA_DISABLE_tolua_bind_anl_CNoiseExecutor_evaluate00
  7299. static int tolua_bind_anl_CNoiseExecutor_evaluate00(lua_State* tolua_S)
  7300. {
  7301. #ifndef TOLUA_RELEASE
  7302. tolua_Error tolua_err;
  7303. if (
  7304. !tolua_isusertype(tolua_S,1,"CNoiseExecutor",0,&tolua_err) ||
  7305. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CCoordinate",0,&tolua_err)) ||
  7306. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7307. )
  7308. goto tolua_lerror;
  7309. else
  7310. #endif
  7311. {
  7312. CNoiseExecutor* self = (CNoiseExecutor*) tolua_tousertype(tolua_S,1,0);
  7313. CCoordinate* coord = ((CCoordinate*) tolua_tousertype(tolua_S,2,0));
  7314. #ifndef TOLUA_RELEASE
  7315. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'evaluate'", NULL);
  7316. #endif
  7317. {
  7318. SVMOutput tolua_ret = (SVMOutput) self->evaluate(*coord);
  7319. {
  7320. #ifdef __cplusplus
  7321. void* tolua_obj = Mtolua_new((SVMOutput)(tolua_ret));
  7322. tolua_pushusertype(tolua_S,tolua_obj,"SVMOutput");
  7323. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  7324. #else
  7325. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(SVMOutput));
  7326. tolua_pushusertype(tolua_S,tolua_obj,"SVMOutput");
  7327. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  7328. #endif
  7329. }
  7330. }
  7331. }
  7332. return 1;
  7333. #ifndef TOLUA_RELEASE
  7334. tolua_lerror:
  7335. tolua_error(tolua_S,"#ferror in function 'evaluate'.",&tolua_err);
  7336. return 0;
  7337. #endif
  7338. }
  7339. #endif //#ifndef TOLUA_DISABLE
  7340.  
  7341. /* method: evaluateAt of class CNoiseExecutor */
  7342. #ifndef TOLUA_DISABLE_tolua_bind_anl_CNoiseExecutor_evaluateAt00
  7343. static int tolua_bind_anl_CNoiseExecutor_evaluateAt00(lua_State* tolua_S)
  7344. {
  7345. #ifndef TOLUA_RELEASE
  7346. tolua_Error tolua_err;
  7347. if (
  7348. !tolua_isusertype(tolua_S,1,"CNoiseExecutor",0,&tolua_err) ||
  7349. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CCoordinate",0,&tolua_err)) ||
  7350. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CInstructionIndex",0,&tolua_err)) ||
  7351. !tolua_isnoobj(tolua_S,4,&tolua_err)
  7352. )
  7353. goto tolua_lerror;
  7354. else
  7355. #endif
  7356. {
  7357. CNoiseExecutor* self = (CNoiseExecutor*) tolua_tousertype(tolua_S,1,0);
  7358. CCoordinate* coord = ((CCoordinate*) tolua_tousertype(tolua_S,2,0));
  7359. CInstructionIndex index = *((CInstructionIndex*) tolua_tousertype(tolua_S,3,0));
  7360. #ifndef TOLUA_RELEASE
  7361. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'evaluateAt'", NULL);
  7362. #endif
  7363. {
  7364. SVMOutput tolua_ret = (SVMOutput) self->evaluateAt(*coord,index);
  7365. {
  7366. #ifdef __cplusplus
  7367. void* tolua_obj = Mtolua_new((SVMOutput)(tolua_ret));
  7368. tolua_pushusertype(tolua_S,tolua_obj,"SVMOutput");
  7369. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  7370. #else
  7371. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(SVMOutput));
  7372. tolua_pushusertype(tolua_S,tolua_obj,"SVMOutput");
  7373. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  7374. #endif
  7375. }
  7376. }
  7377. }
  7378. return 1;
  7379. #ifndef TOLUA_RELEASE
  7380. tolua_lerror:
  7381. tolua_error(tolua_S,"#ferror in function 'evaluateAt'.",&tolua_err);
  7382. return 0;
  7383. #endif
  7384. }
  7385. #endif //#ifndef TOLUA_DISABLE
  7386.  
  7387. /* method: new of class SMappingRanges */
  7388. #ifndef TOLUA_DISABLE_tolua_bind_anl_SMappingRanges_new00
  7389. static int tolua_bind_anl_SMappingRanges_new00(lua_State* tolua_S)
  7390. {
  7391. #ifndef TOLUA_RELEASE
  7392. tolua_Error tolua_err;
  7393. if (
  7394. !tolua_isusertable(tolua_S,1,"SMappingRanges",0,&tolua_err) ||
  7395. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7396. )
  7397. goto tolua_lerror;
  7398. else
  7399. #endif
  7400. {
  7401. {
  7402. SMappingRanges* tolua_ret = (SMappingRanges*) Mtolua_new((SMappingRanges)());
  7403. tolua_pushusertype(tolua_S,(void*)tolua_ret,"SMappingRanges");
  7404. }
  7405. }
  7406. return 1;
  7407. #ifndef TOLUA_RELEASE
  7408. tolua_lerror:
  7409. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  7410. return 0;
  7411. #endif
  7412. }
  7413. #endif //#ifndef TOLUA_DISABLE
  7414.  
  7415. /* method: new_local of class SMappingRanges */
  7416. #ifndef TOLUA_DISABLE_tolua_bind_anl_SMappingRanges_new00_local
  7417. static int tolua_bind_anl_SMappingRanges_new00_local(lua_State* tolua_S)
  7418. {
  7419. #ifndef TOLUA_RELEASE
  7420. tolua_Error tolua_err;
  7421. if (
  7422. !tolua_isusertable(tolua_S,1,"SMappingRanges",0,&tolua_err) ||
  7423. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7424. )
  7425. goto tolua_lerror;
  7426. else
  7427. #endif
  7428. {
  7429. {
  7430. SMappingRanges* tolua_ret = (SMappingRanges*) Mtolua_new((SMappingRanges)());
  7431. tolua_pushusertype(tolua_S,(void*)tolua_ret,"SMappingRanges");
  7432. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  7433. }
  7434. }
  7435. return 1;
  7436. #ifndef TOLUA_RELEASE
  7437. tolua_lerror:
  7438. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  7439. return 0;
  7440. #endif
  7441. }
  7442. #endif //#ifndef TOLUA_DISABLE
  7443.  
  7444. /* method: new of class SMappingRanges */
  7445. #ifndef TOLUA_DISABLE_tolua_bind_anl_SMappingRanges_new01
  7446. static int tolua_bind_anl_SMappingRanges_new01(lua_State* tolua_S)
  7447. {
  7448. tolua_Error tolua_err;
  7449. if (
  7450. !tolua_isusertable(tolua_S,1,"SMappingRanges",0,&tolua_err) ||
  7451. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"SMappingRanges",0,&tolua_err)) ||
  7452. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7453. )
  7454. goto tolua_lerror;
  7455. else
  7456. {
  7457. SMappingRanges* rhs = ((SMappingRanges*) tolua_tousertype(tolua_S,2,0));
  7458. {
  7459. SMappingRanges* tolua_ret = (SMappingRanges*) Mtolua_new((SMappingRanges)(*rhs));
  7460. tolua_pushusertype(tolua_S,(void*)tolua_ret,"SMappingRanges");
  7461. }
  7462. }
  7463. return 1;
  7464. tolua_lerror:
  7465. return tolua_bind_anl_SMappingRanges_new00(tolua_S);
  7466. }
  7467. #endif //#ifndef TOLUA_DISABLE
  7468.  
  7469. /* method: new_local of class SMappingRanges */
  7470. #ifndef TOLUA_DISABLE_tolua_bind_anl_SMappingRanges_new01_local
  7471. static int tolua_bind_anl_SMappingRanges_new01_local(lua_State* tolua_S)
  7472. {
  7473. tolua_Error tolua_err;
  7474. if (
  7475. !tolua_isusertable(tolua_S,1,"SMappingRanges",0,&tolua_err) ||
  7476. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"SMappingRanges",0,&tolua_err)) ||
  7477. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7478. )
  7479. goto tolua_lerror;
  7480. else
  7481. {
  7482. SMappingRanges* rhs = ((SMappingRanges*) tolua_tousertype(tolua_S,2,0));
  7483. {
  7484. SMappingRanges* tolua_ret = (SMappingRanges*) Mtolua_new((SMappingRanges)(*rhs));
  7485. tolua_pushusertype(tolua_S,(void*)tolua_ret,"SMappingRanges");
  7486. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  7487. }
  7488. }
  7489. return 1;
  7490. tolua_lerror:
  7491. return tolua_bind_anl_SMappingRanges_new00_local(tolua_S);
  7492. }
  7493. #endif //#ifndef TOLUA_DISABLE
  7494.  
  7495. /* method: new of class SMappingRanges */
  7496. #ifndef TOLUA_DISABLE_tolua_bind_anl_SMappingRanges_new02
  7497. static int tolua_bind_anl_SMappingRanges_new02(lua_State* tolua_S)
  7498. {
  7499. tolua_Error tolua_err;
  7500. if (
  7501. !tolua_isusertable(tolua_S,1,"SMappingRanges",0,&tolua_err) ||
  7502. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const anl::SMappingRanges",0,&tolua_err)) ||
  7503. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7504. )
  7505. goto tolua_lerror;
  7506. else
  7507. {
  7508. const anl::SMappingRanges* rhs = ((const anl::SMappingRanges*) tolua_tousertype(tolua_S,2,0));
  7509. {
  7510. SMappingRanges* tolua_ret = (SMappingRanges*) Mtolua_new((SMappingRanges)(*rhs));
  7511. tolua_pushusertype(tolua_S,(void*)tolua_ret,"SMappingRanges");
  7512. }
  7513. }
  7514. return 1;
  7515. tolua_lerror:
  7516. return tolua_bind_anl_SMappingRanges_new01(tolua_S);
  7517. }
  7518. #endif //#ifndef TOLUA_DISABLE
  7519.  
  7520. /* method: new_local of class SMappingRanges */
  7521. #ifndef TOLUA_DISABLE_tolua_bind_anl_SMappingRanges_new02_local
  7522. static int tolua_bind_anl_SMappingRanges_new02_local(lua_State* tolua_S)
  7523. {
  7524. tolua_Error tolua_err;
  7525. if (
  7526. !tolua_isusertable(tolua_S,1,"SMappingRanges",0,&tolua_err) ||
  7527. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const anl::SMappingRanges",0,&tolua_err)) ||
  7528. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7529. )
  7530. goto tolua_lerror;
  7531. else
  7532. {
  7533. const anl::SMappingRanges* rhs = ((const anl::SMappingRanges*) tolua_tousertype(tolua_S,2,0));
  7534. {
  7535. SMappingRanges* tolua_ret = (SMappingRanges*) Mtolua_new((SMappingRanges)(*rhs));
  7536. tolua_pushusertype(tolua_S,(void*)tolua_ret,"SMappingRanges");
  7537. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  7538. }
  7539. }
  7540. return 1;
  7541. tolua_lerror:
  7542. return tolua_bind_anl_SMappingRanges_new01_local(tolua_S);
  7543. }
  7544. #endif //#ifndef TOLUA_DISABLE
  7545.  
  7546. /* method: new of class SMappingRanges */
  7547. #ifndef TOLUA_DISABLE_tolua_bind_anl_SMappingRanges_new03
  7548. static int tolua_bind_anl_SMappingRanges_new03(lua_State* tolua_S)
  7549. {
  7550. tolua_Error tolua_err;
  7551. if (
  7552. !tolua_isusertable(tolua_S,1,"SMappingRanges",0,&tolua_err) ||
  7553. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7554. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  7555. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  7556. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  7557. !tolua_isnumber(tolua_S,6,1,&tolua_err) ||
  7558. !tolua_isnumber(tolua_S,7,1,&tolua_err) ||
  7559. !tolua_isnoobj(tolua_S,8,&tolua_err)
  7560. )
  7561. goto tolua_lerror;
  7562. else
  7563. {
  7564. double x0 = ((double) tolua_tonumber(tolua_S,2,0));
  7565. double x1 = ((double) tolua_tonumber(tolua_S,3,0));
  7566. double y0 = ((double) tolua_tonumber(tolua_S,4,0));
  7567. double y1 = ((double) tolua_tonumber(tolua_S,5,0));
  7568. double z0 = ((double) tolua_tonumber(tolua_S,6,0.0));
  7569. double z1 = ((double) tolua_tonumber(tolua_S,7,1.0));
  7570. {
  7571. SMappingRanges* tolua_ret = (SMappingRanges*) Mtolua_new((SMappingRanges)(x0,x1,y0,y1,z0,z1));
  7572. tolua_pushusertype(tolua_S,(void*)tolua_ret,"SMappingRanges");
  7573. }
  7574. }
  7575. return 1;
  7576. tolua_lerror:
  7577. return tolua_bind_anl_SMappingRanges_new02(tolua_S);
  7578. }
  7579. #endif //#ifndef TOLUA_DISABLE
  7580.  
  7581. /* method: new_local of class SMappingRanges */
  7582. #ifndef TOLUA_DISABLE_tolua_bind_anl_SMappingRanges_new03_local
  7583. static int tolua_bind_anl_SMappingRanges_new03_local(lua_State* tolua_S)
  7584. {
  7585. tolua_Error tolua_err;
  7586. if (
  7587. !tolua_isusertable(tolua_S,1,"SMappingRanges",0,&tolua_err) ||
  7588. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7589. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  7590. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  7591. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  7592. !tolua_isnumber(tolua_S,6,1,&tolua_err) ||
  7593. !tolua_isnumber(tolua_S,7,1,&tolua_err) ||
  7594. !tolua_isnoobj(tolua_S,8,&tolua_err)
  7595. )
  7596. goto tolua_lerror;
  7597. else
  7598. {
  7599. double x0 = ((double) tolua_tonumber(tolua_S,2,0));
  7600. double x1 = ((double) tolua_tonumber(tolua_S,3,0));
  7601. double y0 = ((double) tolua_tonumber(tolua_S,4,0));
  7602. double y1 = ((double) tolua_tonumber(tolua_S,5,0));
  7603. double z0 = ((double) tolua_tonumber(tolua_S,6,0.0));
  7604. double z1 = ((double) tolua_tonumber(tolua_S,7,1.0));
  7605. {
  7606. SMappingRanges* tolua_ret = (SMappingRanges*) Mtolua_new((SMappingRanges)(x0,x1,y0,y1,z0,z1));
  7607. tolua_pushusertype(tolua_S,(void*)tolua_ret,"SMappingRanges");
  7608. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  7609. }
  7610. }
  7611. return 1;
  7612. tolua_lerror:
  7613. return tolua_bind_anl_SMappingRanges_new02_local(tolua_S);
  7614. }
  7615. #endif //#ifndef TOLUA_DISABLE
  7616.  
  7617. /* method: delete of class SMappingRanges */
  7618. #ifndef TOLUA_DISABLE_tolua_bind_anl_SMappingRanges_delete00
  7619. static int tolua_bind_anl_SMappingRanges_delete00(lua_State* tolua_S)
  7620. {
  7621. #ifndef TOLUA_RELEASE
  7622. tolua_Error tolua_err;
  7623. if (
  7624. !tolua_isusertype(tolua_S,1,"SMappingRanges",0,&tolua_err) ||
  7625. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7626. )
  7627. goto tolua_lerror;
  7628. else
  7629. #endif
  7630. {
  7631. SMappingRanges* self = (SMappingRanges*) tolua_tousertype(tolua_S,1,0);
  7632. #ifndef TOLUA_RELEASE
  7633. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  7634. #endif
  7635. Mtolua_delete(self);
  7636. }
  7637. return 0;
  7638. #ifndef TOLUA_RELEASE
  7639. tolua_lerror:
  7640. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  7641. return 0;
  7642. #endif
  7643. }
  7644. #endif //#ifndef TOLUA_DISABLE
  7645.  
  7646. /* get function: mapx0 of class SMappingRanges */
  7647. #ifndef TOLUA_DISABLE_tolua_get_SMappingRanges_mapx0
  7648. static int tolua_get_SMappingRanges_mapx0(lua_State* tolua_S)
  7649. {
  7650. SMappingRanges* self = (SMappingRanges*) tolua_tousertype(tolua_S,1,0);
  7651. #ifndef TOLUA_RELEASE
  7652. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'mapx0'",NULL);
  7653. #endif
  7654. tolua_pushnumber(tolua_S,(lua_Number)self->mapx0);
  7655. return 1;
  7656. }
  7657. #endif //#ifndef TOLUA_DISABLE
  7658.  
  7659. /* set function: mapx0 of class SMappingRanges */
  7660. #ifndef TOLUA_DISABLE_tolua_set_SMappingRanges_mapx0
  7661. static int tolua_set_SMappingRanges_mapx0(lua_State* tolua_S)
  7662. {
  7663. SMappingRanges* self = (SMappingRanges*) tolua_tousertype(tolua_S,1,0);
  7664. #ifndef TOLUA_RELEASE
  7665. tolua_Error tolua_err;
  7666. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'mapx0'",NULL);
  7667. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  7668. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  7669. #endif
  7670. self->mapx0 = ((double) tolua_tonumber(tolua_S,2,0))
  7671. ;
  7672. return 0;
  7673. }
  7674. #endif //#ifndef TOLUA_DISABLE
  7675.  
  7676. /* get function: mapy0 of class SMappingRanges */
  7677. #ifndef TOLUA_DISABLE_tolua_get_SMappingRanges_mapy0
  7678. static int tolua_get_SMappingRanges_mapy0(lua_State* tolua_S)
  7679. {
  7680. SMappingRanges* self = (SMappingRanges*) tolua_tousertype(tolua_S,1,0);
  7681. #ifndef TOLUA_RELEASE
  7682. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'mapy0'",NULL);
  7683. #endif
  7684. tolua_pushnumber(tolua_S,(lua_Number)self->mapy0);
  7685. return 1;
  7686. }
  7687. #endif //#ifndef TOLUA_DISABLE
  7688.  
  7689. /* set function: mapy0 of class SMappingRanges */
  7690. #ifndef TOLUA_DISABLE_tolua_set_SMappingRanges_mapy0
  7691. static int tolua_set_SMappingRanges_mapy0(lua_State* tolua_S)
  7692. {
  7693. SMappingRanges* self = (SMappingRanges*) tolua_tousertype(tolua_S,1,0);
  7694. #ifndef TOLUA_RELEASE
  7695. tolua_Error tolua_err;
  7696. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'mapy0'",NULL);
  7697. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  7698. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  7699. #endif
  7700. self->mapy0 = ((double) tolua_tonumber(tolua_S,2,0))
  7701. ;
  7702. return 0;
  7703. }
  7704. #endif //#ifndef TOLUA_DISABLE
  7705.  
  7706. /* get function: mapz0 of class SMappingRanges */
  7707. #ifndef TOLUA_DISABLE_tolua_get_SMappingRanges_mapz0
  7708. static int tolua_get_SMappingRanges_mapz0(lua_State* tolua_S)
  7709. {
  7710. SMappingRanges* self = (SMappingRanges*) tolua_tousertype(tolua_S,1,0);
  7711. #ifndef TOLUA_RELEASE
  7712. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'mapz0'",NULL);
  7713. #endif
  7714. tolua_pushnumber(tolua_S,(lua_Number)self->mapz0);
  7715. return 1;
  7716. }
  7717. #endif //#ifndef TOLUA_DISABLE
  7718.  
  7719. /* set function: mapz0 of class SMappingRanges */
  7720. #ifndef TOLUA_DISABLE_tolua_set_SMappingRanges_mapz0
  7721. static int tolua_set_SMappingRanges_mapz0(lua_State* tolua_S)
  7722. {
  7723. SMappingRanges* self = (SMappingRanges*) tolua_tousertype(tolua_S,1,0);
  7724. #ifndef TOLUA_RELEASE
  7725. tolua_Error tolua_err;
  7726. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'mapz0'",NULL);
  7727. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  7728. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  7729. #endif
  7730. self->mapz0 = ((double) tolua_tonumber(tolua_S,2,0))
  7731. ;
  7732. return 0;
  7733. }
  7734. #endif //#ifndef TOLUA_DISABLE
  7735.  
  7736. /* get function: mapx1 of class SMappingRanges */
  7737. #ifndef TOLUA_DISABLE_tolua_get_SMappingRanges_mapx1
  7738. static int tolua_get_SMappingRanges_mapx1(lua_State* tolua_S)
  7739. {
  7740. SMappingRanges* self = (SMappingRanges*) tolua_tousertype(tolua_S,1,0);
  7741. #ifndef TOLUA_RELEASE
  7742. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'mapx1'",NULL);
  7743. #endif
  7744. tolua_pushnumber(tolua_S,(lua_Number)self->mapx1);
  7745. return 1;
  7746. }
  7747. #endif //#ifndef TOLUA_DISABLE
  7748.  
  7749. /* set function: mapx1 of class SMappingRanges */
  7750. #ifndef TOLUA_DISABLE_tolua_set_SMappingRanges_mapx1
  7751. static int tolua_set_SMappingRanges_mapx1(lua_State* tolua_S)
  7752. {
  7753. SMappingRanges* self = (SMappingRanges*) tolua_tousertype(tolua_S,1,0);
  7754. #ifndef TOLUA_RELEASE
  7755. tolua_Error tolua_err;
  7756. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'mapx1'",NULL);
  7757. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  7758. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  7759. #endif
  7760. self->mapx1 = ((double) tolua_tonumber(tolua_S,2,0))
  7761. ;
  7762. return 0;
  7763. }
  7764. #endif //#ifndef TOLUA_DISABLE
  7765.  
  7766. /* get function: mapy1 of class SMappingRanges */
  7767. #ifndef TOLUA_DISABLE_tolua_get_SMappingRanges_mapy1
  7768. static int tolua_get_SMappingRanges_mapy1(lua_State* tolua_S)
  7769. {
  7770. SMappingRanges* self = (SMappingRanges*) tolua_tousertype(tolua_S,1,0);
  7771. #ifndef TOLUA_RELEASE
  7772. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'mapy1'",NULL);
  7773. #endif
  7774. tolua_pushnumber(tolua_S,(lua_Number)self->mapy1);
  7775. return 1;
  7776. }
  7777. #endif //#ifndef TOLUA_DISABLE
  7778.  
  7779. /* set function: mapy1 of class SMappingRanges */
  7780. #ifndef TOLUA_DISABLE_tolua_set_SMappingRanges_mapy1
  7781. static int tolua_set_SMappingRanges_mapy1(lua_State* tolua_S)
  7782. {
  7783. SMappingRanges* self = (SMappingRanges*) tolua_tousertype(tolua_S,1,0);
  7784. #ifndef TOLUA_RELEASE
  7785. tolua_Error tolua_err;
  7786. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'mapy1'",NULL);
  7787. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  7788. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  7789. #endif
  7790. self->mapy1 = ((double) tolua_tonumber(tolua_S,2,0))
  7791. ;
  7792. return 0;
  7793. }
  7794. #endif //#ifndef TOLUA_DISABLE
  7795.  
  7796. /* get function: mapz1 of class SMappingRanges */
  7797. #ifndef TOLUA_DISABLE_tolua_get_SMappingRanges_mapz1
  7798. static int tolua_get_SMappingRanges_mapz1(lua_State* tolua_S)
  7799. {
  7800. SMappingRanges* self = (SMappingRanges*) tolua_tousertype(tolua_S,1,0);
  7801. #ifndef TOLUA_RELEASE
  7802. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'mapz1'",NULL);
  7803. #endif
  7804. tolua_pushnumber(tolua_S,(lua_Number)self->mapz1);
  7805. return 1;
  7806. }
  7807. #endif //#ifndef TOLUA_DISABLE
  7808.  
  7809. /* set function: mapz1 of class SMappingRanges */
  7810. #ifndef TOLUA_DISABLE_tolua_set_SMappingRanges_mapz1
  7811. static int tolua_set_SMappingRanges_mapz1(lua_State* tolua_S)
  7812. {
  7813. SMappingRanges* self = (SMappingRanges*) tolua_tousertype(tolua_S,1,0);
  7814. #ifndef TOLUA_RELEASE
  7815. tolua_Error tolua_err;
  7816. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'mapz1'",NULL);
  7817. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  7818. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  7819. #endif
  7820. self->mapz1 = ((double) tolua_tonumber(tolua_S,2,0))
  7821. ;
  7822. return 0;
  7823. }
  7824. #endif //#ifndef TOLUA_DISABLE
  7825.  
  7826. /* get function: loopx0 of class SMappingRanges */
  7827. #ifndef TOLUA_DISABLE_tolua_get_SMappingRanges_loopx0
  7828. static int tolua_get_SMappingRanges_loopx0(lua_State* tolua_S)
  7829. {
  7830. SMappingRanges* self = (SMappingRanges*) tolua_tousertype(tolua_S,1,0);
  7831. #ifndef TOLUA_RELEASE
  7832. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'loopx0'",NULL);
  7833. #endif
  7834. tolua_pushnumber(tolua_S,(lua_Number)self->loopx0);
  7835. return 1;
  7836. }
  7837. #endif //#ifndef TOLUA_DISABLE
  7838.  
  7839. /* set function: loopx0 of class SMappingRanges */
  7840. #ifndef TOLUA_DISABLE_tolua_set_SMappingRanges_loopx0
  7841. static int tolua_set_SMappingRanges_loopx0(lua_State* tolua_S)
  7842. {
  7843. SMappingRanges* self = (SMappingRanges*) tolua_tousertype(tolua_S,1,0);
  7844. #ifndef TOLUA_RELEASE
  7845. tolua_Error tolua_err;
  7846. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'loopx0'",NULL);
  7847. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  7848. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  7849. #endif
  7850. self->loopx0 = ((double) tolua_tonumber(tolua_S,2,0))
  7851. ;
  7852. return 0;
  7853. }
  7854. #endif //#ifndef TOLUA_DISABLE
  7855.  
  7856. /* get function: loopy0 of class SMappingRanges */
  7857. #ifndef TOLUA_DISABLE_tolua_get_SMappingRanges_loopy0
  7858. static int tolua_get_SMappingRanges_loopy0(lua_State* tolua_S)
  7859. {
  7860. SMappingRanges* self = (SMappingRanges*) tolua_tousertype(tolua_S,1,0);
  7861. #ifndef TOLUA_RELEASE
  7862. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'loopy0'",NULL);
  7863. #endif
  7864. tolua_pushnumber(tolua_S,(lua_Number)self->loopy0);
  7865. return 1;
  7866. }
  7867. #endif //#ifndef TOLUA_DISABLE
  7868.  
  7869. /* set function: loopy0 of class SMappingRanges */
  7870. #ifndef TOLUA_DISABLE_tolua_set_SMappingRanges_loopy0
  7871. static int tolua_set_SMappingRanges_loopy0(lua_State* tolua_S)
  7872. {
  7873. SMappingRanges* self = (SMappingRanges*) tolua_tousertype(tolua_S,1,0);
  7874. #ifndef TOLUA_RELEASE
  7875. tolua_Error tolua_err;
  7876. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'loopy0'",NULL);
  7877. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  7878. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  7879. #endif
  7880. self->loopy0 = ((double) tolua_tonumber(tolua_S,2,0))
  7881. ;
  7882. return 0;
  7883. }
  7884. #endif //#ifndef TOLUA_DISABLE
  7885.  
  7886. /* get function: loopz0 of class SMappingRanges */
  7887. #ifndef TOLUA_DISABLE_tolua_get_SMappingRanges_loopz0
  7888. static int tolua_get_SMappingRanges_loopz0(lua_State* tolua_S)
  7889. {
  7890. SMappingRanges* self = (SMappingRanges*) tolua_tousertype(tolua_S,1,0);
  7891. #ifndef TOLUA_RELEASE
  7892. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'loopz0'",NULL);
  7893. #endif
  7894. tolua_pushnumber(tolua_S,(lua_Number)self->loopz0);
  7895. return 1;
  7896. }
  7897. #endif //#ifndef TOLUA_DISABLE
  7898.  
  7899. /* set function: loopz0 of class SMappingRanges */
  7900. #ifndef TOLUA_DISABLE_tolua_set_SMappingRanges_loopz0
  7901. static int tolua_set_SMappingRanges_loopz0(lua_State* tolua_S)
  7902. {
  7903. SMappingRanges* self = (SMappingRanges*) tolua_tousertype(tolua_S,1,0);
  7904. #ifndef TOLUA_RELEASE
  7905. tolua_Error tolua_err;
  7906. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'loopz0'",NULL);
  7907. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  7908. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  7909. #endif
  7910. self->loopz0 = ((double) tolua_tonumber(tolua_S,2,0))
  7911. ;
  7912. return 0;
  7913. }
  7914. #endif //#ifndef TOLUA_DISABLE
  7915.  
  7916. /* get function: loopx1 of class SMappingRanges */
  7917. #ifndef TOLUA_DISABLE_tolua_get_SMappingRanges_loopx1
  7918. static int tolua_get_SMappingRanges_loopx1(lua_State* tolua_S)
  7919. {
  7920. SMappingRanges* self = (SMappingRanges*) tolua_tousertype(tolua_S,1,0);
  7921. #ifndef TOLUA_RELEASE
  7922. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'loopx1'",NULL);
  7923. #endif
  7924. tolua_pushnumber(tolua_S,(lua_Number)self->loopx1);
  7925. return 1;
  7926. }
  7927. #endif //#ifndef TOLUA_DISABLE
  7928.  
  7929. /* set function: loopx1 of class SMappingRanges */
  7930. #ifndef TOLUA_DISABLE_tolua_set_SMappingRanges_loopx1
  7931. static int tolua_set_SMappingRanges_loopx1(lua_State* tolua_S)
  7932. {
  7933. SMappingRanges* self = (SMappingRanges*) tolua_tousertype(tolua_S,1,0);
  7934. #ifndef TOLUA_RELEASE
  7935. tolua_Error tolua_err;
  7936. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'loopx1'",NULL);
  7937. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  7938. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  7939. #endif
  7940. self->loopx1 = ((double) tolua_tonumber(tolua_S,2,0))
  7941. ;
  7942. return 0;
  7943. }
  7944. #endif //#ifndef TOLUA_DISABLE
  7945.  
  7946. /* get function: loopy1 of class SMappingRanges */
  7947. #ifndef TOLUA_DISABLE_tolua_get_SMappingRanges_loopy1
  7948. static int tolua_get_SMappingRanges_loopy1(lua_State* tolua_S)
  7949. {
  7950. SMappingRanges* self = (SMappingRanges*) tolua_tousertype(tolua_S,1,0);
  7951. #ifndef TOLUA_RELEASE
  7952. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'loopy1'",NULL);
  7953. #endif
  7954. tolua_pushnumber(tolua_S,(lua_Number)self->loopy1);
  7955. return 1;
  7956. }
  7957. #endif //#ifndef TOLUA_DISABLE
  7958.  
  7959. /* set function: loopy1 of class SMappingRanges */
  7960. #ifndef TOLUA_DISABLE_tolua_set_SMappingRanges_loopy1
  7961. static int tolua_set_SMappingRanges_loopy1(lua_State* tolua_S)
  7962. {
  7963. SMappingRanges* self = (SMappingRanges*) tolua_tousertype(tolua_S,1,0);
  7964. #ifndef TOLUA_RELEASE
  7965. tolua_Error tolua_err;
  7966. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'loopy1'",NULL);
  7967. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  7968. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  7969. #endif
  7970. self->loopy1 = ((double) tolua_tonumber(tolua_S,2,0))
  7971. ;
  7972. return 0;
  7973. }
  7974. #endif //#ifndef TOLUA_DISABLE
  7975.  
  7976. /* get function: loopz1 of class SMappingRanges */
  7977. #ifndef TOLUA_DISABLE_tolua_get_SMappingRanges_loopz1
  7978. static int tolua_get_SMappingRanges_loopz1(lua_State* tolua_S)
  7979. {
  7980. SMappingRanges* self = (SMappingRanges*) tolua_tousertype(tolua_S,1,0);
  7981. #ifndef TOLUA_RELEASE
  7982. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'loopz1'",NULL);
  7983. #endif
  7984. tolua_pushnumber(tolua_S,(lua_Number)self->loopz1);
  7985. return 1;
  7986. }
  7987. #endif //#ifndef TOLUA_DISABLE
  7988.  
  7989. /* set function: loopz1 of class SMappingRanges */
  7990. #ifndef TOLUA_DISABLE_tolua_set_SMappingRanges_loopz1
  7991. static int tolua_set_SMappingRanges_loopz1(lua_State* tolua_S)
  7992. {
  7993. SMappingRanges* self = (SMappingRanges*) tolua_tousertype(tolua_S,1,0);
  7994. #ifndef TOLUA_RELEASE
  7995. tolua_Error tolua_err;
  7996. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'loopz1'",NULL);
  7997. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  7998. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  7999. #endif
  8000. self->loopz1 = ((double) tolua_tonumber(tolua_S,2,0))
  8001. ;
  8002. return 0;
  8003. }
  8004. #endif //#ifndef TOLUA_DISABLE
  8005.  
  8006. /* method: new of class CArray2Dd */
  8007. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_new00
  8008. static int tolua_bind_anl_CArray2Dd_new00(lua_State* tolua_S)
  8009. {
  8010. #ifndef TOLUA_RELEASE
  8011. tolua_Error tolua_err;
  8012. if (
  8013. !tolua_isusertable(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8014. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8015. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  8016. !tolua_isnoobj(tolua_S,4,&tolua_err)
  8017. )
  8018. goto tolua_lerror;
  8019. else
  8020. #endif
  8021. {
  8022. int w = ((int) tolua_tonumber(tolua_S,2,0));
  8023. int h = ((int) tolua_tonumber(tolua_S,3,0));
  8024. {
  8025. CArray2Dd* tolua_ret = (CArray2Dd*) Mtolua_new((CArray2Dd)(w,h));
  8026. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CArray2Dd");
  8027. }
  8028. }
  8029. return 1;
  8030. #ifndef TOLUA_RELEASE
  8031. tolua_lerror:
  8032. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  8033. return 0;
  8034. #endif
  8035. }
  8036. #endif //#ifndef TOLUA_DISABLE
  8037.  
  8038. /* method: new_local of class CArray2Dd */
  8039. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_new00_local
  8040. static int tolua_bind_anl_CArray2Dd_new00_local(lua_State* tolua_S)
  8041. {
  8042. #ifndef TOLUA_RELEASE
  8043. tolua_Error tolua_err;
  8044. if (
  8045. !tolua_isusertable(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8046. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8047. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  8048. !tolua_isnoobj(tolua_S,4,&tolua_err)
  8049. )
  8050. goto tolua_lerror;
  8051. else
  8052. #endif
  8053. {
  8054. int w = ((int) tolua_tonumber(tolua_S,2,0));
  8055. int h = ((int) tolua_tonumber(tolua_S,3,0));
  8056. {
  8057. CArray2Dd* tolua_ret = (CArray2Dd*) Mtolua_new((CArray2Dd)(w,h));
  8058. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CArray2Dd");
  8059. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  8060. }
  8061. }
  8062. return 1;
  8063. #ifndef TOLUA_RELEASE
  8064. tolua_lerror:
  8065. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  8066. return 0;
  8067. #endif
  8068. }
  8069. #endif //#ifndef TOLUA_DISABLE
  8070.  
  8071. /* method: new of class CArray2Dd */
  8072. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_new01
  8073. static int tolua_bind_anl_CArray2Dd_new01(lua_State* tolua_S)
  8074. {
  8075. tolua_Error tolua_err;
  8076. if (
  8077. !tolua_isusertable(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8078. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8079. )
  8080. goto tolua_lerror;
  8081. else
  8082. {
  8083. {
  8084. CArray2Dd* tolua_ret = (CArray2Dd*) Mtolua_new((CArray2Dd)());
  8085. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CArray2Dd");
  8086. }
  8087. }
  8088. return 1;
  8089. tolua_lerror:
  8090. return tolua_bind_anl_CArray2Dd_new00(tolua_S);
  8091. }
  8092. #endif //#ifndef TOLUA_DISABLE
  8093.  
  8094. /* method: new_local of class CArray2Dd */
  8095. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_new01_local
  8096. static int tolua_bind_anl_CArray2Dd_new01_local(lua_State* tolua_S)
  8097. {
  8098. tolua_Error tolua_err;
  8099. if (
  8100. !tolua_isusertable(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8101. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8102. )
  8103. goto tolua_lerror;
  8104. else
  8105. {
  8106. {
  8107. CArray2Dd* tolua_ret = (CArray2Dd*) Mtolua_new((CArray2Dd)());
  8108. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CArray2Dd");
  8109. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  8110. }
  8111. }
  8112. return 1;
  8113. tolua_lerror:
  8114. return tolua_bind_anl_CArray2Dd_new00_local(tolua_S);
  8115. }
  8116. #endif //#ifndef TOLUA_DISABLE
  8117.  
  8118. /* method: delete of class CArray2Dd */
  8119. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_delete00
  8120. static int tolua_bind_anl_CArray2Dd_delete00(lua_State* tolua_S)
  8121. {
  8122. #ifndef TOLUA_RELEASE
  8123. tolua_Error tolua_err;
  8124. if (
  8125. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8126. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8127. )
  8128. goto tolua_lerror;
  8129. else
  8130. #endif
  8131. {
  8132. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  8133. #ifndef TOLUA_RELEASE
  8134. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  8135. #endif
  8136. Mtolua_delete(self);
  8137. }
  8138. return 0;
  8139. #ifndef TOLUA_RELEASE
  8140. tolua_lerror:
  8141. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  8142. return 0;
  8143. #endif
  8144. }
  8145. #endif //#ifndef TOLUA_DISABLE
  8146.  
  8147. /* method: resize of class CArray2Dd */
  8148. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_resize00
  8149. static int tolua_bind_anl_CArray2Dd_resize00(lua_State* tolua_S)
  8150. {
  8151. #ifndef TOLUA_RELEASE
  8152. tolua_Error tolua_err;
  8153. if (
  8154. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8155. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8156. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  8157. !tolua_isnoobj(tolua_S,4,&tolua_err)
  8158. )
  8159. goto tolua_lerror;
  8160. else
  8161. #endif
  8162. {
  8163. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  8164. int w = ((int) tolua_tonumber(tolua_S,2,0));
  8165. int h = ((int) tolua_tonumber(tolua_S,3,0));
  8166. #ifndef TOLUA_RELEASE
  8167. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'resize'", NULL);
  8168. #endif
  8169. {
  8170. self->resize(w,h);
  8171. }
  8172. }
  8173. return 0;
  8174. #ifndef TOLUA_RELEASE
  8175. tolua_lerror:
  8176. tolua_error(tolua_S,"#ferror in function 'resize'.",&tolua_err);
  8177. return 0;
  8178. #endif
  8179. }
  8180. #endif //#ifndef TOLUA_DISABLE
  8181.  
  8182. /* method: destroy of class CArray2Dd */
  8183. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_destroy00
  8184. static int tolua_bind_anl_CArray2Dd_destroy00(lua_State* tolua_S)
  8185. {
  8186. #ifndef TOLUA_RELEASE
  8187. tolua_Error tolua_err;
  8188. if (
  8189. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8190. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8191. )
  8192. goto tolua_lerror;
  8193. else
  8194. #endif
  8195. {
  8196. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  8197. #ifndef TOLUA_RELEASE
  8198. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'destroy'", NULL);
  8199. #endif
  8200. {
  8201. self->destroy();
  8202. }
  8203. }
  8204. return 0;
  8205. #ifndef TOLUA_RELEASE
  8206. tolua_lerror:
  8207. tolua_error(tolua_S,"#ferror in function 'destroy'.",&tolua_err);
  8208. return 0;
  8209. #endif
  8210. }
  8211. #endif //#ifndef TOLUA_DISABLE
  8212.  
  8213. /* method: width of class CArray2Dd */
  8214. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_width00
  8215. static int tolua_bind_anl_CArray2Dd_width00(lua_State* tolua_S)
  8216. {
  8217. #ifndef TOLUA_RELEASE
  8218. tolua_Error tolua_err;
  8219. if (
  8220. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8221. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8222. )
  8223. goto tolua_lerror;
  8224. else
  8225. #endif
  8226. {
  8227. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  8228. #ifndef TOLUA_RELEASE
  8229. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'width'", NULL);
  8230. #endif
  8231. {
  8232. int tolua_ret = (int) self->width();
  8233. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8234. }
  8235. }
  8236. return 1;
  8237. #ifndef TOLUA_RELEASE
  8238. tolua_lerror:
  8239. tolua_error(tolua_S,"#ferror in function 'width'.",&tolua_err);
  8240. return 0;
  8241. #endif
  8242. }
  8243. #endif //#ifndef TOLUA_DISABLE
  8244.  
  8245. /* method: height of class CArray2Dd */
  8246. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_height00
  8247. static int tolua_bind_anl_CArray2Dd_height00(lua_State* tolua_S)
  8248. {
  8249. #ifndef TOLUA_RELEASE
  8250. tolua_Error tolua_err;
  8251. if (
  8252. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8253. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8254. )
  8255. goto tolua_lerror;
  8256. else
  8257. #endif
  8258. {
  8259. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  8260. #ifndef TOLUA_RELEASE
  8261. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'height'", NULL);
  8262. #endif
  8263. {
  8264. int tolua_ret = (int) self->height();
  8265. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8266. }
  8267. }
  8268. return 1;
  8269. #ifndef TOLUA_RELEASE
  8270. tolua_lerror:
  8271. tolua_error(tolua_S,"#ferror in function 'height'.",&tolua_err);
  8272. return 0;
  8273. #endif
  8274. }
  8275. #endif //#ifndef TOLUA_DISABLE
  8276.  
  8277. /* method: set of class CArray2Dd */
  8278. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_set00
  8279. static int tolua_bind_anl_CArray2Dd_set00(lua_State* tolua_S)
  8280. {
  8281. #ifndef TOLUA_RELEASE
  8282. tolua_Error tolua_err;
  8283. if (
  8284. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8285. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8286. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  8287. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  8288. !tolua_isnoobj(tolua_S,5,&tolua_err)
  8289. )
  8290. goto tolua_lerror;
  8291. else
  8292. #endif
  8293. {
  8294. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  8295. int x = ((int) tolua_tonumber(tolua_S,2,0));
  8296. int y = ((int) tolua_tonumber(tolua_S,3,0));
  8297. double v = ((double) tolua_tonumber(tolua_S,4,0));
  8298. #ifndef TOLUA_RELEASE
  8299. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set'", NULL);
  8300. #endif
  8301. {
  8302. self->set(x,y,v);
  8303. }
  8304. }
  8305. return 0;
  8306. #ifndef TOLUA_RELEASE
  8307. tolua_lerror:
  8308. tolua_error(tolua_S,"#ferror in function 'set'.",&tolua_err);
  8309. return 0;
  8310. #endif
  8311. }
  8312. #endif //#ifndef TOLUA_DISABLE
  8313.  
  8314. /* method: get of class CArray2Dd */
  8315. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_get00
  8316. static int tolua_bind_anl_CArray2Dd_get00(lua_State* tolua_S)
  8317. {
  8318. #ifndef TOLUA_RELEASE
  8319. tolua_Error tolua_err;
  8320. if (
  8321. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8322. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8323. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  8324. !tolua_isnoobj(tolua_S,4,&tolua_err)
  8325. )
  8326. goto tolua_lerror;
  8327. else
  8328. #endif
  8329. {
  8330. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  8331. int x = ((int) tolua_tonumber(tolua_S,2,0));
  8332. int y = ((int) tolua_tonumber(tolua_S,3,0));
  8333. #ifndef TOLUA_RELEASE
  8334. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'get'", NULL);
  8335. #endif
  8336. {
  8337. double tolua_ret = (double) self->get(x,y);
  8338. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8339. }
  8340. }
  8341. return 1;
  8342. #ifndef TOLUA_RELEASE
  8343. tolua_lerror:
  8344. tolua_error(tolua_S,"#ferror in function 'get'.",&tolua_err);
  8345. return 0;
  8346. #endif
  8347. }
  8348. #endif //#ifndef TOLUA_DISABLE
  8349.  
  8350. /* method: get of class CArray2Dd */
  8351. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_get01
  8352. static int tolua_bind_anl_CArray2Dd_get01(lua_State* tolua_S)
  8353. {
  8354. tolua_Error tolua_err;
  8355. if (
  8356. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8357. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8358. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  8359. !tolua_isnoobj(tolua_S,4,&tolua_err)
  8360. )
  8361. goto tolua_lerror;
  8362. else
  8363. {
  8364. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  8365. float x = ((float) tolua_tonumber(tolua_S,2,0));
  8366. float y = ((float) tolua_tonumber(tolua_S,3,0));
  8367. #ifndef TOLUA_RELEASE
  8368. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'get'", NULL);
  8369. #endif
  8370. {
  8371. double tolua_ret = (double) self->get(x,y);
  8372. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8373. }
  8374. }
  8375. return 1;
  8376. tolua_lerror:
  8377. return tolua_bind_anl_CArray2Dd_get00(tolua_S);
  8378. }
  8379. #endif //#ifndef TOLUA_DISABLE
  8380.  
  8381. /* method: getIndexed of class CArray2Dd */
  8382. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_getIndexed00
  8383. static int tolua_bind_anl_CArray2Dd_getIndexed00(lua_State* tolua_S)
  8384. {
  8385. #ifndef TOLUA_RELEASE
  8386. tolua_Error tolua_err;
  8387. if (
  8388. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8389. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8390. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8391. )
  8392. goto tolua_lerror;
  8393. else
  8394. #endif
  8395. {
  8396. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  8397. unsigned c = ((unsigned) tolua_tonumber(tolua_S,2,0));
  8398. #ifndef TOLUA_RELEASE
  8399. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getIndexed'", NULL);
  8400. #endif
  8401. {
  8402. double tolua_ret = (double) self->getIndexed(c);
  8403. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8404. }
  8405. }
  8406. return 1;
  8407. #ifndef TOLUA_RELEASE
  8408. tolua_lerror:
  8409. tolua_error(tolua_S,"#ferror in function 'getIndexed'.",&tolua_err);
  8410. return 0;
  8411. #endif
  8412. }
  8413. #endif //#ifndef TOLUA_DISABLE
  8414.  
  8415. /* method: getBilinear of class CArray2Dd */
  8416. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_getBilinear00
  8417. static int tolua_bind_anl_CArray2Dd_getBilinear00(lua_State* tolua_S)
  8418. {
  8419. #ifndef TOLUA_RELEASE
  8420. tolua_Error tolua_err;
  8421. if (
  8422. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8423. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8424. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  8425. !tolua_isnoobj(tolua_S,4,&tolua_err)
  8426. )
  8427. goto tolua_lerror;
  8428. else
  8429. #endif
  8430. {
  8431. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  8432. float x = ((float) tolua_tonumber(tolua_S,2,0));
  8433. float y = ((float) tolua_tonumber(tolua_S,3,0));
  8434. #ifndef TOLUA_RELEASE
  8435. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getBilinear'", NULL);
  8436. #endif
  8437. {
  8438. double tolua_ret = (double) self->getBilinear(x,y);
  8439. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8440. }
  8441. }
  8442. return 1;
  8443. #ifndef TOLUA_RELEASE
  8444. tolua_lerror:
  8445. tolua_error(tolua_S,"#ferror in function 'getBilinear'.",&tolua_err);
  8446. return 0;
  8447. #endif
  8448. }
  8449. #endif //#ifndef TOLUA_DISABLE
  8450.  
  8451. /* method: fill of class CArray2Dd */
  8452. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_fill00
  8453. static int tolua_bind_anl_CArray2Dd_fill00(lua_State* tolua_S)
  8454. {
  8455. #ifndef TOLUA_RELEASE
  8456. tolua_Error tolua_err;
  8457. if (
  8458. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8459. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8460. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8461. )
  8462. goto tolua_lerror;
  8463. else
  8464. #endif
  8465. {
  8466. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  8467. float v = ((float) tolua_tonumber(tolua_S,2,0));
  8468. #ifndef TOLUA_RELEASE
  8469. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'fill'", NULL);
  8470. #endif
  8471. {
  8472. self->fill(v);
  8473. }
  8474. }
  8475. return 0;
  8476. #ifndef TOLUA_RELEASE
  8477. tolua_lerror:
  8478. tolua_error(tolua_S,"#ferror in function 'fill'.",&tolua_err);
  8479. return 0;
  8480. #endif
  8481. }
  8482. #endif //#ifndef TOLUA_DISABLE
  8483.  
  8484. /* method: copyFrom of class CArray2Dd */
  8485. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_copyFrom00
  8486. static int tolua_bind_anl_CArray2Dd_copyFrom00(lua_State* tolua_S)
  8487. {
  8488. #ifndef TOLUA_RELEASE
  8489. tolua_Error tolua_err;
  8490. if (
  8491. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8492. !tolua_isusertype(tolua_S,2,"CArray2Dd",0,&tolua_err) ||
  8493. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8494. )
  8495. goto tolua_lerror;
  8496. else
  8497. #endif
  8498. {
  8499. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  8500. CArray2Dd* b = ((CArray2Dd*) tolua_tousertype(tolua_S,2,0));
  8501. #ifndef TOLUA_RELEASE
  8502. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'copyFrom'", NULL);
  8503. #endif
  8504. {
  8505. self->copyFrom(b);
  8506. }
  8507. }
  8508. return 0;
  8509. #ifndef TOLUA_RELEASE
  8510. tolua_lerror:
  8511. tolua_error(tolua_S,"#ferror in function 'copyFrom'.",&tolua_err);
  8512. return 0;
  8513. #endif
  8514. }
  8515. #endif //#ifndef TOLUA_DISABLE
  8516.  
  8517. /* method: addArray of class CArray2Dd */
  8518. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_addArray00
  8519. static int tolua_bind_anl_CArray2Dd_addArray00(lua_State* tolua_S)
  8520. {
  8521. #ifndef TOLUA_RELEASE
  8522. tolua_Error tolua_err;
  8523. if (
  8524. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8525. !tolua_isusertype(tolua_S,2,"CArray2Dd",0,&tolua_err) ||
  8526. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8527. )
  8528. goto tolua_lerror;
  8529. else
  8530. #endif
  8531. {
  8532. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  8533. CArray2Dd* b = ((CArray2Dd*) tolua_tousertype(tolua_S,2,0));
  8534. #ifndef TOLUA_RELEASE
  8535. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'addArray'", NULL);
  8536. #endif
  8537. {
  8538. self->addArray(b);
  8539. }
  8540. }
  8541. return 0;
  8542. #ifndef TOLUA_RELEASE
  8543. tolua_lerror:
  8544. tolua_error(tolua_S,"#ferror in function 'addArray'.",&tolua_err);
  8545. return 0;
  8546. #endif
  8547. }
  8548. #endif //#ifndef TOLUA_DISABLE
  8549.  
  8550. /* method: subtractArray of class CArray2Dd */
  8551. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_subtractArray00
  8552. static int tolua_bind_anl_CArray2Dd_subtractArray00(lua_State* tolua_S)
  8553. {
  8554. #ifndef TOLUA_RELEASE
  8555. tolua_Error tolua_err;
  8556. if (
  8557. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8558. !tolua_isusertype(tolua_S,2,"CArray2Dd",0,&tolua_err) ||
  8559. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8560. )
  8561. goto tolua_lerror;
  8562. else
  8563. #endif
  8564. {
  8565. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  8566. CArray2Dd* b = ((CArray2Dd*) tolua_tousertype(tolua_S,2,0));
  8567. #ifndef TOLUA_RELEASE
  8568. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'subtractArray'", NULL);
  8569. #endif
  8570. {
  8571. self->subtractArray(b);
  8572. }
  8573. }
  8574. return 0;
  8575. #ifndef TOLUA_RELEASE
  8576. tolua_lerror:
  8577. tolua_error(tolua_S,"#ferror in function 'subtractArray'.",&tolua_err);
  8578. return 0;
  8579. #endif
  8580. }
  8581. #endif //#ifndef TOLUA_DISABLE
  8582.  
  8583. /* method: multiplyArray of class CArray2Dd */
  8584. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_multiplyArray00
  8585. static int tolua_bind_anl_CArray2Dd_multiplyArray00(lua_State* tolua_S)
  8586. {
  8587. #ifndef TOLUA_RELEASE
  8588. tolua_Error tolua_err;
  8589. if (
  8590. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8591. !tolua_isusertype(tolua_S,2,"CArray2Dd",0,&tolua_err) ||
  8592. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8593. )
  8594. goto tolua_lerror;
  8595. else
  8596. #endif
  8597. {
  8598. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  8599. CArray2Dd* b = ((CArray2Dd*) tolua_tousertype(tolua_S,2,0));
  8600. #ifndef TOLUA_RELEASE
  8601. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'multiplyArray'", NULL);
  8602. #endif
  8603. {
  8604. self->multiplyArray(b);
  8605. }
  8606. }
  8607. return 0;
  8608. #ifndef TOLUA_RELEASE
  8609. tolua_lerror:
  8610. tolua_error(tolua_S,"#ferror in function 'multiplyArray'.",&tolua_err);
  8611. return 0;
  8612. #endif
  8613. }
  8614. #endif //#ifndef TOLUA_DISABLE
  8615.  
  8616. /* method: copyFromSub of class CArray2Dd */
  8617. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_copyFromSub00
  8618. static int tolua_bind_anl_CArray2Dd_copyFromSub00(lua_State* tolua_S)
  8619. {
  8620. #ifndef TOLUA_RELEASE
  8621. tolua_Error tolua_err;
  8622. if (
  8623. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8624. !tolua_isusertype(tolua_S,2,"CArray2Dd",0,&tolua_err) ||
  8625. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  8626. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  8627. !tolua_isnoobj(tolua_S,5,&tolua_err)
  8628. )
  8629. goto tolua_lerror;
  8630. else
  8631. #endif
  8632. {
  8633. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  8634. CArray2Dd* b = ((CArray2Dd*) tolua_tousertype(tolua_S,2,0));
  8635. int x = ((int) tolua_tonumber(tolua_S,3,0));
  8636. int y = ((int) tolua_tonumber(tolua_S,4,0));
  8637. #ifndef TOLUA_RELEASE
  8638. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'copyFromSub'", NULL);
  8639. #endif
  8640. {
  8641. self->copyFromSub(b,x,y);
  8642. }
  8643. }
  8644. return 0;
  8645. #ifndef TOLUA_RELEASE
  8646. tolua_lerror:
  8647. tolua_error(tolua_S,"#ferror in function 'copyFromSub'.",&tolua_err);
  8648. return 0;
  8649. #endif
  8650. }
  8651. #endif //#ifndef TOLUA_DISABLE
  8652.  
  8653. /* method: addArraySub of class CArray2Dd */
  8654. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_addArraySub00
  8655. static int tolua_bind_anl_CArray2Dd_addArraySub00(lua_State* tolua_S)
  8656. {
  8657. #ifndef TOLUA_RELEASE
  8658. tolua_Error tolua_err;
  8659. if (
  8660. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8661. !tolua_isusertype(tolua_S,2,"CArray2Dd",0,&tolua_err) ||
  8662. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  8663. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  8664. !tolua_isnoobj(tolua_S,5,&tolua_err)
  8665. )
  8666. goto tolua_lerror;
  8667. else
  8668. #endif
  8669. {
  8670. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  8671. CArray2Dd* b = ((CArray2Dd*) tolua_tousertype(tolua_S,2,0));
  8672. int x = ((int) tolua_tonumber(tolua_S,3,0));
  8673. int y = ((int) tolua_tonumber(tolua_S,4,0));
  8674. #ifndef TOLUA_RELEASE
  8675. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'addArraySub'", NULL);
  8676. #endif
  8677. {
  8678. self->addArraySub(b,x,y);
  8679. }
  8680. }
  8681. return 0;
  8682. #ifndef TOLUA_RELEASE
  8683. tolua_lerror:
  8684. tolua_error(tolua_S,"#ferror in function 'addArraySub'.",&tolua_err);
  8685. return 0;
  8686. #endif
  8687. }
  8688. #endif //#ifndef TOLUA_DISABLE
  8689.  
  8690. /* method: subtractArraySub of class CArray2Dd */
  8691. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_subtractArraySub00
  8692. static int tolua_bind_anl_CArray2Dd_subtractArraySub00(lua_State* tolua_S)
  8693. {
  8694. #ifndef TOLUA_RELEASE
  8695. tolua_Error tolua_err;
  8696. if (
  8697. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8698. !tolua_isusertype(tolua_S,2,"CArray2Dd",0,&tolua_err) ||
  8699. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  8700. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  8701. !tolua_isnoobj(tolua_S,5,&tolua_err)
  8702. )
  8703. goto tolua_lerror;
  8704. else
  8705. #endif
  8706. {
  8707. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  8708. CArray2Dd* b = ((CArray2Dd*) tolua_tousertype(tolua_S,2,0));
  8709. int x = ((int) tolua_tonumber(tolua_S,3,0));
  8710. int y = ((int) tolua_tonumber(tolua_S,4,0));
  8711. #ifndef TOLUA_RELEASE
  8712. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'subtractArraySub'", NULL);
  8713. #endif
  8714. {
  8715. self->subtractArraySub(b,x,y);
  8716. }
  8717. }
  8718. return 0;
  8719. #ifndef TOLUA_RELEASE
  8720. tolua_lerror:
  8721. tolua_error(tolua_S,"#ferror in function 'subtractArraySub'.",&tolua_err);
  8722. return 0;
  8723. #endif
  8724. }
  8725. #endif //#ifndef TOLUA_DISABLE
  8726.  
  8727. /* method: multiplyArraySub of class CArray2Dd */
  8728. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_multiplyArraySub00
  8729. static int tolua_bind_anl_CArray2Dd_multiplyArraySub00(lua_State* tolua_S)
  8730. {
  8731. #ifndef TOLUA_RELEASE
  8732. tolua_Error tolua_err;
  8733. if (
  8734. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8735. !tolua_isusertype(tolua_S,2,"CArray2Dd",0,&tolua_err) ||
  8736. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  8737. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  8738. !tolua_isnoobj(tolua_S,5,&tolua_err)
  8739. )
  8740. goto tolua_lerror;
  8741. else
  8742. #endif
  8743. {
  8744. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  8745. CArray2Dd* b = ((CArray2Dd*) tolua_tousertype(tolua_S,2,0));
  8746. int x = ((int) tolua_tonumber(tolua_S,3,0));
  8747. int y = ((int) tolua_tonumber(tolua_S,4,0));
  8748. #ifndef TOLUA_RELEASE
  8749. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'multiplyArraySub'", NULL);
  8750. #endif
  8751. {
  8752. self->multiplyArraySub(b,x,y);
  8753. }
  8754. }
  8755. return 0;
  8756. #ifndef TOLUA_RELEASE
  8757. tolua_lerror:
  8758. tolua_error(tolua_S,"#ferror in function 'multiplyArraySub'.",&tolua_err);
  8759. return 0;
  8760. #endif
  8761. }
  8762. #endif //#ifndef TOLUA_DISABLE
  8763.  
  8764. /* method: scale of class CArray2Dd */
  8765. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_scale00
  8766. static int tolua_bind_anl_CArray2Dd_scale00(lua_State* tolua_S)
  8767. {
  8768. #ifndef TOLUA_RELEASE
  8769. tolua_Error tolua_err;
  8770. if (
  8771. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8772. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8773. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8774. )
  8775. goto tolua_lerror;
  8776. else
  8777. #endif
  8778. {
  8779. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  8780. float s = ((float) tolua_tonumber(tolua_S,2,0));
  8781. #ifndef TOLUA_RELEASE
  8782. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'scale'", NULL);
  8783. #endif
  8784. {
  8785. self->scale(s);
  8786. }
  8787. }
  8788. return 0;
  8789. #ifndef TOLUA_RELEASE
  8790. tolua_lerror:
  8791. tolua_error(tolua_S,"#ferror in function 'scale'.",&tolua_err);
  8792. return 0;
  8793. #endif
  8794. }
  8795. #endif //#ifndef TOLUA_DISABLE
  8796.  
  8797. /* method: getMax of class CArray2Dd */
  8798. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_getMax00
  8799. static int tolua_bind_anl_CArray2Dd_getMax00(lua_State* tolua_S)
  8800. {
  8801. #ifndef TOLUA_RELEASE
  8802. tolua_Error tolua_err;
  8803. if (
  8804. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8805. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8806. )
  8807. goto tolua_lerror;
  8808. else
  8809. #endif
  8810. {
  8811. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  8812. #ifndef TOLUA_RELEASE
  8813. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getMax'", NULL);
  8814. #endif
  8815. {
  8816. double tolua_ret = (double) self->getMax();
  8817. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8818. }
  8819. }
  8820. return 1;
  8821. #ifndef TOLUA_RELEASE
  8822. tolua_lerror:
  8823. tolua_error(tolua_S,"#ferror in function 'getMax'.",&tolua_err);
  8824. return 0;
  8825. #endif
  8826. }
  8827. #endif //#ifndef TOLUA_DISABLE
  8828.  
  8829. /* method: getMin of class CArray2Dd */
  8830. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_getMin00
  8831. static int tolua_bind_anl_CArray2Dd_getMin00(lua_State* tolua_S)
  8832. {
  8833. #ifndef TOLUA_RELEASE
  8834. tolua_Error tolua_err;
  8835. if (
  8836. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8837. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8838. )
  8839. goto tolua_lerror;
  8840. else
  8841. #endif
  8842. {
  8843. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  8844. #ifndef TOLUA_RELEASE
  8845. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getMin'", NULL);
  8846. #endif
  8847. {
  8848. double tolua_ret = (double) self->getMin();
  8849. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8850. }
  8851. }
  8852. return 1;
  8853. #ifndef TOLUA_RELEASE
  8854. tolua_lerror:
  8855. tolua_error(tolua_S,"#ferror in function 'getMin'.",&tolua_err);
  8856. return 0;
  8857. #endif
  8858. }
  8859. #endif //#ifndef TOLUA_DISABLE
  8860.  
  8861. /* method: scaleToRange of class CArray2Dd */
  8862. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_scaleToRange00
  8863. static int tolua_bind_anl_CArray2Dd_scaleToRange00(lua_State* tolua_S)
  8864. {
  8865. #ifndef TOLUA_RELEASE
  8866. tolua_Error tolua_err;
  8867. if (
  8868. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8869. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8870. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  8871. !tolua_isnoobj(tolua_S,4,&tolua_err)
  8872. )
  8873. goto tolua_lerror;
  8874. else
  8875. #endif
  8876. {
  8877. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  8878. float low = ((float) tolua_tonumber(tolua_S,2,0));
  8879. float high = ((float) tolua_tonumber(tolua_S,3,0));
  8880. #ifndef TOLUA_RELEASE
  8881. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'scaleToRange'", NULL);
  8882. #endif
  8883. {
  8884. self->scaleToRange(low,high);
  8885. }
  8886. }
  8887. return 0;
  8888. #ifndef TOLUA_RELEASE
  8889. tolua_lerror:
  8890. tolua_error(tolua_S,"#ferror in function 'scaleToRange'.",&tolua_err);
  8891. return 0;
  8892. #endif
  8893. }
  8894. #endif //#ifndef TOLUA_DISABLE
  8895.  
  8896. /* method: wrapCoords of class CArray2Dd */
  8897. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_wrapCoords00
  8898. static int tolua_bind_anl_CArray2Dd_wrapCoords00(lua_State* tolua_S)
  8899. {
  8900. #ifndef TOLUA_RELEASE
  8901. tolua_Error tolua_err;
  8902. if (
  8903. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8904. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8905. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  8906. !tolua_isnoobj(tolua_S,4,&tolua_err)
  8907. )
  8908. goto tolua_lerror;
  8909. else
  8910. #endif
  8911. {
  8912. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  8913. int x = ((int) tolua_tonumber(tolua_S,2,0));
  8914. int y = ((int) tolua_tonumber(tolua_S,3,0));
  8915. #ifndef TOLUA_RELEASE
  8916. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'wrapCoords'", NULL);
  8917. #endif
  8918. {
  8919. self->wrapCoords(x,y);
  8920. tolua_pushnumber(tolua_S,(lua_Number)x);
  8921. tolua_pushnumber(tolua_S,(lua_Number)y);
  8922. }
  8923. }
  8924. return 2;
  8925. #ifndef TOLUA_RELEASE
  8926. tolua_lerror:
  8927. tolua_error(tolua_S,"#ferror in function 'wrapCoords'.",&tolua_err);
  8928. return 0;
  8929. #endif
  8930. }
  8931. #endif //#ifndef TOLUA_DISABLE
  8932.  
  8933. /* method: offset of class CArray2Dd */
  8934. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_offset00
  8935. static int tolua_bind_anl_CArray2Dd_offset00(lua_State* tolua_S)
  8936. {
  8937. #ifndef TOLUA_RELEASE
  8938. tolua_Error tolua_err;
  8939. if (
  8940. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8941. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8942. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  8943. !tolua_isnoobj(tolua_S,4,&tolua_err)
  8944. )
  8945. goto tolua_lerror;
  8946. else
  8947. #endif
  8948. {
  8949. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  8950. int ox = ((int) tolua_tonumber(tolua_S,2,0));
  8951. int oy = ((int) tolua_tonumber(tolua_S,3,0));
  8952. #ifndef TOLUA_RELEASE
  8953. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'offset'", NULL);
  8954. #endif
  8955. {
  8956. self->offset(ox,oy);
  8957. }
  8958. }
  8959. return 0;
  8960. #ifndef TOLUA_RELEASE
  8961. tolua_lerror:
  8962. tolua_error(tolua_S,"#ferror in function 'offset'.",&tolua_err);
  8963. return 0;
  8964. #endif
  8965. }
  8966. #endif //#ifndef TOLUA_DISABLE
  8967.  
  8968. /* method: flipVertical of class CArray2Dd */
  8969. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_flipVertical00
  8970. static int tolua_bind_anl_CArray2Dd_flipVertical00(lua_State* tolua_S)
  8971. {
  8972. #ifndef TOLUA_RELEASE
  8973. tolua_Error tolua_err;
  8974. if (
  8975. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  8976. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8977. )
  8978. goto tolua_lerror;
  8979. else
  8980. #endif
  8981. {
  8982. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  8983. #ifndef TOLUA_RELEASE
  8984. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'flipVertical'", NULL);
  8985. #endif
  8986. {
  8987. self->flipVertical();
  8988. }
  8989. }
  8990. return 0;
  8991. #ifndef TOLUA_RELEASE
  8992. tolua_lerror:
  8993. tolua_error(tolua_S,"#ferror in function 'flipVertical'.",&tolua_err);
  8994. return 0;
  8995. #endif
  8996. }
  8997. #endif //#ifndef TOLUA_DISABLE
  8998.  
  8999. /* method: flipHorizontal of class CArray2Dd */
  9000. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_flipHorizontal00
  9001. static int tolua_bind_anl_CArray2Dd_flipHorizontal00(lua_State* tolua_S)
  9002. {
  9003. #ifndef TOLUA_RELEASE
  9004. tolua_Error tolua_err;
  9005. if (
  9006. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  9007. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9008. )
  9009. goto tolua_lerror;
  9010. else
  9011. #endif
  9012. {
  9013. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  9014. #ifndef TOLUA_RELEASE
  9015. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'flipHorizontal'", NULL);
  9016. #endif
  9017. {
  9018. self->flipHorizontal();
  9019. }
  9020. }
  9021. return 0;
  9022. #ifndef TOLUA_RELEASE
  9023. tolua_lerror:
  9024. tolua_error(tolua_S,"#ferror in function 'flipHorizontal'.",&tolua_err);
  9025. return 0;
  9026. #endif
  9027. }
  9028. #endif //#ifndef TOLUA_DISABLE
  9029.  
  9030. /* method: blur of class CArray2Dd */
  9031. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Dd_blur00
  9032. static int tolua_bind_anl_CArray2Dd_blur00(lua_State* tolua_S)
  9033. {
  9034. #ifndef TOLUA_RELEASE
  9035. tolua_Error tolua_err;
  9036. if (
  9037. !tolua_isusertype(tolua_S,1,"CArray2Dd",0,&tolua_err) ||
  9038. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9039. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9040. !tolua_isboolean(tolua_S,4,0,&tolua_err) ||
  9041. !tolua_isnoobj(tolua_S,5,&tolua_err)
  9042. )
  9043. goto tolua_lerror;
  9044. else
  9045. #endif
  9046. {
  9047. CArray2Dd* self = (CArray2Dd*) tolua_tousertype(tolua_S,1,0);
  9048. int blurwidth = ((int) tolua_tonumber(tolua_S,2,0));
  9049. int blurheight = ((int) tolua_tonumber(tolua_S,3,0));
  9050. bool seamless = ((bool) tolua_toboolean(tolua_S,4,0));
  9051. #ifndef TOLUA_RELEASE
  9052. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'blur'", NULL);
  9053. #endif
  9054. {
  9055. self->blur(blurwidth,blurheight,seamless);
  9056. }
  9057. }
  9058. return 0;
  9059. #ifndef TOLUA_RELEASE
  9060. tolua_lerror:
  9061. tolua_error(tolua_S,"#ferror in function 'blur'.",&tolua_err);
  9062. return 0;
  9063. #endif
  9064. }
  9065. #endif //#ifndef TOLUA_DISABLE
  9066.  
  9067. /* method: new of class CArray2Drgba */
  9068. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_new00
  9069. static int tolua_bind_anl_CArray2Drgba_new00(lua_State* tolua_S)
  9070. {
  9071. #ifndef TOLUA_RELEASE
  9072. tolua_Error tolua_err;
  9073. if (
  9074. !tolua_isusertable(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9075. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9076. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9077. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9078. )
  9079. goto tolua_lerror;
  9080. else
  9081. #endif
  9082. {
  9083. int w = ((int) tolua_tonumber(tolua_S,2,0));
  9084. int h = ((int) tolua_tonumber(tolua_S,3,0));
  9085. {
  9086. CArray2Drgba* tolua_ret = (CArray2Drgba*) Mtolua_new((CArray2Drgba)(w,h));
  9087. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CArray2Drgba");
  9088. }
  9089. }
  9090. return 1;
  9091. #ifndef TOLUA_RELEASE
  9092. tolua_lerror:
  9093. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  9094. return 0;
  9095. #endif
  9096. }
  9097. #endif //#ifndef TOLUA_DISABLE
  9098.  
  9099. /* method: new_local of class CArray2Drgba */
  9100. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_new00_local
  9101. static int tolua_bind_anl_CArray2Drgba_new00_local(lua_State* tolua_S)
  9102. {
  9103. #ifndef TOLUA_RELEASE
  9104. tolua_Error tolua_err;
  9105. if (
  9106. !tolua_isusertable(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9107. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9108. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9109. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9110. )
  9111. goto tolua_lerror;
  9112. else
  9113. #endif
  9114. {
  9115. int w = ((int) tolua_tonumber(tolua_S,2,0));
  9116. int h = ((int) tolua_tonumber(tolua_S,3,0));
  9117. {
  9118. CArray2Drgba* tolua_ret = (CArray2Drgba*) Mtolua_new((CArray2Drgba)(w,h));
  9119. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CArray2Drgba");
  9120. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  9121. }
  9122. }
  9123. return 1;
  9124. #ifndef TOLUA_RELEASE
  9125. tolua_lerror:
  9126. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  9127. return 0;
  9128. #endif
  9129. }
  9130. #endif //#ifndef TOLUA_DISABLE
  9131.  
  9132. /* method: new of class CArray2Drgba */
  9133. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_new01
  9134. static int tolua_bind_anl_CArray2Drgba_new01(lua_State* tolua_S)
  9135. {
  9136. tolua_Error tolua_err;
  9137. if (
  9138. !tolua_isusertable(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9139. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9140. )
  9141. goto tolua_lerror;
  9142. else
  9143. {
  9144. {
  9145. CArray2Drgba* tolua_ret = (CArray2Drgba*) Mtolua_new((CArray2Drgba)());
  9146. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CArray2Drgba");
  9147. }
  9148. }
  9149. return 1;
  9150. tolua_lerror:
  9151. return tolua_bind_anl_CArray2Drgba_new00(tolua_S);
  9152. }
  9153. #endif //#ifndef TOLUA_DISABLE
  9154.  
  9155. /* method: new_local of class CArray2Drgba */
  9156. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_new01_local
  9157. static int tolua_bind_anl_CArray2Drgba_new01_local(lua_State* tolua_S)
  9158. {
  9159. tolua_Error tolua_err;
  9160. if (
  9161. !tolua_isusertable(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9162. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9163. )
  9164. goto tolua_lerror;
  9165. else
  9166. {
  9167. {
  9168. CArray2Drgba* tolua_ret = (CArray2Drgba*) Mtolua_new((CArray2Drgba)());
  9169. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CArray2Drgba");
  9170. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  9171. }
  9172. }
  9173. return 1;
  9174. tolua_lerror:
  9175. return tolua_bind_anl_CArray2Drgba_new00_local(tolua_S);
  9176. }
  9177. #endif //#ifndef TOLUA_DISABLE
  9178.  
  9179. /* method: delete of class CArray2Drgba */
  9180. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_delete00
  9181. static int tolua_bind_anl_CArray2Drgba_delete00(lua_State* tolua_S)
  9182. {
  9183. #ifndef TOLUA_RELEASE
  9184. tolua_Error tolua_err;
  9185. if (
  9186. !tolua_isusertype(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9187. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9188. )
  9189. goto tolua_lerror;
  9190. else
  9191. #endif
  9192. {
  9193. CArray2Drgba* self = (CArray2Drgba*) tolua_tousertype(tolua_S,1,0);
  9194. #ifndef TOLUA_RELEASE
  9195. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  9196. #endif
  9197. Mtolua_delete(self);
  9198. }
  9199. return 0;
  9200. #ifndef TOLUA_RELEASE
  9201. tolua_lerror:
  9202. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  9203. return 0;
  9204. #endif
  9205. }
  9206. #endif //#ifndef TOLUA_DISABLE
  9207.  
  9208. /* method: resize of class CArray2Drgba */
  9209. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_resize00
  9210. static int tolua_bind_anl_CArray2Drgba_resize00(lua_State* tolua_S)
  9211. {
  9212. #ifndef TOLUA_RELEASE
  9213. tolua_Error tolua_err;
  9214. if (
  9215. !tolua_isusertype(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9216. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9217. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9218. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9219. )
  9220. goto tolua_lerror;
  9221. else
  9222. #endif
  9223. {
  9224. CArray2Drgba* self = (CArray2Drgba*) tolua_tousertype(tolua_S,1,0);
  9225. int w = ((int) tolua_tonumber(tolua_S,2,0));
  9226. int h = ((int) tolua_tonumber(tolua_S,3,0));
  9227. #ifndef TOLUA_RELEASE
  9228. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'resize'", NULL);
  9229. #endif
  9230. {
  9231. self->resize(w,h);
  9232. }
  9233. }
  9234. return 0;
  9235. #ifndef TOLUA_RELEASE
  9236. tolua_lerror:
  9237. tolua_error(tolua_S,"#ferror in function 'resize'.",&tolua_err);
  9238. return 0;
  9239. #endif
  9240. }
  9241. #endif //#ifndef TOLUA_DISABLE
  9242.  
  9243. /* method: destroy of class CArray2Drgba */
  9244. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_destroy00
  9245. static int tolua_bind_anl_CArray2Drgba_destroy00(lua_State* tolua_S)
  9246. {
  9247. #ifndef TOLUA_RELEASE
  9248. tolua_Error tolua_err;
  9249. if (
  9250. !tolua_isusertype(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9251. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9252. )
  9253. goto tolua_lerror;
  9254. else
  9255. #endif
  9256. {
  9257. CArray2Drgba* self = (CArray2Drgba*) tolua_tousertype(tolua_S,1,0);
  9258. #ifndef TOLUA_RELEASE
  9259. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'destroy'", NULL);
  9260. #endif
  9261. {
  9262. self->destroy();
  9263. }
  9264. }
  9265. return 0;
  9266. #ifndef TOLUA_RELEASE
  9267. tolua_lerror:
  9268. tolua_error(tolua_S,"#ferror in function 'destroy'.",&tolua_err);
  9269. return 0;
  9270. #endif
  9271. }
  9272. #endif //#ifndef TOLUA_DISABLE
  9273.  
  9274. /* method: width of class CArray2Drgba */
  9275. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_width00
  9276. static int tolua_bind_anl_CArray2Drgba_width00(lua_State* tolua_S)
  9277. {
  9278. #ifndef TOLUA_RELEASE
  9279. tolua_Error tolua_err;
  9280. if (
  9281. !tolua_isusertype(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9282. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9283. )
  9284. goto tolua_lerror;
  9285. else
  9286. #endif
  9287. {
  9288. CArray2Drgba* self = (CArray2Drgba*) tolua_tousertype(tolua_S,1,0);
  9289. #ifndef TOLUA_RELEASE
  9290. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'width'", NULL);
  9291. #endif
  9292. {
  9293. int tolua_ret = (int) self->width();
  9294. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  9295. }
  9296. }
  9297. return 1;
  9298. #ifndef TOLUA_RELEASE
  9299. tolua_lerror:
  9300. tolua_error(tolua_S,"#ferror in function 'width'.",&tolua_err);
  9301. return 0;
  9302. #endif
  9303. }
  9304. #endif //#ifndef TOLUA_DISABLE
  9305.  
  9306. /* method: height of class CArray2Drgba */
  9307. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_height00
  9308. static int tolua_bind_anl_CArray2Drgba_height00(lua_State* tolua_S)
  9309. {
  9310. #ifndef TOLUA_RELEASE
  9311. tolua_Error tolua_err;
  9312. if (
  9313. !tolua_isusertype(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9314. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9315. )
  9316. goto tolua_lerror;
  9317. else
  9318. #endif
  9319. {
  9320. CArray2Drgba* self = (CArray2Drgba*) tolua_tousertype(tolua_S,1,0);
  9321. #ifndef TOLUA_RELEASE
  9322. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'height'", NULL);
  9323. #endif
  9324. {
  9325. int tolua_ret = (int) self->height();
  9326. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  9327. }
  9328. }
  9329. return 1;
  9330. #ifndef TOLUA_RELEASE
  9331. tolua_lerror:
  9332. tolua_error(tolua_S,"#ferror in function 'height'.",&tolua_err);
  9333. return 0;
  9334. #endif
  9335. }
  9336. #endif //#ifndef TOLUA_DISABLE
  9337.  
  9338. /* method: set of class CArray2Drgba */
  9339. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_set00
  9340. static int tolua_bind_anl_CArray2Drgba_set00(lua_State* tolua_S)
  9341. {
  9342. #ifndef TOLUA_RELEASE
  9343. tolua_Error tolua_err;
  9344. if (
  9345. !tolua_isusertype(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9346. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9347. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9348. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"SRGBA",0,&tolua_err)) ||
  9349. !tolua_isnoobj(tolua_S,5,&tolua_err)
  9350. )
  9351. goto tolua_lerror;
  9352. else
  9353. #endif
  9354. {
  9355. CArray2Drgba* self = (CArray2Drgba*) tolua_tousertype(tolua_S,1,0);
  9356. int x = ((int) tolua_tonumber(tolua_S,2,0));
  9357. int y = ((int) tolua_tonumber(tolua_S,3,0));
  9358. SRGBA v = *((SRGBA*) tolua_tousertype(tolua_S,4,0));
  9359. #ifndef TOLUA_RELEASE
  9360. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set'", NULL);
  9361. #endif
  9362. {
  9363. self->set(x,y,v);
  9364. }
  9365. }
  9366. return 0;
  9367. #ifndef TOLUA_RELEASE
  9368. tolua_lerror:
  9369. tolua_error(tolua_S,"#ferror in function 'set'.",&tolua_err);
  9370. return 0;
  9371. #endif
  9372. }
  9373. #endif //#ifndef TOLUA_DISABLE
  9374.  
  9375. /* method: get of class CArray2Drgba */
  9376. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_get00
  9377. static int tolua_bind_anl_CArray2Drgba_get00(lua_State* tolua_S)
  9378. {
  9379. #ifndef TOLUA_RELEASE
  9380. tolua_Error tolua_err;
  9381. if (
  9382. !tolua_isusertype(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9383. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9384. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9385. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9386. )
  9387. goto tolua_lerror;
  9388. else
  9389. #endif
  9390. {
  9391. CArray2Drgba* self = (CArray2Drgba*) tolua_tousertype(tolua_S,1,0);
  9392. int x = ((int) tolua_tonumber(tolua_S,2,0));
  9393. int y = ((int) tolua_tonumber(tolua_S,3,0));
  9394. #ifndef TOLUA_RELEASE
  9395. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'get'", NULL);
  9396. #endif
  9397. {
  9398. SRGBA tolua_ret = (SRGBA) self->get(x,y);
  9399. {
  9400. #ifdef __cplusplus
  9401. void* tolua_obj = Mtolua_new((SRGBA)(tolua_ret));
  9402. tolua_pushusertype(tolua_S,tolua_obj,"SRGBA");
  9403. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  9404. #else
  9405. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(SRGBA));
  9406. tolua_pushusertype(tolua_S,tolua_obj,"SRGBA");
  9407. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  9408. #endif
  9409. }
  9410. }
  9411. }
  9412. return 1;
  9413. #ifndef TOLUA_RELEASE
  9414. tolua_lerror:
  9415. tolua_error(tolua_S,"#ferror in function 'get'.",&tolua_err);
  9416. return 0;
  9417. #endif
  9418. }
  9419. #endif //#ifndef TOLUA_DISABLE
  9420.  
  9421. /* method: get of class CArray2Drgba */
  9422. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_get01
  9423. static int tolua_bind_anl_CArray2Drgba_get01(lua_State* tolua_S)
  9424. {
  9425. tolua_Error tolua_err;
  9426. if (
  9427. !tolua_isusertype(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9428. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9429. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9430. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9431. )
  9432. goto tolua_lerror;
  9433. else
  9434. {
  9435. CArray2Drgba* self = (CArray2Drgba*) tolua_tousertype(tolua_S,1,0);
  9436. float x = ((float) tolua_tonumber(tolua_S,2,0));
  9437. float y = ((float) tolua_tonumber(tolua_S,3,0));
  9438. #ifndef TOLUA_RELEASE
  9439. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'get'", NULL);
  9440. #endif
  9441. {
  9442. SRGBA tolua_ret = (SRGBA) self->get(x,y);
  9443. {
  9444. #ifdef __cplusplus
  9445. void* tolua_obj = Mtolua_new((SRGBA)(tolua_ret));
  9446. tolua_pushusertype(tolua_S,tolua_obj,"SRGBA");
  9447. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  9448. #else
  9449. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(SRGBA));
  9450. tolua_pushusertype(tolua_S,tolua_obj,"SRGBA");
  9451. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  9452. #endif
  9453. }
  9454. }
  9455. }
  9456. return 1;
  9457. tolua_lerror:
  9458. return tolua_bind_anl_CArray2Drgba_get00(tolua_S);
  9459. }
  9460. #endif //#ifndef TOLUA_DISABLE
  9461.  
  9462. /* method: getIndexed of class CArray2Drgba */
  9463. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_getIndexed00
  9464. static int tolua_bind_anl_CArray2Drgba_getIndexed00(lua_State* tolua_S)
  9465. {
  9466. #ifndef TOLUA_RELEASE
  9467. tolua_Error tolua_err;
  9468. if (
  9469. !tolua_isusertype(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9470. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9471. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9472. )
  9473. goto tolua_lerror;
  9474. else
  9475. #endif
  9476. {
  9477. CArray2Drgba* self = (CArray2Drgba*) tolua_tousertype(tolua_S,1,0);
  9478. unsigned c = ((unsigned) tolua_tonumber(tolua_S,2,0));
  9479. #ifndef TOLUA_RELEASE
  9480. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getIndexed'", NULL);
  9481. #endif
  9482. {
  9483. SRGBA tolua_ret = (SRGBA) self->getIndexed(c);
  9484. {
  9485. #ifdef __cplusplus
  9486. void* tolua_obj = Mtolua_new((SRGBA)(tolua_ret));
  9487. tolua_pushusertype(tolua_S,tolua_obj,"SRGBA");
  9488. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  9489. #else
  9490. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(SRGBA));
  9491. tolua_pushusertype(tolua_S,tolua_obj,"SRGBA");
  9492. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  9493. #endif
  9494. }
  9495. }
  9496. }
  9497. return 1;
  9498. #ifndef TOLUA_RELEASE
  9499. tolua_lerror:
  9500. tolua_error(tolua_S,"#ferror in function 'getIndexed'.",&tolua_err);
  9501. return 0;
  9502. #endif
  9503. }
  9504. #endif //#ifndef TOLUA_DISABLE
  9505.  
  9506. /* method: getBilinear of class CArray2Drgba */
  9507. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_getBilinear00
  9508. static int tolua_bind_anl_CArray2Drgba_getBilinear00(lua_State* tolua_S)
  9509. {
  9510. #ifndef TOLUA_RELEASE
  9511. tolua_Error tolua_err;
  9512. if (
  9513. !tolua_isusertype(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9514. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9515. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9516. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9517. )
  9518. goto tolua_lerror;
  9519. else
  9520. #endif
  9521. {
  9522. CArray2Drgba* self = (CArray2Drgba*) tolua_tousertype(tolua_S,1,0);
  9523. float x = ((float) tolua_tonumber(tolua_S,2,0));
  9524. float y = ((float) tolua_tonumber(tolua_S,3,0));
  9525. #ifndef TOLUA_RELEASE
  9526. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getBilinear'", NULL);
  9527. #endif
  9528. {
  9529. SRGBA tolua_ret = (SRGBA) self->getBilinear(x,y);
  9530. {
  9531. #ifdef __cplusplus
  9532. void* tolua_obj = Mtolua_new((SRGBA)(tolua_ret));
  9533. tolua_pushusertype(tolua_S,tolua_obj,"SRGBA");
  9534. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  9535. #else
  9536. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(SRGBA));
  9537. tolua_pushusertype(tolua_S,tolua_obj,"SRGBA");
  9538. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  9539. #endif
  9540. }
  9541. }
  9542. }
  9543. return 1;
  9544. #ifndef TOLUA_RELEASE
  9545. tolua_lerror:
  9546. tolua_error(tolua_S,"#ferror in function 'getBilinear'.",&tolua_err);
  9547. return 0;
  9548. #endif
  9549. }
  9550. #endif //#ifndef TOLUA_DISABLE
  9551.  
  9552. /* method: fill of class CArray2Drgba */
  9553. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_fill00
  9554. static int tolua_bind_anl_CArray2Drgba_fill00(lua_State* tolua_S)
  9555. {
  9556. #ifndef TOLUA_RELEASE
  9557. tolua_Error tolua_err;
  9558. if (
  9559. !tolua_isusertype(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9560. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"SRGBA",0,&tolua_err)) ||
  9561. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9562. )
  9563. goto tolua_lerror;
  9564. else
  9565. #endif
  9566. {
  9567. CArray2Drgba* self = (CArray2Drgba*) tolua_tousertype(tolua_S,1,0);
  9568. SRGBA v = *((SRGBA*) tolua_tousertype(tolua_S,2,0));
  9569. #ifndef TOLUA_RELEASE
  9570. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'fill'", NULL);
  9571. #endif
  9572. {
  9573. self->fill(v);
  9574. }
  9575. }
  9576. return 0;
  9577. #ifndef TOLUA_RELEASE
  9578. tolua_lerror:
  9579. tolua_error(tolua_S,"#ferror in function 'fill'.",&tolua_err);
  9580. return 0;
  9581. #endif
  9582. }
  9583. #endif //#ifndef TOLUA_DISABLE
  9584.  
  9585. /* method: copyFrom of class CArray2Drgba */
  9586. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_copyFrom00
  9587. static int tolua_bind_anl_CArray2Drgba_copyFrom00(lua_State* tolua_S)
  9588. {
  9589. #ifndef TOLUA_RELEASE
  9590. tolua_Error tolua_err;
  9591. if (
  9592. !tolua_isusertype(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9593. !tolua_isusertype(tolua_S,2,"CArray2Drgba",0,&tolua_err) ||
  9594. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9595. )
  9596. goto tolua_lerror;
  9597. else
  9598. #endif
  9599. {
  9600. CArray2Drgba* self = (CArray2Drgba*) tolua_tousertype(tolua_S,1,0);
  9601. CArray2Drgba* b = ((CArray2Drgba*) tolua_tousertype(tolua_S,2,0));
  9602. #ifndef TOLUA_RELEASE
  9603. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'copyFrom'", NULL);
  9604. #endif
  9605. {
  9606. self->copyFrom(b);
  9607. }
  9608. }
  9609. return 0;
  9610. #ifndef TOLUA_RELEASE
  9611. tolua_lerror:
  9612. tolua_error(tolua_S,"#ferror in function 'copyFrom'.",&tolua_err);
  9613. return 0;
  9614. #endif
  9615. }
  9616. #endif //#ifndef TOLUA_DISABLE
  9617.  
  9618. /* method: addArray of class CArray2Drgba */
  9619. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_addArray00
  9620. static int tolua_bind_anl_CArray2Drgba_addArray00(lua_State* tolua_S)
  9621. {
  9622. #ifndef TOLUA_RELEASE
  9623. tolua_Error tolua_err;
  9624. if (
  9625. !tolua_isusertype(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9626. !tolua_isusertype(tolua_S,2,"CArray2Drgba",0,&tolua_err) ||
  9627. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9628. )
  9629. goto tolua_lerror;
  9630. else
  9631. #endif
  9632. {
  9633. CArray2Drgba* self = (CArray2Drgba*) tolua_tousertype(tolua_S,1,0);
  9634. CArray2Drgba* b = ((CArray2Drgba*) tolua_tousertype(tolua_S,2,0));
  9635. #ifndef TOLUA_RELEASE
  9636. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'addArray'", NULL);
  9637. #endif
  9638. {
  9639. self->addArray(b);
  9640. }
  9641. }
  9642. return 0;
  9643. #ifndef TOLUA_RELEASE
  9644. tolua_lerror:
  9645. tolua_error(tolua_S,"#ferror in function 'addArray'.",&tolua_err);
  9646. return 0;
  9647. #endif
  9648. }
  9649. #endif //#ifndef TOLUA_DISABLE
  9650.  
  9651. /* method: subtractArray of class CArray2Drgba */
  9652. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_subtractArray00
  9653. static int tolua_bind_anl_CArray2Drgba_subtractArray00(lua_State* tolua_S)
  9654. {
  9655. #ifndef TOLUA_RELEASE
  9656. tolua_Error tolua_err;
  9657. if (
  9658. !tolua_isusertype(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9659. !tolua_isusertype(tolua_S,2,"CArray2Drgba",0,&tolua_err) ||
  9660. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9661. )
  9662. goto tolua_lerror;
  9663. else
  9664. #endif
  9665. {
  9666. CArray2Drgba* self = (CArray2Drgba*) tolua_tousertype(tolua_S,1,0);
  9667. CArray2Drgba* b = ((CArray2Drgba*) tolua_tousertype(tolua_S,2,0));
  9668. #ifndef TOLUA_RELEASE
  9669. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'subtractArray'", NULL);
  9670. #endif
  9671. {
  9672. self->subtractArray(b);
  9673. }
  9674. }
  9675. return 0;
  9676. #ifndef TOLUA_RELEASE
  9677. tolua_lerror:
  9678. tolua_error(tolua_S,"#ferror in function 'subtractArray'.",&tolua_err);
  9679. return 0;
  9680. #endif
  9681. }
  9682. #endif //#ifndef TOLUA_DISABLE
  9683.  
  9684. /* method: multiplyArray of class CArray2Drgba */
  9685. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_multiplyArray00
  9686. static int tolua_bind_anl_CArray2Drgba_multiplyArray00(lua_State* tolua_S)
  9687. {
  9688. #ifndef TOLUA_RELEASE
  9689. tolua_Error tolua_err;
  9690. if (
  9691. !tolua_isusertype(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9692. !tolua_isusertype(tolua_S,2,"CArray2Drgba",0,&tolua_err) ||
  9693. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9694. )
  9695. goto tolua_lerror;
  9696. else
  9697. #endif
  9698. {
  9699. CArray2Drgba* self = (CArray2Drgba*) tolua_tousertype(tolua_S,1,0);
  9700. CArray2Drgba* b = ((CArray2Drgba*) tolua_tousertype(tolua_S,2,0));
  9701. #ifndef TOLUA_RELEASE
  9702. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'multiplyArray'", NULL);
  9703. #endif
  9704. {
  9705. self->multiplyArray(b);
  9706. }
  9707. }
  9708. return 0;
  9709. #ifndef TOLUA_RELEASE
  9710. tolua_lerror:
  9711. tolua_error(tolua_S,"#ferror in function 'multiplyArray'.",&tolua_err);
  9712. return 0;
  9713. #endif
  9714. }
  9715. #endif //#ifndef TOLUA_DISABLE
  9716.  
  9717. /* method: copyFromSub of class CArray2Drgba */
  9718. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_copyFromSub00
  9719. static int tolua_bind_anl_CArray2Drgba_copyFromSub00(lua_State* tolua_S)
  9720. {
  9721. #ifndef TOLUA_RELEASE
  9722. tolua_Error tolua_err;
  9723. if (
  9724. !tolua_isusertype(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9725. !tolua_isusertype(tolua_S,2,"CArray2Drgba",0,&tolua_err) ||
  9726. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9727. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  9728. !tolua_isnoobj(tolua_S,5,&tolua_err)
  9729. )
  9730. goto tolua_lerror;
  9731. else
  9732. #endif
  9733. {
  9734. CArray2Drgba* self = (CArray2Drgba*) tolua_tousertype(tolua_S,1,0);
  9735. CArray2Drgba* b = ((CArray2Drgba*) tolua_tousertype(tolua_S,2,0));
  9736. int x = ((int) tolua_tonumber(tolua_S,3,0));
  9737. int y = ((int) tolua_tonumber(tolua_S,4,0));
  9738. #ifndef TOLUA_RELEASE
  9739. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'copyFromSub'", NULL);
  9740. #endif
  9741. {
  9742. self->copyFromSub(b,x,y);
  9743. }
  9744. }
  9745. return 0;
  9746. #ifndef TOLUA_RELEASE
  9747. tolua_lerror:
  9748. tolua_error(tolua_S,"#ferror in function 'copyFromSub'.",&tolua_err);
  9749. return 0;
  9750. #endif
  9751. }
  9752. #endif //#ifndef TOLUA_DISABLE
  9753.  
  9754. /* method: addArraySub of class CArray2Drgba */
  9755. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_addArraySub00
  9756. static int tolua_bind_anl_CArray2Drgba_addArraySub00(lua_State* tolua_S)
  9757. {
  9758. #ifndef TOLUA_RELEASE
  9759. tolua_Error tolua_err;
  9760. if (
  9761. !tolua_isusertype(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9762. !tolua_isusertype(tolua_S,2,"CArray2Drgba",0,&tolua_err) ||
  9763. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9764. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  9765. !tolua_isnoobj(tolua_S,5,&tolua_err)
  9766. )
  9767. goto tolua_lerror;
  9768. else
  9769. #endif
  9770. {
  9771. CArray2Drgba* self = (CArray2Drgba*) tolua_tousertype(tolua_S,1,0);
  9772. CArray2Drgba* b = ((CArray2Drgba*) tolua_tousertype(tolua_S,2,0));
  9773. int x = ((int) tolua_tonumber(tolua_S,3,0));
  9774. int y = ((int) tolua_tonumber(tolua_S,4,0));
  9775. #ifndef TOLUA_RELEASE
  9776. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'addArraySub'", NULL);
  9777. #endif
  9778. {
  9779. self->addArraySub(b,x,y);
  9780. }
  9781. }
  9782. return 0;
  9783. #ifndef TOLUA_RELEASE
  9784. tolua_lerror:
  9785. tolua_error(tolua_S,"#ferror in function 'addArraySub'.",&tolua_err);
  9786. return 0;
  9787. #endif
  9788. }
  9789. #endif //#ifndef TOLUA_DISABLE
  9790.  
  9791. /* method: subtractArraySub of class CArray2Drgba */
  9792. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_subtractArraySub00
  9793. static int tolua_bind_anl_CArray2Drgba_subtractArraySub00(lua_State* tolua_S)
  9794. {
  9795. #ifndef TOLUA_RELEASE
  9796. tolua_Error tolua_err;
  9797. if (
  9798. !tolua_isusertype(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9799. !tolua_isusertype(tolua_S,2,"CArray2Drgba",0,&tolua_err) ||
  9800. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9801. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  9802. !tolua_isnoobj(tolua_S,5,&tolua_err)
  9803. )
  9804. goto tolua_lerror;
  9805. else
  9806. #endif
  9807. {
  9808. CArray2Drgba* self = (CArray2Drgba*) tolua_tousertype(tolua_S,1,0);
  9809. CArray2Drgba* b = ((CArray2Drgba*) tolua_tousertype(tolua_S,2,0));
  9810. int x = ((int) tolua_tonumber(tolua_S,3,0));
  9811. int y = ((int) tolua_tonumber(tolua_S,4,0));
  9812. #ifndef TOLUA_RELEASE
  9813. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'subtractArraySub'", NULL);
  9814. #endif
  9815. {
  9816. self->subtractArraySub(b,x,y);
  9817. }
  9818. }
  9819. return 0;
  9820. #ifndef TOLUA_RELEASE
  9821. tolua_lerror:
  9822. tolua_error(tolua_S,"#ferror in function 'subtractArraySub'.",&tolua_err);
  9823. return 0;
  9824. #endif
  9825. }
  9826. #endif //#ifndef TOLUA_DISABLE
  9827.  
  9828. /* method: multiplyArraySub of class CArray2Drgba */
  9829. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_multiplyArraySub00
  9830. static int tolua_bind_anl_CArray2Drgba_multiplyArraySub00(lua_State* tolua_S)
  9831. {
  9832. #ifndef TOLUA_RELEASE
  9833. tolua_Error tolua_err;
  9834. if (
  9835. !tolua_isusertype(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9836. !tolua_isusertype(tolua_S,2,"CArray2Drgba",0,&tolua_err) ||
  9837. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9838. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  9839. !tolua_isnoobj(tolua_S,5,&tolua_err)
  9840. )
  9841. goto tolua_lerror;
  9842. else
  9843. #endif
  9844. {
  9845. CArray2Drgba* self = (CArray2Drgba*) tolua_tousertype(tolua_S,1,0);
  9846. CArray2Drgba* b = ((CArray2Drgba*) tolua_tousertype(tolua_S,2,0));
  9847. int x = ((int) tolua_tonumber(tolua_S,3,0));
  9848. int y = ((int) tolua_tonumber(tolua_S,4,0));
  9849. #ifndef TOLUA_RELEASE
  9850. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'multiplyArraySub'", NULL);
  9851. #endif
  9852. {
  9853. self->multiplyArraySub(b,x,y);
  9854. }
  9855. }
  9856. return 0;
  9857. #ifndef TOLUA_RELEASE
  9858. tolua_lerror:
  9859. tolua_error(tolua_S,"#ferror in function 'multiplyArraySub'.",&tolua_err);
  9860. return 0;
  9861. #endif
  9862. }
  9863. #endif //#ifndef TOLUA_DISABLE
  9864.  
  9865. /* method: scale of class CArray2Drgba */
  9866. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_scale00
  9867. static int tolua_bind_anl_CArray2Drgba_scale00(lua_State* tolua_S)
  9868. {
  9869. #ifndef TOLUA_RELEASE
  9870. tolua_Error tolua_err;
  9871. if (
  9872. !tolua_isusertype(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9873. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"SRGBA",0,&tolua_err)) ||
  9874. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9875. )
  9876. goto tolua_lerror;
  9877. else
  9878. #endif
  9879. {
  9880. CArray2Drgba* self = (CArray2Drgba*) tolua_tousertype(tolua_S,1,0);
  9881. SRGBA s = *((SRGBA*) tolua_tousertype(tolua_S,2,0));
  9882. #ifndef TOLUA_RELEASE
  9883. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'scale'", NULL);
  9884. #endif
  9885. {
  9886. self->scale(s);
  9887. }
  9888. }
  9889. return 0;
  9890. #ifndef TOLUA_RELEASE
  9891. tolua_lerror:
  9892. tolua_error(tolua_S,"#ferror in function 'scale'.",&tolua_err);
  9893. return 0;
  9894. #endif
  9895. }
  9896. #endif //#ifndef TOLUA_DISABLE
  9897.  
  9898. /* method: wrapCoords of class CArray2Drgba */
  9899. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_wrapCoords00
  9900. static int tolua_bind_anl_CArray2Drgba_wrapCoords00(lua_State* tolua_S)
  9901. {
  9902. #ifndef TOLUA_RELEASE
  9903. tolua_Error tolua_err;
  9904. if (
  9905. !tolua_isusertype(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9906. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9907. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9908. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9909. )
  9910. goto tolua_lerror;
  9911. else
  9912. #endif
  9913. {
  9914. CArray2Drgba* self = (CArray2Drgba*) tolua_tousertype(tolua_S,1,0);
  9915. int x = ((int) tolua_tonumber(tolua_S,2,0));
  9916. int y = ((int) tolua_tonumber(tolua_S,3,0));
  9917. #ifndef TOLUA_RELEASE
  9918. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'wrapCoords'", NULL);
  9919. #endif
  9920. {
  9921. self->wrapCoords(x,y);
  9922. tolua_pushnumber(tolua_S,(lua_Number)x);
  9923. tolua_pushnumber(tolua_S,(lua_Number)y);
  9924. }
  9925. }
  9926. return 2;
  9927. #ifndef TOLUA_RELEASE
  9928. tolua_lerror:
  9929. tolua_error(tolua_S,"#ferror in function 'wrapCoords'.",&tolua_err);
  9930. return 0;
  9931. #endif
  9932. }
  9933. #endif //#ifndef TOLUA_DISABLE
  9934.  
  9935. /* method: offset of class CArray2Drgba */
  9936. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_offset00
  9937. static int tolua_bind_anl_CArray2Drgba_offset00(lua_State* tolua_S)
  9938. {
  9939. #ifndef TOLUA_RELEASE
  9940. tolua_Error tolua_err;
  9941. if (
  9942. !tolua_isusertype(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9943. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9944. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9945. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9946. )
  9947. goto tolua_lerror;
  9948. else
  9949. #endif
  9950. {
  9951. CArray2Drgba* self = (CArray2Drgba*) tolua_tousertype(tolua_S,1,0);
  9952. int ox = ((int) tolua_tonumber(tolua_S,2,0));
  9953. int oy = ((int) tolua_tonumber(tolua_S,3,0));
  9954. #ifndef TOLUA_RELEASE
  9955. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'offset'", NULL);
  9956. #endif
  9957. {
  9958. self->offset(ox,oy);
  9959. }
  9960. }
  9961. return 0;
  9962. #ifndef TOLUA_RELEASE
  9963. tolua_lerror:
  9964. tolua_error(tolua_S,"#ferror in function 'offset'.",&tolua_err);
  9965. return 0;
  9966. #endif
  9967. }
  9968. #endif //#ifndef TOLUA_DISABLE
  9969.  
  9970. /* method: flipVertical of class CArray2Drgba */
  9971. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_flipVertical00
  9972. static int tolua_bind_anl_CArray2Drgba_flipVertical00(lua_State* tolua_S)
  9973. {
  9974. #ifndef TOLUA_RELEASE
  9975. tolua_Error tolua_err;
  9976. if (
  9977. !tolua_isusertype(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  9978. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9979. )
  9980. goto tolua_lerror;
  9981. else
  9982. #endif
  9983. {
  9984. CArray2Drgba* self = (CArray2Drgba*) tolua_tousertype(tolua_S,1,0);
  9985. #ifndef TOLUA_RELEASE
  9986. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'flipVertical'", NULL);
  9987. #endif
  9988. {
  9989. self->flipVertical();
  9990. }
  9991. }
  9992. return 0;
  9993. #ifndef TOLUA_RELEASE
  9994. tolua_lerror:
  9995. tolua_error(tolua_S,"#ferror in function 'flipVertical'.",&tolua_err);
  9996. return 0;
  9997. #endif
  9998. }
  9999. #endif //#ifndef TOLUA_DISABLE
  10000.  
  10001. /* method: flipHorizontal of class CArray2Drgba */
  10002. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_flipHorizontal00
  10003. static int tolua_bind_anl_CArray2Drgba_flipHorizontal00(lua_State* tolua_S)
  10004. {
  10005. #ifndef TOLUA_RELEASE
  10006. tolua_Error tolua_err;
  10007. if (
  10008. !tolua_isusertype(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  10009. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10010. )
  10011. goto tolua_lerror;
  10012. else
  10013. #endif
  10014. {
  10015. CArray2Drgba* self = (CArray2Drgba*) tolua_tousertype(tolua_S,1,0);
  10016. #ifndef TOLUA_RELEASE
  10017. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'flipHorizontal'", NULL);
  10018. #endif
  10019. {
  10020. self->flipHorizontal();
  10021. }
  10022. }
  10023. return 0;
  10024. #ifndef TOLUA_RELEASE
  10025. tolua_lerror:
  10026. tolua_error(tolua_S,"#ferror in function 'flipHorizontal'.",&tolua_err);
  10027. return 0;
  10028. #endif
  10029. }
  10030. #endif //#ifndef TOLUA_DISABLE
  10031.  
  10032. /* method: blur of class CArray2Drgba */
  10033. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray2Drgba_blur00
  10034. static int tolua_bind_anl_CArray2Drgba_blur00(lua_State* tolua_S)
  10035. {
  10036. #ifndef TOLUA_RELEASE
  10037. tolua_Error tolua_err;
  10038. if (
  10039. !tolua_isusertype(tolua_S,1,"CArray2Drgba",0,&tolua_err) ||
  10040. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10041. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  10042. !tolua_isboolean(tolua_S,4,0,&tolua_err) ||
  10043. !tolua_isnoobj(tolua_S,5,&tolua_err)
  10044. )
  10045. goto tolua_lerror;
  10046. else
  10047. #endif
  10048. {
  10049. CArray2Drgba* self = (CArray2Drgba*) tolua_tousertype(tolua_S,1,0);
  10050. int blurwidth = ((int) tolua_tonumber(tolua_S,2,0));
  10051. int blurheight = ((int) tolua_tonumber(tolua_S,3,0));
  10052. bool seamless = ((bool) tolua_toboolean(tolua_S,4,0));
  10053. #ifndef TOLUA_RELEASE
  10054. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'blur'", NULL);
  10055. #endif
  10056. {
  10057. self->blur(blurwidth,blurheight,seamless);
  10058. }
  10059. }
  10060. return 0;
  10061. #ifndef TOLUA_RELEASE
  10062. tolua_lerror:
  10063. tolua_error(tolua_S,"#ferror in function 'blur'.",&tolua_err);
  10064. return 0;
  10065. #endif
  10066. }
  10067. #endif //#ifndef TOLUA_DISABLE
  10068.  
  10069. /* method: new of class CArray3Dd */
  10070. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray3Dd_new00
  10071. static int tolua_bind_anl_CArray3Dd_new00(lua_State* tolua_S)
  10072. {
  10073. #ifndef TOLUA_RELEASE
  10074. tolua_Error tolua_err;
  10075. if (
  10076. !tolua_isusertable(tolua_S,1,"CArray3Dd",0,&tolua_err) ||
  10077. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10078. )
  10079. goto tolua_lerror;
  10080. else
  10081. #endif
  10082. {
  10083. {
  10084. CArray3Dd* tolua_ret = (CArray3Dd*) Mtolua_new((CArray3Dd)());
  10085. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CArray3Dd");
  10086. }
  10087. }
  10088. return 1;
  10089. #ifndef TOLUA_RELEASE
  10090. tolua_lerror:
  10091. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  10092. return 0;
  10093. #endif
  10094. }
  10095. #endif //#ifndef TOLUA_DISABLE
  10096.  
  10097. /* method: new_local of class CArray3Dd */
  10098. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray3Dd_new00_local
  10099. static int tolua_bind_anl_CArray3Dd_new00_local(lua_State* tolua_S)
  10100. {
  10101. #ifndef TOLUA_RELEASE
  10102. tolua_Error tolua_err;
  10103. if (
  10104. !tolua_isusertable(tolua_S,1,"CArray3Dd",0,&tolua_err) ||
  10105. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10106. )
  10107. goto tolua_lerror;
  10108. else
  10109. #endif
  10110. {
  10111. {
  10112. CArray3Dd* tolua_ret = (CArray3Dd*) Mtolua_new((CArray3Dd)());
  10113. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CArray3Dd");
  10114. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  10115. }
  10116. }
  10117. return 1;
  10118. #ifndef TOLUA_RELEASE
  10119. tolua_lerror:
  10120. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  10121. return 0;
  10122. #endif
  10123. }
  10124. #endif //#ifndef TOLUA_DISABLE
  10125.  
  10126. /* method: new of class CArray3Dd */
  10127. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray3Dd_new01
  10128. static int tolua_bind_anl_CArray3Dd_new01(lua_State* tolua_S)
  10129. {
  10130. tolua_Error tolua_err;
  10131. if (
  10132. !tolua_isusertable(tolua_S,1,"CArray3Dd",0,&tolua_err) ||
  10133. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10134. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  10135. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  10136. !tolua_isnoobj(tolua_S,5,&tolua_err)
  10137. )
  10138. goto tolua_lerror;
  10139. else
  10140. {
  10141. int w = ((int) tolua_tonumber(tolua_S,2,0));
  10142. int h = ((int) tolua_tonumber(tolua_S,3,0));
  10143. int d = ((int) tolua_tonumber(tolua_S,4,0));
  10144. {
  10145. CArray3Dd* tolua_ret = (CArray3Dd*) Mtolua_new((CArray3Dd)(w,h,d));
  10146. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CArray3Dd");
  10147. }
  10148. }
  10149. return 1;
  10150. tolua_lerror:
  10151. return tolua_bind_anl_CArray3Dd_new00(tolua_S);
  10152. }
  10153. #endif //#ifndef TOLUA_DISABLE
  10154.  
  10155. /* method: new_local of class CArray3Dd */
  10156. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray3Dd_new01_local
  10157. static int tolua_bind_anl_CArray3Dd_new01_local(lua_State* tolua_S)
  10158. {
  10159. tolua_Error tolua_err;
  10160. if (
  10161. !tolua_isusertable(tolua_S,1,"CArray3Dd",0,&tolua_err) ||
  10162. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10163. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  10164. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  10165. !tolua_isnoobj(tolua_S,5,&tolua_err)
  10166. )
  10167. goto tolua_lerror;
  10168. else
  10169. {
  10170. int w = ((int) tolua_tonumber(tolua_S,2,0));
  10171. int h = ((int) tolua_tonumber(tolua_S,3,0));
  10172. int d = ((int) tolua_tonumber(tolua_S,4,0));
  10173. {
  10174. CArray3Dd* tolua_ret = (CArray3Dd*) Mtolua_new((CArray3Dd)(w,h,d));
  10175. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CArray3Dd");
  10176. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  10177. }
  10178. }
  10179. return 1;
  10180. tolua_lerror:
  10181. return tolua_bind_anl_CArray3Dd_new00_local(tolua_S);
  10182. }
  10183. #endif //#ifndef TOLUA_DISABLE
  10184.  
  10185. /* method: delete of class CArray3Dd */
  10186. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray3Dd_delete00
  10187. static int tolua_bind_anl_CArray3Dd_delete00(lua_State* tolua_S)
  10188. {
  10189. #ifndef TOLUA_RELEASE
  10190. tolua_Error tolua_err;
  10191. if (
  10192. !tolua_isusertype(tolua_S,1,"CArray3Dd",0,&tolua_err) ||
  10193. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10194. )
  10195. goto tolua_lerror;
  10196. else
  10197. #endif
  10198. {
  10199. CArray3Dd* self = (CArray3Dd*) tolua_tousertype(tolua_S,1,0);
  10200. #ifndef TOLUA_RELEASE
  10201. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  10202. #endif
  10203. Mtolua_delete(self);
  10204. }
  10205. return 0;
  10206. #ifndef TOLUA_RELEASE
  10207. tolua_lerror:
  10208. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  10209. return 0;
  10210. #endif
  10211. }
  10212. #endif //#ifndef TOLUA_DISABLE
  10213.  
  10214. /* method: width of class CArray3Dd */
  10215. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray3Dd_width00
  10216. static int tolua_bind_anl_CArray3Dd_width00(lua_State* tolua_S)
  10217. {
  10218. #ifndef TOLUA_RELEASE
  10219. tolua_Error tolua_err;
  10220. if (
  10221. !tolua_isusertype(tolua_S,1,"CArray3Dd",0,&tolua_err) ||
  10222. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10223. )
  10224. goto tolua_lerror;
  10225. else
  10226. #endif
  10227. {
  10228. CArray3Dd* self = (CArray3Dd*) tolua_tousertype(tolua_S,1,0);
  10229. #ifndef TOLUA_RELEASE
  10230. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'width'", NULL);
  10231. #endif
  10232. {
  10233. int tolua_ret = (int) self->width();
  10234. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  10235. }
  10236. }
  10237. return 1;
  10238. #ifndef TOLUA_RELEASE
  10239. tolua_lerror:
  10240. tolua_error(tolua_S,"#ferror in function 'width'.",&tolua_err);
  10241. return 0;
  10242. #endif
  10243. }
  10244. #endif //#ifndef TOLUA_DISABLE
  10245.  
  10246. /* method: height of class CArray3Dd */
  10247. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray3Dd_height00
  10248. static int tolua_bind_anl_CArray3Dd_height00(lua_State* tolua_S)
  10249. {
  10250. #ifndef TOLUA_RELEASE
  10251. tolua_Error tolua_err;
  10252. if (
  10253. !tolua_isusertype(tolua_S,1,"CArray3Dd",0,&tolua_err) ||
  10254. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10255. )
  10256. goto tolua_lerror;
  10257. else
  10258. #endif
  10259. {
  10260. CArray3Dd* self = (CArray3Dd*) tolua_tousertype(tolua_S,1,0);
  10261. #ifndef TOLUA_RELEASE
  10262. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'height'", NULL);
  10263. #endif
  10264. {
  10265. int tolua_ret = (int) self->height();
  10266. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  10267. }
  10268. }
  10269. return 1;
  10270. #ifndef TOLUA_RELEASE
  10271. tolua_lerror:
  10272. tolua_error(tolua_S,"#ferror in function 'height'.",&tolua_err);
  10273. return 0;
  10274. #endif
  10275. }
  10276. #endif //#ifndef TOLUA_DISABLE
  10277.  
  10278. /* method: depth of class CArray3Dd */
  10279. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray3Dd_depth00
  10280. static int tolua_bind_anl_CArray3Dd_depth00(lua_State* tolua_S)
  10281. {
  10282. #ifndef TOLUA_RELEASE
  10283. tolua_Error tolua_err;
  10284. if (
  10285. !tolua_isusertype(tolua_S,1,"CArray3Dd",0,&tolua_err) ||
  10286. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10287. )
  10288. goto tolua_lerror;
  10289. else
  10290. #endif
  10291. {
  10292. CArray3Dd* self = (CArray3Dd*) tolua_tousertype(tolua_S,1,0);
  10293. #ifndef TOLUA_RELEASE
  10294. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'depth'", NULL);
  10295. #endif
  10296. {
  10297. int tolua_ret = (int) self->depth();
  10298. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  10299. }
  10300. }
  10301. return 1;
  10302. #ifndef TOLUA_RELEASE
  10303. tolua_lerror:
  10304. tolua_error(tolua_S,"#ferror in function 'depth'.",&tolua_err);
  10305. return 0;
  10306. #endif
  10307. }
  10308. #endif //#ifndef TOLUA_DISABLE
  10309.  
  10310. /* method: set of class CArray3Dd */
  10311. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray3Dd_set00
  10312. static int tolua_bind_anl_CArray3Dd_set00(lua_State* tolua_S)
  10313. {
  10314. #ifndef TOLUA_RELEASE
  10315. tolua_Error tolua_err;
  10316. if (
  10317. !tolua_isusertype(tolua_S,1,"CArray3Dd",0,&tolua_err) ||
  10318. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10319. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  10320. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  10321. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  10322. !tolua_isnoobj(tolua_S,6,&tolua_err)
  10323. )
  10324. goto tolua_lerror;
  10325. else
  10326. #endif
  10327. {
  10328. CArray3Dd* self = (CArray3Dd*) tolua_tousertype(tolua_S,1,0);
  10329. int x = ((int) tolua_tonumber(tolua_S,2,0));
  10330. int y = ((int) tolua_tonumber(tolua_S,3,0));
  10331. int z = ((int) tolua_tonumber(tolua_S,4,0));
  10332. double v = ((double) tolua_tonumber(tolua_S,5,0));
  10333. #ifndef TOLUA_RELEASE
  10334. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set'", NULL);
  10335. #endif
  10336. {
  10337. self->set(x,y,z,v);
  10338. }
  10339. }
  10340. return 0;
  10341. #ifndef TOLUA_RELEASE
  10342. tolua_lerror:
  10343. tolua_error(tolua_S,"#ferror in function 'set'.",&tolua_err);
  10344. return 0;
  10345. #endif
  10346. }
  10347. #endif //#ifndef TOLUA_DISABLE
  10348.  
  10349. /* method: get of class CArray3Dd */
  10350. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray3Dd_get00
  10351. static int tolua_bind_anl_CArray3Dd_get00(lua_State* tolua_S)
  10352. {
  10353. #ifndef TOLUA_RELEASE
  10354. tolua_Error tolua_err;
  10355. if (
  10356. !tolua_isusertype(tolua_S,1,"CArray3Dd",0,&tolua_err) ||
  10357. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10358. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  10359. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  10360. !tolua_isnoobj(tolua_S,5,&tolua_err)
  10361. )
  10362. goto tolua_lerror;
  10363. else
  10364. #endif
  10365. {
  10366. CArray3Dd* self = (CArray3Dd*) tolua_tousertype(tolua_S,1,0);
  10367. int x = ((int) tolua_tonumber(tolua_S,2,0));
  10368. int y = ((int) tolua_tonumber(tolua_S,3,0));
  10369. int z = ((int) tolua_tonumber(tolua_S,4,0));
  10370. #ifndef TOLUA_RELEASE
  10371. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'get'", NULL);
  10372. #endif
  10373. {
  10374. double tolua_ret = (double) self->get(x,y,z);
  10375. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  10376. }
  10377. }
  10378. return 1;
  10379. #ifndef TOLUA_RELEASE
  10380. tolua_lerror:
  10381. tolua_error(tolua_S,"#ferror in function 'get'.",&tolua_err);
  10382. return 0;
  10383. #endif
  10384. }
  10385. #endif //#ifndef TOLUA_DISABLE
  10386.  
  10387. /* method: resize of class CArray3Dd */
  10388. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray3Dd_resize00
  10389. static int tolua_bind_anl_CArray3Dd_resize00(lua_State* tolua_S)
  10390. {
  10391. #ifndef TOLUA_RELEASE
  10392. tolua_Error tolua_err;
  10393. if (
  10394. !tolua_isusertype(tolua_S,1,"CArray3Dd",0,&tolua_err) ||
  10395. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10396. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  10397. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  10398. !tolua_isnoobj(tolua_S,5,&tolua_err)
  10399. )
  10400. goto tolua_lerror;
  10401. else
  10402. #endif
  10403. {
  10404. CArray3Dd* self = (CArray3Dd*) tolua_tousertype(tolua_S,1,0);
  10405. int w = ((int) tolua_tonumber(tolua_S,2,0));
  10406. int h = ((int) tolua_tonumber(tolua_S,3,0));
  10407. int d = ((int) tolua_tonumber(tolua_S,4,0));
  10408. #ifndef TOLUA_RELEASE
  10409. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'resize'", NULL);
  10410. #endif
  10411. {
  10412. self->resize(w,h,d);
  10413. }
  10414. }
  10415. return 0;
  10416. #ifndef TOLUA_RELEASE
  10417. tolua_lerror:
  10418. tolua_error(tolua_S,"#ferror in function 'resize'.",&tolua_err);
  10419. return 0;
  10420. #endif
  10421. }
  10422. #endif //#ifndef TOLUA_DISABLE
  10423.  
  10424. /* method: new of class CArray3Drgba */
  10425. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray3Drgba_new00
  10426. static int tolua_bind_anl_CArray3Drgba_new00(lua_State* tolua_S)
  10427. {
  10428. #ifndef TOLUA_RELEASE
  10429. tolua_Error tolua_err;
  10430. if (
  10431. !tolua_isusertable(tolua_S,1,"CArray3Drgba",0,&tolua_err) ||
  10432. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10433. )
  10434. goto tolua_lerror;
  10435. else
  10436. #endif
  10437. {
  10438. {
  10439. CArray3Drgba* tolua_ret = (CArray3Drgba*) Mtolua_new((CArray3Drgba)());
  10440. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CArray3Drgba");
  10441. }
  10442. }
  10443. return 1;
  10444. #ifndef TOLUA_RELEASE
  10445. tolua_lerror:
  10446. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  10447. return 0;
  10448. #endif
  10449. }
  10450. #endif //#ifndef TOLUA_DISABLE
  10451.  
  10452. /* method: new_local of class CArray3Drgba */
  10453. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray3Drgba_new00_local
  10454. static int tolua_bind_anl_CArray3Drgba_new00_local(lua_State* tolua_S)
  10455. {
  10456. #ifndef TOLUA_RELEASE
  10457. tolua_Error tolua_err;
  10458. if (
  10459. !tolua_isusertable(tolua_S,1,"CArray3Drgba",0,&tolua_err) ||
  10460. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10461. )
  10462. goto tolua_lerror;
  10463. else
  10464. #endif
  10465. {
  10466. {
  10467. CArray3Drgba* tolua_ret = (CArray3Drgba*) Mtolua_new((CArray3Drgba)());
  10468. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CArray3Drgba");
  10469. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  10470. }
  10471. }
  10472. return 1;
  10473. #ifndef TOLUA_RELEASE
  10474. tolua_lerror:
  10475. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  10476. return 0;
  10477. #endif
  10478. }
  10479. #endif //#ifndef TOLUA_DISABLE
  10480.  
  10481. /* method: new of class CArray3Drgba */
  10482. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray3Drgba_new01
  10483. static int tolua_bind_anl_CArray3Drgba_new01(lua_State* tolua_S)
  10484. {
  10485. tolua_Error tolua_err;
  10486. if (
  10487. !tolua_isusertable(tolua_S,1,"CArray3Drgba",0,&tolua_err) ||
  10488. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10489. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  10490. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  10491. !tolua_isnoobj(tolua_S,5,&tolua_err)
  10492. )
  10493. goto tolua_lerror;
  10494. else
  10495. {
  10496. int w = ((int) tolua_tonumber(tolua_S,2,0));
  10497. int h = ((int) tolua_tonumber(tolua_S,3,0));
  10498. int d = ((int) tolua_tonumber(tolua_S,4,0));
  10499. {
  10500. CArray3Drgba* tolua_ret = (CArray3Drgba*) Mtolua_new((CArray3Drgba)(w,h,d));
  10501. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CArray3Drgba");
  10502. }
  10503. }
  10504. return 1;
  10505. tolua_lerror:
  10506. return tolua_bind_anl_CArray3Drgba_new00(tolua_S);
  10507. }
  10508. #endif //#ifndef TOLUA_DISABLE
  10509.  
  10510. /* method: new_local of class CArray3Drgba */
  10511. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray3Drgba_new01_local
  10512. static int tolua_bind_anl_CArray3Drgba_new01_local(lua_State* tolua_S)
  10513. {
  10514. tolua_Error tolua_err;
  10515. if (
  10516. !tolua_isusertable(tolua_S,1,"CArray3Drgba",0,&tolua_err) ||
  10517. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10518. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  10519. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  10520. !tolua_isnoobj(tolua_S,5,&tolua_err)
  10521. )
  10522. goto tolua_lerror;
  10523. else
  10524. {
  10525. int w = ((int) tolua_tonumber(tolua_S,2,0));
  10526. int h = ((int) tolua_tonumber(tolua_S,3,0));
  10527. int d = ((int) tolua_tonumber(tolua_S,4,0));
  10528. {
  10529. CArray3Drgba* tolua_ret = (CArray3Drgba*) Mtolua_new((CArray3Drgba)(w,h,d));
  10530. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CArray3Drgba");
  10531. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  10532. }
  10533. }
  10534. return 1;
  10535. tolua_lerror:
  10536. return tolua_bind_anl_CArray3Drgba_new00_local(tolua_S);
  10537. }
  10538. #endif //#ifndef TOLUA_DISABLE
  10539.  
  10540. /* method: delete of class CArray3Drgba */
  10541. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray3Drgba_delete00
  10542. static int tolua_bind_anl_CArray3Drgba_delete00(lua_State* tolua_S)
  10543. {
  10544. #ifndef TOLUA_RELEASE
  10545. tolua_Error tolua_err;
  10546. if (
  10547. !tolua_isusertype(tolua_S,1,"CArray3Drgba",0,&tolua_err) ||
  10548. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10549. )
  10550. goto tolua_lerror;
  10551. else
  10552. #endif
  10553. {
  10554. CArray3Drgba* self = (CArray3Drgba*) tolua_tousertype(tolua_S,1,0);
  10555. #ifndef TOLUA_RELEASE
  10556. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  10557. #endif
  10558. Mtolua_delete(self);
  10559. }
  10560. return 0;
  10561. #ifndef TOLUA_RELEASE
  10562. tolua_lerror:
  10563. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  10564. return 0;
  10565. #endif
  10566. }
  10567. #endif //#ifndef TOLUA_DISABLE
  10568.  
  10569. /* method: width of class CArray3Drgba */
  10570. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray3Drgba_width00
  10571. static int tolua_bind_anl_CArray3Drgba_width00(lua_State* tolua_S)
  10572. {
  10573. #ifndef TOLUA_RELEASE
  10574. tolua_Error tolua_err;
  10575. if (
  10576. !tolua_isusertype(tolua_S,1,"CArray3Drgba",0,&tolua_err) ||
  10577. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10578. )
  10579. goto tolua_lerror;
  10580. else
  10581. #endif
  10582. {
  10583. CArray3Drgba* self = (CArray3Drgba*) tolua_tousertype(tolua_S,1,0);
  10584. #ifndef TOLUA_RELEASE
  10585. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'width'", NULL);
  10586. #endif
  10587. {
  10588. int tolua_ret = (int) self->width();
  10589. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  10590. }
  10591. }
  10592. return 1;
  10593. #ifndef TOLUA_RELEASE
  10594. tolua_lerror:
  10595. tolua_error(tolua_S,"#ferror in function 'width'.",&tolua_err);
  10596. return 0;
  10597. #endif
  10598. }
  10599. #endif //#ifndef TOLUA_DISABLE
  10600.  
  10601. /* method: height of class CArray3Drgba */
  10602. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray3Drgba_height00
  10603. static int tolua_bind_anl_CArray3Drgba_height00(lua_State* tolua_S)
  10604. {
  10605. #ifndef TOLUA_RELEASE
  10606. tolua_Error tolua_err;
  10607. if (
  10608. !tolua_isusertype(tolua_S,1,"CArray3Drgba",0,&tolua_err) ||
  10609. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10610. )
  10611. goto tolua_lerror;
  10612. else
  10613. #endif
  10614. {
  10615. CArray3Drgba* self = (CArray3Drgba*) tolua_tousertype(tolua_S,1,0);
  10616. #ifndef TOLUA_RELEASE
  10617. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'height'", NULL);
  10618. #endif
  10619. {
  10620. int tolua_ret = (int) self->height();
  10621. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  10622. }
  10623. }
  10624. return 1;
  10625. #ifndef TOLUA_RELEASE
  10626. tolua_lerror:
  10627. tolua_error(tolua_S,"#ferror in function 'height'.",&tolua_err);
  10628. return 0;
  10629. #endif
  10630. }
  10631. #endif //#ifndef TOLUA_DISABLE
  10632.  
  10633. /* method: depth of class CArray3Drgba */
  10634. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray3Drgba_depth00
  10635. static int tolua_bind_anl_CArray3Drgba_depth00(lua_State* tolua_S)
  10636. {
  10637. #ifndef TOLUA_RELEASE
  10638. tolua_Error tolua_err;
  10639. if (
  10640. !tolua_isusertype(tolua_S,1,"CArray3Drgba",0,&tolua_err) ||
  10641. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10642. )
  10643. goto tolua_lerror;
  10644. else
  10645. #endif
  10646. {
  10647. CArray3Drgba* self = (CArray3Drgba*) tolua_tousertype(tolua_S,1,0);
  10648. #ifndef TOLUA_RELEASE
  10649. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'depth'", NULL);
  10650. #endif
  10651. {
  10652. int tolua_ret = (int) self->depth();
  10653. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  10654. }
  10655. }
  10656. return 1;
  10657. #ifndef TOLUA_RELEASE
  10658. tolua_lerror:
  10659. tolua_error(tolua_S,"#ferror in function 'depth'.",&tolua_err);
  10660. return 0;
  10661. #endif
  10662. }
  10663. #endif //#ifndef TOLUA_DISABLE
  10664.  
  10665. /* method: resize of class CArray3Drgba */
  10666. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray3Drgba_resize00
  10667. static int tolua_bind_anl_CArray3Drgba_resize00(lua_State* tolua_S)
  10668. {
  10669. #ifndef TOLUA_RELEASE
  10670. tolua_Error tolua_err;
  10671. if (
  10672. !tolua_isusertype(tolua_S,1,"CArray3Drgba",0,&tolua_err) ||
  10673. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10674. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  10675. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  10676. !tolua_isnoobj(tolua_S,5,&tolua_err)
  10677. )
  10678. goto tolua_lerror;
  10679. else
  10680. #endif
  10681. {
  10682. CArray3Drgba* self = (CArray3Drgba*) tolua_tousertype(tolua_S,1,0);
  10683. int w = ((int) tolua_tonumber(tolua_S,2,0));
  10684. int h = ((int) tolua_tonumber(tolua_S,3,0));
  10685. int d = ((int) tolua_tonumber(tolua_S,4,0));
  10686. #ifndef TOLUA_RELEASE
  10687. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'resize'", NULL);
  10688. #endif
  10689. {
  10690. self->resize(w,h,d);
  10691. }
  10692. }
  10693. return 0;
  10694. #ifndef TOLUA_RELEASE
  10695. tolua_lerror:
  10696. tolua_error(tolua_S,"#ferror in function 'resize'.",&tolua_err);
  10697. return 0;
  10698. #endif
  10699. }
  10700. #endif //#ifndef TOLUA_DISABLE
  10701.  
  10702. /* method: set of class CArray3Drgba */
  10703. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray3Drgba_set00
  10704. static int tolua_bind_anl_CArray3Drgba_set00(lua_State* tolua_S)
  10705. {
  10706. #ifndef TOLUA_RELEASE
  10707. tolua_Error tolua_err;
  10708. if (
  10709. !tolua_isusertype(tolua_S,1,"CArray3Drgba",0,&tolua_err) ||
  10710. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10711. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  10712. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  10713. (tolua_isvaluenil(tolua_S,5,&tolua_err) || !tolua_isusertype(tolua_S,5,"SRGBA",0,&tolua_err)) ||
  10714. !tolua_isnoobj(tolua_S,6,&tolua_err)
  10715. )
  10716. goto tolua_lerror;
  10717. else
  10718. #endif
  10719. {
  10720. CArray3Drgba* self = (CArray3Drgba*) tolua_tousertype(tolua_S,1,0);
  10721. int x = ((int) tolua_tonumber(tolua_S,2,0));
  10722. int y = ((int) tolua_tonumber(tolua_S,3,0));
  10723. int z = ((int) tolua_tonumber(tolua_S,4,0));
  10724. SRGBA v = *((SRGBA*) tolua_tousertype(tolua_S,5,0));
  10725. #ifndef TOLUA_RELEASE
  10726. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set'", NULL);
  10727. #endif
  10728. {
  10729. self->set(x,y,z,v);
  10730. }
  10731. }
  10732. return 0;
  10733. #ifndef TOLUA_RELEASE
  10734. tolua_lerror:
  10735. tolua_error(tolua_S,"#ferror in function 'set'.",&tolua_err);
  10736. return 0;
  10737. #endif
  10738. }
  10739. #endif //#ifndef TOLUA_DISABLE
  10740.  
  10741. /* method: get of class CArray3Drgba */
  10742. #ifndef TOLUA_DISABLE_tolua_bind_anl_CArray3Drgba_get00
  10743. static int tolua_bind_anl_CArray3Drgba_get00(lua_State* tolua_S)
  10744. {
  10745. #ifndef TOLUA_RELEASE
  10746. tolua_Error tolua_err;
  10747. if (
  10748. !tolua_isusertype(tolua_S,1,"CArray3Drgba",0,&tolua_err) ||
  10749. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10750. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  10751. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  10752. !tolua_isnoobj(tolua_S,5,&tolua_err)
  10753. )
  10754. goto tolua_lerror;
  10755. else
  10756. #endif
  10757. {
  10758. CArray3Drgba* self = (CArray3Drgba*) tolua_tousertype(tolua_S,1,0);
  10759. int x = ((int) tolua_tonumber(tolua_S,2,0));
  10760. int y = ((int) tolua_tonumber(tolua_S,3,0));
  10761. int z = ((int) tolua_tonumber(tolua_S,4,0));
  10762. #ifndef TOLUA_RELEASE
  10763. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'get'", NULL);
  10764. #endif
  10765. {
  10766. anl::SRGBA tolua_ret = (anl::SRGBA) self->get(x,y,z);
  10767. {
  10768. #ifdef __cplusplus
  10769. void* tolua_obj = Mtolua_new((anl::SRGBA)(tolua_ret));
  10770. tolua_pushusertype(tolua_S,tolua_obj,"anl::SRGBA");
  10771. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  10772. #else
  10773. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(anl::SRGBA));
  10774. tolua_pushusertype(tolua_S,tolua_obj,"anl::SRGBA");
  10775. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  10776. #endif
  10777. }
  10778. }
  10779. }
  10780. return 1;
  10781. #ifndef TOLUA_RELEASE
  10782. tolua_lerror:
  10783. tolua_error(tolua_S,"#ferror in function 'get'.",&tolua_err);
  10784. return 0;
  10785. #endif
  10786. }
  10787. #endif //#ifndef TOLUA_DISABLE
  10788.  
  10789. /* function: map2D */
  10790. #ifndef TOLUA_DISABLE_tolua_bind_anl_map2D00
  10791. static int tolua_bind_anl_map2D00(lua_State* tolua_S)
  10792. {
  10793. #ifndef TOLUA_RELEASE
  10794. tolua_Error tolua_err;
  10795. if (
  10796. !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
  10797. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CArray2Dd",0,&tolua_err)) ||
  10798. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CKernel",0,&tolua_err)) ||
  10799. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"SMappingRanges",0,&tolua_err)) ||
  10800. (tolua_isvaluenil(tolua_S,5,&tolua_err) || !tolua_isusertype(tolua_S,5,"CInstructionIndex",0,&tolua_err)) ||
  10801. !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
  10802. !tolua_isnoobj(tolua_S,7,&tolua_err)
  10803. )
  10804. goto tolua_lerror;
  10805. else
  10806. #endif
  10807. {
  10808. int seamlessmode = ((int) tolua_tonumber(tolua_S,1,0));
  10809. CArray2Dd* a = ((CArray2Dd*) tolua_tousertype(tolua_S,2,0));
  10810. CKernel* k = ((CKernel*) tolua_tousertype(tolua_S,3,0));
  10811. SMappingRanges ranges = *((SMappingRanges*) tolua_tousertype(tolua_S,4,0));
  10812. CInstructionIndex index = *((CInstructionIndex*) tolua_tousertype(tolua_S,5,0));
  10813. double z = ((double) tolua_tonumber(tolua_S,6,0));
  10814. {
  10815. map2D(seamlessmode,*a,*k,ranges,index,z);
  10816. }
  10817. }
  10818. return 0;
  10819. #ifndef TOLUA_RELEASE
  10820. tolua_lerror:
  10821. tolua_error(tolua_S,"#ferror in function 'map2D'.",&tolua_err);
  10822. return 0;
  10823. #endif
  10824. }
  10825. #endif //#ifndef TOLUA_DISABLE
  10826.  
  10827. /* function: map2DNoZ */
  10828. #ifndef TOLUA_DISABLE_tolua_bind_anl_map2DNoZ00
  10829. static int tolua_bind_anl_map2DNoZ00(lua_State* tolua_S)
  10830. {
  10831. #ifndef TOLUA_RELEASE
  10832. tolua_Error tolua_err;
  10833. if (
  10834. !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
  10835. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CArray2Dd",0,&tolua_err)) ||
  10836. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CKernel",0,&tolua_err)) ||
  10837. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"SMappingRanges",0,&tolua_err)) ||
  10838. (tolua_isvaluenil(tolua_S,5,&tolua_err) || !tolua_isusertype(tolua_S,5,"CInstructionIndex",0,&tolua_err)) ||
  10839. !tolua_isnoobj(tolua_S,6,&tolua_err)
  10840. )
  10841. goto tolua_lerror;
  10842. else
  10843. #endif
  10844. {
  10845. int seamlessmode = ((int) tolua_tonumber(tolua_S,1,0));
  10846. CArray2Dd* a = ((CArray2Dd*) tolua_tousertype(tolua_S,2,0));
  10847. CKernel* k = ((CKernel*) tolua_tousertype(tolua_S,3,0));
  10848. SMappingRanges ranges = *((SMappingRanges*) tolua_tousertype(tolua_S,4,0));
  10849. CInstructionIndex index = *((CInstructionIndex*) tolua_tousertype(tolua_S,5,0));
  10850. {
  10851. map2DNoZ(seamlessmode,*a,*k,ranges,index);
  10852. }
  10853. }
  10854. return 0;
  10855. #ifndef TOLUA_RELEASE
  10856. tolua_lerror:
  10857. tolua_error(tolua_S,"#ferror in function 'map2DNoZ'.",&tolua_err);
  10858. return 0;
  10859. #endif
  10860. }
  10861. #endif //#ifndef TOLUA_DISABLE
  10862.  
  10863. /* function: map3D */
  10864. #ifndef TOLUA_DISABLE_tolua_bind_anl_map3D00
  10865. static int tolua_bind_anl_map3D00(lua_State* tolua_S)
  10866. {
  10867. #ifndef TOLUA_RELEASE
  10868. tolua_Error tolua_err;
  10869. if (
  10870. !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
  10871. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CArray3Dd",0,&tolua_err)) ||
  10872. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CKernel",0,&tolua_err)) ||
  10873. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"SMappingRanges",0,&tolua_err)) ||
  10874. (tolua_isvaluenil(tolua_S,5,&tolua_err) || !tolua_isusertype(tolua_S,5,"CInstructionIndex",0,&tolua_err)) ||
  10875. !tolua_isnoobj(tolua_S,6,&tolua_err)
  10876. )
  10877. goto tolua_lerror;
  10878. else
  10879. #endif
  10880. {
  10881. int seamlessmode = ((int) tolua_tonumber(tolua_S,1,0));
  10882. CArray3Dd* a = ((CArray3Dd*) tolua_tousertype(tolua_S,2,0));
  10883. CKernel* k = ((CKernel*) tolua_tousertype(tolua_S,3,0));
  10884. SMappingRanges ranges = *((SMappingRanges*) tolua_tousertype(tolua_S,4,0));
  10885. CInstructionIndex index = *((CInstructionIndex*) tolua_tousertype(tolua_S,5,0));
  10886. {
  10887. map3D(seamlessmode,*a,*k,ranges,index);
  10888. }
  10889. }
  10890. return 0;
  10891. #ifndef TOLUA_RELEASE
  10892. tolua_lerror:
  10893. tolua_error(tolua_S,"#ferror in function 'map3D'.",&tolua_err);
  10894. return 0;
  10895. #endif
  10896. }
  10897. #endif //#ifndef TOLUA_DISABLE
  10898.  
  10899. /* function: mapRGBA2D */
  10900. #ifndef TOLUA_DISABLE_tolua_bind_anl_mapRGBA2D00
  10901. static int tolua_bind_anl_mapRGBA2D00(lua_State* tolua_S)
  10902. {
  10903. #ifndef TOLUA_RELEASE
  10904. tolua_Error tolua_err;
  10905. if (
  10906. !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
  10907. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CArray2Drgba",0,&tolua_err)) ||
  10908. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CKernel",0,&tolua_err)) ||
  10909. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"SMappingRanges",0,&tolua_err)) ||
  10910. (tolua_isvaluenil(tolua_S,5,&tolua_err) || !tolua_isusertype(tolua_S,5,"CInstructionIndex",0,&tolua_err)) ||
  10911. !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
  10912. !tolua_isnoobj(tolua_S,7,&tolua_err)
  10913. )
  10914. goto tolua_lerror;
  10915. else
  10916. #endif
  10917. {
  10918. int seamlessmode = ((int) tolua_tonumber(tolua_S,1,0));
  10919. CArray2Drgba* a = ((CArray2Drgba*) tolua_tousertype(tolua_S,2,0));
  10920. CKernel* k = ((CKernel*) tolua_tousertype(tolua_S,3,0));
  10921. SMappingRanges ranges = *((SMappingRanges*) tolua_tousertype(tolua_S,4,0));
  10922. CInstructionIndex index = *((CInstructionIndex*) tolua_tousertype(tolua_S,5,0));
  10923. double z = ((double) tolua_tonumber(tolua_S,6,0));
  10924. {
  10925. mapRGBA2D(seamlessmode,*a,*k,ranges,index,z);
  10926. }
  10927. }
  10928. return 0;
  10929. #ifndef TOLUA_RELEASE
  10930. tolua_lerror:
  10931. tolua_error(tolua_S,"#ferror in function 'mapRGBA2D'.",&tolua_err);
  10932. return 0;
  10933. #endif
  10934. }
  10935. #endif //#ifndef TOLUA_DISABLE
  10936.  
  10937. /* function: mapRGBA2DNoZ */
  10938. #ifndef TOLUA_DISABLE_tolua_bind_anl_mapRGBA2DNoZ00
  10939. static int tolua_bind_anl_mapRGBA2DNoZ00(lua_State* tolua_S)
  10940. {
  10941. #ifndef TOLUA_RELEASE
  10942. tolua_Error tolua_err;
  10943. if (
  10944. !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
  10945. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CArray2Drgba",0,&tolua_err)) ||
  10946. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CKernel",0,&tolua_err)) ||
  10947. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"SMappingRanges",0,&tolua_err)) ||
  10948. (tolua_isvaluenil(tolua_S,5,&tolua_err) || !tolua_isusertype(tolua_S,5,"CInstructionIndex",0,&tolua_err)) ||
  10949. !tolua_isnoobj(tolua_S,6,&tolua_err)
  10950. )
  10951. goto tolua_lerror;
  10952. else
  10953. #endif
  10954. {
  10955. int seamlessmode = ((int) tolua_tonumber(tolua_S,1,0));
  10956. CArray2Drgba* a = ((CArray2Drgba*) tolua_tousertype(tolua_S,2,0));
  10957. CKernel* k = ((CKernel*) tolua_tousertype(tolua_S,3,0));
  10958. SMappingRanges ranges = *((SMappingRanges*) tolua_tousertype(tolua_S,4,0));
  10959. CInstructionIndex index = *((CInstructionIndex*) tolua_tousertype(tolua_S,5,0));
  10960. {
  10961. mapRGBA2DNoZ(seamlessmode,*a,*k,ranges,index);
  10962. }
  10963. }
  10964. return 0;
  10965. #ifndef TOLUA_RELEASE
  10966. tolua_lerror:
  10967. tolua_error(tolua_S,"#ferror in function 'mapRGBA2DNoZ'.",&tolua_err);
  10968. return 0;
  10969. #endif
  10970. }
  10971. #endif //#ifndef TOLUA_DISABLE
  10972.  
  10973. /* function: mapRGBA3D */
  10974. #ifndef TOLUA_DISABLE_tolua_bind_anl_mapRGBA3D00
  10975. static int tolua_bind_anl_mapRGBA3D00(lua_State* tolua_S)
  10976. {
  10977. #ifndef TOLUA_RELEASE
  10978. tolua_Error tolua_err;
  10979. if (
  10980. !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
  10981. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CArray3Drgba",0,&tolua_err)) ||
  10982. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CKernel",0,&tolua_err)) ||
  10983. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"SMappingRanges",0,&tolua_err)) ||
  10984. (tolua_isvaluenil(tolua_S,5,&tolua_err) || !tolua_isusertype(tolua_S,5,"CInstructionIndex",0,&tolua_err)) ||
  10985. !tolua_isnoobj(tolua_S,6,&tolua_err)
  10986. )
  10987. goto tolua_lerror;
  10988. else
  10989. #endif
  10990. {
  10991. int seamlessmode = ((int) tolua_tonumber(tolua_S,1,0));
  10992. CArray3Drgba* a = ((CArray3Drgba*) tolua_tousertype(tolua_S,2,0));
  10993. CKernel* k = ((CKernel*) tolua_tousertype(tolua_S,3,0));
  10994. SMappingRanges ranges = *((SMappingRanges*) tolua_tousertype(tolua_S,4,0));
  10995. CInstructionIndex index = *((CInstructionIndex*) tolua_tousertype(tolua_S,5,0));
  10996. {
  10997. mapRGBA3D(seamlessmode,*a,*k,ranges,index);
  10998. }
  10999. }
  11000. return 0;
  11001. #ifndef TOLUA_RELEASE
  11002. tolua_lerror:
  11003. tolua_error(tolua_S,"#ferror in function 'mapRGBA3D'.",&tolua_err);
  11004. return 0;
  11005. #endif
  11006. }
  11007. #endif //#ifndef TOLUA_DISABLE
  11008.  
  11009. /* function: saveDoubleArray */
  11010. #ifndef TOLUA_DISABLE_tolua_bind_anl_saveDoubleArray00
  11011. static int tolua_bind_anl_saveDoubleArray00(lua_State* tolua_S)
  11012. {
  11013. #ifndef TOLUA_RELEASE
  11014. tolua_Error tolua_err;
  11015. if (
  11016. !tolua_isstring(tolua_S,1,0,&tolua_err) ||
  11017. !tolua_isusertype(tolua_S,2,"CArray2Dd",0,&tolua_err) ||
  11018. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11019. )
  11020. goto tolua_lerror;
  11021. else
  11022. #endif
  11023. {
  11024. const char* filename = ((const char*) tolua_tostring(tolua_S,1,0));
  11025. CArray2Dd* array = ((CArray2Dd*) tolua_tousertype(tolua_S,2,0));
  11026. {
  11027. saveDoubleArray(filename,array);
  11028. }
  11029. }
  11030. return 0;
  11031. #ifndef TOLUA_RELEASE
  11032. tolua_lerror:
  11033. tolua_error(tolua_S,"#ferror in function 'saveDoubleArray'.",&tolua_err);
  11034. return 0;
  11035. #endif
  11036. }
  11037. #endif //#ifndef TOLUA_DISABLE
  11038.  
  11039. /* function: saveRGBAArray */
  11040. #ifndef TOLUA_DISABLE_tolua_bind_anl_saveRGBAArray00
  11041. static int tolua_bind_anl_saveRGBAArray00(lua_State* tolua_S)
  11042. {
  11043. #ifndef TOLUA_RELEASE
  11044. tolua_Error tolua_err;
  11045. if (
  11046. !tolua_isstring(tolua_S,1,0,&tolua_err) ||
  11047. !tolua_isusertype(tolua_S,2,"CArray2Drgba",0,&tolua_err) ||
  11048. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11049. )
  11050. goto tolua_lerror;
  11051. else
  11052. #endif
  11053. {
  11054. const char* filename = ((const char*) tolua_tostring(tolua_S,1,0));
  11055. CArray2Drgba* array = ((CArray2Drgba*) tolua_tousertype(tolua_S,2,0));
  11056. {
  11057. saveRGBAArray(filename,array);
  11058. }
  11059. }
  11060. return 0;
  11061. #ifndef TOLUA_RELEASE
  11062. tolua_lerror:
  11063. tolua_error(tolua_S,"#ferror in function 'saveRGBAArray'.",&tolua_err);
  11064. return 0;
  11065. #endif
  11066. }
  11067. #endif //#ifndef TOLUA_DISABLE
  11068.  
  11069. /* function: loadDoubleArray */
  11070. #ifndef TOLUA_DISABLE_tolua_bind_anl_loadDoubleArray00
  11071. static int tolua_bind_anl_loadDoubleArray00(lua_State* tolua_S)
  11072. {
  11073. #ifndef TOLUA_RELEASE
  11074. tolua_Error tolua_err;
  11075. if (
  11076. !tolua_isstring(tolua_S,1,0,&tolua_err) ||
  11077. !tolua_isusertype(tolua_S,2,"CArray2Dd",0,&tolua_err) ||
  11078. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11079. )
  11080. goto tolua_lerror;
  11081. else
  11082. #endif
  11083. {
  11084. const char* filename = ((const char*) tolua_tostring(tolua_S,1,0));
  11085. CArray2Dd* array = ((CArray2Dd*) tolua_tousertype(tolua_S,2,0));
  11086. {
  11087. loadDoubleArray(filename,array);
  11088. }
  11089. }
  11090. return 0;
  11091. #ifndef TOLUA_RELEASE
  11092. tolua_lerror:
  11093. tolua_error(tolua_S,"#ferror in function 'loadDoubleArray'.",&tolua_err);
  11094. return 0;
  11095. #endif
  11096. }
  11097. #endif //#ifndef TOLUA_DISABLE
  11098.  
  11099. /* function: loadRGBAArray */
  11100. #ifndef TOLUA_DISABLE_tolua_bind_anl_loadRGBAArray00
  11101. static int tolua_bind_anl_loadRGBAArray00(lua_State* tolua_S)
  11102. {
  11103. #ifndef TOLUA_RELEASE
  11104. tolua_Error tolua_err;
  11105. if (
  11106. !tolua_isstring(tolua_S,1,0,&tolua_err) ||
  11107. !tolua_isusertype(tolua_S,2,"CArray2Drgba",0,&tolua_err) ||
  11108. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11109. )
  11110. goto tolua_lerror;
  11111. else
  11112. #endif
  11113. {
  11114. const char* filename = ((const char*) tolua_tostring(tolua_S,1,0));
  11115. CArray2Drgba* array = ((CArray2Drgba*) tolua_tousertype(tolua_S,2,0));
  11116. {
  11117. loadRGBAArray(filename,array);
  11118. }
  11119. }
  11120. return 0;
  11121. #ifndef TOLUA_RELEASE
  11122. tolua_lerror:
  11123. tolua_error(tolua_S,"#ferror in function 'loadRGBAArray'.",&tolua_err);
  11124. return 0;
  11125. #endif
  11126. }
  11127. #endif //#ifndef TOLUA_DISABLE
  11128.  
  11129. /* function: map2DThread */
  11130. #ifndef TOLUA_DISABLE_tolua_bind_anl_map2DThread00
  11131. static int tolua_bind_anl_map2DThread00(lua_State* tolua_S)
  11132. {
  11133. #ifndef TOLUA_RELEASE
  11134. tolua_Error tolua_err;
  11135. if (
  11136. !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
  11137. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CArray2Dd",0,&tolua_err)) ||
  11138. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CKernel",0,&tolua_err)) ||
  11139. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"SMappingRanges",0,&tolua_err)) ||
  11140. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  11141. !tolua_isnoobj(tolua_S,6,&tolua_err)
  11142. )
  11143. goto tolua_lerror;
  11144. else
  11145. #endif
  11146. {
  11147. int seamlessmode = ((int) tolua_tonumber(tolua_S,1,0));
  11148. CArray2Dd* a = ((CArray2Dd*) tolua_tousertype(tolua_S,2,0));
  11149. CKernel* k = ((CKernel*) tolua_tousertype(tolua_S,3,0));
  11150. SMappingRanges ranges = *((SMappingRanges*) tolua_tousertype(tolua_S,4,0));
  11151. double z = ((double) tolua_tonumber(tolua_S,5,0));
  11152. {
  11153. map2DThread(seamlessmode,*a,*k,ranges,z);
  11154. }
  11155. }
  11156. return 0;
  11157. #ifndef TOLUA_RELEASE
  11158. tolua_lerror:
  11159. tolua_error(tolua_S,"#ferror in function 'map2DThread'.",&tolua_err);
  11160. return 0;
  11161. #endif
  11162. }
  11163. #endif //#ifndef TOLUA_DISABLE
  11164.  
  11165. /* function: map2DNoThread */
  11166. #ifndef TOLUA_DISABLE_tolua_bind_anl_map2DNoThread00
  11167. static int tolua_bind_anl_map2DNoThread00(lua_State* tolua_S)
  11168. {
  11169. #ifndef TOLUA_RELEASE
  11170. tolua_Error tolua_err;
  11171. if (
  11172. !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
  11173. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CArray2Dd",0,&tolua_err)) ||
  11174. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"CKernel",0,&tolua_err)) ||
  11175. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"SMappingRanges",0,&tolua_err)) ||
  11176. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  11177. !tolua_isnoobj(tolua_S,6,&tolua_err)
  11178. )
  11179. goto tolua_lerror;
  11180. else
  11181. #endif
  11182. {
  11183. int seamlessmode = ((int) tolua_tonumber(tolua_S,1,0));
  11184. CArray2Dd* a = ((CArray2Dd*) tolua_tousertype(tolua_S,2,0));
  11185. CKernel* k = ((CKernel*) tolua_tousertype(tolua_S,3,0));
  11186. SMappingRanges ranges = *((SMappingRanges*) tolua_tousertype(tolua_S,4,0));
  11187. double z = ((double) tolua_tonumber(tolua_S,5,0));
  11188. {
  11189. map2DNoThread(seamlessmode,*a,*k,ranges,z);
  11190. }
  11191. }
  11192. return 0;
  11193. #ifndef TOLUA_RELEASE
  11194. tolua_lerror:
  11195. tolua_error(tolua_S,"#ferror in function 'map2DNoThread'.",&tolua_err);
  11196. return 0;
  11197. #endif
  11198. }
  11199. #endif //#ifndef TOLUA_DISABLE
  11200.  
  11201. /* Open function */
  11202. TOLUA_API int tolua_bind_anl_open (lua_State* tolua_S)
  11203. {
  11204. tolua_open(tolua_S);
  11205. tolua_reg_types(tolua_S);
  11206. tolua_module(tolua_S,NULL,0);
  11207. tolua_beginmodule(tolua_S,NULL);
  11208. tolua_function(tolua_S,"highresTime",tolua_bind_anl_highresTime00);
  11209. #ifdef __cplusplus
  11210. tolua_cclass(tolua_S,"CVec2f","CVec2f","",tolua_collect_CVec2f);
  11211. #else
  11212. tolua_cclass(tolua_S,"CVec2f","CVec2f","",NULL);
  11213. #endif
  11214. tolua_beginmodule(tolua_S,"CVec2f");
  11215. tolua_function(tolua_S,"new",tolua_bind_anl_CVec2f_new00);
  11216. tolua_function(tolua_S,"new_local",tolua_bind_anl_CVec2f_new00_local);
  11217. tolua_function(tolua_S,".call",tolua_bind_anl_CVec2f_new00_local);
  11218. tolua_function(tolua_S,"delete",tolua_bind_anl_CVec2f_delete00);
  11219. tolua_function(tolua_S,"new",tolua_bind_anl_CVec2f_new01);
  11220. tolua_function(tolua_S,"new_local",tolua_bind_anl_CVec2f_new01_local);
  11221. tolua_function(tolua_S,".call",tolua_bind_anl_CVec2f_new01_local);
  11222. tolua_function(tolua_S,"new",tolua_bind_anl_CVec2f_new02);
  11223. tolua_function(tolua_S,"new_local",tolua_bind_anl_CVec2f_new02_local);
  11224. tolua_function(tolua_S,".call",tolua_bind_anl_CVec2f_new02_local);
  11225. tolua_function(tolua_S,"new",tolua_bind_anl_CVec2f_new03);
  11226. tolua_function(tolua_S,"new_local",tolua_bind_anl_CVec2f_new03_local);
  11227. tolua_function(tolua_S,".call",tolua_bind_anl_CVec2f_new03_local);
  11228. tolua_function(tolua_S,"new",tolua_bind_anl_CVec2f_new04);
  11229. tolua_function(tolua_S,"new_local",tolua_bind_anl_CVec2f_new04_local);
  11230. tolua_function(tolua_S,".call",tolua_bind_anl_CVec2f_new04_local);
  11231. tolua_function(tolua_S,"dotprod",tolua_bind_anl_CVec2f_dotprod00);
  11232. tolua_function(tolua_S,"length",tolua_bind_anl_CVec2f_length00);
  11233. tolua_function(tolua_S,"normalize",tolua_bind_anl_CVec2f_normalize00);
  11234. tolua_function(tolua_S,"set",tolua_bind_anl_CVec2f_set00);
  11235. tolua_variable(tolua_S,"x",tolua_get_CVec2f_x,tolua_set_CVec2f_x);
  11236. tolua_variable(tolua_S,"y",tolua_get_CVec2f_y,tolua_set_CVec2f_y);
  11237. tolua_endmodule(tolua_S);
  11238. #ifdef __cplusplus
  11239. tolua_cclass(tolua_S,"CVec3f","CVec3f","",tolua_collect_CVec3f);
  11240. #else
  11241. tolua_cclass(tolua_S,"CVec3f","CVec3f","",NULL);
  11242. #endif
  11243. tolua_beginmodule(tolua_S,"CVec3f");
  11244. tolua_function(tolua_S,"new",tolua_bind_anl_CVec3f_new00);
  11245. tolua_function(tolua_S,"new_local",tolua_bind_anl_CVec3f_new00_local);
  11246. tolua_function(tolua_S,".call",tolua_bind_anl_CVec3f_new00_local);
  11247. tolua_function(tolua_S,"delete",tolua_bind_anl_CVec3f_delete00);
  11248. tolua_function(tolua_S,"new",tolua_bind_anl_CVec3f_new01);
  11249. tolua_function(tolua_S,"new_local",tolua_bind_anl_CVec3f_new01_local);
  11250. tolua_function(tolua_S,".call",tolua_bind_anl_CVec3f_new01_local);
  11251. tolua_function(tolua_S,"new",tolua_bind_anl_CVec3f_new02);
  11252. tolua_function(tolua_S,"new_local",tolua_bind_anl_CVec3f_new02_local);
  11253. tolua_function(tolua_S,".call",tolua_bind_anl_CVec3f_new02_local);
  11254. tolua_function(tolua_S,"new",tolua_bind_anl_CVec3f_new03);
  11255. tolua_function(tolua_S,"new_local",tolua_bind_anl_CVec3f_new03_local);
  11256. tolua_function(tolua_S,".call",tolua_bind_anl_CVec3f_new03_local);
  11257. tolua_function(tolua_S,"new",tolua_bind_anl_CVec3f_new04);
  11258. tolua_function(tolua_S,"new_local",tolua_bind_anl_CVec3f_new04_local);
  11259. tolua_function(tolua_S,".call",tolua_bind_anl_CVec3f_new04_local);
  11260. tolua_function(tolua_S,"dotprod",tolua_bind_anl_CVec3f_dotprod00);
  11261. tolua_function(tolua_S,"length",tolua_bind_anl_CVec3f_length00);
  11262. tolua_function(tolua_S,"normalize",tolua_bind_anl_CVec3f_normalize00);
  11263. tolua_function(tolua_S,"set",tolua_bind_anl_CVec3f_set00);
  11264. tolua_variable(tolua_S,"x",tolua_get_CVec3f_x,tolua_set_CVec3f_x);
  11265. tolua_variable(tolua_S,"y",tolua_get_CVec3f_y,tolua_set_CVec3f_y);
  11266. tolua_variable(tolua_S,"z",tolua_get_CVec3f_z,tolua_set_CVec3f_z);
  11267. tolua_endmodule(tolua_S);
  11268. #ifdef __cplusplus
  11269. tolua_cclass(tolua_S,"CVec2i","CVec2i","",tolua_collect_CVec2i);
  11270. #else
  11271. tolua_cclass(tolua_S,"CVec2i","CVec2i","",NULL);
  11272. #endif
  11273. tolua_beginmodule(tolua_S,"CVec2i");
  11274. tolua_function(tolua_S,"new",tolua_bind_anl_CVec2i_new00);
  11275. tolua_function(tolua_S,"new_local",tolua_bind_anl_CVec2i_new00_local);
  11276. tolua_function(tolua_S,".call",tolua_bind_anl_CVec2i_new00_local);
  11277. tolua_function(tolua_S,"new",tolua_bind_anl_CVec2i_new01);
  11278. tolua_function(tolua_S,"new_local",tolua_bind_anl_CVec2i_new01_local);
  11279. tolua_function(tolua_S,".call",tolua_bind_anl_CVec2i_new01_local);
  11280. tolua_function(tolua_S,"new",tolua_bind_anl_CVec2i_new02);
  11281. tolua_function(tolua_S,"new_local",tolua_bind_anl_CVec2i_new02_local);
  11282. tolua_function(tolua_S,".call",tolua_bind_anl_CVec2i_new02_local);
  11283. tolua_function(tolua_S,"new",tolua_bind_anl_CVec2i_new03);
  11284. tolua_function(tolua_S,"new_local",tolua_bind_anl_CVec2i_new03_local);
  11285. tolua_function(tolua_S,".call",tolua_bind_anl_CVec2i_new03_local);
  11286. tolua_function(tolua_S,"delete",tolua_bind_anl_CVec2i_delete00);
  11287. tolua_variable(tolua_S,"x",tolua_get_CVec2i_x,tolua_set_CVec2i_x);
  11288. tolua_variable(tolua_S,"y",tolua_get_CVec2i_y,tolua_set_CVec2i_y);
  11289. tolua_endmodule(tolua_S);
  11290. #ifdef __cplusplus
  11291. tolua_cclass(tolua_S,"CVec3i","CVec3i","",tolua_collect_CVec3i);
  11292. #else
  11293. tolua_cclass(tolua_S,"CVec3i","CVec3i","",NULL);
  11294. #endif
  11295. tolua_beginmodule(tolua_S,"CVec3i");
  11296. tolua_function(tolua_S,"new",tolua_bind_anl_CVec3i_new00);
  11297. tolua_function(tolua_S,"new_local",tolua_bind_anl_CVec3i_new00_local);
  11298. tolua_function(tolua_S,".call",tolua_bind_anl_CVec3i_new00_local);
  11299. tolua_function(tolua_S,"new",tolua_bind_anl_CVec3i_new01);
  11300. tolua_function(tolua_S,"new_local",tolua_bind_anl_CVec3i_new01_local);
  11301. tolua_function(tolua_S,".call",tolua_bind_anl_CVec3i_new01_local);
  11302. tolua_function(tolua_S,"new",tolua_bind_anl_CVec3i_new02);
  11303. tolua_function(tolua_S,"new_local",tolua_bind_anl_CVec3i_new02_local);
  11304. tolua_function(tolua_S,".call",tolua_bind_anl_CVec3i_new02_local);
  11305. tolua_function(tolua_S,"new",tolua_bind_anl_CVec3i_new03);
  11306. tolua_function(tolua_S,"new_local",tolua_bind_anl_CVec3i_new03_local);
  11307. tolua_function(tolua_S,".call",tolua_bind_anl_CVec3i_new03_local);
  11308. tolua_function(tolua_S,"delete",tolua_bind_anl_CVec3i_delete00);
  11309. tolua_variable(tolua_S,"x",tolua_get_CVec3i_x,tolua_set_CVec3i_x);
  11310. tolua_variable(tolua_S,"y",tolua_get_CVec3i_y,tolua_set_CVec3i_y);
  11311. tolua_variable(tolua_S,"z",tolua_get_CVec3i_z,tolua_set_CVec3i_z);
  11312. tolua_endmodule(tolua_S);
  11313. #ifdef __cplusplus
  11314. tolua_cclass(tolua_S,"CVec4i","CVec4i","",tolua_collect_CVec4i);
  11315. #else
  11316. tolua_cclass(tolua_S,"CVec4i","CVec4i","",NULL);
  11317. #endif
  11318. tolua_beginmodule(tolua_S,"CVec4i");
  11319. tolua_function(tolua_S,"new",tolua_bind_anl_CVec4i_new00);
  11320. tolua_function(tolua_S,"new_local",tolua_bind_anl_CVec4i_new00_local);
  11321. tolua_function(tolua_S,".call",tolua_bind_anl_CVec4i_new00_local);
  11322. tolua_function(tolua_S,"new",tolua_bind_anl_CVec4i_new01);
  11323. tolua_function(tolua_S,"new_local",tolua_bind_anl_CVec4i_new01_local);
  11324. tolua_function(tolua_S,".call",tolua_bind_anl_CVec4i_new01_local);
  11325. tolua_function(tolua_S,"new",tolua_bind_anl_CVec4i_new02);
  11326. tolua_function(tolua_S,"new_local",tolua_bind_anl_CVec4i_new02_local);
  11327. tolua_function(tolua_S,".call",tolua_bind_anl_CVec4i_new02_local);
  11328. tolua_function(tolua_S,"new",tolua_bind_anl_CVec4i_new03);
  11329. tolua_function(tolua_S,"new_local",tolua_bind_anl_CVec4i_new03_local);
  11330. tolua_function(tolua_S,".call",tolua_bind_anl_CVec4i_new03_local);
  11331. tolua_function(tolua_S,"delete",tolua_bind_anl_CVec4i_delete00);
  11332. tolua_variable(tolua_S,"x",tolua_get_CVec4i_x,tolua_set_CVec4i_x);
  11333. tolua_variable(tolua_S,"y",tolua_get_CVec4i_y,tolua_set_CVec4i_y);
  11334. tolua_variable(tolua_S,"z",tolua_get_CVec4i_z,tolua_set_CVec4i_z);
  11335. tolua_variable(tolua_S,"w",tolua_get_CVec4i_w,tolua_set_CVec4i_w);
  11336. tolua_endmodule(tolua_S);
  11337. tolua_cclass(tolua_S,"CBasePRNG","CBasePRNG","",NULL);
  11338. tolua_beginmodule(tolua_S,"CBasePRNG");
  11339. tolua_function(tolua_S,"get",tolua_bind_anl_CBasePRNG_get00);
  11340. tolua_function(tolua_S,"setSeed",tolua_bind_anl_CBasePRNG_setSeed00);
  11341. tolua_function(tolua_S,"setSeedTime",tolua_bind_anl_CBasePRNG_setSeedTime00);
  11342. tolua_function(tolua_S,"getTarget",tolua_bind_anl_CBasePRNG_getTarget00);
  11343. tolua_function(tolua_S,"getRange",tolua_bind_anl_CBasePRNG_getRange00);
  11344. tolua_function(tolua_S,"get01",tolua_bind_anl_CBasePRNG_get0100);
  11345. tolua_endmodule(tolua_S);
  11346. #ifdef __cplusplus
  11347. tolua_cclass(tolua_S,"LCG","LCG","CBasePRNG",tolua_collect_LCG);
  11348. #else
  11349. tolua_cclass(tolua_S,"LCG","LCG","CBasePRNG",NULL);
  11350. #endif
  11351. tolua_beginmodule(tolua_S,"LCG");
  11352. tolua_function(tolua_S,"new",tolua_bind_anl_LCG_new00);
  11353. tolua_function(tolua_S,"new_local",tolua_bind_anl_LCG_new00_local);
  11354. tolua_function(tolua_S,".call",tolua_bind_anl_LCG_new00_local);
  11355. tolua_function(tolua_S,"delete",tolua_bind_anl_LCG_delete00);
  11356. tolua_endmodule(tolua_S);
  11357. #ifdef __cplusplus
  11358. tolua_cclass(tolua_S,"Xorshift","Xorshift","CBasePRNG",tolua_collect_Xorshift);
  11359. #else
  11360. tolua_cclass(tolua_S,"Xorshift","Xorshift","CBasePRNG",NULL);
  11361. #endif
  11362. tolua_beginmodule(tolua_S,"Xorshift");
  11363. tolua_function(tolua_S,"new",tolua_bind_anl_Xorshift_new00);
  11364. tolua_function(tolua_S,"new_local",tolua_bind_anl_Xorshift_new00_local);
  11365. tolua_function(tolua_S,".call",tolua_bind_anl_Xorshift_new00_local);
  11366. tolua_function(tolua_S,"delete",tolua_bind_anl_Xorshift_delete00);
  11367. tolua_endmodule(tolua_S);
  11368. #ifdef __cplusplus
  11369. tolua_cclass(tolua_S,"MWC256","MWC256","CBasePRNG",tolua_collect_MWC256);
  11370. #else
  11371. tolua_cclass(tolua_S,"MWC256","MWC256","CBasePRNG",NULL);
  11372. #endif
  11373. tolua_beginmodule(tolua_S,"MWC256");
  11374. tolua_function(tolua_S,"new",tolua_bind_anl_MWC256_new00);
  11375. tolua_function(tolua_S,"new_local",tolua_bind_anl_MWC256_new00_local);
  11376. tolua_function(tolua_S,".call",tolua_bind_anl_MWC256_new00_local);
  11377. tolua_function(tolua_S,"delete",tolua_bind_anl_MWC256_delete00);
  11378. tolua_endmodule(tolua_S);
  11379. #ifdef __cplusplus
  11380. tolua_cclass(tolua_S,"CMWC4096","CMWC4096","CBasePRNG",tolua_collect_CMWC4096);
  11381. #else
  11382. tolua_cclass(tolua_S,"CMWC4096","CMWC4096","CBasePRNG",NULL);
  11383. #endif
  11384. tolua_beginmodule(tolua_S,"CMWC4096");
  11385. tolua_function(tolua_S,"new",tolua_bind_anl_CMWC4096_new00);
  11386. tolua_function(tolua_S,"new_local",tolua_bind_anl_CMWC4096_new00_local);
  11387. tolua_function(tolua_S,".call",tolua_bind_anl_CMWC4096_new00_local);
  11388. tolua_function(tolua_S,"delete",tolua_bind_anl_CMWC4096_delete00);
  11389. tolua_endmodule(tolua_S);
  11390. #ifdef __cplusplus
  11391. tolua_cclass(tolua_S,"KISS","KISS","CBasePRNG",tolua_collect_KISS);
  11392. #else
  11393. tolua_cclass(tolua_S,"KISS","KISS","CBasePRNG",NULL);
  11394. #endif
  11395. tolua_beginmodule(tolua_S,"KISS");
  11396. tolua_function(tolua_S,"new",tolua_bind_anl_KISS_new00);
  11397. tolua_function(tolua_S,"new_local",tolua_bind_anl_KISS_new00_local);
  11398. tolua_function(tolua_S,".call",tolua_bind_anl_KISS_new00_local);
  11399. tolua_function(tolua_S,"delete",tolua_bind_anl_KISS_delete00);
  11400. tolua_endmodule(tolua_S);
  11401. #ifdef __cplusplus
  11402. tolua_cclass(tolua_S,"CCoordinate","CCoordinate","",tolua_collect_CCoordinate);
  11403. #else
  11404. tolua_cclass(tolua_S,"CCoordinate","CCoordinate","",NULL);
  11405. #endif
  11406. tolua_beginmodule(tolua_S,"CCoordinate");
  11407. tolua_function(tolua_S,"new",tolua_bind_anl_CCoordinate_new00);
  11408. tolua_function(tolua_S,"new_local",tolua_bind_anl_CCoordinate_new00_local);
  11409. tolua_function(tolua_S,".call",tolua_bind_anl_CCoordinate_new00_local);
  11410. tolua_function(tolua_S,"new",tolua_bind_anl_CCoordinate_new01);
  11411. tolua_function(tolua_S,"new_local",tolua_bind_anl_CCoordinate_new01_local);
  11412. tolua_function(tolua_S,".call",tolua_bind_anl_CCoordinate_new01_local);
  11413. tolua_function(tolua_S,"new",tolua_bind_anl_CCoordinate_new02);
  11414. tolua_function(tolua_S,"new_local",tolua_bind_anl_CCoordinate_new02_local);
  11415. tolua_function(tolua_S,".call",tolua_bind_anl_CCoordinate_new02_local);
  11416. tolua_function(tolua_S,"new",tolua_bind_anl_CCoordinate_new03);
  11417. tolua_function(tolua_S,"new_local",tolua_bind_anl_CCoordinate_new03_local);
  11418. tolua_function(tolua_S,".call",tolua_bind_anl_CCoordinate_new03_local);
  11419. tolua_function(tolua_S,"new",tolua_bind_anl_CCoordinate_new04);
  11420. tolua_function(tolua_S,"new_local",tolua_bind_anl_CCoordinate_new04_local);
  11421. tolua_function(tolua_S,".call",tolua_bind_anl_CCoordinate_new04_local);
  11422. tolua_function(tolua_S,"new",tolua_bind_anl_CCoordinate_new05);
  11423. tolua_function(tolua_S,"new_local",tolua_bind_anl_CCoordinate_new05_local);
  11424. tolua_function(tolua_S,".call",tolua_bind_anl_CCoordinate_new05_local);
  11425. tolua_function(tolua_S,"set",tolua_bind_anl_CCoordinate_set00);
  11426. tolua_function(tolua_S,"set",tolua_bind_anl_CCoordinate_set01);
  11427. tolua_function(tolua_S,"set",tolua_bind_anl_CCoordinate_set02);
  11428. tolua_function(tolua_S,"set",tolua_bind_anl_CCoordinate_set03);
  11429. tolua_endmodule(tolua_S);
  11430. #ifdef __cplusplus
  11431. tolua_cclass(tolua_S,"CInstructionIndex","CInstructionIndex","",tolua_collect_CInstructionIndex);
  11432. #else
  11433. tolua_cclass(tolua_S,"CInstructionIndex","CInstructionIndex","",NULL);
  11434. #endif
  11435. tolua_beginmodule(tolua_S,"CInstructionIndex");
  11436. tolua_endmodule(tolua_S);
  11437. tolua_cclass(tolua_S,"CInstructionListType","CInstructionListType","",NULL);
  11438. tolua_beginmodule(tolua_S,"CInstructionListType");
  11439. tolua_endmodule(tolua_S);
  11440. #ifdef __cplusplus
  11441. tolua_cclass(tolua_S,"CKernel","CKernel","",tolua_collect_CKernel);
  11442. #else
  11443. tolua_cclass(tolua_S,"CKernel","CKernel","",NULL);
  11444. #endif
  11445. tolua_beginmodule(tolua_S,"CKernel");
  11446. tolua_function(tolua_S,"new",tolua_bind_anl_CKernel_new00);
  11447. tolua_function(tolua_S,"new_local",tolua_bind_anl_CKernel_new00_local);
  11448. tolua_function(tolua_S,".call",tolua_bind_anl_CKernel_new00_local);
  11449. tolua_function(tolua_S,"delete",tolua_bind_anl_CKernel_delete00);
  11450. tolua_function(tolua_S,"constant",tolua_bind_anl_CKernel_constant00);
  11451. tolua_function(tolua_S,"valueBasis",tolua_bind_anl_CKernel_valueBasis00);
  11452. tolua_function(tolua_S,"gradientBasis",tolua_bind_anl_CKernel_gradientBasis00);
  11453. tolua_function(tolua_S,"simplexBasis",tolua_bind_anl_CKernel_simplexBasis00);
  11454. tolua_function(tolua_S,"cellularBasis",tolua_bind_anl_CKernel_cellularBasis00);
  11455. tolua_function(tolua_S,"add",tolua_bind_anl_CKernel_add00);
  11456. tolua_function(tolua_S,"subtract",tolua_bind_anl_CKernel_subtract00);
  11457. tolua_function(tolua_S,"multiply",tolua_bind_anl_CKernel_multiply00);
  11458. tolua_function(tolua_S,"divide",tolua_bind_anl_CKernel_divide00);
  11459. tolua_function(tolua_S,"maximum",tolua_bind_anl_CKernel_maximum00);
  11460. tolua_function(tolua_S,"minimum",tolua_bind_anl_CKernel_minimum00);
  11461. tolua_function(tolua_S,"abs",tolua_bind_anl_CKernel_abs00);
  11462. tolua_function(tolua_S,"pow",tolua_bind_anl_CKernel_pow00);
  11463. tolua_function(tolua_S,"bias",tolua_bind_anl_CKernel_bias00);
  11464. tolua_function(tolua_S,"gain",tolua_bind_anl_CKernel_gain00);
  11465. tolua_function(tolua_S,"scaleDomain",tolua_bind_anl_CKernel_scaleDomain00);
  11466. tolua_function(tolua_S,"scaleDomain",tolua_bind_anl_CKernel_scaleDomain01);
  11467. tolua_function(tolua_S,"scaleDomain",tolua_bind_anl_CKernel_scaleDomain02);
  11468. tolua_function(tolua_S,"scaleDomain",tolua_bind_anl_CKernel_scaleDomain03);
  11469. tolua_function(tolua_S,"scaleX",tolua_bind_anl_CKernel_scaleX00);
  11470. tolua_function(tolua_S,"scaleY",tolua_bind_anl_CKernel_scaleY00);
  11471. tolua_function(tolua_S,"scaleZ",tolua_bind_anl_CKernel_scaleZ00);
  11472. tolua_function(tolua_S,"scaleW",tolua_bind_anl_CKernel_scaleW00);
  11473. tolua_function(tolua_S,"scaleU",tolua_bind_anl_CKernel_scaleU00);
  11474. tolua_function(tolua_S,"scaleV",tolua_bind_anl_CKernel_scaleV00);
  11475. tolua_function(tolua_S,"translateDomain",tolua_bind_anl_CKernel_translateDomain00);
  11476. tolua_function(tolua_S,"translateDomain",tolua_bind_anl_CKernel_translateDomain01);
  11477. tolua_function(tolua_S,"translateDomain",tolua_bind_anl_CKernel_translateDomain02);
  11478. tolua_function(tolua_S,"translateDomain",tolua_bind_anl_CKernel_translateDomain03);
  11479. tolua_function(tolua_S,"translateX",tolua_bind_anl_CKernel_translateX00);
  11480. tolua_function(tolua_S,"translateY",tolua_bind_anl_CKernel_translateY00);
  11481. tolua_function(tolua_S,"translateZ",tolua_bind_anl_CKernel_translateZ00);
  11482. tolua_function(tolua_S,"translateW",tolua_bind_anl_CKernel_translateW00);
  11483. tolua_function(tolua_S,"translateU",tolua_bind_anl_CKernel_translateU00);
  11484. tolua_function(tolua_S,"translateV",tolua_bind_anl_CKernel_translateV00);
  11485. tolua_function(tolua_S,"rotateDomain",tolua_bind_anl_CKernel_rotateDomain00);
  11486. tolua_function(tolua_S,"addSequence",tolua_bind_anl_CKernel_addSequence00);
  11487. tolua_function(tolua_S,"multiplySequence",tolua_bind_anl_CKernel_multiplySequence00);
  11488. tolua_function(tolua_S,"maxSequence",tolua_bind_anl_CKernel_maxSequence00);
  11489. tolua_function(tolua_S,"minSequence",tolua_bind_anl_CKernel_minSequence00);
  11490. tolua_function(tolua_S,"blend",tolua_bind_anl_CKernel_blend00);
  11491. tolua_function(tolua_S,"select",tolua_bind_anl_CKernel_select00);
  11492. tolua_function(tolua_S,"clamp",tolua_bind_anl_CKernel_clamp00);
  11493. tolua_function(tolua_S,"cos",tolua_bind_anl_CKernel_cos00);
  11494. tolua_function(tolua_S,"sin",tolua_bind_anl_CKernel_sin00);
  11495. tolua_function(tolua_S,"tan",tolua_bind_anl_CKernel_tan00);
  11496. tolua_function(tolua_S,"acos",tolua_bind_anl_CKernel_acos00);
  11497. tolua_function(tolua_S,"asin",tolua_bind_anl_CKernel_asin00);
  11498. tolua_function(tolua_S,"atan",tolua_bind_anl_CKernel_atan00);
  11499. tolua_function(tolua_S,"tiers",tolua_bind_anl_CKernel_tiers00);
  11500. tolua_function(tolua_S,"smoothTiers",tolua_bind_anl_CKernel_smoothTiers00);
  11501. tolua_function(tolua_S,"x",tolua_bind_anl_CKernel_x00);
  11502. tolua_function(tolua_S,"y",tolua_bind_anl_CKernel_y00);
  11503. tolua_function(tolua_S,"z",tolua_bind_anl_CKernel_z00);
  11504. tolua_function(tolua_S,"w",tolua_bind_anl_CKernel_w00);
  11505. tolua_function(tolua_S,"u",tolua_bind_anl_CKernel_u00);
  11506. tolua_function(tolua_S,"v",tolua_bind_anl_CKernel_v00);
  11507. tolua_function(tolua_S,"radial",tolua_bind_anl_CKernel_radial00);
  11508. tolua_function(tolua_S,"hexTile",tolua_bind_anl_CKernel_hexTile00);
  11509. tolua_function(tolua_S,"hexBump",tolua_bind_anl_CKernel_hexBump00);
  11510. tolua_function(tolua_S,"combineRGBA",tolua_bind_anl_CKernel_combineRGBA00);
  11511. tolua_function(tolua_S,"scaleOffset",tolua_bind_anl_CKernel_scaleOffset00);
  11512. tolua_function(tolua_S,"simpleFractalLayer",tolua_bind_anl_CKernel_simpleFractalLayer00);
  11513. tolua_function(tolua_S,"simpleRidgedLayer",tolua_bind_anl_CKernel_simpleRidgedLayer00);
  11514. tolua_function(tolua_S,"simplefBm",tolua_bind_anl_CKernel_simplefBm00);
  11515. tolua_function(tolua_S,"simpleRidgedMultifractal",tolua_bind_anl_CKernel_simpleRidgedMultifractal00);
  11516. tolua_function(tolua_S,"getKernel",tolua_bind_anl_CKernel_getKernel00);
  11517. tolua_function(tolua_S,"lastIndex",tolua_bind_anl_CKernel_lastIndex00);
  11518. tolua_function(tolua_S,"nextIndex",tolua_bind_anl_CKernel_nextIndex00);
  11519. tolua_endmodule(tolua_S);
  11520. #ifdef __cplusplus
  11521. tolua_cclass(tolua_S,"SRGBA","SRGBA","",tolua_collect_SRGBA);
  11522. #else
  11523. tolua_cclass(tolua_S,"SRGBA","SRGBA","",NULL);
  11524. #endif
  11525. tolua_beginmodule(tolua_S,"SRGBA");
  11526. tolua_function(tolua_S,"new",tolua_bind_anl_SRGBA_new00);
  11527. tolua_function(tolua_S,"new_local",tolua_bind_anl_SRGBA_new00_local);
  11528. tolua_function(tolua_S,".call",tolua_bind_anl_SRGBA_new00_local);
  11529. tolua_function(tolua_S,"new",tolua_bind_anl_SRGBA_new01);
  11530. tolua_function(tolua_S,"new_local",tolua_bind_anl_SRGBA_new01_local);
  11531. tolua_function(tolua_S,".call",tolua_bind_anl_SRGBA_new01_local);
  11532. tolua_function(tolua_S,"new",tolua_bind_anl_SRGBA_new02);
  11533. tolua_function(tolua_S,"new_local",tolua_bind_anl_SRGBA_new02_local);
  11534. tolua_function(tolua_S,".call",tolua_bind_anl_SRGBA_new02_local);
  11535. tolua_function(tolua_S,"new",tolua_bind_anl_SRGBA_new03);
  11536. tolua_function(tolua_S,"new_local",tolua_bind_anl_SRGBA_new03_local);
  11537. tolua_function(tolua_S,".call",tolua_bind_anl_SRGBA_new03_local);
  11538. tolua_function(tolua_S,"delete",tolua_bind_anl_SRGBA_delete00);
  11539. tolua_variable(tolua_S,"r",tolua_get_SRGBA_r,tolua_set_SRGBA_r);
  11540. tolua_variable(tolua_S,"g",tolua_get_SRGBA_g,tolua_set_SRGBA_g);
  11541. tolua_variable(tolua_S,"b",tolua_get_SRGBA_b,tolua_set_SRGBA_b);
  11542. tolua_variable(tolua_S,"a",tolua_get_SRGBA_a,tolua_set_SRGBA_a);
  11543. tolua_endmodule(tolua_S);
  11544. #ifdef __cplusplus
  11545. tolua_cclass(tolua_S,"SVMOutput","SVMOutput","",tolua_collect_SVMOutput);
  11546. #else
  11547. tolua_cclass(tolua_S,"SVMOutput","SVMOutput","",NULL);
  11548. #endif
  11549. tolua_beginmodule(tolua_S,"SVMOutput");
  11550. tolua_variable(tolua_S,"outfloat_",tolua_get_SVMOutput_outfloat_,tolua_set_SVMOutput_outfloat_);
  11551. tolua_variable(tolua_S,"outrgba_",tolua_get_SVMOutput_outrgba_,tolua_set_SVMOutput_outrgba_);
  11552. tolua_function(tolua_S,"new",tolua_bind_anl_SVMOutput_new00);
  11553. tolua_function(tolua_S,"new_local",tolua_bind_anl_SVMOutput_new00_local);
  11554. tolua_function(tolua_S,".call",tolua_bind_anl_SVMOutput_new00_local);
  11555. tolua_function(tolua_S,"delete",tolua_bind_anl_SVMOutput_delete00);
  11556. tolua_endmodule(tolua_S);
  11557. #ifdef __cplusplus
  11558. tolua_cclass(tolua_S,"CNoiseExecutor","CNoiseExecutor","",tolua_collect_CNoiseExecutor);
  11559. #else
  11560. tolua_cclass(tolua_S,"CNoiseExecutor","CNoiseExecutor","",NULL);
  11561. #endif
  11562. tolua_beginmodule(tolua_S,"CNoiseExecutor");
  11563. tolua_function(tolua_S,"new",tolua_bind_anl_CNoiseExecutor_new00);
  11564. tolua_function(tolua_S,"new_local",tolua_bind_anl_CNoiseExecutor_new00_local);
  11565. tolua_function(tolua_S,".call",tolua_bind_anl_CNoiseExecutor_new00_local);
  11566. tolua_function(tolua_S,"delete",tolua_bind_anl_CNoiseExecutor_delete00);
  11567. tolua_function(tolua_S,"evaluate",tolua_bind_anl_CNoiseExecutor_evaluate00);
  11568. tolua_function(tolua_S,"evaluateAt",tolua_bind_anl_CNoiseExecutor_evaluateAt00);
  11569. tolua_endmodule(tolua_S);
  11570. tolua_constant(tolua_S,"SEAMLESS_NONE",SEAMLESS_NONE);
  11571. tolua_constant(tolua_S,"SEAMLESS_X",SEAMLESS_X);
  11572. tolua_constant(tolua_S,"SEAMLESS_Y",SEAMLESS_Y);
  11573. tolua_constant(tolua_S,"SEAMLESS_Z",SEAMLESS_Z);
  11574. tolua_constant(tolua_S,"SEAMLESS_XY",SEAMLESS_XY);
  11575. tolua_constant(tolua_S,"SEAMLESS_XZ",SEAMLESS_XZ);
  11576. tolua_constant(tolua_S,"SEAMLESS_YZ",SEAMLESS_YZ);
  11577. tolua_constant(tolua_S,"SEAMLESS_XYZ",SEAMLESS_XYZ);
  11578. #ifdef __cplusplus
  11579. tolua_cclass(tolua_S,"SMappingRanges","SMappingRanges","",tolua_collect_SMappingRanges);
  11580. #else
  11581. tolua_cclass(tolua_S,"SMappingRanges","SMappingRanges","",NULL);
  11582. #endif
  11583. tolua_beginmodule(tolua_S,"SMappingRanges");
  11584. tolua_function(tolua_S,"new",tolua_bind_anl_SMappingRanges_new00);
  11585. tolua_function(tolua_S,"new_local",tolua_bind_anl_SMappingRanges_new00_local);
  11586. tolua_function(tolua_S,".call",tolua_bind_anl_SMappingRanges_new00_local);
  11587. tolua_function(tolua_S,"new",tolua_bind_anl_SMappingRanges_new01);
  11588. tolua_function(tolua_S,"new_local",tolua_bind_anl_SMappingRanges_new01_local);
  11589. tolua_function(tolua_S,".call",tolua_bind_anl_SMappingRanges_new01_local);
  11590. tolua_function(tolua_S,"new",tolua_bind_anl_SMappingRanges_new02);
  11591. tolua_function(tolua_S,"new_local",tolua_bind_anl_SMappingRanges_new02_local);
  11592. tolua_function(tolua_S,".call",tolua_bind_anl_SMappingRanges_new02_local);
  11593. tolua_function(tolua_S,"new",tolua_bind_anl_SMappingRanges_new03);
  11594. tolua_function(tolua_S,"new_local",tolua_bind_anl_SMappingRanges_new03_local);
  11595. tolua_function(tolua_S,".call",tolua_bind_anl_SMappingRanges_new03_local);
  11596. tolua_function(tolua_S,"delete",tolua_bind_anl_SMappingRanges_delete00);
  11597. tolua_variable(tolua_S,"mapx0",tolua_get_SMappingRanges_mapx0,tolua_set_SMappingRanges_mapx0);
  11598. tolua_variable(tolua_S,"mapy0",tolua_get_SMappingRanges_mapy0,tolua_set_SMappingRanges_mapy0);
  11599. tolua_variable(tolua_S,"mapz0",tolua_get_SMappingRanges_mapz0,tolua_set_SMappingRanges_mapz0);
  11600. tolua_variable(tolua_S,"mapx1",tolua_get_SMappingRanges_mapx1,tolua_set_SMappingRanges_mapx1);
  11601. tolua_variable(tolua_S,"mapy1",tolua_get_SMappingRanges_mapy1,tolua_set_SMappingRanges_mapy1);
  11602. tolua_variable(tolua_S,"mapz1",tolua_get_SMappingRanges_mapz1,tolua_set_SMappingRanges_mapz1);
  11603. tolua_variable(tolua_S,"loopx0",tolua_get_SMappingRanges_loopx0,tolua_set_SMappingRanges_loopx0);
  11604. tolua_variable(tolua_S,"loopy0",tolua_get_SMappingRanges_loopy0,tolua_set_SMappingRanges_loopy0);
  11605. tolua_variable(tolua_S,"loopz0",tolua_get_SMappingRanges_loopz0,tolua_set_SMappingRanges_loopz0);
  11606. tolua_variable(tolua_S,"loopx1",tolua_get_SMappingRanges_loopx1,tolua_set_SMappingRanges_loopx1);
  11607. tolua_variable(tolua_S,"loopy1",tolua_get_SMappingRanges_loopy1,tolua_set_SMappingRanges_loopy1);
  11608. tolua_variable(tolua_S,"loopz1",tolua_get_SMappingRanges_loopz1,tolua_set_SMappingRanges_loopz1);
  11609. tolua_endmodule(tolua_S);
  11610. #ifdef __cplusplus
  11611. tolua_cclass(tolua_S,"CArray2Dd","CArray2Dd","",tolua_collect_CArray2Dd);
  11612. #else
  11613. tolua_cclass(tolua_S,"CArray2Dd","CArray2Dd","",NULL);
  11614. #endif
  11615. tolua_beginmodule(tolua_S,"CArray2Dd");
  11616. tolua_function(tolua_S,"new",tolua_bind_anl_CArray2Dd_new00);
  11617. tolua_function(tolua_S,"new_local",tolua_bind_anl_CArray2Dd_new00_local);
  11618. tolua_function(tolua_S,".call",tolua_bind_anl_CArray2Dd_new00_local);
  11619. tolua_function(tolua_S,"new",tolua_bind_anl_CArray2Dd_new01);
  11620. tolua_function(tolua_S,"new_local",tolua_bind_anl_CArray2Dd_new01_local);
  11621. tolua_function(tolua_S,".call",tolua_bind_anl_CArray2Dd_new01_local);
  11622. tolua_function(tolua_S,"delete",tolua_bind_anl_CArray2Dd_delete00);
  11623. tolua_function(tolua_S,"resize",tolua_bind_anl_CArray2Dd_resize00);
  11624. tolua_function(tolua_S,"destroy",tolua_bind_anl_CArray2Dd_destroy00);
  11625. tolua_function(tolua_S,"width",tolua_bind_anl_CArray2Dd_width00);
  11626. tolua_function(tolua_S,"height",tolua_bind_anl_CArray2Dd_height00);
  11627. tolua_function(tolua_S,"set",tolua_bind_anl_CArray2Dd_set00);
  11628. tolua_function(tolua_S,"get",tolua_bind_anl_CArray2Dd_get00);
  11629. tolua_function(tolua_S,"get",tolua_bind_anl_CArray2Dd_get01);
  11630. tolua_function(tolua_S,"getIndexed",tolua_bind_anl_CArray2Dd_getIndexed00);
  11631. tolua_function(tolua_S,"getBilinear",tolua_bind_anl_CArray2Dd_getBilinear00);
  11632. tolua_function(tolua_S,"fill",tolua_bind_anl_CArray2Dd_fill00);
  11633. tolua_function(tolua_S,"copyFrom",tolua_bind_anl_CArray2Dd_copyFrom00);
  11634. tolua_function(tolua_S,"addArray",tolua_bind_anl_CArray2Dd_addArray00);
  11635. tolua_function(tolua_S,"subtractArray",tolua_bind_anl_CArray2Dd_subtractArray00);
  11636. tolua_function(tolua_S,"multiplyArray",tolua_bind_anl_CArray2Dd_multiplyArray00);
  11637. tolua_function(tolua_S,"copyFromSub",tolua_bind_anl_CArray2Dd_copyFromSub00);
  11638. tolua_function(tolua_S,"addArraySub",tolua_bind_anl_CArray2Dd_addArraySub00);
  11639. tolua_function(tolua_S,"subtractArraySub",tolua_bind_anl_CArray2Dd_subtractArraySub00);
  11640. tolua_function(tolua_S,"multiplyArraySub",tolua_bind_anl_CArray2Dd_multiplyArraySub00);
  11641. tolua_function(tolua_S,"scale",tolua_bind_anl_CArray2Dd_scale00);
  11642. tolua_function(tolua_S,"getMax",tolua_bind_anl_CArray2Dd_getMax00);
  11643. tolua_function(tolua_S,"getMin",tolua_bind_anl_CArray2Dd_getMin00);
  11644. tolua_function(tolua_S,"scaleToRange",tolua_bind_anl_CArray2Dd_scaleToRange00);
  11645. tolua_function(tolua_S,"wrapCoords",tolua_bind_anl_CArray2Dd_wrapCoords00);
  11646. tolua_function(tolua_S,"offset",tolua_bind_anl_CArray2Dd_offset00);
  11647. tolua_function(tolua_S,"flipVertical",tolua_bind_anl_CArray2Dd_flipVertical00);
  11648. tolua_function(tolua_S,"flipHorizontal",tolua_bind_anl_CArray2Dd_flipHorizontal00);
  11649. tolua_function(tolua_S,"blur",tolua_bind_anl_CArray2Dd_blur00);
  11650. tolua_endmodule(tolua_S);
  11651. #ifdef __cplusplus
  11652. tolua_cclass(tolua_S,"CArray2Drgba","CArray2Drgba","",tolua_collect_CArray2Drgba);
  11653. #else
  11654. tolua_cclass(tolua_S,"CArray2Drgba","CArray2Drgba","",NULL);
  11655. #endif
  11656. tolua_beginmodule(tolua_S,"CArray2Drgba");
  11657. tolua_function(tolua_S,"new",tolua_bind_anl_CArray2Drgba_new00);
  11658. tolua_function(tolua_S,"new_local",tolua_bind_anl_CArray2Drgba_new00_local);
  11659. tolua_function(tolua_S,".call",tolua_bind_anl_CArray2Drgba_new00_local);
  11660. tolua_function(tolua_S,"new",tolua_bind_anl_CArray2Drgba_new01);
  11661. tolua_function(tolua_S,"new_local",tolua_bind_anl_CArray2Drgba_new01_local);
  11662. tolua_function(tolua_S,".call",tolua_bind_anl_CArray2Drgba_new01_local);
  11663. tolua_function(tolua_S,"delete",tolua_bind_anl_CArray2Drgba_delete00);
  11664. tolua_function(tolua_S,"resize",tolua_bind_anl_CArray2Drgba_resize00);
  11665. tolua_function(tolua_S,"destroy",tolua_bind_anl_CArray2Drgba_destroy00);
  11666. tolua_function(tolua_S,"width",tolua_bind_anl_CArray2Drgba_width00);
  11667. tolua_function(tolua_S,"height",tolua_bind_anl_CArray2Drgba_height00);
  11668. tolua_function(tolua_S,"set",tolua_bind_anl_CArray2Drgba_set00);
  11669. tolua_function(tolua_S,"get",tolua_bind_anl_CArray2Drgba_get00);
  11670. tolua_function(tolua_S,"get",tolua_bind_anl_CArray2Drgba_get01);
  11671. tolua_function(tolua_S,"getIndexed",tolua_bind_anl_CArray2Drgba_getIndexed00);
  11672. tolua_function(tolua_S,"getBilinear",tolua_bind_anl_CArray2Drgba_getBilinear00);
  11673. tolua_function(tolua_S,"fill",tolua_bind_anl_CArray2Drgba_fill00);
  11674. tolua_function(tolua_S,"copyFrom",tolua_bind_anl_CArray2Drgba_copyFrom00);
  11675. tolua_function(tolua_S,"addArray",tolua_bind_anl_CArray2Drgba_addArray00);
  11676. tolua_function(tolua_S,"subtractArray",tolua_bind_anl_CArray2Drgba_subtractArray00);
  11677. tolua_function(tolua_S,"multiplyArray",tolua_bind_anl_CArray2Drgba_multiplyArray00);
  11678. tolua_function(tolua_S,"copyFromSub",tolua_bind_anl_CArray2Drgba_copyFromSub00);
  11679. tolua_function(tolua_S,"addArraySub",tolua_bind_anl_CArray2Drgba_addArraySub00);
  11680. tolua_function(tolua_S,"subtractArraySub",tolua_bind_anl_CArray2Drgba_subtractArraySub00);
  11681. tolua_function(tolua_S,"multiplyArraySub",tolua_bind_anl_CArray2Drgba_multiplyArraySub00);
  11682. tolua_function(tolua_S,"scale",tolua_bind_anl_CArray2Drgba_scale00);
  11683. tolua_function(tolua_S,"wrapCoords",tolua_bind_anl_CArray2Drgba_wrapCoords00);
  11684. tolua_function(tolua_S,"offset",tolua_bind_anl_CArray2Drgba_offset00);
  11685. tolua_function(tolua_S,"flipVertical",tolua_bind_anl_CArray2Drgba_flipVertical00);
  11686. tolua_function(tolua_S,"flipHorizontal",tolua_bind_anl_CArray2Drgba_flipHorizontal00);
  11687. tolua_function(tolua_S,"blur",tolua_bind_anl_CArray2Drgba_blur00);
  11688. tolua_endmodule(tolua_S);
  11689. #ifdef __cplusplus
  11690. tolua_cclass(tolua_S,"CArray3Dd","CArray3Dd","",tolua_collect_CArray3Dd);
  11691. #else
  11692. tolua_cclass(tolua_S,"CArray3Dd","CArray3Dd","",NULL);
  11693. #endif
  11694. tolua_beginmodule(tolua_S,"CArray3Dd");
  11695. tolua_function(tolua_S,"new",tolua_bind_anl_CArray3Dd_new00);
  11696. tolua_function(tolua_S,"new_local",tolua_bind_anl_CArray3Dd_new00_local);
  11697. tolua_function(tolua_S,".call",tolua_bind_anl_CArray3Dd_new00_local);
  11698. tolua_function(tolua_S,"new",tolua_bind_anl_CArray3Dd_new01);
  11699. tolua_function(tolua_S,"new_local",tolua_bind_anl_CArray3Dd_new01_local);
  11700. tolua_function(tolua_S,".call",tolua_bind_anl_CArray3Dd_new01_local);
  11701. tolua_function(tolua_S,"delete",tolua_bind_anl_CArray3Dd_delete00);
  11702. tolua_function(tolua_S,"width",tolua_bind_anl_CArray3Dd_width00);
  11703. tolua_function(tolua_S,"height",tolua_bind_anl_CArray3Dd_height00);
  11704. tolua_function(tolua_S,"depth",tolua_bind_anl_CArray3Dd_depth00);
  11705. tolua_function(tolua_S,"set",tolua_bind_anl_CArray3Dd_set00);
  11706. tolua_function(tolua_S,"get",tolua_bind_anl_CArray3Dd_get00);
  11707. tolua_function(tolua_S,"resize",tolua_bind_anl_CArray3Dd_resize00);
  11708. tolua_endmodule(tolua_S);
  11709. #ifdef __cplusplus
  11710. tolua_cclass(tolua_S,"CArray3Drgba","CArray3Drgba","",tolua_collect_CArray3Drgba);
  11711. #else
  11712. tolua_cclass(tolua_S,"CArray3Drgba","CArray3Drgba","",NULL);
  11713. #endif
  11714. tolua_beginmodule(tolua_S,"CArray3Drgba");
  11715. tolua_function(tolua_S,"new",tolua_bind_anl_CArray3Drgba_new00);
  11716. tolua_function(tolua_S,"new_local",tolua_bind_anl_CArray3Drgba_new00_local);
  11717. tolua_function(tolua_S,".call",tolua_bind_anl_CArray3Drgba_new00_local);
  11718. tolua_function(tolua_S,"new",tolua_bind_anl_CArray3Drgba_new01);
  11719. tolua_function(tolua_S,"new_local",tolua_bind_anl_CArray3Drgba_new01_local);
  11720. tolua_function(tolua_S,".call",tolua_bind_anl_CArray3Drgba_new01_local);
  11721. tolua_function(tolua_S,"delete",tolua_bind_anl_CArray3Drgba_delete00);
  11722. tolua_function(tolua_S,"width",tolua_bind_anl_CArray3Drgba_width00);
  11723. tolua_function(tolua_S,"height",tolua_bind_anl_CArray3Drgba_height00);
  11724. tolua_function(tolua_S,"depth",tolua_bind_anl_CArray3Drgba_depth00);
  11725. tolua_function(tolua_S,"resize",tolua_bind_anl_CArray3Drgba_resize00);
  11726. tolua_function(tolua_S,"set",tolua_bind_anl_CArray3Drgba_set00);
  11727. tolua_function(tolua_S,"get",tolua_bind_anl_CArray3Drgba_get00);
  11728. tolua_endmodule(tolua_S);
  11729. tolua_function(tolua_S,"map2D",tolua_bind_anl_map2D00);
  11730. tolua_function(tolua_S,"map2DNoZ",tolua_bind_anl_map2DNoZ00);
  11731. tolua_function(tolua_S,"map3D",tolua_bind_anl_map3D00);
  11732. tolua_function(tolua_S,"mapRGBA2D",tolua_bind_anl_mapRGBA2D00);
  11733. tolua_function(tolua_S,"mapRGBA2DNoZ",tolua_bind_anl_mapRGBA2DNoZ00);
  11734. tolua_function(tolua_S,"mapRGBA3D",tolua_bind_anl_mapRGBA3D00);
  11735. tolua_function(tolua_S,"saveDoubleArray",tolua_bind_anl_saveDoubleArray00);
  11736. tolua_function(tolua_S,"saveRGBAArray",tolua_bind_anl_saveRGBAArray00);
  11737. tolua_function(tolua_S,"loadDoubleArray",tolua_bind_anl_loadDoubleArray00);
  11738. tolua_function(tolua_S,"loadRGBAArray",tolua_bind_anl_loadRGBAArray00);
  11739. tolua_function(tolua_S,"map2DThread",tolua_bind_anl_map2DThread00);
  11740. tolua_function(tolua_S,"map2DNoThread",tolua_bind_anl_map2DNoThread00);
  11741. tolua_endmodule(tolua_S);
  11742. return 1;
  11743. }
  11744.  
  11745.  
  11746. #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
  11747. TOLUA_API int luaopen_bind_anl (lua_State* tolua_S) {
  11748. return tolua_bind_anl_open(tolua_S);
  11749. };
  11750. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement