| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823 |
- /*
- ** Lua binding: Resource
- ** Generated automatically by tolua++-1.0.92 on 06/30/13 11:31:51.
- */
- //
- // 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: SetName of class Resource */
- #ifndef TOLUA_DISABLE_tolua_Resource_Resource_SetName00
- static int tolua_Resource_Resource_SetName00(lua_State* tolua_S)
- {
- #ifndef TOLUA_RELEASE
- tolua_Error tolua_err;
- if (
- !tolua_isusertype(tolua_S,1,"Resource",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
- {
- Resource* self = (Resource*) 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 'SetName'", NULL);
- #endif
- {
- self->SetName(*name);
- }
- }
- return 0;
- #ifndef TOLUA_RELEASE
- tolua_lerror:
- tolua_error(tolua_S,"#ferror in function 'SetName'.",&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_endmodule(tolua_S);
- tolua_cclass(tolua_S,"Resource","Resource","",NULL);
- tolua_beginmodule(tolua_S,"Resource");
- tolua_function(tolua_S,"SetName",tolua_Resource_Resource_SetName00);
- 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
|