GraphicsLuaAPI.cpp 631 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480
  1. /*
  2. ** Lua binding: Graphics
  3. ** Generated automatically by tolua++-1.0.92 on 06/30/13 11:31:49.
  4. */
  5. //
  6. // Copyright (c) 2008-2013 the Urho3D project.
  7. //
  8. // Permission is hereby granted, free of charge, to any person obtaining a copy
  9. // of this software and associated documentation files (the "Software"), to deal
  10. // in the Software without restriction, including without limitation the rights
  11. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  12. // copies of the Software, and to permit persons to whom the Software is
  13. // furnished to do so, subject to the following conditions:
  14. //
  15. // The above copyright notice and this permission notice shall be included in
  16. // all copies or substantial portions of the Software.
  17. //
  18. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  19. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  20. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  21. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  22. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  23. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  24. // THE SOFTWARE.
  25. //
  26. #include "Precompiled.h"
  27. #include "tolua++.h"
  28. /* Exported function */
  29. TOLUA_API int tolua_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,"Node");
  144. tolua_usertype(tolua_S,"Light");
  145. tolua_usertype(tolua_S,"Pass");
  146. tolua_usertype(tolua_S,"Texture2D");
  147. tolua_usertype(tolua_S,"Graphics");
  148. tolua_usertype(tolua_S,"IntVector2");
  149. tolua_usertype(tolua_S,"AnimationController");
  150. tolua_usertype(tolua_S,"String");
  151. tolua_usertype(tolua_S,"ParticleEmitter");
  152. tolua_usertype(tolua_S,"Color");
  153. tolua_usertype(tolua_S,"Image");
  154. tolua_usertype(tolua_S,"FrameInfo");
  155. tolua_usertype(tolua_S,"Material");
  156. tolua_usertype(tolua_S,"TechniqueEntry");
  157. tolua_usertype(tolua_S,"Vector4");
  158. tolua_usertype(tolua_S,"DecalSet");
  159. tolua_usertype(tolua_S,"StaticModel");
  160. tolua_usertype(tolua_S,"Animation");
  161. tolua_usertype(tolua_S,"VertexBuffer");
  162. tolua_usertype(tolua_S,"Ray");
  163. tolua_usertype(tolua_S,"Sphere");
  164. tolua_usertype(tolua_S,"Frustum");
  165. tolua_usertype(tolua_S,"Vector2");
  166. tolua_usertype(tolua_S,"Matrix3x4");
  167. tolua_usertype(tolua_S,"CascadeParameters");
  168. tolua_usertype(tolua_S,"Skeleton");
  169. tolua_usertype(tolua_S,"Bone");
  170. tolua_usertype(tolua_S,"Renderer");
  171. tolua_usertype(tolua_S,"Vector3");
  172. tolua_usertype(tolua_S,"Terrain");
  173. tolua_usertype(tolua_S,"AnimationState");
  174. tolua_usertype(tolua_S,"ModelMorph");
  175. tolua_usertype(tolua_S,"Camera");
  176. tolua_usertype(tolua_S,"Object");
  177. tolua_usertype(tolua_S,"TextureFrame");
  178. tolua_usertype(tolua_S,"Geometry");
  179. tolua_usertype(tolua_S,"Quaternion");
  180. tolua_usertype(tolua_S,"Resource");
  181. tolua_usertype(tolua_S,"OctreeQuery");
  182. tolua_usertype(tolua_S,"Zone");
  183. tolua_usertype(tolua_S,"RenderSurface");
  184. tolua_usertype(tolua_S,"TextureCube");
  185. tolua_usertype(tolua_S,"Texture");
  186. tolua_usertype(tolua_S,"Drawable");
  187. tolua_usertype(tolua_S,"BiasParameters");
  188. tolua_usertype(tolua_S,"DebugRenderer");
  189. tolua_usertype(tolua_S,"TerrainPatch");
  190. tolua_usertype(tolua_S,"ShaderVariation");
  191. tolua_usertype(tolua_S,"BoundingBox");
  192. tolua_usertype(tolua_S,"Rect");
  193. tolua_usertype(tolua_S,"AnimationTrack");
  194. tolua_usertype(tolua_S,"Viewport");
  195. tolua_usertype(tolua_S,"Technique");
  196. tolua_usertype(tolua_S,"Skybox");
  197. tolua_usertype(tolua_S,"AnimatedModel");
  198. tolua_usertype(tolua_S,"BillboardSet");
  199. tolua_usertype(tolua_S,"Polyhedron");
  200. tolua_usertype(tolua_S,"RayOctreeQuery");
  201. tolua_usertype(tolua_S,"Octree");
  202. tolua_usertype(tolua_S,"StringHash");
  203. tolua_usertype(tolua_S,"FocusParameters");
  204. tolua_usertype(tolua_S,"XMLFile");
  205. tolua_usertype(tolua_S,"Matrix4");
  206. tolua_usertype(tolua_S,"RenderPath");
  207. tolua_usertype(tolua_S,"Model");
  208. }
  209. /* method: SetModel of class AnimatedModel */
  210. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_SetModel00
  211. static int tolua_Graphics_AnimatedModel_SetModel00(lua_State* tolua_S)
  212. {
  213. #ifndef TOLUA_RELEASE
  214. tolua_Error tolua_err;
  215. if (
  216. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  217. !tolua_isusertype(tolua_S,2,"Model",0,&tolua_err) ||
  218. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  219. !tolua_isnoobj(tolua_S,4,&tolua_err)
  220. )
  221. goto tolua_lerror;
  222. else
  223. #endif
  224. {
  225. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  226. Model* model = ((Model*) tolua_tousertype(tolua_S,2,0));
  227. bool createBones = ((bool) tolua_toboolean(tolua_S,3,true));
  228. #ifndef TOLUA_RELEASE
  229. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetModel'", NULL);
  230. #endif
  231. {
  232. self->SetModel(model,createBones);
  233. }
  234. }
  235. return 0;
  236. #ifndef TOLUA_RELEASE
  237. tolua_lerror:
  238. tolua_error(tolua_S,"#ferror in function 'SetModel'.",&tolua_err);
  239. return 0;
  240. #endif
  241. }
  242. #endif //#ifndef TOLUA_DISABLE
  243. /* method: AddAnimationState of class AnimatedModel */
  244. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_AddAnimationState00
  245. static int tolua_Graphics_AnimatedModel_AddAnimationState00(lua_State* tolua_S)
  246. {
  247. #ifndef TOLUA_RELEASE
  248. tolua_Error tolua_err;
  249. if (
  250. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  251. !tolua_isusertype(tolua_S,2,"Animation",0,&tolua_err) ||
  252. !tolua_isnoobj(tolua_S,3,&tolua_err)
  253. )
  254. goto tolua_lerror;
  255. else
  256. #endif
  257. {
  258. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  259. Animation* animation = ((Animation*) tolua_tousertype(tolua_S,2,0));
  260. #ifndef TOLUA_RELEASE
  261. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddAnimationState'", NULL);
  262. #endif
  263. {
  264. AnimationState* tolua_ret = (AnimationState*) self->AddAnimationState(animation);
  265. tolua_pushusertype(tolua_S,(void*)tolua_ret,"AnimationState");
  266. }
  267. }
  268. return 1;
  269. #ifndef TOLUA_RELEASE
  270. tolua_lerror:
  271. tolua_error(tolua_S,"#ferror in function 'AddAnimationState'.",&tolua_err);
  272. return 0;
  273. #endif
  274. }
  275. #endif //#ifndef TOLUA_DISABLE
  276. /* method: RemoveAnimationState of class AnimatedModel */
  277. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_RemoveAnimationState00
  278. static int tolua_Graphics_AnimatedModel_RemoveAnimationState00(lua_State* tolua_S)
  279. {
  280. #ifndef TOLUA_RELEASE
  281. tolua_Error tolua_err;
  282. if (
  283. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  284. !tolua_isusertype(tolua_S,2,"Animation",0,&tolua_err) ||
  285. !tolua_isnoobj(tolua_S,3,&tolua_err)
  286. )
  287. goto tolua_lerror;
  288. else
  289. #endif
  290. {
  291. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  292. Animation* animation = ((Animation*) tolua_tousertype(tolua_S,2,0));
  293. #ifndef TOLUA_RELEASE
  294. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveAnimationState'", NULL);
  295. #endif
  296. {
  297. self->RemoveAnimationState(animation);
  298. }
  299. }
  300. return 0;
  301. #ifndef TOLUA_RELEASE
  302. tolua_lerror:
  303. tolua_error(tolua_S,"#ferror in function 'RemoveAnimationState'.",&tolua_err);
  304. return 0;
  305. #endif
  306. }
  307. #endif //#ifndef TOLUA_DISABLE
  308. /* method: RemoveAnimationState of class AnimatedModel */
  309. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_RemoveAnimationState01
  310. static int tolua_Graphics_AnimatedModel_RemoveAnimationState01(lua_State* tolua_S)
  311. {
  312. tolua_Error tolua_err;
  313. if (
  314. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  315. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  316. !tolua_isnoobj(tolua_S,3,&tolua_err)
  317. )
  318. goto tolua_lerror;
  319. else
  320. {
  321. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  322. const String* animationName = ((const String*) tolua_tousertype(tolua_S,2,0));
  323. #ifndef TOLUA_RELEASE
  324. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveAnimationState'", NULL);
  325. #endif
  326. {
  327. self->RemoveAnimationState(*animationName);
  328. }
  329. }
  330. return 0;
  331. tolua_lerror:
  332. return tolua_Graphics_AnimatedModel_RemoveAnimationState00(tolua_S);
  333. }
  334. #endif //#ifndef TOLUA_DISABLE
  335. /* method: RemoveAnimationState of class AnimatedModel */
  336. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_RemoveAnimationState02
  337. static int tolua_Graphics_AnimatedModel_RemoveAnimationState02(lua_State* tolua_S)
  338. {
  339. tolua_Error tolua_err;
  340. if (
  341. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  342. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"StringHash",0,&tolua_err)) ||
  343. !tolua_isnoobj(tolua_S,3,&tolua_err)
  344. )
  345. goto tolua_lerror;
  346. else
  347. {
  348. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  349. StringHash animationNameHash = *((StringHash*) tolua_tousertype(tolua_S,2,0));
  350. #ifndef TOLUA_RELEASE
  351. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveAnimationState'", NULL);
  352. #endif
  353. {
  354. self->RemoveAnimationState(animationNameHash);
  355. }
  356. }
  357. return 0;
  358. tolua_lerror:
  359. return tolua_Graphics_AnimatedModel_RemoveAnimationState01(tolua_S);
  360. }
  361. #endif //#ifndef TOLUA_DISABLE
  362. /* method: RemoveAnimationState of class AnimatedModel */
  363. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_RemoveAnimationState03
  364. static int tolua_Graphics_AnimatedModel_RemoveAnimationState03(lua_State* tolua_S)
  365. {
  366. tolua_Error tolua_err;
  367. if (
  368. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  369. !tolua_isusertype(tolua_S,2,"AnimationState",0,&tolua_err) ||
  370. !tolua_isnoobj(tolua_S,3,&tolua_err)
  371. )
  372. goto tolua_lerror;
  373. else
  374. {
  375. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  376. AnimationState* state = ((AnimationState*) tolua_tousertype(tolua_S,2,0));
  377. #ifndef TOLUA_RELEASE
  378. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveAnimationState'", NULL);
  379. #endif
  380. {
  381. self->RemoveAnimationState(state);
  382. }
  383. }
  384. return 0;
  385. tolua_lerror:
  386. return tolua_Graphics_AnimatedModel_RemoveAnimationState02(tolua_S);
  387. }
  388. #endif //#ifndef TOLUA_DISABLE
  389. /* method: RemoveAnimationState of class AnimatedModel */
  390. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_RemoveAnimationState04
  391. static int tolua_Graphics_AnimatedModel_RemoveAnimationState04(lua_State* tolua_S)
  392. {
  393. tolua_Error tolua_err;
  394. if (
  395. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  396. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  397. !tolua_isnoobj(tolua_S,3,&tolua_err)
  398. )
  399. goto tolua_lerror;
  400. else
  401. {
  402. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  403. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  404. #ifndef TOLUA_RELEASE
  405. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveAnimationState'", NULL);
  406. #endif
  407. {
  408. self->RemoveAnimationState(index);
  409. }
  410. }
  411. return 0;
  412. tolua_lerror:
  413. return tolua_Graphics_AnimatedModel_RemoveAnimationState03(tolua_S);
  414. }
  415. #endif //#ifndef TOLUA_DISABLE
  416. /* method: RemoveAllAnimationStates of class AnimatedModel */
  417. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_RemoveAllAnimationStates00
  418. static int tolua_Graphics_AnimatedModel_RemoveAllAnimationStates00(lua_State* tolua_S)
  419. {
  420. #ifndef TOLUA_RELEASE
  421. tolua_Error tolua_err;
  422. if (
  423. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  424. !tolua_isnoobj(tolua_S,2,&tolua_err)
  425. )
  426. goto tolua_lerror;
  427. else
  428. #endif
  429. {
  430. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  431. #ifndef TOLUA_RELEASE
  432. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveAllAnimationStates'", NULL);
  433. #endif
  434. {
  435. self->RemoveAllAnimationStates();
  436. }
  437. }
  438. return 0;
  439. #ifndef TOLUA_RELEASE
  440. tolua_lerror:
  441. tolua_error(tolua_S,"#ferror in function 'RemoveAllAnimationStates'.",&tolua_err);
  442. return 0;
  443. #endif
  444. }
  445. #endif //#ifndef TOLUA_DISABLE
  446. /* method: SetAnimationLodBias of class AnimatedModel */
  447. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_SetAnimationLodBias00
  448. static int tolua_Graphics_AnimatedModel_SetAnimationLodBias00(lua_State* tolua_S)
  449. {
  450. #ifndef TOLUA_RELEASE
  451. tolua_Error tolua_err;
  452. if (
  453. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  454. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  455. !tolua_isnoobj(tolua_S,3,&tolua_err)
  456. )
  457. goto tolua_lerror;
  458. else
  459. #endif
  460. {
  461. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  462. float bias = ((float) tolua_tonumber(tolua_S,2,0));
  463. #ifndef TOLUA_RELEASE
  464. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAnimationLodBias'", NULL);
  465. #endif
  466. {
  467. self->SetAnimationLodBias(bias);
  468. }
  469. }
  470. return 0;
  471. #ifndef TOLUA_RELEASE
  472. tolua_lerror:
  473. tolua_error(tolua_S,"#ferror in function 'SetAnimationLodBias'.",&tolua_err);
  474. return 0;
  475. #endif
  476. }
  477. #endif //#ifndef TOLUA_DISABLE
  478. /* method: SetInvisibleLodFactor of class AnimatedModel */
  479. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_SetInvisibleLodFactor00
  480. static int tolua_Graphics_AnimatedModel_SetInvisibleLodFactor00(lua_State* tolua_S)
  481. {
  482. #ifndef TOLUA_RELEASE
  483. tolua_Error tolua_err;
  484. if (
  485. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  486. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  487. !tolua_isnoobj(tolua_S,3,&tolua_err)
  488. )
  489. goto tolua_lerror;
  490. else
  491. #endif
  492. {
  493. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  494. float factor = ((float) tolua_tonumber(tolua_S,2,0));
  495. #ifndef TOLUA_RELEASE
  496. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetInvisibleLodFactor'", NULL);
  497. #endif
  498. {
  499. self->SetInvisibleLodFactor(factor);
  500. }
  501. }
  502. return 0;
  503. #ifndef TOLUA_RELEASE
  504. tolua_lerror:
  505. tolua_error(tolua_S,"#ferror in function 'SetInvisibleLodFactor'.",&tolua_err);
  506. return 0;
  507. #endif
  508. }
  509. #endif //#ifndef TOLUA_DISABLE
  510. /* method: SetMorphWeight of class AnimatedModel */
  511. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_SetMorphWeight00
  512. static int tolua_Graphics_AnimatedModel_SetMorphWeight00(lua_State* tolua_S)
  513. {
  514. #ifndef TOLUA_RELEASE
  515. tolua_Error tolua_err;
  516. if (
  517. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  518. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  519. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  520. !tolua_isnoobj(tolua_S,4,&tolua_err)
  521. )
  522. goto tolua_lerror;
  523. else
  524. #endif
  525. {
  526. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  527. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  528. float weight = ((float) tolua_tonumber(tolua_S,3,0));
  529. #ifndef TOLUA_RELEASE
  530. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMorphWeight'", NULL);
  531. #endif
  532. {
  533. self->SetMorphWeight(index,weight);
  534. }
  535. }
  536. return 0;
  537. #ifndef TOLUA_RELEASE
  538. tolua_lerror:
  539. tolua_error(tolua_S,"#ferror in function 'SetMorphWeight'.",&tolua_err);
  540. return 0;
  541. #endif
  542. }
  543. #endif //#ifndef TOLUA_DISABLE
  544. /* method: SetMorphWeight of class AnimatedModel */
  545. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_SetMorphWeight01
  546. static int tolua_Graphics_AnimatedModel_SetMorphWeight01(lua_State* tolua_S)
  547. {
  548. tolua_Error tolua_err;
  549. if (
  550. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  551. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  552. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  553. !tolua_isnoobj(tolua_S,4,&tolua_err)
  554. )
  555. goto tolua_lerror;
  556. else
  557. {
  558. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  559. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  560. float weight = ((float) tolua_tonumber(tolua_S,3,0));
  561. #ifndef TOLUA_RELEASE
  562. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMorphWeight'", NULL);
  563. #endif
  564. {
  565. self->SetMorphWeight(*name,weight);
  566. }
  567. }
  568. return 0;
  569. tolua_lerror:
  570. return tolua_Graphics_AnimatedModel_SetMorphWeight00(tolua_S);
  571. }
  572. #endif //#ifndef TOLUA_DISABLE
  573. /* method: SetMorphWeight of class AnimatedModel */
  574. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_SetMorphWeight02
  575. static int tolua_Graphics_AnimatedModel_SetMorphWeight02(lua_State* tolua_S)
  576. {
  577. tolua_Error tolua_err;
  578. if (
  579. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  580. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"StringHash",0,&tolua_err)) ||
  581. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  582. !tolua_isnoobj(tolua_S,4,&tolua_err)
  583. )
  584. goto tolua_lerror;
  585. else
  586. {
  587. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  588. StringHash nameHash = *((StringHash*) tolua_tousertype(tolua_S,2,0));
  589. float weight = ((float) tolua_tonumber(tolua_S,3,0));
  590. #ifndef TOLUA_RELEASE
  591. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMorphWeight'", NULL);
  592. #endif
  593. {
  594. self->SetMorphWeight(nameHash,weight);
  595. }
  596. }
  597. return 0;
  598. tolua_lerror:
  599. return tolua_Graphics_AnimatedModel_SetMorphWeight01(tolua_S);
  600. }
  601. #endif //#ifndef TOLUA_DISABLE
  602. /* method: ResetMorphWeights of class AnimatedModel */
  603. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_ResetMorphWeights00
  604. static int tolua_Graphics_AnimatedModel_ResetMorphWeights00(lua_State* tolua_S)
  605. {
  606. #ifndef TOLUA_RELEASE
  607. tolua_Error tolua_err;
  608. if (
  609. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  610. !tolua_isnoobj(tolua_S,2,&tolua_err)
  611. )
  612. goto tolua_lerror;
  613. else
  614. #endif
  615. {
  616. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  617. #ifndef TOLUA_RELEASE
  618. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ResetMorphWeights'", NULL);
  619. #endif
  620. {
  621. self->ResetMorphWeights();
  622. }
  623. }
  624. return 0;
  625. #ifndef TOLUA_RELEASE
  626. tolua_lerror:
  627. tolua_error(tolua_S,"#ferror in function 'ResetMorphWeights'.",&tolua_err);
  628. return 0;
  629. #endif
  630. }
  631. #endif //#ifndef TOLUA_DISABLE
  632. /* method: GetSkeleton of class AnimatedModel */
  633. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_GetSkeleton00
  634. static int tolua_Graphics_AnimatedModel_GetSkeleton00(lua_State* tolua_S)
  635. {
  636. #ifndef TOLUA_RELEASE
  637. tolua_Error tolua_err;
  638. if (
  639. !tolua_isusertype(tolua_S,1,"AnimatedModel",0,&tolua_err) ||
  640. !tolua_isnoobj(tolua_S,2,&tolua_err)
  641. )
  642. goto tolua_lerror;
  643. else
  644. #endif
  645. {
  646. AnimatedModel* self = (AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  647. #ifndef TOLUA_RELEASE
  648. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSkeleton'", NULL);
  649. #endif
  650. {
  651. Skeleton& tolua_ret = (Skeleton&) self->GetSkeleton();
  652. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"Skeleton");
  653. }
  654. }
  655. return 1;
  656. #ifndef TOLUA_RELEASE
  657. tolua_lerror:
  658. tolua_error(tolua_S,"#ferror in function 'GetSkeleton'.",&tolua_err);
  659. return 0;
  660. #endif
  661. }
  662. #endif //#ifndef TOLUA_DISABLE
  663. /* method: GetNumAnimationStates of class AnimatedModel */
  664. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_GetNumAnimationStates00
  665. static int tolua_Graphics_AnimatedModel_GetNumAnimationStates00(lua_State* tolua_S)
  666. {
  667. #ifndef TOLUA_RELEASE
  668. tolua_Error tolua_err;
  669. if (
  670. !tolua_isusertype(tolua_S,1,"const AnimatedModel",0,&tolua_err) ||
  671. !tolua_isnoobj(tolua_S,2,&tolua_err)
  672. )
  673. goto tolua_lerror;
  674. else
  675. #endif
  676. {
  677. const AnimatedModel* self = (const AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  678. #ifndef TOLUA_RELEASE
  679. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumAnimationStates'", NULL);
  680. #endif
  681. {
  682. unsigned tolua_ret = (unsigned) self->GetNumAnimationStates();
  683. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  684. }
  685. }
  686. return 1;
  687. #ifndef TOLUA_RELEASE
  688. tolua_lerror:
  689. tolua_error(tolua_S,"#ferror in function 'GetNumAnimationStates'.",&tolua_err);
  690. return 0;
  691. #endif
  692. }
  693. #endif //#ifndef TOLUA_DISABLE
  694. /* method: GetAnimationState of class AnimatedModel */
  695. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_GetAnimationState00
  696. static int tolua_Graphics_AnimatedModel_GetAnimationState00(lua_State* tolua_S)
  697. {
  698. #ifndef TOLUA_RELEASE
  699. tolua_Error tolua_err;
  700. if (
  701. !tolua_isusertype(tolua_S,1,"const AnimatedModel",0,&tolua_err) ||
  702. !tolua_isusertype(tolua_S,2,"Animation",0,&tolua_err) ||
  703. !tolua_isnoobj(tolua_S,3,&tolua_err)
  704. )
  705. goto tolua_lerror;
  706. else
  707. #endif
  708. {
  709. const AnimatedModel* self = (const AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  710. Animation* animation = ((Animation*) tolua_tousertype(tolua_S,2,0));
  711. #ifndef TOLUA_RELEASE
  712. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAnimationState'", NULL);
  713. #endif
  714. {
  715. AnimationState* tolua_ret = (AnimationState*) self->GetAnimationState(animation);
  716. tolua_pushusertype(tolua_S,(void*)tolua_ret,"AnimationState");
  717. }
  718. }
  719. return 1;
  720. #ifndef TOLUA_RELEASE
  721. tolua_lerror:
  722. tolua_error(tolua_S,"#ferror in function 'GetAnimationState'.",&tolua_err);
  723. return 0;
  724. #endif
  725. }
  726. #endif //#ifndef TOLUA_DISABLE
  727. /* method: GetAnimationState of class AnimatedModel */
  728. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_GetAnimationState01
  729. static int tolua_Graphics_AnimatedModel_GetAnimationState01(lua_State* tolua_S)
  730. {
  731. tolua_Error tolua_err;
  732. if (
  733. !tolua_isusertype(tolua_S,1,"const AnimatedModel",0,&tolua_err) ||
  734. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  735. !tolua_isnoobj(tolua_S,3,&tolua_err)
  736. )
  737. goto tolua_lerror;
  738. else
  739. {
  740. const AnimatedModel* self = (const AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  741. const String* animationName = ((const String*) tolua_tousertype(tolua_S,2,0));
  742. #ifndef TOLUA_RELEASE
  743. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAnimationState'", NULL);
  744. #endif
  745. {
  746. AnimationState* tolua_ret = (AnimationState*) self->GetAnimationState(*animationName);
  747. tolua_pushusertype(tolua_S,(void*)tolua_ret,"AnimationState");
  748. }
  749. }
  750. return 1;
  751. tolua_lerror:
  752. return tolua_Graphics_AnimatedModel_GetAnimationState00(tolua_S);
  753. }
  754. #endif //#ifndef TOLUA_DISABLE
  755. /* method: GetAnimationState of class AnimatedModel */
  756. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_GetAnimationState02
  757. static int tolua_Graphics_AnimatedModel_GetAnimationState02(lua_State* tolua_S)
  758. {
  759. tolua_Error tolua_err;
  760. if (
  761. !tolua_isusertype(tolua_S,1,"const AnimatedModel",0,&tolua_err) ||
  762. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  763. !tolua_isnoobj(tolua_S,3,&tolua_err)
  764. )
  765. goto tolua_lerror;
  766. else
  767. {
  768. const AnimatedModel* self = (const AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  769. const char* animationName = ((const char*) tolua_tostring(tolua_S,2,0));
  770. #ifndef TOLUA_RELEASE
  771. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAnimationState'", NULL);
  772. #endif
  773. {
  774. AnimationState* tolua_ret = (AnimationState*) self->GetAnimationState(animationName);
  775. tolua_pushusertype(tolua_S,(void*)tolua_ret,"AnimationState");
  776. }
  777. }
  778. return 1;
  779. tolua_lerror:
  780. return tolua_Graphics_AnimatedModel_GetAnimationState01(tolua_S);
  781. }
  782. #endif //#ifndef TOLUA_DISABLE
  783. /* method: GetAnimationState of class AnimatedModel */
  784. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_GetAnimationState03
  785. static int tolua_Graphics_AnimatedModel_GetAnimationState03(lua_State* tolua_S)
  786. {
  787. tolua_Error tolua_err;
  788. if (
  789. !tolua_isusertype(tolua_S,1,"const AnimatedModel",0,&tolua_err) ||
  790. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const StringHash",0,&tolua_err)) ||
  791. !tolua_isnoobj(tolua_S,3,&tolua_err)
  792. )
  793. goto tolua_lerror;
  794. else
  795. {
  796. const AnimatedModel* self = (const AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  797. const StringHash animationNameHash = *((const StringHash*) tolua_tousertype(tolua_S,2,0));
  798. #ifndef TOLUA_RELEASE
  799. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAnimationState'", NULL);
  800. #endif
  801. {
  802. AnimationState* tolua_ret = (AnimationState*) self->GetAnimationState(animationNameHash);
  803. tolua_pushusertype(tolua_S,(void*)tolua_ret,"AnimationState");
  804. }
  805. }
  806. return 1;
  807. tolua_lerror:
  808. return tolua_Graphics_AnimatedModel_GetAnimationState02(tolua_S);
  809. }
  810. #endif //#ifndef TOLUA_DISABLE
  811. /* method: GetAnimationState of class AnimatedModel */
  812. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_GetAnimationState04
  813. static int tolua_Graphics_AnimatedModel_GetAnimationState04(lua_State* tolua_S)
  814. {
  815. tolua_Error tolua_err;
  816. if (
  817. !tolua_isusertype(tolua_S,1,"const AnimatedModel",0,&tolua_err) ||
  818. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  819. !tolua_isnoobj(tolua_S,3,&tolua_err)
  820. )
  821. goto tolua_lerror;
  822. else
  823. {
  824. const AnimatedModel* self = (const AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  825. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  826. #ifndef TOLUA_RELEASE
  827. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAnimationState'", NULL);
  828. #endif
  829. {
  830. AnimationState* tolua_ret = (AnimationState*) self->GetAnimationState(index);
  831. tolua_pushusertype(tolua_S,(void*)tolua_ret,"AnimationState");
  832. }
  833. }
  834. return 1;
  835. tolua_lerror:
  836. return tolua_Graphics_AnimatedModel_GetAnimationState03(tolua_S);
  837. }
  838. #endif //#ifndef TOLUA_DISABLE
  839. /* method: GetAnimationLodBias of class AnimatedModel */
  840. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_GetAnimationLodBias00
  841. static int tolua_Graphics_AnimatedModel_GetAnimationLodBias00(lua_State* tolua_S)
  842. {
  843. #ifndef TOLUA_RELEASE
  844. tolua_Error tolua_err;
  845. if (
  846. !tolua_isusertype(tolua_S,1,"const AnimatedModel",0,&tolua_err) ||
  847. !tolua_isnoobj(tolua_S,2,&tolua_err)
  848. )
  849. goto tolua_lerror;
  850. else
  851. #endif
  852. {
  853. const AnimatedModel* self = (const AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  854. #ifndef TOLUA_RELEASE
  855. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAnimationLodBias'", NULL);
  856. #endif
  857. {
  858. float tolua_ret = (float) self->GetAnimationLodBias();
  859. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  860. }
  861. }
  862. return 1;
  863. #ifndef TOLUA_RELEASE
  864. tolua_lerror:
  865. tolua_error(tolua_S,"#ferror in function 'GetAnimationLodBias'.",&tolua_err);
  866. return 0;
  867. #endif
  868. }
  869. #endif //#ifndef TOLUA_DISABLE
  870. /* method: GetInvisibleLodFactor of class AnimatedModel */
  871. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_GetInvisibleLodFactor00
  872. static int tolua_Graphics_AnimatedModel_GetInvisibleLodFactor00(lua_State* tolua_S)
  873. {
  874. #ifndef TOLUA_RELEASE
  875. tolua_Error tolua_err;
  876. if (
  877. !tolua_isusertype(tolua_S,1,"const AnimatedModel",0,&tolua_err) ||
  878. !tolua_isnoobj(tolua_S,2,&tolua_err)
  879. )
  880. goto tolua_lerror;
  881. else
  882. #endif
  883. {
  884. const AnimatedModel* self = (const AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  885. #ifndef TOLUA_RELEASE
  886. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetInvisibleLodFactor'", NULL);
  887. #endif
  888. {
  889. float tolua_ret = (float) self->GetInvisibleLodFactor();
  890. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  891. }
  892. }
  893. return 1;
  894. #ifndef TOLUA_RELEASE
  895. tolua_lerror:
  896. tolua_error(tolua_S,"#ferror in function 'GetInvisibleLodFactor'.",&tolua_err);
  897. return 0;
  898. #endif
  899. }
  900. #endif //#ifndef TOLUA_DISABLE
  901. /* method: GetNumMorphs of class AnimatedModel */
  902. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_GetNumMorphs00
  903. static int tolua_Graphics_AnimatedModel_GetNumMorphs00(lua_State* tolua_S)
  904. {
  905. #ifndef TOLUA_RELEASE
  906. tolua_Error tolua_err;
  907. if (
  908. !tolua_isusertype(tolua_S,1,"const AnimatedModel",0,&tolua_err) ||
  909. !tolua_isnoobj(tolua_S,2,&tolua_err)
  910. )
  911. goto tolua_lerror;
  912. else
  913. #endif
  914. {
  915. const AnimatedModel* self = (const AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  916. #ifndef TOLUA_RELEASE
  917. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumMorphs'", NULL);
  918. #endif
  919. {
  920. unsigned tolua_ret = (unsigned) self->GetNumMorphs();
  921. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  922. }
  923. }
  924. return 1;
  925. #ifndef TOLUA_RELEASE
  926. tolua_lerror:
  927. tolua_error(tolua_S,"#ferror in function 'GetNumMorphs'.",&tolua_err);
  928. return 0;
  929. #endif
  930. }
  931. #endif //#ifndef TOLUA_DISABLE
  932. /* method: GetMorphWeight of class AnimatedModel */
  933. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_GetMorphWeight00
  934. static int tolua_Graphics_AnimatedModel_GetMorphWeight00(lua_State* tolua_S)
  935. {
  936. #ifndef TOLUA_RELEASE
  937. tolua_Error tolua_err;
  938. if (
  939. !tolua_isusertype(tolua_S,1,"const AnimatedModel",0,&tolua_err) ||
  940. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  941. !tolua_isnoobj(tolua_S,3,&tolua_err)
  942. )
  943. goto tolua_lerror;
  944. else
  945. #endif
  946. {
  947. const AnimatedModel* self = (const AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  948. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  949. #ifndef TOLUA_RELEASE
  950. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMorphWeight'", NULL);
  951. #endif
  952. {
  953. float tolua_ret = (float) self->GetMorphWeight(index);
  954. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  955. }
  956. }
  957. return 1;
  958. #ifndef TOLUA_RELEASE
  959. tolua_lerror:
  960. tolua_error(tolua_S,"#ferror in function 'GetMorphWeight'.",&tolua_err);
  961. return 0;
  962. #endif
  963. }
  964. #endif //#ifndef TOLUA_DISABLE
  965. /* method: GetMorphWeight of class AnimatedModel */
  966. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_GetMorphWeight01
  967. static int tolua_Graphics_AnimatedModel_GetMorphWeight01(lua_State* tolua_S)
  968. {
  969. tolua_Error tolua_err;
  970. if (
  971. !tolua_isusertype(tolua_S,1,"const AnimatedModel",0,&tolua_err) ||
  972. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  973. !tolua_isnoobj(tolua_S,3,&tolua_err)
  974. )
  975. goto tolua_lerror;
  976. else
  977. {
  978. const AnimatedModel* self = (const AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  979. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  980. #ifndef TOLUA_RELEASE
  981. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMorphWeight'", NULL);
  982. #endif
  983. {
  984. float tolua_ret = (float) self->GetMorphWeight(*name);
  985. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  986. }
  987. }
  988. return 1;
  989. tolua_lerror:
  990. return tolua_Graphics_AnimatedModel_GetMorphWeight00(tolua_S);
  991. }
  992. #endif //#ifndef TOLUA_DISABLE
  993. /* method: GetMorphWeight of class AnimatedModel */
  994. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_GetMorphWeight02
  995. static int tolua_Graphics_AnimatedModel_GetMorphWeight02(lua_State* tolua_S)
  996. {
  997. tolua_Error tolua_err;
  998. if (
  999. !tolua_isusertype(tolua_S,1,"const AnimatedModel",0,&tolua_err) ||
  1000. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"StringHash",0,&tolua_err)) ||
  1001. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1002. )
  1003. goto tolua_lerror;
  1004. else
  1005. {
  1006. const AnimatedModel* self = (const AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  1007. StringHash nameHash = *((StringHash*) tolua_tousertype(tolua_S,2,0));
  1008. #ifndef TOLUA_RELEASE
  1009. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMorphWeight'", NULL);
  1010. #endif
  1011. {
  1012. float tolua_ret = (float) self->GetMorphWeight(nameHash);
  1013. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1014. }
  1015. }
  1016. return 1;
  1017. tolua_lerror:
  1018. return tolua_Graphics_AnimatedModel_GetMorphWeight01(tolua_S);
  1019. }
  1020. #endif //#ifndef TOLUA_DISABLE
  1021. /* method: IsMaster of class AnimatedModel */
  1022. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimatedModel_IsMaster00
  1023. static int tolua_Graphics_AnimatedModel_IsMaster00(lua_State* tolua_S)
  1024. {
  1025. #ifndef TOLUA_RELEASE
  1026. tolua_Error tolua_err;
  1027. if (
  1028. !tolua_isusertype(tolua_S,1,"const AnimatedModel",0,&tolua_err) ||
  1029. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1030. )
  1031. goto tolua_lerror;
  1032. else
  1033. #endif
  1034. {
  1035. const AnimatedModel* self = (const AnimatedModel*) tolua_tousertype(tolua_S,1,0);
  1036. #ifndef TOLUA_RELEASE
  1037. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsMaster'", NULL);
  1038. #endif
  1039. {
  1040. bool tolua_ret = (bool) self->IsMaster();
  1041. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1042. }
  1043. }
  1044. return 1;
  1045. #ifndef TOLUA_RELEASE
  1046. tolua_lerror:
  1047. tolua_error(tolua_S,"#ferror in function 'IsMaster'.",&tolua_err);
  1048. return 0;
  1049. #endif
  1050. }
  1051. #endif //#ifndef TOLUA_DISABLE
  1052. /* method: GetAnimationName of class Animation */
  1053. #ifndef TOLUA_DISABLE_tolua_Graphics_Animation_GetAnimationName00
  1054. static int tolua_Graphics_Animation_GetAnimationName00(lua_State* tolua_S)
  1055. {
  1056. #ifndef TOLUA_RELEASE
  1057. tolua_Error tolua_err;
  1058. if (
  1059. !tolua_isusertype(tolua_S,1,"const Animation",0,&tolua_err) ||
  1060. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1061. )
  1062. goto tolua_lerror;
  1063. else
  1064. #endif
  1065. {
  1066. const Animation* self = (const Animation*) tolua_tousertype(tolua_S,1,0);
  1067. #ifndef TOLUA_RELEASE
  1068. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAnimationName'", NULL);
  1069. #endif
  1070. {
  1071. const String& tolua_ret = (const String&) self->GetAnimationName();
  1072. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  1073. }
  1074. }
  1075. return 1;
  1076. #ifndef TOLUA_RELEASE
  1077. tolua_lerror:
  1078. tolua_error(tolua_S,"#ferror in function 'GetAnimationName'.",&tolua_err);
  1079. return 0;
  1080. #endif
  1081. }
  1082. #endif //#ifndef TOLUA_DISABLE
  1083. /* method: GetAnimationNameHash of class Animation */
  1084. #ifndef TOLUA_DISABLE_tolua_Graphics_Animation_GetAnimationNameHash00
  1085. static int tolua_Graphics_Animation_GetAnimationNameHash00(lua_State* tolua_S)
  1086. {
  1087. #ifndef TOLUA_RELEASE
  1088. tolua_Error tolua_err;
  1089. if (
  1090. !tolua_isusertype(tolua_S,1,"const Animation",0,&tolua_err) ||
  1091. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1092. )
  1093. goto tolua_lerror;
  1094. else
  1095. #endif
  1096. {
  1097. const Animation* self = (const Animation*) tolua_tousertype(tolua_S,1,0);
  1098. #ifndef TOLUA_RELEASE
  1099. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAnimationNameHash'", NULL);
  1100. #endif
  1101. {
  1102. StringHash tolua_ret = (StringHash) self->GetAnimationNameHash();
  1103. {
  1104. #ifdef __cplusplus
  1105. void* tolua_obj = Mtolua_new((StringHash)(tolua_ret));
  1106. tolua_pushusertype(tolua_S,tolua_obj,"StringHash");
  1107. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1108. #else
  1109. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(StringHash));
  1110. tolua_pushusertype(tolua_S,tolua_obj,"StringHash");
  1111. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  1112. #endif
  1113. }
  1114. }
  1115. }
  1116. return 1;
  1117. #ifndef TOLUA_RELEASE
  1118. tolua_lerror:
  1119. tolua_error(tolua_S,"#ferror in function 'GetAnimationNameHash'.",&tolua_err);
  1120. return 0;
  1121. #endif
  1122. }
  1123. #endif //#ifndef TOLUA_DISABLE
  1124. /* method: GetLength of class Animation */
  1125. #ifndef TOLUA_DISABLE_tolua_Graphics_Animation_GetLength00
  1126. static int tolua_Graphics_Animation_GetLength00(lua_State* tolua_S)
  1127. {
  1128. #ifndef TOLUA_RELEASE
  1129. tolua_Error tolua_err;
  1130. if (
  1131. !tolua_isusertype(tolua_S,1,"const Animation",0,&tolua_err) ||
  1132. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1133. )
  1134. goto tolua_lerror;
  1135. else
  1136. #endif
  1137. {
  1138. const Animation* self = (const Animation*) tolua_tousertype(tolua_S,1,0);
  1139. #ifndef TOLUA_RELEASE
  1140. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLength'", NULL);
  1141. #endif
  1142. {
  1143. float tolua_ret = (float) self->GetLength();
  1144. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1145. }
  1146. }
  1147. return 1;
  1148. #ifndef TOLUA_RELEASE
  1149. tolua_lerror:
  1150. tolua_error(tolua_S,"#ferror in function 'GetLength'.",&tolua_err);
  1151. return 0;
  1152. #endif
  1153. }
  1154. #endif //#ifndef TOLUA_DISABLE
  1155. /* method: GetNumTracks of class Animation */
  1156. #ifndef TOLUA_DISABLE_tolua_Graphics_Animation_GetNumTracks00
  1157. static int tolua_Graphics_Animation_GetNumTracks00(lua_State* tolua_S)
  1158. {
  1159. #ifndef TOLUA_RELEASE
  1160. tolua_Error tolua_err;
  1161. if (
  1162. !tolua_isusertype(tolua_S,1,"const Animation",0,&tolua_err) ||
  1163. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1164. )
  1165. goto tolua_lerror;
  1166. else
  1167. #endif
  1168. {
  1169. const Animation* self = (const Animation*) tolua_tousertype(tolua_S,1,0);
  1170. #ifndef TOLUA_RELEASE
  1171. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumTracks'", NULL);
  1172. #endif
  1173. {
  1174. unsigned tolua_ret = (unsigned) self->GetNumTracks();
  1175. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1176. }
  1177. }
  1178. return 1;
  1179. #ifndef TOLUA_RELEASE
  1180. tolua_lerror:
  1181. tolua_error(tolua_S,"#ferror in function 'GetNumTracks'.",&tolua_err);
  1182. return 0;
  1183. #endif
  1184. }
  1185. #endif //#ifndef TOLUA_DISABLE
  1186. /* method: GetTrack of class Animation */
  1187. #ifndef TOLUA_DISABLE_tolua_Graphics_Animation_GetTrack00
  1188. static int tolua_Graphics_Animation_GetTrack00(lua_State* tolua_S)
  1189. {
  1190. #ifndef TOLUA_RELEASE
  1191. tolua_Error tolua_err;
  1192. if (
  1193. !tolua_isusertype(tolua_S,1,"const Animation",0,&tolua_err) ||
  1194. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1195. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1196. )
  1197. goto tolua_lerror;
  1198. else
  1199. #endif
  1200. {
  1201. const Animation* self = (const Animation*) tolua_tousertype(tolua_S,1,0);
  1202. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  1203. #ifndef TOLUA_RELEASE
  1204. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTrack'", NULL);
  1205. #endif
  1206. {
  1207. const AnimationTrack* tolua_ret = (const AnimationTrack*) self->GetTrack(index);
  1208. tolua_pushusertype(tolua_S,(void*)tolua_ret,"const AnimationTrack");
  1209. }
  1210. }
  1211. return 1;
  1212. #ifndef TOLUA_RELEASE
  1213. tolua_lerror:
  1214. tolua_error(tolua_S,"#ferror in function 'GetTrack'.",&tolua_err);
  1215. return 0;
  1216. #endif
  1217. }
  1218. #endif //#ifndef TOLUA_DISABLE
  1219. /* method: GetTrack of class Animation */
  1220. #ifndef TOLUA_DISABLE_tolua_Graphics_Animation_GetTrack01
  1221. static int tolua_Graphics_Animation_GetTrack01(lua_State* tolua_S)
  1222. {
  1223. tolua_Error tolua_err;
  1224. if (
  1225. !tolua_isusertype(tolua_S,1,"const Animation",0,&tolua_err) ||
  1226. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1227. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1228. )
  1229. goto tolua_lerror;
  1230. else
  1231. {
  1232. const Animation* self = (const Animation*) tolua_tousertype(tolua_S,1,0);
  1233. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1234. #ifndef TOLUA_RELEASE
  1235. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTrack'", NULL);
  1236. #endif
  1237. {
  1238. const AnimationTrack* tolua_ret = (const AnimationTrack*) self->GetTrack(*name);
  1239. tolua_pushusertype(tolua_S,(void*)tolua_ret,"const AnimationTrack");
  1240. }
  1241. }
  1242. return 1;
  1243. tolua_lerror:
  1244. return tolua_Graphics_Animation_GetTrack00(tolua_S);
  1245. }
  1246. #endif //#ifndef TOLUA_DISABLE
  1247. /* method: GetTrack of class Animation */
  1248. #ifndef TOLUA_DISABLE_tolua_Graphics_Animation_GetTrack02
  1249. static int tolua_Graphics_Animation_GetTrack02(lua_State* tolua_S)
  1250. {
  1251. tolua_Error tolua_err;
  1252. if (
  1253. !tolua_isusertype(tolua_S,1,"const Animation",0,&tolua_err) ||
  1254. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"StringHash",0,&tolua_err)) ||
  1255. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1256. )
  1257. goto tolua_lerror;
  1258. else
  1259. {
  1260. const Animation* self = (const Animation*) tolua_tousertype(tolua_S,1,0);
  1261. StringHash nameHash = *((StringHash*) tolua_tousertype(tolua_S,2,0));
  1262. #ifndef TOLUA_RELEASE
  1263. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTrack'", NULL);
  1264. #endif
  1265. {
  1266. const AnimationTrack* tolua_ret = (const AnimationTrack*) self->GetTrack(nameHash);
  1267. tolua_pushusertype(tolua_S,(void*)tolua_ret,"const AnimationTrack");
  1268. }
  1269. }
  1270. return 1;
  1271. tolua_lerror:
  1272. return tolua_Graphics_Animation_GetTrack01(tolua_S);
  1273. }
  1274. #endif //#ifndef TOLUA_DISABLE
  1275. /* method: GetNumTriggers of class Animation */
  1276. #ifndef TOLUA_DISABLE_tolua_Graphics_Animation_GetNumTriggers00
  1277. static int tolua_Graphics_Animation_GetNumTriggers00(lua_State* tolua_S)
  1278. {
  1279. #ifndef TOLUA_RELEASE
  1280. tolua_Error tolua_err;
  1281. if (
  1282. !tolua_isusertype(tolua_S,1,"const Animation",0,&tolua_err) ||
  1283. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1284. )
  1285. goto tolua_lerror;
  1286. else
  1287. #endif
  1288. {
  1289. const Animation* self = (const Animation*) tolua_tousertype(tolua_S,1,0);
  1290. #ifndef TOLUA_RELEASE
  1291. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumTriggers'", NULL);
  1292. #endif
  1293. {
  1294. unsigned tolua_ret = (unsigned) self->GetNumTriggers();
  1295. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1296. }
  1297. }
  1298. return 1;
  1299. #ifndef TOLUA_RELEASE
  1300. tolua_lerror:
  1301. tolua_error(tolua_S,"#ferror in function 'GetNumTriggers'.",&tolua_err);
  1302. return 0;
  1303. #endif
  1304. }
  1305. #endif //#ifndef TOLUA_DISABLE
  1306. /* method: Play of class AnimationController */
  1307. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_Play00
  1308. static int tolua_Graphics_AnimationController_Play00(lua_State* tolua_S)
  1309. {
  1310. #ifndef TOLUA_RELEASE
  1311. tolua_Error tolua_err;
  1312. if (
  1313. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1314. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1315. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1316. !tolua_isboolean(tolua_S,4,0,&tolua_err) ||
  1317. !tolua_isnumber(tolua_S,5,1,&tolua_err) ||
  1318. !tolua_isnoobj(tolua_S,6,&tolua_err)
  1319. )
  1320. goto tolua_lerror;
  1321. else
  1322. #endif
  1323. {
  1324. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1325. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1326. unsigned char layer = ((unsigned char) tolua_tonumber(tolua_S,3,0));
  1327. bool looped = ((bool) tolua_toboolean(tolua_S,4,0));
  1328. float fadeInTime = ((float) tolua_tonumber(tolua_S,5,0.0f));
  1329. #ifndef TOLUA_RELEASE
  1330. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Play'", NULL);
  1331. #endif
  1332. {
  1333. bool tolua_ret = (bool) self->Play(*name,layer,looped,fadeInTime);
  1334. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1335. }
  1336. }
  1337. return 1;
  1338. #ifndef TOLUA_RELEASE
  1339. tolua_lerror:
  1340. tolua_error(tolua_S,"#ferror in function 'Play'.",&tolua_err);
  1341. return 0;
  1342. #endif
  1343. }
  1344. #endif //#ifndef TOLUA_DISABLE
  1345. /* method: PlayExclusive of class AnimationController */
  1346. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_PlayExclusive00
  1347. static int tolua_Graphics_AnimationController_PlayExclusive00(lua_State* tolua_S)
  1348. {
  1349. #ifndef TOLUA_RELEASE
  1350. tolua_Error tolua_err;
  1351. if (
  1352. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1353. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1354. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1355. !tolua_isboolean(tolua_S,4,0,&tolua_err) ||
  1356. !tolua_isnumber(tolua_S,5,1,&tolua_err) ||
  1357. !tolua_isnoobj(tolua_S,6,&tolua_err)
  1358. )
  1359. goto tolua_lerror;
  1360. else
  1361. #endif
  1362. {
  1363. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1364. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1365. unsigned char layer = ((unsigned char) tolua_tonumber(tolua_S,3,0));
  1366. bool looped = ((bool) tolua_toboolean(tolua_S,4,0));
  1367. float fadeTime = ((float) tolua_tonumber(tolua_S,5,0.0f));
  1368. #ifndef TOLUA_RELEASE
  1369. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'PlayExclusive'", NULL);
  1370. #endif
  1371. {
  1372. bool tolua_ret = (bool) self->PlayExclusive(*name,layer,looped,fadeTime);
  1373. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1374. }
  1375. }
  1376. return 1;
  1377. #ifndef TOLUA_RELEASE
  1378. tolua_lerror:
  1379. tolua_error(tolua_S,"#ferror in function 'PlayExclusive'.",&tolua_err);
  1380. return 0;
  1381. #endif
  1382. }
  1383. #endif //#ifndef TOLUA_DISABLE
  1384. /* method: Stop of class AnimationController */
  1385. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_Stop00
  1386. static int tolua_Graphics_AnimationController_Stop00(lua_State* tolua_S)
  1387. {
  1388. #ifndef TOLUA_RELEASE
  1389. tolua_Error tolua_err;
  1390. if (
  1391. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1392. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1393. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  1394. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1395. )
  1396. goto tolua_lerror;
  1397. else
  1398. #endif
  1399. {
  1400. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1401. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1402. float fadeOutTime = ((float) tolua_tonumber(tolua_S,3,0.0f));
  1403. #ifndef TOLUA_RELEASE
  1404. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Stop'", NULL);
  1405. #endif
  1406. {
  1407. bool tolua_ret = (bool) self->Stop(*name,fadeOutTime);
  1408. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1409. }
  1410. }
  1411. return 1;
  1412. #ifndef TOLUA_RELEASE
  1413. tolua_lerror:
  1414. tolua_error(tolua_S,"#ferror in function 'Stop'.",&tolua_err);
  1415. return 0;
  1416. #endif
  1417. }
  1418. #endif //#ifndef TOLUA_DISABLE
  1419. /* method: StopLayer of class AnimationController */
  1420. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_StopLayer00
  1421. static int tolua_Graphics_AnimationController_StopLayer00(lua_State* tolua_S)
  1422. {
  1423. #ifndef TOLUA_RELEASE
  1424. tolua_Error tolua_err;
  1425. if (
  1426. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1427. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1428. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  1429. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1430. )
  1431. goto tolua_lerror;
  1432. else
  1433. #endif
  1434. {
  1435. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1436. unsigned char layer = ((unsigned char) tolua_tonumber(tolua_S,2,0));
  1437. float fadeOutTime = ((float) tolua_tonumber(tolua_S,3,0.0f));
  1438. #ifndef TOLUA_RELEASE
  1439. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'StopLayer'", NULL);
  1440. #endif
  1441. {
  1442. self->StopLayer(layer,fadeOutTime);
  1443. }
  1444. }
  1445. return 0;
  1446. #ifndef TOLUA_RELEASE
  1447. tolua_lerror:
  1448. tolua_error(tolua_S,"#ferror in function 'StopLayer'.",&tolua_err);
  1449. return 0;
  1450. #endif
  1451. }
  1452. #endif //#ifndef TOLUA_DISABLE
  1453. /* method: StopAll of class AnimationController */
  1454. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_StopAll00
  1455. static int tolua_Graphics_AnimationController_StopAll00(lua_State* tolua_S)
  1456. {
  1457. #ifndef TOLUA_RELEASE
  1458. tolua_Error tolua_err;
  1459. if (
  1460. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1461. !tolua_isnumber(tolua_S,2,1,&tolua_err) ||
  1462. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1463. )
  1464. goto tolua_lerror;
  1465. else
  1466. #endif
  1467. {
  1468. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1469. float fadeTime = ((float) tolua_tonumber(tolua_S,2,0.0f));
  1470. #ifndef TOLUA_RELEASE
  1471. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'StopAll'", NULL);
  1472. #endif
  1473. {
  1474. self->StopAll(fadeTime);
  1475. }
  1476. }
  1477. return 0;
  1478. #ifndef TOLUA_RELEASE
  1479. tolua_lerror:
  1480. tolua_error(tolua_S,"#ferror in function 'StopAll'.",&tolua_err);
  1481. return 0;
  1482. #endif
  1483. }
  1484. #endif //#ifndef TOLUA_DISABLE
  1485. /* method: Fade of class AnimationController */
  1486. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_Fade00
  1487. static int tolua_Graphics_AnimationController_Fade00(lua_State* tolua_S)
  1488. {
  1489. #ifndef TOLUA_RELEASE
  1490. tolua_Error tolua_err;
  1491. if (
  1492. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1493. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1494. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1495. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  1496. !tolua_isnoobj(tolua_S,5,&tolua_err)
  1497. )
  1498. goto tolua_lerror;
  1499. else
  1500. #endif
  1501. {
  1502. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1503. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1504. float targetWeight = ((float) tolua_tonumber(tolua_S,3,0));
  1505. float fadeTime = ((float) tolua_tonumber(tolua_S,4,0));
  1506. #ifndef TOLUA_RELEASE
  1507. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Fade'", NULL);
  1508. #endif
  1509. {
  1510. bool tolua_ret = (bool) self->Fade(*name,targetWeight,fadeTime);
  1511. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1512. }
  1513. }
  1514. return 1;
  1515. #ifndef TOLUA_RELEASE
  1516. tolua_lerror:
  1517. tolua_error(tolua_S,"#ferror in function 'Fade'.",&tolua_err);
  1518. return 0;
  1519. #endif
  1520. }
  1521. #endif //#ifndef TOLUA_DISABLE
  1522. /* method: FadeOthers of class AnimationController */
  1523. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_FadeOthers00
  1524. static int tolua_Graphics_AnimationController_FadeOthers00(lua_State* tolua_S)
  1525. {
  1526. #ifndef TOLUA_RELEASE
  1527. tolua_Error tolua_err;
  1528. if (
  1529. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1530. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1531. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1532. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  1533. !tolua_isnoobj(tolua_S,5,&tolua_err)
  1534. )
  1535. goto tolua_lerror;
  1536. else
  1537. #endif
  1538. {
  1539. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1540. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1541. float targetWeight = ((float) tolua_tonumber(tolua_S,3,0));
  1542. float fadeTime = ((float) tolua_tonumber(tolua_S,4,0));
  1543. #ifndef TOLUA_RELEASE
  1544. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'FadeOthers'", NULL);
  1545. #endif
  1546. {
  1547. bool tolua_ret = (bool) self->FadeOthers(*name,targetWeight,fadeTime);
  1548. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1549. }
  1550. }
  1551. return 1;
  1552. #ifndef TOLUA_RELEASE
  1553. tolua_lerror:
  1554. tolua_error(tolua_S,"#ferror in function 'FadeOthers'.",&tolua_err);
  1555. return 0;
  1556. #endif
  1557. }
  1558. #endif //#ifndef TOLUA_DISABLE
  1559. /* method: SetLayer of class AnimationController */
  1560. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_SetLayer00
  1561. static int tolua_Graphics_AnimationController_SetLayer00(lua_State* tolua_S)
  1562. {
  1563. #ifndef TOLUA_RELEASE
  1564. tolua_Error tolua_err;
  1565. if (
  1566. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1567. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1568. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1569. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1570. )
  1571. goto tolua_lerror;
  1572. else
  1573. #endif
  1574. {
  1575. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1576. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1577. unsigned char layer = ((unsigned char) tolua_tonumber(tolua_S,3,0));
  1578. #ifndef TOLUA_RELEASE
  1579. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLayer'", NULL);
  1580. #endif
  1581. {
  1582. bool tolua_ret = (bool) self->SetLayer(*name,layer);
  1583. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1584. }
  1585. }
  1586. return 1;
  1587. #ifndef TOLUA_RELEASE
  1588. tolua_lerror:
  1589. tolua_error(tolua_S,"#ferror in function 'SetLayer'.",&tolua_err);
  1590. return 0;
  1591. #endif
  1592. }
  1593. #endif //#ifndef TOLUA_DISABLE
  1594. /* method: SetStartBone of class AnimationController */
  1595. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_SetStartBone00
  1596. static int tolua_Graphics_AnimationController_SetStartBone00(lua_State* tolua_S)
  1597. {
  1598. #ifndef TOLUA_RELEASE
  1599. tolua_Error tolua_err;
  1600. if (
  1601. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1602. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1603. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const String",0,&tolua_err)) ||
  1604. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1605. )
  1606. goto tolua_lerror;
  1607. else
  1608. #endif
  1609. {
  1610. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1611. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1612. const String* startBoneName = ((const String*) tolua_tousertype(tolua_S,3,0));
  1613. #ifndef TOLUA_RELEASE
  1614. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetStartBone'", NULL);
  1615. #endif
  1616. {
  1617. bool tolua_ret = (bool) self->SetStartBone(*name,*startBoneName);
  1618. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1619. }
  1620. }
  1621. return 1;
  1622. #ifndef TOLUA_RELEASE
  1623. tolua_lerror:
  1624. tolua_error(tolua_S,"#ferror in function 'SetStartBone'.",&tolua_err);
  1625. return 0;
  1626. #endif
  1627. }
  1628. #endif //#ifndef TOLUA_DISABLE
  1629. /* method: SetTime of class AnimationController */
  1630. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_SetTime00
  1631. static int tolua_Graphics_AnimationController_SetTime00(lua_State* tolua_S)
  1632. {
  1633. #ifndef TOLUA_RELEASE
  1634. tolua_Error tolua_err;
  1635. if (
  1636. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1637. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1638. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1639. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1640. )
  1641. goto tolua_lerror;
  1642. else
  1643. #endif
  1644. {
  1645. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1646. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1647. float time = ((float) tolua_tonumber(tolua_S,3,0));
  1648. #ifndef TOLUA_RELEASE
  1649. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTime'", NULL);
  1650. #endif
  1651. {
  1652. bool tolua_ret = (bool) self->SetTime(*name,time);
  1653. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1654. }
  1655. }
  1656. return 1;
  1657. #ifndef TOLUA_RELEASE
  1658. tolua_lerror:
  1659. tolua_error(tolua_S,"#ferror in function 'SetTime'.",&tolua_err);
  1660. return 0;
  1661. #endif
  1662. }
  1663. #endif //#ifndef TOLUA_DISABLE
  1664. /* method: SetWeight of class AnimationController */
  1665. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_SetWeight00
  1666. static int tolua_Graphics_AnimationController_SetWeight00(lua_State* tolua_S)
  1667. {
  1668. #ifndef TOLUA_RELEASE
  1669. tolua_Error tolua_err;
  1670. if (
  1671. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1672. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1673. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1674. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1675. )
  1676. goto tolua_lerror;
  1677. else
  1678. #endif
  1679. {
  1680. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1681. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1682. float weight = ((float) tolua_tonumber(tolua_S,3,0));
  1683. #ifndef TOLUA_RELEASE
  1684. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetWeight'", NULL);
  1685. #endif
  1686. {
  1687. bool tolua_ret = (bool) self->SetWeight(*name,weight);
  1688. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1689. }
  1690. }
  1691. return 1;
  1692. #ifndef TOLUA_RELEASE
  1693. tolua_lerror:
  1694. tolua_error(tolua_S,"#ferror in function 'SetWeight'.",&tolua_err);
  1695. return 0;
  1696. #endif
  1697. }
  1698. #endif //#ifndef TOLUA_DISABLE
  1699. /* method: SetLooped of class AnimationController */
  1700. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_SetLooped00
  1701. static int tolua_Graphics_AnimationController_SetLooped00(lua_State* tolua_S)
  1702. {
  1703. #ifndef TOLUA_RELEASE
  1704. tolua_Error tolua_err;
  1705. if (
  1706. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1707. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1708. !tolua_isboolean(tolua_S,3,0,&tolua_err) ||
  1709. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1710. )
  1711. goto tolua_lerror;
  1712. else
  1713. #endif
  1714. {
  1715. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1716. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1717. bool enable = ((bool) tolua_toboolean(tolua_S,3,0));
  1718. #ifndef TOLUA_RELEASE
  1719. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLooped'", NULL);
  1720. #endif
  1721. {
  1722. bool tolua_ret = (bool) self->SetLooped(*name,enable);
  1723. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1724. }
  1725. }
  1726. return 1;
  1727. #ifndef TOLUA_RELEASE
  1728. tolua_lerror:
  1729. tolua_error(tolua_S,"#ferror in function 'SetLooped'.",&tolua_err);
  1730. return 0;
  1731. #endif
  1732. }
  1733. #endif //#ifndef TOLUA_DISABLE
  1734. /* method: SetSpeed of class AnimationController */
  1735. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_SetSpeed00
  1736. static int tolua_Graphics_AnimationController_SetSpeed00(lua_State* tolua_S)
  1737. {
  1738. #ifndef TOLUA_RELEASE
  1739. tolua_Error tolua_err;
  1740. if (
  1741. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1742. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1743. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1744. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1745. )
  1746. goto tolua_lerror;
  1747. else
  1748. #endif
  1749. {
  1750. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1751. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1752. float speed = ((float) tolua_tonumber(tolua_S,3,0));
  1753. #ifndef TOLUA_RELEASE
  1754. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSpeed'", NULL);
  1755. #endif
  1756. {
  1757. bool tolua_ret = (bool) self->SetSpeed(*name,speed);
  1758. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1759. }
  1760. }
  1761. return 1;
  1762. #ifndef TOLUA_RELEASE
  1763. tolua_lerror:
  1764. tolua_error(tolua_S,"#ferror in function 'SetSpeed'.",&tolua_err);
  1765. return 0;
  1766. #endif
  1767. }
  1768. #endif //#ifndef TOLUA_DISABLE
  1769. /* method: SetAutoFade of class AnimationController */
  1770. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_SetAutoFade00
  1771. static int tolua_Graphics_AnimationController_SetAutoFade00(lua_State* tolua_S)
  1772. {
  1773. #ifndef TOLUA_RELEASE
  1774. tolua_Error tolua_err;
  1775. if (
  1776. !tolua_isusertype(tolua_S,1,"AnimationController",0,&tolua_err) ||
  1777. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1778. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1779. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1780. )
  1781. goto tolua_lerror;
  1782. else
  1783. #endif
  1784. {
  1785. AnimationController* self = (AnimationController*) tolua_tousertype(tolua_S,1,0);
  1786. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1787. float fadeOutTime = ((float) tolua_tonumber(tolua_S,3,0));
  1788. #ifndef TOLUA_RELEASE
  1789. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAutoFade'", NULL);
  1790. #endif
  1791. {
  1792. bool tolua_ret = (bool) self->SetAutoFade(*name,fadeOutTime);
  1793. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1794. }
  1795. }
  1796. return 1;
  1797. #ifndef TOLUA_RELEASE
  1798. tolua_lerror:
  1799. tolua_error(tolua_S,"#ferror in function 'SetAutoFade'.",&tolua_err);
  1800. return 0;
  1801. #endif
  1802. }
  1803. #endif //#ifndef TOLUA_DISABLE
  1804. /* method: IsPlaying of class AnimationController */
  1805. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_IsPlaying00
  1806. static int tolua_Graphics_AnimationController_IsPlaying00(lua_State* tolua_S)
  1807. {
  1808. #ifndef TOLUA_RELEASE
  1809. tolua_Error tolua_err;
  1810. if (
  1811. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  1812. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1813. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1814. )
  1815. goto tolua_lerror;
  1816. else
  1817. #endif
  1818. {
  1819. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  1820. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1821. #ifndef TOLUA_RELEASE
  1822. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsPlaying'", NULL);
  1823. #endif
  1824. {
  1825. bool tolua_ret = (bool) self->IsPlaying(*name);
  1826. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1827. }
  1828. }
  1829. return 1;
  1830. #ifndef TOLUA_RELEASE
  1831. tolua_lerror:
  1832. tolua_error(tolua_S,"#ferror in function 'IsPlaying'.",&tolua_err);
  1833. return 0;
  1834. #endif
  1835. }
  1836. #endif //#ifndef TOLUA_DISABLE
  1837. /* method: IsFadingIn of class AnimationController */
  1838. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_IsFadingIn00
  1839. static int tolua_Graphics_AnimationController_IsFadingIn00(lua_State* tolua_S)
  1840. {
  1841. #ifndef TOLUA_RELEASE
  1842. tolua_Error tolua_err;
  1843. if (
  1844. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  1845. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1846. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1847. )
  1848. goto tolua_lerror;
  1849. else
  1850. #endif
  1851. {
  1852. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  1853. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1854. #ifndef TOLUA_RELEASE
  1855. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsFadingIn'", NULL);
  1856. #endif
  1857. {
  1858. bool tolua_ret = (bool) self->IsFadingIn(*name);
  1859. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1860. }
  1861. }
  1862. return 1;
  1863. #ifndef TOLUA_RELEASE
  1864. tolua_lerror:
  1865. tolua_error(tolua_S,"#ferror in function 'IsFadingIn'.",&tolua_err);
  1866. return 0;
  1867. #endif
  1868. }
  1869. #endif //#ifndef TOLUA_DISABLE
  1870. /* method: IsFadingOut of class AnimationController */
  1871. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_IsFadingOut00
  1872. static int tolua_Graphics_AnimationController_IsFadingOut00(lua_State* tolua_S)
  1873. {
  1874. #ifndef TOLUA_RELEASE
  1875. tolua_Error tolua_err;
  1876. if (
  1877. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  1878. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1879. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1880. )
  1881. goto tolua_lerror;
  1882. else
  1883. #endif
  1884. {
  1885. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  1886. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1887. #ifndef TOLUA_RELEASE
  1888. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsFadingOut'", NULL);
  1889. #endif
  1890. {
  1891. bool tolua_ret = (bool) self->IsFadingOut(*name);
  1892. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1893. }
  1894. }
  1895. return 1;
  1896. #ifndef TOLUA_RELEASE
  1897. tolua_lerror:
  1898. tolua_error(tolua_S,"#ferror in function 'IsFadingOut'.",&tolua_err);
  1899. return 0;
  1900. #endif
  1901. }
  1902. #endif //#ifndef TOLUA_DISABLE
  1903. /* method: GetLayer of class AnimationController */
  1904. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_GetLayer00
  1905. static int tolua_Graphics_AnimationController_GetLayer00(lua_State* tolua_S)
  1906. {
  1907. #ifndef TOLUA_RELEASE
  1908. tolua_Error tolua_err;
  1909. if (
  1910. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  1911. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1912. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1913. )
  1914. goto tolua_lerror;
  1915. else
  1916. #endif
  1917. {
  1918. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  1919. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1920. #ifndef TOLUA_RELEASE
  1921. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLayer'", NULL);
  1922. #endif
  1923. {
  1924. unsigned char tolua_ret = (unsigned char) self->GetLayer(*name);
  1925. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1926. }
  1927. }
  1928. return 1;
  1929. #ifndef TOLUA_RELEASE
  1930. tolua_lerror:
  1931. tolua_error(tolua_S,"#ferror in function 'GetLayer'.",&tolua_err);
  1932. return 0;
  1933. #endif
  1934. }
  1935. #endif //#ifndef TOLUA_DISABLE
  1936. /* method: GetStartBone of class AnimationController */
  1937. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_GetStartBone00
  1938. static int tolua_Graphics_AnimationController_GetStartBone00(lua_State* tolua_S)
  1939. {
  1940. #ifndef TOLUA_RELEASE
  1941. tolua_Error tolua_err;
  1942. if (
  1943. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  1944. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1945. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1946. )
  1947. goto tolua_lerror;
  1948. else
  1949. #endif
  1950. {
  1951. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  1952. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1953. #ifndef TOLUA_RELEASE
  1954. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetStartBone'", NULL);
  1955. #endif
  1956. {
  1957. Bone* tolua_ret = (Bone*) self->GetStartBone(*name);
  1958. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Bone");
  1959. }
  1960. }
  1961. return 1;
  1962. #ifndef TOLUA_RELEASE
  1963. tolua_lerror:
  1964. tolua_error(tolua_S,"#ferror in function 'GetStartBone'.",&tolua_err);
  1965. return 0;
  1966. #endif
  1967. }
  1968. #endif //#ifndef TOLUA_DISABLE
  1969. /* method: GetStartBoneName of class AnimationController */
  1970. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_GetStartBoneName00
  1971. static int tolua_Graphics_AnimationController_GetStartBoneName00(lua_State* tolua_S)
  1972. {
  1973. #ifndef TOLUA_RELEASE
  1974. tolua_Error tolua_err;
  1975. if (
  1976. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  1977. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1978. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1979. )
  1980. goto tolua_lerror;
  1981. else
  1982. #endif
  1983. {
  1984. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  1985. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  1986. #ifndef TOLUA_RELEASE
  1987. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetStartBoneName'", NULL);
  1988. #endif
  1989. {
  1990. const String& tolua_ret = (const String&) self->GetStartBoneName(*name);
  1991. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  1992. }
  1993. }
  1994. return 1;
  1995. #ifndef TOLUA_RELEASE
  1996. tolua_lerror:
  1997. tolua_error(tolua_S,"#ferror in function 'GetStartBoneName'.",&tolua_err);
  1998. return 0;
  1999. #endif
  2000. }
  2001. #endif //#ifndef TOLUA_DISABLE
  2002. /* method: GetTime of class AnimationController */
  2003. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_GetTime00
  2004. static int tolua_Graphics_AnimationController_GetTime00(lua_State* tolua_S)
  2005. {
  2006. #ifndef TOLUA_RELEASE
  2007. tolua_Error tolua_err;
  2008. if (
  2009. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  2010. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  2011. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2012. )
  2013. goto tolua_lerror;
  2014. else
  2015. #endif
  2016. {
  2017. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  2018. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  2019. #ifndef TOLUA_RELEASE
  2020. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTime'", NULL);
  2021. #endif
  2022. {
  2023. float tolua_ret = (float) self->GetTime(*name);
  2024. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2025. }
  2026. }
  2027. return 1;
  2028. #ifndef TOLUA_RELEASE
  2029. tolua_lerror:
  2030. tolua_error(tolua_S,"#ferror in function 'GetTime'.",&tolua_err);
  2031. return 0;
  2032. #endif
  2033. }
  2034. #endif //#ifndef TOLUA_DISABLE
  2035. /* method: GetWeight of class AnimationController */
  2036. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_GetWeight00
  2037. static int tolua_Graphics_AnimationController_GetWeight00(lua_State* tolua_S)
  2038. {
  2039. #ifndef TOLUA_RELEASE
  2040. tolua_Error tolua_err;
  2041. if (
  2042. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  2043. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  2044. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2045. )
  2046. goto tolua_lerror;
  2047. else
  2048. #endif
  2049. {
  2050. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  2051. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  2052. #ifndef TOLUA_RELEASE
  2053. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWeight'", NULL);
  2054. #endif
  2055. {
  2056. float tolua_ret = (float) self->GetWeight(*name);
  2057. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2058. }
  2059. }
  2060. return 1;
  2061. #ifndef TOLUA_RELEASE
  2062. tolua_lerror:
  2063. tolua_error(tolua_S,"#ferror in function 'GetWeight'.",&tolua_err);
  2064. return 0;
  2065. #endif
  2066. }
  2067. #endif //#ifndef TOLUA_DISABLE
  2068. /* method: IsLooped of class AnimationController */
  2069. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_IsLooped00
  2070. static int tolua_Graphics_AnimationController_IsLooped00(lua_State* tolua_S)
  2071. {
  2072. #ifndef TOLUA_RELEASE
  2073. tolua_Error tolua_err;
  2074. if (
  2075. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  2076. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  2077. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2078. )
  2079. goto tolua_lerror;
  2080. else
  2081. #endif
  2082. {
  2083. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  2084. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  2085. #ifndef TOLUA_RELEASE
  2086. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsLooped'", NULL);
  2087. #endif
  2088. {
  2089. bool tolua_ret = (bool) self->IsLooped(*name);
  2090. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  2091. }
  2092. }
  2093. return 1;
  2094. #ifndef TOLUA_RELEASE
  2095. tolua_lerror:
  2096. tolua_error(tolua_S,"#ferror in function 'IsLooped'.",&tolua_err);
  2097. return 0;
  2098. #endif
  2099. }
  2100. #endif //#ifndef TOLUA_DISABLE
  2101. /* method: GetLength of class AnimationController */
  2102. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_GetLength00
  2103. static int tolua_Graphics_AnimationController_GetLength00(lua_State* tolua_S)
  2104. {
  2105. #ifndef TOLUA_RELEASE
  2106. tolua_Error tolua_err;
  2107. if (
  2108. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  2109. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  2110. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2111. )
  2112. goto tolua_lerror;
  2113. else
  2114. #endif
  2115. {
  2116. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  2117. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  2118. #ifndef TOLUA_RELEASE
  2119. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLength'", NULL);
  2120. #endif
  2121. {
  2122. float tolua_ret = (float) self->GetLength(*name);
  2123. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2124. }
  2125. }
  2126. return 1;
  2127. #ifndef TOLUA_RELEASE
  2128. tolua_lerror:
  2129. tolua_error(tolua_S,"#ferror in function 'GetLength'.",&tolua_err);
  2130. return 0;
  2131. #endif
  2132. }
  2133. #endif //#ifndef TOLUA_DISABLE
  2134. /* method: GetSpeed of class AnimationController */
  2135. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_GetSpeed00
  2136. static int tolua_Graphics_AnimationController_GetSpeed00(lua_State* tolua_S)
  2137. {
  2138. #ifndef TOLUA_RELEASE
  2139. tolua_Error tolua_err;
  2140. if (
  2141. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  2142. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  2143. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2144. )
  2145. goto tolua_lerror;
  2146. else
  2147. #endif
  2148. {
  2149. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  2150. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  2151. #ifndef TOLUA_RELEASE
  2152. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSpeed'", NULL);
  2153. #endif
  2154. {
  2155. float tolua_ret = (float) self->GetSpeed(*name);
  2156. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2157. }
  2158. }
  2159. return 1;
  2160. #ifndef TOLUA_RELEASE
  2161. tolua_lerror:
  2162. tolua_error(tolua_S,"#ferror in function 'GetSpeed'.",&tolua_err);
  2163. return 0;
  2164. #endif
  2165. }
  2166. #endif //#ifndef TOLUA_DISABLE
  2167. /* method: GetFadeTarget of class AnimationController */
  2168. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_GetFadeTarget00
  2169. static int tolua_Graphics_AnimationController_GetFadeTarget00(lua_State* tolua_S)
  2170. {
  2171. #ifndef TOLUA_RELEASE
  2172. tolua_Error tolua_err;
  2173. if (
  2174. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  2175. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  2176. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2177. )
  2178. goto tolua_lerror;
  2179. else
  2180. #endif
  2181. {
  2182. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  2183. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  2184. #ifndef TOLUA_RELEASE
  2185. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFadeTarget'", NULL);
  2186. #endif
  2187. {
  2188. float tolua_ret = (float) self->GetFadeTarget(*name);
  2189. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2190. }
  2191. }
  2192. return 1;
  2193. #ifndef TOLUA_RELEASE
  2194. tolua_lerror:
  2195. tolua_error(tolua_S,"#ferror in function 'GetFadeTarget'.",&tolua_err);
  2196. return 0;
  2197. #endif
  2198. }
  2199. #endif //#ifndef TOLUA_DISABLE
  2200. /* method: GetFadeTime of class AnimationController */
  2201. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_GetFadeTime00
  2202. static int tolua_Graphics_AnimationController_GetFadeTime00(lua_State* tolua_S)
  2203. {
  2204. #ifndef TOLUA_RELEASE
  2205. tolua_Error tolua_err;
  2206. if (
  2207. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  2208. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  2209. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2210. )
  2211. goto tolua_lerror;
  2212. else
  2213. #endif
  2214. {
  2215. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  2216. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  2217. #ifndef TOLUA_RELEASE
  2218. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFadeTime'", NULL);
  2219. #endif
  2220. {
  2221. float tolua_ret = (float) self->GetFadeTime(*name);
  2222. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2223. }
  2224. }
  2225. return 1;
  2226. #ifndef TOLUA_RELEASE
  2227. tolua_lerror:
  2228. tolua_error(tolua_S,"#ferror in function 'GetFadeTime'.",&tolua_err);
  2229. return 0;
  2230. #endif
  2231. }
  2232. #endif //#ifndef TOLUA_DISABLE
  2233. /* method: GetAutoFade of class AnimationController */
  2234. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationController_GetAutoFade00
  2235. static int tolua_Graphics_AnimationController_GetAutoFade00(lua_State* tolua_S)
  2236. {
  2237. #ifndef TOLUA_RELEASE
  2238. tolua_Error tolua_err;
  2239. if (
  2240. !tolua_isusertype(tolua_S,1,"const AnimationController",0,&tolua_err) ||
  2241. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  2242. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2243. )
  2244. goto tolua_lerror;
  2245. else
  2246. #endif
  2247. {
  2248. const AnimationController* self = (const AnimationController*) tolua_tousertype(tolua_S,1,0);
  2249. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  2250. #ifndef TOLUA_RELEASE
  2251. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAutoFade'", NULL);
  2252. #endif
  2253. {
  2254. float tolua_ret = (float) self->GetAutoFade(*name);
  2255. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2256. }
  2257. }
  2258. return 1;
  2259. #ifndef TOLUA_RELEASE
  2260. tolua_lerror:
  2261. tolua_error(tolua_S,"#ferror in function 'GetAutoFade'.",&tolua_err);
  2262. return 0;
  2263. #endif
  2264. }
  2265. #endif //#ifndef TOLUA_DISABLE
  2266. /* method: new of class AnimationState */
  2267. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_new00
  2268. static int tolua_Graphics_AnimationState_new00(lua_State* tolua_S)
  2269. {
  2270. #ifndef TOLUA_RELEASE
  2271. tolua_Error tolua_err;
  2272. if (
  2273. !tolua_isusertable(tolua_S,1,"AnimationState",0,&tolua_err) ||
  2274. !tolua_isusertype(tolua_S,2,"AnimatedModel",0,&tolua_err) ||
  2275. !tolua_isusertype(tolua_S,3,"Animation",0,&tolua_err) ||
  2276. !tolua_isnoobj(tolua_S,4,&tolua_err)
  2277. )
  2278. goto tolua_lerror;
  2279. else
  2280. #endif
  2281. {
  2282. AnimatedModel* model = ((AnimatedModel*) tolua_tousertype(tolua_S,2,0));
  2283. Animation* animation = ((Animation*) tolua_tousertype(tolua_S,3,0));
  2284. {
  2285. AnimationState* tolua_ret = (AnimationState*) Mtolua_new((AnimationState)(model,animation));
  2286. tolua_pushusertype(tolua_S,(void*)tolua_ret,"AnimationState");
  2287. }
  2288. }
  2289. return 1;
  2290. #ifndef TOLUA_RELEASE
  2291. tolua_lerror:
  2292. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  2293. return 0;
  2294. #endif
  2295. }
  2296. #endif //#ifndef TOLUA_DISABLE
  2297. /* method: new_local of class AnimationState */
  2298. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_new00_local
  2299. static int tolua_Graphics_AnimationState_new00_local(lua_State* tolua_S)
  2300. {
  2301. #ifndef TOLUA_RELEASE
  2302. tolua_Error tolua_err;
  2303. if (
  2304. !tolua_isusertable(tolua_S,1,"AnimationState",0,&tolua_err) ||
  2305. !tolua_isusertype(tolua_S,2,"AnimatedModel",0,&tolua_err) ||
  2306. !tolua_isusertype(tolua_S,3,"Animation",0,&tolua_err) ||
  2307. !tolua_isnoobj(tolua_S,4,&tolua_err)
  2308. )
  2309. goto tolua_lerror;
  2310. else
  2311. #endif
  2312. {
  2313. AnimatedModel* model = ((AnimatedModel*) tolua_tousertype(tolua_S,2,0));
  2314. Animation* animation = ((Animation*) tolua_tousertype(tolua_S,3,0));
  2315. {
  2316. AnimationState* tolua_ret = (AnimationState*) Mtolua_new((AnimationState)(model,animation));
  2317. tolua_pushusertype(tolua_S,(void*)tolua_ret,"AnimationState");
  2318. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2319. }
  2320. }
  2321. return 1;
  2322. #ifndef TOLUA_RELEASE
  2323. tolua_lerror:
  2324. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  2325. return 0;
  2326. #endif
  2327. }
  2328. #endif //#ifndef TOLUA_DISABLE
  2329. /* method: new of class AnimationState */
  2330. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_new01
  2331. static int tolua_Graphics_AnimationState_new01(lua_State* tolua_S)
  2332. {
  2333. tolua_Error tolua_err;
  2334. if (
  2335. !tolua_isusertable(tolua_S,1,"AnimationState",0,&tolua_err) ||
  2336. !tolua_isusertype(tolua_S,2,"Node",0,&tolua_err) ||
  2337. !tolua_isusertype(tolua_S,3,"Animation",0,&tolua_err) ||
  2338. !tolua_isnoobj(tolua_S,4,&tolua_err)
  2339. )
  2340. goto tolua_lerror;
  2341. else
  2342. {
  2343. Node* node = ((Node*) tolua_tousertype(tolua_S,2,0));
  2344. Animation* animation = ((Animation*) tolua_tousertype(tolua_S,3,0));
  2345. {
  2346. AnimationState* tolua_ret = (AnimationState*) Mtolua_new((AnimationState)(node,animation));
  2347. tolua_pushusertype(tolua_S,(void*)tolua_ret,"AnimationState");
  2348. }
  2349. }
  2350. return 1;
  2351. tolua_lerror:
  2352. return tolua_Graphics_AnimationState_new00(tolua_S);
  2353. }
  2354. #endif //#ifndef TOLUA_DISABLE
  2355. /* method: new_local of class AnimationState */
  2356. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_new01_local
  2357. static int tolua_Graphics_AnimationState_new01_local(lua_State* tolua_S)
  2358. {
  2359. tolua_Error tolua_err;
  2360. if (
  2361. !tolua_isusertable(tolua_S,1,"AnimationState",0,&tolua_err) ||
  2362. !tolua_isusertype(tolua_S,2,"Node",0,&tolua_err) ||
  2363. !tolua_isusertype(tolua_S,3,"Animation",0,&tolua_err) ||
  2364. !tolua_isnoobj(tolua_S,4,&tolua_err)
  2365. )
  2366. goto tolua_lerror;
  2367. else
  2368. {
  2369. Node* node = ((Node*) tolua_tousertype(tolua_S,2,0));
  2370. Animation* animation = ((Animation*) tolua_tousertype(tolua_S,3,0));
  2371. {
  2372. AnimationState* tolua_ret = (AnimationState*) Mtolua_new((AnimationState)(node,animation));
  2373. tolua_pushusertype(tolua_S,(void*)tolua_ret,"AnimationState");
  2374. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  2375. }
  2376. }
  2377. return 1;
  2378. tolua_lerror:
  2379. return tolua_Graphics_AnimationState_new00_local(tolua_S);
  2380. }
  2381. #endif //#ifndef TOLUA_DISABLE
  2382. /* method: delete of class AnimationState */
  2383. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_delete00
  2384. static int tolua_Graphics_AnimationState_delete00(lua_State* tolua_S)
  2385. {
  2386. #ifndef TOLUA_RELEASE
  2387. tolua_Error tolua_err;
  2388. if (
  2389. !tolua_isusertype(tolua_S,1,"AnimationState",0,&tolua_err) ||
  2390. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2391. )
  2392. goto tolua_lerror;
  2393. else
  2394. #endif
  2395. {
  2396. AnimationState* self = (AnimationState*) tolua_tousertype(tolua_S,1,0);
  2397. #ifndef TOLUA_RELEASE
  2398. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  2399. #endif
  2400. Mtolua_delete(self);
  2401. }
  2402. return 0;
  2403. #ifndef TOLUA_RELEASE
  2404. tolua_lerror:
  2405. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  2406. return 0;
  2407. #endif
  2408. }
  2409. #endif //#ifndef TOLUA_DISABLE
  2410. /* method: SetStartBone of class AnimationState */
  2411. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_SetStartBone00
  2412. static int tolua_Graphics_AnimationState_SetStartBone00(lua_State* tolua_S)
  2413. {
  2414. #ifndef TOLUA_RELEASE
  2415. tolua_Error tolua_err;
  2416. if (
  2417. !tolua_isusertype(tolua_S,1,"AnimationState",0,&tolua_err) ||
  2418. !tolua_isusertype(tolua_S,2,"Bone",0,&tolua_err) ||
  2419. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2420. )
  2421. goto tolua_lerror;
  2422. else
  2423. #endif
  2424. {
  2425. AnimationState* self = (AnimationState*) tolua_tousertype(tolua_S,1,0);
  2426. Bone* bone = ((Bone*) tolua_tousertype(tolua_S,2,0));
  2427. #ifndef TOLUA_RELEASE
  2428. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetStartBone'", NULL);
  2429. #endif
  2430. {
  2431. self->SetStartBone(bone);
  2432. }
  2433. }
  2434. return 0;
  2435. #ifndef TOLUA_RELEASE
  2436. tolua_lerror:
  2437. tolua_error(tolua_S,"#ferror in function 'SetStartBone'.",&tolua_err);
  2438. return 0;
  2439. #endif
  2440. }
  2441. #endif //#ifndef TOLUA_DISABLE
  2442. /* method: SetLooped of class AnimationState */
  2443. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_SetLooped00
  2444. static int tolua_Graphics_AnimationState_SetLooped00(lua_State* tolua_S)
  2445. {
  2446. #ifndef TOLUA_RELEASE
  2447. tolua_Error tolua_err;
  2448. if (
  2449. !tolua_isusertype(tolua_S,1,"AnimationState",0,&tolua_err) ||
  2450. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  2451. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2452. )
  2453. goto tolua_lerror;
  2454. else
  2455. #endif
  2456. {
  2457. AnimationState* self = (AnimationState*) tolua_tousertype(tolua_S,1,0);
  2458. bool looped = ((bool) tolua_toboolean(tolua_S,2,0));
  2459. #ifndef TOLUA_RELEASE
  2460. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLooped'", NULL);
  2461. #endif
  2462. {
  2463. self->SetLooped(looped);
  2464. }
  2465. }
  2466. return 0;
  2467. #ifndef TOLUA_RELEASE
  2468. tolua_lerror:
  2469. tolua_error(tolua_S,"#ferror in function 'SetLooped'.",&tolua_err);
  2470. return 0;
  2471. #endif
  2472. }
  2473. #endif //#ifndef TOLUA_DISABLE
  2474. /* method: SetWeight of class AnimationState */
  2475. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_SetWeight00
  2476. static int tolua_Graphics_AnimationState_SetWeight00(lua_State* tolua_S)
  2477. {
  2478. #ifndef TOLUA_RELEASE
  2479. tolua_Error tolua_err;
  2480. if (
  2481. !tolua_isusertype(tolua_S,1,"AnimationState",0,&tolua_err) ||
  2482. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2483. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2484. )
  2485. goto tolua_lerror;
  2486. else
  2487. #endif
  2488. {
  2489. AnimationState* self = (AnimationState*) tolua_tousertype(tolua_S,1,0);
  2490. float weight = ((float) tolua_tonumber(tolua_S,2,0));
  2491. #ifndef TOLUA_RELEASE
  2492. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetWeight'", NULL);
  2493. #endif
  2494. {
  2495. self->SetWeight(weight);
  2496. }
  2497. }
  2498. return 0;
  2499. #ifndef TOLUA_RELEASE
  2500. tolua_lerror:
  2501. tolua_error(tolua_S,"#ferror in function 'SetWeight'.",&tolua_err);
  2502. return 0;
  2503. #endif
  2504. }
  2505. #endif //#ifndef TOLUA_DISABLE
  2506. /* method: SetTime of class AnimationState */
  2507. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_SetTime00
  2508. static int tolua_Graphics_AnimationState_SetTime00(lua_State* tolua_S)
  2509. {
  2510. #ifndef TOLUA_RELEASE
  2511. tolua_Error tolua_err;
  2512. if (
  2513. !tolua_isusertype(tolua_S,1,"AnimationState",0,&tolua_err) ||
  2514. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2515. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2516. )
  2517. goto tolua_lerror;
  2518. else
  2519. #endif
  2520. {
  2521. AnimationState* self = (AnimationState*) tolua_tousertype(tolua_S,1,0);
  2522. float time = ((float) tolua_tonumber(tolua_S,2,0));
  2523. #ifndef TOLUA_RELEASE
  2524. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTime'", NULL);
  2525. #endif
  2526. {
  2527. self->SetTime(time);
  2528. }
  2529. }
  2530. return 0;
  2531. #ifndef TOLUA_RELEASE
  2532. tolua_lerror:
  2533. tolua_error(tolua_S,"#ferror in function 'SetTime'.",&tolua_err);
  2534. return 0;
  2535. #endif
  2536. }
  2537. #endif //#ifndef TOLUA_DISABLE
  2538. /* method: AddWeight of class AnimationState */
  2539. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_AddWeight00
  2540. static int tolua_Graphics_AnimationState_AddWeight00(lua_State* tolua_S)
  2541. {
  2542. #ifndef TOLUA_RELEASE
  2543. tolua_Error tolua_err;
  2544. if (
  2545. !tolua_isusertype(tolua_S,1,"AnimationState",0,&tolua_err) ||
  2546. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2547. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2548. )
  2549. goto tolua_lerror;
  2550. else
  2551. #endif
  2552. {
  2553. AnimationState* self = (AnimationState*) tolua_tousertype(tolua_S,1,0);
  2554. float delta = ((float) tolua_tonumber(tolua_S,2,0));
  2555. #ifndef TOLUA_RELEASE
  2556. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddWeight'", NULL);
  2557. #endif
  2558. {
  2559. self->AddWeight(delta);
  2560. }
  2561. }
  2562. return 0;
  2563. #ifndef TOLUA_RELEASE
  2564. tolua_lerror:
  2565. tolua_error(tolua_S,"#ferror in function 'AddWeight'.",&tolua_err);
  2566. return 0;
  2567. #endif
  2568. }
  2569. #endif //#ifndef TOLUA_DISABLE
  2570. /* method: AddTime of class AnimationState */
  2571. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_AddTime00
  2572. static int tolua_Graphics_AnimationState_AddTime00(lua_State* tolua_S)
  2573. {
  2574. #ifndef TOLUA_RELEASE
  2575. tolua_Error tolua_err;
  2576. if (
  2577. !tolua_isusertype(tolua_S,1,"AnimationState",0,&tolua_err) ||
  2578. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2579. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2580. )
  2581. goto tolua_lerror;
  2582. else
  2583. #endif
  2584. {
  2585. AnimationState* self = (AnimationState*) tolua_tousertype(tolua_S,1,0);
  2586. float delta = ((float) tolua_tonumber(tolua_S,2,0));
  2587. #ifndef TOLUA_RELEASE
  2588. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddTime'", NULL);
  2589. #endif
  2590. {
  2591. self->AddTime(delta);
  2592. }
  2593. }
  2594. return 0;
  2595. #ifndef TOLUA_RELEASE
  2596. tolua_lerror:
  2597. tolua_error(tolua_S,"#ferror in function 'AddTime'.",&tolua_err);
  2598. return 0;
  2599. #endif
  2600. }
  2601. #endif //#ifndef TOLUA_DISABLE
  2602. /* method: SetLayer of class AnimationState */
  2603. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_SetLayer00
  2604. static int tolua_Graphics_AnimationState_SetLayer00(lua_State* tolua_S)
  2605. {
  2606. #ifndef TOLUA_RELEASE
  2607. tolua_Error tolua_err;
  2608. if (
  2609. !tolua_isusertype(tolua_S,1,"AnimationState",0,&tolua_err) ||
  2610. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2611. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2612. )
  2613. goto tolua_lerror;
  2614. else
  2615. #endif
  2616. {
  2617. AnimationState* self = (AnimationState*) tolua_tousertype(tolua_S,1,0);
  2618. unsigned char layer = ((unsigned char) tolua_tonumber(tolua_S,2,0));
  2619. #ifndef TOLUA_RELEASE
  2620. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLayer'", NULL);
  2621. #endif
  2622. {
  2623. self->SetLayer(layer);
  2624. }
  2625. }
  2626. return 0;
  2627. #ifndef TOLUA_RELEASE
  2628. tolua_lerror:
  2629. tolua_error(tolua_S,"#ferror in function 'SetLayer'.",&tolua_err);
  2630. return 0;
  2631. #endif
  2632. }
  2633. #endif //#ifndef TOLUA_DISABLE
  2634. /* method: GetAnimation of class AnimationState */
  2635. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_GetAnimation00
  2636. static int tolua_Graphics_AnimationState_GetAnimation00(lua_State* tolua_S)
  2637. {
  2638. #ifndef TOLUA_RELEASE
  2639. tolua_Error tolua_err;
  2640. if (
  2641. !tolua_isusertype(tolua_S,1,"const AnimationState",0,&tolua_err) ||
  2642. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2643. )
  2644. goto tolua_lerror;
  2645. else
  2646. #endif
  2647. {
  2648. const AnimationState* self = (const AnimationState*) tolua_tousertype(tolua_S,1,0);
  2649. #ifndef TOLUA_RELEASE
  2650. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAnimation'", NULL);
  2651. #endif
  2652. {
  2653. Animation* tolua_ret = (Animation*) self->GetAnimation();
  2654. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Animation");
  2655. }
  2656. }
  2657. return 1;
  2658. #ifndef TOLUA_RELEASE
  2659. tolua_lerror:
  2660. tolua_error(tolua_S,"#ferror in function 'GetAnimation'.",&tolua_err);
  2661. return 0;
  2662. #endif
  2663. }
  2664. #endif //#ifndef TOLUA_DISABLE
  2665. /* method: GetStartBone of class AnimationState */
  2666. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_GetStartBone00
  2667. static int tolua_Graphics_AnimationState_GetStartBone00(lua_State* tolua_S)
  2668. {
  2669. #ifndef TOLUA_RELEASE
  2670. tolua_Error tolua_err;
  2671. if (
  2672. !tolua_isusertype(tolua_S,1,"const AnimationState",0,&tolua_err) ||
  2673. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2674. )
  2675. goto tolua_lerror;
  2676. else
  2677. #endif
  2678. {
  2679. const AnimationState* self = (const AnimationState*) tolua_tousertype(tolua_S,1,0);
  2680. #ifndef TOLUA_RELEASE
  2681. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetStartBone'", NULL);
  2682. #endif
  2683. {
  2684. Bone* tolua_ret = (Bone*) self->GetStartBone();
  2685. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Bone");
  2686. }
  2687. }
  2688. return 1;
  2689. #ifndef TOLUA_RELEASE
  2690. tolua_lerror:
  2691. tolua_error(tolua_S,"#ferror in function 'GetStartBone'.",&tolua_err);
  2692. return 0;
  2693. #endif
  2694. }
  2695. #endif //#ifndef TOLUA_DISABLE
  2696. /* method: IsEnabled of class AnimationState */
  2697. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_IsEnabled00
  2698. static int tolua_Graphics_AnimationState_IsEnabled00(lua_State* tolua_S)
  2699. {
  2700. #ifndef TOLUA_RELEASE
  2701. tolua_Error tolua_err;
  2702. if (
  2703. !tolua_isusertype(tolua_S,1,"const AnimationState",0,&tolua_err) ||
  2704. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2705. )
  2706. goto tolua_lerror;
  2707. else
  2708. #endif
  2709. {
  2710. const AnimationState* self = (const AnimationState*) tolua_tousertype(tolua_S,1,0);
  2711. #ifndef TOLUA_RELEASE
  2712. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsEnabled'", NULL);
  2713. #endif
  2714. {
  2715. bool tolua_ret = (bool) self->IsEnabled();
  2716. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  2717. }
  2718. }
  2719. return 1;
  2720. #ifndef TOLUA_RELEASE
  2721. tolua_lerror:
  2722. tolua_error(tolua_S,"#ferror in function 'IsEnabled'.",&tolua_err);
  2723. return 0;
  2724. #endif
  2725. }
  2726. #endif //#ifndef TOLUA_DISABLE
  2727. /* method: IsLooped of class AnimationState */
  2728. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_IsLooped00
  2729. static int tolua_Graphics_AnimationState_IsLooped00(lua_State* tolua_S)
  2730. {
  2731. #ifndef TOLUA_RELEASE
  2732. tolua_Error tolua_err;
  2733. if (
  2734. !tolua_isusertype(tolua_S,1,"const AnimationState",0,&tolua_err) ||
  2735. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2736. )
  2737. goto tolua_lerror;
  2738. else
  2739. #endif
  2740. {
  2741. const AnimationState* self = (const AnimationState*) tolua_tousertype(tolua_S,1,0);
  2742. #ifndef TOLUA_RELEASE
  2743. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsLooped'", NULL);
  2744. #endif
  2745. {
  2746. bool tolua_ret = (bool) self->IsLooped();
  2747. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  2748. }
  2749. }
  2750. return 1;
  2751. #ifndef TOLUA_RELEASE
  2752. tolua_lerror:
  2753. tolua_error(tolua_S,"#ferror in function 'IsLooped'.",&tolua_err);
  2754. return 0;
  2755. #endif
  2756. }
  2757. #endif //#ifndef TOLUA_DISABLE
  2758. /* method: GetWeight of class AnimationState */
  2759. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_GetWeight00
  2760. static int tolua_Graphics_AnimationState_GetWeight00(lua_State* tolua_S)
  2761. {
  2762. #ifndef TOLUA_RELEASE
  2763. tolua_Error tolua_err;
  2764. if (
  2765. !tolua_isusertype(tolua_S,1,"const AnimationState",0,&tolua_err) ||
  2766. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2767. )
  2768. goto tolua_lerror;
  2769. else
  2770. #endif
  2771. {
  2772. const AnimationState* self = (const AnimationState*) tolua_tousertype(tolua_S,1,0);
  2773. #ifndef TOLUA_RELEASE
  2774. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWeight'", NULL);
  2775. #endif
  2776. {
  2777. float tolua_ret = (float) self->GetWeight();
  2778. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2779. }
  2780. }
  2781. return 1;
  2782. #ifndef TOLUA_RELEASE
  2783. tolua_lerror:
  2784. tolua_error(tolua_S,"#ferror in function 'GetWeight'.",&tolua_err);
  2785. return 0;
  2786. #endif
  2787. }
  2788. #endif //#ifndef TOLUA_DISABLE
  2789. /* method: GetTime of class AnimationState */
  2790. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_GetTime00
  2791. static int tolua_Graphics_AnimationState_GetTime00(lua_State* tolua_S)
  2792. {
  2793. #ifndef TOLUA_RELEASE
  2794. tolua_Error tolua_err;
  2795. if (
  2796. !tolua_isusertype(tolua_S,1,"const AnimationState",0,&tolua_err) ||
  2797. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2798. )
  2799. goto tolua_lerror;
  2800. else
  2801. #endif
  2802. {
  2803. const AnimationState* self = (const AnimationState*) tolua_tousertype(tolua_S,1,0);
  2804. #ifndef TOLUA_RELEASE
  2805. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTime'", NULL);
  2806. #endif
  2807. {
  2808. float tolua_ret = (float) self->GetTime();
  2809. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2810. }
  2811. }
  2812. return 1;
  2813. #ifndef TOLUA_RELEASE
  2814. tolua_lerror:
  2815. tolua_error(tolua_S,"#ferror in function 'GetTime'.",&tolua_err);
  2816. return 0;
  2817. #endif
  2818. }
  2819. #endif //#ifndef TOLUA_DISABLE
  2820. /* method: GetLength of class AnimationState */
  2821. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_GetLength00
  2822. static int tolua_Graphics_AnimationState_GetLength00(lua_State* tolua_S)
  2823. {
  2824. #ifndef TOLUA_RELEASE
  2825. tolua_Error tolua_err;
  2826. if (
  2827. !tolua_isusertype(tolua_S,1,"const AnimationState",0,&tolua_err) ||
  2828. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2829. )
  2830. goto tolua_lerror;
  2831. else
  2832. #endif
  2833. {
  2834. const AnimationState* self = (const AnimationState*) tolua_tousertype(tolua_S,1,0);
  2835. #ifndef TOLUA_RELEASE
  2836. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLength'", NULL);
  2837. #endif
  2838. {
  2839. float tolua_ret = (float) self->GetLength();
  2840. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2841. }
  2842. }
  2843. return 1;
  2844. #ifndef TOLUA_RELEASE
  2845. tolua_lerror:
  2846. tolua_error(tolua_S,"#ferror in function 'GetLength'.",&tolua_err);
  2847. return 0;
  2848. #endif
  2849. }
  2850. #endif //#ifndef TOLUA_DISABLE
  2851. /* method: GetLayer of class AnimationState */
  2852. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_GetLayer00
  2853. static int tolua_Graphics_AnimationState_GetLayer00(lua_State* tolua_S)
  2854. {
  2855. #ifndef TOLUA_RELEASE
  2856. tolua_Error tolua_err;
  2857. if (
  2858. !tolua_isusertype(tolua_S,1,"const AnimationState",0,&tolua_err) ||
  2859. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2860. )
  2861. goto tolua_lerror;
  2862. else
  2863. #endif
  2864. {
  2865. const AnimationState* self = (const AnimationState*) tolua_tousertype(tolua_S,1,0);
  2866. #ifndef TOLUA_RELEASE
  2867. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLayer'", NULL);
  2868. #endif
  2869. {
  2870. unsigned char tolua_ret = (unsigned char) self->GetLayer();
  2871. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2872. }
  2873. }
  2874. return 1;
  2875. #ifndef TOLUA_RELEASE
  2876. tolua_lerror:
  2877. tolua_error(tolua_S,"#ferror in function 'GetLayer'.",&tolua_err);
  2878. return 0;
  2879. #endif
  2880. }
  2881. #endif //#ifndef TOLUA_DISABLE
  2882. /* method: Apply of class AnimationState */
  2883. #ifndef TOLUA_DISABLE_tolua_Graphics_AnimationState_Apply00
  2884. static int tolua_Graphics_AnimationState_Apply00(lua_State* tolua_S)
  2885. {
  2886. #ifndef TOLUA_RELEASE
  2887. tolua_Error tolua_err;
  2888. if (
  2889. !tolua_isusertype(tolua_S,1,"AnimationState",0,&tolua_err) ||
  2890. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2891. )
  2892. goto tolua_lerror;
  2893. else
  2894. #endif
  2895. {
  2896. AnimationState* self = (AnimationState*) tolua_tousertype(tolua_S,1,0);
  2897. #ifndef TOLUA_RELEASE
  2898. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Apply'", NULL);
  2899. #endif
  2900. {
  2901. self->Apply();
  2902. }
  2903. }
  2904. return 0;
  2905. #ifndef TOLUA_RELEASE
  2906. tolua_lerror:
  2907. tolua_error(tolua_S,"#ferror in function 'Apply'.",&tolua_err);
  2908. return 0;
  2909. #endif
  2910. }
  2911. #endif //#ifndef TOLUA_DISABLE
  2912. /* method: SetMaterial of class BillboardSet */
  2913. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_SetMaterial00
  2914. static int tolua_Graphics_BillboardSet_SetMaterial00(lua_State* tolua_S)
  2915. {
  2916. #ifndef TOLUA_RELEASE
  2917. tolua_Error tolua_err;
  2918. if (
  2919. !tolua_isusertype(tolua_S,1,"BillboardSet",0,&tolua_err) ||
  2920. !tolua_isusertype(tolua_S,2,"Material",0,&tolua_err) ||
  2921. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2922. )
  2923. goto tolua_lerror;
  2924. else
  2925. #endif
  2926. {
  2927. BillboardSet* self = (BillboardSet*) tolua_tousertype(tolua_S,1,0);
  2928. Material* material = ((Material*) tolua_tousertype(tolua_S,2,0));
  2929. #ifndef TOLUA_RELEASE
  2930. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaterial'", NULL);
  2931. #endif
  2932. {
  2933. self->SetMaterial(material);
  2934. }
  2935. }
  2936. return 0;
  2937. #ifndef TOLUA_RELEASE
  2938. tolua_lerror:
  2939. tolua_error(tolua_S,"#ferror in function 'SetMaterial'.",&tolua_err);
  2940. return 0;
  2941. #endif
  2942. }
  2943. #endif //#ifndef TOLUA_DISABLE
  2944. /* method: SetNumBillboards of class BillboardSet */
  2945. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_SetNumBillboards00
  2946. static int tolua_Graphics_BillboardSet_SetNumBillboards00(lua_State* tolua_S)
  2947. {
  2948. #ifndef TOLUA_RELEASE
  2949. tolua_Error tolua_err;
  2950. if (
  2951. !tolua_isusertype(tolua_S,1,"BillboardSet",0,&tolua_err) ||
  2952. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2953. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2954. )
  2955. goto tolua_lerror;
  2956. else
  2957. #endif
  2958. {
  2959. BillboardSet* self = (BillboardSet*) tolua_tousertype(tolua_S,1,0);
  2960. unsigned num = ((unsigned) tolua_tonumber(tolua_S,2,0));
  2961. #ifndef TOLUA_RELEASE
  2962. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetNumBillboards'", NULL);
  2963. #endif
  2964. {
  2965. self->SetNumBillboards(num);
  2966. }
  2967. }
  2968. return 0;
  2969. #ifndef TOLUA_RELEASE
  2970. tolua_lerror:
  2971. tolua_error(tolua_S,"#ferror in function 'SetNumBillboards'.",&tolua_err);
  2972. return 0;
  2973. #endif
  2974. }
  2975. #endif //#ifndef TOLUA_DISABLE
  2976. /* method: SetRelative of class BillboardSet */
  2977. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_SetRelative00
  2978. static int tolua_Graphics_BillboardSet_SetRelative00(lua_State* tolua_S)
  2979. {
  2980. #ifndef TOLUA_RELEASE
  2981. tolua_Error tolua_err;
  2982. if (
  2983. !tolua_isusertype(tolua_S,1,"BillboardSet",0,&tolua_err) ||
  2984. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  2985. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2986. )
  2987. goto tolua_lerror;
  2988. else
  2989. #endif
  2990. {
  2991. BillboardSet* self = (BillboardSet*) tolua_tousertype(tolua_S,1,0);
  2992. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  2993. #ifndef TOLUA_RELEASE
  2994. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRelative'", NULL);
  2995. #endif
  2996. {
  2997. self->SetRelative(enable);
  2998. }
  2999. }
  3000. return 0;
  3001. #ifndef TOLUA_RELEASE
  3002. tolua_lerror:
  3003. tolua_error(tolua_S,"#ferror in function 'SetRelative'.",&tolua_err);
  3004. return 0;
  3005. #endif
  3006. }
  3007. #endif //#ifndef TOLUA_DISABLE
  3008. /* method: SetScaled of class BillboardSet */
  3009. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_SetScaled00
  3010. static int tolua_Graphics_BillboardSet_SetScaled00(lua_State* tolua_S)
  3011. {
  3012. #ifndef TOLUA_RELEASE
  3013. tolua_Error tolua_err;
  3014. if (
  3015. !tolua_isusertype(tolua_S,1,"BillboardSet",0,&tolua_err) ||
  3016. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  3017. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3018. )
  3019. goto tolua_lerror;
  3020. else
  3021. #endif
  3022. {
  3023. BillboardSet* self = (BillboardSet*) tolua_tousertype(tolua_S,1,0);
  3024. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  3025. #ifndef TOLUA_RELEASE
  3026. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetScaled'", NULL);
  3027. #endif
  3028. {
  3029. self->SetScaled(enable);
  3030. }
  3031. }
  3032. return 0;
  3033. #ifndef TOLUA_RELEASE
  3034. tolua_lerror:
  3035. tolua_error(tolua_S,"#ferror in function 'SetScaled'.",&tolua_err);
  3036. return 0;
  3037. #endif
  3038. }
  3039. #endif //#ifndef TOLUA_DISABLE
  3040. /* method: SetSorted of class BillboardSet */
  3041. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_SetSorted00
  3042. static int tolua_Graphics_BillboardSet_SetSorted00(lua_State* tolua_S)
  3043. {
  3044. #ifndef TOLUA_RELEASE
  3045. tolua_Error tolua_err;
  3046. if (
  3047. !tolua_isusertype(tolua_S,1,"BillboardSet",0,&tolua_err) ||
  3048. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  3049. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3050. )
  3051. goto tolua_lerror;
  3052. else
  3053. #endif
  3054. {
  3055. BillboardSet* self = (BillboardSet*) tolua_tousertype(tolua_S,1,0);
  3056. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  3057. #ifndef TOLUA_RELEASE
  3058. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSorted'", NULL);
  3059. #endif
  3060. {
  3061. self->SetSorted(enable);
  3062. }
  3063. }
  3064. return 0;
  3065. #ifndef TOLUA_RELEASE
  3066. tolua_lerror:
  3067. tolua_error(tolua_S,"#ferror in function 'SetSorted'.",&tolua_err);
  3068. return 0;
  3069. #endif
  3070. }
  3071. #endif //#ifndef TOLUA_DISABLE
  3072. /* method: SetAnimationLodBias of class BillboardSet */
  3073. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_SetAnimationLodBias00
  3074. static int tolua_Graphics_BillboardSet_SetAnimationLodBias00(lua_State* tolua_S)
  3075. {
  3076. #ifndef TOLUA_RELEASE
  3077. tolua_Error tolua_err;
  3078. if (
  3079. !tolua_isusertype(tolua_S,1,"BillboardSet",0,&tolua_err) ||
  3080. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3081. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3082. )
  3083. goto tolua_lerror;
  3084. else
  3085. #endif
  3086. {
  3087. BillboardSet* self = (BillboardSet*) tolua_tousertype(tolua_S,1,0);
  3088. float bias = ((float) tolua_tonumber(tolua_S,2,0));
  3089. #ifndef TOLUA_RELEASE
  3090. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAnimationLodBias'", NULL);
  3091. #endif
  3092. {
  3093. self->SetAnimationLodBias(bias);
  3094. }
  3095. }
  3096. return 0;
  3097. #ifndef TOLUA_RELEASE
  3098. tolua_lerror:
  3099. tolua_error(tolua_S,"#ferror in function 'SetAnimationLodBias'.",&tolua_err);
  3100. return 0;
  3101. #endif
  3102. }
  3103. #endif //#ifndef TOLUA_DISABLE
  3104. /* method: Commit of class BillboardSet */
  3105. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_Commit00
  3106. static int tolua_Graphics_BillboardSet_Commit00(lua_State* tolua_S)
  3107. {
  3108. #ifndef TOLUA_RELEASE
  3109. tolua_Error tolua_err;
  3110. if (
  3111. !tolua_isusertype(tolua_S,1,"BillboardSet",0,&tolua_err) ||
  3112. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3113. )
  3114. goto tolua_lerror;
  3115. else
  3116. #endif
  3117. {
  3118. BillboardSet* self = (BillboardSet*) tolua_tousertype(tolua_S,1,0);
  3119. #ifndef TOLUA_RELEASE
  3120. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Commit'", NULL);
  3121. #endif
  3122. {
  3123. self->Commit();
  3124. }
  3125. }
  3126. return 0;
  3127. #ifndef TOLUA_RELEASE
  3128. tolua_lerror:
  3129. tolua_error(tolua_S,"#ferror in function 'Commit'.",&tolua_err);
  3130. return 0;
  3131. #endif
  3132. }
  3133. #endif //#ifndef TOLUA_DISABLE
  3134. /* method: GetMaterial of class BillboardSet */
  3135. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_GetMaterial00
  3136. static int tolua_Graphics_BillboardSet_GetMaterial00(lua_State* tolua_S)
  3137. {
  3138. #ifndef TOLUA_RELEASE
  3139. tolua_Error tolua_err;
  3140. if (
  3141. !tolua_isusertype(tolua_S,1,"const BillboardSet",0,&tolua_err) ||
  3142. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3143. )
  3144. goto tolua_lerror;
  3145. else
  3146. #endif
  3147. {
  3148. const BillboardSet* self = (const BillboardSet*) tolua_tousertype(tolua_S,1,0);
  3149. #ifndef TOLUA_RELEASE
  3150. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaterial'", NULL);
  3151. #endif
  3152. {
  3153. Material* tolua_ret = (Material*) self->GetMaterial();
  3154. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Material");
  3155. }
  3156. }
  3157. return 1;
  3158. #ifndef TOLUA_RELEASE
  3159. tolua_lerror:
  3160. tolua_error(tolua_S,"#ferror in function 'GetMaterial'.",&tolua_err);
  3161. return 0;
  3162. #endif
  3163. }
  3164. #endif //#ifndef TOLUA_DISABLE
  3165. /* method: GetNumBillboards of class BillboardSet */
  3166. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_GetNumBillboards00
  3167. static int tolua_Graphics_BillboardSet_GetNumBillboards00(lua_State* tolua_S)
  3168. {
  3169. #ifndef TOLUA_RELEASE
  3170. tolua_Error tolua_err;
  3171. if (
  3172. !tolua_isusertype(tolua_S,1,"const BillboardSet",0,&tolua_err) ||
  3173. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3174. )
  3175. goto tolua_lerror;
  3176. else
  3177. #endif
  3178. {
  3179. const BillboardSet* self = (const BillboardSet*) tolua_tousertype(tolua_S,1,0);
  3180. #ifndef TOLUA_RELEASE
  3181. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumBillboards'", NULL);
  3182. #endif
  3183. {
  3184. unsigned tolua_ret = (unsigned) self->GetNumBillboards();
  3185. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3186. }
  3187. }
  3188. return 1;
  3189. #ifndef TOLUA_RELEASE
  3190. tolua_lerror:
  3191. tolua_error(tolua_S,"#ferror in function 'GetNumBillboards'.",&tolua_err);
  3192. return 0;
  3193. #endif
  3194. }
  3195. #endif //#ifndef TOLUA_DISABLE
  3196. /* method: IsRelative of class BillboardSet */
  3197. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_IsRelative00
  3198. static int tolua_Graphics_BillboardSet_IsRelative00(lua_State* tolua_S)
  3199. {
  3200. #ifndef TOLUA_RELEASE
  3201. tolua_Error tolua_err;
  3202. if (
  3203. !tolua_isusertype(tolua_S,1,"const BillboardSet",0,&tolua_err) ||
  3204. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3205. )
  3206. goto tolua_lerror;
  3207. else
  3208. #endif
  3209. {
  3210. const BillboardSet* self = (const BillboardSet*) tolua_tousertype(tolua_S,1,0);
  3211. #ifndef TOLUA_RELEASE
  3212. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsRelative'", NULL);
  3213. #endif
  3214. {
  3215. bool tolua_ret = (bool) self->IsRelative();
  3216. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3217. }
  3218. }
  3219. return 1;
  3220. #ifndef TOLUA_RELEASE
  3221. tolua_lerror:
  3222. tolua_error(tolua_S,"#ferror in function 'IsRelative'.",&tolua_err);
  3223. return 0;
  3224. #endif
  3225. }
  3226. #endif //#ifndef TOLUA_DISABLE
  3227. /* method: IsScaled of class BillboardSet */
  3228. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_IsScaled00
  3229. static int tolua_Graphics_BillboardSet_IsScaled00(lua_State* tolua_S)
  3230. {
  3231. #ifndef TOLUA_RELEASE
  3232. tolua_Error tolua_err;
  3233. if (
  3234. !tolua_isusertype(tolua_S,1,"const BillboardSet",0,&tolua_err) ||
  3235. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3236. )
  3237. goto tolua_lerror;
  3238. else
  3239. #endif
  3240. {
  3241. const BillboardSet* self = (const BillboardSet*) tolua_tousertype(tolua_S,1,0);
  3242. #ifndef TOLUA_RELEASE
  3243. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsScaled'", NULL);
  3244. #endif
  3245. {
  3246. bool tolua_ret = (bool) self->IsScaled();
  3247. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3248. }
  3249. }
  3250. return 1;
  3251. #ifndef TOLUA_RELEASE
  3252. tolua_lerror:
  3253. tolua_error(tolua_S,"#ferror in function 'IsScaled'.",&tolua_err);
  3254. return 0;
  3255. #endif
  3256. }
  3257. #endif //#ifndef TOLUA_DISABLE
  3258. /* method: IsSorted of class BillboardSet */
  3259. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_IsSorted00
  3260. static int tolua_Graphics_BillboardSet_IsSorted00(lua_State* tolua_S)
  3261. {
  3262. #ifndef TOLUA_RELEASE
  3263. tolua_Error tolua_err;
  3264. if (
  3265. !tolua_isusertype(tolua_S,1,"const BillboardSet",0,&tolua_err) ||
  3266. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3267. )
  3268. goto tolua_lerror;
  3269. else
  3270. #endif
  3271. {
  3272. const BillboardSet* self = (const BillboardSet*) tolua_tousertype(tolua_S,1,0);
  3273. #ifndef TOLUA_RELEASE
  3274. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsSorted'", NULL);
  3275. #endif
  3276. {
  3277. bool tolua_ret = (bool) self->IsSorted();
  3278. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3279. }
  3280. }
  3281. return 1;
  3282. #ifndef TOLUA_RELEASE
  3283. tolua_lerror:
  3284. tolua_error(tolua_S,"#ferror in function 'IsSorted'.",&tolua_err);
  3285. return 0;
  3286. #endif
  3287. }
  3288. #endif //#ifndef TOLUA_DISABLE
  3289. /* method: GetAnimationLodBias of class BillboardSet */
  3290. #ifndef TOLUA_DISABLE_tolua_Graphics_BillboardSet_GetAnimationLodBias00
  3291. static int tolua_Graphics_BillboardSet_GetAnimationLodBias00(lua_State* tolua_S)
  3292. {
  3293. #ifndef TOLUA_RELEASE
  3294. tolua_Error tolua_err;
  3295. if (
  3296. !tolua_isusertype(tolua_S,1,"const BillboardSet",0,&tolua_err) ||
  3297. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3298. )
  3299. goto tolua_lerror;
  3300. else
  3301. #endif
  3302. {
  3303. const BillboardSet* self = (const BillboardSet*) tolua_tousertype(tolua_S,1,0);
  3304. #ifndef TOLUA_RELEASE
  3305. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAnimationLodBias'", NULL);
  3306. #endif
  3307. {
  3308. float tolua_ret = (float) self->GetAnimationLodBias();
  3309. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3310. }
  3311. }
  3312. return 1;
  3313. #ifndef TOLUA_RELEASE
  3314. tolua_lerror:
  3315. tolua_error(tolua_S,"#ferror in function 'GetAnimationLodBias'.",&tolua_err);
  3316. return 0;
  3317. #endif
  3318. }
  3319. #endif //#ifndef TOLUA_DISABLE
  3320. /* method: SetNearClip of class Camera */
  3321. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetNearClip00
  3322. static int tolua_Graphics_Camera_SetNearClip00(lua_State* tolua_S)
  3323. {
  3324. #ifndef TOLUA_RELEASE
  3325. tolua_Error tolua_err;
  3326. if (
  3327. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3328. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3329. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3330. )
  3331. goto tolua_lerror;
  3332. else
  3333. #endif
  3334. {
  3335. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3336. float nearClip = ((float) tolua_tonumber(tolua_S,2,0));
  3337. #ifndef TOLUA_RELEASE
  3338. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetNearClip'", NULL);
  3339. #endif
  3340. {
  3341. self->SetNearClip(nearClip);
  3342. }
  3343. }
  3344. return 0;
  3345. #ifndef TOLUA_RELEASE
  3346. tolua_lerror:
  3347. tolua_error(tolua_S,"#ferror in function 'SetNearClip'.",&tolua_err);
  3348. return 0;
  3349. #endif
  3350. }
  3351. #endif //#ifndef TOLUA_DISABLE
  3352. /* method: SetFarClip of class Camera */
  3353. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetFarClip00
  3354. static int tolua_Graphics_Camera_SetFarClip00(lua_State* tolua_S)
  3355. {
  3356. #ifndef TOLUA_RELEASE
  3357. tolua_Error tolua_err;
  3358. if (
  3359. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3360. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3361. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3362. )
  3363. goto tolua_lerror;
  3364. else
  3365. #endif
  3366. {
  3367. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3368. float farClip = ((float) tolua_tonumber(tolua_S,2,0));
  3369. #ifndef TOLUA_RELEASE
  3370. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFarClip'", NULL);
  3371. #endif
  3372. {
  3373. self->SetFarClip(farClip);
  3374. }
  3375. }
  3376. return 0;
  3377. #ifndef TOLUA_RELEASE
  3378. tolua_lerror:
  3379. tolua_error(tolua_S,"#ferror in function 'SetFarClip'.",&tolua_err);
  3380. return 0;
  3381. #endif
  3382. }
  3383. #endif //#ifndef TOLUA_DISABLE
  3384. /* method: SetFov of class Camera */
  3385. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetFov00
  3386. static int tolua_Graphics_Camera_SetFov00(lua_State* tolua_S)
  3387. {
  3388. #ifndef TOLUA_RELEASE
  3389. tolua_Error tolua_err;
  3390. if (
  3391. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3392. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3393. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3394. )
  3395. goto tolua_lerror;
  3396. else
  3397. #endif
  3398. {
  3399. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3400. float fov = ((float) tolua_tonumber(tolua_S,2,0));
  3401. #ifndef TOLUA_RELEASE
  3402. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFov'", NULL);
  3403. #endif
  3404. {
  3405. self->SetFov(fov);
  3406. }
  3407. }
  3408. return 0;
  3409. #ifndef TOLUA_RELEASE
  3410. tolua_lerror:
  3411. tolua_error(tolua_S,"#ferror in function 'SetFov'.",&tolua_err);
  3412. return 0;
  3413. #endif
  3414. }
  3415. #endif //#ifndef TOLUA_DISABLE
  3416. /* method: SetOrthoSize of class Camera */
  3417. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetOrthoSize00
  3418. static int tolua_Graphics_Camera_SetOrthoSize00(lua_State* tolua_S)
  3419. {
  3420. #ifndef TOLUA_RELEASE
  3421. tolua_Error tolua_err;
  3422. if (
  3423. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3424. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3425. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3426. )
  3427. goto tolua_lerror;
  3428. else
  3429. #endif
  3430. {
  3431. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3432. float orthoSize = ((float) tolua_tonumber(tolua_S,2,0));
  3433. #ifndef TOLUA_RELEASE
  3434. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOrthoSize'", NULL);
  3435. #endif
  3436. {
  3437. self->SetOrthoSize(orthoSize);
  3438. }
  3439. }
  3440. return 0;
  3441. #ifndef TOLUA_RELEASE
  3442. tolua_lerror:
  3443. tolua_error(tolua_S,"#ferror in function 'SetOrthoSize'.",&tolua_err);
  3444. return 0;
  3445. #endif
  3446. }
  3447. #endif //#ifndef TOLUA_DISABLE
  3448. /* method: SetOrthoSize of class Camera */
  3449. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetOrthoSize01
  3450. static int tolua_Graphics_Camera_SetOrthoSize01(lua_State* tolua_S)
  3451. {
  3452. tolua_Error tolua_err;
  3453. if (
  3454. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3455. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector2",0,&tolua_err)) ||
  3456. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3457. )
  3458. goto tolua_lerror;
  3459. else
  3460. {
  3461. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3462. const Vector2* orthoSize = ((const Vector2*) tolua_tousertype(tolua_S,2,0));
  3463. #ifndef TOLUA_RELEASE
  3464. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOrthoSize'", NULL);
  3465. #endif
  3466. {
  3467. self->SetOrthoSize(*orthoSize);
  3468. }
  3469. }
  3470. return 0;
  3471. tolua_lerror:
  3472. return tolua_Graphics_Camera_SetOrthoSize00(tolua_S);
  3473. }
  3474. #endif //#ifndef TOLUA_DISABLE
  3475. /* method: SetAspectRatio of class Camera */
  3476. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetAspectRatio00
  3477. static int tolua_Graphics_Camera_SetAspectRatio00(lua_State* tolua_S)
  3478. {
  3479. #ifndef TOLUA_RELEASE
  3480. tolua_Error tolua_err;
  3481. if (
  3482. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3483. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3484. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3485. )
  3486. goto tolua_lerror;
  3487. else
  3488. #endif
  3489. {
  3490. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3491. float aspectRatio = ((float) tolua_tonumber(tolua_S,2,0));
  3492. #ifndef TOLUA_RELEASE
  3493. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAspectRatio'", NULL);
  3494. #endif
  3495. {
  3496. self->SetAspectRatio(aspectRatio);
  3497. }
  3498. }
  3499. return 0;
  3500. #ifndef TOLUA_RELEASE
  3501. tolua_lerror:
  3502. tolua_error(tolua_S,"#ferror in function 'SetAspectRatio'.",&tolua_err);
  3503. return 0;
  3504. #endif
  3505. }
  3506. #endif //#ifndef TOLUA_DISABLE
  3507. /* method: SetFillMode of class Camera */
  3508. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetFillMode00
  3509. static int tolua_Graphics_Camera_SetFillMode00(lua_State* tolua_S)
  3510. {
  3511. #ifndef TOLUA_RELEASE
  3512. tolua_Error tolua_err;
  3513. if (
  3514. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3515. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3516. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3517. )
  3518. goto tolua_lerror;
  3519. else
  3520. #endif
  3521. {
  3522. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3523. FillMode mode = ((FillMode) (int) tolua_tonumber(tolua_S,2,0));
  3524. #ifndef TOLUA_RELEASE
  3525. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFillMode'", NULL);
  3526. #endif
  3527. {
  3528. self->SetFillMode(mode);
  3529. }
  3530. }
  3531. return 0;
  3532. #ifndef TOLUA_RELEASE
  3533. tolua_lerror:
  3534. tolua_error(tolua_S,"#ferror in function 'SetFillMode'.",&tolua_err);
  3535. return 0;
  3536. #endif
  3537. }
  3538. #endif //#ifndef TOLUA_DISABLE
  3539. /* method: SetZoom of class Camera */
  3540. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetZoom00
  3541. static int tolua_Graphics_Camera_SetZoom00(lua_State* tolua_S)
  3542. {
  3543. #ifndef TOLUA_RELEASE
  3544. tolua_Error tolua_err;
  3545. if (
  3546. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3547. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3548. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3549. )
  3550. goto tolua_lerror;
  3551. else
  3552. #endif
  3553. {
  3554. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3555. float zoom = ((float) tolua_tonumber(tolua_S,2,0));
  3556. #ifndef TOLUA_RELEASE
  3557. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetZoom'", NULL);
  3558. #endif
  3559. {
  3560. self->SetZoom(zoom);
  3561. }
  3562. }
  3563. return 0;
  3564. #ifndef TOLUA_RELEASE
  3565. tolua_lerror:
  3566. tolua_error(tolua_S,"#ferror in function 'SetZoom'.",&tolua_err);
  3567. return 0;
  3568. #endif
  3569. }
  3570. #endif //#ifndef TOLUA_DISABLE
  3571. /* method: SetLodBias of class Camera */
  3572. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetLodBias00
  3573. static int tolua_Graphics_Camera_SetLodBias00(lua_State* tolua_S)
  3574. {
  3575. #ifndef TOLUA_RELEASE
  3576. tolua_Error tolua_err;
  3577. if (
  3578. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3579. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3580. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3581. )
  3582. goto tolua_lerror;
  3583. else
  3584. #endif
  3585. {
  3586. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3587. float bias = ((float) tolua_tonumber(tolua_S,2,0));
  3588. #ifndef TOLUA_RELEASE
  3589. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLodBias'", NULL);
  3590. #endif
  3591. {
  3592. self->SetLodBias(bias);
  3593. }
  3594. }
  3595. return 0;
  3596. #ifndef TOLUA_RELEASE
  3597. tolua_lerror:
  3598. tolua_error(tolua_S,"#ferror in function 'SetLodBias'.",&tolua_err);
  3599. return 0;
  3600. #endif
  3601. }
  3602. #endif //#ifndef TOLUA_DISABLE
  3603. /* method: SetViewMask of class Camera */
  3604. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetViewMask00
  3605. static int tolua_Graphics_Camera_SetViewMask00(lua_State* tolua_S)
  3606. {
  3607. #ifndef TOLUA_RELEASE
  3608. tolua_Error tolua_err;
  3609. if (
  3610. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3611. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3612. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3613. )
  3614. goto tolua_lerror;
  3615. else
  3616. #endif
  3617. {
  3618. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3619. unsigned mask = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3620. #ifndef TOLUA_RELEASE
  3621. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetViewMask'", NULL);
  3622. #endif
  3623. {
  3624. self->SetViewMask(mask);
  3625. }
  3626. }
  3627. return 0;
  3628. #ifndef TOLUA_RELEASE
  3629. tolua_lerror:
  3630. tolua_error(tolua_S,"#ferror in function 'SetViewMask'.",&tolua_err);
  3631. return 0;
  3632. #endif
  3633. }
  3634. #endif //#ifndef TOLUA_DISABLE
  3635. /* method: SetViewOverrideFlags of class Camera */
  3636. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetViewOverrideFlags00
  3637. static int tolua_Graphics_Camera_SetViewOverrideFlags00(lua_State* tolua_S)
  3638. {
  3639. #ifndef TOLUA_RELEASE
  3640. tolua_Error tolua_err;
  3641. if (
  3642. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3643. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3644. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3645. )
  3646. goto tolua_lerror;
  3647. else
  3648. #endif
  3649. {
  3650. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3651. unsigned flags = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3652. #ifndef TOLUA_RELEASE
  3653. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetViewOverrideFlags'", NULL);
  3654. #endif
  3655. {
  3656. self->SetViewOverrideFlags(flags);
  3657. }
  3658. }
  3659. return 0;
  3660. #ifndef TOLUA_RELEASE
  3661. tolua_lerror:
  3662. tolua_error(tolua_S,"#ferror in function 'SetViewOverrideFlags'.",&tolua_err);
  3663. return 0;
  3664. #endif
  3665. }
  3666. #endif //#ifndef TOLUA_DISABLE
  3667. /* method: SetOrthographic of class Camera */
  3668. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetOrthographic00
  3669. static int tolua_Graphics_Camera_SetOrthographic00(lua_State* tolua_S)
  3670. {
  3671. #ifndef TOLUA_RELEASE
  3672. tolua_Error tolua_err;
  3673. if (
  3674. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3675. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  3676. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3677. )
  3678. goto tolua_lerror;
  3679. else
  3680. #endif
  3681. {
  3682. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3683. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  3684. #ifndef TOLUA_RELEASE
  3685. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOrthographic'", NULL);
  3686. #endif
  3687. {
  3688. self->SetOrthographic(enable);
  3689. }
  3690. }
  3691. return 0;
  3692. #ifndef TOLUA_RELEASE
  3693. tolua_lerror:
  3694. tolua_error(tolua_S,"#ferror in function 'SetOrthographic'.",&tolua_err);
  3695. return 0;
  3696. #endif
  3697. }
  3698. #endif //#ifndef TOLUA_DISABLE
  3699. /* method: SetAutoAspectRatio of class Camera */
  3700. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetAutoAspectRatio00
  3701. static int tolua_Graphics_Camera_SetAutoAspectRatio00(lua_State* tolua_S)
  3702. {
  3703. #ifndef TOLUA_RELEASE
  3704. tolua_Error tolua_err;
  3705. if (
  3706. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3707. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  3708. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3709. )
  3710. goto tolua_lerror;
  3711. else
  3712. #endif
  3713. {
  3714. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3715. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  3716. #ifndef TOLUA_RELEASE
  3717. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAutoAspectRatio'", NULL);
  3718. #endif
  3719. {
  3720. self->SetAutoAspectRatio(enable);
  3721. }
  3722. }
  3723. return 0;
  3724. #ifndef TOLUA_RELEASE
  3725. tolua_lerror:
  3726. tolua_error(tolua_S,"#ferror in function 'SetAutoAspectRatio'.",&tolua_err);
  3727. return 0;
  3728. #endif
  3729. }
  3730. #endif //#ifndef TOLUA_DISABLE
  3731. /* method: SetProjectionOffset of class Camera */
  3732. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetProjectionOffset00
  3733. static int tolua_Graphics_Camera_SetProjectionOffset00(lua_State* tolua_S)
  3734. {
  3735. #ifndef TOLUA_RELEASE
  3736. tolua_Error tolua_err;
  3737. if (
  3738. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3739. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector2",0,&tolua_err)) ||
  3740. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3741. )
  3742. goto tolua_lerror;
  3743. else
  3744. #endif
  3745. {
  3746. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3747. const Vector2* offset = ((const Vector2*) tolua_tousertype(tolua_S,2,0));
  3748. #ifndef TOLUA_RELEASE
  3749. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetProjectionOffset'", NULL);
  3750. #endif
  3751. {
  3752. self->SetProjectionOffset(*offset);
  3753. }
  3754. }
  3755. return 0;
  3756. #ifndef TOLUA_RELEASE
  3757. tolua_lerror:
  3758. tolua_error(tolua_S,"#ferror in function 'SetProjectionOffset'.",&tolua_err);
  3759. return 0;
  3760. #endif
  3761. }
  3762. #endif //#ifndef TOLUA_DISABLE
  3763. /* method: SetFlipVertical of class Camera */
  3764. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_SetFlipVertical00
  3765. static int tolua_Graphics_Camera_SetFlipVertical00(lua_State* tolua_S)
  3766. {
  3767. #ifndef TOLUA_RELEASE
  3768. tolua_Error tolua_err;
  3769. if (
  3770. !tolua_isusertype(tolua_S,1,"Camera",0,&tolua_err) ||
  3771. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  3772. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3773. )
  3774. goto tolua_lerror;
  3775. else
  3776. #endif
  3777. {
  3778. Camera* self = (Camera*) tolua_tousertype(tolua_S,1,0);
  3779. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  3780. #ifndef TOLUA_RELEASE
  3781. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFlipVertical'", NULL);
  3782. #endif
  3783. {
  3784. self->SetFlipVertical(enable);
  3785. }
  3786. }
  3787. return 0;
  3788. #ifndef TOLUA_RELEASE
  3789. tolua_lerror:
  3790. tolua_error(tolua_S,"#ferror in function 'SetFlipVertical'.",&tolua_err);
  3791. return 0;
  3792. #endif
  3793. }
  3794. #endif //#ifndef TOLUA_DISABLE
  3795. /* method: GetFarClip of class Camera */
  3796. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetFarClip00
  3797. static int tolua_Graphics_Camera_GetFarClip00(lua_State* tolua_S)
  3798. {
  3799. #ifndef TOLUA_RELEASE
  3800. tolua_Error tolua_err;
  3801. if (
  3802. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  3803. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3804. )
  3805. goto tolua_lerror;
  3806. else
  3807. #endif
  3808. {
  3809. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  3810. #ifndef TOLUA_RELEASE
  3811. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFarClip'", NULL);
  3812. #endif
  3813. {
  3814. float tolua_ret = (float) self->GetFarClip();
  3815. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3816. }
  3817. }
  3818. return 1;
  3819. #ifndef TOLUA_RELEASE
  3820. tolua_lerror:
  3821. tolua_error(tolua_S,"#ferror in function 'GetFarClip'.",&tolua_err);
  3822. return 0;
  3823. #endif
  3824. }
  3825. #endif //#ifndef TOLUA_DISABLE
  3826. /* method: GetNearClip of class Camera */
  3827. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetNearClip00
  3828. static int tolua_Graphics_Camera_GetNearClip00(lua_State* tolua_S)
  3829. {
  3830. #ifndef TOLUA_RELEASE
  3831. tolua_Error tolua_err;
  3832. if (
  3833. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  3834. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3835. )
  3836. goto tolua_lerror;
  3837. else
  3838. #endif
  3839. {
  3840. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  3841. #ifndef TOLUA_RELEASE
  3842. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNearClip'", NULL);
  3843. #endif
  3844. {
  3845. float tolua_ret = (float) self->GetNearClip();
  3846. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3847. }
  3848. }
  3849. return 1;
  3850. #ifndef TOLUA_RELEASE
  3851. tolua_lerror:
  3852. tolua_error(tolua_S,"#ferror in function 'GetNearClip'.",&tolua_err);
  3853. return 0;
  3854. #endif
  3855. }
  3856. #endif //#ifndef TOLUA_DISABLE
  3857. /* method: GetFov of class Camera */
  3858. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetFov00
  3859. static int tolua_Graphics_Camera_GetFov00(lua_State* tolua_S)
  3860. {
  3861. #ifndef TOLUA_RELEASE
  3862. tolua_Error tolua_err;
  3863. if (
  3864. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  3865. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3866. )
  3867. goto tolua_lerror;
  3868. else
  3869. #endif
  3870. {
  3871. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  3872. #ifndef TOLUA_RELEASE
  3873. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFov'", NULL);
  3874. #endif
  3875. {
  3876. float tolua_ret = (float) self->GetFov();
  3877. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3878. }
  3879. }
  3880. return 1;
  3881. #ifndef TOLUA_RELEASE
  3882. tolua_lerror:
  3883. tolua_error(tolua_S,"#ferror in function 'GetFov'.",&tolua_err);
  3884. return 0;
  3885. #endif
  3886. }
  3887. #endif //#ifndef TOLUA_DISABLE
  3888. /* method: GetOrthoSize of class Camera */
  3889. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetOrthoSize00
  3890. static int tolua_Graphics_Camera_GetOrthoSize00(lua_State* tolua_S)
  3891. {
  3892. #ifndef TOLUA_RELEASE
  3893. tolua_Error tolua_err;
  3894. if (
  3895. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  3896. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3897. )
  3898. goto tolua_lerror;
  3899. else
  3900. #endif
  3901. {
  3902. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  3903. #ifndef TOLUA_RELEASE
  3904. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOrthoSize'", NULL);
  3905. #endif
  3906. {
  3907. float tolua_ret = (float) self->GetOrthoSize();
  3908. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3909. }
  3910. }
  3911. return 1;
  3912. #ifndef TOLUA_RELEASE
  3913. tolua_lerror:
  3914. tolua_error(tolua_S,"#ferror in function 'GetOrthoSize'.",&tolua_err);
  3915. return 0;
  3916. #endif
  3917. }
  3918. #endif //#ifndef TOLUA_DISABLE
  3919. /* method: GetAspectRatio of class Camera */
  3920. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetAspectRatio00
  3921. static int tolua_Graphics_Camera_GetAspectRatio00(lua_State* tolua_S)
  3922. {
  3923. #ifndef TOLUA_RELEASE
  3924. tolua_Error tolua_err;
  3925. if (
  3926. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  3927. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3928. )
  3929. goto tolua_lerror;
  3930. else
  3931. #endif
  3932. {
  3933. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  3934. #ifndef TOLUA_RELEASE
  3935. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAspectRatio'", NULL);
  3936. #endif
  3937. {
  3938. float tolua_ret = (float) self->GetAspectRatio();
  3939. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3940. }
  3941. }
  3942. return 1;
  3943. #ifndef TOLUA_RELEASE
  3944. tolua_lerror:
  3945. tolua_error(tolua_S,"#ferror in function 'GetAspectRatio'.",&tolua_err);
  3946. return 0;
  3947. #endif
  3948. }
  3949. #endif //#ifndef TOLUA_DISABLE
  3950. /* method: GetZoom of class Camera */
  3951. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetZoom00
  3952. static int tolua_Graphics_Camera_GetZoom00(lua_State* tolua_S)
  3953. {
  3954. #ifndef TOLUA_RELEASE
  3955. tolua_Error tolua_err;
  3956. if (
  3957. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  3958. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3959. )
  3960. goto tolua_lerror;
  3961. else
  3962. #endif
  3963. {
  3964. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  3965. #ifndef TOLUA_RELEASE
  3966. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetZoom'", NULL);
  3967. #endif
  3968. {
  3969. float tolua_ret = (float) self->GetZoom();
  3970. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3971. }
  3972. }
  3973. return 1;
  3974. #ifndef TOLUA_RELEASE
  3975. tolua_lerror:
  3976. tolua_error(tolua_S,"#ferror in function 'GetZoom'.",&tolua_err);
  3977. return 0;
  3978. #endif
  3979. }
  3980. #endif //#ifndef TOLUA_DISABLE
  3981. /* method: GetLodBias of class Camera */
  3982. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetLodBias00
  3983. static int tolua_Graphics_Camera_GetLodBias00(lua_State* tolua_S)
  3984. {
  3985. #ifndef TOLUA_RELEASE
  3986. tolua_Error tolua_err;
  3987. if (
  3988. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  3989. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3990. )
  3991. goto tolua_lerror;
  3992. else
  3993. #endif
  3994. {
  3995. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  3996. #ifndef TOLUA_RELEASE
  3997. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLodBias'", NULL);
  3998. #endif
  3999. {
  4000. float tolua_ret = (float) self->GetLodBias();
  4001. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4002. }
  4003. }
  4004. return 1;
  4005. #ifndef TOLUA_RELEASE
  4006. tolua_lerror:
  4007. tolua_error(tolua_S,"#ferror in function 'GetLodBias'.",&tolua_err);
  4008. return 0;
  4009. #endif
  4010. }
  4011. #endif //#ifndef TOLUA_DISABLE
  4012. /* method: GetViewMask of class Camera */
  4013. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetViewMask00
  4014. static int tolua_Graphics_Camera_GetViewMask00(lua_State* tolua_S)
  4015. {
  4016. #ifndef TOLUA_RELEASE
  4017. tolua_Error tolua_err;
  4018. if (
  4019. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4020. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4021. )
  4022. goto tolua_lerror;
  4023. else
  4024. #endif
  4025. {
  4026. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4027. #ifndef TOLUA_RELEASE
  4028. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetViewMask'", NULL);
  4029. #endif
  4030. {
  4031. unsigned tolua_ret = (unsigned) self->GetViewMask();
  4032. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4033. }
  4034. }
  4035. return 1;
  4036. #ifndef TOLUA_RELEASE
  4037. tolua_lerror:
  4038. tolua_error(tolua_S,"#ferror in function 'GetViewMask'.",&tolua_err);
  4039. return 0;
  4040. #endif
  4041. }
  4042. #endif //#ifndef TOLUA_DISABLE
  4043. /* method: GetViewOverrideFlags of class Camera */
  4044. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetViewOverrideFlags00
  4045. static int tolua_Graphics_Camera_GetViewOverrideFlags00(lua_State* tolua_S)
  4046. {
  4047. #ifndef TOLUA_RELEASE
  4048. tolua_Error tolua_err;
  4049. if (
  4050. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4051. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4052. )
  4053. goto tolua_lerror;
  4054. else
  4055. #endif
  4056. {
  4057. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4058. #ifndef TOLUA_RELEASE
  4059. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetViewOverrideFlags'", NULL);
  4060. #endif
  4061. {
  4062. unsigned tolua_ret = (unsigned) self->GetViewOverrideFlags();
  4063. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4064. }
  4065. }
  4066. return 1;
  4067. #ifndef TOLUA_RELEASE
  4068. tolua_lerror:
  4069. tolua_error(tolua_S,"#ferror in function 'GetViewOverrideFlags'.",&tolua_err);
  4070. return 0;
  4071. #endif
  4072. }
  4073. #endif //#ifndef TOLUA_DISABLE
  4074. /* method: GetFillMode of class Camera */
  4075. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetFillMode00
  4076. static int tolua_Graphics_Camera_GetFillMode00(lua_State* tolua_S)
  4077. {
  4078. #ifndef TOLUA_RELEASE
  4079. tolua_Error tolua_err;
  4080. if (
  4081. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4082. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4083. )
  4084. goto tolua_lerror;
  4085. else
  4086. #endif
  4087. {
  4088. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4089. #ifndef TOLUA_RELEASE
  4090. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFillMode'", NULL);
  4091. #endif
  4092. {
  4093. FillMode tolua_ret = (FillMode) self->GetFillMode();
  4094. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4095. }
  4096. }
  4097. return 1;
  4098. #ifndef TOLUA_RELEASE
  4099. tolua_lerror:
  4100. tolua_error(tolua_S,"#ferror in function 'GetFillMode'.",&tolua_err);
  4101. return 0;
  4102. #endif
  4103. }
  4104. #endif //#ifndef TOLUA_DISABLE
  4105. /* method: IsOrthographic of class Camera */
  4106. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_IsOrthographic00
  4107. static int tolua_Graphics_Camera_IsOrthographic00(lua_State* tolua_S)
  4108. {
  4109. #ifndef TOLUA_RELEASE
  4110. tolua_Error tolua_err;
  4111. if (
  4112. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4113. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4114. )
  4115. goto tolua_lerror;
  4116. else
  4117. #endif
  4118. {
  4119. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4120. #ifndef TOLUA_RELEASE
  4121. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsOrthographic'", NULL);
  4122. #endif
  4123. {
  4124. bool tolua_ret = (bool) self->IsOrthographic();
  4125. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  4126. }
  4127. }
  4128. return 1;
  4129. #ifndef TOLUA_RELEASE
  4130. tolua_lerror:
  4131. tolua_error(tolua_S,"#ferror in function 'IsOrthographic'.",&tolua_err);
  4132. return 0;
  4133. #endif
  4134. }
  4135. #endif //#ifndef TOLUA_DISABLE
  4136. /* method: GetAutoAspectRatio of class Camera */
  4137. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetAutoAspectRatio00
  4138. static int tolua_Graphics_Camera_GetAutoAspectRatio00(lua_State* tolua_S)
  4139. {
  4140. #ifndef TOLUA_RELEASE
  4141. tolua_Error tolua_err;
  4142. if (
  4143. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4144. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4145. )
  4146. goto tolua_lerror;
  4147. else
  4148. #endif
  4149. {
  4150. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4151. #ifndef TOLUA_RELEASE
  4152. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAutoAspectRatio'", NULL);
  4153. #endif
  4154. {
  4155. bool tolua_ret = (bool) self->GetAutoAspectRatio();
  4156. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  4157. }
  4158. }
  4159. return 1;
  4160. #ifndef TOLUA_RELEASE
  4161. tolua_lerror:
  4162. tolua_error(tolua_S,"#ferror in function 'GetAutoAspectRatio'.",&tolua_err);
  4163. return 0;
  4164. #endif
  4165. }
  4166. #endif //#ifndef TOLUA_DISABLE
  4167. /* method: GetFrustum of class Camera */
  4168. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetFrustum00
  4169. static int tolua_Graphics_Camera_GetFrustum00(lua_State* tolua_S)
  4170. {
  4171. #ifndef TOLUA_RELEASE
  4172. tolua_Error tolua_err;
  4173. if (
  4174. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4175. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4176. )
  4177. goto tolua_lerror;
  4178. else
  4179. #endif
  4180. {
  4181. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4182. #ifndef TOLUA_RELEASE
  4183. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFrustum'", NULL);
  4184. #endif
  4185. {
  4186. const Frustum& tolua_ret = (const Frustum&) self->GetFrustum();
  4187. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Frustum");
  4188. }
  4189. }
  4190. return 1;
  4191. #ifndef TOLUA_RELEASE
  4192. tolua_lerror:
  4193. tolua_error(tolua_S,"#ferror in function 'GetFrustum'.",&tolua_err);
  4194. return 0;
  4195. #endif
  4196. }
  4197. #endif //#ifndef TOLUA_DISABLE
  4198. /* method: GetProjection of class Camera */
  4199. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetProjection00
  4200. static int tolua_Graphics_Camera_GetProjection00(lua_State* tolua_S)
  4201. {
  4202. #ifndef TOLUA_RELEASE
  4203. tolua_Error tolua_err;
  4204. if (
  4205. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4206. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4207. )
  4208. goto tolua_lerror;
  4209. else
  4210. #endif
  4211. {
  4212. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4213. #ifndef TOLUA_RELEASE
  4214. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetProjection'", NULL);
  4215. #endif
  4216. {
  4217. const Matrix4& tolua_ret = (const Matrix4&) self->GetProjection();
  4218. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Matrix4");
  4219. }
  4220. }
  4221. return 1;
  4222. #ifndef TOLUA_RELEASE
  4223. tolua_lerror:
  4224. tolua_error(tolua_S,"#ferror in function 'GetProjection'.",&tolua_err);
  4225. return 0;
  4226. #endif
  4227. }
  4228. #endif //#ifndef TOLUA_DISABLE
  4229. /* method: GetProjection of class Camera */
  4230. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetProjection01
  4231. static int tolua_Graphics_Camera_GetProjection01(lua_State* tolua_S)
  4232. {
  4233. tolua_Error tolua_err;
  4234. if (
  4235. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4236. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  4237. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4238. )
  4239. goto tolua_lerror;
  4240. else
  4241. {
  4242. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4243. bool apiSpecific = ((bool) tolua_toboolean(tolua_S,2,0));
  4244. #ifndef TOLUA_RELEASE
  4245. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetProjection'", NULL);
  4246. #endif
  4247. {
  4248. Matrix4 tolua_ret = (Matrix4) self->GetProjection(apiSpecific);
  4249. {
  4250. #ifdef __cplusplus
  4251. void* tolua_obj = Mtolua_new((Matrix4)(tolua_ret));
  4252. tolua_pushusertype(tolua_S,tolua_obj,"Matrix4");
  4253. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4254. #else
  4255. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Matrix4));
  4256. tolua_pushusertype(tolua_S,tolua_obj,"Matrix4");
  4257. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4258. #endif
  4259. }
  4260. }
  4261. }
  4262. return 1;
  4263. tolua_lerror:
  4264. return tolua_Graphics_Camera_GetProjection00(tolua_S);
  4265. }
  4266. #endif //#ifndef TOLUA_DISABLE
  4267. /* method: GetView of class Camera */
  4268. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetView00
  4269. static int tolua_Graphics_Camera_GetView00(lua_State* tolua_S)
  4270. {
  4271. #ifndef TOLUA_RELEASE
  4272. tolua_Error tolua_err;
  4273. if (
  4274. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4275. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4276. )
  4277. goto tolua_lerror;
  4278. else
  4279. #endif
  4280. {
  4281. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4282. #ifndef TOLUA_RELEASE
  4283. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetView'", NULL);
  4284. #endif
  4285. {
  4286. const Matrix3x4& tolua_ret = (const Matrix3x4&) self->GetView();
  4287. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Matrix3x4");
  4288. }
  4289. }
  4290. return 1;
  4291. #ifndef TOLUA_RELEASE
  4292. tolua_lerror:
  4293. tolua_error(tolua_S,"#ferror in function 'GetView'.",&tolua_err);
  4294. return 0;
  4295. #endif
  4296. }
  4297. #endif //#ifndef TOLUA_DISABLE
  4298. /* method: GetFrustumSize of class Camera */
  4299. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetFrustumSize00
  4300. static int tolua_Graphics_Camera_GetFrustumSize00(lua_State* tolua_S)
  4301. {
  4302. #ifndef TOLUA_RELEASE
  4303. tolua_Error tolua_err;
  4304. if (
  4305. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4306. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Vector3",0,&tolua_err)) ||
  4307. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"Vector3",0,&tolua_err)) ||
  4308. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4309. )
  4310. goto tolua_lerror;
  4311. else
  4312. #endif
  4313. {
  4314. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4315. Vector3* near = ((Vector3*) tolua_tousertype(tolua_S,2,0));
  4316. Vector3* far = ((Vector3*) tolua_tousertype(tolua_S,3,0));
  4317. #ifndef TOLUA_RELEASE
  4318. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFrustumSize'", NULL);
  4319. #endif
  4320. {
  4321. self->GetFrustumSize(*near,*far);
  4322. }
  4323. }
  4324. return 0;
  4325. #ifndef TOLUA_RELEASE
  4326. tolua_lerror:
  4327. tolua_error(tolua_S,"#ferror in function 'GetFrustumSize'.",&tolua_err);
  4328. return 0;
  4329. #endif
  4330. }
  4331. #endif //#ifndef TOLUA_DISABLE
  4332. /* method: GetHalfViewSize of class Camera */
  4333. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetHalfViewSize00
  4334. static int tolua_Graphics_Camera_GetHalfViewSize00(lua_State* tolua_S)
  4335. {
  4336. #ifndef TOLUA_RELEASE
  4337. tolua_Error tolua_err;
  4338. if (
  4339. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4340. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4341. )
  4342. goto tolua_lerror;
  4343. else
  4344. #endif
  4345. {
  4346. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4347. #ifndef TOLUA_RELEASE
  4348. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHalfViewSize'", NULL);
  4349. #endif
  4350. {
  4351. float tolua_ret = (float) self->GetHalfViewSize();
  4352. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4353. }
  4354. }
  4355. return 1;
  4356. #ifndef TOLUA_RELEASE
  4357. tolua_lerror:
  4358. tolua_error(tolua_S,"#ferror in function 'GetHalfViewSize'.",&tolua_err);
  4359. return 0;
  4360. #endif
  4361. }
  4362. #endif //#ifndef TOLUA_DISABLE
  4363. /* method: GetSplitFrustum of class Camera */
  4364. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetSplitFrustum00
  4365. static int tolua_Graphics_Camera_GetSplitFrustum00(lua_State* tolua_S)
  4366. {
  4367. #ifndef TOLUA_RELEASE
  4368. tolua_Error tolua_err;
  4369. if (
  4370. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4371. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  4372. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  4373. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4374. )
  4375. goto tolua_lerror;
  4376. else
  4377. #endif
  4378. {
  4379. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4380. float nearClip = ((float) tolua_tonumber(tolua_S,2,0));
  4381. float farClip = ((float) tolua_tonumber(tolua_S,3,0));
  4382. #ifndef TOLUA_RELEASE
  4383. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSplitFrustum'", NULL);
  4384. #endif
  4385. {
  4386. Frustum tolua_ret = (Frustum) self->GetSplitFrustum(nearClip,farClip);
  4387. {
  4388. #ifdef __cplusplus
  4389. void* tolua_obj = Mtolua_new((Frustum)(tolua_ret));
  4390. tolua_pushusertype(tolua_S,tolua_obj,"Frustum");
  4391. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4392. #else
  4393. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Frustum));
  4394. tolua_pushusertype(tolua_S,tolua_obj,"Frustum");
  4395. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4396. #endif
  4397. }
  4398. }
  4399. }
  4400. return 1;
  4401. #ifndef TOLUA_RELEASE
  4402. tolua_lerror:
  4403. tolua_error(tolua_S,"#ferror in function 'GetSplitFrustum'.",&tolua_err);
  4404. return 0;
  4405. #endif
  4406. }
  4407. #endif //#ifndef TOLUA_DISABLE
  4408. /* method: GetViewSpaceFrustum of class Camera */
  4409. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetViewSpaceFrustum00
  4410. static int tolua_Graphics_Camera_GetViewSpaceFrustum00(lua_State* tolua_S)
  4411. {
  4412. #ifndef TOLUA_RELEASE
  4413. tolua_Error tolua_err;
  4414. if (
  4415. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4416. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4417. )
  4418. goto tolua_lerror;
  4419. else
  4420. #endif
  4421. {
  4422. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4423. #ifndef TOLUA_RELEASE
  4424. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetViewSpaceFrustum'", NULL);
  4425. #endif
  4426. {
  4427. Frustum tolua_ret = (Frustum) self->GetViewSpaceFrustum();
  4428. {
  4429. #ifdef __cplusplus
  4430. void* tolua_obj = Mtolua_new((Frustum)(tolua_ret));
  4431. tolua_pushusertype(tolua_S,tolua_obj,"Frustum");
  4432. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4433. #else
  4434. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Frustum));
  4435. tolua_pushusertype(tolua_S,tolua_obj,"Frustum");
  4436. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4437. #endif
  4438. }
  4439. }
  4440. }
  4441. return 1;
  4442. #ifndef TOLUA_RELEASE
  4443. tolua_lerror:
  4444. tolua_error(tolua_S,"#ferror in function 'GetViewSpaceFrustum'.",&tolua_err);
  4445. return 0;
  4446. #endif
  4447. }
  4448. #endif //#ifndef TOLUA_DISABLE
  4449. /* method: GetViewSpaceSplitFrustum of class Camera */
  4450. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetViewSpaceSplitFrustum00
  4451. static int tolua_Graphics_Camera_GetViewSpaceSplitFrustum00(lua_State* tolua_S)
  4452. {
  4453. #ifndef TOLUA_RELEASE
  4454. tolua_Error tolua_err;
  4455. if (
  4456. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4457. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  4458. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  4459. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4460. )
  4461. goto tolua_lerror;
  4462. else
  4463. #endif
  4464. {
  4465. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4466. float nearClip = ((float) tolua_tonumber(tolua_S,2,0));
  4467. float farClip = ((float) tolua_tonumber(tolua_S,3,0));
  4468. #ifndef TOLUA_RELEASE
  4469. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetViewSpaceSplitFrustum'", NULL);
  4470. #endif
  4471. {
  4472. Frustum tolua_ret = (Frustum) self->GetViewSpaceSplitFrustum(nearClip,farClip);
  4473. {
  4474. #ifdef __cplusplus
  4475. void* tolua_obj = Mtolua_new((Frustum)(tolua_ret));
  4476. tolua_pushusertype(tolua_S,tolua_obj,"Frustum");
  4477. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4478. #else
  4479. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Frustum));
  4480. tolua_pushusertype(tolua_S,tolua_obj,"Frustum");
  4481. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4482. #endif
  4483. }
  4484. }
  4485. }
  4486. return 1;
  4487. #ifndef TOLUA_RELEASE
  4488. tolua_lerror:
  4489. tolua_error(tolua_S,"#ferror in function 'GetViewSpaceSplitFrustum'.",&tolua_err);
  4490. return 0;
  4491. #endif
  4492. }
  4493. #endif //#ifndef TOLUA_DISABLE
  4494. /* method: GetScreenRay of class Camera */
  4495. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetScreenRay00
  4496. static int tolua_Graphics_Camera_GetScreenRay00(lua_State* tolua_S)
  4497. {
  4498. #ifndef TOLUA_RELEASE
  4499. tolua_Error tolua_err;
  4500. if (
  4501. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4502. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  4503. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  4504. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4505. )
  4506. goto tolua_lerror;
  4507. else
  4508. #endif
  4509. {
  4510. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4511. float x = ((float) tolua_tonumber(tolua_S,2,0));
  4512. float y = ((float) tolua_tonumber(tolua_S,3,0));
  4513. #ifndef TOLUA_RELEASE
  4514. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetScreenRay'", NULL);
  4515. #endif
  4516. {
  4517. Ray tolua_ret = (Ray) self->GetScreenRay(x,y);
  4518. {
  4519. #ifdef __cplusplus
  4520. void* tolua_obj = Mtolua_new((Ray)(tolua_ret));
  4521. tolua_pushusertype(tolua_S,tolua_obj,"Ray");
  4522. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4523. #else
  4524. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Ray));
  4525. tolua_pushusertype(tolua_S,tolua_obj,"Ray");
  4526. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4527. #endif
  4528. }
  4529. }
  4530. }
  4531. return 1;
  4532. #ifndef TOLUA_RELEASE
  4533. tolua_lerror:
  4534. tolua_error(tolua_S,"#ferror in function 'GetScreenRay'.",&tolua_err);
  4535. return 0;
  4536. #endif
  4537. }
  4538. #endif //#ifndef TOLUA_DISABLE
  4539. /* method: WorldToScreenPoint of class Camera */
  4540. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_WorldToScreenPoint00
  4541. static int tolua_Graphics_Camera_WorldToScreenPoint00(lua_State* tolua_S)
  4542. {
  4543. #ifndef TOLUA_RELEASE
  4544. tolua_Error tolua_err;
  4545. if (
  4546. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4547. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  4548. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4549. )
  4550. goto tolua_lerror;
  4551. else
  4552. #endif
  4553. {
  4554. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4555. const Vector3* worldPos = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  4556. #ifndef TOLUA_RELEASE
  4557. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'WorldToScreenPoint'", NULL);
  4558. #endif
  4559. {
  4560. Vector2 tolua_ret = (Vector2) self->WorldToScreenPoint(*worldPos);
  4561. {
  4562. #ifdef __cplusplus
  4563. void* tolua_obj = Mtolua_new((Vector2)(tolua_ret));
  4564. tolua_pushusertype(tolua_S,tolua_obj,"Vector2");
  4565. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4566. #else
  4567. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector2));
  4568. tolua_pushusertype(tolua_S,tolua_obj,"Vector2");
  4569. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4570. #endif
  4571. }
  4572. }
  4573. }
  4574. return 1;
  4575. #ifndef TOLUA_RELEASE
  4576. tolua_lerror:
  4577. tolua_error(tolua_S,"#ferror in function 'WorldToScreenPoint'.",&tolua_err);
  4578. return 0;
  4579. #endif
  4580. }
  4581. #endif //#ifndef TOLUA_DISABLE
  4582. /* method: ScreenToWorldPoint of class Camera */
  4583. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_ScreenToWorldPoint00
  4584. static int tolua_Graphics_Camera_ScreenToWorldPoint00(lua_State* tolua_S)
  4585. {
  4586. #ifndef TOLUA_RELEASE
  4587. tolua_Error tolua_err;
  4588. if (
  4589. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4590. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  4591. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4592. )
  4593. goto tolua_lerror;
  4594. else
  4595. #endif
  4596. {
  4597. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4598. const Vector3* screenPos = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  4599. #ifndef TOLUA_RELEASE
  4600. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ScreenToWorldPoint'", NULL);
  4601. #endif
  4602. {
  4603. Vector3 tolua_ret = (Vector3) self->ScreenToWorldPoint(*screenPos);
  4604. {
  4605. #ifdef __cplusplus
  4606. void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
  4607. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  4608. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4609. #else
  4610. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
  4611. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  4612. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4613. #endif
  4614. }
  4615. }
  4616. }
  4617. return 1;
  4618. #ifndef TOLUA_RELEASE
  4619. tolua_lerror:
  4620. tolua_error(tolua_S,"#ferror in function 'ScreenToWorldPoint'.",&tolua_err);
  4621. return 0;
  4622. #endif
  4623. }
  4624. #endif //#ifndef TOLUA_DISABLE
  4625. /* method: GetForwardVector of class Camera */
  4626. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetForwardVector00
  4627. static int tolua_Graphics_Camera_GetForwardVector00(lua_State* tolua_S)
  4628. {
  4629. #ifndef TOLUA_RELEASE
  4630. tolua_Error tolua_err;
  4631. if (
  4632. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4633. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4634. )
  4635. goto tolua_lerror;
  4636. else
  4637. #endif
  4638. {
  4639. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4640. #ifndef TOLUA_RELEASE
  4641. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetForwardVector'", NULL);
  4642. #endif
  4643. {
  4644. Vector3 tolua_ret = (Vector3) self->GetForwardVector();
  4645. {
  4646. #ifdef __cplusplus
  4647. void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
  4648. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  4649. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4650. #else
  4651. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
  4652. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  4653. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4654. #endif
  4655. }
  4656. }
  4657. }
  4658. return 1;
  4659. #ifndef TOLUA_RELEASE
  4660. tolua_lerror:
  4661. tolua_error(tolua_S,"#ferror in function 'GetForwardVector'.",&tolua_err);
  4662. return 0;
  4663. #endif
  4664. }
  4665. #endif //#ifndef TOLUA_DISABLE
  4666. /* method: GetRightVector of class Camera */
  4667. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetRightVector00
  4668. static int tolua_Graphics_Camera_GetRightVector00(lua_State* tolua_S)
  4669. {
  4670. #ifndef TOLUA_RELEASE
  4671. tolua_Error tolua_err;
  4672. if (
  4673. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4674. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4675. )
  4676. goto tolua_lerror;
  4677. else
  4678. #endif
  4679. {
  4680. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4681. #ifndef TOLUA_RELEASE
  4682. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRightVector'", NULL);
  4683. #endif
  4684. {
  4685. Vector3 tolua_ret = (Vector3) self->GetRightVector();
  4686. {
  4687. #ifdef __cplusplus
  4688. void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
  4689. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  4690. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4691. #else
  4692. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
  4693. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  4694. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4695. #endif
  4696. }
  4697. }
  4698. }
  4699. return 1;
  4700. #ifndef TOLUA_RELEASE
  4701. tolua_lerror:
  4702. tolua_error(tolua_S,"#ferror in function 'GetRightVector'.",&tolua_err);
  4703. return 0;
  4704. #endif
  4705. }
  4706. #endif //#ifndef TOLUA_DISABLE
  4707. /* method: GetUpVector of class Camera */
  4708. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetUpVector00
  4709. static int tolua_Graphics_Camera_GetUpVector00(lua_State* tolua_S)
  4710. {
  4711. #ifndef TOLUA_RELEASE
  4712. tolua_Error tolua_err;
  4713. if (
  4714. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4715. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4716. )
  4717. goto tolua_lerror;
  4718. else
  4719. #endif
  4720. {
  4721. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4722. #ifndef TOLUA_RELEASE
  4723. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetUpVector'", NULL);
  4724. #endif
  4725. {
  4726. Vector3 tolua_ret = (Vector3) self->GetUpVector();
  4727. {
  4728. #ifdef __cplusplus
  4729. void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
  4730. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  4731. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4732. #else
  4733. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
  4734. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  4735. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  4736. #endif
  4737. }
  4738. }
  4739. }
  4740. return 1;
  4741. #ifndef TOLUA_RELEASE
  4742. tolua_lerror:
  4743. tolua_error(tolua_S,"#ferror in function 'GetUpVector'.",&tolua_err);
  4744. return 0;
  4745. #endif
  4746. }
  4747. #endif //#ifndef TOLUA_DISABLE
  4748. /* method: GetProjectionOffset of class Camera */
  4749. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetProjectionOffset00
  4750. static int tolua_Graphics_Camera_GetProjectionOffset00(lua_State* tolua_S)
  4751. {
  4752. #ifndef TOLUA_RELEASE
  4753. tolua_Error tolua_err;
  4754. if (
  4755. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4756. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4757. )
  4758. goto tolua_lerror;
  4759. else
  4760. #endif
  4761. {
  4762. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4763. #ifndef TOLUA_RELEASE
  4764. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetProjectionOffset'", NULL);
  4765. #endif
  4766. {
  4767. const Vector2& tolua_ret = (const Vector2&) self->GetProjectionOffset();
  4768. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector2");
  4769. }
  4770. }
  4771. return 1;
  4772. #ifndef TOLUA_RELEASE
  4773. tolua_lerror:
  4774. tolua_error(tolua_S,"#ferror in function 'GetProjectionOffset'.",&tolua_err);
  4775. return 0;
  4776. #endif
  4777. }
  4778. #endif //#ifndef TOLUA_DISABLE
  4779. /* method: GetFlipVertical of class Camera */
  4780. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetFlipVertical00
  4781. static int tolua_Graphics_Camera_GetFlipVertical00(lua_State* tolua_S)
  4782. {
  4783. #ifndef TOLUA_RELEASE
  4784. tolua_Error tolua_err;
  4785. if (
  4786. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4787. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4788. )
  4789. goto tolua_lerror;
  4790. else
  4791. #endif
  4792. {
  4793. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4794. #ifndef TOLUA_RELEASE
  4795. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFlipVertical'", NULL);
  4796. #endif
  4797. {
  4798. bool tolua_ret = (bool) self->GetFlipVertical();
  4799. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  4800. }
  4801. }
  4802. return 1;
  4803. #ifndef TOLUA_RELEASE
  4804. tolua_lerror:
  4805. tolua_error(tolua_S,"#ferror in function 'GetFlipVertical'.",&tolua_err);
  4806. return 0;
  4807. #endif
  4808. }
  4809. #endif //#ifndef TOLUA_DISABLE
  4810. /* method: GetDistance of class Camera */
  4811. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetDistance00
  4812. static int tolua_Graphics_Camera_GetDistance00(lua_State* tolua_S)
  4813. {
  4814. #ifndef TOLUA_RELEASE
  4815. tolua_Error tolua_err;
  4816. if (
  4817. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4818. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  4819. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4820. )
  4821. goto tolua_lerror;
  4822. else
  4823. #endif
  4824. {
  4825. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4826. const Vector3* worldPos = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  4827. #ifndef TOLUA_RELEASE
  4828. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDistance'", NULL);
  4829. #endif
  4830. {
  4831. float tolua_ret = (float) self->GetDistance(*worldPos);
  4832. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4833. }
  4834. }
  4835. return 1;
  4836. #ifndef TOLUA_RELEASE
  4837. tolua_lerror:
  4838. tolua_error(tolua_S,"#ferror in function 'GetDistance'.",&tolua_err);
  4839. return 0;
  4840. #endif
  4841. }
  4842. #endif //#ifndef TOLUA_DISABLE
  4843. /* method: GetDistanceSquared of class Camera */
  4844. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetDistanceSquared00
  4845. static int tolua_Graphics_Camera_GetDistanceSquared00(lua_State* tolua_S)
  4846. {
  4847. #ifndef TOLUA_RELEASE
  4848. tolua_Error tolua_err;
  4849. if (
  4850. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4851. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  4852. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4853. )
  4854. goto tolua_lerror;
  4855. else
  4856. #endif
  4857. {
  4858. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4859. const Vector3* worldPos = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  4860. #ifndef TOLUA_RELEASE
  4861. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDistanceSquared'", NULL);
  4862. #endif
  4863. {
  4864. float tolua_ret = (float) self->GetDistanceSquared(*worldPos);
  4865. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4866. }
  4867. }
  4868. return 1;
  4869. #ifndef TOLUA_RELEASE
  4870. tolua_lerror:
  4871. tolua_error(tolua_S,"#ferror in function 'GetDistanceSquared'.",&tolua_err);
  4872. return 0;
  4873. #endif
  4874. }
  4875. #endif //#ifndef TOLUA_DISABLE
  4876. /* method: GetLodDistance of class Camera */
  4877. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_GetLodDistance00
  4878. static int tolua_Graphics_Camera_GetLodDistance00(lua_State* tolua_S)
  4879. {
  4880. #ifndef TOLUA_RELEASE
  4881. tolua_Error tolua_err;
  4882. if (
  4883. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4884. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  4885. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  4886. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  4887. !tolua_isnoobj(tolua_S,5,&tolua_err)
  4888. )
  4889. goto tolua_lerror;
  4890. else
  4891. #endif
  4892. {
  4893. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4894. float distance = ((float) tolua_tonumber(tolua_S,2,0));
  4895. float scale = ((float) tolua_tonumber(tolua_S,3,0));
  4896. float bias = ((float) tolua_tonumber(tolua_S,4,0));
  4897. #ifndef TOLUA_RELEASE
  4898. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLodDistance'", NULL);
  4899. #endif
  4900. {
  4901. float tolua_ret = (float) self->GetLodDistance(distance,scale,bias);
  4902. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4903. }
  4904. }
  4905. return 1;
  4906. #ifndef TOLUA_RELEASE
  4907. tolua_lerror:
  4908. tolua_error(tolua_S,"#ferror in function 'GetLodDistance'.",&tolua_err);
  4909. return 0;
  4910. #endif
  4911. }
  4912. #endif //#ifndef TOLUA_DISABLE
  4913. /* method: IsProjectionValid of class Camera */
  4914. #ifndef TOLUA_DISABLE_tolua_Graphics_Camera_IsProjectionValid00
  4915. static int tolua_Graphics_Camera_IsProjectionValid00(lua_State* tolua_S)
  4916. {
  4917. #ifndef TOLUA_RELEASE
  4918. tolua_Error tolua_err;
  4919. if (
  4920. !tolua_isusertype(tolua_S,1,"const Camera",0,&tolua_err) ||
  4921. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4922. )
  4923. goto tolua_lerror;
  4924. else
  4925. #endif
  4926. {
  4927. const Camera* self = (const Camera*) tolua_tousertype(tolua_S,1,0);
  4928. #ifndef TOLUA_RELEASE
  4929. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsProjectionValid'", NULL);
  4930. #endif
  4931. {
  4932. bool tolua_ret = (bool) self->IsProjectionValid();
  4933. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  4934. }
  4935. }
  4936. return 1;
  4937. #ifndef TOLUA_RELEASE
  4938. tolua_lerror:
  4939. tolua_error(tolua_S,"#ferror in function 'IsProjectionValid'.",&tolua_err);
  4940. return 0;
  4941. #endif
  4942. }
  4943. #endif //#ifndef TOLUA_DISABLE
  4944. /* method: AddLine of class DebugRenderer */
  4945. #ifndef TOLUA_DISABLE_tolua_Graphics_DebugRenderer_AddLine00
  4946. static int tolua_Graphics_DebugRenderer_AddLine00(lua_State* tolua_S)
  4947. {
  4948. #ifndef TOLUA_RELEASE
  4949. tolua_Error tolua_err;
  4950. if (
  4951. !tolua_isusertype(tolua_S,1,"DebugRenderer",0,&tolua_err) ||
  4952. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  4953. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Vector3",0,&tolua_err)) ||
  4954. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"const Color",0,&tolua_err)) ||
  4955. !tolua_isboolean(tolua_S,5,1,&tolua_err) ||
  4956. !tolua_isnoobj(tolua_S,6,&tolua_err)
  4957. )
  4958. goto tolua_lerror;
  4959. else
  4960. #endif
  4961. {
  4962. DebugRenderer* self = (DebugRenderer*) tolua_tousertype(tolua_S,1,0);
  4963. const Vector3* start = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  4964. const Vector3* end = ((const Vector3*) tolua_tousertype(tolua_S,3,0));
  4965. const Color* color = ((const Color*) tolua_tousertype(tolua_S,4,0));
  4966. bool depthTest = ((bool) tolua_toboolean(tolua_S,5,true));
  4967. #ifndef TOLUA_RELEASE
  4968. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddLine'", NULL);
  4969. #endif
  4970. {
  4971. self->AddLine(*start,*end,*color,depthTest);
  4972. }
  4973. }
  4974. return 0;
  4975. #ifndef TOLUA_RELEASE
  4976. tolua_lerror:
  4977. tolua_error(tolua_S,"#ferror in function 'AddLine'.",&tolua_err);
  4978. return 0;
  4979. #endif
  4980. }
  4981. #endif //#ifndef TOLUA_DISABLE
  4982. /* method: AddLine of class DebugRenderer */
  4983. #ifndef TOLUA_DISABLE_tolua_Graphics_DebugRenderer_AddLine01
  4984. static int tolua_Graphics_DebugRenderer_AddLine01(lua_State* tolua_S)
  4985. {
  4986. tolua_Error tolua_err;
  4987. if (
  4988. !tolua_isusertype(tolua_S,1,"DebugRenderer",0,&tolua_err) ||
  4989. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  4990. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Vector3",0,&tolua_err)) ||
  4991. !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
  4992. !tolua_isboolean(tolua_S,5,1,&tolua_err) ||
  4993. !tolua_isnoobj(tolua_S,6,&tolua_err)
  4994. )
  4995. goto tolua_lerror;
  4996. else
  4997. {
  4998. DebugRenderer* self = (DebugRenderer*) tolua_tousertype(tolua_S,1,0);
  4999. const Vector3* start = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  5000. const Vector3* end = ((const Vector3*) tolua_tousertype(tolua_S,3,0));
  5001. unsigned color = ((unsigned) tolua_tonumber(tolua_S,4,0));
  5002. bool depthTest = ((bool) tolua_toboolean(tolua_S,5,true));
  5003. #ifndef TOLUA_RELEASE
  5004. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddLine'", NULL);
  5005. #endif
  5006. {
  5007. self->AddLine(*start,*end,color,depthTest);
  5008. }
  5009. }
  5010. return 0;
  5011. tolua_lerror:
  5012. return tolua_Graphics_DebugRenderer_AddLine00(tolua_S);
  5013. }
  5014. #endif //#ifndef TOLUA_DISABLE
  5015. /* method: AddNode of class DebugRenderer */
  5016. #ifndef TOLUA_DISABLE_tolua_Graphics_DebugRenderer_AddNode00
  5017. static int tolua_Graphics_DebugRenderer_AddNode00(lua_State* tolua_S)
  5018. {
  5019. #ifndef TOLUA_RELEASE
  5020. tolua_Error tolua_err;
  5021. if (
  5022. !tolua_isusertype(tolua_S,1,"DebugRenderer",0,&tolua_err) ||
  5023. !tolua_isusertype(tolua_S,2,"Node",0,&tolua_err) ||
  5024. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  5025. !tolua_isboolean(tolua_S,4,1,&tolua_err) ||
  5026. !tolua_isnoobj(tolua_S,5,&tolua_err)
  5027. )
  5028. goto tolua_lerror;
  5029. else
  5030. #endif
  5031. {
  5032. DebugRenderer* self = (DebugRenderer*) tolua_tousertype(tolua_S,1,0);
  5033. Node* node = ((Node*) tolua_tousertype(tolua_S,2,0));
  5034. float scale = ((float) tolua_tonumber(tolua_S,3,1.0f));
  5035. bool depthTest = ((bool) tolua_toboolean(tolua_S,4,true));
  5036. #ifndef TOLUA_RELEASE
  5037. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddNode'", NULL);
  5038. #endif
  5039. {
  5040. self->AddNode(node,scale,depthTest);
  5041. }
  5042. }
  5043. return 0;
  5044. #ifndef TOLUA_RELEASE
  5045. tolua_lerror:
  5046. tolua_error(tolua_S,"#ferror in function 'AddNode'.",&tolua_err);
  5047. return 0;
  5048. #endif
  5049. }
  5050. #endif //#ifndef TOLUA_DISABLE
  5051. /* method: AddBoundingBox of class DebugRenderer */
  5052. #ifndef TOLUA_DISABLE_tolua_Graphics_DebugRenderer_AddBoundingBox00
  5053. static int tolua_Graphics_DebugRenderer_AddBoundingBox00(lua_State* tolua_S)
  5054. {
  5055. #ifndef TOLUA_RELEASE
  5056. tolua_Error tolua_err;
  5057. if (
  5058. !tolua_isusertype(tolua_S,1,"DebugRenderer",0,&tolua_err) ||
  5059. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const BoundingBox",0,&tolua_err)) ||
  5060. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Color",0,&tolua_err)) ||
  5061. !tolua_isboolean(tolua_S,4,1,&tolua_err) ||
  5062. !tolua_isnoobj(tolua_S,5,&tolua_err)
  5063. )
  5064. goto tolua_lerror;
  5065. else
  5066. #endif
  5067. {
  5068. DebugRenderer* self = (DebugRenderer*) tolua_tousertype(tolua_S,1,0);
  5069. const BoundingBox* box = ((const BoundingBox*) tolua_tousertype(tolua_S,2,0));
  5070. const Color* color = ((const Color*) tolua_tousertype(tolua_S,3,0));
  5071. bool depthTest = ((bool) tolua_toboolean(tolua_S,4,true));
  5072. #ifndef TOLUA_RELEASE
  5073. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddBoundingBox'", NULL);
  5074. #endif
  5075. {
  5076. self->AddBoundingBox(*box,*color,depthTest);
  5077. }
  5078. }
  5079. return 0;
  5080. #ifndef TOLUA_RELEASE
  5081. tolua_lerror:
  5082. tolua_error(tolua_S,"#ferror in function 'AddBoundingBox'.",&tolua_err);
  5083. return 0;
  5084. #endif
  5085. }
  5086. #endif //#ifndef TOLUA_DISABLE
  5087. /* method: AddBoundingBox of class DebugRenderer */
  5088. #ifndef TOLUA_DISABLE_tolua_Graphics_DebugRenderer_AddBoundingBox01
  5089. static int tolua_Graphics_DebugRenderer_AddBoundingBox01(lua_State* tolua_S)
  5090. {
  5091. tolua_Error tolua_err;
  5092. if (
  5093. !tolua_isusertype(tolua_S,1,"DebugRenderer",0,&tolua_err) ||
  5094. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const BoundingBox",0,&tolua_err)) ||
  5095. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Matrix3x4",0,&tolua_err)) ||
  5096. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"const Color",0,&tolua_err)) ||
  5097. !tolua_isboolean(tolua_S,5,1,&tolua_err) ||
  5098. !tolua_isnoobj(tolua_S,6,&tolua_err)
  5099. )
  5100. goto tolua_lerror;
  5101. else
  5102. {
  5103. DebugRenderer* self = (DebugRenderer*) tolua_tousertype(tolua_S,1,0);
  5104. const BoundingBox* box = ((const BoundingBox*) tolua_tousertype(tolua_S,2,0));
  5105. const Matrix3x4* transform = ((const Matrix3x4*) tolua_tousertype(tolua_S,3,0));
  5106. const Color* color = ((const Color*) tolua_tousertype(tolua_S,4,0));
  5107. bool depthTest = ((bool) tolua_toboolean(tolua_S,5,true));
  5108. #ifndef TOLUA_RELEASE
  5109. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddBoundingBox'", NULL);
  5110. #endif
  5111. {
  5112. self->AddBoundingBox(*box,*transform,*color,depthTest);
  5113. }
  5114. }
  5115. return 0;
  5116. tolua_lerror:
  5117. return tolua_Graphics_DebugRenderer_AddBoundingBox00(tolua_S);
  5118. }
  5119. #endif //#ifndef TOLUA_DISABLE
  5120. /* method: AddFrustum of class DebugRenderer */
  5121. #ifndef TOLUA_DISABLE_tolua_Graphics_DebugRenderer_AddFrustum00
  5122. static int tolua_Graphics_DebugRenderer_AddFrustum00(lua_State* tolua_S)
  5123. {
  5124. #ifndef TOLUA_RELEASE
  5125. tolua_Error tolua_err;
  5126. if (
  5127. !tolua_isusertype(tolua_S,1,"DebugRenderer",0,&tolua_err) ||
  5128. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Frustum",0,&tolua_err)) ||
  5129. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Color",0,&tolua_err)) ||
  5130. !tolua_isboolean(tolua_S,4,1,&tolua_err) ||
  5131. !tolua_isnoobj(tolua_S,5,&tolua_err)
  5132. )
  5133. goto tolua_lerror;
  5134. else
  5135. #endif
  5136. {
  5137. DebugRenderer* self = (DebugRenderer*) tolua_tousertype(tolua_S,1,0);
  5138. const Frustum* frustum = ((const Frustum*) tolua_tousertype(tolua_S,2,0));
  5139. const Color* color = ((const Color*) tolua_tousertype(tolua_S,3,0));
  5140. bool depthTest = ((bool) tolua_toboolean(tolua_S,4,true));
  5141. #ifndef TOLUA_RELEASE
  5142. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddFrustum'", NULL);
  5143. #endif
  5144. {
  5145. self->AddFrustum(*frustum,*color,depthTest);
  5146. }
  5147. }
  5148. return 0;
  5149. #ifndef TOLUA_RELEASE
  5150. tolua_lerror:
  5151. tolua_error(tolua_S,"#ferror in function 'AddFrustum'.",&tolua_err);
  5152. return 0;
  5153. #endif
  5154. }
  5155. #endif //#ifndef TOLUA_DISABLE
  5156. /* method: AddPolyhedron of class DebugRenderer */
  5157. #ifndef TOLUA_DISABLE_tolua_Graphics_DebugRenderer_AddPolyhedron00
  5158. static int tolua_Graphics_DebugRenderer_AddPolyhedron00(lua_State* tolua_S)
  5159. {
  5160. #ifndef TOLUA_RELEASE
  5161. tolua_Error tolua_err;
  5162. if (
  5163. !tolua_isusertype(tolua_S,1,"DebugRenderer",0,&tolua_err) ||
  5164. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Polyhedron",0,&tolua_err)) ||
  5165. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Color",0,&tolua_err)) ||
  5166. !tolua_isboolean(tolua_S,4,1,&tolua_err) ||
  5167. !tolua_isnoobj(tolua_S,5,&tolua_err)
  5168. )
  5169. goto tolua_lerror;
  5170. else
  5171. #endif
  5172. {
  5173. DebugRenderer* self = (DebugRenderer*) tolua_tousertype(tolua_S,1,0);
  5174. const Polyhedron* poly = ((const Polyhedron*) tolua_tousertype(tolua_S,2,0));
  5175. const Color* color = ((const Color*) tolua_tousertype(tolua_S,3,0));
  5176. bool depthTest = ((bool) tolua_toboolean(tolua_S,4,true));
  5177. #ifndef TOLUA_RELEASE
  5178. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddPolyhedron'", NULL);
  5179. #endif
  5180. {
  5181. self->AddPolyhedron(*poly,*color,depthTest);
  5182. }
  5183. }
  5184. return 0;
  5185. #ifndef TOLUA_RELEASE
  5186. tolua_lerror:
  5187. tolua_error(tolua_S,"#ferror in function 'AddPolyhedron'.",&tolua_err);
  5188. return 0;
  5189. #endif
  5190. }
  5191. #endif //#ifndef TOLUA_DISABLE
  5192. /* method: AddSphere of class DebugRenderer */
  5193. #ifndef TOLUA_DISABLE_tolua_Graphics_DebugRenderer_AddSphere00
  5194. static int tolua_Graphics_DebugRenderer_AddSphere00(lua_State* tolua_S)
  5195. {
  5196. #ifndef TOLUA_RELEASE
  5197. tolua_Error tolua_err;
  5198. if (
  5199. !tolua_isusertype(tolua_S,1,"DebugRenderer",0,&tolua_err) ||
  5200. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Sphere",0,&tolua_err)) ||
  5201. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Color",0,&tolua_err)) ||
  5202. !tolua_isboolean(tolua_S,4,1,&tolua_err) ||
  5203. !tolua_isnoobj(tolua_S,5,&tolua_err)
  5204. )
  5205. goto tolua_lerror;
  5206. else
  5207. #endif
  5208. {
  5209. DebugRenderer* self = (DebugRenderer*) tolua_tousertype(tolua_S,1,0);
  5210. const Sphere* sphere = ((const Sphere*) tolua_tousertype(tolua_S,2,0));
  5211. const Color* color = ((const Color*) tolua_tousertype(tolua_S,3,0));
  5212. bool depthTest = ((bool) tolua_toboolean(tolua_S,4,true));
  5213. #ifndef TOLUA_RELEASE
  5214. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddSphere'", NULL);
  5215. #endif
  5216. {
  5217. self->AddSphere(*sphere,*color,depthTest);
  5218. }
  5219. }
  5220. return 0;
  5221. #ifndef TOLUA_RELEASE
  5222. tolua_lerror:
  5223. tolua_error(tolua_S,"#ferror in function 'AddSphere'.",&tolua_err);
  5224. return 0;
  5225. #endif
  5226. }
  5227. #endif //#ifndef TOLUA_DISABLE
  5228. /* method: AddSkeleton of class DebugRenderer */
  5229. #ifndef TOLUA_DISABLE_tolua_Graphics_DebugRenderer_AddSkeleton00
  5230. static int tolua_Graphics_DebugRenderer_AddSkeleton00(lua_State* tolua_S)
  5231. {
  5232. #ifndef TOLUA_RELEASE
  5233. tolua_Error tolua_err;
  5234. if (
  5235. !tolua_isusertype(tolua_S,1,"DebugRenderer",0,&tolua_err) ||
  5236. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Skeleton",0,&tolua_err)) ||
  5237. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Color",0,&tolua_err)) ||
  5238. !tolua_isboolean(tolua_S,4,1,&tolua_err) ||
  5239. !tolua_isnoobj(tolua_S,5,&tolua_err)
  5240. )
  5241. goto tolua_lerror;
  5242. else
  5243. #endif
  5244. {
  5245. DebugRenderer* self = (DebugRenderer*) tolua_tousertype(tolua_S,1,0);
  5246. const Skeleton* skeleton = ((const Skeleton*) tolua_tousertype(tolua_S,2,0));
  5247. const Color* color = ((const Color*) tolua_tousertype(tolua_S,3,0));
  5248. bool depthTest = ((bool) tolua_toboolean(tolua_S,4,true));
  5249. #ifndef TOLUA_RELEASE
  5250. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddSkeleton'", NULL);
  5251. #endif
  5252. {
  5253. self->AddSkeleton(*skeleton,*color,depthTest);
  5254. }
  5255. }
  5256. return 0;
  5257. #ifndef TOLUA_RELEASE
  5258. tolua_lerror:
  5259. tolua_error(tolua_S,"#ferror in function 'AddSkeleton'.",&tolua_err);
  5260. return 0;
  5261. #endif
  5262. }
  5263. #endif //#ifndef TOLUA_DISABLE
  5264. /* function: GetDebugRenderer */
  5265. #ifndef TOLUA_DISABLE_tolua_Graphics_GetDebugRenderer00
  5266. static int tolua_Graphics_GetDebugRenderer00(lua_State* tolua_S)
  5267. {
  5268. #ifndef TOLUA_RELEASE
  5269. tolua_Error tolua_err;
  5270. if (
  5271. !tolua_isnoobj(tolua_S,1,&tolua_err)
  5272. )
  5273. goto tolua_lerror;
  5274. else
  5275. #endif
  5276. {
  5277. {
  5278. DebugRenderer* tolua_ret = (DebugRenderer*) GetDebugRenderer();
  5279. tolua_pushusertype(tolua_S,(void*)tolua_ret,"DebugRenderer");
  5280. }
  5281. }
  5282. return 1;
  5283. #ifndef TOLUA_RELEASE
  5284. tolua_lerror:
  5285. tolua_error(tolua_S,"#ferror in function 'GetDebugRenderer'.",&tolua_err);
  5286. return 0;
  5287. #endif
  5288. }
  5289. #endif //#ifndef TOLUA_DISABLE
  5290. /* method: SetMaterial of class DecalSet */
  5291. #ifndef TOLUA_DISABLE_tolua_Graphics_DecalSet_SetMaterial00
  5292. static int tolua_Graphics_DecalSet_SetMaterial00(lua_State* tolua_S)
  5293. {
  5294. #ifndef TOLUA_RELEASE
  5295. tolua_Error tolua_err;
  5296. if (
  5297. !tolua_isusertype(tolua_S,1,"DecalSet",0,&tolua_err) ||
  5298. !tolua_isusertype(tolua_S,2,"Material",0,&tolua_err) ||
  5299. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5300. )
  5301. goto tolua_lerror;
  5302. else
  5303. #endif
  5304. {
  5305. DecalSet* self = (DecalSet*) tolua_tousertype(tolua_S,1,0);
  5306. Material* material = ((Material*) tolua_tousertype(tolua_S,2,0));
  5307. #ifndef TOLUA_RELEASE
  5308. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaterial'", NULL);
  5309. #endif
  5310. {
  5311. self->SetMaterial(material);
  5312. }
  5313. }
  5314. return 0;
  5315. #ifndef TOLUA_RELEASE
  5316. tolua_lerror:
  5317. tolua_error(tolua_S,"#ferror in function 'SetMaterial'.",&tolua_err);
  5318. return 0;
  5319. #endif
  5320. }
  5321. #endif //#ifndef TOLUA_DISABLE
  5322. /* method: SetMaxVertices of class DecalSet */
  5323. #ifndef TOLUA_DISABLE_tolua_Graphics_DecalSet_SetMaxVertices00
  5324. static int tolua_Graphics_DecalSet_SetMaxVertices00(lua_State* tolua_S)
  5325. {
  5326. #ifndef TOLUA_RELEASE
  5327. tolua_Error tolua_err;
  5328. if (
  5329. !tolua_isusertype(tolua_S,1,"DecalSet",0,&tolua_err) ||
  5330. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5331. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5332. )
  5333. goto tolua_lerror;
  5334. else
  5335. #endif
  5336. {
  5337. DecalSet* self = (DecalSet*) tolua_tousertype(tolua_S,1,0);
  5338. unsigned num = ((unsigned) tolua_tonumber(tolua_S,2,0));
  5339. #ifndef TOLUA_RELEASE
  5340. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxVertices'", NULL);
  5341. #endif
  5342. {
  5343. self->SetMaxVertices(num);
  5344. }
  5345. }
  5346. return 0;
  5347. #ifndef TOLUA_RELEASE
  5348. tolua_lerror:
  5349. tolua_error(tolua_S,"#ferror in function 'SetMaxVertices'.",&tolua_err);
  5350. return 0;
  5351. #endif
  5352. }
  5353. #endif //#ifndef TOLUA_DISABLE
  5354. /* method: SetMaxIndices of class DecalSet */
  5355. #ifndef TOLUA_DISABLE_tolua_Graphics_DecalSet_SetMaxIndices00
  5356. static int tolua_Graphics_DecalSet_SetMaxIndices00(lua_State* tolua_S)
  5357. {
  5358. #ifndef TOLUA_RELEASE
  5359. tolua_Error tolua_err;
  5360. if (
  5361. !tolua_isusertype(tolua_S,1,"DecalSet",0,&tolua_err) ||
  5362. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5363. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5364. )
  5365. goto tolua_lerror;
  5366. else
  5367. #endif
  5368. {
  5369. DecalSet* self = (DecalSet*) tolua_tousertype(tolua_S,1,0);
  5370. unsigned num = ((unsigned) tolua_tonumber(tolua_S,2,0));
  5371. #ifndef TOLUA_RELEASE
  5372. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxIndices'", NULL);
  5373. #endif
  5374. {
  5375. self->SetMaxIndices(num);
  5376. }
  5377. }
  5378. return 0;
  5379. #ifndef TOLUA_RELEASE
  5380. tolua_lerror:
  5381. tolua_error(tolua_S,"#ferror in function 'SetMaxIndices'.",&tolua_err);
  5382. return 0;
  5383. #endif
  5384. }
  5385. #endif //#ifndef TOLUA_DISABLE
  5386. /* method: AddDecal of class DecalSet */
  5387. #ifndef TOLUA_DISABLE_tolua_Graphics_DecalSet_AddDecal00
  5388. static int tolua_Graphics_DecalSet_AddDecal00(lua_State* tolua_S)
  5389. {
  5390. #ifndef TOLUA_RELEASE
  5391. tolua_Error tolua_err;
  5392. if (
  5393. !tolua_isusertype(tolua_S,1,"DecalSet",0,&tolua_err) ||
  5394. !tolua_isusertype(tolua_S,2,"Drawable",0,&tolua_err) ||
  5395. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Vector3",0,&tolua_err)) ||
  5396. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"const Quaternion",0,&tolua_err)) ||
  5397. !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
  5398. !tolua_isnumber(tolua_S,6,0,&tolua_err) ||
  5399. !tolua_isnumber(tolua_S,7,0,&tolua_err) ||
  5400. (tolua_isvaluenil(tolua_S,8,&tolua_err) || !tolua_isusertype(tolua_S,8,"const Vector2",0,&tolua_err)) ||
  5401. (tolua_isvaluenil(tolua_S,9,&tolua_err) || !tolua_isusertype(tolua_S,9,"const Vector2",0,&tolua_err)) ||
  5402. !tolua_isnumber(tolua_S,10,1,&tolua_err) ||
  5403. !tolua_isnumber(tolua_S,11,1,&tolua_err) ||
  5404. !tolua_isnumber(tolua_S,12,1,&tolua_err) ||
  5405. !tolua_isnoobj(tolua_S,13,&tolua_err)
  5406. )
  5407. goto tolua_lerror;
  5408. else
  5409. #endif
  5410. {
  5411. DecalSet* self = (DecalSet*) tolua_tousertype(tolua_S,1,0);
  5412. Drawable* target = ((Drawable*) tolua_tousertype(tolua_S,2,0));
  5413. const Vector3* worldPosition = ((const Vector3*) tolua_tousertype(tolua_S,3,0));
  5414. const Quaternion* worldRotation = ((const Quaternion*) tolua_tousertype(tolua_S,4,0));
  5415. float size = ((float) tolua_tonumber(tolua_S,5,0));
  5416. float aspectRatio = ((float) tolua_tonumber(tolua_S,6,0));
  5417. float depth = ((float) tolua_tonumber(tolua_S,7,0));
  5418. const Vector2* topLeftUV = ((const Vector2*) tolua_tousertype(tolua_S,8,0));
  5419. const Vector2* bottomRightUV = ((const Vector2*) tolua_tousertype(tolua_S,9,0));
  5420. float timeToLive = ((float) tolua_tonumber(tolua_S,10,0.0f));
  5421. float normalCutoff = ((float) tolua_tonumber(tolua_S,11,0.1f));
  5422. unsigned subGeometry = ((unsigned) tolua_tonumber(tolua_S,12,M_MAX_UNSIGNED));
  5423. #ifndef TOLUA_RELEASE
  5424. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddDecal'", NULL);
  5425. #endif
  5426. {
  5427. bool tolua_ret = (bool) self->AddDecal(target,*worldPosition,*worldRotation,size,aspectRatio,depth,*topLeftUV,*bottomRightUV,timeToLive,normalCutoff,subGeometry);
  5428. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  5429. }
  5430. }
  5431. return 1;
  5432. #ifndef TOLUA_RELEASE
  5433. tolua_lerror:
  5434. tolua_error(tolua_S,"#ferror in function 'AddDecal'.",&tolua_err);
  5435. return 0;
  5436. #endif
  5437. }
  5438. #endif //#ifndef TOLUA_DISABLE
  5439. /* method: RemoveDecals of class DecalSet */
  5440. #ifndef TOLUA_DISABLE_tolua_Graphics_DecalSet_RemoveDecals00
  5441. static int tolua_Graphics_DecalSet_RemoveDecals00(lua_State* tolua_S)
  5442. {
  5443. #ifndef TOLUA_RELEASE
  5444. tolua_Error tolua_err;
  5445. if (
  5446. !tolua_isusertype(tolua_S,1,"DecalSet",0,&tolua_err) ||
  5447. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5448. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5449. )
  5450. goto tolua_lerror;
  5451. else
  5452. #endif
  5453. {
  5454. DecalSet* self = (DecalSet*) tolua_tousertype(tolua_S,1,0);
  5455. unsigned num = ((unsigned) tolua_tonumber(tolua_S,2,0));
  5456. #ifndef TOLUA_RELEASE
  5457. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveDecals'", NULL);
  5458. #endif
  5459. {
  5460. self->RemoveDecals(num);
  5461. }
  5462. }
  5463. return 0;
  5464. #ifndef TOLUA_RELEASE
  5465. tolua_lerror:
  5466. tolua_error(tolua_S,"#ferror in function 'RemoveDecals'.",&tolua_err);
  5467. return 0;
  5468. #endif
  5469. }
  5470. #endif //#ifndef TOLUA_DISABLE
  5471. /* method: RemoveAllDecals of class DecalSet */
  5472. #ifndef TOLUA_DISABLE_tolua_Graphics_DecalSet_RemoveAllDecals00
  5473. static int tolua_Graphics_DecalSet_RemoveAllDecals00(lua_State* tolua_S)
  5474. {
  5475. #ifndef TOLUA_RELEASE
  5476. tolua_Error tolua_err;
  5477. if (
  5478. !tolua_isusertype(tolua_S,1,"DecalSet",0,&tolua_err) ||
  5479. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5480. )
  5481. goto tolua_lerror;
  5482. else
  5483. #endif
  5484. {
  5485. DecalSet* self = (DecalSet*) tolua_tousertype(tolua_S,1,0);
  5486. #ifndef TOLUA_RELEASE
  5487. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveAllDecals'", NULL);
  5488. #endif
  5489. {
  5490. self->RemoveAllDecals();
  5491. }
  5492. }
  5493. return 0;
  5494. #ifndef TOLUA_RELEASE
  5495. tolua_lerror:
  5496. tolua_error(tolua_S,"#ferror in function 'RemoveAllDecals'.",&tolua_err);
  5497. return 0;
  5498. #endif
  5499. }
  5500. #endif //#ifndef TOLUA_DISABLE
  5501. /* method: GetMaterial of class DecalSet */
  5502. #ifndef TOLUA_DISABLE_tolua_Graphics_DecalSet_GetMaterial00
  5503. static int tolua_Graphics_DecalSet_GetMaterial00(lua_State* tolua_S)
  5504. {
  5505. #ifndef TOLUA_RELEASE
  5506. tolua_Error tolua_err;
  5507. if (
  5508. !tolua_isusertype(tolua_S,1,"const DecalSet",0,&tolua_err) ||
  5509. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5510. )
  5511. goto tolua_lerror;
  5512. else
  5513. #endif
  5514. {
  5515. const DecalSet* self = (const DecalSet*) tolua_tousertype(tolua_S,1,0);
  5516. #ifndef TOLUA_RELEASE
  5517. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaterial'", NULL);
  5518. #endif
  5519. {
  5520. Material* tolua_ret = (Material*) self->GetMaterial();
  5521. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Material");
  5522. }
  5523. }
  5524. return 1;
  5525. #ifndef TOLUA_RELEASE
  5526. tolua_lerror:
  5527. tolua_error(tolua_S,"#ferror in function 'GetMaterial'.",&tolua_err);
  5528. return 0;
  5529. #endif
  5530. }
  5531. #endif //#ifndef TOLUA_DISABLE
  5532. /* method: GetNumDecals of class DecalSet */
  5533. #ifndef TOLUA_DISABLE_tolua_Graphics_DecalSet_GetNumDecals00
  5534. static int tolua_Graphics_DecalSet_GetNumDecals00(lua_State* tolua_S)
  5535. {
  5536. #ifndef TOLUA_RELEASE
  5537. tolua_Error tolua_err;
  5538. if (
  5539. !tolua_isusertype(tolua_S,1,"const DecalSet",0,&tolua_err) ||
  5540. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5541. )
  5542. goto tolua_lerror;
  5543. else
  5544. #endif
  5545. {
  5546. const DecalSet* self = (const DecalSet*) tolua_tousertype(tolua_S,1,0);
  5547. #ifndef TOLUA_RELEASE
  5548. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumDecals'", NULL);
  5549. #endif
  5550. {
  5551. unsigned tolua_ret = (unsigned) self->GetNumDecals();
  5552. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5553. }
  5554. }
  5555. return 1;
  5556. #ifndef TOLUA_RELEASE
  5557. tolua_lerror:
  5558. tolua_error(tolua_S,"#ferror in function 'GetNumDecals'.",&tolua_err);
  5559. return 0;
  5560. #endif
  5561. }
  5562. #endif //#ifndef TOLUA_DISABLE
  5563. /* method: GetNumVertices of class DecalSet */
  5564. #ifndef TOLUA_DISABLE_tolua_Graphics_DecalSet_GetNumVertices00
  5565. static int tolua_Graphics_DecalSet_GetNumVertices00(lua_State* tolua_S)
  5566. {
  5567. #ifndef TOLUA_RELEASE
  5568. tolua_Error tolua_err;
  5569. if (
  5570. !tolua_isusertype(tolua_S,1,"const DecalSet",0,&tolua_err) ||
  5571. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5572. )
  5573. goto tolua_lerror;
  5574. else
  5575. #endif
  5576. {
  5577. const DecalSet* self = (const DecalSet*) tolua_tousertype(tolua_S,1,0);
  5578. #ifndef TOLUA_RELEASE
  5579. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumVertices'", NULL);
  5580. #endif
  5581. {
  5582. unsigned tolua_ret = (unsigned) self->GetNumVertices();
  5583. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5584. }
  5585. }
  5586. return 1;
  5587. #ifndef TOLUA_RELEASE
  5588. tolua_lerror:
  5589. tolua_error(tolua_S,"#ferror in function 'GetNumVertices'.",&tolua_err);
  5590. return 0;
  5591. #endif
  5592. }
  5593. #endif //#ifndef TOLUA_DISABLE
  5594. /* method: GetNumIndices of class DecalSet */
  5595. #ifndef TOLUA_DISABLE_tolua_Graphics_DecalSet_GetNumIndices00
  5596. static int tolua_Graphics_DecalSet_GetNumIndices00(lua_State* tolua_S)
  5597. {
  5598. #ifndef TOLUA_RELEASE
  5599. tolua_Error tolua_err;
  5600. if (
  5601. !tolua_isusertype(tolua_S,1,"const DecalSet",0,&tolua_err) ||
  5602. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5603. )
  5604. goto tolua_lerror;
  5605. else
  5606. #endif
  5607. {
  5608. const DecalSet* self = (const DecalSet*) tolua_tousertype(tolua_S,1,0);
  5609. #ifndef TOLUA_RELEASE
  5610. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumIndices'", NULL);
  5611. #endif
  5612. {
  5613. unsigned tolua_ret = (unsigned) self->GetNumIndices();
  5614. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5615. }
  5616. }
  5617. return 1;
  5618. #ifndef TOLUA_RELEASE
  5619. tolua_lerror:
  5620. tolua_error(tolua_S,"#ferror in function 'GetNumIndices'.",&tolua_err);
  5621. return 0;
  5622. #endif
  5623. }
  5624. #endif //#ifndef TOLUA_DISABLE
  5625. /* method: GetMaxVertices of class DecalSet */
  5626. #ifndef TOLUA_DISABLE_tolua_Graphics_DecalSet_GetMaxVertices00
  5627. static int tolua_Graphics_DecalSet_GetMaxVertices00(lua_State* tolua_S)
  5628. {
  5629. #ifndef TOLUA_RELEASE
  5630. tolua_Error tolua_err;
  5631. if (
  5632. !tolua_isusertype(tolua_S,1,"const DecalSet",0,&tolua_err) ||
  5633. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5634. )
  5635. goto tolua_lerror;
  5636. else
  5637. #endif
  5638. {
  5639. const DecalSet* self = (const DecalSet*) tolua_tousertype(tolua_S,1,0);
  5640. #ifndef TOLUA_RELEASE
  5641. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxVertices'", NULL);
  5642. #endif
  5643. {
  5644. unsigned tolua_ret = (unsigned) self->GetMaxVertices();
  5645. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5646. }
  5647. }
  5648. return 1;
  5649. #ifndef TOLUA_RELEASE
  5650. tolua_lerror:
  5651. tolua_error(tolua_S,"#ferror in function 'GetMaxVertices'.",&tolua_err);
  5652. return 0;
  5653. #endif
  5654. }
  5655. #endif //#ifndef TOLUA_DISABLE
  5656. /* method: GetMaxIndices of class DecalSet */
  5657. #ifndef TOLUA_DISABLE_tolua_Graphics_DecalSet_GetMaxIndices00
  5658. static int tolua_Graphics_DecalSet_GetMaxIndices00(lua_State* tolua_S)
  5659. {
  5660. #ifndef TOLUA_RELEASE
  5661. tolua_Error tolua_err;
  5662. if (
  5663. !tolua_isusertype(tolua_S,1,"const DecalSet",0,&tolua_err) ||
  5664. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5665. )
  5666. goto tolua_lerror;
  5667. else
  5668. #endif
  5669. {
  5670. const DecalSet* self = (const DecalSet*) tolua_tousertype(tolua_S,1,0);
  5671. #ifndef TOLUA_RELEASE
  5672. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxIndices'", NULL);
  5673. #endif
  5674. {
  5675. unsigned tolua_ret = (unsigned) self->GetMaxIndices();
  5676. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5677. }
  5678. }
  5679. return 1;
  5680. #ifndef TOLUA_RELEASE
  5681. tolua_lerror:
  5682. tolua_error(tolua_S,"#ferror in function 'GetMaxIndices'.",&tolua_err);
  5683. return 0;
  5684. #endif
  5685. }
  5686. #endif //#ifndef TOLUA_DISABLE
  5687. /* method: SetDrawDistance of class Drawable */
  5688. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetDrawDistance00
  5689. static int tolua_Graphics_Drawable_SetDrawDistance00(lua_State* tolua_S)
  5690. {
  5691. #ifndef TOLUA_RELEASE
  5692. tolua_Error tolua_err;
  5693. if (
  5694. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  5695. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5696. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5697. )
  5698. goto tolua_lerror;
  5699. else
  5700. #endif
  5701. {
  5702. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  5703. float distance = ((float) tolua_tonumber(tolua_S,2,0));
  5704. #ifndef TOLUA_RELEASE
  5705. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDrawDistance'", NULL);
  5706. #endif
  5707. {
  5708. self->SetDrawDistance(distance);
  5709. }
  5710. }
  5711. return 0;
  5712. #ifndef TOLUA_RELEASE
  5713. tolua_lerror:
  5714. tolua_error(tolua_S,"#ferror in function 'SetDrawDistance'.",&tolua_err);
  5715. return 0;
  5716. #endif
  5717. }
  5718. #endif //#ifndef TOLUA_DISABLE
  5719. /* method: SetShadowDistance of class Drawable */
  5720. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetShadowDistance00
  5721. static int tolua_Graphics_Drawable_SetShadowDistance00(lua_State* tolua_S)
  5722. {
  5723. #ifndef TOLUA_RELEASE
  5724. tolua_Error tolua_err;
  5725. if (
  5726. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  5727. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5728. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5729. )
  5730. goto tolua_lerror;
  5731. else
  5732. #endif
  5733. {
  5734. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  5735. float distance = ((float) tolua_tonumber(tolua_S,2,0));
  5736. #ifndef TOLUA_RELEASE
  5737. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShadowDistance'", NULL);
  5738. #endif
  5739. {
  5740. self->SetShadowDistance(distance);
  5741. }
  5742. }
  5743. return 0;
  5744. #ifndef TOLUA_RELEASE
  5745. tolua_lerror:
  5746. tolua_error(tolua_S,"#ferror in function 'SetShadowDistance'.",&tolua_err);
  5747. return 0;
  5748. #endif
  5749. }
  5750. #endif //#ifndef TOLUA_DISABLE
  5751. /* method: SetLodBias of class Drawable */
  5752. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetLodBias00
  5753. static int tolua_Graphics_Drawable_SetLodBias00(lua_State* tolua_S)
  5754. {
  5755. #ifndef TOLUA_RELEASE
  5756. tolua_Error tolua_err;
  5757. if (
  5758. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  5759. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5760. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5761. )
  5762. goto tolua_lerror;
  5763. else
  5764. #endif
  5765. {
  5766. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  5767. float bias = ((float) tolua_tonumber(tolua_S,2,0));
  5768. #ifndef TOLUA_RELEASE
  5769. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLodBias'", NULL);
  5770. #endif
  5771. {
  5772. self->SetLodBias(bias);
  5773. }
  5774. }
  5775. return 0;
  5776. #ifndef TOLUA_RELEASE
  5777. tolua_lerror:
  5778. tolua_error(tolua_S,"#ferror in function 'SetLodBias'.",&tolua_err);
  5779. return 0;
  5780. #endif
  5781. }
  5782. #endif //#ifndef TOLUA_DISABLE
  5783. /* method: SetViewMask of class Drawable */
  5784. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetViewMask00
  5785. static int tolua_Graphics_Drawable_SetViewMask00(lua_State* tolua_S)
  5786. {
  5787. #ifndef TOLUA_RELEASE
  5788. tolua_Error tolua_err;
  5789. if (
  5790. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  5791. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5792. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5793. )
  5794. goto tolua_lerror;
  5795. else
  5796. #endif
  5797. {
  5798. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  5799. unsigned mask = ((unsigned) tolua_tonumber(tolua_S,2,0));
  5800. #ifndef TOLUA_RELEASE
  5801. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetViewMask'", NULL);
  5802. #endif
  5803. {
  5804. self->SetViewMask(mask);
  5805. }
  5806. }
  5807. return 0;
  5808. #ifndef TOLUA_RELEASE
  5809. tolua_lerror:
  5810. tolua_error(tolua_S,"#ferror in function 'SetViewMask'.",&tolua_err);
  5811. return 0;
  5812. #endif
  5813. }
  5814. #endif //#ifndef TOLUA_DISABLE
  5815. /* method: SetLightMask of class Drawable */
  5816. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetLightMask00
  5817. static int tolua_Graphics_Drawable_SetLightMask00(lua_State* tolua_S)
  5818. {
  5819. #ifndef TOLUA_RELEASE
  5820. tolua_Error tolua_err;
  5821. if (
  5822. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  5823. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5824. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5825. )
  5826. goto tolua_lerror;
  5827. else
  5828. #endif
  5829. {
  5830. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  5831. unsigned mask = ((unsigned) tolua_tonumber(tolua_S,2,0));
  5832. #ifndef TOLUA_RELEASE
  5833. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLightMask'", NULL);
  5834. #endif
  5835. {
  5836. self->SetLightMask(mask);
  5837. }
  5838. }
  5839. return 0;
  5840. #ifndef TOLUA_RELEASE
  5841. tolua_lerror:
  5842. tolua_error(tolua_S,"#ferror in function 'SetLightMask'.",&tolua_err);
  5843. return 0;
  5844. #endif
  5845. }
  5846. #endif //#ifndef TOLUA_DISABLE
  5847. /* method: SetShadowMask of class Drawable */
  5848. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetShadowMask00
  5849. static int tolua_Graphics_Drawable_SetShadowMask00(lua_State* tolua_S)
  5850. {
  5851. #ifndef TOLUA_RELEASE
  5852. tolua_Error tolua_err;
  5853. if (
  5854. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  5855. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5856. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5857. )
  5858. goto tolua_lerror;
  5859. else
  5860. #endif
  5861. {
  5862. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  5863. unsigned mask = ((unsigned) tolua_tonumber(tolua_S,2,0));
  5864. #ifndef TOLUA_RELEASE
  5865. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShadowMask'", NULL);
  5866. #endif
  5867. {
  5868. self->SetShadowMask(mask);
  5869. }
  5870. }
  5871. return 0;
  5872. #ifndef TOLUA_RELEASE
  5873. tolua_lerror:
  5874. tolua_error(tolua_S,"#ferror in function 'SetShadowMask'.",&tolua_err);
  5875. return 0;
  5876. #endif
  5877. }
  5878. #endif //#ifndef TOLUA_DISABLE
  5879. /* method: SetZoneMask of class Drawable */
  5880. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetZoneMask00
  5881. static int tolua_Graphics_Drawable_SetZoneMask00(lua_State* tolua_S)
  5882. {
  5883. #ifndef TOLUA_RELEASE
  5884. tolua_Error tolua_err;
  5885. if (
  5886. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  5887. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5888. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5889. )
  5890. goto tolua_lerror;
  5891. else
  5892. #endif
  5893. {
  5894. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  5895. unsigned mask = ((unsigned) tolua_tonumber(tolua_S,2,0));
  5896. #ifndef TOLUA_RELEASE
  5897. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetZoneMask'", NULL);
  5898. #endif
  5899. {
  5900. self->SetZoneMask(mask);
  5901. }
  5902. }
  5903. return 0;
  5904. #ifndef TOLUA_RELEASE
  5905. tolua_lerror:
  5906. tolua_error(tolua_S,"#ferror in function 'SetZoneMask'.",&tolua_err);
  5907. return 0;
  5908. #endif
  5909. }
  5910. #endif //#ifndef TOLUA_DISABLE
  5911. /* method: SetMaxLights of class Drawable */
  5912. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetMaxLights00
  5913. static int tolua_Graphics_Drawable_SetMaxLights00(lua_State* tolua_S)
  5914. {
  5915. #ifndef TOLUA_RELEASE
  5916. tolua_Error tolua_err;
  5917. if (
  5918. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  5919. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5920. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5921. )
  5922. goto tolua_lerror;
  5923. else
  5924. #endif
  5925. {
  5926. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  5927. unsigned num = ((unsigned) tolua_tonumber(tolua_S,2,0));
  5928. #ifndef TOLUA_RELEASE
  5929. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxLights'", NULL);
  5930. #endif
  5931. {
  5932. self->SetMaxLights(num);
  5933. }
  5934. }
  5935. return 0;
  5936. #ifndef TOLUA_RELEASE
  5937. tolua_lerror:
  5938. tolua_error(tolua_S,"#ferror in function 'SetMaxLights'.",&tolua_err);
  5939. return 0;
  5940. #endif
  5941. }
  5942. #endif //#ifndef TOLUA_DISABLE
  5943. /* method: SetCastShadows of class Drawable */
  5944. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetCastShadows00
  5945. static int tolua_Graphics_Drawable_SetCastShadows00(lua_State* tolua_S)
  5946. {
  5947. #ifndef TOLUA_RELEASE
  5948. tolua_Error tolua_err;
  5949. if (
  5950. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  5951. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  5952. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5953. )
  5954. goto tolua_lerror;
  5955. else
  5956. #endif
  5957. {
  5958. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  5959. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  5960. #ifndef TOLUA_RELEASE
  5961. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetCastShadows'", NULL);
  5962. #endif
  5963. {
  5964. self->SetCastShadows(enable);
  5965. }
  5966. }
  5967. return 0;
  5968. #ifndef TOLUA_RELEASE
  5969. tolua_lerror:
  5970. tolua_error(tolua_S,"#ferror in function 'SetCastShadows'.",&tolua_err);
  5971. return 0;
  5972. #endif
  5973. }
  5974. #endif //#ifndef TOLUA_DISABLE
  5975. /* method: SetOccluder of class Drawable */
  5976. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetOccluder00
  5977. static int tolua_Graphics_Drawable_SetOccluder00(lua_State* tolua_S)
  5978. {
  5979. #ifndef TOLUA_RELEASE
  5980. tolua_Error tolua_err;
  5981. if (
  5982. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  5983. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  5984. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5985. )
  5986. goto tolua_lerror;
  5987. else
  5988. #endif
  5989. {
  5990. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  5991. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  5992. #ifndef TOLUA_RELEASE
  5993. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOccluder'", NULL);
  5994. #endif
  5995. {
  5996. self->SetOccluder(enable);
  5997. }
  5998. }
  5999. return 0;
  6000. #ifndef TOLUA_RELEASE
  6001. tolua_lerror:
  6002. tolua_error(tolua_S,"#ferror in function 'SetOccluder'.",&tolua_err);
  6003. return 0;
  6004. #endif
  6005. }
  6006. #endif //#ifndef TOLUA_DISABLE
  6007. /* method: SetOccludee of class Drawable */
  6008. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetOccludee00
  6009. static int tolua_Graphics_Drawable_SetOccludee00(lua_State* tolua_S)
  6010. {
  6011. #ifndef TOLUA_RELEASE
  6012. tolua_Error tolua_err;
  6013. if (
  6014. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6015. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  6016. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6017. )
  6018. goto tolua_lerror;
  6019. else
  6020. #endif
  6021. {
  6022. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6023. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  6024. #ifndef TOLUA_RELEASE
  6025. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOccludee'", NULL);
  6026. #endif
  6027. {
  6028. self->SetOccludee(enable);
  6029. }
  6030. }
  6031. return 0;
  6032. #ifndef TOLUA_RELEASE
  6033. tolua_lerror:
  6034. tolua_error(tolua_S,"#ferror in function 'SetOccludee'.",&tolua_err);
  6035. return 0;
  6036. #endif
  6037. }
  6038. #endif //#ifndef TOLUA_DISABLE
  6039. /* method: MarkForUpdate of class Drawable */
  6040. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_MarkForUpdate00
  6041. static int tolua_Graphics_Drawable_MarkForUpdate00(lua_State* tolua_S)
  6042. {
  6043. #ifndef TOLUA_RELEASE
  6044. tolua_Error tolua_err;
  6045. if (
  6046. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6047. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6048. )
  6049. goto tolua_lerror;
  6050. else
  6051. #endif
  6052. {
  6053. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6054. #ifndef TOLUA_RELEASE
  6055. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'MarkForUpdate'", NULL);
  6056. #endif
  6057. {
  6058. self->MarkForUpdate();
  6059. }
  6060. }
  6061. return 0;
  6062. #ifndef TOLUA_RELEASE
  6063. tolua_lerror:
  6064. tolua_error(tolua_S,"#ferror in function 'MarkForUpdate'.",&tolua_err);
  6065. return 0;
  6066. #endif
  6067. }
  6068. #endif //#ifndef TOLUA_DISABLE
  6069. /* method: GetWorldBoundingBox of class Drawable */
  6070. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetWorldBoundingBox00
  6071. static int tolua_Graphics_Drawable_GetWorldBoundingBox00(lua_State* tolua_S)
  6072. {
  6073. #ifndef TOLUA_RELEASE
  6074. tolua_Error tolua_err;
  6075. if (
  6076. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6077. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6078. )
  6079. goto tolua_lerror;
  6080. else
  6081. #endif
  6082. {
  6083. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6084. #ifndef TOLUA_RELEASE
  6085. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWorldBoundingBox'", NULL);
  6086. #endif
  6087. {
  6088. const BoundingBox& tolua_ret = (const BoundingBox&) self->GetWorldBoundingBox();
  6089. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const BoundingBox");
  6090. }
  6091. }
  6092. return 1;
  6093. #ifndef TOLUA_RELEASE
  6094. tolua_lerror:
  6095. tolua_error(tolua_S,"#ferror in function 'GetWorldBoundingBox'.",&tolua_err);
  6096. return 0;
  6097. #endif
  6098. }
  6099. #endif //#ifndef TOLUA_DISABLE
  6100. /* method: GetDrawableFlags of class Drawable */
  6101. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetDrawableFlags00
  6102. static int tolua_Graphics_Drawable_GetDrawableFlags00(lua_State* tolua_S)
  6103. {
  6104. #ifndef TOLUA_RELEASE
  6105. tolua_Error tolua_err;
  6106. if (
  6107. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6108. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6109. )
  6110. goto tolua_lerror;
  6111. else
  6112. #endif
  6113. {
  6114. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6115. #ifndef TOLUA_RELEASE
  6116. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDrawableFlags'", NULL);
  6117. #endif
  6118. {
  6119. unsigned char tolua_ret = (unsigned char) self->GetDrawableFlags();
  6120. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6121. }
  6122. }
  6123. return 1;
  6124. #ifndef TOLUA_RELEASE
  6125. tolua_lerror:
  6126. tolua_error(tolua_S,"#ferror in function 'GetDrawableFlags'.",&tolua_err);
  6127. return 0;
  6128. #endif
  6129. }
  6130. #endif //#ifndef TOLUA_DISABLE
  6131. /* method: GetDrawDistance of class Drawable */
  6132. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetDrawDistance00
  6133. static int tolua_Graphics_Drawable_GetDrawDistance00(lua_State* tolua_S)
  6134. {
  6135. #ifndef TOLUA_RELEASE
  6136. tolua_Error tolua_err;
  6137. if (
  6138. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6139. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6140. )
  6141. goto tolua_lerror;
  6142. else
  6143. #endif
  6144. {
  6145. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6146. #ifndef TOLUA_RELEASE
  6147. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDrawDistance'", NULL);
  6148. #endif
  6149. {
  6150. float tolua_ret = (float) self->GetDrawDistance();
  6151. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6152. }
  6153. }
  6154. return 1;
  6155. #ifndef TOLUA_RELEASE
  6156. tolua_lerror:
  6157. tolua_error(tolua_S,"#ferror in function 'GetDrawDistance'.",&tolua_err);
  6158. return 0;
  6159. #endif
  6160. }
  6161. #endif //#ifndef TOLUA_DISABLE
  6162. /* method: GetShadowDistance of class Drawable */
  6163. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetShadowDistance00
  6164. static int tolua_Graphics_Drawable_GetShadowDistance00(lua_State* tolua_S)
  6165. {
  6166. #ifndef TOLUA_RELEASE
  6167. tolua_Error tolua_err;
  6168. if (
  6169. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6170. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6171. )
  6172. goto tolua_lerror;
  6173. else
  6174. #endif
  6175. {
  6176. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6177. #ifndef TOLUA_RELEASE
  6178. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowDistance'", NULL);
  6179. #endif
  6180. {
  6181. float tolua_ret = (float) self->GetShadowDistance();
  6182. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6183. }
  6184. }
  6185. return 1;
  6186. #ifndef TOLUA_RELEASE
  6187. tolua_lerror:
  6188. tolua_error(tolua_S,"#ferror in function 'GetShadowDistance'.",&tolua_err);
  6189. return 0;
  6190. #endif
  6191. }
  6192. #endif //#ifndef TOLUA_DISABLE
  6193. /* method: GetLodBias of class Drawable */
  6194. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetLodBias00
  6195. static int tolua_Graphics_Drawable_GetLodBias00(lua_State* tolua_S)
  6196. {
  6197. #ifndef TOLUA_RELEASE
  6198. tolua_Error tolua_err;
  6199. if (
  6200. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6201. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6202. )
  6203. goto tolua_lerror;
  6204. else
  6205. #endif
  6206. {
  6207. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6208. #ifndef TOLUA_RELEASE
  6209. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLodBias'", NULL);
  6210. #endif
  6211. {
  6212. float tolua_ret = (float) self->GetLodBias();
  6213. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6214. }
  6215. }
  6216. return 1;
  6217. #ifndef TOLUA_RELEASE
  6218. tolua_lerror:
  6219. tolua_error(tolua_S,"#ferror in function 'GetLodBias'.",&tolua_err);
  6220. return 0;
  6221. #endif
  6222. }
  6223. #endif //#ifndef TOLUA_DISABLE
  6224. /* method: GetViewMask of class Drawable */
  6225. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetViewMask00
  6226. static int tolua_Graphics_Drawable_GetViewMask00(lua_State* tolua_S)
  6227. {
  6228. #ifndef TOLUA_RELEASE
  6229. tolua_Error tolua_err;
  6230. if (
  6231. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6232. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6233. )
  6234. goto tolua_lerror;
  6235. else
  6236. #endif
  6237. {
  6238. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6239. #ifndef TOLUA_RELEASE
  6240. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetViewMask'", NULL);
  6241. #endif
  6242. {
  6243. unsigned tolua_ret = (unsigned) self->GetViewMask();
  6244. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6245. }
  6246. }
  6247. return 1;
  6248. #ifndef TOLUA_RELEASE
  6249. tolua_lerror:
  6250. tolua_error(tolua_S,"#ferror in function 'GetViewMask'.",&tolua_err);
  6251. return 0;
  6252. #endif
  6253. }
  6254. #endif //#ifndef TOLUA_DISABLE
  6255. /* method: GetLightMask of class Drawable */
  6256. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetLightMask00
  6257. static int tolua_Graphics_Drawable_GetLightMask00(lua_State* tolua_S)
  6258. {
  6259. #ifndef TOLUA_RELEASE
  6260. tolua_Error tolua_err;
  6261. if (
  6262. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6263. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6264. )
  6265. goto tolua_lerror;
  6266. else
  6267. #endif
  6268. {
  6269. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6270. #ifndef TOLUA_RELEASE
  6271. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLightMask'", NULL);
  6272. #endif
  6273. {
  6274. unsigned tolua_ret = (unsigned) self->GetLightMask();
  6275. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6276. }
  6277. }
  6278. return 1;
  6279. #ifndef TOLUA_RELEASE
  6280. tolua_lerror:
  6281. tolua_error(tolua_S,"#ferror in function 'GetLightMask'.",&tolua_err);
  6282. return 0;
  6283. #endif
  6284. }
  6285. #endif //#ifndef TOLUA_DISABLE
  6286. /* method: GetShadowMask of class Drawable */
  6287. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetShadowMask00
  6288. static int tolua_Graphics_Drawable_GetShadowMask00(lua_State* tolua_S)
  6289. {
  6290. #ifndef TOLUA_RELEASE
  6291. tolua_Error tolua_err;
  6292. if (
  6293. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6294. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6295. )
  6296. goto tolua_lerror;
  6297. else
  6298. #endif
  6299. {
  6300. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6301. #ifndef TOLUA_RELEASE
  6302. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowMask'", NULL);
  6303. #endif
  6304. {
  6305. unsigned tolua_ret = (unsigned) self->GetShadowMask();
  6306. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6307. }
  6308. }
  6309. return 1;
  6310. #ifndef TOLUA_RELEASE
  6311. tolua_lerror:
  6312. tolua_error(tolua_S,"#ferror in function 'GetShadowMask'.",&tolua_err);
  6313. return 0;
  6314. #endif
  6315. }
  6316. #endif //#ifndef TOLUA_DISABLE
  6317. /* method: GetZoneMask of class Drawable */
  6318. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetZoneMask00
  6319. static int tolua_Graphics_Drawable_GetZoneMask00(lua_State* tolua_S)
  6320. {
  6321. #ifndef TOLUA_RELEASE
  6322. tolua_Error tolua_err;
  6323. if (
  6324. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6325. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6326. )
  6327. goto tolua_lerror;
  6328. else
  6329. #endif
  6330. {
  6331. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6332. #ifndef TOLUA_RELEASE
  6333. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetZoneMask'", NULL);
  6334. #endif
  6335. {
  6336. unsigned tolua_ret = (unsigned) self->GetZoneMask();
  6337. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6338. }
  6339. }
  6340. return 1;
  6341. #ifndef TOLUA_RELEASE
  6342. tolua_lerror:
  6343. tolua_error(tolua_S,"#ferror in function 'GetZoneMask'.",&tolua_err);
  6344. return 0;
  6345. #endif
  6346. }
  6347. #endif //#ifndef TOLUA_DISABLE
  6348. /* method: GetMaxLights of class Drawable */
  6349. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetMaxLights00
  6350. static int tolua_Graphics_Drawable_GetMaxLights00(lua_State* tolua_S)
  6351. {
  6352. #ifndef TOLUA_RELEASE
  6353. tolua_Error tolua_err;
  6354. if (
  6355. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6356. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6357. )
  6358. goto tolua_lerror;
  6359. else
  6360. #endif
  6361. {
  6362. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6363. #ifndef TOLUA_RELEASE
  6364. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxLights'", NULL);
  6365. #endif
  6366. {
  6367. unsigned tolua_ret = (unsigned) self->GetMaxLights();
  6368. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6369. }
  6370. }
  6371. return 1;
  6372. #ifndef TOLUA_RELEASE
  6373. tolua_lerror:
  6374. tolua_error(tolua_S,"#ferror in function 'GetMaxLights'.",&tolua_err);
  6375. return 0;
  6376. #endif
  6377. }
  6378. #endif //#ifndef TOLUA_DISABLE
  6379. /* method: GetCastShadows of class Drawable */
  6380. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetCastShadows00
  6381. static int tolua_Graphics_Drawable_GetCastShadows00(lua_State* tolua_S)
  6382. {
  6383. #ifndef TOLUA_RELEASE
  6384. tolua_Error tolua_err;
  6385. if (
  6386. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6387. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6388. )
  6389. goto tolua_lerror;
  6390. else
  6391. #endif
  6392. {
  6393. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6394. #ifndef TOLUA_RELEASE
  6395. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCastShadows'", NULL);
  6396. #endif
  6397. {
  6398. bool tolua_ret = (bool) self->GetCastShadows();
  6399. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  6400. }
  6401. }
  6402. return 1;
  6403. #ifndef TOLUA_RELEASE
  6404. tolua_lerror:
  6405. tolua_error(tolua_S,"#ferror in function 'GetCastShadows'.",&tolua_err);
  6406. return 0;
  6407. #endif
  6408. }
  6409. #endif //#ifndef TOLUA_DISABLE
  6410. /* method: IsOccluder of class Drawable */
  6411. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_IsOccluder00
  6412. static int tolua_Graphics_Drawable_IsOccluder00(lua_State* tolua_S)
  6413. {
  6414. #ifndef TOLUA_RELEASE
  6415. tolua_Error tolua_err;
  6416. if (
  6417. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6418. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6419. )
  6420. goto tolua_lerror;
  6421. else
  6422. #endif
  6423. {
  6424. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6425. #ifndef TOLUA_RELEASE
  6426. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsOccluder'", NULL);
  6427. #endif
  6428. {
  6429. bool tolua_ret = (bool) self->IsOccluder();
  6430. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  6431. }
  6432. }
  6433. return 1;
  6434. #ifndef TOLUA_RELEASE
  6435. tolua_lerror:
  6436. tolua_error(tolua_S,"#ferror in function 'IsOccluder'.",&tolua_err);
  6437. return 0;
  6438. #endif
  6439. }
  6440. #endif //#ifndef TOLUA_DISABLE
  6441. /* method: IsOccludee of class Drawable */
  6442. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_IsOccludee00
  6443. static int tolua_Graphics_Drawable_IsOccludee00(lua_State* tolua_S)
  6444. {
  6445. #ifndef TOLUA_RELEASE
  6446. tolua_Error tolua_err;
  6447. if (
  6448. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6449. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6450. )
  6451. goto tolua_lerror;
  6452. else
  6453. #endif
  6454. {
  6455. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6456. #ifndef TOLUA_RELEASE
  6457. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsOccludee'", NULL);
  6458. #endif
  6459. {
  6460. bool tolua_ret = (bool) self->IsOccludee();
  6461. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  6462. }
  6463. }
  6464. return 1;
  6465. #ifndef TOLUA_RELEASE
  6466. tolua_lerror:
  6467. tolua_error(tolua_S,"#ferror in function 'IsOccludee'.",&tolua_err);
  6468. return 0;
  6469. #endif
  6470. }
  6471. #endif //#ifndef TOLUA_DISABLE
  6472. /* method: SetZone of class Drawable */
  6473. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetZone00
  6474. static int tolua_Graphics_Drawable_SetZone00(lua_State* tolua_S)
  6475. {
  6476. #ifndef TOLUA_RELEASE
  6477. tolua_Error tolua_err;
  6478. if (
  6479. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6480. !tolua_isusertype(tolua_S,2,"Zone",0,&tolua_err) ||
  6481. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  6482. !tolua_isnoobj(tolua_S,4,&tolua_err)
  6483. )
  6484. goto tolua_lerror;
  6485. else
  6486. #endif
  6487. {
  6488. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6489. Zone* zone = ((Zone*) tolua_tousertype(tolua_S,2,0));
  6490. bool temporary = ((bool) tolua_toboolean(tolua_S,3,false));
  6491. #ifndef TOLUA_RELEASE
  6492. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetZone'", NULL);
  6493. #endif
  6494. {
  6495. self->SetZone(zone,temporary);
  6496. }
  6497. }
  6498. return 0;
  6499. #ifndef TOLUA_RELEASE
  6500. tolua_lerror:
  6501. tolua_error(tolua_S,"#ferror in function 'SetZone'.",&tolua_err);
  6502. return 0;
  6503. #endif
  6504. }
  6505. #endif //#ifndef TOLUA_DISABLE
  6506. /* method: SetSortValue of class Drawable */
  6507. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetSortValue00
  6508. static int tolua_Graphics_Drawable_SetSortValue00(lua_State* tolua_S)
  6509. {
  6510. #ifndef TOLUA_RELEASE
  6511. tolua_Error tolua_err;
  6512. if (
  6513. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6514. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6515. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6516. )
  6517. goto tolua_lerror;
  6518. else
  6519. #endif
  6520. {
  6521. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6522. float value = ((float) tolua_tonumber(tolua_S,2,0));
  6523. #ifndef TOLUA_RELEASE
  6524. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSortValue'", NULL);
  6525. #endif
  6526. {
  6527. self->SetSortValue(value);
  6528. }
  6529. }
  6530. return 0;
  6531. #ifndef TOLUA_RELEASE
  6532. tolua_lerror:
  6533. tolua_error(tolua_S,"#ferror in function 'SetSortValue'.",&tolua_err);
  6534. return 0;
  6535. #endif
  6536. }
  6537. #endif //#ifndef TOLUA_DISABLE
  6538. /* method: SetMinMaxZ of class Drawable */
  6539. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetMinMaxZ00
  6540. static int tolua_Graphics_Drawable_SetMinMaxZ00(lua_State* tolua_S)
  6541. {
  6542. #ifndef TOLUA_RELEASE
  6543. tolua_Error tolua_err;
  6544. if (
  6545. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6546. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6547. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  6548. !tolua_isnoobj(tolua_S,4,&tolua_err)
  6549. )
  6550. goto tolua_lerror;
  6551. else
  6552. #endif
  6553. {
  6554. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6555. float minZ = ((float) tolua_tonumber(tolua_S,2,0));
  6556. float maxZ = ((float) tolua_tonumber(tolua_S,3,0));
  6557. #ifndef TOLUA_RELEASE
  6558. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinMaxZ'", NULL);
  6559. #endif
  6560. {
  6561. self->SetMinMaxZ(minZ,maxZ);
  6562. }
  6563. }
  6564. return 0;
  6565. #ifndef TOLUA_RELEASE
  6566. tolua_lerror:
  6567. tolua_error(tolua_S,"#ferror in function 'SetMinMaxZ'.",&tolua_err);
  6568. return 0;
  6569. #endif
  6570. }
  6571. #endif //#ifndef TOLUA_DISABLE
  6572. /* method: MarkInView of class Drawable */
  6573. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_MarkInView00
  6574. static int tolua_Graphics_Drawable_MarkInView00(lua_State* tolua_S)
  6575. {
  6576. #ifndef TOLUA_RELEASE
  6577. tolua_Error tolua_err;
  6578. if (
  6579. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6580. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const FrameInfo",0,&tolua_err)) ||
  6581. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  6582. !tolua_isnoobj(tolua_S,4,&tolua_err)
  6583. )
  6584. goto tolua_lerror;
  6585. else
  6586. #endif
  6587. {
  6588. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6589. const FrameInfo* frame = ((const FrameInfo*) tolua_tousertype(tolua_S,2,0));
  6590. bool mainView = ((bool) tolua_toboolean(tolua_S,3,true));
  6591. #ifndef TOLUA_RELEASE
  6592. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'MarkInView'", NULL);
  6593. #endif
  6594. {
  6595. self->MarkInView(*frame,mainView);
  6596. }
  6597. }
  6598. return 0;
  6599. #ifndef TOLUA_RELEASE
  6600. tolua_lerror:
  6601. tolua_error(tolua_S,"#ferror in function 'MarkInView'.",&tolua_err);
  6602. return 0;
  6603. #endif
  6604. }
  6605. #endif //#ifndef TOLUA_DISABLE
  6606. /* method: ClearLights of class Drawable */
  6607. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_ClearLights00
  6608. static int tolua_Graphics_Drawable_ClearLights00(lua_State* tolua_S)
  6609. {
  6610. #ifndef TOLUA_RELEASE
  6611. tolua_Error tolua_err;
  6612. if (
  6613. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6614. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6615. )
  6616. goto tolua_lerror;
  6617. else
  6618. #endif
  6619. {
  6620. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6621. #ifndef TOLUA_RELEASE
  6622. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ClearLights'", NULL);
  6623. #endif
  6624. {
  6625. self->ClearLights();
  6626. }
  6627. }
  6628. return 0;
  6629. #ifndef TOLUA_RELEASE
  6630. tolua_lerror:
  6631. tolua_error(tolua_S,"#ferror in function 'ClearLights'.",&tolua_err);
  6632. return 0;
  6633. #endif
  6634. }
  6635. #endif //#ifndef TOLUA_DISABLE
  6636. /* method: AddLight of class Drawable */
  6637. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_AddLight00
  6638. static int tolua_Graphics_Drawable_AddLight00(lua_State* tolua_S)
  6639. {
  6640. #ifndef TOLUA_RELEASE
  6641. tolua_Error tolua_err;
  6642. if (
  6643. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6644. !tolua_isusertype(tolua_S,2,"Light",0,&tolua_err) ||
  6645. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6646. )
  6647. goto tolua_lerror;
  6648. else
  6649. #endif
  6650. {
  6651. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6652. Light* light = ((Light*) tolua_tousertype(tolua_S,2,0));
  6653. #ifndef TOLUA_RELEASE
  6654. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddLight'", NULL);
  6655. #endif
  6656. {
  6657. self->AddLight(light);
  6658. }
  6659. }
  6660. return 0;
  6661. #ifndef TOLUA_RELEASE
  6662. tolua_lerror:
  6663. tolua_error(tolua_S,"#ferror in function 'AddLight'.",&tolua_err);
  6664. return 0;
  6665. #endif
  6666. }
  6667. #endif //#ifndef TOLUA_DISABLE
  6668. /* method: AddVertexLight of class Drawable */
  6669. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_AddVertexLight00
  6670. static int tolua_Graphics_Drawable_AddVertexLight00(lua_State* tolua_S)
  6671. {
  6672. #ifndef TOLUA_RELEASE
  6673. tolua_Error tolua_err;
  6674. if (
  6675. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6676. !tolua_isusertype(tolua_S,2,"Light",0,&tolua_err) ||
  6677. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6678. )
  6679. goto tolua_lerror;
  6680. else
  6681. #endif
  6682. {
  6683. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6684. Light* light = ((Light*) tolua_tousertype(tolua_S,2,0));
  6685. #ifndef TOLUA_RELEASE
  6686. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddVertexLight'", NULL);
  6687. #endif
  6688. {
  6689. self->AddVertexLight(light);
  6690. }
  6691. }
  6692. return 0;
  6693. #ifndef TOLUA_RELEASE
  6694. tolua_lerror:
  6695. tolua_error(tolua_S,"#ferror in function 'AddVertexLight'.",&tolua_err);
  6696. return 0;
  6697. #endif
  6698. }
  6699. #endif //#ifndef TOLUA_DISABLE
  6700. /* method: LimitLights of class Drawable */
  6701. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_LimitLights00
  6702. static int tolua_Graphics_Drawable_LimitLights00(lua_State* tolua_S)
  6703. {
  6704. #ifndef TOLUA_RELEASE
  6705. tolua_Error tolua_err;
  6706. if (
  6707. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6708. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6709. )
  6710. goto tolua_lerror;
  6711. else
  6712. #endif
  6713. {
  6714. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6715. #ifndef TOLUA_RELEASE
  6716. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'LimitLights'", NULL);
  6717. #endif
  6718. {
  6719. self->LimitLights();
  6720. }
  6721. }
  6722. return 0;
  6723. #ifndef TOLUA_RELEASE
  6724. tolua_lerror:
  6725. tolua_error(tolua_S,"#ferror in function 'LimitLights'.",&tolua_err);
  6726. return 0;
  6727. #endif
  6728. }
  6729. #endif //#ifndef TOLUA_DISABLE
  6730. /* method: LimitVertexLights of class Drawable */
  6731. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_LimitVertexLights00
  6732. static int tolua_Graphics_Drawable_LimitVertexLights00(lua_State* tolua_S)
  6733. {
  6734. #ifndef TOLUA_RELEASE
  6735. tolua_Error tolua_err;
  6736. if (
  6737. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6738. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6739. )
  6740. goto tolua_lerror;
  6741. else
  6742. #endif
  6743. {
  6744. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6745. #ifndef TOLUA_RELEASE
  6746. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'LimitVertexLights'", NULL);
  6747. #endif
  6748. {
  6749. self->LimitVertexLights();
  6750. }
  6751. }
  6752. return 0;
  6753. #ifndef TOLUA_RELEASE
  6754. tolua_lerror:
  6755. tolua_error(tolua_S,"#ferror in function 'LimitVertexLights'.",&tolua_err);
  6756. return 0;
  6757. #endif
  6758. }
  6759. #endif //#ifndef TOLUA_DISABLE
  6760. /* method: SetBasePass of class Drawable */
  6761. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_SetBasePass00
  6762. static int tolua_Graphics_Drawable_SetBasePass00(lua_State* tolua_S)
  6763. {
  6764. #ifndef TOLUA_RELEASE
  6765. tolua_Error tolua_err;
  6766. if (
  6767. !tolua_isusertype(tolua_S,1,"Drawable",0,&tolua_err) ||
  6768. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6769. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6770. )
  6771. goto tolua_lerror;
  6772. else
  6773. #endif
  6774. {
  6775. Drawable* self = (Drawable*) tolua_tousertype(tolua_S,1,0);
  6776. unsigned batchIndex = ((unsigned) tolua_tonumber(tolua_S,2,0));
  6777. #ifndef TOLUA_RELEASE
  6778. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetBasePass'", NULL);
  6779. #endif
  6780. {
  6781. self->SetBasePass(batchIndex);
  6782. }
  6783. }
  6784. return 0;
  6785. #ifndef TOLUA_RELEASE
  6786. tolua_lerror:
  6787. tolua_error(tolua_S,"#ferror in function 'SetBasePass'.",&tolua_err);
  6788. return 0;
  6789. #endif
  6790. }
  6791. #endif //#ifndef TOLUA_DISABLE
  6792. /* method: GetOctant of class Drawable */
  6793. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetOctant00
  6794. static int tolua_Graphics_Drawable_GetOctant00(lua_State* tolua_S)
  6795. {
  6796. #ifndef TOLUA_RELEASE
  6797. tolua_Error tolua_err;
  6798. if (
  6799. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6800. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6801. )
  6802. goto tolua_lerror;
  6803. else
  6804. #endif
  6805. {
  6806. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6807. #ifndef TOLUA_RELEASE
  6808. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOctant'", NULL);
  6809. #endif
  6810. {
  6811. Octant* tolua_ret = (Octant*) self->GetOctant();
  6812. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Octant");
  6813. }
  6814. }
  6815. return 1;
  6816. #ifndef TOLUA_RELEASE
  6817. tolua_lerror:
  6818. tolua_error(tolua_S,"#ferror in function 'GetOctant'.",&tolua_err);
  6819. return 0;
  6820. #endif
  6821. }
  6822. #endif //#ifndef TOLUA_DISABLE
  6823. /* method: GetZone of class Drawable */
  6824. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetZone00
  6825. static int tolua_Graphics_Drawable_GetZone00(lua_State* tolua_S)
  6826. {
  6827. #ifndef TOLUA_RELEASE
  6828. tolua_Error tolua_err;
  6829. if (
  6830. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6831. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6832. )
  6833. goto tolua_lerror;
  6834. else
  6835. #endif
  6836. {
  6837. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6838. #ifndef TOLUA_RELEASE
  6839. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetZone'", NULL);
  6840. #endif
  6841. {
  6842. Zone* tolua_ret = (Zone*) self->GetZone();
  6843. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Zone");
  6844. }
  6845. }
  6846. return 1;
  6847. #ifndef TOLUA_RELEASE
  6848. tolua_lerror:
  6849. tolua_error(tolua_S,"#ferror in function 'GetZone'.",&tolua_err);
  6850. return 0;
  6851. #endif
  6852. }
  6853. #endif //#ifndef TOLUA_DISABLE
  6854. /* method: GetLastZone of class Drawable */
  6855. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetLastZone00
  6856. static int tolua_Graphics_Drawable_GetLastZone00(lua_State* tolua_S)
  6857. {
  6858. #ifndef TOLUA_RELEASE
  6859. tolua_Error tolua_err;
  6860. if (
  6861. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6862. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6863. )
  6864. goto tolua_lerror;
  6865. else
  6866. #endif
  6867. {
  6868. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6869. #ifndef TOLUA_RELEASE
  6870. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLastZone'", NULL);
  6871. #endif
  6872. {
  6873. Zone* tolua_ret = (Zone*) self->GetLastZone();
  6874. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Zone");
  6875. }
  6876. }
  6877. return 1;
  6878. #ifndef TOLUA_RELEASE
  6879. tolua_lerror:
  6880. tolua_error(tolua_S,"#ferror in function 'GetLastZone'.",&tolua_err);
  6881. return 0;
  6882. #endif
  6883. }
  6884. #endif //#ifndef TOLUA_DISABLE
  6885. /* method: IsZoneDirty of class Drawable */
  6886. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_IsZoneDirty00
  6887. static int tolua_Graphics_Drawable_IsZoneDirty00(lua_State* tolua_S)
  6888. {
  6889. #ifndef TOLUA_RELEASE
  6890. tolua_Error tolua_err;
  6891. if (
  6892. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6893. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6894. )
  6895. goto tolua_lerror;
  6896. else
  6897. #endif
  6898. {
  6899. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6900. #ifndef TOLUA_RELEASE
  6901. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsZoneDirty'", NULL);
  6902. #endif
  6903. {
  6904. bool tolua_ret = (bool) self->IsZoneDirty();
  6905. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  6906. }
  6907. }
  6908. return 1;
  6909. #ifndef TOLUA_RELEASE
  6910. tolua_lerror:
  6911. tolua_error(tolua_S,"#ferror in function 'IsZoneDirty'.",&tolua_err);
  6912. return 0;
  6913. #endif
  6914. }
  6915. #endif //#ifndef TOLUA_DISABLE
  6916. /* method: GetDistance of class Drawable */
  6917. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetDistance00
  6918. static int tolua_Graphics_Drawable_GetDistance00(lua_State* tolua_S)
  6919. {
  6920. #ifndef TOLUA_RELEASE
  6921. tolua_Error tolua_err;
  6922. if (
  6923. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6924. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6925. )
  6926. goto tolua_lerror;
  6927. else
  6928. #endif
  6929. {
  6930. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6931. #ifndef TOLUA_RELEASE
  6932. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDistance'", NULL);
  6933. #endif
  6934. {
  6935. float tolua_ret = (float) self->GetDistance();
  6936. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6937. }
  6938. }
  6939. return 1;
  6940. #ifndef TOLUA_RELEASE
  6941. tolua_lerror:
  6942. tolua_error(tolua_S,"#ferror in function 'GetDistance'.",&tolua_err);
  6943. return 0;
  6944. #endif
  6945. }
  6946. #endif //#ifndef TOLUA_DISABLE
  6947. /* method: GetLodDistance of class Drawable */
  6948. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetLodDistance00
  6949. static int tolua_Graphics_Drawable_GetLodDistance00(lua_State* tolua_S)
  6950. {
  6951. #ifndef TOLUA_RELEASE
  6952. tolua_Error tolua_err;
  6953. if (
  6954. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6955. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6956. )
  6957. goto tolua_lerror;
  6958. else
  6959. #endif
  6960. {
  6961. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6962. #ifndef TOLUA_RELEASE
  6963. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLodDistance'", NULL);
  6964. #endif
  6965. {
  6966. float tolua_ret = (float) self->GetLodDistance();
  6967. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6968. }
  6969. }
  6970. return 1;
  6971. #ifndef TOLUA_RELEASE
  6972. tolua_lerror:
  6973. tolua_error(tolua_S,"#ferror in function 'GetLodDistance'.",&tolua_err);
  6974. return 0;
  6975. #endif
  6976. }
  6977. #endif //#ifndef TOLUA_DISABLE
  6978. /* method: GetSortValue of class Drawable */
  6979. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetSortValue00
  6980. static int tolua_Graphics_Drawable_GetSortValue00(lua_State* tolua_S)
  6981. {
  6982. #ifndef TOLUA_RELEASE
  6983. tolua_Error tolua_err;
  6984. if (
  6985. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  6986. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6987. )
  6988. goto tolua_lerror;
  6989. else
  6990. #endif
  6991. {
  6992. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  6993. #ifndef TOLUA_RELEASE
  6994. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSortValue'", NULL);
  6995. #endif
  6996. {
  6997. float tolua_ret = (float) self->GetSortValue();
  6998. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6999. }
  7000. }
  7001. return 1;
  7002. #ifndef TOLUA_RELEASE
  7003. tolua_lerror:
  7004. tolua_error(tolua_S,"#ferror in function 'GetSortValue'.",&tolua_err);
  7005. return 0;
  7006. #endif
  7007. }
  7008. #endif //#ifndef TOLUA_DISABLE
  7009. /* method: IsInView of class Drawable */
  7010. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_IsInView00
  7011. static int tolua_Graphics_Drawable_IsInView00(lua_State* tolua_S)
  7012. {
  7013. #ifndef TOLUA_RELEASE
  7014. tolua_Error tolua_err;
  7015. if (
  7016. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  7017. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7018. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7019. )
  7020. goto tolua_lerror;
  7021. else
  7022. #endif
  7023. {
  7024. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  7025. unsigned frameNumber = ((unsigned) tolua_tonumber(tolua_S,2,0));
  7026. #ifndef TOLUA_RELEASE
  7027. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsInView'", NULL);
  7028. #endif
  7029. {
  7030. bool tolua_ret = (bool) self->IsInView(frameNumber);
  7031. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7032. }
  7033. }
  7034. return 1;
  7035. #ifndef TOLUA_RELEASE
  7036. tolua_lerror:
  7037. tolua_error(tolua_S,"#ferror in function 'IsInView'.",&tolua_err);
  7038. return 0;
  7039. #endif
  7040. }
  7041. #endif //#ifndef TOLUA_DISABLE
  7042. /* method: IsInView of class Drawable */
  7043. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_IsInView01
  7044. static int tolua_Graphics_Drawable_IsInView01(lua_State* tolua_S)
  7045. {
  7046. tolua_Error tolua_err;
  7047. if (
  7048. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  7049. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const FrameInfo",0,&tolua_err)) ||
  7050. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  7051. !tolua_isnoobj(tolua_S,4,&tolua_err)
  7052. )
  7053. goto tolua_lerror;
  7054. else
  7055. {
  7056. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  7057. const FrameInfo* frame = ((const FrameInfo*) tolua_tousertype(tolua_S,2,0));
  7058. bool mainView = ((bool) tolua_toboolean(tolua_S,3,true));
  7059. #ifndef TOLUA_RELEASE
  7060. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsInView'", NULL);
  7061. #endif
  7062. {
  7063. bool tolua_ret = (bool) self->IsInView(*frame,mainView);
  7064. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7065. }
  7066. }
  7067. return 1;
  7068. tolua_lerror:
  7069. return tolua_Graphics_Drawable_IsInView00(tolua_S);
  7070. }
  7071. #endif //#ifndef TOLUA_DISABLE
  7072. /* method: HasBasePass of class Drawable */
  7073. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_HasBasePass00
  7074. static int tolua_Graphics_Drawable_HasBasePass00(lua_State* tolua_S)
  7075. {
  7076. #ifndef TOLUA_RELEASE
  7077. tolua_Error tolua_err;
  7078. if (
  7079. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  7080. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7081. !tolua_isnoobj(tolua_S,3,&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. unsigned batchIndex = ((unsigned) tolua_tonumber(tolua_S,2,0));
  7089. #ifndef TOLUA_RELEASE
  7090. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'HasBasePass'", NULL);
  7091. #endif
  7092. {
  7093. bool tolua_ret = (bool) self->HasBasePass(batchIndex);
  7094. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7095. }
  7096. }
  7097. return 1;
  7098. #ifndef TOLUA_RELEASE
  7099. tolua_lerror:
  7100. tolua_error(tolua_S,"#ferror in function 'HasBasePass'.",&tolua_err);
  7101. return 0;
  7102. #endif
  7103. }
  7104. #endif //#ifndef TOLUA_DISABLE
  7105. /* method: GetFirstLight of class Drawable */
  7106. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetFirstLight00
  7107. static int tolua_Graphics_Drawable_GetFirstLight00(lua_State* tolua_S)
  7108. {
  7109. #ifndef TOLUA_RELEASE
  7110. tolua_Error tolua_err;
  7111. if (
  7112. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  7113. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7114. )
  7115. goto tolua_lerror;
  7116. else
  7117. #endif
  7118. {
  7119. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  7120. #ifndef TOLUA_RELEASE
  7121. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFirstLight'", NULL);
  7122. #endif
  7123. {
  7124. Light* tolua_ret = (Light*) self->GetFirstLight();
  7125. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Light");
  7126. }
  7127. }
  7128. return 1;
  7129. #ifndef TOLUA_RELEASE
  7130. tolua_lerror:
  7131. tolua_error(tolua_S,"#ferror in function 'GetFirstLight'.",&tolua_err);
  7132. return 0;
  7133. #endif
  7134. }
  7135. #endif //#ifndef TOLUA_DISABLE
  7136. /* method: GetMinZ of class Drawable */
  7137. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetMinZ00
  7138. static int tolua_Graphics_Drawable_GetMinZ00(lua_State* tolua_S)
  7139. {
  7140. #ifndef TOLUA_RELEASE
  7141. tolua_Error tolua_err;
  7142. if (
  7143. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  7144. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7145. )
  7146. goto tolua_lerror;
  7147. else
  7148. #endif
  7149. {
  7150. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  7151. #ifndef TOLUA_RELEASE
  7152. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinZ'", NULL);
  7153. #endif
  7154. {
  7155. float tolua_ret = (float) self->GetMinZ();
  7156. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7157. }
  7158. }
  7159. return 1;
  7160. #ifndef TOLUA_RELEASE
  7161. tolua_lerror:
  7162. tolua_error(tolua_S,"#ferror in function 'GetMinZ'.",&tolua_err);
  7163. return 0;
  7164. #endif
  7165. }
  7166. #endif //#ifndef TOLUA_DISABLE
  7167. /* method: GetMaxZ of class Drawable */
  7168. #ifndef TOLUA_DISABLE_tolua_Graphics_Drawable_GetMaxZ00
  7169. static int tolua_Graphics_Drawable_GetMaxZ00(lua_State* tolua_S)
  7170. {
  7171. #ifndef TOLUA_RELEASE
  7172. tolua_Error tolua_err;
  7173. if (
  7174. !tolua_isusertype(tolua_S,1,"const Drawable",0,&tolua_err) ||
  7175. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7176. )
  7177. goto tolua_lerror;
  7178. else
  7179. #endif
  7180. {
  7181. const Drawable* self = (const Drawable*) tolua_tousertype(tolua_S,1,0);
  7182. #ifndef TOLUA_RELEASE
  7183. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxZ'", NULL);
  7184. #endif
  7185. {
  7186. float tolua_ret = (float) self->GetMaxZ();
  7187. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7188. }
  7189. }
  7190. return 1;
  7191. #ifndef TOLUA_RELEASE
  7192. tolua_lerror:
  7193. tolua_error(tolua_S,"#ferror in function 'GetMaxZ'.",&tolua_err);
  7194. return 0;
  7195. #endif
  7196. }
  7197. #endif //#ifndef TOLUA_DISABLE
  7198. /* method: SetWindowTitle of class Graphics */
  7199. #ifndef TOLUA_DISABLE_tolua_Graphics_Graphics_SetWindowTitle00
  7200. static int tolua_Graphics_Graphics_SetWindowTitle00(lua_State* tolua_S)
  7201. {
  7202. #ifndef TOLUA_RELEASE
  7203. tolua_Error tolua_err;
  7204. if (
  7205. !tolua_isusertype(tolua_S,1,"Graphics",0,&tolua_err) ||
  7206. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  7207. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7208. )
  7209. goto tolua_lerror;
  7210. else
  7211. #endif
  7212. {
  7213. Graphics* self = (Graphics*) tolua_tousertype(tolua_S,1,0);
  7214. const char* windowTitle = ((const char*) tolua_tostring(tolua_S,2,0));
  7215. #ifndef TOLUA_RELEASE
  7216. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetWindowTitle'", NULL);
  7217. #endif
  7218. {
  7219. self->SetWindowTitle(windowTitle);
  7220. }
  7221. }
  7222. return 0;
  7223. #ifndef TOLUA_RELEASE
  7224. tolua_lerror:
  7225. tolua_error(tolua_S,"#ferror in function 'SetWindowTitle'.",&tolua_err);
  7226. return 0;
  7227. #endif
  7228. }
  7229. #endif //#ifndef TOLUA_DISABLE
  7230. /* method: SetSRGB of class Graphics */
  7231. #ifndef TOLUA_DISABLE_tolua_Graphics_Graphics_SetSRGB00
  7232. static int tolua_Graphics_Graphics_SetSRGB00(lua_State* tolua_S)
  7233. {
  7234. #ifndef TOLUA_RELEASE
  7235. tolua_Error tolua_err;
  7236. if (
  7237. !tolua_isusertype(tolua_S,1,"Graphics",0,&tolua_err) ||
  7238. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  7239. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7240. )
  7241. goto tolua_lerror;
  7242. else
  7243. #endif
  7244. {
  7245. Graphics* self = (Graphics*) tolua_tousertype(tolua_S,1,0);
  7246. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  7247. #ifndef TOLUA_RELEASE
  7248. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSRGB'", NULL);
  7249. #endif
  7250. {
  7251. self->SetSRGB(enable);
  7252. }
  7253. }
  7254. return 0;
  7255. #ifndef TOLUA_RELEASE
  7256. tolua_lerror:
  7257. tolua_error(tolua_S,"#ferror in function 'SetSRGB'.",&tolua_err);
  7258. return 0;
  7259. #endif
  7260. }
  7261. #endif //#ifndef TOLUA_DISABLE
  7262. /* method: ToggleFullscreen of class Graphics */
  7263. #ifndef TOLUA_DISABLE_tolua_Graphics_Graphics_ToggleFullscreen00
  7264. static int tolua_Graphics_Graphics_ToggleFullscreen00(lua_State* tolua_S)
  7265. {
  7266. #ifndef TOLUA_RELEASE
  7267. tolua_Error tolua_err;
  7268. if (
  7269. !tolua_isusertype(tolua_S,1,"Graphics",0,&tolua_err) ||
  7270. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7271. )
  7272. goto tolua_lerror;
  7273. else
  7274. #endif
  7275. {
  7276. Graphics* self = (Graphics*) tolua_tousertype(tolua_S,1,0);
  7277. #ifndef TOLUA_RELEASE
  7278. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ToggleFullscreen'", NULL);
  7279. #endif
  7280. {
  7281. bool tolua_ret = (bool) self->ToggleFullscreen();
  7282. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7283. }
  7284. }
  7285. return 1;
  7286. #ifndef TOLUA_RELEASE
  7287. tolua_lerror:
  7288. tolua_error(tolua_S,"#ferror in function 'ToggleFullscreen'.",&tolua_err);
  7289. return 0;
  7290. #endif
  7291. }
  7292. #endif //#ifndef TOLUA_DISABLE
  7293. /* method: TakeScreenShot of class Graphics */
  7294. #ifndef TOLUA_DISABLE_tolua_Graphics_Graphics_TakeScreenShot00
  7295. static int tolua_Graphics_Graphics_TakeScreenShot00(lua_State* tolua_S)
  7296. {
  7297. #ifndef TOLUA_RELEASE
  7298. tolua_Error tolua_err;
  7299. if (
  7300. !tolua_isusertype(tolua_S,1,"Graphics",0,&tolua_err) ||
  7301. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Image",0,&tolua_err)) ||
  7302. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7303. )
  7304. goto tolua_lerror;
  7305. else
  7306. #endif
  7307. {
  7308. Graphics* self = (Graphics*) tolua_tousertype(tolua_S,1,0);
  7309. Image* destImage = ((Image*) tolua_tousertype(tolua_S,2,0));
  7310. #ifndef TOLUA_RELEASE
  7311. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'TakeScreenShot'", NULL);
  7312. #endif
  7313. {
  7314. bool tolua_ret = (bool) self->TakeScreenShot(*destImage);
  7315. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7316. }
  7317. }
  7318. return 1;
  7319. #ifndef TOLUA_RELEASE
  7320. tolua_lerror:
  7321. tolua_error(tolua_S,"#ferror in function 'TakeScreenShot'.",&tolua_err);
  7322. return 0;
  7323. #endif
  7324. }
  7325. #endif //#ifndef TOLUA_DISABLE
  7326. /* method: IsInitialized of class Graphics */
  7327. #ifndef TOLUA_DISABLE_tolua_Graphics_Graphics_IsInitialized00
  7328. static int tolua_Graphics_Graphics_IsInitialized00(lua_State* tolua_S)
  7329. {
  7330. #ifndef TOLUA_RELEASE
  7331. tolua_Error tolua_err;
  7332. if (
  7333. !tolua_isusertype(tolua_S,1,"const Graphics",0,&tolua_err) ||
  7334. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7335. )
  7336. goto tolua_lerror;
  7337. else
  7338. #endif
  7339. {
  7340. const Graphics* self = (const Graphics*) tolua_tousertype(tolua_S,1,0);
  7341. #ifndef TOLUA_RELEASE
  7342. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsInitialized'", NULL);
  7343. #endif
  7344. {
  7345. bool tolua_ret = (bool) self->IsInitialized();
  7346. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7347. }
  7348. }
  7349. return 1;
  7350. #ifndef TOLUA_RELEASE
  7351. tolua_lerror:
  7352. tolua_error(tolua_S,"#ferror in function 'IsInitialized'.",&tolua_err);
  7353. return 0;
  7354. #endif
  7355. }
  7356. #endif //#ifndef TOLUA_DISABLE
  7357. /* method: GetWidth of class Graphics */
  7358. #ifndef TOLUA_DISABLE_tolua_Graphics_Graphics_GetWidth00
  7359. static int tolua_Graphics_Graphics_GetWidth00(lua_State* tolua_S)
  7360. {
  7361. #ifndef TOLUA_RELEASE
  7362. tolua_Error tolua_err;
  7363. if (
  7364. !tolua_isusertype(tolua_S,1,"const Graphics",0,&tolua_err) ||
  7365. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7366. )
  7367. goto tolua_lerror;
  7368. else
  7369. #endif
  7370. {
  7371. const Graphics* self = (const Graphics*) tolua_tousertype(tolua_S,1,0);
  7372. #ifndef TOLUA_RELEASE
  7373. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWidth'", NULL);
  7374. #endif
  7375. {
  7376. int tolua_ret = (int) self->GetWidth();
  7377. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7378. }
  7379. }
  7380. return 1;
  7381. #ifndef TOLUA_RELEASE
  7382. tolua_lerror:
  7383. tolua_error(tolua_S,"#ferror in function 'GetWidth'.",&tolua_err);
  7384. return 0;
  7385. #endif
  7386. }
  7387. #endif //#ifndef TOLUA_DISABLE
  7388. /* method: GetHeight of class Graphics */
  7389. #ifndef TOLUA_DISABLE_tolua_Graphics_Graphics_GetHeight00
  7390. static int tolua_Graphics_Graphics_GetHeight00(lua_State* tolua_S)
  7391. {
  7392. #ifndef TOLUA_RELEASE
  7393. tolua_Error tolua_err;
  7394. if (
  7395. !tolua_isusertype(tolua_S,1,"const Graphics",0,&tolua_err) ||
  7396. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7397. )
  7398. goto tolua_lerror;
  7399. else
  7400. #endif
  7401. {
  7402. const Graphics* self = (const Graphics*) tolua_tousertype(tolua_S,1,0);
  7403. #ifndef TOLUA_RELEASE
  7404. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHeight'", NULL);
  7405. #endif
  7406. {
  7407. int tolua_ret = (int) self->GetHeight();
  7408. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7409. }
  7410. }
  7411. return 1;
  7412. #ifndef TOLUA_RELEASE
  7413. tolua_lerror:
  7414. tolua_error(tolua_S,"#ferror in function 'GetHeight'.",&tolua_err);
  7415. return 0;
  7416. #endif
  7417. }
  7418. #endif //#ifndef TOLUA_DISABLE
  7419. /* method: GetMultiSample of class Graphics */
  7420. #ifndef TOLUA_DISABLE_tolua_Graphics_Graphics_GetMultiSample00
  7421. static int tolua_Graphics_Graphics_GetMultiSample00(lua_State* tolua_S)
  7422. {
  7423. #ifndef TOLUA_RELEASE
  7424. tolua_Error tolua_err;
  7425. if (
  7426. !tolua_isusertype(tolua_S,1,"const Graphics",0,&tolua_err) ||
  7427. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7428. )
  7429. goto tolua_lerror;
  7430. else
  7431. #endif
  7432. {
  7433. const Graphics* self = (const Graphics*) tolua_tousertype(tolua_S,1,0);
  7434. #ifndef TOLUA_RELEASE
  7435. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMultiSample'", NULL);
  7436. #endif
  7437. {
  7438. int tolua_ret = (int) self->GetMultiSample();
  7439. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7440. }
  7441. }
  7442. return 1;
  7443. #ifndef TOLUA_RELEASE
  7444. tolua_lerror:
  7445. tolua_error(tolua_S,"#ferror in function 'GetMultiSample'.",&tolua_err);
  7446. return 0;
  7447. #endif
  7448. }
  7449. #endif //#ifndef TOLUA_DISABLE
  7450. /* method: GetFullscreen of class Graphics */
  7451. #ifndef TOLUA_DISABLE_tolua_Graphics_Graphics_GetFullscreen00
  7452. static int tolua_Graphics_Graphics_GetFullscreen00(lua_State* tolua_S)
  7453. {
  7454. #ifndef TOLUA_RELEASE
  7455. tolua_Error tolua_err;
  7456. if (
  7457. !tolua_isusertype(tolua_S,1,"const Graphics",0,&tolua_err) ||
  7458. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7459. )
  7460. goto tolua_lerror;
  7461. else
  7462. #endif
  7463. {
  7464. const Graphics* self = (const Graphics*) tolua_tousertype(tolua_S,1,0);
  7465. #ifndef TOLUA_RELEASE
  7466. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFullscreen'", NULL);
  7467. #endif
  7468. {
  7469. bool tolua_ret = (bool) self->GetFullscreen();
  7470. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7471. }
  7472. }
  7473. return 1;
  7474. #ifndef TOLUA_RELEASE
  7475. tolua_lerror:
  7476. tolua_error(tolua_S,"#ferror in function 'GetFullscreen'.",&tolua_err);
  7477. return 0;
  7478. #endif
  7479. }
  7480. #endif //#ifndef TOLUA_DISABLE
  7481. /* method: GetResizable of class Graphics */
  7482. #ifndef TOLUA_DISABLE_tolua_Graphics_Graphics_GetResizable00
  7483. static int tolua_Graphics_Graphics_GetResizable00(lua_State* tolua_S)
  7484. {
  7485. #ifndef TOLUA_RELEASE
  7486. tolua_Error tolua_err;
  7487. if (
  7488. !tolua_isusertype(tolua_S,1,"const Graphics",0,&tolua_err) ||
  7489. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7490. )
  7491. goto tolua_lerror;
  7492. else
  7493. #endif
  7494. {
  7495. const Graphics* self = (const Graphics*) tolua_tousertype(tolua_S,1,0);
  7496. #ifndef TOLUA_RELEASE
  7497. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetResizable'", NULL);
  7498. #endif
  7499. {
  7500. bool tolua_ret = (bool) self->GetResizable();
  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 'GetResizable'.",&tolua_err);
  7508. return 0;
  7509. #endif
  7510. }
  7511. #endif //#ifndef TOLUA_DISABLE
  7512. /* method: GetVSync of class Graphics */
  7513. #ifndef TOLUA_DISABLE_tolua_Graphics_Graphics_GetVSync00
  7514. static int tolua_Graphics_Graphics_GetVSync00(lua_State* tolua_S)
  7515. {
  7516. #ifndef TOLUA_RELEASE
  7517. tolua_Error tolua_err;
  7518. if (
  7519. !tolua_isusertype(tolua_S,1,"const Graphics",0,&tolua_err) ||
  7520. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7521. )
  7522. goto tolua_lerror;
  7523. else
  7524. #endif
  7525. {
  7526. const Graphics* self = (const Graphics*) tolua_tousertype(tolua_S,1,0);
  7527. #ifndef TOLUA_RELEASE
  7528. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetVSync'", NULL);
  7529. #endif
  7530. {
  7531. bool tolua_ret = (bool) self->GetVSync();
  7532. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7533. }
  7534. }
  7535. return 1;
  7536. #ifndef TOLUA_RELEASE
  7537. tolua_lerror:
  7538. tolua_error(tolua_S,"#ferror in function 'GetVSync'.",&tolua_err);
  7539. return 0;
  7540. #endif
  7541. }
  7542. #endif //#ifndef TOLUA_DISABLE
  7543. /* method: GetTripleBuffer of class Graphics */
  7544. #ifndef TOLUA_DISABLE_tolua_Graphics_Graphics_GetTripleBuffer00
  7545. static int tolua_Graphics_Graphics_GetTripleBuffer00(lua_State* tolua_S)
  7546. {
  7547. #ifndef TOLUA_RELEASE
  7548. tolua_Error tolua_err;
  7549. if (
  7550. !tolua_isusertype(tolua_S,1,"const Graphics",0,&tolua_err) ||
  7551. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7552. )
  7553. goto tolua_lerror;
  7554. else
  7555. #endif
  7556. {
  7557. const Graphics* self = (const Graphics*) tolua_tousertype(tolua_S,1,0);
  7558. #ifndef TOLUA_RELEASE
  7559. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTripleBuffer'", NULL);
  7560. #endif
  7561. {
  7562. bool tolua_ret = (bool) self->GetTripleBuffer();
  7563. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7564. }
  7565. }
  7566. return 1;
  7567. #ifndef TOLUA_RELEASE
  7568. tolua_lerror:
  7569. tolua_error(tolua_S,"#ferror in function 'GetTripleBuffer'.",&tolua_err);
  7570. return 0;
  7571. #endif
  7572. }
  7573. #endif //#ifndef TOLUA_DISABLE
  7574. /* method: GetSRGB of class Graphics */
  7575. #ifndef TOLUA_DISABLE_tolua_Graphics_Graphics_GetSRGB00
  7576. static int tolua_Graphics_Graphics_GetSRGB00(lua_State* tolua_S)
  7577. {
  7578. #ifndef TOLUA_RELEASE
  7579. tolua_Error tolua_err;
  7580. if (
  7581. !tolua_isusertype(tolua_S,1,"const Graphics",0,&tolua_err) ||
  7582. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7583. )
  7584. goto tolua_lerror;
  7585. else
  7586. #endif
  7587. {
  7588. const Graphics* self = (const Graphics*) tolua_tousertype(tolua_S,1,0);
  7589. #ifndef TOLUA_RELEASE
  7590. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSRGB'", NULL);
  7591. #endif
  7592. {
  7593. bool tolua_ret = (bool) self->GetSRGB();
  7594. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7595. }
  7596. }
  7597. return 1;
  7598. #ifndef TOLUA_RELEASE
  7599. tolua_lerror:
  7600. tolua_error(tolua_S,"#ferror in function 'GetSRGB'.",&tolua_err);
  7601. return 0;
  7602. #endif
  7603. }
  7604. #endif //#ifndef TOLUA_DISABLE
  7605. /* function: GetGraphics */
  7606. #ifndef TOLUA_DISABLE_tolua_Graphics_GetGraphics00
  7607. static int tolua_Graphics_GetGraphics00(lua_State* tolua_S)
  7608. {
  7609. #ifndef TOLUA_RELEASE
  7610. tolua_Error tolua_err;
  7611. if (
  7612. !tolua_isnoobj(tolua_S,1,&tolua_err)
  7613. )
  7614. goto tolua_lerror;
  7615. else
  7616. #endif
  7617. {
  7618. {
  7619. Graphics* tolua_ret = (Graphics*) GetGraphics();
  7620. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Graphics");
  7621. }
  7622. }
  7623. return 1;
  7624. #ifndef TOLUA_RELEASE
  7625. tolua_lerror:
  7626. tolua_error(tolua_S,"#ferror in function 'GetGraphics'.",&tolua_err);
  7627. return 0;
  7628. #endif
  7629. }
  7630. #endif //#ifndef TOLUA_DISABLE
  7631. /* get function: QUALITY_LOW */
  7632. #ifndef TOLUA_DISABLE_tolua_get_QUALITY_LOW
  7633. static int tolua_get_QUALITY_LOW(lua_State* tolua_S)
  7634. {
  7635. tolua_pushnumber(tolua_S,(lua_Number)QUALITY_LOW);
  7636. return 1;
  7637. }
  7638. #endif //#ifndef TOLUA_DISABLE
  7639. /* get function: QUALITY_MEDIUM */
  7640. #ifndef TOLUA_DISABLE_tolua_get_QUALITY_MEDIUM
  7641. static int tolua_get_QUALITY_MEDIUM(lua_State* tolua_S)
  7642. {
  7643. tolua_pushnumber(tolua_S,(lua_Number)QUALITY_MEDIUM);
  7644. return 1;
  7645. }
  7646. #endif //#ifndef TOLUA_DISABLE
  7647. /* get function: QUALITY_HIGH */
  7648. #ifndef TOLUA_DISABLE_tolua_get_QUALITY_HIGH
  7649. static int tolua_get_QUALITY_HIGH(lua_State* tolua_S)
  7650. {
  7651. tolua_pushnumber(tolua_S,(lua_Number)QUALITY_HIGH);
  7652. return 1;
  7653. }
  7654. #endif //#ifndef TOLUA_DISABLE
  7655. /* get function: QUALITY_MAX */
  7656. #ifndef TOLUA_DISABLE_tolua_get_QUALITY_MAX
  7657. static int tolua_get_QUALITY_MAX(lua_State* tolua_S)
  7658. {
  7659. tolua_pushnumber(tolua_S,(lua_Number)QUALITY_MAX);
  7660. return 1;
  7661. }
  7662. #endif //#ifndef TOLUA_DISABLE
  7663. /* get function: SHADOWQUALITY_LOW_16BIT */
  7664. #ifndef TOLUA_DISABLE_tolua_get_SHADOWQUALITY_LOW_16BIT
  7665. static int tolua_get_SHADOWQUALITY_LOW_16BIT(lua_State* tolua_S)
  7666. {
  7667. tolua_pushnumber(tolua_S,(lua_Number)SHADOWQUALITY_LOW_16BIT);
  7668. return 1;
  7669. }
  7670. #endif //#ifndef TOLUA_DISABLE
  7671. /* get function: SHADOWQUALITY_LOW_24BIT */
  7672. #ifndef TOLUA_DISABLE_tolua_get_SHADOWQUALITY_LOW_24BIT
  7673. static int tolua_get_SHADOWQUALITY_LOW_24BIT(lua_State* tolua_S)
  7674. {
  7675. tolua_pushnumber(tolua_S,(lua_Number)SHADOWQUALITY_LOW_24BIT);
  7676. return 1;
  7677. }
  7678. #endif //#ifndef TOLUA_DISABLE
  7679. /* get function: SHADOWQUALITY_HIGH_16BIT */
  7680. #ifndef TOLUA_DISABLE_tolua_get_SHADOWQUALITY_HIGH_16BIT
  7681. static int tolua_get_SHADOWQUALITY_HIGH_16BIT(lua_State* tolua_S)
  7682. {
  7683. tolua_pushnumber(tolua_S,(lua_Number)SHADOWQUALITY_HIGH_16BIT);
  7684. return 1;
  7685. }
  7686. #endif //#ifndef TOLUA_DISABLE
  7687. /* get function: SHADOWQUALITY_HIGH_24BIT */
  7688. #ifndef TOLUA_DISABLE_tolua_get_SHADOWQUALITY_HIGH_24BIT
  7689. static int tolua_get_SHADOWQUALITY_HIGH_24BIT(lua_State* tolua_S)
  7690. {
  7691. tolua_pushnumber(tolua_S,(lua_Number)SHADOWQUALITY_HIGH_24BIT);
  7692. return 1;
  7693. }
  7694. #endif //#ifndef TOLUA_DISABLE
  7695. /* get function: CLEAR_COLOR */
  7696. #ifndef TOLUA_DISABLE_tolua_get_CLEAR_COLOR
  7697. static int tolua_get_CLEAR_COLOR(lua_State* tolua_S)
  7698. {
  7699. tolua_pushnumber(tolua_S,(lua_Number)CLEAR_COLOR);
  7700. return 1;
  7701. }
  7702. #endif //#ifndef TOLUA_DISABLE
  7703. /* get function: CLEAR_DEPTH */
  7704. #ifndef TOLUA_DISABLE_tolua_get_CLEAR_DEPTH
  7705. static int tolua_get_CLEAR_DEPTH(lua_State* tolua_S)
  7706. {
  7707. tolua_pushnumber(tolua_S,(lua_Number)CLEAR_DEPTH);
  7708. return 1;
  7709. }
  7710. #endif //#ifndef TOLUA_DISABLE
  7711. /* get function: CLEAR_STENCIL */
  7712. #ifndef TOLUA_DISABLE_tolua_get_CLEAR_STENCIL
  7713. static int tolua_get_CLEAR_STENCIL(lua_State* tolua_S)
  7714. {
  7715. tolua_pushnumber(tolua_S,(lua_Number)CLEAR_STENCIL);
  7716. return 1;
  7717. }
  7718. #endif //#ifndef TOLUA_DISABLE
  7719. /* method: SetLightType of class Light */
  7720. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetLightType00
  7721. static int tolua_Graphics_Light_SetLightType00(lua_State* tolua_S)
  7722. {
  7723. #ifndef TOLUA_RELEASE
  7724. tolua_Error tolua_err;
  7725. if (
  7726. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  7727. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7728. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7729. )
  7730. goto tolua_lerror;
  7731. else
  7732. #endif
  7733. {
  7734. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  7735. LightType type = ((LightType) (int) tolua_tonumber(tolua_S,2,0));
  7736. #ifndef TOLUA_RELEASE
  7737. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLightType'", NULL);
  7738. #endif
  7739. {
  7740. self->SetLightType(type);
  7741. }
  7742. }
  7743. return 0;
  7744. #ifndef TOLUA_RELEASE
  7745. tolua_lerror:
  7746. tolua_error(tolua_S,"#ferror in function 'SetLightType'.",&tolua_err);
  7747. return 0;
  7748. #endif
  7749. }
  7750. #endif //#ifndef TOLUA_DISABLE
  7751. /* method: SetPerVertex of class Light */
  7752. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetPerVertex00
  7753. static int tolua_Graphics_Light_SetPerVertex00(lua_State* tolua_S)
  7754. {
  7755. #ifndef TOLUA_RELEASE
  7756. tolua_Error tolua_err;
  7757. if (
  7758. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  7759. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  7760. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7761. )
  7762. goto tolua_lerror;
  7763. else
  7764. #endif
  7765. {
  7766. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  7767. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  7768. #ifndef TOLUA_RELEASE
  7769. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPerVertex'", NULL);
  7770. #endif
  7771. {
  7772. self->SetPerVertex(enable);
  7773. }
  7774. }
  7775. return 0;
  7776. #ifndef TOLUA_RELEASE
  7777. tolua_lerror:
  7778. tolua_error(tolua_S,"#ferror in function 'SetPerVertex'.",&tolua_err);
  7779. return 0;
  7780. #endif
  7781. }
  7782. #endif //#ifndef TOLUA_DISABLE
  7783. /* method: SetColor of class Light */
  7784. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetColor00
  7785. static int tolua_Graphics_Light_SetColor00(lua_State* tolua_S)
  7786. {
  7787. #ifndef TOLUA_RELEASE
  7788. tolua_Error tolua_err;
  7789. if (
  7790. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  7791. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  7792. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7793. )
  7794. goto tolua_lerror;
  7795. else
  7796. #endif
  7797. {
  7798. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  7799. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  7800. #ifndef TOLUA_RELEASE
  7801. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetColor'", NULL);
  7802. #endif
  7803. {
  7804. self->SetColor(*color);
  7805. }
  7806. }
  7807. return 0;
  7808. #ifndef TOLUA_RELEASE
  7809. tolua_lerror:
  7810. tolua_error(tolua_S,"#ferror in function 'SetColor'.",&tolua_err);
  7811. return 0;
  7812. #endif
  7813. }
  7814. #endif //#ifndef TOLUA_DISABLE
  7815. /* method: SetSpecularIntensity of class Light */
  7816. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetSpecularIntensity00
  7817. static int tolua_Graphics_Light_SetSpecularIntensity00(lua_State* tolua_S)
  7818. {
  7819. #ifndef TOLUA_RELEASE
  7820. tolua_Error tolua_err;
  7821. if (
  7822. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  7823. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7824. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7825. )
  7826. goto tolua_lerror;
  7827. else
  7828. #endif
  7829. {
  7830. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  7831. float intensity = ((float) tolua_tonumber(tolua_S,2,0));
  7832. #ifndef TOLUA_RELEASE
  7833. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSpecularIntensity'", NULL);
  7834. #endif
  7835. {
  7836. self->SetSpecularIntensity(intensity);
  7837. }
  7838. }
  7839. return 0;
  7840. #ifndef TOLUA_RELEASE
  7841. tolua_lerror:
  7842. tolua_error(tolua_S,"#ferror in function 'SetSpecularIntensity'.",&tolua_err);
  7843. return 0;
  7844. #endif
  7845. }
  7846. #endif //#ifndef TOLUA_DISABLE
  7847. /* method: SetRange of class Light */
  7848. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetRange00
  7849. static int tolua_Graphics_Light_SetRange00(lua_State* tolua_S)
  7850. {
  7851. #ifndef TOLUA_RELEASE
  7852. tolua_Error tolua_err;
  7853. if (
  7854. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  7855. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7856. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7857. )
  7858. goto tolua_lerror;
  7859. else
  7860. #endif
  7861. {
  7862. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  7863. float range = ((float) tolua_tonumber(tolua_S,2,0));
  7864. #ifndef TOLUA_RELEASE
  7865. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRange'", NULL);
  7866. #endif
  7867. {
  7868. self->SetRange(range);
  7869. }
  7870. }
  7871. return 0;
  7872. #ifndef TOLUA_RELEASE
  7873. tolua_lerror:
  7874. tolua_error(tolua_S,"#ferror in function 'SetRange'.",&tolua_err);
  7875. return 0;
  7876. #endif
  7877. }
  7878. #endif //#ifndef TOLUA_DISABLE
  7879. /* method: SetFov of class Light */
  7880. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetFov00
  7881. static int tolua_Graphics_Light_SetFov00(lua_State* tolua_S)
  7882. {
  7883. #ifndef TOLUA_RELEASE
  7884. tolua_Error tolua_err;
  7885. if (
  7886. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  7887. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7888. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7889. )
  7890. goto tolua_lerror;
  7891. else
  7892. #endif
  7893. {
  7894. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  7895. float fov = ((float) tolua_tonumber(tolua_S,2,0));
  7896. #ifndef TOLUA_RELEASE
  7897. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFov'", NULL);
  7898. #endif
  7899. {
  7900. self->SetFov(fov);
  7901. }
  7902. }
  7903. return 0;
  7904. #ifndef TOLUA_RELEASE
  7905. tolua_lerror:
  7906. tolua_error(tolua_S,"#ferror in function 'SetFov'.",&tolua_err);
  7907. return 0;
  7908. #endif
  7909. }
  7910. #endif //#ifndef TOLUA_DISABLE
  7911. /* method: SetAspectRatio of class Light */
  7912. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetAspectRatio00
  7913. static int tolua_Graphics_Light_SetAspectRatio00(lua_State* tolua_S)
  7914. {
  7915. #ifndef TOLUA_RELEASE
  7916. tolua_Error tolua_err;
  7917. if (
  7918. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  7919. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7920. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7921. )
  7922. goto tolua_lerror;
  7923. else
  7924. #endif
  7925. {
  7926. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  7927. float aspectRatio = ((float) tolua_tonumber(tolua_S,2,0));
  7928. #ifndef TOLUA_RELEASE
  7929. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAspectRatio'", NULL);
  7930. #endif
  7931. {
  7932. self->SetAspectRatio(aspectRatio);
  7933. }
  7934. }
  7935. return 0;
  7936. #ifndef TOLUA_RELEASE
  7937. tolua_lerror:
  7938. tolua_error(tolua_S,"#ferror in function 'SetAspectRatio'.",&tolua_err);
  7939. return 0;
  7940. #endif
  7941. }
  7942. #endif //#ifndef TOLUA_DISABLE
  7943. /* method: SetFadeDistance of class Light */
  7944. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetFadeDistance00
  7945. static int tolua_Graphics_Light_SetFadeDistance00(lua_State* tolua_S)
  7946. {
  7947. #ifndef TOLUA_RELEASE
  7948. tolua_Error tolua_err;
  7949. if (
  7950. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  7951. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7952. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7953. )
  7954. goto tolua_lerror;
  7955. else
  7956. #endif
  7957. {
  7958. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  7959. float distance = ((float) tolua_tonumber(tolua_S,2,0));
  7960. #ifndef TOLUA_RELEASE
  7961. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFadeDistance'", NULL);
  7962. #endif
  7963. {
  7964. self->SetFadeDistance(distance);
  7965. }
  7966. }
  7967. return 0;
  7968. #ifndef TOLUA_RELEASE
  7969. tolua_lerror:
  7970. tolua_error(tolua_S,"#ferror in function 'SetFadeDistance'.",&tolua_err);
  7971. return 0;
  7972. #endif
  7973. }
  7974. #endif //#ifndef TOLUA_DISABLE
  7975. /* method: SetShadowFadeDistance of class Light */
  7976. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetShadowFadeDistance00
  7977. static int tolua_Graphics_Light_SetShadowFadeDistance00(lua_State* tolua_S)
  7978. {
  7979. #ifndef TOLUA_RELEASE
  7980. tolua_Error tolua_err;
  7981. if (
  7982. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  7983. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7984. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7985. )
  7986. goto tolua_lerror;
  7987. else
  7988. #endif
  7989. {
  7990. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  7991. float distance = ((float) tolua_tonumber(tolua_S,2,0));
  7992. #ifndef TOLUA_RELEASE
  7993. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShadowFadeDistance'", NULL);
  7994. #endif
  7995. {
  7996. self->SetShadowFadeDistance(distance);
  7997. }
  7998. }
  7999. return 0;
  8000. #ifndef TOLUA_RELEASE
  8001. tolua_lerror:
  8002. tolua_error(tolua_S,"#ferror in function 'SetShadowFadeDistance'.",&tolua_err);
  8003. return 0;
  8004. #endif
  8005. }
  8006. #endif //#ifndef TOLUA_DISABLE
  8007. /* method: SetShadowBias of class Light */
  8008. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetShadowBias00
  8009. static int tolua_Graphics_Light_SetShadowBias00(lua_State* tolua_S)
  8010. {
  8011. #ifndef TOLUA_RELEASE
  8012. tolua_Error tolua_err;
  8013. if (
  8014. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  8015. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const BiasParameters",0,&tolua_err)) ||
  8016. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8017. )
  8018. goto tolua_lerror;
  8019. else
  8020. #endif
  8021. {
  8022. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  8023. const BiasParameters* parameters = ((const BiasParameters*) tolua_tousertype(tolua_S,2,0));
  8024. #ifndef TOLUA_RELEASE
  8025. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShadowBias'", NULL);
  8026. #endif
  8027. {
  8028. self->SetShadowBias(*parameters);
  8029. }
  8030. }
  8031. return 0;
  8032. #ifndef TOLUA_RELEASE
  8033. tolua_lerror:
  8034. tolua_error(tolua_S,"#ferror in function 'SetShadowBias'.",&tolua_err);
  8035. return 0;
  8036. #endif
  8037. }
  8038. #endif //#ifndef TOLUA_DISABLE
  8039. /* method: SetShadowCascade of class Light */
  8040. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetShadowCascade00
  8041. static int tolua_Graphics_Light_SetShadowCascade00(lua_State* tolua_S)
  8042. {
  8043. #ifndef TOLUA_RELEASE
  8044. tolua_Error tolua_err;
  8045. if (
  8046. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  8047. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const CascadeParameters",0,&tolua_err)) ||
  8048. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8049. )
  8050. goto tolua_lerror;
  8051. else
  8052. #endif
  8053. {
  8054. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  8055. const CascadeParameters* parameters = ((const CascadeParameters*) tolua_tousertype(tolua_S,2,0));
  8056. #ifndef TOLUA_RELEASE
  8057. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShadowCascade'", NULL);
  8058. #endif
  8059. {
  8060. self->SetShadowCascade(*parameters);
  8061. }
  8062. }
  8063. return 0;
  8064. #ifndef TOLUA_RELEASE
  8065. tolua_lerror:
  8066. tolua_error(tolua_S,"#ferror in function 'SetShadowCascade'.",&tolua_err);
  8067. return 0;
  8068. #endif
  8069. }
  8070. #endif //#ifndef TOLUA_DISABLE
  8071. /* method: SetShadowFocus of class Light */
  8072. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetShadowFocus00
  8073. static int tolua_Graphics_Light_SetShadowFocus00(lua_State* tolua_S)
  8074. {
  8075. #ifndef TOLUA_RELEASE
  8076. tolua_Error tolua_err;
  8077. if (
  8078. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  8079. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const FocusParameters",0,&tolua_err)) ||
  8080. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8081. )
  8082. goto tolua_lerror;
  8083. else
  8084. #endif
  8085. {
  8086. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  8087. const FocusParameters* parameters = ((const FocusParameters*) tolua_tousertype(tolua_S,2,0));
  8088. #ifndef TOLUA_RELEASE
  8089. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShadowFocus'", NULL);
  8090. #endif
  8091. {
  8092. self->SetShadowFocus(*parameters);
  8093. }
  8094. }
  8095. return 0;
  8096. #ifndef TOLUA_RELEASE
  8097. tolua_lerror:
  8098. tolua_error(tolua_S,"#ferror in function 'SetShadowFocus'.",&tolua_err);
  8099. return 0;
  8100. #endif
  8101. }
  8102. #endif //#ifndef TOLUA_DISABLE
  8103. /* method: SetShadowIntensity of class Light */
  8104. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetShadowIntensity00
  8105. static int tolua_Graphics_Light_SetShadowIntensity00(lua_State* tolua_S)
  8106. {
  8107. #ifndef TOLUA_RELEASE
  8108. tolua_Error tolua_err;
  8109. if (
  8110. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  8111. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8112. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8113. )
  8114. goto tolua_lerror;
  8115. else
  8116. #endif
  8117. {
  8118. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  8119. float intensity = ((float) tolua_tonumber(tolua_S,2,0));
  8120. #ifndef TOLUA_RELEASE
  8121. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShadowIntensity'", NULL);
  8122. #endif
  8123. {
  8124. self->SetShadowIntensity(intensity);
  8125. }
  8126. }
  8127. return 0;
  8128. #ifndef TOLUA_RELEASE
  8129. tolua_lerror:
  8130. tolua_error(tolua_S,"#ferror in function 'SetShadowIntensity'.",&tolua_err);
  8131. return 0;
  8132. #endif
  8133. }
  8134. #endif //#ifndef TOLUA_DISABLE
  8135. /* method: SetShadowResolution of class Light */
  8136. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetShadowResolution00
  8137. static int tolua_Graphics_Light_SetShadowResolution00(lua_State* tolua_S)
  8138. {
  8139. #ifndef TOLUA_RELEASE
  8140. tolua_Error tolua_err;
  8141. if (
  8142. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  8143. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8144. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8145. )
  8146. goto tolua_lerror;
  8147. else
  8148. #endif
  8149. {
  8150. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  8151. float resolution = ((float) tolua_tonumber(tolua_S,2,0));
  8152. #ifndef TOLUA_RELEASE
  8153. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShadowResolution'", NULL);
  8154. #endif
  8155. {
  8156. self->SetShadowResolution(resolution);
  8157. }
  8158. }
  8159. return 0;
  8160. #ifndef TOLUA_RELEASE
  8161. tolua_lerror:
  8162. tolua_error(tolua_S,"#ferror in function 'SetShadowResolution'.",&tolua_err);
  8163. return 0;
  8164. #endif
  8165. }
  8166. #endif //#ifndef TOLUA_DISABLE
  8167. /* method: SetShadowNearFarRatio of class Light */
  8168. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetShadowNearFarRatio00
  8169. static int tolua_Graphics_Light_SetShadowNearFarRatio00(lua_State* tolua_S)
  8170. {
  8171. #ifndef TOLUA_RELEASE
  8172. tolua_Error tolua_err;
  8173. if (
  8174. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  8175. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8176. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8177. )
  8178. goto tolua_lerror;
  8179. else
  8180. #endif
  8181. {
  8182. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  8183. float nearFarRatio = ((float) tolua_tonumber(tolua_S,2,0));
  8184. #ifndef TOLUA_RELEASE
  8185. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShadowNearFarRatio'", NULL);
  8186. #endif
  8187. {
  8188. self->SetShadowNearFarRatio(nearFarRatio);
  8189. }
  8190. }
  8191. return 0;
  8192. #ifndef TOLUA_RELEASE
  8193. tolua_lerror:
  8194. tolua_error(tolua_S,"#ferror in function 'SetShadowNearFarRatio'.",&tolua_err);
  8195. return 0;
  8196. #endif
  8197. }
  8198. #endif //#ifndef TOLUA_DISABLE
  8199. /* method: SetRampTexture of class Light */
  8200. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetRampTexture00
  8201. static int tolua_Graphics_Light_SetRampTexture00(lua_State* tolua_S)
  8202. {
  8203. #ifndef TOLUA_RELEASE
  8204. tolua_Error tolua_err;
  8205. if (
  8206. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  8207. !tolua_isusertype(tolua_S,2,"Texture",0,&tolua_err) ||
  8208. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8209. )
  8210. goto tolua_lerror;
  8211. else
  8212. #endif
  8213. {
  8214. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  8215. Texture* texture = ((Texture*) tolua_tousertype(tolua_S,2,0));
  8216. #ifndef TOLUA_RELEASE
  8217. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRampTexture'", NULL);
  8218. #endif
  8219. {
  8220. self->SetRampTexture(texture);
  8221. }
  8222. }
  8223. return 0;
  8224. #ifndef TOLUA_RELEASE
  8225. tolua_lerror:
  8226. tolua_error(tolua_S,"#ferror in function 'SetRampTexture'.",&tolua_err);
  8227. return 0;
  8228. #endif
  8229. }
  8230. #endif //#ifndef TOLUA_DISABLE
  8231. /* method: SetShapeTexture of class Light */
  8232. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_SetShapeTexture00
  8233. static int tolua_Graphics_Light_SetShapeTexture00(lua_State* tolua_S)
  8234. {
  8235. #ifndef TOLUA_RELEASE
  8236. tolua_Error tolua_err;
  8237. if (
  8238. !tolua_isusertype(tolua_S,1,"Light",0,&tolua_err) ||
  8239. !tolua_isusertype(tolua_S,2,"Texture",0,&tolua_err) ||
  8240. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8241. )
  8242. goto tolua_lerror;
  8243. else
  8244. #endif
  8245. {
  8246. Light* self = (Light*) tolua_tousertype(tolua_S,1,0);
  8247. Texture* texture = ((Texture*) tolua_tousertype(tolua_S,2,0));
  8248. #ifndef TOLUA_RELEASE
  8249. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShapeTexture'", NULL);
  8250. #endif
  8251. {
  8252. self->SetShapeTexture(texture);
  8253. }
  8254. }
  8255. return 0;
  8256. #ifndef TOLUA_RELEASE
  8257. tolua_lerror:
  8258. tolua_error(tolua_S,"#ferror in function 'SetShapeTexture'.",&tolua_err);
  8259. return 0;
  8260. #endif
  8261. }
  8262. #endif //#ifndef TOLUA_DISABLE
  8263. /* method: GetLightType of class Light */
  8264. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetLightType00
  8265. static int tolua_Graphics_Light_GetLightType00(lua_State* tolua_S)
  8266. {
  8267. #ifndef TOLUA_RELEASE
  8268. tolua_Error tolua_err;
  8269. if (
  8270. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8271. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8272. )
  8273. goto tolua_lerror;
  8274. else
  8275. #endif
  8276. {
  8277. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8278. #ifndef TOLUA_RELEASE
  8279. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLightType'", NULL);
  8280. #endif
  8281. {
  8282. LightType tolua_ret = (LightType) self->GetLightType();
  8283. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8284. }
  8285. }
  8286. return 1;
  8287. #ifndef TOLUA_RELEASE
  8288. tolua_lerror:
  8289. tolua_error(tolua_S,"#ferror in function 'GetLightType'.",&tolua_err);
  8290. return 0;
  8291. #endif
  8292. }
  8293. #endif //#ifndef TOLUA_DISABLE
  8294. /* method: GetPerVertex of class Light */
  8295. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetPerVertex00
  8296. static int tolua_Graphics_Light_GetPerVertex00(lua_State* tolua_S)
  8297. {
  8298. #ifndef TOLUA_RELEASE
  8299. tolua_Error tolua_err;
  8300. if (
  8301. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8302. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8303. )
  8304. goto tolua_lerror;
  8305. else
  8306. #endif
  8307. {
  8308. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8309. #ifndef TOLUA_RELEASE
  8310. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPerVertex'", NULL);
  8311. #endif
  8312. {
  8313. bool tolua_ret = (bool) self->GetPerVertex();
  8314. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  8315. }
  8316. }
  8317. return 1;
  8318. #ifndef TOLUA_RELEASE
  8319. tolua_lerror:
  8320. tolua_error(tolua_S,"#ferror in function 'GetPerVertex'.",&tolua_err);
  8321. return 0;
  8322. #endif
  8323. }
  8324. #endif //#ifndef TOLUA_DISABLE
  8325. /* method: GetColor of class Light */
  8326. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetColor00
  8327. static int tolua_Graphics_Light_GetColor00(lua_State* tolua_S)
  8328. {
  8329. #ifndef TOLUA_RELEASE
  8330. tolua_Error tolua_err;
  8331. if (
  8332. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8333. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8334. )
  8335. goto tolua_lerror;
  8336. else
  8337. #endif
  8338. {
  8339. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8340. #ifndef TOLUA_RELEASE
  8341. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetColor'", NULL);
  8342. #endif
  8343. {
  8344. const Color& tolua_ret = (const Color&) self->GetColor();
  8345. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  8346. }
  8347. }
  8348. return 1;
  8349. #ifndef TOLUA_RELEASE
  8350. tolua_lerror:
  8351. tolua_error(tolua_S,"#ferror in function 'GetColor'.",&tolua_err);
  8352. return 0;
  8353. #endif
  8354. }
  8355. #endif //#ifndef TOLUA_DISABLE
  8356. /* method: GetSpecularIntensity of class Light */
  8357. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetSpecularIntensity00
  8358. static int tolua_Graphics_Light_GetSpecularIntensity00(lua_State* tolua_S)
  8359. {
  8360. #ifndef TOLUA_RELEASE
  8361. tolua_Error tolua_err;
  8362. if (
  8363. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8364. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8365. )
  8366. goto tolua_lerror;
  8367. else
  8368. #endif
  8369. {
  8370. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8371. #ifndef TOLUA_RELEASE
  8372. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSpecularIntensity'", NULL);
  8373. #endif
  8374. {
  8375. float tolua_ret = (float) self->GetSpecularIntensity();
  8376. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8377. }
  8378. }
  8379. return 1;
  8380. #ifndef TOLUA_RELEASE
  8381. tolua_lerror:
  8382. tolua_error(tolua_S,"#ferror in function 'GetSpecularIntensity'.",&tolua_err);
  8383. return 0;
  8384. #endif
  8385. }
  8386. #endif //#ifndef TOLUA_DISABLE
  8387. /* method: GetRange of class Light */
  8388. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetRange00
  8389. static int tolua_Graphics_Light_GetRange00(lua_State* tolua_S)
  8390. {
  8391. #ifndef TOLUA_RELEASE
  8392. tolua_Error tolua_err;
  8393. if (
  8394. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8395. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8396. )
  8397. goto tolua_lerror;
  8398. else
  8399. #endif
  8400. {
  8401. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8402. #ifndef TOLUA_RELEASE
  8403. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRange'", NULL);
  8404. #endif
  8405. {
  8406. float tolua_ret = (float) self->GetRange();
  8407. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8408. }
  8409. }
  8410. return 1;
  8411. #ifndef TOLUA_RELEASE
  8412. tolua_lerror:
  8413. tolua_error(tolua_S,"#ferror in function 'GetRange'.",&tolua_err);
  8414. return 0;
  8415. #endif
  8416. }
  8417. #endif //#ifndef TOLUA_DISABLE
  8418. /* method: GetFov of class Light */
  8419. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetFov00
  8420. static int tolua_Graphics_Light_GetFov00(lua_State* tolua_S)
  8421. {
  8422. #ifndef TOLUA_RELEASE
  8423. tolua_Error tolua_err;
  8424. if (
  8425. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8426. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8427. )
  8428. goto tolua_lerror;
  8429. else
  8430. #endif
  8431. {
  8432. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8433. #ifndef TOLUA_RELEASE
  8434. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFov'", NULL);
  8435. #endif
  8436. {
  8437. float tolua_ret = (float) self->GetFov();
  8438. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8439. }
  8440. }
  8441. return 1;
  8442. #ifndef TOLUA_RELEASE
  8443. tolua_lerror:
  8444. tolua_error(tolua_S,"#ferror in function 'GetFov'.",&tolua_err);
  8445. return 0;
  8446. #endif
  8447. }
  8448. #endif //#ifndef TOLUA_DISABLE
  8449. /* method: GetAspectRatio of class Light */
  8450. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetAspectRatio00
  8451. static int tolua_Graphics_Light_GetAspectRatio00(lua_State* tolua_S)
  8452. {
  8453. #ifndef TOLUA_RELEASE
  8454. tolua_Error tolua_err;
  8455. if (
  8456. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8457. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8458. )
  8459. goto tolua_lerror;
  8460. else
  8461. #endif
  8462. {
  8463. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8464. #ifndef TOLUA_RELEASE
  8465. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAspectRatio'", NULL);
  8466. #endif
  8467. {
  8468. float tolua_ret = (float) self->GetAspectRatio();
  8469. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8470. }
  8471. }
  8472. return 1;
  8473. #ifndef TOLUA_RELEASE
  8474. tolua_lerror:
  8475. tolua_error(tolua_S,"#ferror in function 'GetAspectRatio'.",&tolua_err);
  8476. return 0;
  8477. #endif
  8478. }
  8479. #endif //#ifndef TOLUA_DISABLE
  8480. /* method: GetFadeDistance of class Light */
  8481. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetFadeDistance00
  8482. static int tolua_Graphics_Light_GetFadeDistance00(lua_State* tolua_S)
  8483. {
  8484. #ifndef TOLUA_RELEASE
  8485. tolua_Error tolua_err;
  8486. if (
  8487. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8488. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8489. )
  8490. goto tolua_lerror;
  8491. else
  8492. #endif
  8493. {
  8494. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8495. #ifndef TOLUA_RELEASE
  8496. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFadeDistance'", NULL);
  8497. #endif
  8498. {
  8499. float tolua_ret = (float) self->GetFadeDistance();
  8500. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8501. }
  8502. }
  8503. return 1;
  8504. #ifndef TOLUA_RELEASE
  8505. tolua_lerror:
  8506. tolua_error(tolua_S,"#ferror in function 'GetFadeDistance'.",&tolua_err);
  8507. return 0;
  8508. #endif
  8509. }
  8510. #endif //#ifndef TOLUA_DISABLE
  8511. /* method: GetShadowFadeDistance of class Light */
  8512. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetShadowFadeDistance00
  8513. static int tolua_Graphics_Light_GetShadowFadeDistance00(lua_State* tolua_S)
  8514. {
  8515. #ifndef TOLUA_RELEASE
  8516. tolua_Error tolua_err;
  8517. if (
  8518. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8519. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8520. )
  8521. goto tolua_lerror;
  8522. else
  8523. #endif
  8524. {
  8525. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8526. #ifndef TOLUA_RELEASE
  8527. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowFadeDistance'", NULL);
  8528. #endif
  8529. {
  8530. float tolua_ret = (float) self->GetShadowFadeDistance();
  8531. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8532. }
  8533. }
  8534. return 1;
  8535. #ifndef TOLUA_RELEASE
  8536. tolua_lerror:
  8537. tolua_error(tolua_S,"#ferror in function 'GetShadowFadeDistance'.",&tolua_err);
  8538. return 0;
  8539. #endif
  8540. }
  8541. #endif //#ifndef TOLUA_DISABLE
  8542. /* method: GetShadowBias of class Light */
  8543. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetShadowBias00
  8544. static int tolua_Graphics_Light_GetShadowBias00(lua_State* tolua_S)
  8545. {
  8546. #ifndef TOLUA_RELEASE
  8547. tolua_Error tolua_err;
  8548. if (
  8549. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8550. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8551. )
  8552. goto tolua_lerror;
  8553. else
  8554. #endif
  8555. {
  8556. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8557. #ifndef TOLUA_RELEASE
  8558. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowBias'", NULL);
  8559. #endif
  8560. {
  8561. const BiasParameters& tolua_ret = (const BiasParameters&) self->GetShadowBias();
  8562. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const BiasParameters");
  8563. }
  8564. }
  8565. return 1;
  8566. #ifndef TOLUA_RELEASE
  8567. tolua_lerror:
  8568. tolua_error(tolua_S,"#ferror in function 'GetShadowBias'.",&tolua_err);
  8569. return 0;
  8570. #endif
  8571. }
  8572. #endif //#ifndef TOLUA_DISABLE
  8573. /* method: GetShadowCascade of class Light */
  8574. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetShadowCascade00
  8575. static int tolua_Graphics_Light_GetShadowCascade00(lua_State* tolua_S)
  8576. {
  8577. #ifndef TOLUA_RELEASE
  8578. tolua_Error tolua_err;
  8579. if (
  8580. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8581. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8582. )
  8583. goto tolua_lerror;
  8584. else
  8585. #endif
  8586. {
  8587. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8588. #ifndef TOLUA_RELEASE
  8589. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowCascade'", NULL);
  8590. #endif
  8591. {
  8592. const CascadeParameters& tolua_ret = (const CascadeParameters&) self->GetShadowCascade();
  8593. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const CascadeParameters");
  8594. }
  8595. }
  8596. return 1;
  8597. #ifndef TOLUA_RELEASE
  8598. tolua_lerror:
  8599. tolua_error(tolua_S,"#ferror in function 'GetShadowCascade'.",&tolua_err);
  8600. return 0;
  8601. #endif
  8602. }
  8603. #endif //#ifndef TOLUA_DISABLE
  8604. /* method: GetShadowFocus of class Light */
  8605. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetShadowFocus00
  8606. static int tolua_Graphics_Light_GetShadowFocus00(lua_State* tolua_S)
  8607. {
  8608. #ifndef TOLUA_RELEASE
  8609. tolua_Error tolua_err;
  8610. if (
  8611. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8612. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8613. )
  8614. goto tolua_lerror;
  8615. else
  8616. #endif
  8617. {
  8618. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8619. #ifndef TOLUA_RELEASE
  8620. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowFocus'", NULL);
  8621. #endif
  8622. {
  8623. const FocusParameters& tolua_ret = (const FocusParameters&) self->GetShadowFocus();
  8624. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const FocusParameters");
  8625. }
  8626. }
  8627. return 1;
  8628. #ifndef TOLUA_RELEASE
  8629. tolua_lerror:
  8630. tolua_error(tolua_S,"#ferror in function 'GetShadowFocus'.",&tolua_err);
  8631. return 0;
  8632. #endif
  8633. }
  8634. #endif //#ifndef TOLUA_DISABLE
  8635. /* method: GetShadowIntensity of class Light */
  8636. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetShadowIntensity00
  8637. static int tolua_Graphics_Light_GetShadowIntensity00(lua_State* tolua_S)
  8638. {
  8639. #ifndef TOLUA_RELEASE
  8640. tolua_Error tolua_err;
  8641. if (
  8642. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8643. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8644. )
  8645. goto tolua_lerror;
  8646. else
  8647. #endif
  8648. {
  8649. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8650. #ifndef TOLUA_RELEASE
  8651. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowIntensity'", NULL);
  8652. #endif
  8653. {
  8654. float tolua_ret = (float) self->GetShadowIntensity();
  8655. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8656. }
  8657. }
  8658. return 1;
  8659. #ifndef TOLUA_RELEASE
  8660. tolua_lerror:
  8661. tolua_error(tolua_S,"#ferror in function 'GetShadowIntensity'.",&tolua_err);
  8662. return 0;
  8663. #endif
  8664. }
  8665. #endif //#ifndef TOLUA_DISABLE
  8666. /* method: GetShadowResolution of class Light */
  8667. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetShadowResolution00
  8668. static int tolua_Graphics_Light_GetShadowResolution00(lua_State* tolua_S)
  8669. {
  8670. #ifndef TOLUA_RELEASE
  8671. tolua_Error tolua_err;
  8672. if (
  8673. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8674. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8675. )
  8676. goto tolua_lerror;
  8677. else
  8678. #endif
  8679. {
  8680. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8681. #ifndef TOLUA_RELEASE
  8682. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowResolution'", NULL);
  8683. #endif
  8684. {
  8685. float tolua_ret = (float) self->GetShadowResolution();
  8686. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8687. }
  8688. }
  8689. return 1;
  8690. #ifndef TOLUA_RELEASE
  8691. tolua_lerror:
  8692. tolua_error(tolua_S,"#ferror in function 'GetShadowResolution'.",&tolua_err);
  8693. return 0;
  8694. #endif
  8695. }
  8696. #endif //#ifndef TOLUA_DISABLE
  8697. /* method: GetShadowNearFarRatio of class Light */
  8698. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetShadowNearFarRatio00
  8699. static int tolua_Graphics_Light_GetShadowNearFarRatio00(lua_State* tolua_S)
  8700. {
  8701. #ifndef TOLUA_RELEASE
  8702. tolua_Error tolua_err;
  8703. if (
  8704. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8705. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8706. )
  8707. goto tolua_lerror;
  8708. else
  8709. #endif
  8710. {
  8711. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8712. #ifndef TOLUA_RELEASE
  8713. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowNearFarRatio'", NULL);
  8714. #endif
  8715. {
  8716. float tolua_ret = (float) self->GetShadowNearFarRatio();
  8717. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8718. }
  8719. }
  8720. return 1;
  8721. #ifndef TOLUA_RELEASE
  8722. tolua_lerror:
  8723. tolua_error(tolua_S,"#ferror in function 'GetShadowNearFarRatio'.",&tolua_err);
  8724. return 0;
  8725. #endif
  8726. }
  8727. #endif //#ifndef TOLUA_DISABLE
  8728. /* method: GetRampTexture of class Light */
  8729. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetRampTexture00
  8730. static int tolua_Graphics_Light_GetRampTexture00(lua_State* tolua_S)
  8731. {
  8732. #ifndef TOLUA_RELEASE
  8733. tolua_Error tolua_err;
  8734. if (
  8735. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8736. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8737. )
  8738. goto tolua_lerror;
  8739. else
  8740. #endif
  8741. {
  8742. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8743. #ifndef TOLUA_RELEASE
  8744. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRampTexture'", NULL);
  8745. #endif
  8746. {
  8747. Texture* tolua_ret = (Texture*) self->GetRampTexture();
  8748. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Texture");
  8749. }
  8750. }
  8751. return 1;
  8752. #ifndef TOLUA_RELEASE
  8753. tolua_lerror:
  8754. tolua_error(tolua_S,"#ferror in function 'GetRampTexture'.",&tolua_err);
  8755. return 0;
  8756. #endif
  8757. }
  8758. #endif //#ifndef TOLUA_DISABLE
  8759. /* method: GetShapeTexture of class Light */
  8760. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetShapeTexture00
  8761. static int tolua_Graphics_Light_GetShapeTexture00(lua_State* tolua_S)
  8762. {
  8763. #ifndef TOLUA_RELEASE
  8764. tolua_Error tolua_err;
  8765. if (
  8766. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8767. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8768. )
  8769. goto tolua_lerror;
  8770. else
  8771. #endif
  8772. {
  8773. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8774. #ifndef TOLUA_RELEASE
  8775. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShapeTexture'", NULL);
  8776. #endif
  8777. {
  8778. Texture* tolua_ret = (Texture*) self->GetShapeTexture();
  8779. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Texture");
  8780. }
  8781. }
  8782. return 1;
  8783. #ifndef TOLUA_RELEASE
  8784. tolua_lerror:
  8785. tolua_error(tolua_S,"#ferror in function 'GetShapeTexture'.",&tolua_err);
  8786. return 0;
  8787. #endif
  8788. }
  8789. #endif //#ifndef TOLUA_DISABLE
  8790. /* method: GetFrustum of class Light */
  8791. #ifndef TOLUA_DISABLE_tolua_Graphics_Light_GetFrustum00
  8792. static int tolua_Graphics_Light_GetFrustum00(lua_State* tolua_S)
  8793. {
  8794. #ifndef TOLUA_RELEASE
  8795. tolua_Error tolua_err;
  8796. if (
  8797. !tolua_isusertype(tolua_S,1,"const Light",0,&tolua_err) ||
  8798. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8799. )
  8800. goto tolua_lerror;
  8801. else
  8802. #endif
  8803. {
  8804. const Light* self = (const Light*) tolua_tousertype(tolua_S,1,0);
  8805. #ifndef TOLUA_RELEASE
  8806. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFrustum'", NULL);
  8807. #endif
  8808. {
  8809. Frustum tolua_ret = (Frustum) self->GetFrustum();
  8810. {
  8811. #ifdef __cplusplus
  8812. void* tolua_obj = Mtolua_new((Frustum)(tolua_ret));
  8813. tolua_pushusertype(tolua_S,tolua_obj,"Frustum");
  8814. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  8815. #else
  8816. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Frustum));
  8817. tolua_pushusertype(tolua_S,tolua_obj,"Frustum");
  8818. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  8819. #endif
  8820. }
  8821. }
  8822. }
  8823. return 1;
  8824. #ifndef TOLUA_RELEASE
  8825. tolua_lerror:
  8826. tolua_error(tolua_S,"#ferror in function 'GetFrustum'.",&tolua_err);
  8827. return 0;
  8828. #endif
  8829. }
  8830. #endif //#ifndef TOLUA_DISABLE
  8831. /* method: GetNumTechniques of class Material */
  8832. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetNumTechniques00
  8833. static int tolua_Graphics_Material_GetNumTechniques00(lua_State* tolua_S)
  8834. {
  8835. #ifndef TOLUA_RELEASE
  8836. tolua_Error tolua_err;
  8837. if (
  8838. !tolua_isusertype(tolua_S,1,"const Material",0,&tolua_err) ||
  8839. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8840. )
  8841. goto tolua_lerror;
  8842. else
  8843. #endif
  8844. {
  8845. const Material* self = (const Material*) tolua_tousertype(tolua_S,1,0);
  8846. #ifndef TOLUA_RELEASE
  8847. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumTechniques'", NULL);
  8848. #endif
  8849. {
  8850. unsigned tolua_ret = (unsigned) self->GetNumTechniques();
  8851. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8852. }
  8853. }
  8854. return 1;
  8855. #ifndef TOLUA_RELEASE
  8856. tolua_lerror:
  8857. tolua_error(tolua_S,"#ferror in function 'GetNumTechniques'.",&tolua_err);
  8858. return 0;
  8859. #endif
  8860. }
  8861. #endif //#ifndef TOLUA_DISABLE
  8862. /* method: GetTechniqueEntry of class Material */
  8863. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetTechniqueEntry00
  8864. static int tolua_Graphics_Material_GetTechniqueEntry00(lua_State* tolua_S)
  8865. {
  8866. #ifndef TOLUA_RELEASE
  8867. tolua_Error tolua_err;
  8868. if (
  8869. !tolua_isusertype(tolua_S,1,"const Material",0,&tolua_err) ||
  8870. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8871. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8872. )
  8873. goto tolua_lerror;
  8874. else
  8875. #endif
  8876. {
  8877. const Material* self = (const Material*) tolua_tousertype(tolua_S,1,0);
  8878. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  8879. #ifndef TOLUA_RELEASE
  8880. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTechniqueEntry'", NULL);
  8881. #endif
  8882. {
  8883. const TechniqueEntry& tolua_ret = (const TechniqueEntry&) self->GetTechniqueEntry(index);
  8884. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const TechniqueEntry");
  8885. }
  8886. }
  8887. return 1;
  8888. #ifndef TOLUA_RELEASE
  8889. tolua_lerror:
  8890. tolua_error(tolua_S,"#ferror in function 'GetTechniqueEntry'.",&tolua_err);
  8891. return 0;
  8892. #endif
  8893. }
  8894. #endif //#ifndef TOLUA_DISABLE
  8895. /* method: GetTechnique of class Material */
  8896. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetTechnique00
  8897. static int tolua_Graphics_Material_GetTechnique00(lua_State* tolua_S)
  8898. {
  8899. #ifndef TOLUA_RELEASE
  8900. tolua_Error tolua_err;
  8901. if (
  8902. !tolua_isusertype(tolua_S,1,"const Material",0,&tolua_err) ||
  8903. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8904. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8905. )
  8906. goto tolua_lerror;
  8907. else
  8908. #endif
  8909. {
  8910. const Material* self = (const Material*) tolua_tousertype(tolua_S,1,0);
  8911. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  8912. #ifndef TOLUA_RELEASE
  8913. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTechnique'", NULL);
  8914. #endif
  8915. {
  8916. Technique* tolua_ret = (Technique*) self->GetTechnique(index);
  8917. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Technique");
  8918. }
  8919. }
  8920. return 1;
  8921. #ifndef TOLUA_RELEASE
  8922. tolua_lerror:
  8923. tolua_error(tolua_S,"#ferror in function 'GetTechnique'.",&tolua_err);
  8924. return 0;
  8925. #endif
  8926. }
  8927. #endif //#ifndef TOLUA_DISABLE
  8928. /* method: GetPass of class Material */
  8929. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetPass00
  8930. static int tolua_Graphics_Material_GetPass00(lua_State* tolua_S)
  8931. {
  8932. #ifndef TOLUA_RELEASE
  8933. tolua_Error tolua_err;
  8934. if (
  8935. !tolua_isusertype(tolua_S,1,"const Material",0,&tolua_err) ||
  8936. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8937. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"StringHash",0,&tolua_err)) ||
  8938. !tolua_isnoobj(tolua_S,4,&tolua_err)
  8939. )
  8940. goto tolua_lerror;
  8941. else
  8942. #endif
  8943. {
  8944. const Material* self = (const Material*) tolua_tousertype(tolua_S,1,0);
  8945. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  8946. StringHash passType = *((StringHash*) tolua_tousertype(tolua_S,3,0));
  8947. #ifndef TOLUA_RELEASE
  8948. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPass'", NULL);
  8949. #endif
  8950. {
  8951. Pass* tolua_ret = (Pass*) self->GetPass(index,passType);
  8952. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Pass");
  8953. }
  8954. }
  8955. return 1;
  8956. #ifndef TOLUA_RELEASE
  8957. tolua_lerror:
  8958. tolua_error(tolua_S,"#ferror in function 'GetPass'.",&tolua_err);
  8959. return 0;
  8960. #endif
  8961. }
  8962. #endif //#ifndef TOLUA_DISABLE
  8963. /* method: GetTexture of class Material */
  8964. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetTexture00
  8965. static int tolua_Graphics_Material_GetTexture00(lua_State* tolua_S)
  8966. {
  8967. #ifndef TOLUA_RELEASE
  8968. tolua_Error tolua_err;
  8969. if (
  8970. !tolua_isusertype(tolua_S,1,"const Material",0,&tolua_err) ||
  8971. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8972. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8973. )
  8974. goto tolua_lerror;
  8975. else
  8976. #endif
  8977. {
  8978. const Material* self = (const Material*) tolua_tousertype(tolua_S,1,0);
  8979. TextureUnit unit = ((TextureUnit) (int) tolua_tonumber(tolua_S,2,0));
  8980. #ifndef TOLUA_RELEASE
  8981. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTexture'", NULL);
  8982. #endif
  8983. {
  8984. Texture* tolua_ret = (Texture*) self->GetTexture(unit);
  8985. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Texture");
  8986. }
  8987. }
  8988. return 1;
  8989. #ifndef TOLUA_RELEASE
  8990. tolua_lerror:
  8991. tolua_error(tolua_S,"#ferror in function 'GetTexture'.",&tolua_err);
  8992. return 0;
  8993. #endif
  8994. }
  8995. #endif //#ifndef TOLUA_DISABLE
  8996. /* method: GetShaderParameter of class Material */
  8997. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetShaderParameter00
  8998. static int tolua_Graphics_Material_GetShaderParameter00(lua_State* tolua_S)
  8999. {
  9000. #ifndef TOLUA_RELEASE
  9001. tolua_Error tolua_err;
  9002. if (
  9003. !tolua_isusertype(tolua_S,1,"const Material",0,&tolua_err) ||
  9004. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  9005. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9006. )
  9007. goto tolua_lerror;
  9008. else
  9009. #endif
  9010. {
  9011. const Material* self = (const Material*) tolua_tousertype(tolua_S,1,0);
  9012. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  9013. #ifndef TOLUA_RELEASE
  9014. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShaderParameter'", NULL);
  9015. #endif
  9016. {
  9017. const Vector4& tolua_ret = (const Vector4&) self->GetShaderParameter(*name);
  9018. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector4");
  9019. }
  9020. }
  9021. return 1;
  9022. #ifndef TOLUA_RELEASE
  9023. tolua_lerror:
  9024. tolua_error(tolua_S,"#ferror in function 'GetShaderParameter'.",&tolua_err);
  9025. return 0;
  9026. #endif
  9027. }
  9028. #endif //#ifndef TOLUA_DISABLE
  9029. /* method: GetCullMode of class Material */
  9030. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetCullMode00
  9031. static int tolua_Graphics_Material_GetCullMode00(lua_State* tolua_S)
  9032. {
  9033. #ifndef TOLUA_RELEASE
  9034. tolua_Error tolua_err;
  9035. if (
  9036. !tolua_isusertype(tolua_S,1,"const Material",0,&tolua_err) ||
  9037. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9038. )
  9039. goto tolua_lerror;
  9040. else
  9041. #endif
  9042. {
  9043. const Material* self = (const Material*) tolua_tousertype(tolua_S,1,0);
  9044. #ifndef TOLUA_RELEASE
  9045. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCullMode'", NULL);
  9046. #endif
  9047. {
  9048. CullMode tolua_ret = (CullMode) self->GetCullMode();
  9049. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  9050. }
  9051. }
  9052. return 1;
  9053. #ifndef TOLUA_RELEASE
  9054. tolua_lerror:
  9055. tolua_error(tolua_S,"#ferror in function 'GetCullMode'.",&tolua_err);
  9056. return 0;
  9057. #endif
  9058. }
  9059. #endif //#ifndef TOLUA_DISABLE
  9060. /* method: GetShadowCullMode of class Material */
  9061. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetShadowCullMode00
  9062. static int tolua_Graphics_Material_GetShadowCullMode00(lua_State* tolua_S)
  9063. {
  9064. #ifndef TOLUA_RELEASE
  9065. tolua_Error tolua_err;
  9066. if (
  9067. !tolua_isusertype(tolua_S,1,"const Material",0,&tolua_err) ||
  9068. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9069. )
  9070. goto tolua_lerror;
  9071. else
  9072. #endif
  9073. {
  9074. const Material* self = (const Material*) tolua_tousertype(tolua_S,1,0);
  9075. #ifndef TOLUA_RELEASE
  9076. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowCullMode'", NULL);
  9077. #endif
  9078. {
  9079. CullMode tolua_ret = (CullMode) self->GetShadowCullMode();
  9080. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  9081. }
  9082. }
  9083. return 1;
  9084. #ifndef TOLUA_RELEASE
  9085. tolua_lerror:
  9086. tolua_error(tolua_S,"#ferror in function 'GetShadowCullMode'.",&tolua_err);
  9087. return 0;
  9088. #endif
  9089. }
  9090. #endif //#ifndef TOLUA_DISABLE
  9091. /* method: GetDepthBias of class Material */
  9092. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetDepthBias00
  9093. static int tolua_Graphics_Material_GetDepthBias00(lua_State* tolua_S)
  9094. {
  9095. #ifndef TOLUA_RELEASE
  9096. tolua_Error tolua_err;
  9097. if (
  9098. !tolua_isusertype(tolua_S,1,"const Material",0,&tolua_err) ||
  9099. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9100. )
  9101. goto tolua_lerror;
  9102. else
  9103. #endif
  9104. {
  9105. const Material* self = (const Material*) tolua_tousertype(tolua_S,1,0);
  9106. #ifndef TOLUA_RELEASE
  9107. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDepthBias'", NULL);
  9108. #endif
  9109. {
  9110. const BiasParameters& tolua_ret = (const BiasParameters&) self->GetDepthBias();
  9111. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const BiasParameters");
  9112. }
  9113. }
  9114. return 1;
  9115. #ifndef TOLUA_RELEASE
  9116. tolua_lerror:
  9117. tolua_error(tolua_S,"#ferror in function 'GetDepthBias'.",&tolua_err);
  9118. return 0;
  9119. #endif
  9120. }
  9121. #endif //#ifndef TOLUA_DISABLE
  9122. /* method: GetAuxViewFrameNumber of class Material */
  9123. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetAuxViewFrameNumber00
  9124. static int tolua_Graphics_Material_GetAuxViewFrameNumber00(lua_State* tolua_S)
  9125. {
  9126. #ifndef TOLUA_RELEASE
  9127. tolua_Error tolua_err;
  9128. if (
  9129. !tolua_isusertype(tolua_S,1,"const Material",0,&tolua_err) ||
  9130. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9131. )
  9132. goto tolua_lerror;
  9133. else
  9134. #endif
  9135. {
  9136. const Material* self = (const Material*) tolua_tousertype(tolua_S,1,0);
  9137. #ifndef TOLUA_RELEASE
  9138. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAuxViewFrameNumber'", NULL);
  9139. #endif
  9140. {
  9141. unsigned tolua_ret = (unsigned) self->GetAuxViewFrameNumber();
  9142. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  9143. }
  9144. }
  9145. return 1;
  9146. #ifndef TOLUA_RELEASE
  9147. tolua_lerror:
  9148. tolua_error(tolua_S,"#ferror in function 'GetAuxViewFrameNumber'.",&tolua_err);
  9149. return 0;
  9150. #endif
  9151. }
  9152. #endif //#ifndef TOLUA_DISABLE
  9153. /* method: GetOcclusion of class Material */
  9154. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetOcclusion00
  9155. static int tolua_Graphics_Material_GetOcclusion00(lua_State* tolua_S)
  9156. {
  9157. #ifndef TOLUA_RELEASE
  9158. tolua_Error tolua_err;
  9159. if (
  9160. !tolua_isusertype(tolua_S,1,"const Material",0,&tolua_err) ||
  9161. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9162. )
  9163. goto tolua_lerror;
  9164. else
  9165. #endif
  9166. {
  9167. const Material* self = (const Material*) tolua_tousertype(tolua_S,1,0);
  9168. #ifndef TOLUA_RELEASE
  9169. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOcclusion'", NULL);
  9170. #endif
  9171. {
  9172. bool tolua_ret = (bool) self->GetOcclusion();
  9173. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  9174. }
  9175. }
  9176. return 1;
  9177. #ifndef TOLUA_RELEASE
  9178. tolua_lerror:
  9179. tolua_error(tolua_S,"#ferror in function 'GetOcclusion'.",&tolua_err);
  9180. return 0;
  9181. #endif
  9182. }
  9183. #endif //#ifndef TOLUA_DISABLE
  9184. /* method: GetSpecular of class Material */
  9185. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetSpecular00
  9186. static int tolua_Graphics_Material_GetSpecular00(lua_State* tolua_S)
  9187. {
  9188. #ifndef TOLUA_RELEASE
  9189. tolua_Error tolua_err;
  9190. if (
  9191. !tolua_isusertype(tolua_S,1,"const Material",0,&tolua_err) ||
  9192. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9193. )
  9194. goto tolua_lerror;
  9195. else
  9196. #endif
  9197. {
  9198. const Material* self = (const Material*) tolua_tousertype(tolua_S,1,0);
  9199. #ifndef TOLUA_RELEASE
  9200. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSpecular'", NULL);
  9201. #endif
  9202. {
  9203. bool tolua_ret = (bool) self->GetSpecular();
  9204. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  9205. }
  9206. }
  9207. return 1;
  9208. #ifndef TOLUA_RELEASE
  9209. tolua_lerror:
  9210. tolua_error(tolua_S,"#ferror in function 'GetSpecular'.",&tolua_err);
  9211. return 0;
  9212. #endif
  9213. }
  9214. #endif //#ifndef TOLUA_DISABLE
  9215. /* method: GetTextureUnitName of class Material */
  9216. #ifndef TOLUA_DISABLE_tolua_Graphics_Material_GetTextureUnitName00
  9217. static int tolua_Graphics_Material_GetTextureUnitName00(lua_State* tolua_S)
  9218. {
  9219. #ifndef TOLUA_RELEASE
  9220. tolua_Error tolua_err;
  9221. if (
  9222. !tolua_isusertable(tolua_S,1,"Material",0,&tolua_err) ||
  9223. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9224. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9225. )
  9226. goto tolua_lerror;
  9227. else
  9228. #endif
  9229. {
  9230. TextureUnit unit = ((TextureUnit) (int) tolua_tonumber(tolua_S,2,0));
  9231. {
  9232. String tolua_ret = (String) Material::GetTextureUnitName(unit);
  9233. {
  9234. #ifdef __cplusplus
  9235. void* tolua_obj = Mtolua_new((String)(tolua_ret));
  9236. tolua_pushusertype(tolua_S,tolua_obj,"String");
  9237. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  9238. #else
  9239. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(String));
  9240. tolua_pushusertype(tolua_S,tolua_obj,"String");
  9241. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  9242. #endif
  9243. }
  9244. }
  9245. }
  9246. return 1;
  9247. #ifndef TOLUA_RELEASE
  9248. tolua_lerror:
  9249. tolua_error(tolua_S,"#ferror in function 'GetTextureUnitName'.",&tolua_err);
  9250. return 0;
  9251. #endif
  9252. }
  9253. #endif //#ifndef TOLUA_DISABLE
  9254. /* method: GetBoundingBox of class Model */
  9255. #ifndef TOLUA_DISABLE_tolua_Graphics_Model_GetBoundingBox00
  9256. static int tolua_Graphics_Model_GetBoundingBox00(lua_State* tolua_S)
  9257. {
  9258. #ifndef TOLUA_RELEASE
  9259. tolua_Error tolua_err;
  9260. if (
  9261. !tolua_isusertype(tolua_S,1,"const Model",0,&tolua_err) ||
  9262. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9263. )
  9264. goto tolua_lerror;
  9265. else
  9266. #endif
  9267. {
  9268. const Model* self = (const Model*) tolua_tousertype(tolua_S,1,0);
  9269. #ifndef TOLUA_RELEASE
  9270. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBoundingBox'", NULL);
  9271. #endif
  9272. {
  9273. const BoundingBox& tolua_ret = (const BoundingBox&) self->GetBoundingBox();
  9274. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const BoundingBox");
  9275. }
  9276. }
  9277. return 1;
  9278. #ifndef TOLUA_RELEASE
  9279. tolua_lerror:
  9280. tolua_error(tolua_S,"#ferror in function 'GetBoundingBox'.",&tolua_err);
  9281. return 0;
  9282. #endif
  9283. }
  9284. #endif //#ifndef TOLUA_DISABLE
  9285. /* method: GetSkeleton of class Model */
  9286. #ifndef TOLUA_DISABLE_tolua_Graphics_Model_GetSkeleton00
  9287. static int tolua_Graphics_Model_GetSkeleton00(lua_State* tolua_S)
  9288. {
  9289. #ifndef TOLUA_RELEASE
  9290. tolua_Error tolua_err;
  9291. if (
  9292. !tolua_isusertype(tolua_S,1,"Model",0,&tolua_err) ||
  9293. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9294. )
  9295. goto tolua_lerror;
  9296. else
  9297. #endif
  9298. {
  9299. Model* self = (Model*) tolua_tousertype(tolua_S,1,0);
  9300. #ifndef TOLUA_RELEASE
  9301. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSkeleton'", NULL);
  9302. #endif
  9303. {
  9304. Skeleton& tolua_ret = (Skeleton&) self->GetSkeleton();
  9305. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"Skeleton");
  9306. }
  9307. }
  9308. return 1;
  9309. #ifndef TOLUA_RELEASE
  9310. tolua_lerror:
  9311. tolua_error(tolua_S,"#ferror in function 'GetSkeleton'.",&tolua_err);
  9312. return 0;
  9313. #endif
  9314. }
  9315. #endif //#ifndef TOLUA_DISABLE
  9316. /* method: GetNumGeometries of class Model */
  9317. #ifndef TOLUA_DISABLE_tolua_Graphics_Model_GetNumGeometries00
  9318. static int tolua_Graphics_Model_GetNumGeometries00(lua_State* tolua_S)
  9319. {
  9320. #ifndef TOLUA_RELEASE
  9321. tolua_Error tolua_err;
  9322. if (
  9323. !tolua_isusertype(tolua_S,1,"const Model",0,&tolua_err) ||
  9324. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9325. )
  9326. goto tolua_lerror;
  9327. else
  9328. #endif
  9329. {
  9330. const Model* self = (const Model*) tolua_tousertype(tolua_S,1,0);
  9331. #ifndef TOLUA_RELEASE
  9332. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumGeometries'", NULL);
  9333. #endif
  9334. {
  9335. unsigned tolua_ret = (unsigned) self->GetNumGeometries();
  9336. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  9337. }
  9338. }
  9339. return 1;
  9340. #ifndef TOLUA_RELEASE
  9341. tolua_lerror:
  9342. tolua_error(tolua_S,"#ferror in function 'GetNumGeometries'.",&tolua_err);
  9343. return 0;
  9344. #endif
  9345. }
  9346. #endif //#ifndef TOLUA_DISABLE
  9347. /* method: GetNumGeometryLodLevels of class Model */
  9348. #ifndef TOLUA_DISABLE_tolua_Graphics_Model_GetNumGeometryLodLevels00
  9349. static int tolua_Graphics_Model_GetNumGeometryLodLevels00(lua_State* tolua_S)
  9350. {
  9351. #ifndef TOLUA_RELEASE
  9352. tolua_Error tolua_err;
  9353. if (
  9354. !tolua_isusertype(tolua_S,1,"const Model",0,&tolua_err) ||
  9355. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9356. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9357. )
  9358. goto tolua_lerror;
  9359. else
  9360. #endif
  9361. {
  9362. const Model* self = (const Model*) tolua_tousertype(tolua_S,1,0);
  9363. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  9364. #ifndef TOLUA_RELEASE
  9365. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumGeometryLodLevels'", NULL);
  9366. #endif
  9367. {
  9368. unsigned tolua_ret = (unsigned) self->GetNumGeometryLodLevels(index);
  9369. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  9370. }
  9371. }
  9372. return 1;
  9373. #ifndef TOLUA_RELEASE
  9374. tolua_lerror:
  9375. tolua_error(tolua_S,"#ferror in function 'GetNumGeometryLodLevels'.",&tolua_err);
  9376. return 0;
  9377. #endif
  9378. }
  9379. #endif //#ifndef TOLUA_DISABLE
  9380. /* method: GetGeometry of class Model */
  9381. #ifndef TOLUA_DISABLE_tolua_Graphics_Model_GetGeometry00
  9382. static int tolua_Graphics_Model_GetGeometry00(lua_State* tolua_S)
  9383. {
  9384. #ifndef TOLUA_RELEASE
  9385. tolua_Error tolua_err;
  9386. if (
  9387. !tolua_isusertype(tolua_S,1,"const Model",0,&tolua_err) ||
  9388. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9389. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9390. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9391. )
  9392. goto tolua_lerror;
  9393. else
  9394. #endif
  9395. {
  9396. const Model* self = (const Model*) tolua_tousertype(tolua_S,1,0);
  9397. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  9398. unsigned lodLevel = ((unsigned) tolua_tonumber(tolua_S,3,0));
  9399. #ifndef TOLUA_RELEASE
  9400. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetGeometry'", NULL);
  9401. #endif
  9402. {
  9403. Geometry* tolua_ret = (Geometry*) self->GetGeometry(index,lodLevel);
  9404. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Geometry");
  9405. }
  9406. }
  9407. return 1;
  9408. #ifndef TOLUA_RELEASE
  9409. tolua_lerror:
  9410. tolua_error(tolua_S,"#ferror in function 'GetGeometry'.",&tolua_err);
  9411. return 0;
  9412. #endif
  9413. }
  9414. #endif //#ifndef TOLUA_DISABLE
  9415. /* method: GetNumMorphs of class Model */
  9416. #ifndef TOLUA_DISABLE_tolua_Graphics_Model_GetNumMorphs00
  9417. static int tolua_Graphics_Model_GetNumMorphs00(lua_State* tolua_S)
  9418. {
  9419. #ifndef TOLUA_RELEASE
  9420. tolua_Error tolua_err;
  9421. if (
  9422. !tolua_isusertype(tolua_S,1,"const Model",0,&tolua_err) ||
  9423. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9424. )
  9425. goto tolua_lerror;
  9426. else
  9427. #endif
  9428. {
  9429. const Model* self = (const Model*) tolua_tousertype(tolua_S,1,0);
  9430. #ifndef TOLUA_RELEASE
  9431. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumMorphs'", NULL);
  9432. #endif
  9433. {
  9434. unsigned tolua_ret = (unsigned) self->GetNumMorphs();
  9435. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  9436. }
  9437. }
  9438. return 1;
  9439. #ifndef TOLUA_RELEASE
  9440. tolua_lerror:
  9441. tolua_error(tolua_S,"#ferror in function 'GetNumMorphs'.",&tolua_err);
  9442. return 0;
  9443. #endif
  9444. }
  9445. #endif //#ifndef TOLUA_DISABLE
  9446. /* method: GetMorph of class Model */
  9447. #ifndef TOLUA_DISABLE_tolua_Graphics_Model_GetMorph00
  9448. static int tolua_Graphics_Model_GetMorph00(lua_State* tolua_S)
  9449. {
  9450. #ifndef TOLUA_RELEASE
  9451. tolua_Error tolua_err;
  9452. if (
  9453. !tolua_isusertype(tolua_S,1,"const Model",0,&tolua_err) ||
  9454. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9455. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9456. )
  9457. goto tolua_lerror;
  9458. else
  9459. #endif
  9460. {
  9461. const Model* self = (const Model*) tolua_tousertype(tolua_S,1,0);
  9462. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  9463. #ifndef TOLUA_RELEASE
  9464. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMorph'", NULL);
  9465. #endif
  9466. {
  9467. const ModelMorph* tolua_ret = (const ModelMorph*) self->GetMorph(index);
  9468. tolua_pushusertype(tolua_S,(void*)tolua_ret,"const ModelMorph");
  9469. }
  9470. }
  9471. return 1;
  9472. #ifndef TOLUA_RELEASE
  9473. tolua_lerror:
  9474. tolua_error(tolua_S,"#ferror in function 'GetMorph'.",&tolua_err);
  9475. return 0;
  9476. #endif
  9477. }
  9478. #endif //#ifndef TOLUA_DISABLE
  9479. /* method: GetMorph of class Model */
  9480. #ifndef TOLUA_DISABLE_tolua_Graphics_Model_GetMorph01
  9481. static int tolua_Graphics_Model_GetMorph01(lua_State* tolua_S)
  9482. {
  9483. tolua_Error tolua_err;
  9484. if (
  9485. !tolua_isusertype(tolua_S,1,"const Model",0,&tolua_err) ||
  9486. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  9487. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9488. )
  9489. goto tolua_lerror;
  9490. else
  9491. {
  9492. const Model* self = (const Model*) tolua_tousertype(tolua_S,1,0);
  9493. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  9494. #ifndef TOLUA_RELEASE
  9495. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMorph'", NULL);
  9496. #endif
  9497. {
  9498. const ModelMorph* tolua_ret = (const ModelMorph*) self->GetMorph(*name);
  9499. tolua_pushusertype(tolua_S,(void*)tolua_ret,"const ModelMorph");
  9500. }
  9501. }
  9502. return 1;
  9503. tolua_lerror:
  9504. return tolua_Graphics_Model_GetMorph00(tolua_S);
  9505. }
  9506. #endif //#ifndef TOLUA_DISABLE
  9507. /* method: GetMorph of class Model */
  9508. #ifndef TOLUA_DISABLE_tolua_Graphics_Model_GetMorph02
  9509. static int tolua_Graphics_Model_GetMorph02(lua_State* tolua_S)
  9510. {
  9511. tolua_Error tolua_err;
  9512. if (
  9513. !tolua_isusertype(tolua_S,1,"const Model",0,&tolua_err) ||
  9514. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"StringHash",0,&tolua_err)) ||
  9515. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9516. )
  9517. goto tolua_lerror;
  9518. else
  9519. {
  9520. const Model* self = (const Model*) tolua_tousertype(tolua_S,1,0);
  9521. StringHash nameHash = *((StringHash*) tolua_tousertype(tolua_S,2,0));
  9522. #ifndef TOLUA_RELEASE
  9523. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMorph'", NULL);
  9524. #endif
  9525. {
  9526. const ModelMorph* tolua_ret = (const ModelMorph*) self->GetMorph(nameHash);
  9527. tolua_pushusertype(tolua_S,(void*)tolua_ret,"const ModelMorph");
  9528. }
  9529. }
  9530. return 1;
  9531. tolua_lerror:
  9532. return tolua_Graphics_Model_GetMorph01(tolua_S);
  9533. }
  9534. #endif //#ifndef TOLUA_DISABLE
  9535. /* method: GetMorphRangeStart of class Model */
  9536. #ifndef TOLUA_DISABLE_tolua_Graphics_Model_GetMorphRangeStart00
  9537. static int tolua_Graphics_Model_GetMorphRangeStart00(lua_State* tolua_S)
  9538. {
  9539. #ifndef TOLUA_RELEASE
  9540. tolua_Error tolua_err;
  9541. if (
  9542. !tolua_isusertype(tolua_S,1,"const Model",0,&tolua_err) ||
  9543. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9544. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9545. )
  9546. goto tolua_lerror;
  9547. else
  9548. #endif
  9549. {
  9550. const Model* self = (const Model*) tolua_tousertype(tolua_S,1,0);
  9551. unsigned bufferIndex = ((unsigned) tolua_tonumber(tolua_S,2,0));
  9552. #ifndef TOLUA_RELEASE
  9553. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMorphRangeStart'", NULL);
  9554. #endif
  9555. {
  9556. unsigned tolua_ret = (unsigned) self->GetMorphRangeStart(bufferIndex);
  9557. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  9558. }
  9559. }
  9560. return 1;
  9561. #ifndef TOLUA_RELEASE
  9562. tolua_lerror:
  9563. tolua_error(tolua_S,"#ferror in function 'GetMorphRangeStart'.",&tolua_err);
  9564. return 0;
  9565. #endif
  9566. }
  9567. #endif //#ifndef TOLUA_DISABLE
  9568. /* method: GetMorphRangeCount of class Model */
  9569. #ifndef TOLUA_DISABLE_tolua_Graphics_Model_GetMorphRangeCount00
  9570. static int tolua_Graphics_Model_GetMorphRangeCount00(lua_State* tolua_S)
  9571. {
  9572. #ifndef TOLUA_RELEASE
  9573. tolua_Error tolua_err;
  9574. if (
  9575. !tolua_isusertype(tolua_S,1,"const Model",0,&tolua_err) ||
  9576. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9577. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9578. )
  9579. goto tolua_lerror;
  9580. else
  9581. #endif
  9582. {
  9583. const Model* self = (const Model*) tolua_tousertype(tolua_S,1,0);
  9584. unsigned bufferIndex = ((unsigned) tolua_tonumber(tolua_S,2,0));
  9585. #ifndef TOLUA_RELEASE
  9586. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMorphRangeCount'", NULL);
  9587. #endif
  9588. {
  9589. unsigned tolua_ret = (unsigned) self->GetMorphRangeCount(bufferIndex);
  9590. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  9591. }
  9592. }
  9593. return 1;
  9594. #ifndef TOLUA_RELEASE
  9595. tolua_lerror:
  9596. tolua_error(tolua_S,"#ferror in function 'GetMorphRangeCount'.",&tolua_err);
  9597. return 0;
  9598. #endif
  9599. }
  9600. #endif //#ifndef TOLUA_DISABLE
  9601. /* method: Resize of class Octree */
  9602. #ifndef TOLUA_DISABLE_tolua_Graphics_Octree_Resize00
  9603. static int tolua_Graphics_Octree_Resize00(lua_State* tolua_S)
  9604. {
  9605. #ifndef TOLUA_RELEASE
  9606. tolua_Error tolua_err;
  9607. if (
  9608. !tolua_isusertype(tolua_S,1,"Octree",0,&tolua_err) ||
  9609. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const BoundingBox",0,&tolua_err)) ||
  9610. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9611. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9612. )
  9613. goto tolua_lerror;
  9614. else
  9615. #endif
  9616. {
  9617. Octree* self = (Octree*) tolua_tousertype(tolua_S,1,0);
  9618. const BoundingBox* box = ((const BoundingBox*) tolua_tousertype(tolua_S,2,0));
  9619. unsigned numLevels = ((unsigned) tolua_tonumber(tolua_S,3,0));
  9620. #ifndef TOLUA_RELEASE
  9621. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Resize'", NULL);
  9622. #endif
  9623. {
  9624. self->Resize(*box,numLevels);
  9625. }
  9626. }
  9627. return 0;
  9628. #ifndef TOLUA_RELEASE
  9629. tolua_lerror:
  9630. tolua_error(tolua_S,"#ferror in function 'Resize'.",&tolua_err);
  9631. return 0;
  9632. #endif
  9633. }
  9634. #endif //#ifndef TOLUA_DISABLE
  9635. /* method: Update of class Octree */
  9636. #ifndef TOLUA_DISABLE_tolua_Graphics_Octree_Update00
  9637. static int tolua_Graphics_Octree_Update00(lua_State* tolua_S)
  9638. {
  9639. #ifndef TOLUA_RELEASE
  9640. tolua_Error tolua_err;
  9641. if (
  9642. !tolua_isusertype(tolua_S,1,"Octree",0,&tolua_err) ||
  9643. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const FrameInfo",0,&tolua_err)) ||
  9644. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9645. )
  9646. goto tolua_lerror;
  9647. else
  9648. #endif
  9649. {
  9650. Octree* self = (Octree*) tolua_tousertype(tolua_S,1,0);
  9651. const FrameInfo* frame = ((const FrameInfo*) tolua_tousertype(tolua_S,2,0));
  9652. #ifndef TOLUA_RELEASE
  9653. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Update'", NULL);
  9654. #endif
  9655. {
  9656. self->Update(*frame);
  9657. }
  9658. }
  9659. return 0;
  9660. #ifndef TOLUA_RELEASE
  9661. tolua_lerror:
  9662. tolua_error(tolua_S,"#ferror in function 'Update'.",&tolua_err);
  9663. return 0;
  9664. #endif
  9665. }
  9666. #endif //#ifndef TOLUA_DISABLE
  9667. /* method: AddManualDrawable of class Octree */
  9668. #ifndef TOLUA_DISABLE_tolua_Graphics_Octree_AddManualDrawable00
  9669. static int tolua_Graphics_Octree_AddManualDrawable00(lua_State* tolua_S)
  9670. {
  9671. #ifndef TOLUA_RELEASE
  9672. tolua_Error tolua_err;
  9673. if (
  9674. !tolua_isusertype(tolua_S,1,"Octree",0,&tolua_err) ||
  9675. !tolua_isusertype(tolua_S,2,"Drawable",0,&tolua_err) ||
  9676. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9677. )
  9678. goto tolua_lerror;
  9679. else
  9680. #endif
  9681. {
  9682. Octree* self = (Octree*) tolua_tousertype(tolua_S,1,0);
  9683. Drawable* drawable = ((Drawable*) tolua_tousertype(tolua_S,2,0));
  9684. #ifndef TOLUA_RELEASE
  9685. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddManualDrawable'", NULL);
  9686. #endif
  9687. {
  9688. self->AddManualDrawable(drawable);
  9689. }
  9690. }
  9691. return 0;
  9692. #ifndef TOLUA_RELEASE
  9693. tolua_lerror:
  9694. tolua_error(tolua_S,"#ferror in function 'AddManualDrawable'.",&tolua_err);
  9695. return 0;
  9696. #endif
  9697. }
  9698. #endif //#ifndef TOLUA_DISABLE
  9699. /* method: RemoveManualDrawable of class Octree */
  9700. #ifndef TOLUA_DISABLE_tolua_Graphics_Octree_RemoveManualDrawable00
  9701. static int tolua_Graphics_Octree_RemoveManualDrawable00(lua_State* tolua_S)
  9702. {
  9703. #ifndef TOLUA_RELEASE
  9704. tolua_Error tolua_err;
  9705. if (
  9706. !tolua_isusertype(tolua_S,1,"Octree",0,&tolua_err) ||
  9707. !tolua_isusertype(tolua_S,2,"Drawable",0,&tolua_err) ||
  9708. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9709. )
  9710. goto tolua_lerror;
  9711. else
  9712. #endif
  9713. {
  9714. Octree* self = (Octree*) tolua_tousertype(tolua_S,1,0);
  9715. Drawable* drawable = ((Drawable*) tolua_tousertype(tolua_S,2,0));
  9716. #ifndef TOLUA_RELEASE
  9717. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveManualDrawable'", NULL);
  9718. #endif
  9719. {
  9720. self->RemoveManualDrawable(drawable);
  9721. }
  9722. }
  9723. return 0;
  9724. #ifndef TOLUA_RELEASE
  9725. tolua_lerror:
  9726. tolua_error(tolua_S,"#ferror in function 'RemoveManualDrawable'.",&tolua_err);
  9727. return 0;
  9728. #endif
  9729. }
  9730. #endif //#ifndef TOLUA_DISABLE
  9731. /* method: GetDrawables of class Octree */
  9732. #ifndef TOLUA_DISABLE_tolua_Graphics_Octree_GetDrawables00
  9733. static int tolua_Graphics_Octree_GetDrawables00(lua_State* tolua_S)
  9734. {
  9735. #ifndef TOLUA_RELEASE
  9736. tolua_Error tolua_err;
  9737. if (
  9738. !tolua_isusertype(tolua_S,1,"const Octree",0,&tolua_err) ||
  9739. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"OctreeQuery",0,&tolua_err)) ||
  9740. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9741. )
  9742. goto tolua_lerror;
  9743. else
  9744. #endif
  9745. {
  9746. const Octree* self = (const Octree*) tolua_tousertype(tolua_S,1,0);
  9747. OctreeQuery* query = ((OctreeQuery*) tolua_tousertype(tolua_S,2,0));
  9748. #ifndef TOLUA_RELEASE
  9749. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDrawables'", NULL);
  9750. #endif
  9751. {
  9752. self->GetDrawables(*query);
  9753. }
  9754. }
  9755. return 0;
  9756. #ifndef TOLUA_RELEASE
  9757. tolua_lerror:
  9758. tolua_error(tolua_S,"#ferror in function 'GetDrawables'.",&tolua_err);
  9759. return 0;
  9760. #endif
  9761. }
  9762. #endif //#ifndef TOLUA_DISABLE
  9763. /* method: Raycast of class Octree */
  9764. #ifndef TOLUA_DISABLE_tolua_Graphics_Octree_Raycast00
  9765. static int tolua_Graphics_Octree_Raycast00(lua_State* tolua_S)
  9766. {
  9767. #ifndef TOLUA_RELEASE
  9768. tolua_Error tolua_err;
  9769. if (
  9770. !tolua_isusertype(tolua_S,1,"const Octree",0,&tolua_err) ||
  9771. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"RayOctreeQuery",0,&tolua_err)) ||
  9772. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9773. )
  9774. goto tolua_lerror;
  9775. else
  9776. #endif
  9777. {
  9778. const Octree* self = (const Octree*) tolua_tousertype(tolua_S,1,0);
  9779. RayOctreeQuery* query = ((RayOctreeQuery*) tolua_tousertype(tolua_S,2,0));
  9780. #ifndef TOLUA_RELEASE
  9781. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Raycast'", NULL);
  9782. #endif
  9783. {
  9784. self->Raycast(*query);
  9785. }
  9786. }
  9787. return 0;
  9788. #ifndef TOLUA_RELEASE
  9789. tolua_lerror:
  9790. tolua_error(tolua_S,"#ferror in function 'Raycast'.",&tolua_err);
  9791. return 0;
  9792. #endif
  9793. }
  9794. #endif //#ifndef TOLUA_DISABLE
  9795. /* method: RaycastSingle of class Octree */
  9796. #ifndef TOLUA_DISABLE_tolua_Graphics_Octree_RaycastSingle00
  9797. static int tolua_Graphics_Octree_RaycastSingle00(lua_State* tolua_S)
  9798. {
  9799. #ifndef TOLUA_RELEASE
  9800. tolua_Error tolua_err;
  9801. if (
  9802. !tolua_isusertype(tolua_S,1,"const Octree",0,&tolua_err) ||
  9803. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"RayOctreeQuery",0,&tolua_err)) ||
  9804. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9805. )
  9806. goto tolua_lerror;
  9807. else
  9808. #endif
  9809. {
  9810. const Octree* self = (const Octree*) tolua_tousertype(tolua_S,1,0);
  9811. RayOctreeQuery* query = ((RayOctreeQuery*) tolua_tousertype(tolua_S,2,0));
  9812. #ifndef TOLUA_RELEASE
  9813. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RaycastSingle'", NULL);
  9814. #endif
  9815. {
  9816. self->RaycastSingle(*query);
  9817. }
  9818. }
  9819. return 0;
  9820. #ifndef TOLUA_RELEASE
  9821. tolua_lerror:
  9822. tolua_error(tolua_S,"#ferror in function 'RaycastSingle'.",&tolua_err);
  9823. return 0;
  9824. #endif
  9825. }
  9826. #endif //#ifndef TOLUA_DISABLE
  9827. /* method: GetNumLevels of class Octree */
  9828. #ifndef TOLUA_DISABLE_tolua_Graphics_Octree_GetNumLevels00
  9829. static int tolua_Graphics_Octree_GetNumLevels00(lua_State* tolua_S)
  9830. {
  9831. #ifndef TOLUA_RELEASE
  9832. tolua_Error tolua_err;
  9833. if (
  9834. !tolua_isusertype(tolua_S,1,"const Octree",0,&tolua_err) ||
  9835. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9836. )
  9837. goto tolua_lerror;
  9838. else
  9839. #endif
  9840. {
  9841. const Octree* self = (const Octree*) tolua_tousertype(tolua_S,1,0);
  9842. #ifndef TOLUA_RELEASE
  9843. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumLevels'", NULL);
  9844. #endif
  9845. {
  9846. unsigned tolua_ret = (unsigned) self->GetNumLevels();
  9847. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  9848. }
  9849. }
  9850. return 1;
  9851. #ifndef TOLUA_RELEASE
  9852. tolua_lerror:
  9853. tolua_error(tolua_S,"#ferror in function 'GetNumLevels'.",&tolua_err);
  9854. return 0;
  9855. #endif
  9856. }
  9857. #endif //#ifndef TOLUA_DISABLE
  9858. /* method: QueueUpdate of class Octree */
  9859. #ifndef TOLUA_DISABLE_tolua_Graphics_Octree_QueueUpdate00
  9860. static int tolua_Graphics_Octree_QueueUpdate00(lua_State* tolua_S)
  9861. {
  9862. #ifndef TOLUA_RELEASE
  9863. tolua_Error tolua_err;
  9864. if (
  9865. !tolua_isusertype(tolua_S,1,"Octree",0,&tolua_err) ||
  9866. !tolua_isusertype(tolua_S,2,"Drawable",0,&tolua_err) ||
  9867. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9868. )
  9869. goto tolua_lerror;
  9870. else
  9871. #endif
  9872. {
  9873. Octree* self = (Octree*) tolua_tousertype(tolua_S,1,0);
  9874. Drawable* drawable = ((Drawable*) tolua_tousertype(tolua_S,2,0));
  9875. #ifndef TOLUA_RELEASE
  9876. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'QueueUpdate'", NULL);
  9877. #endif
  9878. {
  9879. self->QueueUpdate(drawable);
  9880. }
  9881. }
  9882. return 0;
  9883. #ifndef TOLUA_RELEASE
  9884. tolua_lerror:
  9885. tolua_error(tolua_S,"#ferror in function 'QueueUpdate'.",&tolua_err);
  9886. return 0;
  9887. #endif
  9888. }
  9889. #endif //#ifndef TOLUA_DISABLE
  9890. /* method: QueueReinsertion of class Octree */
  9891. #ifndef TOLUA_DISABLE_tolua_Graphics_Octree_QueueReinsertion00
  9892. static int tolua_Graphics_Octree_QueueReinsertion00(lua_State* tolua_S)
  9893. {
  9894. #ifndef TOLUA_RELEASE
  9895. tolua_Error tolua_err;
  9896. if (
  9897. !tolua_isusertype(tolua_S,1,"Octree",0,&tolua_err) ||
  9898. !tolua_isusertype(tolua_S,2,"Drawable",0,&tolua_err) ||
  9899. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9900. )
  9901. goto tolua_lerror;
  9902. else
  9903. #endif
  9904. {
  9905. Octree* self = (Octree*) tolua_tousertype(tolua_S,1,0);
  9906. Drawable* drawable = ((Drawable*) tolua_tousertype(tolua_S,2,0));
  9907. #ifndef TOLUA_RELEASE
  9908. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'QueueReinsertion'", NULL);
  9909. #endif
  9910. {
  9911. self->QueueReinsertion(drawable);
  9912. }
  9913. }
  9914. return 0;
  9915. #ifndef TOLUA_RELEASE
  9916. tolua_lerror:
  9917. tolua_error(tolua_S,"#ferror in function 'QueueReinsertion'.",&tolua_err);
  9918. return 0;
  9919. #endif
  9920. }
  9921. #endif //#ifndef TOLUA_DISABLE
  9922. /* method: DrawDebugGeometry of class Octree */
  9923. #ifndef TOLUA_DISABLE_tolua_Graphics_Octree_DrawDebugGeometry00
  9924. static int tolua_Graphics_Octree_DrawDebugGeometry00(lua_State* tolua_S)
  9925. {
  9926. #ifndef TOLUA_RELEASE
  9927. tolua_Error tolua_err;
  9928. if (
  9929. !tolua_isusertype(tolua_S,1,"Octree",0,&tolua_err) ||
  9930. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  9931. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9932. )
  9933. goto tolua_lerror;
  9934. else
  9935. #endif
  9936. {
  9937. Octree* self = (Octree*) tolua_tousertype(tolua_S,1,0);
  9938. bool depthTest = ((bool) tolua_toboolean(tolua_S,2,0));
  9939. #ifndef TOLUA_RELEASE
  9940. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'DrawDebugGeometry'", NULL);
  9941. #endif
  9942. {
  9943. self->DrawDebugGeometry(depthTest);
  9944. }
  9945. }
  9946. return 0;
  9947. #ifndef TOLUA_RELEASE
  9948. tolua_lerror:
  9949. tolua_error(tolua_S,"#ferror in function 'DrawDebugGeometry'.",&tolua_err);
  9950. return 0;
  9951. #endif
  9952. }
  9953. #endif //#ifndef TOLUA_DISABLE
  9954. /* function: GetOctree */
  9955. #ifndef TOLUA_DISABLE_tolua_Graphics_GetOctree00
  9956. static int tolua_Graphics_GetOctree00(lua_State* tolua_S)
  9957. {
  9958. #ifndef TOLUA_RELEASE
  9959. tolua_Error tolua_err;
  9960. if (
  9961. !tolua_isnoobj(tolua_S,1,&tolua_err)
  9962. )
  9963. goto tolua_lerror;
  9964. else
  9965. #endif
  9966. {
  9967. {
  9968. Octree* tolua_ret = (Octree*) GetOctree();
  9969. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Octree");
  9970. }
  9971. }
  9972. return 1;
  9973. #ifndef TOLUA_RELEASE
  9974. tolua_lerror:
  9975. tolua_error(tolua_S,"#ferror in function 'GetOctree'.",&tolua_err);
  9976. return 0;
  9977. #endif
  9978. }
  9979. #endif //#ifndef TOLUA_DISABLE
  9980. /* method: new of class ColorFrame */
  9981. #ifndef TOLUA_DISABLE_tolua_Graphics_ColorFrame_new00
  9982. static int tolua_Graphics_ColorFrame_new00(lua_State* tolua_S)
  9983. {
  9984. #ifndef TOLUA_RELEASE
  9985. tolua_Error tolua_err;
  9986. if (
  9987. !tolua_isusertable(tolua_S,1,"ColorFrame",0,&tolua_err) ||
  9988. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9989. )
  9990. goto tolua_lerror;
  9991. else
  9992. #endif
  9993. {
  9994. {
  9995. ColorFrame* tolua_ret = (ColorFrame*) Mtolua_new((ColorFrame)());
  9996. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ColorFrame");
  9997. }
  9998. }
  9999. return 1;
  10000. #ifndef TOLUA_RELEASE
  10001. tolua_lerror:
  10002. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  10003. return 0;
  10004. #endif
  10005. }
  10006. #endif //#ifndef TOLUA_DISABLE
  10007. /* method: new_local of class ColorFrame */
  10008. #ifndef TOLUA_DISABLE_tolua_Graphics_ColorFrame_new00_local
  10009. static int tolua_Graphics_ColorFrame_new00_local(lua_State* tolua_S)
  10010. {
  10011. #ifndef TOLUA_RELEASE
  10012. tolua_Error tolua_err;
  10013. if (
  10014. !tolua_isusertable(tolua_S,1,"ColorFrame",0,&tolua_err) ||
  10015. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10016. )
  10017. goto tolua_lerror;
  10018. else
  10019. #endif
  10020. {
  10021. {
  10022. ColorFrame* tolua_ret = (ColorFrame*) Mtolua_new((ColorFrame)());
  10023. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ColorFrame");
  10024. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  10025. }
  10026. }
  10027. return 1;
  10028. #ifndef TOLUA_RELEASE
  10029. tolua_lerror:
  10030. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  10031. return 0;
  10032. #endif
  10033. }
  10034. #endif //#ifndef TOLUA_DISABLE
  10035. /* method: new of class ColorFrame */
  10036. #ifndef TOLUA_DISABLE_tolua_Graphics_ColorFrame_new01
  10037. static int tolua_Graphics_ColorFrame_new01(lua_State* tolua_S)
  10038. {
  10039. tolua_Error tolua_err;
  10040. if (
  10041. !tolua_isusertable(tolua_S,1,"ColorFrame",0,&tolua_err) ||
  10042. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  10043. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10044. )
  10045. goto tolua_lerror;
  10046. else
  10047. {
  10048. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  10049. {
  10050. ColorFrame* tolua_ret = (ColorFrame*) Mtolua_new((ColorFrame)(*color));
  10051. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ColorFrame");
  10052. }
  10053. }
  10054. return 1;
  10055. tolua_lerror:
  10056. return tolua_Graphics_ColorFrame_new00(tolua_S);
  10057. }
  10058. #endif //#ifndef TOLUA_DISABLE
  10059. /* method: new_local of class ColorFrame */
  10060. #ifndef TOLUA_DISABLE_tolua_Graphics_ColorFrame_new01_local
  10061. static int tolua_Graphics_ColorFrame_new01_local(lua_State* tolua_S)
  10062. {
  10063. tolua_Error tolua_err;
  10064. if (
  10065. !tolua_isusertable(tolua_S,1,"ColorFrame",0,&tolua_err) ||
  10066. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  10067. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10068. )
  10069. goto tolua_lerror;
  10070. else
  10071. {
  10072. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  10073. {
  10074. ColorFrame* tolua_ret = (ColorFrame*) Mtolua_new((ColorFrame)(*color));
  10075. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ColorFrame");
  10076. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  10077. }
  10078. }
  10079. return 1;
  10080. tolua_lerror:
  10081. return tolua_Graphics_ColorFrame_new00_local(tolua_S);
  10082. }
  10083. #endif //#ifndef TOLUA_DISABLE
  10084. /* method: new of class ColorFrame */
  10085. #ifndef TOLUA_DISABLE_tolua_Graphics_ColorFrame_new02
  10086. static int tolua_Graphics_ColorFrame_new02(lua_State* tolua_S)
  10087. {
  10088. tolua_Error tolua_err;
  10089. if (
  10090. !tolua_isusertable(tolua_S,1,"ColorFrame",0,&tolua_err) ||
  10091. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  10092. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  10093. !tolua_isnoobj(tolua_S,4,&tolua_err)
  10094. )
  10095. goto tolua_lerror;
  10096. else
  10097. {
  10098. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  10099. float time = ((float) tolua_tonumber(tolua_S,3,0));
  10100. {
  10101. ColorFrame* tolua_ret = (ColorFrame*) Mtolua_new((ColorFrame)(*color,time));
  10102. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ColorFrame");
  10103. }
  10104. }
  10105. return 1;
  10106. tolua_lerror:
  10107. return tolua_Graphics_ColorFrame_new01(tolua_S);
  10108. }
  10109. #endif //#ifndef TOLUA_DISABLE
  10110. /* method: new_local of class ColorFrame */
  10111. #ifndef TOLUA_DISABLE_tolua_Graphics_ColorFrame_new02_local
  10112. static int tolua_Graphics_ColorFrame_new02_local(lua_State* tolua_S)
  10113. {
  10114. tolua_Error tolua_err;
  10115. if (
  10116. !tolua_isusertable(tolua_S,1,"ColorFrame",0,&tolua_err) ||
  10117. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  10118. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  10119. !tolua_isnoobj(tolua_S,4,&tolua_err)
  10120. )
  10121. goto tolua_lerror;
  10122. else
  10123. {
  10124. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  10125. float time = ((float) tolua_tonumber(tolua_S,3,0));
  10126. {
  10127. ColorFrame* tolua_ret = (ColorFrame*) Mtolua_new((ColorFrame)(*color,time));
  10128. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ColorFrame");
  10129. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  10130. }
  10131. }
  10132. return 1;
  10133. tolua_lerror:
  10134. return tolua_Graphics_ColorFrame_new01_local(tolua_S);
  10135. }
  10136. #endif //#ifndef TOLUA_DISABLE
  10137. /* method: Interpolate of class ColorFrame */
  10138. #ifndef TOLUA_DISABLE_tolua_Graphics_ColorFrame_Interpolate00
  10139. static int tolua_Graphics_ColorFrame_Interpolate00(lua_State* tolua_S)
  10140. {
  10141. #ifndef TOLUA_RELEASE
  10142. tolua_Error tolua_err;
  10143. if (
  10144. !tolua_isusertype(tolua_S,1,"ColorFrame",0,&tolua_err) ||
  10145. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const ColorFrame",0,&tolua_err)) ||
  10146. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  10147. !tolua_isnoobj(tolua_S,4,&tolua_err)
  10148. )
  10149. goto tolua_lerror;
  10150. else
  10151. #endif
  10152. {
  10153. ColorFrame* self = (ColorFrame*) tolua_tousertype(tolua_S,1,0);
  10154. const ColorFrame* next = ((const ColorFrame*) tolua_tousertype(tolua_S,2,0));
  10155. float time = ((float) tolua_tonumber(tolua_S,3,0));
  10156. #ifndef TOLUA_RELEASE
  10157. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Interpolate'", NULL);
  10158. #endif
  10159. {
  10160. Color tolua_ret = (Color) self->Interpolate(*next,time);
  10161. {
  10162. #ifdef __cplusplus
  10163. void* tolua_obj = Mtolua_new((Color)(tolua_ret));
  10164. tolua_pushusertype(tolua_S,tolua_obj,"Color");
  10165. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  10166. #else
  10167. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Color));
  10168. tolua_pushusertype(tolua_S,tolua_obj,"Color");
  10169. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  10170. #endif
  10171. }
  10172. }
  10173. }
  10174. return 1;
  10175. #ifndef TOLUA_RELEASE
  10176. tolua_lerror:
  10177. tolua_error(tolua_S,"#ferror in function 'Interpolate'.",&tolua_err);
  10178. return 0;
  10179. #endif
  10180. }
  10181. #endif //#ifndef TOLUA_DISABLE
  10182. /* get function: color_ of class ColorFrame */
  10183. #ifndef TOLUA_DISABLE_tolua_get_ColorFrame_color
  10184. static int tolua_get_ColorFrame_color(lua_State* tolua_S)
  10185. {
  10186. ColorFrame* self = (ColorFrame*) tolua_tousertype(tolua_S,1,0);
  10187. #ifndef TOLUA_RELEASE
  10188. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'color_'",NULL);
  10189. #endif
  10190. tolua_pushusertype(tolua_S,(void*)&self->color_,"Color");
  10191. return 1;
  10192. }
  10193. #endif //#ifndef TOLUA_DISABLE
  10194. /* set function: color_ of class ColorFrame */
  10195. #ifndef TOLUA_DISABLE_tolua_set_ColorFrame_color
  10196. static int tolua_set_ColorFrame_color(lua_State* tolua_S)
  10197. {
  10198. ColorFrame* self = (ColorFrame*) tolua_tousertype(tolua_S,1,0);
  10199. #ifndef TOLUA_RELEASE
  10200. tolua_Error tolua_err;
  10201. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'color_'",NULL);
  10202. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Color",0,&tolua_err)))
  10203. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  10204. #endif
  10205. self->color_ = *((Color*) tolua_tousertype(tolua_S,2,0))
  10206. ;
  10207. return 0;
  10208. }
  10209. #endif //#ifndef TOLUA_DISABLE
  10210. /* get function: time_ of class ColorFrame */
  10211. #ifndef TOLUA_DISABLE_tolua_get_ColorFrame_time
  10212. static int tolua_get_ColorFrame_time(lua_State* tolua_S)
  10213. {
  10214. ColorFrame* self = (ColorFrame*) tolua_tousertype(tolua_S,1,0);
  10215. #ifndef TOLUA_RELEASE
  10216. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'time_'",NULL);
  10217. #endif
  10218. tolua_pushnumber(tolua_S,(lua_Number)self->time_);
  10219. return 1;
  10220. }
  10221. #endif //#ifndef TOLUA_DISABLE
  10222. /* set function: time_ of class ColorFrame */
  10223. #ifndef TOLUA_DISABLE_tolua_set_ColorFrame_time
  10224. static int tolua_set_ColorFrame_time(lua_State* tolua_S)
  10225. {
  10226. ColorFrame* self = (ColorFrame*) tolua_tousertype(tolua_S,1,0);
  10227. #ifndef TOLUA_RELEASE
  10228. tolua_Error tolua_err;
  10229. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'time_'",NULL);
  10230. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  10231. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  10232. #endif
  10233. self->time_ = ((float) tolua_tonumber(tolua_S,2,0))
  10234. ;
  10235. return 0;
  10236. }
  10237. #endif //#ifndef TOLUA_DISABLE
  10238. /* method: new of class TextureFrame */
  10239. #ifndef TOLUA_DISABLE_tolua_Graphics_TextureFrame_new00
  10240. static int tolua_Graphics_TextureFrame_new00(lua_State* tolua_S)
  10241. {
  10242. #ifndef TOLUA_RELEASE
  10243. tolua_Error tolua_err;
  10244. if (
  10245. !tolua_isusertable(tolua_S,1,"TextureFrame",0,&tolua_err) ||
  10246. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10247. )
  10248. goto tolua_lerror;
  10249. else
  10250. #endif
  10251. {
  10252. {
  10253. TextureFrame* tolua_ret = (TextureFrame*) Mtolua_new((TextureFrame)());
  10254. tolua_pushusertype(tolua_S,(void*)tolua_ret,"TextureFrame");
  10255. }
  10256. }
  10257. return 1;
  10258. #ifndef TOLUA_RELEASE
  10259. tolua_lerror:
  10260. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  10261. return 0;
  10262. #endif
  10263. }
  10264. #endif //#ifndef TOLUA_DISABLE
  10265. /* method: new_local of class TextureFrame */
  10266. #ifndef TOLUA_DISABLE_tolua_Graphics_TextureFrame_new00_local
  10267. static int tolua_Graphics_TextureFrame_new00_local(lua_State* tolua_S)
  10268. {
  10269. #ifndef TOLUA_RELEASE
  10270. tolua_Error tolua_err;
  10271. if (
  10272. !tolua_isusertable(tolua_S,1,"TextureFrame",0,&tolua_err) ||
  10273. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10274. )
  10275. goto tolua_lerror;
  10276. else
  10277. #endif
  10278. {
  10279. {
  10280. TextureFrame* tolua_ret = (TextureFrame*) Mtolua_new((TextureFrame)());
  10281. tolua_pushusertype(tolua_S,(void*)tolua_ret,"TextureFrame");
  10282. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  10283. }
  10284. }
  10285. return 1;
  10286. #ifndef TOLUA_RELEASE
  10287. tolua_lerror:
  10288. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  10289. return 0;
  10290. #endif
  10291. }
  10292. #endif //#ifndef TOLUA_DISABLE
  10293. /* get function: uv_ of class TextureFrame */
  10294. #ifndef TOLUA_DISABLE_tolua_get_TextureFrame_uv
  10295. static int tolua_get_TextureFrame_uv(lua_State* tolua_S)
  10296. {
  10297. TextureFrame* self = (TextureFrame*) tolua_tousertype(tolua_S,1,0);
  10298. #ifndef TOLUA_RELEASE
  10299. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'uv_'",NULL);
  10300. #endif
  10301. tolua_pushusertype(tolua_S,(void*)&self->uv_,"Rect");
  10302. return 1;
  10303. }
  10304. #endif //#ifndef TOLUA_DISABLE
  10305. /* set function: uv_ of class TextureFrame */
  10306. #ifndef TOLUA_DISABLE_tolua_set_TextureFrame_uv
  10307. static int tolua_set_TextureFrame_uv(lua_State* tolua_S)
  10308. {
  10309. TextureFrame* self = (TextureFrame*) tolua_tousertype(tolua_S,1,0);
  10310. #ifndef TOLUA_RELEASE
  10311. tolua_Error tolua_err;
  10312. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'uv_'",NULL);
  10313. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Rect",0,&tolua_err)))
  10314. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  10315. #endif
  10316. self->uv_ = *((Rect*) tolua_tousertype(tolua_S,2,0))
  10317. ;
  10318. return 0;
  10319. }
  10320. #endif //#ifndef TOLUA_DISABLE
  10321. /* get function: time_ of class TextureFrame */
  10322. #ifndef TOLUA_DISABLE_tolua_get_TextureFrame_time
  10323. static int tolua_get_TextureFrame_time(lua_State* tolua_S)
  10324. {
  10325. TextureFrame* self = (TextureFrame*) tolua_tousertype(tolua_S,1,0);
  10326. #ifndef TOLUA_RELEASE
  10327. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'time_'",NULL);
  10328. #endif
  10329. tolua_pushnumber(tolua_S,(lua_Number)self->time_);
  10330. return 1;
  10331. }
  10332. #endif //#ifndef TOLUA_DISABLE
  10333. /* set function: time_ of class TextureFrame */
  10334. #ifndef TOLUA_DISABLE_tolua_set_TextureFrame_time
  10335. static int tolua_set_TextureFrame_time(lua_State* tolua_S)
  10336. {
  10337. TextureFrame* self = (TextureFrame*) tolua_tousertype(tolua_S,1,0);
  10338. #ifndef TOLUA_RELEASE
  10339. tolua_Error tolua_err;
  10340. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'time_'",NULL);
  10341. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  10342. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  10343. #endif
  10344. self->time_ = ((float) tolua_tonumber(tolua_S,2,0))
  10345. ;
  10346. return 0;
  10347. }
  10348. #endif //#ifndef TOLUA_DISABLE
  10349. /* method: Load of class ParticleEmitter */
  10350. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_Load00
  10351. static int tolua_Graphics_ParticleEmitter_Load00(lua_State* tolua_S)
  10352. {
  10353. #ifndef TOLUA_RELEASE
  10354. tolua_Error tolua_err;
  10355. if (
  10356. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10357. !tolua_isusertype(tolua_S,2,"XMLFile",0,&tolua_err) ||
  10358. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10359. )
  10360. goto tolua_lerror;
  10361. else
  10362. #endif
  10363. {
  10364. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10365. XMLFile* file = ((XMLFile*) tolua_tousertype(tolua_S,2,0));
  10366. #ifndef TOLUA_RELEASE
  10367. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Load'", NULL);
  10368. #endif
  10369. {
  10370. bool tolua_ret = (bool) self->Load(file);
  10371. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  10372. }
  10373. }
  10374. return 1;
  10375. #ifndef TOLUA_RELEASE
  10376. tolua_lerror:
  10377. tolua_error(tolua_S,"#ferror in function 'Load'.",&tolua_err);
  10378. return 0;
  10379. #endif
  10380. }
  10381. #endif //#ifndef TOLUA_DISABLE
  10382. /* method: SetNumParticles of class ParticleEmitter */
  10383. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetNumParticles00
  10384. static int tolua_Graphics_ParticleEmitter_SetNumParticles00(lua_State* tolua_S)
  10385. {
  10386. #ifndef TOLUA_RELEASE
  10387. tolua_Error tolua_err;
  10388. if (
  10389. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10390. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10391. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10392. )
  10393. goto tolua_lerror;
  10394. else
  10395. #endif
  10396. {
  10397. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10398. unsigned num = ((unsigned) tolua_tonumber(tolua_S,2,0));
  10399. #ifndef TOLUA_RELEASE
  10400. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetNumParticles'", NULL);
  10401. #endif
  10402. {
  10403. self->SetNumParticles(num);
  10404. }
  10405. }
  10406. return 0;
  10407. #ifndef TOLUA_RELEASE
  10408. tolua_lerror:
  10409. tolua_error(tolua_S,"#ferror in function 'SetNumParticles'.",&tolua_err);
  10410. return 0;
  10411. #endif
  10412. }
  10413. #endif //#ifndef TOLUA_DISABLE
  10414. /* method: SetEmissionRate of class ParticleEmitter */
  10415. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetEmissionRate00
  10416. static int tolua_Graphics_ParticleEmitter_SetEmissionRate00(lua_State* tolua_S)
  10417. {
  10418. #ifndef TOLUA_RELEASE
  10419. tolua_Error tolua_err;
  10420. if (
  10421. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10422. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10423. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10424. )
  10425. goto tolua_lerror;
  10426. else
  10427. #endif
  10428. {
  10429. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10430. float rate = ((float) tolua_tonumber(tolua_S,2,0));
  10431. #ifndef TOLUA_RELEASE
  10432. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetEmissionRate'", NULL);
  10433. #endif
  10434. {
  10435. self->SetEmissionRate(rate);
  10436. }
  10437. }
  10438. return 0;
  10439. #ifndef TOLUA_RELEASE
  10440. tolua_lerror:
  10441. tolua_error(tolua_S,"#ferror in function 'SetEmissionRate'.",&tolua_err);
  10442. return 0;
  10443. #endif
  10444. }
  10445. #endif //#ifndef TOLUA_DISABLE
  10446. /* method: SetMinEmissionRate of class ParticleEmitter */
  10447. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMinEmissionRate00
  10448. static int tolua_Graphics_ParticleEmitter_SetMinEmissionRate00(lua_State* tolua_S)
  10449. {
  10450. #ifndef TOLUA_RELEASE
  10451. tolua_Error tolua_err;
  10452. if (
  10453. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10454. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10455. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10456. )
  10457. goto tolua_lerror;
  10458. else
  10459. #endif
  10460. {
  10461. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10462. float rate = ((float) tolua_tonumber(tolua_S,2,0));
  10463. #ifndef TOLUA_RELEASE
  10464. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinEmissionRate'", NULL);
  10465. #endif
  10466. {
  10467. self->SetMinEmissionRate(rate);
  10468. }
  10469. }
  10470. return 0;
  10471. #ifndef TOLUA_RELEASE
  10472. tolua_lerror:
  10473. tolua_error(tolua_S,"#ferror in function 'SetMinEmissionRate'.",&tolua_err);
  10474. return 0;
  10475. #endif
  10476. }
  10477. #endif //#ifndef TOLUA_DISABLE
  10478. /* method: SetMaxEmissionRate of class ParticleEmitter */
  10479. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMaxEmissionRate00
  10480. static int tolua_Graphics_ParticleEmitter_SetMaxEmissionRate00(lua_State* tolua_S)
  10481. {
  10482. #ifndef TOLUA_RELEASE
  10483. tolua_Error tolua_err;
  10484. if (
  10485. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10486. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10487. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10488. )
  10489. goto tolua_lerror;
  10490. else
  10491. #endif
  10492. {
  10493. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10494. float rate = ((float) tolua_tonumber(tolua_S,2,0));
  10495. #ifndef TOLUA_RELEASE
  10496. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxEmissionRate'", NULL);
  10497. #endif
  10498. {
  10499. self->SetMaxEmissionRate(rate);
  10500. }
  10501. }
  10502. return 0;
  10503. #ifndef TOLUA_RELEASE
  10504. tolua_lerror:
  10505. tolua_error(tolua_S,"#ferror in function 'SetMaxEmissionRate'.",&tolua_err);
  10506. return 0;
  10507. #endif
  10508. }
  10509. #endif //#ifndef TOLUA_DISABLE
  10510. /* method: SetEmitterType of class ParticleEmitter */
  10511. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetEmitterType00
  10512. static int tolua_Graphics_ParticleEmitter_SetEmitterType00(lua_State* tolua_S)
  10513. {
  10514. #ifndef TOLUA_RELEASE
  10515. tolua_Error tolua_err;
  10516. if (
  10517. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10518. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10519. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10520. )
  10521. goto tolua_lerror;
  10522. else
  10523. #endif
  10524. {
  10525. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10526. EmitterType type = ((EmitterType) (int) tolua_tonumber(tolua_S,2,0));
  10527. #ifndef TOLUA_RELEASE
  10528. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetEmitterType'", NULL);
  10529. #endif
  10530. {
  10531. self->SetEmitterType(type);
  10532. }
  10533. }
  10534. return 0;
  10535. #ifndef TOLUA_RELEASE
  10536. tolua_lerror:
  10537. tolua_error(tolua_S,"#ferror in function 'SetEmitterType'.",&tolua_err);
  10538. return 0;
  10539. #endif
  10540. }
  10541. #endif //#ifndef TOLUA_DISABLE
  10542. /* method: SetEmitterSize of class ParticleEmitter */
  10543. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetEmitterSize00
  10544. static int tolua_Graphics_ParticleEmitter_SetEmitterSize00(lua_State* tolua_S)
  10545. {
  10546. #ifndef TOLUA_RELEASE
  10547. tolua_Error tolua_err;
  10548. if (
  10549. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10550. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  10551. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10552. )
  10553. goto tolua_lerror;
  10554. else
  10555. #endif
  10556. {
  10557. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10558. const Vector3* size = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  10559. #ifndef TOLUA_RELEASE
  10560. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetEmitterSize'", NULL);
  10561. #endif
  10562. {
  10563. self->SetEmitterSize(*size);
  10564. }
  10565. }
  10566. return 0;
  10567. #ifndef TOLUA_RELEASE
  10568. tolua_lerror:
  10569. tolua_error(tolua_S,"#ferror in function 'SetEmitterSize'.",&tolua_err);
  10570. return 0;
  10571. #endif
  10572. }
  10573. #endif //#ifndef TOLUA_DISABLE
  10574. /* method: SetActiveTime of class ParticleEmitter */
  10575. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetActiveTime00
  10576. static int tolua_Graphics_ParticleEmitter_SetActiveTime00(lua_State* tolua_S)
  10577. {
  10578. #ifndef TOLUA_RELEASE
  10579. tolua_Error tolua_err;
  10580. if (
  10581. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10582. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10583. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10584. )
  10585. goto tolua_lerror;
  10586. else
  10587. #endif
  10588. {
  10589. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10590. float time = ((float) tolua_tonumber(tolua_S,2,0));
  10591. #ifndef TOLUA_RELEASE
  10592. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetActiveTime'", NULL);
  10593. #endif
  10594. {
  10595. self->SetActiveTime(time);
  10596. }
  10597. }
  10598. return 0;
  10599. #ifndef TOLUA_RELEASE
  10600. tolua_lerror:
  10601. tolua_error(tolua_S,"#ferror in function 'SetActiveTime'.",&tolua_err);
  10602. return 0;
  10603. #endif
  10604. }
  10605. #endif //#ifndef TOLUA_DISABLE
  10606. /* method: SetInactiveTime of class ParticleEmitter */
  10607. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetInactiveTime00
  10608. static int tolua_Graphics_ParticleEmitter_SetInactiveTime00(lua_State* tolua_S)
  10609. {
  10610. #ifndef TOLUA_RELEASE
  10611. tolua_Error tolua_err;
  10612. if (
  10613. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10614. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10615. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10616. )
  10617. goto tolua_lerror;
  10618. else
  10619. #endif
  10620. {
  10621. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10622. float time = ((float) tolua_tonumber(tolua_S,2,0));
  10623. #ifndef TOLUA_RELEASE
  10624. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetInactiveTime'", NULL);
  10625. #endif
  10626. {
  10627. self->SetInactiveTime(time);
  10628. }
  10629. }
  10630. return 0;
  10631. #ifndef TOLUA_RELEASE
  10632. tolua_lerror:
  10633. tolua_error(tolua_S,"#ferror in function 'SetInactiveTime'.",&tolua_err);
  10634. return 0;
  10635. #endif
  10636. }
  10637. #endif //#ifndef TOLUA_DISABLE
  10638. /* method: SetEmitting of class ParticleEmitter */
  10639. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetEmitting00
  10640. static int tolua_Graphics_ParticleEmitter_SetEmitting00(lua_State* tolua_S)
  10641. {
  10642. #ifndef TOLUA_RELEASE
  10643. tolua_Error tolua_err;
  10644. if (
  10645. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10646. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  10647. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  10648. !tolua_isnoobj(tolua_S,4,&tolua_err)
  10649. )
  10650. goto tolua_lerror;
  10651. else
  10652. #endif
  10653. {
  10654. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10655. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  10656. bool resetPeriod = ((bool) tolua_toboolean(tolua_S,3,false));
  10657. #ifndef TOLUA_RELEASE
  10658. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetEmitting'", NULL);
  10659. #endif
  10660. {
  10661. self->SetEmitting(enable,resetPeriod);
  10662. }
  10663. }
  10664. return 0;
  10665. #ifndef TOLUA_RELEASE
  10666. tolua_lerror:
  10667. tolua_error(tolua_S,"#ferror in function 'SetEmitting'.",&tolua_err);
  10668. return 0;
  10669. #endif
  10670. }
  10671. #endif //#ifndef TOLUA_DISABLE
  10672. /* method: SetUpdateInvisible of class ParticleEmitter */
  10673. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetUpdateInvisible00
  10674. static int tolua_Graphics_ParticleEmitter_SetUpdateInvisible00(lua_State* tolua_S)
  10675. {
  10676. #ifndef TOLUA_RELEASE
  10677. tolua_Error tolua_err;
  10678. if (
  10679. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10680. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  10681. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10682. )
  10683. goto tolua_lerror;
  10684. else
  10685. #endif
  10686. {
  10687. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10688. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  10689. #ifndef TOLUA_RELEASE
  10690. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetUpdateInvisible'", NULL);
  10691. #endif
  10692. {
  10693. self->SetUpdateInvisible(enable);
  10694. }
  10695. }
  10696. return 0;
  10697. #ifndef TOLUA_RELEASE
  10698. tolua_lerror:
  10699. tolua_error(tolua_S,"#ferror in function 'SetUpdateInvisible'.",&tolua_err);
  10700. return 0;
  10701. #endif
  10702. }
  10703. #endif //#ifndef TOLUA_DISABLE
  10704. /* method: SetTimeToLive of class ParticleEmitter */
  10705. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetTimeToLive00
  10706. static int tolua_Graphics_ParticleEmitter_SetTimeToLive00(lua_State* tolua_S)
  10707. {
  10708. #ifndef TOLUA_RELEASE
  10709. tolua_Error tolua_err;
  10710. if (
  10711. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10712. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10713. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10714. )
  10715. goto tolua_lerror;
  10716. else
  10717. #endif
  10718. {
  10719. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10720. float time = ((float) tolua_tonumber(tolua_S,2,0));
  10721. #ifndef TOLUA_RELEASE
  10722. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTimeToLive'", NULL);
  10723. #endif
  10724. {
  10725. self->SetTimeToLive(time);
  10726. }
  10727. }
  10728. return 0;
  10729. #ifndef TOLUA_RELEASE
  10730. tolua_lerror:
  10731. tolua_error(tolua_S,"#ferror in function 'SetTimeToLive'.",&tolua_err);
  10732. return 0;
  10733. #endif
  10734. }
  10735. #endif //#ifndef TOLUA_DISABLE
  10736. /* method: SetMinTimeToLive of class ParticleEmitter */
  10737. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMinTimeToLive00
  10738. static int tolua_Graphics_ParticleEmitter_SetMinTimeToLive00(lua_State* tolua_S)
  10739. {
  10740. #ifndef TOLUA_RELEASE
  10741. tolua_Error tolua_err;
  10742. if (
  10743. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10744. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10745. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10746. )
  10747. goto tolua_lerror;
  10748. else
  10749. #endif
  10750. {
  10751. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10752. float time = ((float) tolua_tonumber(tolua_S,2,0));
  10753. #ifndef TOLUA_RELEASE
  10754. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinTimeToLive'", NULL);
  10755. #endif
  10756. {
  10757. self->SetMinTimeToLive(time);
  10758. }
  10759. }
  10760. return 0;
  10761. #ifndef TOLUA_RELEASE
  10762. tolua_lerror:
  10763. tolua_error(tolua_S,"#ferror in function 'SetMinTimeToLive'.",&tolua_err);
  10764. return 0;
  10765. #endif
  10766. }
  10767. #endif //#ifndef TOLUA_DISABLE
  10768. /* method: SetMaxTimeToLive of class ParticleEmitter */
  10769. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMaxTimeToLive00
  10770. static int tolua_Graphics_ParticleEmitter_SetMaxTimeToLive00(lua_State* tolua_S)
  10771. {
  10772. #ifndef TOLUA_RELEASE
  10773. tolua_Error tolua_err;
  10774. if (
  10775. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10776. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10777. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10778. )
  10779. goto tolua_lerror;
  10780. else
  10781. #endif
  10782. {
  10783. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10784. float time = ((float) tolua_tonumber(tolua_S,2,0));
  10785. #ifndef TOLUA_RELEASE
  10786. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxTimeToLive'", NULL);
  10787. #endif
  10788. {
  10789. self->SetMaxTimeToLive(time);
  10790. }
  10791. }
  10792. return 0;
  10793. #ifndef TOLUA_RELEASE
  10794. tolua_lerror:
  10795. tolua_error(tolua_S,"#ferror in function 'SetMaxTimeToLive'.",&tolua_err);
  10796. return 0;
  10797. #endif
  10798. }
  10799. #endif //#ifndef TOLUA_DISABLE
  10800. /* method: SetParticleSize of class ParticleEmitter */
  10801. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetParticleSize00
  10802. static int tolua_Graphics_ParticleEmitter_SetParticleSize00(lua_State* tolua_S)
  10803. {
  10804. #ifndef TOLUA_RELEASE
  10805. tolua_Error tolua_err;
  10806. if (
  10807. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10808. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector2",0,&tolua_err)) ||
  10809. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10810. )
  10811. goto tolua_lerror;
  10812. else
  10813. #endif
  10814. {
  10815. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10816. const Vector2* size = ((const Vector2*) tolua_tousertype(tolua_S,2,0));
  10817. #ifndef TOLUA_RELEASE
  10818. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetParticleSize'", NULL);
  10819. #endif
  10820. {
  10821. self->SetParticleSize(*size);
  10822. }
  10823. }
  10824. return 0;
  10825. #ifndef TOLUA_RELEASE
  10826. tolua_lerror:
  10827. tolua_error(tolua_S,"#ferror in function 'SetParticleSize'.",&tolua_err);
  10828. return 0;
  10829. #endif
  10830. }
  10831. #endif //#ifndef TOLUA_DISABLE
  10832. /* method: SetMinParticleSize of class ParticleEmitter */
  10833. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMinParticleSize00
  10834. static int tolua_Graphics_ParticleEmitter_SetMinParticleSize00(lua_State* tolua_S)
  10835. {
  10836. #ifndef TOLUA_RELEASE
  10837. tolua_Error tolua_err;
  10838. if (
  10839. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10840. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector2",0,&tolua_err)) ||
  10841. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10842. )
  10843. goto tolua_lerror;
  10844. else
  10845. #endif
  10846. {
  10847. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10848. const Vector2* size = ((const Vector2*) tolua_tousertype(tolua_S,2,0));
  10849. #ifndef TOLUA_RELEASE
  10850. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinParticleSize'", NULL);
  10851. #endif
  10852. {
  10853. self->SetMinParticleSize(*size);
  10854. }
  10855. }
  10856. return 0;
  10857. #ifndef TOLUA_RELEASE
  10858. tolua_lerror:
  10859. tolua_error(tolua_S,"#ferror in function 'SetMinParticleSize'.",&tolua_err);
  10860. return 0;
  10861. #endif
  10862. }
  10863. #endif //#ifndef TOLUA_DISABLE
  10864. /* method: SetMaxParticleSize of class ParticleEmitter */
  10865. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMaxParticleSize00
  10866. static int tolua_Graphics_ParticleEmitter_SetMaxParticleSize00(lua_State* tolua_S)
  10867. {
  10868. #ifndef TOLUA_RELEASE
  10869. tolua_Error tolua_err;
  10870. if (
  10871. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10872. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector2",0,&tolua_err)) ||
  10873. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10874. )
  10875. goto tolua_lerror;
  10876. else
  10877. #endif
  10878. {
  10879. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10880. const Vector2* size = ((const Vector2*) tolua_tousertype(tolua_S,2,0));
  10881. #ifndef TOLUA_RELEASE
  10882. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxParticleSize'", NULL);
  10883. #endif
  10884. {
  10885. self->SetMaxParticleSize(*size);
  10886. }
  10887. }
  10888. return 0;
  10889. #ifndef TOLUA_RELEASE
  10890. tolua_lerror:
  10891. tolua_error(tolua_S,"#ferror in function 'SetMaxParticleSize'.",&tolua_err);
  10892. return 0;
  10893. #endif
  10894. }
  10895. #endif //#ifndef TOLUA_DISABLE
  10896. /* method: SetMinDirection of class ParticleEmitter */
  10897. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMinDirection00
  10898. static int tolua_Graphics_ParticleEmitter_SetMinDirection00(lua_State* tolua_S)
  10899. {
  10900. #ifndef TOLUA_RELEASE
  10901. tolua_Error tolua_err;
  10902. if (
  10903. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10904. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  10905. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10906. )
  10907. goto tolua_lerror;
  10908. else
  10909. #endif
  10910. {
  10911. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10912. const Vector3* direction = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  10913. #ifndef TOLUA_RELEASE
  10914. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinDirection'", NULL);
  10915. #endif
  10916. {
  10917. self->SetMinDirection(*direction);
  10918. }
  10919. }
  10920. return 0;
  10921. #ifndef TOLUA_RELEASE
  10922. tolua_lerror:
  10923. tolua_error(tolua_S,"#ferror in function 'SetMinDirection'.",&tolua_err);
  10924. return 0;
  10925. #endif
  10926. }
  10927. #endif //#ifndef TOLUA_DISABLE
  10928. /* method: SetMaxDirection of class ParticleEmitter */
  10929. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMaxDirection00
  10930. static int tolua_Graphics_ParticleEmitter_SetMaxDirection00(lua_State* tolua_S)
  10931. {
  10932. #ifndef TOLUA_RELEASE
  10933. tolua_Error tolua_err;
  10934. if (
  10935. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10936. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  10937. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10938. )
  10939. goto tolua_lerror;
  10940. else
  10941. #endif
  10942. {
  10943. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10944. const Vector3* direction = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  10945. #ifndef TOLUA_RELEASE
  10946. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxDirection'", NULL);
  10947. #endif
  10948. {
  10949. self->SetMaxDirection(*direction);
  10950. }
  10951. }
  10952. return 0;
  10953. #ifndef TOLUA_RELEASE
  10954. tolua_lerror:
  10955. tolua_error(tolua_S,"#ferror in function 'SetMaxDirection'.",&tolua_err);
  10956. return 0;
  10957. #endif
  10958. }
  10959. #endif //#ifndef TOLUA_DISABLE
  10960. /* method: SetVelocity of class ParticleEmitter */
  10961. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetVelocity00
  10962. static int tolua_Graphics_ParticleEmitter_SetVelocity00(lua_State* tolua_S)
  10963. {
  10964. #ifndef TOLUA_RELEASE
  10965. tolua_Error tolua_err;
  10966. if (
  10967. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  10968. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10969. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10970. )
  10971. goto tolua_lerror;
  10972. else
  10973. #endif
  10974. {
  10975. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  10976. float velocity = ((float) tolua_tonumber(tolua_S,2,0));
  10977. #ifndef TOLUA_RELEASE
  10978. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetVelocity'", NULL);
  10979. #endif
  10980. {
  10981. self->SetVelocity(velocity);
  10982. }
  10983. }
  10984. return 0;
  10985. #ifndef TOLUA_RELEASE
  10986. tolua_lerror:
  10987. tolua_error(tolua_S,"#ferror in function 'SetVelocity'.",&tolua_err);
  10988. return 0;
  10989. #endif
  10990. }
  10991. #endif //#ifndef TOLUA_DISABLE
  10992. /* method: SetMinVelocity of class ParticleEmitter */
  10993. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMinVelocity00
  10994. static int tolua_Graphics_ParticleEmitter_SetMinVelocity00(lua_State* tolua_S)
  10995. {
  10996. #ifndef TOLUA_RELEASE
  10997. tolua_Error tolua_err;
  10998. if (
  10999. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11000. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11001. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11002. )
  11003. goto tolua_lerror;
  11004. else
  11005. #endif
  11006. {
  11007. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11008. float velocity = ((float) tolua_tonumber(tolua_S,2,0));
  11009. #ifndef TOLUA_RELEASE
  11010. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinVelocity'", NULL);
  11011. #endif
  11012. {
  11013. self->SetMinVelocity(velocity);
  11014. }
  11015. }
  11016. return 0;
  11017. #ifndef TOLUA_RELEASE
  11018. tolua_lerror:
  11019. tolua_error(tolua_S,"#ferror in function 'SetMinVelocity'.",&tolua_err);
  11020. return 0;
  11021. #endif
  11022. }
  11023. #endif //#ifndef TOLUA_DISABLE
  11024. /* method: SetMaxVelocity of class ParticleEmitter */
  11025. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMaxVelocity00
  11026. static int tolua_Graphics_ParticleEmitter_SetMaxVelocity00(lua_State* tolua_S)
  11027. {
  11028. #ifndef TOLUA_RELEASE
  11029. tolua_Error tolua_err;
  11030. if (
  11031. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11032. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11033. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11034. )
  11035. goto tolua_lerror;
  11036. else
  11037. #endif
  11038. {
  11039. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11040. float velocity = ((float) tolua_tonumber(tolua_S,2,0));
  11041. #ifndef TOLUA_RELEASE
  11042. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxVelocity'", NULL);
  11043. #endif
  11044. {
  11045. self->SetMaxVelocity(velocity);
  11046. }
  11047. }
  11048. return 0;
  11049. #ifndef TOLUA_RELEASE
  11050. tolua_lerror:
  11051. tolua_error(tolua_S,"#ferror in function 'SetMaxVelocity'.",&tolua_err);
  11052. return 0;
  11053. #endif
  11054. }
  11055. #endif //#ifndef TOLUA_DISABLE
  11056. /* method: SetRotation of class ParticleEmitter */
  11057. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetRotation00
  11058. static int tolua_Graphics_ParticleEmitter_SetRotation00(lua_State* tolua_S)
  11059. {
  11060. #ifndef TOLUA_RELEASE
  11061. tolua_Error tolua_err;
  11062. if (
  11063. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11064. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11065. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11066. )
  11067. goto tolua_lerror;
  11068. else
  11069. #endif
  11070. {
  11071. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11072. float rotation = ((float) tolua_tonumber(tolua_S,2,0));
  11073. #ifndef TOLUA_RELEASE
  11074. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRotation'", NULL);
  11075. #endif
  11076. {
  11077. self->SetRotation(rotation);
  11078. }
  11079. }
  11080. return 0;
  11081. #ifndef TOLUA_RELEASE
  11082. tolua_lerror:
  11083. tolua_error(tolua_S,"#ferror in function 'SetRotation'.",&tolua_err);
  11084. return 0;
  11085. #endif
  11086. }
  11087. #endif //#ifndef TOLUA_DISABLE
  11088. /* method: SetMinRotation of class ParticleEmitter */
  11089. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMinRotation00
  11090. static int tolua_Graphics_ParticleEmitter_SetMinRotation00(lua_State* tolua_S)
  11091. {
  11092. #ifndef TOLUA_RELEASE
  11093. tolua_Error tolua_err;
  11094. if (
  11095. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11096. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11097. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11098. )
  11099. goto tolua_lerror;
  11100. else
  11101. #endif
  11102. {
  11103. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11104. float rotation = ((float) tolua_tonumber(tolua_S,2,0));
  11105. #ifndef TOLUA_RELEASE
  11106. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinRotation'", NULL);
  11107. #endif
  11108. {
  11109. self->SetMinRotation(rotation);
  11110. }
  11111. }
  11112. return 0;
  11113. #ifndef TOLUA_RELEASE
  11114. tolua_lerror:
  11115. tolua_error(tolua_S,"#ferror in function 'SetMinRotation'.",&tolua_err);
  11116. return 0;
  11117. #endif
  11118. }
  11119. #endif //#ifndef TOLUA_DISABLE
  11120. /* method: SetMaxRotation of class ParticleEmitter */
  11121. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMaxRotation00
  11122. static int tolua_Graphics_ParticleEmitter_SetMaxRotation00(lua_State* tolua_S)
  11123. {
  11124. #ifndef TOLUA_RELEASE
  11125. tolua_Error tolua_err;
  11126. if (
  11127. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11128. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11129. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11130. )
  11131. goto tolua_lerror;
  11132. else
  11133. #endif
  11134. {
  11135. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11136. float rotation = ((float) tolua_tonumber(tolua_S,2,0));
  11137. #ifndef TOLUA_RELEASE
  11138. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxRotation'", NULL);
  11139. #endif
  11140. {
  11141. self->SetMaxRotation(rotation);
  11142. }
  11143. }
  11144. return 0;
  11145. #ifndef TOLUA_RELEASE
  11146. tolua_lerror:
  11147. tolua_error(tolua_S,"#ferror in function 'SetMaxRotation'.",&tolua_err);
  11148. return 0;
  11149. #endif
  11150. }
  11151. #endif //#ifndef TOLUA_DISABLE
  11152. /* method: SetRotationSpeed of class ParticleEmitter */
  11153. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetRotationSpeed00
  11154. static int tolua_Graphics_ParticleEmitter_SetRotationSpeed00(lua_State* tolua_S)
  11155. {
  11156. #ifndef TOLUA_RELEASE
  11157. tolua_Error tolua_err;
  11158. if (
  11159. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11160. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11161. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11162. )
  11163. goto tolua_lerror;
  11164. else
  11165. #endif
  11166. {
  11167. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11168. float speed = ((float) tolua_tonumber(tolua_S,2,0));
  11169. #ifndef TOLUA_RELEASE
  11170. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRotationSpeed'", NULL);
  11171. #endif
  11172. {
  11173. self->SetRotationSpeed(speed);
  11174. }
  11175. }
  11176. return 0;
  11177. #ifndef TOLUA_RELEASE
  11178. tolua_lerror:
  11179. tolua_error(tolua_S,"#ferror in function 'SetRotationSpeed'.",&tolua_err);
  11180. return 0;
  11181. #endif
  11182. }
  11183. #endif //#ifndef TOLUA_DISABLE
  11184. /* method: SetMinRotationSpeed of class ParticleEmitter */
  11185. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMinRotationSpeed00
  11186. static int tolua_Graphics_ParticleEmitter_SetMinRotationSpeed00(lua_State* tolua_S)
  11187. {
  11188. #ifndef TOLUA_RELEASE
  11189. tolua_Error tolua_err;
  11190. if (
  11191. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11192. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11193. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11194. )
  11195. goto tolua_lerror;
  11196. else
  11197. #endif
  11198. {
  11199. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11200. float speed = ((float) tolua_tonumber(tolua_S,2,0));
  11201. #ifndef TOLUA_RELEASE
  11202. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinRotationSpeed'", NULL);
  11203. #endif
  11204. {
  11205. self->SetMinRotationSpeed(speed);
  11206. }
  11207. }
  11208. return 0;
  11209. #ifndef TOLUA_RELEASE
  11210. tolua_lerror:
  11211. tolua_error(tolua_S,"#ferror in function 'SetMinRotationSpeed'.",&tolua_err);
  11212. return 0;
  11213. #endif
  11214. }
  11215. #endif //#ifndef TOLUA_DISABLE
  11216. /* method: SetMaxRotationSpeed of class ParticleEmitter */
  11217. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetMaxRotationSpeed00
  11218. static int tolua_Graphics_ParticleEmitter_SetMaxRotationSpeed00(lua_State* tolua_S)
  11219. {
  11220. #ifndef TOLUA_RELEASE
  11221. tolua_Error tolua_err;
  11222. if (
  11223. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11224. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11225. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11226. )
  11227. goto tolua_lerror;
  11228. else
  11229. #endif
  11230. {
  11231. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11232. float speed = ((float) tolua_tonumber(tolua_S,2,0));
  11233. #ifndef TOLUA_RELEASE
  11234. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxRotationSpeed'", NULL);
  11235. #endif
  11236. {
  11237. self->SetMaxRotationSpeed(speed);
  11238. }
  11239. }
  11240. return 0;
  11241. #ifndef TOLUA_RELEASE
  11242. tolua_lerror:
  11243. tolua_error(tolua_S,"#ferror in function 'SetMaxRotationSpeed'.",&tolua_err);
  11244. return 0;
  11245. #endif
  11246. }
  11247. #endif //#ifndef TOLUA_DISABLE
  11248. /* method: SetConstantForce of class ParticleEmitter */
  11249. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetConstantForce00
  11250. static int tolua_Graphics_ParticleEmitter_SetConstantForce00(lua_State* tolua_S)
  11251. {
  11252. #ifndef TOLUA_RELEASE
  11253. tolua_Error tolua_err;
  11254. if (
  11255. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11256. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  11257. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11258. )
  11259. goto tolua_lerror;
  11260. else
  11261. #endif
  11262. {
  11263. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11264. const Vector3* force = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  11265. #ifndef TOLUA_RELEASE
  11266. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetConstantForce'", NULL);
  11267. #endif
  11268. {
  11269. self->SetConstantForce(*force);
  11270. }
  11271. }
  11272. return 0;
  11273. #ifndef TOLUA_RELEASE
  11274. tolua_lerror:
  11275. tolua_error(tolua_S,"#ferror in function 'SetConstantForce'.",&tolua_err);
  11276. return 0;
  11277. #endif
  11278. }
  11279. #endif //#ifndef TOLUA_DISABLE
  11280. /* method: SetDampingForce of class ParticleEmitter */
  11281. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetDampingForce00
  11282. static int tolua_Graphics_ParticleEmitter_SetDampingForce00(lua_State* tolua_S)
  11283. {
  11284. #ifndef TOLUA_RELEASE
  11285. tolua_Error tolua_err;
  11286. if (
  11287. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11288. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11289. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11290. )
  11291. goto tolua_lerror;
  11292. else
  11293. #endif
  11294. {
  11295. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11296. float force = ((float) tolua_tonumber(tolua_S,2,0));
  11297. #ifndef TOLUA_RELEASE
  11298. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDampingForce'", NULL);
  11299. #endif
  11300. {
  11301. self->SetDampingForce(force);
  11302. }
  11303. }
  11304. return 0;
  11305. #ifndef TOLUA_RELEASE
  11306. tolua_lerror:
  11307. tolua_error(tolua_S,"#ferror in function 'SetDampingForce'.",&tolua_err);
  11308. return 0;
  11309. #endif
  11310. }
  11311. #endif //#ifndef TOLUA_DISABLE
  11312. /* method: SetSizeAdd of class ParticleEmitter */
  11313. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetSizeAdd00
  11314. static int tolua_Graphics_ParticleEmitter_SetSizeAdd00(lua_State* tolua_S)
  11315. {
  11316. #ifndef TOLUA_RELEASE
  11317. tolua_Error tolua_err;
  11318. if (
  11319. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11320. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11321. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11322. )
  11323. goto tolua_lerror;
  11324. else
  11325. #endif
  11326. {
  11327. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11328. float sizeAdd = ((float) tolua_tonumber(tolua_S,2,0));
  11329. #ifndef TOLUA_RELEASE
  11330. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSizeAdd'", NULL);
  11331. #endif
  11332. {
  11333. self->SetSizeAdd(sizeAdd);
  11334. }
  11335. }
  11336. return 0;
  11337. #ifndef TOLUA_RELEASE
  11338. tolua_lerror:
  11339. tolua_error(tolua_S,"#ferror in function 'SetSizeAdd'.",&tolua_err);
  11340. return 0;
  11341. #endif
  11342. }
  11343. #endif //#ifndef TOLUA_DISABLE
  11344. /* method: SetSizeMul of class ParticleEmitter */
  11345. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetSizeMul00
  11346. static int tolua_Graphics_ParticleEmitter_SetSizeMul00(lua_State* tolua_S)
  11347. {
  11348. #ifndef TOLUA_RELEASE
  11349. tolua_Error tolua_err;
  11350. if (
  11351. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11352. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11353. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11354. )
  11355. goto tolua_lerror;
  11356. else
  11357. #endif
  11358. {
  11359. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11360. float sizeMul = ((float) tolua_tonumber(tolua_S,2,0));
  11361. #ifndef TOLUA_RELEASE
  11362. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSizeMul'", NULL);
  11363. #endif
  11364. {
  11365. self->SetSizeMul(sizeMul);
  11366. }
  11367. }
  11368. return 0;
  11369. #ifndef TOLUA_RELEASE
  11370. tolua_lerror:
  11371. tolua_error(tolua_S,"#ferror in function 'SetSizeMul'.",&tolua_err);
  11372. return 0;
  11373. #endif
  11374. }
  11375. #endif //#ifndef TOLUA_DISABLE
  11376. /* method: SetColor of class ParticleEmitter */
  11377. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetColor00
  11378. static int tolua_Graphics_ParticleEmitter_SetColor00(lua_State* tolua_S)
  11379. {
  11380. #ifndef TOLUA_RELEASE
  11381. tolua_Error tolua_err;
  11382. if (
  11383. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11384. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  11385. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11386. )
  11387. goto tolua_lerror;
  11388. else
  11389. #endif
  11390. {
  11391. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11392. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  11393. #ifndef TOLUA_RELEASE
  11394. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetColor'", NULL);
  11395. #endif
  11396. {
  11397. self->SetColor(*color);
  11398. }
  11399. }
  11400. return 0;
  11401. #ifndef TOLUA_RELEASE
  11402. tolua_lerror:
  11403. tolua_error(tolua_S,"#ferror in function 'SetColor'.",&tolua_err);
  11404. return 0;
  11405. #endif
  11406. }
  11407. #endif //#ifndef TOLUA_DISABLE
  11408. /* method: SetNumColors of class ParticleEmitter */
  11409. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetNumColors00
  11410. static int tolua_Graphics_ParticleEmitter_SetNumColors00(lua_State* tolua_S)
  11411. {
  11412. #ifndef TOLUA_RELEASE
  11413. tolua_Error tolua_err;
  11414. if (
  11415. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11416. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11417. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11418. )
  11419. goto tolua_lerror;
  11420. else
  11421. #endif
  11422. {
  11423. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11424. unsigned num = ((unsigned) tolua_tonumber(tolua_S,2,0));
  11425. #ifndef TOLUA_RELEASE
  11426. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetNumColors'", NULL);
  11427. #endif
  11428. {
  11429. self->SetNumColors(num);
  11430. }
  11431. }
  11432. return 0;
  11433. #ifndef TOLUA_RELEASE
  11434. tolua_lerror:
  11435. tolua_error(tolua_S,"#ferror in function 'SetNumColors'.",&tolua_err);
  11436. return 0;
  11437. #endif
  11438. }
  11439. #endif //#ifndef TOLUA_DISABLE
  11440. /* method: SetNumTextureFrames of class ParticleEmitter */
  11441. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_SetNumTextureFrames00
  11442. static int tolua_Graphics_ParticleEmitter_SetNumTextureFrames00(lua_State* tolua_S)
  11443. {
  11444. #ifndef TOLUA_RELEASE
  11445. tolua_Error tolua_err;
  11446. if (
  11447. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  11448. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11449. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11450. )
  11451. goto tolua_lerror;
  11452. else
  11453. #endif
  11454. {
  11455. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11456. unsigned num = ((unsigned) tolua_tonumber(tolua_S,2,0));
  11457. #ifndef TOLUA_RELEASE
  11458. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetNumTextureFrames'", NULL);
  11459. #endif
  11460. {
  11461. self->SetNumTextureFrames(num);
  11462. }
  11463. }
  11464. return 0;
  11465. #ifndef TOLUA_RELEASE
  11466. tolua_lerror:
  11467. tolua_error(tolua_S,"#ferror in function 'SetNumTextureFrames'.",&tolua_err);
  11468. return 0;
  11469. #endif
  11470. }
  11471. #endif //#ifndef TOLUA_DISABLE
  11472. /* method: GetNumParticles of class ParticleEmitter */
  11473. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetNumParticles00
  11474. static int tolua_Graphics_ParticleEmitter_GetNumParticles00(lua_State* tolua_S)
  11475. {
  11476. #ifndef TOLUA_RELEASE
  11477. tolua_Error tolua_err;
  11478. if (
  11479. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  11480. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11481. )
  11482. goto tolua_lerror;
  11483. else
  11484. #endif
  11485. {
  11486. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11487. #ifndef TOLUA_RELEASE
  11488. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumParticles'", NULL);
  11489. #endif
  11490. {
  11491. unsigned tolua_ret = (unsigned) self->GetNumParticles();
  11492. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11493. }
  11494. }
  11495. return 1;
  11496. #ifndef TOLUA_RELEASE
  11497. tolua_lerror:
  11498. tolua_error(tolua_S,"#ferror in function 'GetNumParticles'.",&tolua_err);
  11499. return 0;
  11500. #endif
  11501. }
  11502. #endif //#ifndef TOLUA_DISABLE
  11503. /* method: IsEmitting of class ParticleEmitter */
  11504. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_IsEmitting00
  11505. static int tolua_Graphics_ParticleEmitter_IsEmitting00(lua_State* tolua_S)
  11506. {
  11507. #ifndef TOLUA_RELEASE
  11508. tolua_Error tolua_err;
  11509. if (
  11510. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  11511. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11512. )
  11513. goto tolua_lerror;
  11514. else
  11515. #endif
  11516. {
  11517. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11518. #ifndef TOLUA_RELEASE
  11519. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsEmitting'", NULL);
  11520. #endif
  11521. {
  11522. bool tolua_ret = (bool) self->IsEmitting();
  11523. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  11524. }
  11525. }
  11526. return 1;
  11527. #ifndef TOLUA_RELEASE
  11528. tolua_lerror:
  11529. tolua_error(tolua_S,"#ferror in function 'IsEmitting'.",&tolua_err);
  11530. return 0;
  11531. #endif
  11532. }
  11533. #endif //#ifndef TOLUA_DISABLE
  11534. /* method: GetUpdateInvisible of class ParticleEmitter */
  11535. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetUpdateInvisible00
  11536. static int tolua_Graphics_ParticleEmitter_GetUpdateInvisible00(lua_State* tolua_S)
  11537. {
  11538. #ifndef TOLUA_RELEASE
  11539. tolua_Error tolua_err;
  11540. if (
  11541. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  11542. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11543. )
  11544. goto tolua_lerror;
  11545. else
  11546. #endif
  11547. {
  11548. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11549. #ifndef TOLUA_RELEASE
  11550. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetUpdateInvisible'", NULL);
  11551. #endif
  11552. {
  11553. bool tolua_ret = (bool) self->GetUpdateInvisible();
  11554. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  11555. }
  11556. }
  11557. return 1;
  11558. #ifndef TOLUA_RELEASE
  11559. tolua_lerror:
  11560. tolua_error(tolua_S,"#ferror in function 'GetUpdateInvisible'.",&tolua_err);
  11561. return 0;
  11562. #endif
  11563. }
  11564. #endif //#ifndef TOLUA_DISABLE
  11565. /* method: GetMinEmissionRate of class ParticleEmitter */
  11566. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMinEmissionRate00
  11567. static int tolua_Graphics_ParticleEmitter_GetMinEmissionRate00(lua_State* tolua_S)
  11568. {
  11569. #ifndef TOLUA_RELEASE
  11570. tolua_Error tolua_err;
  11571. if (
  11572. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  11573. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11574. )
  11575. goto tolua_lerror;
  11576. else
  11577. #endif
  11578. {
  11579. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11580. #ifndef TOLUA_RELEASE
  11581. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinEmissionRate'", NULL);
  11582. #endif
  11583. {
  11584. float tolua_ret = (float) self->GetMinEmissionRate();
  11585. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11586. }
  11587. }
  11588. return 1;
  11589. #ifndef TOLUA_RELEASE
  11590. tolua_lerror:
  11591. tolua_error(tolua_S,"#ferror in function 'GetMinEmissionRate'.",&tolua_err);
  11592. return 0;
  11593. #endif
  11594. }
  11595. #endif //#ifndef TOLUA_DISABLE
  11596. /* method: GetMaxEmissionRate of class ParticleEmitter */
  11597. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMaxEmissionRate00
  11598. static int tolua_Graphics_ParticleEmitter_GetMaxEmissionRate00(lua_State* tolua_S)
  11599. {
  11600. #ifndef TOLUA_RELEASE
  11601. tolua_Error tolua_err;
  11602. if (
  11603. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  11604. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11605. )
  11606. goto tolua_lerror;
  11607. else
  11608. #endif
  11609. {
  11610. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11611. #ifndef TOLUA_RELEASE
  11612. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxEmissionRate'", NULL);
  11613. #endif
  11614. {
  11615. float tolua_ret = (float) self->GetMaxEmissionRate();
  11616. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11617. }
  11618. }
  11619. return 1;
  11620. #ifndef TOLUA_RELEASE
  11621. tolua_lerror:
  11622. tolua_error(tolua_S,"#ferror in function 'GetMaxEmissionRate'.",&tolua_err);
  11623. return 0;
  11624. #endif
  11625. }
  11626. #endif //#ifndef TOLUA_DISABLE
  11627. /* method: GetEmitterType of class ParticleEmitter */
  11628. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetEmitterType00
  11629. static int tolua_Graphics_ParticleEmitter_GetEmitterType00(lua_State* tolua_S)
  11630. {
  11631. #ifndef TOLUA_RELEASE
  11632. tolua_Error tolua_err;
  11633. if (
  11634. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  11635. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11636. )
  11637. goto tolua_lerror;
  11638. else
  11639. #endif
  11640. {
  11641. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11642. #ifndef TOLUA_RELEASE
  11643. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetEmitterType'", NULL);
  11644. #endif
  11645. {
  11646. EmitterType tolua_ret = (EmitterType) self->GetEmitterType();
  11647. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11648. }
  11649. }
  11650. return 1;
  11651. #ifndef TOLUA_RELEASE
  11652. tolua_lerror:
  11653. tolua_error(tolua_S,"#ferror in function 'GetEmitterType'.",&tolua_err);
  11654. return 0;
  11655. #endif
  11656. }
  11657. #endif //#ifndef TOLUA_DISABLE
  11658. /* method: GetEmitterSize of class ParticleEmitter */
  11659. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetEmitterSize00
  11660. static int tolua_Graphics_ParticleEmitter_GetEmitterSize00(lua_State* tolua_S)
  11661. {
  11662. #ifndef TOLUA_RELEASE
  11663. tolua_Error tolua_err;
  11664. if (
  11665. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  11666. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11667. )
  11668. goto tolua_lerror;
  11669. else
  11670. #endif
  11671. {
  11672. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11673. #ifndef TOLUA_RELEASE
  11674. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetEmitterSize'", NULL);
  11675. #endif
  11676. {
  11677. const Vector3& tolua_ret = (const Vector3&) self->GetEmitterSize();
  11678. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector3");
  11679. }
  11680. }
  11681. return 1;
  11682. #ifndef TOLUA_RELEASE
  11683. tolua_lerror:
  11684. tolua_error(tolua_S,"#ferror in function 'GetEmitterSize'.",&tolua_err);
  11685. return 0;
  11686. #endif
  11687. }
  11688. #endif //#ifndef TOLUA_DISABLE
  11689. /* method: GetActiveTime of class ParticleEmitter */
  11690. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetActiveTime00
  11691. static int tolua_Graphics_ParticleEmitter_GetActiveTime00(lua_State* tolua_S)
  11692. {
  11693. #ifndef TOLUA_RELEASE
  11694. tolua_Error tolua_err;
  11695. if (
  11696. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  11697. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11698. )
  11699. goto tolua_lerror;
  11700. else
  11701. #endif
  11702. {
  11703. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11704. #ifndef TOLUA_RELEASE
  11705. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetActiveTime'", NULL);
  11706. #endif
  11707. {
  11708. float tolua_ret = (float) self->GetActiveTime();
  11709. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11710. }
  11711. }
  11712. return 1;
  11713. #ifndef TOLUA_RELEASE
  11714. tolua_lerror:
  11715. tolua_error(tolua_S,"#ferror in function 'GetActiveTime'.",&tolua_err);
  11716. return 0;
  11717. #endif
  11718. }
  11719. #endif //#ifndef TOLUA_DISABLE
  11720. /* method: GetInactiveTime of class ParticleEmitter */
  11721. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetInactiveTime00
  11722. static int tolua_Graphics_ParticleEmitter_GetInactiveTime00(lua_State* tolua_S)
  11723. {
  11724. #ifndef TOLUA_RELEASE
  11725. tolua_Error tolua_err;
  11726. if (
  11727. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  11728. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11729. )
  11730. goto tolua_lerror;
  11731. else
  11732. #endif
  11733. {
  11734. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11735. #ifndef TOLUA_RELEASE
  11736. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetInactiveTime'", NULL);
  11737. #endif
  11738. {
  11739. float tolua_ret = (float) self->GetInactiveTime();
  11740. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11741. }
  11742. }
  11743. return 1;
  11744. #ifndef TOLUA_RELEASE
  11745. tolua_lerror:
  11746. tolua_error(tolua_S,"#ferror in function 'GetInactiveTime'.",&tolua_err);
  11747. return 0;
  11748. #endif
  11749. }
  11750. #endif //#ifndef TOLUA_DISABLE
  11751. /* method: GetMinTimeToLive of class ParticleEmitter */
  11752. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMinTimeToLive00
  11753. static int tolua_Graphics_ParticleEmitter_GetMinTimeToLive00(lua_State* tolua_S)
  11754. {
  11755. #ifndef TOLUA_RELEASE
  11756. tolua_Error tolua_err;
  11757. if (
  11758. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  11759. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11760. )
  11761. goto tolua_lerror;
  11762. else
  11763. #endif
  11764. {
  11765. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11766. #ifndef TOLUA_RELEASE
  11767. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinTimeToLive'", NULL);
  11768. #endif
  11769. {
  11770. float tolua_ret = (float) self->GetMinTimeToLive();
  11771. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11772. }
  11773. }
  11774. return 1;
  11775. #ifndef TOLUA_RELEASE
  11776. tolua_lerror:
  11777. tolua_error(tolua_S,"#ferror in function 'GetMinTimeToLive'.",&tolua_err);
  11778. return 0;
  11779. #endif
  11780. }
  11781. #endif //#ifndef TOLUA_DISABLE
  11782. /* method: GetMaxTimeToLive of class ParticleEmitter */
  11783. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMaxTimeToLive00
  11784. static int tolua_Graphics_ParticleEmitter_GetMaxTimeToLive00(lua_State* tolua_S)
  11785. {
  11786. #ifndef TOLUA_RELEASE
  11787. tolua_Error tolua_err;
  11788. if (
  11789. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  11790. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11791. )
  11792. goto tolua_lerror;
  11793. else
  11794. #endif
  11795. {
  11796. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11797. #ifndef TOLUA_RELEASE
  11798. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxTimeToLive'", NULL);
  11799. #endif
  11800. {
  11801. float tolua_ret = (float) self->GetMaxTimeToLive();
  11802. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11803. }
  11804. }
  11805. return 1;
  11806. #ifndef TOLUA_RELEASE
  11807. tolua_lerror:
  11808. tolua_error(tolua_S,"#ferror in function 'GetMaxTimeToLive'.",&tolua_err);
  11809. return 0;
  11810. #endif
  11811. }
  11812. #endif //#ifndef TOLUA_DISABLE
  11813. /* method: GetMinParticleSize of class ParticleEmitter */
  11814. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMinParticleSize00
  11815. static int tolua_Graphics_ParticleEmitter_GetMinParticleSize00(lua_State* tolua_S)
  11816. {
  11817. #ifndef TOLUA_RELEASE
  11818. tolua_Error tolua_err;
  11819. if (
  11820. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  11821. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11822. )
  11823. goto tolua_lerror;
  11824. else
  11825. #endif
  11826. {
  11827. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11828. #ifndef TOLUA_RELEASE
  11829. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinParticleSize'", NULL);
  11830. #endif
  11831. {
  11832. const Vector2& tolua_ret = (const Vector2&) self->GetMinParticleSize();
  11833. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector2");
  11834. }
  11835. }
  11836. return 1;
  11837. #ifndef TOLUA_RELEASE
  11838. tolua_lerror:
  11839. tolua_error(tolua_S,"#ferror in function 'GetMinParticleSize'.",&tolua_err);
  11840. return 0;
  11841. #endif
  11842. }
  11843. #endif //#ifndef TOLUA_DISABLE
  11844. /* method: GetMaxParticleSize of class ParticleEmitter */
  11845. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMaxParticleSize00
  11846. static int tolua_Graphics_ParticleEmitter_GetMaxParticleSize00(lua_State* tolua_S)
  11847. {
  11848. #ifndef TOLUA_RELEASE
  11849. tolua_Error tolua_err;
  11850. if (
  11851. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  11852. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11853. )
  11854. goto tolua_lerror;
  11855. else
  11856. #endif
  11857. {
  11858. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11859. #ifndef TOLUA_RELEASE
  11860. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxParticleSize'", NULL);
  11861. #endif
  11862. {
  11863. const Vector2& tolua_ret = (const Vector2&) self->GetMaxParticleSize();
  11864. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector2");
  11865. }
  11866. }
  11867. return 1;
  11868. #ifndef TOLUA_RELEASE
  11869. tolua_lerror:
  11870. tolua_error(tolua_S,"#ferror in function 'GetMaxParticleSize'.",&tolua_err);
  11871. return 0;
  11872. #endif
  11873. }
  11874. #endif //#ifndef TOLUA_DISABLE
  11875. /* method: GetMinDirection of class ParticleEmitter */
  11876. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMinDirection00
  11877. static int tolua_Graphics_ParticleEmitter_GetMinDirection00(lua_State* tolua_S)
  11878. {
  11879. #ifndef TOLUA_RELEASE
  11880. tolua_Error tolua_err;
  11881. if (
  11882. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  11883. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11884. )
  11885. goto tolua_lerror;
  11886. else
  11887. #endif
  11888. {
  11889. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11890. #ifndef TOLUA_RELEASE
  11891. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinDirection'", NULL);
  11892. #endif
  11893. {
  11894. const Vector3& tolua_ret = (const Vector3&) self->GetMinDirection();
  11895. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector3");
  11896. }
  11897. }
  11898. return 1;
  11899. #ifndef TOLUA_RELEASE
  11900. tolua_lerror:
  11901. tolua_error(tolua_S,"#ferror in function 'GetMinDirection'.",&tolua_err);
  11902. return 0;
  11903. #endif
  11904. }
  11905. #endif //#ifndef TOLUA_DISABLE
  11906. /* method: GetMaxDirection of class ParticleEmitter */
  11907. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMaxDirection00
  11908. static int tolua_Graphics_ParticleEmitter_GetMaxDirection00(lua_State* tolua_S)
  11909. {
  11910. #ifndef TOLUA_RELEASE
  11911. tolua_Error tolua_err;
  11912. if (
  11913. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  11914. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11915. )
  11916. goto tolua_lerror;
  11917. else
  11918. #endif
  11919. {
  11920. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11921. #ifndef TOLUA_RELEASE
  11922. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxDirection'", NULL);
  11923. #endif
  11924. {
  11925. const Vector3& tolua_ret = (const Vector3&) self->GetMaxDirection();
  11926. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector3");
  11927. }
  11928. }
  11929. return 1;
  11930. #ifndef TOLUA_RELEASE
  11931. tolua_lerror:
  11932. tolua_error(tolua_S,"#ferror in function 'GetMaxDirection'.",&tolua_err);
  11933. return 0;
  11934. #endif
  11935. }
  11936. #endif //#ifndef TOLUA_DISABLE
  11937. /* method: GetMinVelocity of class ParticleEmitter */
  11938. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMinVelocity00
  11939. static int tolua_Graphics_ParticleEmitter_GetMinVelocity00(lua_State* tolua_S)
  11940. {
  11941. #ifndef TOLUA_RELEASE
  11942. tolua_Error tolua_err;
  11943. if (
  11944. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  11945. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11946. )
  11947. goto tolua_lerror;
  11948. else
  11949. #endif
  11950. {
  11951. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11952. #ifndef TOLUA_RELEASE
  11953. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinVelocity'", NULL);
  11954. #endif
  11955. {
  11956. float tolua_ret = (float) self->GetMinVelocity();
  11957. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11958. }
  11959. }
  11960. return 1;
  11961. #ifndef TOLUA_RELEASE
  11962. tolua_lerror:
  11963. tolua_error(tolua_S,"#ferror in function 'GetMinVelocity'.",&tolua_err);
  11964. return 0;
  11965. #endif
  11966. }
  11967. #endif //#ifndef TOLUA_DISABLE
  11968. /* method: GetMaxVelocity of class ParticleEmitter */
  11969. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMaxVelocity00
  11970. static int tolua_Graphics_ParticleEmitter_GetMaxVelocity00(lua_State* tolua_S)
  11971. {
  11972. #ifndef TOLUA_RELEASE
  11973. tolua_Error tolua_err;
  11974. if (
  11975. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  11976. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11977. )
  11978. goto tolua_lerror;
  11979. else
  11980. #endif
  11981. {
  11982. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  11983. #ifndef TOLUA_RELEASE
  11984. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxVelocity'", NULL);
  11985. #endif
  11986. {
  11987. float tolua_ret = (float) self->GetMaxVelocity();
  11988. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11989. }
  11990. }
  11991. return 1;
  11992. #ifndef TOLUA_RELEASE
  11993. tolua_lerror:
  11994. tolua_error(tolua_S,"#ferror in function 'GetMaxVelocity'.",&tolua_err);
  11995. return 0;
  11996. #endif
  11997. }
  11998. #endif //#ifndef TOLUA_DISABLE
  11999. /* method: GetMinRotation of class ParticleEmitter */
  12000. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMinRotation00
  12001. static int tolua_Graphics_ParticleEmitter_GetMinRotation00(lua_State* tolua_S)
  12002. {
  12003. #ifndef TOLUA_RELEASE
  12004. tolua_Error tolua_err;
  12005. if (
  12006. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12007. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12008. )
  12009. goto tolua_lerror;
  12010. else
  12011. #endif
  12012. {
  12013. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12014. #ifndef TOLUA_RELEASE
  12015. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinRotation'", NULL);
  12016. #endif
  12017. {
  12018. float tolua_ret = (float) self->GetMinRotation();
  12019. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12020. }
  12021. }
  12022. return 1;
  12023. #ifndef TOLUA_RELEASE
  12024. tolua_lerror:
  12025. tolua_error(tolua_S,"#ferror in function 'GetMinRotation'.",&tolua_err);
  12026. return 0;
  12027. #endif
  12028. }
  12029. #endif //#ifndef TOLUA_DISABLE
  12030. /* method: GetMaxRotation of class ParticleEmitter */
  12031. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMaxRotation00
  12032. static int tolua_Graphics_ParticleEmitter_GetMaxRotation00(lua_State* tolua_S)
  12033. {
  12034. #ifndef TOLUA_RELEASE
  12035. tolua_Error tolua_err;
  12036. if (
  12037. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12038. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12039. )
  12040. goto tolua_lerror;
  12041. else
  12042. #endif
  12043. {
  12044. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12045. #ifndef TOLUA_RELEASE
  12046. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxRotation'", NULL);
  12047. #endif
  12048. {
  12049. float tolua_ret = (float) self->GetMaxRotation();
  12050. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12051. }
  12052. }
  12053. return 1;
  12054. #ifndef TOLUA_RELEASE
  12055. tolua_lerror:
  12056. tolua_error(tolua_S,"#ferror in function 'GetMaxRotation'.",&tolua_err);
  12057. return 0;
  12058. #endif
  12059. }
  12060. #endif //#ifndef TOLUA_DISABLE
  12061. /* method: GetMinRotationSpeed of class ParticleEmitter */
  12062. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMinRotationSpeed00
  12063. static int tolua_Graphics_ParticleEmitter_GetMinRotationSpeed00(lua_State* tolua_S)
  12064. {
  12065. #ifndef TOLUA_RELEASE
  12066. tolua_Error tolua_err;
  12067. if (
  12068. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12069. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12070. )
  12071. goto tolua_lerror;
  12072. else
  12073. #endif
  12074. {
  12075. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12076. #ifndef TOLUA_RELEASE
  12077. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinRotationSpeed'", NULL);
  12078. #endif
  12079. {
  12080. float tolua_ret = (float) self->GetMinRotationSpeed();
  12081. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12082. }
  12083. }
  12084. return 1;
  12085. #ifndef TOLUA_RELEASE
  12086. tolua_lerror:
  12087. tolua_error(tolua_S,"#ferror in function 'GetMinRotationSpeed'.",&tolua_err);
  12088. return 0;
  12089. #endif
  12090. }
  12091. #endif //#ifndef TOLUA_DISABLE
  12092. /* method: GetMaxRotationSpeed of class ParticleEmitter */
  12093. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetMaxRotationSpeed00
  12094. static int tolua_Graphics_ParticleEmitter_GetMaxRotationSpeed00(lua_State* tolua_S)
  12095. {
  12096. #ifndef TOLUA_RELEASE
  12097. tolua_Error tolua_err;
  12098. if (
  12099. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12100. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12101. )
  12102. goto tolua_lerror;
  12103. else
  12104. #endif
  12105. {
  12106. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12107. #ifndef TOLUA_RELEASE
  12108. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxRotationSpeed'", NULL);
  12109. #endif
  12110. {
  12111. float tolua_ret = (float) self->GetMaxRotationSpeed();
  12112. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12113. }
  12114. }
  12115. return 1;
  12116. #ifndef TOLUA_RELEASE
  12117. tolua_lerror:
  12118. tolua_error(tolua_S,"#ferror in function 'GetMaxRotationSpeed'.",&tolua_err);
  12119. return 0;
  12120. #endif
  12121. }
  12122. #endif //#ifndef TOLUA_DISABLE
  12123. /* method: GetConstantForce of class ParticleEmitter */
  12124. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetConstantForce00
  12125. static int tolua_Graphics_ParticleEmitter_GetConstantForce00(lua_State* tolua_S)
  12126. {
  12127. #ifndef TOLUA_RELEASE
  12128. tolua_Error tolua_err;
  12129. if (
  12130. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12131. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12132. )
  12133. goto tolua_lerror;
  12134. else
  12135. #endif
  12136. {
  12137. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12138. #ifndef TOLUA_RELEASE
  12139. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetConstantForce'", NULL);
  12140. #endif
  12141. {
  12142. const Vector3& tolua_ret = (const Vector3&) self->GetConstantForce();
  12143. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector3");
  12144. }
  12145. }
  12146. return 1;
  12147. #ifndef TOLUA_RELEASE
  12148. tolua_lerror:
  12149. tolua_error(tolua_S,"#ferror in function 'GetConstantForce'.",&tolua_err);
  12150. return 0;
  12151. #endif
  12152. }
  12153. #endif //#ifndef TOLUA_DISABLE
  12154. /* method: GetDampingForce of class ParticleEmitter */
  12155. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetDampingForce00
  12156. static int tolua_Graphics_ParticleEmitter_GetDampingForce00(lua_State* tolua_S)
  12157. {
  12158. #ifndef TOLUA_RELEASE
  12159. tolua_Error tolua_err;
  12160. if (
  12161. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12162. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12163. )
  12164. goto tolua_lerror;
  12165. else
  12166. #endif
  12167. {
  12168. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12169. #ifndef TOLUA_RELEASE
  12170. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDampingForce'", NULL);
  12171. #endif
  12172. {
  12173. float tolua_ret = (float) self->GetDampingForce();
  12174. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12175. }
  12176. }
  12177. return 1;
  12178. #ifndef TOLUA_RELEASE
  12179. tolua_lerror:
  12180. tolua_error(tolua_S,"#ferror in function 'GetDampingForce'.",&tolua_err);
  12181. return 0;
  12182. #endif
  12183. }
  12184. #endif //#ifndef TOLUA_DISABLE
  12185. /* method: GetSizeAdd of class ParticleEmitter */
  12186. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetSizeAdd00
  12187. static int tolua_Graphics_ParticleEmitter_GetSizeAdd00(lua_State* tolua_S)
  12188. {
  12189. #ifndef TOLUA_RELEASE
  12190. tolua_Error tolua_err;
  12191. if (
  12192. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12193. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12194. )
  12195. goto tolua_lerror;
  12196. else
  12197. #endif
  12198. {
  12199. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12200. #ifndef TOLUA_RELEASE
  12201. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSizeAdd'", NULL);
  12202. #endif
  12203. {
  12204. float tolua_ret = (float) self->GetSizeAdd();
  12205. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12206. }
  12207. }
  12208. return 1;
  12209. #ifndef TOLUA_RELEASE
  12210. tolua_lerror:
  12211. tolua_error(tolua_S,"#ferror in function 'GetSizeAdd'.",&tolua_err);
  12212. return 0;
  12213. #endif
  12214. }
  12215. #endif //#ifndef TOLUA_DISABLE
  12216. /* method: GetSizeMul of class ParticleEmitter */
  12217. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetSizeMul00
  12218. static int tolua_Graphics_ParticleEmitter_GetSizeMul00(lua_State* tolua_S)
  12219. {
  12220. #ifndef TOLUA_RELEASE
  12221. tolua_Error tolua_err;
  12222. if (
  12223. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12224. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12225. )
  12226. goto tolua_lerror;
  12227. else
  12228. #endif
  12229. {
  12230. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12231. #ifndef TOLUA_RELEASE
  12232. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSizeMul'", NULL);
  12233. #endif
  12234. {
  12235. float tolua_ret = (float) self->GetSizeMul();
  12236. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12237. }
  12238. }
  12239. return 1;
  12240. #ifndef TOLUA_RELEASE
  12241. tolua_lerror:
  12242. tolua_error(tolua_S,"#ferror in function 'GetSizeMul'.",&tolua_err);
  12243. return 0;
  12244. #endif
  12245. }
  12246. #endif //#ifndef TOLUA_DISABLE
  12247. /* method: GetNumColors of class ParticleEmitter */
  12248. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetNumColors00
  12249. static int tolua_Graphics_ParticleEmitter_GetNumColors00(lua_State* tolua_S)
  12250. {
  12251. #ifndef TOLUA_RELEASE
  12252. tolua_Error tolua_err;
  12253. if (
  12254. !tolua_isusertype(tolua_S,1,"const ParticleEmitter",0,&tolua_err) ||
  12255. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12256. )
  12257. goto tolua_lerror;
  12258. else
  12259. #endif
  12260. {
  12261. const ParticleEmitter* self = (const ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12262. #ifndef TOLUA_RELEASE
  12263. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumColors'", NULL);
  12264. #endif
  12265. {
  12266. unsigned tolua_ret = (unsigned) self->GetNumColors();
  12267. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12268. }
  12269. }
  12270. return 1;
  12271. #ifndef TOLUA_RELEASE
  12272. tolua_lerror:
  12273. tolua_error(tolua_S,"#ferror in function 'GetNumColors'.",&tolua_err);
  12274. return 0;
  12275. #endif
  12276. }
  12277. #endif //#ifndef TOLUA_DISABLE
  12278. /* method: GetColor of class ParticleEmitter */
  12279. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetColor00
  12280. static int tolua_Graphics_ParticleEmitter_GetColor00(lua_State* tolua_S)
  12281. {
  12282. #ifndef TOLUA_RELEASE
  12283. tolua_Error tolua_err;
  12284. if (
  12285. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  12286. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12287. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12288. )
  12289. goto tolua_lerror;
  12290. else
  12291. #endif
  12292. {
  12293. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12294. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  12295. #ifndef TOLUA_RELEASE
  12296. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetColor'", NULL);
  12297. #endif
  12298. {
  12299. ColorFrame* tolua_ret = (ColorFrame*) self->GetColor(index);
  12300. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ColorFrame");
  12301. }
  12302. }
  12303. return 1;
  12304. #ifndef TOLUA_RELEASE
  12305. tolua_lerror:
  12306. tolua_error(tolua_S,"#ferror in function 'GetColor'.",&tolua_err);
  12307. return 0;
  12308. #endif
  12309. }
  12310. #endif //#ifndef TOLUA_DISABLE
  12311. /* method: GetNumTextureFrames of class ParticleEmitter */
  12312. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetNumTextureFrames00
  12313. static int tolua_Graphics_ParticleEmitter_GetNumTextureFrames00(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 'GetNumTextureFrames'", NULL);
  12328. #endif
  12329. {
  12330. unsigned tolua_ret = (unsigned) self->GetNumTextureFrames();
  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 'GetNumTextureFrames'.",&tolua_err);
  12338. return 0;
  12339. #endif
  12340. }
  12341. #endif //#ifndef TOLUA_DISABLE
  12342. /* method: GetTextureFrame of class ParticleEmitter */
  12343. #ifndef TOLUA_DISABLE_tolua_Graphics_ParticleEmitter_GetTextureFrame00
  12344. static int tolua_Graphics_ParticleEmitter_GetTextureFrame00(lua_State* tolua_S)
  12345. {
  12346. #ifndef TOLUA_RELEASE
  12347. tolua_Error tolua_err;
  12348. if (
  12349. !tolua_isusertype(tolua_S,1,"ParticleEmitter",0,&tolua_err) ||
  12350. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12351. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12352. )
  12353. goto tolua_lerror;
  12354. else
  12355. #endif
  12356. {
  12357. ParticleEmitter* self = (ParticleEmitter*) tolua_tousertype(tolua_S,1,0);
  12358. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  12359. #ifndef TOLUA_RELEASE
  12360. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTextureFrame'", NULL);
  12361. #endif
  12362. {
  12363. TextureFrame* tolua_ret = (TextureFrame*) self->GetTextureFrame(index);
  12364. tolua_pushusertype(tolua_S,(void*)tolua_ret,"TextureFrame");
  12365. }
  12366. }
  12367. return 1;
  12368. #ifndef TOLUA_RELEASE
  12369. tolua_lerror:
  12370. tolua_error(tolua_S,"#ferror in function 'GetTextureFrame'.",&tolua_err);
  12371. return 0;
  12372. #endif
  12373. }
  12374. #endif //#ifndef TOLUA_DISABLE
  12375. /* method: SetNumViewports of class Renderer */
  12376. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetNumViewports00
  12377. static int tolua_Graphics_Renderer_SetNumViewports00(lua_State* tolua_S)
  12378. {
  12379. #ifndef TOLUA_RELEASE
  12380. tolua_Error tolua_err;
  12381. if (
  12382. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12383. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12384. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12385. )
  12386. goto tolua_lerror;
  12387. else
  12388. #endif
  12389. {
  12390. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12391. unsigned num = ((unsigned) tolua_tonumber(tolua_S,2,0));
  12392. #ifndef TOLUA_RELEASE
  12393. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetNumViewports'", NULL);
  12394. #endif
  12395. {
  12396. self->SetNumViewports(num);
  12397. }
  12398. }
  12399. return 0;
  12400. #ifndef TOLUA_RELEASE
  12401. tolua_lerror:
  12402. tolua_error(tolua_S,"#ferror in function 'SetNumViewports'.",&tolua_err);
  12403. return 0;
  12404. #endif
  12405. }
  12406. #endif //#ifndef TOLUA_DISABLE
  12407. /* method: SetViewport of class Renderer */
  12408. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetViewport00
  12409. static int tolua_Graphics_Renderer_SetViewport00(lua_State* tolua_S)
  12410. {
  12411. #ifndef TOLUA_RELEASE
  12412. tolua_Error tolua_err;
  12413. if (
  12414. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12415. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12416. !tolua_isusertype(tolua_S,3,"Viewport",0,&tolua_err) ||
  12417. !tolua_isnoobj(tolua_S,4,&tolua_err)
  12418. )
  12419. goto tolua_lerror;
  12420. else
  12421. #endif
  12422. {
  12423. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12424. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  12425. Viewport* viewport = ((Viewport*) tolua_tousertype(tolua_S,3,0));
  12426. #ifndef TOLUA_RELEASE
  12427. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetViewport'", NULL);
  12428. #endif
  12429. {
  12430. self->SetViewport(index,viewport);
  12431. }
  12432. }
  12433. return 0;
  12434. #ifndef TOLUA_RELEASE
  12435. tolua_lerror:
  12436. tolua_error(tolua_S,"#ferror in function 'SetViewport'.",&tolua_err);
  12437. return 0;
  12438. #endif
  12439. }
  12440. #endif //#ifndef TOLUA_DISABLE
  12441. /* method: SetDefaultRenderPath of class Renderer */
  12442. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetDefaultRenderPath00
  12443. static int tolua_Graphics_Renderer_SetDefaultRenderPath00(lua_State* tolua_S)
  12444. {
  12445. #ifndef TOLUA_RELEASE
  12446. tolua_Error tolua_err;
  12447. if (
  12448. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12449. !tolua_isusertype(tolua_S,2,"RenderPath",0,&tolua_err) ||
  12450. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12451. )
  12452. goto tolua_lerror;
  12453. else
  12454. #endif
  12455. {
  12456. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12457. RenderPath* renderPath = ((RenderPath*) tolua_tousertype(tolua_S,2,0));
  12458. #ifndef TOLUA_RELEASE
  12459. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDefaultRenderPath'", NULL);
  12460. #endif
  12461. {
  12462. self->SetDefaultRenderPath(renderPath);
  12463. }
  12464. }
  12465. return 0;
  12466. #ifndef TOLUA_RELEASE
  12467. tolua_lerror:
  12468. tolua_error(tolua_S,"#ferror in function 'SetDefaultRenderPath'.",&tolua_err);
  12469. return 0;
  12470. #endif
  12471. }
  12472. #endif //#ifndef TOLUA_DISABLE
  12473. /* method: SetDefaultRenderPath of class Renderer */
  12474. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetDefaultRenderPath01
  12475. static int tolua_Graphics_Renderer_SetDefaultRenderPath01(lua_State* tolua_S)
  12476. {
  12477. tolua_Error tolua_err;
  12478. if (
  12479. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12480. !tolua_isusertype(tolua_S,2,"XMLFile",0,&tolua_err) ||
  12481. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12482. )
  12483. goto tolua_lerror;
  12484. else
  12485. {
  12486. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12487. XMLFile* file = ((XMLFile*) tolua_tousertype(tolua_S,2,0));
  12488. #ifndef TOLUA_RELEASE
  12489. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDefaultRenderPath'", NULL);
  12490. #endif
  12491. {
  12492. self->SetDefaultRenderPath(file);
  12493. }
  12494. }
  12495. return 0;
  12496. tolua_lerror:
  12497. return tolua_Graphics_Renderer_SetDefaultRenderPath00(tolua_S);
  12498. }
  12499. #endif //#ifndef TOLUA_DISABLE
  12500. /* method: SetSpecularLighting of class Renderer */
  12501. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetSpecularLighting00
  12502. static int tolua_Graphics_Renderer_SetSpecularLighting00(lua_State* tolua_S)
  12503. {
  12504. #ifndef TOLUA_RELEASE
  12505. tolua_Error tolua_err;
  12506. if (
  12507. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12508. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  12509. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12510. )
  12511. goto tolua_lerror;
  12512. else
  12513. #endif
  12514. {
  12515. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12516. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  12517. #ifndef TOLUA_RELEASE
  12518. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSpecularLighting'", NULL);
  12519. #endif
  12520. {
  12521. self->SetSpecularLighting(enable);
  12522. }
  12523. }
  12524. return 0;
  12525. #ifndef TOLUA_RELEASE
  12526. tolua_lerror:
  12527. tolua_error(tolua_S,"#ferror in function 'SetSpecularLighting'.",&tolua_err);
  12528. return 0;
  12529. #endif
  12530. }
  12531. #endif //#ifndef TOLUA_DISABLE
  12532. /* method: SetTextureAnisotropy of class Renderer */
  12533. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetTextureAnisotropy00
  12534. static int tolua_Graphics_Renderer_SetTextureAnisotropy00(lua_State* tolua_S)
  12535. {
  12536. #ifndef TOLUA_RELEASE
  12537. tolua_Error tolua_err;
  12538. if (
  12539. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12540. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12541. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12542. )
  12543. goto tolua_lerror;
  12544. else
  12545. #endif
  12546. {
  12547. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12548. int level = ((int) tolua_tonumber(tolua_S,2,0));
  12549. #ifndef TOLUA_RELEASE
  12550. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTextureAnisotropy'", NULL);
  12551. #endif
  12552. {
  12553. self->SetTextureAnisotropy(level);
  12554. }
  12555. }
  12556. return 0;
  12557. #ifndef TOLUA_RELEASE
  12558. tolua_lerror:
  12559. tolua_error(tolua_S,"#ferror in function 'SetTextureAnisotropy'.",&tolua_err);
  12560. return 0;
  12561. #endif
  12562. }
  12563. #endif //#ifndef TOLUA_DISABLE
  12564. /* method: SetTextureFilterMode of class Renderer */
  12565. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetTextureFilterMode00
  12566. static int tolua_Graphics_Renderer_SetTextureFilterMode00(lua_State* tolua_S)
  12567. {
  12568. #ifndef TOLUA_RELEASE
  12569. tolua_Error tolua_err;
  12570. if (
  12571. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12572. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12573. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12574. )
  12575. goto tolua_lerror;
  12576. else
  12577. #endif
  12578. {
  12579. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12580. TextureFilterMode mode = ((TextureFilterMode) (int) tolua_tonumber(tolua_S,2,0));
  12581. #ifndef TOLUA_RELEASE
  12582. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTextureFilterMode'", NULL);
  12583. #endif
  12584. {
  12585. self->SetTextureFilterMode(mode);
  12586. }
  12587. }
  12588. return 0;
  12589. #ifndef TOLUA_RELEASE
  12590. tolua_lerror:
  12591. tolua_error(tolua_S,"#ferror in function 'SetTextureFilterMode'.",&tolua_err);
  12592. return 0;
  12593. #endif
  12594. }
  12595. #endif //#ifndef TOLUA_DISABLE
  12596. /* method: SetTextureQuality of class Renderer */
  12597. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetTextureQuality00
  12598. static int tolua_Graphics_Renderer_SetTextureQuality00(lua_State* tolua_S)
  12599. {
  12600. #ifndef TOLUA_RELEASE
  12601. tolua_Error tolua_err;
  12602. if (
  12603. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12604. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12605. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12606. )
  12607. goto tolua_lerror;
  12608. else
  12609. #endif
  12610. {
  12611. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12612. int quality = ((int) tolua_tonumber(tolua_S,2,0));
  12613. #ifndef TOLUA_RELEASE
  12614. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTextureQuality'", NULL);
  12615. #endif
  12616. {
  12617. self->SetTextureQuality(quality);
  12618. }
  12619. }
  12620. return 0;
  12621. #ifndef TOLUA_RELEASE
  12622. tolua_lerror:
  12623. tolua_error(tolua_S,"#ferror in function 'SetTextureQuality'.",&tolua_err);
  12624. return 0;
  12625. #endif
  12626. }
  12627. #endif //#ifndef TOLUA_DISABLE
  12628. /* method: SetMaterialQuality of class Renderer */
  12629. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetMaterialQuality00
  12630. static int tolua_Graphics_Renderer_SetMaterialQuality00(lua_State* tolua_S)
  12631. {
  12632. #ifndef TOLUA_RELEASE
  12633. tolua_Error tolua_err;
  12634. if (
  12635. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12636. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12637. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12638. )
  12639. goto tolua_lerror;
  12640. else
  12641. #endif
  12642. {
  12643. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12644. int quality = ((int) tolua_tonumber(tolua_S,2,0));
  12645. #ifndef TOLUA_RELEASE
  12646. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaterialQuality'", NULL);
  12647. #endif
  12648. {
  12649. self->SetMaterialQuality(quality);
  12650. }
  12651. }
  12652. return 0;
  12653. #ifndef TOLUA_RELEASE
  12654. tolua_lerror:
  12655. tolua_error(tolua_S,"#ferror in function 'SetMaterialQuality'.",&tolua_err);
  12656. return 0;
  12657. #endif
  12658. }
  12659. #endif //#ifndef TOLUA_DISABLE
  12660. /* method: SetDrawShadows of class Renderer */
  12661. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetDrawShadows00
  12662. static int tolua_Graphics_Renderer_SetDrawShadows00(lua_State* tolua_S)
  12663. {
  12664. #ifndef TOLUA_RELEASE
  12665. tolua_Error tolua_err;
  12666. if (
  12667. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12668. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  12669. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12670. )
  12671. goto tolua_lerror;
  12672. else
  12673. #endif
  12674. {
  12675. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12676. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  12677. #ifndef TOLUA_RELEASE
  12678. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDrawShadows'", NULL);
  12679. #endif
  12680. {
  12681. self->SetDrawShadows(enable);
  12682. }
  12683. }
  12684. return 0;
  12685. #ifndef TOLUA_RELEASE
  12686. tolua_lerror:
  12687. tolua_error(tolua_S,"#ferror in function 'SetDrawShadows'.",&tolua_err);
  12688. return 0;
  12689. #endif
  12690. }
  12691. #endif //#ifndef TOLUA_DISABLE
  12692. /* method: SetShadowMapSize of class Renderer */
  12693. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetShadowMapSize00
  12694. static int tolua_Graphics_Renderer_SetShadowMapSize00(lua_State* tolua_S)
  12695. {
  12696. #ifndef TOLUA_RELEASE
  12697. tolua_Error tolua_err;
  12698. if (
  12699. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12700. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12701. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12702. )
  12703. goto tolua_lerror;
  12704. else
  12705. #endif
  12706. {
  12707. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12708. int size = ((int) tolua_tonumber(tolua_S,2,0));
  12709. #ifndef TOLUA_RELEASE
  12710. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShadowMapSize'", NULL);
  12711. #endif
  12712. {
  12713. self->SetShadowMapSize(size);
  12714. }
  12715. }
  12716. return 0;
  12717. #ifndef TOLUA_RELEASE
  12718. tolua_lerror:
  12719. tolua_error(tolua_S,"#ferror in function 'SetShadowMapSize'.",&tolua_err);
  12720. return 0;
  12721. #endif
  12722. }
  12723. #endif //#ifndef TOLUA_DISABLE
  12724. /* method: SetShadowQuality of class Renderer */
  12725. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetShadowQuality00
  12726. static int tolua_Graphics_Renderer_SetShadowQuality00(lua_State* tolua_S)
  12727. {
  12728. #ifndef TOLUA_RELEASE
  12729. tolua_Error tolua_err;
  12730. if (
  12731. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12732. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12733. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12734. )
  12735. goto tolua_lerror;
  12736. else
  12737. #endif
  12738. {
  12739. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12740. int quality = ((int) tolua_tonumber(tolua_S,2,0));
  12741. #ifndef TOLUA_RELEASE
  12742. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShadowQuality'", NULL);
  12743. #endif
  12744. {
  12745. self->SetShadowQuality(quality);
  12746. }
  12747. }
  12748. return 0;
  12749. #ifndef TOLUA_RELEASE
  12750. tolua_lerror:
  12751. tolua_error(tolua_S,"#ferror in function 'SetShadowQuality'.",&tolua_err);
  12752. return 0;
  12753. #endif
  12754. }
  12755. #endif //#ifndef TOLUA_DISABLE
  12756. /* method: SetReuseShadowMaps of class Renderer */
  12757. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetReuseShadowMaps00
  12758. static int tolua_Graphics_Renderer_SetReuseShadowMaps00(lua_State* tolua_S)
  12759. {
  12760. #ifndef TOLUA_RELEASE
  12761. tolua_Error tolua_err;
  12762. if (
  12763. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12764. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  12765. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12766. )
  12767. goto tolua_lerror;
  12768. else
  12769. #endif
  12770. {
  12771. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12772. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  12773. #ifndef TOLUA_RELEASE
  12774. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetReuseShadowMaps'", NULL);
  12775. #endif
  12776. {
  12777. self->SetReuseShadowMaps(enable);
  12778. }
  12779. }
  12780. return 0;
  12781. #ifndef TOLUA_RELEASE
  12782. tolua_lerror:
  12783. tolua_error(tolua_S,"#ferror in function 'SetReuseShadowMaps'.",&tolua_err);
  12784. return 0;
  12785. #endif
  12786. }
  12787. #endif //#ifndef TOLUA_DISABLE
  12788. /* method: SetMaxShadowMaps of class Renderer */
  12789. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetMaxShadowMaps00
  12790. static int tolua_Graphics_Renderer_SetMaxShadowMaps00(lua_State* tolua_S)
  12791. {
  12792. #ifndef TOLUA_RELEASE
  12793. tolua_Error tolua_err;
  12794. if (
  12795. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12796. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12797. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12798. )
  12799. goto tolua_lerror;
  12800. else
  12801. #endif
  12802. {
  12803. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12804. int shadowMaps = ((int) tolua_tonumber(tolua_S,2,0));
  12805. #ifndef TOLUA_RELEASE
  12806. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxShadowMaps'", NULL);
  12807. #endif
  12808. {
  12809. self->SetMaxShadowMaps(shadowMaps);
  12810. }
  12811. }
  12812. return 0;
  12813. #ifndef TOLUA_RELEASE
  12814. tolua_lerror:
  12815. tolua_error(tolua_S,"#ferror in function 'SetMaxShadowMaps'.",&tolua_err);
  12816. return 0;
  12817. #endif
  12818. }
  12819. #endif //#ifndef TOLUA_DISABLE
  12820. /* method: SetMaxShadowCascades of class Renderer */
  12821. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetMaxShadowCascades00
  12822. static int tolua_Graphics_Renderer_SetMaxShadowCascades00(lua_State* tolua_S)
  12823. {
  12824. #ifndef TOLUA_RELEASE
  12825. tolua_Error tolua_err;
  12826. if (
  12827. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12828. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12829. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12830. )
  12831. goto tolua_lerror;
  12832. else
  12833. #endif
  12834. {
  12835. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12836. int cascades = ((int) tolua_tonumber(tolua_S,2,0));
  12837. #ifndef TOLUA_RELEASE
  12838. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxShadowCascades'", NULL);
  12839. #endif
  12840. {
  12841. self->SetMaxShadowCascades(cascades);
  12842. }
  12843. }
  12844. return 0;
  12845. #ifndef TOLUA_RELEASE
  12846. tolua_lerror:
  12847. tolua_error(tolua_S,"#ferror in function 'SetMaxShadowCascades'.",&tolua_err);
  12848. return 0;
  12849. #endif
  12850. }
  12851. #endif //#ifndef TOLUA_DISABLE
  12852. /* method: SetDynamicInstancing of class Renderer */
  12853. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetDynamicInstancing00
  12854. static int tolua_Graphics_Renderer_SetDynamicInstancing00(lua_State* tolua_S)
  12855. {
  12856. #ifndef TOLUA_RELEASE
  12857. tolua_Error tolua_err;
  12858. if (
  12859. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12860. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  12861. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12862. )
  12863. goto tolua_lerror;
  12864. else
  12865. #endif
  12866. {
  12867. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12868. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  12869. #ifndef TOLUA_RELEASE
  12870. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDynamicInstancing'", NULL);
  12871. #endif
  12872. {
  12873. self->SetDynamicInstancing(enable);
  12874. }
  12875. }
  12876. return 0;
  12877. #ifndef TOLUA_RELEASE
  12878. tolua_lerror:
  12879. tolua_error(tolua_S,"#ferror in function 'SetDynamicInstancing'.",&tolua_err);
  12880. return 0;
  12881. #endif
  12882. }
  12883. #endif //#ifndef TOLUA_DISABLE
  12884. /* method: SetMinInstances of class Renderer */
  12885. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetMinInstances00
  12886. static int tolua_Graphics_Renderer_SetMinInstances00(lua_State* tolua_S)
  12887. {
  12888. #ifndef TOLUA_RELEASE
  12889. tolua_Error tolua_err;
  12890. if (
  12891. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12892. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12893. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12894. )
  12895. goto tolua_lerror;
  12896. else
  12897. #endif
  12898. {
  12899. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12900. int instances = ((int) tolua_tonumber(tolua_S,2,0));
  12901. #ifndef TOLUA_RELEASE
  12902. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinInstances'", NULL);
  12903. #endif
  12904. {
  12905. self->SetMinInstances(instances);
  12906. }
  12907. }
  12908. return 0;
  12909. #ifndef TOLUA_RELEASE
  12910. tolua_lerror:
  12911. tolua_error(tolua_S,"#ferror in function 'SetMinInstances'.",&tolua_err);
  12912. return 0;
  12913. #endif
  12914. }
  12915. #endif //#ifndef TOLUA_DISABLE
  12916. /* method: SetMaxInstanceTriangles of class Renderer */
  12917. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetMaxInstanceTriangles00
  12918. static int tolua_Graphics_Renderer_SetMaxInstanceTriangles00(lua_State* tolua_S)
  12919. {
  12920. #ifndef TOLUA_RELEASE
  12921. tolua_Error tolua_err;
  12922. if (
  12923. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12924. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12925. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12926. )
  12927. goto tolua_lerror;
  12928. else
  12929. #endif
  12930. {
  12931. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12932. int triangles = ((int) tolua_tonumber(tolua_S,2,0));
  12933. #ifndef TOLUA_RELEASE
  12934. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxInstanceTriangles'", NULL);
  12935. #endif
  12936. {
  12937. self->SetMaxInstanceTriangles(triangles);
  12938. }
  12939. }
  12940. return 0;
  12941. #ifndef TOLUA_RELEASE
  12942. tolua_lerror:
  12943. tolua_error(tolua_S,"#ferror in function 'SetMaxInstanceTriangles'.",&tolua_err);
  12944. return 0;
  12945. #endif
  12946. }
  12947. #endif //#ifndef TOLUA_DISABLE
  12948. /* method: SetMaxSortedInstances of class Renderer */
  12949. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetMaxSortedInstances00
  12950. static int tolua_Graphics_Renderer_SetMaxSortedInstances00(lua_State* tolua_S)
  12951. {
  12952. #ifndef TOLUA_RELEASE
  12953. tolua_Error tolua_err;
  12954. if (
  12955. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12956. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12957. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12958. )
  12959. goto tolua_lerror;
  12960. else
  12961. #endif
  12962. {
  12963. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12964. int instances = ((int) tolua_tonumber(tolua_S,2,0));
  12965. #ifndef TOLUA_RELEASE
  12966. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxSortedInstances'", NULL);
  12967. #endif
  12968. {
  12969. self->SetMaxSortedInstances(instances);
  12970. }
  12971. }
  12972. return 0;
  12973. #ifndef TOLUA_RELEASE
  12974. tolua_lerror:
  12975. tolua_error(tolua_S,"#ferror in function 'SetMaxSortedInstances'.",&tolua_err);
  12976. return 0;
  12977. #endif
  12978. }
  12979. #endif //#ifndef TOLUA_DISABLE
  12980. /* method: SetMaxOccluderTriangles of class Renderer */
  12981. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetMaxOccluderTriangles00
  12982. static int tolua_Graphics_Renderer_SetMaxOccluderTriangles00(lua_State* tolua_S)
  12983. {
  12984. #ifndef TOLUA_RELEASE
  12985. tolua_Error tolua_err;
  12986. if (
  12987. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  12988. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12989. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12990. )
  12991. goto tolua_lerror;
  12992. else
  12993. #endif
  12994. {
  12995. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  12996. int triangles = ((int) tolua_tonumber(tolua_S,2,0));
  12997. #ifndef TOLUA_RELEASE
  12998. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxOccluderTriangles'", NULL);
  12999. #endif
  13000. {
  13001. self->SetMaxOccluderTriangles(triangles);
  13002. }
  13003. }
  13004. return 0;
  13005. #ifndef TOLUA_RELEASE
  13006. tolua_lerror:
  13007. tolua_error(tolua_S,"#ferror in function 'SetMaxOccluderTriangles'.",&tolua_err);
  13008. return 0;
  13009. #endif
  13010. }
  13011. #endif //#ifndef TOLUA_DISABLE
  13012. /* method: SetOcclusionBufferSize of class Renderer */
  13013. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetOcclusionBufferSize00
  13014. static int tolua_Graphics_Renderer_SetOcclusionBufferSize00(lua_State* tolua_S)
  13015. {
  13016. #ifndef TOLUA_RELEASE
  13017. tolua_Error tolua_err;
  13018. if (
  13019. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  13020. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  13021. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13022. )
  13023. goto tolua_lerror;
  13024. else
  13025. #endif
  13026. {
  13027. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  13028. int size = ((int) tolua_tonumber(tolua_S,2,0));
  13029. #ifndef TOLUA_RELEASE
  13030. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOcclusionBufferSize'", NULL);
  13031. #endif
  13032. {
  13033. self->SetOcclusionBufferSize(size);
  13034. }
  13035. }
  13036. return 0;
  13037. #ifndef TOLUA_RELEASE
  13038. tolua_lerror:
  13039. tolua_error(tolua_S,"#ferror in function 'SetOcclusionBufferSize'.",&tolua_err);
  13040. return 0;
  13041. #endif
  13042. }
  13043. #endif //#ifndef TOLUA_DISABLE
  13044. /* method: SetOccluderSizeThreshold of class Renderer */
  13045. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_SetOccluderSizeThreshold00
  13046. static int tolua_Graphics_Renderer_SetOccluderSizeThreshold00(lua_State* tolua_S)
  13047. {
  13048. #ifndef TOLUA_RELEASE
  13049. tolua_Error tolua_err;
  13050. if (
  13051. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  13052. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  13053. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13054. )
  13055. goto tolua_lerror;
  13056. else
  13057. #endif
  13058. {
  13059. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  13060. float screenSize = ((float) tolua_tonumber(tolua_S,2,0));
  13061. #ifndef TOLUA_RELEASE
  13062. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOccluderSizeThreshold'", NULL);
  13063. #endif
  13064. {
  13065. self->SetOccluderSizeThreshold(screenSize);
  13066. }
  13067. }
  13068. return 0;
  13069. #ifndef TOLUA_RELEASE
  13070. tolua_lerror:
  13071. tolua_error(tolua_S,"#ferror in function 'SetOccluderSizeThreshold'.",&tolua_err);
  13072. return 0;
  13073. #endif
  13074. }
  13075. #endif //#ifndef TOLUA_DISABLE
  13076. /* method: ReloadShaders of class Renderer */
  13077. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_ReloadShaders00
  13078. static int tolua_Graphics_Renderer_ReloadShaders00(lua_State* tolua_S)
  13079. {
  13080. #ifndef TOLUA_RELEASE
  13081. tolua_Error tolua_err;
  13082. if (
  13083. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  13084. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13085. )
  13086. goto tolua_lerror;
  13087. else
  13088. #endif
  13089. {
  13090. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  13091. #ifndef TOLUA_RELEASE
  13092. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ReloadShaders'", NULL);
  13093. #endif
  13094. {
  13095. self->ReloadShaders();
  13096. }
  13097. }
  13098. return 0;
  13099. #ifndef TOLUA_RELEASE
  13100. tolua_lerror:
  13101. tolua_error(tolua_S,"#ferror in function 'ReloadShaders'.",&tolua_err);
  13102. return 0;
  13103. #endif
  13104. }
  13105. #endif //#ifndef TOLUA_DISABLE
  13106. /* method: GetNumViewports of class Renderer */
  13107. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetNumViewports00
  13108. static int tolua_Graphics_Renderer_GetNumViewports00(lua_State* tolua_S)
  13109. {
  13110. #ifndef TOLUA_RELEASE
  13111. tolua_Error tolua_err;
  13112. if (
  13113. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13114. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13115. )
  13116. goto tolua_lerror;
  13117. else
  13118. #endif
  13119. {
  13120. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13121. #ifndef TOLUA_RELEASE
  13122. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumViewports'", NULL);
  13123. #endif
  13124. {
  13125. unsigned tolua_ret = (unsigned) self->GetNumViewports();
  13126. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13127. }
  13128. }
  13129. return 1;
  13130. #ifndef TOLUA_RELEASE
  13131. tolua_lerror:
  13132. tolua_error(tolua_S,"#ferror in function 'GetNumViewports'.",&tolua_err);
  13133. return 0;
  13134. #endif
  13135. }
  13136. #endif //#ifndef TOLUA_DISABLE
  13137. /* method: GetViewport of class Renderer */
  13138. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetViewport00
  13139. static int tolua_Graphics_Renderer_GetViewport00(lua_State* tolua_S)
  13140. {
  13141. #ifndef TOLUA_RELEASE
  13142. tolua_Error tolua_err;
  13143. if (
  13144. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13145. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  13146. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13147. )
  13148. goto tolua_lerror;
  13149. else
  13150. #endif
  13151. {
  13152. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13153. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  13154. #ifndef TOLUA_RELEASE
  13155. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetViewport'", NULL);
  13156. #endif
  13157. {
  13158. Viewport* tolua_ret = (Viewport*) self->GetViewport(index);
  13159. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Viewport");
  13160. }
  13161. }
  13162. return 1;
  13163. #ifndef TOLUA_RELEASE
  13164. tolua_lerror:
  13165. tolua_error(tolua_S,"#ferror in function 'GetViewport'.",&tolua_err);
  13166. return 0;
  13167. #endif
  13168. }
  13169. #endif //#ifndef TOLUA_DISABLE
  13170. /* method: GetDefaultRenderPath of class Renderer */
  13171. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetDefaultRenderPath00
  13172. static int tolua_Graphics_Renderer_GetDefaultRenderPath00(lua_State* tolua_S)
  13173. {
  13174. #ifndef TOLUA_RELEASE
  13175. tolua_Error tolua_err;
  13176. if (
  13177. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13178. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13179. )
  13180. goto tolua_lerror;
  13181. else
  13182. #endif
  13183. {
  13184. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13185. #ifndef TOLUA_RELEASE
  13186. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDefaultRenderPath'", NULL);
  13187. #endif
  13188. {
  13189. RenderPath* tolua_ret = (RenderPath*) self->GetDefaultRenderPath();
  13190. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RenderPath");
  13191. }
  13192. }
  13193. return 1;
  13194. #ifndef TOLUA_RELEASE
  13195. tolua_lerror:
  13196. tolua_error(tolua_S,"#ferror in function 'GetDefaultRenderPath'.",&tolua_err);
  13197. return 0;
  13198. #endif
  13199. }
  13200. #endif //#ifndef TOLUA_DISABLE
  13201. /* method: GetSpecularLighting of class Renderer */
  13202. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetSpecularLighting00
  13203. static int tolua_Graphics_Renderer_GetSpecularLighting00(lua_State* tolua_S)
  13204. {
  13205. #ifndef TOLUA_RELEASE
  13206. tolua_Error tolua_err;
  13207. if (
  13208. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13209. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13210. )
  13211. goto tolua_lerror;
  13212. else
  13213. #endif
  13214. {
  13215. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13216. #ifndef TOLUA_RELEASE
  13217. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSpecularLighting'", NULL);
  13218. #endif
  13219. {
  13220. bool tolua_ret = (bool) self->GetSpecularLighting();
  13221. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  13222. }
  13223. }
  13224. return 1;
  13225. #ifndef TOLUA_RELEASE
  13226. tolua_lerror:
  13227. tolua_error(tolua_S,"#ferror in function 'GetSpecularLighting'.",&tolua_err);
  13228. return 0;
  13229. #endif
  13230. }
  13231. #endif //#ifndef TOLUA_DISABLE
  13232. /* method: GetDrawShadows of class Renderer */
  13233. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetDrawShadows00
  13234. static int tolua_Graphics_Renderer_GetDrawShadows00(lua_State* tolua_S)
  13235. {
  13236. #ifndef TOLUA_RELEASE
  13237. tolua_Error tolua_err;
  13238. if (
  13239. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13240. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13241. )
  13242. goto tolua_lerror;
  13243. else
  13244. #endif
  13245. {
  13246. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13247. #ifndef TOLUA_RELEASE
  13248. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDrawShadows'", NULL);
  13249. #endif
  13250. {
  13251. bool tolua_ret = (bool) self->GetDrawShadows();
  13252. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  13253. }
  13254. }
  13255. return 1;
  13256. #ifndef TOLUA_RELEASE
  13257. tolua_lerror:
  13258. tolua_error(tolua_S,"#ferror in function 'GetDrawShadows'.",&tolua_err);
  13259. return 0;
  13260. #endif
  13261. }
  13262. #endif //#ifndef TOLUA_DISABLE
  13263. /* method: GetTextureAnisotropy of class Renderer */
  13264. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetTextureAnisotropy00
  13265. static int tolua_Graphics_Renderer_GetTextureAnisotropy00(lua_State* tolua_S)
  13266. {
  13267. #ifndef TOLUA_RELEASE
  13268. tolua_Error tolua_err;
  13269. if (
  13270. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13271. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13272. )
  13273. goto tolua_lerror;
  13274. else
  13275. #endif
  13276. {
  13277. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13278. #ifndef TOLUA_RELEASE
  13279. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTextureAnisotropy'", NULL);
  13280. #endif
  13281. {
  13282. int tolua_ret = (int) self->GetTextureAnisotropy();
  13283. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13284. }
  13285. }
  13286. return 1;
  13287. #ifndef TOLUA_RELEASE
  13288. tolua_lerror:
  13289. tolua_error(tolua_S,"#ferror in function 'GetTextureAnisotropy'.",&tolua_err);
  13290. return 0;
  13291. #endif
  13292. }
  13293. #endif //#ifndef TOLUA_DISABLE
  13294. /* method: GetTextureFilterMode of class Renderer */
  13295. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetTextureFilterMode00
  13296. static int tolua_Graphics_Renderer_GetTextureFilterMode00(lua_State* tolua_S)
  13297. {
  13298. #ifndef TOLUA_RELEASE
  13299. tolua_Error tolua_err;
  13300. if (
  13301. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13302. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13303. )
  13304. goto tolua_lerror;
  13305. else
  13306. #endif
  13307. {
  13308. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13309. #ifndef TOLUA_RELEASE
  13310. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTextureFilterMode'", NULL);
  13311. #endif
  13312. {
  13313. TextureFilterMode tolua_ret = (TextureFilterMode) self->GetTextureFilterMode();
  13314. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13315. }
  13316. }
  13317. return 1;
  13318. #ifndef TOLUA_RELEASE
  13319. tolua_lerror:
  13320. tolua_error(tolua_S,"#ferror in function 'GetTextureFilterMode'.",&tolua_err);
  13321. return 0;
  13322. #endif
  13323. }
  13324. #endif //#ifndef TOLUA_DISABLE
  13325. /* method: GetTextureQuality of class Renderer */
  13326. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetTextureQuality00
  13327. static int tolua_Graphics_Renderer_GetTextureQuality00(lua_State* tolua_S)
  13328. {
  13329. #ifndef TOLUA_RELEASE
  13330. tolua_Error tolua_err;
  13331. if (
  13332. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13333. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13334. )
  13335. goto tolua_lerror;
  13336. else
  13337. #endif
  13338. {
  13339. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13340. #ifndef TOLUA_RELEASE
  13341. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTextureQuality'", NULL);
  13342. #endif
  13343. {
  13344. int tolua_ret = (int) self->GetTextureQuality();
  13345. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13346. }
  13347. }
  13348. return 1;
  13349. #ifndef TOLUA_RELEASE
  13350. tolua_lerror:
  13351. tolua_error(tolua_S,"#ferror in function 'GetTextureQuality'.",&tolua_err);
  13352. return 0;
  13353. #endif
  13354. }
  13355. #endif //#ifndef TOLUA_DISABLE
  13356. /* method: GetMaterialQuality of class Renderer */
  13357. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetMaterialQuality00
  13358. static int tolua_Graphics_Renderer_GetMaterialQuality00(lua_State* tolua_S)
  13359. {
  13360. #ifndef TOLUA_RELEASE
  13361. tolua_Error tolua_err;
  13362. if (
  13363. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13364. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13365. )
  13366. goto tolua_lerror;
  13367. else
  13368. #endif
  13369. {
  13370. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13371. #ifndef TOLUA_RELEASE
  13372. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaterialQuality'", NULL);
  13373. #endif
  13374. {
  13375. int tolua_ret = (int) self->GetMaterialQuality();
  13376. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13377. }
  13378. }
  13379. return 1;
  13380. #ifndef TOLUA_RELEASE
  13381. tolua_lerror:
  13382. tolua_error(tolua_S,"#ferror in function 'GetMaterialQuality'.",&tolua_err);
  13383. return 0;
  13384. #endif
  13385. }
  13386. #endif //#ifndef TOLUA_DISABLE
  13387. /* method: GetShadowMapSize of class Renderer */
  13388. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetShadowMapSize00
  13389. static int tolua_Graphics_Renderer_GetShadowMapSize00(lua_State* tolua_S)
  13390. {
  13391. #ifndef TOLUA_RELEASE
  13392. tolua_Error tolua_err;
  13393. if (
  13394. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13395. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13396. )
  13397. goto tolua_lerror;
  13398. else
  13399. #endif
  13400. {
  13401. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13402. #ifndef TOLUA_RELEASE
  13403. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowMapSize'", NULL);
  13404. #endif
  13405. {
  13406. int tolua_ret = (int) self->GetShadowMapSize();
  13407. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13408. }
  13409. }
  13410. return 1;
  13411. #ifndef TOLUA_RELEASE
  13412. tolua_lerror:
  13413. tolua_error(tolua_S,"#ferror in function 'GetShadowMapSize'.",&tolua_err);
  13414. return 0;
  13415. #endif
  13416. }
  13417. #endif //#ifndef TOLUA_DISABLE
  13418. /* method: GetShadowQuality of class Renderer */
  13419. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetShadowQuality00
  13420. static int tolua_Graphics_Renderer_GetShadowQuality00(lua_State* tolua_S)
  13421. {
  13422. #ifndef TOLUA_RELEASE
  13423. tolua_Error tolua_err;
  13424. if (
  13425. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13426. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13427. )
  13428. goto tolua_lerror;
  13429. else
  13430. #endif
  13431. {
  13432. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13433. #ifndef TOLUA_RELEASE
  13434. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowQuality'", NULL);
  13435. #endif
  13436. {
  13437. int tolua_ret = (int) self->GetShadowQuality();
  13438. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13439. }
  13440. }
  13441. return 1;
  13442. #ifndef TOLUA_RELEASE
  13443. tolua_lerror:
  13444. tolua_error(tolua_S,"#ferror in function 'GetShadowQuality'.",&tolua_err);
  13445. return 0;
  13446. #endif
  13447. }
  13448. #endif //#ifndef TOLUA_DISABLE
  13449. /* method: GetReuseShadowMaps of class Renderer */
  13450. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetReuseShadowMaps00
  13451. static int tolua_Graphics_Renderer_GetReuseShadowMaps00(lua_State* tolua_S)
  13452. {
  13453. #ifndef TOLUA_RELEASE
  13454. tolua_Error tolua_err;
  13455. if (
  13456. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13457. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13458. )
  13459. goto tolua_lerror;
  13460. else
  13461. #endif
  13462. {
  13463. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13464. #ifndef TOLUA_RELEASE
  13465. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetReuseShadowMaps'", NULL);
  13466. #endif
  13467. {
  13468. bool tolua_ret = (bool) self->GetReuseShadowMaps();
  13469. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  13470. }
  13471. }
  13472. return 1;
  13473. #ifndef TOLUA_RELEASE
  13474. tolua_lerror:
  13475. tolua_error(tolua_S,"#ferror in function 'GetReuseShadowMaps'.",&tolua_err);
  13476. return 0;
  13477. #endif
  13478. }
  13479. #endif //#ifndef TOLUA_DISABLE
  13480. /* method: GetMaxShadowMaps of class Renderer */
  13481. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetMaxShadowMaps00
  13482. static int tolua_Graphics_Renderer_GetMaxShadowMaps00(lua_State* tolua_S)
  13483. {
  13484. #ifndef TOLUA_RELEASE
  13485. tolua_Error tolua_err;
  13486. if (
  13487. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13488. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13489. )
  13490. goto tolua_lerror;
  13491. else
  13492. #endif
  13493. {
  13494. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13495. #ifndef TOLUA_RELEASE
  13496. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxShadowMaps'", NULL);
  13497. #endif
  13498. {
  13499. int tolua_ret = (int) self->GetMaxShadowMaps();
  13500. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13501. }
  13502. }
  13503. return 1;
  13504. #ifndef TOLUA_RELEASE
  13505. tolua_lerror:
  13506. tolua_error(tolua_S,"#ferror in function 'GetMaxShadowMaps'.",&tolua_err);
  13507. return 0;
  13508. #endif
  13509. }
  13510. #endif //#ifndef TOLUA_DISABLE
  13511. /* method: GetMaxShadowCascades of class Renderer */
  13512. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetMaxShadowCascades00
  13513. static int tolua_Graphics_Renderer_GetMaxShadowCascades00(lua_State* tolua_S)
  13514. {
  13515. #ifndef TOLUA_RELEASE
  13516. tolua_Error tolua_err;
  13517. if (
  13518. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13519. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13520. )
  13521. goto tolua_lerror;
  13522. else
  13523. #endif
  13524. {
  13525. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13526. #ifndef TOLUA_RELEASE
  13527. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxShadowCascades'", NULL);
  13528. #endif
  13529. {
  13530. int tolua_ret = (int) self->GetMaxShadowCascades();
  13531. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13532. }
  13533. }
  13534. return 1;
  13535. #ifndef TOLUA_RELEASE
  13536. tolua_lerror:
  13537. tolua_error(tolua_S,"#ferror in function 'GetMaxShadowCascades'.",&tolua_err);
  13538. return 0;
  13539. #endif
  13540. }
  13541. #endif //#ifndef TOLUA_DISABLE
  13542. /* method: GetDynamicInstancing of class Renderer */
  13543. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetDynamicInstancing00
  13544. static int tolua_Graphics_Renderer_GetDynamicInstancing00(lua_State* tolua_S)
  13545. {
  13546. #ifndef TOLUA_RELEASE
  13547. tolua_Error tolua_err;
  13548. if (
  13549. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13550. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13551. )
  13552. goto tolua_lerror;
  13553. else
  13554. #endif
  13555. {
  13556. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13557. #ifndef TOLUA_RELEASE
  13558. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDynamicInstancing'", NULL);
  13559. #endif
  13560. {
  13561. bool tolua_ret = (bool) self->GetDynamicInstancing();
  13562. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  13563. }
  13564. }
  13565. return 1;
  13566. #ifndef TOLUA_RELEASE
  13567. tolua_lerror:
  13568. tolua_error(tolua_S,"#ferror in function 'GetDynamicInstancing'.",&tolua_err);
  13569. return 0;
  13570. #endif
  13571. }
  13572. #endif //#ifndef TOLUA_DISABLE
  13573. /* method: GetMinInstances of class Renderer */
  13574. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetMinInstances00
  13575. static int tolua_Graphics_Renderer_GetMinInstances00(lua_State* tolua_S)
  13576. {
  13577. #ifndef TOLUA_RELEASE
  13578. tolua_Error tolua_err;
  13579. if (
  13580. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13581. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13582. )
  13583. goto tolua_lerror;
  13584. else
  13585. #endif
  13586. {
  13587. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13588. #ifndef TOLUA_RELEASE
  13589. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinInstances'", NULL);
  13590. #endif
  13591. {
  13592. int tolua_ret = (int) self->GetMinInstances();
  13593. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13594. }
  13595. }
  13596. return 1;
  13597. #ifndef TOLUA_RELEASE
  13598. tolua_lerror:
  13599. tolua_error(tolua_S,"#ferror in function 'GetMinInstances'.",&tolua_err);
  13600. return 0;
  13601. #endif
  13602. }
  13603. #endif //#ifndef TOLUA_DISABLE
  13604. /* method: GetMaxInstanceTriangles of class Renderer */
  13605. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetMaxInstanceTriangles00
  13606. static int tolua_Graphics_Renderer_GetMaxInstanceTriangles00(lua_State* tolua_S)
  13607. {
  13608. #ifndef TOLUA_RELEASE
  13609. tolua_Error tolua_err;
  13610. if (
  13611. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13612. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13613. )
  13614. goto tolua_lerror;
  13615. else
  13616. #endif
  13617. {
  13618. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13619. #ifndef TOLUA_RELEASE
  13620. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxInstanceTriangles'", NULL);
  13621. #endif
  13622. {
  13623. int tolua_ret = (int) self->GetMaxInstanceTriangles();
  13624. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13625. }
  13626. }
  13627. return 1;
  13628. #ifndef TOLUA_RELEASE
  13629. tolua_lerror:
  13630. tolua_error(tolua_S,"#ferror in function 'GetMaxInstanceTriangles'.",&tolua_err);
  13631. return 0;
  13632. #endif
  13633. }
  13634. #endif //#ifndef TOLUA_DISABLE
  13635. /* method: GetMaxSortedInstances of class Renderer */
  13636. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetMaxSortedInstances00
  13637. static int tolua_Graphics_Renderer_GetMaxSortedInstances00(lua_State* tolua_S)
  13638. {
  13639. #ifndef TOLUA_RELEASE
  13640. tolua_Error tolua_err;
  13641. if (
  13642. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13643. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13644. )
  13645. goto tolua_lerror;
  13646. else
  13647. #endif
  13648. {
  13649. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13650. #ifndef TOLUA_RELEASE
  13651. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxSortedInstances'", NULL);
  13652. #endif
  13653. {
  13654. int tolua_ret = (int) self->GetMaxSortedInstances();
  13655. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13656. }
  13657. }
  13658. return 1;
  13659. #ifndef TOLUA_RELEASE
  13660. tolua_lerror:
  13661. tolua_error(tolua_S,"#ferror in function 'GetMaxSortedInstances'.",&tolua_err);
  13662. return 0;
  13663. #endif
  13664. }
  13665. #endif //#ifndef TOLUA_DISABLE
  13666. /* method: GetMaxOccluderTriangles of class Renderer */
  13667. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetMaxOccluderTriangles00
  13668. static int tolua_Graphics_Renderer_GetMaxOccluderTriangles00(lua_State* tolua_S)
  13669. {
  13670. #ifndef TOLUA_RELEASE
  13671. tolua_Error tolua_err;
  13672. if (
  13673. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13674. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13675. )
  13676. goto tolua_lerror;
  13677. else
  13678. #endif
  13679. {
  13680. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13681. #ifndef TOLUA_RELEASE
  13682. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxOccluderTriangles'", NULL);
  13683. #endif
  13684. {
  13685. int tolua_ret = (int) self->GetMaxOccluderTriangles();
  13686. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13687. }
  13688. }
  13689. return 1;
  13690. #ifndef TOLUA_RELEASE
  13691. tolua_lerror:
  13692. tolua_error(tolua_S,"#ferror in function 'GetMaxOccluderTriangles'.",&tolua_err);
  13693. return 0;
  13694. #endif
  13695. }
  13696. #endif //#ifndef TOLUA_DISABLE
  13697. /* method: GetOcclusionBufferSize of class Renderer */
  13698. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetOcclusionBufferSize00
  13699. static int tolua_Graphics_Renderer_GetOcclusionBufferSize00(lua_State* tolua_S)
  13700. {
  13701. #ifndef TOLUA_RELEASE
  13702. tolua_Error tolua_err;
  13703. if (
  13704. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13705. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13706. )
  13707. goto tolua_lerror;
  13708. else
  13709. #endif
  13710. {
  13711. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13712. #ifndef TOLUA_RELEASE
  13713. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOcclusionBufferSize'", NULL);
  13714. #endif
  13715. {
  13716. int tolua_ret = (int) self->GetOcclusionBufferSize();
  13717. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13718. }
  13719. }
  13720. return 1;
  13721. #ifndef TOLUA_RELEASE
  13722. tolua_lerror:
  13723. tolua_error(tolua_S,"#ferror in function 'GetOcclusionBufferSize'.",&tolua_err);
  13724. return 0;
  13725. #endif
  13726. }
  13727. #endif //#ifndef TOLUA_DISABLE
  13728. /* method: GetOccluderSizeThreshold of class Renderer */
  13729. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetOccluderSizeThreshold00
  13730. static int tolua_Graphics_Renderer_GetOccluderSizeThreshold00(lua_State* tolua_S)
  13731. {
  13732. #ifndef TOLUA_RELEASE
  13733. tolua_Error tolua_err;
  13734. if (
  13735. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13736. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13737. )
  13738. goto tolua_lerror;
  13739. else
  13740. #endif
  13741. {
  13742. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13743. #ifndef TOLUA_RELEASE
  13744. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOccluderSizeThreshold'", NULL);
  13745. #endif
  13746. {
  13747. float tolua_ret = (float) self->GetOccluderSizeThreshold();
  13748. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13749. }
  13750. }
  13751. return 1;
  13752. #ifndef TOLUA_RELEASE
  13753. tolua_lerror:
  13754. tolua_error(tolua_S,"#ferror in function 'GetOccluderSizeThreshold'.",&tolua_err);
  13755. return 0;
  13756. #endif
  13757. }
  13758. #endif //#ifndef TOLUA_DISABLE
  13759. /* method: GetNumViews of class Renderer */
  13760. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetNumViews00
  13761. static int tolua_Graphics_Renderer_GetNumViews00(lua_State* tolua_S)
  13762. {
  13763. #ifndef TOLUA_RELEASE
  13764. tolua_Error tolua_err;
  13765. if (
  13766. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13767. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13768. )
  13769. goto tolua_lerror;
  13770. else
  13771. #endif
  13772. {
  13773. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13774. #ifndef TOLUA_RELEASE
  13775. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumViews'", NULL);
  13776. #endif
  13777. {
  13778. unsigned tolua_ret = (unsigned) self->GetNumViews();
  13779. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13780. }
  13781. }
  13782. return 1;
  13783. #ifndef TOLUA_RELEASE
  13784. tolua_lerror:
  13785. tolua_error(tolua_S,"#ferror in function 'GetNumViews'.",&tolua_err);
  13786. return 0;
  13787. #endif
  13788. }
  13789. #endif //#ifndef TOLUA_DISABLE
  13790. /* method: GetNumPrimitives of class Renderer */
  13791. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetNumPrimitives00
  13792. static int tolua_Graphics_Renderer_GetNumPrimitives00(lua_State* tolua_S)
  13793. {
  13794. #ifndef TOLUA_RELEASE
  13795. tolua_Error tolua_err;
  13796. if (
  13797. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13798. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13799. )
  13800. goto tolua_lerror;
  13801. else
  13802. #endif
  13803. {
  13804. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13805. #ifndef TOLUA_RELEASE
  13806. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumPrimitives'", NULL);
  13807. #endif
  13808. {
  13809. unsigned tolua_ret = (unsigned) self->GetNumPrimitives();
  13810. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13811. }
  13812. }
  13813. return 1;
  13814. #ifndef TOLUA_RELEASE
  13815. tolua_lerror:
  13816. tolua_error(tolua_S,"#ferror in function 'GetNumPrimitives'.",&tolua_err);
  13817. return 0;
  13818. #endif
  13819. }
  13820. #endif //#ifndef TOLUA_DISABLE
  13821. /* method: GetNumBatches of class Renderer */
  13822. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetNumBatches00
  13823. static int tolua_Graphics_Renderer_GetNumBatches00(lua_State* tolua_S)
  13824. {
  13825. #ifndef TOLUA_RELEASE
  13826. tolua_Error tolua_err;
  13827. if (
  13828. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13829. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13830. )
  13831. goto tolua_lerror;
  13832. else
  13833. #endif
  13834. {
  13835. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13836. #ifndef TOLUA_RELEASE
  13837. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumBatches'", NULL);
  13838. #endif
  13839. {
  13840. unsigned tolua_ret = (unsigned) self->GetNumBatches();
  13841. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13842. }
  13843. }
  13844. return 1;
  13845. #ifndef TOLUA_RELEASE
  13846. tolua_lerror:
  13847. tolua_error(tolua_S,"#ferror in function 'GetNumBatches'.",&tolua_err);
  13848. return 0;
  13849. #endif
  13850. }
  13851. #endif //#ifndef TOLUA_DISABLE
  13852. /* method: GetNumGeometries of class Renderer */
  13853. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetNumGeometries00
  13854. static int tolua_Graphics_Renderer_GetNumGeometries00(lua_State* tolua_S)
  13855. {
  13856. #ifndef TOLUA_RELEASE
  13857. tolua_Error tolua_err;
  13858. if (
  13859. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13860. !tolua_isboolean(tolua_S,2,1,&tolua_err) ||
  13861. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13862. )
  13863. goto tolua_lerror;
  13864. else
  13865. #endif
  13866. {
  13867. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13868. bool allViews = ((bool) tolua_toboolean(tolua_S,2,false));
  13869. #ifndef TOLUA_RELEASE
  13870. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumGeometries'", NULL);
  13871. #endif
  13872. {
  13873. unsigned tolua_ret = (unsigned) self->GetNumGeometries(allViews);
  13874. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13875. }
  13876. }
  13877. return 1;
  13878. #ifndef TOLUA_RELEASE
  13879. tolua_lerror:
  13880. tolua_error(tolua_S,"#ferror in function 'GetNumGeometries'.",&tolua_err);
  13881. return 0;
  13882. #endif
  13883. }
  13884. #endif //#ifndef TOLUA_DISABLE
  13885. /* method: GetNumLights of class Renderer */
  13886. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetNumLights00
  13887. static int tolua_Graphics_Renderer_GetNumLights00(lua_State* tolua_S)
  13888. {
  13889. #ifndef TOLUA_RELEASE
  13890. tolua_Error tolua_err;
  13891. if (
  13892. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13893. !tolua_isboolean(tolua_S,2,1,&tolua_err) ||
  13894. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13895. )
  13896. goto tolua_lerror;
  13897. else
  13898. #endif
  13899. {
  13900. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13901. bool allViews = ((bool) tolua_toboolean(tolua_S,2,false));
  13902. #ifndef TOLUA_RELEASE
  13903. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumLights'", NULL);
  13904. #endif
  13905. {
  13906. unsigned tolua_ret = (unsigned) self->GetNumLights(allViews);
  13907. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13908. }
  13909. }
  13910. return 1;
  13911. #ifndef TOLUA_RELEASE
  13912. tolua_lerror:
  13913. tolua_error(tolua_S,"#ferror in function 'GetNumLights'.",&tolua_err);
  13914. return 0;
  13915. #endif
  13916. }
  13917. #endif //#ifndef TOLUA_DISABLE
  13918. /* method: GetNumShadowMaps of class Renderer */
  13919. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetNumShadowMaps00
  13920. static int tolua_Graphics_Renderer_GetNumShadowMaps00(lua_State* tolua_S)
  13921. {
  13922. #ifndef TOLUA_RELEASE
  13923. tolua_Error tolua_err;
  13924. if (
  13925. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13926. !tolua_isboolean(tolua_S,2,1,&tolua_err) ||
  13927. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13928. )
  13929. goto tolua_lerror;
  13930. else
  13931. #endif
  13932. {
  13933. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13934. bool allViews = ((bool) tolua_toboolean(tolua_S,2,false));
  13935. #ifndef TOLUA_RELEASE
  13936. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumShadowMaps'", NULL);
  13937. #endif
  13938. {
  13939. unsigned tolua_ret = (unsigned) self->GetNumShadowMaps(allViews);
  13940. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13941. }
  13942. }
  13943. return 1;
  13944. #ifndef TOLUA_RELEASE
  13945. tolua_lerror:
  13946. tolua_error(tolua_S,"#ferror in function 'GetNumShadowMaps'.",&tolua_err);
  13947. return 0;
  13948. #endif
  13949. }
  13950. #endif //#ifndef TOLUA_DISABLE
  13951. /* method: GetNumOccluders of class Renderer */
  13952. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetNumOccluders00
  13953. static int tolua_Graphics_Renderer_GetNumOccluders00(lua_State* tolua_S)
  13954. {
  13955. #ifndef TOLUA_RELEASE
  13956. tolua_Error tolua_err;
  13957. if (
  13958. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13959. !tolua_isboolean(tolua_S,2,1,&tolua_err) ||
  13960. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13961. )
  13962. goto tolua_lerror;
  13963. else
  13964. #endif
  13965. {
  13966. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13967. bool allViews = ((bool) tolua_toboolean(tolua_S,2,false));
  13968. #ifndef TOLUA_RELEASE
  13969. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumOccluders'", NULL);
  13970. #endif
  13971. {
  13972. unsigned tolua_ret = (unsigned) self->GetNumOccluders(allViews);
  13973. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13974. }
  13975. }
  13976. return 1;
  13977. #ifndef TOLUA_RELEASE
  13978. tolua_lerror:
  13979. tolua_error(tolua_S,"#ferror in function 'GetNumOccluders'.",&tolua_err);
  13980. return 0;
  13981. #endif
  13982. }
  13983. #endif //#ifndef TOLUA_DISABLE
  13984. /* method: GetDefaultZone of class Renderer */
  13985. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetDefaultZone00
  13986. static int tolua_Graphics_Renderer_GetDefaultZone00(lua_State* tolua_S)
  13987. {
  13988. #ifndef TOLUA_RELEASE
  13989. tolua_Error tolua_err;
  13990. if (
  13991. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  13992. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13993. )
  13994. goto tolua_lerror;
  13995. else
  13996. #endif
  13997. {
  13998. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  13999. #ifndef TOLUA_RELEASE
  14000. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDefaultZone'", NULL);
  14001. #endif
  14002. {
  14003. Zone* tolua_ret = (Zone*) self->GetDefaultZone();
  14004. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Zone");
  14005. }
  14006. }
  14007. return 1;
  14008. #ifndef TOLUA_RELEASE
  14009. tolua_lerror:
  14010. tolua_error(tolua_S,"#ferror in function 'GetDefaultZone'.",&tolua_err);
  14011. return 0;
  14012. #endif
  14013. }
  14014. #endif //#ifndef TOLUA_DISABLE
  14015. /* method: GetQuadDirLight of class Renderer */
  14016. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetQuadDirLight00
  14017. static int tolua_Graphics_Renderer_GetQuadDirLight00(lua_State* tolua_S)
  14018. {
  14019. #ifndef TOLUA_RELEASE
  14020. tolua_Error tolua_err;
  14021. if (
  14022. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14023. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14024. )
  14025. goto tolua_lerror;
  14026. else
  14027. #endif
  14028. {
  14029. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14030. #ifndef TOLUA_RELEASE
  14031. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetQuadDirLight'", NULL);
  14032. #endif
  14033. {
  14034. Light* tolua_ret = (Light*) self->GetQuadDirLight();
  14035. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Light");
  14036. }
  14037. }
  14038. return 1;
  14039. #ifndef TOLUA_RELEASE
  14040. tolua_lerror:
  14041. tolua_error(tolua_S,"#ferror in function 'GetQuadDirLight'.",&tolua_err);
  14042. return 0;
  14043. #endif
  14044. }
  14045. #endif //#ifndef TOLUA_DISABLE
  14046. /* method: GetDefaultMaterial of class Renderer */
  14047. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetDefaultMaterial00
  14048. static int tolua_Graphics_Renderer_GetDefaultMaterial00(lua_State* tolua_S)
  14049. {
  14050. #ifndef TOLUA_RELEASE
  14051. tolua_Error tolua_err;
  14052. if (
  14053. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14054. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14055. )
  14056. goto tolua_lerror;
  14057. else
  14058. #endif
  14059. {
  14060. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14061. #ifndef TOLUA_RELEASE
  14062. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDefaultMaterial'", NULL);
  14063. #endif
  14064. {
  14065. Material* tolua_ret = (Material*) self->GetDefaultMaterial();
  14066. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Material");
  14067. }
  14068. }
  14069. return 1;
  14070. #ifndef TOLUA_RELEASE
  14071. tolua_lerror:
  14072. tolua_error(tolua_S,"#ferror in function 'GetDefaultMaterial'.",&tolua_err);
  14073. return 0;
  14074. #endif
  14075. }
  14076. #endif //#ifndef TOLUA_DISABLE
  14077. /* method: GetDefaultLightRamp of class Renderer */
  14078. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetDefaultLightRamp00
  14079. static int tolua_Graphics_Renderer_GetDefaultLightRamp00(lua_State* tolua_S)
  14080. {
  14081. #ifndef TOLUA_RELEASE
  14082. tolua_Error tolua_err;
  14083. if (
  14084. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14085. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14086. )
  14087. goto tolua_lerror;
  14088. else
  14089. #endif
  14090. {
  14091. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14092. #ifndef TOLUA_RELEASE
  14093. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDefaultLightRamp'", NULL);
  14094. #endif
  14095. {
  14096. Texture2D* tolua_ret = (Texture2D*) self->GetDefaultLightRamp();
  14097. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Texture2D");
  14098. }
  14099. }
  14100. return 1;
  14101. #ifndef TOLUA_RELEASE
  14102. tolua_lerror:
  14103. tolua_error(tolua_S,"#ferror in function 'GetDefaultLightRamp'.",&tolua_err);
  14104. return 0;
  14105. #endif
  14106. }
  14107. #endif //#ifndef TOLUA_DISABLE
  14108. /* method: GetDefaultLightSpot of class Renderer */
  14109. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetDefaultLightSpot00
  14110. static int tolua_Graphics_Renderer_GetDefaultLightSpot00(lua_State* tolua_S)
  14111. {
  14112. #ifndef TOLUA_RELEASE
  14113. tolua_Error tolua_err;
  14114. if (
  14115. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14116. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14117. )
  14118. goto tolua_lerror;
  14119. else
  14120. #endif
  14121. {
  14122. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14123. #ifndef TOLUA_RELEASE
  14124. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDefaultLightSpot'", NULL);
  14125. #endif
  14126. {
  14127. Texture2D* tolua_ret = (Texture2D*) self->GetDefaultLightSpot();
  14128. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Texture2D");
  14129. }
  14130. }
  14131. return 1;
  14132. #ifndef TOLUA_RELEASE
  14133. tolua_lerror:
  14134. tolua_error(tolua_S,"#ferror in function 'GetDefaultLightSpot'.",&tolua_err);
  14135. return 0;
  14136. #endif
  14137. }
  14138. #endif //#ifndef TOLUA_DISABLE
  14139. /* method: GetFaceSelectCubeMap of class Renderer */
  14140. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetFaceSelectCubeMap00
  14141. static int tolua_Graphics_Renderer_GetFaceSelectCubeMap00(lua_State* tolua_S)
  14142. {
  14143. #ifndef TOLUA_RELEASE
  14144. tolua_Error tolua_err;
  14145. if (
  14146. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14147. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14148. )
  14149. goto tolua_lerror;
  14150. else
  14151. #endif
  14152. {
  14153. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14154. #ifndef TOLUA_RELEASE
  14155. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFaceSelectCubeMap'", NULL);
  14156. #endif
  14157. {
  14158. TextureCube* tolua_ret = (TextureCube*) self->GetFaceSelectCubeMap();
  14159. tolua_pushusertype(tolua_S,(void*)tolua_ret,"TextureCube");
  14160. }
  14161. }
  14162. return 1;
  14163. #ifndef TOLUA_RELEASE
  14164. tolua_lerror:
  14165. tolua_error(tolua_S,"#ferror in function 'GetFaceSelectCubeMap'.",&tolua_err);
  14166. return 0;
  14167. #endif
  14168. }
  14169. #endif //#ifndef TOLUA_DISABLE
  14170. /* method: GetIndirectionCubeMap of class Renderer */
  14171. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetIndirectionCubeMap00
  14172. static int tolua_Graphics_Renderer_GetIndirectionCubeMap00(lua_State* tolua_S)
  14173. {
  14174. #ifndef TOLUA_RELEASE
  14175. tolua_Error tolua_err;
  14176. if (
  14177. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14178. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14179. )
  14180. goto tolua_lerror;
  14181. else
  14182. #endif
  14183. {
  14184. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14185. #ifndef TOLUA_RELEASE
  14186. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetIndirectionCubeMap'", NULL);
  14187. #endif
  14188. {
  14189. TextureCube* tolua_ret = (TextureCube*) self->GetIndirectionCubeMap();
  14190. tolua_pushusertype(tolua_S,(void*)tolua_ret,"TextureCube");
  14191. }
  14192. }
  14193. return 1;
  14194. #ifndef TOLUA_RELEASE
  14195. tolua_lerror:
  14196. tolua_error(tolua_S,"#ferror in function 'GetIndirectionCubeMap'.",&tolua_err);
  14197. return 0;
  14198. #endif
  14199. }
  14200. #endif //#ifndef TOLUA_DISABLE
  14201. /* method: GetInstancingBuffer of class Renderer */
  14202. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetInstancingBuffer00
  14203. static int tolua_Graphics_Renderer_GetInstancingBuffer00(lua_State* tolua_S)
  14204. {
  14205. #ifndef TOLUA_RELEASE
  14206. tolua_Error tolua_err;
  14207. if (
  14208. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14209. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14210. )
  14211. goto tolua_lerror;
  14212. else
  14213. #endif
  14214. {
  14215. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14216. #ifndef TOLUA_RELEASE
  14217. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetInstancingBuffer'", NULL);
  14218. #endif
  14219. {
  14220. VertexBuffer* tolua_ret = (VertexBuffer*) self->GetInstancingBuffer();
  14221. tolua_pushusertype(tolua_S,(void*)tolua_ret,"VertexBuffer");
  14222. }
  14223. }
  14224. return 1;
  14225. #ifndef TOLUA_RELEASE
  14226. tolua_lerror:
  14227. tolua_error(tolua_S,"#ferror in function 'GetInstancingBuffer'.",&tolua_err);
  14228. return 0;
  14229. #endif
  14230. }
  14231. #endif //#ifndef TOLUA_DISABLE
  14232. /* method: GetVertexShader of class Renderer */
  14233. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetVertexShader00
  14234. static int tolua_Graphics_Renderer_GetVertexShader00(lua_State* tolua_S)
  14235. {
  14236. #ifndef TOLUA_RELEASE
  14237. tolua_Error tolua_err;
  14238. if (
  14239. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14240. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  14241. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  14242. !tolua_isnoobj(tolua_S,4,&tolua_err)
  14243. )
  14244. goto tolua_lerror;
  14245. else
  14246. #endif
  14247. {
  14248. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14249. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  14250. bool checkExists = ((bool) tolua_toboolean(tolua_S,3,false));
  14251. #ifndef TOLUA_RELEASE
  14252. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetVertexShader'", NULL);
  14253. #endif
  14254. {
  14255. ShaderVariation* tolua_ret = (ShaderVariation*) self->GetVertexShader(*name,checkExists);
  14256. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ShaderVariation");
  14257. }
  14258. }
  14259. return 1;
  14260. #ifndef TOLUA_RELEASE
  14261. tolua_lerror:
  14262. tolua_error(tolua_S,"#ferror in function 'GetVertexShader'.",&tolua_err);
  14263. return 0;
  14264. #endif
  14265. }
  14266. #endif //#ifndef TOLUA_DISABLE
  14267. /* method: GetPixelShader of class Renderer */
  14268. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetPixelShader00
  14269. static int tolua_Graphics_Renderer_GetPixelShader00(lua_State* tolua_S)
  14270. {
  14271. #ifndef TOLUA_RELEASE
  14272. tolua_Error tolua_err;
  14273. if (
  14274. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14275. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  14276. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  14277. !tolua_isnoobj(tolua_S,4,&tolua_err)
  14278. )
  14279. goto tolua_lerror;
  14280. else
  14281. #endif
  14282. {
  14283. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14284. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  14285. bool checkExists = ((bool) tolua_toboolean(tolua_S,3,false));
  14286. #ifndef TOLUA_RELEASE
  14287. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPixelShader'", NULL);
  14288. #endif
  14289. {
  14290. ShaderVariation* tolua_ret = (ShaderVariation*) self->GetPixelShader(*name,checkExists);
  14291. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ShaderVariation");
  14292. }
  14293. }
  14294. return 1;
  14295. #ifndef TOLUA_RELEASE
  14296. tolua_lerror:
  14297. tolua_error(tolua_S,"#ferror in function 'GetPixelShader'.",&tolua_err);
  14298. return 0;
  14299. #endif
  14300. }
  14301. #endif //#ifndef TOLUA_DISABLE
  14302. /* method: GetStencilVS of class Renderer */
  14303. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetStencilVS00
  14304. static int tolua_Graphics_Renderer_GetStencilVS00(lua_State* tolua_S)
  14305. {
  14306. #ifndef TOLUA_RELEASE
  14307. tolua_Error tolua_err;
  14308. if (
  14309. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14310. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14311. )
  14312. goto tolua_lerror;
  14313. else
  14314. #endif
  14315. {
  14316. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14317. #ifndef TOLUA_RELEASE
  14318. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetStencilVS'", NULL);
  14319. #endif
  14320. {
  14321. ShaderVariation* tolua_ret = (ShaderVariation*) self->GetStencilVS();
  14322. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ShaderVariation");
  14323. }
  14324. }
  14325. return 1;
  14326. #ifndef TOLUA_RELEASE
  14327. tolua_lerror:
  14328. tolua_error(tolua_S,"#ferror in function 'GetStencilVS'.",&tolua_err);
  14329. return 0;
  14330. #endif
  14331. }
  14332. #endif //#ifndef TOLUA_DISABLE
  14333. /* method: GetStencilPS of class Renderer */
  14334. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetStencilPS00
  14335. static int tolua_Graphics_Renderer_GetStencilPS00(lua_State* tolua_S)
  14336. {
  14337. #ifndef TOLUA_RELEASE
  14338. tolua_Error tolua_err;
  14339. if (
  14340. !tolua_isusertype(tolua_S,1,"const Renderer",0,&tolua_err) ||
  14341. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14342. )
  14343. goto tolua_lerror;
  14344. else
  14345. #endif
  14346. {
  14347. const Renderer* self = (const Renderer*) tolua_tousertype(tolua_S,1,0);
  14348. #ifndef TOLUA_RELEASE
  14349. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetStencilPS'", NULL);
  14350. #endif
  14351. {
  14352. ShaderVariation* tolua_ret = (ShaderVariation*) self->GetStencilPS();
  14353. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ShaderVariation");
  14354. }
  14355. }
  14356. return 1;
  14357. #ifndef TOLUA_RELEASE
  14358. tolua_lerror:
  14359. tolua_error(tolua_S,"#ferror in function 'GetStencilPS'.",&tolua_err);
  14360. return 0;
  14361. #endif
  14362. }
  14363. #endif //#ifndef TOLUA_DISABLE
  14364. /* method: GetFrameInfo of class Renderer */
  14365. #ifndef TOLUA_DISABLE_tolua_Graphics_Renderer_GetFrameInfo00
  14366. static int tolua_Graphics_Renderer_GetFrameInfo00(lua_State* tolua_S)
  14367. {
  14368. #ifndef TOLUA_RELEASE
  14369. tolua_Error tolua_err;
  14370. if (
  14371. !tolua_isusertype(tolua_S,1,"Renderer",0,&tolua_err) ||
  14372. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14373. )
  14374. goto tolua_lerror;
  14375. else
  14376. #endif
  14377. {
  14378. Renderer* self = (Renderer*) tolua_tousertype(tolua_S,1,0);
  14379. #ifndef TOLUA_RELEASE
  14380. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFrameInfo'", NULL);
  14381. #endif
  14382. {
  14383. const FrameInfo& tolua_ret = (const FrameInfo&) self->GetFrameInfo();
  14384. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const FrameInfo");
  14385. }
  14386. }
  14387. return 1;
  14388. #ifndef TOLUA_RELEASE
  14389. tolua_lerror:
  14390. tolua_error(tolua_S,"#ferror in function 'GetFrameInfo'.",&tolua_err);
  14391. return 0;
  14392. #endif
  14393. }
  14394. #endif //#ifndef TOLUA_DISABLE
  14395. /* function: GetRenderer */
  14396. #ifndef TOLUA_DISABLE_tolua_Graphics_GetRenderer00
  14397. static int tolua_Graphics_GetRenderer00(lua_State* tolua_S)
  14398. {
  14399. #ifndef TOLUA_RELEASE
  14400. tolua_Error tolua_err;
  14401. if (
  14402. !tolua_isnoobj(tolua_S,1,&tolua_err)
  14403. )
  14404. goto tolua_lerror;
  14405. else
  14406. #endif
  14407. {
  14408. {
  14409. Renderer* tolua_ret = (Renderer*) GetRenderer();
  14410. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Renderer");
  14411. }
  14412. }
  14413. return 1;
  14414. #ifndef TOLUA_RELEASE
  14415. tolua_lerror:
  14416. tolua_error(tolua_S,"#ferror in function 'GetRenderer'.",&tolua_err);
  14417. return 0;
  14418. #endif
  14419. }
  14420. #endif //#ifndef TOLUA_DISABLE
  14421. /* method: SetNumViewports of class RenderSurface */
  14422. #ifndef TOLUA_DISABLE_tolua_Graphics_RenderSurface_SetNumViewports00
  14423. static int tolua_Graphics_RenderSurface_SetNumViewports00(lua_State* tolua_S)
  14424. {
  14425. #ifndef TOLUA_RELEASE
  14426. tolua_Error tolua_err;
  14427. if (
  14428. !tolua_isusertype(tolua_S,1,"RenderSurface",0,&tolua_err) ||
  14429. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  14430. !tolua_isnoobj(tolua_S,3,&tolua_err)
  14431. )
  14432. goto tolua_lerror;
  14433. else
  14434. #endif
  14435. {
  14436. RenderSurface* self = (RenderSurface*) tolua_tousertype(tolua_S,1,0);
  14437. unsigned num = ((unsigned) tolua_tonumber(tolua_S,2,0));
  14438. #ifndef TOLUA_RELEASE
  14439. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetNumViewports'", NULL);
  14440. #endif
  14441. {
  14442. self->SetNumViewports(num);
  14443. }
  14444. }
  14445. return 0;
  14446. #ifndef TOLUA_RELEASE
  14447. tolua_lerror:
  14448. tolua_error(tolua_S,"#ferror in function 'SetNumViewports'.",&tolua_err);
  14449. return 0;
  14450. #endif
  14451. }
  14452. #endif //#ifndef TOLUA_DISABLE
  14453. /* method: SetViewport of class RenderSurface */
  14454. #ifndef TOLUA_DISABLE_tolua_Graphics_RenderSurface_SetViewport00
  14455. static int tolua_Graphics_RenderSurface_SetViewport00(lua_State* tolua_S)
  14456. {
  14457. #ifndef TOLUA_RELEASE
  14458. tolua_Error tolua_err;
  14459. if (
  14460. !tolua_isusertype(tolua_S,1,"RenderSurface",0,&tolua_err) ||
  14461. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  14462. !tolua_isusertype(tolua_S,3,"Viewport",0,&tolua_err) ||
  14463. !tolua_isnoobj(tolua_S,4,&tolua_err)
  14464. )
  14465. goto tolua_lerror;
  14466. else
  14467. #endif
  14468. {
  14469. RenderSurface* self = (RenderSurface*) tolua_tousertype(tolua_S,1,0);
  14470. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  14471. Viewport* viewport = ((Viewport*) tolua_tousertype(tolua_S,3,0));
  14472. #ifndef TOLUA_RELEASE
  14473. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetViewport'", NULL);
  14474. #endif
  14475. {
  14476. self->SetViewport(index,viewport);
  14477. }
  14478. }
  14479. return 0;
  14480. #ifndef TOLUA_RELEASE
  14481. tolua_lerror:
  14482. tolua_error(tolua_S,"#ferror in function 'SetViewport'.",&tolua_err);
  14483. return 0;
  14484. #endif
  14485. }
  14486. #endif //#ifndef TOLUA_DISABLE
  14487. /* method: SetUpdateMode of class RenderSurface */
  14488. #ifndef TOLUA_DISABLE_tolua_Graphics_RenderSurface_SetUpdateMode00
  14489. static int tolua_Graphics_RenderSurface_SetUpdateMode00(lua_State* tolua_S)
  14490. {
  14491. #ifndef TOLUA_RELEASE
  14492. tolua_Error tolua_err;
  14493. if (
  14494. !tolua_isusertype(tolua_S,1,"RenderSurface",0,&tolua_err) ||
  14495. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  14496. !tolua_isnoobj(tolua_S,3,&tolua_err)
  14497. )
  14498. goto tolua_lerror;
  14499. else
  14500. #endif
  14501. {
  14502. RenderSurface* self = (RenderSurface*) tolua_tousertype(tolua_S,1,0);
  14503. RenderSurfaceUpdateMode mode = ((RenderSurfaceUpdateMode) (int) tolua_tonumber(tolua_S,2,0));
  14504. #ifndef TOLUA_RELEASE
  14505. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetUpdateMode'", NULL);
  14506. #endif
  14507. {
  14508. self->SetUpdateMode(mode);
  14509. }
  14510. }
  14511. return 0;
  14512. #ifndef TOLUA_RELEASE
  14513. tolua_lerror:
  14514. tolua_error(tolua_S,"#ferror in function 'SetUpdateMode'.",&tolua_err);
  14515. return 0;
  14516. #endif
  14517. }
  14518. #endif //#ifndef TOLUA_DISABLE
  14519. /* method: SetLinkedRenderTarget of class RenderSurface */
  14520. #ifndef TOLUA_DISABLE_tolua_Graphics_RenderSurface_SetLinkedRenderTarget00
  14521. static int tolua_Graphics_RenderSurface_SetLinkedRenderTarget00(lua_State* tolua_S)
  14522. {
  14523. #ifndef TOLUA_RELEASE
  14524. tolua_Error tolua_err;
  14525. if (
  14526. !tolua_isusertype(tolua_S,1,"RenderSurface",0,&tolua_err) ||
  14527. !tolua_isusertype(tolua_S,2,"RenderSurface",0,&tolua_err) ||
  14528. !tolua_isnoobj(tolua_S,3,&tolua_err)
  14529. )
  14530. goto tolua_lerror;
  14531. else
  14532. #endif
  14533. {
  14534. RenderSurface* self = (RenderSurface*) tolua_tousertype(tolua_S,1,0);
  14535. RenderSurface* renderTarget = ((RenderSurface*) tolua_tousertype(tolua_S,2,0));
  14536. #ifndef TOLUA_RELEASE
  14537. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLinkedRenderTarget'", NULL);
  14538. #endif
  14539. {
  14540. self->SetLinkedRenderTarget(renderTarget);
  14541. }
  14542. }
  14543. return 0;
  14544. #ifndef TOLUA_RELEASE
  14545. tolua_lerror:
  14546. tolua_error(tolua_S,"#ferror in function 'SetLinkedRenderTarget'.",&tolua_err);
  14547. return 0;
  14548. #endif
  14549. }
  14550. #endif //#ifndef TOLUA_DISABLE
  14551. /* method: SetLinkedDepthStencil of class RenderSurface */
  14552. #ifndef TOLUA_DISABLE_tolua_Graphics_RenderSurface_SetLinkedDepthStencil00
  14553. static int tolua_Graphics_RenderSurface_SetLinkedDepthStencil00(lua_State* tolua_S)
  14554. {
  14555. #ifndef TOLUA_RELEASE
  14556. tolua_Error tolua_err;
  14557. if (
  14558. !tolua_isusertype(tolua_S,1,"RenderSurface",0,&tolua_err) ||
  14559. !tolua_isusertype(tolua_S,2,"RenderSurface",0,&tolua_err) ||
  14560. !tolua_isnoobj(tolua_S,3,&tolua_err)
  14561. )
  14562. goto tolua_lerror;
  14563. else
  14564. #endif
  14565. {
  14566. RenderSurface* self = (RenderSurface*) tolua_tousertype(tolua_S,1,0);
  14567. RenderSurface* depthStencil = ((RenderSurface*) tolua_tousertype(tolua_S,2,0));
  14568. #ifndef TOLUA_RELEASE
  14569. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLinkedDepthStencil'", NULL);
  14570. #endif
  14571. {
  14572. self->SetLinkedDepthStencil(depthStencil);
  14573. }
  14574. }
  14575. return 0;
  14576. #ifndef TOLUA_RELEASE
  14577. tolua_lerror:
  14578. tolua_error(tolua_S,"#ferror in function 'SetLinkedDepthStencil'.",&tolua_err);
  14579. return 0;
  14580. #endif
  14581. }
  14582. #endif //#ifndef TOLUA_DISABLE
  14583. /* method: QueueUpdate of class RenderSurface */
  14584. #ifndef TOLUA_DISABLE_tolua_Graphics_RenderSurface_QueueUpdate00
  14585. static int tolua_Graphics_RenderSurface_QueueUpdate00(lua_State* tolua_S)
  14586. {
  14587. #ifndef TOLUA_RELEASE
  14588. tolua_Error tolua_err;
  14589. if (
  14590. !tolua_isusertype(tolua_S,1,"RenderSurface",0,&tolua_err) ||
  14591. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14592. )
  14593. goto tolua_lerror;
  14594. else
  14595. #endif
  14596. {
  14597. RenderSurface* self = (RenderSurface*) tolua_tousertype(tolua_S,1,0);
  14598. #ifndef TOLUA_RELEASE
  14599. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'QueueUpdate'", NULL);
  14600. #endif
  14601. {
  14602. self->QueueUpdate();
  14603. }
  14604. }
  14605. return 0;
  14606. #ifndef TOLUA_RELEASE
  14607. tolua_lerror:
  14608. tolua_error(tolua_S,"#ferror in function 'QueueUpdate'.",&tolua_err);
  14609. return 0;
  14610. #endif
  14611. }
  14612. #endif //#ifndef TOLUA_DISABLE
  14613. /* method: Release of class RenderSurface */
  14614. #ifndef TOLUA_DISABLE_tolua_Graphics_RenderSurface_Release00
  14615. static int tolua_Graphics_RenderSurface_Release00(lua_State* tolua_S)
  14616. {
  14617. #ifndef TOLUA_RELEASE
  14618. tolua_Error tolua_err;
  14619. if (
  14620. !tolua_isusertype(tolua_S,1,"RenderSurface",0,&tolua_err) ||
  14621. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14622. )
  14623. goto tolua_lerror;
  14624. else
  14625. #endif
  14626. {
  14627. RenderSurface* self = (RenderSurface*) tolua_tousertype(tolua_S,1,0);
  14628. #ifndef TOLUA_RELEASE
  14629. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Release'", NULL);
  14630. #endif
  14631. {
  14632. self->Release();
  14633. }
  14634. }
  14635. return 0;
  14636. #ifndef TOLUA_RELEASE
  14637. tolua_lerror:
  14638. tolua_error(tolua_S,"#ferror in function 'Release'.",&tolua_err);
  14639. return 0;
  14640. #endif
  14641. }
  14642. #endif //#ifndef TOLUA_DISABLE
  14643. /* method: GetParentTexture of class RenderSurface */
  14644. #ifndef TOLUA_DISABLE_tolua_Graphics_RenderSurface_GetParentTexture00
  14645. static int tolua_Graphics_RenderSurface_GetParentTexture00(lua_State* tolua_S)
  14646. {
  14647. #ifndef TOLUA_RELEASE
  14648. tolua_Error tolua_err;
  14649. if (
  14650. !tolua_isusertype(tolua_S,1,"const RenderSurface",0,&tolua_err) ||
  14651. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14652. )
  14653. goto tolua_lerror;
  14654. else
  14655. #endif
  14656. {
  14657. const RenderSurface* self = (const RenderSurface*) tolua_tousertype(tolua_S,1,0);
  14658. #ifndef TOLUA_RELEASE
  14659. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetParentTexture'", NULL);
  14660. #endif
  14661. {
  14662. Texture* tolua_ret = (Texture*) self->GetParentTexture();
  14663. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Texture");
  14664. }
  14665. }
  14666. return 1;
  14667. #ifndef TOLUA_RELEASE
  14668. tolua_lerror:
  14669. tolua_error(tolua_S,"#ferror in function 'GetParentTexture'.",&tolua_err);
  14670. return 0;
  14671. #endif
  14672. }
  14673. #endif //#ifndef TOLUA_DISABLE
  14674. /* method: GetWidth of class RenderSurface */
  14675. #ifndef TOLUA_DISABLE_tolua_Graphics_RenderSurface_GetWidth00
  14676. static int tolua_Graphics_RenderSurface_GetWidth00(lua_State* tolua_S)
  14677. {
  14678. #ifndef TOLUA_RELEASE
  14679. tolua_Error tolua_err;
  14680. if (
  14681. !tolua_isusertype(tolua_S,1,"const RenderSurface",0,&tolua_err) ||
  14682. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14683. )
  14684. goto tolua_lerror;
  14685. else
  14686. #endif
  14687. {
  14688. const RenderSurface* self = (const RenderSurface*) tolua_tousertype(tolua_S,1,0);
  14689. #ifndef TOLUA_RELEASE
  14690. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWidth'", NULL);
  14691. #endif
  14692. {
  14693. int tolua_ret = (int) self->GetWidth();
  14694. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  14695. }
  14696. }
  14697. return 1;
  14698. #ifndef TOLUA_RELEASE
  14699. tolua_lerror:
  14700. tolua_error(tolua_S,"#ferror in function 'GetWidth'.",&tolua_err);
  14701. return 0;
  14702. #endif
  14703. }
  14704. #endif //#ifndef TOLUA_DISABLE
  14705. /* method: GetHeight of class RenderSurface */
  14706. #ifndef TOLUA_DISABLE_tolua_Graphics_RenderSurface_GetHeight00
  14707. static int tolua_Graphics_RenderSurface_GetHeight00(lua_State* tolua_S)
  14708. {
  14709. #ifndef TOLUA_RELEASE
  14710. tolua_Error tolua_err;
  14711. if (
  14712. !tolua_isusertype(tolua_S,1,"const RenderSurface",0,&tolua_err) ||
  14713. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14714. )
  14715. goto tolua_lerror;
  14716. else
  14717. #endif
  14718. {
  14719. const RenderSurface* self = (const RenderSurface*) tolua_tousertype(tolua_S,1,0);
  14720. #ifndef TOLUA_RELEASE
  14721. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHeight'", NULL);
  14722. #endif
  14723. {
  14724. int tolua_ret = (int) self->GetHeight();
  14725. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  14726. }
  14727. }
  14728. return 1;
  14729. #ifndef TOLUA_RELEASE
  14730. tolua_lerror:
  14731. tolua_error(tolua_S,"#ferror in function 'GetHeight'.",&tolua_err);
  14732. return 0;
  14733. #endif
  14734. }
  14735. #endif //#ifndef TOLUA_DISABLE
  14736. /* method: GetUsage of class RenderSurface */
  14737. #ifndef TOLUA_DISABLE_tolua_Graphics_RenderSurface_GetUsage00
  14738. static int tolua_Graphics_RenderSurface_GetUsage00(lua_State* tolua_S)
  14739. {
  14740. #ifndef TOLUA_RELEASE
  14741. tolua_Error tolua_err;
  14742. if (
  14743. !tolua_isusertype(tolua_S,1,"const RenderSurface",0,&tolua_err) ||
  14744. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14745. )
  14746. goto tolua_lerror;
  14747. else
  14748. #endif
  14749. {
  14750. const RenderSurface* self = (const RenderSurface*) tolua_tousertype(tolua_S,1,0);
  14751. #ifndef TOLUA_RELEASE
  14752. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetUsage'", NULL);
  14753. #endif
  14754. {
  14755. TextureUsage tolua_ret = (TextureUsage) self->GetUsage();
  14756. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  14757. }
  14758. }
  14759. return 1;
  14760. #ifndef TOLUA_RELEASE
  14761. tolua_lerror:
  14762. tolua_error(tolua_S,"#ferror in function 'GetUsage'.",&tolua_err);
  14763. return 0;
  14764. #endif
  14765. }
  14766. #endif //#ifndef TOLUA_DISABLE
  14767. /* method: GetLinkedRenderTarget of class RenderSurface */
  14768. #ifndef TOLUA_DISABLE_tolua_Graphics_RenderSurface_GetLinkedRenderTarget00
  14769. static int tolua_Graphics_RenderSurface_GetLinkedRenderTarget00(lua_State* tolua_S)
  14770. {
  14771. #ifndef TOLUA_RELEASE
  14772. tolua_Error tolua_err;
  14773. if (
  14774. !tolua_isusertype(tolua_S,1,"const RenderSurface",0,&tolua_err) ||
  14775. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14776. )
  14777. goto tolua_lerror;
  14778. else
  14779. #endif
  14780. {
  14781. const RenderSurface* self = (const RenderSurface*) tolua_tousertype(tolua_S,1,0);
  14782. #ifndef TOLUA_RELEASE
  14783. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLinkedRenderTarget'", NULL);
  14784. #endif
  14785. {
  14786. RenderSurface* tolua_ret = (RenderSurface*) self->GetLinkedRenderTarget();
  14787. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RenderSurface");
  14788. }
  14789. }
  14790. return 1;
  14791. #ifndef TOLUA_RELEASE
  14792. tolua_lerror:
  14793. tolua_error(tolua_S,"#ferror in function 'GetLinkedRenderTarget'.",&tolua_err);
  14794. return 0;
  14795. #endif
  14796. }
  14797. #endif //#ifndef TOLUA_DISABLE
  14798. /* method: GetLinkedDepthStencil of class RenderSurface */
  14799. #ifndef TOLUA_DISABLE_tolua_Graphics_RenderSurface_GetLinkedDepthStencil00
  14800. static int tolua_Graphics_RenderSurface_GetLinkedDepthStencil00(lua_State* tolua_S)
  14801. {
  14802. #ifndef TOLUA_RELEASE
  14803. tolua_Error tolua_err;
  14804. if (
  14805. !tolua_isusertype(tolua_S,1,"const RenderSurface",0,&tolua_err) ||
  14806. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14807. )
  14808. goto tolua_lerror;
  14809. else
  14810. #endif
  14811. {
  14812. const RenderSurface* self = (const RenderSurface*) tolua_tousertype(tolua_S,1,0);
  14813. #ifndef TOLUA_RELEASE
  14814. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLinkedDepthStencil'", NULL);
  14815. #endif
  14816. {
  14817. RenderSurface* tolua_ret = (RenderSurface*) self->GetLinkedDepthStencil();
  14818. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RenderSurface");
  14819. }
  14820. }
  14821. return 1;
  14822. #ifndef TOLUA_RELEASE
  14823. tolua_lerror:
  14824. tolua_error(tolua_S,"#ferror in function 'GetLinkedDepthStencil'.",&tolua_err);
  14825. return 0;
  14826. #endif
  14827. }
  14828. #endif //#ifndef TOLUA_DISABLE
  14829. /* method: new of class Bone */
  14830. #ifndef TOLUA_DISABLE_tolua_Graphics_Bone_new00
  14831. static int tolua_Graphics_Bone_new00(lua_State* tolua_S)
  14832. {
  14833. #ifndef TOLUA_RELEASE
  14834. tolua_Error tolua_err;
  14835. if (
  14836. !tolua_isusertable(tolua_S,1,"Bone",0,&tolua_err) ||
  14837. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14838. )
  14839. goto tolua_lerror;
  14840. else
  14841. #endif
  14842. {
  14843. {
  14844. Bone* tolua_ret = (Bone*) Mtolua_new((Bone)());
  14845. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Bone");
  14846. }
  14847. }
  14848. return 1;
  14849. #ifndef TOLUA_RELEASE
  14850. tolua_lerror:
  14851. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  14852. return 0;
  14853. #endif
  14854. }
  14855. #endif //#ifndef TOLUA_DISABLE
  14856. /* method: new_local of class Bone */
  14857. #ifndef TOLUA_DISABLE_tolua_Graphics_Bone_new00_local
  14858. static int tolua_Graphics_Bone_new00_local(lua_State* tolua_S)
  14859. {
  14860. #ifndef TOLUA_RELEASE
  14861. tolua_Error tolua_err;
  14862. if (
  14863. !tolua_isusertable(tolua_S,1,"Bone",0,&tolua_err) ||
  14864. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14865. )
  14866. goto tolua_lerror;
  14867. else
  14868. #endif
  14869. {
  14870. {
  14871. Bone* tolua_ret = (Bone*) Mtolua_new((Bone)());
  14872. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Bone");
  14873. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  14874. }
  14875. }
  14876. return 1;
  14877. #ifndef TOLUA_RELEASE
  14878. tolua_lerror:
  14879. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  14880. return 0;
  14881. #endif
  14882. }
  14883. #endif //#ifndef TOLUA_DISABLE
  14884. /* get function: name_ of class Bone */
  14885. #ifndef TOLUA_DISABLE_tolua_get_Bone_name
  14886. static int tolua_get_Bone_name(lua_State* tolua_S)
  14887. {
  14888. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  14889. #ifndef TOLUA_RELEASE
  14890. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'name_'",NULL);
  14891. #endif
  14892. tolua_pushusertype(tolua_S,(void*)&self->name_,"String");
  14893. return 1;
  14894. }
  14895. #endif //#ifndef TOLUA_DISABLE
  14896. /* set function: name_ of class Bone */
  14897. #ifndef TOLUA_DISABLE_tolua_set_Bone_name
  14898. static int tolua_set_Bone_name(lua_State* tolua_S)
  14899. {
  14900. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  14901. #ifndef TOLUA_RELEASE
  14902. tolua_Error tolua_err;
  14903. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'name_'",NULL);
  14904. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"String",0,&tolua_err)))
  14905. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  14906. #endif
  14907. self->name_ = *((String*) tolua_tousertype(tolua_S,2,0))
  14908. ;
  14909. return 0;
  14910. }
  14911. #endif //#ifndef TOLUA_DISABLE
  14912. /* get function: nameHash_ of class Bone */
  14913. #ifndef TOLUA_DISABLE_tolua_get_Bone_nameHash
  14914. static int tolua_get_Bone_nameHash(lua_State* tolua_S)
  14915. {
  14916. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  14917. #ifndef TOLUA_RELEASE
  14918. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'nameHash_'",NULL);
  14919. #endif
  14920. tolua_pushusertype(tolua_S,(void*)&self->nameHash_,"StringHash");
  14921. return 1;
  14922. }
  14923. #endif //#ifndef TOLUA_DISABLE
  14924. /* set function: nameHash_ of class Bone */
  14925. #ifndef TOLUA_DISABLE_tolua_set_Bone_nameHash
  14926. static int tolua_set_Bone_nameHash(lua_State* tolua_S)
  14927. {
  14928. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  14929. #ifndef TOLUA_RELEASE
  14930. tolua_Error tolua_err;
  14931. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'nameHash_'",NULL);
  14932. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"StringHash",0,&tolua_err)))
  14933. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  14934. #endif
  14935. self->nameHash_ = *((StringHash*) tolua_tousertype(tolua_S,2,0))
  14936. ;
  14937. return 0;
  14938. }
  14939. #endif //#ifndef TOLUA_DISABLE
  14940. /* get function: parentIndex_ of class Bone */
  14941. #ifndef TOLUA_DISABLE_tolua_get_Bone_parentIndex
  14942. static int tolua_get_Bone_parentIndex(lua_State* tolua_S)
  14943. {
  14944. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  14945. #ifndef TOLUA_RELEASE
  14946. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'parentIndex_'",NULL);
  14947. #endif
  14948. tolua_pushnumber(tolua_S,(lua_Number)self->parentIndex_);
  14949. return 1;
  14950. }
  14951. #endif //#ifndef TOLUA_DISABLE
  14952. /* set function: parentIndex_ of class Bone */
  14953. #ifndef TOLUA_DISABLE_tolua_set_Bone_parentIndex
  14954. static int tolua_set_Bone_parentIndex(lua_State* tolua_S)
  14955. {
  14956. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  14957. #ifndef TOLUA_RELEASE
  14958. tolua_Error tolua_err;
  14959. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'parentIndex_'",NULL);
  14960. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  14961. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  14962. #endif
  14963. self->parentIndex_ = ((unsigned) tolua_tonumber(tolua_S,2,0))
  14964. ;
  14965. return 0;
  14966. }
  14967. #endif //#ifndef TOLUA_DISABLE
  14968. /* get function: initialPosition_ of class Bone */
  14969. #ifndef TOLUA_DISABLE_tolua_get_Bone_initialPosition
  14970. static int tolua_get_Bone_initialPosition(lua_State* tolua_S)
  14971. {
  14972. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  14973. #ifndef TOLUA_RELEASE
  14974. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'initialPosition_'",NULL);
  14975. #endif
  14976. tolua_pushusertype(tolua_S,(void*)&self->initialPosition_,"Vector3");
  14977. return 1;
  14978. }
  14979. #endif //#ifndef TOLUA_DISABLE
  14980. /* set function: initialPosition_ of class Bone */
  14981. #ifndef TOLUA_DISABLE_tolua_set_Bone_initialPosition
  14982. static int tolua_set_Bone_initialPosition(lua_State* tolua_S)
  14983. {
  14984. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  14985. #ifndef TOLUA_RELEASE
  14986. tolua_Error tolua_err;
  14987. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'initialPosition_'",NULL);
  14988. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Vector3",0,&tolua_err)))
  14989. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  14990. #endif
  14991. self->initialPosition_ = *((Vector3*) tolua_tousertype(tolua_S,2,0))
  14992. ;
  14993. return 0;
  14994. }
  14995. #endif //#ifndef TOLUA_DISABLE
  14996. /* get function: initialRotation_ of class Bone */
  14997. #ifndef TOLUA_DISABLE_tolua_get_Bone_initialRotation
  14998. static int tolua_get_Bone_initialRotation(lua_State* tolua_S)
  14999. {
  15000. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15001. #ifndef TOLUA_RELEASE
  15002. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'initialRotation_'",NULL);
  15003. #endif
  15004. tolua_pushusertype(tolua_S,(void*)&self->initialRotation_,"Quaternion");
  15005. return 1;
  15006. }
  15007. #endif //#ifndef TOLUA_DISABLE
  15008. /* set function: initialRotation_ of class Bone */
  15009. #ifndef TOLUA_DISABLE_tolua_set_Bone_initialRotation
  15010. static int tolua_set_Bone_initialRotation(lua_State* tolua_S)
  15011. {
  15012. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15013. #ifndef TOLUA_RELEASE
  15014. tolua_Error tolua_err;
  15015. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'initialRotation_'",NULL);
  15016. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Quaternion",0,&tolua_err)))
  15017. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  15018. #endif
  15019. self->initialRotation_ = *((Quaternion*) tolua_tousertype(tolua_S,2,0))
  15020. ;
  15021. return 0;
  15022. }
  15023. #endif //#ifndef TOLUA_DISABLE
  15024. /* get function: initialScale_ of class Bone */
  15025. #ifndef TOLUA_DISABLE_tolua_get_Bone_initialScale
  15026. static int tolua_get_Bone_initialScale(lua_State* tolua_S)
  15027. {
  15028. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15029. #ifndef TOLUA_RELEASE
  15030. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'initialScale_'",NULL);
  15031. #endif
  15032. tolua_pushusertype(tolua_S,(void*)&self->initialScale_,"Vector3");
  15033. return 1;
  15034. }
  15035. #endif //#ifndef TOLUA_DISABLE
  15036. /* set function: initialScale_ of class Bone */
  15037. #ifndef TOLUA_DISABLE_tolua_set_Bone_initialScale
  15038. static int tolua_set_Bone_initialScale(lua_State* tolua_S)
  15039. {
  15040. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15041. #ifndef TOLUA_RELEASE
  15042. tolua_Error tolua_err;
  15043. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'initialScale_'",NULL);
  15044. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Vector3",0,&tolua_err)))
  15045. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  15046. #endif
  15047. self->initialScale_ = *((Vector3*) tolua_tousertype(tolua_S,2,0))
  15048. ;
  15049. return 0;
  15050. }
  15051. #endif //#ifndef TOLUA_DISABLE
  15052. /* get function: offsetMatrix_ of class Bone */
  15053. #ifndef TOLUA_DISABLE_tolua_get_Bone_offsetMatrix
  15054. static int tolua_get_Bone_offsetMatrix(lua_State* tolua_S)
  15055. {
  15056. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15057. #ifndef TOLUA_RELEASE
  15058. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'offsetMatrix_'",NULL);
  15059. #endif
  15060. tolua_pushusertype(tolua_S,(void*)&self->offsetMatrix_,"Matrix3x4");
  15061. return 1;
  15062. }
  15063. #endif //#ifndef TOLUA_DISABLE
  15064. /* set function: offsetMatrix_ of class Bone */
  15065. #ifndef TOLUA_DISABLE_tolua_set_Bone_offsetMatrix
  15066. static int tolua_set_Bone_offsetMatrix(lua_State* tolua_S)
  15067. {
  15068. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15069. #ifndef TOLUA_RELEASE
  15070. tolua_Error tolua_err;
  15071. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'offsetMatrix_'",NULL);
  15072. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Matrix3x4",0,&tolua_err)))
  15073. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  15074. #endif
  15075. self->offsetMatrix_ = *((Matrix3x4*) tolua_tousertype(tolua_S,2,0))
  15076. ;
  15077. return 0;
  15078. }
  15079. #endif //#ifndef TOLUA_DISABLE
  15080. /* get function: animated_ of class Bone */
  15081. #ifndef TOLUA_DISABLE_tolua_get_Bone_animated
  15082. static int tolua_get_Bone_animated(lua_State* tolua_S)
  15083. {
  15084. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15085. #ifndef TOLUA_RELEASE
  15086. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'animated_'",NULL);
  15087. #endif
  15088. tolua_pushboolean(tolua_S,(bool)self->animated_);
  15089. return 1;
  15090. }
  15091. #endif //#ifndef TOLUA_DISABLE
  15092. /* set function: animated_ of class Bone */
  15093. #ifndef TOLUA_DISABLE_tolua_set_Bone_animated
  15094. static int tolua_set_Bone_animated(lua_State* tolua_S)
  15095. {
  15096. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15097. #ifndef TOLUA_RELEASE
  15098. tolua_Error tolua_err;
  15099. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'animated_'",NULL);
  15100. if (!tolua_isboolean(tolua_S,2,0,&tolua_err))
  15101. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  15102. #endif
  15103. self->animated_ = ((bool) tolua_toboolean(tolua_S,2,0))
  15104. ;
  15105. return 0;
  15106. }
  15107. #endif //#ifndef TOLUA_DISABLE
  15108. /* get function: collisionMask_ of class Bone */
  15109. #ifndef TOLUA_DISABLE_tolua_get_Bone_unsigned_collisionMask
  15110. static int tolua_get_Bone_unsigned_collisionMask(lua_State* tolua_S)
  15111. {
  15112. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15113. #ifndef TOLUA_RELEASE
  15114. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'collisionMask_'",NULL);
  15115. #endif
  15116. tolua_pushnumber(tolua_S,(lua_Number)self->collisionMask_);
  15117. return 1;
  15118. }
  15119. #endif //#ifndef TOLUA_DISABLE
  15120. /* set function: collisionMask_ of class Bone */
  15121. #ifndef TOLUA_DISABLE_tolua_set_Bone_unsigned_collisionMask
  15122. static int tolua_set_Bone_unsigned_collisionMask(lua_State* tolua_S)
  15123. {
  15124. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15125. #ifndef TOLUA_RELEASE
  15126. tolua_Error tolua_err;
  15127. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'collisionMask_'",NULL);
  15128. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  15129. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  15130. #endif
  15131. self->collisionMask_ = ((unsigned char) tolua_tonumber(tolua_S,2,0))
  15132. ;
  15133. return 0;
  15134. }
  15135. #endif //#ifndef TOLUA_DISABLE
  15136. /* get function: radius_ of class Bone */
  15137. #ifndef TOLUA_DISABLE_tolua_get_Bone_radius
  15138. static int tolua_get_Bone_radius(lua_State* tolua_S)
  15139. {
  15140. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15141. #ifndef TOLUA_RELEASE
  15142. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'radius_'",NULL);
  15143. #endif
  15144. tolua_pushnumber(tolua_S,(lua_Number)self->radius_);
  15145. return 1;
  15146. }
  15147. #endif //#ifndef TOLUA_DISABLE
  15148. /* set function: radius_ of class Bone */
  15149. #ifndef TOLUA_DISABLE_tolua_set_Bone_radius
  15150. static int tolua_set_Bone_radius(lua_State* tolua_S)
  15151. {
  15152. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15153. #ifndef TOLUA_RELEASE
  15154. tolua_Error tolua_err;
  15155. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'radius_'",NULL);
  15156. if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
  15157. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  15158. #endif
  15159. self->radius_ = ((float) tolua_tonumber(tolua_S,2,0))
  15160. ;
  15161. return 0;
  15162. }
  15163. #endif //#ifndef TOLUA_DISABLE
  15164. /* get function: boundingBox_ of class Bone */
  15165. #ifndef TOLUA_DISABLE_tolua_get_Bone_boundingBox
  15166. static int tolua_get_Bone_boundingBox(lua_State* tolua_S)
  15167. {
  15168. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15169. #ifndef TOLUA_RELEASE
  15170. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'boundingBox_'",NULL);
  15171. #endif
  15172. tolua_pushusertype(tolua_S,(void*)&self->boundingBox_,"BoundingBox");
  15173. return 1;
  15174. }
  15175. #endif //#ifndef TOLUA_DISABLE
  15176. /* set function: boundingBox_ of class Bone */
  15177. #ifndef TOLUA_DISABLE_tolua_set_Bone_boundingBox
  15178. static int tolua_set_Bone_boundingBox(lua_State* tolua_S)
  15179. {
  15180. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15181. #ifndef TOLUA_RELEASE
  15182. tolua_Error tolua_err;
  15183. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'boundingBox_'",NULL);
  15184. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"BoundingBox",0,&tolua_err)))
  15185. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  15186. #endif
  15187. self->boundingBox_ = *((BoundingBox*) tolua_tousertype(tolua_S,2,0))
  15188. ;
  15189. return 0;
  15190. }
  15191. #endif //#ifndef TOLUA_DISABLE
  15192. /* get function: node_ of class Bone */
  15193. #ifndef TOLUA_DISABLE_tolua_get_Bone_node_ptr
  15194. static int tolua_get_Bone_node_ptr(lua_State* tolua_S)
  15195. {
  15196. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15197. #ifndef TOLUA_RELEASE
  15198. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'node_'",NULL);
  15199. #endif
  15200. tolua_pushusertype(tolua_S,(void*)self->node_,"Node");
  15201. return 1;
  15202. }
  15203. #endif //#ifndef TOLUA_DISABLE
  15204. /* set function: node_ of class Bone */
  15205. #ifndef TOLUA_DISABLE_tolua_set_Bone_node_ptr
  15206. static int tolua_set_Bone_node_ptr(lua_State* tolua_S)
  15207. {
  15208. Bone* self = (Bone*) tolua_tousertype(tolua_S,1,0);
  15209. #ifndef TOLUA_RELEASE
  15210. tolua_Error tolua_err;
  15211. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'node_'",NULL);
  15212. if (!tolua_isusertype(tolua_S,2,"Node",0,&tolua_err))
  15213. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  15214. #endif
  15215. self->node_ = ((Node*) tolua_tousertype(tolua_S,2,0))
  15216. ;
  15217. return 0;
  15218. }
  15219. #endif //#ifndef TOLUA_DISABLE
  15220. /* method: GetNumBones of class Skeleton */
  15221. #ifndef TOLUA_DISABLE_tolua_Graphics_Skeleton_GetNumBones00
  15222. static int tolua_Graphics_Skeleton_GetNumBones00(lua_State* tolua_S)
  15223. {
  15224. #ifndef TOLUA_RELEASE
  15225. tolua_Error tolua_err;
  15226. if (
  15227. !tolua_isusertype(tolua_S,1,"const Skeleton",0,&tolua_err) ||
  15228. !tolua_isnoobj(tolua_S,2,&tolua_err)
  15229. )
  15230. goto tolua_lerror;
  15231. else
  15232. #endif
  15233. {
  15234. const Skeleton* self = (const Skeleton*) tolua_tousertype(tolua_S,1,0);
  15235. #ifndef TOLUA_RELEASE
  15236. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumBones'", NULL);
  15237. #endif
  15238. {
  15239. unsigned tolua_ret = (unsigned) self->GetNumBones();
  15240. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  15241. }
  15242. }
  15243. return 1;
  15244. #ifndef TOLUA_RELEASE
  15245. tolua_lerror:
  15246. tolua_error(tolua_S,"#ferror in function 'GetNumBones'.",&tolua_err);
  15247. return 0;
  15248. #endif
  15249. }
  15250. #endif //#ifndef TOLUA_DISABLE
  15251. /* method: GetRootBone of class Skeleton */
  15252. #ifndef TOLUA_DISABLE_tolua_Graphics_Skeleton_GetRootBone00
  15253. static int tolua_Graphics_Skeleton_GetRootBone00(lua_State* tolua_S)
  15254. {
  15255. #ifndef TOLUA_RELEASE
  15256. tolua_Error tolua_err;
  15257. if (
  15258. !tolua_isusertype(tolua_S,1,"Skeleton",0,&tolua_err) ||
  15259. !tolua_isnoobj(tolua_S,2,&tolua_err)
  15260. )
  15261. goto tolua_lerror;
  15262. else
  15263. #endif
  15264. {
  15265. Skeleton* self = (Skeleton*) tolua_tousertype(tolua_S,1,0);
  15266. #ifndef TOLUA_RELEASE
  15267. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRootBone'", NULL);
  15268. #endif
  15269. {
  15270. Bone* tolua_ret = (Bone*) self->GetRootBone();
  15271. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Bone");
  15272. }
  15273. }
  15274. return 1;
  15275. #ifndef TOLUA_RELEASE
  15276. tolua_lerror:
  15277. tolua_error(tolua_S,"#ferror in function 'GetRootBone'.",&tolua_err);
  15278. return 0;
  15279. #endif
  15280. }
  15281. #endif //#ifndef TOLUA_DISABLE
  15282. /* method: GetBone of class Skeleton */
  15283. #ifndef TOLUA_DISABLE_tolua_Graphics_Skeleton_GetBone00
  15284. static int tolua_Graphics_Skeleton_GetBone00(lua_State* tolua_S)
  15285. {
  15286. #ifndef TOLUA_RELEASE
  15287. tolua_Error tolua_err;
  15288. if (
  15289. !tolua_isusertype(tolua_S,1,"Skeleton",0,&tolua_err) ||
  15290. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  15291. !tolua_isnoobj(tolua_S,3,&tolua_err)
  15292. )
  15293. goto tolua_lerror;
  15294. else
  15295. #endif
  15296. {
  15297. Skeleton* self = (Skeleton*) tolua_tousertype(tolua_S,1,0);
  15298. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  15299. #ifndef TOLUA_RELEASE
  15300. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBone'", NULL);
  15301. #endif
  15302. {
  15303. Bone* tolua_ret = (Bone*) self->GetBone(index);
  15304. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Bone");
  15305. }
  15306. }
  15307. return 1;
  15308. #ifndef TOLUA_RELEASE
  15309. tolua_lerror:
  15310. tolua_error(tolua_S,"#ferror in function 'GetBone'.",&tolua_err);
  15311. return 0;
  15312. #endif
  15313. }
  15314. #endif //#ifndef TOLUA_DISABLE
  15315. /* method: SetModel of class StaticModel */
  15316. #ifndef TOLUA_DISABLE_tolua_Graphics_StaticModel_SetModel00
  15317. static int tolua_Graphics_StaticModel_SetModel00(lua_State* tolua_S)
  15318. {
  15319. #ifndef TOLUA_RELEASE
  15320. tolua_Error tolua_err;
  15321. if (
  15322. !tolua_isusertype(tolua_S,1,"StaticModel",0,&tolua_err) ||
  15323. !tolua_isusertype(tolua_S,2,"Model",0,&tolua_err) ||
  15324. !tolua_isnoobj(tolua_S,3,&tolua_err)
  15325. )
  15326. goto tolua_lerror;
  15327. else
  15328. #endif
  15329. {
  15330. StaticModel* self = (StaticModel*) tolua_tousertype(tolua_S,1,0);
  15331. Model* model = ((Model*) tolua_tousertype(tolua_S,2,0));
  15332. #ifndef TOLUA_RELEASE
  15333. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetModel'", NULL);
  15334. #endif
  15335. {
  15336. self->SetModel(model);
  15337. }
  15338. }
  15339. return 0;
  15340. #ifndef TOLUA_RELEASE
  15341. tolua_lerror:
  15342. tolua_error(tolua_S,"#ferror in function 'SetModel'.",&tolua_err);
  15343. return 0;
  15344. #endif
  15345. }
  15346. #endif //#ifndef TOLUA_DISABLE
  15347. /* method: SetMaterial of class StaticModel */
  15348. #ifndef TOLUA_DISABLE_tolua_Graphics_StaticModel_SetMaterial00
  15349. static int tolua_Graphics_StaticModel_SetMaterial00(lua_State* tolua_S)
  15350. {
  15351. #ifndef TOLUA_RELEASE
  15352. tolua_Error tolua_err;
  15353. if (
  15354. !tolua_isusertype(tolua_S,1,"StaticModel",0,&tolua_err) ||
  15355. !tolua_isusertype(tolua_S,2,"Material",0,&tolua_err) ||
  15356. !tolua_isnoobj(tolua_S,3,&tolua_err)
  15357. )
  15358. goto tolua_lerror;
  15359. else
  15360. #endif
  15361. {
  15362. StaticModel* self = (StaticModel*) tolua_tousertype(tolua_S,1,0);
  15363. Material* material = ((Material*) tolua_tousertype(tolua_S,2,0));
  15364. #ifndef TOLUA_RELEASE
  15365. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaterial'", NULL);
  15366. #endif
  15367. {
  15368. self->SetMaterial(material);
  15369. }
  15370. }
  15371. return 0;
  15372. #ifndef TOLUA_RELEASE
  15373. tolua_lerror:
  15374. tolua_error(tolua_S,"#ferror in function 'SetMaterial'.",&tolua_err);
  15375. return 0;
  15376. #endif
  15377. }
  15378. #endif //#ifndef TOLUA_DISABLE
  15379. /* method: SetMaterial of class StaticModel */
  15380. #ifndef TOLUA_DISABLE_tolua_Graphics_StaticModel_SetMaterial01
  15381. static int tolua_Graphics_StaticModel_SetMaterial01(lua_State* tolua_S)
  15382. {
  15383. tolua_Error tolua_err;
  15384. if (
  15385. !tolua_isusertype(tolua_S,1,"StaticModel",0,&tolua_err) ||
  15386. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  15387. !tolua_isusertype(tolua_S,3,"Material",0,&tolua_err) ||
  15388. !tolua_isnoobj(tolua_S,4,&tolua_err)
  15389. )
  15390. goto tolua_lerror;
  15391. else
  15392. {
  15393. StaticModel* self = (StaticModel*) tolua_tousertype(tolua_S,1,0);
  15394. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  15395. Material* material = ((Material*) tolua_tousertype(tolua_S,3,0));
  15396. #ifndef TOLUA_RELEASE
  15397. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaterial'", NULL);
  15398. #endif
  15399. {
  15400. bool tolua_ret = (bool) self->SetMaterial(index,material);
  15401. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  15402. }
  15403. }
  15404. return 1;
  15405. tolua_lerror:
  15406. return tolua_Graphics_StaticModel_SetMaterial00(tolua_S);
  15407. }
  15408. #endif //#ifndef TOLUA_DISABLE
  15409. /* method: SetOcclusionLodLevel of class StaticModel */
  15410. #ifndef TOLUA_DISABLE_tolua_Graphics_StaticModel_SetOcclusionLodLevel00
  15411. static int tolua_Graphics_StaticModel_SetOcclusionLodLevel00(lua_State* tolua_S)
  15412. {
  15413. #ifndef TOLUA_RELEASE
  15414. tolua_Error tolua_err;
  15415. if (
  15416. !tolua_isusertype(tolua_S,1,"StaticModel",0,&tolua_err) ||
  15417. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  15418. !tolua_isnoobj(tolua_S,3,&tolua_err)
  15419. )
  15420. goto tolua_lerror;
  15421. else
  15422. #endif
  15423. {
  15424. StaticModel* self = (StaticModel*) tolua_tousertype(tolua_S,1,0);
  15425. unsigned level = ((unsigned) tolua_tonumber(tolua_S,2,0));
  15426. #ifndef TOLUA_RELEASE
  15427. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOcclusionLodLevel'", NULL);
  15428. #endif
  15429. {
  15430. self->SetOcclusionLodLevel(level);
  15431. }
  15432. }
  15433. return 0;
  15434. #ifndef TOLUA_RELEASE
  15435. tolua_lerror:
  15436. tolua_error(tolua_S,"#ferror in function 'SetOcclusionLodLevel'.",&tolua_err);
  15437. return 0;
  15438. #endif
  15439. }
  15440. #endif //#ifndef TOLUA_DISABLE
  15441. /* method: GetModel of class StaticModel */
  15442. #ifndef TOLUA_DISABLE_tolua_Graphics_StaticModel_GetModel00
  15443. static int tolua_Graphics_StaticModel_GetModel00(lua_State* tolua_S)
  15444. {
  15445. #ifndef TOLUA_RELEASE
  15446. tolua_Error tolua_err;
  15447. if (
  15448. !tolua_isusertype(tolua_S,1,"const StaticModel",0,&tolua_err) ||
  15449. !tolua_isnoobj(tolua_S,2,&tolua_err)
  15450. )
  15451. goto tolua_lerror;
  15452. else
  15453. #endif
  15454. {
  15455. const StaticModel* self = (const StaticModel*) tolua_tousertype(tolua_S,1,0);
  15456. #ifndef TOLUA_RELEASE
  15457. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetModel'", NULL);
  15458. #endif
  15459. {
  15460. Model* tolua_ret = (Model*) self->GetModel();
  15461. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Model");
  15462. }
  15463. }
  15464. return 1;
  15465. #ifndef TOLUA_RELEASE
  15466. tolua_lerror:
  15467. tolua_error(tolua_S,"#ferror in function 'GetModel'.",&tolua_err);
  15468. return 0;
  15469. #endif
  15470. }
  15471. #endif //#ifndef TOLUA_DISABLE
  15472. /* method: GetBoundingBox of class StaticModel */
  15473. #ifndef TOLUA_DISABLE_tolua_Graphics_StaticModel_GetBoundingBox00
  15474. static int tolua_Graphics_StaticModel_GetBoundingBox00(lua_State* tolua_S)
  15475. {
  15476. #ifndef TOLUA_RELEASE
  15477. tolua_Error tolua_err;
  15478. if (
  15479. !tolua_isusertype(tolua_S,1,"const StaticModel",0,&tolua_err) ||
  15480. !tolua_isnoobj(tolua_S,2,&tolua_err)
  15481. )
  15482. goto tolua_lerror;
  15483. else
  15484. #endif
  15485. {
  15486. const StaticModel* self = (const StaticModel*) tolua_tousertype(tolua_S,1,0);
  15487. #ifndef TOLUA_RELEASE
  15488. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBoundingBox'", NULL);
  15489. #endif
  15490. {
  15491. const BoundingBox& tolua_ret = (const BoundingBox&) self->GetBoundingBox();
  15492. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const BoundingBox");
  15493. }
  15494. }
  15495. return 1;
  15496. #ifndef TOLUA_RELEASE
  15497. tolua_lerror:
  15498. tolua_error(tolua_S,"#ferror in function 'GetBoundingBox'.",&tolua_err);
  15499. return 0;
  15500. #endif
  15501. }
  15502. #endif //#ifndef TOLUA_DISABLE
  15503. /* method: GetNumGeometries of class StaticModel */
  15504. #ifndef TOLUA_DISABLE_tolua_Graphics_StaticModel_GetNumGeometries00
  15505. static int tolua_Graphics_StaticModel_GetNumGeometries00(lua_State* tolua_S)
  15506. {
  15507. #ifndef TOLUA_RELEASE
  15508. tolua_Error tolua_err;
  15509. if (
  15510. !tolua_isusertype(tolua_S,1,"const StaticModel",0,&tolua_err) ||
  15511. !tolua_isnoobj(tolua_S,2,&tolua_err)
  15512. )
  15513. goto tolua_lerror;
  15514. else
  15515. #endif
  15516. {
  15517. const StaticModel* self = (const StaticModel*) tolua_tousertype(tolua_S,1,0);
  15518. #ifndef TOLUA_RELEASE
  15519. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumGeometries'", NULL);
  15520. #endif
  15521. {
  15522. unsigned tolua_ret = (unsigned) self->GetNumGeometries();
  15523. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  15524. }
  15525. }
  15526. return 1;
  15527. #ifndef TOLUA_RELEASE
  15528. tolua_lerror:
  15529. tolua_error(tolua_S,"#ferror in function 'GetNumGeometries'.",&tolua_err);
  15530. return 0;
  15531. #endif
  15532. }
  15533. #endif //#ifndef TOLUA_DISABLE
  15534. /* method: GetMaterial of class StaticModel */
  15535. #ifndef TOLUA_DISABLE_tolua_Graphics_StaticModel_GetMaterial00
  15536. static int tolua_Graphics_StaticModel_GetMaterial00(lua_State* tolua_S)
  15537. {
  15538. #ifndef TOLUA_RELEASE
  15539. tolua_Error tolua_err;
  15540. if (
  15541. !tolua_isusertype(tolua_S,1,"const StaticModel",0,&tolua_err) ||
  15542. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  15543. !tolua_isnoobj(tolua_S,3,&tolua_err)
  15544. )
  15545. goto tolua_lerror;
  15546. else
  15547. #endif
  15548. {
  15549. const StaticModel* self = (const StaticModel*) tolua_tousertype(tolua_S,1,0);
  15550. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  15551. #ifndef TOLUA_RELEASE
  15552. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaterial'", NULL);
  15553. #endif
  15554. {
  15555. Material* tolua_ret = (Material*) self->GetMaterial(index);
  15556. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Material");
  15557. }
  15558. }
  15559. return 1;
  15560. #ifndef TOLUA_RELEASE
  15561. tolua_lerror:
  15562. tolua_error(tolua_S,"#ferror in function 'GetMaterial'.",&tolua_err);
  15563. return 0;
  15564. #endif
  15565. }
  15566. #endif //#ifndef TOLUA_DISABLE
  15567. /* method: GetOcclusionLodLevel of class StaticModel */
  15568. #ifndef TOLUA_DISABLE_tolua_Graphics_StaticModel_GetOcclusionLodLevel00
  15569. static int tolua_Graphics_StaticModel_GetOcclusionLodLevel00(lua_State* tolua_S)
  15570. {
  15571. #ifndef TOLUA_RELEASE
  15572. tolua_Error tolua_err;
  15573. if (
  15574. !tolua_isusertype(tolua_S,1,"const StaticModel",0,&tolua_err) ||
  15575. !tolua_isnoobj(tolua_S,2,&tolua_err)
  15576. )
  15577. goto tolua_lerror;
  15578. else
  15579. #endif
  15580. {
  15581. const StaticModel* self = (const StaticModel*) tolua_tousertype(tolua_S,1,0);
  15582. #ifndef TOLUA_RELEASE
  15583. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOcclusionLodLevel'", NULL);
  15584. #endif
  15585. {
  15586. unsigned tolua_ret = (unsigned) self->GetOcclusionLodLevel();
  15587. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  15588. }
  15589. }
  15590. return 1;
  15591. #ifndef TOLUA_RELEASE
  15592. tolua_lerror:
  15593. tolua_error(tolua_S,"#ferror in function 'GetOcclusionLodLevel'.",&tolua_err);
  15594. return 0;
  15595. #endif
  15596. }
  15597. #endif //#ifndef TOLUA_DISABLE
  15598. /* method: IsInside of class StaticModel */
  15599. #ifndef TOLUA_DISABLE_tolua_Graphics_StaticModel_IsInside00
  15600. static int tolua_Graphics_StaticModel_IsInside00(lua_State* tolua_S)
  15601. {
  15602. #ifndef TOLUA_RELEASE
  15603. tolua_Error tolua_err;
  15604. if (
  15605. !tolua_isusertype(tolua_S,1,"const StaticModel",0,&tolua_err) ||
  15606. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  15607. !tolua_isnoobj(tolua_S,3,&tolua_err)
  15608. )
  15609. goto tolua_lerror;
  15610. else
  15611. #endif
  15612. {
  15613. const StaticModel* self = (const StaticModel*) tolua_tousertype(tolua_S,1,0);
  15614. const Vector3* point = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  15615. #ifndef TOLUA_RELEASE
  15616. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsInside'", NULL);
  15617. #endif
  15618. {
  15619. bool tolua_ret = (bool) self->IsInside(*point);
  15620. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  15621. }
  15622. }
  15623. return 1;
  15624. #ifndef TOLUA_RELEASE
  15625. tolua_lerror:
  15626. tolua_error(tolua_S,"#ferror in function 'IsInside'.",&tolua_err);
  15627. return 0;
  15628. #endif
  15629. }
  15630. #endif //#ifndef TOLUA_DISABLE
  15631. /* method: IsInsideLocal of class StaticModel */
  15632. #ifndef TOLUA_DISABLE_tolua_Graphics_StaticModel_IsInsideLocal00
  15633. static int tolua_Graphics_StaticModel_IsInsideLocal00(lua_State* tolua_S)
  15634. {
  15635. #ifndef TOLUA_RELEASE
  15636. tolua_Error tolua_err;
  15637. if (
  15638. !tolua_isusertype(tolua_S,1,"const StaticModel",0,&tolua_err) ||
  15639. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  15640. !tolua_isnoobj(tolua_S,3,&tolua_err)
  15641. )
  15642. goto tolua_lerror;
  15643. else
  15644. #endif
  15645. {
  15646. const StaticModel* self = (const StaticModel*) tolua_tousertype(tolua_S,1,0);
  15647. const Vector3* point = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  15648. #ifndef TOLUA_RELEASE
  15649. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsInsideLocal'", NULL);
  15650. #endif
  15651. {
  15652. bool tolua_ret = (bool) self->IsInsideLocal(*point);
  15653. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  15654. }
  15655. }
  15656. return 1;
  15657. #ifndef TOLUA_RELEASE
  15658. tolua_lerror:
  15659. tolua_error(tolua_S,"#ferror in function 'IsInsideLocal'.",&tolua_err);
  15660. return 0;
  15661. #endif
  15662. }
  15663. #endif //#ifndef TOLUA_DISABLE
  15664. /* method: SetIsSM3 of class Technique */
  15665. #ifndef TOLUA_DISABLE_tolua_Graphics_Technique_SetIsSM300
  15666. static int tolua_Graphics_Technique_SetIsSM300(lua_State* tolua_S)
  15667. {
  15668. #ifndef TOLUA_RELEASE
  15669. tolua_Error tolua_err;
  15670. if (
  15671. !tolua_isusertype(tolua_S,1,"Technique",0,&tolua_err) ||
  15672. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  15673. !tolua_isnoobj(tolua_S,3,&tolua_err)
  15674. )
  15675. goto tolua_lerror;
  15676. else
  15677. #endif
  15678. {
  15679. Technique* self = (Technique*) tolua_tousertype(tolua_S,1,0);
  15680. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  15681. #ifndef TOLUA_RELEASE
  15682. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetIsSM3'", NULL);
  15683. #endif
  15684. {
  15685. self->SetIsSM3(enable);
  15686. }
  15687. }
  15688. return 0;
  15689. #ifndef TOLUA_RELEASE
  15690. tolua_lerror:
  15691. tolua_error(tolua_S,"#ferror in function 'SetIsSM3'.",&tolua_err);
  15692. return 0;
  15693. #endif
  15694. }
  15695. #endif //#ifndef TOLUA_DISABLE
  15696. /* method: ReleaseShaders of class Technique */
  15697. #ifndef TOLUA_DISABLE_tolua_Graphics_Technique_ReleaseShaders00
  15698. static int tolua_Graphics_Technique_ReleaseShaders00(lua_State* tolua_S)
  15699. {
  15700. #ifndef TOLUA_RELEASE
  15701. tolua_Error tolua_err;
  15702. if (
  15703. !tolua_isusertype(tolua_S,1,"Technique",0,&tolua_err) ||
  15704. !tolua_isnoobj(tolua_S,2,&tolua_err)
  15705. )
  15706. goto tolua_lerror;
  15707. else
  15708. #endif
  15709. {
  15710. Technique* self = (Technique*) tolua_tousertype(tolua_S,1,0);
  15711. #ifndef TOLUA_RELEASE
  15712. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ReleaseShaders'", NULL);
  15713. #endif
  15714. {
  15715. self->ReleaseShaders();
  15716. }
  15717. }
  15718. return 0;
  15719. #ifndef TOLUA_RELEASE
  15720. tolua_lerror:
  15721. tolua_error(tolua_S,"#ferror in function 'ReleaseShaders'.",&tolua_err);
  15722. return 0;
  15723. #endif
  15724. }
  15725. #endif //#ifndef TOLUA_DISABLE
  15726. /* method: IsSM3 of class Technique */
  15727. #ifndef TOLUA_DISABLE_tolua_Graphics_Technique_IsSM300
  15728. static int tolua_Graphics_Technique_IsSM300(lua_State* tolua_S)
  15729. {
  15730. #ifndef TOLUA_RELEASE
  15731. tolua_Error tolua_err;
  15732. if (
  15733. !tolua_isusertype(tolua_S,1,"const Technique",0,&tolua_err) ||
  15734. !tolua_isnoobj(tolua_S,2,&tolua_err)
  15735. )
  15736. goto tolua_lerror;
  15737. else
  15738. #endif
  15739. {
  15740. const Technique* self = (const Technique*) tolua_tousertype(tolua_S,1,0);
  15741. #ifndef TOLUA_RELEASE
  15742. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsSM3'", NULL);
  15743. #endif
  15744. {
  15745. bool tolua_ret = (bool) self->IsSM3();
  15746. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  15747. }
  15748. }
  15749. return 1;
  15750. #ifndef TOLUA_RELEASE
  15751. tolua_lerror:
  15752. tolua_error(tolua_S,"#ferror in function 'IsSM3'.",&tolua_err);
  15753. return 0;
  15754. #endif
  15755. }
  15756. #endif //#ifndef TOLUA_DISABLE
  15757. /* method: SetPatchSize of class Terrain */
  15758. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetPatchSize00
  15759. static int tolua_Graphics_Terrain_SetPatchSize00(lua_State* tolua_S)
  15760. {
  15761. #ifndef TOLUA_RELEASE
  15762. tolua_Error tolua_err;
  15763. if (
  15764. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  15765. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  15766. !tolua_isnoobj(tolua_S,3,&tolua_err)
  15767. )
  15768. goto tolua_lerror;
  15769. else
  15770. #endif
  15771. {
  15772. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  15773. int size = ((int) tolua_tonumber(tolua_S,2,0));
  15774. #ifndef TOLUA_RELEASE
  15775. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPatchSize'", NULL);
  15776. #endif
  15777. {
  15778. self->SetPatchSize(size);
  15779. }
  15780. }
  15781. return 0;
  15782. #ifndef TOLUA_RELEASE
  15783. tolua_lerror:
  15784. tolua_error(tolua_S,"#ferror in function 'SetPatchSize'.",&tolua_err);
  15785. return 0;
  15786. #endif
  15787. }
  15788. #endif //#ifndef TOLUA_DISABLE
  15789. /* method: SetSpacing of class Terrain */
  15790. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetSpacing00
  15791. static int tolua_Graphics_Terrain_SetSpacing00(lua_State* tolua_S)
  15792. {
  15793. #ifndef TOLUA_RELEASE
  15794. tolua_Error tolua_err;
  15795. if (
  15796. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  15797. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  15798. !tolua_isnoobj(tolua_S,3,&tolua_err)
  15799. )
  15800. goto tolua_lerror;
  15801. else
  15802. #endif
  15803. {
  15804. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  15805. const Vector3* spacing = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  15806. #ifndef TOLUA_RELEASE
  15807. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSpacing'", NULL);
  15808. #endif
  15809. {
  15810. self->SetSpacing(*spacing);
  15811. }
  15812. }
  15813. return 0;
  15814. #ifndef TOLUA_RELEASE
  15815. tolua_lerror:
  15816. tolua_error(tolua_S,"#ferror in function 'SetSpacing'.",&tolua_err);
  15817. return 0;
  15818. #endif
  15819. }
  15820. #endif //#ifndef TOLUA_DISABLE
  15821. /* method: SetSmoothing of class Terrain */
  15822. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetSmoothing00
  15823. static int tolua_Graphics_Terrain_SetSmoothing00(lua_State* tolua_S)
  15824. {
  15825. #ifndef TOLUA_RELEASE
  15826. tolua_Error tolua_err;
  15827. if (
  15828. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  15829. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  15830. !tolua_isnoobj(tolua_S,3,&tolua_err)
  15831. )
  15832. goto tolua_lerror;
  15833. else
  15834. #endif
  15835. {
  15836. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  15837. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  15838. #ifndef TOLUA_RELEASE
  15839. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSmoothing'", NULL);
  15840. #endif
  15841. {
  15842. self->SetSmoothing(enable);
  15843. }
  15844. }
  15845. return 0;
  15846. #ifndef TOLUA_RELEASE
  15847. tolua_lerror:
  15848. tolua_error(tolua_S,"#ferror in function 'SetSmoothing'.",&tolua_err);
  15849. return 0;
  15850. #endif
  15851. }
  15852. #endif //#ifndef TOLUA_DISABLE
  15853. /* method: SetHeightMap of class Terrain */
  15854. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetHeightMap00
  15855. static int tolua_Graphics_Terrain_SetHeightMap00(lua_State* tolua_S)
  15856. {
  15857. #ifndef TOLUA_RELEASE
  15858. tolua_Error tolua_err;
  15859. if (
  15860. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  15861. !tolua_isusertype(tolua_S,2,"Image",0,&tolua_err) ||
  15862. !tolua_isnoobj(tolua_S,3,&tolua_err)
  15863. )
  15864. goto tolua_lerror;
  15865. else
  15866. #endif
  15867. {
  15868. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  15869. Image* image = ((Image*) tolua_tousertype(tolua_S,2,0));
  15870. #ifndef TOLUA_RELEASE
  15871. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetHeightMap'", NULL);
  15872. #endif
  15873. {
  15874. bool tolua_ret = (bool) self->SetHeightMap(image);
  15875. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  15876. }
  15877. }
  15878. return 1;
  15879. #ifndef TOLUA_RELEASE
  15880. tolua_lerror:
  15881. tolua_error(tolua_S,"#ferror in function 'SetHeightMap'.",&tolua_err);
  15882. return 0;
  15883. #endif
  15884. }
  15885. #endif //#ifndef TOLUA_DISABLE
  15886. /* method: SetMaterial of class Terrain */
  15887. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetMaterial00
  15888. static int tolua_Graphics_Terrain_SetMaterial00(lua_State* tolua_S)
  15889. {
  15890. #ifndef TOLUA_RELEASE
  15891. tolua_Error tolua_err;
  15892. if (
  15893. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  15894. !tolua_isusertype(tolua_S,2,"Material",0,&tolua_err) ||
  15895. !tolua_isnoobj(tolua_S,3,&tolua_err)
  15896. )
  15897. goto tolua_lerror;
  15898. else
  15899. #endif
  15900. {
  15901. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  15902. Material* material = ((Material*) tolua_tousertype(tolua_S,2,0));
  15903. #ifndef TOLUA_RELEASE
  15904. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaterial'", NULL);
  15905. #endif
  15906. {
  15907. self->SetMaterial(material);
  15908. }
  15909. }
  15910. return 0;
  15911. #ifndef TOLUA_RELEASE
  15912. tolua_lerror:
  15913. tolua_error(tolua_S,"#ferror in function 'SetMaterial'.",&tolua_err);
  15914. return 0;
  15915. #endif
  15916. }
  15917. #endif //#ifndef TOLUA_DISABLE
  15918. /* method: SetDrawDistance of class Terrain */
  15919. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetDrawDistance00
  15920. static int tolua_Graphics_Terrain_SetDrawDistance00(lua_State* tolua_S)
  15921. {
  15922. #ifndef TOLUA_RELEASE
  15923. tolua_Error tolua_err;
  15924. if (
  15925. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  15926. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  15927. !tolua_isnoobj(tolua_S,3,&tolua_err)
  15928. )
  15929. goto tolua_lerror;
  15930. else
  15931. #endif
  15932. {
  15933. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  15934. float distance = ((float) tolua_tonumber(tolua_S,2,0));
  15935. #ifndef TOLUA_RELEASE
  15936. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDrawDistance'", NULL);
  15937. #endif
  15938. {
  15939. self->SetDrawDistance(distance);
  15940. }
  15941. }
  15942. return 0;
  15943. #ifndef TOLUA_RELEASE
  15944. tolua_lerror:
  15945. tolua_error(tolua_S,"#ferror in function 'SetDrawDistance'.",&tolua_err);
  15946. return 0;
  15947. #endif
  15948. }
  15949. #endif //#ifndef TOLUA_DISABLE
  15950. /* method: SetShadowDistance of class Terrain */
  15951. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetShadowDistance00
  15952. static int tolua_Graphics_Terrain_SetShadowDistance00(lua_State* tolua_S)
  15953. {
  15954. #ifndef TOLUA_RELEASE
  15955. tolua_Error tolua_err;
  15956. if (
  15957. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  15958. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  15959. !tolua_isnoobj(tolua_S,3,&tolua_err)
  15960. )
  15961. goto tolua_lerror;
  15962. else
  15963. #endif
  15964. {
  15965. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  15966. float distance = ((float) tolua_tonumber(tolua_S,2,0));
  15967. #ifndef TOLUA_RELEASE
  15968. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShadowDistance'", NULL);
  15969. #endif
  15970. {
  15971. self->SetShadowDistance(distance);
  15972. }
  15973. }
  15974. return 0;
  15975. #ifndef TOLUA_RELEASE
  15976. tolua_lerror:
  15977. tolua_error(tolua_S,"#ferror in function 'SetShadowDistance'.",&tolua_err);
  15978. return 0;
  15979. #endif
  15980. }
  15981. #endif //#ifndef TOLUA_DISABLE
  15982. /* method: SetLodBias of class Terrain */
  15983. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetLodBias00
  15984. static int tolua_Graphics_Terrain_SetLodBias00(lua_State* tolua_S)
  15985. {
  15986. #ifndef TOLUA_RELEASE
  15987. tolua_Error tolua_err;
  15988. if (
  15989. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  15990. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  15991. !tolua_isnoobj(tolua_S,3,&tolua_err)
  15992. )
  15993. goto tolua_lerror;
  15994. else
  15995. #endif
  15996. {
  15997. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  15998. float bias = ((float) tolua_tonumber(tolua_S,2,0));
  15999. #ifndef TOLUA_RELEASE
  16000. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLodBias'", NULL);
  16001. #endif
  16002. {
  16003. self->SetLodBias(bias);
  16004. }
  16005. }
  16006. return 0;
  16007. #ifndef TOLUA_RELEASE
  16008. tolua_lerror:
  16009. tolua_error(tolua_S,"#ferror in function 'SetLodBias'.",&tolua_err);
  16010. return 0;
  16011. #endif
  16012. }
  16013. #endif //#ifndef TOLUA_DISABLE
  16014. /* method: SetViewMask of class Terrain */
  16015. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetViewMask00
  16016. static int tolua_Graphics_Terrain_SetViewMask00(lua_State* tolua_S)
  16017. {
  16018. #ifndef TOLUA_RELEASE
  16019. tolua_Error tolua_err;
  16020. if (
  16021. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  16022. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  16023. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16024. )
  16025. goto tolua_lerror;
  16026. else
  16027. #endif
  16028. {
  16029. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  16030. unsigned mask = ((unsigned) tolua_tonumber(tolua_S,2,0));
  16031. #ifndef TOLUA_RELEASE
  16032. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetViewMask'", NULL);
  16033. #endif
  16034. {
  16035. self->SetViewMask(mask);
  16036. }
  16037. }
  16038. return 0;
  16039. #ifndef TOLUA_RELEASE
  16040. tolua_lerror:
  16041. tolua_error(tolua_S,"#ferror in function 'SetViewMask'.",&tolua_err);
  16042. return 0;
  16043. #endif
  16044. }
  16045. #endif //#ifndef TOLUA_DISABLE
  16046. /* method: SetLightMask of class Terrain */
  16047. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetLightMask00
  16048. static int tolua_Graphics_Terrain_SetLightMask00(lua_State* tolua_S)
  16049. {
  16050. #ifndef TOLUA_RELEASE
  16051. tolua_Error tolua_err;
  16052. if (
  16053. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  16054. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  16055. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16056. )
  16057. goto tolua_lerror;
  16058. else
  16059. #endif
  16060. {
  16061. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  16062. unsigned mask = ((unsigned) tolua_tonumber(tolua_S,2,0));
  16063. #ifndef TOLUA_RELEASE
  16064. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLightMask'", NULL);
  16065. #endif
  16066. {
  16067. self->SetLightMask(mask);
  16068. }
  16069. }
  16070. return 0;
  16071. #ifndef TOLUA_RELEASE
  16072. tolua_lerror:
  16073. tolua_error(tolua_S,"#ferror in function 'SetLightMask'.",&tolua_err);
  16074. return 0;
  16075. #endif
  16076. }
  16077. #endif //#ifndef TOLUA_DISABLE
  16078. /* method: SetShadowMask of class Terrain */
  16079. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetShadowMask00
  16080. static int tolua_Graphics_Terrain_SetShadowMask00(lua_State* tolua_S)
  16081. {
  16082. #ifndef TOLUA_RELEASE
  16083. tolua_Error tolua_err;
  16084. if (
  16085. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  16086. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  16087. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16088. )
  16089. goto tolua_lerror;
  16090. else
  16091. #endif
  16092. {
  16093. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  16094. unsigned mask = ((unsigned) tolua_tonumber(tolua_S,2,0));
  16095. #ifndef TOLUA_RELEASE
  16096. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShadowMask'", NULL);
  16097. #endif
  16098. {
  16099. self->SetShadowMask(mask);
  16100. }
  16101. }
  16102. return 0;
  16103. #ifndef TOLUA_RELEASE
  16104. tolua_lerror:
  16105. tolua_error(tolua_S,"#ferror in function 'SetShadowMask'.",&tolua_err);
  16106. return 0;
  16107. #endif
  16108. }
  16109. #endif //#ifndef TOLUA_DISABLE
  16110. /* method: SetZoneMask of class Terrain */
  16111. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetZoneMask00
  16112. static int tolua_Graphics_Terrain_SetZoneMask00(lua_State* tolua_S)
  16113. {
  16114. #ifndef TOLUA_RELEASE
  16115. tolua_Error tolua_err;
  16116. if (
  16117. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  16118. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  16119. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16120. )
  16121. goto tolua_lerror;
  16122. else
  16123. #endif
  16124. {
  16125. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  16126. unsigned mask = ((unsigned) tolua_tonumber(tolua_S,2,0));
  16127. #ifndef TOLUA_RELEASE
  16128. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetZoneMask'", NULL);
  16129. #endif
  16130. {
  16131. self->SetZoneMask(mask);
  16132. }
  16133. }
  16134. return 0;
  16135. #ifndef TOLUA_RELEASE
  16136. tolua_lerror:
  16137. tolua_error(tolua_S,"#ferror in function 'SetZoneMask'.",&tolua_err);
  16138. return 0;
  16139. #endif
  16140. }
  16141. #endif //#ifndef TOLUA_DISABLE
  16142. /* method: SetMaxLights of class Terrain */
  16143. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetMaxLights00
  16144. static int tolua_Graphics_Terrain_SetMaxLights00(lua_State* tolua_S)
  16145. {
  16146. #ifndef TOLUA_RELEASE
  16147. tolua_Error tolua_err;
  16148. if (
  16149. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  16150. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  16151. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16152. )
  16153. goto tolua_lerror;
  16154. else
  16155. #endif
  16156. {
  16157. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  16158. unsigned num = ((unsigned) tolua_tonumber(tolua_S,2,0));
  16159. #ifndef TOLUA_RELEASE
  16160. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxLights'", NULL);
  16161. #endif
  16162. {
  16163. self->SetMaxLights(num);
  16164. }
  16165. }
  16166. return 0;
  16167. #ifndef TOLUA_RELEASE
  16168. tolua_lerror:
  16169. tolua_error(tolua_S,"#ferror in function 'SetMaxLights'.",&tolua_err);
  16170. return 0;
  16171. #endif
  16172. }
  16173. #endif //#ifndef TOLUA_DISABLE
  16174. /* method: SetCastShadows of class Terrain */
  16175. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetCastShadows00
  16176. static int tolua_Graphics_Terrain_SetCastShadows00(lua_State* tolua_S)
  16177. {
  16178. #ifndef TOLUA_RELEASE
  16179. tolua_Error tolua_err;
  16180. if (
  16181. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  16182. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  16183. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16184. )
  16185. goto tolua_lerror;
  16186. else
  16187. #endif
  16188. {
  16189. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  16190. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  16191. #ifndef TOLUA_RELEASE
  16192. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetCastShadows'", NULL);
  16193. #endif
  16194. {
  16195. self->SetCastShadows(enable);
  16196. }
  16197. }
  16198. return 0;
  16199. #ifndef TOLUA_RELEASE
  16200. tolua_lerror:
  16201. tolua_error(tolua_S,"#ferror in function 'SetCastShadows'.",&tolua_err);
  16202. return 0;
  16203. #endif
  16204. }
  16205. #endif //#ifndef TOLUA_DISABLE
  16206. /* method: SetOccluder of class Terrain */
  16207. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetOccluder00
  16208. static int tolua_Graphics_Terrain_SetOccluder00(lua_State* tolua_S)
  16209. {
  16210. #ifndef TOLUA_RELEASE
  16211. tolua_Error tolua_err;
  16212. if (
  16213. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  16214. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  16215. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16216. )
  16217. goto tolua_lerror;
  16218. else
  16219. #endif
  16220. {
  16221. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  16222. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  16223. #ifndef TOLUA_RELEASE
  16224. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOccluder'", NULL);
  16225. #endif
  16226. {
  16227. self->SetOccluder(enable);
  16228. }
  16229. }
  16230. return 0;
  16231. #ifndef TOLUA_RELEASE
  16232. tolua_lerror:
  16233. tolua_error(tolua_S,"#ferror in function 'SetOccluder'.",&tolua_err);
  16234. return 0;
  16235. #endif
  16236. }
  16237. #endif //#ifndef TOLUA_DISABLE
  16238. /* method: SetOccludee of class Terrain */
  16239. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_SetOccludee00
  16240. static int tolua_Graphics_Terrain_SetOccludee00(lua_State* tolua_S)
  16241. {
  16242. #ifndef TOLUA_RELEASE
  16243. tolua_Error tolua_err;
  16244. if (
  16245. !tolua_isusertype(tolua_S,1,"Terrain",0,&tolua_err) ||
  16246. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  16247. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16248. )
  16249. goto tolua_lerror;
  16250. else
  16251. #endif
  16252. {
  16253. Terrain* self = (Terrain*) tolua_tousertype(tolua_S,1,0);
  16254. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  16255. #ifndef TOLUA_RELEASE
  16256. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOccludee'", NULL);
  16257. #endif
  16258. {
  16259. self->SetOccludee(enable);
  16260. }
  16261. }
  16262. return 0;
  16263. #ifndef TOLUA_RELEASE
  16264. tolua_lerror:
  16265. tolua_error(tolua_S,"#ferror in function 'SetOccludee'.",&tolua_err);
  16266. return 0;
  16267. #endif
  16268. }
  16269. #endif //#ifndef TOLUA_DISABLE
  16270. /* method: GetPatchSize of class Terrain */
  16271. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetPatchSize00
  16272. static int tolua_Graphics_Terrain_GetPatchSize00(lua_State* tolua_S)
  16273. {
  16274. #ifndef TOLUA_RELEASE
  16275. tolua_Error tolua_err;
  16276. if (
  16277. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16278. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16279. )
  16280. goto tolua_lerror;
  16281. else
  16282. #endif
  16283. {
  16284. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16285. #ifndef TOLUA_RELEASE
  16286. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPatchSize'", NULL);
  16287. #endif
  16288. {
  16289. int tolua_ret = (int) self->GetPatchSize();
  16290. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  16291. }
  16292. }
  16293. return 1;
  16294. #ifndef TOLUA_RELEASE
  16295. tolua_lerror:
  16296. tolua_error(tolua_S,"#ferror in function 'GetPatchSize'.",&tolua_err);
  16297. return 0;
  16298. #endif
  16299. }
  16300. #endif //#ifndef TOLUA_DISABLE
  16301. /* method: GetSpacing of class Terrain */
  16302. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetSpacing00
  16303. static int tolua_Graphics_Terrain_GetSpacing00(lua_State* tolua_S)
  16304. {
  16305. #ifndef TOLUA_RELEASE
  16306. tolua_Error tolua_err;
  16307. if (
  16308. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16309. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16310. )
  16311. goto tolua_lerror;
  16312. else
  16313. #endif
  16314. {
  16315. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16316. #ifndef TOLUA_RELEASE
  16317. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSpacing'", NULL);
  16318. #endif
  16319. {
  16320. const Vector3& tolua_ret = (const Vector3&) self->GetSpacing();
  16321. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector3");
  16322. }
  16323. }
  16324. return 1;
  16325. #ifndef TOLUA_RELEASE
  16326. tolua_lerror:
  16327. tolua_error(tolua_S,"#ferror in function 'GetSpacing'.",&tolua_err);
  16328. return 0;
  16329. #endif
  16330. }
  16331. #endif //#ifndef TOLUA_DISABLE
  16332. /* method: GetNumVertices of class Terrain */
  16333. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetNumVertices00
  16334. static int tolua_Graphics_Terrain_GetNumVertices00(lua_State* tolua_S)
  16335. {
  16336. #ifndef TOLUA_RELEASE
  16337. tolua_Error tolua_err;
  16338. if (
  16339. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16340. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16341. )
  16342. goto tolua_lerror;
  16343. else
  16344. #endif
  16345. {
  16346. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16347. #ifndef TOLUA_RELEASE
  16348. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumVertices'", NULL);
  16349. #endif
  16350. {
  16351. const IntVector2& tolua_ret = (const IntVector2&) self->GetNumVertices();
  16352. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  16353. }
  16354. }
  16355. return 1;
  16356. #ifndef TOLUA_RELEASE
  16357. tolua_lerror:
  16358. tolua_error(tolua_S,"#ferror in function 'GetNumVertices'.",&tolua_err);
  16359. return 0;
  16360. #endif
  16361. }
  16362. #endif //#ifndef TOLUA_DISABLE
  16363. /* method: GetNumPatches of class Terrain */
  16364. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetNumPatches00
  16365. static int tolua_Graphics_Terrain_GetNumPatches00(lua_State* tolua_S)
  16366. {
  16367. #ifndef TOLUA_RELEASE
  16368. tolua_Error tolua_err;
  16369. if (
  16370. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16371. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16372. )
  16373. goto tolua_lerror;
  16374. else
  16375. #endif
  16376. {
  16377. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16378. #ifndef TOLUA_RELEASE
  16379. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumPatches'", NULL);
  16380. #endif
  16381. {
  16382. const IntVector2& tolua_ret = (const IntVector2&) self->GetNumPatches();
  16383. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  16384. }
  16385. }
  16386. return 1;
  16387. #ifndef TOLUA_RELEASE
  16388. tolua_lerror:
  16389. tolua_error(tolua_S,"#ferror in function 'GetNumPatches'.",&tolua_err);
  16390. return 0;
  16391. #endif
  16392. }
  16393. #endif //#ifndef TOLUA_DISABLE
  16394. /* method: GetSmoothing of class Terrain */
  16395. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetSmoothing00
  16396. static int tolua_Graphics_Terrain_GetSmoothing00(lua_State* tolua_S)
  16397. {
  16398. #ifndef TOLUA_RELEASE
  16399. tolua_Error tolua_err;
  16400. if (
  16401. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16402. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16403. )
  16404. goto tolua_lerror;
  16405. else
  16406. #endif
  16407. {
  16408. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16409. #ifndef TOLUA_RELEASE
  16410. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSmoothing'", NULL);
  16411. #endif
  16412. {
  16413. bool tolua_ret = (bool) self->GetSmoothing();
  16414. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  16415. }
  16416. }
  16417. return 1;
  16418. #ifndef TOLUA_RELEASE
  16419. tolua_lerror:
  16420. tolua_error(tolua_S,"#ferror in function 'GetSmoothing'.",&tolua_err);
  16421. return 0;
  16422. #endif
  16423. }
  16424. #endif //#ifndef TOLUA_DISABLE
  16425. /* method: GetHeightMap of class Terrain */
  16426. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetHeightMap00
  16427. static int tolua_Graphics_Terrain_GetHeightMap00(lua_State* tolua_S)
  16428. {
  16429. #ifndef TOLUA_RELEASE
  16430. tolua_Error tolua_err;
  16431. if (
  16432. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16433. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16434. )
  16435. goto tolua_lerror;
  16436. else
  16437. #endif
  16438. {
  16439. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16440. #ifndef TOLUA_RELEASE
  16441. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHeightMap'", NULL);
  16442. #endif
  16443. {
  16444. Image* tolua_ret = (Image*) self->GetHeightMap();
  16445. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Image");
  16446. }
  16447. }
  16448. return 1;
  16449. #ifndef TOLUA_RELEASE
  16450. tolua_lerror:
  16451. tolua_error(tolua_S,"#ferror in function 'GetHeightMap'.",&tolua_err);
  16452. return 0;
  16453. #endif
  16454. }
  16455. #endif //#ifndef TOLUA_DISABLE
  16456. /* method: GetMaterial of class Terrain */
  16457. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetMaterial00
  16458. static int tolua_Graphics_Terrain_GetMaterial00(lua_State* tolua_S)
  16459. {
  16460. #ifndef TOLUA_RELEASE
  16461. tolua_Error tolua_err;
  16462. if (
  16463. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16464. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16465. )
  16466. goto tolua_lerror;
  16467. else
  16468. #endif
  16469. {
  16470. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16471. #ifndef TOLUA_RELEASE
  16472. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaterial'", NULL);
  16473. #endif
  16474. {
  16475. Material* tolua_ret = (Material*) self->GetMaterial();
  16476. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Material");
  16477. }
  16478. }
  16479. return 1;
  16480. #ifndef TOLUA_RELEASE
  16481. tolua_lerror:
  16482. tolua_error(tolua_S,"#ferror in function 'GetMaterial'.",&tolua_err);
  16483. return 0;
  16484. #endif
  16485. }
  16486. #endif //#ifndef TOLUA_DISABLE
  16487. /* method: GetPatch of class Terrain */
  16488. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetPatch00
  16489. static int tolua_Graphics_Terrain_GetPatch00(lua_State* tolua_S)
  16490. {
  16491. #ifndef TOLUA_RELEASE
  16492. tolua_Error tolua_err;
  16493. if (
  16494. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16495. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  16496. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16497. )
  16498. goto tolua_lerror;
  16499. else
  16500. #endif
  16501. {
  16502. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16503. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  16504. #ifndef TOLUA_RELEASE
  16505. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPatch'", NULL);
  16506. #endif
  16507. {
  16508. TerrainPatch* tolua_ret = (TerrainPatch*) self->GetPatch(index);
  16509. tolua_pushusertype(tolua_S,(void*)tolua_ret,"TerrainPatch");
  16510. }
  16511. }
  16512. return 1;
  16513. #ifndef TOLUA_RELEASE
  16514. tolua_lerror:
  16515. tolua_error(tolua_S,"#ferror in function 'GetPatch'.",&tolua_err);
  16516. return 0;
  16517. #endif
  16518. }
  16519. #endif //#ifndef TOLUA_DISABLE
  16520. /* method: GetPatch of class Terrain */
  16521. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetPatch01
  16522. static int tolua_Graphics_Terrain_GetPatch01(lua_State* tolua_S)
  16523. {
  16524. tolua_Error tolua_err;
  16525. if (
  16526. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16527. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  16528. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  16529. !tolua_isnoobj(tolua_S,4,&tolua_err)
  16530. )
  16531. goto tolua_lerror;
  16532. else
  16533. {
  16534. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16535. int x = ((int) tolua_tonumber(tolua_S,2,0));
  16536. int z = ((int) tolua_tonumber(tolua_S,3,0));
  16537. #ifndef TOLUA_RELEASE
  16538. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPatch'", NULL);
  16539. #endif
  16540. {
  16541. TerrainPatch* tolua_ret = (TerrainPatch*) self->GetPatch(x,z);
  16542. tolua_pushusertype(tolua_S,(void*)tolua_ret,"TerrainPatch");
  16543. }
  16544. }
  16545. return 1;
  16546. tolua_lerror:
  16547. return tolua_Graphics_Terrain_GetPatch00(tolua_S);
  16548. }
  16549. #endif //#ifndef TOLUA_DISABLE
  16550. /* method: GetHeight of class Terrain */
  16551. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetHeight00
  16552. static int tolua_Graphics_Terrain_GetHeight00(lua_State* tolua_S)
  16553. {
  16554. #ifndef TOLUA_RELEASE
  16555. tolua_Error tolua_err;
  16556. if (
  16557. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16558. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  16559. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16560. )
  16561. goto tolua_lerror;
  16562. else
  16563. #endif
  16564. {
  16565. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16566. const Vector3* worldPosition = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  16567. #ifndef TOLUA_RELEASE
  16568. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHeight'", NULL);
  16569. #endif
  16570. {
  16571. float tolua_ret = (float) self->GetHeight(*worldPosition);
  16572. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  16573. }
  16574. }
  16575. return 1;
  16576. #ifndef TOLUA_RELEASE
  16577. tolua_lerror:
  16578. tolua_error(tolua_S,"#ferror in function 'GetHeight'.",&tolua_err);
  16579. return 0;
  16580. #endif
  16581. }
  16582. #endif //#ifndef TOLUA_DISABLE
  16583. /* method: GetNormal of class Terrain */
  16584. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetNormal00
  16585. static int tolua_Graphics_Terrain_GetNormal00(lua_State* tolua_S)
  16586. {
  16587. #ifndef TOLUA_RELEASE
  16588. tolua_Error tolua_err;
  16589. if (
  16590. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16591. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  16592. !tolua_isnoobj(tolua_S,3,&tolua_err)
  16593. )
  16594. goto tolua_lerror;
  16595. else
  16596. #endif
  16597. {
  16598. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16599. const Vector3* worldPosition = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  16600. #ifndef TOLUA_RELEASE
  16601. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNormal'", NULL);
  16602. #endif
  16603. {
  16604. Vector3 tolua_ret = (Vector3) self->GetNormal(*worldPosition);
  16605. {
  16606. #ifdef __cplusplus
  16607. void* tolua_obj = Mtolua_new((Vector3)(tolua_ret));
  16608. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  16609. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  16610. #else
  16611. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(Vector3));
  16612. tolua_pushusertype(tolua_S,tolua_obj,"Vector3");
  16613. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  16614. #endif
  16615. }
  16616. }
  16617. }
  16618. return 1;
  16619. #ifndef TOLUA_RELEASE
  16620. tolua_lerror:
  16621. tolua_error(tolua_S,"#ferror in function 'GetNormal'.",&tolua_err);
  16622. return 0;
  16623. #endif
  16624. }
  16625. #endif //#ifndef TOLUA_DISABLE
  16626. /* method: GetDrawDistance of class Terrain */
  16627. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetDrawDistance00
  16628. static int tolua_Graphics_Terrain_GetDrawDistance00(lua_State* tolua_S)
  16629. {
  16630. #ifndef TOLUA_RELEASE
  16631. tolua_Error tolua_err;
  16632. if (
  16633. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16634. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16635. )
  16636. goto tolua_lerror;
  16637. else
  16638. #endif
  16639. {
  16640. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16641. #ifndef TOLUA_RELEASE
  16642. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDrawDistance'", NULL);
  16643. #endif
  16644. {
  16645. float tolua_ret = (float) self->GetDrawDistance();
  16646. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  16647. }
  16648. }
  16649. return 1;
  16650. #ifndef TOLUA_RELEASE
  16651. tolua_lerror:
  16652. tolua_error(tolua_S,"#ferror in function 'GetDrawDistance'.",&tolua_err);
  16653. return 0;
  16654. #endif
  16655. }
  16656. #endif //#ifndef TOLUA_DISABLE
  16657. /* method: GetShadowDistance of class Terrain */
  16658. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetShadowDistance00
  16659. static int tolua_Graphics_Terrain_GetShadowDistance00(lua_State* tolua_S)
  16660. {
  16661. #ifndef TOLUA_RELEASE
  16662. tolua_Error tolua_err;
  16663. if (
  16664. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16665. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16666. )
  16667. goto tolua_lerror;
  16668. else
  16669. #endif
  16670. {
  16671. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16672. #ifndef TOLUA_RELEASE
  16673. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowDistance'", NULL);
  16674. #endif
  16675. {
  16676. float tolua_ret = (float) self->GetShadowDistance();
  16677. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  16678. }
  16679. }
  16680. return 1;
  16681. #ifndef TOLUA_RELEASE
  16682. tolua_lerror:
  16683. tolua_error(tolua_S,"#ferror in function 'GetShadowDistance'.",&tolua_err);
  16684. return 0;
  16685. #endif
  16686. }
  16687. #endif //#ifndef TOLUA_DISABLE
  16688. /* method: GetLodBias of class Terrain */
  16689. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetLodBias00
  16690. static int tolua_Graphics_Terrain_GetLodBias00(lua_State* tolua_S)
  16691. {
  16692. #ifndef TOLUA_RELEASE
  16693. tolua_Error tolua_err;
  16694. if (
  16695. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16696. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16697. )
  16698. goto tolua_lerror;
  16699. else
  16700. #endif
  16701. {
  16702. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16703. #ifndef TOLUA_RELEASE
  16704. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLodBias'", NULL);
  16705. #endif
  16706. {
  16707. float tolua_ret = (float) self->GetLodBias();
  16708. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  16709. }
  16710. }
  16711. return 1;
  16712. #ifndef TOLUA_RELEASE
  16713. tolua_lerror:
  16714. tolua_error(tolua_S,"#ferror in function 'GetLodBias'.",&tolua_err);
  16715. return 0;
  16716. #endif
  16717. }
  16718. #endif //#ifndef TOLUA_DISABLE
  16719. /* method: GetViewMask of class Terrain */
  16720. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetViewMask00
  16721. static int tolua_Graphics_Terrain_GetViewMask00(lua_State* tolua_S)
  16722. {
  16723. #ifndef TOLUA_RELEASE
  16724. tolua_Error tolua_err;
  16725. if (
  16726. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16727. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16728. )
  16729. goto tolua_lerror;
  16730. else
  16731. #endif
  16732. {
  16733. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16734. #ifndef TOLUA_RELEASE
  16735. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetViewMask'", NULL);
  16736. #endif
  16737. {
  16738. unsigned tolua_ret = (unsigned) self->GetViewMask();
  16739. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  16740. }
  16741. }
  16742. return 1;
  16743. #ifndef TOLUA_RELEASE
  16744. tolua_lerror:
  16745. tolua_error(tolua_S,"#ferror in function 'GetViewMask'.",&tolua_err);
  16746. return 0;
  16747. #endif
  16748. }
  16749. #endif //#ifndef TOLUA_DISABLE
  16750. /* method: GetLightMask of class Terrain */
  16751. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetLightMask00
  16752. static int tolua_Graphics_Terrain_GetLightMask00(lua_State* tolua_S)
  16753. {
  16754. #ifndef TOLUA_RELEASE
  16755. tolua_Error tolua_err;
  16756. if (
  16757. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16758. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16759. )
  16760. goto tolua_lerror;
  16761. else
  16762. #endif
  16763. {
  16764. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16765. #ifndef TOLUA_RELEASE
  16766. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLightMask'", NULL);
  16767. #endif
  16768. {
  16769. unsigned tolua_ret = (unsigned) self->GetLightMask();
  16770. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  16771. }
  16772. }
  16773. return 1;
  16774. #ifndef TOLUA_RELEASE
  16775. tolua_lerror:
  16776. tolua_error(tolua_S,"#ferror in function 'GetLightMask'.",&tolua_err);
  16777. return 0;
  16778. #endif
  16779. }
  16780. #endif //#ifndef TOLUA_DISABLE
  16781. /* method: GetShadowMask of class Terrain */
  16782. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetShadowMask00
  16783. static int tolua_Graphics_Terrain_GetShadowMask00(lua_State* tolua_S)
  16784. {
  16785. #ifndef TOLUA_RELEASE
  16786. tolua_Error tolua_err;
  16787. if (
  16788. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16789. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16790. )
  16791. goto tolua_lerror;
  16792. else
  16793. #endif
  16794. {
  16795. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16796. #ifndef TOLUA_RELEASE
  16797. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShadowMask'", NULL);
  16798. #endif
  16799. {
  16800. unsigned tolua_ret = (unsigned) self->GetShadowMask();
  16801. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  16802. }
  16803. }
  16804. return 1;
  16805. #ifndef TOLUA_RELEASE
  16806. tolua_lerror:
  16807. tolua_error(tolua_S,"#ferror in function 'GetShadowMask'.",&tolua_err);
  16808. return 0;
  16809. #endif
  16810. }
  16811. #endif //#ifndef TOLUA_DISABLE
  16812. /* method: GetZoneMask of class Terrain */
  16813. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetZoneMask00
  16814. static int tolua_Graphics_Terrain_GetZoneMask00(lua_State* tolua_S)
  16815. {
  16816. #ifndef TOLUA_RELEASE
  16817. tolua_Error tolua_err;
  16818. if (
  16819. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16820. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16821. )
  16822. goto tolua_lerror;
  16823. else
  16824. #endif
  16825. {
  16826. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16827. #ifndef TOLUA_RELEASE
  16828. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetZoneMask'", NULL);
  16829. #endif
  16830. {
  16831. unsigned tolua_ret = (unsigned) self->GetZoneMask();
  16832. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  16833. }
  16834. }
  16835. return 1;
  16836. #ifndef TOLUA_RELEASE
  16837. tolua_lerror:
  16838. tolua_error(tolua_S,"#ferror in function 'GetZoneMask'.",&tolua_err);
  16839. return 0;
  16840. #endif
  16841. }
  16842. #endif //#ifndef TOLUA_DISABLE
  16843. /* method: GetMaxLights of class Terrain */
  16844. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetMaxLights00
  16845. static int tolua_Graphics_Terrain_GetMaxLights00(lua_State* tolua_S)
  16846. {
  16847. #ifndef TOLUA_RELEASE
  16848. tolua_Error tolua_err;
  16849. if (
  16850. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16851. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16852. )
  16853. goto tolua_lerror;
  16854. else
  16855. #endif
  16856. {
  16857. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16858. #ifndef TOLUA_RELEASE
  16859. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxLights'", NULL);
  16860. #endif
  16861. {
  16862. unsigned tolua_ret = (unsigned) self->GetMaxLights();
  16863. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  16864. }
  16865. }
  16866. return 1;
  16867. #ifndef TOLUA_RELEASE
  16868. tolua_lerror:
  16869. tolua_error(tolua_S,"#ferror in function 'GetMaxLights'.",&tolua_err);
  16870. return 0;
  16871. #endif
  16872. }
  16873. #endif //#ifndef TOLUA_DISABLE
  16874. /* method: IsVisible of class Terrain */
  16875. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_IsVisible00
  16876. static int tolua_Graphics_Terrain_IsVisible00(lua_State* tolua_S)
  16877. {
  16878. #ifndef TOLUA_RELEASE
  16879. tolua_Error tolua_err;
  16880. if (
  16881. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16882. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16883. )
  16884. goto tolua_lerror;
  16885. else
  16886. #endif
  16887. {
  16888. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16889. #ifndef TOLUA_RELEASE
  16890. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsVisible'", NULL);
  16891. #endif
  16892. {
  16893. bool tolua_ret = (bool) self->IsVisible();
  16894. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  16895. }
  16896. }
  16897. return 1;
  16898. #ifndef TOLUA_RELEASE
  16899. tolua_lerror:
  16900. tolua_error(tolua_S,"#ferror in function 'IsVisible'.",&tolua_err);
  16901. return 0;
  16902. #endif
  16903. }
  16904. #endif //#ifndef TOLUA_DISABLE
  16905. /* method: GetCastShadows of class Terrain */
  16906. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_GetCastShadows00
  16907. static int tolua_Graphics_Terrain_GetCastShadows00(lua_State* tolua_S)
  16908. {
  16909. #ifndef TOLUA_RELEASE
  16910. tolua_Error tolua_err;
  16911. if (
  16912. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16913. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16914. )
  16915. goto tolua_lerror;
  16916. else
  16917. #endif
  16918. {
  16919. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16920. #ifndef TOLUA_RELEASE
  16921. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCastShadows'", NULL);
  16922. #endif
  16923. {
  16924. bool tolua_ret = (bool) self->GetCastShadows();
  16925. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  16926. }
  16927. }
  16928. return 1;
  16929. #ifndef TOLUA_RELEASE
  16930. tolua_lerror:
  16931. tolua_error(tolua_S,"#ferror in function 'GetCastShadows'.",&tolua_err);
  16932. return 0;
  16933. #endif
  16934. }
  16935. #endif //#ifndef TOLUA_DISABLE
  16936. /* method: IsOccluder of class Terrain */
  16937. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_IsOccluder00
  16938. static int tolua_Graphics_Terrain_IsOccluder00(lua_State* tolua_S)
  16939. {
  16940. #ifndef TOLUA_RELEASE
  16941. tolua_Error tolua_err;
  16942. if (
  16943. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16944. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16945. )
  16946. goto tolua_lerror;
  16947. else
  16948. #endif
  16949. {
  16950. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16951. #ifndef TOLUA_RELEASE
  16952. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsOccluder'", NULL);
  16953. #endif
  16954. {
  16955. bool tolua_ret = (bool) self->IsOccluder();
  16956. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  16957. }
  16958. }
  16959. return 1;
  16960. #ifndef TOLUA_RELEASE
  16961. tolua_lerror:
  16962. tolua_error(tolua_S,"#ferror in function 'IsOccluder'.",&tolua_err);
  16963. return 0;
  16964. #endif
  16965. }
  16966. #endif //#ifndef TOLUA_DISABLE
  16967. /* method: IsOccludee of class Terrain */
  16968. #ifndef TOLUA_DISABLE_tolua_Graphics_Terrain_IsOccludee00
  16969. static int tolua_Graphics_Terrain_IsOccludee00(lua_State* tolua_S)
  16970. {
  16971. #ifndef TOLUA_RELEASE
  16972. tolua_Error tolua_err;
  16973. if (
  16974. !tolua_isusertype(tolua_S,1,"const Terrain",0,&tolua_err) ||
  16975. !tolua_isnoobj(tolua_S,2,&tolua_err)
  16976. )
  16977. goto tolua_lerror;
  16978. else
  16979. #endif
  16980. {
  16981. const Terrain* self = (const Terrain*) tolua_tousertype(tolua_S,1,0);
  16982. #ifndef TOLUA_RELEASE
  16983. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsOccludee'", NULL);
  16984. #endif
  16985. {
  16986. bool tolua_ret = (bool) self->IsOccludee();
  16987. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  16988. }
  16989. }
  16990. return 1;
  16991. #ifndef TOLUA_RELEASE
  16992. tolua_lerror:
  16993. tolua_error(tolua_S,"#ferror in function 'IsOccludee'.",&tolua_err);
  16994. return 0;
  16995. #endif
  16996. }
  16997. #endif //#ifndef TOLUA_DISABLE
  16998. /* method: SetOwner of class TerrainPatch */
  16999. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_SetOwner00
  17000. static int tolua_Graphics_TerrainPatch_SetOwner00(lua_State* tolua_S)
  17001. {
  17002. #ifndef TOLUA_RELEASE
  17003. tolua_Error tolua_err;
  17004. if (
  17005. !tolua_isusertype(tolua_S,1,"TerrainPatch",0,&tolua_err) ||
  17006. !tolua_isusertype(tolua_S,2,"Terrain",0,&tolua_err) ||
  17007. !tolua_isnoobj(tolua_S,3,&tolua_err)
  17008. )
  17009. goto tolua_lerror;
  17010. else
  17011. #endif
  17012. {
  17013. TerrainPatch* self = (TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17014. Terrain* terrain = ((Terrain*) tolua_tousertype(tolua_S,2,0));
  17015. #ifndef TOLUA_RELEASE
  17016. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOwner'", NULL);
  17017. #endif
  17018. {
  17019. self->SetOwner(terrain);
  17020. }
  17021. }
  17022. return 0;
  17023. #ifndef TOLUA_RELEASE
  17024. tolua_lerror:
  17025. tolua_error(tolua_S,"#ferror in function 'SetOwner'.",&tolua_err);
  17026. return 0;
  17027. #endif
  17028. }
  17029. #endif //#ifndef TOLUA_DISABLE
  17030. /* method: SetNeighbors of class TerrainPatch */
  17031. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_SetNeighbors00
  17032. static int tolua_Graphics_TerrainPatch_SetNeighbors00(lua_State* tolua_S)
  17033. {
  17034. #ifndef TOLUA_RELEASE
  17035. tolua_Error tolua_err;
  17036. if (
  17037. !tolua_isusertype(tolua_S,1,"TerrainPatch",0,&tolua_err) ||
  17038. !tolua_isusertype(tolua_S,2,"TerrainPatch",0,&tolua_err) ||
  17039. !tolua_isusertype(tolua_S,3,"TerrainPatch",0,&tolua_err) ||
  17040. !tolua_isusertype(tolua_S,4,"TerrainPatch",0,&tolua_err) ||
  17041. !tolua_isusertype(tolua_S,5,"TerrainPatch",0,&tolua_err) ||
  17042. !tolua_isnoobj(tolua_S,6,&tolua_err)
  17043. )
  17044. goto tolua_lerror;
  17045. else
  17046. #endif
  17047. {
  17048. TerrainPatch* self = (TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17049. TerrainPatch* north = ((TerrainPatch*) tolua_tousertype(tolua_S,2,0));
  17050. TerrainPatch* south = ((TerrainPatch*) tolua_tousertype(tolua_S,3,0));
  17051. TerrainPatch* west = ((TerrainPatch*) tolua_tousertype(tolua_S,4,0));
  17052. TerrainPatch* east = ((TerrainPatch*) tolua_tousertype(tolua_S,5,0));
  17053. #ifndef TOLUA_RELEASE
  17054. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetNeighbors'", NULL);
  17055. #endif
  17056. {
  17057. self->SetNeighbors(north,south,west,east);
  17058. }
  17059. }
  17060. return 0;
  17061. #ifndef TOLUA_RELEASE
  17062. tolua_lerror:
  17063. tolua_error(tolua_S,"#ferror in function 'SetNeighbors'.",&tolua_err);
  17064. return 0;
  17065. #endif
  17066. }
  17067. #endif //#ifndef TOLUA_DISABLE
  17068. /* method: SetMaterial of class TerrainPatch */
  17069. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_SetMaterial00
  17070. static int tolua_Graphics_TerrainPatch_SetMaterial00(lua_State* tolua_S)
  17071. {
  17072. #ifndef TOLUA_RELEASE
  17073. tolua_Error tolua_err;
  17074. if (
  17075. !tolua_isusertype(tolua_S,1,"TerrainPatch",0,&tolua_err) ||
  17076. !tolua_isusertype(tolua_S,2,"Material",0,&tolua_err) ||
  17077. !tolua_isnoobj(tolua_S,3,&tolua_err)
  17078. )
  17079. goto tolua_lerror;
  17080. else
  17081. #endif
  17082. {
  17083. TerrainPatch* self = (TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17084. Material* material = ((Material*) tolua_tousertype(tolua_S,2,0));
  17085. #ifndef TOLUA_RELEASE
  17086. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaterial'", NULL);
  17087. #endif
  17088. {
  17089. self->SetMaterial(material);
  17090. }
  17091. }
  17092. return 0;
  17093. #ifndef TOLUA_RELEASE
  17094. tolua_lerror:
  17095. tolua_error(tolua_S,"#ferror in function 'SetMaterial'.",&tolua_err);
  17096. return 0;
  17097. #endif
  17098. }
  17099. #endif //#ifndef TOLUA_DISABLE
  17100. /* method: SetBoundingBox of class TerrainPatch */
  17101. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_SetBoundingBox00
  17102. static int tolua_Graphics_TerrainPatch_SetBoundingBox00(lua_State* tolua_S)
  17103. {
  17104. #ifndef TOLUA_RELEASE
  17105. tolua_Error tolua_err;
  17106. if (
  17107. !tolua_isusertype(tolua_S,1,"TerrainPatch",0,&tolua_err) ||
  17108. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const BoundingBox",0,&tolua_err)) ||
  17109. !tolua_isnoobj(tolua_S,3,&tolua_err)
  17110. )
  17111. goto tolua_lerror;
  17112. else
  17113. #endif
  17114. {
  17115. TerrainPatch* self = (TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17116. const BoundingBox* box = ((const BoundingBox*) tolua_tousertype(tolua_S,2,0));
  17117. #ifndef TOLUA_RELEASE
  17118. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetBoundingBox'", NULL);
  17119. #endif
  17120. {
  17121. self->SetBoundingBox(*box);
  17122. }
  17123. }
  17124. return 0;
  17125. #ifndef TOLUA_RELEASE
  17126. tolua_lerror:
  17127. tolua_error(tolua_S,"#ferror in function 'SetBoundingBox'.",&tolua_err);
  17128. return 0;
  17129. #endif
  17130. }
  17131. #endif //#ifndef TOLUA_DISABLE
  17132. /* method: SetCoordinates of class TerrainPatch */
  17133. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_SetCoordinates00
  17134. static int tolua_Graphics_TerrainPatch_SetCoordinates00(lua_State* tolua_S)
  17135. {
  17136. #ifndef TOLUA_RELEASE
  17137. tolua_Error tolua_err;
  17138. if (
  17139. !tolua_isusertype(tolua_S,1,"TerrainPatch",0,&tolua_err) ||
  17140. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  17141. !tolua_isnoobj(tolua_S,3,&tolua_err)
  17142. )
  17143. goto tolua_lerror;
  17144. else
  17145. #endif
  17146. {
  17147. TerrainPatch* self = (TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17148. const IntVector2* coordinates = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  17149. #ifndef TOLUA_RELEASE
  17150. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetCoordinates'", NULL);
  17151. #endif
  17152. {
  17153. self->SetCoordinates(*coordinates);
  17154. }
  17155. }
  17156. return 0;
  17157. #ifndef TOLUA_RELEASE
  17158. tolua_lerror:
  17159. tolua_error(tolua_S,"#ferror in function 'SetCoordinates'.",&tolua_err);
  17160. return 0;
  17161. #endif
  17162. }
  17163. #endif //#ifndef TOLUA_DISABLE
  17164. /* method: SetOcclusionOffset of class TerrainPatch */
  17165. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_SetOcclusionOffset00
  17166. static int tolua_Graphics_TerrainPatch_SetOcclusionOffset00(lua_State* tolua_S)
  17167. {
  17168. #ifndef TOLUA_RELEASE
  17169. tolua_Error tolua_err;
  17170. if (
  17171. !tolua_isusertype(tolua_S,1,"TerrainPatch",0,&tolua_err) ||
  17172. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  17173. !tolua_isnoobj(tolua_S,3,&tolua_err)
  17174. )
  17175. goto tolua_lerror;
  17176. else
  17177. #endif
  17178. {
  17179. TerrainPatch* self = (TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17180. float offset = ((float) tolua_tonumber(tolua_S,2,0));
  17181. #ifndef TOLUA_RELEASE
  17182. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOcclusionOffset'", NULL);
  17183. #endif
  17184. {
  17185. self->SetOcclusionOffset(offset);
  17186. }
  17187. }
  17188. return 0;
  17189. #ifndef TOLUA_RELEASE
  17190. tolua_lerror:
  17191. tolua_error(tolua_S,"#ferror in function 'SetOcclusionOffset'.",&tolua_err);
  17192. return 0;
  17193. #endif
  17194. }
  17195. #endif //#ifndef TOLUA_DISABLE
  17196. /* method: ResetLod of class TerrainPatch */
  17197. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_ResetLod00
  17198. static int tolua_Graphics_TerrainPatch_ResetLod00(lua_State* tolua_S)
  17199. {
  17200. #ifndef TOLUA_RELEASE
  17201. tolua_Error tolua_err;
  17202. if (
  17203. !tolua_isusertype(tolua_S,1,"TerrainPatch",0,&tolua_err) ||
  17204. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17205. )
  17206. goto tolua_lerror;
  17207. else
  17208. #endif
  17209. {
  17210. TerrainPatch* self = (TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17211. #ifndef TOLUA_RELEASE
  17212. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ResetLod'", NULL);
  17213. #endif
  17214. {
  17215. self->ResetLod();
  17216. }
  17217. }
  17218. return 0;
  17219. #ifndef TOLUA_RELEASE
  17220. tolua_lerror:
  17221. tolua_error(tolua_S,"#ferror in function 'ResetLod'.",&tolua_err);
  17222. return 0;
  17223. #endif
  17224. }
  17225. #endif //#ifndef TOLUA_DISABLE
  17226. /* method: GetGeometry of class TerrainPatch */
  17227. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetGeometry00
  17228. static int tolua_Graphics_TerrainPatch_GetGeometry00(lua_State* tolua_S)
  17229. {
  17230. #ifndef TOLUA_RELEASE
  17231. tolua_Error tolua_err;
  17232. if (
  17233. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17234. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17235. )
  17236. goto tolua_lerror;
  17237. else
  17238. #endif
  17239. {
  17240. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17241. #ifndef TOLUA_RELEASE
  17242. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetGeometry'", NULL);
  17243. #endif
  17244. {
  17245. Geometry* tolua_ret = (Geometry*) self->GetGeometry();
  17246. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Geometry");
  17247. }
  17248. }
  17249. return 1;
  17250. #ifndef TOLUA_RELEASE
  17251. tolua_lerror:
  17252. tolua_error(tolua_S,"#ferror in function 'GetGeometry'.",&tolua_err);
  17253. return 0;
  17254. #endif
  17255. }
  17256. #endif //#ifndef TOLUA_DISABLE
  17257. /* method: GetMaxLodGeometry of class TerrainPatch */
  17258. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetMaxLodGeometry00
  17259. static int tolua_Graphics_TerrainPatch_GetMaxLodGeometry00(lua_State* tolua_S)
  17260. {
  17261. #ifndef TOLUA_RELEASE
  17262. tolua_Error tolua_err;
  17263. if (
  17264. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17265. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17266. )
  17267. goto tolua_lerror;
  17268. else
  17269. #endif
  17270. {
  17271. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17272. #ifndef TOLUA_RELEASE
  17273. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxLodGeometry'", NULL);
  17274. #endif
  17275. {
  17276. Geometry* tolua_ret = (Geometry*) self->GetMaxLodGeometry();
  17277. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Geometry");
  17278. }
  17279. }
  17280. return 1;
  17281. #ifndef TOLUA_RELEASE
  17282. tolua_lerror:
  17283. tolua_error(tolua_S,"#ferror in function 'GetMaxLodGeometry'.",&tolua_err);
  17284. return 0;
  17285. #endif
  17286. }
  17287. #endif //#ifndef TOLUA_DISABLE
  17288. /* method: GetMinLodGeometry of class TerrainPatch */
  17289. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetMinLodGeometry00
  17290. static int tolua_Graphics_TerrainPatch_GetMinLodGeometry00(lua_State* tolua_S)
  17291. {
  17292. #ifndef TOLUA_RELEASE
  17293. tolua_Error tolua_err;
  17294. if (
  17295. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17296. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17297. )
  17298. goto tolua_lerror;
  17299. else
  17300. #endif
  17301. {
  17302. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17303. #ifndef TOLUA_RELEASE
  17304. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinLodGeometry'", NULL);
  17305. #endif
  17306. {
  17307. Geometry* tolua_ret = (Geometry*) self->GetMinLodGeometry();
  17308. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Geometry");
  17309. }
  17310. }
  17311. return 1;
  17312. #ifndef TOLUA_RELEASE
  17313. tolua_lerror:
  17314. tolua_error(tolua_S,"#ferror in function 'GetMinLodGeometry'.",&tolua_err);
  17315. return 0;
  17316. #endif
  17317. }
  17318. #endif //#ifndef TOLUA_DISABLE
  17319. /* method: GetVertexBuffer of class TerrainPatch */
  17320. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetVertexBuffer00
  17321. static int tolua_Graphics_TerrainPatch_GetVertexBuffer00(lua_State* tolua_S)
  17322. {
  17323. #ifndef TOLUA_RELEASE
  17324. tolua_Error tolua_err;
  17325. if (
  17326. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17327. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17328. )
  17329. goto tolua_lerror;
  17330. else
  17331. #endif
  17332. {
  17333. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17334. #ifndef TOLUA_RELEASE
  17335. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetVertexBuffer'", NULL);
  17336. #endif
  17337. {
  17338. VertexBuffer* tolua_ret = (VertexBuffer*) self->GetVertexBuffer();
  17339. tolua_pushusertype(tolua_S,(void*)tolua_ret,"VertexBuffer");
  17340. }
  17341. }
  17342. return 1;
  17343. #ifndef TOLUA_RELEASE
  17344. tolua_lerror:
  17345. tolua_error(tolua_S,"#ferror in function 'GetVertexBuffer'.",&tolua_err);
  17346. return 0;
  17347. #endif
  17348. }
  17349. #endif //#ifndef TOLUA_DISABLE
  17350. /* method: GetOwner of class TerrainPatch */
  17351. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetOwner00
  17352. static int tolua_Graphics_TerrainPatch_GetOwner00(lua_State* tolua_S)
  17353. {
  17354. #ifndef TOLUA_RELEASE
  17355. tolua_Error tolua_err;
  17356. if (
  17357. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17358. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17359. )
  17360. goto tolua_lerror;
  17361. else
  17362. #endif
  17363. {
  17364. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17365. #ifndef TOLUA_RELEASE
  17366. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOwner'", NULL);
  17367. #endif
  17368. {
  17369. Terrain* tolua_ret = (Terrain*) self->GetOwner();
  17370. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Terrain");
  17371. }
  17372. }
  17373. return 1;
  17374. #ifndef TOLUA_RELEASE
  17375. tolua_lerror:
  17376. tolua_error(tolua_S,"#ferror in function 'GetOwner'.",&tolua_err);
  17377. return 0;
  17378. #endif
  17379. }
  17380. #endif //#ifndef TOLUA_DISABLE
  17381. /* method: GetNorthPatch of class TerrainPatch */
  17382. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetNorthPatch00
  17383. static int tolua_Graphics_TerrainPatch_GetNorthPatch00(lua_State* tolua_S)
  17384. {
  17385. #ifndef TOLUA_RELEASE
  17386. tolua_Error tolua_err;
  17387. if (
  17388. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17389. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17390. )
  17391. goto tolua_lerror;
  17392. else
  17393. #endif
  17394. {
  17395. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17396. #ifndef TOLUA_RELEASE
  17397. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNorthPatch'", NULL);
  17398. #endif
  17399. {
  17400. TerrainPatch* tolua_ret = (TerrainPatch*) self->GetNorthPatch();
  17401. tolua_pushusertype(tolua_S,(void*)tolua_ret,"TerrainPatch");
  17402. }
  17403. }
  17404. return 1;
  17405. #ifndef TOLUA_RELEASE
  17406. tolua_lerror:
  17407. tolua_error(tolua_S,"#ferror in function 'GetNorthPatch'.",&tolua_err);
  17408. return 0;
  17409. #endif
  17410. }
  17411. #endif //#ifndef TOLUA_DISABLE
  17412. /* method: GetSouthPatch of class TerrainPatch */
  17413. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetSouthPatch00
  17414. static int tolua_Graphics_TerrainPatch_GetSouthPatch00(lua_State* tolua_S)
  17415. {
  17416. #ifndef TOLUA_RELEASE
  17417. tolua_Error tolua_err;
  17418. if (
  17419. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17420. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17421. )
  17422. goto tolua_lerror;
  17423. else
  17424. #endif
  17425. {
  17426. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17427. #ifndef TOLUA_RELEASE
  17428. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSouthPatch'", NULL);
  17429. #endif
  17430. {
  17431. TerrainPatch* tolua_ret = (TerrainPatch*) self->GetSouthPatch();
  17432. tolua_pushusertype(tolua_S,(void*)tolua_ret,"TerrainPatch");
  17433. }
  17434. }
  17435. return 1;
  17436. #ifndef TOLUA_RELEASE
  17437. tolua_lerror:
  17438. tolua_error(tolua_S,"#ferror in function 'GetSouthPatch'.",&tolua_err);
  17439. return 0;
  17440. #endif
  17441. }
  17442. #endif //#ifndef TOLUA_DISABLE
  17443. /* method: GetWestPatch of class TerrainPatch */
  17444. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetWestPatch00
  17445. static int tolua_Graphics_TerrainPatch_GetWestPatch00(lua_State* tolua_S)
  17446. {
  17447. #ifndef TOLUA_RELEASE
  17448. tolua_Error tolua_err;
  17449. if (
  17450. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17451. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17452. )
  17453. goto tolua_lerror;
  17454. else
  17455. #endif
  17456. {
  17457. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17458. #ifndef TOLUA_RELEASE
  17459. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWestPatch'", NULL);
  17460. #endif
  17461. {
  17462. TerrainPatch* tolua_ret = (TerrainPatch*) self->GetWestPatch();
  17463. tolua_pushusertype(tolua_S,(void*)tolua_ret,"TerrainPatch");
  17464. }
  17465. }
  17466. return 1;
  17467. #ifndef TOLUA_RELEASE
  17468. tolua_lerror:
  17469. tolua_error(tolua_S,"#ferror in function 'GetWestPatch'.",&tolua_err);
  17470. return 0;
  17471. #endif
  17472. }
  17473. #endif //#ifndef TOLUA_DISABLE
  17474. /* method: GetEastPatch of class TerrainPatch */
  17475. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetEastPatch00
  17476. static int tolua_Graphics_TerrainPatch_GetEastPatch00(lua_State* tolua_S)
  17477. {
  17478. #ifndef TOLUA_RELEASE
  17479. tolua_Error tolua_err;
  17480. if (
  17481. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17482. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17483. )
  17484. goto tolua_lerror;
  17485. else
  17486. #endif
  17487. {
  17488. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17489. #ifndef TOLUA_RELEASE
  17490. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetEastPatch'", NULL);
  17491. #endif
  17492. {
  17493. TerrainPatch* tolua_ret = (TerrainPatch*) self->GetEastPatch();
  17494. tolua_pushusertype(tolua_S,(void*)tolua_ret,"TerrainPatch");
  17495. }
  17496. }
  17497. return 1;
  17498. #ifndef TOLUA_RELEASE
  17499. tolua_lerror:
  17500. tolua_error(tolua_S,"#ferror in function 'GetEastPatch'.",&tolua_err);
  17501. return 0;
  17502. #endif
  17503. }
  17504. #endif //#ifndef TOLUA_DISABLE
  17505. /* method: GetBoundingBox of class TerrainPatch */
  17506. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetBoundingBox00
  17507. static int tolua_Graphics_TerrainPatch_GetBoundingBox00(lua_State* tolua_S)
  17508. {
  17509. #ifndef TOLUA_RELEASE
  17510. tolua_Error tolua_err;
  17511. if (
  17512. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17513. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17514. )
  17515. goto tolua_lerror;
  17516. else
  17517. #endif
  17518. {
  17519. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17520. #ifndef TOLUA_RELEASE
  17521. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBoundingBox'", NULL);
  17522. #endif
  17523. {
  17524. const BoundingBox& tolua_ret = (const BoundingBox&) self->GetBoundingBox();
  17525. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const BoundingBox");
  17526. }
  17527. }
  17528. return 1;
  17529. #ifndef TOLUA_RELEASE
  17530. tolua_lerror:
  17531. tolua_error(tolua_S,"#ferror in function 'GetBoundingBox'.",&tolua_err);
  17532. return 0;
  17533. #endif
  17534. }
  17535. #endif //#ifndef TOLUA_DISABLE
  17536. /* method: GetCoordinates of class TerrainPatch */
  17537. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetCoordinates00
  17538. static int tolua_Graphics_TerrainPatch_GetCoordinates00(lua_State* tolua_S)
  17539. {
  17540. #ifndef TOLUA_RELEASE
  17541. tolua_Error tolua_err;
  17542. if (
  17543. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17544. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17545. )
  17546. goto tolua_lerror;
  17547. else
  17548. #endif
  17549. {
  17550. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17551. #ifndef TOLUA_RELEASE
  17552. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCoordinates'", NULL);
  17553. #endif
  17554. {
  17555. const IntVector2& tolua_ret = (const IntVector2&) self->GetCoordinates();
  17556. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  17557. }
  17558. }
  17559. return 1;
  17560. #ifndef TOLUA_RELEASE
  17561. tolua_lerror:
  17562. tolua_error(tolua_S,"#ferror in function 'GetCoordinates'.",&tolua_err);
  17563. return 0;
  17564. #endif
  17565. }
  17566. #endif //#ifndef TOLUA_DISABLE
  17567. /* method: GetLodLevel of class TerrainPatch */
  17568. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetLodLevel00
  17569. static int tolua_Graphics_TerrainPatch_GetLodLevel00(lua_State* tolua_S)
  17570. {
  17571. #ifndef TOLUA_RELEASE
  17572. tolua_Error tolua_err;
  17573. if (
  17574. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17575. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17576. )
  17577. goto tolua_lerror;
  17578. else
  17579. #endif
  17580. {
  17581. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17582. #ifndef TOLUA_RELEASE
  17583. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLodLevel'", NULL);
  17584. #endif
  17585. {
  17586. unsigned tolua_ret = (unsigned) self->GetLodLevel();
  17587. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  17588. }
  17589. }
  17590. return 1;
  17591. #ifndef TOLUA_RELEASE
  17592. tolua_lerror:
  17593. tolua_error(tolua_S,"#ferror in function 'GetLodLevel'.",&tolua_err);
  17594. return 0;
  17595. #endif
  17596. }
  17597. #endif //#ifndef TOLUA_DISABLE
  17598. /* method: GetOcclusionOffset of class TerrainPatch */
  17599. #ifndef TOLUA_DISABLE_tolua_Graphics_TerrainPatch_GetOcclusionOffset00
  17600. static int tolua_Graphics_TerrainPatch_GetOcclusionOffset00(lua_State* tolua_S)
  17601. {
  17602. #ifndef TOLUA_RELEASE
  17603. tolua_Error tolua_err;
  17604. if (
  17605. !tolua_isusertype(tolua_S,1,"const TerrainPatch",0,&tolua_err) ||
  17606. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17607. )
  17608. goto tolua_lerror;
  17609. else
  17610. #endif
  17611. {
  17612. const TerrainPatch* self = (const TerrainPatch*) tolua_tousertype(tolua_S,1,0);
  17613. #ifndef TOLUA_RELEASE
  17614. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOcclusionOffset'", NULL);
  17615. #endif
  17616. {
  17617. float tolua_ret = (float) self->GetOcclusionOffset();
  17618. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  17619. }
  17620. }
  17621. return 1;
  17622. #ifndef TOLUA_RELEASE
  17623. tolua_lerror:
  17624. tolua_error(tolua_S,"#ferror in function 'GetOcclusionOffset'.",&tolua_err);
  17625. return 0;
  17626. #endif
  17627. }
  17628. #endif //#ifndef TOLUA_DISABLE
  17629. /* method: SetNumLevels of class Texture */
  17630. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_SetNumLevels00
  17631. static int tolua_Graphics_Texture_SetNumLevels00(lua_State* tolua_S)
  17632. {
  17633. #ifndef TOLUA_RELEASE
  17634. tolua_Error tolua_err;
  17635. if (
  17636. !tolua_isusertype(tolua_S,1,"Texture",0,&tolua_err) ||
  17637. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  17638. !tolua_isnoobj(tolua_S,3,&tolua_err)
  17639. )
  17640. goto tolua_lerror;
  17641. else
  17642. #endif
  17643. {
  17644. Texture* self = (Texture*) tolua_tousertype(tolua_S,1,0);
  17645. unsigned levels = ((unsigned) tolua_tonumber(tolua_S,2,0));
  17646. #ifndef TOLUA_RELEASE
  17647. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetNumLevels'", NULL);
  17648. #endif
  17649. {
  17650. self->SetNumLevels(levels);
  17651. }
  17652. }
  17653. return 0;
  17654. #ifndef TOLUA_RELEASE
  17655. tolua_lerror:
  17656. tolua_error(tolua_S,"#ferror in function 'SetNumLevels'.",&tolua_err);
  17657. return 0;
  17658. #endif
  17659. }
  17660. #endif //#ifndef TOLUA_DISABLE
  17661. /* method: SetFilterMode of class Texture */
  17662. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_SetFilterMode00
  17663. static int tolua_Graphics_Texture_SetFilterMode00(lua_State* tolua_S)
  17664. {
  17665. #ifndef TOLUA_RELEASE
  17666. tolua_Error tolua_err;
  17667. if (
  17668. !tolua_isusertype(tolua_S,1,"Texture",0,&tolua_err) ||
  17669. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  17670. !tolua_isnoobj(tolua_S,3,&tolua_err)
  17671. )
  17672. goto tolua_lerror;
  17673. else
  17674. #endif
  17675. {
  17676. Texture* self = (Texture*) tolua_tousertype(tolua_S,1,0);
  17677. TextureFilterMode filter = ((TextureFilterMode) (int) tolua_tonumber(tolua_S,2,0));
  17678. #ifndef TOLUA_RELEASE
  17679. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFilterMode'", NULL);
  17680. #endif
  17681. {
  17682. self->SetFilterMode(filter);
  17683. }
  17684. }
  17685. return 0;
  17686. #ifndef TOLUA_RELEASE
  17687. tolua_lerror:
  17688. tolua_error(tolua_S,"#ferror in function 'SetFilterMode'.",&tolua_err);
  17689. return 0;
  17690. #endif
  17691. }
  17692. #endif //#ifndef TOLUA_DISABLE
  17693. /* method: SetAddressMode of class Texture */
  17694. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_SetAddressMode00
  17695. static int tolua_Graphics_Texture_SetAddressMode00(lua_State* tolua_S)
  17696. {
  17697. #ifndef TOLUA_RELEASE
  17698. tolua_Error tolua_err;
  17699. if (
  17700. !tolua_isusertype(tolua_S,1,"Texture",0,&tolua_err) ||
  17701. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  17702. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  17703. !tolua_isnoobj(tolua_S,4,&tolua_err)
  17704. )
  17705. goto tolua_lerror;
  17706. else
  17707. #endif
  17708. {
  17709. Texture* self = (Texture*) tolua_tousertype(tolua_S,1,0);
  17710. TextureCoordinate coord = ((TextureCoordinate) (int) tolua_tonumber(tolua_S,2,0));
  17711. TextureAddressMode address = ((TextureAddressMode) (int) tolua_tonumber(tolua_S,3,0));
  17712. #ifndef TOLUA_RELEASE
  17713. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAddressMode'", NULL);
  17714. #endif
  17715. {
  17716. self->SetAddressMode(coord,address);
  17717. }
  17718. }
  17719. return 0;
  17720. #ifndef TOLUA_RELEASE
  17721. tolua_lerror:
  17722. tolua_error(tolua_S,"#ferror in function 'SetAddressMode'.",&tolua_err);
  17723. return 0;
  17724. #endif
  17725. }
  17726. #endif //#ifndef TOLUA_DISABLE
  17727. /* method: SetBorderColor of class Texture */
  17728. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_SetBorderColor00
  17729. static int tolua_Graphics_Texture_SetBorderColor00(lua_State* tolua_S)
  17730. {
  17731. #ifndef TOLUA_RELEASE
  17732. tolua_Error tolua_err;
  17733. if (
  17734. !tolua_isusertype(tolua_S,1,"Texture",0,&tolua_err) ||
  17735. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  17736. !tolua_isnoobj(tolua_S,3,&tolua_err)
  17737. )
  17738. goto tolua_lerror;
  17739. else
  17740. #endif
  17741. {
  17742. Texture* self = (Texture*) tolua_tousertype(tolua_S,1,0);
  17743. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  17744. #ifndef TOLUA_RELEASE
  17745. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetBorderColor'", NULL);
  17746. #endif
  17747. {
  17748. self->SetBorderColor(*color);
  17749. }
  17750. }
  17751. return 0;
  17752. #ifndef TOLUA_RELEASE
  17753. tolua_lerror:
  17754. tolua_error(tolua_S,"#ferror in function 'SetBorderColor'.",&tolua_err);
  17755. return 0;
  17756. #endif
  17757. }
  17758. #endif //#ifndef TOLUA_DISABLE
  17759. /* method: SetSRGB of class Texture */
  17760. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_SetSRGB00
  17761. static int tolua_Graphics_Texture_SetSRGB00(lua_State* tolua_S)
  17762. {
  17763. #ifndef TOLUA_RELEASE
  17764. tolua_Error tolua_err;
  17765. if (
  17766. !tolua_isusertype(tolua_S,1,"Texture",0,&tolua_err) ||
  17767. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  17768. !tolua_isnoobj(tolua_S,3,&tolua_err)
  17769. )
  17770. goto tolua_lerror;
  17771. else
  17772. #endif
  17773. {
  17774. Texture* self = (Texture*) tolua_tousertype(tolua_S,1,0);
  17775. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  17776. #ifndef TOLUA_RELEASE
  17777. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSRGB'", NULL);
  17778. #endif
  17779. {
  17780. self->SetSRGB(enable);
  17781. }
  17782. }
  17783. return 0;
  17784. #ifndef TOLUA_RELEASE
  17785. tolua_lerror:
  17786. tolua_error(tolua_S,"#ferror in function 'SetSRGB'.",&tolua_err);
  17787. return 0;
  17788. #endif
  17789. }
  17790. #endif //#ifndef TOLUA_DISABLE
  17791. /* method: SetBackupTexture of class Texture */
  17792. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_SetBackupTexture00
  17793. static int tolua_Graphics_Texture_SetBackupTexture00(lua_State* tolua_S)
  17794. {
  17795. #ifndef TOLUA_RELEASE
  17796. tolua_Error tolua_err;
  17797. if (
  17798. !tolua_isusertype(tolua_S,1,"Texture",0,&tolua_err) ||
  17799. !tolua_isusertype(tolua_S,2,"Texture",0,&tolua_err) ||
  17800. !tolua_isnoobj(tolua_S,3,&tolua_err)
  17801. )
  17802. goto tolua_lerror;
  17803. else
  17804. #endif
  17805. {
  17806. Texture* self = (Texture*) tolua_tousertype(tolua_S,1,0);
  17807. Texture* texture = ((Texture*) tolua_tousertype(tolua_S,2,0));
  17808. #ifndef TOLUA_RELEASE
  17809. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetBackupTexture'", NULL);
  17810. #endif
  17811. {
  17812. self->SetBackupTexture(texture);
  17813. }
  17814. }
  17815. return 0;
  17816. #ifndef TOLUA_RELEASE
  17817. tolua_lerror:
  17818. tolua_error(tolua_S,"#ferror in function 'SetBackupTexture'.",&tolua_err);
  17819. return 0;
  17820. #endif
  17821. }
  17822. #endif //#ifndef TOLUA_DISABLE
  17823. /* method: GetFormat of class Texture */
  17824. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetFormat00
  17825. static int tolua_Graphics_Texture_GetFormat00(lua_State* tolua_S)
  17826. {
  17827. #ifndef TOLUA_RELEASE
  17828. tolua_Error tolua_err;
  17829. if (
  17830. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  17831. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17832. )
  17833. goto tolua_lerror;
  17834. else
  17835. #endif
  17836. {
  17837. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  17838. #ifndef TOLUA_RELEASE
  17839. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFormat'", NULL);
  17840. #endif
  17841. {
  17842. unsigned tolua_ret = (unsigned) self->GetFormat();
  17843. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  17844. }
  17845. }
  17846. return 1;
  17847. #ifndef TOLUA_RELEASE
  17848. tolua_lerror:
  17849. tolua_error(tolua_S,"#ferror in function 'GetFormat'.",&tolua_err);
  17850. return 0;
  17851. #endif
  17852. }
  17853. #endif //#ifndef TOLUA_DISABLE
  17854. /* method: IsCompressed of class Texture */
  17855. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_IsCompressed00
  17856. static int tolua_Graphics_Texture_IsCompressed00(lua_State* tolua_S)
  17857. {
  17858. #ifndef TOLUA_RELEASE
  17859. tolua_Error tolua_err;
  17860. if (
  17861. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  17862. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17863. )
  17864. goto tolua_lerror;
  17865. else
  17866. #endif
  17867. {
  17868. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  17869. #ifndef TOLUA_RELEASE
  17870. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsCompressed'", NULL);
  17871. #endif
  17872. {
  17873. bool tolua_ret = (bool) self->IsCompressed();
  17874. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  17875. }
  17876. }
  17877. return 1;
  17878. #ifndef TOLUA_RELEASE
  17879. tolua_lerror:
  17880. tolua_error(tolua_S,"#ferror in function 'IsCompressed'.",&tolua_err);
  17881. return 0;
  17882. #endif
  17883. }
  17884. #endif //#ifndef TOLUA_DISABLE
  17885. /* method: GetLevels of class Texture */
  17886. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetLevels00
  17887. static int tolua_Graphics_Texture_GetLevels00(lua_State* tolua_S)
  17888. {
  17889. #ifndef TOLUA_RELEASE
  17890. tolua_Error tolua_err;
  17891. if (
  17892. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  17893. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17894. )
  17895. goto tolua_lerror;
  17896. else
  17897. #endif
  17898. {
  17899. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  17900. #ifndef TOLUA_RELEASE
  17901. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLevels'", NULL);
  17902. #endif
  17903. {
  17904. unsigned tolua_ret = (unsigned) self->GetLevels();
  17905. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  17906. }
  17907. }
  17908. return 1;
  17909. #ifndef TOLUA_RELEASE
  17910. tolua_lerror:
  17911. tolua_error(tolua_S,"#ferror in function 'GetLevels'.",&tolua_err);
  17912. return 0;
  17913. #endif
  17914. }
  17915. #endif //#ifndef TOLUA_DISABLE
  17916. /* method: GetWidth of class Texture */
  17917. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetWidth00
  17918. static int tolua_Graphics_Texture_GetWidth00(lua_State* tolua_S)
  17919. {
  17920. #ifndef TOLUA_RELEASE
  17921. tolua_Error tolua_err;
  17922. if (
  17923. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  17924. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17925. )
  17926. goto tolua_lerror;
  17927. else
  17928. #endif
  17929. {
  17930. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  17931. #ifndef TOLUA_RELEASE
  17932. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWidth'", NULL);
  17933. #endif
  17934. {
  17935. int tolua_ret = (int) self->GetWidth();
  17936. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  17937. }
  17938. }
  17939. return 1;
  17940. #ifndef TOLUA_RELEASE
  17941. tolua_lerror:
  17942. tolua_error(tolua_S,"#ferror in function 'GetWidth'.",&tolua_err);
  17943. return 0;
  17944. #endif
  17945. }
  17946. #endif //#ifndef TOLUA_DISABLE
  17947. /* method: GetHeight of class Texture */
  17948. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetHeight00
  17949. static int tolua_Graphics_Texture_GetHeight00(lua_State* tolua_S)
  17950. {
  17951. #ifndef TOLUA_RELEASE
  17952. tolua_Error tolua_err;
  17953. if (
  17954. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  17955. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17956. )
  17957. goto tolua_lerror;
  17958. else
  17959. #endif
  17960. {
  17961. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  17962. #ifndef TOLUA_RELEASE
  17963. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHeight'", NULL);
  17964. #endif
  17965. {
  17966. int tolua_ret = (int) self->GetHeight();
  17967. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  17968. }
  17969. }
  17970. return 1;
  17971. #ifndef TOLUA_RELEASE
  17972. tolua_lerror:
  17973. tolua_error(tolua_S,"#ferror in function 'GetHeight'.",&tolua_err);
  17974. return 0;
  17975. #endif
  17976. }
  17977. #endif //#ifndef TOLUA_DISABLE
  17978. /* method: GetFilterMode of class Texture */
  17979. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetFilterMode00
  17980. static int tolua_Graphics_Texture_GetFilterMode00(lua_State* tolua_S)
  17981. {
  17982. #ifndef TOLUA_RELEASE
  17983. tolua_Error tolua_err;
  17984. if (
  17985. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  17986. !tolua_isnoobj(tolua_S,2,&tolua_err)
  17987. )
  17988. goto tolua_lerror;
  17989. else
  17990. #endif
  17991. {
  17992. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  17993. #ifndef TOLUA_RELEASE
  17994. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFilterMode'", NULL);
  17995. #endif
  17996. {
  17997. TextureFilterMode tolua_ret = (TextureFilterMode) self->GetFilterMode();
  17998. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  17999. }
  18000. }
  18001. return 1;
  18002. #ifndef TOLUA_RELEASE
  18003. tolua_lerror:
  18004. tolua_error(tolua_S,"#ferror in function 'GetFilterMode'.",&tolua_err);
  18005. return 0;
  18006. #endif
  18007. }
  18008. #endif //#ifndef TOLUA_DISABLE
  18009. /* method: GetAddressMode of class Texture */
  18010. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetAddressMode00
  18011. static int tolua_Graphics_Texture_GetAddressMode00(lua_State* tolua_S)
  18012. {
  18013. #ifndef TOLUA_RELEASE
  18014. tolua_Error tolua_err;
  18015. if (
  18016. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  18017. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  18018. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18019. )
  18020. goto tolua_lerror;
  18021. else
  18022. #endif
  18023. {
  18024. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  18025. TextureCoordinate coord = ((TextureCoordinate) (int) tolua_tonumber(tolua_S,2,0));
  18026. #ifndef TOLUA_RELEASE
  18027. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAddressMode'", NULL);
  18028. #endif
  18029. {
  18030. TextureAddressMode tolua_ret = (TextureAddressMode) self->GetAddressMode(coord);
  18031. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  18032. }
  18033. }
  18034. return 1;
  18035. #ifndef TOLUA_RELEASE
  18036. tolua_lerror:
  18037. tolua_error(tolua_S,"#ferror in function 'GetAddressMode'.",&tolua_err);
  18038. return 0;
  18039. #endif
  18040. }
  18041. #endif //#ifndef TOLUA_DISABLE
  18042. /* method: GetBorderColor of class Texture */
  18043. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetBorderColor00
  18044. static int tolua_Graphics_Texture_GetBorderColor00(lua_State* tolua_S)
  18045. {
  18046. #ifndef TOLUA_RELEASE
  18047. tolua_Error tolua_err;
  18048. if (
  18049. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  18050. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18051. )
  18052. goto tolua_lerror;
  18053. else
  18054. #endif
  18055. {
  18056. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  18057. #ifndef TOLUA_RELEASE
  18058. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBorderColor'", NULL);
  18059. #endif
  18060. {
  18061. const Color& tolua_ret = (const Color&) self->GetBorderColor();
  18062. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  18063. }
  18064. }
  18065. return 1;
  18066. #ifndef TOLUA_RELEASE
  18067. tolua_lerror:
  18068. tolua_error(tolua_S,"#ferror in function 'GetBorderColor'.",&tolua_err);
  18069. return 0;
  18070. #endif
  18071. }
  18072. #endif //#ifndef TOLUA_DISABLE
  18073. /* method: GetSRGB of class Texture */
  18074. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetSRGB00
  18075. static int tolua_Graphics_Texture_GetSRGB00(lua_State* tolua_S)
  18076. {
  18077. #ifndef TOLUA_RELEASE
  18078. tolua_Error tolua_err;
  18079. if (
  18080. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  18081. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18082. )
  18083. goto tolua_lerror;
  18084. else
  18085. #endif
  18086. {
  18087. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  18088. #ifndef TOLUA_RELEASE
  18089. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSRGB'", NULL);
  18090. #endif
  18091. {
  18092. bool tolua_ret = (bool) self->GetSRGB();
  18093. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  18094. }
  18095. }
  18096. return 1;
  18097. #ifndef TOLUA_RELEASE
  18098. tolua_lerror:
  18099. tolua_error(tolua_S,"#ferror in function 'GetSRGB'.",&tolua_err);
  18100. return 0;
  18101. #endif
  18102. }
  18103. #endif //#ifndef TOLUA_DISABLE
  18104. /* method: GetBackupTexture of class Texture */
  18105. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetBackupTexture00
  18106. static int tolua_Graphics_Texture_GetBackupTexture00(lua_State* tolua_S)
  18107. {
  18108. #ifndef TOLUA_RELEASE
  18109. tolua_Error tolua_err;
  18110. if (
  18111. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  18112. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18113. )
  18114. goto tolua_lerror;
  18115. else
  18116. #endif
  18117. {
  18118. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  18119. #ifndef TOLUA_RELEASE
  18120. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBackupTexture'", NULL);
  18121. #endif
  18122. {
  18123. Texture* tolua_ret = (Texture*) self->GetBackupTexture();
  18124. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Texture");
  18125. }
  18126. }
  18127. return 1;
  18128. #ifndef TOLUA_RELEASE
  18129. tolua_lerror:
  18130. tolua_error(tolua_S,"#ferror in function 'GetBackupTexture'.",&tolua_err);
  18131. return 0;
  18132. #endif
  18133. }
  18134. #endif //#ifndef TOLUA_DISABLE
  18135. /* method: GetLevelWidth of class Texture */
  18136. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetLevelWidth00
  18137. static int tolua_Graphics_Texture_GetLevelWidth00(lua_State* tolua_S)
  18138. {
  18139. #ifndef TOLUA_RELEASE
  18140. tolua_Error tolua_err;
  18141. if (
  18142. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  18143. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  18144. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18145. )
  18146. goto tolua_lerror;
  18147. else
  18148. #endif
  18149. {
  18150. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  18151. unsigned level = ((unsigned) tolua_tonumber(tolua_S,2,0));
  18152. #ifndef TOLUA_RELEASE
  18153. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLevelWidth'", NULL);
  18154. #endif
  18155. {
  18156. int tolua_ret = (int) self->GetLevelWidth(level);
  18157. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  18158. }
  18159. }
  18160. return 1;
  18161. #ifndef TOLUA_RELEASE
  18162. tolua_lerror:
  18163. tolua_error(tolua_S,"#ferror in function 'GetLevelWidth'.",&tolua_err);
  18164. return 0;
  18165. #endif
  18166. }
  18167. #endif //#ifndef TOLUA_DISABLE
  18168. /* method: GetLevelHeight of class Texture */
  18169. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetLevelHeight00
  18170. static int tolua_Graphics_Texture_GetLevelHeight00(lua_State* tolua_S)
  18171. {
  18172. #ifndef TOLUA_RELEASE
  18173. tolua_Error tolua_err;
  18174. if (
  18175. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  18176. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  18177. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18178. )
  18179. goto tolua_lerror;
  18180. else
  18181. #endif
  18182. {
  18183. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  18184. unsigned level = ((unsigned) tolua_tonumber(tolua_S,2,0));
  18185. #ifndef TOLUA_RELEASE
  18186. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLevelHeight'", NULL);
  18187. #endif
  18188. {
  18189. int tolua_ret = (int) self->GetLevelHeight(level);
  18190. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  18191. }
  18192. }
  18193. return 1;
  18194. #ifndef TOLUA_RELEASE
  18195. tolua_lerror:
  18196. tolua_error(tolua_S,"#ferror in function 'GetLevelHeight'.",&tolua_err);
  18197. return 0;
  18198. #endif
  18199. }
  18200. #endif //#ifndef TOLUA_DISABLE
  18201. /* method: GetUsage of class Texture */
  18202. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetUsage00
  18203. static int tolua_Graphics_Texture_GetUsage00(lua_State* tolua_S)
  18204. {
  18205. #ifndef TOLUA_RELEASE
  18206. tolua_Error tolua_err;
  18207. if (
  18208. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  18209. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18210. )
  18211. goto tolua_lerror;
  18212. else
  18213. #endif
  18214. {
  18215. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  18216. #ifndef TOLUA_RELEASE
  18217. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetUsage'", NULL);
  18218. #endif
  18219. {
  18220. TextureUsage tolua_ret = (TextureUsage) self->GetUsage();
  18221. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  18222. }
  18223. }
  18224. return 1;
  18225. #ifndef TOLUA_RELEASE
  18226. tolua_lerror:
  18227. tolua_error(tolua_S,"#ferror in function 'GetUsage'.",&tolua_err);
  18228. return 0;
  18229. #endif
  18230. }
  18231. #endif //#ifndef TOLUA_DISABLE
  18232. /* method: GetDataSize of class Texture */
  18233. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetDataSize00
  18234. static int tolua_Graphics_Texture_GetDataSize00(lua_State* tolua_S)
  18235. {
  18236. #ifndef TOLUA_RELEASE
  18237. tolua_Error tolua_err;
  18238. if (
  18239. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  18240. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  18241. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  18242. !tolua_isnoobj(tolua_S,4,&tolua_err)
  18243. )
  18244. goto tolua_lerror;
  18245. else
  18246. #endif
  18247. {
  18248. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  18249. int width = ((int) tolua_tonumber(tolua_S,2,0));
  18250. int height = ((int) tolua_tonumber(tolua_S,3,0));
  18251. #ifndef TOLUA_RELEASE
  18252. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDataSize'", NULL);
  18253. #endif
  18254. {
  18255. unsigned tolua_ret = (unsigned) self->GetDataSize(width,height);
  18256. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  18257. }
  18258. }
  18259. return 1;
  18260. #ifndef TOLUA_RELEASE
  18261. tolua_lerror:
  18262. tolua_error(tolua_S,"#ferror in function 'GetDataSize'.",&tolua_err);
  18263. return 0;
  18264. #endif
  18265. }
  18266. #endif //#ifndef TOLUA_DISABLE
  18267. /* method: GetRowDataSize of class Texture */
  18268. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture_GetRowDataSize00
  18269. static int tolua_Graphics_Texture_GetRowDataSize00(lua_State* tolua_S)
  18270. {
  18271. #ifndef TOLUA_RELEASE
  18272. tolua_Error tolua_err;
  18273. if (
  18274. !tolua_isusertype(tolua_S,1,"const Texture",0,&tolua_err) ||
  18275. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  18276. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18277. )
  18278. goto tolua_lerror;
  18279. else
  18280. #endif
  18281. {
  18282. const Texture* self = (const Texture*) tolua_tousertype(tolua_S,1,0);
  18283. int width = ((int) tolua_tonumber(tolua_S,2,0));
  18284. #ifndef TOLUA_RELEASE
  18285. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRowDataSize'", NULL);
  18286. #endif
  18287. {
  18288. unsigned tolua_ret = (unsigned) self->GetRowDataSize(width);
  18289. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  18290. }
  18291. }
  18292. return 1;
  18293. #ifndef TOLUA_RELEASE
  18294. tolua_lerror:
  18295. tolua_error(tolua_S,"#ferror in function 'GetRowDataSize'.",&tolua_err);
  18296. return 0;
  18297. #endif
  18298. }
  18299. #endif //#ifndef TOLUA_DISABLE
  18300. /* method: GetRenderSurface of class Texture2D */
  18301. #ifndef TOLUA_DISABLE_tolua_Graphics_Texture2D_GetRenderSurface00
  18302. static int tolua_Graphics_Texture2D_GetRenderSurface00(lua_State* tolua_S)
  18303. {
  18304. #ifndef TOLUA_RELEASE
  18305. tolua_Error tolua_err;
  18306. if (
  18307. !tolua_isusertype(tolua_S,1,"const Texture2D",0,&tolua_err) ||
  18308. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18309. )
  18310. goto tolua_lerror;
  18311. else
  18312. #endif
  18313. {
  18314. const Texture2D* self = (const Texture2D*) tolua_tousertype(tolua_S,1,0);
  18315. #ifndef TOLUA_RELEASE
  18316. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRenderSurface'", NULL);
  18317. #endif
  18318. {
  18319. RenderSurface* tolua_ret = (RenderSurface*) self->GetRenderSurface();
  18320. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RenderSurface");
  18321. }
  18322. }
  18323. return 1;
  18324. #ifndef TOLUA_RELEASE
  18325. tolua_lerror:
  18326. tolua_error(tolua_S,"#ferror in function 'GetRenderSurface'.",&tolua_err);
  18327. return 0;
  18328. #endif
  18329. }
  18330. #endif //#ifndef TOLUA_DISABLE
  18331. /* method: GetRenderSurface of class TextureCube */
  18332. #ifndef TOLUA_DISABLE_tolua_Graphics_TextureCube_GetRenderSurface00
  18333. static int tolua_Graphics_TextureCube_GetRenderSurface00(lua_State* tolua_S)
  18334. {
  18335. #ifndef TOLUA_RELEASE
  18336. tolua_Error tolua_err;
  18337. if (
  18338. !tolua_isusertype(tolua_S,1,"const TextureCube",0,&tolua_err) ||
  18339. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  18340. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18341. )
  18342. goto tolua_lerror;
  18343. else
  18344. #endif
  18345. {
  18346. const TextureCube* self = (const TextureCube*) tolua_tousertype(tolua_S,1,0);
  18347. CubeMapFace face = ((CubeMapFace) (int) tolua_tonumber(tolua_S,2,0));
  18348. #ifndef TOLUA_RELEASE
  18349. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRenderSurface'", NULL);
  18350. #endif
  18351. {
  18352. RenderSurface* tolua_ret = (RenderSurface*) self->GetRenderSurface(face);
  18353. tolua_pushusertype(tolua_S,(void*)tolua_ret,"RenderSurface");
  18354. }
  18355. }
  18356. return 1;
  18357. #ifndef TOLUA_RELEASE
  18358. tolua_lerror:
  18359. tolua_error(tolua_S,"#ferror in function 'GetRenderSurface'.",&tolua_err);
  18360. return 0;
  18361. #endif
  18362. }
  18363. #endif //#ifndef TOLUA_DISABLE
  18364. /* method: SetBoundingBox of class Zone */
  18365. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_SetBoundingBox00
  18366. static int tolua_Graphics_Zone_SetBoundingBox00(lua_State* tolua_S)
  18367. {
  18368. #ifndef TOLUA_RELEASE
  18369. tolua_Error tolua_err;
  18370. if (
  18371. !tolua_isusertype(tolua_S,1,"Zone",0,&tolua_err) ||
  18372. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const BoundingBox",0,&tolua_err)) ||
  18373. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18374. )
  18375. goto tolua_lerror;
  18376. else
  18377. #endif
  18378. {
  18379. Zone* self = (Zone*) tolua_tousertype(tolua_S,1,0);
  18380. const BoundingBox* box = ((const BoundingBox*) tolua_tousertype(tolua_S,2,0));
  18381. #ifndef TOLUA_RELEASE
  18382. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetBoundingBox'", NULL);
  18383. #endif
  18384. {
  18385. self->SetBoundingBox(*box);
  18386. }
  18387. }
  18388. return 0;
  18389. #ifndef TOLUA_RELEASE
  18390. tolua_lerror:
  18391. tolua_error(tolua_S,"#ferror in function 'SetBoundingBox'.",&tolua_err);
  18392. return 0;
  18393. #endif
  18394. }
  18395. #endif //#ifndef TOLUA_DISABLE
  18396. /* method: SetAmbientColor of class Zone */
  18397. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_SetAmbientColor00
  18398. static int tolua_Graphics_Zone_SetAmbientColor00(lua_State* tolua_S)
  18399. {
  18400. #ifndef TOLUA_RELEASE
  18401. tolua_Error tolua_err;
  18402. if (
  18403. !tolua_isusertype(tolua_S,1,"Zone",0,&tolua_err) ||
  18404. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  18405. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18406. )
  18407. goto tolua_lerror;
  18408. else
  18409. #endif
  18410. {
  18411. Zone* self = (Zone*) tolua_tousertype(tolua_S,1,0);
  18412. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  18413. #ifndef TOLUA_RELEASE
  18414. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAmbientColor'", NULL);
  18415. #endif
  18416. {
  18417. self->SetAmbientColor(*color);
  18418. }
  18419. }
  18420. return 0;
  18421. #ifndef TOLUA_RELEASE
  18422. tolua_lerror:
  18423. tolua_error(tolua_S,"#ferror in function 'SetAmbientColor'.",&tolua_err);
  18424. return 0;
  18425. #endif
  18426. }
  18427. #endif //#ifndef TOLUA_DISABLE
  18428. /* method: SetFogColor of class Zone */
  18429. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_SetFogColor00
  18430. static int tolua_Graphics_Zone_SetFogColor00(lua_State* tolua_S)
  18431. {
  18432. #ifndef TOLUA_RELEASE
  18433. tolua_Error tolua_err;
  18434. if (
  18435. !tolua_isusertype(tolua_S,1,"Zone",0,&tolua_err) ||
  18436. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  18437. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18438. )
  18439. goto tolua_lerror;
  18440. else
  18441. #endif
  18442. {
  18443. Zone* self = (Zone*) tolua_tousertype(tolua_S,1,0);
  18444. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  18445. #ifndef TOLUA_RELEASE
  18446. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFogColor'", NULL);
  18447. #endif
  18448. {
  18449. self->SetFogColor(*color);
  18450. }
  18451. }
  18452. return 0;
  18453. #ifndef TOLUA_RELEASE
  18454. tolua_lerror:
  18455. tolua_error(tolua_S,"#ferror in function 'SetFogColor'.",&tolua_err);
  18456. return 0;
  18457. #endif
  18458. }
  18459. #endif //#ifndef TOLUA_DISABLE
  18460. /* method: SetFogStart of class Zone */
  18461. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_SetFogStart00
  18462. static int tolua_Graphics_Zone_SetFogStart00(lua_State* tolua_S)
  18463. {
  18464. #ifndef TOLUA_RELEASE
  18465. tolua_Error tolua_err;
  18466. if (
  18467. !tolua_isusertype(tolua_S,1,"Zone",0,&tolua_err) ||
  18468. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  18469. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18470. )
  18471. goto tolua_lerror;
  18472. else
  18473. #endif
  18474. {
  18475. Zone* self = (Zone*) tolua_tousertype(tolua_S,1,0);
  18476. float start = ((float) tolua_tonumber(tolua_S,2,0));
  18477. #ifndef TOLUA_RELEASE
  18478. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFogStart'", NULL);
  18479. #endif
  18480. {
  18481. self->SetFogStart(start);
  18482. }
  18483. }
  18484. return 0;
  18485. #ifndef TOLUA_RELEASE
  18486. tolua_lerror:
  18487. tolua_error(tolua_S,"#ferror in function 'SetFogStart'.",&tolua_err);
  18488. return 0;
  18489. #endif
  18490. }
  18491. #endif //#ifndef TOLUA_DISABLE
  18492. /* method: SetFogEnd of class Zone */
  18493. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_SetFogEnd00
  18494. static int tolua_Graphics_Zone_SetFogEnd00(lua_State* tolua_S)
  18495. {
  18496. #ifndef TOLUA_RELEASE
  18497. tolua_Error tolua_err;
  18498. if (
  18499. !tolua_isusertype(tolua_S,1,"Zone",0,&tolua_err) ||
  18500. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  18501. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18502. )
  18503. goto tolua_lerror;
  18504. else
  18505. #endif
  18506. {
  18507. Zone* self = (Zone*) tolua_tousertype(tolua_S,1,0);
  18508. float end = ((float) tolua_tonumber(tolua_S,2,0));
  18509. #ifndef TOLUA_RELEASE
  18510. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFogEnd'", NULL);
  18511. #endif
  18512. {
  18513. self->SetFogEnd(end);
  18514. }
  18515. }
  18516. return 0;
  18517. #ifndef TOLUA_RELEASE
  18518. tolua_lerror:
  18519. tolua_error(tolua_S,"#ferror in function 'SetFogEnd'.",&tolua_err);
  18520. return 0;
  18521. #endif
  18522. }
  18523. #endif //#ifndef TOLUA_DISABLE
  18524. /* method: SetPriority of class Zone */
  18525. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_SetPriority00
  18526. static int tolua_Graphics_Zone_SetPriority00(lua_State* tolua_S)
  18527. {
  18528. #ifndef TOLUA_RELEASE
  18529. tolua_Error tolua_err;
  18530. if (
  18531. !tolua_isusertype(tolua_S,1,"Zone",0,&tolua_err) ||
  18532. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  18533. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18534. )
  18535. goto tolua_lerror;
  18536. else
  18537. #endif
  18538. {
  18539. Zone* self = (Zone*) tolua_tousertype(tolua_S,1,0);
  18540. int priority = ((int) tolua_tonumber(tolua_S,2,0));
  18541. #ifndef TOLUA_RELEASE
  18542. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPriority'", NULL);
  18543. #endif
  18544. {
  18545. self->SetPriority(priority);
  18546. }
  18547. }
  18548. return 0;
  18549. #ifndef TOLUA_RELEASE
  18550. tolua_lerror:
  18551. tolua_error(tolua_S,"#ferror in function 'SetPriority'.",&tolua_err);
  18552. return 0;
  18553. #endif
  18554. }
  18555. #endif //#ifndef TOLUA_DISABLE
  18556. /* method: SetOverride of class Zone */
  18557. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_SetOverride00
  18558. static int tolua_Graphics_Zone_SetOverride00(lua_State* tolua_S)
  18559. {
  18560. #ifndef TOLUA_RELEASE
  18561. tolua_Error tolua_err;
  18562. if (
  18563. !tolua_isusertype(tolua_S,1,"Zone",0,&tolua_err) ||
  18564. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  18565. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18566. )
  18567. goto tolua_lerror;
  18568. else
  18569. #endif
  18570. {
  18571. Zone* self = (Zone*) tolua_tousertype(tolua_S,1,0);
  18572. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  18573. #ifndef TOLUA_RELEASE
  18574. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOverride'", NULL);
  18575. #endif
  18576. {
  18577. self->SetOverride(enable);
  18578. }
  18579. }
  18580. return 0;
  18581. #ifndef TOLUA_RELEASE
  18582. tolua_lerror:
  18583. tolua_error(tolua_S,"#ferror in function 'SetOverride'.",&tolua_err);
  18584. return 0;
  18585. #endif
  18586. }
  18587. #endif //#ifndef TOLUA_DISABLE
  18588. /* method: SetAmbientGradient of class Zone */
  18589. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_SetAmbientGradient00
  18590. static int tolua_Graphics_Zone_SetAmbientGradient00(lua_State* tolua_S)
  18591. {
  18592. #ifndef TOLUA_RELEASE
  18593. tolua_Error tolua_err;
  18594. if (
  18595. !tolua_isusertype(tolua_S,1,"Zone",0,&tolua_err) ||
  18596. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  18597. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18598. )
  18599. goto tolua_lerror;
  18600. else
  18601. #endif
  18602. {
  18603. Zone* self = (Zone*) tolua_tousertype(tolua_S,1,0);
  18604. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  18605. #ifndef TOLUA_RELEASE
  18606. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAmbientGradient'", NULL);
  18607. #endif
  18608. {
  18609. self->SetAmbientGradient(enable);
  18610. }
  18611. }
  18612. return 0;
  18613. #ifndef TOLUA_RELEASE
  18614. tolua_lerror:
  18615. tolua_error(tolua_S,"#ferror in function 'SetAmbientGradient'.",&tolua_err);
  18616. return 0;
  18617. #endif
  18618. }
  18619. #endif //#ifndef TOLUA_DISABLE
  18620. /* method: GetBoundingBox of class Zone */
  18621. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_GetBoundingBox00
  18622. static int tolua_Graphics_Zone_GetBoundingBox00(lua_State* tolua_S)
  18623. {
  18624. #ifndef TOLUA_RELEASE
  18625. tolua_Error tolua_err;
  18626. if (
  18627. !tolua_isusertype(tolua_S,1,"const Zone",0,&tolua_err) ||
  18628. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18629. )
  18630. goto tolua_lerror;
  18631. else
  18632. #endif
  18633. {
  18634. const Zone* self = (const Zone*) tolua_tousertype(tolua_S,1,0);
  18635. #ifndef TOLUA_RELEASE
  18636. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBoundingBox'", NULL);
  18637. #endif
  18638. {
  18639. const BoundingBox& tolua_ret = (const BoundingBox&) self->GetBoundingBox();
  18640. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const BoundingBox");
  18641. }
  18642. }
  18643. return 1;
  18644. #ifndef TOLUA_RELEASE
  18645. tolua_lerror:
  18646. tolua_error(tolua_S,"#ferror in function 'GetBoundingBox'.",&tolua_err);
  18647. return 0;
  18648. #endif
  18649. }
  18650. #endif //#ifndef TOLUA_DISABLE
  18651. /* method: GetInverseWorldTransform of class Zone */
  18652. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_GetInverseWorldTransform00
  18653. static int tolua_Graphics_Zone_GetInverseWorldTransform00(lua_State* tolua_S)
  18654. {
  18655. #ifndef TOLUA_RELEASE
  18656. tolua_Error tolua_err;
  18657. if (
  18658. !tolua_isusertype(tolua_S,1,"const Zone",0,&tolua_err) ||
  18659. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18660. )
  18661. goto tolua_lerror;
  18662. else
  18663. #endif
  18664. {
  18665. const Zone* self = (const Zone*) tolua_tousertype(tolua_S,1,0);
  18666. #ifndef TOLUA_RELEASE
  18667. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetInverseWorldTransform'", NULL);
  18668. #endif
  18669. {
  18670. const Matrix3x4& tolua_ret = (const Matrix3x4&) self->GetInverseWorldTransform();
  18671. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Matrix3x4");
  18672. }
  18673. }
  18674. return 1;
  18675. #ifndef TOLUA_RELEASE
  18676. tolua_lerror:
  18677. tolua_error(tolua_S,"#ferror in function 'GetInverseWorldTransform'.",&tolua_err);
  18678. return 0;
  18679. #endif
  18680. }
  18681. #endif //#ifndef TOLUA_DISABLE
  18682. /* method: GetAmbientColor of class Zone */
  18683. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_GetAmbientColor00
  18684. static int tolua_Graphics_Zone_GetAmbientColor00(lua_State* tolua_S)
  18685. {
  18686. #ifndef TOLUA_RELEASE
  18687. tolua_Error tolua_err;
  18688. if (
  18689. !tolua_isusertype(tolua_S,1,"const Zone",0,&tolua_err) ||
  18690. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18691. )
  18692. goto tolua_lerror;
  18693. else
  18694. #endif
  18695. {
  18696. const Zone* self = (const Zone*) tolua_tousertype(tolua_S,1,0);
  18697. #ifndef TOLUA_RELEASE
  18698. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAmbientColor'", NULL);
  18699. #endif
  18700. {
  18701. const Color& tolua_ret = (const Color&) self->GetAmbientColor();
  18702. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  18703. }
  18704. }
  18705. return 1;
  18706. #ifndef TOLUA_RELEASE
  18707. tolua_lerror:
  18708. tolua_error(tolua_S,"#ferror in function 'GetAmbientColor'.",&tolua_err);
  18709. return 0;
  18710. #endif
  18711. }
  18712. #endif //#ifndef TOLUA_DISABLE
  18713. /* method: GetAmbientStartColor of class Zone */
  18714. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_GetAmbientStartColor00
  18715. static int tolua_Graphics_Zone_GetAmbientStartColor00(lua_State* tolua_S)
  18716. {
  18717. #ifndef TOLUA_RELEASE
  18718. tolua_Error tolua_err;
  18719. if (
  18720. !tolua_isusertype(tolua_S,1,"Zone",0,&tolua_err) ||
  18721. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18722. )
  18723. goto tolua_lerror;
  18724. else
  18725. #endif
  18726. {
  18727. Zone* self = (Zone*) tolua_tousertype(tolua_S,1,0);
  18728. #ifndef TOLUA_RELEASE
  18729. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAmbientStartColor'", NULL);
  18730. #endif
  18731. {
  18732. const Color& tolua_ret = (const Color&) self->GetAmbientStartColor();
  18733. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  18734. }
  18735. }
  18736. return 1;
  18737. #ifndef TOLUA_RELEASE
  18738. tolua_lerror:
  18739. tolua_error(tolua_S,"#ferror in function 'GetAmbientStartColor'.",&tolua_err);
  18740. return 0;
  18741. #endif
  18742. }
  18743. #endif //#ifndef TOLUA_DISABLE
  18744. /* method: GetAmbientEndColor of class Zone */
  18745. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_GetAmbientEndColor00
  18746. static int tolua_Graphics_Zone_GetAmbientEndColor00(lua_State* tolua_S)
  18747. {
  18748. #ifndef TOLUA_RELEASE
  18749. tolua_Error tolua_err;
  18750. if (
  18751. !tolua_isusertype(tolua_S,1,"Zone",0,&tolua_err) ||
  18752. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18753. )
  18754. goto tolua_lerror;
  18755. else
  18756. #endif
  18757. {
  18758. Zone* self = (Zone*) tolua_tousertype(tolua_S,1,0);
  18759. #ifndef TOLUA_RELEASE
  18760. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAmbientEndColor'", NULL);
  18761. #endif
  18762. {
  18763. const Color& tolua_ret = (const Color&) self->GetAmbientEndColor();
  18764. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  18765. }
  18766. }
  18767. return 1;
  18768. #ifndef TOLUA_RELEASE
  18769. tolua_lerror:
  18770. tolua_error(tolua_S,"#ferror in function 'GetAmbientEndColor'.",&tolua_err);
  18771. return 0;
  18772. #endif
  18773. }
  18774. #endif //#ifndef TOLUA_DISABLE
  18775. /* method: GetFogColor of class Zone */
  18776. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_GetFogColor00
  18777. static int tolua_Graphics_Zone_GetFogColor00(lua_State* tolua_S)
  18778. {
  18779. #ifndef TOLUA_RELEASE
  18780. tolua_Error tolua_err;
  18781. if (
  18782. !tolua_isusertype(tolua_S,1,"const Zone",0,&tolua_err) ||
  18783. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18784. )
  18785. goto tolua_lerror;
  18786. else
  18787. #endif
  18788. {
  18789. const Zone* self = (const Zone*) tolua_tousertype(tolua_S,1,0);
  18790. #ifndef TOLUA_RELEASE
  18791. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFogColor'", NULL);
  18792. #endif
  18793. {
  18794. const Color& tolua_ret = (const Color&) self->GetFogColor();
  18795. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  18796. }
  18797. }
  18798. return 1;
  18799. #ifndef TOLUA_RELEASE
  18800. tolua_lerror:
  18801. tolua_error(tolua_S,"#ferror in function 'GetFogColor'.",&tolua_err);
  18802. return 0;
  18803. #endif
  18804. }
  18805. #endif //#ifndef TOLUA_DISABLE
  18806. /* method: GetFogStart of class Zone */
  18807. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_GetFogStart00
  18808. static int tolua_Graphics_Zone_GetFogStart00(lua_State* tolua_S)
  18809. {
  18810. #ifndef TOLUA_RELEASE
  18811. tolua_Error tolua_err;
  18812. if (
  18813. !tolua_isusertype(tolua_S,1,"const Zone",0,&tolua_err) ||
  18814. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18815. )
  18816. goto tolua_lerror;
  18817. else
  18818. #endif
  18819. {
  18820. const Zone* self = (const Zone*) tolua_tousertype(tolua_S,1,0);
  18821. #ifndef TOLUA_RELEASE
  18822. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFogStart'", NULL);
  18823. #endif
  18824. {
  18825. float tolua_ret = (float) self->GetFogStart();
  18826. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  18827. }
  18828. }
  18829. return 1;
  18830. #ifndef TOLUA_RELEASE
  18831. tolua_lerror:
  18832. tolua_error(tolua_S,"#ferror in function 'GetFogStart'.",&tolua_err);
  18833. return 0;
  18834. #endif
  18835. }
  18836. #endif //#ifndef TOLUA_DISABLE
  18837. /* method: GetFogEnd of class Zone */
  18838. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_GetFogEnd00
  18839. static int tolua_Graphics_Zone_GetFogEnd00(lua_State* tolua_S)
  18840. {
  18841. #ifndef TOLUA_RELEASE
  18842. tolua_Error tolua_err;
  18843. if (
  18844. !tolua_isusertype(tolua_S,1,"const Zone",0,&tolua_err) ||
  18845. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18846. )
  18847. goto tolua_lerror;
  18848. else
  18849. #endif
  18850. {
  18851. const Zone* self = (const Zone*) tolua_tousertype(tolua_S,1,0);
  18852. #ifndef TOLUA_RELEASE
  18853. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFogEnd'", NULL);
  18854. #endif
  18855. {
  18856. float tolua_ret = (float) self->GetFogEnd();
  18857. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  18858. }
  18859. }
  18860. return 1;
  18861. #ifndef TOLUA_RELEASE
  18862. tolua_lerror:
  18863. tolua_error(tolua_S,"#ferror in function 'GetFogEnd'.",&tolua_err);
  18864. return 0;
  18865. #endif
  18866. }
  18867. #endif //#ifndef TOLUA_DISABLE
  18868. /* method: GetPriority of class Zone */
  18869. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_GetPriority00
  18870. static int tolua_Graphics_Zone_GetPriority00(lua_State* tolua_S)
  18871. {
  18872. #ifndef TOLUA_RELEASE
  18873. tolua_Error tolua_err;
  18874. if (
  18875. !tolua_isusertype(tolua_S,1,"const Zone",0,&tolua_err) ||
  18876. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18877. )
  18878. goto tolua_lerror;
  18879. else
  18880. #endif
  18881. {
  18882. const Zone* self = (const Zone*) tolua_tousertype(tolua_S,1,0);
  18883. #ifndef TOLUA_RELEASE
  18884. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPriority'", NULL);
  18885. #endif
  18886. {
  18887. int tolua_ret = (int) self->GetPriority();
  18888. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  18889. }
  18890. }
  18891. return 1;
  18892. #ifndef TOLUA_RELEASE
  18893. tolua_lerror:
  18894. tolua_error(tolua_S,"#ferror in function 'GetPriority'.",&tolua_err);
  18895. return 0;
  18896. #endif
  18897. }
  18898. #endif //#ifndef TOLUA_DISABLE
  18899. /* method: GetOverride of class Zone */
  18900. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_GetOverride00
  18901. static int tolua_Graphics_Zone_GetOverride00(lua_State* tolua_S)
  18902. {
  18903. #ifndef TOLUA_RELEASE
  18904. tolua_Error tolua_err;
  18905. if (
  18906. !tolua_isusertype(tolua_S,1,"const Zone",0,&tolua_err) ||
  18907. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18908. )
  18909. goto tolua_lerror;
  18910. else
  18911. #endif
  18912. {
  18913. const Zone* self = (const Zone*) tolua_tousertype(tolua_S,1,0);
  18914. #ifndef TOLUA_RELEASE
  18915. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOverride'", NULL);
  18916. #endif
  18917. {
  18918. bool tolua_ret = (bool) self->GetOverride();
  18919. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  18920. }
  18921. }
  18922. return 1;
  18923. #ifndef TOLUA_RELEASE
  18924. tolua_lerror:
  18925. tolua_error(tolua_S,"#ferror in function 'GetOverride'.",&tolua_err);
  18926. return 0;
  18927. #endif
  18928. }
  18929. #endif //#ifndef TOLUA_DISABLE
  18930. /* method: GetAmbientGradient of class Zone */
  18931. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_GetAmbientGradient00
  18932. static int tolua_Graphics_Zone_GetAmbientGradient00(lua_State* tolua_S)
  18933. {
  18934. #ifndef TOLUA_RELEASE
  18935. tolua_Error tolua_err;
  18936. if (
  18937. !tolua_isusertype(tolua_S,1,"const Zone",0,&tolua_err) ||
  18938. !tolua_isnoobj(tolua_S,2,&tolua_err)
  18939. )
  18940. goto tolua_lerror;
  18941. else
  18942. #endif
  18943. {
  18944. const Zone* self = (const Zone*) tolua_tousertype(tolua_S,1,0);
  18945. #ifndef TOLUA_RELEASE
  18946. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAmbientGradient'", NULL);
  18947. #endif
  18948. {
  18949. bool tolua_ret = (bool) self->GetAmbientGradient();
  18950. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  18951. }
  18952. }
  18953. return 1;
  18954. #ifndef TOLUA_RELEASE
  18955. tolua_lerror:
  18956. tolua_error(tolua_S,"#ferror in function 'GetAmbientGradient'.",&tolua_err);
  18957. return 0;
  18958. #endif
  18959. }
  18960. #endif //#ifndef TOLUA_DISABLE
  18961. /* method: IsInside of class Zone */
  18962. #ifndef TOLUA_DISABLE_tolua_Graphics_Zone_IsInside00
  18963. static int tolua_Graphics_Zone_IsInside00(lua_State* tolua_S)
  18964. {
  18965. #ifndef TOLUA_RELEASE
  18966. tolua_Error tolua_err;
  18967. if (
  18968. !tolua_isusertype(tolua_S,1,"const Zone",0,&tolua_err) ||
  18969. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector3",0,&tolua_err)) ||
  18970. !tolua_isnoobj(tolua_S,3,&tolua_err)
  18971. )
  18972. goto tolua_lerror;
  18973. else
  18974. #endif
  18975. {
  18976. const Zone* self = (const Zone*) tolua_tousertype(tolua_S,1,0);
  18977. const Vector3* point = ((const Vector3*) tolua_tousertype(tolua_S,2,0));
  18978. #ifndef TOLUA_RELEASE
  18979. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsInside'", NULL);
  18980. #endif
  18981. {
  18982. bool tolua_ret = (bool) self->IsInside(*point);
  18983. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  18984. }
  18985. }
  18986. return 1;
  18987. #ifndef TOLUA_RELEASE
  18988. tolua_lerror:
  18989. tolua_error(tolua_S,"#ferror in function 'IsInside'.",&tolua_err);
  18990. return 0;
  18991. #endif
  18992. }
  18993. #endif //#ifndef TOLUA_DISABLE
  18994. /* Open function */
  18995. TOLUA_API int tolua_Graphics_open (lua_State* tolua_S)
  18996. {
  18997. tolua_open(tolua_S);
  18998. tolua_reg_types(tolua_S);
  18999. tolua_module(tolua_S,NULL,1);
  19000. tolua_beginmodule(tolua_S,NULL);
  19001. tolua_cclass(tolua_S,"AnimatedModel","AnimatedModel","StaticModel",NULL);
  19002. tolua_beginmodule(tolua_S,"AnimatedModel");
  19003. tolua_function(tolua_S,"SetModel",tolua_Graphics_AnimatedModel_SetModel00);
  19004. tolua_function(tolua_S,"AddAnimationState",tolua_Graphics_AnimatedModel_AddAnimationState00);
  19005. tolua_function(tolua_S,"RemoveAnimationState",tolua_Graphics_AnimatedModel_RemoveAnimationState00);
  19006. tolua_function(tolua_S,"RemoveAnimationState",tolua_Graphics_AnimatedModel_RemoveAnimationState01);
  19007. tolua_function(tolua_S,"RemoveAnimationState",tolua_Graphics_AnimatedModel_RemoveAnimationState02);
  19008. tolua_function(tolua_S,"RemoveAnimationState",tolua_Graphics_AnimatedModel_RemoveAnimationState03);
  19009. tolua_function(tolua_S,"RemoveAnimationState",tolua_Graphics_AnimatedModel_RemoveAnimationState04);
  19010. tolua_function(tolua_S,"RemoveAllAnimationStates",tolua_Graphics_AnimatedModel_RemoveAllAnimationStates00);
  19011. tolua_function(tolua_S,"SetAnimationLodBias",tolua_Graphics_AnimatedModel_SetAnimationLodBias00);
  19012. tolua_function(tolua_S,"SetInvisibleLodFactor",tolua_Graphics_AnimatedModel_SetInvisibleLodFactor00);
  19013. tolua_function(tolua_S,"SetMorphWeight",tolua_Graphics_AnimatedModel_SetMorphWeight00);
  19014. tolua_function(tolua_S,"SetMorphWeight",tolua_Graphics_AnimatedModel_SetMorphWeight01);
  19015. tolua_function(tolua_S,"SetMorphWeight",tolua_Graphics_AnimatedModel_SetMorphWeight02);
  19016. tolua_function(tolua_S,"ResetMorphWeights",tolua_Graphics_AnimatedModel_ResetMorphWeights00);
  19017. tolua_function(tolua_S,"GetSkeleton",tolua_Graphics_AnimatedModel_GetSkeleton00);
  19018. tolua_function(tolua_S,"GetNumAnimationStates",tolua_Graphics_AnimatedModel_GetNumAnimationStates00);
  19019. tolua_function(tolua_S,"GetAnimationState",tolua_Graphics_AnimatedModel_GetAnimationState00);
  19020. tolua_function(tolua_S,"GetAnimationState",tolua_Graphics_AnimatedModel_GetAnimationState01);
  19021. tolua_function(tolua_S,"GetAnimationState",tolua_Graphics_AnimatedModel_GetAnimationState02);
  19022. tolua_function(tolua_S,"GetAnimationState",tolua_Graphics_AnimatedModel_GetAnimationState03);
  19023. tolua_function(tolua_S,"GetAnimationState",tolua_Graphics_AnimatedModel_GetAnimationState04);
  19024. tolua_function(tolua_S,"GetAnimationLodBias",tolua_Graphics_AnimatedModel_GetAnimationLodBias00);
  19025. tolua_function(tolua_S,"GetInvisibleLodFactor",tolua_Graphics_AnimatedModel_GetInvisibleLodFactor00);
  19026. tolua_function(tolua_S,"GetNumMorphs",tolua_Graphics_AnimatedModel_GetNumMorphs00);
  19027. tolua_function(tolua_S,"GetMorphWeight",tolua_Graphics_AnimatedModel_GetMorphWeight00);
  19028. tolua_function(tolua_S,"GetMorphWeight",tolua_Graphics_AnimatedModel_GetMorphWeight01);
  19029. tolua_function(tolua_S,"GetMorphWeight",tolua_Graphics_AnimatedModel_GetMorphWeight02);
  19030. tolua_function(tolua_S,"IsMaster",tolua_Graphics_AnimatedModel_IsMaster00);
  19031. tolua_endmodule(tolua_S);
  19032. tolua_cclass(tolua_S,"Animation","Animation","Resource",NULL);
  19033. tolua_beginmodule(tolua_S,"Animation");
  19034. tolua_function(tolua_S,"GetAnimationName",tolua_Graphics_Animation_GetAnimationName00);
  19035. tolua_function(tolua_S,"GetAnimationNameHash",tolua_Graphics_Animation_GetAnimationNameHash00);
  19036. tolua_function(tolua_S,"GetLength",tolua_Graphics_Animation_GetLength00);
  19037. tolua_function(tolua_S,"GetNumTracks",tolua_Graphics_Animation_GetNumTracks00);
  19038. tolua_function(tolua_S,"GetTrack",tolua_Graphics_Animation_GetTrack00);
  19039. tolua_function(tolua_S,"GetTrack",tolua_Graphics_Animation_GetTrack01);
  19040. tolua_function(tolua_S,"GetTrack",tolua_Graphics_Animation_GetTrack02);
  19041. tolua_function(tolua_S,"GetNumTriggers",tolua_Graphics_Animation_GetNumTriggers00);
  19042. tolua_endmodule(tolua_S);
  19043. tolua_cclass(tolua_S,"AnimationController","AnimationController","Component",NULL);
  19044. tolua_beginmodule(tolua_S,"AnimationController");
  19045. tolua_function(tolua_S,"Play",tolua_Graphics_AnimationController_Play00);
  19046. tolua_function(tolua_S,"PlayExclusive",tolua_Graphics_AnimationController_PlayExclusive00);
  19047. tolua_function(tolua_S,"Stop",tolua_Graphics_AnimationController_Stop00);
  19048. tolua_function(tolua_S,"StopLayer",tolua_Graphics_AnimationController_StopLayer00);
  19049. tolua_function(tolua_S,"StopAll",tolua_Graphics_AnimationController_StopAll00);
  19050. tolua_function(tolua_S,"Fade",tolua_Graphics_AnimationController_Fade00);
  19051. tolua_function(tolua_S,"FadeOthers",tolua_Graphics_AnimationController_FadeOthers00);
  19052. tolua_function(tolua_S,"SetLayer",tolua_Graphics_AnimationController_SetLayer00);
  19053. tolua_function(tolua_S,"SetStartBone",tolua_Graphics_AnimationController_SetStartBone00);
  19054. tolua_function(tolua_S,"SetTime",tolua_Graphics_AnimationController_SetTime00);
  19055. tolua_function(tolua_S,"SetWeight",tolua_Graphics_AnimationController_SetWeight00);
  19056. tolua_function(tolua_S,"SetLooped",tolua_Graphics_AnimationController_SetLooped00);
  19057. tolua_function(tolua_S,"SetSpeed",tolua_Graphics_AnimationController_SetSpeed00);
  19058. tolua_function(tolua_S,"SetAutoFade",tolua_Graphics_AnimationController_SetAutoFade00);
  19059. tolua_function(tolua_S,"IsPlaying",tolua_Graphics_AnimationController_IsPlaying00);
  19060. tolua_function(tolua_S,"IsFadingIn",tolua_Graphics_AnimationController_IsFadingIn00);
  19061. tolua_function(tolua_S,"IsFadingOut",tolua_Graphics_AnimationController_IsFadingOut00);
  19062. tolua_function(tolua_S,"GetLayer",tolua_Graphics_AnimationController_GetLayer00);
  19063. tolua_function(tolua_S,"GetStartBone",tolua_Graphics_AnimationController_GetStartBone00);
  19064. tolua_function(tolua_S,"GetStartBoneName",tolua_Graphics_AnimationController_GetStartBoneName00);
  19065. tolua_function(tolua_S,"GetTime",tolua_Graphics_AnimationController_GetTime00);
  19066. tolua_function(tolua_S,"GetWeight",tolua_Graphics_AnimationController_GetWeight00);
  19067. tolua_function(tolua_S,"IsLooped",tolua_Graphics_AnimationController_IsLooped00);
  19068. tolua_function(tolua_S,"GetLength",tolua_Graphics_AnimationController_GetLength00);
  19069. tolua_function(tolua_S,"GetSpeed",tolua_Graphics_AnimationController_GetSpeed00);
  19070. tolua_function(tolua_S,"GetFadeTarget",tolua_Graphics_AnimationController_GetFadeTarget00);
  19071. tolua_function(tolua_S,"GetFadeTime",tolua_Graphics_AnimationController_GetFadeTime00);
  19072. tolua_function(tolua_S,"GetAutoFade",tolua_Graphics_AnimationController_GetAutoFade00);
  19073. tolua_endmodule(tolua_S);
  19074. #ifdef __cplusplus
  19075. tolua_cclass(tolua_S,"AnimationState","AnimationState","",tolua_collect_AnimationState);
  19076. #else
  19077. tolua_cclass(tolua_S,"AnimationState","AnimationState","",NULL);
  19078. #endif
  19079. tolua_beginmodule(tolua_S,"AnimationState");
  19080. tolua_function(tolua_S,"new",tolua_Graphics_AnimationState_new00);
  19081. tolua_function(tolua_S,"new_local",tolua_Graphics_AnimationState_new00_local);
  19082. tolua_function(tolua_S,".call",tolua_Graphics_AnimationState_new00_local);
  19083. tolua_function(tolua_S,"new",tolua_Graphics_AnimationState_new01);
  19084. tolua_function(tolua_S,"new_local",tolua_Graphics_AnimationState_new01_local);
  19085. tolua_function(tolua_S,".call",tolua_Graphics_AnimationState_new01_local);
  19086. tolua_function(tolua_S,"delete",tolua_Graphics_AnimationState_delete00);
  19087. tolua_function(tolua_S,"SetStartBone",tolua_Graphics_AnimationState_SetStartBone00);
  19088. tolua_function(tolua_S,"SetLooped",tolua_Graphics_AnimationState_SetLooped00);
  19089. tolua_function(tolua_S,"SetWeight",tolua_Graphics_AnimationState_SetWeight00);
  19090. tolua_function(tolua_S,"SetTime",tolua_Graphics_AnimationState_SetTime00);
  19091. tolua_function(tolua_S,"AddWeight",tolua_Graphics_AnimationState_AddWeight00);
  19092. tolua_function(tolua_S,"AddTime",tolua_Graphics_AnimationState_AddTime00);
  19093. tolua_function(tolua_S,"SetLayer",tolua_Graphics_AnimationState_SetLayer00);
  19094. tolua_function(tolua_S,"GetAnimation",tolua_Graphics_AnimationState_GetAnimation00);
  19095. tolua_function(tolua_S,"GetStartBone",tolua_Graphics_AnimationState_GetStartBone00);
  19096. tolua_function(tolua_S,"IsEnabled",tolua_Graphics_AnimationState_IsEnabled00);
  19097. tolua_function(tolua_S,"IsLooped",tolua_Graphics_AnimationState_IsLooped00);
  19098. tolua_function(tolua_S,"GetWeight",tolua_Graphics_AnimationState_GetWeight00);
  19099. tolua_function(tolua_S,"GetTime",tolua_Graphics_AnimationState_GetTime00);
  19100. tolua_function(tolua_S,"GetLength",tolua_Graphics_AnimationState_GetLength00);
  19101. tolua_function(tolua_S,"GetLayer",tolua_Graphics_AnimationState_GetLayer00);
  19102. tolua_function(tolua_S,"Apply",tolua_Graphics_AnimationState_Apply00);
  19103. tolua_endmodule(tolua_S);
  19104. tolua_cclass(tolua_S,"BillboardSet","BillboardSet","Drawable",NULL);
  19105. tolua_beginmodule(tolua_S,"BillboardSet");
  19106. tolua_function(tolua_S,"SetMaterial",tolua_Graphics_BillboardSet_SetMaterial00);
  19107. tolua_function(tolua_S,"SetNumBillboards",tolua_Graphics_BillboardSet_SetNumBillboards00);
  19108. tolua_function(tolua_S,"SetRelative",tolua_Graphics_BillboardSet_SetRelative00);
  19109. tolua_function(tolua_S,"SetScaled",tolua_Graphics_BillboardSet_SetScaled00);
  19110. tolua_function(tolua_S,"SetSorted",tolua_Graphics_BillboardSet_SetSorted00);
  19111. tolua_function(tolua_S,"SetAnimationLodBias",tolua_Graphics_BillboardSet_SetAnimationLodBias00);
  19112. tolua_function(tolua_S,"Commit",tolua_Graphics_BillboardSet_Commit00);
  19113. tolua_function(tolua_S,"GetMaterial",tolua_Graphics_BillboardSet_GetMaterial00);
  19114. tolua_function(tolua_S,"GetNumBillboards",tolua_Graphics_BillboardSet_GetNumBillboards00);
  19115. tolua_function(tolua_S,"IsRelative",tolua_Graphics_BillboardSet_IsRelative00);
  19116. tolua_function(tolua_S,"IsScaled",tolua_Graphics_BillboardSet_IsScaled00);
  19117. tolua_function(tolua_S,"IsSorted",tolua_Graphics_BillboardSet_IsSorted00);
  19118. tolua_function(tolua_S,"GetAnimationLodBias",tolua_Graphics_BillboardSet_GetAnimationLodBias00);
  19119. tolua_endmodule(tolua_S);
  19120. tolua_cclass(tolua_S,"Camera","Camera","Component",NULL);
  19121. tolua_beginmodule(tolua_S,"Camera");
  19122. tolua_function(tolua_S,"SetNearClip",tolua_Graphics_Camera_SetNearClip00);
  19123. tolua_function(tolua_S,"SetFarClip",tolua_Graphics_Camera_SetFarClip00);
  19124. tolua_function(tolua_S,"SetFov",tolua_Graphics_Camera_SetFov00);
  19125. tolua_function(tolua_S,"SetOrthoSize",tolua_Graphics_Camera_SetOrthoSize00);
  19126. tolua_function(tolua_S,"SetOrthoSize",tolua_Graphics_Camera_SetOrthoSize01);
  19127. tolua_function(tolua_S,"SetAspectRatio",tolua_Graphics_Camera_SetAspectRatio00);
  19128. tolua_function(tolua_S,"SetFillMode",tolua_Graphics_Camera_SetFillMode00);
  19129. tolua_function(tolua_S,"SetZoom",tolua_Graphics_Camera_SetZoom00);
  19130. tolua_function(tolua_S,"SetLodBias",tolua_Graphics_Camera_SetLodBias00);
  19131. tolua_function(tolua_S,"SetViewMask",tolua_Graphics_Camera_SetViewMask00);
  19132. tolua_function(tolua_S,"SetViewOverrideFlags",tolua_Graphics_Camera_SetViewOverrideFlags00);
  19133. tolua_function(tolua_S,"SetOrthographic",tolua_Graphics_Camera_SetOrthographic00);
  19134. tolua_function(tolua_S,"SetAutoAspectRatio",tolua_Graphics_Camera_SetAutoAspectRatio00);
  19135. tolua_function(tolua_S,"SetProjectionOffset",tolua_Graphics_Camera_SetProjectionOffset00);
  19136. tolua_function(tolua_S,"SetFlipVertical",tolua_Graphics_Camera_SetFlipVertical00);
  19137. tolua_function(tolua_S,"GetFarClip",tolua_Graphics_Camera_GetFarClip00);
  19138. tolua_function(tolua_S,"GetNearClip",tolua_Graphics_Camera_GetNearClip00);
  19139. tolua_function(tolua_S,"GetFov",tolua_Graphics_Camera_GetFov00);
  19140. tolua_function(tolua_S,"GetOrthoSize",tolua_Graphics_Camera_GetOrthoSize00);
  19141. tolua_function(tolua_S,"GetAspectRatio",tolua_Graphics_Camera_GetAspectRatio00);
  19142. tolua_function(tolua_S,"GetZoom",tolua_Graphics_Camera_GetZoom00);
  19143. tolua_function(tolua_S,"GetLodBias",tolua_Graphics_Camera_GetLodBias00);
  19144. tolua_function(tolua_S,"GetViewMask",tolua_Graphics_Camera_GetViewMask00);
  19145. tolua_function(tolua_S,"GetViewOverrideFlags",tolua_Graphics_Camera_GetViewOverrideFlags00);
  19146. tolua_function(tolua_S,"GetFillMode",tolua_Graphics_Camera_GetFillMode00);
  19147. tolua_function(tolua_S,"IsOrthographic",tolua_Graphics_Camera_IsOrthographic00);
  19148. tolua_function(tolua_S,"GetAutoAspectRatio",tolua_Graphics_Camera_GetAutoAspectRatio00);
  19149. tolua_function(tolua_S,"GetFrustum",tolua_Graphics_Camera_GetFrustum00);
  19150. tolua_function(tolua_S,"GetProjection",tolua_Graphics_Camera_GetProjection00);
  19151. tolua_function(tolua_S,"GetProjection",tolua_Graphics_Camera_GetProjection01);
  19152. tolua_function(tolua_S,"GetView",tolua_Graphics_Camera_GetView00);
  19153. tolua_function(tolua_S,"GetFrustumSize",tolua_Graphics_Camera_GetFrustumSize00);
  19154. tolua_function(tolua_S,"GetHalfViewSize",tolua_Graphics_Camera_GetHalfViewSize00);
  19155. tolua_function(tolua_S,"GetSplitFrustum",tolua_Graphics_Camera_GetSplitFrustum00);
  19156. tolua_function(tolua_S,"GetViewSpaceFrustum",tolua_Graphics_Camera_GetViewSpaceFrustum00);
  19157. tolua_function(tolua_S,"GetViewSpaceSplitFrustum",tolua_Graphics_Camera_GetViewSpaceSplitFrustum00);
  19158. tolua_function(tolua_S,"GetScreenRay",tolua_Graphics_Camera_GetScreenRay00);
  19159. tolua_function(tolua_S,"WorldToScreenPoint",tolua_Graphics_Camera_WorldToScreenPoint00);
  19160. tolua_function(tolua_S,"ScreenToWorldPoint",tolua_Graphics_Camera_ScreenToWorldPoint00);
  19161. tolua_function(tolua_S,"GetForwardVector",tolua_Graphics_Camera_GetForwardVector00);
  19162. tolua_function(tolua_S,"GetRightVector",tolua_Graphics_Camera_GetRightVector00);
  19163. tolua_function(tolua_S,"GetUpVector",tolua_Graphics_Camera_GetUpVector00);
  19164. tolua_function(tolua_S,"GetProjectionOffset",tolua_Graphics_Camera_GetProjectionOffset00);
  19165. tolua_function(tolua_S,"GetFlipVertical",tolua_Graphics_Camera_GetFlipVertical00);
  19166. tolua_function(tolua_S,"GetDistance",tolua_Graphics_Camera_GetDistance00);
  19167. tolua_function(tolua_S,"GetDistanceSquared",tolua_Graphics_Camera_GetDistanceSquared00);
  19168. tolua_function(tolua_S,"GetLodDistance",tolua_Graphics_Camera_GetLodDistance00);
  19169. tolua_function(tolua_S,"IsProjectionValid",tolua_Graphics_Camera_IsProjectionValid00);
  19170. tolua_endmodule(tolua_S);
  19171. tolua_cclass(tolua_S,"DebugRenderer","DebugRenderer","Component",NULL);
  19172. tolua_beginmodule(tolua_S,"DebugRenderer");
  19173. tolua_function(tolua_S,"AddLine",tolua_Graphics_DebugRenderer_AddLine00);
  19174. tolua_function(tolua_S,"AddLine",tolua_Graphics_DebugRenderer_AddLine01);
  19175. tolua_function(tolua_S,"AddNode",tolua_Graphics_DebugRenderer_AddNode00);
  19176. tolua_function(tolua_S,"AddBoundingBox",tolua_Graphics_DebugRenderer_AddBoundingBox00);
  19177. tolua_function(tolua_S,"AddBoundingBox",tolua_Graphics_DebugRenderer_AddBoundingBox01);
  19178. tolua_function(tolua_S,"AddFrustum",tolua_Graphics_DebugRenderer_AddFrustum00);
  19179. tolua_function(tolua_S,"AddPolyhedron",tolua_Graphics_DebugRenderer_AddPolyhedron00);
  19180. tolua_function(tolua_S,"AddSphere",tolua_Graphics_DebugRenderer_AddSphere00);
  19181. tolua_function(tolua_S,"AddSkeleton",tolua_Graphics_DebugRenderer_AddSkeleton00);
  19182. tolua_endmodule(tolua_S);
  19183. tolua_function(tolua_S,"GetDebugRenderer",tolua_Graphics_GetDebugRenderer00);
  19184. tolua_cclass(tolua_S,"DecalSet","DecalSet","Drawable",NULL);
  19185. tolua_beginmodule(tolua_S,"DecalSet");
  19186. tolua_function(tolua_S,"SetMaterial",tolua_Graphics_DecalSet_SetMaterial00);
  19187. tolua_function(tolua_S,"SetMaxVertices",tolua_Graphics_DecalSet_SetMaxVertices00);
  19188. tolua_function(tolua_S,"SetMaxIndices",tolua_Graphics_DecalSet_SetMaxIndices00);
  19189. tolua_function(tolua_S,"AddDecal",tolua_Graphics_DecalSet_AddDecal00);
  19190. tolua_function(tolua_S,"RemoveDecals",tolua_Graphics_DecalSet_RemoveDecals00);
  19191. tolua_function(tolua_S,"RemoveAllDecals",tolua_Graphics_DecalSet_RemoveAllDecals00);
  19192. tolua_function(tolua_S,"GetMaterial",tolua_Graphics_DecalSet_GetMaterial00);
  19193. tolua_function(tolua_S,"GetNumDecals",tolua_Graphics_DecalSet_GetNumDecals00);
  19194. tolua_function(tolua_S,"GetNumVertices",tolua_Graphics_DecalSet_GetNumVertices00);
  19195. tolua_function(tolua_S,"GetNumIndices",tolua_Graphics_DecalSet_GetNumIndices00);
  19196. tolua_function(tolua_S,"GetMaxVertices",tolua_Graphics_DecalSet_GetMaxVertices00);
  19197. tolua_function(tolua_S,"GetMaxIndices",tolua_Graphics_DecalSet_GetMaxIndices00);
  19198. tolua_endmodule(tolua_S);
  19199. tolua_cclass(tolua_S,"Drawable","Drawable","Component",NULL);
  19200. tolua_beginmodule(tolua_S,"Drawable");
  19201. tolua_function(tolua_S,"SetDrawDistance",tolua_Graphics_Drawable_SetDrawDistance00);
  19202. tolua_function(tolua_S,"SetShadowDistance",tolua_Graphics_Drawable_SetShadowDistance00);
  19203. tolua_function(tolua_S,"SetLodBias",tolua_Graphics_Drawable_SetLodBias00);
  19204. tolua_function(tolua_S,"SetViewMask",tolua_Graphics_Drawable_SetViewMask00);
  19205. tolua_function(tolua_S,"SetLightMask",tolua_Graphics_Drawable_SetLightMask00);
  19206. tolua_function(tolua_S,"SetShadowMask",tolua_Graphics_Drawable_SetShadowMask00);
  19207. tolua_function(tolua_S,"SetZoneMask",tolua_Graphics_Drawable_SetZoneMask00);
  19208. tolua_function(tolua_S,"SetMaxLights",tolua_Graphics_Drawable_SetMaxLights00);
  19209. tolua_function(tolua_S,"SetCastShadows",tolua_Graphics_Drawable_SetCastShadows00);
  19210. tolua_function(tolua_S,"SetOccluder",tolua_Graphics_Drawable_SetOccluder00);
  19211. tolua_function(tolua_S,"SetOccludee",tolua_Graphics_Drawable_SetOccludee00);
  19212. tolua_function(tolua_S,"MarkForUpdate",tolua_Graphics_Drawable_MarkForUpdate00);
  19213. tolua_function(tolua_S,"GetWorldBoundingBox",tolua_Graphics_Drawable_GetWorldBoundingBox00);
  19214. tolua_function(tolua_S,"GetDrawableFlags",tolua_Graphics_Drawable_GetDrawableFlags00);
  19215. tolua_function(tolua_S,"GetDrawDistance",tolua_Graphics_Drawable_GetDrawDistance00);
  19216. tolua_function(tolua_S,"GetShadowDistance",tolua_Graphics_Drawable_GetShadowDistance00);
  19217. tolua_function(tolua_S,"GetLodBias",tolua_Graphics_Drawable_GetLodBias00);
  19218. tolua_function(tolua_S,"GetViewMask",tolua_Graphics_Drawable_GetViewMask00);
  19219. tolua_function(tolua_S,"GetLightMask",tolua_Graphics_Drawable_GetLightMask00);
  19220. tolua_function(tolua_S,"GetShadowMask",tolua_Graphics_Drawable_GetShadowMask00);
  19221. tolua_function(tolua_S,"GetZoneMask",tolua_Graphics_Drawable_GetZoneMask00);
  19222. tolua_function(tolua_S,"GetMaxLights",tolua_Graphics_Drawable_GetMaxLights00);
  19223. tolua_function(tolua_S,"GetCastShadows",tolua_Graphics_Drawable_GetCastShadows00);
  19224. tolua_function(tolua_S,"IsOccluder",tolua_Graphics_Drawable_IsOccluder00);
  19225. tolua_function(tolua_S,"IsOccludee",tolua_Graphics_Drawable_IsOccludee00);
  19226. tolua_function(tolua_S,"SetZone",tolua_Graphics_Drawable_SetZone00);
  19227. tolua_function(tolua_S,"SetSortValue",tolua_Graphics_Drawable_SetSortValue00);
  19228. tolua_function(tolua_S,"SetMinMaxZ",tolua_Graphics_Drawable_SetMinMaxZ00);
  19229. tolua_function(tolua_S,"MarkInView",tolua_Graphics_Drawable_MarkInView00);
  19230. tolua_function(tolua_S,"ClearLights",tolua_Graphics_Drawable_ClearLights00);
  19231. tolua_function(tolua_S,"AddLight",tolua_Graphics_Drawable_AddLight00);
  19232. tolua_function(tolua_S,"AddVertexLight",tolua_Graphics_Drawable_AddVertexLight00);
  19233. tolua_function(tolua_S,"LimitLights",tolua_Graphics_Drawable_LimitLights00);
  19234. tolua_function(tolua_S,"LimitVertexLights",tolua_Graphics_Drawable_LimitVertexLights00);
  19235. tolua_function(tolua_S,"SetBasePass",tolua_Graphics_Drawable_SetBasePass00);
  19236. tolua_function(tolua_S,"GetOctant",tolua_Graphics_Drawable_GetOctant00);
  19237. tolua_function(tolua_S,"GetZone",tolua_Graphics_Drawable_GetZone00);
  19238. tolua_function(tolua_S,"GetLastZone",tolua_Graphics_Drawable_GetLastZone00);
  19239. tolua_function(tolua_S,"IsZoneDirty",tolua_Graphics_Drawable_IsZoneDirty00);
  19240. tolua_function(tolua_S,"GetDistance",tolua_Graphics_Drawable_GetDistance00);
  19241. tolua_function(tolua_S,"GetLodDistance",tolua_Graphics_Drawable_GetLodDistance00);
  19242. tolua_function(tolua_S,"GetSortValue",tolua_Graphics_Drawable_GetSortValue00);
  19243. tolua_function(tolua_S,"IsInView",tolua_Graphics_Drawable_IsInView00);
  19244. tolua_function(tolua_S,"IsInView",tolua_Graphics_Drawable_IsInView01);
  19245. tolua_function(tolua_S,"HasBasePass",tolua_Graphics_Drawable_HasBasePass00);
  19246. tolua_function(tolua_S,"GetFirstLight",tolua_Graphics_Drawable_GetFirstLight00);
  19247. tolua_function(tolua_S,"GetMinZ",tolua_Graphics_Drawable_GetMinZ00);
  19248. tolua_function(tolua_S,"GetMaxZ",tolua_Graphics_Drawable_GetMaxZ00);
  19249. tolua_endmodule(tolua_S);
  19250. tolua_cclass(tolua_S,"Graphics","Graphics","Object",NULL);
  19251. tolua_beginmodule(tolua_S,"Graphics");
  19252. tolua_function(tolua_S,"SetWindowTitle",tolua_Graphics_Graphics_SetWindowTitle00);
  19253. tolua_function(tolua_S,"SetSRGB",tolua_Graphics_Graphics_SetSRGB00);
  19254. tolua_function(tolua_S,"ToggleFullscreen",tolua_Graphics_Graphics_ToggleFullscreen00);
  19255. tolua_function(tolua_S,"TakeScreenShot",tolua_Graphics_Graphics_TakeScreenShot00);
  19256. tolua_function(tolua_S,"IsInitialized",tolua_Graphics_Graphics_IsInitialized00);
  19257. tolua_function(tolua_S,"GetWidth",tolua_Graphics_Graphics_GetWidth00);
  19258. tolua_function(tolua_S,"GetHeight",tolua_Graphics_Graphics_GetHeight00);
  19259. tolua_function(tolua_S,"GetMultiSample",tolua_Graphics_Graphics_GetMultiSample00);
  19260. tolua_function(tolua_S,"GetFullscreen",tolua_Graphics_Graphics_GetFullscreen00);
  19261. tolua_function(tolua_S,"GetResizable",tolua_Graphics_Graphics_GetResizable00);
  19262. tolua_function(tolua_S,"GetVSync",tolua_Graphics_Graphics_GetVSync00);
  19263. tolua_function(tolua_S,"GetTripleBuffer",tolua_Graphics_Graphics_GetTripleBuffer00);
  19264. tolua_function(tolua_S,"GetSRGB",tolua_Graphics_Graphics_GetSRGB00);
  19265. tolua_endmodule(tolua_S);
  19266. tolua_function(tolua_S,"GetGraphics",tolua_Graphics_GetGraphics00);
  19267. tolua_constant(tolua_S,"RENDER_FORWARD",RENDER_FORWARD);
  19268. tolua_constant(tolua_S,"RENDER_PREPASS",RENDER_PREPASS);
  19269. tolua_constant(tolua_S,"RENDER_DEFERRED",RENDER_DEFERRED);
  19270. tolua_constant(tolua_S,"TRIANGLE_LIST",TRIANGLE_LIST);
  19271. tolua_constant(tolua_S,"LINE_LIST",LINE_LIST);
  19272. tolua_constant(tolua_S,"GEOM_STATIC",GEOM_STATIC);
  19273. tolua_constant(tolua_S,"GEOM_SKINNED",GEOM_SKINNED);
  19274. tolua_constant(tolua_S,"GEOM_INSTANCED",GEOM_INSTANCED);
  19275. tolua_constant(tolua_S,"GEOM_BILLBOARD",GEOM_BILLBOARD);
  19276. tolua_constant(tolua_S,"GEOM_STATIC_NOINSTANCING",GEOM_STATIC_NOINSTANCING);
  19277. tolua_constant(tolua_S,"MAX_GEOMETRYTYPES",MAX_GEOMETRYTYPES);
  19278. tolua_constant(tolua_S,"BLEND_REPLACE",BLEND_REPLACE);
  19279. tolua_constant(tolua_S,"BLEND_ADD",BLEND_ADD);
  19280. tolua_constant(tolua_S,"BLEND_MULTIPLY",BLEND_MULTIPLY);
  19281. tolua_constant(tolua_S,"BLEND_ALPHA",BLEND_ALPHA);
  19282. tolua_constant(tolua_S,"BLEND_ADDALPHA",BLEND_ADDALPHA);
  19283. tolua_constant(tolua_S,"BLEND_PREMULALPHA",BLEND_PREMULALPHA);
  19284. tolua_constant(tolua_S,"BLEND_INVDESTALPHA",BLEND_INVDESTALPHA);
  19285. tolua_constant(tolua_S,"MAX_BLENDMODES",MAX_BLENDMODES);
  19286. tolua_constant(tolua_S,"CMP_ALWAYS",CMP_ALWAYS);
  19287. tolua_constant(tolua_S,"CMP_EQUAL",CMP_EQUAL);
  19288. tolua_constant(tolua_S,"CMP_NOTEQUAL",CMP_NOTEQUAL);
  19289. tolua_constant(tolua_S,"CMP_LESS",CMP_LESS);
  19290. tolua_constant(tolua_S,"CMP_LESSEQUAL",CMP_LESSEQUAL);
  19291. tolua_constant(tolua_S,"CMP_GREATER",CMP_GREATER);
  19292. tolua_constant(tolua_S,"CMP_GREATEREQUAL",CMP_GREATEREQUAL);
  19293. tolua_constant(tolua_S,"MAX_COMPAREMODES",MAX_COMPAREMODES);
  19294. tolua_constant(tolua_S,"CULL_NONE",CULL_NONE);
  19295. tolua_constant(tolua_S,"CULL_CCW",CULL_CCW);
  19296. tolua_constant(tolua_S,"CULL_CW",CULL_CW);
  19297. tolua_constant(tolua_S,"MAX_CULLMODES",MAX_CULLMODES);
  19298. tolua_constant(tolua_S,"FILL_SOLID",FILL_SOLID);
  19299. tolua_constant(tolua_S,"FILL_WIREFRAME",FILL_WIREFRAME);
  19300. tolua_constant(tolua_S,"FILL_POINT",FILL_POINT);
  19301. tolua_constant(tolua_S,"OP_KEEP",OP_KEEP);
  19302. tolua_constant(tolua_S,"OP_ZERO",OP_ZERO);
  19303. tolua_constant(tolua_S,"OP_REF",OP_REF);
  19304. tolua_constant(tolua_S,"OP_INCR",OP_INCR);
  19305. tolua_constant(tolua_S,"OP_DECR",OP_DECR);
  19306. tolua_constant(tolua_S,"LOCK_NONE",LOCK_NONE);
  19307. tolua_constant(tolua_S,"LOCK_HARDWARE",LOCK_HARDWARE);
  19308. tolua_constant(tolua_S,"LOCK_SHADOW",LOCK_SHADOW);
  19309. tolua_constant(tolua_S,"LOCK_SCRATCH",LOCK_SCRATCH);
  19310. tolua_constant(tolua_S,"ELEMENT_POSITION",ELEMENT_POSITION);
  19311. tolua_constant(tolua_S,"ELEMENT_NORMAL",ELEMENT_NORMAL);
  19312. tolua_constant(tolua_S,"ELEMENT_COLOR",ELEMENT_COLOR);
  19313. tolua_constant(tolua_S,"ELEMENT_TEXCOORD1",ELEMENT_TEXCOORD1);
  19314. tolua_constant(tolua_S,"ELEMENT_TEXCOORD2",ELEMENT_TEXCOORD2);
  19315. tolua_constant(tolua_S,"ELEMENT_CUBETEXCOORD1",ELEMENT_CUBETEXCOORD1);
  19316. tolua_constant(tolua_S,"ELEMENT_CUBETEXCOORD2",ELEMENT_CUBETEXCOORD2);
  19317. tolua_constant(tolua_S,"ELEMENT_TANGENT",ELEMENT_TANGENT);
  19318. tolua_constant(tolua_S,"ELEMENT_BLENDWEIGHTS",ELEMENT_BLENDWEIGHTS);
  19319. tolua_constant(tolua_S,"ELEMENT_BLENDINDICES",ELEMENT_BLENDINDICES);
  19320. tolua_constant(tolua_S,"ELEMENT_INSTANCEMATRIX1",ELEMENT_INSTANCEMATRIX1);
  19321. tolua_constant(tolua_S,"ELEMENT_INSTANCEMATRIX2",ELEMENT_INSTANCEMATRIX2);
  19322. tolua_constant(tolua_S,"ELEMENT_INSTANCEMATRIX3",ELEMENT_INSTANCEMATRIX3);
  19323. tolua_constant(tolua_S,"MAX_VERTEX_ELEMENTS",MAX_VERTEX_ELEMENTS);
  19324. tolua_constant(tolua_S,"FILTER_NEAREST",FILTER_NEAREST);
  19325. tolua_constant(tolua_S,"FILTER_BILINEAR",FILTER_BILINEAR);
  19326. tolua_constant(tolua_S,"FILTER_TRILINEAR",FILTER_TRILINEAR);
  19327. tolua_constant(tolua_S,"FILTER_ANISOTROPIC",FILTER_ANISOTROPIC);
  19328. tolua_constant(tolua_S,"FILTER_DEFAULT",FILTER_DEFAULT);
  19329. tolua_constant(tolua_S,"MAX_FILTERMODES",MAX_FILTERMODES);
  19330. tolua_constant(tolua_S,"ADDRESS_WRAP",ADDRESS_WRAP);
  19331. tolua_constant(tolua_S,"ADDRESS_MIRROR",ADDRESS_MIRROR);
  19332. tolua_constant(tolua_S,"ADDRESS_CLAMP",ADDRESS_CLAMP);
  19333. tolua_constant(tolua_S,"ADDRESS_BORDER",ADDRESS_BORDER);
  19334. tolua_constant(tolua_S,"MAX_ADDRESSMODES",MAX_ADDRESSMODES);
  19335. tolua_constant(tolua_S,"COORD_U",COORD_U);
  19336. tolua_constant(tolua_S,"COORD_V",COORD_V);
  19337. tolua_constant(tolua_S,"COORD_W",COORD_W);
  19338. tolua_constant(tolua_S,"MAX_COORDS",MAX_COORDS);
  19339. tolua_constant(tolua_S,"TEXTURE_STATIC",TEXTURE_STATIC);
  19340. tolua_constant(tolua_S,"TEXTURE_DYNAMIC",TEXTURE_DYNAMIC);
  19341. tolua_constant(tolua_S,"TEXTURE_RENDERTARGET",TEXTURE_RENDERTARGET);
  19342. tolua_constant(tolua_S,"TEXTURE_DEPTHSTENCIL",TEXTURE_DEPTHSTENCIL);
  19343. tolua_constant(tolua_S,"FACE_POSITIVE_X",FACE_POSITIVE_X);
  19344. tolua_constant(tolua_S,"FACE_NEGATIVE_X",FACE_NEGATIVE_X);
  19345. tolua_constant(tolua_S,"FACE_POSITIVE_Y",FACE_POSITIVE_Y);
  19346. tolua_constant(tolua_S,"FACE_NEGATIVE_Y",FACE_NEGATIVE_Y);
  19347. tolua_constant(tolua_S,"FACE_POSITIVE_Z",FACE_POSITIVE_Z);
  19348. tolua_constant(tolua_S,"FACE_NEGATIVE_Z",FACE_NEGATIVE_Z);
  19349. tolua_constant(tolua_S,"MAX_CUBEMAP_FACES",MAX_CUBEMAP_FACES);
  19350. tolua_constant(tolua_S,"SURFACE_MANUALUPDATE",SURFACE_MANUALUPDATE);
  19351. tolua_constant(tolua_S,"SURFACE_UPDATEVISIBLE",SURFACE_UPDATEVISIBLE);
  19352. tolua_constant(tolua_S,"SURFACE_UPDATEALWAYS",SURFACE_UPDATEALWAYS);
  19353. tolua_constant(tolua_S,"VS",VS);
  19354. tolua_constant(tolua_S,"PS",PS);
  19355. tolua_constant(tolua_S,"TU_DIFFUSE",TU_DIFFUSE);
  19356. tolua_constant(tolua_S,"TU_ALBEDOBUFFER",TU_ALBEDOBUFFER);
  19357. tolua_constant(tolua_S,"TU_NORMAL",TU_NORMAL);
  19358. tolua_constant(tolua_S,"TU_NORMALBUFFER",TU_NORMALBUFFER);
  19359. tolua_constant(tolua_S,"TU_SPECULAR",TU_SPECULAR);
  19360. tolua_constant(tolua_S,"TU_EMISSIVE",TU_EMISSIVE);
  19361. tolua_constant(tolua_S,"TU_ENVIRONMENT",TU_ENVIRONMENT);
  19362. tolua_constant(tolua_S,"MAX_MATERIAL_TEXTURE_UNITS",MAX_MATERIAL_TEXTURE_UNITS);
  19363. tolua_constant(tolua_S,"TU_LIGHTRAMP",TU_LIGHTRAMP);
  19364. tolua_constant(tolua_S,"TU_LIGHTSHAPE",TU_LIGHTSHAPE);
  19365. tolua_constant(tolua_S,"TU_SHADOWMAP",TU_SHADOWMAP);
  19366. tolua_constant(tolua_S,"TU_FACESELECT",TU_FACESELECT);
  19367. tolua_constant(tolua_S,"TU_INDIRECTION",TU_INDIRECTION);
  19368. tolua_constant(tolua_S,"TU_DEPTHBUFFER",TU_DEPTHBUFFER);
  19369. tolua_constant(tolua_S,"TU_LIGHTBUFFER",TU_LIGHTBUFFER);
  19370. tolua_constant(tolua_S,"MAX_TEXTURE_UNITS",MAX_TEXTURE_UNITS);
  19371. tolua_constant(tolua_S,"SP_FRAME",SP_FRAME);
  19372. tolua_constant(tolua_S,"SP_CAMERA",SP_CAMERA);
  19373. tolua_constant(tolua_S,"SP_VIEWPORT",SP_VIEWPORT);
  19374. tolua_constant(tolua_S,"SP_ZONE",SP_ZONE);
  19375. tolua_constant(tolua_S,"SP_LIGHT",SP_LIGHT);
  19376. tolua_constant(tolua_S,"SP_VERTEXLIGHTS",SP_VERTEXLIGHTS);
  19377. tolua_constant(tolua_S,"SP_MATERIAL",SP_MATERIAL);
  19378. tolua_constant(tolua_S,"SP_OBJECTTRANSFORM",SP_OBJECTTRANSFORM);
  19379. tolua_constant(tolua_S,"SP_OBJECTDATA",SP_OBJECTDATA);
  19380. tolua_constant(tolua_S,"MAX_SHADER_PARAMETER_GROUPS",MAX_SHADER_PARAMETER_GROUPS);
  19381. tolua_variable(tolua_S,"QUALITY_LOW",tolua_get_QUALITY_LOW,NULL);
  19382. tolua_variable(tolua_S,"QUALITY_MEDIUM",tolua_get_QUALITY_MEDIUM,NULL);
  19383. tolua_variable(tolua_S,"QUALITY_HIGH",tolua_get_QUALITY_HIGH,NULL);
  19384. tolua_variable(tolua_S,"QUALITY_MAX",tolua_get_QUALITY_MAX,NULL);
  19385. tolua_variable(tolua_S,"SHADOWQUALITY_LOW_16BIT",tolua_get_SHADOWQUALITY_LOW_16BIT,NULL);
  19386. tolua_variable(tolua_S,"SHADOWQUALITY_LOW_24BIT",tolua_get_SHADOWQUALITY_LOW_24BIT,NULL);
  19387. tolua_variable(tolua_S,"SHADOWQUALITY_HIGH_16BIT",tolua_get_SHADOWQUALITY_HIGH_16BIT,NULL);
  19388. tolua_variable(tolua_S,"SHADOWQUALITY_HIGH_24BIT",tolua_get_SHADOWQUALITY_HIGH_24BIT,NULL);
  19389. tolua_variable(tolua_S,"CLEAR_COLOR",tolua_get_CLEAR_COLOR,NULL);
  19390. tolua_variable(tolua_S,"CLEAR_DEPTH",tolua_get_CLEAR_DEPTH,NULL);
  19391. tolua_variable(tolua_S,"CLEAR_STENCIL",tolua_get_CLEAR_STENCIL,NULL);
  19392. tolua_constant(tolua_S,"LIGHT_DIRECTIONAL",LIGHT_DIRECTIONAL);
  19393. tolua_constant(tolua_S,"LIGHT_SPOT",LIGHT_SPOT);
  19394. tolua_constant(tolua_S,"LIGHT_POINT",LIGHT_POINT);
  19395. tolua_cclass(tolua_S,"Light","Light","Drawable",NULL);
  19396. tolua_beginmodule(tolua_S,"Light");
  19397. tolua_function(tolua_S,"SetLightType",tolua_Graphics_Light_SetLightType00);
  19398. tolua_function(tolua_S,"SetPerVertex",tolua_Graphics_Light_SetPerVertex00);
  19399. tolua_function(tolua_S,"SetColor",tolua_Graphics_Light_SetColor00);
  19400. tolua_function(tolua_S,"SetSpecularIntensity",tolua_Graphics_Light_SetSpecularIntensity00);
  19401. tolua_function(tolua_S,"SetRange",tolua_Graphics_Light_SetRange00);
  19402. tolua_function(tolua_S,"SetFov",tolua_Graphics_Light_SetFov00);
  19403. tolua_function(tolua_S,"SetAspectRatio",tolua_Graphics_Light_SetAspectRatio00);
  19404. tolua_function(tolua_S,"SetFadeDistance",tolua_Graphics_Light_SetFadeDistance00);
  19405. tolua_function(tolua_S,"SetShadowFadeDistance",tolua_Graphics_Light_SetShadowFadeDistance00);
  19406. tolua_function(tolua_S,"SetShadowBias",tolua_Graphics_Light_SetShadowBias00);
  19407. tolua_function(tolua_S,"SetShadowCascade",tolua_Graphics_Light_SetShadowCascade00);
  19408. tolua_function(tolua_S,"SetShadowFocus",tolua_Graphics_Light_SetShadowFocus00);
  19409. tolua_function(tolua_S,"SetShadowIntensity",tolua_Graphics_Light_SetShadowIntensity00);
  19410. tolua_function(tolua_S,"SetShadowResolution",tolua_Graphics_Light_SetShadowResolution00);
  19411. tolua_function(tolua_S,"SetShadowNearFarRatio",tolua_Graphics_Light_SetShadowNearFarRatio00);
  19412. tolua_function(tolua_S,"SetRampTexture",tolua_Graphics_Light_SetRampTexture00);
  19413. tolua_function(tolua_S,"SetShapeTexture",tolua_Graphics_Light_SetShapeTexture00);
  19414. tolua_function(tolua_S,"GetLightType",tolua_Graphics_Light_GetLightType00);
  19415. tolua_function(tolua_S,"GetPerVertex",tolua_Graphics_Light_GetPerVertex00);
  19416. tolua_function(tolua_S,"GetColor",tolua_Graphics_Light_GetColor00);
  19417. tolua_function(tolua_S,"GetSpecularIntensity",tolua_Graphics_Light_GetSpecularIntensity00);
  19418. tolua_function(tolua_S,"GetRange",tolua_Graphics_Light_GetRange00);
  19419. tolua_function(tolua_S,"GetFov",tolua_Graphics_Light_GetFov00);
  19420. tolua_function(tolua_S,"GetAspectRatio",tolua_Graphics_Light_GetAspectRatio00);
  19421. tolua_function(tolua_S,"GetFadeDistance",tolua_Graphics_Light_GetFadeDistance00);
  19422. tolua_function(tolua_S,"GetShadowFadeDistance",tolua_Graphics_Light_GetShadowFadeDistance00);
  19423. tolua_function(tolua_S,"GetShadowBias",tolua_Graphics_Light_GetShadowBias00);
  19424. tolua_function(tolua_S,"GetShadowCascade",tolua_Graphics_Light_GetShadowCascade00);
  19425. tolua_function(tolua_S,"GetShadowFocus",tolua_Graphics_Light_GetShadowFocus00);
  19426. tolua_function(tolua_S,"GetShadowIntensity",tolua_Graphics_Light_GetShadowIntensity00);
  19427. tolua_function(tolua_S,"GetShadowResolution",tolua_Graphics_Light_GetShadowResolution00);
  19428. tolua_function(tolua_S,"GetShadowNearFarRatio",tolua_Graphics_Light_GetShadowNearFarRatio00);
  19429. tolua_function(tolua_S,"GetRampTexture",tolua_Graphics_Light_GetRampTexture00);
  19430. tolua_function(tolua_S,"GetShapeTexture",tolua_Graphics_Light_GetShapeTexture00);
  19431. tolua_function(tolua_S,"GetFrustum",tolua_Graphics_Light_GetFrustum00);
  19432. tolua_endmodule(tolua_S);
  19433. tolua_cclass(tolua_S,"Material","Material","Resource",NULL);
  19434. tolua_beginmodule(tolua_S,"Material");
  19435. tolua_function(tolua_S,"GetNumTechniques",tolua_Graphics_Material_GetNumTechniques00);
  19436. tolua_function(tolua_S,"GetTechniqueEntry",tolua_Graphics_Material_GetTechniqueEntry00);
  19437. tolua_function(tolua_S,"GetTechnique",tolua_Graphics_Material_GetTechnique00);
  19438. tolua_function(tolua_S,"GetPass",tolua_Graphics_Material_GetPass00);
  19439. tolua_function(tolua_S,"GetTexture",tolua_Graphics_Material_GetTexture00);
  19440. tolua_function(tolua_S,"GetShaderParameter",tolua_Graphics_Material_GetShaderParameter00);
  19441. tolua_function(tolua_S,"GetCullMode",tolua_Graphics_Material_GetCullMode00);
  19442. tolua_function(tolua_S,"GetShadowCullMode",tolua_Graphics_Material_GetShadowCullMode00);
  19443. tolua_function(tolua_S,"GetDepthBias",tolua_Graphics_Material_GetDepthBias00);
  19444. tolua_function(tolua_S,"GetAuxViewFrameNumber",tolua_Graphics_Material_GetAuxViewFrameNumber00);
  19445. tolua_function(tolua_S,"GetOcclusion",tolua_Graphics_Material_GetOcclusion00);
  19446. tolua_function(tolua_S,"GetSpecular",tolua_Graphics_Material_GetSpecular00);
  19447. tolua_function(tolua_S,"GetTextureUnitName",tolua_Graphics_Material_GetTextureUnitName00);
  19448. tolua_endmodule(tolua_S);
  19449. tolua_cclass(tolua_S,"Model","Model","Resource",NULL);
  19450. tolua_beginmodule(tolua_S,"Model");
  19451. tolua_function(tolua_S,"GetBoundingBox",tolua_Graphics_Model_GetBoundingBox00);
  19452. tolua_function(tolua_S,"GetSkeleton",tolua_Graphics_Model_GetSkeleton00);
  19453. tolua_function(tolua_S,"GetNumGeometries",tolua_Graphics_Model_GetNumGeometries00);
  19454. tolua_function(tolua_S,"GetNumGeometryLodLevels",tolua_Graphics_Model_GetNumGeometryLodLevels00);
  19455. tolua_function(tolua_S,"GetGeometry",tolua_Graphics_Model_GetGeometry00);
  19456. tolua_function(tolua_S,"GetNumMorphs",tolua_Graphics_Model_GetNumMorphs00);
  19457. tolua_function(tolua_S,"GetMorph",tolua_Graphics_Model_GetMorph00);
  19458. tolua_function(tolua_S,"GetMorph",tolua_Graphics_Model_GetMorph01);
  19459. tolua_function(tolua_S,"GetMorph",tolua_Graphics_Model_GetMorph02);
  19460. tolua_function(tolua_S,"GetMorphRangeStart",tolua_Graphics_Model_GetMorphRangeStart00);
  19461. tolua_function(tolua_S,"GetMorphRangeCount",tolua_Graphics_Model_GetMorphRangeCount00);
  19462. tolua_endmodule(tolua_S);
  19463. tolua_cclass(tolua_S,"Octree","Octree","Component",NULL);
  19464. tolua_beginmodule(tolua_S,"Octree");
  19465. tolua_function(tolua_S,"Resize",tolua_Graphics_Octree_Resize00);
  19466. tolua_function(tolua_S,"Update",tolua_Graphics_Octree_Update00);
  19467. tolua_function(tolua_S,"AddManualDrawable",tolua_Graphics_Octree_AddManualDrawable00);
  19468. tolua_function(tolua_S,"RemoveManualDrawable",tolua_Graphics_Octree_RemoveManualDrawable00);
  19469. tolua_function(tolua_S,"GetDrawables",tolua_Graphics_Octree_GetDrawables00);
  19470. tolua_function(tolua_S,"Raycast",tolua_Graphics_Octree_Raycast00);
  19471. tolua_function(tolua_S,"RaycastSingle",tolua_Graphics_Octree_RaycastSingle00);
  19472. tolua_function(tolua_S,"GetNumLevels",tolua_Graphics_Octree_GetNumLevels00);
  19473. tolua_function(tolua_S,"QueueUpdate",tolua_Graphics_Octree_QueueUpdate00);
  19474. tolua_function(tolua_S,"QueueReinsertion",tolua_Graphics_Octree_QueueReinsertion00);
  19475. tolua_function(tolua_S,"DrawDebugGeometry",tolua_Graphics_Octree_DrawDebugGeometry00);
  19476. tolua_endmodule(tolua_S);
  19477. tolua_function(tolua_S,"GetOctree",tolua_Graphics_GetOctree00);
  19478. tolua_constant(tolua_S,"EMITTER_SPHERE",EMITTER_SPHERE);
  19479. tolua_constant(tolua_S,"EMITTER_BOX",EMITTER_BOX);
  19480. #ifdef __cplusplus
  19481. tolua_cclass(tolua_S,"ColorFrame","ColorFrame","",tolua_collect_ColorFrame);
  19482. #else
  19483. tolua_cclass(tolua_S,"ColorFrame","ColorFrame","",NULL);
  19484. #endif
  19485. tolua_beginmodule(tolua_S,"ColorFrame");
  19486. tolua_function(tolua_S,"new",tolua_Graphics_ColorFrame_new00);
  19487. tolua_function(tolua_S,"new_local",tolua_Graphics_ColorFrame_new00_local);
  19488. tolua_function(tolua_S,".call",tolua_Graphics_ColorFrame_new00_local);
  19489. tolua_function(tolua_S,"new",tolua_Graphics_ColorFrame_new01);
  19490. tolua_function(tolua_S,"new_local",tolua_Graphics_ColorFrame_new01_local);
  19491. tolua_function(tolua_S,".call",tolua_Graphics_ColorFrame_new01_local);
  19492. tolua_function(tolua_S,"new",tolua_Graphics_ColorFrame_new02);
  19493. tolua_function(tolua_S,"new_local",tolua_Graphics_ColorFrame_new02_local);
  19494. tolua_function(tolua_S,".call",tolua_Graphics_ColorFrame_new02_local);
  19495. tolua_function(tolua_S,"Interpolate",tolua_Graphics_ColorFrame_Interpolate00);
  19496. tolua_variable(tolua_S,"color",tolua_get_ColorFrame_color,tolua_set_ColorFrame_color);
  19497. tolua_variable(tolua_S,"time",tolua_get_ColorFrame_time,tolua_set_ColorFrame_time);
  19498. tolua_endmodule(tolua_S);
  19499. #ifdef __cplusplus
  19500. tolua_cclass(tolua_S,"TextureFrame","TextureFrame","",tolua_collect_TextureFrame);
  19501. #else
  19502. tolua_cclass(tolua_S,"TextureFrame","TextureFrame","",NULL);
  19503. #endif
  19504. tolua_beginmodule(tolua_S,"TextureFrame");
  19505. tolua_function(tolua_S,"new",tolua_Graphics_TextureFrame_new00);
  19506. tolua_function(tolua_S,"new_local",tolua_Graphics_TextureFrame_new00_local);
  19507. tolua_function(tolua_S,".call",tolua_Graphics_TextureFrame_new00_local);
  19508. tolua_variable(tolua_S,"uv",tolua_get_TextureFrame_uv,tolua_set_TextureFrame_uv);
  19509. tolua_variable(tolua_S,"time",tolua_get_TextureFrame_time,tolua_set_TextureFrame_time);
  19510. tolua_endmodule(tolua_S);
  19511. tolua_cclass(tolua_S,"ParticleEmitter","ParticleEmitter","BillboardSet",NULL);
  19512. tolua_beginmodule(tolua_S,"ParticleEmitter");
  19513. tolua_function(tolua_S,"Load",tolua_Graphics_ParticleEmitter_Load00);
  19514. tolua_function(tolua_S,"SetNumParticles",tolua_Graphics_ParticleEmitter_SetNumParticles00);
  19515. tolua_function(tolua_S,"SetEmissionRate",tolua_Graphics_ParticleEmitter_SetEmissionRate00);
  19516. tolua_function(tolua_S,"SetMinEmissionRate",tolua_Graphics_ParticleEmitter_SetMinEmissionRate00);
  19517. tolua_function(tolua_S,"SetMaxEmissionRate",tolua_Graphics_ParticleEmitter_SetMaxEmissionRate00);
  19518. tolua_function(tolua_S,"SetEmitterType",tolua_Graphics_ParticleEmitter_SetEmitterType00);
  19519. tolua_function(tolua_S,"SetEmitterSize",tolua_Graphics_ParticleEmitter_SetEmitterSize00);
  19520. tolua_function(tolua_S,"SetActiveTime",tolua_Graphics_ParticleEmitter_SetActiveTime00);
  19521. tolua_function(tolua_S,"SetInactiveTime",tolua_Graphics_ParticleEmitter_SetInactiveTime00);
  19522. tolua_function(tolua_S,"SetEmitting",tolua_Graphics_ParticleEmitter_SetEmitting00);
  19523. tolua_function(tolua_S,"SetUpdateInvisible",tolua_Graphics_ParticleEmitter_SetUpdateInvisible00);
  19524. tolua_function(tolua_S,"SetTimeToLive",tolua_Graphics_ParticleEmitter_SetTimeToLive00);
  19525. tolua_function(tolua_S,"SetMinTimeToLive",tolua_Graphics_ParticleEmitter_SetMinTimeToLive00);
  19526. tolua_function(tolua_S,"SetMaxTimeToLive",tolua_Graphics_ParticleEmitter_SetMaxTimeToLive00);
  19527. tolua_function(tolua_S,"SetParticleSize",tolua_Graphics_ParticleEmitter_SetParticleSize00);
  19528. tolua_function(tolua_S,"SetMinParticleSize",tolua_Graphics_ParticleEmitter_SetMinParticleSize00);
  19529. tolua_function(tolua_S,"SetMaxParticleSize",tolua_Graphics_ParticleEmitter_SetMaxParticleSize00);
  19530. tolua_function(tolua_S,"SetMinDirection",tolua_Graphics_ParticleEmitter_SetMinDirection00);
  19531. tolua_function(tolua_S,"SetMaxDirection",tolua_Graphics_ParticleEmitter_SetMaxDirection00);
  19532. tolua_function(tolua_S,"SetVelocity",tolua_Graphics_ParticleEmitter_SetVelocity00);
  19533. tolua_function(tolua_S,"SetMinVelocity",tolua_Graphics_ParticleEmitter_SetMinVelocity00);
  19534. tolua_function(tolua_S,"SetMaxVelocity",tolua_Graphics_ParticleEmitter_SetMaxVelocity00);
  19535. tolua_function(tolua_S,"SetRotation",tolua_Graphics_ParticleEmitter_SetRotation00);
  19536. tolua_function(tolua_S,"SetMinRotation",tolua_Graphics_ParticleEmitter_SetMinRotation00);
  19537. tolua_function(tolua_S,"SetMaxRotation",tolua_Graphics_ParticleEmitter_SetMaxRotation00);
  19538. tolua_function(tolua_S,"SetRotationSpeed",tolua_Graphics_ParticleEmitter_SetRotationSpeed00);
  19539. tolua_function(tolua_S,"SetMinRotationSpeed",tolua_Graphics_ParticleEmitter_SetMinRotationSpeed00);
  19540. tolua_function(tolua_S,"SetMaxRotationSpeed",tolua_Graphics_ParticleEmitter_SetMaxRotationSpeed00);
  19541. tolua_function(tolua_S,"SetConstantForce",tolua_Graphics_ParticleEmitter_SetConstantForce00);
  19542. tolua_function(tolua_S,"SetDampingForce",tolua_Graphics_ParticleEmitter_SetDampingForce00);
  19543. tolua_function(tolua_S,"SetSizeAdd",tolua_Graphics_ParticleEmitter_SetSizeAdd00);
  19544. tolua_function(tolua_S,"SetSizeMul",tolua_Graphics_ParticleEmitter_SetSizeMul00);
  19545. tolua_function(tolua_S,"SetColor",tolua_Graphics_ParticleEmitter_SetColor00);
  19546. tolua_function(tolua_S,"SetNumColors",tolua_Graphics_ParticleEmitter_SetNumColors00);
  19547. tolua_function(tolua_S,"SetNumTextureFrames",tolua_Graphics_ParticleEmitter_SetNumTextureFrames00);
  19548. tolua_function(tolua_S,"GetNumParticles",tolua_Graphics_ParticleEmitter_GetNumParticles00);
  19549. tolua_function(tolua_S,"IsEmitting",tolua_Graphics_ParticleEmitter_IsEmitting00);
  19550. tolua_function(tolua_S,"GetUpdateInvisible",tolua_Graphics_ParticleEmitter_GetUpdateInvisible00);
  19551. tolua_function(tolua_S,"GetMinEmissionRate",tolua_Graphics_ParticleEmitter_GetMinEmissionRate00);
  19552. tolua_function(tolua_S,"GetMaxEmissionRate",tolua_Graphics_ParticleEmitter_GetMaxEmissionRate00);
  19553. tolua_function(tolua_S,"GetEmitterType",tolua_Graphics_ParticleEmitter_GetEmitterType00);
  19554. tolua_function(tolua_S,"GetEmitterSize",tolua_Graphics_ParticleEmitter_GetEmitterSize00);
  19555. tolua_function(tolua_S,"GetActiveTime",tolua_Graphics_ParticleEmitter_GetActiveTime00);
  19556. tolua_function(tolua_S,"GetInactiveTime",tolua_Graphics_ParticleEmitter_GetInactiveTime00);
  19557. tolua_function(tolua_S,"GetMinTimeToLive",tolua_Graphics_ParticleEmitter_GetMinTimeToLive00);
  19558. tolua_function(tolua_S,"GetMaxTimeToLive",tolua_Graphics_ParticleEmitter_GetMaxTimeToLive00);
  19559. tolua_function(tolua_S,"GetMinParticleSize",tolua_Graphics_ParticleEmitter_GetMinParticleSize00);
  19560. tolua_function(tolua_S,"GetMaxParticleSize",tolua_Graphics_ParticleEmitter_GetMaxParticleSize00);
  19561. tolua_function(tolua_S,"GetMinDirection",tolua_Graphics_ParticleEmitter_GetMinDirection00);
  19562. tolua_function(tolua_S,"GetMaxDirection",tolua_Graphics_ParticleEmitter_GetMaxDirection00);
  19563. tolua_function(tolua_S,"GetMinVelocity",tolua_Graphics_ParticleEmitter_GetMinVelocity00);
  19564. tolua_function(tolua_S,"GetMaxVelocity",tolua_Graphics_ParticleEmitter_GetMaxVelocity00);
  19565. tolua_function(tolua_S,"GetMinRotation",tolua_Graphics_ParticleEmitter_GetMinRotation00);
  19566. tolua_function(tolua_S,"GetMaxRotation",tolua_Graphics_ParticleEmitter_GetMaxRotation00);
  19567. tolua_function(tolua_S,"GetMinRotationSpeed",tolua_Graphics_ParticleEmitter_GetMinRotationSpeed00);
  19568. tolua_function(tolua_S,"GetMaxRotationSpeed",tolua_Graphics_ParticleEmitter_GetMaxRotationSpeed00);
  19569. tolua_function(tolua_S,"GetConstantForce",tolua_Graphics_ParticleEmitter_GetConstantForce00);
  19570. tolua_function(tolua_S,"GetDampingForce",tolua_Graphics_ParticleEmitter_GetDampingForce00);
  19571. tolua_function(tolua_S,"GetSizeAdd",tolua_Graphics_ParticleEmitter_GetSizeAdd00);
  19572. tolua_function(tolua_S,"GetSizeMul",tolua_Graphics_ParticleEmitter_GetSizeMul00);
  19573. tolua_function(tolua_S,"GetNumColors",tolua_Graphics_ParticleEmitter_GetNumColors00);
  19574. tolua_function(tolua_S,"GetColor",tolua_Graphics_ParticleEmitter_GetColor00);
  19575. tolua_function(tolua_S,"GetNumTextureFrames",tolua_Graphics_ParticleEmitter_GetNumTextureFrames00);
  19576. tolua_function(tolua_S,"GetTextureFrame",tolua_Graphics_ParticleEmitter_GetTextureFrame00);
  19577. tolua_endmodule(tolua_S);
  19578. tolua_cclass(tolua_S,"Renderer","Renderer","",NULL);
  19579. tolua_beginmodule(tolua_S,"Renderer");
  19580. tolua_function(tolua_S,"SetNumViewports",tolua_Graphics_Renderer_SetNumViewports00);
  19581. tolua_function(tolua_S,"SetViewport",tolua_Graphics_Renderer_SetViewport00);
  19582. tolua_function(tolua_S,"SetDefaultRenderPath",tolua_Graphics_Renderer_SetDefaultRenderPath00);
  19583. tolua_function(tolua_S,"SetDefaultRenderPath",tolua_Graphics_Renderer_SetDefaultRenderPath01);
  19584. tolua_function(tolua_S,"SetSpecularLighting",tolua_Graphics_Renderer_SetSpecularLighting00);
  19585. tolua_function(tolua_S,"SetTextureAnisotropy",tolua_Graphics_Renderer_SetTextureAnisotropy00);
  19586. tolua_function(tolua_S,"SetTextureFilterMode",tolua_Graphics_Renderer_SetTextureFilterMode00);
  19587. tolua_function(tolua_S,"SetTextureQuality",tolua_Graphics_Renderer_SetTextureQuality00);
  19588. tolua_function(tolua_S,"SetMaterialQuality",tolua_Graphics_Renderer_SetMaterialQuality00);
  19589. tolua_function(tolua_S,"SetDrawShadows",tolua_Graphics_Renderer_SetDrawShadows00);
  19590. tolua_function(tolua_S,"SetShadowMapSize",tolua_Graphics_Renderer_SetShadowMapSize00);
  19591. tolua_function(tolua_S,"SetShadowQuality",tolua_Graphics_Renderer_SetShadowQuality00);
  19592. tolua_function(tolua_S,"SetReuseShadowMaps",tolua_Graphics_Renderer_SetReuseShadowMaps00);
  19593. tolua_function(tolua_S,"SetMaxShadowMaps",tolua_Graphics_Renderer_SetMaxShadowMaps00);
  19594. tolua_function(tolua_S,"SetMaxShadowCascades",tolua_Graphics_Renderer_SetMaxShadowCascades00);
  19595. tolua_function(tolua_S,"SetDynamicInstancing",tolua_Graphics_Renderer_SetDynamicInstancing00);
  19596. tolua_function(tolua_S,"SetMinInstances",tolua_Graphics_Renderer_SetMinInstances00);
  19597. tolua_function(tolua_S,"SetMaxInstanceTriangles",tolua_Graphics_Renderer_SetMaxInstanceTriangles00);
  19598. tolua_function(tolua_S,"SetMaxSortedInstances",tolua_Graphics_Renderer_SetMaxSortedInstances00);
  19599. tolua_function(tolua_S,"SetMaxOccluderTriangles",tolua_Graphics_Renderer_SetMaxOccluderTriangles00);
  19600. tolua_function(tolua_S,"SetOcclusionBufferSize",tolua_Graphics_Renderer_SetOcclusionBufferSize00);
  19601. tolua_function(tolua_S,"SetOccluderSizeThreshold",tolua_Graphics_Renderer_SetOccluderSizeThreshold00);
  19602. tolua_function(tolua_S,"ReloadShaders",tolua_Graphics_Renderer_ReloadShaders00);
  19603. tolua_function(tolua_S,"GetNumViewports",tolua_Graphics_Renderer_GetNumViewports00);
  19604. tolua_function(tolua_S,"GetViewport",tolua_Graphics_Renderer_GetViewport00);
  19605. tolua_function(tolua_S,"GetDefaultRenderPath",tolua_Graphics_Renderer_GetDefaultRenderPath00);
  19606. tolua_function(tolua_S,"GetSpecularLighting",tolua_Graphics_Renderer_GetSpecularLighting00);
  19607. tolua_function(tolua_S,"GetDrawShadows",tolua_Graphics_Renderer_GetDrawShadows00);
  19608. tolua_function(tolua_S,"GetTextureAnisotropy",tolua_Graphics_Renderer_GetTextureAnisotropy00);
  19609. tolua_function(tolua_S,"GetTextureFilterMode",tolua_Graphics_Renderer_GetTextureFilterMode00);
  19610. tolua_function(tolua_S,"GetTextureQuality",tolua_Graphics_Renderer_GetTextureQuality00);
  19611. tolua_function(tolua_S,"GetMaterialQuality",tolua_Graphics_Renderer_GetMaterialQuality00);
  19612. tolua_function(tolua_S,"GetShadowMapSize",tolua_Graphics_Renderer_GetShadowMapSize00);
  19613. tolua_function(tolua_S,"GetShadowQuality",tolua_Graphics_Renderer_GetShadowQuality00);
  19614. tolua_function(tolua_S,"GetReuseShadowMaps",tolua_Graphics_Renderer_GetReuseShadowMaps00);
  19615. tolua_function(tolua_S,"GetMaxShadowMaps",tolua_Graphics_Renderer_GetMaxShadowMaps00);
  19616. tolua_function(tolua_S,"GetMaxShadowCascades",tolua_Graphics_Renderer_GetMaxShadowCascades00);
  19617. tolua_function(tolua_S,"GetDynamicInstancing",tolua_Graphics_Renderer_GetDynamicInstancing00);
  19618. tolua_function(tolua_S,"GetMinInstances",tolua_Graphics_Renderer_GetMinInstances00);
  19619. tolua_function(tolua_S,"GetMaxInstanceTriangles",tolua_Graphics_Renderer_GetMaxInstanceTriangles00);
  19620. tolua_function(tolua_S,"GetMaxSortedInstances",tolua_Graphics_Renderer_GetMaxSortedInstances00);
  19621. tolua_function(tolua_S,"GetMaxOccluderTriangles",tolua_Graphics_Renderer_GetMaxOccluderTriangles00);
  19622. tolua_function(tolua_S,"GetOcclusionBufferSize",tolua_Graphics_Renderer_GetOcclusionBufferSize00);
  19623. tolua_function(tolua_S,"GetOccluderSizeThreshold",tolua_Graphics_Renderer_GetOccluderSizeThreshold00);
  19624. tolua_function(tolua_S,"GetNumViews",tolua_Graphics_Renderer_GetNumViews00);
  19625. tolua_function(tolua_S,"GetNumPrimitives",tolua_Graphics_Renderer_GetNumPrimitives00);
  19626. tolua_function(tolua_S,"GetNumBatches",tolua_Graphics_Renderer_GetNumBatches00);
  19627. tolua_function(tolua_S,"GetNumGeometries",tolua_Graphics_Renderer_GetNumGeometries00);
  19628. tolua_function(tolua_S,"GetNumLights",tolua_Graphics_Renderer_GetNumLights00);
  19629. tolua_function(tolua_S,"GetNumShadowMaps",tolua_Graphics_Renderer_GetNumShadowMaps00);
  19630. tolua_function(tolua_S,"GetNumOccluders",tolua_Graphics_Renderer_GetNumOccluders00);
  19631. tolua_function(tolua_S,"GetDefaultZone",tolua_Graphics_Renderer_GetDefaultZone00);
  19632. tolua_function(tolua_S,"GetQuadDirLight",tolua_Graphics_Renderer_GetQuadDirLight00);
  19633. tolua_function(tolua_S,"GetDefaultMaterial",tolua_Graphics_Renderer_GetDefaultMaterial00);
  19634. tolua_function(tolua_S,"GetDefaultLightRamp",tolua_Graphics_Renderer_GetDefaultLightRamp00);
  19635. tolua_function(tolua_S,"GetDefaultLightSpot",tolua_Graphics_Renderer_GetDefaultLightSpot00);
  19636. tolua_function(tolua_S,"GetFaceSelectCubeMap",tolua_Graphics_Renderer_GetFaceSelectCubeMap00);
  19637. tolua_function(tolua_S,"GetIndirectionCubeMap",tolua_Graphics_Renderer_GetIndirectionCubeMap00);
  19638. tolua_function(tolua_S,"GetInstancingBuffer",tolua_Graphics_Renderer_GetInstancingBuffer00);
  19639. tolua_function(tolua_S,"GetVertexShader",tolua_Graphics_Renderer_GetVertexShader00);
  19640. tolua_function(tolua_S,"GetPixelShader",tolua_Graphics_Renderer_GetPixelShader00);
  19641. tolua_function(tolua_S,"GetStencilVS",tolua_Graphics_Renderer_GetStencilVS00);
  19642. tolua_function(tolua_S,"GetStencilPS",tolua_Graphics_Renderer_GetStencilPS00);
  19643. tolua_function(tolua_S,"GetFrameInfo",tolua_Graphics_Renderer_GetFrameInfo00);
  19644. tolua_endmodule(tolua_S);
  19645. tolua_function(tolua_S,"GetRenderer",tolua_Graphics_GetRenderer00);
  19646. tolua_cclass(tolua_S,"RenderSurface","RenderSurface","",NULL);
  19647. tolua_beginmodule(tolua_S,"RenderSurface");
  19648. tolua_function(tolua_S,"SetNumViewports",tolua_Graphics_RenderSurface_SetNumViewports00);
  19649. tolua_function(tolua_S,"SetViewport",tolua_Graphics_RenderSurface_SetViewport00);
  19650. tolua_function(tolua_S,"SetUpdateMode",tolua_Graphics_RenderSurface_SetUpdateMode00);
  19651. tolua_function(tolua_S,"SetLinkedRenderTarget",tolua_Graphics_RenderSurface_SetLinkedRenderTarget00);
  19652. tolua_function(tolua_S,"SetLinkedDepthStencil",tolua_Graphics_RenderSurface_SetLinkedDepthStencil00);
  19653. tolua_function(tolua_S,"QueueUpdate",tolua_Graphics_RenderSurface_QueueUpdate00);
  19654. tolua_function(tolua_S,"Release",tolua_Graphics_RenderSurface_Release00);
  19655. tolua_function(tolua_S,"GetParentTexture",tolua_Graphics_RenderSurface_GetParentTexture00);
  19656. tolua_function(tolua_S,"GetWidth",tolua_Graphics_RenderSurface_GetWidth00);
  19657. tolua_function(tolua_S,"GetHeight",tolua_Graphics_RenderSurface_GetHeight00);
  19658. tolua_function(tolua_S,"GetUsage",tolua_Graphics_RenderSurface_GetUsage00);
  19659. tolua_function(tolua_S,"GetLinkedRenderTarget",tolua_Graphics_RenderSurface_GetLinkedRenderTarget00);
  19660. tolua_function(tolua_S,"GetLinkedDepthStencil",tolua_Graphics_RenderSurface_GetLinkedDepthStencil00);
  19661. tolua_endmodule(tolua_S);
  19662. #ifdef __cplusplus
  19663. tolua_cclass(tolua_S,"Bone","Bone","",tolua_collect_Bone);
  19664. #else
  19665. tolua_cclass(tolua_S,"Bone","Bone","",NULL);
  19666. #endif
  19667. tolua_beginmodule(tolua_S,"Bone");
  19668. tolua_function(tolua_S,"new",tolua_Graphics_Bone_new00);
  19669. tolua_function(tolua_S,"new_local",tolua_Graphics_Bone_new00_local);
  19670. tolua_function(tolua_S,".call",tolua_Graphics_Bone_new00_local);
  19671. tolua_variable(tolua_S,"name",tolua_get_Bone_name,tolua_set_Bone_name);
  19672. tolua_variable(tolua_S,"nameHash",tolua_get_Bone_nameHash,tolua_set_Bone_nameHash);
  19673. tolua_variable(tolua_S,"parentIndex",tolua_get_Bone_parentIndex,tolua_set_Bone_parentIndex);
  19674. tolua_variable(tolua_S,"initialPosition",tolua_get_Bone_initialPosition,tolua_set_Bone_initialPosition);
  19675. tolua_variable(tolua_S,"initialRotation",tolua_get_Bone_initialRotation,tolua_set_Bone_initialRotation);
  19676. tolua_variable(tolua_S,"initialScale",tolua_get_Bone_initialScale,tolua_set_Bone_initialScale);
  19677. tolua_variable(tolua_S,"offsetMatrix",tolua_get_Bone_offsetMatrix,tolua_set_Bone_offsetMatrix);
  19678. tolua_variable(tolua_S,"animated",tolua_get_Bone_animated,tolua_set_Bone_animated);
  19679. tolua_variable(tolua_S,"collisionMask",tolua_get_Bone_unsigned_collisionMask,tolua_set_Bone_unsigned_collisionMask);
  19680. tolua_variable(tolua_S,"radius",tolua_get_Bone_radius,tolua_set_Bone_radius);
  19681. tolua_variable(tolua_S,"boundingBox",tolua_get_Bone_boundingBox,tolua_set_Bone_boundingBox);
  19682. tolua_variable(tolua_S,"node",tolua_get_Bone_node_ptr,tolua_set_Bone_node_ptr);
  19683. tolua_endmodule(tolua_S);
  19684. tolua_cclass(tolua_S,"Skeleton","Skeleton","",NULL);
  19685. tolua_beginmodule(tolua_S,"Skeleton");
  19686. tolua_function(tolua_S,"GetNumBones",tolua_Graphics_Skeleton_GetNumBones00);
  19687. tolua_function(tolua_S,"GetRootBone",tolua_Graphics_Skeleton_GetRootBone00);
  19688. tolua_function(tolua_S,"GetBone",tolua_Graphics_Skeleton_GetBone00);
  19689. tolua_endmodule(tolua_S);
  19690. tolua_cclass(tolua_S,"Skybox","Skybox","StaticModel",NULL);
  19691. tolua_beginmodule(tolua_S,"Skybox");
  19692. tolua_endmodule(tolua_S);
  19693. tolua_cclass(tolua_S,"StaticModel","StaticModel","Drawable",NULL);
  19694. tolua_beginmodule(tolua_S,"StaticModel");
  19695. tolua_function(tolua_S,"SetModel",tolua_Graphics_StaticModel_SetModel00);
  19696. tolua_function(tolua_S,"SetMaterial",tolua_Graphics_StaticModel_SetMaterial00);
  19697. tolua_function(tolua_S,"SetMaterial",tolua_Graphics_StaticModel_SetMaterial01);
  19698. tolua_function(tolua_S,"SetOcclusionLodLevel",tolua_Graphics_StaticModel_SetOcclusionLodLevel00);
  19699. tolua_function(tolua_S,"GetModel",tolua_Graphics_StaticModel_GetModel00);
  19700. tolua_function(tolua_S,"GetBoundingBox",tolua_Graphics_StaticModel_GetBoundingBox00);
  19701. tolua_function(tolua_S,"GetNumGeometries",tolua_Graphics_StaticModel_GetNumGeometries00);
  19702. tolua_function(tolua_S,"GetMaterial",tolua_Graphics_StaticModel_GetMaterial00);
  19703. tolua_function(tolua_S,"GetOcclusionLodLevel",tolua_Graphics_StaticModel_GetOcclusionLodLevel00);
  19704. tolua_function(tolua_S,"IsInside",tolua_Graphics_StaticModel_IsInside00);
  19705. tolua_function(tolua_S,"IsInsideLocal",tolua_Graphics_StaticModel_IsInsideLocal00);
  19706. tolua_endmodule(tolua_S);
  19707. tolua_cclass(tolua_S,"Technique","Technique","Resource",NULL);
  19708. tolua_beginmodule(tolua_S,"Technique");
  19709. tolua_function(tolua_S,"SetIsSM3",tolua_Graphics_Technique_SetIsSM300);
  19710. tolua_function(tolua_S,"ReleaseShaders",tolua_Graphics_Technique_ReleaseShaders00);
  19711. tolua_function(tolua_S,"IsSM3",tolua_Graphics_Technique_IsSM300);
  19712. tolua_endmodule(tolua_S);
  19713. tolua_cclass(tolua_S,"Terrain","Terrain","Component",NULL);
  19714. tolua_beginmodule(tolua_S,"Terrain");
  19715. tolua_function(tolua_S,"SetPatchSize",tolua_Graphics_Terrain_SetPatchSize00);
  19716. tolua_function(tolua_S,"SetSpacing",tolua_Graphics_Terrain_SetSpacing00);
  19717. tolua_function(tolua_S,"SetSmoothing",tolua_Graphics_Terrain_SetSmoothing00);
  19718. tolua_function(tolua_S,"SetHeightMap",tolua_Graphics_Terrain_SetHeightMap00);
  19719. tolua_function(tolua_S,"SetMaterial",tolua_Graphics_Terrain_SetMaterial00);
  19720. tolua_function(tolua_S,"SetDrawDistance",tolua_Graphics_Terrain_SetDrawDistance00);
  19721. tolua_function(tolua_S,"SetShadowDistance",tolua_Graphics_Terrain_SetShadowDistance00);
  19722. tolua_function(tolua_S,"SetLodBias",tolua_Graphics_Terrain_SetLodBias00);
  19723. tolua_function(tolua_S,"SetViewMask",tolua_Graphics_Terrain_SetViewMask00);
  19724. tolua_function(tolua_S,"SetLightMask",tolua_Graphics_Terrain_SetLightMask00);
  19725. tolua_function(tolua_S,"SetShadowMask",tolua_Graphics_Terrain_SetShadowMask00);
  19726. tolua_function(tolua_S,"SetZoneMask",tolua_Graphics_Terrain_SetZoneMask00);
  19727. tolua_function(tolua_S,"SetMaxLights",tolua_Graphics_Terrain_SetMaxLights00);
  19728. tolua_function(tolua_S,"SetCastShadows",tolua_Graphics_Terrain_SetCastShadows00);
  19729. tolua_function(tolua_S,"SetOccluder",tolua_Graphics_Terrain_SetOccluder00);
  19730. tolua_function(tolua_S,"SetOccludee",tolua_Graphics_Terrain_SetOccludee00);
  19731. tolua_function(tolua_S,"GetPatchSize",tolua_Graphics_Terrain_GetPatchSize00);
  19732. tolua_function(tolua_S,"GetSpacing",tolua_Graphics_Terrain_GetSpacing00);
  19733. tolua_function(tolua_S,"GetNumVertices",tolua_Graphics_Terrain_GetNumVertices00);
  19734. tolua_function(tolua_S,"GetNumPatches",tolua_Graphics_Terrain_GetNumPatches00);
  19735. tolua_function(tolua_S,"GetSmoothing",tolua_Graphics_Terrain_GetSmoothing00);
  19736. tolua_function(tolua_S,"GetHeightMap",tolua_Graphics_Terrain_GetHeightMap00);
  19737. tolua_function(tolua_S,"GetMaterial",tolua_Graphics_Terrain_GetMaterial00);
  19738. tolua_function(tolua_S,"GetPatch",tolua_Graphics_Terrain_GetPatch00);
  19739. tolua_function(tolua_S,"GetPatch",tolua_Graphics_Terrain_GetPatch01);
  19740. tolua_function(tolua_S,"GetHeight",tolua_Graphics_Terrain_GetHeight00);
  19741. tolua_function(tolua_S,"GetNormal",tolua_Graphics_Terrain_GetNormal00);
  19742. tolua_function(tolua_S,"GetDrawDistance",tolua_Graphics_Terrain_GetDrawDistance00);
  19743. tolua_function(tolua_S,"GetShadowDistance",tolua_Graphics_Terrain_GetShadowDistance00);
  19744. tolua_function(tolua_S,"GetLodBias",tolua_Graphics_Terrain_GetLodBias00);
  19745. tolua_function(tolua_S,"GetViewMask",tolua_Graphics_Terrain_GetViewMask00);
  19746. tolua_function(tolua_S,"GetLightMask",tolua_Graphics_Terrain_GetLightMask00);
  19747. tolua_function(tolua_S,"GetShadowMask",tolua_Graphics_Terrain_GetShadowMask00);
  19748. tolua_function(tolua_S,"GetZoneMask",tolua_Graphics_Terrain_GetZoneMask00);
  19749. tolua_function(tolua_S,"GetMaxLights",tolua_Graphics_Terrain_GetMaxLights00);
  19750. tolua_function(tolua_S,"IsVisible",tolua_Graphics_Terrain_IsVisible00);
  19751. tolua_function(tolua_S,"GetCastShadows",tolua_Graphics_Terrain_GetCastShadows00);
  19752. tolua_function(tolua_S,"IsOccluder",tolua_Graphics_Terrain_IsOccluder00);
  19753. tolua_function(tolua_S,"IsOccludee",tolua_Graphics_Terrain_IsOccludee00);
  19754. tolua_endmodule(tolua_S);
  19755. tolua_cclass(tolua_S,"TerrainPatch","TerrainPatch","Drawable",NULL);
  19756. tolua_beginmodule(tolua_S,"TerrainPatch");
  19757. tolua_function(tolua_S,"SetOwner",tolua_Graphics_TerrainPatch_SetOwner00);
  19758. tolua_function(tolua_S,"SetNeighbors",tolua_Graphics_TerrainPatch_SetNeighbors00);
  19759. tolua_function(tolua_S,"SetMaterial",tolua_Graphics_TerrainPatch_SetMaterial00);
  19760. tolua_function(tolua_S,"SetBoundingBox",tolua_Graphics_TerrainPatch_SetBoundingBox00);
  19761. tolua_function(tolua_S,"SetCoordinates",tolua_Graphics_TerrainPatch_SetCoordinates00);
  19762. tolua_function(tolua_S,"SetOcclusionOffset",tolua_Graphics_TerrainPatch_SetOcclusionOffset00);
  19763. tolua_function(tolua_S,"ResetLod",tolua_Graphics_TerrainPatch_ResetLod00);
  19764. tolua_function(tolua_S,"GetGeometry",tolua_Graphics_TerrainPatch_GetGeometry00);
  19765. tolua_function(tolua_S,"GetMaxLodGeometry",tolua_Graphics_TerrainPatch_GetMaxLodGeometry00);
  19766. tolua_function(tolua_S,"GetMinLodGeometry",tolua_Graphics_TerrainPatch_GetMinLodGeometry00);
  19767. tolua_function(tolua_S,"GetVertexBuffer",tolua_Graphics_TerrainPatch_GetVertexBuffer00);
  19768. tolua_function(tolua_S,"GetOwner",tolua_Graphics_TerrainPatch_GetOwner00);
  19769. tolua_function(tolua_S,"GetNorthPatch",tolua_Graphics_TerrainPatch_GetNorthPatch00);
  19770. tolua_function(tolua_S,"GetSouthPatch",tolua_Graphics_TerrainPatch_GetSouthPatch00);
  19771. tolua_function(tolua_S,"GetWestPatch",tolua_Graphics_TerrainPatch_GetWestPatch00);
  19772. tolua_function(tolua_S,"GetEastPatch",tolua_Graphics_TerrainPatch_GetEastPatch00);
  19773. tolua_function(tolua_S,"GetBoundingBox",tolua_Graphics_TerrainPatch_GetBoundingBox00);
  19774. tolua_function(tolua_S,"GetCoordinates",tolua_Graphics_TerrainPatch_GetCoordinates00);
  19775. tolua_function(tolua_S,"GetLodLevel",tolua_Graphics_TerrainPatch_GetLodLevel00);
  19776. tolua_function(tolua_S,"GetOcclusionOffset",tolua_Graphics_TerrainPatch_GetOcclusionOffset00);
  19777. tolua_endmodule(tolua_S);
  19778. tolua_cclass(tolua_S,"Texture","Texture","Resource",NULL);
  19779. tolua_beginmodule(tolua_S,"Texture");
  19780. tolua_function(tolua_S,"SetNumLevels",tolua_Graphics_Texture_SetNumLevels00);
  19781. tolua_function(tolua_S,"SetFilterMode",tolua_Graphics_Texture_SetFilterMode00);
  19782. tolua_function(tolua_S,"SetAddressMode",tolua_Graphics_Texture_SetAddressMode00);
  19783. tolua_function(tolua_S,"SetBorderColor",tolua_Graphics_Texture_SetBorderColor00);
  19784. tolua_function(tolua_S,"SetSRGB",tolua_Graphics_Texture_SetSRGB00);
  19785. tolua_function(tolua_S,"SetBackupTexture",tolua_Graphics_Texture_SetBackupTexture00);
  19786. tolua_function(tolua_S,"GetFormat",tolua_Graphics_Texture_GetFormat00);
  19787. tolua_function(tolua_S,"IsCompressed",tolua_Graphics_Texture_IsCompressed00);
  19788. tolua_function(tolua_S,"GetLevels",tolua_Graphics_Texture_GetLevels00);
  19789. tolua_function(tolua_S,"GetWidth",tolua_Graphics_Texture_GetWidth00);
  19790. tolua_function(tolua_S,"GetHeight",tolua_Graphics_Texture_GetHeight00);
  19791. tolua_function(tolua_S,"GetFilterMode",tolua_Graphics_Texture_GetFilterMode00);
  19792. tolua_function(tolua_S,"GetAddressMode",tolua_Graphics_Texture_GetAddressMode00);
  19793. tolua_function(tolua_S,"GetBorderColor",tolua_Graphics_Texture_GetBorderColor00);
  19794. tolua_function(tolua_S,"GetSRGB",tolua_Graphics_Texture_GetSRGB00);
  19795. tolua_function(tolua_S,"GetBackupTexture",tolua_Graphics_Texture_GetBackupTexture00);
  19796. tolua_function(tolua_S,"GetLevelWidth",tolua_Graphics_Texture_GetLevelWidth00);
  19797. tolua_function(tolua_S,"GetLevelHeight",tolua_Graphics_Texture_GetLevelHeight00);
  19798. tolua_function(tolua_S,"GetUsage",tolua_Graphics_Texture_GetUsage00);
  19799. tolua_function(tolua_S,"GetDataSize",tolua_Graphics_Texture_GetDataSize00);
  19800. tolua_function(tolua_S,"GetRowDataSize",tolua_Graphics_Texture_GetRowDataSize00);
  19801. tolua_endmodule(tolua_S);
  19802. tolua_cclass(tolua_S,"Texture2D","Texture2D","Texture",NULL);
  19803. tolua_beginmodule(tolua_S,"Texture2D");
  19804. tolua_function(tolua_S,"GetRenderSurface",tolua_Graphics_Texture2D_GetRenderSurface00);
  19805. tolua_endmodule(tolua_S);
  19806. tolua_cclass(tolua_S,"TextureCube","TextureCube","Texture",NULL);
  19807. tolua_beginmodule(tolua_S,"TextureCube");
  19808. tolua_function(tolua_S,"GetRenderSurface",tolua_Graphics_TextureCube_GetRenderSurface00);
  19809. tolua_endmodule(tolua_S);
  19810. tolua_cclass(tolua_S,"Zone","Zone","Drawable",NULL);
  19811. tolua_beginmodule(tolua_S,"Zone");
  19812. tolua_function(tolua_S,"SetBoundingBox",tolua_Graphics_Zone_SetBoundingBox00);
  19813. tolua_function(tolua_S,"SetAmbientColor",tolua_Graphics_Zone_SetAmbientColor00);
  19814. tolua_function(tolua_S,"SetFogColor",tolua_Graphics_Zone_SetFogColor00);
  19815. tolua_function(tolua_S,"SetFogStart",tolua_Graphics_Zone_SetFogStart00);
  19816. tolua_function(tolua_S,"SetFogEnd",tolua_Graphics_Zone_SetFogEnd00);
  19817. tolua_function(tolua_S,"SetPriority",tolua_Graphics_Zone_SetPriority00);
  19818. tolua_function(tolua_S,"SetOverride",tolua_Graphics_Zone_SetOverride00);
  19819. tolua_function(tolua_S,"SetAmbientGradient",tolua_Graphics_Zone_SetAmbientGradient00);
  19820. tolua_function(tolua_S,"GetBoundingBox",tolua_Graphics_Zone_GetBoundingBox00);
  19821. tolua_function(tolua_S,"GetInverseWorldTransform",tolua_Graphics_Zone_GetInverseWorldTransform00);
  19822. tolua_function(tolua_S,"GetAmbientColor",tolua_Graphics_Zone_GetAmbientColor00);
  19823. tolua_function(tolua_S,"GetAmbientStartColor",tolua_Graphics_Zone_GetAmbientStartColor00);
  19824. tolua_function(tolua_S,"GetAmbientEndColor",tolua_Graphics_Zone_GetAmbientEndColor00);
  19825. tolua_function(tolua_S,"GetFogColor",tolua_Graphics_Zone_GetFogColor00);
  19826. tolua_function(tolua_S,"GetFogStart",tolua_Graphics_Zone_GetFogStart00);
  19827. tolua_function(tolua_S,"GetFogEnd",tolua_Graphics_Zone_GetFogEnd00);
  19828. tolua_function(tolua_S,"GetPriority",tolua_Graphics_Zone_GetPriority00);
  19829. tolua_function(tolua_S,"GetOverride",tolua_Graphics_Zone_GetOverride00);
  19830. tolua_function(tolua_S,"GetAmbientGradient",tolua_Graphics_Zone_GetAmbientGradient00);
  19831. tolua_function(tolua_S,"IsInside",tolua_Graphics_Zone_IsInside00);
  19832. tolua_endmodule(tolua_S);
  19833. tolua_endmodule(tolua_S);
  19834. return 1;
  19835. }
  19836. #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
  19837. TOLUA_API int luaopen_Graphics (lua_State* tolua_S) {
  19838. return tolua_Graphics_open(tolua_S);
  19839. };
  19840. #endif