2
0

binding.cpp 679 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834
  1. // Autogenerated, do not edit
  2. #include "../../Native/AllUrho.h"
  3. #include "../../Native/interop.h"
  4. using namespace Urho3D;
  5. extern "C" {
  6. DllExport void *
  7. RefCount_RefCount ()
  8. {
  9. return new RefCount();
  10. }
  11. DllExport void *
  12. RefCounted_RefCounted ()
  13. {
  14. return new RefCounted();
  15. }
  16. DllExport void
  17. RefCounted_AddRef (Urho3D::RefCounted *_target)
  18. {
  19. _target->AddRef ();
  20. }
  21. DllExport void
  22. RefCounted_ReleaseRef (Urho3D::RefCounted *_target)
  23. {
  24. _target->ReleaseRef ();
  25. }
  26. DllExport int
  27. RefCounted_Refs (Urho3D::RefCounted *_target)
  28. {
  29. return _target->Refs ();
  30. }
  31. DllExport int
  32. RefCounted_WeakRefs (Urho3D::RefCounted *_target)
  33. {
  34. return _target->WeakRefs ();
  35. }
  36. DllExport Urho3D::RefCount *
  37. RefCounted_RefCountPtr (Urho3D::RefCounted *_target)
  38. {
  39. return _target->RefCountPtr ();
  40. }
  41. DllExport void *
  42. UrhoString_String ()
  43. {
  44. return new String();
  45. }
  46. DllExport void *
  47. UrhoString_String0 (const char * str)
  48. {
  49. return new String(Urho3D::String(str));
  50. }
  51. DllExport void *
  52. UrhoString_String1 (int value)
  53. {
  54. return new String(value);
  55. }
  56. DllExport void *
  57. UrhoString_String2 (short value)
  58. {
  59. return new String(value);
  60. }
  61. DllExport void *
  62. UrhoString_String3 (long value)
  63. {
  64. return new String(value);
  65. }
  66. DllExport void *
  67. UrhoString_String4 (long long value)
  68. {
  69. return new String(value);
  70. }
  71. DllExport void *
  72. UrhoString_String5 (unsigned int value)
  73. {
  74. return new String(value);
  75. }
  76. DllExport void *
  77. UrhoString_String6 (unsigned short value)
  78. {
  79. return new String(value);
  80. }
  81. DllExport void *
  82. UrhoString_String7 (unsigned long value)
  83. {
  84. return new String(value);
  85. }
  86. DllExport void *
  87. UrhoString_String8 (unsigned long long value)
  88. {
  89. return new String(value);
  90. }
  91. DllExport void *
  92. UrhoString_String9 (float value)
  93. {
  94. return new String(value);
  95. }
  96. DllExport void *
  97. UrhoString_String10 (double value)
  98. {
  99. return new String(value);
  100. }
  101. DllExport void *
  102. UrhoString_String11 (bool value)
  103. {
  104. return new String(value);
  105. }
  106. DllExport void
  107. UrhoString_Replace (Urho3D::String *_target, const char * replaceThis, const char * replaceWith, bool caseSensitive)
  108. {
  109. _target->Replace (Urho3D::String(replaceThis), Urho3D::String(replaceWith), caseSensitive);
  110. }
  111. DllExport void
  112. UrhoString_Replace12 (Urho3D::String *_target, unsigned int pos, unsigned int length, const char * replaceWith)
  113. {
  114. _target->Replace (pos, length, Urho3D::String(replaceWith));
  115. }
  116. DllExport const char *
  117. UrhoString_Replaced (Urho3D::String *_target, const char * replaceThis, const char * replaceWith, bool caseSensitive)
  118. {
  119. return stringdup((_target->Replaced (Urho3D::String(replaceThis), Urho3D::String(replaceWith), caseSensitive)).CString ());
  120. }
  121. DllExport void
  122. UrhoString_Insert (Urho3D::String *_target, unsigned int pos, const char * str)
  123. {
  124. _target->Insert (pos, Urho3D::String(str));
  125. }
  126. DllExport void
  127. UrhoString_Erase (Urho3D::String *_target, unsigned int pos, unsigned int length)
  128. {
  129. _target->Erase (pos, length);
  130. }
  131. DllExport void
  132. UrhoString_Resize (Urho3D::String *_target, unsigned int newLength)
  133. {
  134. _target->Resize (newLength);
  135. }
  136. DllExport void
  137. UrhoString_Reserve (Urho3D::String *_target, unsigned int newCapacity)
  138. {
  139. _target->Reserve (newCapacity);
  140. }
  141. DllExport void
  142. UrhoString_Compact (Urho3D::String *_target)
  143. {
  144. _target->Compact ();
  145. }
  146. DllExport void
  147. UrhoString_Clear (Urho3D::String *_target)
  148. {
  149. _target->Clear ();
  150. }
  151. DllExport const char *
  152. UrhoString_Substring (Urho3D::String *_target, unsigned int pos)
  153. {
  154. return stringdup((_target->Substring (pos)).CString ());
  155. }
  156. DllExport const char *
  157. UrhoString_Substring13 (Urho3D::String *_target, unsigned int pos, unsigned int length)
  158. {
  159. return stringdup((_target->Substring (pos, length)).CString ());
  160. }
  161. DllExport const char *
  162. UrhoString_Trimmed (Urho3D::String *_target)
  163. {
  164. return stringdup((_target->Trimmed ()).CString ());
  165. }
  166. DllExport const char *
  167. UrhoString_ToUpper (Urho3D::String *_target)
  168. {
  169. return stringdup((_target->ToUpper ()).CString ());
  170. }
  171. DllExport const char *
  172. UrhoString_ToLower (Urho3D::String *_target)
  173. {
  174. return stringdup((_target->ToLower ()).CString ());
  175. }
  176. DllExport unsigned int
  177. UrhoString_Find (Urho3D::String *_target, const char * str, unsigned int startPos, bool caseSensitive)
  178. {
  179. return _target->Find (Urho3D::String(str), startPos, caseSensitive);
  180. }
  181. DllExport unsigned int
  182. UrhoString_FindLast (Urho3D::String *_target, const char * str, unsigned int startPos, bool caseSensitive)
  183. {
  184. return _target->FindLast (Urho3D::String(str), startPos, caseSensitive);
  185. }
  186. DllExport int
  187. UrhoString_StartsWith (Urho3D::String *_target, const char * str, bool caseSensitive)
  188. {
  189. return _target->StartsWith (Urho3D::String(str), caseSensitive);
  190. }
  191. DllExport int
  192. UrhoString_EndsWith (Urho3D::String *_target, const char * str, bool caseSensitive)
  193. {
  194. return _target->EndsWith (Urho3D::String(str), caseSensitive);
  195. }
  196. DllExport unsigned int
  197. UrhoString_Length (Urho3D::String *_target)
  198. {
  199. return _target->Length ();
  200. }
  201. DllExport unsigned int
  202. UrhoString_Capacity (Urho3D::String *_target)
  203. {
  204. return _target->Capacity ();
  205. }
  206. DllExport int
  207. UrhoString_Empty (Urho3D::String *_target)
  208. {
  209. return _target->Empty ();
  210. }
  211. DllExport int
  212. UrhoString_Compare (Urho3D::String *_target, const char * str, bool caseSensitive)
  213. {
  214. return _target->Compare (Urho3D::String(str), caseSensitive);
  215. }
  216. DllExport int
  217. UrhoString_Contains (Urho3D::String *_target, const char * str, bool caseSensitive)
  218. {
  219. return _target->Contains (Urho3D::String(str), caseSensitive);
  220. }
  221. DllExport unsigned int
  222. UrhoString_LengthUTF8 (Urho3D::String *_target)
  223. {
  224. return _target->LengthUTF8 ();
  225. }
  226. DllExport unsigned int
  227. UrhoString_ByteOffsetUTF8 (Urho3D::String *_target, unsigned int index)
  228. {
  229. return _target->ByteOffsetUTF8 (index);
  230. }
  231. DllExport unsigned int
  232. UrhoString_AtUTF8 (Urho3D::String *_target, unsigned int index)
  233. {
  234. return _target->AtUTF8 (index);
  235. }
  236. DllExport void
  237. UrhoString_ReplaceUTF8 (Urho3D::String *_target, unsigned int index, unsigned int unicodeChar)
  238. {
  239. _target->ReplaceUTF8 (index, unicodeChar);
  240. }
  241. DllExport const char *
  242. UrhoString_SubstringUTF8 (Urho3D::String *_target, unsigned int pos)
  243. {
  244. return stringdup((_target->SubstringUTF8 (pos)).CString ());
  245. }
  246. DllExport const char *
  247. UrhoString_SubstringUTF814 (Urho3D::String *_target, unsigned int pos, unsigned int length)
  248. {
  249. return stringdup((_target->SubstringUTF8 (pos, length)).CString ());
  250. }
  251. DllExport unsigned int
  252. UrhoString_ToHash (Urho3D::String *_target)
  253. {
  254. return _target->ToHash ();
  255. }
  256. // Urho3D::Variant overloads begin:
  257. DllExport void
  258. AttributeAccessor_Set0 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Vector3 & src)
  259. {
  260. _target->Set (ptr, (src));
  261. }
  262. DllExport void
  263. AttributeAccessor_Set1 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::IntRect & src)
  264. {
  265. _target->Set (ptr, (src));
  266. }
  267. DllExport void
  268. AttributeAccessor_Set2 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Color & src)
  269. {
  270. _target->Set (ptr, (src));
  271. }
  272. DllExport void
  273. AttributeAccessor_Set3 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Vector2 & src)
  274. {
  275. _target->Set (ptr, (src));
  276. }
  277. DllExport void
  278. AttributeAccessor_Set4 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Vector4 & src)
  279. {
  280. _target->Set (ptr, (src));
  281. }
  282. DllExport void
  283. AttributeAccessor_Set5 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::IntVector2 & src)
  284. {
  285. _target->Set (ptr, (src));
  286. }
  287. DllExport void
  288. AttributeAccessor_Set6 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Quaternion & src)
  289. {
  290. _target->Set (ptr, (src));
  291. }
  292. DllExport void
  293. AttributeAccessor_Set7 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Matrix4 & src)
  294. {
  295. _target->Set (ptr, (src));
  296. }
  297. DllExport void
  298. AttributeAccessor_Set8 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Matrix3x4 & src)
  299. {
  300. _target->Set (ptr, (src));
  301. }
  302. DllExport void
  303. AttributeAccessor_Set9 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, int src)
  304. {
  305. _target->Set (ptr, (src));
  306. }
  307. DllExport void
  308. AttributeAccessor_Set10 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, float src)
  309. {
  310. _target->Set (ptr, (src));
  311. }
  312. DllExport void
  313. AttributeAccessor_Set11 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const char * src)
  314. {
  315. _target->Set (ptr, Urho3D::String(src));
  316. }
  317. // Urho3D::Variant overloads end.
  318. DllExport int
  319. UrhoObject_GetType (Urho3D::Object *_target)
  320. {
  321. return (_target->GetType ()).Value ();
  322. }
  323. DllExport const char *
  324. UrhoObject_GetTypeName (Urho3D::Object *_target)
  325. {
  326. return stringdup((_target->GetTypeName ()).CString ());
  327. }
  328. DllExport const class Urho3D::TypeInfo *
  329. UrhoObject_GetTypeInfo (Urho3D::Object *_target)
  330. {
  331. return _target->GetTypeInfo ();
  332. }
  333. DllExport const class Urho3D::TypeInfo *
  334. UrhoObject_GetTypeInfoStatic ()
  335. {
  336. return Object::GetTypeInfoStatic ();
  337. }
  338. DllExport int
  339. UrhoObject_IsInstanceOf (Urho3D::Object *_target, int type)
  340. {
  341. return _target->IsInstanceOf (Urho3D::StringHash(type));
  342. }
  343. DllExport int
  344. UrhoObject_IsInstanceOf0 (Urho3D::Object *_target, const class Urho3D::TypeInfo * typeInfo)
  345. {
  346. return _target->IsInstanceOf (typeInfo);
  347. }
  348. DllExport void
  349. UrhoObject_SubscribeToEvent (Urho3D::Object *_target, int eventType, Urho3D::EventHandler * handler)
  350. {
  351. _target->SubscribeToEvent (Urho3D::StringHash(eventType), handler);
  352. }
  353. DllExport void
  354. UrhoObject_SubscribeToEvent1 (Urho3D::Object *_target, Urho3D::Object * sender, int eventType, Urho3D::EventHandler * handler)
  355. {
  356. _target->SubscribeToEvent (sender, Urho3D::StringHash(eventType), handler);
  357. }
  358. DllExport void
  359. UrhoObject_UnsubscribeFromEvent (Urho3D::Object *_target, int eventType)
  360. {
  361. _target->UnsubscribeFromEvent (Urho3D::StringHash(eventType));
  362. }
  363. DllExport void
  364. UrhoObject_UnsubscribeFromEvent2 (Urho3D::Object *_target, Urho3D::Object * sender, int eventType)
  365. {
  366. _target->UnsubscribeFromEvent (sender, Urho3D::StringHash(eventType));
  367. }
  368. DllExport void
  369. UrhoObject_UnsubscribeFromEvents (Urho3D::Object *_target, Urho3D::Object * sender)
  370. {
  371. _target->UnsubscribeFromEvents (sender);
  372. }
  373. DllExport void
  374. UrhoObject_UnsubscribeFromAllEvents (Urho3D::Object *_target)
  375. {
  376. _target->UnsubscribeFromAllEvents ();
  377. }
  378. DllExport void
  379. UrhoObject_SendEvent (Urho3D::Object *_target, int eventType)
  380. {
  381. _target->SendEvent (Urho3D::StringHash(eventType));
  382. }
  383. DllExport Urho3D::Context *
  384. UrhoObject_GetContext (Urho3D::Object *_target)
  385. {
  386. return _target->GetContext ();
  387. }
  388. // Urho3D::Variant overloads begin:
  389. DllExport Interop::Vector3
  390. UrhoObject_GetGlobalVar0 (Urho3D::Object *_target, int key)
  391. {
  392. return *((Interop::Vector3 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetVector3()));
  393. }
  394. DllExport Interop::IntRect
  395. UrhoObject_GetGlobalVar1 (Urho3D::Object *_target, int key)
  396. {
  397. return *((Interop::IntRect *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetIntRect()));
  398. }
  399. DllExport Interop::Color
  400. UrhoObject_GetGlobalVar2 (Urho3D::Object *_target, int key)
  401. {
  402. return *((Interop::Color *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetColor()));
  403. }
  404. DllExport Interop::Vector2
  405. UrhoObject_GetGlobalVar3 (Urho3D::Object *_target, int key)
  406. {
  407. return *((Interop::Vector2 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetVector2()));
  408. }
  409. DllExport Interop::Vector4
  410. UrhoObject_GetGlobalVar4 (Urho3D::Object *_target, int key)
  411. {
  412. return *((Interop::Vector4 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetVector4()));
  413. }
  414. DllExport Interop::IntVector2
  415. UrhoObject_GetGlobalVar5 (Urho3D::Object *_target, int key)
  416. {
  417. return *((Interop::IntVector2 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetIntVector2()));
  418. }
  419. DllExport Interop::Quaternion
  420. UrhoObject_GetGlobalVar6 (Urho3D::Object *_target, int key)
  421. {
  422. return *((Interop::Quaternion *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetQuaternion()));
  423. }
  424. DllExport Interop::Matrix4
  425. UrhoObject_GetGlobalVar7 (Urho3D::Object *_target, int key)
  426. {
  427. return *((Interop::Matrix4 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetMatrix4()));
  428. }
  429. DllExport Interop::Matrix3x4
  430. UrhoObject_GetGlobalVar8 (Urho3D::Object *_target, int key)
  431. {
  432. return *((Interop::Matrix3x4 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetMatrix3x4()));
  433. }
  434. DllExport int
  435. UrhoObject_GetGlobalVar9 (Urho3D::Object *_target, int key)
  436. {
  437. return (_target->GetGlobalVar (Urho3D::StringHash(key)).GetInt());
  438. }
  439. DllExport float
  440. UrhoObject_GetGlobalVar10 (Urho3D::Object *_target, int key)
  441. {
  442. return (_target->GetGlobalVar (Urho3D::StringHash(key)).GetFloat());
  443. }
  444. DllExport const char *
  445. UrhoObject_GetGlobalVar11 (Urho3D::Object *_target, int key)
  446. {
  447. return stringdup(_target->GetGlobalVar (Urho3D::StringHash(key)).GetString().CString());
  448. }
  449. // Urho3D::Variant overloads end.
  450. // Urho3D::Variant overloads begin:
  451. DllExport void
  452. UrhoObject_SetGlobalVar0 (Urho3D::Object *_target, int key, const class Urho3D::Vector3 & value)
  453. {
  454. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  455. }
  456. DllExport void
  457. UrhoObject_SetGlobalVar1 (Urho3D::Object *_target, int key, const class Urho3D::IntRect & value)
  458. {
  459. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  460. }
  461. DllExport void
  462. UrhoObject_SetGlobalVar2 (Urho3D::Object *_target, int key, const class Urho3D::Color & value)
  463. {
  464. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  465. }
  466. DllExport void
  467. UrhoObject_SetGlobalVar3 (Urho3D::Object *_target, int key, const class Urho3D::Vector2 & value)
  468. {
  469. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  470. }
  471. DllExport void
  472. UrhoObject_SetGlobalVar4 (Urho3D::Object *_target, int key, const class Urho3D::Vector4 & value)
  473. {
  474. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  475. }
  476. DllExport void
  477. UrhoObject_SetGlobalVar5 (Urho3D::Object *_target, int key, const class Urho3D::IntVector2 & value)
  478. {
  479. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  480. }
  481. DllExport void
  482. UrhoObject_SetGlobalVar6 (Urho3D::Object *_target, int key, const class Urho3D::Quaternion & value)
  483. {
  484. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  485. }
  486. DllExport void
  487. UrhoObject_SetGlobalVar7 (Urho3D::Object *_target, int key, const class Urho3D::Matrix4 & value)
  488. {
  489. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  490. }
  491. DllExport void
  492. UrhoObject_SetGlobalVar8 (Urho3D::Object *_target, int key, const class Urho3D::Matrix3x4 & value)
  493. {
  494. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  495. }
  496. DllExport void
  497. UrhoObject_SetGlobalVar9 (Urho3D::Object *_target, int key, int value)
  498. {
  499. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  500. }
  501. DllExport void
  502. UrhoObject_SetGlobalVar10 (Urho3D::Object *_target, int key, float value)
  503. {
  504. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  505. }
  506. DllExport void
  507. UrhoObject_SetGlobalVar11 (Urho3D::Object *_target, int key, const char * value)
  508. {
  509. _target->SetGlobalVar (Urho3D::StringHash(key), Urho3D::String(value));
  510. }
  511. // Urho3D::Variant overloads end.
  512. DllExport Urho3D::Object *
  513. UrhoObject_GetSubsystem (Urho3D::Object *_target, int type)
  514. {
  515. return _target->GetSubsystem (Urho3D::StringHash(type));
  516. }
  517. DllExport Urho3D::Object *
  518. UrhoObject_GetEventSender (Urho3D::Object *_target)
  519. {
  520. return _target->GetEventSender ();
  521. }
  522. DllExport Urho3D::EventHandler *
  523. UrhoObject_GetEventHandler (Urho3D::Object *_target)
  524. {
  525. return _target->GetEventHandler ();
  526. }
  527. DllExport int
  528. UrhoObject_HasSubscribedToEvent (Urho3D::Object *_target, int eventType)
  529. {
  530. return _target->HasSubscribedToEvent (Urho3D::StringHash(eventType));
  531. }
  532. DllExport int
  533. UrhoObject_HasSubscribedToEvent3 (Urho3D::Object *_target, Urho3D::Object * sender, int eventType)
  534. {
  535. return _target->HasSubscribedToEvent (sender, Urho3D::StringHash(eventType));
  536. }
  537. DllExport int
  538. UrhoObject_HasEventHandlers (Urho3D::Object *_target)
  539. {
  540. return _target->HasEventHandlers ();
  541. }
  542. DllExport const char *
  543. UrhoObject_GetCategory (Urho3D::Object *_target)
  544. {
  545. return stringdup((_target->GetCategory ()).CString ());
  546. }
  547. DllExport Urho3D::Object *
  548. ObjectFactory_CreateObject (Urho3D::ObjectFactory *_target)
  549. {
  550. auto copy = _target->CreateObject ();
  551. auto plain = copy.Get();
  552. copy.Detach();
  553. delete copy;
  554. return plain;
  555. }
  556. DllExport Urho3D::Context *
  557. ObjectFactory_GetContext (Urho3D::ObjectFactory *_target)
  558. {
  559. return _target->GetContext ();
  560. }
  561. DllExport const class Urho3D::TypeInfo *
  562. ObjectFactory_GetTypeInfo (Urho3D::ObjectFactory *_target)
  563. {
  564. return _target->GetTypeInfo ();
  565. }
  566. DllExport int
  567. ObjectFactory_GetType (Urho3D::ObjectFactory *_target)
  568. {
  569. return (_target->GetType ()).Value ();
  570. }
  571. DllExport const char *
  572. ObjectFactory_GetTypeName (Urho3D::ObjectFactory *_target)
  573. {
  574. return stringdup((_target->GetTypeName ()).CString ());
  575. }
  576. DllExport int
  577. Serializable_GetType (Urho3D::Serializable *_target)
  578. {
  579. return (_target->GetType ()).Value ();
  580. }
  581. DllExport const char *
  582. Serializable_GetTypeName (Urho3D::Serializable *_target)
  583. {
  584. return stringdup((_target->GetTypeName ()).CString ());
  585. }
  586. DllExport int
  587. Serializable_GetTypeStatic ()
  588. {
  589. return (Serializable::GetTypeStatic ()).Value ();
  590. }
  591. DllExport const char *
  592. Serializable_GetTypeNameStatic ()
  593. {
  594. return stringdup((Serializable::GetTypeNameStatic ()).CString ());
  595. }
  596. DllExport void *
  597. Serializable_Serializable (Urho3D::Context * context)
  598. {
  599. return WeakPtr<Serializable>(new Serializable(context));
  600. }
  601. DllExport int
  602. Serializable_Load_File (Urho3D::Serializable *_target, File * source, bool setInstanceDefault)
  603. {
  604. return _target->Load (*source, setInstanceDefault);
  605. }
  606. DllExport int
  607. Serializable_Load_MemoryBuffer (Urho3D::Serializable *_target, MemoryBuffer * source, bool setInstanceDefault)
  608. {
  609. return _target->Load (*source, setInstanceDefault);
  610. }
  611. DllExport int
  612. Serializable_Save_File (Urho3D::Serializable *_target, File * dest)
  613. {
  614. return _target->Save (*dest);
  615. }
  616. DllExport int
  617. Serializable_Save_MemoryBuffer (Urho3D::Serializable *_target, MemoryBuffer * dest)
  618. {
  619. return _target->Save (*dest);
  620. }
  621. DllExport int
  622. Serializable_LoadXML (Urho3D::Serializable *_target, const class Urho3D::XMLElement & source, bool setInstanceDefault)
  623. {
  624. return _target->LoadXML (source, setInstanceDefault);
  625. }
  626. DllExport int
  627. Serializable_SaveXML (Urho3D::Serializable *_target, Urho3D::XMLElement & dest)
  628. {
  629. return _target->SaveXML (dest);
  630. }
  631. DllExport void
  632. Serializable_ApplyAttributes (Urho3D::Serializable *_target)
  633. {
  634. _target->ApplyAttributes ();
  635. }
  636. DllExport int
  637. Serializable_SaveDefaultAttributes (Urho3D::Serializable *_target)
  638. {
  639. return _target->SaveDefaultAttributes ();
  640. }
  641. DllExport void
  642. Serializable_MarkNetworkUpdate (Urho3D::Serializable *_target)
  643. {
  644. _target->MarkNetworkUpdate ();
  645. }
  646. // Urho3D::Variant overloads begin:
  647. DllExport int
  648. Serializable_SetAttribute0 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Vector3 & value)
  649. {
  650. return _target->SetAttribute (index, (value));
  651. }
  652. DllExport int
  653. Serializable_SetAttribute1 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::IntRect & value)
  654. {
  655. return _target->SetAttribute (index, (value));
  656. }
  657. DllExport int
  658. Serializable_SetAttribute2 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Color & value)
  659. {
  660. return _target->SetAttribute (index, (value));
  661. }
  662. DllExport int
  663. Serializable_SetAttribute3 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Vector2 & value)
  664. {
  665. return _target->SetAttribute (index, (value));
  666. }
  667. DllExport int
  668. Serializable_SetAttribute4 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Vector4 & value)
  669. {
  670. return _target->SetAttribute (index, (value));
  671. }
  672. DllExport int
  673. Serializable_SetAttribute5 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::IntVector2 & value)
  674. {
  675. return _target->SetAttribute (index, (value));
  676. }
  677. DllExport int
  678. Serializable_SetAttribute6 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Quaternion & value)
  679. {
  680. return _target->SetAttribute (index, (value));
  681. }
  682. DllExport int
  683. Serializable_SetAttribute7 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Matrix4 & value)
  684. {
  685. return _target->SetAttribute (index, (value));
  686. }
  687. DllExport int
  688. Serializable_SetAttribute8 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Matrix3x4 & value)
  689. {
  690. return _target->SetAttribute (index, (value));
  691. }
  692. DllExport int
  693. Serializable_SetAttribute9 (Urho3D::Serializable *_target, unsigned int index, int value)
  694. {
  695. return _target->SetAttribute (index, (value));
  696. }
  697. DllExport int
  698. Serializable_SetAttribute10 (Urho3D::Serializable *_target, unsigned int index, float value)
  699. {
  700. return _target->SetAttribute (index, (value));
  701. }
  702. DllExport int
  703. Serializable_SetAttribute11 (Urho3D::Serializable *_target, unsigned int index, const char * value)
  704. {
  705. return _target->SetAttribute (index, Urho3D::String(value));
  706. }
  707. // Urho3D::Variant overloads end.
  708. // Urho3D::Variant overloads begin:
  709. DllExport int
  710. Serializable_SetAttribute00 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Vector3 & value)
  711. {
  712. return _target->SetAttribute (Urho3D::String(name), (value));
  713. }
  714. DllExport int
  715. Serializable_SetAttribute01 (Urho3D::Serializable *_target, const char * name, const class Urho3D::IntRect & value)
  716. {
  717. return _target->SetAttribute (Urho3D::String(name), (value));
  718. }
  719. DllExport int
  720. Serializable_SetAttribute02 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Color & value)
  721. {
  722. return _target->SetAttribute (Urho3D::String(name), (value));
  723. }
  724. DllExport int
  725. Serializable_SetAttribute03 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Vector2 & value)
  726. {
  727. return _target->SetAttribute (Urho3D::String(name), (value));
  728. }
  729. DllExport int
  730. Serializable_SetAttribute04 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Vector4 & value)
  731. {
  732. return _target->SetAttribute (Urho3D::String(name), (value));
  733. }
  734. DllExport int
  735. Serializable_SetAttribute05 (Urho3D::Serializable *_target, const char * name, const class Urho3D::IntVector2 & value)
  736. {
  737. return _target->SetAttribute (Urho3D::String(name), (value));
  738. }
  739. DllExport int
  740. Serializable_SetAttribute06 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Quaternion & value)
  741. {
  742. return _target->SetAttribute (Urho3D::String(name), (value));
  743. }
  744. DllExport int
  745. Serializable_SetAttribute07 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Matrix4 & value)
  746. {
  747. return _target->SetAttribute (Urho3D::String(name), (value));
  748. }
  749. DllExport int
  750. Serializable_SetAttribute08 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Matrix3x4 & value)
  751. {
  752. return _target->SetAttribute (Urho3D::String(name), (value));
  753. }
  754. DllExport int
  755. Serializable_SetAttribute09 (Urho3D::Serializable *_target, const char * name, int value)
  756. {
  757. return _target->SetAttribute (Urho3D::String(name), (value));
  758. }
  759. DllExport int
  760. Serializable_SetAttribute010 (Urho3D::Serializable *_target, const char * name, float value)
  761. {
  762. return _target->SetAttribute (Urho3D::String(name), (value));
  763. }
  764. DllExport int
  765. Serializable_SetAttribute011 (Urho3D::Serializable *_target, const char * name, const char * value)
  766. {
  767. return _target->SetAttribute (Urho3D::String(name), Urho3D::String(value));
  768. }
  769. // Urho3D::Variant overloads end.
  770. DllExport void
  771. Serializable_ResetToDefault (Urho3D::Serializable *_target)
  772. {
  773. _target->ResetToDefault ();
  774. }
  775. DllExport void
  776. Serializable_RemoveInstanceDefault (Urho3D::Serializable *_target)
  777. {
  778. _target->RemoveInstanceDefault ();
  779. }
  780. DllExport void
  781. Serializable_SetTemporary (Urho3D::Serializable *_target, bool enable)
  782. {
  783. _target->SetTemporary (enable);
  784. }
  785. DllExport void
  786. Serializable_SetInterceptNetworkUpdate (Urho3D::Serializable *_target, const char * attributeName, bool enable)
  787. {
  788. _target->SetInterceptNetworkUpdate (Urho3D::String(attributeName), enable);
  789. }
  790. DllExport void
  791. Serializable_AllocateNetworkState (Urho3D::Serializable *_target)
  792. {
  793. _target->AllocateNetworkState ();
  794. }
  795. DllExport void
  796. Serializable_WriteInitialDeltaUpdate_File (Urho3D::Serializable *_target, File * dest, unsigned char timeStamp)
  797. {
  798. _target->WriteInitialDeltaUpdate (*dest, timeStamp);
  799. }
  800. DllExport void
  801. Serializable_WriteInitialDeltaUpdate_MemoryBuffer (Urho3D::Serializable *_target, MemoryBuffer * dest, unsigned char timeStamp)
  802. {
  803. _target->WriteInitialDeltaUpdate (*dest, timeStamp);
  804. }
  805. DllExport void
  806. Serializable_WriteLatestDataUpdate_File (Urho3D::Serializable *_target, File * dest, unsigned char timeStamp)
  807. {
  808. _target->WriteLatestDataUpdate (*dest, timeStamp);
  809. }
  810. DllExport void
  811. Serializable_WriteLatestDataUpdate_MemoryBuffer (Urho3D::Serializable *_target, MemoryBuffer * dest, unsigned char timeStamp)
  812. {
  813. _target->WriteLatestDataUpdate (*dest, timeStamp);
  814. }
  815. DllExport int
  816. Serializable_ReadDeltaUpdate_File (Urho3D::Serializable *_target, File * source)
  817. {
  818. return _target->ReadDeltaUpdate (*source);
  819. }
  820. DllExport int
  821. Serializable_ReadDeltaUpdate_MemoryBuffer (Urho3D::Serializable *_target, MemoryBuffer * source)
  822. {
  823. return _target->ReadDeltaUpdate (*source);
  824. }
  825. DllExport int
  826. Serializable_ReadLatestDataUpdate_File (Urho3D::Serializable *_target, File * source)
  827. {
  828. return _target->ReadLatestDataUpdate (*source);
  829. }
  830. DllExport int
  831. Serializable_ReadLatestDataUpdate_MemoryBuffer (Urho3D::Serializable *_target, MemoryBuffer * source)
  832. {
  833. return _target->ReadLatestDataUpdate (*source);
  834. }
  835. DllExport Urho3D::Variant
  836. Serializable_GetAttribute (Urho3D::Serializable *_target, unsigned int index)
  837. {
  838. return _target->GetAttribute (index);
  839. }
  840. DllExport Urho3D::Variant
  841. Serializable_GetAttribute1 (Urho3D::Serializable *_target, const char * name)
  842. {
  843. return _target->GetAttribute (Urho3D::String(name));
  844. }
  845. DllExport Urho3D::Variant
  846. Serializable_GetAttributeDefault (Urho3D::Serializable *_target, unsigned int index)
  847. {
  848. return _target->GetAttributeDefault (index);
  849. }
  850. DllExport Urho3D::Variant
  851. Serializable_GetAttributeDefault2 (Urho3D::Serializable *_target, const char * name)
  852. {
  853. return _target->GetAttributeDefault (Urho3D::String(name));
  854. }
  855. DllExport unsigned int
  856. Serializable_GetNumAttributes (Urho3D::Serializable *_target)
  857. {
  858. return _target->GetNumAttributes ();
  859. }
  860. DllExport unsigned int
  861. Serializable_GetNumNetworkAttributes (Urho3D::Serializable *_target)
  862. {
  863. return _target->GetNumNetworkAttributes ();
  864. }
  865. DllExport int
  866. Serializable_IsTemporary (Urho3D::Serializable *_target)
  867. {
  868. return _target->IsTemporary ();
  869. }
  870. DllExport int
  871. Serializable_GetInterceptNetworkUpdate (Urho3D::Serializable *_target, const char * attributeName)
  872. {
  873. return _target->GetInterceptNetworkUpdate (Urho3D::String(attributeName));
  874. }
  875. DllExport Urho3D::NetworkState *
  876. Serializable_GetNetworkState (Urho3D::Serializable *_target)
  877. {
  878. return _target->GetNetworkState ();
  879. }
  880. DllExport void *
  881. ValueAnimationInfo_ValueAnimationInfo (Urho3D::ValueAnimation * animation, enum Urho3D::WrapMode wrapMode, float speed)
  882. {
  883. return WeakPtr<ValueAnimationInfo>(new ValueAnimationInfo(animation, wrapMode, speed));
  884. }
  885. DllExport void *
  886. ValueAnimationInfo_ValueAnimationInfo0 (Urho3D::Object * target, Urho3D::ValueAnimation * animation, enum Urho3D::WrapMode wrapMode, float speed)
  887. {
  888. return WeakPtr<ValueAnimationInfo>(new ValueAnimationInfo(target, animation, wrapMode, speed));
  889. }
  890. DllExport int
  891. ValueAnimationInfo_Update (Urho3D::ValueAnimationInfo *_target, float timeStep)
  892. {
  893. return _target->Update (timeStep);
  894. }
  895. DllExport int
  896. ValueAnimationInfo_SetTime (Urho3D::ValueAnimationInfo *_target, float time)
  897. {
  898. return _target->SetTime (time);
  899. }
  900. DllExport void
  901. ValueAnimationInfo_SetWrapMode (Urho3D::ValueAnimationInfo *_target, enum Urho3D::WrapMode wrapMode)
  902. {
  903. _target->SetWrapMode (wrapMode);
  904. }
  905. DllExport void
  906. ValueAnimationInfo_SetSpeed (Urho3D::ValueAnimationInfo *_target, float speed)
  907. {
  908. _target->SetSpeed (speed);
  909. }
  910. DllExport Urho3D::Object *
  911. ValueAnimationInfo_GetTarget (Urho3D::ValueAnimationInfo *_target)
  912. {
  913. return _target->GetTarget ();
  914. }
  915. DllExport Urho3D::ValueAnimation *
  916. ValueAnimationInfo_GetAnimation (Urho3D::ValueAnimationInfo *_target)
  917. {
  918. return _target->GetAnimation ();
  919. }
  920. DllExport enum Urho3D::WrapMode
  921. ValueAnimationInfo_GetWrapMode (Urho3D::ValueAnimationInfo *_target)
  922. {
  923. return _target->GetWrapMode ();
  924. }
  925. DllExport float
  926. ValueAnimationInfo_GetTime (Urho3D::ValueAnimationInfo *_target)
  927. {
  928. return _target->GetTime ();
  929. }
  930. DllExport float
  931. ValueAnimationInfo_GetSpeed (Urho3D::ValueAnimationInfo *_target)
  932. {
  933. return _target->GetSpeed ();
  934. }
  935. DllExport int
  936. Animatable_GetType (Urho3D::Animatable *_target)
  937. {
  938. return (_target->GetType ()).Value ();
  939. }
  940. DllExport const char *
  941. Animatable_GetTypeName (Urho3D::Animatable *_target)
  942. {
  943. return stringdup((_target->GetTypeName ()).CString ());
  944. }
  945. DllExport int
  946. Animatable_GetTypeStatic ()
  947. {
  948. return (Animatable::GetTypeStatic ()).Value ();
  949. }
  950. DllExport const char *
  951. Animatable_GetTypeNameStatic ()
  952. {
  953. return stringdup((Animatable::GetTypeNameStatic ()).CString ());
  954. }
  955. DllExport void
  956. Animatable_RegisterObject (Urho3D::Context * context)
  957. {
  958. Animatable::RegisterObject (context);
  959. }
  960. DllExport int
  961. Animatable_LoadXML (Urho3D::Animatable *_target, const class Urho3D::XMLElement & source, bool setInstanceDefault)
  962. {
  963. return _target->LoadXML (source, setInstanceDefault);
  964. }
  965. DllExport int
  966. Animatable_SaveXML (Urho3D::Animatable *_target, Urho3D::XMLElement & dest)
  967. {
  968. return _target->SaveXML (dest);
  969. }
  970. DllExport void
  971. Animatable_SetAnimationEnabled (Urho3D::Animatable *_target, bool enable)
  972. {
  973. _target->SetAnimationEnabled (enable);
  974. }
  975. DllExport void
  976. Animatable_SetAnimationTime (Urho3D::Animatable *_target, float time)
  977. {
  978. _target->SetAnimationTime (time);
  979. }
  980. DllExport void
  981. Animatable_SetObjectAnimation (Urho3D::Animatable *_target, Urho3D::ObjectAnimation * objectAnimation)
  982. {
  983. _target->SetObjectAnimation (objectAnimation);
  984. }
  985. DllExport void
  986. Animatable_SetAttributeAnimation (Urho3D::Animatable *_target, const char * name, Urho3D::ValueAnimation * attributeAnimation, enum Urho3D::WrapMode wrapMode, float speed)
  987. {
  988. _target->SetAttributeAnimation (Urho3D::String(name), attributeAnimation, wrapMode, speed);
  989. }
  990. DllExport void
  991. Animatable_SetAttributeAnimationWrapMode (Urho3D::Animatable *_target, const char * name, enum Urho3D::WrapMode wrapMode)
  992. {
  993. _target->SetAttributeAnimationWrapMode (Urho3D::String(name), wrapMode);
  994. }
  995. DllExport void
  996. Animatable_SetAttributeAnimationSpeed (Urho3D::Animatable *_target, const char * name, float speed)
  997. {
  998. _target->SetAttributeAnimationSpeed (Urho3D::String(name), speed);
  999. }
  1000. DllExport void
  1001. Animatable_SetAttributeAnimationTime (Urho3D::Animatable *_target, const char * name, float time)
  1002. {
  1003. _target->SetAttributeAnimationTime (Urho3D::String(name), time);
  1004. }
  1005. DllExport void
  1006. Animatable_RemoveObjectAnimation (Urho3D::Animatable *_target)
  1007. {
  1008. _target->RemoveObjectAnimation ();
  1009. }
  1010. DllExport void
  1011. Animatable_RemoveAttributeAnimation (Urho3D::Animatable *_target, const char * name)
  1012. {
  1013. _target->RemoveAttributeAnimation (Urho3D::String(name));
  1014. }
  1015. DllExport int
  1016. Animatable_GetAnimationEnabled (Urho3D::Animatable *_target)
  1017. {
  1018. return _target->GetAnimationEnabled ();
  1019. }
  1020. DllExport Urho3D::ObjectAnimation *
  1021. Animatable_GetObjectAnimation (Urho3D::Animatable *_target)
  1022. {
  1023. return _target->GetObjectAnimation ();
  1024. }
  1025. DllExport Urho3D::ValueAnimation *
  1026. Animatable_GetAttributeAnimation (Urho3D::Animatable *_target, const char * name)
  1027. {
  1028. return _target->GetAttributeAnimation (Urho3D::String(name));
  1029. }
  1030. DllExport enum Urho3D::WrapMode
  1031. Animatable_GetAttributeAnimationWrapMode (Urho3D::Animatable *_target, const char * name)
  1032. {
  1033. return _target->GetAttributeAnimationWrapMode (Urho3D::String(name));
  1034. }
  1035. DllExport float
  1036. Animatable_GetAttributeAnimationSpeed (Urho3D::Animatable *_target, const char * name)
  1037. {
  1038. return _target->GetAttributeAnimationSpeed (Urho3D::String(name));
  1039. }
  1040. DllExport float
  1041. Animatable_GetAttributeAnimationTime (Urho3D::Animatable *_target, const char * name)
  1042. {
  1043. return _target->GetAttributeAnimationTime (Urho3D::String(name));
  1044. }
  1045. DllExport Urho3D::ResourceRef
  1046. Animatable_GetObjectAnimationAttr (Urho3D::Animatable *_target)
  1047. {
  1048. return _target->GetObjectAnimationAttr ();
  1049. }
  1050. DllExport int
  1051. Component_GetType (Urho3D::Component *_target)
  1052. {
  1053. return (_target->GetType ()).Value ();
  1054. }
  1055. DllExport const char *
  1056. Component_GetTypeName (Urho3D::Component *_target)
  1057. {
  1058. return stringdup((_target->GetTypeName ()).CString ());
  1059. }
  1060. DllExport int
  1061. Component_GetTypeStatic ()
  1062. {
  1063. return (Component::GetTypeStatic ()).Value ();
  1064. }
  1065. DllExport const char *
  1066. Component_GetTypeNameStatic ()
  1067. {
  1068. return stringdup((Component::GetTypeNameStatic ()).CString ());
  1069. }
  1070. DllExport void *
  1071. Component_Component (Urho3D::Context * context)
  1072. {
  1073. return WeakPtr<Component>(new Component(context));
  1074. }
  1075. DllExport void
  1076. Component_OnSetEnabled (Urho3D::Component *_target)
  1077. {
  1078. _target->OnSetEnabled ();
  1079. }
  1080. DllExport int
  1081. Component_Save_File (Urho3D::Component *_target, File * dest)
  1082. {
  1083. return _target->Save (*dest);
  1084. }
  1085. DllExport int
  1086. Component_Save_MemoryBuffer (Urho3D::Component *_target, MemoryBuffer * dest)
  1087. {
  1088. return _target->Save (*dest);
  1089. }
  1090. DllExport int
  1091. Component_SaveXML (Urho3D::Component *_target, Urho3D::XMLElement & dest)
  1092. {
  1093. return _target->SaveXML (dest);
  1094. }
  1095. DllExport void
  1096. Component_MarkNetworkUpdate (Urho3D::Component *_target)
  1097. {
  1098. _target->MarkNetworkUpdate ();
  1099. }
  1100. DllExport void
  1101. Component_DrawDebugGeometry (Urho3D::Component *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  1102. {
  1103. _target->DrawDebugGeometry (debug, depthTest);
  1104. }
  1105. DllExport void
  1106. Component_SetEnabled (Urho3D::Component *_target, bool enable)
  1107. {
  1108. _target->SetEnabled (enable);
  1109. }
  1110. DllExport void
  1111. Component_Remove (Urho3D::Component *_target)
  1112. {
  1113. _target->Remove ();
  1114. }
  1115. DllExport unsigned int
  1116. Component_GetID (Urho3D::Component *_target)
  1117. {
  1118. return _target->GetID ();
  1119. }
  1120. DllExport Urho3D::Node *
  1121. Component_GetNode (Urho3D::Component *_target)
  1122. {
  1123. return _target->GetNode ();
  1124. }
  1125. DllExport Urho3D::Scene *
  1126. Component_GetScene (Urho3D::Component *_target)
  1127. {
  1128. return _target->GetScene ();
  1129. }
  1130. DllExport int
  1131. Component_IsEnabled (Urho3D::Component *_target)
  1132. {
  1133. return _target->IsEnabled ();
  1134. }
  1135. DllExport int
  1136. Component_IsEnabledEffective (Urho3D::Component *_target)
  1137. {
  1138. return _target->IsEnabledEffective ();
  1139. }
  1140. DllExport Urho3D::Component *
  1141. Component_GetComponent (Urho3D::Component *_target, int type)
  1142. {
  1143. return _target->GetComponent (Urho3D::StringHash(type));
  1144. }
  1145. DllExport void
  1146. Component_AddReplicationState (Urho3D::Component *_target, Urho3D::ComponentReplicationState * state)
  1147. {
  1148. _target->AddReplicationState (state);
  1149. }
  1150. DllExport void
  1151. Component_PrepareNetworkUpdate (Urho3D::Component *_target)
  1152. {
  1153. _target->PrepareNetworkUpdate ();
  1154. }
  1155. DllExport void
  1156. Component_CleanupConnection (Urho3D::Component *_target, Urho3D::Connection * connection)
  1157. {
  1158. _target->CleanupConnection (connection);
  1159. }
  1160. DllExport int
  1161. Time_GetType (Urho3D::Time *_target)
  1162. {
  1163. return (_target->GetType ()).Value ();
  1164. }
  1165. DllExport const char *
  1166. Time_GetTypeName (Urho3D::Time *_target)
  1167. {
  1168. return stringdup((_target->GetTypeName ()).CString ());
  1169. }
  1170. DllExport int
  1171. Time_GetTypeStatic ()
  1172. {
  1173. return (Time::GetTypeStatic ()).Value ();
  1174. }
  1175. DllExport const char *
  1176. Time_GetTypeNameStatic ()
  1177. {
  1178. return stringdup((Time::GetTypeNameStatic ()).CString ());
  1179. }
  1180. DllExport void *
  1181. Time_Time (Urho3D::Context * context)
  1182. {
  1183. return WeakPtr<Time>(new Time(context));
  1184. }
  1185. DllExport void
  1186. Time_BeginFrame (Urho3D::Time *_target, float timeStep)
  1187. {
  1188. _target->BeginFrame (timeStep);
  1189. }
  1190. DllExport void
  1191. Time_EndFrame (Urho3D::Time *_target)
  1192. {
  1193. _target->EndFrame ();
  1194. }
  1195. DllExport void
  1196. Time_SetTimerPeriod (Urho3D::Time *_target, unsigned int mSec)
  1197. {
  1198. _target->SetTimerPeriod (mSec);
  1199. }
  1200. DllExport unsigned int
  1201. Time_GetFrameNumber (Urho3D::Time *_target)
  1202. {
  1203. return _target->GetFrameNumber ();
  1204. }
  1205. DllExport float
  1206. Time_GetTimeStep (Urho3D::Time *_target)
  1207. {
  1208. return _target->GetTimeStep ();
  1209. }
  1210. DllExport unsigned int
  1211. Time_GetTimerPeriod (Urho3D::Time *_target)
  1212. {
  1213. return _target->GetTimerPeriod ();
  1214. }
  1215. DllExport float
  1216. Time_GetElapsedTime (Urho3D::Time *_target)
  1217. {
  1218. return _target->GetElapsedTime ();
  1219. }
  1220. DllExport unsigned int
  1221. Time_GetSystemTime ()
  1222. {
  1223. return Time::GetSystemTime ();
  1224. }
  1225. DllExport unsigned int
  1226. Time_GetTimeSinceEpoch ()
  1227. {
  1228. return Time::GetTimeSinceEpoch ();
  1229. }
  1230. DllExport const char *
  1231. Time_GetTimeStamp ()
  1232. {
  1233. return stringdup((Time::GetTimeStamp ()).CString ());
  1234. }
  1235. DllExport void
  1236. Time_Sleep (unsigned int mSec)
  1237. {
  1238. Time::Sleep (mSec);
  1239. }
  1240. DllExport int
  1241. Resource_GetType (Urho3D::Resource *_target)
  1242. {
  1243. return (_target->GetType ()).Value ();
  1244. }
  1245. DllExport const char *
  1246. Resource_GetTypeName (Urho3D::Resource *_target)
  1247. {
  1248. return stringdup((_target->GetTypeName ()).CString ());
  1249. }
  1250. DllExport int
  1251. Resource_GetTypeStatic ()
  1252. {
  1253. return (Resource::GetTypeStatic ()).Value ();
  1254. }
  1255. DllExport const char *
  1256. Resource_GetTypeNameStatic ()
  1257. {
  1258. return stringdup((Resource::GetTypeNameStatic ()).CString ());
  1259. }
  1260. DllExport void *
  1261. Resource_Resource (Urho3D::Context * context)
  1262. {
  1263. return WeakPtr<Resource>(new Resource(context));
  1264. }
  1265. DllExport int
  1266. Resource_Load_File (Urho3D::Resource *_target, File * source)
  1267. {
  1268. return _target->Load (*source);
  1269. }
  1270. DllExport int
  1271. Resource_Load_MemoryBuffer (Urho3D::Resource *_target, MemoryBuffer * source)
  1272. {
  1273. return _target->Load (*source);
  1274. }
  1275. DllExport int
  1276. Resource_BeginLoad_File (Urho3D::Resource *_target, File * source)
  1277. {
  1278. return _target->BeginLoad (*source);
  1279. }
  1280. DllExport int
  1281. Resource_BeginLoad_MemoryBuffer (Urho3D::Resource *_target, MemoryBuffer * source)
  1282. {
  1283. return _target->BeginLoad (*source);
  1284. }
  1285. DllExport int
  1286. Resource_EndLoad (Urho3D::Resource *_target)
  1287. {
  1288. return _target->EndLoad ();
  1289. }
  1290. DllExport int
  1291. Resource_Save_File (Urho3D::Resource *_target, File * dest)
  1292. {
  1293. return _target->Save (*dest);
  1294. }
  1295. DllExport int
  1296. Resource_Save_MemoryBuffer (Urho3D::Resource *_target, MemoryBuffer * dest)
  1297. {
  1298. return _target->Save (*dest);
  1299. }
  1300. DllExport int
  1301. Resource_Load0 (Urho3D::Resource *_target, const char * fileName)
  1302. {
  1303. return _target->Load (Urho3D::String(fileName));
  1304. }
  1305. DllExport int
  1306. Resource_Save1 (Urho3D::Resource *_target, const char * fileName)
  1307. {
  1308. return _target->Save (Urho3D::String(fileName));
  1309. }
  1310. DllExport void
  1311. Resource_SetName (Urho3D::Resource *_target, const char * name)
  1312. {
  1313. _target->SetName (Urho3D::String(name));
  1314. }
  1315. DllExport void
  1316. Resource_SetMemoryUse (Urho3D::Resource *_target, unsigned int size)
  1317. {
  1318. _target->SetMemoryUse (size);
  1319. }
  1320. DllExport void
  1321. Resource_ResetUseTimer (Urho3D::Resource *_target)
  1322. {
  1323. _target->ResetUseTimer ();
  1324. }
  1325. DllExport void
  1326. Resource_SetAsyncLoadState (Urho3D::Resource *_target, enum Urho3D::AsyncLoadState newState)
  1327. {
  1328. _target->SetAsyncLoadState (newState);
  1329. }
  1330. DllExport const char *
  1331. Resource_GetName (Urho3D::Resource *_target)
  1332. {
  1333. return stringdup((_target->GetName ()).CString ());
  1334. }
  1335. DllExport int
  1336. Resource_GetNameHash (Urho3D::Resource *_target)
  1337. {
  1338. return (_target->GetNameHash ()).Value ();
  1339. }
  1340. DllExport unsigned int
  1341. Resource_GetMemoryUse (Urho3D::Resource *_target)
  1342. {
  1343. return _target->GetMemoryUse ();
  1344. }
  1345. DllExport unsigned int
  1346. Resource_GetUseTimer (Urho3D::Resource *_target)
  1347. {
  1348. return _target->GetUseTimer ();
  1349. }
  1350. DllExport enum Urho3D::AsyncLoadState
  1351. Resource_GetAsyncLoadState (Urho3D::Resource *_target)
  1352. {
  1353. return _target->GetAsyncLoadState ();
  1354. }
  1355. DllExport int
  1356. Sprite2D_GetType (Urho3D::Sprite2D *_target)
  1357. {
  1358. return (_target->GetType ()).Value ();
  1359. }
  1360. DllExport const char *
  1361. Sprite2D_GetTypeName (Urho3D::Sprite2D *_target)
  1362. {
  1363. return stringdup((_target->GetTypeName ()).CString ());
  1364. }
  1365. DllExport int
  1366. Sprite2D_GetTypeStatic ()
  1367. {
  1368. return (Sprite2D::GetTypeStatic ()).Value ();
  1369. }
  1370. DllExport const char *
  1371. Sprite2D_GetTypeNameStatic ()
  1372. {
  1373. return stringdup((Sprite2D::GetTypeNameStatic ()).CString ());
  1374. }
  1375. DllExport void *
  1376. Sprite2D_Sprite2D (Urho3D::Context * context)
  1377. {
  1378. return WeakPtr<Sprite2D>(new Sprite2D(context));
  1379. }
  1380. DllExport void
  1381. Sprite2D_RegisterObject (Urho3D::Context * context)
  1382. {
  1383. Sprite2D::RegisterObject (context);
  1384. }
  1385. DllExport int
  1386. Sprite2D_BeginLoad_File (Urho3D::Sprite2D *_target, File * source)
  1387. {
  1388. return _target->BeginLoad (*source);
  1389. }
  1390. DllExport int
  1391. Sprite2D_BeginLoad_MemoryBuffer (Urho3D::Sprite2D *_target, MemoryBuffer * source)
  1392. {
  1393. return _target->BeginLoad (*source);
  1394. }
  1395. DllExport int
  1396. Sprite2D_EndLoad (Urho3D::Sprite2D *_target)
  1397. {
  1398. return _target->EndLoad ();
  1399. }
  1400. DllExport void
  1401. Sprite2D_SetTexture (Urho3D::Sprite2D *_target, Urho3D::Texture2D * texture)
  1402. {
  1403. _target->SetTexture (texture);
  1404. }
  1405. DllExport void
  1406. Sprite2D_SetRectangle (Urho3D::Sprite2D *_target, const class Urho3D::IntRect & rectangle)
  1407. {
  1408. _target->SetRectangle (rectangle);
  1409. }
  1410. DllExport void
  1411. Sprite2D_SetHotSpot (Urho3D::Sprite2D *_target, const class Urho3D::Vector2 & hotSpot)
  1412. {
  1413. _target->SetHotSpot (hotSpot);
  1414. }
  1415. DllExport void
  1416. Sprite2D_SetOffset (Urho3D::Sprite2D *_target, const class Urho3D::IntVector2 & offset)
  1417. {
  1418. _target->SetOffset (offset);
  1419. }
  1420. DllExport void
  1421. Sprite2D_SetTextureEdgeOffset (Urho3D::Sprite2D *_target, float offset)
  1422. {
  1423. _target->SetTextureEdgeOffset (offset);
  1424. }
  1425. DllExport void
  1426. Sprite2D_SetSpriteSheet (Urho3D::Sprite2D *_target, Urho3D::SpriteSheet2D * spriteSheet)
  1427. {
  1428. _target->SetSpriteSheet (spriteSheet);
  1429. }
  1430. DllExport Urho3D::Texture2D *
  1431. Sprite2D_GetTexture (Urho3D::Sprite2D *_target)
  1432. {
  1433. return _target->GetTexture ();
  1434. }
  1435. DllExport const class Urho3D::IntRect &
  1436. Sprite2D_GetRectangle (Urho3D::Sprite2D *_target)
  1437. {
  1438. return _target->GetRectangle ();
  1439. }
  1440. DllExport Interop::Vector2
  1441. Sprite2D_GetHotSpot (Urho3D::Sprite2D *_target)
  1442. {
  1443. return *((Interop::Vector2 *) &(_target->GetHotSpot ()));
  1444. }
  1445. DllExport Interop::IntVector2
  1446. Sprite2D_GetOffset (Urho3D::Sprite2D *_target)
  1447. {
  1448. return *((Interop::IntVector2 *) &(_target->GetOffset ()));
  1449. }
  1450. DllExport float
  1451. Sprite2D_GetTextureEdgeOffset (Urho3D::Sprite2D *_target)
  1452. {
  1453. return _target->GetTextureEdgeOffset ();
  1454. }
  1455. DllExport Urho3D::SpriteSheet2D *
  1456. Sprite2D_GetSpriteSheet (Urho3D::Sprite2D *_target)
  1457. {
  1458. return _target->GetSpriteSheet ();
  1459. }
  1460. DllExport Urho3D::ResourceRef
  1461. Sprite2D_SaveToResourceRef (Urho3D::Sprite2D * sprite)
  1462. {
  1463. return Sprite2D::SaveToResourceRef (sprite);
  1464. }
  1465. DllExport void *
  1466. PropertySet2D_PropertySet2D ()
  1467. {
  1468. return WeakPtr<PropertySet2D>(new PropertySet2D());
  1469. }
  1470. DllExport void
  1471. PropertySet2D_Load (Urho3D::PropertySet2D *_target, const class Urho3D::XMLElement & element)
  1472. {
  1473. _target->Load (element);
  1474. }
  1475. DllExport int
  1476. PropertySet2D_HasProperty (Urho3D::PropertySet2D *_target, const char * name)
  1477. {
  1478. return _target->HasProperty (Urho3D::String(name));
  1479. }
  1480. DllExport const char *
  1481. PropertySet2D_GetProperty (Urho3D::PropertySet2D *_target, const char * name)
  1482. {
  1483. return stringdup((_target->GetProperty (Urho3D::String(name))).CString ());
  1484. }
  1485. DllExport void *
  1486. Tile2D_Tile2D ()
  1487. {
  1488. return WeakPtr<Tile2D>(new Tile2D());
  1489. }
  1490. DllExport int
  1491. Tile2D_GetGid (Urho3D::Tile2D *_target)
  1492. {
  1493. return _target->GetGid ();
  1494. }
  1495. DllExport Urho3D::Sprite2D *
  1496. Tile2D_GetSprite (Urho3D::Tile2D *_target)
  1497. {
  1498. return _target->GetSprite ();
  1499. }
  1500. DllExport int
  1501. Tile2D_HasProperty (Urho3D::Tile2D *_target, const char * name)
  1502. {
  1503. return _target->HasProperty (Urho3D::String(name));
  1504. }
  1505. DllExport const char *
  1506. Tile2D_GetProperty (Urho3D::Tile2D *_target, const char * name)
  1507. {
  1508. return stringdup((_target->GetProperty (Urho3D::String(name))).CString ());
  1509. }
  1510. DllExport void *
  1511. TileMapObject2D_TileMapObject2D ()
  1512. {
  1513. return WeakPtr<TileMapObject2D>(new TileMapObject2D());
  1514. }
  1515. DllExport enum Urho3D::TileMapObjectType2D
  1516. TileMapObject2D_GetObjectType (Urho3D::TileMapObject2D *_target)
  1517. {
  1518. return _target->GetObjectType ();
  1519. }
  1520. DllExport const char *
  1521. TileMapObject2D_GetName (Urho3D::TileMapObject2D *_target)
  1522. {
  1523. return stringdup((_target->GetName ()).CString ());
  1524. }
  1525. DllExport const char *
  1526. TileMapObject2D_GetType (Urho3D::TileMapObject2D *_target)
  1527. {
  1528. return stringdup((_target->GetType ()).CString ());
  1529. }
  1530. DllExport Interop::Vector2
  1531. TileMapObject2D_GetPosition (Urho3D::TileMapObject2D *_target)
  1532. {
  1533. return *((Interop::Vector2 *) &(_target->GetPosition ()));
  1534. }
  1535. DllExport Interop::Vector2
  1536. TileMapObject2D_GetSize (Urho3D::TileMapObject2D *_target)
  1537. {
  1538. return *((Interop::Vector2 *) &(_target->GetSize ()));
  1539. }
  1540. DllExport unsigned int
  1541. TileMapObject2D_GetNumPoints (Urho3D::TileMapObject2D *_target)
  1542. {
  1543. return _target->GetNumPoints ();
  1544. }
  1545. DllExport Interop::Vector2
  1546. TileMapObject2D_GetPoint (Urho3D::TileMapObject2D *_target, unsigned int index)
  1547. {
  1548. return *((Interop::Vector2 *) &(_target->GetPoint (index)));
  1549. }
  1550. DllExport int
  1551. TileMapObject2D_GetTileGid (Urho3D::TileMapObject2D *_target)
  1552. {
  1553. return _target->GetTileGid ();
  1554. }
  1555. DllExport Urho3D::Sprite2D *
  1556. TileMapObject2D_GetTileSprite (Urho3D::TileMapObject2D *_target)
  1557. {
  1558. return _target->GetTileSprite ();
  1559. }
  1560. DllExport int
  1561. TileMapObject2D_HasProperty (Urho3D::TileMapObject2D *_target, const char * name)
  1562. {
  1563. return _target->HasProperty (Urho3D::String(name));
  1564. }
  1565. DllExport const char *
  1566. TileMapObject2D_GetProperty (Urho3D::TileMapObject2D *_target, const char * name)
  1567. {
  1568. return stringdup((_target->GetProperty (Urho3D::String(name))).CString ());
  1569. }
  1570. DllExport int
  1571. TileMapLayer2D_GetType (Urho3D::TileMapLayer2D *_target)
  1572. {
  1573. return (_target->GetType ()).Value ();
  1574. }
  1575. DllExport const char *
  1576. TileMapLayer2D_GetTypeName (Urho3D::TileMapLayer2D *_target)
  1577. {
  1578. return stringdup((_target->GetTypeName ()).CString ());
  1579. }
  1580. DllExport int
  1581. TileMapLayer2D_GetTypeStatic ()
  1582. {
  1583. return (TileMapLayer2D::GetTypeStatic ()).Value ();
  1584. }
  1585. DllExport const char *
  1586. TileMapLayer2D_GetTypeNameStatic ()
  1587. {
  1588. return stringdup((TileMapLayer2D::GetTypeNameStatic ()).CString ());
  1589. }
  1590. DllExport void *
  1591. TileMapLayer2D_TileMapLayer2D (Urho3D::Context * context)
  1592. {
  1593. return WeakPtr<TileMapLayer2D>(new TileMapLayer2D(context));
  1594. }
  1595. DllExport void
  1596. TileMapLayer2D_RegisterObject (Urho3D::Context * context)
  1597. {
  1598. TileMapLayer2D::RegisterObject (context);
  1599. }
  1600. DllExport void
  1601. TileMapLayer2D_DrawDebugGeometry (Urho3D::TileMapLayer2D *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  1602. {
  1603. _target->DrawDebugGeometry (debug, depthTest);
  1604. }
  1605. DllExport void
  1606. TileMapLayer2D_Initialize (Urho3D::TileMapLayer2D *_target, Urho3D::TileMap2D * tileMap, const class Urho3D::TmxLayer2D * tmxLayer)
  1607. {
  1608. _target->Initialize (tileMap, tmxLayer);
  1609. }
  1610. DllExport void
  1611. TileMapLayer2D_SetDrawOrder (Urho3D::TileMapLayer2D *_target, int drawOrder)
  1612. {
  1613. _target->SetDrawOrder (drawOrder);
  1614. }
  1615. DllExport void
  1616. TileMapLayer2D_SetVisible (Urho3D::TileMapLayer2D *_target, bool visible)
  1617. {
  1618. _target->SetVisible (visible);
  1619. }
  1620. DllExport Urho3D::TileMap2D *
  1621. TileMapLayer2D_GetTileMap (Urho3D::TileMapLayer2D *_target)
  1622. {
  1623. return _target->GetTileMap ();
  1624. }
  1625. DllExport const class Urho3D::TmxLayer2D *
  1626. TileMapLayer2D_GetTmxLayer (Urho3D::TileMapLayer2D *_target)
  1627. {
  1628. return _target->GetTmxLayer ();
  1629. }
  1630. DllExport int
  1631. TileMapLayer2D_GetDrawOrder (Urho3D::TileMapLayer2D *_target)
  1632. {
  1633. return _target->GetDrawOrder ();
  1634. }
  1635. DllExport int
  1636. TileMapLayer2D_IsVisible (Urho3D::TileMapLayer2D *_target)
  1637. {
  1638. return _target->IsVisible ();
  1639. }
  1640. DllExport int
  1641. TileMapLayer2D_HasProperty (Urho3D::TileMapLayer2D *_target, const char * name)
  1642. {
  1643. return _target->HasProperty (Urho3D::String(name));
  1644. }
  1645. DllExport const char *
  1646. TileMapLayer2D_GetProperty (Urho3D::TileMapLayer2D *_target, const char * name)
  1647. {
  1648. return stringdup((_target->GetProperty (Urho3D::String(name))).CString ());
  1649. }
  1650. DllExport enum Urho3D::TileMapLayerType2D
  1651. TileMapLayer2D_GetLayerType (Urho3D::TileMapLayer2D *_target)
  1652. {
  1653. return _target->GetLayerType ();
  1654. }
  1655. DllExport int
  1656. TileMapLayer2D_GetWidth (Urho3D::TileMapLayer2D *_target)
  1657. {
  1658. return _target->GetWidth ();
  1659. }
  1660. DllExport int
  1661. TileMapLayer2D_GetHeight (Urho3D::TileMapLayer2D *_target)
  1662. {
  1663. return _target->GetHeight ();
  1664. }
  1665. DllExport Urho3D::Node *
  1666. TileMapLayer2D_GetTileNode (Urho3D::TileMapLayer2D *_target, int x, int y)
  1667. {
  1668. return _target->GetTileNode (x, y);
  1669. }
  1670. DllExport Urho3D::Tile2D *
  1671. TileMapLayer2D_GetTile (Urho3D::TileMapLayer2D *_target, int x, int y)
  1672. {
  1673. return _target->GetTile (x, y);
  1674. }
  1675. DllExport unsigned int
  1676. TileMapLayer2D_GetNumObjects (Urho3D::TileMapLayer2D *_target)
  1677. {
  1678. return _target->GetNumObjects ();
  1679. }
  1680. DllExport Urho3D::TileMapObject2D *
  1681. TileMapLayer2D_GetObject (Urho3D::TileMapLayer2D *_target, unsigned int index)
  1682. {
  1683. return _target->GetObject (index);
  1684. }
  1685. DllExport Urho3D::Node *
  1686. TileMapLayer2D_GetObjectNode (Urho3D::TileMapLayer2D *_target, unsigned int index)
  1687. {
  1688. return _target->GetObjectNode (index);
  1689. }
  1690. DllExport Urho3D::Node *
  1691. TileMapLayer2D_GetImageNode (Urho3D::TileMapLayer2D *_target)
  1692. {
  1693. return _target->GetImageNode ();
  1694. }
  1695. DllExport void *
  1696. TmxLayer2D_TmxLayer2D (Urho3D::TmxFile2D * tmxFile, enum Urho3D::TileMapLayerType2D type)
  1697. {
  1698. return WeakPtr<TmxLayer2D>(new TmxLayer2D(tmxFile, type));
  1699. }
  1700. DllExport Urho3D::TmxFile2D *
  1701. TmxLayer2D_GetTmxFile (Urho3D::TmxLayer2D *_target)
  1702. {
  1703. return _target->GetTmxFile ();
  1704. }
  1705. DllExport enum Urho3D::TileMapLayerType2D
  1706. TmxLayer2D_GetType (Urho3D::TmxLayer2D *_target)
  1707. {
  1708. return _target->GetType ();
  1709. }
  1710. DllExport const char *
  1711. TmxLayer2D_GetName (Urho3D::TmxLayer2D *_target)
  1712. {
  1713. return stringdup((_target->GetName ()).CString ());
  1714. }
  1715. DllExport int
  1716. TmxLayer2D_GetWidth (Urho3D::TmxLayer2D *_target)
  1717. {
  1718. return _target->GetWidth ();
  1719. }
  1720. DllExport int
  1721. TmxLayer2D_GetHeight (Urho3D::TmxLayer2D *_target)
  1722. {
  1723. return _target->GetHeight ();
  1724. }
  1725. DllExport int
  1726. TmxLayer2D_IsVisible (Urho3D::TmxLayer2D *_target)
  1727. {
  1728. return _target->IsVisible ();
  1729. }
  1730. DllExport int
  1731. TmxLayer2D_HasProperty (Urho3D::TmxLayer2D *_target, const char * name)
  1732. {
  1733. return _target->HasProperty (Urho3D::String(name));
  1734. }
  1735. DllExport const char *
  1736. TmxLayer2D_GetProperty (Urho3D::TmxLayer2D *_target, const char * name)
  1737. {
  1738. return stringdup((_target->GetProperty (Urho3D::String(name))).CString ());
  1739. }
  1740. DllExport void *
  1741. TmxTileLayer2D_TmxTileLayer2D (Urho3D::TmxFile2D * tmxFile)
  1742. {
  1743. return WeakPtr<TmxTileLayer2D>(new TmxTileLayer2D(tmxFile));
  1744. }
  1745. DllExport int
  1746. TmxTileLayer2D_Load (Urho3D::TmxTileLayer2D *_target, const class Urho3D::XMLElement & element, const struct Urho3D::TileMapInfo2D & info)
  1747. {
  1748. return _target->Load (element, info);
  1749. }
  1750. DllExport Urho3D::Tile2D *
  1751. TmxTileLayer2D_GetTile (Urho3D::TmxTileLayer2D *_target, int x, int y)
  1752. {
  1753. return _target->GetTile (x, y);
  1754. }
  1755. DllExport void *
  1756. TmxObjectGroup2D_TmxObjectGroup2D (Urho3D::TmxFile2D * tmxFile)
  1757. {
  1758. return WeakPtr<TmxObjectGroup2D>(new TmxObjectGroup2D(tmxFile));
  1759. }
  1760. DllExport int
  1761. TmxObjectGroup2D_Load (Urho3D::TmxObjectGroup2D *_target, const class Urho3D::XMLElement & element, const struct Urho3D::TileMapInfo2D & info)
  1762. {
  1763. return _target->Load (element, info);
  1764. }
  1765. DllExport unsigned int
  1766. TmxObjectGroup2D_GetNumObjects (Urho3D::TmxObjectGroup2D *_target)
  1767. {
  1768. return _target->GetNumObjects ();
  1769. }
  1770. DllExport Urho3D::TileMapObject2D *
  1771. TmxObjectGroup2D_GetObject (Urho3D::TmxObjectGroup2D *_target, unsigned int index)
  1772. {
  1773. return _target->GetObject (index);
  1774. }
  1775. DllExport void *
  1776. TmxImageLayer2D_TmxImageLayer2D (Urho3D::TmxFile2D * tmxFile)
  1777. {
  1778. return WeakPtr<TmxImageLayer2D>(new TmxImageLayer2D(tmxFile));
  1779. }
  1780. DllExport int
  1781. TmxImageLayer2D_Load (Urho3D::TmxImageLayer2D *_target, const class Urho3D::XMLElement & element, const struct Urho3D::TileMapInfo2D & info)
  1782. {
  1783. return _target->Load (element, info);
  1784. }
  1785. DllExport Interop::Vector2
  1786. TmxImageLayer2D_GetPosition (Urho3D::TmxImageLayer2D *_target)
  1787. {
  1788. return *((Interop::Vector2 *) &(_target->GetPosition ()));
  1789. }
  1790. DllExport const char *
  1791. TmxImageLayer2D_GetSource (Urho3D::TmxImageLayer2D *_target)
  1792. {
  1793. return stringdup((_target->GetSource ()).CString ());
  1794. }
  1795. DllExport Urho3D::Sprite2D *
  1796. TmxImageLayer2D_GetSprite (Urho3D::TmxImageLayer2D *_target)
  1797. {
  1798. return _target->GetSprite ();
  1799. }
  1800. DllExport int
  1801. TmxFile2D_GetType (Urho3D::TmxFile2D *_target)
  1802. {
  1803. return (_target->GetType ()).Value ();
  1804. }
  1805. DllExport const char *
  1806. TmxFile2D_GetTypeName (Urho3D::TmxFile2D *_target)
  1807. {
  1808. return stringdup((_target->GetTypeName ()).CString ());
  1809. }
  1810. DllExport int
  1811. TmxFile2D_GetTypeStatic ()
  1812. {
  1813. return (TmxFile2D::GetTypeStatic ()).Value ();
  1814. }
  1815. DllExport const char *
  1816. TmxFile2D_GetTypeNameStatic ()
  1817. {
  1818. return stringdup((TmxFile2D::GetTypeNameStatic ()).CString ());
  1819. }
  1820. DllExport void *
  1821. TmxFile2D_TmxFile2D (Urho3D::Context * context)
  1822. {
  1823. return WeakPtr<TmxFile2D>(new TmxFile2D(context));
  1824. }
  1825. DllExport void
  1826. TmxFile2D_RegisterObject (Urho3D::Context * context)
  1827. {
  1828. TmxFile2D::RegisterObject (context);
  1829. }
  1830. DllExport int
  1831. TmxFile2D_BeginLoad_File (Urho3D::TmxFile2D *_target, File * source)
  1832. {
  1833. return _target->BeginLoad (*source);
  1834. }
  1835. DllExport int
  1836. TmxFile2D_BeginLoad_MemoryBuffer (Urho3D::TmxFile2D *_target, MemoryBuffer * source)
  1837. {
  1838. return _target->BeginLoad (*source);
  1839. }
  1840. DllExport int
  1841. TmxFile2D_EndLoad (Urho3D::TmxFile2D *_target)
  1842. {
  1843. return _target->EndLoad ();
  1844. }
  1845. DllExport int
  1846. TmxFile2D_SetInfo (Urho3D::TmxFile2D *_target, enum Urho3D::Orientation2D orientation, int width, int height, float tileWidth, float tileHeight)
  1847. {
  1848. return _target->SetInfo (orientation, width, height, tileWidth, tileHeight);
  1849. }
  1850. DllExport void
  1851. TmxFile2D_AddLayer (Urho3D::TmxFile2D *_target, unsigned int index, Urho3D::TmxLayer2D * layer)
  1852. {
  1853. _target->AddLayer (index, layer);
  1854. }
  1855. DllExport Urho3D::TileMapInfo2D
  1856. TmxFile2D_GetInfo (Urho3D::TmxFile2D *_target)
  1857. {
  1858. return _target->GetInfo ();
  1859. }
  1860. DllExport Urho3D::Sprite2D *
  1861. TmxFile2D_GetTileSprite (Urho3D::TmxFile2D *_target, int gid)
  1862. {
  1863. return _target->GetTileSprite (gid);
  1864. }
  1865. DllExport Urho3D::PropertySet2D *
  1866. TmxFile2D_GetTilePropertySet (Urho3D::TmxFile2D *_target, int gid)
  1867. {
  1868. return _target->GetTilePropertySet (gid);
  1869. }
  1870. DllExport unsigned int
  1871. TmxFile2D_GetNumLayers (Urho3D::TmxFile2D *_target)
  1872. {
  1873. return _target->GetNumLayers ();
  1874. }
  1875. DllExport const class Urho3D::TmxLayer2D *
  1876. TmxFile2D_GetLayer (Urho3D::TmxFile2D *_target, unsigned int index)
  1877. {
  1878. return _target->GetLayer (index);
  1879. }
  1880. DllExport int
  1881. MessageBox_GetType (Urho3D::MessageBox *_target)
  1882. {
  1883. return (_target->GetType ()).Value ();
  1884. }
  1885. DllExport const char *
  1886. MessageBox_GetTypeName (Urho3D::MessageBox *_target)
  1887. {
  1888. return stringdup((_target->GetTypeName ()).CString ());
  1889. }
  1890. DllExport int
  1891. MessageBox_GetTypeStatic ()
  1892. {
  1893. return (MessageBox::GetTypeStatic ()).Value ();
  1894. }
  1895. DllExport const char *
  1896. MessageBox_GetTypeNameStatic ()
  1897. {
  1898. return stringdup((MessageBox::GetTypeNameStatic ()).CString ());
  1899. }
  1900. DllExport void *
  1901. MessageBox_MessageBox (Urho3D::Context * context, const char * messageString, const char * titleString, Urho3D::XMLFile * layoutFile, Urho3D::XMLFile * styleFile)
  1902. {
  1903. return WeakPtr<MessageBox>(new MessageBox(context, Urho3D::String(messageString), Urho3D::String(titleString), layoutFile, styleFile));
  1904. }
  1905. DllExport void
  1906. MessageBox_RegisterObject (Urho3D::Context * context)
  1907. {
  1908. MessageBox::RegisterObject (context);
  1909. }
  1910. DllExport void
  1911. MessageBox_SetTitle (Urho3D::MessageBox *_target, const char * text)
  1912. {
  1913. _target->SetTitle (Urho3D::String(text));
  1914. }
  1915. DllExport void
  1916. MessageBox_SetMessage (Urho3D::MessageBox *_target, const char * text)
  1917. {
  1918. _target->SetMessage (Urho3D::String(text));
  1919. }
  1920. DllExport const char *
  1921. MessageBox_GetTitle (Urho3D::MessageBox *_target)
  1922. {
  1923. return stringdup((_target->GetTitle ()).CString ());
  1924. }
  1925. DllExport const char *
  1926. MessageBox_GetMessage (Urho3D::MessageBox *_target)
  1927. {
  1928. return stringdup((_target->GetMessage ()).CString ());
  1929. }
  1930. DllExport Urho3D::UIElement *
  1931. MessageBox_GetWindow (Urho3D::MessageBox *_target)
  1932. {
  1933. return _target->GetWindow ();
  1934. }
  1935. DllExport int
  1936. Audio_GetType (Urho3D::Audio *_target)
  1937. {
  1938. return (_target->GetType ()).Value ();
  1939. }
  1940. DllExport const char *
  1941. Audio_GetTypeName (Urho3D::Audio *_target)
  1942. {
  1943. return stringdup((_target->GetTypeName ()).CString ());
  1944. }
  1945. DllExport int
  1946. Audio_GetTypeStatic ()
  1947. {
  1948. return (Audio::GetTypeStatic ()).Value ();
  1949. }
  1950. DllExport const char *
  1951. Audio_GetTypeNameStatic ()
  1952. {
  1953. return stringdup((Audio::GetTypeNameStatic ()).CString ());
  1954. }
  1955. DllExport void *
  1956. Audio_Audio (Urho3D::Context * context)
  1957. {
  1958. return WeakPtr<Audio>(new Audio(context));
  1959. }
  1960. DllExport int
  1961. Audio_SetMode (Urho3D::Audio *_target, int bufferLengthMSec, int mixRate, bool stereo, bool interpolation)
  1962. {
  1963. return _target->SetMode (bufferLengthMSec, mixRate, stereo, interpolation);
  1964. }
  1965. DllExport void
  1966. Audio_Update (Urho3D::Audio *_target, float timeStep)
  1967. {
  1968. _target->Update (timeStep);
  1969. }
  1970. DllExport int
  1971. Audio_Play (Urho3D::Audio *_target)
  1972. {
  1973. return _target->Play ();
  1974. }
  1975. DllExport void
  1976. Audio_Stop (Urho3D::Audio *_target)
  1977. {
  1978. _target->Stop ();
  1979. }
  1980. DllExport void
  1981. Audio_SetMasterGain (Urho3D::Audio *_target, const char * type, float gain)
  1982. {
  1983. _target->SetMasterGain (Urho3D::String(type), gain);
  1984. }
  1985. DllExport void
  1986. Audio_PauseSoundType (Urho3D::Audio *_target, const char * type)
  1987. {
  1988. _target->PauseSoundType (Urho3D::String(type));
  1989. }
  1990. DllExport void
  1991. Audio_ResumeSoundType (Urho3D::Audio *_target, const char * type)
  1992. {
  1993. _target->ResumeSoundType (Urho3D::String(type));
  1994. }
  1995. DllExport void
  1996. Audio_ResumeAll (Urho3D::Audio *_target)
  1997. {
  1998. _target->ResumeAll ();
  1999. }
  2000. DllExport void
  2001. Audio_SetListener (Urho3D::Audio *_target, Urho3D::SoundListener * listener)
  2002. {
  2003. _target->SetListener (listener);
  2004. }
  2005. DllExport void
  2006. Audio_StopSound (Urho3D::Audio *_target, Urho3D::Sound * sound)
  2007. {
  2008. _target->StopSound (sound);
  2009. }
  2010. DllExport unsigned int
  2011. Audio_GetSampleSize (Urho3D::Audio *_target)
  2012. {
  2013. return _target->GetSampleSize ();
  2014. }
  2015. DllExport int
  2016. Audio_GetMixRate (Urho3D::Audio *_target)
  2017. {
  2018. return _target->GetMixRate ();
  2019. }
  2020. DllExport int
  2021. Audio_GetInterpolation (Urho3D::Audio *_target)
  2022. {
  2023. return _target->GetInterpolation ();
  2024. }
  2025. DllExport int
  2026. Audio_IsStereo (Urho3D::Audio *_target)
  2027. {
  2028. return _target->IsStereo ();
  2029. }
  2030. DllExport int
  2031. Audio_IsPlaying (Urho3D::Audio *_target)
  2032. {
  2033. return _target->IsPlaying ();
  2034. }
  2035. DllExport int
  2036. Audio_IsInitialized (Urho3D::Audio *_target)
  2037. {
  2038. return _target->IsInitialized ();
  2039. }
  2040. DllExport float
  2041. Audio_GetMasterGain (Urho3D::Audio *_target, const char * type)
  2042. {
  2043. return _target->GetMasterGain (Urho3D::String(type));
  2044. }
  2045. DllExport int
  2046. Audio_IsSoundTypePaused (Urho3D::Audio *_target, const char * type)
  2047. {
  2048. return _target->IsSoundTypePaused (Urho3D::String(type));
  2049. }
  2050. DllExport Urho3D::SoundListener *
  2051. Audio_GetListener (Urho3D::Audio *_target)
  2052. {
  2053. return _target->GetListener ();
  2054. }
  2055. DllExport int
  2056. Audio_HasMasterGain (Urho3D::Audio *_target, const char * type)
  2057. {
  2058. return _target->HasMasterGain (Urho3D::String(type));
  2059. }
  2060. DllExport void
  2061. Audio_AddSoundSource (Urho3D::Audio *_target, Urho3D::SoundSource * soundSource)
  2062. {
  2063. _target->AddSoundSource (soundSource);
  2064. }
  2065. DllExport void
  2066. Audio_RemoveSoundSource (Urho3D::Audio *_target, Urho3D::SoundSource * soundSource)
  2067. {
  2068. _target->RemoveSoundSource (soundSource);
  2069. }
  2070. DllExport float
  2071. Audio_GetSoundSourceMasterGain (Urho3D::Audio *_target, int typeHash)
  2072. {
  2073. return _target->GetSoundSourceMasterGain (Urho3D::StringHash(typeHash));
  2074. }
  2075. DllExport void
  2076. Audio_MixOutput (Urho3D::Audio *_target, void * dest, unsigned int samples)
  2077. {
  2078. _target->MixOutput (dest, samples);
  2079. }
  2080. DllExport unsigned int
  2081. SoundStream_GetData (Urho3D::SoundStream *_target, signed char * dest, unsigned int numBytes)
  2082. {
  2083. return _target->GetData (dest, numBytes);
  2084. }
  2085. DllExport void
  2086. SoundStream_SetFormat (Urho3D::SoundStream *_target, unsigned int frequency, bool sixteenBit, bool stereo)
  2087. {
  2088. _target->SetFormat (frequency, sixteenBit, stereo);
  2089. }
  2090. DllExport void
  2091. SoundStream_SetStopAtEnd (Urho3D::SoundStream *_target, bool enable)
  2092. {
  2093. _target->SetStopAtEnd (enable);
  2094. }
  2095. DllExport unsigned int
  2096. SoundStream_GetSampleSize (Urho3D::SoundStream *_target)
  2097. {
  2098. return _target->GetSampleSize ();
  2099. }
  2100. DllExport float
  2101. SoundStream_GetFrequency (Urho3D::SoundStream *_target)
  2102. {
  2103. return _target->GetFrequency ();
  2104. }
  2105. DllExport unsigned int
  2106. SoundStream_GetIntFrequency (Urho3D::SoundStream *_target)
  2107. {
  2108. return _target->GetIntFrequency ();
  2109. }
  2110. DllExport int
  2111. SoundStream_GetStopAtEnd (Urho3D::SoundStream *_target)
  2112. {
  2113. return _target->GetStopAtEnd ();
  2114. }
  2115. DllExport int
  2116. SoundStream_IsSixteenBit (Urho3D::SoundStream *_target)
  2117. {
  2118. return _target->IsSixteenBit ();
  2119. }
  2120. DllExport int
  2121. SoundStream_IsStereo (Urho3D::SoundStream *_target)
  2122. {
  2123. return _target->IsStereo ();
  2124. }
  2125. DllExport void *
  2126. BufferedSoundStream_BufferedSoundStream ()
  2127. {
  2128. return WeakPtr<BufferedSoundStream>(new BufferedSoundStream());
  2129. }
  2130. DllExport unsigned int
  2131. BufferedSoundStream_GetData (Urho3D::BufferedSoundStream *_target, signed char * dest, unsigned int numBytes)
  2132. {
  2133. return _target->GetData (dest, numBytes);
  2134. }
  2135. DllExport void
  2136. BufferedSoundStream_AddData (Urho3D::BufferedSoundStream *_target, void * data, unsigned int numBytes)
  2137. {
  2138. _target->AddData (data, numBytes);
  2139. }
  2140. DllExport void
  2141. BufferedSoundStream_Clear (Urho3D::BufferedSoundStream *_target)
  2142. {
  2143. _target->Clear ();
  2144. }
  2145. DllExport unsigned int
  2146. BufferedSoundStream_GetBufferNumBytes (Urho3D::BufferedSoundStream *_target)
  2147. {
  2148. return _target->GetBufferNumBytes ();
  2149. }
  2150. DllExport float
  2151. BufferedSoundStream_GetBufferLength (Urho3D::BufferedSoundStream *_target)
  2152. {
  2153. return _target->GetBufferLength ();
  2154. }
  2155. DllExport void *
  2156. OggVorbisSoundStream_OggVorbisSoundStream (const class Urho3D::Sound * sound)
  2157. {
  2158. return WeakPtr<OggVorbisSoundStream>(new OggVorbisSoundStream(sound));
  2159. }
  2160. DllExport unsigned int
  2161. OggVorbisSoundStream_GetData (Urho3D::OggVorbisSoundStream *_target, signed char * dest, unsigned int numBytes)
  2162. {
  2163. return _target->GetData (dest, numBytes);
  2164. }
  2165. DllExport int
  2166. Sound_GetType (Urho3D::Sound *_target)
  2167. {
  2168. return (_target->GetType ()).Value ();
  2169. }
  2170. DllExport const char *
  2171. Sound_GetTypeName (Urho3D::Sound *_target)
  2172. {
  2173. return stringdup((_target->GetTypeName ()).CString ());
  2174. }
  2175. DllExport int
  2176. Sound_GetTypeStatic ()
  2177. {
  2178. return (Sound::GetTypeStatic ()).Value ();
  2179. }
  2180. DllExport const char *
  2181. Sound_GetTypeNameStatic ()
  2182. {
  2183. return stringdup((Sound::GetTypeNameStatic ()).CString ());
  2184. }
  2185. DllExport void *
  2186. Sound_Sound (Urho3D::Context * context)
  2187. {
  2188. return WeakPtr<Sound>(new Sound(context));
  2189. }
  2190. DllExport void
  2191. Sound_RegisterObject (Urho3D::Context * context)
  2192. {
  2193. Sound::RegisterObject (context);
  2194. }
  2195. DllExport int
  2196. Sound_BeginLoad_File (Urho3D::Sound *_target, File * source)
  2197. {
  2198. return _target->BeginLoad (*source);
  2199. }
  2200. DllExport int
  2201. Sound_BeginLoad_MemoryBuffer (Urho3D::Sound *_target, MemoryBuffer * source)
  2202. {
  2203. return _target->BeginLoad (*source);
  2204. }
  2205. DllExport int
  2206. Sound_LoadRaw_File (Urho3D::Sound *_target, File * source)
  2207. {
  2208. return _target->LoadRaw (*source);
  2209. }
  2210. DllExport int
  2211. Sound_LoadRaw_MemoryBuffer (Urho3D::Sound *_target, MemoryBuffer * source)
  2212. {
  2213. return _target->LoadRaw (*source);
  2214. }
  2215. DllExport int
  2216. Sound_LoadWav_File (Urho3D::Sound *_target, File * source)
  2217. {
  2218. return _target->LoadWav (*source);
  2219. }
  2220. DllExport int
  2221. Sound_LoadWav_MemoryBuffer (Urho3D::Sound *_target, MemoryBuffer * source)
  2222. {
  2223. return _target->LoadWav (*source);
  2224. }
  2225. DllExport int
  2226. Sound_LoadOggVorbis_File (Urho3D::Sound *_target, File * source)
  2227. {
  2228. return _target->LoadOggVorbis (*source);
  2229. }
  2230. DllExport int
  2231. Sound_LoadOggVorbis_MemoryBuffer (Urho3D::Sound *_target, MemoryBuffer * source)
  2232. {
  2233. return _target->LoadOggVorbis (*source);
  2234. }
  2235. DllExport void
  2236. Sound_SetSize (Urho3D::Sound *_target, unsigned int dataSize)
  2237. {
  2238. _target->SetSize (dataSize);
  2239. }
  2240. DllExport void
  2241. Sound_SetData (Urho3D::Sound *_target, const void * data, unsigned int dataSize)
  2242. {
  2243. _target->SetData (data, dataSize);
  2244. }
  2245. DllExport void
  2246. Sound_SetFormat (Urho3D::Sound *_target, unsigned int frequency, bool sixteenBit, bool stereo)
  2247. {
  2248. _target->SetFormat (frequency, sixteenBit, stereo);
  2249. }
  2250. DllExport void
  2251. Sound_SetLooped (Urho3D::Sound *_target, bool enable)
  2252. {
  2253. _target->SetLooped (enable);
  2254. }
  2255. DllExport void
  2256. Sound_SetLoop (Urho3D::Sound *_target, unsigned int repeatOffset, unsigned int endOffset)
  2257. {
  2258. _target->SetLoop (repeatOffset, endOffset);
  2259. }
  2260. DllExport Urho3D::SoundStream *
  2261. Sound_GetDecoderStream (Urho3D::Sound *_target)
  2262. {
  2263. auto copy = _target->GetDecoderStream ();
  2264. auto plain = copy.Get();
  2265. copy.Detach();
  2266. delete copy;
  2267. return plain;
  2268. }
  2269. DllExport signed char *
  2270. Sound_GetStart (Urho3D::Sound *_target)
  2271. {
  2272. return _target->GetStart ();
  2273. }
  2274. DllExport signed char *
  2275. Sound_GetRepeat (Urho3D::Sound *_target)
  2276. {
  2277. return _target->GetRepeat ();
  2278. }
  2279. DllExport signed char *
  2280. Sound_GetEnd (Urho3D::Sound *_target)
  2281. {
  2282. return _target->GetEnd ();
  2283. }
  2284. DllExport float
  2285. Sound_GetLength (Urho3D::Sound *_target)
  2286. {
  2287. return _target->GetLength ();
  2288. }
  2289. DllExport unsigned int
  2290. Sound_GetDataSize (Urho3D::Sound *_target)
  2291. {
  2292. return _target->GetDataSize ();
  2293. }
  2294. DllExport unsigned int
  2295. Sound_GetSampleSize (Urho3D::Sound *_target)
  2296. {
  2297. return _target->GetSampleSize ();
  2298. }
  2299. DllExport float
  2300. Sound_GetFrequency (Urho3D::Sound *_target)
  2301. {
  2302. return _target->GetFrequency ();
  2303. }
  2304. DllExport unsigned int
  2305. Sound_GetIntFrequency (Urho3D::Sound *_target)
  2306. {
  2307. return _target->GetIntFrequency ();
  2308. }
  2309. DllExport int
  2310. Sound_IsLooped (Urho3D::Sound *_target)
  2311. {
  2312. return _target->IsLooped ();
  2313. }
  2314. DllExport int
  2315. Sound_IsSixteenBit (Urho3D::Sound *_target)
  2316. {
  2317. return _target->IsSixteenBit ();
  2318. }
  2319. DllExport int
  2320. Sound_IsStereo (Urho3D::Sound *_target)
  2321. {
  2322. return _target->IsStereo ();
  2323. }
  2324. DllExport int
  2325. Sound_IsCompressed (Urho3D::Sound *_target)
  2326. {
  2327. return _target->IsCompressed ();
  2328. }
  2329. DllExport void
  2330. Sound_FixInterpolation (Urho3D::Sound *_target)
  2331. {
  2332. _target->FixInterpolation ();
  2333. }
  2334. DllExport int
  2335. SoundListener_GetType (Urho3D::SoundListener *_target)
  2336. {
  2337. return (_target->GetType ()).Value ();
  2338. }
  2339. DllExport const char *
  2340. SoundListener_GetTypeName (Urho3D::SoundListener *_target)
  2341. {
  2342. return stringdup((_target->GetTypeName ()).CString ());
  2343. }
  2344. DllExport int
  2345. SoundListener_GetTypeStatic ()
  2346. {
  2347. return (SoundListener::GetTypeStatic ()).Value ();
  2348. }
  2349. DllExport const char *
  2350. SoundListener_GetTypeNameStatic ()
  2351. {
  2352. return stringdup((SoundListener::GetTypeNameStatic ()).CString ());
  2353. }
  2354. DllExport void *
  2355. SoundListener_SoundListener (Urho3D::Context * context)
  2356. {
  2357. return WeakPtr<SoundListener>(new SoundListener(context));
  2358. }
  2359. DllExport void
  2360. SoundListener_RegisterObject (Urho3D::Context * context)
  2361. {
  2362. SoundListener::RegisterObject (context);
  2363. }
  2364. DllExport int
  2365. SoundSource_GetType (Urho3D::SoundSource *_target)
  2366. {
  2367. return (_target->GetType ()).Value ();
  2368. }
  2369. DllExport const char *
  2370. SoundSource_GetTypeName (Urho3D::SoundSource *_target)
  2371. {
  2372. return stringdup((_target->GetTypeName ()).CString ());
  2373. }
  2374. DllExport int
  2375. SoundSource_GetTypeStatic ()
  2376. {
  2377. return (SoundSource::GetTypeStatic ()).Value ();
  2378. }
  2379. DllExport const char *
  2380. SoundSource_GetTypeNameStatic ()
  2381. {
  2382. return stringdup((SoundSource::GetTypeNameStatic ()).CString ());
  2383. }
  2384. DllExport void *
  2385. SoundSource_SoundSource (Urho3D::Context * context)
  2386. {
  2387. return WeakPtr<SoundSource>(new SoundSource(context));
  2388. }
  2389. DllExport void
  2390. SoundSource_RegisterObject (Urho3D::Context * context)
  2391. {
  2392. SoundSource::RegisterObject (context);
  2393. }
  2394. DllExport void
  2395. SoundSource_Play (Urho3D::SoundSource *_target, Urho3D::Sound * sound)
  2396. {
  2397. _target->Play (sound);
  2398. }
  2399. DllExport void
  2400. SoundSource_Play0 (Urho3D::SoundSource *_target, Urho3D::Sound * sound, float frequency)
  2401. {
  2402. _target->Play (sound, frequency);
  2403. }
  2404. DllExport void
  2405. SoundSource_Play1 (Urho3D::SoundSource *_target, Urho3D::Sound * sound, float frequency, float gain)
  2406. {
  2407. _target->Play (sound, frequency, gain);
  2408. }
  2409. DllExport void
  2410. SoundSource_Play2 (Urho3D::SoundSource *_target, Urho3D::Sound * sound, float frequency, float gain, float panning)
  2411. {
  2412. _target->Play (sound, frequency, gain, panning);
  2413. }
  2414. DllExport void
  2415. SoundSource_Play3 (Urho3D::SoundSource *_target, Urho3D::SoundStream * stream)
  2416. {
  2417. _target->Play (stream);
  2418. }
  2419. DllExport void
  2420. SoundSource_Stop (Urho3D::SoundSource *_target)
  2421. {
  2422. _target->Stop ();
  2423. }
  2424. DllExport void
  2425. SoundSource_SetSoundType (Urho3D::SoundSource *_target, const char * type)
  2426. {
  2427. _target->SetSoundType (Urho3D::String(type));
  2428. }
  2429. DllExport void
  2430. SoundSource_SetFrequency (Urho3D::SoundSource *_target, float frequency)
  2431. {
  2432. _target->SetFrequency (frequency);
  2433. }
  2434. DllExport void
  2435. SoundSource_SetGain (Urho3D::SoundSource *_target, float gain)
  2436. {
  2437. _target->SetGain (gain);
  2438. }
  2439. DllExport void
  2440. SoundSource_SetAttenuation (Urho3D::SoundSource *_target, float attenuation)
  2441. {
  2442. _target->SetAttenuation (attenuation);
  2443. }
  2444. DllExport void
  2445. SoundSource_SetPanning (Urho3D::SoundSource *_target, float panning)
  2446. {
  2447. _target->SetPanning (panning);
  2448. }
  2449. DllExport void
  2450. SoundSource_SetAutoRemoveMode (Urho3D::SoundSource *_target, enum Urho3D::AutoRemoveMode mode)
  2451. {
  2452. _target->SetAutoRemoveMode (mode);
  2453. }
  2454. DllExport void
  2455. SoundSource_SetPlayPosition (Urho3D::SoundSource *_target, signed char * pos)
  2456. {
  2457. _target->SetPlayPosition (pos);
  2458. }
  2459. DllExport Urho3D::Sound *
  2460. SoundSource_GetSound (Urho3D::SoundSource *_target)
  2461. {
  2462. return _target->GetSound ();
  2463. }
  2464. DllExport volatile signed char *
  2465. SoundSource_GetPlayPosition (Urho3D::SoundSource *_target)
  2466. {
  2467. return _target->GetPlayPosition ();
  2468. }
  2469. DllExport const char *
  2470. SoundSource_GetSoundType (Urho3D::SoundSource *_target)
  2471. {
  2472. return stringdup((_target->GetSoundType ()).CString ());
  2473. }
  2474. DllExport float
  2475. SoundSource_GetTimePosition (Urho3D::SoundSource *_target)
  2476. {
  2477. return _target->GetTimePosition ();
  2478. }
  2479. DllExport float
  2480. SoundSource_GetFrequency (Urho3D::SoundSource *_target)
  2481. {
  2482. return _target->GetFrequency ();
  2483. }
  2484. DllExport float
  2485. SoundSource_GetGain (Urho3D::SoundSource *_target)
  2486. {
  2487. return _target->GetGain ();
  2488. }
  2489. DllExport float
  2490. SoundSource_GetAttenuation (Urho3D::SoundSource *_target)
  2491. {
  2492. return _target->GetAttenuation ();
  2493. }
  2494. DllExport float
  2495. SoundSource_GetPanning (Urho3D::SoundSource *_target)
  2496. {
  2497. return _target->GetPanning ();
  2498. }
  2499. DllExport enum Urho3D::AutoRemoveMode
  2500. SoundSource_GetAutoRemoveMode (Urho3D::SoundSource *_target)
  2501. {
  2502. return _target->GetAutoRemoveMode ();
  2503. }
  2504. DllExport int
  2505. SoundSource_IsPlaying (Urho3D::SoundSource *_target)
  2506. {
  2507. return _target->IsPlaying ();
  2508. }
  2509. DllExport void
  2510. SoundSource_Update (Urho3D::SoundSource *_target, float timeStep)
  2511. {
  2512. _target->Update (timeStep);
  2513. }
  2514. DllExport void
  2515. SoundSource_Mix (Urho3D::SoundSource *_target, int * dest, unsigned int samples, int mixRate, bool stereo, bool interpolation)
  2516. {
  2517. _target->Mix (dest, samples, mixRate, stereo, interpolation);
  2518. }
  2519. DllExport void
  2520. SoundSource_UpdateMasterGain (Urho3D::SoundSource *_target)
  2521. {
  2522. _target->UpdateMasterGain ();
  2523. }
  2524. DllExport void
  2525. SoundSource_SetPositionAttr (Urho3D::SoundSource *_target, int value)
  2526. {
  2527. _target->SetPositionAttr (value);
  2528. }
  2529. DllExport Urho3D::ResourceRef
  2530. SoundSource_GetSoundAttr (Urho3D::SoundSource *_target)
  2531. {
  2532. return _target->GetSoundAttr ();
  2533. }
  2534. DllExport void
  2535. SoundSource_SetPlayingAttr (Urho3D::SoundSource *_target, bool value)
  2536. {
  2537. _target->SetPlayingAttr (value);
  2538. }
  2539. DllExport int
  2540. SoundSource_GetPositionAttr (Urho3D::SoundSource *_target)
  2541. {
  2542. return _target->GetPositionAttr ();
  2543. }
  2544. DllExport int
  2545. SoundSource3D_GetType (Urho3D::SoundSource3D *_target)
  2546. {
  2547. return (_target->GetType ()).Value ();
  2548. }
  2549. DllExport const char *
  2550. SoundSource3D_GetTypeName (Urho3D::SoundSource3D *_target)
  2551. {
  2552. return stringdup((_target->GetTypeName ()).CString ());
  2553. }
  2554. DllExport int
  2555. SoundSource3D_GetTypeStatic ()
  2556. {
  2557. return (SoundSource3D::GetTypeStatic ()).Value ();
  2558. }
  2559. DllExport const char *
  2560. SoundSource3D_GetTypeNameStatic ()
  2561. {
  2562. return stringdup((SoundSource3D::GetTypeNameStatic ()).CString ());
  2563. }
  2564. DllExport void *
  2565. SoundSource3D_SoundSource3D (Urho3D::Context * context)
  2566. {
  2567. return WeakPtr<SoundSource3D>(new SoundSource3D(context));
  2568. }
  2569. DllExport void
  2570. SoundSource3D_RegisterObject (Urho3D::Context * context)
  2571. {
  2572. SoundSource3D::RegisterObject (context);
  2573. }
  2574. DllExport void
  2575. SoundSource3D_DrawDebugGeometry (Urho3D::SoundSource3D *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  2576. {
  2577. _target->DrawDebugGeometry (debug, depthTest);
  2578. }
  2579. DllExport void
  2580. SoundSource3D_Update (Urho3D::SoundSource3D *_target, float timeStep)
  2581. {
  2582. _target->Update (timeStep);
  2583. }
  2584. DllExport void
  2585. SoundSource3D_SetDistanceAttenuation (Urho3D::SoundSource3D *_target, float nearDistance, float farDistance, float rolloffFactor)
  2586. {
  2587. _target->SetDistanceAttenuation (nearDistance, farDistance, rolloffFactor);
  2588. }
  2589. DllExport void
  2590. SoundSource3D_SetAngleAttenuation (Urho3D::SoundSource3D *_target, float innerAngle, float outerAngle)
  2591. {
  2592. _target->SetAngleAttenuation (innerAngle, outerAngle);
  2593. }
  2594. DllExport void
  2595. SoundSource3D_SetNearDistance (Urho3D::SoundSource3D *_target, float distance)
  2596. {
  2597. _target->SetNearDistance (distance);
  2598. }
  2599. DllExport void
  2600. SoundSource3D_SetFarDistance (Urho3D::SoundSource3D *_target, float distance)
  2601. {
  2602. _target->SetFarDistance (distance);
  2603. }
  2604. DllExport void
  2605. SoundSource3D_SetInnerAngle (Urho3D::SoundSource3D *_target, float angle)
  2606. {
  2607. _target->SetInnerAngle (angle);
  2608. }
  2609. DllExport void
  2610. SoundSource3D_SetOuterAngle (Urho3D::SoundSource3D *_target, float angle)
  2611. {
  2612. _target->SetOuterAngle (angle);
  2613. }
  2614. DllExport void
  2615. SoundSource3D_SetRolloffFactor (Urho3D::SoundSource3D *_target, float factor)
  2616. {
  2617. _target->SetRolloffFactor (factor);
  2618. }
  2619. DllExport void
  2620. SoundSource3D_CalculateAttenuation (Urho3D::SoundSource3D *_target)
  2621. {
  2622. _target->CalculateAttenuation ();
  2623. }
  2624. DllExport float
  2625. SoundSource3D_GetNearDistance (Urho3D::SoundSource3D *_target)
  2626. {
  2627. return _target->GetNearDistance ();
  2628. }
  2629. DllExport float
  2630. SoundSource3D_GetFarDistance (Urho3D::SoundSource3D *_target)
  2631. {
  2632. return _target->GetFarDistance ();
  2633. }
  2634. DllExport float
  2635. SoundSource3D_GetInnerAngle (Urho3D::SoundSource3D *_target)
  2636. {
  2637. return _target->GetInnerAngle ();
  2638. }
  2639. DllExport float
  2640. SoundSource3D_GetOuterAngle (Urho3D::SoundSource3D *_target)
  2641. {
  2642. return _target->GetOuterAngle ();
  2643. }
  2644. DllExport float
  2645. SoundSource3D_RollAngleoffFactor (Urho3D::SoundSource3D *_target)
  2646. {
  2647. return _target->RollAngleoffFactor ();
  2648. }
  2649. DllExport void *
  2650. EventReceiverGroup_EventReceiverGroup ()
  2651. {
  2652. return WeakPtr<EventReceiverGroup>(new EventReceiverGroup());
  2653. }
  2654. DllExport void
  2655. EventReceiverGroup_BeginSendEvent (Urho3D::EventReceiverGroup *_target)
  2656. {
  2657. _target->BeginSendEvent ();
  2658. }
  2659. DllExport void
  2660. EventReceiverGroup_EndSendEvent (Urho3D::EventReceiverGroup *_target)
  2661. {
  2662. _target->EndSendEvent ();
  2663. }
  2664. DllExport void
  2665. EventReceiverGroup_Add (Urho3D::EventReceiverGroup *_target, Urho3D::Object * object)
  2666. {
  2667. _target->Add (object);
  2668. }
  2669. DllExport void
  2670. EventReceiverGroup_Remove (Urho3D::EventReceiverGroup *_target, Urho3D::Object * object)
  2671. {
  2672. _target->Remove (object);
  2673. }
  2674. DllExport void *
  2675. Context_Context ()
  2676. {
  2677. return WeakPtr<Context>(new Context());
  2678. }
  2679. DllExport Urho3D::Object *
  2680. Context_CreateObject (Urho3D::Context *_target, int objectType)
  2681. {
  2682. auto copy = _target->CreateObject (Urho3D::StringHash(objectType));
  2683. auto plain = copy.Get();
  2684. copy.Detach();
  2685. delete copy;
  2686. return plain;
  2687. }
  2688. DllExport void
  2689. Context_RegisterFactory (Urho3D::Context *_target, Urho3D::ObjectFactory * factory)
  2690. {
  2691. _target->RegisterFactory (factory);
  2692. }
  2693. DllExport void
  2694. Context_RegisterSubsystem (Urho3D::Context *_target, Urho3D::Object * subsystem)
  2695. {
  2696. _target->RegisterSubsystem (subsystem);
  2697. }
  2698. DllExport void
  2699. Context_RemoveSubsystem (Urho3D::Context *_target, int objectType)
  2700. {
  2701. _target->RemoveSubsystem (Urho3D::StringHash(objectType));
  2702. }
  2703. DllExport void
  2704. Context_CopyBaseAttributes (Urho3D::Context *_target, int baseType, int derivedType)
  2705. {
  2706. _target->CopyBaseAttributes (Urho3D::StringHash(baseType), Urho3D::StringHash(derivedType));
  2707. }
  2708. DllExport Urho3D::Object *
  2709. Context_GetSubsystem (Urho3D::Context *_target, int type)
  2710. {
  2711. return _target->GetSubsystem (Urho3D::StringHash(type));
  2712. }
  2713. // Urho3D::Variant overloads begin:
  2714. DllExport Interop::Vector3
  2715. Context_GetGlobalVar0 (Urho3D::Context *_target, int key)
  2716. {
  2717. return *((Interop::Vector3 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetVector3()));
  2718. }
  2719. DllExport Interop::IntRect
  2720. Context_GetGlobalVar1 (Urho3D::Context *_target, int key)
  2721. {
  2722. return *((Interop::IntRect *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetIntRect()));
  2723. }
  2724. DllExport Interop::Color
  2725. Context_GetGlobalVar2 (Urho3D::Context *_target, int key)
  2726. {
  2727. return *((Interop::Color *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetColor()));
  2728. }
  2729. DllExport Interop::Vector2
  2730. Context_GetGlobalVar3 (Urho3D::Context *_target, int key)
  2731. {
  2732. return *((Interop::Vector2 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetVector2()));
  2733. }
  2734. DllExport Interop::Vector4
  2735. Context_GetGlobalVar4 (Urho3D::Context *_target, int key)
  2736. {
  2737. return *((Interop::Vector4 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetVector4()));
  2738. }
  2739. DllExport Interop::IntVector2
  2740. Context_GetGlobalVar5 (Urho3D::Context *_target, int key)
  2741. {
  2742. return *((Interop::IntVector2 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetIntVector2()));
  2743. }
  2744. DllExport Interop::Quaternion
  2745. Context_GetGlobalVar6 (Urho3D::Context *_target, int key)
  2746. {
  2747. return *((Interop::Quaternion *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetQuaternion()));
  2748. }
  2749. DllExport Interop::Matrix4
  2750. Context_GetGlobalVar7 (Urho3D::Context *_target, int key)
  2751. {
  2752. return *((Interop::Matrix4 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetMatrix4()));
  2753. }
  2754. DllExport Interop::Matrix3x4
  2755. Context_GetGlobalVar8 (Urho3D::Context *_target, int key)
  2756. {
  2757. return *((Interop::Matrix3x4 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetMatrix3x4()));
  2758. }
  2759. DllExport int
  2760. Context_GetGlobalVar9 (Urho3D::Context *_target, int key)
  2761. {
  2762. return (_target->GetGlobalVar (Urho3D::StringHash(key)).GetInt());
  2763. }
  2764. DllExport float
  2765. Context_GetGlobalVar10 (Urho3D::Context *_target, int key)
  2766. {
  2767. return (_target->GetGlobalVar (Urho3D::StringHash(key)).GetFloat());
  2768. }
  2769. DllExport const char *
  2770. Context_GetGlobalVar11 (Urho3D::Context *_target, int key)
  2771. {
  2772. return stringdup(_target->GetGlobalVar (Urho3D::StringHash(key)).GetString().CString());
  2773. }
  2774. // Urho3D::Variant overloads end.
  2775. // Urho3D::Variant overloads begin:
  2776. DllExport void
  2777. Context_SetGlobalVar0 (Urho3D::Context *_target, int key, const class Urho3D::Vector3 & value)
  2778. {
  2779. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  2780. }
  2781. DllExport void
  2782. Context_SetGlobalVar1 (Urho3D::Context *_target, int key, const class Urho3D::IntRect & value)
  2783. {
  2784. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  2785. }
  2786. DllExport void
  2787. Context_SetGlobalVar2 (Urho3D::Context *_target, int key, const class Urho3D::Color & value)
  2788. {
  2789. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  2790. }
  2791. DllExport void
  2792. Context_SetGlobalVar3 (Urho3D::Context *_target, int key, const class Urho3D::Vector2 & value)
  2793. {
  2794. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  2795. }
  2796. DllExport void
  2797. Context_SetGlobalVar4 (Urho3D::Context *_target, int key, const class Urho3D::Vector4 & value)
  2798. {
  2799. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  2800. }
  2801. DllExport void
  2802. Context_SetGlobalVar5 (Urho3D::Context *_target, int key, const class Urho3D::IntVector2 & value)
  2803. {
  2804. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  2805. }
  2806. DllExport void
  2807. Context_SetGlobalVar6 (Urho3D::Context *_target, int key, const class Urho3D::Quaternion & value)
  2808. {
  2809. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  2810. }
  2811. DllExport void
  2812. Context_SetGlobalVar7 (Urho3D::Context *_target, int key, const class Urho3D::Matrix4 & value)
  2813. {
  2814. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  2815. }
  2816. DllExport void
  2817. Context_SetGlobalVar8 (Urho3D::Context *_target, int key, const class Urho3D::Matrix3x4 & value)
  2818. {
  2819. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  2820. }
  2821. DllExport void
  2822. Context_SetGlobalVar9 (Urho3D::Context *_target, int key, int value)
  2823. {
  2824. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  2825. }
  2826. DllExport void
  2827. Context_SetGlobalVar10 (Urho3D::Context *_target, int key, float value)
  2828. {
  2829. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  2830. }
  2831. DllExport void
  2832. Context_SetGlobalVar11 (Urho3D::Context *_target, int key, const char * value)
  2833. {
  2834. _target->SetGlobalVar (Urho3D::StringHash(key), Urho3D::String(value));
  2835. }
  2836. // Urho3D::Variant overloads end.
  2837. DllExport Urho3D::Object *
  2838. Context_GetEventSender (Urho3D::Context *_target)
  2839. {
  2840. return _target->GetEventSender ();
  2841. }
  2842. DllExport Urho3D::EventHandler *
  2843. Context_GetEventHandler (Urho3D::Context *_target)
  2844. {
  2845. return _target->GetEventHandler ();
  2846. }
  2847. DllExport const char *
  2848. Context_GetTypeName (Urho3D::Context *_target, int objectType)
  2849. {
  2850. return stringdup((_target->GetTypeName (Urho3D::StringHash(objectType))).CString ());
  2851. }
  2852. DllExport Urho3D::EventReceiverGroup *
  2853. Context_GetEventReceivers (Urho3D::Context *_target, Urho3D::Object * sender, int eventType)
  2854. {
  2855. return _target->GetEventReceivers (sender, Urho3D::StringHash(eventType));
  2856. }
  2857. DllExport Urho3D::EventReceiverGroup *
  2858. Context_GetEventReceivers0 (Urho3D::Context *_target, int eventType)
  2859. {
  2860. return _target->GetEventReceivers (Urho3D::StringHash(eventType));
  2861. }
  2862. DllExport int
  2863. Profiler_GetType (Urho3D::Profiler *_target)
  2864. {
  2865. return (_target->GetType ()).Value ();
  2866. }
  2867. DllExport const char *
  2868. Profiler_GetTypeName (Urho3D::Profiler *_target)
  2869. {
  2870. return stringdup((_target->GetTypeName ()).CString ());
  2871. }
  2872. DllExport int
  2873. Profiler_GetTypeStatic ()
  2874. {
  2875. return (Profiler::GetTypeStatic ()).Value ();
  2876. }
  2877. DllExport const char *
  2878. Profiler_GetTypeNameStatic ()
  2879. {
  2880. return stringdup((Profiler::GetTypeNameStatic ()).CString ());
  2881. }
  2882. DllExport void *
  2883. Profiler_Profiler (Urho3D::Context * context)
  2884. {
  2885. return WeakPtr<Profiler>(new Profiler(context));
  2886. }
  2887. DllExport void
  2888. Profiler_EndBlock (Urho3D::Profiler *_target)
  2889. {
  2890. _target->EndBlock ();
  2891. }
  2892. DllExport void
  2893. Profiler_BeginFrame (Urho3D::Profiler *_target)
  2894. {
  2895. _target->BeginFrame ();
  2896. }
  2897. DllExport void
  2898. Profiler_EndFrame (Urho3D::Profiler *_target)
  2899. {
  2900. _target->EndFrame ();
  2901. }
  2902. DllExport void
  2903. Profiler_BeginInterval (Urho3D::Profiler *_target)
  2904. {
  2905. _target->BeginInterval ();
  2906. }
  2907. DllExport const char *
  2908. Profiler_PrintData (Urho3D::Profiler *_target, bool showUnused, bool showTotal, unsigned int maxDepth)
  2909. {
  2910. return stringdup((_target->PrintData (showUnused, showTotal, maxDepth)).CString ());
  2911. }
  2912. DllExport const class Urho3D::ProfilerBlock *
  2913. Profiler_GetCurrentBlock (Urho3D::Profiler *_target)
  2914. {
  2915. return _target->GetCurrentBlock ();
  2916. }
  2917. DllExport const class Urho3D::ProfilerBlock *
  2918. Profiler_GetRootBlock (Urho3D::Profiler *_target)
  2919. {
  2920. return _target->GetRootBlock ();
  2921. }
  2922. DllExport void *
  2923. WorkItem_WorkItem ()
  2924. {
  2925. return WeakPtr<WorkItem>(new WorkItem());
  2926. }
  2927. DllExport int
  2928. WorkQueue_GetType (Urho3D::WorkQueue *_target)
  2929. {
  2930. return (_target->GetType ()).Value ();
  2931. }
  2932. DllExport const char *
  2933. WorkQueue_GetTypeName (Urho3D::WorkQueue *_target)
  2934. {
  2935. return stringdup((_target->GetTypeName ()).CString ());
  2936. }
  2937. DllExport int
  2938. WorkQueue_GetTypeStatic ()
  2939. {
  2940. return (WorkQueue::GetTypeStatic ()).Value ();
  2941. }
  2942. DllExport const char *
  2943. WorkQueue_GetTypeNameStatic ()
  2944. {
  2945. return stringdup((WorkQueue::GetTypeNameStatic ()).CString ());
  2946. }
  2947. DllExport void *
  2948. WorkQueue_WorkQueue (Urho3D::Context * context)
  2949. {
  2950. return WeakPtr<WorkQueue>(new WorkQueue(context));
  2951. }
  2952. DllExport void
  2953. WorkQueue_CreateThreads (Urho3D::WorkQueue *_target, unsigned int numThreads)
  2954. {
  2955. _target->CreateThreads (numThreads);
  2956. }
  2957. DllExport Urho3D::WorkItem *
  2958. WorkQueue_GetFreeItem (Urho3D::WorkQueue *_target)
  2959. {
  2960. auto copy = _target->GetFreeItem ();
  2961. auto plain = copy.Get();
  2962. copy.Detach();
  2963. delete copy;
  2964. return plain;
  2965. }
  2966. DllExport void
  2967. WorkQueue_Pause (Urho3D::WorkQueue *_target)
  2968. {
  2969. _target->Pause ();
  2970. }
  2971. DllExport void
  2972. WorkQueue_Resume (Urho3D::WorkQueue *_target)
  2973. {
  2974. _target->Resume ();
  2975. }
  2976. DllExport void
  2977. WorkQueue_Complete (Urho3D::WorkQueue *_target, unsigned int priority)
  2978. {
  2979. _target->Complete (priority);
  2980. }
  2981. DllExport void
  2982. WorkQueue_SetTolerance (Urho3D::WorkQueue *_target, int tolerance)
  2983. {
  2984. _target->SetTolerance (tolerance);
  2985. }
  2986. DllExport void
  2987. WorkQueue_SetNonThreadedWorkMs (Urho3D::WorkQueue *_target, int ms)
  2988. {
  2989. _target->SetNonThreadedWorkMs (ms);
  2990. }
  2991. DllExport unsigned int
  2992. WorkQueue_GetNumThreads (Urho3D::WorkQueue *_target)
  2993. {
  2994. return _target->GetNumThreads ();
  2995. }
  2996. DllExport int
  2997. WorkQueue_IsCompleted (Urho3D::WorkQueue *_target, unsigned int priority)
  2998. {
  2999. return _target->IsCompleted (priority);
  3000. }
  3001. DllExport int
  3002. WorkQueue_IsCompleting (Urho3D::WorkQueue *_target)
  3003. {
  3004. return _target->IsCompleting ();
  3005. }
  3006. DllExport int
  3007. WorkQueue_GetTolerance (Urho3D::WorkQueue *_target)
  3008. {
  3009. return _target->GetTolerance ();
  3010. }
  3011. DllExport int
  3012. WorkQueue_GetNonThreadedWorkMs (Urho3D::WorkQueue *_target)
  3013. {
  3014. return _target->GetNonThreadedWorkMs ();
  3015. }
  3016. DllExport int
  3017. Engine_GetType (Urho3D::Engine *_target)
  3018. {
  3019. return (_target->GetType ()).Value ();
  3020. }
  3021. DllExport const char *
  3022. Engine_GetTypeName (Urho3D::Engine *_target)
  3023. {
  3024. return stringdup((_target->GetTypeName ()).CString ());
  3025. }
  3026. DllExport int
  3027. Engine_GetTypeStatic ()
  3028. {
  3029. return (Engine::GetTypeStatic ()).Value ();
  3030. }
  3031. DllExport const char *
  3032. Engine_GetTypeNameStatic ()
  3033. {
  3034. return stringdup((Engine::GetTypeNameStatic ()).CString ());
  3035. }
  3036. DllExport void *
  3037. Engine_Engine (Urho3D::Context * context)
  3038. {
  3039. return WeakPtr<Engine>(new Engine(context));
  3040. }
  3041. DllExport void
  3042. Engine_RunFrame (Urho3D::Engine *_target)
  3043. {
  3044. _target->RunFrame ();
  3045. }
  3046. DllExport Urho3D::Console *
  3047. Engine_CreateConsole (Urho3D::Engine *_target)
  3048. {
  3049. return _target->CreateConsole ();
  3050. }
  3051. DllExport Urho3D::DebugHud *
  3052. Engine_CreateDebugHud (Urho3D::Engine *_target)
  3053. {
  3054. return _target->CreateDebugHud ();
  3055. }
  3056. DllExport void
  3057. Engine_SetMinFps (Urho3D::Engine *_target, int fps)
  3058. {
  3059. _target->SetMinFps (fps);
  3060. }
  3061. DllExport void
  3062. Engine_SetMaxFps (Urho3D::Engine *_target, int fps)
  3063. {
  3064. _target->SetMaxFps (fps);
  3065. }
  3066. DllExport void
  3067. Engine_SetMaxInactiveFps (Urho3D::Engine *_target, int fps)
  3068. {
  3069. _target->SetMaxInactiveFps (fps);
  3070. }
  3071. DllExport void
  3072. Engine_SetTimeStepSmoothing (Urho3D::Engine *_target, int frames)
  3073. {
  3074. _target->SetTimeStepSmoothing (frames);
  3075. }
  3076. DllExport void
  3077. Engine_SetPauseMinimized (Urho3D::Engine *_target, bool enable)
  3078. {
  3079. _target->SetPauseMinimized (enable);
  3080. }
  3081. DllExport void
  3082. Engine_SetAutoExit (Urho3D::Engine *_target, bool enable)
  3083. {
  3084. _target->SetAutoExit (enable);
  3085. }
  3086. DllExport void
  3087. Engine_SetNextTimeStep (Urho3D::Engine *_target, float seconds)
  3088. {
  3089. _target->SetNextTimeStep (seconds);
  3090. }
  3091. DllExport void
  3092. Engine_Exit (Urho3D::Engine *_target)
  3093. {
  3094. _target->Exit ();
  3095. }
  3096. DllExport void
  3097. Engine_DumpProfiler (Urho3D::Engine *_target)
  3098. {
  3099. _target->DumpProfiler ();
  3100. }
  3101. DllExport void
  3102. Engine_DumpResources (Urho3D::Engine *_target, bool dumpFileName)
  3103. {
  3104. _target->DumpResources (dumpFileName);
  3105. }
  3106. DllExport void
  3107. Engine_DumpMemory (Urho3D::Engine *_target)
  3108. {
  3109. _target->DumpMemory ();
  3110. }
  3111. DllExport float
  3112. Engine_GetNextTimeStep (Urho3D::Engine *_target)
  3113. {
  3114. return _target->GetNextTimeStep ();
  3115. }
  3116. DllExport int
  3117. Engine_GetMinFps (Urho3D::Engine *_target)
  3118. {
  3119. return _target->GetMinFps ();
  3120. }
  3121. DllExport int
  3122. Engine_GetMaxFps (Urho3D::Engine *_target)
  3123. {
  3124. return _target->GetMaxFps ();
  3125. }
  3126. DllExport int
  3127. Engine_GetMaxInactiveFps (Urho3D::Engine *_target)
  3128. {
  3129. return _target->GetMaxInactiveFps ();
  3130. }
  3131. DllExport int
  3132. Engine_GetTimeStepSmoothing (Urho3D::Engine *_target)
  3133. {
  3134. return _target->GetTimeStepSmoothing ();
  3135. }
  3136. DllExport int
  3137. Engine_GetPauseMinimized (Urho3D::Engine *_target)
  3138. {
  3139. return _target->GetPauseMinimized ();
  3140. }
  3141. DllExport int
  3142. Engine_GetAutoExit (Urho3D::Engine *_target)
  3143. {
  3144. return _target->GetAutoExit ();
  3145. }
  3146. DllExport int
  3147. Engine_IsInitialized (Urho3D::Engine *_target)
  3148. {
  3149. return _target->IsInitialized ();
  3150. }
  3151. DllExport int
  3152. Engine_IsExiting (Urho3D::Engine *_target)
  3153. {
  3154. return _target->IsExiting ();
  3155. }
  3156. DllExport int
  3157. Engine_IsHeadless (Urho3D::Engine *_target)
  3158. {
  3159. return _target->IsHeadless ();
  3160. }
  3161. DllExport void
  3162. Engine_Update (Urho3D::Engine *_target)
  3163. {
  3164. _target->Update ();
  3165. }
  3166. DllExport void
  3167. Engine_Render (Urho3D::Engine *_target)
  3168. {
  3169. _target->Render ();
  3170. }
  3171. DllExport void
  3172. Engine_ApplyFrameLimit (Urho3D::Engine *_target)
  3173. {
  3174. _target->ApplyFrameLimit ();
  3175. }
  3176. DllExport int
  3177. Application_GetType (Urho3D::Application *_target)
  3178. {
  3179. return (_target->GetType ()).Value ();
  3180. }
  3181. DllExport const char *
  3182. Application_GetTypeName (Urho3D::Application *_target)
  3183. {
  3184. return stringdup((_target->GetTypeName ()).CString ());
  3185. }
  3186. DllExport int
  3187. Application_GetTypeStatic ()
  3188. {
  3189. return (Application::GetTypeStatic ()).Value ();
  3190. }
  3191. DllExport const char *
  3192. Application_GetTypeNameStatic ()
  3193. {
  3194. return stringdup((Application::GetTypeNameStatic ()).CString ());
  3195. }
  3196. DllExport int
  3197. Application_Run (Urho3D::Application *_target)
  3198. {
  3199. return _target->Run ();
  3200. }
  3201. DllExport void
  3202. Application_ErrorExit (Urho3D::Application *_target, const char * message)
  3203. {
  3204. _target->ErrorExit (Urho3D::String(message));
  3205. }
  3206. DllExport int
  3207. UrhoConsole_GetType (Urho3D::Console *_target)
  3208. {
  3209. return (_target->GetType ()).Value ();
  3210. }
  3211. DllExport const char *
  3212. UrhoConsole_GetTypeName (Urho3D::Console *_target)
  3213. {
  3214. return stringdup((_target->GetTypeName ()).CString ());
  3215. }
  3216. DllExport int
  3217. UrhoConsole_GetTypeStatic ()
  3218. {
  3219. return (Console::GetTypeStatic ()).Value ();
  3220. }
  3221. DllExport const char *
  3222. UrhoConsole_GetTypeNameStatic ()
  3223. {
  3224. return stringdup((Console::GetTypeNameStatic ()).CString ());
  3225. }
  3226. DllExport void *
  3227. UrhoConsole_Console (Urho3D::Context * context)
  3228. {
  3229. return WeakPtr<Console>(new Console(context));
  3230. }
  3231. DllExport void
  3232. UrhoConsole_SetDefaultStyle (Urho3D::Console *_target, Urho3D::XMLFile * style)
  3233. {
  3234. _target->SetDefaultStyle (style);
  3235. }
  3236. DllExport void
  3237. UrhoConsole_SetVisible (Urho3D::Console *_target, bool enable)
  3238. {
  3239. _target->SetVisible (enable);
  3240. }
  3241. DllExport void
  3242. UrhoConsole_Toggle (Urho3D::Console *_target)
  3243. {
  3244. _target->Toggle ();
  3245. }
  3246. DllExport void
  3247. UrhoConsole_SetAutoVisibleOnError (Urho3D::Console *_target, bool enable)
  3248. {
  3249. _target->SetAutoVisibleOnError (enable);
  3250. }
  3251. DllExport void
  3252. UrhoConsole_SetCommandInterpreter (Urho3D::Console *_target, const char * interpreter)
  3253. {
  3254. _target->SetCommandInterpreter (Urho3D::String(interpreter));
  3255. }
  3256. DllExport void
  3257. UrhoConsole_SetNumBufferedRows (Urho3D::Console *_target, unsigned int rows)
  3258. {
  3259. _target->SetNumBufferedRows (rows);
  3260. }
  3261. DllExport void
  3262. UrhoConsole_SetNumRows (Urho3D::Console *_target, unsigned int rows)
  3263. {
  3264. _target->SetNumRows (rows);
  3265. }
  3266. DllExport void
  3267. UrhoConsole_SetNumHistoryRows (Urho3D::Console *_target, unsigned int rows)
  3268. {
  3269. _target->SetNumHistoryRows (rows);
  3270. }
  3271. DllExport void
  3272. UrhoConsole_SetFocusOnShow (Urho3D::Console *_target, bool enable)
  3273. {
  3274. _target->SetFocusOnShow (enable);
  3275. }
  3276. DllExport void
  3277. UrhoConsole_UpdateElements (Urho3D::Console *_target)
  3278. {
  3279. _target->UpdateElements ();
  3280. }
  3281. DllExport Urho3D::XMLFile *
  3282. UrhoConsole_GetDefaultStyle (Urho3D::Console *_target)
  3283. {
  3284. return _target->GetDefaultStyle ();
  3285. }
  3286. DllExport Urho3D::BorderImage *
  3287. UrhoConsole_GetBackground (Urho3D::Console *_target)
  3288. {
  3289. return _target->GetBackground ();
  3290. }
  3291. DllExport Urho3D::LineEdit *
  3292. UrhoConsole_GetLineEdit (Urho3D::Console *_target)
  3293. {
  3294. return _target->GetLineEdit ();
  3295. }
  3296. DllExport Urho3D::Button *
  3297. UrhoConsole_GetCloseButton (Urho3D::Console *_target)
  3298. {
  3299. return _target->GetCloseButton ();
  3300. }
  3301. DllExport int
  3302. UrhoConsole_IsVisible (Urho3D::Console *_target)
  3303. {
  3304. return _target->IsVisible ();
  3305. }
  3306. DllExport int
  3307. UrhoConsole_IsAutoVisibleOnError (Urho3D::Console *_target)
  3308. {
  3309. return _target->IsAutoVisibleOnError ();
  3310. }
  3311. DllExport const char *
  3312. UrhoConsole_GetCommandInterpreter (Urho3D::Console *_target)
  3313. {
  3314. return stringdup((_target->GetCommandInterpreter ()).CString ());
  3315. }
  3316. DllExport unsigned int
  3317. UrhoConsole_GetNumBufferedRows (Urho3D::Console *_target)
  3318. {
  3319. return _target->GetNumBufferedRows ();
  3320. }
  3321. DllExport unsigned int
  3322. UrhoConsole_GetNumRows (Urho3D::Console *_target)
  3323. {
  3324. return _target->GetNumRows ();
  3325. }
  3326. DllExport void
  3327. UrhoConsole_CopySelectedRows (Urho3D::Console *_target)
  3328. {
  3329. _target->CopySelectedRows ();
  3330. }
  3331. DllExport unsigned int
  3332. UrhoConsole_GetNumHistoryRows (Urho3D::Console *_target)
  3333. {
  3334. return _target->GetNumHistoryRows ();
  3335. }
  3336. DllExport unsigned int
  3337. UrhoConsole_GetHistoryPosition (Urho3D::Console *_target)
  3338. {
  3339. return _target->GetHistoryPosition ();
  3340. }
  3341. DllExport const char *
  3342. UrhoConsole_GetHistoryRow (Urho3D::Console *_target, unsigned int index)
  3343. {
  3344. return stringdup((_target->GetHistoryRow (index)).CString ());
  3345. }
  3346. DllExport int
  3347. UrhoConsole_GetFocusOnShow (Urho3D::Console *_target)
  3348. {
  3349. return _target->GetFocusOnShow ();
  3350. }
  3351. DllExport int
  3352. DebugHud_GetType (Urho3D::DebugHud *_target)
  3353. {
  3354. return (_target->GetType ()).Value ();
  3355. }
  3356. DllExport const char *
  3357. DebugHud_GetTypeName (Urho3D::DebugHud *_target)
  3358. {
  3359. return stringdup((_target->GetTypeName ()).CString ());
  3360. }
  3361. DllExport int
  3362. DebugHud_GetTypeStatic ()
  3363. {
  3364. return (DebugHud::GetTypeStatic ()).Value ();
  3365. }
  3366. DllExport const char *
  3367. DebugHud_GetTypeNameStatic ()
  3368. {
  3369. return stringdup((DebugHud::GetTypeNameStatic ()).CString ());
  3370. }
  3371. DllExport void *
  3372. DebugHud_DebugHud (Urho3D::Context * context)
  3373. {
  3374. return WeakPtr<DebugHud>(new DebugHud(context));
  3375. }
  3376. DllExport void
  3377. DebugHud_Update (Urho3D::DebugHud *_target)
  3378. {
  3379. _target->Update ();
  3380. }
  3381. DllExport void
  3382. DebugHud_SetDefaultStyle (Urho3D::DebugHud *_target, Urho3D::XMLFile * style)
  3383. {
  3384. _target->SetDefaultStyle (style);
  3385. }
  3386. DllExport void
  3387. DebugHud_SetMode (Urho3D::DebugHud *_target, unsigned int mode)
  3388. {
  3389. _target->SetMode (mode);
  3390. }
  3391. DllExport void
  3392. DebugHud_SetProfilerMaxDepth (Urho3D::DebugHud *_target, unsigned int depth)
  3393. {
  3394. _target->SetProfilerMaxDepth (depth);
  3395. }
  3396. DllExport void
  3397. DebugHud_SetProfilerInterval (Urho3D::DebugHud *_target, float interval)
  3398. {
  3399. _target->SetProfilerInterval (interval);
  3400. }
  3401. DllExport void
  3402. DebugHud_SetUseRendererStats (Urho3D::DebugHud *_target, bool enable)
  3403. {
  3404. _target->SetUseRendererStats (enable);
  3405. }
  3406. DllExport void
  3407. DebugHud_Toggle (Urho3D::DebugHud *_target, unsigned int mode)
  3408. {
  3409. _target->Toggle (mode);
  3410. }
  3411. DllExport void
  3412. DebugHud_ToggleAll (Urho3D::DebugHud *_target)
  3413. {
  3414. _target->ToggleAll ();
  3415. }
  3416. DllExport Urho3D::XMLFile *
  3417. DebugHud_GetDefaultStyle (Urho3D::DebugHud *_target)
  3418. {
  3419. return _target->GetDefaultStyle ();
  3420. }
  3421. DllExport Urho3D::Text *
  3422. DebugHud_GetStatsText (Urho3D::DebugHud *_target)
  3423. {
  3424. return _target->GetStatsText ();
  3425. }
  3426. DllExport Urho3D::Text *
  3427. DebugHud_GetModeText (Urho3D::DebugHud *_target)
  3428. {
  3429. return _target->GetModeText ();
  3430. }
  3431. DllExport Urho3D::Text *
  3432. DebugHud_GetProfilerText (Urho3D::DebugHud *_target)
  3433. {
  3434. return _target->GetProfilerText ();
  3435. }
  3436. DllExport Urho3D::Text *
  3437. DebugHud_GetMemoryText (Urho3D::DebugHud *_target)
  3438. {
  3439. return _target->GetMemoryText ();
  3440. }
  3441. DllExport unsigned int
  3442. DebugHud_GetMode (Urho3D::DebugHud *_target)
  3443. {
  3444. return _target->GetMode ();
  3445. }
  3446. DllExport unsigned int
  3447. DebugHud_GetProfilerMaxDepth (Urho3D::DebugHud *_target)
  3448. {
  3449. return _target->GetProfilerMaxDepth ();
  3450. }
  3451. DllExport float
  3452. DebugHud_GetProfilerInterval (Urho3D::DebugHud *_target)
  3453. {
  3454. return _target->GetProfilerInterval ();
  3455. }
  3456. DllExport int
  3457. DebugHud_GetUseRendererStats (Urho3D::DebugHud *_target)
  3458. {
  3459. return _target->GetUseRendererStats ();
  3460. }
  3461. DllExport void
  3462. DebugHud_SetAppStats (Urho3D::DebugHud *_target, const char * label, const char * stats)
  3463. {
  3464. _target->SetAppStats (Urho3D::String(label), Urho3D::String(stats));
  3465. }
  3466. DllExport int
  3467. DebugHud_ResetAppStats (Urho3D::DebugHud *_target, const char * label)
  3468. {
  3469. return _target->ResetAppStats (Urho3D::String(label));
  3470. }
  3471. DllExport void
  3472. DebugHud_ClearAppStats (Urho3D::DebugHud *_target)
  3473. {
  3474. _target->ClearAppStats ();
  3475. }
  3476. DllExport int
  3477. Node_GetType (Urho3D::Node *_target)
  3478. {
  3479. return (_target->GetType ()).Value ();
  3480. }
  3481. DllExport const char *
  3482. Node_GetTypeName (Urho3D::Node *_target)
  3483. {
  3484. return stringdup((_target->GetTypeName ()).CString ());
  3485. }
  3486. DllExport int
  3487. Node_GetTypeStatic ()
  3488. {
  3489. return (Node::GetTypeStatic ()).Value ();
  3490. }
  3491. DllExport const char *
  3492. Node_GetTypeNameStatic ()
  3493. {
  3494. return stringdup((Node::GetTypeNameStatic ()).CString ());
  3495. }
  3496. DllExport void *
  3497. Node_Node (Urho3D::Context * context)
  3498. {
  3499. return WeakPtr<Node>(new Node(context));
  3500. }
  3501. DllExport void
  3502. Node_RegisterObject (Urho3D::Context * context)
  3503. {
  3504. Node::RegisterObject (context);
  3505. }
  3506. DllExport int
  3507. Node_Load_File (Urho3D::Node *_target, File * source, bool setInstanceDefault)
  3508. {
  3509. return _target->Load (*source, setInstanceDefault);
  3510. }
  3511. DllExport int
  3512. Node_Load_MemoryBuffer (Urho3D::Node *_target, MemoryBuffer * source, bool setInstanceDefault)
  3513. {
  3514. return _target->Load (*source, setInstanceDefault);
  3515. }
  3516. DllExport int
  3517. Node_LoadXML (Urho3D::Node *_target, const class Urho3D::XMLElement & source, bool setInstanceDefault)
  3518. {
  3519. return _target->LoadXML (source, setInstanceDefault);
  3520. }
  3521. DllExport int
  3522. Node_Save_File (Urho3D::Node *_target, File * dest)
  3523. {
  3524. return _target->Save (*dest);
  3525. }
  3526. DllExport int
  3527. Node_Save_MemoryBuffer (Urho3D::Node *_target, MemoryBuffer * dest)
  3528. {
  3529. return _target->Save (*dest);
  3530. }
  3531. DllExport int
  3532. Node_SaveXML (Urho3D::Node *_target, Urho3D::XMLElement & dest)
  3533. {
  3534. return _target->SaveXML (dest);
  3535. }
  3536. DllExport void
  3537. Node_ApplyAttributes (Urho3D::Node *_target)
  3538. {
  3539. _target->ApplyAttributes ();
  3540. }
  3541. DllExport int
  3542. Node_SaveDefaultAttributes (Urho3D::Node *_target)
  3543. {
  3544. return _target->SaveDefaultAttributes ();
  3545. }
  3546. DllExport void
  3547. Node_MarkNetworkUpdate (Urho3D::Node *_target)
  3548. {
  3549. _target->MarkNetworkUpdate ();
  3550. }
  3551. DllExport void
  3552. Node_AddReplicationState (Urho3D::Node *_target, Urho3D::NodeReplicationState * state)
  3553. {
  3554. _target->AddReplicationState (state);
  3555. }
  3556. DllExport int
  3557. Node_SaveXML0_File (Urho3D::Node *_target, File * dest, const char * indentation)
  3558. {
  3559. return _target->SaveXML (*dest, Urho3D::String(indentation));
  3560. }
  3561. DllExport int
  3562. Node_SaveXML0_MemoryBuffer (Urho3D::Node *_target, MemoryBuffer * dest, const char * indentation)
  3563. {
  3564. return _target->SaveXML (*dest, Urho3D::String(indentation));
  3565. }
  3566. DllExport int
  3567. Node_SaveJSON_File (Urho3D::Node *_target, File * dest, const char * indentation)
  3568. {
  3569. return _target->SaveJSON (*dest, Urho3D::String(indentation));
  3570. }
  3571. DllExport int
  3572. Node_SaveJSON_MemoryBuffer (Urho3D::Node *_target, MemoryBuffer * dest, const char * indentation)
  3573. {
  3574. return _target->SaveJSON (*dest, Urho3D::String(indentation));
  3575. }
  3576. DllExport void
  3577. Node_SetName (Urho3D::Node *_target, const char * name)
  3578. {
  3579. _target->SetName (Urho3D::String(name));
  3580. }
  3581. DllExport void
  3582. Node_AddTag (Urho3D::Node *_target, const char * tag)
  3583. {
  3584. _target->AddTag (Urho3D::String(tag));
  3585. }
  3586. DllExport int
  3587. Node_RemoveTag (Urho3D::Node *_target, const char * tag)
  3588. {
  3589. return _target->RemoveTag (Urho3D::String(tag));
  3590. }
  3591. DllExport void
  3592. Node_RemoveAllTags (Urho3D::Node *_target)
  3593. {
  3594. _target->RemoveAllTags ();
  3595. }
  3596. DllExport void
  3597. Node_SetPosition (Urho3D::Node *_target, const class Urho3D::Vector3 & position)
  3598. {
  3599. _target->SetPosition (position);
  3600. }
  3601. DllExport void
  3602. Node_SetPosition2D (Urho3D::Node *_target, const class Urho3D::Vector2 & position)
  3603. {
  3604. _target->SetPosition2D (position);
  3605. }
  3606. DllExport void
  3607. Node_SetPosition2D1 (Urho3D::Node *_target, float x, float y)
  3608. {
  3609. _target->SetPosition2D (x, y);
  3610. }
  3611. DllExport void
  3612. Node_SetRotation (Urho3D::Node *_target, const class Urho3D::Quaternion & rotation)
  3613. {
  3614. _target->SetRotation (rotation);
  3615. }
  3616. DllExport void
  3617. Node_SetRotation2D (Urho3D::Node *_target, float rotation)
  3618. {
  3619. _target->SetRotation2D (rotation);
  3620. }
  3621. DllExport void
  3622. Node_SetDirection (Urho3D::Node *_target, const class Urho3D::Vector3 & direction)
  3623. {
  3624. _target->SetDirection (direction);
  3625. }
  3626. DllExport void
  3627. Node_SetScale (Urho3D::Node *_target, float scale)
  3628. {
  3629. _target->SetScale (scale);
  3630. }
  3631. DllExport void
  3632. Node_SetScale2 (Urho3D::Node *_target, const class Urho3D::Vector3 & scale)
  3633. {
  3634. _target->SetScale (scale);
  3635. }
  3636. DllExport void
  3637. Node_SetScale2D (Urho3D::Node *_target, const class Urho3D::Vector2 & scale)
  3638. {
  3639. _target->SetScale2D (scale);
  3640. }
  3641. DllExport void
  3642. Node_SetScale2D3 (Urho3D::Node *_target, float x, float y)
  3643. {
  3644. _target->SetScale2D (x, y);
  3645. }
  3646. DllExport void
  3647. Node_SetTransform (Urho3D::Node *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  3648. {
  3649. _target->SetTransform (position, rotation);
  3650. }
  3651. DllExport void
  3652. Node_SetTransform4 (Urho3D::Node *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, float scale)
  3653. {
  3654. _target->SetTransform (position, rotation, scale);
  3655. }
  3656. DllExport void
  3657. Node_SetTransform5 (Urho3D::Node *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, const class Urho3D::Vector3 & scale)
  3658. {
  3659. _target->SetTransform (position, rotation, scale);
  3660. }
  3661. DllExport void
  3662. Node_SetTransform6 (Urho3D::Node *_target, const class Urho3D::Matrix3x4 & matrix)
  3663. {
  3664. _target->SetTransform (matrix);
  3665. }
  3666. DllExport void
  3667. Node_SetTransform2D (Urho3D::Node *_target, const class Urho3D::Vector2 & position, float rotation)
  3668. {
  3669. _target->SetTransform2D (position, rotation);
  3670. }
  3671. DllExport void
  3672. Node_SetTransform2D7 (Urho3D::Node *_target, const class Urho3D::Vector2 & position, float rotation, float scale)
  3673. {
  3674. _target->SetTransform2D (position, rotation, scale);
  3675. }
  3676. DllExport void
  3677. Node_SetTransform2D8 (Urho3D::Node *_target, const class Urho3D::Vector2 & position, float rotation, const class Urho3D::Vector2 & scale)
  3678. {
  3679. _target->SetTransform2D (position, rotation, scale);
  3680. }
  3681. DllExport void
  3682. Node_SetWorldPosition (Urho3D::Node *_target, const class Urho3D::Vector3 & position)
  3683. {
  3684. _target->SetWorldPosition (position);
  3685. }
  3686. DllExport void
  3687. Node_SetWorldPosition2D (Urho3D::Node *_target, const class Urho3D::Vector2 & position)
  3688. {
  3689. _target->SetWorldPosition2D (position);
  3690. }
  3691. DllExport void
  3692. Node_SetWorldPosition2D9 (Urho3D::Node *_target, float x, float y)
  3693. {
  3694. _target->SetWorldPosition2D (x, y);
  3695. }
  3696. DllExport void
  3697. Node_SetWorldRotation (Urho3D::Node *_target, const class Urho3D::Quaternion & rotation)
  3698. {
  3699. _target->SetWorldRotation (rotation);
  3700. }
  3701. DllExport void
  3702. Node_SetWorldRotation2D (Urho3D::Node *_target, float rotation)
  3703. {
  3704. _target->SetWorldRotation2D (rotation);
  3705. }
  3706. DllExport void
  3707. Node_SetWorldDirection (Urho3D::Node *_target, const class Urho3D::Vector3 & direction)
  3708. {
  3709. _target->SetWorldDirection (direction);
  3710. }
  3711. DllExport void
  3712. Node_SetWorldScale (Urho3D::Node *_target, float scale)
  3713. {
  3714. _target->SetWorldScale (scale);
  3715. }
  3716. DllExport void
  3717. Node_SetWorldScale10 (Urho3D::Node *_target, const class Urho3D::Vector3 & scale)
  3718. {
  3719. _target->SetWorldScale (scale);
  3720. }
  3721. DllExport void
  3722. Node_SetWorldScale2D (Urho3D::Node *_target, const class Urho3D::Vector2 & scale)
  3723. {
  3724. _target->SetWorldScale2D (scale);
  3725. }
  3726. DllExport void
  3727. Node_SetWorldScale2D11 (Urho3D::Node *_target, float x, float y)
  3728. {
  3729. _target->SetWorldScale2D (x, y);
  3730. }
  3731. DllExport void
  3732. Node_SetWorldTransform (Urho3D::Node *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  3733. {
  3734. _target->SetWorldTransform (position, rotation);
  3735. }
  3736. DllExport void
  3737. Node_SetWorldTransform12 (Urho3D::Node *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, float scale)
  3738. {
  3739. _target->SetWorldTransform (position, rotation, scale);
  3740. }
  3741. DllExport void
  3742. Node_SetWorldTransform13 (Urho3D::Node *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, const class Urho3D::Vector3 & scale)
  3743. {
  3744. _target->SetWorldTransform (position, rotation, scale);
  3745. }
  3746. DllExport void
  3747. Node_SetWorldTransform2D (Urho3D::Node *_target, const class Urho3D::Vector2 & position, float rotation)
  3748. {
  3749. _target->SetWorldTransform2D (position, rotation);
  3750. }
  3751. DllExport void
  3752. Node_SetWorldTransform2D14 (Urho3D::Node *_target, const class Urho3D::Vector2 & position, float rotation, float scale)
  3753. {
  3754. _target->SetWorldTransform2D (position, rotation, scale);
  3755. }
  3756. DllExport void
  3757. Node_SetWorldTransform2D15 (Urho3D::Node *_target, const class Urho3D::Vector2 & position, float rotation, const class Urho3D::Vector2 & scale)
  3758. {
  3759. _target->SetWorldTransform2D (position, rotation, scale);
  3760. }
  3761. DllExport void
  3762. Node_Translate (Urho3D::Node *_target, const class Urho3D::Vector3 & delta, enum Urho3D::TransformSpace space)
  3763. {
  3764. _target->Translate (delta, space);
  3765. }
  3766. DllExport void
  3767. Node_Translate2D (Urho3D::Node *_target, const class Urho3D::Vector2 & delta, enum Urho3D::TransformSpace space)
  3768. {
  3769. _target->Translate2D (delta, space);
  3770. }
  3771. DllExport void
  3772. Node_Rotate (Urho3D::Node *_target, const class Urho3D::Quaternion & delta, enum Urho3D::TransformSpace space)
  3773. {
  3774. _target->Rotate (delta, space);
  3775. }
  3776. DllExport void
  3777. Node_Rotate2D (Urho3D::Node *_target, float delta, enum Urho3D::TransformSpace space)
  3778. {
  3779. _target->Rotate2D (delta, space);
  3780. }
  3781. DllExport void
  3782. Node_RotateAround (Urho3D::Node *_target, const class Urho3D::Vector3 & point, const class Urho3D::Quaternion & delta, enum Urho3D::TransformSpace space)
  3783. {
  3784. _target->RotateAround (point, delta, space);
  3785. }
  3786. DllExport void
  3787. Node_RotateAround2D (Urho3D::Node *_target, const class Urho3D::Vector2 & point, float delta, enum Urho3D::TransformSpace space)
  3788. {
  3789. _target->RotateAround2D (point, delta, space);
  3790. }
  3791. DllExport void
  3792. Node_Pitch (Urho3D::Node *_target, float angle, enum Urho3D::TransformSpace space)
  3793. {
  3794. _target->Pitch (angle, space);
  3795. }
  3796. DllExport void
  3797. Node_Yaw (Urho3D::Node *_target, float angle, enum Urho3D::TransformSpace space)
  3798. {
  3799. _target->Yaw (angle, space);
  3800. }
  3801. DllExport void
  3802. Node_Roll (Urho3D::Node *_target, float angle, enum Urho3D::TransformSpace space)
  3803. {
  3804. _target->Roll (angle, space);
  3805. }
  3806. DllExport int
  3807. Node_LookAt (Urho3D::Node *_target, const class Urho3D::Vector3 & target, const class Urho3D::Vector3 & up, enum Urho3D::TransformSpace space)
  3808. {
  3809. return _target->LookAt (target, up, space);
  3810. }
  3811. DllExport void
  3812. Node_Scale (Urho3D::Node *_target, float scale)
  3813. {
  3814. _target->Scale (scale);
  3815. }
  3816. DllExport void
  3817. Node_Scale16 (Urho3D::Node *_target, const class Urho3D::Vector3 & scale)
  3818. {
  3819. _target->Scale (scale);
  3820. }
  3821. DllExport void
  3822. Node_Scale2D (Urho3D::Node *_target, const class Urho3D::Vector2 & scale)
  3823. {
  3824. _target->Scale2D (scale);
  3825. }
  3826. DllExport void
  3827. Node_SetEnabled (Urho3D::Node *_target, bool enable)
  3828. {
  3829. _target->SetEnabled (enable);
  3830. }
  3831. DllExport void
  3832. Node_SetDeepEnabled (Urho3D::Node *_target, bool enable)
  3833. {
  3834. _target->SetDeepEnabled (enable);
  3835. }
  3836. DllExport void
  3837. Node_ResetDeepEnabled (Urho3D::Node *_target)
  3838. {
  3839. _target->ResetDeepEnabled ();
  3840. }
  3841. DllExport void
  3842. Node_SetEnabledRecursive (Urho3D::Node *_target, bool enable)
  3843. {
  3844. _target->SetEnabledRecursive (enable);
  3845. }
  3846. DllExport void
  3847. Node_SetOwner (Urho3D::Node *_target, Urho3D::Connection * owner)
  3848. {
  3849. _target->SetOwner (owner);
  3850. }
  3851. DllExport void
  3852. Node_MarkDirty (Urho3D::Node *_target)
  3853. {
  3854. _target->MarkDirty ();
  3855. }
  3856. DllExport Urho3D::Node *
  3857. Node_CreateChild (Urho3D::Node *_target, const char * name, enum Urho3D::CreateMode mode, unsigned int id)
  3858. {
  3859. return _target->CreateChild (Urho3D::String(name), mode, id);
  3860. }
  3861. DllExport void
  3862. Node_AddChild (Urho3D::Node *_target, Urho3D::Node * node, unsigned int index)
  3863. {
  3864. _target->AddChild (node, index);
  3865. }
  3866. DllExport void
  3867. Node_RemoveChild (Urho3D::Node *_target, Urho3D::Node * node)
  3868. {
  3869. _target->RemoveChild (node);
  3870. }
  3871. DllExport void
  3872. Node_RemoveAllChildren (Urho3D::Node *_target)
  3873. {
  3874. _target->RemoveAllChildren ();
  3875. }
  3876. DllExport void
  3877. Node_RemoveChildren (Urho3D::Node *_target, bool removeReplicated, bool removeLocal, bool recursive)
  3878. {
  3879. _target->RemoveChildren (removeReplicated, removeLocal, recursive);
  3880. }
  3881. DllExport Urho3D::Component *
  3882. Node_CreateComponent (Urho3D::Node *_target, int type, enum Urho3D::CreateMode mode, unsigned int id)
  3883. {
  3884. return _target->CreateComponent (Urho3D::StringHash(type), mode, id);
  3885. }
  3886. DllExport Urho3D::Component *
  3887. Node_GetOrCreateComponent (Urho3D::Node *_target, int type, enum Urho3D::CreateMode mode, unsigned int id)
  3888. {
  3889. return _target->GetOrCreateComponent (Urho3D::StringHash(type), mode, id);
  3890. }
  3891. DllExport Urho3D::Component *
  3892. Node_CloneComponent (Urho3D::Node *_target, Urho3D::Component * component, unsigned int id)
  3893. {
  3894. return _target->CloneComponent (component, id);
  3895. }
  3896. DllExport Urho3D::Component *
  3897. Node_CloneComponent17 (Urho3D::Node *_target, Urho3D::Component * component, enum Urho3D::CreateMode mode, unsigned int id)
  3898. {
  3899. return _target->CloneComponent (component, mode, id);
  3900. }
  3901. DllExport void
  3902. Node_RemoveComponent (Urho3D::Node *_target, Urho3D::Component * component)
  3903. {
  3904. _target->RemoveComponent (component);
  3905. }
  3906. DllExport void
  3907. Node_RemoveComponent18 (Urho3D::Node *_target, int type)
  3908. {
  3909. _target->RemoveComponent (Urho3D::StringHash(type));
  3910. }
  3911. DllExport void
  3912. Node_RemoveComponents (Urho3D::Node *_target, bool removeReplicated, bool removeLocal)
  3913. {
  3914. _target->RemoveComponents (removeReplicated, removeLocal);
  3915. }
  3916. DllExport void
  3917. Node_RemoveComponents19 (Urho3D::Node *_target, int type)
  3918. {
  3919. _target->RemoveComponents (Urho3D::StringHash(type));
  3920. }
  3921. DllExport void
  3922. Node_RemoveAllComponents (Urho3D::Node *_target)
  3923. {
  3924. _target->RemoveAllComponents ();
  3925. }
  3926. DllExport void
  3927. Node_ReorderComponent (Urho3D::Node *_target, Urho3D::Component * component, unsigned int index)
  3928. {
  3929. _target->ReorderComponent (component, index);
  3930. }
  3931. DllExport Urho3D::Node *
  3932. Node_Clone (Urho3D::Node *_target, enum Urho3D::CreateMode mode)
  3933. {
  3934. return _target->Clone (mode);
  3935. }
  3936. DllExport void
  3937. Node_Remove (Urho3D::Node *_target)
  3938. {
  3939. _target->Remove ();
  3940. }
  3941. DllExport void
  3942. Node_SetParent (Urho3D::Node *_target, Urho3D::Node * parent)
  3943. {
  3944. _target->SetParent (parent);
  3945. }
  3946. // Urho3D::Variant overloads begin:
  3947. DllExport void
  3948. Node_SetVar0 (Urho3D::Node *_target, int key, const class Urho3D::Vector3 & value)
  3949. {
  3950. _target->SetVar (Urho3D::StringHash(key), (value));
  3951. }
  3952. DllExport void
  3953. Node_SetVar1 (Urho3D::Node *_target, int key, const class Urho3D::IntRect & value)
  3954. {
  3955. _target->SetVar (Urho3D::StringHash(key), (value));
  3956. }
  3957. DllExport void
  3958. Node_SetVar2 (Urho3D::Node *_target, int key, const class Urho3D::Color & value)
  3959. {
  3960. _target->SetVar (Urho3D::StringHash(key), (value));
  3961. }
  3962. DllExport void
  3963. Node_SetVar3 (Urho3D::Node *_target, int key, const class Urho3D::Vector2 & value)
  3964. {
  3965. _target->SetVar (Urho3D::StringHash(key), (value));
  3966. }
  3967. DllExport void
  3968. Node_SetVar4 (Urho3D::Node *_target, int key, const class Urho3D::Vector4 & value)
  3969. {
  3970. _target->SetVar (Urho3D::StringHash(key), (value));
  3971. }
  3972. DllExport void
  3973. Node_SetVar5 (Urho3D::Node *_target, int key, const class Urho3D::IntVector2 & value)
  3974. {
  3975. _target->SetVar (Urho3D::StringHash(key), (value));
  3976. }
  3977. DllExport void
  3978. Node_SetVar6 (Urho3D::Node *_target, int key, const class Urho3D::Quaternion & value)
  3979. {
  3980. _target->SetVar (Urho3D::StringHash(key), (value));
  3981. }
  3982. DllExport void
  3983. Node_SetVar7 (Urho3D::Node *_target, int key, const class Urho3D::Matrix4 & value)
  3984. {
  3985. _target->SetVar (Urho3D::StringHash(key), (value));
  3986. }
  3987. DllExport void
  3988. Node_SetVar8 (Urho3D::Node *_target, int key, const class Urho3D::Matrix3x4 & value)
  3989. {
  3990. _target->SetVar (Urho3D::StringHash(key), (value));
  3991. }
  3992. DllExport void
  3993. Node_SetVar9 (Urho3D::Node *_target, int key, int value)
  3994. {
  3995. _target->SetVar (Urho3D::StringHash(key), (value));
  3996. }
  3997. DllExport void
  3998. Node_SetVar10 (Urho3D::Node *_target, int key, float value)
  3999. {
  4000. _target->SetVar (Urho3D::StringHash(key), (value));
  4001. }
  4002. DllExport void
  4003. Node_SetVar11 (Urho3D::Node *_target, int key, const char * value)
  4004. {
  4005. _target->SetVar (Urho3D::StringHash(key), Urho3D::String(value));
  4006. }
  4007. // Urho3D::Variant overloads end.
  4008. DllExport void
  4009. Node_AddListener (Urho3D::Node *_target, Urho3D::Component * component)
  4010. {
  4011. _target->AddListener (component);
  4012. }
  4013. DllExport void
  4014. Node_RemoveListener (Urho3D::Node *_target, Urho3D::Component * component)
  4015. {
  4016. _target->RemoveListener (component);
  4017. }
  4018. DllExport unsigned int
  4019. Node_GetID (Urho3D::Node *_target)
  4020. {
  4021. return _target->GetID ();
  4022. }
  4023. DllExport const char *
  4024. Node_GetName (Urho3D::Node *_target)
  4025. {
  4026. return stringdup((_target->GetName ()).CString ());
  4027. }
  4028. DllExport int
  4029. Node_GetNameHash (Urho3D::Node *_target)
  4030. {
  4031. return (_target->GetNameHash ()).Value ();
  4032. }
  4033. DllExport int
  4034. Node_HasTag (Urho3D::Node *_target, const char * tag)
  4035. {
  4036. return _target->HasTag (Urho3D::String(tag));
  4037. }
  4038. DllExport Urho3D::Node *
  4039. Node_GetParent (Urho3D::Node *_target)
  4040. {
  4041. return _target->GetParent ();
  4042. }
  4043. DllExport Urho3D::Scene *
  4044. Node_GetScene (Urho3D::Node *_target)
  4045. {
  4046. return _target->GetScene ();
  4047. }
  4048. DllExport int
  4049. Node_IsEnabled (Urho3D::Node *_target)
  4050. {
  4051. return _target->IsEnabled ();
  4052. }
  4053. DllExport int
  4054. Node_IsEnabledSelf (Urho3D::Node *_target)
  4055. {
  4056. return _target->IsEnabledSelf ();
  4057. }
  4058. DllExport Urho3D::Connection *
  4059. Node_GetOwner (Urho3D::Node *_target)
  4060. {
  4061. return _target->GetOwner ();
  4062. }
  4063. DllExport Interop::Vector3
  4064. Node_GetPosition (Urho3D::Node *_target)
  4065. {
  4066. return *((Interop::Vector3 *) &(_target->GetPosition ()));
  4067. }
  4068. DllExport Interop::Vector2
  4069. Node_GetPosition2D (Urho3D::Node *_target)
  4070. {
  4071. return *((Interop::Vector2 *) &(_target->GetPosition2D ()));
  4072. }
  4073. DllExport Interop::Quaternion
  4074. Node_GetRotation (Urho3D::Node *_target)
  4075. {
  4076. return *((Interop::Quaternion *) &(_target->GetRotation ()));
  4077. }
  4078. DllExport float
  4079. Node_GetRotation2D (Urho3D::Node *_target)
  4080. {
  4081. return _target->GetRotation2D ();
  4082. }
  4083. DllExport Interop::Vector3
  4084. Node_GetDirection (Urho3D::Node *_target)
  4085. {
  4086. return *((Interop::Vector3 *) &(_target->GetDirection ()));
  4087. }
  4088. DllExport Interop::Vector3
  4089. Node_GetUp (Urho3D::Node *_target)
  4090. {
  4091. return *((Interop::Vector3 *) &(_target->GetUp ()));
  4092. }
  4093. DllExport Interop::Vector3
  4094. Node_GetRight (Urho3D::Node *_target)
  4095. {
  4096. return *((Interop::Vector3 *) &(_target->GetRight ()));
  4097. }
  4098. DllExport Interop::Vector3
  4099. Node_GetScale (Urho3D::Node *_target)
  4100. {
  4101. return *((Interop::Vector3 *) &(_target->GetScale ()));
  4102. }
  4103. DllExport Interop::Vector2
  4104. Node_GetScale2D (Urho3D::Node *_target)
  4105. {
  4106. return *((Interop::Vector2 *) &(_target->GetScale2D ()));
  4107. }
  4108. DllExport Interop::Matrix3x4
  4109. Node_GetTransform (Urho3D::Node *_target)
  4110. {
  4111. return *((Interop::Matrix3x4 *) &(_target->GetTransform ()));
  4112. }
  4113. DllExport Interop::Vector3
  4114. Node_GetWorldPosition (Urho3D::Node *_target)
  4115. {
  4116. return *((Interop::Vector3 *) &(_target->GetWorldPosition ()));
  4117. }
  4118. DllExport Interop::Vector2
  4119. Node_GetWorldPosition2D (Urho3D::Node *_target)
  4120. {
  4121. return *((Interop::Vector2 *) &(_target->GetWorldPosition2D ()));
  4122. }
  4123. DllExport Interop::Quaternion
  4124. Node_GetWorldRotation (Urho3D::Node *_target)
  4125. {
  4126. return *((Interop::Quaternion *) &(_target->GetWorldRotation ()));
  4127. }
  4128. DllExport float
  4129. Node_GetWorldRotation2D (Urho3D::Node *_target)
  4130. {
  4131. return _target->GetWorldRotation2D ();
  4132. }
  4133. DllExport Interop::Vector3
  4134. Node_GetWorldDirection (Urho3D::Node *_target)
  4135. {
  4136. return *((Interop::Vector3 *) &(_target->GetWorldDirection ()));
  4137. }
  4138. DllExport Interop::Vector3
  4139. Node_GetWorldUp (Urho3D::Node *_target)
  4140. {
  4141. return *((Interop::Vector3 *) &(_target->GetWorldUp ()));
  4142. }
  4143. DllExport Interop::Vector3
  4144. Node_GetWorldRight (Urho3D::Node *_target)
  4145. {
  4146. return *((Interop::Vector3 *) &(_target->GetWorldRight ()));
  4147. }
  4148. DllExport Interop::Vector3
  4149. Node_GetWorldScale (Urho3D::Node *_target)
  4150. {
  4151. return *((Interop::Vector3 *) &(_target->GetWorldScale ()));
  4152. }
  4153. DllExport Interop::Vector2
  4154. Node_GetWorldScale2D (Urho3D::Node *_target)
  4155. {
  4156. return *((Interop::Vector2 *) &(_target->GetWorldScale2D ()));
  4157. }
  4158. DllExport Interop::Matrix3x4
  4159. Node_GetWorldTransform (Urho3D::Node *_target)
  4160. {
  4161. return *((Interop::Matrix3x4 *) &(_target->GetWorldTransform ()));
  4162. }
  4163. DllExport Interop::Vector3
  4164. Node_LocalToWorld (Urho3D::Node *_target, const class Urho3D::Vector3 & position)
  4165. {
  4166. return *((Interop::Vector3 *) &(_target->LocalToWorld (position)));
  4167. }
  4168. DllExport Interop::Vector3
  4169. Node_LocalToWorld20 (Urho3D::Node *_target, const class Urho3D::Vector4 & vector)
  4170. {
  4171. return *((Interop::Vector3 *) &(_target->LocalToWorld (vector)));
  4172. }
  4173. DllExport Interop::Vector2
  4174. Node_LocalToWorld2D (Urho3D::Node *_target, const class Urho3D::Vector2 & vector)
  4175. {
  4176. return *((Interop::Vector2 *) &(_target->LocalToWorld2D (vector)));
  4177. }
  4178. DllExport Interop::Vector3
  4179. Node_WorldToLocal (Urho3D::Node *_target, const class Urho3D::Vector3 & position)
  4180. {
  4181. return *((Interop::Vector3 *) &(_target->WorldToLocal (position)));
  4182. }
  4183. DllExport Interop::Vector3
  4184. Node_WorldToLocal21 (Urho3D::Node *_target, const class Urho3D::Vector4 & vector)
  4185. {
  4186. return *((Interop::Vector3 *) &(_target->WorldToLocal (vector)));
  4187. }
  4188. DllExport Interop::Vector2
  4189. Node_WorldToLocal2D (Urho3D::Node *_target, const class Urho3D::Vector2 & vector)
  4190. {
  4191. return *((Interop::Vector2 *) &(_target->WorldToLocal2D (vector)));
  4192. }
  4193. DllExport int
  4194. Node_IsDirty (Urho3D::Node *_target)
  4195. {
  4196. return _target->IsDirty ();
  4197. }
  4198. DllExport unsigned int
  4199. Node_GetNumChildren (Urho3D::Node *_target, bool recursive)
  4200. {
  4201. return _target->GetNumChildren (recursive);
  4202. }
  4203. DllExport const Vector<SharedPtr<class Urho3D::Node> > &
  4204. Node_GetChildren (Urho3D::Node *_target)
  4205. {
  4206. return _target->GetChildren ();
  4207. }
  4208. DllExport Urho3D::Node *
  4209. Node_GetChild (Urho3D::Node *_target, unsigned int index)
  4210. {
  4211. return _target->GetChild (index);
  4212. }
  4213. DllExport Urho3D::Node *
  4214. Node_GetChild22 (Urho3D::Node *_target, const char * name, bool recursive)
  4215. {
  4216. return _target->GetChild (Urho3D::String(name), recursive);
  4217. }
  4218. DllExport Urho3D::Node *
  4219. Node_GetChild23 (Urho3D::Node *_target, int nameHash, bool recursive)
  4220. {
  4221. return _target->GetChild (Urho3D::StringHash(nameHash), recursive);
  4222. }
  4223. DllExport unsigned int
  4224. Node_GetNumComponents (Urho3D::Node *_target)
  4225. {
  4226. return _target->GetNumComponents ();
  4227. }
  4228. DllExport unsigned int
  4229. Node_GetNumNetworkComponents (Urho3D::Node *_target)
  4230. {
  4231. return _target->GetNumNetworkComponents ();
  4232. }
  4233. DllExport const Vector<SharedPtr<class Urho3D::Component> > &
  4234. Node_GetComponents (Urho3D::Node *_target)
  4235. {
  4236. return _target->GetComponents ();
  4237. }
  4238. DllExport Urho3D::Component *
  4239. Node_GetComponent (Urho3D::Node *_target, int type, bool recursive)
  4240. {
  4241. return _target->GetComponent (Urho3D::StringHash(type), recursive);
  4242. }
  4243. DllExport Urho3D::Component *
  4244. Node_GetParentComponent (Urho3D::Node *_target, int type, bool fullTraversal)
  4245. {
  4246. return _target->GetParentComponent (Urho3D::StringHash(type), fullTraversal);
  4247. }
  4248. DllExport int
  4249. Node_HasComponent (Urho3D::Node *_target, int type)
  4250. {
  4251. return _target->HasComponent (Urho3D::StringHash(type));
  4252. }
  4253. // Urho3D::Variant overloads begin:
  4254. DllExport Interop::Vector3
  4255. Node_GetVar0 (Urho3D::Node *_target, int key)
  4256. {
  4257. return *((Interop::Vector3 *) &(_target->GetVar (Urho3D::StringHash(key)).GetVector3()));
  4258. }
  4259. DllExport Interop::IntRect
  4260. Node_GetVar1 (Urho3D::Node *_target, int key)
  4261. {
  4262. return *((Interop::IntRect *) &(_target->GetVar (Urho3D::StringHash(key)).GetIntRect()));
  4263. }
  4264. DllExport Interop::Color
  4265. Node_GetVar2 (Urho3D::Node *_target, int key)
  4266. {
  4267. return *((Interop::Color *) &(_target->GetVar (Urho3D::StringHash(key)).GetColor()));
  4268. }
  4269. DllExport Interop::Vector2
  4270. Node_GetVar3 (Urho3D::Node *_target, int key)
  4271. {
  4272. return *((Interop::Vector2 *) &(_target->GetVar (Urho3D::StringHash(key)).GetVector2()));
  4273. }
  4274. DllExport Interop::Vector4
  4275. Node_GetVar4 (Urho3D::Node *_target, int key)
  4276. {
  4277. return *((Interop::Vector4 *) &(_target->GetVar (Urho3D::StringHash(key)).GetVector4()));
  4278. }
  4279. DllExport Interop::IntVector2
  4280. Node_GetVar5 (Urho3D::Node *_target, int key)
  4281. {
  4282. return *((Interop::IntVector2 *) &(_target->GetVar (Urho3D::StringHash(key)).GetIntVector2()));
  4283. }
  4284. DllExport Interop::Quaternion
  4285. Node_GetVar6 (Urho3D::Node *_target, int key)
  4286. {
  4287. return *((Interop::Quaternion *) &(_target->GetVar (Urho3D::StringHash(key)).GetQuaternion()));
  4288. }
  4289. DllExport Interop::Matrix4
  4290. Node_GetVar7 (Urho3D::Node *_target, int key)
  4291. {
  4292. return *((Interop::Matrix4 *) &(_target->GetVar (Urho3D::StringHash(key)).GetMatrix4()));
  4293. }
  4294. DllExport Interop::Matrix3x4
  4295. Node_GetVar8 (Urho3D::Node *_target, int key)
  4296. {
  4297. return *((Interop::Matrix3x4 *) &(_target->GetVar (Urho3D::StringHash(key)).GetMatrix3x4()));
  4298. }
  4299. DllExport int
  4300. Node_GetVar9 (Urho3D::Node *_target, int key)
  4301. {
  4302. return (_target->GetVar (Urho3D::StringHash(key)).GetInt());
  4303. }
  4304. DllExport float
  4305. Node_GetVar10 (Urho3D::Node *_target, int key)
  4306. {
  4307. return (_target->GetVar (Urho3D::StringHash(key)).GetFloat());
  4308. }
  4309. DllExport const char *
  4310. Node_GetVar11 (Urho3D::Node *_target, int key)
  4311. {
  4312. return stringdup(_target->GetVar (Urho3D::StringHash(key)).GetString().CString());
  4313. }
  4314. // Urho3D::Variant overloads end.
  4315. DllExport void
  4316. Node_SetID (Urho3D::Node *_target, unsigned int id)
  4317. {
  4318. _target->SetID (id);
  4319. }
  4320. DllExport void
  4321. Node_SetScene (Urho3D::Node *_target, Urho3D::Scene * scene)
  4322. {
  4323. _target->SetScene (scene);
  4324. }
  4325. DllExport void
  4326. Node_ResetScene (Urho3D::Node *_target)
  4327. {
  4328. _target->ResetScene ();
  4329. }
  4330. DllExport void
  4331. Node_SetNetPositionAttr (Urho3D::Node *_target, const class Urho3D::Vector3 & value)
  4332. {
  4333. _target->SetNetPositionAttr (value);
  4334. }
  4335. DllExport Interop::Vector3
  4336. Node_GetNetPositionAttr (Urho3D::Node *_target)
  4337. {
  4338. return *((Interop::Vector3 *) &(_target->GetNetPositionAttr ()));
  4339. }
  4340. DllExport void
  4341. Node_PrepareNetworkUpdate (Urho3D::Node *_target)
  4342. {
  4343. _target->PrepareNetworkUpdate ();
  4344. }
  4345. DllExport void
  4346. Node_CleanupConnection (Urho3D::Node *_target, Urho3D::Connection * connection)
  4347. {
  4348. _target->CleanupConnection (connection);
  4349. }
  4350. DllExport void
  4351. Node_MarkReplicationDirty (Urho3D::Node *_target)
  4352. {
  4353. _target->MarkReplicationDirty ();
  4354. }
  4355. DllExport Urho3D::Node *
  4356. Node_CreateChild24 (Urho3D::Node *_target, unsigned int id, enum Urho3D::CreateMode mode)
  4357. {
  4358. return _target->CreateChild (id, mode);
  4359. }
  4360. DllExport void
  4361. Node_AddComponent (Urho3D::Node *_target, Urho3D::Component * component, unsigned int id, enum Urho3D::CreateMode mode)
  4362. {
  4363. _target->AddComponent (component, id, mode);
  4364. }
  4365. DllExport unsigned int
  4366. Node_GetNumPersistentChildren (Urho3D::Node *_target)
  4367. {
  4368. return _target->GetNumPersistentChildren ();
  4369. }
  4370. DllExport unsigned int
  4371. Node_GetNumPersistentComponents (Urho3D::Node *_target)
  4372. {
  4373. return _target->GetNumPersistentComponents ();
  4374. }
  4375. DllExport void
  4376. Node_SetPositionSilent (Urho3D::Node *_target, const class Urho3D::Vector3 & position)
  4377. {
  4378. _target->SetPositionSilent (position);
  4379. }
  4380. DllExport void
  4381. Node_SetRotationSilent (Urho3D::Node *_target, const class Urho3D::Quaternion & rotation)
  4382. {
  4383. _target->SetRotationSilent (rotation);
  4384. }
  4385. DllExport void
  4386. Node_SetScaleSilent (Urho3D::Node *_target, const class Urho3D::Vector3 & scale)
  4387. {
  4388. _target->SetScaleSilent (scale);
  4389. }
  4390. DllExport void
  4391. Node_SetTransformSilent (Urho3D::Node *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, const class Urho3D::Vector3 & scale)
  4392. {
  4393. _target->SetTransformSilent (position, rotation, scale);
  4394. }
  4395. DllExport int
  4396. Skeleton_Load_File (Urho3D::Skeleton *_target, File * source)
  4397. {
  4398. return _target->Load (*source);
  4399. }
  4400. DllExport int
  4401. Skeleton_Load_MemoryBuffer (Urho3D::Skeleton *_target, MemoryBuffer * source)
  4402. {
  4403. return _target->Load (*source);
  4404. }
  4405. DllExport int
  4406. Skeleton_Save_File (Urho3D::Skeleton *_target, File * dest)
  4407. {
  4408. return _target->Save (*dest);
  4409. }
  4410. DllExport int
  4411. Skeleton_Save_MemoryBuffer (Urho3D::Skeleton *_target, MemoryBuffer * dest)
  4412. {
  4413. return _target->Save (*dest);
  4414. }
  4415. DllExport void
  4416. Skeleton_SetRootBoneIndex (Urho3D::Skeleton *_target, unsigned int index)
  4417. {
  4418. _target->SetRootBoneIndex (index);
  4419. }
  4420. DllExport void
  4421. Skeleton_ClearBones (Urho3D::Skeleton *_target)
  4422. {
  4423. _target->ClearBones ();
  4424. }
  4425. DllExport void
  4426. Skeleton_Reset (Urho3D::Skeleton *_target)
  4427. {
  4428. _target->Reset ();
  4429. }
  4430. DllExport unsigned int
  4431. Skeleton_GetNumBones (Urho3D::Skeleton *_target)
  4432. {
  4433. return _target->GetNumBones ();
  4434. }
  4435. DllExport Urho3D::Bone *
  4436. Skeleton_GetRootBone (Urho3D::Skeleton *_target)
  4437. {
  4438. return _target->GetRootBone ();
  4439. }
  4440. DllExport Urho3D::Bone *
  4441. Skeleton_GetBone (Urho3D::Skeleton *_target, unsigned int index)
  4442. {
  4443. return _target->GetBone (index);
  4444. }
  4445. DllExport Urho3D::Bone *
  4446. Skeleton_GetBone0 (Urho3D::Skeleton *_target, int boneNameHash)
  4447. {
  4448. return _target->GetBone (Urho3D::StringHash(boneNameHash));
  4449. }
  4450. DllExport void
  4451. Skeleton_ResetSilent (Urho3D::Skeleton *_target)
  4452. {
  4453. _target->ResetSilent ();
  4454. }
  4455. DllExport int
  4456. Model_GetType (Urho3D::Model *_target)
  4457. {
  4458. return (_target->GetType ()).Value ();
  4459. }
  4460. DllExport const char *
  4461. Model_GetTypeName (Urho3D::Model *_target)
  4462. {
  4463. return stringdup((_target->GetTypeName ()).CString ());
  4464. }
  4465. DllExport int
  4466. Model_GetTypeStatic ()
  4467. {
  4468. return (Model::GetTypeStatic ()).Value ();
  4469. }
  4470. DllExport const char *
  4471. Model_GetTypeNameStatic ()
  4472. {
  4473. return stringdup((Model::GetTypeNameStatic ()).CString ());
  4474. }
  4475. DllExport void *
  4476. Model_Model (Urho3D::Context * context)
  4477. {
  4478. return WeakPtr<Model>(new Model(context));
  4479. }
  4480. DllExport void
  4481. Model_RegisterObject (Urho3D::Context * context)
  4482. {
  4483. Model::RegisterObject (context);
  4484. }
  4485. DllExport int
  4486. Model_BeginLoad_File (Urho3D::Model *_target, File * source)
  4487. {
  4488. return _target->BeginLoad (*source);
  4489. }
  4490. DllExport int
  4491. Model_BeginLoad_MemoryBuffer (Urho3D::Model *_target, MemoryBuffer * source)
  4492. {
  4493. return _target->BeginLoad (*source);
  4494. }
  4495. DllExport int
  4496. Model_EndLoad (Urho3D::Model *_target)
  4497. {
  4498. return _target->EndLoad ();
  4499. }
  4500. DllExport int
  4501. Model_Save_File (Urho3D::Model *_target, File * dest)
  4502. {
  4503. return _target->Save (*dest);
  4504. }
  4505. DllExport int
  4506. Model_Save_MemoryBuffer (Urho3D::Model *_target, MemoryBuffer * dest)
  4507. {
  4508. return _target->Save (*dest);
  4509. }
  4510. DllExport void
  4511. Model_SetBoundingBox (Urho3D::Model *_target, const class Urho3D::BoundingBox & box)
  4512. {
  4513. _target->SetBoundingBox (box);
  4514. }
  4515. DllExport void
  4516. Model_SetNumGeometries (Urho3D::Model *_target, unsigned int num)
  4517. {
  4518. _target->SetNumGeometries (num);
  4519. }
  4520. DllExport int
  4521. Model_SetNumGeometryLodLevels (Urho3D::Model *_target, unsigned int index, unsigned int num)
  4522. {
  4523. return _target->SetNumGeometryLodLevels (index, num);
  4524. }
  4525. DllExport int
  4526. Model_SetGeometry (Urho3D::Model *_target, unsigned int index, unsigned int lodLevel, Urho3D::Geometry * geometry)
  4527. {
  4528. return _target->SetGeometry (index, lodLevel, geometry);
  4529. }
  4530. DllExport int
  4531. Model_SetGeometryCenter (Urho3D::Model *_target, unsigned int index, const class Urho3D::Vector3 & center)
  4532. {
  4533. return _target->SetGeometryCenter (index, center);
  4534. }
  4535. DllExport Urho3D::Model *
  4536. Model_Clone (Urho3D::Model *_target, const char * cloneName)
  4537. {
  4538. auto copy = _target->Clone (Urho3D::String(cloneName));
  4539. auto plain = copy.Get();
  4540. copy.Detach();
  4541. delete copy;
  4542. return plain;
  4543. }
  4544. DllExport Interop::BoundingBox
  4545. Model_GetBoundingBox (Urho3D::Model *_target)
  4546. {
  4547. return *((Interop::BoundingBox *) &(_target->GetBoundingBox ()));
  4548. }
  4549. DllExport const Vector<SharedPtr<class Urho3D::VertexBuffer> > &
  4550. Model_GetVertexBuffers (Urho3D::Model *_target)
  4551. {
  4552. return _target->GetVertexBuffers ();
  4553. }
  4554. DllExport const Vector<SharedPtr<class Urho3D::IndexBuffer> > &
  4555. Model_GetIndexBuffers (Urho3D::Model *_target)
  4556. {
  4557. return _target->GetIndexBuffers ();
  4558. }
  4559. DllExport unsigned int
  4560. Model_GetNumGeometries (Urho3D::Model *_target)
  4561. {
  4562. return _target->GetNumGeometries ();
  4563. }
  4564. DllExport unsigned int
  4565. Model_GetNumGeometryLodLevels (Urho3D::Model *_target, unsigned int index)
  4566. {
  4567. return _target->GetNumGeometryLodLevels (index);
  4568. }
  4569. DllExport Urho3D::Geometry *
  4570. Model_GetGeometry (Urho3D::Model *_target, unsigned int index, unsigned int lodLevel)
  4571. {
  4572. return _target->GetGeometry (index, lodLevel);
  4573. }
  4574. DllExport Interop::Vector3
  4575. Model_GetGeometryCenter (Urho3D::Model *_target, unsigned int index)
  4576. {
  4577. return *((Interop::Vector3 *) &(_target->GetGeometryCenter (index)));
  4578. }
  4579. DllExport unsigned int
  4580. Model_GetNumMorphs (Urho3D::Model *_target)
  4581. {
  4582. return _target->GetNumMorphs ();
  4583. }
  4584. DllExport const struct Urho3D::ModelMorph *
  4585. Model_GetMorph (Urho3D::Model *_target, unsigned int index)
  4586. {
  4587. return _target->GetMorph (index);
  4588. }
  4589. DllExport const struct Urho3D::ModelMorph *
  4590. Model_GetMorph0 (Urho3D::Model *_target, const char * name)
  4591. {
  4592. return _target->GetMorph (Urho3D::String(name));
  4593. }
  4594. DllExport const struct Urho3D::ModelMorph *
  4595. Model_GetMorph1 (Urho3D::Model *_target, int nameHash)
  4596. {
  4597. return _target->GetMorph (Urho3D::StringHash(nameHash));
  4598. }
  4599. DllExport unsigned int
  4600. Model_GetMorphRangeStart (Urho3D::Model *_target, unsigned int bufferIndex)
  4601. {
  4602. return _target->GetMorphRangeStart (bufferIndex);
  4603. }
  4604. DllExport unsigned int
  4605. Model_GetMorphRangeCount (Urho3D::Model *_target, unsigned int bufferIndex)
  4606. {
  4607. return _target->GetMorphRangeCount (bufferIndex);
  4608. }
  4609. DllExport int
  4610. Drawable_GetType (Urho3D::Drawable *_target)
  4611. {
  4612. return (_target->GetType ()).Value ();
  4613. }
  4614. DllExport const char *
  4615. Drawable_GetTypeName (Urho3D::Drawable *_target)
  4616. {
  4617. return stringdup((_target->GetTypeName ()).CString ());
  4618. }
  4619. DllExport int
  4620. Drawable_GetTypeStatic ()
  4621. {
  4622. return (Drawable::GetTypeStatic ()).Value ();
  4623. }
  4624. DllExport const char *
  4625. Drawable_GetTypeNameStatic ()
  4626. {
  4627. return stringdup((Drawable::GetTypeNameStatic ()).CString ());
  4628. }
  4629. DllExport void
  4630. Drawable_RegisterObject (Urho3D::Context * context)
  4631. {
  4632. Drawable::RegisterObject (context);
  4633. }
  4634. DllExport void
  4635. Drawable_OnSetEnabled (Urho3D::Drawable *_target)
  4636. {
  4637. _target->OnSetEnabled ();
  4638. }
  4639. DllExport enum Urho3D::UpdateGeometryType
  4640. Drawable_GetUpdateGeometryType (Urho3D::Drawable *_target)
  4641. {
  4642. return _target->GetUpdateGeometryType ();
  4643. }
  4644. DllExport Urho3D::Geometry *
  4645. Drawable_GetLodGeometry (Urho3D::Drawable *_target, unsigned int batchIndex, unsigned int level)
  4646. {
  4647. return _target->GetLodGeometry (batchIndex, level);
  4648. }
  4649. DllExport unsigned int
  4650. Drawable_GetNumOccluderTriangles (Urho3D::Drawable *_target)
  4651. {
  4652. return _target->GetNumOccluderTriangles ();
  4653. }
  4654. DllExport int
  4655. Drawable_DrawOcclusion (Urho3D::Drawable *_target, Urho3D::OcclusionBuffer * buffer)
  4656. {
  4657. return _target->DrawOcclusion (buffer);
  4658. }
  4659. DllExport void
  4660. Drawable_DrawDebugGeometry (Urho3D::Drawable *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  4661. {
  4662. _target->DrawDebugGeometry (debug, depthTest);
  4663. }
  4664. DllExport void
  4665. Drawable_SetDrawDistance (Urho3D::Drawable *_target, float distance)
  4666. {
  4667. _target->SetDrawDistance (distance);
  4668. }
  4669. DllExport void
  4670. Drawable_SetShadowDistance (Urho3D::Drawable *_target, float distance)
  4671. {
  4672. _target->SetShadowDistance (distance);
  4673. }
  4674. DllExport void
  4675. Drawable_SetLodBias (Urho3D::Drawable *_target, float bias)
  4676. {
  4677. _target->SetLodBias (bias);
  4678. }
  4679. DllExport void
  4680. Drawable_SetViewMask (Urho3D::Drawable *_target, unsigned int mask)
  4681. {
  4682. _target->SetViewMask (mask);
  4683. }
  4684. DllExport void
  4685. Drawable_SetLightMask (Urho3D::Drawable *_target, unsigned int mask)
  4686. {
  4687. _target->SetLightMask (mask);
  4688. }
  4689. DllExport void
  4690. Drawable_SetShadowMask (Urho3D::Drawable *_target, unsigned int mask)
  4691. {
  4692. _target->SetShadowMask (mask);
  4693. }
  4694. DllExport void
  4695. Drawable_SetZoneMask (Urho3D::Drawable *_target, unsigned int mask)
  4696. {
  4697. _target->SetZoneMask (mask);
  4698. }
  4699. DllExport void
  4700. Drawable_SetMaxLights (Urho3D::Drawable *_target, unsigned int num)
  4701. {
  4702. _target->SetMaxLights (num);
  4703. }
  4704. DllExport void
  4705. Drawable_SetCastShadows (Urho3D::Drawable *_target, bool enable)
  4706. {
  4707. _target->SetCastShadows (enable);
  4708. }
  4709. DllExport void
  4710. Drawable_SetOccluder (Urho3D::Drawable *_target, bool enable)
  4711. {
  4712. _target->SetOccluder (enable);
  4713. }
  4714. DllExport void
  4715. Drawable_SetOccludee (Urho3D::Drawable *_target, bool enable)
  4716. {
  4717. _target->SetOccludee (enable);
  4718. }
  4719. DllExport void
  4720. Drawable_MarkForUpdate (Urho3D::Drawable *_target)
  4721. {
  4722. _target->MarkForUpdate ();
  4723. }
  4724. DllExport Interop::BoundingBox
  4725. Drawable_GetBoundingBox (Urho3D::Drawable *_target)
  4726. {
  4727. return *((Interop::BoundingBox *) &(_target->GetBoundingBox ()));
  4728. }
  4729. DllExport Interop::BoundingBox
  4730. Drawable_GetWorldBoundingBox (Urho3D::Drawable *_target)
  4731. {
  4732. return *((Interop::BoundingBox *) &(_target->GetWorldBoundingBox ()));
  4733. }
  4734. DllExport unsigned char
  4735. Drawable_GetDrawableFlags (Urho3D::Drawable *_target)
  4736. {
  4737. return _target->GetDrawableFlags ();
  4738. }
  4739. DllExport float
  4740. Drawable_GetDrawDistance (Urho3D::Drawable *_target)
  4741. {
  4742. return _target->GetDrawDistance ();
  4743. }
  4744. DllExport float
  4745. Drawable_GetShadowDistance (Urho3D::Drawable *_target)
  4746. {
  4747. return _target->GetShadowDistance ();
  4748. }
  4749. DllExport float
  4750. Drawable_GetLodBias (Urho3D::Drawable *_target)
  4751. {
  4752. return _target->GetLodBias ();
  4753. }
  4754. DllExport unsigned int
  4755. Drawable_GetViewMask (Urho3D::Drawable *_target)
  4756. {
  4757. return _target->GetViewMask ();
  4758. }
  4759. DllExport unsigned int
  4760. Drawable_GetLightMask (Urho3D::Drawable *_target)
  4761. {
  4762. return _target->GetLightMask ();
  4763. }
  4764. DllExport unsigned int
  4765. Drawable_GetShadowMask (Urho3D::Drawable *_target)
  4766. {
  4767. return _target->GetShadowMask ();
  4768. }
  4769. DllExport unsigned int
  4770. Drawable_GetZoneMask (Urho3D::Drawable *_target)
  4771. {
  4772. return _target->GetZoneMask ();
  4773. }
  4774. DllExport unsigned int
  4775. Drawable_GetMaxLights (Urho3D::Drawable *_target)
  4776. {
  4777. return _target->GetMaxLights ();
  4778. }
  4779. DllExport int
  4780. Drawable_GetCastShadows (Urho3D::Drawable *_target)
  4781. {
  4782. return _target->GetCastShadows ();
  4783. }
  4784. DllExport int
  4785. Drawable_IsOccluder (Urho3D::Drawable *_target)
  4786. {
  4787. return _target->IsOccluder ();
  4788. }
  4789. DllExport int
  4790. Drawable_IsOccludee (Urho3D::Drawable *_target)
  4791. {
  4792. return _target->IsOccludee ();
  4793. }
  4794. DllExport int
  4795. Drawable_IsInView (Urho3D::Drawable *_target)
  4796. {
  4797. return _target->IsInView ();
  4798. }
  4799. DllExport int
  4800. Drawable_IsInView0 (Urho3D::Drawable *_target, Urho3D::Camera * camera)
  4801. {
  4802. return _target->IsInView (camera);
  4803. }
  4804. DllExport void
  4805. Drawable_SetZone (Urho3D::Drawable *_target, Urho3D::Zone * zone, bool temporary)
  4806. {
  4807. _target->SetZone (zone, temporary);
  4808. }
  4809. DllExport void
  4810. Drawable_SetSortValue (Urho3D::Drawable *_target, float value)
  4811. {
  4812. _target->SetSortValue (value);
  4813. }
  4814. DllExport void
  4815. Drawable_SetMinMaxZ (Urho3D::Drawable *_target, float minZ, float maxZ)
  4816. {
  4817. _target->SetMinMaxZ (minZ, maxZ);
  4818. }
  4819. DllExport void
  4820. Drawable_MarkInView (Urho3D::Drawable *_target, unsigned int frameNumber)
  4821. {
  4822. _target->MarkInView (frameNumber);
  4823. }
  4824. DllExport void
  4825. Drawable_LimitLights (Urho3D::Drawable *_target)
  4826. {
  4827. _target->LimitLights ();
  4828. }
  4829. DllExport void
  4830. Drawable_LimitVertexLights (Urho3D::Drawable *_target, bool removeConvertedLights)
  4831. {
  4832. _target->LimitVertexLights (removeConvertedLights);
  4833. }
  4834. DllExport void
  4835. Drawable_SetBasePass (Urho3D::Drawable *_target, unsigned int batchIndex)
  4836. {
  4837. _target->SetBasePass (batchIndex);
  4838. }
  4839. DllExport Urho3D::Octant *
  4840. Drawable_GetOctant (Urho3D::Drawable *_target)
  4841. {
  4842. return _target->GetOctant ();
  4843. }
  4844. DllExport Urho3D::Zone *
  4845. Drawable_GetZone (Urho3D::Drawable *_target)
  4846. {
  4847. return _target->GetZone ();
  4848. }
  4849. DllExport int
  4850. Drawable_IsZoneDirty (Urho3D::Drawable *_target)
  4851. {
  4852. return _target->IsZoneDirty ();
  4853. }
  4854. DllExport float
  4855. Drawable_GetDistance (Urho3D::Drawable *_target)
  4856. {
  4857. return _target->GetDistance ();
  4858. }
  4859. DllExport float
  4860. Drawable_GetLodDistance (Urho3D::Drawable *_target)
  4861. {
  4862. return _target->GetLodDistance ();
  4863. }
  4864. DllExport float
  4865. Drawable_GetSortValue (Urho3D::Drawable *_target)
  4866. {
  4867. return _target->GetSortValue ();
  4868. }
  4869. DllExport int
  4870. Drawable_HasBasePass (Urho3D::Drawable *_target, unsigned int batchIndex)
  4871. {
  4872. return _target->HasBasePass (batchIndex);
  4873. }
  4874. DllExport Urho3D::Light *
  4875. Drawable_GetFirstLight (Urho3D::Drawable *_target)
  4876. {
  4877. return _target->GetFirstLight ();
  4878. }
  4879. DllExport float
  4880. Drawable_GetMinZ (Urho3D::Drawable *_target)
  4881. {
  4882. return _target->GetMinZ ();
  4883. }
  4884. DllExport float
  4885. Drawable_GetMaxZ (Urho3D::Drawable *_target)
  4886. {
  4887. return _target->GetMaxZ ();
  4888. }
  4889. DllExport void
  4890. Drawable_AddLight (Urho3D::Drawable *_target, Urho3D::Light * light)
  4891. {
  4892. _target->AddLight (light);
  4893. }
  4894. DllExport void
  4895. Drawable_AddVertexLight (Urho3D::Drawable *_target, Urho3D::Light * light)
  4896. {
  4897. _target->AddVertexLight (light);
  4898. }
  4899. DllExport int
  4900. StaticModel_GetType (Urho3D::StaticModel *_target)
  4901. {
  4902. return (_target->GetType ()).Value ();
  4903. }
  4904. DllExport const char *
  4905. StaticModel_GetTypeName (Urho3D::StaticModel *_target)
  4906. {
  4907. return stringdup((_target->GetTypeName ()).CString ());
  4908. }
  4909. DllExport int
  4910. StaticModel_GetTypeStatic ()
  4911. {
  4912. return (StaticModel::GetTypeStatic ()).Value ();
  4913. }
  4914. DllExport const char *
  4915. StaticModel_GetTypeNameStatic ()
  4916. {
  4917. return stringdup((StaticModel::GetTypeNameStatic ()).CString ());
  4918. }
  4919. DllExport void *
  4920. StaticModel_StaticModel (Urho3D::Context * context)
  4921. {
  4922. return WeakPtr<StaticModel>(new StaticModel(context));
  4923. }
  4924. DllExport void
  4925. StaticModel_RegisterObject (Urho3D::Context * context)
  4926. {
  4927. StaticModel::RegisterObject (context);
  4928. }
  4929. DllExport Urho3D::Geometry *
  4930. StaticModel_GetLodGeometry (Urho3D::StaticModel *_target, unsigned int batchIndex, unsigned int level)
  4931. {
  4932. return _target->GetLodGeometry (batchIndex, level);
  4933. }
  4934. DllExport unsigned int
  4935. StaticModel_GetNumOccluderTriangles (Urho3D::StaticModel *_target)
  4936. {
  4937. return _target->GetNumOccluderTriangles ();
  4938. }
  4939. DllExport int
  4940. StaticModel_DrawOcclusion (Urho3D::StaticModel *_target, Urho3D::OcclusionBuffer * buffer)
  4941. {
  4942. return _target->DrawOcclusion (buffer);
  4943. }
  4944. DllExport void
  4945. StaticModel_SetModel (Urho3D::StaticModel *_target, Urho3D::Model * model)
  4946. {
  4947. _target->SetModel (model);
  4948. }
  4949. DllExport void
  4950. StaticModel_SetMaterial (Urho3D::StaticModel *_target, Urho3D::Material * material)
  4951. {
  4952. _target->SetMaterial (material);
  4953. }
  4954. DllExport int
  4955. StaticModel_SetMaterial0 (Urho3D::StaticModel *_target, unsigned int index, Urho3D::Material * material)
  4956. {
  4957. return _target->SetMaterial (index, material);
  4958. }
  4959. DllExport void
  4960. StaticModel_SetOcclusionLodLevel (Urho3D::StaticModel *_target, unsigned int level)
  4961. {
  4962. _target->SetOcclusionLodLevel (level);
  4963. }
  4964. DllExport void
  4965. StaticModel_ApplyMaterialList (Urho3D::StaticModel *_target, const char * fileName)
  4966. {
  4967. _target->ApplyMaterialList (Urho3D::String(fileName));
  4968. }
  4969. DllExport Urho3D::Model *
  4970. StaticModel_GetModel (Urho3D::StaticModel *_target)
  4971. {
  4972. return _target->GetModel ();
  4973. }
  4974. DllExport unsigned int
  4975. StaticModel_GetNumGeometries (Urho3D::StaticModel *_target)
  4976. {
  4977. return _target->GetNumGeometries ();
  4978. }
  4979. DllExport Urho3D::Material *
  4980. StaticModel_GetMaterial (Urho3D::StaticModel *_target, unsigned int index)
  4981. {
  4982. return _target->GetMaterial (index);
  4983. }
  4984. DllExport unsigned int
  4985. StaticModel_GetOcclusionLodLevel (Urho3D::StaticModel *_target)
  4986. {
  4987. return _target->GetOcclusionLodLevel ();
  4988. }
  4989. DllExport int
  4990. StaticModel_IsInside (Urho3D::StaticModel *_target, const class Urho3D::Vector3 & point)
  4991. {
  4992. return _target->IsInside (point);
  4993. }
  4994. DllExport int
  4995. StaticModel_IsInsideLocal (Urho3D::StaticModel *_target, const class Urho3D::Vector3 & point)
  4996. {
  4997. return _target->IsInsideLocal (point);
  4998. }
  4999. DllExport Urho3D::ResourceRef
  5000. StaticModel_GetModelAttr (Urho3D::StaticModel *_target)
  5001. {
  5002. return _target->GetModelAttr ();
  5003. }
  5004. DllExport int
  5005. AnimatedModel_GetType (Urho3D::AnimatedModel *_target)
  5006. {
  5007. return (_target->GetType ()).Value ();
  5008. }
  5009. DllExport const char *
  5010. AnimatedModel_GetTypeName (Urho3D::AnimatedModel *_target)
  5011. {
  5012. return stringdup((_target->GetTypeName ()).CString ());
  5013. }
  5014. DllExport int
  5015. AnimatedModel_GetTypeStatic ()
  5016. {
  5017. return (AnimatedModel::GetTypeStatic ()).Value ();
  5018. }
  5019. DllExport const char *
  5020. AnimatedModel_GetTypeNameStatic ()
  5021. {
  5022. return stringdup((AnimatedModel::GetTypeNameStatic ()).CString ());
  5023. }
  5024. DllExport void *
  5025. AnimatedModel_AnimatedModel (Urho3D::Context * context)
  5026. {
  5027. return WeakPtr<AnimatedModel>(new AnimatedModel(context));
  5028. }
  5029. DllExport void
  5030. AnimatedModel_RegisterObject (Urho3D::Context * context)
  5031. {
  5032. AnimatedModel::RegisterObject (context);
  5033. }
  5034. DllExport int
  5035. AnimatedModel_Load_File (Urho3D::AnimatedModel *_target, File * source, bool setInstanceDefault)
  5036. {
  5037. return _target->Load (*source, setInstanceDefault);
  5038. }
  5039. DllExport int
  5040. AnimatedModel_Load_MemoryBuffer (Urho3D::AnimatedModel *_target, MemoryBuffer * source, bool setInstanceDefault)
  5041. {
  5042. return _target->Load (*source, setInstanceDefault);
  5043. }
  5044. DllExport int
  5045. AnimatedModel_LoadXML (Urho3D::AnimatedModel *_target, const class Urho3D::XMLElement & source, bool setInstanceDefault)
  5046. {
  5047. return _target->LoadXML (source, setInstanceDefault);
  5048. }
  5049. DllExport void
  5050. AnimatedModel_ApplyAttributes (Urho3D::AnimatedModel *_target)
  5051. {
  5052. _target->ApplyAttributes ();
  5053. }
  5054. DllExport enum Urho3D::UpdateGeometryType
  5055. AnimatedModel_GetUpdateGeometryType (Urho3D::AnimatedModel *_target)
  5056. {
  5057. return _target->GetUpdateGeometryType ();
  5058. }
  5059. DllExport void
  5060. AnimatedModel_DrawDebugGeometry (Urho3D::AnimatedModel *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  5061. {
  5062. _target->DrawDebugGeometry (debug, depthTest);
  5063. }
  5064. DllExport void
  5065. AnimatedModel_SetModel (Urho3D::AnimatedModel *_target, Urho3D::Model * model, bool createBones)
  5066. {
  5067. _target->SetModel (model, createBones);
  5068. }
  5069. DllExport Urho3D::AnimationState *
  5070. AnimatedModel_AddAnimationState (Urho3D::AnimatedModel *_target, Urho3D::Animation * animation)
  5071. {
  5072. return _target->AddAnimationState (animation);
  5073. }
  5074. DllExport void
  5075. AnimatedModel_RemoveAnimationState (Urho3D::AnimatedModel *_target, Urho3D::Animation * animation)
  5076. {
  5077. _target->RemoveAnimationState (animation);
  5078. }
  5079. DllExport void
  5080. AnimatedModel_RemoveAnimationState0 (Urho3D::AnimatedModel *_target, const char * animationName)
  5081. {
  5082. _target->RemoveAnimationState (Urho3D::String(animationName));
  5083. }
  5084. DllExport void
  5085. AnimatedModel_RemoveAnimationState1 (Urho3D::AnimatedModel *_target, int animationNameHash)
  5086. {
  5087. _target->RemoveAnimationState (Urho3D::StringHash(animationNameHash));
  5088. }
  5089. DllExport void
  5090. AnimatedModel_RemoveAnimationState2 (Urho3D::AnimatedModel *_target, Urho3D::AnimationState * state)
  5091. {
  5092. _target->RemoveAnimationState (state);
  5093. }
  5094. DllExport void
  5095. AnimatedModel_RemoveAnimationState3 (Urho3D::AnimatedModel *_target, unsigned int index)
  5096. {
  5097. _target->RemoveAnimationState (index);
  5098. }
  5099. DllExport void
  5100. AnimatedModel_RemoveAllAnimationStates (Urho3D::AnimatedModel *_target)
  5101. {
  5102. _target->RemoveAllAnimationStates ();
  5103. }
  5104. DllExport void
  5105. AnimatedModel_SetAnimationLodBias (Urho3D::AnimatedModel *_target, float bias)
  5106. {
  5107. _target->SetAnimationLodBias (bias);
  5108. }
  5109. DllExport void
  5110. AnimatedModel_SetUpdateInvisible (Urho3D::AnimatedModel *_target, bool enable)
  5111. {
  5112. _target->SetUpdateInvisible (enable);
  5113. }
  5114. DllExport void
  5115. AnimatedModel_SetMorphWeight (Urho3D::AnimatedModel *_target, unsigned int index, float weight)
  5116. {
  5117. _target->SetMorphWeight (index, weight);
  5118. }
  5119. DllExport void
  5120. AnimatedModel_SetMorphWeight4 (Urho3D::AnimatedModel *_target, const char * name, float weight)
  5121. {
  5122. _target->SetMorphWeight (Urho3D::String(name), weight);
  5123. }
  5124. DllExport void
  5125. AnimatedModel_SetMorphWeight5 (Urho3D::AnimatedModel *_target, int nameHash, float weight)
  5126. {
  5127. _target->SetMorphWeight (Urho3D::StringHash(nameHash), weight);
  5128. }
  5129. DllExport void
  5130. AnimatedModel_ResetMorphWeights (Urho3D::AnimatedModel *_target)
  5131. {
  5132. _target->ResetMorphWeights ();
  5133. }
  5134. DllExport const Vector<SharedPtr<class Urho3D::AnimationState> > &
  5135. AnimatedModel_GetAnimationStates (Urho3D::AnimatedModel *_target)
  5136. {
  5137. return _target->GetAnimationStates ();
  5138. }
  5139. DllExport unsigned int
  5140. AnimatedModel_GetNumAnimationStates (Urho3D::AnimatedModel *_target)
  5141. {
  5142. return _target->GetNumAnimationStates ();
  5143. }
  5144. DllExport Urho3D::AnimationState *
  5145. AnimatedModel_GetAnimationState (Urho3D::AnimatedModel *_target, Urho3D::Animation * animation)
  5146. {
  5147. return _target->GetAnimationState (animation);
  5148. }
  5149. DllExport Urho3D::AnimationState *
  5150. AnimatedModel_GetAnimationState6 (Urho3D::AnimatedModel *_target, const char * animationName)
  5151. {
  5152. return _target->GetAnimationState (Urho3D::String(animationName));
  5153. }
  5154. DllExport Urho3D::AnimationState *
  5155. AnimatedModel_GetAnimationState7 (Urho3D::AnimatedModel *_target, int animationNameHash)
  5156. {
  5157. return _target->GetAnimationState (Urho3D::StringHash(animationNameHash));
  5158. }
  5159. DllExport Urho3D::AnimationState *
  5160. AnimatedModel_GetAnimationState8 (Urho3D::AnimatedModel *_target, unsigned int index)
  5161. {
  5162. return _target->GetAnimationState (index);
  5163. }
  5164. DllExport float
  5165. AnimatedModel_GetAnimationLodBias (Urho3D::AnimatedModel *_target)
  5166. {
  5167. return _target->GetAnimationLodBias ();
  5168. }
  5169. DllExport int
  5170. AnimatedModel_GetUpdateInvisible (Urho3D::AnimatedModel *_target)
  5171. {
  5172. return _target->GetUpdateInvisible ();
  5173. }
  5174. DllExport const Vector<SharedPtr<class Urho3D::VertexBuffer> > &
  5175. AnimatedModel_GetMorphVertexBuffers (Urho3D::AnimatedModel *_target)
  5176. {
  5177. return _target->GetMorphVertexBuffers ();
  5178. }
  5179. DllExport unsigned int
  5180. AnimatedModel_GetNumMorphs (Urho3D::AnimatedModel *_target)
  5181. {
  5182. return _target->GetNumMorphs ();
  5183. }
  5184. DllExport float
  5185. AnimatedModel_GetMorphWeight (Urho3D::AnimatedModel *_target, unsigned int index)
  5186. {
  5187. return _target->GetMorphWeight (index);
  5188. }
  5189. DllExport float
  5190. AnimatedModel_GetMorphWeight9 (Urho3D::AnimatedModel *_target, const char * name)
  5191. {
  5192. return _target->GetMorphWeight (Urho3D::String(name));
  5193. }
  5194. DllExport float
  5195. AnimatedModel_GetMorphWeight10 (Urho3D::AnimatedModel *_target, int nameHash)
  5196. {
  5197. return _target->GetMorphWeight (Urho3D::StringHash(nameHash));
  5198. }
  5199. DllExport int
  5200. AnimatedModel_IsMaster (Urho3D::AnimatedModel *_target)
  5201. {
  5202. return _target->IsMaster ();
  5203. }
  5204. DllExport Urho3D::ResourceRef
  5205. AnimatedModel_GetModelAttr (Urho3D::AnimatedModel *_target)
  5206. {
  5207. return _target->GetModelAttr ();
  5208. }
  5209. DllExport void
  5210. AnimatedModel_UpdateBoneBoundingBox (Urho3D::AnimatedModel *_target)
  5211. {
  5212. _target->UpdateBoneBoundingBox ();
  5213. }
  5214. DllExport int
  5215. Animation_GetType (Urho3D::Animation *_target)
  5216. {
  5217. return (_target->GetType ()).Value ();
  5218. }
  5219. DllExport const char *
  5220. Animation_GetTypeName (Urho3D::Animation *_target)
  5221. {
  5222. return stringdup((_target->GetTypeName ()).CString ());
  5223. }
  5224. DllExport int
  5225. Animation_GetTypeStatic ()
  5226. {
  5227. return (Animation::GetTypeStatic ()).Value ();
  5228. }
  5229. DllExport const char *
  5230. Animation_GetTypeNameStatic ()
  5231. {
  5232. return stringdup((Animation::GetTypeNameStatic ()).CString ());
  5233. }
  5234. DllExport void *
  5235. Animation_Animation (Urho3D::Context * context)
  5236. {
  5237. return WeakPtr<Animation>(new Animation(context));
  5238. }
  5239. DllExport void
  5240. Animation_RegisterObject (Urho3D::Context * context)
  5241. {
  5242. Animation::RegisterObject (context);
  5243. }
  5244. DllExport int
  5245. Animation_BeginLoad_File (Urho3D::Animation *_target, File * source)
  5246. {
  5247. return _target->BeginLoad (*source);
  5248. }
  5249. DllExport int
  5250. Animation_BeginLoad_MemoryBuffer (Urho3D::Animation *_target, MemoryBuffer * source)
  5251. {
  5252. return _target->BeginLoad (*source);
  5253. }
  5254. DllExport int
  5255. Animation_Save_File (Urho3D::Animation *_target, File * dest)
  5256. {
  5257. return _target->Save (*dest);
  5258. }
  5259. DllExport int
  5260. Animation_Save_MemoryBuffer (Urho3D::Animation *_target, MemoryBuffer * dest)
  5261. {
  5262. return _target->Save (*dest);
  5263. }
  5264. DllExport void
  5265. Animation_SetAnimationName (Urho3D::Animation *_target, const char * name)
  5266. {
  5267. _target->SetAnimationName (Urho3D::String(name));
  5268. }
  5269. DllExport void
  5270. Animation_SetLength (Urho3D::Animation *_target, float length)
  5271. {
  5272. _target->SetLength (length);
  5273. }
  5274. DllExport Urho3D::AnimationTrack *
  5275. Animation_CreateTrack (Urho3D::Animation *_target, const char * name)
  5276. {
  5277. return _target->CreateTrack (Urho3D::String(name));
  5278. }
  5279. DllExport int
  5280. Animation_RemoveTrack (Urho3D::Animation *_target, const char * name)
  5281. {
  5282. return _target->RemoveTrack (Urho3D::String(name));
  5283. }
  5284. DllExport void
  5285. Animation_RemoveAllTracks (Urho3D::Animation *_target)
  5286. {
  5287. _target->RemoveAllTracks ();
  5288. }
  5289. // Urho3D::Variant overloads begin:
  5290. DllExport void
  5291. Animation_AddTrigger0 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::Vector3 & data)
  5292. {
  5293. _target->AddTrigger (time, timeIsNormalized, (data));
  5294. }
  5295. DllExport void
  5296. Animation_AddTrigger1 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::IntRect & data)
  5297. {
  5298. _target->AddTrigger (time, timeIsNormalized, (data));
  5299. }
  5300. DllExport void
  5301. Animation_AddTrigger2 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::Color & data)
  5302. {
  5303. _target->AddTrigger (time, timeIsNormalized, (data));
  5304. }
  5305. DllExport void
  5306. Animation_AddTrigger3 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::Vector2 & data)
  5307. {
  5308. _target->AddTrigger (time, timeIsNormalized, (data));
  5309. }
  5310. DllExport void
  5311. Animation_AddTrigger4 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::Vector4 & data)
  5312. {
  5313. _target->AddTrigger (time, timeIsNormalized, (data));
  5314. }
  5315. DllExport void
  5316. Animation_AddTrigger5 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::IntVector2 & data)
  5317. {
  5318. _target->AddTrigger (time, timeIsNormalized, (data));
  5319. }
  5320. DllExport void
  5321. Animation_AddTrigger6 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::Quaternion & data)
  5322. {
  5323. _target->AddTrigger (time, timeIsNormalized, (data));
  5324. }
  5325. DllExport void
  5326. Animation_AddTrigger7 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::Matrix4 & data)
  5327. {
  5328. _target->AddTrigger (time, timeIsNormalized, (data));
  5329. }
  5330. DllExport void
  5331. Animation_AddTrigger8 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::Matrix3x4 & data)
  5332. {
  5333. _target->AddTrigger (time, timeIsNormalized, (data));
  5334. }
  5335. DllExport void
  5336. Animation_AddTrigger9 (Urho3D::Animation *_target, float time, bool timeIsNormalized, int data)
  5337. {
  5338. _target->AddTrigger (time, timeIsNormalized, (data));
  5339. }
  5340. DllExport void
  5341. Animation_AddTrigger10 (Urho3D::Animation *_target, float time, bool timeIsNormalized, float data)
  5342. {
  5343. _target->AddTrigger (time, timeIsNormalized, (data));
  5344. }
  5345. DllExport void
  5346. Animation_AddTrigger11 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const char * data)
  5347. {
  5348. _target->AddTrigger (time, timeIsNormalized, Urho3D::String(data));
  5349. }
  5350. // Urho3D::Variant overloads end.
  5351. DllExport void
  5352. Animation_RemoveTrigger (Urho3D::Animation *_target, unsigned int index)
  5353. {
  5354. _target->RemoveTrigger (index);
  5355. }
  5356. DllExport void
  5357. Animation_RemoveAllTriggers (Urho3D::Animation *_target)
  5358. {
  5359. _target->RemoveAllTriggers ();
  5360. }
  5361. DllExport void
  5362. Animation_SetNumTriggers (Urho3D::Animation *_target, unsigned int num)
  5363. {
  5364. _target->SetNumTriggers (num);
  5365. }
  5366. DllExport Urho3D::Animation *
  5367. Animation_Clone (Urho3D::Animation *_target, const char * cloneName)
  5368. {
  5369. auto copy = _target->Clone (Urho3D::String(cloneName));
  5370. auto plain = copy.Get();
  5371. copy.Detach();
  5372. delete copy;
  5373. return plain;
  5374. }
  5375. DllExport const char *
  5376. Animation_GetAnimationName (Urho3D::Animation *_target)
  5377. {
  5378. return stringdup((_target->GetAnimationName ()).CString ());
  5379. }
  5380. DllExport int
  5381. Animation_GetAnimationNameHash (Urho3D::Animation *_target)
  5382. {
  5383. return (_target->GetAnimationNameHash ()).Value ();
  5384. }
  5385. DllExport float
  5386. Animation_GetLength (Urho3D::Animation *_target)
  5387. {
  5388. return _target->GetLength ();
  5389. }
  5390. DllExport unsigned int
  5391. Animation_GetNumTracks (Urho3D::Animation *_target)
  5392. {
  5393. return _target->GetNumTracks ();
  5394. }
  5395. DllExport Urho3D::AnimationTrack *
  5396. Animation_GetTrack (Urho3D::Animation *_target, const char * name)
  5397. {
  5398. return _target->GetTrack (Urho3D::String(name));
  5399. }
  5400. DllExport Urho3D::AnimationTrack *
  5401. Animation_GetTrack0 (Urho3D::Animation *_target, int nameHash)
  5402. {
  5403. return _target->GetTrack (Urho3D::StringHash(nameHash));
  5404. }
  5405. DllExport unsigned int
  5406. Animation_GetNumTriggers (Urho3D::Animation *_target)
  5407. {
  5408. return _target->GetNumTriggers ();
  5409. }
  5410. DllExport Urho3D::AnimationTriggerPoint *
  5411. Animation_GetTrigger (Urho3D::Animation *_target, unsigned int index)
  5412. {
  5413. return _target->GetTrigger (index);
  5414. }
  5415. DllExport void *
  5416. AnimationState_AnimationState (Urho3D::AnimatedModel * model, Urho3D::Animation * animation)
  5417. {
  5418. return WeakPtr<AnimationState>(new AnimationState(model, animation));
  5419. }
  5420. DllExport void *
  5421. AnimationState_AnimationState0 (Urho3D::Node * node, Urho3D::Animation * animation)
  5422. {
  5423. return WeakPtr<AnimationState>(new AnimationState(node, animation));
  5424. }
  5425. DllExport void
  5426. AnimationState_SetStartBone (Urho3D::AnimationState *_target, Urho3D::Bone * bone)
  5427. {
  5428. _target->SetStartBone (bone);
  5429. }
  5430. DllExport void
  5431. AnimationState_SetLooped (Urho3D::AnimationState *_target, bool looped)
  5432. {
  5433. _target->SetLooped (looped);
  5434. }
  5435. DllExport void
  5436. AnimationState_SetWeight (Urho3D::AnimationState *_target, float weight)
  5437. {
  5438. _target->SetWeight (weight);
  5439. }
  5440. DllExport void
  5441. AnimationState_SetBlendMode (Urho3D::AnimationState *_target, enum Urho3D::AnimationBlendMode mode)
  5442. {
  5443. _target->SetBlendMode (mode);
  5444. }
  5445. DllExport void
  5446. AnimationState_SetTime (Urho3D::AnimationState *_target, float time)
  5447. {
  5448. _target->SetTime (time);
  5449. }
  5450. DllExport void
  5451. AnimationState_SetBoneWeight (Urho3D::AnimationState *_target, unsigned int index, float weight, bool recursive)
  5452. {
  5453. _target->SetBoneWeight (index, weight, recursive);
  5454. }
  5455. DllExport void
  5456. AnimationState_SetBoneWeight1 (Urho3D::AnimationState *_target, const char * name, float weight, bool recursive)
  5457. {
  5458. _target->SetBoneWeight (Urho3D::String(name), weight, recursive);
  5459. }
  5460. DllExport void
  5461. AnimationState_SetBoneWeight2 (Urho3D::AnimationState *_target, int nameHash, float weight, bool recursive)
  5462. {
  5463. _target->SetBoneWeight (Urho3D::StringHash(nameHash), weight, recursive);
  5464. }
  5465. DllExport void
  5466. AnimationState_AddWeight (Urho3D::AnimationState *_target, float delta)
  5467. {
  5468. _target->AddWeight (delta);
  5469. }
  5470. DllExport void
  5471. AnimationState_AddTime (Urho3D::AnimationState *_target, float delta)
  5472. {
  5473. _target->AddTime (delta);
  5474. }
  5475. DllExport void
  5476. AnimationState_SetLayer (Urho3D::AnimationState *_target, unsigned char layer)
  5477. {
  5478. _target->SetLayer (layer);
  5479. }
  5480. DllExport Urho3D::Animation *
  5481. AnimationState_GetAnimation (Urho3D::AnimationState *_target)
  5482. {
  5483. return _target->GetAnimation ();
  5484. }
  5485. DllExport Urho3D::AnimatedModel *
  5486. AnimationState_GetModel (Urho3D::AnimationState *_target)
  5487. {
  5488. return _target->GetModel ();
  5489. }
  5490. DllExport Urho3D::Node *
  5491. AnimationState_GetNode (Urho3D::AnimationState *_target)
  5492. {
  5493. return _target->GetNode ();
  5494. }
  5495. DllExport Urho3D::Bone *
  5496. AnimationState_GetStartBone (Urho3D::AnimationState *_target)
  5497. {
  5498. return _target->GetStartBone ();
  5499. }
  5500. DllExport float
  5501. AnimationState_GetBoneWeight (Urho3D::AnimationState *_target, unsigned int index)
  5502. {
  5503. return _target->GetBoneWeight (index);
  5504. }
  5505. DllExport float
  5506. AnimationState_GetBoneWeight3 (Urho3D::AnimationState *_target, const char * name)
  5507. {
  5508. return _target->GetBoneWeight (Urho3D::String(name));
  5509. }
  5510. DllExport float
  5511. AnimationState_GetBoneWeight4 (Urho3D::AnimationState *_target, int nameHash)
  5512. {
  5513. return _target->GetBoneWeight (Urho3D::StringHash(nameHash));
  5514. }
  5515. DllExport unsigned int
  5516. AnimationState_GetTrackIndex (Urho3D::AnimationState *_target, Urho3D::Node * node)
  5517. {
  5518. return _target->GetTrackIndex (node);
  5519. }
  5520. DllExport unsigned int
  5521. AnimationState_GetTrackIndex5 (Urho3D::AnimationState *_target, const char * name)
  5522. {
  5523. return _target->GetTrackIndex (Urho3D::String(name));
  5524. }
  5525. DllExport unsigned int
  5526. AnimationState_GetTrackIndex6 (Urho3D::AnimationState *_target, int nameHash)
  5527. {
  5528. return _target->GetTrackIndex (Urho3D::StringHash(nameHash));
  5529. }
  5530. DllExport int
  5531. AnimationState_IsEnabled (Urho3D::AnimationState *_target)
  5532. {
  5533. return _target->IsEnabled ();
  5534. }
  5535. DllExport int
  5536. AnimationState_IsLooped (Urho3D::AnimationState *_target)
  5537. {
  5538. return _target->IsLooped ();
  5539. }
  5540. DllExport float
  5541. AnimationState_GetWeight (Urho3D::AnimationState *_target)
  5542. {
  5543. return _target->GetWeight ();
  5544. }
  5545. DllExport enum Urho3D::AnimationBlendMode
  5546. AnimationState_GetBlendMode (Urho3D::AnimationState *_target)
  5547. {
  5548. return _target->GetBlendMode ();
  5549. }
  5550. DllExport float
  5551. AnimationState_GetTime (Urho3D::AnimationState *_target)
  5552. {
  5553. return _target->GetTime ();
  5554. }
  5555. DllExport float
  5556. AnimationState_GetLength (Urho3D::AnimationState *_target)
  5557. {
  5558. return _target->GetLength ();
  5559. }
  5560. DllExport unsigned char
  5561. AnimationState_GetLayer (Urho3D::AnimationState *_target)
  5562. {
  5563. return _target->GetLayer ();
  5564. }
  5565. DllExport void
  5566. AnimationState_Apply (Urho3D::AnimationState *_target)
  5567. {
  5568. _target->Apply ();
  5569. }
  5570. DllExport int
  5571. AnimationController_GetType (Urho3D::AnimationController *_target)
  5572. {
  5573. return (_target->GetType ()).Value ();
  5574. }
  5575. DllExport const char *
  5576. AnimationController_GetTypeName (Urho3D::AnimationController *_target)
  5577. {
  5578. return stringdup((_target->GetTypeName ()).CString ());
  5579. }
  5580. DllExport int
  5581. AnimationController_GetTypeStatic ()
  5582. {
  5583. return (AnimationController::GetTypeStatic ()).Value ();
  5584. }
  5585. DllExport const char *
  5586. AnimationController_GetTypeNameStatic ()
  5587. {
  5588. return stringdup((AnimationController::GetTypeNameStatic ()).CString ());
  5589. }
  5590. DllExport void *
  5591. AnimationController_AnimationController (Urho3D::Context * context)
  5592. {
  5593. return WeakPtr<AnimationController>(new AnimationController(context));
  5594. }
  5595. DllExport void
  5596. AnimationController_RegisterObject (Urho3D::Context * context)
  5597. {
  5598. AnimationController::RegisterObject (context);
  5599. }
  5600. DllExport void
  5601. AnimationController_OnSetEnabled (Urho3D::AnimationController *_target)
  5602. {
  5603. _target->OnSetEnabled ();
  5604. }
  5605. DllExport void
  5606. AnimationController_Update (Urho3D::AnimationController *_target, float timeStep)
  5607. {
  5608. _target->Update (timeStep);
  5609. }
  5610. DllExport int
  5611. AnimationController_Play (Urho3D::AnimationController *_target, const char * name, unsigned char layer, bool looped, float fadeInTime)
  5612. {
  5613. return _target->Play (Urho3D::String(name), layer, looped, fadeInTime);
  5614. }
  5615. DllExport int
  5616. AnimationController_PlayExclusive (Urho3D::AnimationController *_target, const char * name, unsigned char layer, bool looped, float fadeTime)
  5617. {
  5618. return _target->PlayExclusive (Urho3D::String(name), layer, looped, fadeTime);
  5619. }
  5620. DllExport int
  5621. AnimationController_Stop (Urho3D::AnimationController *_target, const char * name, float fadeOutTime)
  5622. {
  5623. return _target->Stop (Urho3D::String(name), fadeOutTime);
  5624. }
  5625. DllExport void
  5626. AnimationController_StopLayer (Urho3D::AnimationController *_target, unsigned char layer, float fadeOutTime)
  5627. {
  5628. _target->StopLayer (layer, fadeOutTime);
  5629. }
  5630. DllExport void
  5631. AnimationController_StopAll (Urho3D::AnimationController *_target, float fadeTime)
  5632. {
  5633. _target->StopAll (fadeTime);
  5634. }
  5635. DllExport int
  5636. AnimationController_Fade (Urho3D::AnimationController *_target, const char * name, float targetWeight, float fadeTime)
  5637. {
  5638. return _target->Fade (Urho3D::String(name), targetWeight, fadeTime);
  5639. }
  5640. DllExport int
  5641. AnimationController_FadeOthers (Urho3D::AnimationController *_target, const char * name, float targetWeight, float fadeTime)
  5642. {
  5643. return _target->FadeOthers (Urho3D::String(name), targetWeight, fadeTime);
  5644. }
  5645. DllExport int
  5646. AnimationController_SetLayer (Urho3D::AnimationController *_target, const char * name, unsigned char layer)
  5647. {
  5648. return _target->SetLayer (Urho3D::String(name), layer);
  5649. }
  5650. DllExport int
  5651. AnimationController_SetStartBone (Urho3D::AnimationController *_target, const char * name, const char * startBoneName)
  5652. {
  5653. return _target->SetStartBone (Urho3D::String(name), Urho3D::String(startBoneName));
  5654. }
  5655. DllExport int
  5656. AnimationController_SetTime (Urho3D::AnimationController *_target, const char * name, float time)
  5657. {
  5658. return _target->SetTime (Urho3D::String(name), time);
  5659. }
  5660. DllExport int
  5661. AnimationController_SetWeight (Urho3D::AnimationController *_target, const char * name, float weight)
  5662. {
  5663. return _target->SetWeight (Urho3D::String(name), weight);
  5664. }
  5665. DllExport int
  5666. AnimationController_SetLooped (Urho3D::AnimationController *_target, const char * name, bool enable)
  5667. {
  5668. return _target->SetLooped (Urho3D::String(name), enable);
  5669. }
  5670. DllExport int
  5671. AnimationController_SetSpeed (Urho3D::AnimationController *_target, const char * name, float speed)
  5672. {
  5673. return _target->SetSpeed (Urho3D::String(name), speed);
  5674. }
  5675. DllExport int
  5676. AnimationController_SetAutoFade (Urho3D::AnimationController *_target, const char * name, float fadeOutTime)
  5677. {
  5678. return _target->SetAutoFade (Urho3D::String(name), fadeOutTime);
  5679. }
  5680. DllExport int
  5681. AnimationController_SetRemoveOnCompletion (Urho3D::AnimationController *_target, const char * name, bool removeOnCompletion)
  5682. {
  5683. return _target->SetRemoveOnCompletion (Urho3D::String(name), removeOnCompletion);
  5684. }
  5685. DllExport int
  5686. AnimationController_SetBlendMode (Urho3D::AnimationController *_target, const char * name, enum Urho3D::AnimationBlendMode mode)
  5687. {
  5688. return _target->SetBlendMode (Urho3D::String(name), mode);
  5689. }
  5690. DllExport int
  5691. AnimationController_IsPlaying (Urho3D::AnimationController *_target, const char * name)
  5692. {
  5693. return _target->IsPlaying (Urho3D::String(name));
  5694. }
  5695. DllExport int
  5696. AnimationController_IsPlaying0 (Urho3D::AnimationController *_target, unsigned char layer)
  5697. {
  5698. return _target->IsPlaying (layer);
  5699. }
  5700. DllExport int
  5701. AnimationController_IsFadingIn (Urho3D::AnimationController *_target, const char * name)
  5702. {
  5703. return _target->IsFadingIn (Urho3D::String(name));
  5704. }
  5705. DllExport int
  5706. AnimationController_IsFadingOut (Urho3D::AnimationController *_target, const char * name)
  5707. {
  5708. return _target->IsFadingOut (Urho3D::String(name));
  5709. }
  5710. DllExport int
  5711. AnimationController_IsAtEnd (Urho3D::AnimationController *_target, const char * name)
  5712. {
  5713. return _target->IsAtEnd (Urho3D::String(name));
  5714. }
  5715. DllExport unsigned char
  5716. AnimationController_GetLayer (Urho3D::AnimationController *_target, const char * name)
  5717. {
  5718. return _target->GetLayer (Urho3D::String(name));
  5719. }
  5720. DllExport Urho3D::Bone *
  5721. AnimationController_GetStartBone (Urho3D::AnimationController *_target, const char * name)
  5722. {
  5723. return _target->GetStartBone (Urho3D::String(name));
  5724. }
  5725. DllExport const char *
  5726. AnimationController_GetStartBoneName (Urho3D::AnimationController *_target, const char * name)
  5727. {
  5728. return stringdup((_target->GetStartBoneName (Urho3D::String(name))).CString ());
  5729. }
  5730. DllExport float
  5731. AnimationController_GetTime (Urho3D::AnimationController *_target, const char * name)
  5732. {
  5733. return _target->GetTime (Urho3D::String(name));
  5734. }
  5735. DllExport float
  5736. AnimationController_GetWeight (Urho3D::AnimationController *_target, const char * name)
  5737. {
  5738. return _target->GetWeight (Urho3D::String(name));
  5739. }
  5740. DllExport int
  5741. AnimationController_IsLooped (Urho3D::AnimationController *_target, const char * name)
  5742. {
  5743. return _target->IsLooped (Urho3D::String(name));
  5744. }
  5745. DllExport enum Urho3D::AnimationBlendMode
  5746. AnimationController_GetBlendMode (Urho3D::AnimationController *_target, const char * name)
  5747. {
  5748. return _target->GetBlendMode (Urho3D::String(name));
  5749. }
  5750. DllExport float
  5751. AnimationController_GetLength (Urho3D::AnimationController *_target, const char * name)
  5752. {
  5753. return _target->GetLength (Urho3D::String(name));
  5754. }
  5755. DllExport float
  5756. AnimationController_GetSpeed (Urho3D::AnimationController *_target, const char * name)
  5757. {
  5758. return _target->GetSpeed (Urho3D::String(name));
  5759. }
  5760. DllExport float
  5761. AnimationController_GetFadeTarget (Urho3D::AnimationController *_target, const char * name)
  5762. {
  5763. return _target->GetFadeTarget (Urho3D::String(name));
  5764. }
  5765. DllExport float
  5766. AnimationController_GetFadeTime (Urho3D::AnimationController *_target, const char * name)
  5767. {
  5768. return _target->GetFadeTime (Urho3D::String(name));
  5769. }
  5770. DllExport float
  5771. AnimationController_GetAutoFade (Urho3D::AnimationController *_target, const char * name)
  5772. {
  5773. return _target->GetAutoFade (Urho3D::String(name));
  5774. }
  5775. DllExport int
  5776. AnimationController_GetRemoveOnCompletion (Urho3D::AnimationController *_target, const char * name)
  5777. {
  5778. return _target->GetRemoveOnCompletion (Urho3D::String(name));
  5779. }
  5780. DllExport Urho3D::AnimationState *
  5781. AnimationController_GetAnimationState (Urho3D::AnimationController *_target, const char * name)
  5782. {
  5783. return _target->GetAnimationState (Urho3D::String(name));
  5784. }
  5785. DllExport Urho3D::AnimationState *
  5786. AnimationController_GetAnimationState1 (Urho3D::AnimationController *_target, int nameHash)
  5787. {
  5788. return _target->GetAnimationState (Urho3D::StringHash(nameHash));
  5789. }
  5790. DllExport void *
  5791. Texture_Texture (Urho3D::Context * context)
  5792. {
  5793. return WeakPtr<Texture>(new Texture(context));
  5794. }
  5795. DllExport void
  5796. Texture_SetNumLevels (Urho3D::Texture *_target, unsigned int levels)
  5797. {
  5798. _target->SetNumLevels (levels);
  5799. }
  5800. DllExport void
  5801. Texture_SetFilterMode (Urho3D::Texture *_target, enum Urho3D::TextureFilterMode filter)
  5802. {
  5803. _target->SetFilterMode (filter);
  5804. }
  5805. DllExport void
  5806. Texture_SetAddressMode (Urho3D::Texture *_target, enum Urho3D::TextureCoordinate coord, enum Urho3D::TextureAddressMode address)
  5807. {
  5808. _target->SetAddressMode (coord, address);
  5809. }
  5810. DllExport void
  5811. Texture_SetAnisotropy (Urho3D::Texture *_target, unsigned int level)
  5812. {
  5813. _target->SetAnisotropy (level);
  5814. }
  5815. DllExport void
  5816. Texture_SetShadowCompare (Urho3D::Texture *_target, bool enable)
  5817. {
  5818. _target->SetShadowCompare (enable);
  5819. }
  5820. DllExport void
  5821. Texture_SetBorderColor (Urho3D::Texture *_target, const class Urho3D::Color & color)
  5822. {
  5823. _target->SetBorderColor (color);
  5824. }
  5825. DllExport void
  5826. Texture_SetSRGB (Urho3D::Texture *_target, bool enable)
  5827. {
  5828. _target->SetSRGB (enable);
  5829. }
  5830. DllExport void
  5831. Texture_SetBackupTexture (Urho3D::Texture *_target, Urho3D::Texture * texture)
  5832. {
  5833. _target->SetBackupTexture (texture);
  5834. }
  5835. DllExport void
  5836. Texture_SetMipsToSkip (Urho3D::Texture *_target, int quality, int toSkip)
  5837. {
  5838. _target->SetMipsToSkip (quality, toSkip);
  5839. }
  5840. DllExport unsigned int
  5841. Texture_GetFormat (Urho3D::Texture *_target)
  5842. {
  5843. return _target->GetFormat ();
  5844. }
  5845. DllExport int
  5846. Texture_IsCompressed (Urho3D::Texture *_target)
  5847. {
  5848. return _target->IsCompressed ();
  5849. }
  5850. DllExport unsigned int
  5851. Texture_GetLevels (Urho3D::Texture *_target)
  5852. {
  5853. return _target->GetLevels ();
  5854. }
  5855. DllExport int
  5856. Texture_GetWidth (Urho3D::Texture *_target)
  5857. {
  5858. return _target->GetWidth ();
  5859. }
  5860. DllExport int
  5861. Texture_GetHeight (Urho3D::Texture *_target)
  5862. {
  5863. return _target->GetHeight ();
  5864. }
  5865. DllExport int
  5866. Texture_GetDepth (Urho3D::Texture *_target)
  5867. {
  5868. return _target->GetDepth ();
  5869. }
  5870. DllExport enum Urho3D::TextureFilterMode
  5871. Texture_GetFilterMode (Urho3D::Texture *_target)
  5872. {
  5873. return _target->GetFilterMode ();
  5874. }
  5875. DllExport enum Urho3D::TextureAddressMode
  5876. Texture_GetAddressMode (Urho3D::Texture *_target, enum Urho3D::TextureCoordinate coord)
  5877. {
  5878. return _target->GetAddressMode (coord);
  5879. }
  5880. DllExport unsigned int
  5881. Texture_GetAnisotropy (Urho3D::Texture *_target)
  5882. {
  5883. return _target->GetAnisotropy ();
  5884. }
  5885. DllExport int
  5886. Texture_GetShadowCompare (Urho3D::Texture *_target)
  5887. {
  5888. return _target->GetShadowCompare ();
  5889. }
  5890. DllExport Interop::Color
  5891. Texture_GetBorderColor (Urho3D::Texture *_target)
  5892. {
  5893. return *((Interop::Color *) &(_target->GetBorderColor ()));
  5894. }
  5895. DllExport int
  5896. Texture_GetSRGB (Urho3D::Texture *_target)
  5897. {
  5898. return _target->GetSRGB ();
  5899. }
  5900. DllExport int
  5901. Texture_GetMultiSample (Urho3D::Texture *_target)
  5902. {
  5903. return _target->GetMultiSample ();
  5904. }
  5905. DllExport int
  5906. Texture_GetAutoResolve (Urho3D::Texture *_target)
  5907. {
  5908. return _target->GetAutoResolve ();
  5909. }
  5910. DllExport int
  5911. Texture_IsResolveDirty (Urho3D::Texture *_target)
  5912. {
  5913. return _target->IsResolveDirty ();
  5914. }
  5915. DllExport Urho3D::Texture *
  5916. Texture_GetBackupTexture (Urho3D::Texture *_target)
  5917. {
  5918. return _target->GetBackupTexture ();
  5919. }
  5920. DllExport int
  5921. Texture_GetMipsToSkip (Urho3D::Texture *_target, int quality)
  5922. {
  5923. return _target->GetMipsToSkip (quality);
  5924. }
  5925. DllExport int
  5926. Texture_GetLevelWidth (Urho3D::Texture *_target, unsigned int level)
  5927. {
  5928. return _target->GetLevelWidth (level);
  5929. }
  5930. DllExport int
  5931. Texture_GetLevelHeight (Urho3D::Texture *_target, unsigned int level)
  5932. {
  5933. return _target->GetLevelHeight (level);
  5934. }
  5935. DllExport int
  5936. Texture_GetLevelDepth (Urho3D::Texture *_target, unsigned int level)
  5937. {
  5938. return _target->GetLevelDepth (level);
  5939. }
  5940. DllExport enum Urho3D::TextureUsage
  5941. Texture_GetUsage (Urho3D::Texture *_target)
  5942. {
  5943. return _target->GetUsage ();
  5944. }
  5945. DllExport unsigned int
  5946. Texture_GetDataSize (Urho3D::Texture *_target, int width, int height)
  5947. {
  5948. return _target->GetDataSize (width, height);
  5949. }
  5950. DllExport unsigned int
  5951. Texture_GetDataSize0 (Urho3D::Texture *_target, int width, int height, int depth)
  5952. {
  5953. return _target->GetDataSize (width, height, depth);
  5954. }
  5955. DllExport unsigned int
  5956. Texture_GetRowDataSize (Urho3D::Texture *_target, int width)
  5957. {
  5958. return _target->GetRowDataSize (width);
  5959. }
  5960. DllExport unsigned int
  5961. Texture_GetComponents (Urho3D::Texture *_target)
  5962. {
  5963. return _target->GetComponents ();
  5964. }
  5965. DllExport int
  5966. Texture_GetParametersDirty (Urho3D::Texture *_target)
  5967. {
  5968. return _target->GetParametersDirty ();
  5969. }
  5970. DllExport void
  5971. Texture_SetParameters (Urho3D::Texture *_target, Urho3D::XMLFile * xml)
  5972. {
  5973. _target->SetParameters (xml);
  5974. }
  5975. DllExport void
  5976. Texture_SetParameters1 (Urho3D::Texture *_target, const class Urho3D::XMLElement & element)
  5977. {
  5978. _target->SetParameters (element);
  5979. }
  5980. DllExport void
  5981. Texture_SetParametersDirty (Urho3D::Texture *_target)
  5982. {
  5983. _target->SetParametersDirty ();
  5984. }
  5985. DllExport void
  5986. Texture_UpdateParameters (Urho3D::Texture *_target)
  5987. {
  5988. _target->UpdateParameters ();
  5989. }
  5990. DllExport void *
  5991. Texture_GetShaderResourceView (Urho3D::Texture *_target)
  5992. {
  5993. return _target->GetShaderResourceView ();
  5994. }
  5995. DllExport void *
  5996. Texture_GetSampler (Urho3D::Texture *_target)
  5997. {
  5998. return _target->GetSampler ();
  5999. }
  6000. DllExport void *
  6001. Texture_GetResolveTexture (Urho3D::Texture *_target)
  6002. {
  6003. return _target->GetResolveTexture ();
  6004. }
  6005. DllExport unsigned int
  6006. Texture_GetSRGBFormat (Urho3D::Texture *_target, unsigned int format)
  6007. {
  6008. return _target->GetSRGBFormat (format);
  6009. }
  6010. DllExport void
  6011. Texture_SetResolveDirty (Urho3D::Texture *_target, bool enable)
  6012. {
  6013. _target->SetResolveDirty (enable);
  6014. }
  6015. DllExport unsigned int
  6016. Texture_CheckMaxLevels (int width, int height, unsigned int requestedLevels)
  6017. {
  6018. return Texture::CheckMaxLevels (width, height, requestedLevels);
  6019. }
  6020. DllExport unsigned int
  6021. Texture_CheckMaxLevels2 (int width, int height, int depth, unsigned int requestedLevels)
  6022. {
  6023. return Texture::CheckMaxLevels (width, height, depth, requestedLevels);
  6024. }
  6025. DllExport int
  6026. Light_GetType (Urho3D::Light *_target)
  6027. {
  6028. return (_target->GetType ()).Value ();
  6029. }
  6030. DllExport const char *
  6031. Light_GetTypeName (Urho3D::Light *_target)
  6032. {
  6033. return stringdup((_target->GetTypeName ()).CString ());
  6034. }
  6035. DllExport int
  6036. Light_GetTypeStatic ()
  6037. {
  6038. return (Light::GetTypeStatic ()).Value ();
  6039. }
  6040. DllExport const char *
  6041. Light_GetTypeNameStatic ()
  6042. {
  6043. return stringdup((Light::GetTypeNameStatic ()).CString ());
  6044. }
  6045. DllExport void *
  6046. Light_Light (Urho3D::Context * context)
  6047. {
  6048. return WeakPtr<Light>(new Light(context));
  6049. }
  6050. DllExport void
  6051. Light_RegisterObject (Urho3D::Context * context)
  6052. {
  6053. Light::RegisterObject (context);
  6054. }
  6055. DllExport void
  6056. Light_DrawDebugGeometry (Urho3D::Light *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  6057. {
  6058. _target->DrawDebugGeometry (debug, depthTest);
  6059. }
  6060. DllExport void
  6061. Light_SetLightType (Urho3D::Light *_target, enum Urho3D::LightType type)
  6062. {
  6063. _target->SetLightType (type);
  6064. }
  6065. DllExport void
  6066. Light_SetPerVertex (Urho3D::Light *_target, bool enable)
  6067. {
  6068. _target->SetPerVertex (enable);
  6069. }
  6070. DllExport void
  6071. Light_SetColor (Urho3D::Light *_target, const class Urho3D::Color & color)
  6072. {
  6073. _target->SetColor (color);
  6074. }
  6075. DllExport void
  6076. Light_SetTemperature (Urho3D::Light *_target, float temperature)
  6077. {
  6078. _target->SetTemperature (temperature);
  6079. }
  6080. DllExport void
  6081. Light_SetUsePhysicalValues (Urho3D::Light *_target, bool enable)
  6082. {
  6083. _target->SetUsePhysicalValues (enable);
  6084. }
  6085. DllExport void
  6086. Light_SetSpecularIntensity (Urho3D::Light *_target, float intensity)
  6087. {
  6088. _target->SetSpecularIntensity (intensity);
  6089. }
  6090. DllExport void
  6091. Light_SetBrightness (Urho3D::Light *_target, float brightness)
  6092. {
  6093. _target->SetBrightness (brightness);
  6094. }
  6095. DllExport void
  6096. Light_SetRange (Urho3D::Light *_target, float range)
  6097. {
  6098. _target->SetRange (range);
  6099. }
  6100. DllExport void
  6101. Light_SetFov (Urho3D::Light *_target, float fov)
  6102. {
  6103. _target->SetFov (fov);
  6104. }
  6105. DllExport void
  6106. Light_SetAspectRatio (Urho3D::Light *_target, float aspectRatio)
  6107. {
  6108. _target->SetAspectRatio (aspectRatio);
  6109. }
  6110. DllExport void
  6111. Light_SetFadeDistance (Urho3D::Light *_target, float distance)
  6112. {
  6113. _target->SetFadeDistance (distance);
  6114. }
  6115. DllExport void
  6116. Light_SetShadowFadeDistance (Urho3D::Light *_target, float distance)
  6117. {
  6118. _target->SetShadowFadeDistance (distance);
  6119. }
  6120. DllExport void
  6121. Light_SetShadowBias (Urho3D::Light *_target, const struct Urho3D::BiasParameters & parameters)
  6122. {
  6123. _target->SetShadowBias (parameters);
  6124. }
  6125. DllExport void
  6126. Light_SetShadowCascade (Urho3D::Light *_target, const struct Urho3D::CascadeParameters & parameters)
  6127. {
  6128. _target->SetShadowCascade (parameters);
  6129. }
  6130. DllExport void
  6131. Light_SetShadowFocus (Urho3D::Light *_target, const struct Urho3D::FocusParameters & parameters)
  6132. {
  6133. _target->SetShadowFocus (parameters);
  6134. }
  6135. DllExport void
  6136. Light_SetShadowIntensity (Urho3D::Light *_target, float intensity)
  6137. {
  6138. _target->SetShadowIntensity (intensity);
  6139. }
  6140. DllExport void
  6141. Light_SetShadowResolution (Urho3D::Light *_target, float resolution)
  6142. {
  6143. _target->SetShadowResolution (resolution);
  6144. }
  6145. DllExport void
  6146. Light_SetShadowNearFarRatio (Urho3D::Light *_target, float nearFarRatio)
  6147. {
  6148. _target->SetShadowNearFarRatio (nearFarRatio);
  6149. }
  6150. DllExport void
  6151. Light_SetShadowMaxExtrusion (Urho3D::Light *_target, float extrusion)
  6152. {
  6153. _target->SetShadowMaxExtrusion (extrusion);
  6154. }
  6155. DllExport void
  6156. Light_SetRampTexture (Urho3D::Light *_target, Urho3D::Texture * texture)
  6157. {
  6158. _target->SetRampTexture (texture);
  6159. }
  6160. DllExport void
  6161. Light_SetShapeTexture (Urho3D::Light *_target, Urho3D::Texture * texture)
  6162. {
  6163. _target->SetShapeTexture (texture);
  6164. }
  6165. DllExport enum Urho3D::LightType
  6166. Light_GetLightType (Urho3D::Light *_target)
  6167. {
  6168. return _target->GetLightType ();
  6169. }
  6170. DllExport int
  6171. Light_GetPerVertex (Urho3D::Light *_target)
  6172. {
  6173. return _target->GetPerVertex ();
  6174. }
  6175. DllExport Interop::Color
  6176. Light_GetColor (Urho3D::Light *_target)
  6177. {
  6178. return *((Interop::Color *) &(_target->GetColor ()));
  6179. }
  6180. DllExport float
  6181. Light_GetTemperature (Urho3D::Light *_target)
  6182. {
  6183. return _target->GetTemperature ();
  6184. }
  6185. DllExport int
  6186. Light_GetUsePhysicalValues (Urho3D::Light *_target)
  6187. {
  6188. return _target->GetUsePhysicalValues ();
  6189. }
  6190. DllExport Interop::Color
  6191. Light_GetColorFromTemperature (Urho3D::Light *_target)
  6192. {
  6193. return *((Interop::Color *) &(_target->GetColorFromTemperature ()));
  6194. }
  6195. DllExport float
  6196. Light_GetSpecularIntensity (Urho3D::Light *_target)
  6197. {
  6198. return _target->GetSpecularIntensity ();
  6199. }
  6200. DllExport float
  6201. Light_GetBrightness (Urho3D::Light *_target)
  6202. {
  6203. return _target->GetBrightness ();
  6204. }
  6205. DllExport Interop::Color
  6206. Light_GetEffectiveColor (Urho3D::Light *_target)
  6207. {
  6208. return *((Interop::Color *) &(_target->GetEffectiveColor ()));
  6209. }
  6210. DllExport float
  6211. Light_GetEffectiveSpecularIntensity (Urho3D::Light *_target)
  6212. {
  6213. return _target->GetEffectiveSpecularIntensity ();
  6214. }
  6215. DllExport float
  6216. Light_GetRange (Urho3D::Light *_target)
  6217. {
  6218. return _target->GetRange ();
  6219. }
  6220. DllExport float
  6221. Light_GetFov (Urho3D::Light *_target)
  6222. {
  6223. return _target->GetFov ();
  6224. }
  6225. DllExport float
  6226. Light_GetAspectRatio (Urho3D::Light *_target)
  6227. {
  6228. return _target->GetAspectRatio ();
  6229. }
  6230. DllExport float
  6231. Light_GetFadeDistance (Urho3D::Light *_target)
  6232. {
  6233. return _target->GetFadeDistance ();
  6234. }
  6235. DllExport float
  6236. Light_GetShadowFadeDistance (Urho3D::Light *_target)
  6237. {
  6238. return _target->GetShadowFadeDistance ();
  6239. }
  6240. DllExport const struct Urho3D::BiasParameters &
  6241. Light_GetShadowBias (Urho3D::Light *_target)
  6242. {
  6243. return _target->GetShadowBias ();
  6244. }
  6245. DllExport const struct Urho3D::CascadeParameters &
  6246. Light_GetShadowCascade (Urho3D::Light *_target)
  6247. {
  6248. return _target->GetShadowCascade ();
  6249. }
  6250. DllExport const struct Urho3D::FocusParameters &
  6251. Light_GetShadowFocus (Urho3D::Light *_target)
  6252. {
  6253. return _target->GetShadowFocus ();
  6254. }
  6255. DllExport float
  6256. Light_GetShadowIntensity (Urho3D::Light *_target)
  6257. {
  6258. return _target->GetShadowIntensity ();
  6259. }
  6260. DllExport float
  6261. Light_GetShadowResolution (Urho3D::Light *_target)
  6262. {
  6263. return _target->GetShadowResolution ();
  6264. }
  6265. DllExport float
  6266. Light_GetShadowNearFarRatio (Urho3D::Light *_target)
  6267. {
  6268. return _target->GetShadowNearFarRatio ();
  6269. }
  6270. DllExport float
  6271. Light_GetShadowMaxExtrusion (Urho3D::Light *_target)
  6272. {
  6273. return _target->GetShadowMaxExtrusion ();
  6274. }
  6275. DllExport Urho3D::Texture *
  6276. Light_GetRampTexture (Urho3D::Light *_target)
  6277. {
  6278. return _target->GetRampTexture ();
  6279. }
  6280. DllExport Urho3D::Texture *
  6281. Light_GetShapeTexture (Urho3D::Light *_target)
  6282. {
  6283. return _target->GetShapeTexture ();
  6284. }
  6285. DllExport Urho3D::Frustum
  6286. Light_GetFrustum (Urho3D::Light *_target)
  6287. {
  6288. return _target->GetFrustum ();
  6289. }
  6290. DllExport Urho3D::Frustum
  6291. Light_GetViewSpaceFrustum (Urho3D::Light *_target, const class Urho3D::Matrix3x4 & view)
  6292. {
  6293. return _target->GetViewSpaceFrustum (view);
  6294. }
  6295. DllExport int
  6296. Light_GetNumShadowSplits (Urho3D::Light *_target)
  6297. {
  6298. return _target->GetNumShadowSplits ();
  6299. }
  6300. DllExport int
  6301. Light_IsNegative (Urho3D::Light *_target)
  6302. {
  6303. return _target->IsNegative ();
  6304. }
  6305. DllExport void
  6306. Light_SetIntensitySortValue (Urho3D::Light *_target, float distance)
  6307. {
  6308. _target->SetIntensitySortValue (distance);
  6309. }
  6310. DllExport void
  6311. Light_SetIntensitySortValue0 (Urho3D::Light *_target, const class Urho3D::BoundingBox & box)
  6312. {
  6313. _target->SetIntensitySortValue (box);
  6314. }
  6315. DllExport void
  6316. Light_SetLightQueue (Urho3D::Light *_target, Urho3D::LightBatchQueue * queue)
  6317. {
  6318. _target->SetLightQueue (queue);
  6319. }
  6320. DllExport Interop::Matrix3x4
  6321. Light_GetVolumeTransform (Urho3D::Light *_target, Urho3D::Camera * camera)
  6322. {
  6323. return *((Interop::Matrix3x4 *) &(_target->GetVolumeTransform (camera)));
  6324. }
  6325. DllExport Urho3D::LightBatchQueue *
  6326. Light_GetLightQueue (Urho3D::Light *_target)
  6327. {
  6328. return _target->GetLightQueue ();
  6329. }
  6330. DllExport float
  6331. Light_GetIntensityDivisor (Urho3D::Light *_target, float attenuation)
  6332. {
  6333. return _target->GetIntensityDivisor (attenuation);
  6334. }
  6335. DllExport Urho3D::ResourceRef
  6336. Light_GetRampTextureAttr (Urho3D::Light *_target)
  6337. {
  6338. return _target->GetRampTextureAttr ();
  6339. }
  6340. DllExport Urho3D::ResourceRef
  6341. Light_GetShapeTextureAttr (Urho3D::Light *_target)
  6342. {
  6343. return _target->GetShapeTextureAttr ();
  6344. }
  6345. DllExport Interop::Matrix3x4
  6346. Light_GetFullscreenQuadTransform (Urho3D::Camera * camera)
  6347. {
  6348. return *((Interop::Matrix3x4 *) &(Light::GetFullscreenQuadTransform (camera)));
  6349. }
  6350. DllExport void *
  6351. ShaderParameterAnimationInfo_ShaderParameterAnimationInfo (Urho3D::Material * material, const char * name, Urho3D::ValueAnimation * attributeAnimation, enum Urho3D::WrapMode wrapMode, float speed)
  6352. {
  6353. return WeakPtr<ShaderParameterAnimationInfo>(new ShaderParameterAnimationInfo(material, Urho3D::String(name), attributeAnimation, wrapMode, speed));
  6354. }
  6355. DllExport const char *
  6356. ShaderParameterAnimationInfo_GetName (Urho3D::ShaderParameterAnimationInfo *_target)
  6357. {
  6358. return stringdup((_target->GetName ()).CString ());
  6359. }
  6360. DllExport int
  6361. Material_GetType (Urho3D::Material *_target)
  6362. {
  6363. return (_target->GetType ()).Value ();
  6364. }
  6365. DllExport const char *
  6366. Material_GetTypeName (Urho3D::Material *_target)
  6367. {
  6368. return stringdup((_target->GetTypeName ()).CString ());
  6369. }
  6370. DllExport int
  6371. Material_GetTypeStatic ()
  6372. {
  6373. return (Material::GetTypeStatic ()).Value ();
  6374. }
  6375. DllExport const char *
  6376. Material_GetTypeNameStatic ()
  6377. {
  6378. return stringdup((Material::GetTypeNameStatic ()).CString ());
  6379. }
  6380. DllExport void *
  6381. Material_Material (Urho3D::Context * context)
  6382. {
  6383. return WeakPtr<Material>(new Material(context));
  6384. }
  6385. DllExport void
  6386. Material_RegisterObject (Urho3D::Context * context)
  6387. {
  6388. Material::RegisterObject (context);
  6389. }
  6390. DllExport int
  6391. Material_BeginLoad_File (Urho3D::Material *_target, File * source)
  6392. {
  6393. return _target->BeginLoad (*source);
  6394. }
  6395. DllExport int
  6396. Material_BeginLoad_MemoryBuffer (Urho3D::Material *_target, MemoryBuffer * source)
  6397. {
  6398. return _target->BeginLoad (*source);
  6399. }
  6400. DllExport int
  6401. Material_EndLoad (Urho3D::Material *_target)
  6402. {
  6403. return _target->EndLoad ();
  6404. }
  6405. DllExport int
  6406. Material_Save_File (Urho3D::Material *_target, File * dest)
  6407. {
  6408. return _target->Save (*dest);
  6409. }
  6410. DllExport int
  6411. Material_Save_MemoryBuffer (Urho3D::Material *_target, MemoryBuffer * dest)
  6412. {
  6413. return _target->Save (*dest);
  6414. }
  6415. DllExport int
  6416. Material_Load (Urho3D::Material *_target, const class Urho3D::XMLElement & source)
  6417. {
  6418. return _target->Load (source);
  6419. }
  6420. DllExport int
  6421. Material_Save0 (Urho3D::Material *_target, Urho3D::XMLElement & dest)
  6422. {
  6423. return _target->Save (dest);
  6424. }
  6425. DllExport void
  6426. Material_SetNumTechniques (Urho3D::Material *_target, unsigned int num)
  6427. {
  6428. _target->SetNumTechniques (num);
  6429. }
  6430. DllExport void
  6431. Material_SetTechnique (Urho3D::Material *_target, unsigned int index, Urho3D::Technique * tech, unsigned int qualityLevel, float lodDistance)
  6432. {
  6433. _target->SetTechnique (index, tech, qualityLevel, lodDistance);
  6434. }
  6435. DllExport void
  6436. Material_SetVertexShaderDefines (Urho3D::Material *_target, const char * defines)
  6437. {
  6438. _target->SetVertexShaderDefines (Urho3D::String(defines));
  6439. }
  6440. DllExport void
  6441. Material_SetPixelShaderDefines (Urho3D::Material *_target, const char * defines)
  6442. {
  6443. _target->SetPixelShaderDefines (Urho3D::String(defines));
  6444. }
  6445. // Urho3D::Variant overloads begin:
  6446. DllExport void
  6447. Material_SetShaderParameter0 (Urho3D::Material *_target, const char * name, const class Urho3D::Vector3 & value)
  6448. {
  6449. _target->SetShaderParameter (Urho3D::String(name), (value));
  6450. }
  6451. DllExport void
  6452. Material_SetShaderParameter1 (Urho3D::Material *_target, const char * name, const class Urho3D::IntRect & value)
  6453. {
  6454. _target->SetShaderParameter (Urho3D::String(name), (value));
  6455. }
  6456. DllExport void
  6457. Material_SetShaderParameter2 (Urho3D::Material *_target, const char * name, const class Urho3D::Color & value)
  6458. {
  6459. _target->SetShaderParameter (Urho3D::String(name), (value));
  6460. }
  6461. DllExport void
  6462. Material_SetShaderParameter3 (Urho3D::Material *_target, const char * name, const class Urho3D::Vector2 & value)
  6463. {
  6464. _target->SetShaderParameter (Urho3D::String(name), (value));
  6465. }
  6466. DllExport void
  6467. Material_SetShaderParameter4 (Urho3D::Material *_target, const char * name, const class Urho3D::Vector4 & value)
  6468. {
  6469. _target->SetShaderParameter (Urho3D::String(name), (value));
  6470. }
  6471. DllExport void
  6472. Material_SetShaderParameter5 (Urho3D::Material *_target, const char * name, const class Urho3D::IntVector2 & value)
  6473. {
  6474. _target->SetShaderParameter (Urho3D::String(name), (value));
  6475. }
  6476. DllExport void
  6477. Material_SetShaderParameter6 (Urho3D::Material *_target, const char * name, const class Urho3D::Quaternion & value)
  6478. {
  6479. _target->SetShaderParameter (Urho3D::String(name), (value));
  6480. }
  6481. DllExport void
  6482. Material_SetShaderParameter7 (Urho3D::Material *_target, const char * name, const class Urho3D::Matrix4 & value)
  6483. {
  6484. _target->SetShaderParameter (Urho3D::String(name), (value));
  6485. }
  6486. DllExport void
  6487. Material_SetShaderParameter8 (Urho3D::Material *_target, const char * name, const class Urho3D::Matrix3x4 & value)
  6488. {
  6489. _target->SetShaderParameter (Urho3D::String(name), (value));
  6490. }
  6491. DllExport void
  6492. Material_SetShaderParameter9 (Urho3D::Material *_target, const char * name, int value)
  6493. {
  6494. _target->SetShaderParameter (Urho3D::String(name), (value));
  6495. }
  6496. DllExport void
  6497. Material_SetShaderParameter10 (Urho3D::Material *_target, const char * name, float value)
  6498. {
  6499. _target->SetShaderParameter (Urho3D::String(name), (value));
  6500. }
  6501. DllExport void
  6502. Material_SetShaderParameter11 (Urho3D::Material *_target, const char * name, const char * value)
  6503. {
  6504. _target->SetShaderParameter (Urho3D::String(name), Urho3D::String(value));
  6505. }
  6506. // Urho3D::Variant overloads end.
  6507. DllExport void
  6508. Material_SetShaderParameterAnimation (Urho3D::Material *_target, const char * name, Urho3D::ValueAnimation * animation, enum Urho3D::WrapMode wrapMode, float speed)
  6509. {
  6510. _target->SetShaderParameterAnimation (Urho3D::String(name), animation, wrapMode, speed);
  6511. }
  6512. DllExport void
  6513. Material_SetShaderParameterAnimationWrapMode (Urho3D::Material *_target, const char * name, enum Urho3D::WrapMode wrapMode)
  6514. {
  6515. _target->SetShaderParameterAnimationWrapMode (Urho3D::String(name), wrapMode);
  6516. }
  6517. DllExport void
  6518. Material_SetShaderParameterAnimationSpeed (Urho3D::Material *_target, const char * name, float speed)
  6519. {
  6520. _target->SetShaderParameterAnimationSpeed (Urho3D::String(name), speed);
  6521. }
  6522. DllExport void
  6523. Material_SetTexture (Urho3D::Material *_target, enum Urho3D::TextureUnit unit, Urho3D::Texture * texture)
  6524. {
  6525. _target->SetTexture (unit, texture);
  6526. }
  6527. DllExport void
  6528. Material_SetUVTransform (Urho3D::Material *_target, const class Urho3D::Vector2 & offset, float rotation, const class Urho3D::Vector2 & repeat)
  6529. {
  6530. _target->SetUVTransform (offset, rotation, repeat);
  6531. }
  6532. DllExport void
  6533. Material_SetUVTransform1 (Urho3D::Material *_target, const class Urho3D::Vector2 & offset, float rotation, float repeat)
  6534. {
  6535. _target->SetUVTransform (offset, rotation, repeat);
  6536. }
  6537. DllExport void
  6538. Material_SetCullMode (Urho3D::Material *_target, enum Urho3D::CullMode mode)
  6539. {
  6540. _target->SetCullMode (mode);
  6541. }
  6542. DllExport void
  6543. Material_SetShadowCullMode (Urho3D::Material *_target, enum Urho3D::CullMode mode)
  6544. {
  6545. _target->SetShadowCullMode (mode);
  6546. }
  6547. DllExport void
  6548. Material_SetFillMode (Urho3D::Material *_target, enum Urho3D::FillMode mode)
  6549. {
  6550. _target->SetFillMode (mode);
  6551. }
  6552. DllExport void
  6553. Material_SetDepthBias (Urho3D::Material *_target, const struct Urho3D::BiasParameters & parameters)
  6554. {
  6555. _target->SetDepthBias (parameters);
  6556. }
  6557. DllExport void
  6558. Material_SetAlphaToCoverage (Urho3D::Material *_target, bool enable)
  6559. {
  6560. _target->SetAlphaToCoverage (enable);
  6561. }
  6562. DllExport void
  6563. Material_SetLineAntiAlias (Urho3D::Material *_target, bool enable)
  6564. {
  6565. _target->SetLineAntiAlias (enable);
  6566. }
  6567. DllExport void
  6568. Material_SetRenderOrder (Urho3D::Material *_target, unsigned char order)
  6569. {
  6570. _target->SetRenderOrder (order);
  6571. }
  6572. DllExport void
  6573. Material_SetOcclusion (Urho3D::Material *_target, bool enable)
  6574. {
  6575. _target->SetOcclusion (enable);
  6576. }
  6577. DllExport void
  6578. Material_SetScene (Urho3D::Material *_target, Urho3D::Scene * scene)
  6579. {
  6580. _target->SetScene (scene);
  6581. }
  6582. DllExport void
  6583. Material_RemoveShaderParameter (Urho3D::Material *_target, const char * name)
  6584. {
  6585. _target->RemoveShaderParameter (Urho3D::String(name));
  6586. }
  6587. DllExport void
  6588. Material_ReleaseShaders (Urho3D::Material *_target)
  6589. {
  6590. _target->ReleaseShaders ();
  6591. }
  6592. DllExport Urho3D::Material *
  6593. Material_Clone (Urho3D::Material *_target, const char * cloneName)
  6594. {
  6595. auto copy = _target->Clone (Urho3D::String(cloneName));
  6596. auto plain = copy.Get();
  6597. copy.Detach();
  6598. delete copy;
  6599. return plain;
  6600. }
  6601. DllExport void
  6602. Material_SortTechniques (Urho3D::Material *_target)
  6603. {
  6604. _target->SortTechniques ();
  6605. }
  6606. DllExport void
  6607. Material_MarkForAuxView (Urho3D::Material *_target, unsigned int frameNumber)
  6608. {
  6609. _target->MarkForAuxView (frameNumber);
  6610. }
  6611. DllExport unsigned int
  6612. Material_GetNumTechniques (Urho3D::Material *_target)
  6613. {
  6614. return _target->GetNumTechniques ();
  6615. }
  6616. DllExport Urho3D::Technique *
  6617. Material_GetTechnique (Urho3D::Material *_target, unsigned int index)
  6618. {
  6619. return _target->GetTechnique (index);
  6620. }
  6621. DllExport Urho3D::Pass *
  6622. Material_GetPass (Urho3D::Material *_target, unsigned int index, const char * passName)
  6623. {
  6624. return _target->GetPass (index, Urho3D::String(passName));
  6625. }
  6626. DllExport Urho3D::Texture *
  6627. Material_GetTexture (Urho3D::Material *_target, enum Urho3D::TextureUnit unit)
  6628. {
  6629. return _target->GetTexture (unit);
  6630. }
  6631. DllExport const char *
  6632. Material_GetVertexShaderDefines (Urho3D::Material *_target)
  6633. {
  6634. return stringdup((_target->GetVertexShaderDefines ()).CString ());
  6635. }
  6636. DllExport const char *
  6637. Material_GetPixelShaderDefines (Urho3D::Material *_target)
  6638. {
  6639. return stringdup((_target->GetPixelShaderDefines ()).CString ());
  6640. }
  6641. // Urho3D::Variant overloads begin:
  6642. DllExport Interop::Vector3
  6643. Material_GetShaderParameter0 (Urho3D::Material *_target, const char * name)
  6644. {
  6645. return *((Interop::Vector3 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetVector3()));
  6646. }
  6647. DllExport Interop::IntRect
  6648. Material_GetShaderParameter1 (Urho3D::Material *_target, const char * name)
  6649. {
  6650. return *((Interop::IntRect *) &(_target->GetShaderParameter (Urho3D::String(name)).GetIntRect()));
  6651. }
  6652. DllExport Interop::Color
  6653. Material_GetShaderParameter2 (Urho3D::Material *_target, const char * name)
  6654. {
  6655. return *((Interop::Color *) &(_target->GetShaderParameter (Urho3D::String(name)).GetColor()));
  6656. }
  6657. DllExport Interop::Vector2
  6658. Material_GetShaderParameter3 (Urho3D::Material *_target, const char * name)
  6659. {
  6660. return *((Interop::Vector2 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetVector2()));
  6661. }
  6662. DllExport Interop::Vector4
  6663. Material_GetShaderParameter4 (Urho3D::Material *_target, const char * name)
  6664. {
  6665. return *((Interop::Vector4 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetVector4()));
  6666. }
  6667. DllExport Interop::IntVector2
  6668. Material_GetShaderParameter5 (Urho3D::Material *_target, const char * name)
  6669. {
  6670. return *((Interop::IntVector2 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetIntVector2()));
  6671. }
  6672. DllExport Interop::Quaternion
  6673. Material_GetShaderParameter6 (Urho3D::Material *_target, const char * name)
  6674. {
  6675. return *((Interop::Quaternion *) &(_target->GetShaderParameter (Urho3D::String(name)).GetQuaternion()));
  6676. }
  6677. DllExport Interop::Matrix4
  6678. Material_GetShaderParameter7 (Urho3D::Material *_target, const char * name)
  6679. {
  6680. return *((Interop::Matrix4 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetMatrix4()));
  6681. }
  6682. DllExport Interop::Matrix3x4
  6683. Material_GetShaderParameter8 (Urho3D::Material *_target, const char * name)
  6684. {
  6685. return *((Interop::Matrix3x4 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetMatrix3x4()));
  6686. }
  6687. DllExport int
  6688. Material_GetShaderParameter9 (Urho3D::Material *_target, const char * name)
  6689. {
  6690. return (_target->GetShaderParameter (Urho3D::String(name)).GetInt());
  6691. }
  6692. DllExport float
  6693. Material_GetShaderParameter10 (Urho3D::Material *_target, const char * name)
  6694. {
  6695. return (_target->GetShaderParameter (Urho3D::String(name)).GetFloat());
  6696. }
  6697. DllExport const char *
  6698. Material_GetShaderParameter11 (Urho3D::Material *_target, const char * name)
  6699. {
  6700. return stringdup(_target->GetShaderParameter (Urho3D::String(name)).GetString().CString());
  6701. }
  6702. // Urho3D::Variant overloads end.
  6703. DllExport Urho3D::ValueAnimation *
  6704. Material_GetShaderParameterAnimation (Urho3D::Material *_target, const char * name)
  6705. {
  6706. return _target->GetShaderParameterAnimation (Urho3D::String(name));
  6707. }
  6708. DllExport enum Urho3D::WrapMode
  6709. Material_GetShaderParameterAnimationWrapMode (Urho3D::Material *_target, const char * name)
  6710. {
  6711. return _target->GetShaderParameterAnimationWrapMode (Urho3D::String(name));
  6712. }
  6713. DllExport float
  6714. Material_GetShaderParameterAnimationSpeed (Urho3D::Material *_target, const char * name)
  6715. {
  6716. return _target->GetShaderParameterAnimationSpeed (Urho3D::String(name));
  6717. }
  6718. DllExport enum Urho3D::CullMode
  6719. Material_GetCullMode (Urho3D::Material *_target)
  6720. {
  6721. return _target->GetCullMode ();
  6722. }
  6723. DllExport enum Urho3D::CullMode
  6724. Material_GetShadowCullMode (Urho3D::Material *_target)
  6725. {
  6726. return _target->GetShadowCullMode ();
  6727. }
  6728. DllExport enum Urho3D::FillMode
  6729. Material_GetFillMode (Urho3D::Material *_target)
  6730. {
  6731. return _target->GetFillMode ();
  6732. }
  6733. DllExport const struct Urho3D::BiasParameters &
  6734. Material_GetDepthBias (Urho3D::Material *_target)
  6735. {
  6736. return _target->GetDepthBias ();
  6737. }
  6738. DllExport int
  6739. Material_GetAlphaToCoverage (Urho3D::Material *_target)
  6740. {
  6741. return _target->GetAlphaToCoverage ();
  6742. }
  6743. DllExport int
  6744. Material_GetLineAntiAlias (Urho3D::Material *_target)
  6745. {
  6746. return _target->GetLineAntiAlias ();
  6747. }
  6748. DllExport unsigned char
  6749. Material_GetRenderOrder (Urho3D::Material *_target)
  6750. {
  6751. return _target->GetRenderOrder ();
  6752. }
  6753. DllExport unsigned int
  6754. Material_GetAuxViewFrameNumber (Urho3D::Material *_target)
  6755. {
  6756. return _target->GetAuxViewFrameNumber ();
  6757. }
  6758. DllExport int
  6759. Material_GetOcclusion (Urho3D::Material *_target)
  6760. {
  6761. return _target->GetOcclusion ();
  6762. }
  6763. DllExport int
  6764. Material_GetSpecular (Urho3D::Material *_target)
  6765. {
  6766. return _target->GetSpecular ();
  6767. }
  6768. DllExport Urho3D::Scene *
  6769. Material_GetScene (Urho3D::Material *_target)
  6770. {
  6771. return _target->GetScene ();
  6772. }
  6773. DllExport unsigned int
  6774. Material_GetShaderParameterHash (Urho3D::Material *_target)
  6775. {
  6776. return _target->GetShaderParameterHash ();
  6777. }
  6778. DllExport const char *
  6779. Material_GetTextureUnitName (enum Urho3D::TextureUnit unit)
  6780. {
  6781. return stringdup((Material::GetTextureUnitName (unit)).CString ());
  6782. }
  6783. DllExport Urho3D::Variant
  6784. Material_ParseShaderParameterValue (const char * value)
  6785. {
  6786. return Material::ParseShaderParameterValue (Urho3D::String(value));
  6787. }
  6788. DllExport int
  6789. BillboardSet_GetType (Urho3D::BillboardSet *_target)
  6790. {
  6791. return (_target->GetType ()).Value ();
  6792. }
  6793. DllExport const char *
  6794. BillboardSet_GetTypeName (Urho3D::BillboardSet *_target)
  6795. {
  6796. return stringdup((_target->GetTypeName ()).CString ());
  6797. }
  6798. DllExport int
  6799. BillboardSet_GetTypeStatic ()
  6800. {
  6801. return (BillboardSet::GetTypeStatic ()).Value ();
  6802. }
  6803. DllExport const char *
  6804. BillboardSet_GetTypeNameStatic ()
  6805. {
  6806. return stringdup((BillboardSet::GetTypeNameStatic ()).CString ());
  6807. }
  6808. DllExport void *
  6809. BillboardSet_BillboardSet (Urho3D::Context * context)
  6810. {
  6811. return WeakPtr<BillboardSet>(new BillboardSet(context));
  6812. }
  6813. DllExport void
  6814. BillboardSet_RegisterObject (Urho3D::Context * context)
  6815. {
  6816. BillboardSet::RegisterObject (context);
  6817. }
  6818. DllExport enum Urho3D::UpdateGeometryType
  6819. BillboardSet_GetUpdateGeometryType (Urho3D::BillboardSet *_target)
  6820. {
  6821. return _target->GetUpdateGeometryType ();
  6822. }
  6823. DllExport void
  6824. BillboardSet_SetMaterial (Urho3D::BillboardSet *_target, Urho3D::Material * material)
  6825. {
  6826. _target->SetMaterial (material);
  6827. }
  6828. DllExport void
  6829. BillboardSet_SetNumBillboards (Urho3D::BillboardSet *_target, unsigned int num)
  6830. {
  6831. _target->SetNumBillboards (num);
  6832. }
  6833. DllExport void
  6834. BillboardSet_SetRelative (Urho3D::BillboardSet *_target, bool enable)
  6835. {
  6836. _target->SetRelative (enable);
  6837. }
  6838. DllExport void
  6839. BillboardSet_SetScaled (Urho3D::BillboardSet *_target, bool enable)
  6840. {
  6841. _target->SetScaled (enable);
  6842. }
  6843. DllExport void
  6844. BillboardSet_SetSorted (Urho3D::BillboardSet *_target, bool enable)
  6845. {
  6846. _target->SetSorted (enable);
  6847. }
  6848. DllExport void
  6849. BillboardSet_SetFixedScreenSize (Urho3D::BillboardSet *_target, bool enable)
  6850. {
  6851. _target->SetFixedScreenSize (enable);
  6852. }
  6853. DllExport void
  6854. BillboardSet_SetFaceCameraMode (Urho3D::BillboardSet *_target, enum Urho3D::FaceCameraMode mode)
  6855. {
  6856. _target->SetFaceCameraMode (mode);
  6857. }
  6858. DllExport void
  6859. BillboardSet_SetMinAngle (Urho3D::BillboardSet *_target, float angle)
  6860. {
  6861. _target->SetMinAngle (angle);
  6862. }
  6863. DllExport void
  6864. BillboardSet_SetAnimationLodBias (Urho3D::BillboardSet *_target, float bias)
  6865. {
  6866. _target->SetAnimationLodBias (bias);
  6867. }
  6868. DllExport void
  6869. BillboardSet_Commit (Urho3D::BillboardSet *_target)
  6870. {
  6871. _target->Commit ();
  6872. }
  6873. DllExport Urho3D::Material *
  6874. BillboardSet_GetMaterial (Urho3D::BillboardSet *_target)
  6875. {
  6876. return _target->GetMaterial ();
  6877. }
  6878. DllExport unsigned int
  6879. BillboardSet_GetNumBillboards (Urho3D::BillboardSet *_target)
  6880. {
  6881. return _target->GetNumBillboards ();
  6882. }
  6883. DllExport Urho3D::Billboard *
  6884. BillboardSet_GetBillboard (Urho3D::BillboardSet *_target, unsigned int index)
  6885. {
  6886. return _target->GetBillboard (index);
  6887. }
  6888. DllExport int
  6889. BillboardSet_IsRelative (Urho3D::BillboardSet *_target)
  6890. {
  6891. return _target->IsRelative ();
  6892. }
  6893. DllExport int
  6894. BillboardSet_IsScaled (Urho3D::BillboardSet *_target)
  6895. {
  6896. return _target->IsScaled ();
  6897. }
  6898. DllExport int
  6899. BillboardSet_IsSorted (Urho3D::BillboardSet *_target)
  6900. {
  6901. return _target->IsSorted ();
  6902. }
  6903. DllExport int
  6904. BillboardSet_IsFixedScreenSize (Urho3D::BillboardSet *_target)
  6905. {
  6906. return _target->IsFixedScreenSize ();
  6907. }
  6908. DllExport enum Urho3D::FaceCameraMode
  6909. BillboardSet_GetFaceCameraMode (Urho3D::BillboardSet *_target)
  6910. {
  6911. return _target->GetFaceCameraMode ();
  6912. }
  6913. DllExport float
  6914. BillboardSet_GetMinAngle (Urho3D::BillboardSet *_target)
  6915. {
  6916. return _target->GetMinAngle ();
  6917. }
  6918. DllExport float
  6919. BillboardSet_GetAnimationLodBias (Urho3D::BillboardSet *_target)
  6920. {
  6921. return _target->GetAnimationLodBias ();
  6922. }
  6923. DllExport Urho3D::ResourceRef
  6924. BillboardSet_GetMaterialAttr (Urho3D::BillboardSet *_target)
  6925. {
  6926. return _target->GetMaterialAttr ();
  6927. }
  6928. DllExport int
  6929. Camera_GetType (Urho3D::Camera *_target)
  6930. {
  6931. return (_target->GetType ()).Value ();
  6932. }
  6933. DllExport const char *
  6934. Camera_GetTypeName (Urho3D::Camera *_target)
  6935. {
  6936. return stringdup((_target->GetTypeName ()).CString ());
  6937. }
  6938. DllExport int
  6939. Camera_GetTypeStatic ()
  6940. {
  6941. return (Camera::GetTypeStatic ()).Value ();
  6942. }
  6943. DllExport const char *
  6944. Camera_GetTypeNameStatic ()
  6945. {
  6946. return stringdup((Camera::GetTypeNameStatic ()).CString ());
  6947. }
  6948. DllExport void *
  6949. Camera_Camera (Urho3D::Context * context)
  6950. {
  6951. return WeakPtr<Camera>(new Camera(context));
  6952. }
  6953. DllExport void
  6954. Camera_RegisterObject (Urho3D::Context * context)
  6955. {
  6956. Camera::RegisterObject (context);
  6957. }
  6958. DllExport void
  6959. Camera_DrawDebugGeometry (Urho3D::Camera *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  6960. {
  6961. _target->DrawDebugGeometry (debug, depthTest);
  6962. }
  6963. DllExport void
  6964. Camera_SetNearClip (Urho3D::Camera *_target, float nearClip)
  6965. {
  6966. _target->SetNearClip (nearClip);
  6967. }
  6968. DllExport void
  6969. Camera_SetFarClip (Urho3D::Camera *_target, float farClip)
  6970. {
  6971. _target->SetFarClip (farClip);
  6972. }
  6973. DllExport void
  6974. Camera_SetFov (Urho3D::Camera *_target, float fov)
  6975. {
  6976. _target->SetFov (fov);
  6977. }
  6978. DllExport void
  6979. Camera_SetSkew (Urho3D::Camera *_target, float skew)
  6980. {
  6981. _target->SetSkew (skew);
  6982. }
  6983. DllExport void
  6984. Camera_SetOrthoSize (Urho3D::Camera *_target, float orthoSize)
  6985. {
  6986. _target->SetOrthoSize (orthoSize);
  6987. }
  6988. DllExport void
  6989. Camera_SetOrthoSize0 (Urho3D::Camera *_target, const class Urho3D::Vector2 & orthoSize)
  6990. {
  6991. _target->SetOrthoSize (orthoSize);
  6992. }
  6993. DllExport void
  6994. Camera_SetAspectRatio (Urho3D::Camera *_target, float aspectRatio)
  6995. {
  6996. _target->SetAspectRatio (aspectRatio);
  6997. }
  6998. DllExport void
  6999. Camera_SetFillMode (Urho3D::Camera *_target, enum Urho3D::FillMode mode)
  7000. {
  7001. _target->SetFillMode (mode);
  7002. }
  7003. DllExport void
  7004. Camera_SetZoom (Urho3D::Camera *_target, float zoom)
  7005. {
  7006. _target->SetZoom (zoom);
  7007. }
  7008. DllExport void
  7009. Camera_SetLodBias (Urho3D::Camera *_target, float bias)
  7010. {
  7011. _target->SetLodBias (bias);
  7012. }
  7013. DllExport void
  7014. Camera_SetViewMask (Urho3D::Camera *_target, unsigned int mask)
  7015. {
  7016. _target->SetViewMask (mask);
  7017. }
  7018. DllExport void
  7019. Camera_SetViewOverrideFlags (Urho3D::Camera *_target, unsigned int flags)
  7020. {
  7021. _target->SetViewOverrideFlags (flags);
  7022. }
  7023. DllExport void
  7024. Camera_SetOrthographic (Urho3D::Camera *_target, bool enable)
  7025. {
  7026. _target->SetOrthographic (enable);
  7027. }
  7028. DllExport void
  7029. Camera_SetAutoAspectRatio (Urho3D::Camera *_target, bool enable)
  7030. {
  7031. _target->SetAutoAspectRatio (enable);
  7032. }
  7033. DllExport void
  7034. Camera_SetProjectionOffset (Urho3D::Camera *_target, const class Urho3D::Vector2 & offset)
  7035. {
  7036. _target->SetProjectionOffset (offset);
  7037. }
  7038. DllExport void
  7039. Camera_SetUseReflection (Urho3D::Camera *_target, bool enable)
  7040. {
  7041. _target->SetUseReflection (enable);
  7042. }
  7043. DllExport void
  7044. Camera_SetReflectionPlane (Urho3D::Camera *_target, const class Urho3D::Plane & plane)
  7045. {
  7046. _target->SetReflectionPlane (plane);
  7047. }
  7048. DllExport void
  7049. Camera_SetUseClipping (Urho3D::Camera *_target, bool enable)
  7050. {
  7051. _target->SetUseClipping (enable);
  7052. }
  7053. DllExport void
  7054. Camera_SetClipPlane (Urho3D::Camera *_target, const class Urho3D::Plane & plane)
  7055. {
  7056. _target->SetClipPlane (plane);
  7057. }
  7058. DllExport void
  7059. Camera_SetFlipVertical (Urho3D::Camera *_target, bool enable)
  7060. {
  7061. _target->SetFlipVertical (enable);
  7062. }
  7063. DllExport void
  7064. Camera_SetProjection (Urho3D::Camera *_target, const class Urho3D::Matrix4 & projection)
  7065. {
  7066. _target->SetProjection (projection);
  7067. }
  7068. DllExport float
  7069. Camera_GetFarClip (Urho3D::Camera *_target)
  7070. {
  7071. return _target->GetFarClip ();
  7072. }
  7073. DllExport float
  7074. Camera_GetNearClip (Urho3D::Camera *_target)
  7075. {
  7076. return _target->GetNearClip ();
  7077. }
  7078. DllExport float
  7079. Camera_GetSkew (Urho3D::Camera *_target)
  7080. {
  7081. return _target->GetSkew ();
  7082. }
  7083. DllExport float
  7084. Camera_GetFov (Urho3D::Camera *_target)
  7085. {
  7086. return _target->GetFov ();
  7087. }
  7088. DllExport float
  7089. Camera_GetOrthoSize (Urho3D::Camera *_target)
  7090. {
  7091. return _target->GetOrthoSize ();
  7092. }
  7093. DllExport float
  7094. Camera_GetAspectRatio (Urho3D::Camera *_target)
  7095. {
  7096. return _target->GetAspectRatio ();
  7097. }
  7098. DllExport float
  7099. Camera_GetZoom (Urho3D::Camera *_target)
  7100. {
  7101. return _target->GetZoom ();
  7102. }
  7103. DllExport float
  7104. Camera_GetLodBias (Urho3D::Camera *_target)
  7105. {
  7106. return _target->GetLodBias ();
  7107. }
  7108. DllExport unsigned int
  7109. Camera_GetViewMask (Urho3D::Camera *_target)
  7110. {
  7111. return _target->GetViewMask ();
  7112. }
  7113. DllExport unsigned int
  7114. Camera_GetViewOverrideFlags (Urho3D::Camera *_target)
  7115. {
  7116. return _target->GetViewOverrideFlags ();
  7117. }
  7118. DllExport enum Urho3D::FillMode
  7119. Camera_GetFillMode (Urho3D::Camera *_target)
  7120. {
  7121. return _target->GetFillMode ();
  7122. }
  7123. DllExport int
  7124. Camera_IsOrthographic (Urho3D::Camera *_target)
  7125. {
  7126. return _target->IsOrthographic ();
  7127. }
  7128. DllExport int
  7129. Camera_GetAutoAspectRatio (Urho3D::Camera *_target)
  7130. {
  7131. return _target->GetAutoAspectRatio ();
  7132. }
  7133. DllExport Interop::Matrix4
  7134. Camera_GetProjection (Urho3D::Camera *_target)
  7135. {
  7136. return *((Interop::Matrix4 *) &(_target->GetProjection ()));
  7137. }
  7138. DllExport Interop::Matrix4
  7139. Camera_GetGPUProjection (Urho3D::Camera *_target)
  7140. {
  7141. return *((Interop::Matrix4 *) &(_target->GetGPUProjection ()));
  7142. }
  7143. DllExport Interop::Matrix3x4
  7144. Camera_GetView (Urho3D::Camera *_target)
  7145. {
  7146. return *((Interop::Matrix3x4 *) &(_target->GetView ()));
  7147. }
  7148. DllExport float
  7149. Camera_GetHalfViewSize (Urho3D::Camera *_target)
  7150. {
  7151. return _target->GetHalfViewSize ();
  7152. }
  7153. DllExport Urho3D::Frustum
  7154. Camera_GetSplitFrustum (Urho3D::Camera *_target, float nearClip, float farClip)
  7155. {
  7156. return _target->GetSplitFrustum (nearClip, farClip);
  7157. }
  7158. DllExport Urho3D::Frustum
  7159. Camera_GetViewSpaceFrustum (Urho3D::Camera *_target)
  7160. {
  7161. return _target->GetViewSpaceFrustum ();
  7162. }
  7163. DllExport Urho3D::Frustum
  7164. Camera_GetViewSpaceSplitFrustum (Urho3D::Camera *_target, float nearClip, float farClip)
  7165. {
  7166. return _target->GetViewSpaceSplitFrustum (nearClip, farClip);
  7167. }
  7168. DllExport Urho3D::Ray
  7169. Camera_GetScreenRay (Urho3D::Camera *_target, float x, float y)
  7170. {
  7171. return _target->GetScreenRay (x, y);
  7172. }
  7173. DllExport Interop::Vector2
  7174. Camera_WorldToScreenPoint (Urho3D::Camera *_target, const class Urho3D::Vector3 & worldPos)
  7175. {
  7176. return *((Interop::Vector2 *) &(_target->WorldToScreenPoint (worldPos)));
  7177. }
  7178. DllExport Interop::Vector3
  7179. Camera_ScreenToWorldPoint (Urho3D::Camera *_target, const class Urho3D::Vector3 & screenPos)
  7180. {
  7181. return *((Interop::Vector3 *) &(_target->ScreenToWorldPoint (screenPos)));
  7182. }
  7183. DllExport Interop::Vector2
  7184. Camera_GetProjectionOffset (Urho3D::Camera *_target)
  7185. {
  7186. return *((Interop::Vector2 *) &(_target->GetProjectionOffset ()));
  7187. }
  7188. DllExport int
  7189. Camera_GetUseReflection (Urho3D::Camera *_target)
  7190. {
  7191. return _target->GetUseReflection ();
  7192. }
  7193. DllExport Interop::Plane
  7194. Camera_GetReflectionPlane (Urho3D::Camera *_target)
  7195. {
  7196. return *((Interop::Plane *) &(_target->GetReflectionPlane ()));
  7197. }
  7198. DllExport int
  7199. Camera_GetUseClipping (Urho3D::Camera *_target)
  7200. {
  7201. return _target->GetUseClipping ();
  7202. }
  7203. DllExport Interop::Plane
  7204. Camera_GetClipPlane (Urho3D::Camera *_target)
  7205. {
  7206. return *((Interop::Plane *) &(_target->GetClipPlane ()));
  7207. }
  7208. DllExport int
  7209. Camera_GetFlipVertical (Urho3D::Camera *_target)
  7210. {
  7211. return _target->GetFlipVertical ();
  7212. }
  7213. DllExport int
  7214. Camera_GetReverseCulling (Urho3D::Camera *_target)
  7215. {
  7216. return _target->GetReverseCulling ();
  7217. }
  7218. DllExport float
  7219. Camera_GetDistance (Urho3D::Camera *_target, const class Urho3D::Vector3 & worldPos)
  7220. {
  7221. return _target->GetDistance (worldPos);
  7222. }
  7223. DllExport float
  7224. Camera_GetDistanceSquared (Urho3D::Camera *_target, const class Urho3D::Vector3 & worldPos)
  7225. {
  7226. return _target->GetDistanceSquared (worldPos);
  7227. }
  7228. DllExport float
  7229. Camera_GetLodDistance (Urho3D::Camera *_target, float distance, float scale, float bias)
  7230. {
  7231. return _target->GetLodDistance (distance, scale, bias);
  7232. }
  7233. DllExport Interop::Quaternion
  7234. Camera_GetFaceCameraRotation (Urho3D::Camera *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, enum Urho3D::FaceCameraMode mode, float minAngle)
  7235. {
  7236. return *((Interop::Quaternion *) &(_target->GetFaceCameraRotation (position, rotation, mode, minAngle)));
  7237. }
  7238. DllExport Interop::Matrix3x4
  7239. Camera_GetEffectiveWorldTransform (Urho3D::Camera *_target)
  7240. {
  7241. return *((Interop::Matrix3x4 *) &(_target->GetEffectiveWorldTransform ()));
  7242. }
  7243. DllExport int
  7244. Camera_IsProjectionValid (Urho3D::Camera *_target)
  7245. {
  7246. return _target->IsProjectionValid ();
  7247. }
  7248. DllExport void
  7249. Camera_SetAspectRatioInternal (Urho3D::Camera *_target, float aspectRatio)
  7250. {
  7251. _target->SetAspectRatioInternal (aspectRatio);
  7252. }
  7253. DllExport void
  7254. Camera_SetOrthoSizeAttr (Urho3D::Camera *_target, float orthoSize)
  7255. {
  7256. _target->SetOrthoSizeAttr (orthoSize);
  7257. }
  7258. DllExport void
  7259. Camera_SetReflectionPlaneAttr (Urho3D::Camera *_target, const class Urho3D::Vector4 & value)
  7260. {
  7261. _target->SetReflectionPlaneAttr (value);
  7262. }
  7263. DllExport Interop::Vector4
  7264. Camera_GetReflectionPlaneAttr (Urho3D::Camera *_target)
  7265. {
  7266. return *((Interop::Vector4 *) &(_target->GetReflectionPlaneAttr ()));
  7267. }
  7268. DllExport void
  7269. Camera_SetClipPlaneAttr (Urho3D::Camera *_target, const class Urho3D::Vector4 & value)
  7270. {
  7271. _target->SetClipPlaneAttr (value);
  7272. }
  7273. DllExport Interop::Vector4
  7274. Camera_GetClipPlaneAttr (Urho3D::Camera *_target)
  7275. {
  7276. return *((Interop::Vector4 *) &(_target->GetClipPlaneAttr ()));
  7277. }
  7278. DllExport int
  7279. ConstantBuffer_GetType (Urho3D::ConstantBuffer *_target)
  7280. {
  7281. return (_target->GetType ()).Value ();
  7282. }
  7283. DllExport const char *
  7284. ConstantBuffer_GetTypeName (Urho3D::ConstantBuffer *_target)
  7285. {
  7286. return stringdup((_target->GetTypeName ()).CString ());
  7287. }
  7288. DllExport int
  7289. ConstantBuffer_GetTypeStatic ()
  7290. {
  7291. return (ConstantBuffer::GetTypeStatic ()).Value ();
  7292. }
  7293. DllExport const char *
  7294. ConstantBuffer_GetTypeNameStatic ()
  7295. {
  7296. return stringdup((ConstantBuffer::GetTypeNameStatic ()).CString ());
  7297. }
  7298. DllExport void *
  7299. ConstantBuffer_ConstantBuffer (Urho3D::Context * context)
  7300. {
  7301. return WeakPtr<ConstantBuffer>(new ConstantBuffer(context));
  7302. }
  7303. DllExport void
  7304. ConstantBuffer_Release (Urho3D::ConstantBuffer *_target)
  7305. {
  7306. _target->Release ();
  7307. }
  7308. DllExport int
  7309. ConstantBuffer_SetSize (Urho3D::ConstantBuffer *_target, unsigned int size)
  7310. {
  7311. return _target->SetSize (size);
  7312. }
  7313. DllExport void
  7314. ConstantBuffer_SetParameter (Urho3D::ConstantBuffer *_target, unsigned int offset, unsigned int size, const void * data)
  7315. {
  7316. _target->SetParameter (offset, size, data);
  7317. }
  7318. DllExport void
  7319. ConstantBuffer_SetVector3ArrayParameter (Urho3D::ConstantBuffer *_target, unsigned int offset, unsigned int rows, const void * data)
  7320. {
  7321. _target->SetVector3ArrayParameter (offset, rows, data);
  7322. }
  7323. DllExport void
  7324. ConstantBuffer_Apply (Urho3D::ConstantBuffer *_target)
  7325. {
  7326. _target->Apply ();
  7327. }
  7328. DllExport unsigned int
  7329. ConstantBuffer_GetSize (Urho3D::ConstantBuffer *_target)
  7330. {
  7331. return _target->GetSize ();
  7332. }
  7333. DllExport int
  7334. ConstantBuffer_IsDirty (Urho3D::ConstantBuffer *_target)
  7335. {
  7336. return _target->IsDirty ();
  7337. }
  7338. DllExport int
  7339. CustomGeometry_GetType (Urho3D::CustomGeometry *_target)
  7340. {
  7341. return (_target->GetType ()).Value ();
  7342. }
  7343. DllExport const char *
  7344. CustomGeometry_GetTypeName (Urho3D::CustomGeometry *_target)
  7345. {
  7346. return stringdup((_target->GetTypeName ()).CString ());
  7347. }
  7348. DllExport int
  7349. CustomGeometry_GetTypeStatic ()
  7350. {
  7351. return (CustomGeometry::GetTypeStatic ()).Value ();
  7352. }
  7353. DllExport const char *
  7354. CustomGeometry_GetTypeNameStatic ()
  7355. {
  7356. return stringdup((CustomGeometry::GetTypeNameStatic ()).CString ());
  7357. }
  7358. DllExport void *
  7359. CustomGeometry_CustomGeometry (Urho3D::Context * context)
  7360. {
  7361. return WeakPtr<CustomGeometry>(new CustomGeometry(context));
  7362. }
  7363. DllExport void
  7364. CustomGeometry_RegisterObject (Urho3D::Context * context)
  7365. {
  7366. CustomGeometry::RegisterObject (context);
  7367. }
  7368. DllExport Urho3D::Geometry *
  7369. CustomGeometry_GetLodGeometry (Urho3D::CustomGeometry *_target, unsigned int batchIndex, unsigned int level)
  7370. {
  7371. return _target->GetLodGeometry (batchIndex, level);
  7372. }
  7373. DllExport unsigned int
  7374. CustomGeometry_GetNumOccluderTriangles (Urho3D::CustomGeometry *_target)
  7375. {
  7376. return _target->GetNumOccluderTriangles ();
  7377. }
  7378. DllExport int
  7379. CustomGeometry_DrawOcclusion (Urho3D::CustomGeometry *_target, Urho3D::OcclusionBuffer * buffer)
  7380. {
  7381. return _target->DrawOcclusion (buffer);
  7382. }
  7383. DllExport void
  7384. CustomGeometry_Clear (Urho3D::CustomGeometry *_target)
  7385. {
  7386. _target->Clear ();
  7387. }
  7388. DllExport void
  7389. CustomGeometry_SetNumGeometries (Urho3D::CustomGeometry *_target, unsigned int num)
  7390. {
  7391. _target->SetNumGeometries (num);
  7392. }
  7393. DllExport void
  7394. CustomGeometry_SetDynamic (Urho3D::CustomGeometry *_target, bool enable)
  7395. {
  7396. _target->SetDynamic (enable);
  7397. }
  7398. DllExport void
  7399. CustomGeometry_BeginGeometry (Urho3D::CustomGeometry *_target, unsigned int index, enum Urho3D::PrimitiveType type)
  7400. {
  7401. _target->BeginGeometry (index, type);
  7402. }
  7403. DllExport void
  7404. CustomGeometry_DefineVertex (Urho3D::CustomGeometry *_target, const class Urho3D::Vector3 & position)
  7405. {
  7406. _target->DefineVertex (position);
  7407. }
  7408. DllExport void
  7409. CustomGeometry_DefineNormal (Urho3D::CustomGeometry *_target, const class Urho3D::Vector3 & normal)
  7410. {
  7411. _target->DefineNormal (normal);
  7412. }
  7413. DllExport void
  7414. CustomGeometry_DefineColor (Urho3D::CustomGeometry *_target, const class Urho3D::Color & color)
  7415. {
  7416. _target->DefineColor (color);
  7417. }
  7418. DllExport void
  7419. CustomGeometry_DefineTexCoord (Urho3D::CustomGeometry *_target, const class Urho3D::Vector2 & texCoord)
  7420. {
  7421. _target->DefineTexCoord (texCoord);
  7422. }
  7423. DllExport void
  7424. CustomGeometry_DefineTangent (Urho3D::CustomGeometry *_target, const class Urho3D::Vector4 & tangent)
  7425. {
  7426. _target->DefineTangent (tangent);
  7427. }
  7428. DllExport void
  7429. CustomGeometry_DefineGeometry (Urho3D::CustomGeometry *_target, unsigned int index, enum Urho3D::PrimitiveType type, unsigned int numVertices, bool hasNormals, bool hasColors, bool hasTexCoords, bool hasTangents)
  7430. {
  7431. _target->DefineGeometry (index, type, numVertices, hasNormals, hasColors, hasTexCoords, hasTangents);
  7432. }
  7433. DllExport void
  7434. CustomGeometry_Commit (Urho3D::CustomGeometry *_target)
  7435. {
  7436. _target->Commit ();
  7437. }
  7438. DllExport void
  7439. CustomGeometry_SetMaterial (Urho3D::CustomGeometry *_target, Urho3D::Material * material)
  7440. {
  7441. _target->SetMaterial (material);
  7442. }
  7443. DllExport int
  7444. CustomGeometry_SetMaterial0 (Urho3D::CustomGeometry *_target, unsigned int index, Urho3D::Material * material)
  7445. {
  7446. return _target->SetMaterial (index, material);
  7447. }
  7448. DllExport unsigned int
  7449. CustomGeometry_GetNumGeometries (Urho3D::CustomGeometry *_target)
  7450. {
  7451. return _target->GetNumGeometries ();
  7452. }
  7453. DllExport unsigned int
  7454. CustomGeometry_GetNumVertices (Urho3D::CustomGeometry *_target, unsigned int index)
  7455. {
  7456. return _target->GetNumVertices (index);
  7457. }
  7458. DllExport int
  7459. CustomGeometry_IsDynamic (Urho3D::CustomGeometry *_target)
  7460. {
  7461. return _target->IsDynamic ();
  7462. }
  7463. DllExport Urho3D::Material *
  7464. CustomGeometry_GetMaterial (Urho3D::CustomGeometry *_target, unsigned int index)
  7465. {
  7466. return _target->GetMaterial (index);
  7467. }
  7468. DllExport Urho3D::CustomGeometryVertex *
  7469. CustomGeometry_GetVertex (Urho3D::CustomGeometry *_target, unsigned int geometryIndex, unsigned int vertexNum)
  7470. {
  7471. return _target->GetVertex (geometryIndex, vertexNum);
  7472. }
  7473. DllExport int
  7474. DebugRenderer_GetType (Urho3D::DebugRenderer *_target)
  7475. {
  7476. return (_target->GetType ()).Value ();
  7477. }
  7478. DllExport const char *
  7479. DebugRenderer_GetTypeName (Urho3D::DebugRenderer *_target)
  7480. {
  7481. return stringdup((_target->GetTypeName ()).CString ());
  7482. }
  7483. DllExport int
  7484. DebugRenderer_GetTypeStatic ()
  7485. {
  7486. return (DebugRenderer::GetTypeStatic ()).Value ();
  7487. }
  7488. DllExport const char *
  7489. DebugRenderer_GetTypeNameStatic ()
  7490. {
  7491. return stringdup((DebugRenderer::GetTypeNameStatic ()).CString ());
  7492. }
  7493. DllExport void *
  7494. DebugRenderer_DebugRenderer (Urho3D::Context * context)
  7495. {
  7496. return WeakPtr<DebugRenderer>(new DebugRenderer(context));
  7497. }
  7498. DllExport void
  7499. DebugRenderer_RegisterObject (Urho3D::Context * context)
  7500. {
  7501. DebugRenderer::RegisterObject (context);
  7502. }
  7503. DllExport void
  7504. DebugRenderer_SetLineAntiAlias (Urho3D::DebugRenderer *_target, bool enable)
  7505. {
  7506. _target->SetLineAntiAlias (enable);
  7507. }
  7508. DllExport void
  7509. DebugRenderer_SetView (Urho3D::DebugRenderer *_target, Urho3D::Camera * camera)
  7510. {
  7511. _target->SetView (camera);
  7512. }
  7513. DllExport void
  7514. DebugRenderer_AddLine (Urho3D::DebugRenderer *_target, const class Urho3D::Vector3 & start, const class Urho3D::Vector3 & end, const class Urho3D::Color & color, bool depthTest)
  7515. {
  7516. _target->AddLine (start, end, color, depthTest);
  7517. }
  7518. DllExport void
  7519. DebugRenderer_AddLine0 (Urho3D::DebugRenderer *_target, const class Urho3D::Vector3 & start, const class Urho3D::Vector3 & end, unsigned int color, bool depthTest)
  7520. {
  7521. _target->AddLine (start, end, color, depthTest);
  7522. }
  7523. DllExport void
  7524. DebugRenderer_AddTriangle (Urho3D::DebugRenderer *_target, const class Urho3D::Vector3 & v1, const class Urho3D::Vector3 & v2, const class Urho3D::Vector3 & v3, const class Urho3D::Color & color, bool depthTest)
  7525. {
  7526. _target->AddTriangle (v1, v2, v3, color, depthTest);
  7527. }
  7528. DllExport void
  7529. DebugRenderer_AddTriangle1 (Urho3D::DebugRenderer *_target, const class Urho3D::Vector3 & v1, const class Urho3D::Vector3 & v2, const class Urho3D::Vector3 & v3, unsigned int color, bool depthTest)
  7530. {
  7531. _target->AddTriangle (v1, v2, v3, color, depthTest);
  7532. }
  7533. DllExport void
  7534. DebugRenderer_AddNode (Urho3D::DebugRenderer *_target, Urho3D::Node * node, float scale, bool depthTest)
  7535. {
  7536. _target->AddNode (node, scale, depthTest);
  7537. }
  7538. DllExport void
  7539. DebugRenderer_AddBoundingBox (Urho3D::DebugRenderer *_target, const class Urho3D::BoundingBox & box, const class Urho3D::Color & color, bool depthTest)
  7540. {
  7541. _target->AddBoundingBox (box, color, depthTest);
  7542. }
  7543. DllExport void
  7544. DebugRenderer_AddBoundingBox2 (Urho3D::DebugRenderer *_target, const class Urho3D::BoundingBox & box, const class Urho3D::Matrix3x4 & transform, const class Urho3D::Color & color, bool depthTest)
  7545. {
  7546. _target->AddBoundingBox (box, transform, color, depthTest);
  7547. }
  7548. DllExport void
  7549. DebugRenderer_AddCylinder (Urho3D::DebugRenderer *_target, const class Urho3D::Vector3 & position, float radius, float height, const class Urho3D::Color & color, bool depthTest)
  7550. {
  7551. _target->AddCylinder (position, radius, height, color, depthTest);
  7552. }
  7553. DllExport void
  7554. DebugRenderer_AddTriangleMesh (Urho3D::DebugRenderer *_target, const void * vertexData, unsigned int vertexSize, const void * indexData, unsigned int indexSize, unsigned int indexStart, unsigned int indexCount, const class Urho3D::Matrix3x4 & transform, const class Urho3D::Color & color, bool depthTest)
  7555. {
  7556. _target->AddTriangleMesh (vertexData, vertexSize, indexData, indexSize, indexStart, indexCount, transform, color, depthTest);
  7557. }
  7558. DllExport void
  7559. DebugRenderer_AddCircle (Urho3D::DebugRenderer *_target, const class Urho3D::Vector3 & center, const class Urho3D::Vector3 & normal, float radius, const class Urho3D::Color & color, int steps, bool depthTest)
  7560. {
  7561. _target->AddCircle (center, normal, radius, color, steps, depthTest);
  7562. }
  7563. DllExport void
  7564. DebugRenderer_AddCross (Urho3D::DebugRenderer *_target, const class Urho3D::Vector3 & center, float size, const class Urho3D::Color & color, bool depthTest)
  7565. {
  7566. _target->AddCross (center, size, color, depthTest);
  7567. }
  7568. DllExport void
  7569. DebugRenderer_AddQuad (Urho3D::DebugRenderer *_target, const class Urho3D::Vector3 & center, float width, float height, const class Urho3D::Color & color, bool depthTest)
  7570. {
  7571. _target->AddQuad (center, width, height, color, depthTest);
  7572. }
  7573. DllExport void
  7574. DebugRenderer_Render (Urho3D::DebugRenderer *_target)
  7575. {
  7576. _target->Render ();
  7577. }
  7578. DllExport int
  7579. DebugRenderer_GetLineAntiAlias (Urho3D::DebugRenderer *_target)
  7580. {
  7581. return _target->GetLineAntiAlias ();
  7582. }
  7583. DllExport Interop::Matrix3x4
  7584. DebugRenderer_GetView (Urho3D::DebugRenderer *_target)
  7585. {
  7586. return *((Interop::Matrix3x4 *) &(_target->GetView ()));
  7587. }
  7588. DllExport Interop::Matrix4
  7589. DebugRenderer_GetProjection (Urho3D::DebugRenderer *_target)
  7590. {
  7591. return *((Interop::Matrix4 *) &(_target->GetProjection ()));
  7592. }
  7593. DllExport int
  7594. DebugRenderer_IsInside (Urho3D::DebugRenderer *_target, const class Urho3D::BoundingBox & box)
  7595. {
  7596. return _target->IsInside (box);
  7597. }
  7598. DllExport int
  7599. DebugRenderer_HasContent (Urho3D::DebugRenderer *_target)
  7600. {
  7601. return _target->HasContent ();
  7602. }
  7603. DllExport int
  7604. DecalSet_GetType (Urho3D::DecalSet *_target)
  7605. {
  7606. return (_target->GetType ()).Value ();
  7607. }
  7608. DllExport const char *
  7609. DecalSet_GetTypeName (Urho3D::DecalSet *_target)
  7610. {
  7611. return stringdup((_target->GetTypeName ()).CString ());
  7612. }
  7613. DllExport int
  7614. DecalSet_GetTypeStatic ()
  7615. {
  7616. return (DecalSet::GetTypeStatic ()).Value ();
  7617. }
  7618. DllExport const char *
  7619. DecalSet_GetTypeNameStatic ()
  7620. {
  7621. return stringdup((DecalSet::GetTypeNameStatic ()).CString ());
  7622. }
  7623. DllExport void *
  7624. DecalSet_DecalSet (Urho3D::Context * context)
  7625. {
  7626. return WeakPtr<DecalSet>(new DecalSet(context));
  7627. }
  7628. DllExport void
  7629. DecalSet_RegisterObject (Urho3D::Context * context)
  7630. {
  7631. DecalSet::RegisterObject (context);
  7632. }
  7633. DllExport void
  7634. DecalSet_ApplyAttributes (Urho3D::DecalSet *_target)
  7635. {
  7636. _target->ApplyAttributes ();
  7637. }
  7638. DllExport void
  7639. DecalSet_OnSetEnabled (Urho3D::DecalSet *_target)
  7640. {
  7641. _target->OnSetEnabled ();
  7642. }
  7643. DllExport enum Urho3D::UpdateGeometryType
  7644. DecalSet_GetUpdateGeometryType (Urho3D::DecalSet *_target)
  7645. {
  7646. return _target->GetUpdateGeometryType ();
  7647. }
  7648. DllExport void
  7649. DecalSet_SetMaterial (Urho3D::DecalSet *_target, Urho3D::Material * material)
  7650. {
  7651. _target->SetMaterial (material);
  7652. }
  7653. DllExport void
  7654. DecalSet_SetMaxVertices (Urho3D::DecalSet *_target, unsigned int num)
  7655. {
  7656. _target->SetMaxVertices (num);
  7657. }
  7658. DllExport void
  7659. DecalSet_SetMaxIndices (Urho3D::DecalSet *_target, unsigned int num)
  7660. {
  7661. _target->SetMaxIndices (num);
  7662. }
  7663. DllExport void
  7664. DecalSet_SetOptimizeBufferSize (Urho3D::DecalSet *_target, bool enable)
  7665. {
  7666. _target->SetOptimizeBufferSize (enable);
  7667. }
  7668. DllExport int
  7669. DecalSet_AddDecal (Urho3D::DecalSet *_target, Urho3D::Drawable * target, const class Urho3D::Vector3 & worldPosition, const class Urho3D::Quaternion & worldRotation, float size, float aspectRatio, float depth, const class Urho3D::Vector2 & topLeftUV, const class Urho3D::Vector2 & bottomRightUV, float timeToLive, float normalCutoff, unsigned int subGeometry)
  7670. {
  7671. return _target->AddDecal (target, worldPosition, worldRotation, size, aspectRatio, depth, topLeftUV, bottomRightUV, timeToLive, normalCutoff, subGeometry);
  7672. }
  7673. DllExport void
  7674. DecalSet_RemoveDecals (Urho3D::DecalSet *_target, unsigned int num)
  7675. {
  7676. _target->RemoveDecals (num);
  7677. }
  7678. DllExport void
  7679. DecalSet_RemoveAllDecals (Urho3D::DecalSet *_target)
  7680. {
  7681. _target->RemoveAllDecals ();
  7682. }
  7683. DllExport Urho3D::Material *
  7684. DecalSet_GetMaterial (Urho3D::DecalSet *_target)
  7685. {
  7686. return _target->GetMaterial ();
  7687. }
  7688. DllExport unsigned int
  7689. DecalSet_GetNumDecals (Urho3D::DecalSet *_target)
  7690. {
  7691. return _target->GetNumDecals ();
  7692. }
  7693. DllExport unsigned int
  7694. DecalSet_GetNumVertices (Urho3D::DecalSet *_target)
  7695. {
  7696. return _target->GetNumVertices ();
  7697. }
  7698. DllExport unsigned int
  7699. DecalSet_GetNumIndices (Urho3D::DecalSet *_target)
  7700. {
  7701. return _target->GetNumIndices ();
  7702. }
  7703. DllExport unsigned int
  7704. DecalSet_GetMaxVertices (Urho3D::DecalSet *_target)
  7705. {
  7706. return _target->GetMaxVertices ();
  7707. }
  7708. DllExport unsigned int
  7709. DecalSet_GetMaxIndices (Urho3D::DecalSet *_target)
  7710. {
  7711. return _target->GetMaxIndices ();
  7712. }
  7713. DllExport int
  7714. DecalSet_GetOptimizeBufferSize (Urho3D::DecalSet *_target)
  7715. {
  7716. return _target->GetOptimizeBufferSize ();
  7717. }
  7718. DllExport Urho3D::ResourceRef
  7719. DecalSet_GetMaterialAttr (Urho3D::DecalSet *_target)
  7720. {
  7721. return _target->GetMaterialAttr ();
  7722. }
  7723. DllExport int
  7724. Geometry_GetType (Urho3D::Geometry *_target)
  7725. {
  7726. return (_target->GetType ()).Value ();
  7727. }
  7728. DllExport const char *
  7729. Geometry_GetTypeName (Urho3D::Geometry *_target)
  7730. {
  7731. return stringdup((_target->GetTypeName ()).CString ());
  7732. }
  7733. DllExport int
  7734. Geometry_GetTypeStatic ()
  7735. {
  7736. return (Geometry::GetTypeStatic ()).Value ();
  7737. }
  7738. DllExport const char *
  7739. Geometry_GetTypeNameStatic ()
  7740. {
  7741. return stringdup((Geometry::GetTypeNameStatic ()).CString ());
  7742. }
  7743. DllExport void *
  7744. Geometry_Geometry (Urho3D::Context * context)
  7745. {
  7746. return WeakPtr<Geometry>(new Geometry(context));
  7747. }
  7748. DllExport int
  7749. Geometry_SetNumVertexBuffers (Urho3D::Geometry *_target, unsigned int num)
  7750. {
  7751. return _target->SetNumVertexBuffers (num);
  7752. }
  7753. DllExport int
  7754. Geometry_SetVertexBuffer (Urho3D::Geometry *_target, unsigned int index, Urho3D::VertexBuffer * buffer)
  7755. {
  7756. return _target->SetVertexBuffer (index, buffer);
  7757. }
  7758. DllExport void
  7759. Geometry_SetIndexBuffer (Urho3D::Geometry *_target, Urho3D::IndexBuffer * buffer)
  7760. {
  7761. _target->SetIndexBuffer (buffer);
  7762. }
  7763. DllExport int
  7764. Geometry_SetDrawRange (Urho3D::Geometry *_target, enum Urho3D::PrimitiveType type, unsigned int indexStart, unsigned int indexCount, bool getUsedVertexRange)
  7765. {
  7766. return _target->SetDrawRange (type, indexStart, indexCount, getUsedVertexRange);
  7767. }
  7768. DllExport int
  7769. Geometry_SetDrawRange0 (Urho3D::Geometry *_target, enum Urho3D::PrimitiveType type, unsigned int indexStart, unsigned int indexCount, unsigned int vertexStart, unsigned int vertexCount, bool checkIllegal)
  7770. {
  7771. return _target->SetDrawRange (type, indexStart, indexCount, vertexStart, vertexCount, checkIllegal);
  7772. }
  7773. DllExport void
  7774. Geometry_SetLodDistance (Urho3D::Geometry *_target, float distance)
  7775. {
  7776. _target->SetLodDistance (distance);
  7777. }
  7778. DllExport void
  7779. Geometry_Draw (Urho3D::Geometry *_target, Urho3D::Graphics * graphics)
  7780. {
  7781. _target->Draw (graphics);
  7782. }
  7783. DllExport const Vector<SharedPtr<class Urho3D::VertexBuffer> > &
  7784. Geometry_GetVertexBuffers (Urho3D::Geometry *_target)
  7785. {
  7786. return _target->GetVertexBuffers ();
  7787. }
  7788. DllExport unsigned int
  7789. Geometry_GetNumVertexBuffers (Urho3D::Geometry *_target)
  7790. {
  7791. return _target->GetNumVertexBuffers ();
  7792. }
  7793. DllExport Urho3D::VertexBuffer *
  7794. Geometry_GetVertexBuffer (Urho3D::Geometry *_target, unsigned int index)
  7795. {
  7796. return _target->GetVertexBuffer (index);
  7797. }
  7798. DllExport Urho3D::IndexBuffer *
  7799. Geometry_GetIndexBuffer (Urho3D::Geometry *_target)
  7800. {
  7801. return _target->GetIndexBuffer ();
  7802. }
  7803. DllExport enum Urho3D::PrimitiveType
  7804. Geometry_GetPrimitiveType (Urho3D::Geometry *_target)
  7805. {
  7806. return _target->GetPrimitiveType ();
  7807. }
  7808. DllExport unsigned int
  7809. Geometry_GetIndexStart (Urho3D::Geometry *_target)
  7810. {
  7811. return _target->GetIndexStart ();
  7812. }
  7813. DllExport unsigned int
  7814. Geometry_GetIndexCount (Urho3D::Geometry *_target)
  7815. {
  7816. return _target->GetIndexCount ();
  7817. }
  7818. DllExport unsigned int
  7819. Geometry_GetVertexStart (Urho3D::Geometry *_target)
  7820. {
  7821. return _target->GetVertexStart ();
  7822. }
  7823. DllExport unsigned int
  7824. Geometry_GetVertexCount (Urho3D::Geometry *_target)
  7825. {
  7826. return _target->GetVertexCount ();
  7827. }
  7828. DllExport float
  7829. Geometry_GetLodDistance (Urho3D::Geometry *_target)
  7830. {
  7831. return _target->GetLodDistance ();
  7832. }
  7833. DllExport unsigned short
  7834. Geometry_GetBufferHash (Urho3D::Geometry *_target)
  7835. {
  7836. return _target->GetBufferHash ();
  7837. }
  7838. DllExport float
  7839. Geometry_GetHitDistance (Urho3D::Geometry *_target, const class Urho3D::Ray & ray, Urho3D::Vector3 * outNormal, Urho3D::Vector2 * outUV)
  7840. {
  7841. return _target->GetHitDistance (ray, outNormal, outUV);
  7842. }
  7843. DllExport int
  7844. Geometry_IsInside (Urho3D::Geometry *_target, const class Urho3D::Ray & ray)
  7845. {
  7846. return _target->IsInside (ray);
  7847. }
  7848. DllExport int
  7849. Geometry_IsEmpty (Urho3D::Geometry *_target)
  7850. {
  7851. return _target->IsEmpty ();
  7852. }
  7853. DllExport void *
  7854. ShaderVariation_ShaderVariation (Urho3D::Shader * owner, enum Urho3D::ShaderType type)
  7855. {
  7856. return WeakPtr<ShaderVariation>(new ShaderVariation(owner, type));
  7857. }
  7858. DllExport void
  7859. ShaderVariation_Release (Urho3D::ShaderVariation *_target)
  7860. {
  7861. _target->Release ();
  7862. }
  7863. DllExport int
  7864. ShaderVariation_Create (Urho3D::ShaderVariation *_target)
  7865. {
  7866. return _target->Create ();
  7867. }
  7868. DllExport void
  7869. ShaderVariation_SetName (Urho3D::ShaderVariation *_target, const char * name)
  7870. {
  7871. _target->SetName (Urho3D::String(name));
  7872. }
  7873. DllExport void
  7874. ShaderVariation_SetDefines (Urho3D::ShaderVariation *_target, const char * defines)
  7875. {
  7876. _target->SetDefines (Urho3D::String(defines));
  7877. }
  7878. DllExport Urho3D::Shader *
  7879. ShaderVariation_GetOwner (Urho3D::ShaderVariation *_target)
  7880. {
  7881. return _target->GetOwner ();
  7882. }
  7883. DllExport enum Urho3D::ShaderType
  7884. ShaderVariation_GetShaderType (Urho3D::ShaderVariation *_target)
  7885. {
  7886. return _target->GetShaderType ();
  7887. }
  7888. DllExport const char *
  7889. ShaderVariation_GetName (Urho3D::ShaderVariation *_target)
  7890. {
  7891. return stringdup((_target->GetName ()).CString ());
  7892. }
  7893. DllExport const char *
  7894. ShaderVariation_GetFullName (Urho3D::ShaderVariation *_target)
  7895. {
  7896. return stringdup((_target->GetFullName ()).CString ());
  7897. }
  7898. DllExport int
  7899. ShaderVariation_HasParameter (Urho3D::ShaderVariation *_target, int param)
  7900. {
  7901. return _target->HasParameter (Urho3D::StringHash(param));
  7902. }
  7903. DllExport int
  7904. ShaderVariation_HasTextureUnit (Urho3D::ShaderVariation *_target, enum Urho3D::TextureUnit unit)
  7905. {
  7906. return _target->HasTextureUnit (unit);
  7907. }
  7908. DllExport unsigned long long
  7909. ShaderVariation_GetElementHash (Urho3D::ShaderVariation *_target)
  7910. {
  7911. return _target->GetElementHash ();
  7912. }
  7913. DllExport const char *
  7914. ShaderVariation_GetDefines (Urho3D::ShaderVariation *_target)
  7915. {
  7916. return stringdup((_target->GetDefines ()).CString ());
  7917. }
  7918. DllExport const char *
  7919. ShaderVariation_GetCompilerOutput (Urho3D::ShaderVariation *_target)
  7920. {
  7921. return stringdup((_target->GetCompilerOutput ()).CString ());
  7922. }
  7923. DllExport const unsigned int *
  7924. ShaderVariation_GetConstantBufferSizes (Urho3D::ShaderVariation *_target)
  7925. {
  7926. return _target->GetConstantBufferSizes ();
  7927. }
  7928. DllExport const char *
  7929. ShaderVariation_GetDefinesClipPlane (Urho3D::ShaderVariation *_target)
  7930. {
  7931. return stringdup((_target->GetDefinesClipPlane ()).CString ());
  7932. }
  7933. DllExport int
  7934. Image_GetType (Urho3D::Image *_target)
  7935. {
  7936. return (_target->GetType ()).Value ();
  7937. }
  7938. DllExport const char *
  7939. Image_GetTypeName (Urho3D::Image *_target)
  7940. {
  7941. return stringdup((_target->GetTypeName ()).CString ());
  7942. }
  7943. DllExport int
  7944. Image_GetTypeStatic ()
  7945. {
  7946. return (Image::GetTypeStatic ()).Value ();
  7947. }
  7948. DllExport const char *
  7949. Image_GetTypeNameStatic ()
  7950. {
  7951. return stringdup((Image::GetTypeNameStatic ()).CString ());
  7952. }
  7953. DllExport void *
  7954. Image_Image (Urho3D::Context * context)
  7955. {
  7956. return WeakPtr<Image>(new Image(context));
  7957. }
  7958. DllExport void
  7959. Image_RegisterObject (Urho3D::Context * context)
  7960. {
  7961. Image::RegisterObject (context);
  7962. }
  7963. DllExport int
  7964. Image_BeginLoad_File (Urho3D::Image *_target, File * source)
  7965. {
  7966. return _target->BeginLoad (*source);
  7967. }
  7968. DllExport int
  7969. Image_BeginLoad_MemoryBuffer (Urho3D::Image *_target, MemoryBuffer * source)
  7970. {
  7971. return _target->BeginLoad (*source);
  7972. }
  7973. DllExport int
  7974. Image_Save_File (Urho3D::Image *_target, File * dest)
  7975. {
  7976. return _target->Save (*dest);
  7977. }
  7978. DllExport int
  7979. Image_Save_MemoryBuffer (Urho3D::Image *_target, MemoryBuffer * dest)
  7980. {
  7981. return _target->Save (*dest);
  7982. }
  7983. DllExport int
  7984. Image_Save0 (Urho3D::Image *_target, const char * fileName)
  7985. {
  7986. return _target->Save (Urho3D::String(fileName));
  7987. }
  7988. DllExport int
  7989. Image_SetSize (Urho3D::Image *_target, int width, int height, unsigned int components)
  7990. {
  7991. return _target->SetSize (width, height, components);
  7992. }
  7993. DllExport int
  7994. Image_SetSize1 (Urho3D::Image *_target, int width, int height, int depth, unsigned int components)
  7995. {
  7996. return _target->SetSize (width, height, depth, components);
  7997. }
  7998. DllExport void
  7999. Image_SetData (Urho3D::Image *_target, const unsigned char * pixelData)
  8000. {
  8001. _target->SetData (pixelData);
  8002. }
  8003. DllExport void
  8004. Image_SetPixel (Urho3D::Image *_target, int x, int y, const class Urho3D::Color & color)
  8005. {
  8006. _target->SetPixel (x, y, color);
  8007. }
  8008. DllExport void
  8009. Image_SetPixel2 (Urho3D::Image *_target, int x, int y, int z, const class Urho3D::Color & color)
  8010. {
  8011. _target->SetPixel (x, y, z, color);
  8012. }
  8013. DllExport void
  8014. Image_SetPixelInt (Urho3D::Image *_target, int x, int y, unsigned int uintColor)
  8015. {
  8016. _target->SetPixelInt (x, y, uintColor);
  8017. }
  8018. DllExport void
  8019. Image_SetPixelInt3 (Urho3D::Image *_target, int x, int y, int z, unsigned int uintColor)
  8020. {
  8021. _target->SetPixelInt (x, y, z, uintColor);
  8022. }
  8023. DllExport int
  8024. Image_LoadColorLUT_File (Urho3D::Image *_target, File * source)
  8025. {
  8026. return _target->LoadColorLUT (*source);
  8027. }
  8028. DllExport int
  8029. Image_LoadColorLUT_MemoryBuffer (Urho3D::Image *_target, MemoryBuffer * source)
  8030. {
  8031. return _target->LoadColorLUT (*source);
  8032. }
  8033. DllExport int
  8034. Image_FlipHorizontal (Urho3D::Image *_target)
  8035. {
  8036. return _target->FlipHorizontal ();
  8037. }
  8038. DllExport int
  8039. Image_FlipVertical (Urho3D::Image *_target)
  8040. {
  8041. return _target->FlipVertical ();
  8042. }
  8043. DllExport int
  8044. Image_Resize (Urho3D::Image *_target, int width, int height)
  8045. {
  8046. return _target->Resize (width, height);
  8047. }
  8048. DllExport void
  8049. Image_Clear (Urho3D::Image *_target, const class Urho3D::Color & color)
  8050. {
  8051. _target->Clear (color);
  8052. }
  8053. DllExport void
  8054. Image_ClearInt (Urho3D::Image *_target, unsigned int uintColor)
  8055. {
  8056. _target->ClearInt (uintColor);
  8057. }
  8058. DllExport int
  8059. Image_SaveBMP (Urho3D::Image *_target, const char * fileName)
  8060. {
  8061. return _target->SaveBMP (Urho3D::String(fileName));
  8062. }
  8063. DllExport int
  8064. Image_SavePNG (Urho3D::Image *_target, const char * fileName)
  8065. {
  8066. return _target->SavePNG (Urho3D::String(fileName));
  8067. }
  8068. DllExport int
  8069. Image_SaveTGA (Urho3D::Image *_target, const char * fileName)
  8070. {
  8071. return _target->SaveTGA (Urho3D::String(fileName));
  8072. }
  8073. DllExport int
  8074. Image_SaveJPG (Urho3D::Image *_target, const char * fileName, int quality)
  8075. {
  8076. return _target->SaveJPG (Urho3D::String(fileName), quality);
  8077. }
  8078. DllExport int
  8079. Image_SaveDDS (Urho3D::Image *_target, const char * fileName)
  8080. {
  8081. return _target->SaveDDS (Urho3D::String(fileName));
  8082. }
  8083. DllExport int
  8084. Image_IsCubemap (Urho3D::Image *_target)
  8085. {
  8086. return _target->IsCubemap ();
  8087. }
  8088. DllExport int
  8089. Image_IsArray (Urho3D::Image *_target)
  8090. {
  8091. return _target->IsArray ();
  8092. }
  8093. DllExport int
  8094. Image_IsSRGB (Urho3D::Image *_target)
  8095. {
  8096. return _target->IsSRGB ();
  8097. }
  8098. DllExport Interop::Color
  8099. Image_GetPixel (Urho3D::Image *_target, int x, int y)
  8100. {
  8101. return *((Interop::Color *) &(_target->GetPixel (x, y)));
  8102. }
  8103. DllExport Interop::Color
  8104. Image_GetPixel4 (Urho3D::Image *_target, int x, int y, int z)
  8105. {
  8106. return *((Interop::Color *) &(_target->GetPixel (x, y, z)));
  8107. }
  8108. DllExport unsigned int
  8109. Image_GetPixelInt (Urho3D::Image *_target, int x, int y)
  8110. {
  8111. return _target->GetPixelInt (x, y);
  8112. }
  8113. DllExport unsigned int
  8114. Image_GetPixelInt5 (Urho3D::Image *_target, int x, int y, int z)
  8115. {
  8116. return _target->GetPixelInt (x, y, z);
  8117. }
  8118. DllExport Interop::Color
  8119. Image_GetPixelBilinear (Urho3D::Image *_target, float x, float y)
  8120. {
  8121. return *((Interop::Color *) &(_target->GetPixelBilinear (x, y)));
  8122. }
  8123. DllExport Interop::Color
  8124. Image_GetPixelTrilinear (Urho3D::Image *_target, float x, float y, float z)
  8125. {
  8126. return *((Interop::Color *) &(_target->GetPixelTrilinear (x, y, z)));
  8127. }
  8128. DllExport int
  8129. Image_GetWidth (Urho3D::Image *_target)
  8130. {
  8131. return _target->GetWidth ();
  8132. }
  8133. DllExport int
  8134. Image_GetHeight (Urho3D::Image *_target)
  8135. {
  8136. return _target->GetHeight ();
  8137. }
  8138. DllExport int
  8139. Image_GetDepth (Urho3D::Image *_target)
  8140. {
  8141. return _target->GetDepth ();
  8142. }
  8143. DllExport unsigned int
  8144. Image_GetComponents (Urho3D::Image *_target)
  8145. {
  8146. return _target->GetComponents ();
  8147. }
  8148. DllExport unsigned char *
  8149. Image_GetData (Urho3D::Image *_target)
  8150. {
  8151. return _target->GetData ();
  8152. }
  8153. DllExport int
  8154. Image_IsCompressed (Urho3D::Image *_target)
  8155. {
  8156. return _target->IsCompressed ();
  8157. }
  8158. DllExport enum Urho3D::CompressedFormat
  8159. Image_GetCompressedFormat (Urho3D::Image *_target)
  8160. {
  8161. return _target->GetCompressedFormat ();
  8162. }
  8163. DllExport unsigned int
  8164. Image_GetNumCompressedLevels (Urho3D::Image *_target)
  8165. {
  8166. return _target->GetNumCompressedLevels ();
  8167. }
  8168. DllExport Urho3D::Image *
  8169. Image_GetNextLevel (Urho3D::Image *_target)
  8170. {
  8171. auto copy = _target->GetNextLevel ();
  8172. auto plain = copy.Get();
  8173. copy.Detach();
  8174. delete copy;
  8175. return plain;
  8176. }
  8177. DllExport Urho3D::Image *
  8178. Image_GetNextSibling (Urho3D::Image *_target)
  8179. {
  8180. auto copy = _target->GetNextSibling ();
  8181. auto plain = copy.Get();
  8182. copy.Detach();
  8183. delete copy;
  8184. return plain;
  8185. }
  8186. DllExport Urho3D::Image *
  8187. Image_ConvertToRGBA (Urho3D::Image *_target)
  8188. {
  8189. auto copy = _target->ConvertToRGBA ();
  8190. auto plain = copy.Get();
  8191. copy.Detach();
  8192. delete copy;
  8193. return plain;
  8194. }
  8195. DllExport Urho3D::CompressedLevel
  8196. Image_GetCompressedLevel (Urho3D::Image *_target, unsigned int index)
  8197. {
  8198. return _target->GetCompressedLevel (index);
  8199. }
  8200. DllExport Urho3D::Image *
  8201. Image_GetSubimage (Urho3D::Image *_target, const class Urho3D::IntRect & rect)
  8202. {
  8203. return _target->GetSubimage (rect);
  8204. }
  8205. DllExport void
  8206. Image_PrecalculateLevels (Urho3D::Image *_target)
  8207. {
  8208. _target->PrecalculateLevels ();
  8209. }
  8210. DllExport void
  8211. Image_CleanupLevels (Urho3D::Image *_target)
  8212. {
  8213. _target->CleanupLevels ();
  8214. }
  8215. DllExport int
  8216. Graphics_GetType (Urho3D::Graphics *_target)
  8217. {
  8218. return (_target->GetType ()).Value ();
  8219. }
  8220. DllExport const char *
  8221. Graphics_GetTypeName (Urho3D::Graphics *_target)
  8222. {
  8223. return stringdup((_target->GetTypeName ()).CString ());
  8224. }
  8225. DllExport int
  8226. Graphics_GetTypeStatic ()
  8227. {
  8228. return (Graphics::GetTypeStatic ()).Value ();
  8229. }
  8230. DllExport const char *
  8231. Graphics_GetTypeNameStatic ()
  8232. {
  8233. return stringdup((Graphics::GetTypeNameStatic ()).CString ());
  8234. }
  8235. DllExport void *
  8236. Graphics_Graphics (Urho3D::Context * context)
  8237. {
  8238. return WeakPtr<Graphics>(new Graphics(context));
  8239. }
  8240. DllExport void
  8241. Graphics_SetExternalWindow (Urho3D::Graphics *_target, void * window)
  8242. {
  8243. _target->SetExternalWindow (window);
  8244. }
  8245. DllExport void
  8246. Graphics_SetWindowTitle (Urho3D::Graphics *_target, const char * windowTitle)
  8247. {
  8248. _target->SetWindowTitle (Urho3D::String(windowTitle));
  8249. }
  8250. DllExport void
  8251. Graphics_SetWindowIcon (Urho3D::Graphics *_target, Urho3D::Image * windowIcon)
  8252. {
  8253. _target->SetWindowIcon (windowIcon);
  8254. }
  8255. DllExport void
  8256. Graphics_SetWindowPosition (Urho3D::Graphics *_target, const class Urho3D::IntVector2 & position)
  8257. {
  8258. _target->SetWindowPosition (position);
  8259. }
  8260. DllExport void
  8261. Graphics_SetWindowPosition0 (Urho3D::Graphics *_target, int x, int y)
  8262. {
  8263. _target->SetWindowPosition (x, y);
  8264. }
  8265. DllExport int
  8266. Graphics_SetMode (Urho3D::Graphics *_target, int width, int height, bool fullscreen, bool borderless, bool resizable, bool highDPI, bool vsync, bool tripleBuffer, int multiSample)
  8267. {
  8268. return _target->SetMode (width, height, fullscreen, borderless, resizable, highDPI, vsync, tripleBuffer, multiSample);
  8269. }
  8270. DllExport int
  8271. Graphics_SetMode1 (Urho3D::Graphics *_target, int width, int height)
  8272. {
  8273. return _target->SetMode (width, height);
  8274. }
  8275. DllExport void
  8276. Graphics_SetSRGB (Urho3D::Graphics *_target, bool enable)
  8277. {
  8278. _target->SetSRGB (enable);
  8279. }
  8280. DllExport void
  8281. Graphics_SetDither (Urho3D::Graphics *_target, bool enable)
  8282. {
  8283. _target->SetDither (enable);
  8284. }
  8285. DllExport void
  8286. Graphics_SetFlushGPU (Urho3D::Graphics *_target, bool enable)
  8287. {
  8288. _target->SetFlushGPU (enable);
  8289. }
  8290. DllExport void
  8291. Graphics_SetOrientations (Urho3D::Graphics *_target, const char * orientations)
  8292. {
  8293. _target->SetOrientations (Urho3D::String(orientations));
  8294. }
  8295. DllExport int
  8296. Graphics_ToggleFullscreen (Urho3D::Graphics *_target)
  8297. {
  8298. return _target->ToggleFullscreen ();
  8299. }
  8300. DllExport void
  8301. Graphics_Close (Urho3D::Graphics *_target)
  8302. {
  8303. _target->Close ();
  8304. }
  8305. DllExport int
  8306. Graphics_TakeScreenShot (Urho3D::Graphics *_target, Image * destImage)
  8307. {
  8308. return _target->TakeScreenShot (*destImage);
  8309. }
  8310. DllExport int
  8311. Graphics_BeginFrame (Urho3D::Graphics *_target)
  8312. {
  8313. return _target->BeginFrame ();
  8314. }
  8315. DllExport void
  8316. Graphics_EndFrame (Urho3D::Graphics *_target)
  8317. {
  8318. _target->EndFrame ();
  8319. }
  8320. DllExport void
  8321. Graphics_Clear (Urho3D::Graphics *_target, unsigned int flags, const class Urho3D::Color & color, float depth, unsigned int stencil)
  8322. {
  8323. _target->Clear (flags, color, depth, stencil);
  8324. }
  8325. DllExport int
  8326. Graphics_ResolveToTexture (Urho3D::Graphics *_target, Urho3D::Texture2D * destination, const class Urho3D::IntRect & viewport)
  8327. {
  8328. return _target->ResolveToTexture (destination, viewport);
  8329. }
  8330. DllExport int
  8331. Graphics_ResolveToTexture2 (Urho3D::Graphics *_target, Urho3D::Texture2D * texture)
  8332. {
  8333. return _target->ResolveToTexture (texture);
  8334. }
  8335. DllExport int
  8336. Graphics_ResolveToTexture3 (Urho3D::Graphics *_target, Urho3D::TextureCube * texture)
  8337. {
  8338. return _target->ResolveToTexture (texture);
  8339. }
  8340. DllExport void
  8341. Graphics_Draw (Urho3D::Graphics *_target, enum Urho3D::PrimitiveType type, unsigned int vertexStart, unsigned int vertexCount)
  8342. {
  8343. _target->Draw (type, vertexStart, vertexCount);
  8344. }
  8345. DllExport void
  8346. Graphics_Draw4 (Urho3D::Graphics *_target, enum Urho3D::PrimitiveType type, unsigned int indexStart, unsigned int indexCount, unsigned int minVertex, unsigned int vertexCount)
  8347. {
  8348. _target->Draw (type, indexStart, indexCount, minVertex, vertexCount);
  8349. }
  8350. DllExport void
  8351. Graphics_Draw5 (Urho3D::Graphics *_target, enum Urho3D::PrimitiveType type, unsigned int indexStart, unsigned int indexCount, unsigned int baseVertexIndex, unsigned int minVertex, unsigned int vertexCount)
  8352. {
  8353. _target->Draw (type, indexStart, indexCount, baseVertexIndex, minVertex, vertexCount);
  8354. }
  8355. DllExport void
  8356. Graphics_DrawInstanced (Urho3D::Graphics *_target, enum Urho3D::PrimitiveType type, unsigned int indexStart, unsigned int indexCount, unsigned int minVertex, unsigned int vertexCount, unsigned int instanceCount)
  8357. {
  8358. _target->DrawInstanced (type, indexStart, indexCount, minVertex, vertexCount, instanceCount);
  8359. }
  8360. DllExport void
  8361. Graphics_DrawInstanced6 (Urho3D::Graphics *_target, enum Urho3D::PrimitiveType type, unsigned int indexStart, unsigned int indexCount, unsigned int baseVertexIndex, unsigned int minVertex, unsigned int vertexCount, unsigned int instanceCount)
  8362. {
  8363. _target->DrawInstanced (type, indexStart, indexCount, baseVertexIndex, minVertex, vertexCount, instanceCount);
  8364. }
  8365. DllExport void
  8366. Graphics_SetVertexBuffer (Urho3D::Graphics *_target, Urho3D::VertexBuffer * buffer)
  8367. {
  8368. _target->SetVertexBuffer (buffer);
  8369. }
  8370. DllExport void
  8371. Graphics_SetIndexBuffer (Urho3D::Graphics *_target, Urho3D::IndexBuffer * buffer)
  8372. {
  8373. _target->SetIndexBuffer (buffer);
  8374. }
  8375. DllExport void
  8376. Graphics_SetShaders (Urho3D::Graphics *_target, Urho3D::ShaderVariation * vs, Urho3D::ShaderVariation * ps)
  8377. {
  8378. _target->SetShaders (vs, ps);
  8379. }
  8380. DllExport void
  8381. Graphics_SetShaderParameter (Urho3D::Graphics *_target, int param, const float * data, unsigned int count)
  8382. {
  8383. _target->SetShaderParameter (Urho3D::StringHash(param), data, count);
  8384. }
  8385. DllExport void
  8386. Graphics_SetShaderParameter7 (Urho3D::Graphics *_target, int param, float value)
  8387. {
  8388. _target->SetShaderParameter (Urho3D::StringHash(param), value);
  8389. }
  8390. DllExport void
  8391. Graphics_SetShaderParameter8 (Urho3D::Graphics *_target, int param, int value)
  8392. {
  8393. _target->SetShaderParameter (Urho3D::StringHash(param), value);
  8394. }
  8395. DllExport void
  8396. Graphics_SetShaderParameter9 (Urho3D::Graphics *_target, int param, bool value)
  8397. {
  8398. _target->SetShaderParameter (Urho3D::StringHash(param), value);
  8399. }
  8400. DllExport void
  8401. Graphics_SetShaderParameter10 (Urho3D::Graphics *_target, int param, const class Urho3D::Color & color)
  8402. {
  8403. _target->SetShaderParameter (Urho3D::StringHash(param), color);
  8404. }
  8405. DllExport void
  8406. Graphics_SetShaderParameter11 (Urho3D::Graphics *_target, int param, const class Urho3D::Vector2 & vector)
  8407. {
  8408. _target->SetShaderParameter (Urho3D::StringHash(param), vector);
  8409. }
  8410. DllExport void
  8411. Graphics_SetShaderParameter12 (Urho3D::Graphics *_target, int param, const class Urho3D::Vector3 & vector)
  8412. {
  8413. _target->SetShaderParameter (Urho3D::StringHash(param), vector);
  8414. }
  8415. DllExport void
  8416. Graphics_SetShaderParameter13 (Urho3D::Graphics *_target, int param, const class Urho3D::Matrix4 & matrix)
  8417. {
  8418. _target->SetShaderParameter (Urho3D::StringHash(param), matrix);
  8419. }
  8420. DllExport void
  8421. Graphics_SetShaderParameter14 (Urho3D::Graphics *_target, int param, const class Urho3D::Vector4 & vector)
  8422. {
  8423. _target->SetShaderParameter (Urho3D::StringHash(param), vector);
  8424. }
  8425. DllExport void
  8426. Graphics_SetShaderParameter15 (Urho3D::Graphics *_target, int param, const class Urho3D::Matrix3x4 & matrix)
  8427. {
  8428. _target->SetShaderParameter (Urho3D::StringHash(param), matrix);
  8429. }
  8430. DllExport int
  8431. Graphics_NeedParameterUpdate (Urho3D::Graphics *_target, enum Urho3D::ShaderParameterGroup group, const void * source)
  8432. {
  8433. return _target->NeedParameterUpdate (group, source);
  8434. }
  8435. DllExport int
  8436. Graphics_HasShaderParameter (Urho3D::Graphics *_target, int param)
  8437. {
  8438. return _target->HasShaderParameter (Urho3D::StringHash(param));
  8439. }
  8440. DllExport int
  8441. Graphics_HasTextureUnit (Urho3D::Graphics *_target, enum Urho3D::TextureUnit unit)
  8442. {
  8443. return _target->HasTextureUnit (unit);
  8444. }
  8445. DllExport void
  8446. Graphics_ClearParameterSource (Urho3D::Graphics *_target, enum Urho3D::ShaderParameterGroup group)
  8447. {
  8448. _target->ClearParameterSource (group);
  8449. }
  8450. DllExport void
  8451. Graphics_ClearParameterSources (Urho3D::Graphics *_target)
  8452. {
  8453. _target->ClearParameterSources ();
  8454. }
  8455. DllExport void
  8456. Graphics_ClearTransformSources (Urho3D::Graphics *_target)
  8457. {
  8458. _target->ClearTransformSources ();
  8459. }
  8460. DllExport void
  8461. Graphics_SetTexture (Urho3D::Graphics *_target, unsigned int index, Urho3D::Texture * texture)
  8462. {
  8463. _target->SetTexture (index, texture);
  8464. }
  8465. DllExport void
  8466. Graphics_SetTextureParametersDirty (Urho3D::Graphics *_target)
  8467. {
  8468. _target->SetTextureParametersDirty ();
  8469. }
  8470. DllExport void
  8471. Graphics_SetDefaultTextureFilterMode (Urho3D::Graphics *_target, enum Urho3D::TextureFilterMode mode)
  8472. {
  8473. _target->SetDefaultTextureFilterMode (mode);
  8474. }
  8475. DllExport void
  8476. Graphics_SetDefaultTextureAnisotropy (Urho3D::Graphics *_target, unsigned int level)
  8477. {
  8478. _target->SetDefaultTextureAnisotropy (level);
  8479. }
  8480. DllExport void
  8481. Graphics_ResetRenderTargets (Urho3D::Graphics *_target)
  8482. {
  8483. _target->ResetRenderTargets ();
  8484. }
  8485. DllExport void
  8486. Graphics_ResetRenderTarget (Urho3D::Graphics *_target, unsigned int index)
  8487. {
  8488. _target->ResetRenderTarget (index);
  8489. }
  8490. DllExport void
  8491. Graphics_ResetDepthStencil (Urho3D::Graphics *_target)
  8492. {
  8493. _target->ResetDepthStencil ();
  8494. }
  8495. DllExport void
  8496. Graphics_SetRenderTarget (Urho3D::Graphics *_target, unsigned int index, Urho3D::RenderSurface * renderTarget)
  8497. {
  8498. _target->SetRenderTarget (index, renderTarget);
  8499. }
  8500. DllExport void
  8501. Graphics_SetRenderTarget16 (Urho3D::Graphics *_target, unsigned int index, Urho3D::Texture2D * texture)
  8502. {
  8503. _target->SetRenderTarget (index, texture);
  8504. }
  8505. DllExport void
  8506. Graphics_SetDepthStencil (Urho3D::Graphics *_target, Urho3D::RenderSurface * depthStencil)
  8507. {
  8508. _target->SetDepthStencil (depthStencil);
  8509. }
  8510. DllExport void
  8511. Graphics_SetDepthStencil17 (Urho3D::Graphics *_target, Urho3D::Texture2D * texture)
  8512. {
  8513. _target->SetDepthStencil (texture);
  8514. }
  8515. DllExport void
  8516. Graphics_SetViewport (Urho3D::Graphics *_target, const class Urho3D::IntRect & rect)
  8517. {
  8518. _target->SetViewport (rect);
  8519. }
  8520. DllExport void
  8521. Graphics_SetBlendMode (Urho3D::Graphics *_target, enum Urho3D::BlendMode mode, bool alphaToCoverage)
  8522. {
  8523. _target->SetBlendMode (mode, alphaToCoverage);
  8524. }
  8525. DllExport void
  8526. Graphics_SetColorWrite (Urho3D::Graphics *_target, bool enable)
  8527. {
  8528. _target->SetColorWrite (enable);
  8529. }
  8530. DllExport void
  8531. Graphics_SetCullMode (Urho3D::Graphics *_target, enum Urho3D::CullMode mode)
  8532. {
  8533. _target->SetCullMode (mode);
  8534. }
  8535. DllExport void
  8536. Graphics_SetDepthBias (Urho3D::Graphics *_target, float constantBias, float slopeScaledBias)
  8537. {
  8538. _target->SetDepthBias (constantBias, slopeScaledBias);
  8539. }
  8540. DllExport void
  8541. Graphics_SetDepthTest (Urho3D::Graphics *_target, enum Urho3D::CompareMode mode)
  8542. {
  8543. _target->SetDepthTest (mode);
  8544. }
  8545. DllExport void
  8546. Graphics_SetDepthWrite (Urho3D::Graphics *_target, bool enable)
  8547. {
  8548. _target->SetDepthWrite (enable);
  8549. }
  8550. DllExport void
  8551. Graphics_SetFillMode (Urho3D::Graphics *_target, enum Urho3D::FillMode mode)
  8552. {
  8553. _target->SetFillMode (mode);
  8554. }
  8555. DllExport void
  8556. Graphics_SetStereo (Urho3D::Graphics *_target, bool stereo)
  8557. {
  8558. _target->SetStereo (stereo);
  8559. }
  8560. DllExport void
  8561. Graphics_SetLineAntiAlias (Urho3D::Graphics *_target, bool enable)
  8562. {
  8563. _target->SetLineAntiAlias (enable);
  8564. }
  8565. DllExport void
  8566. Graphics_SetScissorTest (Urho3D::Graphics *_target, bool enable, const class Urho3D::IntRect & rect)
  8567. {
  8568. _target->SetScissorTest (enable, rect);
  8569. }
  8570. DllExport void
  8571. Graphics_SetStencilTest (Urho3D::Graphics *_target, bool enable, enum Urho3D::CompareMode mode, enum Urho3D::StencilOp pass, enum Urho3D::StencilOp fail, enum Urho3D::StencilOp zFail, unsigned int stencilRef, unsigned int compareMask, unsigned int writeMask)
  8572. {
  8573. _target->SetStencilTest (enable, mode, pass, fail, zFail, stencilRef, compareMask, writeMask);
  8574. }
  8575. DllExport void
  8576. Graphics_SetClipPlane (Urho3D::Graphics *_target, bool enable, const class Urho3D::Plane & clipPlane, const class Urho3D::Matrix3x4 & view, const class Urho3D::Matrix4 & projection)
  8577. {
  8578. _target->SetClipPlane (enable, clipPlane, view, projection);
  8579. }
  8580. DllExport void
  8581. Graphics_BeginDumpShaders (Urho3D::Graphics *_target, const char * fileName)
  8582. {
  8583. _target->BeginDumpShaders (Urho3D::String(fileName));
  8584. }
  8585. DllExport void
  8586. Graphics_EndDumpShaders (Urho3D::Graphics *_target)
  8587. {
  8588. _target->EndDumpShaders ();
  8589. }
  8590. DllExport void
  8591. Graphics_PrecacheShaders_File (Urho3D::Graphics *_target, File * source)
  8592. {
  8593. _target->PrecacheShaders (*source);
  8594. }
  8595. DllExport void
  8596. Graphics_PrecacheShaders_MemoryBuffer (Urho3D::Graphics *_target, MemoryBuffer * source)
  8597. {
  8598. _target->PrecacheShaders (*source);
  8599. }
  8600. DllExport void
  8601. Graphics_SetShaderCacheDir (Urho3D::Graphics *_target, const char * path)
  8602. {
  8603. _target->SetShaderCacheDir (Urho3D::String(path));
  8604. }
  8605. DllExport int
  8606. Graphics_IsInitialized (Urho3D::Graphics *_target)
  8607. {
  8608. return _target->IsInitialized ();
  8609. }
  8610. DllExport Urho3D::GraphicsImpl *
  8611. Graphics_GetImpl (Urho3D::Graphics *_target)
  8612. {
  8613. return _target->GetImpl ();
  8614. }
  8615. DllExport void *
  8616. Graphics_GetExternalWindow (Urho3D::Graphics *_target)
  8617. {
  8618. return _target->GetExternalWindow ();
  8619. }
  8620. DllExport const char *
  8621. Graphics_GetWindowTitle (Urho3D::Graphics *_target)
  8622. {
  8623. return stringdup((_target->GetWindowTitle ()).CString ());
  8624. }
  8625. DllExport const char *
  8626. Graphics_GetApiName (Urho3D::Graphics *_target)
  8627. {
  8628. return stringdup((_target->GetApiName ()).CString ());
  8629. }
  8630. DllExport Interop::IntVector2
  8631. Graphics_GetWindowPosition (Urho3D::Graphics *_target)
  8632. {
  8633. return *((Interop::IntVector2 *) &(_target->GetWindowPosition ()));
  8634. }
  8635. DllExport int
  8636. Graphics_GetWidth (Urho3D::Graphics *_target)
  8637. {
  8638. return _target->GetWidth ();
  8639. }
  8640. DllExport int
  8641. Graphics_GetHeight (Urho3D::Graphics *_target)
  8642. {
  8643. return _target->GetHeight ();
  8644. }
  8645. DllExport int
  8646. Graphics_GetMultiSample (Urho3D::Graphics *_target)
  8647. {
  8648. return _target->GetMultiSample ();
  8649. }
  8650. DllExport int
  8651. Graphics_GetFullscreen (Urho3D::Graphics *_target)
  8652. {
  8653. return _target->GetFullscreen ();
  8654. }
  8655. DllExport int
  8656. Graphics_GetBorderless (Urho3D::Graphics *_target)
  8657. {
  8658. return _target->GetBorderless ();
  8659. }
  8660. DllExport int
  8661. Graphics_GetResizable (Urho3D::Graphics *_target)
  8662. {
  8663. return _target->GetResizable ();
  8664. }
  8665. DllExport int
  8666. Graphics_GetHighDPI (Urho3D::Graphics *_target)
  8667. {
  8668. return _target->GetHighDPI ();
  8669. }
  8670. DllExport int
  8671. Graphics_GetVSync (Urho3D::Graphics *_target)
  8672. {
  8673. return _target->GetVSync ();
  8674. }
  8675. DllExport int
  8676. Graphics_GetTripleBuffer (Urho3D::Graphics *_target)
  8677. {
  8678. return _target->GetTripleBuffer ();
  8679. }
  8680. DllExport int
  8681. Graphics_GetSRGB (Urho3D::Graphics *_target)
  8682. {
  8683. return _target->GetSRGB ();
  8684. }
  8685. DllExport int
  8686. Graphics_GetDither (Urho3D::Graphics *_target)
  8687. {
  8688. return _target->GetDither ();
  8689. }
  8690. DllExport int
  8691. Graphics_GetFlushGPU (Urho3D::Graphics *_target)
  8692. {
  8693. return _target->GetFlushGPU ();
  8694. }
  8695. DllExport const char *
  8696. Graphics_GetOrientations (Urho3D::Graphics *_target)
  8697. {
  8698. return stringdup((_target->GetOrientations ()).CString ());
  8699. }
  8700. DllExport int
  8701. Graphics_IsDeviceLost (Urho3D::Graphics *_target)
  8702. {
  8703. return _target->IsDeviceLost ();
  8704. }
  8705. DllExport unsigned int
  8706. Graphics_GetNumPrimitives (Urho3D::Graphics *_target)
  8707. {
  8708. return _target->GetNumPrimitives ();
  8709. }
  8710. DllExport unsigned int
  8711. Graphics_GetNumBatches (Urho3D::Graphics *_target)
  8712. {
  8713. return _target->GetNumBatches ();
  8714. }
  8715. DllExport unsigned int
  8716. Graphics_GetDummyColorFormat (Urho3D::Graphics *_target)
  8717. {
  8718. return _target->GetDummyColorFormat ();
  8719. }
  8720. DllExport unsigned int
  8721. Graphics_GetShadowMapFormat (Urho3D::Graphics *_target)
  8722. {
  8723. return _target->GetShadowMapFormat ();
  8724. }
  8725. DllExport unsigned int
  8726. Graphics_GetHiresShadowMapFormat (Urho3D::Graphics *_target)
  8727. {
  8728. return _target->GetHiresShadowMapFormat ();
  8729. }
  8730. DllExport int
  8731. Graphics_GetInstancingSupport (Urho3D::Graphics *_target)
  8732. {
  8733. return _target->GetInstancingSupport ();
  8734. }
  8735. DllExport int
  8736. Graphics_GetLightPrepassSupport (Urho3D::Graphics *_target)
  8737. {
  8738. return _target->GetLightPrepassSupport ();
  8739. }
  8740. DllExport int
  8741. Graphics_GetDeferredSupport (Urho3D::Graphics *_target)
  8742. {
  8743. return _target->GetDeferredSupport ();
  8744. }
  8745. DllExport int
  8746. Graphics_GetHardwareShadowSupport (Urho3D::Graphics *_target)
  8747. {
  8748. return _target->GetHardwareShadowSupport ();
  8749. }
  8750. DllExport int
  8751. Graphics_GetReadableDepthSupport (Urho3D::Graphics *_target)
  8752. {
  8753. return _target->GetReadableDepthSupport ();
  8754. }
  8755. DllExport int
  8756. Graphics_GetSRGBSupport (Urho3D::Graphics *_target)
  8757. {
  8758. return _target->GetSRGBSupport ();
  8759. }
  8760. DllExport int
  8761. Graphics_GetSRGBWriteSupport (Urho3D::Graphics *_target)
  8762. {
  8763. return _target->GetSRGBWriteSupport ();
  8764. }
  8765. DllExport Interop::IntVector2
  8766. Graphics_GetDesktopResolution (Urho3D::Graphics *_target)
  8767. {
  8768. return *((Interop::IntVector2 *) &(_target->GetDesktopResolution ()));
  8769. }
  8770. DllExport unsigned int
  8771. Graphics_GetFormat (Urho3D::Graphics *_target, enum Urho3D::CompressedFormat format)
  8772. {
  8773. return _target->GetFormat (format);
  8774. }
  8775. DllExport Urho3D::ShaderVariation *
  8776. Graphics_GetShader (Urho3D::Graphics *_target, enum Urho3D::ShaderType type, const char * name, const char * defines)
  8777. {
  8778. return _target->GetShader (type, Urho3D::String(name), Urho3D::String(defines));
  8779. }
  8780. DllExport Urho3D::VertexBuffer *
  8781. Graphics_GetVertexBuffer (Urho3D::Graphics *_target, unsigned int index)
  8782. {
  8783. return _target->GetVertexBuffer (index);
  8784. }
  8785. DllExport Urho3D::IndexBuffer *
  8786. Graphics_GetIndexBuffer (Urho3D::Graphics *_target)
  8787. {
  8788. return _target->GetIndexBuffer ();
  8789. }
  8790. DllExport Urho3D::ShaderVariation *
  8791. Graphics_GetVertexShader (Urho3D::Graphics *_target)
  8792. {
  8793. return _target->GetVertexShader ();
  8794. }
  8795. DllExport Urho3D::ShaderVariation *
  8796. Graphics_GetPixelShader (Urho3D::Graphics *_target)
  8797. {
  8798. return _target->GetPixelShader ();
  8799. }
  8800. DllExport enum Urho3D::TextureUnit
  8801. Graphics_GetTextureUnit (Urho3D::Graphics *_target, const char * name)
  8802. {
  8803. return _target->GetTextureUnit (Urho3D::String(name));
  8804. }
  8805. DllExport const char *
  8806. Graphics_GetTextureUnitName (Urho3D::Graphics *_target, enum Urho3D::TextureUnit unit)
  8807. {
  8808. return stringdup((_target->GetTextureUnitName (unit)).CString ());
  8809. }
  8810. DllExport Urho3D::Texture *
  8811. Graphics_GetTexture (Urho3D::Graphics *_target, unsigned int index)
  8812. {
  8813. return _target->GetTexture (index);
  8814. }
  8815. DllExport enum Urho3D::TextureFilterMode
  8816. Graphics_GetDefaultTextureFilterMode (Urho3D::Graphics *_target)
  8817. {
  8818. return _target->GetDefaultTextureFilterMode ();
  8819. }
  8820. DllExport unsigned int
  8821. Graphics_GetDefaultTextureAnisotropy (Urho3D::Graphics *_target)
  8822. {
  8823. return _target->GetDefaultTextureAnisotropy ();
  8824. }
  8825. DllExport Urho3D::RenderSurface *
  8826. Graphics_GetRenderTarget (Urho3D::Graphics *_target, unsigned int index)
  8827. {
  8828. return _target->GetRenderTarget (index);
  8829. }
  8830. DllExport Urho3D::RenderSurface *
  8831. Graphics_GetDepthStencil (Urho3D::Graphics *_target)
  8832. {
  8833. return _target->GetDepthStencil ();
  8834. }
  8835. DllExport Urho3D::IntRect
  8836. Graphics_GetViewport (Urho3D::Graphics *_target)
  8837. {
  8838. return _target->GetViewport ();
  8839. }
  8840. DllExport enum Urho3D::BlendMode
  8841. Graphics_GetBlendMode (Urho3D::Graphics *_target)
  8842. {
  8843. return _target->GetBlendMode ();
  8844. }
  8845. DllExport int
  8846. Graphics_GetAlphaToCoverage (Urho3D::Graphics *_target)
  8847. {
  8848. return _target->GetAlphaToCoverage ();
  8849. }
  8850. DllExport int
  8851. Graphics_GetColorWrite (Urho3D::Graphics *_target)
  8852. {
  8853. return _target->GetColorWrite ();
  8854. }
  8855. DllExport enum Urho3D::CullMode
  8856. Graphics_GetCullMode (Urho3D::Graphics *_target)
  8857. {
  8858. return _target->GetCullMode ();
  8859. }
  8860. DllExport float
  8861. Graphics_GetDepthConstantBias (Urho3D::Graphics *_target)
  8862. {
  8863. return _target->GetDepthConstantBias ();
  8864. }
  8865. DllExport float
  8866. Graphics_GetDepthSlopeScaledBias (Urho3D::Graphics *_target)
  8867. {
  8868. return _target->GetDepthSlopeScaledBias ();
  8869. }
  8870. DllExport enum Urho3D::CompareMode
  8871. Graphics_GetDepthTest (Urho3D::Graphics *_target)
  8872. {
  8873. return _target->GetDepthTest ();
  8874. }
  8875. DllExport int
  8876. Graphics_GetDepthWrite (Urho3D::Graphics *_target)
  8877. {
  8878. return _target->GetDepthWrite ();
  8879. }
  8880. DllExport enum Urho3D::FillMode
  8881. Graphics_GetFillMode (Urho3D::Graphics *_target)
  8882. {
  8883. return _target->GetFillMode ();
  8884. }
  8885. DllExport int
  8886. Graphics_GetLineAntiAlias (Urho3D::Graphics *_target)
  8887. {
  8888. return _target->GetLineAntiAlias ();
  8889. }
  8890. DllExport int
  8891. Graphics_GetStencilTest (Urho3D::Graphics *_target)
  8892. {
  8893. return _target->GetStencilTest ();
  8894. }
  8895. DllExport int
  8896. Graphics_GetScissorTest (Urho3D::Graphics *_target)
  8897. {
  8898. return _target->GetScissorTest ();
  8899. }
  8900. DllExport const class Urho3D::IntRect &
  8901. Graphics_GetScissorRect (Urho3D::Graphics *_target)
  8902. {
  8903. return _target->GetScissorRect ();
  8904. }
  8905. DllExport enum Urho3D::CompareMode
  8906. Graphics_GetStencilTestMode (Urho3D::Graphics *_target)
  8907. {
  8908. return _target->GetStencilTestMode ();
  8909. }
  8910. DllExport enum Urho3D::StencilOp
  8911. Graphics_GetStencilPass (Urho3D::Graphics *_target)
  8912. {
  8913. return _target->GetStencilPass ();
  8914. }
  8915. DllExport enum Urho3D::StencilOp
  8916. Graphics_GetStencilFail (Urho3D::Graphics *_target)
  8917. {
  8918. return _target->GetStencilFail ();
  8919. }
  8920. DllExport enum Urho3D::StencilOp
  8921. Graphics_GetStencilZFail (Urho3D::Graphics *_target)
  8922. {
  8923. return _target->GetStencilZFail ();
  8924. }
  8925. DllExport unsigned int
  8926. Graphics_GetStencilRef (Urho3D::Graphics *_target)
  8927. {
  8928. return _target->GetStencilRef ();
  8929. }
  8930. DllExport unsigned int
  8931. Graphics_GetStencilCompareMask (Urho3D::Graphics *_target)
  8932. {
  8933. return _target->GetStencilCompareMask ();
  8934. }
  8935. DllExport unsigned int
  8936. Graphics_GetStencilWriteMask (Urho3D::Graphics *_target)
  8937. {
  8938. return _target->GetStencilWriteMask ();
  8939. }
  8940. DllExport int
  8941. Graphics_GetUseClipPlane (Urho3D::Graphics *_target)
  8942. {
  8943. return _target->GetUseClipPlane ();
  8944. }
  8945. DllExport const char *
  8946. Graphics_GetShaderCacheDir (Urho3D::Graphics *_target)
  8947. {
  8948. return stringdup((_target->GetShaderCacheDir ()).CString ());
  8949. }
  8950. DllExport Interop::IntVector2
  8951. Graphics_GetRenderTargetDimensions (Urho3D::Graphics *_target)
  8952. {
  8953. return *((Interop::IntVector2 *) &(_target->GetRenderTargetDimensions ()));
  8954. }
  8955. DllExport void
  8956. Graphics_OnWindowResized (Urho3D::Graphics *_target)
  8957. {
  8958. _target->OnWindowResized ();
  8959. }
  8960. DllExport void
  8961. Graphics_OnWindowMoved (Urho3D::Graphics *_target)
  8962. {
  8963. _target->OnWindowMoved ();
  8964. }
  8965. DllExport void
  8966. Graphics_Maximize (Urho3D::Graphics *_target)
  8967. {
  8968. _target->Maximize ();
  8969. }
  8970. DllExport void
  8971. Graphics_Minimize (Urho3D::Graphics *_target)
  8972. {
  8973. _target->Minimize ();
  8974. }
  8975. DllExport void
  8976. Graphics_AddGPUObject (Urho3D::Graphics *_target, Urho3D::GPUObject * object)
  8977. {
  8978. _target->AddGPUObject (object);
  8979. }
  8980. DllExport void
  8981. Graphics_RemoveGPUObject (Urho3D::Graphics *_target, Urho3D::GPUObject * object)
  8982. {
  8983. _target->RemoveGPUObject (object);
  8984. }
  8985. DllExport void *
  8986. Graphics_ReserveScratchBuffer (Urho3D::Graphics *_target, unsigned int size)
  8987. {
  8988. return _target->ReserveScratchBuffer (size);
  8989. }
  8990. DllExport void
  8991. Graphics_FreeScratchBuffer (Urho3D::Graphics *_target, void * buffer)
  8992. {
  8993. _target->FreeScratchBuffer (buffer);
  8994. }
  8995. DllExport void
  8996. Graphics_CleanupScratchBuffers (Urho3D::Graphics *_target)
  8997. {
  8998. _target->CleanupScratchBuffers ();
  8999. }
  9000. DllExport unsigned int
  9001. Graphics_GetAlphaFormat ()
  9002. {
  9003. return Graphics::GetAlphaFormat ();
  9004. }
  9005. DllExport unsigned int
  9006. Graphics_GetLuminanceFormat ()
  9007. {
  9008. return Graphics::GetLuminanceFormat ();
  9009. }
  9010. DllExport unsigned int
  9011. Graphics_GetLuminanceAlphaFormat ()
  9012. {
  9013. return Graphics::GetLuminanceAlphaFormat ();
  9014. }
  9015. DllExport unsigned int
  9016. Graphics_GetRGBFormat ()
  9017. {
  9018. return Graphics::GetRGBFormat ();
  9019. }
  9020. DllExport unsigned int
  9021. Graphics_GetRGBAFormat ()
  9022. {
  9023. return Graphics::GetRGBAFormat ();
  9024. }
  9025. DllExport unsigned int
  9026. Graphics_GetRGBA16Format ()
  9027. {
  9028. return Graphics::GetRGBA16Format ();
  9029. }
  9030. DllExport unsigned int
  9031. Graphics_GetRGBAFloat16Format ()
  9032. {
  9033. return Graphics::GetRGBAFloat16Format ();
  9034. }
  9035. DllExport unsigned int
  9036. Graphics_GetRGBAFloat32Format ()
  9037. {
  9038. return Graphics::GetRGBAFloat32Format ();
  9039. }
  9040. DllExport unsigned int
  9041. Graphics_GetRG16Format ()
  9042. {
  9043. return Graphics::GetRG16Format ();
  9044. }
  9045. DllExport unsigned int
  9046. Graphics_GetRGFloat16Format ()
  9047. {
  9048. return Graphics::GetRGFloat16Format ();
  9049. }
  9050. DllExport unsigned int
  9051. Graphics_GetRGFloat32Format ()
  9052. {
  9053. return Graphics::GetRGFloat32Format ();
  9054. }
  9055. DllExport unsigned int
  9056. Graphics_GetFloat16Format ()
  9057. {
  9058. return Graphics::GetFloat16Format ();
  9059. }
  9060. DllExport unsigned int
  9061. Graphics_GetFloat32Format ()
  9062. {
  9063. return Graphics::GetFloat32Format ();
  9064. }
  9065. DllExport unsigned int
  9066. Graphics_GetLinearDepthFormat ()
  9067. {
  9068. return Graphics::GetLinearDepthFormat ();
  9069. }
  9070. DllExport unsigned int
  9071. Graphics_GetDepthStencilFormat ()
  9072. {
  9073. return Graphics::GetDepthStencilFormat ();
  9074. }
  9075. DllExport unsigned int
  9076. Graphics_GetReadableDepthFormat ()
  9077. {
  9078. return Graphics::GetReadableDepthFormat ();
  9079. }
  9080. DllExport unsigned int
  9081. Graphics_GetFormat18 (const char * formatName)
  9082. {
  9083. return Graphics::GetFormat (Urho3D::String(formatName));
  9084. }
  9085. DllExport Interop::Vector2
  9086. Graphics_GetPixelUVOffset ()
  9087. {
  9088. return *((Interop::Vector2 *) &(Graphics::GetPixelUVOffset ()));
  9089. }
  9090. DllExport unsigned int
  9091. Graphics_GetMaxBones ()
  9092. {
  9093. return Graphics::GetMaxBones ();
  9094. }
  9095. DllExport void *
  9096. ShaderProgram_ShaderProgram (Urho3D::Graphics * graphics, Urho3D::ShaderVariation * vertexShader, Urho3D::ShaderVariation * pixelShader)
  9097. {
  9098. return WeakPtr<ShaderProgram>(new ShaderProgram(graphics, vertexShader, pixelShader));
  9099. }
  9100. DllExport int
  9101. Viewport_GetType (Urho3D::Viewport *_target)
  9102. {
  9103. return (_target->GetType ()).Value ();
  9104. }
  9105. DllExport const char *
  9106. Viewport_GetTypeName (Urho3D::Viewport *_target)
  9107. {
  9108. return stringdup((_target->GetTypeName ()).CString ());
  9109. }
  9110. DllExport int
  9111. Viewport_GetTypeStatic ()
  9112. {
  9113. return (Viewport::GetTypeStatic ()).Value ();
  9114. }
  9115. DllExport const char *
  9116. Viewport_GetTypeNameStatic ()
  9117. {
  9118. return stringdup((Viewport::GetTypeNameStatic ()).CString ());
  9119. }
  9120. DllExport void *
  9121. Viewport_Viewport (Urho3D::Context * context)
  9122. {
  9123. return WeakPtr<Viewport>(new Viewport(context));
  9124. }
  9125. DllExport void *
  9126. Viewport_Viewport0 (Urho3D::Context * context, Urho3D::Scene * scene, Urho3D::Camera * camera, Urho3D::RenderPath * renderPath)
  9127. {
  9128. return WeakPtr<Viewport>(new Viewport(context, scene, camera, renderPath));
  9129. }
  9130. DllExport void *
  9131. Viewport_Viewport1 (Urho3D::Context * context, Urho3D::Scene * scene, Urho3D::Camera * camera, const class Urho3D::IntRect & rect, Urho3D::RenderPath * renderPath)
  9132. {
  9133. return WeakPtr<Viewport>(new Viewport(context, scene, camera, rect, renderPath));
  9134. }
  9135. DllExport void
  9136. Viewport_SetScene (Urho3D::Viewport *_target, Urho3D::Scene * scene)
  9137. {
  9138. _target->SetScene (scene);
  9139. }
  9140. DllExport void
  9141. Viewport_SetCamera (Urho3D::Viewport *_target, Urho3D::Camera * camera)
  9142. {
  9143. _target->SetCamera (camera);
  9144. }
  9145. DllExport void
  9146. Viewport_SetRect (Urho3D::Viewport *_target, const class Urho3D::IntRect & rect)
  9147. {
  9148. _target->SetRect (rect);
  9149. }
  9150. DllExport void
  9151. Viewport_SetRenderPath (Urho3D::Viewport *_target, Urho3D::RenderPath * path)
  9152. {
  9153. _target->SetRenderPath (path);
  9154. }
  9155. DllExport void
  9156. Viewport_SetStereoMode (Urho3D::Viewport *_target, bool stereo)
  9157. {
  9158. _target->SetStereoMode (stereo);
  9159. }
  9160. DllExport void
  9161. Viewport_SetRenderPath2 (Urho3D::Viewport *_target, Urho3D::XMLFile * file)
  9162. {
  9163. _target->SetRenderPath (file);
  9164. }
  9165. DllExport void
  9166. Viewport_SetDrawDebug (Urho3D::Viewport *_target, bool enable)
  9167. {
  9168. _target->SetDrawDebug (enable);
  9169. }
  9170. DllExport void
  9171. Viewport_SetCullCamera (Urho3D::Viewport *_target, Urho3D::Camera * camera)
  9172. {
  9173. _target->SetCullCamera (camera);
  9174. }
  9175. DllExport Urho3D::Scene *
  9176. Viewport_GetScene (Urho3D::Viewport *_target)
  9177. {
  9178. return _target->GetScene ();
  9179. }
  9180. DllExport Urho3D::Camera *
  9181. Viewport_GetCamera (Urho3D::Viewport *_target)
  9182. {
  9183. return _target->GetCamera ();
  9184. }
  9185. DllExport Urho3D::View *
  9186. Viewport_GetView (Urho3D::Viewport *_target)
  9187. {
  9188. return _target->GetView ();
  9189. }
  9190. DllExport const class Urho3D::IntRect &
  9191. Viewport_GetRect (Urho3D::Viewport *_target)
  9192. {
  9193. return _target->GetRect ();
  9194. }
  9195. DllExport Urho3D::RenderPath *
  9196. Viewport_GetRenderPath (Urho3D::Viewport *_target)
  9197. {
  9198. return _target->GetRenderPath ();
  9199. }
  9200. DllExport int
  9201. Viewport_GetDrawDebug (Urho3D::Viewport *_target)
  9202. {
  9203. return _target->GetDrawDebug ();
  9204. }
  9205. DllExport Urho3D::Camera *
  9206. Viewport_GetCullCamera (Urho3D::Viewport *_target)
  9207. {
  9208. return _target->GetCullCamera ();
  9209. }
  9210. DllExport Urho3D::Ray
  9211. Viewport_GetScreenRay (Urho3D::Viewport *_target, int x, int y)
  9212. {
  9213. return _target->GetScreenRay (x, y);
  9214. }
  9215. DllExport Interop::IntVector2
  9216. Viewport_WorldToScreenPoint (Urho3D::Viewport *_target, const class Urho3D::Vector3 & worldPos)
  9217. {
  9218. return *((Interop::IntVector2 *) &(_target->WorldToScreenPoint (worldPos)));
  9219. }
  9220. DllExport Interop::Vector3
  9221. Viewport_ScreenToWorldPoint (Urho3D::Viewport *_target, int x, int y, float depth)
  9222. {
  9223. return *((Interop::Vector3 *) &(_target->ScreenToWorldPoint (x, y, depth)));
  9224. }
  9225. DllExport void
  9226. Viewport_AllocateView (Urho3D::Viewport *_target)
  9227. {
  9228. _target->AllocateView ();
  9229. }
  9230. DllExport void *
  9231. RenderSurface_RenderSurface (Urho3D::Texture * parentTexture)
  9232. {
  9233. return WeakPtr<RenderSurface>(new RenderSurface(parentTexture));
  9234. }
  9235. DllExport void
  9236. RenderSurface_SetNumViewports (Urho3D::RenderSurface *_target, unsigned int num)
  9237. {
  9238. _target->SetNumViewports (num);
  9239. }
  9240. DllExport void
  9241. RenderSurface_SetViewport (Urho3D::RenderSurface *_target, unsigned int index, Urho3D::Viewport * viewport)
  9242. {
  9243. _target->SetViewport (index, viewport);
  9244. }
  9245. DllExport void
  9246. RenderSurface_SetUpdateMode (Urho3D::RenderSurface *_target, enum Urho3D::RenderSurfaceUpdateMode mode)
  9247. {
  9248. _target->SetUpdateMode (mode);
  9249. }
  9250. DllExport void
  9251. RenderSurface_SetLinkedRenderTarget (Urho3D::RenderSurface *_target, Urho3D::RenderSurface * renderTarget)
  9252. {
  9253. _target->SetLinkedRenderTarget (renderTarget);
  9254. }
  9255. DllExport void
  9256. RenderSurface_SetLinkedDepthStencil (Urho3D::RenderSurface *_target, Urho3D::RenderSurface * depthStencil)
  9257. {
  9258. _target->SetLinkedDepthStencil (depthStencil);
  9259. }
  9260. DllExport void
  9261. RenderSurface_QueueUpdate (Urho3D::RenderSurface *_target)
  9262. {
  9263. _target->QueueUpdate ();
  9264. }
  9265. DllExport void
  9266. RenderSurface_Release (Urho3D::RenderSurface *_target)
  9267. {
  9268. _target->Release ();
  9269. }
  9270. DllExport int
  9271. RenderSurface_GetWidth (Urho3D::RenderSurface *_target)
  9272. {
  9273. return _target->GetWidth ();
  9274. }
  9275. DllExport int
  9276. RenderSurface_GetHeight (Urho3D::RenderSurface *_target)
  9277. {
  9278. return _target->GetHeight ();
  9279. }
  9280. DllExport enum Urho3D::TextureUsage
  9281. RenderSurface_GetUsage (Urho3D::RenderSurface *_target)
  9282. {
  9283. return _target->GetUsage ();
  9284. }
  9285. DllExport int
  9286. RenderSurface_GetMultiSample (Urho3D::RenderSurface *_target)
  9287. {
  9288. return _target->GetMultiSample ();
  9289. }
  9290. DllExport int
  9291. RenderSurface_GetAutoResolve (Urho3D::RenderSurface *_target)
  9292. {
  9293. return _target->GetAutoResolve ();
  9294. }
  9295. DllExport unsigned int
  9296. RenderSurface_GetNumViewports (Urho3D::RenderSurface *_target)
  9297. {
  9298. return _target->GetNumViewports ();
  9299. }
  9300. DllExport Urho3D::Viewport *
  9301. RenderSurface_GetViewport (Urho3D::RenderSurface *_target, unsigned int index)
  9302. {
  9303. return _target->GetViewport (index);
  9304. }
  9305. DllExport enum Urho3D::RenderSurfaceUpdateMode
  9306. RenderSurface_GetUpdateMode (Urho3D::RenderSurface *_target)
  9307. {
  9308. return _target->GetUpdateMode ();
  9309. }
  9310. DllExport Urho3D::RenderSurface *
  9311. RenderSurface_GetLinkedRenderTarget (Urho3D::RenderSurface *_target)
  9312. {
  9313. return _target->GetLinkedRenderTarget ();
  9314. }
  9315. DllExport Urho3D::RenderSurface *
  9316. RenderSurface_GetLinkedDepthStencil (Urho3D::RenderSurface *_target)
  9317. {
  9318. return _target->GetLinkedDepthStencil ();
  9319. }
  9320. DllExport int
  9321. RenderSurface_IsUpdateQueued (Urho3D::RenderSurface *_target)
  9322. {
  9323. return _target->IsUpdateQueued ();
  9324. }
  9325. DllExport void
  9326. RenderSurface_ResetUpdateQueued (Urho3D::RenderSurface *_target)
  9327. {
  9328. _target->ResetUpdateQueued ();
  9329. }
  9330. DllExport Urho3D::Texture *
  9331. RenderSurface_GetParentTexture (Urho3D::RenderSurface *_target)
  9332. {
  9333. return _target->GetParentTexture ();
  9334. }
  9335. DllExport void *
  9336. RenderSurface_GetSurface (Urho3D::RenderSurface *_target)
  9337. {
  9338. return _target->GetSurface ();
  9339. }
  9340. DllExport void *
  9341. RenderSurface_GetRenderTargetView (Urho3D::RenderSurface *_target)
  9342. {
  9343. return _target->GetRenderTargetView ();
  9344. }
  9345. DllExport void *
  9346. RenderSurface_GetReadOnlyView (Urho3D::RenderSurface *_target)
  9347. {
  9348. return _target->GetReadOnlyView ();
  9349. }
  9350. DllExport int
  9351. RenderSurface_IsResolveDirty (Urho3D::RenderSurface *_target)
  9352. {
  9353. return _target->IsResolveDirty ();
  9354. }
  9355. DllExport void
  9356. RenderSurface_SetResolveDirty (Urho3D::RenderSurface *_target, bool enable)
  9357. {
  9358. _target->SetResolveDirty (enable);
  9359. }
  9360. DllExport int
  9361. Texture2D_GetType (Urho3D::Texture2D *_target)
  9362. {
  9363. return (_target->GetType ()).Value ();
  9364. }
  9365. DllExport const char *
  9366. Texture2D_GetTypeName (Urho3D::Texture2D *_target)
  9367. {
  9368. return stringdup((_target->GetTypeName ()).CString ());
  9369. }
  9370. DllExport int
  9371. Texture2D_GetTypeStatic ()
  9372. {
  9373. return (Texture2D::GetTypeStatic ()).Value ();
  9374. }
  9375. DllExport const char *
  9376. Texture2D_GetTypeNameStatic ()
  9377. {
  9378. return stringdup((Texture2D::GetTypeNameStatic ()).CString ());
  9379. }
  9380. DllExport void *
  9381. Texture2D_Texture2D (Urho3D::Context * context)
  9382. {
  9383. return WeakPtr<Texture2D>(new Texture2D(context));
  9384. }
  9385. DllExport void
  9386. Texture2D_RegisterObject (Urho3D::Context * context)
  9387. {
  9388. Texture2D::RegisterObject (context);
  9389. }
  9390. DllExport int
  9391. Texture2D_BeginLoad_File (Urho3D::Texture2D *_target, File * source)
  9392. {
  9393. return _target->BeginLoad (*source);
  9394. }
  9395. DllExport int
  9396. Texture2D_BeginLoad_MemoryBuffer (Urho3D::Texture2D *_target, MemoryBuffer * source)
  9397. {
  9398. return _target->BeginLoad (*source);
  9399. }
  9400. DllExport int
  9401. Texture2D_EndLoad (Urho3D::Texture2D *_target)
  9402. {
  9403. return _target->EndLoad ();
  9404. }
  9405. DllExport void
  9406. Texture2D_Release (Urho3D::Texture2D *_target)
  9407. {
  9408. _target->Release ();
  9409. }
  9410. DllExport int
  9411. Texture2D_SetSize (Urho3D::Texture2D *_target, int width, int height, unsigned int format, enum Urho3D::TextureUsage usage, int multiSample, bool autoResolve)
  9412. {
  9413. return _target->SetSize (width, height, format, usage, multiSample, autoResolve);
  9414. }
  9415. DllExport int
  9416. Texture2D_SetData (Urho3D::Texture2D *_target, unsigned int level, int x, int y, int width, int height, const void * data)
  9417. {
  9418. return _target->SetData (level, x, y, width, height, data);
  9419. }
  9420. DllExport int
  9421. Texture2D_SetData0 (Urho3D::Texture2D *_target, Urho3D::Image * image, bool useAlpha)
  9422. {
  9423. return _target->SetData (image, useAlpha);
  9424. }
  9425. DllExport int
  9426. Texture2D_GetData (Urho3D::Texture2D *_target, unsigned int level, void * dest)
  9427. {
  9428. return _target->GetData (level, dest);
  9429. }
  9430. DllExport Urho3D::Image *
  9431. Texture2D_GetImage (Urho3D::Texture2D *_target)
  9432. {
  9433. auto copy = _target->GetImage ();
  9434. auto plain = copy.Get();
  9435. copy.Detach();
  9436. delete copy;
  9437. return plain;
  9438. }
  9439. DllExport Urho3D::RenderSurface *
  9440. Texture2D_GetRenderSurface (Urho3D::Texture2D *_target)
  9441. {
  9442. return _target->GetRenderSurface ();
  9443. }
  9444. DllExport int
  9445. IndexBuffer_GetType (Urho3D::IndexBuffer *_target)
  9446. {
  9447. return (_target->GetType ()).Value ();
  9448. }
  9449. DllExport const char *
  9450. IndexBuffer_GetTypeName (Urho3D::IndexBuffer *_target)
  9451. {
  9452. return stringdup((_target->GetTypeName ()).CString ());
  9453. }
  9454. DllExport int
  9455. IndexBuffer_GetTypeStatic ()
  9456. {
  9457. return (IndexBuffer::GetTypeStatic ()).Value ();
  9458. }
  9459. DllExport const char *
  9460. IndexBuffer_GetTypeNameStatic ()
  9461. {
  9462. return stringdup((IndexBuffer::GetTypeNameStatic ()).CString ());
  9463. }
  9464. DllExport void *
  9465. IndexBuffer_IndexBuffer (Urho3D::Context * context, bool forceHeadless)
  9466. {
  9467. return WeakPtr<IndexBuffer>(new IndexBuffer(context, forceHeadless));
  9468. }
  9469. DllExport void
  9470. IndexBuffer_OnDeviceLost (Urho3D::IndexBuffer *_target)
  9471. {
  9472. _target->OnDeviceLost ();
  9473. }
  9474. DllExport void
  9475. IndexBuffer_Release (Urho3D::IndexBuffer *_target)
  9476. {
  9477. _target->Release ();
  9478. }
  9479. DllExport void
  9480. IndexBuffer_SetShadowed (Urho3D::IndexBuffer *_target, bool enable)
  9481. {
  9482. _target->SetShadowed (enable);
  9483. }
  9484. DllExport int
  9485. IndexBuffer_SetSize (Urho3D::IndexBuffer *_target, unsigned int indexCount, bool largeIndices, bool dynamic)
  9486. {
  9487. return _target->SetSize (indexCount, largeIndices, dynamic);
  9488. }
  9489. DllExport int
  9490. IndexBuffer_SetData (Urho3D::IndexBuffer *_target, const void * data)
  9491. {
  9492. return _target->SetData (data);
  9493. }
  9494. DllExport int
  9495. IndexBuffer_SetDataRange (Urho3D::IndexBuffer *_target, const void * data, unsigned int start, unsigned int count, bool discard)
  9496. {
  9497. return _target->SetDataRange (data, start, count, discard);
  9498. }
  9499. DllExport void *
  9500. IndexBuffer_Lock (Urho3D::IndexBuffer *_target, unsigned int start, unsigned int count, bool discard)
  9501. {
  9502. return _target->Lock (start, count, discard);
  9503. }
  9504. DllExport void
  9505. IndexBuffer_Unlock (Urho3D::IndexBuffer *_target)
  9506. {
  9507. _target->Unlock ();
  9508. }
  9509. DllExport int
  9510. IndexBuffer_IsShadowed (Urho3D::IndexBuffer *_target)
  9511. {
  9512. return _target->IsShadowed ();
  9513. }
  9514. DllExport int
  9515. IndexBuffer_IsDynamic (Urho3D::IndexBuffer *_target)
  9516. {
  9517. return _target->IsDynamic ();
  9518. }
  9519. DllExport int
  9520. IndexBuffer_IsLocked (Urho3D::IndexBuffer *_target)
  9521. {
  9522. return _target->IsLocked ();
  9523. }
  9524. DllExport unsigned int
  9525. IndexBuffer_GetIndexCount (Urho3D::IndexBuffer *_target)
  9526. {
  9527. return _target->GetIndexCount ();
  9528. }
  9529. DllExport unsigned int
  9530. IndexBuffer_GetIndexSize (Urho3D::IndexBuffer *_target)
  9531. {
  9532. return _target->GetIndexSize ();
  9533. }
  9534. DllExport unsigned char *
  9535. IndexBuffer_GetShadowData (Urho3D::IndexBuffer *_target)
  9536. {
  9537. return _target->GetShadowData ();
  9538. }
  9539. DllExport int
  9540. OcclusionBuffer_GetType (Urho3D::OcclusionBuffer *_target)
  9541. {
  9542. return (_target->GetType ()).Value ();
  9543. }
  9544. DllExport const char *
  9545. OcclusionBuffer_GetTypeName (Urho3D::OcclusionBuffer *_target)
  9546. {
  9547. return stringdup((_target->GetTypeName ()).CString ());
  9548. }
  9549. DllExport int
  9550. OcclusionBuffer_GetTypeStatic ()
  9551. {
  9552. return (OcclusionBuffer::GetTypeStatic ()).Value ();
  9553. }
  9554. DllExport const char *
  9555. OcclusionBuffer_GetTypeNameStatic ()
  9556. {
  9557. return stringdup((OcclusionBuffer::GetTypeNameStatic ()).CString ());
  9558. }
  9559. DllExport void *
  9560. OcclusionBuffer_OcclusionBuffer (Urho3D::Context * context)
  9561. {
  9562. return WeakPtr<OcclusionBuffer>(new OcclusionBuffer(context));
  9563. }
  9564. DllExport int
  9565. OcclusionBuffer_SetSize (Urho3D::OcclusionBuffer *_target, int width, int height, bool threaded)
  9566. {
  9567. return _target->SetSize (width, height, threaded);
  9568. }
  9569. DllExport void
  9570. OcclusionBuffer_SetView (Urho3D::OcclusionBuffer *_target, Urho3D::Camera * camera)
  9571. {
  9572. _target->SetView (camera);
  9573. }
  9574. DllExport void
  9575. OcclusionBuffer_SetMaxTriangles (Urho3D::OcclusionBuffer *_target, unsigned int triangles)
  9576. {
  9577. _target->SetMaxTriangles (triangles);
  9578. }
  9579. DllExport void
  9580. OcclusionBuffer_SetCullMode (Urho3D::OcclusionBuffer *_target, enum Urho3D::CullMode mode)
  9581. {
  9582. _target->SetCullMode (mode);
  9583. }
  9584. DllExport void
  9585. OcclusionBuffer_Reset (Urho3D::OcclusionBuffer *_target)
  9586. {
  9587. _target->Reset ();
  9588. }
  9589. DllExport void
  9590. OcclusionBuffer_Clear (Urho3D::OcclusionBuffer *_target)
  9591. {
  9592. _target->Clear ();
  9593. }
  9594. DllExport int
  9595. OcclusionBuffer_AddTriangles (Urho3D::OcclusionBuffer *_target, const class Urho3D::Matrix3x4 & model, const void * vertexData, unsigned int vertexSize, unsigned int vertexStart, unsigned int vertexCount)
  9596. {
  9597. return _target->AddTriangles (model, vertexData, vertexSize, vertexStart, vertexCount);
  9598. }
  9599. DllExport int
  9600. OcclusionBuffer_AddTriangles0 (Urho3D::OcclusionBuffer *_target, const class Urho3D::Matrix3x4 & model, const void * vertexData, unsigned int vertexSize, const void * indexData, unsigned int indexSize, unsigned int indexStart, unsigned int indexCount)
  9601. {
  9602. return _target->AddTriangles (model, vertexData, vertexSize, indexData, indexSize, indexStart, indexCount);
  9603. }
  9604. DllExport void
  9605. OcclusionBuffer_DrawTriangles (Urho3D::OcclusionBuffer *_target)
  9606. {
  9607. _target->DrawTriangles ();
  9608. }
  9609. DllExport void
  9610. OcclusionBuffer_BuildDepthHierarchy (Urho3D::OcclusionBuffer *_target)
  9611. {
  9612. _target->BuildDepthHierarchy ();
  9613. }
  9614. DllExport void
  9615. OcclusionBuffer_ResetUseTimer (Urho3D::OcclusionBuffer *_target)
  9616. {
  9617. _target->ResetUseTimer ();
  9618. }
  9619. DllExport int *
  9620. OcclusionBuffer_GetBuffer (Urho3D::OcclusionBuffer *_target)
  9621. {
  9622. return _target->GetBuffer ();
  9623. }
  9624. DllExport Interop::Matrix3x4
  9625. OcclusionBuffer_GetView (Urho3D::OcclusionBuffer *_target)
  9626. {
  9627. return *((Interop::Matrix3x4 *) &(_target->GetView ()));
  9628. }
  9629. DllExport Interop::Matrix4
  9630. OcclusionBuffer_GetProjection (Urho3D::OcclusionBuffer *_target)
  9631. {
  9632. return *((Interop::Matrix4 *) &(_target->GetProjection ()));
  9633. }
  9634. DllExport int
  9635. OcclusionBuffer_GetWidth (Urho3D::OcclusionBuffer *_target)
  9636. {
  9637. return _target->GetWidth ();
  9638. }
  9639. DllExport int
  9640. OcclusionBuffer_GetHeight (Urho3D::OcclusionBuffer *_target)
  9641. {
  9642. return _target->GetHeight ();
  9643. }
  9644. DllExport unsigned int
  9645. OcclusionBuffer_GetNumTriangles (Urho3D::OcclusionBuffer *_target)
  9646. {
  9647. return _target->GetNumTriangles ();
  9648. }
  9649. DllExport unsigned int
  9650. OcclusionBuffer_GetMaxTriangles (Urho3D::OcclusionBuffer *_target)
  9651. {
  9652. return _target->GetMaxTriangles ();
  9653. }
  9654. DllExport enum Urho3D::CullMode
  9655. OcclusionBuffer_GetCullMode (Urho3D::OcclusionBuffer *_target)
  9656. {
  9657. return _target->GetCullMode ();
  9658. }
  9659. DllExport int
  9660. OcclusionBuffer_IsThreaded (Urho3D::OcclusionBuffer *_target)
  9661. {
  9662. return _target->IsThreaded ();
  9663. }
  9664. DllExport int
  9665. OcclusionBuffer_IsVisible (Urho3D::OcclusionBuffer *_target, const class Urho3D::BoundingBox & worldSpaceBox)
  9666. {
  9667. return _target->IsVisible (worldSpaceBox);
  9668. }
  9669. DllExport unsigned int
  9670. OcclusionBuffer_GetUseTimer (Urho3D::OcclusionBuffer *_target)
  9671. {
  9672. return _target->GetUseTimer ();
  9673. }
  9674. DllExport int
  9675. Octree_GetType (Urho3D::Octree *_target)
  9676. {
  9677. return (_target->GetType ()).Value ();
  9678. }
  9679. DllExport const char *
  9680. Octree_GetTypeName (Urho3D::Octree *_target)
  9681. {
  9682. return stringdup((_target->GetTypeName ()).CString ());
  9683. }
  9684. DllExport int
  9685. Octree_GetTypeStatic ()
  9686. {
  9687. return (Octree::GetTypeStatic ()).Value ();
  9688. }
  9689. DllExport const char *
  9690. Octree_GetTypeNameStatic ()
  9691. {
  9692. return stringdup((Octree::GetTypeNameStatic ()).CString ());
  9693. }
  9694. DllExport void *
  9695. Octree_Octree (Urho3D::Context * context)
  9696. {
  9697. return WeakPtr<Octree>(new Octree(context));
  9698. }
  9699. DllExport void
  9700. Octree_RegisterObject (Urho3D::Context * context)
  9701. {
  9702. Octree::RegisterObject (context);
  9703. }
  9704. DllExport void
  9705. Octree_DrawDebugGeometry (Urho3D::Octree *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  9706. {
  9707. _target->DrawDebugGeometry (debug, depthTest);
  9708. }
  9709. DllExport void
  9710. Octree_SetSize (Urho3D::Octree *_target, const class Urho3D::BoundingBox & box, unsigned int numLevels)
  9711. {
  9712. _target->SetSize (box, numLevels);
  9713. }
  9714. DllExport void
  9715. Octree_AddManualDrawable (Urho3D::Octree *_target, Urho3D::Drawable * drawable)
  9716. {
  9717. _target->AddManualDrawable (drawable);
  9718. }
  9719. DllExport void
  9720. Octree_RemoveManualDrawable (Urho3D::Octree *_target, Urho3D::Drawable * drawable)
  9721. {
  9722. _target->RemoveManualDrawable (drawable);
  9723. }
  9724. DllExport unsigned int
  9725. Octree_GetNumLevels (Urho3D::Octree *_target)
  9726. {
  9727. return _target->GetNumLevels ();
  9728. }
  9729. DllExport void
  9730. Octree_QueueUpdate (Urho3D::Octree *_target, Urho3D::Drawable * drawable)
  9731. {
  9732. _target->QueueUpdate (drawable);
  9733. }
  9734. DllExport void
  9735. Octree_CancelUpdate (Urho3D::Octree *_target, Urho3D::Drawable * drawable)
  9736. {
  9737. _target->CancelUpdate (drawable);
  9738. }
  9739. DllExport void
  9740. Octree_DrawDebugGeometry0 (Urho3D::Octree *_target, bool depthTest)
  9741. {
  9742. _target->DrawDebugGeometry (depthTest);
  9743. }
  9744. DllExport int
  9745. ParticleEffect_GetType (Urho3D::ParticleEffect *_target)
  9746. {
  9747. return (_target->GetType ()).Value ();
  9748. }
  9749. DllExport const char *
  9750. ParticleEffect_GetTypeName (Urho3D::ParticleEffect *_target)
  9751. {
  9752. return stringdup((_target->GetTypeName ()).CString ());
  9753. }
  9754. DllExport int
  9755. ParticleEffect_GetTypeStatic ()
  9756. {
  9757. return (ParticleEffect::GetTypeStatic ()).Value ();
  9758. }
  9759. DllExport const char *
  9760. ParticleEffect_GetTypeNameStatic ()
  9761. {
  9762. return stringdup((ParticleEffect::GetTypeNameStatic ()).CString ());
  9763. }
  9764. DllExport void *
  9765. ParticleEffect_ParticleEffect (Urho3D::Context * context)
  9766. {
  9767. return WeakPtr<ParticleEffect>(new ParticleEffect(context));
  9768. }
  9769. DllExport void
  9770. ParticleEffect_RegisterObject (Urho3D::Context * context)
  9771. {
  9772. ParticleEffect::RegisterObject (context);
  9773. }
  9774. DllExport int
  9775. ParticleEffect_BeginLoad_File (Urho3D::ParticleEffect *_target, File * source)
  9776. {
  9777. return _target->BeginLoad (*source);
  9778. }
  9779. DllExport int
  9780. ParticleEffect_BeginLoad_MemoryBuffer (Urho3D::ParticleEffect *_target, MemoryBuffer * source)
  9781. {
  9782. return _target->BeginLoad (*source);
  9783. }
  9784. DllExport int
  9785. ParticleEffect_EndLoad (Urho3D::ParticleEffect *_target)
  9786. {
  9787. return _target->EndLoad ();
  9788. }
  9789. DllExport int
  9790. ParticleEffect_Save_File (Urho3D::ParticleEffect *_target, File * dest)
  9791. {
  9792. return _target->Save (*dest);
  9793. }
  9794. DllExport int
  9795. ParticleEffect_Save_MemoryBuffer (Urho3D::ParticleEffect *_target, MemoryBuffer * dest)
  9796. {
  9797. return _target->Save (*dest);
  9798. }
  9799. DllExport int
  9800. ParticleEffect_Save0 (Urho3D::ParticleEffect *_target, Urho3D::XMLElement & dest)
  9801. {
  9802. return _target->Save (dest);
  9803. }
  9804. DllExport int
  9805. ParticleEffect_Load (Urho3D::ParticleEffect *_target, const class Urho3D::XMLElement & source)
  9806. {
  9807. return _target->Load (source);
  9808. }
  9809. DllExport void
  9810. ParticleEffect_SetMaterial (Urho3D::ParticleEffect *_target, Urho3D::Material * material)
  9811. {
  9812. _target->SetMaterial (material);
  9813. }
  9814. DllExport void
  9815. ParticleEffect_SetNumParticles (Urho3D::ParticleEffect *_target, unsigned int num)
  9816. {
  9817. _target->SetNumParticles (num);
  9818. }
  9819. DllExport void
  9820. ParticleEffect_SetUpdateInvisible (Urho3D::ParticleEffect *_target, bool enable)
  9821. {
  9822. _target->SetUpdateInvisible (enable);
  9823. }
  9824. DllExport void
  9825. ParticleEffect_SetRelative (Urho3D::ParticleEffect *_target, bool enable)
  9826. {
  9827. _target->SetRelative (enable);
  9828. }
  9829. DllExport void
  9830. ParticleEffect_SetScaled (Urho3D::ParticleEffect *_target, bool enable)
  9831. {
  9832. _target->SetScaled (enable);
  9833. }
  9834. DllExport void
  9835. ParticleEffect_SetSorted (Urho3D::ParticleEffect *_target, bool enable)
  9836. {
  9837. _target->SetSorted (enable);
  9838. }
  9839. DllExport void
  9840. ParticleEffect_SetFixedScreenSize (Urho3D::ParticleEffect *_target, bool enable)
  9841. {
  9842. _target->SetFixedScreenSize (enable);
  9843. }
  9844. DllExport void
  9845. ParticleEffect_SetAnimationLodBias (Urho3D::ParticleEffect *_target, float lodBias)
  9846. {
  9847. _target->SetAnimationLodBias (lodBias);
  9848. }
  9849. DllExport void
  9850. ParticleEffect_SetEmitterType (Urho3D::ParticleEffect *_target, enum Urho3D::EmitterType type)
  9851. {
  9852. _target->SetEmitterType (type);
  9853. }
  9854. DllExport void
  9855. ParticleEffect_SetEmitterSize (Urho3D::ParticleEffect *_target, const class Urho3D::Vector3 & size)
  9856. {
  9857. _target->SetEmitterSize (size);
  9858. }
  9859. DllExport void
  9860. ParticleEffect_SetMinDirection (Urho3D::ParticleEffect *_target, const class Urho3D::Vector3 & direction)
  9861. {
  9862. _target->SetMinDirection (direction);
  9863. }
  9864. DllExport void
  9865. ParticleEffect_SetMaxDirection (Urho3D::ParticleEffect *_target, const class Urho3D::Vector3 & direction)
  9866. {
  9867. _target->SetMaxDirection (direction);
  9868. }
  9869. DllExport void
  9870. ParticleEffect_SetConstantForce (Urho3D::ParticleEffect *_target, const class Urho3D::Vector3 & force)
  9871. {
  9872. _target->SetConstantForce (force);
  9873. }
  9874. DllExport void
  9875. ParticleEffect_SetDampingForce (Urho3D::ParticleEffect *_target, float force)
  9876. {
  9877. _target->SetDampingForce (force);
  9878. }
  9879. DllExport void
  9880. ParticleEffect_SetActiveTime (Urho3D::ParticleEffect *_target, float time)
  9881. {
  9882. _target->SetActiveTime (time);
  9883. }
  9884. DllExport void
  9885. ParticleEffect_SetInactiveTime (Urho3D::ParticleEffect *_target, float time)
  9886. {
  9887. _target->SetInactiveTime (time);
  9888. }
  9889. DllExport void
  9890. ParticleEffect_SetMinEmissionRate (Urho3D::ParticleEffect *_target, float rate)
  9891. {
  9892. _target->SetMinEmissionRate (rate);
  9893. }
  9894. DllExport void
  9895. ParticleEffect_SetMaxEmissionRate (Urho3D::ParticleEffect *_target, float rate)
  9896. {
  9897. _target->SetMaxEmissionRate (rate);
  9898. }
  9899. DllExport void
  9900. ParticleEffect_SetMinParticleSize (Urho3D::ParticleEffect *_target, const class Urho3D::Vector2 & size)
  9901. {
  9902. _target->SetMinParticleSize (size);
  9903. }
  9904. DllExport void
  9905. ParticleEffect_SetMaxParticleSize (Urho3D::ParticleEffect *_target, const class Urho3D::Vector2 & size)
  9906. {
  9907. _target->SetMaxParticleSize (size);
  9908. }
  9909. DllExport void
  9910. ParticleEffect_SetMinTimeToLive (Urho3D::ParticleEffect *_target, float time)
  9911. {
  9912. _target->SetMinTimeToLive (time);
  9913. }
  9914. DllExport void
  9915. ParticleEffect_SetMaxTimeToLive (Urho3D::ParticleEffect *_target, float time)
  9916. {
  9917. _target->SetMaxTimeToLive (time);
  9918. }
  9919. DllExport void
  9920. ParticleEffect_SetMinVelocity (Urho3D::ParticleEffect *_target, float velocity)
  9921. {
  9922. _target->SetMinVelocity (velocity);
  9923. }
  9924. DllExport void
  9925. ParticleEffect_SetMaxVelocity (Urho3D::ParticleEffect *_target, float velocity)
  9926. {
  9927. _target->SetMaxVelocity (velocity);
  9928. }
  9929. DllExport void
  9930. ParticleEffect_SetMinRotation (Urho3D::ParticleEffect *_target, float rotation)
  9931. {
  9932. _target->SetMinRotation (rotation);
  9933. }
  9934. DllExport void
  9935. ParticleEffect_SetMaxRotation (Urho3D::ParticleEffect *_target, float rotation)
  9936. {
  9937. _target->SetMaxRotation (rotation);
  9938. }
  9939. DllExport void
  9940. ParticleEffect_SetMinRotationSpeed (Urho3D::ParticleEffect *_target, float speed)
  9941. {
  9942. _target->SetMinRotationSpeed (speed);
  9943. }
  9944. DllExport void
  9945. ParticleEffect_SetMaxRotationSpeed (Urho3D::ParticleEffect *_target, float speed)
  9946. {
  9947. _target->SetMaxRotationSpeed (speed);
  9948. }
  9949. DllExport void
  9950. ParticleEffect_SetSizeAdd (Urho3D::ParticleEffect *_target, float sizeAdd)
  9951. {
  9952. _target->SetSizeAdd (sizeAdd);
  9953. }
  9954. DllExport void
  9955. ParticleEffect_SetSizeMul (Urho3D::ParticleEffect *_target, float sizeMul)
  9956. {
  9957. _target->SetSizeMul (sizeMul);
  9958. }
  9959. DllExport void
  9960. ParticleEffect_SetFaceCameraMode (Urho3D::ParticleEffect *_target, enum Urho3D::FaceCameraMode mode)
  9961. {
  9962. _target->SetFaceCameraMode (mode);
  9963. }
  9964. DllExport void
  9965. ParticleEffect_AddColorTime (Urho3D::ParticleEffect *_target, const class Urho3D::Color & color, float time)
  9966. {
  9967. _target->AddColorTime (color, time);
  9968. }
  9969. DllExport void
  9970. ParticleEffect_RemoveColorFrame (Urho3D::ParticleEffect *_target, unsigned int index)
  9971. {
  9972. _target->RemoveColorFrame (index);
  9973. }
  9974. DllExport void
  9975. ParticleEffect_SetNumColorFrames (Urho3D::ParticleEffect *_target, unsigned int number)
  9976. {
  9977. _target->SetNumColorFrames (number);
  9978. }
  9979. DllExport void
  9980. ParticleEffect_SortColorFrames (Urho3D::ParticleEffect *_target)
  9981. {
  9982. _target->SortColorFrames ();
  9983. }
  9984. DllExport void
  9985. ParticleEffect_RemoveTextureFrame (Urho3D::ParticleEffect *_target, unsigned int index)
  9986. {
  9987. _target->RemoveTextureFrame (index);
  9988. }
  9989. DllExport void
  9990. ParticleEffect_SetNumTextureFrames (Urho3D::ParticleEffect *_target, unsigned int number)
  9991. {
  9992. _target->SetNumTextureFrames (number);
  9993. }
  9994. DllExport void
  9995. ParticleEffect_SortTextureFrames (Urho3D::ParticleEffect *_target)
  9996. {
  9997. _target->SortTextureFrames ();
  9998. }
  9999. DllExport Urho3D::ParticleEffect *
  10000. ParticleEffect_Clone (Urho3D::ParticleEffect *_target, const char * cloneName)
  10001. {
  10002. auto copy = _target->Clone (Urho3D::String(cloneName));
  10003. auto plain = copy.Get();
  10004. copy.Detach();
  10005. delete copy;
  10006. return plain;
  10007. }
  10008. DllExport Urho3D::Material *
  10009. ParticleEffect_GetMaterial (Urho3D::ParticleEffect *_target)
  10010. {
  10011. return _target->GetMaterial ();
  10012. }
  10013. DllExport unsigned int
  10014. ParticleEffect_GetNumParticles (Urho3D::ParticleEffect *_target)
  10015. {
  10016. return _target->GetNumParticles ();
  10017. }
  10018. DllExport int
  10019. ParticleEffect_GetUpdateInvisible (Urho3D::ParticleEffect *_target)
  10020. {
  10021. return _target->GetUpdateInvisible ();
  10022. }
  10023. DllExport int
  10024. ParticleEffect_IsRelative (Urho3D::ParticleEffect *_target)
  10025. {
  10026. return _target->IsRelative ();
  10027. }
  10028. DllExport int
  10029. ParticleEffect_IsScaled (Urho3D::ParticleEffect *_target)
  10030. {
  10031. return _target->IsScaled ();
  10032. }
  10033. DllExport int
  10034. ParticleEffect_IsSorted (Urho3D::ParticleEffect *_target)
  10035. {
  10036. return _target->IsSorted ();
  10037. }
  10038. DllExport int
  10039. ParticleEffect_IsFixedScreenSize (Urho3D::ParticleEffect *_target)
  10040. {
  10041. return _target->IsFixedScreenSize ();
  10042. }
  10043. DllExport float
  10044. ParticleEffect_GetAnimationLodBias (Urho3D::ParticleEffect *_target)
  10045. {
  10046. return _target->GetAnimationLodBias ();
  10047. }
  10048. DllExport enum Urho3D::EmitterType
  10049. ParticleEffect_GetEmitterType (Urho3D::ParticleEffect *_target)
  10050. {
  10051. return _target->GetEmitterType ();
  10052. }
  10053. DllExport Interop::Vector3
  10054. ParticleEffect_GetEmitterSize (Urho3D::ParticleEffect *_target)
  10055. {
  10056. return *((Interop::Vector3 *) &(_target->GetEmitterSize ()));
  10057. }
  10058. DllExport Interop::Vector3
  10059. ParticleEffect_GetMinDirection (Urho3D::ParticleEffect *_target)
  10060. {
  10061. return *((Interop::Vector3 *) &(_target->GetMinDirection ()));
  10062. }
  10063. DllExport Interop::Vector3
  10064. ParticleEffect_GetMaxDirection (Urho3D::ParticleEffect *_target)
  10065. {
  10066. return *((Interop::Vector3 *) &(_target->GetMaxDirection ()));
  10067. }
  10068. DllExport Interop::Vector3
  10069. ParticleEffect_GetConstantForce (Urho3D::ParticleEffect *_target)
  10070. {
  10071. return *((Interop::Vector3 *) &(_target->GetConstantForce ()));
  10072. }
  10073. DllExport float
  10074. ParticleEffect_GetDampingForce (Urho3D::ParticleEffect *_target)
  10075. {
  10076. return _target->GetDampingForce ();
  10077. }
  10078. DllExport float
  10079. ParticleEffect_GetActiveTime (Urho3D::ParticleEffect *_target)
  10080. {
  10081. return _target->GetActiveTime ();
  10082. }
  10083. DllExport float
  10084. ParticleEffect_GetInactiveTime (Urho3D::ParticleEffect *_target)
  10085. {
  10086. return _target->GetInactiveTime ();
  10087. }
  10088. DllExport float
  10089. ParticleEffect_GetMinEmissionRate (Urho3D::ParticleEffect *_target)
  10090. {
  10091. return _target->GetMinEmissionRate ();
  10092. }
  10093. DllExport float
  10094. ParticleEffect_GetMaxEmissionRate (Urho3D::ParticleEffect *_target)
  10095. {
  10096. return _target->GetMaxEmissionRate ();
  10097. }
  10098. DllExport Interop::Vector2
  10099. ParticleEffect_GetMinParticleSize (Urho3D::ParticleEffect *_target)
  10100. {
  10101. return *((Interop::Vector2 *) &(_target->GetMinParticleSize ()));
  10102. }
  10103. DllExport Interop::Vector2
  10104. ParticleEffect_GetMaxParticleSize (Urho3D::ParticleEffect *_target)
  10105. {
  10106. return *((Interop::Vector2 *) &(_target->GetMaxParticleSize ()));
  10107. }
  10108. DllExport float
  10109. ParticleEffect_GetMinTimeToLive (Urho3D::ParticleEffect *_target)
  10110. {
  10111. return _target->GetMinTimeToLive ();
  10112. }
  10113. DllExport float
  10114. ParticleEffect_GetMaxTimeToLive (Urho3D::ParticleEffect *_target)
  10115. {
  10116. return _target->GetMaxTimeToLive ();
  10117. }
  10118. DllExport float
  10119. ParticleEffect_GetMinVelocity (Urho3D::ParticleEffect *_target)
  10120. {
  10121. return _target->GetMinVelocity ();
  10122. }
  10123. DllExport float
  10124. ParticleEffect_GetMaxVelocity (Urho3D::ParticleEffect *_target)
  10125. {
  10126. return _target->GetMaxVelocity ();
  10127. }
  10128. DllExport float
  10129. ParticleEffect_GetMinRotation (Urho3D::ParticleEffect *_target)
  10130. {
  10131. return _target->GetMinRotation ();
  10132. }
  10133. DllExport float
  10134. ParticleEffect_GetMaxRotation (Urho3D::ParticleEffect *_target)
  10135. {
  10136. return _target->GetMaxRotation ();
  10137. }
  10138. DllExport float
  10139. ParticleEffect_GetMinRotationSpeed (Urho3D::ParticleEffect *_target)
  10140. {
  10141. return _target->GetMinRotationSpeed ();
  10142. }
  10143. DllExport float
  10144. ParticleEffect_GetMaxRotationSpeed (Urho3D::ParticleEffect *_target)
  10145. {
  10146. return _target->GetMaxRotationSpeed ();
  10147. }
  10148. DllExport float
  10149. ParticleEffect_GetSizeAdd (Urho3D::ParticleEffect *_target)
  10150. {
  10151. return _target->GetSizeAdd ();
  10152. }
  10153. DllExport float
  10154. ParticleEffect_GetSizeMul (Urho3D::ParticleEffect *_target)
  10155. {
  10156. return _target->GetSizeMul ();
  10157. }
  10158. DllExport unsigned int
  10159. ParticleEffect_GetNumColorFrames (Urho3D::ParticleEffect *_target)
  10160. {
  10161. return _target->GetNumColorFrames ();
  10162. }
  10163. DllExport const struct Urho3D::ColorFrame *
  10164. ParticleEffect_GetColorFrame (Urho3D::ParticleEffect *_target, unsigned int index)
  10165. {
  10166. return _target->GetColorFrame (index);
  10167. }
  10168. DllExport unsigned int
  10169. ParticleEffect_GetNumTextureFrames (Urho3D::ParticleEffect *_target)
  10170. {
  10171. return _target->GetNumTextureFrames ();
  10172. }
  10173. DllExport const struct Urho3D::TextureFrame *
  10174. ParticleEffect_GetTextureFrame (Urho3D::ParticleEffect *_target, unsigned int index)
  10175. {
  10176. return _target->GetTextureFrame (index);
  10177. }
  10178. DllExport enum Urho3D::FaceCameraMode
  10179. ParticleEffect_GetFaceCameraMode (Urho3D::ParticleEffect *_target)
  10180. {
  10181. return _target->GetFaceCameraMode ();
  10182. }
  10183. DllExport Interop::Vector3
  10184. ParticleEffect_GetRandomDirection (Urho3D::ParticleEffect *_target)
  10185. {
  10186. return *((Interop::Vector3 *) &(_target->GetRandomDirection ()));
  10187. }
  10188. DllExport Interop::Vector2
  10189. ParticleEffect_GetRandomSize (Urho3D::ParticleEffect *_target)
  10190. {
  10191. return *((Interop::Vector2 *) &(_target->GetRandomSize ()));
  10192. }
  10193. DllExport float
  10194. ParticleEffect_GetRandomVelocity (Urho3D::ParticleEffect *_target)
  10195. {
  10196. return _target->GetRandomVelocity ();
  10197. }
  10198. DllExport float
  10199. ParticleEffect_GetRandomTimeToLive (Urho3D::ParticleEffect *_target)
  10200. {
  10201. return _target->GetRandomTimeToLive ();
  10202. }
  10203. DllExport float
  10204. ParticleEffect_GetRandomRotationSpeed (Urho3D::ParticleEffect *_target)
  10205. {
  10206. return _target->GetRandomRotationSpeed ();
  10207. }
  10208. DllExport float
  10209. ParticleEffect_GetRandomRotation (Urho3D::ParticleEffect *_target)
  10210. {
  10211. return _target->GetRandomRotation ();
  10212. }
  10213. DllExport int
  10214. ParticleEmitter_GetType (Urho3D::ParticleEmitter *_target)
  10215. {
  10216. return (_target->GetType ()).Value ();
  10217. }
  10218. DllExport const char *
  10219. ParticleEmitter_GetTypeName (Urho3D::ParticleEmitter *_target)
  10220. {
  10221. return stringdup((_target->GetTypeName ()).CString ());
  10222. }
  10223. DllExport int
  10224. ParticleEmitter_GetTypeStatic ()
  10225. {
  10226. return (ParticleEmitter::GetTypeStatic ()).Value ();
  10227. }
  10228. DllExport const char *
  10229. ParticleEmitter_GetTypeNameStatic ()
  10230. {
  10231. return stringdup((ParticleEmitter::GetTypeNameStatic ()).CString ());
  10232. }
  10233. DllExport void *
  10234. ParticleEmitter_ParticleEmitter (Urho3D::Context * context)
  10235. {
  10236. return WeakPtr<ParticleEmitter>(new ParticleEmitter(context));
  10237. }
  10238. DllExport void
  10239. ParticleEmitter_RegisterObject (Urho3D::Context * context)
  10240. {
  10241. ParticleEmitter::RegisterObject (context);
  10242. }
  10243. DllExport void
  10244. ParticleEmitter_OnSetEnabled (Urho3D::ParticleEmitter *_target)
  10245. {
  10246. _target->OnSetEnabled ();
  10247. }
  10248. DllExport void
  10249. ParticleEmitter_SetEffect (Urho3D::ParticleEmitter *_target, Urho3D::ParticleEffect * effect)
  10250. {
  10251. _target->SetEffect (effect);
  10252. }
  10253. DllExport void
  10254. ParticleEmitter_SetNumParticles (Urho3D::ParticleEmitter *_target, unsigned int num)
  10255. {
  10256. _target->SetNumParticles (num);
  10257. }
  10258. DllExport void
  10259. ParticleEmitter_SetEmitting (Urho3D::ParticleEmitter *_target, bool enable)
  10260. {
  10261. _target->SetEmitting (enable);
  10262. }
  10263. DllExport void
  10264. ParticleEmitter_SetSerializeParticles (Urho3D::ParticleEmitter *_target, bool enable)
  10265. {
  10266. _target->SetSerializeParticles (enable);
  10267. }
  10268. DllExport void
  10269. ParticleEmitter_SetAutoRemoveMode (Urho3D::ParticleEmitter *_target, enum Urho3D::AutoRemoveMode mode)
  10270. {
  10271. _target->SetAutoRemoveMode (mode);
  10272. }
  10273. DllExport void
  10274. ParticleEmitter_ResetEmissionTimer (Urho3D::ParticleEmitter *_target)
  10275. {
  10276. _target->ResetEmissionTimer ();
  10277. }
  10278. DllExport void
  10279. ParticleEmitter_RemoveAllParticles (Urho3D::ParticleEmitter *_target)
  10280. {
  10281. _target->RemoveAllParticles ();
  10282. }
  10283. DllExport void
  10284. ParticleEmitter_Reset (Urho3D::ParticleEmitter *_target)
  10285. {
  10286. _target->Reset ();
  10287. }
  10288. DllExport void
  10289. ParticleEmitter_ApplyEffect (Urho3D::ParticleEmitter *_target)
  10290. {
  10291. _target->ApplyEffect ();
  10292. }
  10293. DllExport Urho3D::ParticleEffect *
  10294. ParticleEmitter_GetEffect (Urho3D::ParticleEmitter *_target)
  10295. {
  10296. return _target->GetEffect ();
  10297. }
  10298. DllExport unsigned int
  10299. ParticleEmitter_GetNumParticles (Urho3D::ParticleEmitter *_target)
  10300. {
  10301. return _target->GetNumParticles ();
  10302. }
  10303. DllExport int
  10304. ParticleEmitter_IsEmitting (Urho3D::ParticleEmitter *_target)
  10305. {
  10306. return _target->IsEmitting ();
  10307. }
  10308. DllExport int
  10309. ParticleEmitter_GetSerializeParticles (Urho3D::ParticleEmitter *_target)
  10310. {
  10311. return _target->GetSerializeParticles ();
  10312. }
  10313. DllExport enum Urho3D::AutoRemoveMode
  10314. ParticleEmitter_GetAutoRemoveMode (Urho3D::ParticleEmitter *_target)
  10315. {
  10316. return _target->GetAutoRemoveMode ();
  10317. }
  10318. DllExport Urho3D::ResourceRef
  10319. ParticleEmitter_GetEffectAttr (Urho3D::ParticleEmitter *_target)
  10320. {
  10321. return _target->GetEffectAttr ();
  10322. }
  10323. DllExport void *
  10324. RenderPath_RenderPath ()
  10325. {
  10326. return WeakPtr<RenderPath>(new RenderPath());
  10327. }
  10328. DllExport Urho3D::RenderPath *
  10329. RenderPath_Clone (Urho3D::RenderPath *_target)
  10330. {
  10331. auto copy = _target->Clone ();
  10332. auto plain = copy.Get();
  10333. copy.Detach();
  10334. delete copy;
  10335. return plain;
  10336. }
  10337. DllExport int
  10338. RenderPath_Load (Urho3D::RenderPath *_target, Urho3D::XMLFile * file)
  10339. {
  10340. return _target->Load (file);
  10341. }
  10342. DllExport int
  10343. RenderPath_Append (Urho3D::RenderPath *_target, Urho3D::XMLFile * file)
  10344. {
  10345. return _target->Append (file);
  10346. }
  10347. DllExport void
  10348. RenderPath_SetEnabled (Urho3D::RenderPath *_target, const char * tag, bool active)
  10349. {
  10350. _target->SetEnabled (Urho3D::String(tag), active);
  10351. }
  10352. DllExport void
  10353. RenderPath_ToggleEnabled (Urho3D::RenderPath *_target, const char * tag)
  10354. {
  10355. _target->ToggleEnabled (Urho3D::String(tag));
  10356. }
  10357. DllExport void
  10358. RenderPath_RemoveRenderTarget (Urho3D::RenderPath *_target, unsigned int index)
  10359. {
  10360. _target->RemoveRenderTarget (index);
  10361. }
  10362. DllExport void
  10363. RenderPath_RemoveRenderTarget0 (Urho3D::RenderPath *_target, const char * name)
  10364. {
  10365. _target->RemoveRenderTarget (Urho3D::String(name));
  10366. }
  10367. DllExport void
  10368. RenderPath_RemoveRenderTargets (Urho3D::RenderPath *_target, const char * tag)
  10369. {
  10370. _target->RemoveRenderTargets (Urho3D::String(tag));
  10371. }
  10372. DllExport void
  10373. RenderPath_SetCommand (Urho3D::RenderPath *_target, unsigned int index, const struct Urho3D::RenderPathCommand & command)
  10374. {
  10375. _target->SetCommand (index, command);
  10376. }
  10377. DllExport void
  10378. RenderPath_AddCommand (Urho3D::RenderPath *_target, const struct Urho3D::RenderPathCommand & command)
  10379. {
  10380. _target->AddCommand (command);
  10381. }
  10382. DllExport void
  10383. RenderPath_InsertCommand (Urho3D::RenderPath *_target, unsigned int index, const struct Urho3D::RenderPathCommand & command)
  10384. {
  10385. _target->InsertCommand (index, command);
  10386. }
  10387. DllExport void
  10388. RenderPath_RemoveCommand (Urho3D::RenderPath *_target, unsigned int index)
  10389. {
  10390. _target->RemoveCommand (index);
  10391. }
  10392. DllExport void
  10393. RenderPath_RemoveCommands (Urho3D::RenderPath *_target, const char * tag)
  10394. {
  10395. _target->RemoveCommands (Urho3D::String(tag));
  10396. }
  10397. // Urho3D::Variant overloads begin:
  10398. DllExport void
  10399. RenderPath_SetShaderParameter0 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::Vector3 & value)
  10400. {
  10401. _target->SetShaderParameter (Urho3D::String(name), (value));
  10402. }
  10403. DllExport void
  10404. RenderPath_SetShaderParameter1 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::IntRect & value)
  10405. {
  10406. _target->SetShaderParameter (Urho3D::String(name), (value));
  10407. }
  10408. DllExport void
  10409. RenderPath_SetShaderParameter2 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::Color & value)
  10410. {
  10411. _target->SetShaderParameter (Urho3D::String(name), (value));
  10412. }
  10413. DllExport void
  10414. RenderPath_SetShaderParameter3 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::Vector2 & value)
  10415. {
  10416. _target->SetShaderParameter (Urho3D::String(name), (value));
  10417. }
  10418. DllExport void
  10419. RenderPath_SetShaderParameter4 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::Vector4 & value)
  10420. {
  10421. _target->SetShaderParameter (Urho3D::String(name), (value));
  10422. }
  10423. DllExport void
  10424. RenderPath_SetShaderParameter5 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::IntVector2 & value)
  10425. {
  10426. _target->SetShaderParameter (Urho3D::String(name), (value));
  10427. }
  10428. DllExport void
  10429. RenderPath_SetShaderParameter6 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::Quaternion & value)
  10430. {
  10431. _target->SetShaderParameter (Urho3D::String(name), (value));
  10432. }
  10433. DllExport void
  10434. RenderPath_SetShaderParameter7 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::Matrix4 & value)
  10435. {
  10436. _target->SetShaderParameter (Urho3D::String(name), (value));
  10437. }
  10438. DllExport void
  10439. RenderPath_SetShaderParameter8 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::Matrix3x4 & value)
  10440. {
  10441. _target->SetShaderParameter (Urho3D::String(name), (value));
  10442. }
  10443. DllExport void
  10444. RenderPath_SetShaderParameter9 (Urho3D::RenderPath *_target, const char * name, int value)
  10445. {
  10446. _target->SetShaderParameter (Urho3D::String(name), (value));
  10447. }
  10448. DllExport void
  10449. RenderPath_SetShaderParameter10 (Urho3D::RenderPath *_target, const char * name, float value)
  10450. {
  10451. _target->SetShaderParameter (Urho3D::String(name), (value));
  10452. }
  10453. DllExport void
  10454. RenderPath_SetShaderParameter11 (Urho3D::RenderPath *_target, const char * name, const char * value)
  10455. {
  10456. _target->SetShaderParameter (Urho3D::String(name), Urho3D::String(value));
  10457. }
  10458. // Urho3D::Variant overloads end.
  10459. DllExport unsigned int
  10460. RenderPath_GetNumRenderTargets (Urho3D::RenderPath *_target)
  10461. {
  10462. return _target->GetNumRenderTargets ();
  10463. }
  10464. DllExport unsigned int
  10465. RenderPath_GetNumCommands (Urho3D::RenderPath *_target)
  10466. {
  10467. return _target->GetNumCommands ();
  10468. }
  10469. DllExport Urho3D::RenderPathCommand *
  10470. RenderPath_GetCommand (Urho3D::RenderPath *_target, unsigned int index)
  10471. {
  10472. return _target->GetCommand (index);
  10473. }
  10474. // Urho3D::Variant overloads begin:
  10475. DllExport Interop::Vector3
  10476. RenderPath_GetShaderParameter0 (Urho3D::RenderPath *_target, const char * name)
  10477. {
  10478. return *((Interop::Vector3 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetVector3()));
  10479. }
  10480. DllExport Interop::IntRect
  10481. RenderPath_GetShaderParameter1 (Urho3D::RenderPath *_target, const char * name)
  10482. {
  10483. return *((Interop::IntRect *) &(_target->GetShaderParameter (Urho3D::String(name)).GetIntRect()));
  10484. }
  10485. DllExport Interop::Color
  10486. RenderPath_GetShaderParameter2 (Urho3D::RenderPath *_target, const char * name)
  10487. {
  10488. return *((Interop::Color *) &(_target->GetShaderParameter (Urho3D::String(name)).GetColor()));
  10489. }
  10490. DllExport Interop::Vector2
  10491. RenderPath_GetShaderParameter3 (Urho3D::RenderPath *_target, const char * name)
  10492. {
  10493. return *((Interop::Vector2 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetVector2()));
  10494. }
  10495. DllExport Interop::Vector4
  10496. RenderPath_GetShaderParameter4 (Urho3D::RenderPath *_target, const char * name)
  10497. {
  10498. return *((Interop::Vector4 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetVector4()));
  10499. }
  10500. DllExport Interop::IntVector2
  10501. RenderPath_GetShaderParameter5 (Urho3D::RenderPath *_target, const char * name)
  10502. {
  10503. return *((Interop::IntVector2 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetIntVector2()));
  10504. }
  10505. DllExport Interop::Quaternion
  10506. RenderPath_GetShaderParameter6 (Urho3D::RenderPath *_target, const char * name)
  10507. {
  10508. return *((Interop::Quaternion *) &(_target->GetShaderParameter (Urho3D::String(name)).GetQuaternion()));
  10509. }
  10510. DllExport Interop::Matrix4
  10511. RenderPath_GetShaderParameter7 (Urho3D::RenderPath *_target, const char * name)
  10512. {
  10513. return *((Interop::Matrix4 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetMatrix4()));
  10514. }
  10515. DllExport Interop::Matrix3x4
  10516. RenderPath_GetShaderParameter8 (Urho3D::RenderPath *_target, const char * name)
  10517. {
  10518. return *((Interop::Matrix3x4 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetMatrix3x4()));
  10519. }
  10520. DllExport int
  10521. RenderPath_GetShaderParameter9 (Urho3D::RenderPath *_target, const char * name)
  10522. {
  10523. return (_target->GetShaderParameter (Urho3D::String(name)).GetInt());
  10524. }
  10525. DllExport float
  10526. RenderPath_GetShaderParameter10 (Urho3D::RenderPath *_target, const char * name)
  10527. {
  10528. return (_target->GetShaderParameter (Urho3D::String(name)).GetFloat());
  10529. }
  10530. DllExport const char *
  10531. RenderPath_GetShaderParameter11 (Urho3D::RenderPath *_target, const char * name)
  10532. {
  10533. return stringdup(_target->GetShaderParameter (Urho3D::String(name)).GetString().CString());
  10534. }
  10535. // Urho3D::Variant overloads end.
  10536. DllExport int
  10537. Renderer_GetType (Urho3D::Renderer *_target)
  10538. {
  10539. return (_target->GetType ()).Value ();
  10540. }
  10541. DllExport const char *
  10542. Renderer_GetTypeName (Urho3D::Renderer *_target)
  10543. {
  10544. return stringdup((_target->GetTypeName ()).CString ());
  10545. }
  10546. DllExport int
  10547. Renderer_GetTypeStatic ()
  10548. {
  10549. return (Renderer::GetTypeStatic ()).Value ();
  10550. }
  10551. DllExport const char *
  10552. Renderer_GetTypeNameStatic ()
  10553. {
  10554. return stringdup((Renderer::GetTypeNameStatic ()).CString ());
  10555. }
  10556. DllExport void *
  10557. Renderer_Renderer (Urho3D::Context * context)
  10558. {
  10559. return WeakPtr<Renderer>(new Renderer(context));
  10560. }
  10561. DllExport void
  10562. Renderer_SetNumViewports (Urho3D::Renderer *_target, unsigned int num)
  10563. {
  10564. _target->SetNumViewports (num);
  10565. }
  10566. DllExport void
  10567. Renderer_SetViewport (Urho3D::Renderer *_target, unsigned int index, Urho3D::Viewport * viewport)
  10568. {
  10569. _target->SetViewport (index, viewport);
  10570. }
  10571. DllExport void
  10572. Renderer_SetDefaultRenderPath (Urho3D::Renderer *_target, Urho3D::RenderPath * renderPath)
  10573. {
  10574. _target->SetDefaultRenderPath (renderPath);
  10575. }
  10576. DllExport void
  10577. Renderer_SetDefaultRenderPath0 (Urho3D::Renderer *_target, Urho3D::XMLFile * file)
  10578. {
  10579. _target->SetDefaultRenderPath (file);
  10580. }
  10581. DllExport void
  10582. Renderer_SetDefaultTechnique (Urho3D::Renderer *_target, Urho3D::Technique * tech)
  10583. {
  10584. _target->SetDefaultTechnique (tech);
  10585. }
  10586. DllExport void
  10587. Renderer_SetHDRRendering (Urho3D::Renderer *_target, bool enable)
  10588. {
  10589. _target->SetHDRRendering (enable);
  10590. }
  10591. DllExport void
  10592. Renderer_SetSpecularLighting (Urho3D::Renderer *_target, bool enable)
  10593. {
  10594. _target->SetSpecularLighting (enable);
  10595. }
  10596. DllExport void
  10597. Renderer_SetTextureAnisotropy (Urho3D::Renderer *_target, int level)
  10598. {
  10599. _target->SetTextureAnisotropy (level);
  10600. }
  10601. DllExport void
  10602. Renderer_SetTextureFilterMode (Urho3D::Renderer *_target, enum Urho3D::TextureFilterMode mode)
  10603. {
  10604. _target->SetTextureFilterMode (mode);
  10605. }
  10606. DllExport void
  10607. Renderer_SetTextureQuality (Urho3D::Renderer *_target, int quality)
  10608. {
  10609. _target->SetTextureQuality (quality);
  10610. }
  10611. DllExport void
  10612. Renderer_SetMaterialQuality (Urho3D::Renderer *_target, int quality)
  10613. {
  10614. _target->SetMaterialQuality (quality);
  10615. }
  10616. DllExport void
  10617. Renderer_SetDrawShadows (Urho3D::Renderer *_target, bool enable)
  10618. {
  10619. _target->SetDrawShadows (enable);
  10620. }
  10621. DllExport void
  10622. Renderer_SetShadowMapSize (Urho3D::Renderer *_target, int size)
  10623. {
  10624. _target->SetShadowMapSize (size);
  10625. }
  10626. DllExport void
  10627. Renderer_SetShadowQuality (Urho3D::Renderer *_target, enum Urho3D::ShadowQuality quality)
  10628. {
  10629. _target->SetShadowQuality (quality);
  10630. }
  10631. DllExport void
  10632. Renderer_SetShadowSoftness (Urho3D::Renderer *_target, float shadowSoftness)
  10633. {
  10634. _target->SetShadowSoftness (shadowSoftness);
  10635. }
  10636. DllExport void
  10637. Renderer_SetVSMShadowParameters (Urho3D::Renderer *_target, float minVariance, float lightBleedingReduction)
  10638. {
  10639. _target->SetVSMShadowParameters (minVariance, lightBleedingReduction);
  10640. }
  10641. DllExport void
  10642. Renderer_SetVSMMultiSample (Urho3D::Renderer *_target, int multiSample)
  10643. {
  10644. _target->SetVSMMultiSample (multiSample);
  10645. }
  10646. DllExport void
  10647. Renderer_SetReuseShadowMaps (Urho3D::Renderer *_target, bool enable)
  10648. {
  10649. _target->SetReuseShadowMaps (enable);
  10650. }
  10651. DllExport void
  10652. Renderer_SetMaxShadowMaps (Urho3D::Renderer *_target, int shadowMaps)
  10653. {
  10654. _target->SetMaxShadowMaps (shadowMaps);
  10655. }
  10656. DllExport void
  10657. Renderer_SetDynamicInstancing (Urho3D::Renderer *_target, bool enable)
  10658. {
  10659. _target->SetDynamicInstancing (enable);
  10660. }
  10661. DllExport void
  10662. Renderer_SetNumExtraInstancingBufferElements (Urho3D::Renderer *_target, int elements)
  10663. {
  10664. _target->SetNumExtraInstancingBufferElements (elements);
  10665. }
  10666. DllExport void
  10667. Renderer_SetMinInstances (Urho3D::Renderer *_target, int instances)
  10668. {
  10669. _target->SetMinInstances (instances);
  10670. }
  10671. DllExport void
  10672. Renderer_SetMaxSortedInstances (Urho3D::Renderer *_target, int instances)
  10673. {
  10674. _target->SetMaxSortedInstances (instances);
  10675. }
  10676. DllExport void
  10677. Renderer_SetMaxOccluderTriangles (Urho3D::Renderer *_target, int triangles)
  10678. {
  10679. _target->SetMaxOccluderTriangles (triangles);
  10680. }
  10681. DllExport void
  10682. Renderer_SetOcclusionBufferSize (Urho3D::Renderer *_target, int size)
  10683. {
  10684. _target->SetOcclusionBufferSize (size);
  10685. }
  10686. DllExport void
  10687. Renderer_SetOccluderSizeThreshold (Urho3D::Renderer *_target, float screenSize)
  10688. {
  10689. _target->SetOccluderSizeThreshold (screenSize);
  10690. }
  10691. DllExport void
  10692. Renderer_SetThreadedOcclusion (Urho3D::Renderer *_target, bool enable)
  10693. {
  10694. _target->SetThreadedOcclusion (enable);
  10695. }
  10696. DllExport void
  10697. Renderer_SetMobileShadowBiasMul (Urho3D::Renderer *_target, float mul)
  10698. {
  10699. _target->SetMobileShadowBiasMul (mul);
  10700. }
  10701. DllExport void
  10702. Renderer_SetMobileShadowBiasAdd (Urho3D::Renderer *_target, float add)
  10703. {
  10704. _target->SetMobileShadowBiasAdd (add);
  10705. }
  10706. DllExport void
  10707. Renderer_SetMobileNormalOffsetMul (Urho3D::Renderer *_target, float mul)
  10708. {
  10709. _target->SetMobileNormalOffsetMul (mul);
  10710. }
  10711. DllExport void
  10712. Renderer_ReloadShaders (Urho3D::Renderer *_target)
  10713. {
  10714. _target->ReloadShaders ();
  10715. }
  10716. DllExport void
  10717. Renderer_ApplyShadowMapFilter (Urho3D::Renderer *_target, Urho3D::View * view, Urho3D::Texture2D * shadowMap, float blurScale)
  10718. {
  10719. _target->ApplyShadowMapFilter (view, shadowMap, blurScale);
  10720. }
  10721. DllExport unsigned int
  10722. Renderer_GetNumViewports (Urho3D::Renderer *_target)
  10723. {
  10724. return _target->GetNumViewports ();
  10725. }
  10726. DllExport Urho3D::Viewport *
  10727. Renderer_GetViewport (Urho3D::Renderer *_target, unsigned int index)
  10728. {
  10729. return _target->GetViewport (index);
  10730. }
  10731. DllExport Urho3D::RenderPath *
  10732. Renderer_GetDefaultRenderPath (Urho3D::Renderer *_target)
  10733. {
  10734. return _target->GetDefaultRenderPath ();
  10735. }
  10736. DllExport Urho3D::Technique *
  10737. Renderer_GetDefaultTechnique (Urho3D::Renderer *_target)
  10738. {
  10739. return _target->GetDefaultTechnique ();
  10740. }
  10741. DllExport int
  10742. Renderer_GetHDRRendering (Urho3D::Renderer *_target)
  10743. {
  10744. return _target->GetHDRRendering ();
  10745. }
  10746. DllExport int
  10747. Renderer_GetSpecularLighting (Urho3D::Renderer *_target)
  10748. {
  10749. return _target->GetSpecularLighting ();
  10750. }
  10751. DllExport int
  10752. Renderer_GetDrawShadows (Urho3D::Renderer *_target)
  10753. {
  10754. return _target->GetDrawShadows ();
  10755. }
  10756. DllExport int
  10757. Renderer_GetTextureAnisotropy (Urho3D::Renderer *_target)
  10758. {
  10759. return _target->GetTextureAnisotropy ();
  10760. }
  10761. DllExport enum Urho3D::TextureFilterMode
  10762. Renderer_GetTextureFilterMode (Urho3D::Renderer *_target)
  10763. {
  10764. return _target->GetTextureFilterMode ();
  10765. }
  10766. DllExport int
  10767. Renderer_GetTextureQuality (Urho3D::Renderer *_target)
  10768. {
  10769. return _target->GetTextureQuality ();
  10770. }
  10771. DllExport int
  10772. Renderer_GetMaterialQuality (Urho3D::Renderer *_target)
  10773. {
  10774. return _target->GetMaterialQuality ();
  10775. }
  10776. DllExport int
  10777. Renderer_GetShadowMapSize (Urho3D::Renderer *_target)
  10778. {
  10779. return _target->GetShadowMapSize ();
  10780. }
  10781. DllExport enum Urho3D::ShadowQuality
  10782. Renderer_GetShadowQuality (Urho3D::Renderer *_target)
  10783. {
  10784. return _target->GetShadowQuality ();
  10785. }
  10786. DllExport float
  10787. Renderer_GetShadowSoftness (Urho3D::Renderer *_target)
  10788. {
  10789. return _target->GetShadowSoftness ();
  10790. }
  10791. DllExport Interop::Vector2
  10792. Renderer_GetVSMShadowParameters (Urho3D::Renderer *_target)
  10793. {
  10794. return *((Interop::Vector2 *) &(_target->GetVSMShadowParameters ()));
  10795. }
  10796. DllExport int
  10797. Renderer_GetVSMMultiSample (Urho3D::Renderer *_target)
  10798. {
  10799. return _target->GetVSMMultiSample ();
  10800. }
  10801. DllExport int
  10802. Renderer_GetReuseShadowMaps (Urho3D::Renderer *_target)
  10803. {
  10804. return _target->GetReuseShadowMaps ();
  10805. }
  10806. DllExport int
  10807. Renderer_GetMaxShadowMaps (Urho3D::Renderer *_target)
  10808. {
  10809. return _target->GetMaxShadowMaps ();
  10810. }
  10811. DllExport int
  10812. Renderer_GetDynamicInstancing (Urho3D::Renderer *_target)
  10813. {
  10814. return _target->GetDynamicInstancing ();
  10815. }
  10816. DllExport int
  10817. Renderer_GetNumExtraInstancingBufferElements (Urho3D::Renderer *_target)
  10818. {
  10819. return _target->GetNumExtraInstancingBufferElements ();
  10820. }
  10821. DllExport int
  10822. Renderer_GetMinInstances (Urho3D::Renderer *_target)
  10823. {
  10824. return _target->GetMinInstances ();
  10825. }
  10826. DllExport int
  10827. Renderer_GetMaxSortedInstances (Urho3D::Renderer *_target)
  10828. {
  10829. return _target->GetMaxSortedInstances ();
  10830. }
  10831. DllExport int
  10832. Renderer_GetMaxOccluderTriangles (Urho3D::Renderer *_target)
  10833. {
  10834. return _target->GetMaxOccluderTriangles ();
  10835. }
  10836. DllExport int
  10837. Renderer_GetOcclusionBufferSize (Urho3D::Renderer *_target)
  10838. {
  10839. return _target->GetOcclusionBufferSize ();
  10840. }
  10841. DllExport float
  10842. Renderer_GetOccluderSizeThreshold (Urho3D::Renderer *_target)
  10843. {
  10844. return _target->GetOccluderSizeThreshold ();
  10845. }
  10846. DllExport int
  10847. Renderer_GetThreadedOcclusion (Urho3D::Renderer *_target)
  10848. {
  10849. return _target->GetThreadedOcclusion ();
  10850. }
  10851. DllExport float
  10852. Renderer_GetMobileShadowBiasMul (Urho3D::Renderer *_target)
  10853. {
  10854. return _target->GetMobileShadowBiasMul ();
  10855. }
  10856. DllExport float
  10857. Renderer_GetMobileShadowBiasAdd (Urho3D::Renderer *_target)
  10858. {
  10859. return _target->GetMobileShadowBiasAdd ();
  10860. }
  10861. DllExport float
  10862. Renderer_GetMobileNormalOffsetMul (Urho3D::Renderer *_target)
  10863. {
  10864. return _target->GetMobileNormalOffsetMul ();
  10865. }
  10866. DllExport unsigned int
  10867. Renderer_GetNumViews (Urho3D::Renderer *_target)
  10868. {
  10869. return _target->GetNumViews ();
  10870. }
  10871. DllExport unsigned int
  10872. Renderer_GetNumPrimitives (Urho3D::Renderer *_target)
  10873. {
  10874. return _target->GetNumPrimitives ();
  10875. }
  10876. DllExport unsigned int
  10877. Renderer_GetNumBatches (Urho3D::Renderer *_target)
  10878. {
  10879. return _target->GetNumBatches ();
  10880. }
  10881. DllExport unsigned int
  10882. Renderer_GetNumGeometries (Urho3D::Renderer *_target, bool allViews)
  10883. {
  10884. return _target->GetNumGeometries (allViews);
  10885. }
  10886. DllExport unsigned int
  10887. Renderer_GetNumLights (Urho3D::Renderer *_target, bool allViews)
  10888. {
  10889. return _target->GetNumLights (allViews);
  10890. }
  10891. DllExport unsigned int
  10892. Renderer_GetNumShadowMaps (Urho3D::Renderer *_target, bool allViews)
  10893. {
  10894. return _target->GetNumShadowMaps (allViews);
  10895. }
  10896. DllExport unsigned int
  10897. Renderer_GetNumOccluders (Urho3D::Renderer *_target, bool allViews)
  10898. {
  10899. return _target->GetNumOccluders (allViews);
  10900. }
  10901. DllExport Urho3D::Zone *
  10902. Renderer_GetDefaultZone (Urho3D::Renderer *_target)
  10903. {
  10904. return _target->GetDefaultZone ();
  10905. }
  10906. DllExport Urho3D::Material *
  10907. Renderer_GetDefaultMaterial (Urho3D::Renderer *_target)
  10908. {
  10909. return _target->GetDefaultMaterial ();
  10910. }
  10911. DllExport Urho3D::Texture2D *
  10912. Renderer_GetDefaultLightRamp (Urho3D::Renderer *_target)
  10913. {
  10914. return _target->GetDefaultLightRamp ();
  10915. }
  10916. DllExport Urho3D::Texture2D *
  10917. Renderer_GetDefaultLightSpot (Urho3D::Renderer *_target)
  10918. {
  10919. return _target->GetDefaultLightSpot ();
  10920. }
  10921. DllExport Urho3D::TextureCube *
  10922. Renderer_GetFaceSelectCubeMap (Urho3D::Renderer *_target)
  10923. {
  10924. return _target->GetFaceSelectCubeMap ();
  10925. }
  10926. DllExport Urho3D::TextureCube *
  10927. Renderer_GetIndirectionCubeMap (Urho3D::Renderer *_target)
  10928. {
  10929. return _target->GetIndirectionCubeMap ();
  10930. }
  10931. DllExport Urho3D::VertexBuffer *
  10932. Renderer_GetInstancingBuffer (Urho3D::Renderer *_target)
  10933. {
  10934. return _target->GetInstancingBuffer ();
  10935. }
  10936. DllExport void
  10937. Renderer_Update (Urho3D::Renderer *_target, float timeStep)
  10938. {
  10939. _target->Update (timeStep);
  10940. }
  10941. DllExport void
  10942. Renderer_Render (Urho3D::Renderer *_target)
  10943. {
  10944. _target->Render ();
  10945. }
  10946. DllExport void
  10947. Renderer_DrawDebugGeometry (Urho3D::Renderer *_target, bool depthTest)
  10948. {
  10949. _target->DrawDebugGeometry (depthTest);
  10950. }
  10951. DllExport void
  10952. Renderer_QueueRenderSurface (Urho3D::Renderer *_target, Urho3D::RenderSurface * renderTarget)
  10953. {
  10954. _target->QueueRenderSurface (renderTarget);
  10955. }
  10956. DllExport void
  10957. Renderer_QueueViewport (Urho3D::Renderer *_target, Urho3D::RenderSurface * renderTarget, Urho3D::Viewport * viewport)
  10958. {
  10959. _target->QueueViewport (renderTarget, viewport);
  10960. }
  10961. DllExport Urho3D::Geometry *
  10962. Renderer_GetLightGeometry (Urho3D::Renderer *_target, Urho3D::Light * light)
  10963. {
  10964. return _target->GetLightGeometry (light);
  10965. }
  10966. DllExport Urho3D::Geometry *
  10967. Renderer_GetQuadGeometry (Urho3D::Renderer *_target)
  10968. {
  10969. return _target->GetQuadGeometry ();
  10970. }
  10971. DllExport Urho3D::Texture2D *
  10972. Renderer_GetShadowMap (Urho3D::Renderer *_target, Urho3D::Light * light, Urho3D::Camera * camera, unsigned int viewWidth, unsigned int viewHeight)
  10973. {
  10974. return _target->GetShadowMap (light, camera, viewWidth, viewHeight);
  10975. }
  10976. DllExport Urho3D::Texture *
  10977. Renderer_GetScreenBuffer (Urho3D::Renderer *_target, int width, int height, unsigned int format, int multiSample, bool autoResolve, bool cubemap, bool filtered, bool srgb, unsigned int persistentKey)
  10978. {
  10979. return _target->GetScreenBuffer (width, height, format, multiSample, autoResolve, cubemap, filtered, srgb, persistentKey);
  10980. }
  10981. DllExport Urho3D::RenderSurface *
  10982. Renderer_GetDepthStencil (Urho3D::Renderer *_target, int width, int height, int multiSample, bool autoResolve)
  10983. {
  10984. return _target->GetDepthStencil (width, height, multiSample, autoResolve);
  10985. }
  10986. DllExport Urho3D::OcclusionBuffer *
  10987. Renderer_GetOcclusionBuffer (Urho3D::Renderer *_target, Urho3D::Camera * camera)
  10988. {
  10989. return _target->GetOcclusionBuffer (camera);
  10990. }
  10991. DllExport Urho3D::Camera *
  10992. Renderer_GetShadowCamera (Urho3D::Renderer *_target)
  10993. {
  10994. return _target->GetShadowCamera ();
  10995. }
  10996. DllExport void
  10997. Renderer_StorePreparedView (Urho3D::Renderer *_target, Urho3D::View * view, Urho3D::Camera * cullCamera)
  10998. {
  10999. _target->StorePreparedView (view, cullCamera);
  11000. }
  11001. DllExport Urho3D::View *
  11002. Renderer_GetPreparedView (Urho3D::Renderer *_target, Urho3D::Camera * cullCamera)
  11003. {
  11004. return _target->GetPreparedView (cullCamera);
  11005. }
  11006. DllExport void
  11007. Renderer_SetCullMode (Urho3D::Renderer *_target, enum Urho3D::CullMode mode, Urho3D::Camera * camera)
  11008. {
  11009. _target->SetCullMode (mode, camera);
  11010. }
  11011. DllExport int
  11012. Renderer_ResizeInstancingBuffer (Urho3D::Renderer *_target, unsigned int numInstances)
  11013. {
  11014. return _target->ResizeInstancingBuffer (numInstances);
  11015. }
  11016. DllExport void
  11017. Renderer_SaveScreenBufferAllocations (Urho3D::Renderer *_target)
  11018. {
  11019. _target->SaveScreenBufferAllocations ();
  11020. }
  11021. DllExport void
  11022. Renderer_RestoreScreenBufferAllocations (Urho3D::Renderer *_target)
  11023. {
  11024. _target->RestoreScreenBufferAllocations ();
  11025. }
  11026. DllExport void
  11027. Renderer_OptimizeLightByScissor (Urho3D::Renderer *_target, Urho3D::Light * light, Urho3D::Camera * camera)
  11028. {
  11029. _target->OptimizeLightByScissor (light, camera);
  11030. }
  11031. DllExport void
  11032. Renderer_OptimizeLightByStencil (Urho3D::Renderer *_target, Urho3D::Light * light, Urho3D::Camera * camera)
  11033. {
  11034. _target->OptimizeLightByStencil (light, camera);
  11035. }
  11036. DllExport Urho3D::View *
  11037. Renderer_GetActualView (Urho3D::View * view)
  11038. {
  11039. return Renderer::GetActualView (view);
  11040. }
  11041. DllExport int
  11042. Shader_GetType (Urho3D::Shader *_target)
  11043. {
  11044. return (_target->GetType ()).Value ();
  11045. }
  11046. DllExport const char *
  11047. Shader_GetTypeName (Urho3D::Shader *_target)
  11048. {
  11049. return stringdup((_target->GetTypeName ()).CString ());
  11050. }
  11051. DllExport int
  11052. Shader_GetTypeStatic ()
  11053. {
  11054. return (Shader::GetTypeStatic ()).Value ();
  11055. }
  11056. DllExport const char *
  11057. Shader_GetTypeNameStatic ()
  11058. {
  11059. return stringdup((Shader::GetTypeNameStatic ()).CString ());
  11060. }
  11061. DllExport void *
  11062. Shader_Shader (Urho3D::Context * context)
  11063. {
  11064. return WeakPtr<Shader>(new Shader(context));
  11065. }
  11066. DllExport void
  11067. Shader_RegisterObject (Urho3D::Context * context)
  11068. {
  11069. Shader::RegisterObject (context);
  11070. }
  11071. DllExport int
  11072. Shader_BeginLoad_File (Urho3D::Shader *_target, File * source)
  11073. {
  11074. return _target->BeginLoad (*source);
  11075. }
  11076. DllExport int
  11077. Shader_BeginLoad_MemoryBuffer (Urho3D::Shader *_target, MemoryBuffer * source)
  11078. {
  11079. return _target->BeginLoad (*source);
  11080. }
  11081. DllExport int
  11082. Shader_EndLoad (Urho3D::Shader *_target)
  11083. {
  11084. return _target->EndLoad ();
  11085. }
  11086. DllExport Urho3D::ShaderVariation *
  11087. Shader_GetVariation (Urho3D::Shader *_target, enum Urho3D::ShaderType type, const char * defines)
  11088. {
  11089. return _target->GetVariation (type, Urho3D::String(defines));
  11090. }
  11091. DllExport const char *
  11092. Shader_GetSourceCode (Urho3D::Shader *_target, enum Urho3D::ShaderType type)
  11093. {
  11094. return stringdup((_target->GetSourceCode (type)).CString ());
  11095. }
  11096. DllExport unsigned int
  11097. Shader_GetTimeStamp (Urho3D::Shader *_target)
  11098. {
  11099. return _target->GetTimeStamp ();
  11100. }
  11101. DllExport int
  11102. RibbonTrail_GetType (Urho3D::RibbonTrail *_target)
  11103. {
  11104. return (_target->GetType ()).Value ();
  11105. }
  11106. DllExport const char *
  11107. RibbonTrail_GetTypeName (Urho3D::RibbonTrail *_target)
  11108. {
  11109. return stringdup((_target->GetTypeName ()).CString ());
  11110. }
  11111. DllExport int
  11112. RibbonTrail_GetTypeStatic ()
  11113. {
  11114. return (RibbonTrail::GetTypeStatic ()).Value ();
  11115. }
  11116. DllExport const char *
  11117. RibbonTrail_GetTypeNameStatic ()
  11118. {
  11119. return stringdup((RibbonTrail::GetTypeNameStatic ()).CString ());
  11120. }
  11121. DllExport void *
  11122. RibbonTrail_RibbonTrail (Urho3D::Context * context)
  11123. {
  11124. return WeakPtr<RibbonTrail>(new RibbonTrail(context));
  11125. }
  11126. DllExport void
  11127. RibbonTrail_RegisterObject (Urho3D::Context * context)
  11128. {
  11129. RibbonTrail::RegisterObject (context);
  11130. }
  11131. DllExport void
  11132. RibbonTrail_OnSetEnabled (Urho3D::RibbonTrail *_target)
  11133. {
  11134. _target->OnSetEnabled ();
  11135. }
  11136. DllExport enum Urho3D::UpdateGeometryType
  11137. RibbonTrail_GetUpdateGeometryType (Urho3D::RibbonTrail *_target)
  11138. {
  11139. return _target->GetUpdateGeometryType ();
  11140. }
  11141. DllExport void
  11142. RibbonTrail_SetMaterial (Urho3D::RibbonTrail *_target, Urho3D::Material * material)
  11143. {
  11144. _target->SetMaterial (material);
  11145. }
  11146. DllExport void
  11147. RibbonTrail_SetVertexDistance (Urho3D::RibbonTrail *_target, float length)
  11148. {
  11149. _target->SetVertexDistance (length);
  11150. }
  11151. DllExport void
  11152. RibbonTrail_SetWidth (Urho3D::RibbonTrail *_target, float width)
  11153. {
  11154. _target->SetWidth (width);
  11155. }
  11156. DllExport void
  11157. RibbonTrail_SetStartColor (Urho3D::RibbonTrail *_target, const class Urho3D::Color & color)
  11158. {
  11159. _target->SetStartColor (color);
  11160. }
  11161. DllExport void
  11162. RibbonTrail_SetEndColor (Urho3D::RibbonTrail *_target, const class Urho3D::Color & color)
  11163. {
  11164. _target->SetEndColor (color);
  11165. }
  11166. DllExport void
  11167. RibbonTrail_SetStartScale (Urho3D::RibbonTrail *_target, float startScale)
  11168. {
  11169. _target->SetStartScale (startScale);
  11170. }
  11171. DllExport void
  11172. RibbonTrail_SetEndScale (Urho3D::RibbonTrail *_target, float endScale)
  11173. {
  11174. _target->SetEndScale (endScale);
  11175. }
  11176. DllExport void
  11177. RibbonTrail_SetTrailType (Urho3D::RibbonTrail *_target, enum Urho3D::TrailType type)
  11178. {
  11179. _target->SetTrailType (type);
  11180. }
  11181. DllExport void
  11182. RibbonTrail_SetSorted (Urho3D::RibbonTrail *_target, bool enable)
  11183. {
  11184. _target->SetSorted (enable);
  11185. }
  11186. DllExport void
  11187. RibbonTrail_SetLifetime (Urho3D::RibbonTrail *_target, float time)
  11188. {
  11189. _target->SetLifetime (time);
  11190. }
  11191. DllExport void
  11192. RibbonTrail_SetEmitting (Urho3D::RibbonTrail *_target, bool emitting)
  11193. {
  11194. _target->SetEmitting (emitting);
  11195. }
  11196. DllExport void
  11197. RibbonTrail_SetUpdateInvisible (Urho3D::RibbonTrail *_target, bool enable)
  11198. {
  11199. _target->SetUpdateInvisible (enable);
  11200. }
  11201. DllExport void
  11202. RibbonTrail_SetTailColumn (Urho3D::RibbonTrail *_target, unsigned int tailColumn)
  11203. {
  11204. _target->SetTailColumn (tailColumn);
  11205. }
  11206. DllExport void
  11207. RibbonTrail_SetAnimationLodBias (Urho3D::RibbonTrail *_target, float bias)
  11208. {
  11209. _target->SetAnimationLodBias (bias);
  11210. }
  11211. DllExport void
  11212. RibbonTrail_Commit (Urho3D::RibbonTrail *_target)
  11213. {
  11214. _target->Commit ();
  11215. }
  11216. DllExport Urho3D::Material *
  11217. RibbonTrail_GetMaterial (Urho3D::RibbonTrail *_target)
  11218. {
  11219. return _target->GetMaterial ();
  11220. }
  11221. DllExport Urho3D::ResourceRef
  11222. RibbonTrail_GetMaterialAttr (Urho3D::RibbonTrail *_target)
  11223. {
  11224. return _target->GetMaterialAttr ();
  11225. }
  11226. DllExport float
  11227. RibbonTrail_GetVertexDistance (Urho3D::RibbonTrail *_target)
  11228. {
  11229. return _target->GetVertexDistance ();
  11230. }
  11231. DllExport float
  11232. RibbonTrail_GetWidth (Urho3D::RibbonTrail *_target)
  11233. {
  11234. return _target->GetWidth ();
  11235. }
  11236. DllExport Interop::Color
  11237. RibbonTrail_GetStartColor (Urho3D::RibbonTrail *_target)
  11238. {
  11239. return *((Interop::Color *) &(_target->GetStartColor ()));
  11240. }
  11241. DllExport Interop::Color
  11242. RibbonTrail_GetEndColor (Urho3D::RibbonTrail *_target)
  11243. {
  11244. return *((Interop::Color *) &(_target->GetEndColor ()));
  11245. }
  11246. DllExport float
  11247. RibbonTrail_GetStartScale (Urho3D::RibbonTrail *_target)
  11248. {
  11249. return _target->GetStartScale ();
  11250. }
  11251. DllExport float
  11252. RibbonTrail_GetEndScale (Urho3D::RibbonTrail *_target)
  11253. {
  11254. return _target->GetEndScale ();
  11255. }
  11256. DllExport int
  11257. RibbonTrail_IsSorted (Urho3D::RibbonTrail *_target)
  11258. {
  11259. return _target->IsSorted ();
  11260. }
  11261. DllExport float
  11262. RibbonTrail_GetLifetime (Urho3D::RibbonTrail *_target)
  11263. {
  11264. return _target->GetLifetime ();
  11265. }
  11266. DllExport float
  11267. RibbonTrail_GetAnimationLodBias (Urho3D::RibbonTrail *_target)
  11268. {
  11269. return _target->GetAnimationLodBias ();
  11270. }
  11271. DllExport enum Urho3D::TrailType
  11272. RibbonTrail_GetTrailType (Urho3D::RibbonTrail *_target)
  11273. {
  11274. return _target->GetTrailType ();
  11275. }
  11276. DllExport unsigned int
  11277. RibbonTrail_GetTailColumn (Urho3D::RibbonTrail *_target)
  11278. {
  11279. return _target->GetTailColumn ();
  11280. }
  11281. DllExport int
  11282. RibbonTrail_IsEmitting (Urho3D::RibbonTrail *_target)
  11283. {
  11284. return _target->IsEmitting ();
  11285. }
  11286. DllExport int
  11287. RibbonTrail_GetUpdateInvisible (Urho3D::RibbonTrail *_target)
  11288. {
  11289. return _target->GetUpdateInvisible ();
  11290. }
  11291. DllExport void *
  11292. XmlElement_XMLElement ()
  11293. {
  11294. return new XMLElement();
  11295. }
  11296. DllExport void *
  11297. XmlElement_XMLElement0 (const class Urho3D::XMLElement & rhs)
  11298. {
  11299. return new XMLElement(rhs);
  11300. }
  11301. DllExport int
  11302. XmlElement_RemoveChild (Urho3D::XMLElement *_target, const class Urho3D::XMLElement & element)
  11303. {
  11304. return _target->RemoveChild (element);
  11305. }
  11306. DllExport int
  11307. XmlElement_RemoveChild1 (Urho3D::XMLElement *_target, const char * name)
  11308. {
  11309. return _target->RemoveChild (Urho3D::String(name));
  11310. }
  11311. DllExport int
  11312. XmlElement_RemoveChildren (Urho3D::XMLElement *_target, const char * name)
  11313. {
  11314. return _target->RemoveChildren (Urho3D::String(name));
  11315. }
  11316. DllExport int
  11317. XmlElement_RemoveAttribute (Urho3D::XMLElement *_target, const char * name)
  11318. {
  11319. return _target->RemoveAttribute (Urho3D::String(name));
  11320. }
  11321. DllExport int
  11322. XmlElement_SetValue (Urho3D::XMLElement *_target, const char * value)
  11323. {
  11324. return _target->SetValue (Urho3D::String(value));
  11325. }
  11326. DllExport int
  11327. XmlElement_SetAttribute (Urho3D::XMLElement *_target, const char * name, const char * value)
  11328. {
  11329. return _target->SetAttribute (Urho3D::String(name), Urho3D::String(value));
  11330. }
  11331. DllExport int
  11332. XmlElement_SetAttribute2 (Urho3D::XMLElement *_target, const char * value)
  11333. {
  11334. return _target->SetAttribute (Urho3D::String(value));
  11335. }
  11336. DllExport int
  11337. XmlElement_SetBool (Urho3D::XMLElement *_target, const char * name, bool value)
  11338. {
  11339. return _target->SetBool (Urho3D::String(name), value);
  11340. }
  11341. DllExport int
  11342. XmlElement_SetBoundingBox (Urho3D::XMLElement *_target, const class Urho3D::BoundingBox & value)
  11343. {
  11344. return _target->SetBoundingBox (value);
  11345. }
  11346. DllExport int
  11347. XmlElement_SetBuffer (Urho3D::XMLElement *_target, const char * name, const void * data, unsigned int size)
  11348. {
  11349. return _target->SetBuffer (Urho3D::String(name), data, size);
  11350. }
  11351. DllExport int
  11352. XmlElement_SetColor (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Color & value)
  11353. {
  11354. return _target->SetColor (Urho3D::String(name), value);
  11355. }
  11356. DllExport int
  11357. XmlElement_SetFloat (Urho3D::XMLElement *_target, const char * name, float value)
  11358. {
  11359. return _target->SetFloat (Urho3D::String(name), value);
  11360. }
  11361. DllExport int
  11362. XmlElement_SetDouble (Urho3D::XMLElement *_target, const char * name, double value)
  11363. {
  11364. return _target->SetDouble (Urho3D::String(name), value);
  11365. }
  11366. DllExport int
  11367. XmlElement_SetUInt (Urho3D::XMLElement *_target, const char * name, unsigned int value)
  11368. {
  11369. return _target->SetUInt (Urho3D::String(name), value);
  11370. }
  11371. DllExport int
  11372. XmlElement_SetInt (Urho3D::XMLElement *_target, const char * name, int value)
  11373. {
  11374. return _target->SetInt (Urho3D::String(name), value);
  11375. }
  11376. DllExport int
  11377. XmlElement_SetIntRect (Urho3D::XMLElement *_target, const char * name, const class Urho3D::IntRect & value)
  11378. {
  11379. return _target->SetIntRect (Urho3D::String(name), value);
  11380. }
  11381. DllExport int
  11382. XmlElement_SetIntVector2 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::IntVector2 & value)
  11383. {
  11384. return _target->SetIntVector2 (Urho3D::String(name), value);
  11385. }
  11386. DllExport int
  11387. XmlElement_SetQuaternion (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Quaternion & value)
  11388. {
  11389. return _target->SetQuaternion (Urho3D::String(name), value);
  11390. }
  11391. DllExport int
  11392. XmlElement_SetString (Urho3D::XMLElement *_target, const char * name, const char * value)
  11393. {
  11394. return _target->SetString (Urho3D::String(name), Urho3D::String(value));
  11395. }
  11396. // Urho3D::Variant overloads begin:
  11397. DllExport int
  11398. XmlElement_SetVariant0 (Urho3D::XMLElement *_target, const class Urho3D::Vector3 & value)
  11399. {
  11400. return _target->SetVariant ((value));
  11401. }
  11402. DllExport int
  11403. XmlElement_SetVariant1 (Urho3D::XMLElement *_target, const class Urho3D::IntRect & value)
  11404. {
  11405. return _target->SetVariant ((value));
  11406. }
  11407. DllExport int
  11408. XmlElement_SetVariant2 (Urho3D::XMLElement *_target, const class Urho3D::Color & value)
  11409. {
  11410. return _target->SetVariant ((value));
  11411. }
  11412. DllExport int
  11413. XmlElement_SetVariant3 (Urho3D::XMLElement *_target, const class Urho3D::Vector2 & value)
  11414. {
  11415. return _target->SetVariant ((value));
  11416. }
  11417. DllExport int
  11418. XmlElement_SetVariant4 (Urho3D::XMLElement *_target, const class Urho3D::Vector4 & value)
  11419. {
  11420. return _target->SetVariant ((value));
  11421. }
  11422. DllExport int
  11423. XmlElement_SetVariant5 (Urho3D::XMLElement *_target, const class Urho3D::IntVector2 & value)
  11424. {
  11425. return _target->SetVariant ((value));
  11426. }
  11427. DllExport int
  11428. XmlElement_SetVariant6 (Urho3D::XMLElement *_target, const class Urho3D::Quaternion & value)
  11429. {
  11430. return _target->SetVariant ((value));
  11431. }
  11432. DllExport int
  11433. XmlElement_SetVariant7 (Urho3D::XMLElement *_target, const class Urho3D::Matrix4 & value)
  11434. {
  11435. return _target->SetVariant ((value));
  11436. }
  11437. DllExport int
  11438. XmlElement_SetVariant8 (Urho3D::XMLElement *_target, const class Urho3D::Matrix3x4 & value)
  11439. {
  11440. return _target->SetVariant ((value));
  11441. }
  11442. DllExport int
  11443. XmlElement_SetVariant9 (Urho3D::XMLElement *_target, int value)
  11444. {
  11445. return _target->SetVariant ((value));
  11446. }
  11447. DllExport int
  11448. XmlElement_SetVariant10 (Urho3D::XMLElement *_target, float value)
  11449. {
  11450. return _target->SetVariant ((value));
  11451. }
  11452. DllExport int
  11453. XmlElement_SetVariant11 (Urho3D::XMLElement *_target, const char * value)
  11454. {
  11455. return _target->SetVariant (Urho3D::String(value));
  11456. }
  11457. // Urho3D::Variant overloads end.
  11458. // Urho3D::Variant overloads begin:
  11459. DllExport int
  11460. XmlElement_SetVariantValue0 (Urho3D::XMLElement *_target, const class Urho3D::Vector3 & value)
  11461. {
  11462. return _target->SetVariantValue ((value));
  11463. }
  11464. DllExport int
  11465. XmlElement_SetVariantValue1 (Urho3D::XMLElement *_target, const class Urho3D::IntRect & value)
  11466. {
  11467. return _target->SetVariantValue ((value));
  11468. }
  11469. DllExport int
  11470. XmlElement_SetVariantValue2 (Urho3D::XMLElement *_target, const class Urho3D::Color & value)
  11471. {
  11472. return _target->SetVariantValue ((value));
  11473. }
  11474. DllExport int
  11475. XmlElement_SetVariantValue3 (Urho3D::XMLElement *_target, const class Urho3D::Vector2 & value)
  11476. {
  11477. return _target->SetVariantValue ((value));
  11478. }
  11479. DllExport int
  11480. XmlElement_SetVariantValue4 (Urho3D::XMLElement *_target, const class Urho3D::Vector4 & value)
  11481. {
  11482. return _target->SetVariantValue ((value));
  11483. }
  11484. DllExport int
  11485. XmlElement_SetVariantValue5 (Urho3D::XMLElement *_target, const class Urho3D::IntVector2 & value)
  11486. {
  11487. return _target->SetVariantValue ((value));
  11488. }
  11489. DllExport int
  11490. XmlElement_SetVariantValue6 (Urho3D::XMLElement *_target, const class Urho3D::Quaternion & value)
  11491. {
  11492. return _target->SetVariantValue ((value));
  11493. }
  11494. DllExport int
  11495. XmlElement_SetVariantValue7 (Urho3D::XMLElement *_target, const class Urho3D::Matrix4 & value)
  11496. {
  11497. return _target->SetVariantValue ((value));
  11498. }
  11499. DllExport int
  11500. XmlElement_SetVariantValue8 (Urho3D::XMLElement *_target, const class Urho3D::Matrix3x4 & value)
  11501. {
  11502. return _target->SetVariantValue ((value));
  11503. }
  11504. DllExport int
  11505. XmlElement_SetVariantValue9 (Urho3D::XMLElement *_target, int value)
  11506. {
  11507. return _target->SetVariantValue ((value));
  11508. }
  11509. DllExport int
  11510. XmlElement_SetVariantValue10 (Urho3D::XMLElement *_target, float value)
  11511. {
  11512. return _target->SetVariantValue ((value));
  11513. }
  11514. DllExport int
  11515. XmlElement_SetVariantValue11 (Urho3D::XMLElement *_target, const char * value)
  11516. {
  11517. return _target->SetVariantValue (Urho3D::String(value));
  11518. }
  11519. // Urho3D::Variant overloads end.
  11520. DllExport int
  11521. XmlElement_SetVector2 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Vector2 & value)
  11522. {
  11523. return _target->SetVector2 (Urho3D::String(name), value);
  11524. }
  11525. DllExport int
  11526. XmlElement_SetVector3 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Vector3 & value)
  11527. {
  11528. return _target->SetVector3 (Urho3D::String(name), value);
  11529. }
  11530. DllExport int
  11531. XmlElement_SetVector4 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Vector4 & value)
  11532. {
  11533. return _target->SetVector4 (Urho3D::String(name), value);
  11534. }
  11535. // Urho3D::Variant overloads begin:
  11536. DllExport int
  11537. XmlElement_SetVectorVariant0 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Vector3 & value)
  11538. {
  11539. return _target->SetVectorVariant (Urho3D::String(name), (value));
  11540. }
  11541. DllExport int
  11542. XmlElement_SetVectorVariant1 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::IntRect & value)
  11543. {
  11544. return _target->SetVectorVariant (Urho3D::String(name), (value));
  11545. }
  11546. DllExport int
  11547. XmlElement_SetVectorVariant2 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Color & value)
  11548. {
  11549. return _target->SetVectorVariant (Urho3D::String(name), (value));
  11550. }
  11551. DllExport int
  11552. XmlElement_SetVectorVariant3 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Vector2 & value)
  11553. {
  11554. return _target->SetVectorVariant (Urho3D::String(name), (value));
  11555. }
  11556. DllExport int
  11557. XmlElement_SetVectorVariant4 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Vector4 & value)
  11558. {
  11559. return _target->SetVectorVariant (Urho3D::String(name), (value));
  11560. }
  11561. DllExport int
  11562. XmlElement_SetVectorVariant5 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::IntVector2 & value)
  11563. {
  11564. return _target->SetVectorVariant (Urho3D::String(name), (value));
  11565. }
  11566. DllExport int
  11567. XmlElement_SetVectorVariant6 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Quaternion & value)
  11568. {
  11569. return _target->SetVectorVariant (Urho3D::String(name), (value));
  11570. }
  11571. DllExport int
  11572. XmlElement_SetVectorVariant7 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Matrix4 & value)
  11573. {
  11574. return _target->SetVectorVariant (Urho3D::String(name), (value));
  11575. }
  11576. DllExport int
  11577. XmlElement_SetVectorVariant8 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Matrix3x4 & value)
  11578. {
  11579. return _target->SetVectorVariant (Urho3D::String(name), (value));
  11580. }
  11581. DllExport int
  11582. XmlElement_SetVectorVariant9 (Urho3D::XMLElement *_target, const char * name, int value)
  11583. {
  11584. return _target->SetVectorVariant (Urho3D::String(name), (value));
  11585. }
  11586. DllExport int
  11587. XmlElement_SetVectorVariant10 (Urho3D::XMLElement *_target, const char * name, float value)
  11588. {
  11589. return _target->SetVectorVariant (Urho3D::String(name), (value));
  11590. }
  11591. DllExport int
  11592. XmlElement_SetVectorVariant11 (Urho3D::XMLElement *_target, const char * name, const char * value)
  11593. {
  11594. return _target->SetVectorVariant (Urho3D::String(name), Urho3D::String(value));
  11595. }
  11596. // Urho3D::Variant overloads end.
  11597. DllExport int
  11598. XmlElement_SetMatrix3x4 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Matrix3x4 & value)
  11599. {
  11600. return _target->SetMatrix3x4 (Urho3D::String(name), value);
  11601. }
  11602. DllExport int
  11603. XmlElement_SetMatrix4 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Matrix4 & value)
  11604. {
  11605. return _target->SetMatrix4 (Urho3D::String(name), value);
  11606. }
  11607. DllExport int
  11608. XmlElement_IsNull (Urho3D::XMLElement *_target)
  11609. {
  11610. return _target->IsNull ();
  11611. }
  11612. DllExport int
  11613. XmlElement_NotNull (Urho3D::XMLElement *_target)
  11614. {
  11615. return _target->NotNull ();
  11616. }
  11617. DllExport const char *
  11618. XmlElement_GetName (Urho3D::XMLElement *_target)
  11619. {
  11620. return stringdup((_target->GetName ()).CString ());
  11621. }
  11622. DllExport int
  11623. XmlElement_HasChild (Urho3D::XMLElement *_target, const char * name)
  11624. {
  11625. return _target->HasChild (Urho3D::String(name));
  11626. }
  11627. DllExport unsigned int
  11628. XmlElement_GetNumAttributes (Urho3D::XMLElement *_target)
  11629. {
  11630. return _target->GetNumAttributes ();
  11631. }
  11632. DllExport int
  11633. XmlElement_HasAttribute (Urho3D::XMLElement *_target, const char * name)
  11634. {
  11635. return _target->HasAttribute (Urho3D::String(name));
  11636. }
  11637. DllExport const char *
  11638. XmlElement_GetValue (Urho3D::XMLElement *_target)
  11639. {
  11640. return stringdup((_target->GetValue ()).CString ());
  11641. }
  11642. DllExport const char *
  11643. XmlElement_GetAttribute (Urho3D::XMLElement *_target, const char * name)
  11644. {
  11645. return stringdup((_target->GetAttribute (Urho3D::String(name))).CString ());
  11646. }
  11647. DllExport const char *
  11648. XmlElement_GetAttributeLower (Urho3D::XMLElement *_target, const char * name)
  11649. {
  11650. return stringdup((_target->GetAttributeLower (Urho3D::String(name))).CString ());
  11651. }
  11652. DllExport const char *
  11653. XmlElement_GetAttributeUpper (Urho3D::XMLElement *_target, const char * name)
  11654. {
  11655. return stringdup((_target->GetAttributeUpper (Urho3D::String(name))).CString ());
  11656. }
  11657. DllExport int
  11658. XmlElement_GetBool (Urho3D::XMLElement *_target, const char * name)
  11659. {
  11660. return _target->GetBool (Urho3D::String(name));
  11661. }
  11662. DllExport int
  11663. XmlElement_GetBuffer (Urho3D::XMLElement *_target, const char * name, void * dest, unsigned int size)
  11664. {
  11665. return _target->GetBuffer (Urho3D::String(name), dest, size);
  11666. }
  11667. DllExport Interop::BoundingBox
  11668. XmlElement_GetBoundingBox (Urho3D::XMLElement *_target)
  11669. {
  11670. return *((Interop::BoundingBox *) &(_target->GetBoundingBox ()));
  11671. }
  11672. DllExport Interop::Color
  11673. XmlElement_GetColor (Urho3D::XMLElement *_target, const char * name)
  11674. {
  11675. return *((Interop::Color *) &(_target->GetColor (Urho3D::String(name))));
  11676. }
  11677. DllExport float
  11678. XmlElement_GetFloat (Urho3D::XMLElement *_target, const char * name)
  11679. {
  11680. return _target->GetFloat (Urho3D::String(name));
  11681. }
  11682. DllExport double
  11683. XmlElement_GetDouble (Urho3D::XMLElement *_target, const char * name)
  11684. {
  11685. return _target->GetDouble (Urho3D::String(name));
  11686. }
  11687. DllExport unsigned int
  11688. XmlElement_GetUInt (Urho3D::XMLElement *_target, const char * name)
  11689. {
  11690. return _target->GetUInt (Urho3D::String(name));
  11691. }
  11692. DllExport int
  11693. XmlElement_GetInt (Urho3D::XMLElement *_target, const char * name)
  11694. {
  11695. return _target->GetInt (Urho3D::String(name));
  11696. }
  11697. DllExport Urho3D::IntRect
  11698. XmlElement_GetIntRect (Urho3D::XMLElement *_target, const char * name)
  11699. {
  11700. return _target->GetIntRect (Urho3D::String(name));
  11701. }
  11702. DllExport Interop::IntVector2
  11703. XmlElement_GetIntVector2 (Urho3D::XMLElement *_target, const char * name)
  11704. {
  11705. return *((Interop::IntVector2 *) &(_target->GetIntVector2 (Urho3D::String(name))));
  11706. }
  11707. DllExport Urho3D::Rect
  11708. XmlElement_GetRect (Urho3D::XMLElement *_target, const char * name)
  11709. {
  11710. return _target->GetRect (Urho3D::String(name));
  11711. }
  11712. DllExport Interop::Quaternion
  11713. XmlElement_GetQuaternion (Urho3D::XMLElement *_target, const char * name)
  11714. {
  11715. return *((Interop::Quaternion *) &(_target->GetQuaternion (Urho3D::String(name))));
  11716. }
  11717. DllExport Urho3D::Variant
  11718. XmlElement_GetVariant (Urho3D::XMLElement *_target)
  11719. {
  11720. return _target->GetVariant ();
  11721. }
  11722. DllExport Urho3D::Variant
  11723. XmlElement_GetVariantValue (Urho3D::XMLElement *_target, enum Urho3D::VariantType type)
  11724. {
  11725. return _target->GetVariantValue (type);
  11726. }
  11727. DllExport Urho3D::ResourceRef
  11728. XmlElement_GetResourceRef (Urho3D::XMLElement *_target)
  11729. {
  11730. return _target->GetResourceRef ();
  11731. }
  11732. DllExport Urho3D::ResourceRefList
  11733. XmlElement_GetResourceRefList (Urho3D::XMLElement *_target)
  11734. {
  11735. return _target->GetResourceRefList ();
  11736. }
  11737. DllExport Interop::Vector2
  11738. XmlElement_GetVector2 (Urho3D::XMLElement *_target, const char * name)
  11739. {
  11740. return *((Interop::Vector2 *) &(_target->GetVector2 (Urho3D::String(name))));
  11741. }
  11742. DllExport Interop::Vector3
  11743. XmlElement_GetVector3 (Urho3D::XMLElement *_target, const char * name)
  11744. {
  11745. return *((Interop::Vector3 *) &(_target->GetVector3 (Urho3D::String(name))));
  11746. }
  11747. DllExport Interop::Vector4
  11748. XmlElement_GetVector4 (Urho3D::XMLElement *_target, const char * name)
  11749. {
  11750. return *((Interop::Vector4 *) &(_target->GetVector4 (Urho3D::String(name))));
  11751. }
  11752. DllExport Interop::Vector4
  11753. XmlElement_GetVector (Urho3D::XMLElement *_target, const char * name)
  11754. {
  11755. return *((Interop::Vector4 *) &(_target->GetVector (Urho3D::String(name))));
  11756. }
  11757. DllExport Urho3D::Variant
  11758. XmlElement_GetVectorVariant (Urho3D::XMLElement *_target, const char * name)
  11759. {
  11760. return _target->GetVectorVariant (Urho3D::String(name));
  11761. }
  11762. DllExport Urho3D::Matrix3
  11763. XmlElement_GetMatrix3 (Urho3D::XMLElement *_target, const char * name)
  11764. {
  11765. return _target->GetMatrix3 (Urho3D::String(name));
  11766. }
  11767. DllExport Interop::Matrix3x4
  11768. XmlElement_GetMatrix3x4 (Urho3D::XMLElement *_target, const char * name)
  11769. {
  11770. return *((Interop::Matrix3x4 *) &(_target->GetMatrix3x4 (Urho3D::String(name))));
  11771. }
  11772. DllExport Interop::Matrix4
  11773. XmlElement_GetMatrix4 (Urho3D::XMLElement *_target, const char * name)
  11774. {
  11775. return *((Interop::Matrix4 *) &(_target->GetMatrix4 (Urho3D::String(name))));
  11776. }
  11777. DllExport Urho3D::XMLFile *
  11778. XmlElement_GetFile (Urho3D::XMLElement *_target)
  11779. {
  11780. return _target->GetFile ();
  11781. }
  11782. DllExport const class Urho3D::XPathResultSet *
  11783. XmlElement_GetXPathResultSet (Urho3D::XMLElement *_target)
  11784. {
  11785. return _target->GetXPathResultSet ();
  11786. }
  11787. DllExport unsigned int
  11788. XmlElement_GetXPathResultIndex (Urho3D::XMLElement *_target)
  11789. {
  11790. return _target->GetXPathResultIndex ();
  11791. }
  11792. DllExport int
  11793. XmlFile_GetType (Urho3D::XMLFile *_target)
  11794. {
  11795. return (_target->GetType ()).Value ();
  11796. }
  11797. DllExport const char *
  11798. XmlFile_GetTypeName (Urho3D::XMLFile *_target)
  11799. {
  11800. return stringdup((_target->GetTypeName ()).CString ());
  11801. }
  11802. DllExport int
  11803. XmlFile_GetTypeStatic ()
  11804. {
  11805. return (XMLFile::GetTypeStatic ()).Value ();
  11806. }
  11807. DllExport const char *
  11808. XmlFile_GetTypeNameStatic ()
  11809. {
  11810. return stringdup((XMLFile::GetTypeNameStatic ()).CString ());
  11811. }
  11812. DllExport void *
  11813. XmlFile_XMLFile (Urho3D::Context * context)
  11814. {
  11815. return WeakPtr<XMLFile>(new XMLFile(context));
  11816. }
  11817. DllExport void
  11818. XmlFile_RegisterObject (Urho3D::Context * context)
  11819. {
  11820. XMLFile::RegisterObject (context);
  11821. }
  11822. DllExport int
  11823. XmlFile_BeginLoad_File (Urho3D::XMLFile *_target, File * source)
  11824. {
  11825. return _target->BeginLoad (*source);
  11826. }
  11827. DllExport int
  11828. XmlFile_BeginLoad_MemoryBuffer (Urho3D::XMLFile *_target, MemoryBuffer * source)
  11829. {
  11830. return _target->BeginLoad (*source);
  11831. }
  11832. DllExport int
  11833. XmlFile_Save_File (Urho3D::XMLFile *_target, File * dest)
  11834. {
  11835. return _target->Save (*dest);
  11836. }
  11837. DllExport int
  11838. XmlFile_Save_MemoryBuffer (Urho3D::XMLFile *_target, MemoryBuffer * dest)
  11839. {
  11840. return _target->Save (*dest);
  11841. }
  11842. DllExport int
  11843. XmlFile_Save0_File (Urho3D::XMLFile *_target, File * dest, const char * indentation)
  11844. {
  11845. return _target->Save (*dest, Urho3D::String(indentation));
  11846. }
  11847. DllExport int
  11848. XmlFile_Save0_MemoryBuffer (Urho3D::XMLFile *_target, MemoryBuffer * dest, const char * indentation)
  11849. {
  11850. return _target->Save (*dest, Urho3D::String(indentation));
  11851. }
  11852. DllExport int
  11853. XmlFile_FromString (Urho3D::XMLFile *_target, const char * source)
  11854. {
  11855. return _target->FromString (Urho3D::String(source));
  11856. }
  11857. DllExport const char *
  11858. XmlFile_ToString (Urho3D::XMLFile *_target, const char * indentation)
  11859. {
  11860. return stringdup((_target->ToString (Urho3D::String(indentation))).CString ());
  11861. }
  11862. DllExport void
  11863. XmlFile_Patch (Urho3D::XMLFile *_target, Urho3D::XMLFile * patchFile)
  11864. {
  11865. _target->Patch (patchFile);
  11866. }
  11867. DllExport int
  11868. ShaderPrecache_GetType (Urho3D::ShaderPrecache *_target)
  11869. {
  11870. return (_target->GetType ()).Value ();
  11871. }
  11872. DllExport const char *
  11873. ShaderPrecache_GetTypeName (Urho3D::ShaderPrecache *_target)
  11874. {
  11875. return stringdup((_target->GetTypeName ()).CString ());
  11876. }
  11877. DllExport int
  11878. ShaderPrecache_GetTypeStatic ()
  11879. {
  11880. return (ShaderPrecache::GetTypeStatic ()).Value ();
  11881. }
  11882. DllExport const char *
  11883. ShaderPrecache_GetTypeNameStatic ()
  11884. {
  11885. return stringdup((ShaderPrecache::GetTypeNameStatic ()).CString ());
  11886. }
  11887. DllExport void *
  11888. ShaderPrecache_ShaderPrecache (Urho3D::Context * context, const char * fileName)
  11889. {
  11890. return WeakPtr<ShaderPrecache>(new ShaderPrecache(context, Urho3D::String(fileName)));
  11891. }
  11892. DllExport void
  11893. ShaderPrecache_StoreShaders (Urho3D::ShaderPrecache *_target, Urho3D::ShaderVariation * vs, Urho3D::ShaderVariation * ps)
  11894. {
  11895. _target->StoreShaders (vs, ps);
  11896. }
  11897. DllExport void
  11898. ShaderPrecache_LoadShaders_File (Urho3D::Graphics * graphics, File * source)
  11899. {
  11900. ShaderPrecache::LoadShaders (graphics, *source);
  11901. }
  11902. DllExport void
  11903. ShaderPrecache_LoadShaders_MemoryBuffer (Urho3D::Graphics * graphics, MemoryBuffer * source)
  11904. {
  11905. ShaderPrecache::LoadShaders (graphics, *source);
  11906. }
  11907. DllExport int
  11908. Skybox_GetType (Urho3D::Skybox *_target)
  11909. {
  11910. return (_target->GetType ()).Value ();
  11911. }
  11912. DllExport const char *
  11913. Skybox_GetTypeName (Urho3D::Skybox *_target)
  11914. {
  11915. return stringdup((_target->GetTypeName ()).CString ());
  11916. }
  11917. DllExport int
  11918. Skybox_GetTypeStatic ()
  11919. {
  11920. return (Skybox::GetTypeStatic ()).Value ();
  11921. }
  11922. DllExport const char *
  11923. Skybox_GetTypeNameStatic ()
  11924. {
  11925. return stringdup((Skybox::GetTypeNameStatic ()).CString ());
  11926. }
  11927. DllExport void *
  11928. Skybox_Skybox (Urho3D::Context * context)
  11929. {
  11930. return WeakPtr<Skybox>(new Skybox(context));
  11931. }
  11932. DllExport void
  11933. Skybox_RegisterObject (Urho3D::Context * context)
  11934. {
  11935. Skybox::RegisterObject (context);
  11936. }
  11937. DllExport int
  11938. StaticModelGroup_GetType (Urho3D::StaticModelGroup *_target)
  11939. {
  11940. return (_target->GetType ()).Value ();
  11941. }
  11942. DllExport const char *
  11943. StaticModelGroup_GetTypeName (Urho3D::StaticModelGroup *_target)
  11944. {
  11945. return stringdup((_target->GetTypeName ()).CString ());
  11946. }
  11947. DllExport int
  11948. StaticModelGroup_GetTypeStatic ()
  11949. {
  11950. return (StaticModelGroup::GetTypeStatic ()).Value ();
  11951. }
  11952. DllExport const char *
  11953. StaticModelGroup_GetTypeNameStatic ()
  11954. {
  11955. return stringdup((StaticModelGroup::GetTypeNameStatic ()).CString ());
  11956. }
  11957. DllExport void *
  11958. StaticModelGroup_StaticModelGroup (Urho3D::Context * context)
  11959. {
  11960. return WeakPtr<StaticModelGroup>(new StaticModelGroup(context));
  11961. }
  11962. DllExport void
  11963. StaticModelGroup_RegisterObject (Urho3D::Context * context)
  11964. {
  11965. StaticModelGroup::RegisterObject (context);
  11966. }
  11967. DllExport void
  11968. StaticModelGroup_ApplyAttributes (Urho3D::StaticModelGroup *_target)
  11969. {
  11970. _target->ApplyAttributes ();
  11971. }
  11972. DllExport unsigned int
  11973. StaticModelGroup_GetNumOccluderTriangles (Urho3D::StaticModelGroup *_target)
  11974. {
  11975. return _target->GetNumOccluderTriangles ();
  11976. }
  11977. DllExport int
  11978. StaticModelGroup_DrawOcclusion (Urho3D::StaticModelGroup *_target, Urho3D::OcclusionBuffer * buffer)
  11979. {
  11980. return _target->DrawOcclusion (buffer);
  11981. }
  11982. DllExport void
  11983. StaticModelGroup_AddInstanceNode (Urho3D::StaticModelGroup *_target, Urho3D::Node * node)
  11984. {
  11985. _target->AddInstanceNode (node);
  11986. }
  11987. DllExport void
  11988. StaticModelGroup_RemoveInstanceNode (Urho3D::StaticModelGroup *_target, Urho3D::Node * node)
  11989. {
  11990. _target->RemoveInstanceNode (node);
  11991. }
  11992. DllExport void
  11993. StaticModelGroup_RemoveAllInstanceNodes (Urho3D::StaticModelGroup *_target)
  11994. {
  11995. _target->RemoveAllInstanceNodes ();
  11996. }
  11997. DllExport unsigned int
  11998. StaticModelGroup_GetNumInstanceNodes (Urho3D::StaticModelGroup *_target)
  11999. {
  12000. return _target->GetNumInstanceNodes ();
  12001. }
  12002. DllExport Urho3D::Node *
  12003. StaticModelGroup_GetInstanceNode (Urho3D::StaticModelGroup *_target, unsigned int index)
  12004. {
  12005. return _target->GetInstanceNode (index);
  12006. }
  12007. DllExport void *
  12008. Pass_Pass (const char * passName)
  12009. {
  12010. return WeakPtr<Pass>(new Pass(Urho3D::String(passName)));
  12011. }
  12012. DllExport void
  12013. Pass_SetBlendMode (Urho3D::Pass *_target, enum Urho3D::BlendMode mode)
  12014. {
  12015. _target->SetBlendMode (mode);
  12016. }
  12017. DllExport void
  12018. Pass_SetCullMode (Urho3D::Pass *_target, enum Urho3D::CullMode mode)
  12019. {
  12020. _target->SetCullMode (mode);
  12021. }
  12022. DllExport void
  12023. Pass_SetDepthTestMode (Urho3D::Pass *_target, enum Urho3D::CompareMode mode)
  12024. {
  12025. _target->SetDepthTestMode (mode);
  12026. }
  12027. DllExport void
  12028. Pass_SetLightingMode (Urho3D::Pass *_target, enum Urho3D::PassLightingMode mode)
  12029. {
  12030. _target->SetLightingMode (mode);
  12031. }
  12032. DllExport void
  12033. Pass_SetDepthWrite (Urho3D::Pass *_target, bool enable)
  12034. {
  12035. _target->SetDepthWrite (enable);
  12036. }
  12037. DllExport void
  12038. Pass_SetAlphaToCoverage (Urho3D::Pass *_target, bool enable)
  12039. {
  12040. _target->SetAlphaToCoverage (enable);
  12041. }
  12042. DllExport void
  12043. Pass_SetIsDesktop (Urho3D::Pass *_target, bool enable)
  12044. {
  12045. _target->SetIsDesktop (enable);
  12046. }
  12047. DllExport void
  12048. Pass_SetVertexShader (Urho3D::Pass *_target, const char * name)
  12049. {
  12050. _target->SetVertexShader (Urho3D::String(name));
  12051. }
  12052. DllExport void
  12053. Pass_SetPixelShader (Urho3D::Pass *_target, const char * name)
  12054. {
  12055. _target->SetPixelShader (Urho3D::String(name));
  12056. }
  12057. DllExport void
  12058. Pass_SetVertexShaderDefines (Urho3D::Pass *_target, const char * defines)
  12059. {
  12060. _target->SetVertexShaderDefines (Urho3D::String(defines));
  12061. }
  12062. DllExport void
  12063. Pass_SetPixelShaderDefines (Urho3D::Pass *_target, const char * defines)
  12064. {
  12065. _target->SetPixelShaderDefines (Urho3D::String(defines));
  12066. }
  12067. DllExport void
  12068. Pass_SetVertexShaderDefineExcludes (Urho3D::Pass *_target, const char * excludes)
  12069. {
  12070. _target->SetVertexShaderDefineExcludes (Urho3D::String(excludes));
  12071. }
  12072. DllExport void
  12073. Pass_SetPixelShaderDefineExcludes (Urho3D::Pass *_target, const char * excludes)
  12074. {
  12075. _target->SetPixelShaderDefineExcludes (Urho3D::String(excludes));
  12076. }
  12077. DllExport void
  12078. Pass_ReleaseShaders (Urho3D::Pass *_target)
  12079. {
  12080. _target->ReleaseShaders ();
  12081. }
  12082. DllExport void
  12083. Pass_MarkShadersLoaded (Urho3D::Pass *_target, unsigned int frameNumber)
  12084. {
  12085. _target->MarkShadersLoaded (frameNumber);
  12086. }
  12087. DllExport const char *
  12088. Pass_GetName (Urho3D::Pass *_target)
  12089. {
  12090. return stringdup((_target->GetName ()).CString ());
  12091. }
  12092. DllExport unsigned int
  12093. Pass_GetIndex (Urho3D::Pass *_target)
  12094. {
  12095. return _target->GetIndex ();
  12096. }
  12097. DllExport enum Urho3D::BlendMode
  12098. Pass_GetBlendMode (Urho3D::Pass *_target)
  12099. {
  12100. return _target->GetBlendMode ();
  12101. }
  12102. DllExport enum Urho3D::CullMode
  12103. Pass_GetCullMode (Urho3D::Pass *_target)
  12104. {
  12105. return _target->GetCullMode ();
  12106. }
  12107. DllExport enum Urho3D::CompareMode
  12108. Pass_GetDepthTestMode (Urho3D::Pass *_target)
  12109. {
  12110. return _target->GetDepthTestMode ();
  12111. }
  12112. DllExport enum Urho3D::PassLightingMode
  12113. Pass_GetLightingMode (Urho3D::Pass *_target)
  12114. {
  12115. return _target->GetLightingMode ();
  12116. }
  12117. DllExport unsigned int
  12118. Pass_GetShadersLoadedFrameNumber (Urho3D::Pass *_target)
  12119. {
  12120. return _target->GetShadersLoadedFrameNumber ();
  12121. }
  12122. DllExport int
  12123. Pass_GetDepthWrite (Urho3D::Pass *_target)
  12124. {
  12125. return _target->GetDepthWrite ();
  12126. }
  12127. DllExport int
  12128. Pass_GetAlphaToCoverage (Urho3D::Pass *_target)
  12129. {
  12130. return _target->GetAlphaToCoverage ();
  12131. }
  12132. DllExport int
  12133. Pass_IsDesktop (Urho3D::Pass *_target)
  12134. {
  12135. return _target->IsDesktop ();
  12136. }
  12137. DllExport const char *
  12138. Pass_GetVertexShader (Urho3D::Pass *_target)
  12139. {
  12140. return stringdup((_target->GetVertexShader ()).CString ());
  12141. }
  12142. DllExport const char *
  12143. Pass_GetPixelShader (Urho3D::Pass *_target)
  12144. {
  12145. return stringdup((_target->GetPixelShader ()).CString ());
  12146. }
  12147. DllExport const char *
  12148. Pass_GetVertexShaderDefines (Urho3D::Pass *_target)
  12149. {
  12150. return stringdup((_target->GetVertexShaderDefines ()).CString ());
  12151. }
  12152. DllExport const char *
  12153. Pass_GetPixelShaderDefines (Urho3D::Pass *_target)
  12154. {
  12155. return stringdup((_target->GetPixelShaderDefines ()).CString ());
  12156. }
  12157. DllExport const char *
  12158. Pass_GetVertexShaderDefineExcludes (Urho3D::Pass *_target)
  12159. {
  12160. return stringdup((_target->GetVertexShaderDefineExcludes ()).CString ());
  12161. }
  12162. DllExport const char *
  12163. Pass_GetPixelShaderDefineExcludes (Urho3D::Pass *_target)
  12164. {
  12165. return stringdup((_target->GetPixelShaderDefineExcludes ()).CString ());
  12166. }
  12167. DllExport const char *
  12168. Pass_GetEffectiveVertexShaderDefines (Urho3D::Pass *_target)
  12169. {
  12170. return stringdup((_target->GetEffectiveVertexShaderDefines ()).CString ());
  12171. }
  12172. DllExport const char *
  12173. Pass_GetEffectivePixelShaderDefines (Urho3D::Pass *_target)
  12174. {
  12175. return stringdup((_target->GetEffectivePixelShaderDefines ()).CString ());
  12176. }
  12177. DllExport int
  12178. Technique_GetType (Urho3D::Technique *_target)
  12179. {
  12180. return (_target->GetType ()).Value ();
  12181. }
  12182. DllExport const char *
  12183. Technique_GetTypeName (Urho3D::Technique *_target)
  12184. {
  12185. return stringdup((_target->GetTypeName ()).CString ());
  12186. }
  12187. DllExport int
  12188. Technique_GetTypeStatic ()
  12189. {
  12190. return (Technique::GetTypeStatic ()).Value ();
  12191. }
  12192. DllExport const char *
  12193. Technique_GetTypeNameStatic ()
  12194. {
  12195. return stringdup((Technique::GetTypeNameStatic ()).CString ());
  12196. }
  12197. DllExport void *
  12198. Technique_Technique (Urho3D::Context * context)
  12199. {
  12200. return WeakPtr<Technique>(new Technique(context));
  12201. }
  12202. DllExport void
  12203. Technique_RegisterObject (Urho3D::Context * context)
  12204. {
  12205. Technique::RegisterObject (context);
  12206. }
  12207. DllExport int
  12208. Technique_BeginLoad_File (Urho3D::Technique *_target, File * source)
  12209. {
  12210. return _target->BeginLoad (*source);
  12211. }
  12212. DllExport int
  12213. Technique_BeginLoad_MemoryBuffer (Urho3D::Technique *_target, MemoryBuffer * source)
  12214. {
  12215. return _target->BeginLoad (*source);
  12216. }
  12217. DllExport void
  12218. Technique_SetIsDesktop (Urho3D::Technique *_target, bool enable)
  12219. {
  12220. _target->SetIsDesktop (enable);
  12221. }
  12222. DllExport Urho3D::Pass *
  12223. Technique_CreatePass (Urho3D::Technique *_target, const char * passName)
  12224. {
  12225. return _target->CreatePass (Urho3D::String(passName));
  12226. }
  12227. DllExport void
  12228. Technique_RemovePass (Urho3D::Technique *_target, const char * passName)
  12229. {
  12230. _target->RemovePass (Urho3D::String(passName));
  12231. }
  12232. DllExport void
  12233. Technique_ReleaseShaders (Urho3D::Technique *_target)
  12234. {
  12235. _target->ReleaseShaders ();
  12236. }
  12237. DllExport Urho3D::Technique *
  12238. Technique_Clone (Urho3D::Technique *_target, const char * cloneName)
  12239. {
  12240. auto copy = _target->Clone (Urho3D::String(cloneName));
  12241. auto plain = copy.Get();
  12242. copy.Detach();
  12243. delete copy;
  12244. return plain;
  12245. }
  12246. DllExport int
  12247. Technique_IsDesktop (Urho3D::Technique *_target)
  12248. {
  12249. return _target->IsDesktop ();
  12250. }
  12251. DllExport int
  12252. Technique_IsSupported (Urho3D::Technique *_target)
  12253. {
  12254. return _target->IsSupported ();
  12255. }
  12256. DllExport int
  12257. Technique_HasPass (Urho3D::Technique *_target, unsigned int passIndex)
  12258. {
  12259. return _target->HasPass (passIndex);
  12260. }
  12261. DllExport int
  12262. Technique_HasPass0 (Urho3D::Technique *_target, const char * passName)
  12263. {
  12264. return _target->HasPass (Urho3D::String(passName));
  12265. }
  12266. DllExport Urho3D::Pass *
  12267. Technique_GetPass (Urho3D::Technique *_target, unsigned int passIndex)
  12268. {
  12269. return _target->GetPass (passIndex);
  12270. }
  12271. DllExport Urho3D::Pass *
  12272. Technique_GetPass1 (Urho3D::Technique *_target, const char * passName)
  12273. {
  12274. return _target->GetPass (Urho3D::String(passName));
  12275. }
  12276. DllExport Urho3D::Pass *
  12277. Technique_GetSupportedPass (Urho3D::Technique *_target, unsigned int passIndex)
  12278. {
  12279. return _target->GetSupportedPass (passIndex);
  12280. }
  12281. DllExport Urho3D::Pass *
  12282. Technique_GetSupportedPass2 (Urho3D::Technique *_target, const char * passName)
  12283. {
  12284. return _target->GetSupportedPass (Urho3D::String(passName));
  12285. }
  12286. DllExport unsigned int
  12287. Technique_GetNumPasses (Urho3D::Technique *_target)
  12288. {
  12289. return _target->GetNumPasses ();
  12290. }
  12291. DllExport Urho3D::Technique *
  12292. Technique_CloneWithDefines (Urho3D::Technique *_target, const char * vsDefines, const char * psDefines)
  12293. {
  12294. auto copy = _target->CloneWithDefines (Urho3D::String(vsDefines), Urho3D::String(psDefines));
  12295. auto plain = copy.Get();
  12296. copy.Detach();
  12297. delete copy;
  12298. return plain;
  12299. }
  12300. DllExport unsigned int
  12301. Technique_GetPassIndex (const char * passName)
  12302. {
  12303. return Technique::GetPassIndex (Urho3D::String(passName));
  12304. }
  12305. DllExport int
  12306. Terrain_GetType (Urho3D::Terrain *_target)
  12307. {
  12308. return (_target->GetType ()).Value ();
  12309. }
  12310. DllExport const char *
  12311. Terrain_GetTypeName (Urho3D::Terrain *_target)
  12312. {
  12313. return stringdup((_target->GetTypeName ()).CString ());
  12314. }
  12315. DllExport int
  12316. Terrain_GetTypeStatic ()
  12317. {
  12318. return (Terrain::GetTypeStatic ()).Value ();
  12319. }
  12320. DllExport const char *
  12321. Terrain_GetTypeNameStatic ()
  12322. {
  12323. return stringdup((Terrain::GetTypeNameStatic ()).CString ());
  12324. }
  12325. DllExport void *
  12326. Terrain_Terrain (Urho3D::Context * context)
  12327. {
  12328. return WeakPtr<Terrain>(new Terrain(context));
  12329. }
  12330. DllExport void
  12331. Terrain_RegisterObject (Urho3D::Context * context)
  12332. {
  12333. Terrain::RegisterObject (context);
  12334. }
  12335. DllExport void
  12336. Terrain_ApplyAttributes (Urho3D::Terrain *_target)
  12337. {
  12338. _target->ApplyAttributes ();
  12339. }
  12340. DllExport void
  12341. Terrain_OnSetEnabled (Urho3D::Terrain *_target)
  12342. {
  12343. _target->OnSetEnabled ();
  12344. }
  12345. DllExport void
  12346. Terrain_SetPatchSize (Urho3D::Terrain *_target, int size)
  12347. {
  12348. _target->SetPatchSize (size);
  12349. }
  12350. DllExport void
  12351. Terrain_SetSpacing (Urho3D::Terrain *_target, const class Urho3D::Vector3 & spacing)
  12352. {
  12353. _target->SetSpacing (spacing);
  12354. }
  12355. DllExport void
  12356. Terrain_SetMaxLodLevels (Urho3D::Terrain *_target, unsigned int levels)
  12357. {
  12358. _target->SetMaxLodLevels (levels);
  12359. }
  12360. DllExport void
  12361. Terrain_SetOcclusionLodLevel (Urho3D::Terrain *_target, unsigned int level)
  12362. {
  12363. _target->SetOcclusionLodLevel (level);
  12364. }
  12365. DllExport void
  12366. Terrain_SetSmoothing (Urho3D::Terrain *_target, bool enable)
  12367. {
  12368. _target->SetSmoothing (enable);
  12369. }
  12370. DllExport int
  12371. Terrain_SetHeightMap (Urho3D::Terrain *_target, Urho3D::Image * image)
  12372. {
  12373. return _target->SetHeightMap (image);
  12374. }
  12375. DllExport void
  12376. Terrain_SetMaterial (Urho3D::Terrain *_target, Urho3D::Material * material)
  12377. {
  12378. _target->SetMaterial (material);
  12379. }
  12380. DllExport void
  12381. Terrain_SetNorthNeighbor (Urho3D::Terrain *_target, Urho3D::Terrain * north)
  12382. {
  12383. _target->SetNorthNeighbor (north);
  12384. }
  12385. DllExport void
  12386. Terrain_SetSouthNeighbor (Urho3D::Terrain *_target, Urho3D::Terrain * south)
  12387. {
  12388. _target->SetSouthNeighbor (south);
  12389. }
  12390. DllExport void
  12391. Terrain_SetWestNeighbor (Urho3D::Terrain *_target, Urho3D::Terrain * west)
  12392. {
  12393. _target->SetWestNeighbor (west);
  12394. }
  12395. DllExport void
  12396. Terrain_SetEastNeighbor (Urho3D::Terrain *_target, Urho3D::Terrain * east)
  12397. {
  12398. _target->SetEastNeighbor (east);
  12399. }
  12400. DllExport void
  12401. Terrain_SetNeighbors (Urho3D::Terrain *_target, Urho3D::Terrain * north, Urho3D::Terrain * south, Urho3D::Terrain * west, Urho3D::Terrain * east)
  12402. {
  12403. _target->SetNeighbors (north, south, west, east);
  12404. }
  12405. DllExport void
  12406. Terrain_SetDrawDistance (Urho3D::Terrain *_target, float distance)
  12407. {
  12408. _target->SetDrawDistance (distance);
  12409. }
  12410. DllExport void
  12411. Terrain_SetShadowDistance (Urho3D::Terrain *_target, float distance)
  12412. {
  12413. _target->SetShadowDistance (distance);
  12414. }
  12415. DllExport void
  12416. Terrain_SetLodBias (Urho3D::Terrain *_target, float bias)
  12417. {
  12418. _target->SetLodBias (bias);
  12419. }
  12420. DllExport void
  12421. Terrain_SetViewMask (Urho3D::Terrain *_target, unsigned int mask)
  12422. {
  12423. _target->SetViewMask (mask);
  12424. }
  12425. DllExport void
  12426. Terrain_SetLightMask (Urho3D::Terrain *_target, unsigned int mask)
  12427. {
  12428. _target->SetLightMask (mask);
  12429. }
  12430. DllExport void
  12431. Terrain_SetShadowMask (Urho3D::Terrain *_target, unsigned int mask)
  12432. {
  12433. _target->SetShadowMask (mask);
  12434. }
  12435. DllExport void
  12436. Terrain_SetZoneMask (Urho3D::Terrain *_target, unsigned int mask)
  12437. {
  12438. _target->SetZoneMask (mask);
  12439. }
  12440. DllExport void
  12441. Terrain_SetMaxLights (Urho3D::Terrain *_target, unsigned int num)
  12442. {
  12443. _target->SetMaxLights (num);
  12444. }
  12445. DllExport void
  12446. Terrain_SetCastShadows (Urho3D::Terrain *_target, bool enable)
  12447. {
  12448. _target->SetCastShadows (enable);
  12449. }
  12450. DllExport void
  12451. Terrain_SetOccluder (Urho3D::Terrain *_target, bool enable)
  12452. {
  12453. _target->SetOccluder (enable);
  12454. }
  12455. DllExport void
  12456. Terrain_SetOccludee (Urho3D::Terrain *_target, bool enable)
  12457. {
  12458. _target->SetOccludee (enable);
  12459. }
  12460. DllExport void
  12461. Terrain_ApplyHeightMap (Urho3D::Terrain *_target)
  12462. {
  12463. _target->ApplyHeightMap ();
  12464. }
  12465. DllExport int
  12466. Terrain_GetPatchSize (Urho3D::Terrain *_target)
  12467. {
  12468. return _target->GetPatchSize ();
  12469. }
  12470. DllExport Interop::Vector3
  12471. Terrain_GetSpacing (Urho3D::Terrain *_target)
  12472. {
  12473. return *((Interop::Vector3 *) &(_target->GetSpacing ()));
  12474. }
  12475. DllExport Interop::IntVector2
  12476. Terrain_GetNumVertices (Urho3D::Terrain *_target)
  12477. {
  12478. return *((Interop::IntVector2 *) &(_target->GetNumVertices ()));
  12479. }
  12480. DllExport Interop::IntVector2
  12481. Terrain_GetNumPatches (Urho3D::Terrain *_target)
  12482. {
  12483. return *((Interop::IntVector2 *) &(_target->GetNumPatches ()));
  12484. }
  12485. DllExport unsigned int
  12486. Terrain_GetMaxLodLevels (Urho3D::Terrain *_target)
  12487. {
  12488. return _target->GetMaxLodLevels ();
  12489. }
  12490. DllExport unsigned int
  12491. Terrain_GetOcclusionLodLevel (Urho3D::Terrain *_target)
  12492. {
  12493. return _target->GetOcclusionLodLevel ();
  12494. }
  12495. DllExport int
  12496. Terrain_GetSmoothing (Urho3D::Terrain *_target)
  12497. {
  12498. return _target->GetSmoothing ();
  12499. }
  12500. DllExport Urho3D::Image *
  12501. Terrain_GetHeightMap (Urho3D::Terrain *_target)
  12502. {
  12503. return _target->GetHeightMap ();
  12504. }
  12505. DllExport Urho3D::Material *
  12506. Terrain_GetMaterial (Urho3D::Terrain *_target)
  12507. {
  12508. return _target->GetMaterial ();
  12509. }
  12510. DllExport Urho3D::TerrainPatch *
  12511. Terrain_GetPatch (Urho3D::Terrain *_target, unsigned int index)
  12512. {
  12513. return _target->GetPatch (index);
  12514. }
  12515. DllExport Urho3D::TerrainPatch *
  12516. Terrain_GetPatch0 (Urho3D::Terrain *_target, int x, int z)
  12517. {
  12518. return _target->GetPatch (x, z);
  12519. }
  12520. DllExport Urho3D::TerrainPatch *
  12521. Terrain_GetNeighborPatch (Urho3D::Terrain *_target, int x, int z)
  12522. {
  12523. return _target->GetNeighborPatch (x, z);
  12524. }
  12525. DllExport float
  12526. Terrain_GetHeight (Urho3D::Terrain *_target, const class Urho3D::Vector3 & worldPosition)
  12527. {
  12528. return _target->GetHeight (worldPosition);
  12529. }
  12530. DllExport Interop::Vector3
  12531. Terrain_GetNormal (Urho3D::Terrain *_target, const class Urho3D::Vector3 & worldPosition)
  12532. {
  12533. return *((Interop::Vector3 *) &(_target->GetNormal (worldPosition)));
  12534. }
  12535. DllExport Interop::IntVector2
  12536. Terrain_WorldToHeightMap (Urho3D::Terrain *_target, const class Urho3D::Vector3 & worldPosition)
  12537. {
  12538. return *((Interop::IntVector2 *) &(_target->WorldToHeightMap (worldPosition)));
  12539. }
  12540. DllExport Urho3D::Terrain *
  12541. Terrain_GetNorthNeighbor (Urho3D::Terrain *_target)
  12542. {
  12543. return _target->GetNorthNeighbor ();
  12544. }
  12545. DllExport Urho3D::Terrain *
  12546. Terrain_GetSouthNeighbor (Urho3D::Terrain *_target)
  12547. {
  12548. return _target->GetSouthNeighbor ();
  12549. }
  12550. DllExport Urho3D::Terrain *
  12551. Terrain_GetWestNeighbor (Urho3D::Terrain *_target)
  12552. {
  12553. return _target->GetWestNeighbor ();
  12554. }
  12555. DllExport Urho3D::Terrain *
  12556. Terrain_GetEastNeighbor (Urho3D::Terrain *_target)
  12557. {
  12558. return _target->GetEastNeighbor ();
  12559. }
  12560. DllExport float
  12561. Terrain_GetDrawDistance (Urho3D::Terrain *_target)
  12562. {
  12563. return _target->GetDrawDistance ();
  12564. }
  12565. DllExport float
  12566. Terrain_GetShadowDistance (Urho3D::Terrain *_target)
  12567. {
  12568. return _target->GetShadowDistance ();
  12569. }
  12570. DllExport float
  12571. Terrain_GetLodBias (Urho3D::Terrain *_target)
  12572. {
  12573. return _target->GetLodBias ();
  12574. }
  12575. DllExport unsigned int
  12576. Terrain_GetViewMask (Urho3D::Terrain *_target)
  12577. {
  12578. return _target->GetViewMask ();
  12579. }
  12580. DllExport unsigned int
  12581. Terrain_GetLightMask (Urho3D::Terrain *_target)
  12582. {
  12583. return _target->GetLightMask ();
  12584. }
  12585. DllExport unsigned int
  12586. Terrain_GetShadowMask (Urho3D::Terrain *_target)
  12587. {
  12588. return _target->GetShadowMask ();
  12589. }
  12590. DllExport unsigned int
  12591. Terrain_GetZoneMask (Urho3D::Terrain *_target)
  12592. {
  12593. return _target->GetZoneMask ();
  12594. }
  12595. DllExport unsigned int
  12596. Terrain_GetMaxLights (Urho3D::Terrain *_target)
  12597. {
  12598. return _target->GetMaxLights ();
  12599. }
  12600. DllExport int
  12601. Terrain_IsVisible (Urho3D::Terrain *_target)
  12602. {
  12603. return _target->IsVisible ();
  12604. }
  12605. DllExport int
  12606. Terrain_GetCastShadows (Urho3D::Terrain *_target)
  12607. {
  12608. return _target->GetCastShadows ();
  12609. }
  12610. DllExport int
  12611. Terrain_IsOccluder (Urho3D::Terrain *_target)
  12612. {
  12613. return _target->IsOccluder ();
  12614. }
  12615. DllExport int
  12616. Terrain_IsOccludee (Urho3D::Terrain *_target)
  12617. {
  12618. return _target->IsOccludee ();
  12619. }
  12620. DllExport void
  12621. Terrain_CreatePatchGeometry (Urho3D::Terrain *_target, Urho3D::TerrainPatch * patch)
  12622. {
  12623. _target->CreatePatchGeometry (patch);
  12624. }
  12625. DllExport void
  12626. Terrain_UpdatePatchLod (Urho3D::Terrain *_target, Urho3D::TerrainPatch * patch)
  12627. {
  12628. _target->UpdatePatchLod (patch);
  12629. }
  12630. DllExport void
  12631. Terrain_SetPatchSizeAttr (Urho3D::Terrain *_target, int value)
  12632. {
  12633. _target->SetPatchSizeAttr (value);
  12634. }
  12635. DllExport void
  12636. Terrain_SetMaxLodLevelsAttr (Urho3D::Terrain *_target, unsigned int value)
  12637. {
  12638. _target->SetMaxLodLevelsAttr (value);
  12639. }
  12640. DllExport void
  12641. Terrain_SetOcclusionLodLevelAttr (Urho3D::Terrain *_target, unsigned int value)
  12642. {
  12643. _target->SetOcclusionLodLevelAttr (value);
  12644. }
  12645. DllExport Urho3D::ResourceRef
  12646. Terrain_GetHeightMapAttr (Urho3D::Terrain *_target)
  12647. {
  12648. return _target->GetHeightMapAttr ();
  12649. }
  12650. DllExport Urho3D::ResourceRef
  12651. Terrain_GetMaterialAttr (Urho3D::Terrain *_target)
  12652. {
  12653. return _target->GetMaterialAttr ();
  12654. }
  12655. DllExport int
  12656. TerrainPatch_GetType (Urho3D::TerrainPatch *_target)
  12657. {
  12658. return (_target->GetType ()).Value ();
  12659. }
  12660. DllExport const char *
  12661. TerrainPatch_GetTypeName (Urho3D::TerrainPatch *_target)
  12662. {
  12663. return stringdup((_target->GetTypeName ()).CString ());
  12664. }
  12665. DllExport int
  12666. TerrainPatch_GetTypeStatic ()
  12667. {
  12668. return (TerrainPatch::GetTypeStatic ()).Value ();
  12669. }
  12670. DllExport const char *
  12671. TerrainPatch_GetTypeNameStatic ()
  12672. {
  12673. return stringdup((TerrainPatch::GetTypeNameStatic ()).CString ());
  12674. }
  12675. DllExport void *
  12676. TerrainPatch_TerrainPatch (Urho3D::Context * context)
  12677. {
  12678. return WeakPtr<TerrainPatch>(new TerrainPatch(context));
  12679. }
  12680. DllExport void
  12681. TerrainPatch_RegisterObject (Urho3D::Context * context)
  12682. {
  12683. TerrainPatch::RegisterObject (context);
  12684. }
  12685. DllExport enum Urho3D::UpdateGeometryType
  12686. TerrainPatch_GetUpdateGeometryType (Urho3D::TerrainPatch *_target)
  12687. {
  12688. return _target->GetUpdateGeometryType ();
  12689. }
  12690. DllExport Urho3D::Geometry *
  12691. TerrainPatch_GetLodGeometry (Urho3D::TerrainPatch *_target, unsigned int batchIndex, unsigned int level)
  12692. {
  12693. return _target->GetLodGeometry (batchIndex, level);
  12694. }
  12695. DllExport unsigned int
  12696. TerrainPatch_GetNumOccluderTriangles (Urho3D::TerrainPatch *_target)
  12697. {
  12698. return _target->GetNumOccluderTriangles ();
  12699. }
  12700. DllExport int
  12701. TerrainPatch_DrawOcclusion (Urho3D::TerrainPatch *_target, Urho3D::OcclusionBuffer * buffer)
  12702. {
  12703. return _target->DrawOcclusion (buffer);
  12704. }
  12705. DllExport void
  12706. TerrainPatch_DrawDebugGeometry (Urho3D::TerrainPatch *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  12707. {
  12708. _target->DrawDebugGeometry (debug, depthTest);
  12709. }
  12710. DllExport void
  12711. TerrainPatch_SetOwner (Urho3D::TerrainPatch *_target, Urho3D::Terrain * terrain)
  12712. {
  12713. _target->SetOwner (terrain);
  12714. }
  12715. DllExport void
  12716. TerrainPatch_SetNeighbors (Urho3D::TerrainPatch *_target, Urho3D::TerrainPatch * north, Urho3D::TerrainPatch * south, Urho3D::TerrainPatch * west, Urho3D::TerrainPatch * east)
  12717. {
  12718. _target->SetNeighbors (north, south, west, east);
  12719. }
  12720. DllExport void
  12721. TerrainPatch_SetMaterial (Urho3D::TerrainPatch *_target, Urho3D::Material * material)
  12722. {
  12723. _target->SetMaterial (material);
  12724. }
  12725. DllExport void
  12726. TerrainPatch_SetBoundingBox (Urho3D::TerrainPatch *_target, const class Urho3D::BoundingBox & box)
  12727. {
  12728. _target->SetBoundingBox (box);
  12729. }
  12730. DllExport void
  12731. TerrainPatch_SetCoordinates (Urho3D::TerrainPatch *_target, const class Urho3D::IntVector2 & coordinates)
  12732. {
  12733. _target->SetCoordinates (coordinates);
  12734. }
  12735. DllExport void
  12736. TerrainPatch_ResetLod (Urho3D::TerrainPatch *_target)
  12737. {
  12738. _target->ResetLod ();
  12739. }
  12740. DllExport Urho3D::Geometry *
  12741. TerrainPatch_GetGeometry (Urho3D::TerrainPatch *_target)
  12742. {
  12743. return _target->GetGeometry ();
  12744. }
  12745. DllExport Urho3D::Geometry *
  12746. TerrainPatch_GetMaxLodGeometry (Urho3D::TerrainPatch *_target)
  12747. {
  12748. return _target->GetMaxLodGeometry ();
  12749. }
  12750. DllExport Urho3D::Geometry *
  12751. TerrainPatch_GetOcclusionGeometry (Urho3D::TerrainPatch *_target)
  12752. {
  12753. return _target->GetOcclusionGeometry ();
  12754. }
  12755. DllExport Urho3D::VertexBuffer *
  12756. TerrainPatch_GetVertexBuffer (Urho3D::TerrainPatch *_target)
  12757. {
  12758. return _target->GetVertexBuffer ();
  12759. }
  12760. DllExport Urho3D::Terrain *
  12761. TerrainPatch_GetOwner (Urho3D::TerrainPatch *_target)
  12762. {
  12763. return _target->GetOwner ();
  12764. }
  12765. DllExport Urho3D::TerrainPatch *
  12766. TerrainPatch_GetNorthPatch (Urho3D::TerrainPatch *_target)
  12767. {
  12768. return _target->GetNorthPatch ();
  12769. }
  12770. DllExport Urho3D::TerrainPatch *
  12771. TerrainPatch_GetSouthPatch (Urho3D::TerrainPatch *_target)
  12772. {
  12773. return _target->GetSouthPatch ();
  12774. }
  12775. DllExport Urho3D::TerrainPatch *
  12776. TerrainPatch_GetWestPatch (Urho3D::TerrainPatch *_target)
  12777. {
  12778. return _target->GetWestPatch ();
  12779. }
  12780. DllExport Urho3D::TerrainPatch *
  12781. TerrainPatch_GetEastPatch (Urho3D::TerrainPatch *_target)
  12782. {
  12783. return _target->GetEastPatch ();
  12784. }
  12785. DllExport Interop::IntVector2
  12786. TerrainPatch_GetCoordinates (Urho3D::TerrainPatch *_target)
  12787. {
  12788. return *((Interop::IntVector2 *) &(_target->GetCoordinates ()));
  12789. }
  12790. DllExport unsigned int
  12791. TerrainPatch_GetLodLevel (Urho3D::TerrainPatch *_target)
  12792. {
  12793. return _target->GetLodLevel ();
  12794. }
  12795. DllExport int
  12796. Texture2DArray_GetType (Urho3D::Texture2DArray *_target)
  12797. {
  12798. return (_target->GetType ()).Value ();
  12799. }
  12800. DllExport const char *
  12801. Texture2DArray_GetTypeName (Urho3D::Texture2DArray *_target)
  12802. {
  12803. return stringdup((_target->GetTypeName ()).CString ());
  12804. }
  12805. DllExport int
  12806. Texture2DArray_GetTypeStatic ()
  12807. {
  12808. return (Texture2DArray::GetTypeStatic ()).Value ();
  12809. }
  12810. DllExport const char *
  12811. Texture2DArray_GetTypeNameStatic ()
  12812. {
  12813. return stringdup((Texture2DArray::GetTypeNameStatic ()).CString ());
  12814. }
  12815. DllExport void *
  12816. Texture2DArray_Texture2DArray (Urho3D::Context * context)
  12817. {
  12818. return WeakPtr<Texture2DArray>(new Texture2DArray(context));
  12819. }
  12820. DllExport void
  12821. Texture2DArray_RegisterObject (Urho3D::Context * context)
  12822. {
  12823. Texture2DArray::RegisterObject (context);
  12824. }
  12825. DllExport int
  12826. Texture2DArray_BeginLoad_File (Urho3D::Texture2DArray *_target, File * source)
  12827. {
  12828. return _target->BeginLoad (*source);
  12829. }
  12830. DllExport int
  12831. Texture2DArray_BeginLoad_MemoryBuffer (Urho3D::Texture2DArray *_target, MemoryBuffer * source)
  12832. {
  12833. return _target->BeginLoad (*source);
  12834. }
  12835. DllExport int
  12836. Texture2DArray_EndLoad (Urho3D::Texture2DArray *_target)
  12837. {
  12838. return _target->EndLoad ();
  12839. }
  12840. DllExport void
  12841. Texture2DArray_OnDeviceLost (Urho3D::Texture2DArray *_target)
  12842. {
  12843. _target->OnDeviceLost ();
  12844. }
  12845. DllExport void
  12846. Texture2DArray_OnDeviceReset (Urho3D::Texture2DArray *_target)
  12847. {
  12848. _target->OnDeviceReset ();
  12849. }
  12850. DllExport void
  12851. Texture2DArray_Release (Urho3D::Texture2DArray *_target)
  12852. {
  12853. _target->Release ();
  12854. }
  12855. DllExport void
  12856. Texture2DArray_SetLayers (Urho3D::Texture2DArray *_target, unsigned int layers)
  12857. {
  12858. _target->SetLayers (layers);
  12859. }
  12860. DllExport int
  12861. Texture2DArray_SetSize (Urho3D::Texture2DArray *_target, unsigned int layers, int width, int height, unsigned int format, enum Urho3D::TextureUsage usage)
  12862. {
  12863. return _target->SetSize (layers, width, height, format, usage);
  12864. }
  12865. DllExport int
  12866. Texture2DArray_SetData (Urho3D::Texture2DArray *_target, unsigned int layer, unsigned int level, int x, int y, int width, int height, const void * data)
  12867. {
  12868. return _target->SetData (layer, level, x, y, width, height, data);
  12869. }
  12870. DllExport int
  12871. Texture2DArray_SetData0_File (Urho3D::Texture2DArray *_target, unsigned int layer, File * source)
  12872. {
  12873. return _target->SetData (layer, *source);
  12874. }
  12875. DllExport int
  12876. Texture2DArray_SetData0_MemoryBuffer (Urho3D::Texture2DArray *_target, unsigned int layer, MemoryBuffer * source)
  12877. {
  12878. return _target->SetData (layer, *source);
  12879. }
  12880. DllExport int
  12881. Texture2DArray_SetData1 (Urho3D::Texture2DArray *_target, unsigned int layer, Urho3D::Image * image, bool useAlpha)
  12882. {
  12883. return _target->SetData (layer, image, useAlpha);
  12884. }
  12885. DllExport unsigned int
  12886. Texture2DArray_GetLayers (Urho3D::Texture2DArray *_target)
  12887. {
  12888. return _target->GetLayers ();
  12889. }
  12890. DllExport int
  12891. Texture2DArray_GetData (Urho3D::Texture2DArray *_target, unsigned int layer, unsigned int level, void * dest)
  12892. {
  12893. return _target->GetData (layer, level, dest);
  12894. }
  12895. DllExport Urho3D::RenderSurface *
  12896. Texture2DArray_GetRenderSurface (Urho3D::Texture2DArray *_target)
  12897. {
  12898. return _target->GetRenderSurface ();
  12899. }
  12900. DllExport int
  12901. Texture3D_GetType (Urho3D::Texture3D *_target)
  12902. {
  12903. return (_target->GetType ()).Value ();
  12904. }
  12905. DllExport const char *
  12906. Texture3D_GetTypeName (Urho3D::Texture3D *_target)
  12907. {
  12908. return stringdup((_target->GetTypeName ()).CString ());
  12909. }
  12910. DllExport int
  12911. Texture3D_GetTypeStatic ()
  12912. {
  12913. return (Texture3D::GetTypeStatic ()).Value ();
  12914. }
  12915. DllExport const char *
  12916. Texture3D_GetTypeNameStatic ()
  12917. {
  12918. return stringdup((Texture3D::GetTypeNameStatic ()).CString ());
  12919. }
  12920. DllExport void *
  12921. Texture3D_Texture3D (Urho3D::Context * context)
  12922. {
  12923. return WeakPtr<Texture3D>(new Texture3D(context));
  12924. }
  12925. DllExport void
  12926. Texture3D_RegisterObject (Urho3D::Context * context)
  12927. {
  12928. Texture3D::RegisterObject (context);
  12929. }
  12930. DllExport int
  12931. Texture3D_BeginLoad_File (Urho3D::Texture3D *_target, File * source)
  12932. {
  12933. return _target->BeginLoad (*source);
  12934. }
  12935. DllExport int
  12936. Texture3D_BeginLoad_MemoryBuffer (Urho3D::Texture3D *_target, MemoryBuffer * source)
  12937. {
  12938. return _target->BeginLoad (*source);
  12939. }
  12940. DllExport int
  12941. Texture3D_EndLoad (Urho3D::Texture3D *_target)
  12942. {
  12943. return _target->EndLoad ();
  12944. }
  12945. DllExport void
  12946. Texture3D_Release (Urho3D::Texture3D *_target)
  12947. {
  12948. _target->Release ();
  12949. }
  12950. DllExport int
  12951. Texture3D_SetSize (Urho3D::Texture3D *_target, int width, int height, int depth, unsigned int format, enum Urho3D::TextureUsage usage)
  12952. {
  12953. return _target->SetSize (width, height, depth, format, usage);
  12954. }
  12955. DllExport int
  12956. Texture3D_SetData (Urho3D::Texture3D *_target, unsigned int level, int x, int y, int z, int width, int height, int depth, const void * data)
  12957. {
  12958. return _target->SetData (level, x, y, z, width, height, depth, data);
  12959. }
  12960. DllExport int
  12961. Texture3D_SetData0 (Urho3D::Texture3D *_target, Urho3D::Image * image, bool useAlpha)
  12962. {
  12963. return _target->SetData (image, useAlpha);
  12964. }
  12965. DllExport int
  12966. Texture3D_GetData (Urho3D::Texture3D *_target, unsigned int level, void * dest)
  12967. {
  12968. return _target->GetData (level, dest);
  12969. }
  12970. DllExport int
  12971. TextureCube_GetType (Urho3D::TextureCube *_target)
  12972. {
  12973. return (_target->GetType ()).Value ();
  12974. }
  12975. DllExport const char *
  12976. TextureCube_GetTypeName (Urho3D::TextureCube *_target)
  12977. {
  12978. return stringdup((_target->GetTypeName ()).CString ());
  12979. }
  12980. DllExport int
  12981. TextureCube_GetTypeStatic ()
  12982. {
  12983. return (TextureCube::GetTypeStatic ()).Value ();
  12984. }
  12985. DllExport const char *
  12986. TextureCube_GetTypeNameStatic ()
  12987. {
  12988. return stringdup((TextureCube::GetTypeNameStatic ()).CString ());
  12989. }
  12990. DllExport void *
  12991. TextureCube_TextureCube (Urho3D::Context * context)
  12992. {
  12993. return WeakPtr<TextureCube>(new TextureCube(context));
  12994. }
  12995. DllExport void
  12996. TextureCube_RegisterObject (Urho3D::Context * context)
  12997. {
  12998. TextureCube::RegisterObject (context);
  12999. }
  13000. DllExport int
  13001. TextureCube_BeginLoad_File (Urho3D::TextureCube *_target, File * source)
  13002. {
  13003. return _target->BeginLoad (*source);
  13004. }
  13005. DllExport int
  13006. TextureCube_BeginLoad_MemoryBuffer (Urho3D::TextureCube *_target, MemoryBuffer * source)
  13007. {
  13008. return _target->BeginLoad (*source);
  13009. }
  13010. DllExport int
  13011. TextureCube_EndLoad (Urho3D::TextureCube *_target)
  13012. {
  13013. return _target->EndLoad ();
  13014. }
  13015. DllExport void
  13016. TextureCube_Release (Urho3D::TextureCube *_target)
  13017. {
  13018. _target->Release ();
  13019. }
  13020. DllExport int
  13021. TextureCube_SetSize (Urho3D::TextureCube *_target, int size, unsigned int format, enum Urho3D::TextureUsage usage, int multiSample)
  13022. {
  13023. return _target->SetSize (size, format, usage, multiSample);
  13024. }
  13025. DllExport int
  13026. TextureCube_SetData (Urho3D::TextureCube *_target, enum Urho3D::CubeMapFace face, unsigned int level, int x, int y, int width, int height, const void * data)
  13027. {
  13028. return _target->SetData (face, level, x, y, width, height, data);
  13029. }
  13030. DllExport int
  13031. TextureCube_SetData0_File (Urho3D::TextureCube *_target, enum Urho3D::CubeMapFace face, File * source)
  13032. {
  13033. return _target->SetData (face, *source);
  13034. }
  13035. DllExport int
  13036. TextureCube_SetData0_MemoryBuffer (Urho3D::TextureCube *_target, enum Urho3D::CubeMapFace face, MemoryBuffer * source)
  13037. {
  13038. return _target->SetData (face, *source);
  13039. }
  13040. DllExport int
  13041. TextureCube_SetData1 (Urho3D::TextureCube *_target, enum Urho3D::CubeMapFace face, Urho3D::Image * image, bool useAlpha)
  13042. {
  13043. return _target->SetData (face, image, useAlpha);
  13044. }
  13045. DllExport int
  13046. TextureCube_GetData (Urho3D::TextureCube *_target, enum Urho3D::CubeMapFace face, unsigned int level, void * dest)
  13047. {
  13048. return _target->GetData (face, level, dest);
  13049. }
  13050. DllExport Urho3D::Image *
  13051. TextureCube_GetImage (Urho3D::TextureCube *_target, enum Urho3D::CubeMapFace face)
  13052. {
  13053. auto copy = _target->GetImage (face);
  13054. auto plain = copy.Get();
  13055. copy.Detach();
  13056. delete copy;
  13057. return plain;
  13058. }
  13059. DllExport Urho3D::RenderSurface *
  13060. TextureCube_GetRenderSurface (Urho3D::TextureCube *_target, enum Urho3D::CubeMapFace face)
  13061. {
  13062. return _target->GetRenderSurface (face);
  13063. }
  13064. DllExport int
  13065. VertexBuffer_GetType (Urho3D::VertexBuffer *_target)
  13066. {
  13067. return (_target->GetType ()).Value ();
  13068. }
  13069. DllExport const char *
  13070. VertexBuffer_GetTypeName (Urho3D::VertexBuffer *_target)
  13071. {
  13072. return stringdup((_target->GetTypeName ()).CString ());
  13073. }
  13074. DllExport int
  13075. VertexBuffer_GetTypeStatic ()
  13076. {
  13077. return (VertexBuffer::GetTypeStatic ()).Value ();
  13078. }
  13079. DllExport const char *
  13080. VertexBuffer_GetTypeNameStatic ()
  13081. {
  13082. return stringdup((VertexBuffer::GetTypeNameStatic ()).CString ());
  13083. }
  13084. DllExport void *
  13085. VertexBuffer_VertexBuffer (Urho3D::Context * context, bool forceHeadless)
  13086. {
  13087. return WeakPtr<VertexBuffer>(new VertexBuffer(context, forceHeadless));
  13088. }
  13089. DllExport void
  13090. VertexBuffer_OnDeviceLost (Urho3D::VertexBuffer *_target)
  13091. {
  13092. _target->OnDeviceLost ();
  13093. }
  13094. DllExport void
  13095. VertexBuffer_Release (Urho3D::VertexBuffer *_target)
  13096. {
  13097. _target->Release ();
  13098. }
  13099. DllExport void
  13100. VertexBuffer_SetShadowed (Urho3D::VertexBuffer *_target, bool enable)
  13101. {
  13102. _target->SetShadowed (enable);
  13103. }
  13104. DllExport int
  13105. VertexBuffer_SetSize (Urho3D::VertexBuffer *_target, unsigned int vertexCount, unsigned int elementMask, bool dynamic)
  13106. {
  13107. return _target->SetSize (vertexCount, elementMask, dynamic);
  13108. }
  13109. DllExport int
  13110. VertexBuffer_SetData (Urho3D::VertexBuffer *_target, const void * data)
  13111. {
  13112. return _target->SetData (data);
  13113. }
  13114. DllExport int
  13115. VertexBuffer_SetDataRange (Urho3D::VertexBuffer *_target, const void * data, unsigned int start, unsigned int count, bool discard)
  13116. {
  13117. return _target->SetDataRange (data, start, count, discard);
  13118. }
  13119. DllExport void *
  13120. VertexBuffer_Lock (Urho3D::VertexBuffer *_target, unsigned int start, unsigned int count, bool discard)
  13121. {
  13122. return _target->Lock (start, count, discard);
  13123. }
  13124. DllExport void
  13125. VertexBuffer_Unlock (Urho3D::VertexBuffer *_target)
  13126. {
  13127. _target->Unlock ();
  13128. }
  13129. DllExport int
  13130. VertexBuffer_IsShadowed (Urho3D::VertexBuffer *_target)
  13131. {
  13132. return _target->IsShadowed ();
  13133. }
  13134. DllExport int
  13135. VertexBuffer_IsDynamic (Urho3D::VertexBuffer *_target)
  13136. {
  13137. return _target->IsDynamic ();
  13138. }
  13139. DllExport int
  13140. VertexBuffer_IsLocked (Urho3D::VertexBuffer *_target)
  13141. {
  13142. return _target->IsLocked ();
  13143. }
  13144. DllExport unsigned int
  13145. VertexBuffer_GetVertexCount (Urho3D::VertexBuffer *_target)
  13146. {
  13147. return _target->GetVertexCount ();
  13148. }
  13149. DllExport unsigned int
  13150. VertexBuffer_GetVertexSize (Urho3D::VertexBuffer *_target)
  13151. {
  13152. return _target->GetVertexSize ();
  13153. }
  13154. DllExport const struct Urho3D::VertexElement *
  13155. VertexBuffer_GetElement (Urho3D::VertexBuffer *_target, enum Urho3D::VertexElementSemantic semantic, unsigned char index)
  13156. {
  13157. return _target->GetElement (semantic, index);
  13158. }
  13159. DllExport const struct Urho3D::VertexElement *
  13160. VertexBuffer_GetElement0 (Urho3D::VertexBuffer *_target, enum Urho3D::VertexElementType type, enum Urho3D::VertexElementSemantic semantic, unsigned char index)
  13161. {
  13162. return _target->GetElement (type, semantic, index);
  13163. }
  13164. DllExport int
  13165. VertexBuffer_HasElement (Urho3D::VertexBuffer *_target, enum Urho3D::VertexElementSemantic semantic, unsigned char index)
  13166. {
  13167. return _target->HasElement (semantic, index);
  13168. }
  13169. DllExport int
  13170. VertexBuffer_HasElement1 (Urho3D::VertexBuffer *_target, enum Urho3D::VertexElementType type, enum Urho3D::VertexElementSemantic semantic, unsigned char index)
  13171. {
  13172. return _target->HasElement (type, semantic, index);
  13173. }
  13174. DllExport unsigned int
  13175. VertexBuffer_GetElementOffset (Urho3D::VertexBuffer *_target, enum Urho3D::VertexElementSemantic semantic, unsigned char index)
  13176. {
  13177. return _target->GetElementOffset (semantic, index);
  13178. }
  13179. DllExport unsigned int
  13180. VertexBuffer_GetElementOffset2 (Urho3D::VertexBuffer *_target, enum Urho3D::VertexElementType type, enum Urho3D::VertexElementSemantic semantic, unsigned char index)
  13181. {
  13182. return _target->GetElementOffset (type, semantic, index);
  13183. }
  13184. DllExport unsigned int
  13185. VertexBuffer_GetElementMask (Urho3D::VertexBuffer *_target)
  13186. {
  13187. return _target->GetElementMask ();
  13188. }
  13189. DllExport unsigned char *
  13190. VertexBuffer_GetShadowData (Urho3D::VertexBuffer *_target)
  13191. {
  13192. return _target->GetShadowData ();
  13193. }
  13194. DllExport unsigned long long
  13195. VertexBuffer_GetBufferHash (Urho3D::VertexBuffer *_target, unsigned int streamIndex)
  13196. {
  13197. return _target->GetBufferHash (streamIndex);
  13198. }
  13199. DllExport unsigned int
  13200. VertexBuffer_GetVertexSize3 (unsigned int elementMask)
  13201. {
  13202. return VertexBuffer::GetVertexSize (elementMask);
  13203. }
  13204. DllExport int
  13205. Zone_GetType (Urho3D::Zone *_target)
  13206. {
  13207. return (_target->GetType ()).Value ();
  13208. }
  13209. DllExport const char *
  13210. Zone_GetTypeName (Urho3D::Zone *_target)
  13211. {
  13212. return stringdup((_target->GetTypeName ()).CString ());
  13213. }
  13214. DllExport int
  13215. Zone_GetTypeStatic ()
  13216. {
  13217. return (Zone::GetTypeStatic ()).Value ();
  13218. }
  13219. DllExport const char *
  13220. Zone_GetTypeNameStatic ()
  13221. {
  13222. return stringdup((Zone::GetTypeNameStatic ()).CString ());
  13223. }
  13224. DllExport void *
  13225. Zone_Zone (Urho3D::Context * context)
  13226. {
  13227. return WeakPtr<Zone>(new Zone(context));
  13228. }
  13229. DllExport void
  13230. Zone_RegisterObject (Urho3D::Context * context)
  13231. {
  13232. Zone::RegisterObject (context);
  13233. }
  13234. DllExport void
  13235. Zone_DrawDebugGeometry (Urho3D::Zone *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  13236. {
  13237. _target->DrawDebugGeometry (debug, depthTest);
  13238. }
  13239. DllExport void
  13240. Zone_SetBoundingBox (Urho3D::Zone *_target, const class Urho3D::BoundingBox & box)
  13241. {
  13242. _target->SetBoundingBox (box);
  13243. }
  13244. DllExport void
  13245. Zone_SetAmbientColor (Urho3D::Zone *_target, const class Urho3D::Color & color)
  13246. {
  13247. _target->SetAmbientColor (color);
  13248. }
  13249. DllExport void
  13250. Zone_SetFogColor (Urho3D::Zone *_target, const class Urho3D::Color & color)
  13251. {
  13252. _target->SetFogColor (color);
  13253. }
  13254. DllExport void
  13255. Zone_SetFogStart (Urho3D::Zone *_target, float start)
  13256. {
  13257. _target->SetFogStart (start);
  13258. }
  13259. DllExport void
  13260. Zone_SetFogEnd (Urho3D::Zone *_target, float end)
  13261. {
  13262. _target->SetFogEnd (end);
  13263. }
  13264. DllExport void
  13265. Zone_SetFogHeight (Urho3D::Zone *_target, float height)
  13266. {
  13267. _target->SetFogHeight (height);
  13268. }
  13269. DllExport void
  13270. Zone_SetFogHeightScale (Urho3D::Zone *_target, float scale)
  13271. {
  13272. _target->SetFogHeightScale (scale);
  13273. }
  13274. DllExport void
  13275. Zone_SetPriority (Urho3D::Zone *_target, int priority)
  13276. {
  13277. _target->SetPriority (priority);
  13278. }
  13279. DllExport void
  13280. Zone_SetHeightFog (Urho3D::Zone *_target, bool enable)
  13281. {
  13282. _target->SetHeightFog (enable);
  13283. }
  13284. DllExport void
  13285. Zone_SetOverride (Urho3D::Zone *_target, bool enable)
  13286. {
  13287. _target->SetOverride (enable);
  13288. }
  13289. DllExport void
  13290. Zone_SetAmbientGradient (Urho3D::Zone *_target, bool enable)
  13291. {
  13292. _target->SetAmbientGradient (enable);
  13293. }
  13294. DllExport void
  13295. Zone_SetZoneTexture (Urho3D::Zone *_target, Urho3D::Texture * texture)
  13296. {
  13297. _target->SetZoneTexture (texture);
  13298. }
  13299. DllExport Interop::Matrix3x4
  13300. Zone_GetInverseWorldTransform (Urho3D::Zone *_target)
  13301. {
  13302. return *((Interop::Matrix3x4 *) &(_target->GetInverseWorldTransform ()));
  13303. }
  13304. DllExport Interop::Color
  13305. Zone_GetAmbientColor (Urho3D::Zone *_target)
  13306. {
  13307. return *((Interop::Color *) &(_target->GetAmbientColor ()));
  13308. }
  13309. DllExport Interop::Color
  13310. Zone_GetAmbientStartColor (Urho3D::Zone *_target)
  13311. {
  13312. return *((Interop::Color *) &(_target->GetAmbientStartColor ()));
  13313. }
  13314. DllExport Interop::Color
  13315. Zone_GetAmbientEndColor (Urho3D::Zone *_target)
  13316. {
  13317. return *((Interop::Color *) &(_target->GetAmbientEndColor ()));
  13318. }
  13319. DllExport Interop::Color
  13320. Zone_GetFogColor (Urho3D::Zone *_target)
  13321. {
  13322. return *((Interop::Color *) &(_target->GetFogColor ()));
  13323. }
  13324. DllExport float
  13325. Zone_GetFogStart (Urho3D::Zone *_target)
  13326. {
  13327. return _target->GetFogStart ();
  13328. }
  13329. DllExport float
  13330. Zone_GetFogEnd (Urho3D::Zone *_target)
  13331. {
  13332. return _target->GetFogEnd ();
  13333. }
  13334. DllExport float
  13335. Zone_GetFogHeight (Urho3D::Zone *_target)
  13336. {
  13337. return _target->GetFogHeight ();
  13338. }
  13339. DllExport float
  13340. Zone_GetFogHeightScale (Urho3D::Zone *_target)
  13341. {
  13342. return _target->GetFogHeightScale ();
  13343. }
  13344. DllExport int
  13345. Zone_GetPriority (Urho3D::Zone *_target)
  13346. {
  13347. return _target->GetPriority ();
  13348. }
  13349. DllExport int
  13350. Zone_GetHeightFog (Urho3D::Zone *_target)
  13351. {
  13352. return _target->GetHeightFog ();
  13353. }
  13354. DllExport int
  13355. Zone_GetOverride (Urho3D::Zone *_target)
  13356. {
  13357. return _target->GetOverride ();
  13358. }
  13359. DllExport int
  13360. Zone_GetAmbientGradient (Urho3D::Zone *_target)
  13361. {
  13362. return _target->GetAmbientGradient ();
  13363. }
  13364. DllExport Urho3D::Texture *
  13365. Zone_GetZoneTexture (Urho3D::Zone *_target)
  13366. {
  13367. return _target->GetZoneTexture ();
  13368. }
  13369. DllExport int
  13370. Zone_IsInside (Urho3D::Zone *_target, const class Urho3D::Vector3 & point)
  13371. {
  13372. return _target->IsInside (point);
  13373. }
  13374. DllExport Urho3D::ResourceRef
  13375. Zone_GetZoneTextureAttr (Urho3D::Zone *_target)
  13376. {
  13377. return _target->GetZoneTextureAttr ();
  13378. }
  13379. DllExport int
  13380. View_GetType (Urho3D::View *_target)
  13381. {
  13382. return (_target->GetType ()).Value ();
  13383. }
  13384. DllExport const char *
  13385. View_GetTypeName (Urho3D::View *_target)
  13386. {
  13387. return stringdup((_target->GetTypeName ()).CString ());
  13388. }
  13389. DllExport int
  13390. View_GetTypeStatic ()
  13391. {
  13392. return (View::GetTypeStatic ()).Value ();
  13393. }
  13394. DllExport const char *
  13395. View_GetTypeNameStatic ()
  13396. {
  13397. return stringdup((View::GetTypeNameStatic ()).CString ());
  13398. }
  13399. DllExport void *
  13400. View_View (Urho3D::Context * context)
  13401. {
  13402. return WeakPtr<View>(new View(context));
  13403. }
  13404. DllExport int
  13405. View_Define (Urho3D::View *_target, Urho3D::RenderSurface * renderTarget, Urho3D::Viewport * viewport)
  13406. {
  13407. return _target->Define (renderTarget, viewport);
  13408. }
  13409. DllExport void
  13410. View_Render (Urho3D::View *_target)
  13411. {
  13412. _target->Render ();
  13413. }
  13414. DllExport Urho3D::Graphics *
  13415. View_GetGraphics (Urho3D::View *_target)
  13416. {
  13417. return _target->GetGraphics ();
  13418. }
  13419. DllExport Urho3D::Renderer *
  13420. View_GetRenderer (Urho3D::View *_target)
  13421. {
  13422. return _target->GetRenderer ();
  13423. }
  13424. DllExport Urho3D::Scene *
  13425. View_GetScene (Urho3D::View *_target)
  13426. {
  13427. return _target->GetScene ();
  13428. }
  13429. DllExport Urho3D::Octree *
  13430. View_GetOctree (Urho3D::View *_target)
  13431. {
  13432. return _target->GetOctree ();
  13433. }
  13434. DllExport Urho3D::Camera *
  13435. View_GetCamera (Urho3D::View *_target)
  13436. {
  13437. return _target->GetCamera ();
  13438. }
  13439. DllExport Urho3D::Camera *
  13440. View_GetCullCamera (Urho3D::View *_target)
  13441. {
  13442. return _target->GetCullCamera ();
  13443. }
  13444. DllExport Urho3D::RenderSurface *
  13445. View_GetRenderTarget (Urho3D::View *_target)
  13446. {
  13447. return _target->GetRenderTarget ();
  13448. }
  13449. DllExport int
  13450. View_GetDrawDebug (Urho3D::View *_target)
  13451. {
  13452. return _target->GetDrawDebug ();
  13453. }
  13454. DllExport const class Urho3D::IntRect &
  13455. View_GetViewRect (Urho3D::View *_target)
  13456. {
  13457. return _target->GetViewRect ();
  13458. }
  13459. DllExport Interop::IntVector2
  13460. View_GetViewSize (Urho3D::View *_target)
  13461. {
  13462. return *((Interop::IntVector2 *) &(_target->GetViewSize ()));
  13463. }
  13464. DllExport Urho3D::OcclusionBuffer *
  13465. View_GetOcclusionBuffer (Urho3D::View *_target)
  13466. {
  13467. return _target->GetOcclusionBuffer ();
  13468. }
  13469. DllExport unsigned int
  13470. View_GetNumActiveOccluders (Urho3D::View *_target)
  13471. {
  13472. return _target->GetNumActiveOccluders ();
  13473. }
  13474. DllExport Urho3D::View *
  13475. View_GetSourceView (Urho3D::View *_target)
  13476. {
  13477. return _target->GetSourceView ();
  13478. }
  13479. DllExport void
  13480. View_SetGlobalShaderParameters (Urho3D::View *_target)
  13481. {
  13482. _target->SetGlobalShaderParameters ();
  13483. }
  13484. DllExport void
  13485. View_SetCameraShaderParameters (Urho3D::View *_target, Urho3D::Camera * camera)
  13486. {
  13487. _target->SetCameraShaderParameters (camera);
  13488. }
  13489. DllExport void
  13490. View_SetCommandShaderParameters (Urho3D::View *_target, const struct Urho3D::RenderPathCommand & command)
  13491. {
  13492. _target->SetCommandShaderParameters (command);
  13493. }
  13494. DllExport void
  13495. View_SetGBufferShaderParameters (Urho3D::View *_target, const class Urho3D::IntVector2 & texSize, const class Urho3D::IntRect & viewRect)
  13496. {
  13497. _target->SetGBufferShaderParameters (texSize, viewRect);
  13498. }
  13499. DllExport void
  13500. View_SetStereoMode (Urho3D::View *_target, bool stereo)
  13501. {
  13502. _target->SetStereoMode (stereo);
  13503. }
  13504. DllExport void
  13505. View_DrawFullscreenQuad (Urho3D::View *_target, bool setIdentityProjection)
  13506. {
  13507. _target->DrawFullscreenQuad (setIdentityProjection);
  13508. }
  13509. DllExport Urho3D::Texture *
  13510. View_FindNamedTexture (Urho3D::View *_target, const char * name, bool isRenderTarget, bool isVolumeMap)
  13511. {
  13512. return _target->FindNamedTexture (Urho3D::String(name), isRenderTarget, isVolumeMap);
  13513. }
  13514. DllExport int
  13515. File_GetType (Urho3D::File *_target)
  13516. {
  13517. return (_target->GetType ()).Value ();
  13518. }
  13519. DllExport const char *
  13520. File_GetTypeName (Urho3D::File *_target)
  13521. {
  13522. return stringdup((_target->GetTypeName ()).CString ());
  13523. }
  13524. DllExport int
  13525. File_GetTypeStatic ()
  13526. {
  13527. return (File::GetTypeStatic ()).Value ();
  13528. }
  13529. DllExport const char *
  13530. File_GetTypeNameStatic ()
  13531. {
  13532. return stringdup((File::GetTypeNameStatic ()).CString ());
  13533. }
  13534. DllExport void *
  13535. File_File (Urho3D::Context * context)
  13536. {
  13537. return WeakPtr<File>(new File(context));
  13538. }
  13539. DllExport void *
  13540. File_File0 (Urho3D::Context * context, const char * fileName, enum Urho3D::FileMode mode)
  13541. {
  13542. return WeakPtr<File>(new File(context, Urho3D::String(fileName), mode));
  13543. }
  13544. DllExport void *
  13545. File_File1 (Urho3D::Context * context, Urho3D::PackageFile * package, const char * fileName)
  13546. {
  13547. return WeakPtr<File>(new File(context, package, Urho3D::String(fileName)));
  13548. }
  13549. DllExport unsigned int
  13550. File_Read (Urho3D::File *_target, void * dest, unsigned int size)
  13551. {
  13552. return _target->Read (dest, size);
  13553. }
  13554. DllExport unsigned int
  13555. File_Seek (Urho3D::File *_target, unsigned int position)
  13556. {
  13557. return _target->Seek (position);
  13558. }
  13559. DllExport unsigned int
  13560. File_Write (Urho3D::File *_target, const void * data, unsigned int size)
  13561. {
  13562. return _target->Write (data, size);
  13563. }
  13564. DllExport const char *
  13565. File_GetName (Urho3D::File *_target)
  13566. {
  13567. return stringdup((_target->GetName ()).CString ());
  13568. }
  13569. DllExport unsigned int
  13570. File_GetChecksum (Urho3D::File *_target)
  13571. {
  13572. return _target->GetChecksum ();
  13573. }
  13574. DllExport int
  13575. File_Open (Urho3D::File *_target, const char * fileName, enum Urho3D::FileMode mode)
  13576. {
  13577. return _target->Open (Urho3D::String(fileName), mode);
  13578. }
  13579. DllExport int
  13580. File_Open2 (Urho3D::File *_target, Urho3D::PackageFile * package, const char * fileName)
  13581. {
  13582. return _target->Open (package, Urho3D::String(fileName));
  13583. }
  13584. DllExport void
  13585. File_Close (Urho3D::File *_target)
  13586. {
  13587. _target->Close ();
  13588. }
  13589. DllExport void
  13590. File_Flush (Urho3D::File *_target)
  13591. {
  13592. _target->Flush ();
  13593. }
  13594. DllExport void
  13595. File_SetName (Urho3D::File *_target, const char * name)
  13596. {
  13597. _target->SetName (Urho3D::String(name));
  13598. }
  13599. DllExport enum Urho3D::FileMode
  13600. File_GetMode (Urho3D::File *_target)
  13601. {
  13602. return _target->GetMode ();
  13603. }
  13604. DllExport int
  13605. File_IsOpen (Urho3D::File *_target)
  13606. {
  13607. return _target->IsOpen ();
  13608. }
  13609. DllExport void *
  13610. File_GetHandle (Urho3D::File *_target)
  13611. {
  13612. return _target->GetHandle ();
  13613. }
  13614. DllExport int
  13615. File_IsPackaged (Urho3D::File *_target)
  13616. {
  13617. return _target->IsPackaged ();
  13618. }
  13619. DllExport int
  13620. FileSystem_GetType (Urho3D::FileSystem *_target)
  13621. {
  13622. return (_target->GetType ()).Value ();
  13623. }
  13624. DllExport const char *
  13625. FileSystem_GetTypeName (Urho3D::FileSystem *_target)
  13626. {
  13627. return stringdup((_target->GetTypeName ()).CString ());
  13628. }
  13629. DllExport int
  13630. FileSystem_GetTypeStatic ()
  13631. {
  13632. return (FileSystem::GetTypeStatic ()).Value ();
  13633. }
  13634. DllExport const char *
  13635. FileSystem_GetTypeNameStatic ()
  13636. {
  13637. return stringdup((FileSystem::GetTypeNameStatic ()).CString ());
  13638. }
  13639. DllExport void *
  13640. FileSystem_FileSystem (Urho3D::Context * context)
  13641. {
  13642. return WeakPtr<FileSystem>(new FileSystem(context));
  13643. }
  13644. DllExport int
  13645. FileSystem_SetCurrentDir (Urho3D::FileSystem *_target, const char * pathName)
  13646. {
  13647. return _target->SetCurrentDir (Urho3D::String(pathName));
  13648. }
  13649. DllExport int
  13650. FileSystem_CreateDir (Urho3D::FileSystem *_target, const char * pathName)
  13651. {
  13652. return _target->CreateDir (Urho3D::String(pathName));
  13653. }
  13654. DllExport void
  13655. FileSystem_SetExecuteConsoleCommands (Urho3D::FileSystem *_target, bool enable)
  13656. {
  13657. _target->SetExecuteConsoleCommands (enable);
  13658. }
  13659. DllExport int
  13660. FileSystem_SystemCommand (Urho3D::FileSystem *_target, const char * commandLine, bool redirectStdOutToLog)
  13661. {
  13662. return _target->SystemCommand (Urho3D::String(commandLine), redirectStdOutToLog);
  13663. }
  13664. DllExport unsigned int
  13665. FileSystem_SystemCommandAsync (Urho3D::FileSystem *_target, const char * commandLine)
  13666. {
  13667. return _target->SystemCommandAsync (Urho3D::String(commandLine));
  13668. }
  13669. DllExport int
  13670. FileSystem_SystemOpen (Urho3D::FileSystem *_target, const char * fileName, const char * mode)
  13671. {
  13672. return _target->SystemOpen (Urho3D::String(fileName), Urho3D::String(mode));
  13673. }
  13674. DllExport int
  13675. FileSystem_Copy (Urho3D::FileSystem *_target, const char * srcFileName, const char * destFileName)
  13676. {
  13677. return _target->Copy (Urho3D::String(srcFileName), Urho3D::String(destFileName));
  13678. }
  13679. DllExport int
  13680. FileSystem_Rename (Urho3D::FileSystem *_target, const char * srcFileName, const char * destFileName)
  13681. {
  13682. return _target->Rename (Urho3D::String(srcFileName), Urho3D::String(destFileName));
  13683. }
  13684. DllExport int
  13685. FileSystem_Delete (Urho3D::FileSystem *_target, const char * fileName)
  13686. {
  13687. return _target->Delete (Urho3D::String(fileName));
  13688. }
  13689. DllExport void
  13690. FileSystem_RegisterPath (Urho3D::FileSystem *_target, const char * pathName)
  13691. {
  13692. _target->RegisterPath (Urho3D::String(pathName));
  13693. }
  13694. DllExport int
  13695. FileSystem_SetLastModifiedTime (Urho3D::FileSystem *_target, const char * fileName, unsigned int newTime)
  13696. {
  13697. return _target->SetLastModifiedTime (Urho3D::String(fileName), newTime);
  13698. }
  13699. DllExport const char *
  13700. FileSystem_GetCurrentDir (Urho3D::FileSystem *_target)
  13701. {
  13702. return stringdup((_target->GetCurrentDir ()).CString ());
  13703. }
  13704. DllExport int
  13705. FileSystem_GetExecuteConsoleCommands (Urho3D::FileSystem *_target)
  13706. {
  13707. return _target->GetExecuteConsoleCommands ();
  13708. }
  13709. DllExport int
  13710. FileSystem_HasRegisteredPaths (Urho3D::FileSystem *_target)
  13711. {
  13712. return _target->HasRegisteredPaths ();
  13713. }
  13714. DllExport int
  13715. FileSystem_CheckAccess (Urho3D::FileSystem *_target, const char * pathName)
  13716. {
  13717. return _target->CheckAccess (Urho3D::String(pathName));
  13718. }
  13719. DllExport unsigned int
  13720. FileSystem_GetLastModifiedTime (Urho3D::FileSystem *_target, const char * fileName)
  13721. {
  13722. return _target->GetLastModifiedTime (Urho3D::String(fileName));
  13723. }
  13724. DllExport int
  13725. FileSystem_FileExists (Urho3D::FileSystem *_target, const char * fileName)
  13726. {
  13727. return _target->FileExists (Urho3D::String(fileName));
  13728. }
  13729. DllExport int
  13730. FileSystem_DirExists (Urho3D::FileSystem *_target, const char * pathName)
  13731. {
  13732. return _target->DirExists (Urho3D::String(pathName));
  13733. }
  13734. DllExport const char *
  13735. FileSystem_GetProgramDir (Urho3D::FileSystem *_target)
  13736. {
  13737. return stringdup((_target->GetProgramDir ()).CString ());
  13738. }
  13739. DllExport const char *
  13740. FileSystem_GetUserDocumentsDir (Urho3D::FileSystem *_target)
  13741. {
  13742. return stringdup((_target->GetUserDocumentsDir ()).CString ());
  13743. }
  13744. DllExport const char *
  13745. FileSystem_GetAppPreferencesDir (Urho3D::FileSystem *_target, const char * org, const char * app)
  13746. {
  13747. return stringdup((_target->GetAppPreferencesDir (Urho3D::String(org), Urho3D::String(app))).CString ());
  13748. }
  13749. DllExport int
  13750. FileWatcher_GetType (Urho3D::FileWatcher *_target)
  13751. {
  13752. return (_target->GetType ()).Value ();
  13753. }
  13754. DllExport const char *
  13755. FileWatcher_GetTypeName (Urho3D::FileWatcher *_target)
  13756. {
  13757. return stringdup((_target->GetTypeName ()).CString ());
  13758. }
  13759. DllExport int
  13760. FileWatcher_GetTypeStatic ()
  13761. {
  13762. return (FileWatcher::GetTypeStatic ()).Value ();
  13763. }
  13764. DllExport const char *
  13765. FileWatcher_GetTypeNameStatic ()
  13766. {
  13767. return stringdup((FileWatcher::GetTypeNameStatic ()).CString ());
  13768. }
  13769. DllExport void *
  13770. FileWatcher_FileWatcher (Urho3D::Context * context)
  13771. {
  13772. return WeakPtr<FileWatcher>(new FileWatcher(context));
  13773. }
  13774. DllExport void
  13775. FileWatcher_ThreadFunction (Urho3D::FileWatcher *_target)
  13776. {
  13777. _target->ThreadFunction ();
  13778. }
  13779. DllExport int
  13780. FileWatcher_StartWatching (Urho3D::FileWatcher *_target, const char * pathName, bool watchSubDirs)
  13781. {
  13782. return _target->StartWatching (Urho3D::String(pathName), watchSubDirs);
  13783. }
  13784. DllExport void
  13785. FileWatcher_StopWatching (Urho3D::FileWatcher *_target)
  13786. {
  13787. _target->StopWatching ();
  13788. }
  13789. DllExport void
  13790. FileWatcher_SetDelay (Urho3D::FileWatcher *_target, float interval)
  13791. {
  13792. _target->SetDelay (interval);
  13793. }
  13794. DllExport void
  13795. FileWatcher_AddChange (Urho3D::FileWatcher *_target, const char * fileName)
  13796. {
  13797. _target->AddChange (Urho3D::String(fileName));
  13798. }
  13799. DllExport const char *
  13800. FileWatcher_GetPath (Urho3D::FileWatcher *_target)
  13801. {
  13802. return stringdup((_target->GetPath ()).CString ());
  13803. }
  13804. DllExport float
  13805. FileWatcher_GetDelay (Urho3D::FileWatcher *_target)
  13806. {
  13807. return _target->GetDelay ();
  13808. }
  13809. DllExport int
  13810. Log_GetType (Urho3D::Log *_target)
  13811. {
  13812. return (_target->GetType ()).Value ();
  13813. }
  13814. DllExport const char *
  13815. Log_GetTypeName (Urho3D::Log *_target)
  13816. {
  13817. return stringdup((_target->GetTypeName ()).CString ());
  13818. }
  13819. DllExport int
  13820. Log_GetTypeStatic ()
  13821. {
  13822. return (Log::GetTypeStatic ()).Value ();
  13823. }
  13824. DllExport const char *
  13825. Log_GetTypeNameStatic ()
  13826. {
  13827. return stringdup((Log::GetTypeNameStatic ()).CString ());
  13828. }
  13829. DllExport void *
  13830. Log_Log (Urho3D::Context * context)
  13831. {
  13832. return WeakPtr<Log>(new Log(context));
  13833. }
  13834. DllExport void
  13835. Log_Open (Urho3D::Log *_target, const char * fileName)
  13836. {
  13837. _target->Open (Urho3D::String(fileName));
  13838. }
  13839. DllExport void
  13840. Log_Close (Urho3D::Log *_target)
  13841. {
  13842. _target->Close ();
  13843. }
  13844. DllExport void
  13845. Log_SetLevel (Urho3D::Log *_target, int level)
  13846. {
  13847. _target->SetLevel (level);
  13848. }
  13849. DllExport void
  13850. Log_SetTimeStamp (Urho3D::Log *_target, bool enable)
  13851. {
  13852. _target->SetTimeStamp (enable);
  13853. }
  13854. DllExport void
  13855. Log_SetQuiet (Urho3D::Log *_target, bool quiet)
  13856. {
  13857. _target->SetQuiet (quiet);
  13858. }
  13859. DllExport int
  13860. Log_GetLevel (Urho3D::Log *_target)
  13861. {
  13862. return _target->GetLevel ();
  13863. }
  13864. DllExport int
  13865. Log_GetTimeStamp (Urho3D::Log *_target)
  13866. {
  13867. return _target->GetTimeStamp ();
  13868. }
  13869. DllExport const char *
  13870. Log_GetLastMessage (Urho3D::Log *_target)
  13871. {
  13872. return stringdup((_target->GetLastMessage ()).CString ());
  13873. }
  13874. DllExport int
  13875. Log_IsQuiet (Urho3D::Log *_target)
  13876. {
  13877. return _target->IsQuiet ();
  13878. }
  13879. DllExport void
  13880. Log_Write (int level, const char * message)
  13881. {
  13882. Log::Write (level, Urho3D::String(message));
  13883. }
  13884. DllExport void
  13885. Log_WriteRaw (const char * message, bool error)
  13886. {
  13887. Log::WriteRaw (Urho3D::String(message), error);
  13888. }
  13889. DllExport int
  13890. PackageFile_GetType (Urho3D::PackageFile *_target)
  13891. {
  13892. return (_target->GetType ()).Value ();
  13893. }
  13894. DllExport const char *
  13895. PackageFile_GetTypeName (Urho3D::PackageFile *_target)
  13896. {
  13897. return stringdup((_target->GetTypeName ()).CString ());
  13898. }
  13899. DllExport int
  13900. PackageFile_GetTypeStatic ()
  13901. {
  13902. return (PackageFile::GetTypeStatic ()).Value ();
  13903. }
  13904. DllExport const char *
  13905. PackageFile_GetTypeNameStatic ()
  13906. {
  13907. return stringdup((PackageFile::GetTypeNameStatic ()).CString ());
  13908. }
  13909. DllExport void *
  13910. PackageFile_PackageFile (Urho3D::Context * context)
  13911. {
  13912. return WeakPtr<PackageFile>(new PackageFile(context));
  13913. }
  13914. DllExport void *
  13915. PackageFile_PackageFile0 (Urho3D::Context * context, const char * fileName, unsigned int startOffset)
  13916. {
  13917. return WeakPtr<PackageFile>(new PackageFile(context, Urho3D::String(fileName), startOffset));
  13918. }
  13919. DllExport int
  13920. PackageFile_Open (Urho3D::PackageFile *_target, const char * fileName, unsigned int startOffset)
  13921. {
  13922. return _target->Open (Urho3D::String(fileName), startOffset);
  13923. }
  13924. DllExport int
  13925. PackageFile_Exists (Urho3D::PackageFile *_target, const char * fileName)
  13926. {
  13927. return _target->Exists (Urho3D::String(fileName));
  13928. }
  13929. DllExport const struct Urho3D::PackageEntry *
  13930. PackageFile_GetEntry (Urho3D::PackageFile *_target, const char * fileName)
  13931. {
  13932. return _target->GetEntry (Urho3D::String(fileName));
  13933. }
  13934. DllExport const char *
  13935. PackageFile_GetName (Urho3D::PackageFile *_target)
  13936. {
  13937. return stringdup((_target->GetName ()).CString ());
  13938. }
  13939. DllExport int
  13940. PackageFile_GetNameHash (Urho3D::PackageFile *_target)
  13941. {
  13942. return (_target->GetNameHash ()).Value ();
  13943. }
  13944. DllExport unsigned int
  13945. PackageFile_GetNumFiles (Urho3D::PackageFile *_target)
  13946. {
  13947. return _target->GetNumFiles ();
  13948. }
  13949. DllExport unsigned int
  13950. PackageFile_GetTotalSize (Urho3D::PackageFile *_target)
  13951. {
  13952. return _target->GetTotalSize ();
  13953. }
  13954. DllExport unsigned int
  13955. PackageFile_GetTotalDataSize (Urho3D::PackageFile *_target)
  13956. {
  13957. return _target->GetTotalDataSize ();
  13958. }
  13959. DllExport unsigned int
  13960. PackageFile_GetChecksum (Urho3D::PackageFile *_target)
  13961. {
  13962. return _target->GetChecksum ();
  13963. }
  13964. DllExport int
  13965. PackageFile_IsCompressed (Urho3D::PackageFile *_target)
  13966. {
  13967. return _target->IsCompressed ();
  13968. }
  13969. DllExport int
  13970. UIElement_GetType (Urho3D::UIElement *_target)
  13971. {
  13972. return (_target->GetType ()).Value ();
  13973. }
  13974. DllExport const char *
  13975. UIElement_GetTypeName (Urho3D::UIElement *_target)
  13976. {
  13977. return stringdup((_target->GetTypeName ()).CString ());
  13978. }
  13979. DllExport int
  13980. UIElement_GetTypeStatic ()
  13981. {
  13982. return (UIElement::GetTypeStatic ()).Value ();
  13983. }
  13984. DllExport const char *
  13985. UIElement_GetTypeNameStatic ()
  13986. {
  13987. return stringdup((UIElement::GetTypeNameStatic ()).CString ());
  13988. }
  13989. DllExport void *
  13990. UIElement_UIElement (Urho3D::Context * context)
  13991. {
  13992. return WeakPtr<UIElement>(new UIElement(context));
  13993. }
  13994. DllExport void
  13995. UIElement_RegisterObject (Urho3D::Context * context)
  13996. {
  13997. UIElement::RegisterObject (context);
  13998. }
  13999. DllExport void
  14000. UIElement_ApplyAttributes (Urho3D::UIElement *_target)
  14001. {
  14002. _target->ApplyAttributes ();
  14003. }
  14004. DllExport int
  14005. UIElement_LoadXML (Urho3D::UIElement *_target, const class Urho3D::XMLElement & source, bool setInstanceDefault)
  14006. {
  14007. return _target->LoadXML (source, setInstanceDefault);
  14008. }
  14009. DllExport int
  14010. UIElement_LoadXML0 (Urho3D::UIElement *_target, const class Urho3D::XMLElement & source, Urho3D::XMLFile * styleFile, bool setInstanceDefault)
  14011. {
  14012. return _target->LoadXML (source, styleFile, setInstanceDefault);
  14013. }
  14014. DllExport Urho3D::UIElement *
  14015. UIElement_LoadChildXML (Urho3D::UIElement *_target, const class Urho3D::XMLElement & childElem, Urho3D::XMLFile * styleFile, bool setInstanceDefault)
  14016. {
  14017. return _target->LoadChildXML (childElem, styleFile, setInstanceDefault);
  14018. }
  14019. DllExport int
  14020. UIElement_SaveXML (Urho3D::UIElement *_target, Urho3D::XMLElement & dest)
  14021. {
  14022. return _target->SaveXML (dest);
  14023. }
  14024. DllExport void
  14025. UIElement_Update (Urho3D::UIElement *_target, float timeStep)
  14026. {
  14027. _target->Update (timeStep);
  14028. }
  14029. DllExport int
  14030. UIElement_IsWithinScissor (Urho3D::UIElement *_target, const class Urho3D::IntRect & currentScissor)
  14031. {
  14032. return _target->IsWithinScissor (currentScissor);
  14033. }
  14034. DllExport Interop::IntVector2
  14035. UIElement_GetScreenPosition (Urho3D::UIElement *_target)
  14036. {
  14037. return *((Interop::IntVector2 *) &(_target->GetScreenPosition ()));
  14038. }
  14039. DllExport void
  14040. UIElement_OnHover (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  14041. {
  14042. _target->OnHover (position, screenPosition, buttons, qualifiers, cursor);
  14043. }
  14044. DllExport void
  14045. UIElement_OnClickBegin (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int button, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  14046. {
  14047. _target->OnClickBegin (position, screenPosition, button, buttons, qualifiers, cursor);
  14048. }
  14049. DllExport void
  14050. UIElement_OnClickEnd (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int button, int buttons, int qualifiers, Urho3D::Cursor * cursor, Urho3D::UIElement * beginElement)
  14051. {
  14052. _target->OnClickEnd (position, screenPosition, button, buttons, qualifiers, cursor, beginElement);
  14053. }
  14054. DllExport void
  14055. UIElement_OnDoubleClick (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int button, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  14056. {
  14057. _target->OnDoubleClick (position, screenPosition, button, buttons, qualifiers, cursor);
  14058. }
  14059. DllExport void
  14060. UIElement_OnWheel (Urho3D::UIElement *_target, int delta, int buttons, int qualifiers)
  14061. {
  14062. _target->OnWheel (delta, buttons, qualifiers);
  14063. }
  14064. DllExport void
  14065. UIElement_OnKey (Urho3D::UIElement *_target, int key, int buttons, int qualifiers)
  14066. {
  14067. _target->OnKey (key, buttons, qualifiers);
  14068. }
  14069. DllExport void
  14070. UIElement_OnTextInput (Urho3D::UIElement *_target, const char * text, int buttons, int qualifiers)
  14071. {
  14072. _target->OnTextInput (Urho3D::String(text), buttons, qualifiers);
  14073. }
  14074. DllExport void
  14075. UIElement_OnResize (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & newSize, const class Urho3D::IntVector2 & delta)
  14076. {
  14077. _target->OnResize (newSize, delta);
  14078. }
  14079. DllExport void
  14080. UIElement_OnPositionSet (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & newPosition)
  14081. {
  14082. _target->OnPositionSet (newPosition);
  14083. }
  14084. DllExport void
  14085. UIElement_OnSetEditable (Urho3D::UIElement *_target)
  14086. {
  14087. _target->OnSetEditable ();
  14088. }
  14089. DllExport void
  14090. UIElement_OnIndentSet (Urho3D::UIElement *_target)
  14091. {
  14092. _target->OnIndentSet ();
  14093. }
  14094. DllExport Interop::IntVector2
  14095. UIElement_ScreenToElement (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & screenPosition)
  14096. {
  14097. return *((Interop::IntVector2 *) &(_target->ScreenToElement (screenPosition)));
  14098. }
  14099. DllExport Interop::IntVector2
  14100. UIElement_ElementToScreen (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & position)
  14101. {
  14102. return *((Interop::IntVector2 *) &(_target->ElementToScreen (position)));
  14103. }
  14104. DllExport int
  14105. UIElement_LoadXML1_File (Urho3D::UIElement *_target, File * source)
  14106. {
  14107. return _target->LoadXML (*source);
  14108. }
  14109. DllExport int
  14110. UIElement_LoadXML1_MemoryBuffer (Urho3D::UIElement *_target, MemoryBuffer * source)
  14111. {
  14112. return _target->LoadXML (*source);
  14113. }
  14114. DllExport int
  14115. UIElement_SaveXML2_File (Urho3D::UIElement *_target, File * dest, const char * indentation)
  14116. {
  14117. return _target->SaveXML (*dest, Urho3D::String(indentation));
  14118. }
  14119. DllExport int
  14120. UIElement_SaveXML2_MemoryBuffer (Urho3D::UIElement *_target, MemoryBuffer * dest, const char * indentation)
  14121. {
  14122. return _target->SaveXML (*dest, Urho3D::String(indentation));
  14123. }
  14124. DllExport int
  14125. UIElement_FilterAttributes (Urho3D::UIElement *_target, Urho3D::XMLElement & dest)
  14126. {
  14127. return _target->FilterAttributes (dest);
  14128. }
  14129. DllExport void
  14130. UIElement_SetName (Urho3D::UIElement *_target, const char * name)
  14131. {
  14132. _target->SetName (Urho3D::String(name));
  14133. }
  14134. DllExport void
  14135. UIElement_SetPosition (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & position)
  14136. {
  14137. _target->SetPosition (position);
  14138. }
  14139. DllExport void
  14140. UIElement_SetPosition3 (Urho3D::UIElement *_target, int x, int y)
  14141. {
  14142. _target->SetPosition (x, y);
  14143. }
  14144. DllExport void
  14145. UIElement_SetSize (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & size)
  14146. {
  14147. _target->SetSize (size);
  14148. }
  14149. DllExport void
  14150. UIElement_SetSize4 (Urho3D::UIElement *_target, int width, int height)
  14151. {
  14152. _target->SetSize (width, height);
  14153. }
  14154. DllExport void
  14155. UIElement_SetWidth (Urho3D::UIElement *_target, int width)
  14156. {
  14157. _target->SetWidth (width);
  14158. }
  14159. DllExport void
  14160. UIElement_SetHeight (Urho3D::UIElement *_target, int height)
  14161. {
  14162. _target->SetHeight (height);
  14163. }
  14164. DllExport void
  14165. UIElement_SetMinSize (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & minSize)
  14166. {
  14167. _target->SetMinSize (minSize);
  14168. }
  14169. DllExport void
  14170. UIElement_SetMinSize5 (Urho3D::UIElement *_target, int width, int height)
  14171. {
  14172. _target->SetMinSize (width, height);
  14173. }
  14174. DllExport void
  14175. UIElement_SetMinWidth (Urho3D::UIElement *_target, int width)
  14176. {
  14177. _target->SetMinWidth (width);
  14178. }
  14179. DllExport void
  14180. UIElement_SetMinHeight (Urho3D::UIElement *_target, int height)
  14181. {
  14182. _target->SetMinHeight (height);
  14183. }
  14184. DllExport void
  14185. UIElement_SetMaxSize (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & maxSize)
  14186. {
  14187. _target->SetMaxSize (maxSize);
  14188. }
  14189. DllExport void
  14190. UIElement_SetMaxSize6 (Urho3D::UIElement *_target, int width, int height)
  14191. {
  14192. _target->SetMaxSize (width, height);
  14193. }
  14194. DllExport void
  14195. UIElement_SetMaxWidth (Urho3D::UIElement *_target, int width)
  14196. {
  14197. _target->SetMaxWidth (width);
  14198. }
  14199. DllExport void
  14200. UIElement_SetMaxHeight (Urho3D::UIElement *_target, int height)
  14201. {
  14202. _target->SetMaxHeight (height);
  14203. }
  14204. DllExport void
  14205. UIElement_SetFixedSize (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & size)
  14206. {
  14207. _target->SetFixedSize (size);
  14208. }
  14209. DllExport void
  14210. UIElement_SetFixedSize7 (Urho3D::UIElement *_target, int width, int height)
  14211. {
  14212. _target->SetFixedSize (width, height);
  14213. }
  14214. DllExport void
  14215. UIElement_SetFixedWidth (Urho3D::UIElement *_target, int width)
  14216. {
  14217. _target->SetFixedWidth (width);
  14218. }
  14219. DllExport void
  14220. UIElement_SetFixedHeight (Urho3D::UIElement *_target, int height)
  14221. {
  14222. _target->SetFixedHeight (height);
  14223. }
  14224. DllExport void
  14225. UIElement_SetAlignment (Urho3D::UIElement *_target, enum Urho3D::HorizontalAlignment hAlign, enum Urho3D::VerticalAlignment vAlign)
  14226. {
  14227. _target->SetAlignment (hAlign, vAlign);
  14228. }
  14229. DllExport void
  14230. UIElement_SetHorizontalAlignment (Urho3D::UIElement *_target, enum Urho3D::HorizontalAlignment align)
  14231. {
  14232. _target->SetHorizontalAlignment (align);
  14233. }
  14234. DllExport void
  14235. UIElement_SetVerticalAlignment (Urho3D::UIElement *_target, enum Urho3D::VerticalAlignment align)
  14236. {
  14237. _target->SetVerticalAlignment (align);
  14238. }
  14239. DllExport void
  14240. UIElement_SetEnableAnchor (Urho3D::UIElement *_target, bool enable)
  14241. {
  14242. _target->SetEnableAnchor (enable);
  14243. }
  14244. DllExport void
  14245. UIElement_SetMinAnchor (Urho3D::UIElement *_target, const class Urho3D::Vector2 & anchor)
  14246. {
  14247. _target->SetMinAnchor (anchor);
  14248. }
  14249. DllExport void
  14250. UIElement_SetMinAnchor8 (Urho3D::UIElement *_target, float x, float y)
  14251. {
  14252. _target->SetMinAnchor (x, y);
  14253. }
  14254. DllExport void
  14255. UIElement_SetMaxAnchor (Urho3D::UIElement *_target, const class Urho3D::Vector2 & anchor)
  14256. {
  14257. _target->SetMaxAnchor (anchor);
  14258. }
  14259. DllExport void
  14260. UIElement_SetMaxAnchor9 (Urho3D::UIElement *_target, float x, float y)
  14261. {
  14262. _target->SetMaxAnchor (x, y);
  14263. }
  14264. DllExport void
  14265. UIElement_SetMinOffset (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & offset)
  14266. {
  14267. _target->SetMinOffset (offset);
  14268. }
  14269. DllExport void
  14270. UIElement_SetMaxOffset (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & offset)
  14271. {
  14272. _target->SetMaxOffset (offset);
  14273. }
  14274. DllExport void
  14275. UIElement_SetPivot (Urho3D::UIElement *_target, const class Urho3D::Vector2 & pivot)
  14276. {
  14277. _target->SetPivot (pivot);
  14278. }
  14279. DllExport void
  14280. UIElement_SetPivot10 (Urho3D::UIElement *_target, float x, float y)
  14281. {
  14282. _target->SetPivot (x, y);
  14283. }
  14284. DllExport void
  14285. UIElement_SetClipBorder (Urho3D::UIElement *_target, const class Urho3D::IntRect & rect)
  14286. {
  14287. _target->SetClipBorder (rect);
  14288. }
  14289. DllExport void
  14290. UIElement_SetColor (Urho3D::UIElement *_target, const class Urho3D::Color & color)
  14291. {
  14292. _target->SetColor (color);
  14293. }
  14294. DllExport void
  14295. UIElement_SetColor11 (Urho3D::UIElement *_target, enum Urho3D::Corner corner, const class Urho3D::Color & color)
  14296. {
  14297. _target->SetColor (corner, color);
  14298. }
  14299. DllExport void
  14300. UIElement_SetPriority (Urho3D::UIElement *_target, int priority)
  14301. {
  14302. _target->SetPriority (priority);
  14303. }
  14304. DllExport void
  14305. UIElement_SetOpacity (Urho3D::UIElement *_target, float opacity)
  14306. {
  14307. _target->SetOpacity (opacity);
  14308. }
  14309. DllExport void
  14310. UIElement_SetBringToFront (Urho3D::UIElement *_target, bool enable)
  14311. {
  14312. _target->SetBringToFront (enable);
  14313. }
  14314. DllExport void
  14315. UIElement_SetBringToBack (Urho3D::UIElement *_target, bool enable)
  14316. {
  14317. _target->SetBringToBack (enable);
  14318. }
  14319. DllExport void
  14320. UIElement_SetClipChildren (Urho3D::UIElement *_target, bool enable)
  14321. {
  14322. _target->SetClipChildren (enable);
  14323. }
  14324. DllExport void
  14325. UIElement_SetSortChildren (Urho3D::UIElement *_target, bool enable)
  14326. {
  14327. _target->SetSortChildren (enable);
  14328. }
  14329. DllExport void
  14330. UIElement_SetUseDerivedOpacity (Urho3D::UIElement *_target, bool enable)
  14331. {
  14332. _target->SetUseDerivedOpacity (enable);
  14333. }
  14334. DllExport void
  14335. UIElement_SetEnabled (Urho3D::UIElement *_target, bool enable)
  14336. {
  14337. _target->SetEnabled (enable);
  14338. }
  14339. DllExport void
  14340. UIElement_SetDeepEnabled (Urho3D::UIElement *_target, bool enable)
  14341. {
  14342. _target->SetDeepEnabled (enable);
  14343. }
  14344. DllExport void
  14345. UIElement_ResetDeepEnabled (Urho3D::UIElement *_target)
  14346. {
  14347. _target->ResetDeepEnabled ();
  14348. }
  14349. DllExport void
  14350. UIElement_SetEnabledRecursive (Urho3D::UIElement *_target, bool enable)
  14351. {
  14352. _target->SetEnabledRecursive (enable);
  14353. }
  14354. DllExport void
  14355. UIElement_SetEditable (Urho3D::UIElement *_target, bool enable)
  14356. {
  14357. _target->SetEditable (enable);
  14358. }
  14359. DllExport void
  14360. UIElement_SetFocus (Urho3D::UIElement *_target, bool enable)
  14361. {
  14362. _target->SetFocus (enable);
  14363. }
  14364. DllExport void
  14365. UIElement_SetSelected (Urho3D::UIElement *_target, bool enable)
  14366. {
  14367. _target->SetSelected (enable);
  14368. }
  14369. DllExport void
  14370. UIElement_SetVisible (Urho3D::UIElement *_target, bool enable)
  14371. {
  14372. _target->SetVisible (enable);
  14373. }
  14374. DllExport void
  14375. UIElement_SetFocusMode (Urho3D::UIElement *_target, enum Urho3D::FocusMode mode)
  14376. {
  14377. _target->SetFocusMode (mode);
  14378. }
  14379. DllExport void
  14380. UIElement_SetDragDropMode (Urho3D::UIElement *_target, unsigned int mode)
  14381. {
  14382. _target->SetDragDropMode (mode);
  14383. }
  14384. DllExport int
  14385. UIElement_SetStyle (Urho3D::UIElement *_target, const char * styleName, Urho3D::XMLFile * file)
  14386. {
  14387. return _target->SetStyle (Urho3D::String(styleName), file);
  14388. }
  14389. DllExport int
  14390. UIElement_SetStyle12 (Urho3D::UIElement *_target, const class Urho3D::XMLElement & element)
  14391. {
  14392. return _target->SetStyle (element);
  14393. }
  14394. DllExport int
  14395. UIElement_SetStyleAuto (Urho3D::UIElement *_target, Urho3D::XMLFile * file)
  14396. {
  14397. return _target->SetStyleAuto (file);
  14398. }
  14399. DllExport void
  14400. UIElement_SetDefaultStyle (Urho3D::UIElement *_target, Urho3D::XMLFile * style)
  14401. {
  14402. _target->SetDefaultStyle (style);
  14403. }
  14404. DllExport void
  14405. UIElement_SetLayout (Urho3D::UIElement *_target, enum Urho3D::LayoutMode mode, int spacing, const class Urho3D::IntRect & border)
  14406. {
  14407. _target->SetLayout (mode, spacing, border);
  14408. }
  14409. DllExport void
  14410. UIElement_SetLayoutMode (Urho3D::UIElement *_target, enum Urho3D::LayoutMode mode)
  14411. {
  14412. _target->SetLayoutMode (mode);
  14413. }
  14414. DllExport void
  14415. UIElement_SetLayoutSpacing (Urho3D::UIElement *_target, int spacing)
  14416. {
  14417. _target->SetLayoutSpacing (spacing);
  14418. }
  14419. DllExport void
  14420. UIElement_SetLayoutBorder (Urho3D::UIElement *_target, const class Urho3D::IntRect & border)
  14421. {
  14422. _target->SetLayoutBorder (border);
  14423. }
  14424. DllExport void
  14425. UIElement_SetLayoutFlexScale (Urho3D::UIElement *_target, const class Urho3D::Vector2 & scale)
  14426. {
  14427. _target->SetLayoutFlexScale (scale);
  14428. }
  14429. DllExport void
  14430. UIElement_SetIndent (Urho3D::UIElement *_target, int indent)
  14431. {
  14432. _target->SetIndent (indent);
  14433. }
  14434. DllExport void
  14435. UIElement_SetIndentSpacing (Urho3D::UIElement *_target, int indentSpacing)
  14436. {
  14437. _target->SetIndentSpacing (indentSpacing);
  14438. }
  14439. DllExport void
  14440. UIElement_UpdateLayout (Urho3D::UIElement *_target)
  14441. {
  14442. _target->UpdateLayout ();
  14443. }
  14444. DllExport void
  14445. UIElement_DisableLayoutUpdate (Urho3D::UIElement *_target)
  14446. {
  14447. _target->DisableLayoutUpdate ();
  14448. }
  14449. DllExport void
  14450. UIElement_EnableLayoutUpdate (Urho3D::UIElement *_target)
  14451. {
  14452. _target->EnableLayoutUpdate ();
  14453. }
  14454. DllExport void
  14455. UIElement_BringToFront (Urho3D::UIElement *_target)
  14456. {
  14457. _target->BringToFront ();
  14458. }
  14459. DllExport Urho3D::UIElement *
  14460. UIElement_CreateChild (Urho3D::UIElement *_target, int type, const char * name, unsigned int index)
  14461. {
  14462. return _target->CreateChild (Urho3D::StringHash(type), Urho3D::String(name), index);
  14463. }
  14464. DllExport void
  14465. UIElement_AddChild (Urho3D::UIElement *_target, Urho3D::UIElement * element)
  14466. {
  14467. _target->AddChild (element);
  14468. }
  14469. DllExport void
  14470. UIElement_InsertChild (Urho3D::UIElement *_target, unsigned int index, Urho3D::UIElement * element)
  14471. {
  14472. _target->InsertChild (index, element);
  14473. }
  14474. DllExport void
  14475. UIElement_RemoveChild (Urho3D::UIElement *_target, Urho3D::UIElement * element, unsigned int index)
  14476. {
  14477. _target->RemoveChild (element, index);
  14478. }
  14479. DllExport void
  14480. UIElement_RemoveChildAtIndex (Urho3D::UIElement *_target, unsigned int index)
  14481. {
  14482. _target->RemoveChildAtIndex (index);
  14483. }
  14484. DllExport void
  14485. UIElement_RemoveAllChildren (Urho3D::UIElement *_target)
  14486. {
  14487. _target->RemoveAllChildren ();
  14488. }
  14489. DllExport void
  14490. UIElement_Remove (Urho3D::UIElement *_target)
  14491. {
  14492. _target->Remove ();
  14493. }
  14494. DllExport unsigned int
  14495. UIElement_FindChild (Urho3D::UIElement *_target, Urho3D::UIElement * element)
  14496. {
  14497. return _target->FindChild (element);
  14498. }
  14499. DllExport void
  14500. UIElement_SetParent (Urho3D::UIElement *_target, Urho3D::UIElement * parent, unsigned int index)
  14501. {
  14502. _target->SetParent (parent, index);
  14503. }
  14504. // Urho3D::Variant overloads begin:
  14505. DllExport void
  14506. UIElement_SetVar0 (Urho3D::UIElement *_target, int key, const class Urho3D::Vector3 & value)
  14507. {
  14508. _target->SetVar (Urho3D::StringHash(key), (value));
  14509. }
  14510. DllExport void
  14511. UIElement_SetVar1 (Urho3D::UIElement *_target, int key, const class Urho3D::IntRect & value)
  14512. {
  14513. _target->SetVar (Urho3D::StringHash(key), (value));
  14514. }
  14515. DllExport void
  14516. UIElement_SetVar2 (Urho3D::UIElement *_target, int key, const class Urho3D::Color & value)
  14517. {
  14518. _target->SetVar (Urho3D::StringHash(key), (value));
  14519. }
  14520. DllExport void
  14521. UIElement_SetVar3 (Urho3D::UIElement *_target, int key, const class Urho3D::Vector2 & value)
  14522. {
  14523. _target->SetVar (Urho3D::StringHash(key), (value));
  14524. }
  14525. DllExport void
  14526. UIElement_SetVar4 (Urho3D::UIElement *_target, int key, const class Urho3D::Vector4 & value)
  14527. {
  14528. _target->SetVar (Urho3D::StringHash(key), (value));
  14529. }
  14530. DllExport void
  14531. UIElement_SetVar5 (Urho3D::UIElement *_target, int key, const class Urho3D::IntVector2 & value)
  14532. {
  14533. _target->SetVar (Urho3D::StringHash(key), (value));
  14534. }
  14535. DllExport void
  14536. UIElement_SetVar6 (Urho3D::UIElement *_target, int key, const class Urho3D::Quaternion & value)
  14537. {
  14538. _target->SetVar (Urho3D::StringHash(key), (value));
  14539. }
  14540. DllExport void
  14541. UIElement_SetVar7 (Urho3D::UIElement *_target, int key, const class Urho3D::Matrix4 & value)
  14542. {
  14543. _target->SetVar (Urho3D::StringHash(key), (value));
  14544. }
  14545. DllExport void
  14546. UIElement_SetVar8 (Urho3D::UIElement *_target, int key, const class Urho3D::Matrix3x4 & value)
  14547. {
  14548. _target->SetVar (Urho3D::StringHash(key), (value));
  14549. }
  14550. DllExport void
  14551. UIElement_SetVar9 (Urho3D::UIElement *_target, int key, int value)
  14552. {
  14553. _target->SetVar (Urho3D::StringHash(key), (value));
  14554. }
  14555. DllExport void
  14556. UIElement_SetVar10 (Urho3D::UIElement *_target, int key, float value)
  14557. {
  14558. _target->SetVar (Urho3D::StringHash(key), (value));
  14559. }
  14560. DllExport void
  14561. UIElement_SetVar11 (Urho3D::UIElement *_target, int key, const char * value)
  14562. {
  14563. _target->SetVar (Urho3D::StringHash(key), Urho3D::String(value));
  14564. }
  14565. // Urho3D::Variant overloads end.
  14566. DllExport void
  14567. UIElement_SetInternal (Urho3D::UIElement *_target, bool enable)
  14568. {
  14569. _target->SetInternal (enable);
  14570. }
  14571. DllExport void
  14572. UIElement_SetTraversalMode (Urho3D::UIElement *_target, enum Urho3D::TraversalMode traversalMode)
  14573. {
  14574. _target->SetTraversalMode (traversalMode);
  14575. }
  14576. DllExport void
  14577. UIElement_SetElementEventSender (Urho3D::UIElement *_target, bool flag)
  14578. {
  14579. _target->SetElementEventSender (flag);
  14580. }
  14581. DllExport void
  14582. UIElement_AddTag (Urho3D::UIElement *_target, const char * tag)
  14583. {
  14584. _target->AddTag (Urho3D::String(tag));
  14585. }
  14586. DllExport int
  14587. UIElement_RemoveTag (Urho3D::UIElement *_target, const char * tag)
  14588. {
  14589. return _target->RemoveTag (Urho3D::String(tag));
  14590. }
  14591. DllExport void
  14592. UIElement_RemoveAllTags (Urho3D::UIElement *_target)
  14593. {
  14594. _target->RemoveAllTags ();
  14595. }
  14596. DllExport const char *
  14597. UIElement_GetName (Urho3D::UIElement *_target)
  14598. {
  14599. return stringdup((_target->GetName ()).CString ());
  14600. }
  14601. DllExport Interop::IntVector2
  14602. UIElement_GetPosition (Urho3D::UIElement *_target)
  14603. {
  14604. return *((Interop::IntVector2 *) &(_target->GetPosition ()));
  14605. }
  14606. DllExport Interop::IntVector2
  14607. UIElement_GetSize (Urho3D::UIElement *_target)
  14608. {
  14609. return *((Interop::IntVector2 *) &(_target->GetSize ()));
  14610. }
  14611. DllExport int
  14612. UIElement_GetWidth (Urho3D::UIElement *_target)
  14613. {
  14614. return _target->GetWidth ();
  14615. }
  14616. DllExport int
  14617. UIElement_GetHeight (Urho3D::UIElement *_target)
  14618. {
  14619. return _target->GetHeight ();
  14620. }
  14621. DllExport Interop::IntVector2
  14622. UIElement_GetMinSize (Urho3D::UIElement *_target)
  14623. {
  14624. return *((Interop::IntVector2 *) &(_target->GetMinSize ()));
  14625. }
  14626. DllExport int
  14627. UIElement_GetMinWidth (Urho3D::UIElement *_target)
  14628. {
  14629. return _target->GetMinWidth ();
  14630. }
  14631. DllExport int
  14632. UIElement_GetMinHeight (Urho3D::UIElement *_target)
  14633. {
  14634. return _target->GetMinHeight ();
  14635. }
  14636. DllExport Interop::IntVector2
  14637. UIElement_GetMaxSize (Urho3D::UIElement *_target)
  14638. {
  14639. return *((Interop::IntVector2 *) &(_target->GetMaxSize ()));
  14640. }
  14641. DllExport int
  14642. UIElement_GetMaxWidth (Urho3D::UIElement *_target)
  14643. {
  14644. return _target->GetMaxWidth ();
  14645. }
  14646. DllExport int
  14647. UIElement_GetMaxHeight (Urho3D::UIElement *_target)
  14648. {
  14649. return _target->GetMaxHeight ();
  14650. }
  14651. DllExport int
  14652. UIElement_IsFixedSize (Urho3D::UIElement *_target)
  14653. {
  14654. return _target->IsFixedSize ();
  14655. }
  14656. DllExport int
  14657. UIElement_IsFixedWidth (Urho3D::UIElement *_target)
  14658. {
  14659. return _target->IsFixedWidth ();
  14660. }
  14661. DllExport int
  14662. UIElement_IsFixedHeight (Urho3D::UIElement *_target)
  14663. {
  14664. return _target->IsFixedHeight ();
  14665. }
  14666. DllExport Interop::IntVector2
  14667. UIElement_GetChildOffset (Urho3D::UIElement *_target)
  14668. {
  14669. return *((Interop::IntVector2 *) &(_target->GetChildOffset ()));
  14670. }
  14671. DllExport enum Urho3D::HorizontalAlignment
  14672. UIElement_GetHorizontalAlignment (Urho3D::UIElement *_target)
  14673. {
  14674. return _target->GetHorizontalAlignment ();
  14675. }
  14676. DllExport enum Urho3D::VerticalAlignment
  14677. UIElement_GetVerticalAlignment (Urho3D::UIElement *_target)
  14678. {
  14679. return _target->GetVerticalAlignment ();
  14680. }
  14681. DllExport int
  14682. UIElement_GetEnableAnchor (Urho3D::UIElement *_target)
  14683. {
  14684. return _target->GetEnableAnchor ();
  14685. }
  14686. DllExport Interop::Vector2
  14687. UIElement_GetMinAnchor (Urho3D::UIElement *_target)
  14688. {
  14689. return *((Interop::Vector2 *) &(_target->GetMinAnchor ()));
  14690. }
  14691. DllExport Interop::Vector2
  14692. UIElement_GetMaxAnchor (Urho3D::UIElement *_target)
  14693. {
  14694. return *((Interop::Vector2 *) &(_target->GetMaxAnchor ()));
  14695. }
  14696. DllExport Interop::IntVector2
  14697. UIElement_GetMinOffset (Urho3D::UIElement *_target)
  14698. {
  14699. return *((Interop::IntVector2 *) &(_target->GetMinOffset ()));
  14700. }
  14701. DllExport Interop::IntVector2
  14702. UIElement_GetMaxOffset (Urho3D::UIElement *_target)
  14703. {
  14704. return *((Interop::IntVector2 *) &(_target->GetMaxOffset ()));
  14705. }
  14706. DllExport Interop::Vector2
  14707. UIElement_GetPivot (Urho3D::UIElement *_target)
  14708. {
  14709. return *((Interop::Vector2 *) &(_target->GetPivot ()));
  14710. }
  14711. DllExport const class Urho3D::IntRect &
  14712. UIElement_GetClipBorder (Urho3D::UIElement *_target)
  14713. {
  14714. return _target->GetClipBorder ();
  14715. }
  14716. DllExport Interop::Color
  14717. UIElement_GetColor (Urho3D::UIElement *_target, enum Urho3D::Corner corner)
  14718. {
  14719. return *((Interop::Color *) &(_target->GetColor (corner)));
  14720. }
  14721. DllExport int
  14722. UIElement_GetPriority (Urho3D::UIElement *_target)
  14723. {
  14724. return _target->GetPriority ();
  14725. }
  14726. DllExport float
  14727. UIElement_GetOpacity (Urho3D::UIElement *_target)
  14728. {
  14729. return _target->GetOpacity ();
  14730. }
  14731. DllExport float
  14732. UIElement_GetDerivedOpacity (Urho3D::UIElement *_target)
  14733. {
  14734. return _target->GetDerivedOpacity ();
  14735. }
  14736. DllExport int
  14737. UIElement_GetBringToFront (Urho3D::UIElement *_target)
  14738. {
  14739. return _target->GetBringToFront ();
  14740. }
  14741. DllExport int
  14742. UIElement_GetBringToBack (Urho3D::UIElement *_target)
  14743. {
  14744. return _target->GetBringToBack ();
  14745. }
  14746. DllExport int
  14747. UIElement_GetClipChildren (Urho3D::UIElement *_target)
  14748. {
  14749. return _target->GetClipChildren ();
  14750. }
  14751. DllExport int
  14752. UIElement_GetSortChildren (Urho3D::UIElement *_target)
  14753. {
  14754. return _target->GetSortChildren ();
  14755. }
  14756. DllExport int
  14757. UIElement_GetUseDerivedOpacity (Urho3D::UIElement *_target)
  14758. {
  14759. return _target->GetUseDerivedOpacity ();
  14760. }
  14761. DllExport int
  14762. UIElement_HasFocus (Urho3D::UIElement *_target)
  14763. {
  14764. return _target->HasFocus ();
  14765. }
  14766. DllExport int
  14767. UIElement_IsEnabled (Urho3D::UIElement *_target)
  14768. {
  14769. return _target->IsEnabled ();
  14770. }
  14771. DllExport int
  14772. UIElement_IsEnabledSelf (Urho3D::UIElement *_target)
  14773. {
  14774. return _target->IsEnabledSelf ();
  14775. }
  14776. DllExport int
  14777. UIElement_IsEditable (Urho3D::UIElement *_target)
  14778. {
  14779. return _target->IsEditable ();
  14780. }
  14781. DllExport int
  14782. UIElement_IsSelected (Urho3D::UIElement *_target)
  14783. {
  14784. return _target->IsSelected ();
  14785. }
  14786. DllExport int
  14787. UIElement_IsVisible (Urho3D::UIElement *_target)
  14788. {
  14789. return _target->IsVisible ();
  14790. }
  14791. DllExport int
  14792. UIElement_IsVisibleEffective (Urho3D::UIElement *_target)
  14793. {
  14794. return _target->IsVisibleEffective ();
  14795. }
  14796. DllExport int
  14797. UIElement_IsHovering (Urho3D::UIElement *_target)
  14798. {
  14799. return _target->IsHovering ();
  14800. }
  14801. DllExport int
  14802. UIElement_IsInternal (Urho3D::UIElement *_target)
  14803. {
  14804. return _target->IsInternal ();
  14805. }
  14806. DllExport int
  14807. UIElement_HasColorGradient (Urho3D::UIElement *_target)
  14808. {
  14809. return _target->HasColorGradient ();
  14810. }
  14811. DllExport enum Urho3D::FocusMode
  14812. UIElement_GetFocusMode (Urho3D::UIElement *_target)
  14813. {
  14814. return _target->GetFocusMode ();
  14815. }
  14816. DllExport unsigned int
  14817. UIElement_GetDragDropMode (Urho3D::UIElement *_target)
  14818. {
  14819. return _target->GetDragDropMode ();
  14820. }
  14821. DllExport const char *
  14822. UIElement_GetAppliedStyle (Urho3D::UIElement *_target)
  14823. {
  14824. return stringdup((_target->GetAppliedStyle ()).CString ());
  14825. }
  14826. DllExport Urho3D::XMLFile *
  14827. UIElement_GetDefaultStyle (Urho3D::UIElement *_target, bool recursiveUp)
  14828. {
  14829. return _target->GetDefaultStyle (recursiveUp);
  14830. }
  14831. DllExport enum Urho3D::LayoutMode
  14832. UIElement_GetLayoutMode (Urho3D::UIElement *_target)
  14833. {
  14834. return _target->GetLayoutMode ();
  14835. }
  14836. DllExport int
  14837. UIElement_GetLayoutSpacing (Urho3D::UIElement *_target)
  14838. {
  14839. return _target->GetLayoutSpacing ();
  14840. }
  14841. DllExport const class Urho3D::IntRect &
  14842. UIElement_GetLayoutBorder (Urho3D::UIElement *_target)
  14843. {
  14844. return _target->GetLayoutBorder ();
  14845. }
  14846. DllExport Interop::Vector2
  14847. UIElement_GetLayoutFlexScale (Urho3D::UIElement *_target)
  14848. {
  14849. return *((Interop::Vector2 *) &(_target->GetLayoutFlexScale ()));
  14850. }
  14851. DllExport unsigned int
  14852. UIElement_GetNumChildren (Urho3D::UIElement *_target, bool recursive)
  14853. {
  14854. return _target->GetNumChildren (recursive);
  14855. }
  14856. DllExport Urho3D::UIElement *
  14857. UIElement_GetChild (Urho3D::UIElement *_target, unsigned int index)
  14858. {
  14859. return _target->GetChild (index);
  14860. }
  14861. DllExport Urho3D::UIElement *
  14862. UIElement_GetChild13 (Urho3D::UIElement *_target, const char * name, bool recursive)
  14863. {
  14864. return _target->GetChild (Urho3D::String(name), recursive);
  14865. }
  14866. DllExport const Vector<SharedPtr<class Urho3D::UIElement> > &
  14867. UIElement_GetChildren (Urho3D::UIElement *_target)
  14868. {
  14869. return _target->GetChildren ();
  14870. }
  14871. DllExport Urho3D::UIElement *
  14872. UIElement_GetParent (Urho3D::UIElement *_target)
  14873. {
  14874. return _target->GetParent ();
  14875. }
  14876. DllExport Urho3D::UIElement *
  14877. UIElement_GetRoot (Urho3D::UIElement *_target)
  14878. {
  14879. return _target->GetRoot ();
  14880. }
  14881. DllExport Interop::Color
  14882. UIElement_GetDerivedColor (Urho3D::UIElement *_target)
  14883. {
  14884. return *((Interop::Color *) &(_target->GetDerivedColor ()));
  14885. }
  14886. DllExport int
  14887. UIElement_HasTag (Urho3D::UIElement *_target, const char * tag)
  14888. {
  14889. return _target->HasTag (Urho3D::String(tag));
  14890. }
  14891. DllExport int
  14892. UIElement_GetDragButtonCombo (Urho3D::UIElement *_target)
  14893. {
  14894. return _target->GetDragButtonCombo ();
  14895. }
  14896. DllExport unsigned int
  14897. UIElement_GetDragButtonCount (Urho3D::UIElement *_target)
  14898. {
  14899. return _target->GetDragButtonCount ();
  14900. }
  14901. DllExport int
  14902. UIElement_IsInside (Urho3D::UIElement *_target, Urho3D::IntVector2 position, bool isScreen)
  14903. {
  14904. return _target->IsInside (position, isScreen);
  14905. }
  14906. DllExport int
  14907. UIElement_IsInsideCombined (Urho3D::UIElement *_target, Urho3D::IntVector2 position, bool isScreen)
  14908. {
  14909. return _target->IsInsideCombined (position, isScreen);
  14910. }
  14911. DllExport Urho3D::IntRect
  14912. UIElement_GetCombinedScreenRect (Urho3D::UIElement *_target)
  14913. {
  14914. return _target->GetCombinedScreenRect ();
  14915. }
  14916. DllExport void
  14917. UIElement_SortChildren (Urho3D::UIElement *_target)
  14918. {
  14919. _target->SortChildren ();
  14920. }
  14921. DllExport int
  14922. UIElement_GetLayoutElementMaxSize (Urho3D::UIElement *_target)
  14923. {
  14924. return _target->GetLayoutElementMaxSize ();
  14925. }
  14926. DllExport int
  14927. UIElement_GetIndent (Urho3D::UIElement *_target)
  14928. {
  14929. return _target->GetIndent ();
  14930. }
  14931. DllExport int
  14932. UIElement_GetIndentSpacing (Urho3D::UIElement *_target)
  14933. {
  14934. return _target->GetIndentSpacing ();
  14935. }
  14936. DllExport int
  14937. UIElement_GetIndentWidth (Urho3D::UIElement *_target)
  14938. {
  14939. return _target->GetIndentWidth ();
  14940. }
  14941. DllExport void
  14942. UIElement_SetChildOffset (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & offset)
  14943. {
  14944. _target->SetChildOffset (offset);
  14945. }
  14946. DllExport void
  14947. UIElement_SetHovering (Urho3D::UIElement *_target, bool enable)
  14948. {
  14949. _target->SetHovering (enable);
  14950. }
  14951. DllExport Interop::Color
  14952. UIElement_GetColorAttr (Urho3D::UIElement *_target)
  14953. {
  14954. return *((Interop::Color *) &(_target->GetColorAttr ()));
  14955. }
  14956. DllExport enum Urho3D::TraversalMode
  14957. UIElement_GetTraversalMode (Urho3D::UIElement *_target)
  14958. {
  14959. return _target->GetTraversalMode ();
  14960. }
  14961. DllExport int
  14962. UIElement_IsElementEventSender (Urho3D::UIElement *_target)
  14963. {
  14964. return _target->IsElementEventSender ();
  14965. }
  14966. DllExport Urho3D::UIElement *
  14967. UIElement_GetElementEventSender (Urho3D::UIElement *_target)
  14968. {
  14969. return _target->GetElementEventSender ();
  14970. }
  14971. DllExport Interop::IntVector2
  14972. UIElement_GetEffectiveMinSize (Urho3D::UIElement *_target)
  14973. {
  14974. return *((Interop::IntVector2 *) &(_target->GetEffectiveMinSize ()));
  14975. }
  14976. DllExport int
  14977. BorderImage_GetType (Urho3D::BorderImage *_target)
  14978. {
  14979. return (_target->GetType ()).Value ();
  14980. }
  14981. DllExport const char *
  14982. BorderImage_GetTypeName (Urho3D::BorderImage *_target)
  14983. {
  14984. return stringdup((_target->GetTypeName ()).CString ());
  14985. }
  14986. DllExport int
  14987. BorderImage_GetTypeStatic ()
  14988. {
  14989. return (BorderImage::GetTypeStatic ()).Value ();
  14990. }
  14991. DllExport const char *
  14992. BorderImage_GetTypeNameStatic ()
  14993. {
  14994. return stringdup((BorderImage::GetTypeNameStatic ()).CString ());
  14995. }
  14996. DllExport void *
  14997. BorderImage_BorderImage (Urho3D::Context * context)
  14998. {
  14999. return WeakPtr<BorderImage>(new BorderImage(context));
  15000. }
  15001. DllExport void
  15002. BorderImage_RegisterObject (Urho3D::Context * context)
  15003. {
  15004. BorderImage::RegisterObject (context);
  15005. }
  15006. DllExport void
  15007. BorderImage_SetTexture (Urho3D::BorderImage *_target, Urho3D::Texture * texture)
  15008. {
  15009. _target->SetTexture (texture);
  15010. }
  15011. DllExport void
  15012. BorderImage_SetImageRect (Urho3D::BorderImage *_target, const class Urho3D::IntRect & rect)
  15013. {
  15014. _target->SetImageRect (rect);
  15015. }
  15016. DllExport void
  15017. BorderImage_SetFullImageRect (Urho3D::BorderImage *_target)
  15018. {
  15019. _target->SetFullImageRect ();
  15020. }
  15021. DllExport void
  15022. BorderImage_SetBorder (Urho3D::BorderImage *_target, const class Urho3D::IntRect & rect)
  15023. {
  15024. _target->SetBorder (rect);
  15025. }
  15026. DllExport void
  15027. BorderImage_SetImageBorder (Urho3D::BorderImage *_target, const class Urho3D::IntRect & rect)
  15028. {
  15029. _target->SetImageBorder (rect);
  15030. }
  15031. DllExport void
  15032. BorderImage_SetHoverOffset (Urho3D::BorderImage *_target, const class Urho3D::IntVector2 & offset)
  15033. {
  15034. _target->SetHoverOffset (offset);
  15035. }
  15036. DllExport void
  15037. BorderImage_SetHoverOffset0 (Urho3D::BorderImage *_target, int x, int y)
  15038. {
  15039. _target->SetHoverOffset (x, y);
  15040. }
  15041. DllExport void
  15042. BorderImage_SetBlendMode (Urho3D::BorderImage *_target, enum Urho3D::BlendMode mode)
  15043. {
  15044. _target->SetBlendMode (mode);
  15045. }
  15046. DllExport void
  15047. BorderImage_SetTiled (Urho3D::BorderImage *_target, bool enable)
  15048. {
  15049. _target->SetTiled (enable);
  15050. }
  15051. DllExport Urho3D::Texture *
  15052. BorderImage_GetTexture (Urho3D::BorderImage *_target)
  15053. {
  15054. return _target->GetTexture ();
  15055. }
  15056. DllExport const class Urho3D::IntRect &
  15057. BorderImage_GetImageRect (Urho3D::BorderImage *_target)
  15058. {
  15059. return _target->GetImageRect ();
  15060. }
  15061. DllExport const class Urho3D::IntRect &
  15062. BorderImage_GetBorder (Urho3D::BorderImage *_target)
  15063. {
  15064. return _target->GetBorder ();
  15065. }
  15066. DllExport const class Urho3D::IntRect &
  15067. BorderImage_GetImageBorder (Urho3D::BorderImage *_target)
  15068. {
  15069. return _target->GetImageBorder ();
  15070. }
  15071. DllExport Interop::IntVector2
  15072. BorderImage_GetHoverOffset (Urho3D::BorderImage *_target)
  15073. {
  15074. return *((Interop::IntVector2 *) &(_target->GetHoverOffset ()));
  15075. }
  15076. DllExport enum Urho3D::BlendMode
  15077. BorderImage_GetBlendMode (Urho3D::BorderImage *_target)
  15078. {
  15079. return _target->GetBlendMode ();
  15080. }
  15081. DllExport int
  15082. BorderImage_IsTiled (Urho3D::BorderImage *_target)
  15083. {
  15084. return _target->IsTiled ();
  15085. }
  15086. DllExport Urho3D::ResourceRef
  15087. BorderImage_GetTextureAttr (Urho3D::BorderImage *_target)
  15088. {
  15089. return _target->GetTextureAttr ();
  15090. }
  15091. DllExport int
  15092. Cursor_GetType (Urho3D::Cursor *_target)
  15093. {
  15094. return (_target->GetType ()).Value ();
  15095. }
  15096. DllExport const char *
  15097. Cursor_GetTypeName (Urho3D::Cursor *_target)
  15098. {
  15099. return stringdup((_target->GetTypeName ()).CString ());
  15100. }
  15101. DllExport int
  15102. Cursor_GetTypeStatic ()
  15103. {
  15104. return (Cursor::GetTypeStatic ()).Value ();
  15105. }
  15106. DllExport const char *
  15107. Cursor_GetTypeNameStatic ()
  15108. {
  15109. return stringdup((Cursor::GetTypeNameStatic ()).CString ());
  15110. }
  15111. DllExport void *
  15112. Cursor_Cursor (Urho3D::Context * context)
  15113. {
  15114. return WeakPtr<Cursor>(new Cursor(context));
  15115. }
  15116. DllExport void
  15117. Cursor_RegisterObject (Urho3D::Context * context)
  15118. {
  15119. Cursor::RegisterObject (context);
  15120. }
  15121. DllExport void
  15122. Cursor_DefineShape (Urho3D::Cursor *_target, const char * shape, Urho3D::Image * image, const class Urho3D::IntRect & imageRect, const class Urho3D::IntVector2 & hotSpot)
  15123. {
  15124. _target->DefineShape (Urho3D::String(shape), image, imageRect, hotSpot);
  15125. }
  15126. DllExport void
  15127. Cursor_DefineShape0 (Urho3D::Cursor *_target, enum Urho3D::CursorShape shape, Urho3D::Image * image, const class Urho3D::IntRect & imageRect, const class Urho3D::IntVector2 & hotSpot)
  15128. {
  15129. _target->DefineShape (shape, image, imageRect, hotSpot);
  15130. }
  15131. DllExport void
  15132. Cursor_SetShape (Urho3D::Cursor *_target, const char * shape)
  15133. {
  15134. _target->SetShape (Urho3D::String(shape));
  15135. }
  15136. DllExport void
  15137. Cursor_SetShape1 (Urho3D::Cursor *_target, enum Urho3D::CursorShape shape)
  15138. {
  15139. _target->SetShape (shape);
  15140. }
  15141. DllExport void
  15142. Cursor_SetUseSystemShapes (Urho3D::Cursor *_target, bool enable)
  15143. {
  15144. _target->SetUseSystemShapes (enable);
  15145. }
  15146. DllExport const char *
  15147. Cursor_GetShape (Urho3D::Cursor *_target)
  15148. {
  15149. return stringdup((_target->GetShape ()).CString ());
  15150. }
  15151. DllExport int
  15152. Cursor_GetUseSystemShapes (Urho3D::Cursor *_target)
  15153. {
  15154. return _target->GetUseSystemShapes ();
  15155. }
  15156. DllExport void
  15157. Cursor_ApplyOSCursorShape (Urho3D::Cursor *_target)
  15158. {
  15159. _target->ApplyOSCursorShape ();
  15160. }
  15161. DllExport int
  15162. Input_GetType (Urho3D::Input *_target)
  15163. {
  15164. return (_target->GetType ()).Value ();
  15165. }
  15166. DllExport const char *
  15167. Input_GetTypeName (Urho3D::Input *_target)
  15168. {
  15169. return stringdup((_target->GetTypeName ()).CString ());
  15170. }
  15171. DllExport int
  15172. Input_GetTypeStatic ()
  15173. {
  15174. return (Input::GetTypeStatic ()).Value ();
  15175. }
  15176. DllExport const char *
  15177. Input_GetTypeNameStatic ()
  15178. {
  15179. return stringdup((Input::GetTypeNameStatic ()).CString ());
  15180. }
  15181. DllExport void *
  15182. Input_Input (Urho3D::Context * context)
  15183. {
  15184. return WeakPtr<Input>(new Input(context));
  15185. }
  15186. DllExport void
  15187. Input_Update (Urho3D::Input *_target)
  15188. {
  15189. _target->Update ();
  15190. }
  15191. DllExport void
  15192. Input_SetToggleFullscreen (Urho3D::Input *_target, bool enable)
  15193. {
  15194. _target->SetToggleFullscreen (enable);
  15195. }
  15196. DllExport void
  15197. Input_SetMouseVisible (Urho3D::Input *_target, bool enable, bool suppressEvent)
  15198. {
  15199. _target->SetMouseVisible (enable, suppressEvent);
  15200. }
  15201. DllExport void
  15202. Input_ResetMouseVisible (Urho3D::Input *_target)
  15203. {
  15204. _target->ResetMouseVisible ();
  15205. }
  15206. DllExport void
  15207. Input_SetMouseGrabbed (Urho3D::Input *_target, bool grab, bool suppressEvent)
  15208. {
  15209. _target->SetMouseGrabbed (grab, suppressEvent);
  15210. }
  15211. DllExport void
  15212. Input_ResetMouseGrabbed (Urho3D::Input *_target)
  15213. {
  15214. _target->ResetMouseGrabbed ();
  15215. }
  15216. DllExport void
  15217. Input_SetMouseMode (Urho3D::Input *_target, enum Urho3D::MouseMode mode, bool suppressEvent)
  15218. {
  15219. _target->SetMouseMode (mode, suppressEvent);
  15220. }
  15221. DllExport void
  15222. Input_ResetMouseMode (Urho3D::Input *_target)
  15223. {
  15224. _target->ResetMouseMode ();
  15225. }
  15226. DllExport SDL_JoystickID
  15227. Input_AddScreenJoystick (Urho3D::Input *_target, Urho3D::XMLFile * layoutFile, Urho3D::XMLFile * styleFile)
  15228. {
  15229. return _target->AddScreenJoystick (layoutFile, styleFile);
  15230. }
  15231. DllExport int
  15232. Input_RemoveScreenJoystick (Urho3D::Input *_target, SDL_JoystickID id)
  15233. {
  15234. return _target->RemoveScreenJoystick (id);
  15235. }
  15236. DllExport void
  15237. Input_SetScreenJoystickVisible (Urho3D::Input *_target, SDL_JoystickID id, bool enable)
  15238. {
  15239. _target->SetScreenJoystickVisible (id, enable);
  15240. }
  15241. DllExport void
  15242. Input_SetScreenKeyboardVisible (Urho3D::Input *_target, bool enable)
  15243. {
  15244. _target->SetScreenKeyboardVisible (enable);
  15245. }
  15246. DllExport void
  15247. Input_SetTouchEmulation (Urho3D::Input *_target, bool enable)
  15248. {
  15249. _target->SetTouchEmulation (enable);
  15250. }
  15251. DllExport void
  15252. Input_SetEnabled (Urho3D::Input *_target, bool enable)
  15253. {
  15254. _target->SetEnabled (enable);
  15255. }
  15256. DllExport int
  15257. Input_RecordGesture (Urho3D::Input *_target)
  15258. {
  15259. return _target->RecordGesture ();
  15260. }
  15261. DllExport int
  15262. Input_SaveGestures_File (Urho3D::Input *_target, File * dest)
  15263. {
  15264. return _target->SaveGestures (*dest);
  15265. }
  15266. DllExport int
  15267. Input_SaveGestures_MemoryBuffer (Urho3D::Input *_target, MemoryBuffer * dest)
  15268. {
  15269. return _target->SaveGestures (*dest);
  15270. }
  15271. DllExport int
  15272. Input_SaveGesture_File (Urho3D::Input *_target, File * dest, unsigned int gestureID)
  15273. {
  15274. return _target->SaveGesture (*dest, gestureID);
  15275. }
  15276. DllExport int
  15277. Input_SaveGesture_MemoryBuffer (Urho3D::Input *_target, MemoryBuffer * dest, unsigned int gestureID)
  15278. {
  15279. return _target->SaveGesture (*dest, gestureID);
  15280. }
  15281. DllExport unsigned int
  15282. Input_LoadGestures_File (Urho3D::Input *_target, File * source)
  15283. {
  15284. return _target->LoadGestures (*source);
  15285. }
  15286. DllExport unsigned int
  15287. Input_LoadGestures_MemoryBuffer (Urho3D::Input *_target, MemoryBuffer * source)
  15288. {
  15289. return _target->LoadGestures (*source);
  15290. }
  15291. DllExport int
  15292. Input_RemoveGesture (Urho3D::Input *_target, unsigned int gestureID)
  15293. {
  15294. return _target->RemoveGesture (gestureID);
  15295. }
  15296. DllExport void
  15297. Input_RemoveAllGestures (Urho3D::Input *_target)
  15298. {
  15299. _target->RemoveAllGestures ();
  15300. }
  15301. DllExport void
  15302. Input_SetMousePosition (Urho3D::Input *_target, const class Urho3D::IntVector2 & position)
  15303. {
  15304. _target->SetMousePosition (position);
  15305. }
  15306. DllExport void
  15307. Input_CenterMousePosition (Urho3D::Input *_target)
  15308. {
  15309. _target->CenterMousePosition ();
  15310. }
  15311. DllExport int
  15312. Input_GetKeyFromName (Urho3D::Input *_target, const char * name)
  15313. {
  15314. return _target->GetKeyFromName (Urho3D::String(name));
  15315. }
  15316. DllExport int
  15317. Input_GetKeyFromScancode (Urho3D::Input *_target, int scancode)
  15318. {
  15319. return _target->GetKeyFromScancode (scancode);
  15320. }
  15321. DllExport const char *
  15322. Input_GetKeyName (Urho3D::Input *_target, int key)
  15323. {
  15324. return stringdup((_target->GetKeyName (key)).CString ());
  15325. }
  15326. DllExport int
  15327. Input_GetScancodeFromKey (Urho3D::Input *_target, int key)
  15328. {
  15329. return _target->GetScancodeFromKey (key);
  15330. }
  15331. DllExport int
  15332. Input_GetScancodeFromName (Urho3D::Input *_target, const char * name)
  15333. {
  15334. return _target->GetScancodeFromName (Urho3D::String(name));
  15335. }
  15336. DllExport const char *
  15337. Input_GetScancodeName (Urho3D::Input *_target, int scancode)
  15338. {
  15339. return stringdup((_target->GetScancodeName (scancode)).CString ());
  15340. }
  15341. DllExport int
  15342. Input_GetKeyDown (Urho3D::Input *_target, int key)
  15343. {
  15344. return _target->GetKeyDown (key);
  15345. }
  15346. DllExport int
  15347. Input_GetKeyPress (Urho3D::Input *_target, int key)
  15348. {
  15349. return _target->GetKeyPress (key);
  15350. }
  15351. DllExport int
  15352. Input_GetScancodeDown (Urho3D::Input *_target, int scancode)
  15353. {
  15354. return _target->GetScancodeDown (scancode);
  15355. }
  15356. DllExport int
  15357. Input_GetScancodePress (Urho3D::Input *_target, int scancode)
  15358. {
  15359. return _target->GetScancodePress (scancode);
  15360. }
  15361. DllExport int
  15362. Input_GetMouseButtonDown (Urho3D::Input *_target, int button)
  15363. {
  15364. return _target->GetMouseButtonDown (button);
  15365. }
  15366. DllExport int
  15367. Input_GetMouseButtonPress (Urho3D::Input *_target, int button)
  15368. {
  15369. return _target->GetMouseButtonPress (button);
  15370. }
  15371. DllExport int
  15372. Input_GetQualifierDown (Urho3D::Input *_target, int qualifier)
  15373. {
  15374. return _target->GetQualifierDown (qualifier);
  15375. }
  15376. DllExport int
  15377. Input_GetQualifierPress (Urho3D::Input *_target, int qualifier)
  15378. {
  15379. return _target->GetQualifierPress (qualifier);
  15380. }
  15381. DllExport int
  15382. Input_GetQualifiers (Urho3D::Input *_target)
  15383. {
  15384. return _target->GetQualifiers ();
  15385. }
  15386. DllExport Interop::IntVector2
  15387. Input_GetMousePosition (Urho3D::Input *_target)
  15388. {
  15389. return *((Interop::IntVector2 *) &(_target->GetMousePosition ()));
  15390. }
  15391. DllExport Interop::IntVector2
  15392. Input_GetMouseMove (Urho3D::Input *_target)
  15393. {
  15394. return *((Interop::IntVector2 *) &(_target->GetMouseMove ()));
  15395. }
  15396. DllExport int
  15397. Input_GetMouseMoveX (Urho3D::Input *_target)
  15398. {
  15399. return _target->GetMouseMoveX ();
  15400. }
  15401. DllExport int
  15402. Input_GetMouseMoveY (Urho3D::Input *_target)
  15403. {
  15404. return _target->GetMouseMoveY ();
  15405. }
  15406. DllExport int
  15407. Input_GetMouseMoveWheel (Urho3D::Input *_target)
  15408. {
  15409. return _target->GetMouseMoveWheel ();
  15410. }
  15411. DllExport unsigned int
  15412. Input_GetNumTouches (Urho3D::Input *_target)
  15413. {
  15414. return _target->GetNumTouches ();
  15415. }
  15416. DllExport Urho3D::TouchState *
  15417. Input_GetTouch (Urho3D::Input *_target, unsigned int index)
  15418. {
  15419. return _target->GetTouch (index);
  15420. }
  15421. DllExport unsigned int
  15422. Input_GetNumJoysticks (Urho3D::Input *_target)
  15423. {
  15424. return _target->GetNumJoysticks ();
  15425. }
  15426. DllExport Urho3D::JoystickState *
  15427. Input_GetJoystick (Urho3D::Input *_target, SDL_JoystickID id)
  15428. {
  15429. return _target->GetJoystick (id);
  15430. }
  15431. DllExport Urho3D::JoystickState *
  15432. Input_GetJoystickByIndex (Urho3D::Input *_target, unsigned int index)
  15433. {
  15434. return _target->GetJoystickByIndex (index);
  15435. }
  15436. DllExport Urho3D::JoystickState *
  15437. Input_GetJoystickByName (Urho3D::Input *_target, const char * name)
  15438. {
  15439. return _target->GetJoystickByName (Urho3D::String(name));
  15440. }
  15441. DllExport int
  15442. Input_GetToggleFullscreen (Urho3D::Input *_target)
  15443. {
  15444. return _target->GetToggleFullscreen ();
  15445. }
  15446. DllExport int
  15447. Input_IsScreenJoystickVisible (Urho3D::Input *_target, SDL_JoystickID id)
  15448. {
  15449. return _target->IsScreenJoystickVisible (id);
  15450. }
  15451. DllExport int
  15452. Input_GetScreenKeyboardSupport (Urho3D::Input *_target)
  15453. {
  15454. return _target->GetScreenKeyboardSupport ();
  15455. }
  15456. DllExport int
  15457. Input_IsScreenKeyboardVisible (Urho3D::Input *_target)
  15458. {
  15459. return _target->IsScreenKeyboardVisible ();
  15460. }
  15461. DllExport int
  15462. Input_GetTouchEmulation (Urho3D::Input *_target)
  15463. {
  15464. return _target->GetTouchEmulation ();
  15465. }
  15466. DllExport int
  15467. Input_IsMouseVisible (Urho3D::Input *_target)
  15468. {
  15469. return _target->IsMouseVisible ();
  15470. }
  15471. DllExport int
  15472. Input_IsMouseGrabbed (Urho3D::Input *_target)
  15473. {
  15474. return _target->IsMouseGrabbed ();
  15475. }
  15476. DllExport int
  15477. Input_IsMouseLocked (Urho3D::Input *_target)
  15478. {
  15479. return _target->IsMouseLocked ();
  15480. }
  15481. DllExport enum Urho3D::MouseMode
  15482. Input_GetMouseMode (Urho3D::Input *_target)
  15483. {
  15484. return _target->GetMouseMode ();
  15485. }
  15486. DllExport int
  15487. Input_HasFocus (Urho3D::Input *_target)
  15488. {
  15489. return _target->HasFocus ();
  15490. }
  15491. DllExport int
  15492. Input_IsEnabled (Urho3D::Input *_target)
  15493. {
  15494. return _target->IsEnabled ();
  15495. }
  15496. DllExport int
  15497. Input_IsMinimized (Urho3D::Input *_target)
  15498. {
  15499. return _target->IsMinimized ();
  15500. }
  15501. DllExport int
  15502. CrowdManager_GetType (Urho3D::CrowdManager *_target)
  15503. {
  15504. return (_target->GetType ()).Value ();
  15505. }
  15506. DllExport const char *
  15507. CrowdManager_GetTypeName (Urho3D::CrowdManager *_target)
  15508. {
  15509. return stringdup((_target->GetTypeName ()).CString ());
  15510. }
  15511. DllExport int
  15512. CrowdManager_GetTypeStatic ()
  15513. {
  15514. return (CrowdManager::GetTypeStatic ()).Value ();
  15515. }
  15516. DllExport const char *
  15517. CrowdManager_GetTypeNameStatic ()
  15518. {
  15519. return stringdup((CrowdManager::GetTypeNameStatic ()).CString ());
  15520. }
  15521. DllExport void *
  15522. CrowdManager_CrowdManager (Urho3D::Context * context)
  15523. {
  15524. return WeakPtr<CrowdManager>(new CrowdManager(context));
  15525. }
  15526. DllExport void
  15527. CrowdManager_RegisterObject (Urho3D::Context * context)
  15528. {
  15529. CrowdManager::RegisterObject (context);
  15530. }
  15531. DllExport void
  15532. CrowdManager_ApplyAttributes (Urho3D::CrowdManager *_target)
  15533. {
  15534. _target->ApplyAttributes ();
  15535. }
  15536. DllExport void
  15537. CrowdManager_DrawDebugGeometry (Urho3D::CrowdManager *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  15538. {
  15539. _target->DrawDebugGeometry (debug, depthTest);
  15540. }
  15541. DllExport void
  15542. CrowdManager_DrawDebugGeometry0 (Urho3D::CrowdManager *_target, bool depthTest)
  15543. {
  15544. _target->DrawDebugGeometry (depthTest);
  15545. }
  15546. DllExport void
  15547. CrowdManager_SetCrowdTarget (Urho3D::CrowdManager *_target, const class Urho3D::Vector3 & position, Urho3D::Node * node)
  15548. {
  15549. _target->SetCrowdTarget (position, node);
  15550. }
  15551. DllExport void
  15552. CrowdManager_SetCrowdVelocity (Urho3D::CrowdManager *_target, const class Urho3D::Vector3 & velocity, Urho3D::Node * node)
  15553. {
  15554. _target->SetCrowdVelocity (velocity, node);
  15555. }
  15556. DllExport void
  15557. CrowdManager_ResetCrowdTarget (Urho3D::CrowdManager *_target, Urho3D::Node * node)
  15558. {
  15559. _target->ResetCrowdTarget (node);
  15560. }
  15561. DllExport void
  15562. CrowdManager_SetMaxAgents (Urho3D::CrowdManager *_target, unsigned int maxAgents)
  15563. {
  15564. _target->SetMaxAgents (maxAgents);
  15565. }
  15566. DllExport void
  15567. CrowdManager_SetMaxAgentRadius (Urho3D::CrowdManager *_target, float maxAgentRadius)
  15568. {
  15569. _target->SetMaxAgentRadius (maxAgentRadius);
  15570. }
  15571. DllExport void
  15572. CrowdManager_SetNavigationMesh (Urho3D::CrowdManager *_target, Urho3D::NavigationMesh * navMesh)
  15573. {
  15574. _target->SetNavigationMesh (navMesh);
  15575. }
  15576. DllExport void
  15577. CrowdManager_SetIncludeFlags (Urho3D::CrowdManager *_target, unsigned int queryFilterType, unsigned short flags)
  15578. {
  15579. _target->SetIncludeFlags (queryFilterType, flags);
  15580. }
  15581. DllExport void
  15582. CrowdManager_SetExcludeFlags (Urho3D::CrowdManager *_target, unsigned int queryFilterType, unsigned short flags)
  15583. {
  15584. _target->SetExcludeFlags (queryFilterType, flags);
  15585. }
  15586. DllExport void
  15587. CrowdManager_SetAreaCost (Urho3D::CrowdManager *_target, unsigned int queryFilterType, unsigned int areaID, float cost)
  15588. {
  15589. _target->SetAreaCost (queryFilterType, areaID, cost);
  15590. }
  15591. DllExport void
  15592. CrowdManager_SetObstacleAvoidanceParams (Urho3D::CrowdManager *_target, unsigned int obstacleAvoidanceType, const struct Urho3D::CrowdObstacleAvoidanceParams & params)
  15593. {
  15594. _target->SetObstacleAvoidanceParams (obstacleAvoidanceType, params);
  15595. }
  15596. DllExport Interop::Vector3
  15597. CrowdManager_FindNearestPoint (Urho3D::CrowdManager *_target, const class Urho3D::Vector3 & point, int queryFilterType, dtPolyRef * nearestRef)
  15598. {
  15599. return *((Interop::Vector3 *) &(_target->FindNearestPoint (point, queryFilterType, nearestRef)));
  15600. }
  15601. DllExport Interop::Vector3
  15602. CrowdManager_MoveAlongSurface (Urho3D::CrowdManager *_target, const class Urho3D::Vector3 & start, const class Urho3D::Vector3 & end, int queryFilterType, int maxVisited)
  15603. {
  15604. return *((Interop::Vector3 *) &(_target->MoveAlongSurface (start, end, queryFilterType, maxVisited)));
  15605. }
  15606. DllExport Interop::Vector3
  15607. CrowdManager_GetRandomPoint (Urho3D::CrowdManager *_target, int queryFilterType, dtPolyRef * randomRef)
  15608. {
  15609. return *((Interop::Vector3 *) &(_target->GetRandomPoint (queryFilterType, randomRef)));
  15610. }
  15611. DllExport Interop::Vector3
  15612. CrowdManager_GetRandomPointInCircle (Urho3D::CrowdManager *_target, const class Urho3D::Vector3 & center, float radius, int queryFilterType, dtPolyRef * randomRef)
  15613. {
  15614. return *((Interop::Vector3 *) &(_target->GetRandomPointInCircle (center, radius, queryFilterType, randomRef)));
  15615. }
  15616. DllExport float
  15617. CrowdManager_GetDistanceToWall (Urho3D::CrowdManager *_target, const class Urho3D::Vector3 & point, float radius, int queryFilterType, Urho3D::Vector3 * hitPos, Urho3D::Vector3 * hitNormal)
  15618. {
  15619. return _target->GetDistanceToWall (point, radius, queryFilterType, hitPos, hitNormal);
  15620. }
  15621. DllExport Interop::Vector3
  15622. CrowdManager_Raycast (Urho3D::CrowdManager *_target, const class Urho3D::Vector3 & start, const class Urho3D::Vector3 & end, int queryFilterType, Urho3D::Vector3 * hitNormal)
  15623. {
  15624. return *((Interop::Vector3 *) &(_target->Raycast (start, end, queryFilterType, hitNormal)));
  15625. }
  15626. DllExport unsigned int
  15627. CrowdManager_GetMaxAgents (Urho3D::CrowdManager *_target)
  15628. {
  15629. return _target->GetMaxAgents ();
  15630. }
  15631. DllExport float
  15632. CrowdManager_GetMaxAgentRadius (Urho3D::CrowdManager *_target)
  15633. {
  15634. return _target->GetMaxAgentRadius ();
  15635. }
  15636. DllExport Urho3D::NavigationMesh *
  15637. CrowdManager_GetNavigationMesh (Urho3D::CrowdManager *_target)
  15638. {
  15639. return _target->GetNavigationMesh ();
  15640. }
  15641. DllExport unsigned int
  15642. CrowdManager_GetNumQueryFilterTypes (Urho3D::CrowdManager *_target)
  15643. {
  15644. return _target->GetNumQueryFilterTypes ();
  15645. }
  15646. DllExport unsigned int
  15647. CrowdManager_GetNumAreas (Urho3D::CrowdManager *_target, unsigned int queryFilterType)
  15648. {
  15649. return _target->GetNumAreas (queryFilterType);
  15650. }
  15651. DllExport unsigned short
  15652. CrowdManager_GetIncludeFlags (Urho3D::CrowdManager *_target, unsigned int queryFilterType)
  15653. {
  15654. return _target->GetIncludeFlags (queryFilterType);
  15655. }
  15656. DllExport unsigned short
  15657. CrowdManager_GetExcludeFlags (Urho3D::CrowdManager *_target, unsigned int queryFilterType)
  15658. {
  15659. return _target->GetExcludeFlags (queryFilterType);
  15660. }
  15661. DllExport float
  15662. CrowdManager_GetAreaCost (Urho3D::CrowdManager *_target, unsigned int queryFilterType, unsigned int areaID)
  15663. {
  15664. return _target->GetAreaCost (queryFilterType, areaID);
  15665. }
  15666. DllExport unsigned int
  15667. CrowdManager_GetNumObstacleAvoidanceTypes (Urho3D::CrowdManager *_target)
  15668. {
  15669. return _target->GetNumObstacleAvoidanceTypes ();
  15670. }
  15671. DllExport Urho3D::CrowdObstacleAvoidanceParams
  15672. CrowdManager_GetObstacleAvoidanceParams (Urho3D::CrowdManager *_target, unsigned int obstacleAvoidanceType)
  15673. {
  15674. return _target->GetObstacleAvoidanceParams (obstacleAvoidanceType);
  15675. }
  15676. DllExport int
  15677. CrowdAgent_GetType (Urho3D::CrowdAgent *_target)
  15678. {
  15679. return (_target->GetType ()).Value ();
  15680. }
  15681. DllExport const char *
  15682. CrowdAgent_GetTypeName (Urho3D::CrowdAgent *_target)
  15683. {
  15684. return stringdup((_target->GetTypeName ()).CString ());
  15685. }
  15686. DllExport int
  15687. CrowdAgent_GetTypeStatic ()
  15688. {
  15689. return (CrowdAgent::GetTypeStatic ()).Value ();
  15690. }
  15691. DllExport const char *
  15692. CrowdAgent_GetTypeNameStatic ()
  15693. {
  15694. return stringdup((CrowdAgent::GetTypeNameStatic ()).CString ());
  15695. }
  15696. DllExport void *
  15697. CrowdAgent_CrowdAgent (Urho3D::Context * context)
  15698. {
  15699. return WeakPtr<CrowdAgent>(new CrowdAgent(context));
  15700. }
  15701. DllExport void
  15702. CrowdAgent_RegisterObject (Urho3D::Context * context)
  15703. {
  15704. CrowdAgent::RegisterObject (context);
  15705. }
  15706. DllExport void
  15707. CrowdAgent_ApplyAttributes (Urho3D::CrowdAgent *_target)
  15708. {
  15709. _target->ApplyAttributes ();
  15710. }
  15711. DllExport void
  15712. CrowdAgent_OnSetEnabled (Urho3D::CrowdAgent *_target)
  15713. {
  15714. _target->OnSetEnabled ();
  15715. }
  15716. DllExport void
  15717. CrowdAgent_DrawDebugGeometry (Urho3D::CrowdAgent *_target, bool param1)
  15718. {
  15719. _target->DrawDebugGeometry (param1);
  15720. }
  15721. DllExport void
  15722. CrowdAgent_DrawDebugGeometry0 (Urho3D::CrowdAgent *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  15723. {
  15724. _target->DrawDebugGeometry (debug, depthTest);
  15725. }
  15726. DllExport void
  15727. CrowdAgent_SetTargetPosition (Urho3D::CrowdAgent *_target, const class Urho3D::Vector3 & position)
  15728. {
  15729. _target->SetTargetPosition (position);
  15730. }
  15731. DllExport void
  15732. CrowdAgent_SetTargetVelocity (Urho3D::CrowdAgent *_target, const class Urho3D::Vector3 & velocity)
  15733. {
  15734. _target->SetTargetVelocity (velocity);
  15735. }
  15736. DllExport void
  15737. CrowdAgent_ResetTarget (Urho3D::CrowdAgent *_target)
  15738. {
  15739. _target->ResetTarget ();
  15740. }
  15741. DllExport void
  15742. CrowdAgent_SetUpdateNodePosition (Urho3D::CrowdAgent *_target, bool unodepos)
  15743. {
  15744. _target->SetUpdateNodePosition (unodepos);
  15745. }
  15746. DllExport void
  15747. CrowdAgent_SetMaxAccel (Urho3D::CrowdAgent *_target, float maxAccel)
  15748. {
  15749. _target->SetMaxAccel (maxAccel);
  15750. }
  15751. DllExport void
  15752. CrowdAgent_SetMaxSpeed (Urho3D::CrowdAgent *_target, float maxSpeed)
  15753. {
  15754. _target->SetMaxSpeed (maxSpeed);
  15755. }
  15756. DllExport void
  15757. CrowdAgent_SetRadius (Urho3D::CrowdAgent *_target, float radius)
  15758. {
  15759. _target->SetRadius (radius);
  15760. }
  15761. DllExport void
  15762. CrowdAgent_SetHeight (Urho3D::CrowdAgent *_target, float height)
  15763. {
  15764. _target->SetHeight (height);
  15765. }
  15766. DllExport void
  15767. CrowdAgent_SetQueryFilterType (Urho3D::CrowdAgent *_target, unsigned int queryFilterType)
  15768. {
  15769. _target->SetQueryFilterType (queryFilterType);
  15770. }
  15771. DllExport void
  15772. CrowdAgent_SetObstacleAvoidanceType (Urho3D::CrowdAgent *_target, unsigned int obstacleAvoidanceType)
  15773. {
  15774. _target->SetObstacleAvoidanceType (obstacleAvoidanceType);
  15775. }
  15776. DllExport void
  15777. CrowdAgent_SetNavigationQuality (Urho3D::CrowdAgent *_target, enum Urho3D::NavigationQuality val)
  15778. {
  15779. _target->SetNavigationQuality (val);
  15780. }
  15781. DllExport void
  15782. CrowdAgent_SetNavigationPushiness (Urho3D::CrowdAgent *_target, enum Urho3D::NavigationPushiness val)
  15783. {
  15784. _target->SetNavigationPushiness (val);
  15785. }
  15786. DllExport Interop::Vector3
  15787. CrowdAgent_GetPosition (Urho3D::CrowdAgent *_target)
  15788. {
  15789. return *((Interop::Vector3 *) &(_target->GetPosition ()));
  15790. }
  15791. DllExport Interop::Vector3
  15792. CrowdAgent_GetDesiredVelocity (Urho3D::CrowdAgent *_target)
  15793. {
  15794. return *((Interop::Vector3 *) &(_target->GetDesiredVelocity ()));
  15795. }
  15796. DllExport Interop::Vector3
  15797. CrowdAgent_GetActualVelocity (Urho3D::CrowdAgent *_target)
  15798. {
  15799. return *((Interop::Vector3 *) &(_target->GetActualVelocity ()));
  15800. }
  15801. DllExport Interop::Vector3
  15802. CrowdAgent_GetTargetPosition (Urho3D::CrowdAgent *_target)
  15803. {
  15804. return *((Interop::Vector3 *) &(_target->GetTargetPosition ()));
  15805. }
  15806. DllExport Interop::Vector3
  15807. CrowdAgent_GetTargetVelocity (Urho3D::CrowdAgent *_target)
  15808. {
  15809. return *((Interop::Vector3 *) &(_target->GetTargetVelocity ()));
  15810. }
  15811. DllExport enum Urho3D::CrowdAgentRequestedTarget
  15812. CrowdAgent_GetRequestedTargetType (Urho3D::CrowdAgent *_target)
  15813. {
  15814. return _target->GetRequestedTargetType ();
  15815. }
  15816. DllExport enum Urho3D::CrowdAgentState
  15817. CrowdAgent_GetAgentState (Urho3D::CrowdAgent *_target)
  15818. {
  15819. return _target->GetAgentState ();
  15820. }
  15821. DllExport enum Urho3D::CrowdAgentTargetState
  15822. CrowdAgent_GetTargetState (Urho3D::CrowdAgent *_target)
  15823. {
  15824. return _target->GetTargetState ();
  15825. }
  15826. DllExport int
  15827. CrowdAgent_GetUpdateNodePosition (Urho3D::CrowdAgent *_target)
  15828. {
  15829. return _target->GetUpdateNodePosition ();
  15830. }
  15831. DllExport int
  15832. CrowdAgent_GetAgentCrowdId (Urho3D::CrowdAgent *_target)
  15833. {
  15834. return _target->GetAgentCrowdId ();
  15835. }
  15836. DllExport float
  15837. CrowdAgent_GetMaxAccel (Urho3D::CrowdAgent *_target)
  15838. {
  15839. return _target->GetMaxAccel ();
  15840. }
  15841. DllExport float
  15842. CrowdAgent_GetMaxSpeed (Urho3D::CrowdAgent *_target)
  15843. {
  15844. return _target->GetMaxSpeed ();
  15845. }
  15846. DllExport float
  15847. CrowdAgent_GetRadius (Urho3D::CrowdAgent *_target)
  15848. {
  15849. return _target->GetRadius ();
  15850. }
  15851. DllExport float
  15852. CrowdAgent_GetHeight (Urho3D::CrowdAgent *_target)
  15853. {
  15854. return _target->GetHeight ();
  15855. }
  15856. DllExport unsigned int
  15857. CrowdAgent_GetQueryFilterType (Urho3D::CrowdAgent *_target)
  15858. {
  15859. return _target->GetQueryFilterType ();
  15860. }
  15861. DllExport unsigned int
  15862. CrowdAgent_GetObstacleAvoidanceType (Urho3D::CrowdAgent *_target)
  15863. {
  15864. return _target->GetObstacleAvoidanceType ();
  15865. }
  15866. DllExport enum Urho3D::NavigationQuality
  15867. CrowdAgent_GetNavigationQuality (Urho3D::CrowdAgent *_target)
  15868. {
  15869. return _target->GetNavigationQuality ();
  15870. }
  15871. DllExport enum Urho3D::NavigationPushiness
  15872. CrowdAgent_GetNavigationPushiness (Urho3D::CrowdAgent *_target)
  15873. {
  15874. return _target->GetNavigationPushiness ();
  15875. }
  15876. DllExport int
  15877. CrowdAgent_HasRequestedTarget (Urho3D::CrowdAgent *_target)
  15878. {
  15879. return _target->HasRequestedTarget ();
  15880. }
  15881. DllExport int
  15882. CrowdAgent_HasArrived (Urho3D::CrowdAgent *_target)
  15883. {
  15884. return _target->HasArrived ();
  15885. }
  15886. DllExport int
  15887. CrowdAgent_IsInCrowd (Urho3D::CrowdAgent *_target)
  15888. {
  15889. return _target->IsInCrowd ();
  15890. }
  15891. DllExport int
  15892. NavigationMesh_GetType (Urho3D::NavigationMesh *_target)
  15893. {
  15894. return (_target->GetType ()).Value ();
  15895. }
  15896. DllExport const char *
  15897. NavigationMesh_GetTypeName (Urho3D::NavigationMesh *_target)
  15898. {
  15899. return stringdup((_target->GetTypeName ()).CString ());
  15900. }
  15901. DllExport int
  15902. NavigationMesh_GetTypeStatic ()
  15903. {
  15904. return (NavigationMesh::GetTypeStatic ()).Value ();
  15905. }
  15906. DllExport const char *
  15907. NavigationMesh_GetTypeNameStatic ()
  15908. {
  15909. return stringdup((NavigationMesh::GetTypeNameStatic ()).CString ());
  15910. }
  15911. DllExport void *
  15912. NavigationMesh_NavigationMesh (Urho3D::Context * context)
  15913. {
  15914. return WeakPtr<NavigationMesh>(new NavigationMesh(context));
  15915. }
  15916. DllExport void
  15917. NavigationMesh_RegisterObject (Urho3D::Context * context)
  15918. {
  15919. NavigationMesh::RegisterObject (context);
  15920. }
  15921. DllExport void
  15922. NavigationMesh_DrawDebugGeometry (Urho3D::NavigationMesh *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  15923. {
  15924. _target->DrawDebugGeometry (debug, depthTest);
  15925. }
  15926. DllExport void
  15927. NavigationMesh_SetTileSize (Urho3D::NavigationMesh *_target, int size)
  15928. {
  15929. _target->SetTileSize (size);
  15930. }
  15931. DllExport void
  15932. NavigationMesh_SetCellSize (Urho3D::NavigationMesh *_target, float size)
  15933. {
  15934. _target->SetCellSize (size);
  15935. }
  15936. DllExport void
  15937. NavigationMesh_SetCellHeight (Urho3D::NavigationMesh *_target, float height)
  15938. {
  15939. _target->SetCellHeight (height);
  15940. }
  15941. DllExport void
  15942. NavigationMesh_SetAgentHeight (Urho3D::NavigationMesh *_target, float height)
  15943. {
  15944. _target->SetAgentHeight (height);
  15945. }
  15946. DllExport void
  15947. NavigationMesh_SetAgentRadius (Urho3D::NavigationMesh *_target, float radius)
  15948. {
  15949. _target->SetAgentRadius (radius);
  15950. }
  15951. DllExport void
  15952. NavigationMesh_SetAgentMaxClimb (Urho3D::NavigationMesh *_target, float maxClimb)
  15953. {
  15954. _target->SetAgentMaxClimb (maxClimb);
  15955. }
  15956. DllExport void
  15957. NavigationMesh_SetAgentMaxSlope (Urho3D::NavigationMesh *_target, float maxSlope)
  15958. {
  15959. _target->SetAgentMaxSlope (maxSlope);
  15960. }
  15961. DllExport void
  15962. NavigationMesh_SetRegionMinSize (Urho3D::NavigationMesh *_target, float size)
  15963. {
  15964. _target->SetRegionMinSize (size);
  15965. }
  15966. DllExport void
  15967. NavigationMesh_SetRegionMergeSize (Urho3D::NavigationMesh *_target, float size)
  15968. {
  15969. _target->SetRegionMergeSize (size);
  15970. }
  15971. DllExport void
  15972. NavigationMesh_SetEdgeMaxLength (Urho3D::NavigationMesh *_target, float length)
  15973. {
  15974. _target->SetEdgeMaxLength (length);
  15975. }
  15976. DllExport void
  15977. NavigationMesh_SetEdgeMaxError (Urho3D::NavigationMesh *_target, float error)
  15978. {
  15979. _target->SetEdgeMaxError (error);
  15980. }
  15981. DllExport void
  15982. NavigationMesh_SetDetailSampleDistance (Urho3D::NavigationMesh *_target, float distance)
  15983. {
  15984. _target->SetDetailSampleDistance (distance);
  15985. }
  15986. DllExport void
  15987. NavigationMesh_SetDetailSampleMaxError (Urho3D::NavigationMesh *_target, float error)
  15988. {
  15989. _target->SetDetailSampleMaxError (error);
  15990. }
  15991. DllExport void
  15992. NavigationMesh_SetPadding (Urho3D::NavigationMesh *_target, const class Urho3D::Vector3 & padding)
  15993. {
  15994. _target->SetPadding (padding);
  15995. }
  15996. DllExport void
  15997. NavigationMesh_SetAreaCost (Urho3D::NavigationMesh *_target, unsigned int areaID, float cost)
  15998. {
  15999. _target->SetAreaCost (areaID, cost);
  16000. }
  16001. DllExport int
  16002. NavigationMesh_Build (Urho3D::NavigationMesh *_target)
  16003. {
  16004. return _target->Build ();
  16005. }
  16006. DllExport int
  16007. NavigationMesh_Build0 (Urho3D::NavigationMesh *_target, const class Urho3D::BoundingBox & boundingBox)
  16008. {
  16009. return _target->Build (boundingBox);
  16010. }
  16011. DllExport Interop::Vector3
  16012. NavigationMesh_FindNearestPoint (Urho3D::NavigationMesh *_target, const class Urho3D::Vector3 & point, const class Urho3D::Vector3 & extents, const class dtQueryFilter * filter, dtPolyRef * nearestRef)
  16013. {
  16014. return *((Interop::Vector3 *) &(_target->FindNearestPoint (point, extents, filter, nearestRef)));
  16015. }
  16016. DllExport Interop::Vector3
  16017. NavigationMesh_MoveAlongSurface (Urho3D::NavigationMesh *_target, const class Urho3D::Vector3 & start, const class Urho3D::Vector3 & end, const class Urho3D::Vector3 & extents, int maxVisited, const class dtQueryFilter * filter)
  16018. {
  16019. return *((Interop::Vector3 *) &(_target->MoveAlongSurface (start, end, extents, maxVisited, filter)));
  16020. }
  16021. DllExport Interop::Vector3
  16022. NavigationMesh_GetRandomPoint (Urho3D::NavigationMesh *_target, const class dtQueryFilter * filter, dtPolyRef * randomRef)
  16023. {
  16024. return *((Interop::Vector3 *) &(_target->GetRandomPoint (filter, randomRef)));
  16025. }
  16026. DllExport Interop::Vector3
  16027. NavigationMesh_GetRandomPointInCircle (Urho3D::NavigationMesh *_target, const class Urho3D::Vector3 & center, float radius, const class Urho3D::Vector3 & extents, const class dtQueryFilter * filter, dtPolyRef * randomRef)
  16028. {
  16029. return *((Interop::Vector3 *) &(_target->GetRandomPointInCircle (center, radius, extents, filter, randomRef)));
  16030. }
  16031. DllExport float
  16032. NavigationMesh_GetDistanceToWall (Urho3D::NavigationMesh *_target, const class Urho3D::Vector3 & point, float radius, const class Urho3D::Vector3 & extents, const class dtQueryFilter * filter, Urho3D::Vector3 * hitPos, Urho3D::Vector3 * hitNormal)
  16033. {
  16034. return _target->GetDistanceToWall (point, radius, extents, filter, hitPos, hitNormal);
  16035. }
  16036. DllExport Interop::Vector3
  16037. NavigationMesh_Raycast (Urho3D::NavigationMesh *_target, const class Urho3D::Vector3 & start, const class Urho3D::Vector3 & end, const class Urho3D::Vector3 & extents, const class dtQueryFilter * filter, Urho3D::Vector3 * hitNormal)
  16038. {
  16039. return *((Interop::Vector3 *) &(_target->Raycast (start, end, extents, filter, hitNormal)));
  16040. }
  16041. DllExport void
  16042. NavigationMesh_DrawDebugGeometry1 (Urho3D::NavigationMesh *_target, bool depthTest)
  16043. {
  16044. _target->DrawDebugGeometry (depthTest);
  16045. }
  16046. DllExport const char *
  16047. NavigationMesh_GetMeshName (Urho3D::NavigationMesh *_target)
  16048. {
  16049. return stringdup((_target->GetMeshName ()).CString ());
  16050. }
  16051. DllExport void
  16052. NavigationMesh_SetMeshName (Urho3D::NavigationMesh *_target, const char * newName)
  16053. {
  16054. _target->SetMeshName (Urho3D::String(newName));
  16055. }
  16056. DllExport int
  16057. NavigationMesh_GetTileSize (Urho3D::NavigationMesh *_target)
  16058. {
  16059. return _target->GetTileSize ();
  16060. }
  16061. DllExport float
  16062. NavigationMesh_GetCellSize (Urho3D::NavigationMesh *_target)
  16063. {
  16064. return _target->GetCellSize ();
  16065. }
  16066. DllExport float
  16067. NavigationMesh_GetCellHeight (Urho3D::NavigationMesh *_target)
  16068. {
  16069. return _target->GetCellHeight ();
  16070. }
  16071. DllExport float
  16072. NavigationMesh_GetAgentHeight (Urho3D::NavigationMesh *_target)
  16073. {
  16074. return _target->GetAgentHeight ();
  16075. }
  16076. DllExport float
  16077. NavigationMesh_GetAgentRadius (Urho3D::NavigationMesh *_target)
  16078. {
  16079. return _target->GetAgentRadius ();
  16080. }
  16081. DllExport float
  16082. NavigationMesh_GetAgentMaxClimb (Urho3D::NavigationMesh *_target)
  16083. {
  16084. return _target->GetAgentMaxClimb ();
  16085. }
  16086. DllExport float
  16087. NavigationMesh_GetAgentMaxSlope (Urho3D::NavigationMesh *_target)
  16088. {
  16089. return _target->GetAgentMaxSlope ();
  16090. }
  16091. DllExport float
  16092. NavigationMesh_GetRegionMinSize (Urho3D::NavigationMesh *_target)
  16093. {
  16094. return _target->GetRegionMinSize ();
  16095. }
  16096. DllExport float
  16097. NavigationMesh_GetRegionMergeSize (Urho3D::NavigationMesh *_target)
  16098. {
  16099. return _target->GetRegionMergeSize ();
  16100. }
  16101. DllExport float
  16102. NavigationMesh_GetEdgeMaxLength (Urho3D::NavigationMesh *_target)
  16103. {
  16104. return _target->GetEdgeMaxLength ();
  16105. }
  16106. DllExport float
  16107. NavigationMesh_GetEdgeMaxError (Urho3D::NavigationMesh *_target)
  16108. {
  16109. return _target->GetEdgeMaxError ();
  16110. }
  16111. DllExport float
  16112. NavigationMesh_GetDetailSampleDistance (Urho3D::NavigationMesh *_target)
  16113. {
  16114. return _target->GetDetailSampleDistance ();
  16115. }
  16116. DllExport float
  16117. NavigationMesh_GetDetailSampleMaxError (Urho3D::NavigationMesh *_target)
  16118. {
  16119. return _target->GetDetailSampleMaxError ();
  16120. }
  16121. DllExport Interop::Vector3
  16122. NavigationMesh_GetPadding (Urho3D::NavigationMesh *_target)
  16123. {
  16124. return *((Interop::Vector3 *) &(_target->GetPadding ()));
  16125. }
  16126. DllExport float
  16127. NavigationMesh_GetAreaCost (Urho3D::NavigationMesh *_target, unsigned int areaID)
  16128. {
  16129. return _target->GetAreaCost (areaID);
  16130. }
  16131. DllExport int
  16132. NavigationMesh_IsInitialized (Urho3D::NavigationMesh *_target)
  16133. {
  16134. return _target->IsInitialized ();
  16135. }
  16136. DllExport Interop::BoundingBox
  16137. NavigationMesh_GetBoundingBox (Urho3D::NavigationMesh *_target)
  16138. {
  16139. return *((Interop::BoundingBox *) &(_target->GetBoundingBox ()));
  16140. }
  16141. DllExport Interop::BoundingBox
  16142. NavigationMesh_GetWorldBoundingBox (Urho3D::NavigationMesh *_target)
  16143. {
  16144. return *((Interop::BoundingBox *) &(_target->GetWorldBoundingBox ()));
  16145. }
  16146. DllExport Interop::IntVector2
  16147. NavigationMesh_GetNumTiles (Urho3D::NavigationMesh *_target)
  16148. {
  16149. return *((Interop::IntVector2 *) &(_target->GetNumTiles ()));
  16150. }
  16151. DllExport void
  16152. NavigationMesh_SetPartitionType (Urho3D::NavigationMesh *_target, enum Urho3D::NavmeshPartitionType aType)
  16153. {
  16154. _target->SetPartitionType (aType);
  16155. }
  16156. DllExport enum Urho3D::NavmeshPartitionType
  16157. NavigationMesh_GetPartitionType (Urho3D::NavigationMesh *_target)
  16158. {
  16159. return _target->GetPartitionType ();
  16160. }
  16161. DllExport void
  16162. NavigationMesh_SetDrawOffMeshConnections (Urho3D::NavigationMesh *_target, bool enable)
  16163. {
  16164. _target->SetDrawOffMeshConnections (enable);
  16165. }
  16166. DllExport int
  16167. NavigationMesh_GetDrawOffMeshConnections (Urho3D::NavigationMesh *_target)
  16168. {
  16169. return _target->GetDrawOffMeshConnections ();
  16170. }
  16171. DllExport void
  16172. NavigationMesh_SetDrawNavAreas (Urho3D::NavigationMesh *_target, bool enable)
  16173. {
  16174. _target->SetDrawNavAreas (enable);
  16175. }
  16176. DllExport int
  16177. NavigationMesh_GetDrawNavAreas (Urho3D::NavigationMesh *_target)
  16178. {
  16179. return _target->GetDrawNavAreas ();
  16180. }
  16181. DllExport int
  16182. DynamicNavigationMesh_GetType (Urho3D::DynamicNavigationMesh *_target)
  16183. {
  16184. return (_target->GetType ()).Value ();
  16185. }
  16186. DllExport const char *
  16187. DynamicNavigationMesh_GetTypeName (Urho3D::DynamicNavigationMesh *_target)
  16188. {
  16189. return stringdup((_target->GetTypeName ()).CString ());
  16190. }
  16191. DllExport int
  16192. DynamicNavigationMesh_GetTypeStatic ()
  16193. {
  16194. return (DynamicNavigationMesh::GetTypeStatic ()).Value ();
  16195. }
  16196. DllExport const char *
  16197. DynamicNavigationMesh_GetTypeNameStatic ()
  16198. {
  16199. return stringdup((DynamicNavigationMesh::GetTypeNameStatic ()).CString ());
  16200. }
  16201. DllExport void *
  16202. DynamicNavigationMesh_DynamicNavigationMesh (Urho3D::Context * param1)
  16203. {
  16204. return WeakPtr<DynamicNavigationMesh>(new DynamicNavigationMesh(param1));
  16205. }
  16206. DllExport void
  16207. DynamicNavigationMesh_RegisterObject (Urho3D::Context * param1)
  16208. {
  16209. DynamicNavigationMesh::RegisterObject (param1);
  16210. }
  16211. DllExport int
  16212. DynamicNavigationMesh_Build (Urho3D::DynamicNavigationMesh *_target)
  16213. {
  16214. return _target->Build ();
  16215. }
  16216. DllExport int
  16217. DynamicNavigationMesh_Build0 (Urho3D::DynamicNavigationMesh *_target, const class Urho3D::BoundingBox & boundingBox)
  16218. {
  16219. return _target->Build (boundingBox);
  16220. }
  16221. DllExport void
  16222. DynamicNavigationMesh_DrawDebugGeometry (Urho3D::DynamicNavigationMesh *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  16223. {
  16224. _target->DrawDebugGeometry (debug, depthTest);
  16225. }
  16226. DllExport void
  16227. DynamicNavigationMesh_DrawDebugGeometry1 (Urho3D::DynamicNavigationMesh *_target, bool depthTest)
  16228. {
  16229. _target->DrawDebugGeometry (depthTest);
  16230. }
  16231. DllExport void
  16232. DynamicNavigationMesh_SetMaxObstacles (Urho3D::DynamicNavigationMesh *_target, unsigned int maxObstacles)
  16233. {
  16234. _target->SetMaxObstacles (maxObstacles);
  16235. }
  16236. DllExport void
  16237. DynamicNavigationMesh_SetMaxLayers (Urho3D::DynamicNavigationMesh *_target, unsigned int maxLayers)
  16238. {
  16239. _target->SetMaxLayers (maxLayers);
  16240. }
  16241. DllExport unsigned int
  16242. DynamicNavigationMesh_GetMaxObstacles (Urho3D::DynamicNavigationMesh *_target)
  16243. {
  16244. return _target->GetMaxObstacles ();
  16245. }
  16246. DllExport unsigned int
  16247. DynamicNavigationMesh_GetMaxLayers (Urho3D::DynamicNavigationMesh *_target)
  16248. {
  16249. return _target->GetMaxLayers ();
  16250. }
  16251. DllExport void
  16252. DynamicNavigationMesh_SetDrawObstacles (Urho3D::DynamicNavigationMesh *_target, bool enable)
  16253. {
  16254. _target->SetDrawObstacles (enable);
  16255. }
  16256. DllExport int
  16257. DynamicNavigationMesh_GetDrawObstacles (Urho3D::DynamicNavigationMesh *_target)
  16258. {
  16259. return _target->GetDrawObstacles ();
  16260. }
  16261. DllExport int
  16262. NavArea_GetType (Urho3D::NavArea *_target)
  16263. {
  16264. return (_target->GetType ()).Value ();
  16265. }
  16266. DllExport const char *
  16267. NavArea_GetTypeName (Urho3D::NavArea *_target)
  16268. {
  16269. return stringdup((_target->GetTypeName ()).CString ());
  16270. }
  16271. DllExport int
  16272. NavArea_GetTypeStatic ()
  16273. {
  16274. return (NavArea::GetTypeStatic ()).Value ();
  16275. }
  16276. DllExport const char *
  16277. NavArea_GetTypeNameStatic ()
  16278. {
  16279. return stringdup((NavArea::GetTypeNameStatic ()).CString ());
  16280. }
  16281. DllExport void *
  16282. NavArea_NavArea (Urho3D::Context * param1)
  16283. {
  16284. return WeakPtr<NavArea>(new NavArea(param1));
  16285. }
  16286. DllExport void
  16287. NavArea_RegisterObject (Urho3D::Context * param1)
  16288. {
  16289. NavArea::RegisterObject (param1);
  16290. }
  16291. DllExport void
  16292. NavArea_DrawDebugGeometry (Urho3D::NavArea *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  16293. {
  16294. _target->DrawDebugGeometry (debug, depthTest);
  16295. }
  16296. DllExport unsigned int
  16297. NavArea_GetAreaID (Urho3D::NavArea *_target)
  16298. {
  16299. return _target->GetAreaID ();
  16300. }
  16301. DllExport void
  16302. NavArea_SetAreaID (Urho3D::NavArea *_target, unsigned int newID)
  16303. {
  16304. _target->SetAreaID (newID);
  16305. }
  16306. DllExport Interop::BoundingBox
  16307. NavArea_GetBoundingBox (Urho3D::NavArea *_target)
  16308. {
  16309. return *((Interop::BoundingBox *) &(_target->GetBoundingBox ()));
  16310. }
  16311. DllExport void
  16312. NavArea_SetBoundingBox (Urho3D::NavArea *_target, const class Urho3D::BoundingBox & bnds)
  16313. {
  16314. _target->SetBoundingBox (bnds);
  16315. }
  16316. DllExport Interop::BoundingBox
  16317. NavArea_GetWorldBoundingBox (Urho3D::NavArea *_target)
  16318. {
  16319. return *((Interop::BoundingBox *) &(_target->GetWorldBoundingBox ()));
  16320. }
  16321. DllExport int
  16322. Navigable_GetType (Urho3D::Navigable *_target)
  16323. {
  16324. return (_target->GetType ()).Value ();
  16325. }
  16326. DllExport const char *
  16327. Navigable_GetTypeName (Urho3D::Navigable *_target)
  16328. {
  16329. return stringdup((_target->GetTypeName ()).CString ());
  16330. }
  16331. DllExport int
  16332. Navigable_GetTypeStatic ()
  16333. {
  16334. return (Navigable::GetTypeStatic ()).Value ();
  16335. }
  16336. DllExport const char *
  16337. Navigable_GetTypeNameStatic ()
  16338. {
  16339. return stringdup((Navigable::GetTypeNameStatic ()).CString ());
  16340. }
  16341. DllExport void *
  16342. Navigable_Navigable (Urho3D::Context * context)
  16343. {
  16344. return WeakPtr<Navigable>(new Navigable(context));
  16345. }
  16346. DllExport void
  16347. Navigable_RegisterObject (Urho3D::Context * context)
  16348. {
  16349. Navigable::RegisterObject (context);
  16350. }
  16351. DllExport void
  16352. Navigable_SetRecursive (Urho3D::Navigable *_target, bool enable)
  16353. {
  16354. _target->SetRecursive (enable);
  16355. }
  16356. DllExport int
  16357. Navigable_IsRecursive (Urho3D::Navigable *_target)
  16358. {
  16359. return _target->IsRecursive ();
  16360. }
  16361. DllExport int
  16362. Obstacle_GetType (Urho3D::Obstacle *_target)
  16363. {
  16364. return (_target->GetType ()).Value ();
  16365. }
  16366. DllExport const char *
  16367. Obstacle_GetTypeName (Urho3D::Obstacle *_target)
  16368. {
  16369. return stringdup((_target->GetTypeName ()).CString ());
  16370. }
  16371. DllExport int
  16372. Obstacle_GetTypeStatic ()
  16373. {
  16374. return (Obstacle::GetTypeStatic ()).Value ();
  16375. }
  16376. DllExport const char *
  16377. Obstacle_GetTypeNameStatic ()
  16378. {
  16379. return stringdup((Obstacle::GetTypeNameStatic ()).CString ());
  16380. }
  16381. DllExport void *
  16382. Obstacle_Obstacle (Urho3D::Context * param1)
  16383. {
  16384. return WeakPtr<Obstacle>(new Obstacle(param1));
  16385. }
  16386. DllExport void
  16387. Obstacle_RegisterObject (Urho3D::Context * param1)
  16388. {
  16389. Obstacle::RegisterObject (param1);
  16390. }
  16391. DllExport void
  16392. Obstacle_OnSetEnabled (Urho3D::Obstacle *_target)
  16393. {
  16394. _target->OnSetEnabled ();
  16395. }
  16396. DllExport float
  16397. Obstacle_GetHeight (Urho3D::Obstacle *_target)
  16398. {
  16399. return _target->GetHeight ();
  16400. }
  16401. DllExport void
  16402. Obstacle_SetHeight (Urho3D::Obstacle *_target, float param1)
  16403. {
  16404. _target->SetHeight (param1);
  16405. }
  16406. DllExport float
  16407. Obstacle_GetRadius (Urho3D::Obstacle *_target)
  16408. {
  16409. return _target->GetRadius ();
  16410. }
  16411. DllExport void
  16412. Obstacle_SetRadius (Urho3D::Obstacle *_target, float param1)
  16413. {
  16414. _target->SetRadius (param1);
  16415. }
  16416. DllExport unsigned int
  16417. Obstacle_GetObstacleID (Urho3D::Obstacle *_target)
  16418. {
  16419. return _target->GetObstacleID ();
  16420. }
  16421. DllExport void
  16422. Obstacle_DrawDebugGeometry (Urho3D::Obstacle *_target, Urho3D::DebugRenderer * param1, bool depthTest)
  16423. {
  16424. _target->DrawDebugGeometry (param1, depthTest);
  16425. }
  16426. DllExport void
  16427. Obstacle_DrawDebugGeometry0 (Urho3D::Obstacle *_target, bool depthTest)
  16428. {
  16429. _target->DrawDebugGeometry (depthTest);
  16430. }
  16431. DllExport int
  16432. OffMeshConnection_GetType (Urho3D::OffMeshConnection *_target)
  16433. {
  16434. return (_target->GetType ()).Value ();
  16435. }
  16436. DllExport const char *
  16437. OffMeshConnection_GetTypeName (Urho3D::OffMeshConnection *_target)
  16438. {
  16439. return stringdup((_target->GetTypeName ()).CString ());
  16440. }
  16441. DllExport int
  16442. OffMeshConnection_GetTypeStatic ()
  16443. {
  16444. return (OffMeshConnection::GetTypeStatic ()).Value ();
  16445. }
  16446. DllExport const char *
  16447. OffMeshConnection_GetTypeNameStatic ()
  16448. {
  16449. return stringdup((OffMeshConnection::GetTypeNameStatic ()).CString ());
  16450. }
  16451. DllExport void *
  16452. OffMeshConnection_OffMeshConnection (Urho3D::Context * context)
  16453. {
  16454. return WeakPtr<OffMeshConnection>(new OffMeshConnection(context));
  16455. }
  16456. DllExport void
  16457. OffMeshConnection_RegisterObject (Urho3D::Context * context)
  16458. {
  16459. OffMeshConnection::RegisterObject (context);
  16460. }
  16461. DllExport void
  16462. OffMeshConnection_ApplyAttributes (Urho3D::OffMeshConnection *_target)
  16463. {
  16464. _target->ApplyAttributes ();
  16465. }
  16466. DllExport void
  16467. OffMeshConnection_DrawDebugGeometry (Urho3D::OffMeshConnection *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  16468. {
  16469. _target->DrawDebugGeometry (debug, depthTest);
  16470. }
  16471. DllExport void
  16472. OffMeshConnection_SetEndPoint (Urho3D::OffMeshConnection *_target, Urho3D::Node * node)
  16473. {
  16474. _target->SetEndPoint (node);
  16475. }
  16476. DllExport void
  16477. OffMeshConnection_SetRadius (Urho3D::OffMeshConnection *_target, float radius)
  16478. {
  16479. _target->SetRadius (radius);
  16480. }
  16481. DllExport void
  16482. OffMeshConnection_SetBidirectional (Urho3D::OffMeshConnection *_target, bool enabled)
  16483. {
  16484. _target->SetBidirectional (enabled);
  16485. }
  16486. DllExport void
  16487. OffMeshConnection_SetMask (Urho3D::OffMeshConnection *_target, unsigned int newMask)
  16488. {
  16489. _target->SetMask (newMask);
  16490. }
  16491. DllExport void
  16492. OffMeshConnection_SetAreaID (Urho3D::OffMeshConnection *_target, unsigned int newAreaID)
  16493. {
  16494. _target->SetAreaID (newAreaID);
  16495. }
  16496. DllExport Urho3D::Node *
  16497. OffMeshConnection_GetEndPoint (Urho3D::OffMeshConnection *_target)
  16498. {
  16499. return _target->GetEndPoint ();
  16500. }
  16501. DllExport float
  16502. OffMeshConnection_GetRadius (Urho3D::OffMeshConnection *_target)
  16503. {
  16504. return _target->GetRadius ();
  16505. }
  16506. DllExport int
  16507. OffMeshConnection_IsBidirectional (Urho3D::OffMeshConnection *_target)
  16508. {
  16509. return _target->IsBidirectional ();
  16510. }
  16511. DllExport unsigned int
  16512. OffMeshConnection_GetMask (Urho3D::OffMeshConnection *_target)
  16513. {
  16514. return _target->GetMask ();
  16515. }
  16516. DllExport unsigned int
  16517. OffMeshConnection_GetAreaID (Urho3D::OffMeshConnection *_target)
  16518. {
  16519. return _target->GetAreaID ();
  16520. }
  16521. DllExport int
  16522. Connection_GetType (Urho3D::Connection *_target)
  16523. {
  16524. return (_target->GetType ()).Value ();
  16525. }
  16526. DllExport const char *
  16527. Connection_GetTypeName (Urho3D::Connection *_target)
  16528. {
  16529. return stringdup((_target->GetTypeName ()).CString ());
  16530. }
  16531. DllExport int
  16532. Connection_GetTypeStatic ()
  16533. {
  16534. return (Connection::GetTypeStatic ()).Value ();
  16535. }
  16536. DllExport const char *
  16537. Connection_GetTypeNameStatic ()
  16538. {
  16539. return stringdup((Connection::GetTypeNameStatic ()).CString ());
  16540. }
  16541. DllExport void
  16542. Connection_SendMessage (Urho3D::Connection *_target, int msgID, bool reliable, bool inOrder, const unsigned char * data, unsigned int numBytes, unsigned int contentID)
  16543. {
  16544. _target->SendMessage (msgID, reliable, inOrder, data, numBytes, contentID);
  16545. }
  16546. DllExport void
  16547. Connection_SetScene (Urho3D::Connection *_target, Urho3D::Scene * newScene)
  16548. {
  16549. _target->SetScene (newScene);
  16550. }
  16551. DllExport void
  16552. Connection_SetPosition (Urho3D::Connection *_target, const class Urho3D::Vector3 & position)
  16553. {
  16554. _target->SetPosition (position);
  16555. }
  16556. DllExport void
  16557. Connection_SetRotation (Urho3D::Connection *_target, const class Urho3D::Quaternion & rotation)
  16558. {
  16559. _target->SetRotation (rotation);
  16560. }
  16561. DllExport void
  16562. Connection_SetConnectPending (Urho3D::Connection *_target, bool connectPending)
  16563. {
  16564. _target->SetConnectPending (connectPending);
  16565. }
  16566. DllExport void
  16567. Connection_SetLogStatistics (Urho3D::Connection *_target, bool enable)
  16568. {
  16569. _target->SetLogStatistics (enable);
  16570. }
  16571. DllExport void
  16572. Connection_Disconnect (Urho3D::Connection *_target, int waitMSec)
  16573. {
  16574. _target->Disconnect (waitMSec);
  16575. }
  16576. DllExport void
  16577. Connection_SendServerUpdate (Urho3D::Connection *_target)
  16578. {
  16579. _target->SendServerUpdate ();
  16580. }
  16581. DllExport void
  16582. Connection_SendClientUpdate (Urho3D::Connection *_target)
  16583. {
  16584. _target->SendClientUpdate ();
  16585. }
  16586. DllExport void
  16587. Connection_SendRemoteEvents (Urho3D::Connection *_target)
  16588. {
  16589. _target->SendRemoteEvents ();
  16590. }
  16591. DllExport void
  16592. Connection_SendPackages (Urho3D::Connection *_target)
  16593. {
  16594. _target->SendPackages ();
  16595. }
  16596. DllExport void
  16597. Connection_ProcessPendingLatestData (Urho3D::Connection *_target)
  16598. {
  16599. _target->ProcessPendingLatestData ();
  16600. }
  16601. DllExport Urho3D::Scene *
  16602. Connection_GetScene (Urho3D::Connection *_target)
  16603. {
  16604. return _target->GetScene ();
  16605. }
  16606. DllExport unsigned char
  16607. Connection_GetTimeStamp (Urho3D::Connection *_target)
  16608. {
  16609. return _target->GetTimeStamp ();
  16610. }
  16611. DllExport Interop::Vector3
  16612. Connection_GetPosition (Urho3D::Connection *_target)
  16613. {
  16614. return *((Interop::Vector3 *) &(_target->GetPosition ()));
  16615. }
  16616. DllExport Interop::Quaternion
  16617. Connection_GetRotation (Urho3D::Connection *_target)
  16618. {
  16619. return *((Interop::Quaternion *) &(_target->GetRotation ()));
  16620. }
  16621. DllExport int
  16622. Connection_IsClient (Urho3D::Connection *_target)
  16623. {
  16624. return _target->IsClient ();
  16625. }
  16626. DllExport int
  16627. Connection_IsConnected (Urho3D::Connection *_target)
  16628. {
  16629. return _target->IsConnected ();
  16630. }
  16631. DllExport int
  16632. Connection_IsConnectPending (Urho3D::Connection *_target)
  16633. {
  16634. return _target->IsConnectPending ();
  16635. }
  16636. DllExport int
  16637. Connection_IsSceneLoaded (Urho3D::Connection *_target)
  16638. {
  16639. return _target->IsSceneLoaded ();
  16640. }
  16641. DllExport int
  16642. Connection_GetLogStatistics (Urho3D::Connection *_target)
  16643. {
  16644. return _target->GetLogStatistics ();
  16645. }
  16646. DllExport const char *
  16647. Connection_GetAddress (Urho3D::Connection *_target)
  16648. {
  16649. return stringdup((_target->GetAddress ()).CString ());
  16650. }
  16651. DllExport unsigned short
  16652. Connection_GetPort (Urho3D::Connection *_target)
  16653. {
  16654. return _target->GetPort ();
  16655. }
  16656. DllExport float
  16657. Connection_GetRoundTripTime (Urho3D::Connection *_target)
  16658. {
  16659. return _target->GetRoundTripTime ();
  16660. }
  16661. DllExport float
  16662. Connection_GetLastHeardTime (Urho3D::Connection *_target)
  16663. {
  16664. return _target->GetLastHeardTime ();
  16665. }
  16666. DllExport float
  16667. Connection_GetBytesInPerSec (Urho3D::Connection *_target)
  16668. {
  16669. return _target->GetBytesInPerSec ();
  16670. }
  16671. DllExport float
  16672. Connection_GetBytesOutPerSec (Urho3D::Connection *_target)
  16673. {
  16674. return _target->GetBytesOutPerSec ();
  16675. }
  16676. DllExport float
  16677. Connection_GetPacketsInPerSec (Urho3D::Connection *_target)
  16678. {
  16679. return _target->GetPacketsInPerSec ();
  16680. }
  16681. DllExport float
  16682. Connection_GetPacketsOutPerSec (Urho3D::Connection *_target)
  16683. {
  16684. return _target->GetPacketsOutPerSec ();
  16685. }
  16686. DllExport const char *
  16687. Connection_ToString (Urho3D::Connection *_target)
  16688. {
  16689. return stringdup((_target->ToString ()).CString ());
  16690. }
  16691. DllExport unsigned int
  16692. Connection_GetNumDownloads (Urho3D::Connection *_target)
  16693. {
  16694. return _target->GetNumDownloads ();
  16695. }
  16696. DllExport const char *
  16697. Connection_GetDownloadName (Urho3D::Connection *_target)
  16698. {
  16699. return stringdup((_target->GetDownloadName ()).CString ());
  16700. }
  16701. DllExport float
  16702. Connection_GetDownloadProgress (Urho3D::Connection *_target)
  16703. {
  16704. return _target->GetDownloadProgress ();
  16705. }
  16706. DllExport void
  16707. Connection_SendPackageToClient (Urho3D::Connection *_target, Urho3D::PackageFile * package)
  16708. {
  16709. _target->SendPackageToClient (package);
  16710. }
  16711. DllExport void
  16712. Connection_ConfigureNetworkSimulator (Urho3D::Connection *_target, int latencyMs, float packetLoss)
  16713. {
  16714. _target->ConfigureNetworkSimulator (latencyMs, packetLoss);
  16715. }
  16716. DllExport void
  16717. HttpRequest_ThreadFunction (Urho3D::HttpRequest *_target)
  16718. {
  16719. _target->ThreadFunction ();
  16720. }
  16721. DllExport unsigned int
  16722. HttpRequest_Read (Urho3D::HttpRequest *_target, void * dest, unsigned int size)
  16723. {
  16724. return _target->Read (dest, size);
  16725. }
  16726. DllExport unsigned int
  16727. HttpRequest_Seek (Urho3D::HttpRequest *_target, unsigned int position)
  16728. {
  16729. return _target->Seek (position);
  16730. }
  16731. DllExport int
  16732. HttpRequest_IsEof (Urho3D::HttpRequest *_target)
  16733. {
  16734. return _target->IsEof ();
  16735. }
  16736. DllExport const char *
  16737. HttpRequest_GetURL (Urho3D::HttpRequest *_target)
  16738. {
  16739. return stringdup((_target->GetURL ()).CString ());
  16740. }
  16741. DllExport const char *
  16742. HttpRequest_GetVerb (Urho3D::HttpRequest *_target)
  16743. {
  16744. return stringdup((_target->GetVerb ()).CString ());
  16745. }
  16746. DllExport const char *
  16747. HttpRequest_GetError (Urho3D::HttpRequest *_target)
  16748. {
  16749. return stringdup((_target->GetError ()).CString ());
  16750. }
  16751. DllExport enum Urho3D::HttpRequestState
  16752. HttpRequest_GetState (Urho3D::HttpRequest *_target)
  16753. {
  16754. return _target->GetState ();
  16755. }
  16756. DllExport unsigned int
  16757. HttpRequest_GetAvailableSize (Urho3D::HttpRequest *_target)
  16758. {
  16759. return _target->GetAvailableSize ();
  16760. }
  16761. DllExport int
  16762. HttpRequest_IsOpen (Urho3D::HttpRequest *_target)
  16763. {
  16764. return _target->IsOpen ();
  16765. }
  16766. DllExport int
  16767. Network_GetType (Urho3D::Network *_target)
  16768. {
  16769. return (_target->GetType ()).Value ();
  16770. }
  16771. DllExport const char *
  16772. Network_GetTypeName (Urho3D::Network *_target)
  16773. {
  16774. return stringdup((_target->GetTypeName ()).CString ());
  16775. }
  16776. DllExport int
  16777. Network_GetTypeStatic ()
  16778. {
  16779. return (Network::GetTypeStatic ()).Value ();
  16780. }
  16781. DllExport const char *
  16782. Network_GetTypeNameStatic ()
  16783. {
  16784. return stringdup((Network::GetTypeNameStatic ()).CString ());
  16785. }
  16786. DllExport void *
  16787. Network_Network (Urho3D::Context * context)
  16788. {
  16789. return WeakPtr<Network>(new Network(context));
  16790. }
  16791. DllExport void
  16792. Network_Disconnect (Urho3D::Network *_target, int waitMSec)
  16793. {
  16794. _target->Disconnect (waitMSec);
  16795. }
  16796. DllExport int
  16797. Network_StartServer (Urho3D::Network *_target, unsigned short port)
  16798. {
  16799. return _target->StartServer (port);
  16800. }
  16801. DllExport void
  16802. Network_StopServer (Urho3D::Network *_target)
  16803. {
  16804. _target->StopServer ();
  16805. }
  16806. DllExport void
  16807. Network_BroadcastMessage (Urho3D::Network *_target, int msgID, bool reliable, bool inOrder, const unsigned char * data, unsigned int numBytes, unsigned int contentID)
  16808. {
  16809. _target->BroadcastMessage (msgID, reliable, inOrder, data, numBytes, contentID);
  16810. }
  16811. DllExport void
  16812. Network_SetUpdateFps (Urho3D::Network *_target, int fps)
  16813. {
  16814. _target->SetUpdateFps (fps);
  16815. }
  16816. DllExport void
  16817. Network_SetSimulatedLatency (Urho3D::Network *_target, int ms)
  16818. {
  16819. _target->SetSimulatedLatency (ms);
  16820. }
  16821. DllExport void
  16822. Network_SetSimulatedPacketLoss (Urho3D::Network *_target, float probability)
  16823. {
  16824. _target->SetSimulatedPacketLoss (probability);
  16825. }
  16826. DllExport void
  16827. Network_RegisterRemoteEvent (Urho3D::Network *_target, int eventType)
  16828. {
  16829. _target->RegisterRemoteEvent (Urho3D::StringHash(eventType));
  16830. }
  16831. DllExport void
  16832. Network_UnregisterRemoteEvent (Urho3D::Network *_target, int eventType)
  16833. {
  16834. _target->UnregisterRemoteEvent (Urho3D::StringHash(eventType));
  16835. }
  16836. DllExport void
  16837. Network_UnregisterAllRemoteEvents (Urho3D::Network *_target)
  16838. {
  16839. _target->UnregisterAllRemoteEvents ();
  16840. }
  16841. DllExport void
  16842. Network_SetPackageCacheDir (Urho3D::Network *_target, const char * path)
  16843. {
  16844. _target->SetPackageCacheDir (Urho3D::String(path));
  16845. }
  16846. DllExport void
  16847. Network_SendPackageToClients (Urho3D::Network *_target, Urho3D::Scene * scene, Urho3D::PackageFile * package)
  16848. {
  16849. _target->SendPackageToClients (scene, package);
  16850. }
  16851. DllExport int
  16852. Network_GetUpdateFps (Urho3D::Network *_target)
  16853. {
  16854. return _target->GetUpdateFps ();
  16855. }
  16856. DllExport int
  16857. Network_GetSimulatedLatency (Urho3D::Network *_target)
  16858. {
  16859. return _target->GetSimulatedLatency ();
  16860. }
  16861. DllExport float
  16862. Network_GetSimulatedPacketLoss (Urho3D::Network *_target)
  16863. {
  16864. return _target->GetSimulatedPacketLoss ();
  16865. }
  16866. DllExport Urho3D::Connection *
  16867. Network_GetServerConnection (Urho3D::Network *_target)
  16868. {
  16869. return _target->GetServerConnection ();
  16870. }
  16871. DllExport int
  16872. Network_IsServerRunning (Urho3D::Network *_target)
  16873. {
  16874. return _target->IsServerRunning ();
  16875. }
  16876. DllExport int
  16877. Network_CheckRemoteEvent (Urho3D::Network *_target, int eventType)
  16878. {
  16879. return _target->CheckRemoteEvent (Urho3D::StringHash(eventType));
  16880. }
  16881. DllExport const char *
  16882. Network_GetPackageCacheDir (Urho3D::Network *_target)
  16883. {
  16884. return stringdup((_target->GetPackageCacheDir ()).CString ());
  16885. }
  16886. DllExport void
  16887. Network_Update (Urho3D::Network *_target, float timeStep)
  16888. {
  16889. _target->Update (timeStep);
  16890. }
  16891. DllExport void
  16892. Network_PostUpdate (Urho3D::Network *_target, float timeStep)
  16893. {
  16894. _target->PostUpdate (timeStep);
  16895. }
  16896. DllExport int
  16897. NetworkPriority_GetType (Urho3D::NetworkPriority *_target)
  16898. {
  16899. return (_target->GetType ()).Value ();
  16900. }
  16901. DllExport const char *
  16902. NetworkPriority_GetTypeName (Urho3D::NetworkPriority *_target)
  16903. {
  16904. return stringdup((_target->GetTypeName ()).CString ());
  16905. }
  16906. DllExport int
  16907. NetworkPriority_GetTypeStatic ()
  16908. {
  16909. return (NetworkPriority::GetTypeStatic ()).Value ();
  16910. }
  16911. DllExport const char *
  16912. NetworkPriority_GetTypeNameStatic ()
  16913. {
  16914. return stringdup((NetworkPriority::GetTypeNameStatic ()).CString ());
  16915. }
  16916. DllExport void *
  16917. NetworkPriority_NetworkPriority (Urho3D::Context * context)
  16918. {
  16919. return WeakPtr<NetworkPriority>(new NetworkPriority(context));
  16920. }
  16921. DllExport void
  16922. NetworkPriority_RegisterObject (Urho3D::Context * context)
  16923. {
  16924. NetworkPriority::RegisterObject (context);
  16925. }
  16926. DllExport void
  16927. NetworkPriority_SetBasePriority (Urho3D::NetworkPriority *_target, float priority)
  16928. {
  16929. _target->SetBasePriority (priority);
  16930. }
  16931. DllExport void
  16932. NetworkPriority_SetDistanceFactor (Urho3D::NetworkPriority *_target, float factor)
  16933. {
  16934. _target->SetDistanceFactor (factor);
  16935. }
  16936. DllExport void
  16937. NetworkPriority_SetMinPriority (Urho3D::NetworkPriority *_target, float priority)
  16938. {
  16939. _target->SetMinPriority (priority);
  16940. }
  16941. DllExport void
  16942. NetworkPriority_SetAlwaysUpdateOwner (Urho3D::NetworkPriority *_target, bool enable)
  16943. {
  16944. _target->SetAlwaysUpdateOwner (enable);
  16945. }
  16946. DllExport float
  16947. NetworkPriority_GetBasePriority (Urho3D::NetworkPriority *_target)
  16948. {
  16949. return _target->GetBasePriority ();
  16950. }
  16951. DllExport float
  16952. NetworkPriority_GetDistanceFactor (Urho3D::NetworkPriority *_target)
  16953. {
  16954. return _target->GetDistanceFactor ();
  16955. }
  16956. DllExport float
  16957. NetworkPriority_GetMinPriority (Urho3D::NetworkPriority *_target)
  16958. {
  16959. return _target->GetMinPriority ();
  16960. }
  16961. DllExport int
  16962. NetworkPriority_GetAlwaysUpdateOwner (Urho3D::NetworkPriority *_target)
  16963. {
  16964. return _target->GetAlwaysUpdateOwner ();
  16965. }
  16966. DllExport void *
  16967. TriangleMeshData_TriangleMeshData (Urho3D::Model * model, unsigned int lodLevel)
  16968. {
  16969. return WeakPtr<TriangleMeshData>(new TriangleMeshData(model, lodLevel));
  16970. }
  16971. DllExport void *
  16972. TriangleMeshData_TriangleMeshData0 (Urho3D::CustomGeometry * custom)
  16973. {
  16974. return WeakPtr<TriangleMeshData>(new TriangleMeshData(custom));
  16975. }
  16976. DllExport void *
  16977. ConvexData_ConvexData (Urho3D::Model * model, unsigned int lodLevel)
  16978. {
  16979. return WeakPtr<ConvexData>(new ConvexData(model, lodLevel));
  16980. }
  16981. DllExport void *
  16982. ConvexData_ConvexData0 (Urho3D::CustomGeometry * custom)
  16983. {
  16984. return WeakPtr<ConvexData>(new ConvexData(custom));
  16985. }
  16986. DllExport void *
  16987. HeightfieldData_HeightfieldData (Urho3D::Terrain * terrain, unsigned int lodLevel)
  16988. {
  16989. return WeakPtr<HeightfieldData>(new HeightfieldData(terrain, lodLevel));
  16990. }
  16991. DllExport int
  16992. CollisionShape_GetType (Urho3D::CollisionShape *_target)
  16993. {
  16994. return (_target->GetType ()).Value ();
  16995. }
  16996. DllExport const char *
  16997. CollisionShape_GetTypeName (Urho3D::CollisionShape *_target)
  16998. {
  16999. return stringdup((_target->GetTypeName ()).CString ());
  17000. }
  17001. DllExport int
  17002. CollisionShape_GetTypeStatic ()
  17003. {
  17004. return (CollisionShape::GetTypeStatic ()).Value ();
  17005. }
  17006. DllExport const char *
  17007. CollisionShape_GetTypeNameStatic ()
  17008. {
  17009. return stringdup((CollisionShape::GetTypeNameStatic ()).CString ());
  17010. }
  17011. DllExport void *
  17012. CollisionShape_CollisionShape (Urho3D::Context * context)
  17013. {
  17014. return WeakPtr<CollisionShape>(new CollisionShape(context));
  17015. }
  17016. DllExport void
  17017. CollisionShape_RegisterObject (Urho3D::Context * context)
  17018. {
  17019. CollisionShape::RegisterObject (context);
  17020. }
  17021. DllExport void
  17022. CollisionShape_ApplyAttributes (Urho3D::CollisionShape *_target)
  17023. {
  17024. _target->ApplyAttributes ();
  17025. }
  17026. DllExport void
  17027. CollisionShape_OnSetEnabled (Urho3D::CollisionShape *_target)
  17028. {
  17029. _target->OnSetEnabled ();
  17030. }
  17031. DllExport void
  17032. CollisionShape_DrawDebugGeometry (Urho3D::CollisionShape *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  17033. {
  17034. _target->DrawDebugGeometry (debug, depthTest);
  17035. }
  17036. DllExport void
  17037. CollisionShape_SetBox (Urho3D::CollisionShape *_target, const class Urho3D::Vector3 & size, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  17038. {
  17039. _target->SetBox (size, position, rotation);
  17040. }
  17041. DllExport void
  17042. CollisionShape_SetSphere (Urho3D::CollisionShape *_target, float diameter, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  17043. {
  17044. _target->SetSphere (diameter, position, rotation);
  17045. }
  17046. DllExport void
  17047. CollisionShape_SetStaticPlane (Urho3D::CollisionShape *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  17048. {
  17049. _target->SetStaticPlane (position, rotation);
  17050. }
  17051. DllExport void
  17052. CollisionShape_SetCylinder (Urho3D::CollisionShape *_target, float diameter, float height, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  17053. {
  17054. _target->SetCylinder (diameter, height, position, rotation);
  17055. }
  17056. DllExport void
  17057. CollisionShape_SetCapsule (Urho3D::CollisionShape *_target, float diameter, float height, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  17058. {
  17059. _target->SetCapsule (diameter, height, position, rotation);
  17060. }
  17061. DllExport void
  17062. CollisionShape_SetCone (Urho3D::CollisionShape *_target, float diameter, float height, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  17063. {
  17064. _target->SetCone (diameter, height, position, rotation);
  17065. }
  17066. DllExport void
  17067. CollisionShape_SetTriangleMesh (Urho3D::CollisionShape *_target, Urho3D::Model * model, unsigned int lodLevel, const class Urho3D::Vector3 & scale, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  17068. {
  17069. _target->SetTriangleMesh (model, lodLevel, scale, position, rotation);
  17070. }
  17071. DllExport void
  17072. CollisionShape_SetCustomTriangleMesh (Urho3D::CollisionShape *_target, Urho3D::CustomGeometry * custom, const class Urho3D::Vector3 & scale, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  17073. {
  17074. _target->SetCustomTriangleMesh (custom, scale, position, rotation);
  17075. }
  17076. DllExport void
  17077. CollisionShape_SetConvexHull (Urho3D::CollisionShape *_target, Urho3D::Model * model, unsigned int lodLevel, const class Urho3D::Vector3 & scale, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  17078. {
  17079. _target->SetConvexHull (model, lodLevel, scale, position, rotation);
  17080. }
  17081. DllExport void
  17082. CollisionShape_SetCustomConvexHull (Urho3D::CollisionShape *_target, Urho3D::CustomGeometry * custom, const class Urho3D::Vector3 & scale, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  17083. {
  17084. _target->SetCustomConvexHull (custom, scale, position, rotation);
  17085. }
  17086. DllExport void
  17087. CollisionShape_SetTerrain (Urho3D::CollisionShape *_target, unsigned int lodLevel)
  17088. {
  17089. _target->SetTerrain (lodLevel);
  17090. }
  17091. DllExport void
  17092. CollisionShape_SetShapeType (Urho3D::CollisionShape *_target, enum Urho3D::ShapeType type)
  17093. {
  17094. _target->SetShapeType (type);
  17095. }
  17096. DllExport void
  17097. CollisionShape_SetSize (Urho3D::CollisionShape *_target, const class Urho3D::Vector3 & size)
  17098. {
  17099. _target->SetSize (size);
  17100. }
  17101. DllExport void
  17102. CollisionShape_SetPosition (Urho3D::CollisionShape *_target, const class Urho3D::Vector3 & position)
  17103. {
  17104. _target->SetPosition (position);
  17105. }
  17106. DllExport void
  17107. CollisionShape_SetRotation (Urho3D::CollisionShape *_target, const class Urho3D::Quaternion & rotation)
  17108. {
  17109. _target->SetRotation (rotation);
  17110. }
  17111. DllExport void
  17112. CollisionShape_SetTransform (Urho3D::CollisionShape *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  17113. {
  17114. _target->SetTransform (position, rotation);
  17115. }
  17116. DllExport void
  17117. CollisionShape_SetMargin (Urho3D::CollisionShape *_target, float margin)
  17118. {
  17119. _target->SetMargin (margin);
  17120. }
  17121. DllExport void
  17122. CollisionShape_SetModel (Urho3D::CollisionShape *_target, Urho3D::Model * model)
  17123. {
  17124. _target->SetModel (model);
  17125. }
  17126. DllExport void
  17127. CollisionShape_SetLodLevel (Urho3D::CollisionShape *_target, unsigned int lodLevel)
  17128. {
  17129. _target->SetLodLevel (lodLevel);
  17130. }
  17131. DllExport Urho3D::PhysicsWorld *
  17132. CollisionShape_GetPhysicsWorld (Urho3D::CollisionShape *_target)
  17133. {
  17134. return _target->GetPhysicsWorld ();
  17135. }
  17136. DllExport enum Urho3D::ShapeType
  17137. CollisionShape_GetShapeType (Urho3D::CollisionShape *_target)
  17138. {
  17139. return _target->GetShapeType ();
  17140. }
  17141. DllExport Interop::Vector3
  17142. CollisionShape_GetSize (Urho3D::CollisionShape *_target)
  17143. {
  17144. return *((Interop::Vector3 *) &(_target->GetSize ()));
  17145. }
  17146. DllExport Interop::Vector3
  17147. CollisionShape_GetPosition (Urho3D::CollisionShape *_target)
  17148. {
  17149. return *((Interop::Vector3 *) &(_target->GetPosition ()));
  17150. }
  17151. DllExport Interop::Quaternion
  17152. CollisionShape_GetRotation (Urho3D::CollisionShape *_target)
  17153. {
  17154. return *((Interop::Quaternion *) &(_target->GetRotation ()));
  17155. }
  17156. DllExport float
  17157. CollisionShape_GetMargin (Urho3D::CollisionShape *_target)
  17158. {
  17159. return _target->GetMargin ();
  17160. }
  17161. DllExport Urho3D::Model *
  17162. CollisionShape_GetModel (Urho3D::CollisionShape *_target)
  17163. {
  17164. return _target->GetModel ();
  17165. }
  17166. DllExport unsigned int
  17167. CollisionShape_GetLodLevel (Urho3D::CollisionShape *_target)
  17168. {
  17169. return _target->GetLodLevel ();
  17170. }
  17171. DllExport Interop::BoundingBox
  17172. CollisionShape_GetWorldBoundingBox (Urho3D::CollisionShape *_target)
  17173. {
  17174. return *((Interop::BoundingBox *) &(_target->GetWorldBoundingBox ()));
  17175. }
  17176. DllExport void
  17177. CollisionShape_NotifyRigidBody (Urho3D::CollisionShape *_target, bool updateMass)
  17178. {
  17179. _target->NotifyRigidBody (updateMass);
  17180. }
  17181. DllExport Urho3D::ResourceRef
  17182. CollisionShape_GetModelAttr (Urho3D::CollisionShape *_target)
  17183. {
  17184. return _target->GetModelAttr ();
  17185. }
  17186. DllExport void
  17187. CollisionShape_ReleaseShape (Urho3D::CollisionShape *_target)
  17188. {
  17189. _target->ReleaseShape ();
  17190. }
  17191. DllExport int
  17192. Constraint_GetType (Urho3D::Constraint *_target)
  17193. {
  17194. return (_target->GetType ()).Value ();
  17195. }
  17196. DllExport const char *
  17197. Constraint_GetTypeName (Urho3D::Constraint *_target)
  17198. {
  17199. return stringdup((_target->GetTypeName ()).CString ());
  17200. }
  17201. DllExport int
  17202. Constraint_GetTypeStatic ()
  17203. {
  17204. return (Constraint::GetTypeStatic ()).Value ();
  17205. }
  17206. DllExport const char *
  17207. Constraint_GetTypeNameStatic ()
  17208. {
  17209. return stringdup((Constraint::GetTypeNameStatic ()).CString ());
  17210. }
  17211. DllExport void *
  17212. Constraint_Constraint (Urho3D::Context * context)
  17213. {
  17214. return WeakPtr<Constraint>(new Constraint(context));
  17215. }
  17216. DllExport void
  17217. Constraint_RegisterObject (Urho3D::Context * context)
  17218. {
  17219. Constraint::RegisterObject (context);
  17220. }
  17221. DllExport void
  17222. Constraint_ApplyAttributes (Urho3D::Constraint *_target)
  17223. {
  17224. _target->ApplyAttributes ();
  17225. }
  17226. DllExport void
  17227. Constraint_OnSetEnabled (Urho3D::Constraint *_target)
  17228. {
  17229. _target->OnSetEnabled ();
  17230. }
  17231. DllExport void
  17232. Constraint_DrawDebugGeometry (Urho3D::Constraint *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  17233. {
  17234. _target->DrawDebugGeometry (debug, depthTest);
  17235. }
  17236. DllExport void
  17237. Constraint_SetConstraintType (Urho3D::Constraint *_target, enum Urho3D::ConstraintType type)
  17238. {
  17239. _target->SetConstraintType (type);
  17240. }
  17241. DllExport void
  17242. Constraint_SetOtherBody (Urho3D::Constraint *_target, Urho3D::RigidBody * body)
  17243. {
  17244. _target->SetOtherBody (body);
  17245. }
  17246. DllExport void
  17247. Constraint_SetPosition (Urho3D::Constraint *_target, const class Urho3D::Vector3 & position)
  17248. {
  17249. _target->SetPosition (position);
  17250. }
  17251. DllExport void
  17252. Constraint_SetRotation (Urho3D::Constraint *_target, const class Urho3D::Quaternion & rotation)
  17253. {
  17254. _target->SetRotation (rotation);
  17255. }
  17256. DllExport void
  17257. Constraint_SetAxis (Urho3D::Constraint *_target, const class Urho3D::Vector3 & axis)
  17258. {
  17259. _target->SetAxis (axis);
  17260. }
  17261. DllExport void
  17262. Constraint_SetOtherPosition (Urho3D::Constraint *_target, const class Urho3D::Vector3 & position)
  17263. {
  17264. _target->SetOtherPosition (position);
  17265. }
  17266. DllExport void
  17267. Constraint_SetOtherRotation (Urho3D::Constraint *_target, const class Urho3D::Quaternion & rotation)
  17268. {
  17269. _target->SetOtherRotation (rotation);
  17270. }
  17271. DllExport void
  17272. Constraint_SetOtherAxis (Urho3D::Constraint *_target, const class Urho3D::Vector3 & axis)
  17273. {
  17274. _target->SetOtherAxis (axis);
  17275. }
  17276. DllExport void
  17277. Constraint_SetWorldPosition (Urho3D::Constraint *_target, const class Urho3D::Vector3 & position)
  17278. {
  17279. _target->SetWorldPosition (position);
  17280. }
  17281. DllExport void
  17282. Constraint_SetHighLimit (Urho3D::Constraint *_target, const class Urho3D::Vector2 & limit)
  17283. {
  17284. _target->SetHighLimit (limit);
  17285. }
  17286. DllExport void
  17287. Constraint_SetLowLimit (Urho3D::Constraint *_target, const class Urho3D::Vector2 & limit)
  17288. {
  17289. _target->SetLowLimit (limit);
  17290. }
  17291. DllExport void
  17292. Constraint_SetERP (Urho3D::Constraint *_target, float erp)
  17293. {
  17294. _target->SetERP (erp);
  17295. }
  17296. DllExport void
  17297. Constraint_SetCFM (Urho3D::Constraint *_target, float cfm)
  17298. {
  17299. _target->SetCFM (cfm);
  17300. }
  17301. DllExport void
  17302. Constraint_SetDisableCollision (Urho3D::Constraint *_target, bool disable)
  17303. {
  17304. _target->SetDisableCollision (disable);
  17305. }
  17306. DllExport Urho3D::PhysicsWorld *
  17307. Constraint_GetPhysicsWorld (Urho3D::Constraint *_target)
  17308. {
  17309. return _target->GetPhysicsWorld ();
  17310. }
  17311. DllExport enum Urho3D::ConstraintType
  17312. Constraint_GetConstraintType (Urho3D::Constraint *_target)
  17313. {
  17314. return _target->GetConstraintType ();
  17315. }
  17316. DllExport Urho3D::RigidBody *
  17317. Constraint_GetOwnBody (Urho3D::Constraint *_target)
  17318. {
  17319. return _target->GetOwnBody ();
  17320. }
  17321. DllExport Urho3D::RigidBody *
  17322. Constraint_GetOtherBody (Urho3D::Constraint *_target)
  17323. {
  17324. return _target->GetOtherBody ();
  17325. }
  17326. DllExport Interop::Vector3
  17327. Constraint_GetPosition (Urho3D::Constraint *_target)
  17328. {
  17329. return *((Interop::Vector3 *) &(_target->GetPosition ()));
  17330. }
  17331. DllExport Interop::Quaternion
  17332. Constraint_GetRotation (Urho3D::Constraint *_target)
  17333. {
  17334. return *((Interop::Quaternion *) &(_target->GetRotation ()));
  17335. }
  17336. DllExport Interop::Vector3
  17337. Constraint_GetOtherPosition (Urho3D::Constraint *_target)
  17338. {
  17339. return *((Interop::Vector3 *) &(_target->GetOtherPosition ()));
  17340. }
  17341. DllExport Interop::Quaternion
  17342. Constraint_GetOtherRotation (Urho3D::Constraint *_target)
  17343. {
  17344. return *((Interop::Quaternion *) &(_target->GetOtherRotation ()));
  17345. }
  17346. DllExport Interop::Vector3
  17347. Constraint_GetWorldPosition (Urho3D::Constraint *_target)
  17348. {
  17349. return *((Interop::Vector3 *) &(_target->GetWorldPosition ()));
  17350. }
  17351. DllExport Interop::Vector2
  17352. Constraint_GetHighLimit (Urho3D::Constraint *_target)
  17353. {
  17354. return *((Interop::Vector2 *) &(_target->GetHighLimit ()));
  17355. }
  17356. DllExport Interop::Vector2
  17357. Constraint_GetLowLimit (Urho3D::Constraint *_target)
  17358. {
  17359. return *((Interop::Vector2 *) &(_target->GetLowLimit ()));
  17360. }
  17361. DllExport float
  17362. Constraint_GetERP (Urho3D::Constraint *_target)
  17363. {
  17364. return _target->GetERP ();
  17365. }
  17366. DllExport float
  17367. Constraint_GetCFM (Urho3D::Constraint *_target)
  17368. {
  17369. return _target->GetCFM ();
  17370. }
  17371. DllExport int
  17372. Constraint_GetDisableCollision (Urho3D::Constraint *_target)
  17373. {
  17374. return _target->GetDisableCollision ();
  17375. }
  17376. DllExport void
  17377. Constraint_ReleaseConstraint (Urho3D::Constraint *_target)
  17378. {
  17379. _target->ReleaseConstraint ();
  17380. }
  17381. DllExport void
  17382. Constraint_ApplyFrames (Urho3D::Constraint *_target)
  17383. {
  17384. _target->ApplyFrames ();
  17385. }
  17386. DllExport int
  17387. PhysicsWorld_GetType (Urho3D::PhysicsWorld *_target)
  17388. {
  17389. return (_target->GetType ()).Value ();
  17390. }
  17391. DllExport const char *
  17392. PhysicsWorld_GetTypeName (Urho3D::PhysicsWorld *_target)
  17393. {
  17394. return stringdup((_target->GetTypeName ()).CString ());
  17395. }
  17396. DllExport int
  17397. PhysicsWorld_GetTypeStatic ()
  17398. {
  17399. return (PhysicsWorld::GetTypeStatic ()).Value ();
  17400. }
  17401. DllExport const char *
  17402. PhysicsWorld_GetTypeNameStatic ()
  17403. {
  17404. return stringdup((PhysicsWorld::GetTypeNameStatic ()).CString ());
  17405. }
  17406. DllExport void *
  17407. PhysicsWorld_PhysicsWorld (Urho3D::Context * scontext)
  17408. {
  17409. return WeakPtr<PhysicsWorld>(new PhysicsWorld(scontext));
  17410. }
  17411. DllExport void
  17412. PhysicsWorld_RegisterObject (Urho3D::Context * context)
  17413. {
  17414. PhysicsWorld::RegisterObject (context);
  17415. }
  17416. DllExport void
  17417. PhysicsWorld_setDebugMode (Urho3D::PhysicsWorld *_target, int debugMode)
  17418. {
  17419. _target->setDebugMode (debugMode);
  17420. }
  17421. DllExport int
  17422. PhysicsWorld_getDebugMode (Urho3D::PhysicsWorld *_target)
  17423. {
  17424. return _target->getDebugMode ();
  17425. }
  17426. DllExport void
  17427. PhysicsWorld_DrawDebugGeometry (Urho3D::PhysicsWorld *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  17428. {
  17429. _target->DrawDebugGeometry (debug, depthTest);
  17430. }
  17431. DllExport void
  17432. PhysicsWorld_Update (Urho3D::PhysicsWorld *_target, float timeStep)
  17433. {
  17434. _target->Update (timeStep);
  17435. }
  17436. DllExport void
  17437. PhysicsWorld_UpdateCollisions (Urho3D::PhysicsWorld *_target)
  17438. {
  17439. _target->UpdateCollisions ();
  17440. }
  17441. DllExport void
  17442. PhysicsWorld_SetFps (Urho3D::PhysicsWorld *_target, int fps)
  17443. {
  17444. _target->SetFps (fps);
  17445. }
  17446. DllExport void
  17447. PhysicsWorld_SetGravity (Urho3D::PhysicsWorld *_target, const class Urho3D::Vector3 & gravity)
  17448. {
  17449. _target->SetGravity (gravity);
  17450. }
  17451. DllExport void
  17452. PhysicsWorld_SetMaxSubSteps (Urho3D::PhysicsWorld *_target, int num)
  17453. {
  17454. _target->SetMaxSubSteps (num);
  17455. }
  17456. DllExport void
  17457. PhysicsWorld_SetNumIterations (Urho3D::PhysicsWorld *_target, int num)
  17458. {
  17459. _target->SetNumIterations (num);
  17460. }
  17461. DllExport void
  17462. PhysicsWorld_SetUpdateEnabled (Urho3D::PhysicsWorld *_target, bool enable)
  17463. {
  17464. _target->SetUpdateEnabled (enable);
  17465. }
  17466. DllExport void
  17467. PhysicsWorld_SetInterpolation (Urho3D::PhysicsWorld *_target, bool enable)
  17468. {
  17469. _target->SetInterpolation (enable);
  17470. }
  17471. DllExport void
  17472. PhysicsWorld_SetInternalEdge (Urho3D::PhysicsWorld *_target, bool enable)
  17473. {
  17474. _target->SetInternalEdge (enable);
  17475. }
  17476. DllExport void
  17477. PhysicsWorld_SetSplitImpulse (Urho3D::PhysicsWorld *_target, bool enable)
  17478. {
  17479. _target->SetSplitImpulse (enable);
  17480. }
  17481. DllExport void
  17482. PhysicsWorld_SetMaxNetworkAngularVelocity (Urho3D::PhysicsWorld *_target, float velocity)
  17483. {
  17484. _target->SetMaxNetworkAngularVelocity (velocity);
  17485. }
  17486. DllExport void
  17487. PhysicsWorld_RaycastSingle (Urho3D::PhysicsWorld *_target, Urho3D::PhysicsRaycastResult & result, const class Urho3D::Ray & ray, float maxDistance, unsigned int collisionMask)
  17488. {
  17489. _target->RaycastSingle (result, ray, maxDistance, collisionMask);
  17490. }
  17491. DllExport void
  17492. PhysicsWorld_RaycastSingleSegmented (Urho3D::PhysicsWorld *_target, Urho3D::PhysicsRaycastResult & result, const class Urho3D::Ray & ray, float maxDistance, float segmentDistance, unsigned int collisionMask)
  17493. {
  17494. _target->RaycastSingleSegmented (result, ray, maxDistance, segmentDistance, collisionMask);
  17495. }
  17496. DllExport void
  17497. PhysicsWorld_SphereCast (Urho3D::PhysicsWorld *_target, Urho3D::PhysicsRaycastResult & result, const class Urho3D::Ray & ray, float radius, float maxDistance, unsigned int collisionMask)
  17498. {
  17499. _target->SphereCast (result, ray, radius, maxDistance, collisionMask);
  17500. }
  17501. DllExport void
  17502. PhysicsWorld_ConvexCast (Urho3D::PhysicsWorld *_target, Urho3D::PhysicsRaycastResult & result, Urho3D::CollisionShape * shape, const class Urho3D::Vector3 & startPos, const class Urho3D::Quaternion & startRot, const class Urho3D::Vector3 & endPos, const class Urho3D::Quaternion & endRot, unsigned int collisionMask)
  17503. {
  17504. _target->ConvexCast (result, shape, startPos, startRot, endPos, endRot, collisionMask);
  17505. }
  17506. DllExport void
  17507. PhysicsWorld_RemoveCachedGeometry (Urho3D::PhysicsWorld *_target, Urho3D::Model * model)
  17508. {
  17509. _target->RemoveCachedGeometry (model);
  17510. }
  17511. DllExport Interop::Vector3
  17512. PhysicsWorld_GetGravity (Urho3D::PhysicsWorld *_target)
  17513. {
  17514. return *((Interop::Vector3 *) &(_target->GetGravity ()));
  17515. }
  17516. DllExport int
  17517. PhysicsWorld_GetMaxSubSteps (Urho3D::PhysicsWorld *_target)
  17518. {
  17519. return _target->GetMaxSubSteps ();
  17520. }
  17521. DllExport int
  17522. PhysicsWorld_GetNumIterations (Urho3D::PhysicsWorld *_target)
  17523. {
  17524. return _target->GetNumIterations ();
  17525. }
  17526. DllExport int
  17527. PhysicsWorld_IsUpdateEnabled (Urho3D::PhysicsWorld *_target)
  17528. {
  17529. return _target->IsUpdateEnabled ();
  17530. }
  17531. DllExport int
  17532. PhysicsWorld_GetInterpolation (Urho3D::PhysicsWorld *_target)
  17533. {
  17534. return _target->GetInterpolation ();
  17535. }
  17536. DllExport int
  17537. PhysicsWorld_GetInternalEdge (Urho3D::PhysicsWorld *_target)
  17538. {
  17539. return _target->GetInternalEdge ();
  17540. }
  17541. DllExport int
  17542. PhysicsWorld_GetSplitImpulse (Urho3D::PhysicsWorld *_target)
  17543. {
  17544. return _target->GetSplitImpulse ();
  17545. }
  17546. DllExport int
  17547. PhysicsWorld_GetFps (Urho3D::PhysicsWorld *_target)
  17548. {
  17549. return _target->GetFps ();
  17550. }
  17551. DllExport float
  17552. PhysicsWorld_GetMaxNetworkAngularVelocity (Urho3D::PhysicsWorld *_target)
  17553. {
  17554. return _target->GetMaxNetworkAngularVelocity ();
  17555. }
  17556. DllExport void
  17557. PhysicsWorld_AddRigidBody (Urho3D::PhysicsWorld *_target, Urho3D::RigidBody * body)
  17558. {
  17559. _target->AddRigidBody (body);
  17560. }
  17561. DllExport void
  17562. PhysicsWorld_RemoveRigidBody (Urho3D::PhysicsWorld *_target, Urho3D::RigidBody * body)
  17563. {
  17564. _target->RemoveRigidBody (body);
  17565. }
  17566. DllExport void
  17567. PhysicsWorld_AddCollisionShape (Urho3D::PhysicsWorld *_target, Urho3D::CollisionShape * shape)
  17568. {
  17569. _target->AddCollisionShape (shape);
  17570. }
  17571. DllExport void
  17572. PhysicsWorld_RemoveCollisionShape (Urho3D::PhysicsWorld *_target, Urho3D::CollisionShape * shape)
  17573. {
  17574. _target->RemoveCollisionShape (shape);
  17575. }
  17576. DllExport void
  17577. PhysicsWorld_AddConstraint (Urho3D::PhysicsWorld *_target, Urho3D::Constraint * joint)
  17578. {
  17579. _target->AddConstraint (joint);
  17580. }
  17581. DllExport void
  17582. PhysicsWorld_RemoveConstraint (Urho3D::PhysicsWorld *_target, Urho3D::Constraint * joint)
  17583. {
  17584. _target->RemoveConstraint (joint);
  17585. }
  17586. DllExport void
  17587. PhysicsWorld_DrawDebugGeometry0 (Urho3D::PhysicsWorld *_target, bool depthTest)
  17588. {
  17589. _target->DrawDebugGeometry (depthTest);
  17590. }
  17591. DllExport void
  17592. PhysicsWorld_SetDebugRenderer (Urho3D::PhysicsWorld *_target, Urho3D::DebugRenderer * debug)
  17593. {
  17594. _target->SetDebugRenderer (debug);
  17595. }
  17596. DllExport void
  17597. PhysicsWorld_SetDebugDepthTest (Urho3D::PhysicsWorld *_target, bool enable)
  17598. {
  17599. _target->SetDebugDepthTest (enable);
  17600. }
  17601. DllExport void
  17602. PhysicsWorld_CleanupGeometryCache (Urho3D::PhysicsWorld *_target)
  17603. {
  17604. _target->CleanupGeometryCache ();
  17605. }
  17606. DllExport void
  17607. PhysicsWorld_SetApplyingTransforms (Urho3D::PhysicsWorld *_target, bool enable)
  17608. {
  17609. _target->SetApplyingTransforms (enable);
  17610. }
  17611. DllExport int
  17612. PhysicsWorld_IsApplyingTransforms (Urho3D::PhysicsWorld *_target)
  17613. {
  17614. return _target->IsApplyingTransforms ();
  17615. }
  17616. DllExport int
  17617. PhysicsWorld_IsSimulating (Urho3D::PhysicsWorld *_target)
  17618. {
  17619. return _target->IsSimulating ();
  17620. }
  17621. DllExport int
  17622. RigidBody_GetType (Urho3D::RigidBody *_target)
  17623. {
  17624. return (_target->GetType ()).Value ();
  17625. }
  17626. DllExport const char *
  17627. RigidBody_GetTypeName (Urho3D::RigidBody *_target)
  17628. {
  17629. return stringdup((_target->GetTypeName ()).CString ());
  17630. }
  17631. DllExport int
  17632. RigidBody_GetTypeStatic ()
  17633. {
  17634. return (RigidBody::GetTypeStatic ()).Value ();
  17635. }
  17636. DllExport const char *
  17637. RigidBody_GetTypeNameStatic ()
  17638. {
  17639. return stringdup((RigidBody::GetTypeNameStatic ()).CString ());
  17640. }
  17641. DllExport void *
  17642. RigidBody_RigidBody (Urho3D::Context * context)
  17643. {
  17644. return WeakPtr<RigidBody>(new RigidBody(context));
  17645. }
  17646. DllExport void
  17647. RigidBody_RegisterObject (Urho3D::Context * context)
  17648. {
  17649. RigidBody::RegisterObject (context);
  17650. }
  17651. DllExport void
  17652. RigidBody_ApplyAttributes (Urho3D::RigidBody *_target)
  17653. {
  17654. _target->ApplyAttributes ();
  17655. }
  17656. DllExport void
  17657. RigidBody_OnSetEnabled (Urho3D::RigidBody *_target)
  17658. {
  17659. _target->OnSetEnabled ();
  17660. }
  17661. DllExport void
  17662. RigidBody_DrawDebugGeometry (Urho3D::RigidBody *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  17663. {
  17664. _target->DrawDebugGeometry (debug, depthTest);
  17665. }
  17666. DllExport void
  17667. RigidBody_SetMass (Urho3D::RigidBody *_target, float mass)
  17668. {
  17669. _target->SetMass (mass);
  17670. }
  17671. DllExport void
  17672. RigidBody_SetPosition (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & position)
  17673. {
  17674. _target->SetPosition (position);
  17675. }
  17676. DllExport void
  17677. RigidBody_SetRotation (Urho3D::RigidBody *_target, const class Urho3D::Quaternion & rotation)
  17678. {
  17679. _target->SetRotation (rotation);
  17680. }
  17681. DllExport void
  17682. RigidBody_SetTransform (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  17683. {
  17684. _target->SetTransform (position, rotation);
  17685. }
  17686. DllExport void
  17687. RigidBody_SetLinearVelocity (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & velocity)
  17688. {
  17689. _target->SetLinearVelocity (velocity);
  17690. }
  17691. DllExport void
  17692. RigidBody_SetLinearFactor (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & factor)
  17693. {
  17694. _target->SetLinearFactor (factor);
  17695. }
  17696. DllExport void
  17697. RigidBody_SetLinearRestThreshold (Urho3D::RigidBody *_target, float threshold)
  17698. {
  17699. _target->SetLinearRestThreshold (threshold);
  17700. }
  17701. DllExport void
  17702. RigidBody_SetLinearDamping (Urho3D::RigidBody *_target, float damping)
  17703. {
  17704. _target->SetLinearDamping (damping);
  17705. }
  17706. DllExport void
  17707. RigidBody_SetAngularVelocity (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & angularVelocity)
  17708. {
  17709. _target->SetAngularVelocity (angularVelocity);
  17710. }
  17711. DllExport void
  17712. RigidBody_SetAngularFactor (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & factor)
  17713. {
  17714. _target->SetAngularFactor (factor);
  17715. }
  17716. DllExport void
  17717. RigidBody_SetAngularRestThreshold (Urho3D::RigidBody *_target, float threshold)
  17718. {
  17719. _target->SetAngularRestThreshold (threshold);
  17720. }
  17721. DllExport void
  17722. RigidBody_SetAngularDamping (Urho3D::RigidBody *_target, float factor)
  17723. {
  17724. _target->SetAngularDamping (factor);
  17725. }
  17726. DllExport void
  17727. RigidBody_SetFriction (Urho3D::RigidBody *_target, float friction)
  17728. {
  17729. _target->SetFriction (friction);
  17730. }
  17731. DllExport void
  17732. RigidBody_SetAnisotropicFriction (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & friction)
  17733. {
  17734. _target->SetAnisotropicFriction (friction);
  17735. }
  17736. DllExport void
  17737. RigidBody_SetRollingFriction (Urho3D::RigidBody *_target, float friction)
  17738. {
  17739. _target->SetRollingFriction (friction);
  17740. }
  17741. DllExport void
  17742. RigidBody_SetRestitution (Urho3D::RigidBody *_target, float restitution)
  17743. {
  17744. _target->SetRestitution (restitution);
  17745. }
  17746. DllExport void
  17747. RigidBody_SetContactProcessingThreshold (Urho3D::RigidBody *_target, float threshold)
  17748. {
  17749. _target->SetContactProcessingThreshold (threshold);
  17750. }
  17751. DllExport void
  17752. RigidBody_SetCcdRadius (Urho3D::RigidBody *_target, float radius)
  17753. {
  17754. _target->SetCcdRadius (radius);
  17755. }
  17756. DllExport void
  17757. RigidBody_SetCcdMotionThreshold (Urho3D::RigidBody *_target, float threshold)
  17758. {
  17759. _target->SetCcdMotionThreshold (threshold);
  17760. }
  17761. DllExport void
  17762. RigidBody_SetUseGravity (Urho3D::RigidBody *_target, bool enable)
  17763. {
  17764. _target->SetUseGravity (enable);
  17765. }
  17766. DllExport void
  17767. RigidBody_SetGravityOverride (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & gravity)
  17768. {
  17769. _target->SetGravityOverride (gravity);
  17770. }
  17771. DllExport void
  17772. RigidBody_SetKinematic (Urho3D::RigidBody *_target, bool enable)
  17773. {
  17774. _target->SetKinematic (enable);
  17775. }
  17776. DllExport void
  17777. RigidBody_SetTrigger (Urho3D::RigidBody *_target, bool enable)
  17778. {
  17779. _target->SetTrigger (enable);
  17780. }
  17781. DllExport void
  17782. RigidBody_SetCollisionLayer (Urho3D::RigidBody *_target, unsigned int layer)
  17783. {
  17784. _target->SetCollisionLayer (layer);
  17785. }
  17786. DllExport void
  17787. RigidBody_SetCollisionMask (Urho3D::RigidBody *_target, unsigned int mask)
  17788. {
  17789. _target->SetCollisionMask (mask);
  17790. }
  17791. DllExport void
  17792. RigidBody_SetCollisionLayerAndMask (Urho3D::RigidBody *_target, unsigned int layer, unsigned int mask)
  17793. {
  17794. _target->SetCollisionLayerAndMask (layer, mask);
  17795. }
  17796. DllExport void
  17797. RigidBody_SetCollisionEventMode (Urho3D::RigidBody *_target, enum Urho3D::CollisionEventMode mode)
  17798. {
  17799. _target->SetCollisionEventMode (mode);
  17800. }
  17801. DllExport void
  17802. RigidBody_ApplyForce (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & force)
  17803. {
  17804. _target->ApplyForce (force);
  17805. }
  17806. DllExport void
  17807. RigidBody_ApplyForce0 (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & force, const class Urho3D::Vector3 & position)
  17808. {
  17809. _target->ApplyForce (force, position);
  17810. }
  17811. DllExport void
  17812. RigidBody_ApplyTorque (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & torque)
  17813. {
  17814. _target->ApplyTorque (torque);
  17815. }
  17816. DllExport void
  17817. RigidBody_ApplyImpulse (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & impulse)
  17818. {
  17819. _target->ApplyImpulse (impulse);
  17820. }
  17821. DllExport void
  17822. RigidBody_ApplyImpulse1 (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & impulse, const class Urho3D::Vector3 & position)
  17823. {
  17824. _target->ApplyImpulse (impulse, position);
  17825. }
  17826. DllExport void
  17827. RigidBody_ApplyTorqueImpulse (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & torque)
  17828. {
  17829. _target->ApplyTorqueImpulse (torque);
  17830. }
  17831. DllExport void
  17832. RigidBody_ResetForces (Urho3D::RigidBody *_target)
  17833. {
  17834. _target->ResetForces ();
  17835. }
  17836. DllExport void
  17837. RigidBody_Activate (Urho3D::RigidBody *_target)
  17838. {
  17839. _target->Activate ();
  17840. }
  17841. DllExport void
  17842. RigidBody_ReAddBodyToWorld (Urho3D::RigidBody *_target)
  17843. {
  17844. _target->ReAddBodyToWorld ();
  17845. }
  17846. DllExport void
  17847. RigidBody_DisableMassUpdate (Urho3D::RigidBody *_target)
  17848. {
  17849. _target->DisableMassUpdate ();
  17850. }
  17851. DllExport void
  17852. RigidBody_EnableMassUpdate (Urho3D::RigidBody *_target)
  17853. {
  17854. _target->EnableMassUpdate ();
  17855. }
  17856. DllExport Urho3D::PhysicsWorld *
  17857. RigidBody_GetPhysicsWorld (Urho3D::RigidBody *_target)
  17858. {
  17859. return _target->GetPhysicsWorld ();
  17860. }
  17861. DllExport float
  17862. RigidBody_GetMass (Urho3D::RigidBody *_target)
  17863. {
  17864. return _target->GetMass ();
  17865. }
  17866. DllExport Interop::Vector3
  17867. RigidBody_GetPosition (Urho3D::RigidBody *_target)
  17868. {
  17869. return *((Interop::Vector3 *) &(_target->GetPosition ()));
  17870. }
  17871. DllExport Interop::Quaternion
  17872. RigidBody_GetRotation (Urho3D::RigidBody *_target)
  17873. {
  17874. return *((Interop::Quaternion *) &(_target->GetRotation ()));
  17875. }
  17876. DllExport Interop::Vector3
  17877. RigidBody_GetLinearVelocity (Urho3D::RigidBody *_target)
  17878. {
  17879. return *((Interop::Vector3 *) &(_target->GetLinearVelocity ()));
  17880. }
  17881. DllExport Interop::Vector3
  17882. RigidBody_GetLinearFactor (Urho3D::RigidBody *_target)
  17883. {
  17884. return *((Interop::Vector3 *) &(_target->GetLinearFactor ()));
  17885. }
  17886. DllExport Interop::Vector3
  17887. RigidBody_GetVelocityAtPoint (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & position)
  17888. {
  17889. return *((Interop::Vector3 *) &(_target->GetVelocityAtPoint (position)));
  17890. }
  17891. DllExport float
  17892. RigidBody_GetLinearRestThreshold (Urho3D::RigidBody *_target)
  17893. {
  17894. return _target->GetLinearRestThreshold ();
  17895. }
  17896. DllExport float
  17897. RigidBody_GetLinearDamping (Urho3D::RigidBody *_target)
  17898. {
  17899. return _target->GetLinearDamping ();
  17900. }
  17901. DllExport Interop::Vector3
  17902. RigidBody_GetAngularVelocity (Urho3D::RigidBody *_target)
  17903. {
  17904. return *((Interop::Vector3 *) &(_target->GetAngularVelocity ()));
  17905. }
  17906. DllExport Interop::Vector3
  17907. RigidBody_GetAngularFactor (Urho3D::RigidBody *_target)
  17908. {
  17909. return *((Interop::Vector3 *) &(_target->GetAngularFactor ()));
  17910. }
  17911. DllExport float
  17912. RigidBody_GetAngularRestThreshold (Urho3D::RigidBody *_target)
  17913. {
  17914. return _target->GetAngularRestThreshold ();
  17915. }
  17916. DllExport float
  17917. RigidBody_GetAngularDamping (Urho3D::RigidBody *_target)
  17918. {
  17919. return _target->GetAngularDamping ();
  17920. }
  17921. DllExport float
  17922. RigidBody_GetFriction (Urho3D::RigidBody *_target)
  17923. {
  17924. return _target->GetFriction ();
  17925. }
  17926. DllExport Interop::Vector3
  17927. RigidBody_GetAnisotropicFriction (Urho3D::RigidBody *_target)
  17928. {
  17929. return *((Interop::Vector3 *) &(_target->GetAnisotropicFriction ()));
  17930. }
  17931. DllExport float
  17932. RigidBody_GetRollingFriction (Urho3D::RigidBody *_target)
  17933. {
  17934. return _target->GetRollingFriction ();
  17935. }
  17936. DllExport float
  17937. RigidBody_GetRestitution (Urho3D::RigidBody *_target)
  17938. {
  17939. return _target->GetRestitution ();
  17940. }
  17941. DllExport float
  17942. RigidBody_GetContactProcessingThreshold (Urho3D::RigidBody *_target)
  17943. {
  17944. return _target->GetContactProcessingThreshold ();
  17945. }
  17946. DllExport float
  17947. RigidBody_GetCcdRadius (Urho3D::RigidBody *_target)
  17948. {
  17949. return _target->GetCcdRadius ();
  17950. }
  17951. DllExport float
  17952. RigidBody_GetCcdMotionThreshold (Urho3D::RigidBody *_target)
  17953. {
  17954. return _target->GetCcdMotionThreshold ();
  17955. }
  17956. DllExport int
  17957. RigidBody_GetUseGravity (Urho3D::RigidBody *_target)
  17958. {
  17959. return _target->GetUseGravity ();
  17960. }
  17961. DllExport Interop::Vector3
  17962. RigidBody_GetGravityOverride (Urho3D::RigidBody *_target)
  17963. {
  17964. return *((Interop::Vector3 *) &(_target->GetGravityOverride ()));
  17965. }
  17966. DllExport Interop::Vector3
  17967. RigidBody_GetCenterOfMass (Urho3D::RigidBody *_target)
  17968. {
  17969. return *((Interop::Vector3 *) &(_target->GetCenterOfMass ()));
  17970. }
  17971. DllExport int
  17972. RigidBody_IsKinematic (Urho3D::RigidBody *_target)
  17973. {
  17974. return _target->IsKinematic ();
  17975. }
  17976. DllExport int
  17977. RigidBody_IsTrigger (Urho3D::RigidBody *_target)
  17978. {
  17979. return _target->IsTrigger ();
  17980. }
  17981. DllExport int
  17982. RigidBody_IsActive (Urho3D::RigidBody *_target)
  17983. {
  17984. return _target->IsActive ();
  17985. }
  17986. DllExport unsigned int
  17987. RigidBody_GetCollisionLayer (Urho3D::RigidBody *_target)
  17988. {
  17989. return _target->GetCollisionLayer ();
  17990. }
  17991. DllExport unsigned int
  17992. RigidBody_GetCollisionMask (Urho3D::RigidBody *_target)
  17993. {
  17994. return _target->GetCollisionMask ();
  17995. }
  17996. DllExport enum Urho3D::CollisionEventMode
  17997. RigidBody_GetCollisionEventMode (Urho3D::RigidBody *_target)
  17998. {
  17999. return _target->GetCollisionEventMode ();
  18000. }
  18001. DllExport void
  18002. RigidBody_ApplyWorldTransform (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & newWorldPosition, const class Urho3D::Quaternion & newWorldRotation)
  18003. {
  18004. _target->ApplyWorldTransform (newWorldPosition, newWorldRotation);
  18005. }
  18006. DllExport void
  18007. RigidBody_UpdateMass (Urho3D::RigidBody *_target)
  18008. {
  18009. _target->UpdateMass ();
  18010. }
  18011. DllExport void
  18012. RigidBody_UpdateGravity (Urho3D::RigidBody *_target)
  18013. {
  18014. _target->UpdateGravity ();
  18015. }
  18016. DllExport void
  18017. RigidBody_AddConstraint (Urho3D::RigidBody *_target, Urho3D::Constraint * constraint)
  18018. {
  18019. _target->AddConstraint (constraint);
  18020. }
  18021. DllExport void
  18022. RigidBody_RemoveConstraint (Urho3D::RigidBody *_target, Urho3D::Constraint * constraint)
  18023. {
  18024. _target->RemoveConstraint (constraint);
  18025. }
  18026. DllExport void
  18027. RigidBody_ReleaseBody (Urho3D::RigidBody *_target)
  18028. {
  18029. _target->ReleaseBody ();
  18030. }
  18031. DllExport int
  18032. JsonFile_GetType (Urho3D::JSONFile *_target)
  18033. {
  18034. return (_target->GetType ()).Value ();
  18035. }
  18036. DllExport const char *
  18037. JsonFile_GetTypeName (Urho3D::JSONFile *_target)
  18038. {
  18039. return stringdup((_target->GetTypeName ()).CString ());
  18040. }
  18041. DllExport int
  18042. JsonFile_GetTypeStatic ()
  18043. {
  18044. return (JSONFile::GetTypeStatic ()).Value ();
  18045. }
  18046. DllExport const char *
  18047. JsonFile_GetTypeNameStatic ()
  18048. {
  18049. return stringdup((JSONFile::GetTypeNameStatic ()).CString ());
  18050. }
  18051. DllExport void *
  18052. JsonFile_JSONFile (Urho3D::Context * context)
  18053. {
  18054. return WeakPtr<JSONFile>(new JSONFile(context));
  18055. }
  18056. DllExport void
  18057. JsonFile_RegisterObject (Urho3D::Context * context)
  18058. {
  18059. JSONFile::RegisterObject (context);
  18060. }
  18061. DllExport int
  18062. JsonFile_BeginLoad_File (Urho3D::JSONFile *_target, File * source)
  18063. {
  18064. return _target->BeginLoad (*source);
  18065. }
  18066. DllExport int
  18067. JsonFile_BeginLoad_MemoryBuffer (Urho3D::JSONFile *_target, MemoryBuffer * source)
  18068. {
  18069. return _target->BeginLoad (*source);
  18070. }
  18071. DllExport int
  18072. JsonFile_Save_File (Urho3D::JSONFile *_target, File * dest)
  18073. {
  18074. return _target->Save (*dest);
  18075. }
  18076. DllExport int
  18077. JsonFile_Save_MemoryBuffer (Urho3D::JSONFile *_target, MemoryBuffer * dest)
  18078. {
  18079. return _target->Save (*dest);
  18080. }
  18081. DllExport int
  18082. JsonFile_Save0_File (Urho3D::JSONFile *_target, File * dest, const char * indendation)
  18083. {
  18084. return _target->Save (*dest, Urho3D::String(indendation));
  18085. }
  18086. DllExport int
  18087. JsonFile_Save0_MemoryBuffer (Urho3D::JSONFile *_target, MemoryBuffer * dest, const char * indendation)
  18088. {
  18089. return _target->Save (*dest, Urho3D::String(indendation));
  18090. }
  18091. DllExport int
  18092. JsonFile_FromString (Urho3D::JSONFile *_target, const char * source)
  18093. {
  18094. return _target->FromString (Urho3D::String(source));
  18095. }
  18096. DllExport int
  18097. PListFile_GetType (Urho3D::PListFile *_target)
  18098. {
  18099. return (_target->GetType ()).Value ();
  18100. }
  18101. DllExport const char *
  18102. PListFile_GetTypeName (Urho3D::PListFile *_target)
  18103. {
  18104. return stringdup((_target->GetTypeName ()).CString ());
  18105. }
  18106. DllExport int
  18107. PListFile_GetTypeStatic ()
  18108. {
  18109. return (PListFile::GetTypeStatic ()).Value ();
  18110. }
  18111. DllExport const char *
  18112. PListFile_GetTypeNameStatic ()
  18113. {
  18114. return stringdup((PListFile::GetTypeNameStatic ()).CString ());
  18115. }
  18116. DllExport void *
  18117. PListFile_PListFile (Urho3D::Context * context)
  18118. {
  18119. return WeakPtr<PListFile>(new PListFile(context));
  18120. }
  18121. DllExport void
  18122. PListFile_RegisterObject (Urho3D::Context * context)
  18123. {
  18124. PListFile::RegisterObject (context);
  18125. }
  18126. DllExport int
  18127. PListFile_BeginLoad_File (Urho3D::PListFile *_target, File * source)
  18128. {
  18129. return _target->BeginLoad (*source);
  18130. }
  18131. DllExport int
  18132. PListFile_BeginLoad_MemoryBuffer (Urho3D::PListFile *_target, MemoryBuffer * source)
  18133. {
  18134. return _target->BeginLoad (*source);
  18135. }
  18136. DllExport int
  18137. ResourceCache_GetType (Urho3D::ResourceCache *_target)
  18138. {
  18139. return (_target->GetType ()).Value ();
  18140. }
  18141. DllExport const char *
  18142. ResourceCache_GetTypeName (Urho3D::ResourceCache *_target)
  18143. {
  18144. return stringdup((_target->GetTypeName ()).CString ());
  18145. }
  18146. DllExport int
  18147. ResourceCache_GetTypeStatic ()
  18148. {
  18149. return (ResourceCache::GetTypeStatic ()).Value ();
  18150. }
  18151. DllExport const char *
  18152. ResourceCache_GetTypeNameStatic ()
  18153. {
  18154. return stringdup((ResourceCache::GetTypeNameStatic ()).CString ());
  18155. }
  18156. DllExport void *
  18157. ResourceCache_ResourceCache (Urho3D::Context * context)
  18158. {
  18159. return WeakPtr<ResourceCache>(new ResourceCache(context));
  18160. }
  18161. DllExport int
  18162. ResourceCache_AddResourceDir (Urho3D::ResourceCache *_target, const char * pathName, unsigned int priority)
  18163. {
  18164. return _target->AddResourceDir (Urho3D::String(pathName), priority);
  18165. }
  18166. DllExport int
  18167. ResourceCache_AddPackageFile (Urho3D::ResourceCache *_target, Urho3D::PackageFile * package, unsigned int priority)
  18168. {
  18169. return _target->AddPackageFile (package, priority);
  18170. }
  18171. DllExport int
  18172. ResourceCache_AddPackageFile0 (Urho3D::ResourceCache *_target, const char * fileName, unsigned int priority)
  18173. {
  18174. return _target->AddPackageFile (Urho3D::String(fileName), priority);
  18175. }
  18176. DllExport int
  18177. ResourceCache_AddManualResource (Urho3D::ResourceCache *_target, Urho3D::Resource * resource)
  18178. {
  18179. return _target->AddManualResource (resource);
  18180. }
  18181. DllExport void
  18182. ResourceCache_RemoveResourceDir (Urho3D::ResourceCache *_target, const char * pathName)
  18183. {
  18184. _target->RemoveResourceDir (Urho3D::String(pathName));
  18185. }
  18186. DllExport void
  18187. ResourceCache_RemovePackageFile (Urho3D::ResourceCache *_target, Urho3D::PackageFile * package, bool releaseResources, bool forceRelease)
  18188. {
  18189. _target->RemovePackageFile (package, releaseResources, forceRelease);
  18190. }
  18191. DllExport void
  18192. ResourceCache_RemovePackageFile1 (Urho3D::ResourceCache *_target, const char * fileName, bool releaseResources, bool forceRelease)
  18193. {
  18194. _target->RemovePackageFile (Urho3D::String(fileName), releaseResources, forceRelease);
  18195. }
  18196. DllExport void
  18197. ResourceCache_ReleaseResource (Urho3D::ResourceCache *_target, int type, const char * name, bool force)
  18198. {
  18199. _target->ReleaseResource (Urho3D::StringHash(type), Urho3D::String(name), force);
  18200. }
  18201. DllExport void
  18202. ResourceCache_ReleaseResources (Urho3D::ResourceCache *_target, int type, bool force)
  18203. {
  18204. _target->ReleaseResources (Urho3D::StringHash(type), force);
  18205. }
  18206. DllExport void
  18207. ResourceCache_ReleaseResources2 (Urho3D::ResourceCache *_target, int type, const char * partialName, bool force)
  18208. {
  18209. _target->ReleaseResources (Urho3D::StringHash(type), Urho3D::String(partialName), force);
  18210. }
  18211. DllExport void
  18212. ResourceCache_ReleaseResources3 (Urho3D::ResourceCache *_target, const char * partialName, bool force)
  18213. {
  18214. _target->ReleaseResources (Urho3D::String(partialName), force);
  18215. }
  18216. DllExport void
  18217. ResourceCache_ReleaseAllResources (Urho3D::ResourceCache *_target, bool force)
  18218. {
  18219. _target->ReleaseAllResources (force);
  18220. }
  18221. DllExport int
  18222. ResourceCache_ReloadResource (Urho3D::ResourceCache *_target, Urho3D::Resource * resource)
  18223. {
  18224. return _target->ReloadResource (resource);
  18225. }
  18226. DllExport void
  18227. ResourceCache_ReloadResourceWithDependencies (Urho3D::ResourceCache *_target, const char * fileName)
  18228. {
  18229. _target->ReloadResourceWithDependencies (Urho3D::String(fileName));
  18230. }
  18231. DllExport void
  18232. ResourceCache_SetMemoryBudget (Urho3D::ResourceCache *_target, int type, unsigned long long budget)
  18233. {
  18234. _target->SetMemoryBudget (Urho3D::StringHash(type), budget);
  18235. }
  18236. DllExport void
  18237. ResourceCache_SetAutoReloadResources (Urho3D::ResourceCache *_target, bool enable)
  18238. {
  18239. _target->SetAutoReloadResources (enable);
  18240. }
  18241. DllExport void
  18242. ResourceCache_SetReturnFailedResources (Urho3D::ResourceCache *_target, bool enable)
  18243. {
  18244. _target->SetReturnFailedResources (enable);
  18245. }
  18246. DllExport void
  18247. ResourceCache_SetSearchPackagesFirst (Urho3D::ResourceCache *_target, bool value)
  18248. {
  18249. _target->SetSearchPackagesFirst (value);
  18250. }
  18251. DllExport void
  18252. ResourceCache_SetFinishBackgroundResourcesMs (Urho3D::ResourceCache *_target, int ms)
  18253. {
  18254. _target->SetFinishBackgroundResourcesMs (ms);
  18255. }
  18256. DllExport void
  18257. ResourceCache_AddResourceRouter (Urho3D::ResourceCache *_target, Urho3D::ResourceRouter * router, bool addAsFirst)
  18258. {
  18259. _target->AddResourceRouter (router, addAsFirst);
  18260. }
  18261. DllExport void
  18262. ResourceCache_RemoveResourceRouter (Urho3D::ResourceCache *_target, Urho3D::ResourceRouter * router)
  18263. {
  18264. _target->RemoveResourceRouter (router);
  18265. }
  18266. DllExport Urho3D::File *
  18267. ResourceCache_GetFile (Urho3D::ResourceCache *_target, const char * name, bool sendEventOnFailure)
  18268. {
  18269. auto copy = _target->GetFile (Urho3D::String(name), sendEventOnFailure);
  18270. auto plain = copy.Get();
  18271. copy.Detach();
  18272. delete copy;
  18273. return plain;
  18274. }
  18275. DllExport Urho3D::Resource *
  18276. ResourceCache_GetResource (Urho3D::ResourceCache *_target, int type, const char * name, bool sendEventOnFailure)
  18277. {
  18278. return _target->GetResource (Urho3D::StringHash(type), Urho3D::String(name), sendEventOnFailure);
  18279. }
  18280. DllExport Urho3D::Resource *
  18281. ResourceCache_GetTempResource (Urho3D::ResourceCache *_target, int type, const char * name, bool sendEventOnFailure)
  18282. {
  18283. auto copy = _target->GetTempResource (Urho3D::StringHash(type), Urho3D::String(name), sendEventOnFailure);
  18284. auto plain = copy.Get();
  18285. copy.Detach();
  18286. delete copy;
  18287. return plain;
  18288. }
  18289. DllExport int
  18290. ResourceCache_BackgroundLoadResource (Urho3D::ResourceCache *_target, int type, const char * name, bool sendEventOnFailure, Urho3D::Resource * caller)
  18291. {
  18292. return _target->BackgroundLoadResource (Urho3D::StringHash(type), Urho3D::String(name), sendEventOnFailure, caller);
  18293. }
  18294. DllExport unsigned int
  18295. ResourceCache_GetNumBackgroundLoadResources (Urho3D::ResourceCache *_target)
  18296. {
  18297. return _target->GetNumBackgroundLoadResources ();
  18298. }
  18299. DllExport Urho3D::Resource *
  18300. ResourceCache_GetExistingResource (Urho3D::ResourceCache *_target, int type, const char * name)
  18301. {
  18302. return _target->GetExistingResource (Urho3D::StringHash(type), Urho3D::String(name));
  18303. }
  18304. DllExport const Vector<SharedPtr<class Urho3D::PackageFile> > &
  18305. ResourceCache_GetPackageFiles (Urho3D::ResourceCache *_target)
  18306. {
  18307. return _target->GetPackageFiles ();
  18308. }
  18309. DllExport int
  18310. ResourceCache_Exists (Urho3D::ResourceCache *_target, const char * name)
  18311. {
  18312. return _target->Exists (Urho3D::String(name));
  18313. }
  18314. DllExport unsigned long long
  18315. ResourceCache_GetMemoryBudget (Urho3D::ResourceCache *_target, int type)
  18316. {
  18317. return _target->GetMemoryBudget (Urho3D::StringHash(type));
  18318. }
  18319. DllExport unsigned long long
  18320. ResourceCache_GetMemoryUse (Urho3D::ResourceCache *_target, int type)
  18321. {
  18322. return _target->GetMemoryUse (Urho3D::StringHash(type));
  18323. }
  18324. DllExport unsigned long long
  18325. ResourceCache_GetTotalMemoryUse (Urho3D::ResourceCache *_target)
  18326. {
  18327. return _target->GetTotalMemoryUse ();
  18328. }
  18329. DllExport const char *
  18330. ResourceCache_GetResourceFileName (Urho3D::ResourceCache *_target, const char * name)
  18331. {
  18332. return stringdup((_target->GetResourceFileName (Urho3D::String(name))).CString ());
  18333. }
  18334. DllExport int
  18335. ResourceCache_GetAutoReloadResources (Urho3D::ResourceCache *_target)
  18336. {
  18337. return _target->GetAutoReloadResources ();
  18338. }
  18339. DllExport int
  18340. ResourceCache_GetReturnFailedResources (Urho3D::ResourceCache *_target)
  18341. {
  18342. return _target->GetReturnFailedResources ();
  18343. }
  18344. DllExport int
  18345. ResourceCache_GetSearchPackagesFirst (Urho3D::ResourceCache *_target)
  18346. {
  18347. return _target->GetSearchPackagesFirst ();
  18348. }
  18349. DllExport int
  18350. ResourceCache_GetFinishBackgroundResourcesMs (Urho3D::ResourceCache *_target)
  18351. {
  18352. return _target->GetFinishBackgroundResourcesMs ();
  18353. }
  18354. DllExport Urho3D::ResourceRouter *
  18355. ResourceCache_GetResourceRouter (Urho3D::ResourceCache *_target, unsigned int index)
  18356. {
  18357. return _target->GetResourceRouter (index);
  18358. }
  18359. DllExport const char *
  18360. ResourceCache_GetPreferredResourceDir (Urho3D::ResourceCache *_target, const char * path)
  18361. {
  18362. return stringdup((_target->GetPreferredResourceDir (Urho3D::String(path))).CString ());
  18363. }
  18364. DllExport const char *
  18365. ResourceCache_SanitateResourceName (Urho3D::ResourceCache *_target, const char * name)
  18366. {
  18367. return stringdup((_target->SanitateResourceName (Urho3D::String(name))).CString ());
  18368. }
  18369. DllExport const char *
  18370. ResourceCache_SanitateResourceDirName (Urho3D::ResourceCache *_target, const char * name)
  18371. {
  18372. return stringdup((_target->SanitateResourceDirName (Urho3D::String(name))).CString ());
  18373. }
  18374. DllExport void
  18375. ResourceCache_StoreResourceDependency (Urho3D::ResourceCache *_target, Urho3D::Resource * resource, const char * dependency)
  18376. {
  18377. _target->StoreResourceDependency (resource, Urho3D::String(dependency));
  18378. }
  18379. DllExport void
  18380. ResourceCache_ResetDependencies (Urho3D::ResourceCache *_target, Urho3D::Resource * resource)
  18381. {
  18382. _target->ResetDependencies (resource);
  18383. }
  18384. DllExport const char *
  18385. ResourceCache_PrintMemoryUsage (Urho3D::ResourceCache *_target)
  18386. {
  18387. return stringdup((_target->PrintMemoryUsage ()).CString ());
  18388. }
  18389. DllExport int
  18390. LogicComponent_GetType (Urho3D::LogicComponent *_target)
  18391. {
  18392. return (_target->GetType ()).Value ();
  18393. }
  18394. DllExport const char *
  18395. LogicComponent_GetTypeName (Urho3D::LogicComponent *_target)
  18396. {
  18397. return stringdup((_target->GetTypeName ()).CString ());
  18398. }
  18399. DllExport int
  18400. LogicComponent_GetTypeStatic ()
  18401. {
  18402. return (LogicComponent::GetTypeStatic ()).Value ();
  18403. }
  18404. DllExport const char *
  18405. LogicComponent_GetTypeNameStatic ()
  18406. {
  18407. return stringdup((LogicComponent::GetTypeNameStatic ()).CString ());
  18408. }
  18409. DllExport void *
  18410. LogicComponent_LogicComponent (Urho3D::Context * context)
  18411. {
  18412. return WeakPtr<LogicComponent>(new LogicComponent(context));
  18413. }
  18414. DllExport void
  18415. LogicComponent_OnSetEnabled (Urho3D::LogicComponent *_target)
  18416. {
  18417. _target->OnSetEnabled ();
  18418. }
  18419. DllExport void
  18420. LogicComponent_Start (Urho3D::LogicComponent *_target)
  18421. {
  18422. _target->Start ();
  18423. }
  18424. DllExport void
  18425. LogicComponent_DelayedStart (Urho3D::LogicComponent *_target)
  18426. {
  18427. _target->DelayedStart ();
  18428. }
  18429. DllExport void
  18430. LogicComponent_Stop (Urho3D::LogicComponent *_target)
  18431. {
  18432. _target->Stop ();
  18433. }
  18434. DllExport void
  18435. LogicComponent_Update (Urho3D::LogicComponent *_target, float timeStep)
  18436. {
  18437. _target->Update (timeStep);
  18438. }
  18439. DllExport void
  18440. LogicComponent_PostUpdate (Urho3D::LogicComponent *_target, float timeStep)
  18441. {
  18442. _target->PostUpdate (timeStep);
  18443. }
  18444. DllExport void
  18445. LogicComponent_FixedUpdate (Urho3D::LogicComponent *_target, float timeStep)
  18446. {
  18447. _target->FixedUpdate (timeStep);
  18448. }
  18449. DllExport void
  18450. LogicComponent_FixedPostUpdate (Urho3D::LogicComponent *_target, float timeStep)
  18451. {
  18452. _target->FixedPostUpdate (timeStep);
  18453. }
  18454. DllExport void
  18455. LogicComponent_SetUpdateEventMask (Urho3D::LogicComponent *_target, unsigned char mask)
  18456. {
  18457. _target->SetUpdateEventMask (mask);
  18458. }
  18459. DllExport unsigned char
  18460. LogicComponent_GetUpdateEventMask (Urho3D::LogicComponent *_target)
  18461. {
  18462. return _target->GetUpdateEventMask ();
  18463. }
  18464. DllExport int
  18465. LogicComponent_IsDelayedStartCalled (Urho3D::LogicComponent *_target)
  18466. {
  18467. return _target->IsDelayedStartCalled ();
  18468. }
  18469. DllExport int
  18470. ObjectAnimation_GetType (Urho3D::ObjectAnimation *_target)
  18471. {
  18472. return (_target->GetType ()).Value ();
  18473. }
  18474. DllExport const char *
  18475. ObjectAnimation_GetTypeName (Urho3D::ObjectAnimation *_target)
  18476. {
  18477. return stringdup((_target->GetTypeName ()).CString ());
  18478. }
  18479. DllExport int
  18480. ObjectAnimation_GetTypeStatic ()
  18481. {
  18482. return (ObjectAnimation::GetTypeStatic ()).Value ();
  18483. }
  18484. DllExport const char *
  18485. ObjectAnimation_GetTypeNameStatic ()
  18486. {
  18487. return stringdup((ObjectAnimation::GetTypeNameStatic ()).CString ());
  18488. }
  18489. DllExport void *
  18490. ObjectAnimation_ObjectAnimation (Urho3D::Context * context)
  18491. {
  18492. return WeakPtr<ObjectAnimation>(new ObjectAnimation(context));
  18493. }
  18494. DllExport void
  18495. ObjectAnimation_RegisterObject (Urho3D::Context * context)
  18496. {
  18497. ObjectAnimation::RegisterObject (context);
  18498. }
  18499. DllExport int
  18500. ObjectAnimation_BeginLoad_File (Urho3D::ObjectAnimation *_target, File * source)
  18501. {
  18502. return _target->BeginLoad (*source);
  18503. }
  18504. DllExport int
  18505. ObjectAnimation_BeginLoad_MemoryBuffer (Urho3D::ObjectAnimation *_target, MemoryBuffer * source)
  18506. {
  18507. return _target->BeginLoad (*source);
  18508. }
  18509. DllExport int
  18510. ObjectAnimation_Save_File (Urho3D::ObjectAnimation *_target, File * dest)
  18511. {
  18512. return _target->Save (*dest);
  18513. }
  18514. DllExport int
  18515. ObjectAnimation_Save_MemoryBuffer (Urho3D::ObjectAnimation *_target, MemoryBuffer * dest)
  18516. {
  18517. return _target->Save (*dest);
  18518. }
  18519. DllExport int
  18520. ObjectAnimation_LoadXML (Urho3D::ObjectAnimation *_target, const class Urho3D::XMLElement & source)
  18521. {
  18522. return _target->LoadXML (source);
  18523. }
  18524. DllExport int
  18525. ObjectAnimation_SaveXML (Urho3D::ObjectAnimation *_target, Urho3D::XMLElement & dest)
  18526. {
  18527. return _target->SaveXML (dest);
  18528. }
  18529. DllExport void
  18530. ObjectAnimation_AddAttributeAnimation (Urho3D::ObjectAnimation *_target, const char * name, Urho3D::ValueAnimation * attributeAnimation, enum Urho3D::WrapMode wrapMode, float speed)
  18531. {
  18532. _target->AddAttributeAnimation (Urho3D::String(name), attributeAnimation, wrapMode, speed);
  18533. }
  18534. DllExport void
  18535. ObjectAnimation_RemoveAttributeAnimation (Urho3D::ObjectAnimation *_target, const char * name)
  18536. {
  18537. _target->RemoveAttributeAnimation (Urho3D::String(name));
  18538. }
  18539. DllExport void
  18540. ObjectAnimation_RemoveAttributeAnimation0 (Urho3D::ObjectAnimation *_target, Urho3D::ValueAnimation * attributeAnimation)
  18541. {
  18542. _target->RemoveAttributeAnimation (attributeAnimation);
  18543. }
  18544. DllExport Urho3D::ValueAnimation *
  18545. ObjectAnimation_GetAttributeAnimation (Urho3D::ObjectAnimation *_target, const char * name)
  18546. {
  18547. return _target->GetAttributeAnimation (Urho3D::String(name));
  18548. }
  18549. DllExport enum Urho3D::WrapMode
  18550. ObjectAnimation_GetAttributeAnimationWrapMode (Urho3D::ObjectAnimation *_target, const char * name)
  18551. {
  18552. return _target->GetAttributeAnimationWrapMode (Urho3D::String(name));
  18553. }
  18554. DllExport float
  18555. ObjectAnimation_GetAttributeAnimationSpeed (Urho3D::ObjectAnimation *_target, const char * name)
  18556. {
  18557. return _target->GetAttributeAnimationSpeed (Urho3D::String(name));
  18558. }
  18559. DllExport Urho3D::ValueAnimationInfo *
  18560. ObjectAnimation_GetAttributeAnimationInfo (Urho3D::ObjectAnimation *_target, const char * name)
  18561. {
  18562. return _target->GetAttributeAnimationInfo (Urho3D::String(name));
  18563. }
  18564. DllExport int
  18565. Scene_GetType (Urho3D::Scene *_target)
  18566. {
  18567. return (_target->GetType ()).Value ();
  18568. }
  18569. DllExport const char *
  18570. Scene_GetTypeName (Urho3D::Scene *_target)
  18571. {
  18572. return stringdup((_target->GetTypeName ()).CString ());
  18573. }
  18574. DllExport int
  18575. Scene_GetTypeStatic ()
  18576. {
  18577. return (Scene::GetTypeStatic ()).Value ();
  18578. }
  18579. DllExport const char *
  18580. Scene_GetTypeNameStatic ()
  18581. {
  18582. return stringdup((Scene::GetTypeNameStatic ()).CString ());
  18583. }
  18584. DllExport void *
  18585. Scene_Scene (Urho3D::Context * context)
  18586. {
  18587. return WeakPtr<Scene>(new Scene(context));
  18588. }
  18589. DllExport void
  18590. Scene_RegisterObject (Urho3D::Context * context)
  18591. {
  18592. Scene::RegisterObject (context);
  18593. }
  18594. DllExport int
  18595. Scene_Load_File (Urho3D::Scene *_target, File * source, bool setInstanceDefault)
  18596. {
  18597. return _target->Load (*source, setInstanceDefault);
  18598. }
  18599. DllExport int
  18600. Scene_Load_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * source, bool setInstanceDefault)
  18601. {
  18602. return _target->Load (*source, setInstanceDefault);
  18603. }
  18604. DllExport int
  18605. Scene_Save_File (Urho3D::Scene *_target, File * dest)
  18606. {
  18607. return _target->Save (*dest);
  18608. }
  18609. DllExport int
  18610. Scene_Save_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * dest)
  18611. {
  18612. return _target->Save (*dest);
  18613. }
  18614. DllExport int
  18615. Scene_LoadXML (Urho3D::Scene *_target, const class Urho3D::XMLElement & source, bool setInstanceDefault)
  18616. {
  18617. return _target->LoadXML (source, setInstanceDefault);
  18618. }
  18619. DllExport void
  18620. Scene_MarkNetworkUpdate (Urho3D::Scene *_target)
  18621. {
  18622. _target->MarkNetworkUpdate ();
  18623. }
  18624. DllExport void
  18625. Scene_AddReplicationState (Urho3D::Scene *_target, Urho3D::NodeReplicationState * state)
  18626. {
  18627. _target->AddReplicationState (state);
  18628. }
  18629. DllExport int
  18630. Scene_LoadXML0_File (Urho3D::Scene *_target, File * source)
  18631. {
  18632. return _target->LoadXML (*source);
  18633. }
  18634. DllExport int
  18635. Scene_LoadXML0_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * source)
  18636. {
  18637. return _target->LoadXML (*source);
  18638. }
  18639. DllExport int
  18640. Scene_LoadJSON_File (Urho3D::Scene *_target, File * source)
  18641. {
  18642. return _target->LoadJSON (*source);
  18643. }
  18644. DllExport int
  18645. Scene_LoadJSON_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * source)
  18646. {
  18647. return _target->LoadJSON (*source);
  18648. }
  18649. DllExport int
  18650. Scene_SaveXML_File (Urho3D::Scene *_target, File * dest, const char * indentation)
  18651. {
  18652. return _target->SaveXML (*dest, Urho3D::String(indentation));
  18653. }
  18654. DllExport int
  18655. Scene_SaveXML_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * dest, const char * indentation)
  18656. {
  18657. return _target->SaveXML (*dest, Urho3D::String(indentation));
  18658. }
  18659. DllExport int
  18660. Scene_SaveJSON_File (Urho3D::Scene *_target, File * dest, const char * indentation)
  18661. {
  18662. return _target->SaveJSON (*dest, Urho3D::String(indentation));
  18663. }
  18664. DllExport int
  18665. Scene_SaveJSON_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * dest, const char * indentation)
  18666. {
  18667. return _target->SaveJSON (*dest, Urho3D::String(indentation));
  18668. }
  18669. DllExport int
  18670. Scene_LoadAsync (Urho3D::Scene *_target, Urho3D::File * file, enum Urho3D::LoadMode mode)
  18671. {
  18672. return _target->LoadAsync (file, mode);
  18673. }
  18674. DllExport int
  18675. Scene_LoadAsyncXML (Urho3D::Scene *_target, Urho3D::File * file, enum Urho3D::LoadMode mode)
  18676. {
  18677. return _target->LoadAsyncXML (file, mode);
  18678. }
  18679. DllExport int
  18680. Scene_LoadAsyncJSON (Urho3D::Scene *_target, Urho3D::File * file, enum Urho3D::LoadMode mode)
  18681. {
  18682. return _target->LoadAsyncJSON (file, mode);
  18683. }
  18684. DllExport void
  18685. Scene_StopAsyncLoading (Urho3D::Scene *_target)
  18686. {
  18687. _target->StopAsyncLoading ();
  18688. }
  18689. DllExport Urho3D::Node *
  18690. Scene_Instantiate_File (Urho3D::Scene *_target, File * source, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, enum Urho3D::CreateMode mode)
  18691. {
  18692. return _target->Instantiate (*source, position, rotation, mode);
  18693. }
  18694. DllExport Urho3D::Node *
  18695. Scene_Instantiate_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * source, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, enum Urho3D::CreateMode mode)
  18696. {
  18697. return _target->Instantiate (*source, position, rotation, mode);
  18698. }
  18699. DllExport Urho3D::Node *
  18700. Scene_InstantiateXML (Urho3D::Scene *_target, const class Urho3D::XMLElement & source, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, enum Urho3D::CreateMode mode)
  18701. {
  18702. return _target->InstantiateXML (source, position, rotation, mode);
  18703. }
  18704. DllExport Urho3D::Node *
  18705. Scene_InstantiateXML1_File (Urho3D::Scene *_target, File * source, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, enum Urho3D::CreateMode mode)
  18706. {
  18707. return _target->InstantiateXML (*source, position, rotation, mode);
  18708. }
  18709. DllExport Urho3D::Node *
  18710. Scene_InstantiateXML1_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * source, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, enum Urho3D::CreateMode mode)
  18711. {
  18712. return _target->InstantiateXML (*source, position, rotation, mode);
  18713. }
  18714. DllExport Urho3D::Node *
  18715. Scene_InstantiateJSON_File (Urho3D::Scene *_target, File * source, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, enum Urho3D::CreateMode mode)
  18716. {
  18717. return _target->InstantiateJSON (*source, position, rotation, mode);
  18718. }
  18719. DllExport Urho3D::Node *
  18720. Scene_InstantiateJSON_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * source, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, enum Urho3D::CreateMode mode)
  18721. {
  18722. return _target->InstantiateJSON (*source, position, rotation, mode);
  18723. }
  18724. DllExport void
  18725. Scene_Clear (Urho3D::Scene *_target, bool clearReplicated, bool clearLocal)
  18726. {
  18727. _target->Clear (clearReplicated, clearLocal);
  18728. }
  18729. DllExport void
  18730. Scene_SetUpdateEnabled (Urho3D::Scene *_target, bool enable)
  18731. {
  18732. _target->SetUpdateEnabled (enable);
  18733. }
  18734. DllExport void
  18735. Scene_SetTimeScale (Urho3D::Scene *_target, float scale)
  18736. {
  18737. _target->SetTimeScale (scale);
  18738. }
  18739. DllExport void
  18740. Scene_SetElapsedTime (Urho3D::Scene *_target, float time)
  18741. {
  18742. _target->SetElapsedTime (time);
  18743. }
  18744. DllExport void
  18745. Scene_SetSmoothingConstant (Urho3D::Scene *_target, float constant)
  18746. {
  18747. _target->SetSmoothingConstant (constant);
  18748. }
  18749. DllExport void
  18750. Scene_SetSnapThreshold (Urho3D::Scene *_target, float threshold)
  18751. {
  18752. _target->SetSnapThreshold (threshold);
  18753. }
  18754. DllExport void
  18755. Scene_SetAsyncLoadingMs (Urho3D::Scene *_target, int ms)
  18756. {
  18757. _target->SetAsyncLoadingMs (ms);
  18758. }
  18759. DllExport void
  18760. Scene_AddRequiredPackageFile (Urho3D::Scene *_target, Urho3D::PackageFile * package)
  18761. {
  18762. _target->AddRequiredPackageFile (package);
  18763. }
  18764. DllExport void
  18765. Scene_ClearRequiredPackageFiles (Urho3D::Scene *_target)
  18766. {
  18767. _target->ClearRequiredPackageFiles ();
  18768. }
  18769. DllExport void
  18770. Scene_RegisterVar (Urho3D::Scene *_target, const char * name)
  18771. {
  18772. _target->RegisterVar (Urho3D::String(name));
  18773. }
  18774. DllExport void
  18775. Scene_UnregisterVar (Urho3D::Scene *_target, const char * name)
  18776. {
  18777. _target->UnregisterVar (Urho3D::String(name));
  18778. }
  18779. DllExport void
  18780. Scene_UnregisterAllVars (Urho3D::Scene *_target)
  18781. {
  18782. _target->UnregisterAllVars ();
  18783. }
  18784. DllExport Urho3D::Node *
  18785. Scene_GetNode (Urho3D::Scene *_target, unsigned int id)
  18786. {
  18787. return _target->GetNode (id);
  18788. }
  18789. DllExport Urho3D::Component *
  18790. Scene_GetComponent (Urho3D::Scene *_target, unsigned int id)
  18791. {
  18792. return _target->GetComponent (id);
  18793. }
  18794. DllExport int
  18795. Scene_IsUpdateEnabled (Urho3D::Scene *_target)
  18796. {
  18797. return _target->IsUpdateEnabled ();
  18798. }
  18799. DllExport int
  18800. Scene_IsAsyncLoading (Urho3D::Scene *_target)
  18801. {
  18802. return _target->IsAsyncLoading ();
  18803. }
  18804. DllExport float
  18805. Scene_GetAsyncProgress (Urho3D::Scene *_target)
  18806. {
  18807. return _target->GetAsyncProgress ();
  18808. }
  18809. DllExport enum Urho3D::LoadMode
  18810. Scene_GetAsyncLoadMode (Urho3D::Scene *_target)
  18811. {
  18812. return _target->GetAsyncLoadMode ();
  18813. }
  18814. DllExport const char *
  18815. Scene_GetFileName (Urho3D::Scene *_target)
  18816. {
  18817. return stringdup((_target->GetFileName ()).CString ());
  18818. }
  18819. DllExport unsigned int
  18820. Scene_GetChecksum (Urho3D::Scene *_target)
  18821. {
  18822. return _target->GetChecksum ();
  18823. }
  18824. DllExport float
  18825. Scene_GetTimeScale (Urho3D::Scene *_target)
  18826. {
  18827. return _target->GetTimeScale ();
  18828. }
  18829. DllExport float
  18830. Scene_GetElapsedTime (Urho3D::Scene *_target)
  18831. {
  18832. return _target->GetElapsedTime ();
  18833. }
  18834. DllExport float
  18835. Scene_GetSmoothingConstant (Urho3D::Scene *_target)
  18836. {
  18837. return _target->GetSmoothingConstant ();
  18838. }
  18839. DllExport float
  18840. Scene_GetSnapThreshold (Urho3D::Scene *_target)
  18841. {
  18842. return _target->GetSnapThreshold ();
  18843. }
  18844. DllExport int
  18845. Scene_GetAsyncLoadingMs (Urho3D::Scene *_target)
  18846. {
  18847. return _target->GetAsyncLoadingMs ();
  18848. }
  18849. DllExport const Vector<SharedPtr<class Urho3D::PackageFile> > &
  18850. Scene_GetRequiredPackageFiles (Urho3D::Scene *_target)
  18851. {
  18852. return _target->GetRequiredPackageFiles ();
  18853. }
  18854. DllExport const char *
  18855. Scene_GetVarName (Urho3D::Scene *_target, int hash)
  18856. {
  18857. return stringdup((_target->GetVarName (Urho3D::StringHash(hash))).CString ());
  18858. }
  18859. DllExport void
  18860. Scene_Update (Urho3D::Scene *_target, float timeStep)
  18861. {
  18862. _target->Update (timeStep);
  18863. }
  18864. DllExport void
  18865. Scene_BeginThreadedUpdate (Urho3D::Scene *_target)
  18866. {
  18867. _target->BeginThreadedUpdate ();
  18868. }
  18869. DllExport void
  18870. Scene_EndThreadedUpdate (Urho3D::Scene *_target)
  18871. {
  18872. _target->EndThreadedUpdate ();
  18873. }
  18874. DllExport void
  18875. Scene_DelayedMarkedDirty (Urho3D::Scene *_target, Urho3D::Component * component)
  18876. {
  18877. _target->DelayedMarkedDirty (component);
  18878. }
  18879. DllExport int
  18880. Scene_IsThreadedUpdate (Urho3D::Scene *_target)
  18881. {
  18882. return _target->IsThreadedUpdate ();
  18883. }
  18884. DllExport unsigned int
  18885. Scene_GetFreeNodeID (Urho3D::Scene *_target, enum Urho3D::CreateMode mode)
  18886. {
  18887. return _target->GetFreeNodeID (mode);
  18888. }
  18889. DllExport unsigned int
  18890. Scene_GetFreeComponentID (Urho3D::Scene *_target, enum Urho3D::CreateMode mode)
  18891. {
  18892. return _target->GetFreeComponentID (mode);
  18893. }
  18894. DllExport void
  18895. Scene_NodeTagAdded (Urho3D::Scene *_target, Urho3D::Node * node, const char * tag)
  18896. {
  18897. _target->NodeTagAdded (node, Urho3D::String(tag));
  18898. }
  18899. DllExport void
  18900. Scene_NodeTagRemoved (Urho3D::Scene *_target, Urho3D::Node * node, const char * tag)
  18901. {
  18902. _target->NodeTagRemoved (node, Urho3D::String(tag));
  18903. }
  18904. DllExport void
  18905. Scene_SetVarNamesAttr (Urho3D::Scene *_target, const char * value)
  18906. {
  18907. _target->SetVarNamesAttr (Urho3D::String(value));
  18908. }
  18909. DllExport const char *
  18910. Scene_GetVarNamesAttr (Urho3D::Scene *_target)
  18911. {
  18912. return stringdup((_target->GetVarNamesAttr ()).CString ());
  18913. }
  18914. DllExport void
  18915. Scene_PrepareNetworkUpdate (Urho3D::Scene *_target)
  18916. {
  18917. _target->PrepareNetworkUpdate ();
  18918. }
  18919. DllExport void
  18920. Scene_CleanupConnection (Urho3D::Scene *_target, Urho3D::Connection * connection)
  18921. {
  18922. _target->CleanupConnection (connection);
  18923. }
  18924. DllExport void
  18925. Scene_MarkNetworkUpdate2 (Urho3D::Scene *_target, Urho3D::Node * node)
  18926. {
  18927. _target->MarkNetworkUpdate (node);
  18928. }
  18929. DllExport void
  18930. Scene_MarkNetworkUpdate3 (Urho3D::Scene *_target, Urho3D::Component * component)
  18931. {
  18932. _target->MarkNetworkUpdate (component);
  18933. }
  18934. DllExport void
  18935. Scene_MarkReplicationDirty (Urho3D::Scene *_target, Urho3D::Node * node)
  18936. {
  18937. _target->MarkReplicationDirty (node);
  18938. }
  18939. DllExport int
  18940. SmoothedTransform_GetType (Urho3D::SmoothedTransform *_target)
  18941. {
  18942. return (_target->GetType ()).Value ();
  18943. }
  18944. DllExport const char *
  18945. SmoothedTransform_GetTypeName (Urho3D::SmoothedTransform *_target)
  18946. {
  18947. return stringdup((_target->GetTypeName ()).CString ());
  18948. }
  18949. DllExport int
  18950. SmoothedTransform_GetTypeStatic ()
  18951. {
  18952. return (SmoothedTransform::GetTypeStatic ()).Value ();
  18953. }
  18954. DllExport const char *
  18955. SmoothedTransform_GetTypeNameStatic ()
  18956. {
  18957. return stringdup((SmoothedTransform::GetTypeNameStatic ()).CString ());
  18958. }
  18959. DllExport void *
  18960. SmoothedTransform_SmoothedTransform (Urho3D::Context * context)
  18961. {
  18962. return WeakPtr<SmoothedTransform>(new SmoothedTransform(context));
  18963. }
  18964. DllExport void
  18965. SmoothedTransform_RegisterObject (Urho3D::Context * context)
  18966. {
  18967. SmoothedTransform::RegisterObject (context);
  18968. }
  18969. DllExport void
  18970. SmoothedTransform_Update (Urho3D::SmoothedTransform *_target, float constant, float squaredSnapThreshold)
  18971. {
  18972. _target->Update (constant, squaredSnapThreshold);
  18973. }
  18974. DllExport void
  18975. SmoothedTransform_SetTargetPosition (Urho3D::SmoothedTransform *_target, const class Urho3D::Vector3 & position)
  18976. {
  18977. _target->SetTargetPosition (position);
  18978. }
  18979. DllExport void
  18980. SmoothedTransform_SetTargetRotation (Urho3D::SmoothedTransform *_target, const class Urho3D::Quaternion & rotation)
  18981. {
  18982. _target->SetTargetRotation (rotation);
  18983. }
  18984. DllExport void
  18985. SmoothedTransform_SetTargetWorldPosition (Urho3D::SmoothedTransform *_target, const class Urho3D::Vector3 & position)
  18986. {
  18987. _target->SetTargetWorldPosition (position);
  18988. }
  18989. DllExport void
  18990. SmoothedTransform_SetTargetWorldRotation (Urho3D::SmoothedTransform *_target, const class Urho3D::Quaternion & rotation)
  18991. {
  18992. _target->SetTargetWorldRotation (rotation);
  18993. }
  18994. DllExport Interop::Vector3
  18995. SmoothedTransform_GetTargetPosition (Urho3D::SmoothedTransform *_target)
  18996. {
  18997. return *((Interop::Vector3 *) &(_target->GetTargetPosition ()));
  18998. }
  18999. DllExport Interop::Quaternion
  19000. SmoothedTransform_GetTargetRotation (Urho3D::SmoothedTransform *_target)
  19001. {
  19002. return *((Interop::Quaternion *) &(_target->GetTargetRotation ()));
  19003. }
  19004. DllExport Interop::Vector3
  19005. SmoothedTransform_GetTargetWorldPosition (Urho3D::SmoothedTransform *_target)
  19006. {
  19007. return *((Interop::Vector3 *) &(_target->GetTargetWorldPosition ()));
  19008. }
  19009. DllExport Interop::Quaternion
  19010. SmoothedTransform_GetTargetWorldRotation (Urho3D::SmoothedTransform *_target)
  19011. {
  19012. return *((Interop::Quaternion *) &(_target->GetTargetWorldRotation ()));
  19013. }
  19014. DllExport int
  19015. SmoothedTransform_IsInProgress (Urho3D::SmoothedTransform *_target)
  19016. {
  19017. return _target->IsInProgress ();
  19018. }
  19019. DllExport int
  19020. SplinePath_GetType (Urho3D::SplinePath *_target)
  19021. {
  19022. return (_target->GetType ()).Value ();
  19023. }
  19024. DllExport const char *
  19025. SplinePath_GetTypeName (Urho3D::SplinePath *_target)
  19026. {
  19027. return stringdup((_target->GetTypeName ()).CString ());
  19028. }
  19029. DllExport int
  19030. SplinePath_GetTypeStatic ()
  19031. {
  19032. return (SplinePath::GetTypeStatic ()).Value ();
  19033. }
  19034. DllExport const char *
  19035. SplinePath_GetTypeNameStatic ()
  19036. {
  19037. return stringdup((SplinePath::GetTypeNameStatic ()).CString ());
  19038. }
  19039. DllExport void *
  19040. SplinePath_SplinePath (Urho3D::Context * context)
  19041. {
  19042. return WeakPtr<SplinePath>(new SplinePath(context));
  19043. }
  19044. DllExport void
  19045. SplinePath_RegisterObject (Urho3D::Context * context)
  19046. {
  19047. SplinePath::RegisterObject (context);
  19048. }
  19049. DllExport void
  19050. SplinePath_ApplyAttributes (Urho3D::SplinePath *_target)
  19051. {
  19052. _target->ApplyAttributes ();
  19053. }
  19054. DllExport void
  19055. SplinePath_DrawDebugGeometry (Urho3D::SplinePath *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  19056. {
  19057. _target->DrawDebugGeometry (debug, depthTest);
  19058. }
  19059. DllExport void
  19060. SplinePath_AddControlPoint (Urho3D::SplinePath *_target, Urho3D::Node * point, unsigned int index)
  19061. {
  19062. _target->AddControlPoint (point, index);
  19063. }
  19064. DllExport void
  19065. SplinePath_RemoveControlPoint (Urho3D::SplinePath *_target, Urho3D::Node * point)
  19066. {
  19067. _target->RemoveControlPoint (point);
  19068. }
  19069. DllExport void
  19070. SplinePath_ClearControlPoints (Urho3D::SplinePath *_target)
  19071. {
  19072. _target->ClearControlPoints ();
  19073. }
  19074. DllExport void
  19075. SplinePath_SetInterpolationMode (Urho3D::SplinePath *_target, enum Urho3D::InterpolationMode interpolationMode)
  19076. {
  19077. _target->SetInterpolationMode (interpolationMode);
  19078. }
  19079. DllExport void
  19080. SplinePath_SetSpeed (Urho3D::SplinePath *_target, float speed)
  19081. {
  19082. _target->SetSpeed (speed);
  19083. }
  19084. DllExport void
  19085. SplinePath_SetPosition (Urho3D::SplinePath *_target, float factor)
  19086. {
  19087. _target->SetPosition (factor);
  19088. }
  19089. DllExport void
  19090. SplinePath_SetControlledNode (Urho3D::SplinePath *_target, Urho3D::Node * controlled)
  19091. {
  19092. _target->SetControlledNode (controlled);
  19093. }
  19094. DllExport enum Urho3D::InterpolationMode
  19095. SplinePath_GetInterpolationMode (Urho3D::SplinePath *_target)
  19096. {
  19097. return _target->GetInterpolationMode ();
  19098. }
  19099. DllExport float
  19100. SplinePath_GetSpeed (Urho3D::SplinePath *_target)
  19101. {
  19102. return _target->GetSpeed ();
  19103. }
  19104. DllExport float
  19105. SplinePath_GetLength (Urho3D::SplinePath *_target)
  19106. {
  19107. return _target->GetLength ();
  19108. }
  19109. DllExport Interop::Vector3
  19110. SplinePath_GetPosition (Urho3D::SplinePath *_target)
  19111. {
  19112. return *((Interop::Vector3 *) &(_target->GetPosition ()));
  19113. }
  19114. DllExport Urho3D::Node *
  19115. SplinePath_GetControlledNode (Urho3D::SplinePath *_target)
  19116. {
  19117. return _target->GetControlledNode ();
  19118. }
  19119. DllExport Interop::Vector3
  19120. SplinePath_GetPoint (Urho3D::SplinePath *_target, float factor)
  19121. {
  19122. return *((Interop::Vector3 *) &(_target->GetPoint (factor)));
  19123. }
  19124. DllExport void
  19125. SplinePath_Move (Urho3D::SplinePath *_target, float timeStep)
  19126. {
  19127. _target->Move (timeStep);
  19128. }
  19129. DllExport void
  19130. SplinePath_Reset (Urho3D::SplinePath *_target)
  19131. {
  19132. _target->Reset ();
  19133. }
  19134. DllExport int
  19135. SplinePath_IsFinished (Urho3D::SplinePath *_target)
  19136. {
  19137. return _target->IsFinished ();
  19138. }
  19139. DllExport void
  19140. SplinePath_SetControlledIdAttr (Urho3D::SplinePath *_target, unsigned int value)
  19141. {
  19142. _target->SetControlledIdAttr (value);
  19143. }
  19144. DllExport unsigned int
  19145. SplinePath_GetControlledIdAttr (Urho3D::SplinePath *_target)
  19146. {
  19147. return _target->GetControlledIdAttr ();
  19148. }
  19149. DllExport void *
  19150. UnknownComponent_UnknownComponent (Urho3D::Context * context)
  19151. {
  19152. return WeakPtr<UnknownComponent>(new UnknownComponent(context));
  19153. }
  19154. DllExport void
  19155. UnknownComponent_RegisterObject (Urho3D::Context * context)
  19156. {
  19157. UnknownComponent::RegisterObject (context);
  19158. }
  19159. DllExport int
  19160. UnknownComponent_GetType (Urho3D::UnknownComponent *_target)
  19161. {
  19162. return (_target->GetType ()).Value ();
  19163. }
  19164. DllExport const char *
  19165. UnknownComponent_GetTypeName (Urho3D::UnknownComponent *_target)
  19166. {
  19167. return stringdup((_target->GetTypeName ()).CString ());
  19168. }
  19169. DllExport int
  19170. UnknownComponent_Load_File (Urho3D::UnknownComponent *_target, File * source, bool setInstanceDefault)
  19171. {
  19172. return _target->Load (*source, setInstanceDefault);
  19173. }
  19174. DllExport int
  19175. UnknownComponent_Load_MemoryBuffer (Urho3D::UnknownComponent *_target, MemoryBuffer * source, bool setInstanceDefault)
  19176. {
  19177. return _target->Load (*source, setInstanceDefault);
  19178. }
  19179. DllExport int
  19180. UnknownComponent_LoadXML (Urho3D::UnknownComponent *_target, const class Urho3D::XMLElement & source, bool setInstanceDefault)
  19181. {
  19182. return _target->LoadXML (source, setInstanceDefault);
  19183. }
  19184. DllExport int
  19185. UnknownComponent_Save_File (Urho3D::UnknownComponent *_target, File * dest)
  19186. {
  19187. return _target->Save (*dest);
  19188. }
  19189. DllExport int
  19190. UnknownComponent_Save_MemoryBuffer (Urho3D::UnknownComponent *_target, MemoryBuffer * dest)
  19191. {
  19192. return _target->Save (*dest);
  19193. }
  19194. DllExport int
  19195. UnknownComponent_SaveXML (Urho3D::UnknownComponent *_target, Urho3D::XMLElement & dest)
  19196. {
  19197. return _target->SaveXML (dest);
  19198. }
  19199. DllExport void
  19200. UnknownComponent_SetTypeName (Urho3D::UnknownComponent *_target, const char * typeName)
  19201. {
  19202. _target->SetTypeName (Urho3D::String(typeName));
  19203. }
  19204. DllExport void
  19205. UnknownComponent_SetType (Urho3D::UnknownComponent *_target, int typeHash)
  19206. {
  19207. _target->SetType (Urho3D::StringHash(typeHash));
  19208. }
  19209. DllExport int
  19210. UnknownComponent_GetUseXML (Urho3D::UnknownComponent *_target)
  19211. {
  19212. return _target->GetUseXML ();
  19213. }
  19214. DllExport int
  19215. UnknownComponent_GetTypeStatic ()
  19216. {
  19217. return (UnknownComponent::GetTypeStatic ()).Value ();
  19218. }
  19219. DllExport const char *
  19220. UnknownComponent_GetTypeNameStatic ()
  19221. {
  19222. return stringdup((UnknownComponent::GetTypeNameStatic ()).CString ());
  19223. }
  19224. DllExport int
  19225. ValueAnimation_GetType (Urho3D::ValueAnimation *_target)
  19226. {
  19227. return (_target->GetType ()).Value ();
  19228. }
  19229. DllExport const char *
  19230. ValueAnimation_GetTypeName (Urho3D::ValueAnimation *_target)
  19231. {
  19232. return stringdup((_target->GetTypeName ()).CString ());
  19233. }
  19234. DllExport int
  19235. ValueAnimation_GetTypeStatic ()
  19236. {
  19237. return (ValueAnimation::GetTypeStatic ()).Value ();
  19238. }
  19239. DllExport const char *
  19240. ValueAnimation_GetTypeNameStatic ()
  19241. {
  19242. return stringdup((ValueAnimation::GetTypeNameStatic ()).CString ());
  19243. }
  19244. DllExport void *
  19245. ValueAnimation_ValueAnimation (Urho3D::Context * context)
  19246. {
  19247. return WeakPtr<ValueAnimation>(new ValueAnimation(context));
  19248. }
  19249. DllExport void
  19250. ValueAnimation_RegisterObject (Urho3D::Context * context)
  19251. {
  19252. ValueAnimation::RegisterObject (context);
  19253. }
  19254. DllExport int
  19255. ValueAnimation_BeginLoad_File (Urho3D::ValueAnimation *_target, File * source)
  19256. {
  19257. return _target->BeginLoad (*source);
  19258. }
  19259. DllExport int
  19260. ValueAnimation_BeginLoad_MemoryBuffer (Urho3D::ValueAnimation *_target, MemoryBuffer * source)
  19261. {
  19262. return _target->BeginLoad (*source);
  19263. }
  19264. DllExport int
  19265. ValueAnimation_Save_File (Urho3D::ValueAnimation *_target, File * dest)
  19266. {
  19267. return _target->Save (*dest);
  19268. }
  19269. DllExport int
  19270. ValueAnimation_Save_MemoryBuffer (Urho3D::ValueAnimation *_target, MemoryBuffer * dest)
  19271. {
  19272. return _target->Save (*dest);
  19273. }
  19274. DllExport int
  19275. ValueAnimation_LoadXML (Urho3D::ValueAnimation *_target, const class Urho3D::XMLElement & source)
  19276. {
  19277. return _target->LoadXML (source);
  19278. }
  19279. DllExport int
  19280. ValueAnimation_SaveXML (Urho3D::ValueAnimation *_target, Urho3D::XMLElement & dest)
  19281. {
  19282. return _target->SaveXML (dest);
  19283. }
  19284. DllExport void
  19285. ValueAnimation_SetOwner (Urho3D::ValueAnimation *_target, void * owner)
  19286. {
  19287. _target->SetOwner (owner);
  19288. }
  19289. DllExport void
  19290. ValueAnimation_SetInterpolationMethod (Urho3D::ValueAnimation *_target, enum Urho3D::InterpMethod method)
  19291. {
  19292. _target->SetInterpolationMethod (method);
  19293. }
  19294. DllExport void
  19295. ValueAnimation_SetSplineTension (Urho3D::ValueAnimation *_target, float tension)
  19296. {
  19297. _target->SetSplineTension (tension);
  19298. }
  19299. DllExport void
  19300. ValueAnimation_SetValueType (Urho3D::ValueAnimation *_target, enum Urho3D::VariantType valueType)
  19301. {
  19302. _target->SetValueType (valueType);
  19303. }
  19304. // Urho3D::Variant overloads begin:
  19305. DllExport int
  19306. ValueAnimation_SetKeyFrame0 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::Vector3 & value)
  19307. {
  19308. return _target->SetKeyFrame (time, (value));
  19309. }
  19310. DllExport int
  19311. ValueAnimation_SetKeyFrame1 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::IntRect & value)
  19312. {
  19313. return _target->SetKeyFrame (time, (value));
  19314. }
  19315. DllExport int
  19316. ValueAnimation_SetKeyFrame2 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::Color & value)
  19317. {
  19318. return _target->SetKeyFrame (time, (value));
  19319. }
  19320. DllExport int
  19321. ValueAnimation_SetKeyFrame3 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::Vector2 & value)
  19322. {
  19323. return _target->SetKeyFrame (time, (value));
  19324. }
  19325. DllExport int
  19326. ValueAnimation_SetKeyFrame4 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::Vector4 & value)
  19327. {
  19328. return _target->SetKeyFrame (time, (value));
  19329. }
  19330. DllExport int
  19331. ValueAnimation_SetKeyFrame5 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::IntVector2 & value)
  19332. {
  19333. return _target->SetKeyFrame (time, (value));
  19334. }
  19335. DllExport int
  19336. ValueAnimation_SetKeyFrame6 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::Quaternion & value)
  19337. {
  19338. return _target->SetKeyFrame (time, (value));
  19339. }
  19340. DllExport int
  19341. ValueAnimation_SetKeyFrame7 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::Matrix4 & value)
  19342. {
  19343. return _target->SetKeyFrame (time, (value));
  19344. }
  19345. DllExport int
  19346. ValueAnimation_SetKeyFrame8 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::Matrix3x4 & value)
  19347. {
  19348. return _target->SetKeyFrame (time, (value));
  19349. }
  19350. DllExport int
  19351. ValueAnimation_SetKeyFrame9 (Urho3D::ValueAnimation *_target, float time, int value)
  19352. {
  19353. return _target->SetKeyFrame (time, (value));
  19354. }
  19355. DllExport int
  19356. ValueAnimation_SetKeyFrame10 (Urho3D::ValueAnimation *_target, float time, float value)
  19357. {
  19358. return _target->SetKeyFrame (time, (value));
  19359. }
  19360. DllExport int
  19361. ValueAnimation_SetKeyFrame11 (Urho3D::ValueAnimation *_target, float time, const char * value)
  19362. {
  19363. return _target->SetKeyFrame (time, Urho3D::String(value));
  19364. }
  19365. // Urho3D::Variant overloads end.
  19366. DllExport int
  19367. ValueAnimation_IsValid (Urho3D::ValueAnimation *_target)
  19368. {
  19369. return _target->IsValid ();
  19370. }
  19371. DllExport void *
  19372. ValueAnimation_GetOwner (Urho3D::ValueAnimation *_target)
  19373. {
  19374. return _target->GetOwner ();
  19375. }
  19376. DllExport enum Urho3D::InterpMethod
  19377. ValueAnimation_GetInterpolationMethod (Urho3D::ValueAnimation *_target)
  19378. {
  19379. return _target->GetInterpolationMethod ();
  19380. }
  19381. DllExport float
  19382. ValueAnimation_GetSplineTension (Urho3D::ValueAnimation *_target)
  19383. {
  19384. return _target->GetSplineTension ();
  19385. }
  19386. DllExport enum Urho3D::VariantType
  19387. ValueAnimation_GetValueType (Urho3D::ValueAnimation *_target)
  19388. {
  19389. return _target->GetValueType ();
  19390. }
  19391. DllExport float
  19392. ValueAnimation_GetBeginTime (Urho3D::ValueAnimation *_target)
  19393. {
  19394. return _target->GetBeginTime ();
  19395. }
  19396. DllExport float
  19397. ValueAnimation_GetEndTime (Urho3D::ValueAnimation *_target)
  19398. {
  19399. return _target->GetEndTime ();
  19400. }
  19401. DllExport Urho3D::Variant
  19402. ValueAnimation_GetAnimationValue (Urho3D::ValueAnimation *_target, float scaledTime)
  19403. {
  19404. return _target->GetAnimationValue (scaledTime);
  19405. }
  19406. DllExport int
  19407. ValueAnimation_HasEventFrames (Urho3D::ValueAnimation *_target)
  19408. {
  19409. return _target->HasEventFrames ();
  19410. }
  19411. DllExport int
  19412. Button_GetType (Urho3D::Button *_target)
  19413. {
  19414. return (_target->GetType ()).Value ();
  19415. }
  19416. DllExport const char *
  19417. Button_GetTypeName (Urho3D::Button *_target)
  19418. {
  19419. return stringdup((_target->GetTypeName ()).CString ());
  19420. }
  19421. DllExport int
  19422. Button_GetTypeStatic ()
  19423. {
  19424. return (Button::GetTypeStatic ()).Value ();
  19425. }
  19426. DllExport const char *
  19427. Button_GetTypeNameStatic ()
  19428. {
  19429. return stringdup((Button::GetTypeNameStatic ()).CString ());
  19430. }
  19431. DllExport void *
  19432. Button_Button (Urho3D::Context * context)
  19433. {
  19434. return WeakPtr<Button>(new Button(context));
  19435. }
  19436. DllExport void
  19437. Button_RegisterObject (Urho3D::Context * context)
  19438. {
  19439. Button::RegisterObject (context);
  19440. }
  19441. DllExport void
  19442. Button_Update (Urho3D::Button *_target, float timeStep)
  19443. {
  19444. _target->Update (timeStep);
  19445. }
  19446. DllExport void
  19447. Button_OnClickBegin (Urho3D::Button *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int button, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  19448. {
  19449. _target->OnClickBegin (position, screenPosition, button, buttons, qualifiers, cursor);
  19450. }
  19451. DllExport void
  19452. Button_OnClickEnd (Urho3D::Button *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int button, int buttons, int qualifiers, Urho3D::Cursor * cursor, Urho3D::UIElement * beginElement)
  19453. {
  19454. _target->OnClickEnd (position, screenPosition, button, buttons, qualifiers, cursor, beginElement);
  19455. }
  19456. DllExport void
  19457. Button_OnKey (Urho3D::Button *_target, int key, int buttons, int qualifiers)
  19458. {
  19459. _target->OnKey (key, buttons, qualifiers);
  19460. }
  19461. DllExport void
  19462. Button_SetPressedOffset (Urho3D::Button *_target, const class Urho3D::IntVector2 & offset)
  19463. {
  19464. _target->SetPressedOffset (offset);
  19465. }
  19466. DllExport void
  19467. Button_SetPressedOffset0 (Urho3D::Button *_target, int x, int y)
  19468. {
  19469. _target->SetPressedOffset (x, y);
  19470. }
  19471. DllExport void
  19472. Button_SetPressedChildOffset (Urho3D::Button *_target, const class Urho3D::IntVector2 & offset)
  19473. {
  19474. _target->SetPressedChildOffset (offset);
  19475. }
  19476. DllExport void
  19477. Button_SetPressedChildOffset1 (Urho3D::Button *_target, int x, int y)
  19478. {
  19479. _target->SetPressedChildOffset (x, y);
  19480. }
  19481. DllExport void
  19482. Button_SetRepeat (Urho3D::Button *_target, float delay, float rate)
  19483. {
  19484. _target->SetRepeat (delay, rate);
  19485. }
  19486. DllExport void
  19487. Button_SetRepeatDelay (Urho3D::Button *_target, float delay)
  19488. {
  19489. _target->SetRepeatDelay (delay);
  19490. }
  19491. DllExport void
  19492. Button_SetRepeatRate (Urho3D::Button *_target, float rate)
  19493. {
  19494. _target->SetRepeatRate (rate);
  19495. }
  19496. DllExport Interop::IntVector2
  19497. Button_GetPressedOffset (Urho3D::Button *_target)
  19498. {
  19499. return *((Interop::IntVector2 *) &(_target->GetPressedOffset ()));
  19500. }
  19501. DllExport Interop::IntVector2
  19502. Button_GetPressedChildOffset (Urho3D::Button *_target)
  19503. {
  19504. return *((Interop::IntVector2 *) &(_target->GetPressedChildOffset ()));
  19505. }
  19506. DllExport float
  19507. Button_GetRepeatDelay (Urho3D::Button *_target)
  19508. {
  19509. return _target->GetRepeatDelay ();
  19510. }
  19511. DllExport float
  19512. Button_GetRepeatRate (Urho3D::Button *_target)
  19513. {
  19514. return _target->GetRepeatRate ();
  19515. }
  19516. DllExport int
  19517. Button_IsPressed (Urho3D::Button *_target)
  19518. {
  19519. return _target->IsPressed ();
  19520. }
  19521. DllExport int
  19522. CheckBox_GetType (Urho3D::CheckBox *_target)
  19523. {
  19524. return (_target->GetType ()).Value ();
  19525. }
  19526. DllExport const char *
  19527. CheckBox_GetTypeName (Urho3D::CheckBox *_target)
  19528. {
  19529. return stringdup((_target->GetTypeName ()).CString ());
  19530. }
  19531. DllExport int
  19532. CheckBox_GetTypeStatic ()
  19533. {
  19534. return (CheckBox::GetTypeStatic ()).Value ();
  19535. }
  19536. DllExport const char *
  19537. CheckBox_GetTypeNameStatic ()
  19538. {
  19539. return stringdup((CheckBox::GetTypeNameStatic ()).CString ());
  19540. }
  19541. DllExport void *
  19542. CheckBox_CheckBox (Urho3D::Context * context)
  19543. {
  19544. return WeakPtr<CheckBox>(new CheckBox(context));
  19545. }
  19546. DllExport void
  19547. CheckBox_RegisterObject (Urho3D::Context * context)
  19548. {
  19549. CheckBox::RegisterObject (context);
  19550. }
  19551. DllExport void
  19552. CheckBox_OnClickBegin (Urho3D::CheckBox *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int button, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  19553. {
  19554. _target->OnClickBegin (position, screenPosition, button, buttons, qualifiers, cursor);
  19555. }
  19556. DllExport void
  19557. CheckBox_OnKey (Urho3D::CheckBox *_target, int key, int buttons, int qualifiers)
  19558. {
  19559. _target->OnKey (key, buttons, qualifiers);
  19560. }
  19561. DllExport void
  19562. CheckBox_SetChecked (Urho3D::CheckBox *_target, bool enable)
  19563. {
  19564. _target->SetChecked (enable);
  19565. }
  19566. DllExport void
  19567. CheckBox_SetCheckedOffset (Urho3D::CheckBox *_target, const class Urho3D::IntVector2 & rect)
  19568. {
  19569. _target->SetCheckedOffset (rect);
  19570. }
  19571. DllExport void
  19572. CheckBox_SetCheckedOffset0 (Urho3D::CheckBox *_target, int x, int y)
  19573. {
  19574. _target->SetCheckedOffset (x, y);
  19575. }
  19576. DllExport int
  19577. CheckBox_IsChecked (Urho3D::CheckBox *_target)
  19578. {
  19579. return _target->IsChecked ();
  19580. }
  19581. DllExport Interop::IntVector2
  19582. CheckBox_GetCheckedOffset (Urho3D::CheckBox *_target)
  19583. {
  19584. return *((Interop::IntVector2 *) &(_target->GetCheckedOffset ()));
  19585. }
  19586. DllExport int
  19587. Menu_GetType (Urho3D::Menu *_target)
  19588. {
  19589. return (_target->GetType ()).Value ();
  19590. }
  19591. DllExport const char *
  19592. Menu_GetTypeName (Urho3D::Menu *_target)
  19593. {
  19594. return stringdup((_target->GetTypeName ()).CString ());
  19595. }
  19596. DllExport int
  19597. Menu_GetTypeStatic ()
  19598. {
  19599. return (Menu::GetTypeStatic ()).Value ();
  19600. }
  19601. DllExport const char *
  19602. Menu_GetTypeNameStatic ()
  19603. {
  19604. return stringdup((Menu::GetTypeNameStatic ()).CString ());
  19605. }
  19606. DllExport void *
  19607. Menu_Menu (Urho3D::Context * context)
  19608. {
  19609. return WeakPtr<Menu>(new Menu(context));
  19610. }
  19611. DllExport void
  19612. Menu_RegisterObject (Urho3D::Context * context)
  19613. {
  19614. Menu::RegisterObject (context);
  19615. }
  19616. DllExport int
  19617. Menu_LoadXML (Urho3D::Menu *_target, const class Urho3D::XMLElement & source, Urho3D::XMLFile * styleFile, bool setInstanceDefault)
  19618. {
  19619. return _target->LoadXML (source, styleFile, setInstanceDefault);
  19620. }
  19621. DllExport int
  19622. Menu_SaveXML (Urho3D::Menu *_target, Urho3D::XMLElement & dest)
  19623. {
  19624. return _target->SaveXML (dest);
  19625. }
  19626. DllExport void
  19627. Menu_Update (Urho3D::Menu *_target, float timeStep)
  19628. {
  19629. _target->Update (timeStep);
  19630. }
  19631. DllExport void
  19632. Menu_OnHover (Urho3D::Menu *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  19633. {
  19634. _target->OnHover (position, screenPosition, buttons, qualifiers, cursor);
  19635. }
  19636. DllExport void
  19637. Menu_OnShowPopup (Urho3D::Menu *_target)
  19638. {
  19639. _target->OnShowPopup ();
  19640. }
  19641. DllExport void
  19642. Menu_OnHidePopup (Urho3D::Menu *_target)
  19643. {
  19644. _target->OnHidePopup ();
  19645. }
  19646. DllExport void
  19647. Menu_SetPopup (Urho3D::Menu *_target, Urho3D::UIElement * element)
  19648. {
  19649. _target->SetPopup (element);
  19650. }
  19651. DllExport void
  19652. Menu_SetPopupOffset (Urho3D::Menu *_target, const class Urho3D::IntVector2 & offset)
  19653. {
  19654. _target->SetPopupOffset (offset);
  19655. }
  19656. DllExport void
  19657. Menu_SetPopupOffset0 (Urho3D::Menu *_target, int x, int y)
  19658. {
  19659. _target->SetPopupOffset (x, y);
  19660. }
  19661. DllExport void
  19662. Menu_ShowPopup (Urho3D::Menu *_target, bool enable)
  19663. {
  19664. _target->ShowPopup (enable);
  19665. }
  19666. DllExport void
  19667. Menu_SetAccelerator (Urho3D::Menu *_target, int key, int qualifiers)
  19668. {
  19669. _target->SetAccelerator (key, qualifiers);
  19670. }
  19671. DllExport Urho3D::UIElement *
  19672. Menu_GetPopup (Urho3D::Menu *_target)
  19673. {
  19674. return _target->GetPopup ();
  19675. }
  19676. DllExport Interop::IntVector2
  19677. Menu_GetPopupOffset (Urho3D::Menu *_target)
  19678. {
  19679. return *((Interop::IntVector2 *) &(_target->GetPopupOffset ()));
  19680. }
  19681. DllExport int
  19682. Menu_GetShowPopup (Urho3D::Menu *_target)
  19683. {
  19684. return _target->GetShowPopup ();
  19685. }
  19686. DllExport int
  19687. Menu_GetAcceleratorKey (Urho3D::Menu *_target)
  19688. {
  19689. return _target->GetAcceleratorKey ();
  19690. }
  19691. DllExport int
  19692. Menu_GetAcceleratorQualifiers (Urho3D::Menu *_target)
  19693. {
  19694. return _target->GetAcceleratorQualifiers ();
  19695. }
  19696. DllExport int
  19697. DropDownList_GetType (Urho3D::DropDownList *_target)
  19698. {
  19699. return (_target->GetType ()).Value ();
  19700. }
  19701. DllExport const char *
  19702. DropDownList_GetTypeName (Urho3D::DropDownList *_target)
  19703. {
  19704. return stringdup((_target->GetTypeName ()).CString ());
  19705. }
  19706. DllExport int
  19707. DropDownList_GetTypeStatic ()
  19708. {
  19709. return (DropDownList::GetTypeStatic ()).Value ();
  19710. }
  19711. DllExport const char *
  19712. DropDownList_GetTypeNameStatic ()
  19713. {
  19714. return stringdup((DropDownList::GetTypeNameStatic ()).CString ());
  19715. }
  19716. DllExport void *
  19717. DropDownList_DropDownList (Urho3D::Context * context)
  19718. {
  19719. return WeakPtr<DropDownList>(new DropDownList(context));
  19720. }
  19721. DllExport void
  19722. DropDownList_RegisterObject (Urho3D::Context * context)
  19723. {
  19724. DropDownList::RegisterObject (context);
  19725. }
  19726. DllExport void
  19727. DropDownList_ApplyAttributes (Urho3D::DropDownList *_target)
  19728. {
  19729. _target->ApplyAttributes ();
  19730. }
  19731. DllExport void
  19732. DropDownList_OnShowPopup (Urho3D::DropDownList *_target)
  19733. {
  19734. _target->OnShowPopup ();
  19735. }
  19736. DllExport void
  19737. DropDownList_OnHidePopup (Urho3D::DropDownList *_target)
  19738. {
  19739. _target->OnHidePopup ();
  19740. }
  19741. DllExport void
  19742. DropDownList_OnSetEditable (Urho3D::DropDownList *_target)
  19743. {
  19744. _target->OnSetEditable ();
  19745. }
  19746. DllExport void
  19747. DropDownList_AddItem (Urho3D::DropDownList *_target, Urho3D::UIElement * item)
  19748. {
  19749. _target->AddItem (item);
  19750. }
  19751. DllExport void
  19752. DropDownList_InsertItem (Urho3D::DropDownList *_target, unsigned int index, Urho3D::UIElement * item)
  19753. {
  19754. _target->InsertItem (index, item);
  19755. }
  19756. DllExport void
  19757. DropDownList_RemoveItem (Urho3D::DropDownList *_target, Urho3D::UIElement * item)
  19758. {
  19759. _target->RemoveItem (item);
  19760. }
  19761. DllExport void
  19762. DropDownList_RemoveItem0 (Urho3D::DropDownList *_target, unsigned int index)
  19763. {
  19764. _target->RemoveItem (index);
  19765. }
  19766. DllExport void
  19767. DropDownList_RemoveAllItems (Urho3D::DropDownList *_target)
  19768. {
  19769. _target->RemoveAllItems ();
  19770. }
  19771. DllExport void
  19772. DropDownList_SetSelection (Urho3D::DropDownList *_target, unsigned int index)
  19773. {
  19774. _target->SetSelection (index);
  19775. }
  19776. DllExport void
  19777. DropDownList_SetPlaceholderText (Urho3D::DropDownList *_target, const char * text)
  19778. {
  19779. _target->SetPlaceholderText (Urho3D::String(text));
  19780. }
  19781. DllExport void
  19782. DropDownList_SetResizePopup (Urho3D::DropDownList *_target, bool enable)
  19783. {
  19784. _target->SetResizePopup (enable);
  19785. }
  19786. DllExport unsigned int
  19787. DropDownList_GetNumItems (Urho3D::DropDownList *_target)
  19788. {
  19789. return _target->GetNumItems ();
  19790. }
  19791. DllExport Urho3D::UIElement *
  19792. DropDownList_GetItem (Urho3D::DropDownList *_target, unsigned int index)
  19793. {
  19794. return _target->GetItem (index);
  19795. }
  19796. DllExport unsigned int
  19797. DropDownList_GetSelection (Urho3D::DropDownList *_target)
  19798. {
  19799. return _target->GetSelection ();
  19800. }
  19801. DllExport Urho3D::UIElement *
  19802. DropDownList_GetSelectedItem (Urho3D::DropDownList *_target)
  19803. {
  19804. return _target->GetSelectedItem ();
  19805. }
  19806. DllExport Urho3D::ListView *
  19807. DropDownList_GetListView (Urho3D::DropDownList *_target)
  19808. {
  19809. return _target->GetListView ();
  19810. }
  19811. DllExport Urho3D::UIElement *
  19812. DropDownList_GetPlaceholder (Urho3D::DropDownList *_target)
  19813. {
  19814. return _target->GetPlaceholder ();
  19815. }
  19816. DllExport const char *
  19817. DropDownList_GetPlaceholderText (Urho3D::DropDownList *_target)
  19818. {
  19819. return stringdup((_target->GetPlaceholderText ()).CString ());
  19820. }
  19821. DllExport int
  19822. DropDownList_GetResizePopup (Urho3D::DropDownList *_target)
  19823. {
  19824. return _target->GetResizePopup ();
  19825. }
  19826. DllExport void
  19827. DropDownList_SetSelectionAttr (Urho3D::DropDownList *_target, unsigned int index)
  19828. {
  19829. _target->SetSelectionAttr (index);
  19830. }
  19831. DllExport int
  19832. FileSelector_GetType (Urho3D::FileSelector *_target)
  19833. {
  19834. return (_target->GetType ()).Value ();
  19835. }
  19836. DllExport const char *
  19837. FileSelector_GetTypeName (Urho3D::FileSelector *_target)
  19838. {
  19839. return stringdup((_target->GetTypeName ()).CString ());
  19840. }
  19841. DllExport int
  19842. FileSelector_GetTypeStatic ()
  19843. {
  19844. return (FileSelector::GetTypeStatic ()).Value ();
  19845. }
  19846. DllExport const char *
  19847. FileSelector_GetTypeNameStatic ()
  19848. {
  19849. return stringdup((FileSelector::GetTypeNameStatic ()).CString ());
  19850. }
  19851. DllExport void *
  19852. FileSelector_FileSelector (Urho3D::Context * context)
  19853. {
  19854. return WeakPtr<FileSelector>(new FileSelector(context));
  19855. }
  19856. DllExport void
  19857. FileSelector_RegisterObject (Urho3D::Context * context)
  19858. {
  19859. FileSelector::RegisterObject (context);
  19860. }
  19861. DllExport void
  19862. FileSelector_SetDefaultStyle (Urho3D::FileSelector *_target, Urho3D::XMLFile * style)
  19863. {
  19864. _target->SetDefaultStyle (style);
  19865. }
  19866. DllExport void
  19867. FileSelector_SetTitle (Urho3D::FileSelector *_target, const char * text)
  19868. {
  19869. _target->SetTitle (Urho3D::String(text));
  19870. }
  19871. DllExport void
  19872. FileSelector_SetButtonTexts (Urho3D::FileSelector *_target, const char * okText, const char * cancelText)
  19873. {
  19874. _target->SetButtonTexts (Urho3D::String(okText), Urho3D::String(cancelText));
  19875. }
  19876. DllExport void
  19877. FileSelector_SetPath (Urho3D::FileSelector *_target, const char * path)
  19878. {
  19879. _target->SetPath (Urho3D::String(path));
  19880. }
  19881. DllExport void
  19882. FileSelector_SetFileName (Urho3D::FileSelector *_target, const char * fileName)
  19883. {
  19884. _target->SetFileName (Urho3D::String(fileName));
  19885. }
  19886. DllExport void
  19887. FileSelector_SetDirectoryMode (Urho3D::FileSelector *_target, bool enable)
  19888. {
  19889. _target->SetDirectoryMode (enable);
  19890. }
  19891. DllExport void
  19892. FileSelector_UpdateElements (Urho3D::FileSelector *_target)
  19893. {
  19894. _target->UpdateElements ();
  19895. }
  19896. DllExport Urho3D::XMLFile *
  19897. FileSelector_GetDefaultStyle (Urho3D::FileSelector *_target)
  19898. {
  19899. return _target->GetDefaultStyle ();
  19900. }
  19901. DllExport Urho3D::Window *
  19902. FileSelector_GetWindow (Urho3D::FileSelector *_target)
  19903. {
  19904. return _target->GetWindow ();
  19905. }
  19906. DllExport Urho3D::Text *
  19907. FileSelector_GetTitleText (Urho3D::FileSelector *_target)
  19908. {
  19909. return _target->GetTitleText ();
  19910. }
  19911. DllExport Urho3D::ListView *
  19912. FileSelector_GetFileList (Urho3D::FileSelector *_target)
  19913. {
  19914. return _target->GetFileList ();
  19915. }
  19916. DllExport Urho3D::LineEdit *
  19917. FileSelector_GetPathEdit (Urho3D::FileSelector *_target)
  19918. {
  19919. return _target->GetPathEdit ();
  19920. }
  19921. DllExport Urho3D::LineEdit *
  19922. FileSelector_GetFileNameEdit (Urho3D::FileSelector *_target)
  19923. {
  19924. return _target->GetFileNameEdit ();
  19925. }
  19926. DllExport Urho3D::DropDownList *
  19927. FileSelector_GetFilterList (Urho3D::FileSelector *_target)
  19928. {
  19929. return _target->GetFilterList ();
  19930. }
  19931. DllExport Urho3D::Button *
  19932. FileSelector_GetOKButton (Urho3D::FileSelector *_target)
  19933. {
  19934. return _target->GetOKButton ();
  19935. }
  19936. DllExport Urho3D::Button *
  19937. FileSelector_GetCancelButton (Urho3D::FileSelector *_target)
  19938. {
  19939. return _target->GetCancelButton ();
  19940. }
  19941. DllExport Urho3D::Button *
  19942. FileSelector_GetCloseButton (Urho3D::FileSelector *_target)
  19943. {
  19944. return _target->GetCloseButton ();
  19945. }
  19946. DllExport const char *
  19947. FileSelector_GetTitle (Urho3D::FileSelector *_target)
  19948. {
  19949. return stringdup((_target->GetTitle ()).CString ());
  19950. }
  19951. DllExport const char *
  19952. FileSelector_GetPath (Urho3D::FileSelector *_target)
  19953. {
  19954. return stringdup((_target->GetPath ()).CString ());
  19955. }
  19956. DllExport const char *
  19957. FileSelector_GetFileName (Urho3D::FileSelector *_target)
  19958. {
  19959. return stringdup((_target->GetFileName ()).CString ());
  19960. }
  19961. DllExport const char *
  19962. FileSelector_GetFilter (Urho3D::FileSelector *_target)
  19963. {
  19964. return stringdup((_target->GetFilter ()).CString ());
  19965. }
  19966. DllExport unsigned int
  19967. FileSelector_GetFilterIndex (Urho3D::FileSelector *_target)
  19968. {
  19969. return _target->GetFilterIndex ();
  19970. }
  19971. DllExport int
  19972. FileSelector_GetDirectoryMode (Urho3D::FileSelector *_target)
  19973. {
  19974. return _target->GetDirectoryMode ();
  19975. }
  19976. DllExport int
  19977. Font_GetType (Urho3D::Font *_target)
  19978. {
  19979. return (_target->GetType ()).Value ();
  19980. }
  19981. DllExport const char *
  19982. Font_GetTypeName (Urho3D::Font *_target)
  19983. {
  19984. return stringdup((_target->GetTypeName ()).CString ());
  19985. }
  19986. DllExport int
  19987. Font_GetTypeStatic ()
  19988. {
  19989. return (Font::GetTypeStatic ()).Value ();
  19990. }
  19991. DllExport const char *
  19992. Font_GetTypeNameStatic ()
  19993. {
  19994. return stringdup((Font::GetTypeNameStatic ()).CString ());
  19995. }
  19996. DllExport void *
  19997. Font_Font (Urho3D::Context * context)
  19998. {
  19999. return WeakPtr<Font>(new Font(context));
  20000. }
  20001. DllExport void
  20002. Font_RegisterObject (Urho3D::Context * context)
  20003. {
  20004. Font::RegisterObject (context);
  20005. }
  20006. DllExport int
  20007. Font_BeginLoad_File (Urho3D::Font *_target, File * source)
  20008. {
  20009. return _target->BeginLoad (*source);
  20010. }
  20011. DllExport int
  20012. Font_BeginLoad_MemoryBuffer (Urho3D::Font *_target, MemoryBuffer * source)
  20013. {
  20014. return _target->BeginLoad (*source);
  20015. }
  20016. DllExport int
  20017. Font_SaveXML_File (Urho3D::Font *_target, File * dest, int pointSize, bool usedGlyphs, const char * indentation)
  20018. {
  20019. return _target->SaveXML (*dest, pointSize, usedGlyphs, Urho3D::String(indentation));
  20020. }
  20021. DllExport int
  20022. Font_SaveXML_MemoryBuffer (Urho3D::Font *_target, MemoryBuffer * dest, int pointSize, bool usedGlyphs, const char * indentation)
  20023. {
  20024. return _target->SaveXML (*dest, pointSize, usedGlyphs, Urho3D::String(indentation));
  20025. }
  20026. DllExport void
  20027. Font_SetAbsoluteGlyphOffset (Urho3D::Font *_target, const class Urho3D::IntVector2 & offset)
  20028. {
  20029. _target->SetAbsoluteGlyphOffset (offset);
  20030. }
  20031. DllExport void
  20032. Font_SetScaledGlyphOffset (Urho3D::Font *_target, const class Urho3D::Vector2 & offset)
  20033. {
  20034. _target->SetScaledGlyphOffset (offset);
  20035. }
  20036. DllExport Urho3D::FontFace *
  20037. Font_GetFace (Urho3D::Font *_target, int pointSize)
  20038. {
  20039. return _target->GetFace (pointSize);
  20040. }
  20041. DllExport int
  20042. Font_IsSDFFont (Urho3D::Font *_target)
  20043. {
  20044. return _target->IsSDFFont ();
  20045. }
  20046. DllExport Interop::IntVector2
  20047. Font_GetAbsoluteGlyphOffset (Urho3D::Font *_target)
  20048. {
  20049. return *((Interop::IntVector2 *) &(_target->GetAbsoluteGlyphOffset ()));
  20050. }
  20051. DllExport Interop::Vector2
  20052. Font_GetScaledGlyphOffset (Urho3D::Font *_target)
  20053. {
  20054. return *((Interop::Vector2 *) &(_target->GetScaledGlyphOffset ()));
  20055. }
  20056. DllExport Interop::IntVector2
  20057. Font_GetTotalGlyphOffset (Urho3D::Font *_target, int pointSize)
  20058. {
  20059. return *((Interop::IntVector2 *) &(_target->GetTotalGlyphOffset (pointSize)));
  20060. }
  20061. DllExport void
  20062. Font_ReleaseFaces (Urho3D::Font *_target)
  20063. {
  20064. _target->ReleaseFaces ();
  20065. }
  20066. DllExport int
  20067. FontFace_Load (Urho3D::FontFace *_target, const unsigned char * fontData, unsigned int fontDataSize, int pointSize)
  20068. {
  20069. return _target->Load (fontData, fontDataSize, pointSize);
  20070. }
  20071. DllExport const struct Urho3D::FontGlyph *
  20072. FontFace_GetGlyph (Urho3D::FontFace *_target, unsigned int c)
  20073. {
  20074. return _target->GetGlyph (c);
  20075. }
  20076. DllExport int
  20077. FontFace_HasMutableGlyphs (Urho3D::FontFace *_target)
  20078. {
  20079. return _target->HasMutableGlyphs ();
  20080. }
  20081. DllExport short
  20082. FontFace_GetKerning (Urho3D::FontFace *_target, unsigned int c, unsigned int d)
  20083. {
  20084. return _target->GetKerning (c, d);
  20085. }
  20086. DllExport int
  20087. FontFace_IsDataLost (Urho3D::FontFace *_target)
  20088. {
  20089. return _target->IsDataLost ();
  20090. }
  20091. DllExport int
  20092. FontFace_GetPointSize (Urho3D::FontFace *_target)
  20093. {
  20094. return _target->GetPointSize ();
  20095. }
  20096. DllExport int
  20097. FontFace_GetRowHeight (Urho3D::FontFace *_target)
  20098. {
  20099. return _target->GetRowHeight ();
  20100. }
  20101. DllExport const Vector<SharedPtr<class Urho3D::Texture2D> > &
  20102. FontFace_GetTextures (Urho3D::FontFace *_target)
  20103. {
  20104. return _target->GetTextures ();
  20105. }
  20106. DllExport void *
  20107. FontFaceBitmap_FontFaceBitmap (Urho3D::Font * font)
  20108. {
  20109. return WeakPtr<FontFaceBitmap>(new FontFaceBitmap(font));
  20110. }
  20111. DllExport int
  20112. FontFaceBitmap_Load (Urho3D::FontFaceBitmap *_target, const unsigned char * fontData, unsigned int fontDataSize, int pointSize)
  20113. {
  20114. return _target->Load (fontData, fontDataSize, pointSize);
  20115. }
  20116. DllExport int
  20117. FontFaceBitmap_Load0 (Urho3D::FontFaceBitmap *_target, Urho3D::FontFace * fontFace, bool usedGlyphs)
  20118. {
  20119. return _target->Load (fontFace, usedGlyphs);
  20120. }
  20121. DllExport int
  20122. FontFaceBitmap_Save_File (Urho3D::FontFaceBitmap *_target, File * dest, int pointSize, const char * indentation)
  20123. {
  20124. return _target->Save (*dest, pointSize, Urho3D::String(indentation));
  20125. }
  20126. DllExport int
  20127. FontFaceBitmap_Save_MemoryBuffer (Urho3D::FontFaceBitmap *_target, MemoryBuffer * dest, int pointSize, const char * indentation)
  20128. {
  20129. return _target->Save (*dest, pointSize, Urho3D::String(indentation));
  20130. }
  20131. DllExport void *
  20132. FontFaceFreeType_FontFaceFreeType (Urho3D::Font * font)
  20133. {
  20134. return WeakPtr<FontFaceFreeType>(new FontFaceFreeType(font));
  20135. }
  20136. DllExport int
  20137. FontFaceFreeType_Load (Urho3D::FontFaceFreeType *_target, const unsigned char * fontData, unsigned int fontDataSize, int pointSize)
  20138. {
  20139. return _target->Load (fontData, fontDataSize, pointSize);
  20140. }
  20141. DllExport const struct Urho3D::FontGlyph *
  20142. FontFaceFreeType_GetGlyph (Urho3D::FontFaceFreeType *_target, unsigned int c)
  20143. {
  20144. return _target->GetGlyph (c);
  20145. }
  20146. DllExport int
  20147. FontFaceFreeType_HasMutableGlyphs (Urho3D::FontFaceFreeType *_target)
  20148. {
  20149. return _target->HasMutableGlyphs ();
  20150. }
  20151. DllExport int
  20152. LineEdit_GetType (Urho3D::LineEdit *_target)
  20153. {
  20154. return (_target->GetType ()).Value ();
  20155. }
  20156. DllExport const char *
  20157. LineEdit_GetTypeName (Urho3D::LineEdit *_target)
  20158. {
  20159. return stringdup((_target->GetTypeName ()).CString ());
  20160. }
  20161. DllExport int
  20162. LineEdit_GetTypeStatic ()
  20163. {
  20164. return (LineEdit::GetTypeStatic ()).Value ();
  20165. }
  20166. DllExport const char *
  20167. LineEdit_GetTypeNameStatic ()
  20168. {
  20169. return stringdup((LineEdit::GetTypeNameStatic ()).CString ());
  20170. }
  20171. DllExport void *
  20172. LineEdit_LineEdit (Urho3D::Context * context)
  20173. {
  20174. return WeakPtr<LineEdit>(new LineEdit(context));
  20175. }
  20176. DllExport void
  20177. LineEdit_RegisterObject (Urho3D::Context * context)
  20178. {
  20179. LineEdit::RegisterObject (context);
  20180. }
  20181. DllExport void
  20182. LineEdit_ApplyAttributes (Urho3D::LineEdit *_target)
  20183. {
  20184. _target->ApplyAttributes ();
  20185. }
  20186. DllExport void
  20187. LineEdit_Update (Urho3D::LineEdit *_target, float timeStep)
  20188. {
  20189. _target->Update (timeStep);
  20190. }
  20191. DllExport void
  20192. LineEdit_OnClickBegin (Urho3D::LineEdit *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int button, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  20193. {
  20194. _target->OnClickBegin (position, screenPosition, button, buttons, qualifiers, cursor);
  20195. }
  20196. DllExport void
  20197. LineEdit_OnDoubleClick (Urho3D::LineEdit *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int button, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  20198. {
  20199. _target->OnDoubleClick (position, screenPosition, button, buttons, qualifiers, cursor);
  20200. }
  20201. DllExport void
  20202. LineEdit_OnKey (Urho3D::LineEdit *_target, int key, int buttons, int qualifiers)
  20203. {
  20204. _target->OnKey (key, buttons, qualifiers);
  20205. }
  20206. DllExport void
  20207. LineEdit_OnTextInput (Urho3D::LineEdit *_target, const char * text, int buttons, int qualifiers)
  20208. {
  20209. _target->OnTextInput (Urho3D::String(text), buttons, qualifiers);
  20210. }
  20211. DllExport void
  20212. LineEdit_SetText (Urho3D::LineEdit *_target, const char * text)
  20213. {
  20214. _target->SetText (Urho3D::String(text));
  20215. }
  20216. DllExport void
  20217. LineEdit_SetCursorPosition (Urho3D::LineEdit *_target, unsigned int position)
  20218. {
  20219. _target->SetCursorPosition (position);
  20220. }
  20221. DllExport void
  20222. LineEdit_SetCursorBlinkRate (Urho3D::LineEdit *_target, float rate)
  20223. {
  20224. _target->SetCursorBlinkRate (rate);
  20225. }
  20226. DllExport void
  20227. LineEdit_SetMaxLength (Urho3D::LineEdit *_target, unsigned int length)
  20228. {
  20229. _target->SetMaxLength (length);
  20230. }
  20231. DllExport void
  20232. LineEdit_SetEchoCharacter (Urho3D::LineEdit *_target, unsigned int c)
  20233. {
  20234. _target->SetEchoCharacter (c);
  20235. }
  20236. DllExport void
  20237. LineEdit_SetCursorMovable (Urho3D::LineEdit *_target, bool enable)
  20238. {
  20239. _target->SetCursorMovable (enable);
  20240. }
  20241. DllExport void
  20242. LineEdit_SetTextSelectable (Urho3D::LineEdit *_target, bool enable)
  20243. {
  20244. _target->SetTextSelectable (enable);
  20245. }
  20246. DllExport void
  20247. LineEdit_SetTextCopyable (Urho3D::LineEdit *_target, bool enable)
  20248. {
  20249. _target->SetTextCopyable (enable);
  20250. }
  20251. DllExport const char *
  20252. LineEdit_GetText (Urho3D::LineEdit *_target)
  20253. {
  20254. return stringdup((_target->GetText ()).CString ());
  20255. }
  20256. DllExport unsigned int
  20257. LineEdit_GetCursorPosition (Urho3D::LineEdit *_target)
  20258. {
  20259. return _target->GetCursorPosition ();
  20260. }
  20261. DllExport float
  20262. LineEdit_GetCursorBlinkRate (Urho3D::LineEdit *_target)
  20263. {
  20264. return _target->GetCursorBlinkRate ();
  20265. }
  20266. DllExport unsigned int
  20267. LineEdit_GetMaxLength (Urho3D::LineEdit *_target)
  20268. {
  20269. return _target->GetMaxLength ();
  20270. }
  20271. DllExport unsigned int
  20272. LineEdit_GetEchoCharacter (Urho3D::LineEdit *_target)
  20273. {
  20274. return _target->GetEchoCharacter ();
  20275. }
  20276. DllExport int
  20277. LineEdit_IsCursorMovable (Urho3D::LineEdit *_target)
  20278. {
  20279. return _target->IsCursorMovable ();
  20280. }
  20281. DllExport int
  20282. LineEdit_IsTextSelectable (Urho3D::LineEdit *_target)
  20283. {
  20284. return _target->IsTextSelectable ();
  20285. }
  20286. DllExport int
  20287. LineEdit_IsTextCopyable (Urho3D::LineEdit *_target)
  20288. {
  20289. return _target->IsTextCopyable ();
  20290. }
  20291. DllExport Urho3D::Text *
  20292. LineEdit_GetTextElement (Urho3D::LineEdit *_target)
  20293. {
  20294. return _target->GetTextElement ();
  20295. }
  20296. DllExport Urho3D::BorderImage *
  20297. LineEdit_GetCursor (Urho3D::LineEdit *_target)
  20298. {
  20299. return _target->GetCursor ();
  20300. }
  20301. DllExport int
  20302. ScrollView_GetType (Urho3D::ScrollView *_target)
  20303. {
  20304. return (_target->GetType ()).Value ();
  20305. }
  20306. DllExport const char *
  20307. ScrollView_GetTypeName (Urho3D::ScrollView *_target)
  20308. {
  20309. return stringdup((_target->GetTypeName ()).CString ());
  20310. }
  20311. DllExport int
  20312. ScrollView_GetTypeStatic ()
  20313. {
  20314. return (ScrollView::GetTypeStatic ()).Value ();
  20315. }
  20316. DllExport const char *
  20317. ScrollView_GetTypeNameStatic ()
  20318. {
  20319. return stringdup((ScrollView::GetTypeNameStatic ()).CString ());
  20320. }
  20321. DllExport void *
  20322. ScrollView_ScrollView (Urho3D::Context * context)
  20323. {
  20324. return WeakPtr<ScrollView>(new ScrollView(context));
  20325. }
  20326. DllExport void
  20327. ScrollView_RegisterObject (Urho3D::Context * context)
  20328. {
  20329. ScrollView::RegisterObject (context);
  20330. }
  20331. DllExport void
  20332. ScrollView_Update (Urho3D::ScrollView *_target, float timeStep)
  20333. {
  20334. _target->Update (timeStep);
  20335. }
  20336. DllExport void
  20337. ScrollView_ApplyAttributes (Urho3D::ScrollView *_target)
  20338. {
  20339. _target->ApplyAttributes ();
  20340. }
  20341. DllExport void
  20342. ScrollView_OnWheel (Urho3D::ScrollView *_target, int delta, int buttons, int qualifiers)
  20343. {
  20344. _target->OnWheel (delta, buttons, qualifiers);
  20345. }
  20346. DllExport void
  20347. ScrollView_OnKey (Urho3D::ScrollView *_target, int key, int buttons, int qualifiers)
  20348. {
  20349. _target->OnKey (key, buttons, qualifiers);
  20350. }
  20351. DllExport void
  20352. ScrollView_OnResize (Urho3D::ScrollView *_target, const class Urho3D::IntVector2 & newSize, const class Urho3D::IntVector2 & delta)
  20353. {
  20354. _target->OnResize (newSize, delta);
  20355. }
  20356. DllExport void
  20357. ScrollView_SetContentElement (Urho3D::ScrollView *_target, Urho3D::UIElement * element)
  20358. {
  20359. _target->SetContentElement (element);
  20360. }
  20361. DllExport void
  20362. ScrollView_SetViewPosition (Urho3D::ScrollView *_target, const class Urho3D::IntVector2 & position)
  20363. {
  20364. _target->SetViewPosition (position);
  20365. }
  20366. DllExport void
  20367. ScrollView_SetViewPosition0 (Urho3D::ScrollView *_target, int x, int y)
  20368. {
  20369. _target->SetViewPosition (x, y);
  20370. }
  20371. DllExport void
  20372. ScrollView_SetScrollBarsVisible (Urho3D::ScrollView *_target, bool horizontal, bool vertical)
  20373. {
  20374. _target->SetScrollBarsVisible (horizontal, vertical);
  20375. }
  20376. DllExport void
  20377. ScrollView_SetScrollBarsAutoVisible (Urho3D::ScrollView *_target, bool enable)
  20378. {
  20379. _target->SetScrollBarsAutoVisible (enable);
  20380. }
  20381. DllExport void
  20382. ScrollView_SetScrollStep (Urho3D::ScrollView *_target, float step)
  20383. {
  20384. _target->SetScrollStep (step);
  20385. }
  20386. DllExport void
  20387. ScrollView_SetPageStep (Urho3D::ScrollView *_target, float step)
  20388. {
  20389. _target->SetPageStep (step);
  20390. }
  20391. DllExport void
  20392. ScrollView_SetScrollDeceleration (Urho3D::ScrollView *_target, float deceleration)
  20393. {
  20394. _target->SetScrollDeceleration (deceleration);
  20395. }
  20396. DllExport void
  20397. ScrollView_SetScrollSnapEpsilon (Urho3D::ScrollView *_target, float snap)
  20398. {
  20399. _target->SetScrollSnapEpsilon (snap);
  20400. }
  20401. DllExport void
  20402. ScrollView_SetAutoDisableChildren (Urho3D::ScrollView *_target, bool disable)
  20403. {
  20404. _target->SetAutoDisableChildren (disable);
  20405. }
  20406. DllExport void
  20407. ScrollView_SetAutoDisableThreshold (Urho3D::ScrollView *_target, float amount)
  20408. {
  20409. _target->SetAutoDisableThreshold (amount);
  20410. }
  20411. DllExport Interop::IntVector2
  20412. ScrollView_GetViewPosition (Urho3D::ScrollView *_target)
  20413. {
  20414. return *((Interop::IntVector2 *) &(_target->GetViewPosition ()));
  20415. }
  20416. DllExport Urho3D::UIElement *
  20417. ScrollView_GetContentElement (Urho3D::ScrollView *_target)
  20418. {
  20419. return _target->GetContentElement ();
  20420. }
  20421. DllExport Urho3D::ScrollBar *
  20422. ScrollView_GetHorizontalScrollBar (Urho3D::ScrollView *_target)
  20423. {
  20424. return _target->GetHorizontalScrollBar ();
  20425. }
  20426. DllExport Urho3D::ScrollBar *
  20427. ScrollView_GetVerticalScrollBar (Urho3D::ScrollView *_target)
  20428. {
  20429. return _target->GetVerticalScrollBar ();
  20430. }
  20431. DllExport Urho3D::BorderImage *
  20432. ScrollView_GetScrollPanel (Urho3D::ScrollView *_target)
  20433. {
  20434. return _target->GetScrollPanel ();
  20435. }
  20436. DllExport int
  20437. ScrollView_GetScrollBarsAutoVisible (Urho3D::ScrollView *_target)
  20438. {
  20439. return _target->GetScrollBarsAutoVisible ();
  20440. }
  20441. DllExport float
  20442. ScrollView_GetScrollStep (Urho3D::ScrollView *_target)
  20443. {
  20444. return _target->GetScrollStep ();
  20445. }
  20446. DllExport float
  20447. ScrollView_GetPageStep (Urho3D::ScrollView *_target)
  20448. {
  20449. return _target->GetPageStep ();
  20450. }
  20451. DllExport float
  20452. ScrollView_GetScrollDeceleration (Urho3D::ScrollView *_target)
  20453. {
  20454. return _target->GetScrollDeceleration ();
  20455. }
  20456. DllExport float
  20457. ScrollView_GetScrollSnapEpsilon (Urho3D::ScrollView *_target)
  20458. {
  20459. return _target->GetScrollSnapEpsilon ();
  20460. }
  20461. DllExport int
  20462. ScrollView_GetAutoDisableChildren (Urho3D::ScrollView *_target)
  20463. {
  20464. return _target->GetAutoDisableChildren ();
  20465. }
  20466. DllExport float
  20467. ScrollView_GetAutoDisableThreshold (Urho3D::ScrollView *_target)
  20468. {
  20469. return _target->GetAutoDisableThreshold ();
  20470. }
  20471. DllExport void
  20472. ScrollView_SetViewPositionAttr (Urho3D::ScrollView *_target, const class Urho3D::IntVector2 & value)
  20473. {
  20474. _target->SetViewPositionAttr (value);
  20475. }
  20476. DllExport int
  20477. ListView_GetType (Urho3D::ListView *_target)
  20478. {
  20479. return (_target->GetType ()).Value ();
  20480. }
  20481. DllExport const char *
  20482. ListView_GetTypeName (Urho3D::ListView *_target)
  20483. {
  20484. return stringdup((_target->GetTypeName ()).CString ());
  20485. }
  20486. DllExport int
  20487. ListView_GetTypeStatic ()
  20488. {
  20489. return (ListView::GetTypeStatic ()).Value ();
  20490. }
  20491. DllExport const char *
  20492. ListView_GetTypeNameStatic ()
  20493. {
  20494. return stringdup((ListView::GetTypeNameStatic ()).CString ());
  20495. }
  20496. DllExport void *
  20497. ListView_ListView (Urho3D::Context * context)
  20498. {
  20499. return WeakPtr<ListView>(new ListView(context));
  20500. }
  20501. DllExport void
  20502. ListView_RegisterObject (Urho3D::Context * context)
  20503. {
  20504. ListView::RegisterObject (context);
  20505. }
  20506. DllExport void
  20507. ListView_OnKey (Urho3D::ListView *_target, int key, int buttons, int qualifiers)
  20508. {
  20509. _target->OnKey (key, buttons, qualifiers);
  20510. }
  20511. DllExport void
  20512. ListView_OnResize (Urho3D::ListView *_target, const class Urho3D::IntVector2 & newSize, const class Urho3D::IntVector2 & delta)
  20513. {
  20514. _target->OnResize (newSize, delta);
  20515. }
  20516. DllExport void
  20517. ListView_AddItem (Urho3D::ListView *_target, Urho3D::UIElement * item)
  20518. {
  20519. _target->AddItem (item);
  20520. }
  20521. DllExport void
  20522. ListView_InsertItem (Urho3D::ListView *_target, unsigned int index, Urho3D::UIElement * item, Urho3D::UIElement * parentItem)
  20523. {
  20524. _target->InsertItem (index, item, parentItem);
  20525. }
  20526. DllExport void
  20527. ListView_RemoveItem (Urho3D::ListView *_target, Urho3D::UIElement * item, unsigned int index)
  20528. {
  20529. _target->RemoveItem (item, index);
  20530. }
  20531. DllExport void
  20532. ListView_RemoveItem0 (Urho3D::ListView *_target, unsigned int index)
  20533. {
  20534. _target->RemoveItem (index);
  20535. }
  20536. DllExport void
  20537. ListView_RemoveAllItems (Urho3D::ListView *_target)
  20538. {
  20539. _target->RemoveAllItems ();
  20540. }
  20541. DllExport void
  20542. ListView_SetSelection (Urho3D::ListView *_target, unsigned int index)
  20543. {
  20544. _target->SetSelection (index);
  20545. }
  20546. DllExport void
  20547. ListView_AddSelection (Urho3D::ListView *_target, unsigned int index)
  20548. {
  20549. _target->AddSelection (index);
  20550. }
  20551. DllExport void
  20552. ListView_RemoveSelection (Urho3D::ListView *_target, unsigned int index)
  20553. {
  20554. _target->RemoveSelection (index);
  20555. }
  20556. DllExport void
  20557. ListView_ToggleSelection (Urho3D::ListView *_target, unsigned int index)
  20558. {
  20559. _target->ToggleSelection (index);
  20560. }
  20561. DllExport void
  20562. ListView_ChangeSelection (Urho3D::ListView *_target, int delta, bool additive)
  20563. {
  20564. _target->ChangeSelection (delta, additive);
  20565. }
  20566. DllExport void
  20567. ListView_ClearSelection (Urho3D::ListView *_target)
  20568. {
  20569. _target->ClearSelection ();
  20570. }
  20571. DllExport void
  20572. ListView_SetHighlightMode (Urho3D::ListView *_target, enum Urho3D::HighlightMode mode)
  20573. {
  20574. _target->SetHighlightMode (mode);
  20575. }
  20576. DllExport void
  20577. ListView_SetMultiselect (Urho3D::ListView *_target, bool enable)
  20578. {
  20579. _target->SetMultiselect (enable);
  20580. }
  20581. DllExport void
  20582. ListView_SetHierarchyMode (Urho3D::ListView *_target, bool enable)
  20583. {
  20584. _target->SetHierarchyMode (enable);
  20585. }
  20586. DllExport void
  20587. ListView_SetBaseIndent (Urho3D::ListView *_target, int baseIndent)
  20588. {
  20589. _target->SetBaseIndent (baseIndent);
  20590. }
  20591. DllExport void
  20592. ListView_SetClearSelectionOnDefocus (Urho3D::ListView *_target, bool enable)
  20593. {
  20594. _target->SetClearSelectionOnDefocus (enable);
  20595. }
  20596. DllExport void
  20597. ListView_SetSelectOnClickEnd (Urho3D::ListView *_target, bool enable)
  20598. {
  20599. _target->SetSelectOnClickEnd (enable);
  20600. }
  20601. DllExport void
  20602. ListView_Expand (Urho3D::ListView *_target, unsigned int index, bool enable, bool recursive)
  20603. {
  20604. _target->Expand (index, enable, recursive);
  20605. }
  20606. DllExport void
  20607. ListView_ToggleExpand (Urho3D::ListView *_target, unsigned int index, bool recursive)
  20608. {
  20609. _target->ToggleExpand (index, recursive);
  20610. }
  20611. DllExport unsigned int
  20612. ListView_GetNumItems (Urho3D::ListView *_target)
  20613. {
  20614. return _target->GetNumItems ();
  20615. }
  20616. DllExport Urho3D::UIElement *
  20617. ListView_GetItem (Urho3D::ListView *_target, unsigned int index)
  20618. {
  20619. return _target->GetItem (index);
  20620. }
  20621. DllExport unsigned int
  20622. ListView_FindItem (Urho3D::ListView *_target, Urho3D::UIElement * item)
  20623. {
  20624. return _target->FindItem (item);
  20625. }
  20626. DllExport unsigned int
  20627. ListView_GetSelection (Urho3D::ListView *_target)
  20628. {
  20629. return _target->GetSelection ();
  20630. }
  20631. DllExport void
  20632. ListView_CopySelectedItemsToClipboard (Urho3D::ListView *_target)
  20633. {
  20634. _target->CopySelectedItemsToClipboard ();
  20635. }
  20636. DllExport Urho3D::UIElement *
  20637. ListView_GetSelectedItem (Urho3D::ListView *_target)
  20638. {
  20639. return _target->GetSelectedItem ();
  20640. }
  20641. DllExport int
  20642. ListView_IsSelected (Urho3D::ListView *_target, unsigned int index)
  20643. {
  20644. return _target->IsSelected (index);
  20645. }
  20646. DllExport int
  20647. ListView_IsExpanded (Urho3D::ListView *_target, unsigned int index)
  20648. {
  20649. return _target->IsExpanded (index);
  20650. }
  20651. DllExport enum Urho3D::HighlightMode
  20652. ListView_GetHighlightMode (Urho3D::ListView *_target)
  20653. {
  20654. return _target->GetHighlightMode ();
  20655. }
  20656. DllExport int
  20657. ListView_GetMultiselect (Urho3D::ListView *_target)
  20658. {
  20659. return _target->GetMultiselect ();
  20660. }
  20661. DllExport int
  20662. ListView_GetClearSelectionOnDefocus (Urho3D::ListView *_target)
  20663. {
  20664. return _target->GetClearSelectionOnDefocus ();
  20665. }
  20666. DllExport int
  20667. ListView_GetSelectOnClickEnd (Urho3D::ListView *_target)
  20668. {
  20669. return _target->GetSelectOnClickEnd ();
  20670. }
  20671. DllExport int
  20672. ListView_GetHierarchyMode (Urho3D::ListView *_target)
  20673. {
  20674. return _target->GetHierarchyMode ();
  20675. }
  20676. DllExport int
  20677. ListView_GetBaseIndent (Urho3D::ListView *_target)
  20678. {
  20679. return _target->GetBaseIndent ();
  20680. }
  20681. DllExport void
  20682. ListView_EnsureItemVisibility (Urho3D::ListView *_target, unsigned int index)
  20683. {
  20684. _target->EnsureItemVisibility (index);
  20685. }
  20686. DllExport void
  20687. ListView_EnsureItemVisibility1 (Urho3D::ListView *_target, Urho3D::UIElement * item)
  20688. {
  20689. _target->EnsureItemVisibility (item);
  20690. }
  20691. DllExport int
  20692. ScrollBar_GetType (Urho3D::ScrollBar *_target)
  20693. {
  20694. return (_target->GetType ()).Value ();
  20695. }
  20696. DllExport const char *
  20697. ScrollBar_GetTypeName (Urho3D::ScrollBar *_target)
  20698. {
  20699. return stringdup((_target->GetTypeName ()).CString ());
  20700. }
  20701. DllExport int
  20702. ScrollBar_GetTypeStatic ()
  20703. {
  20704. return (ScrollBar::GetTypeStatic ()).Value ();
  20705. }
  20706. DllExport const char *
  20707. ScrollBar_GetTypeNameStatic ()
  20708. {
  20709. return stringdup((ScrollBar::GetTypeNameStatic ()).CString ());
  20710. }
  20711. DllExport void *
  20712. ScrollBar_ScrollBar (Urho3D::Context * context)
  20713. {
  20714. return WeakPtr<ScrollBar>(new ScrollBar(context));
  20715. }
  20716. DllExport void
  20717. ScrollBar_RegisterObject (Urho3D::Context * context)
  20718. {
  20719. ScrollBar::RegisterObject (context);
  20720. }
  20721. DllExport void
  20722. ScrollBar_ApplyAttributes (Urho3D::ScrollBar *_target)
  20723. {
  20724. _target->ApplyAttributes ();
  20725. }
  20726. DllExport void
  20727. ScrollBar_OnResize (Urho3D::ScrollBar *_target, const class Urho3D::IntVector2 & newSize, const class Urho3D::IntVector2 & delta)
  20728. {
  20729. _target->OnResize (newSize, delta);
  20730. }
  20731. DllExport void
  20732. ScrollBar_OnSetEditable (Urho3D::ScrollBar *_target)
  20733. {
  20734. _target->OnSetEditable ();
  20735. }
  20736. DllExport void
  20737. ScrollBar_SetOrientation (Urho3D::ScrollBar *_target, enum Urho3D::Orientation orientation)
  20738. {
  20739. _target->SetOrientation (orientation);
  20740. }
  20741. DllExport void
  20742. ScrollBar_SetRange (Urho3D::ScrollBar *_target, float range)
  20743. {
  20744. _target->SetRange (range);
  20745. }
  20746. DllExport void
  20747. ScrollBar_SetValue (Urho3D::ScrollBar *_target, float value)
  20748. {
  20749. _target->SetValue (value);
  20750. }
  20751. DllExport void
  20752. ScrollBar_ChangeValue (Urho3D::ScrollBar *_target, float delta)
  20753. {
  20754. _target->ChangeValue (delta);
  20755. }
  20756. DllExport void
  20757. ScrollBar_SetScrollStep (Urho3D::ScrollBar *_target, float step)
  20758. {
  20759. _target->SetScrollStep (step);
  20760. }
  20761. DllExport void
  20762. ScrollBar_SetStepFactor (Urho3D::ScrollBar *_target, float factor)
  20763. {
  20764. _target->SetStepFactor (factor);
  20765. }
  20766. DllExport void
  20767. ScrollBar_StepBack (Urho3D::ScrollBar *_target)
  20768. {
  20769. _target->StepBack ();
  20770. }
  20771. DllExport void
  20772. ScrollBar_StepForward (Urho3D::ScrollBar *_target)
  20773. {
  20774. _target->StepForward ();
  20775. }
  20776. DllExport enum Urho3D::Orientation
  20777. ScrollBar_GetOrientation (Urho3D::ScrollBar *_target)
  20778. {
  20779. return _target->GetOrientation ();
  20780. }
  20781. DllExport float
  20782. ScrollBar_GetRange (Urho3D::ScrollBar *_target)
  20783. {
  20784. return _target->GetRange ();
  20785. }
  20786. DllExport float
  20787. ScrollBar_GetValue (Urho3D::ScrollBar *_target)
  20788. {
  20789. return _target->GetValue ();
  20790. }
  20791. DllExport float
  20792. ScrollBar_GetScrollStep (Urho3D::ScrollBar *_target)
  20793. {
  20794. return _target->GetScrollStep ();
  20795. }
  20796. DllExport float
  20797. ScrollBar_GetStepFactor (Urho3D::ScrollBar *_target)
  20798. {
  20799. return _target->GetStepFactor ();
  20800. }
  20801. DllExport float
  20802. ScrollBar_GetEffectiveScrollStep (Urho3D::ScrollBar *_target)
  20803. {
  20804. return _target->GetEffectiveScrollStep ();
  20805. }
  20806. DllExport Urho3D::Button *
  20807. ScrollBar_GetBackButton (Urho3D::ScrollBar *_target)
  20808. {
  20809. return _target->GetBackButton ();
  20810. }
  20811. DllExport Urho3D::Button *
  20812. ScrollBar_GetForwardButton (Urho3D::ScrollBar *_target)
  20813. {
  20814. return _target->GetForwardButton ();
  20815. }
  20816. DllExport Urho3D::Slider *
  20817. ScrollBar_GetSlider (Urho3D::ScrollBar *_target)
  20818. {
  20819. return _target->GetSlider ();
  20820. }
  20821. DllExport int
  20822. Slider_GetType (Urho3D::Slider *_target)
  20823. {
  20824. return (_target->GetType ()).Value ();
  20825. }
  20826. DllExport const char *
  20827. Slider_GetTypeName (Urho3D::Slider *_target)
  20828. {
  20829. return stringdup((_target->GetTypeName ()).CString ());
  20830. }
  20831. DllExport int
  20832. Slider_GetTypeStatic ()
  20833. {
  20834. return (Slider::GetTypeStatic ()).Value ();
  20835. }
  20836. DllExport const char *
  20837. Slider_GetTypeNameStatic ()
  20838. {
  20839. return stringdup((Slider::GetTypeNameStatic ()).CString ());
  20840. }
  20841. DllExport void *
  20842. Slider_Slider (Urho3D::Context * context)
  20843. {
  20844. return WeakPtr<Slider>(new Slider(context));
  20845. }
  20846. DllExport void
  20847. Slider_RegisterObject (Urho3D::Context * context)
  20848. {
  20849. Slider::RegisterObject (context);
  20850. }
  20851. DllExport void
  20852. Slider_Update (Urho3D::Slider *_target, float timeStep)
  20853. {
  20854. _target->Update (timeStep);
  20855. }
  20856. DllExport void
  20857. Slider_OnHover (Urho3D::Slider *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  20858. {
  20859. _target->OnHover (position, screenPosition, buttons, qualifiers, cursor);
  20860. }
  20861. DllExport void
  20862. Slider_OnClickBegin (Urho3D::Slider *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int button, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  20863. {
  20864. _target->OnClickBegin (position, screenPosition, button, buttons, qualifiers, cursor);
  20865. }
  20866. DllExport void
  20867. Slider_OnClickEnd (Urho3D::Slider *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int button, int buttons, int qualifiers, Urho3D::Cursor * cursor, Urho3D::UIElement * beginElement)
  20868. {
  20869. _target->OnClickEnd (position, screenPosition, button, buttons, qualifiers, cursor, beginElement);
  20870. }
  20871. DllExport void
  20872. Slider_OnResize (Urho3D::Slider *_target, const class Urho3D::IntVector2 & newSize, const class Urho3D::IntVector2 & delta)
  20873. {
  20874. _target->OnResize (newSize, delta);
  20875. }
  20876. DllExport void
  20877. Slider_SetOrientation (Urho3D::Slider *_target, enum Urho3D::Orientation orientation)
  20878. {
  20879. _target->SetOrientation (orientation);
  20880. }
  20881. DllExport void
  20882. Slider_SetRange (Urho3D::Slider *_target, float range)
  20883. {
  20884. _target->SetRange (range);
  20885. }
  20886. DllExport void
  20887. Slider_SetValue (Urho3D::Slider *_target, float value)
  20888. {
  20889. _target->SetValue (value);
  20890. }
  20891. DllExport void
  20892. Slider_ChangeValue (Urho3D::Slider *_target, float delta)
  20893. {
  20894. _target->ChangeValue (delta);
  20895. }
  20896. DllExport void
  20897. Slider_SetRepeatRate (Urho3D::Slider *_target, float rate)
  20898. {
  20899. _target->SetRepeatRate (rate);
  20900. }
  20901. DllExport enum Urho3D::Orientation
  20902. Slider_GetOrientation (Urho3D::Slider *_target)
  20903. {
  20904. return _target->GetOrientation ();
  20905. }
  20906. DllExport float
  20907. Slider_GetRange (Urho3D::Slider *_target)
  20908. {
  20909. return _target->GetRange ();
  20910. }
  20911. DllExport float
  20912. Slider_GetValue (Urho3D::Slider *_target)
  20913. {
  20914. return _target->GetValue ();
  20915. }
  20916. DllExport Urho3D::BorderImage *
  20917. Slider_GetKnob (Urho3D::Slider *_target)
  20918. {
  20919. return _target->GetKnob ();
  20920. }
  20921. DllExport float
  20922. Slider_GetRepeatRate (Urho3D::Slider *_target)
  20923. {
  20924. return _target->GetRepeatRate ();
  20925. }
  20926. DllExport int
  20927. Sprite_GetType (Urho3D::Sprite *_target)
  20928. {
  20929. return (_target->GetType ()).Value ();
  20930. }
  20931. DllExport const char *
  20932. Sprite_GetTypeName (Urho3D::Sprite *_target)
  20933. {
  20934. return stringdup((_target->GetTypeName ()).CString ());
  20935. }
  20936. DllExport int
  20937. Sprite_GetTypeStatic ()
  20938. {
  20939. return (Sprite::GetTypeStatic ()).Value ();
  20940. }
  20941. DllExport const char *
  20942. Sprite_GetTypeNameStatic ()
  20943. {
  20944. return stringdup((Sprite::GetTypeNameStatic ()).CString ());
  20945. }
  20946. DllExport void *
  20947. Sprite_Sprite (Urho3D::Context * context)
  20948. {
  20949. return WeakPtr<Sprite>(new Sprite(context));
  20950. }
  20951. DllExport void
  20952. Sprite_RegisterObject (Urho3D::Context * context)
  20953. {
  20954. Sprite::RegisterObject (context);
  20955. }
  20956. DllExport int
  20957. Sprite_IsWithinScissor (Urho3D::Sprite *_target, const class Urho3D::IntRect & currentScissor)
  20958. {
  20959. return _target->IsWithinScissor (currentScissor);
  20960. }
  20961. DllExport Interop::IntVector2
  20962. Sprite_GetScreenPosition (Urho3D::Sprite *_target)
  20963. {
  20964. return *((Interop::IntVector2 *) &(_target->GetScreenPosition ()));
  20965. }
  20966. DllExport void
  20967. Sprite_OnPositionSet (Urho3D::Sprite *_target, const class Urho3D::IntVector2 & newPosition)
  20968. {
  20969. _target->OnPositionSet (newPosition);
  20970. }
  20971. DllExport Interop::IntVector2
  20972. Sprite_ScreenToElement (Urho3D::Sprite *_target, const class Urho3D::IntVector2 & screenPosition)
  20973. {
  20974. return *((Interop::IntVector2 *) &(_target->ScreenToElement (screenPosition)));
  20975. }
  20976. DllExport Interop::IntVector2
  20977. Sprite_ElementToScreen (Urho3D::Sprite *_target, const class Urho3D::IntVector2 & position)
  20978. {
  20979. return *((Interop::IntVector2 *) &(_target->ElementToScreen (position)));
  20980. }
  20981. DllExport void
  20982. Sprite_SetPosition (Urho3D::Sprite *_target, const class Urho3D::Vector2 & position)
  20983. {
  20984. _target->SetPosition (position);
  20985. }
  20986. DllExport void
  20987. Sprite_SetPosition0 (Urho3D::Sprite *_target, float x, float y)
  20988. {
  20989. _target->SetPosition (x, y);
  20990. }
  20991. DllExport void
  20992. Sprite_SetHotSpot (Urho3D::Sprite *_target, const class Urho3D::IntVector2 & hotSpot)
  20993. {
  20994. _target->SetHotSpot (hotSpot);
  20995. }
  20996. DllExport void
  20997. Sprite_SetHotSpot1 (Urho3D::Sprite *_target, int x, int y)
  20998. {
  20999. _target->SetHotSpot (x, y);
  21000. }
  21001. DllExport void
  21002. Sprite_SetScale (Urho3D::Sprite *_target, const class Urho3D::Vector2 & scale)
  21003. {
  21004. _target->SetScale (scale);
  21005. }
  21006. DllExport void
  21007. Sprite_SetScale2 (Urho3D::Sprite *_target, float x, float y)
  21008. {
  21009. _target->SetScale (x, y);
  21010. }
  21011. DllExport void
  21012. Sprite_SetScale3 (Urho3D::Sprite *_target, float scale)
  21013. {
  21014. _target->SetScale (scale);
  21015. }
  21016. DllExport void
  21017. Sprite_SetRotation (Urho3D::Sprite *_target, float angle)
  21018. {
  21019. _target->SetRotation (angle);
  21020. }
  21021. DllExport void
  21022. Sprite_SetTexture (Urho3D::Sprite *_target, Urho3D::Texture * texture)
  21023. {
  21024. _target->SetTexture (texture);
  21025. }
  21026. DllExport void
  21027. Sprite_SetImageRect (Urho3D::Sprite *_target, const class Urho3D::IntRect & rect)
  21028. {
  21029. _target->SetImageRect (rect);
  21030. }
  21031. DllExport void
  21032. Sprite_SetFullImageRect (Urho3D::Sprite *_target)
  21033. {
  21034. _target->SetFullImageRect ();
  21035. }
  21036. DllExport void
  21037. Sprite_SetBlendMode (Urho3D::Sprite *_target, enum Urho3D::BlendMode mode)
  21038. {
  21039. _target->SetBlendMode (mode);
  21040. }
  21041. DllExport Interop::Vector2
  21042. Sprite_GetPosition (Urho3D::Sprite *_target)
  21043. {
  21044. return *((Interop::Vector2 *) &(_target->GetPosition ()));
  21045. }
  21046. DllExport Interop::IntVector2
  21047. Sprite_GetHotSpot (Urho3D::Sprite *_target)
  21048. {
  21049. return *((Interop::IntVector2 *) &(_target->GetHotSpot ()));
  21050. }
  21051. DllExport Interop::Vector2
  21052. Sprite_GetScale (Urho3D::Sprite *_target)
  21053. {
  21054. return *((Interop::Vector2 *) &(_target->GetScale ()));
  21055. }
  21056. DllExport float
  21057. Sprite_GetRotation (Urho3D::Sprite *_target)
  21058. {
  21059. return _target->GetRotation ();
  21060. }
  21061. DllExport Urho3D::Texture *
  21062. Sprite_GetTexture (Urho3D::Sprite *_target)
  21063. {
  21064. return _target->GetTexture ();
  21065. }
  21066. DllExport const class Urho3D::IntRect &
  21067. Sprite_GetImageRect (Urho3D::Sprite *_target)
  21068. {
  21069. return _target->GetImageRect ();
  21070. }
  21071. DllExport enum Urho3D::BlendMode
  21072. Sprite_GetBlendMode (Urho3D::Sprite *_target)
  21073. {
  21074. return _target->GetBlendMode ();
  21075. }
  21076. DllExport Urho3D::ResourceRef
  21077. Sprite_GetTextureAttr (Urho3D::Sprite *_target)
  21078. {
  21079. return _target->GetTextureAttr ();
  21080. }
  21081. DllExport Interop::Matrix3x4
  21082. Sprite_GetTransform (Urho3D::Sprite *_target)
  21083. {
  21084. return *((Interop::Matrix3x4 *) &(_target->GetTransform ()));
  21085. }
  21086. DllExport int
  21087. Text_GetType (Urho3D::Text *_target)
  21088. {
  21089. return (_target->GetType ()).Value ();
  21090. }
  21091. DllExport const char *
  21092. Text_GetTypeName (Urho3D::Text *_target)
  21093. {
  21094. return stringdup((_target->GetTypeName ()).CString ());
  21095. }
  21096. DllExport int
  21097. Text_GetTypeStatic ()
  21098. {
  21099. return (Text::GetTypeStatic ()).Value ();
  21100. }
  21101. DllExport const char *
  21102. Text_GetTypeNameStatic ()
  21103. {
  21104. return stringdup((Text::GetTypeNameStatic ()).CString ());
  21105. }
  21106. DllExport void *
  21107. Text_Text (Urho3D::Context * context)
  21108. {
  21109. return WeakPtr<Text>(new Text(context));
  21110. }
  21111. DllExport void
  21112. Text_RegisterObject (Urho3D::Context * context)
  21113. {
  21114. Text::RegisterObject (context);
  21115. }
  21116. DllExport void
  21117. Text_ApplyAttributes (Urho3D::Text *_target)
  21118. {
  21119. _target->ApplyAttributes ();
  21120. }
  21121. DllExport void
  21122. Text_OnResize (Urho3D::Text *_target, const class Urho3D::IntVector2 & newSize, const class Urho3D::IntVector2 & delta)
  21123. {
  21124. _target->OnResize (newSize, delta);
  21125. }
  21126. DllExport void
  21127. Text_OnIndentSet (Urho3D::Text *_target)
  21128. {
  21129. _target->OnIndentSet ();
  21130. }
  21131. DllExport int
  21132. Text_SetFont (Urho3D::Text *_target, const char * fontName, int size)
  21133. {
  21134. return _target->SetFont (Urho3D::String(fontName), size);
  21135. }
  21136. DllExport int
  21137. Text_SetFont0 (Urho3D::Text *_target, Urho3D::Font * font, int size)
  21138. {
  21139. return _target->SetFont (font, size);
  21140. }
  21141. DllExport int
  21142. Text_SetFontSize (Urho3D::Text *_target, int size)
  21143. {
  21144. return _target->SetFontSize (size);
  21145. }
  21146. DllExport void
  21147. Text_SetText (Urho3D::Text *_target, const char * text)
  21148. {
  21149. _target->SetText (Urho3D::String(text));
  21150. }
  21151. DllExport void
  21152. Text_SetTextAlignment (Urho3D::Text *_target, enum Urho3D::HorizontalAlignment align)
  21153. {
  21154. _target->SetTextAlignment (align);
  21155. }
  21156. DllExport void
  21157. Text_SetRowSpacing (Urho3D::Text *_target, float spacing)
  21158. {
  21159. _target->SetRowSpacing (spacing);
  21160. }
  21161. DllExport void
  21162. Text_SetWordwrap (Urho3D::Text *_target, bool enable)
  21163. {
  21164. _target->SetWordwrap (enable);
  21165. }
  21166. DllExport void
  21167. Text_SetAutoLocalizable (Urho3D::Text *_target, bool enable)
  21168. {
  21169. _target->SetAutoLocalizable (enable);
  21170. }
  21171. DllExport void
  21172. Text_SetSelection (Urho3D::Text *_target, unsigned int start, unsigned int length)
  21173. {
  21174. _target->SetSelection (start, length);
  21175. }
  21176. DllExport void
  21177. Text_ClearSelection (Urho3D::Text *_target)
  21178. {
  21179. _target->ClearSelection ();
  21180. }
  21181. DllExport void
  21182. Text_SetSelectionColor (Urho3D::Text *_target, const class Urho3D::Color & color)
  21183. {
  21184. _target->SetSelectionColor (color);
  21185. }
  21186. DllExport void
  21187. Text_SetHoverColor (Urho3D::Text *_target, const class Urho3D::Color & color)
  21188. {
  21189. _target->SetHoverColor (color);
  21190. }
  21191. DllExport void
  21192. Text_SetTextEffect (Urho3D::Text *_target, enum Urho3D::TextEffect textEffect)
  21193. {
  21194. _target->SetTextEffect (textEffect);
  21195. }
  21196. DllExport void
  21197. Text_SetEffectShadowOffset (Urho3D::Text *_target, const class Urho3D::IntVector2 & offset)
  21198. {
  21199. _target->SetEffectShadowOffset (offset);
  21200. }
  21201. DllExport void
  21202. Text_SetEffectStrokeThickness (Urho3D::Text *_target, int thickness)
  21203. {
  21204. _target->SetEffectStrokeThickness (thickness);
  21205. }
  21206. DllExport void
  21207. Text_SetEffectRoundStroke (Urho3D::Text *_target, bool roundStroke)
  21208. {
  21209. _target->SetEffectRoundStroke (roundStroke);
  21210. }
  21211. DllExport void
  21212. Text_SetEffectColor (Urho3D::Text *_target, const class Urho3D::Color & effectColor)
  21213. {
  21214. _target->SetEffectColor (effectColor);
  21215. }
  21216. DllExport Urho3D::Font *
  21217. Text_GetFont (Urho3D::Text *_target)
  21218. {
  21219. return _target->GetFont ();
  21220. }
  21221. DllExport int
  21222. Text_GetFontSize (Urho3D::Text *_target)
  21223. {
  21224. return _target->GetFontSize ();
  21225. }
  21226. DllExport const char *
  21227. Text_GetText (Urho3D::Text *_target)
  21228. {
  21229. return stringdup((_target->GetText ()).CString ());
  21230. }
  21231. DllExport enum Urho3D::HorizontalAlignment
  21232. Text_GetTextAlignment (Urho3D::Text *_target)
  21233. {
  21234. return _target->GetTextAlignment ();
  21235. }
  21236. DllExport float
  21237. Text_GetRowSpacing (Urho3D::Text *_target)
  21238. {
  21239. return _target->GetRowSpacing ();
  21240. }
  21241. DllExport int
  21242. Text_GetWordwrap (Urho3D::Text *_target)
  21243. {
  21244. return _target->GetWordwrap ();
  21245. }
  21246. DllExport int
  21247. Text_GetAutoLocalizable (Urho3D::Text *_target)
  21248. {
  21249. return _target->GetAutoLocalizable ();
  21250. }
  21251. DllExport unsigned int
  21252. Text_GetSelectionStart (Urho3D::Text *_target)
  21253. {
  21254. return _target->GetSelectionStart ();
  21255. }
  21256. DllExport unsigned int
  21257. Text_GetSelectionLength (Urho3D::Text *_target)
  21258. {
  21259. return _target->GetSelectionLength ();
  21260. }
  21261. DllExport Interop::Color
  21262. Text_GetSelectionColor (Urho3D::Text *_target)
  21263. {
  21264. return *((Interop::Color *) &(_target->GetSelectionColor ()));
  21265. }
  21266. DllExport Interop::Color
  21267. Text_GetHoverColor (Urho3D::Text *_target)
  21268. {
  21269. return *((Interop::Color *) &(_target->GetHoverColor ()));
  21270. }
  21271. DllExport enum Urho3D::TextEffect
  21272. Text_GetTextEffect (Urho3D::Text *_target)
  21273. {
  21274. return _target->GetTextEffect ();
  21275. }
  21276. DllExport Interop::IntVector2
  21277. Text_GetEffectShadowOffset (Urho3D::Text *_target)
  21278. {
  21279. return *((Interop::IntVector2 *) &(_target->GetEffectShadowOffset ()));
  21280. }
  21281. DllExport int
  21282. Text_GetEffectStrokeThickness (Urho3D::Text *_target)
  21283. {
  21284. return _target->GetEffectStrokeThickness ();
  21285. }
  21286. DllExport int
  21287. Text_GetEffectRoundStroke (Urho3D::Text *_target)
  21288. {
  21289. return _target->GetEffectRoundStroke ();
  21290. }
  21291. DllExport Interop::Color
  21292. Text_GetEffectColor (Urho3D::Text *_target)
  21293. {
  21294. return *((Interop::Color *) &(_target->GetEffectColor ()));
  21295. }
  21296. DllExport int
  21297. Text_GetRowHeight (Urho3D::Text *_target)
  21298. {
  21299. return _target->GetRowHeight ();
  21300. }
  21301. DllExport unsigned int
  21302. Text_GetNumRows (Urho3D::Text *_target)
  21303. {
  21304. return _target->GetNumRows ();
  21305. }
  21306. DllExport unsigned int
  21307. Text_GetNumChars (Urho3D::Text *_target)
  21308. {
  21309. return _target->GetNumChars ();
  21310. }
  21311. DllExport int
  21312. Text_GetRowWidth (Urho3D::Text *_target, unsigned int index)
  21313. {
  21314. return _target->GetRowWidth (index);
  21315. }
  21316. DllExport Interop::IntVector2
  21317. Text_GetCharPosition (Urho3D::Text *_target, unsigned int index)
  21318. {
  21319. return *((Interop::IntVector2 *) &(_target->GetCharPosition (index)));
  21320. }
  21321. DllExport Interop::IntVector2
  21322. Text_GetCharSize (Urho3D::Text *_target, unsigned int index)
  21323. {
  21324. return *((Interop::IntVector2 *) &(_target->GetCharSize (index)));
  21325. }
  21326. DllExport void
  21327. Text_SetEffectDepthBias (Urho3D::Text *_target, float bias)
  21328. {
  21329. _target->SetEffectDepthBias (bias);
  21330. }
  21331. DllExport float
  21332. Text_GetEffectDepthBias (Urho3D::Text *_target)
  21333. {
  21334. return _target->GetEffectDepthBias ();
  21335. }
  21336. DllExport Urho3D::ResourceRef
  21337. Text_GetFontAttr (Urho3D::Text *_target)
  21338. {
  21339. return _target->GetFontAttr ();
  21340. }
  21341. DllExport void
  21342. Text_SetTextAttr (Urho3D::Text *_target, const char * value)
  21343. {
  21344. _target->SetTextAttr (Urho3D::String(value));
  21345. }
  21346. DllExport const char *
  21347. Text_GetTextAttr (Urho3D::Text *_target)
  21348. {
  21349. return stringdup((_target->GetTextAttr ()).CString ());
  21350. }
  21351. DllExport int
  21352. Text3D_GetType (Urho3D::Text3D *_target)
  21353. {
  21354. return (_target->GetType ()).Value ();
  21355. }
  21356. DllExport const char *
  21357. Text3D_GetTypeName (Urho3D::Text3D *_target)
  21358. {
  21359. return stringdup((_target->GetTypeName ()).CString ());
  21360. }
  21361. DllExport int
  21362. Text3D_GetTypeStatic ()
  21363. {
  21364. return (Text3D::GetTypeStatic ()).Value ();
  21365. }
  21366. DllExport const char *
  21367. Text3D_GetTypeNameStatic ()
  21368. {
  21369. return stringdup((Text3D::GetTypeNameStatic ()).CString ());
  21370. }
  21371. DllExport void *
  21372. Text3D_Text3D (Urho3D::Context * context)
  21373. {
  21374. return WeakPtr<Text3D>(new Text3D(context));
  21375. }
  21376. DllExport void
  21377. Text3D_RegisterObject (Urho3D::Context * context)
  21378. {
  21379. Text3D::RegisterObject (context);
  21380. }
  21381. DllExport void
  21382. Text3D_ApplyAttributes (Urho3D::Text3D *_target)
  21383. {
  21384. _target->ApplyAttributes ();
  21385. }
  21386. DllExport enum Urho3D::UpdateGeometryType
  21387. Text3D_GetUpdateGeometryType (Urho3D::Text3D *_target)
  21388. {
  21389. return _target->GetUpdateGeometryType ();
  21390. }
  21391. DllExport int
  21392. Text3D_SetFont (Urho3D::Text3D *_target, const char * fontName, int size)
  21393. {
  21394. return _target->SetFont (Urho3D::String(fontName), size);
  21395. }
  21396. DllExport int
  21397. Text3D_SetFont0 (Urho3D::Text3D *_target, Urho3D::Font * font, int size)
  21398. {
  21399. return _target->SetFont (font, size);
  21400. }
  21401. DllExport int
  21402. Text3D_SetFontSize (Urho3D::Text3D *_target, int size)
  21403. {
  21404. return _target->SetFontSize (size);
  21405. }
  21406. DllExport void
  21407. Text3D_SetMaterial (Urho3D::Text3D *_target, Urho3D::Material * material)
  21408. {
  21409. _target->SetMaterial (material);
  21410. }
  21411. DllExport void
  21412. Text3D_SetText (Urho3D::Text3D *_target, const char * text)
  21413. {
  21414. _target->SetText (Urho3D::String(text));
  21415. }
  21416. DllExport void
  21417. Text3D_SetAlignment (Urho3D::Text3D *_target, enum Urho3D::HorizontalAlignment hAlign, enum Urho3D::VerticalAlignment vAlign)
  21418. {
  21419. _target->SetAlignment (hAlign, vAlign);
  21420. }
  21421. DllExport void
  21422. Text3D_SetHorizontalAlignment (Urho3D::Text3D *_target, enum Urho3D::HorizontalAlignment align)
  21423. {
  21424. _target->SetHorizontalAlignment (align);
  21425. }
  21426. DllExport void
  21427. Text3D_SetVerticalAlignment (Urho3D::Text3D *_target, enum Urho3D::VerticalAlignment align)
  21428. {
  21429. _target->SetVerticalAlignment (align);
  21430. }
  21431. DllExport void
  21432. Text3D_SetTextAlignment (Urho3D::Text3D *_target, enum Urho3D::HorizontalAlignment align)
  21433. {
  21434. _target->SetTextAlignment (align);
  21435. }
  21436. DllExport void
  21437. Text3D_SetRowSpacing (Urho3D::Text3D *_target, float spacing)
  21438. {
  21439. _target->SetRowSpacing (spacing);
  21440. }
  21441. DllExport void
  21442. Text3D_SetWordwrap (Urho3D::Text3D *_target, bool enable)
  21443. {
  21444. _target->SetWordwrap (enable);
  21445. }
  21446. DllExport void
  21447. Text3D_SetTextEffect (Urho3D::Text3D *_target, enum Urho3D::TextEffect textEffect)
  21448. {
  21449. _target->SetTextEffect (textEffect);
  21450. }
  21451. DllExport void
  21452. Text3D_SetEffectShadowOffset (Urho3D::Text3D *_target, const class Urho3D::IntVector2 & offset)
  21453. {
  21454. _target->SetEffectShadowOffset (offset);
  21455. }
  21456. DllExport void
  21457. Text3D_SetEffectStrokeThickness (Urho3D::Text3D *_target, int thickness)
  21458. {
  21459. _target->SetEffectStrokeThickness (thickness);
  21460. }
  21461. DllExport void
  21462. Text3D_SetEffectRoundStroke (Urho3D::Text3D *_target, bool roundStroke)
  21463. {
  21464. _target->SetEffectRoundStroke (roundStroke);
  21465. }
  21466. DllExport void
  21467. Text3D_SetEffectColor (Urho3D::Text3D *_target, const class Urho3D::Color & effectColor)
  21468. {
  21469. _target->SetEffectColor (effectColor);
  21470. }
  21471. DllExport void
  21472. Text3D_SetEffectDepthBias (Urho3D::Text3D *_target, float bias)
  21473. {
  21474. _target->SetEffectDepthBias (bias);
  21475. }
  21476. DllExport void
  21477. Text3D_SetWidth (Urho3D::Text3D *_target, int width)
  21478. {
  21479. _target->SetWidth (width);
  21480. }
  21481. DllExport void
  21482. Text3D_SetColor (Urho3D::Text3D *_target, const class Urho3D::Color & color)
  21483. {
  21484. _target->SetColor (color);
  21485. }
  21486. DllExport void
  21487. Text3D_SetColor1 (Urho3D::Text3D *_target, enum Urho3D::Corner corner, const class Urho3D::Color & color)
  21488. {
  21489. _target->SetColor (corner, color);
  21490. }
  21491. DllExport void
  21492. Text3D_SetOpacity (Urho3D::Text3D *_target, float opacity)
  21493. {
  21494. _target->SetOpacity (opacity);
  21495. }
  21496. DllExport void
  21497. Text3D_SetFixedScreenSize (Urho3D::Text3D *_target, bool enable)
  21498. {
  21499. _target->SetFixedScreenSize (enable);
  21500. }
  21501. DllExport void
  21502. Text3D_SetFaceCameraMode (Urho3D::Text3D *_target, enum Urho3D::FaceCameraMode mode)
  21503. {
  21504. _target->SetFaceCameraMode (mode);
  21505. }
  21506. DllExport Urho3D::Font *
  21507. Text3D_GetFont (Urho3D::Text3D *_target)
  21508. {
  21509. return _target->GetFont ();
  21510. }
  21511. DllExport int
  21512. Text3D_GetFontSize (Urho3D::Text3D *_target)
  21513. {
  21514. return _target->GetFontSize ();
  21515. }
  21516. DllExport Urho3D::Material *
  21517. Text3D_GetMaterial (Urho3D::Text3D *_target)
  21518. {
  21519. return _target->GetMaterial ();
  21520. }
  21521. DllExport const char *
  21522. Text3D_GetText (Urho3D::Text3D *_target)
  21523. {
  21524. return stringdup((_target->GetText ()).CString ());
  21525. }
  21526. DllExport enum Urho3D::HorizontalAlignment
  21527. Text3D_GetTextAlignment (Urho3D::Text3D *_target)
  21528. {
  21529. return _target->GetTextAlignment ();
  21530. }
  21531. DllExport enum Urho3D::HorizontalAlignment
  21532. Text3D_GetHorizontalAlignment (Urho3D::Text3D *_target)
  21533. {
  21534. return _target->GetHorizontalAlignment ();
  21535. }
  21536. DllExport enum Urho3D::VerticalAlignment
  21537. Text3D_GetVerticalAlignment (Urho3D::Text3D *_target)
  21538. {
  21539. return _target->GetVerticalAlignment ();
  21540. }
  21541. DllExport float
  21542. Text3D_GetRowSpacing (Urho3D::Text3D *_target)
  21543. {
  21544. return _target->GetRowSpacing ();
  21545. }
  21546. DllExport int
  21547. Text3D_GetWordwrap (Urho3D::Text3D *_target)
  21548. {
  21549. return _target->GetWordwrap ();
  21550. }
  21551. DllExport enum Urho3D::TextEffect
  21552. Text3D_GetTextEffect (Urho3D::Text3D *_target)
  21553. {
  21554. return _target->GetTextEffect ();
  21555. }
  21556. DllExport Interop::IntVector2
  21557. Text3D_GetEffectShadowOffset (Urho3D::Text3D *_target)
  21558. {
  21559. return *((Interop::IntVector2 *) &(_target->GetEffectShadowOffset ()));
  21560. }
  21561. DllExport int
  21562. Text3D_GetEffectStrokeThickness (Urho3D::Text3D *_target)
  21563. {
  21564. return _target->GetEffectStrokeThickness ();
  21565. }
  21566. DllExport int
  21567. Text3D_GetEffectRoundStroke (Urho3D::Text3D *_target)
  21568. {
  21569. return _target->GetEffectRoundStroke ();
  21570. }
  21571. DllExport Interop::Color
  21572. Text3D_GetEffectColor (Urho3D::Text3D *_target)
  21573. {
  21574. return *((Interop::Color *) &(_target->GetEffectColor ()));
  21575. }
  21576. DllExport float
  21577. Text3D_GetEffectDepthBias (Urho3D::Text3D *_target)
  21578. {
  21579. return _target->GetEffectDepthBias ();
  21580. }
  21581. DllExport int
  21582. Text3D_GetWidth (Urho3D::Text3D *_target)
  21583. {
  21584. return _target->GetWidth ();
  21585. }
  21586. DllExport int
  21587. Text3D_GetRowHeight (Urho3D::Text3D *_target)
  21588. {
  21589. return _target->GetRowHeight ();
  21590. }
  21591. DllExport unsigned int
  21592. Text3D_GetNumRows (Urho3D::Text3D *_target)
  21593. {
  21594. return _target->GetNumRows ();
  21595. }
  21596. DllExport unsigned int
  21597. Text3D_GetNumChars (Urho3D::Text3D *_target)
  21598. {
  21599. return _target->GetNumChars ();
  21600. }
  21601. DllExport int
  21602. Text3D_GetRowWidth (Urho3D::Text3D *_target, unsigned int index)
  21603. {
  21604. return _target->GetRowWidth (index);
  21605. }
  21606. DllExport Interop::IntVector2
  21607. Text3D_GetCharPosition (Urho3D::Text3D *_target, unsigned int index)
  21608. {
  21609. return *((Interop::IntVector2 *) &(_target->GetCharPosition (index)));
  21610. }
  21611. DllExport Interop::IntVector2
  21612. Text3D_GetCharSize (Urho3D::Text3D *_target, unsigned int index)
  21613. {
  21614. return *((Interop::IntVector2 *) &(_target->GetCharSize (index)));
  21615. }
  21616. DllExport Interop::Color
  21617. Text3D_GetColor (Urho3D::Text3D *_target, enum Urho3D::Corner corner)
  21618. {
  21619. return *((Interop::Color *) &(_target->GetColor (corner)));
  21620. }
  21621. DllExport float
  21622. Text3D_GetOpacity (Urho3D::Text3D *_target)
  21623. {
  21624. return _target->GetOpacity ();
  21625. }
  21626. DllExport int
  21627. Text3D_IsFixedScreenSize (Urho3D::Text3D *_target)
  21628. {
  21629. return _target->IsFixedScreenSize ();
  21630. }
  21631. DllExport enum Urho3D::FaceCameraMode
  21632. Text3D_GetFaceCameraMode (Urho3D::Text3D *_target)
  21633. {
  21634. return _target->GetFaceCameraMode ();
  21635. }
  21636. DllExport Urho3D::ResourceRef
  21637. Text3D_GetFontAttr (Urho3D::Text3D *_target)
  21638. {
  21639. return _target->GetFontAttr ();
  21640. }
  21641. DllExport Urho3D::ResourceRef
  21642. Text3D_GetMaterialAttr (Urho3D::Text3D *_target)
  21643. {
  21644. return _target->GetMaterialAttr ();
  21645. }
  21646. DllExport void
  21647. Text3D_SetTextAttr (Urho3D::Text3D *_target, const char * value)
  21648. {
  21649. _target->SetTextAttr (Urho3D::String(value));
  21650. }
  21651. DllExport const char *
  21652. Text3D_GetTextAttr (Urho3D::Text3D *_target)
  21653. {
  21654. return stringdup((_target->GetTextAttr ()).CString ());
  21655. }
  21656. DllExport Interop::Color
  21657. Text3D_GetColorAttr (Urho3D::Text3D *_target)
  21658. {
  21659. return *((Interop::Color *) &(_target->GetColorAttr ()));
  21660. }
  21661. DllExport int
  21662. ToolTip_GetType (Urho3D::ToolTip *_target)
  21663. {
  21664. return (_target->GetType ()).Value ();
  21665. }
  21666. DllExport const char *
  21667. ToolTip_GetTypeName (Urho3D::ToolTip *_target)
  21668. {
  21669. return stringdup((_target->GetTypeName ()).CString ());
  21670. }
  21671. DllExport int
  21672. ToolTip_GetTypeStatic ()
  21673. {
  21674. return (ToolTip::GetTypeStatic ()).Value ();
  21675. }
  21676. DllExport const char *
  21677. ToolTip_GetTypeNameStatic ()
  21678. {
  21679. return stringdup((ToolTip::GetTypeNameStatic ()).CString ());
  21680. }
  21681. DllExport void *
  21682. ToolTip_ToolTip (Urho3D::Context * context)
  21683. {
  21684. return WeakPtr<ToolTip>(new ToolTip(context));
  21685. }
  21686. DllExport void
  21687. ToolTip_RegisterObject (Urho3D::Context * context)
  21688. {
  21689. ToolTip::RegisterObject (context);
  21690. }
  21691. DllExport void
  21692. ToolTip_Update (Urho3D::ToolTip *_target, float timeStep)
  21693. {
  21694. _target->Update (timeStep);
  21695. }
  21696. DllExport void
  21697. ToolTip_SetDelay (Urho3D::ToolTip *_target, float delay)
  21698. {
  21699. _target->SetDelay (delay);
  21700. }
  21701. DllExport float
  21702. ToolTip_GetDelay (Urho3D::ToolTip *_target)
  21703. {
  21704. return _target->GetDelay ();
  21705. }
  21706. DllExport int
  21707. UI_GetType (Urho3D::UI *_target)
  21708. {
  21709. return (_target->GetType ()).Value ();
  21710. }
  21711. DllExport const char *
  21712. UI_GetTypeName (Urho3D::UI *_target)
  21713. {
  21714. return stringdup((_target->GetTypeName ()).CString ());
  21715. }
  21716. DllExport int
  21717. UI_GetTypeStatic ()
  21718. {
  21719. return (UI::GetTypeStatic ()).Value ();
  21720. }
  21721. DllExport const char *
  21722. UI_GetTypeNameStatic ()
  21723. {
  21724. return stringdup((UI::GetTypeNameStatic ()).CString ());
  21725. }
  21726. DllExport void *
  21727. UI_UI (Urho3D::Context * context)
  21728. {
  21729. return WeakPtr<UI>(new UI(context));
  21730. }
  21731. DllExport void
  21732. UI_SetCursor (Urho3D::UI *_target, Urho3D::Cursor * cursor)
  21733. {
  21734. _target->SetCursor (cursor);
  21735. }
  21736. DllExport void
  21737. UI_SetFocusElement (Urho3D::UI *_target, Urho3D::UIElement * element, bool byKey)
  21738. {
  21739. _target->SetFocusElement (element, byKey);
  21740. }
  21741. DllExport int
  21742. UI_SetModalElement (Urho3D::UI *_target, Urho3D::UIElement * modalElement, bool enable)
  21743. {
  21744. return _target->SetModalElement (modalElement, enable);
  21745. }
  21746. DllExport void
  21747. UI_Clear (Urho3D::UI *_target)
  21748. {
  21749. _target->Clear ();
  21750. }
  21751. DllExport void
  21752. UI_Update (Urho3D::UI *_target, float timeStep)
  21753. {
  21754. _target->Update (timeStep);
  21755. }
  21756. DllExport void
  21757. UI_RenderUpdate (Urho3D::UI *_target)
  21758. {
  21759. _target->RenderUpdate ();
  21760. }
  21761. DllExport void
  21762. UI_Render (Urho3D::UI *_target, bool resetRenderTargets)
  21763. {
  21764. _target->Render (resetRenderTargets);
  21765. }
  21766. DllExport void
  21767. UI_DebugDraw (Urho3D::UI *_target, Urho3D::UIElement * element)
  21768. {
  21769. _target->DebugDraw (element);
  21770. }
  21771. DllExport Urho3D::UIElement *
  21772. UI_LoadLayout_File (Urho3D::UI *_target, File * source, Urho3D::XMLFile * styleFile)
  21773. {
  21774. auto copy = _target->LoadLayout (*source, styleFile);
  21775. auto plain = copy.Get();
  21776. copy.Detach();
  21777. delete copy;
  21778. return plain;
  21779. }
  21780. DllExport Urho3D::UIElement *
  21781. UI_LoadLayout_MemoryBuffer (Urho3D::UI *_target, MemoryBuffer * source, Urho3D::XMLFile * styleFile)
  21782. {
  21783. auto copy = _target->LoadLayout (*source, styleFile);
  21784. auto plain = copy.Get();
  21785. copy.Detach();
  21786. delete copy;
  21787. return plain;
  21788. }
  21789. DllExport Urho3D::UIElement *
  21790. UI_LoadLayout0 (Urho3D::UI *_target, Urho3D::XMLFile * file, Urho3D::XMLFile * styleFile)
  21791. {
  21792. auto copy = _target->LoadLayout (file, styleFile);
  21793. auto plain = copy.Get();
  21794. copy.Detach();
  21795. delete copy;
  21796. return plain;
  21797. }
  21798. DllExport int
  21799. UI_SaveLayout_File (Urho3D::UI *_target, File * dest, Urho3D::UIElement * element)
  21800. {
  21801. return _target->SaveLayout (*dest, element);
  21802. }
  21803. DllExport int
  21804. UI_SaveLayout_MemoryBuffer (Urho3D::UI *_target, MemoryBuffer * dest, Urho3D::UIElement * element)
  21805. {
  21806. return _target->SaveLayout (*dest, element);
  21807. }
  21808. DllExport void
  21809. UI_SetClipboardText (Urho3D::UI *_target, const char * text)
  21810. {
  21811. _target->SetClipboardText (Urho3D::String(text));
  21812. }
  21813. DllExport void
  21814. UI_SetDoubleClickInterval (Urho3D::UI *_target, float interval)
  21815. {
  21816. _target->SetDoubleClickInterval (interval);
  21817. }
  21818. DllExport void
  21819. UI_SetDragBeginInterval (Urho3D::UI *_target, float interval)
  21820. {
  21821. _target->SetDragBeginInterval (interval);
  21822. }
  21823. DllExport void
  21824. UI_SetDragBeginDistance (Urho3D::UI *_target, int pixels)
  21825. {
  21826. _target->SetDragBeginDistance (pixels);
  21827. }
  21828. DllExport void
  21829. UI_SetDefaultToolTipDelay (Urho3D::UI *_target, float delay)
  21830. {
  21831. _target->SetDefaultToolTipDelay (delay);
  21832. }
  21833. DllExport void
  21834. UI_SetMaxFontTextureSize (Urho3D::UI *_target, int size)
  21835. {
  21836. _target->SetMaxFontTextureSize (size);
  21837. }
  21838. DllExport void
  21839. UI_SetNonFocusedMouseWheel (Urho3D::UI *_target, bool nonFocusedMouseWheel)
  21840. {
  21841. _target->SetNonFocusedMouseWheel (nonFocusedMouseWheel);
  21842. }
  21843. DllExport void
  21844. UI_SetUseSystemClipboard (Urho3D::UI *_target, bool enable)
  21845. {
  21846. _target->SetUseSystemClipboard (enable);
  21847. }
  21848. DllExport void
  21849. UI_SetUseScreenKeyboard (Urho3D::UI *_target, bool enable)
  21850. {
  21851. _target->SetUseScreenKeyboard (enable);
  21852. }
  21853. DllExport void
  21854. UI_SetUseMutableGlyphs (Urho3D::UI *_target, bool enable)
  21855. {
  21856. _target->SetUseMutableGlyphs (enable);
  21857. }
  21858. DllExport void
  21859. UI_SetForceAutoHint (Urho3D::UI *_target, bool enable)
  21860. {
  21861. _target->SetForceAutoHint (enable);
  21862. }
  21863. DllExport void
  21864. UI_SetScale (Urho3D::UI *_target, float scale)
  21865. {
  21866. _target->SetScale (scale);
  21867. }
  21868. DllExport void
  21869. UI_SetWidth (Urho3D::UI *_target, float width)
  21870. {
  21871. _target->SetWidth (width);
  21872. }
  21873. DllExport void
  21874. UI_SetHeight (Urho3D::UI *_target, float height)
  21875. {
  21876. _target->SetHeight (height);
  21877. }
  21878. DllExport void
  21879. UI_SetCustomSize (Urho3D::UI *_target, const class Urho3D::IntVector2 & size)
  21880. {
  21881. _target->SetCustomSize (size);
  21882. }
  21883. DllExport void
  21884. UI_SetCustomSize1 (Urho3D::UI *_target, int width, int height)
  21885. {
  21886. _target->SetCustomSize (width, height);
  21887. }
  21888. DllExport Urho3D::UIElement *
  21889. UI_GetRoot (Urho3D::UI *_target)
  21890. {
  21891. return _target->GetRoot ();
  21892. }
  21893. DllExport Urho3D::UIElement *
  21894. UI_GetRootModalElement (Urho3D::UI *_target)
  21895. {
  21896. return _target->GetRootModalElement ();
  21897. }
  21898. DllExport Urho3D::Cursor *
  21899. UI_GetCursor (Urho3D::UI *_target)
  21900. {
  21901. return _target->GetCursor ();
  21902. }
  21903. DllExport Interop::IntVector2
  21904. UI_GetCursorPosition (Urho3D::UI *_target)
  21905. {
  21906. return *((Interop::IntVector2 *) &(_target->GetCursorPosition ()));
  21907. }
  21908. DllExport Urho3D::UIElement *
  21909. UI_GetElementAt (Urho3D::UI *_target, const class Urho3D::IntVector2 & position, bool enabledOnly)
  21910. {
  21911. return _target->GetElementAt (position, enabledOnly);
  21912. }
  21913. DllExport Urho3D::UIElement *
  21914. UI_GetElementAt2 (Urho3D::UI *_target, int x, int y, bool enabledOnly)
  21915. {
  21916. return _target->GetElementAt (x, y, enabledOnly);
  21917. }
  21918. DllExport Urho3D::UIElement *
  21919. UI_GetFocusElement (Urho3D::UI *_target)
  21920. {
  21921. return _target->GetFocusElement ();
  21922. }
  21923. DllExport Urho3D::UIElement *
  21924. UI_GetFrontElement (Urho3D::UI *_target)
  21925. {
  21926. return _target->GetFrontElement ();
  21927. }
  21928. DllExport unsigned int
  21929. UI_GetNumDragElements (Urho3D::UI *_target)
  21930. {
  21931. return _target->GetNumDragElements ();
  21932. }
  21933. DllExport Urho3D::UIElement *
  21934. UI_GetDragElement (Urho3D::UI *_target, unsigned int index)
  21935. {
  21936. return _target->GetDragElement (index);
  21937. }
  21938. DllExport const char *
  21939. UI_GetClipboardText (Urho3D::UI *_target)
  21940. {
  21941. return stringdup((_target->GetClipboardText ()).CString ());
  21942. }
  21943. DllExport float
  21944. UI_GetDoubleClickInterval (Urho3D::UI *_target)
  21945. {
  21946. return _target->GetDoubleClickInterval ();
  21947. }
  21948. DllExport float
  21949. UI_GetDragBeginInterval (Urho3D::UI *_target)
  21950. {
  21951. return _target->GetDragBeginInterval ();
  21952. }
  21953. DllExport int
  21954. UI_GetDragBeginDistance (Urho3D::UI *_target)
  21955. {
  21956. return _target->GetDragBeginDistance ();
  21957. }
  21958. DllExport float
  21959. UI_GetDefaultToolTipDelay (Urho3D::UI *_target)
  21960. {
  21961. return _target->GetDefaultToolTipDelay ();
  21962. }
  21963. DllExport int
  21964. UI_GetMaxFontTextureSize (Urho3D::UI *_target)
  21965. {
  21966. return _target->GetMaxFontTextureSize ();
  21967. }
  21968. DllExport int
  21969. UI_IsNonFocusedMouseWheel (Urho3D::UI *_target)
  21970. {
  21971. return _target->IsNonFocusedMouseWheel ();
  21972. }
  21973. DllExport int
  21974. UI_GetUseSystemClipboard (Urho3D::UI *_target)
  21975. {
  21976. return _target->GetUseSystemClipboard ();
  21977. }
  21978. DllExport int
  21979. UI_GetUseScreenKeyboard (Urho3D::UI *_target)
  21980. {
  21981. return _target->GetUseScreenKeyboard ();
  21982. }
  21983. DllExport int
  21984. UI_GetUseMutableGlyphs (Urho3D::UI *_target)
  21985. {
  21986. return _target->GetUseMutableGlyphs ();
  21987. }
  21988. DllExport int
  21989. UI_GetForceAutoHint (Urho3D::UI *_target)
  21990. {
  21991. return _target->GetForceAutoHint ();
  21992. }
  21993. DllExport int
  21994. UI_HasModalElement (Urho3D::UI *_target)
  21995. {
  21996. return _target->HasModalElement ();
  21997. }
  21998. DllExport int
  21999. UI_IsDragging (Urho3D::UI *_target)
  22000. {
  22001. return _target->IsDragging ();
  22002. }
  22003. DllExport float
  22004. UI_GetScale (Urho3D::UI *_target)
  22005. {
  22006. return _target->GetScale ();
  22007. }
  22008. DllExport Interop::IntVector2
  22009. UI_GetCustomSize (Urho3D::UI *_target)
  22010. {
  22011. return *((Interop::IntVector2 *) &(_target->GetCustomSize ()));
  22012. }
  22013. DllExport int
  22014. Window_GetType (Urho3D::Window *_target)
  22015. {
  22016. return (_target->GetType ()).Value ();
  22017. }
  22018. DllExport const char *
  22019. Window_GetTypeName (Urho3D::Window *_target)
  22020. {
  22021. return stringdup((_target->GetTypeName ()).CString ());
  22022. }
  22023. DllExport int
  22024. Window_GetTypeStatic ()
  22025. {
  22026. return (Window::GetTypeStatic ()).Value ();
  22027. }
  22028. DllExport const char *
  22029. Window_GetTypeNameStatic ()
  22030. {
  22031. return stringdup((Window::GetTypeNameStatic ()).CString ());
  22032. }
  22033. DllExport void *
  22034. Window_Window (Urho3D::Context * context)
  22035. {
  22036. return WeakPtr<Window>(new Window(context));
  22037. }
  22038. DllExport void
  22039. Window_RegisterObject (Urho3D::Context * context)
  22040. {
  22041. Window::RegisterObject (context);
  22042. }
  22043. DllExport void
  22044. Window_OnHover (Urho3D::Window *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  22045. {
  22046. _target->OnHover (position, screenPosition, buttons, qualifiers, cursor);
  22047. }
  22048. DllExport void
  22049. Window_SetMovable (Urho3D::Window *_target, bool enable)
  22050. {
  22051. _target->SetMovable (enable);
  22052. }
  22053. DllExport void
  22054. Window_SetResizable (Urho3D::Window *_target, bool enable)
  22055. {
  22056. _target->SetResizable (enable);
  22057. }
  22058. DllExport void
  22059. Window_SetFixedWidthResizing (Urho3D::Window *_target, bool enable)
  22060. {
  22061. _target->SetFixedWidthResizing (enable);
  22062. }
  22063. DllExport void
  22064. Window_SetFixedHeightResizing (Urho3D::Window *_target, bool enable)
  22065. {
  22066. _target->SetFixedHeightResizing (enable);
  22067. }
  22068. DllExport void
  22069. Window_SetResizeBorder (Urho3D::Window *_target, const class Urho3D::IntRect & rect)
  22070. {
  22071. _target->SetResizeBorder (rect);
  22072. }
  22073. DllExport void
  22074. Window_SetModal (Urho3D::Window *_target, bool modal)
  22075. {
  22076. _target->SetModal (modal);
  22077. }
  22078. DllExport void
  22079. Window_SetModalShadeColor (Urho3D::Window *_target, const class Urho3D::Color & color)
  22080. {
  22081. _target->SetModalShadeColor (color);
  22082. }
  22083. DllExport void
  22084. Window_SetModalFrameColor (Urho3D::Window *_target, const class Urho3D::Color & color)
  22085. {
  22086. _target->SetModalFrameColor (color);
  22087. }
  22088. DllExport void
  22089. Window_SetModalFrameSize (Urho3D::Window *_target, const class Urho3D::IntVector2 & size)
  22090. {
  22091. _target->SetModalFrameSize (size);
  22092. }
  22093. DllExport void
  22094. Window_SetModalAutoDismiss (Urho3D::Window *_target, bool enable)
  22095. {
  22096. _target->SetModalAutoDismiss (enable);
  22097. }
  22098. DllExport int
  22099. Window_IsMovable (Urho3D::Window *_target)
  22100. {
  22101. return _target->IsMovable ();
  22102. }
  22103. DllExport int
  22104. Window_IsResizable (Urho3D::Window *_target)
  22105. {
  22106. return _target->IsResizable ();
  22107. }
  22108. DllExport int
  22109. Window_GetFixedWidthResizing (Urho3D::Window *_target)
  22110. {
  22111. return _target->GetFixedWidthResizing ();
  22112. }
  22113. DllExport int
  22114. Window_GetFixedHeightResizing (Urho3D::Window *_target)
  22115. {
  22116. return _target->GetFixedHeightResizing ();
  22117. }
  22118. DllExport const class Urho3D::IntRect &
  22119. Window_GetResizeBorder (Urho3D::Window *_target)
  22120. {
  22121. return _target->GetResizeBorder ();
  22122. }
  22123. DllExport int
  22124. Window_IsModal (Urho3D::Window *_target)
  22125. {
  22126. return _target->IsModal ();
  22127. }
  22128. DllExport Interop::Color
  22129. Window_GetModalShadeColor (Urho3D::Window *_target)
  22130. {
  22131. return *((Interop::Color *) &(_target->GetModalShadeColor ()));
  22132. }
  22133. DllExport Interop::Color
  22134. Window_GetModalFrameColor (Urho3D::Window *_target)
  22135. {
  22136. return *((Interop::Color *) &(_target->GetModalFrameColor ()));
  22137. }
  22138. DllExport Interop::IntVector2
  22139. Window_GetModalFrameSize (Urho3D::Window *_target)
  22140. {
  22141. return *((Interop::IntVector2 *) &(_target->GetModalFrameSize ()));
  22142. }
  22143. DllExport int
  22144. Window_GetModalAutoDismiss (Urho3D::Window *_target)
  22145. {
  22146. return _target->GetModalAutoDismiss ();
  22147. }
  22148. DllExport int
  22149. View3D_GetType (Urho3D::View3D *_target)
  22150. {
  22151. return (_target->GetType ()).Value ();
  22152. }
  22153. DllExport const char *
  22154. View3D_GetTypeName (Urho3D::View3D *_target)
  22155. {
  22156. return stringdup((_target->GetTypeName ()).CString ());
  22157. }
  22158. DllExport int
  22159. View3D_GetTypeStatic ()
  22160. {
  22161. return (View3D::GetTypeStatic ()).Value ();
  22162. }
  22163. DllExport const char *
  22164. View3D_GetTypeNameStatic ()
  22165. {
  22166. return stringdup((View3D::GetTypeNameStatic ()).CString ());
  22167. }
  22168. DllExport void *
  22169. View3D_View3D (Urho3D::Context * context)
  22170. {
  22171. return WeakPtr<View3D>(new View3D(context));
  22172. }
  22173. DllExport void
  22174. View3D_RegisterObject (Urho3D::Context * context)
  22175. {
  22176. View3D::RegisterObject (context);
  22177. }
  22178. DllExport void
  22179. View3D_OnResize (Urho3D::View3D *_target, const class Urho3D::IntVector2 & newSize, const class Urho3D::IntVector2 & delta)
  22180. {
  22181. _target->OnResize (newSize, delta);
  22182. }
  22183. DllExport void
  22184. View3D_SetView (Urho3D::View3D *_target, Urho3D::Scene * scene, Urho3D::Camera * camera, bool ownScene)
  22185. {
  22186. _target->SetView (scene, camera, ownScene);
  22187. }
  22188. DllExport void
  22189. View3D_SetFormat (Urho3D::View3D *_target, unsigned int format)
  22190. {
  22191. _target->SetFormat (format);
  22192. }
  22193. DllExport void
  22194. View3D_SetAutoUpdate (Urho3D::View3D *_target, bool enable)
  22195. {
  22196. _target->SetAutoUpdate (enable);
  22197. }
  22198. DllExport void
  22199. View3D_QueueUpdate (Urho3D::View3D *_target)
  22200. {
  22201. _target->QueueUpdate ();
  22202. }
  22203. DllExport unsigned int
  22204. View3D_GetFormat (Urho3D::View3D *_target)
  22205. {
  22206. return _target->GetFormat ();
  22207. }
  22208. DllExport int
  22209. View3D_GetAutoUpdate (Urho3D::View3D *_target)
  22210. {
  22211. return _target->GetAutoUpdate ();
  22212. }
  22213. DllExport Urho3D::Scene *
  22214. View3D_GetScene (Urho3D::View3D *_target)
  22215. {
  22216. return _target->GetScene ();
  22217. }
  22218. DllExport Urho3D::Node *
  22219. View3D_GetCameraNode (Urho3D::View3D *_target)
  22220. {
  22221. return _target->GetCameraNode ();
  22222. }
  22223. DllExport Urho3D::Texture2D *
  22224. View3D_GetRenderTexture (Urho3D::View3D *_target)
  22225. {
  22226. return _target->GetRenderTexture ();
  22227. }
  22228. DllExport Urho3D::Texture2D *
  22229. View3D_GetDepthTexture (Urho3D::View3D *_target)
  22230. {
  22231. return _target->GetDepthTexture ();
  22232. }
  22233. DllExport Urho3D::Viewport *
  22234. View3D_GetViewport (Urho3D::View3D *_target)
  22235. {
  22236. return _target->GetViewport ();
  22237. }
  22238. DllExport int
  22239. Drawable2D_GetType (Urho3D::Drawable2D *_target)
  22240. {
  22241. return (_target->GetType ()).Value ();
  22242. }
  22243. DllExport const char *
  22244. Drawable2D_GetTypeName (Urho3D::Drawable2D *_target)
  22245. {
  22246. return stringdup((_target->GetTypeName ()).CString ());
  22247. }
  22248. DllExport int
  22249. Drawable2D_GetTypeStatic ()
  22250. {
  22251. return (Drawable2D::GetTypeStatic ()).Value ();
  22252. }
  22253. DllExport const char *
  22254. Drawable2D_GetTypeNameStatic ()
  22255. {
  22256. return stringdup((Drawable2D::GetTypeNameStatic ()).CString ());
  22257. }
  22258. DllExport void
  22259. Drawable2D_RegisterObject (Urho3D::Context * context)
  22260. {
  22261. Drawable2D::RegisterObject (context);
  22262. }
  22263. DllExport void
  22264. Drawable2D_OnSetEnabled (Urho3D::Drawable2D *_target)
  22265. {
  22266. _target->OnSetEnabled ();
  22267. }
  22268. DllExport void
  22269. Drawable2D_SetLayer (Urho3D::Drawable2D *_target, int layer)
  22270. {
  22271. _target->SetLayer (layer);
  22272. }
  22273. DllExport void
  22274. Drawable2D_SetOrderInLayer (Urho3D::Drawable2D *_target, int orderInLayer)
  22275. {
  22276. _target->SetOrderInLayer (orderInLayer);
  22277. }
  22278. DllExport int
  22279. Drawable2D_GetLayer (Urho3D::Drawable2D *_target)
  22280. {
  22281. return _target->GetLayer ();
  22282. }
  22283. DllExport int
  22284. Drawable2D_GetOrderInLayer (Urho3D::Drawable2D *_target)
  22285. {
  22286. return _target->GetOrderInLayer ();
  22287. }
  22288. DllExport int
  22289. StaticSprite2D_GetType (Urho3D::StaticSprite2D *_target)
  22290. {
  22291. return (_target->GetType ()).Value ();
  22292. }
  22293. DllExport const char *
  22294. StaticSprite2D_GetTypeName (Urho3D::StaticSprite2D *_target)
  22295. {
  22296. return stringdup((_target->GetTypeName ()).CString ());
  22297. }
  22298. DllExport int
  22299. StaticSprite2D_GetTypeStatic ()
  22300. {
  22301. return (StaticSprite2D::GetTypeStatic ()).Value ();
  22302. }
  22303. DllExport const char *
  22304. StaticSprite2D_GetTypeNameStatic ()
  22305. {
  22306. return stringdup((StaticSprite2D::GetTypeNameStatic ()).CString ());
  22307. }
  22308. DllExport void *
  22309. StaticSprite2D_StaticSprite2D (Urho3D::Context * context)
  22310. {
  22311. return WeakPtr<StaticSprite2D>(new StaticSprite2D(context));
  22312. }
  22313. DllExport void
  22314. StaticSprite2D_RegisterObject (Urho3D::Context * context)
  22315. {
  22316. StaticSprite2D::RegisterObject (context);
  22317. }
  22318. DllExport void
  22319. StaticSprite2D_SetSprite (Urho3D::StaticSprite2D *_target, Urho3D::Sprite2D * sprite)
  22320. {
  22321. _target->SetSprite (sprite);
  22322. }
  22323. DllExport void
  22324. StaticSprite2D_SetBlendMode (Urho3D::StaticSprite2D *_target, enum Urho3D::BlendMode blendMode)
  22325. {
  22326. _target->SetBlendMode (blendMode);
  22327. }
  22328. DllExport void
  22329. StaticSprite2D_SetFlip (Urho3D::StaticSprite2D *_target, bool flipX, bool flipY)
  22330. {
  22331. _target->SetFlip (flipX, flipY);
  22332. }
  22333. DllExport void
  22334. StaticSprite2D_SetFlipX (Urho3D::StaticSprite2D *_target, bool flipX)
  22335. {
  22336. _target->SetFlipX (flipX);
  22337. }
  22338. DllExport void
  22339. StaticSprite2D_SetFlipY (Urho3D::StaticSprite2D *_target, bool flipY)
  22340. {
  22341. _target->SetFlipY (flipY);
  22342. }
  22343. DllExport void
  22344. StaticSprite2D_SetColor (Urho3D::StaticSprite2D *_target, const class Urho3D::Color & color)
  22345. {
  22346. _target->SetColor (color);
  22347. }
  22348. DllExport void
  22349. StaticSprite2D_SetAlpha (Urho3D::StaticSprite2D *_target, float alpha)
  22350. {
  22351. _target->SetAlpha (alpha);
  22352. }
  22353. DllExport void
  22354. StaticSprite2D_SetUseHotSpot (Urho3D::StaticSprite2D *_target, bool useHotSpot)
  22355. {
  22356. _target->SetUseHotSpot (useHotSpot);
  22357. }
  22358. DllExport void
  22359. StaticSprite2D_SetHotSpot (Urho3D::StaticSprite2D *_target, const class Urho3D::Vector2 & hotspot)
  22360. {
  22361. _target->SetHotSpot (hotspot);
  22362. }
  22363. DllExport void
  22364. StaticSprite2D_SetCustomMaterial (Urho3D::StaticSprite2D *_target, Urho3D::Material * customMaterial)
  22365. {
  22366. _target->SetCustomMaterial (customMaterial);
  22367. }
  22368. DllExport Urho3D::Sprite2D *
  22369. StaticSprite2D_GetSprite (Urho3D::StaticSprite2D *_target)
  22370. {
  22371. return _target->GetSprite ();
  22372. }
  22373. DllExport enum Urho3D::BlendMode
  22374. StaticSprite2D_GetBlendMode (Urho3D::StaticSprite2D *_target)
  22375. {
  22376. return _target->GetBlendMode ();
  22377. }
  22378. DllExport int
  22379. StaticSprite2D_GetFlipX (Urho3D::StaticSprite2D *_target)
  22380. {
  22381. return _target->GetFlipX ();
  22382. }
  22383. DllExport int
  22384. StaticSprite2D_GetFlipY (Urho3D::StaticSprite2D *_target)
  22385. {
  22386. return _target->GetFlipY ();
  22387. }
  22388. DllExport Interop::Color
  22389. StaticSprite2D_GetColor (Urho3D::StaticSprite2D *_target)
  22390. {
  22391. return *((Interop::Color *) &(_target->GetColor ()));
  22392. }
  22393. DllExport float
  22394. StaticSprite2D_GetAlpha (Urho3D::StaticSprite2D *_target)
  22395. {
  22396. return _target->GetAlpha ();
  22397. }
  22398. DllExport int
  22399. StaticSprite2D_GetUseHotSpot (Urho3D::StaticSprite2D *_target)
  22400. {
  22401. return _target->GetUseHotSpot ();
  22402. }
  22403. DllExport Interop::Vector2
  22404. StaticSprite2D_GetHotSpot (Urho3D::StaticSprite2D *_target)
  22405. {
  22406. return *((Interop::Vector2 *) &(_target->GetHotSpot ()));
  22407. }
  22408. DllExport Urho3D::Material *
  22409. StaticSprite2D_GetCustomMaterial (Urho3D::StaticSprite2D *_target)
  22410. {
  22411. return _target->GetCustomMaterial ();
  22412. }
  22413. DllExport Urho3D::ResourceRef
  22414. StaticSprite2D_GetSpriteAttr (Urho3D::StaticSprite2D *_target)
  22415. {
  22416. return _target->GetSpriteAttr ();
  22417. }
  22418. DllExport Urho3D::ResourceRef
  22419. StaticSprite2D_GetCustomMaterialAttr (Urho3D::StaticSprite2D *_target)
  22420. {
  22421. return _target->GetCustomMaterialAttr ();
  22422. }
  22423. DllExport int
  22424. AnimatedSprite2D_GetType (Urho3D::AnimatedSprite2D *_target)
  22425. {
  22426. return (_target->GetType ()).Value ();
  22427. }
  22428. DllExport const char *
  22429. AnimatedSprite2D_GetTypeName (Urho3D::AnimatedSprite2D *_target)
  22430. {
  22431. return stringdup((_target->GetTypeName ()).CString ());
  22432. }
  22433. DllExport int
  22434. AnimatedSprite2D_GetTypeStatic ()
  22435. {
  22436. return (AnimatedSprite2D::GetTypeStatic ()).Value ();
  22437. }
  22438. DllExport const char *
  22439. AnimatedSprite2D_GetTypeNameStatic ()
  22440. {
  22441. return stringdup((AnimatedSprite2D::GetTypeNameStatic ()).CString ());
  22442. }
  22443. DllExport void *
  22444. AnimatedSprite2D_AnimatedSprite2D (Urho3D::Context * context)
  22445. {
  22446. return WeakPtr<AnimatedSprite2D>(new AnimatedSprite2D(context));
  22447. }
  22448. DllExport void
  22449. AnimatedSprite2D_RegisterObject (Urho3D::Context * context)
  22450. {
  22451. AnimatedSprite2D::RegisterObject (context);
  22452. }
  22453. DllExport void
  22454. AnimatedSprite2D_OnSetEnabled (Urho3D::AnimatedSprite2D *_target)
  22455. {
  22456. _target->OnSetEnabled ();
  22457. }
  22458. DllExport void
  22459. AnimatedSprite2D_SetAnimationSet (Urho3D::AnimatedSprite2D *_target, Urho3D::AnimationSet2D * animationSet)
  22460. {
  22461. _target->SetAnimationSet (animationSet);
  22462. }
  22463. DllExport void
  22464. AnimatedSprite2D_SetEntity (Urho3D::AnimatedSprite2D *_target, const char * name)
  22465. {
  22466. _target->SetEntity (Urho3D::String(name));
  22467. }
  22468. DllExport void
  22469. AnimatedSprite2D_SetAnimation (Urho3D::AnimatedSprite2D *_target, const char * name, enum LoopMode2D loopMode)
  22470. {
  22471. _target->SetAnimation (Urho3D::String(name), loopMode);
  22472. }
  22473. DllExport void
  22474. AnimatedSprite2D_SetLoopMode (Urho3D::AnimatedSprite2D *_target, enum LoopMode2D loopMode)
  22475. {
  22476. _target->SetLoopMode (loopMode);
  22477. }
  22478. DllExport void
  22479. AnimatedSprite2D_SetSpeed (Urho3D::AnimatedSprite2D *_target, float speed)
  22480. {
  22481. _target->SetSpeed (speed);
  22482. }
  22483. DllExport Urho3D::AnimationSet2D *
  22484. AnimatedSprite2D_GetAnimationSet (Urho3D::AnimatedSprite2D *_target)
  22485. {
  22486. return _target->GetAnimationSet ();
  22487. }
  22488. DllExport const char *
  22489. AnimatedSprite2D_GetEntity (Urho3D::AnimatedSprite2D *_target)
  22490. {
  22491. return stringdup((_target->GetEntity ()).CString ());
  22492. }
  22493. DllExport const char *
  22494. AnimatedSprite2D_GetAnimation (Urho3D::AnimatedSprite2D *_target)
  22495. {
  22496. return stringdup((_target->GetAnimation ()).CString ());
  22497. }
  22498. DllExport enum LoopMode2D
  22499. AnimatedSprite2D_GetLoopMode (Urho3D::AnimatedSprite2D *_target)
  22500. {
  22501. return _target->GetLoopMode ();
  22502. }
  22503. DllExport float
  22504. AnimatedSprite2D_GetSpeed (Urho3D::AnimatedSprite2D *_target)
  22505. {
  22506. return _target->GetSpeed ();
  22507. }
  22508. DllExport Urho3D::ResourceRef
  22509. AnimatedSprite2D_GetAnimationSetAttr (Urho3D::AnimatedSprite2D *_target)
  22510. {
  22511. return _target->GetAnimationSetAttr ();
  22512. }
  22513. DllExport void
  22514. AnimatedSprite2D_SetAnimationAttr (Urho3D::AnimatedSprite2D *_target, const char * name)
  22515. {
  22516. _target->SetAnimationAttr (Urho3D::String(name));
  22517. }
  22518. DllExport int
  22519. AnimationSet2D_GetType (Urho3D::AnimationSet2D *_target)
  22520. {
  22521. return (_target->GetType ()).Value ();
  22522. }
  22523. DllExport const char *
  22524. AnimationSet2D_GetTypeName (Urho3D::AnimationSet2D *_target)
  22525. {
  22526. return stringdup((_target->GetTypeName ()).CString ());
  22527. }
  22528. DllExport int
  22529. AnimationSet2D_GetTypeStatic ()
  22530. {
  22531. return (AnimationSet2D::GetTypeStatic ()).Value ();
  22532. }
  22533. DllExport const char *
  22534. AnimationSet2D_GetTypeNameStatic ()
  22535. {
  22536. return stringdup((AnimationSet2D::GetTypeNameStatic ()).CString ());
  22537. }
  22538. DllExport void *
  22539. AnimationSet2D_AnimationSet2D (Urho3D::Context * context)
  22540. {
  22541. return WeakPtr<AnimationSet2D>(new AnimationSet2D(context));
  22542. }
  22543. DllExport void
  22544. AnimationSet2D_RegisterObject (Urho3D::Context * context)
  22545. {
  22546. AnimationSet2D::RegisterObject (context);
  22547. }
  22548. DllExport int
  22549. AnimationSet2D_BeginLoad_File (Urho3D::AnimationSet2D *_target, File * source)
  22550. {
  22551. return _target->BeginLoad (*source);
  22552. }
  22553. DllExport int
  22554. AnimationSet2D_BeginLoad_MemoryBuffer (Urho3D::AnimationSet2D *_target, MemoryBuffer * source)
  22555. {
  22556. return _target->BeginLoad (*source);
  22557. }
  22558. DllExport int
  22559. AnimationSet2D_EndLoad (Urho3D::AnimationSet2D *_target)
  22560. {
  22561. return _target->EndLoad ();
  22562. }
  22563. DllExport unsigned int
  22564. AnimationSet2D_GetNumAnimations (Urho3D::AnimationSet2D *_target)
  22565. {
  22566. return _target->GetNumAnimations ();
  22567. }
  22568. DllExport const char *
  22569. AnimationSet2D_GetAnimation (Urho3D::AnimationSet2D *_target, unsigned int index)
  22570. {
  22571. return stringdup((_target->GetAnimation (index)).CString ());
  22572. }
  22573. DllExport int
  22574. AnimationSet2D_HasAnimation (Urho3D::AnimationSet2D *_target, const char * animation)
  22575. {
  22576. return _target->HasAnimation (Urho3D::String(animation));
  22577. }
  22578. DllExport Urho3D::Sprite2D *
  22579. AnimationSet2D_GetSprite (Urho3D::AnimationSet2D *_target)
  22580. {
  22581. return _target->GetSprite ();
  22582. }
  22583. DllExport Urho3D::Sprite2D *
  22584. AnimationSet2D_GetSpriterFileSprite (Urho3D::AnimationSet2D *_target, int folderId, int fileId)
  22585. {
  22586. return _target->GetSpriterFileSprite (folderId, fileId);
  22587. }
  22588. DllExport int
  22589. CollisionShape2D_GetType (Urho3D::CollisionShape2D *_target)
  22590. {
  22591. return (_target->GetType ()).Value ();
  22592. }
  22593. DllExport const char *
  22594. CollisionShape2D_GetTypeName (Urho3D::CollisionShape2D *_target)
  22595. {
  22596. return stringdup((_target->GetTypeName ()).CString ());
  22597. }
  22598. DllExport int
  22599. CollisionShape2D_GetTypeStatic ()
  22600. {
  22601. return (CollisionShape2D::GetTypeStatic ()).Value ();
  22602. }
  22603. DllExport const char *
  22604. CollisionShape2D_GetTypeNameStatic ()
  22605. {
  22606. return stringdup((CollisionShape2D::GetTypeNameStatic ()).CString ());
  22607. }
  22608. DllExport void
  22609. CollisionShape2D_RegisterObject (Urho3D::Context * context)
  22610. {
  22611. CollisionShape2D::RegisterObject (context);
  22612. }
  22613. DllExport void
  22614. CollisionShape2D_OnSetEnabled (Urho3D::CollisionShape2D *_target)
  22615. {
  22616. _target->OnSetEnabled ();
  22617. }
  22618. DllExport void
  22619. CollisionShape2D_SetTrigger (Urho3D::CollisionShape2D *_target, bool trigger)
  22620. {
  22621. _target->SetTrigger (trigger);
  22622. }
  22623. DllExport void
  22624. CollisionShape2D_SetCategoryBits (Urho3D::CollisionShape2D *_target, int categoryBits)
  22625. {
  22626. _target->SetCategoryBits (categoryBits);
  22627. }
  22628. DllExport void
  22629. CollisionShape2D_SetMaskBits (Urho3D::CollisionShape2D *_target, int maskBits)
  22630. {
  22631. _target->SetMaskBits (maskBits);
  22632. }
  22633. DllExport void
  22634. CollisionShape2D_SetGroupIndex (Urho3D::CollisionShape2D *_target, int groupIndex)
  22635. {
  22636. _target->SetGroupIndex (groupIndex);
  22637. }
  22638. DllExport void
  22639. CollisionShape2D_SetDensity (Urho3D::CollisionShape2D *_target, float density)
  22640. {
  22641. _target->SetDensity (density);
  22642. }
  22643. DllExport void
  22644. CollisionShape2D_SetFriction (Urho3D::CollisionShape2D *_target, float friction)
  22645. {
  22646. _target->SetFriction (friction);
  22647. }
  22648. DllExport void
  22649. CollisionShape2D_SetRestitution (Urho3D::CollisionShape2D *_target, float restitution)
  22650. {
  22651. _target->SetRestitution (restitution);
  22652. }
  22653. DllExport void
  22654. CollisionShape2D_CreateFixture (Urho3D::CollisionShape2D *_target)
  22655. {
  22656. _target->CreateFixture ();
  22657. }
  22658. DllExport void
  22659. CollisionShape2D_ReleaseFixture (Urho3D::CollisionShape2D *_target)
  22660. {
  22661. _target->ReleaseFixture ();
  22662. }
  22663. DllExport int
  22664. CollisionShape2D_IsTrigger (Urho3D::CollisionShape2D *_target)
  22665. {
  22666. return _target->IsTrigger ();
  22667. }
  22668. DllExport int
  22669. CollisionShape2D_GetCategoryBits (Urho3D::CollisionShape2D *_target)
  22670. {
  22671. return _target->GetCategoryBits ();
  22672. }
  22673. DllExport int
  22674. CollisionShape2D_GetMaskBits (Urho3D::CollisionShape2D *_target)
  22675. {
  22676. return _target->GetMaskBits ();
  22677. }
  22678. DllExport int
  22679. CollisionShape2D_GetGroupIndex (Urho3D::CollisionShape2D *_target)
  22680. {
  22681. return _target->GetGroupIndex ();
  22682. }
  22683. DllExport float
  22684. CollisionShape2D_GetDensity (Urho3D::CollisionShape2D *_target)
  22685. {
  22686. return _target->GetDensity ();
  22687. }
  22688. DllExport float
  22689. CollisionShape2D_GetFriction (Urho3D::CollisionShape2D *_target)
  22690. {
  22691. return _target->GetFriction ();
  22692. }
  22693. DllExport float
  22694. CollisionShape2D_GetRestitution (Urho3D::CollisionShape2D *_target)
  22695. {
  22696. return _target->GetRestitution ();
  22697. }
  22698. DllExport float
  22699. CollisionShape2D_GetMass (Urho3D::CollisionShape2D *_target)
  22700. {
  22701. return _target->GetMass ();
  22702. }
  22703. DllExport float
  22704. CollisionShape2D_GetInertia (Urho3D::CollisionShape2D *_target)
  22705. {
  22706. return _target->GetInertia ();
  22707. }
  22708. DllExport Interop::Vector2
  22709. CollisionShape2D_GetMassCenter (Urho3D::CollisionShape2D *_target)
  22710. {
  22711. return *((Interop::Vector2 *) &(_target->GetMassCenter ()));
  22712. }
  22713. DllExport int
  22714. CollisionBox2D_GetType (Urho3D::CollisionBox2D *_target)
  22715. {
  22716. return (_target->GetType ()).Value ();
  22717. }
  22718. DllExport const char *
  22719. CollisionBox2D_GetTypeName (Urho3D::CollisionBox2D *_target)
  22720. {
  22721. return stringdup((_target->GetTypeName ()).CString ());
  22722. }
  22723. DllExport int
  22724. CollisionBox2D_GetTypeStatic ()
  22725. {
  22726. return (CollisionBox2D::GetTypeStatic ()).Value ();
  22727. }
  22728. DllExport const char *
  22729. CollisionBox2D_GetTypeNameStatic ()
  22730. {
  22731. return stringdup((CollisionBox2D::GetTypeNameStatic ()).CString ());
  22732. }
  22733. DllExport void *
  22734. CollisionBox2D_CollisionBox2D (Urho3D::Context * context)
  22735. {
  22736. return WeakPtr<CollisionBox2D>(new CollisionBox2D(context));
  22737. }
  22738. DllExport void
  22739. CollisionBox2D_RegisterObject (Urho3D::Context * context)
  22740. {
  22741. CollisionBox2D::RegisterObject (context);
  22742. }
  22743. DllExport void
  22744. CollisionBox2D_SetSize (Urho3D::CollisionBox2D *_target, const class Urho3D::Vector2 & size)
  22745. {
  22746. _target->SetSize (size);
  22747. }
  22748. DllExport void
  22749. CollisionBox2D_SetSize0 (Urho3D::CollisionBox2D *_target, float width, float height)
  22750. {
  22751. _target->SetSize (width, height);
  22752. }
  22753. DllExport void
  22754. CollisionBox2D_SetCenter (Urho3D::CollisionBox2D *_target, const class Urho3D::Vector2 & center)
  22755. {
  22756. _target->SetCenter (center);
  22757. }
  22758. DllExport void
  22759. CollisionBox2D_SetCenter1 (Urho3D::CollisionBox2D *_target, float x, float y)
  22760. {
  22761. _target->SetCenter (x, y);
  22762. }
  22763. DllExport void
  22764. CollisionBox2D_SetAngle (Urho3D::CollisionBox2D *_target, float angle)
  22765. {
  22766. _target->SetAngle (angle);
  22767. }
  22768. DllExport Interop::Vector2
  22769. CollisionBox2D_GetSize (Urho3D::CollisionBox2D *_target)
  22770. {
  22771. return *((Interop::Vector2 *) &(_target->GetSize ()));
  22772. }
  22773. DllExport Interop::Vector2
  22774. CollisionBox2D_GetCenter (Urho3D::CollisionBox2D *_target)
  22775. {
  22776. return *((Interop::Vector2 *) &(_target->GetCenter ()));
  22777. }
  22778. DllExport float
  22779. CollisionBox2D_GetAngle (Urho3D::CollisionBox2D *_target)
  22780. {
  22781. return _target->GetAngle ();
  22782. }
  22783. DllExport int
  22784. CollisionChain2D_GetType (Urho3D::CollisionChain2D *_target)
  22785. {
  22786. return (_target->GetType ()).Value ();
  22787. }
  22788. DllExport const char *
  22789. CollisionChain2D_GetTypeName (Urho3D::CollisionChain2D *_target)
  22790. {
  22791. return stringdup((_target->GetTypeName ()).CString ());
  22792. }
  22793. DllExport int
  22794. CollisionChain2D_GetTypeStatic ()
  22795. {
  22796. return (CollisionChain2D::GetTypeStatic ()).Value ();
  22797. }
  22798. DllExport const char *
  22799. CollisionChain2D_GetTypeNameStatic ()
  22800. {
  22801. return stringdup((CollisionChain2D::GetTypeNameStatic ()).CString ());
  22802. }
  22803. DllExport void *
  22804. CollisionChain2D_CollisionChain2D (Urho3D::Context * context)
  22805. {
  22806. return WeakPtr<CollisionChain2D>(new CollisionChain2D(context));
  22807. }
  22808. DllExport void
  22809. CollisionChain2D_RegisterObject (Urho3D::Context * context)
  22810. {
  22811. CollisionChain2D::RegisterObject (context);
  22812. }
  22813. DllExport void
  22814. CollisionChain2D_SetLoop (Urho3D::CollisionChain2D *_target, bool loop)
  22815. {
  22816. _target->SetLoop (loop);
  22817. }
  22818. DllExport void
  22819. CollisionChain2D_SetVertexCount (Urho3D::CollisionChain2D *_target, unsigned int count)
  22820. {
  22821. _target->SetVertexCount (count);
  22822. }
  22823. DllExport void
  22824. CollisionChain2D_SetVertex (Urho3D::CollisionChain2D *_target, unsigned int index, const class Urho3D::Vector2 & vertex)
  22825. {
  22826. _target->SetVertex (index, vertex);
  22827. }
  22828. DllExport int
  22829. CollisionChain2D_GetLoop (Urho3D::CollisionChain2D *_target)
  22830. {
  22831. return _target->GetLoop ();
  22832. }
  22833. DllExport unsigned int
  22834. CollisionChain2D_GetVertexCount (Urho3D::CollisionChain2D *_target)
  22835. {
  22836. return _target->GetVertexCount ();
  22837. }
  22838. DllExport Interop::Vector2
  22839. CollisionChain2D_GetVertex (Urho3D::CollisionChain2D *_target, unsigned int index)
  22840. {
  22841. return *((Interop::Vector2 *) &(_target->GetVertex (index)));
  22842. }
  22843. DllExport int
  22844. CollisionCircle2D_GetType (Urho3D::CollisionCircle2D *_target)
  22845. {
  22846. return (_target->GetType ()).Value ();
  22847. }
  22848. DllExport const char *
  22849. CollisionCircle2D_GetTypeName (Urho3D::CollisionCircle2D *_target)
  22850. {
  22851. return stringdup((_target->GetTypeName ()).CString ());
  22852. }
  22853. DllExport int
  22854. CollisionCircle2D_GetTypeStatic ()
  22855. {
  22856. return (CollisionCircle2D::GetTypeStatic ()).Value ();
  22857. }
  22858. DllExport const char *
  22859. CollisionCircle2D_GetTypeNameStatic ()
  22860. {
  22861. return stringdup((CollisionCircle2D::GetTypeNameStatic ()).CString ());
  22862. }
  22863. DllExport void *
  22864. CollisionCircle2D_CollisionCircle2D (Urho3D::Context * context)
  22865. {
  22866. return WeakPtr<CollisionCircle2D>(new CollisionCircle2D(context));
  22867. }
  22868. DllExport void
  22869. CollisionCircle2D_RegisterObject (Urho3D::Context * context)
  22870. {
  22871. CollisionCircle2D::RegisterObject (context);
  22872. }
  22873. DllExport void
  22874. CollisionCircle2D_SetRadius (Urho3D::CollisionCircle2D *_target, float radius)
  22875. {
  22876. _target->SetRadius (radius);
  22877. }
  22878. DllExport void
  22879. CollisionCircle2D_SetCenter (Urho3D::CollisionCircle2D *_target, const class Urho3D::Vector2 & center)
  22880. {
  22881. _target->SetCenter (center);
  22882. }
  22883. DllExport void
  22884. CollisionCircle2D_SetCenter0 (Urho3D::CollisionCircle2D *_target, float x, float y)
  22885. {
  22886. _target->SetCenter (x, y);
  22887. }
  22888. DllExport float
  22889. CollisionCircle2D_GetRadius (Urho3D::CollisionCircle2D *_target)
  22890. {
  22891. return _target->GetRadius ();
  22892. }
  22893. DllExport Interop::Vector2
  22894. CollisionCircle2D_GetCenter (Urho3D::CollisionCircle2D *_target)
  22895. {
  22896. return *((Interop::Vector2 *) &(_target->GetCenter ()));
  22897. }
  22898. DllExport int
  22899. CollisionEdge2D_GetType (Urho3D::CollisionEdge2D *_target)
  22900. {
  22901. return (_target->GetType ()).Value ();
  22902. }
  22903. DllExport const char *
  22904. CollisionEdge2D_GetTypeName (Urho3D::CollisionEdge2D *_target)
  22905. {
  22906. return stringdup((_target->GetTypeName ()).CString ());
  22907. }
  22908. DllExport int
  22909. CollisionEdge2D_GetTypeStatic ()
  22910. {
  22911. return (CollisionEdge2D::GetTypeStatic ()).Value ();
  22912. }
  22913. DllExport const char *
  22914. CollisionEdge2D_GetTypeNameStatic ()
  22915. {
  22916. return stringdup((CollisionEdge2D::GetTypeNameStatic ()).CString ());
  22917. }
  22918. DllExport void *
  22919. CollisionEdge2D_CollisionEdge2D (Urho3D::Context * context)
  22920. {
  22921. return WeakPtr<CollisionEdge2D>(new CollisionEdge2D(context));
  22922. }
  22923. DllExport void
  22924. CollisionEdge2D_RegisterObject (Urho3D::Context * context)
  22925. {
  22926. CollisionEdge2D::RegisterObject (context);
  22927. }
  22928. DllExport void
  22929. CollisionEdge2D_SetVertex1 (Urho3D::CollisionEdge2D *_target, const class Urho3D::Vector2 & vertex)
  22930. {
  22931. _target->SetVertex1 (vertex);
  22932. }
  22933. DllExport void
  22934. CollisionEdge2D_SetVertex2 (Urho3D::CollisionEdge2D *_target, const class Urho3D::Vector2 & vertex)
  22935. {
  22936. _target->SetVertex2 (vertex);
  22937. }
  22938. DllExport void
  22939. CollisionEdge2D_SetVertices (Urho3D::CollisionEdge2D *_target, const class Urho3D::Vector2 & vertex1, const class Urho3D::Vector2 & vertex2)
  22940. {
  22941. _target->SetVertices (vertex1, vertex2);
  22942. }
  22943. DllExport Interop::Vector2
  22944. CollisionEdge2D_GetVertex1 (Urho3D::CollisionEdge2D *_target)
  22945. {
  22946. return *((Interop::Vector2 *) &(_target->GetVertex1 ()));
  22947. }
  22948. DllExport Interop::Vector2
  22949. CollisionEdge2D_GetVertex2 (Urho3D::CollisionEdge2D *_target)
  22950. {
  22951. return *((Interop::Vector2 *) &(_target->GetVertex2 ()));
  22952. }
  22953. DllExport int
  22954. CollisionPolygon2D_GetType (Urho3D::CollisionPolygon2D *_target)
  22955. {
  22956. return (_target->GetType ()).Value ();
  22957. }
  22958. DllExport const char *
  22959. CollisionPolygon2D_GetTypeName (Urho3D::CollisionPolygon2D *_target)
  22960. {
  22961. return stringdup((_target->GetTypeName ()).CString ());
  22962. }
  22963. DllExport int
  22964. CollisionPolygon2D_GetTypeStatic ()
  22965. {
  22966. return (CollisionPolygon2D::GetTypeStatic ()).Value ();
  22967. }
  22968. DllExport const char *
  22969. CollisionPolygon2D_GetTypeNameStatic ()
  22970. {
  22971. return stringdup((CollisionPolygon2D::GetTypeNameStatic ()).CString ());
  22972. }
  22973. DllExport void *
  22974. CollisionPolygon2D_CollisionPolygon2D (Urho3D::Context * context)
  22975. {
  22976. return WeakPtr<CollisionPolygon2D>(new CollisionPolygon2D(context));
  22977. }
  22978. DllExport void
  22979. CollisionPolygon2D_RegisterObject (Urho3D::Context * context)
  22980. {
  22981. CollisionPolygon2D::RegisterObject (context);
  22982. }
  22983. DllExport void
  22984. CollisionPolygon2D_SetVertexCount (Urho3D::CollisionPolygon2D *_target, unsigned int count)
  22985. {
  22986. _target->SetVertexCount (count);
  22987. }
  22988. DllExport void
  22989. CollisionPolygon2D_SetVertex (Urho3D::CollisionPolygon2D *_target, unsigned int index, const class Urho3D::Vector2 & vertex)
  22990. {
  22991. _target->SetVertex (index, vertex);
  22992. }
  22993. DllExport unsigned int
  22994. CollisionPolygon2D_GetVertexCount (Urho3D::CollisionPolygon2D *_target)
  22995. {
  22996. return _target->GetVertexCount ();
  22997. }
  22998. DllExport Interop::Vector2
  22999. CollisionPolygon2D_GetVertex (Urho3D::CollisionPolygon2D *_target, unsigned int index)
  23000. {
  23001. return *((Interop::Vector2 *) &(_target->GetVertex (index)));
  23002. }
  23003. DllExport int
  23004. Constraint2D_GetType (Urho3D::Constraint2D *_target)
  23005. {
  23006. return (_target->GetType ()).Value ();
  23007. }
  23008. DllExport const char *
  23009. Constraint2D_GetTypeName (Urho3D::Constraint2D *_target)
  23010. {
  23011. return stringdup((_target->GetTypeName ()).CString ());
  23012. }
  23013. DllExport int
  23014. Constraint2D_GetTypeStatic ()
  23015. {
  23016. return (Constraint2D::GetTypeStatic ()).Value ();
  23017. }
  23018. DllExport const char *
  23019. Constraint2D_GetTypeNameStatic ()
  23020. {
  23021. return stringdup((Constraint2D::GetTypeNameStatic ()).CString ());
  23022. }
  23023. DllExport void *
  23024. Constraint2D_Constraint2D (Urho3D::Context * context)
  23025. {
  23026. return WeakPtr<Constraint2D>(new Constraint2D(context));
  23027. }
  23028. DllExport void
  23029. Constraint2D_RegisterObject (Urho3D::Context * context)
  23030. {
  23031. Constraint2D::RegisterObject (context);
  23032. }
  23033. DllExport void
  23034. Constraint2D_OnSetEnabled (Urho3D::Constraint2D *_target)
  23035. {
  23036. _target->OnSetEnabled ();
  23037. }
  23038. DllExport void
  23039. Constraint2D_CreateJoint (Urho3D::Constraint2D *_target)
  23040. {
  23041. _target->CreateJoint ();
  23042. }
  23043. DllExport void
  23044. Constraint2D_ReleaseJoint (Urho3D::Constraint2D *_target)
  23045. {
  23046. _target->ReleaseJoint ();
  23047. }
  23048. DllExport void
  23049. Constraint2D_SetOtherBody (Urho3D::Constraint2D *_target, Urho3D::RigidBody2D * body)
  23050. {
  23051. _target->SetOtherBody (body);
  23052. }
  23053. DllExport void
  23054. Constraint2D_SetCollideConnected (Urho3D::Constraint2D *_target, bool collideConnected)
  23055. {
  23056. _target->SetCollideConnected (collideConnected);
  23057. }
  23058. DllExport void
  23059. Constraint2D_SetAttachedConstraint (Urho3D::Constraint2D *_target, Urho3D::Constraint2D * constraint)
  23060. {
  23061. _target->SetAttachedConstraint (constraint);
  23062. }
  23063. DllExport Urho3D::RigidBody2D *
  23064. Constraint2D_GetOwnerBody (Urho3D::Constraint2D *_target)
  23065. {
  23066. return _target->GetOwnerBody ();
  23067. }
  23068. DllExport Urho3D::RigidBody2D *
  23069. Constraint2D_GetOtherBody (Urho3D::Constraint2D *_target)
  23070. {
  23071. return _target->GetOtherBody ();
  23072. }
  23073. DllExport int
  23074. Constraint2D_GetCollideConnected (Urho3D::Constraint2D *_target)
  23075. {
  23076. return _target->GetCollideConnected ();
  23077. }
  23078. DllExport Urho3D::Constraint2D *
  23079. Constraint2D_GetAttachedConstraint (Urho3D::Constraint2D *_target)
  23080. {
  23081. return _target->GetAttachedConstraint ();
  23082. }
  23083. DllExport int
  23084. ConstraintDistance2D_GetType (Urho3D::ConstraintDistance2D *_target)
  23085. {
  23086. return (_target->GetType ()).Value ();
  23087. }
  23088. DllExport const char *
  23089. ConstraintDistance2D_GetTypeName (Urho3D::ConstraintDistance2D *_target)
  23090. {
  23091. return stringdup((_target->GetTypeName ()).CString ());
  23092. }
  23093. DllExport int
  23094. ConstraintDistance2D_GetTypeStatic ()
  23095. {
  23096. return (ConstraintDistance2D::GetTypeStatic ()).Value ();
  23097. }
  23098. DllExport const char *
  23099. ConstraintDistance2D_GetTypeNameStatic ()
  23100. {
  23101. return stringdup((ConstraintDistance2D::GetTypeNameStatic ()).CString ());
  23102. }
  23103. DllExport void *
  23104. ConstraintDistance2D_ConstraintDistance2D (Urho3D::Context * context)
  23105. {
  23106. return WeakPtr<ConstraintDistance2D>(new ConstraintDistance2D(context));
  23107. }
  23108. DllExport void
  23109. ConstraintDistance2D_RegisterObject (Urho3D::Context * context)
  23110. {
  23111. ConstraintDistance2D::RegisterObject (context);
  23112. }
  23113. DllExport void
  23114. ConstraintDistance2D_SetOwnerBodyAnchor (Urho3D::ConstraintDistance2D *_target, const class Urho3D::Vector2 & anchor)
  23115. {
  23116. _target->SetOwnerBodyAnchor (anchor);
  23117. }
  23118. DllExport void
  23119. ConstraintDistance2D_SetOtherBodyAnchor (Urho3D::ConstraintDistance2D *_target, const class Urho3D::Vector2 & anchor)
  23120. {
  23121. _target->SetOtherBodyAnchor (anchor);
  23122. }
  23123. DllExport void
  23124. ConstraintDistance2D_SetFrequencyHz (Urho3D::ConstraintDistance2D *_target, float frequencyHz)
  23125. {
  23126. _target->SetFrequencyHz (frequencyHz);
  23127. }
  23128. DllExport void
  23129. ConstraintDistance2D_SetDampingRatio (Urho3D::ConstraintDistance2D *_target, float dampingRatio)
  23130. {
  23131. _target->SetDampingRatio (dampingRatio);
  23132. }
  23133. DllExport Interop::Vector2
  23134. ConstraintDistance2D_GetOwnerBodyAnchor (Urho3D::ConstraintDistance2D *_target)
  23135. {
  23136. return *((Interop::Vector2 *) &(_target->GetOwnerBodyAnchor ()));
  23137. }
  23138. DllExport Interop::Vector2
  23139. ConstraintDistance2D_GetOtherBodyAnchor (Urho3D::ConstraintDistance2D *_target)
  23140. {
  23141. return *((Interop::Vector2 *) &(_target->GetOtherBodyAnchor ()));
  23142. }
  23143. DllExport float
  23144. ConstraintDistance2D_GetFrequencyHz (Urho3D::ConstraintDistance2D *_target)
  23145. {
  23146. return _target->GetFrequencyHz ();
  23147. }
  23148. DllExport float
  23149. ConstraintDistance2D_GetDampingRatio (Urho3D::ConstraintDistance2D *_target)
  23150. {
  23151. return _target->GetDampingRatio ();
  23152. }
  23153. DllExport int
  23154. ConstraintFriction2D_GetType (Urho3D::ConstraintFriction2D *_target)
  23155. {
  23156. return (_target->GetType ()).Value ();
  23157. }
  23158. DllExport const char *
  23159. ConstraintFriction2D_GetTypeName (Urho3D::ConstraintFriction2D *_target)
  23160. {
  23161. return stringdup((_target->GetTypeName ()).CString ());
  23162. }
  23163. DllExport int
  23164. ConstraintFriction2D_GetTypeStatic ()
  23165. {
  23166. return (ConstraintFriction2D::GetTypeStatic ()).Value ();
  23167. }
  23168. DllExport const char *
  23169. ConstraintFriction2D_GetTypeNameStatic ()
  23170. {
  23171. return stringdup((ConstraintFriction2D::GetTypeNameStatic ()).CString ());
  23172. }
  23173. DllExport void *
  23174. ConstraintFriction2D_ConstraintFriction2D (Urho3D::Context * context)
  23175. {
  23176. return WeakPtr<ConstraintFriction2D>(new ConstraintFriction2D(context));
  23177. }
  23178. DllExport void
  23179. ConstraintFriction2D_RegisterObject (Urho3D::Context * context)
  23180. {
  23181. ConstraintFriction2D::RegisterObject (context);
  23182. }
  23183. DllExport void
  23184. ConstraintFriction2D_SetAnchor (Urho3D::ConstraintFriction2D *_target, const class Urho3D::Vector2 & anchor)
  23185. {
  23186. _target->SetAnchor (anchor);
  23187. }
  23188. DllExport void
  23189. ConstraintFriction2D_SetMaxForce (Urho3D::ConstraintFriction2D *_target, float maxForce)
  23190. {
  23191. _target->SetMaxForce (maxForce);
  23192. }
  23193. DllExport void
  23194. ConstraintFriction2D_SetMaxTorque (Urho3D::ConstraintFriction2D *_target, float maxTorque)
  23195. {
  23196. _target->SetMaxTorque (maxTorque);
  23197. }
  23198. DllExport Interop::Vector2
  23199. ConstraintFriction2D_GetAnchor (Urho3D::ConstraintFriction2D *_target)
  23200. {
  23201. return *((Interop::Vector2 *) &(_target->GetAnchor ()));
  23202. }
  23203. DllExport float
  23204. ConstraintFriction2D_GetMaxForce (Urho3D::ConstraintFriction2D *_target)
  23205. {
  23206. return _target->GetMaxForce ();
  23207. }
  23208. DllExport float
  23209. ConstraintFriction2D_GetMaxTorque (Urho3D::ConstraintFriction2D *_target)
  23210. {
  23211. return _target->GetMaxTorque ();
  23212. }
  23213. DllExport int
  23214. ConstraintGear2D_GetType (Urho3D::ConstraintGear2D *_target)
  23215. {
  23216. return (_target->GetType ()).Value ();
  23217. }
  23218. DllExport const char *
  23219. ConstraintGear2D_GetTypeName (Urho3D::ConstraintGear2D *_target)
  23220. {
  23221. return stringdup((_target->GetTypeName ()).CString ());
  23222. }
  23223. DllExport int
  23224. ConstraintGear2D_GetTypeStatic ()
  23225. {
  23226. return (ConstraintGear2D::GetTypeStatic ()).Value ();
  23227. }
  23228. DllExport const char *
  23229. ConstraintGear2D_GetTypeNameStatic ()
  23230. {
  23231. return stringdup((ConstraintGear2D::GetTypeNameStatic ()).CString ());
  23232. }
  23233. DllExport void *
  23234. ConstraintGear2D_ConstraintGear2D (Urho3D::Context * context)
  23235. {
  23236. return WeakPtr<ConstraintGear2D>(new ConstraintGear2D(context));
  23237. }
  23238. DllExport void
  23239. ConstraintGear2D_RegisterObject (Urho3D::Context * context)
  23240. {
  23241. ConstraintGear2D::RegisterObject (context);
  23242. }
  23243. DllExport void
  23244. ConstraintGear2D_SetOwnerConstraint (Urho3D::ConstraintGear2D *_target, Urho3D::Constraint2D * constraint)
  23245. {
  23246. _target->SetOwnerConstraint (constraint);
  23247. }
  23248. DllExport void
  23249. ConstraintGear2D_SetOtherConstraint (Urho3D::ConstraintGear2D *_target, Urho3D::Constraint2D * constraint)
  23250. {
  23251. _target->SetOtherConstraint (constraint);
  23252. }
  23253. DllExport void
  23254. ConstraintGear2D_SetRatio (Urho3D::ConstraintGear2D *_target, float ratio)
  23255. {
  23256. _target->SetRatio (ratio);
  23257. }
  23258. DllExport Urho3D::Constraint2D *
  23259. ConstraintGear2D_GetOwnerConstraint (Urho3D::ConstraintGear2D *_target)
  23260. {
  23261. return _target->GetOwnerConstraint ();
  23262. }
  23263. DllExport Urho3D::Constraint2D *
  23264. ConstraintGear2D_GetOtherConstraint (Urho3D::ConstraintGear2D *_target)
  23265. {
  23266. return _target->GetOtherConstraint ();
  23267. }
  23268. DllExport float
  23269. ConstraintGear2D_GetRatio (Urho3D::ConstraintGear2D *_target)
  23270. {
  23271. return _target->GetRatio ();
  23272. }
  23273. DllExport int
  23274. ConstraintMotor2D_GetType (Urho3D::ConstraintMotor2D *_target)
  23275. {
  23276. return (_target->GetType ()).Value ();
  23277. }
  23278. DllExport const char *
  23279. ConstraintMotor2D_GetTypeName (Urho3D::ConstraintMotor2D *_target)
  23280. {
  23281. return stringdup((_target->GetTypeName ()).CString ());
  23282. }
  23283. DllExport int
  23284. ConstraintMotor2D_GetTypeStatic ()
  23285. {
  23286. return (ConstraintMotor2D::GetTypeStatic ()).Value ();
  23287. }
  23288. DllExport const char *
  23289. ConstraintMotor2D_GetTypeNameStatic ()
  23290. {
  23291. return stringdup((ConstraintMotor2D::GetTypeNameStatic ()).CString ());
  23292. }
  23293. DllExport void *
  23294. ConstraintMotor2D_ConstraintMotor2D (Urho3D::Context * context)
  23295. {
  23296. return WeakPtr<ConstraintMotor2D>(new ConstraintMotor2D(context));
  23297. }
  23298. DllExport void
  23299. ConstraintMotor2D_RegisterObject (Urho3D::Context * context)
  23300. {
  23301. ConstraintMotor2D::RegisterObject (context);
  23302. }
  23303. DllExport void
  23304. ConstraintMotor2D_SetLinearOffset (Urho3D::ConstraintMotor2D *_target, const class Urho3D::Vector2 & linearOffset)
  23305. {
  23306. _target->SetLinearOffset (linearOffset);
  23307. }
  23308. DllExport void
  23309. ConstraintMotor2D_SetAngularOffset (Urho3D::ConstraintMotor2D *_target, float angularOffset)
  23310. {
  23311. _target->SetAngularOffset (angularOffset);
  23312. }
  23313. DllExport void
  23314. ConstraintMotor2D_SetMaxForce (Urho3D::ConstraintMotor2D *_target, float maxForce)
  23315. {
  23316. _target->SetMaxForce (maxForce);
  23317. }
  23318. DllExport void
  23319. ConstraintMotor2D_SetMaxTorque (Urho3D::ConstraintMotor2D *_target, float maxTorque)
  23320. {
  23321. _target->SetMaxTorque (maxTorque);
  23322. }
  23323. DllExport void
  23324. ConstraintMotor2D_SetCorrectionFactor (Urho3D::ConstraintMotor2D *_target, float correctionFactor)
  23325. {
  23326. _target->SetCorrectionFactor (correctionFactor);
  23327. }
  23328. DllExport Interop::Vector2
  23329. ConstraintMotor2D_GetLinearOffset (Urho3D::ConstraintMotor2D *_target)
  23330. {
  23331. return *((Interop::Vector2 *) &(_target->GetLinearOffset ()));
  23332. }
  23333. DllExport float
  23334. ConstraintMotor2D_GetAngularOffset (Urho3D::ConstraintMotor2D *_target)
  23335. {
  23336. return _target->GetAngularOffset ();
  23337. }
  23338. DllExport float
  23339. ConstraintMotor2D_GetMaxForce (Urho3D::ConstraintMotor2D *_target)
  23340. {
  23341. return _target->GetMaxForce ();
  23342. }
  23343. DllExport float
  23344. ConstraintMotor2D_GetMaxTorque (Urho3D::ConstraintMotor2D *_target)
  23345. {
  23346. return _target->GetMaxTorque ();
  23347. }
  23348. DllExport float
  23349. ConstraintMotor2D_GetCorrectionFactor (Urho3D::ConstraintMotor2D *_target)
  23350. {
  23351. return _target->GetCorrectionFactor ();
  23352. }
  23353. DllExport int
  23354. ConstraintMouse2D_GetType (Urho3D::ConstraintMouse2D *_target)
  23355. {
  23356. return (_target->GetType ()).Value ();
  23357. }
  23358. DllExport const char *
  23359. ConstraintMouse2D_GetTypeName (Urho3D::ConstraintMouse2D *_target)
  23360. {
  23361. return stringdup((_target->GetTypeName ()).CString ());
  23362. }
  23363. DllExport int
  23364. ConstraintMouse2D_GetTypeStatic ()
  23365. {
  23366. return (ConstraintMouse2D::GetTypeStatic ()).Value ();
  23367. }
  23368. DllExport const char *
  23369. ConstraintMouse2D_GetTypeNameStatic ()
  23370. {
  23371. return stringdup((ConstraintMouse2D::GetTypeNameStatic ()).CString ());
  23372. }
  23373. DllExport void *
  23374. ConstraintMouse2D_ConstraintMouse2D (Urho3D::Context * context)
  23375. {
  23376. return WeakPtr<ConstraintMouse2D>(new ConstraintMouse2D(context));
  23377. }
  23378. DllExport void
  23379. ConstraintMouse2D_RegisterObject (Urho3D::Context * context)
  23380. {
  23381. ConstraintMouse2D::RegisterObject (context);
  23382. }
  23383. DllExport void
  23384. ConstraintMouse2D_SetTarget (Urho3D::ConstraintMouse2D *_target, const class Urho3D::Vector2 & target)
  23385. {
  23386. _target->SetTarget (target);
  23387. }
  23388. DllExport void
  23389. ConstraintMouse2D_SetMaxForce (Urho3D::ConstraintMouse2D *_target, float maxForce)
  23390. {
  23391. _target->SetMaxForce (maxForce);
  23392. }
  23393. DllExport void
  23394. ConstraintMouse2D_SetFrequencyHz (Urho3D::ConstraintMouse2D *_target, float frequencyHz)
  23395. {
  23396. _target->SetFrequencyHz (frequencyHz);
  23397. }
  23398. DllExport void
  23399. ConstraintMouse2D_SetDampingRatio (Urho3D::ConstraintMouse2D *_target, float dampingRatio)
  23400. {
  23401. _target->SetDampingRatio (dampingRatio);
  23402. }
  23403. DllExport Interop::Vector2
  23404. ConstraintMouse2D_GetTarget (Urho3D::ConstraintMouse2D *_target)
  23405. {
  23406. return *((Interop::Vector2 *) &(_target->GetTarget ()));
  23407. }
  23408. DllExport float
  23409. ConstraintMouse2D_GetMaxForce (Urho3D::ConstraintMouse2D *_target)
  23410. {
  23411. return _target->GetMaxForce ();
  23412. }
  23413. DllExport float
  23414. ConstraintMouse2D_GetFrequencyHz (Urho3D::ConstraintMouse2D *_target)
  23415. {
  23416. return _target->GetFrequencyHz ();
  23417. }
  23418. DllExport float
  23419. ConstraintMouse2D_GetDampingRatio (Urho3D::ConstraintMouse2D *_target)
  23420. {
  23421. return _target->GetDampingRatio ();
  23422. }
  23423. DllExport int
  23424. ConstraintPrismatic2D_GetType (Urho3D::ConstraintPrismatic2D *_target)
  23425. {
  23426. return (_target->GetType ()).Value ();
  23427. }
  23428. DllExport const char *
  23429. ConstraintPrismatic2D_GetTypeName (Urho3D::ConstraintPrismatic2D *_target)
  23430. {
  23431. return stringdup((_target->GetTypeName ()).CString ());
  23432. }
  23433. DllExport int
  23434. ConstraintPrismatic2D_GetTypeStatic ()
  23435. {
  23436. return (ConstraintPrismatic2D::GetTypeStatic ()).Value ();
  23437. }
  23438. DllExport const char *
  23439. ConstraintPrismatic2D_GetTypeNameStatic ()
  23440. {
  23441. return stringdup((ConstraintPrismatic2D::GetTypeNameStatic ()).CString ());
  23442. }
  23443. DllExport void *
  23444. ConstraintPrismatic2D_ConstraintPrismatic2D (Urho3D::Context * context)
  23445. {
  23446. return WeakPtr<ConstraintPrismatic2D>(new ConstraintPrismatic2D(context));
  23447. }
  23448. DllExport void
  23449. ConstraintPrismatic2D_RegisterObject (Urho3D::Context * context)
  23450. {
  23451. ConstraintPrismatic2D::RegisterObject (context);
  23452. }
  23453. DllExport void
  23454. ConstraintPrismatic2D_SetAnchor (Urho3D::ConstraintPrismatic2D *_target, const class Urho3D::Vector2 & anchor)
  23455. {
  23456. _target->SetAnchor (anchor);
  23457. }
  23458. DllExport void
  23459. ConstraintPrismatic2D_SetAxis (Urho3D::ConstraintPrismatic2D *_target, const class Urho3D::Vector2 & axis)
  23460. {
  23461. _target->SetAxis (axis);
  23462. }
  23463. DllExport void
  23464. ConstraintPrismatic2D_SetEnableLimit (Urho3D::ConstraintPrismatic2D *_target, bool enableLimit)
  23465. {
  23466. _target->SetEnableLimit (enableLimit);
  23467. }
  23468. DllExport void
  23469. ConstraintPrismatic2D_SetLowerTranslation (Urho3D::ConstraintPrismatic2D *_target, float lowerTranslation)
  23470. {
  23471. _target->SetLowerTranslation (lowerTranslation);
  23472. }
  23473. DllExport void
  23474. ConstraintPrismatic2D_SetUpperTranslation (Urho3D::ConstraintPrismatic2D *_target, float upperTranslation)
  23475. {
  23476. _target->SetUpperTranslation (upperTranslation);
  23477. }
  23478. DllExport void
  23479. ConstraintPrismatic2D_SetEnableMotor (Urho3D::ConstraintPrismatic2D *_target, bool enableMotor)
  23480. {
  23481. _target->SetEnableMotor (enableMotor);
  23482. }
  23483. DllExport void
  23484. ConstraintPrismatic2D_SetMaxMotorForce (Urho3D::ConstraintPrismatic2D *_target, float maxMotorForce)
  23485. {
  23486. _target->SetMaxMotorForce (maxMotorForce);
  23487. }
  23488. DllExport void
  23489. ConstraintPrismatic2D_SetMotorSpeed (Urho3D::ConstraintPrismatic2D *_target, float motorSpeed)
  23490. {
  23491. _target->SetMotorSpeed (motorSpeed);
  23492. }
  23493. DllExport Interop::Vector2
  23494. ConstraintPrismatic2D_GetAnchor (Urho3D::ConstraintPrismatic2D *_target)
  23495. {
  23496. return *((Interop::Vector2 *) &(_target->GetAnchor ()));
  23497. }
  23498. DllExport Interop::Vector2
  23499. ConstraintPrismatic2D_GetAxis (Urho3D::ConstraintPrismatic2D *_target)
  23500. {
  23501. return *((Interop::Vector2 *) &(_target->GetAxis ()));
  23502. }
  23503. DllExport int
  23504. ConstraintPrismatic2D_GetEnableLimit (Urho3D::ConstraintPrismatic2D *_target)
  23505. {
  23506. return _target->GetEnableLimit ();
  23507. }
  23508. DllExport float
  23509. ConstraintPrismatic2D_GetLowerTranslation (Urho3D::ConstraintPrismatic2D *_target)
  23510. {
  23511. return _target->GetLowerTranslation ();
  23512. }
  23513. DllExport float
  23514. ConstraintPrismatic2D_GetUpperTranslation (Urho3D::ConstraintPrismatic2D *_target)
  23515. {
  23516. return _target->GetUpperTranslation ();
  23517. }
  23518. DllExport int
  23519. ConstraintPrismatic2D_GetEnableMotor (Urho3D::ConstraintPrismatic2D *_target)
  23520. {
  23521. return _target->GetEnableMotor ();
  23522. }
  23523. DllExport float
  23524. ConstraintPrismatic2D_GetMaxMotorForce (Urho3D::ConstraintPrismatic2D *_target)
  23525. {
  23526. return _target->GetMaxMotorForce ();
  23527. }
  23528. DllExport float
  23529. ConstraintPrismatic2D_GetMotorSpeed (Urho3D::ConstraintPrismatic2D *_target)
  23530. {
  23531. return _target->GetMotorSpeed ();
  23532. }
  23533. DllExport int
  23534. ConstraintPulley2D_GetType (Urho3D::ConstraintPulley2D *_target)
  23535. {
  23536. return (_target->GetType ()).Value ();
  23537. }
  23538. DllExport const char *
  23539. ConstraintPulley2D_GetTypeName (Urho3D::ConstraintPulley2D *_target)
  23540. {
  23541. return stringdup((_target->GetTypeName ()).CString ());
  23542. }
  23543. DllExport int
  23544. ConstraintPulley2D_GetTypeStatic ()
  23545. {
  23546. return (ConstraintPulley2D::GetTypeStatic ()).Value ();
  23547. }
  23548. DllExport const char *
  23549. ConstraintPulley2D_GetTypeNameStatic ()
  23550. {
  23551. return stringdup((ConstraintPulley2D::GetTypeNameStatic ()).CString ());
  23552. }
  23553. DllExport void *
  23554. ConstraintPulley2D_ConstraintPulley2D (Urho3D::Context * context)
  23555. {
  23556. return WeakPtr<ConstraintPulley2D>(new ConstraintPulley2D(context));
  23557. }
  23558. DllExport void
  23559. ConstraintPulley2D_RegisterObject (Urho3D::Context * context)
  23560. {
  23561. ConstraintPulley2D::RegisterObject (context);
  23562. }
  23563. DllExport void
  23564. ConstraintPulley2D_SetOwnerBodyGroundAnchor (Urho3D::ConstraintPulley2D *_target, const class Urho3D::Vector2 & groundAnchor)
  23565. {
  23566. _target->SetOwnerBodyGroundAnchor (groundAnchor);
  23567. }
  23568. DllExport void
  23569. ConstraintPulley2D_SetOtherBodyGroundAnchor (Urho3D::ConstraintPulley2D *_target, const class Urho3D::Vector2 & groundAnchor)
  23570. {
  23571. _target->SetOtherBodyGroundAnchor (groundAnchor);
  23572. }
  23573. DllExport void
  23574. ConstraintPulley2D_SetOwnerBodyAnchor (Urho3D::ConstraintPulley2D *_target, const class Urho3D::Vector2 & anchor)
  23575. {
  23576. _target->SetOwnerBodyAnchor (anchor);
  23577. }
  23578. DllExport void
  23579. ConstraintPulley2D_SetOtherBodyAnchor (Urho3D::ConstraintPulley2D *_target, const class Urho3D::Vector2 & anchor)
  23580. {
  23581. _target->SetOtherBodyAnchor (anchor);
  23582. }
  23583. DllExport void
  23584. ConstraintPulley2D_SetRatio (Urho3D::ConstraintPulley2D *_target, float ratio)
  23585. {
  23586. _target->SetRatio (ratio);
  23587. }
  23588. DllExport Interop::Vector2
  23589. ConstraintPulley2D_GetOwnerBodyGroundAnchor (Urho3D::ConstraintPulley2D *_target)
  23590. {
  23591. return *((Interop::Vector2 *) &(_target->GetOwnerBodyGroundAnchor ()));
  23592. }
  23593. DllExport Interop::Vector2
  23594. ConstraintPulley2D_GetOtherBodyGroundAnchor (Urho3D::ConstraintPulley2D *_target)
  23595. {
  23596. return *((Interop::Vector2 *) &(_target->GetOtherBodyGroundAnchor ()));
  23597. }
  23598. DllExport Interop::Vector2
  23599. ConstraintPulley2D_GetOwnerBodyAnchor (Urho3D::ConstraintPulley2D *_target)
  23600. {
  23601. return *((Interop::Vector2 *) &(_target->GetOwnerBodyAnchor ()));
  23602. }
  23603. DllExport Interop::Vector2
  23604. ConstraintPulley2D_GetOtherBodyAnchor (Urho3D::ConstraintPulley2D *_target)
  23605. {
  23606. return *((Interop::Vector2 *) &(_target->GetOtherBodyAnchor ()));
  23607. }
  23608. DllExport float
  23609. ConstraintPulley2D_GetRatio (Urho3D::ConstraintPulley2D *_target)
  23610. {
  23611. return _target->GetRatio ();
  23612. }
  23613. DllExport int
  23614. ConstraintRevolute2D_GetType (Urho3D::ConstraintRevolute2D *_target)
  23615. {
  23616. return (_target->GetType ()).Value ();
  23617. }
  23618. DllExport const char *
  23619. ConstraintRevolute2D_GetTypeName (Urho3D::ConstraintRevolute2D *_target)
  23620. {
  23621. return stringdup((_target->GetTypeName ()).CString ());
  23622. }
  23623. DllExport int
  23624. ConstraintRevolute2D_GetTypeStatic ()
  23625. {
  23626. return (ConstraintRevolute2D::GetTypeStatic ()).Value ();
  23627. }
  23628. DllExport const char *
  23629. ConstraintRevolute2D_GetTypeNameStatic ()
  23630. {
  23631. return stringdup((ConstraintRevolute2D::GetTypeNameStatic ()).CString ());
  23632. }
  23633. DllExport void *
  23634. ConstraintRevolute2D_ConstraintRevolute2D (Urho3D::Context * context)
  23635. {
  23636. return WeakPtr<ConstraintRevolute2D>(new ConstraintRevolute2D(context));
  23637. }
  23638. DllExport void
  23639. ConstraintRevolute2D_RegisterObject (Urho3D::Context * context)
  23640. {
  23641. ConstraintRevolute2D::RegisterObject (context);
  23642. }
  23643. DllExport void
  23644. ConstraintRevolute2D_SetAnchor (Urho3D::ConstraintRevolute2D *_target, const class Urho3D::Vector2 & anchor)
  23645. {
  23646. _target->SetAnchor (anchor);
  23647. }
  23648. DllExport void
  23649. ConstraintRevolute2D_SetEnableLimit (Urho3D::ConstraintRevolute2D *_target, bool enableLimit)
  23650. {
  23651. _target->SetEnableLimit (enableLimit);
  23652. }
  23653. DllExport void
  23654. ConstraintRevolute2D_SetLowerAngle (Urho3D::ConstraintRevolute2D *_target, float lowerAngle)
  23655. {
  23656. _target->SetLowerAngle (lowerAngle);
  23657. }
  23658. DllExport void
  23659. ConstraintRevolute2D_SetUpperAngle (Urho3D::ConstraintRevolute2D *_target, float upperAngle)
  23660. {
  23661. _target->SetUpperAngle (upperAngle);
  23662. }
  23663. DllExport void
  23664. ConstraintRevolute2D_SetEnableMotor (Urho3D::ConstraintRevolute2D *_target, bool enableMotor)
  23665. {
  23666. _target->SetEnableMotor (enableMotor);
  23667. }
  23668. DllExport void
  23669. ConstraintRevolute2D_SetMotorSpeed (Urho3D::ConstraintRevolute2D *_target, float motorSpeed)
  23670. {
  23671. _target->SetMotorSpeed (motorSpeed);
  23672. }
  23673. DllExport void
  23674. ConstraintRevolute2D_SetMaxMotorTorque (Urho3D::ConstraintRevolute2D *_target, float maxMotorTorque)
  23675. {
  23676. _target->SetMaxMotorTorque (maxMotorTorque);
  23677. }
  23678. DllExport Interop::Vector2
  23679. ConstraintRevolute2D_GetAnchor (Urho3D::ConstraintRevolute2D *_target)
  23680. {
  23681. return *((Interop::Vector2 *) &(_target->GetAnchor ()));
  23682. }
  23683. DllExport int
  23684. ConstraintRevolute2D_GetEnableLimit (Urho3D::ConstraintRevolute2D *_target)
  23685. {
  23686. return _target->GetEnableLimit ();
  23687. }
  23688. DllExport float
  23689. ConstraintRevolute2D_GetLowerAngle (Urho3D::ConstraintRevolute2D *_target)
  23690. {
  23691. return _target->GetLowerAngle ();
  23692. }
  23693. DllExport float
  23694. ConstraintRevolute2D_GetUpperAngle (Urho3D::ConstraintRevolute2D *_target)
  23695. {
  23696. return _target->GetUpperAngle ();
  23697. }
  23698. DllExport int
  23699. ConstraintRevolute2D_GetEnableMotor (Urho3D::ConstraintRevolute2D *_target)
  23700. {
  23701. return _target->GetEnableMotor ();
  23702. }
  23703. DllExport float
  23704. ConstraintRevolute2D_GetMotorSpeed (Urho3D::ConstraintRevolute2D *_target)
  23705. {
  23706. return _target->GetMotorSpeed ();
  23707. }
  23708. DllExport float
  23709. ConstraintRevolute2D_GetMaxMotorTorque (Urho3D::ConstraintRevolute2D *_target)
  23710. {
  23711. return _target->GetMaxMotorTorque ();
  23712. }
  23713. DllExport int
  23714. ConstraintRope2D_GetType (Urho3D::ConstraintRope2D *_target)
  23715. {
  23716. return (_target->GetType ()).Value ();
  23717. }
  23718. DllExport const char *
  23719. ConstraintRope2D_GetTypeName (Urho3D::ConstraintRope2D *_target)
  23720. {
  23721. return stringdup((_target->GetTypeName ()).CString ());
  23722. }
  23723. DllExport int
  23724. ConstraintRope2D_GetTypeStatic ()
  23725. {
  23726. return (ConstraintRope2D::GetTypeStatic ()).Value ();
  23727. }
  23728. DllExport const char *
  23729. ConstraintRope2D_GetTypeNameStatic ()
  23730. {
  23731. return stringdup((ConstraintRope2D::GetTypeNameStatic ()).CString ());
  23732. }
  23733. DllExport void *
  23734. ConstraintRope2D_ConstraintRope2D (Urho3D::Context * context)
  23735. {
  23736. return WeakPtr<ConstraintRope2D>(new ConstraintRope2D(context));
  23737. }
  23738. DllExport void
  23739. ConstraintRope2D_RegisterObject (Urho3D::Context * context)
  23740. {
  23741. ConstraintRope2D::RegisterObject (context);
  23742. }
  23743. DllExport void
  23744. ConstraintRope2D_SetOwnerBodyAnchor (Urho3D::ConstraintRope2D *_target, const class Urho3D::Vector2 & anchor)
  23745. {
  23746. _target->SetOwnerBodyAnchor (anchor);
  23747. }
  23748. DllExport void
  23749. ConstraintRope2D_SetOtherBodyAnchor (Urho3D::ConstraintRope2D *_target, const class Urho3D::Vector2 & anchor)
  23750. {
  23751. _target->SetOtherBodyAnchor (anchor);
  23752. }
  23753. DllExport void
  23754. ConstraintRope2D_SetMaxLength (Urho3D::ConstraintRope2D *_target, float maxLength)
  23755. {
  23756. _target->SetMaxLength (maxLength);
  23757. }
  23758. DllExport Interop::Vector2
  23759. ConstraintRope2D_GetOwnerBodyAnchor (Urho3D::ConstraintRope2D *_target)
  23760. {
  23761. return *((Interop::Vector2 *) &(_target->GetOwnerBodyAnchor ()));
  23762. }
  23763. DllExport Interop::Vector2
  23764. ConstraintRope2D_GetOtherBodyAnchor (Urho3D::ConstraintRope2D *_target)
  23765. {
  23766. return *((Interop::Vector2 *) &(_target->GetOtherBodyAnchor ()));
  23767. }
  23768. DllExport float
  23769. ConstraintRope2D_GetMaxLength (Urho3D::ConstraintRope2D *_target)
  23770. {
  23771. return _target->GetMaxLength ();
  23772. }
  23773. DllExport int
  23774. ConstraintWeld2D_GetType (Urho3D::ConstraintWeld2D *_target)
  23775. {
  23776. return (_target->GetType ()).Value ();
  23777. }
  23778. DllExport const char *
  23779. ConstraintWeld2D_GetTypeName (Urho3D::ConstraintWeld2D *_target)
  23780. {
  23781. return stringdup((_target->GetTypeName ()).CString ());
  23782. }
  23783. DllExport int
  23784. ConstraintWeld2D_GetTypeStatic ()
  23785. {
  23786. return (ConstraintWeld2D::GetTypeStatic ()).Value ();
  23787. }
  23788. DllExport const char *
  23789. ConstraintWeld2D_GetTypeNameStatic ()
  23790. {
  23791. return stringdup((ConstraintWeld2D::GetTypeNameStatic ()).CString ());
  23792. }
  23793. DllExport void *
  23794. ConstraintWeld2D_ConstraintWeld2D (Urho3D::Context * context)
  23795. {
  23796. return WeakPtr<ConstraintWeld2D>(new ConstraintWeld2D(context));
  23797. }
  23798. DllExport void
  23799. ConstraintWeld2D_RegisterObject (Urho3D::Context * context)
  23800. {
  23801. ConstraintWeld2D::RegisterObject (context);
  23802. }
  23803. DllExport void
  23804. ConstraintWeld2D_SetAnchor (Urho3D::ConstraintWeld2D *_target, const class Urho3D::Vector2 & anchor)
  23805. {
  23806. _target->SetAnchor (anchor);
  23807. }
  23808. DllExport void
  23809. ConstraintWeld2D_SetFrequencyHz (Urho3D::ConstraintWeld2D *_target, float frequencyHz)
  23810. {
  23811. _target->SetFrequencyHz (frequencyHz);
  23812. }
  23813. DllExport void
  23814. ConstraintWeld2D_SetDampingRatio (Urho3D::ConstraintWeld2D *_target, float dampingRatio)
  23815. {
  23816. _target->SetDampingRatio (dampingRatio);
  23817. }
  23818. DllExport Interop::Vector2
  23819. ConstraintWeld2D_GetAnchor (Urho3D::ConstraintWeld2D *_target)
  23820. {
  23821. return *((Interop::Vector2 *) &(_target->GetAnchor ()));
  23822. }
  23823. DllExport float
  23824. ConstraintWeld2D_GetFrequencyHz (Urho3D::ConstraintWeld2D *_target)
  23825. {
  23826. return _target->GetFrequencyHz ();
  23827. }
  23828. DllExport float
  23829. ConstraintWeld2D_GetDampingRatio (Urho3D::ConstraintWeld2D *_target)
  23830. {
  23831. return _target->GetDampingRatio ();
  23832. }
  23833. DllExport int
  23834. ConstraintWheel2D_GetType (Urho3D::ConstraintWheel2D *_target)
  23835. {
  23836. return (_target->GetType ()).Value ();
  23837. }
  23838. DllExport const char *
  23839. ConstraintWheel2D_GetTypeName (Urho3D::ConstraintWheel2D *_target)
  23840. {
  23841. return stringdup((_target->GetTypeName ()).CString ());
  23842. }
  23843. DllExport int
  23844. ConstraintWheel2D_GetTypeStatic ()
  23845. {
  23846. return (ConstraintWheel2D::GetTypeStatic ()).Value ();
  23847. }
  23848. DllExport const char *
  23849. ConstraintWheel2D_GetTypeNameStatic ()
  23850. {
  23851. return stringdup((ConstraintWheel2D::GetTypeNameStatic ()).CString ());
  23852. }
  23853. DllExport void *
  23854. ConstraintWheel2D_ConstraintWheel2D (Urho3D::Context * context)
  23855. {
  23856. return WeakPtr<ConstraintWheel2D>(new ConstraintWheel2D(context));
  23857. }
  23858. DllExport void
  23859. ConstraintWheel2D_RegisterObject (Urho3D::Context * context)
  23860. {
  23861. ConstraintWheel2D::RegisterObject (context);
  23862. }
  23863. DllExport void
  23864. ConstraintWheel2D_SetAnchor (Urho3D::ConstraintWheel2D *_target, const class Urho3D::Vector2 & anchor)
  23865. {
  23866. _target->SetAnchor (anchor);
  23867. }
  23868. DllExport void
  23869. ConstraintWheel2D_SetAxis (Urho3D::ConstraintWheel2D *_target, const class Urho3D::Vector2 & axis)
  23870. {
  23871. _target->SetAxis (axis);
  23872. }
  23873. DllExport void
  23874. ConstraintWheel2D_SetEnableMotor (Urho3D::ConstraintWheel2D *_target, bool enableMotor)
  23875. {
  23876. _target->SetEnableMotor (enableMotor);
  23877. }
  23878. DllExport void
  23879. ConstraintWheel2D_SetMaxMotorTorque (Urho3D::ConstraintWheel2D *_target, float maxMotorTorque)
  23880. {
  23881. _target->SetMaxMotorTorque (maxMotorTorque);
  23882. }
  23883. DllExport void
  23884. ConstraintWheel2D_SetMotorSpeed (Urho3D::ConstraintWheel2D *_target, float motorSpeed)
  23885. {
  23886. _target->SetMotorSpeed (motorSpeed);
  23887. }
  23888. DllExport void
  23889. ConstraintWheel2D_SetFrequencyHz (Urho3D::ConstraintWheel2D *_target, float frequencyHz)
  23890. {
  23891. _target->SetFrequencyHz (frequencyHz);
  23892. }
  23893. DllExport void
  23894. ConstraintWheel2D_SetDampingRatio (Urho3D::ConstraintWheel2D *_target, float dampingRatio)
  23895. {
  23896. _target->SetDampingRatio (dampingRatio);
  23897. }
  23898. DllExport Interop::Vector2
  23899. ConstraintWheel2D_GetAnchor (Urho3D::ConstraintWheel2D *_target)
  23900. {
  23901. return *((Interop::Vector2 *) &(_target->GetAnchor ()));
  23902. }
  23903. DllExport Interop::Vector2
  23904. ConstraintWheel2D_GetAxis (Urho3D::ConstraintWheel2D *_target)
  23905. {
  23906. return *((Interop::Vector2 *) &(_target->GetAxis ()));
  23907. }
  23908. DllExport int
  23909. ConstraintWheel2D_GetEnableMotor (Urho3D::ConstraintWheel2D *_target)
  23910. {
  23911. return _target->GetEnableMotor ();
  23912. }
  23913. DllExport float
  23914. ConstraintWheel2D_GetMaxMotorTorque (Urho3D::ConstraintWheel2D *_target)
  23915. {
  23916. return _target->GetMaxMotorTorque ();
  23917. }
  23918. DllExport float
  23919. ConstraintWheel2D_GetMotorSpeed (Urho3D::ConstraintWheel2D *_target)
  23920. {
  23921. return _target->GetMotorSpeed ();
  23922. }
  23923. DllExport float
  23924. ConstraintWheel2D_GetFrequencyHz (Urho3D::ConstraintWheel2D *_target)
  23925. {
  23926. return _target->GetFrequencyHz ();
  23927. }
  23928. DllExport float
  23929. ConstraintWheel2D_GetDampingRatio (Urho3D::ConstraintWheel2D *_target)
  23930. {
  23931. return _target->GetDampingRatio ();
  23932. }
  23933. DllExport int
  23934. ParticleEffect2D_GetType (Urho3D::ParticleEffect2D *_target)
  23935. {
  23936. return (_target->GetType ()).Value ();
  23937. }
  23938. DllExport const char *
  23939. ParticleEffect2D_GetTypeName (Urho3D::ParticleEffect2D *_target)
  23940. {
  23941. return stringdup((_target->GetTypeName ()).CString ());
  23942. }
  23943. DllExport int
  23944. ParticleEffect2D_GetTypeStatic ()
  23945. {
  23946. return (ParticleEffect2D::GetTypeStatic ()).Value ();
  23947. }
  23948. DllExport const char *
  23949. ParticleEffect2D_GetTypeNameStatic ()
  23950. {
  23951. return stringdup((ParticleEffect2D::GetTypeNameStatic ()).CString ());
  23952. }
  23953. DllExport void *
  23954. ParticleEffect2D_ParticleEffect2D (Urho3D::Context * context)
  23955. {
  23956. return WeakPtr<ParticleEffect2D>(new ParticleEffect2D(context));
  23957. }
  23958. DllExport void
  23959. ParticleEffect2D_RegisterObject (Urho3D::Context * context)
  23960. {
  23961. ParticleEffect2D::RegisterObject (context);
  23962. }
  23963. DllExport int
  23964. ParticleEffect2D_BeginLoad_File (Urho3D::ParticleEffect2D *_target, File * source)
  23965. {
  23966. return _target->BeginLoad (*source);
  23967. }
  23968. DllExport int
  23969. ParticleEffect2D_BeginLoad_MemoryBuffer (Urho3D::ParticleEffect2D *_target, MemoryBuffer * source)
  23970. {
  23971. return _target->BeginLoad (*source);
  23972. }
  23973. DllExport int
  23974. ParticleEffect2D_EndLoad (Urho3D::ParticleEffect2D *_target)
  23975. {
  23976. return _target->EndLoad ();
  23977. }
  23978. DllExport int
  23979. ParticleEffect2D_Save_File (Urho3D::ParticleEffect2D *_target, File * dest)
  23980. {
  23981. return _target->Save (*dest);
  23982. }
  23983. DllExport int
  23984. ParticleEffect2D_Save_MemoryBuffer (Urho3D::ParticleEffect2D *_target, MemoryBuffer * dest)
  23985. {
  23986. return _target->Save (*dest);
  23987. }
  23988. DllExport void
  23989. ParticleEffect2D_SetSprite (Urho3D::ParticleEffect2D *_target, Urho3D::Sprite2D * sprite)
  23990. {
  23991. _target->SetSprite (sprite);
  23992. }
  23993. DllExport void
  23994. ParticleEffect2D_SetSourcePositionVariance (Urho3D::ParticleEffect2D *_target, const class Urho3D::Vector2 & sourcePositionVariance)
  23995. {
  23996. _target->SetSourcePositionVariance (sourcePositionVariance);
  23997. }
  23998. DllExport void
  23999. ParticleEffect2D_SetSpeed (Urho3D::ParticleEffect2D *_target, float speed)
  24000. {
  24001. _target->SetSpeed (speed);
  24002. }
  24003. DllExport void
  24004. ParticleEffect2D_SetSpeedVariance (Urho3D::ParticleEffect2D *_target, float speedVariance)
  24005. {
  24006. _target->SetSpeedVariance (speedVariance);
  24007. }
  24008. DllExport void
  24009. ParticleEffect2D_SetParticleLifeSpan (Urho3D::ParticleEffect2D *_target, float particleLifeSpan)
  24010. {
  24011. _target->SetParticleLifeSpan (particleLifeSpan);
  24012. }
  24013. DllExport void
  24014. ParticleEffect2D_SetParticleLifespanVariance (Urho3D::ParticleEffect2D *_target, float particleLifespanVariance)
  24015. {
  24016. _target->SetParticleLifespanVariance (particleLifespanVariance);
  24017. }
  24018. DllExport void
  24019. ParticleEffect2D_SetAngle (Urho3D::ParticleEffect2D *_target, float angle)
  24020. {
  24021. _target->SetAngle (angle);
  24022. }
  24023. DllExport void
  24024. ParticleEffect2D_SetAngleVariance (Urho3D::ParticleEffect2D *_target, float angleVariance)
  24025. {
  24026. _target->SetAngleVariance (angleVariance);
  24027. }
  24028. DllExport void
  24029. ParticleEffect2D_SetGravity (Urho3D::ParticleEffect2D *_target, const class Urho3D::Vector2 & gravity)
  24030. {
  24031. _target->SetGravity (gravity);
  24032. }
  24033. DllExport void
  24034. ParticleEffect2D_SetRadialAcceleration (Urho3D::ParticleEffect2D *_target, float radialAcceleration)
  24035. {
  24036. _target->SetRadialAcceleration (radialAcceleration);
  24037. }
  24038. DllExport void
  24039. ParticleEffect2D_SetTangentialAcceleration (Urho3D::ParticleEffect2D *_target, float tangentialAcceleration)
  24040. {
  24041. _target->SetTangentialAcceleration (tangentialAcceleration);
  24042. }
  24043. DllExport void
  24044. ParticleEffect2D_SetRadialAccelVariance (Urho3D::ParticleEffect2D *_target, float radialAccelVariance)
  24045. {
  24046. _target->SetRadialAccelVariance (radialAccelVariance);
  24047. }
  24048. DllExport void
  24049. ParticleEffect2D_SetTangentialAccelVariance (Urho3D::ParticleEffect2D *_target, float tangentialAccelVariance)
  24050. {
  24051. _target->SetTangentialAccelVariance (tangentialAccelVariance);
  24052. }
  24053. DllExport void
  24054. ParticleEffect2D_SetStartColor (Urho3D::ParticleEffect2D *_target, const class Urho3D::Color & startColor)
  24055. {
  24056. _target->SetStartColor (startColor);
  24057. }
  24058. DllExport void
  24059. ParticleEffect2D_SetStartColorVariance (Urho3D::ParticleEffect2D *_target, const class Urho3D::Color & startColorVariance)
  24060. {
  24061. _target->SetStartColorVariance (startColorVariance);
  24062. }
  24063. DllExport void
  24064. ParticleEffect2D_SetFinishColor (Urho3D::ParticleEffect2D *_target, const class Urho3D::Color & finishColor)
  24065. {
  24066. _target->SetFinishColor (finishColor);
  24067. }
  24068. DllExport void
  24069. ParticleEffect2D_SetFinishColorVariance (Urho3D::ParticleEffect2D *_target, const class Urho3D::Color & finishColorVariance)
  24070. {
  24071. _target->SetFinishColorVariance (finishColorVariance);
  24072. }
  24073. DllExport void
  24074. ParticleEffect2D_SetMaxParticles (Urho3D::ParticleEffect2D *_target, int maxParticles)
  24075. {
  24076. _target->SetMaxParticles (maxParticles);
  24077. }
  24078. DllExport void
  24079. ParticleEffect2D_SetStartParticleSize (Urho3D::ParticleEffect2D *_target, float startParticleSize)
  24080. {
  24081. _target->SetStartParticleSize (startParticleSize);
  24082. }
  24083. DllExport void
  24084. ParticleEffect2D_SetStartParticleSizeVariance (Urho3D::ParticleEffect2D *_target, float startParticleSizeVariance)
  24085. {
  24086. _target->SetStartParticleSizeVariance (startParticleSizeVariance);
  24087. }
  24088. DllExport void
  24089. ParticleEffect2D_SetFinishParticleSize (Urho3D::ParticleEffect2D *_target, float finishParticleSize)
  24090. {
  24091. _target->SetFinishParticleSize (finishParticleSize);
  24092. }
  24093. DllExport void
  24094. ParticleEffect2D_SetFinishParticleSizeVariance (Urho3D::ParticleEffect2D *_target, float FinishParticleSizeVariance)
  24095. {
  24096. _target->SetFinishParticleSizeVariance (FinishParticleSizeVariance);
  24097. }
  24098. DllExport void
  24099. ParticleEffect2D_SetDuration (Urho3D::ParticleEffect2D *_target, float duration)
  24100. {
  24101. _target->SetDuration (duration);
  24102. }
  24103. DllExport void
  24104. ParticleEffect2D_SetEmitterType (Urho3D::ParticleEffect2D *_target, enum Urho3D::EmitterType2D emitterType)
  24105. {
  24106. _target->SetEmitterType (emitterType);
  24107. }
  24108. DllExport void
  24109. ParticleEffect2D_SetMaxRadius (Urho3D::ParticleEffect2D *_target, float maxRadius)
  24110. {
  24111. _target->SetMaxRadius (maxRadius);
  24112. }
  24113. DllExport void
  24114. ParticleEffect2D_SetMaxRadiusVariance (Urho3D::ParticleEffect2D *_target, float maxRadiusVariance)
  24115. {
  24116. _target->SetMaxRadiusVariance (maxRadiusVariance);
  24117. }
  24118. DllExport void
  24119. ParticleEffect2D_SetMinRadius (Urho3D::ParticleEffect2D *_target, float minRadius)
  24120. {
  24121. _target->SetMinRadius (minRadius);
  24122. }
  24123. DllExport void
  24124. ParticleEffect2D_SetMinRadiusVariance (Urho3D::ParticleEffect2D *_target, float minRadiusVariance)
  24125. {
  24126. _target->SetMinRadiusVariance (minRadiusVariance);
  24127. }
  24128. DllExport void
  24129. ParticleEffect2D_SetRotatePerSecond (Urho3D::ParticleEffect2D *_target, float rotatePerSecond)
  24130. {
  24131. _target->SetRotatePerSecond (rotatePerSecond);
  24132. }
  24133. DllExport void
  24134. ParticleEffect2D_SetRotatePerSecondVariance (Urho3D::ParticleEffect2D *_target, float rotatePerSecondVariance)
  24135. {
  24136. _target->SetRotatePerSecondVariance (rotatePerSecondVariance);
  24137. }
  24138. DllExport void
  24139. ParticleEffect2D_SetBlendMode (Urho3D::ParticleEffect2D *_target, enum Urho3D::BlendMode blendMode)
  24140. {
  24141. _target->SetBlendMode (blendMode);
  24142. }
  24143. DllExport void
  24144. ParticleEffect2D_SetRotationStart (Urho3D::ParticleEffect2D *_target, float rotationStart)
  24145. {
  24146. _target->SetRotationStart (rotationStart);
  24147. }
  24148. DllExport void
  24149. ParticleEffect2D_SetRotationStartVariance (Urho3D::ParticleEffect2D *_target, float rotationStartVariance)
  24150. {
  24151. _target->SetRotationStartVariance (rotationStartVariance);
  24152. }
  24153. DllExport void
  24154. ParticleEffect2D_SetRotationEnd (Urho3D::ParticleEffect2D *_target, float rotationEnd)
  24155. {
  24156. _target->SetRotationEnd (rotationEnd);
  24157. }
  24158. DllExport void
  24159. ParticleEffect2D_SetRotationEndVariance (Urho3D::ParticleEffect2D *_target, float rotationEndVariance)
  24160. {
  24161. _target->SetRotationEndVariance (rotationEndVariance);
  24162. }
  24163. DllExport Urho3D::ParticleEffect2D *
  24164. ParticleEffect2D_Clone (Urho3D::ParticleEffect2D *_target, const char * cloneName)
  24165. {
  24166. auto copy = _target->Clone (Urho3D::String(cloneName));
  24167. auto plain = copy.Get();
  24168. copy.Detach();
  24169. delete copy;
  24170. return plain;
  24171. }
  24172. DllExport Urho3D::Sprite2D *
  24173. ParticleEffect2D_GetSprite (Urho3D::ParticleEffect2D *_target)
  24174. {
  24175. return _target->GetSprite ();
  24176. }
  24177. DllExport Interop::Vector2
  24178. ParticleEffect2D_GetSourcePositionVariance (Urho3D::ParticleEffect2D *_target)
  24179. {
  24180. return *((Interop::Vector2 *) &(_target->GetSourcePositionVariance ()));
  24181. }
  24182. DllExport float
  24183. ParticleEffect2D_GetSpeed (Urho3D::ParticleEffect2D *_target)
  24184. {
  24185. return _target->GetSpeed ();
  24186. }
  24187. DllExport float
  24188. ParticleEffect2D_GetSpeedVariance (Urho3D::ParticleEffect2D *_target)
  24189. {
  24190. return _target->GetSpeedVariance ();
  24191. }
  24192. DllExport float
  24193. ParticleEffect2D_GetParticleLifeSpan (Urho3D::ParticleEffect2D *_target)
  24194. {
  24195. return _target->GetParticleLifeSpan ();
  24196. }
  24197. DllExport float
  24198. ParticleEffect2D_GetParticleLifespanVariance (Urho3D::ParticleEffect2D *_target)
  24199. {
  24200. return _target->GetParticleLifespanVariance ();
  24201. }
  24202. DllExport float
  24203. ParticleEffect2D_GetAngle (Urho3D::ParticleEffect2D *_target)
  24204. {
  24205. return _target->GetAngle ();
  24206. }
  24207. DllExport float
  24208. ParticleEffect2D_GetAngleVariance (Urho3D::ParticleEffect2D *_target)
  24209. {
  24210. return _target->GetAngleVariance ();
  24211. }
  24212. DllExport Interop::Vector2
  24213. ParticleEffect2D_GetGravity (Urho3D::ParticleEffect2D *_target)
  24214. {
  24215. return *((Interop::Vector2 *) &(_target->GetGravity ()));
  24216. }
  24217. DllExport float
  24218. ParticleEffect2D_GetRadialAcceleration (Urho3D::ParticleEffect2D *_target)
  24219. {
  24220. return _target->GetRadialAcceleration ();
  24221. }
  24222. DllExport float
  24223. ParticleEffect2D_GetTangentialAcceleration (Urho3D::ParticleEffect2D *_target)
  24224. {
  24225. return _target->GetTangentialAcceleration ();
  24226. }
  24227. DllExport float
  24228. ParticleEffect2D_GetRadialAccelVariance (Urho3D::ParticleEffect2D *_target)
  24229. {
  24230. return _target->GetRadialAccelVariance ();
  24231. }
  24232. DllExport float
  24233. ParticleEffect2D_GetTangentialAccelVariance (Urho3D::ParticleEffect2D *_target)
  24234. {
  24235. return _target->GetTangentialAccelVariance ();
  24236. }
  24237. DllExport Interop::Color
  24238. ParticleEffect2D_GetStartColor (Urho3D::ParticleEffect2D *_target)
  24239. {
  24240. return *((Interop::Color *) &(_target->GetStartColor ()));
  24241. }
  24242. DllExport Interop::Color
  24243. ParticleEffect2D_GetStartColorVariance (Urho3D::ParticleEffect2D *_target)
  24244. {
  24245. return *((Interop::Color *) &(_target->GetStartColorVariance ()));
  24246. }
  24247. DllExport Interop::Color
  24248. ParticleEffect2D_GetFinishColor (Urho3D::ParticleEffect2D *_target)
  24249. {
  24250. return *((Interop::Color *) &(_target->GetFinishColor ()));
  24251. }
  24252. DllExport Interop::Color
  24253. ParticleEffect2D_GetFinishColorVariance (Urho3D::ParticleEffect2D *_target)
  24254. {
  24255. return *((Interop::Color *) &(_target->GetFinishColorVariance ()));
  24256. }
  24257. DllExport int
  24258. ParticleEffect2D_GetMaxParticles (Urho3D::ParticleEffect2D *_target)
  24259. {
  24260. return _target->GetMaxParticles ();
  24261. }
  24262. DllExport float
  24263. ParticleEffect2D_GetStartParticleSize (Urho3D::ParticleEffect2D *_target)
  24264. {
  24265. return _target->GetStartParticleSize ();
  24266. }
  24267. DllExport float
  24268. ParticleEffect2D_GetStartParticleSizeVariance (Urho3D::ParticleEffect2D *_target)
  24269. {
  24270. return _target->GetStartParticleSizeVariance ();
  24271. }
  24272. DllExport float
  24273. ParticleEffect2D_GetFinishParticleSize (Urho3D::ParticleEffect2D *_target)
  24274. {
  24275. return _target->GetFinishParticleSize ();
  24276. }
  24277. DllExport float
  24278. ParticleEffect2D_GetFinishParticleSizeVariance (Urho3D::ParticleEffect2D *_target)
  24279. {
  24280. return _target->GetFinishParticleSizeVariance ();
  24281. }
  24282. DllExport float
  24283. ParticleEffect2D_GetDuration (Urho3D::ParticleEffect2D *_target)
  24284. {
  24285. return _target->GetDuration ();
  24286. }
  24287. DllExport enum Urho3D::EmitterType2D
  24288. ParticleEffect2D_GetEmitterType (Urho3D::ParticleEffect2D *_target)
  24289. {
  24290. return _target->GetEmitterType ();
  24291. }
  24292. DllExport float
  24293. ParticleEffect2D_GetMaxRadius (Urho3D::ParticleEffect2D *_target)
  24294. {
  24295. return _target->GetMaxRadius ();
  24296. }
  24297. DllExport float
  24298. ParticleEffect2D_GetMaxRadiusVariance (Urho3D::ParticleEffect2D *_target)
  24299. {
  24300. return _target->GetMaxRadiusVariance ();
  24301. }
  24302. DllExport float
  24303. ParticleEffect2D_GetMinRadius (Urho3D::ParticleEffect2D *_target)
  24304. {
  24305. return _target->GetMinRadius ();
  24306. }
  24307. DllExport float
  24308. ParticleEffect2D_GetMinRadiusVariance (Urho3D::ParticleEffect2D *_target)
  24309. {
  24310. return _target->GetMinRadiusVariance ();
  24311. }
  24312. DllExport float
  24313. ParticleEffect2D_GetRotatePerSecond (Urho3D::ParticleEffect2D *_target)
  24314. {
  24315. return _target->GetRotatePerSecond ();
  24316. }
  24317. DllExport float
  24318. ParticleEffect2D_GetRotatePerSecondVariance (Urho3D::ParticleEffect2D *_target)
  24319. {
  24320. return _target->GetRotatePerSecondVariance ();
  24321. }
  24322. DllExport enum Urho3D::BlendMode
  24323. ParticleEffect2D_GetBlendMode (Urho3D::ParticleEffect2D *_target)
  24324. {
  24325. return _target->GetBlendMode ();
  24326. }
  24327. DllExport float
  24328. ParticleEffect2D_GetRotationStart (Urho3D::ParticleEffect2D *_target)
  24329. {
  24330. return _target->GetRotationStart ();
  24331. }
  24332. DllExport float
  24333. ParticleEffect2D_GetRotationStartVariance (Urho3D::ParticleEffect2D *_target)
  24334. {
  24335. return _target->GetRotationStartVariance ();
  24336. }
  24337. DllExport float
  24338. ParticleEffect2D_GetRotationEnd (Urho3D::ParticleEffect2D *_target)
  24339. {
  24340. return _target->GetRotationEnd ();
  24341. }
  24342. DllExport float
  24343. ParticleEffect2D_GetRotationEndVariance (Urho3D::ParticleEffect2D *_target)
  24344. {
  24345. return _target->GetRotationEndVariance ();
  24346. }
  24347. DllExport int
  24348. ParticleEmitter2D_GetType (Urho3D::ParticleEmitter2D *_target)
  24349. {
  24350. return (_target->GetType ()).Value ();
  24351. }
  24352. DllExport const char *
  24353. ParticleEmitter2D_GetTypeName (Urho3D::ParticleEmitter2D *_target)
  24354. {
  24355. return stringdup((_target->GetTypeName ()).CString ());
  24356. }
  24357. DllExport int
  24358. ParticleEmitter2D_GetTypeStatic ()
  24359. {
  24360. return (ParticleEmitter2D::GetTypeStatic ()).Value ();
  24361. }
  24362. DllExport const char *
  24363. ParticleEmitter2D_GetTypeNameStatic ()
  24364. {
  24365. return stringdup((ParticleEmitter2D::GetTypeNameStatic ()).CString ());
  24366. }
  24367. DllExport void *
  24368. ParticleEmitter2D_ParticleEmitter2D (Urho3D::Context * context)
  24369. {
  24370. return WeakPtr<ParticleEmitter2D>(new ParticleEmitter2D(context));
  24371. }
  24372. DllExport void
  24373. ParticleEmitter2D_RegisterObject (Urho3D::Context * context)
  24374. {
  24375. ParticleEmitter2D::RegisterObject (context);
  24376. }
  24377. DllExport void
  24378. ParticleEmitter2D_OnSetEnabled (Urho3D::ParticleEmitter2D *_target)
  24379. {
  24380. _target->OnSetEnabled ();
  24381. }
  24382. DllExport void
  24383. ParticleEmitter2D_SetEffect (Urho3D::ParticleEmitter2D *_target, Urho3D::ParticleEffect2D * effect)
  24384. {
  24385. _target->SetEffect (effect);
  24386. }
  24387. DllExport void
  24388. ParticleEmitter2D_SetSprite (Urho3D::ParticleEmitter2D *_target, Urho3D::Sprite2D * sprite)
  24389. {
  24390. _target->SetSprite (sprite);
  24391. }
  24392. DllExport void
  24393. ParticleEmitter2D_SetBlendMode (Urho3D::ParticleEmitter2D *_target, enum Urho3D::BlendMode blendMode)
  24394. {
  24395. _target->SetBlendMode (blendMode);
  24396. }
  24397. DllExport void
  24398. ParticleEmitter2D_SetMaxParticles (Urho3D::ParticleEmitter2D *_target, unsigned int maxParticles)
  24399. {
  24400. _target->SetMaxParticles (maxParticles);
  24401. }
  24402. DllExport Urho3D::ParticleEffect2D *
  24403. ParticleEmitter2D_GetEffect (Urho3D::ParticleEmitter2D *_target)
  24404. {
  24405. return _target->GetEffect ();
  24406. }
  24407. DllExport Urho3D::Sprite2D *
  24408. ParticleEmitter2D_GetSprite (Urho3D::ParticleEmitter2D *_target)
  24409. {
  24410. return _target->GetSprite ();
  24411. }
  24412. DllExport enum Urho3D::BlendMode
  24413. ParticleEmitter2D_GetBlendMode (Urho3D::ParticleEmitter2D *_target)
  24414. {
  24415. return _target->GetBlendMode ();
  24416. }
  24417. DllExport unsigned int
  24418. ParticleEmitter2D_GetMaxParticles (Urho3D::ParticleEmitter2D *_target)
  24419. {
  24420. return _target->GetMaxParticles ();
  24421. }
  24422. DllExport Urho3D::ResourceRef
  24423. ParticleEmitter2D_GetParticleEffectAttr (Urho3D::ParticleEmitter2D *_target)
  24424. {
  24425. return _target->GetParticleEffectAttr ();
  24426. }
  24427. DllExport Urho3D::ResourceRef
  24428. ParticleEmitter2D_GetSpriteAttr (Urho3D::ParticleEmitter2D *_target)
  24429. {
  24430. return _target->GetSpriteAttr ();
  24431. }
  24432. DllExport int
  24433. PhysicsWorld2D_GetType (Urho3D::PhysicsWorld2D *_target)
  24434. {
  24435. return (_target->GetType ()).Value ();
  24436. }
  24437. DllExport const char *
  24438. PhysicsWorld2D_GetTypeName (Urho3D::PhysicsWorld2D *_target)
  24439. {
  24440. return stringdup((_target->GetTypeName ()).CString ());
  24441. }
  24442. DllExport int
  24443. PhysicsWorld2D_GetTypeStatic ()
  24444. {
  24445. return (PhysicsWorld2D::GetTypeStatic ()).Value ();
  24446. }
  24447. DllExport const char *
  24448. PhysicsWorld2D_GetTypeNameStatic ()
  24449. {
  24450. return stringdup((PhysicsWorld2D::GetTypeNameStatic ()).CString ());
  24451. }
  24452. DllExport void *
  24453. PhysicsWorld2D_PhysicsWorld2D (Urho3D::Context * context)
  24454. {
  24455. return WeakPtr<PhysicsWorld2D>(new PhysicsWorld2D(context));
  24456. }
  24457. DllExport void
  24458. PhysicsWorld2D_RegisterObject (Urho3D::Context * context)
  24459. {
  24460. PhysicsWorld2D::RegisterObject (context);
  24461. }
  24462. DllExport void
  24463. PhysicsWorld2D_DrawDebugGeometry (Urho3D::PhysicsWorld2D *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  24464. {
  24465. _target->DrawDebugGeometry (debug, depthTest);
  24466. }
  24467. DllExport void
  24468. PhysicsWorld2D_Update (Urho3D::PhysicsWorld2D *_target, float timeStep)
  24469. {
  24470. _target->Update (timeStep);
  24471. }
  24472. DllExport void
  24473. PhysicsWorld2D_DrawDebugGeometry0 (Urho3D::PhysicsWorld2D *_target)
  24474. {
  24475. _target->DrawDebugGeometry ();
  24476. }
  24477. DllExport void
  24478. PhysicsWorld2D_SetUpdateEnabled (Urho3D::PhysicsWorld2D *_target, bool enable)
  24479. {
  24480. _target->SetUpdateEnabled (enable);
  24481. }
  24482. DllExport void
  24483. PhysicsWorld2D_SetDrawShape (Urho3D::PhysicsWorld2D *_target, bool drawShape)
  24484. {
  24485. _target->SetDrawShape (drawShape);
  24486. }
  24487. DllExport void
  24488. PhysicsWorld2D_SetDrawJoint (Urho3D::PhysicsWorld2D *_target, bool drawJoint)
  24489. {
  24490. _target->SetDrawJoint (drawJoint);
  24491. }
  24492. DllExport void
  24493. PhysicsWorld2D_SetDrawAabb (Urho3D::PhysicsWorld2D *_target, bool drawAabb)
  24494. {
  24495. _target->SetDrawAabb (drawAabb);
  24496. }
  24497. DllExport void
  24498. PhysicsWorld2D_SetDrawPair (Urho3D::PhysicsWorld2D *_target, bool drawPair)
  24499. {
  24500. _target->SetDrawPair (drawPair);
  24501. }
  24502. DllExport void
  24503. PhysicsWorld2D_SetDrawCenterOfMass (Urho3D::PhysicsWorld2D *_target, bool drawCenterOfMass)
  24504. {
  24505. _target->SetDrawCenterOfMass (drawCenterOfMass);
  24506. }
  24507. DllExport void
  24508. PhysicsWorld2D_SetAllowSleeping (Urho3D::PhysicsWorld2D *_target, bool enable)
  24509. {
  24510. _target->SetAllowSleeping (enable);
  24511. }
  24512. DllExport void
  24513. PhysicsWorld2D_SetWarmStarting (Urho3D::PhysicsWorld2D *_target, bool enable)
  24514. {
  24515. _target->SetWarmStarting (enable);
  24516. }
  24517. DllExport void
  24518. PhysicsWorld2D_SetContinuousPhysics (Urho3D::PhysicsWorld2D *_target, bool enable)
  24519. {
  24520. _target->SetContinuousPhysics (enable);
  24521. }
  24522. DllExport void
  24523. PhysicsWorld2D_SetSubStepping (Urho3D::PhysicsWorld2D *_target, bool enable)
  24524. {
  24525. _target->SetSubStepping (enable);
  24526. }
  24527. DllExport void
  24528. PhysicsWorld2D_SetGravity (Urho3D::PhysicsWorld2D *_target, const class Urho3D::Vector2 & gravity)
  24529. {
  24530. _target->SetGravity (gravity);
  24531. }
  24532. DllExport void
  24533. PhysicsWorld2D_SetAutoClearForces (Urho3D::PhysicsWorld2D *_target, bool enable)
  24534. {
  24535. _target->SetAutoClearForces (enable);
  24536. }
  24537. DllExport void
  24538. PhysicsWorld2D_SetVelocityIterations (Urho3D::PhysicsWorld2D *_target, int velocityIterations)
  24539. {
  24540. _target->SetVelocityIterations (velocityIterations);
  24541. }
  24542. DllExport void
  24543. PhysicsWorld2D_SetPositionIterations (Urho3D::PhysicsWorld2D *_target, int positionIterations)
  24544. {
  24545. _target->SetPositionIterations (positionIterations);
  24546. }
  24547. DllExport void
  24548. PhysicsWorld2D_AddRigidBody (Urho3D::PhysicsWorld2D *_target, Urho3D::RigidBody2D * rigidBody)
  24549. {
  24550. _target->AddRigidBody (rigidBody);
  24551. }
  24552. DllExport void
  24553. PhysicsWorld2D_RemoveRigidBody (Urho3D::PhysicsWorld2D *_target, Urho3D::RigidBody2D * rigidBody)
  24554. {
  24555. _target->RemoveRigidBody (rigidBody);
  24556. }
  24557. DllExport Urho3D::RigidBody2D *
  24558. PhysicsWorld2D_GetRigidBody (Urho3D::PhysicsWorld2D *_target, const class Urho3D::Vector2 & point, unsigned int collisionMask)
  24559. {
  24560. return _target->GetRigidBody (point, collisionMask);
  24561. }
  24562. DllExport Urho3D::RigidBody2D *
  24563. PhysicsWorld2D_GetRigidBody1 (Urho3D::PhysicsWorld2D *_target, int screenX, int screenY, unsigned int collisionMask)
  24564. {
  24565. return _target->GetRigidBody (screenX, screenY, collisionMask);
  24566. }
  24567. DllExport int
  24568. PhysicsWorld2D_IsUpdateEnabled (Urho3D::PhysicsWorld2D *_target)
  24569. {
  24570. return _target->IsUpdateEnabled ();
  24571. }
  24572. DllExport int
  24573. PhysicsWorld2D_GetDrawShape (Urho3D::PhysicsWorld2D *_target)
  24574. {
  24575. return _target->GetDrawShape ();
  24576. }
  24577. DllExport int
  24578. PhysicsWorld2D_GetDrawJoint (Urho3D::PhysicsWorld2D *_target)
  24579. {
  24580. return _target->GetDrawJoint ();
  24581. }
  24582. DllExport int
  24583. PhysicsWorld2D_GetDrawAabb (Urho3D::PhysicsWorld2D *_target)
  24584. {
  24585. return _target->GetDrawAabb ();
  24586. }
  24587. DllExport int
  24588. PhysicsWorld2D_GetDrawPair (Urho3D::PhysicsWorld2D *_target)
  24589. {
  24590. return _target->GetDrawPair ();
  24591. }
  24592. DllExport int
  24593. PhysicsWorld2D_GetDrawCenterOfMass (Urho3D::PhysicsWorld2D *_target)
  24594. {
  24595. return _target->GetDrawCenterOfMass ();
  24596. }
  24597. DllExport int
  24598. PhysicsWorld2D_GetAllowSleeping (Urho3D::PhysicsWorld2D *_target)
  24599. {
  24600. return _target->GetAllowSleeping ();
  24601. }
  24602. DllExport int
  24603. PhysicsWorld2D_GetWarmStarting (Urho3D::PhysicsWorld2D *_target)
  24604. {
  24605. return _target->GetWarmStarting ();
  24606. }
  24607. DllExport int
  24608. PhysicsWorld2D_GetContinuousPhysics (Urho3D::PhysicsWorld2D *_target)
  24609. {
  24610. return _target->GetContinuousPhysics ();
  24611. }
  24612. DllExport int
  24613. PhysicsWorld2D_GetSubStepping (Urho3D::PhysicsWorld2D *_target)
  24614. {
  24615. return _target->GetSubStepping ();
  24616. }
  24617. DllExport int
  24618. PhysicsWorld2D_GetAutoClearForces (Urho3D::PhysicsWorld2D *_target)
  24619. {
  24620. return _target->GetAutoClearForces ();
  24621. }
  24622. DllExport Interop::Vector2
  24623. PhysicsWorld2D_GetGravity (Urho3D::PhysicsWorld2D *_target)
  24624. {
  24625. return *((Interop::Vector2 *) &(_target->GetGravity ()));
  24626. }
  24627. DllExport int
  24628. PhysicsWorld2D_GetVelocityIterations (Urho3D::PhysicsWorld2D *_target)
  24629. {
  24630. return _target->GetVelocityIterations ();
  24631. }
  24632. DllExport int
  24633. PhysicsWorld2D_GetPositionIterations (Urho3D::PhysicsWorld2D *_target)
  24634. {
  24635. return _target->GetPositionIterations ();
  24636. }
  24637. DllExport void
  24638. PhysicsWorld2D_SetApplyingTransforms (Urho3D::PhysicsWorld2D *_target, bool enable)
  24639. {
  24640. _target->SetApplyingTransforms (enable);
  24641. }
  24642. DllExport int
  24643. PhysicsWorld2D_IsApplyingTransforms (Urho3D::PhysicsWorld2D *_target)
  24644. {
  24645. return _target->IsApplyingTransforms ();
  24646. }
  24647. DllExport int
  24648. Renderer2D_GetType (Urho3D::Renderer2D *_target)
  24649. {
  24650. return (_target->GetType ()).Value ();
  24651. }
  24652. DllExport const char *
  24653. Renderer2D_GetTypeName (Urho3D::Renderer2D *_target)
  24654. {
  24655. return stringdup((_target->GetTypeName ()).CString ());
  24656. }
  24657. DllExport int
  24658. Renderer2D_GetTypeStatic ()
  24659. {
  24660. return (Renderer2D::GetTypeStatic ()).Value ();
  24661. }
  24662. DllExport const char *
  24663. Renderer2D_GetTypeNameStatic ()
  24664. {
  24665. return stringdup((Renderer2D::GetTypeNameStatic ()).CString ());
  24666. }
  24667. DllExport void *
  24668. Renderer2D_Renderer2D (Urho3D::Context * context)
  24669. {
  24670. return WeakPtr<Renderer2D>(new Renderer2D(context));
  24671. }
  24672. DllExport void
  24673. Renderer2D_RegisterObject (Urho3D::Context * context)
  24674. {
  24675. Renderer2D::RegisterObject (context);
  24676. }
  24677. DllExport enum Urho3D::UpdateGeometryType
  24678. Renderer2D_GetUpdateGeometryType (Urho3D::Renderer2D *_target)
  24679. {
  24680. return _target->GetUpdateGeometryType ();
  24681. }
  24682. DllExport void
  24683. Renderer2D_AddDrawable (Urho3D::Renderer2D *_target, Urho3D::Drawable2D * drawable)
  24684. {
  24685. _target->AddDrawable (drawable);
  24686. }
  24687. DllExport void
  24688. Renderer2D_RemoveDrawable (Urho3D::Renderer2D *_target, Urho3D::Drawable2D * drawable)
  24689. {
  24690. _target->RemoveDrawable (drawable);
  24691. }
  24692. DllExport Urho3D::Material *
  24693. Renderer2D_GetMaterial (Urho3D::Renderer2D *_target, Urho3D::Texture2D * texture, enum Urho3D::BlendMode blendMode)
  24694. {
  24695. return _target->GetMaterial (texture, blendMode);
  24696. }
  24697. DllExport int
  24698. Renderer2D_CheckVisibility (Urho3D::Renderer2D *_target, Urho3D::Drawable2D * drawable)
  24699. {
  24700. return _target->CheckVisibility (drawable);
  24701. }
  24702. DllExport int
  24703. RigidBody2D_GetType (Urho3D::RigidBody2D *_target)
  24704. {
  24705. return (_target->GetType ()).Value ();
  24706. }
  24707. DllExport const char *
  24708. RigidBody2D_GetTypeName (Urho3D::RigidBody2D *_target)
  24709. {
  24710. return stringdup((_target->GetTypeName ()).CString ());
  24711. }
  24712. DllExport int
  24713. RigidBody2D_GetTypeStatic ()
  24714. {
  24715. return (RigidBody2D::GetTypeStatic ()).Value ();
  24716. }
  24717. DllExport const char *
  24718. RigidBody2D_GetTypeNameStatic ()
  24719. {
  24720. return stringdup((RigidBody2D::GetTypeNameStatic ()).CString ());
  24721. }
  24722. DllExport void *
  24723. RigidBody2D_RigidBody2D (Urho3D::Context * context)
  24724. {
  24725. return WeakPtr<RigidBody2D>(new RigidBody2D(context));
  24726. }
  24727. DllExport void
  24728. RigidBody2D_RegisterObject (Urho3D::Context * context)
  24729. {
  24730. RigidBody2D::RegisterObject (context);
  24731. }
  24732. DllExport void
  24733. RigidBody2D_OnSetEnabled (Urho3D::RigidBody2D *_target)
  24734. {
  24735. _target->OnSetEnabled ();
  24736. }
  24737. DllExport void
  24738. RigidBody2D_SetBodyType (Urho3D::RigidBody2D *_target, enum Urho3D::BodyType2D bodyType)
  24739. {
  24740. _target->SetBodyType (bodyType);
  24741. }
  24742. DllExport void
  24743. RigidBody2D_SetMass (Urho3D::RigidBody2D *_target, float mass)
  24744. {
  24745. _target->SetMass (mass);
  24746. }
  24747. DllExport void
  24748. RigidBody2D_SetInertia (Urho3D::RigidBody2D *_target, float inertia)
  24749. {
  24750. _target->SetInertia (inertia);
  24751. }
  24752. DllExport void
  24753. RigidBody2D_SetMassCenter (Urho3D::RigidBody2D *_target, const class Urho3D::Vector2 & center)
  24754. {
  24755. _target->SetMassCenter (center);
  24756. }
  24757. DllExport void
  24758. RigidBody2D_SetUseFixtureMass (Urho3D::RigidBody2D *_target, bool useFixtureMass)
  24759. {
  24760. _target->SetUseFixtureMass (useFixtureMass);
  24761. }
  24762. DllExport void
  24763. RigidBody2D_SetLinearDamping (Urho3D::RigidBody2D *_target, float linearDamping)
  24764. {
  24765. _target->SetLinearDamping (linearDamping);
  24766. }
  24767. DllExport void
  24768. RigidBody2D_SetAngularDamping (Urho3D::RigidBody2D *_target, float angularDamping)
  24769. {
  24770. _target->SetAngularDamping (angularDamping);
  24771. }
  24772. DllExport void
  24773. RigidBody2D_SetAllowSleep (Urho3D::RigidBody2D *_target, bool allowSleep)
  24774. {
  24775. _target->SetAllowSleep (allowSleep);
  24776. }
  24777. DllExport void
  24778. RigidBody2D_SetFixedRotation (Urho3D::RigidBody2D *_target, bool fixedRotation)
  24779. {
  24780. _target->SetFixedRotation (fixedRotation);
  24781. }
  24782. DllExport void
  24783. RigidBody2D_SetBullet (Urho3D::RigidBody2D *_target, bool bullet)
  24784. {
  24785. _target->SetBullet (bullet);
  24786. }
  24787. DllExport void
  24788. RigidBody2D_SetGravityScale (Urho3D::RigidBody2D *_target, float gravityScale)
  24789. {
  24790. _target->SetGravityScale (gravityScale);
  24791. }
  24792. DllExport void
  24793. RigidBody2D_SetAwake (Urho3D::RigidBody2D *_target, bool awake)
  24794. {
  24795. _target->SetAwake (awake);
  24796. }
  24797. DllExport void
  24798. RigidBody2D_SetLinearVelocity (Urho3D::RigidBody2D *_target, const class Urho3D::Vector2 & linearVelocity)
  24799. {
  24800. _target->SetLinearVelocity (linearVelocity);
  24801. }
  24802. DllExport void
  24803. RigidBody2D_SetAngularVelocity (Urho3D::RigidBody2D *_target, float angularVelocity)
  24804. {
  24805. _target->SetAngularVelocity (angularVelocity);
  24806. }
  24807. DllExport void
  24808. RigidBody2D_ApplyForce (Urho3D::RigidBody2D *_target, const class Urho3D::Vector2 & force, const class Urho3D::Vector2 & point, bool wake)
  24809. {
  24810. _target->ApplyForce (force, point, wake);
  24811. }
  24812. DllExport void
  24813. RigidBody2D_ApplyForceToCenter (Urho3D::RigidBody2D *_target, const class Urho3D::Vector2 & force, bool wake)
  24814. {
  24815. _target->ApplyForceToCenter (force, wake);
  24816. }
  24817. DllExport void
  24818. RigidBody2D_ApplyTorque (Urho3D::RigidBody2D *_target, float torque, bool wake)
  24819. {
  24820. _target->ApplyTorque (torque, wake);
  24821. }
  24822. DllExport void
  24823. RigidBody2D_ApplyLinearImpulse (Urho3D::RigidBody2D *_target, const class Urho3D::Vector2 & impulse, const class Urho3D::Vector2 & point, bool wake)
  24824. {
  24825. _target->ApplyLinearImpulse (impulse, point, wake);
  24826. }
  24827. DllExport void
  24828. RigidBody2D_ApplyAngularImpulse (Urho3D::RigidBody2D *_target, float impulse, bool wake)
  24829. {
  24830. _target->ApplyAngularImpulse (impulse, wake);
  24831. }
  24832. DllExport void
  24833. RigidBody2D_CreateBody (Urho3D::RigidBody2D *_target)
  24834. {
  24835. _target->CreateBody ();
  24836. }
  24837. DllExport void
  24838. RigidBody2D_ReleaseBody (Urho3D::RigidBody2D *_target)
  24839. {
  24840. _target->ReleaseBody ();
  24841. }
  24842. DllExport void
  24843. RigidBody2D_ApplyWorldTransform (Urho3D::RigidBody2D *_target)
  24844. {
  24845. _target->ApplyWorldTransform ();
  24846. }
  24847. DllExport void
  24848. RigidBody2D_ApplyWorldTransform0 (Urho3D::RigidBody2D *_target, const class Urho3D::Vector3 & newWorldPosition, const class Urho3D::Quaternion & newWorldRotation)
  24849. {
  24850. _target->ApplyWorldTransform (newWorldPosition, newWorldRotation);
  24851. }
  24852. DllExport void
  24853. RigidBody2D_AddCollisionShape2D (Urho3D::RigidBody2D *_target, Urho3D::CollisionShape2D * collisionShape)
  24854. {
  24855. _target->AddCollisionShape2D (collisionShape);
  24856. }
  24857. DllExport void
  24858. RigidBody2D_RemoveCollisionShape2D (Urho3D::RigidBody2D *_target, Urho3D::CollisionShape2D * collisionShape)
  24859. {
  24860. _target->RemoveCollisionShape2D (collisionShape);
  24861. }
  24862. DllExport void
  24863. RigidBody2D_AddConstraint2D (Urho3D::RigidBody2D *_target, Urho3D::Constraint2D * constraint)
  24864. {
  24865. _target->AddConstraint2D (constraint);
  24866. }
  24867. DllExport void
  24868. RigidBody2D_RemoveConstraint2D (Urho3D::RigidBody2D *_target, Urho3D::Constraint2D * constraint)
  24869. {
  24870. _target->RemoveConstraint2D (constraint);
  24871. }
  24872. DllExport enum Urho3D::BodyType2D
  24873. RigidBody2D_GetBodyType (Urho3D::RigidBody2D *_target)
  24874. {
  24875. return _target->GetBodyType ();
  24876. }
  24877. DllExport float
  24878. RigidBody2D_GetMass (Urho3D::RigidBody2D *_target)
  24879. {
  24880. return _target->GetMass ();
  24881. }
  24882. DllExport float
  24883. RigidBody2D_GetInertia (Urho3D::RigidBody2D *_target)
  24884. {
  24885. return _target->GetInertia ();
  24886. }
  24887. DllExport Interop::Vector2
  24888. RigidBody2D_GetMassCenter (Urho3D::RigidBody2D *_target)
  24889. {
  24890. return *((Interop::Vector2 *) &(_target->GetMassCenter ()));
  24891. }
  24892. DllExport int
  24893. RigidBody2D_GetUseFixtureMass (Urho3D::RigidBody2D *_target)
  24894. {
  24895. return _target->GetUseFixtureMass ();
  24896. }
  24897. DllExport float
  24898. RigidBody2D_GetLinearDamping (Urho3D::RigidBody2D *_target)
  24899. {
  24900. return _target->GetLinearDamping ();
  24901. }
  24902. DllExport float
  24903. RigidBody2D_GetAngularDamping (Urho3D::RigidBody2D *_target)
  24904. {
  24905. return _target->GetAngularDamping ();
  24906. }
  24907. DllExport int
  24908. RigidBody2D_IsAllowSleep (Urho3D::RigidBody2D *_target)
  24909. {
  24910. return _target->IsAllowSleep ();
  24911. }
  24912. DllExport int
  24913. RigidBody2D_IsFixedRotation (Urho3D::RigidBody2D *_target)
  24914. {
  24915. return _target->IsFixedRotation ();
  24916. }
  24917. DllExport int
  24918. RigidBody2D_IsBullet (Urho3D::RigidBody2D *_target)
  24919. {
  24920. return _target->IsBullet ();
  24921. }
  24922. DllExport float
  24923. RigidBody2D_GetGravityScale (Urho3D::RigidBody2D *_target)
  24924. {
  24925. return _target->GetGravityScale ();
  24926. }
  24927. DllExport int
  24928. RigidBody2D_IsAwake (Urho3D::RigidBody2D *_target)
  24929. {
  24930. return _target->IsAwake ();
  24931. }
  24932. DllExport Interop::Vector2
  24933. RigidBody2D_GetLinearVelocity (Urho3D::RigidBody2D *_target)
  24934. {
  24935. return *((Interop::Vector2 *) &(_target->GetLinearVelocity ()));
  24936. }
  24937. DllExport float
  24938. RigidBody2D_GetAngularVelocity (Urho3D::RigidBody2D *_target)
  24939. {
  24940. return _target->GetAngularVelocity ();
  24941. }
  24942. DllExport int
  24943. SpriteSheet2D_GetType (Urho3D::SpriteSheet2D *_target)
  24944. {
  24945. return (_target->GetType ()).Value ();
  24946. }
  24947. DllExport const char *
  24948. SpriteSheet2D_GetTypeName (Urho3D::SpriteSheet2D *_target)
  24949. {
  24950. return stringdup((_target->GetTypeName ()).CString ());
  24951. }
  24952. DllExport int
  24953. SpriteSheet2D_GetTypeStatic ()
  24954. {
  24955. return (SpriteSheet2D::GetTypeStatic ()).Value ();
  24956. }
  24957. DllExport const char *
  24958. SpriteSheet2D_GetTypeNameStatic ()
  24959. {
  24960. return stringdup((SpriteSheet2D::GetTypeNameStatic ()).CString ());
  24961. }
  24962. DllExport void *
  24963. SpriteSheet2D_SpriteSheet2D (Urho3D::Context * context)
  24964. {
  24965. return WeakPtr<SpriteSheet2D>(new SpriteSheet2D(context));
  24966. }
  24967. DllExport void
  24968. SpriteSheet2D_RegisterObject (Urho3D::Context * context)
  24969. {
  24970. SpriteSheet2D::RegisterObject (context);
  24971. }
  24972. DllExport int
  24973. SpriteSheet2D_BeginLoad_File (Urho3D::SpriteSheet2D *_target, File * source)
  24974. {
  24975. return _target->BeginLoad (*source);
  24976. }
  24977. DllExport int
  24978. SpriteSheet2D_BeginLoad_MemoryBuffer (Urho3D::SpriteSheet2D *_target, MemoryBuffer * source)
  24979. {
  24980. return _target->BeginLoad (*source);
  24981. }
  24982. DllExport int
  24983. SpriteSheet2D_EndLoad (Urho3D::SpriteSheet2D *_target)
  24984. {
  24985. return _target->EndLoad ();
  24986. }
  24987. DllExport void
  24988. SpriteSheet2D_SetTexture (Urho3D::SpriteSheet2D *_target, Urho3D::Texture2D * texture)
  24989. {
  24990. _target->SetTexture (texture);
  24991. }
  24992. DllExport void
  24993. SpriteSheet2D_DefineSprite (Urho3D::SpriteSheet2D *_target, const char * name, const class Urho3D::IntRect & rectangle, const class Urho3D::Vector2 & hotSpot, const class Urho3D::IntVector2 & offset)
  24994. {
  24995. _target->DefineSprite (Urho3D::String(name), rectangle, hotSpot, offset);
  24996. }
  24997. DllExport Urho3D::Texture2D *
  24998. SpriteSheet2D_GetTexture (Urho3D::SpriteSheet2D *_target)
  24999. {
  25000. return _target->GetTexture ();
  25001. }
  25002. DllExport Urho3D::Sprite2D *
  25003. SpriteSheet2D_GetSprite (Urho3D::SpriteSheet2D *_target, const char * name)
  25004. {
  25005. return _target->GetSprite (Urho3D::String(name));
  25006. }
  25007. DllExport int
  25008. TileMap2D_GetType (Urho3D::TileMap2D *_target)
  25009. {
  25010. return (_target->GetType ()).Value ();
  25011. }
  25012. DllExport const char *
  25013. TileMap2D_GetTypeName (Urho3D::TileMap2D *_target)
  25014. {
  25015. return stringdup((_target->GetTypeName ()).CString ());
  25016. }
  25017. DllExport int
  25018. TileMap2D_GetTypeStatic ()
  25019. {
  25020. return (TileMap2D::GetTypeStatic ()).Value ();
  25021. }
  25022. DllExport const char *
  25023. TileMap2D_GetTypeNameStatic ()
  25024. {
  25025. return stringdup((TileMap2D::GetTypeNameStatic ()).CString ());
  25026. }
  25027. DllExport void *
  25028. TileMap2D_TileMap2D (Urho3D::Context * context)
  25029. {
  25030. return WeakPtr<TileMap2D>(new TileMap2D(context));
  25031. }
  25032. DllExport void
  25033. TileMap2D_RegisterObject (Urho3D::Context * context)
  25034. {
  25035. TileMap2D::RegisterObject (context);
  25036. }
  25037. DllExport void
  25038. TileMap2D_DrawDebugGeometry (Urho3D::TileMap2D *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  25039. {
  25040. _target->DrawDebugGeometry (debug, depthTest);
  25041. }
  25042. DllExport void
  25043. TileMap2D_SetTmxFile (Urho3D::TileMap2D *_target, Urho3D::TmxFile2D * tmxFile)
  25044. {
  25045. _target->SetTmxFile (tmxFile);
  25046. }
  25047. DllExport void
  25048. TileMap2D_DrawDebugGeometry0 (Urho3D::TileMap2D *_target)
  25049. {
  25050. _target->DrawDebugGeometry ();
  25051. }
  25052. DllExport Urho3D::TmxFile2D *
  25053. TileMap2D_GetTmxFile (Urho3D::TileMap2D *_target)
  25054. {
  25055. return _target->GetTmxFile ();
  25056. }
  25057. DllExport Urho3D::TileMapInfo2D
  25058. TileMap2D_GetInfo (Urho3D::TileMap2D *_target)
  25059. {
  25060. return _target->GetInfo ();
  25061. }
  25062. DllExport unsigned int
  25063. TileMap2D_GetNumLayers (Urho3D::TileMap2D *_target)
  25064. {
  25065. return _target->GetNumLayers ();
  25066. }
  25067. DllExport Urho3D::TileMapLayer2D *
  25068. TileMap2D_GetLayer (Urho3D::TileMap2D *_target, unsigned int index)
  25069. {
  25070. return _target->GetLayer (index);
  25071. }
  25072. DllExport Interop::Vector2
  25073. TileMap2D_TileIndexToPosition (Urho3D::TileMap2D *_target, int x, int y)
  25074. {
  25075. return *((Interop::Vector2 *) &(_target->TileIndexToPosition (x, y)));
  25076. }
  25077. DllExport Urho3D::ResourceRef
  25078. TileMap2D_GetTmxFileAttr (Urho3D::TileMap2D *_target)
  25079. {
  25080. return _target->GetTmxFileAttr ();
  25081. }
  25082. }