EngineLuaAPI.cpp 55 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943
  1. /*
  2. ** Lua binding: Engine
  3. ** Generated automatically by tolua++-1.0.92 on 06/30/13 11:31:49.
  4. */
  5. //
  6. // Copyright (c) 2008-2013 the Urho3D project.
  7. //
  8. // Permission is hereby granted, free of charge, to any person obtaining a copy
  9. // of this software and associated documentation files (the "Software"), to deal
  10. // in the Software without restriction, including without limitation the rights
  11. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  12. // copies of the Software, and to permit persons to whom the Software is
  13. // furnished to do so, subject to the following conditions:
  14. //
  15. // The above copyright notice and this permission notice shall be included in
  16. // all copies or substantial portions of the Software.
  17. //
  18. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  19. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  20. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  21. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  22. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  23. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  24. // THE SOFTWARE.
  25. //
  26. #include "Precompiled.h"
  27. #include "tolua++.h"
  28. /* Exported function */
  29. TOLUA_API int tolua_Engine_open (lua_State* tolua_S);
  30. #define TOLUA_RELEASE
  31. #include "EngineLuaAPI.h"
  32. #include "Console.h"
  33. #include "DebugHud.h"
  34. #include "Engine.h"
  35. using namespace Urho3D;
  36. #pragma warning(disable:4800)
  37. /* function to register type */
  38. static void tolua_reg_types (lua_State* tolua_S)
  39. {
  40. tolua_usertype(tolua_S,"DebugHud");
  41. tolua_usertype(tolua_S,"XMLFile");
  42. tolua_usertype(tolua_S,"Text");
  43. tolua_usertype(tolua_S,"Engine");
  44. tolua_usertype(tolua_S,"Object");
  45. tolua_usertype(tolua_S,"Variant");
  46. tolua_usertype(tolua_S,"Console");
  47. tolua_usertype(tolua_S,"LineEdit");
  48. tolua_usertype(tolua_S,"String");
  49. tolua_usertype(tolua_S,"BorderImage");
  50. }
  51. /* method: SetDefaultStyle of class Console */
  52. #ifndef TOLUA_DISABLE_tolua_Engine_Console_SetDefaultStyle00
  53. static int tolua_Engine_Console_SetDefaultStyle00(lua_State* tolua_S)
  54. {
  55. #ifndef TOLUA_RELEASE
  56. tolua_Error tolua_err;
  57. if (
  58. !tolua_isusertype(tolua_S,1,"Console",0,&tolua_err) ||
  59. !tolua_isusertype(tolua_S,2,"XMLFile",0,&tolua_err) ||
  60. !tolua_isnoobj(tolua_S,3,&tolua_err)
  61. )
  62. goto tolua_lerror;
  63. else
  64. #endif
  65. {
  66. Console* self = (Console*) tolua_tousertype(tolua_S,1,0);
  67. XMLFile* style = ((XMLFile*) tolua_tousertype(tolua_S,2,0));
  68. #ifndef TOLUA_RELEASE
  69. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDefaultStyle'", NULL);
  70. #endif
  71. {
  72. self->SetDefaultStyle(style);
  73. }
  74. }
  75. return 0;
  76. #ifndef TOLUA_RELEASE
  77. tolua_lerror:
  78. tolua_error(tolua_S,"#ferror in function 'SetDefaultStyle'.",&tolua_err);
  79. return 0;
  80. #endif
  81. }
  82. #endif //#ifndef TOLUA_DISABLE
  83. /* method: SetVisible of class Console */
  84. #ifndef TOLUA_DISABLE_tolua_Engine_Console_SetVisible00
  85. static int tolua_Engine_Console_SetVisible00(lua_State* tolua_S)
  86. {
  87. #ifndef TOLUA_RELEASE
  88. tolua_Error tolua_err;
  89. if (
  90. !tolua_isusertype(tolua_S,1,"Console",0,&tolua_err) ||
  91. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  92. !tolua_isnoobj(tolua_S,3,&tolua_err)
  93. )
  94. goto tolua_lerror;
  95. else
  96. #endif
  97. {
  98. Console* self = (Console*) tolua_tousertype(tolua_S,1,0);
  99. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  100. #ifndef TOLUA_RELEASE
  101. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetVisible'", NULL);
  102. #endif
  103. {
  104. self->SetVisible(enable);
  105. }
  106. }
  107. return 0;
  108. #ifndef TOLUA_RELEASE
  109. tolua_lerror:
  110. tolua_error(tolua_S,"#ferror in function 'SetVisible'.",&tolua_err);
  111. return 0;
  112. #endif
  113. }
  114. #endif //#ifndef TOLUA_DISABLE
  115. /* method: Toggle of class Console */
  116. #ifndef TOLUA_DISABLE_tolua_Engine_Console_Toggle00
  117. static int tolua_Engine_Console_Toggle00(lua_State* tolua_S)
  118. {
  119. #ifndef TOLUA_RELEASE
  120. tolua_Error tolua_err;
  121. if (
  122. !tolua_isusertype(tolua_S,1,"Console",0,&tolua_err) ||
  123. !tolua_isnoobj(tolua_S,2,&tolua_err)
  124. )
  125. goto tolua_lerror;
  126. else
  127. #endif
  128. {
  129. Console* self = (Console*) tolua_tousertype(tolua_S,1,0);
  130. #ifndef TOLUA_RELEASE
  131. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Toggle'", NULL);
  132. #endif
  133. {
  134. self->Toggle();
  135. }
  136. }
  137. return 0;
  138. #ifndef TOLUA_RELEASE
  139. tolua_lerror:
  140. tolua_error(tolua_S,"#ferror in function 'Toggle'.",&tolua_err);
  141. return 0;
  142. #endif
  143. }
  144. #endif //#ifndef TOLUA_DISABLE
  145. /* method: SetNumRows of class Console */
  146. #ifndef TOLUA_DISABLE_tolua_Engine_Console_SetNumRows00
  147. static int tolua_Engine_Console_SetNumRows00(lua_State* tolua_S)
  148. {
  149. #ifndef TOLUA_RELEASE
  150. tolua_Error tolua_err;
  151. if (
  152. !tolua_isusertype(tolua_S,1,"Console",0,&tolua_err) ||
  153. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  154. !tolua_isnoobj(tolua_S,3,&tolua_err)
  155. )
  156. goto tolua_lerror;
  157. else
  158. #endif
  159. {
  160. Console* self = (Console*) tolua_tousertype(tolua_S,1,0);
  161. unsigned rows = ((unsigned) tolua_tonumber(tolua_S,2,0));
  162. #ifndef TOLUA_RELEASE
  163. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetNumRows'", NULL);
  164. #endif
  165. {
  166. self->SetNumRows(rows);
  167. }
  168. }
  169. return 0;
  170. #ifndef TOLUA_RELEASE
  171. tolua_lerror:
  172. tolua_error(tolua_S,"#ferror in function 'SetNumRows'.",&tolua_err);
  173. return 0;
  174. #endif
  175. }
  176. #endif //#ifndef TOLUA_DISABLE
  177. /* method: SetNumHistoryRows of class Console */
  178. #ifndef TOLUA_DISABLE_tolua_Engine_Console_SetNumHistoryRows00
  179. static int tolua_Engine_Console_SetNumHistoryRows00(lua_State* tolua_S)
  180. {
  181. #ifndef TOLUA_RELEASE
  182. tolua_Error tolua_err;
  183. if (
  184. !tolua_isusertype(tolua_S,1,"Console",0,&tolua_err) ||
  185. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  186. !tolua_isnoobj(tolua_S,3,&tolua_err)
  187. )
  188. goto tolua_lerror;
  189. else
  190. #endif
  191. {
  192. Console* self = (Console*) tolua_tousertype(tolua_S,1,0);
  193. unsigned rows = ((unsigned) tolua_tonumber(tolua_S,2,0));
  194. #ifndef TOLUA_RELEASE
  195. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetNumHistoryRows'", NULL);
  196. #endif
  197. {
  198. self->SetNumHistoryRows(rows);
  199. }
  200. }
  201. return 0;
  202. #ifndef TOLUA_RELEASE
  203. tolua_lerror:
  204. tolua_error(tolua_S,"#ferror in function 'SetNumHistoryRows'.",&tolua_err);
  205. return 0;
  206. #endif
  207. }
  208. #endif //#ifndef TOLUA_DISABLE
  209. /* method: UpdateElements of class Console */
  210. #ifndef TOLUA_DISABLE_tolua_Engine_Console_UpdateElements00
  211. static int tolua_Engine_Console_UpdateElements00(lua_State* tolua_S)
  212. {
  213. #ifndef TOLUA_RELEASE
  214. tolua_Error tolua_err;
  215. if (
  216. !tolua_isusertype(tolua_S,1,"Console",0,&tolua_err) ||
  217. !tolua_isnoobj(tolua_S,2,&tolua_err)
  218. )
  219. goto tolua_lerror;
  220. else
  221. #endif
  222. {
  223. Console* self = (Console*) tolua_tousertype(tolua_S,1,0);
  224. #ifndef TOLUA_RELEASE
  225. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'UpdateElements'", NULL);
  226. #endif
  227. {
  228. self->UpdateElements();
  229. }
  230. }
  231. return 0;
  232. #ifndef TOLUA_RELEASE
  233. tolua_lerror:
  234. tolua_error(tolua_S,"#ferror in function 'UpdateElements'.",&tolua_err);
  235. return 0;
  236. #endif
  237. }
  238. #endif //#ifndef TOLUA_DISABLE
  239. /* method: GetDefaultStyle of class Console */
  240. #ifndef TOLUA_DISABLE_tolua_Engine_Console_GetDefaultStyle00
  241. static int tolua_Engine_Console_GetDefaultStyle00(lua_State* tolua_S)
  242. {
  243. #ifndef TOLUA_RELEASE
  244. tolua_Error tolua_err;
  245. if (
  246. !tolua_isusertype(tolua_S,1,"const Console",0,&tolua_err) ||
  247. !tolua_isnoobj(tolua_S,2,&tolua_err)
  248. )
  249. goto tolua_lerror;
  250. else
  251. #endif
  252. {
  253. const Console* self = (const Console*) tolua_tousertype(tolua_S,1,0);
  254. #ifndef TOLUA_RELEASE
  255. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDefaultStyle'", NULL);
  256. #endif
  257. {
  258. XMLFile* tolua_ret = (XMLFile*) self->GetDefaultStyle();
  259. tolua_pushusertype(tolua_S,(void*)tolua_ret,"XMLFile");
  260. }
  261. }
  262. return 1;
  263. #ifndef TOLUA_RELEASE
  264. tolua_lerror:
  265. tolua_error(tolua_S,"#ferror in function 'GetDefaultStyle'.",&tolua_err);
  266. return 0;
  267. #endif
  268. }
  269. #endif //#ifndef TOLUA_DISABLE
  270. /* method: GetBackground of class Console */
  271. #ifndef TOLUA_DISABLE_tolua_Engine_Console_GetBackground00
  272. static int tolua_Engine_Console_GetBackground00(lua_State* tolua_S)
  273. {
  274. #ifndef TOLUA_RELEASE
  275. tolua_Error tolua_err;
  276. if (
  277. !tolua_isusertype(tolua_S,1,"const Console",0,&tolua_err) ||
  278. !tolua_isnoobj(tolua_S,2,&tolua_err)
  279. )
  280. goto tolua_lerror;
  281. else
  282. #endif
  283. {
  284. const Console* self = (const Console*) tolua_tousertype(tolua_S,1,0);
  285. #ifndef TOLUA_RELEASE
  286. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBackground'", NULL);
  287. #endif
  288. {
  289. BorderImage* tolua_ret = (BorderImage*) self->GetBackground();
  290. tolua_pushusertype(tolua_S,(void*)tolua_ret,"BorderImage");
  291. }
  292. }
  293. return 1;
  294. #ifndef TOLUA_RELEASE
  295. tolua_lerror:
  296. tolua_error(tolua_S,"#ferror in function 'GetBackground'.",&tolua_err);
  297. return 0;
  298. #endif
  299. }
  300. #endif //#ifndef TOLUA_DISABLE
  301. /* method: GetLineEdit of class Console */
  302. #ifndef TOLUA_DISABLE_tolua_Engine_Console_GetLineEdit00
  303. static int tolua_Engine_Console_GetLineEdit00(lua_State* tolua_S)
  304. {
  305. #ifndef TOLUA_RELEASE
  306. tolua_Error tolua_err;
  307. if (
  308. !tolua_isusertype(tolua_S,1,"const Console",0,&tolua_err) ||
  309. !tolua_isnoobj(tolua_S,2,&tolua_err)
  310. )
  311. goto tolua_lerror;
  312. else
  313. #endif
  314. {
  315. const Console* self = (const Console*) tolua_tousertype(tolua_S,1,0);
  316. #ifndef TOLUA_RELEASE
  317. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLineEdit'", NULL);
  318. #endif
  319. {
  320. LineEdit* tolua_ret = (LineEdit*) self->GetLineEdit();
  321. tolua_pushusertype(tolua_S,(void*)tolua_ret,"LineEdit");
  322. }
  323. }
  324. return 1;
  325. #ifndef TOLUA_RELEASE
  326. tolua_lerror:
  327. tolua_error(tolua_S,"#ferror in function 'GetLineEdit'.",&tolua_err);
  328. return 0;
  329. #endif
  330. }
  331. #endif //#ifndef TOLUA_DISABLE
  332. /* method: IsVisible of class Console */
  333. #ifndef TOLUA_DISABLE_tolua_Engine_Console_IsVisible00
  334. static int tolua_Engine_Console_IsVisible00(lua_State* tolua_S)
  335. {
  336. #ifndef TOLUA_RELEASE
  337. tolua_Error tolua_err;
  338. if (
  339. !tolua_isusertype(tolua_S,1,"const Console",0,&tolua_err) ||
  340. !tolua_isnoobj(tolua_S,2,&tolua_err)
  341. )
  342. goto tolua_lerror;
  343. else
  344. #endif
  345. {
  346. const Console* self = (const Console*) tolua_tousertype(tolua_S,1,0);
  347. #ifndef TOLUA_RELEASE
  348. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsVisible'", NULL);
  349. #endif
  350. {
  351. bool tolua_ret = (bool) self->IsVisible();
  352. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  353. }
  354. }
  355. return 1;
  356. #ifndef TOLUA_RELEASE
  357. tolua_lerror:
  358. tolua_error(tolua_S,"#ferror in function 'IsVisible'.",&tolua_err);
  359. return 0;
  360. #endif
  361. }
  362. #endif //#ifndef TOLUA_DISABLE
  363. /* method: GetNumRows of class Console */
  364. #ifndef TOLUA_DISABLE_tolua_Engine_Console_GetNumRows00
  365. static int tolua_Engine_Console_GetNumRows00(lua_State* tolua_S)
  366. {
  367. #ifndef TOLUA_RELEASE
  368. tolua_Error tolua_err;
  369. if (
  370. !tolua_isusertype(tolua_S,1,"const Console",0,&tolua_err) ||
  371. !tolua_isnoobj(tolua_S,2,&tolua_err)
  372. )
  373. goto tolua_lerror;
  374. else
  375. #endif
  376. {
  377. const Console* self = (const Console*) tolua_tousertype(tolua_S,1,0);
  378. #ifndef TOLUA_RELEASE
  379. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumRows'", NULL);
  380. #endif
  381. {
  382. unsigned tolua_ret = (unsigned) self->GetNumRows();
  383. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  384. }
  385. }
  386. return 1;
  387. #ifndef TOLUA_RELEASE
  388. tolua_lerror:
  389. tolua_error(tolua_S,"#ferror in function 'GetNumRows'.",&tolua_err);
  390. return 0;
  391. #endif
  392. }
  393. #endif //#ifndef TOLUA_DISABLE
  394. /* method: GetNumHistoryRows of class Console */
  395. #ifndef TOLUA_DISABLE_tolua_Engine_Console_GetNumHistoryRows00
  396. static int tolua_Engine_Console_GetNumHistoryRows00(lua_State* tolua_S)
  397. {
  398. #ifndef TOLUA_RELEASE
  399. tolua_Error tolua_err;
  400. if (
  401. !tolua_isusertype(tolua_S,1,"const Console",0,&tolua_err) ||
  402. !tolua_isnoobj(tolua_S,2,&tolua_err)
  403. )
  404. goto tolua_lerror;
  405. else
  406. #endif
  407. {
  408. const Console* self = (const Console*) tolua_tousertype(tolua_S,1,0);
  409. #ifndef TOLUA_RELEASE
  410. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumHistoryRows'", NULL);
  411. #endif
  412. {
  413. unsigned tolua_ret = (unsigned) self->GetNumHistoryRows();
  414. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  415. }
  416. }
  417. return 1;
  418. #ifndef TOLUA_RELEASE
  419. tolua_lerror:
  420. tolua_error(tolua_S,"#ferror in function 'GetNumHistoryRows'.",&tolua_err);
  421. return 0;
  422. #endif
  423. }
  424. #endif //#ifndef TOLUA_DISABLE
  425. /* method: GetHistoryPosition of class Console */
  426. #ifndef TOLUA_DISABLE_tolua_Engine_Console_GetHistoryPosition00
  427. static int tolua_Engine_Console_GetHistoryPosition00(lua_State* tolua_S)
  428. {
  429. #ifndef TOLUA_RELEASE
  430. tolua_Error tolua_err;
  431. if (
  432. !tolua_isusertype(tolua_S,1,"const Console",0,&tolua_err) ||
  433. !tolua_isnoobj(tolua_S,2,&tolua_err)
  434. )
  435. goto tolua_lerror;
  436. else
  437. #endif
  438. {
  439. const Console* self = (const Console*) tolua_tousertype(tolua_S,1,0);
  440. #ifndef TOLUA_RELEASE
  441. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHistoryPosition'", NULL);
  442. #endif
  443. {
  444. unsigned tolua_ret = (unsigned) self->GetHistoryPosition();
  445. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  446. }
  447. }
  448. return 1;
  449. #ifndef TOLUA_RELEASE
  450. tolua_lerror:
  451. tolua_error(tolua_S,"#ferror in function 'GetHistoryPosition'.",&tolua_err);
  452. return 0;
  453. #endif
  454. }
  455. #endif //#ifndef TOLUA_DISABLE
  456. /* method: GetHistoryRow of class Console */
  457. #ifndef TOLUA_DISABLE_tolua_Engine_Console_GetHistoryRow00
  458. static int tolua_Engine_Console_GetHistoryRow00(lua_State* tolua_S)
  459. {
  460. #ifndef TOLUA_RELEASE
  461. tolua_Error tolua_err;
  462. if (
  463. !tolua_isusertype(tolua_S,1,"const Console",0,&tolua_err) ||
  464. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  465. !tolua_isnoobj(tolua_S,3,&tolua_err)
  466. )
  467. goto tolua_lerror;
  468. else
  469. #endif
  470. {
  471. const Console* self = (const Console*) tolua_tousertype(tolua_S,1,0);
  472. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  473. #ifndef TOLUA_RELEASE
  474. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHistoryRow'", NULL);
  475. #endif
  476. {
  477. const String& tolua_ret = (const String&) self->GetHistoryRow(index);
  478. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  479. }
  480. }
  481. return 1;
  482. #ifndef TOLUA_RELEASE
  483. tolua_lerror:
  484. tolua_error(tolua_S,"#ferror in function 'GetHistoryRow'.",&tolua_err);
  485. return 0;
  486. #endif
  487. }
  488. #endif //#ifndef TOLUA_DISABLE
  489. /* function: GetConsole */
  490. #ifndef TOLUA_DISABLE_tolua_Engine_GetConsole00
  491. static int tolua_Engine_GetConsole00(lua_State* tolua_S)
  492. {
  493. #ifndef TOLUA_RELEASE
  494. tolua_Error tolua_err;
  495. if (
  496. !tolua_isnoobj(tolua_S,1,&tolua_err)
  497. )
  498. goto tolua_lerror;
  499. else
  500. #endif
  501. {
  502. {
  503. Console* tolua_ret = (Console*) GetConsole();
  504. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Console");
  505. }
  506. }
  507. return 1;
  508. #ifndef TOLUA_RELEASE
  509. tolua_lerror:
  510. tolua_error(tolua_S,"#ferror in function 'GetConsole'.",&tolua_err);
  511. return 0;
  512. #endif
  513. }
  514. #endif //#ifndef TOLUA_DISABLE
  515. /* get function: DEBUGHUD_SHOW_NONE */
  516. #ifndef TOLUA_DISABLE_tolua_get_DEBUGHUD_SHOW_NONE
  517. static int tolua_get_DEBUGHUD_SHOW_NONE(lua_State* tolua_S)
  518. {
  519. tolua_pushnumber(tolua_S,(lua_Number)DEBUGHUD_SHOW_NONE);
  520. return 1;
  521. }
  522. #endif //#ifndef TOLUA_DISABLE
  523. /* get function: DEBUGHUD_SHOW_STATS */
  524. #ifndef TOLUA_DISABLE_tolua_get_DEBUGHUD_SHOW_STATS
  525. static int tolua_get_DEBUGHUD_SHOW_STATS(lua_State* tolua_S)
  526. {
  527. tolua_pushnumber(tolua_S,(lua_Number)DEBUGHUD_SHOW_STATS);
  528. return 1;
  529. }
  530. #endif //#ifndef TOLUA_DISABLE
  531. /* get function: DEBUGHUD_SHOW_MODE */
  532. #ifndef TOLUA_DISABLE_tolua_get_DEBUGHUD_SHOW_MODE
  533. static int tolua_get_DEBUGHUD_SHOW_MODE(lua_State* tolua_S)
  534. {
  535. tolua_pushnumber(tolua_S,(lua_Number)DEBUGHUD_SHOW_MODE);
  536. return 1;
  537. }
  538. #endif //#ifndef TOLUA_DISABLE
  539. /* get function: DEBUGHUD_SHOW_PROFILER */
  540. #ifndef TOLUA_DISABLE_tolua_get_DEBUGHUD_SHOW_PROFILER
  541. static int tolua_get_DEBUGHUD_SHOW_PROFILER(lua_State* tolua_S)
  542. {
  543. tolua_pushnumber(tolua_S,(lua_Number)DEBUGHUD_SHOW_PROFILER);
  544. return 1;
  545. }
  546. #endif //#ifndef TOLUA_DISABLE
  547. /* get function: DEBUGHUD_SHOW_ALL */
  548. #ifndef TOLUA_DISABLE_tolua_get_DEBUGHUD_SHOW_ALL
  549. static int tolua_get_DEBUGHUD_SHOW_ALL(lua_State* tolua_S)
  550. {
  551. tolua_pushnumber(tolua_S,(lua_Number)DEBUGHUD_SHOW_ALL);
  552. return 1;
  553. }
  554. #endif //#ifndef TOLUA_DISABLE
  555. /* method: Update of class DebugHud */
  556. #ifndef TOLUA_DISABLE_tolua_Engine_DebugHud_Update00
  557. static int tolua_Engine_DebugHud_Update00(lua_State* tolua_S)
  558. {
  559. #ifndef TOLUA_RELEASE
  560. tolua_Error tolua_err;
  561. if (
  562. !tolua_isusertype(tolua_S,1,"DebugHud",0,&tolua_err) ||
  563. !tolua_isnoobj(tolua_S,2,&tolua_err)
  564. )
  565. goto tolua_lerror;
  566. else
  567. #endif
  568. {
  569. DebugHud* self = (DebugHud*) tolua_tousertype(tolua_S,1,0);
  570. #ifndef TOLUA_RELEASE
  571. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Update'", NULL);
  572. #endif
  573. {
  574. self->Update();
  575. }
  576. }
  577. return 0;
  578. #ifndef TOLUA_RELEASE
  579. tolua_lerror:
  580. tolua_error(tolua_S,"#ferror in function 'Update'.",&tolua_err);
  581. return 0;
  582. #endif
  583. }
  584. #endif //#ifndef TOLUA_DISABLE
  585. /* method: SetDefaultStyle of class DebugHud */
  586. #ifndef TOLUA_DISABLE_tolua_Engine_DebugHud_SetDefaultStyle00
  587. static int tolua_Engine_DebugHud_SetDefaultStyle00(lua_State* tolua_S)
  588. {
  589. #ifndef TOLUA_RELEASE
  590. tolua_Error tolua_err;
  591. if (
  592. !tolua_isusertype(tolua_S,1,"DebugHud",0,&tolua_err) ||
  593. !tolua_isusertype(tolua_S,2,"XMLFile",0,&tolua_err) ||
  594. !tolua_isnoobj(tolua_S,3,&tolua_err)
  595. )
  596. goto tolua_lerror;
  597. else
  598. #endif
  599. {
  600. DebugHud* self = (DebugHud*) tolua_tousertype(tolua_S,1,0);
  601. XMLFile* style = ((XMLFile*) tolua_tousertype(tolua_S,2,0));
  602. #ifndef TOLUA_RELEASE
  603. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDefaultStyle'", NULL);
  604. #endif
  605. {
  606. self->SetDefaultStyle(style);
  607. }
  608. }
  609. return 0;
  610. #ifndef TOLUA_RELEASE
  611. tolua_lerror:
  612. tolua_error(tolua_S,"#ferror in function 'SetDefaultStyle'.",&tolua_err);
  613. return 0;
  614. #endif
  615. }
  616. #endif //#ifndef TOLUA_DISABLE
  617. /* method: SetMode of class DebugHud */
  618. #ifndef TOLUA_DISABLE_tolua_Engine_DebugHud_SetMode00
  619. static int tolua_Engine_DebugHud_SetMode00(lua_State* tolua_S)
  620. {
  621. #ifndef TOLUA_RELEASE
  622. tolua_Error tolua_err;
  623. if (
  624. !tolua_isusertype(tolua_S,1,"DebugHud",0,&tolua_err) ||
  625. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  626. !tolua_isnoobj(tolua_S,3,&tolua_err)
  627. )
  628. goto tolua_lerror;
  629. else
  630. #endif
  631. {
  632. DebugHud* self = (DebugHud*) tolua_tousertype(tolua_S,1,0);
  633. unsigned mode = ((unsigned) tolua_tonumber(tolua_S,2,0));
  634. #ifndef TOLUA_RELEASE
  635. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMode'", NULL);
  636. #endif
  637. {
  638. self->SetMode(mode);
  639. }
  640. }
  641. return 0;
  642. #ifndef TOLUA_RELEASE
  643. tolua_lerror:
  644. tolua_error(tolua_S,"#ferror in function 'SetMode'.",&tolua_err);
  645. return 0;
  646. #endif
  647. }
  648. #endif //#ifndef TOLUA_DISABLE
  649. /* method: SetProfilerMaxDepth of class DebugHud */
  650. #ifndef TOLUA_DISABLE_tolua_Engine_DebugHud_SetProfilerMaxDepth00
  651. static int tolua_Engine_DebugHud_SetProfilerMaxDepth00(lua_State* tolua_S)
  652. {
  653. #ifndef TOLUA_RELEASE
  654. tolua_Error tolua_err;
  655. if (
  656. !tolua_isusertype(tolua_S,1,"DebugHud",0,&tolua_err) ||
  657. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  658. !tolua_isnoobj(tolua_S,3,&tolua_err)
  659. )
  660. goto tolua_lerror;
  661. else
  662. #endif
  663. {
  664. DebugHud* self = (DebugHud*) tolua_tousertype(tolua_S,1,0);
  665. unsigned depth = ((unsigned) tolua_tonumber(tolua_S,2,0));
  666. #ifndef TOLUA_RELEASE
  667. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetProfilerMaxDepth'", NULL);
  668. #endif
  669. {
  670. self->SetProfilerMaxDepth(depth);
  671. }
  672. }
  673. return 0;
  674. #ifndef TOLUA_RELEASE
  675. tolua_lerror:
  676. tolua_error(tolua_S,"#ferror in function 'SetProfilerMaxDepth'.",&tolua_err);
  677. return 0;
  678. #endif
  679. }
  680. #endif //#ifndef TOLUA_DISABLE
  681. /* method: SetProfilerInterval of class DebugHud */
  682. #ifndef TOLUA_DISABLE_tolua_Engine_DebugHud_SetProfilerInterval00
  683. static int tolua_Engine_DebugHud_SetProfilerInterval00(lua_State* tolua_S)
  684. {
  685. #ifndef TOLUA_RELEASE
  686. tolua_Error tolua_err;
  687. if (
  688. !tolua_isusertype(tolua_S,1,"DebugHud",0,&tolua_err) ||
  689. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  690. !tolua_isnoobj(tolua_S,3,&tolua_err)
  691. )
  692. goto tolua_lerror;
  693. else
  694. #endif
  695. {
  696. DebugHud* self = (DebugHud*) tolua_tousertype(tolua_S,1,0);
  697. float interval = ((float) tolua_tonumber(tolua_S,2,0));
  698. #ifndef TOLUA_RELEASE
  699. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetProfilerInterval'", NULL);
  700. #endif
  701. {
  702. self->SetProfilerInterval(interval);
  703. }
  704. }
  705. return 0;
  706. #ifndef TOLUA_RELEASE
  707. tolua_lerror:
  708. tolua_error(tolua_S,"#ferror in function 'SetProfilerInterval'.",&tolua_err);
  709. return 0;
  710. #endif
  711. }
  712. #endif //#ifndef TOLUA_DISABLE
  713. /* method: SetUseRendererStats of class DebugHud */
  714. #ifndef TOLUA_DISABLE_tolua_Engine_DebugHud_SetUseRendererStats00
  715. static int tolua_Engine_DebugHud_SetUseRendererStats00(lua_State* tolua_S)
  716. {
  717. #ifndef TOLUA_RELEASE
  718. tolua_Error tolua_err;
  719. if (
  720. !tolua_isusertype(tolua_S,1,"DebugHud",0,&tolua_err) ||
  721. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  722. !tolua_isnoobj(tolua_S,3,&tolua_err)
  723. )
  724. goto tolua_lerror;
  725. else
  726. #endif
  727. {
  728. DebugHud* self = (DebugHud*) tolua_tousertype(tolua_S,1,0);
  729. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  730. #ifndef TOLUA_RELEASE
  731. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetUseRendererStats'", NULL);
  732. #endif
  733. {
  734. self->SetUseRendererStats(enable);
  735. }
  736. }
  737. return 0;
  738. #ifndef TOLUA_RELEASE
  739. tolua_lerror:
  740. tolua_error(tolua_S,"#ferror in function 'SetUseRendererStats'.",&tolua_err);
  741. return 0;
  742. #endif
  743. }
  744. #endif //#ifndef TOLUA_DISABLE
  745. /* method: Toggle of class DebugHud */
  746. #ifndef TOLUA_DISABLE_tolua_Engine_DebugHud_Toggle00
  747. static int tolua_Engine_DebugHud_Toggle00(lua_State* tolua_S)
  748. {
  749. #ifndef TOLUA_RELEASE
  750. tolua_Error tolua_err;
  751. if (
  752. !tolua_isusertype(tolua_S,1,"DebugHud",0,&tolua_err) ||
  753. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  754. !tolua_isnoobj(tolua_S,3,&tolua_err)
  755. )
  756. goto tolua_lerror;
  757. else
  758. #endif
  759. {
  760. DebugHud* self = (DebugHud*) tolua_tousertype(tolua_S,1,0);
  761. unsigned mode = ((unsigned) tolua_tonumber(tolua_S,2,0));
  762. #ifndef TOLUA_RELEASE
  763. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Toggle'", NULL);
  764. #endif
  765. {
  766. self->Toggle(mode);
  767. }
  768. }
  769. return 0;
  770. #ifndef TOLUA_RELEASE
  771. tolua_lerror:
  772. tolua_error(tolua_S,"#ferror in function 'Toggle'.",&tolua_err);
  773. return 0;
  774. #endif
  775. }
  776. #endif //#ifndef TOLUA_DISABLE
  777. /* method: ToggleAll of class DebugHud */
  778. #ifndef TOLUA_DISABLE_tolua_Engine_DebugHud_ToggleAll00
  779. static int tolua_Engine_DebugHud_ToggleAll00(lua_State* tolua_S)
  780. {
  781. #ifndef TOLUA_RELEASE
  782. tolua_Error tolua_err;
  783. if (
  784. !tolua_isusertype(tolua_S,1,"DebugHud",0,&tolua_err) ||
  785. !tolua_isnoobj(tolua_S,2,&tolua_err)
  786. )
  787. goto tolua_lerror;
  788. else
  789. #endif
  790. {
  791. DebugHud* self = (DebugHud*) tolua_tousertype(tolua_S,1,0);
  792. #ifndef TOLUA_RELEASE
  793. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ToggleAll'", NULL);
  794. #endif
  795. {
  796. self->ToggleAll();
  797. }
  798. }
  799. return 0;
  800. #ifndef TOLUA_RELEASE
  801. tolua_lerror:
  802. tolua_error(tolua_S,"#ferror in function 'ToggleAll'.",&tolua_err);
  803. return 0;
  804. #endif
  805. }
  806. #endif //#ifndef TOLUA_DISABLE
  807. /* method: GetDefaultStyle of class DebugHud */
  808. #ifndef TOLUA_DISABLE_tolua_Engine_DebugHud_GetDefaultStyle00
  809. static int tolua_Engine_DebugHud_GetDefaultStyle00(lua_State* tolua_S)
  810. {
  811. #ifndef TOLUA_RELEASE
  812. tolua_Error tolua_err;
  813. if (
  814. !tolua_isusertype(tolua_S,1,"const DebugHud",0,&tolua_err) ||
  815. !tolua_isnoobj(tolua_S,2,&tolua_err)
  816. )
  817. goto tolua_lerror;
  818. else
  819. #endif
  820. {
  821. const DebugHud* self = (const DebugHud*) tolua_tousertype(tolua_S,1,0);
  822. #ifndef TOLUA_RELEASE
  823. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDefaultStyle'", NULL);
  824. #endif
  825. {
  826. XMLFile* tolua_ret = (XMLFile*) self->GetDefaultStyle();
  827. tolua_pushusertype(tolua_S,(void*)tolua_ret,"XMLFile");
  828. }
  829. }
  830. return 1;
  831. #ifndef TOLUA_RELEASE
  832. tolua_lerror:
  833. tolua_error(tolua_S,"#ferror in function 'GetDefaultStyle'.",&tolua_err);
  834. return 0;
  835. #endif
  836. }
  837. #endif //#ifndef TOLUA_DISABLE
  838. /* method: GetStatsText of class DebugHud */
  839. #ifndef TOLUA_DISABLE_tolua_Engine_DebugHud_GetStatsText00
  840. static int tolua_Engine_DebugHud_GetStatsText00(lua_State* tolua_S)
  841. {
  842. #ifndef TOLUA_RELEASE
  843. tolua_Error tolua_err;
  844. if (
  845. !tolua_isusertype(tolua_S,1,"const DebugHud",0,&tolua_err) ||
  846. !tolua_isnoobj(tolua_S,2,&tolua_err)
  847. )
  848. goto tolua_lerror;
  849. else
  850. #endif
  851. {
  852. const DebugHud* self = (const DebugHud*) tolua_tousertype(tolua_S,1,0);
  853. #ifndef TOLUA_RELEASE
  854. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetStatsText'", NULL);
  855. #endif
  856. {
  857. Text* tolua_ret = (Text*) self->GetStatsText();
  858. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Text");
  859. }
  860. }
  861. return 1;
  862. #ifndef TOLUA_RELEASE
  863. tolua_lerror:
  864. tolua_error(tolua_S,"#ferror in function 'GetStatsText'.",&tolua_err);
  865. return 0;
  866. #endif
  867. }
  868. #endif //#ifndef TOLUA_DISABLE
  869. /* method: GetModeText of class DebugHud */
  870. #ifndef TOLUA_DISABLE_tolua_Engine_DebugHud_GetModeText00
  871. static int tolua_Engine_DebugHud_GetModeText00(lua_State* tolua_S)
  872. {
  873. #ifndef TOLUA_RELEASE
  874. tolua_Error tolua_err;
  875. if (
  876. !tolua_isusertype(tolua_S,1,"const DebugHud",0,&tolua_err) ||
  877. !tolua_isnoobj(tolua_S,2,&tolua_err)
  878. )
  879. goto tolua_lerror;
  880. else
  881. #endif
  882. {
  883. const DebugHud* self = (const DebugHud*) tolua_tousertype(tolua_S,1,0);
  884. #ifndef TOLUA_RELEASE
  885. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetModeText'", NULL);
  886. #endif
  887. {
  888. Text* tolua_ret = (Text*) self->GetModeText();
  889. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Text");
  890. }
  891. }
  892. return 1;
  893. #ifndef TOLUA_RELEASE
  894. tolua_lerror:
  895. tolua_error(tolua_S,"#ferror in function 'GetModeText'.",&tolua_err);
  896. return 0;
  897. #endif
  898. }
  899. #endif //#ifndef TOLUA_DISABLE
  900. /* method: GetProfilerText of class DebugHud */
  901. #ifndef TOLUA_DISABLE_tolua_Engine_DebugHud_GetProfilerText00
  902. static int tolua_Engine_DebugHud_GetProfilerText00(lua_State* tolua_S)
  903. {
  904. #ifndef TOLUA_RELEASE
  905. tolua_Error tolua_err;
  906. if (
  907. !tolua_isusertype(tolua_S,1,"const DebugHud",0,&tolua_err) ||
  908. !tolua_isnoobj(tolua_S,2,&tolua_err)
  909. )
  910. goto tolua_lerror;
  911. else
  912. #endif
  913. {
  914. const DebugHud* self = (const DebugHud*) tolua_tousertype(tolua_S,1,0);
  915. #ifndef TOLUA_RELEASE
  916. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetProfilerText'", NULL);
  917. #endif
  918. {
  919. Text* tolua_ret = (Text*) self->GetProfilerText();
  920. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Text");
  921. }
  922. }
  923. return 1;
  924. #ifndef TOLUA_RELEASE
  925. tolua_lerror:
  926. tolua_error(tolua_S,"#ferror in function 'GetProfilerText'.",&tolua_err);
  927. return 0;
  928. #endif
  929. }
  930. #endif //#ifndef TOLUA_DISABLE
  931. /* method: GetMode of class DebugHud */
  932. #ifndef TOLUA_DISABLE_tolua_Engine_DebugHud_GetMode00
  933. static int tolua_Engine_DebugHud_GetMode00(lua_State* tolua_S)
  934. {
  935. #ifndef TOLUA_RELEASE
  936. tolua_Error tolua_err;
  937. if (
  938. !tolua_isusertype(tolua_S,1,"const DebugHud",0,&tolua_err) ||
  939. !tolua_isnoobj(tolua_S,2,&tolua_err)
  940. )
  941. goto tolua_lerror;
  942. else
  943. #endif
  944. {
  945. const DebugHud* self = (const DebugHud*) tolua_tousertype(tolua_S,1,0);
  946. #ifndef TOLUA_RELEASE
  947. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMode'", NULL);
  948. #endif
  949. {
  950. unsigned tolua_ret = (unsigned) self->GetMode();
  951. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  952. }
  953. }
  954. return 1;
  955. #ifndef TOLUA_RELEASE
  956. tolua_lerror:
  957. tolua_error(tolua_S,"#ferror in function 'GetMode'.",&tolua_err);
  958. return 0;
  959. #endif
  960. }
  961. #endif //#ifndef TOLUA_DISABLE
  962. /* method: GetProfilerMaxDepth of class DebugHud */
  963. #ifndef TOLUA_DISABLE_tolua_Engine_DebugHud_GetProfilerMaxDepth00
  964. static int tolua_Engine_DebugHud_GetProfilerMaxDepth00(lua_State* tolua_S)
  965. {
  966. #ifndef TOLUA_RELEASE
  967. tolua_Error tolua_err;
  968. if (
  969. !tolua_isusertype(tolua_S,1,"const DebugHud",0,&tolua_err) ||
  970. !tolua_isnoobj(tolua_S,2,&tolua_err)
  971. )
  972. goto tolua_lerror;
  973. else
  974. #endif
  975. {
  976. const DebugHud* self = (const DebugHud*) tolua_tousertype(tolua_S,1,0);
  977. #ifndef TOLUA_RELEASE
  978. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetProfilerMaxDepth'", NULL);
  979. #endif
  980. {
  981. unsigned tolua_ret = (unsigned) self->GetProfilerMaxDepth();
  982. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  983. }
  984. }
  985. return 1;
  986. #ifndef TOLUA_RELEASE
  987. tolua_lerror:
  988. tolua_error(tolua_S,"#ferror in function 'GetProfilerMaxDepth'.",&tolua_err);
  989. return 0;
  990. #endif
  991. }
  992. #endif //#ifndef TOLUA_DISABLE
  993. /* method: GetProfilerInterval of class DebugHud */
  994. #ifndef TOLUA_DISABLE_tolua_Engine_DebugHud_GetProfilerInterval00
  995. static int tolua_Engine_DebugHud_GetProfilerInterval00(lua_State* tolua_S)
  996. {
  997. #ifndef TOLUA_RELEASE
  998. tolua_Error tolua_err;
  999. if (
  1000. !tolua_isusertype(tolua_S,1,"const DebugHud",0,&tolua_err) ||
  1001. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1002. )
  1003. goto tolua_lerror;
  1004. else
  1005. #endif
  1006. {
  1007. const DebugHud* self = (const DebugHud*) tolua_tousertype(tolua_S,1,0);
  1008. #ifndef TOLUA_RELEASE
  1009. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetProfilerInterval'", NULL);
  1010. #endif
  1011. {
  1012. float tolua_ret = (float) self->GetProfilerInterval();
  1013. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1014. }
  1015. }
  1016. return 1;
  1017. #ifndef TOLUA_RELEASE
  1018. tolua_lerror:
  1019. tolua_error(tolua_S,"#ferror in function 'GetProfilerInterval'.",&tolua_err);
  1020. return 0;
  1021. #endif
  1022. }
  1023. #endif //#ifndef TOLUA_DISABLE
  1024. /* method: GetUseRendererStats of class DebugHud */
  1025. #ifndef TOLUA_DISABLE_tolua_Engine_DebugHud_GetUseRendererStats00
  1026. static int tolua_Engine_DebugHud_GetUseRendererStats00(lua_State* tolua_S)
  1027. {
  1028. #ifndef TOLUA_RELEASE
  1029. tolua_Error tolua_err;
  1030. if (
  1031. !tolua_isusertype(tolua_S,1,"const DebugHud",0,&tolua_err) ||
  1032. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1033. )
  1034. goto tolua_lerror;
  1035. else
  1036. #endif
  1037. {
  1038. const DebugHud* self = (const DebugHud*) tolua_tousertype(tolua_S,1,0);
  1039. #ifndef TOLUA_RELEASE
  1040. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetUseRendererStats'", NULL);
  1041. #endif
  1042. {
  1043. bool tolua_ret = (bool) self->GetUseRendererStats();
  1044. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1045. }
  1046. }
  1047. return 1;
  1048. #ifndef TOLUA_RELEASE
  1049. tolua_lerror:
  1050. tolua_error(tolua_S,"#ferror in function 'GetUseRendererStats'.",&tolua_err);
  1051. return 0;
  1052. #endif
  1053. }
  1054. #endif //#ifndef TOLUA_DISABLE
  1055. /* method: SetAppStats of class DebugHud */
  1056. #ifndef TOLUA_DISABLE_tolua_Engine_DebugHud_SetAppStats00
  1057. static int tolua_Engine_DebugHud_SetAppStats00(lua_State* tolua_S)
  1058. {
  1059. #ifndef TOLUA_RELEASE
  1060. tolua_Error tolua_err;
  1061. if (
  1062. !tolua_isusertype(tolua_S,1,"DebugHud",0,&tolua_err) ||
  1063. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1064. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Variant",0,&tolua_err)) ||
  1065. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1066. )
  1067. goto tolua_lerror;
  1068. else
  1069. #endif
  1070. {
  1071. DebugHud* self = (DebugHud*) tolua_tousertype(tolua_S,1,0);
  1072. const String* label = ((const String*) tolua_tousertype(tolua_S,2,0));
  1073. const Variant* stats = ((const Variant*) tolua_tousertype(tolua_S,3,0));
  1074. #ifndef TOLUA_RELEASE
  1075. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAppStats'", NULL);
  1076. #endif
  1077. {
  1078. self->SetAppStats(*label,*stats);
  1079. }
  1080. }
  1081. return 0;
  1082. #ifndef TOLUA_RELEASE
  1083. tolua_lerror:
  1084. tolua_error(tolua_S,"#ferror in function 'SetAppStats'.",&tolua_err);
  1085. return 0;
  1086. #endif
  1087. }
  1088. #endif //#ifndef TOLUA_DISABLE
  1089. /* method: SetAppStats of class DebugHud */
  1090. #ifndef TOLUA_DISABLE_tolua_Engine_DebugHud_SetAppStats01
  1091. static int tolua_Engine_DebugHud_SetAppStats01(lua_State* tolua_S)
  1092. {
  1093. tolua_Error tolua_err;
  1094. if (
  1095. !tolua_isusertype(tolua_S,1,"DebugHud",0,&tolua_err) ||
  1096. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1097. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const String",0,&tolua_err)) ||
  1098. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1099. )
  1100. goto tolua_lerror;
  1101. else
  1102. {
  1103. DebugHud* self = (DebugHud*) tolua_tousertype(tolua_S,1,0);
  1104. const String* label = ((const String*) tolua_tousertype(tolua_S,2,0));
  1105. const String* stats = ((const String*) tolua_tousertype(tolua_S,3,0));
  1106. #ifndef TOLUA_RELEASE
  1107. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAppStats'", NULL);
  1108. #endif
  1109. {
  1110. self->SetAppStats(*label,*stats);
  1111. }
  1112. }
  1113. return 0;
  1114. tolua_lerror:
  1115. return tolua_Engine_DebugHud_SetAppStats00(tolua_S);
  1116. }
  1117. #endif //#ifndef TOLUA_DISABLE
  1118. /* method: ResetAppStats of class DebugHud */
  1119. #ifndef TOLUA_DISABLE_tolua_Engine_DebugHud_ResetAppStats00
  1120. static int tolua_Engine_DebugHud_ResetAppStats00(lua_State* tolua_S)
  1121. {
  1122. #ifndef TOLUA_RELEASE
  1123. tolua_Error tolua_err;
  1124. if (
  1125. !tolua_isusertype(tolua_S,1,"DebugHud",0,&tolua_err) ||
  1126. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1127. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1128. )
  1129. goto tolua_lerror;
  1130. else
  1131. #endif
  1132. {
  1133. DebugHud* self = (DebugHud*) tolua_tousertype(tolua_S,1,0);
  1134. const String* label = ((const String*) tolua_tousertype(tolua_S,2,0));
  1135. #ifndef TOLUA_RELEASE
  1136. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ResetAppStats'", NULL);
  1137. #endif
  1138. {
  1139. bool tolua_ret = (bool) self->ResetAppStats(*label);
  1140. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1141. }
  1142. }
  1143. return 1;
  1144. #ifndef TOLUA_RELEASE
  1145. tolua_lerror:
  1146. tolua_error(tolua_S,"#ferror in function 'ResetAppStats'.",&tolua_err);
  1147. return 0;
  1148. #endif
  1149. }
  1150. #endif //#ifndef TOLUA_DISABLE
  1151. /* method: ClearAppStats of class DebugHud */
  1152. #ifndef TOLUA_DISABLE_tolua_Engine_DebugHud_ClearAppStats00
  1153. static int tolua_Engine_DebugHud_ClearAppStats00(lua_State* tolua_S)
  1154. {
  1155. #ifndef TOLUA_RELEASE
  1156. tolua_Error tolua_err;
  1157. if (
  1158. !tolua_isusertype(tolua_S,1,"DebugHud",0,&tolua_err) ||
  1159. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1160. )
  1161. goto tolua_lerror;
  1162. else
  1163. #endif
  1164. {
  1165. DebugHud* self = (DebugHud*) tolua_tousertype(tolua_S,1,0);
  1166. #ifndef TOLUA_RELEASE
  1167. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ClearAppStats'", NULL);
  1168. #endif
  1169. {
  1170. self->ClearAppStats();
  1171. }
  1172. }
  1173. return 0;
  1174. #ifndef TOLUA_RELEASE
  1175. tolua_lerror:
  1176. tolua_error(tolua_S,"#ferror in function 'ClearAppStats'.",&tolua_err);
  1177. return 0;
  1178. #endif
  1179. }
  1180. #endif //#ifndef TOLUA_DISABLE
  1181. /* function: GetDebugHud */
  1182. #ifndef TOLUA_DISABLE_tolua_Engine_GetDebugHud00
  1183. static int tolua_Engine_GetDebugHud00(lua_State* tolua_S)
  1184. {
  1185. #ifndef TOLUA_RELEASE
  1186. tolua_Error tolua_err;
  1187. if (
  1188. !tolua_isnoobj(tolua_S,1,&tolua_err)
  1189. )
  1190. goto tolua_lerror;
  1191. else
  1192. #endif
  1193. {
  1194. {
  1195. DebugHud* tolua_ret = (DebugHud*) GetDebugHud();
  1196. tolua_pushusertype(tolua_S,(void*)tolua_ret,"DebugHud");
  1197. }
  1198. }
  1199. return 1;
  1200. #ifndef TOLUA_RELEASE
  1201. tolua_lerror:
  1202. tolua_error(tolua_S,"#ferror in function 'GetDebugHud'.",&tolua_err);
  1203. return 0;
  1204. #endif
  1205. }
  1206. #endif //#ifndef TOLUA_DISABLE
  1207. /* method: RunFrame of class Engine */
  1208. #ifndef TOLUA_DISABLE_tolua_Engine_Engine_RunFrame00
  1209. static int tolua_Engine_Engine_RunFrame00(lua_State* tolua_S)
  1210. {
  1211. #ifndef TOLUA_RELEASE
  1212. tolua_Error tolua_err;
  1213. if (
  1214. !tolua_isusertype(tolua_S,1,"Engine",0,&tolua_err) ||
  1215. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1216. )
  1217. goto tolua_lerror;
  1218. else
  1219. #endif
  1220. {
  1221. Engine* self = (Engine*) tolua_tousertype(tolua_S,1,0);
  1222. #ifndef TOLUA_RELEASE
  1223. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RunFrame'", NULL);
  1224. #endif
  1225. {
  1226. self->RunFrame();
  1227. }
  1228. }
  1229. return 0;
  1230. #ifndef TOLUA_RELEASE
  1231. tolua_lerror:
  1232. tolua_error(tolua_S,"#ferror in function 'RunFrame'.",&tolua_err);
  1233. return 0;
  1234. #endif
  1235. }
  1236. #endif //#ifndef TOLUA_DISABLE
  1237. /* method: CreateConsole of class Engine */
  1238. #ifndef TOLUA_DISABLE_tolua_Engine_Engine_CreateConsole00
  1239. static int tolua_Engine_Engine_CreateConsole00(lua_State* tolua_S)
  1240. {
  1241. #ifndef TOLUA_RELEASE
  1242. tolua_Error tolua_err;
  1243. if (
  1244. !tolua_isusertype(tolua_S,1,"Engine",0,&tolua_err) ||
  1245. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1246. )
  1247. goto tolua_lerror;
  1248. else
  1249. #endif
  1250. {
  1251. Engine* self = (Engine*) tolua_tousertype(tolua_S,1,0);
  1252. #ifndef TOLUA_RELEASE
  1253. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'CreateConsole'", NULL);
  1254. #endif
  1255. {
  1256. Console* tolua_ret = (Console*) self->CreateConsole();
  1257. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Console");
  1258. }
  1259. }
  1260. return 1;
  1261. #ifndef TOLUA_RELEASE
  1262. tolua_lerror:
  1263. tolua_error(tolua_S,"#ferror in function 'CreateConsole'.",&tolua_err);
  1264. return 0;
  1265. #endif
  1266. }
  1267. #endif //#ifndef TOLUA_DISABLE
  1268. /* method: CreateDebugHud of class Engine */
  1269. #ifndef TOLUA_DISABLE_tolua_Engine_Engine_CreateDebugHud00
  1270. static int tolua_Engine_Engine_CreateDebugHud00(lua_State* tolua_S)
  1271. {
  1272. #ifndef TOLUA_RELEASE
  1273. tolua_Error tolua_err;
  1274. if (
  1275. !tolua_isusertype(tolua_S,1,"Engine",0,&tolua_err) ||
  1276. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1277. )
  1278. goto tolua_lerror;
  1279. else
  1280. #endif
  1281. {
  1282. Engine* self = (Engine*) tolua_tousertype(tolua_S,1,0);
  1283. #ifndef TOLUA_RELEASE
  1284. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'CreateDebugHud'", NULL);
  1285. #endif
  1286. {
  1287. DebugHud* tolua_ret = (DebugHud*) self->CreateDebugHud();
  1288. tolua_pushusertype(tolua_S,(void*)tolua_ret,"DebugHud");
  1289. }
  1290. }
  1291. return 1;
  1292. #ifndef TOLUA_RELEASE
  1293. tolua_lerror:
  1294. tolua_error(tolua_S,"#ferror in function 'CreateDebugHud'.",&tolua_err);
  1295. return 0;
  1296. #endif
  1297. }
  1298. #endif //#ifndef TOLUA_DISABLE
  1299. /* method: SetMinFps of class Engine */
  1300. #ifndef TOLUA_DISABLE_tolua_Engine_Engine_SetMinFps00
  1301. static int tolua_Engine_Engine_SetMinFps00(lua_State* tolua_S)
  1302. {
  1303. #ifndef TOLUA_RELEASE
  1304. tolua_Error tolua_err;
  1305. if (
  1306. !tolua_isusertype(tolua_S,1,"Engine",0,&tolua_err) ||
  1307. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1308. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1309. )
  1310. goto tolua_lerror;
  1311. else
  1312. #endif
  1313. {
  1314. Engine* self = (Engine*) tolua_tousertype(tolua_S,1,0);
  1315. int fps = ((int) tolua_tonumber(tolua_S,2,0));
  1316. #ifndef TOLUA_RELEASE
  1317. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinFps'", NULL);
  1318. #endif
  1319. {
  1320. self->SetMinFps(fps);
  1321. }
  1322. }
  1323. return 0;
  1324. #ifndef TOLUA_RELEASE
  1325. tolua_lerror:
  1326. tolua_error(tolua_S,"#ferror in function 'SetMinFps'.",&tolua_err);
  1327. return 0;
  1328. #endif
  1329. }
  1330. #endif //#ifndef TOLUA_DISABLE
  1331. /* method: SetMaxFps of class Engine */
  1332. #ifndef TOLUA_DISABLE_tolua_Engine_Engine_SetMaxFps00
  1333. static int tolua_Engine_Engine_SetMaxFps00(lua_State* tolua_S)
  1334. {
  1335. #ifndef TOLUA_RELEASE
  1336. tolua_Error tolua_err;
  1337. if (
  1338. !tolua_isusertype(tolua_S,1,"Engine",0,&tolua_err) ||
  1339. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1340. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1341. )
  1342. goto tolua_lerror;
  1343. else
  1344. #endif
  1345. {
  1346. Engine* self = (Engine*) tolua_tousertype(tolua_S,1,0);
  1347. int fps = ((int) tolua_tonumber(tolua_S,2,0));
  1348. #ifndef TOLUA_RELEASE
  1349. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxFps'", NULL);
  1350. #endif
  1351. {
  1352. self->SetMaxFps(fps);
  1353. }
  1354. }
  1355. return 0;
  1356. #ifndef TOLUA_RELEASE
  1357. tolua_lerror:
  1358. tolua_error(tolua_S,"#ferror in function 'SetMaxFps'.",&tolua_err);
  1359. return 0;
  1360. #endif
  1361. }
  1362. #endif //#ifndef TOLUA_DISABLE
  1363. /* method: SetMaxInactiveFps of class Engine */
  1364. #ifndef TOLUA_DISABLE_tolua_Engine_Engine_SetMaxInactiveFps00
  1365. static int tolua_Engine_Engine_SetMaxInactiveFps00(lua_State* tolua_S)
  1366. {
  1367. #ifndef TOLUA_RELEASE
  1368. tolua_Error tolua_err;
  1369. if (
  1370. !tolua_isusertype(tolua_S,1,"Engine",0,&tolua_err) ||
  1371. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1372. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1373. )
  1374. goto tolua_lerror;
  1375. else
  1376. #endif
  1377. {
  1378. Engine* self = (Engine*) tolua_tousertype(tolua_S,1,0);
  1379. int fps = ((int) tolua_tonumber(tolua_S,2,0));
  1380. #ifndef TOLUA_RELEASE
  1381. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxInactiveFps'", NULL);
  1382. #endif
  1383. {
  1384. self->SetMaxInactiveFps(fps);
  1385. }
  1386. }
  1387. return 0;
  1388. #ifndef TOLUA_RELEASE
  1389. tolua_lerror:
  1390. tolua_error(tolua_S,"#ferror in function 'SetMaxInactiveFps'.",&tolua_err);
  1391. return 0;
  1392. #endif
  1393. }
  1394. #endif //#ifndef TOLUA_DISABLE
  1395. /* method: SetPauseMinimized of class Engine */
  1396. #ifndef TOLUA_DISABLE_tolua_Engine_Engine_SetPauseMinimized00
  1397. static int tolua_Engine_Engine_SetPauseMinimized00(lua_State* tolua_S)
  1398. {
  1399. #ifndef TOLUA_RELEASE
  1400. tolua_Error tolua_err;
  1401. if (
  1402. !tolua_isusertype(tolua_S,1,"Engine",0,&tolua_err) ||
  1403. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  1404. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1405. )
  1406. goto tolua_lerror;
  1407. else
  1408. #endif
  1409. {
  1410. Engine* self = (Engine*) tolua_tousertype(tolua_S,1,0);
  1411. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  1412. #ifndef TOLUA_RELEASE
  1413. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPauseMinimized'", NULL);
  1414. #endif
  1415. {
  1416. self->SetPauseMinimized(enable);
  1417. }
  1418. }
  1419. return 0;
  1420. #ifndef TOLUA_RELEASE
  1421. tolua_lerror:
  1422. tolua_error(tolua_S,"#ferror in function 'SetPauseMinimized'.",&tolua_err);
  1423. return 0;
  1424. #endif
  1425. }
  1426. #endif //#ifndef TOLUA_DISABLE
  1427. /* method: Exit of class Engine */
  1428. #ifndef TOLUA_DISABLE_tolua_Engine_Engine_Exit00
  1429. static int tolua_Engine_Engine_Exit00(lua_State* tolua_S)
  1430. {
  1431. #ifndef TOLUA_RELEASE
  1432. tolua_Error tolua_err;
  1433. if (
  1434. !tolua_isusertype(tolua_S,1,"Engine",0,&tolua_err) ||
  1435. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1436. )
  1437. goto tolua_lerror;
  1438. else
  1439. #endif
  1440. {
  1441. Engine* self = (Engine*) tolua_tousertype(tolua_S,1,0);
  1442. #ifndef TOLUA_RELEASE
  1443. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Exit'", NULL);
  1444. #endif
  1445. {
  1446. self->Exit();
  1447. }
  1448. }
  1449. return 0;
  1450. #ifndef TOLUA_RELEASE
  1451. tolua_lerror:
  1452. tolua_error(tolua_S,"#ferror in function 'Exit'.",&tolua_err);
  1453. return 0;
  1454. #endif
  1455. }
  1456. #endif //#ifndef TOLUA_DISABLE
  1457. /* method: DumpProfiler of class Engine */
  1458. #ifndef TOLUA_DISABLE_tolua_Engine_Engine_DumpProfiler00
  1459. static int tolua_Engine_Engine_DumpProfiler00(lua_State* tolua_S)
  1460. {
  1461. #ifndef TOLUA_RELEASE
  1462. tolua_Error tolua_err;
  1463. if (
  1464. !tolua_isusertype(tolua_S,1,"Engine",0,&tolua_err) ||
  1465. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1466. )
  1467. goto tolua_lerror;
  1468. else
  1469. #endif
  1470. {
  1471. Engine* self = (Engine*) tolua_tousertype(tolua_S,1,0);
  1472. #ifndef TOLUA_RELEASE
  1473. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'DumpProfiler'", NULL);
  1474. #endif
  1475. {
  1476. self->DumpProfiler();
  1477. }
  1478. }
  1479. return 0;
  1480. #ifndef TOLUA_RELEASE
  1481. tolua_lerror:
  1482. tolua_error(tolua_S,"#ferror in function 'DumpProfiler'.",&tolua_err);
  1483. return 0;
  1484. #endif
  1485. }
  1486. #endif //#ifndef TOLUA_DISABLE
  1487. /* method: DumpResources of class Engine */
  1488. #ifndef TOLUA_DISABLE_tolua_Engine_Engine_DumpResources00
  1489. static int tolua_Engine_Engine_DumpResources00(lua_State* tolua_S)
  1490. {
  1491. #ifndef TOLUA_RELEASE
  1492. tolua_Error tolua_err;
  1493. if (
  1494. !tolua_isusertype(tolua_S,1,"Engine",0,&tolua_err) ||
  1495. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1496. )
  1497. goto tolua_lerror;
  1498. else
  1499. #endif
  1500. {
  1501. Engine* self = (Engine*) tolua_tousertype(tolua_S,1,0);
  1502. #ifndef TOLUA_RELEASE
  1503. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'DumpResources'", NULL);
  1504. #endif
  1505. {
  1506. self->DumpResources();
  1507. }
  1508. }
  1509. return 0;
  1510. #ifndef TOLUA_RELEASE
  1511. tolua_lerror:
  1512. tolua_error(tolua_S,"#ferror in function 'DumpResources'.",&tolua_err);
  1513. return 0;
  1514. #endif
  1515. }
  1516. #endif //#ifndef TOLUA_DISABLE
  1517. /* method: DumpMemory of class Engine */
  1518. #ifndef TOLUA_DISABLE_tolua_Engine_Engine_DumpMemory00
  1519. static int tolua_Engine_Engine_DumpMemory00(lua_State* tolua_S)
  1520. {
  1521. #ifndef TOLUA_RELEASE
  1522. tolua_Error tolua_err;
  1523. if (
  1524. !tolua_isusertype(tolua_S,1,"Engine",0,&tolua_err) ||
  1525. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1526. )
  1527. goto tolua_lerror;
  1528. else
  1529. #endif
  1530. {
  1531. Engine* self = (Engine*) tolua_tousertype(tolua_S,1,0);
  1532. #ifndef TOLUA_RELEASE
  1533. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'DumpMemory'", NULL);
  1534. #endif
  1535. {
  1536. self->DumpMemory();
  1537. }
  1538. }
  1539. return 0;
  1540. #ifndef TOLUA_RELEASE
  1541. tolua_lerror:
  1542. tolua_error(tolua_S,"#ferror in function 'DumpMemory'.",&tolua_err);
  1543. return 0;
  1544. #endif
  1545. }
  1546. #endif //#ifndef TOLUA_DISABLE
  1547. /* method: GetMinFps of class Engine */
  1548. #ifndef TOLUA_DISABLE_tolua_Engine_Engine_GetMinFps00
  1549. static int tolua_Engine_Engine_GetMinFps00(lua_State* tolua_S)
  1550. {
  1551. #ifndef TOLUA_RELEASE
  1552. tolua_Error tolua_err;
  1553. if (
  1554. !tolua_isusertype(tolua_S,1,"const Engine",0,&tolua_err) ||
  1555. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1556. )
  1557. goto tolua_lerror;
  1558. else
  1559. #endif
  1560. {
  1561. const Engine* self = (const Engine*) tolua_tousertype(tolua_S,1,0);
  1562. #ifndef TOLUA_RELEASE
  1563. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinFps'", NULL);
  1564. #endif
  1565. {
  1566. int tolua_ret = (int) self->GetMinFps();
  1567. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1568. }
  1569. }
  1570. return 1;
  1571. #ifndef TOLUA_RELEASE
  1572. tolua_lerror:
  1573. tolua_error(tolua_S,"#ferror in function 'GetMinFps'.",&tolua_err);
  1574. return 0;
  1575. #endif
  1576. }
  1577. #endif //#ifndef TOLUA_DISABLE
  1578. /* method: GetMaxFps of class Engine */
  1579. #ifndef TOLUA_DISABLE_tolua_Engine_Engine_GetMaxFps00
  1580. static int tolua_Engine_Engine_GetMaxFps00(lua_State* tolua_S)
  1581. {
  1582. #ifndef TOLUA_RELEASE
  1583. tolua_Error tolua_err;
  1584. if (
  1585. !tolua_isusertype(tolua_S,1,"const Engine",0,&tolua_err) ||
  1586. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1587. )
  1588. goto tolua_lerror;
  1589. else
  1590. #endif
  1591. {
  1592. const Engine* self = (const Engine*) tolua_tousertype(tolua_S,1,0);
  1593. #ifndef TOLUA_RELEASE
  1594. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxFps'", NULL);
  1595. #endif
  1596. {
  1597. int tolua_ret = (int) self->GetMaxFps();
  1598. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1599. }
  1600. }
  1601. return 1;
  1602. #ifndef TOLUA_RELEASE
  1603. tolua_lerror:
  1604. tolua_error(tolua_S,"#ferror in function 'GetMaxFps'.",&tolua_err);
  1605. return 0;
  1606. #endif
  1607. }
  1608. #endif //#ifndef TOLUA_DISABLE
  1609. /* method: GetMaxInactiveFps of class Engine */
  1610. #ifndef TOLUA_DISABLE_tolua_Engine_Engine_GetMaxInactiveFps00
  1611. static int tolua_Engine_Engine_GetMaxInactiveFps00(lua_State* tolua_S)
  1612. {
  1613. #ifndef TOLUA_RELEASE
  1614. tolua_Error tolua_err;
  1615. if (
  1616. !tolua_isusertype(tolua_S,1,"const Engine",0,&tolua_err) ||
  1617. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1618. )
  1619. goto tolua_lerror;
  1620. else
  1621. #endif
  1622. {
  1623. const Engine* self = (const Engine*) tolua_tousertype(tolua_S,1,0);
  1624. #ifndef TOLUA_RELEASE
  1625. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxInactiveFps'", NULL);
  1626. #endif
  1627. {
  1628. int tolua_ret = (int) self->GetMaxInactiveFps();
  1629. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1630. }
  1631. }
  1632. return 1;
  1633. #ifndef TOLUA_RELEASE
  1634. tolua_lerror:
  1635. tolua_error(tolua_S,"#ferror in function 'GetMaxInactiveFps'.",&tolua_err);
  1636. return 0;
  1637. #endif
  1638. }
  1639. #endif //#ifndef TOLUA_DISABLE
  1640. /* method: GetPauseMinimized of class Engine */
  1641. #ifndef TOLUA_DISABLE_tolua_Engine_Engine_GetPauseMinimized00
  1642. static int tolua_Engine_Engine_GetPauseMinimized00(lua_State* tolua_S)
  1643. {
  1644. #ifndef TOLUA_RELEASE
  1645. tolua_Error tolua_err;
  1646. if (
  1647. !tolua_isusertype(tolua_S,1,"const Engine",0,&tolua_err) ||
  1648. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1649. )
  1650. goto tolua_lerror;
  1651. else
  1652. #endif
  1653. {
  1654. const Engine* self = (const Engine*) tolua_tousertype(tolua_S,1,0);
  1655. #ifndef TOLUA_RELEASE
  1656. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPauseMinimized'", NULL);
  1657. #endif
  1658. {
  1659. bool tolua_ret = (bool) self->GetPauseMinimized();
  1660. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1661. }
  1662. }
  1663. return 1;
  1664. #ifndef TOLUA_RELEASE
  1665. tolua_lerror:
  1666. tolua_error(tolua_S,"#ferror in function 'GetPauseMinimized'.",&tolua_err);
  1667. return 0;
  1668. #endif
  1669. }
  1670. #endif //#ifndef TOLUA_DISABLE
  1671. /* method: IsInitialized of class Engine */
  1672. #ifndef TOLUA_DISABLE_tolua_Engine_Engine_IsInitialized00
  1673. static int tolua_Engine_Engine_IsInitialized00(lua_State* tolua_S)
  1674. {
  1675. #ifndef TOLUA_RELEASE
  1676. tolua_Error tolua_err;
  1677. if (
  1678. !tolua_isusertype(tolua_S,1,"const Engine",0,&tolua_err) ||
  1679. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1680. )
  1681. goto tolua_lerror;
  1682. else
  1683. #endif
  1684. {
  1685. const Engine* self = (const Engine*) tolua_tousertype(tolua_S,1,0);
  1686. #ifndef TOLUA_RELEASE
  1687. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsInitialized'", NULL);
  1688. #endif
  1689. {
  1690. bool tolua_ret = (bool) self->IsInitialized();
  1691. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1692. }
  1693. }
  1694. return 1;
  1695. #ifndef TOLUA_RELEASE
  1696. tolua_lerror:
  1697. tolua_error(tolua_S,"#ferror in function 'IsInitialized'.",&tolua_err);
  1698. return 0;
  1699. #endif
  1700. }
  1701. #endif //#ifndef TOLUA_DISABLE
  1702. /* method: IsExiting of class Engine */
  1703. #ifndef TOLUA_DISABLE_tolua_Engine_Engine_IsExiting00
  1704. static int tolua_Engine_Engine_IsExiting00(lua_State* tolua_S)
  1705. {
  1706. #ifndef TOLUA_RELEASE
  1707. tolua_Error tolua_err;
  1708. if (
  1709. !tolua_isusertype(tolua_S,1,"const Engine",0,&tolua_err) ||
  1710. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1711. )
  1712. goto tolua_lerror;
  1713. else
  1714. #endif
  1715. {
  1716. const Engine* self = (const Engine*) tolua_tousertype(tolua_S,1,0);
  1717. #ifndef TOLUA_RELEASE
  1718. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsExiting'", NULL);
  1719. #endif
  1720. {
  1721. bool tolua_ret = (bool) self->IsExiting();
  1722. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1723. }
  1724. }
  1725. return 1;
  1726. #ifndef TOLUA_RELEASE
  1727. tolua_lerror:
  1728. tolua_error(tolua_S,"#ferror in function 'IsExiting'.",&tolua_err);
  1729. return 0;
  1730. #endif
  1731. }
  1732. #endif //#ifndef TOLUA_DISABLE
  1733. /* method: IsHeadless of class Engine */
  1734. #ifndef TOLUA_DISABLE_tolua_Engine_Engine_IsHeadless00
  1735. static int tolua_Engine_Engine_IsHeadless00(lua_State* tolua_S)
  1736. {
  1737. #ifndef TOLUA_RELEASE
  1738. tolua_Error tolua_err;
  1739. if (
  1740. !tolua_isusertype(tolua_S,1,"const Engine",0,&tolua_err) ||
  1741. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1742. )
  1743. goto tolua_lerror;
  1744. else
  1745. #endif
  1746. {
  1747. const Engine* self = (const Engine*) tolua_tousertype(tolua_S,1,0);
  1748. #ifndef TOLUA_RELEASE
  1749. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsHeadless'", NULL);
  1750. #endif
  1751. {
  1752. bool tolua_ret = (bool) self->IsHeadless();
  1753. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1754. }
  1755. }
  1756. return 1;
  1757. #ifndef TOLUA_RELEASE
  1758. tolua_lerror:
  1759. tolua_error(tolua_S,"#ferror in function 'IsHeadless'.",&tolua_err);
  1760. return 0;
  1761. #endif
  1762. }
  1763. #endif //#ifndef TOLUA_DISABLE
  1764. /* function: GetEngine */
  1765. #ifndef TOLUA_DISABLE_tolua_Engine_GetEngine00
  1766. static int tolua_Engine_GetEngine00(lua_State* tolua_S)
  1767. {
  1768. #ifndef TOLUA_RELEASE
  1769. tolua_Error tolua_err;
  1770. if (
  1771. !tolua_isnoobj(tolua_S,1,&tolua_err)
  1772. )
  1773. goto tolua_lerror;
  1774. else
  1775. #endif
  1776. {
  1777. {
  1778. Engine* tolua_ret = (Engine*) GetEngine();
  1779. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Engine");
  1780. }
  1781. }
  1782. return 1;
  1783. #ifndef TOLUA_RELEASE
  1784. tolua_lerror:
  1785. tolua_error(tolua_S,"#ferror in function 'GetEngine'.",&tolua_err);
  1786. return 0;
  1787. #endif
  1788. }
  1789. #endif //#ifndef TOLUA_DISABLE
  1790. /* Open function */
  1791. TOLUA_API int tolua_Engine_open (lua_State* tolua_S)
  1792. {
  1793. tolua_open(tolua_S);
  1794. tolua_reg_types(tolua_S);
  1795. tolua_module(tolua_S,NULL,1);
  1796. tolua_beginmodule(tolua_S,NULL);
  1797. tolua_cclass(tolua_S,"Console","Console","Object",NULL);
  1798. tolua_beginmodule(tolua_S,"Console");
  1799. tolua_function(tolua_S,"SetDefaultStyle",tolua_Engine_Console_SetDefaultStyle00);
  1800. tolua_function(tolua_S,"SetVisible",tolua_Engine_Console_SetVisible00);
  1801. tolua_function(tolua_S,"Toggle",tolua_Engine_Console_Toggle00);
  1802. tolua_function(tolua_S,"SetNumRows",tolua_Engine_Console_SetNumRows00);
  1803. tolua_function(tolua_S,"SetNumHistoryRows",tolua_Engine_Console_SetNumHistoryRows00);
  1804. tolua_function(tolua_S,"UpdateElements",tolua_Engine_Console_UpdateElements00);
  1805. tolua_function(tolua_S,"GetDefaultStyle",tolua_Engine_Console_GetDefaultStyle00);
  1806. tolua_function(tolua_S,"GetBackground",tolua_Engine_Console_GetBackground00);
  1807. tolua_function(tolua_S,"GetLineEdit",tolua_Engine_Console_GetLineEdit00);
  1808. tolua_function(tolua_S,"IsVisible",tolua_Engine_Console_IsVisible00);
  1809. tolua_function(tolua_S,"GetNumRows",tolua_Engine_Console_GetNumRows00);
  1810. tolua_function(tolua_S,"GetNumHistoryRows",tolua_Engine_Console_GetNumHistoryRows00);
  1811. tolua_function(tolua_S,"GetHistoryPosition",tolua_Engine_Console_GetHistoryPosition00);
  1812. tolua_function(tolua_S,"GetHistoryRow",tolua_Engine_Console_GetHistoryRow00);
  1813. tolua_endmodule(tolua_S);
  1814. tolua_function(tolua_S,"GetConsole",tolua_Engine_GetConsole00);
  1815. tolua_variable(tolua_S,"DEBUGHUD_SHOW_NONE",tolua_get_DEBUGHUD_SHOW_NONE,NULL);
  1816. tolua_variable(tolua_S,"DEBUGHUD_SHOW_STATS",tolua_get_DEBUGHUD_SHOW_STATS,NULL);
  1817. tolua_variable(tolua_S,"DEBUGHUD_SHOW_MODE",tolua_get_DEBUGHUD_SHOW_MODE,NULL);
  1818. tolua_variable(tolua_S,"DEBUGHUD_SHOW_PROFILER",tolua_get_DEBUGHUD_SHOW_PROFILER,NULL);
  1819. tolua_variable(tolua_S,"DEBUGHUD_SHOW_ALL",tolua_get_DEBUGHUD_SHOW_ALL,NULL);
  1820. tolua_cclass(tolua_S,"DebugHud","DebugHud","Object",NULL);
  1821. tolua_beginmodule(tolua_S,"DebugHud");
  1822. tolua_function(tolua_S,"Update",tolua_Engine_DebugHud_Update00);
  1823. tolua_function(tolua_S,"SetDefaultStyle",tolua_Engine_DebugHud_SetDefaultStyle00);
  1824. tolua_function(tolua_S,"SetMode",tolua_Engine_DebugHud_SetMode00);
  1825. tolua_function(tolua_S,"SetProfilerMaxDepth",tolua_Engine_DebugHud_SetProfilerMaxDepth00);
  1826. tolua_function(tolua_S,"SetProfilerInterval",tolua_Engine_DebugHud_SetProfilerInterval00);
  1827. tolua_function(tolua_S,"SetUseRendererStats",tolua_Engine_DebugHud_SetUseRendererStats00);
  1828. tolua_function(tolua_S,"Toggle",tolua_Engine_DebugHud_Toggle00);
  1829. tolua_function(tolua_S,"ToggleAll",tolua_Engine_DebugHud_ToggleAll00);
  1830. tolua_function(tolua_S,"GetDefaultStyle",tolua_Engine_DebugHud_GetDefaultStyle00);
  1831. tolua_function(tolua_S,"GetStatsText",tolua_Engine_DebugHud_GetStatsText00);
  1832. tolua_function(tolua_S,"GetModeText",tolua_Engine_DebugHud_GetModeText00);
  1833. tolua_function(tolua_S,"GetProfilerText",tolua_Engine_DebugHud_GetProfilerText00);
  1834. tolua_function(tolua_S,"GetMode",tolua_Engine_DebugHud_GetMode00);
  1835. tolua_function(tolua_S,"GetProfilerMaxDepth",tolua_Engine_DebugHud_GetProfilerMaxDepth00);
  1836. tolua_function(tolua_S,"GetProfilerInterval",tolua_Engine_DebugHud_GetProfilerInterval00);
  1837. tolua_function(tolua_S,"GetUseRendererStats",tolua_Engine_DebugHud_GetUseRendererStats00);
  1838. tolua_function(tolua_S,"SetAppStats",tolua_Engine_DebugHud_SetAppStats00);
  1839. tolua_function(tolua_S,"SetAppStats",tolua_Engine_DebugHud_SetAppStats01);
  1840. tolua_function(tolua_S,"ResetAppStats",tolua_Engine_DebugHud_ResetAppStats00);
  1841. tolua_function(tolua_S,"ClearAppStats",tolua_Engine_DebugHud_ClearAppStats00);
  1842. tolua_endmodule(tolua_S);
  1843. tolua_function(tolua_S,"GetDebugHud",tolua_Engine_GetDebugHud00);
  1844. tolua_cclass(tolua_S,"Engine","Engine","Object",NULL);
  1845. tolua_beginmodule(tolua_S,"Engine");
  1846. tolua_function(tolua_S,"RunFrame",tolua_Engine_Engine_RunFrame00);
  1847. tolua_function(tolua_S,"CreateConsole",tolua_Engine_Engine_CreateConsole00);
  1848. tolua_function(tolua_S,"CreateDebugHud",tolua_Engine_Engine_CreateDebugHud00);
  1849. tolua_function(tolua_S,"SetMinFps",tolua_Engine_Engine_SetMinFps00);
  1850. tolua_function(tolua_S,"SetMaxFps",tolua_Engine_Engine_SetMaxFps00);
  1851. tolua_function(tolua_S,"SetMaxInactiveFps",tolua_Engine_Engine_SetMaxInactiveFps00);
  1852. tolua_function(tolua_S,"SetPauseMinimized",tolua_Engine_Engine_SetPauseMinimized00);
  1853. tolua_function(tolua_S,"Exit",tolua_Engine_Engine_Exit00);
  1854. tolua_function(tolua_S,"DumpProfiler",tolua_Engine_Engine_DumpProfiler00);
  1855. tolua_function(tolua_S,"DumpResources",tolua_Engine_Engine_DumpResources00);
  1856. tolua_function(tolua_S,"DumpMemory",tolua_Engine_Engine_DumpMemory00);
  1857. tolua_function(tolua_S,"GetMinFps",tolua_Engine_Engine_GetMinFps00);
  1858. tolua_function(tolua_S,"GetMaxFps",tolua_Engine_Engine_GetMaxFps00);
  1859. tolua_function(tolua_S,"GetMaxInactiveFps",tolua_Engine_Engine_GetMaxInactiveFps00);
  1860. tolua_function(tolua_S,"GetPauseMinimized",tolua_Engine_Engine_GetPauseMinimized00);
  1861. tolua_function(tolua_S,"IsInitialized",tolua_Engine_Engine_IsInitialized00);
  1862. tolua_function(tolua_S,"IsExiting",tolua_Engine_Engine_IsExiting00);
  1863. tolua_function(tolua_S,"IsHeadless",tolua_Engine_Engine_IsHeadless00);
  1864. tolua_endmodule(tolua_S);
  1865. tolua_function(tolua_S,"GetEngine",tolua_Engine_GetEngine00);
  1866. tolua_endmodule(tolua_S);
  1867. return 1;
  1868. }
  1869. #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
  1870. TOLUA_API int luaopen_Engine (lua_State* tolua_S) {
  1871. return tolua_Engine_open(tolua_S);
  1872. };
  1873. #endif