Guest User

Untitled

a guest
Feb 29th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 111.02 KB | None | 0 0
  1. /*
  2. ** Lua binding: BindTerrainEdit
  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_BindTerrainEdit_open (lua_State* tolua_S);
  14.  
  15. #include "TerrainEdit.h"
  16. using namespace Urho3D;
  17. using namespace anl;
  18.  
  19. /* function to release collected object via destructor */
  20. #ifdef __cplusplus
  21.  
  22. static int tolua_collect_RasterVertexList (lua_State* tolua_S)
  23. {
  24. RasterVertexList* self = (RasterVertexList*) tolua_tousertype(tolua_S,1,0);
  25. Mtolua_delete(self);
  26. return 0;
  27. }
  28.  
  29. static int tolua_collect_RasterVertex (lua_State* tolua_S)
  30. {
  31. RasterVertex* self = (RasterVertex*) tolua_tousertype(tolua_S,1,0);
  32. Mtolua_delete(self);
  33. return 0;
  34. }
  35.  
  36. static int tolua_collect_Vector2 (lua_State* tolua_S)
  37. {
  38. Vector2* self = (Vector2*) tolua_tousertype(tolua_S,1,0);
  39. Mtolua_delete(self);
  40. return 0;
  41. }
  42.  
  43. static int tolua_collect_RasterBuffer (lua_State* tolua_S)
  44. {
  45. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  46. Mtolua_delete(self);
  47. return 0;
  48. }
  49.  
  50. static int tolua_collect_Vector3 (lua_State* tolua_S)
  51. {
  52. Vector3* self = (Vector3*) tolua_tousertype(tolua_S,1,0);
  53. Mtolua_delete(self);
  54. return 0;
  55. }
  56. #endif
  57.  
  58.  
  59. /* function to register type */
  60. static void tolua_reg_types (lua_State* tolua_S)
  61. {
  62. tolua_usertype(tolua_S,"RasterVertexList");
  63. tolua_usertype(tolua_S,"RasterVertex");
  64. tolua_usertype(tolua_S,"CustomGeometry");
  65. tolua_usertype(tolua_S,"Color");
  66. tolua_usertype(tolua_S,"Image");
  67. tolua_usertype(tolua_S,"Vector2");
  68. tolua_usertype(tolua_S,"RasterBuffer");
  69. tolua_usertype(tolua_S,"CKernel");
  70. tolua_usertype(tolua_S,"Terrain");
  71. tolua_usertype(tolua_S,"Vector3");
  72. }
  73.  
  74. /* function: WorldToNormalized */
  75. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_WorldToNormalized00
  76. static int tolua_BindTerrainEdit_WorldToNormalized00(lua_State* tolua_S)
  77. {
  78. #ifndef TOLUA_RELEASE
  79. tolua_Error tolua_err;
  80. if (
  81. !tolua_isusertype(tolua_S,1,"Image",0,&tolua_err) ||
  82. !tolua_isusertype(tolua_S,2,"Terrain",0,&tolua_err) ||
  83. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"Vector3",0,&tolua_err)) ||
  84. !tolua_isnoobj(tolua_S,4,&tolua_err)
  85. )
  86. goto tolua_lerror;
  87. else
  88. #endif
  89. {
  90. Image* height = ((Image*) tolua_tousertype(tolua_S,1,0));
  91. Terrain* terrain = ((Terrain*) tolua_tousertype(tolua_S,2,0));
  92. Vector3 world = *((Vector3*) tolua_tousertype(tolua_S,3,0));
  93. {
  94. Vector2 tolua_ret = (Vector2) WorldToNormalized(height,terrain,world);
  95. {
  96. #ifdef __cplusplus
  97. void* tolua_obj = Mtolua_new((Vector2)(tolua_ret));
  98. tolua_pushusertype(tolua_S,tolua_obj,"Vector2");
  99. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  100. #else
  101. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector2));
  102. tolua_pushusertype(tolua_S,tolua_obj,"Vector2");
  103. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  104. #endif
  105. }
  106. }
  107. }
  108. return 1;
  109. #ifndef TOLUA_RELEASE
  110. tolua_lerror:
  111. tolua_error(tolua_S,"#ferror in function 'WorldToNormalized'.",&tolua_err);
  112. return 0;
  113. #endif
  114. }
  115. #endif //#ifndef TOLUA_DISABLE
  116.  
  117. /* function: NormalizedToWorld */
  118. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_NormalizedToWorld00
  119. static int tolua_BindTerrainEdit_NormalizedToWorld00(lua_State* tolua_S)
  120. {
  121. #ifndef TOLUA_RELEASE
  122. tolua_Error tolua_err;
  123. if (
  124. !tolua_isusertype(tolua_S,1,"Image",0,&tolua_err) ||
  125. !tolua_isusertype(tolua_S,2,"Terrain",0,&tolua_err) ||
  126. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"Vector2",0,&tolua_err)) ||
  127. !tolua_isnoobj(tolua_S,4,&tolua_err)
  128. )
  129. goto tolua_lerror;
  130. else
  131. #endif
  132. {
  133. Image* height = ((Image*) tolua_tousertype(tolua_S,1,0));
  134. Terrain* terrain = ((Terrain*) tolua_tousertype(tolua_S,2,0));
  135. Vector2 normalized = *((Vector2*) tolua_tousertype(tolua_S,3,0));
  136. {
  137. Vector3 tolua_ret = (Vector3) NormalizedToWorld(height,terrain,normalized);
  138. {
  139. #ifdef __cplusplus
  140. void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
  141. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  142. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  143. #else
  144. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
  145. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  146. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  147. #endif
  148. }
  149. }
  150. }
  151. return 1;
  152. #ifndef TOLUA_RELEASE
  153. tolua_lerror:
  154. tolua_error(tolua_S,"#ferror in function 'NormalizedToWorld'.",&tolua_err);
  155. return 0;
  156. #endif
  157. }
  158. #endif //#ifndef TOLUA_DISABLE
  159.  
  160. /* function: SetHeightValue */
  161. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_SetHeightValue00
  162. static int tolua_BindTerrainEdit_SetHeightValue00(lua_State* tolua_S)
  163. {
  164. #ifndef TOLUA_RELEASE
  165. tolua_Error tolua_err;
  166. if (
  167. !tolua_isusertype(tolua_S,1,"Image",0,&tolua_err) ||
  168. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  169. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  170. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  171. !tolua_isnoobj(tolua_S,5,&tolua_err)
  172. )
  173. goto tolua_lerror;
  174. else
  175. #endif
  176. {
  177. Image* height = ((Image*) tolua_tousertype(tolua_S,1,0));
  178. int x = ((int) tolua_tonumber(tolua_S,2,0));
  179. int y = ((int) tolua_tonumber(tolua_S,3,0));
  180. float val = ((float) tolua_tonumber(tolua_S,4,0));
  181. {
  182. SetHeightValue(height,x,y,val);
  183. }
  184. }
  185. return 0;
  186. #ifndef TOLUA_RELEASE
  187. tolua_lerror:
  188. tolua_error(tolua_S,"#ferror in function 'SetHeightValue'.",&tolua_err);
  189. return 0;
  190. #endif
  191. }
  192. #endif //#ifndef TOLUA_DISABLE
  193.  
  194. /* function: GetHeightValue */
  195. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_GetHeightValue00
  196. static int tolua_BindTerrainEdit_GetHeightValue00(lua_State* tolua_S)
  197. {
  198. #ifndef TOLUA_RELEASE
  199. tolua_Error tolua_err;
  200. if (
  201. !tolua_isusertype(tolua_S,1,"Image",0,&tolua_err) ||
  202. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  203. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  204. !tolua_isnoobj(tolua_S,4,&tolua_err)
  205. )
  206. goto tolua_lerror;
  207. else
  208. #endif
  209. {
  210. Image* height = ((Image*) tolua_tousertype(tolua_S,1,0));
  211. int x = ((int) tolua_tonumber(tolua_S,2,0));
  212. int y = ((int) tolua_tonumber(tolua_S,3,0));
  213. {
  214. float tolua_ret = (float) GetHeightValue(height,x,y);
  215. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  216. }
  217. }
  218. return 1;
  219. #ifndef TOLUA_RELEASE
  220. tolua_lerror:
  221. tolua_error(tolua_S,"#ferror in function 'GetHeightValue'.",&tolua_err);
  222. return 0;
  223. #endif
  224. }
  225. #endif //#ifndef TOLUA_DISABLE
  226.  
  227. /* function: ApplyHeightBrush */
  228. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_ApplyHeightBrush00
  229. static int tolua_BindTerrainEdit_ApplyHeightBrush00(lua_State* tolua_S)
  230. {
  231. #ifndef TOLUA_RELEASE
  232. tolua_Error tolua_err;
  233. if (
  234. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  235. !tolua_isusertype(tolua_S,2,"Image",0,&tolua_err) ||
  236. !tolua_isusertype(tolua_S,3,"Image",0,&tolua_err) ||
  237. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  238. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  239. !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
  240. !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
  241. !tolua_isnumber(tolua_S,8,0,&tolua_err) ||
  242. !tolua_isnumber(tolua_S,9,0,&tolua_err) ||
  243. !tolua_isboolean(tolua_S,10,0,&tolua_err) ||
  244. !tolua_isnumber(tolua_S,11,0,&tolua_err) ||
  245. !tolua_isnoobj(tolua_S,12,&tolua_err)
  246. )
  247. goto tolua_lerror;
  248. else
  249. #endif
  250. {
  251. Terrain* terrain = ((Terrain*) tolua_tousertype(tolua_S,1,0));
  252. Image* height = ((Image*) tolua_tousertype(tolua_S,2,0));
  253. Image* mask = ((Image*) tolua_tousertype(tolua_S,3,0));
  254. float x = ((float) tolua_tonumber(tolua_S,4,0));
  255. float z = ((float) tolua_tonumber(tolua_S,5,0));
  256. float radius = ((float) tolua_tonumber(tolua_S,6,0));
  257. float max = ((float) tolua_tonumber(tolua_S,7,0));
  258. float power = ((float) tolua_tonumber(tolua_S,8,0));
  259. float hardness = ((float) tolua_tonumber(tolua_S,9,0));
  260. bool usemask = ((bool) tolua_toboolean(tolua_S,10,0));
  261. float dt = ((float) tolua_tonumber(tolua_S,11,0));
  262. {
  263. ApplyHeightBrush(terrain,height,mask,x,z,radius,max,power,hardness,usemask,dt);
  264. }
  265. }
  266. return 0;
  267. #ifndef TOLUA_RELEASE
  268. tolua_lerror:
  269. tolua_error(tolua_S,"#ferror in function 'ApplyHeightBrush'.",&tolua_err);
  270. return 0;
  271. #endif
  272. }
  273. #endif //#ifndef TOLUA_DISABLE
  274.  
  275. /* function: ApplyBlendBrush */
  276. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_ApplyBlendBrush00
  277. static int tolua_BindTerrainEdit_ApplyBlendBrush00(lua_State* tolua_S)
  278. {
  279. #ifndef TOLUA_RELEASE
  280. tolua_Error tolua_err;
  281. if (
  282. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  283. !tolua_isusertype(tolua_S,2,"Image",0,&tolua_err) ||
  284. !tolua_isusertype(tolua_S,3,"Image",0,&tolua_err) ||
  285. !tolua_isusertype(tolua_S,4,"Image",0,&tolua_err) ||
  286. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  287. !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
  288. !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
  289. !tolua_isnumber(tolua_S,8,0,&tolua_err) ||
  290. !tolua_isnumber(tolua_S,9,0,&tolua_err) ||
  291. !tolua_isnumber(tolua_S,10,0,&tolua_err) ||
  292. !tolua_isnumber(tolua_S,11,0,&tolua_err) ||
  293. !tolua_isboolean(tolua_S,12,0,&tolua_err) ||
  294. !tolua_isnumber(tolua_S,13,0,&tolua_err) ||
  295. !tolua_isnoobj(tolua_S,14,&tolua_err)
  296. )
  297. goto tolua_lerror;
  298. else
  299. #endif
  300. {
  301. Terrain* terrain = ((Terrain*) tolua_tousertype(tolua_S,1,0));
  302. Image* height = ((Image*) tolua_tousertype(tolua_S,2,0));
  303. Image* blend = ((Image*) tolua_tousertype(tolua_S,3,0));
  304. Image* mask = ((Image*) tolua_tousertype(tolua_S,4,0));
  305. float x = ((float) tolua_tonumber(tolua_S,5,0));
  306. float z = ((float) tolua_tonumber(tolua_S,6,0));
  307. float radius = ((float) tolua_tonumber(tolua_S,7,0));
  308. float mx = ((float) tolua_tonumber(tolua_S,8,0));
  309. float power = ((float) tolua_tonumber(tolua_S,9,0));
  310. float hardness = ((float) tolua_tonumber(tolua_S,10,0));
  311. int layer = ((int) tolua_tonumber(tolua_S,11,0));
  312. bool usemask = ((bool) tolua_toboolean(tolua_S,12,0));
  313. float dt = ((float) tolua_tonumber(tolua_S,13,0));
  314. {
  315. ApplyBlendBrush(terrain,height,blend,mask,x,z,radius,mx,power,hardness,layer,usemask,dt);
  316. }
  317. }
  318. return 0;
  319. #ifndef TOLUA_RELEASE
  320. tolua_lerror:
  321. tolua_error(tolua_S,"#ferror in function 'ApplyBlendBrush'.",&tolua_err);
  322. return 0;
  323. #endif
  324. }
  325. #endif //#ifndef TOLUA_DISABLE
  326.  
  327. /* function: ApplyBlendBrush8 */
  328. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_ApplyBlendBrush800
  329. static int tolua_BindTerrainEdit_ApplyBlendBrush800(lua_State* tolua_S)
  330. {
  331. #ifndef TOLUA_RELEASE
  332. tolua_Error tolua_err;
  333. if (
  334. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  335. !tolua_isusertype(tolua_S,2,"Image",0,&tolua_err) ||
  336. !tolua_isusertype(tolua_S,3,"Image",0,&tolua_err) ||
  337. !tolua_isusertype(tolua_S,4,"Image",0,&tolua_err) ||
  338. !tolua_isusertype(tolua_S,5,"Image",0,&tolua_err) ||
  339. !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
  340. !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
  341. !tolua_isnumber(tolua_S,8,0,&tolua_err) ||
  342. !tolua_isnumber(tolua_S,9,0,&tolua_err) ||
  343. !tolua_isnumber(tolua_S,10,0,&tolua_err) ||
  344. !tolua_isnumber(tolua_S,11,0,&tolua_err) ||
  345. !tolua_isnumber(tolua_S,12,0,&tolua_err) ||
  346. !tolua_isboolean(tolua_S,13,0,&tolua_err) ||
  347. !tolua_isnumber(tolua_S,14,0,&tolua_err) ||
  348. !tolua_isnoobj(tolua_S,15,&tolua_err)
  349. )
  350. goto tolua_lerror;
  351. else
  352. #endif
  353. {
  354. Terrain* terrain = ((Terrain*) tolua_tousertype(tolua_S,1,0));
  355. Image* height = ((Image*) tolua_tousertype(tolua_S,2,0));
  356. Image* blend0 = ((Image*) tolua_tousertype(tolua_S,3,0));
  357. Image* blend1 = ((Image*) tolua_tousertype(tolua_S,4,0));
  358. Image* mask = ((Image*) tolua_tousertype(tolua_S,5,0));
  359. float x = ((float) tolua_tonumber(tolua_S,6,0));
  360. float z = ((float) tolua_tonumber(tolua_S,7,0));
  361. float radius = ((float) tolua_tonumber(tolua_S,8,0));
  362. float mx = ((float) tolua_tonumber(tolua_S,9,0));
  363. float power = ((float) tolua_tonumber(tolua_S,10,0));
  364. float hardness = ((float) tolua_tonumber(tolua_S,11,0));
  365. int layer = ((int) tolua_tonumber(tolua_S,12,0));
  366. bool usemask = ((bool) tolua_toboolean(tolua_S,13,0));
  367. float dt = ((float) tolua_tonumber(tolua_S,14,0));
  368. {
  369. ApplyBlendBrush8(terrain,height,blend0,blend1,mask,x,z,radius,mx,power,hardness,layer,usemask,dt);
  370. }
  371. }
  372. return 0;
  373. #ifndef TOLUA_RELEASE
  374. tolua_lerror:
  375. tolua_error(tolua_S,"#ferror in function 'ApplyBlendBrush8'.",&tolua_err);
  376. return 0;
  377. #endif
  378. }
  379. #endif //#ifndef TOLUA_DISABLE
  380.  
  381. /* function: ApplyMaskBrush */
  382. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_ApplyMaskBrush00
  383. static int tolua_BindTerrainEdit_ApplyMaskBrush00(lua_State* tolua_S)
  384. {
  385. #ifndef TOLUA_RELEASE
  386. tolua_Error tolua_err;
  387. if (
  388. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  389. !tolua_isusertype(tolua_S,2,"Image",0,&tolua_err) ||
  390. !tolua_isusertype(tolua_S,3,"Image",0,&tolua_err) ||
  391. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  392. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  393. !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
  394. !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
  395. !tolua_isnumber(tolua_S,8,0,&tolua_err) ||
  396. !tolua_isnumber(tolua_S,9,0,&tolua_err) ||
  397. !tolua_isnumber(tolua_S,10,0,&tolua_err) ||
  398. !tolua_isnoobj(tolua_S,11,&tolua_err)
  399. )
  400. goto tolua_lerror;
  401. else
  402. #endif
  403. {
  404. Terrain* terrain = ((Terrain*) tolua_tousertype(tolua_S,1,0));
  405. Image* height = ((Image*) tolua_tousertype(tolua_S,2,0));
  406. Image* mask = ((Image*) tolua_tousertype(tolua_S,3,0));
  407. float x = ((float) tolua_tonumber(tolua_S,4,0));
  408. float z = ((float) tolua_tonumber(tolua_S,5,0));
  409. float radius = ((float) tolua_tonumber(tolua_S,6,0));
  410. float mx = ((float) tolua_tonumber(tolua_S,7,0));
  411. float power = ((float) tolua_tonumber(tolua_S,8,0));
  412. float hardness = ((float) tolua_tonumber(tolua_S,9,0));
  413. float dt = ((float) tolua_tonumber(tolua_S,10,0));
  414. {
  415. ApplyMaskBrush(terrain,height,mask,x,z,radius,mx,power,hardness,dt);
  416. }
  417. }
  418. return 0;
  419. #ifndef TOLUA_RELEASE
  420. tolua_lerror:
  421. tolua_error(tolua_S,"#ferror in function 'ApplyMaskBrush'.",&tolua_err);
  422. return 0;
  423. #endif
  424. }
  425. #endif //#ifndef TOLUA_DISABLE
  426.  
  427. /* function: ApplySmoothBrush */
  428. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_ApplySmoothBrush00
  429. static int tolua_BindTerrainEdit_ApplySmoothBrush00(lua_State* tolua_S)
  430. {
  431. #ifndef TOLUA_RELEASE
  432. tolua_Error tolua_err;
  433. if (
  434. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  435. !tolua_isusertype(tolua_S,2,"Image",0,&tolua_err) ||
  436. !tolua_isusertype(tolua_S,3,"Image",0,&tolua_err) ||
  437. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  438. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  439. !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
  440. !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
  441. !tolua_isnumber(tolua_S,8,0,&tolua_err) ||
  442. !tolua_isnumber(tolua_S,9,0,&tolua_err) ||
  443. !tolua_isboolean(tolua_S,10,0,&tolua_err) ||
  444. !tolua_isnumber(tolua_S,11,0,&tolua_err) ||
  445. !tolua_isnoobj(tolua_S,12,&tolua_err)
  446. )
  447. goto tolua_lerror;
  448. else
  449. #endif
  450. {
  451. Terrain* terrain = ((Terrain*) tolua_tousertype(tolua_S,1,0));
  452. Image* height = ((Image*) tolua_tousertype(tolua_S,2,0));
  453. Image* mask = ((Image*) tolua_tousertype(tolua_S,3,0));
  454. float x = ((float) tolua_tonumber(tolua_S,4,0));
  455. float z = ((float) tolua_tonumber(tolua_S,5,0));
  456. float radius = ((float) tolua_tonumber(tolua_S,6,0));
  457. float max = ((float) tolua_tonumber(tolua_S,7,0));
  458. float power = ((float) tolua_tonumber(tolua_S,8,0));
  459. float hardness = ((float) tolua_tonumber(tolua_S,9,0));
  460. bool usemask = ((bool) tolua_toboolean(tolua_S,10,0));
  461. float dt = ((float) tolua_tonumber(tolua_S,11,0));
  462. {
  463. ApplySmoothBrush(terrain,height,mask,x,z,radius,max,power,hardness,usemask,dt);
  464. }
  465. }
  466. return 0;
  467. #ifndef TOLUA_RELEASE
  468. tolua_lerror:
  469. tolua_error(tolua_S,"#ferror in function 'ApplySmoothBrush'.",&tolua_err);
  470. return 0;
  471. #endif
  472. }
  473. #endif //#ifndef TOLUA_DISABLE
  474.  
  475. /* function: ApplySpeckleBrush */
  476. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_ApplySpeckleBrush00
  477. static int tolua_BindTerrainEdit_ApplySpeckleBrush00(lua_State* tolua_S)
  478. {
  479. #ifndef TOLUA_RELEASE
  480. tolua_Error tolua_err;
  481. if (
  482. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  483. !tolua_isusertype(tolua_S,2,"Image",0,&tolua_err) ||
  484. !tolua_isusertype(tolua_S,3,"Image",0,&tolua_err) ||
  485. !tolua_isusertype(tolua_S,4,"Image",0,&tolua_err) ||
  486. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  487. !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
  488. !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
  489. !tolua_isnumber(tolua_S,8,0,&tolua_err) ||
  490. !tolua_isnumber(tolua_S,9,0,&tolua_err) ||
  491. !tolua_isnumber(tolua_S,10,0,&tolua_err) ||
  492. (tolua_isvaluenil(tolua_S,11,&tolua_err) || !tolua_isusertype(tolua_S,11,"Color",0,&tolua_err)) ||
  493. (tolua_isvaluenil(tolua_S,12,&tolua_err) || !tolua_isusertype(tolua_S,12,"Color",0,&tolua_err)) ||
  494. !tolua_isboolean(tolua_S,13,0,&tolua_err) ||
  495. !tolua_isnumber(tolua_S,14,0,&tolua_err) ||
  496. !tolua_isnoobj(tolua_S,15,&tolua_err)
  497. )
  498. goto tolua_lerror;
  499. else
  500. #endif
  501. {
  502. Terrain* terrain = ((Terrain*) tolua_tousertype(tolua_S,1,0));
  503. Image* height = ((Image*) tolua_tousertype(tolua_S,2,0));
  504. Image* color = ((Image*) tolua_tousertype(tolua_S,3,0));
  505. Image* mask = ((Image*) tolua_tousertype(tolua_S,4,0));
  506. float x = ((float) tolua_tonumber(tolua_S,5,0));
  507. float z = ((float) tolua_tonumber(tolua_S,6,0));
  508. float radius = ((float) tolua_tonumber(tolua_S,7,0));
  509. float mx = ((float) tolua_tonumber(tolua_S,8,0));
  510. float power = ((float) tolua_tonumber(tolua_S,9,0));
  511. float hardness = ((float) tolua_tonumber(tolua_S,10,0));
  512. Color c1 = *((Color*) tolua_tousertype(tolua_S,11,0));
  513. Color c2 = *((Color*) tolua_tousertype(tolua_S,12,0));
  514. bool usemask = ((bool) tolua_toboolean(tolua_S,13,0));
  515. float dt = ((float) tolua_tonumber(tolua_S,14,0));
  516. {
  517. ApplySpeckleBrush(terrain,height,color,mask,x,z,radius,mx,power,hardness,c1,c2,usemask,dt);
  518. }
  519. }
  520. return 0;
  521. #ifndef TOLUA_RELEASE
  522. tolua_lerror:
  523. tolua_error(tolua_S,"#ferror in function 'ApplySpeckleBrush'.",&tolua_err);
  524. return 0;
  525. #endif
  526. }
  527. #endif //#ifndef TOLUA_DISABLE
  528.  
  529. /* function: SetBrushCursorHeight */
  530. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_SetBrushCursorHeight00
  531. static int tolua_BindTerrainEdit_SetBrushCursorHeight00(lua_State* tolua_S)
  532. {
  533. #ifndef TOLUA_RELEASE
  534. tolua_Error tolua_err;
  535. if (
  536. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  537. !tolua_isusertype(tolua_S,2,"CustomGeometry",0,&tolua_err) ||
  538. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  539. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  540. !tolua_isnoobj(tolua_S,5,&tolua_err)
  541. )
  542. goto tolua_lerror;
  543. else
  544. #endif
  545. {
  546. Terrain* terrain = ((Terrain*) tolua_tousertype(tolua_S,1,0));
  547. CustomGeometry* brush = ((CustomGeometry*) tolua_tousertype(tolua_S,2,0));
  548. float groundx = ((float) tolua_tonumber(tolua_S,3,0));
  549. float groundz = ((float) tolua_tonumber(tolua_S,4,0));
  550. {
  551. SetBrushCursorHeight(terrain,brush,groundx,groundz);
  552. }
  553. }
  554. return 0;
  555. #ifndef TOLUA_RELEASE
  556. tolua_lerror:
  557. tolua_error(tolua_S,"#ferror in function 'SetBrushCursorHeight'.",&tolua_err);
  558. return 0;
  559. #endif
  560. }
  561. #endif //#ifndef TOLUA_DISABLE
  562.  
  563. /* function: InvertMask */
  564. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_InvertMask00
  565. static int tolua_BindTerrainEdit_InvertMask00(lua_State* tolua_S)
  566. {
  567. #ifndef TOLUA_RELEASE
  568. tolua_Error tolua_err;
  569. if (
  570. !tolua_isusertype(tolua_S,1,"Image",0,&tolua_err) ||
  571. !tolua_isnoobj(tolua_S,2,&tolua_err)
  572. )
  573. goto tolua_lerror;
  574. else
  575. #endif
  576. {
  577. Image* mask = ((Image*) tolua_tousertype(tolua_S,1,0));
  578. {
  579. InvertMask(mask);
  580. }
  581. }
  582. return 0;
  583. #ifndef TOLUA_RELEASE
  584. tolua_lerror:
  585. tolua_error(tolua_S,"#ferror in function 'InvertMask'.",&tolua_err);
  586. return 0;
  587. #endif
  588. }
  589. #endif //#ifndef TOLUA_DISABLE
  590.  
  591. /* function: RenderANLKernelToHeight */
  592. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RenderANLKernelToHeight00
  593. static int tolua_BindTerrainEdit_RenderANLKernelToHeight00(lua_State* tolua_S)
  594. {
  595. #ifndef TOLUA_RELEASE
  596. tolua_Error tolua_err;
  597. if (
  598. !tolua_isusertype(tolua_S,1,"Image",0,&tolua_err) ||
  599. !tolua_isusertype(tolua_S,2,"Image",0,&tolua_err) ||
  600. !tolua_isusertype(tolua_S,3,"CKernel",0,&tolua_err) ||
  601. !tolua_isnumber(tolua_S,4,1,&tolua_err) ||
  602. !tolua_isnumber(tolua_S,5,1,&tolua_err) ||
  603. !tolua_isboolean(tolua_S,6,1,&tolua_err) ||
  604. !tolua_isboolean(tolua_S,7,1,&tolua_err) ||
  605. !tolua_isnoobj(tolua_S,8,&tolua_err)
  606. )
  607. goto tolua_lerror;
  608. else
  609. #endif
  610. {
  611. Image* height = ((Image*) tolua_tousertype(tolua_S,1,0));
  612. Image* mask = ((Image*) tolua_tousertype(tolua_S,2,0));
  613. CKernel* kernel = ((CKernel*) tolua_tousertype(tolua_S,3,0));
  614. double lowRange = ((double) tolua_tonumber(tolua_S,4,0));
  615. double highRange = ((double) tolua_tonumber(tolua_S,5,1));
  616. bool useMask = ((bool) tolua_toboolean(tolua_S,6,false));
  617. bool invertMask = ((bool) tolua_toboolean(tolua_S,7,false));
  618. {
  619. RenderANLKernelToHeight(height,mask,kernel,lowRange,highRange,useMask,invertMask);
  620. }
  621. }
  622. return 0;
  623. #ifndef TOLUA_RELEASE
  624. tolua_lerror:
  625. tolua_error(tolua_S,"#ferror in function 'RenderANLKernelToHeight'.",&tolua_err);
  626. return 0;
  627. #endif
  628. }
  629. #endif //#ifndef TOLUA_DISABLE
  630.  
  631. /* get function: x_ of class RasterVertex */
  632. #ifndef TOLUA_DISABLE_tolua_get_RasterVertex_x_
  633. static int tolua_get_RasterVertex_x_(lua_State* tolua_S)
  634. {
  635. RasterVertex* self = (RasterVertex*) tolua_tousertype(tolua_S,1,0);
  636. #ifndef TOLUA_RELEASE
  637. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x_'",NULL);
  638. #endif
  639. tolua_pushnumber(tolua_S,(lua_Number)self->x_);
  640. return 1;
  641. }
  642. #endif //#ifndef TOLUA_DISABLE
  643.  
  644. /* set function: x_ of class RasterVertex */
  645. #ifndef TOLUA_DISABLE_tolua_set_RasterVertex_x_
  646. static int tolua_set_RasterVertex_x_(lua_State* tolua_S)
  647. {
  648. RasterVertex* self = (RasterVertex*) tolua_tousertype(tolua_S,1,0);
  649. #ifndef TOLUA_RELEASE
  650. tolua_Error tolua_err;
  651. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x_'",NULL);
  652. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  653. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  654. #endif
  655. self->x_ = ((float) tolua_tonumber(tolua_S,2,0))
  656. ;
  657. return 0;
  658. }
  659. #endif //#ifndef TOLUA_DISABLE
  660.  
  661. /* get function: y_ of class RasterVertex */
  662. #ifndef TOLUA_DISABLE_tolua_get_RasterVertex_y_
  663. static int tolua_get_RasterVertex_y_(lua_State* tolua_S)
  664. {
  665. RasterVertex* self = (RasterVertex*) tolua_tousertype(tolua_S,1,0);
  666. #ifndef TOLUA_RELEASE
  667. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y_'",NULL);
  668. #endif
  669. tolua_pushnumber(tolua_S,(lua_Number)self->y_);
  670. return 1;
  671. }
  672. #endif //#ifndef TOLUA_DISABLE
  673.  
  674. /* set function: y_ of class RasterVertex */
  675. #ifndef TOLUA_DISABLE_tolua_set_RasterVertex_y_
  676. static int tolua_set_RasterVertex_y_(lua_State* tolua_S)
  677. {
  678. RasterVertex* self = (RasterVertex*) tolua_tousertype(tolua_S,1,0);
  679. #ifndef TOLUA_RELEASE
  680. tolua_Error tolua_err;
  681. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y_'",NULL);
  682. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  683. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  684. #endif
  685. self->y_ = ((float) tolua_tonumber(tolua_S,2,0))
  686. ;
  687. return 0;
  688. }
  689. #endif //#ifndef TOLUA_DISABLE
  690.  
  691. /* get function: val_ of class RasterVertex */
  692. #ifndef TOLUA_DISABLE_tolua_get_RasterVertex_val_
  693. static int tolua_get_RasterVertex_val_(lua_State* tolua_S)
  694. {
  695. RasterVertex* self = (RasterVertex*) tolua_tousertype(tolua_S,1,0);
  696. #ifndef TOLUA_RELEASE
  697. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'val_'",NULL);
  698. #endif
  699. tolua_pushnumber(tolua_S,(lua_Number)self->val_);
  700. return 1;
  701. }
  702. #endif //#ifndef TOLUA_DISABLE
  703.  
  704. /* set function: val_ of class RasterVertex */
  705. #ifndef TOLUA_DISABLE_tolua_set_RasterVertex_val_
  706. static int tolua_set_RasterVertex_val_(lua_State* tolua_S)
  707. {
  708. RasterVertex* self = (RasterVertex*) tolua_tousertype(tolua_S,1,0);
  709. #ifndef TOLUA_RELEASE
  710. tolua_Error tolua_err;
  711. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'val_'",NULL);
  712. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  713. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  714. #endif
  715. self->val_ = ((float) tolua_tonumber(tolua_S,2,0))
  716. ;
  717. return 0;
  718. }
  719. #endif //#ifndef TOLUA_DISABLE
  720.  
  721. /* method: new of class RasterVertex */
  722. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertex_new00
  723. static int tolua_BindTerrainEdit_RasterVertex_new00(lua_State* tolua_S)
  724. {
  725. #ifndef TOLUA_RELEASE
  726. tolua_Error tolua_err;
  727. if (
  728. !tolua_isusertable(tolua_S,1,"RasterVertex",0,&tolua_err) ||
  729. !tolua_isnoobj(tolua_S,2,&tolua_err)
  730. )
  731. goto tolua_lerror;
  732. else
  733. #endif
  734. {
  735. {
  736. RasterVertex* tolua_ret = (RasterVertex*) Mtolua_new((RasterVertex)());
  737. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RasterVertex");
  738. }
  739. }
  740. return 1;
  741. #ifndef TOLUA_RELEASE
  742. tolua_lerror:
  743. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  744. return 0;
  745. #endif
  746. }
  747. #endif //#ifndef TOLUA_DISABLE
  748.  
  749. /* method: new_local of class RasterVertex */
  750. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertex_new00_local
  751. static int tolua_BindTerrainEdit_RasterVertex_new00_local(lua_State* tolua_S)
  752. {
  753. #ifndef TOLUA_RELEASE
  754. tolua_Error tolua_err;
  755. if (
  756. !tolua_isusertable(tolua_S,1,"RasterVertex",0,&tolua_err) ||
  757. !tolua_isnoobj(tolua_S,2,&tolua_err)
  758. )
  759. goto tolua_lerror;
  760. else
  761. #endif
  762. {
  763. {
  764. RasterVertex* tolua_ret = (RasterVertex*) Mtolua_new((RasterVertex)());
  765. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RasterVertex");
  766. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  767. }
  768. }
  769. return 1;
  770. #ifndef TOLUA_RELEASE
  771. tolua_lerror:
  772. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  773. return 0;
  774. #endif
  775. }
  776. #endif //#ifndef TOLUA_DISABLE
  777.  
  778. /* method: new of class RasterVertex */
  779. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertex_new01
  780. static int tolua_BindTerrainEdit_RasterVertex_new01(lua_State* tolua_S)
  781. {
  782. tolua_Error tolua_err;
  783. if (
  784. !tolua_isusertable(tolua_S,1,"RasterVertex",0,&tolua_err) ||
  785. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  786. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  787. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  788. !tolua_isnoobj(tolua_S,5,&tolua_err)
  789. )
  790. goto tolua_lerror;
  791. else
  792. {
  793. float x = ((float) tolua_tonumber(tolua_S,2,0));
  794. float y = ((float) tolua_tonumber(tolua_S,3,0));
  795. float val = ((float) tolua_tonumber(tolua_S,4,0));
  796. {
  797. RasterVertex* tolua_ret = (RasterVertex*) Mtolua_new((RasterVertex)(x,y,val));
  798. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RasterVertex");
  799. }
  800. }
  801. return 1;
  802. tolua_lerror:
  803. return tolua_BindTerrainEdit_RasterVertex_new00(tolua_S);
  804. }
  805. #endif //#ifndef TOLUA_DISABLE
  806.  
  807. /* method: new_local of class RasterVertex */
  808. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertex_new01_local
  809. static int tolua_BindTerrainEdit_RasterVertex_new01_local(lua_State* tolua_S)
  810. {
  811. tolua_Error tolua_err;
  812. if (
  813. !tolua_isusertable(tolua_S,1,"RasterVertex",0,&tolua_err) ||
  814. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  815. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  816. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  817. !tolua_isnoobj(tolua_S,5,&tolua_err)
  818. )
  819. goto tolua_lerror;
  820. else
  821. {
  822. float x = ((float) tolua_tonumber(tolua_S,2,0));
  823. float y = ((float) tolua_tonumber(tolua_S,3,0));
  824. float val = ((float) tolua_tonumber(tolua_S,4,0));
  825. {
  826. RasterVertex* tolua_ret = (RasterVertex*) Mtolua_new((RasterVertex)(x,y,val));
  827. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RasterVertex");
  828. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  829. }
  830. }
  831. return 1;
  832. tolua_lerror:
  833. return tolua_BindTerrainEdit_RasterVertex_new00_local(tolua_S);
  834. }
  835. #endif //#ifndef TOLUA_DISABLE
  836.  
  837. /* method: new of class RasterVertex */
  838. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertex_new02
  839. static int tolua_BindTerrainEdit_RasterVertex_new02(lua_State* tolua_S)
  840. {
  841. tolua_Error tolua_err;
  842. if (
  843. !tolua_isusertable(tolua_S,1,"RasterVertex",0,&tolua_err) ||
  844. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const RasterVertex",0,&tolua_err)) ||
  845. !tolua_isnoobj(tolua_S,3,&tolua_err)
  846. )
  847. goto tolua_lerror;
  848. else
  849. {
  850. const RasterVertex* rhs = ((const RasterVertex*) tolua_tousertype(tolua_S,2,0));
  851. {
  852. RasterVertex* tolua_ret = (RasterVertex*) Mtolua_new((RasterVertex)(*rhs));
  853. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RasterVertex");
  854. }
  855. }
  856. return 1;
  857. tolua_lerror:
  858. return tolua_BindTerrainEdit_RasterVertex_new01(tolua_S);
  859. }
  860. #endif //#ifndef TOLUA_DISABLE
  861.  
  862. /* method: new_local of class RasterVertex */
  863. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertex_new02_local
  864. static int tolua_BindTerrainEdit_RasterVertex_new02_local(lua_State* tolua_S)
  865. {
  866. tolua_Error tolua_err;
  867. if (
  868. !tolua_isusertable(tolua_S,1,"RasterVertex",0,&tolua_err) ||
  869. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const RasterVertex",0,&tolua_err)) ||
  870. !tolua_isnoobj(tolua_S,3,&tolua_err)
  871. )
  872. goto tolua_lerror;
  873. else
  874. {
  875. const RasterVertex* rhs = ((const RasterVertex*) tolua_tousertype(tolua_S,2,0));
  876. {
  877. RasterVertex* tolua_ret = (RasterVertex*) Mtolua_new((RasterVertex)(*rhs));
  878. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RasterVertex");
  879. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  880. }
  881. }
  882. return 1;
  883. tolua_lerror:
  884. return tolua_BindTerrainEdit_RasterVertex_new01_local(tolua_S);
  885. }
  886. #endif //#ifndef TOLUA_DISABLE
  887.  
  888. /* method: delete of class RasterVertex */
  889. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertex_delete00
  890. static int tolua_BindTerrainEdit_RasterVertex_delete00(lua_State* tolua_S)
  891. {
  892. #ifndef TOLUA_RELEASE
  893. tolua_Error tolua_err;
  894. if (
  895. !tolua_isusertype(tolua_S,1,"RasterVertex",0,&tolua_err) ||
  896. !tolua_isnoobj(tolua_S,2,&tolua_err)
  897. )
  898. goto tolua_lerror;
  899. else
  900. #endif
  901. {
  902. RasterVertex* self = (RasterVertex*) tolua_tousertype(tolua_S,1,0);
  903. #ifndef TOLUA_RELEASE
  904. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  905. #endif
  906. Mtolua_delete(self);
  907. }
  908. return 0;
  909. #ifndef TOLUA_RELEASE
  910. tolua_lerror:
  911. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  912. return 0;
  913. #endif
  914. }
  915. #endif //#ifndef TOLUA_DISABLE
  916.  
  917. /* method: new of class RasterVertexList */
  918. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertexList_new00
  919. static int tolua_BindTerrainEdit_RasterVertexList_new00(lua_State* tolua_S)
  920. {
  921. #ifndef TOLUA_RELEASE
  922. tolua_Error tolua_err;
  923. if (
  924. !tolua_isusertable(tolua_S,1,"RasterVertexList",0,&tolua_err) ||
  925. !tolua_isnoobj(tolua_S,2,&tolua_err)
  926. )
  927. goto tolua_lerror;
  928. else
  929. #endif
  930. {
  931. {
  932. RasterVertexList* tolua_ret = (RasterVertexList*) Mtolua_new((RasterVertexList)());
  933. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RasterVertexList");
  934. }
  935. }
  936. return 1;
  937. #ifndef TOLUA_RELEASE
  938. tolua_lerror:
  939. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  940. return 0;
  941. #endif
  942. }
  943. #endif //#ifndef TOLUA_DISABLE
  944.  
  945. /* method: new_local of class RasterVertexList */
  946. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertexList_new00_local
  947. static int tolua_BindTerrainEdit_RasterVertexList_new00_local(lua_State* tolua_S)
  948. {
  949. #ifndef TOLUA_RELEASE
  950. tolua_Error tolua_err;
  951. if (
  952. !tolua_isusertable(tolua_S,1,"RasterVertexList",0,&tolua_err) ||
  953. !tolua_isnoobj(tolua_S,2,&tolua_err)
  954. )
  955. goto tolua_lerror;
  956. else
  957. #endif
  958. {
  959. {
  960. RasterVertexList* tolua_ret = (RasterVertexList*) Mtolua_new((RasterVertexList)());
  961. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RasterVertexList");
  962. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  963. }
  964. }
  965. return 1;
  966. #ifndef TOLUA_RELEASE
  967. tolua_lerror:
  968. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  969. return 0;
  970. #endif
  971. }
  972. #endif //#ifndef TOLUA_DISABLE
  973.  
  974. /* method: new of class RasterVertexList */
  975. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertexList_new01
  976. static int tolua_BindTerrainEdit_RasterVertexList_new01(lua_State* tolua_S)
  977. {
  978. tolua_Error tolua_err;
  979. if (
  980. !tolua_isusertable(tolua_S,1,"RasterVertexList",0,&tolua_err) ||
  981. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  982. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"RasterVertex",0,&tolua_err)) ||
  983. !tolua_isnoobj(tolua_S,4,&tolua_err)
  984. )
  985. goto tolua_lerror;
  986. else
  987. {
  988. int size = ((int) tolua_tonumber(tolua_S,2,0));
  989. RasterVertex value = *((RasterVertex*) tolua_tousertype(tolua_S,3,0));
  990. {
  991. RasterVertexList* tolua_ret = (RasterVertexList*) Mtolua_new((RasterVertexList)(size,value));
  992. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RasterVertexList");
  993. }
  994. }
  995. return 1;
  996. tolua_lerror:
  997. return tolua_BindTerrainEdit_RasterVertexList_new00(tolua_S);
  998. }
  999. #endif //#ifndef TOLUA_DISABLE
  1000.  
  1001. /* method: new_local of class RasterVertexList */
  1002. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertexList_new01_local
  1003. static int tolua_BindTerrainEdit_RasterVertexList_new01_local(lua_State* tolua_S)
  1004. {
  1005. tolua_Error tolua_err;
  1006. if (
  1007. !tolua_isusertable(tolua_S,1,"RasterVertexList",0,&tolua_err) ||
  1008. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1009. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"RasterVertex",0,&tolua_err)) ||
  1010. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1011. )
  1012. goto tolua_lerror;
  1013. else
  1014. {
  1015. int size = ((int) tolua_tonumber(tolua_S,2,0));
  1016. RasterVertex value = *((RasterVertex*) tolua_tousertype(tolua_S,3,0));
  1017. {
  1018. RasterVertexList* tolua_ret = (RasterVertexList*) Mtolua_new((RasterVertexList)(size,value));
  1019. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RasterVertexList");
  1020. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1021. }
  1022. }
  1023. return 1;
  1024. tolua_lerror:
  1025. return tolua_BindTerrainEdit_RasterVertexList_new00_local(tolua_S);
  1026. }
  1027. #endif //#ifndef TOLUA_DISABLE
  1028.  
  1029. /* method: new of class RasterVertexList */
  1030. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertexList_new02
  1031. static int tolua_BindTerrainEdit_RasterVertexList_new02(lua_State* tolua_S)
  1032. {
  1033. tolua_Error tolua_err;
  1034. if (
  1035. !tolua_isusertable(tolua_S,1,"RasterVertexList",0,&tolua_err) ||
  1036. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1037. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1038. )
  1039. goto tolua_lerror;
  1040. else
  1041. {
  1042. int size = ((int) tolua_tonumber(tolua_S,2,0));
  1043. {
  1044. RasterVertexList* tolua_ret = (RasterVertexList*) Mtolua_new((RasterVertexList)(size));
  1045. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RasterVertexList");
  1046. }
  1047. }
  1048. return 1;
  1049. tolua_lerror:
  1050. return tolua_BindTerrainEdit_RasterVertexList_new01(tolua_S);
  1051. }
  1052. #endif //#ifndef TOLUA_DISABLE
  1053.  
  1054. /* method: new_local of class RasterVertexList */
  1055. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertexList_new02_local
  1056. static int tolua_BindTerrainEdit_RasterVertexList_new02_local(lua_State* tolua_S)
  1057. {
  1058. tolua_Error tolua_err;
  1059. if (
  1060. !tolua_isusertable(tolua_S,1,"RasterVertexList",0,&tolua_err) ||
  1061. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1062. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1063. )
  1064. goto tolua_lerror;
  1065. else
  1066. {
  1067. int size = ((int) tolua_tonumber(tolua_S,2,0));
  1068. {
  1069. RasterVertexList* tolua_ret = (RasterVertexList*) Mtolua_new((RasterVertexList)(size));
  1070. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RasterVertexList");
  1071. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1072. }
  1073. }
  1074. return 1;
  1075. tolua_lerror:
  1076. return tolua_BindTerrainEdit_RasterVertexList_new01_local(tolua_S);
  1077. }
  1078. #endif //#ifndef TOLUA_DISABLE
  1079.  
  1080. /* method: new of class RasterVertexList */
  1081. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertexList_new03
  1082. static int tolua_BindTerrainEdit_RasterVertexList_new03(lua_State* tolua_S)
  1083. {
  1084. tolua_Error tolua_err;
  1085. if (
  1086. !tolua_isusertable(tolua_S,1,"RasterVertexList",0,&tolua_err) ||
  1087. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const RasterVertexList",0,&tolua_err)) ||
  1088. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1089. )
  1090. goto tolua_lerror;
  1091. else
  1092. {
  1093. const RasterVertexList* a = ((const RasterVertexList*) tolua_tousertype(tolua_S,2,0));
  1094. {
  1095. RasterVertexList* tolua_ret = (RasterVertexList*) Mtolua_new((RasterVertexList)(*a));
  1096. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RasterVertexList");
  1097. }
  1098. }
  1099. return 1;
  1100. tolua_lerror:
  1101. return tolua_BindTerrainEdit_RasterVertexList_new02(tolua_S);
  1102. }
  1103. #endif //#ifndef TOLUA_DISABLE
  1104.  
  1105. /* method: new_local of class RasterVertexList */
  1106. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertexList_new03_local
  1107. static int tolua_BindTerrainEdit_RasterVertexList_new03_local(lua_State* tolua_S)
  1108. {
  1109. tolua_Error tolua_err;
  1110. if (
  1111. !tolua_isusertable(tolua_S,1,"RasterVertexList",0,&tolua_err) ||
  1112. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const RasterVertexList",0,&tolua_err)) ||
  1113. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1114. )
  1115. goto tolua_lerror;
  1116. else
  1117. {
  1118. const RasterVertexList* a = ((const RasterVertexList*) tolua_tousertype(tolua_S,2,0));
  1119. {
  1120. RasterVertexList* tolua_ret = (RasterVertexList*) Mtolua_new((RasterVertexList)(*a));
  1121. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RasterVertexList");
  1122. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1123. }
  1124. }
  1125. return 1;
  1126. tolua_lerror:
  1127. return tolua_BindTerrainEdit_RasterVertexList_new02_local(tolua_S);
  1128. }
  1129. #endif //#ifndef TOLUA_DISABLE
  1130.  
  1131. /* method: delete of class RasterVertexList */
  1132. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertexList_delete00
  1133. static int tolua_BindTerrainEdit_RasterVertexList_delete00(lua_State* tolua_S)
  1134. {
  1135. #ifndef TOLUA_RELEASE
  1136. tolua_Error tolua_err;
  1137. if (
  1138. !tolua_isusertype(tolua_S,1,"RasterVertexList",0,&tolua_err) ||
  1139. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1140. )
  1141. goto tolua_lerror;
  1142. else
  1143. #endif
  1144. {
  1145. RasterVertexList* self = (RasterVertexList*) tolua_tousertype(tolua_S,1,0);
  1146. #ifndef TOLUA_RELEASE
  1147. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  1148. #endif
  1149. Mtolua_delete(self);
  1150. }
  1151. return 0;
  1152. #ifndef TOLUA_RELEASE
  1153. tolua_lerror:
  1154. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  1155. return 0;
  1156. #endif
  1157. }
  1158. #endif //#ifndef TOLUA_DISABLE
  1159.  
  1160. /* method: size of class RasterVertexList */
  1161. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertexList_size00
  1162. static int tolua_BindTerrainEdit_RasterVertexList_size00(lua_State* tolua_S)
  1163. {
  1164. #ifndef TOLUA_RELEASE
  1165. tolua_Error tolua_err;
  1166. if (
  1167. !tolua_isusertype(tolua_S,1,"RasterVertexList",0,&tolua_err) ||
  1168. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1169. )
  1170. goto tolua_lerror;
  1171. else
  1172. #endif
  1173. {
  1174. RasterVertexList* self = (RasterVertexList*) tolua_tousertype(tolua_S,1,0);
  1175. #ifndef TOLUA_RELEASE
  1176. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'size'", NULL);
  1177. #endif
  1178. {
  1179. int tolua_ret = (int) self->size();
  1180. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1181. }
  1182. }
  1183. return 1;
  1184. #ifndef TOLUA_RELEASE
  1185. tolua_lerror:
  1186. tolua_error(tolua_S,"#ferror in function 'size'.",&tolua_err);
  1187. return 0;
  1188. #endif
  1189. }
  1190. #endif //#ifndef TOLUA_DISABLE
  1191.  
  1192. /* method: capacity of class RasterVertexList */
  1193. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertexList_capacity00
  1194. static int tolua_BindTerrainEdit_RasterVertexList_capacity00(lua_State* tolua_S)
  1195. {
  1196. #ifndef TOLUA_RELEASE
  1197. tolua_Error tolua_err;
  1198. if (
  1199. !tolua_isusertype(tolua_S,1,"RasterVertexList",0,&tolua_err) ||
  1200. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1201. )
  1202. goto tolua_lerror;
  1203. else
  1204. #endif
  1205. {
  1206. RasterVertexList* self = (RasterVertexList*) tolua_tousertype(tolua_S,1,0);
  1207. #ifndef TOLUA_RELEASE
  1208. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'capacity'", NULL);
  1209. #endif
  1210. {
  1211. int tolua_ret = (int) self->capacity();
  1212. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1213. }
  1214. }
  1215. return 1;
  1216. #ifndef TOLUA_RELEASE
  1217. tolua_lerror:
  1218. tolua_error(tolua_S,"#ferror in function 'capacity'.",&tolua_err);
  1219. return 0;
  1220. #endif
  1221. }
  1222. #endif //#ifndef TOLUA_DISABLE
  1223.  
  1224. /* method: bytes of class RasterVertexList */
  1225. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertexList_bytes00
  1226. static int tolua_BindTerrainEdit_RasterVertexList_bytes00(lua_State* tolua_S)
  1227. {
  1228. #ifndef TOLUA_RELEASE
  1229. tolua_Error tolua_err;
  1230. if (
  1231. !tolua_isusertype(tolua_S,1,"RasterVertexList",0,&tolua_err) ||
  1232. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1233. )
  1234. goto tolua_lerror;
  1235. else
  1236. #endif
  1237. {
  1238. RasterVertexList* self = (RasterVertexList*) tolua_tousertype(tolua_S,1,0);
  1239. #ifndef TOLUA_RELEASE
  1240. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'bytes'", NULL);
  1241. #endif
  1242. {
  1243. int tolua_ret = (int) self->bytes();
  1244. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1245. }
  1246. }
  1247. return 1;
  1248. #ifndef TOLUA_RELEASE
  1249. tolua_lerror:
  1250. tolua_error(tolua_S,"#ferror in function 'bytes'.",&tolua_err);
  1251. return 0;
  1252. #endif
  1253. }
  1254. #endif //#ifndef TOLUA_DISABLE
  1255.  
  1256. /* method: fill of class RasterVertexList */
  1257. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertexList_fill00
  1258. static int tolua_BindTerrainEdit_RasterVertexList_fill00(lua_State* tolua_S)
  1259. {
  1260. #ifndef TOLUA_RELEASE
  1261. tolua_Error tolua_err;
  1262. if (
  1263. !tolua_isusertype(tolua_S,1,"RasterVertexList",0,&tolua_err) ||
  1264. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"RasterVertex",0,&tolua_err)) ||
  1265. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1266. )
  1267. goto tolua_lerror;
  1268. else
  1269. #endif
  1270. {
  1271. RasterVertexList* self = (RasterVertexList*) tolua_tousertype(tolua_S,1,0);
  1272. RasterVertex val = *((RasterVertex*) tolua_tousertype(tolua_S,2,0));
  1273. #ifndef TOLUA_RELEASE
  1274. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'fill'", NULL);
  1275. #endif
  1276. {
  1277. self->fill(val);
  1278. }
  1279. }
  1280. return 0;
  1281. #ifndef TOLUA_RELEASE
  1282. tolua_lerror:
  1283. tolua_error(tolua_S,"#ferror in function 'fill'.",&tolua_err);
  1284. return 0;
  1285. #endif
  1286. }
  1287. #endif //#ifndef TOLUA_DISABLE
  1288.  
  1289. /* method: swap of class RasterVertexList */
  1290. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertexList_swap00
  1291. static int tolua_BindTerrainEdit_RasterVertexList_swap00(lua_State* tolua_S)
  1292. {
  1293. #ifndef TOLUA_RELEASE
  1294. tolua_Error tolua_err;
  1295. if (
  1296. !tolua_isusertype(tolua_S,1,"RasterVertexList",0,&tolua_err) ||
  1297. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"RasterVertexList",0,&tolua_err)) ||
  1298. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1299. )
  1300. goto tolua_lerror;
  1301. else
  1302. #endif
  1303. {
  1304. RasterVertexList* self = (RasterVertexList*) tolua_tousertype(tolua_S,1,0);
  1305. RasterVertexList* a = ((RasterVertexList*) tolua_tousertype(tolua_S,2,0));
  1306. #ifndef TOLUA_RELEASE
  1307. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'swap'", NULL);
  1308. #endif
  1309. {
  1310. self->swap(*a);
  1311. }
  1312. }
  1313. return 0;
  1314. #ifndef TOLUA_RELEASE
  1315. tolua_lerror:
  1316. tolua_error(tolua_S,"#ferror in function 'swap'.",&tolua_err);
  1317. return 0;
  1318. #endif
  1319. }
  1320. #endif //#ifndef TOLUA_DISABLE
  1321.  
  1322. /* method: at of class RasterVertexList */
  1323. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertexList_at00
  1324. static int tolua_BindTerrainEdit_RasterVertexList_at00(lua_State* tolua_S)
  1325. {
  1326. #ifndef TOLUA_RELEASE
  1327. tolua_Error tolua_err;
  1328. if (
  1329. !tolua_isusertype(tolua_S,1,"RasterVertexList",0,&tolua_err) ||
  1330. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1331. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1332. )
  1333. goto tolua_lerror;
  1334. else
  1335. #endif
  1336. {
  1337. RasterVertexList* self = (RasterVertexList*) tolua_tousertype(tolua_S,1,0);
  1338. int i = ((int) tolua_tonumber(tolua_S,2,0));
  1339. #ifndef TOLUA_RELEASE
  1340. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'at'", NULL);
  1341. #endif
  1342. {
  1343. RasterVertex& tolua_ret = (RasterVertex&) self->at(i);
  1344. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"RasterVertex");
  1345. }
  1346. }
  1347. return 1;
  1348. #ifndef TOLUA_RELEASE
  1349. tolua_lerror:
  1350. tolua_error(tolua_S,"#ferror in function 'at'.",&tolua_err);
  1351. return 0;
  1352. #endif
  1353. }
  1354. #endif //#ifndef TOLUA_DISABLE
  1355.  
  1356. /* method: resize of class RasterVertexList */
  1357. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertexList_resize00
  1358. static int tolua_BindTerrainEdit_RasterVertexList_resize00(lua_State* tolua_S)
  1359. {
  1360. #ifndef TOLUA_RELEASE
  1361. tolua_Error tolua_err;
  1362. if (
  1363. !tolua_isusertype(tolua_S,1,"RasterVertexList",0,&tolua_err) ||
  1364. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1365. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1366. )
  1367. goto tolua_lerror;
  1368. else
  1369. #endif
  1370. {
  1371. RasterVertexList* self = (RasterVertexList*) tolua_tousertype(tolua_S,1,0);
  1372. int width = ((int) tolua_tonumber(tolua_S,2,0));
  1373. #ifndef TOLUA_RELEASE
  1374. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'resize'", NULL);
  1375. #endif
  1376. {
  1377. self->resize(width);
  1378. }
  1379. }
  1380. return 0;
  1381. #ifndef TOLUA_RELEASE
  1382. tolua_lerror:
  1383. tolua_error(tolua_S,"#ferror in function 'resize'.",&tolua_err);
  1384. return 0;
  1385. #endif
  1386. }
  1387. #endif //#ifndef TOLUA_DISABLE
  1388.  
  1389. /* method: reserve of class RasterVertexList */
  1390. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertexList_reserve00
  1391. static int tolua_BindTerrainEdit_RasterVertexList_reserve00(lua_State* tolua_S)
  1392. {
  1393. #ifndef TOLUA_RELEASE
  1394. tolua_Error tolua_err;
  1395. if (
  1396. !tolua_isusertype(tolua_S,1,"RasterVertexList",0,&tolua_err) ||
  1397. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1398. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1399. )
  1400. goto tolua_lerror;
  1401. else
  1402. #endif
  1403. {
  1404. RasterVertexList* self = (RasterVertexList*) tolua_tousertype(tolua_S,1,0);
  1405. int cap = ((int) tolua_tonumber(tolua_S,2,0));
  1406. #ifndef TOLUA_RELEASE
  1407. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'reserve'", NULL);
  1408. #endif
  1409. {
  1410. self->reserve(cap);
  1411. }
  1412. }
  1413. return 0;
  1414. #ifndef TOLUA_RELEASE
  1415. tolua_lerror:
  1416. tolua_error(tolua_S,"#ferror in function 'reserve'.",&tolua_err);
  1417. return 0;
  1418. #endif
  1419. }
  1420. #endif //#ifndef TOLUA_DISABLE
  1421.  
  1422. /* method: empty of class RasterVertexList */
  1423. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertexList_empty00
  1424. static int tolua_BindTerrainEdit_RasterVertexList_empty00(lua_State* tolua_S)
  1425. {
  1426. #ifndef TOLUA_RELEASE
  1427. tolua_Error tolua_err;
  1428. if (
  1429. !tolua_isusertype(tolua_S,1,"RasterVertexList",0,&tolua_err) ||
  1430. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1431. )
  1432. goto tolua_lerror;
  1433. else
  1434. #endif
  1435. {
  1436. RasterVertexList* self = (RasterVertexList*) tolua_tousertype(tolua_S,1,0);
  1437. #ifndef TOLUA_RELEASE
  1438. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'empty'", NULL);
  1439. #endif
  1440. {
  1441. bool tolua_ret = (bool) self->empty();
  1442. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1443. }
  1444. }
  1445. return 1;
  1446. #ifndef TOLUA_RELEASE
  1447. tolua_lerror:
  1448. tolua_error(tolua_S,"#ferror in function 'empty'.",&tolua_err);
  1449. return 0;
  1450. #endif
  1451. }
  1452. #endif //#ifndef TOLUA_DISABLE
  1453.  
  1454. /* method: push_back of class RasterVertexList */
  1455. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertexList_push_back00
  1456. static int tolua_BindTerrainEdit_RasterVertexList_push_back00(lua_State* tolua_S)
  1457. {
  1458. #ifndef TOLUA_RELEASE
  1459. tolua_Error tolua_err;
  1460. if (
  1461. !tolua_isusertype(tolua_S,1,"RasterVertexList",0,&tolua_err) ||
  1462. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const RasterVertex",0,&tolua_err)) ||
  1463. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1464. )
  1465. goto tolua_lerror;
  1466. else
  1467. #endif
  1468. {
  1469. RasterVertexList* self = (RasterVertexList*) tolua_tousertype(tolua_S,1,0);
  1470. const RasterVertex* value = ((const RasterVertex*) tolua_tousertype(tolua_S,2,0));
  1471. #ifndef TOLUA_RELEASE
  1472. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'push_back'", NULL);
  1473. #endif
  1474. {
  1475. self->push_back(*value);
  1476. }
  1477. }
  1478. return 0;
  1479. #ifndef TOLUA_RELEASE
  1480. tolua_lerror:
  1481. tolua_error(tolua_S,"#ferror in function 'push_back'.",&tolua_err);
  1482. return 0;
  1483. #endif
  1484. }
  1485. #endif //#ifndef TOLUA_DISABLE
  1486.  
  1487. /* method: front of class RasterVertexList */
  1488. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertexList_front00
  1489. static int tolua_BindTerrainEdit_RasterVertexList_front00(lua_State* tolua_S)
  1490. {
  1491. #ifndef TOLUA_RELEASE
  1492. tolua_Error tolua_err;
  1493. if (
  1494. !tolua_isusertype(tolua_S,1,"const RasterVertexList",0,&tolua_err) ||
  1495. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1496. )
  1497. goto tolua_lerror;
  1498. else
  1499. #endif
  1500. {
  1501. const RasterVertexList* self = (const RasterVertexList*) tolua_tousertype(tolua_S,1,0);
  1502. #ifndef TOLUA_RELEASE
  1503. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'front'", NULL);
  1504. #endif
  1505. {
  1506. const RasterVertex& tolua_ret = (const RasterVertex&) self->front();
  1507. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const RasterVertex");
  1508. }
  1509. }
  1510. return 1;
  1511. #ifndef TOLUA_RELEASE
  1512. tolua_lerror:
  1513. tolua_error(tolua_S,"#ferror in function 'front'.",&tolua_err);
  1514. return 0;
  1515. #endif
  1516. }
  1517. #endif //#ifndef TOLUA_DISABLE
  1518.  
  1519. /* method: back of class RasterVertexList */
  1520. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterVertexList_back00
  1521. static int tolua_BindTerrainEdit_RasterVertexList_back00(lua_State* tolua_S)
  1522. {
  1523. #ifndef TOLUA_RELEASE
  1524. tolua_Error tolua_err;
  1525. if (
  1526. !tolua_isusertype(tolua_S,1,"const RasterVertexList",0,&tolua_err) ||
  1527. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1528. )
  1529. goto tolua_lerror;
  1530. else
  1531. #endif
  1532. {
  1533. const RasterVertexList* self = (const RasterVertexList*) tolua_tousertype(tolua_S,1,0);
  1534. #ifndef TOLUA_RELEASE
  1535. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'back'", NULL);
  1536. #endif
  1537. {
  1538. const RasterVertex& tolua_ret = (const RasterVertex&) self->back();
  1539. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const RasterVertex");
  1540. }
  1541. }
  1542. return 1;
  1543. #ifndef TOLUA_RELEASE
  1544. tolua_lerror:
  1545. tolua_error(tolua_S,"#ferror in function 'back'.",&tolua_err);
  1546. return 0;
  1547. #endif
  1548. }
  1549. #endif //#ifndef TOLUA_DISABLE
  1550.  
  1551. /* method: new of class RasterBuffer */
  1552. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_new00
  1553. static int tolua_BindTerrainEdit_RasterBuffer_new00(lua_State* tolua_S)
  1554. {
  1555. #ifndef TOLUA_RELEASE
  1556. tolua_Error tolua_err;
  1557. if (
  1558. !tolua_isusertable(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  1559. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1560. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1561. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1562. )
  1563. goto tolua_lerror;
  1564. else
  1565. #endif
  1566. {
  1567. int w = ((int) tolua_tonumber(tolua_S,2,0));
  1568. int h = ((int) tolua_tonumber(tolua_S,3,0));
  1569. {
  1570. RasterBuffer* tolua_ret = (RasterBuffer*) Mtolua_new((RasterBuffer)(w,h));
  1571. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RasterBuffer");
  1572. }
  1573. }
  1574. return 1;
  1575. #ifndef TOLUA_RELEASE
  1576. tolua_lerror:
  1577. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  1578. return 0;
  1579. #endif
  1580. }
  1581. #endif //#ifndef TOLUA_DISABLE
  1582.  
  1583. /* method: new_local of class RasterBuffer */
  1584. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_new00_local
  1585. static int tolua_BindTerrainEdit_RasterBuffer_new00_local(lua_State* tolua_S)
  1586. {
  1587. #ifndef TOLUA_RELEASE
  1588. tolua_Error tolua_err;
  1589. if (
  1590. !tolua_isusertable(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  1591. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1592. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1593. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1594. )
  1595. goto tolua_lerror;
  1596. else
  1597. #endif
  1598. {
  1599. int w = ((int) tolua_tonumber(tolua_S,2,0));
  1600. int h = ((int) tolua_tonumber(tolua_S,3,0));
  1601. {
  1602. RasterBuffer* tolua_ret = (RasterBuffer*) Mtolua_new((RasterBuffer)(w,h));
  1603. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RasterBuffer");
  1604. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1605. }
  1606. }
  1607. return 1;
  1608. #ifndef TOLUA_RELEASE
  1609. tolua_lerror:
  1610. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  1611. return 0;
  1612. #endif
  1613. }
  1614. #endif //#ifndef TOLUA_DISABLE
  1615.  
  1616. /* method: new of class RasterBuffer */
  1617. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_new01
  1618. static int tolua_BindTerrainEdit_RasterBuffer_new01(lua_State* tolua_S)
  1619. {
  1620. tolua_Error tolua_err;
  1621. if (
  1622. !tolua_isusertable(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  1623. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1624. )
  1625. goto tolua_lerror;
  1626. else
  1627. {
  1628. {
  1629. RasterBuffer* tolua_ret = (RasterBuffer*) Mtolua_new((RasterBuffer)());
  1630. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RasterBuffer");
  1631. }
  1632. }
  1633. return 1;
  1634. tolua_lerror:
  1635. return tolua_BindTerrainEdit_RasterBuffer_new00(tolua_S);
  1636. }
  1637. #endif //#ifndef TOLUA_DISABLE
  1638.  
  1639. /* method: new_local of class RasterBuffer */
  1640. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_new01_local
  1641. static int tolua_BindTerrainEdit_RasterBuffer_new01_local(lua_State* tolua_S)
  1642. {
  1643. tolua_Error tolua_err;
  1644. if (
  1645. !tolua_isusertable(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  1646. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1647. )
  1648. goto tolua_lerror;
  1649. else
  1650. {
  1651. {
  1652. RasterBuffer* tolua_ret = (RasterBuffer*) Mtolua_new((RasterBuffer)());
  1653. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RasterBuffer");
  1654. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1655. }
  1656. }
  1657. return 1;
  1658. tolua_lerror:
  1659. return tolua_BindTerrainEdit_RasterBuffer_new00_local(tolua_S);
  1660. }
  1661. #endif //#ifndef TOLUA_DISABLE
  1662.  
  1663. /* method: delete of class RasterBuffer */
  1664. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_delete00
  1665. static int tolua_BindTerrainEdit_RasterBuffer_delete00(lua_State* tolua_S)
  1666. {
  1667. #ifndef TOLUA_RELEASE
  1668. tolua_Error tolua_err;
  1669. if (
  1670. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  1671. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1672. )
  1673. goto tolua_lerror;
  1674. else
  1675. #endif
  1676. {
  1677. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  1678. #ifndef TOLUA_RELEASE
  1679. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  1680. #endif
  1681. Mtolua_delete(self);
  1682. }
  1683. return 0;
  1684. #ifndef TOLUA_RELEASE
  1685. tolua_lerror:
  1686. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  1687. return 0;
  1688. #endif
  1689. }
  1690. #endif //#ifndef TOLUA_DISABLE
  1691.  
  1692. /* method: resize of class RasterBuffer */
  1693. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_resize00
  1694. static int tolua_BindTerrainEdit_RasterBuffer_resize00(lua_State* tolua_S)
  1695. {
  1696. #ifndef TOLUA_RELEASE
  1697. tolua_Error tolua_err;
  1698. if (
  1699. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  1700. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1701. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1702. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1703. )
  1704. goto tolua_lerror;
  1705. else
  1706. #endif
  1707. {
  1708. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  1709. int w = ((int) tolua_tonumber(tolua_S,2,0));
  1710. int h = ((int) tolua_tonumber(tolua_S,3,0));
  1711. #ifndef TOLUA_RELEASE
  1712. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'resize'", NULL);
  1713. #endif
  1714. {
  1715. self->resize(w,h);
  1716. }
  1717. }
  1718. return 0;
  1719. #ifndef TOLUA_RELEASE
  1720. tolua_lerror:
  1721. tolua_error(tolua_S,"#ferror in function 'resize'.",&tolua_err);
  1722. return 0;
  1723. #endif
  1724. }
  1725. #endif //#ifndef TOLUA_DISABLE
  1726.  
  1727. /* method: destroy of class RasterBuffer */
  1728. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_destroy00
  1729. static int tolua_BindTerrainEdit_RasterBuffer_destroy00(lua_State* tolua_S)
  1730. {
  1731. #ifndef TOLUA_RELEASE
  1732. tolua_Error tolua_err;
  1733. if (
  1734. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  1735. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1736. )
  1737. goto tolua_lerror;
  1738. else
  1739. #endif
  1740. {
  1741. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  1742. #ifndef TOLUA_RELEASE
  1743. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'destroy'", NULL);
  1744. #endif
  1745. {
  1746. self->destroy();
  1747. }
  1748. }
  1749. return 0;
  1750. #ifndef TOLUA_RELEASE
  1751. tolua_lerror:
  1752. tolua_error(tolua_S,"#ferror in function 'destroy'.",&tolua_err);
  1753. return 0;
  1754. #endif
  1755. }
  1756. #endif //#ifndef TOLUA_DISABLE
  1757.  
  1758. /* method: width of class RasterBuffer */
  1759. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_width00
  1760. static int tolua_BindTerrainEdit_RasterBuffer_width00(lua_State* tolua_S)
  1761. {
  1762. #ifndef TOLUA_RELEASE
  1763. tolua_Error tolua_err;
  1764. if (
  1765. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  1766. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1767. )
  1768. goto tolua_lerror;
  1769. else
  1770. #endif
  1771. {
  1772. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  1773. #ifndef TOLUA_RELEASE
  1774. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'width'", NULL);
  1775. #endif
  1776. {
  1777. int tolua_ret = (int) self->width();
  1778. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1779. }
  1780. }
  1781. return 1;
  1782. #ifndef TOLUA_RELEASE
  1783. tolua_lerror:
  1784. tolua_error(tolua_S,"#ferror in function 'width'.",&tolua_err);
  1785. return 0;
  1786. #endif
  1787. }
  1788. #endif //#ifndef TOLUA_DISABLE
  1789.  
  1790. /* method: height of class RasterBuffer */
  1791. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_height00
  1792. static int tolua_BindTerrainEdit_RasterBuffer_height00(lua_State* tolua_S)
  1793. {
  1794. #ifndef TOLUA_RELEASE
  1795. tolua_Error tolua_err;
  1796. if (
  1797. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  1798. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1799. )
  1800. goto tolua_lerror;
  1801. else
  1802. #endif
  1803. {
  1804. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  1805. #ifndef TOLUA_RELEASE
  1806. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'height'", NULL);
  1807. #endif
  1808. {
  1809. int tolua_ret = (int) self->height();
  1810. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1811. }
  1812. }
  1813. return 1;
  1814. #ifndef TOLUA_RELEASE
  1815. tolua_lerror:
  1816. tolua_error(tolua_S,"#ferror in function 'height'.",&tolua_err);
  1817. return 0;
  1818. #endif
  1819. }
  1820. #endif //#ifndef TOLUA_DISABLE
  1821.  
  1822. /* method: set of class RasterBuffer */
  1823. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_set00
  1824. static int tolua_BindTerrainEdit_RasterBuffer_set00(lua_State* tolua_S)
  1825. {
  1826. #ifndef TOLUA_RELEASE
  1827. tolua_Error tolua_err;
  1828. if (
  1829. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  1830. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1831. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1832. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  1833. !tolua_isnoobj(tolua_S,5,&tolua_err)
  1834. )
  1835. goto tolua_lerror;
  1836. else
  1837. #endif
  1838. {
  1839. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  1840. int x = ((int) tolua_tonumber(tolua_S,2,0));
  1841. int y = ((int) tolua_tonumber(tolua_S,3,0));
  1842. float v = ((float) tolua_tonumber(tolua_S,4,0));
  1843. #ifndef TOLUA_RELEASE
  1844. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'set'", NULL);
  1845. #endif
  1846. {
  1847. self->set(x,y,v);
  1848. }
  1849. }
  1850. return 0;
  1851. #ifndef TOLUA_RELEASE
  1852. tolua_lerror:
  1853. tolua_error(tolua_S,"#ferror in function 'set'.",&tolua_err);
  1854. return 0;
  1855. #endif
  1856. }
  1857. #endif //#ifndef TOLUA_DISABLE
  1858.  
  1859. /* method: get of class RasterBuffer */
  1860. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_get00
  1861. static int tolua_BindTerrainEdit_RasterBuffer_get00(lua_State* tolua_S)
  1862. {
  1863. #ifndef TOLUA_RELEASE
  1864. tolua_Error tolua_err;
  1865. if (
  1866. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  1867. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1868. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1869. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1870. )
  1871. goto tolua_lerror;
  1872. else
  1873. #endif
  1874. {
  1875. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  1876. int x = ((int) tolua_tonumber(tolua_S,2,0));
  1877. int y = ((int) tolua_tonumber(tolua_S,3,0));
  1878. #ifndef TOLUA_RELEASE
  1879. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'get'", NULL);
  1880. #endif
  1881. {
  1882. float tolua_ret = (float) self->get(x,y);
  1883. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1884. }
  1885. }
  1886. return 1;
  1887. #ifndef TOLUA_RELEASE
  1888. tolua_lerror:
  1889. tolua_error(tolua_S,"#ferror in function 'get'.",&tolua_err);
  1890. return 0;
  1891. #endif
  1892. }
  1893. #endif //#ifndef TOLUA_DISABLE
  1894.  
  1895. /* method: getRef of class RasterBuffer */
  1896. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_getRef00
  1897. static int tolua_BindTerrainEdit_RasterBuffer_getRef00(lua_State* tolua_S)
  1898. {
  1899. #ifndef TOLUA_RELEASE
  1900. tolua_Error tolua_err;
  1901. if (
  1902. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  1903. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1904. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1905. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1906. )
  1907. goto tolua_lerror;
  1908. else
  1909. #endif
  1910. {
  1911. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  1912. int x = ((int) tolua_tonumber(tolua_S,2,0));
  1913. int y = ((int) tolua_tonumber(tolua_S,3,0));
  1914. #ifndef TOLUA_RELEASE
  1915. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getRef'", NULL);
  1916. #endif
  1917. {
  1918. float tolua_ret = (float) self->getRef(x,y);
  1919. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1920. }
  1921. }
  1922. return 1;
  1923. #ifndef TOLUA_RELEASE
  1924. tolua_lerror:
  1925. tolua_error(tolua_S,"#ferror in function 'getRef'.",&tolua_err);
  1926. return 0;
  1927. #endif
  1928. }
  1929. #endif //#ifndef TOLUA_DISABLE
  1930.  
  1931. /* method: getBilinear of class RasterBuffer */
  1932. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_getBilinear00
  1933. static int tolua_BindTerrainEdit_RasterBuffer_getBilinear00(lua_State* tolua_S)
  1934. {
  1935. #ifndef TOLUA_RELEASE
  1936. tolua_Error tolua_err;
  1937. if (
  1938. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  1939. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1940. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1941. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1942. )
  1943. goto tolua_lerror;
  1944. else
  1945. #endif
  1946. {
  1947. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  1948. float x = ((float) tolua_tonumber(tolua_S,2,0));
  1949. float y = ((float) tolua_tonumber(tolua_S,3,0));
  1950. #ifndef TOLUA_RELEASE
  1951. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getBilinear'", NULL);
  1952. #endif
  1953. {
  1954. float tolua_ret = (float) self->getBilinear(x,y);
  1955. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1956. }
  1957. }
  1958. return 1;
  1959. #ifndef TOLUA_RELEASE
  1960. tolua_lerror:
  1961. tolua_error(tolua_S,"#ferror in function 'getBilinear'.",&tolua_err);
  1962. return 0;
  1963. #endif
  1964. }
  1965. #endif //#ifndef TOLUA_DISABLE
  1966.  
  1967. /* method: getIndexed of class RasterBuffer */
  1968. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_getIndexed00
  1969. static int tolua_BindTerrainEdit_RasterBuffer_getIndexed00(lua_State* tolua_S)
  1970. {
  1971. #ifndef TOLUA_RELEASE
  1972. tolua_Error tolua_err;
  1973. if (
  1974. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  1975. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1976. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1977. )
  1978. goto tolua_lerror;
  1979. else
  1980. #endif
  1981. {
  1982. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  1983. int c = ((int) tolua_tonumber(tolua_S,2,0));
  1984. #ifndef TOLUA_RELEASE
  1985. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getIndexed'", NULL);
  1986. #endif
  1987. {
  1988. float tolua_ret = (float) self->getIndexed(c);
  1989. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1990. }
  1991. }
  1992. return 1;
  1993. #ifndef TOLUA_RELEASE
  1994. tolua_lerror:
  1995. tolua_error(tolua_S,"#ferror in function 'getIndexed'.",&tolua_err);
  1996. return 0;
  1997. #endif
  1998. }
  1999. #endif //#ifndef TOLUA_DISABLE
  2000.  
  2001. /* method: setIndexed of class RasterBuffer */
  2002. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_setIndexed00
  2003. static int tolua_BindTerrainEdit_RasterBuffer_setIndexed00(lua_State* tolua_S)
  2004. {
  2005. #ifndef TOLUA_RELEASE
  2006. tolua_Error tolua_err;
  2007. if (
  2008. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  2009. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2010. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  2011. !tolua_isnoobj(tolua_S,4,&tolua_err)
  2012. )
  2013. goto tolua_lerror;
  2014. else
  2015. #endif
  2016. {
  2017. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  2018. int c = ((int) tolua_tonumber(tolua_S,2,0));
  2019. float v = ((float) tolua_tonumber(tolua_S,3,0));
  2020. #ifndef TOLUA_RELEASE
  2021. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setIndexed'", NULL);
  2022. #endif
  2023. {
  2024. self->setIndexed(c,v);
  2025. }
  2026. }
  2027. return 0;
  2028. #ifndef TOLUA_RELEASE
  2029. tolua_lerror:
  2030. tolua_error(tolua_S,"#ferror in function 'setIndexed'.",&tolua_err);
  2031. return 0;
  2032. #endif
  2033. }
  2034. #endif //#ifndef TOLUA_DISABLE
  2035.  
  2036. /* method: fill of class RasterBuffer */
  2037. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_fill00
  2038. static int tolua_BindTerrainEdit_RasterBuffer_fill00(lua_State* tolua_S)
  2039. {
  2040. #ifndef TOLUA_RELEASE
  2041. tolua_Error tolua_err;
  2042. if (
  2043. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  2044. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2045. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2046. )
  2047. goto tolua_lerror;
  2048. else
  2049. #endif
  2050. {
  2051. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  2052. float v = ((float) tolua_tonumber(tolua_S,2,0));
  2053. #ifndef TOLUA_RELEASE
  2054. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'fill'", NULL);
  2055. #endif
  2056. {
  2057. self->fill(v);
  2058. }
  2059. }
  2060. return 0;
  2061. #ifndef TOLUA_RELEASE
  2062. tolua_lerror:
  2063. tolua_error(tolua_S,"#ferror in function 'fill'.",&tolua_err);
  2064. return 0;
  2065. #endif
  2066. }
  2067. #endif //#ifndef TOLUA_DISABLE
  2068.  
  2069. /* method: copyFrom of class RasterBuffer */
  2070. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_copyFrom00
  2071. static int tolua_BindTerrainEdit_RasterBuffer_copyFrom00(lua_State* tolua_S)
  2072. {
  2073. #ifndef TOLUA_RELEASE
  2074. tolua_Error tolua_err;
  2075. if (
  2076. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  2077. !tolua_isusertype(tolua_S,2,"RasterBuffer",0,&tolua_err) ||
  2078. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2079. )
  2080. goto tolua_lerror;
  2081. else
  2082. #endif
  2083. {
  2084. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  2085. RasterBuffer* b = ((RasterBuffer*) tolua_tousertype(tolua_S,2,0));
  2086. #ifndef TOLUA_RELEASE
  2087. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'copyFrom'", NULL);
  2088. #endif
  2089. {
  2090. self->copyFrom(b);
  2091. }
  2092. }
  2093. return 0;
  2094. #ifndef TOLUA_RELEASE
  2095. tolua_lerror:
  2096. tolua_error(tolua_S,"#ferror in function 'copyFrom'.",&tolua_err);
  2097. return 0;
  2098. #endif
  2099. }
  2100. #endif //#ifndef TOLUA_DISABLE
  2101.  
  2102. /* method: copyFromSub of class RasterBuffer */
  2103. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_copyFromSub00
  2104. static int tolua_BindTerrainEdit_RasterBuffer_copyFromSub00(lua_State* tolua_S)
  2105. {
  2106. #ifndef TOLUA_RELEASE
  2107. tolua_Error tolua_err;
  2108. if (
  2109. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  2110. !tolua_isusertype(tolua_S,2,"RasterBuffer",0,&tolua_err) ||
  2111. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  2112. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  2113. !tolua_isnoobj(tolua_S,5,&tolua_err)
  2114. )
  2115. goto tolua_lerror;
  2116. else
  2117. #endif
  2118. {
  2119. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  2120. RasterBuffer* b = ((RasterBuffer*) tolua_tousertype(tolua_S,2,0));
  2121. int x = ((int) tolua_tonumber(tolua_S,3,0));
  2122. int y = ((int) tolua_tonumber(tolua_S,4,0));
  2123. #ifndef TOLUA_RELEASE
  2124. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'copyFromSub'", NULL);
  2125. #endif
  2126. {
  2127. self->copyFromSub(b,x,y);
  2128. }
  2129. }
  2130. return 0;
  2131. #ifndef TOLUA_RELEASE
  2132. tolua_lerror:
  2133. tolua_error(tolua_S,"#ferror in function 'copyFromSub'.",&tolua_err);
  2134. return 0;
  2135. #endif
  2136. }
  2137. #endif //#ifndef TOLUA_DISABLE
  2138.  
  2139. /* method: addArray of class RasterBuffer */
  2140. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_addArray00
  2141. static int tolua_BindTerrainEdit_RasterBuffer_addArray00(lua_State* tolua_S)
  2142. {
  2143. #ifndef TOLUA_RELEASE
  2144. tolua_Error tolua_err;
  2145. if (
  2146. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  2147. !tolua_isusertype(tolua_S,2,"RasterBuffer",0,&tolua_err) ||
  2148. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2149. )
  2150. goto tolua_lerror;
  2151. else
  2152. #endif
  2153. {
  2154. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  2155. RasterBuffer* b = ((RasterBuffer*) tolua_tousertype(tolua_S,2,0));
  2156. #ifndef TOLUA_RELEASE
  2157. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'addArray'", NULL);
  2158. #endif
  2159. {
  2160. self->addArray(b);
  2161. }
  2162. }
  2163. return 0;
  2164. #ifndef TOLUA_RELEASE
  2165. tolua_lerror:
  2166. tolua_error(tolua_S,"#ferror in function 'addArray'.",&tolua_err);
  2167. return 0;
  2168. #endif
  2169. }
  2170. #endif //#ifndef TOLUA_DISABLE
  2171.  
  2172. /* method: addArraySub of class RasterBuffer */
  2173. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_addArraySub00
  2174. static int tolua_BindTerrainEdit_RasterBuffer_addArraySub00(lua_State* tolua_S)
  2175. {
  2176. #ifndef TOLUA_RELEASE
  2177. tolua_Error tolua_err;
  2178. if (
  2179. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  2180. !tolua_isusertype(tolua_S,2,"RasterBuffer",0,&tolua_err) ||
  2181. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  2182. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  2183. !tolua_isnoobj(tolua_S,5,&tolua_err)
  2184. )
  2185. goto tolua_lerror;
  2186. else
  2187. #endif
  2188. {
  2189. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  2190. RasterBuffer* b = ((RasterBuffer*) tolua_tousertype(tolua_S,2,0));
  2191. int x = ((int) tolua_tonumber(tolua_S,3,0));
  2192. int y = ((int) tolua_tonumber(tolua_S,4,0));
  2193. #ifndef TOLUA_RELEASE
  2194. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'addArraySub'", NULL);
  2195. #endif
  2196. {
  2197. self->addArraySub(b,x,y);
  2198. }
  2199. }
  2200. return 0;
  2201. #ifndef TOLUA_RELEASE
  2202. tolua_lerror:
  2203. tolua_error(tolua_S,"#ferror in function 'addArraySub'.",&tolua_err);
  2204. return 0;
  2205. #endif
  2206. }
  2207. #endif //#ifndef TOLUA_DISABLE
  2208.  
  2209. /* method: subtractArray of class RasterBuffer */
  2210. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_subtractArray00
  2211. static int tolua_BindTerrainEdit_RasterBuffer_subtractArray00(lua_State* tolua_S)
  2212. {
  2213. #ifndef TOLUA_RELEASE
  2214. tolua_Error tolua_err;
  2215. if (
  2216. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  2217. !tolua_isusertype(tolua_S,2,"RasterBuffer",0,&tolua_err) ||
  2218. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2219. )
  2220. goto tolua_lerror;
  2221. else
  2222. #endif
  2223. {
  2224. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  2225. RasterBuffer* b = ((RasterBuffer*) tolua_tousertype(tolua_S,2,0));
  2226. #ifndef TOLUA_RELEASE
  2227. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'subtractArray'", NULL);
  2228. #endif
  2229. {
  2230. self->subtractArray(b);
  2231. }
  2232. }
  2233. return 0;
  2234. #ifndef TOLUA_RELEASE
  2235. tolua_lerror:
  2236. tolua_error(tolua_S,"#ferror in function 'subtractArray'.",&tolua_err);
  2237. return 0;
  2238. #endif
  2239. }
  2240. #endif //#ifndef TOLUA_DISABLE
  2241.  
  2242. /* method: subtractArraySub of class RasterBuffer */
  2243. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_subtractArraySub00
  2244. static int tolua_BindTerrainEdit_RasterBuffer_subtractArraySub00(lua_State* tolua_S)
  2245. {
  2246. #ifndef TOLUA_RELEASE
  2247. tolua_Error tolua_err;
  2248. if (
  2249. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  2250. !tolua_isusertype(tolua_S,2,"RasterBuffer",0,&tolua_err) ||
  2251. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  2252. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  2253. !tolua_isnoobj(tolua_S,5,&tolua_err)
  2254. )
  2255. goto tolua_lerror;
  2256. else
  2257. #endif
  2258. {
  2259. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  2260. RasterBuffer* b = ((RasterBuffer*) tolua_tousertype(tolua_S,2,0));
  2261. int x = ((int) tolua_tonumber(tolua_S,3,0));
  2262. int y = ((int) tolua_tonumber(tolua_S,4,0));
  2263. #ifndef TOLUA_RELEASE
  2264. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'subtractArraySub'", NULL);
  2265. #endif
  2266. {
  2267. self->subtractArraySub(b,x,y);
  2268. }
  2269. }
  2270. return 0;
  2271. #ifndef TOLUA_RELEASE
  2272. tolua_lerror:
  2273. tolua_error(tolua_S,"#ferror in function 'subtractArraySub'.",&tolua_err);
  2274. return 0;
  2275. #endif
  2276. }
  2277. #endif //#ifndef TOLUA_DISABLE
  2278.  
  2279. /* method: multiplyArray of class RasterBuffer */
  2280. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_multiplyArray00
  2281. static int tolua_BindTerrainEdit_RasterBuffer_multiplyArray00(lua_State* tolua_S)
  2282. {
  2283. #ifndef TOLUA_RELEASE
  2284. tolua_Error tolua_err;
  2285. if (
  2286. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  2287. !tolua_isusertype(tolua_S,2,"RasterBuffer",0,&tolua_err) ||
  2288. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2289. )
  2290. goto tolua_lerror;
  2291. else
  2292. #endif
  2293. {
  2294. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  2295. RasterBuffer* b = ((RasterBuffer*) tolua_tousertype(tolua_S,2,0));
  2296. #ifndef TOLUA_RELEASE
  2297. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'multiplyArray'", NULL);
  2298. #endif
  2299. {
  2300. self->multiplyArray(b);
  2301. }
  2302. }
  2303. return 0;
  2304. #ifndef TOLUA_RELEASE
  2305. tolua_lerror:
  2306. tolua_error(tolua_S,"#ferror in function 'multiplyArray'.",&tolua_err);
  2307. return 0;
  2308. #endif
  2309. }
  2310. #endif //#ifndef TOLUA_DISABLE
  2311.  
  2312. /* method: multiplyArraySub of class RasterBuffer */
  2313. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_multiplyArraySub00
  2314. static int tolua_BindTerrainEdit_RasterBuffer_multiplyArraySub00(lua_State* tolua_S)
  2315. {
  2316. #ifndef TOLUA_RELEASE
  2317. tolua_Error tolua_err;
  2318. if (
  2319. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  2320. !tolua_isusertype(tolua_S,2,"RasterBuffer",0,&tolua_err) ||
  2321. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  2322. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  2323. !tolua_isnoobj(tolua_S,5,&tolua_err)
  2324. )
  2325. goto tolua_lerror;
  2326. else
  2327. #endif
  2328. {
  2329. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  2330. RasterBuffer* b = ((RasterBuffer*) tolua_tousertype(tolua_S,2,0));
  2331. int x = ((int) tolua_tonumber(tolua_S,3,0));
  2332. int y = ((int) tolua_tonumber(tolua_S,4,0));
  2333. #ifndef TOLUA_RELEASE
  2334. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'multiplyArraySub'", NULL);
  2335. #endif
  2336. {
  2337. self->multiplyArraySub(b,x,y);
  2338. }
  2339. }
  2340. return 0;
  2341. #ifndef TOLUA_RELEASE
  2342. tolua_lerror:
  2343. tolua_error(tolua_S,"#ferror in function 'multiplyArraySub'.",&tolua_err);
  2344. return 0;
  2345. #endif
  2346. }
  2347. #endif //#ifndef TOLUA_DISABLE
  2348.  
  2349. /* method: scale of class RasterBuffer */
  2350. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_scale00
  2351. static int tolua_BindTerrainEdit_RasterBuffer_scale00(lua_State* tolua_S)
  2352. {
  2353. #ifndef TOLUA_RELEASE
  2354. tolua_Error tolua_err;
  2355. if (
  2356. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  2357. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2358. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2359. )
  2360. goto tolua_lerror;
  2361. else
  2362. #endif
  2363. {
  2364. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  2365. float s = ((float) tolua_tonumber(tolua_S,2,0));
  2366. #ifndef TOLUA_RELEASE
  2367. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'scale'", NULL);
  2368. #endif
  2369. {
  2370. self->scale(s);
  2371. }
  2372. }
  2373. return 0;
  2374. #ifndef TOLUA_RELEASE
  2375. tolua_lerror:
  2376. tolua_error(tolua_S,"#ferror in function 'scale'.",&tolua_err);
  2377. return 0;
  2378. #endif
  2379. }
  2380. #endif //#ifndef TOLUA_DISABLE
  2381.  
  2382. /* method: blendFromArrays of class RasterBuffer */
  2383. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_blendFromArrays00
  2384. static int tolua_BindTerrainEdit_RasterBuffer_blendFromArrays00(lua_State* tolua_S)
  2385. {
  2386. #ifndef TOLUA_RELEASE
  2387. tolua_Error tolua_err;
  2388. if (
  2389. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  2390. !tolua_isusertype(tolua_S,2,"RasterBuffer",0,&tolua_err) ||
  2391. !tolua_isusertype(tolua_S,3,"RasterBuffer",0,&tolua_err) ||
  2392. !tolua_isusertype(tolua_S,4,"RasterBuffer",0,&tolua_err) ||
  2393. !tolua_isnoobj(tolua_S,5,&tolua_err)
  2394. )
  2395. goto tolua_lerror;
  2396. else
  2397. #endif
  2398. {
  2399. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  2400. RasterBuffer* b1 = ((RasterBuffer*) tolua_tousertype(tolua_S,2,0));
  2401. RasterBuffer* b2 = ((RasterBuffer*) tolua_tousertype(tolua_S,3,0));
  2402. RasterBuffer* b3 = ((RasterBuffer*) tolua_tousertype(tolua_S,4,0));
  2403. #ifndef TOLUA_RELEASE
  2404. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'blendFromArrays'", NULL);
  2405. #endif
  2406. {
  2407. self->blendFromArrays(b1,b2,b3);
  2408. }
  2409. }
  2410. return 0;
  2411. #ifndef TOLUA_RELEASE
  2412. tolua_lerror:
  2413. tolua_error(tolua_S,"#ferror in function 'blendFromArrays'.",&tolua_err);
  2414. return 0;
  2415. #endif
  2416. }
  2417. #endif //#ifndef TOLUA_DISABLE
  2418.  
  2419. /* method: selectFromArrays of class RasterBuffer */
  2420. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_selectFromArrays00
  2421. static int tolua_BindTerrainEdit_RasterBuffer_selectFromArrays00(lua_State* tolua_S)
  2422. {
  2423. #ifndef TOLUA_RELEASE
  2424. tolua_Error tolua_err;
  2425. if (
  2426. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  2427. !tolua_isusertype(tolua_S,2,"RasterBuffer",0,&tolua_err) ||
  2428. !tolua_isusertype(tolua_S,3,"RasterBuffer",0,&tolua_err) ||
  2429. !tolua_isusertype(tolua_S,4,"RasterBuffer",0,&tolua_err) ||
  2430. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  2431. !tolua_isnoobj(tolua_S,6,&tolua_err)
  2432. )
  2433. goto tolua_lerror;
  2434. else
  2435. #endif
  2436. {
  2437. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  2438. RasterBuffer* b1 = ((RasterBuffer*) tolua_tousertype(tolua_S,2,0));
  2439. RasterBuffer* b2 = ((RasterBuffer*) tolua_tousertype(tolua_S,3,0));
  2440. RasterBuffer* b3 = ((RasterBuffer*) tolua_tousertype(tolua_S,4,0));
  2441. float threshold = ((float) tolua_tonumber(tolua_S,5,0));
  2442. #ifndef TOLUA_RELEASE
  2443. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'selectFromArrays'", NULL);
  2444. #endif
  2445. {
  2446. self->selectFromArrays(b1,b2,b3,threshold);
  2447. }
  2448. }
  2449. return 0;
  2450. #ifndef TOLUA_RELEASE
  2451. tolua_lerror:
  2452. tolua_error(tolua_S,"#ferror in function 'selectFromArrays'.",&tolua_err);
  2453. return 0;
  2454. #endif
  2455. }
  2456. #endif //#ifndef TOLUA_DISABLE
  2457.  
  2458. /* method: getMax of class RasterBuffer */
  2459. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_getMax00
  2460. static int tolua_BindTerrainEdit_RasterBuffer_getMax00(lua_State* tolua_S)
  2461. {
  2462. #ifndef TOLUA_RELEASE
  2463. tolua_Error tolua_err;
  2464. if (
  2465. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  2466. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2467. )
  2468. goto tolua_lerror;
  2469. else
  2470. #endif
  2471. {
  2472. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  2473. #ifndef TOLUA_RELEASE
  2474. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getMax'", NULL);
  2475. #endif
  2476. {
  2477. float tolua_ret = (float) self->getMax();
  2478. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2479. }
  2480. }
  2481. return 1;
  2482. #ifndef TOLUA_RELEASE
  2483. tolua_lerror:
  2484. tolua_error(tolua_S,"#ferror in function 'getMax'.",&tolua_err);
  2485. return 0;
  2486. #endif
  2487. }
  2488. #endif //#ifndef TOLUA_DISABLE
  2489.  
  2490. /* method: getMin of class RasterBuffer */
  2491. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_getMin00
  2492. static int tolua_BindTerrainEdit_RasterBuffer_getMin00(lua_State* tolua_S)
  2493. {
  2494. #ifndef TOLUA_RELEASE
  2495. tolua_Error tolua_err;
  2496. if (
  2497. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  2498. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2499. )
  2500. goto tolua_lerror;
  2501. else
  2502. #endif
  2503. {
  2504. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  2505. #ifndef TOLUA_RELEASE
  2506. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getMin'", NULL);
  2507. #endif
  2508. {
  2509. float tolua_ret = (float) self->getMin();
  2510. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2511. }
  2512. }
  2513. return 1;
  2514. #ifndef TOLUA_RELEASE
  2515. tolua_lerror:
  2516. tolua_error(tolua_S,"#ferror in function 'getMin'.",&tolua_err);
  2517. return 0;
  2518. #endif
  2519. }
  2520. #endif //#ifndef TOLUA_DISABLE
  2521.  
  2522. /* method: scaleToRange of class RasterBuffer */
  2523. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_scaleToRange00
  2524. static int tolua_BindTerrainEdit_RasterBuffer_scaleToRange00(lua_State* tolua_S)
  2525. {
  2526. #ifndef TOLUA_RELEASE
  2527. tolua_Error tolua_err;
  2528. if (
  2529. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  2530. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2531. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  2532. !tolua_isnoobj(tolua_S,4,&tolua_err)
  2533. )
  2534. goto tolua_lerror;
  2535. else
  2536. #endif
  2537. {
  2538. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  2539. float low = ((float) tolua_tonumber(tolua_S,2,0));
  2540. float high = ((float) tolua_tonumber(tolua_S,3,0));
  2541. #ifndef TOLUA_RELEASE
  2542. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'scaleToRange'", NULL);
  2543. #endif
  2544. {
  2545. self->scaleToRange(low,high);
  2546. }
  2547. }
  2548. return 0;
  2549. #ifndef TOLUA_RELEASE
  2550. tolua_lerror:
  2551. tolua_error(tolua_S,"#ferror in function 'scaleToRange'.",&tolua_err);
  2552. return 0;
  2553. #endif
  2554. }
  2555. #endif //#ifndef TOLUA_DISABLE
  2556.  
  2557. /* method: wrapCoords of class RasterBuffer */
  2558. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_wrapCoords00
  2559. static int tolua_BindTerrainEdit_RasterBuffer_wrapCoords00(lua_State* tolua_S)
  2560. {
  2561. #ifndef TOLUA_RELEASE
  2562. tolua_Error tolua_err;
  2563. if (
  2564. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  2565. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2566. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  2567. !tolua_isnoobj(tolua_S,4,&tolua_err)
  2568. )
  2569. goto tolua_lerror;
  2570. else
  2571. #endif
  2572. {
  2573. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  2574. float x = ((float) tolua_tonumber(tolua_S,2,0));
  2575. float y = ((float) tolua_tonumber(tolua_S,3,0));
  2576. #ifndef TOLUA_RELEASE
  2577. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'wrapCoords'", NULL);
  2578. #endif
  2579. {
  2580. self->wrapCoords(x,y);
  2581. tolua_pushnumber(tolua_S,(lua_Number)x);
  2582. tolua_pushnumber(tolua_S,(lua_Number)y);
  2583. }
  2584. }
  2585. return 2;
  2586. #ifndef TOLUA_RELEASE
  2587. tolua_lerror:
  2588. tolua_error(tolua_S,"#ferror in function 'wrapCoords'.",&tolua_err);
  2589. return 0;
  2590. #endif
  2591. }
  2592. #endif //#ifndef TOLUA_DISABLE
  2593.  
  2594. /* method: offset of class RasterBuffer */
  2595. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_offset00
  2596. static int tolua_BindTerrainEdit_RasterBuffer_offset00(lua_State* tolua_S)
  2597. {
  2598. #ifndef TOLUA_RELEASE
  2599. tolua_Error tolua_err;
  2600. if (
  2601. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  2602. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2603. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  2604. !tolua_isnoobj(tolua_S,4,&tolua_err)
  2605. )
  2606. goto tolua_lerror;
  2607. else
  2608. #endif
  2609. {
  2610. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  2611. int ox = ((int) tolua_tonumber(tolua_S,2,0));
  2612. int oy = ((int) tolua_tonumber(tolua_S,3,0));
  2613. #ifndef TOLUA_RELEASE
  2614. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'offset'", NULL);
  2615. #endif
  2616. {
  2617. self->offset(ox,oy);
  2618. }
  2619. }
  2620. return 0;
  2621. #ifndef TOLUA_RELEASE
  2622. tolua_lerror:
  2623. tolua_error(tolua_S,"#ferror in function 'offset'.",&tolua_err);
  2624. return 0;
  2625. #endif
  2626. }
  2627. #endif //#ifndef TOLUA_DISABLE
  2628.  
  2629. /* method: flipVertical of class RasterBuffer */
  2630. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_flipVertical00
  2631. static int tolua_BindTerrainEdit_RasterBuffer_flipVertical00(lua_State* tolua_S)
  2632. {
  2633. #ifndef TOLUA_RELEASE
  2634. tolua_Error tolua_err;
  2635. if (
  2636. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  2637. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2638. )
  2639. goto tolua_lerror;
  2640. else
  2641. #endif
  2642. {
  2643. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  2644. #ifndef TOLUA_RELEASE
  2645. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'flipVertical'", NULL);
  2646. #endif
  2647. {
  2648. self->flipVertical();
  2649. }
  2650. }
  2651. return 0;
  2652. #ifndef TOLUA_RELEASE
  2653. tolua_lerror:
  2654. tolua_error(tolua_S,"#ferror in function 'flipVertical'.",&tolua_err);
  2655. return 0;
  2656. #endif
  2657. }
  2658. #endif //#ifndef TOLUA_DISABLE
  2659.  
  2660. /* method: flipHorizontal of class RasterBuffer */
  2661. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_flipHorizontal00
  2662. static int tolua_BindTerrainEdit_RasterBuffer_flipHorizontal00(lua_State* tolua_S)
  2663. {
  2664. #ifndef TOLUA_RELEASE
  2665. tolua_Error tolua_err;
  2666. if (
  2667. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  2668. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2669. )
  2670. goto tolua_lerror;
  2671. else
  2672. #endif
  2673. {
  2674. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  2675. #ifndef TOLUA_RELEASE
  2676. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'flipHorizontal'", NULL);
  2677. #endif
  2678. {
  2679. self->flipHorizontal();
  2680. }
  2681. }
  2682. return 0;
  2683. #ifndef TOLUA_RELEASE
  2684. tolua_lerror:
  2685. tolua_error(tolua_S,"#ferror in function 'flipHorizontal'.",&tolua_err);
  2686. return 0;
  2687. #endif
  2688. }
  2689. #endif //#ifndef TOLUA_DISABLE
  2690.  
  2691. /* method: scaleTo of class RasterBuffer */
  2692. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_scaleTo00
  2693. static int tolua_BindTerrainEdit_RasterBuffer_scaleTo00(lua_State* tolua_S)
  2694. {
  2695. #ifndef TOLUA_RELEASE
  2696. tolua_Error tolua_err;
  2697. if (
  2698. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  2699. !tolua_isusertype(tolua_S,2,"RasterBuffer",0,&tolua_err) ||
  2700. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2701. )
  2702. goto tolua_lerror;
  2703. else
  2704. #endif
  2705. {
  2706. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  2707. RasterBuffer* dst = ((RasterBuffer*) tolua_tousertype(tolua_S,2,0));
  2708. #ifndef TOLUA_RELEASE
  2709. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'scaleTo'", NULL);
  2710. #endif
  2711. {
  2712. self->scaleTo(dst);
  2713. }
  2714. }
  2715. return 0;
  2716. #ifndef TOLUA_RELEASE
  2717. tolua_lerror:
  2718. tolua_error(tolua_S,"#ferror in function 'scaleTo'.",&tolua_err);
  2719. return 0;
  2720. #endif
  2721. }
  2722. #endif //#ifndef TOLUA_DISABLE
  2723.  
  2724. /* method: blur of class RasterBuffer */
  2725. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterBuffer_blur00
  2726. static int tolua_BindTerrainEdit_RasterBuffer_blur00(lua_State* tolua_S)
  2727. {
  2728. #ifndef TOLUA_RELEASE
  2729. tolua_Error tolua_err;
  2730. if (
  2731. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  2732. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2733. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  2734. !tolua_isboolean(tolua_S,4,0,&tolua_err) ||
  2735. !tolua_isnoobj(tolua_S,5,&tolua_err)
  2736. )
  2737. goto tolua_lerror;
  2738. else
  2739. #endif
  2740. {
  2741. RasterBuffer* self = (RasterBuffer*) tolua_tousertype(tolua_S,1,0);
  2742. int blurwidth = ((int) tolua_tonumber(tolua_S,2,0));
  2743. int blurheight = ((int) tolua_tonumber(tolua_S,3,0));
  2744. bool seamless = ((bool) tolua_toboolean(tolua_S,4,0));
  2745. #ifndef TOLUA_RELEASE
  2746. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'blur'", NULL);
  2747. #endif
  2748. {
  2749. self->blur(blurwidth,blurheight,seamless);
  2750. }
  2751. }
  2752. return 0;
  2753. #ifndef TOLUA_RELEASE
  2754. tolua_lerror:
  2755. tolua_error(tolua_S,"#ferror in function 'blur'.",&tolua_err);
  2756. return 0;
  2757. #endif
  2758. }
  2759. #endif //#ifndef TOLUA_DISABLE
  2760.  
  2761. /* function: RasterizeTriangle */
  2762. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterizeTriangle00
  2763. static int tolua_BindTerrainEdit_RasterizeTriangle00(lua_State* tolua_S)
  2764. {
  2765. #ifndef TOLUA_RELEASE
  2766. tolua_Error tolua_err;
  2767. if (
  2768. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  2769. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"RasterVertex",0,&tolua_err)) ||
  2770. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"RasterVertex",0,&tolua_err)) ||
  2771. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"RasterVertex",0,&tolua_err)) ||
  2772. !tolua_isnoobj(tolua_S,5,&tolua_err)
  2773. )
  2774. goto tolua_lerror;
  2775. else
  2776. #endif
  2777. {
  2778. RasterBuffer* buffer = ((RasterBuffer*) tolua_tousertype(tolua_S,1,0));
  2779. RasterVertex v1 = *((RasterVertex*) tolua_tousertype(tolua_S,2,0));
  2780. RasterVertex v2 = *((RasterVertex*) tolua_tousertype(tolua_S,3,0));
  2781. RasterVertex v3 = *((RasterVertex*) tolua_tousertype(tolua_S,4,0));
  2782. {
  2783. RasterizeTriangle(buffer,v1,v2,v3);
  2784. }
  2785. }
  2786. return 0;
  2787. #ifndef TOLUA_RELEASE
  2788. tolua_lerror:
  2789. tolua_error(tolua_S,"#ferror in function 'RasterizeTriangle'.",&tolua_err);
  2790. return 0;
  2791. #endif
  2792. }
  2793. #endif //#ifndef TOLUA_DISABLE
  2794.  
  2795. /* function: RasterizeQuadStrip */
  2796. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RasterizeQuadStrip00
  2797. static int tolua_BindTerrainEdit_RasterizeQuadStrip00(lua_State* tolua_S)
  2798. {
  2799. #ifndef TOLUA_RELEASE
  2800. tolua_Error tolua_err;
  2801. if (
  2802. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  2803. !tolua_isusertype(tolua_S,2,"RasterVertexList",0,&tolua_err) ||
  2804. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2805. )
  2806. goto tolua_lerror;
  2807. else
  2808. #endif
  2809. {
  2810. RasterBuffer* buffer = ((RasterBuffer*) tolua_tousertype(tolua_S,1,0));
  2811. RasterVertexList* strip = ((RasterVertexList*) tolua_tousertype(tolua_S,2,0));
  2812. {
  2813. RasterizeQuadStrip(buffer,strip);
  2814. }
  2815. }
  2816. return 0;
  2817. #ifndef TOLUA_RELEASE
  2818. tolua_lerror:
  2819. tolua_error(tolua_S,"#ferror in function 'RasterizeQuadStrip'.",&tolua_err);
  2820. return 0;
  2821. #endif
  2822. }
  2823. #endif //#ifndef TOLUA_DISABLE
  2824.  
  2825. /* function: BlendHeightWithRasterizedBuffer */
  2826. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_BlendHeightWithRasterizedBuffer00
  2827. static int tolua_BindTerrainEdit_BlendHeightWithRasterizedBuffer00(lua_State* tolua_S)
  2828. {
  2829. #ifndef TOLUA_RELEASE
  2830. tolua_Error tolua_err;
  2831. if (
  2832. !tolua_isusertype(tolua_S,1,"Image",0,&tolua_err) ||
  2833. !tolua_isusertype(tolua_S,2,"RasterBuffer",0,&tolua_err) ||
  2834. !tolua_isusertype(tolua_S,3,"RasterBuffer",0,&tolua_err) ||
  2835. !tolua_isusertype(tolua_S,4,"Image",1,&tolua_err) ||
  2836. !tolua_isboolean(tolua_S,5,1,&tolua_err) ||
  2837. !tolua_isboolean(tolua_S,6,1,&tolua_err) ||
  2838. !tolua_isnoobj(tolua_S,7,&tolua_err)
  2839. )
  2840. goto tolua_lerror;
  2841. else
  2842. #endif
  2843. {
  2844. Image* height = ((Image*) tolua_tousertype(tolua_S,1,0));
  2845. RasterBuffer* buffer = ((RasterBuffer*) tolua_tousertype(tolua_S,2,0));
  2846. RasterBuffer* blend = ((RasterBuffer*) tolua_tousertype(tolua_S,3,0));
  2847. Image* mask = ((Image*) tolua_tousertype(tolua_S,4,0));
  2848. bool useMask = ((bool) tolua_toboolean(tolua_S,5,false));
  2849. bool invertMask = ((bool) tolua_toboolean(tolua_S,6,false));
  2850. {
  2851. BlendHeightWithRasterizedBuffer(height,buffer,blend,mask,useMask,invertMask);
  2852. }
  2853. }
  2854. return 0;
  2855. #ifndef TOLUA_RELEASE
  2856. tolua_lerror:
  2857. tolua_error(tolua_S,"#ferror in function 'BlendHeightWithRasterizedBuffer'.",&tolua_err);
  2858. return 0;
  2859. #endif
  2860. }
  2861. #endif //#ifndef TOLUA_DISABLE
  2862.  
  2863. /* function: BlendColorWithRasterizedBuffer */
  2864. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_BlendColorWithRasterizedBuffer00
  2865. static int tolua_BindTerrainEdit_BlendColorWithRasterizedBuffer00(lua_State* tolua_S)
  2866. {
  2867. #ifndef TOLUA_RELEASE
  2868. tolua_Error tolua_err;
  2869. if (
  2870. !tolua_isusertype(tolua_S,1,"Image",0,&tolua_err) ||
  2871. !tolua_isusertype(tolua_S,2,"RasterBuffer",0,&tolua_err) ||
  2872. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"Color",0,&tolua_err)) ||
  2873. !tolua_isusertype(tolua_S,4,"Image",1,&tolua_err) ||
  2874. !tolua_isboolean(tolua_S,5,1,&tolua_err) ||
  2875. !tolua_isboolean(tolua_S,6,1,&tolua_err) ||
  2876. !tolua_isnoobj(tolua_S,7,&tolua_err)
  2877. )
  2878. goto tolua_lerror;
  2879. else
  2880. #endif
  2881. {
  2882. Image* img = ((Image*) tolua_tousertype(tolua_S,1,0));
  2883. RasterBuffer* buffer = ((RasterBuffer*) tolua_tousertype(tolua_S,2,0));
  2884. Color endColor = *((Color*) tolua_tousertype(tolua_S,3,0));
  2885. Image* mask = ((Image*) tolua_tousertype(tolua_S,4,0));
  2886. bool useMask = ((bool) tolua_toboolean(tolua_S,5,false));
  2887. bool invertMask = ((bool) tolua_toboolean(tolua_S,6,false));
  2888. {
  2889. BlendColorWithRasterizedBuffer(img,buffer,endColor,mask,useMask,invertMask);
  2890. }
  2891. }
  2892. return 0;
  2893. #ifndef TOLUA_RELEASE
  2894. tolua_lerror:
  2895. tolua_error(tolua_S,"#ferror in function 'BlendColorWithRasterizedBuffer'.",&tolua_err);
  2896. return 0;
  2897. #endif
  2898. }
  2899. #endif //#ifndef TOLUA_DISABLE
  2900.  
  2901. /* function: BlendRasterizedBuffer8 */
  2902. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_BlendRasterizedBuffer800
  2903. static int tolua_BindTerrainEdit_BlendRasterizedBuffer800(lua_State* tolua_S)
  2904. {
  2905. #ifndef TOLUA_RELEASE
  2906. tolua_Error tolua_err;
  2907. if (
  2908. !tolua_isusertype(tolua_S,1,"Image",0,&tolua_err) ||
  2909. !tolua_isusertype(tolua_S,2,"Image",0,&tolua_err) ||
  2910. !tolua_isusertype(tolua_S,3,"RasterBuffer",0,&tolua_err) ||
  2911. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  2912. !tolua_isusertype(tolua_S,5,"Image",1,&tolua_err) ||
  2913. !tolua_isboolean(tolua_S,6,1,&tolua_err) ||
  2914. !tolua_isboolean(tolua_S,7,1,&tolua_err) ||
  2915. !tolua_isnoobj(tolua_S,8,&tolua_err)
  2916. )
  2917. goto tolua_lerror;
  2918. else
  2919. #endif
  2920. {
  2921. Image* img = ((Image*) tolua_tousertype(tolua_S,1,0));
  2922. Image* other = ((Image*) tolua_tousertype(tolua_S,2,0));
  2923. RasterBuffer* buffer = ((RasterBuffer*) tolua_tousertype(tolua_S,3,0));
  2924. int layer = ((int) tolua_tonumber(tolua_S,4,0));
  2925. Image* mask = ((Image*) tolua_tousertype(tolua_S,5,0));
  2926. bool useMask = ((bool) tolua_toboolean(tolua_S,6,false));
  2927. bool invertMask = ((bool) tolua_toboolean(tolua_S,7,false));
  2928. {
  2929. BlendRasterizedBuffer8(img,other,buffer,layer,mask,useMask,invertMask);
  2930. }
  2931. }
  2932. return 0;
  2933. #ifndef TOLUA_RELEASE
  2934. tolua_lerror:
  2935. tolua_error(tolua_S,"#ferror in function 'BlendRasterizedBuffer8'.",&tolua_err);
  2936. return 0;
  2937. #endif
  2938. }
  2939. #endif //#ifndef TOLUA_DISABLE
  2940.  
  2941. /* function: BlendRasterizedBuffer8Max */
  2942. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_BlendRasterizedBuffer8Max00
  2943. static int tolua_BindTerrainEdit_BlendRasterizedBuffer8Max00(lua_State* tolua_S)
  2944. {
  2945. #ifndef TOLUA_RELEASE
  2946. tolua_Error tolua_err;
  2947. if (
  2948. !tolua_isusertype(tolua_S,1,"Image",0,&tolua_err) ||
  2949. !tolua_isusertype(tolua_S,2,"Image",0,&tolua_err) ||
  2950. !tolua_isusertype(tolua_S,3,"RasterBuffer",0,&tolua_err) ||
  2951. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  2952. !tolua_isusertype(tolua_S,5,"Image",1,&tolua_err) ||
  2953. !tolua_isboolean(tolua_S,6,1,&tolua_err) ||
  2954. !tolua_isboolean(tolua_S,7,1,&tolua_err) ||
  2955. !tolua_isnoobj(tolua_S,8,&tolua_err)
  2956. )
  2957. goto tolua_lerror;
  2958. else
  2959. #endif
  2960. {
  2961. Image* img = ((Image*) tolua_tousertype(tolua_S,1,0));
  2962. Image* other = ((Image*) tolua_tousertype(tolua_S,2,0));
  2963. RasterBuffer* buffer = ((RasterBuffer*) tolua_tousertype(tolua_S,3,0));
  2964. int layer = ((int) tolua_tonumber(tolua_S,4,0));
  2965. Image* mask = ((Image*) tolua_tousertype(tolua_S,5,0));
  2966. bool useMask = ((bool) tolua_toboolean(tolua_S,6,false));
  2967. bool invertMask = ((bool) tolua_toboolean(tolua_S,7,false));
  2968. {
  2969. BlendRasterizedBuffer8Max(img,other,buffer,layer,mask,useMask,invertMask);
  2970. }
  2971. }
  2972. return 0;
  2973. #ifndef TOLUA_RELEASE
  2974. tolua_lerror:
  2975. tolua_error(tolua_S,"#ferror in function 'BlendRasterizedBuffer8Max'.",&tolua_err);
  2976. return 0;
  2977. #endif
  2978. }
  2979. #endif //#ifndef TOLUA_DISABLE
  2980.  
  2981. /* function: TessellateLineList */
  2982. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_TessellateLineList00
  2983. static int tolua_BindTerrainEdit_TessellateLineList00(lua_State* tolua_S)
  2984. {
  2985. #ifndef TOLUA_RELEASE
  2986. tolua_Error tolua_err;
  2987. if (
  2988. !tolua_isusertype(tolua_S,1,"RasterVertexList",0,&tolua_err) ||
  2989. !tolua_isusertype(tolua_S,2,"RasterVertexList",0,&tolua_err) ||
  2990. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  2991. !tolua_isnoobj(tolua_S,4,&tolua_err)
  2992. )
  2993. goto tolua_lerror;
  2994. else
  2995. #endif
  2996. {
  2997. RasterVertexList* in = ((RasterVertexList*) tolua_tousertype(tolua_S,1,0));
  2998. RasterVertexList* out = ((RasterVertexList*) tolua_tousertype(tolua_S,2,0));
  2999. int steps = ((int) tolua_tonumber(tolua_S,3,0));
  3000. {
  3001. TessellateLineList(in,out,steps);
  3002. }
  3003. }
  3004. return 0;
  3005. #ifndef TOLUA_RELEASE
  3006. tolua_lerror:
  3007. tolua_error(tolua_S,"#ferror in function 'TessellateLineList'.",&tolua_err);
  3008. return 0;
  3009. #endif
  3010. }
  3011. #endif //#ifndef TOLUA_DISABLE
  3012.  
  3013. /* function: ApplyBedFunction */
  3014. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_ApplyBedFunction00
  3015. static int tolua_BindTerrainEdit_ApplyBedFunction00(lua_State* tolua_S)
  3016. {
  3017. #ifndef TOLUA_RELEASE
  3018. tolua_Error tolua_err;
  3019. if (
  3020. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  3021. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3022. !tolua_isboolean(tolua_S,3,0,&tolua_err) ||
  3023. !tolua_isnoobj(tolua_S,4,&tolua_err)
  3024. )
  3025. goto tolua_lerror;
  3026. else
  3027. #endif
  3028. {
  3029. RasterBuffer* buffer = ((RasterBuffer*) tolua_tousertype(tolua_S,1,0));
  3030. float hardness = ((float) tolua_tonumber(tolua_S,2,0));
  3031. bool quintic = ((bool) tolua_toboolean(tolua_S,3,0));
  3032. {
  3033. ApplyBedFunction(buffer,hardness,quintic);
  3034. }
  3035. }
  3036. return 0;
  3037. #ifndef TOLUA_RELEASE
  3038. tolua_lerror:
  3039. tolua_error(tolua_S,"#ferror in function 'ApplyBedFunction'.",&tolua_err);
  3040. return 0;
  3041. #endif
  3042. }
  3043. #endif //#ifndef TOLUA_DISABLE
  3044.  
  3045. /* function: BuildQuadStrip */
  3046. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_BuildQuadStrip00
  3047. static int tolua_BindTerrainEdit_BuildQuadStrip00(lua_State* tolua_S)
  3048. {
  3049. #ifndef TOLUA_RELEASE
  3050. tolua_Error tolua_err;
  3051. if (
  3052. !tolua_isusertype(tolua_S,1,"RasterVertexList",0,&tolua_err) ||
  3053. !tolua_isusertype(tolua_S,2,"RasterVertexList",0,&tolua_err) ||
  3054. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  3055. !tolua_isnoobj(tolua_S,4,&tolua_err)
  3056. )
  3057. goto tolua_lerror;
  3058. else
  3059. #endif
  3060. {
  3061. RasterVertexList* in = ((RasterVertexList*) tolua_tousertype(tolua_S,1,0));
  3062. RasterVertexList* out = ((RasterVertexList*) tolua_tousertype(tolua_S,2,0));
  3063. float width = ((float) tolua_tonumber(tolua_S,3,0));
  3064. {
  3065. BuildQuadStrip(in,out,width);
  3066. }
  3067. }
  3068. return 0;
  3069. #ifndef TOLUA_RELEASE
  3070. tolua_lerror:
  3071. tolua_error(tolua_S,"#ferror in function 'BuildQuadStrip'.",&tolua_err);
  3072. return 0;
  3073. #endif
  3074. }
  3075. #endif //#ifndef TOLUA_DISABLE
  3076.  
  3077. /* function: BuildQuadStripVarying */
  3078. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_BuildQuadStripVarying00
  3079. static int tolua_BindTerrainEdit_BuildQuadStripVarying00(lua_State* tolua_S)
  3080. {
  3081. #ifndef TOLUA_RELEASE
  3082. tolua_Error tolua_err;
  3083. if (
  3084. !tolua_isusertype(tolua_S,1,"RasterVertexList",0,&tolua_err) ||
  3085. !tolua_isusertype(tolua_S,2,"RasterVertexList",0,&tolua_err) ||
  3086. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  3087. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  3088. !tolua_isnoobj(tolua_S,5,&tolua_err)
  3089. )
  3090. goto tolua_lerror;
  3091. else
  3092. #endif
  3093. {
  3094. RasterVertexList* in = ((RasterVertexList*) tolua_tousertype(tolua_S,1,0));
  3095. RasterVertexList* out = ((RasterVertexList*) tolua_tousertype(tolua_S,2,0));
  3096. float startwidth = ((float) tolua_tonumber(tolua_S,3,0));
  3097. float endwidth = ((float) tolua_tonumber(tolua_S,4,0));
  3098. {
  3099. BuildQuadStripVarying(in,out,startwidth,endwidth);
  3100. }
  3101. }
  3102. return 0;
  3103. #ifndef TOLUA_RELEASE
  3104. tolua_lerror:
  3105. tolua_error(tolua_S,"#ferror in function 'BuildQuadStripVarying'.",&tolua_err);
  3106. return 0;
  3107. #endif
  3108. }
  3109. #endif //#ifndef TOLUA_DISABLE
  3110.  
  3111. /* function: RenderANLKernelToBuffer */
  3112. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_RenderANLKernelToBuffer00
  3113. static int tolua_BindTerrainEdit_RenderANLKernelToBuffer00(lua_State* tolua_S)
  3114. {
  3115. #ifndef TOLUA_RELEASE
  3116. tolua_Error tolua_err;
  3117. if (
  3118. !tolua_isusertype(tolua_S,1,"RasterBuffer",0,&tolua_err) ||
  3119. !tolua_isusertype(tolua_S,2,"CKernel",0,&tolua_err) ||
  3120. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  3121. !tolua_isnumber(tolua_S,4,1,&tolua_err) ||
  3122. !tolua_isnoobj(tolua_S,5,&tolua_err)
  3123. )
  3124. goto tolua_lerror;
  3125. else
  3126. #endif
  3127. {
  3128. RasterBuffer* buffer = ((RasterBuffer*) tolua_tousertype(tolua_S,1,0));
  3129. CKernel* kernel = ((CKernel*) tolua_tousertype(tolua_S,2,0));
  3130. float lowrange = ((float) tolua_tonumber(tolua_S,3,0));
  3131. float highrange = ((float) tolua_tonumber(tolua_S,4,1));
  3132. {
  3133. RenderANLKernelToBuffer(buffer,kernel,lowrange,highrange);
  3134. }
  3135. }
  3136. return 0;
  3137. #ifndef TOLUA_RELEASE
  3138. tolua_lerror:
  3139. tolua_error(tolua_S,"#ferror in function 'RenderANLKernelToBuffer'.",&tolua_err);
  3140. return 0;
  3141. #endif
  3142. }
  3143. #endif //#ifndef TOLUA_DISABLE
  3144.  
  3145. /* function: SetHeightFromRasterBuffer */
  3146. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_SetHeightFromRasterBuffer00
  3147. static int tolua_BindTerrainEdit_SetHeightFromRasterBuffer00(lua_State* tolua_S)
  3148. {
  3149. #ifndef TOLUA_RELEASE
  3150. tolua_Error tolua_err;
  3151. if (
  3152. !tolua_isusertype(tolua_S,1,"Image",0,&tolua_err) ||
  3153. !tolua_isusertype(tolua_S,2,"RasterBuffer",0,&tolua_err) ||
  3154. !tolua_isusertype(tolua_S,3,"Image",1,&tolua_err) ||
  3155. !tolua_isboolean(tolua_S,4,1,&tolua_err) ||
  3156. !tolua_isboolean(tolua_S,5,1,&tolua_err) ||
  3157. !tolua_isnoobj(tolua_S,6,&tolua_err)
  3158. )
  3159. goto tolua_lerror;
  3160. else
  3161. #endif
  3162. {
  3163. Image* height = ((Image*) tolua_tousertype(tolua_S,1,0));
  3164. RasterBuffer* buffer = ((RasterBuffer*) tolua_tousertype(tolua_S,2,0));
  3165. Image* mask = ((Image*) tolua_tousertype(tolua_S,3,0));
  3166. bool useMask = ((bool) tolua_toboolean(tolua_S,4,false));
  3167. bool invertMask = ((bool) tolua_toboolean(tolua_S,5,false));
  3168. {
  3169. SetHeightFromRasterBuffer(height,buffer,mask,useMask,invertMask);
  3170. }
  3171. }
  3172. return 0;
  3173. #ifndef TOLUA_RELEASE
  3174. tolua_lerror:
  3175. tolua_error(tolua_S,"#ferror in function 'SetHeightFromRasterBuffer'.",&tolua_err);
  3176. return 0;
  3177. #endif
  3178. }
  3179. #endif //#ifndef TOLUA_DISABLE
  3180.  
  3181. /* function: CopyImageInto */
  3182. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_CopyImageInto00
  3183. static int tolua_BindTerrainEdit_CopyImageInto00(lua_State* tolua_S)
  3184. {
  3185. #ifndef TOLUA_RELEASE
  3186. tolua_Error tolua_err;
  3187. if (
  3188. !tolua_isusertype(tolua_S,1,"Image",0,&tolua_err) ||
  3189. !tolua_isusertype(tolua_S,2,"Image",0,&tolua_err) ||
  3190. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  3191. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  3192. !tolua_isnoobj(tolua_S,5,&tolua_err)
  3193. )
  3194. goto tolua_lerror;
  3195. else
  3196. #endif
  3197. {
  3198. Image* dest = ((Image*) tolua_tousertype(tolua_S,1,0));
  3199. Image* src = ((Image*) tolua_tousertype(tolua_S,2,0));
  3200. int x = ((int) tolua_tonumber(tolua_S,3,0));
  3201. int y = ((int) tolua_tonumber(tolua_S,4,0));
  3202. {
  3203. CopyImageInto(dest,src,x,y);
  3204. }
  3205. }
  3206. return 0;
  3207. #ifndef TOLUA_RELEASE
  3208. tolua_lerror:
  3209. tolua_error(tolua_S,"#ferror in function 'CopyImageInto'.",&tolua_err);
  3210. return 0;
  3211. #endif
  3212. }
  3213. #endif //#ifndef TOLUA_DISABLE
  3214.  
  3215. /* function: IsPowerOfTwo */
  3216. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_IsPowerOfTwo00
  3217. static int tolua_BindTerrainEdit_IsPowerOfTwo00(lua_State* tolua_S)
  3218. {
  3219. #ifndef TOLUA_RELEASE
  3220. tolua_Error tolua_err;
  3221. if (
  3222. !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
  3223. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3224. )
  3225. goto tolua_lerror;
  3226. else
  3227. #endif
  3228. {
  3229. int n = ((int) tolua_tonumber(tolua_S,1,0));
  3230. {
  3231. bool tolua_ret = (bool) IsPowerOfTwo(n);
  3232. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3233. }
  3234. }
  3235. return 1;
  3236. #ifndef TOLUA_RELEASE
  3237. tolua_lerror:
  3238. tolua_error(tolua_S,"#ferror in function 'IsPowerOfTwo'.",&tolua_err);
  3239. return 0;
  3240. #endif
  3241. }
  3242. #endif //#ifndef TOLUA_DISABLE
  3243.  
  3244. /* function: GetNextImageLevel */
  3245. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_GetNextImageLevel00
  3246. static int tolua_BindTerrainEdit_GetNextImageLevel00(lua_State* tolua_S)
  3247. {
  3248. #ifndef TOLUA_RELEASE
  3249. tolua_Error tolua_err;
  3250. if (
  3251. !tolua_isusertype(tolua_S,1,"Image",0,&tolua_err) ||
  3252. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3253. )
  3254. goto tolua_lerror;
  3255. else
  3256. #endif
  3257. {
  3258. Image* i = ((Image*) tolua_tousertype(tolua_S,1,0));
  3259. {
  3260. Image* tolua_ret = (Image*) GetNextImageLevel(i);
  3261. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Image");
  3262. }
  3263. }
  3264. return 1;
  3265. #ifndef TOLUA_RELEASE
  3266. tolua_lerror:
  3267. tolua_error(tolua_S,"#ferror in function 'GetNextImageLevel'.",&tolua_err);
  3268. return 0;
  3269. #endif
  3270. }
  3271. #endif //#ifndef TOLUA_DISABLE
  3272.  
  3273. /* function: ExtractLayerToBuffer */
  3274. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_ExtractLayerToBuffer00
  3275. static int tolua_BindTerrainEdit_ExtractLayerToBuffer00(lua_State* tolua_S)
  3276. {
  3277. #ifndef TOLUA_RELEASE
  3278. tolua_Error tolua_err;
  3279. if (
  3280. !tolua_isusertype(tolua_S,1,"Image",0,&tolua_err) ||
  3281. !tolua_isusertype(tolua_S,2,"Image",0,&tolua_err) ||
  3282. !tolua_isusertype(tolua_S,3,"RasterBuffer",0,&tolua_err) ||
  3283. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  3284. !tolua_isnoobj(tolua_S,5,&tolua_err)
  3285. )
  3286. goto tolua_lerror;
  3287. else
  3288. #endif
  3289. {
  3290. Image* blend1 = ((Image*) tolua_tousertype(tolua_S,1,0));
  3291. Image* blend2 = ((Image*) tolua_tousertype(tolua_S,2,0));
  3292. RasterBuffer* buffer = ((RasterBuffer*) tolua_tousertype(tolua_S,3,0));
  3293. int layer = ((int) tolua_tonumber(tolua_S,4,0));
  3294. {
  3295. ExtractLayerToBuffer(blend1,blend2,buffer,layer);
  3296. }
  3297. }
  3298. return 0;
  3299. #ifndef TOLUA_RELEASE
  3300. tolua_lerror:
  3301. tolua_error(tolua_S,"#ferror in function 'ExtractLayerToBuffer'.",&tolua_err);
  3302. return 0;
  3303. #endif
  3304. }
  3305. #endif //#ifndef TOLUA_DISABLE
  3306.  
  3307. /* function: GetLayerBlend */
  3308. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_GetLayerBlend00
  3309. static int tolua_BindTerrainEdit_GetLayerBlend00(lua_State* tolua_S)
  3310. {
  3311. #ifndef TOLUA_RELEASE
  3312. tolua_Error tolua_err;
  3313. if (
  3314. !tolua_isusertype(tolua_S,1,"Image",0,&tolua_err) ||
  3315. !tolua_isusertype(tolua_S,2,"Image",0,&tolua_err) ||
  3316. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  3317. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  3318. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  3319. !tolua_isnoobj(tolua_S,6,&tolua_err)
  3320. )
  3321. goto tolua_lerror;
  3322. else
  3323. #endif
  3324. {
  3325. Image* blend1 = ((Image*) tolua_tousertype(tolua_S,1,0));
  3326. Image* blend2 = ((Image*) tolua_tousertype(tolua_S,2,0));
  3327. int x = ((int) tolua_tonumber(tolua_S,3,0));
  3328. int y = ((int) tolua_tonumber(tolua_S,4,0));
  3329. int layer = ((int) tolua_tonumber(tolua_S,5,0));
  3330. {
  3331. float tolua_ret = (float) GetLayerBlend(blend1,blend2,x,y,layer);
  3332. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3333. }
  3334. }
  3335. return 1;
  3336. #ifndef TOLUA_RELEASE
  3337. tolua_lerror:
  3338. tolua_error(tolua_S,"#ferror in function 'GetLayerBlend'.",&tolua_err);
  3339. return 0;
  3340. #endif
  3341. }
  3342. #endif //#ifndef TOLUA_DISABLE
  3343.  
  3344. /* function: SetLayerBlend */
  3345. #ifndef TOLUA_DISABLE_tolua_BindTerrainEdit_SetLayerBlend00
  3346. static int tolua_BindTerrainEdit_SetLayerBlend00(lua_State* tolua_S)
  3347. {
  3348. #ifndef TOLUA_RELEASE
  3349. tolua_Error tolua_err;
  3350. if (
  3351. !tolua_isusertype(tolua_S,1,"Image",0,&tolua_err) ||
  3352. !tolua_isusertype(tolua_S,2,"Image",0,&tolua_err) ||
  3353. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  3354. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  3355. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  3356. !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
  3357. !tolua_isnoobj(tolua_S,7,&tolua_err)
  3358. )
  3359. goto tolua_lerror;
  3360. else
  3361. #endif
  3362. {
  3363. Image* blend1 = ((Image*) tolua_tousertype(tolua_S,1,0));
  3364. Image* blend2 = ((Image*) tolua_tousertype(tolua_S,2,0));
  3365. int x = ((int) tolua_tonumber(tolua_S,3,0));
  3366. int y = ((int) tolua_tonumber(tolua_S,4,0));
  3367. int layer = ((int) tolua_tonumber(tolua_S,5,0));
  3368. float v = ((float) tolua_tonumber(tolua_S,6,0));
  3369. {
  3370. SetLayerBlend(blend1,blend2,x,y,layer,v);
  3371. }
  3372. }
  3373. return 0;
  3374. #ifndef TOLUA_RELEASE
  3375. tolua_lerror:
  3376. tolua_error(tolua_S,"#ferror in function 'SetLayerBlend'.",&tolua_err);
  3377. return 0;
  3378. #endif
  3379. }
  3380. #endif //#ifndef TOLUA_DISABLE
  3381.  
  3382. /* Open function */
  3383. TOLUA_API int tolua_BindTerrainEdit_open (lua_State* tolua_S)
  3384. {
  3385. tolua_open(tolua_S);
  3386. tolua_reg_types(tolua_S);
  3387. tolua_module(tolua_S,NULL,0);
  3388. tolua_beginmodule(tolua_S,NULL);
  3389. tolua_function(tolua_S,"WorldToNormalized",tolua_BindTerrainEdit_WorldToNormalized00);
  3390. tolua_function(tolua_S,"NormalizedToWorld",tolua_BindTerrainEdit_NormalizedToWorld00);
  3391. tolua_function(tolua_S,"SetHeightValue",tolua_BindTerrainEdit_SetHeightValue00);
  3392. tolua_function(tolua_S,"GetHeightValue",tolua_BindTerrainEdit_GetHeightValue00);
  3393. tolua_function(tolua_S,"ApplyHeightBrush",tolua_BindTerrainEdit_ApplyHeightBrush00);
  3394. tolua_function(tolua_S,"ApplyBlendBrush",tolua_BindTerrainEdit_ApplyBlendBrush00);
  3395. tolua_function(tolua_S,"ApplyBlendBrush8",tolua_BindTerrainEdit_ApplyBlendBrush800);
  3396. tolua_function(tolua_S,"ApplyMaskBrush",tolua_BindTerrainEdit_ApplyMaskBrush00);
  3397. tolua_function(tolua_S,"ApplySmoothBrush",tolua_BindTerrainEdit_ApplySmoothBrush00);
  3398. tolua_function(tolua_S,"ApplySpeckleBrush",tolua_BindTerrainEdit_ApplySpeckleBrush00);
  3399. tolua_function(tolua_S,"SetBrushCursorHeight",tolua_BindTerrainEdit_SetBrushCursorHeight00);
  3400. tolua_function(tolua_S,"InvertMask",tolua_BindTerrainEdit_InvertMask00);
  3401. tolua_function(tolua_S,"RenderANLKernelToHeight",tolua_BindTerrainEdit_RenderANLKernelToHeight00);
  3402. #ifdef __cplusplus
  3403. tolua_cclass(tolua_S,"RasterVertex","RasterVertex","",tolua_collect_RasterVertex);
  3404. #else
  3405. tolua_cclass(tolua_S,"RasterVertex","RasterVertex","",NULL);
  3406. #endif
  3407. tolua_beginmodule(tolua_S,"RasterVertex");
  3408. tolua_variable(tolua_S,"x_",tolua_get_RasterVertex_x_,tolua_set_RasterVertex_x_);
  3409. tolua_variable(tolua_S,"y_",tolua_get_RasterVertex_y_,tolua_set_RasterVertex_y_);
  3410. tolua_variable(tolua_S,"val_",tolua_get_RasterVertex_val_,tolua_set_RasterVertex_val_);
  3411. tolua_function(tolua_S,"new",tolua_BindTerrainEdit_RasterVertex_new00);
  3412. tolua_function(tolua_S,"new_local",tolua_BindTerrainEdit_RasterVertex_new00_local);
  3413. tolua_function(tolua_S,".call",tolua_BindTerrainEdit_RasterVertex_new00_local);
  3414. tolua_function(tolua_S,"new",tolua_BindTerrainEdit_RasterVertex_new01);
  3415. tolua_function(tolua_S,"new_local",tolua_BindTerrainEdit_RasterVertex_new01_local);
  3416. tolua_function(tolua_S,".call",tolua_BindTerrainEdit_RasterVertex_new01_local);
  3417. tolua_function(tolua_S,"new",tolua_BindTerrainEdit_RasterVertex_new02);
  3418. tolua_function(tolua_S,"new_local",tolua_BindTerrainEdit_RasterVertex_new02_local);
  3419. tolua_function(tolua_S,".call",tolua_BindTerrainEdit_RasterVertex_new02_local);
  3420. tolua_function(tolua_S,"delete",tolua_BindTerrainEdit_RasterVertex_delete00);
  3421. tolua_endmodule(tolua_S);
  3422. #ifdef __cplusplus
  3423. tolua_cclass(tolua_S,"RasterVertexList","RasterVertexList","",tolua_collect_RasterVertexList);
  3424. #else
  3425. tolua_cclass(tolua_S,"RasterVertexList","RasterVertexList","",NULL);
  3426. #endif
  3427. tolua_beginmodule(tolua_S,"RasterVertexList");
  3428. tolua_function(tolua_S,"new",tolua_BindTerrainEdit_RasterVertexList_new00);
  3429. tolua_function(tolua_S,"new_local",tolua_BindTerrainEdit_RasterVertexList_new00_local);
  3430. tolua_function(tolua_S,".call",tolua_BindTerrainEdit_RasterVertexList_new00_local);
  3431. tolua_function(tolua_S,"new",tolua_BindTerrainEdit_RasterVertexList_new01);
  3432. tolua_function(tolua_S,"new_local",tolua_BindTerrainEdit_RasterVertexList_new01_local);
  3433. tolua_function(tolua_S,".call",tolua_BindTerrainEdit_RasterVertexList_new01_local);
  3434. tolua_function(tolua_S,"new",tolua_BindTerrainEdit_RasterVertexList_new02);
  3435. tolua_function(tolua_S,"new_local",tolua_BindTerrainEdit_RasterVertexList_new02_local);
  3436. tolua_function(tolua_S,".call",tolua_BindTerrainEdit_RasterVertexList_new02_local);
  3437. tolua_function(tolua_S,"new",tolua_BindTerrainEdit_RasterVertexList_new03);
  3438. tolua_function(tolua_S,"new_local",tolua_BindTerrainEdit_RasterVertexList_new03_local);
  3439. tolua_function(tolua_S,".call",tolua_BindTerrainEdit_RasterVertexList_new03_local);
  3440. tolua_function(tolua_S,"delete",tolua_BindTerrainEdit_RasterVertexList_delete00);
  3441. tolua_function(tolua_S,"size",tolua_BindTerrainEdit_RasterVertexList_size00);
  3442. tolua_function(tolua_S,"capacity",tolua_BindTerrainEdit_RasterVertexList_capacity00);
  3443. tolua_function(tolua_S,"bytes",tolua_BindTerrainEdit_RasterVertexList_bytes00);
  3444. tolua_function(tolua_S,"fill",tolua_BindTerrainEdit_RasterVertexList_fill00);
  3445. tolua_function(tolua_S,"swap",tolua_BindTerrainEdit_RasterVertexList_swap00);
  3446. tolua_function(tolua_S,"at",tolua_BindTerrainEdit_RasterVertexList_at00);
  3447. tolua_function(tolua_S,"resize",tolua_BindTerrainEdit_RasterVertexList_resize00);
  3448. tolua_function(tolua_S,"reserve",tolua_BindTerrainEdit_RasterVertexList_reserve00);
  3449. tolua_function(tolua_S,"empty",tolua_BindTerrainEdit_RasterVertexList_empty00);
  3450. tolua_function(tolua_S,"push_back",tolua_BindTerrainEdit_RasterVertexList_push_back00);
  3451. tolua_function(tolua_S,"front",tolua_BindTerrainEdit_RasterVertexList_front00);
  3452. tolua_function(tolua_S,"back",tolua_BindTerrainEdit_RasterVertexList_back00);
  3453. tolua_endmodule(tolua_S);
  3454. #ifdef __cplusplus
  3455. tolua_cclass(tolua_S,"RasterBuffer","RasterBuffer","",tolua_collect_RasterBuffer);
  3456. #else
  3457. tolua_cclass(tolua_S,"RasterBuffer","RasterBuffer","",NULL);
  3458. #endif
  3459. tolua_beginmodule(tolua_S,"RasterBuffer");
  3460. tolua_function(tolua_S,"new",tolua_BindTerrainEdit_RasterBuffer_new00);
  3461. tolua_function(tolua_S,"new_local",tolua_BindTerrainEdit_RasterBuffer_new00_local);
  3462. tolua_function(tolua_S,".call",tolua_BindTerrainEdit_RasterBuffer_new00_local);
  3463. tolua_function(tolua_S,"new",tolua_BindTerrainEdit_RasterBuffer_new01);
  3464. tolua_function(tolua_S,"new_local",tolua_BindTerrainEdit_RasterBuffer_new01_local);
  3465. tolua_function(tolua_S,".call",tolua_BindTerrainEdit_RasterBuffer_new01_local);
  3466. tolua_function(tolua_S,"delete",tolua_BindTerrainEdit_RasterBuffer_delete00);
  3467. tolua_function(tolua_S,"resize",tolua_BindTerrainEdit_RasterBuffer_resize00);
  3468. tolua_function(tolua_S,"destroy",tolua_BindTerrainEdit_RasterBuffer_destroy00);
  3469. tolua_function(tolua_S,"width",tolua_BindTerrainEdit_RasterBuffer_width00);
  3470. tolua_function(tolua_S,"height",tolua_BindTerrainEdit_RasterBuffer_height00);
  3471. tolua_function(tolua_S,"set",tolua_BindTerrainEdit_RasterBuffer_set00);
  3472. tolua_function(tolua_S,"get",tolua_BindTerrainEdit_RasterBuffer_get00);
  3473. tolua_function(tolua_S,"getRef",tolua_BindTerrainEdit_RasterBuffer_getRef00);
  3474. tolua_function(tolua_S,"getBilinear",tolua_BindTerrainEdit_RasterBuffer_getBilinear00);
  3475. tolua_function(tolua_S,"getIndexed",tolua_BindTerrainEdit_RasterBuffer_getIndexed00);
  3476. tolua_function(tolua_S,"setIndexed",tolua_BindTerrainEdit_RasterBuffer_setIndexed00);
  3477. tolua_function(tolua_S,"fill",tolua_BindTerrainEdit_RasterBuffer_fill00);
  3478. tolua_function(tolua_S,"copyFrom",tolua_BindTerrainEdit_RasterBuffer_copyFrom00);
  3479. tolua_function(tolua_S,"copyFromSub",tolua_BindTerrainEdit_RasterBuffer_copyFromSub00);
  3480. tolua_function(tolua_S,"addArray",tolua_BindTerrainEdit_RasterBuffer_addArray00);
  3481. tolua_function(tolua_S,"addArraySub",tolua_BindTerrainEdit_RasterBuffer_addArraySub00);
  3482. tolua_function(tolua_S,"subtractArray",tolua_BindTerrainEdit_RasterBuffer_subtractArray00);
  3483. tolua_function(tolua_S,"subtractArraySub",tolua_BindTerrainEdit_RasterBuffer_subtractArraySub00);
  3484. tolua_function(tolua_S,"multiplyArray",tolua_BindTerrainEdit_RasterBuffer_multiplyArray00);
  3485. tolua_function(tolua_S,"multiplyArraySub",tolua_BindTerrainEdit_RasterBuffer_multiplyArraySub00);
  3486. tolua_function(tolua_S,"scale",tolua_BindTerrainEdit_RasterBuffer_scale00);
  3487. tolua_function(tolua_S,"blendFromArrays",tolua_BindTerrainEdit_RasterBuffer_blendFromArrays00);
  3488. tolua_function(tolua_S,"selectFromArrays",tolua_BindTerrainEdit_RasterBuffer_selectFromArrays00);
  3489. tolua_function(tolua_S,"getMax",tolua_BindTerrainEdit_RasterBuffer_getMax00);
  3490. tolua_function(tolua_S,"getMin",tolua_BindTerrainEdit_RasterBuffer_getMin00);
  3491. tolua_function(tolua_S,"scaleToRange",tolua_BindTerrainEdit_RasterBuffer_scaleToRange00);
  3492. tolua_function(tolua_S,"wrapCoords",tolua_BindTerrainEdit_RasterBuffer_wrapCoords00);
  3493. tolua_function(tolua_S,"offset",tolua_BindTerrainEdit_RasterBuffer_offset00);
  3494. tolua_function(tolua_S,"flipVertical",tolua_BindTerrainEdit_RasterBuffer_flipVertical00);
  3495. tolua_function(tolua_S,"flipHorizontal",tolua_BindTerrainEdit_RasterBuffer_flipHorizontal00);
  3496. tolua_function(tolua_S,"scaleTo",tolua_BindTerrainEdit_RasterBuffer_scaleTo00);
  3497. tolua_function(tolua_S,"blur",tolua_BindTerrainEdit_RasterBuffer_blur00);
  3498. tolua_endmodule(tolua_S);
  3499. tolua_function(tolua_S,"RasterizeTriangle",tolua_BindTerrainEdit_RasterizeTriangle00);
  3500. tolua_function(tolua_S,"RasterizeQuadStrip",tolua_BindTerrainEdit_RasterizeQuadStrip00);
  3501. tolua_function(tolua_S,"BlendHeightWithRasterizedBuffer",tolua_BindTerrainEdit_BlendHeightWithRasterizedBuffer00);
  3502. tolua_function(tolua_S,"BlendColorWithRasterizedBuffer",tolua_BindTerrainEdit_BlendColorWithRasterizedBuffer00);
  3503. tolua_function(tolua_S,"BlendRasterizedBuffer8",tolua_BindTerrainEdit_BlendRasterizedBuffer800);
  3504. tolua_function(tolua_S,"BlendRasterizedBuffer8Max",tolua_BindTerrainEdit_BlendRasterizedBuffer8Max00);
  3505. tolua_function(tolua_S,"TessellateLineList",tolua_BindTerrainEdit_TessellateLineList00);
  3506. tolua_function(tolua_S,"ApplyBedFunction",tolua_BindTerrainEdit_ApplyBedFunction00);
  3507. tolua_function(tolua_S,"BuildQuadStrip",tolua_BindTerrainEdit_BuildQuadStrip00);
  3508. tolua_function(tolua_S,"BuildQuadStripVarying",tolua_BindTerrainEdit_BuildQuadStripVarying00);
  3509. tolua_function(tolua_S,"RenderANLKernelToBuffer",tolua_BindTerrainEdit_RenderANLKernelToBuffer00);
  3510. tolua_function(tolua_S,"SetHeightFromRasterBuffer",tolua_BindTerrainEdit_SetHeightFromRasterBuffer00);
  3511. tolua_function(tolua_S,"CopyImageInto",tolua_BindTerrainEdit_CopyImageInto00);
  3512. tolua_function(tolua_S,"IsPowerOfTwo",tolua_BindTerrainEdit_IsPowerOfTwo00);
  3513. tolua_function(tolua_S,"GetNextImageLevel",tolua_BindTerrainEdit_GetNextImageLevel00);
  3514. tolua_function(tolua_S,"ExtractLayerToBuffer",tolua_BindTerrainEdit_ExtractLayerToBuffer00);
  3515. tolua_function(tolua_S,"GetLayerBlend",tolua_BindTerrainEdit_GetLayerBlend00);
  3516. tolua_function(tolua_S,"SetLayerBlend",tolua_BindTerrainEdit_SetLayerBlend00);
  3517. tolua_endmodule(tolua_S);
  3518. return 1;
  3519. }
  3520.  
  3521.  
  3522. #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
  3523. TOLUA_API int luaopen_BindTerrainEdit (lua_State* tolua_S) {
  3524. return tolua_BindTerrainEdit_open(tolua_S);
  3525. };
  3526. #endif
Add Comment
Please, Sign In to add comment