GraphicsLuaAPI.cpp 641 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804
  1. /*
  2. ** Lua binding: Graphics
  3. ** Generated automatically by tolua++-1.0.92 on 07/02/13 20:27:49.
  4. */
  5. //
  6. // Copyright (c) 2008-2013 the Urho3D project.
  7. //
  8. // Permission is hereby granted, free of charge, to any person obtaining a copy
  9. // of this software and associated documentation files (the "Software"), to deal
  10. // in the Software without restriction, including without limitation the rights
  11. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  12. // copies of the Software, and to permit persons to whom the Software is
  13. // furnished to do so, subject to the following conditions:
  14. //
  15. // The above copyright notice and this permission notice shall be included in
  16. // all copies or substantial portions of the Software.
  17. //
  18. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  19. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  20. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  21. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  22. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  23. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  24. // THE SOFTWARE.
  25. //
  26. #include "Precompiled.h"
  27. #include "tolua++.h"
  28. /* Exported function */
  29. TOLUA_API int tolua_Graphics_open (lua_State* tolua_S);
  30. #define TOLUA_RELEASE
  31. #include "GraphicsLuaAPI.h"
  32. #include "AnimatedModel.h"
  33. #include "Animation.h"
  34. #include "AnimationController.h"
  35. #include "AnimationState.h"
  36. #include "BillboardSet.h"
  37. #include "Camera.h"
  38. #include "DebugRenderer.h"
  39. #include "DecalSet.h"
  40. #include "Drawable.h"
  41. #include "Graphics.h"
  42. #include "GraphicsDefs.h"
  43. #include "Light.h"
  44. #include "Material.h"
  45. #include "Model.h"
  46. #include "Octree.h"
  47. #include "ParticleEmitter.h"
  48. #include "Renderer.h"
  49. #include "RenderSurface.h"
  50. #include "Skeleton.h"
  51. #include "Skybox.h"
  52. #include "StaticModel.h"
  53. #include "Technique.h"
  54. #include "Terrain.h"
  55. #include "TerrainPatch.h"
  56. #include "Texture.h"
  57. #include "Texture2D.h"
  58. #include "TextureCube.h"
  59. #include "Zone.h"
  60. using namespace Urho3D;
  61. #pragma warning(disable:4800)
  62. /* function to release collected object via destructor */
  63. #ifdef __cplusplus
  64. static int tolua_collect_ColorFrame (lua_State* tolua_S)
  65. {
  66. ColorFrame* self = (ColorFrame*) tolua_tousertype(tolua_S,1,0);
  67. Mtolua_delete(self);
  68. return 0;
  69. }
  70. static int tolua_collect_String (lua_State* tolua_S)
  71. {
  72. String* self = (String*) tolua_tousertype(tolua_S,1,0);
  73. Mtolua_delete(self);
  74. return 0;
  75. }
  76. static int tolua_collect_Color (lua_State* tolua_S)
  77. {
  78. Color* self = (Color*) tolua_tousertype(tolua_S,1,0);
  79. Mtolua_delete(self);
  80. return 0;
  81. }
  82. static int tolua_collect_AnimationState (lua_State* tolua_S)
  83. {
  84. AnimationState* self = (AnimationState*) tolua_tousertype(tolua_S,1,0);
  85. Mtolua_delete(self);
  86. return 0;
  87. }
  88. static int tolua_collect_StringHash (lua_State* tolua_S)
  89. {
  90. StringHash* self = (StringHash*) tolua_tousertype(tolua_S,1,0);
  91. Mtolua_delete(self);
  92. return 0;
  93. }
  94. static int tolua_collect_Ray (lua_State* tolua_S)
  95. {
  96. Ray* self = (Ray*) tolua_tousertype(tolua_S,1,0);
  97. Mtolua_delete(self);
  98. return 0;
  99. }
  100. static int tolua_collect_Frustum (lua_State* tolua_S)
  101. {
  102. Frustum* self = (Frustum*) tolua_tousertype(tolua_S,1,0);
  103. Mtolua_delete(self);
  104. return 0;
  105. }
  106. static int tolua_collect_Vector2 (lua_State* tolua_S)
  107. {
  108. Vector2* self = (Vector2*) tolua_tousertype(tolua_S,1,0);
  109. Mtolua_delete(self);
  110. return 0;
  111. }
  112. static int tolua_collect_TextureFrame (lua_State* tolua_S)
  113. {
  114. TextureFrame* self = (TextureFrame*) tolua_tousertype(tolua_S,1,0);
  115. Mtolua_delete(self);
  116. return 0;
  117. }
  118. static int tolua_collect_Bone (lua_State* tolua_S)
  119. {
  120. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  121. Mtolua_delete(self);
  122. return 0;
  123. }
  124. static int tolua_collect_Matrix4 (lua_State* tolua_S)
  125. {
  126. Matrix4* self = (Matrix4*) tolua_tousertype(tolua_S,1,0);
  127. Mtolua_delete(self);
  128. return 0;
  129. }
  130. static int tolua_collect_Vector3 (lua_State* tolua_S)
  131. {
  132. Vector3* self = (Vector3*) tolua_tousertype(tolua_S,1,0);
  133. Mtolua_delete(self);
  134. return 0;
  135. }
  136. #endif
  137. /* function to register type */
  138. static void tolua_reg_types (lua_State* tolua_S)
  139. {
  140. tolua_usertype(tolua_S,"ColorFrame");
  141. tolua_usertype(tolua_S,"Octant");
  142. tolua_usertype(tolua_S,"Component");
  143. tolua_usertype(tolua_S,"SharedPtr<Texture>");
  144. tolua_usertype(tolua_S,"Node");
  145. tolua_usertype(tolua_S,"Light");
  146. tolua_usertype(tolua_S,"Pass");
  147. tolua_usertype(tolua_S,"Texture2D");
  148. tolua_usertype(tolua_S,"Graphics");
  149. tolua_usertype(tolua_S,"IntVector2");
  150. tolua_usertype(tolua_S,"AnimationController");
  151. tolua_usertype(tolua_S,"String");
  152. tolua_usertype(tolua_S,"ParticleEmitter");
  153. tolua_usertype(tolua_S,"Color");
  154. tolua_usertype(tolua_S,"Image");
  155. tolua_usertype(tolua_S,"FrameInfo");
  156. tolua_usertype(tolua_S,"Material");
  157. tolua_usertype(tolua_S,"TechniqueEntry");
  158. tolua_usertype(tolua_S,"Vector4");
  159. tolua_usertype(tolua_S,"DecalSet");
  160. tolua_usertype(tolua_S,"StaticModel");
  161. tolua_usertype(tolua_S,"Animation");
  162. tolua_usertype(tolua_S,"VertexBuffer");
  163. tolua_usertype(tolua_S,"Ray");
  164. tolua_usertype(tolua_S,"Sphere");
  165. tolua_usertype(tolua_S,"Frustum");
  166. tolua_usertype(tolua_S,"Vector2");
  167. tolua_usertype(tolua_S,"Matrix3x4");
  168. tolua_usertype(tolua_S,"CascadeParameters");
  169. tolua_usertype(tolua_S,"Skeleton");
  170. tolua_usertype(tolua_S,"Bone");
  171. tolua_usertype(tolua_S,"Renderer");
  172. tolua_usertype(tolua_S,"Vector3");
  173. tolua_usertype(tolua_S,"Billboard");
  174. tolua_usertype(tolua_S,"Terrain");
  175. tolua_usertype(tolua_S,"AnimationState");
  176. tolua_usertype(tolua_S,"ModelMorph");
  177. tolua_usertype(tolua_S,"Camera");
  178. tolua_usertype(tolua_S,"Object");
  179. tolua_usertype(tolua_S,"TextureFrame");
  180. tolua_usertype(tolua_S,"Geometry");
  181. tolua_usertype(tolua_S,"Quaternion");
  182. tolua_usertype(tolua_S,"AnimatedModel");
  183. tolua_usertype(tolua_S,"OctreeQuery");
  184. tolua_usertype(tolua_S,"Zone");
  185. tolua_usertype(tolua_S,"RenderSurface");
  186. tolua_usertype(tolua_S,"TextureCube");
  187. tolua_usertype(tolua_S,"Texture");
  188. tolua_usertype(tolua_S,"Drawable");
  189. tolua_usertype(tolua_S,"TerrainPatch");
  190. tolua_usertype(tolua_S,"DebugRenderer");
  191. tolua_usertype(tolua_S,"BiasParameters");
  192. tolua_usertype(tolua_S,"ShaderVariation");
  193. tolua_usertype(tolua_S,"BoundingBox");
  194. tolua_usertype(tolua_S,"Viewport");
  195. tolua_usertype(tolua_S,"AnimationTrack");
  196. tolua_usertype(tolua_S,"Technique");
  197. tolua_usertype(tolua_S,"Skybox");
  198. tolua_usertype(tolua_S,"Octree");
  199. tolua_usertype(tolua_S,"StringHash");
  200. tolua_usertype(tolua_S,"BillboardSet");
  201. tolua_usertype(tolua_S,"Polyhedron");
  202. tolua_usertype(tolua_S,"RayOctreeQuery");
  203. tolua_usertype(tolua_S,"Rect");
  204. tolua_usertype(tolua_S,"XMLFile");
  205. tolua_usertype(tolua_S,"FocusParameters");
  206. tolua_usertype(tolua_S,"Matrix4");
  207. tolua_usertype(tolua_S,"Resource");
  208. tolua_usertype(tolua_S,"RenderPath");
  209. tolua_usertype(tolua_S,"Model");
  210. }
  211. /* method: SetModel of class AnimatedModel */
  212. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_SetModel00
  213. static int tolua_Graphics_AnimatedModel_SetModel00(lua_State* tolua_S)
  214. {
  215. #ifndef TOLUA_RELEASE
  216. tolua_Error tolua_err;
  217. if (
  218. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  219. !tolua_isusertype(tolua_S,2,"Model",0,&tolua_err) ||
  220. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  221. !tolua_isnoobj(tolua_S,4,&tolua_err)
  222. )
  223. goto tolua_lerror;
  224. else
  225. #endif
  226. {
  227. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  228. Model* model = ((Model*) tolua_tousertype(tolua_S,2,0));
  229. bool createBones = ((bool) tolua_toboolean(tolua_S,3,true));
  230. #ifndef TOLUA_RELEASE
  231. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetModel'", NULL);
  232. #endif
  233. {
  234. self->SetModel(model,createBones);
  235. }
  236. }
  237. return 0;
  238. #ifndef TOLUA_RELEASE
  239. tolua_lerror:
  240. tolua_error(tolua_S,"#ferror in function 'SetModel'.",&tolua_err);
  241. return 0;
  242. #endif
  243. }
  244. #endif //#ifndef TOLUA_DISABLE
  245. /* method: AddAnimationState of class AnimatedModel */
  246. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_AddAnimationState00
  247. static int tolua_Graphics_AnimatedModel_AddAnimationState00(lua_State* tolua_S)
  248. {
  249. #ifndef TOLUA_RELEASE
  250. tolua_Error tolua_err;
  251. if (
  252. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  253. !tolua_isusertype(tolua_S,2,"Animation",0,&tolua_err) ||
  254. !tolua_isnoobj(tolua_S,3,&tolua_err)
  255. )
  256. goto tolua_lerror;
  257. else
  258. #endif
  259. {
  260. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  261. Animation* animation = ((Animation*) tolua_tousertype(tolua_S,2,0));
  262. #ifndef TOLUA_RELEASE
  263. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddAnimationState'", NULL);
  264. #endif
  265. {
  266. AnimationState* tolua_ret = (AnimationState*) self->AddAnimationState(animation);
  267. tolua_pushusertype(tolua_S,(void*)tolua_ret,"AnimationState");
  268. }
  269. }
  270. return 1;
  271. #ifndef TOLUA_RELEASE
  272. tolua_lerror:
  273. tolua_error(tolua_S,"#ferror in function 'AddAnimationState'.",&tolua_err);
  274. return 0;
  275. #endif
  276. }
  277. #endif //#ifndef TOLUA_DISABLE
  278. /* method: RemoveAnimationState of class AnimatedModel */
  279. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_RemoveAnimationState00
  280. static int tolua_Graphics_AnimatedModel_RemoveAnimationState00(lua_State* tolua_S)
  281. {
  282. #ifndef TOLUA_RELEASE
  283. tolua_Error tolua_err;
  284. if (
  285. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  286. !tolua_isusertype(tolua_S,2,"Animation",0,&tolua_err) ||
  287. !tolua_isnoobj(tolua_S,3,&tolua_err)
  288. )
  289. goto tolua_lerror;
  290. else
  291. #endif
  292. {
  293. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  294. Animation* animation = ((Animation*) tolua_tousertype(tolua_S,2,0));
  295. #ifndef TOLUA_RELEASE
  296. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveAnimationState'", NULL);
  297. #endif
  298. {
  299. self->RemoveAnimationState(animation);
  300. }
  301. }
  302. return 0;
  303. #ifndef TOLUA_RELEASE
  304. tolua_lerror:
  305. tolua_error(tolua_S,"#ferror in function 'RemoveAnimationState'.",&tolua_err);
  306. return 0;
  307. #endif
  308. }
  309. #endif //#ifndef TOLUA_DISABLE
  310. /* method: RemoveAnimationState of class AnimatedModel */
  311. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_RemoveAnimationState01
  312. static int tolua_Graphics_AnimatedModel_RemoveAnimationState01(lua_State* tolua_S)
  313. {
  314. tolua_Error tolua_err;
  315. if (
  316. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  317. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  318. !tolua_isnoobj(tolua_S,3,&tolua_err)
  319. )
  320. goto tolua_lerror;
  321. else
  322. {
  323. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  324. const String* animationName = ((const String*) tolua_tousertype(tolua_S,2,0));
  325. #ifndef TOLUA_RELEASE
  326. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveAnimationState'", NULL);
  327. #endif
  328. {
  329. self->RemoveAnimationState(*animationName);
  330. }
  331. }
  332. return 0;
  333. tolua_lerror:
  334. return tolua_Graphics_AnimatedModel_RemoveAnimationState00(tolua_S);
  335. }
  336. #endif //#ifndef TOLUA_DISABLE
  337. /* method: RemoveAnimationState of class AnimatedModel */
  338. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_RemoveAnimationState02
  339. static int tolua_Graphics_AnimatedModel_RemoveAnimationState02(lua_State* tolua_S)
  340. {
  341. tolua_Error tolua_err;
  342. if (
  343. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  344. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"StringHash",0,&tolua_err)) ||
  345. !tolua_isnoobj(tolua_S,3,&tolua_err)
  346. )
  347. goto tolua_lerror;
  348. else
  349. {
  350. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  351. StringHash animationNameHash = *((StringHash*) tolua_tousertype(tolua_S,2,0));
  352. #ifndef TOLUA_RELEASE
  353. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveAnimationState'", NULL);
  354. #endif
  355. {
  356. self->RemoveAnimationState(animationNameHash);
  357. }
  358. }
  359. return 0;
  360. tolua_lerror:
  361. return tolua_Graphics_AnimatedModel_RemoveAnimationState01(tolua_S);
  362. }
  363. #endif //#ifndef TOLUA_DISABLE
  364. /* method: RemoveAnimationState of class AnimatedModel */
  365. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_RemoveAnimationState03
  366. static int tolua_Graphics_AnimatedModel_RemoveAnimationState03(lua_State* tolua_S)
  367. {
  368. tolua_Error tolua_err;
  369. if (
  370. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  371. !tolua_isusertype(tolua_S,2,"AnimationState",0,&tolua_err) ||
  372. !tolua_isnoobj(tolua_S,3,&tolua_err)
  373. )
  374. goto tolua_lerror;
  375. else
  376. {
  377. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  378. AnimationState* state = ((AnimationState*) tolua_tousertype(tolua_S,2,0));
  379. #ifndef TOLUA_RELEASE
  380. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveAnimationState'", NULL);
  381. #endif
  382. {
  383. self->RemoveAnimationState(state);
  384. }
  385. }
  386. return 0;
  387. tolua_lerror:
  388. return tolua_Graphics_AnimatedModel_RemoveAnimationState02(tolua_S);
  389. }
  390. #endif //#ifndef TOLUA_DISABLE
  391. /* method: RemoveAnimationState of class AnimatedModel */
  392. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_RemoveAnimationState04
  393. static int tolua_Graphics_AnimatedModel_RemoveAnimationState04(lua_State* tolua_S)
  394. {
  395. tolua_Error tolua_err;
  396. if (
  397. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  398. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  399. !tolua_isnoobj(tolua_S,3,&tolua_err)
  400. )
  401. goto tolua_lerror;
  402. else
  403. {
  404. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  405. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  406. #ifndef TOLUA_RELEASE
  407. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveAnimationState'", NULL);
  408. #endif
  409. {
  410. self->RemoveAnimationState(index);
  411. }
  412. }
  413. return 0;
  414. tolua_lerror:
  415. return tolua_Graphics_AnimatedModel_RemoveAnimationState03(tolua_S);
  416. }
  417. #endif //#ifndef TOLUA_DISABLE
  418. /* method: RemoveAllAnimationStates of class AnimatedModel */
  419. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_RemoveAllAnimationStates00
  420. static int tolua_Graphics_AnimatedModel_RemoveAllAnimationStates00(lua_State* tolua_S)
  421. {
  422. #ifndef TOLUA_RELEASE
  423. tolua_Error tolua_err;
  424. if (
  425. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  426. !tolua_isnoobj(tolua_S,2,&tolua_err)
  427. )
  428. goto tolua_lerror;
  429. else
  430. #endif
  431. {
  432. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  433. #ifndef TOLUA_RELEASE
  434. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveAllAnimationStates'", NULL);
  435. #endif
  436. {
  437. self->RemoveAllAnimationStates();
  438. }
  439. }
  440. return 0;
  441. #ifndef TOLUA_RELEASE
  442. tolua_lerror:
  443. tolua_error(tolua_S,"#ferror in function 'RemoveAllAnimationStates'.",&tolua_err);
  444. return 0;
  445. #endif
  446. }
  447. #endif //#ifndef TOLUA_DISABLE
  448. /* method: SetAnimationLodBias of class AnimatedModel */
  449. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_SetAnimationLodBias00
  450. static int tolua_Graphics_AnimatedModel_SetAnimationLodBias00(lua_State* tolua_S)
  451. {
  452. #ifndef TOLUA_RELEASE
  453. tolua_Error tolua_err;
  454. if (
  455. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  456. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  457. !tolua_isnoobj(tolua_S,3,&tolua_err)
  458. )
  459. goto tolua_lerror;
  460. else
  461. #endif
  462. {
  463. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  464. float bias = ((float) tolua_tonumber(tolua_S,2,0));
  465. #ifndef TOLUA_RELEASE
  466. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAnimationLodBias'", NULL);
  467. #endif
  468. {
  469. self->SetAnimationLodBias(bias);
  470. }
  471. }
  472. return 0;
  473. #ifndef TOLUA_RELEASE
  474. tolua_lerror:
  475. tolua_error(tolua_S,"#ferror in function 'SetAnimationLodBias'.",&tolua_err);
  476. return 0;
  477. #endif
  478. }
  479. #endif //#ifndef TOLUA_DISABLE
  480. /* method: SetInvisibleLodFactor of class AnimatedModel */
  481. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_SetInvisibleLodFactor00
  482. static int tolua_Graphics_AnimatedModel_SetInvisibleLodFactor00(lua_State* tolua_S)
  483. {
  484. #ifndef TOLUA_RELEASE
  485. tolua_Error tolua_err;
  486. if (
  487. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  488. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  489. !tolua_isnoobj(tolua_S,3,&tolua_err)
  490. )
  491. goto tolua_lerror;
  492. else
  493. #endif
  494. {
  495. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  496. float factor = ((float) tolua_tonumber(tolua_S,2,0));
  497. #ifndef TOLUA_RELEASE
  498. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetInvisibleLodFactor'", NULL);
  499. #endif
  500. {
  501. self->SetInvisibleLodFactor(factor);
  502. }
  503. }
  504. return 0;
  505. #ifndef TOLUA_RELEASE
  506. tolua_lerror:
  507. tolua_error(tolua_S,"#ferror in function 'SetInvisibleLodFactor'.",&tolua_err);
  508. return 0;
  509. #endif
  510. }
  511. #endif //#ifndef TOLUA_DISABLE
  512. /* method: SetMorphWeight of class AnimatedModel */
  513. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_SetMorphWeight00
  514. static int tolua_Graphics_AnimatedModel_SetMorphWeight00(lua_State* tolua_S)
  515. {
  516. #ifndef TOLUA_RELEASE
  517. tolua_Error tolua_err;
  518. if (
  519. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  520. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  521. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  522. !tolua_isnoobj(tolua_S,4,&tolua_err)
  523. )
  524. goto tolua_lerror;
  525. else
  526. #endif
  527. {
  528. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  529. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  530. float weight = ((float) tolua_tonumber(tolua_S,3,0));
  531. #ifndef TOLUA_RELEASE
  532. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMorphWeight'", NULL);
  533. #endif
  534. {
  535. self->SetMorphWeight(index,weight);
  536. }
  537. }
  538. return 0;
  539. #ifndef TOLUA_RELEASE
  540. tolua_lerror:
  541. tolua_error(tolua_S,"#ferror in function 'SetMorphWeight'.",&tolua_err);
  542. return 0;
  543. #endif
  544. }
  545. #endif //#ifndef TOLUA_DISABLE
  546. /* method: SetMorphWeight of class AnimatedModel */
  547. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_SetMorphWeight01
  548. static int tolua_Graphics_AnimatedModel_SetMorphWeight01(lua_State* tolua_S)
  549. {
  550. tolua_Error tolua_err;
  551. if (
  552. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  553. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  554. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  555. !tolua_isnoobj(tolua_S,4,&tolua_err)
  556. )
  557. goto tolua_lerror;
  558. else
  559. {
  560. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  561. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  562. float weight = ((float) tolua_tonumber(tolua_S,3,0));
  563. #ifndef TOLUA_RELEASE
  564. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMorphWeight'", NULL);
  565. #endif
  566. {
  567. self->SetMorphWeight(*name,weight);
  568. }
  569. }
  570. return 0;
  571. tolua_lerror:
  572. return tolua_Graphics_AnimatedModel_SetMorphWeight00(tolua_S);
  573. }
  574. #endif //#ifndef TOLUA_DISABLE
  575. /* method: SetMorphWeight of class AnimatedModel */
  576. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_SetMorphWeight02
  577. static int tolua_Graphics_AnimatedModel_SetMorphWeight02(lua_State* tolua_S)
  578. {
  579. tolua_Error tolua_err;
  580. if (
  581. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  582. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"StringHash",0,&tolua_err)) ||
  583. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  584. !tolua_isnoobj(tolua_S,4,&tolua_err)
  585. )
  586. goto tolua_lerror;
  587. else
  588. {
  589. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  590. StringHash nameHash = *((StringHash*) tolua_tousertype(tolua_S,2,0));
  591. float weight = ((float) tolua_tonumber(tolua_S,3,0));
  592. #ifndef TOLUA_RELEASE
  593. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMorphWeight'", NULL);
  594. #endif
  595. {
  596. self->SetMorphWeight(nameHash,weight);
  597. }
  598. }
  599. return 0;
  600. tolua_lerror:
  601. return tolua_Graphics_AnimatedModel_SetMorphWeight01(tolua_S);
  602. }
  603. #endif //#ifndef TOLUA_DISABLE
  604. /* method: ResetMorphWeights of class AnimatedModel */
  605. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_ResetMorphWeights00
  606. static int tolua_Graphics_AnimatedModel_ResetMorphWeights00(lua_State* tolua_S)
  607. {
  608. #ifndef TOLUA_RELEASE
  609. tolua_Error tolua_err;
  610. if (
  611. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  612. !tolua_isnoobj(tolua_S,2,&tolua_err)
  613. )
  614. goto tolua_lerror;
  615. else
  616. #endif
  617. {
  618. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  619. #ifndef TOLUA_RELEASE
  620. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ResetMorphWeights'", NULL);
  621. #endif
  622. {
  623. self->ResetMorphWeights();
  624. }
  625. }
  626. return 0;
  627. #ifndef TOLUA_RELEASE
  628. tolua_lerror:
  629. tolua_error(tolua_S,"#ferror in function 'ResetMorphWeights'.",&tolua_err);
  630. return 0;
  631. #endif
  632. }
  633. #endif //#ifndef TOLUA_DISABLE
  634. /* method: GetSkeleton of class AnimatedModel */
  635. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_GetSkeleton00
  636. static int tolua_Graphics_AnimatedModel_GetSkeleton00(lua_State* tolua_S)
  637. {
  638. #ifndef TOLUA_RELEASE
  639. tolua_Error tolua_err;
  640. if (
  641. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  642. !tolua_isnoobj(tolua_S,2,&tolua_err)
  643. )
  644. goto tolua_lerror;
  645. else
  646. #endif
  647. {
  648. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  649. #ifndef TOLUA_RELEASE
  650. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSkeleton'", NULL);
  651. #endif
  652. {
  653. Skeleton& tolua_ret = (Skeleton&) self->GetSkeleton();
  654. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"Skeleton");
  655. }
  656. }
  657. return 1;
  658. #ifndef TOLUA_RELEASE
  659. tolua_lerror:
  660. tolua_error(tolua_S,"#ferror in function 'GetSkeleton'.",&tolua_err);
  661. return 0;
  662. #endif
  663. }
  664. #endif //#ifndef TOLUA_DISABLE
  665. /* method: GetNumAnimationStates of class AnimatedModel */
  666. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_GetNumAnimationStates00
  667. static int tolua_Graphics_AnimatedModel_GetNumAnimationStates00(lua_State* tolua_S)
  668. {
  669. #ifndef TOLUA_RELEASE
  670. tolua_Error tolua_err;
  671. if (
  672. !tolua_isusertype(tolua_S,1,"const AnimatedModel",0,&tolua_err) ||
  673. !tolua_isnoobj(tolua_S,2,&tolua_err)
  674. )
  675. goto tolua_lerror;
  676. else
  677. #endif
  678. {
  679. const AnimatedModel* self = (const AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  680. #ifndef TOLUA_RELEASE
  681. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumAnimationStates'", NULL);
  682. #endif
  683. {
  684. unsigned tolua_ret = (unsigned) self->GetNumAnimationStates();
  685. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  686. }
  687. }
  688. return 1;
  689. #ifndef TOLUA_RELEASE
  690. tolua_lerror:
  691. tolua_error(tolua_S,"#ferror in function 'GetNumAnimationStates'.",&tolua_err);
  692. return 0;
  693. #endif
  694. }
  695. #endif //#ifndef TOLUA_DISABLE
  696. /* method: GetAnimationState of class AnimatedModel */
  697. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_GetAnimationState00
  698. static int tolua_Graphics_AnimatedModel_GetAnimationState00(lua_State* tolua_S)
  699. {
  700. #ifndef TOLUA_RELEASE
  701. tolua_Error tolua_err;
  702. if (
  703. !tolua_isusertype(tolua_S,1,"const AnimatedModel",0,&tolua_err) ||
  704. !tolua_isusertype(tolua_S,2,"Animation",0,&tolua_err) ||
  705. !tolua_isnoobj(tolua_S,3,&tolua_err)
  706. )
  707. goto tolua_lerror;
  708. else
  709. #endif
  710. {
  711. const AnimatedModel* self = (const AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  712. Animation* animation = ((Animation*) tolua_tousertype(tolua_S,2,0));
  713. #ifndef TOLUA_RELEASE
  714. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAnimationState'", NULL);
  715. #endif
  716. {
  717. AnimationState* tolua_ret = (AnimationState*) self->GetAnimationState(animation);
  718. tolua_pushusertype(tolua_S,(void*)tolua_ret,"AnimationState");
  719. }
  720. }
  721. return 1;
  722. #ifndef TOLUA_RELEASE
  723. tolua_lerror:
  724. tolua_error(tolua_S,"#ferror in function 'GetAnimationState'.",&tolua_err);
  725. return 0;
  726. #endif
  727. }
  728. #endif //#ifndef TOLUA_DISABLE
  729. /* method: GetAnimationState of class AnimatedModel */
  730. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_GetAnimationState01
  731. static int tolua_Graphics_AnimatedModel_GetAnimationState01(lua_State* tolua_S)
  732. {
  733. tolua_Error tolua_err;
  734. if (
  735. !tolua_isusertype(tolua_S,1,"const AnimatedModel",0,&tolua_err) ||
  736. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  737. !tolua_isnoobj(tolua_S,3,&tolua_err)
  738. )
  739. goto tolua_lerror;
  740. else
  741. {
  742. const AnimatedModel* self = (const AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  743. const String* animationName = ((const String*) tolua_tousertype(tolua_S,2,0));
  744. #ifndef TOLUA_RELEASE
  745. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAnimationState'", NULL);
  746. #endif
  747. {
  748. AnimationState* tolua_ret = (AnimationState*) self->GetAnimationState(*animationName);
  749. tolua_pushusertype(tolua_S,(void*)tolua_ret,"AnimationState");
  750. }
  751. }
  752. return 1;
  753. tolua_lerror:
  754. return tolua_Graphics_AnimatedModel_GetAnimationState00(tolua_S);
  755. }
  756. #endif //#ifndef TOLUA_DISABLE
  757. /* method: GetAnimationState of class AnimatedModel */
  758. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_GetAnimationState02
  759. static int tolua_Graphics_AnimatedModel_GetAnimationState02(lua_State* tolua_S)
  760. {
  761. tolua_Error tolua_err;
  762. if (
  763. !tolua_isusertype(tolua_S,1,"const AnimatedModel",0,&tolua_err) ||
  764. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  765. !tolua_isnoobj(tolua_S,3,&tolua_err)
  766. )
  767. goto tolua_lerror;
  768. else
  769. {
  770. const AnimatedModel* self = (const AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  771. const char* animationName = ((const char*) tolua_tostring(tolua_S,2,0));
  772. #ifndef TOLUA_RELEASE
  773. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAnimationState'", NULL);
  774. #endif
  775. {
  776. AnimationState* tolua_ret = (AnimationState*) self->GetAnimationState(animationName);
  777. tolua_pushusertype(tolua_S,(void*)tolua_ret,"AnimationState");
  778. }
  779. }
  780. return 1;
  781. tolua_lerror:
  782. return tolua_Graphics_AnimatedModel_GetAnimationState01(tolua_S);
  783. }
  784. #endif //#ifndef TOLUA_DISABLE
  785. /* method: GetAnimationState of class AnimatedModel */
  786. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_GetAnimationState03
  787. static int tolua_Graphics_AnimatedModel_GetAnimationState03(lua_State* tolua_S)
  788. {
  789. tolua_Error tolua_err;
  790. if (
  791. !tolua_isusertype(tolua_S,1,"const AnimatedModel",0,&tolua_err) ||
  792. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const StringHash",0,&tolua_err)) ||
  793. !tolua_isnoobj(tolua_S,3,&tolua_err)
  794. )
  795. goto tolua_lerror;
  796. else
  797. {
  798. const AnimatedModel* self = (const AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  799. const StringHash animationNameHash = *((const StringHash*) tolua_tousertype(tolua_S,2,0));
  800. #ifndef TOLUA_RELEASE
  801. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAnimationState'", NULL);
  802. #endif
  803. {
  804. AnimationState* tolua_ret = (AnimationState*) self->GetAnimationState(animationNameHash);
  805. tolua_pushusertype(tolua_S,(void*)tolua_ret,"AnimationState");
  806. }
  807. }
  808. return 1;
  809. tolua_lerror:
  810. return tolua_Graphics_AnimatedModel_GetAnimationState02(tolua_S);
  811. }
  812. #endif //#ifndef TOLUA_DISABLE
  813. /* method: GetAnimationState of class AnimatedModel */
  814. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_GetAnimationState04
  815. static int tolua_Graphics_AnimatedModel_GetAnimationState04(lua_State* tolua_S)
  816. {
  817. tolua_Error tolua_err;
  818. if (
  819. !tolua_isusertype(tolua_S,1,"const AnimatedModel",0,&tolua_err) ||
  820. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  821. !tolua_isnoobj(tolua_S,3,&tolua_err)
  822. )
  823. goto tolua_lerror;
  824. else
  825. {
  826. const AnimatedModel* self = (const AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  827. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  828. #ifndef TOLUA_RELEASE
  829. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAnimationState'", NULL);
  830. #endif
  831. {
  832. AnimationState* tolua_ret = (AnimationState*) self->GetAnimationState(index);
  833. tolua_pushusertype(tolua_S,(void*)tolua_ret,"AnimationState");
  834. }
  835. }
  836. return 1;
  837. tolua_lerror:
  838. return tolua_Graphics_AnimatedModel_GetAnimationState03(tolua_S);
  839. }
  840. #endif //#ifndef TOLUA_DISABLE
  841. /* method: GetAnimationLodBias of class AnimatedModel */
  842. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_GetAnimationLodBias00
  843. static int tolua_Graphics_AnimatedModel_GetAnimationLodBias00(lua_State* tolua_S)
  844. {
  845. #ifndef TOLUA_RELEASE
  846. tolua_Error tolua_err;
  847. if (
  848. !tolua_isusertype(tolua_S,1,"const AnimatedModel",0,&tolua_err) ||
  849. !tolua_isnoobj(tolua_S,2,&tolua_err)
  850. )
  851. goto tolua_lerror;
  852. else
  853. #endif
  854. {
  855. const AnimatedModel* self = (const AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  856. #ifndef TOLUA_RELEASE
  857. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAnimationLodBias'", NULL);
  858. #endif
  859. {
  860. float tolua_ret = (float) self->GetAnimationLodBias();
  861. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  862. }
  863. }
  864. return 1;
  865. #ifndef TOLUA_RELEASE
  866. tolua_lerror:
  867. tolua_error(tolua_S,"#ferror in function 'GetAnimationLodBias'.",&tolua_err);
  868. return 0;
  869. #endif
  870. }
  871. #endif //#ifndef TOLUA_DISABLE
  872. /* method: GetInvisibleLodFactor of class AnimatedModel */
  873. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_GetInvisibleLodFactor00
  874. static int tolua_Graphics_AnimatedModel_GetInvisibleLodFactor00(lua_State* tolua_S)
  875. {
  876. #ifndef TOLUA_RELEASE
  877. tolua_Error tolua_err;
  878. if (
  879. !tolua_isusertype(tolua_S,1,"const AnimatedModel",0,&tolua_err) ||
  880. !tolua_isnoobj(tolua_S,2,&tolua_err)
  881. )
  882. goto tolua_lerror;
  883. else
  884. #endif
  885. {
  886. const AnimatedModel* self = (const AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  887. #ifndef TOLUA_RELEASE
  888. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetInvisibleLodFactor'", NULL);
  889. #endif
  890. {
  891. float tolua_ret = (float) self->GetInvisibleLodFactor();
  892. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  893. }
  894. }
  895. return 1;
  896. #ifndef TOLUA_RELEASE
  897. tolua_lerror:
  898. tolua_error(tolua_S,"#ferror in function 'GetInvisibleLodFactor'.",&tolua_err);
  899. return 0;
  900. #endif
  901. }
  902. #endif //#ifndef TOLUA_DISABLE
  903. /* method: GetNumMorphs of class AnimatedModel */
  904. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_GetNumMorphs00
  905. static int tolua_Graphics_AnimatedModel_GetNumMorphs00(lua_State* tolua_S)
  906. {
  907. #ifndef TOLUA_RELEASE
  908. tolua_Error tolua_err;
  909. if (
  910. !tolua_isusertype(tolua_S,1,"const AnimatedModel",0,&tolua_err) ||
  911. !tolua_isnoobj(tolua_S,2,&tolua_err)
  912. )
  913. goto tolua_lerror;
  914. else
  915. #endif
  916. {
  917. const AnimatedModel* self = (const AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  918. #ifndef TOLUA_RELEASE
  919. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumMorphs'", NULL);
  920. #endif
  921. {
  922. unsigned tolua_ret = (unsigned) self->GetNumMorphs();
  923. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  924. }
  925. }
  926. return 1;
  927. #ifndef TOLUA_RELEASE
  928. tolua_lerror:
  929. tolua_error(tolua_S,"#ferror in function 'GetNumMorphs'.",&tolua_err);
  930. return 0;
  931. #endif
  932. }
  933. #endif //#ifndef TOLUA_DISABLE
  934. /* method: GetMorphWeight of class AnimatedModel */
  935. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_GetMorphWeight00
  936. static int tolua_Graphics_AnimatedModel_GetMorphWeight00(lua_State* tolua_S)
  937. {
  938. #ifndef TOLUA_RELEASE
  939. tolua_Error tolua_err;
  940. if (
  941. !tolua_isusertype(tolua_S,1,"const AnimatedModel",0,&tolua_err) ||
  942. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  943. !tolua_isnoobj(tolua_S,3,&tolua_err)
  944. )
  945. goto tolua_lerror;
  946. else
  947. #endif
  948. {
  949. const AnimatedModel* self = (const AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  950. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  951. #ifndef TOLUA_RELEASE
  952. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMorphWeight'", NULL);
  953. #endif
  954. {
  955. float tolua_ret = (float) self->GetMorphWeight(index);
  956. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  957. }
  958. }
  959. return 1;
  960. #ifndef TOLUA_RELEASE
  961. tolua_lerror:
  962. tolua_error(tolua_S,"#ferror in function 'GetMorphWeight'.",&tolua_err);
  963. return 0;
  964. #endif
  965. }
  966. #endif //#ifndef TOLUA_DISABLE
  967. /* method: GetMorphWeight of class AnimatedModel */
  968. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_GetMorphWeight01
  969. static int tolua_Graphics_AnimatedModel_GetMorphWeight01(lua_State* tolua_S)
  970. {
  971. tolua_Error tolua_err;
  972. if (
  973. !tolua_isusertype(tolua_S,1,"const AnimatedModel",0,&tolua_err) ||
  974. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  975. !tolua_isnoobj(tolua_S,3,&tolua_err)
  976. )
  977. goto tolua_lerror;
  978. else
  979. {
  980. const AnimatedModel* self = (const AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  981. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  982. #ifndef TOLUA_RELEASE
  983. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMorphWeight'", NULL);
  984. #endif
  985. {
  986. float tolua_ret = (float) self->GetMorphWeight(*name);
  987. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  988. }
  989. }
  990. return 1;
  991. tolua_lerror:
  992. return tolua_Graphics_AnimatedModel_GetMorphWeight00(tolua_S);
  993. }
  994. #endif //#ifndef TOLUA_DISABLE
  995. /* method: GetMorphWeight of class AnimatedModel */
  996. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_GetMorphWeight02
  997. static int tolua_Graphics_AnimatedModel_GetMorphWeight02(lua_State* tolua_S)
  998. {
  999. tolua_Error tolua_err;
  1000. if (
  1001. !tolua_isusertype(tolua_S,1,"const AnimatedModel",0,&tolua_err) ||
  1002. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"StringHash",0,&tolua_err)) ||
  1003. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1004. )
  1005. goto tolua_lerror;
  1006. else
  1007. {
  1008. const AnimatedModel* self = (const AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  1009. StringHash nameHash = *((StringHash*) tolua_tousertype(tolua_S,2,0));
  1010. #ifndef TOLUA_RELEASE
  1011. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMorphWeight'", NULL);
  1012. #endif
  1013. {
  1014. float tolua_ret = (float) self->GetMorphWeight(nameHash);
  1015. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1016. }
  1017. }
  1018. return 1;
  1019. tolua_lerror:
  1020. return tolua_Graphics_AnimatedModel_GetMorphWeight01(tolua_S);
  1021. }
  1022. #endif //#ifndef TOLUA_DISABLE
  1023. /* method: IsMaster of class AnimatedModel */
  1024. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_IsMaster00
  1025. static int tolua_Graphics_AnimatedModel_IsMaster00(lua_State* tolua_S)
  1026. {
  1027. #ifndef TOLUA_RELEASE
  1028. tolua_Error tolua_err;
  1029. if (
  1030. !tolua_isusertype(tolua_S,1,"const AnimatedModel",0,&tolua_err) ||
  1031. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1032. )
  1033. goto tolua_lerror;
  1034. else
  1035. #endif
  1036. {
  1037. const AnimatedModel* self = (const AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  1038. #ifndef TOLUA_RELEASE
  1039. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsMaster'", NULL);
  1040. #endif
  1041. {
  1042. bool tolua_ret = (bool) self->IsMaster();
  1043. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1044. }
  1045. }
  1046. return 1;
  1047. #ifndef TOLUA_RELEASE
  1048. tolua_lerror:
  1049. tolua_error(tolua_S,"#ferror in function 'IsMaster'.",&tolua_err);
  1050. return 0;
  1051. #endif
  1052. }
  1053. #endif //#ifndef TOLUA_DISABLE
  1054. /* method: GetAnimationName of class Animation */
  1055. #ifndef TOLUA_DISABLE_tolua_Graphics_Animation_GetAnimationName00
  1056. static int tolua_Graphics_Animation_GetAnimationName00(lua_State* tolua_S)
  1057. {
  1058. #ifndef TOLUA_RELEASE
  1059. tolua_Error tolua_err;
  1060. if (
  1061. !tolua_isusertype(tolua_S,1,"const Animation",0,&tolua_err) ||
  1062. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1063. )
  1064. goto tolua_lerror;
  1065. else
  1066. #endif
  1067. {
  1068. const Animation* self = (const Animation*) tolua_tousertype(tolua_S,1,0);
  1069. #ifndef TOLUA_RELEASE
  1070. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAnimationName'", NULL);
  1071. #endif
  1072. {
  1073. const String& tolua_ret = (const String&) self->GetAnimationName();
  1074. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  1075. }
  1076. }
  1077. return 1;
  1078. #ifndef TOLUA_RELEASE
  1079. tolua_lerror:
  1080. tolua_error(tolua_S,"#ferror in function 'GetAnimationName'.",&tolua_err);
  1081. return 0;
  1082. #endif
  1083. }
  1084. #endif //#ifndef TOLUA_DISABLE
  1085. /* method: GetAnimationNameHash of class Animation */
  1086. #ifndef TOLUA_DISABLE_tolua_Graphics_Animation_GetAnimationNameHash00
  1087. static int tolua_Graphics_Animation_GetAnimationNameHash00(lua_State* tolua_S)
  1088. {
  1089. #ifndef TOLUA_RELEASE
  1090. tolua_Error tolua_err;
  1091. if (
  1092. !tolua_isusertype(tolua_S,1,"const Animation",0,&tolua_err) ||
  1093. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1094. )
  1095. goto tolua_lerror;
  1096. else
  1097. #endif
  1098. {
  1099. const Animation* self = (const Animation*) tolua_tousertype(tolua_S,1,0);
  1100. #ifndef TOLUA_RELEASE
  1101. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAnimationNameHash'", NULL);
  1102. #endif
  1103. {
  1104. StringHash tolua_ret = (StringHash) self->GetAnimationNameHash();
  1105. {
  1106. #ifdef __cplusplus
  1107. void* tolua_obj = Mtolua_new((StringHash)(tolua_ret));
  1108. tolua_pushusertype(tolua_S,tolua_obj,"StringHash");
  1109. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1110. #else
  1111. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(StringHash));
  1112. tolua_pushusertype(tolua_S,tolua_obj,"StringHash");
  1113. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1114. #endif
  1115. }
  1116. }
  1117. }
  1118. return 1;
  1119. #ifndef TOLUA_RELEASE
  1120. tolua_lerror:
  1121. tolua_error(tolua_S,"#ferror in function 'GetAnimationNameHash'.",&tolua_err);
  1122. return 0;
  1123. #endif
  1124. }
  1125. #endif //#ifndef TOLUA_DISABLE
  1126. /* method: GetLength of class Animation */
  1127. #ifndef TOLUA_DISABLE_tolua_Graphics_Animation_GetLength00
  1128. static int tolua_Graphics_Animation_GetLength00(lua_State* tolua_S)
  1129. {
  1130. #ifndef TOLUA_RELEASE
  1131. tolua_Error tolua_err;
  1132. if (
  1133. !tolua_isusertype(tolua_S,1,"const Animation",0,&tolua_err) ||
  1134. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1135. )
  1136. goto tolua_lerror;
  1137. else
  1138. #endif
  1139. {
  1140. const Animation* self = (const Animation*) tolua_tousertype(tolua_S,1,0);
  1141. #ifndef TOLUA_RELEASE
  1142. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLength'", NULL);
  1143. #endif
  1144. {
  1145. float tolua_ret = (float) self->GetLength();
  1146. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1147. }
  1148. }
  1149. return 1;
  1150. #ifndef TOLUA_RELEASE
  1151. tolua_lerror:
  1152. tolua_error(tolua_S,"#ferror in function 'GetLength'.",&tolua_err);
  1153. return 0;
  1154. #endif
  1155. }
  1156. #endif //#ifndef TOLUA_DISABLE
  1157. /* method: GetNumTracks of class Animation */
  1158. #ifndef TOLUA_DISABLE_tolua_Graphics_Animation_GetNumTracks00
  1159. static int tolua_Graphics_Animation_GetNumTracks00(lua_State* tolua_S)
  1160. {
  1161. #ifndef TOLUA_RELEASE
  1162. tolua_Error tolua_err;
  1163. if (
  1164. !tolua_isusertype(tolua_S,1,"const Animation",0,&tolua_err) ||
  1165. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1166. )
  1167. goto tolua_lerror;
  1168. else
  1169. #endif
  1170. {
  1171. const Animation* self = (const Animation*) tolua_tousertype(tolua_S,1,0);
  1172. #ifndef TOLUA_RELEASE
  1173. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumTracks'", NULL);
  1174. #endif
  1175. {
  1176. unsigned tolua_ret = (unsigned) self->GetNumTracks();
  1177. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1178. }
  1179. }
  1180. return 1;
  1181. #ifndef TOLUA_RELEASE
  1182. tolua_lerror:
  1183. tolua_error(tolua_S,"#ferror in function 'GetNumTracks'.",&tolua_err);
  1184. return 0;
  1185. #endif
  1186. }
  1187. #endif //#ifndef TOLUA_DISABLE
  1188. /* method: GetTrack of class Animation */
  1189. #ifndef TOLUA_DISABLE_tolua_Graphics_Animation_GetTrack00
  1190. static int tolua_Graphics_Animation_GetTrack00(lua_State* tolua_S)
  1191. {
  1192. #ifndef TOLUA_RELEASE
  1193. tolua_Error tolua_err;
  1194. if (
  1195. !tolua_isusertype(tolua_S,1,"const Animation",0,&tolua_err) ||
  1196. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1197. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1198. )
  1199. goto tolua_lerror;
  1200. else
  1201. #endif
  1202. {
  1203. const Animation* self = (const Animation*) tolua_tousertype(tolua_S,1,0);
  1204. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  1205. #ifndef TOLUA_RELEASE
  1206. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTrack'", NULL);
  1207. #endif
  1208. {
  1209. const AnimationTrack* tolua_ret = (const AnimationTrack*) self->GetTrack(index);
  1210. tolua_pushusertype(tolua_S,(void*)tolua_ret,"const AnimationTrack");
  1211. }
  1212. }
  1213. return 1;
  1214. #ifndef TOLUA_RELEASE
  1215. tolua_lerror:
  1216. tolua_error(tolua_S,"#ferror in function 'GetTrack'.",&tolua_err);
  1217. return 0;
  1218. #endif
  1219. }
  1220. #endif //#ifndef TOLUA_DISABLE
  1221. /* method: GetTrack of class Animation */
  1222. #ifndef TOLUA_DISABLE_tolua_Graphics_Animation_GetTrack01
  1223. static int tolua_Graphics_Animation_GetTrack01(lua_State* tolua_S)
  1224. {
  1225. tolua_Error tolua_err;
  1226. if (
  1227. !tolua_isusertype(tolua_S,1,"const Animation",0,&tolua_err) ||
  1228. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1229. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1230. )
  1231. goto tolua_lerror;
  1232. else
  1233. {
  1234. const Animation* self = (const Animation*) tolua_tousertype(tolua_S,1,0);
  1235. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1236. #ifndef TOLUA_RELEASE
  1237. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTrack'", NULL);
  1238. #endif
  1239. {
  1240. const AnimationTrack* tolua_ret = (const AnimationTrack*) self->GetTrack(*name);
  1241. tolua_pushusertype(tolua_S,(void*)tolua_ret,"const AnimationTrack");
  1242. }
  1243. }
  1244. return 1;
  1245. tolua_lerror:
  1246. return tolua_Graphics_Animation_GetTrack00(tolua_S);
  1247. }
  1248. #endif //#ifndef TOLUA_DISABLE
  1249. /* method: GetTrack of class Animation */
  1250. #ifndef TOLUA_DISABLE_tolua_Graphics_Animation_GetTrack02
  1251. static int tolua_Graphics_Animation_GetTrack02(lua_State* tolua_S)
  1252. {
  1253. tolua_Error tolua_err;
  1254. if (
  1255. !tolua_isusertype(tolua_S,1,"const Animation",0,&tolua_err) ||
  1256. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"StringHash",0,&tolua_err)) ||
  1257. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1258. )
  1259. goto tolua_lerror;
  1260. else
  1261. {
  1262. const Animation* self = (const Animation*) tolua_tousertype(tolua_S,1,0);
  1263. StringHash nameHash = *((StringHash*) tolua_tousertype(tolua_S,2,0));
  1264. #ifndef TOLUA_RELEASE
  1265. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTrack'", NULL);
  1266. #endif
  1267. {
  1268. const AnimationTrack* tolua_ret = (const AnimationTrack*) self->GetTrack(nameHash);
  1269. tolua_pushusertype(tolua_S,(void*)tolua_ret,"const AnimationTrack");
  1270. }
  1271. }
  1272. return 1;
  1273. tolua_lerror:
  1274. return tolua_Graphics_Animation_GetTrack01(tolua_S);
  1275. }
  1276. #endif //#ifndef TOLUA_DISABLE
  1277. /* method: GetNumTriggers of class Animation */
  1278. #ifndef TOLUA_DISABLE_tolua_Graphics_Animation_GetNumTriggers00
  1279. static int tolua_Graphics_Animation_GetNumTriggers00(lua_State* tolua_S)
  1280. {
  1281. #ifndef TOLUA_RELEASE
  1282. tolua_Error tolua_err;
  1283. if (
  1284. !tolua_isusertype(tolua_S,1,"const Animation",0,&tolua_err) ||
  1285. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1286. )
  1287. goto tolua_lerror;
  1288. else
  1289. #endif
  1290. {
  1291. const Animation* self = (const Animation*) tolua_tousertype(tolua_S,1,0);
  1292. #ifndef TOLUA_RELEASE
  1293. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumTriggers'", NULL);
  1294. #endif
  1295. {
  1296. unsigned tolua_ret = (unsigned) self->GetNumTriggers();
  1297. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1298. }
  1299. }
  1300. return 1;
  1301. #ifndef TOLUA_RELEASE
  1302. tolua_lerror:
  1303. tolua_error(tolua_S,"#ferror in function 'GetNumTriggers'.",&tolua_err);
  1304. return 0;
  1305. #endif
  1306. }
  1307. #endif //#ifndef TOLUA_DISABLE
  1308. /* method: Play of class AnimationController */
  1309. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_Play00
  1310. static int tolua_Graphics_AnimationController_Play00(lua_State* tolua_S)
  1311. {
  1312. #ifndef TOLUA_RELEASE
  1313. tolua_Error tolua_err;
  1314. if (
  1315. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1316. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1317. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1318. !tolua_isboolean(tolua_S,4,0,&tolua_err) ||
  1319. !tolua_isnumber(tolua_S,5,1,&tolua_err) ||
  1320. !tolua_isnoobj(tolua_S,6,&tolua_err)
  1321. )
  1322. goto tolua_lerror;
  1323. else
  1324. #endif
  1325. {
  1326. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1327. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1328. unsigned char layer = ((unsigned char) tolua_tonumber(tolua_S,3,0));
  1329. bool looped = ((bool) tolua_toboolean(tolua_S,4,0));
  1330. float fadeInTime = ((float) tolua_tonumber(tolua_S,5,0.0f));
  1331. #ifndef TOLUA_RELEASE
  1332. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Play'", NULL);
  1333. #endif
  1334. {
  1335. bool tolua_ret = (bool) self->Play(*name,layer,looped,fadeInTime);
  1336. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1337. }
  1338. }
  1339. return 1;
  1340. #ifndef TOLUA_RELEASE
  1341. tolua_lerror:
  1342. tolua_error(tolua_S,"#ferror in function 'Play'.",&tolua_err);
  1343. return 0;
  1344. #endif
  1345. }
  1346. #endif //#ifndef TOLUA_DISABLE
  1347. /* method: PlayExclusive of class AnimationController */
  1348. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_PlayExclusive00
  1349. static int tolua_Graphics_AnimationController_PlayExclusive00(lua_State* tolua_S)
  1350. {
  1351. #ifndef TOLUA_RELEASE
  1352. tolua_Error tolua_err;
  1353. if (
  1354. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1355. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1356. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1357. !tolua_isboolean(tolua_S,4,0,&tolua_err) ||
  1358. !tolua_isnumber(tolua_S,5,1,&tolua_err) ||
  1359. !tolua_isnoobj(tolua_S,6,&tolua_err)
  1360. )
  1361. goto tolua_lerror;
  1362. else
  1363. #endif
  1364. {
  1365. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1366. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1367. unsigned char layer = ((unsigned char) tolua_tonumber(tolua_S,3,0));
  1368. bool looped = ((bool) tolua_toboolean(tolua_S,4,0));
  1369. float fadeTime = ((float) tolua_tonumber(tolua_S,5,0.0f));
  1370. #ifndef TOLUA_RELEASE
  1371. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'PlayExclusive'", NULL);
  1372. #endif
  1373. {
  1374. bool tolua_ret = (bool) self->PlayExclusive(*name,layer,looped,fadeTime);
  1375. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1376. }
  1377. }
  1378. return 1;
  1379. #ifndef TOLUA_RELEASE
  1380. tolua_lerror:
  1381. tolua_error(tolua_S,"#ferror in function 'PlayExclusive'.",&tolua_err);
  1382. return 0;
  1383. #endif
  1384. }
  1385. #endif //#ifndef TOLUA_DISABLE
  1386. /* method: Stop of class AnimationController */
  1387. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_Stop00
  1388. static int tolua_Graphics_AnimationController_Stop00(lua_State* tolua_S)
  1389. {
  1390. #ifndef TOLUA_RELEASE
  1391. tolua_Error tolua_err;
  1392. if (
  1393. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1394. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1395. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  1396. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1397. )
  1398. goto tolua_lerror;
  1399. else
  1400. #endif
  1401. {
  1402. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1403. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1404. float fadeOutTime = ((float) tolua_tonumber(tolua_S,3,0.0f));
  1405. #ifndef TOLUA_RELEASE
  1406. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Stop'", NULL);
  1407. #endif
  1408. {
  1409. bool tolua_ret = (bool) self->Stop(*name,fadeOutTime);
  1410. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1411. }
  1412. }
  1413. return 1;
  1414. #ifndef TOLUA_RELEASE
  1415. tolua_lerror:
  1416. tolua_error(tolua_S,"#ferror in function 'Stop'.",&tolua_err);
  1417. return 0;
  1418. #endif
  1419. }
  1420. #endif //#ifndef TOLUA_DISABLE
  1421. /* method: StopLayer of class AnimationController */
  1422. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_StopLayer00
  1423. static int tolua_Graphics_AnimationController_StopLayer00(lua_State* tolua_S)
  1424. {
  1425. #ifndef TOLUA_RELEASE
  1426. tolua_Error tolua_err;
  1427. if (
  1428. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1429. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1430. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  1431. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1432. )
  1433. goto tolua_lerror;
  1434. else
  1435. #endif
  1436. {
  1437. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1438. unsigned char layer = ((unsigned char) tolua_tonumber(tolua_S,2,0));
  1439. float fadeOutTime = ((float) tolua_tonumber(tolua_S,3,0.0f));
  1440. #ifndef TOLUA_RELEASE
  1441. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'StopLayer'", NULL);
  1442. #endif
  1443. {
  1444. self->StopLayer(layer,fadeOutTime);
  1445. }
  1446. }
  1447. return 0;
  1448. #ifndef TOLUA_RELEASE
  1449. tolua_lerror:
  1450. tolua_error(tolua_S,"#ferror in function 'StopLayer'.",&tolua_err);
  1451. return 0;
  1452. #endif
  1453. }
  1454. #endif //#ifndef TOLUA_DISABLE
  1455. /* method: StopAll of class AnimationController */
  1456. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_StopAll00
  1457. static int tolua_Graphics_AnimationController_StopAll00(lua_State* tolua_S)
  1458. {
  1459. #ifndef TOLUA_RELEASE
  1460. tolua_Error tolua_err;
  1461. if (
  1462. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1463. !tolua_isnumber(tolua_S,2,1,&tolua_err) ||
  1464. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1465. )
  1466. goto tolua_lerror;
  1467. else
  1468. #endif
  1469. {
  1470. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1471. float fadeTime = ((float) tolua_tonumber(tolua_S,2,0.0f));
  1472. #ifndef TOLUA_RELEASE
  1473. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'StopAll'", NULL);
  1474. #endif
  1475. {
  1476. self->StopAll(fadeTime);
  1477. }
  1478. }
  1479. return 0;
  1480. #ifndef TOLUA_RELEASE
  1481. tolua_lerror:
  1482. tolua_error(tolua_S,"#ferror in function 'StopAll'.",&tolua_err);
  1483. return 0;
  1484. #endif
  1485. }
  1486. #endif //#ifndef TOLUA_DISABLE
  1487. /* method: Fade of class AnimationController */
  1488. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_Fade00
  1489. static int tolua_Graphics_AnimationController_Fade00(lua_State* tolua_S)
  1490. {
  1491. #ifndef TOLUA_RELEASE
  1492. tolua_Error tolua_err;
  1493. if (
  1494. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1495. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1496. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1497. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  1498. !tolua_isnoobj(tolua_S,5,&tolua_err)
  1499. )
  1500. goto tolua_lerror;
  1501. else
  1502. #endif
  1503. {
  1504. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1505. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1506. float targetWeight = ((float) tolua_tonumber(tolua_S,3,0));
  1507. float fadeTime = ((float) tolua_tonumber(tolua_S,4,0));
  1508. #ifndef TOLUA_RELEASE
  1509. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Fade'", NULL);
  1510. #endif
  1511. {
  1512. bool tolua_ret = (bool) self->Fade(*name,targetWeight,fadeTime);
  1513. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1514. }
  1515. }
  1516. return 1;
  1517. #ifndef TOLUA_RELEASE
  1518. tolua_lerror:
  1519. tolua_error(tolua_S,"#ferror in function 'Fade'.",&tolua_err);
  1520. return 0;
  1521. #endif
  1522. }
  1523. #endif //#ifndef TOLUA_DISABLE
  1524. /* method: FadeOthers of class AnimationController */
  1525. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_FadeOthers00
  1526. static int tolua_Graphics_AnimationController_FadeOthers00(lua_State* tolua_S)
  1527. {
  1528. #ifndef TOLUA_RELEASE
  1529. tolua_Error tolua_err;
  1530. if (
  1531. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1532. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1533. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1534. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  1535. !tolua_isnoobj(tolua_S,5,&tolua_err)
  1536. )
  1537. goto tolua_lerror;
  1538. else
  1539. #endif
  1540. {
  1541. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1542. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1543. float targetWeight = ((float) tolua_tonumber(tolua_S,3,0));
  1544. float fadeTime = ((float) tolua_tonumber(tolua_S,4,0));
  1545. #ifndef TOLUA_RELEASE
  1546. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'FadeOthers'", NULL);
  1547. #endif
  1548. {
  1549. bool tolua_ret = (bool) self->FadeOthers(*name,targetWeight,fadeTime);
  1550. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1551. }
  1552. }
  1553. return 1;
  1554. #ifndef TOLUA_RELEASE
  1555. tolua_lerror:
  1556. tolua_error(tolua_S,"#ferror in function 'FadeOthers'.",&tolua_err);
  1557. return 0;
  1558. #endif
  1559. }
  1560. #endif //#ifndef TOLUA_DISABLE
  1561. /* method: SetLayer of class AnimationController */
  1562. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_SetLayer00
  1563. static int tolua_Graphics_AnimationController_SetLayer00(lua_State* tolua_S)
  1564. {
  1565. #ifndef TOLUA_RELEASE
  1566. tolua_Error tolua_err;
  1567. if (
  1568. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1569. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1570. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1571. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1572. )
  1573. goto tolua_lerror;
  1574. else
  1575. #endif
  1576. {
  1577. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1578. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1579. unsigned char layer = ((unsigned char) tolua_tonumber(tolua_S,3,0));
  1580. #ifndef TOLUA_RELEASE
  1581. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLayer'", NULL);
  1582. #endif
  1583. {
  1584. bool tolua_ret = (bool) self->SetLayer(*name,layer);
  1585. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1586. }
  1587. }
  1588. return 1;
  1589. #ifndef TOLUA_RELEASE
  1590. tolua_lerror:
  1591. tolua_error(tolua_S,"#ferror in function 'SetLayer'.",&tolua_err);
  1592. return 0;
  1593. #endif
  1594. }
  1595. #endif //#ifndef TOLUA_DISABLE
  1596. /* method: SetStartBone of class AnimationController */
  1597. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_SetStartBone00
  1598. static int tolua_Graphics_AnimationController_SetStartBone00(lua_State* tolua_S)
  1599. {
  1600. #ifndef TOLUA_RELEASE
  1601. tolua_Error tolua_err;
  1602. if (
  1603. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1604. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1605. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const String",0,&tolua_err)) ||
  1606. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1607. )
  1608. goto tolua_lerror;
  1609. else
  1610. #endif
  1611. {
  1612. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1613. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1614. const String* startBoneName = ((const String*) tolua_tousertype(tolua_S,3,0));
  1615. #ifndef TOLUA_RELEASE
  1616. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetStartBone'", NULL);
  1617. #endif
  1618. {
  1619. bool tolua_ret = (bool) self->SetStartBone(*name,*startBoneName);
  1620. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1621. }
  1622. }
  1623. return 1;
  1624. #ifndef TOLUA_RELEASE
  1625. tolua_lerror:
  1626. tolua_error(tolua_S,"#ferror in function 'SetStartBone'.",&tolua_err);
  1627. return 0;
  1628. #endif
  1629. }
  1630. #endif //#ifndef TOLUA_DISABLE
  1631. /* method: SetTime of class AnimationController */
  1632. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_SetTime00
  1633. static int tolua_Graphics_AnimationController_SetTime00(lua_State* tolua_S)
  1634. {
  1635. #ifndef TOLUA_RELEASE
  1636. tolua_Error tolua_err;
  1637. if (
  1638. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1639. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1640. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1641. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1642. )
  1643. goto tolua_lerror;
  1644. else
  1645. #endif
  1646. {
  1647. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1648. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1649. float time = ((float) tolua_tonumber(tolua_S,3,0));
  1650. #ifndef TOLUA_RELEASE
  1651. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTime'", NULL);
  1652. #endif
  1653. {
  1654. bool tolua_ret = (bool) self->SetTime(*name,time);
  1655. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1656. }
  1657. }
  1658. return 1;
  1659. #ifndef TOLUA_RELEASE
  1660. tolua_lerror:
  1661. tolua_error(tolua_S,"#ferror in function 'SetTime'.",&tolua_err);
  1662. return 0;
  1663. #endif
  1664. }
  1665. #endif //#ifndef TOLUA_DISABLE
  1666. /* method: SetWeight of class AnimationController */
  1667. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_SetWeight00
  1668. static int tolua_Graphics_AnimationController_SetWeight00(lua_State* tolua_S)
  1669. {
  1670. #ifndef TOLUA_RELEASE
  1671. tolua_Error tolua_err;
  1672. if (
  1673. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1674. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1675. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1676. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1677. )
  1678. goto tolua_lerror;
  1679. else
  1680. #endif
  1681. {
  1682. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1683. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1684. float weight = ((float) tolua_tonumber(tolua_S,3,0));
  1685. #ifndef TOLUA_RELEASE
  1686. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetWeight'", NULL);
  1687. #endif
  1688. {
  1689. bool tolua_ret = (bool) self->SetWeight(*name,weight);
  1690. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1691. }
  1692. }
  1693. return 1;
  1694. #ifndef TOLUA_RELEASE
  1695. tolua_lerror:
  1696. tolua_error(tolua_S,"#ferror in function 'SetWeight'.",&tolua_err);
  1697. return 0;
  1698. #endif
  1699. }
  1700. #endif //#ifndef TOLUA_DISABLE
  1701. /* method: SetLooped of class AnimationController */
  1702. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_SetLooped00
  1703. static int tolua_Graphics_AnimationController_SetLooped00(lua_State* tolua_S)
  1704. {
  1705. #ifndef TOLUA_RELEASE
  1706. tolua_Error tolua_err;
  1707. if (
  1708. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1709. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1710. !tolua_isboolean(tolua_S,3,0,&tolua_err) ||
  1711. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1712. )
  1713. goto tolua_lerror;
  1714. else
  1715. #endif
  1716. {
  1717. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1718. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1719. bool enable = ((bool) tolua_toboolean(tolua_S,3,0));
  1720. #ifndef TOLUA_RELEASE
  1721. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLooped'", NULL);
  1722. #endif
  1723. {
  1724. bool tolua_ret = (bool) self->SetLooped(*name,enable);
  1725. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1726. }
  1727. }
  1728. return 1;
  1729. #ifndef TOLUA_RELEASE
  1730. tolua_lerror:
  1731. tolua_error(tolua_S,"#ferror in function 'SetLooped'.",&tolua_err);
  1732. return 0;
  1733. #endif
  1734. }
  1735. #endif //#ifndef TOLUA_DISABLE
  1736. /* method: SetSpeed of class AnimationController */
  1737. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_SetSpeed00
  1738. static int tolua_Graphics_AnimationController_SetSpeed00(lua_State* tolua_S)
  1739. {
  1740. #ifndef TOLUA_RELEASE
  1741. tolua_Error tolua_err;
  1742. if (
  1743. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1744. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1745. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1746. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1747. )
  1748. goto tolua_lerror;
  1749. else
  1750. #endif
  1751. {
  1752. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1753. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1754. float speed = ((float) tolua_tonumber(tolua_S,3,0));
  1755. #ifndef TOLUA_RELEASE
  1756. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSpeed'", NULL);
  1757. #endif
  1758. {
  1759. bool tolua_ret = (bool) self->SetSpeed(*name,speed);
  1760. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1761. }
  1762. }
  1763. return 1;
  1764. #ifndef TOLUA_RELEASE
  1765. tolua_lerror:
  1766. tolua_error(tolua_S,"#ferror in function 'SetSpeed'.",&tolua_err);
  1767. return 0;
  1768. #endif
  1769. }
  1770. #endif //#ifndef TOLUA_DISABLE
  1771. /* method: SetAutoFade of class AnimationController */
  1772. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_SetAutoFade00
  1773. static int tolua_Graphics_AnimationController_SetAutoFade00(lua_State* tolua_S)
  1774. {
  1775. #ifndef TOLUA_RELEASE
  1776. tolua_Error tolua_err;
  1777. if (
  1778. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1779. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1780. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1781. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1782. )
  1783. goto tolua_lerror;
  1784. else
  1785. #endif
  1786. {
  1787. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1788. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1789. float fadeOutTime = ((float) tolua_tonumber(tolua_S,3,0));
  1790. #ifndef TOLUA_RELEASE
  1791. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAutoFade'", NULL);
  1792. #endif
  1793. {
  1794. bool tolua_ret = (bool) self->SetAutoFade(*name,fadeOutTime);
  1795. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1796. }
  1797. }
  1798. return 1;
  1799. #ifndef TOLUA_RELEASE
  1800. tolua_lerror:
  1801. tolua_error(tolua_S,"#ferror in function 'SetAutoFade'.",&tolua_err);
  1802. return 0;
  1803. #endif
  1804. }
  1805. #endif //#ifndef TOLUA_DISABLE
  1806. /* method: IsPlaying of class AnimationController */
  1807. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_IsPlaying00
  1808. static int tolua_Graphics_AnimationController_IsPlaying00(lua_State* tolua_S)
  1809. {
  1810. #ifndef TOLUA_RELEASE
  1811. tolua_Error tolua_err;
  1812. if (
  1813. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  1814. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1815. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1816. )
  1817. goto tolua_lerror;
  1818. else
  1819. #endif
  1820. {
  1821. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  1822. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1823. #ifndef TOLUA_RELEASE
  1824. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsPlaying'", NULL);
  1825. #endif
  1826. {
  1827. bool tolua_ret = (bool) self->IsPlaying(*name);
  1828. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1829. }
  1830. }
  1831. return 1;
  1832. #ifndef TOLUA_RELEASE
  1833. tolua_lerror:
  1834. tolua_error(tolua_S,"#ferror in function 'IsPlaying'.",&tolua_err);
  1835. return 0;
  1836. #endif
  1837. }
  1838. #endif //#ifndef TOLUA_DISABLE
  1839. /* method: IsFadingIn of class AnimationController */
  1840. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_IsFadingIn00
  1841. static int tolua_Graphics_AnimationController_IsFadingIn00(lua_State* tolua_S)
  1842. {
  1843. #ifndef TOLUA_RELEASE
  1844. tolua_Error tolua_err;
  1845. if (
  1846. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  1847. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1848. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1849. )
  1850. goto tolua_lerror;
  1851. else
  1852. #endif
  1853. {
  1854. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  1855. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1856. #ifndef TOLUA_RELEASE
  1857. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsFadingIn'", NULL);
  1858. #endif
  1859. {
  1860. bool tolua_ret = (bool) self->IsFadingIn(*name);
  1861. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1862. }
  1863. }
  1864. return 1;
  1865. #ifndef TOLUA_RELEASE
  1866. tolua_lerror:
  1867. tolua_error(tolua_S,"#ferror in function 'IsFadingIn'.",&tolua_err);
  1868. return 0;
  1869. #endif
  1870. }
  1871. #endif //#ifndef TOLUA_DISABLE
  1872. /* method: IsFadingOut of class AnimationController */
  1873. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_IsFadingOut00
  1874. static int tolua_Graphics_AnimationController_IsFadingOut00(lua_State* tolua_S)
  1875. {
  1876. #ifndef TOLUA_RELEASE
  1877. tolua_Error tolua_err;
  1878. if (
  1879. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  1880. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1881. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1882. )
  1883. goto tolua_lerror;
  1884. else
  1885. #endif
  1886. {
  1887. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  1888. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1889. #ifndef TOLUA_RELEASE
  1890. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsFadingOut'", NULL);
  1891. #endif
  1892. {
  1893. bool tolua_ret = (bool) self->IsFadingOut(*name);
  1894. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1895. }
  1896. }
  1897. return 1;
  1898. #ifndef TOLUA_RELEASE
  1899. tolua_lerror:
  1900. tolua_error(tolua_S,"#ferror in function 'IsFadingOut'.",&tolua_err);
  1901. return 0;
  1902. #endif
  1903. }
  1904. #endif //#ifndef TOLUA_DISABLE
  1905. /* method: GetLayer of class AnimationController */
  1906. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_GetLayer00
  1907. static int tolua_Graphics_AnimationController_GetLayer00(lua_State* tolua_S)
  1908. {
  1909. #ifndef TOLUA_RELEASE
  1910. tolua_Error tolua_err;
  1911. if (
  1912. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  1913. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1914. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1915. )
  1916. goto tolua_lerror;
  1917. else
  1918. #endif
  1919. {
  1920. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  1921. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1922. #ifndef TOLUA_RELEASE
  1923. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLayer'", NULL);
  1924. #endif
  1925. {
  1926. unsigned char tolua_ret = (unsigned char) self->GetLayer(*name);
  1927. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1928. }
  1929. }
  1930. return 1;
  1931. #ifndef TOLUA_RELEASE
  1932. tolua_lerror:
  1933. tolua_error(tolua_S,"#ferror in function 'GetLayer'.",&tolua_err);
  1934. return 0;
  1935. #endif
  1936. }
  1937. #endif //#ifndef TOLUA_DISABLE
  1938. /* method: GetStartBone of class AnimationController */
  1939. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_GetStartBone00
  1940. static int tolua_Graphics_AnimationController_GetStartBone00(lua_State* tolua_S)
  1941. {
  1942. #ifndef TOLUA_RELEASE
  1943. tolua_Error tolua_err;
  1944. if (
  1945. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  1946. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1947. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1948. )
  1949. goto tolua_lerror;
  1950. else
  1951. #endif
  1952. {
  1953. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  1954. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1955. #ifndef TOLUA_RELEASE
  1956. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetStartBone'", NULL);
  1957. #endif
  1958. {
  1959. Bone* tolua_ret = (Bone*) self->GetStartBone(*name);
  1960. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Bone");
  1961. }
  1962. }
  1963. return 1;
  1964. #ifndef TOLUA_RELEASE
  1965. tolua_lerror:
  1966. tolua_error(tolua_S,"#ferror in function 'GetStartBone'.",&tolua_err);
  1967. return 0;
  1968. #endif
  1969. }
  1970. #endif //#ifndef TOLUA_DISABLE
  1971. /* method: GetStartBoneName of class AnimationController */
  1972. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_GetStartBoneName00
  1973. static int tolua_Graphics_AnimationController_GetStartBoneName00(lua_State* tolua_S)
  1974. {
  1975. #ifndef TOLUA_RELEASE
  1976. tolua_Error tolua_err;
  1977. if (
  1978. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  1979. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1980. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1981. )
  1982. goto tolua_lerror;
  1983. else
  1984. #endif
  1985. {
  1986. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  1987. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1988. #ifndef TOLUA_RELEASE
  1989. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetStartBoneName'", NULL);
  1990. #endif
  1991. {
  1992. const String& tolua_ret = (const String&) self->GetStartBoneName(*name);
  1993. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  1994. }
  1995. }
  1996. return 1;
  1997. #ifndef TOLUA_RELEASE
  1998. tolua_lerror:
  1999. tolua_error(tolua_S,"#ferror in function 'GetStartBoneName'.",&tolua_err);
  2000. return 0;
  2001. #endif
  2002. }
  2003. #endif //#ifndef TOLUA_DISABLE
  2004. /* method: GetTime of class AnimationController */
  2005. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_GetTime00
  2006. static int tolua_Graphics_AnimationController_GetTime00(lua_State* tolua_S)
  2007. {
  2008. #ifndef TOLUA_RELEASE
  2009. tolua_Error tolua_err;
  2010. if (
  2011. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  2012. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  2013. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2014. )
  2015. goto tolua_lerror;
  2016. else
  2017. #endif
  2018. {
  2019. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  2020. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  2021. #ifndef TOLUA_RELEASE
  2022. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTime'", NULL);
  2023. #endif
  2024. {
  2025. float tolua_ret = (float) self->GetTime(*name);
  2026. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2027. }
  2028. }
  2029. return 1;
  2030. #ifndef TOLUA_RELEASE
  2031. tolua_lerror:
  2032. tolua_error(tolua_S,"#ferror in function 'GetTime'.",&tolua_err);
  2033. return 0;
  2034. #endif
  2035. }
  2036. #endif //#ifndef TOLUA_DISABLE
  2037. /* method: GetWeight of class AnimationController */
  2038. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_GetWeight00
  2039. static int tolua_Graphics_AnimationController_GetWeight00(lua_State* tolua_S)
  2040. {
  2041. #ifndef TOLUA_RELEASE
  2042. tolua_Error tolua_err;
  2043. if (
  2044. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  2045. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  2046. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2047. )
  2048. goto tolua_lerror;
  2049. else
  2050. #endif
  2051. {
  2052. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  2053. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  2054. #ifndef TOLUA_RELEASE
  2055. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWeight'", NULL);
  2056. #endif
  2057. {
  2058. float tolua_ret = (float) self->GetWeight(*name);
  2059. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2060. }
  2061. }
  2062. return 1;
  2063. #ifndef TOLUA_RELEASE
  2064. tolua_lerror:
  2065. tolua_error(tolua_S,"#ferror in function 'GetWeight'.",&tolua_err);
  2066. return 0;
  2067. #endif
  2068. }
  2069. #endif //#ifndef TOLUA_DISABLE
  2070. /* method: IsLooped of class AnimationController */
  2071. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_IsLooped00
  2072. static int tolua_Graphics_AnimationController_IsLooped00(lua_State* tolua_S)
  2073. {
  2074. #ifndef TOLUA_RELEASE
  2075. tolua_Error tolua_err;
  2076. if (
  2077. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  2078. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  2079. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2080. )
  2081. goto tolua_lerror;
  2082. else
  2083. #endif
  2084. {
  2085. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  2086. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  2087. #ifndef TOLUA_RELEASE
  2088. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsLooped'", NULL);
  2089. #endif
  2090. {
  2091. bool tolua_ret = (bool) self->IsLooped(*name);
  2092. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  2093. }
  2094. }
  2095. return 1;
  2096. #ifndef TOLUA_RELEASE
  2097. tolua_lerror:
  2098. tolua_error(tolua_S,"#ferror in function 'IsLooped'.",&tolua_err);
  2099. return 0;
  2100. #endif
  2101. }
  2102. #endif //#ifndef TOLUA_DISABLE
  2103. /* method: GetLength of class AnimationController */
  2104. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_GetLength00
  2105. static int tolua_Graphics_AnimationController_GetLength00(lua_State* tolua_S)
  2106. {
  2107. #ifndef TOLUA_RELEASE
  2108. tolua_Error tolua_err;
  2109. if (
  2110. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  2111. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  2112. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2113. )
  2114. goto tolua_lerror;
  2115. else
  2116. #endif
  2117. {
  2118. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  2119. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  2120. #ifndef TOLUA_RELEASE
  2121. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLength'", NULL);
  2122. #endif
  2123. {
  2124. float tolua_ret = (float) self->GetLength(*name);
  2125. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2126. }
  2127. }
  2128. return 1;
  2129. #ifndef TOLUA_RELEASE
  2130. tolua_lerror:
  2131. tolua_error(tolua_S,"#ferror in function 'GetLength'.",&tolua_err);
  2132. return 0;
  2133. #endif
  2134. }
  2135. #endif //#ifndef TOLUA_DISABLE
  2136. /* method: GetSpeed of class AnimationController */
  2137. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_GetSpeed00
  2138. static int tolua_Graphics_AnimationController_GetSpeed00(lua_State* tolua_S)
  2139. {
  2140. #ifndef TOLUA_RELEASE
  2141. tolua_Error tolua_err;
  2142. if (
  2143. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  2144. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  2145. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2146. )
  2147. goto tolua_lerror;
  2148. else
  2149. #endif
  2150. {
  2151. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  2152. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  2153. #ifndef TOLUA_RELEASE
  2154. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSpeed'", NULL);
  2155. #endif
  2156. {
  2157. float tolua_ret = (float) self->GetSpeed(*name);
  2158. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2159. }
  2160. }
  2161. return 1;
  2162. #ifndef TOLUA_RELEASE
  2163. tolua_lerror:
  2164. tolua_error(tolua_S,"#ferror in function 'GetSpeed'.",&tolua_err);
  2165. return 0;
  2166. #endif
  2167. }
  2168. #endif //#ifndef TOLUA_DISABLE
  2169. /* method: GetFadeTarget of class AnimationController */
  2170. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_GetFadeTarget00
  2171. static int tolua_Graphics_AnimationController_GetFadeTarget00(lua_State* tolua_S)
  2172. {
  2173. #ifndef TOLUA_RELEASE
  2174. tolua_Error tolua_err;
  2175. if (
  2176. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  2177. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  2178. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2179. )
  2180. goto tolua_lerror;
  2181. else
  2182. #endif
  2183. {
  2184. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  2185. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  2186. #ifndef TOLUA_RELEASE
  2187. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFadeTarget'", NULL);
  2188. #endif
  2189. {
  2190. float tolua_ret = (float) self->GetFadeTarget(*name);
  2191. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2192. }
  2193. }
  2194. return 1;
  2195. #ifndef TOLUA_RELEASE
  2196. tolua_lerror:
  2197. tolua_error(tolua_S,"#ferror in function 'GetFadeTarget'.",&tolua_err);
  2198. return 0;
  2199. #endif
  2200. }
  2201. #endif //#ifndef TOLUA_DISABLE
  2202. /* method: GetFadeTime of class AnimationController */
  2203. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_GetFadeTime00
  2204. static int tolua_Graphics_AnimationController_GetFadeTime00(lua_State* tolua_S)
  2205. {
  2206. #ifndef TOLUA_RELEASE
  2207. tolua_Error tolua_err;
  2208. if (
  2209. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  2210. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  2211. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2212. )
  2213. goto tolua_lerror;
  2214. else
  2215. #endif
  2216. {
  2217. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  2218. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  2219. #ifndef TOLUA_RELEASE
  2220. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFadeTime'", NULL);
  2221. #endif
  2222. {
  2223. float tolua_ret = (float) self->GetFadeTime(*name);
  2224. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2225. }
  2226. }
  2227. return 1;
  2228. #ifndef TOLUA_RELEASE
  2229. tolua_lerror:
  2230. tolua_error(tolua_S,"#ferror in function 'GetFadeTime'.",&tolua_err);
  2231. return 0;
  2232. #endif
  2233. }
  2234. #endif //#ifndef TOLUA_DISABLE
  2235. /* method: GetAutoFade of class AnimationController */
  2236. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_GetAutoFade00
  2237. static int tolua_Graphics_AnimationController_GetAutoFade00(lua_State* tolua_S)
  2238. {
  2239. #ifndef TOLUA_RELEASE
  2240. tolua_Error tolua_err;
  2241. if (
  2242. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  2243. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  2244. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2245. )
  2246. goto tolua_lerror;
  2247. else
  2248. #endif
  2249. {
  2250. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  2251. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  2252. #ifndef TOLUA_RELEASE
  2253. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAutoFade'", NULL);
  2254. #endif
  2255. {
  2256. float tolua_ret = (float) self->GetAutoFade(*name);
  2257. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2258. }
  2259. }
  2260. return 1;
  2261. #ifndef TOLUA_RELEASE
  2262. tolua_lerror:
  2263. tolua_error(tolua_S,"#ferror in function 'GetAutoFade'.",&tolua_err);
  2264. return 0;
  2265. #endif
  2266. }
  2267. #endif //#ifndef TOLUA_DISABLE
  2268. /* method: new of class AnimationState */
  2269. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_new00
  2270. static int tolua_Graphics_AnimationState_new00(lua_State* tolua_S)
  2271. {
  2272. #ifndef TOLUA_RELEASE
  2273. tolua_Error tolua_err;
  2274. if (
  2275. !tolua_isusertable(tolua_S,1,"AnimationState",0,&tolua_err) ||
  2276. !tolua_isusertype(tolua_S,2,"AnimatedModel",0,&tolua_err) ||
  2277. !tolua_isusertype(tolua_S,3,"Animation",0,&tolua_err) ||
  2278. !tolua_isnoobj(tolua_S,4,&tolua_err)
  2279. )
  2280. goto tolua_lerror;
  2281. else
  2282. #endif
  2283. {
  2284. AnimatedModel* model = ((AnimatedModel*) tolua_tousertype(tolua_S,2,0));
  2285. Animation* animation = ((Animation*) tolua_tousertype(tolua_S,3,0));
  2286. {
  2287. AnimationState* tolua_ret = (AnimationState*) Mtolua_new((AnimationState)(model,animation));
  2288. tolua_pushusertype(tolua_S,(void*)tolua_ret,"AnimationState");
  2289. }
  2290. }
  2291. return 1;
  2292. #ifndef TOLUA_RELEASE
  2293. tolua_lerror:
  2294. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  2295. return 0;
  2296. #endif
  2297. }
  2298. #endif //#ifndef TOLUA_DISABLE
  2299. /* method: new_local of class AnimationState */
  2300. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_new00_local
  2301. static int tolua_Graphics_AnimationState_new00_local(lua_State* tolua_S)
  2302. {
  2303. #ifndef TOLUA_RELEASE
  2304. tolua_Error tolua_err;
  2305. if (
  2306. !tolua_isusertable(tolua_S,1,"AnimationState",0,&tolua_err) ||
  2307. !tolua_isusertype(tolua_S,2,"AnimatedModel",0,&tolua_err) ||
  2308. !tolua_isusertype(tolua_S,3,"Animation",0,&tolua_err) ||
  2309. !tolua_isnoobj(tolua_S,4,&tolua_err)
  2310. )
  2311. goto tolua_lerror;
  2312. else
  2313. #endif
  2314. {
  2315. AnimatedModel* model = ((AnimatedModel*) tolua_tousertype(tolua_S,2,0));
  2316. Animation* animation = ((Animation*) tolua_tousertype(tolua_S,3,0));
  2317. {
  2318. AnimationState* tolua_ret = (AnimationState*) Mtolua_new((AnimationState)(model,animation));
  2319. tolua_pushusertype(tolua_S,(void*)tolua_ret,"AnimationState");
  2320. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2321. }
  2322. }
  2323. return 1;
  2324. #ifndef TOLUA_RELEASE
  2325. tolua_lerror:
  2326. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  2327. return 0;
  2328. #endif
  2329. }
  2330. #endif //#ifndef TOLUA_DISABLE
  2331. /* method: new of class AnimationState */
  2332. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_new01
  2333. static int tolua_Graphics_AnimationState_new01(lua_State* tolua_S)
  2334. {
  2335. tolua_Error tolua_err;
  2336. if (
  2337. !tolua_isusertable(tolua_S,1,"AnimationState",0,&tolua_err) ||
  2338. !tolua_isusertype(tolua_S,2,"Node",0,&tolua_err) ||
  2339. !tolua_isusertype(tolua_S,3,"Animation",0,&tolua_err) ||
  2340. !tolua_isnoobj(tolua_S,4,&tolua_err)
  2341. )
  2342. goto tolua_lerror;
  2343. else
  2344. {
  2345. Node* node = ((Node*) tolua_tousertype(tolua_S,2,0));
  2346. Animation* animation = ((Animation*) tolua_tousertype(tolua_S,3,0));
  2347. {
  2348. AnimationState* tolua_ret = (AnimationState*) Mtolua_new((AnimationState)(node,animation));
  2349. tolua_pushusertype(tolua_S,(void*)tolua_ret,"AnimationState");
  2350. }
  2351. }
  2352. return 1;
  2353. tolua_lerror:
  2354. return tolua_Graphics_AnimationState_new00(tolua_S);
  2355. }
  2356. #endif //#ifndef TOLUA_DISABLE
  2357. /* method: new_local of class AnimationState */
  2358. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_new01_local
  2359. static int tolua_Graphics_AnimationState_new01_local(lua_State* tolua_S)
  2360. {
  2361. tolua_Error tolua_err;
  2362. if (
  2363. !tolua_isusertable(tolua_S,1,"AnimationState",0,&tolua_err) ||
  2364. !tolua_isusertype(tolua_S,2,"Node",0,&tolua_err) ||
  2365. !tolua_isusertype(tolua_S,3,"Animation",0,&tolua_err) ||
  2366. !tolua_isnoobj(tolua_S,4,&tolua_err)
  2367. )
  2368. goto tolua_lerror;
  2369. else
  2370. {
  2371. Node* node = ((Node*) tolua_tousertype(tolua_S,2,0));
  2372. Animation* animation = ((Animation*) tolua_tousertype(tolua_S,3,0));
  2373. {
  2374. AnimationState* tolua_ret = (AnimationState*) Mtolua_new((AnimationState)(node,animation));
  2375. tolua_pushusertype(tolua_S,(void*)tolua_ret,"AnimationState");
  2376. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2377. }
  2378. }
  2379. return 1;
  2380. tolua_lerror:
  2381. return tolua_Graphics_AnimationState_new00_local(tolua_S);
  2382. }
  2383. #endif //#ifndef TOLUA_DISABLE
  2384. /* method: delete of class AnimationState */
  2385. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_delete00
  2386. static int tolua_Graphics_AnimationState_delete00(lua_State* tolua_S)
  2387. {
  2388. #ifndef TOLUA_RELEASE
  2389. tolua_Error tolua_err;
  2390. if (
  2391. !tolua_isusertype(tolua_S,1,"AnimationState",0,&tolua_err) ||
  2392. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2393. )
  2394. goto tolua_lerror;
  2395. else
  2396. #endif
  2397. {
  2398. AnimationState* self = (AnimationState*) tolua_tousertype(tolua_S,1,0);
  2399. #ifndef TOLUA_RELEASE
  2400. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  2401. #endif
  2402. Mtolua_delete(self);
  2403. }
  2404. return 0;
  2405. #ifndef TOLUA_RELEASE
  2406. tolua_lerror:
  2407. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  2408. return 0;
  2409. #endif
  2410. }
  2411. #endif //#ifndef TOLUA_DISABLE
  2412. /* method: SetStartBone of class AnimationState */
  2413. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_SetStartBone00
  2414. static int tolua_Graphics_AnimationState_SetStartBone00(lua_State* tolua_S)
  2415. {
  2416. #ifndef TOLUA_RELEASE
  2417. tolua_Error tolua_err;
  2418. if (
  2419. !tolua_isusertype(tolua_S,1,"AnimationState",0,&tolua_err) ||
  2420. !tolua_isusertype(tolua_S,2,"Bone",0,&tolua_err) ||
  2421. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2422. )
  2423. goto tolua_lerror;
  2424. else
  2425. #endif
  2426. {
  2427. AnimationState* self = (AnimationState*) tolua_tousertype(tolua_S,1,0);
  2428. Bone* bone = ((Bone*) tolua_tousertype(tolua_S,2,0));
  2429. #ifndef TOLUA_RELEASE
  2430. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetStartBone'", NULL);
  2431. #endif
  2432. {
  2433. self->SetStartBone(bone);
  2434. }
  2435. }
  2436. return 0;
  2437. #ifndef TOLUA_RELEASE
  2438. tolua_lerror:
  2439. tolua_error(tolua_S,"#ferror in function 'SetStartBone'.",&tolua_err);
  2440. return 0;
  2441. #endif
  2442. }
  2443. #endif //#ifndef TOLUA_DISABLE
  2444. /* method: SetLooped of class AnimationState */
  2445. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_SetLooped00
  2446. static int tolua_Graphics_AnimationState_SetLooped00(lua_State* tolua_S)
  2447. {
  2448. #ifndef TOLUA_RELEASE
  2449. tolua_Error tolua_err;
  2450. if (
  2451. !tolua_isusertype(tolua_S,1,"AnimationState",0,&tolua_err) ||
  2452. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  2453. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2454. )
  2455. goto tolua_lerror;
  2456. else
  2457. #endif
  2458. {
  2459. AnimationState* self = (AnimationState*) tolua_tousertype(tolua_S,1,0);
  2460. bool looped = ((bool) tolua_toboolean(tolua_S,2,0));
  2461. #ifndef TOLUA_RELEASE
  2462. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLooped'", NULL);
  2463. #endif
  2464. {
  2465. self->SetLooped(looped);
  2466. }
  2467. }
  2468. return 0;
  2469. #ifndef TOLUA_RELEASE
  2470. tolua_lerror:
  2471. tolua_error(tolua_S,"#ferror in function 'SetLooped'.",&tolua_err);
  2472. return 0;
  2473. #endif
  2474. }
  2475. #endif //#ifndef TOLUA_DISABLE
  2476. /* method: SetWeight of class AnimationState */
  2477. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_SetWeight00
  2478. static int tolua_Graphics_AnimationState_SetWeight00(lua_State* tolua_S)
  2479. {
  2480. #ifndef TOLUA_RELEASE
  2481. tolua_Error tolua_err;
  2482. if (
  2483. !tolua_isusertype(tolua_S,1,"AnimationState",0,&tolua_err) ||
  2484. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2485. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2486. )
  2487. goto tolua_lerror;
  2488. else
  2489. #endif
  2490. {
  2491. AnimationState* self = (AnimationState*) tolua_tousertype(tolua_S,1,0);
  2492. float weight = ((float) tolua_tonumber(tolua_S,2,0));
  2493. #ifndef TOLUA_RELEASE
  2494. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetWeight'", NULL);
  2495. #endif
  2496. {
  2497. self->SetWeight(weight);
  2498. }
  2499. }
  2500. return 0;
  2501. #ifndef TOLUA_RELEASE
  2502. tolua_lerror:
  2503. tolua_error(tolua_S,"#ferror in function 'SetWeight'.",&tolua_err);
  2504. return 0;
  2505. #endif
  2506. }
  2507. #endif //#ifndef TOLUA_DISABLE
  2508. /* method: SetTime of class AnimationState */
  2509. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_SetTime00
  2510. static int tolua_Graphics_AnimationState_SetTime00(lua_State* tolua_S)
  2511. {
  2512. #ifndef TOLUA_RELEASE
  2513. tolua_Error tolua_err;
  2514. if (
  2515. !tolua_isusertype(tolua_S,1,"AnimationState",0,&tolua_err) ||
  2516. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2517. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2518. )
  2519. goto tolua_lerror;
  2520. else
  2521. #endif
  2522. {
  2523. AnimationState* self = (AnimationState*) tolua_tousertype(tolua_S,1,0);
  2524. float time = ((float) tolua_tonumber(tolua_S,2,0));
  2525. #ifndef TOLUA_RELEASE
  2526. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTime'", NULL);
  2527. #endif
  2528. {
  2529. self->SetTime(time);
  2530. }
  2531. }
  2532. return 0;
  2533. #ifndef TOLUA_RELEASE
  2534. tolua_lerror:
  2535. tolua_error(tolua_S,"#ferror in function 'SetTime'.",&tolua_err);
  2536. return 0;
  2537. #endif
  2538. }
  2539. #endif //#ifndef TOLUA_DISABLE
  2540. /* method: AddWeight of class AnimationState */
  2541. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_AddWeight00
  2542. static int tolua_Graphics_AnimationState_AddWeight00(lua_State* tolua_S)
  2543. {
  2544. #ifndef TOLUA_RELEASE
  2545. tolua_Error tolua_err;
  2546. if (
  2547. !tolua_isusertype(tolua_S,1,"AnimationState",0,&tolua_err) ||
  2548. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2549. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2550. )
  2551. goto tolua_lerror;
  2552. else
  2553. #endif
  2554. {
  2555. AnimationState* self = (AnimationState*) tolua_tousertype(tolua_S,1,0);
  2556. float delta = ((float) tolua_tonumber(tolua_S,2,0));
  2557. #ifndef TOLUA_RELEASE
  2558. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddWeight'", NULL);
  2559. #endif
  2560. {
  2561. self->AddWeight(delta);
  2562. }
  2563. }
  2564. return 0;
  2565. #ifndef TOLUA_RELEASE
  2566. tolua_lerror:
  2567. tolua_error(tolua_S,"#ferror in function 'AddWeight'.",&tolua_err);
  2568. return 0;
  2569. #endif
  2570. }
  2571. #endif //#ifndef TOLUA_DISABLE
  2572. /* method: AddTime of class AnimationState */
  2573. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_AddTime00
  2574. static int tolua_Graphics_AnimationState_AddTime00(lua_State* tolua_S)
  2575. {
  2576. #ifndef TOLUA_RELEASE
  2577. tolua_Error tolua_err;
  2578. if (
  2579. !tolua_isusertype(tolua_S,1,"AnimationState",0,&tolua_err) ||
  2580. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2581. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2582. )
  2583. goto tolua_lerror;
  2584. else
  2585. #endif
  2586. {
  2587. AnimationState* self = (AnimationState*) tolua_tousertype(tolua_S,1,0);
  2588. float delta = ((float) tolua_tonumber(tolua_S,2,0));
  2589. #ifndef TOLUA_RELEASE
  2590. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddTime'", NULL);
  2591. #endif
  2592. {
  2593. self->AddTime(delta);
  2594. }
  2595. }
  2596. return 0;
  2597. #ifndef TOLUA_RELEASE
  2598. tolua_lerror:
  2599. tolua_error(tolua_S,"#ferror in function 'AddTime'.",&tolua_err);
  2600. return 0;
  2601. #endif
  2602. }
  2603. #endif //#ifndef TOLUA_DISABLE
  2604. /* method: SetLayer of class AnimationState */
  2605. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_SetLayer00
  2606. static int tolua_Graphics_AnimationState_SetLayer00(lua_State* tolua_S)
  2607. {
  2608. #ifndef TOLUA_RELEASE
  2609. tolua_Error tolua_err;
  2610. if (
  2611. !tolua_isusertype(tolua_S,1,"AnimationState",0,&tolua_err) ||
  2612. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2613. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2614. )
  2615. goto tolua_lerror;
  2616. else
  2617. #endif
  2618. {
  2619. AnimationState* self = (AnimationState*) tolua_tousertype(tolua_S,1,0);
  2620. unsigned char layer = ((unsigned char) tolua_tonumber(tolua_S,2,0));
  2621. #ifndef TOLUA_RELEASE
  2622. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLayer'", NULL);
  2623. #endif
  2624. {
  2625. self->SetLayer(layer);
  2626. }
  2627. }
  2628. return 0;
  2629. #ifndef TOLUA_RELEASE
  2630. tolua_lerror:
  2631. tolua_error(tolua_S,"#ferror in function 'SetLayer'.",&tolua_err);
  2632. return 0;
  2633. #endif
  2634. }
  2635. #endif //#ifndef TOLUA_DISABLE
  2636. /* method: GetAnimation of class AnimationState */
  2637. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_GetAnimation00
  2638. static int tolua_Graphics_AnimationState_GetAnimation00(lua_State* tolua_S)
  2639. {
  2640. #ifndef TOLUA_RELEASE
  2641. tolua_Error tolua_err;
  2642. if (
  2643. !tolua_isusertype(tolua_S,1,"const AnimationState",0,&tolua_err) ||
  2644. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2645. )
  2646. goto tolua_lerror;
  2647. else
  2648. #endif
  2649. {
  2650. const AnimationState* self = (const AnimationState*) tolua_tousertype(tolua_S,1,0);
  2651. #ifndef TOLUA_RELEASE
  2652. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAnimation'", NULL);
  2653. #endif
  2654. {
  2655. Animation* tolua_ret = (Animation*) self->GetAnimation();
  2656. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Animation");
  2657. }
  2658. }
  2659. return 1;
  2660. #ifndef TOLUA_RELEASE
  2661. tolua_lerror:
  2662. tolua_error(tolua_S,"#ferror in function 'GetAnimation'.",&tolua_err);
  2663. return 0;
  2664. #endif
  2665. }
  2666. #endif //#ifndef TOLUA_DISABLE
  2667. /* method: GetStartBone of class AnimationState */
  2668. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_GetStartBone00
  2669. static int tolua_Graphics_AnimationState_GetStartBone00(lua_State* tolua_S)
  2670. {
  2671. #ifndef TOLUA_RELEASE
  2672. tolua_Error tolua_err;
  2673. if (
  2674. !tolua_isusertype(tolua_S,1,"const AnimationState",0,&tolua_err) ||
  2675. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2676. )
  2677. goto tolua_lerror;
  2678. else
  2679. #endif
  2680. {
  2681. const AnimationState* self = (const AnimationState*) tolua_tousertype(tolua_S,1,0);
  2682. #ifndef TOLUA_RELEASE
  2683. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetStartBone'", NULL);
  2684. #endif
  2685. {
  2686. Bone* tolua_ret = (Bone*) self->GetStartBone();
  2687. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Bone");
  2688. }
  2689. }
  2690. return 1;
  2691. #ifndef TOLUA_RELEASE
  2692. tolua_lerror:
  2693. tolua_error(tolua_S,"#ferror in function 'GetStartBone'.",&tolua_err);
  2694. return 0;
  2695. #endif
  2696. }
  2697. #endif //#ifndef TOLUA_DISABLE
  2698. /* method: IsEnabled of class AnimationState */
  2699. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_IsEnabled00
  2700. static int tolua_Graphics_AnimationState_IsEnabled00(lua_State* tolua_S)
  2701. {
  2702. #ifndef TOLUA_RELEASE
  2703. tolua_Error tolua_err;
  2704. if (
  2705. !tolua_isusertype(tolua_S,1,"const AnimationState",0,&tolua_err) ||
  2706. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2707. )
  2708. goto tolua_lerror;
  2709. else
  2710. #endif
  2711. {
  2712. const AnimationState* self = (const AnimationState*) tolua_tousertype(tolua_S,1,0);
  2713. #ifndef TOLUA_RELEASE
  2714. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsEnabled'", NULL);
  2715. #endif
  2716. {
  2717. bool tolua_ret = (bool) self->IsEnabled();
  2718. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  2719. }
  2720. }
  2721. return 1;
  2722. #ifndef TOLUA_RELEASE
  2723. tolua_lerror:
  2724. tolua_error(tolua_S,"#ferror in function 'IsEnabled'.",&tolua_err);
  2725. return 0;
  2726. #endif
  2727. }
  2728. #endif //#ifndef TOLUA_DISABLE
  2729. /* method: IsLooped of class AnimationState */
  2730. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_IsLooped00
  2731. static int tolua_Graphics_AnimationState_IsLooped00(lua_State* tolua_S)
  2732. {
  2733. #ifndef TOLUA_RELEASE
  2734. tolua_Error tolua_err;
  2735. if (
  2736. !tolua_isusertype(tolua_S,1,"const AnimationState",0,&tolua_err) ||
  2737. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2738. )
  2739. goto tolua_lerror;
  2740. else
  2741. #endif
  2742. {
  2743. const AnimationState* self = (const AnimationState*) tolua_tousertype(tolua_S,1,0);
  2744. #ifndef TOLUA_RELEASE
  2745. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsLooped'", NULL);
  2746. #endif
  2747. {
  2748. bool tolua_ret = (bool) self->IsLooped();
  2749. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  2750. }
  2751. }
  2752. return 1;
  2753. #ifndef TOLUA_RELEASE
  2754. tolua_lerror:
  2755. tolua_error(tolua_S,"#ferror in function 'IsLooped'.",&tolua_err);
  2756. return 0;
  2757. #endif
  2758. }
  2759. #endif //#ifndef TOLUA_DISABLE
  2760. /* method: GetWeight of class AnimationState */
  2761. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_GetWeight00
  2762. static int tolua_Graphics_AnimationState_GetWeight00(lua_State* tolua_S)
  2763. {
  2764. #ifndef TOLUA_RELEASE
  2765. tolua_Error tolua_err;
  2766. if (
  2767. !tolua_isusertype(tolua_S,1,"const AnimationState",0,&tolua_err) ||
  2768. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2769. )
  2770. goto tolua_lerror;
  2771. else
  2772. #endif
  2773. {
  2774. const AnimationState* self = (const AnimationState*) tolua_tousertype(tolua_S,1,0);
  2775. #ifndef TOLUA_RELEASE
  2776. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWeight'", NULL);
  2777. #endif
  2778. {
  2779. float tolua_ret = (float) self->GetWeight();
  2780. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2781. }
  2782. }
  2783. return 1;
  2784. #ifndef TOLUA_RELEASE
  2785. tolua_lerror:
  2786. tolua_error(tolua_S,"#ferror in function 'GetWeight'.",&tolua_err);
  2787. return 0;
  2788. #endif
  2789. }
  2790. #endif //#ifndef TOLUA_DISABLE
  2791. /* method: GetTime of class AnimationState */
  2792. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_GetTime00
  2793. static int tolua_Graphics_AnimationState_GetTime00(lua_State* tolua_S)
  2794. {
  2795. #ifndef TOLUA_RELEASE
  2796. tolua_Error tolua_err;
  2797. if (
  2798. !tolua_isusertype(tolua_S,1,"const AnimationState",0,&tolua_err) ||
  2799. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2800. )
  2801. goto tolua_lerror;
  2802. else
  2803. #endif
  2804. {
  2805. const AnimationState* self = (const AnimationState*) tolua_tousertype(tolua_S,1,0);
  2806. #ifndef TOLUA_RELEASE
  2807. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTime'", NULL);
  2808. #endif
  2809. {
  2810. float tolua_ret = (float) self->GetTime();
  2811. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2812. }
  2813. }
  2814. return 1;
  2815. #ifndef TOLUA_RELEASE
  2816. tolua_lerror:
  2817. tolua_error(tolua_S,"#ferror in function 'GetTime'.",&tolua_err);
  2818. return 0;
  2819. #endif
  2820. }
  2821. #endif //#ifndef TOLUA_DISABLE
  2822. /* method: GetLength of class AnimationState */
  2823. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_GetLength00
  2824. static int tolua_Graphics_AnimationState_GetLength00(lua_State* tolua_S)
  2825. {
  2826. #ifndef TOLUA_RELEASE
  2827. tolua_Error tolua_err;
  2828. if (
  2829. !tolua_isusertype(tolua_S,1,"const AnimationState",0,&tolua_err) ||
  2830. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2831. )
  2832. goto tolua_lerror;
  2833. else
  2834. #endif
  2835. {
  2836. const AnimationState* self = (const AnimationState*) tolua_tousertype(tolua_S,1,0);
  2837. #ifndef TOLUA_RELEASE
  2838. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLength'", NULL);
  2839. #endif
  2840. {
  2841. float tolua_ret = (float) self->GetLength();
  2842. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2843. }
  2844. }
  2845. return 1;
  2846. #ifndef TOLUA_RELEASE
  2847. tolua_lerror:
  2848. tolua_error(tolua_S,"#ferror in function 'GetLength'.",&tolua_err);
  2849. return 0;
  2850. #endif
  2851. }
  2852. #endif //#ifndef TOLUA_DISABLE
  2853. /* method: GetLayer of class AnimationState */
  2854. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_GetLayer00
  2855. static int tolua_Graphics_AnimationState_GetLayer00(lua_State* tolua_S)
  2856. {
  2857. #ifndef TOLUA_RELEASE
  2858. tolua_Error tolua_err;
  2859. if (
  2860. !tolua_isusertype(tolua_S,1,"const AnimationState",0,&tolua_err) ||
  2861. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2862. )
  2863. goto tolua_lerror;
  2864. else
  2865. #endif
  2866. {
  2867. const AnimationState* self = (const AnimationState*) tolua_tousertype(tolua_S,1,0);
  2868. #ifndef TOLUA_RELEASE
  2869. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLayer'", NULL);
  2870. #endif
  2871. {
  2872. unsigned char tolua_ret = (unsigned char) self->GetLayer();
  2873. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2874. }
  2875. }
  2876. return 1;
  2877. #ifndef TOLUA_RELEASE
  2878. tolua_lerror:
  2879. tolua_error(tolua_S,"#ferror in function 'GetLayer'.",&tolua_err);
  2880. return 0;
  2881. #endif
  2882. }
  2883. #endif //#ifndef TOLUA_DISABLE
  2884. /* method: Apply of class AnimationState */
  2885. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_Apply00
  2886. static int tolua_Graphics_AnimationState_Apply00(lua_State* tolua_S)
  2887. {
  2888. #ifndef TOLUA_RELEASE
  2889. tolua_Error tolua_err;
  2890. if (
  2891. !tolua_isusertype(tolua_S,1,"AnimationState",0,&tolua_err) ||
  2892. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2893. )
  2894. goto tolua_lerror;
  2895. else
  2896. #endif
  2897. {
  2898. AnimationState* self = (AnimationState*) tolua_tousertype(tolua_S,1,0);
  2899. #ifndef TOLUA_RELEASE
  2900. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Apply'", NULL);
  2901. #endif
  2902. {
  2903. self->Apply();
  2904. }
  2905. }
  2906. return 0;
  2907. #ifndef TOLUA_RELEASE
  2908. tolua_lerror:
  2909. tolua_error(tolua_S,"#ferror in function 'Apply'.",&tolua_err);
  2910. return 0;
  2911. #endif
  2912. }
  2913. #endif //#ifndef TOLUA_DISABLE
  2914. /* method: SetMaterial of class BillboardSet */
  2915. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_SetMaterial00
  2916. static int tolua_Graphics_BillboardSet_SetMaterial00(lua_State* tolua_S)
  2917. {
  2918. #ifndef TOLUA_RELEASE
  2919. tolua_Error tolua_err;
  2920. if (
  2921. !tolua_isusertype(tolua_S,1,"BillboardSet",0,&tolua_err) ||
  2922. !tolua_isusertype(tolua_S,2,"Material",0,&tolua_err) ||
  2923. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2924. )
  2925. goto tolua_lerror;
  2926. else
  2927. #endif
  2928. {
  2929. BillboardSet* self = (BillboardSet*) tolua_tousertype(tolua_S,1,0);
  2930. Material* material = ((Material*) tolua_tousertype(tolua_S,2,0));
  2931. #ifndef TOLUA_RELEASE
  2932. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaterial'", NULL);
  2933. #endif
  2934. {
  2935. self->SetMaterial(material);
  2936. }
  2937. }
  2938. return 0;
  2939. #ifndef TOLUA_RELEASE
  2940. tolua_lerror:
  2941. tolua_error(tolua_S,"#ferror in function 'SetMaterial'.",&tolua_err);
  2942. return 0;
  2943. #endif
  2944. }
  2945. #endif //#ifndef TOLUA_DISABLE
  2946. /* method: SetNumBillboards of class BillboardSet */
  2947. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_SetNumBillboards00
  2948. static int tolua_Graphics_BillboardSet_SetNumBillboards00(lua_State* tolua_S)
  2949. {
  2950. #ifndef TOLUA_RELEASE
  2951. tolua_Error tolua_err;
  2952. if (
  2953. !tolua_isusertype(tolua_S,1,"BillboardSet",0,&tolua_err) ||
  2954. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2955. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2956. )
  2957. goto tolua_lerror;
  2958. else
  2959. #endif
  2960. {
  2961. BillboardSet* self = (BillboardSet*) tolua_tousertype(tolua_S,1,0);
  2962. unsigned num = ((unsigned) tolua_tonumber(tolua_S,2,0));
  2963. #ifndef TOLUA_RELEASE
  2964. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetNumBillboards'", NULL);
  2965. #endif
  2966. {
  2967. self->SetNumBillboards(num);
  2968. }
  2969. }
  2970. return 0;
  2971. #ifndef TOLUA_RELEASE
  2972. tolua_lerror:
  2973. tolua_error(tolua_S,"#ferror in function 'SetNumBillboards'.",&tolua_err);
  2974. return 0;
  2975. #endif
  2976. }
  2977. #endif //#ifndef TOLUA_DISABLE
  2978. /* method: SetRelative of class BillboardSet */
  2979. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_SetRelative00
  2980. static int tolua_Graphics_BillboardSet_SetRelative00(lua_State* tolua_S)
  2981. {
  2982. #ifndef TOLUA_RELEASE
  2983. tolua_Error tolua_err;
  2984. if (
  2985. !tolua_isusertype(tolua_S,1,"BillboardSet",0,&tolua_err) ||
  2986. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  2987. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2988. )
  2989. goto tolua_lerror;
  2990. else
  2991. #endif
  2992. {
  2993. BillboardSet* self = (BillboardSet*) tolua_tousertype(tolua_S,1,0);
  2994. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  2995. #ifndef TOLUA_RELEASE
  2996. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRelative'", NULL);
  2997. #endif
  2998. {
  2999. self->SetRelative(enable);
  3000. }
  3001. }
  3002. return 0;
  3003. #ifndef TOLUA_RELEASE
  3004. tolua_lerror:
  3005. tolua_error(tolua_S,"#ferror in function 'SetRelative'.",&tolua_err);
  3006. return 0;
  3007. #endif
  3008. }
  3009. #endif //#ifndef TOLUA_DISABLE
  3010. /* method: SetScaled of class BillboardSet */
  3011. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_SetScaled00
  3012. static int tolua_Graphics_BillboardSet_SetScaled00(lua_State* tolua_S)
  3013. {
  3014. #ifndef TOLUA_RELEASE
  3015. tolua_Error tolua_err;
  3016. if (
  3017. !tolua_isusertype(tolua_S,1,"BillboardSet",0,&tolua_err) ||
  3018. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  3019. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3020. )
  3021. goto tolua_lerror;
  3022. else
  3023. #endif
  3024. {
  3025. BillboardSet* self = (BillboardSet*) tolua_tousertype(tolua_S,1,0);
  3026. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  3027. #ifndef TOLUA_RELEASE
  3028. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetScaled'", NULL);
  3029. #endif
  3030. {
  3031. self->SetScaled(enable);
  3032. }
  3033. }
  3034. return 0;
  3035. #ifndef TOLUA_RELEASE
  3036. tolua_lerror:
  3037. tolua_error(tolua_S,"#ferror in function 'SetScaled'.",&tolua_err);
  3038. return 0;
  3039. #endif
  3040. }
  3041. #endif //#ifndef TOLUA_DISABLE
  3042. /* method: SetSorted of class BillboardSet */
  3043. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_SetSorted00
  3044. static int tolua_Graphics_BillboardSet_SetSorted00(lua_State* tolua_S)
  3045. {
  3046. #ifndef TOLUA_RELEASE
  3047. tolua_Error tolua_err;
  3048. if (
  3049. !tolua_isusertype(tolua_S,1,"BillboardSet",0,&tolua_err) ||
  3050. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  3051. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3052. )
  3053. goto tolua_lerror;
  3054. else
  3055. #endif
  3056. {
  3057. BillboardSet* self = (BillboardSet*) tolua_tousertype(tolua_S,1,0);
  3058. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  3059. #ifndef TOLUA_RELEASE
  3060. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSorted'", NULL);
  3061. #endif
  3062. {
  3063. self->SetSorted(enable);
  3064. }
  3065. }
  3066. return 0;
  3067. #ifndef TOLUA_RELEASE
  3068. tolua_lerror:
  3069. tolua_error(tolua_S,"#ferror in function 'SetSorted'.",&tolua_err);
  3070. return 0;
  3071. #endif
  3072. }
  3073. #endif //#ifndef TOLUA_DISABLE
  3074. /* method: SetAnimationLodBias of class BillboardSet */
  3075. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_SetAnimationLodBias00
  3076. static int tolua_Graphics_BillboardSet_SetAnimationLodBias00(lua_State* tolua_S)
  3077. {
  3078. #ifndef TOLUA_RELEASE
  3079. tolua_Error tolua_err;
  3080. if (
  3081. !tolua_isusertype(tolua_S,1,"BillboardSet",0,&tolua_err) ||
  3082. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3083. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3084. )
  3085. goto tolua_lerror;
  3086. else
  3087. #endif
  3088. {
  3089. BillboardSet* self = (BillboardSet*) tolua_tousertype(tolua_S,1,0);
  3090. float bias = ((float) tolua_tonumber(tolua_S,2,0));
  3091. #ifndef TOLUA_RELEASE
  3092. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAnimationLodBias'", NULL);
  3093. #endif
  3094. {
  3095. self->SetAnimationLodBias(bias);
  3096. }
  3097. }
  3098. return 0;
  3099. #ifndef TOLUA_RELEASE
  3100. tolua_lerror:
  3101. tolua_error(tolua_S,"#ferror in function 'SetAnimationLodBias'.",&tolua_err);
  3102. return 0;
  3103. #endif
  3104. }
  3105. #endif //#ifndef TOLUA_DISABLE
  3106. /* method: Commit of class BillboardSet */
  3107. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_Commit00
  3108. static int tolua_Graphics_BillboardSet_Commit00(lua_State* tolua_S)
  3109. {
  3110. #ifndef TOLUA_RELEASE
  3111. tolua_Error tolua_err;
  3112. if (
  3113. !tolua_isusertype(tolua_S,1,"BillboardSet",0,&tolua_err) ||
  3114. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3115. )
  3116. goto tolua_lerror;
  3117. else
  3118. #endif
  3119. {
  3120. BillboardSet* self = (BillboardSet*) tolua_tousertype(tolua_S,1,0);
  3121. #ifndef TOLUA_RELEASE
  3122. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Commit'", NULL);
  3123. #endif
  3124. {
  3125. self->Commit();
  3126. }
  3127. }
  3128. return 0;
  3129. #ifndef TOLUA_RELEASE
  3130. tolua_lerror:
  3131. tolua_error(tolua_S,"#ferror in function 'Commit'.",&tolua_err);
  3132. return 0;
  3133. #endif
  3134. }
  3135. #endif //#ifndef TOLUA_DISABLE
  3136. /* method: GetMaterial of class BillboardSet */
  3137. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_GetMaterial00
  3138. static int tolua_Graphics_BillboardSet_GetMaterial00(lua_State* tolua_S)
  3139. {
  3140. #ifndef TOLUA_RELEASE
  3141. tolua_Error tolua_err;
  3142. if (
  3143. !tolua_isusertype(tolua_S,1,"const BillboardSet",0,&tolua_err) ||
  3144. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3145. )
  3146. goto tolua_lerror;
  3147. else
  3148. #endif
  3149. {
  3150. const BillboardSet* self = (const BillboardSet*) tolua_tousertype(tolua_S,1,0);
  3151. #ifndef TOLUA_RELEASE
  3152. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaterial'", NULL);
  3153. #endif
  3154. {
  3155. Material* tolua_ret = (Material*) self->GetMaterial();
  3156. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Material");
  3157. }
  3158. }
  3159. return 1;
  3160. #ifndef TOLUA_RELEASE
  3161. tolua_lerror:
  3162. tolua_error(tolua_S,"#ferror in function 'GetMaterial'.",&tolua_err);
  3163. return 0;
  3164. #endif
  3165. }
  3166. #endif //#ifndef TOLUA_DISABLE
  3167. /* method: GetNumBillboards of class BillboardSet */
  3168. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_GetNumBillboards00
  3169. static int tolua_Graphics_BillboardSet_GetNumBillboards00(lua_State* tolua_S)
  3170. {
  3171. #ifndef TOLUA_RELEASE
  3172. tolua_Error tolua_err;
  3173. if (
  3174. !tolua_isusertype(tolua_S,1,"const BillboardSet",0,&tolua_err) ||
  3175. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3176. )
  3177. goto tolua_lerror;
  3178. else
  3179. #endif
  3180. {
  3181. const BillboardSet* self = (const BillboardSet*) tolua_tousertype(tolua_S,1,0);
  3182. #ifndef TOLUA_RELEASE
  3183. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumBillboards'", NULL);
  3184. #endif
  3185. {
  3186. unsigned tolua_ret = (unsigned) self->GetNumBillboards();
  3187. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3188. }
  3189. }
  3190. return 1;
  3191. #ifndef TOLUA_RELEASE
  3192. tolua_lerror:
  3193. tolua_error(tolua_S,"#ferror in function 'GetNumBillboards'.",&tolua_err);
  3194. return 0;
  3195. #endif
  3196. }
  3197. #endif //#ifndef TOLUA_DISABLE
  3198. /* method: GetBillboard of class BillboardSet */
  3199. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_GetBillboard00
  3200. static int tolua_Graphics_BillboardSet_GetBillboard00(lua_State* tolua_S)
  3201. {
  3202. #ifndef TOLUA_RELEASE
  3203. tolua_Error tolua_err;
  3204. if (
  3205. !tolua_isusertype(tolua_S,1,"BillboardSet",0,&tolua_err) ||
  3206. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3207. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3208. )
  3209. goto tolua_lerror;
  3210. else
  3211. #endif
  3212. {
  3213. BillboardSet* self = (BillboardSet*) tolua_tousertype(tolua_S,1,0);
  3214. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3215. #ifndef TOLUA_RELEASE
  3216. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBillboard'", NULL);
  3217. #endif
  3218. {
  3219. Billboard* tolua_ret = (Billboard*) self->GetBillboard(index);
  3220. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Billboard");
  3221. }
  3222. }
  3223. return 1;
  3224. #ifndef TOLUA_RELEASE
  3225. tolua_lerror:
  3226. tolua_error(tolua_S,"#ferror in function 'GetBillboard'.",&tolua_err);
  3227. return 0;
  3228. #endif
  3229. }
  3230. #endif //#ifndef TOLUA_DISABLE
  3231. /* method: IsRelative of class BillboardSet */
  3232. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_IsRelative00
  3233. static int tolua_Graphics_BillboardSet_IsRelative00(lua_State* tolua_S)
  3234. {
  3235. #ifndef TOLUA_RELEASE
  3236. tolua_Error tolua_err;
  3237. if (
  3238. !tolua_isusertype(tolua_S,1,"const BillboardSet",0,&tolua_err) ||
  3239. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3240. )
  3241. goto tolua_lerror;
  3242. else
  3243. #endif
  3244. {
  3245. const BillboardSet* self = (const BillboardSet*) tolua_tousertype(tolua_S,1,0);
  3246. #ifndef TOLUA_RELEASE
  3247. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsRelative'", NULL);
  3248. #endif
  3249. {
  3250. bool tolua_ret = (bool) self->IsRelative();
  3251. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3252. }
  3253. }
  3254. return 1;
  3255. #ifndef TOLUA_RELEASE
  3256. tolua_lerror:
  3257. tolua_error(tolua_S,"#ferror in function 'IsRelative'.",&tolua_err);
  3258. return 0;
  3259. #endif
  3260. }
  3261. #endif //#ifndef TOLUA_DISABLE
  3262. /* method: IsScaled of class BillboardSet */
  3263. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_IsScaled00
  3264. static int tolua_Graphics_BillboardSet_IsScaled00(lua_State* tolua_S)
  3265. {
  3266. #ifndef TOLUA_RELEASE
  3267. tolua_Error tolua_err;
  3268. if (
  3269. !tolua_isusertype(tolua_S,1,"const BillboardSet",0,&tolua_err) ||
  3270. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3271. )
  3272. goto tolua_lerror;
  3273. else
  3274. #endif
  3275. {
  3276. const BillboardSet* self = (const BillboardSet*) tolua_tousertype(tolua_S,1,0);
  3277. #ifndef TOLUA_RELEASE
  3278. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsScaled'", NULL);
  3279. #endif
  3280. {
  3281. bool tolua_ret = (bool) self->IsScaled();
  3282. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3283. }
  3284. }
  3285. return 1;
  3286. #ifndef TOLUA_RELEASE
  3287. tolua_lerror:
  3288. tolua_error(tolua_S,"#ferror in function 'IsScaled'.",&tolua_err);
  3289. return 0;
  3290. #endif
  3291. }
  3292. #endif //#ifndef TOLUA_DISABLE
  3293. /* method: IsSorted of class BillboardSet */
  3294. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_IsSorted00
  3295. static int tolua_Graphics_BillboardSet_IsSorted00(lua_State* tolua_S)
  3296. {
  3297. #ifndef TOLUA_RELEASE
  3298. tolua_Error tolua_err;
  3299. if (
  3300. !tolua_isusertype(tolua_S,1,"const BillboardSet",0,&tolua_err) ||
  3301. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3302. )
  3303. goto tolua_lerror;
  3304. else
  3305. #endif
  3306. {
  3307. const BillboardSet* self = (const BillboardSet*) tolua_tousertype(tolua_S,1,0);
  3308. #ifndef TOLUA_RELEASE
  3309. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsSorted'", NULL);
  3310. #endif
  3311. {
  3312. bool tolua_ret = (bool) self->IsSorted();
  3313. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3314. }
  3315. }
  3316. return 1;
  3317. #ifndef TOLUA_RELEASE
  3318. tolua_lerror:
  3319. tolua_error(tolua_S,"#ferror in function 'IsSorted'.",&tolua_err);
  3320. return 0;
  3321. #endif
  3322. }
  3323. #endif //#ifndef TOLUA_DISABLE
  3324. /* method: GetAnimationLodBias of class BillboardSet */
  3325. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_GetAnimationLodBias00
  3326. static int tolua_Graphics_BillboardSet_GetAnimationLodBias00(lua_State* tolua_S)
  3327. {
  3328. #ifndef TOLUA_RELEASE
  3329. tolua_Error tolua_err;
  3330. if (
  3331. !tolua_isusertype(tolua_S,1,"const BillboardSet",0,&tolua_err) ||
  3332. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3333. )
  3334. goto tolua_lerror;
  3335. else
  3336. #endif
  3337. {
  3338. const BillboardSet* self = (const BillboardSet*) tolua_tousertype(tolua_S,1,0);
  3339. #ifndef TOLUA_RELEASE
  3340. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAnimationLodBias'", NULL);
  3341. #endif
  3342. {
  3343. float tolua_ret = (float) self->GetAnimationLodBias();
  3344. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3345. }
  3346. }
  3347. return 1;
  3348. #ifndef TOLUA_RELEASE
  3349. tolua_lerror:
  3350. tolua_error(tolua_S,"#ferror in function 'GetAnimationLodBias'.",&tolua_err);
  3351. return 0;
  3352. #endif
  3353. }
  3354. #endif //#ifndef TOLUA_DISABLE
  3355. /* method: GetAnimationLodBias of class BillboardSet */
  3356. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_GetAnimationLodBias01
  3357. static int tolua_Graphics_BillboardSet_GetAnimationLodBias01(lua_State* tolua_S)
  3358. {
  3359. tolua_Error tolua_err;
  3360. if (
  3361. !tolua_isusertype(tolua_S,1,"const BillboardSet",0,&tolua_err) ||
  3362. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3363. )
  3364. goto tolua_lerror;
  3365. else
  3366. {
  3367. const BillboardSet* self = (const BillboardSet*) tolua_tousertype(tolua_S,1,0);
  3368. #ifndef TOLUA_RELEASE
  3369. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAnimationLodBias'", NULL);
  3370. #endif
  3371. {
  3372. float tolua_ret = (float) self->GetAnimationLodBias();
  3373. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3374. }
  3375. }
  3376. return 1;
  3377. tolua_lerror:
  3378. return tolua_Graphics_BillboardSet_GetAnimationLodBias00(tolua_S);
  3379. }
  3380. #endif //#ifndef TOLUA_DISABLE
  3381. /* method: SetNearClip of class Camera */
  3382. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetNearClip00
  3383. static int tolua_Graphics_Camera_SetNearClip00(lua_State* tolua_S)
  3384. {
  3385. #ifndef TOLUA_RELEASE
  3386. tolua_Error tolua_err;
  3387. if (
  3388. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3389. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3390. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3391. )
  3392. goto tolua_lerror;
  3393. else
  3394. #endif
  3395. {
  3396. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3397. float nearClip = ((float) tolua_tonumber(tolua_S,2,0));
  3398. #ifndef TOLUA_RELEASE
  3399. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetNearClip'", NULL);
  3400. #endif
  3401. {
  3402. self->SetNearClip(nearClip);
  3403. }
  3404. }
  3405. return 0;
  3406. #ifndef TOLUA_RELEASE
  3407. tolua_lerror:
  3408. tolua_error(tolua_S,"#ferror in function 'SetNearClip'.",&tolua_err);
  3409. return 0;
  3410. #endif
  3411. }
  3412. #endif //#ifndef TOLUA_DISABLE
  3413. /* method: SetFarClip of class Camera */
  3414. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetFarClip00
  3415. static int tolua_Graphics_Camera_SetFarClip00(lua_State* tolua_S)
  3416. {
  3417. #ifndef TOLUA_RELEASE
  3418. tolua_Error tolua_err;
  3419. if (
  3420. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3421. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3422. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3423. )
  3424. goto tolua_lerror;
  3425. else
  3426. #endif
  3427. {
  3428. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3429. float farClip = ((float) tolua_tonumber(tolua_S,2,0));
  3430. #ifndef TOLUA_RELEASE
  3431. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFarClip'", NULL);
  3432. #endif
  3433. {
  3434. self->SetFarClip(farClip);
  3435. }
  3436. }
  3437. return 0;
  3438. #ifndef TOLUA_RELEASE
  3439. tolua_lerror:
  3440. tolua_error(tolua_S,"#ferror in function 'SetFarClip'.",&tolua_err);
  3441. return 0;
  3442. #endif
  3443. }
  3444. #endif //#ifndef TOLUA_DISABLE
  3445. /* method: SetFov of class Camera */
  3446. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetFov00
  3447. static int tolua_Graphics_Camera_SetFov00(lua_State* tolua_S)
  3448. {
  3449. #ifndef TOLUA_RELEASE
  3450. tolua_Error tolua_err;
  3451. if (
  3452. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3453. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3454. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3455. )
  3456. goto tolua_lerror;
  3457. else
  3458. #endif
  3459. {
  3460. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3461. float fov = ((float) tolua_tonumber(tolua_S,2,0));
  3462. #ifndef TOLUA_RELEASE
  3463. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFov'", NULL);
  3464. #endif
  3465. {
  3466. self->SetFov(fov);
  3467. }
  3468. }
  3469. return 0;
  3470. #ifndef TOLUA_RELEASE
  3471. tolua_lerror:
  3472. tolua_error(tolua_S,"#ferror in function 'SetFov'.",&tolua_err);
  3473. return 0;
  3474. #endif
  3475. }
  3476. #endif //#ifndef TOLUA_DISABLE
  3477. /* method: SetOrthoSize of class Camera */
  3478. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetOrthoSize00
  3479. static int tolua_Graphics_Camera_SetOrthoSize00(lua_State* tolua_S)
  3480. {
  3481. #ifndef TOLUA_RELEASE
  3482. tolua_Error tolua_err;
  3483. if (
  3484. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3485. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3486. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3487. )
  3488. goto tolua_lerror;
  3489. else
  3490. #endif
  3491. {
  3492. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3493. float orthoSize = ((float) tolua_tonumber(tolua_S,2,0));
  3494. #ifndef TOLUA_RELEASE
  3495. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOrthoSize'", NULL);
  3496. #endif
  3497. {
  3498. self->SetOrthoSize(orthoSize);
  3499. }
  3500. }
  3501. return 0;
  3502. #ifndef TOLUA_RELEASE
  3503. tolua_lerror:
  3504. tolua_error(tolua_S,"#ferror in function 'SetOrthoSize'.",&tolua_err);
  3505. return 0;
  3506. #endif
  3507. }
  3508. #endif //#ifndef TOLUA_DISABLE
  3509. /* method: SetOrthoSize of class Camera */
  3510. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetOrthoSize01
  3511. static int tolua_Graphics_Camera_SetOrthoSize01(lua_State* tolua_S)
  3512. {
  3513. tolua_Error tolua_err;
  3514. if (
  3515. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3516. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector2",0,&tolua_err)) ||
  3517. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3518. )
  3519. goto tolua_lerror;
  3520. else
  3521. {
  3522. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3523. const Vector2* orthoSize = ((const Vector2*) tolua_tousertype(tolua_S,2,0));
  3524. #ifndef TOLUA_RELEASE
  3525. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOrthoSize'", NULL);
  3526. #endif
  3527. {
  3528. self->SetOrthoSize(*orthoSize);
  3529. }
  3530. }
  3531. return 0;
  3532. tolua_lerror:
  3533. return tolua_Graphics_Camera_SetOrthoSize00(tolua_S);
  3534. }
  3535. #endif //#ifndef TOLUA_DISABLE
  3536. /* method: SetAspectRatio of class Camera */
  3537. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetAspectRatio00
  3538. static int tolua_Graphics_Camera_SetAspectRatio00(lua_State* tolua_S)
  3539. {
  3540. #ifndef TOLUA_RELEASE
  3541. tolua_Error tolua_err;
  3542. if (
  3543. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3544. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3545. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3546. )
  3547. goto tolua_lerror;
  3548. else
  3549. #endif
  3550. {
  3551. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3552. float aspectRatio = ((float) tolua_tonumber(tolua_S,2,0));
  3553. #ifndef TOLUA_RELEASE
  3554. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAspectRatio'", NULL);
  3555. #endif
  3556. {
  3557. self->SetAspectRatio(aspectRatio);
  3558. }
  3559. }
  3560. return 0;
  3561. #ifndef TOLUA_RELEASE
  3562. tolua_lerror:
  3563. tolua_error(tolua_S,"#ferror in function 'SetAspectRatio'.",&tolua_err);
  3564. return 0;
  3565. #endif
  3566. }
  3567. #endif //#ifndef TOLUA_DISABLE
  3568. /* method: SetFillMode of class Camera */
  3569. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetFillMode00
  3570. static int tolua_Graphics_Camera_SetFillMode00(lua_State* tolua_S)
  3571. {
  3572. #ifndef TOLUA_RELEASE
  3573. tolua_Error tolua_err;
  3574. if (
  3575. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3576. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3577. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3578. )
  3579. goto tolua_lerror;
  3580. else
  3581. #endif
  3582. {
  3583. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3584. FillMode mode = ((FillMode) (int) tolua_tonumber(tolua_S,2,0));
  3585. #ifndef TOLUA_RELEASE
  3586. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFillMode'", NULL);
  3587. #endif
  3588. {
  3589. self->SetFillMode(mode);
  3590. }
  3591. }
  3592. return 0;
  3593. #ifndef TOLUA_RELEASE
  3594. tolua_lerror:
  3595. tolua_error(tolua_S,"#ferror in function 'SetFillMode'.",&tolua_err);
  3596. return 0;
  3597. #endif
  3598. }
  3599. #endif //#ifndef TOLUA_DISABLE
  3600. /* method: SetZoom of class Camera */
  3601. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetZoom00
  3602. static int tolua_Graphics_Camera_SetZoom00(lua_State* tolua_S)
  3603. {
  3604. #ifndef TOLUA_RELEASE
  3605. tolua_Error tolua_err;
  3606. if (
  3607. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3608. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3609. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3610. )
  3611. goto tolua_lerror;
  3612. else
  3613. #endif
  3614. {
  3615. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3616. float zoom = ((float) tolua_tonumber(tolua_S,2,0));
  3617. #ifndef TOLUA_RELEASE
  3618. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetZoom'", NULL);
  3619. #endif
  3620. {
  3621. self->SetZoom(zoom);
  3622. }
  3623. }
  3624. return 0;
  3625. #ifndef TOLUA_RELEASE
  3626. tolua_lerror:
  3627. tolua_error(tolua_S,"#ferror in function 'SetZoom'.",&tolua_err);
  3628. return 0;
  3629. #endif
  3630. }
  3631. #endif //#ifndef TOLUA_DISABLE
  3632. /* method: SetLodBias of class Camera */
  3633. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetLodBias00
  3634. static int tolua_Graphics_Camera_SetLodBias00(lua_State* tolua_S)
  3635. {
  3636. #ifndef TOLUA_RELEASE
  3637. tolua_Error tolua_err;
  3638. if (
  3639. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3640. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3641. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3642. )
  3643. goto tolua_lerror;
  3644. else
  3645. #endif
  3646. {
  3647. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3648. float bias = ((float) tolua_tonumber(tolua_S,2,0));
  3649. #ifndef TOLUA_RELEASE
  3650. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLodBias'", NULL);
  3651. #endif
  3652. {
  3653. self->SetLodBias(bias);
  3654. }
  3655. }
  3656. return 0;
  3657. #ifndef TOLUA_RELEASE
  3658. tolua_lerror:
  3659. tolua_error(tolua_S,"#ferror in function 'SetLodBias'.",&tolua_err);
  3660. return 0;
  3661. #endif
  3662. }
  3663. #endif //#ifndef TOLUA_DISABLE
  3664. /* method: SetViewMask of class Camera */
  3665. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetViewMask00
  3666. static int tolua_Graphics_Camera_SetViewMask00(lua_State* tolua_S)
  3667. {
  3668. #ifndef TOLUA_RELEASE
  3669. tolua_Error tolua_err;
  3670. if (
  3671. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3672. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3673. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3674. )
  3675. goto tolua_lerror;
  3676. else
  3677. #endif
  3678. {
  3679. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3680. unsigned mask = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3681. #ifndef TOLUA_RELEASE
  3682. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetViewMask'", NULL);
  3683. #endif
  3684. {
  3685. self->SetViewMask(mask);
  3686. }
  3687. }
  3688. return 0;
  3689. #ifndef TOLUA_RELEASE
  3690. tolua_lerror:
  3691. tolua_error(tolua_S,"#ferror in function 'SetViewMask'.",&tolua_err);
  3692. return 0;
  3693. #endif
  3694. }
  3695. #endif //#ifndef TOLUA_DISABLE
  3696. /* method: SetViewOverrideFlags of class Camera */
  3697. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetViewOverrideFlags00
  3698. static int tolua_Graphics_Camera_SetViewOverrideFlags00(lua_State* tolua_S)
  3699. {
  3700. #ifndef TOLUA_RELEASE
  3701. tolua_Error tolua_err;
  3702. if (
  3703. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3704. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3705. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3706. )
  3707. goto tolua_lerror;
  3708. else
  3709. #endif
  3710. {
  3711. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3712. unsigned flags = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3713. #ifndef TOLUA_RELEASE
  3714. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetViewOverrideFlags'", NULL);
  3715. #endif
  3716. {
  3717. self->SetViewOverrideFlags(flags);
  3718. }
  3719. }
  3720. return 0;
  3721. #ifndef TOLUA_RELEASE
  3722. tolua_lerror:
  3723. tolua_error(tolua_S,"#ferror in function 'SetViewOverrideFlags'.",&tolua_err);
  3724. return 0;
  3725. #endif
  3726. }
  3727. #endif //#ifndef TOLUA_DISABLE
  3728. /* method: SetOrthographic of class Camera */
  3729. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetOrthographic00
  3730. static int tolua_Graphics_Camera_SetOrthographic00(lua_State* tolua_S)
  3731. {
  3732. #ifndef TOLUA_RELEASE
  3733. tolua_Error tolua_err;
  3734. if (
  3735. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3736. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  3737. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3738. )
  3739. goto tolua_lerror;
  3740. else
  3741. #endif
  3742. {
  3743. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3744. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  3745. #ifndef TOLUA_RELEASE
  3746. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOrthographic'", NULL);
  3747. #endif
  3748. {
  3749. self->SetOrthographic(enable);
  3750. }
  3751. }
  3752. return 0;
  3753. #ifndef TOLUA_RELEASE
  3754. tolua_lerror:
  3755. tolua_error(tolua_S,"#ferror in function 'SetOrthographic'.",&tolua_err);
  3756. return 0;
  3757. #endif
  3758. }
  3759. #endif //#ifndef TOLUA_DISABLE
  3760. /* method: SetAutoAspectRatio of class Camera */
  3761. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetAutoAspectRatio00
  3762. static int tolua_Graphics_Camera_SetAutoAspectRatio00(lua_State* tolua_S)
  3763. {
  3764. #ifndef TOLUA_RELEASE
  3765. tolua_Error tolua_err;
  3766. if (
  3767. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3768. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  3769. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3770. )
  3771. goto tolua_lerror;
  3772. else
  3773. #endif
  3774. {
  3775. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3776. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  3777. #ifndef TOLUA_RELEASE
  3778. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAutoAspectRatio'", NULL);
  3779. #endif
  3780. {
  3781. self->SetAutoAspectRatio(enable);
  3782. }
  3783. }
  3784. return 0;
  3785. #ifndef TOLUA_RELEASE
  3786. tolua_lerror:
  3787. tolua_error(tolua_S,"#ferror in function 'SetAutoAspectRatio'.",&tolua_err);
  3788. return 0;
  3789. #endif
  3790. }
  3791. #endif //#ifndef TOLUA_DISABLE
  3792. /* method: SetProjectionOffset of class Camera */
  3793. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetProjectionOffset00
  3794. static int tolua_Graphics_Camera_SetProjectionOffset00(lua_State* tolua_S)
  3795. {
  3796. #ifndef TOLUA_RELEASE
  3797. tolua_Error tolua_err;
  3798. if (
  3799. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3800. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector2",0,&tolua_err)) ||
  3801. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3802. )
  3803. goto tolua_lerror;
  3804. else
  3805. #endif
  3806. {
  3807. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3808. const Vector2* offset = ((const Vector2*) tolua_tousertype(tolua_S,2,0));
  3809. #ifndef TOLUA_RELEASE
  3810. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetProjectionOffset'", NULL);
  3811. #endif
  3812. {
  3813. self->SetProjectionOffset(*offset);
  3814. }
  3815. }
  3816. return 0;
  3817. #ifndef TOLUA_RELEASE
  3818. tolua_lerror:
  3819. tolua_error(tolua_S,"#ferror in function 'SetProjectionOffset'.",&tolua_err);
  3820. return 0;
  3821. #endif
  3822. }
  3823. #endif //#ifndef TOLUA_DISABLE
  3824. /* method: SetFlipVertical of class Camera */
  3825. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetFlipVertical00
  3826. static int tolua_Graphics_Camera_SetFlipVertical00(lua_State* tolua_S)
  3827. {
  3828. #ifndef TOLUA_RELEASE
  3829. tolua_Error tolua_err;
  3830. if (
  3831. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3832. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  3833. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3834. )
  3835. goto tolua_lerror;
  3836. else
  3837. #endif
  3838. {
  3839. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3840. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  3841. #ifndef TOLUA_RELEASE
  3842. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFlipVertical'", NULL);
  3843. #endif
  3844. {
  3845. self->SetFlipVertical(enable);
  3846. }
  3847. }
  3848. return 0;
  3849. #ifndef TOLUA_RELEASE
  3850. tolua_lerror:
  3851. tolua_error(tolua_S,"#ferror in function 'SetFlipVertical'.",&tolua_err);
  3852. return 0;
  3853. #endif
  3854. }
  3855. #endif //#ifndef TOLUA_DISABLE
  3856. /* method: GetFarClip of class Camera */
  3857. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetFarClip00
  3858. static int tolua_Graphics_Camera_GetFarClip00(lua_State* tolua_S)
  3859. {
  3860. #ifndef TOLUA_RELEASE
  3861. tolua_Error tolua_err;
  3862. if (
  3863. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  3864. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3865. )
  3866. goto tolua_lerror;
  3867. else
  3868. #endif
  3869. {
  3870. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  3871. #ifndef TOLUA_RELEASE
  3872. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFarClip'", NULL);
  3873. #endif
  3874. {
  3875. float tolua_ret = (float) self->GetFarClip();
  3876. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3877. }
  3878. }
  3879. return 1;
  3880. #ifndef TOLUA_RELEASE
  3881. tolua_lerror:
  3882. tolua_error(tolua_S,"#ferror in function 'GetFarClip'.",&tolua_err);
  3883. return 0;
  3884. #endif
  3885. }
  3886. #endif //#ifndef TOLUA_DISABLE
  3887. /* method: GetNearClip of class Camera */
  3888. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetNearClip00
  3889. static int tolua_Graphics_Camera_GetNearClip00(lua_State* tolua_S)
  3890. {
  3891. #ifndef TOLUA_RELEASE
  3892. tolua_Error tolua_err;
  3893. if (
  3894. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  3895. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3896. )
  3897. goto tolua_lerror;
  3898. else
  3899. #endif
  3900. {
  3901. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  3902. #ifndef TOLUA_RELEASE
  3903. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNearClip'", NULL);
  3904. #endif
  3905. {
  3906. float tolua_ret = (float) self->GetNearClip();
  3907. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3908. }
  3909. }
  3910. return 1;
  3911. #ifndef TOLUA_RELEASE
  3912. tolua_lerror:
  3913. tolua_error(tolua_S,"#ferror in function 'GetNearClip'.",&tolua_err);
  3914. return 0;
  3915. #endif
  3916. }
  3917. #endif //#ifndef TOLUA_DISABLE
  3918. /* method: GetFov of class Camera */
  3919. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetFov00
  3920. static int tolua_Graphics_Camera_GetFov00(lua_State* tolua_S)
  3921. {
  3922. #ifndef TOLUA_RELEASE
  3923. tolua_Error tolua_err;
  3924. if (
  3925. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  3926. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3927. )
  3928. goto tolua_lerror;
  3929. else
  3930. #endif
  3931. {
  3932. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  3933. #ifndef TOLUA_RELEASE
  3934. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFov'", NULL);
  3935. #endif
  3936. {
  3937. float tolua_ret = (float) self->GetFov();
  3938. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3939. }
  3940. }
  3941. return 1;
  3942. #ifndef TOLUA_RELEASE
  3943. tolua_lerror:
  3944. tolua_error(tolua_S,"#ferror in function 'GetFov'.",&tolua_err);
  3945. return 0;
  3946. #endif
  3947. }
  3948. #endif //#ifndef TOLUA_DISABLE
  3949. /* method: GetOrthoSize of class Camera */
  3950. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetOrthoSize00
  3951. static int tolua_Graphics_Camera_GetOrthoSize00(lua_State* tolua_S)
  3952. {
  3953. #ifndef TOLUA_RELEASE
  3954. tolua_Error tolua_err;
  3955. if (
  3956. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  3957. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3958. )
  3959. goto tolua_lerror;
  3960. else
  3961. #endif
  3962. {
  3963. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  3964. #ifndef TOLUA_RELEASE
  3965. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOrthoSize'", NULL);
  3966. #endif
  3967. {
  3968. float tolua_ret = (float) self->GetOrthoSize();
  3969. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3970. }
  3971. }
  3972. return 1;
  3973. #ifndef TOLUA_RELEASE
  3974. tolua_lerror:
  3975. tolua_error(tolua_S,"#ferror in function 'GetOrthoSize'.",&tolua_err);
  3976. return 0;
  3977. #endif
  3978. }
  3979. #endif //#ifndef TOLUA_DISABLE
  3980. /* method: GetAspectRatio of class Camera */
  3981. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetAspectRatio00
  3982. static int tolua_Graphics_Camera_GetAspectRatio00(lua_State* tolua_S)
  3983. {
  3984. #ifndef TOLUA_RELEASE
  3985. tolua_Error tolua_err;
  3986. if (
  3987. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  3988. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3989. )
  3990. goto tolua_lerror;
  3991. else
  3992. #endif
  3993. {
  3994. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  3995. #ifndef TOLUA_RELEASE
  3996. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAspectRatio'", NULL);
  3997. #endif
  3998. {
  3999. float tolua_ret = (float) self->GetAspectRatio();
  4000. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4001. }
  4002. }
  4003. return 1;
  4004. #ifndef TOLUA_RELEASE
  4005. tolua_lerror:
  4006. tolua_error(tolua_S,"#ferror in function 'GetAspectRatio'.",&tolua_err);
  4007. return 0;
  4008. #endif
  4009. }
  4010. #endif //#ifndef TOLUA_DISABLE
  4011. /* method: GetZoom of class Camera */
  4012. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetZoom00
  4013. static int tolua_Graphics_Camera_GetZoom00(lua_State* tolua_S)
  4014. {
  4015. #ifndef TOLUA_RELEASE
  4016. tolua_Error tolua_err;
  4017. if (
  4018. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4019. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4020. )
  4021. goto tolua_lerror;
  4022. else
  4023. #endif
  4024. {
  4025. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4026. #ifndef TOLUA_RELEASE
  4027. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetZoom'", NULL);
  4028. #endif
  4029. {
  4030. float tolua_ret = (float) self->GetZoom();
  4031. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4032. }
  4033. }
  4034. return 1;
  4035. #ifndef TOLUA_RELEASE
  4036. tolua_lerror:
  4037. tolua_error(tolua_S,"#ferror in function 'GetZoom'.",&tolua_err);
  4038. return 0;
  4039. #endif
  4040. }
  4041. #endif //#ifndef TOLUA_DISABLE
  4042. /* method: GetLodBias of class Camera */
  4043. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetLodBias00
  4044. static int tolua_Graphics_Camera_GetLodBias00(lua_State* tolua_S)
  4045. {
  4046. #ifndef TOLUA_RELEASE
  4047. tolua_Error tolua_err;
  4048. if (
  4049. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4050. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4051. )
  4052. goto tolua_lerror;
  4053. else
  4054. #endif
  4055. {
  4056. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4057. #ifndef TOLUA_RELEASE
  4058. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLodBias'", NULL);
  4059. #endif
  4060. {
  4061. float tolua_ret = (float) self->GetLodBias();
  4062. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4063. }
  4064. }
  4065. return 1;
  4066. #ifndef TOLUA_RELEASE
  4067. tolua_lerror:
  4068. tolua_error(tolua_S,"#ferror in function 'GetLodBias'.",&tolua_err);
  4069. return 0;
  4070. #endif
  4071. }
  4072. #endif //#ifndef TOLUA_DISABLE
  4073. /* method: GetViewMask of class Camera */
  4074. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetViewMask00
  4075. static int tolua_Graphics_Camera_GetViewMask00(lua_State* tolua_S)
  4076. {
  4077. #ifndef TOLUA_RELEASE
  4078. tolua_Error tolua_err;
  4079. if (
  4080. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4081. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4082. )
  4083. goto tolua_lerror;
  4084. else
  4085. #endif
  4086. {
  4087. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4088. #ifndef TOLUA_RELEASE
  4089. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetViewMask'", NULL);
  4090. #endif
  4091. {
  4092. unsigned tolua_ret = (unsigned) self->GetViewMask();
  4093. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4094. }
  4095. }
  4096. return 1;
  4097. #ifndef TOLUA_RELEASE
  4098. tolua_lerror:
  4099. tolua_error(tolua_S,"#ferror in function 'GetViewMask'.",&tolua_err);
  4100. return 0;
  4101. #endif
  4102. }
  4103. #endif //#ifndef TOLUA_DISABLE
  4104. /* method: GetViewOverrideFlags of class Camera */
  4105. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetViewOverrideFlags00
  4106. static int tolua_Graphics_Camera_GetViewOverrideFlags00(lua_State* tolua_S)
  4107. {
  4108. #ifndef TOLUA_RELEASE
  4109. tolua_Error tolua_err;
  4110. if (
  4111. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4112. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4113. )
  4114. goto tolua_lerror;
  4115. else
  4116. #endif
  4117. {
  4118. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4119. #ifndef TOLUA_RELEASE
  4120. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetViewOverrideFlags'", NULL);
  4121. #endif
  4122. {
  4123. unsigned tolua_ret = (unsigned) self->GetViewOverrideFlags();
  4124. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4125. }
  4126. }
  4127. return 1;
  4128. #ifndef TOLUA_RELEASE
  4129. tolua_lerror:
  4130. tolua_error(tolua_S,"#ferror in function 'GetViewOverrideFlags'.",&tolua_err);
  4131. return 0;
  4132. #endif
  4133. }
  4134. #endif //#ifndef TOLUA_DISABLE
  4135. /* method: GetFillMode of class Camera */
  4136. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetFillMode00
  4137. static int tolua_Graphics_Camera_GetFillMode00(lua_State* tolua_S)
  4138. {
  4139. #ifndef TOLUA_RELEASE
  4140. tolua_Error tolua_err;
  4141. if (
  4142. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4143. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4144. )
  4145. goto tolua_lerror;
  4146. else
  4147. #endif
  4148. {
  4149. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4150. #ifndef TOLUA_RELEASE
  4151. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFillMode'", NULL);
  4152. #endif
  4153. {
  4154. FillMode tolua_ret = (FillMode) self->GetFillMode();
  4155. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4156. }
  4157. }
  4158. return 1;
  4159. #ifndef TOLUA_RELEASE
  4160. tolua_lerror:
  4161. tolua_error(tolua_S,"#ferror in function 'GetFillMode'.",&tolua_err);
  4162. return 0;
  4163. #endif
  4164. }
  4165. #endif //#ifndef TOLUA_DISABLE
  4166. /* method: IsOrthographic of class Camera */
  4167. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_IsOrthographic00
  4168. static int tolua_Graphics_Camera_IsOrthographic00(lua_State* tolua_S)
  4169. {
  4170. #ifndef TOLUA_RELEASE
  4171. tolua_Error tolua_err;
  4172. if (
  4173. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4174. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4175. )
  4176. goto tolua_lerror;
  4177. else
  4178. #endif
  4179. {
  4180. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4181. #ifndef TOLUA_RELEASE
  4182. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsOrthographic'", NULL);
  4183. #endif
  4184. {
  4185. bool tolua_ret = (bool) self->IsOrthographic();
  4186. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  4187. }
  4188. }
  4189. return 1;
  4190. #ifndef TOLUA_RELEASE
  4191. tolua_lerror:
  4192. tolua_error(tolua_S,"#ferror in function 'IsOrthographic'.",&tolua_err);
  4193. return 0;
  4194. #endif
  4195. }
  4196. #endif //#ifndef TOLUA_DISABLE
  4197. /* method: GetAutoAspectRatio of class Camera */
  4198. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetAutoAspectRatio00
  4199. static int tolua_Graphics_Camera_GetAutoAspectRatio00(lua_State* tolua_S)
  4200. {
  4201. #ifndef TOLUA_RELEASE
  4202. tolua_Error tolua_err;
  4203. if (
  4204. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4205. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4206. )
  4207. goto tolua_lerror;
  4208. else
  4209. #endif
  4210. {
  4211. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4212. #ifndef TOLUA_RELEASE
  4213. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAutoAspectRatio'", NULL);
  4214. #endif
  4215. {
  4216. bool tolua_ret = (bool) self->GetAutoAspectRatio();
  4217. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  4218. }
  4219. }
  4220. return 1;
  4221. #ifndef TOLUA_RELEASE
  4222. tolua_lerror:
  4223. tolua_error(tolua_S,"#ferror in function 'GetAutoAspectRatio'.",&tolua_err);
  4224. return 0;
  4225. #endif
  4226. }
  4227. #endif //#ifndef TOLUA_DISABLE
  4228. /* method: GetFrustum of class Camera */
  4229. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetFrustum00
  4230. static int tolua_Graphics_Camera_GetFrustum00(lua_State* tolua_S)
  4231. {
  4232. #ifndef TOLUA_RELEASE
  4233. tolua_Error tolua_err;
  4234. if (
  4235. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4236. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4237. )
  4238. goto tolua_lerror;
  4239. else
  4240. #endif
  4241. {
  4242. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4243. #ifndef TOLUA_RELEASE
  4244. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFrustum'", NULL);
  4245. #endif
  4246. {
  4247. const Frustum& tolua_ret = (const Frustum&) self->GetFrustum();
  4248. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Frustum");
  4249. }
  4250. }
  4251. return 1;
  4252. #ifndef TOLUA_RELEASE
  4253. tolua_lerror:
  4254. tolua_error(tolua_S,"#ferror in function 'GetFrustum'.",&tolua_err);
  4255. return 0;
  4256. #endif
  4257. }
  4258. #endif //#ifndef TOLUA_DISABLE
  4259. /* method: GetProjection of class Camera */
  4260. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetProjection00
  4261. static int tolua_Graphics_Camera_GetProjection00(lua_State* tolua_S)
  4262. {
  4263. #ifndef TOLUA_RELEASE
  4264. tolua_Error tolua_err;
  4265. if (
  4266. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4267. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4268. )
  4269. goto tolua_lerror;
  4270. else
  4271. #endif
  4272. {
  4273. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4274. #ifndef TOLUA_RELEASE
  4275. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetProjection'", NULL);
  4276. #endif
  4277. {
  4278. const Matrix4& tolua_ret = (const Matrix4&) self->GetProjection();
  4279. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Matrix4");
  4280. }
  4281. }
  4282. return 1;
  4283. #ifndef TOLUA_RELEASE
  4284. tolua_lerror:
  4285. tolua_error(tolua_S,"#ferror in function 'GetProjection'.",&tolua_err);
  4286. return 0;
  4287. #endif
  4288. }
  4289. #endif //#ifndef TOLUA_DISABLE
  4290. /* method: GetProjection of class Camera */
  4291. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetProjection01
  4292. static int tolua_Graphics_Camera_GetProjection01(lua_State* tolua_S)
  4293. {
  4294. tolua_Error tolua_err;
  4295. if (
  4296. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4297. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  4298. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4299. )
  4300. goto tolua_lerror;
  4301. else
  4302. {
  4303. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4304. bool apiSpecific = ((bool) tolua_toboolean(tolua_S,2,0));
  4305. #ifndef TOLUA_RELEASE
  4306. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetProjection'", NULL);
  4307. #endif
  4308. {
  4309. Matrix4 tolua_ret = (Matrix4) self->GetProjection(apiSpecific);
  4310. {
  4311. #ifdef __cplusplus
  4312. void* tolua_obj = Mtolua_new((Matrix4)(tolua_ret));
  4313. tolua_pushusertype(tolua_S,tolua_obj,"Matrix4");
  4314. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4315. #else
  4316. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Matrix4));
  4317. tolua_pushusertype(tolua_S,tolua_obj,"Matrix4");
  4318. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4319. #endif
  4320. }
  4321. }
  4322. }
  4323. return 1;
  4324. tolua_lerror:
  4325. return tolua_Graphics_Camera_GetProjection00(tolua_S);
  4326. }
  4327. #endif //#ifndef TOLUA_DISABLE
  4328. /* method: GetView of class Camera */
  4329. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetView00
  4330. static int tolua_Graphics_Camera_GetView00(lua_State* tolua_S)
  4331. {
  4332. #ifndef TOLUA_RELEASE
  4333. tolua_Error tolua_err;
  4334. if (
  4335. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4336. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4337. )
  4338. goto tolua_lerror;
  4339. else
  4340. #endif
  4341. {
  4342. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4343. #ifndef TOLUA_RELEASE
  4344. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetView'", NULL);
  4345. #endif
  4346. {
  4347. const Matrix3x4& tolua_ret = (const Matrix3x4&) self->GetView();
  4348. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Matrix3x4");
  4349. }
  4350. }
  4351. return 1;
  4352. #ifndef TOLUA_RELEASE
  4353. tolua_lerror:
  4354. tolua_error(tolua_S,"#ferror in function 'GetView'.",&tolua_err);
  4355. return 0;
  4356. #endif
  4357. }
  4358. #endif //#ifndef TOLUA_DISABLE
  4359. /* method: GetFrustumSize of class Camera */
  4360. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetFrustumSize00
  4361. static int tolua_Graphics_Camera_GetFrustumSize00(lua_State* tolua_S)
  4362. {
  4363. #ifndef TOLUA_RELEASE
  4364. tolua_Error tolua_err;
  4365. if (
  4366. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4367. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Vector3",0,&tolua_err)) ||
  4368. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"Vector3",0,&tolua_err)) ||
  4369. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4370. )
  4371. goto tolua_lerror;
  4372. else
  4373. #endif
  4374. {
  4375. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4376. Vector3* near = ((Vector3*) tolua_tousertype(tolua_S,2,0));
  4377. Vector3* far = ((Vector3*) tolua_tousertype(tolua_S,3,0));
  4378. #ifndef TOLUA_RELEASE
  4379. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFrustumSize'", NULL);
  4380. #endif
  4381. {
  4382. self->GetFrustumSize(*near,*far);
  4383. }
  4384. }
  4385. return 0;
  4386. #ifndef TOLUA_RELEASE
  4387. tolua_lerror:
  4388. tolua_error(tolua_S,"#ferror in function 'GetFrustumSize'.",&tolua_err);
  4389. return 0;
  4390. #endif
  4391. }
  4392. #endif //#ifndef TOLUA_DISABLE
  4393. /* method: GetHalfViewSize of class Camera */
  4394. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetHalfViewSize00
  4395. static int tolua_Graphics_Camera_GetHalfViewSize00(lua_State* tolua_S)
  4396. {
  4397. #ifndef TOLUA_RELEASE
  4398. tolua_Error tolua_err;
  4399. if (
  4400. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4401. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4402. )
  4403. goto tolua_lerror;
  4404. else
  4405. #endif
  4406. {
  4407. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4408. #ifndef TOLUA_RELEASE
  4409. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHalfViewSize'", NULL);
  4410. #endif
  4411. {
  4412. float tolua_ret = (float) self->GetHalfViewSize();
  4413. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4414. }
  4415. }
  4416. return 1;
  4417. #ifndef TOLUA_RELEASE
  4418. tolua_lerror:
  4419. tolua_error(tolua_S,"#ferror in function 'GetHalfViewSize'.",&tolua_err);
  4420. return 0;
  4421. #endif
  4422. }
  4423. #endif //#ifndef TOLUA_DISABLE
  4424. /* method: GetSplitFrustum of class Camera */
  4425. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetSplitFrustum00
  4426. static int tolua_Graphics_Camera_GetSplitFrustum00(lua_State* tolua_S)
  4427. {
  4428. #ifndef TOLUA_RELEASE
  4429. tolua_Error tolua_err;
  4430. if (
  4431. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4432. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  4433. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  4434. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4435. )
  4436. goto tolua_lerror;
  4437. else
  4438. #endif
  4439. {
  4440. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4441. float nearClip = ((float) tolua_tonumber(tolua_S,2,0));
  4442. float farClip = ((float) tolua_tonumber(tolua_S,3,0));
  4443. #ifndef TOLUA_RELEASE
  4444. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSplitFrustum'", NULL);
  4445. #endif
  4446. {
  4447. Frustum tolua_ret = (Frustum) self->GetSplitFrustum(nearClip,farClip);
  4448. {
  4449. #ifdef __cplusplus
  4450. void* tolua_obj = Mtolua_new((Frustum)(tolua_ret));
  4451. tolua_pushusertype(tolua_S,tolua_obj,"Frustum");
  4452. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4453. #else
  4454. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Frustum));
  4455. tolua_pushusertype(tolua_S,tolua_obj,"Frustum");
  4456. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4457. #endif
  4458. }
  4459. }
  4460. }
  4461. return 1;
  4462. #ifndef TOLUA_RELEASE
  4463. tolua_lerror:
  4464. tolua_error(tolua_S,"#ferror in function 'GetSplitFrustum'.",&tolua_err);
  4465. return 0;
  4466. #endif
  4467. }
  4468. #endif //#ifndef TOLUA_DISABLE
  4469. /* method: GetViewSpaceFrustum of class Camera */
  4470. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetViewSpaceFrustum00
  4471. static int tolua_Graphics_Camera_GetViewSpaceFrustum00(lua_State* tolua_S)
  4472. {
  4473. #ifndef TOLUA_RELEASE
  4474. tolua_Error tolua_err;
  4475. if (
  4476. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4477. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4478. )
  4479. goto tolua_lerror;
  4480. else
  4481. #endif
  4482. {
  4483. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4484. #ifndef TOLUA_RELEASE
  4485. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetViewSpaceFrustum'", NULL);
  4486. #endif
  4487. {
  4488. Frustum tolua_ret = (Frustum) self->GetViewSpaceFrustum();
  4489. {
  4490. #ifdef __cplusplus
  4491. void* tolua_obj = Mtolua_new((Frustum)(tolua_ret));
  4492. tolua_pushusertype(tolua_S,tolua_obj,"Frustum");
  4493. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4494. #else
  4495. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Frustum));
  4496. tolua_pushusertype(tolua_S,tolua_obj,"Frustum");
  4497. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4498. #endif
  4499. }
  4500. }
  4501. }
  4502. return 1;
  4503. #ifndef TOLUA_RELEASE
  4504. tolua_lerror:
  4505. tolua_error(tolua_S,"#ferror in function 'GetViewSpaceFrustum'.",&tolua_err);
  4506. return 0;
  4507. #endif
  4508. }
  4509. #endif //#ifndef TOLUA_DISABLE
  4510. /* method: GetViewSpaceSplitFrustum of class Camera */
  4511. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetViewSpaceSplitFrustum00
  4512. static int tolua_Graphics_Camera_GetViewSpaceSplitFrustum00(lua_State* tolua_S)
  4513. {
  4514. #ifndef TOLUA_RELEASE
  4515. tolua_Error tolua_err;
  4516. if (
  4517. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4518. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  4519. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  4520. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4521. )
  4522. goto tolua_lerror;
  4523. else
  4524. #endif
  4525. {
  4526. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4527. float nearClip = ((float) tolua_tonumber(tolua_S,2,0));
  4528. float farClip = ((float) tolua_tonumber(tolua_S,3,0));
  4529. #ifndef TOLUA_RELEASE
  4530. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetViewSpaceSplitFrustum'", NULL);
  4531. #endif
  4532. {
  4533. Frustum tolua_ret = (Frustum) self->GetViewSpaceSplitFrustum(nearClip,farClip);
  4534. {
  4535. #ifdef __cplusplus
  4536. void* tolua_obj = Mtolua_new((Frustum)(tolua_ret));
  4537. tolua_pushusertype(tolua_S,tolua_obj,"Frustum");
  4538. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4539. #else
  4540. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Frustum));
  4541. tolua_pushusertype(tolua_S,tolua_obj,"Frustum");
  4542. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4543. #endif
  4544. }
  4545. }
  4546. }
  4547. return 1;
  4548. #ifndef TOLUA_RELEASE
  4549. tolua_lerror:
  4550. tolua_error(tolua_S,"#ferror in function 'GetViewSpaceSplitFrustum'.",&tolua_err);
  4551. return 0;
  4552. #endif
  4553. }
  4554. #endif //#ifndef TOLUA_DISABLE
  4555. /* method: GetScreenRay of class Camera */
  4556. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetScreenRay00
  4557. static int tolua_Graphics_Camera_GetScreenRay00(lua_State* tolua_S)
  4558. {
  4559. #ifndef TOLUA_RELEASE
  4560. tolua_Error tolua_err;
  4561. if (
  4562. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4563. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  4564. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  4565. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4566. )
  4567. goto tolua_lerror;
  4568. else
  4569. #endif
  4570. {
  4571. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4572. float x = ((float) tolua_tonumber(tolua_S,2,0));
  4573. float y = ((float) tolua_tonumber(tolua_S,3,0));
  4574. #ifndef TOLUA_RELEASE
  4575. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetScreenRay'", NULL);
  4576. #endif
  4577. {
  4578. Ray tolua_ret = (Ray) self->GetScreenRay(x,y);
  4579. {
  4580. #ifdef __cplusplus
  4581. void* tolua_obj = Mtolua_new((Ray)(tolua_ret));
  4582. tolua_pushusertype(tolua_S,tolua_obj,"Ray");
  4583. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4584. #else
  4585. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Ray));
  4586. tolua_pushusertype(tolua_S,tolua_obj,"Ray");
  4587. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4588. #endif
  4589. }
  4590. }
  4591. }
  4592. return 1;
  4593. #ifndef TOLUA_RELEASE
  4594. tolua_lerror:
  4595. tolua_error(tolua_S,"#ferror in function 'GetScreenRay'.",&tolua_err);
  4596. return 0;
  4597. #endif
  4598. }
  4599. #endif //#ifndef TOLUA_DISABLE
  4600. /* method: WorldToScreenPoint of class Camera */
  4601. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_WorldToScreenPoint00
  4602. static int tolua_Graphics_Camera_WorldToScreenPoint00(lua_State* tolua_S)
  4603. {
  4604. #ifndef TOLUA_RELEASE
  4605. tolua_Error tolua_err;
  4606. if (
  4607. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4608. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  4609. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4610. )
  4611. goto tolua_lerror;
  4612. else
  4613. #endif
  4614. {
  4615. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4616. const Vector3* worldPos = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  4617. #ifndef TOLUA_RELEASE
  4618. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'WorldToScreenPoint'", NULL);
  4619. #endif
  4620. {
  4621. Vector2 tolua_ret = (Vector2) self->WorldToScreenPoint(*worldPos);
  4622. {
  4623. #ifdef __cplusplus
  4624. void* tolua_obj = Mtolua_new((Vector2)(tolua_ret));
  4625. tolua_pushusertype(tolua_S,tolua_obj,"Vector2");
  4626. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4627. #else
  4628. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector2));
  4629. tolua_pushusertype(tolua_S,tolua_obj,"Vector2");
  4630. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4631. #endif
  4632. }
  4633. }
  4634. }
  4635. return 1;
  4636. #ifndef TOLUA_RELEASE
  4637. tolua_lerror:
  4638. tolua_error(tolua_S,"#ferror in function 'WorldToScreenPoint'.",&tolua_err);
  4639. return 0;
  4640. #endif
  4641. }
  4642. #endif //#ifndef TOLUA_DISABLE
  4643. /* method: ScreenToWorldPoint of class Camera */
  4644. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_ScreenToWorldPoint00
  4645. static int tolua_Graphics_Camera_ScreenToWorldPoint00(lua_State* tolua_S)
  4646. {
  4647. #ifndef TOLUA_RELEASE
  4648. tolua_Error tolua_err;
  4649. if (
  4650. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4651. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  4652. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4653. )
  4654. goto tolua_lerror;
  4655. else
  4656. #endif
  4657. {
  4658. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4659. const Vector3* screenPos = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  4660. #ifndef TOLUA_RELEASE
  4661. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ScreenToWorldPoint'", NULL);
  4662. #endif
  4663. {
  4664. Vector3 tolua_ret = (Vector3) self->ScreenToWorldPoint(*screenPos);
  4665. {
  4666. #ifdef __cplusplus
  4667. void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
  4668. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  4669. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4670. #else
  4671. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
  4672. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  4673. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4674. #endif
  4675. }
  4676. }
  4677. }
  4678. return 1;
  4679. #ifndef TOLUA_RELEASE
  4680. tolua_lerror:
  4681. tolua_error(tolua_S,"#ferror in function 'ScreenToWorldPoint'.",&tolua_err);
  4682. return 0;
  4683. #endif
  4684. }
  4685. #endif //#ifndef TOLUA_DISABLE
  4686. /* method: GetForwardVector of class Camera */
  4687. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetForwardVector00
  4688. static int tolua_Graphics_Camera_GetForwardVector00(lua_State* tolua_S)
  4689. {
  4690. #ifndef TOLUA_RELEASE
  4691. tolua_Error tolua_err;
  4692. if (
  4693. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4694. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4695. )
  4696. goto tolua_lerror;
  4697. else
  4698. #endif
  4699. {
  4700. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4701. #ifndef TOLUA_RELEASE
  4702. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetForwardVector'", NULL);
  4703. #endif
  4704. {
  4705. Vector3 tolua_ret = (Vector3) self->GetForwardVector();
  4706. {
  4707. #ifdef __cplusplus
  4708. void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
  4709. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  4710. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4711. #else
  4712. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
  4713. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  4714. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4715. #endif
  4716. }
  4717. }
  4718. }
  4719. return 1;
  4720. #ifndef TOLUA_RELEASE
  4721. tolua_lerror:
  4722. tolua_error(tolua_S,"#ferror in function 'GetForwardVector'.",&tolua_err);
  4723. return 0;
  4724. #endif
  4725. }
  4726. #endif //#ifndef TOLUA_DISABLE
  4727. /* method: GetRightVector of class Camera */
  4728. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetRightVector00
  4729. static int tolua_Graphics_Camera_GetRightVector00(lua_State* tolua_S)
  4730. {
  4731. #ifndef TOLUA_RELEASE
  4732. tolua_Error tolua_err;
  4733. if (
  4734. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4735. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4736. )
  4737. goto tolua_lerror;
  4738. else
  4739. #endif
  4740. {
  4741. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4742. #ifndef TOLUA_RELEASE
  4743. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRightVector'", NULL);
  4744. #endif
  4745. {
  4746. Vector3 tolua_ret = (Vector3) self->GetRightVector();
  4747. {
  4748. #ifdef __cplusplus
  4749. void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
  4750. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  4751. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4752. #else
  4753. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
  4754. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  4755. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4756. #endif
  4757. }
  4758. }
  4759. }
  4760. return 1;
  4761. #ifndef TOLUA_RELEASE
  4762. tolua_lerror:
  4763. tolua_error(tolua_S,"#ferror in function 'GetRightVector'.",&tolua_err);
  4764. return 0;
  4765. #endif
  4766. }
  4767. #endif //#ifndef TOLUA_DISABLE
  4768. /* method: GetUpVector of class Camera */
  4769. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetUpVector00
  4770. static int tolua_Graphics_Camera_GetUpVector00(lua_State* tolua_S)
  4771. {
  4772. #ifndef TOLUA_RELEASE
  4773. tolua_Error tolua_err;
  4774. if (
  4775. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4776. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4777. )
  4778. goto tolua_lerror;
  4779. else
  4780. #endif
  4781. {
  4782. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4783. #ifndef TOLUA_RELEASE
  4784. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetUpVector'", NULL);
  4785. #endif
  4786. {
  4787. Vector3 tolua_ret = (Vector3) self->GetUpVector();
  4788. {
  4789. #ifdef __cplusplus
  4790. void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
  4791. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  4792. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4793. #else
  4794. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
  4795. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  4796. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4797. #endif
  4798. }
  4799. }
  4800. }
  4801. return 1;
  4802. #ifndef TOLUA_RELEASE
  4803. tolua_lerror:
  4804. tolua_error(tolua_S,"#ferror in function 'GetUpVector'.",&tolua_err);
  4805. return 0;
  4806. #endif
  4807. }
  4808. #endif //#ifndef TOLUA_DISABLE
  4809. /* method: GetProjectionOffset of class Camera */
  4810. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetProjectionOffset00
  4811. static int tolua_Graphics_Camera_GetProjectionOffset00(lua_State* tolua_S)
  4812. {
  4813. #ifndef TOLUA_RELEASE
  4814. tolua_Error tolua_err;
  4815. if (
  4816. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4817. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4818. )
  4819. goto tolua_lerror;
  4820. else
  4821. #endif
  4822. {
  4823. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4824. #ifndef TOLUA_RELEASE
  4825. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetProjectionOffset'", NULL);
  4826. #endif
  4827. {
  4828. const Vector2& tolua_ret = (const Vector2&) self->GetProjectionOffset();
  4829. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector2");
  4830. }
  4831. }
  4832. return 1;
  4833. #ifndef TOLUA_RELEASE
  4834. tolua_lerror:
  4835. tolua_error(tolua_S,"#ferror in function 'GetProjectionOffset'.",&tolua_err);
  4836. return 0;
  4837. #endif
  4838. }
  4839. #endif //#ifndef TOLUA_DISABLE
  4840. /* method: GetFlipVertical of class Camera */
  4841. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetFlipVertical00
  4842. static int tolua_Graphics_Camera_GetFlipVertical00(lua_State* tolua_S)
  4843. {
  4844. #ifndef TOLUA_RELEASE
  4845. tolua_Error tolua_err;
  4846. if (
  4847. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4848. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4849. )
  4850. goto tolua_lerror;
  4851. else
  4852. #endif
  4853. {
  4854. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4855. #ifndef TOLUA_RELEASE
  4856. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFlipVertical'", NULL);
  4857. #endif
  4858. {
  4859. bool tolua_ret = (bool) self->GetFlipVertical();
  4860. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  4861. }
  4862. }
  4863. return 1;
  4864. #ifndef TOLUA_RELEASE
  4865. tolua_lerror:
  4866. tolua_error(tolua_S,"#ferror in function 'GetFlipVertical'.",&tolua_err);
  4867. return 0;
  4868. #endif
  4869. }
  4870. #endif //#ifndef TOLUA_DISABLE
  4871. /* method: GetDistance of class Camera */
  4872. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetDistance00
  4873. static int tolua_Graphics_Camera_GetDistance00(lua_State* tolua_S)
  4874. {
  4875. #ifndef TOLUA_RELEASE
  4876. tolua_Error tolua_err;
  4877. if (
  4878. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4879. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  4880. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4881. )
  4882. goto tolua_lerror;
  4883. else
  4884. #endif
  4885. {
  4886. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4887. const Vector3* worldPos = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  4888. #ifndef TOLUA_RELEASE
  4889. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDistance'", NULL);
  4890. #endif
  4891. {
  4892. float tolua_ret = (float) self->GetDistance(*worldPos);
  4893. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4894. }
  4895. }
  4896. return 1;
  4897. #ifndef TOLUA_RELEASE
  4898. tolua_lerror:
  4899. tolua_error(tolua_S,"#ferror in function 'GetDistance'.",&tolua_err);
  4900. return 0;
  4901. #endif
  4902. }
  4903. #endif //#ifndef TOLUA_DISABLE
  4904. /* method: GetDistanceSquared of class Camera */
  4905. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetDistanceSquared00
  4906. static int tolua_Graphics_Camera_GetDistanceSquared00(lua_State* tolua_S)
  4907. {
  4908. #ifndef TOLUA_RELEASE
  4909. tolua_Error tolua_err;
  4910. if (
  4911. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4912. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  4913. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4914. )
  4915. goto tolua_lerror;
  4916. else
  4917. #endif
  4918. {
  4919. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4920. const Vector3* worldPos = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  4921. #ifndef TOLUA_RELEASE
  4922. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDistanceSquared'", NULL);
  4923. #endif
  4924. {
  4925. float tolua_ret = (float) self->GetDistanceSquared(*worldPos);
  4926. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4927. }
  4928. }
  4929. return 1;
  4930. #ifndef TOLUA_RELEASE
  4931. tolua_lerror:
  4932. tolua_error(tolua_S,"#ferror in function 'GetDistanceSquared'.",&tolua_err);
  4933. return 0;
  4934. #endif
  4935. }
  4936. #endif //#ifndef TOLUA_DISABLE
  4937. /* method: GetLodDistance of class Camera */
  4938. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetLodDistance00
  4939. static int tolua_Graphics_Camera_GetLodDistance00(lua_State* tolua_S)
  4940. {
  4941. #ifndef TOLUA_RELEASE
  4942. tolua_Error tolua_err;
  4943. if (
  4944. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4945. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  4946. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  4947. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  4948. !tolua_isnoobj(tolua_S,5,&tolua_err)
  4949. )
  4950. goto tolua_lerror;
  4951. else
  4952. #endif
  4953. {
  4954. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4955. float distance = ((float) tolua_tonumber(tolua_S,2,0));
  4956. float scale = ((float) tolua_tonumber(tolua_S,3,0));
  4957. float bias = ((float) tolua_tonumber(tolua_S,4,0));
  4958. #ifndef TOLUA_RELEASE
  4959. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLodDistance'", NULL);
  4960. #endif
  4961. {
  4962. float tolua_ret = (float) self->GetLodDistance(distance,scale,bias);
  4963. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4964. }
  4965. }
  4966. return 1;
  4967. #ifndef TOLUA_RELEASE
  4968. tolua_lerror:
  4969. tolua_error(tolua_S,"#ferror in function 'GetLodDistance'.",&tolua_err);
  4970. return 0;
  4971. #endif
  4972. }
  4973. #endif //#ifndef TOLUA_DISABLE
  4974. /* method: IsProjectionValid of class Camera */
  4975. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_IsProjectionValid00
  4976. static int tolua_Graphics_Camera_IsProjectionValid00(lua_State* tolua_S)
  4977. {
  4978. #ifndef TOLUA_RELEASE
  4979. tolua_Error tolua_err;
  4980. if (
  4981. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4982. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4983. )
  4984. goto tolua_lerror;
  4985. else
  4986. #endif
  4987. {
  4988. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4989. #ifndef TOLUA_RELEASE
  4990. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsProjectionValid'", NULL);
  4991. #endif
  4992. {
  4993. bool tolua_ret = (bool) self->IsProjectionValid();
  4994. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  4995. }
  4996. }
  4997. return 1;
  4998. #ifndef TOLUA_RELEASE
  4999. tolua_lerror:
  5000. tolua_error(tolua_S,"#ferror in function 'IsProjectionValid'.",&tolua_err);
  5001. return 0;
  5002. #endif
  5003. }
  5004. #endif //#ifndef TOLUA_DISABLE
  5005. /* method: SetView of class DebugRenderer */
  5006. #ifndef TOLUA_DISABLE_tolua_Graphics_DebugRenderer_SetView00
  5007. static int tolua_Graphics_DebugRenderer_SetView00(lua_State* tolua_S)
  5008. {
  5009. #ifndef TOLUA_RELEASE
  5010. tolua_Error tolua_err;
  5011. if (
  5012. !tolua_isusertype(tolua_S,1,"DebugRenderer",0,&tolua_err) ||
  5013. !tolua_isusertype(tolua_S,2,"Camera",0,&tolua_err) ||
  5014. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5015. )
  5016. goto tolua_lerror;
  5017. else
  5018. #endif
  5019. {
  5020. DebugRenderer* self = (DebugRenderer*) tolua_tousertype(tolua_S,1,0);
  5021. Camera* camera = ((Camera*) tolua_tousertype(tolua_S,2,0));
  5022. #ifndef TOLUA_RELEASE
  5023. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetView'", NULL);
  5024. #endif
  5025. {
  5026. self->SetView(camera);
  5027. }
  5028. }
  5029. return 0;
  5030. #ifndef TOLUA_RELEASE
  5031. tolua_lerror:
  5032. tolua_error(tolua_S,"#ferror in function 'SetView'.",&tolua_err);
  5033. return 0;
  5034. #endif
  5035. }
  5036. #endif //#ifndef TOLUA_DISABLE
  5037. /* method: AddLine of class DebugRenderer */
  5038. #ifndef TOLUA_DISABLE_tolua_Graphics_DebugRenderer_AddLine00
  5039. static int tolua_Graphics_DebugRenderer_AddLine00(lua_State* tolua_S)
  5040. {
  5041. #ifndef TOLUA_RELEASE
  5042. tolua_Error tolua_err;
  5043. if (
  5044. !tolua_isusertype(tolua_S,1,"DebugRenderer",0,&tolua_err) ||
  5045. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  5046. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Vector3",0,&tolua_err)) ||
  5047. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"const Color",0,&tolua_err)) ||
  5048. !tolua_isboolean(tolua_S,5,1,&tolua_err) ||
  5049. !tolua_isnoobj(tolua_S,6,&tolua_err)
  5050. )
  5051. goto tolua_lerror;
  5052. else
  5053. #endif
  5054. {
  5055. DebugRenderer* self = (DebugRenderer*) tolua_tousertype(tolua_S,1,0);
  5056. const Vector3* start = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  5057. const Vector3* end = ((const Vector3*) tolua_tousertype(tolua_S,3,0));
  5058. const Color* color = ((const Color*) tolua_tousertype(tolua_S,4,0));
  5059. bool depthTest = ((bool) tolua_toboolean(tolua_S,5,true));
  5060. #ifndef TOLUA_RELEASE
  5061. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddLine'", NULL);
  5062. #endif
  5063. {
  5064. self->AddLine(*start,*end,*color,depthTest);
  5065. }
  5066. }
  5067. return 0;
  5068. #ifndef TOLUA_RELEASE
  5069. tolua_lerror:
  5070. tolua_error(tolua_S,"#ferror in function 'AddLine'.",&tolua_err);
  5071. return 0;
  5072. #endif
  5073. }
  5074. #endif //#ifndef TOLUA_DISABLE
  5075. /* method: AddLine of class DebugRenderer */
  5076. #ifndef TOLUA_DISABLE_tolua_Graphics_DebugRenderer_AddLine01
  5077. static int tolua_Graphics_DebugRenderer_AddLine01(lua_State* tolua_S)
  5078. {
  5079. tolua_Error tolua_err;
  5080. if (
  5081. !tolua_isusertype(tolua_S,1,"DebugRenderer",0,&tolua_err) ||
  5082. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  5083. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Vector3",0,&tolua_err)) ||
  5084. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  5085. !tolua_isboolean(tolua_S,5,1,&tolua_err) ||
  5086. !tolua_isnoobj(tolua_S,6,&tolua_err)
  5087. )
  5088. goto tolua_lerror;
  5089. else
  5090. {
  5091. DebugRenderer* self = (DebugRenderer*) tolua_tousertype(tolua_S,1,0);
  5092. const Vector3* start = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  5093. const Vector3* end = ((const Vector3*) tolua_tousertype(tolua_S,3,0));
  5094. unsigned color = ((unsigned) tolua_tonumber(tolua_S,4,0));
  5095. bool depthTest = ((bool) tolua_toboolean(tolua_S,5,true));
  5096. #ifndef TOLUA_RELEASE
  5097. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddLine'", NULL);
  5098. #endif
  5099. {
  5100. self->AddLine(*start,*end,color,depthTest);
  5101. }
  5102. }
  5103. return 0;
  5104. tolua_lerror:
  5105. return tolua_Graphics_DebugRenderer_AddLine00(tolua_S);
  5106. }
  5107. #endif //#ifndef TOLUA_DISABLE
  5108. /* method: AddNode of class DebugRenderer */
  5109. #ifndef TOLUA_DISABLE_tolua_Graphics_DebugRenderer_AddNode00
  5110. static int tolua_Graphics_DebugRenderer_AddNode00(lua_State* tolua_S)
  5111. {
  5112. #ifndef TOLUA_RELEASE
  5113. tolua_Error tolua_err;
  5114. if (
  5115. !tolua_isusertype(tolua_S,1,"DebugRenderer",0,&tolua_err) ||
  5116. !tolua_isusertype(tolua_S,2,"Node",0,&tolua_err) ||
  5117. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  5118. !tolua_isboolean(tolua_S,4,1,&tolua_err) ||
  5119. !tolua_isnoobj(tolua_S,5,&tolua_err)
  5120. )
  5121. goto tolua_lerror;
  5122. else
  5123. #endif
  5124. {
  5125. DebugRenderer* self = (DebugRenderer*) tolua_tousertype(tolua_S,1,0);
  5126. Node* node = ((Node*) tolua_tousertype(tolua_S,2,0));
  5127. float scale = ((float) tolua_tonumber(tolua_S,3,1.0f));
  5128. bool depthTest = ((bool) tolua_toboolean(tolua_S,4,true));
  5129. #ifndef TOLUA_RELEASE
  5130. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddNode'", NULL);
  5131. #endif
  5132. {
  5133. self->AddNode(node,scale,depthTest);
  5134. }
  5135. }
  5136. return 0;
  5137. #ifndef TOLUA_RELEASE
  5138. tolua_lerror:
  5139. tolua_error(tolua_S,"#ferror in function 'AddNode'.",&tolua_err);
  5140. return 0;
  5141. #endif
  5142. }
  5143. #endif //#ifndef TOLUA_DISABLE
  5144. /* method: AddBoundingBox of class DebugRenderer */
  5145. #ifndef TOLUA_DISABLE_tolua_Graphics_DebugRenderer_AddBoundingBox00
  5146. static int tolua_Graphics_DebugRenderer_AddBoundingBox00(lua_State* tolua_S)
  5147. {
  5148. #ifndef TOLUA_RELEASE
  5149. tolua_Error tolua_err;
  5150. if (
  5151. !tolua_isusertype(tolua_S,1,"DebugRenderer",0,&tolua_err) ||
  5152. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const BoundingBox",0,&tolua_err)) ||
  5153. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Color",0,&tolua_err)) ||
  5154. !tolua_isboolean(tolua_S,4,1,&tolua_err) ||
  5155. !tolua_isnoobj(tolua_S,5,&tolua_err)
  5156. )
  5157. goto tolua_lerror;
  5158. else
  5159. #endif
  5160. {
  5161. DebugRenderer* self = (DebugRenderer*) tolua_tousertype(tolua_S,1,0);
  5162. const BoundingBox* box = ((const BoundingBox*) tolua_tousertype(tolua_S,2,0));
  5163. const Color* color = ((const Color*) tolua_tousertype(tolua_S,3,0));
  5164. bool depthTest = ((bool) tolua_toboolean(tolua_S,4,true));
  5165. #ifndef TOLUA_RELEASE
  5166. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddBoundingBox'", NULL);
  5167. #endif
  5168. {
  5169. self->AddBoundingBox(*box,*color,depthTest);
  5170. }
  5171. }
  5172. return 0;
  5173. #ifndef TOLUA_RELEASE
  5174. tolua_lerror:
  5175. tolua_error(tolua_S,"#ferror in function 'AddBoundingBox'.",&tolua_err);
  5176. return 0;
  5177. #endif
  5178. }
  5179. #endif //#ifndef TOLUA_DISABLE
  5180. /* method: AddBoundingBox of class DebugRenderer */
  5181. #ifndef TOLUA_DISABLE_tolua_Graphics_DebugRenderer_AddBoundingBox01
  5182. static int tolua_Graphics_DebugRenderer_AddBoundingBox01(lua_State* tolua_S)
  5183. {
  5184. tolua_Error tolua_err;
  5185. if (
  5186. !tolua_isusertype(tolua_S,1,"DebugRenderer",0,&tolua_err) ||
  5187. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const BoundingBox",0,&tolua_err)) ||
  5188. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Matrix3x4",0,&tolua_err)) ||
  5189. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"const Color",0,&tolua_err)) ||
  5190. !tolua_isboolean(tolua_S,5,1,&tolua_err) ||
  5191. !tolua_isnoobj(tolua_S,6,&tolua_err)
  5192. )
  5193. goto tolua_lerror;
  5194. else
  5195. {
  5196. DebugRenderer* self = (DebugRenderer*) tolua_tousertype(tolua_S,1,0);
  5197. const BoundingBox* box = ((const BoundingBox*) tolua_tousertype(tolua_S,2,0));
  5198. const Matrix3x4* transform = ((const Matrix3x4*) tolua_tousertype(tolua_S,3,0));
  5199. const Color* color = ((const Color*) tolua_tousertype(tolua_S,4,0));
  5200. bool depthTest = ((bool) tolua_toboolean(tolua_S,5,true));
  5201. #ifndef TOLUA_RELEASE
  5202. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddBoundingBox'", NULL);
  5203. #endif
  5204. {
  5205. self->AddBoundingBox(*box,*transform,*color,depthTest);
  5206. }
  5207. }
  5208. return 0;
  5209. tolua_lerror:
  5210. return tolua_Graphics_DebugRenderer_AddBoundingBox00(tolua_S);
  5211. }
  5212. #endif //#ifndef TOLUA_DISABLE
  5213. /* method: AddFrustum of class DebugRenderer */
  5214. #ifndef TOLUA_DISABLE_tolua_Graphics_DebugRenderer_AddFrustum00
  5215. static int tolua_Graphics_DebugRenderer_AddFrustum00(lua_State* tolua_S)
  5216. {
  5217. #ifndef TOLUA_RELEASE
  5218. tolua_Error tolua_err;
  5219. if (
  5220. !tolua_isusertype(tolua_S,1,"DebugRenderer",0,&tolua_err) ||
  5221. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Frustum",0,&tolua_err)) ||
  5222. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Color",0,&tolua_err)) ||
  5223. !tolua_isboolean(tolua_S,4,1,&tolua_err) ||
  5224. !tolua_isnoobj(tolua_S,5,&tolua_err)
  5225. )
  5226. goto tolua_lerror;
  5227. else
  5228. #endif
  5229. {
  5230. DebugRenderer* self = (DebugRenderer*) tolua_tousertype(tolua_S,1,0);
  5231. const Frustum* frustum = ((const Frustum*) tolua_tousertype(tolua_S,2,0));
  5232. const Color* color = ((const Color*) tolua_tousertype(tolua_S,3,0));
  5233. bool depthTest = ((bool) tolua_toboolean(tolua_S,4,true));
  5234. #ifndef TOLUA_RELEASE
  5235. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddFrustum'", NULL);
  5236. #endif
  5237. {
  5238. self->AddFrustum(*frustum,*color,depthTest);
  5239. }
  5240. }
  5241. return 0;
  5242. #ifndef TOLUA_RELEASE
  5243. tolua_lerror:
  5244. tolua_error(tolua_S,"#ferror in function 'AddFrustum'.",&tolua_err);
  5245. return 0;
  5246. #endif
  5247. }
  5248. #endif //#ifndef TOLUA_DISABLE
  5249. /* method: AddPolyhedron of class DebugRenderer */
  5250. #ifndef TOLUA_DISABLE_tolua_Graphics_DebugRenderer_AddPolyhedron00
  5251. static int tolua_Graphics_DebugRenderer_AddPolyhedron00(lua_State* tolua_S)
  5252. {
  5253. #ifndef TOLUA_RELEASE
  5254. tolua_Error tolua_err;
  5255. if (
  5256. !tolua_isusertype(tolua_S,1,"DebugRenderer",0,&tolua_err) ||
  5257. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Polyhedron",0,&tolua_err)) ||
  5258. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Color",0,&tolua_err)) ||
  5259. !tolua_isboolean(tolua_S,4,1,&tolua_err) ||
  5260. !tolua_isnoobj(tolua_S,5,&tolua_err)
  5261. )
  5262. goto tolua_lerror;
  5263. else
  5264. #endif
  5265. {
  5266. DebugRenderer* self = (DebugRenderer*) tolua_tousertype(tolua_S,1,0);
  5267. const Polyhedron* poly = ((const Polyhedron*) tolua_tousertype(tolua_S,2,0));
  5268. const Color* color = ((const Color*) tolua_tousertype(tolua_S,3,0));
  5269. bool depthTest = ((bool) tolua_toboolean(tolua_S,4,true));
  5270. #ifndef TOLUA_RELEASE
  5271. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddPolyhedron'", NULL);
  5272. #endif
  5273. {
  5274. self->AddPolyhedron(*poly,*color,depthTest);
  5275. }
  5276. }
  5277. return 0;
  5278. #ifndef TOLUA_RELEASE
  5279. tolua_lerror:
  5280. tolua_error(tolua_S,"#ferror in function 'AddPolyhedron'.",&tolua_err);
  5281. return 0;
  5282. #endif
  5283. }
  5284. #endif //#ifndef TOLUA_DISABLE
  5285. /* method: AddSphere of class DebugRenderer */
  5286. #ifndef TOLUA_DISABLE_tolua_Graphics_DebugRenderer_AddSphere00
  5287. static int tolua_Graphics_DebugRenderer_AddSphere00(lua_State* tolua_S)
  5288. {
  5289. #ifndef TOLUA_RELEASE
  5290. tolua_Error tolua_err;
  5291. if (
  5292. !tolua_isusertype(tolua_S,1,"DebugRenderer",0,&tolua_err) ||
  5293. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Sphere",0,&tolua_err)) ||
  5294. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Color",0,&tolua_err)) ||
  5295. !tolua_isboolean(tolua_S,4,1,&tolua_err) ||
  5296. !tolua_isnoobj(tolua_S,5,&tolua_err)
  5297. )
  5298. goto tolua_lerror;
  5299. else
  5300. #endif
  5301. {
  5302. DebugRenderer* self = (DebugRenderer*) tolua_tousertype(tolua_S,1,0);
  5303. const Sphere* sphere = ((const Sphere*) tolua_tousertype(tolua_S,2,0));
  5304. const Color* color = ((const Color*) tolua_tousertype(tolua_S,3,0));
  5305. bool depthTest = ((bool) tolua_toboolean(tolua_S,4,true));
  5306. #ifndef TOLUA_RELEASE
  5307. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddSphere'", NULL);
  5308. #endif
  5309. {
  5310. self->AddSphere(*sphere,*color,depthTest);
  5311. }
  5312. }
  5313. return 0;
  5314. #ifndef TOLUA_RELEASE
  5315. tolua_lerror:
  5316. tolua_error(tolua_S,"#ferror in function 'AddSphere'.",&tolua_err);
  5317. return 0;
  5318. #endif
  5319. }
  5320. #endif //#ifndef TOLUA_DISABLE
  5321. /* method: AddSkeleton of class DebugRenderer */
  5322. #ifndef TOLUA_DISABLE_tolua_Graphics_DebugRenderer_AddSkeleton00
  5323. static int tolua_Graphics_DebugRenderer_AddSkeleton00(lua_State* tolua_S)
  5324. {
  5325. #ifndef TOLUA_RELEASE
  5326. tolua_Error tolua_err;
  5327. if (
  5328. !tolua_isusertype(tolua_S,1,"DebugRenderer",0,&tolua_err) ||
  5329. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Skeleton",0,&tolua_err)) ||
  5330. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Color",0,&tolua_err)) ||
  5331. !tolua_isboolean(tolua_S,4,1,&tolua_err) ||
  5332. !tolua_isnoobj(tolua_S,5,&tolua_err)
  5333. )
  5334. goto tolua_lerror;
  5335. else
  5336. #endif
  5337. {
  5338. DebugRenderer* self = (DebugRenderer*) tolua_tousertype(tolua_S,1,0);
  5339. const Skeleton* skeleton = ((const Skeleton*) tolua_tousertype(tolua_S,2,0));
  5340. const Color* color = ((const Color*) tolua_tousertype(tolua_S,3,0));
  5341. bool depthTest = ((bool) tolua_toboolean(tolua_S,4,true));
  5342. #ifndef TOLUA_RELEASE
  5343. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddSkeleton'", NULL);
  5344. #endif
  5345. {
  5346. self->AddSkeleton(*skeleton,*color,depthTest);
  5347. }
  5348. }
  5349. return 0;
  5350. #ifndef TOLUA_RELEASE
  5351. tolua_lerror:
  5352. tolua_error(tolua_S,"#ferror in function 'AddSkeleton'.",&tolua_err);
  5353. return 0;
  5354. #endif
  5355. }
  5356. #endif //#ifndef TOLUA_DISABLE
  5357. /* method: GetView of class DebugRenderer */
  5358. #ifndef TOLUA_DISABLE_tolua_Graphics_DebugRenderer_GetView00
  5359. static int tolua_Graphics_DebugRenderer_GetView00(lua_State* tolua_S)
  5360. {
  5361. #ifndef TOLUA_RELEASE
  5362. tolua_Error tolua_err;
  5363. if (
  5364. !tolua_isusertype(tolua_S,1,"const DebugRenderer",0,&tolua_err) ||
  5365. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5366. )
  5367. goto tolua_lerror;
  5368. else
  5369. #endif
  5370. {
  5371. const DebugRenderer* self = (const DebugRenderer*) tolua_tousertype(tolua_S,1,0);
  5372. #ifndef TOLUA_RELEASE
  5373. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetView'", NULL);
  5374. #endif
  5375. {
  5376. const Matrix3x4& tolua_ret = (const Matrix3x4&) self->GetView();
  5377. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Matrix3x4");
  5378. }
  5379. }
  5380. return 1;
  5381. #ifndef TOLUA_RELEASE
  5382. tolua_lerror:
  5383. tolua_error(tolua_S,"#ferror in function 'GetView'.",&tolua_err);
  5384. return 0;
  5385. #endif
  5386. }
  5387. #endif //#ifndef TOLUA_DISABLE
  5388. /* method: GetProjection of class DebugRenderer */
  5389. #ifndef TOLUA_DISABLE_tolua_Graphics_DebugRenderer_GetProjection00
  5390. static int tolua_Graphics_DebugRenderer_GetProjection00(lua_State* tolua_S)
  5391. {
  5392. #ifndef TOLUA_RELEASE
  5393. tolua_Error tolua_err;
  5394. if (
  5395. !tolua_isusertype(tolua_S,1,"const DebugRenderer",0,&tolua_err) ||
  5396. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5397. )
  5398. goto tolua_lerror;
  5399. else
  5400. #endif
  5401. {
  5402. const DebugRenderer* self = (const DebugRenderer*) tolua_tousertype(tolua_S,1,0);
  5403. #ifndef TOLUA_RELEASE
  5404. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetProjection'", NULL);
  5405. #endif
  5406. {
  5407. const Matrix4& tolua_ret = (const Matrix4&) self->GetProjection();
  5408. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Matrix4");
  5409. }
  5410. }
  5411. return 1;
  5412. #ifndef TOLUA_RELEASE
  5413. tolua_lerror:
  5414. tolua_error(tolua_S,"#ferror in function 'GetProjection'.",&tolua_err);
  5415. return 0;
  5416. #endif
  5417. }
  5418. #endif //#ifndef TOLUA_DISABLE
  5419. /* method: GetFrustum of class DebugRenderer */
  5420. #ifndef TOLUA_DISABLE_tolua_Graphics_DebugRenderer_GetFrustum00
  5421. static int tolua_Graphics_DebugRenderer_GetFrustum00(lua_State* tolua_S)
  5422. {
  5423. #ifndef TOLUA_RELEASE
  5424. tolua_Error tolua_err;
  5425. if (
  5426. !tolua_isusertype(tolua_S,1,"const DebugRenderer",0,&tolua_err) ||
  5427. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5428. )
  5429. goto tolua_lerror;
  5430. else
  5431. #endif
  5432. {
  5433. const DebugRenderer* self = (const DebugRenderer*) tolua_tousertype(tolua_S,1,0);
  5434. #ifndef TOLUA_RELEASE
  5435. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFrustum'", NULL);
  5436. #endif
  5437. {
  5438. const Frustum& tolua_ret = (const Frustum&) self->GetFrustum();
  5439. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Frustum");
  5440. }
  5441. }
  5442. return 1;
  5443. #ifndef TOLUA_RELEASE
  5444. tolua_lerror:
  5445. tolua_error(tolua_S,"#ferror in function 'GetFrustum'.",&tolua_err);
  5446. return 0;
  5447. #endif
  5448. }
  5449. #endif //#ifndef TOLUA_DISABLE
  5450. /* method: IsInside of class DebugRenderer */
  5451. #ifndef TOLUA_DISABLE_tolua_Graphics_DebugRenderer_IsInside00
  5452. static int tolua_Graphics_DebugRenderer_IsInside00(lua_State* tolua_S)
  5453. {
  5454. #ifndef TOLUA_RELEASE
  5455. tolua_Error tolua_err;
  5456. if (
  5457. !tolua_isusertype(tolua_S,1,"const DebugRenderer",0,&tolua_err) ||
  5458. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const BoundingBox",0,&tolua_err)) ||
  5459. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5460. )
  5461. goto tolua_lerror;
  5462. else
  5463. #endif
  5464. {
  5465. const DebugRenderer* self = (const DebugRenderer*) tolua_tousertype(tolua_S,1,0);
  5466. const BoundingBox* box = ((const BoundingBox*) tolua_tousertype(tolua_S,2,0));
  5467. #ifndef TOLUA_RELEASE
  5468. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsInside'", NULL);
  5469. #endif
  5470. {
  5471. bool tolua_ret = (bool) self->IsInside(*box);
  5472. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  5473. }
  5474. }
  5475. return 1;
  5476. #ifndef TOLUA_RELEASE
  5477. tolua_lerror:
  5478. tolua_error(tolua_S,"#ferror in function 'IsInside'.",&tolua_err);
  5479. return 0;
  5480. #endif
  5481. }
  5482. #endif //#ifndef TOLUA_DISABLE
  5483. /* function: GetDebugRenderer */
  5484. #ifndef TOLUA_DISABLE_tolua_Graphics_GetDebugRenderer00
  5485. static int tolua_Graphics_GetDebugRenderer00(lua_State* tolua_S)
  5486. {
  5487. #ifndef TOLUA_RELEASE
  5488. tolua_Error tolua_err;
  5489. if (
  5490. !tolua_isnoobj(tolua_S,1,&tolua_err)
  5491. )
  5492. goto tolua_lerror;
  5493. else
  5494. #endif
  5495. {
  5496. {
  5497. DebugRenderer* tolua_ret = (DebugRenderer*) GetDebugRenderer();
  5498. tolua_pushusertype(tolua_S,(void*)tolua_ret,"DebugRenderer");
  5499. }
  5500. }
  5501. return 1;
  5502. #ifndef TOLUA_RELEASE
  5503. tolua_lerror:
  5504. tolua_error(tolua_S,"#ferror in function 'GetDebugRenderer'.",&tolua_err);
  5505. return 0;
  5506. #endif
  5507. }
  5508. #endif //#ifndef TOLUA_DISABLE
  5509. /* method: SetMaterial of class DecalSet */
  5510. #ifndef TOLUA_DISABLE_tolua_Graphics_DecalSet_SetMaterial00
  5511. static int tolua_Graphics_DecalSet_SetMaterial00(lua_State* tolua_S)
  5512. {
  5513. #ifndef TOLUA_RELEASE
  5514. tolua_Error tolua_err;
  5515. if (
  5516. !tolua_isusertype(tolua_S,1,"DecalSet",0,&tolua_err) ||
  5517. !tolua_isusertype(tolua_S,2,"Material",0,&tolua_err) ||
  5518. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5519. )
  5520. goto tolua_lerror;
  5521. else
  5522. #endif
  5523. {
  5524. DecalSet* self = (DecalSet*) tolua_tousertype(tolua_S,1,0);
  5525. Material* material = ((Material*) tolua_tousertype(tolua_S,2,0));
  5526. #ifndef TOLUA_RELEASE
  5527. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaterial'", NULL);
  5528. #endif
  5529. {
  5530. self->SetMaterial(material);
  5531. }
  5532. }
  5533. return 0;
  5534. #ifndef TOLUA_RELEASE
  5535. tolua_lerror:
  5536. tolua_error(tolua_S,"#ferror in function 'SetMaterial'.",&tolua_err);
  5537. return 0;
  5538. #endif
  5539. }
  5540. #endif //#ifndef TOLUA_DISABLE
  5541. /* method: SetMaxVertices of class DecalSet */
  5542. #ifndef TOLUA_DISABLE_tolua_Graphics_DecalSet_SetMaxVertices00
  5543. static int tolua_Graphics_DecalSet_SetMaxVertices00(lua_State* tolua_S)
  5544. {
  5545. #ifndef TOLUA_RELEASE
  5546. tolua_Error tolua_err;
  5547. if (
  5548. !tolua_isusertype(tolua_S,1,"DecalSet",0,&tolua_err) ||
  5549. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5550. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5551. )
  5552. goto tolua_lerror;
  5553. else
  5554. #endif
  5555. {
  5556. DecalSet* self = (DecalSet*) tolua_tousertype(tolua_S,1,0);
  5557. unsigned num = ((unsigned) tolua_tonumber(tolua_S,2,0));
  5558. #ifndef TOLUA_RELEASE
  5559. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxVertices'", NULL);
  5560. #endif
  5561. {
  5562. self->SetMaxVertices(num);
  5563. }
  5564. }
  5565. return 0;
  5566. #ifndef TOLUA_RELEASE
  5567. tolua_lerror:
  5568. tolua_error(tolua_S,"#ferror in function 'SetMaxVertices'.",&tolua_err);
  5569. return 0;
  5570. #endif
  5571. }
  5572. #endif //#ifndef TOLUA_DISABLE
  5573. /* method: SetMaxIndices of class DecalSet */
  5574. #ifndef TOLUA_DISABLE_tolua_Graphics_DecalSet_SetMaxIndices00
  5575. static int tolua_Graphics_DecalSet_SetMaxIndices00(lua_State* tolua_S)
  5576. {
  5577. #ifndef TOLUA_RELEASE
  5578. tolua_Error tolua_err;
  5579. if (
  5580. !tolua_isusertype(tolua_S,1,"DecalSet",0,&tolua_err) ||
  5581. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5582. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5583. )
  5584. goto tolua_lerror;
  5585. else
  5586. #endif
  5587. {
  5588. DecalSet* self = (DecalSet*) tolua_tousertype(tolua_S,1,0);
  5589. unsigned num = ((unsigned) tolua_tonumber(tolua_S,2,0));
  5590. #ifndef TOLUA_RELEASE
  5591. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxIndices'", NULL);
  5592. #endif
  5593. {
  5594. self->SetMaxIndices(num);
  5595. }
  5596. }
  5597. return 0;
  5598. #ifndef TOLUA_RELEASE
  5599. tolua_lerror:
  5600. tolua_error(tolua_S,"#ferror in function 'SetMaxIndices'.",&tolua_err);
  5601. return 0;
  5602. #endif
  5603. }
  5604. #endif //#ifndef TOLUA_DISABLE
  5605. /* method: AddDecal of class DecalSet */
  5606. #ifndef TOLUA_DISABLE_tolua_Graphics_DecalSet_AddDecal00
  5607. static int tolua_Graphics_DecalSet_AddDecal00(lua_State* tolua_S)
  5608. {
  5609. #ifndef TOLUA_RELEASE
  5610. tolua_Error tolua_err;
  5611. if (
  5612. !tolua_isusertype(tolua_S,1,"DecalSet",0,&tolua_err) ||
  5613. !tolua_isusertype(tolua_S,2,"Drawable",0,&tolua_err) ||
  5614. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Vector3",0,&tolua_err)) ||
  5615. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"const Quaternion",0,&tolua_err)) ||
  5616. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  5617. !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
  5618. !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
  5619. (tolua_isvaluenil(tolua_S,8,&tolua_err) || !tolua_isusertype(tolua_S,8,"const Vector2",0,&tolua_err)) ||
  5620. (tolua_isvaluenil(tolua_S,9,&tolua_err) || !tolua_isusertype(tolua_S,9,"const Vector2",0,&tolua_err)) ||
  5621. !tolua_isnumber(tolua_S,10,1,&tolua_err) ||
  5622. !tolua_isnumber(tolua_S,11,1,&tolua_err) ||
  5623. !tolua_isnumber(tolua_S,12,1,&tolua_err) ||
  5624. !tolua_isnoobj(tolua_S,13,&tolua_err)
  5625. )
  5626. goto tolua_lerror;
  5627. else
  5628. #endif
  5629. {
  5630. DecalSet* self = (DecalSet*) tolua_tousertype(tolua_S,1,0);
  5631. Drawable* target = ((Drawable*) tolua_tousertype(tolua_S,2,0));
  5632. const Vector3* worldPosition = ((const Vector3*) tolua_tousertype(tolua_S,3,0));
  5633. const Quaternion* worldRotation = ((const Quaternion*) tolua_tousertype(tolua_S,4,0));
  5634. float size = ((float) tolua_tonumber(tolua_S,5,0));
  5635. float aspectRatio = ((float) tolua_tonumber(tolua_S,6,0));
  5636. float depth = ((float) tolua_tonumber(tolua_S,7,0));
  5637. const Vector2* topLeftUV = ((const Vector2*) tolua_tousertype(tolua_S,8,0));
  5638. const Vector2* bottomRightUV = ((const Vector2*) tolua_tousertype(tolua_S,9,0));
  5639. float timeToLive = ((float) tolua_tonumber(tolua_S,10,0.0f));
  5640. float normalCutoff = ((float) tolua_tonumber(tolua_S,11,0.1f));
  5641. unsigned subGeometry = ((unsigned) tolua_tonumber(tolua_S,12,M_MAX_UNSIGNED));
  5642. #ifndef TOLUA_RELEASE
  5643. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddDecal'", NULL);
  5644. #endif
  5645. {
  5646. bool tolua_ret = (bool) self->AddDecal(target,*worldPosition,*worldRotation,size,aspectRatio,depth,*topLeftUV,*bottomRightUV,timeToLive,normalCutoff,subGeometry);
  5647. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  5648. }
  5649. }
  5650. return 1;
  5651. #ifndef TOLUA_RELEASE
  5652. tolua_lerror:
  5653. tolua_error(tolua_S,"#ferror in function 'AddDecal'.",&tolua_err);
  5654. return 0;
  5655. #endif
  5656. }
  5657. #endif //#ifndef TOLUA_DISABLE
  5658. /* method: RemoveDecals of class DecalSet */
  5659. #ifndef TOLUA_DISABLE_tolua_Graphics_DecalSet_RemoveDecals00
  5660. static int tolua_Graphics_DecalSet_RemoveDecals00(lua_State* tolua_S)
  5661. {
  5662. #ifndef TOLUA_RELEASE
  5663. tolua_Error tolua_err;
  5664. if (
  5665. !tolua_isusertype(tolua_S,1,"DecalSet",0,&tolua_err) ||
  5666. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5667. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5668. )
  5669. goto tolua_lerror;
  5670. else
  5671. #endif
  5672. {
  5673. DecalSet* self = (DecalSet*) tolua_tousertype(tolua_S,1,0);
  5674. unsigned num = ((unsigned) tolua_tonumber(tolua_S,2,0));
  5675. #ifndef TOLUA_RELEASE
  5676. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveDecals'", NULL);
  5677. #endif
  5678. {
  5679. self->RemoveDecals(num);
  5680. }
  5681. }
  5682. return 0;
  5683. #ifndef TOLUA_RELEASE
  5684. tolua_lerror:
  5685. tolua_error(tolua_S,"#ferror in function 'RemoveDecals'.",&tolua_err);
  5686. return 0;
  5687. #endif
  5688. }
  5689. #endif //#ifndef TOLUA_DISABLE
  5690. /* method: RemoveAllDecals of class DecalSet */
  5691. #ifndef TOLUA_DISABLE_tolua_Graphics_DecalSet_RemoveAllDecals00
  5692. static int tolua_Graphics_DecalSet_RemoveAllDecals00(lua_State* tolua_S)
  5693. {
  5694. #ifndef TOLUA_RELEASE
  5695. tolua_Error tolua_err;
  5696. if (
  5697. !tolua_isusertype(tolua_S,1,"DecalSet",0,&tolua_err) ||
  5698. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5699. )
  5700. goto tolua_lerror;
  5701. else
  5702. #endif
  5703. {
  5704. DecalSet* self = (DecalSet*) tolua_tousertype(tolua_S,1,0);
  5705. #ifndef TOLUA_RELEASE
  5706. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveAllDecals'", NULL);
  5707. #endif
  5708. {
  5709. self->RemoveAllDecals();
  5710. }
  5711. }
  5712. return 0;
  5713. #ifndef TOLUA_RELEASE
  5714. tolua_lerror:
  5715. tolua_error(tolua_S,"#ferror in function 'RemoveAllDecals'.",&tolua_err);
  5716. return 0;
  5717. #endif
  5718. }
  5719. #endif //#ifndef TOLUA_DISABLE
  5720. /* method: GetMaterial of class DecalSet */
  5721. #ifndef TOLUA_DISABLE_tolua_Graphics_DecalSet_GetMaterial00
  5722. static int tolua_Graphics_DecalSet_GetMaterial00(lua_State* tolua_S)
  5723. {
  5724. #ifndef TOLUA_RELEASE
  5725. tolua_Error tolua_err;
  5726. if (
  5727. !tolua_isusertype(tolua_S,1,"const DecalSet",0,&tolua_err) ||
  5728. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5729. )
  5730. goto tolua_lerror;
  5731. else
  5732. #endif
  5733. {
  5734. const DecalSet* self = (const DecalSet*) tolua_tousertype(tolua_S,1,0);
  5735. #ifndef TOLUA_RELEASE
  5736. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaterial'", NULL);
  5737. #endif
  5738. {
  5739. Material* tolua_ret = (Material*) self->GetMaterial();
  5740. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Material");
  5741. }
  5742. }
  5743. return 1;
  5744. #ifndef TOLUA_RELEASE
  5745. tolua_lerror:
  5746. tolua_error(tolua_S,"#ferror in function 'GetMaterial'.",&tolua_err);
  5747. return 0;
  5748. #endif
  5749. }
  5750. #endif //#ifndef TOLUA_DISABLE
  5751. /* method: GetNumDecals of class DecalSet */
  5752. #ifndef TOLUA_DISABLE_tolua_Graphics_DecalSet_GetNumDecals00
  5753. static int tolua_Graphics_DecalSet_GetNumDecals00(lua_State* tolua_S)
  5754. {
  5755. #ifndef TOLUA_RELEASE
  5756. tolua_Error tolua_err;
  5757. if (
  5758. !tolua_isusertype(tolua_S,1,"const DecalSet",0,&tolua_err) ||
  5759. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5760. )
  5761. goto tolua_lerror;
  5762. else
  5763. #endif
  5764. {
  5765. const DecalSet* self = (const DecalSet*) tolua_tousertype(tolua_S,1,0);
  5766. #ifndef TOLUA_RELEASE
  5767. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumDecals'", NULL);
  5768. #endif
  5769. {
  5770. unsigned tolua_ret = (unsigned) self->GetNumDecals();
  5771. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5772. }
  5773. }
  5774. return 1;
  5775. #ifndef TOLUA_RELEASE
  5776. tolua_lerror:
  5777. tolua_error(tolua_S,"#ferror in function 'GetNumDecals'.",&tolua_err);
  5778. return 0;
  5779. #endif
  5780. }
  5781. #endif //#ifndef TOLUA_DISABLE
  5782. /* method: GetNumVertices of class DecalSet */
  5783. #ifndef TOLUA_DISABLE_tolua_Graphics_DecalSet_GetNumVertices00
  5784. static int tolua_Graphics_DecalSet_GetNumVertices00(lua_State* tolua_S)
  5785. {
  5786. #ifndef TOLUA_RELEASE
  5787. tolua_Error tolua_err;
  5788. if (
  5789. !tolua_isusertype(tolua_S,1,"const DecalSet",0,&tolua_err) ||
  5790. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5791. )
  5792. goto tolua_lerror;
  5793. else
  5794. #endif
  5795. {
  5796. const DecalSet* self = (const DecalSet*) tolua_tousertype(tolua_S,1,0);
  5797. #ifndef TOLUA_RELEASE
  5798. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumVertices'", NULL);
  5799. #endif
  5800. {
  5801. unsigned tolua_ret = (unsigned) self->GetNumVertices();
  5802. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5803. }
  5804. }
  5805. return 1;
  5806. #ifndef TOLUA_RELEASE
  5807. tolua_lerror:
  5808. tolua_error(tolua_S,"#ferror in function 'GetNumVertices'.",&tolua_err);
  5809. return 0;
  5810. #endif
  5811. }
  5812. #endif //#ifndef TOLUA_DISABLE
  5813. /* method: GetNumIndices of class DecalSet */
  5814. #ifndef TOLUA_DISABLE_tolua_Graphics_DecalSet_GetNumIndices00
  5815. static int tolua_Graphics_DecalSet_GetNumIndices00(lua_State* tolua_S)
  5816. {
  5817. #ifndef TOLUA_RELEASE
  5818. tolua_Error tolua_err;
  5819. if (
  5820. !tolua_isusertype(tolua_S,1,"const DecalSet",0,&tolua_err) ||
  5821. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5822. )
  5823. goto tolua_lerror;
  5824. else
  5825. #endif
  5826. {
  5827. const DecalSet* self = (const DecalSet*) tolua_tousertype(tolua_S,1,0);
  5828. #ifndef TOLUA_RELEASE
  5829. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumIndices'", NULL);
  5830. #endif
  5831. {
  5832. unsigned tolua_ret = (unsigned) self->GetNumIndices();
  5833. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5834. }
  5835. }
  5836. return 1;
  5837. #ifndef TOLUA_RELEASE
  5838. tolua_lerror:
  5839. tolua_error(tolua_S,"#ferror in function 'GetNumIndices'.",&tolua_err);
  5840. return 0;
  5841. #endif
  5842. }
  5843. #endif //#ifndef TOLUA_DISABLE
  5844. /* method: GetMaxVertices of class DecalSet */
  5845. #ifndef TOLUA_DISABLE_tolua_Graphics_DecalSet_GetMaxVertices00
  5846. static int tolua_Graphics_DecalSet_GetMaxVertices00(lua_State* tolua_S)
  5847. {
  5848. #ifndef TOLUA_RELEASE
  5849. tolua_Error tolua_err;
  5850. if (
  5851. !tolua_isusertype(tolua_S,1,"const DecalSet",0,&tolua_err) ||
  5852. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5853. )
  5854. goto tolua_lerror;
  5855. else
  5856. #endif
  5857. {
  5858. const DecalSet* self = (const DecalSet*) tolua_tousertype(tolua_S,1,0);
  5859. #ifndef TOLUA_RELEASE
  5860. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxVertices'", NULL);
  5861. #endif
  5862. {
  5863. unsigned tolua_ret = (unsigned) self->GetMaxVertices();
  5864. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5865. }
  5866. }
  5867. return 1;
  5868. #ifndef TOLUA_RELEASE
  5869. tolua_lerror:
  5870. tolua_error(tolua_S,"#ferror in function 'GetMaxVertices'.",&tolua_err);
  5871. return 0;
  5872. #endif
  5873. }
  5874. #endif //#ifndef TOLUA_DISABLE
  5875. /* method: GetMaxIndices of class DecalSet */
  5876. #ifndef TOLUA_DISABLE_tolua_Graphics_DecalSet_GetMaxIndices00
  5877. static int tolua_Graphics_DecalSet_GetMaxIndices00(lua_State* tolua_S)
  5878. {
  5879. #ifndef TOLUA_RELEASE
  5880. tolua_Error tolua_err;
  5881. if (
  5882. !tolua_isusertype(tolua_S,1,"const DecalSet",0,&tolua_err) ||
  5883. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5884. )
  5885. goto tolua_lerror;
  5886. else
  5887. #endif
  5888. {
  5889. const DecalSet* self = (const DecalSet*) tolua_tousertype(tolua_S,1,0);
  5890. #ifndef TOLUA_RELEASE
  5891. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxIndices'", NULL);
  5892. #endif
  5893. {
  5894. unsigned tolua_ret = (unsigned) self->GetMaxIndices();
  5895. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5896. }
  5897. }
  5898. return 1;
  5899. #ifndef TOLUA_RELEASE
  5900. tolua_lerror:
  5901. tolua_error(tolua_S,"#ferror in function 'GetMaxIndices'.",&tolua_err);
  5902. return 0;
  5903. #endif
  5904. }
  5905. #endif //#ifndef TOLUA_DISABLE
  5906. /* method: SetDrawDistance of class Drawable */
  5907. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetDrawDistance00
  5908. static int tolua_Graphics_Drawable_SetDrawDistance00(lua_State* tolua_S)
  5909. {
  5910. #ifndef TOLUA_RELEASE
  5911. tolua_Error tolua_err;
  5912. if (
  5913. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  5914. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5915. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5916. )
  5917. goto tolua_lerror;
  5918. else
  5919. #endif
  5920. {
  5921. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  5922. float distance = ((float) tolua_tonumber(tolua_S,2,0));
  5923. #ifndef TOLUA_RELEASE
  5924. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDrawDistance'", NULL);
  5925. #endif
  5926. {
  5927. self->SetDrawDistance(distance);
  5928. }
  5929. }
  5930. return 0;
  5931. #ifndef TOLUA_RELEASE
  5932. tolua_lerror:
  5933. tolua_error(tolua_S,"#ferror in function 'SetDrawDistance'.",&tolua_err);
  5934. return 0;
  5935. #endif
  5936. }
  5937. #endif //#ifndef TOLUA_DISABLE
  5938. /* method: SetShadowDistance of class Drawable */
  5939. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetShadowDistance00
  5940. static int tolua_Graphics_Drawable_SetShadowDistance00(lua_State* tolua_S)
  5941. {
  5942. #ifndef TOLUA_RELEASE
  5943. tolua_Error tolua_err;
  5944. if (
  5945. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  5946. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5947. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5948. )
  5949. goto tolua_lerror;
  5950. else
  5951. #endif
  5952. {
  5953. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  5954. float distance = ((float) tolua_tonumber(tolua_S,2,0));
  5955. #ifndef TOLUA_RELEASE
  5956. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShadowDistance'", NULL);
  5957. #endif
  5958. {
  5959. self->SetShadowDistance(distance);
  5960. }
  5961. }
  5962. return 0;
  5963. #ifndef TOLUA_RELEASE
  5964. tolua_lerror:
  5965. tolua_error(tolua_S,"#ferror in function 'SetShadowDistance'.",&tolua_err);
  5966. return 0;
  5967. #endif
  5968. }
  5969. #endif //#ifndef TOLUA_DISABLE
  5970. /* method: SetLodBias of class Drawable */
  5971. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetLodBias00
  5972. static int tolua_Graphics_Drawable_SetLodBias00(lua_State* tolua_S)
  5973. {
  5974. #ifndef TOLUA_RELEASE
  5975. tolua_Error tolua_err;
  5976. if (
  5977. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  5978. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5979. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5980. )
  5981. goto tolua_lerror;
  5982. else
  5983. #endif
  5984. {
  5985. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  5986. float bias = ((float) tolua_tonumber(tolua_S,2,0));
  5987. #ifndef TOLUA_RELEASE
  5988. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLodBias'", NULL);
  5989. #endif
  5990. {
  5991. self->SetLodBias(bias);
  5992. }
  5993. }
  5994. return 0;
  5995. #ifndef TOLUA_RELEASE
  5996. tolua_lerror:
  5997. tolua_error(tolua_S,"#ferror in function 'SetLodBias'.",&tolua_err);
  5998. return 0;
  5999. #endif
  6000. }
  6001. #endif //#ifndef TOLUA_DISABLE
  6002. /* method: SetViewMask of class Drawable */
  6003. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetViewMask00
  6004. static int tolua_Graphics_Drawable_SetViewMask00(lua_State* tolua_S)
  6005. {
  6006. #ifndef TOLUA_RELEASE
  6007. tolua_Error tolua_err;
  6008. if (
  6009. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6010. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6011. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6012. )
  6013. goto tolua_lerror;
  6014. else
  6015. #endif
  6016. {
  6017. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6018. unsigned mask = ((unsigned) tolua_tonumber(tolua_S,2,0));
  6019. #ifndef TOLUA_RELEASE
  6020. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetViewMask'", NULL);
  6021. #endif
  6022. {
  6023. self->SetViewMask(mask);
  6024. }
  6025. }
  6026. return 0;
  6027. #ifndef TOLUA_RELEASE
  6028. tolua_lerror:
  6029. tolua_error(tolua_S,"#ferror in function 'SetViewMask'.",&tolua_err);
  6030. return 0;
  6031. #endif
  6032. }
  6033. #endif //#ifndef TOLUA_DISABLE
  6034. /* method: SetLightMask of class Drawable */
  6035. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetLightMask00
  6036. static int tolua_Graphics_Drawable_SetLightMask00(lua_State* tolua_S)
  6037. {
  6038. #ifndef TOLUA_RELEASE
  6039. tolua_Error tolua_err;
  6040. if (
  6041. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6042. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6043. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6044. )
  6045. goto tolua_lerror;
  6046. else
  6047. #endif
  6048. {
  6049. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6050. unsigned mask = ((unsigned) tolua_tonumber(tolua_S,2,0));
  6051. #ifndef TOLUA_RELEASE
  6052. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLightMask'", NULL);
  6053. #endif
  6054. {
  6055. self->SetLightMask(mask);
  6056. }
  6057. }
  6058. return 0;
  6059. #ifndef TOLUA_RELEASE
  6060. tolua_lerror:
  6061. tolua_error(tolua_S,"#ferror in function 'SetLightMask'.",&tolua_err);
  6062. return 0;
  6063. #endif
  6064. }
  6065. #endif //#ifndef TOLUA_DISABLE
  6066. /* method: SetShadowMask of class Drawable */
  6067. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetShadowMask00
  6068. static int tolua_Graphics_Drawable_SetShadowMask00(lua_State* tolua_S)
  6069. {
  6070. #ifndef TOLUA_RELEASE
  6071. tolua_Error tolua_err;
  6072. if (
  6073. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6074. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6075. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6076. )
  6077. goto tolua_lerror;
  6078. else
  6079. #endif
  6080. {
  6081. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6082. unsigned mask = ((unsigned) tolua_tonumber(tolua_S,2,0));
  6083. #ifndef TOLUA_RELEASE
  6084. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShadowMask'", NULL);
  6085. #endif
  6086. {
  6087. self->SetShadowMask(mask);
  6088. }
  6089. }
  6090. return 0;
  6091. #ifndef TOLUA_RELEASE
  6092. tolua_lerror:
  6093. tolua_error(tolua_S,"#ferror in function 'SetShadowMask'.",&tolua_err);
  6094. return 0;
  6095. #endif
  6096. }
  6097. #endif //#ifndef TOLUA_DISABLE
  6098. /* method: SetZoneMask of class Drawable */
  6099. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetZoneMask00
  6100. static int tolua_Graphics_Drawable_SetZoneMask00(lua_State* tolua_S)
  6101. {
  6102. #ifndef TOLUA_RELEASE
  6103. tolua_Error tolua_err;
  6104. if (
  6105. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6106. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6107. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6108. )
  6109. goto tolua_lerror;
  6110. else
  6111. #endif
  6112. {
  6113. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6114. unsigned mask = ((unsigned) tolua_tonumber(tolua_S,2,0));
  6115. #ifndef TOLUA_RELEASE
  6116. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetZoneMask'", NULL);
  6117. #endif
  6118. {
  6119. self->SetZoneMask(mask);
  6120. }
  6121. }
  6122. return 0;
  6123. #ifndef TOLUA_RELEASE
  6124. tolua_lerror:
  6125. tolua_error(tolua_S,"#ferror in function 'SetZoneMask'.",&tolua_err);
  6126. return 0;
  6127. #endif
  6128. }
  6129. #endif //#ifndef TOLUA_DISABLE
  6130. /* method: SetMaxLights of class Drawable */
  6131. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetMaxLights00
  6132. static int tolua_Graphics_Drawable_SetMaxLights00(lua_State* tolua_S)
  6133. {
  6134. #ifndef TOLUA_RELEASE
  6135. tolua_Error tolua_err;
  6136. if (
  6137. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6138. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6139. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6140. )
  6141. goto tolua_lerror;
  6142. else
  6143. #endif
  6144. {
  6145. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6146. unsigned num = ((unsigned) tolua_tonumber(tolua_S,2,0));
  6147. #ifndef TOLUA_RELEASE
  6148. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxLights'", NULL);
  6149. #endif
  6150. {
  6151. self->SetMaxLights(num);
  6152. }
  6153. }
  6154. return 0;
  6155. #ifndef TOLUA_RELEASE
  6156. tolua_lerror:
  6157. tolua_error(tolua_S,"#ferror in function 'SetMaxLights'.",&tolua_err);
  6158. return 0;
  6159. #endif
  6160. }
  6161. #endif //#ifndef TOLUA_DISABLE
  6162. /* method: SetCastShadows of class Drawable */
  6163. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetCastShadows00
  6164. static int tolua_Graphics_Drawable_SetCastShadows00(lua_State* tolua_S)
  6165. {
  6166. #ifndef TOLUA_RELEASE
  6167. tolua_Error tolua_err;
  6168. if (
  6169. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6170. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  6171. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6172. )
  6173. goto tolua_lerror;
  6174. else
  6175. #endif
  6176. {
  6177. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6178. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  6179. #ifndef TOLUA_RELEASE
  6180. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetCastShadows'", NULL);
  6181. #endif
  6182. {
  6183. self->SetCastShadows(enable);
  6184. }
  6185. }
  6186. return 0;
  6187. #ifndef TOLUA_RELEASE
  6188. tolua_lerror:
  6189. tolua_error(tolua_S,"#ferror in function 'SetCastShadows'.",&tolua_err);
  6190. return 0;
  6191. #endif
  6192. }
  6193. #endif //#ifndef TOLUA_DISABLE
  6194. /* method: SetOccluder of class Drawable */
  6195. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetOccluder00
  6196. static int tolua_Graphics_Drawable_SetOccluder00(lua_State* tolua_S)
  6197. {
  6198. #ifndef TOLUA_RELEASE
  6199. tolua_Error tolua_err;
  6200. if (
  6201. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6202. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  6203. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6204. )
  6205. goto tolua_lerror;
  6206. else
  6207. #endif
  6208. {
  6209. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6210. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  6211. #ifndef TOLUA_RELEASE
  6212. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOccluder'", NULL);
  6213. #endif
  6214. {
  6215. self->SetOccluder(enable);
  6216. }
  6217. }
  6218. return 0;
  6219. #ifndef TOLUA_RELEASE
  6220. tolua_lerror:
  6221. tolua_error(tolua_S,"#ferror in function 'SetOccluder'.",&tolua_err);
  6222. return 0;
  6223. #endif
  6224. }
  6225. #endif //#ifndef TOLUA_DISABLE
  6226. /* method: SetOccludee of class Drawable */
  6227. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetOccludee00
  6228. static int tolua_Graphics_Drawable_SetOccludee00(lua_State* tolua_S)
  6229. {
  6230. #ifndef TOLUA_RELEASE
  6231. tolua_Error tolua_err;
  6232. if (
  6233. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6234. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  6235. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6236. )
  6237. goto tolua_lerror;
  6238. else
  6239. #endif
  6240. {
  6241. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6242. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  6243. #ifndef TOLUA_RELEASE
  6244. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOccludee'", NULL);
  6245. #endif
  6246. {
  6247. self->SetOccludee(enable);
  6248. }
  6249. }
  6250. return 0;
  6251. #ifndef TOLUA_RELEASE
  6252. tolua_lerror:
  6253. tolua_error(tolua_S,"#ferror in function 'SetOccludee'.",&tolua_err);
  6254. return 0;
  6255. #endif
  6256. }
  6257. #endif //#ifndef TOLUA_DISABLE
  6258. /* method: MarkForUpdate of class Drawable */
  6259. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_MarkForUpdate00
  6260. static int tolua_Graphics_Drawable_MarkForUpdate00(lua_State* tolua_S)
  6261. {
  6262. #ifndef TOLUA_RELEASE
  6263. tolua_Error tolua_err;
  6264. if (
  6265. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6266. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6267. )
  6268. goto tolua_lerror;
  6269. else
  6270. #endif
  6271. {
  6272. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6273. #ifndef TOLUA_RELEASE
  6274. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'MarkForUpdate'", NULL);
  6275. #endif
  6276. {
  6277. self->MarkForUpdate();
  6278. }
  6279. }
  6280. return 0;
  6281. #ifndef TOLUA_RELEASE
  6282. tolua_lerror:
  6283. tolua_error(tolua_S,"#ferror in function 'MarkForUpdate'.",&tolua_err);
  6284. return 0;
  6285. #endif
  6286. }
  6287. #endif //#ifndef TOLUA_DISABLE
  6288. /* method: GetWorldBoundingBox of class Drawable */
  6289. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetWorldBoundingBox00
  6290. static int tolua_Graphics_Drawable_GetWorldBoundingBox00(lua_State* tolua_S)
  6291. {
  6292. #ifndef TOLUA_RELEASE
  6293. tolua_Error tolua_err;
  6294. if (
  6295. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6296. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6297. )
  6298. goto tolua_lerror;
  6299. else
  6300. #endif
  6301. {
  6302. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6303. #ifndef TOLUA_RELEASE
  6304. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWorldBoundingBox'", NULL);
  6305. #endif
  6306. {
  6307. const BoundingBox& tolua_ret = (const BoundingBox&) self->GetWorldBoundingBox();
  6308. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const BoundingBox");
  6309. }
  6310. }
  6311. return 1;
  6312. #ifndef TOLUA_RELEASE
  6313. tolua_lerror:
  6314. tolua_error(tolua_S,"#ferror in function 'GetWorldBoundingBox'.",&tolua_err);
  6315. return 0;
  6316. #endif
  6317. }
  6318. #endif //#ifndef TOLUA_DISABLE
  6319. /* method: GetDrawableFlags of class Drawable */
  6320. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetDrawableFlags00
  6321. static int tolua_Graphics_Drawable_GetDrawableFlags00(lua_State* tolua_S)
  6322. {
  6323. #ifndef TOLUA_RELEASE
  6324. tolua_Error tolua_err;
  6325. if (
  6326. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6327. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6328. )
  6329. goto tolua_lerror;
  6330. else
  6331. #endif
  6332. {
  6333. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6334. #ifndef TOLUA_RELEASE
  6335. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDrawableFlags'", NULL);
  6336. #endif
  6337. {
  6338. unsigned char tolua_ret = (unsigned char) self->GetDrawableFlags();
  6339. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6340. }
  6341. }
  6342. return 1;
  6343. #ifndef TOLUA_RELEASE
  6344. tolua_lerror:
  6345. tolua_error(tolua_S,"#ferror in function 'GetDrawableFlags'.",&tolua_err);
  6346. return 0;
  6347. #endif
  6348. }
  6349. #endif //#ifndef TOLUA_DISABLE
  6350. /* method: GetDrawDistance of class Drawable */
  6351. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetDrawDistance00
  6352. static int tolua_Graphics_Drawable_GetDrawDistance00(lua_State* tolua_S)
  6353. {
  6354. #ifndef TOLUA_RELEASE
  6355. tolua_Error tolua_err;
  6356. if (
  6357. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6358. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6359. )
  6360. goto tolua_lerror;
  6361. else
  6362. #endif
  6363. {
  6364. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6365. #ifndef TOLUA_RELEASE
  6366. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDrawDistance'", NULL);
  6367. #endif
  6368. {
  6369. float tolua_ret = (float) self->GetDrawDistance();
  6370. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6371. }
  6372. }
  6373. return 1;
  6374. #ifndef TOLUA_RELEASE
  6375. tolua_lerror:
  6376. tolua_error(tolua_S,"#ferror in function 'GetDrawDistance'.",&tolua_err);
  6377. return 0;
  6378. #endif
  6379. }
  6380. #endif //#ifndef TOLUA_DISABLE
  6381. /* method: GetShadowDistance of class Drawable */
  6382. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetShadowDistance00
  6383. static int tolua_Graphics_Drawable_GetShadowDistance00(lua_State* tolua_S)
  6384. {
  6385. #ifndef TOLUA_RELEASE
  6386. tolua_Error tolua_err;
  6387. if (
  6388. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6389. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6390. )
  6391. goto tolua_lerror;
  6392. else
  6393. #endif
  6394. {
  6395. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6396. #ifndef TOLUA_RELEASE
  6397. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowDistance'", NULL);
  6398. #endif
  6399. {
  6400. float tolua_ret = (float) self->GetShadowDistance();
  6401. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6402. }
  6403. }
  6404. return 1;
  6405. #ifndef TOLUA_RELEASE
  6406. tolua_lerror:
  6407. tolua_error(tolua_S,"#ferror in function 'GetShadowDistance'.",&tolua_err);
  6408. return 0;
  6409. #endif
  6410. }
  6411. #endif //#ifndef TOLUA_DISABLE
  6412. /* method: GetLodBias of class Drawable */
  6413. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetLodBias00
  6414. static int tolua_Graphics_Drawable_GetLodBias00(lua_State* tolua_S)
  6415. {
  6416. #ifndef TOLUA_RELEASE
  6417. tolua_Error tolua_err;
  6418. if (
  6419. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6420. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6421. )
  6422. goto tolua_lerror;
  6423. else
  6424. #endif
  6425. {
  6426. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6427. #ifndef TOLUA_RELEASE
  6428. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLodBias'", NULL);
  6429. #endif
  6430. {
  6431. float tolua_ret = (float) self->GetLodBias();
  6432. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6433. }
  6434. }
  6435. return 1;
  6436. #ifndef TOLUA_RELEASE
  6437. tolua_lerror:
  6438. tolua_error(tolua_S,"#ferror in function 'GetLodBias'.",&tolua_err);
  6439. return 0;
  6440. #endif
  6441. }
  6442. #endif //#ifndef TOLUA_DISABLE
  6443. /* method: GetViewMask of class Drawable */
  6444. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetViewMask00
  6445. static int tolua_Graphics_Drawable_GetViewMask00(lua_State* tolua_S)
  6446. {
  6447. #ifndef TOLUA_RELEASE
  6448. tolua_Error tolua_err;
  6449. if (
  6450. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6451. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6452. )
  6453. goto tolua_lerror;
  6454. else
  6455. #endif
  6456. {
  6457. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6458. #ifndef TOLUA_RELEASE
  6459. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetViewMask'", NULL);
  6460. #endif
  6461. {
  6462. unsigned tolua_ret = (unsigned) self->GetViewMask();
  6463. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6464. }
  6465. }
  6466. return 1;
  6467. #ifndef TOLUA_RELEASE
  6468. tolua_lerror:
  6469. tolua_error(tolua_S,"#ferror in function 'GetViewMask'.",&tolua_err);
  6470. return 0;
  6471. #endif
  6472. }
  6473. #endif //#ifndef TOLUA_DISABLE
  6474. /* method: GetLightMask of class Drawable */
  6475. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetLightMask00
  6476. static int tolua_Graphics_Drawable_GetLightMask00(lua_State* tolua_S)
  6477. {
  6478. #ifndef TOLUA_RELEASE
  6479. tolua_Error tolua_err;
  6480. if (
  6481. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6482. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6483. )
  6484. goto tolua_lerror;
  6485. else
  6486. #endif
  6487. {
  6488. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6489. #ifndef TOLUA_RELEASE
  6490. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLightMask'", NULL);
  6491. #endif
  6492. {
  6493. unsigned tolua_ret = (unsigned) self->GetLightMask();
  6494. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6495. }
  6496. }
  6497. return 1;
  6498. #ifndef TOLUA_RELEASE
  6499. tolua_lerror:
  6500. tolua_error(tolua_S,"#ferror in function 'GetLightMask'.",&tolua_err);
  6501. return 0;
  6502. #endif
  6503. }
  6504. #endif //#ifndef TOLUA_DISABLE
  6505. /* method: GetShadowMask of class Drawable */
  6506. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetShadowMask00
  6507. static int tolua_Graphics_Drawable_GetShadowMask00(lua_State* tolua_S)
  6508. {
  6509. #ifndef TOLUA_RELEASE
  6510. tolua_Error tolua_err;
  6511. if (
  6512. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6513. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6514. )
  6515. goto tolua_lerror;
  6516. else
  6517. #endif
  6518. {
  6519. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6520. #ifndef TOLUA_RELEASE
  6521. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowMask'", NULL);
  6522. #endif
  6523. {
  6524. unsigned tolua_ret = (unsigned) self->GetShadowMask();
  6525. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6526. }
  6527. }
  6528. return 1;
  6529. #ifndef TOLUA_RELEASE
  6530. tolua_lerror:
  6531. tolua_error(tolua_S,"#ferror in function 'GetShadowMask'.",&tolua_err);
  6532. return 0;
  6533. #endif
  6534. }
  6535. #endif //#ifndef TOLUA_DISABLE
  6536. /* method: GetZoneMask of class Drawable */
  6537. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetZoneMask00
  6538. static int tolua_Graphics_Drawable_GetZoneMask00(lua_State* tolua_S)
  6539. {
  6540. #ifndef TOLUA_RELEASE
  6541. tolua_Error tolua_err;
  6542. if (
  6543. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6544. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6545. )
  6546. goto tolua_lerror;
  6547. else
  6548. #endif
  6549. {
  6550. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6551. #ifndef TOLUA_RELEASE
  6552. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetZoneMask'", NULL);
  6553. #endif
  6554. {
  6555. unsigned tolua_ret = (unsigned) self->GetZoneMask();
  6556. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6557. }
  6558. }
  6559. return 1;
  6560. #ifndef TOLUA_RELEASE
  6561. tolua_lerror:
  6562. tolua_error(tolua_S,"#ferror in function 'GetZoneMask'.",&tolua_err);
  6563. return 0;
  6564. #endif
  6565. }
  6566. #endif //#ifndef TOLUA_DISABLE
  6567. /* method: GetMaxLights of class Drawable */
  6568. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetMaxLights00
  6569. static int tolua_Graphics_Drawable_GetMaxLights00(lua_State* tolua_S)
  6570. {
  6571. #ifndef TOLUA_RELEASE
  6572. tolua_Error tolua_err;
  6573. if (
  6574. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6575. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6576. )
  6577. goto tolua_lerror;
  6578. else
  6579. #endif
  6580. {
  6581. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6582. #ifndef TOLUA_RELEASE
  6583. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxLights'", NULL);
  6584. #endif
  6585. {
  6586. unsigned tolua_ret = (unsigned) self->GetMaxLights();
  6587. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6588. }
  6589. }
  6590. return 1;
  6591. #ifndef TOLUA_RELEASE
  6592. tolua_lerror:
  6593. tolua_error(tolua_S,"#ferror in function 'GetMaxLights'.",&tolua_err);
  6594. return 0;
  6595. #endif
  6596. }
  6597. #endif //#ifndef TOLUA_DISABLE
  6598. /* method: GetCastShadows of class Drawable */
  6599. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetCastShadows00
  6600. static int tolua_Graphics_Drawable_GetCastShadows00(lua_State* tolua_S)
  6601. {
  6602. #ifndef TOLUA_RELEASE
  6603. tolua_Error tolua_err;
  6604. if (
  6605. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6606. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6607. )
  6608. goto tolua_lerror;
  6609. else
  6610. #endif
  6611. {
  6612. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6613. #ifndef TOLUA_RELEASE
  6614. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCastShadows'", NULL);
  6615. #endif
  6616. {
  6617. bool tolua_ret = (bool) self->GetCastShadows();
  6618. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  6619. }
  6620. }
  6621. return 1;
  6622. #ifndef TOLUA_RELEASE
  6623. tolua_lerror:
  6624. tolua_error(tolua_S,"#ferror in function 'GetCastShadows'.",&tolua_err);
  6625. return 0;
  6626. #endif
  6627. }
  6628. #endif //#ifndef TOLUA_DISABLE
  6629. /* method: IsOccluder of class Drawable */
  6630. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_IsOccluder00
  6631. static int tolua_Graphics_Drawable_IsOccluder00(lua_State* tolua_S)
  6632. {
  6633. #ifndef TOLUA_RELEASE
  6634. tolua_Error tolua_err;
  6635. if (
  6636. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6637. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6638. )
  6639. goto tolua_lerror;
  6640. else
  6641. #endif
  6642. {
  6643. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6644. #ifndef TOLUA_RELEASE
  6645. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsOccluder'", NULL);
  6646. #endif
  6647. {
  6648. bool tolua_ret = (bool) self->IsOccluder();
  6649. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  6650. }
  6651. }
  6652. return 1;
  6653. #ifndef TOLUA_RELEASE
  6654. tolua_lerror:
  6655. tolua_error(tolua_S,"#ferror in function 'IsOccluder'.",&tolua_err);
  6656. return 0;
  6657. #endif
  6658. }
  6659. #endif //#ifndef TOLUA_DISABLE
  6660. /* method: IsOccludee of class Drawable */
  6661. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_IsOccludee00
  6662. static int tolua_Graphics_Drawable_IsOccludee00(lua_State* tolua_S)
  6663. {
  6664. #ifndef TOLUA_RELEASE
  6665. tolua_Error tolua_err;
  6666. if (
  6667. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6668. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6669. )
  6670. goto tolua_lerror;
  6671. else
  6672. #endif
  6673. {
  6674. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6675. #ifndef TOLUA_RELEASE
  6676. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsOccludee'", NULL);
  6677. #endif
  6678. {
  6679. bool tolua_ret = (bool) self->IsOccludee();
  6680. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  6681. }
  6682. }
  6683. return 1;
  6684. #ifndef TOLUA_RELEASE
  6685. tolua_lerror:
  6686. tolua_error(tolua_S,"#ferror in function 'IsOccludee'.",&tolua_err);
  6687. return 0;
  6688. #endif
  6689. }
  6690. #endif //#ifndef TOLUA_DISABLE
  6691. /* method: SetZone of class Drawable */
  6692. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetZone00
  6693. static int tolua_Graphics_Drawable_SetZone00(lua_State* tolua_S)
  6694. {
  6695. #ifndef TOLUA_RELEASE
  6696. tolua_Error tolua_err;
  6697. if (
  6698. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6699. !tolua_isusertype(tolua_S,2,"Zone",0,&tolua_err) ||
  6700. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  6701. !tolua_isnoobj(tolua_S,4,&tolua_err)
  6702. )
  6703. goto tolua_lerror;
  6704. else
  6705. #endif
  6706. {
  6707. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6708. Zone* zone = ((Zone*) tolua_tousertype(tolua_S,2,0));
  6709. bool temporary = ((bool) tolua_toboolean(tolua_S,3,false));
  6710. #ifndef TOLUA_RELEASE
  6711. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetZone'", NULL);
  6712. #endif
  6713. {
  6714. self->SetZone(zone,temporary);
  6715. }
  6716. }
  6717. return 0;
  6718. #ifndef TOLUA_RELEASE
  6719. tolua_lerror:
  6720. tolua_error(tolua_S,"#ferror in function 'SetZone'.",&tolua_err);
  6721. return 0;
  6722. #endif
  6723. }
  6724. #endif //#ifndef TOLUA_DISABLE
  6725. /* method: SetSortValue of class Drawable */
  6726. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetSortValue00
  6727. static int tolua_Graphics_Drawable_SetSortValue00(lua_State* tolua_S)
  6728. {
  6729. #ifndef TOLUA_RELEASE
  6730. tolua_Error tolua_err;
  6731. if (
  6732. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6733. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6734. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6735. )
  6736. goto tolua_lerror;
  6737. else
  6738. #endif
  6739. {
  6740. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6741. float value = ((float) tolua_tonumber(tolua_S,2,0));
  6742. #ifndef TOLUA_RELEASE
  6743. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSortValue'", NULL);
  6744. #endif
  6745. {
  6746. self->SetSortValue(value);
  6747. }
  6748. }
  6749. return 0;
  6750. #ifndef TOLUA_RELEASE
  6751. tolua_lerror:
  6752. tolua_error(tolua_S,"#ferror in function 'SetSortValue'.",&tolua_err);
  6753. return 0;
  6754. #endif
  6755. }
  6756. #endif //#ifndef TOLUA_DISABLE
  6757. /* method: SetMinMaxZ of class Drawable */
  6758. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetMinMaxZ00
  6759. static int tolua_Graphics_Drawable_SetMinMaxZ00(lua_State* tolua_S)
  6760. {
  6761. #ifndef TOLUA_RELEASE
  6762. tolua_Error tolua_err;
  6763. if (
  6764. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6765. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6766. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  6767. !tolua_isnoobj(tolua_S,4,&tolua_err)
  6768. )
  6769. goto tolua_lerror;
  6770. else
  6771. #endif
  6772. {
  6773. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6774. float minZ = ((float) tolua_tonumber(tolua_S,2,0));
  6775. float maxZ = ((float) tolua_tonumber(tolua_S,3,0));
  6776. #ifndef TOLUA_RELEASE
  6777. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinMaxZ'", NULL);
  6778. #endif
  6779. {
  6780. self->SetMinMaxZ(minZ,maxZ);
  6781. }
  6782. }
  6783. return 0;
  6784. #ifndef TOLUA_RELEASE
  6785. tolua_lerror:
  6786. tolua_error(tolua_S,"#ferror in function 'SetMinMaxZ'.",&tolua_err);
  6787. return 0;
  6788. #endif
  6789. }
  6790. #endif //#ifndef TOLUA_DISABLE
  6791. /* method: MarkInView of class Drawable */
  6792. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_MarkInView00
  6793. static int tolua_Graphics_Drawable_MarkInView00(lua_State* tolua_S)
  6794. {
  6795. #ifndef TOLUA_RELEASE
  6796. tolua_Error tolua_err;
  6797. if (
  6798. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6799. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const FrameInfo",0,&tolua_err)) ||
  6800. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  6801. !tolua_isnoobj(tolua_S,4,&tolua_err)
  6802. )
  6803. goto tolua_lerror;
  6804. else
  6805. #endif
  6806. {
  6807. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6808. const FrameInfo* frame = ((const FrameInfo*) tolua_tousertype(tolua_S,2,0));
  6809. bool mainView = ((bool) tolua_toboolean(tolua_S,3,true));
  6810. #ifndef TOLUA_RELEASE
  6811. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'MarkInView'", NULL);
  6812. #endif
  6813. {
  6814. self->MarkInView(*frame,mainView);
  6815. }
  6816. }
  6817. return 0;
  6818. #ifndef TOLUA_RELEASE
  6819. tolua_lerror:
  6820. tolua_error(tolua_S,"#ferror in function 'MarkInView'.",&tolua_err);
  6821. return 0;
  6822. #endif
  6823. }
  6824. #endif //#ifndef TOLUA_DISABLE
  6825. /* method: ClearLights of class Drawable */
  6826. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_ClearLights00
  6827. static int tolua_Graphics_Drawable_ClearLights00(lua_State* tolua_S)
  6828. {
  6829. #ifndef TOLUA_RELEASE
  6830. tolua_Error tolua_err;
  6831. if (
  6832. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6833. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6834. )
  6835. goto tolua_lerror;
  6836. else
  6837. #endif
  6838. {
  6839. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6840. #ifndef TOLUA_RELEASE
  6841. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ClearLights'", NULL);
  6842. #endif
  6843. {
  6844. self->ClearLights();
  6845. }
  6846. }
  6847. return 0;
  6848. #ifndef TOLUA_RELEASE
  6849. tolua_lerror:
  6850. tolua_error(tolua_S,"#ferror in function 'ClearLights'.",&tolua_err);
  6851. return 0;
  6852. #endif
  6853. }
  6854. #endif //#ifndef TOLUA_DISABLE
  6855. /* method: AddLight of class Drawable */
  6856. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_AddLight00
  6857. static int tolua_Graphics_Drawable_AddLight00(lua_State* tolua_S)
  6858. {
  6859. #ifndef TOLUA_RELEASE
  6860. tolua_Error tolua_err;
  6861. if (
  6862. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6863. !tolua_isusertype(tolua_S,2,"Light",0,&tolua_err) ||
  6864. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6865. )
  6866. goto tolua_lerror;
  6867. else
  6868. #endif
  6869. {
  6870. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6871. Light* light = ((Light*) tolua_tousertype(tolua_S,2,0));
  6872. #ifndef TOLUA_RELEASE
  6873. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddLight'", NULL);
  6874. #endif
  6875. {
  6876. self->AddLight(light);
  6877. }
  6878. }
  6879. return 0;
  6880. #ifndef TOLUA_RELEASE
  6881. tolua_lerror:
  6882. tolua_error(tolua_S,"#ferror in function 'AddLight'.",&tolua_err);
  6883. return 0;
  6884. #endif
  6885. }
  6886. #endif //#ifndef TOLUA_DISABLE
  6887. /* method: AddVertexLight of class Drawable */
  6888. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_AddVertexLight00
  6889. static int tolua_Graphics_Drawable_AddVertexLight00(lua_State* tolua_S)
  6890. {
  6891. #ifndef TOLUA_RELEASE
  6892. tolua_Error tolua_err;
  6893. if (
  6894. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6895. !tolua_isusertype(tolua_S,2,"Light",0,&tolua_err) ||
  6896. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6897. )
  6898. goto tolua_lerror;
  6899. else
  6900. #endif
  6901. {
  6902. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6903. Light* light = ((Light*) tolua_tousertype(tolua_S,2,0));
  6904. #ifndef TOLUA_RELEASE
  6905. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddVertexLight'", NULL);
  6906. #endif
  6907. {
  6908. self->AddVertexLight(light);
  6909. }
  6910. }
  6911. return 0;
  6912. #ifndef TOLUA_RELEASE
  6913. tolua_lerror:
  6914. tolua_error(tolua_S,"#ferror in function 'AddVertexLight'.",&tolua_err);
  6915. return 0;
  6916. #endif
  6917. }
  6918. #endif //#ifndef TOLUA_DISABLE
  6919. /* method: LimitLights of class Drawable */
  6920. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_LimitLights00
  6921. static int tolua_Graphics_Drawable_LimitLights00(lua_State* tolua_S)
  6922. {
  6923. #ifndef TOLUA_RELEASE
  6924. tolua_Error tolua_err;
  6925. if (
  6926. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6927. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6928. )
  6929. goto tolua_lerror;
  6930. else
  6931. #endif
  6932. {
  6933. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6934. #ifndef TOLUA_RELEASE
  6935. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'LimitLights'", NULL);
  6936. #endif
  6937. {
  6938. self->LimitLights();
  6939. }
  6940. }
  6941. return 0;
  6942. #ifndef TOLUA_RELEASE
  6943. tolua_lerror:
  6944. tolua_error(tolua_S,"#ferror in function 'LimitLights'.",&tolua_err);
  6945. return 0;
  6946. #endif
  6947. }
  6948. #endif //#ifndef TOLUA_DISABLE
  6949. /* method: LimitVertexLights of class Drawable */
  6950. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_LimitVertexLights00
  6951. static int tolua_Graphics_Drawable_LimitVertexLights00(lua_State* tolua_S)
  6952. {
  6953. #ifndef TOLUA_RELEASE
  6954. tolua_Error tolua_err;
  6955. if (
  6956. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6957. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6958. )
  6959. goto tolua_lerror;
  6960. else
  6961. #endif
  6962. {
  6963. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6964. #ifndef TOLUA_RELEASE
  6965. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'LimitVertexLights'", NULL);
  6966. #endif
  6967. {
  6968. self->LimitVertexLights();
  6969. }
  6970. }
  6971. return 0;
  6972. #ifndef TOLUA_RELEASE
  6973. tolua_lerror:
  6974. tolua_error(tolua_S,"#ferror in function 'LimitVertexLights'.",&tolua_err);
  6975. return 0;
  6976. #endif
  6977. }
  6978. #endif //#ifndef TOLUA_DISABLE
  6979. /* method: SetBasePass of class Drawable */
  6980. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetBasePass00
  6981. static int tolua_Graphics_Drawable_SetBasePass00(lua_State* tolua_S)
  6982. {
  6983. #ifndef TOLUA_RELEASE
  6984. tolua_Error tolua_err;
  6985. if (
  6986. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6987. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6988. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6989. )
  6990. goto tolua_lerror;
  6991. else
  6992. #endif
  6993. {
  6994. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6995. unsigned batchIndex = ((unsigned) tolua_tonumber(tolua_S,2,0));
  6996. #ifndef TOLUA_RELEASE
  6997. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetBasePass'", NULL);
  6998. #endif
  6999. {
  7000. self->SetBasePass(batchIndex);
  7001. }
  7002. }
  7003. return 0;
  7004. #ifndef TOLUA_RELEASE
  7005. tolua_lerror:
  7006. tolua_error(tolua_S,"#ferror in function 'SetBasePass'.",&tolua_err);
  7007. return 0;
  7008. #endif
  7009. }
  7010. #endif //#ifndef TOLUA_DISABLE
  7011. /* method: GetOctant of class Drawable */
  7012. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetOctant00
  7013. static int tolua_Graphics_Drawable_GetOctant00(lua_State* tolua_S)
  7014. {
  7015. #ifndef TOLUA_RELEASE
  7016. tolua_Error tolua_err;
  7017. if (
  7018. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  7019. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7020. )
  7021. goto tolua_lerror;
  7022. else
  7023. #endif
  7024. {
  7025. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  7026. #ifndef TOLUA_RELEASE
  7027. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOctant'", NULL);
  7028. #endif
  7029. {
  7030. Octant* tolua_ret = (Octant*) self->GetOctant();
  7031. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Octant");
  7032. }
  7033. }
  7034. return 1;
  7035. #ifndef TOLUA_RELEASE
  7036. tolua_lerror:
  7037. tolua_error(tolua_S,"#ferror in function 'GetOctant'.",&tolua_err);
  7038. return 0;
  7039. #endif
  7040. }
  7041. #endif //#ifndef TOLUA_DISABLE
  7042. /* method: GetZone of class Drawable */
  7043. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetZone00
  7044. static int tolua_Graphics_Drawable_GetZone00(lua_State* tolua_S)
  7045. {
  7046. #ifndef TOLUA_RELEASE
  7047. tolua_Error tolua_err;
  7048. if (
  7049. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  7050. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7051. )
  7052. goto tolua_lerror;
  7053. else
  7054. #endif
  7055. {
  7056. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  7057. #ifndef TOLUA_RELEASE
  7058. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetZone'", NULL);
  7059. #endif
  7060. {
  7061. Zone* tolua_ret = (Zone*) self->GetZone();
  7062. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Zone");
  7063. }
  7064. }
  7065. return 1;
  7066. #ifndef TOLUA_RELEASE
  7067. tolua_lerror:
  7068. tolua_error(tolua_S,"#ferror in function 'GetZone'.",&tolua_err);
  7069. return 0;
  7070. #endif
  7071. }
  7072. #endif //#ifndef TOLUA_DISABLE
  7073. /* method: GetLastZone of class Drawable */
  7074. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetLastZone00
  7075. static int tolua_Graphics_Drawable_GetLastZone00(lua_State* tolua_S)
  7076. {
  7077. #ifndef TOLUA_RELEASE
  7078. tolua_Error tolua_err;
  7079. if (
  7080. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  7081. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7082. )
  7083. goto tolua_lerror;
  7084. else
  7085. #endif
  7086. {
  7087. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  7088. #ifndef TOLUA_RELEASE
  7089. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLastZone'", NULL);
  7090. #endif
  7091. {
  7092. Zone* tolua_ret = (Zone*) self->GetLastZone();
  7093. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Zone");
  7094. }
  7095. }
  7096. return 1;
  7097. #ifndef TOLUA_RELEASE
  7098. tolua_lerror:
  7099. tolua_error(tolua_S,"#ferror in function 'GetLastZone'.",&tolua_err);
  7100. return 0;
  7101. #endif
  7102. }
  7103. #endif //#ifndef TOLUA_DISABLE
  7104. /* method: IsZoneDirty of class Drawable */
  7105. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_IsZoneDirty00
  7106. static int tolua_Graphics_Drawable_IsZoneDirty00(lua_State* tolua_S)
  7107. {
  7108. #ifndef TOLUA_RELEASE
  7109. tolua_Error tolua_err;
  7110. if (
  7111. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  7112. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7113. )
  7114. goto tolua_lerror;
  7115. else
  7116. #endif
  7117. {
  7118. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  7119. #ifndef TOLUA_RELEASE
  7120. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsZoneDirty'", NULL);
  7121. #endif
  7122. {
  7123. bool tolua_ret = (bool) self->IsZoneDirty();
  7124. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7125. }
  7126. }
  7127. return 1;
  7128. #ifndef TOLUA_RELEASE
  7129. tolua_lerror:
  7130. tolua_error(tolua_S,"#ferror in function 'IsZoneDirty'.",&tolua_err);
  7131. return 0;
  7132. #endif
  7133. }
  7134. #endif //#ifndef TOLUA_DISABLE
  7135. /* method: GetDistance of class Drawable */
  7136. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetDistance00
  7137. static int tolua_Graphics_Drawable_GetDistance00(lua_State* tolua_S)
  7138. {
  7139. #ifndef TOLUA_RELEASE
  7140. tolua_Error tolua_err;
  7141. if (
  7142. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  7143. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7144. )
  7145. goto tolua_lerror;
  7146. else
  7147. #endif
  7148. {
  7149. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  7150. #ifndef TOLUA_RELEASE
  7151. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDistance'", NULL);
  7152. #endif
  7153. {
  7154. float tolua_ret = (float) self->GetDistance();
  7155. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7156. }
  7157. }
  7158. return 1;
  7159. #ifndef TOLUA_RELEASE
  7160. tolua_lerror:
  7161. tolua_error(tolua_S,"#ferror in function 'GetDistance'.",&tolua_err);
  7162. return 0;
  7163. #endif
  7164. }
  7165. #endif //#ifndef TOLUA_DISABLE
  7166. /* method: GetLodDistance of class Drawable */
  7167. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetLodDistance00
  7168. static int tolua_Graphics_Drawable_GetLodDistance00(lua_State* tolua_S)
  7169. {
  7170. #ifndef TOLUA_RELEASE
  7171. tolua_Error tolua_err;
  7172. if (
  7173. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  7174. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7175. )
  7176. goto tolua_lerror;
  7177. else
  7178. #endif
  7179. {
  7180. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  7181. #ifndef TOLUA_RELEASE
  7182. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLodDistance'", NULL);
  7183. #endif
  7184. {
  7185. float tolua_ret = (float) self->GetLodDistance();
  7186. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7187. }
  7188. }
  7189. return 1;
  7190. #ifndef TOLUA_RELEASE
  7191. tolua_lerror:
  7192. tolua_error(tolua_S,"#ferror in function 'GetLodDistance'.",&tolua_err);
  7193. return 0;
  7194. #endif
  7195. }
  7196. #endif //#ifndef TOLUA_DISABLE
  7197. /* method: GetSortValue of class Drawable */
  7198. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetSortValue00
  7199. static int tolua_Graphics_Drawable_GetSortValue00(lua_State* tolua_S)
  7200. {
  7201. #ifndef TOLUA_RELEASE
  7202. tolua_Error tolua_err;
  7203. if (
  7204. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  7205. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7206. )
  7207. goto tolua_lerror;
  7208. else
  7209. #endif
  7210. {
  7211. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  7212. #ifndef TOLUA_RELEASE
  7213. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSortValue'", NULL);
  7214. #endif
  7215. {
  7216. float tolua_ret = (float) self->GetSortValue();
  7217. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7218. }
  7219. }
  7220. return 1;
  7221. #ifndef TOLUA_RELEASE
  7222. tolua_lerror:
  7223. tolua_error(tolua_S,"#ferror in function 'GetSortValue'.",&tolua_err);
  7224. return 0;
  7225. #endif
  7226. }
  7227. #endif //#ifndef TOLUA_DISABLE
  7228. /* method: IsInView of class Drawable */
  7229. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_IsInView00
  7230. static int tolua_Graphics_Drawable_IsInView00(lua_State* tolua_S)
  7231. {
  7232. #ifndef TOLUA_RELEASE
  7233. tolua_Error tolua_err;
  7234. if (
  7235. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  7236. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7237. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7238. )
  7239. goto tolua_lerror;
  7240. else
  7241. #endif
  7242. {
  7243. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  7244. unsigned frameNumber = ((unsigned) tolua_tonumber(tolua_S,2,0));
  7245. #ifndef TOLUA_RELEASE
  7246. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsInView'", NULL);
  7247. #endif
  7248. {
  7249. bool tolua_ret = (bool) self->IsInView(frameNumber);
  7250. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7251. }
  7252. }
  7253. return 1;
  7254. #ifndef TOLUA_RELEASE
  7255. tolua_lerror:
  7256. tolua_error(tolua_S,"#ferror in function 'IsInView'.",&tolua_err);
  7257. return 0;
  7258. #endif
  7259. }
  7260. #endif //#ifndef TOLUA_DISABLE
  7261. /* method: IsInView of class Drawable */
  7262. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_IsInView01
  7263. static int tolua_Graphics_Drawable_IsInView01(lua_State* tolua_S)
  7264. {
  7265. tolua_Error tolua_err;
  7266. if (
  7267. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  7268. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const FrameInfo",0,&tolua_err)) ||
  7269. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  7270. !tolua_isnoobj(tolua_S,4,&tolua_err)
  7271. )
  7272. goto tolua_lerror;
  7273. else
  7274. {
  7275. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  7276. const FrameInfo* frame = ((const FrameInfo*) tolua_tousertype(tolua_S,2,0));
  7277. bool mainView = ((bool) tolua_toboolean(tolua_S,3,true));
  7278. #ifndef TOLUA_RELEASE
  7279. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsInView'", NULL);
  7280. #endif
  7281. {
  7282. bool tolua_ret = (bool) self->IsInView(*frame,mainView);
  7283. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7284. }
  7285. }
  7286. return 1;
  7287. tolua_lerror:
  7288. return tolua_Graphics_Drawable_IsInView00(tolua_S);
  7289. }
  7290. #endif //#ifndef TOLUA_DISABLE
  7291. /* method: HasBasePass of class Drawable */
  7292. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_HasBasePass00
  7293. static int tolua_Graphics_Drawable_HasBasePass00(lua_State* tolua_S)
  7294. {
  7295. #ifndef TOLUA_RELEASE
  7296. tolua_Error tolua_err;
  7297. if (
  7298. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  7299. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7300. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7301. )
  7302. goto tolua_lerror;
  7303. else
  7304. #endif
  7305. {
  7306. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  7307. unsigned batchIndex = ((unsigned) tolua_tonumber(tolua_S,2,0));
  7308. #ifndef TOLUA_RELEASE
  7309. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'HasBasePass'", NULL);
  7310. #endif
  7311. {
  7312. bool tolua_ret = (bool) self->HasBasePass(batchIndex);
  7313. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7314. }
  7315. }
  7316. return 1;
  7317. #ifndef TOLUA_RELEASE
  7318. tolua_lerror:
  7319. tolua_error(tolua_S,"#ferror in function 'HasBasePass'.",&tolua_err);
  7320. return 0;
  7321. #endif
  7322. }
  7323. #endif //#ifndef TOLUA_DISABLE
  7324. /* method: GetFirstLight of class Drawable */
  7325. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetFirstLight00
  7326. static int tolua_Graphics_Drawable_GetFirstLight00(lua_State* tolua_S)
  7327. {
  7328. #ifndef TOLUA_RELEASE
  7329. tolua_Error tolua_err;
  7330. if (
  7331. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  7332. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7333. )
  7334. goto tolua_lerror;
  7335. else
  7336. #endif
  7337. {
  7338. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  7339. #ifndef TOLUA_RELEASE
  7340. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFirstLight'", NULL);
  7341. #endif
  7342. {
  7343. Light* tolua_ret = (Light*) self->GetFirstLight();
  7344. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Light");
  7345. }
  7346. }
  7347. return 1;
  7348. #ifndef TOLUA_RELEASE
  7349. tolua_lerror:
  7350. tolua_error(tolua_S,"#ferror in function 'GetFirstLight'.",&tolua_err);
  7351. return 0;
  7352. #endif
  7353. }
  7354. #endif //#ifndef TOLUA_DISABLE
  7355. /* method: GetMinZ of class Drawable */
  7356. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetMinZ00
  7357. static int tolua_Graphics_Drawable_GetMinZ00(lua_State* tolua_S)
  7358. {
  7359. #ifndef TOLUA_RELEASE
  7360. tolua_Error tolua_err;
  7361. if (
  7362. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  7363. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7364. )
  7365. goto tolua_lerror;
  7366. else
  7367. #endif
  7368. {
  7369. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  7370. #ifndef TOLUA_RELEASE
  7371. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinZ'", NULL);
  7372. #endif
  7373. {
  7374. float tolua_ret = (float) self->GetMinZ();
  7375. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7376. }
  7377. }
  7378. return 1;
  7379. #ifndef TOLUA_RELEASE
  7380. tolua_lerror:
  7381. tolua_error(tolua_S,"#ferror in function 'GetMinZ'.",&tolua_err);
  7382. return 0;
  7383. #endif
  7384. }
  7385. #endif //#ifndef TOLUA_DISABLE
  7386. /* method: GetMaxZ of class Drawable */
  7387. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetMaxZ00
  7388. static int tolua_Graphics_Drawable_GetMaxZ00(lua_State* tolua_S)
  7389. {
  7390. #ifndef TOLUA_RELEASE
  7391. tolua_Error tolua_err;
  7392. if (
  7393. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  7394. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7395. )
  7396. goto tolua_lerror;
  7397. else
  7398. #endif
  7399. {
  7400. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  7401. #ifndef TOLUA_RELEASE
  7402. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxZ'", NULL);
  7403. #endif
  7404. {
  7405. float tolua_ret = (float) self->GetMaxZ();
  7406. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7407. }
  7408. }
  7409. return 1;
  7410. #ifndef TOLUA_RELEASE
  7411. tolua_lerror:
  7412. tolua_error(tolua_S,"#ferror in function 'GetMaxZ'.",&tolua_err);
  7413. return 0;
  7414. #endif
  7415. }
  7416. #endif //#ifndef TOLUA_DISABLE
  7417. /* method: SetWindowTitle of class Graphics */
  7418. #ifndef TOLUA_DISABLE_tolua_Graphics_Graphics_SetWindowTitle00
  7419. static int tolua_Graphics_Graphics_SetWindowTitle00(lua_State* tolua_S)
  7420. {
  7421. #ifndef TOLUA_RELEASE
  7422. tolua_Error tolua_err;
  7423. if (
  7424. !tolua_isusertype(tolua_S,1,"Graphics",0,&tolua_err) ||
  7425. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  7426. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7427. )
  7428. goto tolua_lerror;
  7429. else
  7430. #endif
  7431. {
  7432. Graphics* self = (Graphics*) tolua_tousertype(tolua_S,1,0);
  7433. const char* windowTitle = ((const char*) tolua_tostring(tolua_S,2,0));
  7434. #ifndef TOLUA_RELEASE
  7435. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetWindowTitle'", NULL);
  7436. #endif
  7437. {
  7438. self->SetWindowTitle(windowTitle);
  7439. }
  7440. }
  7441. return 0;
  7442. #ifndef TOLUA_RELEASE
  7443. tolua_lerror:
  7444. tolua_error(tolua_S,"#ferror in function 'SetWindowTitle'.",&tolua_err);
  7445. return 0;
  7446. #endif
  7447. }
  7448. #endif //#ifndef TOLUA_DISABLE
  7449. /* method: SetSRGB of class Graphics */
  7450. #ifndef TOLUA_DISABLE_tolua_Graphics_Graphics_SetSRGB00
  7451. static int tolua_Graphics_Graphics_SetSRGB00(lua_State* tolua_S)
  7452. {
  7453. #ifndef TOLUA_RELEASE
  7454. tolua_Error tolua_err;
  7455. if (
  7456. !tolua_isusertype(tolua_S,1,"Graphics",0,&tolua_err) ||
  7457. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  7458. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7459. )
  7460. goto tolua_lerror;
  7461. else
  7462. #endif
  7463. {
  7464. Graphics* self = (Graphics*) tolua_tousertype(tolua_S,1,0);
  7465. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  7466. #ifndef TOLUA_RELEASE
  7467. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSRGB'", NULL);
  7468. #endif
  7469. {
  7470. self->SetSRGB(enable);
  7471. }
  7472. }
  7473. return 0;
  7474. #ifndef TOLUA_RELEASE
  7475. tolua_lerror:
  7476. tolua_error(tolua_S,"#ferror in function 'SetSRGB'.",&tolua_err);
  7477. return 0;
  7478. #endif
  7479. }
  7480. #endif //#ifndef TOLUA_DISABLE
  7481. /* method: ToggleFullscreen of class Graphics */
  7482. #ifndef TOLUA_DISABLE_tolua_Graphics_Graphics_ToggleFullscreen00
  7483. static int tolua_Graphics_Graphics_ToggleFullscreen00(lua_State* tolua_S)
  7484. {
  7485. #ifndef TOLUA_RELEASE
  7486. tolua_Error tolua_err;
  7487. if (
  7488. !tolua_isusertype(tolua_S,1,"Graphics",0,&tolua_err) ||
  7489. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7490. )
  7491. goto tolua_lerror;
  7492. else
  7493. #endif
  7494. {
  7495. Graphics* self = (Graphics*) tolua_tousertype(tolua_S,1,0);
  7496. #ifndef TOLUA_RELEASE
  7497. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ToggleFullscreen'", NULL);
  7498. #endif
  7499. {
  7500. bool tolua_ret = (bool) self->ToggleFullscreen();
  7501. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7502. }
  7503. }
  7504. return 1;
  7505. #ifndef TOLUA_RELEASE
  7506. tolua_lerror:
  7507. tolua_error(tolua_S,"#ferror in function 'ToggleFullscreen'.",&tolua_err);
  7508. return 0;
  7509. #endif
  7510. }
  7511. #endif //#ifndef TOLUA_DISABLE
  7512. /* method: TakeScreenShot of class Graphics */
  7513. #ifndef TOLUA_DISABLE_tolua_Graphics_Graphics_TakeScreenShot00
  7514. static int tolua_Graphics_Graphics_TakeScreenShot00(lua_State* tolua_S)
  7515. {
  7516. #ifndef TOLUA_RELEASE
  7517. tolua_Error tolua_err;
  7518. if (
  7519. !tolua_isusertype(tolua_S,1,"Graphics",0,&tolua_err) ||
  7520. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Image",0,&tolua_err)) ||
  7521. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7522. )
  7523. goto tolua_lerror;
  7524. else
  7525. #endif
  7526. {
  7527. Graphics* self = (Graphics*) tolua_tousertype(tolua_S,1,0);
  7528. Image* destImage = ((Image*) tolua_tousertype(tolua_S,2,0));
  7529. #ifndef TOLUA_RELEASE
  7530. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'TakeScreenShot'", NULL);
  7531. #endif
  7532. {
  7533. bool tolua_ret = (bool) self->TakeScreenShot(*destImage);
  7534. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7535. }
  7536. }
  7537. return 1;
  7538. #ifndef TOLUA_RELEASE
  7539. tolua_lerror:
  7540. tolua_error(tolua_S,"#ferror in function 'TakeScreenShot'.",&tolua_err);
  7541. return 0;
  7542. #endif
  7543. }
  7544. #endif //#ifndef TOLUA_DISABLE
  7545. /* method: IsInitialized of class Graphics */
  7546. #ifndef TOLUA_DISABLE_tolua_Graphics_Graphics_IsInitialized00
  7547. static int tolua_Graphics_Graphics_IsInitialized00(lua_State* tolua_S)
  7548. {
  7549. #ifndef TOLUA_RELEASE
  7550. tolua_Error tolua_err;
  7551. if (
  7552. !tolua_isusertype(tolua_S,1,"const Graphics",0,&tolua_err) ||
  7553. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7554. )
  7555. goto tolua_lerror;
  7556. else
  7557. #endif
  7558. {
  7559. const Graphics* self = (const Graphics*) tolua_tousertype(tolua_S,1,0);
  7560. #ifndef TOLUA_RELEASE
  7561. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsInitialized'", NULL);
  7562. #endif
  7563. {
  7564. bool tolua_ret = (bool) self->IsInitialized();
  7565. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7566. }
  7567. }
  7568. return 1;
  7569. #ifndef TOLUA_RELEASE
  7570. tolua_lerror:
  7571. tolua_error(tolua_S,"#ferror in function 'IsInitialized'.",&tolua_err);
  7572. return 0;
  7573. #endif
  7574. }
  7575. #endif //#ifndef TOLUA_DISABLE
  7576. /* method: GetWidth of class Graphics */
  7577. #ifndef TOLUA_DISABLE_tolua_Graphics_Graphics_GetWidth00
  7578. static int tolua_Graphics_Graphics_GetWidth00(lua_State* tolua_S)
  7579. {
  7580. #ifndef TOLUA_RELEASE
  7581. tolua_Error tolua_err;
  7582. if (
  7583. !tolua_isusertype(tolua_S,1,"const Graphics",0,&tolua_err) ||
  7584. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7585. )
  7586. goto tolua_lerror;
  7587. else
  7588. #endif
  7589. {
  7590. const Graphics* self = (const Graphics*) tolua_tousertype(tolua_S,1,0);
  7591. #ifndef TOLUA_RELEASE
  7592. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWidth'", NULL);
  7593. #endif
  7594. {
  7595. int tolua_ret = (int) self->GetWidth();
  7596. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7597. }
  7598. }
  7599. return 1;
  7600. #ifndef TOLUA_RELEASE
  7601. tolua_lerror:
  7602. tolua_error(tolua_S,"#ferror in function 'GetWidth'.",&tolua_err);
  7603. return 0;
  7604. #endif
  7605. }
  7606. #endif //#ifndef TOLUA_DISABLE
  7607. /* method: GetHeight of class Graphics */
  7608. #ifndef TOLUA_DISABLE_tolua_Graphics_Graphics_GetHeight00
  7609. static int tolua_Graphics_Graphics_GetHeight00(lua_State* tolua_S)
  7610. {
  7611. #ifndef TOLUA_RELEASE
  7612. tolua_Error tolua_err;
  7613. if (
  7614. !tolua_isusertype(tolua_S,1,"const Graphics",0,&tolua_err) ||
  7615. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7616. )
  7617. goto tolua_lerror;
  7618. else
  7619. #endif
  7620. {
  7621. const Graphics* self = (const Graphics*) tolua_tousertype(tolua_S,1,0);
  7622. #ifndef TOLUA_RELEASE
  7623. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHeight'", NULL);
  7624. #endif
  7625. {
  7626. int tolua_ret = (int) self->GetHeight();
  7627. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7628. }
  7629. }
  7630. return 1;
  7631. #ifndef TOLUA_RELEASE
  7632. tolua_lerror:
  7633. tolua_error(tolua_S,"#ferror in function 'GetHeight'.",&tolua_err);
  7634. return 0;
  7635. #endif
  7636. }
  7637. #endif //#ifndef TOLUA_DISABLE
  7638. /* method: GetMultiSample of class Graphics */
  7639. #ifndef TOLUA_DISABLE_tolua_Graphics_Graphics_GetMultiSample00
  7640. static int tolua_Graphics_Graphics_GetMultiSample00(lua_State* tolua_S)
  7641. {
  7642. #ifndef TOLUA_RELEASE
  7643. tolua_Error tolua_err;
  7644. if (
  7645. !tolua_isusertype(tolua_S,1,"const Graphics",0,&tolua_err) ||
  7646. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7647. )
  7648. goto tolua_lerror;
  7649. else
  7650. #endif
  7651. {
  7652. const Graphics* self = (const Graphics*) tolua_tousertype(tolua_S,1,0);
  7653. #ifndef TOLUA_RELEASE
  7654. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMultiSample'", NULL);
  7655. #endif
  7656. {
  7657. int tolua_ret = (int) self->GetMultiSample();
  7658. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7659. }
  7660. }
  7661. return 1;
  7662. #ifndef TOLUA_RELEASE
  7663. tolua_lerror:
  7664. tolua_error(tolua_S,"#ferror in function 'GetMultiSample'.",&tolua_err);
  7665. return 0;
  7666. #endif
  7667. }
  7668. #endif //#ifndef TOLUA_DISABLE
  7669. /* method: GetFullscreen of class Graphics */
  7670. #ifndef TOLUA_DISABLE_tolua_Graphics_Graphics_GetFullscreen00
  7671. static int tolua_Graphics_Graphics_GetFullscreen00(lua_State* tolua_S)
  7672. {
  7673. #ifndef TOLUA_RELEASE
  7674. tolua_Error tolua_err;
  7675. if (
  7676. !tolua_isusertype(tolua_S,1,"const Graphics",0,&tolua_err) ||
  7677. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7678. )
  7679. goto tolua_lerror;
  7680. else
  7681. #endif
  7682. {
  7683. const Graphics* self = (const Graphics*) tolua_tousertype(tolua_S,1,0);
  7684. #ifndef TOLUA_RELEASE
  7685. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFullscreen'", NULL);
  7686. #endif
  7687. {
  7688. bool tolua_ret = (bool) self->GetFullscreen();
  7689. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7690. }
  7691. }
  7692. return 1;
  7693. #ifndef TOLUA_RELEASE
  7694. tolua_lerror:
  7695. tolua_error(tolua_S,"#ferror in function 'GetFullscreen'.",&tolua_err);
  7696. return 0;
  7697. #endif
  7698. }
  7699. #endif //#ifndef TOLUA_DISABLE
  7700. /* method: GetResizable of class Graphics */
  7701. #ifndef TOLUA_DISABLE_tolua_Graphics_Graphics_GetResizable00
  7702. static int tolua_Graphics_Graphics_GetResizable00(lua_State* tolua_S)
  7703. {
  7704. #ifndef TOLUA_RELEASE
  7705. tolua_Error tolua_err;
  7706. if (
  7707. !tolua_isusertype(tolua_S,1,"const Graphics",0,&tolua_err) ||
  7708. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7709. )
  7710. goto tolua_lerror;
  7711. else
  7712. #endif
  7713. {
  7714. const Graphics* self = (const Graphics*) tolua_tousertype(tolua_S,1,0);
  7715. #ifndef TOLUA_RELEASE
  7716. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetResizable'", NULL);
  7717. #endif
  7718. {
  7719. bool tolua_ret = (bool) self->GetResizable();
  7720. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7721. }
  7722. }
  7723. return 1;
  7724. #ifndef TOLUA_RELEASE
  7725. tolua_lerror:
  7726. tolua_error(tolua_S,"#ferror in function 'GetResizable'.",&tolua_err);
  7727. return 0;
  7728. #endif
  7729. }
  7730. #endif //#ifndef TOLUA_DISABLE
  7731. /* method: GetVSync of class Graphics */
  7732. #ifndef TOLUA_DISABLE_tolua_Graphics_Graphics_GetVSync00
  7733. static int tolua_Graphics_Graphics_GetVSync00(lua_State* tolua_S)
  7734. {
  7735. #ifndef TOLUA_RELEASE
  7736. tolua_Error tolua_err;
  7737. if (
  7738. !tolua_isusertype(tolua_S,1,"const Graphics",0,&tolua_err) ||
  7739. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7740. )
  7741. goto tolua_lerror;
  7742. else
  7743. #endif
  7744. {
  7745. const Graphics* self = (const Graphics*) tolua_tousertype(tolua_S,1,0);
  7746. #ifndef TOLUA_RELEASE
  7747. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetVSync'", NULL);
  7748. #endif
  7749. {
  7750. bool tolua_ret = (bool) self->GetVSync();
  7751. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7752. }
  7753. }
  7754. return 1;
  7755. #ifndef TOLUA_RELEASE
  7756. tolua_lerror:
  7757. tolua_error(tolua_S,"#ferror in function 'GetVSync'.",&tolua_err);
  7758. return 0;
  7759. #endif
  7760. }
  7761. #endif //#ifndef TOLUA_DISABLE
  7762. /* method: GetTripleBuffer of class Graphics */
  7763. #ifndef TOLUA_DISABLE_tolua_Graphics_Graphics_GetTripleBuffer00
  7764. static int tolua_Graphics_Graphics_GetTripleBuffer00(lua_State* tolua_S)
  7765. {
  7766. #ifndef TOLUA_RELEASE
  7767. tolua_Error tolua_err;
  7768. if (
  7769. !tolua_isusertype(tolua_S,1,"const Graphics",0,&tolua_err) ||
  7770. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7771. )
  7772. goto tolua_lerror;
  7773. else
  7774. #endif
  7775. {
  7776. const Graphics* self = (const Graphics*) tolua_tousertype(tolua_S,1,0);
  7777. #ifndef TOLUA_RELEASE
  7778. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTripleBuffer'", NULL);
  7779. #endif
  7780. {
  7781. bool tolua_ret = (bool) self->GetTripleBuffer();
  7782. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7783. }
  7784. }
  7785. return 1;
  7786. #ifndef TOLUA_RELEASE
  7787. tolua_lerror:
  7788. tolua_error(tolua_S,"#ferror in function 'GetTripleBuffer'.",&tolua_err);
  7789. return 0;
  7790. #endif
  7791. }
  7792. #endif //#ifndef TOLUA_DISABLE
  7793. /* method: GetSRGB of class Graphics */
  7794. #ifndef TOLUA_DISABLE_tolua_Graphics_Graphics_GetSRGB00
  7795. static int tolua_Graphics_Graphics_GetSRGB00(lua_State* tolua_S)
  7796. {
  7797. #ifndef TOLUA_RELEASE
  7798. tolua_Error tolua_err;
  7799. if (
  7800. !tolua_isusertype(tolua_S,1,"const Graphics",0,&tolua_err) ||
  7801. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7802. )
  7803. goto tolua_lerror;
  7804. else
  7805. #endif
  7806. {
  7807. const Graphics* self = (const Graphics*) tolua_tousertype(tolua_S,1,0);
  7808. #ifndef TOLUA_RELEASE
  7809. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSRGB'", NULL);
  7810. #endif
  7811. {
  7812. bool tolua_ret = (bool) self->GetSRGB();
  7813. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7814. }
  7815. }
  7816. return 1;
  7817. #ifndef TOLUA_RELEASE
  7818. tolua_lerror:
  7819. tolua_error(tolua_S,"#ferror in function 'GetSRGB'.",&tolua_err);
  7820. return 0;
  7821. #endif
  7822. }
  7823. #endif //#ifndef TOLUA_DISABLE
  7824. /* function: GetGraphics */
  7825. #ifndef TOLUA_DISABLE_tolua_Graphics_GetGraphics00
  7826. static int tolua_Graphics_GetGraphics00(lua_State* tolua_S)
  7827. {
  7828. #ifndef TOLUA_RELEASE
  7829. tolua_Error tolua_err;
  7830. if (
  7831. !tolua_isnoobj(tolua_S,1,&tolua_err)
  7832. )
  7833. goto tolua_lerror;
  7834. else
  7835. #endif
  7836. {
  7837. {
  7838. Graphics* tolua_ret = (Graphics*) GetGraphics();
  7839. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Graphics");
  7840. }
  7841. }
  7842. return 1;
  7843. #ifndef TOLUA_RELEASE
  7844. tolua_lerror:
  7845. tolua_error(tolua_S,"#ferror in function 'GetGraphics'.",&tolua_err);
  7846. return 0;
  7847. #endif
  7848. }
  7849. #endif //#ifndef TOLUA_DISABLE
  7850. /* get function: QUALITY_LOW */
  7851. #ifndef TOLUA_DISABLE_tolua_get_QUALITY_LOW
  7852. static int tolua_get_QUALITY_LOW(lua_State* tolua_S)
  7853. {
  7854. tolua_pushnumber(tolua_S,(lua_Number)QUALITY_LOW);
  7855. return 1;
  7856. }
  7857. #endif //#ifndef TOLUA_DISABLE
  7858. /* get function: QUALITY_MEDIUM */
  7859. #ifndef TOLUA_DISABLE_tolua_get_QUALITY_MEDIUM
  7860. static int tolua_get_QUALITY_MEDIUM(lua_State* tolua_S)
  7861. {
  7862. tolua_pushnumber(tolua_S,(lua_Number)QUALITY_MEDIUM);
  7863. return 1;
  7864. }
  7865. #endif //#ifndef TOLUA_DISABLE
  7866. /* get function: QUALITY_HIGH */
  7867. #ifndef TOLUA_DISABLE_tolua_get_QUALITY_HIGH
  7868. static int tolua_get_QUALITY_HIGH(lua_State* tolua_S)
  7869. {
  7870. tolua_pushnumber(tolua_S,(lua_Number)QUALITY_HIGH);
  7871. return 1;
  7872. }
  7873. #endif //#ifndef TOLUA_DISABLE
  7874. /* get function: QUALITY_MAX */
  7875. #ifndef TOLUA_DISABLE_tolua_get_QUALITY_MAX
  7876. static int tolua_get_QUALITY_MAX(lua_State* tolua_S)
  7877. {
  7878. tolua_pushnumber(tolua_S,(lua_Number)QUALITY_MAX);
  7879. return 1;
  7880. }
  7881. #endif //#ifndef TOLUA_DISABLE
  7882. /* get function: SHADOWQUALITY_LOW_16BIT */
  7883. #ifndef TOLUA_DISABLE_tolua_get_SHADOWQUALITY_LOW_16BIT
  7884. static int tolua_get_SHADOWQUALITY_LOW_16BIT(lua_State* tolua_S)
  7885. {
  7886. tolua_pushnumber(tolua_S,(lua_Number)SHADOWQUALITY_LOW_16BIT);
  7887. return 1;
  7888. }
  7889. #endif //#ifndef TOLUA_DISABLE
  7890. /* get function: SHADOWQUALITY_LOW_24BIT */
  7891. #ifndef TOLUA_DISABLE_tolua_get_SHADOWQUALITY_LOW_24BIT
  7892. static int tolua_get_SHADOWQUALITY_LOW_24BIT(lua_State* tolua_S)
  7893. {
  7894. tolua_pushnumber(tolua_S,(lua_Number)SHADOWQUALITY_LOW_24BIT);
  7895. return 1;
  7896. }
  7897. #endif //#ifndef TOLUA_DISABLE
  7898. /* get function: SHADOWQUALITY_HIGH_16BIT */
  7899. #ifndef TOLUA_DISABLE_tolua_get_SHADOWQUALITY_HIGH_16BIT
  7900. static int tolua_get_SHADOWQUALITY_HIGH_16BIT(lua_State* tolua_S)
  7901. {
  7902. tolua_pushnumber(tolua_S,(lua_Number)SHADOWQUALITY_HIGH_16BIT);
  7903. return 1;
  7904. }
  7905. #endif //#ifndef TOLUA_DISABLE
  7906. /* get function: SHADOWQUALITY_HIGH_24BIT */
  7907. #ifndef TOLUA_DISABLE_tolua_get_SHADOWQUALITY_HIGH_24BIT
  7908. static int tolua_get_SHADOWQUALITY_HIGH_24BIT(lua_State* tolua_S)
  7909. {
  7910. tolua_pushnumber(tolua_S,(lua_Number)SHADOWQUALITY_HIGH_24BIT);
  7911. return 1;
  7912. }
  7913. #endif //#ifndef TOLUA_DISABLE
  7914. /* get function: CLEAR_COLOR */
  7915. #ifndef TOLUA_DISABLE_tolua_get_CLEAR_COLOR
  7916. static int tolua_get_CLEAR_COLOR(lua_State* tolua_S)
  7917. {
  7918. tolua_pushnumber(tolua_S,(lua_Number)CLEAR_COLOR);
  7919. return 1;
  7920. }
  7921. #endif //#ifndef TOLUA_DISABLE
  7922. /* get function: CLEAR_DEPTH */
  7923. #ifndef TOLUA_DISABLE_tolua_get_CLEAR_DEPTH
  7924. static int tolua_get_CLEAR_DEPTH(lua_State* tolua_S)
  7925. {
  7926. tolua_pushnumber(tolua_S,(lua_Number)CLEAR_DEPTH);
  7927. return 1;
  7928. }
  7929. #endif //#ifndef TOLUA_DISABLE
  7930. /* get function: CLEAR_STENCIL */
  7931. #ifndef TOLUA_DISABLE_tolua_get_CLEAR_STENCIL
  7932. static int tolua_get_CLEAR_STENCIL(lua_State* tolua_S)
  7933. {
  7934. tolua_pushnumber(tolua_S,(lua_Number)CLEAR_STENCIL);
  7935. return 1;
  7936. }
  7937. #endif //#ifndef TOLUA_DISABLE
  7938. /* method: SetLightType of class Light */
  7939. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetLightType00
  7940. static int tolua_Graphics_Light_SetLightType00(lua_State* tolua_S)
  7941. {
  7942. #ifndef TOLUA_RELEASE
  7943. tolua_Error tolua_err;
  7944. if (
  7945. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  7946. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7947. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7948. )
  7949. goto tolua_lerror;
  7950. else
  7951. #endif
  7952. {
  7953. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  7954. LightType type = ((LightType) (int) tolua_tonumber(tolua_S,2,0));
  7955. #ifndef TOLUA_RELEASE
  7956. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLightType'", NULL);
  7957. #endif
  7958. {
  7959. self->SetLightType(type);
  7960. }
  7961. }
  7962. return 0;
  7963. #ifndef TOLUA_RELEASE
  7964. tolua_lerror:
  7965. tolua_error(tolua_S,"#ferror in function 'SetLightType'.",&tolua_err);
  7966. return 0;
  7967. #endif
  7968. }
  7969. #endif //#ifndef TOLUA_DISABLE
  7970. /* method: SetPerVertex of class Light */
  7971. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetPerVertex00
  7972. static int tolua_Graphics_Light_SetPerVertex00(lua_State* tolua_S)
  7973. {
  7974. #ifndef TOLUA_RELEASE
  7975. tolua_Error tolua_err;
  7976. if (
  7977. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  7978. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  7979. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7980. )
  7981. goto tolua_lerror;
  7982. else
  7983. #endif
  7984. {
  7985. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  7986. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  7987. #ifndef TOLUA_RELEASE
  7988. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPerVertex'", NULL);
  7989. #endif
  7990. {
  7991. self->SetPerVertex(enable);
  7992. }
  7993. }
  7994. return 0;
  7995. #ifndef TOLUA_RELEASE
  7996. tolua_lerror:
  7997. tolua_error(tolua_S,"#ferror in function 'SetPerVertex'.",&tolua_err);
  7998. return 0;
  7999. #endif
  8000. }
  8001. #endif //#ifndef TOLUA_DISABLE
  8002. /* method: SetColor of class Light */
  8003. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetColor00
  8004. static int tolua_Graphics_Light_SetColor00(lua_State* tolua_S)
  8005. {
  8006. #ifndef TOLUA_RELEASE
  8007. tolua_Error tolua_err;
  8008. if (
  8009. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  8010. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  8011. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8012. )
  8013. goto tolua_lerror;
  8014. else
  8015. #endif
  8016. {
  8017. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  8018. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  8019. #ifndef TOLUA_RELEASE
  8020. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetColor'", NULL);
  8021. #endif
  8022. {
  8023. self->SetColor(*color);
  8024. }
  8025. }
  8026. return 0;
  8027. #ifndef TOLUA_RELEASE
  8028. tolua_lerror:
  8029. tolua_error(tolua_S,"#ferror in function 'SetColor'.",&tolua_err);
  8030. return 0;
  8031. #endif
  8032. }
  8033. #endif //#ifndef TOLUA_DISABLE
  8034. /* method: SetSpecularIntensity of class Light */
  8035. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetSpecularIntensity00
  8036. static int tolua_Graphics_Light_SetSpecularIntensity00(lua_State* tolua_S)
  8037. {
  8038. #ifndef TOLUA_RELEASE
  8039. tolua_Error tolua_err;
  8040. if (
  8041. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  8042. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8043. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8044. )
  8045. goto tolua_lerror;
  8046. else
  8047. #endif
  8048. {
  8049. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  8050. float intensity = ((float) tolua_tonumber(tolua_S,2,0));
  8051. #ifndef TOLUA_RELEASE
  8052. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSpecularIntensity'", NULL);
  8053. #endif
  8054. {
  8055. self->SetSpecularIntensity(intensity);
  8056. }
  8057. }
  8058. return 0;
  8059. #ifndef TOLUA_RELEASE
  8060. tolua_lerror:
  8061. tolua_error(tolua_S,"#ferror in function 'SetSpecularIntensity'.",&tolua_err);
  8062. return 0;
  8063. #endif
  8064. }
  8065. #endif //#ifndef TOLUA_DISABLE
  8066. /* method: SetRange of class Light */
  8067. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetRange00
  8068. static int tolua_Graphics_Light_SetRange00(lua_State* tolua_S)
  8069. {
  8070. #ifndef TOLUA_RELEASE
  8071. tolua_Error tolua_err;
  8072. if (
  8073. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  8074. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8075. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8076. )
  8077. goto tolua_lerror;
  8078. else
  8079. #endif
  8080. {
  8081. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  8082. float range = ((float) tolua_tonumber(tolua_S,2,0));
  8083. #ifndef TOLUA_RELEASE
  8084. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRange'", NULL);
  8085. #endif
  8086. {
  8087. self->SetRange(range);
  8088. }
  8089. }
  8090. return 0;
  8091. #ifndef TOLUA_RELEASE
  8092. tolua_lerror:
  8093. tolua_error(tolua_S,"#ferror in function 'SetRange'.",&tolua_err);
  8094. return 0;
  8095. #endif
  8096. }
  8097. #endif //#ifndef TOLUA_DISABLE
  8098. /* method: SetFov of class Light */
  8099. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetFov00
  8100. static int tolua_Graphics_Light_SetFov00(lua_State* tolua_S)
  8101. {
  8102. #ifndef TOLUA_RELEASE
  8103. tolua_Error tolua_err;
  8104. if (
  8105. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  8106. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8107. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8108. )
  8109. goto tolua_lerror;
  8110. else
  8111. #endif
  8112. {
  8113. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  8114. float fov = ((float) tolua_tonumber(tolua_S,2,0));
  8115. #ifndef TOLUA_RELEASE
  8116. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFov'", NULL);
  8117. #endif
  8118. {
  8119. self->SetFov(fov);
  8120. }
  8121. }
  8122. return 0;
  8123. #ifndef TOLUA_RELEASE
  8124. tolua_lerror:
  8125. tolua_error(tolua_S,"#ferror in function 'SetFov'.",&tolua_err);
  8126. return 0;
  8127. #endif
  8128. }
  8129. #endif //#ifndef TOLUA_DISABLE
  8130. /* method: SetAspectRatio of class Light */
  8131. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetAspectRatio00
  8132. static int tolua_Graphics_Light_SetAspectRatio00(lua_State* tolua_S)
  8133. {
  8134. #ifndef TOLUA_RELEASE
  8135. tolua_Error tolua_err;
  8136. if (
  8137. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  8138. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8139. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8140. )
  8141. goto tolua_lerror;
  8142. else
  8143. #endif
  8144. {
  8145. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  8146. float aspectRatio = ((float) tolua_tonumber(tolua_S,2,0));
  8147. #ifndef TOLUA_RELEASE
  8148. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAspectRatio'", NULL);
  8149. #endif
  8150. {
  8151. self->SetAspectRatio(aspectRatio);
  8152. }
  8153. }
  8154. return 0;
  8155. #ifndef TOLUA_RELEASE
  8156. tolua_lerror:
  8157. tolua_error(tolua_S,"#ferror in function 'SetAspectRatio'.",&tolua_err);
  8158. return 0;
  8159. #endif
  8160. }
  8161. #endif //#ifndef TOLUA_DISABLE
  8162. /* method: SetFadeDistance of class Light */
  8163. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetFadeDistance00
  8164. static int tolua_Graphics_Light_SetFadeDistance00(lua_State* tolua_S)
  8165. {
  8166. #ifndef TOLUA_RELEASE
  8167. tolua_Error tolua_err;
  8168. if (
  8169. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  8170. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8171. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8172. )
  8173. goto tolua_lerror;
  8174. else
  8175. #endif
  8176. {
  8177. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  8178. float distance = ((float) tolua_tonumber(tolua_S,2,0));
  8179. #ifndef TOLUA_RELEASE
  8180. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFadeDistance'", NULL);
  8181. #endif
  8182. {
  8183. self->SetFadeDistance(distance);
  8184. }
  8185. }
  8186. return 0;
  8187. #ifndef TOLUA_RELEASE
  8188. tolua_lerror:
  8189. tolua_error(tolua_S,"#ferror in function 'SetFadeDistance'.",&tolua_err);
  8190. return 0;
  8191. #endif
  8192. }
  8193. #endif //#ifndef TOLUA_DISABLE
  8194. /* method: SetShadowFadeDistance of class Light */
  8195. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetShadowFadeDistance00
  8196. static int tolua_Graphics_Light_SetShadowFadeDistance00(lua_State* tolua_S)
  8197. {
  8198. #ifndef TOLUA_RELEASE
  8199. tolua_Error tolua_err;
  8200. if (
  8201. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  8202. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8203. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8204. )
  8205. goto tolua_lerror;
  8206. else
  8207. #endif
  8208. {
  8209. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  8210. float distance = ((float) tolua_tonumber(tolua_S,2,0));
  8211. #ifndef TOLUA_RELEASE
  8212. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShadowFadeDistance'", NULL);
  8213. #endif
  8214. {
  8215. self->SetShadowFadeDistance(distance);
  8216. }
  8217. }
  8218. return 0;
  8219. #ifndef TOLUA_RELEASE
  8220. tolua_lerror:
  8221. tolua_error(tolua_S,"#ferror in function 'SetShadowFadeDistance'.",&tolua_err);
  8222. return 0;
  8223. #endif
  8224. }
  8225. #endif //#ifndef TOLUA_DISABLE
  8226. /* method: SetShadowBias of class Light */
  8227. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetShadowBias00
  8228. static int tolua_Graphics_Light_SetShadowBias00(lua_State* tolua_S)
  8229. {
  8230. #ifndef TOLUA_RELEASE
  8231. tolua_Error tolua_err;
  8232. if (
  8233. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  8234. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const BiasParameters",0,&tolua_err)) ||
  8235. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8236. )
  8237. goto tolua_lerror;
  8238. else
  8239. #endif
  8240. {
  8241. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  8242. const BiasParameters* parameters = ((const BiasParameters*) tolua_tousertype(tolua_S,2,0));
  8243. #ifndef TOLUA_RELEASE
  8244. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShadowBias'", NULL);
  8245. #endif
  8246. {
  8247. self->SetShadowBias(*parameters);
  8248. }
  8249. }
  8250. return 0;
  8251. #ifndef TOLUA_RELEASE
  8252. tolua_lerror:
  8253. tolua_error(tolua_S,"#ferror in function 'SetShadowBias'.",&tolua_err);
  8254. return 0;
  8255. #endif
  8256. }
  8257. #endif //#ifndef TOLUA_DISABLE
  8258. /* method: SetShadowCascade of class Light */
  8259. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetShadowCascade00
  8260. static int tolua_Graphics_Light_SetShadowCascade00(lua_State* tolua_S)
  8261. {
  8262. #ifndef TOLUA_RELEASE
  8263. tolua_Error tolua_err;
  8264. if (
  8265. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  8266. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const CascadeParameters",0,&tolua_err)) ||
  8267. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8268. )
  8269. goto tolua_lerror;
  8270. else
  8271. #endif
  8272. {
  8273. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  8274. const CascadeParameters* parameters = ((const CascadeParameters*) tolua_tousertype(tolua_S,2,0));
  8275. #ifndef TOLUA_RELEASE
  8276. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShadowCascade'", NULL);
  8277. #endif
  8278. {
  8279. self->SetShadowCascade(*parameters);
  8280. }
  8281. }
  8282. return 0;
  8283. #ifndef TOLUA_RELEASE
  8284. tolua_lerror:
  8285. tolua_error(tolua_S,"#ferror in function 'SetShadowCascade'.",&tolua_err);
  8286. return 0;
  8287. #endif
  8288. }
  8289. #endif //#ifndef TOLUA_DISABLE
  8290. /* method: SetShadowFocus of class Light */
  8291. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetShadowFocus00
  8292. static int tolua_Graphics_Light_SetShadowFocus00(lua_State* tolua_S)
  8293. {
  8294. #ifndef TOLUA_RELEASE
  8295. tolua_Error tolua_err;
  8296. if (
  8297. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  8298. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const FocusParameters",0,&tolua_err)) ||
  8299. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8300. )
  8301. goto tolua_lerror;
  8302. else
  8303. #endif
  8304. {
  8305. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  8306. const FocusParameters* parameters = ((const FocusParameters*) tolua_tousertype(tolua_S,2,0));
  8307. #ifndef TOLUA_RELEASE
  8308. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShadowFocus'", NULL);
  8309. #endif
  8310. {
  8311. self->SetShadowFocus(*parameters);
  8312. }
  8313. }
  8314. return 0;
  8315. #ifndef TOLUA_RELEASE
  8316. tolua_lerror:
  8317. tolua_error(tolua_S,"#ferror in function 'SetShadowFocus'.",&tolua_err);
  8318. return 0;
  8319. #endif
  8320. }
  8321. #endif //#ifndef TOLUA_DISABLE
  8322. /* method: SetShadowIntensity of class Light */
  8323. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetShadowIntensity00
  8324. static int tolua_Graphics_Light_SetShadowIntensity00(lua_State* tolua_S)
  8325. {
  8326. #ifndef TOLUA_RELEASE
  8327. tolua_Error tolua_err;
  8328. if (
  8329. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  8330. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8331. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8332. )
  8333. goto tolua_lerror;
  8334. else
  8335. #endif
  8336. {
  8337. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  8338. float intensity = ((float) tolua_tonumber(tolua_S,2,0));
  8339. #ifndef TOLUA_RELEASE
  8340. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShadowIntensity'", NULL);
  8341. #endif
  8342. {
  8343. self->SetShadowIntensity(intensity);
  8344. }
  8345. }
  8346. return 0;
  8347. #ifndef TOLUA_RELEASE
  8348. tolua_lerror:
  8349. tolua_error(tolua_S,"#ferror in function 'SetShadowIntensity'.",&tolua_err);
  8350. return 0;
  8351. #endif
  8352. }
  8353. #endif //#ifndef TOLUA_DISABLE
  8354. /* method: SetShadowResolution of class Light */
  8355. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetShadowResolution00
  8356. static int tolua_Graphics_Light_SetShadowResolution00(lua_State* tolua_S)
  8357. {
  8358. #ifndef TOLUA_RELEASE
  8359. tolua_Error tolua_err;
  8360. if (
  8361. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  8362. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8363. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8364. )
  8365. goto tolua_lerror;
  8366. else
  8367. #endif
  8368. {
  8369. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  8370. float resolution = ((float) tolua_tonumber(tolua_S,2,0));
  8371. #ifndef TOLUA_RELEASE
  8372. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShadowResolution'", NULL);
  8373. #endif
  8374. {
  8375. self->SetShadowResolution(resolution);
  8376. }
  8377. }
  8378. return 0;
  8379. #ifndef TOLUA_RELEASE
  8380. tolua_lerror:
  8381. tolua_error(tolua_S,"#ferror in function 'SetShadowResolution'.",&tolua_err);
  8382. return 0;
  8383. #endif
  8384. }
  8385. #endif //#ifndef TOLUA_DISABLE
  8386. /* method: SetShadowNearFarRatio of class Light */
  8387. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetShadowNearFarRatio00
  8388. static int tolua_Graphics_Light_SetShadowNearFarRatio00(lua_State* tolua_S)
  8389. {
  8390. #ifndef TOLUA_RELEASE
  8391. tolua_Error tolua_err;
  8392. if (
  8393. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  8394. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8395. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8396. )
  8397. goto tolua_lerror;
  8398. else
  8399. #endif
  8400. {
  8401. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  8402. float nearFarRatio = ((float) tolua_tonumber(tolua_S,2,0));
  8403. #ifndef TOLUA_RELEASE
  8404. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShadowNearFarRatio'", NULL);
  8405. #endif
  8406. {
  8407. self->SetShadowNearFarRatio(nearFarRatio);
  8408. }
  8409. }
  8410. return 0;
  8411. #ifndef TOLUA_RELEASE
  8412. tolua_lerror:
  8413. tolua_error(tolua_S,"#ferror in function 'SetShadowNearFarRatio'.",&tolua_err);
  8414. return 0;
  8415. #endif
  8416. }
  8417. #endif //#ifndef TOLUA_DISABLE
  8418. /* method: SetRampTexture of class Light */
  8419. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetRampTexture00
  8420. static int tolua_Graphics_Light_SetRampTexture00(lua_State* tolua_S)
  8421. {
  8422. #ifndef TOLUA_RELEASE
  8423. tolua_Error tolua_err;
  8424. if (
  8425. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  8426. !tolua_isusertype(tolua_S,2,"Texture",0,&tolua_err) ||
  8427. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8428. )
  8429. goto tolua_lerror;
  8430. else
  8431. #endif
  8432. {
  8433. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  8434. Texture* texture = ((Texture*) tolua_tousertype(tolua_S,2,0));
  8435. #ifndef TOLUA_RELEASE
  8436. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRampTexture'", NULL);
  8437. #endif
  8438. {
  8439. self->SetRampTexture(texture);
  8440. }
  8441. }
  8442. return 0;
  8443. #ifndef TOLUA_RELEASE
  8444. tolua_lerror:
  8445. tolua_error(tolua_S,"#ferror in function 'SetRampTexture'.",&tolua_err);
  8446. return 0;
  8447. #endif
  8448. }
  8449. #endif //#ifndef TOLUA_DISABLE
  8450. /* method: SetShapeTexture of class Light */
  8451. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetShapeTexture00
  8452. static int tolua_Graphics_Light_SetShapeTexture00(lua_State* tolua_S)
  8453. {
  8454. #ifndef TOLUA_RELEASE
  8455. tolua_Error tolua_err;
  8456. if (
  8457. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  8458. !tolua_isusertype(tolua_S,2,"Texture",0,&tolua_err) ||
  8459. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8460. )
  8461. goto tolua_lerror;
  8462. else
  8463. #endif
  8464. {
  8465. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  8466. Texture* texture = ((Texture*) tolua_tousertype(tolua_S,2,0));
  8467. #ifndef TOLUA_RELEASE
  8468. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShapeTexture'", NULL);
  8469. #endif
  8470. {
  8471. self->SetShapeTexture(texture);
  8472. }
  8473. }
  8474. return 0;
  8475. #ifndef TOLUA_RELEASE
  8476. tolua_lerror:
  8477. tolua_error(tolua_S,"#ferror in function 'SetShapeTexture'.",&tolua_err);
  8478. return 0;
  8479. #endif
  8480. }
  8481. #endif //#ifndef TOLUA_DISABLE
  8482. /* method: GetLightType of class Light */
  8483. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetLightType00
  8484. static int tolua_Graphics_Light_GetLightType00(lua_State* tolua_S)
  8485. {
  8486. #ifndef TOLUA_RELEASE
  8487. tolua_Error tolua_err;
  8488. if (
  8489. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8490. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8491. )
  8492. goto tolua_lerror;
  8493. else
  8494. #endif
  8495. {
  8496. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8497. #ifndef TOLUA_RELEASE
  8498. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLightType'", NULL);
  8499. #endif
  8500. {
  8501. LightType tolua_ret = (LightType) self->GetLightType();
  8502. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8503. }
  8504. }
  8505. return 1;
  8506. #ifndef TOLUA_RELEASE
  8507. tolua_lerror:
  8508. tolua_error(tolua_S,"#ferror in function 'GetLightType'.",&tolua_err);
  8509. return 0;
  8510. #endif
  8511. }
  8512. #endif //#ifndef TOLUA_DISABLE
  8513. /* method: GetPerVertex of class Light */
  8514. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetPerVertex00
  8515. static int tolua_Graphics_Light_GetPerVertex00(lua_State* tolua_S)
  8516. {
  8517. #ifndef TOLUA_RELEASE
  8518. tolua_Error tolua_err;
  8519. if (
  8520. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8521. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8522. )
  8523. goto tolua_lerror;
  8524. else
  8525. #endif
  8526. {
  8527. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8528. #ifndef TOLUA_RELEASE
  8529. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPerVertex'", NULL);
  8530. #endif
  8531. {
  8532. bool tolua_ret = (bool) self->GetPerVertex();
  8533. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  8534. }
  8535. }
  8536. return 1;
  8537. #ifndef TOLUA_RELEASE
  8538. tolua_lerror:
  8539. tolua_error(tolua_S,"#ferror in function 'GetPerVertex'.",&tolua_err);
  8540. return 0;
  8541. #endif
  8542. }
  8543. #endif //#ifndef TOLUA_DISABLE
  8544. /* method: GetColor of class Light */
  8545. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetColor00
  8546. static int tolua_Graphics_Light_GetColor00(lua_State* tolua_S)
  8547. {
  8548. #ifndef TOLUA_RELEASE
  8549. tolua_Error tolua_err;
  8550. if (
  8551. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8552. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8553. )
  8554. goto tolua_lerror;
  8555. else
  8556. #endif
  8557. {
  8558. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8559. #ifndef TOLUA_RELEASE
  8560. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetColor'", NULL);
  8561. #endif
  8562. {
  8563. const Color& tolua_ret = (const Color&) self->GetColor();
  8564. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  8565. }
  8566. }
  8567. return 1;
  8568. #ifndef TOLUA_RELEASE
  8569. tolua_lerror:
  8570. tolua_error(tolua_S,"#ferror in function 'GetColor'.",&tolua_err);
  8571. return 0;
  8572. #endif
  8573. }
  8574. #endif //#ifndef TOLUA_DISABLE
  8575. /* method: GetSpecularIntensity of class Light */
  8576. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetSpecularIntensity00
  8577. static int tolua_Graphics_Light_GetSpecularIntensity00(lua_State* tolua_S)
  8578. {
  8579. #ifndef TOLUA_RELEASE
  8580. tolua_Error tolua_err;
  8581. if (
  8582. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8583. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8584. )
  8585. goto tolua_lerror;
  8586. else
  8587. #endif
  8588. {
  8589. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8590. #ifndef TOLUA_RELEASE
  8591. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSpecularIntensity'", NULL);
  8592. #endif
  8593. {
  8594. float tolua_ret = (float) self->GetSpecularIntensity();
  8595. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8596. }
  8597. }
  8598. return 1;
  8599. #ifndef TOLUA_RELEASE
  8600. tolua_lerror:
  8601. tolua_error(tolua_S,"#ferror in function 'GetSpecularIntensity'.",&tolua_err);
  8602. return 0;
  8603. #endif
  8604. }
  8605. #endif //#ifndef TOLUA_DISABLE
  8606. /* method: GetRange of class Light */
  8607. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetRange00
  8608. static int tolua_Graphics_Light_GetRange00(lua_State* tolua_S)
  8609. {
  8610. #ifndef TOLUA_RELEASE
  8611. tolua_Error tolua_err;
  8612. if (
  8613. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8614. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8615. )
  8616. goto tolua_lerror;
  8617. else
  8618. #endif
  8619. {
  8620. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8621. #ifndef TOLUA_RELEASE
  8622. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRange'", NULL);
  8623. #endif
  8624. {
  8625. float tolua_ret = (float) self->GetRange();
  8626. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8627. }
  8628. }
  8629. return 1;
  8630. #ifndef TOLUA_RELEASE
  8631. tolua_lerror:
  8632. tolua_error(tolua_S,"#ferror in function 'GetRange'.",&tolua_err);
  8633. return 0;
  8634. #endif
  8635. }
  8636. #endif //#ifndef TOLUA_DISABLE
  8637. /* method: GetFov of class Light */
  8638. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetFov00
  8639. static int tolua_Graphics_Light_GetFov00(lua_State* tolua_S)
  8640. {
  8641. #ifndef TOLUA_RELEASE
  8642. tolua_Error tolua_err;
  8643. if (
  8644. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8645. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8646. )
  8647. goto tolua_lerror;
  8648. else
  8649. #endif
  8650. {
  8651. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8652. #ifndef TOLUA_RELEASE
  8653. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFov'", NULL);
  8654. #endif
  8655. {
  8656. float tolua_ret = (float) self->GetFov();
  8657. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8658. }
  8659. }
  8660. return 1;
  8661. #ifndef TOLUA_RELEASE
  8662. tolua_lerror:
  8663. tolua_error(tolua_S,"#ferror in function 'GetFov'.",&tolua_err);
  8664. return 0;
  8665. #endif
  8666. }
  8667. #endif //#ifndef TOLUA_DISABLE
  8668. /* method: GetAspectRatio of class Light */
  8669. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetAspectRatio00
  8670. static int tolua_Graphics_Light_GetAspectRatio00(lua_State* tolua_S)
  8671. {
  8672. #ifndef TOLUA_RELEASE
  8673. tolua_Error tolua_err;
  8674. if (
  8675. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8676. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8677. )
  8678. goto tolua_lerror;
  8679. else
  8680. #endif
  8681. {
  8682. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8683. #ifndef TOLUA_RELEASE
  8684. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAspectRatio'", NULL);
  8685. #endif
  8686. {
  8687. float tolua_ret = (float) self->GetAspectRatio();
  8688. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8689. }
  8690. }
  8691. return 1;
  8692. #ifndef TOLUA_RELEASE
  8693. tolua_lerror:
  8694. tolua_error(tolua_S,"#ferror in function 'GetAspectRatio'.",&tolua_err);
  8695. return 0;
  8696. #endif
  8697. }
  8698. #endif //#ifndef TOLUA_DISABLE
  8699. /* method: GetFadeDistance of class Light */
  8700. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetFadeDistance00
  8701. static int tolua_Graphics_Light_GetFadeDistance00(lua_State* tolua_S)
  8702. {
  8703. #ifndef TOLUA_RELEASE
  8704. tolua_Error tolua_err;
  8705. if (
  8706. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8707. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8708. )
  8709. goto tolua_lerror;
  8710. else
  8711. #endif
  8712. {
  8713. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8714. #ifndef TOLUA_RELEASE
  8715. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFadeDistance'", NULL);
  8716. #endif
  8717. {
  8718. float tolua_ret = (float) self->GetFadeDistance();
  8719. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8720. }
  8721. }
  8722. return 1;
  8723. #ifndef TOLUA_RELEASE
  8724. tolua_lerror:
  8725. tolua_error(tolua_S,"#ferror in function 'GetFadeDistance'.",&tolua_err);
  8726. return 0;
  8727. #endif
  8728. }
  8729. #endif //#ifndef TOLUA_DISABLE
  8730. /* method: GetShadowFadeDistance of class Light */
  8731. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetShadowFadeDistance00
  8732. static int tolua_Graphics_Light_GetShadowFadeDistance00(lua_State* tolua_S)
  8733. {
  8734. #ifndef TOLUA_RELEASE
  8735. tolua_Error tolua_err;
  8736. if (
  8737. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8738. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8739. )
  8740. goto tolua_lerror;
  8741. else
  8742. #endif
  8743. {
  8744. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8745. #ifndef TOLUA_RELEASE
  8746. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowFadeDistance'", NULL);
  8747. #endif
  8748. {
  8749. float tolua_ret = (float) self->GetShadowFadeDistance();
  8750. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8751. }
  8752. }
  8753. return 1;
  8754. #ifndef TOLUA_RELEASE
  8755. tolua_lerror:
  8756. tolua_error(tolua_S,"#ferror in function 'GetShadowFadeDistance'.",&tolua_err);
  8757. return 0;
  8758. #endif
  8759. }
  8760. #endif //#ifndef TOLUA_DISABLE
  8761. /* method: GetShadowBias of class Light */
  8762. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetShadowBias00
  8763. static int tolua_Graphics_Light_GetShadowBias00(lua_State* tolua_S)
  8764. {
  8765. #ifndef TOLUA_RELEASE
  8766. tolua_Error tolua_err;
  8767. if (
  8768. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8769. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8770. )
  8771. goto tolua_lerror;
  8772. else
  8773. #endif
  8774. {
  8775. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8776. #ifndef TOLUA_RELEASE
  8777. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowBias'", NULL);
  8778. #endif
  8779. {
  8780. const BiasParameters& tolua_ret = (const BiasParameters&) self->GetShadowBias();
  8781. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const BiasParameters");
  8782. }
  8783. }
  8784. return 1;
  8785. #ifndef TOLUA_RELEASE
  8786. tolua_lerror:
  8787. tolua_error(tolua_S,"#ferror in function 'GetShadowBias'.",&tolua_err);
  8788. return 0;
  8789. #endif
  8790. }
  8791. #endif //#ifndef TOLUA_DISABLE
  8792. /* method: GetShadowCascade of class Light */
  8793. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetShadowCascade00
  8794. static int tolua_Graphics_Light_GetShadowCascade00(lua_State* tolua_S)
  8795. {
  8796. #ifndef TOLUA_RELEASE
  8797. tolua_Error tolua_err;
  8798. if (
  8799. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8800. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8801. )
  8802. goto tolua_lerror;
  8803. else
  8804. #endif
  8805. {
  8806. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8807. #ifndef TOLUA_RELEASE
  8808. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowCascade'", NULL);
  8809. #endif
  8810. {
  8811. const CascadeParameters& tolua_ret = (const CascadeParameters&) self->GetShadowCascade();
  8812. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const CascadeParameters");
  8813. }
  8814. }
  8815. return 1;
  8816. #ifndef TOLUA_RELEASE
  8817. tolua_lerror:
  8818. tolua_error(tolua_S,"#ferror in function 'GetShadowCascade'.",&tolua_err);
  8819. return 0;
  8820. #endif
  8821. }
  8822. #endif //#ifndef TOLUA_DISABLE
  8823. /* method: GetShadowFocus of class Light */
  8824. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetShadowFocus00
  8825. static int tolua_Graphics_Light_GetShadowFocus00(lua_State* tolua_S)
  8826. {
  8827. #ifndef TOLUA_RELEASE
  8828. tolua_Error tolua_err;
  8829. if (
  8830. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8831. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8832. )
  8833. goto tolua_lerror;
  8834. else
  8835. #endif
  8836. {
  8837. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8838. #ifndef TOLUA_RELEASE
  8839. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowFocus'", NULL);
  8840. #endif
  8841. {
  8842. const FocusParameters& tolua_ret = (const FocusParameters&) self->GetShadowFocus();
  8843. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const FocusParameters");
  8844. }
  8845. }
  8846. return 1;
  8847. #ifndef TOLUA_RELEASE
  8848. tolua_lerror:
  8849. tolua_error(tolua_S,"#ferror in function 'GetShadowFocus'.",&tolua_err);
  8850. return 0;
  8851. #endif
  8852. }
  8853. #endif //#ifndef TOLUA_DISABLE
  8854. /* method: GetShadowIntensity of class Light */
  8855. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetShadowIntensity00
  8856. static int tolua_Graphics_Light_GetShadowIntensity00(lua_State* tolua_S)
  8857. {
  8858. #ifndef TOLUA_RELEASE
  8859. tolua_Error tolua_err;
  8860. if (
  8861. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8862. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8863. )
  8864. goto tolua_lerror;
  8865. else
  8866. #endif
  8867. {
  8868. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8869. #ifndef TOLUA_RELEASE
  8870. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowIntensity'", NULL);
  8871. #endif
  8872. {
  8873. float tolua_ret = (float) self->GetShadowIntensity();
  8874. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8875. }
  8876. }
  8877. return 1;
  8878. #ifndef TOLUA_RELEASE
  8879. tolua_lerror:
  8880. tolua_error(tolua_S,"#ferror in function 'GetShadowIntensity'.",&tolua_err);
  8881. return 0;
  8882. #endif
  8883. }
  8884. #endif //#ifndef TOLUA_DISABLE
  8885. /* method: GetShadowResolution of class Light */
  8886. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetShadowResolution00
  8887. static int tolua_Graphics_Light_GetShadowResolution00(lua_State* tolua_S)
  8888. {
  8889. #ifndef TOLUA_RELEASE
  8890. tolua_Error tolua_err;
  8891. if (
  8892. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8893. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8894. )
  8895. goto tolua_lerror;
  8896. else
  8897. #endif
  8898. {
  8899. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8900. #ifndef TOLUA_RELEASE
  8901. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowResolution'", NULL);
  8902. #endif
  8903. {
  8904. float tolua_ret = (float) self->GetShadowResolution();
  8905. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8906. }
  8907. }
  8908. return 1;
  8909. #ifndef TOLUA_RELEASE
  8910. tolua_lerror:
  8911. tolua_error(tolua_S,"#ferror in function 'GetShadowResolution'.",&tolua_err);
  8912. return 0;
  8913. #endif
  8914. }
  8915. #endif //#ifndef TOLUA_DISABLE
  8916. /* method: GetShadowNearFarRatio of class Light */
  8917. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetShadowNearFarRatio00
  8918. static int tolua_Graphics_Light_GetShadowNearFarRatio00(lua_State* tolua_S)
  8919. {
  8920. #ifndef TOLUA_RELEASE
  8921. tolua_Error tolua_err;
  8922. if (
  8923. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8924. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8925. )
  8926. goto tolua_lerror;
  8927. else
  8928. #endif
  8929. {
  8930. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8931. #ifndef TOLUA_RELEASE
  8932. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowNearFarRatio'", NULL);
  8933. #endif
  8934. {
  8935. float tolua_ret = (float) self->GetShadowNearFarRatio();
  8936. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8937. }
  8938. }
  8939. return 1;
  8940. #ifndef TOLUA_RELEASE
  8941. tolua_lerror:
  8942. tolua_error(tolua_S,"#ferror in function 'GetShadowNearFarRatio'.",&tolua_err);
  8943. return 0;
  8944. #endif
  8945. }
  8946. #endif //#ifndef TOLUA_DISABLE
  8947. /* method: GetRampTexture of class Light */
  8948. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetRampTexture00
  8949. static int tolua_Graphics_Light_GetRampTexture00(lua_State* tolua_S)
  8950. {
  8951. #ifndef TOLUA_RELEASE
  8952. tolua_Error tolua_err;
  8953. if (
  8954. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8955. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8956. )
  8957. goto tolua_lerror;
  8958. else
  8959. #endif
  8960. {
  8961. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8962. #ifndef TOLUA_RELEASE
  8963. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRampTexture'", NULL);
  8964. #endif
  8965. {
  8966. Texture* tolua_ret = (Texture*) self->GetRampTexture();
  8967. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Texture");
  8968. }
  8969. }
  8970. return 1;
  8971. #ifndef TOLUA_RELEASE
  8972. tolua_lerror:
  8973. tolua_error(tolua_S,"#ferror in function 'GetRampTexture'.",&tolua_err);
  8974. return 0;
  8975. #endif
  8976. }
  8977. #endif //#ifndef TOLUA_DISABLE
  8978. /* method: GetShapeTexture of class Light */
  8979. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetShapeTexture00
  8980. static int tolua_Graphics_Light_GetShapeTexture00(lua_State* tolua_S)
  8981. {
  8982. #ifndef TOLUA_RELEASE
  8983. tolua_Error tolua_err;
  8984. if (
  8985. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8986. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8987. )
  8988. goto tolua_lerror;
  8989. else
  8990. #endif
  8991. {
  8992. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8993. #ifndef TOLUA_RELEASE
  8994. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShapeTexture'", NULL);
  8995. #endif
  8996. {
  8997. Texture* tolua_ret = (Texture*) self->GetShapeTexture();
  8998. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Texture");
  8999. }
  9000. }
  9001. return 1;
  9002. #ifndef TOLUA_RELEASE
  9003. tolua_lerror:
  9004. tolua_error(tolua_S,"#ferror in function 'GetShapeTexture'.",&tolua_err);
  9005. return 0;
  9006. #endif
  9007. }
  9008. #endif //#ifndef TOLUA_DISABLE
  9009. /* method: GetFrustum of class Light */
  9010. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetFrustum00
  9011. static int tolua_Graphics_Light_GetFrustum00(lua_State* tolua_S)
  9012. {
  9013. #ifndef TOLUA_RELEASE
  9014. tolua_Error tolua_err;
  9015. if (
  9016. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  9017. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9018. )
  9019. goto tolua_lerror;
  9020. else
  9021. #endif
  9022. {
  9023. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  9024. #ifndef TOLUA_RELEASE
  9025. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFrustum'", NULL);
  9026. #endif
  9027. {
  9028. Frustum tolua_ret = (Frustum) self->GetFrustum();
  9029. {
  9030. #ifdef __cplusplus
  9031. void* tolua_obj = Mtolua_new((Frustum)(tolua_ret));
  9032. tolua_pushusertype(tolua_S,tolua_obj,"Frustum");
  9033. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  9034. #else
  9035. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Frustum));
  9036. tolua_pushusertype(tolua_S,tolua_obj,"Frustum");
  9037. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  9038. #endif
  9039. }
  9040. }
  9041. }
  9042. return 1;
  9043. #ifndef TOLUA_RELEASE
  9044. tolua_lerror:
  9045. tolua_error(tolua_S,"#ferror in function 'GetFrustum'.",&tolua_err);
  9046. return 0;
  9047. #endif
  9048. }
  9049. #endif //#ifndef TOLUA_DISABLE
  9050. /* method: GetNumTechniques of class Material */
  9051. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetNumTechniques00
  9052. static int tolua_Graphics_Material_GetNumTechniques00(lua_State* tolua_S)
  9053. {
  9054. #ifndef TOLUA_RELEASE
  9055. tolua_Error tolua_err;
  9056. if (
  9057. !tolua_isusertype(tolua_S,1,"const Material",0,&tolua_err) ||
  9058. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9059. )
  9060. goto tolua_lerror;
  9061. else
  9062. #endif
  9063. {
  9064. const Material* self = (const Material*) tolua_tousertype(tolua_S,1,0);
  9065. #ifndef TOLUA_RELEASE
  9066. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumTechniques'", NULL);
  9067. #endif
  9068. {
  9069. unsigned tolua_ret = (unsigned) self->GetNumTechniques();
  9070. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  9071. }
  9072. }
  9073. return 1;
  9074. #ifndef TOLUA_RELEASE
  9075. tolua_lerror:
  9076. tolua_error(tolua_S,"#ferror in function 'GetNumTechniques'.",&tolua_err);
  9077. return 0;
  9078. #endif
  9079. }
  9080. #endif //#ifndef TOLUA_DISABLE
  9081. /* method: GetTechniqueEntry of class Material */
  9082. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetTechniqueEntry00
  9083. static int tolua_Graphics_Material_GetTechniqueEntry00(lua_State* tolua_S)
  9084. {
  9085. #ifndef TOLUA_RELEASE
  9086. tolua_Error tolua_err;
  9087. if (
  9088. !tolua_isusertype(tolua_S,1,"const Material",0,&tolua_err) ||
  9089. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9090. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9091. )
  9092. goto tolua_lerror;
  9093. else
  9094. #endif
  9095. {
  9096. const Material* self = (const Material*) tolua_tousertype(tolua_S,1,0);
  9097. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  9098. #ifndef TOLUA_RELEASE
  9099. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTechniqueEntry'", NULL);
  9100. #endif
  9101. {
  9102. const TechniqueEntry& tolua_ret = (const TechniqueEntry&) self->GetTechniqueEntry(index);
  9103. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const TechniqueEntry");
  9104. }
  9105. }
  9106. return 1;
  9107. #ifndef TOLUA_RELEASE
  9108. tolua_lerror:
  9109. tolua_error(tolua_S,"#ferror in function 'GetTechniqueEntry'.",&tolua_err);
  9110. return 0;
  9111. #endif
  9112. }
  9113. #endif //#ifndef TOLUA_DISABLE
  9114. /* method: GetTechnique of class Material */
  9115. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetTechnique00
  9116. static int tolua_Graphics_Material_GetTechnique00(lua_State* tolua_S)
  9117. {
  9118. #ifndef TOLUA_RELEASE
  9119. tolua_Error tolua_err;
  9120. if (
  9121. !tolua_isusertype(tolua_S,1,"const Material",0,&tolua_err) ||
  9122. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9123. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9124. )
  9125. goto tolua_lerror;
  9126. else
  9127. #endif
  9128. {
  9129. const Material* self = (const Material*) tolua_tousertype(tolua_S,1,0);
  9130. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  9131. #ifndef TOLUA_RELEASE
  9132. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTechnique'", NULL);
  9133. #endif
  9134. {
  9135. Technique* tolua_ret = (Technique*) self->GetTechnique(index);
  9136. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Technique");
  9137. }
  9138. }
  9139. return 1;
  9140. #ifndef TOLUA_RELEASE
  9141. tolua_lerror:
  9142. tolua_error(tolua_S,"#ferror in function 'GetTechnique'.",&tolua_err);
  9143. return 0;
  9144. #endif
  9145. }
  9146. #endif //#ifndef TOLUA_DISABLE
  9147. /* method: GetPass of class Material */
  9148. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetPass00
  9149. static int tolua_Graphics_Material_GetPass00(lua_State* tolua_S)
  9150. {
  9151. #ifndef TOLUA_RELEASE
  9152. tolua_Error tolua_err;
  9153. if (
  9154. !tolua_isusertype(tolua_S,1,"const Material",0,&tolua_err) ||
  9155. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9156. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"StringHash",0,&tolua_err)) ||
  9157. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9158. )
  9159. goto tolua_lerror;
  9160. else
  9161. #endif
  9162. {
  9163. const Material* self = (const Material*) tolua_tousertype(tolua_S,1,0);
  9164. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  9165. StringHash passType = *((StringHash*) tolua_tousertype(tolua_S,3,0));
  9166. #ifndef TOLUA_RELEASE
  9167. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPass'", NULL);
  9168. #endif
  9169. {
  9170. Pass* tolua_ret = (Pass*) self->GetPass(index,passType);
  9171. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Pass");
  9172. }
  9173. }
  9174. return 1;
  9175. #ifndef TOLUA_RELEASE
  9176. tolua_lerror:
  9177. tolua_error(tolua_S,"#ferror in function 'GetPass'.",&tolua_err);
  9178. return 0;
  9179. #endif
  9180. }
  9181. #endif //#ifndef TOLUA_DISABLE
  9182. /* method: GetTexture of class Material */
  9183. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetTexture00
  9184. static int tolua_Graphics_Material_GetTexture00(lua_State* tolua_S)
  9185. {
  9186. #ifndef TOLUA_RELEASE
  9187. tolua_Error tolua_err;
  9188. if (
  9189. !tolua_isusertype(tolua_S,1,"const Material",0,&tolua_err) ||
  9190. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9191. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9192. )
  9193. goto tolua_lerror;
  9194. else
  9195. #endif
  9196. {
  9197. const Material* self = (const Material*) tolua_tousertype(tolua_S,1,0);
  9198. TextureUnit unit = ((TextureUnit) (int) tolua_tonumber(tolua_S,2,0));
  9199. #ifndef TOLUA_RELEASE
  9200. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTexture'", NULL);
  9201. #endif
  9202. {
  9203. Texture* tolua_ret = (Texture*) self->GetTexture(unit);
  9204. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Texture");
  9205. }
  9206. }
  9207. return 1;
  9208. #ifndef TOLUA_RELEASE
  9209. tolua_lerror:
  9210. tolua_error(tolua_S,"#ferror in function 'GetTexture'.",&tolua_err);
  9211. return 0;
  9212. #endif
  9213. }
  9214. #endif //#ifndef TOLUA_DISABLE
  9215. /* method: GetTextures of class Material */
  9216. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetTextures00
  9217. static int tolua_Graphics_Material_GetTextures00(lua_State* tolua_S)
  9218. {
  9219. #ifndef TOLUA_RELEASE
  9220. tolua_Error tolua_err;
  9221. if (
  9222. !tolua_isusertype(tolua_S,1,"const Material",0,&tolua_err) ||
  9223. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9224. )
  9225. goto tolua_lerror;
  9226. else
  9227. #endif
  9228. {
  9229. const Material* self = (const Material*) tolua_tousertype(tolua_S,1,0);
  9230. #ifndef TOLUA_RELEASE
  9231. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTextures'", NULL);
  9232. #endif
  9233. {
  9234. const SharedPtr<Texture>* tolua_ret = (const SharedPtr<Texture>*) self->GetTextures();
  9235. tolua_pushusertype(tolua_S,(void*)tolua_ret,"const SharedPtr<Texture>");
  9236. }
  9237. }
  9238. return 1;
  9239. #ifndef TOLUA_RELEASE
  9240. tolua_lerror:
  9241. tolua_error(tolua_S,"#ferror in function 'GetTextures'.",&tolua_err);
  9242. return 0;
  9243. #endif
  9244. }
  9245. #endif //#ifndef TOLUA_DISABLE
  9246. /* method: GetShaderParameter of class Material */
  9247. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetShaderParameter00
  9248. static int tolua_Graphics_Material_GetShaderParameter00(lua_State* tolua_S)
  9249. {
  9250. #ifndef TOLUA_RELEASE
  9251. tolua_Error tolua_err;
  9252. if (
  9253. !tolua_isusertype(tolua_S,1,"const Material",0,&tolua_err) ||
  9254. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  9255. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9256. )
  9257. goto tolua_lerror;
  9258. else
  9259. #endif
  9260. {
  9261. const Material* self = (const Material*) tolua_tousertype(tolua_S,1,0);
  9262. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  9263. #ifndef TOLUA_RELEASE
  9264. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShaderParameter'", NULL);
  9265. #endif
  9266. {
  9267. const Vector4& tolua_ret = (const Vector4&) self->GetShaderParameter(*name);
  9268. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector4");
  9269. }
  9270. }
  9271. return 1;
  9272. #ifndef TOLUA_RELEASE
  9273. tolua_lerror:
  9274. tolua_error(tolua_S,"#ferror in function 'GetShaderParameter'.",&tolua_err);
  9275. return 0;
  9276. #endif
  9277. }
  9278. #endif //#ifndef TOLUA_DISABLE
  9279. /* method: GetCullMode of class Material */
  9280. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetCullMode00
  9281. static int tolua_Graphics_Material_GetCullMode00(lua_State* tolua_S)
  9282. {
  9283. #ifndef TOLUA_RELEASE
  9284. tolua_Error tolua_err;
  9285. if (
  9286. !tolua_isusertype(tolua_S,1,"const Material",0,&tolua_err) ||
  9287. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9288. )
  9289. goto tolua_lerror;
  9290. else
  9291. #endif
  9292. {
  9293. const Material* self = (const Material*) tolua_tousertype(tolua_S,1,0);
  9294. #ifndef TOLUA_RELEASE
  9295. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCullMode'", NULL);
  9296. #endif
  9297. {
  9298. CullMode tolua_ret = (CullMode) self->GetCullMode();
  9299. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  9300. }
  9301. }
  9302. return 1;
  9303. #ifndef TOLUA_RELEASE
  9304. tolua_lerror:
  9305. tolua_error(tolua_S,"#ferror in function 'GetCullMode'.",&tolua_err);
  9306. return 0;
  9307. #endif
  9308. }
  9309. #endif //#ifndef TOLUA_DISABLE
  9310. /* method: GetShadowCullMode of class Material */
  9311. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetShadowCullMode00
  9312. static int tolua_Graphics_Material_GetShadowCullMode00(lua_State* tolua_S)
  9313. {
  9314. #ifndef TOLUA_RELEASE
  9315. tolua_Error tolua_err;
  9316. if (
  9317. !tolua_isusertype(tolua_S,1,"const Material",0,&tolua_err) ||
  9318. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9319. )
  9320. goto tolua_lerror;
  9321. else
  9322. #endif
  9323. {
  9324. const Material* self = (const Material*) tolua_tousertype(tolua_S,1,0);
  9325. #ifndef TOLUA_RELEASE
  9326. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowCullMode'", NULL);
  9327. #endif
  9328. {
  9329. CullMode tolua_ret = (CullMode) self->GetShadowCullMode();
  9330. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  9331. }
  9332. }
  9333. return 1;
  9334. #ifndef TOLUA_RELEASE
  9335. tolua_lerror:
  9336. tolua_error(tolua_S,"#ferror in function 'GetShadowCullMode'.",&tolua_err);
  9337. return 0;
  9338. #endif
  9339. }
  9340. #endif //#ifndef TOLUA_DISABLE
  9341. /* method: GetDepthBias of class Material */
  9342. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetDepthBias00
  9343. static int tolua_Graphics_Material_GetDepthBias00(lua_State* tolua_S)
  9344. {
  9345. #ifndef TOLUA_RELEASE
  9346. tolua_Error tolua_err;
  9347. if (
  9348. !tolua_isusertype(tolua_S,1,"const Material",0,&tolua_err) ||
  9349. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9350. )
  9351. goto tolua_lerror;
  9352. else
  9353. #endif
  9354. {
  9355. const Material* self = (const Material*) tolua_tousertype(tolua_S,1,0);
  9356. #ifndef TOLUA_RELEASE
  9357. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDepthBias'", NULL);
  9358. #endif
  9359. {
  9360. const BiasParameters& tolua_ret = (const BiasParameters&) self->GetDepthBias();
  9361. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const BiasParameters");
  9362. }
  9363. }
  9364. return 1;
  9365. #ifndef TOLUA_RELEASE
  9366. tolua_lerror:
  9367. tolua_error(tolua_S,"#ferror in function 'GetDepthBias'.",&tolua_err);
  9368. return 0;
  9369. #endif
  9370. }
  9371. #endif //#ifndef TOLUA_DISABLE
  9372. /* method: GetAuxViewFrameNumber of class Material */
  9373. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetAuxViewFrameNumber00
  9374. static int tolua_Graphics_Material_GetAuxViewFrameNumber00(lua_State* tolua_S)
  9375. {
  9376. #ifndef TOLUA_RELEASE
  9377. tolua_Error tolua_err;
  9378. if (
  9379. !tolua_isusertype(tolua_S,1,"const Material",0,&tolua_err) ||
  9380. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9381. )
  9382. goto tolua_lerror;
  9383. else
  9384. #endif
  9385. {
  9386. const Material* self = (const Material*) tolua_tousertype(tolua_S,1,0);
  9387. #ifndef TOLUA_RELEASE
  9388. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAuxViewFrameNumber'", NULL);
  9389. #endif
  9390. {
  9391. unsigned tolua_ret = (unsigned) self->GetAuxViewFrameNumber();
  9392. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  9393. }
  9394. }
  9395. return 1;
  9396. #ifndef TOLUA_RELEASE
  9397. tolua_lerror:
  9398. tolua_error(tolua_S,"#ferror in function 'GetAuxViewFrameNumber'.",&tolua_err);
  9399. return 0;
  9400. #endif
  9401. }
  9402. #endif //#ifndef TOLUA_DISABLE
  9403. /* method: GetOcclusion of class Material */
  9404. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetOcclusion00
  9405. static int tolua_Graphics_Material_GetOcclusion00(lua_State* tolua_S)
  9406. {
  9407. #ifndef TOLUA_RELEASE
  9408. tolua_Error tolua_err;
  9409. if (
  9410. !tolua_isusertype(tolua_S,1,"const Material",0,&tolua_err) ||
  9411. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9412. )
  9413. goto tolua_lerror;
  9414. else
  9415. #endif
  9416. {
  9417. const Material* self = (const Material*) tolua_tousertype(tolua_S,1,0);
  9418. #ifndef TOLUA_RELEASE
  9419. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOcclusion'", NULL);
  9420. #endif
  9421. {
  9422. bool tolua_ret = (bool) self->GetOcclusion();
  9423. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  9424. }
  9425. }
  9426. return 1;
  9427. #ifndef TOLUA_RELEASE
  9428. tolua_lerror:
  9429. tolua_error(tolua_S,"#ferror in function 'GetOcclusion'.",&tolua_err);
  9430. return 0;
  9431. #endif
  9432. }
  9433. #endif //#ifndef TOLUA_DISABLE
  9434. /* method: GetSpecular of class Material */
  9435. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetSpecular00
  9436. static int tolua_Graphics_Material_GetSpecular00(lua_State* tolua_S)
  9437. {
  9438. #ifndef TOLUA_RELEASE
  9439. tolua_Error tolua_err;
  9440. if (
  9441. !tolua_isusertype(tolua_S,1,"const Material",0,&tolua_err) ||
  9442. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9443. )
  9444. goto tolua_lerror;
  9445. else
  9446. #endif
  9447. {
  9448. const Material* self = (const Material*) tolua_tousertype(tolua_S,1,0);
  9449. #ifndef TOLUA_RELEASE
  9450. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSpecular'", NULL);
  9451. #endif
  9452. {
  9453. bool tolua_ret = (bool) self->GetSpecular();
  9454. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  9455. }
  9456. }
  9457. return 1;
  9458. #ifndef TOLUA_RELEASE
  9459. tolua_lerror:
  9460. tolua_error(tolua_S,"#ferror in function 'GetSpecular'.",&tolua_err);
  9461. return 0;
  9462. #endif
  9463. }
  9464. #endif //#ifndef TOLUA_DISABLE
  9465. /* method: GetTextureUnitName of class Material */
  9466. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetTextureUnitName00
  9467. static int tolua_Graphics_Material_GetTextureUnitName00(lua_State* tolua_S)
  9468. {
  9469. #ifndef TOLUA_RELEASE
  9470. tolua_Error tolua_err;
  9471. if (
  9472. !tolua_isusertable(tolua_S,1,"Material",0,&tolua_err) ||
  9473. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9474. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9475. )
  9476. goto tolua_lerror;
  9477. else
  9478. #endif
  9479. {
  9480. TextureUnit unit = ((TextureUnit) (int) tolua_tonumber(tolua_S,2,0));
  9481. {
  9482. String tolua_ret = (String) Material::GetTextureUnitName(unit);
  9483. {
  9484. #ifdef __cplusplus
  9485. void* tolua_obj = Mtolua_new((String)(tolua_ret));
  9486. tolua_pushusertype(tolua_S,tolua_obj,"String");
  9487. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  9488. #else
  9489. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(String));
  9490. tolua_pushusertype(tolua_S,tolua_obj,"String");
  9491. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  9492. #endif
  9493. }
  9494. }
  9495. }
  9496. return 1;
  9497. #ifndef TOLUA_RELEASE
  9498. tolua_lerror:
  9499. tolua_error(tolua_S,"#ferror in function 'GetTextureUnitName'.",&tolua_err);
  9500. return 0;
  9501. #endif
  9502. }
  9503. #endif //#ifndef TOLUA_DISABLE
  9504. /* method: GetBoundingBox of class Model */
  9505. #ifndef TOLUA_DISABLE_tolua_Graphics_Model_GetBoundingBox00
  9506. static int tolua_Graphics_Model_GetBoundingBox00(lua_State* tolua_S)
  9507. {
  9508. #ifndef TOLUA_RELEASE
  9509. tolua_Error tolua_err;
  9510. if (
  9511. !tolua_isusertype(tolua_S,1,"const Model",0,&tolua_err) ||
  9512. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9513. )
  9514. goto tolua_lerror;
  9515. else
  9516. #endif
  9517. {
  9518. const Model* self = (const Model*) tolua_tousertype(tolua_S,1,0);
  9519. #ifndef TOLUA_RELEASE
  9520. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBoundingBox'", NULL);
  9521. #endif
  9522. {
  9523. const BoundingBox& tolua_ret = (const BoundingBox&) self->GetBoundingBox();
  9524. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const BoundingBox");
  9525. }
  9526. }
  9527. return 1;
  9528. #ifndef TOLUA_RELEASE
  9529. tolua_lerror:
  9530. tolua_error(tolua_S,"#ferror in function 'GetBoundingBox'.",&tolua_err);
  9531. return 0;
  9532. #endif
  9533. }
  9534. #endif //#ifndef TOLUA_DISABLE
  9535. /* method: GetSkeleton of class Model */
  9536. #ifndef TOLUA_DISABLE_tolua_Graphics_Model_GetSkeleton00
  9537. static int tolua_Graphics_Model_GetSkeleton00(lua_State* tolua_S)
  9538. {
  9539. #ifndef TOLUA_RELEASE
  9540. tolua_Error tolua_err;
  9541. if (
  9542. !tolua_isusertype(tolua_S,1,"Model",0,&tolua_err) ||
  9543. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9544. )
  9545. goto tolua_lerror;
  9546. else
  9547. #endif
  9548. {
  9549. Model* self = (Model*) tolua_tousertype(tolua_S,1,0);
  9550. #ifndef TOLUA_RELEASE
  9551. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSkeleton'", NULL);
  9552. #endif
  9553. {
  9554. Skeleton& tolua_ret = (Skeleton&) self->GetSkeleton();
  9555. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"Skeleton");
  9556. }
  9557. }
  9558. return 1;
  9559. #ifndef TOLUA_RELEASE
  9560. tolua_lerror:
  9561. tolua_error(tolua_S,"#ferror in function 'GetSkeleton'.",&tolua_err);
  9562. return 0;
  9563. #endif
  9564. }
  9565. #endif //#ifndef TOLUA_DISABLE
  9566. /* method: GetNumGeometries of class Model */
  9567. #ifndef TOLUA_DISABLE_tolua_Graphics_Model_GetNumGeometries00
  9568. static int tolua_Graphics_Model_GetNumGeometries00(lua_State* tolua_S)
  9569. {
  9570. #ifndef TOLUA_RELEASE
  9571. tolua_Error tolua_err;
  9572. if (
  9573. !tolua_isusertype(tolua_S,1,"const Model",0,&tolua_err) ||
  9574. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9575. )
  9576. goto tolua_lerror;
  9577. else
  9578. #endif
  9579. {
  9580. const Model* self = (const Model*) tolua_tousertype(tolua_S,1,0);
  9581. #ifndef TOLUA_RELEASE
  9582. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumGeometries'", NULL);
  9583. #endif
  9584. {
  9585. unsigned tolua_ret = (unsigned) self->GetNumGeometries();
  9586. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  9587. }
  9588. }
  9589. return 1;
  9590. #ifndef TOLUA_RELEASE
  9591. tolua_lerror:
  9592. tolua_error(tolua_S,"#ferror in function 'GetNumGeometries'.",&tolua_err);
  9593. return 0;
  9594. #endif
  9595. }
  9596. #endif //#ifndef TOLUA_DISABLE
  9597. /* method: GetNumGeometryLodLevels of class Model */
  9598. #ifndef TOLUA_DISABLE_tolua_Graphics_Model_GetNumGeometryLodLevels00
  9599. static int tolua_Graphics_Model_GetNumGeometryLodLevels00(lua_State* tolua_S)
  9600. {
  9601. #ifndef TOLUA_RELEASE
  9602. tolua_Error tolua_err;
  9603. if (
  9604. !tolua_isusertype(tolua_S,1,"const Model",0,&tolua_err) ||
  9605. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9606. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9607. )
  9608. goto tolua_lerror;
  9609. else
  9610. #endif
  9611. {
  9612. const Model* self = (const Model*) tolua_tousertype(tolua_S,1,0);
  9613. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  9614. #ifndef TOLUA_RELEASE
  9615. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumGeometryLodLevels'", NULL);
  9616. #endif
  9617. {
  9618. unsigned tolua_ret = (unsigned) self->GetNumGeometryLodLevels(index);
  9619. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  9620. }
  9621. }
  9622. return 1;
  9623. #ifndef TOLUA_RELEASE
  9624. tolua_lerror:
  9625. tolua_error(tolua_S,"#ferror in function 'GetNumGeometryLodLevels'.",&tolua_err);
  9626. return 0;
  9627. #endif
  9628. }
  9629. #endif //#ifndef TOLUA_DISABLE
  9630. /* method: GetGeometry of class Model */
  9631. #ifndef TOLUA_DISABLE_tolua_Graphics_Model_GetGeometry00
  9632. static int tolua_Graphics_Model_GetGeometry00(lua_State* tolua_S)
  9633. {
  9634. #ifndef TOLUA_RELEASE
  9635. tolua_Error tolua_err;
  9636. if (
  9637. !tolua_isusertype(tolua_S,1,"const Model",0,&tolua_err) ||
  9638. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9639. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9640. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9641. )
  9642. goto tolua_lerror;
  9643. else
  9644. #endif
  9645. {
  9646. const Model* self = (const Model*) tolua_tousertype(tolua_S,1,0);
  9647. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  9648. unsigned lodLevel = ((unsigned) tolua_tonumber(tolua_S,3,0));
  9649. #ifndef TOLUA_RELEASE
  9650. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetGeometry'", NULL);
  9651. #endif
  9652. {
  9653. Geometry* tolua_ret = (Geometry*) self->GetGeometry(index,lodLevel);
  9654. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Geometry");
  9655. }
  9656. }
  9657. return 1;
  9658. #ifndef TOLUA_RELEASE
  9659. tolua_lerror:
  9660. tolua_error(tolua_S,"#ferror in function 'GetGeometry'.",&tolua_err);
  9661. return 0;
  9662. #endif
  9663. }
  9664. #endif //#ifndef TOLUA_DISABLE
  9665. /* method: GetNumMorphs of class Model */
  9666. #ifndef TOLUA_DISABLE_tolua_Graphics_Model_GetNumMorphs00
  9667. static int tolua_Graphics_Model_GetNumMorphs00(lua_State* tolua_S)
  9668. {
  9669. #ifndef TOLUA_RELEASE
  9670. tolua_Error tolua_err;
  9671. if (
  9672. !tolua_isusertype(tolua_S,1,"const Model",0,&tolua_err) ||
  9673. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9674. )
  9675. goto tolua_lerror;
  9676. else
  9677. #endif
  9678. {
  9679. const Model* self = (const Model*) tolua_tousertype(tolua_S,1,0);
  9680. #ifndef TOLUA_RELEASE
  9681. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumMorphs'", NULL);
  9682. #endif
  9683. {
  9684. unsigned tolua_ret = (unsigned) self->GetNumMorphs();
  9685. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  9686. }
  9687. }
  9688. return 1;
  9689. #ifndef TOLUA_RELEASE
  9690. tolua_lerror:
  9691. tolua_error(tolua_S,"#ferror in function 'GetNumMorphs'.",&tolua_err);
  9692. return 0;
  9693. #endif
  9694. }
  9695. #endif //#ifndef TOLUA_DISABLE
  9696. /* method: GetMorph of class Model */
  9697. #ifndef TOLUA_DISABLE_tolua_Graphics_Model_GetMorph00
  9698. static int tolua_Graphics_Model_GetMorph00(lua_State* tolua_S)
  9699. {
  9700. #ifndef TOLUA_RELEASE
  9701. tolua_Error tolua_err;
  9702. if (
  9703. !tolua_isusertype(tolua_S,1,"const Model",0,&tolua_err) ||
  9704. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9705. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9706. )
  9707. goto tolua_lerror;
  9708. else
  9709. #endif
  9710. {
  9711. const Model* self = (const Model*) tolua_tousertype(tolua_S,1,0);
  9712. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  9713. #ifndef TOLUA_RELEASE
  9714. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMorph'", NULL);
  9715. #endif
  9716. {
  9717. const ModelMorph* tolua_ret = (const ModelMorph*) self->GetMorph(index);
  9718. tolua_pushusertype(tolua_S,(void*)tolua_ret,"const ModelMorph");
  9719. }
  9720. }
  9721. return 1;
  9722. #ifndef TOLUA_RELEASE
  9723. tolua_lerror:
  9724. tolua_error(tolua_S,"#ferror in function 'GetMorph'.",&tolua_err);
  9725. return 0;
  9726. #endif
  9727. }
  9728. #endif //#ifndef TOLUA_DISABLE
  9729. /* method: GetMorph of class Model */
  9730. #ifndef TOLUA_DISABLE_tolua_Graphics_Model_GetMorph01
  9731. static int tolua_Graphics_Model_GetMorph01(lua_State* tolua_S)
  9732. {
  9733. tolua_Error tolua_err;
  9734. if (
  9735. !tolua_isusertype(tolua_S,1,"const Model",0,&tolua_err) ||
  9736. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  9737. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9738. )
  9739. goto tolua_lerror;
  9740. else
  9741. {
  9742. const Model* self = (const Model*) tolua_tousertype(tolua_S,1,0);
  9743. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  9744. #ifndef TOLUA_RELEASE
  9745. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMorph'", NULL);
  9746. #endif
  9747. {
  9748. const ModelMorph* tolua_ret = (const ModelMorph*) self->GetMorph(*name);
  9749. tolua_pushusertype(tolua_S,(void*)tolua_ret,"const ModelMorph");
  9750. }
  9751. }
  9752. return 1;
  9753. tolua_lerror:
  9754. return tolua_Graphics_Model_GetMorph00(tolua_S);
  9755. }
  9756. #endif //#ifndef TOLUA_DISABLE
  9757. /* method: GetMorph of class Model */
  9758. #ifndef TOLUA_DISABLE_tolua_Graphics_Model_GetMorph02
  9759. static int tolua_Graphics_Model_GetMorph02(lua_State* tolua_S)
  9760. {
  9761. tolua_Error tolua_err;
  9762. if (
  9763. !tolua_isusertype(tolua_S,1,"const Model",0,&tolua_err) ||
  9764. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"StringHash",0,&tolua_err)) ||
  9765. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9766. )
  9767. goto tolua_lerror;
  9768. else
  9769. {
  9770. const Model* self = (const Model*) tolua_tousertype(tolua_S,1,0);
  9771. StringHash nameHash = *((StringHash*) tolua_tousertype(tolua_S,2,0));
  9772. #ifndef TOLUA_RELEASE
  9773. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMorph'", NULL);
  9774. #endif
  9775. {
  9776. const ModelMorph* tolua_ret = (const ModelMorph*) self->GetMorph(nameHash);
  9777. tolua_pushusertype(tolua_S,(void*)tolua_ret,"const ModelMorph");
  9778. }
  9779. }
  9780. return 1;
  9781. tolua_lerror:
  9782. return tolua_Graphics_Model_GetMorph01(tolua_S);
  9783. }
  9784. #endif //#ifndef TOLUA_DISABLE
  9785. /* method: GetMorphRangeStart of class Model */
  9786. #ifndef TOLUA_DISABLE_tolua_Graphics_Model_GetMorphRangeStart00
  9787. static int tolua_Graphics_Model_GetMorphRangeStart00(lua_State* tolua_S)
  9788. {
  9789. #ifndef TOLUA_RELEASE
  9790. tolua_Error tolua_err;
  9791. if (
  9792. !tolua_isusertype(tolua_S,1,"const Model",0,&tolua_err) ||
  9793. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9794. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9795. )
  9796. goto tolua_lerror;
  9797. else
  9798. #endif
  9799. {
  9800. const Model* self = (const Model*) tolua_tousertype(tolua_S,1,0);
  9801. unsigned bufferIndex = ((unsigned) tolua_tonumber(tolua_S,2,0));
  9802. #ifndef TOLUA_RELEASE
  9803. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMorphRangeStart'", NULL);
  9804. #endif
  9805. {
  9806. unsigned tolua_ret = (unsigned) self->GetMorphRangeStart(bufferIndex);
  9807. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  9808. }
  9809. }
  9810. return 1;
  9811. #ifndef TOLUA_RELEASE
  9812. tolua_lerror:
  9813. tolua_error(tolua_S,"#ferror in function 'GetMorphRangeStart'.",&tolua_err);
  9814. return 0;
  9815. #endif
  9816. }
  9817. #endif //#ifndef TOLUA_DISABLE
  9818. /* method: GetMorphRangeCount of class Model */
  9819. #ifndef TOLUA_DISABLE_tolua_Graphics_Model_GetMorphRangeCount00
  9820. static int tolua_Graphics_Model_GetMorphRangeCount00(lua_State* tolua_S)
  9821. {
  9822. #ifndef TOLUA_RELEASE
  9823. tolua_Error tolua_err;
  9824. if (
  9825. !tolua_isusertype(tolua_S,1,"const Model",0,&tolua_err) ||
  9826. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9827. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9828. )
  9829. goto tolua_lerror;
  9830. else
  9831. #endif
  9832. {
  9833. const Model* self = (const Model*) tolua_tousertype(tolua_S,1,0);
  9834. unsigned bufferIndex = ((unsigned) tolua_tonumber(tolua_S,2,0));
  9835. #ifndef TOLUA_RELEASE
  9836. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMorphRangeCount'", NULL);
  9837. #endif
  9838. {
  9839. unsigned tolua_ret = (unsigned) self->GetMorphRangeCount(bufferIndex);
  9840. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  9841. }
  9842. }
  9843. return 1;
  9844. #ifndef TOLUA_RELEASE
  9845. tolua_lerror:
  9846. tolua_error(tolua_S,"#ferror in function 'GetMorphRangeCount'.",&tolua_err);
  9847. return 0;
  9848. #endif
  9849. }
  9850. #endif //#ifndef TOLUA_DISABLE
  9851. /* method: Resize of class Octree */
  9852. #ifndef TOLUA_DISABLE_tolua_Graphics_Octree_Resize00
  9853. static int tolua_Graphics_Octree_Resize00(lua_State* tolua_S)
  9854. {
  9855. #ifndef TOLUA_RELEASE
  9856. tolua_Error tolua_err;
  9857. if (
  9858. !tolua_isusertype(tolua_S,1,"Octree",0,&tolua_err) ||
  9859. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const BoundingBox",0,&tolua_err)) ||
  9860. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9861. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9862. )
  9863. goto tolua_lerror;
  9864. else
  9865. #endif
  9866. {
  9867. Octree* self = (Octree*) tolua_tousertype(tolua_S,1,0);
  9868. const BoundingBox* box = ((const BoundingBox*) tolua_tousertype(tolua_S,2,0));
  9869. unsigned numLevels = ((unsigned) tolua_tonumber(tolua_S,3,0));
  9870. #ifndef TOLUA_RELEASE
  9871. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Resize'", NULL);
  9872. #endif
  9873. {
  9874. self->Resize(*box,numLevels);
  9875. }
  9876. }
  9877. return 0;
  9878. #ifndef TOLUA_RELEASE
  9879. tolua_lerror:
  9880. tolua_error(tolua_S,"#ferror in function 'Resize'.",&tolua_err);
  9881. return 0;
  9882. #endif
  9883. }
  9884. #endif //#ifndef TOLUA_DISABLE
  9885. /* method: Update of class Octree */
  9886. #ifndef TOLUA_DISABLE_tolua_Graphics_Octree_Update00
  9887. static int tolua_Graphics_Octree_Update00(lua_State* tolua_S)
  9888. {
  9889. #ifndef TOLUA_RELEASE
  9890. tolua_Error tolua_err;
  9891. if (
  9892. !tolua_isusertype(tolua_S,1,"Octree",0,&tolua_err) ||
  9893. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const FrameInfo",0,&tolua_err)) ||
  9894. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9895. )
  9896. goto tolua_lerror;
  9897. else
  9898. #endif
  9899. {
  9900. Octree* self = (Octree*) tolua_tousertype(tolua_S,1,0);
  9901. const FrameInfo* frame = ((const FrameInfo*) tolua_tousertype(tolua_S,2,0));
  9902. #ifndef TOLUA_RELEASE
  9903. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Update'", NULL);
  9904. #endif
  9905. {
  9906. self->Update(*frame);
  9907. }
  9908. }
  9909. return 0;
  9910. #ifndef TOLUA_RELEASE
  9911. tolua_lerror:
  9912. tolua_error(tolua_S,"#ferror in function 'Update'.",&tolua_err);
  9913. return 0;
  9914. #endif
  9915. }
  9916. #endif //#ifndef TOLUA_DISABLE
  9917. /* method: AddManualDrawable of class Octree */
  9918. #ifndef TOLUA_DISABLE_tolua_Graphics_Octree_AddManualDrawable00
  9919. static int tolua_Graphics_Octree_AddManualDrawable00(lua_State* tolua_S)
  9920. {
  9921. #ifndef TOLUA_RELEASE
  9922. tolua_Error tolua_err;
  9923. if (
  9924. !tolua_isusertype(tolua_S,1,"Octree",0,&tolua_err) ||
  9925. !tolua_isusertype(tolua_S,2,"Drawable",0,&tolua_err) ||
  9926. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9927. )
  9928. goto tolua_lerror;
  9929. else
  9930. #endif
  9931. {
  9932. Octree* self = (Octree*) tolua_tousertype(tolua_S,1,0);
  9933. Drawable* drawable = ((Drawable*) tolua_tousertype(tolua_S,2,0));
  9934. #ifndef TOLUA_RELEASE
  9935. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddManualDrawable'", NULL);
  9936. #endif
  9937. {
  9938. self->AddManualDrawable(drawable);
  9939. }
  9940. }
  9941. return 0;
  9942. #ifndef TOLUA_RELEASE
  9943. tolua_lerror:
  9944. tolua_error(tolua_S,"#ferror in function 'AddManualDrawable'.",&tolua_err);
  9945. return 0;
  9946. #endif
  9947. }
  9948. #endif //#ifndef TOLUA_DISABLE
  9949. /* method: RemoveManualDrawable of class Octree */
  9950. #ifndef TOLUA_DISABLE_tolua_Graphics_Octree_RemoveManualDrawable00
  9951. static int tolua_Graphics_Octree_RemoveManualDrawable00(lua_State* tolua_S)
  9952. {
  9953. #ifndef TOLUA_RELEASE
  9954. tolua_Error tolua_err;
  9955. if (
  9956. !tolua_isusertype(tolua_S,1,"Octree",0,&tolua_err) ||
  9957. !tolua_isusertype(tolua_S,2,"Drawable",0,&tolua_err) ||
  9958. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9959. )
  9960. goto tolua_lerror;
  9961. else
  9962. #endif
  9963. {
  9964. Octree* self = (Octree*) tolua_tousertype(tolua_S,1,0);
  9965. Drawable* drawable = ((Drawable*) tolua_tousertype(tolua_S,2,0));
  9966. #ifndef TOLUA_RELEASE
  9967. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveManualDrawable'", NULL);
  9968. #endif
  9969. {
  9970. self->RemoveManualDrawable(drawable);
  9971. }
  9972. }
  9973. return 0;
  9974. #ifndef TOLUA_RELEASE
  9975. tolua_lerror:
  9976. tolua_error(tolua_S,"#ferror in function 'RemoveManualDrawable'.",&tolua_err);
  9977. return 0;
  9978. #endif
  9979. }
  9980. #endif //#ifndef TOLUA_DISABLE
  9981. /* method: GetDrawables of class Octree */
  9982. #ifndef TOLUA_DISABLE_tolua_Graphics_Octree_GetDrawables00
  9983. static int tolua_Graphics_Octree_GetDrawables00(lua_State* tolua_S)
  9984. {
  9985. #ifndef TOLUA_RELEASE
  9986. tolua_Error tolua_err;
  9987. if (
  9988. !tolua_isusertype(tolua_S,1,"const Octree",0,&tolua_err) ||
  9989. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"OctreeQuery",0,&tolua_err)) ||
  9990. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9991. )
  9992. goto tolua_lerror;
  9993. else
  9994. #endif
  9995. {
  9996. const Octree* self = (const Octree*) tolua_tousertype(tolua_S,1,0);
  9997. OctreeQuery* query = ((OctreeQuery*) tolua_tousertype(tolua_S,2,0));
  9998. #ifndef TOLUA_RELEASE
  9999. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDrawables'", NULL);
  10000. #endif
  10001. {
  10002. self->GetDrawables(*query);
  10003. }
  10004. }
  10005. return 0;
  10006. #ifndef TOLUA_RELEASE
  10007. tolua_lerror:
  10008. tolua_error(tolua_S,"#ferror in function 'GetDrawables'.",&tolua_err);
  10009. return 0;
  10010. #endif
  10011. }
  10012. #endif //#ifndef TOLUA_DISABLE
  10013. /* method: Raycast of class Octree */
  10014. #ifndef TOLUA_DISABLE_tolua_Graphics_Octree_Raycast00
  10015. static int tolua_Graphics_Octree_Raycast00(lua_State* tolua_S)
  10016. {
  10017. #ifndef TOLUA_RELEASE
  10018. tolua_Error tolua_err;
  10019. if (
  10020. !tolua_isusertype(tolua_S,1,"const Octree",0,&tolua_err) ||
  10021. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"RayOctreeQuery",0,&tolua_err)) ||
  10022. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10023. )
  10024. goto tolua_lerror;
  10025. else
  10026. #endif
  10027. {
  10028. const Octree* self = (const Octree*) tolua_tousertype(tolua_S,1,0);
  10029. RayOctreeQuery* query = ((RayOctreeQuery*) tolua_tousertype(tolua_S,2,0));
  10030. #ifndef TOLUA_RELEASE
  10031. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Raycast'", NULL);
  10032. #endif
  10033. {
  10034. self->Raycast(*query);
  10035. }
  10036. }
  10037. return 0;
  10038. #ifndef TOLUA_RELEASE
  10039. tolua_lerror:
  10040. tolua_error(tolua_S,"#ferror in function 'Raycast'.",&tolua_err);
  10041. return 0;
  10042. #endif
  10043. }
  10044. #endif //#ifndef TOLUA_DISABLE
  10045. /* method: RaycastSingle of class Octree */
  10046. #ifndef TOLUA_DISABLE_tolua_Graphics_Octree_RaycastSingle00
  10047. static int tolua_Graphics_Octree_RaycastSingle00(lua_State* tolua_S)
  10048. {
  10049. #ifndef TOLUA_RELEASE
  10050. tolua_Error tolua_err;
  10051. if (
  10052. !tolua_isusertype(tolua_S,1,"const Octree",0,&tolua_err) ||
  10053. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"RayOctreeQuery",0,&tolua_err)) ||
  10054. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10055. )
  10056. goto tolua_lerror;
  10057. else
  10058. #endif
  10059. {
  10060. const Octree* self = (const Octree*) tolua_tousertype(tolua_S,1,0);
  10061. RayOctreeQuery* query = ((RayOctreeQuery*) tolua_tousertype(tolua_S,2,0));
  10062. #ifndef TOLUA_RELEASE
  10063. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RaycastSingle'", NULL);
  10064. #endif
  10065. {
  10066. self->RaycastSingle(*query);
  10067. }
  10068. }
  10069. return 0;
  10070. #ifndef TOLUA_RELEASE
  10071. tolua_lerror:
  10072. tolua_error(tolua_S,"#ferror in function 'RaycastSingle'.",&tolua_err);
  10073. return 0;
  10074. #endif
  10075. }
  10076. #endif //#ifndef TOLUA_DISABLE
  10077. /* method: GetNumLevels of class Octree */
  10078. #ifndef TOLUA_DISABLE_tolua_Graphics_Octree_GetNumLevels00
  10079. static int tolua_Graphics_Octree_GetNumLevels00(lua_State* tolua_S)
  10080. {
  10081. #ifndef TOLUA_RELEASE
  10082. tolua_Error tolua_err;
  10083. if (
  10084. !tolua_isusertype(tolua_S,1,"const Octree",0,&tolua_err) ||
  10085. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10086. )
  10087. goto tolua_lerror;
  10088. else
  10089. #endif
  10090. {
  10091. const Octree* self = (const Octree*) tolua_tousertype(tolua_S,1,0);
  10092. #ifndef TOLUA_RELEASE
  10093. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumLevels'", NULL);
  10094. #endif
  10095. {
  10096. unsigned tolua_ret = (unsigned) self->GetNumLevels();
  10097. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  10098. }
  10099. }
  10100. return 1;
  10101. #ifndef TOLUA_RELEASE
  10102. tolua_lerror:
  10103. tolua_error(tolua_S,"#ferror in function 'GetNumLevels'.",&tolua_err);
  10104. return 0;
  10105. #endif
  10106. }
  10107. #endif //#ifndef TOLUA_DISABLE
  10108. /* method: QueueUpdate of class Octree */
  10109. #ifndef TOLUA_DISABLE_tolua_Graphics_Octree_QueueUpdate00
  10110. static int tolua_Graphics_Octree_QueueUpdate00(lua_State* tolua_S)
  10111. {
  10112. #ifndef TOLUA_RELEASE
  10113. tolua_Error tolua_err;
  10114. if (
  10115. !tolua_isusertype(tolua_S,1,"Octree",0,&tolua_err) ||
  10116. !tolua_isusertype(tolua_S,2,"Drawable",0,&tolua_err) ||
  10117. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10118. )
  10119. goto tolua_lerror;
  10120. else
  10121. #endif
  10122. {
  10123. Octree* self = (Octree*) tolua_tousertype(tolua_S,1,0);
  10124. Drawable* drawable = ((Drawable*) tolua_tousertype(tolua_S,2,0));
  10125. #ifndef TOLUA_RELEASE
  10126. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'QueueUpdate'", NULL);
  10127. #endif
  10128. {
  10129. self->QueueUpdate(drawable);
  10130. }
  10131. }
  10132. return 0;
  10133. #ifndef TOLUA_RELEASE
  10134. tolua_lerror:
  10135. tolua_error(tolua_S,"#ferror in function 'QueueUpdate'.",&tolua_err);
  10136. return 0;
  10137. #endif
  10138. }
  10139. #endif //#ifndef TOLUA_DISABLE
  10140. /* method: QueueReinsertion of class Octree */
  10141. #ifndef TOLUA_DISABLE_tolua_Graphics_Octree_QueueReinsertion00
  10142. static int tolua_Graphics_Octree_QueueReinsertion00(lua_State* tolua_S)
  10143. {
  10144. #ifndef TOLUA_RELEASE
  10145. tolua_Error tolua_err;
  10146. if (
  10147. !tolua_isusertype(tolua_S,1,"Octree",0,&tolua_err) ||
  10148. !tolua_isusertype(tolua_S,2,"Drawable",0,&tolua_err) ||
  10149. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10150. )
  10151. goto tolua_lerror;
  10152. else
  10153. #endif
  10154. {
  10155. Octree* self = (Octree*) tolua_tousertype(tolua_S,1,0);
  10156. Drawable* drawable = ((Drawable*) tolua_tousertype(tolua_S,2,0));
  10157. #ifndef TOLUA_RELEASE
  10158. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'QueueReinsertion'", NULL);
  10159. #endif
  10160. {
  10161. self->QueueReinsertion(drawable);
  10162. }
  10163. }
  10164. return 0;
  10165. #ifndef TOLUA_RELEASE
  10166. tolua_lerror:
  10167. tolua_error(tolua_S,"#ferror in function 'QueueReinsertion'.",&tolua_err);
  10168. return 0;
  10169. #endif
  10170. }
  10171. #endif //#ifndef TOLUA_DISABLE
  10172. /* method: DrawDebugGeometry of class Octree */
  10173. #ifndef TOLUA_DISABLE_tolua_Graphics_Octree_DrawDebugGeometry00
  10174. static int tolua_Graphics_Octree_DrawDebugGeometry00(lua_State* tolua_S)
  10175. {
  10176. #ifndef TOLUA_RELEASE
  10177. tolua_Error tolua_err;
  10178. if (
  10179. !tolua_isusertype(tolua_S,1,"Octree",0,&tolua_err) ||
  10180. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  10181. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10182. )
  10183. goto tolua_lerror;
  10184. else
  10185. #endif
  10186. {
  10187. Octree* self = (Octree*) tolua_tousertype(tolua_S,1,0);
  10188. bool depthTest = ((bool) tolua_toboolean(tolua_S,2,0));
  10189. #ifndef TOLUA_RELEASE
  10190. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'DrawDebugGeometry'", NULL);
  10191. #endif
  10192. {
  10193. self->DrawDebugGeometry(depthTest);
  10194. }
  10195. }
  10196. return 0;
  10197. #ifndef TOLUA_RELEASE
  10198. tolua_lerror:
  10199. tolua_error(tolua_S,"#ferror in function 'DrawDebugGeometry'.",&tolua_err);
  10200. return 0;
  10201. #endif
  10202. }
  10203. #endif //#ifndef TOLUA_DISABLE
  10204. /* function: GetOctree */
  10205. #ifndef TOLUA_DISABLE_tolua_Graphics_GetOctree00
  10206. static int tolua_Graphics_GetOctree00(lua_State* tolua_S)
  10207. {
  10208. #ifndef TOLUA_RELEASE
  10209. tolua_Error tolua_err;
  10210. if (
  10211. !tolua_isnoobj(tolua_S,1,&tolua_err)
  10212. )
  10213. goto tolua_lerror;
  10214. else
  10215. #endif
  10216. {
  10217. {
  10218. Octree* tolua_ret = (Octree*) GetOctree();
  10219. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Octree");
  10220. }
  10221. }
  10222. return 1;
  10223. #ifndef TOLUA_RELEASE
  10224. tolua_lerror:
  10225. tolua_error(tolua_S,"#ferror in function 'GetOctree'.",&tolua_err);
  10226. return 0;
  10227. #endif
  10228. }
  10229. #endif //#ifndef TOLUA_DISABLE
  10230. /* method: new of class ColorFrame */
  10231. #ifndef TOLUA_DISABLE_tolua_Graphics_ColorFrame_new00
  10232. static int tolua_Graphics_ColorFrame_new00(lua_State* tolua_S)
  10233. {
  10234. #ifndef TOLUA_RELEASE
  10235. tolua_Error tolua_err;
  10236. if (
  10237. !tolua_isusertable(tolua_S,1,"ColorFrame",0,&tolua_err) ||
  10238. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10239. )
  10240. goto tolua_lerror;
  10241. else
  10242. #endif
  10243. {
  10244. {
  10245. ColorFrame* tolua_ret = (ColorFrame*) Mtolua_new((ColorFrame)());
  10246. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ColorFrame");
  10247. }
  10248. }
  10249. return 1;
  10250. #ifndef TOLUA_RELEASE
  10251. tolua_lerror:
  10252. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  10253. return 0;
  10254. #endif
  10255. }
  10256. #endif //#ifndef TOLUA_DISABLE
  10257. /* method: new_local of class ColorFrame */
  10258. #ifndef TOLUA_DISABLE_tolua_Graphics_ColorFrame_new00_local
  10259. static int tolua_Graphics_ColorFrame_new00_local(lua_State* tolua_S)
  10260. {
  10261. #ifndef TOLUA_RELEASE
  10262. tolua_Error tolua_err;
  10263. if (
  10264. !tolua_isusertable(tolua_S,1,"ColorFrame",0,&tolua_err) ||
  10265. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10266. )
  10267. goto tolua_lerror;
  10268. else
  10269. #endif
  10270. {
  10271. {
  10272. ColorFrame* tolua_ret = (ColorFrame*) Mtolua_new((ColorFrame)());
  10273. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ColorFrame");
  10274. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  10275. }
  10276. }
  10277. return 1;
  10278. #ifndef TOLUA_RELEASE
  10279. tolua_lerror:
  10280. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  10281. return 0;
  10282. #endif
  10283. }
  10284. #endif //#ifndef TOLUA_DISABLE
  10285. /* method: new of class ColorFrame */
  10286. #ifndef TOLUA_DISABLE_tolua_Graphics_ColorFrame_new01
  10287. static int tolua_Graphics_ColorFrame_new01(lua_State* tolua_S)
  10288. {
  10289. tolua_Error tolua_err;
  10290. if (
  10291. !tolua_isusertable(tolua_S,1,"ColorFrame",0,&tolua_err) ||
  10292. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  10293. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10294. )
  10295. goto tolua_lerror;
  10296. else
  10297. {
  10298. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  10299. {
  10300. ColorFrame* tolua_ret = (ColorFrame*) Mtolua_new((ColorFrame)(*color));
  10301. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ColorFrame");
  10302. }
  10303. }
  10304. return 1;
  10305. tolua_lerror:
  10306. return tolua_Graphics_ColorFrame_new00(tolua_S);
  10307. }
  10308. #endif //#ifndef TOLUA_DISABLE
  10309. /* method: new_local of class ColorFrame */
  10310. #ifndef TOLUA_DISABLE_tolua_Graphics_ColorFrame_new01_local
  10311. static int tolua_Graphics_ColorFrame_new01_local(lua_State* tolua_S)
  10312. {
  10313. tolua_Error tolua_err;
  10314. if (
  10315. !tolua_isusertable(tolua_S,1,"ColorFrame",0,&tolua_err) ||
  10316. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  10317. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10318. )
  10319. goto tolua_lerror;
  10320. else
  10321. {
  10322. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  10323. {
  10324. ColorFrame* tolua_ret = (ColorFrame*) Mtolua_new((ColorFrame)(*color));
  10325. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ColorFrame");
  10326. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  10327. }
  10328. }
  10329. return 1;
  10330. tolua_lerror:
  10331. return tolua_Graphics_ColorFrame_new00_local(tolua_S);
  10332. }
  10333. #endif //#ifndef TOLUA_DISABLE
  10334. /* method: new of class ColorFrame */
  10335. #ifndef TOLUA_DISABLE_tolua_Graphics_ColorFrame_new02
  10336. static int tolua_Graphics_ColorFrame_new02(lua_State* tolua_S)
  10337. {
  10338. tolua_Error tolua_err;
  10339. if (
  10340. !tolua_isusertable(tolua_S,1,"ColorFrame",0,&tolua_err) ||
  10341. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  10342. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  10343. !tolua_isnoobj(tolua_S,4,&tolua_err)
  10344. )
  10345. goto tolua_lerror;
  10346. else
  10347. {
  10348. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  10349. float time = ((float) tolua_tonumber(tolua_S,3,0));
  10350. {
  10351. ColorFrame* tolua_ret = (ColorFrame*) Mtolua_new((ColorFrame)(*color,time));
  10352. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ColorFrame");
  10353. }
  10354. }
  10355. return 1;
  10356. tolua_lerror:
  10357. return tolua_Graphics_ColorFrame_new01(tolua_S);
  10358. }
  10359. #endif //#ifndef TOLUA_DISABLE
  10360. /* method: new_local of class ColorFrame */
  10361. #ifndef TOLUA_DISABLE_tolua_Graphics_ColorFrame_new02_local
  10362. static int tolua_Graphics_ColorFrame_new02_local(lua_State* tolua_S)
  10363. {
  10364. tolua_Error tolua_err;
  10365. if (
  10366. !tolua_isusertable(tolua_S,1,"ColorFrame",0,&tolua_err) ||
  10367. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  10368. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  10369. !tolua_isnoobj(tolua_S,4,&tolua_err)
  10370. )
  10371. goto tolua_lerror;
  10372. else
  10373. {
  10374. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  10375. float time = ((float) tolua_tonumber(tolua_S,3,0));
  10376. {
  10377. ColorFrame* tolua_ret = (ColorFrame*) Mtolua_new((ColorFrame)(*color,time));
  10378. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ColorFrame");
  10379. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  10380. }
  10381. }
  10382. return 1;
  10383. tolua_lerror:
  10384. return tolua_Graphics_ColorFrame_new01_local(tolua_S);
  10385. }
  10386. #endif //#ifndef TOLUA_DISABLE
  10387. /* method: Interpolate of class ColorFrame */
  10388. #ifndef TOLUA_DISABLE_tolua_Graphics_ColorFrame_Interpolate00
  10389. static int tolua_Graphics_ColorFrame_Interpolate00(lua_State* tolua_S)
  10390. {
  10391. #ifndef TOLUA_RELEASE
  10392. tolua_Error tolua_err;
  10393. if (
  10394. !tolua_isusertype(tolua_S,1,"ColorFrame",0,&tolua_err) ||
  10395. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const ColorFrame",0,&tolua_err)) ||
  10396. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  10397. !tolua_isnoobj(tolua_S,4,&tolua_err)
  10398. )
  10399. goto tolua_lerror;
  10400. else
  10401. #endif
  10402. {
  10403. ColorFrame* self = (ColorFrame*) tolua_tousertype(tolua_S,1,0);
  10404. const ColorFrame* next = ((const ColorFrame*) tolua_tousertype(tolua_S,2,0));
  10405. float time = ((float) tolua_tonumber(tolua_S,3,0));
  10406. #ifndef TOLUA_RELEASE
  10407. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Interpolate'", NULL);
  10408. #endif
  10409. {
  10410. Color tolua_ret = (Color) self->Interpolate(*next,time);
  10411. {
  10412. #ifdef __cplusplus
  10413. void* tolua_obj = Mtolua_new((Color)(tolua_ret));
  10414. tolua_pushusertype(tolua_S,tolua_obj,"Color");
  10415. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  10416. #else
  10417. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Color));
  10418. tolua_pushusertype(tolua_S,tolua_obj,"Color");
  10419. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  10420. #endif
  10421. }
  10422. }
  10423. }
  10424. return 1;
  10425. #ifndef TOLUA_RELEASE
  10426. tolua_lerror:
  10427. tolua_error(tolua_S,"#ferror in function 'Interpolate'.",&tolua_err);
  10428. return 0;
  10429. #endif
  10430. }
  10431. #endif //#ifndef TOLUA_DISABLE
  10432. /* get function: color_ of class ColorFrame */
  10433. #ifndef TOLUA_DISABLE_tolua_get_ColorFrame_color
  10434. static int tolua_get_ColorFrame_color(lua_State* tolua_S)
  10435. {
  10436. ColorFrame* self = (ColorFrame*) tolua_tousertype(tolua_S,1,0);
  10437. #ifndef TOLUA_RELEASE
  10438. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'color_'",NULL);
  10439. #endif
  10440. tolua_pushusertype(tolua_S,(void*)&self->color_,"Color");
  10441. return 1;
  10442. }
  10443. #endif //#ifndef TOLUA_DISABLE
  10444. /* set function: color_ of class ColorFrame */
  10445. #ifndef TOLUA_DISABLE_tolua_set_ColorFrame_color
  10446. static int tolua_set_ColorFrame_color(lua_State* tolua_S)
  10447. {
  10448. ColorFrame* self = (ColorFrame*) tolua_tousertype(tolua_S,1,0);
  10449. #ifndef TOLUA_RELEASE
  10450. tolua_Error tolua_err;
  10451. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'color_'",NULL);
  10452. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Color",0,&tolua_err)))
  10453. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  10454. #endif
  10455. self->color_ = *((Color*) tolua_tousertype(tolua_S,2,0))
  10456. ;
  10457. return 0;
  10458. }
  10459. #endif //#ifndef TOLUA_DISABLE
  10460. /* get function: time_ of class ColorFrame */
  10461. #ifndef TOLUA_DISABLE_tolua_get_ColorFrame_time
  10462. static int tolua_get_ColorFrame_time(lua_State* tolua_S)
  10463. {
  10464. ColorFrame* self = (ColorFrame*) tolua_tousertype(tolua_S,1,0);
  10465. #ifndef TOLUA_RELEASE
  10466. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'time_'",NULL);
  10467. #endif
  10468. tolua_pushnumber(tolua_S,(lua_Number)self->time_);
  10469. return 1;
  10470. }
  10471. #endif //#ifndef TOLUA_DISABLE
  10472. /* set function: time_ of class ColorFrame */
  10473. #ifndef TOLUA_DISABLE_tolua_set_ColorFrame_time
  10474. static int tolua_set_ColorFrame_time(lua_State* tolua_S)
  10475. {
  10476. ColorFrame* self = (ColorFrame*) tolua_tousertype(tolua_S,1,0);
  10477. #ifndef TOLUA_RELEASE
  10478. tolua_Error tolua_err;
  10479. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'time_'",NULL);
  10480. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  10481. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  10482. #endif
  10483. self->time_ = ((float) tolua_tonumber(tolua_S,2,0))
  10484. ;
  10485. return 0;
  10486. }
  10487. #endif //#ifndef TOLUA_DISABLE
  10488. /* method: new of class TextureFrame */
  10489. #ifndef TOLUA_DISABLE_tolua_Graphics_TextureFrame_new00
  10490. static int tolua_Graphics_TextureFrame_new00(lua_State* tolua_S)
  10491. {
  10492. #ifndef TOLUA_RELEASE
  10493. tolua_Error tolua_err;
  10494. if (
  10495. !tolua_isusertable(tolua_S,1,"TextureFrame",0,&tolua_err) ||
  10496. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10497. )
  10498. goto tolua_lerror;
  10499. else
  10500. #endif
  10501. {
  10502. {
  10503. TextureFrame* tolua_ret = (TextureFrame*) Mtolua_new((TextureFrame)());
  10504. tolua_pushusertype(tolua_S,(void*)tolua_ret,"TextureFrame");
  10505. }
  10506. }
  10507. return 1;
  10508. #ifndef TOLUA_RELEASE
  10509. tolua_lerror:
  10510. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  10511. return 0;
  10512. #endif
  10513. }
  10514. #endif //#ifndef TOLUA_DISABLE
  10515. /* method: new_local of class TextureFrame */
  10516. #ifndef TOLUA_DISABLE_tolua_Graphics_TextureFrame_new00_local
  10517. static int tolua_Graphics_TextureFrame_new00_local(lua_State* tolua_S)
  10518. {
  10519. #ifndef TOLUA_RELEASE
  10520. tolua_Error tolua_err;
  10521. if (
  10522. !tolua_isusertable(tolua_S,1,"TextureFrame",0,&tolua_err) ||
  10523. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10524. )
  10525. goto tolua_lerror;
  10526. else
  10527. #endif
  10528. {
  10529. {
  10530. TextureFrame* tolua_ret = (TextureFrame*) Mtolua_new((TextureFrame)());
  10531. tolua_pushusertype(tolua_S,(void*)tolua_ret,"TextureFrame");
  10532. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  10533. }
  10534. }
  10535. return 1;
  10536. #ifndef TOLUA_RELEASE
  10537. tolua_lerror:
  10538. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  10539. return 0;
  10540. #endif
  10541. }
  10542. #endif //#ifndef TOLUA_DISABLE
  10543. /* get function: uv_ of class TextureFrame */
  10544. #ifndef TOLUA_DISABLE_tolua_get_TextureFrame_uv
  10545. static int tolua_get_TextureFrame_uv(lua_State* tolua_S)
  10546. {
  10547. TextureFrame* self = (TextureFrame*) tolua_tousertype(tolua_S,1,0);
  10548. #ifndef TOLUA_RELEASE
  10549. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'uv_'",NULL);
  10550. #endif
  10551. tolua_pushusertype(tolua_S,(void*)&self->uv_,"Rect");
  10552. return 1;
  10553. }
  10554. #endif //#ifndef TOLUA_DISABLE
  10555. /* set function: uv_ of class TextureFrame */
  10556. #ifndef TOLUA_DISABLE_tolua_set_TextureFrame_uv
  10557. static int tolua_set_TextureFrame_uv(lua_State* tolua_S)
  10558. {
  10559. TextureFrame* self = (TextureFrame*) tolua_tousertype(tolua_S,1,0);
  10560. #ifndef TOLUA_RELEASE
  10561. tolua_Error tolua_err;
  10562. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'uv_'",NULL);
  10563. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Rect",0,&tolua_err)))
  10564. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  10565. #endif
  10566. self->uv_ = *((Rect*) tolua_tousertype(tolua_S,2,0))
  10567. ;
  10568. return 0;
  10569. }
  10570. #endif //#ifndef TOLUA_DISABLE
  10571. /* get function: time_ of class TextureFrame */
  10572. #ifndef TOLUA_DISABLE_tolua_get_TextureFrame_time
  10573. static int tolua_get_TextureFrame_time(lua_State* tolua_S)
  10574. {
  10575. TextureFrame* self = (TextureFrame*) tolua_tousertype(tolua_S,1,0);
  10576. #ifndef TOLUA_RELEASE
  10577. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'time_'",NULL);
  10578. #endif
  10579. tolua_pushnumber(tolua_S,(lua_Number)self->time_);
  10580. return 1;
  10581. }
  10582. #endif //#ifndef TOLUA_DISABLE
  10583. /* set function: time_ of class TextureFrame */
  10584. #ifndef TOLUA_DISABLE_tolua_set_TextureFrame_time
  10585. static int tolua_set_TextureFrame_time(lua_State* tolua_S)
  10586. {
  10587. TextureFrame* self = (TextureFrame*) tolua_tousertype(tolua_S,1,0);
  10588. #ifndef TOLUA_RELEASE
  10589. tolua_Error tolua_err;
  10590. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'time_'",NULL);
  10591. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  10592. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  10593. #endif
  10594. self->time_ = ((float) tolua_tonumber(tolua_S,2,0))
  10595. ;
  10596. return 0;
  10597. }
  10598. #endif //#ifndef TOLUA_DISABLE
  10599. /* method: Load of class ParticleEmitter */
  10600. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_Load00
  10601. static int tolua_Graphics_ParticleEmitter_Load00(lua_State* tolua_S)
  10602. {
  10603. #ifndef TOLUA_RELEASE
  10604. tolua_Error tolua_err;
  10605. if (
  10606. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10607. !tolua_isusertype(tolua_S,2,"XMLFile",0,&tolua_err) ||
  10608. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10609. )
  10610. goto tolua_lerror;
  10611. else
  10612. #endif
  10613. {
  10614. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10615. XMLFile* file = ((XMLFile*) tolua_tousertype(tolua_S,2,0));
  10616. #ifndef TOLUA_RELEASE
  10617. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Load'", NULL);
  10618. #endif
  10619. {
  10620. bool tolua_ret = (bool) self->Load(file);
  10621. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  10622. }
  10623. }
  10624. return 1;
  10625. #ifndef TOLUA_RELEASE
  10626. tolua_lerror:
  10627. tolua_error(tolua_S,"#ferror in function 'Load'.",&tolua_err);
  10628. return 0;
  10629. #endif
  10630. }
  10631. #endif //#ifndef TOLUA_DISABLE
  10632. /* method: SetNumParticles of class ParticleEmitter */
  10633. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetNumParticles00
  10634. static int tolua_Graphics_ParticleEmitter_SetNumParticles00(lua_State* tolua_S)
  10635. {
  10636. #ifndef TOLUA_RELEASE
  10637. tolua_Error tolua_err;
  10638. if (
  10639. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10640. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10641. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10642. )
  10643. goto tolua_lerror;
  10644. else
  10645. #endif
  10646. {
  10647. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10648. unsigned num = ((unsigned) tolua_tonumber(tolua_S,2,0));
  10649. #ifndef TOLUA_RELEASE
  10650. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetNumParticles'", NULL);
  10651. #endif
  10652. {
  10653. self->SetNumParticles(num);
  10654. }
  10655. }
  10656. return 0;
  10657. #ifndef TOLUA_RELEASE
  10658. tolua_lerror:
  10659. tolua_error(tolua_S,"#ferror in function 'SetNumParticles'.",&tolua_err);
  10660. return 0;
  10661. #endif
  10662. }
  10663. #endif //#ifndef TOLUA_DISABLE
  10664. /* method: SetEmissionRate of class ParticleEmitter */
  10665. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetEmissionRate00
  10666. static int tolua_Graphics_ParticleEmitter_SetEmissionRate00(lua_State* tolua_S)
  10667. {
  10668. #ifndef TOLUA_RELEASE
  10669. tolua_Error tolua_err;
  10670. if (
  10671. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10672. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10673. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10674. )
  10675. goto tolua_lerror;
  10676. else
  10677. #endif
  10678. {
  10679. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10680. float rate = ((float) tolua_tonumber(tolua_S,2,0));
  10681. #ifndef TOLUA_RELEASE
  10682. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetEmissionRate'", NULL);
  10683. #endif
  10684. {
  10685. self->SetEmissionRate(rate);
  10686. }
  10687. }
  10688. return 0;
  10689. #ifndef TOLUA_RELEASE
  10690. tolua_lerror:
  10691. tolua_error(tolua_S,"#ferror in function 'SetEmissionRate'.",&tolua_err);
  10692. return 0;
  10693. #endif
  10694. }
  10695. #endif //#ifndef TOLUA_DISABLE
  10696. /* method: SetMinEmissionRate of class ParticleEmitter */
  10697. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMinEmissionRate00
  10698. static int tolua_Graphics_ParticleEmitter_SetMinEmissionRate00(lua_State* tolua_S)
  10699. {
  10700. #ifndef TOLUA_RELEASE
  10701. tolua_Error tolua_err;
  10702. if (
  10703. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10704. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10705. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10706. )
  10707. goto tolua_lerror;
  10708. else
  10709. #endif
  10710. {
  10711. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10712. float rate = ((float) tolua_tonumber(tolua_S,2,0));
  10713. #ifndef TOLUA_RELEASE
  10714. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinEmissionRate'", NULL);
  10715. #endif
  10716. {
  10717. self->SetMinEmissionRate(rate);
  10718. }
  10719. }
  10720. return 0;
  10721. #ifndef TOLUA_RELEASE
  10722. tolua_lerror:
  10723. tolua_error(tolua_S,"#ferror in function 'SetMinEmissionRate'.",&tolua_err);
  10724. return 0;
  10725. #endif
  10726. }
  10727. #endif //#ifndef TOLUA_DISABLE
  10728. /* method: SetMaxEmissionRate of class ParticleEmitter */
  10729. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMaxEmissionRate00
  10730. static int tolua_Graphics_ParticleEmitter_SetMaxEmissionRate00(lua_State* tolua_S)
  10731. {
  10732. #ifndef TOLUA_RELEASE
  10733. tolua_Error tolua_err;
  10734. if (
  10735. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10736. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10737. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10738. )
  10739. goto tolua_lerror;
  10740. else
  10741. #endif
  10742. {
  10743. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10744. float rate = ((float) tolua_tonumber(tolua_S,2,0));
  10745. #ifndef TOLUA_RELEASE
  10746. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxEmissionRate'", NULL);
  10747. #endif
  10748. {
  10749. self->SetMaxEmissionRate(rate);
  10750. }
  10751. }
  10752. return 0;
  10753. #ifndef TOLUA_RELEASE
  10754. tolua_lerror:
  10755. tolua_error(tolua_S,"#ferror in function 'SetMaxEmissionRate'.",&tolua_err);
  10756. return 0;
  10757. #endif
  10758. }
  10759. #endif //#ifndef TOLUA_DISABLE
  10760. /* method: SetEmitterType of class ParticleEmitter */
  10761. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetEmitterType00
  10762. static int tolua_Graphics_ParticleEmitter_SetEmitterType00(lua_State* tolua_S)
  10763. {
  10764. #ifndef TOLUA_RELEASE
  10765. tolua_Error tolua_err;
  10766. if (
  10767. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10768. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10769. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10770. )
  10771. goto tolua_lerror;
  10772. else
  10773. #endif
  10774. {
  10775. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10776. EmitterType type = ((EmitterType) (int) tolua_tonumber(tolua_S,2,0));
  10777. #ifndef TOLUA_RELEASE
  10778. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetEmitterType'", NULL);
  10779. #endif
  10780. {
  10781. self->SetEmitterType(type);
  10782. }
  10783. }
  10784. return 0;
  10785. #ifndef TOLUA_RELEASE
  10786. tolua_lerror:
  10787. tolua_error(tolua_S,"#ferror in function 'SetEmitterType'.",&tolua_err);
  10788. return 0;
  10789. #endif
  10790. }
  10791. #endif //#ifndef TOLUA_DISABLE
  10792. /* method: SetEmitterSize of class ParticleEmitter */
  10793. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetEmitterSize00
  10794. static int tolua_Graphics_ParticleEmitter_SetEmitterSize00(lua_State* tolua_S)
  10795. {
  10796. #ifndef TOLUA_RELEASE
  10797. tolua_Error tolua_err;
  10798. if (
  10799. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10800. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  10801. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10802. )
  10803. goto tolua_lerror;
  10804. else
  10805. #endif
  10806. {
  10807. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10808. const Vector3* size = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  10809. #ifndef TOLUA_RELEASE
  10810. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetEmitterSize'", NULL);
  10811. #endif
  10812. {
  10813. self->SetEmitterSize(*size);
  10814. }
  10815. }
  10816. return 0;
  10817. #ifndef TOLUA_RELEASE
  10818. tolua_lerror:
  10819. tolua_error(tolua_S,"#ferror in function 'SetEmitterSize'.",&tolua_err);
  10820. return 0;
  10821. #endif
  10822. }
  10823. #endif //#ifndef TOLUA_DISABLE
  10824. /* method: SetActiveTime of class ParticleEmitter */
  10825. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetActiveTime00
  10826. static int tolua_Graphics_ParticleEmitter_SetActiveTime00(lua_State* tolua_S)
  10827. {
  10828. #ifndef TOLUA_RELEASE
  10829. tolua_Error tolua_err;
  10830. if (
  10831. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10832. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10833. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10834. )
  10835. goto tolua_lerror;
  10836. else
  10837. #endif
  10838. {
  10839. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10840. float time = ((float) tolua_tonumber(tolua_S,2,0));
  10841. #ifndef TOLUA_RELEASE
  10842. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetActiveTime'", NULL);
  10843. #endif
  10844. {
  10845. self->SetActiveTime(time);
  10846. }
  10847. }
  10848. return 0;
  10849. #ifndef TOLUA_RELEASE
  10850. tolua_lerror:
  10851. tolua_error(tolua_S,"#ferror in function 'SetActiveTime'.",&tolua_err);
  10852. return 0;
  10853. #endif
  10854. }
  10855. #endif //#ifndef TOLUA_DISABLE
  10856. /* method: SetInactiveTime of class ParticleEmitter */
  10857. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetInactiveTime00
  10858. static int tolua_Graphics_ParticleEmitter_SetInactiveTime00(lua_State* tolua_S)
  10859. {
  10860. #ifndef TOLUA_RELEASE
  10861. tolua_Error tolua_err;
  10862. if (
  10863. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10864. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10865. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10866. )
  10867. goto tolua_lerror;
  10868. else
  10869. #endif
  10870. {
  10871. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10872. float time = ((float) tolua_tonumber(tolua_S,2,0));
  10873. #ifndef TOLUA_RELEASE
  10874. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetInactiveTime'", NULL);
  10875. #endif
  10876. {
  10877. self->SetInactiveTime(time);
  10878. }
  10879. }
  10880. return 0;
  10881. #ifndef TOLUA_RELEASE
  10882. tolua_lerror:
  10883. tolua_error(tolua_S,"#ferror in function 'SetInactiveTime'.",&tolua_err);
  10884. return 0;
  10885. #endif
  10886. }
  10887. #endif //#ifndef TOLUA_DISABLE
  10888. /* method: SetEmitting of class ParticleEmitter */
  10889. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetEmitting00
  10890. static int tolua_Graphics_ParticleEmitter_SetEmitting00(lua_State* tolua_S)
  10891. {
  10892. #ifndef TOLUA_RELEASE
  10893. tolua_Error tolua_err;
  10894. if (
  10895. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10896. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  10897. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  10898. !tolua_isnoobj(tolua_S,4,&tolua_err)
  10899. )
  10900. goto tolua_lerror;
  10901. else
  10902. #endif
  10903. {
  10904. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10905. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  10906. bool resetPeriod = ((bool) tolua_toboolean(tolua_S,3,false));
  10907. #ifndef TOLUA_RELEASE
  10908. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetEmitting'", NULL);
  10909. #endif
  10910. {
  10911. self->SetEmitting(enable,resetPeriod);
  10912. }
  10913. }
  10914. return 0;
  10915. #ifndef TOLUA_RELEASE
  10916. tolua_lerror:
  10917. tolua_error(tolua_S,"#ferror in function 'SetEmitting'.",&tolua_err);
  10918. return 0;
  10919. #endif
  10920. }
  10921. #endif //#ifndef TOLUA_DISABLE
  10922. /* method: SetUpdateInvisible of class ParticleEmitter */
  10923. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetUpdateInvisible00
  10924. static int tolua_Graphics_ParticleEmitter_SetUpdateInvisible00(lua_State* tolua_S)
  10925. {
  10926. #ifndef TOLUA_RELEASE
  10927. tolua_Error tolua_err;
  10928. if (
  10929. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10930. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  10931. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10932. )
  10933. goto tolua_lerror;
  10934. else
  10935. #endif
  10936. {
  10937. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10938. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  10939. #ifndef TOLUA_RELEASE
  10940. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetUpdateInvisible'", NULL);
  10941. #endif
  10942. {
  10943. self->SetUpdateInvisible(enable);
  10944. }
  10945. }
  10946. return 0;
  10947. #ifndef TOLUA_RELEASE
  10948. tolua_lerror:
  10949. tolua_error(tolua_S,"#ferror in function 'SetUpdateInvisible'.",&tolua_err);
  10950. return 0;
  10951. #endif
  10952. }
  10953. #endif //#ifndef TOLUA_DISABLE
  10954. /* method: SetTimeToLive of class ParticleEmitter */
  10955. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetTimeToLive00
  10956. static int tolua_Graphics_ParticleEmitter_SetTimeToLive00(lua_State* tolua_S)
  10957. {
  10958. #ifndef TOLUA_RELEASE
  10959. tolua_Error tolua_err;
  10960. if (
  10961. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10962. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10963. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10964. )
  10965. goto tolua_lerror;
  10966. else
  10967. #endif
  10968. {
  10969. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10970. float time = ((float) tolua_tonumber(tolua_S,2,0));
  10971. #ifndef TOLUA_RELEASE
  10972. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTimeToLive'", NULL);
  10973. #endif
  10974. {
  10975. self->SetTimeToLive(time);
  10976. }
  10977. }
  10978. return 0;
  10979. #ifndef TOLUA_RELEASE
  10980. tolua_lerror:
  10981. tolua_error(tolua_S,"#ferror in function 'SetTimeToLive'.",&tolua_err);
  10982. return 0;
  10983. #endif
  10984. }
  10985. #endif //#ifndef TOLUA_DISABLE
  10986. /* method: SetMinTimeToLive of class ParticleEmitter */
  10987. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMinTimeToLive00
  10988. static int tolua_Graphics_ParticleEmitter_SetMinTimeToLive00(lua_State* tolua_S)
  10989. {
  10990. #ifndef TOLUA_RELEASE
  10991. tolua_Error tolua_err;
  10992. if (
  10993. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10994. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10995. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10996. )
  10997. goto tolua_lerror;
  10998. else
  10999. #endif
  11000. {
  11001. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11002. float time = ((float) tolua_tonumber(tolua_S,2,0));
  11003. #ifndef TOLUA_RELEASE
  11004. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinTimeToLive'", NULL);
  11005. #endif
  11006. {
  11007. self->SetMinTimeToLive(time);
  11008. }
  11009. }
  11010. return 0;
  11011. #ifndef TOLUA_RELEASE
  11012. tolua_lerror:
  11013. tolua_error(tolua_S,"#ferror in function 'SetMinTimeToLive'.",&tolua_err);
  11014. return 0;
  11015. #endif
  11016. }
  11017. #endif //#ifndef TOLUA_DISABLE
  11018. /* method: SetMaxTimeToLive of class ParticleEmitter */
  11019. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMaxTimeToLive00
  11020. static int tolua_Graphics_ParticleEmitter_SetMaxTimeToLive00(lua_State* tolua_S)
  11021. {
  11022. #ifndef TOLUA_RELEASE
  11023. tolua_Error tolua_err;
  11024. if (
  11025. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11026. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11027. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11028. )
  11029. goto tolua_lerror;
  11030. else
  11031. #endif
  11032. {
  11033. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11034. float time = ((float) tolua_tonumber(tolua_S,2,0));
  11035. #ifndef TOLUA_RELEASE
  11036. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxTimeToLive'", NULL);
  11037. #endif
  11038. {
  11039. self->SetMaxTimeToLive(time);
  11040. }
  11041. }
  11042. return 0;
  11043. #ifndef TOLUA_RELEASE
  11044. tolua_lerror:
  11045. tolua_error(tolua_S,"#ferror in function 'SetMaxTimeToLive'.",&tolua_err);
  11046. return 0;
  11047. #endif
  11048. }
  11049. #endif //#ifndef TOLUA_DISABLE
  11050. /* method: SetParticleSize of class ParticleEmitter */
  11051. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetParticleSize00
  11052. static int tolua_Graphics_ParticleEmitter_SetParticleSize00(lua_State* tolua_S)
  11053. {
  11054. #ifndef TOLUA_RELEASE
  11055. tolua_Error tolua_err;
  11056. if (
  11057. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11058. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector2",0,&tolua_err)) ||
  11059. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11060. )
  11061. goto tolua_lerror;
  11062. else
  11063. #endif
  11064. {
  11065. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11066. const Vector2* size = ((const Vector2*) tolua_tousertype(tolua_S,2,0));
  11067. #ifndef TOLUA_RELEASE
  11068. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetParticleSize'", NULL);
  11069. #endif
  11070. {
  11071. self->SetParticleSize(*size);
  11072. }
  11073. }
  11074. return 0;
  11075. #ifndef TOLUA_RELEASE
  11076. tolua_lerror:
  11077. tolua_error(tolua_S,"#ferror in function 'SetParticleSize'.",&tolua_err);
  11078. return 0;
  11079. #endif
  11080. }
  11081. #endif //#ifndef TOLUA_DISABLE
  11082. /* method: SetMinParticleSize of class ParticleEmitter */
  11083. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMinParticleSize00
  11084. static int tolua_Graphics_ParticleEmitter_SetMinParticleSize00(lua_State* tolua_S)
  11085. {
  11086. #ifndef TOLUA_RELEASE
  11087. tolua_Error tolua_err;
  11088. if (
  11089. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11090. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector2",0,&tolua_err)) ||
  11091. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11092. )
  11093. goto tolua_lerror;
  11094. else
  11095. #endif
  11096. {
  11097. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11098. const Vector2* size = ((const Vector2*) tolua_tousertype(tolua_S,2,0));
  11099. #ifndef TOLUA_RELEASE
  11100. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinParticleSize'", NULL);
  11101. #endif
  11102. {
  11103. self->SetMinParticleSize(*size);
  11104. }
  11105. }
  11106. return 0;
  11107. #ifndef TOLUA_RELEASE
  11108. tolua_lerror:
  11109. tolua_error(tolua_S,"#ferror in function 'SetMinParticleSize'.",&tolua_err);
  11110. return 0;
  11111. #endif
  11112. }
  11113. #endif //#ifndef TOLUA_DISABLE
  11114. /* method: SetMaxParticleSize of class ParticleEmitter */
  11115. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMaxParticleSize00
  11116. static int tolua_Graphics_ParticleEmitter_SetMaxParticleSize00(lua_State* tolua_S)
  11117. {
  11118. #ifndef TOLUA_RELEASE
  11119. tolua_Error tolua_err;
  11120. if (
  11121. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11122. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector2",0,&tolua_err)) ||
  11123. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11124. )
  11125. goto tolua_lerror;
  11126. else
  11127. #endif
  11128. {
  11129. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11130. const Vector2* size = ((const Vector2*) tolua_tousertype(tolua_S,2,0));
  11131. #ifndef TOLUA_RELEASE
  11132. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxParticleSize'", NULL);
  11133. #endif
  11134. {
  11135. self->SetMaxParticleSize(*size);
  11136. }
  11137. }
  11138. return 0;
  11139. #ifndef TOLUA_RELEASE
  11140. tolua_lerror:
  11141. tolua_error(tolua_S,"#ferror in function 'SetMaxParticleSize'.",&tolua_err);
  11142. return 0;
  11143. #endif
  11144. }
  11145. #endif //#ifndef TOLUA_DISABLE
  11146. /* method: SetMinDirection of class ParticleEmitter */
  11147. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMinDirection00
  11148. static int tolua_Graphics_ParticleEmitter_SetMinDirection00(lua_State* tolua_S)
  11149. {
  11150. #ifndef TOLUA_RELEASE
  11151. tolua_Error tolua_err;
  11152. if (
  11153. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11154. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  11155. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11156. )
  11157. goto tolua_lerror;
  11158. else
  11159. #endif
  11160. {
  11161. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11162. const Vector3* direction = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  11163. #ifndef TOLUA_RELEASE
  11164. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinDirection'", NULL);
  11165. #endif
  11166. {
  11167. self->SetMinDirection(*direction);
  11168. }
  11169. }
  11170. return 0;
  11171. #ifndef TOLUA_RELEASE
  11172. tolua_lerror:
  11173. tolua_error(tolua_S,"#ferror in function 'SetMinDirection'.",&tolua_err);
  11174. return 0;
  11175. #endif
  11176. }
  11177. #endif //#ifndef TOLUA_DISABLE
  11178. /* method: SetMaxDirection of class ParticleEmitter */
  11179. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMaxDirection00
  11180. static int tolua_Graphics_ParticleEmitter_SetMaxDirection00(lua_State* tolua_S)
  11181. {
  11182. #ifndef TOLUA_RELEASE
  11183. tolua_Error tolua_err;
  11184. if (
  11185. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11186. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  11187. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11188. )
  11189. goto tolua_lerror;
  11190. else
  11191. #endif
  11192. {
  11193. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11194. const Vector3* direction = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  11195. #ifndef TOLUA_RELEASE
  11196. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxDirection'", NULL);
  11197. #endif
  11198. {
  11199. self->SetMaxDirection(*direction);
  11200. }
  11201. }
  11202. return 0;
  11203. #ifndef TOLUA_RELEASE
  11204. tolua_lerror:
  11205. tolua_error(tolua_S,"#ferror in function 'SetMaxDirection'.",&tolua_err);
  11206. return 0;
  11207. #endif
  11208. }
  11209. #endif //#ifndef TOLUA_DISABLE
  11210. /* method: SetVelocity of class ParticleEmitter */
  11211. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetVelocity00
  11212. static int tolua_Graphics_ParticleEmitter_SetVelocity00(lua_State* tolua_S)
  11213. {
  11214. #ifndef TOLUA_RELEASE
  11215. tolua_Error tolua_err;
  11216. if (
  11217. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11218. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11219. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11220. )
  11221. goto tolua_lerror;
  11222. else
  11223. #endif
  11224. {
  11225. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11226. float velocity = ((float) tolua_tonumber(tolua_S,2,0));
  11227. #ifndef TOLUA_RELEASE
  11228. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetVelocity'", NULL);
  11229. #endif
  11230. {
  11231. self->SetVelocity(velocity);
  11232. }
  11233. }
  11234. return 0;
  11235. #ifndef TOLUA_RELEASE
  11236. tolua_lerror:
  11237. tolua_error(tolua_S,"#ferror in function 'SetVelocity'.",&tolua_err);
  11238. return 0;
  11239. #endif
  11240. }
  11241. #endif //#ifndef TOLUA_DISABLE
  11242. /* method: SetMinVelocity of class ParticleEmitter */
  11243. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMinVelocity00
  11244. static int tolua_Graphics_ParticleEmitter_SetMinVelocity00(lua_State* tolua_S)
  11245. {
  11246. #ifndef TOLUA_RELEASE
  11247. tolua_Error tolua_err;
  11248. if (
  11249. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11250. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11251. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11252. )
  11253. goto tolua_lerror;
  11254. else
  11255. #endif
  11256. {
  11257. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11258. float velocity = ((float) tolua_tonumber(tolua_S,2,0));
  11259. #ifndef TOLUA_RELEASE
  11260. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinVelocity'", NULL);
  11261. #endif
  11262. {
  11263. self->SetMinVelocity(velocity);
  11264. }
  11265. }
  11266. return 0;
  11267. #ifndef TOLUA_RELEASE
  11268. tolua_lerror:
  11269. tolua_error(tolua_S,"#ferror in function 'SetMinVelocity'.",&tolua_err);
  11270. return 0;
  11271. #endif
  11272. }
  11273. #endif //#ifndef TOLUA_DISABLE
  11274. /* method: SetMaxVelocity of class ParticleEmitter */
  11275. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMaxVelocity00
  11276. static int tolua_Graphics_ParticleEmitter_SetMaxVelocity00(lua_State* tolua_S)
  11277. {
  11278. #ifndef TOLUA_RELEASE
  11279. tolua_Error tolua_err;
  11280. if (
  11281. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11282. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11283. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11284. )
  11285. goto tolua_lerror;
  11286. else
  11287. #endif
  11288. {
  11289. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11290. float velocity = ((float) tolua_tonumber(tolua_S,2,0));
  11291. #ifndef TOLUA_RELEASE
  11292. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxVelocity'", NULL);
  11293. #endif
  11294. {
  11295. self->SetMaxVelocity(velocity);
  11296. }
  11297. }
  11298. return 0;
  11299. #ifndef TOLUA_RELEASE
  11300. tolua_lerror:
  11301. tolua_error(tolua_S,"#ferror in function 'SetMaxVelocity'.",&tolua_err);
  11302. return 0;
  11303. #endif
  11304. }
  11305. #endif //#ifndef TOLUA_DISABLE
  11306. /* method: SetRotation of class ParticleEmitter */
  11307. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetRotation00
  11308. static int tolua_Graphics_ParticleEmitter_SetRotation00(lua_State* tolua_S)
  11309. {
  11310. #ifndef TOLUA_RELEASE
  11311. tolua_Error tolua_err;
  11312. if (
  11313. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11314. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11315. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11316. )
  11317. goto tolua_lerror;
  11318. else
  11319. #endif
  11320. {
  11321. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11322. float rotation = ((float) tolua_tonumber(tolua_S,2,0));
  11323. #ifndef TOLUA_RELEASE
  11324. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRotation'", NULL);
  11325. #endif
  11326. {
  11327. self->SetRotation(rotation);
  11328. }
  11329. }
  11330. return 0;
  11331. #ifndef TOLUA_RELEASE
  11332. tolua_lerror:
  11333. tolua_error(tolua_S,"#ferror in function 'SetRotation'.",&tolua_err);
  11334. return 0;
  11335. #endif
  11336. }
  11337. #endif //#ifndef TOLUA_DISABLE
  11338. /* method: SetMinRotation of class ParticleEmitter */
  11339. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMinRotation00
  11340. static int tolua_Graphics_ParticleEmitter_SetMinRotation00(lua_State* tolua_S)
  11341. {
  11342. #ifndef TOLUA_RELEASE
  11343. tolua_Error tolua_err;
  11344. if (
  11345. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11346. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11347. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11348. )
  11349. goto tolua_lerror;
  11350. else
  11351. #endif
  11352. {
  11353. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11354. float rotation = ((float) tolua_tonumber(tolua_S,2,0));
  11355. #ifndef TOLUA_RELEASE
  11356. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinRotation'", NULL);
  11357. #endif
  11358. {
  11359. self->SetMinRotation(rotation);
  11360. }
  11361. }
  11362. return 0;
  11363. #ifndef TOLUA_RELEASE
  11364. tolua_lerror:
  11365. tolua_error(tolua_S,"#ferror in function 'SetMinRotation'.",&tolua_err);
  11366. return 0;
  11367. #endif
  11368. }
  11369. #endif //#ifndef TOLUA_DISABLE
  11370. /* method: SetMaxRotation of class ParticleEmitter */
  11371. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMaxRotation00
  11372. static int tolua_Graphics_ParticleEmitter_SetMaxRotation00(lua_State* tolua_S)
  11373. {
  11374. #ifndef TOLUA_RELEASE
  11375. tolua_Error tolua_err;
  11376. if (
  11377. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11378. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11379. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11380. )
  11381. goto tolua_lerror;
  11382. else
  11383. #endif
  11384. {
  11385. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11386. float rotation = ((float) tolua_tonumber(tolua_S,2,0));
  11387. #ifndef TOLUA_RELEASE
  11388. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxRotation'", NULL);
  11389. #endif
  11390. {
  11391. self->SetMaxRotation(rotation);
  11392. }
  11393. }
  11394. return 0;
  11395. #ifndef TOLUA_RELEASE
  11396. tolua_lerror:
  11397. tolua_error(tolua_S,"#ferror in function 'SetMaxRotation'.",&tolua_err);
  11398. return 0;
  11399. #endif
  11400. }
  11401. #endif //#ifndef TOLUA_DISABLE
  11402. /* method: SetRotationSpeed of class ParticleEmitter */
  11403. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetRotationSpeed00
  11404. static int tolua_Graphics_ParticleEmitter_SetRotationSpeed00(lua_State* tolua_S)
  11405. {
  11406. #ifndef TOLUA_RELEASE
  11407. tolua_Error tolua_err;
  11408. if (
  11409. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11410. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11411. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11412. )
  11413. goto tolua_lerror;
  11414. else
  11415. #endif
  11416. {
  11417. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11418. float speed = ((float) tolua_tonumber(tolua_S,2,0));
  11419. #ifndef TOLUA_RELEASE
  11420. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRotationSpeed'", NULL);
  11421. #endif
  11422. {
  11423. self->SetRotationSpeed(speed);
  11424. }
  11425. }
  11426. return 0;
  11427. #ifndef TOLUA_RELEASE
  11428. tolua_lerror:
  11429. tolua_error(tolua_S,"#ferror in function 'SetRotationSpeed'.",&tolua_err);
  11430. return 0;
  11431. #endif
  11432. }
  11433. #endif //#ifndef TOLUA_DISABLE
  11434. /* method: SetMinRotationSpeed of class ParticleEmitter */
  11435. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMinRotationSpeed00
  11436. static int tolua_Graphics_ParticleEmitter_SetMinRotationSpeed00(lua_State* tolua_S)
  11437. {
  11438. #ifndef TOLUA_RELEASE
  11439. tolua_Error tolua_err;
  11440. if (
  11441. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11442. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11443. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11444. )
  11445. goto tolua_lerror;
  11446. else
  11447. #endif
  11448. {
  11449. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11450. float speed = ((float) tolua_tonumber(tolua_S,2,0));
  11451. #ifndef TOLUA_RELEASE
  11452. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinRotationSpeed'", NULL);
  11453. #endif
  11454. {
  11455. self->SetMinRotationSpeed(speed);
  11456. }
  11457. }
  11458. return 0;
  11459. #ifndef TOLUA_RELEASE
  11460. tolua_lerror:
  11461. tolua_error(tolua_S,"#ferror in function 'SetMinRotationSpeed'.",&tolua_err);
  11462. return 0;
  11463. #endif
  11464. }
  11465. #endif //#ifndef TOLUA_DISABLE
  11466. /* method: SetMaxRotationSpeed of class ParticleEmitter */
  11467. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMaxRotationSpeed00
  11468. static int tolua_Graphics_ParticleEmitter_SetMaxRotationSpeed00(lua_State* tolua_S)
  11469. {
  11470. #ifndef TOLUA_RELEASE
  11471. tolua_Error tolua_err;
  11472. if (
  11473. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11474. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11475. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11476. )
  11477. goto tolua_lerror;
  11478. else
  11479. #endif
  11480. {
  11481. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11482. float speed = ((float) tolua_tonumber(tolua_S,2,0));
  11483. #ifndef TOLUA_RELEASE
  11484. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxRotationSpeed'", NULL);
  11485. #endif
  11486. {
  11487. self->SetMaxRotationSpeed(speed);
  11488. }
  11489. }
  11490. return 0;
  11491. #ifndef TOLUA_RELEASE
  11492. tolua_lerror:
  11493. tolua_error(tolua_S,"#ferror in function 'SetMaxRotationSpeed'.",&tolua_err);
  11494. return 0;
  11495. #endif
  11496. }
  11497. #endif //#ifndef TOLUA_DISABLE
  11498. /* method: SetConstantForce of class ParticleEmitter */
  11499. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetConstantForce00
  11500. static int tolua_Graphics_ParticleEmitter_SetConstantForce00(lua_State* tolua_S)
  11501. {
  11502. #ifndef TOLUA_RELEASE
  11503. tolua_Error tolua_err;
  11504. if (
  11505. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11506. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  11507. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11508. )
  11509. goto tolua_lerror;
  11510. else
  11511. #endif
  11512. {
  11513. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11514. const Vector3* force = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  11515. #ifndef TOLUA_RELEASE
  11516. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetConstantForce'", NULL);
  11517. #endif
  11518. {
  11519. self->SetConstantForce(*force);
  11520. }
  11521. }
  11522. return 0;
  11523. #ifndef TOLUA_RELEASE
  11524. tolua_lerror:
  11525. tolua_error(tolua_S,"#ferror in function 'SetConstantForce'.",&tolua_err);
  11526. return 0;
  11527. #endif
  11528. }
  11529. #endif //#ifndef TOLUA_DISABLE
  11530. /* method: SetDampingForce of class ParticleEmitter */
  11531. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetDampingForce00
  11532. static int tolua_Graphics_ParticleEmitter_SetDampingForce00(lua_State* tolua_S)
  11533. {
  11534. #ifndef TOLUA_RELEASE
  11535. tolua_Error tolua_err;
  11536. if (
  11537. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11538. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11539. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11540. )
  11541. goto tolua_lerror;
  11542. else
  11543. #endif
  11544. {
  11545. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11546. float force = ((float) tolua_tonumber(tolua_S,2,0));
  11547. #ifndef TOLUA_RELEASE
  11548. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDampingForce'", NULL);
  11549. #endif
  11550. {
  11551. self->SetDampingForce(force);
  11552. }
  11553. }
  11554. return 0;
  11555. #ifndef TOLUA_RELEASE
  11556. tolua_lerror:
  11557. tolua_error(tolua_S,"#ferror in function 'SetDampingForce'.",&tolua_err);
  11558. return 0;
  11559. #endif
  11560. }
  11561. #endif //#ifndef TOLUA_DISABLE
  11562. /* method: SetSizeAdd of class ParticleEmitter */
  11563. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetSizeAdd00
  11564. static int tolua_Graphics_ParticleEmitter_SetSizeAdd00(lua_State* tolua_S)
  11565. {
  11566. #ifndef TOLUA_RELEASE
  11567. tolua_Error tolua_err;
  11568. if (
  11569. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11570. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11571. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11572. )
  11573. goto tolua_lerror;
  11574. else
  11575. #endif
  11576. {
  11577. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11578. float sizeAdd = ((float) tolua_tonumber(tolua_S,2,0));
  11579. #ifndef TOLUA_RELEASE
  11580. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSizeAdd'", NULL);
  11581. #endif
  11582. {
  11583. self->SetSizeAdd(sizeAdd);
  11584. }
  11585. }
  11586. return 0;
  11587. #ifndef TOLUA_RELEASE
  11588. tolua_lerror:
  11589. tolua_error(tolua_S,"#ferror in function 'SetSizeAdd'.",&tolua_err);
  11590. return 0;
  11591. #endif
  11592. }
  11593. #endif //#ifndef TOLUA_DISABLE
  11594. /* method: SetSizeMul of class ParticleEmitter */
  11595. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetSizeMul00
  11596. static int tolua_Graphics_ParticleEmitter_SetSizeMul00(lua_State* tolua_S)
  11597. {
  11598. #ifndef TOLUA_RELEASE
  11599. tolua_Error tolua_err;
  11600. if (
  11601. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11602. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11603. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11604. )
  11605. goto tolua_lerror;
  11606. else
  11607. #endif
  11608. {
  11609. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11610. float sizeMul = ((float) tolua_tonumber(tolua_S,2,0));
  11611. #ifndef TOLUA_RELEASE
  11612. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSizeMul'", NULL);
  11613. #endif
  11614. {
  11615. self->SetSizeMul(sizeMul);
  11616. }
  11617. }
  11618. return 0;
  11619. #ifndef TOLUA_RELEASE
  11620. tolua_lerror:
  11621. tolua_error(tolua_S,"#ferror in function 'SetSizeMul'.",&tolua_err);
  11622. return 0;
  11623. #endif
  11624. }
  11625. #endif //#ifndef TOLUA_DISABLE
  11626. /* method: SetColor of class ParticleEmitter */
  11627. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetColor00
  11628. static int tolua_Graphics_ParticleEmitter_SetColor00(lua_State* tolua_S)
  11629. {
  11630. #ifndef TOLUA_RELEASE
  11631. tolua_Error tolua_err;
  11632. if (
  11633. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11634. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  11635. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11636. )
  11637. goto tolua_lerror;
  11638. else
  11639. #endif
  11640. {
  11641. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11642. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  11643. #ifndef TOLUA_RELEASE
  11644. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetColor'", NULL);
  11645. #endif
  11646. {
  11647. self->SetColor(*color);
  11648. }
  11649. }
  11650. return 0;
  11651. #ifndef TOLUA_RELEASE
  11652. tolua_lerror:
  11653. tolua_error(tolua_S,"#ferror in function 'SetColor'.",&tolua_err);
  11654. return 0;
  11655. #endif
  11656. }
  11657. #endif //#ifndef TOLUA_DISABLE
  11658. /* method: SetNumColors of class ParticleEmitter */
  11659. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetNumColors00
  11660. static int tolua_Graphics_ParticleEmitter_SetNumColors00(lua_State* tolua_S)
  11661. {
  11662. #ifndef TOLUA_RELEASE
  11663. tolua_Error tolua_err;
  11664. if (
  11665. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11666. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11667. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11668. )
  11669. goto tolua_lerror;
  11670. else
  11671. #endif
  11672. {
  11673. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11674. unsigned num = ((unsigned) tolua_tonumber(tolua_S,2,0));
  11675. #ifndef TOLUA_RELEASE
  11676. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetNumColors'", NULL);
  11677. #endif
  11678. {
  11679. self->SetNumColors(num);
  11680. }
  11681. }
  11682. return 0;
  11683. #ifndef TOLUA_RELEASE
  11684. tolua_lerror:
  11685. tolua_error(tolua_S,"#ferror in function 'SetNumColors'.",&tolua_err);
  11686. return 0;
  11687. #endif
  11688. }
  11689. #endif //#ifndef TOLUA_DISABLE
  11690. /* method: SetNumTextureFrames of class ParticleEmitter */
  11691. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetNumTextureFrames00
  11692. static int tolua_Graphics_ParticleEmitter_SetNumTextureFrames00(lua_State* tolua_S)
  11693. {
  11694. #ifndef TOLUA_RELEASE
  11695. tolua_Error tolua_err;
  11696. if (
  11697. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11698. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11699. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11700. )
  11701. goto tolua_lerror;
  11702. else
  11703. #endif
  11704. {
  11705. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11706. unsigned num = ((unsigned) tolua_tonumber(tolua_S,2,0));
  11707. #ifndef TOLUA_RELEASE
  11708. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetNumTextureFrames'", NULL);
  11709. #endif
  11710. {
  11711. self->SetNumTextureFrames(num);
  11712. }
  11713. }
  11714. return 0;
  11715. #ifndef TOLUA_RELEASE
  11716. tolua_lerror:
  11717. tolua_error(tolua_S,"#ferror in function 'SetNumTextureFrames'.",&tolua_err);
  11718. return 0;
  11719. #endif
  11720. }
  11721. #endif //#ifndef TOLUA_DISABLE
  11722. /* method: GetNumParticles of class ParticleEmitter */
  11723. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetNumParticles00
  11724. static int tolua_Graphics_ParticleEmitter_GetNumParticles00(lua_State* tolua_S)
  11725. {
  11726. #ifndef TOLUA_RELEASE
  11727. tolua_Error tolua_err;
  11728. if (
  11729. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  11730. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11731. )
  11732. goto tolua_lerror;
  11733. else
  11734. #endif
  11735. {
  11736. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11737. #ifndef TOLUA_RELEASE
  11738. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumParticles'", NULL);
  11739. #endif
  11740. {
  11741. unsigned tolua_ret = (unsigned) self->GetNumParticles();
  11742. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11743. }
  11744. }
  11745. return 1;
  11746. #ifndef TOLUA_RELEASE
  11747. tolua_lerror:
  11748. tolua_error(tolua_S,"#ferror in function 'GetNumParticles'.",&tolua_err);
  11749. return 0;
  11750. #endif
  11751. }
  11752. #endif //#ifndef TOLUA_DISABLE
  11753. /* method: IsEmitting of class ParticleEmitter */
  11754. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_IsEmitting00
  11755. static int tolua_Graphics_ParticleEmitter_IsEmitting00(lua_State* tolua_S)
  11756. {
  11757. #ifndef TOLUA_RELEASE
  11758. tolua_Error tolua_err;
  11759. if (
  11760. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  11761. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11762. )
  11763. goto tolua_lerror;
  11764. else
  11765. #endif
  11766. {
  11767. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11768. #ifndef TOLUA_RELEASE
  11769. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsEmitting'", NULL);
  11770. #endif
  11771. {
  11772. bool tolua_ret = (bool) self->IsEmitting();
  11773. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  11774. }
  11775. }
  11776. return 1;
  11777. #ifndef TOLUA_RELEASE
  11778. tolua_lerror:
  11779. tolua_error(tolua_S,"#ferror in function 'IsEmitting'.",&tolua_err);
  11780. return 0;
  11781. #endif
  11782. }
  11783. #endif //#ifndef TOLUA_DISABLE
  11784. /* method: GetUpdateInvisible of class ParticleEmitter */
  11785. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetUpdateInvisible00
  11786. static int tolua_Graphics_ParticleEmitter_GetUpdateInvisible00(lua_State* tolua_S)
  11787. {
  11788. #ifndef TOLUA_RELEASE
  11789. tolua_Error tolua_err;
  11790. if (
  11791. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  11792. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11793. )
  11794. goto tolua_lerror;
  11795. else
  11796. #endif
  11797. {
  11798. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11799. #ifndef TOLUA_RELEASE
  11800. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetUpdateInvisible'", NULL);
  11801. #endif
  11802. {
  11803. bool tolua_ret = (bool) self->GetUpdateInvisible();
  11804. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  11805. }
  11806. }
  11807. return 1;
  11808. #ifndef TOLUA_RELEASE
  11809. tolua_lerror:
  11810. tolua_error(tolua_S,"#ferror in function 'GetUpdateInvisible'.",&tolua_err);
  11811. return 0;
  11812. #endif
  11813. }
  11814. #endif //#ifndef TOLUA_DISABLE
  11815. /* method: GetMinEmissionRate of class ParticleEmitter */
  11816. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMinEmissionRate00
  11817. static int tolua_Graphics_ParticleEmitter_GetMinEmissionRate00(lua_State* tolua_S)
  11818. {
  11819. #ifndef TOLUA_RELEASE
  11820. tolua_Error tolua_err;
  11821. if (
  11822. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  11823. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11824. )
  11825. goto tolua_lerror;
  11826. else
  11827. #endif
  11828. {
  11829. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11830. #ifndef TOLUA_RELEASE
  11831. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinEmissionRate'", NULL);
  11832. #endif
  11833. {
  11834. float tolua_ret = (float) self->GetMinEmissionRate();
  11835. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11836. }
  11837. }
  11838. return 1;
  11839. #ifndef TOLUA_RELEASE
  11840. tolua_lerror:
  11841. tolua_error(tolua_S,"#ferror in function 'GetMinEmissionRate'.",&tolua_err);
  11842. return 0;
  11843. #endif
  11844. }
  11845. #endif //#ifndef TOLUA_DISABLE
  11846. /* method: GetMaxEmissionRate of class ParticleEmitter */
  11847. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMaxEmissionRate00
  11848. static int tolua_Graphics_ParticleEmitter_GetMaxEmissionRate00(lua_State* tolua_S)
  11849. {
  11850. #ifndef TOLUA_RELEASE
  11851. tolua_Error tolua_err;
  11852. if (
  11853. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  11854. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11855. )
  11856. goto tolua_lerror;
  11857. else
  11858. #endif
  11859. {
  11860. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11861. #ifndef TOLUA_RELEASE
  11862. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxEmissionRate'", NULL);
  11863. #endif
  11864. {
  11865. float tolua_ret = (float) self->GetMaxEmissionRate();
  11866. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11867. }
  11868. }
  11869. return 1;
  11870. #ifndef TOLUA_RELEASE
  11871. tolua_lerror:
  11872. tolua_error(tolua_S,"#ferror in function 'GetMaxEmissionRate'.",&tolua_err);
  11873. return 0;
  11874. #endif
  11875. }
  11876. #endif //#ifndef TOLUA_DISABLE
  11877. /* method: GetEmitterType of class ParticleEmitter */
  11878. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetEmitterType00
  11879. static int tolua_Graphics_ParticleEmitter_GetEmitterType00(lua_State* tolua_S)
  11880. {
  11881. #ifndef TOLUA_RELEASE
  11882. tolua_Error tolua_err;
  11883. if (
  11884. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  11885. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11886. )
  11887. goto tolua_lerror;
  11888. else
  11889. #endif
  11890. {
  11891. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11892. #ifndef TOLUA_RELEASE
  11893. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetEmitterType'", NULL);
  11894. #endif
  11895. {
  11896. EmitterType tolua_ret = (EmitterType) self->GetEmitterType();
  11897. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11898. }
  11899. }
  11900. return 1;
  11901. #ifndef TOLUA_RELEASE
  11902. tolua_lerror:
  11903. tolua_error(tolua_S,"#ferror in function 'GetEmitterType'.",&tolua_err);
  11904. return 0;
  11905. #endif
  11906. }
  11907. #endif //#ifndef TOLUA_DISABLE
  11908. /* method: GetEmitterSize of class ParticleEmitter */
  11909. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetEmitterSize00
  11910. static int tolua_Graphics_ParticleEmitter_GetEmitterSize00(lua_State* tolua_S)
  11911. {
  11912. #ifndef TOLUA_RELEASE
  11913. tolua_Error tolua_err;
  11914. if (
  11915. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  11916. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11917. )
  11918. goto tolua_lerror;
  11919. else
  11920. #endif
  11921. {
  11922. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11923. #ifndef TOLUA_RELEASE
  11924. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetEmitterSize'", NULL);
  11925. #endif
  11926. {
  11927. const Vector3& tolua_ret = (const Vector3&) self->GetEmitterSize();
  11928. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector3");
  11929. }
  11930. }
  11931. return 1;
  11932. #ifndef TOLUA_RELEASE
  11933. tolua_lerror:
  11934. tolua_error(tolua_S,"#ferror in function 'GetEmitterSize'.",&tolua_err);
  11935. return 0;
  11936. #endif
  11937. }
  11938. #endif //#ifndef TOLUA_DISABLE
  11939. /* method: GetActiveTime of class ParticleEmitter */
  11940. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetActiveTime00
  11941. static int tolua_Graphics_ParticleEmitter_GetActiveTime00(lua_State* tolua_S)
  11942. {
  11943. #ifndef TOLUA_RELEASE
  11944. tolua_Error tolua_err;
  11945. if (
  11946. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  11947. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11948. )
  11949. goto tolua_lerror;
  11950. else
  11951. #endif
  11952. {
  11953. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11954. #ifndef TOLUA_RELEASE
  11955. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetActiveTime'", NULL);
  11956. #endif
  11957. {
  11958. float tolua_ret = (float) self->GetActiveTime();
  11959. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11960. }
  11961. }
  11962. return 1;
  11963. #ifndef TOLUA_RELEASE
  11964. tolua_lerror:
  11965. tolua_error(tolua_S,"#ferror in function 'GetActiveTime'.",&tolua_err);
  11966. return 0;
  11967. #endif
  11968. }
  11969. #endif //#ifndef TOLUA_DISABLE
  11970. /* method: GetInactiveTime of class ParticleEmitter */
  11971. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetInactiveTime00
  11972. static int tolua_Graphics_ParticleEmitter_GetInactiveTime00(lua_State* tolua_S)
  11973. {
  11974. #ifndef TOLUA_RELEASE
  11975. tolua_Error tolua_err;
  11976. if (
  11977. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  11978. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11979. )
  11980. goto tolua_lerror;
  11981. else
  11982. #endif
  11983. {
  11984. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11985. #ifndef TOLUA_RELEASE
  11986. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetInactiveTime'", NULL);
  11987. #endif
  11988. {
  11989. float tolua_ret = (float) self->GetInactiveTime();
  11990. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11991. }
  11992. }
  11993. return 1;
  11994. #ifndef TOLUA_RELEASE
  11995. tolua_lerror:
  11996. tolua_error(tolua_S,"#ferror in function 'GetInactiveTime'.",&tolua_err);
  11997. return 0;
  11998. #endif
  11999. }
  12000. #endif //#ifndef TOLUA_DISABLE
  12001. /* method: GetMinTimeToLive of class ParticleEmitter */
  12002. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMinTimeToLive00
  12003. static int tolua_Graphics_ParticleEmitter_GetMinTimeToLive00(lua_State* tolua_S)
  12004. {
  12005. #ifndef TOLUA_RELEASE
  12006. tolua_Error tolua_err;
  12007. if (
  12008. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12009. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12010. )
  12011. goto tolua_lerror;
  12012. else
  12013. #endif
  12014. {
  12015. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12016. #ifndef TOLUA_RELEASE
  12017. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinTimeToLive'", NULL);
  12018. #endif
  12019. {
  12020. float tolua_ret = (float) self->GetMinTimeToLive();
  12021. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12022. }
  12023. }
  12024. return 1;
  12025. #ifndef TOLUA_RELEASE
  12026. tolua_lerror:
  12027. tolua_error(tolua_S,"#ferror in function 'GetMinTimeToLive'.",&tolua_err);
  12028. return 0;
  12029. #endif
  12030. }
  12031. #endif //#ifndef TOLUA_DISABLE
  12032. /* method: GetMaxTimeToLive of class ParticleEmitter */
  12033. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMaxTimeToLive00
  12034. static int tolua_Graphics_ParticleEmitter_GetMaxTimeToLive00(lua_State* tolua_S)
  12035. {
  12036. #ifndef TOLUA_RELEASE
  12037. tolua_Error tolua_err;
  12038. if (
  12039. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12040. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12041. )
  12042. goto tolua_lerror;
  12043. else
  12044. #endif
  12045. {
  12046. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12047. #ifndef TOLUA_RELEASE
  12048. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxTimeToLive'", NULL);
  12049. #endif
  12050. {
  12051. float tolua_ret = (float) self->GetMaxTimeToLive();
  12052. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12053. }
  12054. }
  12055. return 1;
  12056. #ifndef TOLUA_RELEASE
  12057. tolua_lerror:
  12058. tolua_error(tolua_S,"#ferror in function 'GetMaxTimeToLive'.",&tolua_err);
  12059. return 0;
  12060. #endif
  12061. }
  12062. #endif //#ifndef TOLUA_DISABLE
  12063. /* method: GetMinParticleSize of class ParticleEmitter */
  12064. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMinParticleSize00
  12065. static int tolua_Graphics_ParticleEmitter_GetMinParticleSize00(lua_State* tolua_S)
  12066. {
  12067. #ifndef TOLUA_RELEASE
  12068. tolua_Error tolua_err;
  12069. if (
  12070. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12071. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12072. )
  12073. goto tolua_lerror;
  12074. else
  12075. #endif
  12076. {
  12077. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12078. #ifndef TOLUA_RELEASE
  12079. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinParticleSize'", NULL);
  12080. #endif
  12081. {
  12082. const Vector2& tolua_ret = (const Vector2&) self->GetMinParticleSize();
  12083. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector2");
  12084. }
  12085. }
  12086. return 1;
  12087. #ifndef TOLUA_RELEASE
  12088. tolua_lerror:
  12089. tolua_error(tolua_S,"#ferror in function 'GetMinParticleSize'.",&tolua_err);
  12090. return 0;
  12091. #endif
  12092. }
  12093. #endif //#ifndef TOLUA_DISABLE
  12094. /* method: GetMaxParticleSize of class ParticleEmitter */
  12095. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMaxParticleSize00
  12096. static int tolua_Graphics_ParticleEmitter_GetMaxParticleSize00(lua_State* tolua_S)
  12097. {
  12098. #ifndef TOLUA_RELEASE
  12099. tolua_Error tolua_err;
  12100. if (
  12101. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12102. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12103. )
  12104. goto tolua_lerror;
  12105. else
  12106. #endif
  12107. {
  12108. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12109. #ifndef TOLUA_RELEASE
  12110. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxParticleSize'", NULL);
  12111. #endif
  12112. {
  12113. const Vector2& tolua_ret = (const Vector2&) self->GetMaxParticleSize();
  12114. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector2");
  12115. }
  12116. }
  12117. return 1;
  12118. #ifndef TOLUA_RELEASE
  12119. tolua_lerror:
  12120. tolua_error(tolua_S,"#ferror in function 'GetMaxParticleSize'.",&tolua_err);
  12121. return 0;
  12122. #endif
  12123. }
  12124. #endif //#ifndef TOLUA_DISABLE
  12125. /* method: GetMinDirection of class ParticleEmitter */
  12126. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMinDirection00
  12127. static int tolua_Graphics_ParticleEmitter_GetMinDirection00(lua_State* tolua_S)
  12128. {
  12129. #ifndef TOLUA_RELEASE
  12130. tolua_Error tolua_err;
  12131. if (
  12132. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12133. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12134. )
  12135. goto tolua_lerror;
  12136. else
  12137. #endif
  12138. {
  12139. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12140. #ifndef TOLUA_RELEASE
  12141. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinDirection'", NULL);
  12142. #endif
  12143. {
  12144. const Vector3& tolua_ret = (const Vector3&) self->GetMinDirection();
  12145. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector3");
  12146. }
  12147. }
  12148. return 1;
  12149. #ifndef TOLUA_RELEASE
  12150. tolua_lerror:
  12151. tolua_error(tolua_S,"#ferror in function 'GetMinDirection'.",&tolua_err);
  12152. return 0;
  12153. #endif
  12154. }
  12155. #endif //#ifndef TOLUA_DISABLE
  12156. /* method: GetMaxDirection of class ParticleEmitter */
  12157. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMaxDirection00
  12158. static int tolua_Graphics_ParticleEmitter_GetMaxDirection00(lua_State* tolua_S)
  12159. {
  12160. #ifndef TOLUA_RELEASE
  12161. tolua_Error tolua_err;
  12162. if (
  12163. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12164. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12165. )
  12166. goto tolua_lerror;
  12167. else
  12168. #endif
  12169. {
  12170. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12171. #ifndef TOLUA_RELEASE
  12172. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxDirection'", NULL);
  12173. #endif
  12174. {
  12175. const Vector3& tolua_ret = (const Vector3&) self->GetMaxDirection();
  12176. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector3");
  12177. }
  12178. }
  12179. return 1;
  12180. #ifndef TOLUA_RELEASE
  12181. tolua_lerror:
  12182. tolua_error(tolua_S,"#ferror in function 'GetMaxDirection'.",&tolua_err);
  12183. return 0;
  12184. #endif
  12185. }
  12186. #endif //#ifndef TOLUA_DISABLE
  12187. /* method: GetMinVelocity of class ParticleEmitter */
  12188. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMinVelocity00
  12189. static int tolua_Graphics_ParticleEmitter_GetMinVelocity00(lua_State* tolua_S)
  12190. {
  12191. #ifndef TOLUA_RELEASE
  12192. tolua_Error tolua_err;
  12193. if (
  12194. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12195. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12196. )
  12197. goto tolua_lerror;
  12198. else
  12199. #endif
  12200. {
  12201. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12202. #ifndef TOLUA_RELEASE
  12203. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinVelocity'", NULL);
  12204. #endif
  12205. {
  12206. float tolua_ret = (float) self->GetMinVelocity();
  12207. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12208. }
  12209. }
  12210. return 1;
  12211. #ifndef TOLUA_RELEASE
  12212. tolua_lerror:
  12213. tolua_error(tolua_S,"#ferror in function 'GetMinVelocity'.",&tolua_err);
  12214. return 0;
  12215. #endif
  12216. }
  12217. #endif //#ifndef TOLUA_DISABLE
  12218. /* method: GetMaxVelocity of class ParticleEmitter */
  12219. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMaxVelocity00
  12220. static int tolua_Graphics_ParticleEmitter_GetMaxVelocity00(lua_State* tolua_S)
  12221. {
  12222. #ifndef TOLUA_RELEASE
  12223. tolua_Error tolua_err;
  12224. if (
  12225. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12226. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12227. )
  12228. goto tolua_lerror;
  12229. else
  12230. #endif
  12231. {
  12232. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12233. #ifndef TOLUA_RELEASE
  12234. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxVelocity'", NULL);
  12235. #endif
  12236. {
  12237. float tolua_ret = (float) self->GetMaxVelocity();
  12238. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12239. }
  12240. }
  12241. return 1;
  12242. #ifndef TOLUA_RELEASE
  12243. tolua_lerror:
  12244. tolua_error(tolua_S,"#ferror in function 'GetMaxVelocity'.",&tolua_err);
  12245. return 0;
  12246. #endif
  12247. }
  12248. #endif //#ifndef TOLUA_DISABLE
  12249. /* method: GetMinRotation of class ParticleEmitter */
  12250. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMinRotation00
  12251. static int tolua_Graphics_ParticleEmitter_GetMinRotation00(lua_State* tolua_S)
  12252. {
  12253. #ifndef TOLUA_RELEASE
  12254. tolua_Error tolua_err;
  12255. if (
  12256. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12257. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12258. )
  12259. goto tolua_lerror;
  12260. else
  12261. #endif
  12262. {
  12263. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12264. #ifndef TOLUA_RELEASE
  12265. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinRotation'", NULL);
  12266. #endif
  12267. {
  12268. float tolua_ret = (float) self->GetMinRotation();
  12269. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12270. }
  12271. }
  12272. return 1;
  12273. #ifndef TOLUA_RELEASE
  12274. tolua_lerror:
  12275. tolua_error(tolua_S,"#ferror in function 'GetMinRotation'.",&tolua_err);
  12276. return 0;
  12277. #endif
  12278. }
  12279. #endif //#ifndef TOLUA_DISABLE
  12280. /* method: GetMaxRotation of class ParticleEmitter */
  12281. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMaxRotation00
  12282. static int tolua_Graphics_ParticleEmitter_GetMaxRotation00(lua_State* tolua_S)
  12283. {
  12284. #ifndef TOLUA_RELEASE
  12285. tolua_Error tolua_err;
  12286. if (
  12287. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12288. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12289. )
  12290. goto tolua_lerror;
  12291. else
  12292. #endif
  12293. {
  12294. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12295. #ifndef TOLUA_RELEASE
  12296. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxRotation'", NULL);
  12297. #endif
  12298. {
  12299. float tolua_ret = (float) self->GetMaxRotation();
  12300. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12301. }
  12302. }
  12303. return 1;
  12304. #ifndef TOLUA_RELEASE
  12305. tolua_lerror:
  12306. tolua_error(tolua_S,"#ferror in function 'GetMaxRotation'.",&tolua_err);
  12307. return 0;
  12308. #endif
  12309. }
  12310. #endif //#ifndef TOLUA_DISABLE
  12311. /* method: GetMinRotationSpeed of class ParticleEmitter */
  12312. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMinRotationSpeed00
  12313. static int tolua_Graphics_ParticleEmitter_GetMinRotationSpeed00(lua_State* tolua_S)
  12314. {
  12315. #ifndef TOLUA_RELEASE
  12316. tolua_Error tolua_err;
  12317. if (
  12318. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12319. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12320. )
  12321. goto tolua_lerror;
  12322. else
  12323. #endif
  12324. {
  12325. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12326. #ifndef TOLUA_RELEASE
  12327. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinRotationSpeed'", NULL);
  12328. #endif
  12329. {
  12330. float tolua_ret = (float) self->GetMinRotationSpeed();
  12331. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12332. }
  12333. }
  12334. return 1;
  12335. #ifndef TOLUA_RELEASE
  12336. tolua_lerror:
  12337. tolua_error(tolua_S,"#ferror in function 'GetMinRotationSpeed'.",&tolua_err);
  12338. return 0;
  12339. #endif
  12340. }
  12341. #endif //#ifndef TOLUA_DISABLE
  12342. /* method: GetMaxRotationSpeed of class ParticleEmitter */
  12343. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMaxRotationSpeed00
  12344. static int tolua_Graphics_ParticleEmitter_GetMaxRotationSpeed00(lua_State* tolua_S)
  12345. {
  12346. #ifndef TOLUA_RELEASE
  12347. tolua_Error tolua_err;
  12348. if (
  12349. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12350. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12351. )
  12352. goto tolua_lerror;
  12353. else
  12354. #endif
  12355. {
  12356. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12357. #ifndef TOLUA_RELEASE
  12358. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxRotationSpeed'", NULL);
  12359. #endif
  12360. {
  12361. float tolua_ret = (float) self->GetMaxRotationSpeed();
  12362. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12363. }
  12364. }
  12365. return 1;
  12366. #ifndef TOLUA_RELEASE
  12367. tolua_lerror:
  12368. tolua_error(tolua_S,"#ferror in function 'GetMaxRotationSpeed'.",&tolua_err);
  12369. return 0;
  12370. #endif
  12371. }
  12372. #endif //#ifndef TOLUA_DISABLE
  12373. /* method: GetConstantForce of class ParticleEmitter */
  12374. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetConstantForce00
  12375. static int tolua_Graphics_ParticleEmitter_GetConstantForce00(lua_State* tolua_S)
  12376. {
  12377. #ifndef TOLUA_RELEASE
  12378. tolua_Error tolua_err;
  12379. if (
  12380. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12381. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12382. )
  12383. goto tolua_lerror;
  12384. else
  12385. #endif
  12386. {
  12387. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12388. #ifndef TOLUA_RELEASE
  12389. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetConstantForce'", NULL);
  12390. #endif
  12391. {
  12392. const Vector3& tolua_ret = (const Vector3&) self->GetConstantForce();
  12393. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector3");
  12394. }
  12395. }
  12396. return 1;
  12397. #ifndef TOLUA_RELEASE
  12398. tolua_lerror:
  12399. tolua_error(tolua_S,"#ferror in function 'GetConstantForce'.",&tolua_err);
  12400. return 0;
  12401. #endif
  12402. }
  12403. #endif //#ifndef TOLUA_DISABLE
  12404. /* method: GetDampingForce of class ParticleEmitter */
  12405. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetDampingForce00
  12406. static int tolua_Graphics_ParticleEmitter_GetDampingForce00(lua_State* tolua_S)
  12407. {
  12408. #ifndef TOLUA_RELEASE
  12409. tolua_Error tolua_err;
  12410. if (
  12411. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12412. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12413. )
  12414. goto tolua_lerror;
  12415. else
  12416. #endif
  12417. {
  12418. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12419. #ifndef TOLUA_RELEASE
  12420. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDampingForce'", NULL);
  12421. #endif
  12422. {
  12423. float tolua_ret = (float) self->GetDampingForce();
  12424. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12425. }
  12426. }
  12427. return 1;
  12428. #ifndef TOLUA_RELEASE
  12429. tolua_lerror:
  12430. tolua_error(tolua_S,"#ferror in function 'GetDampingForce'.",&tolua_err);
  12431. return 0;
  12432. #endif
  12433. }
  12434. #endif //#ifndef TOLUA_DISABLE
  12435. /* method: GetSizeAdd of class ParticleEmitter */
  12436. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetSizeAdd00
  12437. static int tolua_Graphics_ParticleEmitter_GetSizeAdd00(lua_State* tolua_S)
  12438. {
  12439. #ifndef TOLUA_RELEASE
  12440. tolua_Error tolua_err;
  12441. if (
  12442. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12443. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12444. )
  12445. goto tolua_lerror;
  12446. else
  12447. #endif
  12448. {
  12449. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12450. #ifndef TOLUA_RELEASE
  12451. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSizeAdd'", NULL);
  12452. #endif
  12453. {
  12454. float tolua_ret = (float) self->GetSizeAdd();
  12455. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12456. }
  12457. }
  12458. return 1;
  12459. #ifndef TOLUA_RELEASE
  12460. tolua_lerror:
  12461. tolua_error(tolua_S,"#ferror in function 'GetSizeAdd'.",&tolua_err);
  12462. return 0;
  12463. #endif
  12464. }
  12465. #endif //#ifndef TOLUA_DISABLE
  12466. /* method: GetSizeMul of class ParticleEmitter */
  12467. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetSizeMul00
  12468. static int tolua_Graphics_ParticleEmitter_GetSizeMul00(lua_State* tolua_S)
  12469. {
  12470. #ifndef TOLUA_RELEASE
  12471. tolua_Error tolua_err;
  12472. if (
  12473. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12474. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12475. )
  12476. goto tolua_lerror;
  12477. else
  12478. #endif
  12479. {
  12480. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12481. #ifndef TOLUA_RELEASE
  12482. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSizeMul'", NULL);
  12483. #endif
  12484. {
  12485. float tolua_ret = (float) self->GetSizeMul();
  12486. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12487. }
  12488. }
  12489. return 1;
  12490. #ifndef TOLUA_RELEASE
  12491. tolua_lerror:
  12492. tolua_error(tolua_S,"#ferror in function 'GetSizeMul'.",&tolua_err);
  12493. return 0;
  12494. #endif
  12495. }
  12496. #endif //#ifndef TOLUA_DISABLE
  12497. /* method: GetNumColors of class ParticleEmitter */
  12498. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetNumColors00
  12499. static int tolua_Graphics_ParticleEmitter_GetNumColors00(lua_State* tolua_S)
  12500. {
  12501. #ifndef TOLUA_RELEASE
  12502. tolua_Error tolua_err;
  12503. if (
  12504. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12505. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12506. )
  12507. goto tolua_lerror;
  12508. else
  12509. #endif
  12510. {
  12511. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12512. #ifndef TOLUA_RELEASE
  12513. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumColors'", NULL);
  12514. #endif
  12515. {
  12516. unsigned tolua_ret = (unsigned) self->GetNumColors();
  12517. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12518. }
  12519. }
  12520. return 1;
  12521. #ifndef TOLUA_RELEASE
  12522. tolua_lerror:
  12523. tolua_error(tolua_S,"#ferror in function 'GetNumColors'.",&tolua_err);
  12524. return 0;
  12525. #endif
  12526. }
  12527. #endif //#ifndef TOLUA_DISABLE
  12528. /* method: GetColor of class ParticleEmitter */
  12529. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetColor00
  12530. static int tolua_Graphics_ParticleEmitter_GetColor00(lua_State* tolua_S)
  12531. {
  12532. #ifndef TOLUA_RELEASE
  12533. tolua_Error tolua_err;
  12534. if (
  12535. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  12536. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12537. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12538. )
  12539. goto tolua_lerror;
  12540. else
  12541. #endif
  12542. {
  12543. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12544. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  12545. #ifndef TOLUA_RELEASE
  12546. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetColor'", NULL);
  12547. #endif
  12548. {
  12549. ColorFrame* tolua_ret = (ColorFrame*) self->GetColor(index);
  12550. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ColorFrame");
  12551. }
  12552. }
  12553. return 1;
  12554. #ifndef TOLUA_RELEASE
  12555. tolua_lerror:
  12556. tolua_error(tolua_S,"#ferror in function 'GetColor'.",&tolua_err);
  12557. return 0;
  12558. #endif
  12559. }
  12560. #endif //#ifndef TOLUA_DISABLE
  12561. /* method: GetNumTextureFrames of class ParticleEmitter */
  12562. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetNumTextureFrames00
  12563. static int tolua_Graphics_ParticleEmitter_GetNumTextureFrames00(lua_State* tolua_S)
  12564. {
  12565. #ifndef TOLUA_RELEASE
  12566. tolua_Error tolua_err;
  12567. if (
  12568. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12569. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12570. )
  12571. goto tolua_lerror;
  12572. else
  12573. #endif
  12574. {
  12575. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12576. #ifndef TOLUA_RELEASE
  12577. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumTextureFrames'", NULL);
  12578. #endif
  12579. {
  12580. unsigned tolua_ret = (unsigned) self->GetNumTextureFrames();
  12581. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12582. }
  12583. }
  12584. return 1;
  12585. #ifndef TOLUA_RELEASE
  12586. tolua_lerror:
  12587. tolua_error(tolua_S,"#ferror in function 'GetNumTextureFrames'.",&tolua_err);
  12588. return 0;
  12589. #endif
  12590. }
  12591. #endif //#ifndef TOLUA_DISABLE
  12592. /* method: GetTextureFrame of class ParticleEmitter */
  12593. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetTextureFrame00
  12594. static int tolua_Graphics_ParticleEmitter_GetTextureFrame00(lua_State* tolua_S)
  12595. {
  12596. #ifndef TOLUA_RELEASE
  12597. tolua_Error tolua_err;
  12598. if (
  12599. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  12600. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12601. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12602. )
  12603. goto tolua_lerror;
  12604. else
  12605. #endif
  12606. {
  12607. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12608. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  12609. #ifndef TOLUA_RELEASE
  12610. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTextureFrame'", NULL);
  12611. #endif
  12612. {
  12613. TextureFrame* tolua_ret = (TextureFrame*) self->GetTextureFrame(index);
  12614. tolua_pushusertype(tolua_S,(void*)tolua_ret,"TextureFrame");
  12615. }
  12616. }
  12617. return 1;
  12618. #ifndef TOLUA_RELEASE
  12619. tolua_lerror:
  12620. tolua_error(tolua_S,"#ferror in function 'GetTextureFrame'.",&tolua_err);
  12621. return 0;
  12622. #endif
  12623. }
  12624. #endif //#ifndef TOLUA_DISABLE
  12625. /* method: GetTextureFrame of class ParticleEmitter */
  12626. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetTextureFrame01
  12627. static int tolua_Graphics_ParticleEmitter_GetTextureFrame01(lua_State* tolua_S)
  12628. {
  12629. tolua_Error tolua_err;
  12630. if (
  12631. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  12632. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12633. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12634. )
  12635. goto tolua_lerror;
  12636. else
  12637. {
  12638. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12639. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  12640. #ifndef TOLUA_RELEASE
  12641. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTextureFrame'", NULL);
  12642. #endif
  12643. {
  12644. TextureFrame* tolua_ret = (TextureFrame*) self->GetTextureFrame(index);
  12645. tolua_pushusertype(tolua_S,(void*)tolua_ret,"TextureFrame");
  12646. }
  12647. }
  12648. return 1;
  12649. tolua_lerror:
  12650. return tolua_Graphics_ParticleEmitter_GetTextureFrame00(tolua_S);
  12651. }
  12652. #endif //#ifndef TOLUA_DISABLE
  12653. /* method: SetNumViewports of class Renderer */
  12654. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetNumViewports00
  12655. static int tolua_Graphics_Renderer_SetNumViewports00(lua_State* tolua_S)
  12656. {
  12657. #ifndef TOLUA_RELEASE
  12658. tolua_Error tolua_err;
  12659. if (
  12660. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12661. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12662. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12663. )
  12664. goto tolua_lerror;
  12665. else
  12666. #endif
  12667. {
  12668. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12669. unsigned num = ((unsigned) tolua_tonumber(tolua_S,2,0));
  12670. #ifndef TOLUA_RELEASE
  12671. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetNumViewports'", NULL);
  12672. #endif
  12673. {
  12674. self->SetNumViewports(num);
  12675. }
  12676. }
  12677. return 0;
  12678. #ifndef TOLUA_RELEASE
  12679. tolua_lerror:
  12680. tolua_error(tolua_S,"#ferror in function 'SetNumViewports'.",&tolua_err);
  12681. return 0;
  12682. #endif
  12683. }
  12684. #endif //#ifndef TOLUA_DISABLE
  12685. /* method: SetViewport of class Renderer */
  12686. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetViewport00
  12687. static int tolua_Graphics_Renderer_SetViewport00(lua_State* tolua_S)
  12688. {
  12689. #ifndef TOLUA_RELEASE
  12690. tolua_Error tolua_err;
  12691. if (
  12692. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12693. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12694. !tolua_isusertype(tolua_S,3,"Viewport",0,&tolua_err) ||
  12695. !tolua_isnoobj(tolua_S,4,&tolua_err)
  12696. )
  12697. goto tolua_lerror;
  12698. else
  12699. #endif
  12700. {
  12701. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12702. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  12703. Viewport* viewport = ((Viewport*) tolua_tousertype(tolua_S,3,0));
  12704. #ifndef TOLUA_RELEASE
  12705. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetViewport'", NULL);
  12706. #endif
  12707. {
  12708. self->SetViewport(index,viewport);
  12709. }
  12710. }
  12711. return 0;
  12712. #ifndef TOLUA_RELEASE
  12713. tolua_lerror:
  12714. tolua_error(tolua_S,"#ferror in function 'SetViewport'.",&tolua_err);
  12715. return 0;
  12716. #endif
  12717. }
  12718. #endif //#ifndef TOLUA_DISABLE
  12719. /* method: SetDefaultRenderPath of class Renderer */
  12720. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetDefaultRenderPath00
  12721. static int tolua_Graphics_Renderer_SetDefaultRenderPath00(lua_State* tolua_S)
  12722. {
  12723. #ifndef TOLUA_RELEASE
  12724. tolua_Error tolua_err;
  12725. if (
  12726. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12727. !tolua_isusertype(tolua_S,2,"RenderPath",0,&tolua_err) ||
  12728. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12729. )
  12730. goto tolua_lerror;
  12731. else
  12732. #endif
  12733. {
  12734. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12735. RenderPath* renderPath = ((RenderPath*) tolua_tousertype(tolua_S,2,0));
  12736. #ifndef TOLUA_RELEASE
  12737. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDefaultRenderPath'", NULL);
  12738. #endif
  12739. {
  12740. self->SetDefaultRenderPath(renderPath);
  12741. }
  12742. }
  12743. return 0;
  12744. #ifndef TOLUA_RELEASE
  12745. tolua_lerror:
  12746. tolua_error(tolua_S,"#ferror in function 'SetDefaultRenderPath'.",&tolua_err);
  12747. return 0;
  12748. #endif
  12749. }
  12750. #endif //#ifndef TOLUA_DISABLE
  12751. /* method: SetDefaultRenderPath of class Renderer */
  12752. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetDefaultRenderPath01
  12753. static int tolua_Graphics_Renderer_SetDefaultRenderPath01(lua_State* tolua_S)
  12754. {
  12755. tolua_Error tolua_err;
  12756. if (
  12757. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12758. !tolua_isusertype(tolua_S,2,"XMLFile",0,&tolua_err) ||
  12759. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12760. )
  12761. goto tolua_lerror;
  12762. else
  12763. {
  12764. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12765. XMLFile* file = ((XMLFile*) tolua_tousertype(tolua_S,2,0));
  12766. #ifndef TOLUA_RELEASE
  12767. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDefaultRenderPath'", NULL);
  12768. #endif
  12769. {
  12770. self->SetDefaultRenderPath(file);
  12771. }
  12772. }
  12773. return 0;
  12774. tolua_lerror:
  12775. return tolua_Graphics_Renderer_SetDefaultRenderPath00(tolua_S);
  12776. }
  12777. #endif //#ifndef TOLUA_DISABLE
  12778. /* method: SetSpecularLighting of class Renderer */
  12779. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetSpecularLighting00
  12780. static int tolua_Graphics_Renderer_SetSpecularLighting00(lua_State* tolua_S)
  12781. {
  12782. #ifndef TOLUA_RELEASE
  12783. tolua_Error tolua_err;
  12784. if (
  12785. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12786. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  12787. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12788. )
  12789. goto tolua_lerror;
  12790. else
  12791. #endif
  12792. {
  12793. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12794. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  12795. #ifndef TOLUA_RELEASE
  12796. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSpecularLighting'", NULL);
  12797. #endif
  12798. {
  12799. self->SetSpecularLighting(enable);
  12800. }
  12801. }
  12802. return 0;
  12803. #ifndef TOLUA_RELEASE
  12804. tolua_lerror:
  12805. tolua_error(tolua_S,"#ferror in function 'SetSpecularLighting'.",&tolua_err);
  12806. return 0;
  12807. #endif
  12808. }
  12809. #endif //#ifndef TOLUA_DISABLE
  12810. /* method: SetTextureAnisotropy of class Renderer */
  12811. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetTextureAnisotropy00
  12812. static int tolua_Graphics_Renderer_SetTextureAnisotropy00(lua_State* tolua_S)
  12813. {
  12814. #ifndef TOLUA_RELEASE
  12815. tolua_Error tolua_err;
  12816. if (
  12817. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12818. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12819. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12820. )
  12821. goto tolua_lerror;
  12822. else
  12823. #endif
  12824. {
  12825. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12826. int level = ((int) tolua_tonumber(tolua_S,2,0));
  12827. #ifndef TOLUA_RELEASE
  12828. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTextureAnisotropy'", NULL);
  12829. #endif
  12830. {
  12831. self->SetTextureAnisotropy(level);
  12832. }
  12833. }
  12834. return 0;
  12835. #ifndef TOLUA_RELEASE
  12836. tolua_lerror:
  12837. tolua_error(tolua_S,"#ferror in function 'SetTextureAnisotropy'.",&tolua_err);
  12838. return 0;
  12839. #endif
  12840. }
  12841. #endif //#ifndef TOLUA_DISABLE
  12842. /* method: SetTextureFilterMode of class Renderer */
  12843. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetTextureFilterMode00
  12844. static int tolua_Graphics_Renderer_SetTextureFilterMode00(lua_State* tolua_S)
  12845. {
  12846. #ifndef TOLUA_RELEASE
  12847. tolua_Error tolua_err;
  12848. if (
  12849. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12850. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12851. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12852. )
  12853. goto tolua_lerror;
  12854. else
  12855. #endif
  12856. {
  12857. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12858. TextureFilterMode mode = ((TextureFilterMode) (int) tolua_tonumber(tolua_S,2,0));
  12859. #ifndef TOLUA_RELEASE
  12860. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTextureFilterMode'", NULL);
  12861. #endif
  12862. {
  12863. self->SetTextureFilterMode(mode);
  12864. }
  12865. }
  12866. return 0;
  12867. #ifndef TOLUA_RELEASE
  12868. tolua_lerror:
  12869. tolua_error(tolua_S,"#ferror in function 'SetTextureFilterMode'.",&tolua_err);
  12870. return 0;
  12871. #endif
  12872. }
  12873. #endif //#ifndef TOLUA_DISABLE
  12874. /* method: SetTextureQuality of class Renderer */
  12875. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetTextureQuality00
  12876. static int tolua_Graphics_Renderer_SetTextureQuality00(lua_State* tolua_S)
  12877. {
  12878. #ifndef TOLUA_RELEASE
  12879. tolua_Error tolua_err;
  12880. if (
  12881. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12882. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12883. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12884. )
  12885. goto tolua_lerror;
  12886. else
  12887. #endif
  12888. {
  12889. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12890. int quality = ((int) tolua_tonumber(tolua_S,2,0));
  12891. #ifndef TOLUA_RELEASE
  12892. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTextureQuality'", NULL);
  12893. #endif
  12894. {
  12895. self->SetTextureQuality(quality);
  12896. }
  12897. }
  12898. return 0;
  12899. #ifndef TOLUA_RELEASE
  12900. tolua_lerror:
  12901. tolua_error(tolua_S,"#ferror in function 'SetTextureQuality'.",&tolua_err);
  12902. return 0;
  12903. #endif
  12904. }
  12905. #endif //#ifndef TOLUA_DISABLE
  12906. /* method: SetMaterialQuality of class Renderer */
  12907. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetMaterialQuality00
  12908. static int tolua_Graphics_Renderer_SetMaterialQuality00(lua_State* tolua_S)
  12909. {
  12910. #ifndef TOLUA_RELEASE
  12911. tolua_Error tolua_err;
  12912. if (
  12913. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12914. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12915. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12916. )
  12917. goto tolua_lerror;
  12918. else
  12919. #endif
  12920. {
  12921. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12922. int quality = ((int) tolua_tonumber(tolua_S,2,0));
  12923. #ifndef TOLUA_RELEASE
  12924. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaterialQuality'", NULL);
  12925. #endif
  12926. {
  12927. self->SetMaterialQuality(quality);
  12928. }
  12929. }
  12930. return 0;
  12931. #ifndef TOLUA_RELEASE
  12932. tolua_lerror:
  12933. tolua_error(tolua_S,"#ferror in function 'SetMaterialQuality'.",&tolua_err);
  12934. return 0;
  12935. #endif
  12936. }
  12937. #endif //#ifndef TOLUA_DISABLE
  12938. /* method: SetDrawShadows of class Renderer */
  12939. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetDrawShadows00
  12940. static int tolua_Graphics_Renderer_SetDrawShadows00(lua_State* tolua_S)
  12941. {
  12942. #ifndef TOLUA_RELEASE
  12943. tolua_Error tolua_err;
  12944. if (
  12945. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12946. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  12947. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12948. )
  12949. goto tolua_lerror;
  12950. else
  12951. #endif
  12952. {
  12953. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12954. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  12955. #ifndef TOLUA_RELEASE
  12956. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDrawShadows'", NULL);
  12957. #endif
  12958. {
  12959. self->SetDrawShadows(enable);
  12960. }
  12961. }
  12962. return 0;
  12963. #ifndef TOLUA_RELEASE
  12964. tolua_lerror:
  12965. tolua_error(tolua_S,"#ferror in function 'SetDrawShadows'.",&tolua_err);
  12966. return 0;
  12967. #endif
  12968. }
  12969. #endif //#ifndef TOLUA_DISABLE
  12970. /* method: SetShadowMapSize of class Renderer */
  12971. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetShadowMapSize00
  12972. static int tolua_Graphics_Renderer_SetShadowMapSize00(lua_State* tolua_S)
  12973. {
  12974. #ifndef TOLUA_RELEASE
  12975. tolua_Error tolua_err;
  12976. if (
  12977. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12978. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12979. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12980. )
  12981. goto tolua_lerror;
  12982. else
  12983. #endif
  12984. {
  12985. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12986. int size = ((int) tolua_tonumber(tolua_S,2,0));
  12987. #ifndef TOLUA_RELEASE
  12988. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShadowMapSize'", NULL);
  12989. #endif
  12990. {
  12991. self->SetShadowMapSize(size);
  12992. }
  12993. }
  12994. return 0;
  12995. #ifndef TOLUA_RELEASE
  12996. tolua_lerror:
  12997. tolua_error(tolua_S,"#ferror in function 'SetShadowMapSize'.",&tolua_err);
  12998. return 0;
  12999. #endif
  13000. }
  13001. #endif //#ifndef TOLUA_DISABLE
  13002. /* method: SetShadowQuality of class Renderer */
  13003. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetShadowQuality00
  13004. static int tolua_Graphics_Renderer_SetShadowQuality00(lua_State* tolua_S)
  13005. {
  13006. #ifndef TOLUA_RELEASE
  13007. tolua_Error tolua_err;
  13008. if (
  13009. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  13010. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  13011. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13012. )
  13013. goto tolua_lerror;
  13014. else
  13015. #endif
  13016. {
  13017. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  13018. int quality = ((int) tolua_tonumber(tolua_S,2,0));
  13019. #ifndef TOLUA_RELEASE
  13020. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShadowQuality'", NULL);
  13021. #endif
  13022. {
  13023. self->SetShadowQuality(quality);
  13024. }
  13025. }
  13026. return 0;
  13027. #ifndef TOLUA_RELEASE
  13028. tolua_lerror:
  13029. tolua_error(tolua_S,"#ferror in function 'SetShadowQuality'.",&tolua_err);
  13030. return 0;
  13031. #endif
  13032. }
  13033. #endif //#ifndef TOLUA_DISABLE
  13034. /* method: SetReuseShadowMaps of class Renderer */
  13035. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetReuseShadowMaps00
  13036. static int tolua_Graphics_Renderer_SetReuseShadowMaps00(lua_State* tolua_S)
  13037. {
  13038. #ifndef TOLUA_RELEASE
  13039. tolua_Error tolua_err;
  13040. if (
  13041. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  13042. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  13043. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13044. )
  13045. goto tolua_lerror;
  13046. else
  13047. #endif
  13048. {
  13049. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  13050. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  13051. #ifndef TOLUA_RELEASE
  13052. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetReuseShadowMaps'", NULL);
  13053. #endif
  13054. {
  13055. self->SetReuseShadowMaps(enable);
  13056. }
  13057. }
  13058. return 0;
  13059. #ifndef TOLUA_RELEASE
  13060. tolua_lerror:
  13061. tolua_error(tolua_S,"#ferror in function 'SetReuseShadowMaps'.",&tolua_err);
  13062. return 0;
  13063. #endif
  13064. }
  13065. #endif //#ifndef TOLUA_DISABLE
  13066. /* method: SetMaxShadowMaps of class Renderer */
  13067. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetMaxShadowMaps00
  13068. static int tolua_Graphics_Renderer_SetMaxShadowMaps00(lua_State* tolua_S)
  13069. {
  13070. #ifndef TOLUA_RELEASE
  13071. tolua_Error tolua_err;
  13072. if (
  13073. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  13074. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  13075. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13076. )
  13077. goto tolua_lerror;
  13078. else
  13079. #endif
  13080. {
  13081. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  13082. int shadowMaps = ((int) tolua_tonumber(tolua_S,2,0));
  13083. #ifndef TOLUA_RELEASE
  13084. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxShadowMaps'", NULL);
  13085. #endif
  13086. {
  13087. self->SetMaxShadowMaps(shadowMaps);
  13088. }
  13089. }
  13090. return 0;
  13091. #ifndef TOLUA_RELEASE
  13092. tolua_lerror:
  13093. tolua_error(tolua_S,"#ferror in function 'SetMaxShadowMaps'.",&tolua_err);
  13094. return 0;
  13095. #endif
  13096. }
  13097. #endif //#ifndef TOLUA_DISABLE
  13098. /* method: SetMaxShadowCascades of class Renderer */
  13099. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetMaxShadowCascades00
  13100. static int tolua_Graphics_Renderer_SetMaxShadowCascades00(lua_State* tolua_S)
  13101. {
  13102. #ifndef TOLUA_RELEASE
  13103. tolua_Error tolua_err;
  13104. if (
  13105. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  13106. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  13107. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13108. )
  13109. goto tolua_lerror;
  13110. else
  13111. #endif
  13112. {
  13113. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  13114. int cascades = ((int) tolua_tonumber(tolua_S,2,0));
  13115. #ifndef TOLUA_RELEASE
  13116. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxShadowCascades'", NULL);
  13117. #endif
  13118. {
  13119. self->SetMaxShadowCascades(cascades);
  13120. }
  13121. }
  13122. return 0;
  13123. #ifndef TOLUA_RELEASE
  13124. tolua_lerror:
  13125. tolua_error(tolua_S,"#ferror in function 'SetMaxShadowCascades'.",&tolua_err);
  13126. return 0;
  13127. #endif
  13128. }
  13129. #endif //#ifndef TOLUA_DISABLE
  13130. /* method: SetDynamicInstancing of class Renderer */
  13131. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetDynamicInstancing00
  13132. static int tolua_Graphics_Renderer_SetDynamicInstancing00(lua_State* tolua_S)
  13133. {
  13134. #ifndef TOLUA_RELEASE
  13135. tolua_Error tolua_err;
  13136. if (
  13137. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  13138. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  13139. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13140. )
  13141. goto tolua_lerror;
  13142. else
  13143. #endif
  13144. {
  13145. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  13146. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  13147. #ifndef TOLUA_RELEASE
  13148. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDynamicInstancing'", NULL);
  13149. #endif
  13150. {
  13151. self->SetDynamicInstancing(enable);
  13152. }
  13153. }
  13154. return 0;
  13155. #ifndef TOLUA_RELEASE
  13156. tolua_lerror:
  13157. tolua_error(tolua_S,"#ferror in function 'SetDynamicInstancing'.",&tolua_err);
  13158. return 0;
  13159. #endif
  13160. }
  13161. #endif //#ifndef TOLUA_DISABLE
  13162. /* method: SetMinInstances of class Renderer */
  13163. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetMinInstances00
  13164. static int tolua_Graphics_Renderer_SetMinInstances00(lua_State* tolua_S)
  13165. {
  13166. #ifndef TOLUA_RELEASE
  13167. tolua_Error tolua_err;
  13168. if (
  13169. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  13170. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  13171. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13172. )
  13173. goto tolua_lerror;
  13174. else
  13175. #endif
  13176. {
  13177. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  13178. int instances = ((int) tolua_tonumber(tolua_S,2,0));
  13179. #ifndef TOLUA_RELEASE
  13180. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinInstances'", NULL);
  13181. #endif
  13182. {
  13183. self->SetMinInstances(instances);
  13184. }
  13185. }
  13186. return 0;
  13187. #ifndef TOLUA_RELEASE
  13188. tolua_lerror:
  13189. tolua_error(tolua_S,"#ferror in function 'SetMinInstances'.",&tolua_err);
  13190. return 0;
  13191. #endif
  13192. }
  13193. #endif //#ifndef TOLUA_DISABLE
  13194. /* method: SetMaxInstanceTriangles of class Renderer */
  13195. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetMaxInstanceTriangles00
  13196. static int tolua_Graphics_Renderer_SetMaxInstanceTriangles00(lua_State* tolua_S)
  13197. {
  13198. #ifndef TOLUA_RELEASE
  13199. tolua_Error tolua_err;
  13200. if (
  13201. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  13202. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  13203. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13204. )
  13205. goto tolua_lerror;
  13206. else
  13207. #endif
  13208. {
  13209. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  13210. int triangles = ((int) tolua_tonumber(tolua_S,2,0));
  13211. #ifndef TOLUA_RELEASE
  13212. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxInstanceTriangles'", NULL);
  13213. #endif
  13214. {
  13215. self->SetMaxInstanceTriangles(triangles);
  13216. }
  13217. }
  13218. return 0;
  13219. #ifndef TOLUA_RELEASE
  13220. tolua_lerror:
  13221. tolua_error(tolua_S,"#ferror in function 'SetMaxInstanceTriangles'.",&tolua_err);
  13222. return 0;
  13223. #endif
  13224. }
  13225. #endif //#ifndef TOLUA_DISABLE
  13226. /* method: SetMaxSortedInstances of class Renderer */
  13227. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetMaxSortedInstances00
  13228. static int tolua_Graphics_Renderer_SetMaxSortedInstances00(lua_State* tolua_S)
  13229. {
  13230. #ifndef TOLUA_RELEASE
  13231. tolua_Error tolua_err;
  13232. if (
  13233. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  13234. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  13235. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13236. )
  13237. goto tolua_lerror;
  13238. else
  13239. #endif
  13240. {
  13241. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  13242. int instances = ((int) tolua_tonumber(tolua_S,2,0));
  13243. #ifndef TOLUA_RELEASE
  13244. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxSortedInstances'", NULL);
  13245. #endif
  13246. {
  13247. self->SetMaxSortedInstances(instances);
  13248. }
  13249. }
  13250. return 0;
  13251. #ifndef TOLUA_RELEASE
  13252. tolua_lerror:
  13253. tolua_error(tolua_S,"#ferror in function 'SetMaxSortedInstances'.",&tolua_err);
  13254. return 0;
  13255. #endif
  13256. }
  13257. #endif //#ifndef TOLUA_DISABLE
  13258. /* method: SetMaxOccluderTriangles of class Renderer */
  13259. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetMaxOccluderTriangles00
  13260. static int tolua_Graphics_Renderer_SetMaxOccluderTriangles00(lua_State* tolua_S)
  13261. {
  13262. #ifndef TOLUA_RELEASE
  13263. tolua_Error tolua_err;
  13264. if (
  13265. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  13266. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  13267. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13268. )
  13269. goto tolua_lerror;
  13270. else
  13271. #endif
  13272. {
  13273. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  13274. int triangles = ((int) tolua_tonumber(tolua_S,2,0));
  13275. #ifndef TOLUA_RELEASE
  13276. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxOccluderTriangles'", NULL);
  13277. #endif
  13278. {
  13279. self->SetMaxOccluderTriangles(triangles);
  13280. }
  13281. }
  13282. return 0;
  13283. #ifndef TOLUA_RELEASE
  13284. tolua_lerror:
  13285. tolua_error(tolua_S,"#ferror in function 'SetMaxOccluderTriangles'.",&tolua_err);
  13286. return 0;
  13287. #endif
  13288. }
  13289. #endif //#ifndef TOLUA_DISABLE
  13290. /* method: SetOcclusionBufferSize of class Renderer */
  13291. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetOcclusionBufferSize00
  13292. static int tolua_Graphics_Renderer_SetOcclusionBufferSize00(lua_State* tolua_S)
  13293. {
  13294. #ifndef TOLUA_RELEASE
  13295. tolua_Error tolua_err;
  13296. if (
  13297. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  13298. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  13299. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13300. )
  13301. goto tolua_lerror;
  13302. else
  13303. #endif
  13304. {
  13305. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  13306. int size = ((int) tolua_tonumber(tolua_S,2,0));
  13307. #ifndef TOLUA_RELEASE
  13308. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOcclusionBufferSize'", NULL);
  13309. #endif
  13310. {
  13311. self->SetOcclusionBufferSize(size);
  13312. }
  13313. }
  13314. return 0;
  13315. #ifndef TOLUA_RELEASE
  13316. tolua_lerror:
  13317. tolua_error(tolua_S,"#ferror in function 'SetOcclusionBufferSize'.",&tolua_err);
  13318. return 0;
  13319. #endif
  13320. }
  13321. #endif //#ifndef TOLUA_DISABLE
  13322. /* method: SetOccluderSizeThreshold of class Renderer */
  13323. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetOccluderSizeThreshold00
  13324. static int tolua_Graphics_Renderer_SetOccluderSizeThreshold00(lua_State* tolua_S)
  13325. {
  13326. #ifndef TOLUA_RELEASE
  13327. tolua_Error tolua_err;
  13328. if (
  13329. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  13330. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  13331. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13332. )
  13333. goto tolua_lerror;
  13334. else
  13335. #endif
  13336. {
  13337. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  13338. float screenSize = ((float) tolua_tonumber(tolua_S,2,0));
  13339. #ifndef TOLUA_RELEASE
  13340. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOccluderSizeThreshold'", NULL);
  13341. #endif
  13342. {
  13343. self->SetOccluderSizeThreshold(screenSize);
  13344. }
  13345. }
  13346. return 0;
  13347. #ifndef TOLUA_RELEASE
  13348. tolua_lerror:
  13349. tolua_error(tolua_S,"#ferror in function 'SetOccluderSizeThreshold'.",&tolua_err);
  13350. return 0;
  13351. #endif
  13352. }
  13353. #endif //#ifndef TOLUA_DISABLE
  13354. /* method: ReloadShaders of class Renderer */
  13355. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_ReloadShaders00
  13356. static int tolua_Graphics_Renderer_ReloadShaders00(lua_State* tolua_S)
  13357. {
  13358. #ifndef TOLUA_RELEASE
  13359. tolua_Error tolua_err;
  13360. if (
  13361. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  13362. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13363. )
  13364. goto tolua_lerror;
  13365. else
  13366. #endif
  13367. {
  13368. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  13369. #ifndef TOLUA_RELEASE
  13370. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ReloadShaders'", NULL);
  13371. #endif
  13372. {
  13373. self->ReloadShaders();
  13374. }
  13375. }
  13376. return 0;
  13377. #ifndef TOLUA_RELEASE
  13378. tolua_lerror:
  13379. tolua_error(tolua_S,"#ferror in function 'ReloadShaders'.",&tolua_err);
  13380. return 0;
  13381. #endif
  13382. }
  13383. #endif //#ifndef TOLUA_DISABLE
  13384. /* method: GetNumViewports of class Renderer */
  13385. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetNumViewports00
  13386. static int tolua_Graphics_Renderer_GetNumViewports00(lua_State* tolua_S)
  13387. {
  13388. #ifndef TOLUA_RELEASE
  13389. tolua_Error tolua_err;
  13390. if (
  13391. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13392. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13393. )
  13394. goto tolua_lerror;
  13395. else
  13396. #endif
  13397. {
  13398. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13399. #ifndef TOLUA_RELEASE
  13400. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumViewports'", NULL);
  13401. #endif
  13402. {
  13403. unsigned tolua_ret = (unsigned) self->GetNumViewports();
  13404. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13405. }
  13406. }
  13407. return 1;
  13408. #ifndef TOLUA_RELEASE
  13409. tolua_lerror:
  13410. tolua_error(tolua_S,"#ferror in function 'GetNumViewports'.",&tolua_err);
  13411. return 0;
  13412. #endif
  13413. }
  13414. #endif //#ifndef TOLUA_DISABLE
  13415. /* method: GetViewport of class Renderer */
  13416. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetViewport00
  13417. static int tolua_Graphics_Renderer_GetViewport00(lua_State* tolua_S)
  13418. {
  13419. #ifndef TOLUA_RELEASE
  13420. tolua_Error tolua_err;
  13421. if (
  13422. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13423. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  13424. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13425. )
  13426. goto tolua_lerror;
  13427. else
  13428. #endif
  13429. {
  13430. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13431. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  13432. #ifndef TOLUA_RELEASE
  13433. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetViewport'", NULL);
  13434. #endif
  13435. {
  13436. Viewport* tolua_ret = (Viewport*) self->GetViewport(index);
  13437. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Viewport");
  13438. }
  13439. }
  13440. return 1;
  13441. #ifndef TOLUA_RELEASE
  13442. tolua_lerror:
  13443. tolua_error(tolua_S,"#ferror in function 'GetViewport'.",&tolua_err);
  13444. return 0;
  13445. #endif
  13446. }
  13447. #endif //#ifndef TOLUA_DISABLE
  13448. /* method: GetDefaultRenderPath of class Renderer */
  13449. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetDefaultRenderPath00
  13450. static int tolua_Graphics_Renderer_GetDefaultRenderPath00(lua_State* tolua_S)
  13451. {
  13452. #ifndef TOLUA_RELEASE
  13453. tolua_Error tolua_err;
  13454. if (
  13455. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13456. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13457. )
  13458. goto tolua_lerror;
  13459. else
  13460. #endif
  13461. {
  13462. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13463. #ifndef TOLUA_RELEASE
  13464. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDefaultRenderPath'", NULL);
  13465. #endif
  13466. {
  13467. RenderPath* tolua_ret = (RenderPath*) self->GetDefaultRenderPath();
  13468. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RenderPath");
  13469. }
  13470. }
  13471. return 1;
  13472. #ifndef TOLUA_RELEASE
  13473. tolua_lerror:
  13474. tolua_error(tolua_S,"#ferror in function 'GetDefaultRenderPath'.",&tolua_err);
  13475. return 0;
  13476. #endif
  13477. }
  13478. #endif //#ifndef TOLUA_DISABLE
  13479. /* method: GetSpecularLighting of class Renderer */
  13480. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetSpecularLighting00
  13481. static int tolua_Graphics_Renderer_GetSpecularLighting00(lua_State* tolua_S)
  13482. {
  13483. #ifndef TOLUA_RELEASE
  13484. tolua_Error tolua_err;
  13485. if (
  13486. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13487. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13488. )
  13489. goto tolua_lerror;
  13490. else
  13491. #endif
  13492. {
  13493. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13494. #ifndef TOLUA_RELEASE
  13495. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSpecularLighting'", NULL);
  13496. #endif
  13497. {
  13498. bool tolua_ret = (bool) self->GetSpecularLighting();
  13499. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  13500. }
  13501. }
  13502. return 1;
  13503. #ifndef TOLUA_RELEASE
  13504. tolua_lerror:
  13505. tolua_error(tolua_S,"#ferror in function 'GetSpecularLighting'.",&tolua_err);
  13506. return 0;
  13507. #endif
  13508. }
  13509. #endif //#ifndef TOLUA_DISABLE
  13510. /* method: GetDrawShadows of class Renderer */
  13511. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetDrawShadows00
  13512. static int tolua_Graphics_Renderer_GetDrawShadows00(lua_State* tolua_S)
  13513. {
  13514. #ifndef TOLUA_RELEASE
  13515. tolua_Error tolua_err;
  13516. if (
  13517. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13518. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13519. )
  13520. goto tolua_lerror;
  13521. else
  13522. #endif
  13523. {
  13524. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13525. #ifndef TOLUA_RELEASE
  13526. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDrawShadows'", NULL);
  13527. #endif
  13528. {
  13529. bool tolua_ret = (bool) self->GetDrawShadows();
  13530. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  13531. }
  13532. }
  13533. return 1;
  13534. #ifndef TOLUA_RELEASE
  13535. tolua_lerror:
  13536. tolua_error(tolua_S,"#ferror in function 'GetDrawShadows'.",&tolua_err);
  13537. return 0;
  13538. #endif
  13539. }
  13540. #endif //#ifndef TOLUA_DISABLE
  13541. /* method: GetTextureAnisotropy of class Renderer */
  13542. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetTextureAnisotropy00
  13543. static int tolua_Graphics_Renderer_GetTextureAnisotropy00(lua_State* tolua_S)
  13544. {
  13545. #ifndef TOLUA_RELEASE
  13546. tolua_Error tolua_err;
  13547. if (
  13548. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13549. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13550. )
  13551. goto tolua_lerror;
  13552. else
  13553. #endif
  13554. {
  13555. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13556. #ifndef TOLUA_RELEASE
  13557. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTextureAnisotropy'", NULL);
  13558. #endif
  13559. {
  13560. int tolua_ret = (int) self->GetTextureAnisotropy();
  13561. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13562. }
  13563. }
  13564. return 1;
  13565. #ifndef TOLUA_RELEASE
  13566. tolua_lerror:
  13567. tolua_error(tolua_S,"#ferror in function 'GetTextureAnisotropy'.",&tolua_err);
  13568. return 0;
  13569. #endif
  13570. }
  13571. #endif //#ifndef TOLUA_DISABLE
  13572. /* method: GetTextureFilterMode of class Renderer */
  13573. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetTextureFilterMode00
  13574. static int tolua_Graphics_Renderer_GetTextureFilterMode00(lua_State* tolua_S)
  13575. {
  13576. #ifndef TOLUA_RELEASE
  13577. tolua_Error tolua_err;
  13578. if (
  13579. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13580. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13581. )
  13582. goto tolua_lerror;
  13583. else
  13584. #endif
  13585. {
  13586. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13587. #ifndef TOLUA_RELEASE
  13588. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTextureFilterMode'", NULL);
  13589. #endif
  13590. {
  13591. TextureFilterMode tolua_ret = (TextureFilterMode) self->GetTextureFilterMode();
  13592. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13593. }
  13594. }
  13595. return 1;
  13596. #ifndef TOLUA_RELEASE
  13597. tolua_lerror:
  13598. tolua_error(tolua_S,"#ferror in function 'GetTextureFilterMode'.",&tolua_err);
  13599. return 0;
  13600. #endif
  13601. }
  13602. #endif //#ifndef TOLUA_DISABLE
  13603. /* method: GetTextureQuality of class Renderer */
  13604. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetTextureQuality00
  13605. static int tolua_Graphics_Renderer_GetTextureQuality00(lua_State* tolua_S)
  13606. {
  13607. #ifndef TOLUA_RELEASE
  13608. tolua_Error tolua_err;
  13609. if (
  13610. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13611. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13612. )
  13613. goto tolua_lerror;
  13614. else
  13615. #endif
  13616. {
  13617. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13618. #ifndef TOLUA_RELEASE
  13619. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTextureQuality'", NULL);
  13620. #endif
  13621. {
  13622. int tolua_ret = (int) self->GetTextureQuality();
  13623. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13624. }
  13625. }
  13626. return 1;
  13627. #ifndef TOLUA_RELEASE
  13628. tolua_lerror:
  13629. tolua_error(tolua_S,"#ferror in function 'GetTextureQuality'.",&tolua_err);
  13630. return 0;
  13631. #endif
  13632. }
  13633. #endif //#ifndef TOLUA_DISABLE
  13634. /* method: GetMaterialQuality of class Renderer */
  13635. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetMaterialQuality00
  13636. static int tolua_Graphics_Renderer_GetMaterialQuality00(lua_State* tolua_S)
  13637. {
  13638. #ifndef TOLUA_RELEASE
  13639. tolua_Error tolua_err;
  13640. if (
  13641. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13642. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13643. )
  13644. goto tolua_lerror;
  13645. else
  13646. #endif
  13647. {
  13648. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13649. #ifndef TOLUA_RELEASE
  13650. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaterialQuality'", NULL);
  13651. #endif
  13652. {
  13653. int tolua_ret = (int) self->GetMaterialQuality();
  13654. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13655. }
  13656. }
  13657. return 1;
  13658. #ifndef TOLUA_RELEASE
  13659. tolua_lerror:
  13660. tolua_error(tolua_S,"#ferror in function 'GetMaterialQuality'.",&tolua_err);
  13661. return 0;
  13662. #endif
  13663. }
  13664. #endif //#ifndef TOLUA_DISABLE
  13665. /* method: GetShadowMapSize of class Renderer */
  13666. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetShadowMapSize00
  13667. static int tolua_Graphics_Renderer_GetShadowMapSize00(lua_State* tolua_S)
  13668. {
  13669. #ifndef TOLUA_RELEASE
  13670. tolua_Error tolua_err;
  13671. if (
  13672. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13673. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13674. )
  13675. goto tolua_lerror;
  13676. else
  13677. #endif
  13678. {
  13679. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13680. #ifndef TOLUA_RELEASE
  13681. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowMapSize'", NULL);
  13682. #endif
  13683. {
  13684. int tolua_ret = (int) self->GetShadowMapSize();
  13685. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13686. }
  13687. }
  13688. return 1;
  13689. #ifndef TOLUA_RELEASE
  13690. tolua_lerror:
  13691. tolua_error(tolua_S,"#ferror in function 'GetShadowMapSize'.",&tolua_err);
  13692. return 0;
  13693. #endif
  13694. }
  13695. #endif //#ifndef TOLUA_DISABLE
  13696. /* method: GetShadowQuality of class Renderer */
  13697. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetShadowQuality00
  13698. static int tolua_Graphics_Renderer_GetShadowQuality00(lua_State* tolua_S)
  13699. {
  13700. #ifndef TOLUA_RELEASE
  13701. tolua_Error tolua_err;
  13702. if (
  13703. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13704. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13705. )
  13706. goto tolua_lerror;
  13707. else
  13708. #endif
  13709. {
  13710. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13711. #ifndef TOLUA_RELEASE
  13712. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowQuality'", NULL);
  13713. #endif
  13714. {
  13715. int tolua_ret = (int) self->GetShadowQuality();
  13716. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13717. }
  13718. }
  13719. return 1;
  13720. #ifndef TOLUA_RELEASE
  13721. tolua_lerror:
  13722. tolua_error(tolua_S,"#ferror in function 'GetShadowQuality'.",&tolua_err);
  13723. return 0;
  13724. #endif
  13725. }
  13726. #endif //#ifndef TOLUA_DISABLE
  13727. /* method: GetReuseShadowMaps of class Renderer */
  13728. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetReuseShadowMaps00
  13729. static int tolua_Graphics_Renderer_GetReuseShadowMaps00(lua_State* tolua_S)
  13730. {
  13731. #ifndef TOLUA_RELEASE
  13732. tolua_Error tolua_err;
  13733. if (
  13734. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13735. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13736. )
  13737. goto tolua_lerror;
  13738. else
  13739. #endif
  13740. {
  13741. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13742. #ifndef TOLUA_RELEASE
  13743. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetReuseShadowMaps'", NULL);
  13744. #endif
  13745. {
  13746. bool tolua_ret = (bool) self->GetReuseShadowMaps();
  13747. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  13748. }
  13749. }
  13750. return 1;
  13751. #ifndef TOLUA_RELEASE
  13752. tolua_lerror:
  13753. tolua_error(tolua_S,"#ferror in function 'GetReuseShadowMaps'.",&tolua_err);
  13754. return 0;
  13755. #endif
  13756. }
  13757. #endif //#ifndef TOLUA_DISABLE
  13758. /* method: GetMaxShadowMaps of class Renderer */
  13759. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetMaxShadowMaps00
  13760. static int tolua_Graphics_Renderer_GetMaxShadowMaps00(lua_State* tolua_S)
  13761. {
  13762. #ifndef TOLUA_RELEASE
  13763. tolua_Error tolua_err;
  13764. if (
  13765. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13766. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13767. )
  13768. goto tolua_lerror;
  13769. else
  13770. #endif
  13771. {
  13772. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13773. #ifndef TOLUA_RELEASE
  13774. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxShadowMaps'", NULL);
  13775. #endif
  13776. {
  13777. int tolua_ret = (int) self->GetMaxShadowMaps();
  13778. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13779. }
  13780. }
  13781. return 1;
  13782. #ifndef TOLUA_RELEASE
  13783. tolua_lerror:
  13784. tolua_error(tolua_S,"#ferror in function 'GetMaxShadowMaps'.",&tolua_err);
  13785. return 0;
  13786. #endif
  13787. }
  13788. #endif //#ifndef TOLUA_DISABLE
  13789. /* method: GetMaxShadowCascades of class Renderer */
  13790. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetMaxShadowCascades00
  13791. static int tolua_Graphics_Renderer_GetMaxShadowCascades00(lua_State* tolua_S)
  13792. {
  13793. #ifndef TOLUA_RELEASE
  13794. tolua_Error tolua_err;
  13795. if (
  13796. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13797. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13798. )
  13799. goto tolua_lerror;
  13800. else
  13801. #endif
  13802. {
  13803. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13804. #ifndef TOLUA_RELEASE
  13805. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxShadowCascades'", NULL);
  13806. #endif
  13807. {
  13808. int tolua_ret = (int) self->GetMaxShadowCascades();
  13809. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13810. }
  13811. }
  13812. return 1;
  13813. #ifndef TOLUA_RELEASE
  13814. tolua_lerror:
  13815. tolua_error(tolua_S,"#ferror in function 'GetMaxShadowCascades'.",&tolua_err);
  13816. return 0;
  13817. #endif
  13818. }
  13819. #endif //#ifndef TOLUA_DISABLE
  13820. /* method: GetDynamicInstancing of class Renderer */
  13821. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetDynamicInstancing00
  13822. static int tolua_Graphics_Renderer_GetDynamicInstancing00(lua_State* tolua_S)
  13823. {
  13824. #ifndef TOLUA_RELEASE
  13825. tolua_Error tolua_err;
  13826. if (
  13827. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13828. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13829. )
  13830. goto tolua_lerror;
  13831. else
  13832. #endif
  13833. {
  13834. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13835. #ifndef TOLUA_RELEASE
  13836. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDynamicInstancing'", NULL);
  13837. #endif
  13838. {
  13839. bool tolua_ret = (bool) self->GetDynamicInstancing();
  13840. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  13841. }
  13842. }
  13843. return 1;
  13844. #ifndef TOLUA_RELEASE
  13845. tolua_lerror:
  13846. tolua_error(tolua_S,"#ferror in function 'GetDynamicInstancing'.",&tolua_err);
  13847. return 0;
  13848. #endif
  13849. }
  13850. #endif //#ifndef TOLUA_DISABLE
  13851. /* method: GetMinInstances of class Renderer */
  13852. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetMinInstances00
  13853. static int tolua_Graphics_Renderer_GetMinInstances00(lua_State* tolua_S)
  13854. {
  13855. #ifndef TOLUA_RELEASE
  13856. tolua_Error tolua_err;
  13857. if (
  13858. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13859. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13860. )
  13861. goto tolua_lerror;
  13862. else
  13863. #endif
  13864. {
  13865. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13866. #ifndef TOLUA_RELEASE
  13867. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinInstances'", NULL);
  13868. #endif
  13869. {
  13870. int tolua_ret = (int) self->GetMinInstances();
  13871. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13872. }
  13873. }
  13874. return 1;
  13875. #ifndef TOLUA_RELEASE
  13876. tolua_lerror:
  13877. tolua_error(tolua_S,"#ferror in function 'GetMinInstances'.",&tolua_err);
  13878. return 0;
  13879. #endif
  13880. }
  13881. #endif //#ifndef TOLUA_DISABLE
  13882. /* method: GetMaxInstanceTriangles of class Renderer */
  13883. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetMaxInstanceTriangles00
  13884. static int tolua_Graphics_Renderer_GetMaxInstanceTriangles00(lua_State* tolua_S)
  13885. {
  13886. #ifndef TOLUA_RELEASE
  13887. tolua_Error tolua_err;
  13888. if (
  13889. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13890. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13891. )
  13892. goto tolua_lerror;
  13893. else
  13894. #endif
  13895. {
  13896. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13897. #ifndef TOLUA_RELEASE
  13898. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxInstanceTriangles'", NULL);
  13899. #endif
  13900. {
  13901. int tolua_ret = (int) self->GetMaxInstanceTriangles();
  13902. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13903. }
  13904. }
  13905. return 1;
  13906. #ifndef TOLUA_RELEASE
  13907. tolua_lerror:
  13908. tolua_error(tolua_S,"#ferror in function 'GetMaxInstanceTriangles'.",&tolua_err);
  13909. return 0;
  13910. #endif
  13911. }
  13912. #endif //#ifndef TOLUA_DISABLE
  13913. /* method: GetMaxSortedInstances of class Renderer */
  13914. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetMaxSortedInstances00
  13915. static int tolua_Graphics_Renderer_GetMaxSortedInstances00(lua_State* tolua_S)
  13916. {
  13917. #ifndef TOLUA_RELEASE
  13918. tolua_Error tolua_err;
  13919. if (
  13920. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13921. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13922. )
  13923. goto tolua_lerror;
  13924. else
  13925. #endif
  13926. {
  13927. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13928. #ifndef TOLUA_RELEASE
  13929. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxSortedInstances'", NULL);
  13930. #endif
  13931. {
  13932. int tolua_ret = (int) self->GetMaxSortedInstances();
  13933. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13934. }
  13935. }
  13936. return 1;
  13937. #ifndef TOLUA_RELEASE
  13938. tolua_lerror:
  13939. tolua_error(tolua_S,"#ferror in function 'GetMaxSortedInstances'.",&tolua_err);
  13940. return 0;
  13941. #endif
  13942. }
  13943. #endif //#ifndef TOLUA_DISABLE
  13944. /* method: GetMaxOccluderTriangles of class Renderer */
  13945. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetMaxOccluderTriangles00
  13946. static int tolua_Graphics_Renderer_GetMaxOccluderTriangles00(lua_State* tolua_S)
  13947. {
  13948. #ifndef TOLUA_RELEASE
  13949. tolua_Error tolua_err;
  13950. if (
  13951. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13952. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13953. )
  13954. goto tolua_lerror;
  13955. else
  13956. #endif
  13957. {
  13958. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13959. #ifndef TOLUA_RELEASE
  13960. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxOccluderTriangles'", NULL);
  13961. #endif
  13962. {
  13963. int tolua_ret = (int) self->GetMaxOccluderTriangles();
  13964. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13965. }
  13966. }
  13967. return 1;
  13968. #ifndef TOLUA_RELEASE
  13969. tolua_lerror:
  13970. tolua_error(tolua_S,"#ferror in function 'GetMaxOccluderTriangles'.",&tolua_err);
  13971. return 0;
  13972. #endif
  13973. }
  13974. #endif //#ifndef TOLUA_DISABLE
  13975. /* method: GetOcclusionBufferSize of class Renderer */
  13976. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetOcclusionBufferSize00
  13977. static int tolua_Graphics_Renderer_GetOcclusionBufferSize00(lua_State* tolua_S)
  13978. {
  13979. #ifndef TOLUA_RELEASE
  13980. tolua_Error tolua_err;
  13981. if (
  13982. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13983. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13984. )
  13985. goto tolua_lerror;
  13986. else
  13987. #endif
  13988. {
  13989. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13990. #ifndef TOLUA_RELEASE
  13991. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOcclusionBufferSize'", NULL);
  13992. #endif
  13993. {
  13994. int tolua_ret = (int) self->GetOcclusionBufferSize();
  13995. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13996. }
  13997. }
  13998. return 1;
  13999. #ifndef TOLUA_RELEASE
  14000. tolua_lerror:
  14001. tolua_error(tolua_S,"#ferror in function 'GetOcclusionBufferSize'.",&tolua_err);
  14002. return 0;
  14003. #endif
  14004. }
  14005. #endif //#ifndef TOLUA_DISABLE
  14006. /* method: GetOccluderSizeThreshold of class Renderer */
  14007. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetOccluderSizeThreshold00
  14008. static int tolua_Graphics_Renderer_GetOccluderSizeThreshold00(lua_State* tolua_S)
  14009. {
  14010. #ifndef TOLUA_RELEASE
  14011. tolua_Error tolua_err;
  14012. if (
  14013. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14014. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14015. )
  14016. goto tolua_lerror;
  14017. else
  14018. #endif
  14019. {
  14020. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14021. #ifndef TOLUA_RELEASE
  14022. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOccluderSizeThreshold'", NULL);
  14023. #endif
  14024. {
  14025. float tolua_ret = (float) self->GetOccluderSizeThreshold();
  14026. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  14027. }
  14028. }
  14029. return 1;
  14030. #ifndef TOLUA_RELEASE
  14031. tolua_lerror:
  14032. tolua_error(tolua_S,"#ferror in function 'GetOccluderSizeThreshold'.",&tolua_err);
  14033. return 0;
  14034. #endif
  14035. }
  14036. #endif //#ifndef TOLUA_DISABLE
  14037. /* method: GetNumViews of class Renderer */
  14038. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetNumViews00
  14039. static int tolua_Graphics_Renderer_GetNumViews00(lua_State* tolua_S)
  14040. {
  14041. #ifndef TOLUA_RELEASE
  14042. tolua_Error tolua_err;
  14043. if (
  14044. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14045. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14046. )
  14047. goto tolua_lerror;
  14048. else
  14049. #endif
  14050. {
  14051. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14052. #ifndef TOLUA_RELEASE
  14053. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumViews'", NULL);
  14054. #endif
  14055. {
  14056. unsigned tolua_ret = (unsigned) self->GetNumViews();
  14057. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  14058. }
  14059. }
  14060. return 1;
  14061. #ifndef TOLUA_RELEASE
  14062. tolua_lerror:
  14063. tolua_error(tolua_S,"#ferror in function 'GetNumViews'.",&tolua_err);
  14064. return 0;
  14065. #endif
  14066. }
  14067. #endif //#ifndef TOLUA_DISABLE
  14068. /* method: GetNumPrimitives of class Renderer */
  14069. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetNumPrimitives00
  14070. static int tolua_Graphics_Renderer_GetNumPrimitives00(lua_State* tolua_S)
  14071. {
  14072. #ifndef TOLUA_RELEASE
  14073. tolua_Error tolua_err;
  14074. if (
  14075. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14076. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14077. )
  14078. goto tolua_lerror;
  14079. else
  14080. #endif
  14081. {
  14082. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14083. #ifndef TOLUA_RELEASE
  14084. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumPrimitives'", NULL);
  14085. #endif
  14086. {
  14087. unsigned tolua_ret = (unsigned) self->GetNumPrimitives();
  14088. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  14089. }
  14090. }
  14091. return 1;
  14092. #ifndef TOLUA_RELEASE
  14093. tolua_lerror:
  14094. tolua_error(tolua_S,"#ferror in function 'GetNumPrimitives'.",&tolua_err);
  14095. return 0;
  14096. #endif
  14097. }
  14098. #endif //#ifndef TOLUA_DISABLE
  14099. /* method: GetNumBatches of class Renderer */
  14100. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetNumBatches00
  14101. static int tolua_Graphics_Renderer_GetNumBatches00(lua_State* tolua_S)
  14102. {
  14103. #ifndef TOLUA_RELEASE
  14104. tolua_Error tolua_err;
  14105. if (
  14106. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14107. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14108. )
  14109. goto tolua_lerror;
  14110. else
  14111. #endif
  14112. {
  14113. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14114. #ifndef TOLUA_RELEASE
  14115. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumBatches'", NULL);
  14116. #endif
  14117. {
  14118. unsigned tolua_ret = (unsigned) self->GetNumBatches();
  14119. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  14120. }
  14121. }
  14122. return 1;
  14123. #ifndef TOLUA_RELEASE
  14124. tolua_lerror:
  14125. tolua_error(tolua_S,"#ferror in function 'GetNumBatches'.",&tolua_err);
  14126. return 0;
  14127. #endif
  14128. }
  14129. #endif //#ifndef TOLUA_DISABLE
  14130. /* method: GetNumGeometries of class Renderer */
  14131. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetNumGeometries00
  14132. static int tolua_Graphics_Renderer_GetNumGeometries00(lua_State* tolua_S)
  14133. {
  14134. #ifndef TOLUA_RELEASE
  14135. tolua_Error tolua_err;
  14136. if (
  14137. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14138. !tolua_isboolean(tolua_S,2,1,&tolua_err) ||
  14139. !tolua_isnoobj(tolua_S,3,&tolua_err)
  14140. )
  14141. goto tolua_lerror;
  14142. else
  14143. #endif
  14144. {
  14145. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14146. bool allViews = ((bool) tolua_toboolean(tolua_S,2,false));
  14147. #ifndef TOLUA_RELEASE
  14148. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumGeometries'", NULL);
  14149. #endif
  14150. {
  14151. unsigned tolua_ret = (unsigned) self->GetNumGeometries(allViews);
  14152. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  14153. }
  14154. }
  14155. return 1;
  14156. #ifndef TOLUA_RELEASE
  14157. tolua_lerror:
  14158. tolua_error(tolua_S,"#ferror in function 'GetNumGeometries'.",&tolua_err);
  14159. return 0;
  14160. #endif
  14161. }
  14162. #endif //#ifndef TOLUA_DISABLE
  14163. /* method: GetNumLights of class Renderer */
  14164. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetNumLights00
  14165. static int tolua_Graphics_Renderer_GetNumLights00(lua_State* tolua_S)
  14166. {
  14167. #ifndef TOLUA_RELEASE
  14168. tolua_Error tolua_err;
  14169. if (
  14170. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14171. !tolua_isboolean(tolua_S,2,1,&tolua_err) ||
  14172. !tolua_isnoobj(tolua_S,3,&tolua_err)
  14173. )
  14174. goto tolua_lerror;
  14175. else
  14176. #endif
  14177. {
  14178. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14179. bool allViews = ((bool) tolua_toboolean(tolua_S,2,false));
  14180. #ifndef TOLUA_RELEASE
  14181. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumLights'", NULL);
  14182. #endif
  14183. {
  14184. unsigned tolua_ret = (unsigned) self->GetNumLights(allViews);
  14185. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  14186. }
  14187. }
  14188. return 1;
  14189. #ifndef TOLUA_RELEASE
  14190. tolua_lerror:
  14191. tolua_error(tolua_S,"#ferror in function 'GetNumLights'.",&tolua_err);
  14192. return 0;
  14193. #endif
  14194. }
  14195. #endif //#ifndef TOLUA_DISABLE
  14196. /* method: GetNumShadowMaps of class Renderer */
  14197. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetNumShadowMaps00
  14198. static int tolua_Graphics_Renderer_GetNumShadowMaps00(lua_State* tolua_S)
  14199. {
  14200. #ifndef TOLUA_RELEASE
  14201. tolua_Error tolua_err;
  14202. if (
  14203. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14204. !tolua_isboolean(tolua_S,2,1,&tolua_err) ||
  14205. !tolua_isnoobj(tolua_S,3,&tolua_err)
  14206. )
  14207. goto tolua_lerror;
  14208. else
  14209. #endif
  14210. {
  14211. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14212. bool allViews = ((bool) tolua_toboolean(tolua_S,2,false));
  14213. #ifndef TOLUA_RELEASE
  14214. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumShadowMaps'", NULL);
  14215. #endif
  14216. {
  14217. unsigned tolua_ret = (unsigned) self->GetNumShadowMaps(allViews);
  14218. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  14219. }
  14220. }
  14221. return 1;
  14222. #ifndef TOLUA_RELEASE
  14223. tolua_lerror:
  14224. tolua_error(tolua_S,"#ferror in function 'GetNumShadowMaps'.",&tolua_err);
  14225. return 0;
  14226. #endif
  14227. }
  14228. #endif //#ifndef TOLUA_DISABLE
  14229. /* method: GetNumOccluders of class Renderer */
  14230. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetNumOccluders00
  14231. static int tolua_Graphics_Renderer_GetNumOccluders00(lua_State* tolua_S)
  14232. {
  14233. #ifndef TOLUA_RELEASE
  14234. tolua_Error tolua_err;
  14235. if (
  14236. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14237. !tolua_isboolean(tolua_S,2,1,&tolua_err) ||
  14238. !tolua_isnoobj(tolua_S,3,&tolua_err)
  14239. )
  14240. goto tolua_lerror;
  14241. else
  14242. #endif
  14243. {
  14244. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14245. bool allViews = ((bool) tolua_toboolean(tolua_S,2,false));
  14246. #ifndef TOLUA_RELEASE
  14247. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumOccluders'", NULL);
  14248. #endif
  14249. {
  14250. unsigned tolua_ret = (unsigned) self->GetNumOccluders(allViews);
  14251. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  14252. }
  14253. }
  14254. return 1;
  14255. #ifndef TOLUA_RELEASE
  14256. tolua_lerror:
  14257. tolua_error(tolua_S,"#ferror in function 'GetNumOccluders'.",&tolua_err);
  14258. return 0;
  14259. #endif
  14260. }
  14261. #endif //#ifndef TOLUA_DISABLE
  14262. /* method: GetDefaultZone of class Renderer */
  14263. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetDefaultZone00
  14264. static int tolua_Graphics_Renderer_GetDefaultZone00(lua_State* tolua_S)
  14265. {
  14266. #ifndef TOLUA_RELEASE
  14267. tolua_Error tolua_err;
  14268. if (
  14269. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14270. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14271. )
  14272. goto tolua_lerror;
  14273. else
  14274. #endif
  14275. {
  14276. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14277. #ifndef TOLUA_RELEASE
  14278. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDefaultZone'", NULL);
  14279. #endif
  14280. {
  14281. Zone* tolua_ret = (Zone*) self->GetDefaultZone();
  14282. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Zone");
  14283. }
  14284. }
  14285. return 1;
  14286. #ifndef TOLUA_RELEASE
  14287. tolua_lerror:
  14288. tolua_error(tolua_S,"#ferror in function 'GetDefaultZone'.",&tolua_err);
  14289. return 0;
  14290. #endif
  14291. }
  14292. #endif //#ifndef TOLUA_DISABLE
  14293. /* method: GetQuadDirLight of class Renderer */
  14294. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetQuadDirLight00
  14295. static int tolua_Graphics_Renderer_GetQuadDirLight00(lua_State* tolua_S)
  14296. {
  14297. #ifndef TOLUA_RELEASE
  14298. tolua_Error tolua_err;
  14299. if (
  14300. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14301. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14302. )
  14303. goto tolua_lerror;
  14304. else
  14305. #endif
  14306. {
  14307. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14308. #ifndef TOLUA_RELEASE
  14309. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetQuadDirLight'", NULL);
  14310. #endif
  14311. {
  14312. Light* tolua_ret = (Light*) self->GetQuadDirLight();
  14313. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Light");
  14314. }
  14315. }
  14316. return 1;
  14317. #ifndef TOLUA_RELEASE
  14318. tolua_lerror:
  14319. tolua_error(tolua_S,"#ferror in function 'GetQuadDirLight'.",&tolua_err);
  14320. return 0;
  14321. #endif
  14322. }
  14323. #endif //#ifndef TOLUA_DISABLE
  14324. /* method: GetDefaultMaterial of class Renderer */
  14325. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetDefaultMaterial00
  14326. static int tolua_Graphics_Renderer_GetDefaultMaterial00(lua_State* tolua_S)
  14327. {
  14328. #ifndef TOLUA_RELEASE
  14329. tolua_Error tolua_err;
  14330. if (
  14331. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14332. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14333. )
  14334. goto tolua_lerror;
  14335. else
  14336. #endif
  14337. {
  14338. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14339. #ifndef TOLUA_RELEASE
  14340. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDefaultMaterial'", NULL);
  14341. #endif
  14342. {
  14343. Material* tolua_ret = (Material*) self->GetDefaultMaterial();
  14344. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Material");
  14345. }
  14346. }
  14347. return 1;
  14348. #ifndef TOLUA_RELEASE
  14349. tolua_lerror:
  14350. tolua_error(tolua_S,"#ferror in function 'GetDefaultMaterial'.",&tolua_err);
  14351. return 0;
  14352. #endif
  14353. }
  14354. #endif //#ifndef TOLUA_DISABLE
  14355. /* method: GetDefaultLightRamp of class Renderer */
  14356. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetDefaultLightRamp00
  14357. static int tolua_Graphics_Renderer_GetDefaultLightRamp00(lua_State* tolua_S)
  14358. {
  14359. #ifndef TOLUA_RELEASE
  14360. tolua_Error tolua_err;
  14361. if (
  14362. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14363. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14364. )
  14365. goto tolua_lerror;
  14366. else
  14367. #endif
  14368. {
  14369. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14370. #ifndef TOLUA_RELEASE
  14371. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDefaultLightRamp'", NULL);
  14372. #endif
  14373. {
  14374. Texture2D* tolua_ret = (Texture2D*) self->GetDefaultLightRamp();
  14375. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Texture2D");
  14376. }
  14377. }
  14378. return 1;
  14379. #ifndef TOLUA_RELEASE
  14380. tolua_lerror:
  14381. tolua_error(tolua_S,"#ferror in function 'GetDefaultLightRamp'.",&tolua_err);
  14382. return 0;
  14383. #endif
  14384. }
  14385. #endif //#ifndef TOLUA_DISABLE
  14386. /* method: GetDefaultLightSpot of class Renderer */
  14387. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetDefaultLightSpot00
  14388. static int tolua_Graphics_Renderer_GetDefaultLightSpot00(lua_State* tolua_S)
  14389. {
  14390. #ifndef TOLUA_RELEASE
  14391. tolua_Error tolua_err;
  14392. if (
  14393. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14394. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14395. )
  14396. goto tolua_lerror;
  14397. else
  14398. #endif
  14399. {
  14400. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14401. #ifndef TOLUA_RELEASE
  14402. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDefaultLightSpot'", NULL);
  14403. #endif
  14404. {
  14405. Texture2D* tolua_ret = (Texture2D*) self->GetDefaultLightSpot();
  14406. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Texture2D");
  14407. }
  14408. }
  14409. return 1;
  14410. #ifndef TOLUA_RELEASE
  14411. tolua_lerror:
  14412. tolua_error(tolua_S,"#ferror in function 'GetDefaultLightSpot'.",&tolua_err);
  14413. return 0;
  14414. #endif
  14415. }
  14416. #endif //#ifndef TOLUA_DISABLE
  14417. /* method: GetFaceSelectCubeMap of class Renderer */
  14418. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetFaceSelectCubeMap00
  14419. static int tolua_Graphics_Renderer_GetFaceSelectCubeMap00(lua_State* tolua_S)
  14420. {
  14421. #ifndef TOLUA_RELEASE
  14422. tolua_Error tolua_err;
  14423. if (
  14424. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14425. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14426. )
  14427. goto tolua_lerror;
  14428. else
  14429. #endif
  14430. {
  14431. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14432. #ifndef TOLUA_RELEASE
  14433. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFaceSelectCubeMap'", NULL);
  14434. #endif
  14435. {
  14436. TextureCube* tolua_ret = (TextureCube*) self->GetFaceSelectCubeMap();
  14437. tolua_pushusertype(tolua_S,(void*)tolua_ret,"TextureCube");
  14438. }
  14439. }
  14440. return 1;
  14441. #ifndef TOLUA_RELEASE
  14442. tolua_lerror:
  14443. tolua_error(tolua_S,"#ferror in function 'GetFaceSelectCubeMap'.",&tolua_err);
  14444. return 0;
  14445. #endif
  14446. }
  14447. #endif //#ifndef TOLUA_DISABLE
  14448. /* method: GetIndirectionCubeMap of class Renderer */
  14449. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetIndirectionCubeMap00
  14450. static int tolua_Graphics_Renderer_GetIndirectionCubeMap00(lua_State* tolua_S)
  14451. {
  14452. #ifndef TOLUA_RELEASE
  14453. tolua_Error tolua_err;
  14454. if (
  14455. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14456. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14457. )
  14458. goto tolua_lerror;
  14459. else
  14460. #endif
  14461. {
  14462. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14463. #ifndef TOLUA_RELEASE
  14464. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetIndirectionCubeMap'", NULL);
  14465. #endif
  14466. {
  14467. TextureCube* tolua_ret = (TextureCube*) self->GetIndirectionCubeMap();
  14468. tolua_pushusertype(tolua_S,(void*)tolua_ret,"TextureCube");
  14469. }
  14470. }
  14471. return 1;
  14472. #ifndef TOLUA_RELEASE
  14473. tolua_lerror:
  14474. tolua_error(tolua_S,"#ferror in function 'GetIndirectionCubeMap'.",&tolua_err);
  14475. return 0;
  14476. #endif
  14477. }
  14478. #endif //#ifndef TOLUA_DISABLE
  14479. /* method: GetInstancingBuffer of class Renderer */
  14480. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetInstancingBuffer00
  14481. static int tolua_Graphics_Renderer_GetInstancingBuffer00(lua_State* tolua_S)
  14482. {
  14483. #ifndef TOLUA_RELEASE
  14484. tolua_Error tolua_err;
  14485. if (
  14486. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14487. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14488. )
  14489. goto tolua_lerror;
  14490. else
  14491. #endif
  14492. {
  14493. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14494. #ifndef TOLUA_RELEASE
  14495. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetInstancingBuffer'", NULL);
  14496. #endif
  14497. {
  14498. VertexBuffer* tolua_ret = (VertexBuffer*) self->GetInstancingBuffer();
  14499. tolua_pushusertype(tolua_S,(void*)tolua_ret,"VertexBuffer");
  14500. }
  14501. }
  14502. return 1;
  14503. #ifndef TOLUA_RELEASE
  14504. tolua_lerror:
  14505. tolua_error(tolua_S,"#ferror in function 'GetInstancingBuffer'.",&tolua_err);
  14506. return 0;
  14507. #endif
  14508. }
  14509. #endif //#ifndef TOLUA_DISABLE
  14510. /* method: GetVertexShader of class Renderer */
  14511. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetVertexShader00
  14512. static int tolua_Graphics_Renderer_GetVertexShader00(lua_State* tolua_S)
  14513. {
  14514. #ifndef TOLUA_RELEASE
  14515. tolua_Error tolua_err;
  14516. if (
  14517. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14518. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  14519. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  14520. !tolua_isnoobj(tolua_S,4,&tolua_err)
  14521. )
  14522. goto tolua_lerror;
  14523. else
  14524. #endif
  14525. {
  14526. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14527. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  14528. bool checkExists = ((bool) tolua_toboolean(tolua_S,3,false));
  14529. #ifndef TOLUA_RELEASE
  14530. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetVertexShader'", NULL);
  14531. #endif
  14532. {
  14533. ShaderVariation* tolua_ret = (ShaderVariation*) self->GetVertexShader(*name,checkExists);
  14534. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ShaderVariation");
  14535. }
  14536. }
  14537. return 1;
  14538. #ifndef TOLUA_RELEASE
  14539. tolua_lerror:
  14540. tolua_error(tolua_S,"#ferror in function 'GetVertexShader'.",&tolua_err);
  14541. return 0;
  14542. #endif
  14543. }
  14544. #endif //#ifndef TOLUA_DISABLE
  14545. /* method: GetPixelShader of class Renderer */
  14546. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetPixelShader00
  14547. static int tolua_Graphics_Renderer_GetPixelShader00(lua_State* tolua_S)
  14548. {
  14549. #ifndef TOLUA_RELEASE
  14550. tolua_Error tolua_err;
  14551. if (
  14552. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14553. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  14554. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  14555. !tolua_isnoobj(tolua_S,4,&tolua_err)
  14556. )
  14557. goto tolua_lerror;
  14558. else
  14559. #endif
  14560. {
  14561. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14562. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  14563. bool checkExists = ((bool) tolua_toboolean(tolua_S,3,false));
  14564. #ifndef TOLUA_RELEASE
  14565. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPixelShader'", NULL);
  14566. #endif
  14567. {
  14568. ShaderVariation* tolua_ret = (ShaderVariation*) self->GetPixelShader(*name,checkExists);
  14569. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ShaderVariation");
  14570. }
  14571. }
  14572. return 1;
  14573. #ifndef TOLUA_RELEASE
  14574. tolua_lerror:
  14575. tolua_error(tolua_S,"#ferror in function 'GetPixelShader'.",&tolua_err);
  14576. return 0;
  14577. #endif
  14578. }
  14579. #endif //#ifndef TOLUA_DISABLE
  14580. /* method: GetStencilVS of class Renderer */
  14581. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetStencilVS00
  14582. static int tolua_Graphics_Renderer_GetStencilVS00(lua_State* tolua_S)
  14583. {
  14584. #ifndef TOLUA_RELEASE
  14585. tolua_Error tolua_err;
  14586. if (
  14587. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14588. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14589. )
  14590. goto tolua_lerror;
  14591. else
  14592. #endif
  14593. {
  14594. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14595. #ifndef TOLUA_RELEASE
  14596. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetStencilVS'", NULL);
  14597. #endif
  14598. {
  14599. ShaderVariation* tolua_ret = (ShaderVariation*) self->GetStencilVS();
  14600. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ShaderVariation");
  14601. }
  14602. }
  14603. return 1;
  14604. #ifndef TOLUA_RELEASE
  14605. tolua_lerror:
  14606. tolua_error(tolua_S,"#ferror in function 'GetStencilVS'.",&tolua_err);
  14607. return 0;
  14608. #endif
  14609. }
  14610. #endif //#ifndef TOLUA_DISABLE
  14611. /* method: GetStencilPS of class Renderer */
  14612. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetStencilPS00
  14613. static int tolua_Graphics_Renderer_GetStencilPS00(lua_State* tolua_S)
  14614. {
  14615. #ifndef TOLUA_RELEASE
  14616. tolua_Error tolua_err;
  14617. if (
  14618. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14619. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14620. )
  14621. goto tolua_lerror;
  14622. else
  14623. #endif
  14624. {
  14625. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14626. #ifndef TOLUA_RELEASE
  14627. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetStencilPS'", NULL);
  14628. #endif
  14629. {
  14630. ShaderVariation* tolua_ret = (ShaderVariation*) self->GetStencilPS();
  14631. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ShaderVariation");
  14632. }
  14633. }
  14634. return 1;
  14635. #ifndef TOLUA_RELEASE
  14636. tolua_lerror:
  14637. tolua_error(tolua_S,"#ferror in function 'GetStencilPS'.",&tolua_err);
  14638. return 0;
  14639. #endif
  14640. }
  14641. #endif //#ifndef TOLUA_DISABLE
  14642. /* method: GetFrameInfo of class Renderer */
  14643. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetFrameInfo00
  14644. static int tolua_Graphics_Renderer_GetFrameInfo00(lua_State* tolua_S)
  14645. {
  14646. #ifndef TOLUA_RELEASE
  14647. tolua_Error tolua_err;
  14648. if (
  14649. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  14650. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14651. )
  14652. goto tolua_lerror;
  14653. else
  14654. #endif
  14655. {
  14656. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  14657. #ifndef TOLUA_RELEASE
  14658. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFrameInfo'", NULL);
  14659. #endif
  14660. {
  14661. const FrameInfo& tolua_ret = (const FrameInfo&) self->GetFrameInfo();
  14662. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const FrameInfo");
  14663. }
  14664. }
  14665. return 1;
  14666. #ifndef TOLUA_RELEASE
  14667. tolua_lerror:
  14668. tolua_error(tolua_S,"#ferror in function 'GetFrameInfo'.",&tolua_err);
  14669. return 0;
  14670. #endif
  14671. }
  14672. #endif //#ifndef TOLUA_DISABLE
  14673. /* function: GetRenderer */
  14674. #ifndef TOLUA_DISABLE_tolua_Graphics_GetRenderer00
  14675. static int tolua_Graphics_GetRenderer00(lua_State* tolua_S)
  14676. {
  14677. #ifndef TOLUA_RELEASE
  14678. tolua_Error tolua_err;
  14679. if (
  14680. !tolua_isnoobj(tolua_S,1,&tolua_err)
  14681. )
  14682. goto tolua_lerror;
  14683. else
  14684. #endif
  14685. {
  14686. {
  14687. Renderer* tolua_ret = (Renderer*) GetRenderer();
  14688. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Renderer");
  14689. }
  14690. }
  14691. return 1;
  14692. #ifndef TOLUA_RELEASE
  14693. tolua_lerror:
  14694. tolua_error(tolua_S,"#ferror in function 'GetRenderer'.",&tolua_err);
  14695. return 0;
  14696. #endif
  14697. }
  14698. #endif //#ifndef TOLUA_DISABLE
  14699. /* method: SetNumViewports of class RenderSurface */
  14700. #ifndef TOLUA_DISABLE_tolua_Graphics_RenderSurface_SetNumViewports00
  14701. static int tolua_Graphics_RenderSurface_SetNumViewports00(lua_State* tolua_S)
  14702. {
  14703. #ifndef TOLUA_RELEASE
  14704. tolua_Error tolua_err;
  14705. if (
  14706. !tolua_isusertype(tolua_S,1,"RenderSurface",0,&tolua_err) ||
  14707. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  14708. !tolua_isnoobj(tolua_S,3,&tolua_err)
  14709. )
  14710. goto tolua_lerror;
  14711. else
  14712. #endif
  14713. {
  14714. RenderSurface* self = (RenderSurface*) tolua_tousertype(tolua_S,1,0);
  14715. unsigned num = ((unsigned) tolua_tonumber(tolua_S,2,0));
  14716. #ifndef TOLUA_RELEASE
  14717. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetNumViewports'", NULL);
  14718. #endif
  14719. {
  14720. self->SetNumViewports(num);
  14721. }
  14722. }
  14723. return 0;
  14724. #ifndef TOLUA_RELEASE
  14725. tolua_lerror:
  14726. tolua_error(tolua_S,"#ferror in function 'SetNumViewports'.",&tolua_err);
  14727. return 0;
  14728. #endif
  14729. }
  14730. #endif //#ifndef TOLUA_DISABLE
  14731. /* method: SetViewport of class RenderSurface */
  14732. #ifndef TOLUA_DISABLE_tolua_Graphics_RenderSurface_SetViewport00
  14733. static int tolua_Graphics_RenderSurface_SetViewport00(lua_State* tolua_S)
  14734. {
  14735. #ifndef TOLUA_RELEASE
  14736. tolua_Error tolua_err;
  14737. if (
  14738. !tolua_isusertype(tolua_S,1,"RenderSurface",0,&tolua_err) ||
  14739. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  14740. !tolua_isusertype(tolua_S,3,"Viewport",0,&tolua_err) ||
  14741. !tolua_isnoobj(tolua_S,4,&tolua_err)
  14742. )
  14743. goto tolua_lerror;
  14744. else
  14745. #endif
  14746. {
  14747. RenderSurface* self = (RenderSurface*) tolua_tousertype(tolua_S,1,0);
  14748. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  14749. Viewport* viewport = ((Viewport*) tolua_tousertype(tolua_S,3,0));
  14750. #ifndef TOLUA_RELEASE
  14751. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetViewport'", NULL);
  14752. #endif
  14753. {
  14754. self->SetViewport(index,viewport);
  14755. }
  14756. }
  14757. return 0;
  14758. #ifndef TOLUA_RELEASE
  14759. tolua_lerror:
  14760. tolua_error(tolua_S,"#ferror in function 'SetViewport'.",&tolua_err);
  14761. return 0;
  14762. #endif
  14763. }
  14764. #endif //#ifndef TOLUA_DISABLE
  14765. /* method: SetUpdateMode of class RenderSurface */
  14766. #ifndef TOLUA_DISABLE_tolua_Graphics_RenderSurface_SetUpdateMode00
  14767. static int tolua_Graphics_RenderSurface_SetUpdateMode00(lua_State* tolua_S)
  14768. {
  14769. #ifndef TOLUA_RELEASE
  14770. tolua_Error tolua_err;
  14771. if (
  14772. !tolua_isusertype(tolua_S,1,"RenderSurface",0,&tolua_err) ||
  14773. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  14774. !tolua_isnoobj(tolua_S,3,&tolua_err)
  14775. )
  14776. goto tolua_lerror;
  14777. else
  14778. #endif
  14779. {
  14780. RenderSurface* self = (RenderSurface*) tolua_tousertype(tolua_S,1,0);
  14781. RenderSurfaceUpdateMode mode = ((RenderSurfaceUpdateMode) (int) tolua_tonumber(tolua_S,2,0));
  14782. #ifndef TOLUA_RELEASE
  14783. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetUpdateMode'", NULL);
  14784. #endif
  14785. {
  14786. self->SetUpdateMode(mode);
  14787. }
  14788. }
  14789. return 0;
  14790. #ifndef TOLUA_RELEASE
  14791. tolua_lerror:
  14792. tolua_error(tolua_S,"#ferror in function 'SetUpdateMode'.",&tolua_err);
  14793. return 0;
  14794. #endif
  14795. }
  14796. #endif //#ifndef TOLUA_DISABLE
  14797. /* method: SetLinkedRenderTarget of class RenderSurface */
  14798. #ifndef TOLUA_DISABLE_tolua_Graphics_RenderSurface_SetLinkedRenderTarget00
  14799. static int tolua_Graphics_RenderSurface_SetLinkedRenderTarget00(lua_State* tolua_S)
  14800. {
  14801. #ifndef TOLUA_RELEASE
  14802. tolua_Error tolua_err;
  14803. if (
  14804. !tolua_isusertype(tolua_S,1,"RenderSurface",0,&tolua_err) ||
  14805. !tolua_isusertype(tolua_S,2,"RenderSurface",0,&tolua_err) ||
  14806. !tolua_isnoobj(tolua_S,3,&tolua_err)
  14807. )
  14808. goto tolua_lerror;
  14809. else
  14810. #endif
  14811. {
  14812. RenderSurface* self = (RenderSurface*) tolua_tousertype(tolua_S,1,0);
  14813. RenderSurface* renderTarget = ((RenderSurface*) tolua_tousertype(tolua_S,2,0));
  14814. #ifndef TOLUA_RELEASE
  14815. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLinkedRenderTarget'", NULL);
  14816. #endif
  14817. {
  14818. self->SetLinkedRenderTarget(renderTarget);
  14819. }
  14820. }
  14821. return 0;
  14822. #ifndef TOLUA_RELEASE
  14823. tolua_lerror:
  14824. tolua_error(tolua_S,"#ferror in function 'SetLinkedRenderTarget'.",&tolua_err);
  14825. return 0;
  14826. #endif
  14827. }
  14828. #endif //#ifndef TOLUA_DISABLE
  14829. /* method: SetLinkedDepthStencil of class RenderSurface */
  14830. #ifndef TOLUA_DISABLE_tolua_Graphics_RenderSurface_SetLinkedDepthStencil00
  14831. static int tolua_Graphics_RenderSurface_SetLinkedDepthStencil00(lua_State* tolua_S)
  14832. {
  14833. #ifndef TOLUA_RELEASE
  14834. tolua_Error tolua_err;
  14835. if (
  14836. !tolua_isusertype(tolua_S,1,"RenderSurface",0,&tolua_err) ||
  14837. !tolua_isusertype(tolua_S,2,"RenderSurface",0,&tolua_err) ||
  14838. !tolua_isnoobj(tolua_S,3,&tolua_err)
  14839. )
  14840. goto tolua_lerror;
  14841. else
  14842. #endif
  14843. {
  14844. RenderSurface* self = (RenderSurface*) tolua_tousertype(tolua_S,1,0);
  14845. RenderSurface* depthStencil = ((RenderSurface*) tolua_tousertype(tolua_S,2,0));
  14846. #ifndef TOLUA_RELEASE
  14847. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLinkedDepthStencil'", NULL);
  14848. #endif
  14849. {
  14850. self->SetLinkedDepthStencil(depthStencil);
  14851. }
  14852. }
  14853. return 0;
  14854. #ifndef TOLUA_RELEASE
  14855. tolua_lerror:
  14856. tolua_error(tolua_S,"#ferror in function 'SetLinkedDepthStencil'.",&tolua_err);
  14857. return 0;
  14858. #endif
  14859. }
  14860. #endif //#ifndef TOLUA_DISABLE
  14861. /* method: QueueUpdate of class RenderSurface */
  14862. #ifndef TOLUA_DISABLE_tolua_Graphics_RenderSurface_QueueUpdate00
  14863. static int tolua_Graphics_RenderSurface_QueueUpdate00(lua_State* tolua_S)
  14864. {
  14865. #ifndef TOLUA_RELEASE
  14866. tolua_Error tolua_err;
  14867. if (
  14868. !tolua_isusertype(tolua_S,1,"RenderSurface",0,&tolua_err) ||
  14869. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14870. )
  14871. goto tolua_lerror;
  14872. else
  14873. #endif
  14874. {
  14875. RenderSurface* self = (RenderSurface*) tolua_tousertype(tolua_S,1,0);
  14876. #ifndef TOLUA_RELEASE
  14877. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'QueueUpdate'", NULL);
  14878. #endif
  14879. {
  14880. self->QueueUpdate();
  14881. }
  14882. }
  14883. return 0;
  14884. #ifndef TOLUA_RELEASE
  14885. tolua_lerror:
  14886. tolua_error(tolua_S,"#ferror in function 'QueueUpdate'.",&tolua_err);
  14887. return 0;
  14888. #endif
  14889. }
  14890. #endif //#ifndef TOLUA_DISABLE
  14891. /* method: Release of class RenderSurface */
  14892. #ifndef TOLUA_DISABLE_tolua_Graphics_RenderSurface_Release00
  14893. static int tolua_Graphics_RenderSurface_Release00(lua_State* tolua_S)
  14894. {
  14895. #ifndef TOLUA_RELEASE
  14896. tolua_Error tolua_err;
  14897. if (
  14898. !tolua_isusertype(tolua_S,1,"RenderSurface",0,&tolua_err) ||
  14899. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14900. )
  14901. goto tolua_lerror;
  14902. else
  14903. #endif
  14904. {
  14905. RenderSurface* self = (RenderSurface*) tolua_tousertype(tolua_S,1,0);
  14906. #ifndef TOLUA_RELEASE
  14907. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Release'", NULL);
  14908. #endif
  14909. {
  14910. self->Release();
  14911. }
  14912. }
  14913. return 0;
  14914. #ifndef TOLUA_RELEASE
  14915. tolua_lerror:
  14916. tolua_error(tolua_S,"#ferror in function 'Release'.",&tolua_err);
  14917. return 0;
  14918. #endif
  14919. }
  14920. #endif //#ifndef TOLUA_DISABLE
  14921. /* method: GetParentTexture of class RenderSurface */
  14922. #ifndef TOLUA_DISABLE_tolua_Graphics_RenderSurface_GetParentTexture00
  14923. static int tolua_Graphics_RenderSurface_GetParentTexture00(lua_State* tolua_S)
  14924. {
  14925. #ifndef TOLUA_RELEASE
  14926. tolua_Error tolua_err;
  14927. if (
  14928. !tolua_isusertype(tolua_S,1,"const RenderSurface",0,&tolua_err) ||
  14929. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14930. )
  14931. goto tolua_lerror;
  14932. else
  14933. #endif
  14934. {
  14935. const RenderSurface* self = (const RenderSurface*) tolua_tousertype(tolua_S,1,0);
  14936. #ifndef TOLUA_RELEASE
  14937. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetParentTexture'", NULL);
  14938. #endif
  14939. {
  14940. Texture* tolua_ret = (Texture*) self->GetParentTexture();
  14941. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Texture");
  14942. }
  14943. }
  14944. return 1;
  14945. #ifndef TOLUA_RELEASE
  14946. tolua_lerror:
  14947. tolua_error(tolua_S,"#ferror in function 'GetParentTexture'.",&tolua_err);
  14948. return 0;
  14949. #endif
  14950. }
  14951. #endif //#ifndef TOLUA_DISABLE
  14952. /* method: GetWidth of class RenderSurface */
  14953. #ifndef TOLUA_DISABLE_tolua_Graphics_RenderSurface_GetWidth00
  14954. static int tolua_Graphics_RenderSurface_GetWidth00(lua_State* tolua_S)
  14955. {
  14956. #ifndef TOLUA_RELEASE
  14957. tolua_Error tolua_err;
  14958. if (
  14959. !tolua_isusertype(tolua_S,1,"const RenderSurface",0,&tolua_err) ||
  14960. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14961. )
  14962. goto tolua_lerror;
  14963. else
  14964. #endif
  14965. {
  14966. const RenderSurface* self = (const RenderSurface*) tolua_tousertype(tolua_S,1,0);
  14967. #ifndef TOLUA_RELEASE
  14968. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWidth'", NULL);
  14969. #endif
  14970. {
  14971. int tolua_ret = (int) self->GetWidth();
  14972. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  14973. }
  14974. }
  14975. return 1;
  14976. #ifndef TOLUA_RELEASE
  14977. tolua_lerror:
  14978. tolua_error(tolua_S,"#ferror in function 'GetWidth'.",&tolua_err);
  14979. return 0;
  14980. #endif
  14981. }
  14982. #endif //#ifndef TOLUA_DISABLE
  14983. /* method: GetHeight of class RenderSurface */
  14984. #ifndef TOLUA_DISABLE_tolua_Graphics_RenderSurface_GetHeight00
  14985. static int tolua_Graphics_RenderSurface_GetHeight00(lua_State* tolua_S)
  14986. {
  14987. #ifndef TOLUA_RELEASE
  14988. tolua_Error tolua_err;
  14989. if (
  14990. !tolua_isusertype(tolua_S,1,"const RenderSurface",0,&tolua_err) ||
  14991. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14992. )
  14993. goto tolua_lerror;
  14994. else
  14995. #endif
  14996. {
  14997. const RenderSurface* self = (const RenderSurface*) tolua_tousertype(tolua_S,1,0);
  14998. #ifndef TOLUA_RELEASE
  14999. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHeight'", NULL);
  15000. #endif
  15001. {
  15002. int tolua_ret = (int) self->GetHeight();
  15003. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  15004. }
  15005. }
  15006. return 1;
  15007. #ifndef TOLUA_RELEASE
  15008. tolua_lerror:
  15009. tolua_error(tolua_S,"#ferror in function 'GetHeight'.",&tolua_err);
  15010. return 0;
  15011. #endif
  15012. }
  15013. #endif //#ifndef TOLUA_DISABLE
  15014. /* method: GetUsage of class RenderSurface */
  15015. #ifndef TOLUA_DISABLE_tolua_Graphics_RenderSurface_GetUsage00
  15016. static int tolua_Graphics_RenderSurface_GetUsage00(lua_State* tolua_S)
  15017. {
  15018. #ifndef TOLUA_RELEASE
  15019. tolua_Error tolua_err;
  15020. if (
  15021. !tolua_isusertype(tolua_S,1,"const RenderSurface",0,&tolua_err) ||
  15022. !tolua_isnoobj(tolua_S,2,&tolua_err)
  15023. )
  15024. goto tolua_lerror;
  15025. else
  15026. #endif
  15027. {
  15028. const RenderSurface* self = (const RenderSurface*) tolua_tousertype(tolua_S,1,0);
  15029. #ifndef TOLUA_RELEASE
  15030. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetUsage'", NULL);
  15031. #endif
  15032. {
  15033. TextureUsage tolua_ret = (TextureUsage) self->GetUsage();
  15034. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  15035. }
  15036. }
  15037. return 1;
  15038. #ifndef TOLUA_RELEASE
  15039. tolua_lerror:
  15040. tolua_error(tolua_S,"#ferror in function 'GetUsage'.",&tolua_err);
  15041. return 0;
  15042. #endif
  15043. }
  15044. #endif //#ifndef TOLUA_DISABLE
  15045. /* method: GetLinkedRenderTarget of class RenderSurface */
  15046. #ifndef TOLUA_DISABLE_tolua_Graphics_RenderSurface_GetLinkedRenderTarget00
  15047. static int tolua_Graphics_RenderSurface_GetLinkedRenderTarget00(lua_State* tolua_S)
  15048. {
  15049. #ifndef TOLUA_RELEASE
  15050. tolua_Error tolua_err;
  15051. if (
  15052. !tolua_isusertype(tolua_S,1,"const RenderSurface",0,&tolua_err) ||
  15053. !tolua_isnoobj(tolua_S,2,&tolua_err)
  15054. )
  15055. goto tolua_lerror;
  15056. else
  15057. #endif
  15058. {
  15059. const RenderSurface* self = (const RenderSurface*) tolua_tousertype(tolua_S,1,0);
  15060. #ifndef TOLUA_RELEASE
  15061. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLinkedRenderTarget'", NULL);
  15062. #endif
  15063. {
  15064. RenderSurface* tolua_ret = (RenderSurface*) self->GetLinkedRenderTarget();
  15065. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RenderSurface");
  15066. }
  15067. }
  15068. return 1;
  15069. #ifndef TOLUA_RELEASE
  15070. tolua_lerror:
  15071. tolua_error(tolua_S,"#ferror in function 'GetLinkedRenderTarget'.",&tolua_err);
  15072. return 0;
  15073. #endif
  15074. }
  15075. #endif //#ifndef TOLUA_DISABLE
  15076. /* method: GetLinkedDepthStencil of class RenderSurface */
  15077. #ifndef TOLUA_DISABLE_tolua_Graphics_RenderSurface_GetLinkedDepthStencil00
  15078. static int tolua_Graphics_RenderSurface_GetLinkedDepthStencil00(lua_State* tolua_S)
  15079. {
  15080. #ifndef TOLUA_RELEASE
  15081. tolua_Error tolua_err;
  15082. if (
  15083. !tolua_isusertype(tolua_S,1,"const RenderSurface",0,&tolua_err) ||
  15084. !tolua_isnoobj(tolua_S,2,&tolua_err)
  15085. )
  15086. goto tolua_lerror;
  15087. else
  15088. #endif
  15089. {
  15090. const RenderSurface* self = (const RenderSurface*) tolua_tousertype(tolua_S,1,0);
  15091. #ifndef TOLUA_RELEASE
  15092. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLinkedDepthStencil'", NULL);
  15093. #endif
  15094. {
  15095. RenderSurface* tolua_ret = (RenderSurface*) self->GetLinkedDepthStencil();
  15096. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RenderSurface");
  15097. }
  15098. }
  15099. return 1;
  15100. #ifndef TOLUA_RELEASE
  15101. tolua_lerror:
  15102. tolua_error(tolua_S,"#ferror in function 'GetLinkedDepthStencil'.",&tolua_err);
  15103. return 0;
  15104. #endif
  15105. }
  15106. #endif //#ifndef TOLUA_DISABLE
  15107. /* method: new of class Bone */
  15108. #ifndef TOLUA_DISABLE_tolua_Graphics_Bone_new00
  15109. static int tolua_Graphics_Bone_new00(lua_State* tolua_S)
  15110. {
  15111. #ifndef TOLUA_RELEASE
  15112. tolua_Error tolua_err;
  15113. if (
  15114. !tolua_isusertable(tolua_S,1,"Bone",0,&tolua_err) ||
  15115. !tolua_isnoobj(tolua_S,2,&tolua_err)
  15116. )
  15117. goto tolua_lerror;
  15118. else
  15119. #endif
  15120. {
  15121. {
  15122. Bone* tolua_ret = (Bone*) Mtolua_new((Bone)());
  15123. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Bone");
  15124. }
  15125. }
  15126. return 1;
  15127. #ifndef TOLUA_RELEASE
  15128. tolua_lerror:
  15129. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  15130. return 0;
  15131. #endif
  15132. }
  15133. #endif //#ifndef TOLUA_DISABLE
  15134. /* method: new_local of class Bone */
  15135. #ifndef TOLUA_DISABLE_tolua_Graphics_Bone_new00_local
  15136. static int tolua_Graphics_Bone_new00_local(lua_State* tolua_S)
  15137. {
  15138. #ifndef TOLUA_RELEASE
  15139. tolua_Error tolua_err;
  15140. if (
  15141. !tolua_isusertable(tolua_S,1,"Bone",0,&tolua_err) ||
  15142. !tolua_isnoobj(tolua_S,2,&tolua_err)
  15143. )
  15144. goto tolua_lerror;
  15145. else
  15146. #endif
  15147. {
  15148. {
  15149. Bone* tolua_ret = (Bone*) Mtolua_new((Bone)());
  15150. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Bone");
  15151. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  15152. }
  15153. }
  15154. return 1;
  15155. #ifndef TOLUA_RELEASE
  15156. tolua_lerror:
  15157. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  15158. return 0;
  15159. #endif
  15160. }
  15161. #endif //#ifndef TOLUA_DISABLE
  15162. /* get function: name_ of class Bone */
  15163. #ifndef TOLUA_DISABLE_tolua_get_Bone_name
  15164. static int tolua_get_Bone_name(lua_State* tolua_S)
  15165. {
  15166. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15167. #ifndef TOLUA_RELEASE
  15168. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'name_'",NULL);
  15169. #endif
  15170. tolua_pushusertype(tolua_S,(void*)&self->name_,"String");
  15171. return 1;
  15172. }
  15173. #endif //#ifndef TOLUA_DISABLE
  15174. /* set function: name_ of class Bone */
  15175. #ifndef TOLUA_DISABLE_tolua_set_Bone_name
  15176. static int tolua_set_Bone_name(lua_State* tolua_S)
  15177. {
  15178. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15179. #ifndef TOLUA_RELEASE
  15180. tolua_Error tolua_err;
  15181. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'name_'",NULL);
  15182. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"String",0,&tolua_err)))
  15183. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  15184. #endif
  15185. self->name_ = *((String*) tolua_tousertype(tolua_S,2,0))
  15186. ;
  15187. return 0;
  15188. }
  15189. #endif //#ifndef TOLUA_DISABLE
  15190. /* get function: nameHash_ of class Bone */
  15191. #ifndef TOLUA_DISABLE_tolua_get_Bone_nameHash
  15192. static int tolua_get_Bone_nameHash(lua_State* tolua_S)
  15193. {
  15194. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15195. #ifndef TOLUA_RELEASE
  15196. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'nameHash_'",NULL);
  15197. #endif
  15198. tolua_pushusertype(tolua_S,(void*)&self->nameHash_,"StringHash");
  15199. return 1;
  15200. }
  15201. #endif //#ifndef TOLUA_DISABLE
  15202. /* set function: nameHash_ of class Bone */
  15203. #ifndef TOLUA_DISABLE_tolua_set_Bone_nameHash
  15204. static int tolua_set_Bone_nameHash(lua_State* tolua_S)
  15205. {
  15206. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15207. #ifndef TOLUA_RELEASE
  15208. tolua_Error tolua_err;
  15209. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'nameHash_'",NULL);
  15210. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"StringHash",0,&tolua_err)))
  15211. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  15212. #endif
  15213. self->nameHash_ = *((StringHash*) tolua_tousertype(tolua_S,2,0))
  15214. ;
  15215. return 0;
  15216. }
  15217. #endif //#ifndef TOLUA_DISABLE
  15218. /* get function: parentIndex_ of class Bone */
  15219. #ifndef TOLUA_DISABLE_tolua_get_Bone_parentIndex
  15220. static int tolua_get_Bone_parentIndex(lua_State* tolua_S)
  15221. {
  15222. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15223. #ifndef TOLUA_RELEASE
  15224. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'parentIndex_'",NULL);
  15225. #endif
  15226. tolua_pushnumber(tolua_S,(lua_Number)self->parentIndex_);
  15227. return 1;
  15228. }
  15229. #endif //#ifndef TOLUA_DISABLE
  15230. /* set function: parentIndex_ of class Bone */
  15231. #ifndef TOLUA_DISABLE_tolua_set_Bone_parentIndex
  15232. static int tolua_set_Bone_parentIndex(lua_State* tolua_S)
  15233. {
  15234. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15235. #ifndef TOLUA_RELEASE
  15236. tolua_Error tolua_err;
  15237. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'parentIndex_'",NULL);
  15238. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  15239. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  15240. #endif
  15241. self->parentIndex_ = ((unsigned) tolua_tonumber(tolua_S,2,0))
  15242. ;
  15243. return 0;
  15244. }
  15245. #endif //#ifndef TOLUA_DISABLE
  15246. /* get function: initialPosition_ of class Bone */
  15247. #ifndef TOLUA_DISABLE_tolua_get_Bone_initialPosition
  15248. static int tolua_get_Bone_initialPosition(lua_State* tolua_S)
  15249. {
  15250. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15251. #ifndef TOLUA_RELEASE
  15252. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'initialPosition_'",NULL);
  15253. #endif
  15254. tolua_pushusertype(tolua_S,(void*)&self->initialPosition_,"Vector3");
  15255. return 1;
  15256. }
  15257. #endif //#ifndef TOLUA_DISABLE
  15258. /* set function: initialPosition_ of class Bone */
  15259. #ifndef TOLUA_DISABLE_tolua_set_Bone_initialPosition
  15260. static int tolua_set_Bone_initialPosition(lua_State* tolua_S)
  15261. {
  15262. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15263. #ifndef TOLUA_RELEASE
  15264. tolua_Error tolua_err;
  15265. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'initialPosition_'",NULL);
  15266. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Vector3",0,&tolua_err)))
  15267. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  15268. #endif
  15269. self->initialPosition_ = *((Vector3*) tolua_tousertype(tolua_S,2,0))
  15270. ;
  15271. return 0;
  15272. }
  15273. #endif //#ifndef TOLUA_DISABLE
  15274. /* get function: initialRotation_ of class Bone */
  15275. #ifndef TOLUA_DISABLE_tolua_get_Bone_initialRotation
  15276. static int tolua_get_Bone_initialRotation(lua_State* tolua_S)
  15277. {
  15278. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15279. #ifndef TOLUA_RELEASE
  15280. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'initialRotation_'",NULL);
  15281. #endif
  15282. tolua_pushusertype(tolua_S,(void*)&self->initialRotation_,"Quaternion");
  15283. return 1;
  15284. }
  15285. #endif //#ifndef TOLUA_DISABLE
  15286. /* set function: initialRotation_ of class Bone */
  15287. #ifndef TOLUA_DISABLE_tolua_set_Bone_initialRotation
  15288. static int tolua_set_Bone_initialRotation(lua_State* tolua_S)
  15289. {
  15290. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15291. #ifndef TOLUA_RELEASE
  15292. tolua_Error tolua_err;
  15293. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'initialRotation_'",NULL);
  15294. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Quaternion",0,&tolua_err)))
  15295. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  15296. #endif
  15297. self->initialRotation_ = *((Quaternion*) tolua_tousertype(tolua_S,2,0))
  15298. ;
  15299. return 0;
  15300. }
  15301. #endif //#ifndef TOLUA_DISABLE
  15302. /* get function: initialScale_ of class Bone */
  15303. #ifndef TOLUA_DISABLE_tolua_get_Bone_initialScale
  15304. static int tolua_get_Bone_initialScale(lua_State* tolua_S)
  15305. {
  15306. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15307. #ifndef TOLUA_RELEASE
  15308. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'initialScale_'",NULL);
  15309. #endif
  15310. tolua_pushusertype(tolua_S,(void*)&self->initialScale_,"Vector3");
  15311. return 1;
  15312. }
  15313. #endif //#ifndef TOLUA_DISABLE
  15314. /* set function: initialScale_ of class Bone */
  15315. #ifndef TOLUA_DISABLE_tolua_set_Bone_initialScale
  15316. static int tolua_set_Bone_initialScale(lua_State* tolua_S)
  15317. {
  15318. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15319. #ifndef TOLUA_RELEASE
  15320. tolua_Error tolua_err;
  15321. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'initialScale_'",NULL);
  15322. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Vector3",0,&tolua_err)))
  15323. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  15324. #endif
  15325. self->initialScale_ = *((Vector3*) tolua_tousertype(tolua_S,2,0))
  15326. ;
  15327. return 0;
  15328. }
  15329. #endif //#ifndef TOLUA_DISABLE
  15330. /* get function: offsetMatrix_ of class Bone */
  15331. #ifndef TOLUA_DISABLE_tolua_get_Bone_offsetMatrix
  15332. static int tolua_get_Bone_offsetMatrix(lua_State* tolua_S)
  15333. {
  15334. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15335. #ifndef TOLUA_RELEASE
  15336. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'offsetMatrix_'",NULL);
  15337. #endif
  15338. tolua_pushusertype(tolua_S,(void*)&self->offsetMatrix_,"Matrix3x4");
  15339. return 1;
  15340. }
  15341. #endif //#ifndef TOLUA_DISABLE
  15342. /* set function: offsetMatrix_ of class Bone */
  15343. #ifndef TOLUA_DISABLE_tolua_set_Bone_offsetMatrix
  15344. static int tolua_set_Bone_offsetMatrix(lua_State* tolua_S)
  15345. {
  15346. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15347. #ifndef TOLUA_RELEASE
  15348. tolua_Error tolua_err;
  15349. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'offsetMatrix_'",NULL);
  15350. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Matrix3x4",0,&tolua_err)))
  15351. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  15352. #endif
  15353. self->offsetMatrix_ = *((Matrix3x4*) tolua_tousertype(tolua_S,2,0))
  15354. ;
  15355. return 0;
  15356. }
  15357. #endif //#ifndef TOLUA_DISABLE
  15358. /* get function: animated_ of class Bone */
  15359. #ifndef TOLUA_DISABLE_tolua_get_Bone_animated
  15360. static int tolua_get_Bone_animated(lua_State* tolua_S)
  15361. {
  15362. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15363. #ifndef TOLUA_RELEASE
  15364. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'animated_'",NULL);
  15365. #endif
  15366. tolua_pushboolean(tolua_S,(bool)self->animated_);
  15367. return 1;
  15368. }
  15369. #endif //#ifndef TOLUA_DISABLE
  15370. /* set function: animated_ of class Bone */
  15371. #ifndef TOLUA_DISABLE_tolua_set_Bone_animated
  15372. static int tolua_set_Bone_animated(lua_State* tolua_S)
  15373. {
  15374. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15375. #ifndef TOLUA_RELEASE
  15376. tolua_Error tolua_err;
  15377. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'animated_'",NULL);
  15378. if (!tolua_isboolean(tolua_S,2,0,&tolua_err))
  15379. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  15380. #endif
  15381. self->animated_ = ((bool) tolua_toboolean(tolua_S,2,0))
  15382. ;
  15383. return 0;
  15384. }
  15385. #endif //#ifndef TOLUA_DISABLE
  15386. /* get function: collisionMask_ of class Bone */
  15387. #ifndef TOLUA_DISABLE_tolua_get_Bone_unsigned_collisionMask
  15388. static int tolua_get_Bone_unsigned_collisionMask(lua_State* tolua_S)
  15389. {
  15390. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15391. #ifndef TOLUA_RELEASE
  15392. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'collisionMask_'",NULL);
  15393. #endif
  15394. tolua_pushnumber(tolua_S,(lua_Number)self->collisionMask_);
  15395. return 1;
  15396. }
  15397. #endif //#ifndef TOLUA_DISABLE
  15398. /* set function: collisionMask_ of class Bone */
  15399. #ifndef TOLUA_DISABLE_tolua_set_Bone_unsigned_collisionMask
  15400. static int tolua_set_Bone_unsigned_collisionMask(lua_State* tolua_S)
  15401. {
  15402. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15403. #ifndef TOLUA_RELEASE
  15404. tolua_Error tolua_err;
  15405. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'collisionMask_'",NULL);
  15406. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  15407. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  15408. #endif
  15409. self->collisionMask_ = ((unsigned char) tolua_tonumber(tolua_S,2,0))
  15410. ;
  15411. return 0;
  15412. }
  15413. #endif //#ifndef TOLUA_DISABLE
  15414. /* get function: radius_ of class Bone */
  15415. #ifndef TOLUA_DISABLE_tolua_get_Bone_radius
  15416. static int tolua_get_Bone_radius(lua_State* tolua_S)
  15417. {
  15418. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15419. #ifndef TOLUA_RELEASE
  15420. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'radius_'",NULL);
  15421. #endif
  15422. tolua_pushnumber(tolua_S,(lua_Number)self->radius_);
  15423. return 1;
  15424. }
  15425. #endif //#ifndef TOLUA_DISABLE
  15426. /* set function: radius_ of class Bone */
  15427. #ifndef TOLUA_DISABLE_tolua_set_Bone_radius
  15428. static int tolua_set_Bone_radius(lua_State* tolua_S)
  15429. {
  15430. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15431. #ifndef TOLUA_RELEASE
  15432. tolua_Error tolua_err;
  15433. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'radius_'",NULL);
  15434. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  15435. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  15436. #endif
  15437. self->radius_ = ((float) tolua_tonumber(tolua_S,2,0))
  15438. ;
  15439. return 0;
  15440. }
  15441. #endif //#ifndef TOLUA_DISABLE
  15442. /* get function: boundingBox_ of class Bone */
  15443. #ifndef TOLUA_DISABLE_tolua_get_Bone_boundingBox
  15444. static int tolua_get_Bone_boundingBox(lua_State* tolua_S)
  15445. {
  15446. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15447. #ifndef TOLUA_RELEASE
  15448. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'boundingBox_'",NULL);
  15449. #endif
  15450. tolua_pushusertype(tolua_S,(void*)&self->boundingBox_,"BoundingBox");
  15451. return 1;
  15452. }
  15453. #endif //#ifndef TOLUA_DISABLE
  15454. /* set function: boundingBox_ of class Bone */
  15455. #ifndef TOLUA_DISABLE_tolua_set_Bone_boundingBox
  15456. static int tolua_set_Bone_boundingBox(lua_State* tolua_S)
  15457. {
  15458. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15459. #ifndef TOLUA_RELEASE
  15460. tolua_Error tolua_err;
  15461. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'boundingBox_'",NULL);
  15462. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"BoundingBox",0,&tolua_err)))
  15463. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  15464. #endif
  15465. self->boundingBox_ = *((BoundingBox*) tolua_tousertype(tolua_S,2,0))
  15466. ;
  15467. return 0;
  15468. }
  15469. #endif //#ifndef TOLUA_DISABLE
  15470. /* get function: node_ of class Bone */
  15471. #ifndef TOLUA_DISABLE_tolua_get_Bone_node_ptr
  15472. static int tolua_get_Bone_node_ptr(lua_State* tolua_S)
  15473. {
  15474. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15475. #ifndef TOLUA_RELEASE
  15476. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'node_'",NULL);
  15477. #endif
  15478. tolua_pushusertype(tolua_S,(void*)self->node_,"Node");
  15479. return 1;
  15480. }
  15481. #endif //#ifndef TOLUA_DISABLE
  15482. /* set function: node_ of class Bone */
  15483. #ifndef TOLUA_DISABLE_tolua_set_Bone_node_ptr
  15484. static int tolua_set_Bone_node_ptr(lua_State* tolua_S)
  15485. {
  15486. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15487. #ifndef TOLUA_RELEASE
  15488. tolua_Error tolua_err;
  15489. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'node_'",NULL);
  15490. if (!tolua_isusertype(tolua_S,2,"Node",0,&tolua_err))
  15491. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  15492. #endif
  15493. self->node_ = ((Node*) tolua_tousertype(tolua_S,2,0))
  15494. ;
  15495. return 0;
  15496. }
  15497. #endif //#ifndef TOLUA_DISABLE
  15498. /* method: GetNumBones of class Skeleton */
  15499. #ifndef TOLUA_DISABLE_tolua_Graphics_Skeleton_GetNumBones00
  15500. static int tolua_Graphics_Skeleton_GetNumBones00(lua_State* tolua_S)
  15501. {
  15502. #ifndef TOLUA_RELEASE
  15503. tolua_Error tolua_err;
  15504. if (
  15505. !tolua_isusertype(tolua_S,1,"const Skeleton",0,&tolua_err) ||
  15506. !tolua_isnoobj(tolua_S,2,&tolua_err)
  15507. )
  15508. goto tolua_lerror;
  15509. else
  15510. #endif
  15511. {
  15512. const Skeleton* self = (const Skeleton*) tolua_tousertype(tolua_S,1,0);
  15513. #ifndef TOLUA_RELEASE
  15514. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumBones'", NULL);
  15515. #endif
  15516. {
  15517. unsigned tolua_ret = (unsigned) self->GetNumBones();
  15518. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  15519. }
  15520. }
  15521. return 1;
  15522. #ifndef TOLUA_RELEASE
  15523. tolua_lerror:
  15524. tolua_error(tolua_S,"#ferror in function 'GetNumBones'.",&tolua_err);
  15525. return 0;
  15526. #endif
  15527. }
  15528. #endif //#ifndef TOLUA_DISABLE
  15529. /* method: GetRootBone of class Skeleton */
  15530. #ifndef TOLUA_DISABLE_tolua_Graphics_Skeleton_GetRootBone00
  15531. static int tolua_Graphics_Skeleton_GetRootBone00(lua_State* tolua_S)
  15532. {
  15533. #ifndef TOLUA_RELEASE
  15534. tolua_Error tolua_err;
  15535. if (
  15536. !tolua_isusertype(tolua_S,1,"Skeleton",0,&tolua_err) ||
  15537. !tolua_isnoobj(tolua_S,2,&tolua_err)
  15538. )
  15539. goto tolua_lerror;
  15540. else
  15541. #endif
  15542. {
  15543. Skeleton* self = (Skeleton*) tolua_tousertype(tolua_S,1,0);
  15544. #ifndef TOLUA_RELEASE
  15545. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRootBone'", NULL);
  15546. #endif
  15547. {
  15548. Bone* tolua_ret = (Bone*) self->GetRootBone();
  15549. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Bone");
  15550. }
  15551. }
  15552. return 1;
  15553. #ifndef TOLUA_RELEASE
  15554. tolua_lerror:
  15555. tolua_error(tolua_S,"#ferror in function 'GetRootBone'.",&tolua_err);
  15556. return 0;
  15557. #endif
  15558. }
  15559. #endif //#ifndef TOLUA_DISABLE
  15560. /* method: GetBone of class Skeleton */
  15561. #ifndef TOLUA_DISABLE_tolua_Graphics_Skeleton_GetBone00
  15562. static int tolua_Graphics_Skeleton_GetBone00(lua_State* tolua_S)
  15563. {
  15564. #ifndef TOLUA_RELEASE
  15565. tolua_Error tolua_err;
  15566. if (
  15567. !tolua_isusertype(tolua_S,1,"Skeleton",0,&tolua_err) ||
  15568. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  15569. !tolua_isnoobj(tolua_S,3,&tolua_err)
  15570. )
  15571. goto tolua_lerror;
  15572. else
  15573. #endif
  15574. {
  15575. Skeleton* self = (Skeleton*) tolua_tousertype(tolua_S,1,0);
  15576. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  15577. #ifndef TOLUA_RELEASE
  15578. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBone'", NULL);
  15579. #endif
  15580. {
  15581. Bone* tolua_ret = (Bone*) self->GetBone(index);
  15582. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Bone");
  15583. }
  15584. }
  15585. return 1;
  15586. #ifndef TOLUA_RELEASE
  15587. tolua_lerror:
  15588. tolua_error(tolua_S,"#ferror in function 'GetBone'.",&tolua_err);
  15589. return 0;
  15590. #endif
  15591. }
  15592. #endif //#ifndef TOLUA_DISABLE
  15593. /* method: SetModel of class StaticModel */
  15594. #ifndef TOLUA_DISABLE_tolua_Graphics_StaticModel_SetModel00
  15595. static int tolua_Graphics_StaticModel_SetModel00(lua_State* tolua_S)
  15596. {
  15597. #ifndef TOLUA_RELEASE
  15598. tolua_Error tolua_err;
  15599. if (
  15600. !tolua_isusertype(tolua_S,1,"StaticModel",0,&tolua_err) ||
  15601. !tolua_isusertype(tolua_S,2,"Model",0,&tolua_err) ||
  15602. !tolua_isnoobj(tolua_S,3,&tolua_err)
  15603. )
  15604. goto tolua_lerror;
  15605. else
  15606. #endif
  15607. {
  15608. StaticModel* self = (StaticModel*) tolua_tousertype(tolua_S,1,0);
  15609. Model* model = ((Model*) tolua_tousertype(tolua_S,2,0));
  15610. #ifndef TOLUA_RELEASE
  15611. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetModel'", NULL);
  15612. #endif
  15613. {
  15614. self->SetModel(model);
  15615. }
  15616. }
  15617. return 0;
  15618. #ifndef TOLUA_RELEASE
  15619. tolua_lerror:
  15620. tolua_error(tolua_S,"#ferror in function 'SetModel'.",&tolua_err);
  15621. return 0;
  15622. #endif
  15623. }
  15624. #endif //#ifndef TOLUA_DISABLE
  15625. /* method: SetMaterial of class StaticModel */
  15626. #ifndef TOLUA_DISABLE_tolua_Graphics_StaticModel_SetMaterial00
  15627. static int tolua_Graphics_StaticModel_SetMaterial00(lua_State* tolua_S)
  15628. {
  15629. #ifndef TOLUA_RELEASE
  15630. tolua_Error tolua_err;
  15631. if (
  15632. !tolua_isusertype(tolua_S,1,"StaticModel",0,&tolua_err) ||
  15633. !tolua_isusertype(tolua_S,2,"Material",0,&tolua_err) ||
  15634. !tolua_isnoobj(tolua_S,3,&tolua_err)
  15635. )
  15636. goto tolua_lerror;
  15637. else
  15638. #endif
  15639. {
  15640. StaticModel* self = (StaticModel*) tolua_tousertype(tolua_S,1,0);
  15641. Material* material = ((Material*) tolua_tousertype(tolua_S,2,0));
  15642. #ifndef TOLUA_RELEASE
  15643. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaterial'", NULL);
  15644. #endif
  15645. {
  15646. self->SetMaterial(material);
  15647. }
  15648. }
  15649. return 0;
  15650. #ifndef TOLUA_RELEASE
  15651. tolua_lerror:
  15652. tolua_error(tolua_S,"#ferror in function 'SetMaterial'.",&tolua_err);
  15653. return 0;
  15654. #endif
  15655. }
  15656. #endif //#ifndef TOLUA_DISABLE
  15657. /* method: SetMaterial of class StaticModel */
  15658. #ifndef TOLUA_DISABLE_tolua_Graphics_StaticModel_SetMaterial01
  15659. static int tolua_Graphics_StaticModel_SetMaterial01(lua_State* tolua_S)
  15660. {
  15661. tolua_Error tolua_err;
  15662. if (
  15663. !tolua_isusertype(tolua_S,1,"StaticModel",0,&tolua_err) ||
  15664. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  15665. !tolua_isusertype(tolua_S,3,"Material",0,&tolua_err) ||
  15666. !tolua_isnoobj(tolua_S,4,&tolua_err)
  15667. )
  15668. goto tolua_lerror;
  15669. else
  15670. {
  15671. StaticModel* self = (StaticModel*) tolua_tousertype(tolua_S,1,0);
  15672. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  15673. Material* material = ((Material*) tolua_tousertype(tolua_S,3,0));
  15674. #ifndef TOLUA_RELEASE
  15675. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaterial'", NULL);
  15676. #endif
  15677. {
  15678. bool tolua_ret = (bool) self->SetMaterial(index,material);
  15679. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  15680. }
  15681. }
  15682. return 1;
  15683. tolua_lerror:
  15684. return tolua_Graphics_StaticModel_SetMaterial00(tolua_S);
  15685. }
  15686. #endif //#ifndef TOLUA_DISABLE
  15687. /* method: SetOcclusionLodLevel of class StaticModel */
  15688. #ifndef TOLUA_DISABLE_tolua_Graphics_StaticModel_SetOcclusionLodLevel00
  15689. static int tolua_Graphics_StaticModel_SetOcclusionLodLevel00(lua_State* tolua_S)
  15690. {
  15691. #ifndef TOLUA_RELEASE
  15692. tolua_Error tolua_err;
  15693. if (
  15694. !tolua_isusertype(tolua_S,1,"StaticModel",0,&tolua_err) ||
  15695. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  15696. !tolua_isnoobj(tolua_S,3,&tolua_err)
  15697. )
  15698. goto tolua_lerror;
  15699. else
  15700. #endif
  15701. {
  15702. StaticModel* self = (StaticModel*) tolua_tousertype(tolua_S,1,0);
  15703. unsigned level = ((unsigned) tolua_tonumber(tolua_S,2,0));
  15704. #ifndef TOLUA_RELEASE
  15705. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOcclusionLodLevel'", NULL);
  15706. #endif
  15707. {
  15708. self->SetOcclusionLodLevel(level);
  15709. }
  15710. }
  15711. return 0;
  15712. #ifndef TOLUA_RELEASE
  15713. tolua_lerror:
  15714. tolua_error(tolua_S,"#ferror in function 'SetOcclusionLodLevel'.",&tolua_err);
  15715. return 0;
  15716. #endif
  15717. }
  15718. #endif //#ifndef TOLUA_DISABLE
  15719. /* method: GetModel of class StaticModel */
  15720. #ifndef TOLUA_DISABLE_tolua_Graphics_StaticModel_GetModel00
  15721. static int tolua_Graphics_StaticModel_GetModel00(lua_State* tolua_S)
  15722. {
  15723. #ifndef TOLUA_RELEASE
  15724. tolua_Error tolua_err;
  15725. if (
  15726. !tolua_isusertype(tolua_S,1,"const StaticModel",0,&tolua_err) ||
  15727. !tolua_isnoobj(tolua_S,2,&tolua_err)
  15728. )
  15729. goto tolua_lerror;
  15730. else
  15731. #endif
  15732. {
  15733. const StaticModel* self = (const StaticModel*) tolua_tousertype(tolua_S,1,0);
  15734. #ifndef TOLUA_RELEASE
  15735. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetModel'", NULL);
  15736. #endif
  15737. {
  15738. Model* tolua_ret = (Model*) self->GetModel();
  15739. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Model");
  15740. }
  15741. }
  15742. return 1;
  15743. #ifndef TOLUA_RELEASE
  15744. tolua_lerror:
  15745. tolua_error(tolua_S,"#ferror in function 'GetModel'.",&tolua_err);
  15746. return 0;
  15747. #endif
  15748. }
  15749. #endif //#ifndef TOLUA_DISABLE
  15750. /* method: GetBoundingBox of class StaticModel */
  15751. #ifndef TOLUA_DISABLE_tolua_Graphics_StaticModel_GetBoundingBox00
  15752. static int tolua_Graphics_StaticModel_GetBoundingBox00(lua_State* tolua_S)
  15753. {
  15754. #ifndef TOLUA_RELEASE
  15755. tolua_Error tolua_err;
  15756. if (
  15757. !tolua_isusertype(tolua_S,1,"const StaticModel",0,&tolua_err) ||
  15758. !tolua_isnoobj(tolua_S,2,&tolua_err)
  15759. )
  15760. goto tolua_lerror;
  15761. else
  15762. #endif
  15763. {
  15764. const StaticModel* self = (const StaticModel*) tolua_tousertype(tolua_S,1,0);
  15765. #ifndef TOLUA_RELEASE
  15766. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBoundingBox'", NULL);
  15767. #endif
  15768. {
  15769. const BoundingBox& tolua_ret = (const BoundingBox&) self->GetBoundingBox();
  15770. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const BoundingBox");
  15771. }
  15772. }
  15773. return 1;
  15774. #ifndef TOLUA_RELEASE
  15775. tolua_lerror:
  15776. tolua_error(tolua_S,"#ferror in function 'GetBoundingBox'.",&tolua_err);
  15777. return 0;
  15778. #endif
  15779. }
  15780. #endif //#ifndef TOLUA_DISABLE
  15781. /* method: GetNumGeometries of class StaticModel */
  15782. #ifndef TOLUA_DISABLE_tolua_Graphics_StaticModel_GetNumGeometries00
  15783. static int tolua_Graphics_StaticModel_GetNumGeometries00(lua_State* tolua_S)
  15784. {
  15785. #ifndef TOLUA_RELEASE
  15786. tolua_Error tolua_err;
  15787. if (
  15788. !tolua_isusertype(tolua_S,1,"const StaticModel",0,&tolua_err) ||
  15789. !tolua_isnoobj(tolua_S,2,&tolua_err)
  15790. )
  15791. goto tolua_lerror;
  15792. else
  15793. #endif
  15794. {
  15795. const StaticModel* self = (const StaticModel*) tolua_tousertype(tolua_S,1,0);
  15796. #ifndef TOLUA_RELEASE
  15797. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumGeometries'", NULL);
  15798. #endif
  15799. {
  15800. unsigned tolua_ret = (unsigned) self->GetNumGeometries();
  15801. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  15802. }
  15803. }
  15804. return 1;
  15805. #ifndef TOLUA_RELEASE
  15806. tolua_lerror:
  15807. tolua_error(tolua_S,"#ferror in function 'GetNumGeometries'.",&tolua_err);
  15808. return 0;
  15809. #endif
  15810. }
  15811. #endif //#ifndef TOLUA_DISABLE
  15812. /* method: GetMaterial of class StaticModel */
  15813. #ifndef TOLUA_DISABLE_tolua_Graphics_StaticModel_GetMaterial00
  15814. static int tolua_Graphics_StaticModel_GetMaterial00(lua_State* tolua_S)
  15815. {
  15816. #ifndef TOLUA_RELEASE
  15817. tolua_Error tolua_err;
  15818. if (
  15819. !tolua_isusertype(tolua_S,1,"const StaticModel",0,&tolua_err) ||
  15820. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  15821. !tolua_isnoobj(tolua_S,3,&tolua_err)
  15822. )
  15823. goto tolua_lerror;
  15824. else
  15825. #endif
  15826. {
  15827. const StaticModel* self = (const StaticModel*) tolua_tousertype(tolua_S,1,0);
  15828. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  15829. #ifndef TOLUA_RELEASE
  15830. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaterial'", NULL);
  15831. #endif
  15832. {
  15833. Material* tolua_ret = (Material*) self->GetMaterial(index);
  15834. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Material");
  15835. }
  15836. }
  15837. return 1;
  15838. #ifndef TOLUA_RELEASE
  15839. tolua_lerror:
  15840. tolua_error(tolua_S,"#ferror in function 'GetMaterial'.",&tolua_err);
  15841. return 0;
  15842. #endif
  15843. }
  15844. #endif //#ifndef TOLUA_DISABLE
  15845. /* method: GetOcclusionLodLevel of class StaticModel */
  15846. #ifndef TOLUA_DISABLE_tolua_Graphics_StaticModel_GetOcclusionLodLevel00
  15847. static int tolua_Graphics_StaticModel_GetOcclusionLodLevel00(lua_State* tolua_S)
  15848. {
  15849. #ifndef TOLUA_RELEASE
  15850. tolua_Error tolua_err;
  15851. if (
  15852. !tolua_isusertype(tolua_S,1,"const StaticModel",0,&tolua_err) ||
  15853. !tolua_isnoobj(tolua_S,2,&tolua_err)
  15854. )
  15855. goto tolua_lerror;
  15856. else
  15857. #endif
  15858. {
  15859. const StaticModel* self = (const StaticModel*) tolua_tousertype(tolua_S,1,0);
  15860. #ifndef TOLUA_RELEASE
  15861. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOcclusionLodLevel'", NULL);
  15862. #endif
  15863. {
  15864. unsigned tolua_ret = (unsigned) self->GetOcclusionLodLevel();
  15865. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  15866. }
  15867. }
  15868. return 1;
  15869. #ifndef TOLUA_RELEASE
  15870. tolua_lerror:
  15871. tolua_error(tolua_S,"#ferror in function 'GetOcclusionLodLevel'.",&tolua_err);
  15872. return 0;
  15873. #endif
  15874. }
  15875. #endif //#ifndef TOLUA_DISABLE
  15876. /* method: IsInside of class StaticModel */
  15877. #ifndef TOLUA_DISABLE_tolua_Graphics_StaticModel_IsInside00
  15878. static int tolua_Graphics_StaticModel_IsInside00(lua_State* tolua_S)
  15879. {
  15880. #ifndef TOLUA_RELEASE
  15881. tolua_Error tolua_err;
  15882. if (
  15883. !tolua_isusertype(tolua_S,1,"const StaticModel",0,&tolua_err) ||
  15884. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  15885. !tolua_isnoobj(tolua_S,3,&tolua_err)
  15886. )
  15887. goto tolua_lerror;
  15888. else
  15889. #endif
  15890. {
  15891. const StaticModel* self = (const StaticModel*) tolua_tousertype(tolua_S,1,0);
  15892. const Vector3* point = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  15893. #ifndef TOLUA_RELEASE
  15894. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsInside'", NULL);
  15895. #endif
  15896. {
  15897. bool tolua_ret = (bool) self->IsInside(*point);
  15898. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  15899. }
  15900. }
  15901. return 1;
  15902. #ifndef TOLUA_RELEASE
  15903. tolua_lerror:
  15904. tolua_error(tolua_S,"#ferror in function 'IsInside'.",&tolua_err);
  15905. return 0;
  15906. #endif
  15907. }
  15908. #endif //#ifndef TOLUA_DISABLE
  15909. /* method: IsInsideLocal of class StaticModel */
  15910. #ifndef TOLUA_DISABLE_tolua_Graphics_StaticModel_IsInsideLocal00
  15911. static int tolua_Graphics_StaticModel_IsInsideLocal00(lua_State* tolua_S)
  15912. {
  15913. #ifndef TOLUA_RELEASE
  15914. tolua_Error tolua_err;
  15915. if (
  15916. !tolua_isusertype(tolua_S,1,"const StaticModel",0,&tolua_err) ||
  15917. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  15918. !tolua_isnoobj(tolua_S,3,&tolua_err)
  15919. )
  15920. goto tolua_lerror;
  15921. else
  15922. #endif
  15923. {
  15924. const StaticModel* self = (const StaticModel*) tolua_tousertype(tolua_S,1,0);
  15925. const Vector3* point = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  15926. #ifndef TOLUA_RELEASE
  15927. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsInsideLocal'", NULL);
  15928. #endif
  15929. {
  15930. bool tolua_ret = (bool) self->IsInsideLocal(*point);
  15931. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  15932. }
  15933. }
  15934. return 1;
  15935. #ifndef TOLUA_RELEASE
  15936. tolua_lerror:
  15937. tolua_error(tolua_S,"#ferror in function 'IsInsideLocal'.",&tolua_err);
  15938. return 0;
  15939. #endif
  15940. }
  15941. #endif //#ifndef TOLUA_DISABLE
  15942. /* method: SetIsSM3 of class Technique */
  15943. #ifndef TOLUA_DISABLE_tolua_Graphics_Technique_SetIsSM300
  15944. static int tolua_Graphics_Technique_SetIsSM300(lua_State* tolua_S)
  15945. {
  15946. #ifndef TOLUA_RELEASE
  15947. tolua_Error tolua_err;
  15948. if (
  15949. !tolua_isusertype(tolua_S,1,"Technique",0,&tolua_err) ||
  15950. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  15951. !tolua_isnoobj(tolua_S,3,&tolua_err)
  15952. )
  15953. goto tolua_lerror;
  15954. else
  15955. #endif
  15956. {
  15957. Technique* self = (Technique*) tolua_tousertype(tolua_S,1,0);
  15958. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  15959. #ifndef TOLUA_RELEASE
  15960. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetIsSM3'", NULL);
  15961. #endif
  15962. {
  15963. self->SetIsSM3(enable);
  15964. }
  15965. }
  15966. return 0;
  15967. #ifndef TOLUA_RELEASE
  15968. tolua_lerror:
  15969. tolua_error(tolua_S,"#ferror in function 'SetIsSM3'.",&tolua_err);
  15970. return 0;
  15971. #endif
  15972. }
  15973. #endif //#ifndef TOLUA_DISABLE
  15974. /* method: ReleaseShaders of class Technique */
  15975. #ifndef TOLUA_DISABLE_tolua_Graphics_Technique_ReleaseShaders00
  15976. static int tolua_Graphics_Technique_ReleaseShaders00(lua_State* tolua_S)
  15977. {
  15978. #ifndef TOLUA_RELEASE
  15979. tolua_Error tolua_err;
  15980. if (
  15981. !tolua_isusertype(tolua_S,1,"Technique",0,&tolua_err) ||
  15982. !tolua_isnoobj(tolua_S,2,&tolua_err)
  15983. )
  15984. goto tolua_lerror;
  15985. else
  15986. #endif
  15987. {
  15988. Technique* self = (Technique*) tolua_tousertype(tolua_S,1,0);
  15989. #ifndef TOLUA_RELEASE
  15990. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ReleaseShaders'", NULL);
  15991. #endif
  15992. {
  15993. self->ReleaseShaders();
  15994. }
  15995. }
  15996. return 0;
  15997. #ifndef TOLUA_RELEASE
  15998. tolua_lerror:
  15999. tolua_error(tolua_S,"#ferror in function 'ReleaseShaders'.",&tolua_err);
  16000. return 0;
  16001. #endif
  16002. }
  16003. #endif //#ifndef TOLUA_DISABLE
  16004. /* method: IsSM3 of class Technique */
  16005. #ifndef TOLUA_DISABLE_tolua_Graphics_Technique_IsSM300
  16006. static int tolua_Graphics_Technique_IsSM300(lua_State* tolua_S)
  16007. {
  16008. #ifndef TOLUA_RELEASE
  16009. tolua_Error tolua_err;
  16010. if (
  16011. !tolua_isusertype(tolua_S,1,"const Technique",0,&tolua_err) ||
  16012. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16013. )
  16014. goto tolua_lerror;
  16015. else
  16016. #endif
  16017. {
  16018. const Technique* self = (const Technique*) tolua_tousertype(tolua_S,1,0);
  16019. #ifndef TOLUA_RELEASE
  16020. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsSM3'", NULL);
  16021. #endif
  16022. {
  16023. bool tolua_ret = (bool) self->IsSM3();
  16024. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  16025. }
  16026. }
  16027. return 1;
  16028. #ifndef TOLUA_RELEASE
  16029. tolua_lerror:
  16030. tolua_error(tolua_S,"#ferror in function 'IsSM3'.",&tolua_err);
  16031. return 0;
  16032. #endif
  16033. }
  16034. #endif //#ifndef TOLUA_DISABLE
  16035. /* method: SetPatchSize of class Terrain */
  16036. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetPatchSize00
  16037. static int tolua_Graphics_Terrain_SetPatchSize00(lua_State* tolua_S)
  16038. {
  16039. #ifndef TOLUA_RELEASE
  16040. tolua_Error tolua_err;
  16041. if (
  16042. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  16043. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  16044. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16045. )
  16046. goto tolua_lerror;
  16047. else
  16048. #endif
  16049. {
  16050. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  16051. int size = ((int) tolua_tonumber(tolua_S,2,0));
  16052. #ifndef TOLUA_RELEASE
  16053. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPatchSize'", NULL);
  16054. #endif
  16055. {
  16056. self->SetPatchSize(size);
  16057. }
  16058. }
  16059. return 0;
  16060. #ifndef TOLUA_RELEASE
  16061. tolua_lerror:
  16062. tolua_error(tolua_S,"#ferror in function 'SetPatchSize'.",&tolua_err);
  16063. return 0;
  16064. #endif
  16065. }
  16066. #endif //#ifndef TOLUA_DISABLE
  16067. /* method: SetSpacing of class Terrain */
  16068. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetSpacing00
  16069. static int tolua_Graphics_Terrain_SetSpacing00(lua_State* tolua_S)
  16070. {
  16071. #ifndef TOLUA_RELEASE
  16072. tolua_Error tolua_err;
  16073. if (
  16074. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  16075. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  16076. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16077. )
  16078. goto tolua_lerror;
  16079. else
  16080. #endif
  16081. {
  16082. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  16083. const Vector3* spacing = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  16084. #ifndef TOLUA_RELEASE
  16085. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSpacing'", NULL);
  16086. #endif
  16087. {
  16088. self->SetSpacing(*spacing);
  16089. }
  16090. }
  16091. return 0;
  16092. #ifndef TOLUA_RELEASE
  16093. tolua_lerror:
  16094. tolua_error(tolua_S,"#ferror in function 'SetSpacing'.",&tolua_err);
  16095. return 0;
  16096. #endif
  16097. }
  16098. #endif //#ifndef TOLUA_DISABLE
  16099. /* method: SetSmoothing of class Terrain */
  16100. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetSmoothing00
  16101. static int tolua_Graphics_Terrain_SetSmoothing00(lua_State* tolua_S)
  16102. {
  16103. #ifndef TOLUA_RELEASE
  16104. tolua_Error tolua_err;
  16105. if (
  16106. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  16107. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  16108. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16109. )
  16110. goto tolua_lerror;
  16111. else
  16112. #endif
  16113. {
  16114. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  16115. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  16116. #ifndef TOLUA_RELEASE
  16117. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSmoothing'", NULL);
  16118. #endif
  16119. {
  16120. self->SetSmoothing(enable);
  16121. }
  16122. }
  16123. return 0;
  16124. #ifndef TOLUA_RELEASE
  16125. tolua_lerror:
  16126. tolua_error(tolua_S,"#ferror in function 'SetSmoothing'.",&tolua_err);
  16127. return 0;
  16128. #endif
  16129. }
  16130. #endif //#ifndef TOLUA_DISABLE
  16131. /* method: SetHeightMap of class Terrain */
  16132. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetHeightMap00
  16133. static int tolua_Graphics_Terrain_SetHeightMap00(lua_State* tolua_S)
  16134. {
  16135. #ifndef TOLUA_RELEASE
  16136. tolua_Error tolua_err;
  16137. if (
  16138. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  16139. !tolua_isusertype(tolua_S,2,"Image",0,&tolua_err) ||
  16140. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16141. )
  16142. goto tolua_lerror;
  16143. else
  16144. #endif
  16145. {
  16146. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  16147. Image* image = ((Image*) tolua_tousertype(tolua_S,2,0));
  16148. #ifndef TOLUA_RELEASE
  16149. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetHeightMap'", NULL);
  16150. #endif
  16151. {
  16152. bool tolua_ret = (bool) self->SetHeightMap(image);
  16153. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  16154. }
  16155. }
  16156. return 1;
  16157. #ifndef TOLUA_RELEASE
  16158. tolua_lerror:
  16159. tolua_error(tolua_S,"#ferror in function 'SetHeightMap'.",&tolua_err);
  16160. return 0;
  16161. #endif
  16162. }
  16163. #endif //#ifndef TOLUA_DISABLE
  16164. /* method: SetMaterial of class Terrain */
  16165. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetMaterial00
  16166. static int tolua_Graphics_Terrain_SetMaterial00(lua_State* tolua_S)
  16167. {
  16168. #ifndef TOLUA_RELEASE
  16169. tolua_Error tolua_err;
  16170. if (
  16171. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  16172. !tolua_isusertype(tolua_S,2,"Material",0,&tolua_err) ||
  16173. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16174. )
  16175. goto tolua_lerror;
  16176. else
  16177. #endif
  16178. {
  16179. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  16180. Material* material = ((Material*) tolua_tousertype(tolua_S,2,0));
  16181. #ifndef TOLUA_RELEASE
  16182. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaterial'", NULL);
  16183. #endif
  16184. {
  16185. self->SetMaterial(material);
  16186. }
  16187. }
  16188. return 0;
  16189. #ifndef TOLUA_RELEASE
  16190. tolua_lerror:
  16191. tolua_error(tolua_S,"#ferror in function 'SetMaterial'.",&tolua_err);
  16192. return 0;
  16193. #endif
  16194. }
  16195. #endif //#ifndef TOLUA_DISABLE
  16196. /* method: SetDrawDistance of class Terrain */
  16197. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetDrawDistance00
  16198. static int tolua_Graphics_Terrain_SetDrawDistance00(lua_State* tolua_S)
  16199. {
  16200. #ifndef TOLUA_RELEASE
  16201. tolua_Error tolua_err;
  16202. if (
  16203. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  16204. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  16205. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16206. )
  16207. goto tolua_lerror;
  16208. else
  16209. #endif
  16210. {
  16211. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  16212. float distance = ((float) tolua_tonumber(tolua_S,2,0));
  16213. #ifndef TOLUA_RELEASE
  16214. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDrawDistance'", NULL);
  16215. #endif
  16216. {
  16217. self->SetDrawDistance(distance);
  16218. }
  16219. }
  16220. return 0;
  16221. #ifndef TOLUA_RELEASE
  16222. tolua_lerror:
  16223. tolua_error(tolua_S,"#ferror in function 'SetDrawDistance'.",&tolua_err);
  16224. return 0;
  16225. #endif
  16226. }
  16227. #endif //#ifndef TOLUA_DISABLE
  16228. /* method: SetShadowDistance of class Terrain */
  16229. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetShadowDistance00
  16230. static int tolua_Graphics_Terrain_SetShadowDistance00(lua_State* tolua_S)
  16231. {
  16232. #ifndef TOLUA_RELEASE
  16233. tolua_Error tolua_err;
  16234. if (
  16235. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  16236. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  16237. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16238. )
  16239. goto tolua_lerror;
  16240. else
  16241. #endif
  16242. {
  16243. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  16244. float distance = ((float) tolua_tonumber(tolua_S,2,0));
  16245. #ifndef TOLUA_RELEASE
  16246. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShadowDistance'", NULL);
  16247. #endif
  16248. {
  16249. self->SetShadowDistance(distance);
  16250. }
  16251. }
  16252. return 0;
  16253. #ifndef TOLUA_RELEASE
  16254. tolua_lerror:
  16255. tolua_error(tolua_S,"#ferror in function 'SetShadowDistance'.",&tolua_err);
  16256. return 0;
  16257. #endif
  16258. }
  16259. #endif //#ifndef TOLUA_DISABLE
  16260. /* method: SetLodBias of class Terrain */
  16261. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetLodBias00
  16262. static int tolua_Graphics_Terrain_SetLodBias00(lua_State* tolua_S)
  16263. {
  16264. #ifndef TOLUA_RELEASE
  16265. tolua_Error tolua_err;
  16266. if (
  16267. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  16268. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  16269. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16270. )
  16271. goto tolua_lerror;
  16272. else
  16273. #endif
  16274. {
  16275. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  16276. float bias = ((float) tolua_tonumber(tolua_S,2,0));
  16277. #ifndef TOLUA_RELEASE
  16278. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLodBias'", NULL);
  16279. #endif
  16280. {
  16281. self->SetLodBias(bias);
  16282. }
  16283. }
  16284. return 0;
  16285. #ifndef TOLUA_RELEASE
  16286. tolua_lerror:
  16287. tolua_error(tolua_S,"#ferror in function 'SetLodBias'.",&tolua_err);
  16288. return 0;
  16289. #endif
  16290. }
  16291. #endif //#ifndef TOLUA_DISABLE
  16292. /* method: SetViewMask of class Terrain */
  16293. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetViewMask00
  16294. static int tolua_Graphics_Terrain_SetViewMask00(lua_State* tolua_S)
  16295. {
  16296. #ifndef TOLUA_RELEASE
  16297. tolua_Error tolua_err;
  16298. if (
  16299. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  16300. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  16301. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16302. )
  16303. goto tolua_lerror;
  16304. else
  16305. #endif
  16306. {
  16307. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  16308. unsigned mask = ((unsigned) tolua_tonumber(tolua_S,2,0));
  16309. #ifndef TOLUA_RELEASE
  16310. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetViewMask'", NULL);
  16311. #endif
  16312. {
  16313. self->SetViewMask(mask);
  16314. }
  16315. }
  16316. return 0;
  16317. #ifndef TOLUA_RELEASE
  16318. tolua_lerror:
  16319. tolua_error(tolua_S,"#ferror in function 'SetViewMask'.",&tolua_err);
  16320. return 0;
  16321. #endif
  16322. }
  16323. #endif //#ifndef TOLUA_DISABLE
  16324. /* method: SetLightMask of class Terrain */
  16325. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetLightMask00
  16326. static int tolua_Graphics_Terrain_SetLightMask00(lua_State* tolua_S)
  16327. {
  16328. #ifndef TOLUA_RELEASE
  16329. tolua_Error tolua_err;
  16330. if (
  16331. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  16332. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  16333. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16334. )
  16335. goto tolua_lerror;
  16336. else
  16337. #endif
  16338. {
  16339. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  16340. unsigned mask = ((unsigned) tolua_tonumber(tolua_S,2,0));
  16341. #ifndef TOLUA_RELEASE
  16342. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLightMask'", NULL);
  16343. #endif
  16344. {
  16345. self->SetLightMask(mask);
  16346. }
  16347. }
  16348. return 0;
  16349. #ifndef TOLUA_RELEASE
  16350. tolua_lerror:
  16351. tolua_error(tolua_S,"#ferror in function 'SetLightMask'.",&tolua_err);
  16352. return 0;
  16353. #endif
  16354. }
  16355. #endif //#ifndef TOLUA_DISABLE
  16356. /* method: SetShadowMask of class Terrain */
  16357. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetShadowMask00
  16358. static int tolua_Graphics_Terrain_SetShadowMask00(lua_State* tolua_S)
  16359. {
  16360. #ifndef TOLUA_RELEASE
  16361. tolua_Error tolua_err;
  16362. if (
  16363. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  16364. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  16365. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16366. )
  16367. goto tolua_lerror;
  16368. else
  16369. #endif
  16370. {
  16371. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  16372. unsigned mask = ((unsigned) tolua_tonumber(tolua_S,2,0));
  16373. #ifndef TOLUA_RELEASE
  16374. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShadowMask'", NULL);
  16375. #endif
  16376. {
  16377. self->SetShadowMask(mask);
  16378. }
  16379. }
  16380. return 0;
  16381. #ifndef TOLUA_RELEASE
  16382. tolua_lerror:
  16383. tolua_error(tolua_S,"#ferror in function 'SetShadowMask'.",&tolua_err);
  16384. return 0;
  16385. #endif
  16386. }
  16387. #endif //#ifndef TOLUA_DISABLE
  16388. /* method: SetZoneMask of class Terrain */
  16389. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetZoneMask00
  16390. static int tolua_Graphics_Terrain_SetZoneMask00(lua_State* tolua_S)
  16391. {
  16392. #ifndef TOLUA_RELEASE
  16393. tolua_Error tolua_err;
  16394. if (
  16395. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  16396. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  16397. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16398. )
  16399. goto tolua_lerror;
  16400. else
  16401. #endif
  16402. {
  16403. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  16404. unsigned mask = ((unsigned) tolua_tonumber(tolua_S,2,0));
  16405. #ifndef TOLUA_RELEASE
  16406. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetZoneMask'", NULL);
  16407. #endif
  16408. {
  16409. self->SetZoneMask(mask);
  16410. }
  16411. }
  16412. return 0;
  16413. #ifndef TOLUA_RELEASE
  16414. tolua_lerror:
  16415. tolua_error(tolua_S,"#ferror in function 'SetZoneMask'.",&tolua_err);
  16416. return 0;
  16417. #endif
  16418. }
  16419. #endif //#ifndef TOLUA_DISABLE
  16420. /* method: SetMaxLights of class Terrain */
  16421. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetMaxLights00
  16422. static int tolua_Graphics_Terrain_SetMaxLights00(lua_State* tolua_S)
  16423. {
  16424. #ifndef TOLUA_RELEASE
  16425. tolua_Error tolua_err;
  16426. if (
  16427. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  16428. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  16429. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16430. )
  16431. goto tolua_lerror;
  16432. else
  16433. #endif
  16434. {
  16435. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  16436. unsigned num = ((unsigned) tolua_tonumber(tolua_S,2,0));
  16437. #ifndef TOLUA_RELEASE
  16438. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxLights'", NULL);
  16439. #endif
  16440. {
  16441. self->SetMaxLights(num);
  16442. }
  16443. }
  16444. return 0;
  16445. #ifndef TOLUA_RELEASE
  16446. tolua_lerror:
  16447. tolua_error(tolua_S,"#ferror in function 'SetMaxLights'.",&tolua_err);
  16448. return 0;
  16449. #endif
  16450. }
  16451. #endif //#ifndef TOLUA_DISABLE
  16452. /* method: SetCastShadows of class Terrain */
  16453. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetCastShadows00
  16454. static int tolua_Graphics_Terrain_SetCastShadows00(lua_State* tolua_S)
  16455. {
  16456. #ifndef TOLUA_RELEASE
  16457. tolua_Error tolua_err;
  16458. if (
  16459. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  16460. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  16461. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16462. )
  16463. goto tolua_lerror;
  16464. else
  16465. #endif
  16466. {
  16467. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  16468. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  16469. #ifndef TOLUA_RELEASE
  16470. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetCastShadows'", NULL);
  16471. #endif
  16472. {
  16473. self->SetCastShadows(enable);
  16474. }
  16475. }
  16476. return 0;
  16477. #ifndef TOLUA_RELEASE
  16478. tolua_lerror:
  16479. tolua_error(tolua_S,"#ferror in function 'SetCastShadows'.",&tolua_err);
  16480. return 0;
  16481. #endif
  16482. }
  16483. #endif //#ifndef TOLUA_DISABLE
  16484. /* method: SetOccluder of class Terrain */
  16485. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetOccluder00
  16486. static int tolua_Graphics_Terrain_SetOccluder00(lua_State* tolua_S)
  16487. {
  16488. #ifndef TOLUA_RELEASE
  16489. tolua_Error tolua_err;
  16490. if (
  16491. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  16492. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  16493. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16494. )
  16495. goto tolua_lerror;
  16496. else
  16497. #endif
  16498. {
  16499. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  16500. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  16501. #ifndef TOLUA_RELEASE
  16502. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOccluder'", NULL);
  16503. #endif
  16504. {
  16505. self->SetOccluder(enable);
  16506. }
  16507. }
  16508. return 0;
  16509. #ifndef TOLUA_RELEASE
  16510. tolua_lerror:
  16511. tolua_error(tolua_S,"#ferror in function 'SetOccluder'.",&tolua_err);
  16512. return 0;
  16513. #endif
  16514. }
  16515. #endif //#ifndef TOLUA_DISABLE
  16516. /* method: SetOccludee of class Terrain */
  16517. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetOccludee00
  16518. static int tolua_Graphics_Terrain_SetOccludee00(lua_State* tolua_S)
  16519. {
  16520. #ifndef TOLUA_RELEASE
  16521. tolua_Error tolua_err;
  16522. if (
  16523. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  16524. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  16525. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16526. )
  16527. goto tolua_lerror;
  16528. else
  16529. #endif
  16530. {
  16531. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  16532. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  16533. #ifndef TOLUA_RELEASE
  16534. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOccludee'", NULL);
  16535. #endif
  16536. {
  16537. self->SetOccludee(enable);
  16538. }
  16539. }
  16540. return 0;
  16541. #ifndef TOLUA_RELEASE
  16542. tolua_lerror:
  16543. tolua_error(tolua_S,"#ferror in function 'SetOccludee'.",&tolua_err);
  16544. return 0;
  16545. #endif
  16546. }
  16547. #endif //#ifndef TOLUA_DISABLE
  16548. /* method: GetPatchSize of class Terrain */
  16549. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetPatchSize00
  16550. static int tolua_Graphics_Terrain_GetPatchSize00(lua_State* tolua_S)
  16551. {
  16552. #ifndef TOLUA_RELEASE
  16553. tolua_Error tolua_err;
  16554. if (
  16555. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16556. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16557. )
  16558. goto tolua_lerror;
  16559. else
  16560. #endif
  16561. {
  16562. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16563. #ifndef TOLUA_RELEASE
  16564. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPatchSize'", NULL);
  16565. #endif
  16566. {
  16567. int tolua_ret = (int) self->GetPatchSize();
  16568. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  16569. }
  16570. }
  16571. return 1;
  16572. #ifndef TOLUA_RELEASE
  16573. tolua_lerror:
  16574. tolua_error(tolua_S,"#ferror in function 'GetPatchSize'.",&tolua_err);
  16575. return 0;
  16576. #endif
  16577. }
  16578. #endif //#ifndef TOLUA_DISABLE
  16579. /* method: GetSpacing of class Terrain */
  16580. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetSpacing00
  16581. static int tolua_Graphics_Terrain_GetSpacing00(lua_State* tolua_S)
  16582. {
  16583. #ifndef TOLUA_RELEASE
  16584. tolua_Error tolua_err;
  16585. if (
  16586. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16587. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16588. )
  16589. goto tolua_lerror;
  16590. else
  16591. #endif
  16592. {
  16593. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16594. #ifndef TOLUA_RELEASE
  16595. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSpacing'", NULL);
  16596. #endif
  16597. {
  16598. const Vector3& tolua_ret = (const Vector3&) self->GetSpacing();
  16599. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector3");
  16600. }
  16601. }
  16602. return 1;
  16603. #ifndef TOLUA_RELEASE
  16604. tolua_lerror:
  16605. tolua_error(tolua_S,"#ferror in function 'GetSpacing'.",&tolua_err);
  16606. return 0;
  16607. #endif
  16608. }
  16609. #endif //#ifndef TOLUA_DISABLE
  16610. /* method: GetNumVertices of class Terrain */
  16611. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetNumVertices00
  16612. static int tolua_Graphics_Terrain_GetNumVertices00(lua_State* tolua_S)
  16613. {
  16614. #ifndef TOLUA_RELEASE
  16615. tolua_Error tolua_err;
  16616. if (
  16617. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16618. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16619. )
  16620. goto tolua_lerror;
  16621. else
  16622. #endif
  16623. {
  16624. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16625. #ifndef TOLUA_RELEASE
  16626. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumVertices'", NULL);
  16627. #endif
  16628. {
  16629. const IntVector2& tolua_ret = (const IntVector2&) self->GetNumVertices();
  16630. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  16631. }
  16632. }
  16633. return 1;
  16634. #ifndef TOLUA_RELEASE
  16635. tolua_lerror:
  16636. tolua_error(tolua_S,"#ferror in function 'GetNumVertices'.",&tolua_err);
  16637. return 0;
  16638. #endif
  16639. }
  16640. #endif //#ifndef TOLUA_DISABLE
  16641. /* method: GetNumPatches of class Terrain */
  16642. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetNumPatches00
  16643. static int tolua_Graphics_Terrain_GetNumPatches00(lua_State* tolua_S)
  16644. {
  16645. #ifndef TOLUA_RELEASE
  16646. tolua_Error tolua_err;
  16647. if (
  16648. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16649. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16650. )
  16651. goto tolua_lerror;
  16652. else
  16653. #endif
  16654. {
  16655. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16656. #ifndef TOLUA_RELEASE
  16657. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumPatches'", NULL);
  16658. #endif
  16659. {
  16660. const IntVector2& tolua_ret = (const IntVector2&) self->GetNumPatches();
  16661. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  16662. }
  16663. }
  16664. return 1;
  16665. #ifndef TOLUA_RELEASE
  16666. tolua_lerror:
  16667. tolua_error(tolua_S,"#ferror in function 'GetNumPatches'.",&tolua_err);
  16668. return 0;
  16669. #endif
  16670. }
  16671. #endif //#ifndef TOLUA_DISABLE
  16672. /* method: GetSmoothing of class Terrain */
  16673. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetSmoothing00
  16674. static int tolua_Graphics_Terrain_GetSmoothing00(lua_State* tolua_S)
  16675. {
  16676. #ifndef TOLUA_RELEASE
  16677. tolua_Error tolua_err;
  16678. if (
  16679. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16680. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16681. )
  16682. goto tolua_lerror;
  16683. else
  16684. #endif
  16685. {
  16686. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16687. #ifndef TOLUA_RELEASE
  16688. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSmoothing'", NULL);
  16689. #endif
  16690. {
  16691. bool tolua_ret = (bool) self->GetSmoothing();
  16692. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  16693. }
  16694. }
  16695. return 1;
  16696. #ifndef TOLUA_RELEASE
  16697. tolua_lerror:
  16698. tolua_error(tolua_S,"#ferror in function 'GetSmoothing'.",&tolua_err);
  16699. return 0;
  16700. #endif
  16701. }
  16702. #endif //#ifndef TOLUA_DISABLE
  16703. /* method: GetHeightMap of class Terrain */
  16704. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetHeightMap00
  16705. static int tolua_Graphics_Terrain_GetHeightMap00(lua_State* tolua_S)
  16706. {
  16707. #ifndef TOLUA_RELEASE
  16708. tolua_Error tolua_err;
  16709. if (
  16710. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16711. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16712. )
  16713. goto tolua_lerror;
  16714. else
  16715. #endif
  16716. {
  16717. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16718. #ifndef TOLUA_RELEASE
  16719. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHeightMap'", NULL);
  16720. #endif
  16721. {
  16722. Image* tolua_ret = (Image*) self->GetHeightMap();
  16723. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Image");
  16724. }
  16725. }
  16726. return 1;
  16727. #ifndef TOLUA_RELEASE
  16728. tolua_lerror:
  16729. tolua_error(tolua_S,"#ferror in function 'GetHeightMap'.",&tolua_err);
  16730. return 0;
  16731. #endif
  16732. }
  16733. #endif //#ifndef TOLUA_DISABLE
  16734. /* method: GetMaterial of class Terrain */
  16735. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetMaterial00
  16736. static int tolua_Graphics_Terrain_GetMaterial00(lua_State* tolua_S)
  16737. {
  16738. #ifndef TOLUA_RELEASE
  16739. tolua_Error tolua_err;
  16740. if (
  16741. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16742. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16743. )
  16744. goto tolua_lerror;
  16745. else
  16746. #endif
  16747. {
  16748. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16749. #ifndef TOLUA_RELEASE
  16750. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaterial'", NULL);
  16751. #endif
  16752. {
  16753. Material* tolua_ret = (Material*) self->GetMaterial();
  16754. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Material");
  16755. }
  16756. }
  16757. return 1;
  16758. #ifndef TOLUA_RELEASE
  16759. tolua_lerror:
  16760. tolua_error(tolua_S,"#ferror in function 'GetMaterial'.",&tolua_err);
  16761. return 0;
  16762. #endif
  16763. }
  16764. #endif //#ifndef TOLUA_DISABLE
  16765. /* method: GetPatch of class Terrain */
  16766. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetPatch00
  16767. static int tolua_Graphics_Terrain_GetPatch00(lua_State* tolua_S)
  16768. {
  16769. #ifndef TOLUA_RELEASE
  16770. tolua_Error tolua_err;
  16771. if (
  16772. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16773. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  16774. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16775. )
  16776. goto tolua_lerror;
  16777. else
  16778. #endif
  16779. {
  16780. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16781. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  16782. #ifndef TOLUA_RELEASE
  16783. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPatch'", NULL);
  16784. #endif
  16785. {
  16786. TerrainPatch* tolua_ret = (TerrainPatch*) self->GetPatch(index);
  16787. tolua_pushusertype(tolua_S,(void*)tolua_ret,"TerrainPatch");
  16788. }
  16789. }
  16790. return 1;
  16791. #ifndef TOLUA_RELEASE
  16792. tolua_lerror:
  16793. tolua_error(tolua_S,"#ferror in function 'GetPatch'.",&tolua_err);
  16794. return 0;
  16795. #endif
  16796. }
  16797. #endif //#ifndef TOLUA_DISABLE
  16798. /* method: GetPatch of class Terrain */
  16799. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetPatch01
  16800. static int tolua_Graphics_Terrain_GetPatch01(lua_State* tolua_S)
  16801. {
  16802. tolua_Error tolua_err;
  16803. if (
  16804. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16805. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  16806. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  16807. !tolua_isnoobj(tolua_S,4,&tolua_err)
  16808. )
  16809. goto tolua_lerror;
  16810. else
  16811. {
  16812. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16813. int x = ((int) tolua_tonumber(tolua_S,2,0));
  16814. int z = ((int) tolua_tonumber(tolua_S,3,0));
  16815. #ifndef TOLUA_RELEASE
  16816. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPatch'", NULL);
  16817. #endif
  16818. {
  16819. TerrainPatch* tolua_ret = (TerrainPatch*) self->GetPatch(x,z);
  16820. tolua_pushusertype(tolua_S,(void*)tolua_ret,"TerrainPatch");
  16821. }
  16822. }
  16823. return 1;
  16824. tolua_lerror:
  16825. return tolua_Graphics_Terrain_GetPatch00(tolua_S);
  16826. }
  16827. #endif //#ifndef TOLUA_DISABLE
  16828. /* method: GetHeight of class Terrain */
  16829. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetHeight00
  16830. static int tolua_Graphics_Terrain_GetHeight00(lua_State* tolua_S)
  16831. {
  16832. #ifndef TOLUA_RELEASE
  16833. tolua_Error tolua_err;
  16834. if (
  16835. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16836. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  16837. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16838. )
  16839. goto tolua_lerror;
  16840. else
  16841. #endif
  16842. {
  16843. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16844. const Vector3* worldPosition = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  16845. #ifndef TOLUA_RELEASE
  16846. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHeight'", NULL);
  16847. #endif
  16848. {
  16849. float tolua_ret = (float) self->GetHeight(*worldPosition);
  16850. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  16851. }
  16852. }
  16853. return 1;
  16854. #ifndef TOLUA_RELEASE
  16855. tolua_lerror:
  16856. tolua_error(tolua_S,"#ferror in function 'GetHeight'.",&tolua_err);
  16857. return 0;
  16858. #endif
  16859. }
  16860. #endif //#ifndef TOLUA_DISABLE
  16861. /* method: GetNormal of class Terrain */
  16862. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetNormal00
  16863. static int tolua_Graphics_Terrain_GetNormal00(lua_State* tolua_S)
  16864. {
  16865. #ifndef TOLUA_RELEASE
  16866. tolua_Error tolua_err;
  16867. if (
  16868. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16869. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  16870. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16871. )
  16872. goto tolua_lerror;
  16873. else
  16874. #endif
  16875. {
  16876. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16877. const Vector3* worldPosition = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  16878. #ifndef TOLUA_RELEASE
  16879. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNormal'", NULL);
  16880. #endif
  16881. {
  16882. Vector3 tolua_ret = (Vector3) self->GetNormal(*worldPosition);
  16883. {
  16884. #ifdef __cplusplus
  16885. void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
  16886. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  16887. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  16888. #else
  16889. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
  16890. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  16891. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  16892. #endif
  16893. }
  16894. }
  16895. }
  16896. return 1;
  16897. #ifndef TOLUA_RELEASE
  16898. tolua_lerror:
  16899. tolua_error(tolua_S,"#ferror in function 'GetNormal'.",&tolua_err);
  16900. return 0;
  16901. #endif
  16902. }
  16903. #endif //#ifndef TOLUA_DISABLE
  16904. /* method: GetDrawDistance of class Terrain */
  16905. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetDrawDistance00
  16906. static int tolua_Graphics_Terrain_GetDrawDistance00(lua_State* tolua_S)
  16907. {
  16908. #ifndef TOLUA_RELEASE
  16909. tolua_Error tolua_err;
  16910. if (
  16911. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16912. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16913. )
  16914. goto tolua_lerror;
  16915. else
  16916. #endif
  16917. {
  16918. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16919. #ifndef TOLUA_RELEASE
  16920. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDrawDistance'", NULL);
  16921. #endif
  16922. {
  16923. float tolua_ret = (float) self->GetDrawDistance();
  16924. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  16925. }
  16926. }
  16927. return 1;
  16928. #ifndef TOLUA_RELEASE
  16929. tolua_lerror:
  16930. tolua_error(tolua_S,"#ferror in function 'GetDrawDistance'.",&tolua_err);
  16931. return 0;
  16932. #endif
  16933. }
  16934. #endif //#ifndef TOLUA_DISABLE
  16935. /* method: GetShadowDistance of class Terrain */
  16936. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetShadowDistance00
  16937. static int tolua_Graphics_Terrain_GetShadowDistance00(lua_State* tolua_S)
  16938. {
  16939. #ifndef TOLUA_RELEASE
  16940. tolua_Error tolua_err;
  16941. if (
  16942. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16943. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16944. )
  16945. goto tolua_lerror;
  16946. else
  16947. #endif
  16948. {
  16949. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16950. #ifndef TOLUA_RELEASE
  16951. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowDistance'", NULL);
  16952. #endif
  16953. {
  16954. float tolua_ret = (float) self->GetShadowDistance();
  16955. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  16956. }
  16957. }
  16958. return 1;
  16959. #ifndef TOLUA_RELEASE
  16960. tolua_lerror:
  16961. tolua_error(tolua_S,"#ferror in function 'GetShadowDistance'.",&tolua_err);
  16962. return 0;
  16963. #endif
  16964. }
  16965. #endif //#ifndef TOLUA_DISABLE
  16966. /* method: GetLodBias of class Terrain */
  16967. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetLodBias00
  16968. static int tolua_Graphics_Terrain_GetLodBias00(lua_State* tolua_S)
  16969. {
  16970. #ifndef TOLUA_RELEASE
  16971. tolua_Error tolua_err;
  16972. if (
  16973. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16974. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16975. )
  16976. goto tolua_lerror;
  16977. else
  16978. #endif
  16979. {
  16980. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16981. #ifndef TOLUA_RELEASE
  16982. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLodBias'", NULL);
  16983. #endif
  16984. {
  16985. float tolua_ret = (float) self->GetLodBias();
  16986. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  16987. }
  16988. }
  16989. return 1;
  16990. #ifndef TOLUA_RELEASE
  16991. tolua_lerror:
  16992. tolua_error(tolua_S,"#ferror in function 'GetLodBias'.",&tolua_err);
  16993. return 0;
  16994. #endif
  16995. }
  16996. #endif //#ifndef TOLUA_DISABLE
  16997. /* method: GetViewMask of class Terrain */
  16998. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetViewMask00
  16999. static int tolua_Graphics_Terrain_GetViewMask00(lua_State* tolua_S)
  17000. {
  17001. #ifndef TOLUA_RELEASE
  17002. tolua_Error tolua_err;
  17003. if (
  17004. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  17005. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17006. )
  17007. goto tolua_lerror;
  17008. else
  17009. #endif
  17010. {
  17011. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  17012. #ifndef TOLUA_RELEASE
  17013. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetViewMask'", NULL);
  17014. #endif
  17015. {
  17016. unsigned tolua_ret = (unsigned) self->GetViewMask();
  17017. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  17018. }
  17019. }
  17020. return 1;
  17021. #ifndef TOLUA_RELEASE
  17022. tolua_lerror:
  17023. tolua_error(tolua_S,"#ferror in function 'GetViewMask'.",&tolua_err);
  17024. return 0;
  17025. #endif
  17026. }
  17027. #endif //#ifndef TOLUA_DISABLE
  17028. /* method: GetLightMask of class Terrain */
  17029. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetLightMask00
  17030. static int tolua_Graphics_Terrain_GetLightMask00(lua_State* tolua_S)
  17031. {
  17032. #ifndef TOLUA_RELEASE
  17033. tolua_Error tolua_err;
  17034. if (
  17035. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  17036. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17037. )
  17038. goto tolua_lerror;
  17039. else
  17040. #endif
  17041. {
  17042. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  17043. #ifndef TOLUA_RELEASE
  17044. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLightMask'", NULL);
  17045. #endif
  17046. {
  17047. unsigned tolua_ret = (unsigned) self->GetLightMask();
  17048. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  17049. }
  17050. }
  17051. return 1;
  17052. #ifndef TOLUA_RELEASE
  17053. tolua_lerror:
  17054. tolua_error(tolua_S,"#ferror in function 'GetLightMask'.",&tolua_err);
  17055. return 0;
  17056. #endif
  17057. }
  17058. #endif //#ifndef TOLUA_DISABLE
  17059. /* method: GetShadowMask of class Terrain */
  17060. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetShadowMask00
  17061. static int tolua_Graphics_Terrain_GetShadowMask00(lua_State* tolua_S)
  17062. {
  17063. #ifndef TOLUA_RELEASE
  17064. tolua_Error tolua_err;
  17065. if (
  17066. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  17067. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17068. )
  17069. goto tolua_lerror;
  17070. else
  17071. #endif
  17072. {
  17073. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  17074. #ifndef TOLUA_RELEASE
  17075. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowMask'", NULL);
  17076. #endif
  17077. {
  17078. unsigned tolua_ret = (unsigned) self->GetShadowMask();
  17079. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  17080. }
  17081. }
  17082. return 1;
  17083. #ifndef TOLUA_RELEASE
  17084. tolua_lerror:
  17085. tolua_error(tolua_S,"#ferror in function 'GetShadowMask'.",&tolua_err);
  17086. return 0;
  17087. #endif
  17088. }
  17089. #endif //#ifndef TOLUA_DISABLE
  17090. /* method: GetZoneMask of class Terrain */
  17091. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetZoneMask00
  17092. static int tolua_Graphics_Terrain_GetZoneMask00(lua_State* tolua_S)
  17093. {
  17094. #ifndef TOLUA_RELEASE
  17095. tolua_Error tolua_err;
  17096. if (
  17097. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  17098. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17099. )
  17100. goto tolua_lerror;
  17101. else
  17102. #endif
  17103. {
  17104. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  17105. #ifndef TOLUA_RELEASE
  17106. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetZoneMask'", NULL);
  17107. #endif
  17108. {
  17109. unsigned tolua_ret = (unsigned) self->GetZoneMask();
  17110. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  17111. }
  17112. }
  17113. return 1;
  17114. #ifndef TOLUA_RELEASE
  17115. tolua_lerror:
  17116. tolua_error(tolua_S,"#ferror in function 'GetZoneMask'.",&tolua_err);
  17117. return 0;
  17118. #endif
  17119. }
  17120. #endif //#ifndef TOLUA_DISABLE
  17121. /* method: GetMaxLights of class Terrain */
  17122. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetMaxLights00
  17123. static int tolua_Graphics_Terrain_GetMaxLights00(lua_State* tolua_S)
  17124. {
  17125. #ifndef TOLUA_RELEASE
  17126. tolua_Error tolua_err;
  17127. if (
  17128. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  17129. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17130. )
  17131. goto tolua_lerror;
  17132. else
  17133. #endif
  17134. {
  17135. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  17136. #ifndef TOLUA_RELEASE
  17137. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxLights'", NULL);
  17138. #endif
  17139. {
  17140. unsigned tolua_ret = (unsigned) self->GetMaxLights();
  17141. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  17142. }
  17143. }
  17144. return 1;
  17145. #ifndef TOLUA_RELEASE
  17146. tolua_lerror:
  17147. tolua_error(tolua_S,"#ferror in function 'GetMaxLights'.",&tolua_err);
  17148. return 0;
  17149. #endif
  17150. }
  17151. #endif //#ifndef TOLUA_DISABLE
  17152. /* method: IsVisible of class Terrain */
  17153. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_IsVisible00
  17154. static int tolua_Graphics_Terrain_IsVisible00(lua_State* tolua_S)
  17155. {
  17156. #ifndef TOLUA_RELEASE
  17157. tolua_Error tolua_err;
  17158. if (
  17159. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  17160. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17161. )
  17162. goto tolua_lerror;
  17163. else
  17164. #endif
  17165. {
  17166. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  17167. #ifndef TOLUA_RELEASE
  17168. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsVisible'", NULL);
  17169. #endif
  17170. {
  17171. bool tolua_ret = (bool) self->IsVisible();
  17172. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  17173. }
  17174. }
  17175. return 1;
  17176. #ifndef TOLUA_RELEASE
  17177. tolua_lerror:
  17178. tolua_error(tolua_S,"#ferror in function 'IsVisible'.",&tolua_err);
  17179. return 0;
  17180. #endif
  17181. }
  17182. #endif //#ifndef TOLUA_DISABLE
  17183. /* method: GetCastShadows of class Terrain */
  17184. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetCastShadows00
  17185. static int tolua_Graphics_Terrain_GetCastShadows00(lua_State* tolua_S)
  17186. {
  17187. #ifndef TOLUA_RELEASE
  17188. tolua_Error tolua_err;
  17189. if (
  17190. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  17191. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17192. )
  17193. goto tolua_lerror;
  17194. else
  17195. #endif
  17196. {
  17197. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  17198. #ifndef TOLUA_RELEASE
  17199. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCastShadows'", NULL);
  17200. #endif
  17201. {
  17202. bool tolua_ret = (bool) self->GetCastShadows();
  17203. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  17204. }
  17205. }
  17206. return 1;
  17207. #ifndef TOLUA_RELEASE
  17208. tolua_lerror:
  17209. tolua_error(tolua_S,"#ferror in function 'GetCastShadows'.",&tolua_err);
  17210. return 0;
  17211. #endif
  17212. }
  17213. #endif //#ifndef TOLUA_DISABLE
  17214. /* method: IsOccluder of class Terrain */
  17215. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_IsOccluder00
  17216. static int tolua_Graphics_Terrain_IsOccluder00(lua_State* tolua_S)
  17217. {
  17218. #ifndef TOLUA_RELEASE
  17219. tolua_Error tolua_err;
  17220. if (
  17221. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  17222. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17223. )
  17224. goto tolua_lerror;
  17225. else
  17226. #endif
  17227. {
  17228. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  17229. #ifndef TOLUA_RELEASE
  17230. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsOccluder'", NULL);
  17231. #endif
  17232. {
  17233. bool tolua_ret = (bool) self->IsOccluder();
  17234. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  17235. }
  17236. }
  17237. return 1;
  17238. #ifndef TOLUA_RELEASE
  17239. tolua_lerror:
  17240. tolua_error(tolua_S,"#ferror in function 'IsOccluder'.",&tolua_err);
  17241. return 0;
  17242. #endif
  17243. }
  17244. #endif //#ifndef TOLUA_DISABLE
  17245. /* method: IsOccludee of class Terrain */
  17246. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_IsOccludee00
  17247. static int tolua_Graphics_Terrain_IsOccludee00(lua_State* tolua_S)
  17248. {
  17249. #ifndef TOLUA_RELEASE
  17250. tolua_Error tolua_err;
  17251. if (
  17252. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  17253. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17254. )
  17255. goto tolua_lerror;
  17256. else
  17257. #endif
  17258. {
  17259. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  17260. #ifndef TOLUA_RELEASE
  17261. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsOccludee'", NULL);
  17262. #endif
  17263. {
  17264. bool tolua_ret = (bool) self->IsOccludee();
  17265. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  17266. }
  17267. }
  17268. return 1;
  17269. #ifndef TOLUA_RELEASE
  17270. tolua_lerror:
  17271. tolua_error(tolua_S,"#ferror in function 'IsOccludee'.",&tolua_err);
  17272. return 0;
  17273. #endif
  17274. }
  17275. #endif //#ifndef TOLUA_DISABLE
  17276. /* method: SetOwner of class TerrainPatch */
  17277. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_SetOwner00
  17278. static int tolua_Graphics_TerrainPatch_SetOwner00(lua_State* tolua_S)
  17279. {
  17280. #ifndef TOLUA_RELEASE
  17281. tolua_Error tolua_err;
  17282. if (
  17283. !tolua_isusertype(tolua_S,1,"TerrainPatch",0,&tolua_err) ||
  17284. !tolua_isusertype(tolua_S,2,"Terrain",0,&tolua_err) ||
  17285. !tolua_isnoobj(tolua_S,3,&tolua_err)
  17286. )
  17287. goto tolua_lerror;
  17288. else
  17289. #endif
  17290. {
  17291. TerrainPatch* self = (TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17292. Terrain* terrain = ((Terrain*) tolua_tousertype(tolua_S,2,0));
  17293. #ifndef TOLUA_RELEASE
  17294. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOwner'", NULL);
  17295. #endif
  17296. {
  17297. self->SetOwner(terrain);
  17298. }
  17299. }
  17300. return 0;
  17301. #ifndef TOLUA_RELEASE
  17302. tolua_lerror:
  17303. tolua_error(tolua_S,"#ferror in function 'SetOwner'.",&tolua_err);
  17304. return 0;
  17305. #endif
  17306. }
  17307. #endif //#ifndef TOLUA_DISABLE
  17308. /* method: SetNeighbors of class TerrainPatch */
  17309. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_SetNeighbors00
  17310. static int tolua_Graphics_TerrainPatch_SetNeighbors00(lua_State* tolua_S)
  17311. {
  17312. #ifndef TOLUA_RELEASE
  17313. tolua_Error tolua_err;
  17314. if (
  17315. !tolua_isusertype(tolua_S,1,"TerrainPatch",0,&tolua_err) ||
  17316. !tolua_isusertype(tolua_S,2,"TerrainPatch",0,&tolua_err) ||
  17317. !tolua_isusertype(tolua_S,3,"TerrainPatch",0,&tolua_err) ||
  17318. !tolua_isusertype(tolua_S,4,"TerrainPatch",0,&tolua_err) ||
  17319. !tolua_isusertype(tolua_S,5,"TerrainPatch",0,&tolua_err) ||
  17320. !tolua_isnoobj(tolua_S,6,&tolua_err)
  17321. )
  17322. goto tolua_lerror;
  17323. else
  17324. #endif
  17325. {
  17326. TerrainPatch* self = (TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17327. TerrainPatch* north = ((TerrainPatch*) tolua_tousertype(tolua_S,2,0));
  17328. TerrainPatch* south = ((TerrainPatch*) tolua_tousertype(tolua_S,3,0));
  17329. TerrainPatch* west = ((TerrainPatch*) tolua_tousertype(tolua_S,4,0));
  17330. TerrainPatch* east = ((TerrainPatch*) tolua_tousertype(tolua_S,5,0));
  17331. #ifndef TOLUA_RELEASE
  17332. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetNeighbors'", NULL);
  17333. #endif
  17334. {
  17335. self->SetNeighbors(north,south,west,east);
  17336. }
  17337. }
  17338. return 0;
  17339. #ifndef TOLUA_RELEASE
  17340. tolua_lerror:
  17341. tolua_error(tolua_S,"#ferror in function 'SetNeighbors'.",&tolua_err);
  17342. return 0;
  17343. #endif
  17344. }
  17345. #endif //#ifndef TOLUA_DISABLE
  17346. /* method: SetMaterial of class TerrainPatch */
  17347. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_SetMaterial00
  17348. static int tolua_Graphics_TerrainPatch_SetMaterial00(lua_State* tolua_S)
  17349. {
  17350. #ifndef TOLUA_RELEASE
  17351. tolua_Error tolua_err;
  17352. if (
  17353. !tolua_isusertype(tolua_S,1,"TerrainPatch",0,&tolua_err) ||
  17354. !tolua_isusertype(tolua_S,2,"Material",0,&tolua_err) ||
  17355. !tolua_isnoobj(tolua_S,3,&tolua_err)
  17356. )
  17357. goto tolua_lerror;
  17358. else
  17359. #endif
  17360. {
  17361. TerrainPatch* self = (TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17362. Material* material = ((Material*) tolua_tousertype(tolua_S,2,0));
  17363. #ifndef TOLUA_RELEASE
  17364. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaterial'", NULL);
  17365. #endif
  17366. {
  17367. self->SetMaterial(material);
  17368. }
  17369. }
  17370. return 0;
  17371. #ifndef TOLUA_RELEASE
  17372. tolua_lerror:
  17373. tolua_error(tolua_S,"#ferror in function 'SetMaterial'.",&tolua_err);
  17374. return 0;
  17375. #endif
  17376. }
  17377. #endif //#ifndef TOLUA_DISABLE
  17378. /* method: SetBoundingBox of class TerrainPatch */
  17379. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_SetBoundingBox00
  17380. static int tolua_Graphics_TerrainPatch_SetBoundingBox00(lua_State* tolua_S)
  17381. {
  17382. #ifndef TOLUA_RELEASE
  17383. tolua_Error tolua_err;
  17384. if (
  17385. !tolua_isusertype(tolua_S,1,"TerrainPatch",0,&tolua_err) ||
  17386. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const BoundingBox",0,&tolua_err)) ||
  17387. !tolua_isnoobj(tolua_S,3,&tolua_err)
  17388. )
  17389. goto tolua_lerror;
  17390. else
  17391. #endif
  17392. {
  17393. TerrainPatch* self = (TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17394. const BoundingBox* box = ((const BoundingBox*) tolua_tousertype(tolua_S,2,0));
  17395. #ifndef TOLUA_RELEASE
  17396. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetBoundingBox'", NULL);
  17397. #endif
  17398. {
  17399. self->SetBoundingBox(*box);
  17400. }
  17401. }
  17402. return 0;
  17403. #ifndef TOLUA_RELEASE
  17404. tolua_lerror:
  17405. tolua_error(tolua_S,"#ferror in function 'SetBoundingBox'.",&tolua_err);
  17406. return 0;
  17407. #endif
  17408. }
  17409. #endif //#ifndef TOLUA_DISABLE
  17410. /* method: SetCoordinates of class TerrainPatch */
  17411. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_SetCoordinates00
  17412. static int tolua_Graphics_TerrainPatch_SetCoordinates00(lua_State* tolua_S)
  17413. {
  17414. #ifndef TOLUA_RELEASE
  17415. tolua_Error tolua_err;
  17416. if (
  17417. !tolua_isusertype(tolua_S,1,"TerrainPatch",0,&tolua_err) ||
  17418. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  17419. !tolua_isnoobj(tolua_S,3,&tolua_err)
  17420. )
  17421. goto tolua_lerror;
  17422. else
  17423. #endif
  17424. {
  17425. TerrainPatch* self = (TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17426. const IntVector2* coordinates = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  17427. #ifndef TOLUA_RELEASE
  17428. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetCoordinates'", NULL);
  17429. #endif
  17430. {
  17431. self->SetCoordinates(*coordinates);
  17432. }
  17433. }
  17434. return 0;
  17435. #ifndef TOLUA_RELEASE
  17436. tolua_lerror:
  17437. tolua_error(tolua_S,"#ferror in function 'SetCoordinates'.",&tolua_err);
  17438. return 0;
  17439. #endif
  17440. }
  17441. #endif //#ifndef TOLUA_DISABLE
  17442. /* method: SetOcclusionOffset of class TerrainPatch */
  17443. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_SetOcclusionOffset00
  17444. static int tolua_Graphics_TerrainPatch_SetOcclusionOffset00(lua_State* tolua_S)
  17445. {
  17446. #ifndef TOLUA_RELEASE
  17447. tolua_Error tolua_err;
  17448. if (
  17449. !tolua_isusertype(tolua_S,1,"TerrainPatch",0,&tolua_err) ||
  17450. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  17451. !tolua_isnoobj(tolua_S,3,&tolua_err)
  17452. )
  17453. goto tolua_lerror;
  17454. else
  17455. #endif
  17456. {
  17457. TerrainPatch* self = (TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17458. float offset = ((float) tolua_tonumber(tolua_S,2,0));
  17459. #ifndef TOLUA_RELEASE
  17460. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOcclusionOffset'", NULL);
  17461. #endif
  17462. {
  17463. self->SetOcclusionOffset(offset);
  17464. }
  17465. }
  17466. return 0;
  17467. #ifndef TOLUA_RELEASE
  17468. tolua_lerror:
  17469. tolua_error(tolua_S,"#ferror in function 'SetOcclusionOffset'.",&tolua_err);
  17470. return 0;
  17471. #endif
  17472. }
  17473. #endif //#ifndef TOLUA_DISABLE
  17474. /* method: ResetLod of class TerrainPatch */
  17475. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_ResetLod00
  17476. static int tolua_Graphics_TerrainPatch_ResetLod00(lua_State* tolua_S)
  17477. {
  17478. #ifndef TOLUA_RELEASE
  17479. tolua_Error tolua_err;
  17480. if (
  17481. !tolua_isusertype(tolua_S,1,"TerrainPatch",0,&tolua_err) ||
  17482. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17483. )
  17484. goto tolua_lerror;
  17485. else
  17486. #endif
  17487. {
  17488. TerrainPatch* self = (TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17489. #ifndef TOLUA_RELEASE
  17490. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ResetLod'", NULL);
  17491. #endif
  17492. {
  17493. self->ResetLod();
  17494. }
  17495. }
  17496. return 0;
  17497. #ifndef TOLUA_RELEASE
  17498. tolua_lerror:
  17499. tolua_error(tolua_S,"#ferror in function 'ResetLod'.",&tolua_err);
  17500. return 0;
  17501. #endif
  17502. }
  17503. #endif //#ifndef TOLUA_DISABLE
  17504. /* method: GetGeometry of class TerrainPatch */
  17505. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetGeometry00
  17506. static int tolua_Graphics_TerrainPatch_GetGeometry00(lua_State* tolua_S)
  17507. {
  17508. #ifndef TOLUA_RELEASE
  17509. tolua_Error tolua_err;
  17510. if (
  17511. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17512. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17513. )
  17514. goto tolua_lerror;
  17515. else
  17516. #endif
  17517. {
  17518. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17519. #ifndef TOLUA_RELEASE
  17520. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetGeometry'", NULL);
  17521. #endif
  17522. {
  17523. Geometry* tolua_ret = (Geometry*) self->GetGeometry();
  17524. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Geometry");
  17525. }
  17526. }
  17527. return 1;
  17528. #ifndef TOLUA_RELEASE
  17529. tolua_lerror:
  17530. tolua_error(tolua_S,"#ferror in function 'GetGeometry'.",&tolua_err);
  17531. return 0;
  17532. #endif
  17533. }
  17534. #endif //#ifndef TOLUA_DISABLE
  17535. /* method: GetMaxLodGeometry of class TerrainPatch */
  17536. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetMaxLodGeometry00
  17537. static int tolua_Graphics_TerrainPatch_GetMaxLodGeometry00(lua_State* tolua_S)
  17538. {
  17539. #ifndef TOLUA_RELEASE
  17540. tolua_Error tolua_err;
  17541. if (
  17542. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17543. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17544. )
  17545. goto tolua_lerror;
  17546. else
  17547. #endif
  17548. {
  17549. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17550. #ifndef TOLUA_RELEASE
  17551. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxLodGeometry'", NULL);
  17552. #endif
  17553. {
  17554. Geometry* tolua_ret = (Geometry*) self->GetMaxLodGeometry();
  17555. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Geometry");
  17556. }
  17557. }
  17558. return 1;
  17559. #ifndef TOLUA_RELEASE
  17560. tolua_lerror:
  17561. tolua_error(tolua_S,"#ferror in function 'GetMaxLodGeometry'.",&tolua_err);
  17562. return 0;
  17563. #endif
  17564. }
  17565. #endif //#ifndef TOLUA_DISABLE
  17566. /* method: GetMinLodGeometry of class TerrainPatch */
  17567. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetMinLodGeometry00
  17568. static int tolua_Graphics_TerrainPatch_GetMinLodGeometry00(lua_State* tolua_S)
  17569. {
  17570. #ifndef TOLUA_RELEASE
  17571. tolua_Error tolua_err;
  17572. if (
  17573. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17574. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17575. )
  17576. goto tolua_lerror;
  17577. else
  17578. #endif
  17579. {
  17580. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17581. #ifndef TOLUA_RELEASE
  17582. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinLodGeometry'", NULL);
  17583. #endif
  17584. {
  17585. Geometry* tolua_ret = (Geometry*) self->GetMinLodGeometry();
  17586. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Geometry");
  17587. }
  17588. }
  17589. return 1;
  17590. #ifndef TOLUA_RELEASE
  17591. tolua_lerror:
  17592. tolua_error(tolua_S,"#ferror in function 'GetMinLodGeometry'.",&tolua_err);
  17593. return 0;
  17594. #endif
  17595. }
  17596. #endif //#ifndef TOLUA_DISABLE
  17597. /* method: GetVertexBuffer of class TerrainPatch */
  17598. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetVertexBuffer00
  17599. static int tolua_Graphics_TerrainPatch_GetVertexBuffer00(lua_State* tolua_S)
  17600. {
  17601. #ifndef TOLUA_RELEASE
  17602. tolua_Error tolua_err;
  17603. if (
  17604. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17605. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17606. )
  17607. goto tolua_lerror;
  17608. else
  17609. #endif
  17610. {
  17611. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17612. #ifndef TOLUA_RELEASE
  17613. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetVertexBuffer'", NULL);
  17614. #endif
  17615. {
  17616. VertexBuffer* tolua_ret = (VertexBuffer*) self->GetVertexBuffer();
  17617. tolua_pushusertype(tolua_S,(void*)tolua_ret,"VertexBuffer");
  17618. }
  17619. }
  17620. return 1;
  17621. #ifndef TOLUA_RELEASE
  17622. tolua_lerror:
  17623. tolua_error(tolua_S,"#ferror in function 'GetVertexBuffer'.",&tolua_err);
  17624. return 0;
  17625. #endif
  17626. }
  17627. #endif //#ifndef TOLUA_DISABLE
  17628. /* method: GetOwner of class TerrainPatch */
  17629. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetOwner00
  17630. static int tolua_Graphics_TerrainPatch_GetOwner00(lua_State* tolua_S)
  17631. {
  17632. #ifndef TOLUA_RELEASE
  17633. tolua_Error tolua_err;
  17634. if (
  17635. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17636. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17637. )
  17638. goto tolua_lerror;
  17639. else
  17640. #endif
  17641. {
  17642. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17643. #ifndef TOLUA_RELEASE
  17644. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOwner'", NULL);
  17645. #endif
  17646. {
  17647. Terrain* tolua_ret = (Terrain*) self->GetOwner();
  17648. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Terrain");
  17649. }
  17650. }
  17651. return 1;
  17652. #ifndef TOLUA_RELEASE
  17653. tolua_lerror:
  17654. tolua_error(tolua_S,"#ferror in function 'GetOwner'.",&tolua_err);
  17655. return 0;
  17656. #endif
  17657. }
  17658. #endif //#ifndef TOLUA_DISABLE
  17659. /* method: GetNorthPatch of class TerrainPatch */
  17660. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetNorthPatch00
  17661. static int tolua_Graphics_TerrainPatch_GetNorthPatch00(lua_State* tolua_S)
  17662. {
  17663. #ifndef TOLUA_RELEASE
  17664. tolua_Error tolua_err;
  17665. if (
  17666. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17667. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17668. )
  17669. goto tolua_lerror;
  17670. else
  17671. #endif
  17672. {
  17673. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17674. #ifndef TOLUA_RELEASE
  17675. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNorthPatch'", NULL);
  17676. #endif
  17677. {
  17678. TerrainPatch* tolua_ret = (TerrainPatch*) self->GetNorthPatch();
  17679. tolua_pushusertype(tolua_S,(void*)tolua_ret,"TerrainPatch");
  17680. }
  17681. }
  17682. return 1;
  17683. #ifndef TOLUA_RELEASE
  17684. tolua_lerror:
  17685. tolua_error(tolua_S,"#ferror in function 'GetNorthPatch'.",&tolua_err);
  17686. return 0;
  17687. #endif
  17688. }
  17689. #endif //#ifndef TOLUA_DISABLE
  17690. /* method: GetSouthPatch of class TerrainPatch */
  17691. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetSouthPatch00
  17692. static int tolua_Graphics_TerrainPatch_GetSouthPatch00(lua_State* tolua_S)
  17693. {
  17694. #ifndef TOLUA_RELEASE
  17695. tolua_Error tolua_err;
  17696. if (
  17697. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17698. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17699. )
  17700. goto tolua_lerror;
  17701. else
  17702. #endif
  17703. {
  17704. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17705. #ifndef TOLUA_RELEASE
  17706. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSouthPatch'", NULL);
  17707. #endif
  17708. {
  17709. TerrainPatch* tolua_ret = (TerrainPatch*) self->GetSouthPatch();
  17710. tolua_pushusertype(tolua_S,(void*)tolua_ret,"TerrainPatch");
  17711. }
  17712. }
  17713. return 1;
  17714. #ifndef TOLUA_RELEASE
  17715. tolua_lerror:
  17716. tolua_error(tolua_S,"#ferror in function 'GetSouthPatch'.",&tolua_err);
  17717. return 0;
  17718. #endif
  17719. }
  17720. #endif //#ifndef TOLUA_DISABLE
  17721. /* method: GetWestPatch of class TerrainPatch */
  17722. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetWestPatch00
  17723. static int tolua_Graphics_TerrainPatch_GetWestPatch00(lua_State* tolua_S)
  17724. {
  17725. #ifndef TOLUA_RELEASE
  17726. tolua_Error tolua_err;
  17727. if (
  17728. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17729. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17730. )
  17731. goto tolua_lerror;
  17732. else
  17733. #endif
  17734. {
  17735. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17736. #ifndef TOLUA_RELEASE
  17737. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWestPatch'", NULL);
  17738. #endif
  17739. {
  17740. TerrainPatch* tolua_ret = (TerrainPatch*) self->GetWestPatch();
  17741. tolua_pushusertype(tolua_S,(void*)tolua_ret,"TerrainPatch");
  17742. }
  17743. }
  17744. return 1;
  17745. #ifndef TOLUA_RELEASE
  17746. tolua_lerror:
  17747. tolua_error(tolua_S,"#ferror in function 'GetWestPatch'.",&tolua_err);
  17748. return 0;
  17749. #endif
  17750. }
  17751. #endif //#ifndef TOLUA_DISABLE
  17752. /* method: GetEastPatch of class TerrainPatch */
  17753. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetEastPatch00
  17754. static int tolua_Graphics_TerrainPatch_GetEastPatch00(lua_State* tolua_S)
  17755. {
  17756. #ifndef TOLUA_RELEASE
  17757. tolua_Error tolua_err;
  17758. if (
  17759. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17760. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17761. )
  17762. goto tolua_lerror;
  17763. else
  17764. #endif
  17765. {
  17766. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17767. #ifndef TOLUA_RELEASE
  17768. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetEastPatch'", NULL);
  17769. #endif
  17770. {
  17771. TerrainPatch* tolua_ret = (TerrainPatch*) self->GetEastPatch();
  17772. tolua_pushusertype(tolua_S,(void*)tolua_ret,"TerrainPatch");
  17773. }
  17774. }
  17775. return 1;
  17776. #ifndef TOLUA_RELEASE
  17777. tolua_lerror:
  17778. tolua_error(tolua_S,"#ferror in function 'GetEastPatch'.",&tolua_err);
  17779. return 0;
  17780. #endif
  17781. }
  17782. #endif //#ifndef TOLUA_DISABLE
  17783. /* method: GetBoundingBox of class TerrainPatch */
  17784. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetBoundingBox00
  17785. static int tolua_Graphics_TerrainPatch_GetBoundingBox00(lua_State* tolua_S)
  17786. {
  17787. #ifndef TOLUA_RELEASE
  17788. tolua_Error tolua_err;
  17789. if (
  17790. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17791. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17792. )
  17793. goto tolua_lerror;
  17794. else
  17795. #endif
  17796. {
  17797. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17798. #ifndef TOLUA_RELEASE
  17799. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBoundingBox'", NULL);
  17800. #endif
  17801. {
  17802. const BoundingBox& tolua_ret = (const BoundingBox&) self->GetBoundingBox();
  17803. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const BoundingBox");
  17804. }
  17805. }
  17806. return 1;
  17807. #ifndef TOLUA_RELEASE
  17808. tolua_lerror:
  17809. tolua_error(tolua_S,"#ferror in function 'GetBoundingBox'.",&tolua_err);
  17810. return 0;
  17811. #endif
  17812. }
  17813. #endif //#ifndef TOLUA_DISABLE
  17814. /* method: GetCoordinates of class TerrainPatch */
  17815. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetCoordinates00
  17816. static int tolua_Graphics_TerrainPatch_GetCoordinates00(lua_State* tolua_S)
  17817. {
  17818. #ifndef TOLUA_RELEASE
  17819. tolua_Error tolua_err;
  17820. if (
  17821. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17822. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17823. )
  17824. goto tolua_lerror;
  17825. else
  17826. #endif
  17827. {
  17828. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17829. #ifndef TOLUA_RELEASE
  17830. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCoordinates'", NULL);
  17831. #endif
  17832. {
  17833. const IntVector2& tolua_ret = (const IntVector2&) self->GetCoordinates();
  17834. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  17835. }
  17836. }
  17837. return 1;
  17838. #ifndef TOLUA_RELEASE
  17839. tolua_lerror:
  17840. tolua_error(tolua_S,"#ferror in function 'GetCoordinates'.",&tolua_err);
  17841. return 0;
  17842. #endif
  17843. }
  17844. #endif //#ifndef TOLUA_DISABLE
  17845. /* method: GetLodLevel of class TerrainPatch */
  17846. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetLodLevel00
  17847. static int tolua_Graphics_TerrainPatch_GetLodLevel00(lua_State* tolua_S)
  17848. {
  17849. #ifndef TOLUA_RELEASE
  17850. tolua_Error tolua_err;
  17851. if (
  17852. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17853. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17854. )
  17855. goto tolua_lerror;
  17856. else
  17857. #endif
  17858. {
  17859. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17860. #ifndef TOLUA_RELEASE
  17861. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLodLevel'", NULL);
  17862. #endif
  17863. {
  17864. unsigned tolua_ret = (unsigned) self->GetLodLevel();
  17865. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  17866. }
  17867. }
  17868. return 1;
  17869. #ifndef TOLUA_RELEASE
  17870. tolua_lerror:
  17871. tolua_error(tolua_S,"#ferror in function 'GetLodLevel'.",&tolua_err);
  17872. return 0;
  17873. #endif
  17874. }
  17875. #endif //#ifndef TOLUA_DISABLE
  17876. /* method: GetOcclusionOffset of class TerrainPatch */
  17877. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetOcclusionOffset00
  17878. static int tolua_Graphics_TerrainPatch_GetOcclusionOffset00(lua_State* tolua_S)
  17879. {
  17880. #ifndef TOLUA_RELEASE
  17881. tolua_Error tolua_err;
  17882. if (
  17883. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17884. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17885. )
  17886. goto tolua_lerror;
  17887. else
  17888. #endif
  17889. {
  17890. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17891. #ifndef TOLUA_RELEASE
  17892. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOcclusionOffset'", NULL);
  17893. #endif
  17894. {
  17895. float tolua_ret = (float) self->GetOcclusionOffset();
  17896. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  17897. }
  17898. }
  17899. return 1;
  17900. #ifndef TOLUA_RELEASE
  17901. tolua_lerror:
  17902. tolua_error(tolua_S,"#ferror in function 'GetOcclusionOffset'.",&tolua_err);
  17903. return 0;
  17904. #endif
  17905. }
  17906. #endif //#ifndef TOLUA_DISABLE
  17907. /* method: GetOcclusionOffset of class TerrainPatch */
  17908. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetOcclusionOffset01
  17909. static int tolua_Graphics_TerrainPatch_GetOcclusionOffset01(lua_State* tolua_S)
  17910. {
  17911. tolua_Error tolua_err;
  17912. if (
  17913. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17914. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17915. )
  17916. goto tolua_lerror;
  17917. else
  17918. {
  17919. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17920. #ifndef TOLUA_RELEASE
  17921. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOcclusionOffset'", NULL);
  17922. #endif
  17923. {
  17924. float tolua_ret = (float) self->GetOcclusionOffset();
  17925. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  17926. }
  17927. }
  17928. return 1;
  17929. tolua_lerror:
  17930. return tolua_Graphics_TerrainPatch_GetOcclusionOffset00(tolua_S);
  17931. }
  17932. #endif //#ifndef TOLUA_DISABLE
  17933. /* method: SetNumLevels of class Texture */
  17934. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_SetNumLevels00
  17935. static int tolua_Graphics_Texture_SetNumLevels00(lua_State* tolua_S)
  17936. {
  17937. #ifndef TOLUA_RELEASE
  17938. tolua_Error tolua_err;
  17939. if (
  17940. !tolua_isusertype(tolua_S,1,"Texture",0,&tolua_err) ||
  17941. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  17942. !tolua_isnoobj(tolua_S,3,&tolua_err)
  17943. )
  17944. goto tolua_lerror;
  17945. else
  17946. #endif
  17947. {
  17948. Texture* self = (Texture*) tolua_tousertype(tolua_S,1,0);
  17949. unsigned levels = ((unsigned) tolua_tonumber(tolua_S,2,0));
  17950. #ifndef TOLUA_RELEASE
  17951. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetNumLevels'", NULL);
  17952. #endif
  17953. {
  17954. self->SetNumLevels(levels);
  17955. }
  17956. }
  17957. return 0;
  17958. #ifndef TOLUA_RELEASE
  17959. tolua_lerror:
  17960. tolua_error(tolua_S,"#ferror in function 'SetNumLevels'.",&tolua_err);
  17961. return 0;
  17962. #endif
  17963. }
  17964. #endif //#ifndef TOLUA_DISABLE
  17965. /* method: SetFilterMode of class Texture */
  17966. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_SetFilterMode00
  17967. static int tolua_Graphics_Texture_SetFilterMode00(lua_State* tolua_S)
  17968. {
  17969. #ifndef TOLUA_RELEASE
  17970. tolua_Error tolua_err;
  17971. if (
  17972. !tolua_isusertype(tolua_S,1,"Texture",0,&tolua_err) ||
  17973. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  17974. !tolua_isnoobj(tolua_S,3,&tolua_err)
  17975. )
  17976. goto tolua_lerror;
  17977. else
  17978. #endif
  17979. {
  17980. Texture* self = (Texture*) tolua_tousertype(tolua_S,1,0);
  17981. TextureFilterMode filter = ((TextureFilterMode) (int) tolua_tonumber(tolua_S,2,0));
  17982. #ifndef TOLUA_RELEASE
  17983. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFilterMode'", NULL);
  17984. #endif
  17985. {
  17986. self->SetFilterMode(filter);
  17987. }
  17988. }
  17989. return 0;
  17990. #ifndef TOLUA_RELEASE
  17991. tolua_lerror:
  17992. tolua_error(tolua_S,"#ferror in function 'SetFilterMode'.",&tolua_err);
  17993. return 0;
  17994. #endif
  17995. }
  17996. #endif //#ifndef TOLUA_DISABLE
  17997. /* method: SetAddressMode of class Texture */
  17998. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_SetAddressMode00
  17999. static int tolua_Graphics_Texture_SetAddressMode00(lua_State* tolua_S)
  18000. {
  18001. #ifndef TOLUA_RELEASE
  18002. tolua_Error tolua_err;
  18003. if (
  18004. !tolua_isusertype(tolua_S,1,"Texture",0,&tolua_err) ||
  18005. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  18006. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  18007. !tolua_isnoobj(tolua_S,4,&tolua_err)
  18008. )
  18009. goto tolua_lerror;
  18010. else
  18011. #endif
  18012. {
  18013. Texture* self = (Texture*) tolua_tousertype(tolua_S,1,0);
  18014. TextureCoordinate coord = ((TextureCoordinate) (int) tolua_tonumber(tolua_S,2,0));
  18015. TextureAddressMode address = ((TextureAddressMode) (int) tolua_tonumber(tolua_S,3,0));
  18016. #ifndef TOLUA_RELEASE
  18017. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAddressMode'", NULL);
  18018. #endif
  18019. {
  18020. self->SetAddressMode(coord,address);
  18021. }
  18022. }
  18023. return 0;
  18024. #ifndef TOLUA_RELEASE
  18025. tolua_lerror:
  18026. tolua_error(tolua_S,"#ferror in function 'SetAddressMode'.",&tolua_err);
  18027. return 0;
  18028. #endif
  18029. }
  18030. #endif //#ifndef TOLUA_DISABLE
  18031. /* method: SetBorderColor of class Texture */
  18032. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_SetBorderColor00
  18033. static int tolua_Graphics_Texture_SetBorderColor00(lua_State* tolua_S)
  18034. {
  18035. #ifndef TOLUA_RELEASE
  18036. tolua_Error tolua_err;
  18037. if (
  18038. !tolua_isusertype(tolua_S,1,"Texture",0,&tolua_err) ||
  18039. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  18040. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18041. )
  18042. goto tolua_lerror;
  18043. else
  18044. #endif
  18045. {
  18046. Texture* self = (Texture*) tolua_tousertype(tolua_S,1,0);
  18047. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  18048. #ifndef TOLUA_RELEASE
  18049. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetBorderColor'", NULL);
  18050. #endif
  18051. {
  18052. self->SetBorderColor(*color);
  18053. }
  18054. }
  18055. return 0;
  18056. #ifndef TOLUA_RELEASE
  18057. tolua_lerror:
  18058. tolua_error(tolua_S,"#ferror in function 'SetBorderColor'.",&tolua_err);
  18059. return 0;
  18060. #endif
  18061. }
  18062. #endif //#ifndef TOLUA_DISABLE
  18063. /* method: SetSRGB of class Texture */
  18064. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_SetSRGB00
  18065. static int tolua_Graphics_Texture_SetSRGB00(lua_State* tolua_S)
  18066. {
  18067. #ifndef TOLUA_RELEASE
  18068. tolua_Error tolua_err;
  18069. if (
  18070. !tolua_isusertype(tolua_S,1,"Texture",0,&tolua_err) ||
  18071. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  18072. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18073. )
  18074. goto tolua_lerror;
  18075. else
  18076. #endif
  18077. {
  18078. Texture* self = (Texture*) tolua_tousertype(tolua_S,1,0);
  18079. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  18080. #ifndef TOLUA_RELEASE
  18081. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSRGB'", NULL);
  18082. #endif
  18083. {
  18084. self->SetSRGB(enable);
  18085. }
  18086. }
  18087. return 0;
  18088. #ifndef TOLUA_RELEASE
  18089. tolua_lerror:
  18090. tolua_error(tolua_S,"#ferror in function 'SetSRGB'.",&tolua_err);
  18091. return 0;
  18092. #endif
  18093. }
  18094. #endif //#ifndef TOLUA_DISABLE
  18095. /* method: SetBackupTexture of class Texture */
  18096. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_SetBackupTexture00
  18097. static int tolua_Graphics_Texture_SetBackupTexture00(lua_State* tolua_S)
  18098. {
  18099. #ifndef TOLUA_RELEASE
  18100. tolua_Error tolua_err;
  18101. if (
  18102. !tolua_isusertype(tolua_S,1,"Texture",0,&tolua_err) ||
  18103. !tolua_isusertype(tolua_S,2,"Texture",0,&tolua_err) ||
  18104. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18105. )
  18106. goto tolua_lerror;
  18107. else
  18108. #endif
  18109. {
  18110. Texture* self = (Texture*) tolua_tousertype(tolua_S,1,0);
  18111. Texture* texture = ((Texture*) tolua_tousertype(tolua_S,2,0));
  18112. #ifndef TOLUA_RELEASE
  18113. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetBackupTexture'", NULL);
  18114. #endif
  18115. {
  18116. self->SetBackupTexture(texture);
  18117. }
  18118. }
  18119. return 0;
  18120. #ifndef TOLUA_RELEASE
  18121. tolua_lerror:
  18122. tolua_error(tolua_S,"#ferror in function 'SetBackupTexture'.",&tolua_err);
  18123. return 0;
  18124. #endif
  18125. }
  18126. #endif //#ifndef TOLUA_DISABLE
  18127. /* method: GetFormat of class Texture */
  18128. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetFormat00
  18129. static int tolua_Graphics_Texture_GetFormat00(lua_State* tolua_S)
  18130. {
  18131. #ifndef TOLUA_RELEASE
  18132. tolua_Error tolua_err;
  18133. if (
  18134. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  18135. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18136. )
  18137. goto tolua_lerror;
  18138. else
  18139. #endif
  18140. {
  18141. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  18142. #ifndef TOLUA_RELEASE
  18143. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFormat'", NULL);
  18144. #endif
  18145. {
  18146. unsigned tolua_ret = (unsigned) self->GetFormat();
  18147. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  18148. }
  18149. }
  18150. return 1;
  18151. #ifndef TOLUA_RELEASE
  18152. tolua_lerror:
  18153. tolua_error(tolua_S,"#ferror in function 'GetFormat'.",&tolua_err);
  18154. return 0;
  18155. #endif
  18156. }
  18157. #endif //#ifndef TOLUA_DISABLE
  18158. /* method: IsCompressed of class Texture */
  18159. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_IsCompressed00
  18160. static int tolua_Graphics_Texture_IsCompressed00(lua_State* tolua_S)
  18161. {
  18162. #ifndef TOLUA_RELEASE
  18163. tolua_Error tolua_err;
  18164. if (
  18165. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  18166. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18167. )
  18168. goto tolua_lerror;
  18169. else
  18170. #endif
  18171. {
  18172. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  18173. #ifndef TOLUA_RELEASE
  18174. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsCompressed'", NULL);
  18175. #endif
  18176. {
  18177. bool tolua_ret = (bool) self->IsCompressed();
  18178. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  18179. }
  18180. }
  18181. return 1;
  18182. #ifndef TOLUA_RELEASE
  18183. tolua_lerror:
  18184. tolua_error(tolua_S,"#ferror in function 'IsCompressed'.",&tolua_err);
  18185. return 0;
  18186. #endif
  18187. }
  18188. #endif //#ifndef TOLUA_DISABLE
  18189. /* method: GetLevels of class Texture */
  18190. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetLevels00
  18191. static int tolua_Graphics_Texture_GetLevels00(lua_State* tolua_S)
  18192. {
  18193. #ifndef TOLUA_RELEASE
  18194. tolua_Error tolua_err;
  18195. if (
  18196. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  18197. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18198. )
  18199. goto tolua_lerror;
  18200. else
  18201. #endif
  18202. {
  18203. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  18204. #ifndef TOLUA_RELEASE
  18205. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLevels'", NULL);
  18206. #endif
  18207. {
  18208. unsigned tolua_ret = (unsigned) self->GetLevels();
  18209. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  18210. }
  18211. }
  18212. return 1;
  18213. #ifndef TOLUA_RELEASE
  18214. tolua_lerror:
  18215. tolua_error(tolua_S,"#ferror in function 'GetLevels'.",&tolua_err);
  18216. return 0;
  18217. #endif
  18218. }
  18219. #endif //#ifndef TOLUA_DISABLE
  18220. /* method: GetWidth of class Texture */
  18221. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetWidth00
  18222. static int tolua_Graphics_Texture_GetWidth00(lua_State* tolua_S)
  18223. {
  18224. #ifndef TOLUA_RELEASE
  18225. tolua_Error tolua_err;
  18226. if (
  18227. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  18228. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18229. )
  18230. goto tolua_lerror;
  18231. else
  18232. #endif
  18233. {
  18234. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  18235. #ifndef TOLUA_RELEASE
  18236. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWidth'", NULL);
  18237. #endif
  18238. {
  18239. int tolua_ret = (int) self->GetWidth();
  18240. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  18241. }
  18242. }
  18243. return 1;
  18244. #ifndef TOLUA_RELEASE
  18245. tolua_lerror:
  18246. tolua_error(tolua_S,"#ferror in function 'GetWidth'.",&tolua_err);
  18247. return 0;
  18248. #endif
  18249. }
  18250. #endif //#ifndef TOLUA_DISABLE
  18251. /* method: GetHeight of class Texture */
  18252. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetHeight00
  18253. static int tolua_Graphics_Texture_GetHeight00(lua_State* tolua_S)
  18254. {
  18255. #ifndef TOLUA_RELEASE
  18256. tolua_Error tolua_err;
  18257. if (
  18258. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  18259. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18260. )
  18261. goto tolua_lerror;
  18262. else
  18263. #endif
  18264. {
  18265. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  18266. #ifndef TOLUA_RELEASE
  18267. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHeight'", NULL);
  18268. #endif
  18269. {
  18270. int tolua_ret = (int) self->GetHeight();
  18271. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  18272. }
  18273. }
  18274. return 1;
  18275. #ifndef TOLUA_RELEASE
  18276. tolua_lerror:
  18277. tolua_error(tolua_S,"#ferror in function 'GetHeight'.",&tolua_err);
  18278. return 0;
  18279. #endif
  18280. }
  18281. #endif //#ifndef TOLUA_DISABLE
  18282. /* method: GetFilterMode of class Texture */
  18283. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetFilterMode00
  18284. static int tolua_Graphics_Texture_GetFilterMode00(lua_State* tolua_S)
  18285. {
  18286. #ifndef TOLUA_RELEASE
  18287. tolua_Error tolua_err;
  18288. if (
  18289. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  18290. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18291. )
  18292. goto tolua_lerror;
  18293. else
  18294. #endif
  18295. {
  18296. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  18297. #ifndef TOLUA_RELEASE
  18298. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFilterMode'", NULL);
  18299. #endif
  18300. {
  18301. TextureFilterMode tolua_ret = (TextureFilterMode) self->GetFilterMode();
  18302. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  18303. }
  18304. }
  18305. return 1;
  18306. #ifndef TOLUA_RELEASE
  18307. tolua_lerror:
  18308. tolua_error(tolua_S,"#ferror in function 'GetFilterMode'.",&tolua_err);
  18309. return 0;
  18310. #endif
  18311. }
  18312. #endif //#ifndef TOLUA_DISABLE
  18313. /* method: GetAddressMode of class Texture */
  18314. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetAddressMode00
  18315. static int tolua_Graphics_Texture_GetAddressMode00(lua_State* tolua_S)
  18316. {
  18317. #ifndef TOLUA_RELEASE
  18318. tolua_Error tolua_err;
  18319. if (
  18320. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  18321. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  18322. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18323. )
  18324. goto tolua_lerror;
  18325. else
  18326. #endif
  18327. {
  18328. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  18329. TextureCoordinate coord = ((TextureCoordinate) (int) tolua_tonumber(tolua_S,2,0));
  18330. #ifndef TOLUA_RELEASE
  18331. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAddressMode'", NULL);
  18332. #endif
  18333. {
  18334. TextureAddressMode tolua_ret = (TextureAddressMode) self->GetAddressMode(coord);
  18335. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  18336. }
  18337. }
  18338. return 1;
  18339. #ifndef TOLUA_RELEASE
  18340. tolua_lerror:
  18341. tolua_error(tolua_S,"#ferror in function 'GetAddressMode'.",&tolua_err);
  18342. return 0;
  18343. #endif
  18344. }
  18345. #endif //#ifndef TOLUA_DISABLE
  18346. /* method: GetBorderColor of class Texture */
  18347. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetBorderColor00
  18348. static int tolua_Graphics_Texture_GetBorderColor00(lua_State* tolua_S)
  18349. {
  18350. #ifndef TOLUA_RELEASE
  18351. tolua_Error tolua_err;
  18352. if (
  18353. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  18354. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18355. )
  18356. goto tolua_lerror;
  18357. else
  18358. #endif
  18359. {
  18360. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  18361. #ifndef TOLUA_RELEASE
  18362. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBorderColor'", NULL);
  18363. #endif
  18364. {
  18365. const Color& tolua_ret = (const Color&) self->GetBorderColor();
  18366. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  18367. }
  18368. }
  18369. return 1;
  18370. #ifndef TOLUA_RELEASE
  18371. tolua_lerror:
  18372. tolua_error(tolua_S,"#ferror in function 'GetBorderColor'.",&tolua_err);
  18373. return 0;
  18374. #endif
  18375. }
  18376. #endif //#ifndef TOLUA_DISABLE
  18377. /* method: GetSRGB of class Texture */
  18378. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetSRGB00
  18379. static int tolua_Graphics_Texture_GetSRGB00(lua_State* tolua_S)
  18380. {
  18381. #ifndef TOLUA_RELEASE
  18382. tolua_Error tolua_err;
  18383. if (
  18384. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  18385. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18386. )
  18387. goto tolua_lerror;
  18388. else
  18389. #endif
  18390. {
  18391. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  18392. #ifndef TOLUA_RELEASE
  18393. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSRGB'", NULL);
  18394. #endif
  18395. {
  18396. bool tolua_ret = (bool) self->GetSRGB();
  18397. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  18398. }
  18399. }
  18400. return 1;
  18401. #ifndef TOLUA_RELEASE
  18402. tolua_lerror:
  18403. tolua_error(tolua_S,"#ferror in function 'GetSRGB'.",&tolua_err);
  18404. return 0;
  18405. #endif
  18406. }
  18407. #endif //#ifndef TOLUA_DISABLE
  18408. /* method: GetBackupTexture of class Texture */
  18409. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetBackupTexture00
  18410. static int tolua_Graphics_Texture_GetBackupTexture00(lua_State* tolua_S)
  18411. {
  18412. #ifndef TOLUA_RELEASE
  18413. tolua_Error tolua_err;
  18414. if (
  18415. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  18416. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18417. )
  18418. goto tolua_lerror;
  18419. else
  18420. #endif
  18421. {
  18422. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  18423. #ifndef TOLUA_RELEASE
  18424. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBackupTexture'", NULL);
  18425. #endif
  18426. {
  18427. Texture* tolua_ret = (Texture*) self->GetBackupTexture();
  18428. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Texture");
  18429. }
  18430. }
  18431. return 1;
  18432. #ifndef TOLUA_RELEASE
  18433. tolua_lerror:
  18434. tolua_error(tolua_S,"#ferror in function 'GetBackupTexture'.",&tolua_err);
  18435. return 0;
  18436. #endif
  18437. }
  18438. #endif //#ifndef TOLUA_DISABLE
  18439. /* method: GetLevelWidth of class Texture */
  18440. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetLevelWidth00
  18441. static int tolua_Graphics_Texture_GetLevelWidth00(lua_State* tolua_S)
  18442. {
  18443. #ifndef TOLUA_RELEASE
  18444. tolua_Error tolua_err;
  18445. if (
  18446. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  18447. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  18448. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18449. )
  18450. goto tolua_lerror;
  18451. else
  18452. #endif
  18453. {
  18454. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  18455. unsigned level = ((unsigned) tolua_tonumber(tolua_S,2,0));
  18456. #ifndef TOLUA_RELEASE
  18457. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLevelWidth'", NULL);
  18458. #endif
  18459. {
  18460. int tolua_ret = (int) self->GetLevelWidth(level);
  18461. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  18462. }
  18463. }
  18464. return 1;
  18465. #ifndef TOLUA_RELEASE
  18466. tolua_lerror:
  18467. tolua_error(tolua_S,"#ferror in function 'GetLevelWidth'.",&tolua_err);
  18468. return 0;
  18469. #endif
  18470. }
  18471. #endif //#ifndef TOLUA_DISABLE
  18472. /* method: GetLevelHeight of class Texture */
  18473. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetLevelHeight00
  18474. static int tolua_Graphics_Texture_GetLevelHeight00(lua_State* tolua_S)
  18475. {
  18476. #ifndef TOLUA_RELEASE
  18477. tolua_Error tolua_err;
  18478. if (
  18479. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  18480. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  18481. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18482. )
  18483. goto tolua_lerror;
  18484. else
  18485. #endif
  18486. {
  18487. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  18488. unsigned level = ((unsigned) tolua_tonumber(tolua_S,2,0));
  18489. #ifndef TOLUA_RELEASE
  18490. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLevelHeight'", NULL);
  18491. #endif
  18492. {
  18493. int tolua_ret = (int) self->GetLevelHeight(level);
  18494. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  18495. }
  18496. }
  18497. return 1;
  18498. #ifndef TOLUA_RELEASE
  18499. tolua_lerror:
  18500. tolua_error(tolua_S,"#ferror in function 'GetLevelHeight'.",&tolua_err);
  18501. return 0;
  18502. #endif
  18503. }
  18504. #endif //#ifndef TOLUA_DISABLE
  18505. /* method: GetUsage of class Texture */
  18506. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetUsage00
  18507. static int tolua_Graphics_Texture_GetUsage00(lua_State* tolua_S)
  18508. {
  18509. #ifndef TOLUA_RELEASE
  18510. tolua_Error tolua_err;
  18511. if (
  18512. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  18513. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18514. )
  18515. goto tolua_lerror;
  18516. else
  18517. #endif
  18518. {
  18519. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  18520. #ifndef TOLUA_RELEASE
  18521. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetUsage'", NULL);
  18522. #endif
  18523. {
  18524. TextureUsage tolua_ret = (TextureUsage) self->GetUsage();
  18525. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  18526. }
  18527. }
  18528. return 1;
  18529. #ifndef TOLUA_RELEASE
  18530. tolua_lerror:
  18531. tolua_error(tolua_S,"#ferror in function 'GetUsage'.",&tolua_err);
  18532. return 0;
  18533. #endif
  18534. }
  18535. #endif //#ifndef TOLUA_DISABLE
  18536. /* method: GetDataSize of class Texture */
  18537. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetDataSize00
  18538. static int tolua_Graphics_Texture_GetDataSize00(lua_State* tolua_S)
  18539. {
  18540. #ifndef TOLUA_RELEASE
  18541. tolua_Error tolua_err;
  18542. if (
  18543. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  18544. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  18545. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  18546. !tolua_isnoobj(tolua_S,4,&tolua_err)
  18547. )
  18548. goto tolua_lerror;
  18549. else
  18550. #endif
  18551. {
  18552. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  18553. int width = ((int) tolua_tonumber(tolua_S,2,0));
  18554. int height = ((int) tolua_tonumber(tolua_S,3,0));
  18555. #ifndef TOLUA_RELEASE
  18556. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDataSize'", NULL);
  18557. #endif
  18558. {
  18559. unsigned tolua_ret = (unsigned) self->GetDataSize(width,height);
  18560. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  18561. }
  18562. }
  18563. return 1;
  18564. #ifndef TOLUA_RELEASE
  18565. tolua_lerror:
  18566. tolua_error(tolua_S,"#ferror in function 'GetDataSize'.",&tolua_err);
  18567. return 0;
  18568. #endif
  18569. }
  18570. #endif //#ifndef TOLUA_DISABLE
  18571. /* method: GetRowDataSize of class Texture */
  18572. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetRowDataSize00
  18573. static int tolua_Graphics_Texture_GetRowDataSize00(lua_State* tolua_S)
  18574. {
  18575. #ifndef TOLUA_RELEASE
  18576. tolua_Error tolua_err;
  18577. if (
  18578. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  18579. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  18580. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18581. )
  18582. goto tolua_lerror;
  18583. else
  18584. #endif
  18585. {
  18586. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  18587. int width = ((int) tolua_tonumber(tolua_S,2,0));
  18588. #ifndef TOLUA_RELEASE
  18589. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRowDataSize'", NULL);
  18590. #endif
  18591. {
  18592. unsigned tolua_ret = (unsigned) self->GetRowDataSize(width);
  18593. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  18594. }
  18595. }
  18596. return 1;
  18597. #ifndef TOLUA_RELEASE
  18598. tolua_lerror:
  18599. tolua_error(tolua_S,"#ferror in function 'GetRowDataSize'.",&tolua_err);
  18600. return 0;
  18601. #endif
  18602. }
  18603. #endif //#ifndef TOLUA_DISABLE
  18604. /* method: GetRenderSurface of class Texture2D */
  18605. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture2D_GetRenderSurface00
  18606. static int tolua_Graphics_Texture2D_GetRenderSurface00(lua_State* tolua_S)
  18607. {
  18608. #ifndef TOLUA_RELEASE
  18609. tolua_Error tolua_err;
  18610. if (
  18611. !tolua_isusertype(tolua_S,1,"const Texture2D",0,&tolua_err) ||
  18612. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18613. )
  18614. goto tolua_lerror;
  18615. else
  18616. #endif
  18617. {
  18618. const Texture2D* self = (const Texture2D*) tolua_tousertype(tolua_S,1,0);
  18619. #ifndef TOLUA_RELEASE
  18620. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRenderSurface'", NULL);
  18621. #endif
  18622. {
  18623. RenderSurface* tolua_ret = (RenderSurface*) self->GetRenderSurface();
  18624. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RenderSurface");
  18625. }
  18626. }
  18627. return 1;
  18628. #ifndef TOLUA_RELEASE
  18629. tolua_lerror:
  18630. tolua_error(tolua_S,"#ferror in function 'GetRenderSurface'.",&tolua_err);
  18631. return 0;
  18632. #endif
  18633. }
  18634. #endif //#ifndef TOLUA_DISABLE
  18635. /* method: GetRenderSurface of class TextureCube */
  18636. #ifndef TOLUA_DISABLE_tolua_Graphics_TextureCube_GetRenderSurface00
  18637. static int tolua_Graphics_TextureCube_GetRenderSurface00(lua_State* tolua_S)
  18638. {
  18639. #ifndef TOLUA_RELEASE
  18640. tolua_Error tolua_err;
  18641. if (
  18642. !tolua_isusertype(tolua_S,1,"const TextureCube",0,&tolua_err) ||
  18643. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  18644. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18645. )
  18646. goto tolua_lerror;
  18647. else
  18648. #endif
  18649. {
  18650. const TextureCube* self = (const TextureCube*) tolua_tousertype(tolua_S,1,0);
  18651. CubeMapFace face = ((CubeMapFace) (int) tolua_tonumber(tolua_S,2,0));
  18652. #ifndef TOLUA_RELEASE
  18653. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRenderSurface'", NULL);
  18654. #endif
  18655. {
  18656. RenderSurface* tolua_ret = (RenderSurface*) self->GetRenderSurface(face);
  18657. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RenderSurface");
  18658. }
  18659. }
  18660. return 1;
  18661. #ifndef TOLUA_RELEASE
  18662. tolua_lerror:
  18663. tolua_error(tolua_S,"#ferror in function 'GetRenderSurface'.",&tolua_err);
  18664. return 0;
  18665. #endif
  18666. }
  18667. #endif //#ifndef TOLUA_DISABLE
  18668. /* method: SetBoundingBox of class Zone */
  18669. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_SetBoundingBox00
  18670. static int tolua_Graphics_Zone_SetBoundingBox00(lua_State* tolua_S)
  18671. {
  18672. #ifndef TOLUA_RELEASE
  18673. tolua_Error tolua_err;
  18674. if (
  18675. !tolua_isusertype(tolua_S,1,"Zone",0,&tolua_err) ||
  18676. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const BoundingBox",0,&tolua_err)) ||
  18677. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18678. )
  18679. goto tolua_lerror;
  18680. else
  18681. #endif
  18682. {
  18683. Zone* self = (Zone*) tolua_tousertype(tolua_S,1,0);
  18684. const BoundingBox* box = ((const BoundingBox*) tolua_tousertype(tolua_S,2,0));
  18685. #ifndef TOLUA_RELEASE
  18686. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetBoundingBox'", NULL);
  18687. #endif
  18688. {
  18689. self->SetBoundingBox(*box);
  18690. }
  18691. }
  18692. return 0;
  18693. #ifndef TOLUA_RELEASE
  18694. tolua_lerror:
  18695. tolua_error(tolua_S,"#ferror in function 'SetBoundingBox'.",&tolua_err);
  18696. return 0;
  18697. #endif
  18698. }
  18699. #endif //#ifndef TOLUA_DISABLE
  18700. /* method: SetAmbientColor of class Zone */
  18701. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_SetAmbientColor00
  18702. static int tolua_Graphics_Zone_SetAmbientColor00(lua_State* tolua_S)
  18703. {
  18704. #ifndef TOLUA_RELEASE
  18705. tolua_Error tolua_err;
  18706. if (
  18707. !tolua_isusertype(tolua_S,1,"Zone",0,&tolua_err) ||
  18708. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  18709. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18710. )
  18711. goto tolua_lerror;
  18712. else
  18713. #endif
  18714. {
  18715. Zone* self = (Zone*) tolua_tousertype(tolua_S,1,0);
  18716. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  18717. #ifndef TOLUA_RELEASE
  18718. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAmbientColor'", NULL);
  18719. #endif
  18720. {
  18721. self->SetAmbientColor(*color);
  18722. }
  18723. }
  18724. return 0;
  18725. #ifndef TOLUA_RELEASE
  18726. tolua_lerror:
  18727. tolua_error(tolua_S,"#ferror in function 'SetAmbientColor'.",&tolua_err);
  18728. return 0;
  18729. #endif
  18730. }
  18731. #endif //#ifndef TOLUA_DISABLE
  18732. /* method: SetFogColor of class Zone */
  18733. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_SetFogColor00
  18734. static int tolua_Graphics_Zone_SetFogColor00(lua_State* tolua_S)
  18735. {
  18736. #ifndef TOLUA_RELEASE
  18737. tolua_Error tolua_err;
  18738. if (
  18739. !tolua_isusertype(tolua_S,1,"Zone",0,&tolua_err) ||
  18740. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  18741. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18742. )
  18743. goto tolua_lerror;
  18744. else
  18745. #endif
  18746. {
  18747. Zone* self = (Zone*) tolua_tousertype(tolua_S,1,0);
  18748. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  18749. #ifndef TOLUA_RELEASE
  18750. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFogColor'", NULL);
  18751. #endif
  18752. {
  18753. self->SetFogColor(*color);
  18754. }
  18755. }
  18756. return 0;
  18757. #ifndef TOLUA_RELEASE
  18758. tolua_lerror:
  18759. tolua_error(tolua_S,"#ferror in function 'SetFogColor'.",&tolua_err);
  18760. return 0;
  18761. #endif
  18762. }
  18763. #endif //#ifndef TOLUA_DISABLE
  18764. /* method: SetFogStart of class Zone */
  18765. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_SetFogStart00
  18766. static int tolua_Graphics_Zone_SetFogStart00(lua_State* tolua_S)
  18767. {
  18768. #ifndef TOLUA_RELEASE
  18769. tolua_Error tolua_err;
  18770. if (
  18771. !tolua_isusertype(tolua_S,1,"Zone",0,&tolua_err) ||
  18772. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  18773. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18774. )
  18775. goto tolua_lerror;
  18776. else
  18777. #endif
  18778. {
  18779. Zone* self = (Zone*) tolua_tousertype(tolua_S,1,0);
  18780. float start = ((float) tolua_tonumber(tolua_S,2,0));
  18781. #ifndef TOLUA_RELEASE
  18782. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFogStart'", NULL);
  18783. #endif
  18784. {
  18785. self->SetFogStart(start);
  18786. }
  18787. }
  18788. return 0;
  18789. #ifndef TOLUA_RELEASE
  18790. tolua_lerror:
  18791. tolua_error(tolua_S,"#ferror in function 'SetFogStart'.",&tolua_err);
  18792. return 0;
  18793. #endif
  18794. }
  18795. #endif //#ifndef TOLUA_DISABLE
  18796. /* method: SetFogEnd of class Zone */
  18797. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_SetFogEnd00
  18798. static int tolua_Graphics_Zone_SetFogEnd00(lua_State* tolua_S)
  18799. {
  18800. #ifndef TOLUA_RELEASE
  18801. tolua_Error tolua_err;
  18802. if (
  18803. !tolua_isusertype(tolua_S,1,"Zone",0,&tolua_err) ||
  18804. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  18805. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18806. )
  18807. goto tolua_lerror;
  18808. else
  18809. #endif
  18810. {
  18811. Zone* self = (Zone*) tolua_tousertype(tolua_S,1,0);
  18812. float end = ((float) tolua_tonumber(tolua_S,2,0));
  18813. #ifndef TOLUA_RELEASE
  18814. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFogEnd'", NULL);
  18815. #endif
  18816. {
  18817. self->SetFogEnd(end);
  18818. }
  18819. }
  18820. return 0;
  18821. #ifndef TOLUA_RELEASE
  18822. tolua_lerror:
  18823. tolua_error(tolua_S,"#ferror in function 'SetFogEnd'.",&tolua_err);
  18824. return 0;
  18825. #endif
  18826. }
  18827. #endif //#ifndef TOLUA_DISABLE
  18828. /* method: SetPriority of class Zone */
  18829. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_SetPriority00
  18830. static int tolua_Graphics_Zone_SetPriority00(lua_State* tolua_S)
  18831. {
  18832. #ifndef TOLUA_RELEASE
  18833. tolua_Error tolua_err;
  18834. if (
  18835. !tolua_isusertype(tolua_S,1,"Zone",0,&tolua_err) ||
  18836. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  18837. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18838. )
  18839. goto tolua_lerror;
  18840. else
  18841. #endif
  18842. {
  18843. Zone* self = (Zone*) tolua_tousertype(tolua_S,1,0);
  18844. int priority = ((int) tolua_tonumber(tolua_S,2,0));
  18845. #ifndef TOLUA_RELEASE
  18846. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPriority'", NULL);
  18847. #endif
  18848. {
  18849. self->SetPriority(priority);
  18850. }
  18851. }
  18852. return 0;
  18853. #ifndef TOLUA_RELEASE
  18854. tolua_lerror:
  18855. tolua_error(tolua_S,"#ferror in function 'SetPriority'.",&tolua_err);
  18856. return 0;
  18857. #endif
  18858. }
  18859. #endif //#ifndef TOLUA_DISABLE
  18860. /* method: SetOverride of class Zone */
  18861. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_SetOverride00
  18862. static int tolua_Graphics_Zone_SetOverride00(lua_State* tolua_S)
  18863. {
  18864. #ifndef TOLUA_RELEASE
  18865. tolua_Error tolua_err;
  18866. if (
  18867. !tolua_isusertype(tolua_S,1,"Zone",0,&tolua_err) ||
  18868. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  18869. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18870. )
  18871. goto tolua_lerror;
  18872. else
  18873. #endif
  18874. {
  18875. Zone* self = (Zone*) tolua_tousertype(tolua_S,1,0);
  18876. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  18877. #ifndef TOLUA_RELEASE
  18878. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOverride'", NULL);
  18879. #endif
  18880. {
  18881. self->SetOverride(enable);
  18882. }
  18883. }
  18884. return 0;
  18885. #ifndef TOLUA_RELEASE
  18886. tolua_lerror:
  18887. tolua_error(tolua_S,"#ferror in function 'SetOverride'.",&tolua_err);
  18888. return 0;
  18889. #endif
  18890. }
  18891. #endif //#ifndef TOLUA_DISABLE
  18892. /* method: SetAmbientGradient of class Zone */
  18893. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_SetAmbientGradient00
  18894. static int tolua_Graphics_Zone_SetAmbientGradient00(lua_State* tolua_S)
  18895. {
  18896. #ifndef TOLUA_RELEASE
  18897. tolua_Error tolua_err;
  18898. if (
  18899. !tolua_isusertype(tolua_S,1,"Zone",0,&tolua_err) ||
  18900. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  18901. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18902. )
  18903. goto tolua_lerror;
  18904. else
  18905. #endif
  18906. {
  18907. Zone* self = (Zone*) tolua_tousertype(tolua_S,1,0);
  18908. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  18909. #ifndef TOLUA_RELEASE
  18910. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAmbientGradient'", NULL);
  18911. #endif
  18912. {
  18913. self->SetAmbientGradient(enable);
  18914. }
  18915. }
  18916. return 0;
  18917. #ifndef TOLUA_RELEASE
  18918. tolua_lerror:
  18919. tolua_error(tolua_S,"#ferror in function 'SetAmbientGradient'.",&tolua_err);
  18920. return 0;
  18921. #endif
  18922. }
  18923. #endif //#ifndef TOLUA_DISABLE
  18924. /* method: GetBoundingBox of class Zone */
  18925. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_GetBoundingBox00
  18926. static int tolua_Graphics_Zone_GetBoundingBox00(lua_State* tolua_S)
  18927. {
  18928. #ifndef TOLUA_RELEASE
  18929. tolua_Error tolua_err;
  18930. if (
  18931. !tolua_isusertype(tolua_S,1,"const Zone",0,&tolua_err) ||
  18932. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18933. )
  18934. goto tolua_lerror;
  18935. else
  18936. #endif
  18937. {
  18938. const Zone* self = (const Zone*) tolua_tousertype(tolua_S,1,0);
  18939. #ifndef TOLUA_RELEASE
  18940. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBoundingBox'", NULL);
  18941. #endif
  18942. {
  18943. const BoundingBox& tolua_ret = (const BoundingBox&) self->GetBoundingBox();
  18944. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const BoundingBox");
  18945. }
  18946. }
  18947. return 1;
  18948. #ifndef TOLUA_RELEASE
  18949. tolua_lerror:
  18950. tolua_error(tolua_S,"#ferror in function 'GetBoundingBox'.",&tolua_err);
  18951. return 0;
  18952. #endif
  18953. }
  18954. #endif //#ifndef TOLUA_DISABLE
  18955. /* method: GetInverseWorldTransform of class Zone */
  18956. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_GetInverseWorldTransform00
  18957. static int tolua_Graphics_Zone_GetInverseWorldTransform00(lua_State* tolua_S)
  18958. {
  18959. #ifndef TOLUA_RELEASE
  18960. tolua_Error tolua_err;
  18961. if (
  18962. !tolua_isusertype(tolua_S,1,"const Zone",0,&tolua_err) ||
  18963. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18964. )
  18965. goto tolua_lerror;
  18966. else
  18967. #endif
  18968. {
  18969. const Zone* self = (const Zone*) tolua_tousertype(tolua_S,1,0);
  18970. #ifndef TOLUA_RELEASE
  18971. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetInverseWorldTransform'", NULL);
  18972. #endif
  18973. {
  18974. const Matrix3x4& tolua_ret = (const Matrix3x4&) self->GetInverseWorldTransform();
  18975. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Matrix3x4");
  18976. }
  18977. }
  18978. return 1;
  18979. #ifndef TOLUA_RELEASE
  18980. tolua_lerror:
  18981. tolua_error(tolua_S,"#ferror in function 'GetInverseWorldTransform'.",&tolua_err);
  18982. return 0;
  18983. #endif
  18984. }
  18985. #endif //#ifndef TOLUA_DISABLE
  18986. /* method: GetAmbientColor of class Zone */
  18987. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_GetAmbientColor00
  18988. static int tolua_Graphics_Zone_GetAmbientColor00(lua_State* tolua_S)
  18989. {
  18990. #ifndef TOLUA_RELEASE
  18991. tolua_Error tolua_err;
  18992. if (
  18993. !tolua_isusertype(tolua_S,1,"const Zone",0,&tolua_err) ||
  18994. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18995. )
  18996. goto tolua_lerror;
  18997. else
  18998. #endif
  18999. {
  19000. const Zone* self = (const Zone*) tolua_tousertype(tolua_S,1,0);
  19001. #ifndef TOLUA_RELEASE
  19002. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAmbientColor'", NULL);
  19003. #endif
  19004. {
  19005. const Color& tolua_ret = (const Color&) self->GetAmbientColor();
  19006. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  19007. }
  19008. }
  19009. return 1;
  19010. #ifndef TOLUA_RELEASE
  19011. tolua_lerror:
  19012. tolua_error(tolua_S,"#ferror in function 'GetAmbientColor'.",&tolua_err);
  19013. return 0;
  19014. #endif
  19015. }
  19016. #endif //#ifndef TOLUA_DISABLE
  19017. /* method: GetAmbientStartColor of class Zone */
  19018. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_GetAmbientStartColor00
  19019. static int tolua_Graphics_Zone_GetAmbientStartColor00(lua_State* tolua_S)
  19020. {
  19021. #ifndef TOLUA_RELEASE
  19022. tolua_Error tolua_err;
  19023. if (
  19024. !tolua_isusertype(tolua_S,1,"Zone",0,&tolua_err) ||
  19025. !tolua_isnoobj(tolua_S,2,&tolua_err)
  19026. )
  19027. goto tolua_lerror;
  19028. else
  19029. #endif
  19030. {
  19031. Zone* self = (Zone*) tolua_tousertype(tolua_S,1,0);
  19032. #ifndef TOLUA_RELEASE
  19033. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAmbientStartColor'", NULL);
  19034. #endif
  19035. {
  19036. const Color& tolua_ret = (const Color&) self->GetAmbientStartColor();
  19037. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  19038. }
  19039. }
  19040. return 1;
  19041. #ifndef TOLUA_RELEASE
  19042. tolua_lerror:
  19043. tolua_error(tolua_S,"#ferror in function 'GetAmbientStartColor'.",&tolua_err);
  19044. return 0;
  19045. #endif
  19046. }
  19047. #endif //#ifndef TOLUA_DISABLE
  19048. /* method: GetAmbientEndColor of class Zone */
  19049. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_GetAmbientEndColor00
  19050. static int tolua_Graphics_Zone_GetAmbientEndColor00(lua_State* tolua_S)
  19051. {
  19052. #ifndef TOLUA_RELEASE
  19053. tolua_Error tolua_err;
  19054. if (
  19055. !tolua_isusertype(tolua_S,1,"Zone",0,&tolua_err) ||
  19056. !tolua_isnoobj(tolua_S,2,&tolua_err)
  19057. )
  19058. goto tolua_lerror;
  19059. else
  19060. #endif
  19061. {
  19062. Zone* self = (Zone*) tolua_tousertype(tolua_S,1,0);
  19063. #ifndef TOLUA_RELEASE
  19064. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAmbientEndColor'", NULL);
  19065. #endif
  19066. {
  19067. const Color& tolua_ret = (const Color&) self->GetAmbientEndColor();
  19068. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  19069. }
  19070. }
  19071. return 1;
  19072. #ifndef TOLUA_RELEASE
  19073. tolua_lerror:
  19074. tolua_error(tolua_S,"#ferror in function 'GetAmbientEndColor'.",&tolua_err);
  19075. return 0;
  19076. #endif
  19077. }
  19078. #endif //#ifndef TOLUA_DISABLE
  19079. /* method: GetFogColor of class Zone */
  19080. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_GetFogColor00
  19081. static int tolua_Graphics_Zone_GetFogColor00(lua_State* tolua_S)
  19082. {
  19083. #ifndef TOLUA_RELEASE
  19084. tolua_Error tolua_err;
  19085. if (
  19086. !tolua_isusertype(tolua_S,1,"const Zone",0,&tolua_err) ||
  19087. !tolua_isnoobj(tolua_S,2,&tolua_err)
  19088. )
  19089. goto tolua_lerror;
  19090. else
  19091. #endif
  19092. {
  19093. const Zone* self = (const Zone*) tolua_tousertype(tolua_S,1,0);
  19094. #ifndef TOLUA_RELEASE
  19095. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFogColor'", NULL);
  19096. #endif
  19097. {
  19098. const Color& tolua_ret = (const Color&) self->GetFogColor();
  19099. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  19100. }
  19101. }
  19102. return 1;
  19103. #ifndef TOLUA_RELEASE
  19104. tolua_lerror:
  19105. tolua_error(tolua_S,"#ferror in function 'GetFogColor'.",&tolua_err);
  19106. return 0;
  19107. #endif
  19108. }
  19109. #endif //#ifndef TOLUA_DISABLE
  19110. /* method: GetFogStart of class Zone */
  19111. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_GetFogStart00
  19112. static int tolua_Graphics_Zone_GetFogStart00(lua_State* tolua_S)
  19113. {
  19114. #ifndef TOLUA_RELEASE
  19115. tolua_Error tolua_err;
  19116. if (
  19117. !tolua_isusertype(tolua_S,1,"const Zone",0,&tolua_err) ||
  19118. !tolua_isnoobj(tolua_S,2,&tolua_err)
  19119. )
  19120. goto tolua_lerror;
  19121. else
  19122. #endif
  19123. {
  19124. const Zone* self = (const Zone*) tolua_tousertype(tolua_S,1,0);
  19125. #ifndef TOLUA_RELEASE
  19126. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFogStart'", NULL);
  19127. #endif
  19128. {
  19129. float tolua_ret = (float) self->GetFogStart();
  19130. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  19131. }
  19132. }
  19133. return 1;
  19134. #ifndef TOLUA_RELEASE
  19135. tolua_lerror:
  19136. tolua_error(tolua_S,"#ferror in function 'GetFogStart'.",&tolua_err);
  19137. return 0;
  19138. #endif
  19139. }
  19140. #endif //#ifndef TOLUA_DISABLE
  19141. /* method: GetFogEnd of class Zone */
  19142. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_GetFogEnd00
  19143. static int tolua_Graphics_Zone_GetFogEnd00(lua_State* tolua_S)
  19144. {
  19145. #ifndef TOLUA_RELEASE
  19146. tolua_Error tolua_err;
  19147. if (
  19148. !tolua_isusertype(tolua_S,1,"const Zone",0,&tolua_err) ||
  19149. !tolua_isnoobj(tolua_S,2,&tolua_err)
  19150. )
  19151. goto tolua_lerror;
  19152. else
  19153. #endif
  19154. {
  19155. const Zone* self = (const Zone*) tolua_tousertype(tolua_S,1,0);
  19156. #ifndef TOLUA_RELEASE
  19157. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFogEnd'", NULL);
  19158. #endif
  19159. {
  19160. float tolua_ret = (float) self->GetFogEnd();
  19161. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  19162. }
  19163. }
  19164. return 1;
  19165. #ifndef TOLUA_RELEASE
  19166. tolua_lerror:
  19167. tolua_error(tolua_S,"#ferror in function 'GetFogEnd'.",&tolua_err);
  19168. return 0;
  19169. #endif
  19170. }
  19171. #endif //#ifndef TOLUA_DISABLE
  19172. /* method: GetPriority of class Zone */
  19173. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_GetPriority00
  19174. static int tolua_Graphics_Zone_GetPriority00(lua_State* tolua_S)
  19175. {
  19176. #ifndef TOLUA_RELEASE
  19177. tolua_Error tolua_err;
  19178. if (
  19179. !tolua_isusertype(tolua_S,1,"const Zone",0,&tolua_err) ||
  19180. !tolua_isnoobj(tolua_S,2,&tolua_err)
  19181. )
  19182. goto tolua_lerror;
  19183. else
  19184. #endif
  19185. {
  19186. const Zone* self = (const Zone*) tolua_tousertype(tolua_S,1,0);
  19187. #ifndef TOLUA_RELEASE
  19188. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPriority'", NULL);
  19189. #endif
  19190. {
  19191. int tolua_ret = (int) self->GetPriority();
  19192. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  19193. }
  19194. }
  19195. return 1;
  19196. #ifndef TOLUA_RELEASE
  19197. tolua_lerror:
  19198. tolua_error(tolua_S,"#ferror in function 'GetPriority'.",&tolua_err);
  19199. return 0;
  19200. #endif
  19201. }
  19202. #endif //#ifndef TOLUA_DISABLE
  19203. /* method: GetOverride of class Zone */
  19204. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_GetOverride00
  19205. static int tolua_Graphics_Zone_GetOverride00(lua_State* tolua_S)
  19206. {
  19207. #ifndef TOLUA_RELEASE
  19208. tolua_Error tolua_err;
  19209. if (
  19210. !tolua_isusertype(tolua_S,1,"const Zone",0,&tolua_err) ||
  19211. !tolua_isnoobj(tolua_S,2,&tolua_err)
  19212. )
  19213. goto tolua_lerror;
  19214. else
  19215. #endif
  19216. {
  19217. const Zone* self = (const Zone*) tolua_tousertype(tolua_S,1,0);
  19218. #ifndef TOLUA_RELEASE
  19219. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOverride'", NULL);
  19220. #endif
  19221. {
  19222. bool tolua_ret = (bool) self->GetOverride();
  19223. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  19224. }
  19225. }
  19226. return 1;
  19227. #ifndef TOLUA_RELEASE
  19228. tolua_lerror:
  19229. tolua_error(tolua_S,"#ferror in function 'GetOverride'.",&tolua_err);
  19230. return 0;
  19231. #endif
  19232. }
  19233. #endif //#ifndef TOLUA_DISABLE
  19234. /* method: GetAmbientGradient of class Zone */
  19235. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_GetAmbientGradient00
  19236. static int tolua_Graphics_Zone_GetAmbientGradient00(lua_State* tolua_S)
  19237. {
  19238. #ifndef TOLUA_RELEASE
  19239. tolua_Error tolua_err;
  19240. if (
  19241. !tolua_isusertype(tolua_S,1,"const Zone",0,&tolua_err) ||
  19242. !tolua_isnoobj(tolua_S,2,&tolua_err)
  19243. )
  19244. goto tolua_lerror;
  19245. else
  19246. #endif
  19247. {
  19248. const Zone* self = (const Zone*) tolua_tousertype(tolua_S,1,0);
  19249. #ifndef TOLUA_RELEASE
  19250. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAmbientGradient'", NULL);
  19251. #endif
  19252. {
  19253. bool tolua_ret = (bool) self->GetAmbientGradient();
  19254. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  19255. }
  19256. }
  19257. return 1;
  19258. #ifndef TOLUA_RELEASE
  19259. tolua_lerror:
  19260. tolua_error(tolua_S,"#ferror in function 'GetAmbientGradient'.",&tolua_err);
  19261. return 0;
  19262. #endif
  19263. }
  19264. #endif //#ifndef TOLUA_DISABLE
  19265. /* method: IsInside of class Zone */
  19266. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_IsInside00
  19267. static int tolua_Graphics_Zone_IsInside00(lua_State* tolua_S)
  19268. {
  19269. #ifndef TOLUA_RELEASE
  19270. tolua_Error tolua_err;
  19271. if (
  19272. !tolua_isusertype(tolua_S,1,"const Zone",0,&tolua_err) ||
  19273. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  19274. !tolua_isnoobj(tolua_S,3,&tolua_err)
  19275. )
  19276. goto tolua_lerror;
  19277. else
  19278. #endif
  19279. {
  19280. const Zone* self = (const Zone*) tolua_tousertype(tolua_S,1,0);
  19281. const Vector3* point = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  19282. #ifndef TOLUA_RELEASE
  19283. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsInside'", NULL);
  19284. #endif
  19285. {
  19286. bool tolua_ret = (bool) self->IsInside(*point);
  19287. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  19288. }
  19289. }
  19290. return 1;
  19291. #ifndef TOLUA_RELEASE
  19292. tolua_lerror:
  19293. tolua_error(tolua_S,"#ferror in function 'IsInside'.",&tolua_err);
  19294. return 0;
  19295. #endif
  19296. }
  19297. #endif //#ifndef TOLUA_DISABLE
  19298. /* Open function */
  19299. TOLUA_API int tolua_Graphics_open (lua_State* tolua_S)
  19300. {
  19301. tolua_open(tolua_S);
  19302. tolua_reg_types(tolua_S);
  19303. tolua_module(tolua_S,NULL,1);
  19304. tolua_beginmodule(tolua_S,NULL);
  19305. tolua_cclass(tolua_S,"AnimatedModel","AnimatedModel","StaticModel",NULL);
  19306. tolua_beginmodule(tolua_S,"AnimatedModel");
  19307. tolua_function(tolua_S,"SetModel",tolua_Graphics_AnimatedModel_SetModel00);
  19308. tolua_function(tolua_S,"AddAnimationState",tolua_Graphics_AnimatedModel_AddAnimationState00);
  19309. tolua_function(tolua_S,"RemoveAnimationState",tolua_Graphics_AnimatedModel_RemoveAnimationState00);
  19310. tolua_function(tolua_S,"RemoveAnimationState",tolua_Graphics_AnimatedModel_RemoveAnimationState01);
  19311. tolua_function(tolua_S,"RemoveAnimationState",tolua_Graphics_AnimatedModel_RemoveAnimationState02);
  19312. tolua_function(tolua_S,"RemoveAnimationState",tolua_Graphics_AnimatedModel_RemoveAnimationState03);
  19313. tolua_function(tolua_S,"RemoveAnimationState",tolua_Graphics_AnimatedModel_RemoveAnimationState04);
  19314. tolua_function(tolua_S,"RemoveAllAnimationStates",tolua_Graphics_AnimatedModel_RemoveAllAnimationStates00);
  19315. tolua_function(tolua_S,"SetAnimationLodBias",tolua_Graphics_AnimatedModel_SetAnimationLodBias00);
  19316. tolua_function(tolua_S,"SetInvisibleLodFactor",tolua_Graphics_AnimatedModel_SetInvisibleLodFactor00);
  19317. tolua_function(tolua_S,"SetMorphWeight",tolua_Graphics_AnimatedModel_SetMorphWeight00);
  19318. tolua_function(tolua_S,"SetMorphWeight",tolua_Graphics_AnimatedModel_SetMorphWeight01);
  19319. tolua_function(tolua_S,"SetMorphWeight",tolua_Graphics_AnimatedModel_SetMorphWeight02);
  19320. tolua_function(tolua_S,"ResetMorphWeights",tolua_Graphics_AnimatedModel_ResetMorphWeights00);
  19321. tolua_function(tolua_S,"GetSkeleton",tolua_Graphics_AnimatedModel_GetSkeleton00);
  19322. tolua_function(tolua_S,"GetNumAnimationStates",tolua_Graphics_AnimatedModel_GetNumAnimationStates00);
  19323. tolua_function(tolua_S,"GetAnimationState",tolua_Graphics_AnimatedModel_GetAnimationState00);
  19324. tolua_function(tolua_S,"GetAnimationState",tolua_Graphics_AnimatedModel_GetAnimationState01);
  19325. tolua_function(tolua_S,"GetAnimationState",tolua_Graphics_AnimatedModel_GetAnimationState02);
  19326. tolua_function(tolua_S,"GetAnimationState",tolua_Graphics_AnimatedModel_GetAnimationState03);
  19327. tolua_function(tolua_S,"GetAnimationState",tolua_Graphics_AnimatedModel_GetAnimationState04);
  19328. tolua_function(tolua_S,"GetAnimationLodBias",tolua_Graphics_AnimatedModel_GetAnimationLodBias00);
  19329. tolua_function(tolua_S,"GetInvisibleLodFactor",tolua_Graphics_AnimatedModel_GetInvisibleLodFactor00);
  19330. tolua_function(tolua_S,"GetNumMorphs",tolua_Graphics_AnimatedModel_GetNumMorphs00);
  19331. tolua_function(tolua_S,"GetMorphWeight",tolua_Graphics_AnimatedModel_GetMorphWeight00);
  19332. tolua_function(tolua_S,"GetMorphWeight",tolua_Graphics_AnimatedModel_GetMorphWeight01);
  19333. tolua_function(tolua_S,"GetMorphWeight",tolua_Graphics_AnimatedModel_GetMorphWeight02);
  19334. tolua_function(tolua_S,"IsMaster",tolua_Graphics_AnimatedModel_IsMaster00);
  19335. tolua_endmodule(tolua_S);
  19336. tolua_cclass(tolua_S,"Animation","Animation","Resource",NULL);
  19337. tolua_beginmodule(tolua_S,"Animation");
  19338. tolua_function(tolua_S,"GetAnimationName",tolua_Graphics_Animation_GetAnimationName00);
  19339. tolua_function(tolua_S,"GetAnimationNameHash",tolua_Graphics_Animation_GetAnimationNameHash00);
  19340. tolua_function(tolua_S,"GetLength",tolua_Graphics_Animation_GetLength00);
  19341. tolua_function(tolua_S,"GetNumTracks",tolua_Graphics_Animation_GetNumTracks00);
  19342. tolua_function(tolua_S,"GetTrack",tolua_Graphics_Animation_GetTrack00);
  19343. tolua_function(tolua_S,"GetTrack",tolua_Graphics_Animation_GetTrack01);
  19344. tolua_function(tolua_S,"GetTrack",tolua_Graphics_Animation_GetTrack02);
  19345. tolua_function(tolua_S,"GetNumTriggers",tolua_Graphics_Animation_GetNumTriggers00);
  19346. tolua_endmodule(tolua_S);
  19347. tolua_cclass(tolua_S,"AnimationController","AnimationController","Component",NULL);
  19348. tolua_beginmodule(tolua_S,"AnimationController");
  19349. tolua_function(tolua_S,"Play",tolua_Graphics_AnimationController_Play00);
  19350. tolua_function(tolua_S,"PlayExclusive",tolua_Graphics_AnimationController_PlayExclusive00);
  19351. tolua_function(tolua_S,"Stop",tolua_Graphics_AnimationController_Stop00);
  19352. tolua_function(tolua_S,"StopLayer",tolua_Graphics_AnimationController_StopLayer00);
  19353. tolua_function(tolua_S,"StopAll",tolua_Graphics_AnimationController_StopAll00);
  19354. tolua_function(tolua_S,"Fade",tolua_Graphics_AnimationController_Fade00);
  19355. tolua_function(tolua_S,"FadeOthers",tolua_Graphics_AnimationController_FadeOthers00);
  19356. tolua_function(tolua_S,"SetLayer",tolua_Graphics_AnimationController_SetLayer00);
  19357. tolua_function(tolua_S,"SetStartBone",tolua_Graphics_AnimationController_SetStartBone00);
  19358. tolua_function(tolua_S,"SetTime",tolua_Graphics_AnimationController_SetTime00);
  19359. tolua_function(tolua_S,"SetWeight",tolua_Graphics_AnimationController_SetWeight00);
  19360. tolua_function(tolua_S,"SetLooped",tolua_Graphics_AnimationController_SetLooped00);
  19361. tolua_function(tolua_S,"SetSpeed",tolua_Graphics_AnimationController_SetSpeed00);
  19362. tolua_function(tolua_S,"SetAutoFade",tolua_Graphics_AnimationController_SetAutoFade00);
  19363. tolua_function(tolua_S,"IsPlaying",tolua_Graphics_AnimationController_IsPlaying00);
  19364. tolua_function(tolua_S,"IsFadingIn",tolua_Graphics_AnimationController_IsFadingIn00);
  19365. tolua_function(tolua_S,"IsFadingOut",tolua_Graphics_AnimationController_IsFadingOut00);
  19366. tolua_function(tolua_S,"GetLayer",tolua_Graphics_AnimationController_GetLayer00);
  19367. tolua_function(tolua_S,"GetStartBone",tolua_Graphics_AnimationController_GetStartBone00);
  19368. tolua_function(tolua_S,"GetStartBoneName",tolua_Graphics_AnimationController_GetStartBoneName00);
  19369. tolua_function(tolua_S,"GetTime",tolua_Graphics_AnimationController_GetTime00);
  19370. tolua_function(tolua_S,"GetWeight",tolua_Graphics_AnimationController_GetWeight00);
  19371. tolua_function(tolua_S,"IsLooped",tolua_Graphics_AnimationController_IsLooped00);
  19372. tolua_function(tolua_S,"GetLength",tolua_Graphics_AnimationController_GetLength00);
  19373. tolua_function(tolua_S,"GetSpeed",tolua_Graphics_AnimationController_GetSpeed00);
  19374. tolua_function(tolua_S,"GetFadeTarget",tolua_Graphics_AnimationController_GetFadeTarget00);
  19375. tolua_function(tolua_S,"GetFadeTime",tolua_Graphics_AnimationController_GetFadeTime00);
  19376. tolua_function(tolua_S,"GetAutoFade",tolua_Graphics_AnimationController_GetAutoFade00);
  19377. tolua_endmodule(tolua_S);
  19378. #ifdef __cplusplus
  19379. tolua_cclass(tolua_S,"AnimationState","AnimationState","",tolua_collect_AnimationState);
  19380. #else
  19381. tolua_cclass(tolua_S,"AnimationState","AnimationState","",NULL);
  19382. #endif
  19383. tolua_beginmodule(tolua_S,"AnimationState");
  19384. tolua_function(tolua_S,"new",tolua_Graphics_AnimationState_new00);
  19385. tolua_function(tolua_S,"new_local",tolua_Graphics_AnimationState_new00_local);
  19386. tolua_function(tolua_S,".call",tolua_Graphics_AnimationState_new00_local);
  19387. tolua_function(tolua_S,"new",tolua_Graphics_AnimationState_new01);
  19388. tolua_function(tolua_S,"new_local",tolua_Graphics_AnimationState_new01_local);
  19389. tolua_function(tolua_S,".call",tolua_Graphics_AnimationState_new01_local);
  19390. tolua_function(tolua_S,"delete",tolua_Graphics_AnimationState_delete00);
  19391. tolua_function(tolua_S,"SetStartBone",tolua_Graphics_AnimationState_SetStartBone00);
  19392. tolua_function(tolua_S,"SetLooped",tolua_Graphics_AnimationState_SetLooped00);
  19393. tolua_function(tolua_S,"SetWeight",tolua_Graphics_AnimationState_SetWeight00);
  19394. tolua_function(tolua_S,"SetTime",tolua_Graphics_AnimationState_SetTime00);
  19395. tolua_function(tolua_S,"AddWeight",tolua_Graphics_AnimationState_AddWeight00);
  19396. tolua_function(tolua_S,"AddTime",tolua_Graphics_AnimationState_AddTime00);
  19397. tolua_function(tolua_S,"SetLayer",tolua_Graphics_AnimationState_SetLayer00);
  19398. tolua_function(tolua_S,"GetAnimation",tolua_Graphics_AnimationState_GetAnimation00);
  19399. tolua_function(tolua_S,"GetStartBone",tolua_Graphics_AnimationState_GetStartBone00);
  19400. tolua_function(tolua_S,"IsEnabled",tolua_Graphics_AnimationState_IsEnabled00);
  19401. tolua_function(tolua_S,"IsLooped",tolua_Graphics_AnimationState_IsLooped00);
  19402. tolua_function(tolua_S,"GetWeight",tolua_Graphics_AnimationState_GetWeight00);
  19403. tolua_function(tolua_S,"GetTime",tolua_Graphics_AnimationState_GetTime00);
  19404. tolua_function(tolua_S,"GetLength",tolua_Graphics_AnimationState_GetLength00);
  19405. tolua_function(tolua_S,"GetLayer",tolua_Graphics_AnimationState_GetLayer00);
  19406. tolua_function(tolua_S,"Apply",tolua_Graphics_AnimationState_Apply00);
  19407. tolua_endmodule(tolua_S);
  19408. tolua_cclass(tolua_S,"BillboardSet","BillboardSet","Drawable",NULL);
  19409. tolua_beginmodule(tolua_S,"BillboardSet");
  19410. tolua_function(tolua_S,"SetMaterial",tolua_Graphics_BillboardSet_SetMaterial00);
  19411. tolua_function(tolua_S,"SetNumBillboards",tolua_Graphics_BillboardSet_SetNumBillboards00);
  19412. tolua_function(tolua_S,"SetRelative",tolua_Graphics_BillboardSet_SetRelative00);
  19413. tolua_function(tolua_S,"SetScaled",tolua_Graphics_BillboardSet_SetScaled00);
  19414. tolua_function(tolua_S,"SetSorted",tolua_Graphics_BillboardSet_SetSorted00);
  19415. tolua_function(tolua_S,"SetAnimationLodBias",tolua_Graphics_BillboardSet_SetAnimationLodBias00);
  19416. tolua_function(tolua_S,"Commit",tolua_Graphics_BillboardSet_Commit00);
  19417. tolua_function(tolua_S,"GetMaterial",tolua_Graphics_BillboardSet_GetMaterial00);
  19418. tolua_function(tolua_S,"GetNumBillboards",tolua_Graphics_BillboardSet_GetNumBillboards00);
  19419. tolua_function(tolua_S,"GetBillboard",tolua_Graphics_BillboardSet_GetBillboard00);
  19420. tolua_function(tolua_S,"IsRelative",tolua_Graphics_BillboardSet_IsRelative00);
  19421. tolua_function(tolua_S,"IsScaled",tolua_Graphics_BillboardSet_IsScaled00);
  19422. tolua_function(tolua_S,"IsSorted",tolua_Graphics_BillboardSet_IsSorted00);
  19423. tolua_function(tolua_S,"GetAnimationLodBias",tolua_Graphics_BillboardSet_GetAnimationLodBias00);
  19424. tolua_function(tolua_S,"GetAnimationLodBias",tolua_Graphics_BillboardSet_GetAnimationLodBias01);
  19425. tolua_endmodule(tolua_S);
  19426. tolua_cclass(tolua_S,"Camera","Camera","Component",NULL);
  19427. tolua_beginmodule(tolua_S,"Camera");
  19428. tolua_function(tolua_S,"SetNearClip",tolua_Graphics_Camera_SetNearClip00);
  19429. tolua_function(tolua_S,"SetFarClip",tolua_Graphics_Camera_SetFarClip00);
  19430. tolua_function(tolua_S,"SetFov",tolua_Graphics_Camera_SetFov00);
  19431. tolua_function(tolua_S,"SetOrthoSize",tolua_Graphics_Camera_SetOrthoSize00);
  19432. tolua_function(tolua_S,"SetOrthoSize",tolua_Graphics_Camera_SetOrthoSize01);
  19433. tolua_function(tolua_S,"SetAspectRatio",tolua_Graphics_Camera_SetAspectRatio00);
  19434. tolua_function(tolua_S,"SetFillMode",tolua_Graphics_Camera_SetFillMode00);
  19435. tolua_function(tolua_S,"SetZoom",tolua_Graphics_Camera_SetZoom00);
  19436. tolua_function(tolua_S,"SetLodBias",tolua_Graphics_Camera_SetLodBias00);
  19437. tolua_function(tolua_S,"SetViewMask",tolua_Graphics_Camera_SetViewMask00);
  19438. tolua_function(tolua_S,"SetViewOverrideFlags",tolua_Graphics_Camera_SetViewOverrideFlags00);
  19439. tolua_function(tolua_S,"SetOrthographic",tolua_Graphics_Camera_SetOrthographic00);
  19440. tolua_function(tolua_S,"SetAutoAspectRatio",tolua_Graphics_Camera_SetAutoAspectRatio00);
  19441. tolua_function(tolua_S,"SetProjectionOffset",tolua_Graphics_Camera_SetProjectionOffset00);
  19442. tolua_function(tolua_S,"SetFlipVertical",tolua_Graphics_Camera_SetFlipVertical00);
  19443. tolua_function(tolua_S,"GetFarClip",tolua_Graphics_Camera_GetFarClip00);
  19444. tolua_function(tolua_S,"GetNearClip",tolua_Graphics_Camera_GetNearClip00);
  19445. tolua_function(tolua_S,"GetFov",tolua_Graphics_Camera_GetFov00);
  19446. tolua_function(tolua_S,"GetOrthoSize",tolua_Graphics_Camera_GetOrthoSize00);
  19447. tolua_function(tolua_S,"GetAspectRatio",tolua_Graphics_Camera_GetAspectRatio00);
  19448. tolua_function(tolua_S,"GetZoom",tolua_Graphics_Camera_GetZoom00);
  19449. tolua_function(tolua_S,"GetLodBias",tolua_Graphics_Camera_GetLodBias00);
  19450. tolua_function(tolua_S,"GetViewMask",tolua_Graphics_Camera_GetViewMask00);
  19451. tolua_function(tolua_S,"GetViewOverrideFlags",tolua_Graphics_Camera_GetViewOverrideFlags00);
  19452. tolua_function(tolua_S,"GetFillMode",tolua_Graphics_Camera_GetFillMode00);
  19453. tolua_function(tolua_S,"IsOrthographic",tolua_Graphics_Camera_IsOrthographic00);
  19454. tolua_function(tolua_S,"GetAutoAspectRatio",tolua_Graphics_Camera_GetAutoAspectRatio00);
  19455. tolua_function(tolua_S,"GetFrustum",tolua_Graphics_Camera_GetFrustum00);
  19456. tolua_function(tolua_S,"GetProjection",tolua_Graphics_Camera_GetProjection00);
  19457. tolua_function(tolua_S,"GetProjection",tolua_Graphics_Camera_GetProjection01);
  19458. tolua_function(tolua_S,"GetView",tolua_Graphics_Camera_GetView00);
  19459. tolua_function(tolua_S,"GetFrustumSize",tolua_Graphics_Camera_GetFrustumSize00);
  19460. tolua_function(tolua_S,"GetHalfViewSize",tolua_Graphics_Camera_GetHalfViewSize00);
  19461. tolua_function(tolua_S,"GetSplitFrustum",tolua_Graphics_Camera_GetSplitFrustum00);
  19462. tolua_function(tolua_S,"GetViewSpaceFrustum",tolua_Graphics_Camera_GetViewSpaceFrustum00);
  19463. tolua_function(tolua_S,"GetViewSpaceSplitFrustum",tolua_Graphics_Camera_GetViewSpaceSplitFrustum00);
  19464. tolua_function(tolua_S,"GetScreenRay",tolua_Graphics_Camera_GetScreenRay00);
  19465. tolua_function(tolua_S,"WorldToScreenPoint",tolua_Graphics_Camera_WorldToScreenPoint00);
  19466. tolua_function(tolua_S,"ScreenToWorldPoint",tolua_Graphics_Camera_ScreenToWorldPoint00);
  19467. tolua_function(tolua_S,"GetForwardVector",tolua_Graphics_Camera_GetForwardVector00);
  19468. tolua_function(tolua_S,"GetRightVector",tolua_Graphics_Camera_GetRightVector00);
  19469. tolua_function(tolua_S,"GetUpVector",tolua_Graphics_Camera_GetUpVector00);
  19470. tolua_function(tolua_S,"GetProjectionOffset",tolua_Graphics_Camera_GetProjectionOffset00);
  19471. tolua_function(tolua_S,"GetFlipVertical",tolua_Graphics_Camera_GetFlipVertical00);
  19472. tolua_function(tolua_S,"GetDistance",tolua_Graphics_Camera_GetDistance00);
  19473. tolua_function(tolua_S,"GetDistanceSquared",tolua_Graphics_Camera_GetDistanceSquared00);
  19474. tolua_function(tolua_S,"GetLodDistance",tolua_Graphics_Camera_GetLodDistance00);
  19475. tolua_function(tolua_S,"IsProjectionValid",tolua_Graphics_Camera_IsProjectionValid00);
  19476. tolua_endmodule(tolua_S);
  19477. tolua_cclass(tolua_S,"DebugRenderer","DebugRenderer","Component",NULL);
  19478. tolua_beginmodule(tolua_S,"DebugRenderer");
  19479. tolua_function(tolua_S,"SetView",tolua_Graphics_DebugRenderer_SetView00);
  19480. tolua_function(tolua_S,"AddLine",tolua_Graphics_DebugRenderer_AddLine00);
  19481. tolua_function(tolua_S,"AddLine",tolua_Graphics_DebugRenderer_AddLine01);
  19482. tolua_function(tolua_S,"AddNode",tolua_Graphics_DebugRenderer_AddNode00);
  19483. tolua_function(tolua_S,"AddBoundingBox",tolua_Graphics_DebugRenderer_AddBoundingBox00);
  19484. tolua_function(tolua_S,"AddBoundingBox",tolua_Graphics_DebugRenderer_AddBoundingBox01);
  19485. tolua_function(tolua_S,"AddFrustum",tolua_Graphics_DebugRenderer_AddFrustum00);
  19486. tolua_function(tolua_S,"AddPolyhedron",tolua_Graphics_DebugRenderer_AddPolyhedron00);
  19487. tolua_function(tolua_S,"AddSphere",tolua_Graphics_DebugRenderer_AddSphere00);
  19488. tolua_function(tolua_S,"AddSkeleton",tolua_Graphics_DebugRenderer_AddSkeleton00);
  19489. tolua_function(tolua_S,"GetView",tolua_Graphics_DebugRenderer_GetView00);
  19490. tolua_function(tolua_S,"GetProjection",tolua_Graphics_DebugRenderer_GetProjection00);
  19491. tolua_function(tolua_S,"GetFrustum",tolua_Graphics_DebugRenderer_GetFrustum00);
  19492. tolua_function(tolua_S,"IsInside",tolua_Graphics_DebugRenderer_IsInside00);
  19493. tolua_endmodule(tolua_S);
  19494. tolua_function(tolua_S,"GetDebugRenderer",tolua_Graphics_GetDebugRenderer00);
  19495. tolua_cclass(tolua_S,"DecalSet","DecalSet","Drawable",NULL);
  19496. tolua_beginmodule(tolua_S,"DecalSet");
  19497. tolua_function(tolua_S,"SetMaterial",tolua_Graphics_DecalSet_SetMaterial00);
  19498. tolua_function(tolua_S,"SetMaxVertices",tolua_Graphics_DecalSet_SetMaxVertices00);
  19499. tolua_function(tolua_S,"SetMaxIndices",tolua_Graphics_DecalSet_SetMaxIndices00);
  19500. tolua_function(tolua_S,"AddDecal",tolua_Graphics_DecalSet_AddDecal00);
  19501. tolua_function(tolua_S,"RemoveDecals",tolua_Graphics_DecalSet_RemoveDecals00);
  19502. tolua_function(tolua_S,"RemoveAllDecals",tolua_Graphics_DecalSet_RemoveAllDecals00);
  19503. tolua_function(tolua_S,"GetMaterial",tolua_Graphics_DecalSet_GetMaterial00);
  19504. tolua_function(tolua_S,"GetNumDecals",tolua_Graphics_DecalSet_GetNumDecals00);
  19505. tolua_function(tolua_S,"GetNumVertices",tolua_Graphics_DecalSet_GetNumVertices00);
  19506. tolua_function(tolua_S,"GetNumIndices",tolua_Graphics_DecalSet_GetNumIndices00);
  19507. tolua_function(tolua_S,"GetMaxVertices",tolua_Graphics_DecalSet_GetMaxVertices00);
  19508. tolua_function(tolua_S,"GetMaxIndices",tolua_Graphics_DecalSet_GetMaxIndices00);
  19509. tolua_endmodule(tolua_S);
  19510. tolua_cclass(tolua_S,"Drawable","Drawable","Component",NULL);
  19511. tolua_beginmodule(tolua_S,"Drawable");
  19512. tolua_function(tolua_S,"SetDrawDistance",tolua_Graphics_Drawable_SetDrawDistance00);
  19513. tolua_function(tolua_S,"SetShadowDistance",tolua_Graphics_Drawable_SetShadowDistance00);
  19514. tolua_function(tolua_S,"SetLodBias",tolua_Graphics_Drawable_SetLodBias00);
  19515. tolua_function(tolua_S,"SetViewMask",tolua_Graphics_Drawable_SetViewMask00);
  19516. tolua_function(tolua_S,"SetLightMask",tolua_Graphics_Drawable_SetLightMask00);
  19517. tolua_function(tolua_S,"SetShadowMask",tolua_Graphics_Drawable_SetShadowMask00);
  19518. tolua_function(tolua_S,"SetZoneMask",tolua_Graphics_Drawable_SetZoneMask00);
  19519. tolua_function(tolua_S,"SetMaxLights",tolua_Graphics_Drawable_SetMaxLights00);
  19520. tolua_function(tolua_S,"SetCastShadows",tolua_Graphics_Drawable_SetCastShadows00);
  19521. tolua_function(tolua_S,"SetOccluder",tolua_Graphics_Drawable_SetOccluder00);
  19522. tolua_function(tolua_S,"SetOccludee",tolua_Graphics_Drawable_SetOccludee00);
  19523. tolua_function(tolua_S,"MarkForUpdate",tolua_Graphics_Drawable_MarkForUpdate00);
  19524. tolua_function(tolua_S,"GetWorldBoundingBox",tolua_Graphics_Drawable_GetWorldBoundingBox00);
  19525. tolua_function(tolua_S,"GetDrawableFlags",tolua_Graphics_Drawable_GetDrawableFlags00);
  19526. tolua_function(tolua_S,"GetDrawDistance",tolua_Graphics_Drawable_GetDrawDistance00);
  19527. tolua_function(tolua_S,"GetShadowDistance",tolua_Graphics_Drawable_GetShadowDistance00);
  19528. tolua_function(tolua_S,"GetLodBias",tolua_Graphics_Drawable_GetLodBias00);
  19529. tolua_function(tolua_S,"GetViewMask",tolua_Graphics_Drawable_GetViewMask00);
  19530. tolua_function(tolua_S,"GetLightMask",tolua_Graphics_Drawable_GetLightMask00);
  19531. tolua_function(tolua_S,"GetShadowMask",tolua_Graphics_Drawable_GetShadowMask00);
  19532. tolua_function(tolua_S,"GetZoneMask",tolua_Graphics_Drawable_GetZoneMask00);
  19533. tolua_function(tolua_S,"GetMaxLights",tolua_Graphics_Drawable_GetMaxLights00);
  19534. tolua_function(tolua_S,"GetCastShadows",tolua_Graphics_Drawable_GetCastShadows00);
  19535. tolua_function(tolua_S,"IsOccluder",tolua_Graphics_Drawable_IsOccluder00);
  19536. tolua_function(tolua_S,"IsOccludee",tolua_Graphics_Drawable_IsOccludee00);
  19537. tolua_function(tolua_S,"SetZone",tolua_Graphics_Drawable_SetZone00);
  19538. tolua_function(tolua_S,"SetSortValue",tolua_Graphics_Drawable_SetSortValue00);
  19539. tolua_function(tolua_S,"SetMinMaxZ",tolua_Graphics_Drawable_SetMinMaxZ00);
  19540. tolua_function(tolua_S,"MarkInView",tolua_Graphics_Drawable_MarkInView00);
  19541. tolua_function(tolua_S,"ClearLights",tolua_Graphics_Drawable_ClearLights00);
  19542. tolua_function(tolua_S,"AddLight",tolua_Graphics_Drawable_AddLight00);
  19543. tolua_function(tolua_S,"AddVertexLight",tolua_Graphics_Drawable_AddVertexLight00);
  19544. tolua_function(tolua_S,"LimitLights",tolua_Graphics_Drawable_LimitLights00);
  19545. tolua_function(tolua_S,"LimitVertexLights",tolua_Graphics_Drawable_LimitVertexLights00);
  19546. tolua_function(tolua_S,"SetBasePass",tolua_Graphics_Drawable_SetBasePass00);
  19547. tolua_function(tolua_S,"GetOctant",tolua_Graphics_Drawable_GetOctant00);
  19548. tolua_function(tolua_S,"GetZone",tolua_Graphics_Drawable_GetZone00);
  19549. tolua_function(tolua_S,"GetLastZone",tolua_Graphics_Drawable_GetLastZone00);
  19550. tolua_function(tolua_S,"IsZoneDirty",tolua_Graphics_Drawable_IsZoneDirty00);
  19551. tolua_function(tolua_S,"GetDistance",tolua_Graphics_Drawable_GetDistance00);
  19552. tolua_function(tolua_S,"GetLodDistance",tolua_Graphics_Drawable_GetLodDistance00);
  19553. tolua_function(tolua_S,"GetSortValue",tolua_Graphics_Drawable_GetSortValue00);
  19554. tolua_function(tolua_S,"IsInView",tolua_Graphics_Drawable_IsInView00);
  19555. tolua_function(tolua_S,"IsInView",tolua_Graphics_Drawable_IsInView01);
  19556. tolua_function(tolua_S,"HasBasePass",tolua_Graphics_Drawable_HasBasePass00);
  19557. tolua_function(tolua_S,"GetFirstLight",tolua_Graphics_Drawable_GetFirstLight00);
  19558. tolua_function(tolua_S,"GetMinZ",tolua_Graphics_Drawable_GetMinZ00);
  19559. tolua_function(tolua_S,"GetMaxZ",tolua_Graphics_Drawable_GetMaxZ00);
  19560. tolua_endmodule(tolua_S);
  19561. tolua_cclass(tolua_S,"Graphics","Graphics","Object",NULL);
  19562. tolua_beginmodule(tolua_S,"Graphics");
  19563. tolua_function(tolua_S,"SetWindowTitle",tolua_Graphics_Graphics_SetWindowTitle00);
  19564. tolua_function(tolua_S,"SetSRGB",tolua_Graphics_Graphics_SetSRGB00);
  19565. tolua_function(tolua_S,"ToggleFullscreen",tolua_Graphics_Graphics_ToggleFullscreen00);
  19566. tolua_function(tolua_S,"TakeScreenShot",tolua_Graphics_Graphics_TakeScreenShot00);
  19567. tolua_function(tolua_S,"IsInitialized",tolua_Graphics_Graphics_IsInitialized00);
  19568. tolua_function(tolua_S,"GetWidth",tolua_Graphics_Graphics_GetWidth00);
  19569. tolua_function(tolua_S,"GetHeight",tolua_Graphics_Graphics_GetHeight00);
  19570. tolua_function(tolua_S,"GetMultiSample",tolua_Graphics_Graphics_GetMultiSample00);
  19571. tolua_function(tolua_S,"GetFullscreen",tolua_Graphics_Graphics_GetFullscreen00);
  19572. tolua_function(tolua_S,"GetResizable",tolua_Graphics_Graphics_GetResizable00);
  19573. tolua_function(tolua_S,"GetVSync",tolua_Graphics_Graphics_GetVSync00);
  19574. tolua_function(tolua_S,"GetTripleBuffer",tolua_Graphics_Graphics_GetTripleBuffer00);
  19575. tolua_function(tolua_S,"GetSRGB",tolua_Graphics_Graphics_GetSRGB00);
  19576. tolua_endmodule(tolua_S);
  19577. tolua_function(tolua_S,"GetGraphics",tolua_Graphics_GetGraphics00);
  19578. tolua_constant(tolua_S,"RENDER_FORWARD",RENDER_FORWARD);
  19579. tolua_constant(tolua_S,"RENDER_PREPASS",RENDER_PREPASS);
  19580. tolua_constant(tolua_S,"RENDER_DEFERRED",RENDER_DEFERRED);
  19581. tolua_constant(tolua_S,"TRIANGLE_LIST",TRIANGLE_LIST);
  19582. tolua_constant(tolua_S,"LINE_LIST",LINE_LIST);
  19583. tolua_constant(tolua_S,"GEOM_STATIC",GEOM_STATIC);
  19584. tolua_constant(tolua_S,"GEOM_SKINNED",GEOM_SKINNED);
  19585. tolua_constant(tolua_S,"GEOM_INSTANCED",GEOM_INSTANCED);
  19586. tolua_constant(tolua_S,"GEOM_BILLBOARD",GEOM_BILLBOARD);
  19587. tolua_constant(tolua_S,"GEOM_STATIC_NOINSTANCING",GEOM_STATIC_NOINSTANCING);
  19588. tolua_constant(tolua_S,"MAX_GEOMETRYTYPES",MAX_GEOMETRYTYPES);
  19589. tolua_constant(tolua_S,"BLEND_REPLACE",BLEND_REPLACE);
  19590. tolua_constant(tolua_S,"BLEND_ADD",BLEND_ADD);
  19591. tolua_constant(tolua_S,"BLEND_MULTIPLY",BLEND_MULTIPLY);
  19592. tolua_constant(tolua_S,"BLEND_ALPHA",BLEND_ALPHA);
  19593. tolua_constant(tolua_S,"BLEND_ADDALPHA",BLEND_ADDALPHA);
  19594. tolua_constant(tolua_S,"BLEND_PREMULALPHA",BLEND_PREMULALPHA);
  19595. tolua_constant(tolua_S,"BLEND_INVDESTALPHA",BLEND_INVDESTALPHA);
  19596. tolua_constant(tolua_S,"MAX_BLENDMODES",MAX_BLENDMODES);
  19597. tolua_constant(tolua_S,"CMP_ALWAYS",CMP_ALWAYS);
  19598. tolua_constant(tolua_S,"CMP_EQUAL",CMP_EQUAL);
  19599. tolua_constant(tolua_S,"CMP_NOTEQUAL",CMP_NOTEQUAL);
  19600. tolua_constant(tolua_S,"CMP_LESS",CMP_LESS);
  19601. tolua_constant(tolua_S,"CMP_LESSEQUAL",CMP_LESSEQUAL);
  19602. tolua_constant(tolua_S,"CMP_GREATER",CMP_GREATER);
  19603. tolua_constant(tolua_S,"CMP_GREATEREQUAL",CMP_GREATEREQUAL);
  19604. tolua_constant(tolua_S,"MAX_COMPAREMODES",MAX_COMPAREMODES);
  19605. tolua_constant(tolua_S,"CULL_NONE",CULL_NONE);
  19606. tolua_constant(tolua_S,"CULL_CCW",CULL_CCW);
  19607. tolua_constant(tolua_S,"CULL_CW",CULL_CW);
  19608. tolua_constant(tolua_S,"MAX_CULLMODES",MAX_CULLMODES);
  19609. tolua_constant(tolua_S,"FILL_SOLID",FILL_SOLID);
  19610. tolua_constant(tolua_S,"FILL_WIREFRAME",FILL_WIREFRAME);
  19611. tolua_constant(tolua_S,"FILL_POINT",FILL_POINT);
  19612. tolua_constant(tolua_S,"OP_KEEP",OP_KEEP);
  19613. tolua_constant(tolua_S,"OP_ZERO",OP_ZERO);
  19614. tolua_constant(tolua_S,"OP_REF",OP_REF);
  19615. tolua_constant(tolua_S,"OP_INCR",OP_INCR);
  19616. tolua_constant(tolua_S,"OP_DECR",OP_DECR);
  19617. tolua_constant(tolua_S,"LOCK_NONE",LOCK_NONE);
  19618. tolua_constant(tolua_S,"LOCK_HARDWARE",LOCK_HARDWARE);
  19619. tolua_constant(tolua_S,"LOCK_SHADOW",LOCK_SHADOW);
  19620. tolua_constant(tolua_S,"LOCK_SCRATCH",LOCK_SCRATCH);
  19621. tolua_constant(tolua_S,"ELEMENT_POSITION",ELEMENT_POSITION);
  19622. tolua_constant(tolua_S,"ELEMENT_NORMAL",ELEMENT_NORMAL);
  19623. tolua_constant(tolua_S,"ELEMENT_COLOR",ELEMENT_COLOR);
  19624. tolua_constant(tolua_S,"ELEMENT_TEXCOORD1",ELEMENT_TEXCOORD1);
  19625. tolua_constant(tolua_S,"ELEMENT_TEXCOORD2",ELEMENT_TEXCOORD2);
  19626. tolua_constant(tolua_S,"ELEMENT_CUBETEXCOORD1",ELEMENT_CUBETEXCOORD1);
  19627. tolua_constant(tolua_S,"ELEMENT_CUBETEXCOORD2",ELEMENT_CUBETEXCOORD2);
  19628. tolua_constant(tolua_S,"ELEMENT_TANGENT",ELEMENT_TANGENT);
  19629. tolua_constant(tolua_S,"ELEMENT_BLENDWEIGHTS",ELEMENT_BLENDWEIGHTS);
  19630. tolua_constant(tolua_S,"ELEMENT_BLENDINDICES",ELEMENT_BLENDINDICES);
  19631. tolua_constant(tolua_S,"ELEMENT_INSTANCEMATRIX1",ELEMENT_INSTANCEMATRIX1);
  19632. tolua_constant(tolua_S,"ELEMENT_INSTANCEMATRIX2",ELEMENT_INSTANCEMATRIX2);
  19633. tolua_constant(tolua_S,"ELEMENT_INSTANCEMATRIX3",ELEMENT_INSTANCEMATRIX3);
  19634. tolua_constant(tolua_S,"MAX_VERTEX_ELEMENTS",MAX_VERTEX_ELEMENTS);
  19635. tolua_constant(tolua_S,"FILTER_NEAREST",FILTER_NEAREST);
  19636. tolua_constant(tolua_S,"FILTER_BILINEAR",FILTER_BILINEAR);
  19637. tolua_constant(tolua_S,"FILTER_TRILINEAR",FILTER_TRILINEAR);
  19638. tolua_constant(tolua_S,"FILTER_ANISOTROPIC",FILTER_ANISOTROPIC);
  19639. tolua_constant(tolua_S,"FILTER_DEFAULT",FILTER_DEFAULT);
  19640. tolua_constant(tolua_S,"MAX_FILTERMODES",MAX_FILTERMODES);
  19641. tolua_constant(tolua_S,"ADDRESS_WRAP",ADDRESS_WRAP);
  19642. tolua_constant(tolua_S,"ADDRESS_MIRROR",ADDRESS_MIRROR);
  19643. tolua_constant(tolua_S,"ADDRESS_CLAMP",ADDRESS_CLAMP);
  19644. tolua_constant(tolua_S,"ADDRESS_BORDER",ADDRESS_BORDER);
  19645. tolua_constant(tolua_S,"MAX_ADDRESSMODES",MAX_ADDRESSMODES);
  19646. tolua_constant(tolua_S,"COORD_U",COORD_U);
  19647. tolua_constant(tolua_S,"COORD_V",COORD_V);
  19648. tolua_constant(tolua_S,"COORD_W",COORD_W);
  19649. tolua_constant(tolua_S,"MAX_COORDS",MAX_COORDS);
  19650. tolua_constant(tolua_S,"TEXTURE_STATIC",TEXTURE_STATIC);
  19651. tolua_constant(tolua_S,"TEXTURE_DYNAMIC",TEXTURE_DYNAMIC);
  19652. tolua_constant(tolua_S,"TEXTURE_RENDERTARGET",TEXTURE_RENDERTARGET);
  19653. tolua_constant(tolua_S,"TEXTURE_DEPTHSTENCIL",TEXTURE_DEPTHSTENCIL);
  19654. tolua_constant(tolua_S,"FACE_POSITIVE_X",FACE_POSITIVE_X);
  19655. tolua_constant(tolua_S,"FACE_NEGATIVE_X",FACE_NEGATIVE_X);
  19656. tolua_constant(tolua_S,"FACE_POSITIVE_Y",FACE_POSITIVE_Y);
  19657. tolua_constant(tolua_S,"FACE_NEGATIVE_Y",FACE_NEGATIVE_Y);
  19658. tolua_constant(tolua_S,"FACE_POSITIVE_Z",FACE_POSITIVE_Z);
  19659. tolua_constant(tolua_S,"FACE_NEGATIVE_Z",FACE_NEGATIVE_Z);
  19660. tolua_constant(tolua_S,"MAX_CUBEMAP_FACES",MAX_CUBEMAP_FACES);
  19661. tolua_constant(tolua_S,"SURFACE_MANUALUPDATE",SURFACE_MANUALUPDATE);
  19662. tolua_constant(tolua_S,"SURFACE_UPDATEVISIBLE",SURFACE_UPDATEVISIBLE);
  19663. tolua_constant(tolua_S,"SURFACE_UPDATEALWAYS",SURFACE_UPDATEALWAYS);
  19664. tolua_constant(tolua_S,"VS",VS);
  19665. tolua_constant(tolua_S,"PS",PS);
  19666. tolua_constant(tolua_S,"TU_DIFFUSE",TU_DIFFUSE);
  19667. tolua_constant(tolua_S,"TU_ALBEDOBUFFER",TU_ALBEDOBUFFER);
  19668. tolua_constant(tolua_S,"TU_NORMAL",TU_NORMAL);
  19669. tolua_constant(tolua_S,"TU_NORMALBUFFER",TU_NORMALBUFFER);
  19670. tolua_constant(tolua_S,"TU_SPECULAR",TU_SPECULAR);
  19671. tolua_constant(tolua_S,"TU_EMISSIVE",TU_EMISSIVE);
  19672. tolua_constant(tolua_S,"TU_ENVIRONMENT",TU_ENVIRONMENT);
  19673. tolua_constant(tolua_S,"MAX_MATERIAL_TEXTURE_UNITS",MAX_MATERIAL_TEXTURE_UNITS);
  19674. tolua_constant(tolua_S,"TU_LIGHTRAMP",TU_LIGHTRAMP);
  19675. tolua_constant(tolua_S,"TU_LIGHTSHAPE",TU_LIGHTSHAPE);
  19676. tolua_constant(tolua_S,"TU_SHADOWMAP",TU_SHADOWMAP);
  19677. tolua_constant(tolua_S,"TU_FACESELECT",TU_FACESELECT);
  19678. tolua_constant(tolua_S,"TU_INDIRECTION",TU_INDIRECTION);
  19679. tolua_constant(tolua_S,"TU_DEPTHBUFFER",TU_DEPTHBUFFER);
  19680. tolua_constant(tolua_S,"TU_LIGHTBUFFER",TU_LIGHTBUFFER);
  19681. tolua_constant(tolua_S,"MAX_TEXTURE_UNITS",MAX_TEXTURE_UNITS);
  19682. tolua_constant(tolua_S,"SP_FRAME",SP_FRAME);
  19683. tolua_constant(tolua_S,"SP_CAMERA",SP_CAMERA);
  19684. tolua_constant(tolua_S,"SP_VIEWPORT",SP_VIEWPORT);
  19685. tolua_constant(tolua_S,"SP_ZONE",SP_ZONE);
  19686. tolua_constant(tolua_S,"SP_LIGHT",SP_LIGHT);
  19687. tolua_constant(tolua_S,"SP_VERTEXLIGHTS",SP_VERTEXLIGHTS);
  19688. tolua_constant(tolua_S,"SP_MATERIAL",SP_MATERIAL);
  19689. tolua_constant(tolua_S,"SP_OBJECTTRANSFORM",SP_OBJECTTRANSFORM);
  19690. tolua_constant(tolua_S,"SP_OBJECTDATA",SP_OBJECTDATA);
  19691. tolua_constant(tolua_S,"MAX_SHADER_PARAMETER_GROUPS",MAX_SHADER_PARAMETER_GROUPS);
  19692. tolua_variable(tolua_S,"QUALITY_LOW",tolua_get_QUALITY_LOW,NULL);
  19693. tolua_variable(tolua_S,"QUALITY_MEDIUM",tolua_get_QUALITY_MEDIUM,NULL);
  19694. tolua_variable(tolua_S,"QUALITY_HIGH",tolua_get_QUALITY_HIGH,NULL);
  19695. tolua_variable(tolua_S,"QUALITY_MAX",tolua_get_QUALITY_MAX,NULL);
  19696. tolua_variable(tolua_S,"SHADOWQUALITY_LOW_16BIT",tolua_get_SHADOWQUALITY_LOW_16BIT,NULL);
  19697. tolua_variable(tolua_S,"SHADOWQUALITY_LOW_24BIT",tolua_get_SHADOWQUALITY_LOW_24BIT,NULL);
  19698. tolua_variable(tolua_S,"SHADOWQUALITY_HIGH_16BIT",tolua_get_SHADOWQUALITY_HIGH_16BIT,NULL);
  19699. tolua_variable(tolua_S,"SHADOWQUALITY_HIGH_24BIT",tolua_get_SHADOWQUALITY_HIGH_24BIT,NULL);
  19700. tolua_variable(tolua_S,"CLEAR_COLOR",tolua_get_CLEAR_COLOR,NULL);
  19701. tolua_variable(tolua_S,"CLEAR_DEPTH",tolua_get_CLEAR_DEPTH,NULL);
  19702. tolua_variable(tolua_S,"CLEAR_STENCIL",tolua_get_CLEAR_STENCIL,NULL);
  19703. tolua_constant(tolua_S,"LIGHT_DIRECTIONAL",LIGHT_DIRECTIONAL);
  19704. tolua_constant(tolua_S,"LIGHT_SPOT",LIGHT_SPOT);
  19705. tolua_constant(tolua_S,"LIGHT_POINT",LIGHT_POINT);
  19706. tolua_cclass(tolua_S,"Light","Light","Drawable",NULL);
  19707. tolua_beginmodule(tolua_S,"Light");
  19708. tolua_function(tolua_S,"SetLightType",tolua_Graphics_Light_SetLightType00);
  19709. tolua_function(tolua_S,"SetPerVertex",tolua_Graphics_Light_SetPerVertex00);
  19710. tolua_function(tolua_S,"SetColor",tolua_Graphics_Light_SetColor00);
  19711. tolua_function(tolua_S,"SetSpecularIntensity",tolua_Graphics_Light_SetSpecularIntensity00);
  19712. tolua_function(tolua_S,"SetRange",tolua_Graphics_Light_SetRange00);
  19713. tolua_function(tolua_S,"SetFov",tolua_Graphics_Light_SetFov00);
  19714. tolua_function(tolua_S,"SetAspectRatio",tolua_Graphics_Light_SetAspectRatio00);
  19715. tolua_function(tolua_S,"SetFadeDistance",tolua_Graphics_Light_SetFadeDistance00);
  19716. tolua_function(tolua_S,"SetShadowFadeDistance",tolua_Graphics_Light_SetShadowFadeDistance00);
  19717. tolua_function(tolua_S,"SetShadowBias",tolua_Graphics_Light_SetShadowBias00);
  19718. tolua_function(tolua_S,"SetShadowCascade",tolua_Graphics_Light_SetShadowCascade00);
  19719. tolua_function(tolua_S,"SetShadowFocus",tolua_Graphics_Light_SetShadowFocus00);
  19720. tolua_function(tolua_S,"SetShadowIntensity",tolua_Graphics_Light_SetShadowIntensity00);
  19721. tolua_function(tolua_S,"SetShadowResolution",tolua_Graphics_Light_SetShadowResolution00);
  19722. tolua_function(tolua_S,"SetShadowNearFarRatio",tolua_Graphics_Light_SetShadowNearFarRatio00);
  19723. tolua_function(tolua_S,"SetRampTexture",tolua_Graphics_Light_SetRampTexture00);
  19724. tolua_function(tolua_S,"SetShapeTexture",tolua_Graphics_Light_SetShapeTexture00);
  19725. tolua_function(tolua_S,"GetLightType",tolua_Graphics_Light_GetLightType00);
  19726. tolua_function(tolua_S,"GetPerVertex",tolua_Graphics_Light_GetPerVertex00);
  19727. tolua_function(tolua_S,"GetColor",tolua_Graphics_Light_GetColor00);
  19728. tolua_function(tolua_S,"GetSpecularIntensity",tolua_Graphics_Light_GetSpecularIntensity00);
  19729. tolua_function(tolua_S,"GetRange",tolua_Graphics_Light_GetRange00);
  19730. tolua_function(tolua_S,"GetFov",tolua_Graphics_Light_GetFov00);
  19731. tolua_function(tolua_S,"GetAspectRatio",tolua_Graphics_Light_GetAspectRatio00);
  19732. tolua_function(tolua_S,"GetFadeDistance",tolua_Graphics_Light_GetFadeDistance00);
  19733. tolua_function(tolua_S,"GetShadowFadeDistance",tolua_Graphics_Light_GetShadowFadeDistance00);
  19734. tolua_function(tolua_S,"GetShadowBias",tolua_Graphics_Light_GetShadowBias00);
  19735. tolua_function(tolua_S,"GetShadowCascade",tolua_Graphics_Light_GetShadowCascade00);
  19736. tolua_function(tolua_S,"GetShadowFocus",tolua_Graphics_Light_GetShadowFocus00);
  19737. tolua_function(tolua_S,"GetShadowIntensity",tolua_Graphics_Light_GetShadowIntensity00);
  19738. tolua_function(tolua_S,"GetShadowResolution",tolua_Graphics_Light_GetShadowResolution00);
  19739. tolua_function(tolua_S,"GetShadowNearFarRatio",tolua_Graphics_Light_GetShadowNearFarRatio00);
  19740. tolua_function(tolua_S,"GetRampTexture",tolua_Graphics_Light_GetRampTexture00);
  19741. tolua_function(tolua_S,"GetShapeTexture",tolua_Graphics_Light_GetShapeTexture00);
  19742. tolua_function(tolua_S,"GetFrustum",tolua_Graphics_Light_GetFrustum00);
  19743. tolua_endmodule(tolua_S);
  19744. tolua_cclass(tolua_S,"Material","Material","Resource",NULL);
  19745. tolua_beginmodule(tolua_S,"Material");
  19746. tolua_function(tolua_S,"GetNumTechniques",tolua_Graphics_Material_GetNumTechniques00);
  19747. tolua_function(tolua_S,"GetTechniqueEntry",tolua_Graphics_Material_GetTechniqueEntry00);
  19748. tolua_function(tolua_S,"GetTechnique",tolua_Graphics_Material_GetTechnique00);
  19749. tolua_function(tolua_S,"GetPass",tolua_Graphics_Material_GetPass00);
  19750. tolua_function(tolua_S,"GetTexture",tolua_Graphics_Material_GetTexture00);
  19751. tolua_function(tolua_S,"GetTextures",tolua_Graphics_Material_GetTextures00);
  19752. tolua_function(tolua_S,"GetShaderParameter",tolua_Graphics_Material_GetShaderParameter00);
  19753. tolua_function(tolua_S,"GetCullMode",tolua_Graphics_Material_GetCullMode00);
  19754. tolua_function(tolua_S,"GetShadowCullMode",tolua_Graphics_Material_GetShadowCullMode00);
  19755. tolua_function(tolua_S,"GetDepthBias",tolua_Graphics_Material_GetDepthBias00);
  19756. tolua_function(tolua_S,"GetAuxViewFrameNumber",tolua_Graphics_Material_GetAuxViewFrameNumber00);
  19757. tolua_function(tolua_S,"GetOcclusion",tolua_Graphics_Material_GetOcclusion00);
  19758. tolua_function(tolua_S,"GetSpecular",tolua_Graphics_Material_GetSpecular00);
  19759. tolua_function(tolua_S,"GetTextureUnitName",tolua_Graphics_Material_GetTextureUnitName00);
  19760. tolua_endmodule(tolua_S);
  19761. tolua_cclass(tolua_S,"Model","Model","Resource",NULL);
  19762. tolua_beginmodule(tolua_S,"Model");
  19763. tolua_function(tolua_S,"GetBoundingBox",tolua_Graphics_Model_GetBoundingBox00);
  19764. tolua_function(tolua_S,"GetSkeleton",tolua_Graphics_Model_GetSkeleton00);
  19765. tolua_function(tolua_S,"GetNumGeometries",tolua_Graphics_Model_GetNumGeometries00);
  19766. tolua_function(tolua_S,"GetNumGeometryLodLevels",tolua_Graphics_Model_GetNumGeometryLodLevels00);
  19767. tolua_function(tolua_S,"GetGeometry",tolua_Graphics_Model_GetGeometry00);
  19768. tolua_function(tolua_S,"GetNumMorphs",tolua_Graphics_Model_GetNumMorphs00);
  19769. tolua_function(tolua_S,"GetMorph",tolua_Graphics_Model_GetMorph00);
  19770. tolua_function(tolua_S,"GetMorph",tolua_Graphics_Model_GetMorph01);
  19771. tolua_function(tolua_S,"GetMorph",tolua_Graphics_Model_GetMorph02);
  19772. tolua_function(tolua_S,"GetMorphRangeStart",tolua_Graphics_Model_GetMorphRangeStart00);
  19773. tolua_function(tolua_S,"GetMorphRangeCount",tolua_Graphics_Model_GetMorphRangeCount00);
  19774. tolua_endmodule(tolua_S);
  19775. tolua_cclass(tolua_S,"Octree","Octree","Component",NULL);
  19776. tolua_beginmodule(tolua_S,"Octree");
  19777. tolua_function(tolua_S,"Resize",tolua_Graphics_Octree_Resize00);
  19778. tolua_function(tolua_S,"Update",tolua_Graphics_Octree_Update00);
  19779. tolua_function(tolua_S,"AddManualDrawable",tolua_Graphics_Octree_AddManualDrawable00);
  19780. tolua_function(tolua_S,"RemoveManualDrawable",tolua_Graphics_Octree_RemoveManualDrawable00);
  19781. tolua_function(tolua_S,"GetDrawables",tolua_Graphics_Octree_GetDrawables00);
  19782. tolua_function(tolua_S,"Raycast",tolua_Graphics_Octree_Raycast00);
  19783. tolua_function(tolua_S,"RaycastSingle",tolua_Graphics_Octree_RaycastSingle00);
  19784. tolua_function(tolua_S,"GetNumLevels",tolua_Graphics_Octree_GetNumLevels00);
  19785. tolua_function(tolua_S,"QueueUpdate",tolua_Graphics_Octree_QueueUpdate00);
  19786. tolua_function(tolua_S,"QueueReinsertion",tolua_Graphics_Octree_QueueReinsertion00);
  19787. tolua_function(tolua_S,"DrawDebugGeometry",tolua_Graphics_Octree_DrawDebugGeometry00);
  19788. tolua_endmodule(tolua_S);
  19789. tolua_function(tolua_S,"GetOctree",tolua_Graphics_GetOctree00);
  19790. tolua_constant(tolua_S,"EMITTER_SPHERE",EMITTER_SPHERE);
  19791. tolua_constant(tolua_S,"EMITTER_BOX",EMITTER_BOX);
  19792. #ifdef __cplusplus
  19793. tolua_cclass(tolua_S,"ColorFrame","ColorFrame","",tolua_collect_ColorFrame);
  19794. #else
  19795. tolua_cclass(tolua_S,"ColorFrame","ColorFrame","",NULL);
  19796. #endif
  19797. tolua_beginmodule(tolua_S,"ColorFrame");
  19798. tolua_function(tolua_S,"new",tolua_Graphics_ColorFrame_new00);
  19799. tolua_function(tolua_S,"new_local",tolua_Graphics_ColorFrame_new00_local);
  19800. tolua_function(tolua_S,".call",tolua_Graphics_ColorFrame_new00_local);
  19801. tolua_function(tolua_S,"new",tolua_Graphics_ColorFrame_new01);
  19802. tolua_function(tolua_S,"new_local",tolua_Graphics_ColorFrame_new01_local);
  19803. tolua_function(tolua_S,".call",tolua_Graphics_ColorFrame_new01_local);
  19804. tolua_function(tolua_S,"new",tolua_Graphics_ColorFrame_new02);
  19805. tolua_function(tolua_S,"new_local",tolua_Graphics_ColorFrame_new02_local);
  19806. tolua_function(tolua_S,".call",tolua_Graphics_ColorFrame_new02_local);
  19807. tolua_function(tolua_S,"Interpolate",tolua_Graphics_ColorFrame_Interpolate00);
  19808. tolua_variable(tolua_S,"color",tolua_get_ColorFrame_color,tolua_set_ColorFrame_color);
  19809. tolua_variable(tolua_S,"time",tolua_get_ColorFrame_time,tolua_set_ColorFrame_time);
  19810. tolua_endmodule(tolua_S);
  19811. #ifdef __cplusplus
  19812. tolua_cclass(tolua_S,"TextureFrame","TextureFrame","",tolua_collect_TextureFrame);
  19813. #else
  19814. tolua_cclass(tolua_S,"TextureFrame","TextureFrame","",NULL);
  19815. #endif
  19816. tolua_beginmodule(tolua_S,"TextureFrame");
  19817. tolua_function(tolua_S,"new",tolua_Graphics_TextureFrame_new00);
  19818. tolua_function(tolua_S,"new_local",tolua_Graphics_TextureFrame_new00_local);
  19819. tolua_function(tolua_S,".call",tolua_Graphics_TextureFrame_new00_local);
  19820. tolua_variable(tolua_S,"uv",tolua_get_TextureFrame_uv,tolua_set_TextureFrame_uv);
  19821. tolua_variable(tolua_S,"time",tolua_get_TextureFrame_time,tolua_set_TextureFrame_time);
  19822. tolua_endmodule(tolua_S);
  19823. tolua_cclass(tolua_S,"ParticleEmitter","ParticleEmitter","BillboardSet",NULL);
  19824. tolua_beginmodule(tolua_S,"ParticleEmitter");
  19825. tolua_function(tolua_S,"Load",tolua_Graphics_ParticleEmitter_Load00);
  19826. tolua_function(tolua_S,"SetNumParticles",tolua_Graphics_ParticleEmitter_SetNumParticles00);
  19827. tolua_function(tolua_S,"SetEmissionRate",tolua_Graphics_ParticleEmitter_SetEmissionRate00);
  19828. tolua_function(tolua_S,"SetMinEmissionRate",tolua_Graphics_ParticleEmitter_SetMinEmissionRate00);
  19829. tolua_function(tolua_S,"SetMaxEmissionRate",tolua_Graphics_ParticleEmitter_SetMaxEmissionRate00);
  19830. tolua_function(tolua_S,"SetEmitterType",tolua_Graphics_ParticleEmitter_SetEmitterType00);
  19831. tolua_function(tolua_S,"SetEmitterSize",tolua_Graphics_ParticleEmitter_SetEmitterSize00);
  19832. tolua_function(tolua_S,"SetActiveTime",tolua_Graphics_ParticleEmitter_SetActiveTime00);
  19833. tolua_function(tolua_S,"SetInactiveTime",tolua_Graphics_ParticleEmitter_SetInactiveTime00);
  19834. tolua_function(tolua_S,"SetEmitting",tolua_Graphics_ParticleEmitter_SetEmitting00);
  19835. tolua_function(tolua_S,"SetUpdateInvisible",tolua_Graphics_ParticleEmitter_SetUpdateInvisible00);
  19836. tolua_function(tolua_S,"SetTimeToLive",tolua_Graphics_ParticleEmitter_SetTimeToLive00);
  19837. tolua_function(tolua_S,"SetMinTimeToLive",tolua_Graphics_ParticleEmitter_SetMinTimeToLive00);
  19838. tolua_function(tolua_S,"SetMaxTimeToLive",tolua_Graphics_ParticleEmitter_SetMaxTimeToLive00);
  19839. tolua_function(tolua_S,"SetParticleSize",tolua_Graphics_ParticleEmitter_SetParticleSize00);
  19840. tolua_function(tolua_S,"SetMinParticleSize",tolua_Graphics_ParticleEmitter_SetMinParticleSize00);
  19841. tolua_function(tolua_S,"SetMaxParticleSize",tolua_Graphics_ParticleEmitter_SetMaxParticleSize00);
  19842. tolua_function(tolua_S,"SetMinDirection",tolua_Graphics_ParticleEmitter_SetMinDirection00);
  19843. tolua_function(tolua_S,"SetMaxDirection",tolua_Graphics_ParticleEmitter_SetMaxDirection00);
  19844. tolua_function(tolua_S,"SetVelocity",tolua_Graphics_ParticleEmitter_SetVelocity00);
  19845. tolua_function(tolua_S,"SetMinVelocity",tolua_Graphics_ParticleEmitter_SetMinVelocity00);
  19846. tolua_function(tolua_S,"SetMaxVelocity",tolua_Graphics_ParticleEmitter_SetMaxVelocity00);
  19847. tolua_function(tolua_S,"SetRotation",tolua_Graphics_ParticleEmitter_SetRotation00);
  19848. tolua_function(tolua_S,"SetMinRotation",tolua_Graphics_ParticleEmitter_SetMinRotation00);
  19849. tolua_function(tolua_S,"SetMaxRotation",tolua_Graphics_ParticleEmitter_SetMaxRotation00);
  19850. tolua_function(tolua_S,"SetRotationSpeed",tolua_Graphics_ParticleEmitter_SetRotationSpeed00);
  19851. tolua_function(tolua_S,"SetMinRotationSpeed",tolua_Graphics_ParticleEmitter_SetMinRotationSpeed00);
  19852. tolua_function(tolua_S,"SetMaxRotationSpeed",tolua_Graphics_ParticleEmitter_SetMaxRotationSpeed00);
  19853. tolua_function(tolua_S,"SetConstantForce",tolua_Graphics_ParticleEmitter_SetConstantForce00);
  19854. tolua_function(tolua_S,"SetDampingForce",tolua_Graphics_ParticleEmitter_SetDampingForce00);
  19855. tolua_function(tolua_S,"SetSizeAdd",tolua_Graphics_ParticleEmitter_SetSizeAdd00);
  19856. tolua_function(tolua_S,"SetSizeMul",tolua_Graphics_ParticleEmitter_SetSizeMul00);
  19857. tolua_function(tolua_S,"SetColor",tolua_Graphics_ParticleEmitter_SetColor00);
  19858. tolua_function(tolua_S,"SetNumColors",tolua_Graphics_ParticleEmitter_SetNumColors00);
  19859. tolua_function(tolua_S,"SetNumTextureFrames",tolua_Graphics_ParticleEmitter_SetNumTextureFrames00);
  19860. tolua_function(tolua_S,"GetNumParticles",tolua_Graphics_ParticleEmitter_GetNumParticles00);
  19861. tolua_function(tolua_S,"IsEmitting",tolua_Graphics_ParticleEmitter_IsEmitting00);
  19862. tolua_function(tolua_S,"GetUpdateInvisible",tolua_Graphics_ParticleEmitter_GetUpdateInvisible00);
  19863. tolua_function(tolua_S,"GetMinEmissionRate",tolua_Graphics_ParticleEmitter_GetMinEmissionRate00);
  19864. tolua_function(tolua_S,"GetMaxEmissionRate",tolua_Graphics_ParticleEmitter_GetMaxEmissionRate00);
  19865. tolua_function(tolua_S,"GetEmitterType",tolua_Graphics_ParticleEmitter_GetEmitterType00);
  19866. tolua_function(tolua_S,"GetEmitterSize",tolua_Graphics_ParticleEmitter_GetEmitterSize00);
  19867. tolua_function(tolua_S,"GetActiveTime",tolua_Graphics_ParticleEmitter_GetActiveTime00);
  19868. tolua_function(tolua_S,"GetInactiveTime",tolua_Graphics_ParticleEmitter_GetInactiveTime00);
  19869. tolua_function(tolua_S,"GetMinTimeToLive",tolua_Graphics_ParticleEmitter_GetMinTimeToLive00);
  19870. tolua_function(tolua_S,"GetMaxTimeToLive",tolua_Graphics_ParticleEmitter_GetMaxTimeToLive00);
  19871. tolua_function(tolua_S,"GetMinParticleSize",tolua_Graphics_ParticleEmitter_GetMinParticleSize00);
  19872. tolua_function(tolua_S,"GetMaxParticleSize",tolua_Graphics_ParticleEmitter_GetMaxParticleSize00);
  19873. tolua_function(tolua_S,"GetMinDirection",tolua_Graphics_ParticleEmitter_GetMinDirection00);
  19874. tolua_function(tolua_S,"GetMaxDirection",tolua_Graphics_ParticleEmitter_GetMaxDirection00);
  19875. tolua_function(tolua_S,"GetMinVelocity",tolua_Graphics_ParticleEmitter_GetMinVelocity00);
  19876. tolua_function(tolua_S,"GetMaxVelocity",tolua_Graphics_ParticleEmitter_GetMaxVelocity00);
  19877. tolua_function(tolua_S,"GetMinRotation",tolua_Graphics_ParticleEmitter_GetMinRotation00);
  19878. tolua_function(tolua_S,"GetMaxRotation",tolua_Graphics_ParticleEmitter_GetMaxRotation00);
  19879. tolua_function(tolua_S,"GetMinRotationSpeed",tolua_Graphics_ParticleEmitter_GetMinRotationSpeed00);
  19880. tolua_function(tolua_S,"GetMaxRotationSpeed",tolua_Graphics_ParticleEmitter_GetMaxRotationSpeed00);
  19881. tolua_function(tolua_S,"GetConstantForce",tolua_Graphics_ParticleEmitter_GetConstantForce00);
  19882. tolua_function(tolua_S,"GetDampingForce",tolua_Graphics_ParticleEmitter_GetDampingForce00);
  19883. tolua_function(tolua_S,"GetSizeAdd",tolua_Graphics_ParticleEmitter_GetSizeAdd00);
  19884. tolua_function(tolua_S,"GetSizeMul",tolua_Graphics_ParticleEmitter_GetSizeMul00);
  19885. tolua_function(tolua_S,"GetNumColors",tolua_Graphics_ParticleEmitter_GetNumColors00);
  19886. tolua_function(tolua_S,"GetColor",tolua_Graphics_ParticleEmitter_GetColor00);
  19887. tolua_function(tolua_S,"GetNumTextureFrames",tolua_Graphics_ParticleEmitter_GetNumTextureFrames00);
  19888. tolua_function(tolua_S,"GetTextureFrame",tolua_Graphics_ParticleEmitter_GetTextureFrame00);
  19889. tolua_function(tolua_S,"GetTextureFrame",tolua_Graphics_ParticleEmitter_GetTextureFrame01);
  19890. tolua_endmodule(tolua_S);
  19891. tolua_cclass(tolua_S,"Renderer","Renderer","",NULL);
  19892. tolua_beginmodule(tolua_S,"Renderer");
  19893. tolua_function(tolua_S,"SetNumViewports",tolua_Graphics_Renderer_SetNumViewports00);
  19894. tolua_function(tolua_S,"SetViewport",tolua_Graphics_Renderer_SetViewport00);
  19895. tolua_function(tolua_S,"SetDefaultRenderPath",tolua_Graphics_Renderer_SetDefaultRenderPath00);
  19896. tolua_function(tolua_S,"SetDefaultRenderPath",tolua_Graphics_Renderer_SetDefaultRenderPath01);
  19897. tolua_function(tolua_S,"SetSpecularLighting",tolua_Graphics_Renderer_SetSpecularLighting00);
  19898. tolua_function(tolua_S,"SetTextureAnisotropy",tolua_Graphics_Renderer_SetTextureAnisotropy00);
  19899. tolua_function(tolua_S,"SetTextureFilterMode",tolua_Graphics_Renderer_SetTextureFilterMode00);
  19900. tolua_function(tolua_S,"SetTextureQuality",tolua_Graphics_Renderer_SetTextureQuality00);
  19901. tolua_function(tolua_S,"SetMaterialQuality",tolua_Graphics_Renderer_SetMaterialQuality00);
  19902. tolua_function(tolua_S,"SetDrawShadows",tolua_Graphics_Renderer_SetDrawShadows00);
  19903. tolua_function(tolua_S,"SetShadowMapSize",tolua_Graphics_Renderer_SetShadowMapSize00);
  19904. tolua_function(tolua_S,"SetShadowQuality",tolua_Graphics_Renderer_SetShadowQuality00);
  19905. tolua_function(tolua_S,"SetReuseShadowMaps",tolua_Graphics_Renderer_SetReuseShadowMaps00);
  19906. tolua_function(tolua_S,"SetMaxShadowMaps",tolua_Graphics_Renderer_SetMaxShadowMaps00);
  19907. tolua_function(tolua_S,"SetMaxShadowCascades",tolua_Graphics_Renderer_SetMaxShadowCascades00);
  19908. tolua_function(tolua_S,"SetDynamicInstancing",tolua_Graphics_Renderer_SetDynamicInstancing00);
  19909. tolua_function(tolua_S,"SetMinInstances",tolua_Graphics_Renderer_SetMinInstances00);
  19910. tolua_function(tolua_S,"SetMaxInstanceTriangles",tolua_Graphics_Renderer_SetMaxInstanceTriangles00);
  19911. tolua_function(tolua_S,"SetMaxSortedInstances",tolua_Graphics_Renderer_SetMaxSortedInstances00);
  19912. tolua_function(tolua_S,"SetMaxOccluderTriangles",tolua_Graphics_Renderer_SetMaxOccluderTriangles00);
  19913. tolua_function(tolua_S,"SetOcclusionBufferSize",tolua_Graphics_Renderer_SetOcclusionBufferSize00);
  19914. tolua_function(tolua_S,"SetOccluderSizeThreshold",tolua_Graphics_Renderer_SetOccluderSizeThreshold00);
  19915. tolua_function(tolua_S,"ReloadShaders",tolua_Graphics_Renderer_ReloadShaders00);
  19916. tolua_function(tolua_S,"GetNumViewports",tolua_Graphics_Renderer_GetNumViewports00);
  19917. tolua_function(tolua_S,"GetViewport",tolua_Graphics_Renderer_GetViewport00);
  19918. tolua_function(tolua_S,"GetDefaultRenderPath",tolua_Graphics_Renderer_GetDefaultRenderPath00);
  19919. tolua_function(tolua_S,"GetSpecularLighting",tolua_Graphics_Renderer_GetSpecularLighting00);
  19920. tolua_function(tolua_S,"GetDrawShadows",tolua_Graphics_Renderer_GetDrawShadows00);
  19921. tolua_function(tolua_S,"GetTextureAnisotropy",tolua_Graphics_Renderer_GetTextureAnisotropy00);
  19922. tolua_function(tolua_S,"GetTextureFilterMode",tolua_Graphics_Renderer_GetTextureFilterMode00);
  19923. tolua_function(tolua_S,"GetTextureQuality",tolua_Graphics_Renderer_GetTextureQuality00);
  19924. tolua_function(tolua_S,"GetMaterialQuality",tolua_Graphics_Renderer_GetMaterialQuality00);
  19925. tolua_function(tolua_S,"GetShadowMapSize",tolua_Graphics_Renderer_GetShadowMapSize00);
  19926. tolua_function(tolua_S,"GetShadowQuality",tolua_Graphics_Renderer_GetShadowQuality00);
  19927. tolua_function(tolua_S,"GetReuseShadowMaps",tolua_Graphics_Renderer_GetReuseShadowMaps00);
  19928. tolua_function(tolua_S,"GetMaxShadowMaps",tolua_Graphics_Renderer_GetMaxShadowMaps00);
  19929. tolua_function(tolua_S,"GetMaxShadowCascades",tolua_Graphics_Renderer_GetMaxShadowCascades00);
  19930. tolua_function(tolua_S,"GetDynamicInstancing",tolua_Graphics_Renderer_GetDynamicInstancing00);
  19931. tolua_function(tolua_S,"GetMinInstances",tolua_Graphics_Renderer_GetMinInstances00);
  19932. tolua_function(tolua_S,"GetMaxInstanceTriangles",tolua_Graphics_Renderer_GetMaxInstanceTriangles00);
  19933. tolua_function(tolua_S,"GetMaxSortedInstances",tolua_Graphics_Renderer_GetMaxSortedInstances00);
  19934. tolua_function(tolua_S,"GetMaxOccluderTriangles",tolua_Graphics_Renderer_GetMaxOccluderTriangles00);
  19935. tolua_function(tolua_S,"GetOcclusionBufferSize",tolua_Graphics_Renderer_GetOcclusionBufferSize00);
  19936. tolua_function(tolua_S,"GetOccluderSizeThreshold",tolua_Graphics_Renderer_GetOccluderSizeThreshold00);
  19937. tolua_function(tolua_S,"GetNumViews",tolua_Graphics_Renderer_GetNumViews00);
  19938. tolua_function(tolua_S,"GetNumPrimitives",tolua_Graphics_Renderer_GetNumPrimitives00);
  19939. tolua_function(tolua_S,"GetNumBatches",tolua_Graphics_Renderer_GetNumBatches00);
  19940. tolua_function(tolua_S,"GetNumGeometries",tolua_Graphics_Renderer_GetNumGeometries00);
  19941. tolua_function(tolua_S,"GetNumLights",tolua_Graphics_Renderer_GetNumLights00);
  19942. tolua_function(tolua_S,"GetNumShadowMaps",tolua_Graphics_Renderer_GetNumShadowMaps00);
  19943. tolua_function(tolua_S,"GetNumOccluders",tolua_Graphics_Renderer_GetNumOccluders00);
  19944. tolua_function(tolua_S,"GetDefaultZone",tolua_Graphics_Renderer_GetDefaultZone00);
  19945. tolua_function(tolua_S,"GetQuadDirLight",tolua_Graphics_Renderer_GetQuadDirLight00);
  19946. tolua_function(tolua_S,"GetDefaultMaterial",tolua_Graphics_Renderer_GetDefaultMaterial00);
  19947. tolua_function(tolua_S,"GetDefaultLightRamp",tolua_Graphics_Renderer_GetDefaultLightRamp00);
  19948. tolua_function(tolua_S,"GetDefaultLightSpot",tolua_Graphics_Renderer_GetDefaultLightSpot00);
  19949. tolua_function(tolua_S,"GetFaceSelectCubeMap",tolua_Graphics_Renderer_GetFaceSelectCubeMap00);
  19950. tolua_function(tolua_S,"GetIndirectionCubeMap",tolua_Graphics_Renderer_GetIndirectionCubeMap00);
  19951. tolua_function(tolua_S,"GetInstancingBuffer",tolua_Graphics_Renderer_GetInstancingBuffer00);
  19952. tolua_function(tolua_S,"GetVertexShader",tolua_Graphics_Renderer_GetVertexShader00);
  19953. tolua_function(tolua_S,"GetPixelShader",tolua_Graphics_Renderer_GetPixelShader00);
  19954. tolua_function(tolua_S,"GetStencilVS",tolua_Graphics_Renderer_GetStencilVS00);
  19955. tolua_function(tolua_S,"GetStencilPS",tolua_Graphics_Renderer_GetStencilPS00);
  19956. tolua_function(tolua_S,"GetFrameInfo",tolua_Graphics_Renderer_GetFrameInfo00);
  19957. tolua_endmodule(tolua_S);
  19958. tolua_function(tolua_S,"GetRenderer",tolua_Graphics_GetRenderer00);
  19959. tolua_cclass(tolua_S,"RenderSurface","RenderSurface","",NULL);
  19960. tolua_beginmodule(tolua_S,"RenderSurface");
  19961. tolua_function(tolua_S,"SetNumViewports",tolua_Graphics_RenderSurface_SetNumViewports00);
  19962. tolua_function(tolua_S,"SetViewport",tolua_Graphics_RenderSurface_SetViewport00);
  19963. tolua_function(tolua_S,"SetUpdateMode",tolua_Graphics_RenderSurface_SetUpdateMode00);
  19964. tolua_function(tolua_S,"SetLinkedRenderTarget",tolua_Graphics_RenderSurface_SetLinkedRenderTarget00);
  19965. tolua_function(tolua_S,"SetLinkedDepthStencil",tolua_Graphics_RenderSurface_SetLinkedDepthStencil00);
  19966. tolua_function(tolua_S,"QueueUpdate",tolua_Graphics_RenderSurface_QueueUpdate00);
  19967. tolua_function(tolua_S,"Release",tolua_Graphics_RenderSurface_Release00);
  19968. tolua_function(tolua_S,"GetParentTexture",tolua_Graphics_RenderSurface_GetParentTexture00);
  19969. tolua_function(tolua_S,"GetWidth",tolua_Graphics_RenderSurface_GetWidth00);
  19970. tolua_function(tolua_S,"GetHeight",tolua_Graphics_RenderSurface_GetHeight00);
  19971. tolua_function(tolua_S,"GetUsage",tolua_Graphics_RenderSurface_GetUsage00);
  19972. tolua_function(tolua_S,"GetLinkedRenderTarget",tolua_Graphics_RenderSurface_GetLinkedRenderTarget00);
  19973. tolua_function(tolua_S,"GetLinkedDepthStencil",tolua_Graphics_RenderSurface_GetLinkedDepthStencil00);
  19974. tolua_endmodule(tolua_S);
  19975. #ifdef __cplusplus
  19976. tolua_cclass(tolua_S,"Bone","Bone","",tolua_collect_Bone);
  19977. #else
  19978. tolua_cclass(tolua_S,"Bone","Bone","",NULL);
  19979. #endif
  19980. tolua_beginmodule(tolua_S,"Bone");
  19981. tolua_function(tolua_S,"new",tolua_Graphics_Bone_new00);
  19982. tolua_function(tolua_S,"new_local",tolua_Graphics_Bone_new00_local);
  19983. tolua_function(tolua_S,".call",tolua_Graphics_Bone_new00_local);
  19984. tolua_variable(tolua_S,"name",tolua_get_Bone_name,tolua_set_Bone_name);
  19985. tolua_variable(tolua_S,"nameHash",tolua_get_Bone_nameHash,tolua_set_Bone_nameHash);
  19986. tolua_variable(tolua_S,"parentIndex",tolua_get_Bone_parentIndex,tolua_set_Bone_parentIndex);
  19987. tolua_variable(tolua_S,"initialPosition",tolua_get_Bone_initialPosition,tolua_set_Bone_initialPosition);
  19988. tolua_variable(tolua_S,"initialRotation",tolua_get_Bone_initialRotation,tolua_set_Bone_initialRotation);
  19989. tolua_variable(tolua_S,"initialScale",tolua_get_Bone_initialScale,tolua_set_Bone_initialScale);
  19990. tolua_variable(tolua_S,"offsetMatrix",tolua_get_Bone_offsetMatrix,tolua_set_Bone_offsetMatrix);
  19991. tolua_variable(tolua_S,"animated",tolua_get_Bone_animated,tolua_set_Bone_animated);
  19992. tolua_variable(tolua_S,"collisionMask",tolua_get_Bone_unsigned_collisionMask,tolua_set_Bone_unsigned_collisionMask);
  19993. tolua_variable(tolua_S,"radius",tolua_get_Bone_radius,tolua_set_Bone_radius);
  19994. tolua_variable(tolua_S,"boundingBox",tolua_get_Bone_boundingBox,tolua_set_Bone_boundingBox);
  19995. tolua_variable(tolua_S,"node",tolua_get_Bone_node_ptr,tolua_set_Bone_node_ptr);
  19996. tolua_endmodule(tolua_S);
  19997. tolua_cclass(tolua_S,"Skeleton","Skeleton","",NULL);
  19998. tolua_beginmodule(tolua_S,"Skeleton");
  19999. tolua_function(tolua_S,"GetNumBones",tolua_Graphics_Skeleton_GetNumBones00);
  20000. tolua_function(tolua_S,"GetRootBone",tolua_Graphics_Skeleton_GetRootBone00);
  20001. tolua_function(tolua_S,"GetBone",tolua_Graphics_Skeleton_GetBone00);
  20002. tolua_endmodule(tolua_S);
  20003. tolua_cclass(tolua_S,"Skybox","Skybox","StaticModel",NULL);
  20004. tolua_beginmodule(tolua_S,"Skybox");
  20005. tolua_endmodule(tolua_S);
  20006. tolua_cclass(tolua_S,"StaticModel","StaticModel","Drawable",NULL);
  20007. tolua_beginmodule(tolua_S,"StaticModel");
  20008. tolua_function(tolua_S,"SetModel",tolua_Graphics_StaticModel_SetModel00);
  20009. tolua_function(tolua_S,"SetMaterial",tolua_Graphics_StaticModel_SetMaterial00);
  20010. tolua_function(tolua_S,"SetMaterial",tolua_Graphics_StaticModel_SetMaterial01);
  20011. tolua_function(tolua_S,"SetOcclusionLodLevel",tolua_Graphics_StaticModel_SetOcclusionLodLevel00);
  20012. tolua_function(tolua_S,"GetModel",tolua_Graphics_StaticModel_GetModel00);
  20013. tolua_function(tolua_S,"GetBoundingBox",tolua_Graphics_StaticModel_GetBoundingBox00);
  20014. tolua_function(tolua_S,"GetNumGeometries",tolua_Graphics_StaticModel_GetNumGeometries00);
  20015. tolua_function(tolua_S,"GetMaterial",tolua_Graphics_StaticModel_GetMaterial00);
  20016. tolua_function(tolua_S,"GetOcclusionLodLevel",tolua_Graphics_StaticModel_GetOcclusionLodLevel00);
  20017. tolua_function(tolua_S,"IsInside",tolua_Graphics_StaticModel_IsInside00);
  20018. tolua_function(tolua_S,"IsInsideLocal",tolua_Graphics_StaticModel_IsInsideLocal00);
  20019. tolua_endmodule(tolua_S);
  20020. tolua_cclass(tolua_S,"Technique","Technique","Resource",NULL);
  20021. tolua_beginmodule(tolua_S,"Technique");
  20022. tolua_function(tolua_S,"SetIsSM3",tolua_Graphics_Technique_SetIsSM300);
  20023. tolua_function(tolua_S,"ReleaseShaders",tolua_Graphics_Technique_ReleaseShaders00);
  20024. tolua_function(tolua_S,"IsSM3",tolua_Graphics_Technique_IsSM300);
  20025. tolua_endmodule(tolua_S);
  20026. tolua_cclass(tolua_S,"Terrain","Terrain","Component",NULL);
  20027. tolua_beginmodule(tolua_S,"Terrain");
  20028. tolua_function(tolua_S,"SetPatchSize",tolua_Graphics_Terrain_SetPatchSize00);
  20029. tolua_function(tolua_S,"SetSpacing",tolua_Graphics_Terrain_SetSpacing00);
  20030. tolua_function(tolua_S,"SetSmoothing",tolua_Graphics_Terrain_SetSmoothing00);
  20031. tolua_function(tolua_S,"SetHeightMap",tolua_Graphics_Terrain_SetHeightMap00);
  20032. tolua_function(tolua_S,"SetMaterial",tolua_Graphics_Terrain_SetMaterial00);
  20033. tolua_function(tolua_S,"SetDrawDistance",tolua_Graphics_Terrain_SetDrawDistance00);
  20034. tolua_function(tolua_S,"SetShadowDistance",tolua_Graphics_Terrain_SetShadowDistance00);
  20035. tolua_function(tolua_S,"SetLodBias",tolua_Graphics_Terrain_SetLodBias00);
  20036. tolua_function(tolua_S,"SetViewMask",tolua_Graphics_Terrain_SetViewMask00);
  20037. tolua_function(tolua_S,"SetLightMask",tolua_Graphics_Terrain_SetLightMask00);
  20038. tolua_function(tolua_S,"SetShadowMask",tolua_Graphics_Terrain_SetShadowMask00);
  20039. tolua_function(tolua_S,"SetZoneMask",tolua_Graphics_Terrain_SetZoneMask00);
  20040. tolua_function(tolua_S,"SetMaxLights",tolua_Graphics_Terrain_SetMaxLights00);
  20041. tolua_function(tolua_S,"SetCastShadows",tolua_Graphics_Terrain_SetCastShadows00);
  20042. tolua_function(tolua_S,"SetOccluder",tolua_Graphics_Terrain_SetOccluder00);
  20043. tolua_function(tolua_S,"SetOccludee",tolua_Graphics_Terrain_SetOccludee00);
  20044. tolua_function(tolua_S,"GetPatchSize",tolua_Graphics_Terrain_GetPatchSize00);
  20045. tolua_function(tolua_S,"GetSpacing",tolua_Graphics_Terrain_GetSpacing00);
  20046. tolua_function(tolua_S,"GetNumVertices",tolua_Graphics_Terrain_GetNumVertices00);
  20047. tolua_function(tolua_S,"GetNumPatches",tolua_Graphics_Terrain_GetNumPatches00);
  20048. tolua_function(tolua_S,"GetSmoothing",tolua_Graphics_Terrain_GetSmoothing00);
  20049. tolua_function(tolua_S,"GetHeightMap",tolua_Graphics_Terrain_GetHeightMap00);
  20050. tolua_function(tolua_S,"GetMaterial",tolua_Graphics_Terrain_GetMaterial00);
  20051. tolua_function(tolua_S,"GetPatch",tolua_Graphics_Terrain_GetPatch00);
  20052. tolua_function(tolua_S,"GetPatch",tolua_Graphics_Terrain_GetPatch01);
  20053. tolua_function(tolua_S,"GetHeight",tolua_Graphics_Terrain_GetHeight00);
  20054. tolua_function(tolua_S,"GetNormal",tolua_Graphics_Terrain_GetNormal00);
  20055. tolua_function(tolua_S,"GetDrawDistance",tolua_Graphics_Terrain_GetDrawDistance00);
  20056. tolua_function(tolua_S,"GetShadowDistance",tolua_Graphics_Terrain_GetShadowDistance00);
  20057. tolua_function(tolua_S,"GetLodBias",tolua_Graphics_Terrain_GetLodBias00);
  20058. tolua_function(tolua_S,"GetViewMask",tolua_Graphics_Terrain_GetViewMask00);
  20059. tolua_function(tolua_S,"GetLightMask",tolua_Graphics_Terrain_GetLightMask00);
  20060. tolua_function(tolua_S,"GetShadowMask",tolua_Graphics_Terrain_GetShadowMask00);
  20061. tolua_function(tolua_S,"GetZoneMask",tolua_Graphics_Terrain_GetZoneMask00);
  20062. tolua_function(tolua_S,"GetMaxLights",tolua_Graphics_Terrain_GetMaxLights00);
  20063. tolua_function(tolua_S,"IsVisible",tolua_Graphics_Terrain_IsVisible00);
  20064. tolua_function(tolua_S,"GetCastShadows",tolua_Graphics_Terrain_GetCastShadows00);
  20065. tolua_function(tolua_S,"IsOccluder",tolua_Graphics_Terrain_IsOccluder00);
  20066. tolua_function(tolua_S,"IsOccludee",tolua_Graphics_Terrain_IsOccludee00);
  20067. tolua_endmodule(tolua_S);
  20068. tolua_cclass(tolua_S,"TerrainPatch","TerrainPatch","Drawable",NULL);
  20069. tolua_beginmodule(tolua_S,"TerrainPatch");
  20070. tolua_function(tolua_S,"SetOwner",tolua_Graphics_TerrainPatch_SetOwner00);
  20071. tolua_function(tolua_S,"SetNeighbors",tolua_Graphics_TerrainPatch_SetNeighbors00);
  20072. tolua_function(tolua_S,"SetMaterial",tolua_Graphics_TerrainPatch_SetMaterial00);
  20073. tolua_function(tolua_S,"SetBoundingBox",tolua_Graphics_TerrainPatch_SetBoundingBox00);
  20074. tolua_function(tolua_S,"SetCoordinates",tolua_Graphics_TerrainPatch_SetCoordinates00);
  20075. tolua_function(tolua_S,"SetOcclusionOffset",tolua_Graphics_TerrainPatch_SetOcclusionOffset00);
  20076. tolua_function(tolua_S,"ResetLod",tolua_Graphics_TerrainPatch_ResetLod00);
  20077. tolua_function(tolua_S,"GetGeometry",tolua_Graphics_TerrainPatch_GetGeometry00);
  20078. tolua_function(tolua_S,"GetMaxLodGeometry",tolua_Graphics_TerrainPatch_GetMaxLodGeometry00);
  20079. tolua_function(tolua_S,"GetMinLodGeometry",tolua_Graphics_TerrainPatch_GetMinLodGeometry00);
  20080. tolua_function(tolua_S,"GetVertexBuffer",tolua_Graphics_TerrainPatch_GetVertexBuffer00);
  20081. tolua_function(tolua_S,"GetOwner",tolua_Graphics_TerrainPatch_GetOwner00);
  20082. tolua_function(tolua_S,"GetNorthPatch",tolua_Graphics_TerrainPatch_GetNorthPatch00);
  20083. tolua_function(tolua_S,"GetSouthPatch",tolua_Graphics_TerrainPatch_GetSouthPatch00);
  20084. tolua_function(tolua_S,"GetWestPatch",tolua_Graphics_TerrainPatch_GetWestPatch00);
  20085. tolua_function(tolua_S,"GetEastPatch",tolua_Graphics_TerrainPatch_GetEastPatch00);
  20086. tolua_function(tolua_S,"GetBoundingBox",tolua_Graphics_TerrainPatch_GetBoundingBox00);
  20087. tolua_function(tolua_S,"GetCoordinates",tolua_Graphics_TerrainPatch_GetCoordinates00);
  20088. tolua_function(tolua_S,"GetLodLevel",tolua_Graphics_TerrainPatch_GetLodLevel00);
  20089. tolua_function(tolua_S,"GetOcclusionOffset",tolua_Graphics_TerrainPatch_GetOcclusionOffset00);
  20090. tolua_function(tolua_S,"GetOcclusionOffset",tolua_Graphics_TerrainPatch_GetOcclusionOffset01);
  20091. tolua_endmodule(tolua_S);
  20092. tolua_cclass(tolua_S,"Texture","Texture","Resource",NULL);
  20093. tolua_beginmodule(tolua_S,"Texture");
  20094. tolua_function(tolua_S,"SetNumLevels",tolua_Graphics_Texture_SetNumLevels00);
  20095. tolua_function(tolua_S,"SetFilterMode",tolua_Graphics_Texture_SetFilterMode00);
  20096. tolua_function(tolua_S,"SetAddressMode",tolua_Graphics_Texture_SetAddressMode00);
  20097. tolua_function(tolua_S,"SetBorderColor",tolua_Graphics_Texture_SetBorderColor00);
  20098. tolua_function(tolua_S,"SetSRGB",tolua_Graphics_Texture_SetSRGB00);
  20099. tolua_function(tolua_S,"SetBackupTexture",tolua_Graphics_Texture_SetBackupTexture00);
  20100. tolua_function(tolua_S,"GetFormat",tolua_Graphics_Texture_GetFormat00);
  20101. tolua_function(tolua_S,"IsCompressed",tolua_Graphics_Texture_IsCompressed00);
  20102. tolua_function(tolua_S,"GetLevels",tolua_Graphics_Texture_GetLevels00);
  20103. tolua_function(tolua_S,"GetWidth",tolua_Graphics_Texture_GetWidth00);
  20104. tolua_function(tolua_S,"GetHeight",tolua_Graphics_Texture_GetHeight00);
  20105. tolua_function(tolua_S,"GetFilterMode",tolua_Graphics_Texture_GetFilterMode00);
  20106. tolua_function(tolua_S,"GetAddressMode",tolua_Graphics_Texture_GetAddressMode00);
  20107. tolua_function(tolua_S,"GetBorderColor",tolua_Graphics_Texture_GetBorderColor00);
  20108. tolua_function(tolua_S,"GetSRGB",tolua_Graphics_Texture_GetSRGB00);
  20109. tolua_function(tolua_S,"GetBackupTexture",tolua_Graphics_Texture_GetBackupTexture00);
  20110. tolua_function(tolua_S,"GetLevelWidth",tolua_Graphics_Texture_GetLevelWidth00);
  20111. tolua_function(tolua_S,"GetLevelHeight",tolua_Graphics_Texture_GetLevelHeight00);
  20112. tolua_function(tolua_S,"GetUsage",tolua_Graphics_Texture_GetUsage00);
  20113. tolua_function(tolua_S,"GetDataSize",tolua_Graphics_Texture_GetDataSize00);
  20114. tolua_function(tolua_S,"GetRowDataSize",tolua_Graphics_Texture_GetRowDataSize00);
  20115. tolua_endmodule(tolua_S);
  20116. tolua_cclass(tolua_S,"Texture2D","Texture2D","Texture",NULL);
  20117. tolua_beginmodule(tolua_S,"Texture2D");
  20118. tolua_function(tolua_S,"GetRenderSurface",tolua_Graphics_Texture2D_GetRenderSurface00);
  20119. tolua_endmodule(tolua_S);
  20120. tolua_cclass(tolua_S,"TextureCube","TextureCube","Texture",NULL);
  20121. tolua_beginmodule(tolua_S,"TextureCube");
  20122. tolua_function(tolua_S,"GetRenderSurface",tolua_Graphics_TextureCube_GetRenderSurface00);
  20123. tolua_endmodule(tolua_S);
  20124. tolua_cclass(tolua_S,"Zone","Zone","Drawable",NULL);
  20125. tolua_beginmodule(tolua_S,"Zone");
  20126. tolua_function(tolua_S,"SetBoundingBox",tolua_Graphics_Zone_SetBoundingBox00);
  20127. tolua_function(tolua_S,"SetAmbientColor",tolua_Graphics_Zone_SetAmbientColor00);
  20128. tolua_function(tolua_S,"SetFogColor",tolua_Graphics_Zone_SetFogColor00);
  20129. tolua_function(tolua_S,"SetFogStart",tolua_Graphics_Zone_SetFogStart00);
  20130. tolua_function(tolua_S,"SetFogEnd",tolua_Graphics_Zone_SetFogEnd00);
  20131. tolua_function(tolua_S,"SetPriority",tolua_Graphics_Zone_SetPriority00);
  20132. tolua_function(tolua_S,"SetOverride",tolua_Graphics_Zone_SetOverride00);
  20133. tolua_function(tolua_S,"SetAmbientGradient",tolua_Graphics_Zone_SetAmbientGradient00);
  20134. tolua_function(tolua_S,"GetBoundingBox",tolua_Graphics_Zone_GetBoundingBox00);
  20135. tolua_function(tolua_S,"GetInverseWorldTransform",tolua_Graphics_Zone_GetInverseWorldTransform00);
  20136. tolua_function(tolua_S,"GetAmbientColor",tolua_Graphics_Zone_GetAmbientColor00);
  20137. tolua_function(tolua_S,"GetAmbientStartColor",tolua_Graphics_Zone_GetAmbientStartColor00);
  20138. tolua_function(tolua_S,"GetAmbientEndColor",tolua_Graphics_Zone_GetAmbientEndColor00);
  20139. tolua_function(tolua_S,"GetFogColor",tolua_Graphics_Zone_GetFogColor00);
  20140. tolua_function(tolua_S,"GetFogStart",tolua_Graphics_Zone_GetFogStart00);
  20141. tolua_function(tolua_S,"GetFogEnd",tolua_Graphics_Zone_GetFogEnd00);
  20142. tolua_function(tolua_S,"GetPriority",tolua_Graphics_Zone_GetPriority00);
  20143. tolua_function(tolua_S,"GetOverride",tolua_Graphics_Zone_GetOverride00);
  20144. tolua_function(tolua_S,"GetAmbientGradient",tolua_Graphics_Zone_GetAmbientGradient00);
  20145. tolua_function(tolua_S,"IsInside",tolua_Graphics_Zone_IsInside00);
  20146. tolua_endmodule(tolua_S);
  20147. tolua_endmodule(tolua_S);
  20148. return 1;
  20149. }
  20150. #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
  20151. TOLUA_API int luaopen_Graphics (lua_State* tolua_S) {
  20152. return tolua_Graphics_open(tolua_S);
  20153. };
  20154. #endif