| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822 |
- /*
- ** Lua binding: Resource
- ** Generated automatically by tolua++-1.0.92 on 07/02/13 20:27:50.
- */
- //
- // Copyright (c) 2008-2013 the Urho3D project.
- //
- // Permission is hereby granted, free of charge, to any person obtaining a copy
- // of this software and associated documentation files (the "Software"), to deal
- // in the Software without restriction, including without limitation the rights
- // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- // copies of the Software, and to permit persons to whom the Software is
- // furnished to do so, subject to the following conditions:
- //
- // The above copyright notice and this permission notice shall be included in
- // all copies or substantial portions of the Software.
- //
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- // THE SOFTWARE.
- //
- #include "Precompiled.h"
- #include "tolua++.h"
- /* Exported function */
- TOLUA_API int tolua_Resource_open (lua_State* tolua_S);
- #define TOLUA_RELEASE
- #include "ResourceLuaAPI.h"
- #include "Image.h"
- #include "Resource.h"
- #include "ResourceCache.h"
- #include "XMLElement.h"
- #include "XMLFile.h"
- using namespace Urho3D;
- #pragma warning(disable:4800)
- /* function to release collected object via destructor */
- #ifdef __cplusplus
- static int tolua_collect_String (lua_State* tolua_S)
- {
- String* self = (String*) tolua_tousertype(tolua_S,1,0);
- Mtolua_delete(self);
- return 0;
- }
- static int tolua_collect_IntRect (lua_State* tolua_S)
- {
- IntRect* self = (IntRect*) tolua_tousertype(tolua_S,1,0);
- Mtolua_delete(self);
- return 0;
- }
- static int tolua_collect_Color (lua_State* tolua_S)
- {
- Color* self = (Color*) tolua_tousertype(tolua_S,1,0);
- Mtolua_delete(self);
- return 0;
- }
- static int tolua_collect_Vector4 (lua_State* tolua_S)
- {
- Vector4* self = (Vector4*) tolua_tousertype(tolua_S,1,0);
- Mtolua_delete(self);
- return 0;
- }
- static int tolua_collect_Vector3 (lua_State* tolua_S)
- {
- Vector3* self = (Vector3*) tolua_tousertype(tolua_S,1,0);
- Mtolua_delete(self);
- return 0;
- }
- static int tolua_collect_StringHash (lua_State* tolua_S)
- {
- StringHash* self = (StringHash*) tolua_tousertype(tolua_S,1,0);
- Mtolua_delete(self);
- return 0;
- }
- static int tolua_collect_ResourceRef (lua_State* tolua_S)
- {
- ResourceRef* self = (ResourceRef*) tolua_tousertype(tolua_S,1,0);
- Mtolua_delete(self);
- return 0;
- }
- static int tolua_collect_Rect (lua_State* tolua_S)
- {
- Rect* self = (Rect*) tolua_tousertype(tolua_S,1,0);
- Mtolua_delete(self);
- return 0;
- }
- static int tolua_collect_ResourceRefList (lua_State* tolua_S)
- {
- ResourceRefList* self = (ResourceRefList*) tolua_tousertype(tolua_S,1,0);
- Mtolua_delete(self);
- return 0;
- }
- static int tolua_collect_Vector2 (lua_State* tolua_S)
- {
- Vector2* self = (Vector2*) tolua_tousertype(tolua_S,1,0);
- Mtolua_delete(self);
- return 0;
- }
- static int tolua_collect_Quaternion (lua_State* tolua_S)
- {
- Quaternion* self = (Quaternion*) tolua_tousertype(tolua_S,1,0);
- Mtolua_delete(self);
- return 0;
- }
- static int tolua_collect_IntVector2 (lua_State* tolua_S)
- {
- IntVector2* self = (IntVector2*) tolua_tousertype(tolua_S,1,0);
- Mtolua_delete(self);
- return 0;
- }
- static int tolua_collect_BoundingBox (lua_State* tolua_S)
- {
- BoundingBox* self = (BoundingBox*) tolua_tousertype(tolua_S,1,0);
- Mtolua_delete(self);
- return 0;
- }
- static int tolua_collect_XMLElement (lua_State* tolua_S)
- {
- XMLElement* self = (XMLElement*) tolua_tousertype(tolua_S,1,0);
- Mtolua_delete(self);
- return 0;
- }
- #endif
- /* function to register type */
- static void tolua_reg_types (lua_State* tolua_S)
- {
- tolua_usertype(tolua_S,"String");
- tolua_usertype(tolua_S,"Resource");
- tolua_usertype(tolua_S,"Color");
- tolua_usertype(tolua_S,"XMLFile");
- tolua_usertype(tolua_S,"Image");
- tolua_usertype(tolua_S,"Vector4");
- tolua_usertype(tolua_S,"Vector3");
- tolua_usertype(tolua_S,"Vector2");
- tolua_usertype(tolua_S,"Material");
- tolua_usertype(tolua_S,"Sound");
- tolua_usertype(tolua_S,"BoundingBox");
- tolua_usertype(tolua_S,"XMLElement");
- tolua_usertype(tolua_S,"ResourceRef");
- tolua_usertype(tolua_S,"ResourceCache");
- tolua_usertype(tolua_S,"Animation");
- tolua_usertype(tolua_S,"Quaternion");
- tolua_usertype(tolua_S,"Rect");
- tolua_usertype(tolua_S,"IntVector2");
- tolua_usertype(tolua_S,"StringHash");
- tolua_usertype(tolua_S,"IntRect");
- tolua_usertype(tolua_S,"Font");
- tolua_usertype(tolua_S,"ResourceRefList");
- tolua_usertype(tolua_S,"Model");
- tolua_usertype(tolua_S,"Technique");
- tolua_usertype(tolua_S,"TextureCube");
- tolua_usertype(tolua_S,"Texture2D");
- tolua_usertype(tolua_S,"ShortStringHash");
- }
- /* method: FlipVertical of class Image */
- #ifndef TOLUA_DISABLE_tolua_Resource_Image_FlipVertical00
- static int tolua_Resource_Image_FlipVertical00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"Image",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- Image* self = (Image*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'FlipVertical'", NULL);
- #endif
- {
- self->FlipVertical();
- }
- }
- return 0;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'FlipVertical'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: SaveBMP of class Image */
- #ifndef TOLUA_DISABLE_tolua_Resource_Image_SaveBMP00
- static int tolua_Resource_Image_SaveBMP00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"Image",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- Image* self = (Image*) tolua_tousertype(tolua_S,1,0);
- const char* fileName = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SaveBMP'", NULL);
- #endif
- {
- bool tolua_ret = (bool) self->SaveBMP(fileName);
- tolua_pushboolean(tolua_S,(bool)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'SaveBMP'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: SavePNG of class Image */
- #ifndef TOLUA_DISABLE_tolua_Resource_Image_SavePNG00
- static int tolua_Resource_Image_SavePNG00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"Image",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- Image* self = (Image*) tolua_tousertype(tolua_S,1,0);
- const char* fileName = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SavePNG'", NULL);
- #endif
- {
- bool tolua_ret = (bool) self->SavePNG(fileName);
- tolua_pushboolean(tolua_S,(bool)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'SavePNG'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: SaveTGA of class Image */
- #ifndef TOLUA_DISABLE_tolua_Resource_Image_SaveTGA00
- static int tolua_Resource_Image_SaveTGA00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"Image",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- Image* self = (Image*) tolua_tousertype(tolua_S,1,0);
- const char* fileName = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SaveTGA'", NULL);
- #endif
- {
- bool tolua_ret = (bool) self->SaveTGA(fileName);
- tolua_pushboolean(tolua_S,(bool)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'SaveTGA'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: SaveJPG of class Image */
- #ifndef TOLUA_DISABLE_tolua_Resource_Image_SaveJPG00
- static int tolua_Resource_Image_SaveJPG00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"Image",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,4,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- Image* self = (Image*) tolua_tousertype(tolua_S,1,0);
- const char* fileName = ((const char*) tolua_tostring(tolua_S,2,0));
- int quality = ((int) tolua_tonumber(tolua_S,3,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SaveJPG'", NULL);
- #endif
- {
- bool tolua_ret = (bool) self->SaveJPG(fileName,quality);
- tolua_pushboolean(tolua_S,(bool)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'SaveJPG'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetWidth of class Image */
- #ifndef TOLUA_DISABLE_tolua_Resource_Image_GetWidth00
- static int tolua_Resource_Image_GetWidth00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const Image",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const Image* self = (const Image*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWidth'", NULL);
- #endif
- {
- int tolua_ret = (int) self->GetWidth();
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetWidth'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetHeight of class Image */
- #ifndef TOLUA_DISABLE_tolua_Resource_Image_GetHeight00
- static int tolua_Resource_Image_GetHeight00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const Image",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const Image* self = (const Image*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHeight'", NULL);
- #endif
- {
- int tolua_ret = (int) self->GetHeight();
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetHeight'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetComponents of class Image */
- #ifndef TOLUA_DISABLE_tolua_Resource_Image_GetComponents00
- static int tolua_Resource_Image_GetComponents00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const Image",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const Image* self = (const Image*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetComponents'", NULL);
- #endif
- {
- unsigned tolua_ret = (unsigned) self->GetComponents();
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetComponents'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: IsCompressed of class Image */
- #ifndef TOLUA_DISABLE_tolua_Resource_Image_IsCompressed00
- static int tolua_Resource_Image_IsCompressed00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const Image",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const Image* self = (const Image*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsCompressed'", NULL);
- #endif
- {
- bool tolua_ret = (bool) self->IsCompressed();
- tolua_pushboolean(tolua_S,(bool)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'IsCompressed'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetCompressedFormat of class Image */
- #ifndef TOLUA_DISABLE_tolua_Resource_Image_GetCompressedFormat00
- static int tolua_Resource_Image_GetCompressedFormat00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const Image",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const Image* self = (const Image*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCompressedFormat'", NULL);
- #endif
- {
- CompressedFormat tolua_ret = (CompressedFormat) self->GetCompressedFormat();
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetCompressedFormat'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetNumCompressedLevels of class Image */
- #ifndef TOLUA_DISABLE_tolua_Resource_Image_GetNumCompressedLevels00
- static int tolua_Resource_Image_GetNumCompressedLevels00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const Image",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const Image* self = (const Image*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumCompressedLevels'", NULL);
- #endif
- {
- unsigned tolua_ret = (unsigned) self->GetNumCompressedLevels();
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetNumCompressedLevels'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetName of class Resource */
- #ifndef TOLUA_DISABLE_tolua_Resource_Resource_GetName00
- static int tolua_Resource_Resource_GetName00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const Resource",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const Resource* self = (const Resource*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetName'", NULL);
- #endif
- {
- const String& tolua_ret = (const String&) self->GetName();
- tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetName'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetNameHash of class Resource */
- #ifndef TOLUA_DISABLE_tolua_Resource_Resource_GetNameHash00
- static int tolua_Resource_Resource_GetNameHash00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const Resource",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const Resource* self = (const Resource*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNameHash'", NULL);
- #endif
- {
- StringHash tolua_ret = (StringHash) self->GetNameHash();
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((StringHash)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"StringHash");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(StringHash));
- tolua_pushusertype(tolua_S,tolua_obj,"StringHash");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetNameHash'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetMemoryUse of class Resource */
- #ifndef TOLUA_DISABLE_tolua_Resource_Resource_GetMemoryUse00
- static int tolua_Resource_Resource_GetMemoryUse00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const Resource",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const Resource* self = (const Resource*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMemoryUse'", NULL);
- #endif
- {
- unsigned tolua_ret = (unsigned) self->GetMemoryUse();
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetMemoryUse'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: ReleaseAllResources of class ResourceCache */
- #ifndef TOLUA_DISABLE_tolua_Resource_ResourceCache_ReleaseAllResources00
- static int tolua_Resource_ResourceCache_ReleaseAllResources00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"ResourceCache",0,&tolua_err) ||
- !tolua_isboolean(tolua_S,2,1,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- ResourceCache* self = (ResourceCache*) tolua_tousertype(tolua_S,1,0);
- bool force = ((bool) tolua_toboolean(tolua_S,2,false));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ReleaseAllResources'", NULL);
- #endif
- {
- self->ReleaseAllResources(force);
- }
- }
- return 0;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'ReleaseAllResources'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: ReloadResource of class ResourceCache */
- #ifndef TOLUA_DISABLE_tolua_Resource_ResourceCache_ReloadResource00
- static int tolua_Resource_ResourceCache_ReloadResource00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"ResourceCache",0,&tolua_err) ||
- !tolua_isusertype(tolua_S,2,"Resource",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- ResourceCache* self = (ResourceCache*) tolua_tousertype(tolua_S,1,0);
- Resource* resource = ((Resource*) tolua_tousertype(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ReloadResource'", NULL);
- #endif
- {
- bool tolua_ret = (bool) self->ReloadResource(resource);
- tolua_pushboolean(tolua_S,(bool)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'ReloadResource'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: SetMemoryBudget of class ResourceCache */
- #ifndef TOLUA_DISABLE_tolua_Resource_ResourceCache_SetMemoryBudget00
- static int tolua_Resource_ResourceCache_SetMemoryBudget00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"ResourceCache",0,&tolua_err) ||
- (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ShortStringHash",0,&tolua_err)) ||
- !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,4,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- ResourceCache* self = (ResourceCache*) tolua_tousertype(tolua_S,1,0);
- ShortStringHash type = *((ShortStringHash*) tolua_tousertype(tolua_S,2,0));
- unsigned budget = ((unsigned) tolua_tonumber(tolua_S,3,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMemoryBudget'", NULL);
- #endif
- {
- self->SetMemoryBudget(type,budget);
- }
- }
- return 0;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'SetMemoryBudget'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: SetAutoReloadResources of class ResourceCache */
- #ifndef TOLUA_DISABLE_tolua_Resource_ResourceCache_SetAutoReloadResources00
- static int tolua_Resource_ResourceCache_SetAutoReloadResources00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"ResourceCache",0,&tolua_err) ||
- !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- ResourceCache* self = (ResourceCache*) tolua_tousertype(tolua_S,1,0);
- bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAutoReloadResources'", NULL);
- #endif
- {
- self->SetAutoReloadResources(enable);
- }
- }
- return 0;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'SetAutoReloadResources'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: Exists of class ResourceCache */
- #ifndef TOLUA_DISABLE_tolua_Resource_ResourceCache_Exists00
- static int tolua_Resource_ResourceCache_Exists00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const ResourceCache",0,&tolua_err) ||
- (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const ResourceCache* self = (const ResourceCache*) tolua_tousertype(tolua_S,1,0);
- const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Exists'", NULL);
- #endif
- {
- bool tolua_ret = (bool) self->Exists(*name);
- tolua_pushboolean(tolua_S,(bool)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'Exists'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: Exists of class ResourceCache */
- #ifndef TOLUA_DISABLE_tolua_Resource_ResourceCache_Exists01
- static int tolua_Resource_ResourceCache_Exists01(lua_State* tolua_S)
- {
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const ResourceCache",0,&tolua_err) ||
- (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"StringHash",0,&tolua_err)) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- {
- const ResourceCache* self = (const ResourceCache*) tolua_tousertype(tolua_S,1,0);
- StringHash nameHash = *((StringHash*) tolua_tousertype(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Exists'", NULL);
- #endif
- {
- bool tolua_ret = (bool) self->Exists(nameHash);
- tolua_pushboolean(tolua_S,(bool)tolua_ret);
- }
- }
- return 1;
- tolua_lerror:
- return tolua_Resource_ResourceCache_Exists00(tolua_S);
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetMemoryBudget of class ResourceCache */
- #ifndef TOLUA_DISABLE_tolua_Resource_ResourceCache_GetMemoryBudget00
- static int tolua_Resource_ResourceCache_GetMemoryBudget00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const ResourceCache",0,&tolua_err) ||
- (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ShortStringHash",0,&tolua_err)) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const ResourceCache* self = (const ResourceCache*) tolua_tousertype(tolua_S,1,0);
- ShortStringHash type = *((ShortStringHash*) tolua_tousertype(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMemoryBudget'", NULL);
- #endif
- {
- unsigned tolua_ret = (unsigned) self->GetMemoryBudget(type);
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetMemoryBudget'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetMemoryUse of class ResourceCache */
- #ifndef TOLUA_DISABLE_tolua_Resource_ResourceCache_GetMemoryUse00
- static int tolua_Resource_ResourceCache_GetMemoryUse00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const ResourceCache",0,&tolua_err) ||
- (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ShortStringHash",0,&tolua_err)) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const ResourceCache* self = (const ResourceCache*) tolua_tousertype(tolua_S,1,0);
- ShortStringHash type = *((ShortStringHash*) tolua_tousertype(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMemoryUse'", NULL);
- #endif
- {
- unsigned tolua_ret = (unsigned) self->GetMemoryUse(type);
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetMemoryUse'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetTotalMemoryUse of class ResourceCache */
- #ifndef TOLUA_DISABLE_tolua_Resource_ResourceCache_GetTotalMemoryUse00
- static int tolua_Resource_ResourceCache_GetTotalMemoryUse00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const ResourceCache",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const ResourceCache* self = (const ResourceCache*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTotalMemoryUse'", NULL);
- #endif
- {
- unsigned tolua_ret = (unsigned) self->GetTotalMemoryUse();
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetTotalMemoryUse'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetResourceName of class ResourceCache */
- #ifndef TOLUA_DISABLE_tolua_Resource_ResourceCache_GetResourceName00
- static int tolua_Resource_ResourceCache_GetResourceName00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const ResourceCache",0,&tolua_err) ||
- (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"StringHash",0,&tolua_err)) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const ResourceCache* self = (const ResourceCache*) tolua_tousertype(tolua_S,1,0);
- StringHash nameHash = *((StringHash*) tolua_tousertype(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetResourceName'", NULL);
- #endif
- {
- const String& tolua_ret = (const String&) self->GetResourceName(nameHash);
- tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetResourceName'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetResourceFileName of class ResourceCache */
- #ifndef TOLUA_DISABLE_tolua_Resource_ResourceCache_GetResourceFileName00
- static int tolua_Resource_ResourceCache_GetResourceFileName00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const ResourceCache",0,&tolua_err) ||
- (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const ResourceCache* self = (const ResourceCache*) tolua_tousertype(tolua_S,1,0);
- const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetResourceFileName'", NULL);
- #endif
- {
- String tolua_ret = (String) self->GetResourceFileName(*name);
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((String)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"String");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(String));
- tolua_pushusertype(tolua_S,tolua_obj,"String");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetResourceFileName'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetAutoReloadResources of class ResourceCache */
- #ifndef TOLUA_DISABLE_tolua_Resource_ResourceCache_GetAutoReloadResources00
- static int tolua_Resource_ResourceCache_GetAutoReloadResources00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const ResourceCache",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const ResourceCache* self = (const ResourceCache*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAutoReloadResources'", NULL);
- #endif
- {
- bool tolua_ret = (bool) self->GetAutoReloadResources();
- tolua_pushboolean(tolua_S,(bool)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetAutoReloadResources'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: ResourceCacheGetAnimation of class ResourceCache */
- #ifndef TOLUA_DISABLE_tolua_Resource_ResourceCache_GetAnimation00
- static int tolua_Resource_ResourceCache_GetAnimation00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"ResourceCache",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- ResourceCache* self = (ResourceCache*) tolua_tousertype(tolua_S,1,0);
- const char* fileName = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ResourceCacheGetAnimation'", NULL);
- #endif
- {
- tolua_outside Animation* tolua_ret = (tolua_outside Animation*) ResourceCacheGetAnimation(self,fileName);
- tolua_pushusertype(tolua_S,(void*)tolua_ret,"Animation");
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetAnimation'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: ResourceCacheGetFont of class ResourceCache */
- #ifndef TOLUA_DISABLE_tolua_Resource_ResourceCache_GetFont00
- static int tolua_Resource_ResourceCache_GetFont00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"ResourceCache",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- ResourceCache* self = (ResourceCache*) tolua_tousertype(tolua_S,1,0);
- const char* fileName = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ResourceCacheGetFont'", NULL);
- #endif
- {
- tolua_outside Font* tolua_ret = (tolua_outside Font*) ResourceCacheGetFont(self,fileName);
- tolua_pushusertype(tolua_S,(void*)tolua_ret,"Font");
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetFont'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: ResourceCacheGetImage of class ResourceCache */
- #ifndef TOLUA_DISABLE_tolua_Resource_ResourceCache_GetImage00
- static int tolua_Resource_ResourceCache_GetImage00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"ResourceCache",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- ResourceCache* self = (ResourceCache*) tolua_tousertype(tolua_S,1,0);
- const char* fileName = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ResourceCacheGetImage'", NULL);
- #endif
- {
- tolua_outside Image* tolua_ret = (tolua_outside Image*) ResourceCacheGetImage(self,fileName);
- tolua_pushusertype(tolua_S,(void*)tolua_ret,"Image");
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetImage'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: ResourceCacheGetMaterial of class ResourceCache */
- #ifndef TOLUA_DISABLE_tolua_Resource_ResourceCache_GetMaterial00
- static int tolua_Resource_ResourceCache_GetMaterial00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"ResourceCache",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- ResourceCache* self = (ResourceCache*) tolua_tousertype(tolua_S,1,0);
- const char* fileName = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ResourceCacheGetMaterial'", NULL);
- #endif
- {
- tolua_outside Material* tolua_ret = (tolua_outside Material*) ResourceCacheGetMaterial(self,fileName);
- tolua_pushusertype(tolua_S,(void*)tolua_ret,"Material");
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetMaterial'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: ResourceCacheGetModel of class ResourceCache */
- #ifndef TOLUA_DISABLE_tolua_Resource_ResourceCache_GetModel00
- static int tolua_Resource_ResourceCache_GetModel00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"ResourceCache",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- ResourceCache* self = (ResourceCache*) tolua_tousertype(tolua_S,1,0);
- const char* fileName = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ResourceCacheGetModel'", NULL);
- #endif
- {
- tolua_outside Model* tolua_ret = (tolua_outside Model*) ResourceCacheGetModel(self,fileName);
- tolua_pushusertype(tolua_S,(void*)tolua_ret,"Model");
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetModel'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: ResourceCacheGetSound of class ResourceCache */
- #ifndef TOLUA_DISABLE_tolua_Resource_ResourceCache_GetSound00
- static int tolua_Resource_ResourceCache_GetSound00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"ResourceCache",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- ResourceCache* self = (ResourceCache*) tolua_tousertype(tolua_S,1,0);
- const char* fileName = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ResourceCacheGetSound'", NULL);
- #endif
- {
- tolua_outside Sound* tolua_ret = (tolua_outside Sound*) ResourceCacheGetSound(self,fileName);
- tolua_pushusertype(tolua_S,(void*)tolua_ret,"Sound");
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetSound'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: ResourceCacheGetTechnique of class ResourceCache */
- #ifndef TOLUA_DISABLE_tolua_Resource_ResourceCache_GetTechnique00
- static int tolua_Resource_ResourceCache_GetTechnique00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"ResourceCache",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- ResourceCache* self = (ResourceCache*) tolua_tousertype(tolua_S,1,0);
- const char* fileName = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ResourceCacheGetTechnique'", NULL);
- #endif
- {
- tolua_outside Technique* tolua_ret = (tolua_outside Technique*) ResourceCacheGetTechnique(self,fileName);
- tolua_pushusertype(tolua_S,(void*)tolua_ret,"Technique");
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetTechnique'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: ResourceCacheGetTexture2D of class ResourceCache */
- #ifndef TOLUA_DISABLE_tolua_Resource_ResourceCache_GetTexture2D00
- static int tolua_Resource_ResourceCache_GetTexture2D00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"ResourceCache",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- ResourceCache* self = (ResourceCache*) tolua_tousertype(tolua_S,1,0);
- const char* fileName = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ResourceCacheGetTexture2D'", NULL);
- #endif
- {
- tolua_outside Texture2D* tolua_ret = (tolua_outside Texture2D*) ResourceCacheGetTexture2D(self,fileName);
- tolua_pushusertype(tolua_S,(void*)tolua_ret,"Texture2D");
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetTexture2D'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: ResourceCacheGetTextureCube of class ResourceCache */
- #ifndef TOLUA_DISABLE_tolua_Resource_ResourceCache_GetTextureCube00
- static int tolua_Resource_ResourceCache_GetTextureCube00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"ResourceCache",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- ResourceCache* self = (ResourceCache*) tolua_tousertype(tolua_S,1,0);
- const char* fileName = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ResourceCacheGetTextureCube'", NULL);
- #endif
- {
- tolua_outside TextureCube* tolua_ret = (tolua_outside TextureCube*) ResourceCacheGetTextureCube(self,fileName);
- tolua_pushusertype(tolua_S,(void*)tolua_ret,"TextureCube");
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetTextureCube'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: ResourceCacheGetXMLFile of class ResourceCache */
- #ifndef TOLUA_DISABLE_tolua_Resource_ResourceCache_GetXMLFile00
- static int tolua_Resource_ResourceCache_GetXMLFile00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"ResourceCache",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- ResourceCache* self = (ResourceCache*) tolua_tousertype(tolua_S,1,0);
- const char* fileName = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ResourceCacheGetXMLFile'", NULL);
- #endif
- {
- tolua_outside XMLFile* tolua_ret = (tolua_outside XMLFile*) ResourceCacheGetXMLFile(self,fileName);
- tolua_pushusertype(tolua_S,(void*)tolua_ret,"XMLFile");
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetXMLFile'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* function: GetCache */
- #ifndef TOLUA_DISABLE_tolua_Resource_GetCache00
- static int tolua_Resource_GetCache00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isnoobj(tolua_S,1,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- {
- ResourceCache* tolua_ret = (ResourceCache*) GetCache();
- tolua_pushusertype(tolua_S,(void*)tolua_ret,"ResourceCache");
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetCache'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: IsNull of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_IsNull00
- static int tolua_Resource_XMLElement_IsNull00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsNull'", NULL);
- #endif
- {
- bool tolua_ret = (bool) self->IsNull();
- tolua_pushboolean(tolua_S,(bool)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'IsNull'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: NotNull of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_NotNull00
- static int tolua_Resource_XMLElement_NotNull00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'NotNull'", NULL);
- #endif
- {
- bool tolua_ret = (bool) self->NotNull();
- tolua_pushboolean(tolua_S,(bool)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'NotNull'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: operatorbool of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement__bool00
- static int tolua_Resource_XMLElement__bool00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operatorbool'", NULL);
- #endif
- {
- bool tolua_ret = (bool) self->operator bool();
- tolua_pushboolean(tolua_S,(bool)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function '.bool'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetName of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_GetName00
- static int tolua_Resource_XMLElement_GetName00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetName'", NULL);
- #endif
- {
- String tolua_ret = (String) self->GetName();
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((String)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"String");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(String));
- tolua_pushusertype(tolua_S,tolua_obj,"String");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetName'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: HasChild of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_HasChild00
- static int tolua_Resource_XMLElement_HasChild00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'HasChild'", NULL);
- #endif
- {
- bool tolua_ret = (bool) self->HasChild(name);
- tolua_pushboolean(tolua_S,(bool)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'HasChild'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: HasChild of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_HasChild01
- static int tolua_Resource_XMLElement_HasChild01(lua_State* tolua_S)
- {
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'HasChild'", NULL);
- #endif
- {
- bool tolua_ret = (bool) self->HasChild(name);
- tolua_pushboolean(tolua_S,(bool)tolua_ret);
- }
- }
- return 1;
- tolua_lerror:
- return tolua_Resource_XMLElement_HasChild00(tolua_S);
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetChild of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_GetChild00
- static int tolua_Resource_XMLElement_GetChild00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetChild'", NULL);
- #endif
- {
- XMLElement tolua_ret = (XMLElement) self->GetChild(name);
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((XMLElement)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"XMLElement");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(XMLElement));
- tolua_pushusertype(tolua_S,tolua_obj,"XMLElement");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetChild'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetChild of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_GetChild01
- static int tolua_Resource_XMLElement_GetChild01(lua_State* tolua_S)
- {
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetChild'", NULL);
- #endif
- {
- XMLElement tolua_ret = (XMLElement) self->GetChild(name);
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((XMLElement)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"XMLElement");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(XMLElement));
- tolua_pushusertype(tolua_S,tolua_obj,"XMLElement");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- tolua_lerror:
- return tolua_Resource_XMLElement_GetChild00(tolua_S);
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetNext of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_GetNext00
- static int tolua_Resource_XMLElement_GetNext00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNext'", NULL);
- #endif
- {
- XMLElement tolua_ret = (XMLElement) self->GetNext(name);
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((XMLElement)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"XMLElement");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(XMLElement));
- tolua_pushusertype(tolua_S,tolua_obj,"XMLElement");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetNext'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetNext of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_GetNext01
- static int tolua_Resource_XMLElement_GetNext01(lua_State* tolua_S)
- {
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNext'", NULL);
- #endif
- {
- XMLElement tolua_ret = (XMLElement) self->GetNext(name);
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((XMLElement)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"XMLElement");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(XMLElement));
- tolua_pushusertype(tolua_S,tolua_obj,"XMLElement");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- tolua_lerror:
- return tolua_Resource_XMLElement_GetNext00(tolua_S);
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetParent of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_GetParent00
- static int tolua_Resource_XMLElement_GetParent00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetParent'", NULL);
- #endif
- {
- XMLElement tolua_ret = (XMLElement) self->GetParent();
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((XMLElement)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"XMLElement");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(XMLElement));
- tolua_pushusertype(tolua_S,tolua_obj,"XMLElement");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetParent'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetNumAttributes of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_GetNumAttributes00
- static int tolua_Resource_XMLElement_GetNumAttributes00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumAttributes'", NULL);
- #endif
- {
- unsigned tolua_ret = (unsigned) self->GetNumAttributes();
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetNumAttributes'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: HasAttribute of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_HasAttribute00
- static int tolua_Resource_XMLElement_HasAttribute00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'HasAttribute'", NULL);
- #endif
- {
- bool tolua_ret = (bool) self->HasAttribute(name);
- tolua_pushboolean(tolua_S,(bool)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'HasAttribute'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: HasAttribute of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_HasAttribute01
- static int tolua_Resource_XMLElement_HasAttribute01(lua_State* tolua_S)
- {
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'HasAttribute'", NULL);
- #endif
- {
- bool tolua_ret = (bool) self->HasAttribute(name);
- tolua_pushboolean(tolua_S,(bool)tolua_ret);
- }
- }
- return 1;
- tolua_lerror:
- return tolua_Resource_XMLElement_HasAttribute00(tolua_S);
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetBool of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_GetBool00
- static int tolua_Resource_XMLElement_GetBool00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBool'", NULL);
- #endif
- {
- bool tolua_ret = (bool) self->GetBool(name);
- tolua_pushboolean(tolua_S,(bool)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetBool'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetBoundingBox of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_GetBoundingBox00
- static int tolua_Resource_XMLElement_GetBoundingBox00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBoundingBox'", NULL);
- #endif
- {
- BoundingBox tolua_ret = (BoundingBox) self->GetBoundingBox();
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((BoundingBox)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"BoundingBox");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(BoundingBox));
- tolua_pushusertype(tolua_S,tolua_obj,"BoundingBox");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetBoundingBox'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetColor of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_GetColor00
- static int tolua_Resource_XMLElement_GetColor00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetColor'", NULL);
- #endif
- {
- Color tolua_ret = (Color) self->GetColor(name);
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((Color)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"Color");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Color));
- tolua_pushusertype(tolua_S,tolua_obj,"Color");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetColor'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetFloat of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_GetFloat00
- static int tolua_Resource_XMLElement_GetFloat00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFloat'", NULL);
- #endif
- {
- float tolua_ret = (float) self->GetFloat(name);
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetFloat'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetUInt of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_GetUInt00
- static int tolua_Resource_XMLElement_GetUInt00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetUInt'", NULL);
- #endif
- {
- unsigned tolua_ret = (unsigned) self->GetUInt(name);
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetUInt'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetInt of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_GetInt00
- static int tolua_Resource_XMLElement_GetInt00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetInt'", NULL);
- #endif
- {
- int tolua_ret = (int) self->GetInt(name);
- tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetInt'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetIntRect of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_GetIntRect00
- static int tolua_Resource_XMLElement_GetIntRect00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetIntRect'", NULL);
- #endif
- {
- IntRect tolua_ret = (IntRect) self->GetIntRect(name);
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((IntRect)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"IntRect");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(IntRect));
- tolua_pushusertype(tolua_S,tolua_obj,"IntRect");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetIntRect'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetIntVector2 of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_GetIntVector200
- static int tolua_Resource_XMLElement_GetIntVector200(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetIntVector2'", NULL);
- #endif
- {
- IntVector2 tolua_ret = (IntVector2) self->GetIntVector2(name);
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((IntVector2)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"IntVector2");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(IntVector2));
- tolua_pushusertype(tolua_S,tolua_obj,"IntVector2");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetIntVector2'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetRect of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_GetRect00
- static int tolua_Resource_XMLElement_GetRect00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRect'", NULL);
- #endif
- {
- Rect tolua_ret = (Rect) self->GetRect(name);
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((Rect)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"Rect");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Rect));
- tolua_pushusertype(tolua_S,tolua_obj,"Rect");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetRect'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetQuaternion of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_GetQuaternion00
- static int tolua_Resource_XMLElement_GetQuaternion00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetQuaternion'", NULL);
- #endif
- {
- Quaternion tolua_ret = (Quaternion) self->GetQuaternion(name);
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((Quaternion)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"Quaternion");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Quaternion));
- tolua_pushusertype(tolua_S,tolua_obj,"Quaternion");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetQuaternion'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetResourceRef of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_GetResourceRef00
- static int tolua_Resource_XMLElement_GetResourceRef00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetResourceRef'", NULL);
- #endif
- {
- ResourceRef tolua_ret = (ResourceRef) self->GetResourceRef();
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((ResourceRef)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"ResourceRef");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(ResourceRef));
- tolua_pushusertype(tolua_S,tolua_obj,"ResourceRef");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetResourceRef'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetResourceRefList of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_GetResourceRefList00
- static int tolua_Resource_XMLElement_GetResourceRefList00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetResourceRefList'", NULL);
- #endif
- {
- ResourceRefList tolua_ret = (ResourceRefList) self->GetResourceRefList();
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((ResourceRefList)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"ResourceRefList");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(ResourceRefList));
- tolua_pushusertype(tolua_S,tolua_obj,"ResourceRefList");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetResourceRefList'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetVector2 of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_GetVector200
- static int tolua_Resource_XMLElement_GetVector200(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetVector2'", NULL);
- #endif
- {
- Vector2 tolua_ret = (Vector2) self->GetVector2(name);
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((Vector2)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"Vector2");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector2));
- tolua_pushusertype(tolua_S,tolua_obj,"Vector2");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetVector2'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetVector3 of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_GetVector300
- static int tolua_Resource_XMLElement_GetVector300(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetVector3'", NULL);
- #endif
- {
- Vector3 tolua_ret = (Vector3) self->GetVector3(name);
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
- tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetVector3'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetVector4 of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_GetVector400
- static int tolua_Resource_XMLElement_GetVector400(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetVector4'", NULL);
- #endif
- {
- Vector4 tolua_ret = (Vector4) self->GetVector4(name);
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((Vector4)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"Vector4");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector4));
- tolua_pushusertype(tolua_S,tolua_obj,"Vector4");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetVector4'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetVector of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_GetVector00
- static int tolua_Resource_XMLElement_GetVector00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isstring(tolua_S,2,0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- const char* name = ((const char*) tolua_tostring(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetVector'", NULL);
- #endif
- {
- Vector4 tolua_ret = (Vector4) self->GetVector(name);
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((Vector4)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"Vector4");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector4));
- tolua_pushusertype(tolua_S,tolua_obj,"Vector4");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetVector'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetFile of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLElement_GetFile00
- static int tolua_Resource_XMLElement_GetFile00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"const XMLElement",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- const XMLElement* self = (const XMLElement*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFile'", NULL);
- #endif
- {
- XMLFile* tolua_ret = (XMLFile*) self->GetFile();
- tolua_pushusertype(tolua_S,(void*)tolua_ret,"XMLFile");
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetFile'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* get function: EMPTY of class XMLElement */
- #ifndef TOLUA_DISABLE_tolua_get_XMLElement_EMPTY
- static int tolua_get_XMLElement_EMPTY(lua_State* tolua_S)
- {
- tolua_pushusertype(tolua_S,(void*)&XMLElement::EMPTY,"const XMLElement");
- return 1;
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetRoot of class XMLFile */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLFile_GetRoot00
- static int tolua_Resource_XMLFile_GetRoot00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"XMLFile",0,&tolua_err) ||
- !tolua_isnoobj(tolua_S,2,&tolua_err)
- )
- goto tolua_lerror;
- else
- #endif
- {
- XMLFile* self = (XMLFile*) tolua_tousertype(tolua_S,1,0);
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRoot'", NULL);
- #endif
- {
- XMLElement tolua_ret = (XMLElement) self->GetRoot();
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((XMLElement)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"XMLElement");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(XMLElement));
- tolua_pushusertype(tolua_S,tolua_obj,"XMLElement");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'GetRoot'.",&tolua_err);
- return 0;
- #endif
- }
- #endif //#ifndef TOLUA_DISABLE
- /* method: GetRoot of class XMLFile */
- #ifndef TOLUA_DISABLE_tolua_Resource_XMLFile_GetRoot01
- static int tolua_Resource_XMLFile_GetRoot01(lua_State* tolua_S)
- {
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"XMLFile",0,&tolua_err) ||
- (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
- !tolua_isnoobj(tolua_S,3,&tolua_err)
- )
- goto tolua_lerror;
- else
- {
- XMLFile* self = (XMLFile*) tolua_tousertype(tolua_S,1,0);
- const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
- #ifndef TOLUA_RELEASE
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRoot'", NULL);
- #endif
- {
- XMLElement tolua_ret = (XMLElement) self->GetRoot(*name);
- {
- #ifdef __cplusplus
- void* tolua_obj = Mtolua_new((XMLElement)(tolua_ret));
- tolua_pushusertype(tolua_S,tolua_obj,"XMLElement");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #else
- void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(XMLElement));
- tolua_pushusertype(tolua_S,tolua_obj,"XMLElement");
- tolua_register_gc(tolua_S,lua_gettop(tolua_S));
- #endif
- }
- }
- }
- return 1;
- tolua_lerror:
- return tolua_Resource_XMLFile_GetRoot00(tolua_S);
- }
- #endif //#ifndef TOLUA_DISABLE
- /* Open function */
- TOLUA_API int tolua_Resource_open (lua_State* tolua_S)
- {
- tolua_open(tolua_S);
- tolua_reg_types(tolua_S);
- tolua_module(tolua_S,NULL,0);
- tolua_beginmodule(tolua_S,NULL);
- tolua_constant(tolua_S,"CF_NONE",CF_NONE);
- tolua_constant(tolua_S,"CF_DXT1",CF_DXT1);
- tolua_constant(tolua_S,"CF_DXT3",CF_DXT3);
- tolua_constant(tolua_S,"CF_DXT5",CF_DXT5);
- tolua_constant(tolua_S,"CF_ETC1",CF_ETC1);
- tolua_constant(tolua_S,"CF_PVRTC_RGB_2BPP",CF_PVRTC_RGB_2BPP);
- tolua_constant(tolua_S,"CF_PVRTC_RGBA_2BPP",CF_PVRTC_RGBA_2BPP);
- tolua_constant(tolua_S,"CF_PVRTC_RGB_4BPP",CF_PVRTC_RGB_4BPP);
- tolua_constant(tolua_S,"CF_PVRTC_RGBA_4BPP",CF_PVRTC_RGBA_4BPP);
- tolua_cclass(tolua_S,"Image","Image","Resource",NULL);
- tolua_beginmodule(tolua_S,"Image");
- tolua_function(tolua_S,"FlipVertical",tolua_Resource_Image_FlipVertical00);
- tolua_function(tolua_S,"SaveBMP",tolua_Resource_Image_SaveBMP00);
- tolua_function(tolua_S,"SavePNG",tolua_Resource_Image_SavePNG00);
- tolua_function(tolua_S,"SaveTGA",tolua_Resource_Image_SaveTGA00);
- tolua_function(tolua_S,"SaveJPG",tolua_Resource_Image_SaveJPG00);
- tolua_function(tolua_S,"GetWidth",tolua_Resource_Image_GetWidth00);
- tolua_function(tolua_S,"GetHeight",tolua_Resource_Image_GetHeight00);
- tolua_function(tolua_S,"GetComponents",tolua_Resource_Image_GetComponents00);
- tolua_function(tolua_S,"IsCompressed",tolua_Resource_Image_IsCompressed00);
- tolua_function(tolua_S,"GetCompressedFormat",tolua_Resource_Image_GetCompressedFormat00);
- tolua_function(tolua_S,"GetNumCompressedLevels",tolua_Resource_Image_GetNumCompressedLevels00);
- tolua_endmodule(tolua_S);
- tolua_cclass(tolua_S,"Resource","Resource","",NULL);
- tolua_beginmodule(tolua_S,"Resource");
- tolua_function(tolua_S,"GetName",tolua_Resource_Resource_GetName00);
- tolua_function(tolua_S,"GetNameHash",tolua_Resource_Resource_GetNameHash00);
- tolua_function(tolua_S,"GetMemoryUse",tolua_Resource_Resource_GetMemoryUse00);
- tolua_endmodule(tolua_S);
- tolua_cclass(tolua_S,"ResourceCache","ResourceCache","",NULL);
- tolua_beginmodule(tolua_S,"ResourceCache");
- tolua_function(tolua_S,"ReleaseAllResources",tolua_Resource_ResourceCache_ReleaseAllResources00);
- tolua_function(tolua_S,"ReloadResource",tolua_Resource_ResourceCache_ReloadResource00);
- tolua_function(tolua_S,"SetMemoryBudget",tolua_Resource_ResourceCache_SetMemoryBudget00);
- tolua_function(tolua_S,"SetAutoReloadResources",tolua_Resource_ResourceCache_SetAutoReloadResources00);
- tolua_function(tolua_S,"Exists",tolua_Resource_ResourceCache_Exists00);
- tolua_function(tolua_S,"Exists",tolua_Resource_ResourceCache_Exists01);
- tolua_function(tolua_S,"GetMemoryBudget",tolua_Resource_ResourceCache_GetMemoryBudget00);
- tolua_function(tolua_S,"GetMemoryUse",tolua_Resource_ResourceCache_GetMemoryUse00);
- tolua_function(tolua_S,"GetTotalMemoryUse",tolua_Resource_ResourceCache_GetTotalMemoryUse00);
- tolua_function(tolua_S,"GetResourceName",tolua_Resource_ResourceCache_GetResourceName00);
- tolua_function(tolua_S,"GetResourceFileName",tolua_Resource_ResourceCache_GetResourceFileName00);
- tolua_function(tolua_S,"GetAutoReloadResources",tolua_Resource_ResourceCache_GetAutoReloadResources00);
- tolua_function(tolua_S,"GetAnimation",tolua_Resource_ResourceCache_GetAnimation00);
- tolua_function(tolua_S,"GetFont",tolua_Resource_ResourceCache_GetFont00);
- tolua_function(tolua_S,"GetImage",tolua_Resource_ResourceCache_GetImage00);
- tolua_function(tolua_S,"GetMaterial",tolua_Resource_ResourceCache_GetMaterial00);
- tolua_function(tolua_S,"GetModel",tolua_Resource_ResourceCache_GetModel00);
- tolua_function(tolua_S,"GetSound",tolua_Resource_ResourceCache_GetSound00);
- tolua_function(tolua_S,"GetTechnique",tolua_Resource_ResourceCache_GetTechnique00);
- tolua_function(tolua_S,"GetTexture2D",tolua_Resource_ResourceCache_GetTexture2D00);
- tolua_function(tolua_S,"GetTextureCube",tolua_Resource_ResourceCache_GetTextureCube00);
- tolua_function(tolua_S,"GetXMLFile",tolua_Resource_ResourceCache_GetXMLFile00);
- tolua_endmodule(tolua_S);
- tolua_function(tolua_S,"GetCache",tolua_Resource_GetCache00);
- #ifdef __cplusplus
- tolua_cclass(tolua_S,"XMLElement","XMLElement","",tolua_collect_XMLElement);
- #else
- tolua_cclass(tolua_S,"XMLElement","XMLElement","",NULL);
- #endif
- tolua_beginmodule(tolua_S,"XMLElement");
- tolua_function(tolua_S,"IsNull",tolua_Resource_XMLElement_IsNull00);
- tolua_function(tolua_S,"NotNull",tolua_Resource_XMLElement_NotNull00);
- tolua_function(tolua_S,".bool",tolua_Resource_XMLElement__bool00);
- tolua_function(tolua_S,"GetName",tolua_Resource_XMLElement_GetName00);
- tolua_function(tolua_S,"HasChild",tolua_Resource_XMLElement_HasChild00);
- tolua_function(tolua_S,"HasChild",tolua_Resource_XMLElement_HasChild01);
- tolua_function(tolua_S,"GetChild",tolua_Resource_XMLElement_GetChild00);
- tolua_function(tolua_S,"GetChild",tolua_Resource_XMLElement_GetChild01);
- tolua_function(tolua_S,"GetNext",tolua_Resource_XMLElement_GetNext00);
- tolua_function(tolua_S,"GetNext",tolua_Resource_XMLElement_GetNext01);
- tolua_function(tolua_S,"GetParent",tolua_Resource_XMLElement_GetParent00);
- tolua_function(tolua_S,"GetNumAttributes",tolua_Resource_XMLElement_GetNumAttributes00);
- tolua_function(tolua_S,"HasAttribute",tolua_Resource_XMLElement_HasAttribute00);
- tolua_function(tolua_S,"HasAttribute",tolua_Resource_XMLElement_HasAttribute01);
- tolua_function(tolua_S,"GetBool",tolua_Resource_XMLElement_GetBool00);
- tolua_function(tolua_S,"GetBoundingBox",tolua_Resource_XMLElement_GetBoundingBox00);
- tolua_function(tolua_S,"GetColor",tolua_Resource_XMLElement_GetColor00);
- tolua_function(tolua_S,"GetFloat",tolua_Resource_XMLElement_GetFloat00);
- tolua_function(tolua_S,"GetUInt",tolua_Resource_XMLElement_GetUInt00);
- tolua_function(tolua_S,"GetInt",tolua_Resource_XMLElement_GetInt00);
- tolua_function(tolua_S,"GetIntRect",tolua_Resource_XMLElement_GetIntRect00);
- tolua_function(tolua_S,"GetIntVector2",tolua_Resource_XMLElement_GetIntVector200);
- tolua_function(tolua_S,"GetRect",tolua_Resource_XMLElement_GetRect00);
- tolua_function(tolua_S,"GetQuaternion",tolua_Resource_XMLElement_GetQuaternion00);
- tolua_function(tolua_S,"GetResourceRef",tolua_Resource_XMLElement_GetResourceRef00);
- tolua_function(tolua_S,"GetResourceRefList",tolua_Resource_XMLElement_GetResourceRefList00);
- tolua_function(tolua_S,"GetVector2",tolua_Resource_XMLElement_GetVector200);
- tolua_function(tolua_S,"GetVector3",tolua_Resource_XMLElement_GetVector300);
- tolua_function(tolua_S,"GetVector4",tolua_Resource_XMLElement_GetVector400);
- tolua_function(tolua_S,"GetVector",tolua_Resource_XMLElement_GetVector00);
- tolua_function(tolua_S,"GetFile",tolua_Resource_XMLElement_GetFile00);
- tolua_variable(tolua_S,"EMPTY",tolua_get_XMLElement_EMPTY,NULL);
- tolua_endmodule(tolua_S);
- tolua_cclass(tolua_S,"XMLFile","XMLFile","Resource",NULL);
- tolua_beginmodule(tolua_S,"XMLFile");
- tolua_function(tolua_S,"GetRoot",tolua_Resource_XMLFile_GetRoot00);
- tolua_function(tolua_S,"GetRoot",tolua_Resource_XMLFile_GetRoot01);
- tolua_endmodule(tolua_S);
- tolua_endmodule(tolua_S);
- return 1;
- }
- #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
- TOLUA_API int luaopen_Resource (lua_State* tolua_S) {
- return tolua_Resource_open(tolua_S);
- };
- #endif
|