binding.cpp 732 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165
  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_Set_0 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Vector3 & src)
  259. {
  260. _target->Set (ptr, (src));
  261. }
  262. DllExport void
  263. AttributeAccessor_Set_1 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::IntRect & src)
  264. {
  265. _target->Set (ptr, (src));
  266. }
  267. DllExport void
  268. AttributeAccessor_Set_2 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Color & src)
  269. {
  270. _target->Set (ptr, (src));
  271. }
  272. DllExport void
  273. AttributeAccessor_Set_3 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Vector2 & src)
  274. {
  275. _target->Set (ptr, (src));
  276. }
  277. DllExport void
  278. AttributeAccessor_Set_4 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Vector4 & src)
  279. {
  280. _target->Set (ptr, (src));
  281. }
  282. DllExport void
  283. AttributeAccessor_Set_5 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::IntVector2 & src)
  284. {
  285. _target->Set (ptr, (src));
  286. }
  287. DllExport void
  288. AttributeAccessor_Set_6 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Quaternion & src)
  289. {
  290. _target->Set (ptr, (src));
  291. }
  292. DllExport void
  293. AttributeAccessor_Set_7 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Matrix4 & src)
  294. {
  295. _target->Set (ptr, (src));
  296. }
  297. DllExport void
  298. AttributeAccessor_Set_8 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Matrix3x4 & src)
  299. {
  300. _target->Set (ptr, (src));
  301. }
  302. DllExport void
  303. AttributeAccessor_Set_9 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, int src)
  304. {
  305. _target->Set (ptr, (src));
  306. }
  307. DllExport void
  308. AttributeAccessor_Set_10 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, float src)
  309. {
  310. _target->Set (ptr, (src));
  311. }
  312. DllExport void
  313. AttributeAccessor_Set_11 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const char * src)
  314. {
  315. _target->Set (ptr, Urho3D::String(src));
  316. }
  317. DllExport void
  318. AttributeAccessor_Set_12 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, bool src)
  319. {
  320. _target->Set (ptr, (src));
  321. }
  322. // Urho3D::Variant overloads end.
  323. DllExport int
  324. UrhoObject_GetType (Urho3D::Object *_target)
  325. {
  326. return (_target->GetType ()).Value ();
  327. }
  328. DllExport const char *
  329. UrhoObject_GetTypeName (Urho3D::Object *_target)
  330. {
  331. return stringdup((_target->GetTypeName ()).CString ());
  332. }
  333. DllExport const class Urho3D::TypeInfo *
  334. UrhoObject_GetTypeInfo (Urho3D::Object *_target)
  335. {
  336. return _target->GetTypeInfo ();
  337. }
  338. DllExport const class Urho3D::TypeInfo *
  339. UrhoObject_GetTypeInfoStatic ()
  340. {
  341. return Object::GetTypeInfoStatic ();
  342. }
  343. DllExport int
  344. UrhoObject_IsInstanceOf (Urho3D::Object *_target, int type)
  345. {
  346. return _target->IsInstanceOf (Urho3D::StringHash(type));
  347. }
  348. DllExport int
  349. UrhoObject_IsInstanceOf0 (Urho3D::Object *_target, const class Urho3D::TypeInfo * typeInfo)
  350. {
  351. return _target->IsInstanceOf (typeInfo);
  352. }
  353. DllExport void
  354. UrhoObject_SubscribeToEvent (Urho3D::Object *_target, int eventType, Urho3D::EventHandler * handler)
  355. {
  356. _target->SubscribeToEvent (Urho3D::StringHash(eventType), handler);
  357. }
  358. DllExport void
  359. UrhoObject_SubscribeToEvent1 (Urho3D::Object *_target, Urho3D::Object * sender, int eventType, Urho3D::EventHandler * handler)
  360. {
  361. _target->SubscribeToEvent (sender, Urho3D::StringHash(eventType), handler);
  362. }
  363. DllExport void
  364. UrhoObject_UnsubscribeFromEvent (Urho3D::Object *_target, int eventType)
  365. {
  366. _target->UnsubscribeFromEvent (Urho3D::StringHash(eventType));
  367. }
  368. DllExport void
  369. UrhoObject_UnsubscribeFromEvent2 (Urho3D::Object *_target, Urho3D::Object * sender, int eventType)
  370. {
  371. _target->UnsubscribeFromEvent (sender, Urho3D::StringHash(eventType));
  372. }
  373. DllExport void
  374. UrhoObject_UnsubscribeFromEvents (Urho3D::Object *_target, Urho3D::Object * sender)
  375. {
  376. _target->UnsubscribeFromEvents (sender);
  377. }
  378. DllExport void
  379. UrhoObject_UnsubscribeFromAllEvents (Urho3D::Object *_target)
  380. {
  381. _target->UnsubscribeFromAllEvents ();
  382. }
  383. DllExport void
  384. UrhoObject_SendEvent (Urho3D::Object *_target, int eventType)
  385. {
  386. _target->SendEvent (Urho3D::StringHash(eventType));
  387. }
  388. DllExport Urho3D::Context *
  389. UrhoObject_GetContext (Urho3D::Object *_target)
  390. {
  391. return _target->GetContext ();
  392. }
  393. // Urho3D::Variant overloads begin:
  394. DllExport Interop::Vector3
  395. UrhoObject_GetGlobalVar_0 (Urho3D::Object *_target, int key)
  396. {
  397. return *((Interop::Vector3 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetVector3()));
  398. }
  399. DllExport Interop::IntRect
  400. UrhoObject_GetGlobalVar_1 (Urho3D::Object *_target, int key)
  401. {
  402. return *((Interop::IntRect *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetIntRect()));
  403. }
  404. DllExport Interop::Color
  405. UrhoObject_GetGlobalVar_2 (Urho3D::Object *_target, int key)
  406. {
  407. return *((Interop::Color *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetColor()));
  408. }
  409. DllExport Interop::Vector2
  410. UrhoObject_GetGlobalVar_3 (Urho3D::Object *_target, int key)
  411. {
  412. return *((Interop::Vector2 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetVector2()));
  413. }
  414. DllExport Interop::Vector4
  415. UrhoObject_GetGlobalVar_4 (Urho3D::Object *_target, int key)
  416. {
  417. return *((Interop::Vector4 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetVector4()));
  418. }
  419. DllExport Interop::IntVector2
  420. UrhoObject_GetGlobalVar_5 (Urho3D::Object *_target, int key)
  421. {
  422. return *((Interop::IntVector2 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetIntVector2()));
  423. }
  424. DllExport Interop::Quaternion
  425. UrhoObject_GetGlobalVar_6 (Urho3D::Object *_target, int key)
  426. {
  427. return *((Interop::Quaternion *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetQuaternion()));
  428. }
  429. DllExport Interop::Matrix4
  430. UrhoObject_GetGlobalVar_7 (Urho3D::Object *_target, int key)
  431. {
  432. return *((Interop::Matrix4 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetMatrix4()));
  433. }
  434. DllExport Interop::Matrix3x4
  435. UrhoObject_GetGlobalVar_8 (Urho3D::Object *_target, int key)
  436. {
  437. return *((Interop::Matrix3x4 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetMatrix3x4()));
  438. }
  439. DllExport int
  440. UrhoObject_GetGlobalVar_9 (Urho3D::Object *_target, int key)
  441. {
  442. return (_target->GetGlobalVar (Urho3D::StringHash(key)).GetInt());
  443. }
  444. DllExport float
  445. UrhoObject_GetGlobalVar_10 (Urho3D::Object *_target, int key)
  446. {
  447. return (_target->GetGlobalVar (Urho3D::StringHash(key)).GetFloat());
  448. }
  449. DllExport const char *
  450. UrhoObject_GetGlobalVar_11 (Urho3D::Object *_target, int key)
  451. {
  452. return stringdup(_target->GetGlobalVar (Urho3D::StringHash(key)).GetString().CString());
  453. }
  454. DllExport bool
  455. UrhoObject_GetGlobalVar_12 (Urho3D::Object *_target, int key)
  456. {
  457. return (_target->GetGlobalVar (Urho3D::StringHash(key)).GetBool());
  458. }
  459. // Urho3D::Variant overloads end.
  460. // Urho3D::Variant overloads begin:
  461. DllExport void
  462. UrhoObject_SetGlobalVar_0 (Urho3D::Object *_target, int key, const class Urho3D::Vector3 & value)
  463. {
  464. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  465. }
  466. DllExport void
  467. UrhoObject_SetGlobalVar_1 (Urho3D::Object *_target, int key, const class Urho3D::IntRect & value)
  468. {
  469. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  470. }
  471. DllExport void
  472. UrhoObject_SetGlobalVar_2 (Urho3D::Object *_target, int key, const class Urho3D::Color & value)
  473. {
  474. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  475. }
  476. DllExport void
  477. UrhoObject_SetGlobalVar_3 (Urho3D::Object *_target, int key, const class Urho3D::Vector2 & value)
  478. {
  479. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  480. }
  481. DllExport void
  482. UrhoObject_SetGlobalVar_4 (Urho3D::Object *_target, int key, const class Urho3D::Vector4 & value)
  483. {
  484. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  485. }
  486. DllExport void
  487. UrhoObject_SetGlobalVar_5 (Urho3D::Object *_target, int key, const class Urho3D::IntVector2 & value)
  488. {
  489. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  490. }
  491. DllExport void
  492. UrhoObject_SetGlobalVar_6 (Urho3D::Object *_target, int key, const class Urho3D::Quaternion & value)
  493. {
  494. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  495. }
  496. DllExport void
  497. UrhoObject_SetGlobalVar_7 (Urho3D::Object *_target, int key, const class Urho3D::Matrix4 & value)
  498. {
  499. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  500. }
  501. DllExport void
  502. UrhoObject_SetGlobalVar_8 (Urho3D::Object *_target, int key, const class Urho3D::Matrix3x4 & value)
  503. {
  504. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  505. }
  506. DllExport void
  507. UrhoObject_SetGlobalVar_9 (Urho3D::Object *_target, int key, int value)
  508. {
  509. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  510. }
  511. DllExport void
  512. UrhoObject_SetGlobalVar_10 (Urho3D::Object *_target, int key, float value)
  513. {
  514. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  515. }
  516. DllExport void
  517. UrhoObject_SetGlobalVar_11 (Urho3D::Object *_target, int key, const char * value)
  518. {
  519. _target->SetGlobalVar (Urho3D::StringHash(key), Urho3D::String(value));
  520. }
  521. DllExport void
  522. UrhoObject_SetGlobalVar_12 (Urho3D::Object *_target, int key, bool value)
  523. {
  524. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  525. }
  526. // Urho3D::Variant overloads end.
  527. DllExport Urho3D::Object *
  528. UrhoObject_GetSubsystem (Urho3D::Object *_target, int type)
  529. {
  530. return _target->GetSubsystem (Urho3D::StringHash(type));
  531. }
  532. DllExport Urho3D::Object *
  533. UrhoObject_GetEventSender (Urho3D::Object *_target)
  534. {
  535. return _target->GetEventSender ();
  536. }
  537. DllExport Urho3D::EventHandler *
  538. UrhoObject_GetEventHandler (Urho3D::Object *_target)
  539. {
  540. return _target->GetEventHandler ();
  541. }
  542. DllExport int
  543. UrhoObject_HasSubscribedToEvent (Urho3D::Object *_target, int eventType)
  544. {
  545. return _target->HasSubscribedToEvent (Urho3D::StringHash(eventType));
  546. }
  547. DllExport int
  548. UrhoObject_HasSubscribedToEvent3 (Urho3D::Object *_target, Urho3D::Object * sender, int eventType)
  549. {
  550. return _target->HasSubscribedToEvent (sender, Urho3D::StringHash(eventType));
  551. }
  552. DllExport int
  553. UrhoObject_HasEventHandlers (Urho3D::Object *_target)
  554. {
  555. return _target->HasEventHandlers ();
  556. }
  557. DllExport const char *
  558. UrhoObject_GetCategory (Urho3D::Object *_target)
  559. {
  560. return stringdup((_target->GetCategory ()).CString ());
  561. }
  562. DllExport void
  563. UrhoObject_SetBlockEvents (Urho3D::Object *_target, bool block)
  564. {
  565. _target->SetBlockEvents (block);
  566. }
  567. DllExport int
  568. UrhoObject_GetBlockEvents (Urho3D::Object *_target)
  569. {
  570. return _target->GetBlockEvents ();
  571. }
  572. DllExport Urho3D::Object *
  573. ObjectFactory_CreateObject (Urho3D::ObjectFactory *_target)
  574. {
  575. auto copy = _target->CreateObject ();
  576. auto plain = copy.Get();
  577. copy.Detach();
  578. delete copy;
  579. return plain;
  580. }
  581. DllExport Urho3D::Context *
  582. ObjectFactory_GetContext (Urho3D::ObjectFactory *_target)
  583. {
  584. return _target->GetContext ();
  585. }
  586. DllExport const class Urho3D::TypeInfo *
  587. ObjectFactory_GetTypeInfo (Urho3D::ObjectFactory *_target)
  588. {
  589. return _target->GetTypeInfo ();
  590. }
  591. DllExport int
  592. ObjectFactory_GetType (Urho3D::ObjectFactory *_target)
  593. {
  594. return (_target->GetType ()).Value ();
  595. }
  596. DllExport const char *
  597. ObjectFactory_GetTypeName (Urho3D::ObjectFactory *_target)
  598. {
  599. return stringdup((_target->GetTypeName ()).CString ());
  600. }
  601. DllExport int
  602. Serializable_GetType (Urho3D::Serializable *_target)
  603. {
  604. return (_target->GetType ()).Value ();
  605. }
  606. DllExport const char *
  607. Serializable_GetTypeName (Urho3D::Serializable *_target)
  608. {
  609. return stringdup((_target->GetTypeName ()).CString ());
  610. }
  611. DllExport int
  612. Serializable_GetTypeStatic ()
  613. {
  614. return (Serializable::GetTypeStatic ()).Value ();
  615. }
  616. DllExport const char *
  617. Serializable_GetTypeNameStatic ()
  618. {
  619. return stringdup((Serializable::GetTypeNameStatic ()).CString ());
  620. }
  621. DllExport void *
  622. Serializable_Serializable (Urho3D::Context * context)
  623. {
  624. return WeakPtr<Serializable>(new Serializable(context));
  625. }
  626. DllExport int
  627. Serializable_Load_File (Urho3D::Serializable *_target, File * source, bool setInstanceDefault)
  628. {
  629. return _target->Load (*source, setInstanceDefault);
  630. }
  631. DllExport int
  632. Serializable_Load_MemoryBuffer (Urho3D::Serializable *_target, MemoryBuffer * source, bool setInstanceDefault)
  633. {
  634. return _target->Load (*source, setInstanceDefault);
  635. }
  636. DllExport int
  637. Serializable_Save_File (Urho3D::Serializable *_target, File * dest)
  638. {
  639. return _target->Save (*dest);
  640. }
  641. DllExport int
  642. Serializable_Save_MemoryBuffer (Urho3D::Serializable *_target, MemoryBuffer * dest)
  643. {
  644. return _target->Save (*dest);
  645. }
  646. DllExport int
  647. Serializable_LoadXML (Urho3D::Serializable *_target, const class Urho3D::XMLElement & source, bool setInstanceDefault)
  648. {
  649. return _target->LoadXML (source, setInstanceDefault);
  650. }
  651. DllExport int
  652. Serializable_SaveXML (Urho3D::Serializable *_target, Urho3D::XMLElement & dest)
  653. {
  654. return _target->SaveXML (dest);
  655. }
  656. DllExport void
  657. Serializable_ApplyAttributes (Urho3D::Serializable *_target)
  658. {
  659. _target->ApplyAttributes ();
  660. }
  661. DllExport int
  662. Serializable_SaveDefaultAttributes (Urho3D::Serializable *_target)
  663. {
  664. return _target->SaveDefaultAttributes ();
  665. }
  666. DllExport void
  667. Serializable_MarkNetworkUpdate (Urho3D::Serializable *_target)
  668. {
  669. _target->MarkNetworkUpdate ();
  670. }
  671. // Urho3D::Variant overloads begin:
  672. DllExport int
  673. Serializable_SetAttribute_0 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Vector3 & value)
  674. {
  675. return _target->SetAttribute (index, (value));
  676. }
  677. DllExport int
  678. Serializable_SetAttribute_1 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::IntRect & value)
  679. {
  680. return _target->SetAttribute (index, (value));
  681. }
  682. DllExport int
  683. Serializable_SetAttribute_2 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Color & value)
  684. {
  685. return _target->SetAttribute (index, (value));
  686. }
  687. DllExport int
  688. Serializable_SetAttribute_3 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Vector2 & value)
  689. {
  690. return _target->SetAttribute (index, (value));
  691. }
  692. DllExport int
  693. Serializable_SetAttribute_4 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Vector4 & value)
  694. {
  695. return _target->SetAttribute (index, (value));
  696. }
  697. DllExport int
  698. Serializable_SetAttribute_5 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::IntVector2 & value)
  699. {
  700. return _target->SetAttribute (index, (value));
  701. }
  702. DllExport int
  703. Serializable_SetAttribute_6 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Quaternion & value)
  704. {
  705. return _target->SetAttribute (index, (value));
  706. }
  707. DllExport int
  708. Serializable_SetAttribute_7 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Matrix4 & value)
  709. {
  710. return _target->SetAttribute (index, (value));
  711. }
  712. DllExport int
  713. Serializable_SetAttribute_8 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Matrix3x4 & value)
  714. {
  715. return _target->SetAttribute (index, (value));
  716. }
  717. DllExport int
  718. Serializable_SetAttribute_9 (Urho3D::Serializable *_target, unsigned int index, int value)
  719. {
  720. return _target->SetAttribute (index, (value));
  721. }
  722. DllExport int
  723. Serializable_SetAttribute_10 (Urho3D::Serializable *_target, unsigned int index, float value)
  724. {
  725. return _target->SetAttribute (index, (value));
  726. }
  727. DllExport int
  728. Serializable_SetAttribute_11 (Urho3D::Serializable *_target, unsigned int index, const char * value)
  729. {
  730. return _target->SetAttribute (index, Urho3D::String(value));
  731. }
  732. DllExport int
  733. Serializable_SetAttribute_12 (Urho3D::Serializable *_target, unsigned int index, bool value)
  734. {
  735. return _target->SetAttribute (index, (value));
  736. }
  737. // Urho3D::Variant overloads end.
  738. // Urho3D::Variant overloads begin:
  739. DllExport int
  740. Serializable_SetAttribute0_0 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Vector3 & value)
  741. {
  742. return _target->SetAttribute (Urho3D::String(name), (value));
  743. }
  744. DllExport int
  745. Serializable_SetAttribute0_1 (Urho3D::Serializable *_target, const char * name, const class Urho3D::IntRect & value)
  746. {
  747. return _target->SetAttribute (Urho3D::String(name), (value));
  748. }
  749. DllExport int
  750. Serializable_SetAttribute0_2 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Color & value)
  751. {
  752. return _target->SetAttribute (Urho3D::String(name), (value));
  753. }
  754. DllExport int
  755. Serializable_SetAttribute0_3 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Vector2 & value)
  756. {
  757. return _target->SetAttribute (Urho3D::String(name), (value));
  758. }
  759. DllExport int
  760. Serializable_SetAttribute0_4 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Vector4 & value)
  761. {
  762. return _target->SetAttribute (Urho3D::String(name), (value));
  763. }
  764. DllExport int
  765. Serializable_SetAttribute0_5 (Urho3D::Serializable *_target, const char * name, const class Urho3D::IntVector2 & value)
  766. {
  767. return _target->SetAttribute (Urho3D::String(name), (value));
  768. }
  769. DllExport int
  770. Serializable_SetAttribute0_6 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Quaternion & value)
  771. {
  772. return _target->SetAttribute (Urho3D::String(name), (value));
  773. }
  774. DllExport int
  775. Serializable_SetAttribute0_7 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Matrix4 & value)
  776. {
  777. return _target->SetAttribute (Urho3D::String(name), (value));
  778. }
  779. DllExport int
  780. Serializable_SetAttribute0_8 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Matrix3x4 & value)
  781. {
  782. return _target->SetAttribute (Urho3D::String(name), (value));
  783. }
  784. DllExport int
  785. Serializable_SetAttribute0_9 (Urho3D::Serializable *_target, const char * name, int value)
  786. {
  787. return _target->SetAttribute (Urho3D::String(name), (value));
  788. }
  789. DllExport int
  790. Serializable_SetAttribute0_10 (Urho3D::Serializable *_target, const char * name, float value)
  791. {
  792. return _target->SetAttribute (Urho3D::String(name), (value));
  793. }
  794. DllExport int
  795. Serializable_SetAttribute0_11 (Urho3D::Serializable *_target, const char * name, const char * value)
  796. {
  797. return _target->SetAttribute (Urho3D::String(name), Urho3D::String(value));
  798. }
  799. DllExport int
  800. Serializable_SetAttribute0_12 (Urho3D::Serializable *_target, const char * name, bool value)
  801. {
  802. return _target->SetAttribute (Urho3D::String(name), (value));
  803. }
  804. // Urho3D::Variant overloads end.
  805. DllExport void
  806. Serializable_ResetToDefault (Urho3D::Serializable *_target)
  807. {
  808. _target->ResetToDefault ();
  809. }
  810. DllExport void
  811. Serializable_RemoveInstanceDefault (Urho3D::Serializable *_target)
  812. {
  813. _target->RemoveInstanceDefault ();
  814. }
  815. DllExport void
  816. Serializable_SetTemporary (Urho3D::Serializable *_target, bool enable)
  817. {
  818. _target->SetTemporary (enable);
  819. }
  820. DllExport void
  821. Serializable_SetInterceptNetworkUpdate (Urho3D::Serializable *_target, const char * attributeName, bool enable)
  822. {
  823. _target->SetInterceptNetworkUpdate (Urho3D::String(attributeName), enable);
  824. }
  825. DllExport void
  826. Serializable_AllocateNetworkState (Urho3D::Serializable *_target)
  827. {
  828. _target->AllocateNetworkState ();
  829. }
  830. DllExport void
  831. Serializable_WriteInitialDeltaUpdate_File (Urho3D::Serializable *_target, File * dest, unsigned char timeStamp)
  832. {
  833. _target->WriteInitialDeltaUpdate (*dest, timeStamp);
  834. }
  835. DllExport void
  836. Serializable_WriteInitialDeltaUpdate_MemoryBuffer (Urho3D::Serializable *_target, MemoryBuffer * dest, unsigned char timeStamp)
  837. {
  838. _target->WriteInitialDeltaUpdate (*dest, timeStamp);
  839. }
  840. DllExport void
  841. Serializable_WriteLatestDataUpdate_File (Urho3D::Serializable *_target, File * dest, unsigned char timeStamp)
  842. {
  843. _target->WriteLatestDataUpdate (*dest, timeStamp);
  844. }
  845. DllExport void
  846. Serializable_WriteLatestDataUpdate_MemoryBuffer (Urho3D::Serializable *_target, MemoryBuffer * dest, unsigned char timeStamp)
  847. {
  848. _target->WriteLatestDataUpdate (*dest, timeStamp);
  849. }
  850. DllExport int
  851. Serializable_ReadDeltaUpdate_File (Urho3D::Serializable *_target, File * source)
  852. {
  853. return _target->ReadDeltaUpdate (*source);
  854. }
  855. DllExport int
  856. Serializable_ReadDeltaUpdate_MemoryBuffer (Urho3D::Serializable *_target, MemoryBuffer * source)
  857. {
  858. return _target->ReadDeltaUpdate (*source);
  859. }
  860. DllExport int
  861. Serializable_ReadLatestDataUpdate_File (Urho3D::Serializable *_target, File * source)
  862. {
  863. return _target->ReadLatestDataUpdate (*source);
  864. }
  865. DllExport int
  866. Serializable_ReadLatestDataUpdate_MemoryBuffer (Urho3D::Serializable *_target, MemoryBuffer * source)
  867. {
  868. return _target->ReadLatestDataUpdate (*source);
  869. }
  870. DllExport Urho3D::Variant
  871. Serializable_GetAttribute (Urho3D::Serializable *_target, unsigned int index)
  872. {
  873. return _target->GetAttribute (index);
  874. }
  875. DllExport Urho3D::Variant
  876. Serializable_GetAttribute1 (Urho3D::Serializable *_target, const char * name)
  877. {
  878. return _target->GetAttribute (Urho3D::String(name));
  879. }
  880. DllExport Urho3D::Variant
  881. Serializable_GetAttributeDefault (Urho3D::Serializable *_target, unsigned int index)
  882. {
  883. return _target->GetAttributeDefault (index);
  884. }
  885. DllExport Urho3D::Variant
  886. Serializable_GetAttributeDefault2 (Urho3D::Serializable *_target, const char * name)
  887. {
  888. return _target->GetAttributeDefault (Urho3D::String(name));
  889. }
  890. DllExport unsigned int
  891. Serializable_GetNumAttributes (Urho3D::Serializable *_target)
  892. {
  893. return _target->GetNumAttributes ();
  894. }
  895. DllExport unsigned int
  896. Serializable_GetNumNetworkAttributes (Urho3D::Serializable *_target)
  897. {
  898. return _target->GetNumNetworkAttributes ();
  899. }
  900. DllExport int
  901. Serializable_IsTemporary (Urho3D::Serializable *_target)
  902. {
  903. return _target->IsTemporary ();
  904. }
  905. DllExport int
  906. Serializable_GetInterceptNetworkUpdate (Urho3D::Serializable *_target, const char * attributeName)
  907. {
  908. return _target->GetInterceptNetworkUpdate (Urho3D::String(attributeName));
  909. }
  910. DllExport Urho3D::NetworkState *
  911. Serializable_GetNetworkState (Urho3D::Serializable *_target)
  912. {
  913. return _target->GetNetworkState ();
  914. }
  915. DllExport void *
  916. ValueAnimationInfo_ValueAnimationInfo (Urho3D::ValueAnimation * animation, enum Urho3D::WrapMode wrapMode, float speed)
  917. {
  918. return WeakPtr<ValueAnimationInfo>(new ValueAnimationInfo(animation, wrapMode, speed));
  919. }
  920. DllExport void *
  921. ValueAnimationInfo_ValueAnimationInfo0 (Urho3D::Object * target, Urho3D::ValueAnimation * animation, enum Urho3D::WrapMode wrapMode, float speed)
  922. {
  923. return WeakPtr<ValueAnimationInfo>(new ValueAnimationInfo(target, animation, wrapMode, speed));
  924. }
  925. DllExport int
  926. ValueAnimationInfo_Update (Urho3D::ValueAnimationInfo *_target, float timeStep)
  927. {
  928. return _target->Update (timeStep);
  929. }
  930. DllExport int
  931. ValueAnimationInfo_SetTime (Urho3D::ValueAnimationInfo *_target, float time)
  932. {
  933. return _target->SetTime (time);
  934. }
  935. DllExport void
  936. ValueAnimationInfo_SetWrapMode (Urho3D::ValueAnimationInfo *_target, enum Urho3D::WrapMode wrapMode)
  937. {
  938. _target->SetWrapMode (wrapMode);
  939. }
  940. DllExport void
  941. ValueAnimationInfo_SetSpeed (Urho3D::ValueAnimationInfo *_target, float speed)
  942. {
  943. _target->SetSpeed (speed);
  944. }
  945. DllExport Urho3D::Object *
  946. ValueAnimationInfo_GetTarget (Urho3D::ValueAnimationInfo *_target)
  947. {
  948. return _target->GetTarget ();
  949. }
  950. DllExport Urho3D::ValueAnimation *
  951. ValueAnimationInfo_GetAnimation (Urho3D::ValueAnimationInfo *_target)
  952. {
  953. return _target->GetAnimation ();
  954. }
  955. DllExport enum Urho3D::WrapMode
  956. ValueAnimationInfo_GetWrapMode (Urho3D::ValueAnimationInfo *_target)
  957. {
  958. return _target->GetWrapMode ();
  959. }
  960. DllExport float
  961. ValueAnimationInfo_GetTime (Urho3D::ValueAnimationInfo *_target)
  962. {
  963. return _target->GetTime ();
  964. }
  965. DllExport float
  966. ValueAnimationInfo_GetSpeed (Urho3D::ValueAnimationInfo *_target)
  967. {
  968. return _target->GetSpeed ();
  969. }
  970. DllExport int
  971. Animatable_GetType (Urho3D::Animatable *_target)
  972. {
  973. return (_target->GetType ()).Value ();
  974. }
  975. DllExport const char *
  976. Animatable_GetTypeName (Urho3D::Animatable *_target)
  977. {
  978. return stringdup((_target->GetTypeName ()).CString ());
  979. }
  980. DllExport int
  981. Animatable_GetTypeStatic ()
  982. {
  983. return (Animatable::GetTypeStatic ()).Value ();
  984. }
  985. DllExport const char *
  986. Animatable_GetTypeNameStatic ()
  987. {
  988. return stringdup((Animatable::GetTypeNameStatic ()).CString ());
  989. }
  990. DllExport void
  991. Animatable_RegisterObject (Urho3D::Context * context)
  992. {
  993. Animatable::RegisterObject (context);
  994. }
  995. DllExport int
  996. Animatable_LoadXML (Urho3D::Animatable *_target, const class Urho3D::XMLElement & source, bool setInstanceDefault)
  997. {
  998. return _target->LoadXML (source, setInstanceDefault);
  999. }
  1000. DllExport int
  1001. Animatable_SaveXML (Urho3D::Animatable *_target, Urho3D::XMLElement & dest)
  1002. {
  1003. return _target->SaveXML (dest);
  1004. }
  1005. DllExport void
  1006. Animatable_SetAnimationEnabled (Urho3D::Animatable *_target, bool enable)
  1007. {
  1008. _target->SetAnimationEnabled (enable);
  1009. }
  1010. DllExport void
  1011. Animatable_SetAnimationTime (Urho3D::Animatable *_target, float time)
  1012. {
  1013. _target->SetAnimationTime (time);
  1014. }
  1015. DllExport void
  1016. Animatable_SetObjectAnimation (Urho3D::Animatable *_target, Urho3D::ObjectAnimation * objectAnimation)
  1017. {
  1018. _target->SetObjectAnimation (objectAnimation);
  1019. }
  1020. DllExport void
  1021. Animatable_SetAttributeAnimation (Urho3D::Animatable *_target, const char * name, Urho3D::ValueAnimation * attributeAnimation, enum Urho3D::WrapMode wrapMode, float speed)
  1022. {
  1023. _target->SetAttributeAnimation (Urho3D::String(name), attributeAnimation, wrapMode, speed);
  1024. }
  1025. DllExport void
  1026. Animatable_SetAttributeAnimationWrapMode (Urho3D::Animatable *_target, const char * name, enum Urho3D::WrapMode wrapMode)
  1027. {
  1028. _target->SetAttributeAnimationWrapMode (Urho3D::String(name), wrapMode);
  1029. }
  1030. DllExport void
  1031. Animatable_SetAttributeAnimationSpeed (Urho3D::Animatable *_target, const char * name, float speed)
  1032. {
  1033. _target->SetAttributeAnimationSpeed (Urho3D::String(name), speed);
  1034. }
  1035. DllExport void
  1036. Animatable_SetAttributeAnimationTime (Urho3D::Animatable *_target, const char * name, float time)
  1037. {
  1038. _target->SetAttributeAnimationTime (Urho3D::String(name), time);
  1039. }
  1040. DllExport void
  1041. Animatable_RemoveObjectAnimation (Urho3D::Animatable *_target)
  1042. {
  1043. _target->RemoveObjectAnimation ();
  1044. }
  1045. DllExport void
  1046. Animatable_RemoveAttributeAnimation (Urho3D::Animatable *_target, const char * name)
  1047. {
  1048. _target->RemoveAttributeAnimation (Urho3D::String(name));
  1049. }
  1050. DllExport int
  1051. Animatable_GetAnimationEnabled (Urho3D::Animatable *_target)
  1052. {
  1053. return _target->GetAnimationEnabled ();
  1054. }
  1055. DllExport Urho3D::ObjectAnimation *
  1056. Animatable_GetObjectAnimation (Urho3D::Animatable *_target)
  1057. {
  1058. return _target->GetObjectAnimation ();
  1059. }
  1060. DllExport Urho3D::ValueAnimation *
  1061. Animatable_GetAttributeAnimation (Urho3D::Animatable *_target, const char * name)
  1062. {
  1063. return _target->GetAttributeAnimation (Urho3D::String(name));
  1064. }
  1065. DllExport enum Urho3D::WrapMode
  1066. Animatable_GetAttributeAnimationWrapMode (Urho3D::Animatable *_target, const char * name)
  1067. {
  1068. return _target->GetAttributeAnimationWrapMode (Urho3D::String(name));
  1069. }
  1070. DllExport float
  1071. Animatable_GetAttributeAnimationSpeed (Urho3D::Animatable *_target, const char * name)
  1072. {
  1073. return _target->GetAttributeAnimationSpeed (Urho3D::String(name));
  1074. }
  1075. DllExport float
  1076. Animatable_GetAttributeAnimationTime (Urho3D::Animatable *_target, const char * name)
  1077. {
  1078. return _target->GetAttributeAnimationTime (Urho3D::String(name));
  1079. }
  1080. DllExport Urho3D::ResourceRef
  1081. Animatable_GetObjectAnimationAttr (Urho3D::Animatable *_target)
  1082. {
  1083. return _target->GetObjectAnimationAttr ();
  1084. }
  1085. DllExport int
  1086. Component_GetType (Urho3D::Component *_target)
  1087. {
  1088. return (_target->GetType ()).Value ();
  1089. }
  1090. DllExport const char *
  1091. Component_GetTypeName (Urho3D::Component *_target)
  1092. {
  1093. return stringdup((_target->GetTypeName ()).CString ());
  1094. }
  1095. DllExport int
  1096. Component_GetTypeStatic ()
  1097. {
  1098. return (Component::GetTypeStatic ()).Value ();
  1099. }
  1100. DllExport const char *
  1101. Component_GetTypeNameStatic ()
  1102. {
  1103. return stringdup((Component::GetTypeNameStatic ()).CString ());
  1104. }
  1105. DllExport void *
  1106. Component_Component (Urho3D::Context * context)
  1107. {
  1108. return WeakPtr<Component>(new Component(context));
  1109. }
  1110. DllExport void
  1111. Component_OnSetEnabled (Urho3D::Component *_target)
  1112. {
  1113. _target->OnSetEnabled ();
  1114. }
  1115. DllExport int
  1116. Component_Save_File (Urho3D::Component *_target, File * dest)
  1117. {
  1118. return _target->Save (*dest);
  1119. }
  1120. DllExport int
  1121. Component_Save_MemoryBuffer (Urho3D::Component *_target, MemoryBuffer * dest)
  1122. {
  1123. return _target->Save (*dest);
  1124. }
  1125. DllExport int
  1126. Component_SaveXML (Urho3D::Component *_target, Urho3D::XMLElement & dest)
  1127. {
  1128. return _target->SaveXML (dest);
  1129. }
  1130. DllExport void
  1131. Component_MarkNetworkUpdate (Urho3D::Component *_target)
  1132. {
  1133. _target->MarkNetworkUpdate ();
  1134. }
  1135. DllExport void
  1136. Component_DrawDebugGeometry (Urho3D::Component *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  1137. {
  1138. _target->DrawDebugGeometry (debug, depthTest);
  1139. }
  1140. DllExport void
  1141. Component_SetEnabled (Urho3D::Component *_target, bool enable)
  1142. {
  1143. _target->SetEnabled (enable);
  1144. }
  1145. DllExport void
  1146. Component_Remove (Urho3D::Component *_target)
  1147. {
  1148. _target->Remove ();
  1149. }
  1150. DllExport unsigned int
  1151. Component_GetID (Urho3D::Component *_target)
  1152. {
  1153. return _target->GetID ();
  1154. }
  1155. DllExport Urho3D::Node *
  1156. Component_GetNode (Urho3D::Component *_target)
  1157. {
  1158. return _target->GetNode ();
  1159. }
  1160. DllExport Urho3D::Scene *
  1161. Component_GetScene (Urho3D::Component *_target)
  1162. {
  1163. return _target->GetScene ();
  1164. }
  1165. DllExport int
  1166. Component_IsEnabled (Urho3D::Component *_target)
  1167. {
  1168. return _target->IsEnabled ();
  1169. }
  1170. DllExport int
  1171. Component_IsEnabledEffective (Urho3D::Component *_target)
  1172. {
  1173. return _target->IsEnabledEffective ();
  1174. }
  1175. DllExport Urho3D::Component *
  1176. Component_GetComponent (Urho3D::Component *_target, int type)
  1177. {
  1178. return _target->GetComponent (Urho3D::StringHash(type));
  1179. }
  1180. DllExport void
  1181. Component_AddReplicationState (Urho3D::Component *_target, Urho3D::ComponentReplicationState * state)
  1182. {
  1183. _target->AddReplicationState (state);
  1184. }
  1185. DllExport void
  1186. Component_PrepareNetworkUpdate (Urho3D::Component *_target)
  1187. {
  1188. _target->PrepareNetworkUpdate ();
  1189. }
  1190. DllExport void
  1191. Component_CleanupConnection (Urho3D::Component *_target, Urho3D::Connection * connection)
  1192. {
  1193. _target->CleanupConnection (connection);
  1194. }
  1195. DllExport int
  1196. Time_GetType (Urho3D::Time *_target)
  1197. {
  1198. return (_target->GetType ()).Value ();
  1199. }
  1200. DllExport const char *
  1201. Time_GetTypeName (Urho3D::Time *_target)
  1202. {
  1203. return stringdup((_target->GetTypeName ()).CString ());
  1204. }
  1205. DllExport int
  1206. Time_GetTypeStatic ()
  1207. {
  1208. return (Time::GetTypeStatic ()).Value ();
  1209. }
  1210. DllExport const char *
  1211. Time_GetTypeNameStatic ()
  1212. {
  1213. return stringdup((Time::GetTypeNameStatic ()).CString ());
  1214. }
  1215. DllExport void *
  1216. Time_Time (Urho3D::Context * context)
  1217. {
  1218. return WeakPtr<Time>(new Time(context));
  1219. }
  1220. DllExport void
  1221. Time_BeginFrame (Urho3D::Time *_target, float timeStep)
  1222. {
  1223. _target->BeginFrame (timeStep);
  1224. }
  1225. DllExport void
  1226. Time_EndFrame (Urho3D::Time *_target)
  1227. {
  1228. _target->EndFrame ();
  1229. }
  1230. DllExport void
  1231. Time_SetTimerPeriod (Urho3D::Time *_target, unsigned int mSec)
  1232. {
  1233. _target->SetTimerPeriod (mSec);
  1234. }
  1235. DllExport unsigned int
  1236. Time_GetFrameNumber (Urho3D::Time *_target)
  1237. {
  1238. return _target->GetFrameNumber ();
  1239. }
  1240. DllExport float
  1241. Time_GetTimeStep (Urho3D::Time *_target)
  1242. {
  1243. return _target->GetTimeStep ();
  1244. }
  1245. DllExport unsigned int
  1246. Time_GetTimerPeriod (Urho3D::Time *_target)
  1247. {
  1248. return _target->GetTimerPeriod ();
  1249. }
  1250. DllExport float
  1251. Time_GetElapsedTime (Urho3D::Time *_target)
  1252. {
  1253. return _target->GetElapsedTime ();
  1254. }
  1255. DllExport float
  1256. Time_GetFramesPerSecond (Urho3D::Time *_target)
  1257. {
  1258. return _target->GetFramesPerSecond ();
  1259. }
  1260. DllExport unsigned int
  1261. Time_GetSystemTime ()
  1262. {
  1263. return Time::GetSystemTime ();
  1264. }
  1265. DllExport unsigned int
  1266. Time_GetTimeSinceEpoch ()
  1267. {
  1268. return Time::GetTimeSinceEpoch ();
  1269. }
  1270. DllExport const char *
  1271. Time_GetTimeStamp ()
  1272. {
  1273. return stringdup((Time::GetTimeStamp ()).CString ());
  1274. }
  1275. DllExport void
  1276. Time_Sleep (unsigned int mSec)
  1277. {
  1278. Time::Sleep (mSec);
  1279. }
  1280. DllExport int
  1281. Resource_GetType (Urho3D::Resource *_target)
  1282. {
  1283. return (_target->GetType ()).Value ();
  1284. }
  1285. DllExport const char *
  1286. Resource_GetTypeName (Urho3D::Resource *_target)
  1287. {
  1288. return stringdup((_target->GetTypeName ()).CString ());
  1289. }
  1290. DllExport int
  1291. Resource_GetTypeStatic ()
  1292. {
  1293. return (Resource::GetTypeStatic ()).Value ();
  1294. }
  1295. DllExport const char *
  1296. Resource_GetTypeNameStatic ()
  1297. {
  1298. return stringdup((Resource::GetTypeNameStatic ()).CString ());
  1299. }
  1300. DllExport void *
  1301. Resource_Resource (Urho3D::Context * context)
  1302. {
  1303. return WeakPtr<Resource>(new Resource(context));
  1304. }
  1305. DllExport int
  1306. Resource_Load_File (Urho3D::Resource *_target, File * source)
  1307. {
  1308. return _target->Load (*source);
  1309. }
  1310. DllExport int
  1311. Resource_Load_MemoryBuffer (Urho3D::Resource *_target, MemoryBuffer * source)
  1312. {
  1313. return _target->Load (*source);
  1314. }
  1315. DllExport int
  1316. Resource_BeginLoad_File (Urho3D::Resource *_target, File * source)
  1317. {
  1318. return _target->BeginLoad (*source);
  1319. }
  1320. DllExport int
  1321. Resource_BeginLoad_MemoryBuffer (Urho3D::Resource *_target, MemoryBuffer * source)
  1322. {
  1323. return _target->BeginLoad (*source);
  1324. }
  1325. DllExport int
  1326. Resource_EndLoad (Urho3D::Resource *_target)
  1327. {
  1328. return _target->EndLoad ();
  1329. }
  1330. DllExport int
  1331. Resource_Save_File (Urho3D::Resource *_target, File * dest)
  1332. {
  1333. return _target->Save (*dest);
  1334. }
  1335. DllExport int
  1336. Resource_Save_MemoryBuffer (Urho3D::Resource *_target, MemoryBuffer * dest)
  1337. {
  1338. return _target->Save (*dest);
  1339. }
  1340. DllExport int
  1341. Resource_LoadFile (Urho3D::Resource *_target, const char * fileName)
  1342. {
  1343. return _target->LoadFile (Urho3D::String(fileName));
  1344. }
  1345. DllExport int
  1346. Resource_SaveFile (Urho3D::Resource *_target, const char * fileName)
  1347. {
  1348. return _target->SaveFile (Urho3D::String(fileName));
  1349. }
  1350. DllExport void
  1351. Resource_SetName (Urho3D::Resource *_target, const char * name)
  1352. {
  1353. _target->SetName (Urho3D::String(name));
  1354. }
  1355. DllExport void
  1356. Resource_SetMemoryUse (Urho3D::Resource *_target, unsigned int size)
  1357. {
  1358. _target->SetMemoryUse (size);
  1359. }
  1360. DllExport void
  1361. Resource_ResetUseTimer (Urho3D::Resource *_target)
  1362. {
  1363. _target->ResetUseTimer ();
  1364. }
  1365. DllExport void
  1366. Resource_SetAsyncLoadState (Urho3D::Resource *_target, enum Urho3D::AsyncLoadState newState)
  1367. {
  1368. _target->SetAsyncLoadState (newState);
  1369. }
  1370. DllExport const char *
  1371. Resource_GetName (Urho3D::Resource *_target)
  1372. {
  1373. return stringdup((_target->GetName ()).CString ());
  1374. }
  1375. DllExport int
  1376. Resource_GetNameHash (Urho3D::Resource *_target)
  1377. {
  1378. return (_target->GetNameHash ()).Value ();
  1379. }
  1380. DllExport unsigned int
  1381. Resource_GetMemoryUse (Urho3D::Resource *_target)
  1382. {
  1383. return _target->GetMemoryUse ();
  1384. }
  1385. DllExport unsigned int
  1386. Resource_GetUseTimer (Urho3D::Resource *_target)
  1387. {
  1388. return _target->GetUseTimer ();
  1389. }
  1390. DllExport enum Urho3D::AsyncLoadState
  1391. Resource_GetAsyncLoadState (Urho3D::Resource *_target)
  1392. {
  1393. return _target->GetAsyncLoadState ();
  1394. }
  1395. DllExport int
  1396. ResourceWithMetadata_GetType (Urho3D::ResourceWithMetadata *_target)
  1397. {
  1398. return (_target->GetType ()).Value ();
  1399. }
  1400. DllExport const char *
  1401. ResourceWithMetadata_GetTypeName (Urho3D::ResourceWithMetadata *_target)
  1402. {
  1403. return stringdup((_target->GetTypeName ()).CString ());
  1404. }
  1405. DllExport int
  1406. ResourceWithMetadata_GetTypeStatic ()
  1407. {
  1408. return (ResourceWithMetadata::GetTypeStatic ()).Value ();
  1409. }
  1410. DllExport const char *
  1411. ResourceWithMetadata_GetTypeNameStatic ()
  1412. {
  1413. return stringdup((ResourceWithMetadata::GetTypeNameStatic ()).CString ());
  1414. }
  1415. DllExport void *
  1416. ResourceWithMetadata_ResourceWithMetadata (Urho3D::Context * context)
  1417. {
  1418. return WeakPtr<ResourceWithMetadata>(new ResourceWithMetadata(context));
  1419. }
  1420. // Urho3D::Variant overloads begin:
  1421. DllExport void
  1422. ResourceWithMetadata_AddMetadata_0 (Urho3D::ResourceWithMetadata *_target, const char * name, const class Urho3D::Vector3 & value)
  1423. {
  1424. _target->AddMetadata (Urho3D::String(name), (value));
  1425. }
  1426. DllExport void
  1427. ResourceWithMetadata_AddMetadata_1 (Urho3D::ResourceWithMetadata *_target, const char * name, const class Urho3D::IntRect & value)
  1428. {
  1429. _target->AddMetadata (Urho3D::String(name), (value));
  1430. }
  1431. DllExport void
  1432. ResourceWithMetadata_AddMetadata_2 (Urho3D::ResourceWithMetadata *_target, const char * name, const class Urho3D::Color & value)
  1433. {
  1434. _target->AddMetadata (Urho3D::String(name), (value));
  1435. }
  1436. DllExport void
  1437. ResourceWithMetadata_AddMetadata_3 (Urho3D::ResourceWithMetadata *_target, const char * name, const class Urho3D::Vector2 & value)
  1438. {
  1439. _target->AddMetadata (Urho3D::String(name), (value));
  1440. }
  1441. DllExport void
  1442. ResourceWithMetadata_AddMetadata_4 (Urho3D::ResourceWithMetadata *_target, const char * name, const class Urho3D::Vector4 & value)
  1443. {
  1444. _target->AddMetadata (Urho3D::String(name), (value));
  1445. }
  1446. DllExport void
  1447. ResourceWithMetadata_AddMetadata_5 (Urho3D::ResourceWithMetadata *_target, const char * name, const class Urho3D::IntVector2 & value)
  1448. {
  1449. _target->AddMetadata (Urho3D::String(name), (value));
  1450. }
  1451. DllExport void
  1452. ResourceWithMetadata_AddMetadata_6 (Urho3D::ResourceWithMetadata *_target, const char * name, const class Urho3D::Quaternion & value)
  1453. {
  1454. _target->AddMetadata (Urho3D::String(name), (value));
  1455. }
  1456. DllExport void
  1457. ResourceWithMetadata_AddMetadata_7 (Urho3D::ResourceWithMetadata *_target, const char * name, const class Urho3D::Matrix4 & value)
  1458. {
  1459. _target->AddMetadata (Urho3D::String(name), (value));
  1460. }
  1461. DllExport void
  1462. ResourceWithMetadata_AddMetadata_8 (Urho3D::ResourceWithMetadata *_target, const char * name, const class Urho3D::Matrix3x4 & value)
  1463. {
  1464. _target->AddMetadata (Urho3D::String(name), (value));
  1465. }
  1466. DllExport void
  1467. ResourceWithMetadata_AddMetadata_9 (Urho3D::ResourceWithMetadata *_target, const char * name, int value)
  1468. {
  1469. _target->AddMetadata (Urho3D::String(name), (value));
  1470. }
  1471. DllExport void
  1472. ResourceWithMetadata_AddMetadata_10 (Urho3D::ResourceWithMetadata *_target, const char * name, float value)
  1473. {
  1474. _target->AddMetadata (Urho3D::String(name), (value));
  1475. }
  1476. DllExport void
  1477. ResourceWithMetadata_AddMetadata_11 (Urho3D::ResourceWithMetadata *_target, const char * name, const char * value)
  1478. {
  1479. _target->AddMetadata (Urho3D::String(name), Urho3D::String(value));
  1480. }
  1481. DllExport void
  1482. ResourceWithMetadata_AddMetadata_12 (Urho3D::ResourceWithMetadata *_target, const char * name, bool value)
  1483. {
  1484. _target->AddMetadata (Urho3D::String(name), (value));
  1485. }
  1486. // Urho3D::Variant overloads end.
  1487. DllExport void
  1488. ResourceWithMetadata_RemoveMetadata (Urho3D::ResourceWithMetadata *_target, const char * name)
  1489. {
  1490. _target->RemoveMetadata (Urho3D::String(name));
  1491. }
  1492. DllExport void
  1493. ResourceWithMetadata_RemoveAllMetadata (Urho3D::ResourceWithMetadata *_target)
  1494. {
  1495. _target->RemoveAllMetadata ();
  1496. }
  1497. // Urho3D::Variant overloads begin:
  1498. DllExport Interop::Vector3
  1499. ResourceWithMetadata_GetMetadata_0 (Urho3D::ResourceWithMetadata *_target, const char * name)
  1500. {
  1501. return *((Interop::Vector3 *) &(_target->GetMetadata (Urho3D::String(name)).GetVector3()));
  1502. }
  1503. DllExport Interop::IntRect
  1504. ResourceWithMetadata_GetMetadata_1 (Urho3D::ResourceWithMetadata *_target, const char * name)
  1505. {
  1506. return *((Interop::IntRect *) &(_target->GetMetadata (Urho3D::String(name)).GetIntRect()));
  1507. }
  1508. DllExport Interop::Color
  1509. ResourceWithMetadata_GetMetadata_2 (Urho3D::ResourceWithMetadata *_target, const char * name)
  1510. {
  1511. return *((Interop::Color *) &(_target->GetMetadata (Urho3D::String(name)).GetColor()));
  1512. }
  1513. DllExport Interop::Vector2
  1514. ResourceWithMetadata_GetMetadata_3 (Urho3D::ResourceWithMetadata *_target, const char * name)
  1515. {
  1516. return *((Interop::Vector2 *) &(_target->GetMetadata (Urho3D::String(name)).GetVector2()));
  1517. }
  1518. DllExport Interop::Vector4
  1519. ResourceWithMetadata_GetMetadata_4 (Urho3D::ResourceWithMetadata *_target, const char * name)
  1520. {
  1521. return *((Interop::Vector4 *) &(_target->GetMetadata (Urho3D::String(name)).GetVector4()));
  1522. }
  1523. DllExport Interop::IntVector2
  1524. ResourceWithMetadata_GetMetadata_5 (Urho3D::ResourceWithMetadata *_target, const char * name)
  1525. {
  1526. return *((Interop::IntVector2 *) &(_target->GetMetadata (Urho3D::String(name)).GetIntVector2()));
  1527. }
  1528. DllExport Interop::Quaternion
  1529. ResourceWithMetadata_GetMetadata_6 (Urho3D::ResourceWithMetadata *_target, const char * name)
  1530. {
  1531. return *((Interop::Quaternion *) &(_target->GetMetadata (Urho3D::String(name)).GetQuaternion()));
  1532. }
  1533. DllExport Interop::Matrix4
  1534. ResourceWithMetadata_GetMetadata_7 (Urho3D::ResourceWithMetadata *_target, const char * name)
  1535. {
  1536. return *((Interop::Matrix4 *) &(_target->GetMetadata (Urho3D::String(name)).GetMatrix4()));
  1537. }
  1538. DllExport Interop::Matrix3x4
  1539. ResourceWithMetadata_GetMetadata_8 (Urho3D::ResourceWithMetadata *_target, const char * name)
  1540. {
  1541. return *((Interop::Matrix3x4 *) &(_target->GetMetadata (Urho3D::String(name)).GetMatrix3x4()));
  1542. }
  1543. DllExport int
  1544. ResourceWithMetadata_GetMetadata_9 (Urho3D::ResourceWithMetadata *_target, const char * name)
  1545. {
  1546. return (_target->GetMetadata (Urho3D::String(name)).GetInt());
  1547. }
  1548. DllExport float
  1549. ResourceWithMetadata_GetMetadata_10 (Urho3D::ResourceWithMetadata *_target, const char * name)
  1550. {
  1551. return (_target->GetMetadata (Urho3D::String(name)).GetFloat());
  1552. }
  1553. DllExport const char *
  1554. ResourceWithMetadata_GetMetadata_11 (Urho3D::ResourceWithMetadata *_target, const char * name)
  1555. {
  1556. return stringdup(_target->GetMetadata (Urho3D::String(name)).GetString().CString());
  1557. }
  1558. DllExport bool
  1559. ResourceWithMetadata_GetMetadata_12 (Urho3D::ResourceWithMetadata *_target, const char * name)
  1560. {
  1561. return (_target->GetMetadata (Urho3D::String(name)).GetBool());
  1562. }
  1563. // Urho3D::Variant overloads end.
  1564. DllExport int
  1565. ResourceWithMetadata_HasMetadata (Urho3D::ResourceWithMetadata *_target)
  1566. {
  1567. return _target->HasMetadata ();
  1568. }
  1569. DllExport int
  1570. Sprite2D_GetType (Urho3D::Sprite2D *_target)
  1571. {
  1572. return (_target->GetType ()).Value ();
  1573. }
  1574. DllExport const char *
  1575. Sprite2D_GetTypeName (Urho3D::Sprite2D *_target)
  1576. {
  1577. return stringdup((_target->GetTypeName ()).CString ());
  1578. }
  1579. DllExport int
  1580. Sprite2D_GetTypeStatic ()
  1581. {
  1582. return (Sprite2D::GetTypeStatic ()).Value ();
  1583. }
  1584. DllExport const char *
  1585. Sprite2D_GetTypeNameStatic ()
  1586. {
  1587. return stringdup((Sprite2D::GetTypeNameStatic ()).CString ());
  1588. }
  1589. DllExport void *
  1590. Sprite2D_Sprite2D (Urho3D::Context * context)
  1591. {
  1592. return WeakPtr<Sprite2D>(new Sprite2D(context));
  1593. }
  1594. DllExport void
  1595. Sprite2D_RegisterObject (Urho3D::Context * context)
  1596. {
  1597. Sprite2D::RegisterObject (context);
  1598. }
  1599. DllExport int
  1600. Sprite2D_BeginLoad_File (Urho3D::Sprite2D *_target, File * source)
  1601. {
  1602. return _target->BeginLoad (*source);
  1603. }
  1604. DllExport int
  1605. Sprite2D_BeginLoad_MemoryBuffer (Urho3D::Sprite2D *_target, MemoryBuffer * source)
  1606. {
  1607. return _target->BeginLoad (*source);
  1608. }
  1609. DllExport int
  1610. Sprite2D_EndLoad (Urho3D::Sprite2D *_target)
  1611. {
  1612. return _target->EndLoad ();
  1613. }
  1614. DllExport void
  1615. Sprite2D_SetTexture (Urho3D::Sprite2D *_target, Urho3D::Texture2D * texture)
  1616. {
  1617. _target->SetTexture (texture);
  1618. }
  1619. DllExport void
  1620. Sprite2D_SetRectangle (Urho3D::Sprite2D *_target, const class Urho3D::IntRect & rectangle)
  1621. {
  1622. _target->SetRectangle (rectangle);
  1623. }
  1624. DllExport void
  1625. Sprite2D_SetHotSpot (Urho3D::Sprite2D *_target, const class Urho3D::Vector2 & hotSpot)
  1626. {
  1627. _target->SetHotSpot (hotSpot);
  1628. }
  1629. DllExport void
  1630. Sprite2D_SetOffset (Urho3D::Sprite2D *_target, const class Urho3D::IntVector2 & offset)
  1631. {
  1632. _target->SetOffset (offset);
  1633. }
  1634. DllExport void
  1635. Sprite2D_SetTextureEdgeOffset (Urho3D::Sprite2D *_target, float offset)
  1636. {
  1637. _target->SetTextureEdgeOffset (offset);
  1638. }
  1639. DllExport void
  1640. Sprite2D_SetSpriteSheet (Urho3D::Sprite2D *_target, Urho3D::SpriteSheet2D * spriteSheet)
  1641. {
  1642. _target->SetSpriteSheet (spriteSheet);
  1643. }
  1644. DllExport Urho3D::Texture2D *
  1645. Sprite2D_GetTexture (Urho3D::Sprite2D *_target)
  1646. {
  1647. return _target->GetTexture ();
  1648. }
  1649. DllExport Interop::IntRect
  1650. Sprite2D_GetRectangle (Urho3D::Sprite2D *_target)
  1651. {
  1652. return *((Interop::IntRect *) &(_target->GetRectangle ()));
  1653. }
  1654. DllExport Interop::Vector2
  1655. Sprite2D_GetHotSpot (Urho3D::Sprite2D *_target)
  1656. {
  1657. return *((Interop::Vector2 *) &(_target->GetHotSpot ()));
  1658. }
  1659. DllExport Interop::IntVector2
  1660. Sprite2D_GetOffset (Urho3D::Sprite2D *_target)
  1661. {
  1662. return *((Interop::IntVector2 *) &(_target->GetOffset ()));
  1663. }
  1664. DllExport float
  1665. Sprite2D_GetTextureEdgeOffset (Urho3D::Sprite2D *_target)
  1666. {
  1667. return _target->GetTextureEdgeOffset ();
  1668. }
  1669. DllExport Urho3D::SpriteSheet2D *
  1670. Sprite2D_GetSpriteSheet (Urho3D::Sprite2D *_target)
  1671. {
  1672. return _target->GetSpriteSheet ();
  1673. }
  1674. DllExport Urho3D::ResourceRef
  1675. Sprite2D_SaveToResourceRef (Urho3D::Sprite2D * sprite)
  1676. {
  1677. return Sprite2D::SaveToResourceRef (sprite);
  1678. }
  1679. DllExport void *
  1680. PropertySet2D_PropertySet2D ()
  1681. {
  1682. return WeakPtr<PropertySet2D>(new PropertySet2D());
  1683. }
  1684. DllExport void
  1685. PropertySet2D_Load (Urho3D::PropertySet2D *_target, const class Urho3D::XMLElement & element)
  1686. {
  1687. _target->Load (element);
  1688. }
  1689. DllExport int
  1690. PropertySet2D_HasProperty (Urho3D::PropertySet2D *_target, const char * name)
  1691. {
  1692. return _target->HasProperty (Urho3D::String(name));
  1693. }
  1694. DllExport const char *
  1695. PropertySet2D_GetProperty (Urho3D::PropertySet2D *_target, const char * name)
  1696. {
  1697. return stringdup((_target->GetProperty (Urho3D::String(name))).CString ());
  1698. }
  1699. DllExport void *
  1700. Tile2D_Tile2D ()
  1701. {
  1702. return WeakPtr<Tile2D>(new Tile2D());
  1703. }
  1704. DllExport int
  1705. Tile2D_GetGid (Urho3D::Tile2D *_target)
  1706. {
  1707. return _target->GetGid ();
  1708. }
  1709. DllExport Urho3D::Sprite2D *
  1710. Tile2D_GetSprite (Urho3D::Tile2D *_target)
  1711. {
  1712. return _target->GetSprite ();
  1713. }
  1714. DllExport int
  1715. Tile2D_HasProperty (Urho3D::Tile2D *_target, const char * name)
  1716. {
  1717. return _target->HasProperty (Urho3D::String(name));
  1718. }
  1719. DllExport const char *
  1720. Tile2D_GetProperty (Urho3D::Tile2D *_target, const char * name)
  1721. {
  1722. return stringdup((_target->GetProperty (Urho3D::String(name))).CString ());
  1723. }
  1724. DllExport void *
  1725. TileMapObject2D_TileMapObject2D ()
  1726. {
  1727. return WeakPtr<TileMapObject2D>(new TileMapObject2D());
  1728. }
  1729. DllExport enum Urho3D::TileMapObjectType2D
  1730. TileMapObject2D_GetObjectType (Urho3D::TileMapObject2D *_target)
  1731. {
  1732. return _target->GetObjectType ();
  1733. }
  1734. DllExport const char *
  1735. TileMapObject2D_GetName (Urho3D::TileMapObject2D *_target)
  1736. {
  1737. return stringdup((_target->GetName ()).CString ());
  1738. }
  1739. DllExport const char *
  1740. TileMapObject2D_GetType (Urho3D::TileMapObject2D *_target)
  1741. {
  1742. return stringdup((_target->GetType ()).CString ());
  1743. }
  1744. DllExport Interop::Vector2
  1745. TileMapObject2D_GetPosition (Urho3D::TileMapObject2D *_target)
  1746. {
  1747. return *((Interop::Vector2 *) &(_target->GetPosition ()));
  1748. }
  1749. DllExport Interop::Vector2
  1750. TileMapObject2D_GetSize (Urho3D::TileMapObject2D *_target)
  1751. {
  1752. return *((Interop::Vector2 *) &(_target->GetSize ()));
  1753. }
  1754. DllExport unsigned int
  1755. TileMapObject2D_GetNumPoints (Urho3D::TileMapObject2D *_target)
  1756. {
  1757. return _target->GetNumPoints ();
  1758. }
  1759. DllExport Interop::Vector2
  1760. TileMapObject2D_GetPoint (Urho3D::TileMapObject2D *_target, unsigned int index)
  1761. {
  1762. return *((Interop::Vector2 *) &(_target->GetPoint (index)));
  1763. }
  1764. DllExport int
  1765. TileMapObject2D_GetTileGid (Urho3D::TileMapObject2D *_target)
  1766. {
  1767. return _target->GetTileGid ();
  1768. }
  1769. DllExport Urho3D::Sprite2D *
  1770. TileMapObject2D_GetTileSprite (Urho3D::TileMapObject2D *_target)
  1771. {
  1772. return _target->GetTileSprite ();
  1773. }
  1774. DllExport int
  1775. TileMapObject2D_HasProperty (Urho3D::TileMapObject2D *_target, const char * name)
  1776. {
  1777. return _target->HasProperty (Urho3D::String(name));
  1778. }
  1779. DllExport const char *
  1780. TileMapObject2D_GetProperty (Urho3D::TileMapObject2D *_target, const char * name)
  1781. {
  1782. return stringdup((_target->GetProperty (Urho3D::String(name))).CString ());
  1783. }
  1784. DllExport int
  1785. TileMapLayer2D_GetType (Urho3D::TileMapLayer2D *_target)
  1786. {
  1787. return (_target->GetType ()).Value ();
  1788. }
  1789. DllExport const char *
  1790. TileMapLayer2D_GetTypeName (Urho3D::TileMapLayer2D *_target)
  1791. {
  1792. return stringdup((_target->GetTypeName ()).CString ());
  1793. }
  1794. DllExport int
  1795. TileMapLayer2D_GetTypeStatic ()
  1796. {
  1797. return (TileMapLayer2D::GetTypeStatic ()).Value ();
  1798. }
  1799. DllExport const char *
  1800. TileMapLayer2D_GetTypeNameStatic ()
  1801. {
  1802. return stringdup((TileMapLayer2D::GetTypeNameStatic ()).CString ());
  1803. }
  1804. DllExport void *
  1805. TileMapLayer2D_TileMapLayer2D (Urho3D::Context * context)
  1806. {
  1807. return WeakPtr<TileMapLayer2D>(new TileMapLayer2D(context));
  1808. }
  1809. DllExport void
  1810. TileMapLayer2D_RegisterObject (Urho3D::Context * context)
  1811. {
  1812. TileMapLayer2D::RegisterObject (context);
  1813. }
  1814. DllExport void
  1815. TileMapLayer2D_DrawDebugGeometry (Urho3D::TileMapLayer2D *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  1816. {
  1817. _target->DrawDebugGeometry (debug, depthTest);
  1818. }
  1819. DllExport void
  1820. TileMapLayer2D_Initialize (Urho3D::TileMapLayer2D *_target, Urho3D::TileMap2D * tileMap, const class Urho3D::TmxLayer2D * tmxLayer)
  1821. {
  1822. _target->Initialize (tileMap, tmxLayer);
  1823. }
  1824. DllExport void
  1825. TileMapLayer2D_SetDrawOrder (Urho3D::TileMapLayer2D *_target, int drawOrder)
  1826. {
  1827. _target->SetDrawOrder (drawOrder);
  1828. }
  1829. DllExport void
  1830. TileMapLayer2D_SetVisible (Urho3D::TileMapLayer2D *_target, bool visible)
  1831. {
  1832. _target->SetVisible (visible);
  1833. }
  1834. DllExport Urho3D::TileMap2D *
  1835. TileMapLayer2D_GetTileMap (Urho3D::TileMapLayer2D *_target)
  1836. {
  1837. return _target->GetTileMap ();
  1838. }
  1839. DllExport const class Urho3D::TmxLayer2D *
  1840. TileMapLayer2D_GetTmxLayer (Urho3D::TileMapLayer2D *_target)
  1841. {
  1842. return _target->GetTmxLayer ();
  1843. }
  1844. DllExport int
  1845. TileMapLayer2D_GetDrawOrder (Urho3D::TileMapLayer2D *_target)
  1846. {
  1847. return _target->GetDrawOrder ();
  1848. }
  1849. DllExport int
  1850. TileMapLayer2D_IsVisible (Urho3D::TileMapLayer2D *_target)
  1851. {
  1852. return _target->IsVisible ();
  1853. }
  1854. DllExport int
  1855. TileMapLayer2D_HasProperty (Urho3D::TileMapLayer2D *_target, const char * name)
  1856. {
  1857. return _target->HasProperty (Urho3D::String(name));
  1858. }
  1859. DllExport const char *
  1860. TileMapLayer2D_GetProperty (Urho3D::TileMapLayer2D *_target, const char * name)
  1861. {
  1862. return stringdup((_target->GetProperty (Urho3D::String(name))).CString ());
  1863. }
  1864. DllExport enum Urho3D::TileMapLayerType2D
  1865. TileMapLayer2D_GetLayerType (Urho3D::TileMapLayer2D *_target)
  1866. {
  1867. return _target->GetLayerType ();
  1868. }
  1869. DllExport int
  1870. TileMapLayer2D_GetWidth (Urho3D::TileMapLayer2D *_target)
  1871. {
  1872. return _target->GetWidth ();
  1873. }
  1874. DllExport int
  1875. TileMapLayer2D_GetHeight (Urho3D::TileMapLayer2D *_target)
  1876. {
  1877. return _target->GetHeight ();
  1878. }
  1879. DllExport Urho3D::Node *
  1880. TileMapLayer2D_GetTileNode (Urho3D::TileMapLayer2D *_target, int x, int y)
  1881. {
  1882. return _target->GetTileNode (x, y);
  1883. }
  1884. DllExport Urho3D::Tile2D *
  1885. TileMapLayer2D_GetTile (Urho3D::TileMapLayer2D *_target, int x, int y)
  1886. {
  1887. return _target->GetTile (x, y);
  1888. }
  1889. DllExport unsigned int
  1890. TileMapLayer2D_GetNumObjects (Urho3D::TileMapLayer2D *_target)
  1891. {
  1892. return _target->GetNumObjects ();
  1893. }
  1894. DllExport Urho3D::TileMapObject2D *
  1895. TileMapLayer2D_GetObject (Urho3D::TileMapLayer2D *_target, unsigned int index)
  1896. {
  1897. return _target->GetObject (index);
  1898. }
  1899. DllExport Urho3D::Node *
  1900. TileMapLayer2D_GetObjectNode (Urho3D::TileMapLayer2D *_target, unsigned int index)
  1901. {
  1902. return _target->GetObjectNode (index);
  1903. }
  1904. DllExport Urho3D::Node *
  1905. TileMapLayer2D_GetImageNode (Urho3D::TileMapLayer2D *_target)
  1906. {
  1907. return _target->GetImageNode ();
  1908. }
  1909. DllExport void *
  1910. TmxLayer2D_TmxLayer2D (Urho3D::TmxFile2D * tmxFile, enum Urho3D::TileMapLayerType2D type)
  1911. {
  1912. return WeakPtr<TmxLayer2D>(new TmxLayer2D(tmxFile, type));
  1913. }
  1914. DllExport Urho3D::TmxFile2D *
  1915. TmxLayer2D_GetTmxFile (Urho3D::TmxLayer2D *_target)
  1916. {
  1917. return _target->GetTmxFile ();
  1918. }
  1919. DllExport enum Urho3D::TileMapLayerType2D
  1920. TmxLayer2D_GetType (Urho3D::TmxLayer2D *_target)
  1921. {
  1922. return _target->GetType ();
  1923. }
  1924. DllExport const char *
  1925. TmxLayer2D_GetName (Urho3D::TmxLayer2D *_target)
  1926. {
  1927. return stringdup((_target->GetName ()).CString ());
  1928. }
  1929. DllExport int
  1930. TmxLayer2D_GetWidth (Urho3D::TmxLayer2D *_target)
  1931. {
  1932. return _target->GetWidth ();
  1933. }
  1934. DllExport int
  1935. TmxLayer2D_GetHeight (Urho3D::TmxLayer2D *_target)
  1936. {
  1937. return _target->GetHeight ();
  1938. }
  1939. DllExport int
  1940. TmxLayer2D_IsVisible (Urho3D::TmxLayer2D *_target)
  1941. {
  1942. return _target->IsVisible ();
  1943. }
  1944. DllExport int
  1945. TmxLayer2D_HasProperty (Urho3D::TmxLayer2D *_target, const char * name)
  1946. {
  1947. return _target->HasProperty (Urho3D::String(name));
  1948. }
  1949. DllExport const char *
  1950. TmxLayer2D_GetProperty (Urho3D::TmxLayer2D *_target, const char * name)
  1951. {
  1952. return stringdup((_target->GetProperty (Urho3D::String(name))).CString ());
  1953. }
  1954. DllExport void *
  1955. TmxTileLayer2D_TmxTileLayer2D (Urho3D::TmxFile2D * tmxFile)
  1956. {
  1957. return WeakPtr<TmxTileLayer2D>(new TmxTileLayer2D(tmxFile));
  1958. }
  1959. DllExport int
  1960. TmxTileLayer2D_Load (Urho3D::TmxTileLayer2D *_target, const class Urho3D::XMLElement & element, const struct Urho3D::TileMapInfo2D & info)
  1961. {
  1962. return _target->Load (element, info);
  1963. }
  1964. DllExport Urho3D::Tile2D *
  1965. TmxTileLayer2D_GetTile (Urho3D::TmxTileLayer2D *_target, int x, int y)
  1966. {
  1967. return _target->GetTile (x, y);
  1968. }
  1969. DllExport void *
  1970. TmxObjectGroup2D_TmxObjectGroup2D (Urho3D::TmxFile2D * tmxFile)
  1971. {
  1972. return WeakPtr<TmxObjectGroup2D>(new TmxObjectGroup2D(tmxFile));
  1973. }
  1974. DllExport int
  1975. TmxObjectGroup2D_Load (Urho3D::TmxObjectGroup2D *_target, const class Urho3D::XMLElement & element, const struct Urho3D::TileMapInfo2D & info)
  1976. {
  1977. return _target->Load (element, info);
  1978. }
  1979. DllExport unsigned int
  1980. TmxObjectGroup2D_GetNumObjects (Urho3D::TmxObjectGroup2D *_target)
  1981. {
  1982. return _target->GetNumObjects ();
  1983. }
  1984. DllExport Urho3D::TileMapObject2D *
  1985. TmxObjectGroup2D_GetObject (Urho3D::TmxObjectGroup2D *_target, unsigned int index)
  1986. {
  1987. return _target->GetObject (index);
  1988. }
  1989. DllExport void *
  1990. TmxImageLayer2D_TmxImageLayer2D (Urho3D::TmxFile2D * tmxFile)
  1991. {
  1992. return WeakPtr<TmxImageLayer2D>(new TmxImageLayer2D(tmxFile));
  1993. }
  1994. DllExport int
  1995. TmxImageLayer2D_Load (Urho3D::TmxImageLayer2D *_target, const class Urho3D::XMLElement & element, const struct Urho3D::TileMapInfo2D & info)
  1996. {
  1997. return _target->Load (element, info);
  1998. }
  1999. DllExport Interop::Vector2
  2000. TmxImageLayer2D_GetPosition (Urho3D::TmxImageLayer2D *_target)
  2001. {
  2002. return *((Interop::Vector2 *) &(_target->GetPosition ()));
  2003. }
  2004. DllExport const char *
  2005. TmxImageLayer2D_GetSource (Urho3D::TmxImageLayer2D *_target)
  2006. {
  2007. return stringdup((_target->GetSource ()).CString ());
  2008. }
  2009. DllExport Urho3D::Sprite2D *
  2010. TmxImageLayer2D_GetSprite (Urho3D::TmxImageLayer2D *_target)
  2011. {
  2012. return _target->GetSprite ();
  2013. }
  2014. DllExport int
  2015. TmxFile2D_GetType (Urho3D::TmxFile2D *_target)
  2016. {
  2017. return (_target->GetType ()).Value ();
  2018. }
  2019. DllExport const char *
  2020. TmxFile2D_GetTypeName (Urho3D::TmxFile2D *_target)
  2021. {
  2022. return stringdup((_target->GetTypeName ()).CString ());
  2023. }
  2024. DllExport int
  2025. TmxFile2D_GetTypeStatic ()
  2026. {
  2027. return (TmxFile2D::GetTypeStatic ()).Value ();
  2028. }
  2029. DllExport const char *
  2030. TmxFile2D_GetTypeNameStatic ()
  2031. {
  2032. return stringdup((TmxFile2D::GetTypeNameStatic ()).CString ());
  2033. }
  2034. DllExport void *
  2035. TmxFile2D_TmxFile2D (Urho3D::Context * context)
  2036. {
  2037. return WeakPtr<TmxFile2D>(new TmxFile2D(context));
  2038. }
  2039. DllExport void
  2040. TmxFile2D_RegisterObject (Urho3D::Context * context)
  2041. {
  2042. TmxFile2D::RegisterObject (context);
  2043. }
  2044. DllExport int
  2045. TmxFile2D_BeginLoad_File (Urho3D::TmxFile2D *_target, File * source)
  2046. {
  2047. return _target->BeginLoad (*source);
  2048. }
  2049. DllExport int
  2050. TmxFile2D_BeginLoad_MemoryBuffer (Urho3D::TmxFile2D *_target, MemoryBuffer * source)
  2051. {
  2052. return _target->BeginLoad (*source);
  2053. }
  2054. DllExport int
  2055. TmxFile2D_EndLoad (Urho3D::TmxFile2D *_target)
  2056. {
  2057. return _target->EndLoad ();
  2058. }
  2059. DllExport int
  2060. TmxFile2D_SetInfo (Urho3D::TmxFile2D *_target, enum Urho3D::Orientation2D orientation, int width, int height, float tileWidth, float tileHeight)
  2061. {
  2062. return _target->SetInfo (orientation, width, height, tileWidth, tileHeight);
  2063. }
  2064. DllExport void
  2065. TmxFile2D_AddLayer (Urho3D::TmxFile2D *_target, unsigned int index, Urho3D::TmxLayer2D * layer)
  2066. {
  2067. _target->AddLayer (index, layer);
  2068. }
  2069. DllExport Urho3D::TileMapInfo2D
  2070. TmxFile2D_GetInfo (Urho3D::TmxFile2D *_target)
  2071. {
  2072. return _target->GetInfo ();
  2073. }
  2074. DllExport Urho3D::Sprite2D *
  2075. TmxFile2D_GetTileSprite (Urho3D::TmxFile2D *_target, int gid)
  2076. {
  2077. return _target->GetTileSprite (gid);
  2078. }
  2079. DllExport Urho3D::PropertySet2D *
  2080. TmxFile2D_GetTilePropertySet (Urho3D::TmxFile2D *_target, int gid)
  2081. {
  2082. return _target->GetTilePropertySet (gid);
  2083. }
  2084. DllExport unsigned int
  2085. TmxFile2D_GetNumLayers (Urho3D::TmxFile2D *_target)
  2086. {
  2087. return _target->GetNumLayers ();
  2088. }
  2089. DllExport const class Urho3D::TmxLayer2D *
  2090. TmxFile2D_GetLayer (Urho3D::TmxFile2D *_target, unsigned int index)
  2091. {
  2092. return _target->GetLayer (index);
  2093. }
  2094. DllExport int
  2095. MessageBox_GetType (Urho3D::MessageBox *_target)
  2096. {
  2097. return (_target->GetType ()).Value ();
  2098. }
  2099. DllExport const char *
  2100. MessageBox_GetTypeName (Urho3D::MessageBox *_target)
  2101. {
  2102. return stringdup((_target->GetTypeName ()).CString ());
  2103. }
  2104. DllExport int
  2105. MessageBox_GetTypeStatic ()
  2106. {
  2107. return (MessageBox::GetTypeStatic ()).Value ();
  2108. }
  2109. DllExport const char *
  2110. MessageBox_GetTypeNameStatic ()
  2111. {
  2112. return stringdup((MessageBox::GetTypeNameStatic ()).CString ());
  2113. }
  2114. DllExport void *
  2115. MessageBox_MessageBox (Urho3D::Context * context, const char * messageString, const char * titleString, Urho3D::XMLFile * layoutFile, Urho3D::XMLFile * styleFile)
  2116. {
  2117. return WeakPtr<MessageBox>(new MessageBox(context, Urho3D::String(messageString), Urho3D::String(titleString), layoutFile, styleFile));
  2118. }
  2119. DllExport void
  2120. MessageBox_RegisterObject (Urho3D::Context * context)
  2121. {
  2122. MessageBox::RegisterObject (context);
  2123. }
  2124. DllExport void
  2125. MessageBox_SetTitle (Urho3D::MessageBox *_target, const char * text)
  2126. {
  2127. _target->SetTitle (Urho3D::String(text));
  2128. }
  2129. DllExport void
  2130. MessageBox_SetMessage (Urho3D::MessageBox *_target, const char * text)
  2131. {
  2132. _target->SetMessage (Urho3D::String(text));
  2133. }
  2134. DllExport const char *
  2135. MessageBox_GetTitle (Urho3D::MessageBox *_target)
  2136. {
  2137. return stringdup((_target->GetTitle ()).CString ());
  2138. }
  2139. DllExport const char *
  2140. MessageBox_GetMessage (Urho3D::MessageBox *_target)
  2141. {
  2142. return stringdup((_target->GetMessage ()).CString ());
  2143. }
  2144. DllExport Urho3D::UIElement *
  2145. MessageBox_GetWindow (Urho3D::MessageBox *_target)
  2146. {
  2147. return _target->GetWindow ();
  2148. }
  2149. DllExport int
  2150. Audio_GetType (Urho3D::Audio *_target)
  2151. {
  2152. return (_target->GetType ()).Value ();
  2153. }
  2154. DllExport const char *
  2155. Audio_GetTypeName (Urho3D::Audio *_target)
  2156. {
  2157. return stringdup((_target->GetTypeName ()).CString ());
  2158. }
  2159. DllExport int
  2160. Audio_GetTypeStatic ()
  2161. {
  2162. return (Audio::GetTypeStatic ()).Value ();
  2163. }
  2164. DllExport const char *
  2165. Audio_GetTypeNameStatic ()
  2166. {
  2167. return stringdup((Audio::GetTypeNameStatic ()).CString ());
  2168. }
  2169. DllExport void *
  2170. Audio_Audio (Urho3D::Context * context)
  2171. {
  2172. return WeakPtr<Audio>(new Audio(context));
  2173. }
  2174. DllExport int
  2175. Audio_SetMode (Urho3D::Audio *_target, int bufferLengthMSec, int mixRate, bool stereo, bool interpolation)
  2176. {
  2177. return _target->SetMode (bufferLengthMSec, mixRate, stereo, interpolation);
  2178. }
  2179. DllExport void
  2180. Audio_Update (Urho3D::Audio *_target, float timeStep)
  2181. {
  2182. _target->Update (timeStep);
  2183. }
  2184. DllExport int
  2185. Audio_Play (Urho3D::Audio *_target)
  2186. {
  2187. return _target->Play ();
  2188. }
  2189. DllExport void
  2190. Audio_Stop (Urho3D::Audio *_target)
  2191. {
  2192. _target->Stop ();
  2193. }
  2194. DllExport void
  2195. Audio_SetMasterGain (Urho3D::Audio *_target, const char * type, float gain)
  2196. {
  2197. _target->SetMasterGain (Urho3D::String(type), gain);
  2198. }
  2199. DllExport void
  2200. Audio_PauseSoundType (Urho3D::Audio *_target, const char * type)
  2201. {
  2202. _target->PauseSoundType (Urho3D::String(type));
  2203. }
  2204. DllExport void
  2205. Audio_ResumeSoundType (Urho3D::Audio *_target, const char * type)
  2206. {
  2207. _target->ResumeSoundType (Urho3D::String(type));
  2208. }
  2209. DllExport void
  2210. Audio_ResumeAll (Urho3D::Audio *_target)
  2211. {
  2212. _target->ResumeAll ();
  2213. }
  2214. DllExport void
  2215. Audio_SetListener (Urho3D::Audio *_target, Urho3D::SoundListener * listener)
  2216. {
  2217. _target->SetListener (listener);
  2218. }
  2219. DllExport void
  2220. Audio_StopSound (Urho3D::Audio *_target, Urho3D::Sound * sound)
  2221. {
  2222. _target->StopSound (sound);
  2223. }
  2224. DllExport unsigned int
  2225. Audio_GetSampleSize (Urho3D::Audio *_target)
  2226. {
  2227. return _target->GetSampleSize ();
  2228. }
  2229. DllExport int
  2230. Audio_GetMixRate (Urho3D::Audio *_target)
  2231. {
  2232. return _target->GetMixRate ();
  2233. }
  2234. DllExport int
  2235. Audio_GetInterpolation (Urho3D::Audio *_target)
  2236. {
  2237. return _target->GetInterpolation ();
  2238. }
  2239. DllExport int
  2240. Audio_IsStereo (Urho3D::Audio *_target)
  2241. {
  2242. return _target->IsStereo ();
  2243. }
  2244. DllExport int
  2245. Audio_IsPlaying (Urho3D::Audio *_target)
  2246. {
  2247. return _target->IsPlaying ();
  2248. }
  2249. DllExport int
  2250. Audio_IsInitialized (Urho3D::Audio *_target)
  2251. {
  2252. return _target->IsInitialized ();
  2253. }
  2254. DllExport float
  2255. Audio_GetMasterGain (Urho3D::Audio *_target, const char * type)
  2256. {
  2257. return _target->GetMasterGain (Urho3D::String(type));
  2258. }
  2259. DllExport int
  2260. Audio_IsSoundTypePaused (Urho3D::Audio *_target, const char * type)
  2261. {
  2262. return _target->IsSoundTypePaused (Urho3D::String(type));
  2263. }
  2264. DllExport Urho3D::SoundListener *
  2265. Audio_GetListener (Urho3D::Audio *_target)
  2266. {
  2267. return _target->GetListener ();
  2268. }
  2269. DllExport int
  2270. Audio_HasMasterGain (Urho3D::Audio *_target, const char * type)
  2271. {
  2272. return _target->HasMasterGain (Urho3D::String(type));
  2273. }
  2274. DllExport void
  2275. Audio_AddSoundSource (Urho3D::Audio *_target, Urho3D::SoundSource * soundSource)
  2276. {
  2277. _target->AddSoundSource (soundSource);
  2278. }
  2279. DllExport void
  2280. Audio_RemoveSoundSource (Urho3D::Audio *_target, Urho3D::SoundSource * soundSource)
  2281. {
  2282. _target->RemoveSoundSource (soundSource);
  2283. }
  2284. DllExport float
  2285. Audio_GetSoundSourceMasterGain (Urho3D::Audio *_target, int typeHash)
  2286. {
  2287. return _target->GetSoundSourceMasterGain (Urho3D::StringHash(typeHash));
  2288. }
  2289. DllExport void
  2290. Audio_MixOutput (Urho3D::Audio *_target, void * dest, unsigned int samples)
  2291. {
  2292. _target->MixOutput (dest, samples);
  2293. }
  2294. DllExport int
  2295. SoundStream_Seek (Urho3D::SoundStream *_target, unsigned int sample_number)
  2296. {
  2297. return _target->Seek (sample_number);
  2298. }
  2299. DllExport unsigned int
  2300. SoundStream_GetData (Urho3D::SoundStream *_target, signed char * dest, unsigned int numBytes)
  2301. {
  2302. return _target->GetData (dest, numBytes);
  2303. }
  2304. DllExport void
  2305. SoundStream_SetFormat (Urho3D::SoundStream *_target, unsigned int frequency, bool sixteenBit, bool stereo)
  2306. {
  2307. _target->SetFormat (frequency, sixteenBit, stereo);
  2308. }
  2309. DllExport void
  2310. SoundStream_SetStopAtEnd (Urho3D::SoundStream *_target, bool enable)
  2311. {
  2312. _target->SetStopAtEnd (enable);
  2313. }
  2314. DllExport unsigned int
  2315. SoundStream_GetSampleSize (Urho3D::SoundStream *_target)
  2316. {
  2317. return _target->GetSampleSize ();
  2318. }
  2319. DllExport float
  2320. SoundStream_GetFrequency (Urho3D::SoundStream *_target)
  2321. {
  2322. return _target->GetFrequency ();
  2323. }
  2324. DllExport unsigned int
  2325. SoundStream_GetIntFrequency (Urho3D::SoundStream *_target)
  2326. {
  2327. return _target->GetIntFrequency ();
  2328. }
  2329. DllExport int
  2330. SoundStream_GetStopAtEnd (Urho3D::SoundStream *_target)
  2331. {
  2332. return _target->GetStopAtEnd ();
  2333. }
  2334. DllExport int
  2335. SoundStream_IsSixteenBit (Urho3D::SoundStream *_target)
  2336. {
  2337. return _target->IsSixteenBit ();
  2338. }
  2339. DllExport int
  2340. SoundStream_IsStereo (Urho3D::SoundStream *_target)
  2341. {
  2342. return _target->IsStereo ();
  2343. }
  2344. DllExport void *
  2345. BufferedSoundStream_BufferedSoundStream ()
  2346. {
  2347. return WeakPtr<BufferedSoundStream>(new BufferedSoundStream());
  2348. }
  2349. DllExport unsigned int
  2350. BufferedSoundStream_GetData (Urho3D::BufferedSoundStream *_target, signed char * dest, unsigned int numBytes)
  2351. {
  2352. return _target->GetData (dest, numBytes);
  2353. }
  2354. DllExport void
  2355. BufferedSoundStream_AddData (Urho3D::BufferedSoundStream *_target, void * data, unsigned int numBytes)
  2356. {
  2357. _target->AddData (data, numBytes);
  2358. }
  2359. DllExport void
  2360. BufferedSoundStream_Clear (Urho3D::BufferedSoundStream *_target)
  2361. {
  2362. _target->Clear ();
  2363. }
  2364. DllExport unsigned int
  2365. BufferedSoundStream_GetBufferNumBytes (Urho3D::BufferedSoundStream *_target)
  2366. {
  2367. return _target->GetBufferNumBytes ();
  2368. }
  2369. DllExport float
  2370. BufferedSoundStream_GetBufferLength (Urho3D::BufferedSoundStream *_target)
  2371. {
  2372. return _target->GetBufferLength ();
  2373. }
  2374. DllExport void *
  2375. OggVorbisSoundStream_OggVorbisSoundStream (const class Urho3D::Sound * sound)
  2376. {
  2377. return WeakPtr<OggVorbisSoundStream>(new OggVorbisSoundStream(sound));
  2378. }
  2379. DllExport int
  2380. OggVorbisSoundStream_Seek (Urho3D::OggVorbisSoundStream *_target, unsigned int sample_number)
  2381. {
  2382. return _target->Seek (sample_number);
  2383. }
  2384. DllExport unsigned int
  2385. OggVorbisSoundStream_GetData (Urho3D::OggVorbisSoundStream *_target, signed char * dest, unsigned int numBytes)
  2386. {
  2387. return _target->GetData (dest, numBytes);
  2388. }
  2389. DllExport int
  2390. Sound_GetType (Urho3D::Sound *_target)
  2391. {
  2392. return (_target->GetType ()).Value ();
  2393. }
  2394. DllExport const char *
  2395. Sound_GetTypeName (Urho3D::Sound *_target)
  2396. {
  2397. return stringdup((_target->GetTypeName ()).CString ());
  2398. }
  2399. DllExport int
  2400. Sound_GetTypeStatic ()
  2401. {
  2402. return (Sound::GetTypeStatic ()).Value ();
  2403. }
  2404. DllExport const char *
  2405. Sound_GetTypeNameStatic ()
  2406. {
  2407. return stringdup((Sound::GetTypeNameStatic ()).CString ());
  2408. }
  2409. DllExport void *
  2410. Sound_Sound (Urho3D::Context * context)
  2411. {
  2412. return WeakPtr<Sound>(new Sound(context));
  2413. }
  2414. DllExport void
  2415. Sound_RegisterObject (Urho3D::Context * context)
  2416. {
  2417. Sound::RegisterObject (context);
  2418. }
  2419. DllExport int
  2420. Sound_BeginLoad_File (Urho3D::Sound *_target, File * source)
  2421. {
  2422. return _target->BeginLoad (*source);
  2423. }
  2424. DllExport int
  2425. Sound_BeginLoad_MemoryBuffer (Urho3D::Sound *_target, MemoryBuffer * source)
  2426. {
  2427. return _target->BeginLoad (*source);
  2428. }
  2429. DllExport int
  2430. Sound_LoadRaw_File (Urho3D::Sound *_target, File * source)
  2431. {
  2432. return _target->LoadRaw (*source);
  2433. }
  2434. DllExport int
  2435. Sound_LoadRaw_MemoryBuffer (Urho3D::Sound *_target, MemoryBuffer * source)
  2436. {
  2437. return _target->LoadRaw (*source);
  2438. }
  2439. DllExport int
  2440. Sound_LoadWav_File (Urho3D::Sound *_target, File * source)
  2441. {
  2442. return _target->LoadWav (*source);
  2443. }
  2444. DllExport int
  2445. Sound_LoadWav_MemoryBuffer (Urho3D::Sound *_target, MemoryBuffer * source)
  2446. {
  2447. return _target->LoadWav (*source);
  2448. }
  2449. DllExport int
  2450. Sound_LoadOggVorbis_File (Urho3D::Sound *_target, File * source)
  2451. {
  2452. return _target->LoadOggVorbis (*source);
  2453. }
  2454. DllExport int
  2455. Sound_LoadOggVorbis_MemoryBuffer (Urho3D::Sound *_target, MemoryBuffer * source)
  2456. {
  2457. return _target->LoadOggVorbis (*source);
  2458. }
  2459. DllExport void
  2460. Sound_SetSize (Urho3D::Sound *_target, unsigned int dataSize)
  2461. {
  2462. _target->SetSize (dataSize);
  2463. }
  2464. DllExport void
  2465. Sound_SetData (Urho3D::Sound *_target, const void * data, unsigned int dataSize)
  2466. {
  2467. _target->SetData (data, dataSize);
  2468. }
  2469. DllExport void
  2470. Sound_SetFormat (Urho3D::Sound *_target, unsigned int frequency, bool sixteenBit, bool stereo)
  2471. {
  2472. _target->SetFormat (frequency, sixteenBit, stereo);
  2473. }
  2474. DllExport void
  2475. Sound_SetLooped (Urho3D::Sound *_target, bool enable)
  2476. {
  2477. _target->SetLooped (enable);
  2478. }
  2479. DllExport void
  2480. Sound_SetLoop (Urho3D::Sound *_target, unsigned int repeatOffset, unsigned int endOffset)
  2481. {
  2482. _target->SetLoop (repeatOffset, endOffset);
  2483. }
  2484. DllExport Urho3D::SoundStream *
  2485. Sound_GetDecoderStream (Urho3D::Sound *_target)
  2486. {
  2487. auto copy = _target->GetDecoderStream ();
  2488. auto plain = copy.Get();
  2489. copy.Detach();
  2490. delete copy;
  2491. return plain;
  2492. }
  2493. DllExport signed char *
  2494. Sound_GetStart (Urho3D::Sound *_target)
  2495. {
  2496. return _target->GetStart ();
  2497. }
  2498. DllExport signed char *
  2499. Sound_GetRepeat (Urho3D::Sound *_target)
  2500. {
  2501. return _target->GetRepeat ();
  2502. }
  2503. DllExport signed char *
  2504. Sound_GetEnd (Urho3D::Sound *_target)
  2505. {
  2506. return _target->GetEnd ();
  2507. }
  2508. DllExport float
  2509. Sound_GetLength (Urho3D::Sound *_target)
  2510. {
  2511. return _target->GetLength ();
  2512. }
  2513. DllExport unsigned int
  2514. Sound_GetDataSize (Urho3D::Sound *_target)
  2515. {
  2516. return _target->GetDataSize ();
  2517. }
  2518. DllExport unsigned int
  2519. Sound_GetSampleSize (Urho3D::Sound *_target)
  2520. {
  2521. return _target->GetSampleSize ();
  2522. }
  2523. DllExport float
  2524. Sound_GetFrequency (Urho3D::Sound *_target)
  2525. {
  2526. return _target->GetFrequency ();
  2527. }
  2528. DllExport unsigned int
  2529. Sound_GetIntFrequency (Urho3D::Sound *_target)
  2530. {
  2531. return _target->GetIntFrequency ();
  2532. }
  2533. DllExport int
  2534. Sound_IsLooped (Urho3D::Sound *_target)
  2535. {
  2536. return _target->IsLooped ();
  2537. }
  2538. DllExport int
  2539. Sound_IsSixteenBit (Urho3D::Sound *_target)
  2540. {
  2541. return _target->IsSixteenBit ();
  2542. }
  2543. DllExport int
  2544. Sound_IsStereo (Urho3D::Sound *_target)
  2545. {
  2546. return _target->IsStereo ();
  2547. }
  2548. DllExport int
  2549. Sound_IsCompressed (Urho3D::Sound *_target)
  2550. {
  2551. return _target->IsCompressed ();
  2552. }
  2553. DllExport void
  2554. Sound_FixInterpolation (Urho3D::Sound *_target)
  2555. {
  2556. _target->FixInterpolation ();
  2557. }
  2558. DllExport int
  2559. SoundListener_GetType (Urho3D::SoundListener *_target)
  2560. {
  2561. return (_target->GetType ()).Value ();
  2562. }
  2563. DllExport const char *
  2564. SoundListener_GetTypeName (Urho3D::SoundListener *_target)
  2565. {
  2566. return stringdup((_target->GetTypeName ()).CString ());
  2567. }
  2568. DllExport int
  2569. SoundListener_GetTypeStatic ()
  2570. {
  2571. return (SoundListener::GetTypeStatic ()).Value ();
  2572. }
  2573. DllExport const char *
  2574. SoundListener_GetTypeNameStatic ()
  2575. {
  2576. return stringdup((SoundListener::GetTypeNameStatic ()).CString ());
  2577. }
  2578. DllExport void *
  2579. SoundListener_SoundListener (Urho3D::Context * context)
  2580. {
  2581. return WeakPtr<SoundListener>(new SoundListener(context));
  2582. }
  2583. DllExport void
  2584. SoundListener_RegisterObject (Urho3D::Context * context)
  2585. {
  2586. SoundListener::RegisterObject (context);
  2587. }
  2588. DllExport int
  2589. SoundSource_GetType (Urho3D::SoundSource *_target)
  2590. {
  2591. return (_target->GetType ()).Value ();
  2592. }
  2593. DllExport const char *
  2594. SoundSource_GetTypeName (Urho3D::SoundSource *_target)
  2595. {
  2596. return stringdup((_target->GetTypeName ()).CString ());
  2597. }
  2598. DllExport int
  2599. SoundSource_GetTypeStatic ()
  2600. {
  2601. return (SoundSource::GetTypeStatic ()).Value ();
  2602. }
  2603. DllExport const char *
  2604. SoundSource_GetTypeNameStatic ()
  2605. {
  2606. return stringdup((SoundSource::GetTypeNameStatic ()).CString ());
  2607. }
  2608. DllExport void *
  2609. SoundSource_SoundSource (Urho3D::Context * context)
  2610. {
  2611. return WeakPtr<SoundSource>(new SoundSource(context));
  2612. }
  2613. DllExport void
  2614. SoundSource_RegisterObject (Urho3D::Context * context)
  2615. {
  2616. SoundSource::RegisterObject (context);
  2617. }
  2618. DllExport void
  2619. SoundSource_Seek (Urho3D::SoundSource *_target, float seekTime)
  2620. {
  2621. _target->Seek (seekTime);
  2622. }
  2623. DllExport void
  2624. SoundSource_Play (Urho3D::SoundSource *_target, Urho3D::Sound * sound)
  2625. {
  2626. _target->Play (sound);
  2627. }
  2628. DllExport void
  2629. SoundSource_Play0 (Urho3D::SoundSource *_target, Urho3D::Sound * sound, float frequency)
  2630. {
  2631. _target->Play (sound, frequency);
  2632. }
  2633. DllExport void
  2634. SoundSource_Play1 (Urho3D::SoundSource *_target, Urho3D::Sound * sound, float frequency, float gain)
  2635. {
  2636. _target->Play (sound, frequency, gain);
  2637. }
  2638. DllExport void
  2639. SoundSource_Play2 (Urho3D::SoundSource *_target, Urho3D::Sound * sound, float frequency, float gain, float panning)
  2640. {
  2641. _target->Play (sound, frequency, gain, panning);
  2642. }
  2643. DllExport void
  2644. SoundSource_Play3 (Urho3D::SoundSource *_target, Urho3D::SoundStream * stream)
  2645. {
  2646. _target->Play (stream);
  2647. }
  2648. DllExport void
  2649. SoundSource_Stop (Urho3D::SoundSource *_target)
  2650. {
  2651. _target->Stop ();
  2652. }
  2653. DllExport void
  2654. SoundSource_SetSoundType (Urho3D::SoundSource *_target, const char * type)
  2655. {
  2656. _target->SetSoundType (Urho3D::String(type));
  2657. }
  2658. DllExport void
  2659. SoundSource_SetFrequency (Urho3D::SoundSource *_target, float frequency)
  2660. {
  2661. _target->SetFrequency (frequency);
  2662. }
  2663. DllExport void
  2664. SoundSource_SetGain (Urho3D::SoundSource *_target, float gain)
  2665. {
  2666. _target->SetGain (gain);
  2667. }
  2668. DllExport void
  2669. SoundSource_SetAttenuation (Urho3D::SoundSource *_target, float attenuation)
  2670. {
  2671. _target->SetAttenuation (attenuation);
  2672. }
  2673. DllExport void
  2674. SoundSource_SetPanning (Urho3D::SoundSource *_target, float panning)
  2675. {
  2676. _target->SetPanning (panning);
  2677. }
  2678. DllExport void
  2679. SoundSource_SetAutoRemoveMode (Urho3D::SoundSource *_target, enum Urho3D::AutoRemoveMode mode)
  2680. {
  2681. _target->SetAutoRemoveMode (mode);
  2682. }
  2683. DllExport void
  2684. SoundSource_SetPlayPosition (Urho3D::SoundSource *_target, signed char * pos)
  2685. {
  2686. _target->SetPlayPosition (pos);
  2687. }
  2688. DllExport Urho3D::Sound *
  2689. SoundSource_GetSound (Urho3D::SoundSource *_target)
  2690. {
  2691. return _target->GetSound ();
  2692. }
  2693. DllExport volatile signed char *
  2694. SoundSource_GetPlayPosition (Urho3D::SoundSource *_target)
  2695. {
  2696. return _target->GetPlayPosition ();
  2697. }
  2698. DllExport const char *
  2699. SoundSource_GetSoundType (Urho3D::SoundSource *_target)
  2700. {
  2701. return stringdup((_target->GetSoundType ()).CString ());
  2702. }
  2703. DllExport float
  2704. SoundSource_GetTimePosition (Urho3D::SoundSource *_target)
  2705. {
  2706. return _target->GetTimePosition ();
  2707. }
  2708. DllExport float
  2709. SoundSource_GetFrequency (Urho3D::SoundSource *_target)
  2710. {
  2711. return _target->GetFrequency ();
  2712. }
  2713. DllExport float
  2714. SoundSource_GetGain (Urho3D::SoundSource *_target)
  2715. {
  2716. return _target->GetGain ();
  2717. }
  2718. DllExport float
  2719. SoundSource_GetAttenuation (Urho3D::SoundSource *_target)
  2720. {
  2721. return _target->GetAttenuation ();
  2722. }
  2723. DllExport float
  2724. SoundSource_GetPanning (Urho3D::SoundSource *_target)
  2725. {
  2726. return _target->GetPanning ();
  2727. }
  2728. DllExport enum Urho3D::AutoRemoveMode
  2729. SoundSource_GetAutoRemoveMode (Urho3D::SoundSource *_target)
  2730. {
  2731. return _target->GetAutoRemoveMode ();
  2732. }
  2733. DllExport int
  2734. SoundSource_IsPlaying (Urho3D::SoundSource *_target)
  2735. {
  2736. return _target->IsPlaying ();
  2737. }
  2738. DllExport void
  2739. SoundSource_Update (Urho3D::SoundSource *_target, float timeStep)
  2740. {
  2741. _target->Update (timeStep);
  2742. }
  2743. DllExport void
  2744. SoundSource_Mix (Urho3D::SoundSource *_target, int * dest, unsigned int samples, int mixRate, bool stereo, bool interpolation)
  2745. {
  2746. _target->Mix (dest, samples, mixRate, stereo, interpolation);
  2747. }
  2748. DllExport void
  2749. SoundSource_UpdateMasterGain (Urho3D::SoundSource *_target)
  2750. {
  2751. _target->UpdateMasterGain ();
  2752. }
  2753. DllExport void
  2754. SoundSource_SetPositionAttr (Urho3D::SoundSource *_target, int value)
  2755. {
  2756. _target->SetPositionAttr (value);
  2757. }
  2758. DllExport Urho3D::ResourceRef
  2759. SoundSource_GetSoundAttr (Urho3D::SoundSource *_target)
  2760. {
  2761. return _target->GetSoundAttr ();
  2762. }
  2763. DllExport void
  2764. SoundSource_SetPlayingAttr (Urho3D::SoundSource *_target, bool value)
  2765. {
  2766. _target->SetPlayingAttr (value);
  2767. }
  2768. DllExport int
  2769. SoundSource_GetPositionAttr (Urho3D::SoundSource *_target)
  2770. {
  2771. return _target->GetPositionAttr ();
  2772. }
  2773. DllExport int
  2774. SoundSource3D_GetType (Urho3D::SoundSource3D *_target)
  2775. {
  2776. return (_target->GetType ()).Value ();
  2777. }
  2778. DllExport const char *
  2779. SoundSource3D_GetTypeName (Urho3D::SoundSource3D *_target)
  2780. {
  2781. return stringdup((_target->GetTypeName ()).CString ());
  2782. }
  2783. DllExport int
  2784. SoundSource3D_GetTypeStatic ()
  2785. {
  2786. return (SoundSource3D::GetTypeStatic ()).Value ();
  2787. }
  2788. DllExport const char *
  2789. SoundSource3D_GetTypeNameStatic ()
  2790. {
  2791. return stringdup((SoundSource3D::GetTypeNameStatic ()).CString ());
  2792. }
  2793. DllExport void *
  2794. SoundSource3D_SoundSource3D (Urho3D::Context * context)
  2795. {
  2796. return WeakPtr<SoundSource3D>(new SoundSource3D(context));
  2797. }
  2798. DllExport void
  2799. SoundSource3D_RegisterObject (Urho3D::Context * context)
  2800. {
  2801. SoundSource3D::RegisterObject (context);
  2802. }
  2803. DllExport void
  2804. SoundSource3D_DrawDebugGeometry (Urho3D::SoundSource3D *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  2805. {
  2806. _target->DrawDebugGeometry (debug, depthTest);
  2807. }
  2808. DllExport void
  2809. SoundSource3D_Update (Urho3D::SoundSource3D *_target, float timeStep)
  2810. {
  2811. _target->Update (timeStep);
  2812. }
  2813. DllExport void
  2814. SoundSource3D_SetDistanceAttenuation (Urho3D::SoundSource3D *_target, float nearDistance, float farDistance, float rolloffFactor)
  2815. {
  2816. _target->SetDistanceAttenuation (nearDistance, farDistance, rolloffFactor);
  2817. }
  2818. DllExport void
  2819. SoundSource3D_SetAngleAttenuation (Urho3D::SoundSource3D *_target, float innerAngle, float outerAngle)
  2820. {
  2821. _target->SetAngleAttenuation (innerAngle, outerAngle);
  2822. }
  2823. DllExport void
  2824. SoundSource3D_SetNearDistance (Urho3D::SoundSource3D *_target, float distance)
  2825. {
  2826. _target->SetNearDistance (distance);
  2827. }
  2828. DllExport void
  2829. SoundSource3D_SetFarDistance (Urho3D::SoundSource3D *_target, float distance)
  2830. {
  2831. _target->SetFarDistance (distance);
  2832. }
  2833. DllExport void
  2834. SoundSource3D_SetInnerAngle (Urho3D::SoundSource3D *_target, float angle)
  2835. {
  2836. _target->SetInnerAngle (angle);
  2837. }
  2838. DllExport void
  2839. SoundSource3D_SetOuterAngle (Urho3D::SoundSource3D *_target, float angle)
  2840. {
  2841. _target->SetOuterAngle (angle);
  2842. }
  2843. DllExport void
  2844. SoundSource3D_SetRolloffFactor (Urho3D::SoundSource3D *_target, float factor)
  2845. {
  2846. _target->SetRolloffFactor (factor);
  2847. }
  2848. DllExport void
  2849. SoundSource3D_CalculateAttenuation (Urho3D::SoundSource3D *_target)
  2850. {
  2851. _target->CalculateAttenuation ();
  2852. }
  2853. DllExport float
  2854. SoundSource3D_GetNearDistance (Urho3D::SoundSource3D *_target)
  2855. {
  2856. return _target->GetNearDistance ();
  2857. }
  2858. DllExport float
  2859. SoundSource3D_GetFarDistance (Urho3D::SoundSource3D *_target)
  2860. {
  2861. return _target->GetFarDistance ();
  2862. }
  2863. DllExport float
  2864. SoundSource3D_GetInnerAngle (Urho3D::SoundSource3D *_target)
  2865. {
  2866. return _target->GetInnerAngle ();
  2867. }
  2868. DllExport float
  2869. SoundSource3D_GetOuterAngle (Urho3D::SoundSource3D *_target)
  2870. {
  2871. return _target->GetOuterAngle ();
  2872. }
  2873. DllExport float
  2874. SoundSource3D_RollAngleoffFactor (Urho3D::SoundSource3D *_target)
  2875. {
  2876. return _target->RollAngleoffFactor ();
  2877. }
  2878. DllExport void *
  2879. EventReceiverGroup_EventReceiverGroup ()
  2880. {
  2881. return WeakPtr<EventReceiverGroup>(new EventReceiverGroup());
  2882. }
  2883. DllExport void
  2884. EventReceiverGroup_BeginSendEvent (Urho3D::EventReceiverGroup *_target)
  2885. {
  2886. _target->BeginSendEvent ();
  2887. }
  2888. DllExport void
  2889. EventReceiverGroup_EndSendEvent (Urho3D::EventReceiverGroup *_target)
  2890. {
  2891. _target->EndSendEvent ();
  2892. }
  2893. DllExport void
  2894. EventReceiverGroup_Add (Urho3D::EventReceiverGroup *_target, Urho3D::Object * object)
  2895. {
  2896. _target->Add (object);
  2897. }
  2898. DllExport void
  2899. EventReceiverGroup_Remove (Urho3D::EventReceiverGroup *_target, Urho3D::Object * object)
  2900. {
  2901. _target->Remove (object);
  2902. }
  2903. DllExport void *
  2904. Context_Context ()
  2905. {
  2906. return WeakPtr<Context>(new Context());
  2907. }
  2908. DllExport Urho3D::Object *
  2909. Context_CreateObject (Urho3D::Context *_target, int objectType)
  2910. {
  2911. auto copy = _target->CreateObject (Urho3D::StringHash(objectType));
  2912. auto plain = copy.Get();
  2913. copy.Detach();
  2914. delete copy;
  2915. return plain;
  2916. }
  2917. DllExport void
  2918. Context_RegisterFactory (Urho3D::Context *_target, Urho3D::ObjectFactory * factory)
  2919. {
  2920. _target->RegisterFactory (factory);
  2921. }
  2922. DllExport void
  2923. Context_RegisterSubsystem (Urho3D::Context *_target, Urho3D::Object * subsystem)
  2924. {
  2925. _target->RegisterSubsystem (subsystem);
  2926. }
  2927. DllExport void
  2928. Context_RemoveSubsystem (Urho3D::Context *_target, int objectType)
  2929. {
  2930. _target->RemoveSubsystem (Urho3D::StringHash(objectType));
  2931. }
  2932. DllExport void
  2933. Context_RemoveAllAttributes (Urho3D::Context *_target, int objectType)
  2934. {
  2935. _target->RemoveAllAttributes (Urho3D::StringHash(objectType));
  2936. }
  2937. DllExport int
  2938. Context_RequireSDL (Urho3D::Context *_target, unsigned int sdlFlags)
  2939. {
  2940. return _target->RequireSDL (sdlFlags);
  2941. }
  2942. DllExport void
  2943. Context_ReleaseSDL (Urho3D::Context *_target)
  2944. {
  2945. _target->ReleaseSDL ();
  2946. }
  2947. DllExport void
  2948. Context_CopyBaseAttributes (Urho3D::Context *_target, int baseType, int derivedType)
  2949. {
  2950. _target->CopyBaseAttributes (Urho3D::StringHash(baseType), Urho3D::StringHash(derivedType));
  2951. }
  2952. DllExport Urho3D::Object *
  2953. Context_GetSubsystem (Urho3D::Context *_target, int type)
  2954. {
  2955. return _target->GetSubsystem (Urho3D::StringHash(type));
  2956. }
  2957. // Urho3D::Variant overloads begin:
  2958. DllExport Interop::Vector3
  2959. Context_GetGlobalVar_0 (Urho3D::Context *_target, int key)
  2960. {
  2961. return *((Interop::Vector3 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetVector3()));
  2962. }
  2963. DllExport Interop::IntRect
  2964. Context_GetGlobalVar_1 (Urho3D::Context *_target, int key)
  2965. {
  2966. return *((Interop::IntRect *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetIntRect()));
  2967. }
  2968. DllExport Interop::Color
  2969. Context_GetGlobalVar_2 (Urho3D::Context *_target, int key)
  2970. {
  2971. return *((Interop::Color *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetColor()));
  2972. }
  2973. DllExport Interop::Vector2
  2974. Context_GetGlobalVar_3 (Urho3D::Context *_target, int key)
  2975. {
  2976. return *((Interop::Vector2 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetVector2()));
  2977. }
  2978. DllExport Interop::Vector4
  2979. Context_GetGlobalVar_4 (Urho3D::Context *_target, int key)
  2980. {
  2981. return *((Interop::Vector4 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetVector4()));
  2982. }
  2983. DllExport Interop::IntVector2
  2984. Context_GetGlobalVar_5 (Urho3D::Context *_target, int key)
  2985. {
  2986. return *((Interop::IntVector2 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetIntVector2()));
  2987. }
  2988. DllExport Interop::Quaternion
  2989. Context_GetGlobalVar_6 (Urho3D::Context *_target, int key)
  2990. {
  2991. return *((Interop::Quaternion *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetQuaternion()));
  2992. }
  2993. DllExport Interop::Matrix4
  2994. Context_GetGlobalVar_7 (Urho3D::Context *_target, int key)
  2995. {
  2996. return *((Interop::Matrix4 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetMatrix4()));
  2997. }
  2998. DllExport Interop::Matrix3x4
  2999. Context_GetGlobalVar_8 (Urho3D::Context *_target, int key)
  3000. {
  3001. return *((Interop::Matrix3x4 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetMatrix3x4()));
  3002. }
  3003. DllExport int
  3004. Context_GetGlobalVar_9 (Urho3D::Context *_target, int key)
  3005. {
  3006. return (_target->GetGlobalVar (Urho3D::StringHash(key)).GetInt());
  3007. }
  3008. DllExport float
  3009. Context_GetGlobalVar_10 (Urho3D::Context *_target, int key)
  3010. {
  3011. return (_target->GetGlobalVar (Urho3D::StringHash(key)).GetFloat());
  3012. }
  3013. DllExport const char *
  3014. Context_GetGlobalVar_11 (Urho3D::Context *_target, int key)
  3015. {
  3016. return stringdup(_target->GetGlobalVar (Urho3D::StringHash(key)).GetString().CString());
  3017. }
  3018. DllExport bool
  3019. Context_GetGlobalVar_12 (Urho3D::Context *_target, int key)
  3020. {
  3021. return (_target->GetGlobalVar (Urho3D::StringHash(key)).GetBool());
  3022. }
  3023. // Urho3D::Variant overloads end.
  3024. // Urho3D::Variant overloads begin:
  3025. DllExport void
  3026. Context_SetGlobalVar_0 (Urho3D::Context *_target, int key, const class Urho3D::Vector3 & value)
  3027. {
  3028. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  3029. }
  3030. DllExport void
  3031. Context_SetGlobalVar_1 (Urho3D::Context *_target, int key, const class Urho3D::IntRect & value)
  3032. {
  3033. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  3034. }
  3035. DllExport void
  3036. Context_SetGlobalVar_2 (Urho3D::Context *_target, int key, const class Urho3D::Color & value)
  3037. {
  3038. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  3039. }
  3040. DllExport void
  3041. Context_SetGlobalVar_3 (Urho3D::Context *_target, int key, const class Urho3D::Vector2 & value)
  3042. {
  3043. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  3044. }
  3045. DllExport void
  3046. Context_SetGlobalVar_4 (Urho3D::Context *_target, int key, const class Urho3D::Vector4 & value)
  3047. {
  3048. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  3049. }
  3050. DllExport void
  3051. Context_SetGlobalVar_5 (Urho3D::Context *_target, int key, const class Urho3D::IntVector2 & value)
  3052. {
  3053. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  3054. }
  3055. DllExport void
  3056. Context_SetGlobalVar_6 (Urho3D::Context *_target, int key, const class Urho3D::Quaternion & value)
  3057. {
  3058. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  3059. }
  3060. DllExport void
  3061. Context_SetGlobalVar_7 (Urho3D::Context *_target, int key, const class Urho3D::Matrix4 & value)
  3062. {
  3063. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  3064. }
  3065. DllExport void
  3066. Context_SetGlobalVar_8 (Urho3D::Context *_target, int key, const class Urho3D::Matrix3x4 & value)
  3067. {
  3068. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  3069. }
  3070. DllExport void
  3071. Context_SetGlobalVar_9 (Urho3D::Context *_target, int key, int value)
  3072. {
  3073. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  3074. }
  3075. DllExport void
  3076. Context_SetGlobalVar_10 (Urho3D::Context *_target, int key, float value)
  3077. {
  3078. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  3079. }
  3080. DllExport void
  3081. Context_SetGlobalVar_11 (Urho3D::Context *_target, int key, const char * value)
  3082. {
  3083. _target->SetGlobalVar (Urho3D::StringHash(key), Urho3D::String(value));
  3084. }
  3085. DllExport void
  3086. Context_SetGlobalVar_12 (Urho3D::Context *_target, int key, bool value)
  3087. {
  3088. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  3089. }
  3090. // Urho3D::Variant overloads end.
  3091. DllExport Urho3D::Object *
  3092. Context_GetEventSender (Urho3D::Context *_target)
  3093. {
  3094. return _target->GetEventSender ();
  3095. }
  3096. DllExport Urho3D::EventHandler *
  3097. Context_GetEventHandler (Urho3D::Context *_target)
  3098. {
  3099. return _target->GetEventHandler ();
  3100. }
  3101. DllExport const char *
  3102. Context_GetTypeName (Urho3D::Context *_target, int objectType)
  3103. {
  3104. return stringdup((_target->GetTypeName (Urho3D::StringHash(objectType))).CString ());
  3105. }
  3106. DllExport Urho3D::EventReceiverGroup *
  3107. Context_GetEventReceivers (Urho3D::Context *_target, Urho3D::Object * sender, int eventType)
  3108. {
  3109. return _target->GetEventReceivers (sender, Urho3D::StringHash(eventType));
  3110. }
  3111. DllExport Urho3D::EventReceiverGroup *
  3112. Context_GetEventReceivers0 (Urho3D::Context *_target, int eventType)
  3113. {
  3114. return _target->GetEventReceivers (Urho3D::StringHash(eventType));
  3115. }
  3116. DllExport int
  3117. Profiler_GetType (Urho3D::Profiler *_target)
  3118. {
  3119. return (_target->GetType ()).Value ();
  3120. }
  3121. DllExport const char *
  3122. Profiler_GetTypeName (Urho3D::Profiler *_target)
  3123. {
  3124. return stringdup((_target->GetTypeName ()).CString ());
  3125. }
  3126. DllExport int
  3127. Profiler_GetTypeStatic ()
  3128. {
  3129. return (Profiler::GetTypeStatic ()).Value ();
  3130. }
  3131. DllExport const char *
  3132. Profiler_GetTypeNameStatic ()
  3133. {
  3134. return stringdup((Profiler::GetTypeNameStatic ()).CString ());
  3135. }
  3136. DllExport void *
  3137. Profiler_Profiler (Urho3D::Context * context)
  3138. {
  3139. return WeakPtr<Profiler>(new Profiler(context));
  3140. }
  3141. DllExport void
  3142. Profiler_EndBlock (Urho3D::Profiler *_target)
  3143. {
  3144. _target->EndBlock ();
  3145. }
  3146. DllExport void
  3147. Profiler_BeginFrame (Urho3D::Profiler *_target)
  3148. {
  3149. _target->BeginFrame ();
  3150. }
  3151. DllExport void
  3152. Profiler_EndFrame (Urho3D::Profiler *_target)
  3153. {
  3154. _target->EndFrame ();
  3155. }
  3156. DllExport void
  3157. Profiler_BeginInterval (Urho3D::Profiler *_target)
  3158. {
  3159. _target->BeginInterval ();
  3160. }
  3161. DllExport const char *
  3162. Profiler_PrintData (Urho3D::Profiler *_target, bool showUnused, bool showTotal, unsigned int maxDepth)
  3163. {
  3164. return stringdup((_target->PrintData (showUnused, showTotal, maxDepth)).CString ());
  3165. }
  3166. DllExport const class Urho3D::ProfilerBlock *
  3167. Profiler_GetCurrentBlock (Urho3D::Profiler *_target)
  3168. {
  3169. return _target->GetCurrentBlock ();
  3170. }
  3171. DllExport const class Urho3D::ProfilerBlock *
  3172. Profiler_GetRootBlock (Urho3D::Profiler *_target)
  3173. {
  3174. return _target->GetRootBlock ();
  3175. }
  3176. DllExport void *
  3177. Spline_Spline ()
  3178. {
  3179. return new Spline();
  3180. }
  3181. DllExport void *
  3182. Spline_Spline0 (enum Urho3D::InterpolationMode mode)
  3183. {
  3184. return new Spline(mode);
  3185. }
  3186. DllExport enum Urho3D::InterpolationMode
  3187. Spline_GetInterpolationMode (Urho3D::Spline *_target)
  3188. {
  3189. return _target->GetInterpolationMode ();
  3190. }
  3191. DllExport Urho3D::Variant
  3192. Spline_GetKnot (Urho3D::Spline *_target, unsigned int index)
  3193. {
  3194. return _target->GetKnot (index);
  3195. }
  3196. DllExport Urho3D::Variant
  3197. Spline_GetPoint (Urho3D::Spline *_target, float f)
  3198. {
  3199. return _target->GetPoint (f);
  3200. }
  3201. DllExport void
  3202. Spline_SetInterpolationMode (Urho3D::Spline *_target, enum Urho3D::InterpolationMode interpolationMode)
  3203. {
  3204. _target->SetInterpolationMode (interpolationMode);
  3205. }
  3206. // Urho3D::Variant overloads begin:
  3207. DllExport void
  3208. Spline_SetKnot_0 (Urho3D::Spline *_target, const class Urho3D::Vector3 & knot, unsigned int index)
  3209. {
  3210. _target->SetKnot ((knot), index);
  3211. }
  3212. DllExport void
  3213. Spline_SetKnot_1 (Urho3D::Spline *_target, const class Urho3D::IntRect & knot, unsigned int index)
  3214. {
  3215. _target->SetKnot ((knot), index);
  3216. }
  3217. DllExport void
  3218. Spline_SetKnot_2 (Urho3D::Spline *_target, const class Urho3D::Color & knot, unsigned int index)
  3219. {
  3220. _target->SetKnot ((knot), index);
  3221. }
  3222. DllExport void
  3223. Spline_SetKnot_3 (Urho3D::Spline *_target, const class Urho3D::Vector2 & knot, unsigned int index)
  3224. {
  3225. _target->SetKnot ((knot), index);
  3226. }
  3227. DllExport void
  3228. Spline_SetKnot_4 (Urho3D::Spline *_target, const class Urho3D::Vector4 & knot, unsigned int index)
  3229. {
  3230. _target->SetKnot ((knot), index);
  3231. }
  3232. DllExport void
  3233. Spline_SetKnot_5 (Urho3D::Spline *_target, const class Urho3D::IntVector2 & knot, unsigned int index)
  3234. {
  3235. _target->SetKnot ((knot), index);
  3236. }
  3237. DllExport void
  3238. Spline_SetKnot_6 (Urho3D::Spline *_target, const class Urho3D::Quaternion & knot, unsigned int index)
  3239. {
  3240. _target->SetKnot ((knot), index);
  3241. }
  3242. DllExport void
  3243. Spline_SetKnot_7 (Urho3D::Spline *_target, const class Urho3D::Matrix4 & knot, unsigned int index)
  3244. {
  3245. _target->SetKnot ((knot), index);
  3246. }
  3247. DllExport void
  3248. Spline_SetKnot_8 (Urho3D::Spline *_target, const class Urho3D::Matrix3x4 & knot, unsigned int index)
  3249. {
  3250. _target->SetKnot ((knot), index);
  3251. }
  3252. DllExport void
  3253. Spline_SetKnot_9 (Urho3D::Spline *_target, int knot, unsigned int index)
  3254. {
  3255. _target->SetKnot ((knot), index);
  3256. }
  3257. DllExport void
  3258. Spline_SetKnot_10 (Urho3D::Spline *_target, float knot, unsigned int index)
  3259. {
  3260. _target->SetKnot ((knot), index);
  3261. }
  3262. DllExport void
  3263. Spline_SetKnot_11 (Urho3D::Spline *_target, const char * knot, unsigned int index)
  3264. {
  3265. _target->SetKnot (Urho3D::String(knot), index);
  3266. }
  3267. DllExport void
  3268. Spline_SetKnot_12 (Urho3D::Spline *_target, bool knot, unsigned int index)
  3269. {
  3270. _target->SetKnot ((knot), index);
  3271. }
  3272. // Urho3D::Variant overloads end.
  3273. // Urho3D::Variant overloads begin:
  3274. DllExport void
  3275. Spline_AddKnot_0 (Urho3D::Spline *_target, const class Urho3D::Vector3 & knot)
  3276. {
  3277. _target->AddKnot ((knot));
  3278. }
  3279. DllExport void
  3280. Spline_AddKnot_1 (Urho3D::Spline *_target, const class Urho3D::IntRect & knot)
  3281. {
  3282. _target->AddKnot ((knot));
  3283. }
  3284. DllExport void
  3285. Spline_AddKnot_2 (Urho3D::Spline *_target, const class Urho3D::Color & knot)
  3286. {
  3287. _target->AddKnot ((knot));
  3288. }
  3289. DllExport void
  3290. Spline_AddKnot_3 (Urho3D::Spline *_target, const class Urho3D::Vector2 & knot)
  3291. {
  3292. _target->AddKnot ((knot));
  3293. }
  3294. DllExport void
  3295. Spline_AddKnot_4 (Urho3D::Spline *_target, const class Urho3D::Vector4 & knot)
  3296. {
  3297. _target->AddKnot ((knot));
  3298. }
  3299. DllExport void
  3300. Spline_AddKnot_5 (Urho3D::Spline *_target, const class Urho3D::IntVector2 & knot)
  3301. {
  3302. _target->AddKnot ((knot));
  3303. }
  3304. DllExport void
  3305. Spline_AddKnot_6 (Urho3D::Spline *_target, const class Urho3D::Quaternion & knot)
  3306. {
  3307. _target->AddKnot ((knot));
  3308. }
  3309. DllExport void
  3310. Spline_AddKnot_7 (Urho3D::Spline *_target, const class Urho3D::Matrix4 & knot)
  3311. {
  3312. _target->AddKnot ((knot));
  3313. }
  3314. DllExport void
  3315. Spline_AddKnot_8 (Urho3D::Spline *_target, const class Urho3D::Matrix3x4 & knot)
  3316. {
  3317. _target->AddKnot ((knot));
  3318. }
  3319. DllExport void
  3320. Spline_AddKnot_9 (Urho3D::Spline *_target, int knot)
  3321. {
  3322. _target->AddKnot ((knot));
  3323. }
  3324. DllExport void
  3325. Spline_AddKnot_10 (Urho3D::Spline *_target, float knot)
  3326. {
  3327. _target->AddKnot ((knot));
  3328. }
  3329. DllExport void
  3330. Spline_AddKnot_11 (Urho3D::Spline *_target, const char * knot)
  3331. {
  3332. _target->AddKnot (Urho3D::String(knot));
  3333. }
  3334. DllExport void
  3335. Spline_AddKnot_12 (Urho3D::Spline *_target, bool knot)
  3336. {
  3337. _target->AddKnot ((knot));
  3338. }
  3339. // Urho3D::Variant overloads end.
  3340. // Urho3D::Variant overloads begin:
  3341. DllExport void
  3342. Spline_AddKnot1_0 (Urho3D::Spline *_target, const class Urho3D::Vector3 & knot, unsigned int index)
  3343. {
  3344. _target->AddKnot ((knot), index);
  3345. }
  3346. DllExport void
  3347. Spline_AddKnot1_1 (Urho3D::Spline *_target, const class Urho3D::IntRect & knot, unsigned int index)
  3348. {
  3349. _target->AddKnot ((knot), index);
  3350. }
  3351. DllExport void
  3352. Spline_AddKnot1_2 (Urho3D::Spline *_target, const class Urho3D::Color & knot, unsigned int index)
  3353. {
  3354. _target->AddKnot ((knot), index);
  3355. }
  3356. DllExport void
  3357. Spline_AddKnot1_3 (Urho3D::Spline *_target, const class Urho3D::Vector2 & knot, unsigned int index)
  3358. {
  3359. _target->AddKnot ((knot), index);
  3360. }
  3361. DllExport void
  3362. Spline_AddKnot1_4 (Urho3D::Spline *_target, const class Urho3D::Vector4 & knot, unsigned int index)
  3363. {
  3364. _target->AddKnot ((knot), index);
  3365. }
  3366. DllExport void
  3367. Spline_AddKnot1_5 (Urho3D::Spline *_target, const class Urho3D::IntVector2 & knot, unsigned int index)
  3368. {
  3369. _target->AddKnot ((knot), index);
  3370. }
  3371. DllExport void
  3372. Spline_AddKnot1_6 (Urho3D::Spline *_target, const class Urho3D::Quaternion & knot, unsigned int index)
  3373. {
  3374. _target->AddKnot ((knot), index);
  3375. }
  3376. DllExport void
  3377. Spline_AddKnot1_7 (Urho3D::Spline *_target, const class Urho3D::Matrix4 & knot, unsigned int index)
  3378. {
  3379. _target->AddKnot ((knot), index);
  3380. }
  3381. DllExport void
  3382. Spline_AddKnot1_8 (Urho3D::Spline *_target, const class Urho3D::Matrix3x4 & knot, unsigned int index)
  3383. {
  3384. _target->AddKnot ((knot), index);
  3385. }
  3386. DllExport void
  3387. Spline_AddKnot1_9 (Urho3D::Spline *_target, int knot, unsigned int index)
  3388. {
  3389. _target->AddKnot ((knot), index);
  3390. }
  3391. DllExport void
  3392. Spline_AddKnot1_10 (Urho3D::Spline *_target, float knot, unsigned int index)
  3393. {
  3394. _target->AddKnot ((knot), index);
  3395. }
  3396. DllExport void
  3397. Spline_AddKnot1_11 (Urho3D::Spline *_target, const char * knot, unsigned int index)
  3398. {
  3399. _target->AddKnot (Urho3D::String(knot), index);
  3400. }
  3401. DllExport void
  3402. Spline_AddKnot1_12 (Urho3D::Spline *_target, bool knot, unsigned int index)
  3403. {
  3404. _target->AddKnot ((knot), index);
  3405. }
  3406. // Urho3D::Variant overloads end.
  3407. DllExport void
  3408. Spline_RemoveKnot (Urho3D::Spline *_target)
  3409. {
  3410. _target->RemoveKnot ();
  3411. }
  3412. DllExport void
  3413. Spline_RemoveKnot2 (Urho3D::Spline *_target, unsigned int index)
  3414. {
  3415. _target->RemoveKnot (index);
  3416. }
  3417. DllExport void
  3418. Spline_Clear (Urho3D::Spline *_target)
  3419. {
  3420. _target->Clear ();
  3421. }
  3422. DllExport void *
  3423. WorkItem_WorkItem ()
  3424. {
  3425. return WeakPtr<WorkItem>(new WorkItem());
  3426. }
  3427. DllExport int
  3428. WorkQueue_GetType (Urho3D::WorkQueue *_target)
  3429. {
  3430. return (_target->GetType ()).Value ();
  3431. }
  3432. DllExport const char *
  3433. WorkQueue_GetTypeName (Urho3D::WorkQueue *_target)
  3434. {
  3435. return stringdup((_target->GetTypeName ()).CString ());
  3436. }
  3437. DllExport int
  3438. WorkQueue_GetTypeStatic ()
  3439. {
  3440. return (WorkQueue::GetTypeStatic ()).Value ();
  3441. }
  3442. DllExport const char *
  3443. WorkQueue_GetTypeNameStatic ()
  3444. {
  3445. return stringdup((WorkQueue::GetTypeNameStatic ()).CString ());
  3446. }
  3447. DllExport void *
  3448. WorkQueue_WorkQueue (Urho3D::Context * context)
  3449. {
  3450. return WeakPtr<WorkQueue>(new WorkQueue(context));
  3451. }
  3452. DllExport void
  3453. WorkQueue_CreateThreads (Urho3D::WorkQueue *_target, unsigned int numThreads)
  3454. {
  3455. _target->CreateThreads (numThreads);
  3456. }
  3457. DllExport Urho3D::WorkItem *
  3458. WorkQueue_GetFreeItem (Urho3D::WorkQueue *_target)
  3459. {
  3460. auto copy = _target->GetFreeItem ();
  3461. auto plain = copy.Get();
  3462. copy.Detach();
  3463. delete copy;
  3464. return plain;
  3465. }
  3466. DllExport void
  3467. WorkQueue_Pause (Urho3D::WorkQueue *_target)
  3468. {
  3469. _target->Pause ();
  3470. }
  3471. DllExport void
  3472. WorkQueue_Resume (Urho3D::WorkQueue *_target)
  3473. {
  3474. _target->Resume ();
  3475. }
  3476. DllExport void
  3477. WorkQueue_Complete (Urho3D::WorkQueue *_target, unsigned int priority)
  3478. {
  3479. _target->Complete (priority);
  3480. }
  3481. DllExport void
  3482. WorkQueue_SetTolerance (Urho3D::WorkQueue *_target, int tolerance)
  3483. {
  3484. _target->SetTolerance (tolerance);
  3485. }
  3486. DllExport void
  3487. WorkQueue_SetNonThreadedWorkMs (Urho3D::WorkQueue *_target, int ms)
  3488. {
  3489. _target->SetNonThreadedWorkMs (ms);
  3490. }
  3491. DllExport unsigned int
  3492. WorkQueue_GetNumThreads (Urho3D::WorkQueue *_target)
  3493. {
  3494. return _target->GetNumThreads ();
  3495. }
  3496. DllExport int
  3497. WorkQueue_IsCompleted (Urho3D::WorkQueue *_target, unsigned int priority)
  3498. {
  3499. return _target->IsCompleted (priority);
  3500. }
  3501. DllExport int
  3502. WorkQueue_IsCompleting (Urho3D::WorkQueue *_target)
  3503. {
  3504. return _target->IsCompleting ();
  3505. }
  3506. DllExport int
  3507. WorkQueue_GetTolerance (Urho3D::WorkQueue *_target)
  3508. {
  3509. return _target->GetTolerance ();
  3510. }
  3511. DllExport int
  3512. WorkQueue_GetNonThreadedWorkMs (Urho3D::WorkQueue *_target)
  3513. {
  3514. return _target->GetNonThreadedWorkMs ();
  3515. }
  3516. DllExport int
  3517. Engine_GetType (Urho3D::Engine *_target)
  3518. {
  3519. return (_target->GetType ()).Value ();
  3520. }
  3521. DllExport const char *
  3522. Engine_GetTypeName (Urho3D::Engine *_target)
  3523. {
  3524. return stringdup((_target->GetTypeName ()).CString ());
  3525. }
  3526. DllExport int
  3527. Engine_GetTypeStatic ()
  3528. {
  3529. return (Engine::GetTypeStatic ()).Value ();
  3530. }
  3531. DllExport const char *
  3532. Engine_GetTypeNameStatic ()
  3533. {
  3534. return stringdup((Engine::GetTypeNameStatic ()).CString ());
  3535. }
  3536. DllExport void *
  3537. Engine_Engine (Urho3D::Context * context)
  3538. {
  3539. return WeakPtr<Engine>(new Engine(context));
  3540. }
  3541. DllExport int
  3542. Engine_RunFrame (Urho3D::Engine *_target)
  3543. {
  3544. return _target->RunFrame ();
  3545. }
  3546. DllExport Urho3D::Console *
  3547. Engine_CreateConsole (Urho3D::Engine *_target)
  3548. {
  3549. return _target->CreateConsole ();
  3550. }
  3551. DllExport Urho3D::DebugHud *
  3552. Engine_CreateDebugHud (Urho3D::Engine *_target)
  3553. {
  3554. return _target->CreateDebugHud ();
  3555. }
  3556. DllExport void
  3557. Engine_SetMinFps (Urho3D::Engine *_target, int fps)
  3558. {
  3559. _target->SetMinFps (fps);
  3560. }
  3561. DllExport void
  3562. Engine_SetMaxFps (Urho3D::Engine *_target, int fps)
  3563. {
  3564. _target->SetMaxFps (fps);
  3565. }
  3566. DllExport void
  3567. Engine_SetMaxInactiveFps (Urho3D::Engine *_target, int fps)
  3568. {
  3569. _target->SetMaxInactiveFps (fps);
  3570. }
  3571. DllExport void
  3572. Engine_SetTimeStepSmoothing (Urho3D::Engine *_target, int frames)
  3573. {
  3574. _target->SetTimeStepSmoothing (frames);
  3575. }
  3576. DllExport void
  3577. Engine_SetPauseMinimized (Urho3D::Engine *_target, bool enable)
  3578. {
  3579. _target->SetPauseMinimized (enable);
  3580. }
  3581. DllExport void
  3582. Engine_SetAutoExit (Urho3D::Engine *_target, bool enable)
  3583. {
  3584. _target->SetAutoExit (enable);
  3585. }
  3586. DllExport void
  3587. Engine_SetNextTimeStep (Urho3D::Engine *_target, float seconds)
  3588. {
  3589. _target->SetNextTimeStep (seconds);
  3590. }
  3591. DllExport void
  3592. Engine_Exit (Urho3D::Engine *_target)
  3593. {
  3594. _target->Exit ();
  3595. }
  3596. DllExport void
  3597. Engine_DumpProfiler (Urho3D::Engine *_target)
  3598. {
  3599. _target->DumpProfiler ();
  3600. }
  3601. DllExport void
  3602. Engine_DumpResources (Urho3D::Engine *_target, bool dumpFileName)
  3603. {
  3604. _target->DumpResources (dumpFileName);
  3605. }
  3606. DllExport void
  3607. Engine_DumpMemory (Urho3D::Engine *_target)
  3608. {
  3609. _target->DumpMemory ();
  3610. }
  3611. DllExport float
  3612. Engine_GetNextTimeStep (Urho3D::Engine *_target)
  3613. {
  3614. return _target->GetNextTimeStep ();
  3615. }
  3616. DllExport int
  3617. Engine_GetMinFps (Urho3D::Engine *_target)
  3618. {
  3619. return _target->GetMinFps ();
  3620. }
  3621. DllExport int
  3622. Engine_GetMaxFps (Urho3D::Engine *_target)
  3623. {
  3624. return _target->GetMaxFps ();
  3625. }
  3626. DllExport int
  3627. Engine_GetMaxInactiveFps (Urho3D::Engine *_target)
  3628. {
  3629. return _target->GetMaxInactiveFps ();
  3630. }
  3631. DllExport int
  3632. Engine_GetTimeStepSmoothing (Urho3D::Engine *_target)
  3633. {
  3634. return _target->GetTimeStepSmoothing ();
  3635. }
  3636. DllExport int
  3637. Engine_GetPauseMinimized (Urho3D::Engine *_target)
  3638. {
  3639. return _target->GetPauseMinimized ();
  3640. }
  3641. DllExport int
  3642. Engine_GetAutoExit (Urho3D::Engine *_target)
  3643. {
  3644. return _target->GetAutoExit ();
  3645. }
  3646. DllExport int
  3647. Engine_IsInitialized (Urho3D::Engine *_target)
  3648. {
  3649. return _target->IsInitialized ();
  3650. }
  3651. DllExport int
  3652. Engine_IsExiting (Urho3D::Engine *_target)
  3653. {
  3654. return _target->IsExiting ();
  3655. }
  3656. DllExport int
  3657. Engine_IsHeadless (Urho3D::Engine *_target)
  3658. {
  3659. return _target->IsHeadless ();
  3660. }
  3661. DllExport void
  3662. Engine_Update (Urho3D::Engine *_target)
  3663. {
  3664. _target->Update ();
  3665. }
  3666. DllExport void
  3667. Engine_Render (Urho3D::Engine *_target)
  3668. {
  3669. _target->Render ();
  3670. }
  3671. DllExport int
  3672. Engine_ApplyFrameLimit (Urho3D::Engine *_target)
  3673. {
  3674. return _target->ApplyFrameLimit ();
  3675. }
  3676. DllExport int
  3677. Application_GetType (Urho3D::Application *_target)
  3678. {
  3679. return (_target->GetType ()).Value ();
  3680. }
  3681. DllExport const char *
  3682. Application_GetTypeName (Urho3D::Application *_target)
  3683. {
  3684. return stringdup((_target->GetTypeName ()).CString ());
  3685. }
  3686. DllExport int
  3687. Application_GetTypeStatic ()
  3688. {
  3689. return (Application::GetTypeStatic ()).Value ();
  3690. }
  3691. DllExport const char *
  3692. Application_GetTypeNameStatic ()
  3693. {
  3694. return stringdup((Application::GetTypeNameStatic ()).CString ());
  3695. }
  3696. DllExport int
  3697. Application_Run (Urho3D::Application *_target)
  3698. {
  3699. return _target->Run ();
  3700. }
  3701. DllExport void
  3702. Application_ErrorExit (Urho3D::Application *_target, const char * message)
  3703. {
  3704. _target->ErrorExit (Urho3D::String(message));
  3705. }
  3706. DllExport int
  3707. UrhoConsole_GetType (Urho3D::Console *_target)
  3708. {
  3709. return (_target->GetType ()).Value ();
  3710. }
  3711. DllExport const char *
  3712. UrhoConsole_GetTypeName (Urho3D::Console *_target)
  3713. {
  3714. return stringdup((_target->GetTypeName ()).CString ());
  3715. }
  3716. DllExport int
  3717. UrhoConsole_GetTypeStatic ()
  3718. {
  3719. return (Console::GetTypeStatic ()).Value ();
  3720. }
  3721. DllExport const char *
  3722. UrhoConsole_GetTypeNameStatic ()
  3723. {
  3724. return stringdup((Console::GetTypeNameStatic ()).CString ());
  3725. }
  3726. DllExport void *
  3727. UrhoConsole_Console (Urho3D::Context * context)
  3728. {
  3729. return WeakPtr<Console>(new Console(context));
  3730. }
  3731. DllExport void
  3732. UrhoConsole_SetDefaultStyle (Urho3D::Console *_target, Urho3D::XMLFile * style)
  3733. {
  3734. _target->SetDefaultStyle (style);
  3735. }
  3736. DllExport void
  3737. UrhoConsole_SetVisible (Urho3D::Console *_target, bool enable)
  3738. {
  3739. _target->SetVisible (enable);
  3740. }
  3741. DllExport void
  3742. UrhoConsole_Toggle (Urho3D::Console *_target)
  3743. {
  3744. _target->Toggle ();
  3745. }
  3746. DllExport void
  3747. UrhoConsole_SetAutoVisibleOnError (Urho3D::Console *_target, bool enable)
  3748. {
  3749. _target->SetAutoVisibleOnError (enable);
  3750. }
  3751. DllExport void
  3752. UrhoConsole_SetCommandInterpreter (Urho3D::Console *_target, const char * interpreter)
  3753. {
  3754. _target->SetCommandInterpreter (Urho3D::String(interpreter));
  3755. }
  3756. DllExport void
  3757. UrhoConsole_SetNumBufferedRows (Urho3D::Console *_target, unsigned int rows)
  3758. {
  3759. _target->SetNumBufferedRows (rows);
  3760. }
  3761. DllExport void
  3762. UrhoConsole_SetNumRows (Urho3D::Console *_target, unsigned int rows)
  3763. {
  3764. _target->SetNumRows (rows);
  3765. }
  3766. DllExport void
  3767. UrhoConsole_SetNumHistoryRows (Urho3D::Console *_target, unsigned int rows)
  3768. {
  3769. _target->SetNumHistoryRows (rows);
  3770. }
  3771. DllExport void
  3772. UrhoConsole_SetFocusOnShow (Urho3D::Console *_target, bool enable)
  3773. {
  3774. _target->SetFocusOnShow (enable);
  3775. }
  3776. DllExport void
  3777. UrhoConsole_AddAutoComplete (Urho3D::Console *_target, const char * option)
  3778. {
  3779. _target->AddAutoComplete (Urho3D::String(option));
  3780. }
  3781. DllExport void
  3782. UrhoConsole_RemoveAutoComplete (Urho3D::Console *_target, const char * option)
  3783. {
  3784. _target->RemoveAutoComplete (Urho3D::String(option));
  3785. }
  3786. DllExport void
  3787. UrhoConsole_UpdateElements (Urho3D::Console *_target)
  3788. {
  3789. _target->UpdateElements ();
  3790. }
  3791. DllExport Urho3D::XMLFile *
  3792. UrhoConsole_GetDefaultStyle (Urho3D::Console *_target)
  3793. {
  3794. return _target->GetDefaultStyle ();
  3795. }
  3796. DllExport Urho3D::BorderImage *
  3797. UrhoConsole_GetBackground (Urho3D::Console *_target)
  3798. {
  3799. return _target->GetBackground ();
  3800. }
  3801. DllExport Urho3D::LineEdit *
  3802. UrhoConsole_GetLineEdit (Urho3D::Console *_target)
  3803. {
  3804. return _target->GetLineEdit ();
  3805. }
  3806. DllExport Urho3D::Button *
  3807. UrhoConsole_GetCloseButton (Urho3D::Console *_target)
  3808. {
  3809. return _target->GetCloseButton ();
  3810. }
  3811. DllExport int
  3812. UrhoConsole_IsVisible (Urho3D::Console *_target)
  3813. {
  3814. return _target->IsVisible ();
  3815. }
  3816. DllExport int
  3817. UrhoConsole_IsAutoVisibleOnError (Urho3D::Console *_target)
  3818. {
  3819. return _target->IsAutoVisibleOnError ();
  3820. }
  3821. DllExport const char *
  3822. UrhoConsole_GetCommandInterpreter (Urho3D::Console *_target)
  3823. {
  3824. return stringdup((_target->GetCommandInterpreter ()).CString ());
  3825. }
  3826. DllExport unsigned int
  3827. UrhoConsole_GetNumBufferedRows (Urho3D::Console *_target)
  3828. {
  3829. return _target->GetNumBufferedRows ();
  3830. }
  3831. DllExport unsigned int
  3832. UrhoConsole_GetNumRows (Urho3D::Console *_target)
  3833. {
  3834. return _target->GetNumRows ();
  3835. }
  3836. DllExport void
  3837. UrhoConsole_CopySelectedRows (Urho3D::Console *_target)
  3838. {
  3839. _target->CopySelectedRows ();
  3840. }
  3841. DllExport unsigned int
  3842. UrhoConsole_GetNumHistoryRows (Urho3D::Console *_target)
  3843. {
  3844. return _target->GetNumHistoryRows ();
  3845. }
  3846. DllExport unsigned int
  3847. UrhoConsole_GetHistoryPosition (Urho3D::Console *_target)
  3848. {
  3849. return _target->GetHistoryPosition ();
  3850. }
  3851. DllExport const char *
  3852. UrhoConsole_GetHistoryRow (Urho3D::Console *_target, unsigned int index)
  3853. {
  3854. return stringdup((_target->GetHistoryRow (index)).CString ());
  3855. }
  3856. DllExport int
  3857. UrhoConsole_GetFocusOnShow (Urho3D::Console *_target)
  3858. {
  3859. return _target->GetFocusOnShow ();
  3860. }
  3861. DllExport int
  3862. DebugHud_GetType (Urho3D::DebugHud *_target)
  3863. {
  3864. return (_target->GetType ()).Value ();
  3865. }
  3866. DllExport const char *
  3867. DebugHud_GetTypeName (Urho3D::DebugHud *_target)
  3868. {
  3869. return stringdup((_target->GetTypeName ()).CString ());
  3870. }
  3871. DllExport int
  3872. DebugHud_GetTypeStatic ()
  3873. {
  3874. return (DebugHud::GetTypeStatic ()).Value ();
  3875. }
  3876. DllExport const char *
  3877. DebugHud_GetTypeNameStatic ()
  3878. {
  3879. return stringdup((DebugHud::GetTypeNameStatic ()).CString ());
  3880. }
  3881. DllExport void *
  3882. DebugHud_DebugHud (Urho3D::Context * context)
  3883. {
  3884. return WeakPtr<DebugHud>(new DebugHud(context));
  3885. }
  3886. DllExport void
  3887. DebugHud_Update (Urho3D::DebugHud *_target)
  3888. {
  3889. _target->Update ();
  3890. }
  3891. DllExport void
  3892. DebugHud_SetDefaultStyle (Urho3D::DebugHud *_target, Urho3D::XMLFile * style)
  3893. {
  3894. _target->SetDefaultStyle (style);
  3895. }
  3896. DllExport void
  3897. DebugHud_SetMode (Urho3D::DebugHud *_target, unsigned int mode)
  3898. {
  3899. _target->SetMode (mode);
  3900. }
  3901. DllExport void
  3902. DebugHud_SetProfilerMaxDepth (Urho3D::DebugHud *_target, unsigned int depth)
  3903. {
  3904. _target->SetProfilerMaxDepth (depth);
  3905. }
  3906. DllExport void
  3907. DebugHud_SetProfilerInterval (Urho3D::DebugHud *_target, float interval)
  3908. {
  3909. _target->SetProfilerInterval (interval);
  3910. }
  3911. DllExport void
  3912. DebugHud_SetUseRendererStats (Urho3D::DebugHud *_target, bool enable)
  3913. {
  3914. _target->SetUseRendererStats (enable);
  3915. }
  3916. DllExport void
  3917. DebugHud_Toggle (Urho3D::DebugHud *_target, unsigned int mode)
  3918. {
  3919. _target->Toggle (mode);
  3920. }
  3921. DllExport void
  3922. DebugHud_ToggleAll (Urho3D::DebugHud *_target)
  3923. {
  3924. _target->ToggleAll ();
  3925. }
  3926. DllExport Urho3D::XMLFile *
  3927. DebugHud_GetDefaultStyle (Urho3D::DebugHud *_target)
  3928. {
  3929. return _target->GetDefaultStyle ();
  3930. }
  3931. DllExport Urho3D::Text *
  3932. DebugHud_GetStatsText (Urho3D::DebugHud *_target)
  3933. {
  3934. return _target->GetStatsText ();
  3935. }
  3936. DllExport Urho3D::Text *
  3937. DebugHud_GetModeText (Urho3D::DebugHud *_target)
  3938. {
  3939. return _target->GetModeText ();
  3940. }
  3941. DllExport Urho3D::Text *
  3942. DebugHud_GetProfilerText (Urho3D::DebugHud *_target)
  3943. {
  3944. return _target->GetProfilerText ();
  3945. }
  3946. DllExport Urho3D::Text *
  3947. DebugHud_GetMemoryText (Urho3D::DebugHud *_target)
  3948. {
  3949. return _target->GetMemoryText ();
  3950. }
  3951. DllExport unsigned int
  3952. DebugHud_GetMode (Urho3D::DebugHud *_target)
  3953. {
  3954. return _target->GetMode ();
  3955. }
  3956. DllExport unsigned int
  3957. DebugHud_GetProfilerMaxDepth (Urho3D::DebugHud *_target)
  3958. {
  3959. return _target->GetProfilerMaxDepth ();
  3960. }
  3961. DllExport float
  3962. DebugHud_GetProfilerInterval (Urho3D::DebugHud *_target)
  3963. {
  3964. return _target->GetProfilerInterval ();
  3965. }
  3966. DllExport int
  3967. DebugHud_GetUseRendererStats (Urho3D::DebugHud *_target)
  3968. {
  3969. return _target->GetUseRendererStats ();
  3970. }
  3971. DllExport void
  3972. DebugHud_SetAppStats (Urho3D::DebugHud *_target, const char * label, const char * stats)
  3973. {
  3974. _target->SetAppStats (Urho3D::String(label), Urho3D::String(stats));
  3975. }
  3976. DllExport int
  3977. DebugHud_ResetAppStats (Urho3D::DebugHud *_target, const char * label)
  3978. {
  3979. return _target->ResetAppStats (Urho3D::String(label));
  3980. }
  3981. DllExport void
  3982. DebugHud_ClearAppStats (Urho3D::DebugHud *_target)
  3983. {
  3984. _target->ClearAppStats ();
  3985. }
  3986. DllExport int
  3987. Node_GetType (Urho3D::Node *_target)
  3988. {
  3989. return (_target->GetType ()).Value ();
  3990. }
  3991. DllExport const char *
  3992. Node_GetTypeName (Urho3D::Node *_target)
  3993. {
  3994. return stringdup((_target->GetTypeName ()).CString ());
  3995. }
  3996. DllExport int
  3997. Node_GetTypeStatic ()
  3998. {
  3999. return (Node::GetTypeStatic ()).Value ();
  4000. }
  4001. DllExport const char *
  4002. Node_GetTypeNameStatic ()
  4003. {
  4004. return stringdup((Node::GetTypeNameStatic ()).CString ());
  4005. }
  4006. DllExport void *
  4007. Node_Node (Urho3D::Context * context)
  4008. {
  4009. return WeakPtr<Node>(new Node(context));
  4010. }
  4011. DllExport void
  4012. Node_RegisterObject (Urho3D::Context * context)
  4013. {
  4014. Node::RegisterObject (context);
  4015. }
  4016. DllExport int
  4017. Node_Load_File (Urho3D::Node *_target, File * source, bool setInstanceDefault)
  4018. {
  4019. return _target->Load (*source, setInstanceDefault);
  4020. }
  4021. DllExport int
  4022. Node_Load_MemoryBuffer (Urho3D::Node *_target, MemoryBuffer * source, bool setInstanceDefault)
  4023. {
  4024. return _target->Load (*source, setInstanceDefault);
  4025. }
  4026. DllExport int
  4027. Node_LoadXML (Urho3D::Node *_target, const class Urho3D::XMLElement & source, bool setInstanceDefault)
  4028. {
  4029. return _target->LoadXML (source, setInstanceDefault);
  4030. }
  4031. DllExport int
  4032. Node_Save_File (Urho3D::Node *_target, File * dest)
  4033. {
  4034. return _target->Save (*dest);
  4035. }
  4036. DllExport int
  4037. Node_Save_MemoryBuffer (Urho3D::Node *_target, MemoryBuffer * dest)
  4038. {
  4039. return _target->Save (*dest);
  4040. }
  4041. DllExport int
  4042. Node_SaveXML (Urho3D::Node *_target, Urho3D::XMLElement & dest)
  4043. {
  4044. return _target->SaveXML (dest);
  4045. }
  4046. DllExport void
  4047. Node_ApplyAttributes (Urho3D::Node *_target)
  4048. {
  4049. _target->ApplyAttributes ();
  4050. }
  4051. DllExport int
  4052. Node_SaveDefaultAttributes (Urho3D::Node *_target)
  4053. {
  4054. return _target->SaveDefaultAttributes ();
  4055. }
  4056. DllExport void
  4057. Node_MarkNetworkUpdate (Urho3D::Node *_target)
  4058. {
  4059. _target->MarkNetworkUpdate ();
  4060. }
  4061. DllExport void
  4062. Node_AddReplicationState (Urho3D::Node *_target, Urho3D::NodeReplicationState * state)
  4063. {
  4064. _target->AddReplicationState (state);
  4065. }
  4066. DllExport int
  4067. Node_SaveXML0_File (Urho3D::Node *_target, File * dest, const char * indentation)
  4068. {
  4069. return _target->SaveXML (*dest, Urho3D::String(indentation));
  4070. }
  4071. DllExport int
  4072. Node_SaveXML0_MemoryBuffer (Urho3D::Node *_target, MemoryBuffer * dest, const char * indentation)
  4073. {
  4074. return _target->SaveXML (*dest, Urho3D::String(indentation));
  4075. }
  4076. DllExport int
  4077. Node_SaveJSON_File (Urho3D::Node *_target, File * dest, const char * indentation)
  4078. {
  4079. return _target->SaveJSON (*dest, Urho3D::String(indentation));
  4080. }
  4081. DllExport int
  4082. Node_SaveJSON_MemoryBuffer (Urho3D::Node *_target, MemoryBuffer * dest, const char * indentation)
  4083. {
  4084. return _target->SaveJSON (*dest, Urho3D::String(indentation));
  4085. }
  4086. DllExport void
  4087. Node_SetName (Urho3D::Node *_target, const char * name)
  4088. {
  4089. _target->SetName (Urho3D::String(name));
  4090. }
  4091. DllExport void
  4092. Node_AddTag (Urho3D::Node *_target, const char * tag)
  4093. {
  4094. _target->AddTag (Urho3D::String(tag));
  4095. }
  4096. DllExport int
  4097. Node_RemoveTag (Urho3D::Node *_target, const char * tag)
  4098. {
  4099. return _target->RemoveTag (Urho3D::String(tag));
  4100. }
  4101. DllExport void
  4102. Node_RemoveAllTags (Urho3D::Node *_target)
  4103. {
  4104. _target->RemoveAllTags ();
  4105. }
  4106. DllExport void
  4107. Node_SetPosition (Urho3D::Node *_target, const class Urho3D::Vector3 & position)
  4108. {
  4109. _target->SetPosition (position);
  4110. }
  4111. DllExport void
  4112. Node_SetPosition2D (Urho3D::Node *_target, const class Urho3D::Vector2 & position)
  4113. {
  4114. _target->SetPosition2D (position);
  4115. }
  4116. DllExport void
  4117. Node_SetPosition2D1 (Urho3D::Node *_target, float x, float y)
  4118. {
  4119. _target->SetPosition2D (x, y);
  4120. }
  4121. DllExport void
  4122. Node_SetRotation (Urho3D::Node *_target, const class Urho3D::Quaternion & rotation)
  4123. {
  4124. _target->SetRotation (rotation);
  4125. }
  4126. DllExport void
  4127. Node_SetRotation2D (Urho3D::Node *_target, float rotation)
  4128. {
  4129. _target->SetRotation2D (rotation);
  4130. }
  4131. DllExport void
  4132. Node_SetDirection (Urho3D::Node *_target, const class Urho3D::Vector3 & direction)
  4133. {
  4134. _target->SetDirection (direction);
  4135. }
  4136. DllExport void
  4137. Node_SetScale (Urho3D::Node *_target, float scale)
  4138. {
  4139. _target->SetScale (scale);
  4140. }
  4141. DllExport void
  4142. Node_SetScale2 (Urho3D::Node *_target, const class Urho3D::Vector3 & scale)
  4143. {
  4144. _target->SetScale (scale);
  4145. }
  4146. DllExport void
  4147. Node_SetScale2D (Urho3D::Node *_target, const class Urho3D::Vector2 & scale)
  4148. {
  4149. _target->SetScale2D (scale);
  4150. }
  4151. DllExport void
  4152. Node_SetScale2D3 (Urho3D::Node *_target, float x, float y)
  4153. {
  4154. _target->SetScale2D (x, y);
  4155. }
  4156. DllExport void
  4157. Node_SetTransform (Urho3D::Node *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  4158. {
  4159. _target->SetTransform (position, rotation);
  4160. }
  4161. DllExport void
  4162. Node_SetTransform4 (Urho3D::Node *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, float scale)
  4163. {
  4164. _target->SetTransform (position, rotation, scale);
  4165. }
  4166. DllExport void
  4167. Node_SetTransform5 (Urho3D::Node *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, const class Urho3D::Vector3 & scale)
  4168. {
  4169. _target->SetTransform (position, rotation, scale);
  4170. }
  4171. DllExport void
  4172. Node_SetTransform6 (Urho3D::Node *_target, const class Urho3D::Matrix3x4 & matrix)
  4173. {
  4174. _target->SetTransform (matrix);
  4175. }
  4176. DllExport void
  4177. Node_SetTransform2D (Urho3D::Node *_target, const class Urho3D::Vector2 & position, float rotation)
  4178. {
  4179. _target->SetTransform2D (position, rotation);
  4180. }
  4181. DllExport void
  4182. Node_SetTransform2D7 (Urho3D::Node *_target, const class Urho3D::Vector2 & position, float rotation, float scale)
  4183. {
  4184. _target->SetTransform2D (position, rotation, scale);
  4185. }
  4186. DllExport void
  4187. Node_SetTransform2D8 (Urho3D::Node *_target, const class Urho3D::Vector2 & position, float rotation, const class Urho3D::Vector2 & scale)
  4188. {
  4189. _target->SetTransform2D (position, rotation, scale);
  4190. }
  4191. DllExport void
  4192. Node_SetWorldPosition (Urho3D::Node *_target, const class Urho3D::Vector3 & position)
  4193. {
  4194. _target->SetWorldPosition (position);
  4195. }
  4196. DllExport void
  4197. Node_SetWorldPosition2D (Urho3D::Node *_target, const class Urho3D::Vector2 & position)
  4198. {
  4199. _target->SetWorldPosition2D (position);
  4200. }
  4201. DllExport void
  4202. Node_SetWorldPosition2D9 (Urho3D::Node *_target, float x, float y)
  4203. {
  4204. _target->SetWorldPosition2D (x, y);
  4205. }
  4206. DllExport void
  4207. Node_SetWorldRotation (Urho3D::Node *_target, const class Urho3D::Quaternion & rotation)
  4208. {
  4209. _target->SetWorldRotation (rotation);
  4210. }
  4211. DllExport void
  4212. Node_SetWorldRotation2D (Urho3D::Node *_target, float rotation)
  4213. {
  4214. _target->SetWorldRotation2D (rotation);
  4215. }
  4216. DllExport void
  4217. Node_SetWorldDirection (Urho3D::Node *_target, const class Urho3D::Vector3 & direction)
  4218. {
  4219. _target->SetWorldDirection (direction);
  4220. }
  4221. DllExport void
  4222. Node_SetWorldScale (Urho3D::Node *_target, float scale)
  4223. {
  4224. _target->SetWorldScale (scale);
  4225. }
  4226. DllExport void
  4227. Node_SetWorldScale10 (Urho3D::Node *_target, const class Urho3D::Vector3 & scale)
  4228. {
  4229. _target->SetWorldScale (scale);
  4230. }
  4231. DllExport void
  4232. Node_SetWorldScale2D (Urho3D::Node *_target, const class Urho3D::Vector2 & scale)
  4233. {
  4234. _target->SetWorldScale2D (scale);
  4235. }
  4236. DllExport void
  4237. Node_SetWorldScale2D11 (Urho3D::Node *_target, float x, float y)
  4238. {
  4239. _target->SetWorldScale2D (x, y);
  4240. }
  4241. DllExport void
  4242. Node_SetWorldTransform (Urho3D::Node *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  4243. {
  4244. _target->SetWorldTransform (position, rotation);
  4245. }
  4246. DllExport void
  4247. Node_SetWorldTransform12 (Urho3D::Node *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, float scale)
  4248. {
  4249. _target->SetWorldTransform (position, rotation, scale);
  4250. }
  4251. DllExport void
  4252. Node_SetWorldTransform13 (Urho3D::Node *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, const class Urho3D::Vector3 & scale)
  4253. {
  4254. _target->SetWorldTransform (position, rotation, scale);
  4255. }
  4256. DllExport void
  4257. Node_SetWorldTransform2D (Urho3D::Node *_target, const class Urho3D::Vector2 & position, float rotation)
  4258. {
  4259. _target->SetWorldTransform2D (position, rotation);
  4260. }
  4261. DllExport void
  4262. Node_SetWorldTransform2D14 (Urho3D::Node *_target, const class Urho3D::Vector2 & position, float rotation, float scale)
  4263. {
  4264. _target->SetWorldTransform2D (position, rotation, scale);
  4265. }
  4266. DllExport void
  4267. Node_SetWorldTransform2D15 (Urho3D::Node *_target, const class Urho3D::Vector2 & position, float rotation, const class Urho3D::Vector2 & scale)
  4268. {
  4269. _target->SetWorldTransform2D (position, rotation, scale);
  4270. }
  4271. DllExport void
  4272. Node_Translate (Urho3D::Node *_target, const class Urho3D::Vector3 & delta, enum Urho3D::TransformSpace space)
  4273. {
  4274. _target->Translate (delta, space);
  4275. }
  4276. DllExport void
  4277. Node_Translate2D (Urho3D::Node *_target, const class Urho3D::Vector2 & delta, enum Urho3D::TransformSpace space)
  4278. {
  4279. _target->Translate2D (delta, space);
  4280. }
  4281. DllExport void
  4282. Node_Rotate (Urho3D::Node *_target, const class Urho3D::Quaternion & delta, enum Urho3D::TransformSpace space)
  4283. {
  4284. _target->Rotate (delta, space);
  4285. }
  4286. DllExport void
  4287. Node_Rotate2D (Urho3D::Node *_target, float delta, enum Urho3D::TransformSpace space)
  4288. {
  4289. _target->Rotate2D (delta, space);
  4290. }
  4291. DllExport void
  4292. Node_RotateAround (Urho3D::Node *_target, const class Urho3D::Vector3 & point, const class Urho3D::Quaternion & delta, enum Urho3D::TransformSpace space)
  4293. {
  4294. _target->RotateAround (point, delta, space);
  4295. }
  4296. DllExport void
  4297. Node_RotateAround2D (Urho3D::Node *_target, const class Urho3D::Vector2 & point, float delta, enum Urho3D::TransformSpace space)
  4298. {
  4299. _target->RotateAround2D (point, delta, space);
  4300. }
  4301. DllExport void
  4302. Node_Pitch (Urho3D::Node *_target, float angle, enum Urho3D::TransformSpace space)
  4303. {
  4304. _target->Pitch (angle, space);
  4305. }
  4306. DllExport void
  4307. Node_Yaw (Urho3D::Node *_target, float angle, enum Urho3D::TransformSpace space)
  4308. {
  4309. _target->Yaw (angle, space);
  4310. }
  4311. DllExport void
  4312. Node_Roll (Urho3D::Node *_target, float angle, enum Urho3D::TransformSpace space)
  4313. {
  4314. _target->Roll (angle, space);
  4315. }
  4316. DllExport int
  4317. Node_LookAt (Urho3D::Node *_target, const class Urho3D::Vector3 & target, const class Urho3D::Vector3 & up, enum Urho3D::TransformSpace space)
  4318. {
  4319. return _target->LookAt (target, up, space);
  4320. }
  4321. DllExport void
  4322. Node_Scale (Urho3D::Node *_target, float scale)
  4323. {
  4324. _target->Scale (scale);
  4325. }
  4326. DllExport void
  4327. Node_Scale16 (Urho3D::Node *_target, const class Urho3D::Vector3 & scale)
  4328. {
  4329. _target->Scale (scale);
  4330. }
  4331. DllExport void
  4332. Node_Scale2D (Urho3D::Node *_target, const class Urho3D::Vector2 & scale)
  4333. {
  4334. _target->Scale2D (scale);
  4335. }
  4336. DllExport void
  4337. Node_SetEnabled (Urho3D::Node *_target, bool enable)
  4338. {
  4339. _target->SetEnabled (enable);
  4340. }
  4341. DllExport void
  4342. Node_SetDeepEnabled (Urho3D::Node *_target, bool enable)
  4343. {
  4344. _target->SetDeepEnabled (enable);
  4345. }
  4346. DllExport void
  4347. Node_ResetDeepEnabled (Urho3D::Node *_target)
  4348. {
  4349. _target->ResetDeepEnabled ();
  4350. }
  4351. DllExport void
  4352. Node_SetEnabledRecursive (Urho3D::Node *_target, bool enable)
  4353. {
  4354. _target->SetEnabledRecursive (enable);
  4355. }
  4356. DllExport void
  4357. Node_SetOwner (Urho3D::Node *_target, Urho3D::Connection * owner)
  4358. {
  4359. _target->SetOwner (owner);
  4360. }
  4361. DllExport void
  4362. Node_MarkDirty (Urho3D::Node *_target)
  4363. {
  4364. _target->MarkDirty ();
  4365. }
  4366. DllExport Urho3D::Node *
  4367. Node_CreateChild (Urho3D::Node *_target, const char * name, enum Urho3D::CreateMode mode, unsigned int id, bool temporary)
  4368. {
  4369. return _target->CreateChild (Urho3D::String(name), mode, id, temporary);
  4370. }
  4371. DllExport Urho3D::Node *
  4372. Node_CreateTemporaryChild (Urho3D::Node *_target, const char * name, enum Urho3D::CreateMode mode, unsigned int id)
  4373. {
  4374. return _target->CreateTemporaryChild (Urho3D::String(name), mode, id);
  4375. }
  4376. DllExport void
  4377. Node_AddChild (Urho3D::Node *_target, Urho3D::Node * node, unsigned int index)
  4378. {
  4379. _target->AddChild (node, index);
  4380. }
  4381. DllExport void
  4382. Node_RemoveChild (Urho3D::Node *_target, Urho3D::Node * node)
  4383. {
  4384. _target->RemoveChild (node);
  4385. }
  4386. DllExport void
  4387. Node_RemoveAllChildren (Urho3D::Node *_target)
  4388. {
  4389. _target->RemoveAllChildren ();
  4390. }
  4391. DllExport void
  4392. Node_RemoveChildren (Urho3D::Node *_target, bool removeReplicated, bool removeLocal, bool recursive)
  4393. {
  4394. _target->RemoveChildren (removeReplicated, removeLocal, recursive);
  4395. }
  4396. DllExport Urho3D::Component *
  4397. Node_CreateComponent (Urho3D::Node *_target, int type, enum Urho3D::CreateMode mode, unsigned int id)
  4398. {
  4399. return _target->CreateComponent (Urho3D::StringHash(type), mode, id);
  4400. }
  4401. DllExport Urho3D::Component *
  4402. Node_GetOrCreateComponent (Urho3D::Node *_target, int type, enum Urho3D::CreateMode mode, unsigned int id)
  4403. {
  4404. return _target->GetOrCreateComponent (Urho3D::StringHash(type), mode, id);
  4405. }
  4406. DllExport Urho3D::Component *
  4407. Node_CloneComponent (Urho3D::Node *_target, Urho3D::Component * component, unsigned int id)
  4408. {
  4409. return _target->CloneComponent (component, id);
  4410. }
  4411. DllExport Urho3D::Component *
  4412. Node_CloneComponent17 (Urho3D::Node *_target, Urho3D::Component * component, enum Urho3D::CreateMode mode, unsigned int id)
  4413. {
  4414. return _target->CloneComponent (component, mode, id);
  4415. }
  4416. DllExport void
  4417. Node_RemoveComponent (Urho3D::Node *_target, Urho3D::Component * component)
  4418. {
  4419. _target->RemoveComponent (component);
  4420. }
  4421. DllExport void
  4422. Node_RemoveComponent18 (Urho3D::Node *_target, int type)
  4423. {
  4424. _target->RemoveComponent (Urho3D::StringHash(type));
  4425. }
  4426. DllExport void
  4427. Node_RemoveComponents (Urho3D::Node *_target, bool removeReplicated, bool removeLocal)
  4428. {
  4429. _target->RemoveComponents (removeReplicated, removeLocal);
  4430. }
  4431. DllExport void
  4432. Node_RemoveComponents19 (Urho3D::Node *_target, int type)
  4433. {
  4434. _target->RemoveComponents (Urho3D::StringHash(type));
  4435. }
  4436. DllExport void
  4437. Node_RemoveAllComponents (Urho3D::Node *_target)
  4438. {
  4439. _target->RemoveAllComponents ();
  4440. }
  4441. DllExport void
  4442. Node_ReorderComponent (Urho3D::Node *_target, Urho3D::Component * component, unsigned int index)
  4443. {
  4444. _target->ReorderComponent (component, index);
  4445. }
  4446. DllExport Urho3D::Node *
  4447. Node_Clone (Urho3D::Node *_target, enum Urho3D::CreateMode mode)
  4448. {
  4449. return _target->Clone (mode);
  4450. }
  4451. DllExport void
  4452. Node_Remove (Urho3D::Node *_target)
  4453. {
  4454. _target->Remove ();
  4455. }
  4456. DllExport void
  4457. Node_SetParent (Urho3D::Node *_target, Urho3D::Node * parent)
  4458. {
  4459. _target->SetParent (parent);
  4460. }
  4461. // Urho3D::Variant overloads begin:
  4462. DllExport void
  4463. Node_SetVar_0 (Urho3D::Node *_target, int key, const class Urho3D::Vector3 & value)
  4464. {
  4465. _target->SetVar (Urho3D::StringHash(key), (value));
  4466. }
  4467. DllExport void
  4468. Node_SetVar_1 (Urho3D::Node *_target, int key, const class Urho3D::IntRect & value)
  4469. {
  4470. _target->SetVar (Urho3D::StringHash(key), (value));
  4471. }
  4472. DllExport void
  4473. Node_SetVar_2 (Urho3D::Node *_target, int key, const class Urho3D::Color & value)
  4474. {
  4475. _target->SetVar (Urho3D::StringHash(key), (value));
  4476. }
  4477. DllExport void
  4478. Node_SetVar_3 (Urho3D::Node *_target, int key, const class Urho3D::Vector2 & value)
  4479. {
  4480. _target->SetVar (Urho3D::StringHash(key), (value));
  4481. }
  4482. DllExport void
  4483. Node_SetVar_4 (Urho3D::Node *_target, int key, const class Urho3D::Vector4 & value)
  4484. {
  4485. _target->SetVar (Urho3D::StringHash(key), (value));
  4486. }
  4487. DllExport void
  4488. Node_SetVar_5 (Urho3D::Node *_target, int key, const class Urho3D::IntVector2 & value)
  4489. {
  4490. _target->SetVar (Urho3D::StringHash(key), (value));
  4491. }
  4492. DllExport void
  4493. Node_SetVar_6 (Urho3D::Node *_target, int key, const class Urho3D::Quaternion & value)
  4494. {
  4495. _target->SetVar (Urho3D::StringHash(key), (value));
  4496. }
  4497. DllExport void
  4498. Node_SetVar_7 (Urho3D::Node *_target, int key, const class Urho3D::Matrix4 & value)
  4499. {
  4500. _target->SetVar (Urho3D::StringHash(key), (value));
  4501. }
  4502. DllExport void
  4503. Node_SetVar_8 (Urho3D::Node *_target, int key, const class Urho3D::Matrix3x4 & value)
  4504. {
  4505. _target->SetVar (Urho3D::StringHash(key), (value));
  4506. }
  4507. DllExport void
  4508. Node_SetVar_9 (Urho3D::Node *_target, int key, int value)
  4509. {
  4510. _target->SetVar (Urho3D::StringHash(key), (value));
  4511. }
  4512. DllExport void
  4513. Node_SetVar_10 (Urho3D::Node *_target, int key, float value)
  4514. {
  4515. _target->SetVar (Urho3D::StringHash(key), (value));
  4516. }
  4517. DllExport void
  4518. Node_SetVar_11 (Urho3D::Node *_target, int key, const char * value)
  4519. {
  4520. _target->SetVar (Urho3D::StringHash(key), Urho3D::String(value));
  4521. }
  4522. DllExport void
  4523. Node_SetVar_12 (Urho3D::Node *_target, int key, bool value)
  4524. {
  4525. _target->SetVar (Urho3D::StringHash(key), (value));
  4526. }
  4527. // Urho3D::Variant overloads end.
  4528. DllExport void
  4529. Node_AddListener (Urho3D::Node *_target, Urho3D::Component * component)
  4530. {
  4531. _target->AddListener (component);
  4532. }
  4533. DllExport void
  4534. Node_RemoveListener (Urho3D::Node *_target, Urho3D::Component * component)
  4535. {
  4536. _target->RemoveListener (component);
  4537. }
  4538. DllExport unsigned int
  4539. Node_GetID (Urho3D::Node *_target)
  4540. {
  4541. return _target->GetID ();
  4542. }
  4543. DllExport const char *
  4544. Node_GetName (Urho3D::Node *_target)
  4545. {
  4546. return stringdup((_target->GetName ()).CString ());
  4547. }
  4548. DllExport int
  4549. Node_GetNameHash (Urho3D::Node *_target)
  4550. {
  4551. return (_target->GetNameHash ()).Value ();
  4552. }
  4553. DllExport int
  4554. Node_HasTag (Urho3D::Node *_target, const char * tag)
  4555. {
  4556. return _target->HasTag (Urho3D::String(tag));
  4557. }
  4558. DllExport Urho3D::Node *
  4559. Node_GetParent (Urho3D::Node *_target)
  4560. {
  4561. return _target->GetParent ();
  4562. }
  4563. DllExport Urho3D::Scene *
  4564. Node_GetScene (Urho3D::Node *_target)
  4565. {
  4566. return _target->GetScene ();
  4567. }
  4568. DllExport int
  4569. Node_IsChildOf (Urho3D::Node *_target, Urho3D::Node * node)
  4570. {
  4571. return _target->IsChildOf (node);
  4572. }
  4573. DllExport int
  4574. Node_IsEnabled (Urho3D::Node *_target)
  4575. {
  4576. return _target->IsEnabled ();
  4577. }
  4578. DllExport int
  4579. Node_IsEnabledSelf (Urho3D::Node *_target)
  4580. {
  4581. return _target->IsEnabledSelf ();
  4582. }
  4583. DllExport Urho3D::Connection *
  4584. Node_GetOwner (Urho3D::Node *_target)
  4585. {
  4586. return _target->GetOwner ();
  4587. }
  4588. DllExport Interop::Vector3
  4589. Node_GetPosition (Urho3D::Node *_target)
  4590. {
  4591. return *((Interop::Vector3 *) &(_target->GetPosition ()));
  4592. }
  4593. DllExport Interop::Vector2
  4594. Node_GetPosition2D (Urho3D::Node *_target)
  4595. {
  4596. return *((Interop::Vector2 *) &(_target->GetPosition2D ()));
  4597. }
  4598. DllExport Interop::Quaternion
  4599. Node_GetRotation (Urho3D::Node *_target)
  4600. {
  4601. return *((Interop::Quaternion *) &(_target->GetRotation ()));
  4602. }
  4603. DllExport float
  4604. Node_GetRotation2D (Urho3D::Node *_target)
  4605. {
  4606. return _target->GetRotation2D ();
  4607. }
  4608. DllExport Interop::Vector3
  4609. Node_GetDirection (Urho3D::Node *_target)
  4610. {
  4611. return *((Interop::Vector3 *) &(_target->GetDirection ()));
  4612. }
  4613. DllExport Interop::Vector3
  4614. Node_GetUp (Urho3D::Node *_target)
  4615. {
  4616. return *((Interop::Vector3 *) &(_target->GetUp ()));
  4617. }
  4618. DllExport Interop::Vector3
  4619. Node_GetRight (Urho3D::Node *_target)
  4620. {
  4621. return *((Interop::Vector3 *) &(_target->GetRight ()));
  4622. }
  4623. DllExport Interop::Vector3
  4624. Node_GetScale (Urho3D::Node *_target)
  4625. {
  4626. return *((Interop::Vector3 *) &(_target->GetScale ()));
  4627. }
  4628. DllExport Interop::Vector2
  4629. Node_GetScale2D (Urho3D::Node *_target)
  4630. {
  4631. return *((Interop::Vector2 *) &(_target->GetScale2D ()));
  4632. }
  4633. DllExport Interop::Matrix3x4
  4634. Node_GetTransform (Urho3D::Node *_target)
  4635. {
  4636. return *((Interop::Matrix3x4 *) &(_target->GetTransform ()));
  4637. }
  4638. DllExport Interop::Vector3
  4639. Node_GetWorldPosition (Urho3D::Node *_target)
  4640. {
  4641. return *((Interop::Vector3 *) &(_target->GetWorldPosition ()));
  4642. }
  4643. DllExport Interop::Vector2
  4644. Node_GetWorldPosition2D (Urho3D::Node *_target)
  4645. {
  4646. return *((Interop::Vector2 *) &(_target->GetWorldPosition2D ()));
  4647. }
  4648. DllExport Interop::Quaternion
  4649. Node_GetWorldRotation (Urho3D::Node *_target)
  4650. {
  4651. return *((Interop::Quaternion *) &(_target->GetWorldRotation ()));
  4652. }
  4653. DllExport float
  4654. Node_GetWorldRotation2D (Urho3D::Node *_target)
  4655. {
  4656. return _target->GetWorldRotation2D ();
  4657. }
  4658. DllExport Interop::Vector3
  4659. Node_GetWorldDirection (Urho3D::Node *_target)
  4660. {
  4661. return *((Interop::Vector3 *) &(_target->GetWorldDirection ()));
  4662. }
  4663. DllExport Interop::Vector3
  4664. Node_GetWorldUp (Urho3D::Node *_target)
  4665. {
  4666. return *((Interop::Vector3 *) &(_target->GetWorldUp ()));
  4667. }
  4668. DllExport Interop::Vector3
  4669. Node_GetWorldRight (Urho3D::Node *_target)
  4670. {
  4671. return *((Interop::Vector3 *) &(_target->GetWorldRight ()));
  4672. }
  4673. DllExport Interop::Vector3
  4674. Node_GetWorldScale (Urho3D::Node *_target)
  4675. {
  4676. return *((Interop::Vector3 *) &(_target->GetWorldScale ()));
  4677. }
  4678. DllExport Interop::Vector3
  4679. Node_GetSignedWorldScale (Urho3D::Node *_target)
  4680. {
  4681. return *((Interop::Vector3 *) &(_target->GetSignedWorldScale ()));
  4682. }
  4683. DllExport Interop::Vector2
  4684. Node_GetWorldScale2D (Urho3D::Node *_target)
  4685. {
  4686. return *((Interop::Vector2 *) &(_target->GetWorldScale2D ()));
  4687. }
  4688. DllExport Interop::Matrix3x4
  4689. Node_GetWorldTransform (Urho3D::Node *_target)
  4690. {
  4691. return *((Interop::Matrix3x4 *) &(_target->GetWorldTransform ()));
  4692. }
  4693. DllExport Interop::Vector3
  4694. Node_LocalToWorld (Urho3D::Node *_target, const class Urho3D::Vector3 & position)
  4695. {
  4696. return *((Interop::Vector3 *) &(_target->LocalToWorld (position)));
  4697. }
  4698. DllExport Interop::Vector3
  4699. Node_LocalToWorld20 (Urho3D::Node *_target, const class Urho3D::Vector4 & vector)
  4700. {
  4701. return *((Interop::Vector3 *) &(_target->LocalToWorld (vector)));
  4702. }
  4703. DllExport Interop::Vector2
  4704. Node_LocalToWorld2D (Urho3D::Node *_target, const class Urho3D::Vector2 & vector)
  4705. {
  4706. return *((Interop::Vector2 *) &(_target->LocalToWorld2D (vector)));
  4707. }
  4708. DllExport Interop::Vector3
  4709. Node_WorldToLocal (Urho3D::Node *_target, const class Urho3D::Vector3 & position)
  4710. {
  4711. return *((Interop::Vector3 *) &(_target->WorldToLocal (position)));
  4712. }
  4713. DllExport Interop::Vector3
  4714. Node_WorldToLocal21 (Urho3D::Node *_target, const class Urho3D::Vector4 & vector)
  4715. {
  4716. return *((Interop::Vector3 *) &(_target->WorldToLocal (vector)));
  4717. }
  4718. DllExport Interop::Vector2
  4719. Node_WorldToLocal2D (Urho3D::Node *_target, const class Urho3D::Vector2 & vector)
  4720. {
  4721. return *((Interop::Vector2 *) &(_target->WorldToLocal2D (vector)));
  4722. }
  4723. DllExport int
  4724. Node_IsDirty (Urho3D::Node *_target)
  4725. {
  4726. return _target->IsDirty ();
  4727. }
  4728. DllExport unsigned int
  4729. Node_GetNumChildren (Urho3D::Node *_target, bool recursive)
  4730. {
  4731. return _target->GetNumChildren (recursive);
  4732. }
  4733. DllExport const Vector<SharedPtr<class Urho3D::Node> > &
  4734. Node_GetChildren (Urho3D::Node *_target)
  4735. {
  4736. return _target->GetChildren ();
  4737. }
  4738. DllExport Urho3D::Node *
  4739. Node_GetChild (Urho3D::Node *_target, unsigned int index)
  4740. {
  4741. return _target->GetChild (index);
  4742. }
  4743. DllExport Urho3D::Node *
  4744. Node_GetChild22 (Urho3D::Node *_target, const char * name, bool recursive)
  4745. {
  4746. return _target->GetChild (Urho3D::String(name), recursive);
  4747. }
  4748. DllExport Urho3D::Node *
  4749. Node_GetChild23 (Urho3D::Node *_target, int nameHash, bool recursive)
  4750. {
  4751. return _target->GetChild (Urho3D::StringHash(nameHash), recursive);
  4752. }
  4753. DllExport unsigned int
  4754. Node_GetNumComponents (Urho3D::Node *_target)
  4755. {
  4756. return _target->GetNumComponents ();
  4757. }
  4758. DllExport unsigned int
  4759. Node_GetNumNetworkComponents (Urho3D::Node *_target)
  4760. {
  4761. return _target->GetNumNetworkComponents ();
  4762. }
  4763. DllExport const Vector<SharedPtr<class Urho3D::Component> > &
  4764. Node_GetComponents (Urho3D::Node *_target)
  4765. {
  4766. return _target->GetComponents ();
  4767. }
  4768. DllExport Urho3D::Component *
  4769. Node_GetComponent (Urho3D::Node *_target, int type, bool recursive)
  4770. {
  4771. return _target->GetComponent (Urho3D::StringHash(type), recursive);
  4772. }
  4773. DllExport Urho3D::Component *
  4774. Node_GetParentComponent (Urho3D::Node *_target, int type, bool fullTraversal)
  4775. {
  4776. return _target->GetParentComponent (Urho3D::StringHash(type), fullTraversal);
  4777. }
  4778. DllExport int
  4779. Node_HasComponent (Urho3D::Node *_target, int type)
  4780. {
  4781. return _target->HasComponent (Urho3D::StringHash(type));
  4782. }
  4783. // Urho3D::Variant overloads begin:
  4784. DllExport Interop::Vector3
  4785. Node_GetVar_0 (Urho3D::Node *_target, int key)
  4786. {
  4787. return *((Interop::Vector3 *) &(_target->GetVar (Urho3D::StringHash(key)).GetVector3()));
  4788. }
  4789. DllExport Interop::IntRect
  4790. Node_GetVar_1 (Urho3D::Node *_target, int key)
  4791. {
  4792. return *((Interop::IntRect *) &(_target->GetVar (Urho3D::StringHash(key)).GetIntRect()));
  4793. }
  4794. DllExport Interop::Color
  4795. Node_GetVar_2 (Urho3D::Node *_target, int key)
  4796. {
  4797. return *((Interop::Color *) &(_target->GetVar (Urho3D::StringHash(key)).GetColor()));
  4798. }
  4799. DllExport Interop::Vector2
  4800. Node_GetVar_3 (Urho3D::Node *_target, int key)
  4801. {
  4802. return *((Interop::Vector2 *) &(_target->GetVar (Urho3D::StringHash(key)).GetVector2()));
  4803. }
  4804. DllExport Interop::Vector4
  4805. Node_GetVar_4 (Urho3D::Node *_target, int key)
  4806. {
  4807. return *((Interop::Vector4 *) &(_target->GetVar (Urho3D::StringHash(key)).GetVector4()));
  4808. }
  4809. DllExport Interop::IntVector2
  4810. Node_GetVar_5 (Urho3D::Node *_target, int key)
  4811. {
  4812. return *((Interop::IntVector2 *) &(_target->GetVar (Urho3D::StringHash(key)).GetIntVector2()));
  4813. }
  4814. DllExport Interop::Quaternion
  4815. Node_GetVar_6 (Urho3D::Node *_target, int key)
  4816. {
  4817. return *((Interop::Quaternion *) &(_target->GetVar (Urho3D::StringHash(key)).GetQuaternion()));
  4818. }
  4819. DllExport Interop::Matrix4
  4820. Node_GetVar_7 (Urho3D::Node *_target, int key)
  4821. {
  4822. return *((Interop::Matrix4 *) &(_target->GetVar (Urho3D::StringHash(key)).GetMatrix4()));
  4823. }
  4824. DllExport Interop::Matrix3x4
  4825. Node_GetVar_8 (Urho3D::Node *_target, int key)
  4826. {
  4827. return *((Interop::Matrix3x4 *) &(_target->GetVar (Urho3D::StringHash(key)).GetMatrix3x4()));
  4828. }
  4829. DllExport int
  4830. Node_GetVar_9 (Urho3D::Node *_target, int key)
  4831. {
  4832. return (_target->GetVar (Urho3D::StringHash(key)).GetInt());
  4833. }
  4834. DllExport float
  4835. Node_GetVar_10 (Urho3D::Node *_target, int key)
  4836. {
  4837. return (_target->GetVar (Urho3D::StringHash(key)).GetFloat());
  4838. }
  4839. DllExport const char *
  4840. Node_GetVar_11 (Urho3D::Node *_target, int key)
  4841. {
  4842. return stringdup(_target->GetVar (Urho3D::StringHash(key)).GetString().CString());
  4843. }
  4844. DllExport bool
  4845. Node_GetVar_12 (Urho3D::Node *_target, int key)
  4846. {
  4847. return (_target->GetVar (Urho3D::StringHash(key)).GetBool());
  4848. }
  4849. // Urho3D::Variant overloads end.
  4850. DllExport void
  4851. Node_SetID (Urho3D::Node *_target, unsigned int id)
  4852. {
  4853. _target->SetID (id);
  4854. }
  4855. DllExport void
  4856. Node_SetScene (Urho3D::Node *_target, Urho3D::Scene * scene)
  4857. {
  4858. _target->SetScene (scene);
  4859. }
  4860. DllExport void
  4861. Node_ResetScene (Urho3D::Node *_target)
  4862. {
  4863. _target->ResetScene ();
  4864. }
  4865. DllExport void
  4866. Node_SetNetPositionAttr (Urho3D::Node *_target, const class Urho3D::Vector3 & value)
  4867. {
  4868. _target->SetNetPositionAttr (value);
  4869. }
  4870. DllExport Interop::Vector3
  4871. Node_GetNetPositionAttr (Urho3D::Node *_target)
  4872. {
  4873. return *((Interop::Vector3 *) &(_target->GetNetPositionAttr ()));
  4874. }
  4875. DllExport void
  4876. Node_PrepareNetworkUpdate (Urho3D::Node *_target)
  4877. {
  4878. _target->PrepareNetworkUpdate ();
  4879. }
  4880. DllExport void
  4881. Node_CleanupConnection (Urho3D::Node *_target, Urho3D::Connection * connection)
  4882. {
  4883. _target->CleanupConnection (connection);
  4884. }
  4885. DllExport void
  4886. Node_MarkReplicationDirty (Urho3D::Node *_target)
  4887. {
  4888. _target->MarkReplicationDirty ();
  4889. }
  4890. DllExport Urho3D::Node *
  4891. Node_CreateChild24 (Urho3D::Node *_target, unsigned int id, enum Urho3D::CreateMode mode, bool temporary)
  4892. {
  4893. return _target->CreateChild (id, mode, temporary);
  4894. }
  4895. DllExport void
  4896. Node_AddComponent (Urho3D::Node *_target, Urho3D::Component * component, unsigned int id, enum Urho3D::CreateMode mode)
  4897. {
  4898. _target->AddComponent (component, id, mode);
  4899. }
  4900. DllExport unsigned int
  4901. Node_GetNumPersistentChildren (Urho3D::Node *_target)
  4902. {
  4903. return _target->GetNumPersistentChildren ();
  4904. }
  4905. DllExport unsigned int
  4906. Node_GetNumPersistentComponents (Urho3D::Node *_target)
  4907. {
  4908. return _target->GetNumPersistentComponents ();
  4909. }
  4910. DllExport void
  4911. Node_SetPositionSilent (Urho3D::Node *_target, const class Urho3D::Vector3 & position)
  4912. {
  4913. _target->SetPositionSilent (position);
  4914. }
  4915. DllExport void
  4916. Node_SetRotationSilent (Urho3D::Node *_target, const class Urho3D::Quaternion & rotation)
  4917. {
  4918. _target->SetRotationSilent (rotation);
  4919. }
  4920. DllExport void
  4921. Node_SetScaleSilent (Urho3D::Node *_target, const class Urho3D::Vector3 & scale)
  4922. {
  4923. _target->SetScaleSilent (scale);
  4924. }
  4925. DllExport void
  4926. Node_SetTransformSilent (Urho3D::Node *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, const class Urho3D::Vector3 & scale)
  4927. {
  4928. _target->SetTransformSilent (position, rotation, scale);
  4929. }
  4930. DllExport int
  4931. Skeleton_Load_File (Urho3D::Skeleton *_target, File * source)
  4932. {
  4933. return _target->Load (*source);
  4934. }
  4935. DllExport int
  4936. Skeleton_Load_MemoryBuffer (Urho3D::Skeleton *_target, MemoryBuffer * source)
  4937. {
  4938. return _target->Load (*source);
  4939. }
  4940. DllExport int
  4941. Skeleton_Save_File (Urho3D::Skeleton *_target, File * dest)
  4942. {
  4943. return _target->Save (*dest);
  4944. }
  4945. DllExport int
  4946. Skeleton_Save_MemoryBuffer (Urho3D::Skeleton *_target, MemoryBuffer * dest)
  4947. {
  4948. return _target->Save (*dest);
  4949. }
  4950. DllExport void
  4951. Skeleton_SetRootBoneIndex (Urho3D::Skeleton *_target, unsigned int index)
  4952. {
  4953. _target->SetRootBoneIndex (index);
  4954. }
  4955. DllExport void
  4956. Skeleton_ClearBones (Urho3D::Skeleton *_target)
  4957. {
  4958. _target->ClearBones ();
  4959. }
  4960. DllExport void
  4961. Skeleton_Reset (Urho3D::Skeleton *_target)
  4962. {
  4963. _target->Reset ();
  4964. }
  4965. DllExport unsigned int
  4966. Skeleton_GetNumBones (Urho3D::Skeleton *_target)
  4967. {
  4968. return _target->GetNumBones ();
  4969. }
  4970. DllExport Urho3D::Bone *
  4971. Skeleton_GetRootBone (Urho3D::Skeleton *_target)
  4972. {
  4973. return _target->GetRootBone ();
  4974. }
  4975. DllExport Urho3D::Bone *
  4976. Skeleton_GetBone (Urho3D::Skeleton *_target, unsigned int index)
  4977. {
  4978. return _target->GetBone (index);
  4979. }
  4980. DllExport Urho3D::Bone *
  4981. Skeleton_GetBone0 (Urho3D::Skeleton *_target, int boneNameHash)
  4982. {
  4983. return _target->GetBone (Urho3D::StringHash(boneNameHash));
  4984. }
  4985. DllExport void
  4986. Skeleton_ResetSilent (Urho3D::Skeleton *_target)
  4987. {
  4988. _target->ResetSilent ();
  4989. }
  4990. DllExport int
  4991. Model_GetType (Urho3D::Model *_target)
  4992. {
  4993. return (_target->GetType ()).Value ();
  4994. }
  4995. DllExport const char *
  4996. Model_GetTypeName (Urho3D::Model *_target)
  4997. {
  4998. return stringdup((_target->GetTypeName ()).CString ());
  4999. }
  5000. DllExport int
  5001. Model_GetTypeStatic ()
  5002. {
  5003. return (Model::GetTypeStatic ()).Value ();
  5004. }
  5005. DllExport const char *
  5006. Model_GetTypeNameStatic ()
  5007. {
  5008. return stringdup((Model::GetTypeNameStatic ()).CString ());
  5009. }
  5010. DllExport void *
  5011. Model_Model (Urho3D::Context * context)
  5012. {
  5013. return WeakPtr<Model>(new Model(context));
  5014. }
  5015. DllExport void
  5016. Model_RegisterObject (Urho3D::Context * context)
  5017. {
  5018. Model::RegisterObject (context);
  5019. }
  5020. DllExport int
  5021. Model_BeginLoad_File (Urho3D::Model *_target, File * source)
  5022. {
  5023. return _target->BeginLoad (*source);
  5024. }
  5025. DllExport int
  5026. Model_BeginLoad_MemoryBuffer (Urho3D::Model *_target, MemoryBuffer * source)
  5027. {
  5028. return _target->BeginLoad (*source);
  5029. }
  5030. DllExport int
  5031. Model_EndLoad (Urho3D::Model *_target)
  5032. {
  5033. return _target->EndLoad ();
  5034. }
  5035. DllExport int
  5036. Model_Save_File (Urho3D::Model *_target, File * dest)
  5037. {
  5038. return _target->Save (*dest);
  5039. }
  5040. DllExport int
  5041. Model_Save_MemoryBuffer (Urho3D::Model *_target, MemoryBuffer * dest)
  5042. {
  5043. return _target->Save (*dest);
  5044. }
  5045. DllExport void
  5046. Model_SetBoundingBox (Urho3D::Model *_target, const class Urho3D::BoundingBox & box)
  5047. {
  5048. _target->SetBoundingBox (box);
  5049. }
  5050. DllExport void
  5051. Model_SetNumGeometries (Urho3D::Model *_target, unsigned int num)
  5052. {
  5053. _target->SetNumGeometries (num);
  5054. }
  5055. DllExport int
  5056. Model_SetNumGeometryLodLevels (Urho3D::Model *_target, unsigned int index, unsigned int num)
  5057. {
  5058. return _target->SetNumGeometryLodLevels (index, num);
  5059. }
  5060. DllExport int
  5061. Model_SetGeometry (Urho3D::Model *_target, unsigned int index, unsigned int lodLevel, Urho3D::Geometry * geometry)
  5062. {
  5063. return _target->SetGeometry (index, lodLevel, geometry);
  5064. }
  5065. DllExport int
  5066. Model_SetGeometryCenter (Urho3D::Model *_target, unsigned int index, const class Urho3D::Vector3 & center)
  5067. {
  5068. return _target->SetGeometryCenter (index, center);
  5069. }
  5070. DllExport Urho3D::Model *
  5071. Model_Clone (Urho3D::Model *_target, const char * cloneName)
  5072. {
  5073. auto copy = _target->Clone (Urho3D::String(cloneName));
  5074. auto plain = copy.Get();
  5075. copy.Detach();
  5076. delete copy;
  5077. return plain;
  5078. }
  5079. DllExport Interop::BoundingBox
  5080. Model_GetBoundingBox (Urho3D::Model *_target)
  5081. {
  5082. return *((Interop::BoundingBox *) &(_target->GetBoundingBox ()));
  5083. }
  5084. DllExport const Vector<SharedPtr<class Urho3D::VertexBuffer> > &
  5085. Model_GetVertexBuffers (Urho3D::Model *_target)
  5086. {
  5087. return _target->GetVertexBuffers ();
  5088. }
  5089. DllExport const Vector<SharedPtr<class Urho3D::IndexBuffer> > &
  5090. Model_GetIndexBuffers (Urho3D::Model *_target)
  5091. {
  5092. return _target->GetIndexBuffers ();
  5093. }
  5094. DllExport unsigned int
  5095. Model_GetNumGeometries (Urho3D::Model *_target)
  5096. {
  5097. return _target->GetNumGeometries ();
  5098. }
  5099. DllExport unsigned int
  5100. Model_GetNumGeometryLodLevels (Urho3D::Model *_target, unsigned int index)
  5101. {
  5102. return _target->GetNumGeometryLodLevels (index);
  5103. }
  5104. DllExport Urho3D::Geometry *
  5105. Model_GetGeometry (Urho3D::Model *_target, unsigned int index, unsigned int lodLevel)
  5106. {
  5107. return _target->GetGeometry (index, lodLevel);
  5108. }
  5109. DllExport Interop::Vector3
  5110. Model_GetGeometryCenter (Urho3D::Model *_target, unsigned int index)
  5111. {
  5112. return *((Interop::Vector3 *) &(_target->GetGeometryCenter (index)));
  5113. }
  5114. DllExport unsigned int
  5115. Model_GetNumMorphs (Urho3D::Model *_target)
  5116. {
  5117. return _target->GetNumMorphs ();
  5118. }
  5119. DllExport const struct Urho3D::ModelMorph *
  5120. Model_GetMorph (Urho3D::Model *_target, unsigned int index)
  5121. {
  5122. return _target->GetMorph (index);
  5123. }
  5124. DllExport const struct Urho3D::ModelMorph *
  5125. Model_GetMorph0 (Urho3D::Model *_target, const char * name)
  5126. {
  5127. return _target->GetMorph (Urho3D::String(name));
  5128. }
  5129. DllExport const struct Urho3D::ModelMorph *
  5130. Model_GetMorph1 (Urho3D::Model *_target, int nameHash)
  5131. {
  5132. return _target->GetMorph (Urho3D::StringHash(nameHash));
  5133. }
  5134. DllExport unsigned int
  5135. Model_GetMorphRangeStart (Urho3D::Model *_target, unsigned int bufferIndex)
  5136. {
  5137. return _target->GetMorphRangeStart (bufferIndex);
  5138. }
  5139. DllExport unsigned int
  5140. Model_GetMorphRangeCount (Urho3D::Model *_target, unsigned int bufferIndex)
  5141. {
  5142. return _target->GetMorphRangeCount (bufferIndex);
  5143. }
  5144. DllExport int
  5145. Drawable_GetType (Urho3D::Drawable *_target)
  5146. {
  5147. return (_target->GetType ()).Value ();
  5148. }
  5149. DllExport const char *
  5150. Drawable_GetTypeName (Urho3D::Drawable *_target)
  5151. {
  5152. return stringdup((_target->GetTypeName ()).CString ());
  5153. }
  5154. DllExport int
  5155. Drawable_GetTypeStatic ()
  5156. {
  5157. return (Drawable::GetTypeStatic ()).Value ();
  5158. }
  5159. DllExport const char *
  5160. Drawable_GetTypeNameStatic ()
  5161. {
  5162. return stringdup((Drawable::GetTypeNameStatic ()).CString ());
  5163. }
  5164. DllExport void
  5165. Drawable_RegisterObject (Urho3D::Context * context)
  5166. {
  5167. Drawable::RegisterObject (context);
  5168. }
  5169. DllExport void
  5170. Drawable_OnSetEnabled (Urho3D::Drawable *_target)
  5171. {
  5172. _target->OnSetEnabled ();
  5173. }
  5174. DllExport enum Urho3D::UpdateGeometryType
  5175. Drawable_GetUpdateGeometryType (Urho3D::Drawable *_target)
  5176. {
  5177. return _target->GetUpdateGeometryType ();
  5178. }
  5179. DllExport Urho3D::Geometry *
  5180. Drawable_GetLodGeometry (Urho3D::Drawable *_target, unsigned int batchIndex, unsigned int level)
  5181. {
  5182. return _target->GetLodGeometry (batchIndex, level);
  5183. }
  5184. DllExport unsigned int
  5185. Drawable_GetNumOccluderTriangles (Urho3D::Drawable *_target)
  5186. {
  5187. return _target->GetNumOccluderTriangles ();
  5188. }
  5189. DllExport int
  5190. Drawable_DrawOcclusion (Urho3D::Drawable *_target, Urho3D::OcclusionBuffer * buffer)
  5191. {
  5192. return _target->DrawOcclusion (buffer);
  5193. }
  5194. DllExport void
  5195. Drawable_DrawDebugGeometry (Urho3D::Drawable *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  5196. {
  5197. _target->DrawDebugGeometry (debug, depthTest);
  5198. }
  5199. DllExport void
  5200. Drawable_SetDrawDistance (Urho3D::Drawable *_target, float distance)
  5201. {
  5202. _target->SetDrawDistance (distance);
  5203. }
  5204. DllExport void
  5205. Drawable_SetShadowDistance (Urho3D::Drawable *_target, float distance)
  5206. {
  5207. _target->SetShadowDistance (distance);
  5208. }
  5209. DllExport void
  5210. Drawable_SetLodBias (Urho3D::Drawable *_target, float bias)
  5211. {
  5212. _target->SetLodBias (bias);
  5213. }
  5214. DllExport void
  5215. Drawable_SetViewMask (Urho3D::Drawable *_target, unsigned int mask)
  5216. {
  5217. _target->SetViewMask (mask);
  5218. }
  5219. DllExport void
  5220. Drawable_SetLightMask (Urho3D::Drawable *_target, unsigned int mask)
  5221. {
  5222. _target->SetLightMask (mask);
  5223. }
  5224. DllExport void
  5225. Drawable_SetShadowMask (Urho3D::Drawable *_target, unsigned int mask)
  5226. {
  5227. _target->SetShadowMask (mask);
  5228. }
  5229. DllExport void
  5230. Drawable_SetZoneMask (Urho3D::Drawable *_target, unsigned int mask)
  5231. {
  5232. _target->SetZoneMask (mask);
  5233. }
  5234. DllExport void
  5235. Drawable_SetMaxLights (Urho3D::Drawable *_target, unsigned int num)
  5236. {
  5237. _target->SetMaxLights (num);
  5238. }
  5239. DllExport void
  5240. Drawable_SetCastShadows (Urho3D::Drawable *_target, bool enable)
  5241. {
  5242. _target->SetCastShadows (enable);
  5243. }
  5244. DllExport void
  5245. Drawable_SetOccluder (Urho3D::Drawable *_target, bool enable)
  5246. {
  5247. _target->SetOccluder (enable);
  5248. }
  5249. DllExport void
  5250. Drawable_SetOccludee (Urho3D::Drawable *_target, bool enable)
  5251. {
  5252. _target->SetOccludee (enable);
  5253. }
  5254. DllExport void
  5255. Drawable_MarkForUpdate (Urho3D::Drawable *_target)
  5256. {
  5257. _target->MarkForUpdate ();
  5258. }
  5259. DllExport Interop::BoundingBox
  5260. Drawable_GetBoundingBox (Urho3D::Drawable *_target)
  5261. {
  5262. return *((Interop::BoundingBox *) &(_target->GetBoundingBox ()));
  5263. }
  5264. DllExport Interop::BoundingBox
  5265. Drawable_GetWorldBoundingBox (Urho3D::Drawable *_target)
  5266. {
  5267. return *((Interop::BoundingBox *) &(_target->GetWorldBoundingBox ()));
  5268. }
  5269. DllExport unsigned char
  5270. Drawable_GetDrawableFlags (Urho3D::Drawable *_target)
  5271. {
  5272. return _target->GetDrawableFlags ();
  5273. }
  5274. DllExport float
  5275. Drawable_GetDrawDistance (Urho3D::Drawable *_target)
  5276. {
  5277. return _target->GetDrawDistance ();
  5278. }
  5279. DllExport float
  5280. Drawable_GetShadowDistance (Urho3D::Drawable *_target)
  5281. {
  5282. return _target->GetShadowDistance ();
  5283. }
  5284. DllExport float
  5285. Drawable_GetLodBias (Urho3D::Drawable *_target)
  5286. {
  5287. return _target->GetLodBias ();
  5288. }
  5289. DllExport unsigned int
  5290. Drawable_GetViewMask (Urho3D::Drawable *_target)
  5291. {
  5292. return _target->GetViewMask ();
  5293. }
  5294. DllExport unsigned int
  5295. Drawable_GetLightMask (Urho3D::Drawable *_target)
  5296. {
  5297. return _target->GetLightMask ();
  5298. }
  5299. DllExport unsigned int
  5300. Drawable_GetShadowMask (Urho3D::Drawable *_target)
  5301. {
  5302. return _target->GetShadowMask ();
  5303. }
  5304. DllExport unsigned int
  5305. Drawable_GetZoneMask (Urho3D::Drawable *_target)
  5306. {
  5307. return _target->GetZoneMask ();
  5308. }
  5309. DllExport unsigned int
  5310. Drawable_GetMaxLights (Urho3D::Drawable *_target)
  5311. {
  5312. return _target->GetMaxLights ();
  5313. }
  5314. DllExport int
  5315. Drawable_GetCastShadows (Urho3D::Drawable *_target)
  5316. {
  5317. return _target->GetCastShadows ();
  5318. }
  5319. DllExport int
  5320. Drawable_IsOccluder (Urho3D::Drawable *_target)
  5321. {
  5322. return _target->IsOccluder ();
  5323. }
  5324. DllExport int
  5325. Drawable_IsOccludee (Urho3D::Drawable *_target)
  5326. {
  5327. return _target->IsOccludee ();
  5328. }
  5329. DllExport int
  5330. Drawable_IsInView (Urho3D::Drawable *_target)
  5331. {
  5332. return _target->IsInView ();
  5333. }
  5334. DllExport int
  5335. Drawable_IsInView0 (Urho3D::Drawable *_target, Urho3D::Camera * camera)
  5336. {
  5337. return _target->IsInView (camera);
  5338. }
  5339. DllExport void
  5340. Drawable_SetZone (Urho3D::Drawable *_target, Urho3D::Zone * zone, bool temporary)
  5341. {
  5342. _target->SetZone (zone, temporary);
  5343. }
  5344. DllExport void
  5345. Drawable_SetSortValue (Urho3D::Drawable *_target, float value)
  5346. {
  5347. _target->SetSortValue (value);
  5348. }
  5349. DllExport void
  5350. Drawable_SetMinMaxZ (Urho3D::Drawable *_target, float minZ, float maxZ)
  5351. {
  5352. _target->SetMinMaxZ (minZ, maxZ);
  5353. }
  5354. DllExport void
  5355. Drawable_MarkInView (Urho3D::Drawable *_target, unsigned int frameNumber)
  5356. {
  5357. _target->MarkInView (frameNumber);
  5358. }
  5359. DllExport void
  5360. Drawable_LimitLights (Urho3D::Drawable *_target)
  5361. {
  5362. _target->LimitLights ();
  5363. }
  5364. DllExport void
  5365. Drawable_LimitVertexLights (Urho3D::Drawable *_target, bool removeConvertedLights)
  5366. {
  5367. _target->LimitVertexLights (removeConvertedLights);
  5368. }
  5369. DllExport void
  5370. Drawable_SetBasePass (Urho3D::Drawable *_target, unsigned int batchIndex)
  5371. {
  5372. _target->SetBasePass (batchIndex);
  5373. }
  5374. DllExport Urho3D::Octant *
  5375. Drawable_GetOctant (Urho3D::Drawable *_target)
  5376. {
  5377. return _target->GetOctant ();
  5378. }
  5379. DllExport Urho3D::Zone *
  5380. Drawable_GetZone (Urho3D::Drawable *_target)
  5381. {
  5382. return _target->GetZone ();
  5383. }
  5384. DllExport int
  5385. Drawable_IsZoneDirty (Urho3D::Drawable *_target)
  5386. {
  5387. return _target->IsZoneDirty ();
  5388. }
  5389. DllExport float
  5390. Drawable_GetDistance (Urho3D::Drawable *_target)
  5391. {
  5392. return _target->GetDistance ();
  5393. }
  5394. DllExport float
  5395. Drawable_GetLodDistance (Urho3D::Drawable *_target)
  5396. {
  5397. return _target->GetLodDistance ();
  5398. }
  5399. DllExport float
  5400. Drawable_GetSortValue (Urho3D::Drawable *_target)
  5401. {
  5402. return _target->GetSortValue ();
  5403. }
  5404. DllExport int
  5405. Drawable_HasBasePass (Urho3D::Drawable *_target, unsigned int batchIndex)
  5406. {
  5407. return _target->HasBasePass (batchIndex);
  5408. }
  5409. DllExport Urho3D::Light *
  5410. Drawable_GetFirstLight (Urho3D::Drawable *_target)
  5411. {
  5412. return _target->GetFirstLight ();
  5413. }
  5414. DllExport float
  5415. Drawable_GetMinZ (Urho3D::Drawable *_target)
  5416. {
  5417. return _target->GetMinZ ();
  5418. }
  5419. DllExport float
  5420. Drawable_GetMaxZ (Urho3D::Drawable *_target)
  5421. {
  5422. return _target->GetMaxZ ();
  5423. }
  5424. DllExport void
  5425. Drawable_AddLight (Urho3D::Drawable *_target, Urho3D::Light * light)
  5426. {
  5427. _target->AddLight (light);
  5428. }
  5429. DllExport void
  5430. Drawable_AddVertexLight (Urho3D::Drawable *_target, Urho3D::Light * light)
  5431. {
  5432. _target->AddVertexLight (light);
  5433. }
  5434. DllExport int
  5435. StaticModel_GetType (Urho3D::StaticModel *_target)
  5436. {
  5437. return (_target->GetType ()).Value ();
  5438. }
  5439. DllExport const char *
  5440. StaticModel_GetTypeName (Urho3D::StaticModel *_target)
  5441. {
  5442. return stringdup((_target->GetTypeName ()).CString ());
  5443. }
  5444. DllExport int
  5445. StaticModel_GetTypeStatic ()
  5446. {
  5447. return (StaticModel::GetTypeStatic ()).Value ();
  5448. }
  5449. DllExport const char *
  5450. StaticModel_GetTypeNameStatic ()
  5451. {
  5452. return stringdup((StaticModel::GetTypeNameStatic ()).CString ());
  5453. }
  5454. DllExport void *
  5455. StaticModel_StaticModel (Urho3D::Context * context)
  5456. {
  5457. return WeakPtr<StaticModel>(new StaticModel(context));
  5458. }
  5459. DllExport void
  5460. StaticModel_RegisterObject (Urho3D::Context * context)
  5461. {
  5462. StaticModel::RegisterObject (context);
  5463. }
  5464. DllExport Urho3D::Geometry *
  5465. StaticModel_GetLodGeometry (Urho3D::StaticModel *_target, unsigned int batchIndex, unsigned int level)
  5466. {
  5467. return _target->GetLodGeometry (batchIndex, level);
  5468. }
  5469. DllExport unsigned int
  5470. StaticModel_GetNumOccluderTriangles (Urho3D::StaticModel *_target)
  5471. {
  5472. return _target->GetNumOccluderTriangles ();
  5473. }
  5474. DllExport int
  5475. StaticModel_DrawOcclusion (Urho3D::StaticModel *_target, Urho3D::OcclusionBuffer * buffer)
  5476. {
  5477. return _target->DrawOcclusion (buffer);
  5478. }
  5479. DllExport void
  5480. StaticModel_SetModel (Urho3D::StaticModel *_target, Urho3D::Model * model)
  5481. {
  5482. _target->SetModel (model);
  5483. }
  5484. DllExport void
  5485. StaticModel_SetMaterial (Urho3D::StaticModel *_target, Urho3D::Material * material)
  5486. {
  5487. _target->SetMaterial (material);
  5488. }
  5489. DllExport int
  5490. StaticModel_SetMaterial0 (Urho3D::StaticModel *_target, unsigned int index, Urho3D::Material * material)
  5491. {
  5492. return _target->SetMaterial (index, material);
  5493. }
  5494. DllExport void
  5495. StaticModel_SetOcclusionLodLevel (Urho3D::StaticModel *_target, unsigned int level)
  5496. {
  5497. _target->SetOcclusionLodLevel (level);
  5498. }
  5499. DllExport void
  5500. StaticModel_ApplyMaterialList (Urho3D::StaticModel *_target, const char * fileName)
  5501. {
  5502. _target->ApplyMaterialList (Urho3D::String(fileName));
  5503. }
  5504. DllExport Urho3D::Model *
  5505. StaticModel_GetModel (Urho3D::StaticModel *_target)
  5506. {
  5507. return _target->GetModel ();
  5508. }
  5509. DllExport unsigned int
  5510. StaticModel_GetNumGeometries (Urho3D::StaticModel *_target)
  5511. {
  5512. return _target->GetNumGeometries ();
  5513. }
  5514. DllExport Urho3D::Material *
  5515. StaticModel_GetMaterial (Urho3D::StaticModel *_target, unsigned int index)
  5516. {
  5517. return _target->GetMaterial (index);
  5518. }
  5519. DllExport unsigned int
  5520. StaticModel_GetOcclusionLodLevel (Urho3D::StaticModel *_target)
  5521. {
  5522. return _target->GetOcclusionLodLevel ();
  5523. }
  5524. DllExport int
  5525. StaticModel_IsInside (Urho3D::StaticModel *_target, const class Urho3D::Vector3 & point)
  5526. {
  5527. return _target->IsInside (point);
  5528. }
  5529. DllExport int
  5530. StaticModel_IsInsideLocal (Urho3D::StaticModel *_target, const class Urho3D::Vector3 & point)
  5531. {
  5532. return _target->IsInsideLocal (point);
  5533. }
  5534. DllExport Urho3D::ResourceRef
  5535. StaticModel_GetModelAttr (Urho3D::StaticModel *_target)
  5536. {
  5537. return _target->GetModelAttr ();
  5538. }
  5539. DllExport int
  5540. AnimatedModel_GetType (Urho3D::AnimatedModel *_target)
  5541. {
  5542. return (_target->GetType ()).Value ();
  5543. }
  5544. DllExport const char *
  5545. AnimatedModel_GetTypeName (Urho3D::AnimatedModel *_target)
  5546. {
  5547. return stringdup((_target->GetTypeName ()).CString ());
  5548. }
  5549. DllExport int
  5550. AnimatedModel_GetTypeStatic ()
  5551. {
  5552. return (AnimatedModel::GetTypeStatic ()).Value ();
  5553. }
  5554. DllExport const char *
  5555. AnimatedModel_GetTypeNameStatic ()
  5556. {
  5557. return stringdup((AnimatedModel::GetTypeNameStatic ()).CString ());
  5558. }
  5559. DllExport void *
  5560. AnimatedModel_AnimatedModel (Urho3D::Context * context)
  5561. {
  5562. return WeakPtr<AnimatedModel>(new AnimatedModel(context));
  5563. }
  5564. DllExport void
  5565. AnimatedModel_RegisterObject (Urho3D::Context * context)
  5566. {
  5567. AnimatedModel::RegisterObject (context);
  5568. }
  5569. DllExport int
  5570. AnimatedModel_Load_File (Urho3D::AnimatedModel *_target, File * source, bool setInstanceDefault)
  5571. {
  5572. return _target->Load (*source, setInstanceDefault);
  5573. }
  5574. DllExport int
  5575. AnimatedModel_Load_MemoryBuffer (Urho3D::AnimatedModel *_target, MemoryBuffer * source, bool setInstanceDefault)
  5576. {
  5577. return _target->Load (*source, setInstanceDefault);
  5578. }
  5579. DllExport int
  5580. AnimatedModel_LoadXML (Urho3D::AnimatedModel *_target, const class Urho3D::XMLElement & source, bool setInstanceDefault)
  5581. {
  5582. return _target->LoadXML (source, setInstanceDefault);
  5583. }
  5584. DllExport void
  5585. AnimatedModel_ApplyAttributes (Urho3D::AnimatedModel *_target)
  5586. {
  5587. _target->ApplyAttributes ();
  5588. }
  5589. DllExport enum Urho3D::UpdateGeometryType
  5590. AnimatedModel_GetUpdateGeometryType (Urho3D::AnimatedModel *_target)
  5591. {
  5592. return _target->GetUpdateGeometryType ();
  5593. }
  5594. DllExport void
  5595. AnimatedModel_DrawDebugGeometry (Urho3D::AnimatedModel *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  5596. {
  5597. _target->DrawDebugGeometry (debug, depthTest);
  5598. }
  5599. DllExport void
  5600. AnimatedModel_SetModel (Urho3D::AnimatedModel *_target, Urho3D::Model * model, bool createBones)
  5601. {
  5602. _target->SetModel (model, createBones);
  5603. }
  5604. DllExport Urho3D::AnimationState *
  5605. AnimatedModel_AddAnimationState (Urho3D::AnimatedModel *_target, Urho3D::Animation * animation)
  5606. {
  5607. return _target->AddAnimationState (animation);
  5608. }
  5609. DllExport void
  5610. AnimatedModel_RemoveAnimationState (Urho3D::AnimatedModel *_target, Urho3D::Animation * animation)
  5611. {
  5612. _target->RemoveAnimationState (animation);
  5613. }
  5614. DllExport void
  5615. AnimatedModel_RemoveAnimationState0 (Urho3D::AnimatedModel *_target, const char * animationName)
  5616. {
  5617. _target->RemoveAnimationState (Urho3D::String(animationName));
  5618. }
  5619. DllExport void
  5620. AnimatedModel_RemoveAnimationState1 (Urho3D::AnimatedModel *_target, int animationNameHash)
  5621. {
  5622. _target->RemoveAnimationState (Urho3D::StringHash(animationNameHash));
  5623. }
  5624. DllExport void
  5625. AnimatedModel_RemoveAnimationState2 (Urho3D::AnimatedModel *_target, Urho3D::AnimationState * state)
  5626. {
  5627. _target->RemoveAnimationState (state);
  5628. }
  5629. DllExport void
  5630. AnimatedModel_RemoveAnimationState3 (Urho3D::AnimatedModel *_target, unsigned int index)
  5631. {
  5632. _target->RemoveAnimationState (index);
  5633. }
  5634. DllExport void
  5635. AnimatedModel_RemoveAllAnimationStates (Urho3D::AnimatedModel *_target)
  5636. {
  5637. _target->RemoveAllAnimationStates ();
  5638. }
  5639. DllExport void
  5640. AnimatedModel_SetAnimationLodBias (Urho3D::AnimatedModel *_target, float bias)
  5641. {
  5642. _target->SetAnimationLodBias (bias);
  5643. }
  5644. DllExport void
  5645. AnimatedModel_SetUpdateInvisible (Urho3D::AnimatedModel *_target, bool enable)
  5646. {
  5647. _target->SetUpdateInvisible (enable);
  5648. }
  5649. DllExport void
  5650. AnimatedModel_SetMorphWeight (Urho3D::AnimatedModel *_target, unsigned int index, float weight)
  5651. {
  5652. _target->SetMorphWeight (index, weight);
  5653. }
  5654. DllExport void
  5655. AnimatedModel_SetMorphWeight4 (Urho3D::AnimatedModel *_target, const char * name, float weight)
  5656. {
  5657. _target->SetMorphWeight (Urho3D::String(name), weight);
  5658. }
  5659. DllExport void
  5660. AnimatedModel_SetMorphWeight5 (Urho3D::AnimatedModel *_target, int nameHash, float weight)
  5661. {
  5662. _target->SetMorphWeight (Urho3D::StringHash(nameHash), weight);
  5663. }
  5664. DllExport void
  5665. AnimatedModel_ResetMorphWeights (Urho3D::AnimatedModel *_target)
  5666. {
  5667. _target->ResetMorphWeights ();
  5668. }
  5669. DllExport void
  5670. AnimatedModel_ApplyAnimation (Urho3D::AnimatedModel *_target)
  5671. {
  5672. _target->ApplyAnimation ();
  5673. }
  5674. DllExport const Vector<SharedPtr<class Urho3D::AnimationState> > &
  5675. AnimatedModel_GetAnimationStates (Urho3D::AnimatedModel *_target)
  5676. {
  5677. return _target->GetAnimationStates ();
  5678. }
  5679. DllExport unsigned int
  5680. AnimatedModel_GetNumAnimationStates (Urho3D::AnimatedModel *_target)
  5681. {
  5682. return _target->GetNumAnimationStates ();
  5683. }
  5684. DllExport Urho3D::AnimationState *
  5685. AnimatedModel_GetAnimationState (Urho3D::AnimatedModel *_target, Urho3D::Animation * animation)
  5686. {
  5687. return _target->GetAnimationState (animation);
  5688. }
  5689. DllExport Urho3D::AnimationState *
  5690. AnimatedModel_GetAnimationState6 (Urho3D::AnimatedModel *_target, const char * animationName)
  5691. {
  5692. return _target->GetAnimationState (Urho3D::String(animationName));
  5693. }
  5694. DllExport Urho3D::AnimationState *
  5695. AnimatedModel_GetAnimationState7 (Urho3D::AnimatedModel *_target, int animationNameHash)
  5696. {
  5697. return _target->GetAnimationState (Urho3D::StringHash(animationNameHash));
  5698. }
  5699. DllExport Urho3D::AnimationState *
  5700. AnimatedModel_GetAnimationState8 (Urho3D::AnimatedModel *_target, unsigned int index)
  5701. {
  5702. return _target->GetAnimationState (index);
  5703. }
  5704. DllExport float
  5705. AnimatedModel_GetAnimationLodBias (Urho3D::AnimatedModel *_target)
  5706. {
  5707. return _target->GetAnimationLodBias ();
  5708. }
  5709. DllExport int
  5710. AnimatedModel_GetUpdateInvisible (Urho3D::AnimatedModel *_target)
  5711. {
  5712. return _target->GetUpdateInvisible ();
  5713. }
  5714. DllExport const Vector<SharedPtr<class Urho3D::VertexBuffer> > &
  5715. AnimatedModel_GetMorphVertexBuffers (Urho3D::AnimatedModel *_target)
  5716. {
  5717. return _target->GetMorphVertexBuffers ();
  5718. }
  5719. DllExport unsigned int
  5720. AnimatedModel_GetNumMorphs (Urho3D::AnimatedModel *_target)
  5721. {
  5722. return _target->GetNumMorphs ();
  5723. }
  5724. DllExport float
  5725. AnimatedModel_GetMorphWeight (Urho3D::AnimatedModel *_target, unsigned int index)
  5726. {
  5727. return _target->GetMorphWeight (index);
  5728. }
  5729. DllExport float
  5730. AnimatedModel_GetMorphWeight9 (Urho3D::AnimatedModel *_target, const char * name)
  5731. {
  5732. return _target->GetMorphWeight (Urho3D::String(name));
  5733. }
  5734. DllExport float
  5735. AnimatedModel_GetMorphWeight10 (Urho3D::AnimatedModel *_target, int nameHash)
  5736. {
  5737. return _target->GetMorphWeight (Urho3D::StringHash(nameHash));
  5738. }
  5739. DllExport int
  5740. AnimatedModel_IsMaster (Urho3D::AnimatedModel *_target)
  5741. {
  5742. return _target->IsMaster ();
  5743. }
  5744. DllExport Urho3D::ResourceRef
  5745. AnimatedModel_GetModelAttr (Urho3D::AnimatedModel *_target)
  5746. {
  5747. return _target->GetModelAttr ();
  5748. }
  5749. DllExport void
  5750. AnimatedModel_UpdateBoneBoundingBox (Urho3D::AnimatedModel *_target)
  5751. {
  5752. _target->UpdateBoneBoundingBox ();
  5753. }
  5754. DllExport int
  5755. Animation_GetType (Urho3D::Animation *_target)
  5756. {
  5757. return (_target->GetType ()).Value ();
  5758. }
  5759. DllExport const char *
  5760. Animation_GetTypeName (Urho3D::Animation *_target)
  5761. {
  5762. return stringdup((_target->GetTypeName ()).CString ());
  5763. }
  5764. DllExport int
  5765. Animation_GetTypeStatic ()
  5766. {
  5767. return (Animation::GetTypeStatic ()).Value ();
  5768. }
  5769. DllExport const char *
  5770. Animation_GetTypeNameStatic ()
  5771. {
  5772. return stringdup((Animation::GetTypeNameStatic ()).CString ());
  5773. }
  5774. DllExport void *
  5775. Animation_Animation (Urho3D::Context * context)
  5776. {
  5777. return WeakPtr<Animation>(new Animation(context));
  5778. }
  5779. DllExport void
  5780. Animation_RegisterObject (Urho3D::Context * context)
  5781. {
  5782. Animation::RegisterObject (context);
  5783. }
  5784. DllExport int
  5785. Animation_BeginLoad_File (Urho3D::Animation *_target, File * source)
  5786. {
  5787. return _target->BeginLoad (*source);
  5788. }
  5789. DllExport int
  5790. Animation_BeginLoad_MemoryBuffer (Urho3D::Animation *_target, MemoryBuffer * source)
  5791. {
  5792. return _target->BeginLoad (*source);
  5793. }
  5794. DllExport int
  5795. Animation_Save_File (Urho3D::Animation *_target, File * dest)
  5796. {
  5797. return _target->Save (*dest);
  5798. }
  5799. DllExport int
  5800. Animation_Save_MemoryBuffer (Urho3D::Animation *_target, MemoryBuffer * dest)
  5801. {
  5802. return _target->Save (*dest);
  5803. }
  5804. DllExport void
  5805. Animation_SetAnimationName (Urho3D::Animation *_target, const char * name)
  5806. {
  5807. _target->SetAnimationName (Urho3D::String(name));
  5808. }
  5809. DllExport void
  5810. Animation_SetLength (Urho3D::Animation *_target, float length)
  5811. {
  5812. _target->SetLength (length);
  5813. }
  5814. DllExport Urho3D::AnimationTrack *
  5815. Animation_CreateTrack (Urho3D::Animation *_target, const char * name)
  5816. {
  5817. return _target->CreateTrack (Urho3D::String(name));
  5818. }
  5819. DllExport int
  5820. Animation_RemoveTrack (Urho3D::Animation *_target, const char * name)
  5821. {
  5822. return _target->RemoveTrack (Urho3D::String(name));
  5823. }
  5824. DllExport void
  5825. Animation_RemoveAllTracks (Urho3D::Animation *_target)
  5826. {
  5827. _target->RemoveAllTracks ();
  5828. }
  5829. // Urho3D::Variant overloads begin:
  5830. DllExport void
  5831. Animation_AddTrigger_0 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::Vector3 & data)
  5832. {
  5833. _target->AddTrigger (time, timeIsNormalized, (data));
  5834. }
  5835. DllExport void
  5836. Animation_AddTrigger_1 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::IntRect & data)
  5837. {
  5838. _target->AddTrigger (time, timeIsNormalized, (data));
  5839. }
  5840. DllExport void
  5841. Animation_AddTrigger_2 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::Color & data)
  5842. {
  5843. _target->AddTrigger (time, timeIsNormalized, (data));
  5844. }
  5845. DllExport void
  5846. Animation_AddTrigger_3 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::Vector2 & data)
  5847. {
  5848. _target->AddTrigger (time, timeIsNormalized, (data));
  5849. }
  5850. DllExport void
  5851. Animation_AddTrigger_4 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::Vector4 & data)
  5852. {
  5853. _target->AddTrigger (time, timeIsNormalized, (data));
  5854. }
  5855. DllExport void
  5856. Animation_AddTrigger_5 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::IntVector2 & data)
  5857. {
  5858. _target->AddTrigger (time, timeIsNormalized, (data));
  5859. }
  5860. DllExport void
  5861. Animation_AddTrigger_6 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::Quaternion & data)
  5862. {
  5863. _target->AddTrigger (time, timeIsNormalized, (data));
  5864. }
  5865. DllExport void
  5866. Animation_AddTrigger_7 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::Matrix4 & data)
  5867. {
  5868. _target->AddTrigger (time, timeIsNormalized, (data));
  5869. }
  5870. DllExport void
  5871. Animation_AddTrigger_8 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::Matrix3x4 & data)
  5872. {
  5873. _target->AddTrigger (time, timeIsNormalized, (data));
  5874. }
  5875. DllExport void
  5876. Animation_AddTrigger_9 (Urho3D::Animation *_target, float time, bool timeIsNormalized, int data)
  5877. {
  5878. _target->AddTrigger (time, timeIsNormalized, (data));
  5879. }
  5880. DllExport void
  5881. Animation_AddTrigger_10 (Urho3D::Animation *_target, float time, bool timeIsNormalized, float data)
  5882. {
  5883. _target->AddTrigger (time, timeIsNormalized, (data));
  5884. }
  5885. DllExport void
  5886. Animation_AddTrigger_11 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const char * data)
  5887. {
  5888. _target->AddTrigger (time, timeIsNormalized, Urho3D::String(data));
  5889. }
  5890. DllExport void
  5891. Animation_AddTrigger_12 (Urho3D::Animation *_target, float time, bool timeIsNormalized, bool data)
  5892. {
  5893. _target->AddTrigger (time, timeIsNormalized, (data));
  5894. }
  5895. // Urho3D::Variant overloads end.
  5896. DllExport void
  5897. Animation_RemoveTrigger (Urho3D::Animation *_target, unsigned int index)
  5898. {
  5899. _target->RemoveTrigger (index);
  5900. }
  5901. DllExport void
  5902. Animation_RemoveAllTriggers (Urho3D::Animation *_target)
  5903. {
  5904. _target->RemoveAllTriggers ();
  5905. }
  5906. DllExport void
  5907. Animation_SetNumTriggers (Urho3D::Animation *_target, unsigned int num)
  5908. {
  5909. _target->SetNumTriggers (num);
  5910. }
  5911. DllExport Urho3D::Animation *
  5912. Animation_Clone (Urho3D::Animation *_target, const char * cloneName)
  5913. {
  5914. auto copy = _target->Clone (Urho3D::String(cloneName));
  5915. auto plain = copy.Get();
  5916. copy.Detach();
  5917. delete copy;
  5918. return plain;
  5919. }
  5920. DllExport const char *
  5921. Animation_GetAnimationName (Urho3D::Animation *_target)
  5922. {
  5923. return stringdup((_target->GetAnimationName ()).CString ());
  5924. }
  5925. DllExport int
  5926. Animation_GetAnimationNameHash (Urho3D::Animation *_target)
  5927. {
  5928. return (_target->GetAnimationNameHash ()).Value ();
  5929. }
  5930. DllExport float
  5931. Animation_GetLength (Urho3D::Animation *_target)
  5932. {
  5933. return _target->GetLength ();
  5934. }
  5935. DllExport unsigned int
  5936. Animation_GetNumTracks (Urho3D::Animation *_target)
  5937. {
  5938. return _target->GetNumTracks ();
  5939. }
  5940. DllExport Urho3D::AnimationTrack *
  5941. Animation_GetTrack (Urho3D::Animation *_target, unsigned int index)
  5942. {
  5943. return _target->GetTrack (index);
  5944. }
  5945. DllExport Urho3D::AnimationTrack *
  5946. Animation_GetTrack0 (Urho3D::Animation *_target, const char * name)
  5947. {
  5948. return _target->GetTrack (Urho3D::String(name));
  5949. }
  5950. DllExport Urho3D::AnimationTrack *
  5951. Animation_GetTrack1 (Urho3D::Animation *_target, int nameHash)
  5952. {
  5953. return _target->GetTrack (Urho3D::StringHash(nameHash));
  5954. }
  5955. DllExport unsigned int
  5956. Animation_GetNumTriggers (Urho3D::Animation *_target)
  5957. {
  5958. return _target->GetNumTriggers ();
  5959. }
  5960. DllExport Urho3D::AnimationTriggerPoint *
  5961. Animation_GetTrigger (Urho3D::Animation *_target, unsigned int index)
  5962. {
  5963. return _target->GetTrigger (index);
  5964. }
  5965. DllExport void *
  5966. AnimationState_AnimationState (Urho3D::AnimatedModel * model, Urho3D::Animation * animation)
  5967. {
  5968. return WeakPtr<AnimationState>(new AnimationState(model, animation));
  5969. }
  5970. DllExport void *
  5971. AnimationState_AnimationState0 (Urho3D::Node * node, Urho3D::Animation * animation)
  5972. {
  5973. return WeakPtr<AnimationState>(new AnimationState(node, animation));
  5974. }
  5975. DllExport void
  5976. AnimationState_SetStartBone (Urho3D::AnimationState *_target, Urho3D::Bone * bone)
  5977. {
  5978. _target->SetStartBone (bone);
  5979. }
  5980. DllExport void
  5981. AnimationState_SetLooped (Urho3D::AnimationState *_target, bool looped)
  5982. {
  5983. _target->SetLooped (looped);
  5984. }
  5985. DllExport void
  5986. AnimationState_SetWeight (Urho3D::AnimationState *_target, float weight)
  5987. {
  5988. _target->SetWeight (weight);
  5989. }
  5990. DllExport void
  5991. AnimationState_SetBlendMode (Urho3D::AnimationState *_target, enum Urho3D::AnimationBlendMode mode)
  5992. {
  5993. _target->SetBlendMode (mode);
  5994. }
  5995. DllExport void
  5996. AnimationState_SetTime (Urho3D::AnimationState *_target, float time)
  5997. {
  5998. _target->SetTime (time);
  5999. }
  6000. DllExport void
  6001. AnimationState_SetBoneWeight (Urho3D::AnimationState *_target, unsigned int index, float weight, bool recursive)
  6002. {
  6003. _target->SetBoneWeight (index, weight, recursive);
  6004. }
  6005. DllExport void
  6006. AnimationState_SetBoneWeight1 (Urho3D::AnimationState *_target, const char * name, float weight, bool recursive)
  6007. {
  6008. _target->SetBoneWeight (Urho3D::String(name), weight, recursive);
  6009. }
  6010. DllExport void
  6011. AnimationState_SetBoneWeight2 (Urho3D::AnimationState *_target, int nameHash, float weight, bool recursive)
  6012. {
  6013. _target->SetBoneWeight (Urho3D::StringHash(nameHash), weight, recursive);
  6014. }
  6015. DllExport void
  6016. AnimationState_AddWeight (Urho3D::AnimationState *_target, float delta)
  6017. {
  6018. _target->AddWeight (delta);
  6019. }
  6020. DllExport void
  6021. AnimationState_AddTime (Urho3D::AnimationState *_target, float delta)
  6022. {
  6023. _target->AddTime (delta);
  6024. }
  6025. DllExport void
  6026. AnimationState_SetLayer (Urho3D::AnimationState *_target, unsigned char layer)
  6027. {
  6028. _target->SetLayer (layer);
  6029. }
  6030. DllExport Urho3D::Animation *
  6031. AnimationState_GetAnimation (Urho3D::AnimationState *_target)
  6032. {
  6033. return _target->GetAnimation ();
  6034. }
  6035. DllExport Urho3D::AnimatedModel *
  6036. AnimationState_GetModel (Urho3D::AnimationState *_target)
  6037. {
  6038. return _target->GetModel ();
  6039. }
  6040. DllExport Urho3D::Node *
  6041. AnimationState_GetNode (Urho3D::AnimationState *_target)
  6042. {
  6043. return _target->GetNode ();
  6044. }
  6045. DllExport Urho3D::Bone *
  6046. AnimationState_GetStartBone (Urho3D::AnimationState *_target)
  6047. {
  6048. return _target->GetStartBone ();
  6049. }
  6050. DllExport float
  6051. AnimationState_GetBoneWeight (Urho3D::AnimationState *_target, unsigned int index)
  6052. {
  6053. return _target->GetBoneWeight (index);
  6054. }
  6055. DllExport float
  6056. AnimationState_GetBoneWeight3 (Urho3D::AnimationState *_target, const char * name)
  6057. {
  6058. return _target->GetBoneWeight (Urho3D::String(name));
  6059. }
  6060. DllExport float
  6061. AnimationState_GetBoneWeight4 (Urho3D::AnimationState *_target, int nameHash)
  6062. {
  6063. return _target->GetBoneWeight (Urho3D::StringHash(nameHash));
  6064. }
  6065. DllExport unsigned int
  6066. AnimationState_GetTrackIndex (Urho3D::AnimationState *_target, Urho3D::Node * node)
  6067. {
  6068. return _target->GetTrackIndex (node);
  6069. }
  6070. DllExport unsigned int
  6071. AnimationState_GetTrackIndex5 (Urho3D::AnimationState *_target, const char * name)
  6072. {
  6073. return _target->GetTrackIndex (Urho3D::String(name));
  6074. }
  6075. DllExport unsigned int
  6076. AnimationState_GetTrackIndex6 (Urho3D::AnimationState *_target, int nameHash)
  6077. {
  6078. return _target->GetTrackIndex (Urho3D::StringHash(nameHash));
  6079. }
  6080. DllExport int
  6081. AnimationState_IsEnabled (Urho3D::AnimationState *_target)
  6082. {
  6083. return _target->IsEnabled ();
  6084. }
  6085. DllExport int
  6086. AnimationState_IsLooped (Urho3D::AnimationState *_target)
  6087. {
  6088. return _target->IsLooped ();
  6089. }
  6090. DllExport float
  6091. AnimationState_GetWeight (Urho3D::AnimationState *_target)
  6092. {
  6093. return _target->GetWeight ();
  6094. }
  6095. DllExport enum Urho3D::AnimationBlendMode
  6096. AnimationState_GetBlendMode (Urho3D::AnimationState *_target)
  6097. {
  6098. return _target->GetBlendMode ();
  6099. }
  6100. DllExport float
  6101. AnimationState_GetTime (Urho3D::AnimationState *_target)
  6102. {
  6103. return _target->GetTime ();
  6104. }
  6105. DllExport float
  6106. AnimationState_GetLength (Urho3D::AnimationState *_target)
  6107. {
  6108. return _target->GetLength ();
  6109. }
  6110. DllExport unsigned char
  6111. AnimationState_GetLayer (Urho3D::AnimationState *_target)
  6112. {
  6113. return _target->GetLayer ();
  6114. }
  6115. DllExport void
  6116. AnimationState_Apply (Urho3D::AnimationState *_target)
  6117. {
  6118. _target->Apply ();
  6119. }
  6120. DllExport int
  6121. AnimationController_GetType (Urho3D::AnimationController *_target)
  6122. {
  6123. return (_target->GetType ()).Value ();
  6124. }
  6125. DllExport const char *
  6126. AnimationController_GetTypeName (Urho3D::AnimationController *_target)
  6127. {
  6128. return stringdup((_target->GetTypeName ()).CString ());
  6129. }
  6130. DllExport int
  6131. AnimationController_GetTypeStatic ()
  6132. {
  6133. return (AnimationController::GetTypeStatic ()).Value ();
  6134. }
  6135. DllExport const char *
  6136. AnimationController_GetTypeNameStatic ()
  6137. {
  6138. return stringdup((AnimationController::GetTypeNameStatic ()).CString ());
  6139. }
  6140. DllExport void *
  6141. AnimationController_AnimationController (Urho3D::Context * context)
  6142. {
  6143. return WeakPtr<AnimationController>(new AnimationController(context));
  6144. }
  6145. DllExport void
  6146. AnimationController_RegisterObject (Urho3D::Context * context)
  6147. {
  6148. AnimationController::RegisterObject (context);
  6149. }
  6150. DllExport void
  6151. AnimationController_OnSetEnabled (Urho3D::AnimationController *_target)
  6152. {
  6153. _target->OnSetEnabled ();
  6154. }
  6155. DllExport void
  6156. AnimationController_Update (Urho3D::AnimationController *_target, float timeStep)
  6157. {
  6158. _target->Update (timeStep);
  6159. }
  6160. DllExport int
  6161. AnimationController_Play (Urho3D::AnimationController *_target, const char * name, unsigned char layer, bool looped, float fadeInTime)
  6162. {
  6163. return _target->Play (Urho3D::String(name), layer, looped, fadeInTime);
  6164. }
  6165. DllExport int
  6166. AnimationController_PlayExclusive (Urho3D::AnimationController *_target, const char * name, unsigned char layer, bool looped, float fadeTime)
  6167. {
  6168. return _target->PlayExclusive (Urho3D::String(name), layer, looped, fadeTime);
  6169. }
  6170. DllExport int
  6171. AnimationController_Stop (Urho3D::AnimationController *_target, const char * name, float fadeOutTime)
  6172. {
  6173. return _target->Stop (Urho3D::String(name), fadeOutTime);
  6174. }
  6175. DllExport void
  6176. AnimationController_StopLayer (Urho3D::AnimationController *_target, unsigned char layer, float fadeOutTime)
  6177. {
  6178. _target->StopLayer (layer, fadeOutTime);
  6179. }
  6180. DllExport void
  6181. AnimationController_StopAll (Urho3D::AnimationController *_target, float fadeTime)
  6182. {
  6183. _target->StopAll (fadeTime);
  6184. }
  6185. DllExport int
  6186. AnimationController_Fade (Urho3D::AnimationController *_target, const char * name, float targetWeight, float fadeTime)
  6187. {
  6188. return _target->Fade (Urho3D::String(name), targetWeight, fadeTime);
  6189. }
  6190. DllExport int
  6191. AnimationController_FadeOthers (Urho3D::AnimationController *_target, const char * name, float targetWeight, float fadeTime)
  6192. {
  6193. return _target->FadeOthers (Urho3D::String(name), targetWeight, fadeTime);
  6194. }
  6195. DllExport int
  6196. AnimationController_SetLayer (Urho3D::AnimationController *_target, const char * name, unsigned char layer)
  6197. {
  6198. return _target->SetLayer (Urho3D::String(name), layer);
  6199. }
  6200. DllExport int
  6201. AnimationController_SetStartBone (Urho3D::AnimationController *_target, const char * name, const char * startBoneName)
  6202. {
  6203. return _target->SetStartBone (Urho3D::String(name), Urho3D::String(startBoneName));
  6204. }
  6205. DllExport int
  6206. AnimationController_SetTime (Urho3D::AnimationController *_target, const char * name, float time)
  6207. {
  6208. return _target->SetTime (Urho3D::String(name), time);
  6209. }
  6210. DllExport int
  6211. AnimationController_SetWeight (Urho3D::AnimationController *_target, const char * name, float weight)
  6212. {
  6213. return _target->SetWeight (Urho3D::String(name), weight);
  6214. }
  6215. DllExport int
  6216. AnimationController_SetLooped (Urho3D::AnimationController *_target, const char * name, bool enable)
  6217. {
  6218. return _target->SetLooped (Urho3D::String(name), enable);
  6219. }
  6220. DllExport int
  6221. AnimationController_SetSpeed (Urho3D::AnimationController *_target, const char * name, float speed)
  6222. {
  6223. return _target->SetSpeed (Urho3D::String(name), speed);
  6224. }
  6225. DllExport int
  6226. AnimationController_SetAutoFade (Urho3D::AnimationController *_target, const char * name, float fadeOutTime)
  6227. {
  6228. return _target->SetAutoFade (Urho3D::String(name), fadeOutTime);
  6229. }
  6230. DllExport int
  6231. AnimationController_SetRemoveOnCompletion (Urho3D::AnimationController *_target, const char * name, bool removeOnCompletion)
  6232. {
  6233. return _target->SetRemoveOnCompletion (Urho3D::String(name), removeOnCompletion);
  6234. }
  6235. DllExport int
  6236. AnimationController_SetBlendMode (Urho3D::AnimationController *_target, const char * name, enum Urho3D::AnimationBlendMode mode)
  6237. {
  6238. return _target->SetBlendMode (Urho3D::String(name), mode);
  6239. }
  6240. DllExport int
  6241. AnimationController_IsPlaying (Urho3D::AnimationController *_target, const char * name)
  6242. {
  6243. return _target->IsPlaying (Urho3D::String(name));
  6244. }
  6245. DllExport int
  6246. AnimationController_IsPlaying0 (Urho3D::AnimationController *_target, unsigned char layer)
  6247. {
  6248. return _target->IsPlaying (layer);
  6249. }
  6250. DllExport int
  6251. AnimationController_IsFadingIn (Urho3D::AnimationController *_target, const char * name)
  6252. {
  6253. return _target->IsFadingIn (Urho3D::String(name));
  6254. }
  6255. DllExport int
  6256. AnimationController_IsFadingOut (Urho3D::AnimationController *_target, const char * name)
  6257. {
  6258. return _target->IsFadingOut (Urho3D::String(name));
  6259. }
  6260. DllExport int
  6261. AnimationController_IsAtEnd (Urho3D::AnimationController *_target, const char * name)
  6262. {
  6263. return _target->IsAtEnd (Urho3D::String(name));
  6264. }
  6265. DllExport unsigned char
  6266. AnimationController_GetLayer (Urho3D::AnimationController *_target, const char * name)
  6267. {
  6268. return _target->GetLayer (Urho3D::String(name));
  6269. }
  6270. DllExport Urho3D::Bone *
  6271. AnimationController_GetStartBone (Urho3D::AnimationController *_target, const char * name)
  6272. {
  6273. return _target->GetStartBone (Urho3D::String(name));
  6274. }
  6275. DllExport const char *
  6276. AnimationController_GetStartBoneName (Urho3D::AnimationController *_target, const char * name)
  6277. {
  6278. return stringdup((_target->GetStartBoneName (Urho3D::String(name))).CString ());
  6279. }
  6280. DllExport float
  6281. AnimationController_GetTime (Urho3D::AnimationController *_target, const char * name)
  6282. {
  6283. return _target->GetTime (Urho3D::String(name));
  6284. }
  6285. DllExport float
  6286. AnimationController_GetWeight (Urho3D::AnimationController *_target, const char * name)
  6287. {
  6288. return _target->GetWeight (Urho3D::String(name));
  6289. }
  6290. DllExport int
  6291. AnimationController_IsLooped (Urho3D::AnimationController *_target, const char * name)
  6292. {
  6293. return _target->IsLooped (Urho3D::String(name));
  6294. }
  6295. DllExport enum Urho3D::AnimationBlendMode
  6296. AnimationController_GetBlendMode (Urho3D::AnimationController *_target, const char * name)
  6297. {
  6298. return _target->GetBlendMode (Urho3D::String(name));
  6299. }
  6300. DllExport float
  6301. AnimationController_GetLength (Urho3D::AnimationController *_target, const char * name)
  6302. {
  6303. return _target->GetLength (Urho3D::String(name));
  6304. }
  6305. DllExport float
  6306. AnimationController_GetSpeed (Urho3D::AnimationController *_target, const char * name)
  6307. {
  6308. return _target->GetSpeed (Urho3D::String(name));
  6309. }
  6310. DllExport float
  6311. AnimationController_GetFadeTarget (Urho3D::AnimationController *_target, const char * name)
  6312. {
  6313. return _target->GetFadeTarget (Urho3D::String(name));
  6314. }
  6315. DllExport float
  6316. AnimationController_GetFadeTime (Urho3D::AnimationController *_target, const char * name)
  6317. {
  6318. return _target->GetFadeTime (Urho3D::String(name));
  6319. }
  6320. DllExport float
  6321. AnimationController_GetAutoFade (Urho3D::AnimationController *_target, const char * name)
  6322. {
  6323. return _target->GetAutoFade (Urho3D::String(name));
  6324. }
  6325. DllExport int
  6326. AnimationController_GetRemoveOnCompletion (Urho3D::AnimationController *_target, const char * name)
  6327. {
  6328. return _target->GetRemoveOnCompletion (Urho3D::String(name));
  6329. }
  6330. DllExport Urho3D::AnimationState *
  6331. AnimationController_GetAnimationState (Urho3D::AnimationController *_target, const char * name)
  6332. {
  6333. return _target->GetAnimationState (Urho3D::String(name));
  6334. }
  6335. DllExport Urho3D::AnimationState *
  6336. AnimationController_GetAnimationState1 (Urho3D::AnimationController *_target, int nameHash)
  6337. {
  6338. return _target->GetAnimationState (Urho3D::StringHash(nameHash));
  6339. }
  6340. DllExport void *
  6341. Sphere_Sphere ()
  6342. {
  6343. return new Sphere();
  6344. }
  6345. DllExport void *
  6346. Sphere_Sphere0 (const class Urho3D::Sphere & sphere)
  6347. {
  6348. return new Sphere(sphere);
  6349. }
  6350. DllExport void *
  6351. Sphere_Sphere1 (const class Urho3D::Vector3 & center, float radius)
  6352. {
  6353. return new Sphere(center, radius);
  6354. }
  6355. DllExport void *
  6356. Sphere_Sphere2 (const class Urho3D::Vector3 * vertices, unsigned int count)
  6357. {
  6358. return new Sphere(vertices, count);
  6359. }
  6360. DllExport void *
  6361. Sphere_Sphere3 (const class Urho3D::BoundingBox & box)
  6362. {
  6363. return new Sphere(box);
  6364. }
  6365. DllExport void *
  6366. Sphere_Sphere4 (const class Urho3D::Frustum & frustum)
  6367. {
  6368. return new Sphere(frustum);
  6369. }
  6370. DllExport void *
  6371. Sphere_Sphere5 (const class Urho3D::Polyhedron & poly)
  6372. {
  6373. return new Sphere(poly);
  6374. }
  6375. DllExport void
  6376. Sphere_Define (Urho3D::Sphere *_target, const class Urho3D::Sphere & sphere)
  6377. {
  6378. _target->Define (sphere);
  6379. }
  6380. DllExport void
  6381. Sphere_Define6 (Urho3D::Sphere *_target, const class Urho3D::Vector3 & center, float radius)
  6382. {
  6383. _target->Define (center, radius);
  6384. }
  6385. DllExport void
  6386. Sphere_Define7 (Urho3D::Sphere *_target, const class Urho3D::Vector3 * vertices, unsigned int count)
  6387. {
  6388. _target->Define (vertices, count);
  6389. }
  6390. DllExport void
  6391. Sphere_Define8 (Urho3D::Sphere *_target, const class Urho3D::BoundingBox & box)
  6392. {
  6393. _target->Define (box);
  6394. }
  6395. DllExport void
  6396. Sphere_Define9 (Urho3D::Sphere *_target, const class Urho3D::Frustum & frustum)
  6397. {
  6398. _target->Define (frustum);
  6399. }
  6400. DllExport void
  6401. Sphere_Define10 (Urho3D::Sphere *_target, const class Urho3D::Polyhedron & poly)
  6402. {
  6403. _target->Define (poly);
  6404. }
  6405. DllExport void
  6406. Sphere_Merge (Urho3D::Sphere *_target, const class Urho3D::Vector3 & point)
  6407. {
  6408. _target->Merge (point);
  6409. }
  6410. DllExport void
  6411. Sphere_Merge11 (Urho3D::Sphere *_target, const class Urho3D::Vector3 * vertices, unsigned int count)
  6412. {
  6413. _target->Merge (vertices, count);
  6414. }
  6415. DllExport void
  6416. Sphere_Merge12 (Urho3D::Sphere *_target, const class Urho3D::BoundingBox & box)
  6417. {
  6418. _target->Merge (box);
  6419. }
  6420. DllExport void
  6421. Sphere_Merge13 (Urho3D::Sphere *_target, const class Urho3D::Frustum & frustum)
  6422. {
  6423. _target->Merge (frustum);
  6424. }
  6425. DllExport void
  6426. Sphere_Merge14 (Urho3D::Sphere *_target, const class Urho3D::Polyhedron & poly)
  6427. {
  6428. _target->Merge (poly);
  6429. }
  6430. DllExport void
  6431. Sphere_Merge15 (Urho3D::Sphere *_target, const class Urho3D::Sphere & sphere)
  6432. {
  6433. _target->Merge (sphere);
  6434. }
  6435. DllExport void
  6436. Sphere_Clear (Urho3D::Sphere *_target)
  6437. {
  6438. _target->Clear ();
  6439. }
  6440. DllExport int
  6441. Sphere_Defined (Urho3D::Sphere *_target)
  6442. {
  6443. return _target->Defined ();
  6444. }
  6445. DllExport enum Urho3D::Intersection
  6446. Sphere_IsInside (Urho3D::Sphere *_target, const class Urho3D::Vector3 & point)
  6447. {
  6448. return _target->IsInside (point);
  6449. }
  6450. DllExport enum Urho3D::Intersection
  6451. Sphere_IsInside16 (Urho3D::Sphere *_target, const class Urho3D::Sphere & sphere)
  6452. {
  6453. return _target->IsInside (sphere);
  6454. }
  6455. DllExport enum Urho3D::Intersection
  6456. Sphere_IsInsideFast (Urho3D::Sphere *_target, const class Urho3D::Sphere & sphere)
  6457. {
  6458. return _target->IsInsideFast (sphere);
  6459. }
  6460. DllExport enum Urho3D::Intersection
  6461. Sphere_IsInside17 (Urho3D::Sphere *_target, const class Urho3D::BoundingBox & box)
  6462. {
  6463. return _target->IsInside (box);
  6464. }
  6465. DllExport enum Urho3D::Intersection
  6466. Sphere_IsInsideFast18 (Urho3D::Sphere *_target, const class Urho3D::BoundingBox & box)
  6467. {
  6468. return _target->IsInsideFast (box);
  6469. }
  6470. DllExport float
  6471. Sphere_Distance (Urho3D::Sphere *_target, const class Urho3D::Vector3 & point)
  6472. {
  6473. return _target->Distance (point);
  6474. }
  6475. DllExport Interop::Vector3
  6476. Sphere_GetLocalPoint (Urho3D::Sphere *_target, float theta, float phi)
  6477. {
  6478. return *((Interop::Vector3 *) &(_target->GetLocalPoint (theta, phi)));
  6479. }
  6480. DllExport Interop::Vector3
  6481. Sphere_GetPoint (Urho3D::Sphere *_target, float theta, float phi)
  6482. {
  6483. return *((Interop::Vector3 *) &(_target->GetPoint (theta, phi)));
  6484. }
  6485. DllExport void *
  6486. Frustum_Frustum ()
  6487. {
  6488. return new Frustum();
  6489. }
  6490. DllExport void *
  6491. Frustum_Frustum0 (const class Urho3D::Frustum & frustum)
  6492. {
  6493. return new Frustum(frustum);
  6494. }
  6495. DllExport void
  6496. Frustum_Define (Urho3D::Frustum *_target, float fov, float aspectRatio, float zoom, float nearZ, float farZ, const class Urho3D::Matrix3x4 & transform)
  6497. {
  6498. _target->Define (fov, aspectRatio, zoom, nearZ, farZ, transform);
  6499. }
  6500. DllExport void
  6501. Frustum_Define1 (Urho3D::Frustum *_target, const class Urho3D::Vector3 & nearValue, const class Urho3D::Vector3 & farValue, const class Urho3D::Matrix3x4 & transform)
  6502. {
  6503. _target->Define (nearValue, farValue, transform);
  6504. }
  6505. DllExport void
  6506. Frustum_Define2 (Urho3D::Frustum *_target, const class Urho3D::BoundingBox & box, const class Urho3D::Matrix3x4 & transform)
  6507. {
  6508. _target->Define (box, transform);
  6509. }
  6510. DllExport void
  6511. Frustum_Define3 (Urho3D::Frustum *_target, const class Urho3D::Matrix4 & projection)
  6512. {
  6513. _target->Define (projection);
  6514. }
  6515. DllExport void
  6516. Frustum_DefineOrtho (Urho3D::Frustum *_target, float orthoSize, float aspectRatio, float zoom, float nearZ, float farZ, const class Urho3D::Matrix3x4 & transform)
  6517. {
  6518. _target->DefineOrtho (orthoSize, aspectRatio, zoom, nearZ, farZ, transform);
  6519. }
  6520. DllExport void
  6521. Frustum_DefineSplit (Urho3D::Frustum *_target, const class Urho3D::Matrix4 & projection, float nearValue, float farValue)
  6522. {
  6523. _target->DefineSplit (projection, nearValue, farValue);
  6524. }
  6525. DllExport void
  6526. Frustum_Transform (Urho3D::Frustum *_target, const class Urho3D::Matrix3x4 & transform)
  6527. {
  6528. _target->Transform (transform);
  6529. }
  6530. DllExport enum Urho3D::Intersection
  6531. Frustum_IsInside (Urho3D::Frustum *_target, const class Urho3D::Vector3 & point)
  6532. {
  6533. return _target->IsInside (point);
  6534. }
  6535. DllExport enum Urho3D::Intersection
  6536. Frustum_IsInside4 (Urho3D::Frustum *_target, const class Urho3D::Sphere & sphere)
  6537. {
  6538. return _target->IsInside (sphere);
  6539. }
  6540. DllExport enum Urho3D::Intersection
  6541. Frustum_IsInsideFast (Urho3D::Frustum *_target, const class Urho3D::Sphere & sphere)
  6542. {
  6543. return _target->IsInsideFast (sphere);
  6544. }
  6545. DllExport enum Urho3D::Intersection
  6546. Frustum_IsInside5 (Urho3D::Frustum *_target, const class Urho3D::BoundingBox & box)
  6547. {
  6548. return _target->IsInside (box);
  6549. }
  6550. DllExport enum Urho3D::Intersection
  6551. Frustum_IsInsideFast6 (Urho3D::Frustum *_target, const class Urho3D::BoundingBox & box)
  6552. {
  6553. return _target->IsInsideFast (box);
  6554. }
  6555. DllExport float
  6556. Frustum_Distance (Urho3D::Frustum *_target, const class Urho3D::Vector3 & point)
  6557. {
  6558. return _target->Distance (point);
  6559. }
  6560. DllExport Urho3D::Frustum *
  6561. Frustum_Transformed (Urho3D::Frustum *_target, const class Urho3D::Matrix3x4 & transform)
  6562. {
  6563. return new Urho3D::Frustum (_target->Transformed (transform));
  6564. }
  6565. DllExport Urho3D::Rect
  6566. Frustum_Projected (Urho3D::Frustum *_target, const class Urho3D::Matrix4 & transform)
  6567. {
  6568. return _target->Projected (transform);
  6569. }
  6570. DllExport void
  6571. Frustum_UpdatePlanes (Urho3D::Frustum *_target)
  6572. {
  6573. _target->UpdatePlanes ();
  6574. }
  6575. DllExport void *
  6576. GPUObject_GPUObject (Urho3D::Graphics * graphics)
  6577. {
  6578. return new GPUObject(graphics);
  6579. }
  6580. DllExport void
  6581. GPUObject_OnDeviceLost (Urho3D::GPUObject *_target)
  6582. {
  6583. _target->OnDeviceLost ();
  6584. }
  6585. DllExport void
  6586. GPUObject_OnDeviceReset (Urho3D::GPUObject *_target)
  6587. {
  6588. _target->OnDeviceReset ();
  6589. }
  6590. DllExport void
  6591. GPUObject_Release (Urho3D::GPUObject *_target)
  6592. {
  6593. _target->Release ();
  6594. }
  6595. DllExport void
  6596. GPUObject_ClearDataLost (Urho3D::GPUObject *_target)
  6597. {
  6598. _target->ClearDataLost ();
  6599. }
  6600. DllExport Urho3D::Graphics *
  6601. GPUObject_GetGraphics (Urho3D::GPUObject *_target)
  6602. {
  6603. return _target->GetGraphics ();
  6604. }
  6605. DllExport void *
  6606. GPUObject_GetGPUObject (Urho3D::GPUObject *_target)
  6607. {
  6608. return _target->GetGPUObject ();
  6609. }
  6610. DllExport unsigned int
  6611. GPUObject_GetGPUObjectName (Urho3D::GPUObject *_target)
  6612. {
  6613. return _target->GetGPUObjectName ();
  6614. }
  6615. DllExport int
  6616. GPUObject_IsDataLost (Urho3D::GPUObject *_target)
  6617. {
  6618. return _target->IsDataLost ();
  6619. }
  6620. DllExport int
  6621. GPUObject_HasPendingData (Urho3D::GPUObject *_target)
  6622. {
  6623. return _target->HasPendingData ();
  6624. }
  6625. DllExport GPUObject*
  6626. Texture_CastToGPUObject(Urho3D::Texture *_target)
  6627. {
  6628. return static_cast<GPUObject*>(_target);
  6629. }
  6630. DllExport void *
  6631. Texture_Texture (Urho3D::Context * context)
  6632. {
  6633. return WeakPtr<Texture>(new Texture(context));
  6634. }
  6635. DllExport void
  6636. Texture_SetNumLevels (Urho3D::Texture *_target, unsigned int levels)
  6637. {
  6638. _target->SetNumLevels (levels);
  6639. }
  6640. DllExport void
  6641. Texture_SetFilterMode (Urho3D::Texture *_target, enum Urho3D::TextureFilterMode filter)
  6642. {
  6643. _target->SetFilterMode (filter);
  6644. }
  6645. DllExport void
  6646. Texture_SetAddressMode (Urho3D::Texture *_target, enum Urho3D::TextureCoordinate coord, enum Urho3D::TextureAddressMode address)
  6647. {
  6648. _target->SetAddressMode (coord, address);
  6649. }
  6650. DllExport void
  6651. Texture_SetAnisotropy (Urho3D::Texture *_target, unsigned int level)
  6652. {
  6653. _target->SetAnisotropy (level);
  6654. }
  6655. DllExport void
  6656. Texture_SetShadowCompare (Urho3D::Texture *_target, bool enable)
  6657. {
  6658. _target->SetShadowCompare (enable);
  6659. }
  6660. DllExport void
  6661. Texture_SetBorderColor (Urho3D::Texture *_target, const class Urho3D::Color & color)
  6662. {
  6663. _target->SetBorderColor (color);
  6664. }
  6665. DllExport void
  6666. Texture_SetSRGB (Urho3D::Texture *_target, bool enable)
  6667. {
  6668. _target->SetSRGB (enable);
  6669. }
  6670. DllExport void
  6671. Texture_SetBackupTexture (Urho3D::Texture *_target, Urho3D::Texture * texture)
  6672. {
  6673. _target->SetBackupTexture (texture);
  6674. }
  6675. DllExport void
  6676. Texture_SetMipsToSkip (Urho3D::Texture *_target, int quality, int toSkip)
  6677. {
  6678. _target->SetMipsToSkip (quality, toSkip);
  6679. }
  6680. DllExport unsigned int
  6681. Texture_GetFormat (Urho3D::Texture *_target)
  6682. {
  6683. return _target->GetFormat ();
  6684. }
  6685. DllExport int
  6686. Texture_IsCompressed (Urho3D::Texture *_target)
  6687. {
  6688. return _target->IsCompressed ();
  6689. }
  6690. DllExport unsigned int
  6691. Texture_GetLevels (Urho3D::Texture *_target)
  6692. {
  6693. return _target->GetLevels ();
  6694. }
  6695. DllExport int
  6696. Texture_GetWidth (Urho3D::Texture *_target)
  6697. {
  6698. return _target->GetWidth ();
  6699. }
  6700. DllExport int
  6701. Texture_GetHeight (Urho3D::Texture *_target)
  6702. {
  6703. return _target->GetHeight ();
  6704. }
  6705. DllExport int
  6706. Texture_GetDepth (Urho3D::Texture *_target)
  6707. {
  6708. return _target->GetDepth ();
  6709. }
  6710. DllExport enum Urho3D::TextureFilterMode
  6711. Texture_GetFilterMode (Urho3D::Texture *_target)
  6712. {
  6713. return _target->GetFilterMode ();
  6714. }
  6715. DllExport enum Urho3D::TextureAddressMode
  6716. Texture_GetAddressMode (Urho3D::Texture *_target, enum Urho3D::TextureCoordinate coord)
  6717. {
  6718. return _target->GetAddressMode (coord);
  6719. }
  6720. DllExport unsigned int
  6721. Texture_GetAnisotropy (Urho3D::Texture *_target)
  6722. {
  6723. return _target->GetAnisotropy ();
  6724. }
  6725. DllExport int
  6726. Texture_GetShadowCompare (Urho3D::Texture *_target)
  6727. {
  6728. return _target->GetShadowCompare ();
  6729. }
  6730. DllExport Interop::Color
  6731. Texture_GetBorderColor (Urho3D::Texture *_target)
  6732. {
  6733. return *((Interop::Color *) &(_target->GetBorderColor ()));
  6734. }
  6735. DllExport int
  6736. Texture_GetSRGB (Urho3D::Texture *_target)
  6737. {
  6738. return _target->GetSRGB ();
  6739. }
  6740. DllExport int
  6741. Texture_GetMultiSample (Urho3D::Texture *_target)
  6742. {
  6743. return _target->GetMultiSample ();
  6744. }
  6745. DllExport int
  6746. Texture_GetAutoResolve (Urho3D::Texture *_target)
  6747. {
  6748. return _target->GetAutoResolve ();
  6749. }
  6750. DllExport int
  6751. Texture_IsResolveDirty (Urho3D::Texture *_target)
  6752. {
  6753. return _target->IsResolveDirty ();
  6754. }
  6755. DllExport int
  6756. Texture_GetLevelsDirty (Urho3D::Texture *_target)
  6757. {
  6758. return _target->GetLevelsDirty ();
  6759. }
  6760. DllExport Urho3D::Texture *
  6761. Texture_GetBackupTexture (Urho3D::Texture *_target)
  6762. {
  6763. return _target->GetBackupTexture ();
  6764. }
  6765. DllExport int
  6766. Texture_GetMipsToSkip (Urho3D::Texture *_target, int quality)
  6767. {
  6768. return _target->GetMipsToSkip (quality);
  6769. }
  6770. DllExport int
  6771. Texture_GetLevelWidth (Urho3D::Texture *_target, unsigned int level)
  6772. {
  6773. return _target->GetLevelWidth (level);
  6774. }
  6775. DllExport int
  6776. Texture_GetLevelHeight (Urho3D::Texture *_target, unsigned int level)
  6777. {
  6778. return _target->GetLevelHeight (level);
  6779. }
  6780. DllExport int
  6781. Texture_GetLevelDepth (Urho3D::Texture *_target, unsigned int level)
  6782. {
  6783. return _target->GetLevelDepth (level);
  6784. }
  6785. DllExport enum Urho3D::TextureUsage
  6786. Texture_GetUsage (Urho3D::Texture *_target)
  6787. {
  6788. return _target->GetUsage ();
  6789. }
  6790. DllExport unsigned int
  6791. Texture_GetDataSize (Urho3D::Texture *_target, int width, int height)
  6792. {
  6793. return _target->GetDataSize (width, height);
  6794. }
  6795. DllExport unsigned int
  6796. Texture_GetDataSize0 (Urho3D::Texture *_target, int width, int height, int depth)
  6797. {
  6798. return _target->GetDataSize (width, height, depth);
  6799. }
  6800. DllExport unsigned int
  6801. Texture_GetRowDataSize (Urho3D::Texture *_target, int width)
  6802. {
  6803. return _target->GetRowDataSize (width);
  6804. }
  6805. DllExport unsigned int
  6806. Texture_GetComponents (Urho3D::Texture *_target)
  6807. {
  6808. return _target->GetComponents ();
  6809. }
  6810. DllExport int
  6811. Texture_GetParametersDirty (Urho3D::Texture *_target)
  6812. {
  6813. return _target->GetParametersDirty ();
  6814. }
  6815. DllExport void
  6816. Texture_SetParameters (Urho3D::Texture *_target, Urho3D::XMLFile * xml)
  6817. {
  6818. _target->SetParameters (xml);
  6819. }
  6820. DllExport void
  6821. Texture_SetParameters1 (Urho3D::Texture *_target, const class Urho3D::XMLElement & element)
  6822. {
  6823. _target->SetParameters (element);
  6824. }
  6825. DllExport void
  6826. Texture_SetParametersDirty (Urho3D::Texture *_target)
  6827. {
  6828. _target->SetParametersDirty ();
  6829. }
  6830. DllExport void
  6831. Texture_UpdateParameters (Urho3D::Texture *_target)
  6832. {
  6833. _target->UpdateParameters ();
  6834. }
  6835. DllExport void *
  6836. Texture_GetShaderResourceView (Urho3D::Texture *_target)
  6837. {
  6838. return _target->GetShaderResourceView ();
  6839. }
  6840. DllExport void *
  6841. Texture_GetSampler (Urho3D::Texture *_target)
  6842. {
  6843. return _target->GetSampler ();
  6844. }
  6845. DllExport void *
  6846. Texture_GetResolveTexture (Urho3D::Texture *_target)
  6847. {
  6848. return _target->GetResolveTexture ();
  6849. }
  6850. DllExport unsigned int
  6851. Texture_GetSRGBFormat (Urho3D::Texture *_target, unsigned int format)
  6852. {
  6853. return _target->GetSRGBFormat (format);
  6854. }
  6855. DllExport void
  6856. Texture_SetResolveDirty (Urho3D::Texture *_target, bool enable)
  6857. {
  6858. _target->SetResolveDirty (enable);
  6859. }
  6860. DllExport void
  6861. Texture_SetLevelsDirty (Urho3D::Texture *_target)
  6862. {
  6863. _target->SetLevelsDirty ();
  6864. }
  6865. DllExport void
  6866. Texture_RegenerateLevels (Urho3D::Texture *_target)
  6867. {
  6868. _target->RegenerateLevels ();
  6869. }
  6870. DllExport unsigned int
  6871. Texture_CheckMaxLevels (int width, int height, unsigned int requestedLevels)
  6872. {
  6873. return Texture::CheckMaxLevels (width, height, requestedLevels);
  6874. }
  6875. DllExport unsigned int
  6876. Texture_CheckMaxLevels2 (int width, int height, int depth, unsigned int requestedLevels)
  6877. {
  6878. return Texture::CheckMaxLevels (width, height, depth, requestedLevels);
  6879. }
  6880. DllExport int
  6881. Light_GetType (Urho3D::Light *_target)
  6882. {
  6883. return (_target->GetType ()).Value ();
  6884. }
  6885. DllExport const char *
  6886. Light_GetTypeName (Urho3D::Light *_target)
  6887. {
  6888. return stringdup((_target->GetTypeName ()).CString ());
  6889. }
  6890. DllExport int
  6891. Light_GetTypeStatic ()
  6892. {
  6893. return (Light::GetTypeStatic ()).Value ();
  6894. }
  6895. DllExport const char *
  6896. Light_GetTypeNameStatic ()
  6897. {
  6898. return stringdup((Light::GetTypeNameStatic ()).CString ());
  6899. }
  6900. DllExport void *
  6901. Light_Light (Urho3D::Context * context)
  6902. {
  6903. return WeakPtr<Light>(new Light(context));
  6904. }
  6905. DllExport void
  6906. Light_RegisterObject (Urho3D::Context * context)
  6907. {
  6908. Light::RegisterObject (context);
  6909. }
  6910. DllExport void
  6911. Light_DrawDebugGeometry (Urho3D::Light *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  6912. {
  6913. _target->DrawDebugGeometry (debug, depthTest);
  6914. }
  6915. DllExport void
  6916. Light_SetLightType (Urho3D::Light *_target, enum Urho3D::LightType type)
  6917. {
  6918. _target->SetLightType (type);
  6919. }
  6920. DllExport void
  6921. Light_SetPerVertex (Urho3D::Light *_target, bool enable)
  6922. {
  6923. _target->SetPerVertex (enable);
  6924. }
  6925. DllExport void
  6926. Light_SetColor (Urho3D::Light *_target, const class Urho3D::Color & color)
  6927. {
  6928. _target->SetColor (color);
  6929. }
  6930. DllExport void
  6931. Light_SetTemperature (Urho3D::Light *_target, float temperature)
  6932. {
  6933. _target->SetTemperature (temperature);
  6934. }
  6935. DllExport void
  6936. Light_SetRadius (Urho3D::Light *_target, float radius)
  6937. {
  6938. _target->SetRadius (radius);
  6939. }
  6940. DllExport void
  6941. Light_SetLength (Urho3D::Light *_target, float length)
  6942. {
  6943. _target->SetLength (length);
  6944. }
  6945. DllExport void
  6946. Light_SetUsePhysicalValues (Urho3D::Light *_target, bool enable)
  6947. {
  6948. _target->SetUsePhysicalValues (enable);
  6949. }
  6950. DllExport void
  6951. Light_SetSpecularIntensity (Urho3D::Light *_target, float intensity)
  6952. {
  6953. _target->SetSpecularIntensity (intensity);
  6954. }
  6955. DllExport void
  6956. Light_SetBrightness (Urho3D::Light *_target, float brightness)
  6957. {
  6958. _target->SetBrightness (brightness);
  6959. }
  6960. DllExport void
  6961. Light_SetRange (Urho3D::Light *_target, float range)
  6962. {
  6963. _target->SetRange (range);
  6964. }
  6965. DllExport void
  6966. Light_SetFov (Urho3D::Light *_target, float fov)
  6967. {
  6968. _target->SetFov (fov);
  6969. }
  6970. DllExport void
  6971. Light_SetAspectRatio (Urho3D::Light *_target, float aspectRatio)
  6972. {
  6973. _target->SetAspectRatio (aspectRatio);
  6974. }
  6975. DllExport void
  6976. Light_SetFadeDistance (Urho3D::Light *_target, float distance)
  6977. {
  6978. _target->SetFadeDistance (distance);
  6979. }
  6980. DllExport void
  6981. Light_SetShadowFadeDistance (Urho3D::Light *_target, float distance)
  6982. {
  6983. _target->SetShadowFadeDistance (distance);
  6984. }
  6985. DllExport void
  6986. Light_SetShadowBias (Urho3D::Light *_target, const struct Urho3D::BiasParameters & parameters)
  6987. {
  6988. _target->SetShadowBias (parameters);
  6989. }
  6990. DllExport void
  6991. Light_SetShadowCascade (Urho3D::Light *_target, const struct Urho3D::CascadeParameters & parameters)
  6992. {
  6993. _target->SetShadowCascade (parameters);
  6994. }
  6995. DllExport void
  6996. Light_SetShadowFocus (Urho3D::Light *_target, const struct Urho3D::FocusParameters & parameters)
  6997. {
  6998. _target->SetShadowFocus (parameters);
  6999. }
  7000. DllExport void
  7001. Light_SetShadowIntensity (Urho3D::Light *_target, float intensity)
  7002. {
  7003. _target->SetShadowIntensity (intensity);
  7004. }
  7005. DllExport void
  7006. Light_SetShadowResolution (Urho3D::Light *_target, float resolution)
  7007. {
  7008. _target->SetShadowResolution (resolution);
  7009. }
  7010. DllExport void
  7011. Light_SetShadowNearFarRatio (Urho3D::Light *_target, float nearFarRatio)
  7012. {
  7013. _target->SetShadowNearFarRatio (nearFarRatio);
  7014. }
  7015. DllExport void
  7016. Light_SetShadowMaxExtrusion (Urho3D::Light *_target, float extrusion)
  7017. {
  7018. _target->SetShadowMaxExtrusion (extrusion);
  7019. }
  7020. DllExport void
  7021. Light_SetRampTexture (Urho3D::Light *_target, Urho3D::Texture * texture)
  7022. {
  7023. _target->SetRampTexture (texture);
  7024. }
  7025. DllExport void
  7026. Light_SetShapeTexture (Urho3D::Light *_target, Urho3D::Texture * texture)
  7027. {
  7028. _target->SetShapeTexture (texture);
  7029. }
  7030. DllExport enum Urho3D::LightType
  7031. Light_GetLightType (Urho3D::Light *_target)
  7032. {
  7033. return _target->GetLightType ();
  7034. }
  7035. DllExport int
  7036. Light_GetPerVertex (Urho3D::Light *_target)
  7037. {
  7038. return _target->GetPerVertex ();
  7039. }
  7040. DllExport Interop::Color
  7041. Light_GetColor (Urho3D::Light *_target)
  7042. {
  7043. return *((Interop::Color *) &(_target->GetColor ()));
  7044. }
  7045. DllExport float
  7046. Light_GetTemperature (Urho3D::Light *_target)
  7047. {
  7048. return _target->GetTemperature ();
  7049. }
  7050. DllExport float
  7051. Light_GetRadius (Urho3D::Light *_target)
  7052. {
  7053. return _target->GetRadius ();
  7054. }
  7055. DllExport float
  7056. Light_GetLength (Urho3D::Light *_target)
  7057. {
  7058. return _target->GetLength ();
  7059. }
  7060. DllExport int
  7061. Light_GetUsePhysicalValues (Urho3D::Light *_target)
  7062. {
  7063. return _target->GetUsePhysicalValues ();
  7064. }
  7065. DllExport Interop::Color
  7066. Light_GetColorFromTemperature (Urho3D::Light *_target)
  7067. {
  7068. return *((Interop::Color *) &(_target->GetColorFromTemperature ()));
  7069. }
  7070. DllExport float
  7071. Light_GetSpecularIntensity (Urho3D::Light *_target)
  7072. {
  7073. return _target->GetSpecularIntensity ();
  7074. }
  7075. DllExport float
  7076. Light_GetBrightness (Urho3D::Light *_target)
  7077. {
  7078. return _target->GetBrightness ();
  7079. }
  7080. DllExport Interop::Color
  7081. Light_GetEffectiveColor (Urho3D::Light *_target)
  7082. {
  7083. return *((Interop::Color *) &(_target->GetEffectiveColor ()));
  7084. }
  7085. DllExport float
  7086. Light_GetEffectiveSpecularIntensity (Urho3D::Light *_target)
  7087. {
  7088. return _target->GetEffectiveSpecularIntensity ();
  7089. }
  7090. DllExport float
  7091. Light_GetRange (Urho3D::Light *_target)
  7092. {
  7093. return _target->GetRange ();
  7094. }
  7095. DllExport float
  7096. Light_GetFov (Urho3D::Light *_target)
  7097. {
  7098. return _target->GetFov ();
  7099. }
  7100. DllExport float
  7101. Light_GetAspectRatio (Urho3D::Light *_target)
  7102. {
  7103. return _target->GetAspectRatio ();
  7104. }
  7105. DllExport float
  7106. Light_GetFadeDistance (Urho3D::Light *_target)
  7107. {
  7108. return _target->GetFadeDistance ();
  7109. }
  7110. DllExport float
  7111. Light_GetShadowFadeDistance (Urho3D::Light *_target)
  7112. {
  7113. return _target->GetShadowFadeDistance ();
  7114. }
  7115. DllExport const struct Urho3D::BiasParameters &
  7116. Light_GetShadowBias (Urho3D::Light *_target)
  7117. {
  7118. return _target->GetShadowBias ();
  7119. }
  7120. DllExport const struct Urho3D::CascadeParameters &
  7121. Light_GetShadowCascade (Urho3D::Light *_target)
  7122. {
  7123. return _target->GetShadowCascade ();
  7124. }
  7125. DllExport const struct Urho3D::FocusParameters &
  7126. Light_GetShadowFocus (Urho3D::Light *_target)
  7127. {
  7128. return _target->GetShadowFocus ();
  7129. }
  7130. DllExport float
  7131. Light_GetShadowIntensity (Urho3D::Light *_target)
  7132. {
  7133. return _target->GetShadowIntensity ();
  7134. }
  7135. DllExport float
  7136. Light_GetShadowResolution (Urho3D::Light *_target)
  7137. {
  7138. return _target->GetShadowResolution ();
  7139. }
  7140. DllExport float
  7141. Light_GetShadowNearFarRatio (Urho3D::Light *_target)
  7142. {
  7143. return _target->GetShadowNearFarRatio ();
  7144. }
  7145. DllExport float
  7146. Light_GetShadowMaxExtrusion (Urho3D::Light *_target)
  7147. {
  7148. return _target->GetShadowMaxExtrusion ();
  7149. }
  7150. DllExport Urho3D::Texture *
  7151. Light_GetRampTexture (Urho3D::Light *_target)
  7152. {
  7153. return _target->GetRampTexture ();
  7154. }
  7155. DllExport Urho3D::Texture *
  7156. Light_GetShapeTexture (Urho3D::Light *_target)
  7157. {
  7158. return _target->GetShapeTexture ();
  7159. }
  7160. DllExport Urho3D::Frustum *
  7161. Light_GetFrustum (Urho3D::Light *_target)
  7162. {
  7163. return new Urho3D::Frustum (_target->GetFrustum ());
  7164. }
  7165. DllExport Urho3D::Frustum *
  7166. Light_GetViewSpaceFrustum (Urho3D::Light *_target, const class Urho3D::Matrix3x4 & view)
  7167. {
  7168. return new Urho3D::Frustum (_target->GetViewSpaceFrustum (view));
  7169. }
  7170. DllExport int
  7171. Light_GetNumShadowSplits (Urho3D::Light *_target)
  7172. {
  7173. return _target->GetNumShadowSplits ();
  7174. }
  7175. DllExport int
  7176. Light_IsNegative (Urho3D::Light *_target)
  7177. {
  7178. return _target->IsNegative ();
  7179. }
  7180. DllExport void
  7181. Light_SetIntensitySortValue (Urho3D::Light *_target, float distance)
  7182. {
  7183. _target->SetIntensitySortValue (distance);
  7184. }
  7185. DllExport void
  7186. Light_SetIntensitySortValue0 (Urho3D::Light *_target, const class Urho3D::BoundingBox & box)
  7187. {
  7188. _target->SetIntensitySortValue (box);
  7189. }
  7190. DllExport void
  7191. Light_SetLightQueue (Urho3D::Light *_target, Urho3D::LightBatchQueue * queue)
  7192. {
  7193. _target->SetLightQueue (queue);
  7194. }
  7195. DllExport Interop::Matrix3x4
  7196. Light_GetVolumeTransform (Urho3D::Light *_target, Urho3D::Camera * camera)
  7197. {
  7198. return *((Interop::Matrix3x4 *) &(_target->GetVolumeTransform (camera)));
  7199. }
  7200. DllExport Urho3D::LightBatchQueue *
  7201. Light_GetLightQueue (Urho3D::Light *_target)
  7202. {
  7203. return _target->GetLightQueue ();
  7204. }
  7205. DllExport float
  7206. Light_GetIntensityDivisor (Urho3D::Light *_target, float attenuation)
  7207. {
  7208. return _target->GetIntensityDivisor (attenuation);
  7209. }
  7210. DllExport Urho3D::ResourceRef
  7211. Light_GetRampTextureAttr (Urho3D::Light *_target)
  7212. {
  7213. return _target->GetRampTextureAttr ();
  7214. }
  7215. DllExport Urho3D::ResourceRef
  7216. Light_GetShapeTextureAttr (Urho3D::Light *_target)
  7217. {
  7218. return _target->GetShapeTextureAttr ();
  7219. }
  7220. DllExport Interop::Matrix3x4
  7221. Light_GetFullscreenQuadTransform (Urho3D::Camera * camera)
  7222. {
  7223. return *((Interop::Matrix3x4 *) &(Light::GetFullscreenQuadTransform (camera)));
  7224. }
  7225. DllExport void *
  7226. ShaderParameterAnimationInfo_ShaderParameterAnimationInfo (Urho3D::Material * material, const char * name, Urho3D::ValueAnimation * attributeAnimation, enum Urho3D::WrapMode wrapMode, float speed)
  7227. {
  7228. return WeakPtr<ShaderParameterAnimationInfo>(new ShaderParameterAnimationInfo(material, Urho3D::String(name), attributeAnimation, wrapMode, speed));
  7229. }
  7230. DllExport const char *
  7231. ShaderParameterAnimationInfo_GetName (Urho3D::ShaderParameterAnimationInfo *_target)
  7232. {
  7233. return stringdup((_target->GetName ()).CString ());
  7234. }
  7235. DllExport int
  7236. Material_GetType (Urho3D::Material *_target)
  7237. {
  7238. return (_target->GetType ()).Value ();
  7239. }
  7240. DllExport const char *
  7241. Material_GetTypeName (Urho3D::Material *_target)
  7242. {
  7243. return stringdup((_target->GetTypeName ()).CString ());
  7244. }
  7245. DllExport int
  7246. Material_GetTypeStatic ()
  7247. {
  7248. return (Material::GetTypeStatic ()).Value ();
  7249. }
  7250. DllExport const char *
  7251. Material_GetTypeNameStatic ()
  7252. {
  7253. return stringdup((Material::GetTypeNameStatic ()).CString ());
  7254. }
  7255. DllExport void *
  7256. Material_Material (Urho3D::Context * context)
  7257. {
  7258. return WeakPtr<Material>(new Material(context));
  7259. }
  7260. DllExport void
  7261. Material_RegisterObject (Urho3D::Context * context)
  7262. {
  7263. Material::RegisterObject (context);
  7264. }
  7265. DllExport int
  7266. Material_BeginLoad_File (Urho3D::Material *_target, File * source)
  7267. {
  7268. return _target->BeginLoad (*source);
  7269. }
  7270. DllExport int
  7271. Material_BeginLoad_MemoryBuffer (Urho3D::Material *_target, MemoryBuffer * source)
  7272. {
  7273. return _target->BeginLoad (*source);
  7274. }
  7275. DllExport int
  7276. Material_EndLoad (Urho3D::Material *_target)
  7277. {
  7278. return _target->EndLoad ();
  7279. }
  7280. DllExport int
  7281. Material_Save_File (Urho3D::Material *_target, File * dest)
  7282. {
  7283. return _target->Save (*dest);
  7284. }
  7285. DllExport int
  7286. Material_Save_MemoryBuffer (Urho3D::Material *_target, MemoryBuffer * dest)
  7287. {
  7288. return _target->Save (*dest);
  7289. }
  7290. DllExport int
  7291. Material_Load (Urho3D::Material *_target, const class Urho3D::XMLElement & source)
  7292. {
  7293. return _target->Load (source);
  7294. }
  7295. DllExport int
  7296. Material_Save0 (Urho3D::Material *_target, Urho3D::XMLElement & dest)
  7297. {
  7298. return _target->Save (dest);
  7299. }
  7300. DllExport void
  7301. Material_SetNumTechniques (Urho3D::Material *_target, unsigned int num)
  7302. {
  7303. _target->SetNumTechniques (num);
  7304. }
  7305. DllExport void
  7306. Material_SetTechnique (Urho3D::Material *_target, unsigned int index, Urho3D::Technique * tech, unsigned int qualityLevel, float lodDistance)
  7307. {
  7308. _target->SetTechnique (index, tech, qualityLevel, lodDistance);
  7309. }
  7310. DllExport void
  7311. Material_SetVertexShaderDefines (Urho3D::Material *_target, const char * defines)
  7312. {
  7313. _target->SetVertexShaderDefines (Urho3D::String(defines));
  7314. }
  7315. DllExport void
  7316. Material_SetPixelShaderDefines (Urho3D::Material *_target, const char * defines)
  7317. {
  7318. _target->SetPixelShaderDefines (Urho3D::String(defines));
  7319. }
  7320. // Urho3D::Variant overloads begin:
  7321. DllExport void
  7322. Material_SetShaderParameter_0 (Urho3D::Material *_target, const char * name, const class Urho3D::Vector3 & value)
  7323. {
  7324. _target->SetShaderParameter (Urho3D::String(name), (value));
  7325. }
  7326. DllExport void
  7327. Material_SetShaderParameter_1 (Urho3D::Material *_target, const char * name, const class Urho3D::IntRect & value)
  7328. {
  7329. _target->SetShaderParameter (Urho3D::String(name), (value));
  7330. }
  7331. DllExport void
  7332. Material_SetShaderParameter_2 (Urho3D::Material *_target, const char * name, const class Urho3D::Color & value)
  7333. {
  7334. _target->SetShaderParameter (Urho3D::String(name), (value));
  7335. }
  7336. DllExport void
  7337. Material_SetShaderParameter_3 (Urho3D::Material *_target, const char * name, const class Urho3D::Vector2 & value)
  7338. {
  7339. _target->SetShaderParameter (Urho3D::String(name), (value));
  7340. }
  7341. DllExport void
  7342. Material_SetShaderParameter_4 (Urho3D::Material *_target, const char * name, const class Urho3D::Vector4 & value)
  7343. {
  7344. _target->SetShaderParameter (Urho3D::String(name), (value));
  7345. }
  7346. DllExport void
  7347. Material_SetShaderParameter_5 (Urho3D::Material *_target, const char * name, const class Urho3D::IntVector2 & value)
  7348. {
  7349. _target->SetShaderParameter (Urho3D::String(name), (value));
  7350. }
  7351. DllExport void
  7352. Material_SetShaderParameter_6 (Urho3D::Material *_target, const char * name, const class Urho3D::Quaternion & value)
  7353. {
  7354. _target->SetShaderParameter (Urho3D::String(name), (value));
  7355. }
  7356. DllExport void
  7357. Material_SetShaderParameter_7 (Urho3D::Material *_target, const char * name, const class Urho3D::Matrix4 & value)
  7358. {
  7359. _target->SetShaderParameter (Urho3D::String(name), (value));
  7360. }
  7361. DllExport void
  7362. Material_SetShaderParameter_8 (Urho3D::Material *_target, const char * name, const class Urho3D::Matrix3x4 & value)
  7363. {
  7364. _target->SetShaderParameter (Urho3D::String(name), (value));
  7365. }
  7366. DllExport void
  7367. Material_SetShaderParameter_9 (Urho3D::Material *_target, const char * name, int value)
  7368. {
  7369. _target->SetShaderParameter (Urho3D::String(name), (value));
  7370. }
  7371. DllExport void
  7372. Material_SetShaderParameter_10 (Urho3D::Material *_target, const char * name, float value)
  7373. {
  7374. _target->SetShaderParameter (Urho3D::String(name), (value));
  7375. }
  7376. DllExport void
  7377. Material_SetShaderParameter_11 (Urho3D::Material *_target, const char * name, const char * value)
  7378. {
  7379. _target->SetShaderParameter (Urho3D::String(name), Urho3D::String(value));
  7380. }
  7381. DllExport void
  7382. Material_SetShaderParameter_12 (Urho3D::Material *_target, const char * name, bool value)
  7383. {
  7384. _target->SetShaderParameter (Urho3D::String(name), (value));
  7385. }
  7386. // Urho3D::Variant overloads end.
  7387. DllExport void
  7388. Material_SetShaderParameterAnimation (Urho3D::Material *_target, const char * name, Urho3D::ValueAnimation * animation, enum Urho3D::WrapMode wrapMode, float speed)
  7389. {
  7390. _target->SetShaderParameterAnimation (Urho3D::String(name), animation, wrapMode, speed);
  7391. }
  7392. DllExport void
  7393. Material_SetShaderParameterAnimationWrapMode (Urho3D::Material *_target, const char * name, enum Urho3D::WrapMode wrapMode)
  7394. {
  7395. _target->SetShaderParameterAnimationWrapMode (Urho3D::String(name), wrapMode);
  7396. }
  7397. DllExport void
  7398. Material_SetShaderParameterAnimationSpeed (Urho3D::Material *_target, const char * name, float speed)
  7399. {
  7400. _target->SetShaderParameterAnimationSpeed (Urho3D::String(name), speed);
  7401. }
  7402. DllExport void
  7403. Material_SetTexture (Urho3D::Material *_target, enum Urho3D::TextureUnit unit, Urho3D::Texture * texture)
  7404. {
  7405. _target->SetTexture (unit, texture);
  7406. }
  7407. DllExport void
  7408. Material_SetUVTransform (Urho3D::Material *_target, const class Urho3D::Vector2 & offset, float rotation, const class Urho3D::Vector2 & repeat)
  7409. {
  7410. _target->SetUVTransform (offset, rotation, repeat);
  7411. }
  7412. DllExport void
  7413. Material_SetUVTransform1 (Urho3D::Material *_target, const class Urho3D::Vector2 & offset, float rotation, float repeat)
  7414. {
  7415. _target->SetUVTransform (offset, rotation, repeat);
  7416. }
  7417. DllExport void
  7418. Material_SetCullMode (Urho3D::Material *_target, enum Urho3D::CullMode mode)
  7419. {
  7420. _target->SetCullMode (mode);
  7421. }
  7422. DllExport void
  7423. Material_SetShadowCullMode (Urho3D::Material *_target, enum Urho3D::CullMode mode)
  7424. {
  7425. _target->SetShadowCullMode (mode);
  7426. }
  7427. DllExport void
  7428. Material_SetFillMode (Urho3D::Material *_target, enum Urho3D::FillMode mode)
  7429. {
  7430. _target->SetFillMode (mode);
  7431. }
  7432. DllExport void
  7433. Material_SetDepthBias (Urho3D::Material *_target, const struct Urho3D::BiasParameters & parameters)
  7434. {
  7435. _target->SetDepthBias (parameters);
  7436. }
  7437. DllExport void
  7438. Material_SetAlphaToCoverage (Urho3D::Material *_target, bool enable)
  7439. {
  7440. _target->SetAlphaToCoverage (enable);
  7441. }
  7442. DllExport void
  7443. Material_SetLineAntiAlias (Urho3D::Material *_target, bool enable)
  7444. {
  7445. _target->SetLineAntiAlias (enable);
  7446. }
  7447. DllExport void
  7448. Material_SetRenderOrder (Urho3D::Material *_target, unsigned char order)
  7449. {
  7450. _target->SetRenderOrder (order);
  7451. }
  7452. DllExport void
  7453. Material_SetOcclusion (Urho3D::Material *_target, bool enable)
  7454. {
  7455. _target->SetOcclusion (enable);
  7456. }
  7457. DllExport void
  7458. Material_SetScene (Urho3D::Material *_target, Urho3D::Scene * scene)
  7459. {
  7460. _target->SetScene (scene);
  7461. }
  7462. DllExport void
  7463. Material_RemoveShaderParameter (Urho3D::Material *_target, const char * name)
  7464. {
  7465. _target->RemoveShaderParameter (Urho3D::String(name));
  7466. }
  7467. DllExport void
  7468. Material_ReleaseShaders (Urho3D::Material *_target)
  7469. {
  7470. _target->ReleaseShaders ();
  7471. }
  7472. DllExport Urho3D::Material *
  7473. Material_Clone (Urho3D::Material *_target, const char * cloneName)
  7474. {
  7475. auto copy = _target->Clone (Urho3D::String(cloneName));
  7476. auto plain = copy.Get();
  7477. copy.Detach();
  7478. delete copy;
  7479. return plain;
  7480. }
  7481. DllExport void
  7482. Material_SortTechniques (Urho3D::Material *_target)
  7483. {
  7484. _target->SortTechniques ();
  7485. }
  7486. DllExport void
  7487. Material_MarkForAuxView (Urho3D::Material *_target, unsigned int frameNumber)
  7488. {
  7489. _target->MarkForAuxView (frameNumber);
  7490. }
  7491. DllExport unsigned int
  7492. Material_GetNumTechniques (Urho3D::Material *_target)
  7493. {
  7494. return _target->GetNumTechniques ();
  7495. }
  7496. DllExport Urho3D::Technique *
  7497. Material_GetTechnique (Urho3D::Material *_target, unsigned int index)
  7498. {
  7499. return _target->GetTechnique (index);
  7500. }
  7501. DllExport Urho3D::Pass *
  7502. Material_GetPass (Urho3D::Material *_target, unsigned int index, const char * passName)
  7503. {
  7504. return _target->GetPass (index, Urho3D::String(passName));
  7505. }
  7506. DllExport Urho3D::Texture *
  7507. Material_GetTexture (Urho3D::Material *_target, enum Urho3D::TextureUnit unit)
  7508. {
  7509. return _target->GetTexture (unit);
  7510. }
  7511. DllExport const char *
  7512. Material_GetVertexShaderDefines (Urho3D::Material *_target)
  7513. {
  7514. return stringdup((_target->GetVertexShaderDefines ()).CString ());
  7515. }
  7516. DllExport const char *
  7517. Material_GetPixelShaderDefines (Urho3D::Material *_target)
  7518. {
  7519. return stringdup((_target->GetPixelShaderDefines ()).CString ());
  7520. }
  7521. // Urho3D::Variant overloads begin:
  7522. DllExport Interop::Vector3
  7523. Material_GetShaderParameter_0 (Urho3D::Material *_target, const char * name)
  7524. {
  7525. return *((Interop::Vector3 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetVector3()));
  7526. }
  7527. DllExport Interop::IntRect
  7528. Material_GetShaderParameter_1 (Urho3D::Material *_target, const char * name)
  7529. {
  7530. return *((Interop::IntRect *) &(_target->GetShaderParameter (Urho3D::String(name)).GetIntRect()));
  7531. }
  7532. DllExport Interop::Color
  7533. Material_GetShaderParameter_2 (Urho3D::Material *_target, const char * name)
  7534. {
  7535. return *((Interop::Color *) &(_target->GetShaderParameter (Urho3D::String(name)).GetColor()));
  7536. }
  7537. DllExport Interop::Vector2
  7538. Material_GetShaderParameter_3 (Urho3D::Material *_target, const char * name)
  7539. {
  7540. return *((Interop::Vector2 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetVector2()));
  7541. }
  7542. DllExport Interop::Vector4
  7543. Material_GetShaderParameter_4 (Urho3D::Material *_target, const char * name)
  7544. {
  7545. return *((Interop::Vector4 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetVector4()));
  7546. }
  7547. DllExport Interop::IntVector2
  7548. Material_GetShaderParameter_5 (Urho3D::Material *_target, const char * name)
  7549. {
  7550. return *((Interop::IntVector2 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetIntVector2()));
  7551. }
  7552. DllExport Interop::Quaternion
  7553. Material_GetShaderParameter_6 (Urho3D::Material *_target, const char * name)
  7554. {
  7555. return *((Interop::Quaternion *) &(_target->GetShaderParameter (Urho3D::String(name)).GetQuaternion()));
  7556. }
  7557. DllExport Interop::Matrix4
  7558. Material_GetShaderParameter_7 (Urho3D::Material *_target, const char * name)
  7559. {
  7560. return *((Interop::Matrix4 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetMatrix4()));
  7561. }
  7562. DllExport Interop::Matrix3x4
  7563. Material_GetShaderParameter_8 (Urho3D::Material *_target, const char * name)
  7564. {
  7565. return *((Interop::Matrix3x4 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetMatrix3x4()));
  7566. }
  7567. DllExport int
  7568. Material_GetShaderParameter_9 (Urho3D::Material *_target, const char * name)
  7569. {
  7570. return (_target->GetShaderParameter (Urho3D::String(name)).GetInt());
  7571. }
  7572. DllExport float
  7573. Material_GetShaderParameter_10 (Urho3D::Material *_target, const char * name)
  7574. {
  7575. return (_target->GetShaderParameter (Urho3D::String(name)).GetFloat());
  7576. }
  7577. DllExport const char *
  7578. Material_GetShaderParameter_11 (Urho3D::Material *_target, const char * name)
  7579. {
  7580. return stringdup(_target->GetShaderParameter (Urho3D::String(name)).GetString().CString());
  7581. }
  7582. DllExport bool
  7583. Material_GetShaderParameter_12 (Urho3D::Material *_target, const char * name)
  7584. {
  7585. return (_target->GetShaderParameter (Urho3D::String(name)).GetBool());
  7586. }
  7587. // Urho3D::Variant overloads end.
  7588. DllExport Urho3D::ValueAnimation *
  7589. Material_GetShaderParameterAnimation (Urho3D::Material *_target, const char * name)
  7590. {
  7591. return _target->GetShaderParameterAnimation (Urho3D::String(name));
  7592. }
  7593. DllExport enum Urho3D::WrapMode
  7594. Material_GetShaderParameterAnimationWrapMode (Urho3D::Material *_target, const char * name)
  7595. {
  7596. return _target->GetShaderParameterAnimationWrapMode (Urho3D::String(name));
  7597. }
  7598. DllExport float
  7599. Material_GetShaderParameterAnimationSpeed (Urho3D::Material *_target, const char * name)
  7600. {
  7601. return _target->GetShaderParameterAnimationSpeed (Urho3D::String(name));
  7602. }
  7603. DllExport enum Urho3D::CullMode
  7604. Material_GetCullMode (Urho3D::Material *_target)
  7605. {
  7606. return _target->GetCullMode ();
  7607. }
  7608. DllExport enum Urho3D::CullMode
  7609. Material_GetShadowCullMode (Urho3D::Material *_target)
  7610. {
  7611. return _target->GetShadowCullMode ();
  7612. }
  7613. DllExport enum Urho3D::FillMode
  7614. Material_GetFillMode (Urho3D::Material *_target)
  7615. {
  7616. return _target->GetFillMode ();
  7617. }
  7618. DllExport const struct Urho3D::BiasParameters &
  7619. Material_GetDepthBias (Urho3D::Material *_target)
  7620. {
  7621. return _target->GetDepthBias ();
  7622. }
  7623. DllExport int
  7624. Material_GetAlphaToCoverage (Urho3D::Material *_target)
  7625. {
  7626. return _target->GetAlphaToCoverage ();
  7627. }
  7628. DllExport int
  7629. Material_GetLineAntiAlias (Urho3D::Material *_target)
  7630. {
  7631. return _target->GetLineAntiAlias ();
  7632. }
  7633. DllExport unsigned char
  7634. Material_GetRenderOrder (Urho3D::Material *_target)
  7635. {
  7636. return _target->GetRenderOrder ();
  7637. }
  7638. DllExport unsigned int
  7639. Material_GetAuxViewFrameNumber (Urho3D::Material *_target)
  7640. {
  7641. return _target->GetAuxViewFrameNumber ();
  7642. }
  7643. DllExport int
  7644. Material_GetOcclusion (Urho3D::Material *_target)
  7645. {
  7646. return _target->GetOcclusion ();
  7647. }
  7648. DllExport int
  7649. Material_GetSpecular (Urho3D::Material *_target)
  7650. {
  7651. return _target->GetSpecular ();
  7652. }
  7653. DllExport Urho3D::Scene *
  7654. Material_GetScene (Urho3D::Material *_target)
  7655. {
  7656. return _target->GetScene ();
  7657. }
  7658. DllExport unsigned int
  7659. Material_GetShaderParameterHash (Urho3D::Material *_target)
  7660. {
  7661. return _target->GetShaderParameterHash ();
  7662. }
  7663. DllExport const char *
  7664. Material_GetTextureUnitName (enum Urho3D::TextureUnit unit)
  7665. {
  7666. return stringdup((Material::GetTextureUnitName (unit)).CString ());
  7667. }
  7668. DllExport Urho3D::Variant
  7669. Material_ParseShaderParameterValue (const char * value)
  7670. {
  7671. return Material::ParseShaderParameterValue (Urho3D::String(value));
  7672. }
  7673. DllExport int
  7674. BillboardSet_GetType (Urho3D::BillboardSet *_target)
  7675. {
  7676. return (_target->GetType ()).Value ();
  7677. }
  7678. DllExport const char *
  7679. BillboardSet_GetTypeName (Urho3D::BillboardSet *_target)
  7680. {
  7681. return stringdup((_target->GetTypeName ()).CString ());
  7682. }
  7683. DllExport int
  7684. BillboardSet_GetTypeStatic ()
  7685. {
  7686. return (BillboardSet::GetTypeStatic ()).Value ();
  7687. }
  7688. DllExport const char *
  7689. BillboardSet_GetTypeNameStatic ()
  7690. {
  7691. return stringdup((BillboardSet::GetTypeNameStatic ()).CString ());
  7692. }
  7693. DllExport void *
  7694. BillboardSet_BillboardSet (Urho3D::Context * context)
  7695. {
  7696. return WeakPtr<BillboardSet>(new BillboardSet(context));
  7697. }
  7698. DllExport void
  7699. BillboardSet_RegisterObject (Urho3D::Context * context)
  7700. {
  7701. BillboardSet::RegisterObject (context);
  7702. }
  7703. DllExport enum Urho3D::UpdateGeometryType
  7704. BillboardSet_GetUpdateGeometryType (Urho3D::BillboardSet *_target)
  7705. {
  7706. return _target->GetUpdateGeometryType ();
  7707. }
  7708. DllExport void
  7709. BillboardSet_SetMaterial (Urho3D::BillboardSet *_target, Urho3D::Material * material)
  7710. {
  7711. _target->SetMaterial (material);
  7712. }
  7713. DllExport void
  7714. BillboardSet_SetNumBillboards (Urho3D::BillboardSet *_target, unsigned int num)
  7715. {
  7716. _target->SetNumBillboards (num);
  7717. }
  7718. DllExport void
  7719. BillboardSet_SetRelative (Urho3D::BillboardSet *_target, bool enable)
  7720. {
  7721. _target->SetRelative (enable);
  7722. }
  7723. DllExport void
  7724. BillboardSet_SetScaled (Urho3D::BillboardSet *_target, bool enable)
  7725. {
  7726. _target->SetScaled (enable);
  7727. }
  7728. DllExport void
  7729. BillboardSet_SetSorted (Urho3D::BillboardSet *_target, bool enable)
  7730. {
  7731. _target->SetSorted (enable);
  7732. }
  7733. DllExport void
  7734. BillboardSet_SetFixedScreenSize (Urho3D::BillboardSet *_target, bool enable)
  7735. {
  7736. _target->SetFixedScreenSize (enable);
  7737. }
  7738. DllExport void
  7739. BillboardSet_SetFaceCameraMode (Urho3D::BillboardSet *_target, enum Urho3D::FaceCameraMode mode)
  7740. {
  7741. _target->SetFaceCameraMode (mode);
  7742. }
  7743. DllExport void
  7744. BillboardSet_SetMinAngle (Urho3D::BillboardSet *_target, float angle)
  7745. {
  7746. _target->SetMinAngle (angle);
  7747. }
  7748. DllExport void
  7749. BillboardSet_SetAnimationLodBias (Urho3D::BillboardSet *_target, float bias)
  7750. {
  7751. _target->SetAnimationLodBias (bias);
  7752. }
  7753. DllExport void
  7754. BillboardSet_Commit (Urho3D::BillboardSet *_target)
  7755. {
  7756. _target->Commit ();
  7757. }
  7758. DllExport Urho3D::Material *
  7759. BillboardSet_GetMaterial (Urho3D::BillboardSet *_target)
  7760. {
  7761. return _target->GetMaterial ();
  7762. }
  7763. DllExport unsigned int
  7764. BillboardSet_GetNumBillboards (Urho3D::BillboardSet *_target)
  7765. {
  7766. return _target->GetNumBillboards ();
  7767. }
  7768. DllExport Urho3D::Billboard *
  7769. BillboardSet_GetBillboard (Urho3D::BillboardSet *_target, unsigned int index)
  7770. {
  7771. return _target->GetBillboard (index);
  7772. }
  7773. DllExport int
  7774. BillboardSet_IsRelative (Urho3D::BillboardSet *_target)
  7775. {
  7776. return _target->IsRelative ();
  7777. }
  7778. DllExport int
  7779. BillboardSet_IsScaled (Urho3D::BillboardSet *_target)
  7780. {
  7781. return _target->IsScaled ();
  7782. }
  7783. DllExport int
  7784. BillboardSet_IsSorted (Urho3D::BillboardSet *_target)
  7785. {
  7786. return _target->IsSorted ();
  7787. }
  7788. DllExport int
  7789. BillboardSet_IsFixedScreenSize (Urho3D::BillboardSet *_target)
  7790. {
  7791. return _target->IsFixedScreenSize ();
  7792. }
  7793. DllExport enum Urho3D::FaceCameraMode
  7794. BillboardSet_GetFaceCameraMode (Urho3D::BillboardSet *_target)
  7795. {
  7796. return _target->GetFaceCameraMode ();
  7797. }
  7798. DllExport float
  7799. BillboardSet_GetMinAngle (Urho3D::BillboardSet *_target)
  7800. {
  7801. return _target->GetMinAngle ();
  7802. }
  7803. DllExport float
  7804. BillboardSet_GetAnimationLodBias (Urho3D::BillboardSet *_target)
  7805. {
  7806. return _target->GetAnimationLodBias ();
  7807. }
  7808. DllExport Urho3D::ResourceRef
  7809. BillboardSet_GetMaterialAttr (Urho3D::BillboardSet *_target)
  7810. {
  7811. return _target->GetMaterialAttr ();
  7812. }
  7813. DllExport int
  7814. Camera_GetType (Urho3D::Camera *_target)
  7815. {
  7816. return (_target->GetType ()).Value ();
  7817. }
  7818. DllExport const char *
  7819. Camera_GetTypeName (Urho3D::Camera *_target)
  7820. {
  7821. return stringdup((_target->GetTypeName ()).CString ());
  7822. }
  7823. DllExport int
  7824. Camera_GetTypeStatic ()
  7825. {
  7826. return (Camera::GetTypeStatic ()).Value ();
  7827. }
  7828. DllExport const char *
  7829. Camera_GetTypeNameStatic ()
  7830. {
  7831. return stringdup((Camera::GetTypeNameStatic ()).CString ());
  7832. }
  7833. DllExport void *
  7834. Camera_Camera (Urho3D::Context * context)
  7835. {
  7836. return WeakPtr<Camera>(new Camera(context));
  7837. }
  7838. DllExport void
  7839. Camera_RegisterObject (Urho3D::Context * context)
  7840. {
  7841. Camera::RegisterObject (context);
  7842. }
  7843. DllExport void
  7844. Camera_DrawDebugGeometry (Urho3D::Camera *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  7845. {
  7846. _target->DrawDebugGeometry (debug, depthTest);
  7847. }
  7848. DllExport void
  7849. Camera_SetNearClip (Urho3D::Camera *_target, float nearClip)
  7850. {
  7851. _target->SetNearClip (nearClip);
  7852. }
  7853. DllExport void
  7854. Camera_SetFarClip (Urho3D::Camera *_target, float farClip)
  7855. {
  7856. _target->SetFarClip (farClip);
  7857. }
  7858. DllExport void
  7859. Camera_SetFov (Urho3D::Camera *_target, float fov)
  7860. {
  7861. _target->SetFov (fov);
  7862. }
  7863. DllExport void
  7864. Camera_SetSkew (Urho3D::Camera *_target, float skew)
  7865. {
  7866. _target->SetSkew (skew);
  7867. }
  7868. DllExport void
  7869. Camera_SetOrthoSize (Urho3D::Camera *_target, float orthoSize)
  7870. {
  7871. _target->SetOrthoSize (orthoSize);
  7872. }
  7873. DllExport void
  7874. Camera_SetOrthoSize0 (Urho3D::Camera *_target, const class Urho3D::Vector2 & orthoSize)
  7875. {
  7876. _target->SetOrthoSize (orthoSize);
  7877. }
  7878. DllExport void
  7879. Camera_SetAspectRatio (Urho3D::Camera *_target, float aspectRatio)
  7880. {
  7881. _target->SetAspectRatio (aspectRatio);
  7882. }
  7883. DllExport void
  7884. Camera_SetFillMode (Urho3D::Camera *_target, enum Urho3D::FillMode mode)
  7885. {
  7886. _target->SetFillMode (mode);
  7887. }
  7888. DllExport void
  7889. Camera_SetZoom (Urho3D::Camera *_target, float zoom)
  7890. {
  7891. _target->SetZoom (zoom);
  7892. }
  7893. DllExport void
  7894. Camera_SetLodBias (Urho3D::Camera *_target, float bias)
  7895. {
  7896. _target->SetLodBias (bias);
  7897. }
  7898. DllExport void
  7899. Camera_SetViewMask (Urho3D::Camera *_target, unsigned int mask)
  7900. {
  7901. _target->SetViewMask (mask);
  7902. }
  7903. DllExport void
  7904. Camera_SetViewOverrideFlags (Urho3D::Camera *_target, unsigned int flags)
  7905. {
  7906. _target->SetViewOverrideFlags (flags);
  7907. }
  7908. DllExport void
  7909. Camera_SetOrthographic (Urho3D::Camera *_target, bool enable)
  7910. {
  7911. _target->SetOrthographic (enable);
  7912. }
  7913. DllExport void
  7914. Camera_SetAutoAspectRatio (Urho3D::Camera *_target, bool enable)
  7915. {
  7916. _target->SetAutoAspectRatio (enable);
  7917. }
  7918. DllExport void
  7919. Camera_SetProjectionOffset (Urho3D::Camera *_target, const class Urho3D::Vector2 & offset)
  7920. {
  7921. _target->SetProjectionOffset (offset);
  7922. }
  7923. DllExport void
  7924. Camera_SetUseReflection (Urho3D::Camera *_target, bool enable)
  7925. {
  7926. _target->SetUseReflection (enable);
  7927. }
  7928. DllExport void
  7929. Camera_SetReflectionPlane (Urho3D::Camera *_target, const class Urho3D::Plane & plane)
  7930. {
  7931. _target->SetReflectionPlane (plane);
  7932. }
  7933. DllExport void
  7934. Camera_SetUseClipping (Urho3D::Camera *_target, bool enable)
  7935. {
  7936. _target->SetUseClipping (enable);
  7937. }
  7938. DllExport void
  7939. Camera_SetClipPlane (Urho3D::Camera *_target, const class Urho3D::Plane & plane)
  7940. {
  7941. _target->SetClipPlane (plane);
  7942. }
  7943. DllExport void
  7944. Camera_SetFlipVertical (Urho3D::Camera *_target, bool enable)
  7945. {
  7946. _target->SetFlipVertical (enable);
  7947. }
  7948. DllExport void
  7949. Camera_SetProjection (Urho3D::Camera *_target, const class Urho3D::Matrix4 & projection)
  7950. {
  7951. _target->SetProjection (projection);
  7952. }
  7953. DllExport float
  7954. Camera_GetFarClip (Urho3D::Camera *_target)
  7955. {
  7956. return _target->GetFarClip ();
  7957. }
  7958. DllExport float
  7959. Camera_GetNearClip (Urho3D::Camera *_target)
  7960. {
  7961. return _target->GetNearClip ();
  7962. }
  7963. DllExport float
  7964. Camera_GetSkew (Urho3D::Camera *_target)
  7965. {
  7966. return _target->GetSkew ();
  7967. }
  7968. DllExport float
  7969. Camera_GetFov (Urho3D::Camera *_target)
  7970. {
  7971. return _target->GetFov ();
  7972. }
  7973. DllExport float
  7974. Camera_GetOrthoSize (Urho3D::Camera *_target)
  7975. {
  7976. return _target->GetOrthoSize ();
  7977. }
  7978. DllExport float
  7979. Camera_GetAspectRatio (Urho3D::Camera *_target)
  7980. {
  7981. return _target->GetAspectRatio ();
  7982. }
  7983. DllExport float
  7984. Camera_GetZoom (Urho3D::Camera *_target)
  7985. {
  7986. return _target->GetZoom ();
  7987. }
  7988. DllExport float
  7989. Camera_GetLodBias (Urho3D::Camera *_target)
  7990. {
  7991. return _target->GetLodBias ();
  7992. }
  7993. DllExport unsigned int
  7994. Camera_GetViewMask (Urho3D::Camera *_target)
  7995. {
  7996. return _target->GetViewMask ();
  7997. }
  7998. DllExport unsigned int
  7999. Camera_GetViewOverrideFlags (Urho3D::Camera *_target)
  8000. {
  8001. return _target->GetViewOverrideFlags ();
  8002. }
  8003. DllExport enum Urho3D::FillMode
  8004. Camera_GetFillMode (Urho3D::Camera *_target)
  8005. {
  8006. return _target->GetFillMode ();
  8007. }
  8008. DllExport int
  8009. Camera_IsOrthographic (Urho3D::Camera *_target)
  8010. {
  8011. return _target->IsOrthographic ();
  8012. }
  8013. DllExport int
  8014. Camera_GetAutoAspectRatio (Urho3D::Camera *_target)
  8015. {
  8016. return _target->GetAutoAspectRatio ();
  8017. }
  8018. DllExport const class Urho3D::Frustum &
  8019. Camera_GetFrustum (Urho3D::Camera *_target)
  8020. {
  8021. return _target->GetFrustum ();
  8022. }
  8023. DllExport Interop::Matrix4
  8024. Camera_GetProjection (Urho3D::Camera *_target)
  8025. {
  8026. return *((Interop::Matrix4 *) &(_target->GetProjection ()));
  8027. }
  8028. DllExport Interop::Matrix4
  8029. Camera_GetGPUProjection (Urho3D::Camera *_target)
  8030. {
  8031. return *((Interop::Matrix4 *) &(_target->GetGPUProjection ()));
  8032. }
  8033. DllExport Interop::Matrix3x4
  8034. Camera_GetView (Urho3D::Camera *_target)
  8035. {
  8036. return *((Interop::Matrix3x4 *) &(_target->GetView ()));
  8037. }
  8038. DllExport float
  8039. Camera_GetHalfViewSize (Urho3D::Camera *_target)
  8040. {
  8041. return _target->GetHalfViewSize ();
  8042. }
  8043. DllExport Urho3D::Frustum *
  8044. Camera_GetSplitFrustum (Urho3D::Camera *_target, float nearClip, float farClip)
  8045. {
  8046. return new Urho3D::Frustum (_target->GetSplitFrustum (nearClip, farClip));
  8047. }
  8048. DllExport Urho3D::Frustum *
  8049. Camera_GetViewSpaceFrustum (Urho3D::Camera *_target)
  8050. {
  8051. return new Urho3D::Frustum (_target->GetViewSpaceFrustum ());
  8052. }
  8053. DllExport Urho3D::Frustum *
  8054. Camera_GetViewSpaceSplitFrustum (Urho3D::Camera *_target, float nearClip, float farClip)
  8055. {
  8056. return new Urho3D::Frustum (_target->GetViewSpaceSplitFrustum (nearClip, farClip));
  8057. }
  8058. DllExport Urho3D::Ray
  8059. Camera_GetScreenRay (Urho3D::Camera *_target, float x, float y)
  8060. {
  8061. return _target->GetScreenRay (x, y);
  8062. }
  8063. DllExport Interop::Vector2
  8064. Camera_WorldToScreenPoint (Urho3D::Camera *_target, const class Urho3D::Vector3 & worldPos)
  8065. {
  8066. return *((Interop::Vector2 *) &(_target->WorldToScreenPoint (worldPos)));
  8067. }
  8068. DllExport Interop::Vector3
  8069. Camera_ScreenToWorldPoint (Urho3D::Camera *_target, const class Urho3D::Vector3 & screenPos)
  8070. {
  8071. return *((Interop::Vector3 *) &(_target->ScreenToWorldPoint (screenPos)));
  8072. }
  8073. DllExport Interop::Vector2
  8074. Camera_GetProjectionOffset (Urho3D::Camera *_target)
  8075. {
  8076. return *((Interop::Vector2 *) &(_target->GetProjectionOffset ()));
  8077. }
  8078. DllExport int
  8079. Camera_GetUseReflection (Urho3D::Camera *_target)
  8080. {
  8081. return _target->GetUseReflection ();
  8082. }
  8083. DllExport Interop::Plane
  8084. Camera_GetReflectionPlane (Urho3D::Camera *_target)
  8085. {
  8086. return *((Interop::Plane *) &(_target->GetReflectionPlane ()));
  8087. }
  8088. DllExport int
  8089. Camera_GetUseClipping (Urho3D::Camera *_target)
  8090. {
  8091. return _target->GetUseClipping ();
  8092. }
  8093. DllExport Interop::Plane
  8094. Camera_GetClipPlane (Urho3D::Camera *_target)
  8095. {
  8096. return *((Interop::Plane *) &(_target->GetClipPlane ()));
  8097. }
  8098. DllExport int
  8099. Camera_GetFlipVertical (Urho3D::Camera *_target)
  8100. {
  8101. return _target->GetFlipVertical ();
  8102. }
  8103. DllExport int
  8104. Camera_GetReverseCulling (Urho3D::Camera *_target)
  8105. {
  8106. return _target->GetReverseCulling ();
  8107. }
  8108. DllExport float
  8109. Camera_GetDistance (Urho3D::Camera *_target, const class Urho3D::Vector3 & worldPos)
  8110. {
  8111. return _target->GetDistance (worldPos);
  8112. }
  8113. DllExport float
  8114. Camera_GetDistanceSquared (Urho3D::Camera *_target, const class Urho3D::Vector3 & worldPos)
  8115. {
  8116. return _target->GetDistanceSquared (worldPos);
  8117. }
  8118. DllExport float
  8119. Camera_GetLodDistance (Urho3D::Camera *_target, float distance, float scale, float bias)
  8120. {
  8121. return _target->GetLodDistance (distance, scale, bias);
  8122. }
  8123. DllExport Interop::Quaternion
  8124. Camera_GetFaceCameraRotation (Urho3D::Camera *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, enum Urho3D::FaceCameraMode mode, float minAngle)
  8125. {
  8126. return *((Interop::Quaternion *) &(_target->GetFaceCameraRotation (position, rotation, mode, minAngle)));
  8127. }
  8128. DllExport Interop::Matrix3x4
  8129. Camera_GetEffectiveWorldTransform (Urho3D::Camera *_target)
  8130. {
  8131. return *((Interop::Matrix3x4 *) &(_target->GetEffectiveWorldTransform ()));
  8132. }
  8133. DllExport int
  8134. Camera_IsProjectionValid (Urho3D::Camera *_target)
  8135. {
  8136. return _target->IsProjectionValid ();
  8137. }
  8138. DllExport void
  8139. Camera_SetAspectRatioInternal (Urho3D::Camera *_target, float aspectRatio)
  8140. {
  8141. _target->SetAspectRatioInternal (aspectRatio);
  8142. }
  8143. DllExport void
  8144. Camera_SetOrthoSizeAttr (Urho3D::Camera *_target, float orthoSize)
  8145. {
  8146. _target->SetOrthoSizeAttr (orthoSize);
  8147. }
  8148. DllExport void
  8149. Camera_SetReflectionPlaneAttr (Urho3D::Camera *_target, const class Urho3D::Vector4 & value)
  8150. {
  8151. _target->SetReflectionPlaneAttr (value);
  8152. }
  8153. DllExport Interop::Vector4
  8154. Camera_GetReflectionPlaneAttr (Urho3D::Camera *_target)
  8155. {
  8156. return *((Interop::Vector4 *) &(_target->GetReflectionPlaneAttr ()));
  8157. }
  8158. DllExport void
  8159. Camera_SetClipPlaneAttr (Urho3D::Camera *_target, const class Urho3D::Vector4 & value)
  8160. {
  8161. _target->SetClipPlaneAttr (value);
  8162. }
  8163. DllExport Interop::Vector4
  8164. Camera_GetClipPlaneAttr (Urho3D::Camera *_target)
  8165. {
  8166. return *((Interop::Vector4 *) &(_target->GetClipPlaneAttr ()));
  8167. }
  8168. DllExport GPUObject*
  8169. ConstantBuffer_CastToGPUObject(Urho3D::ConstantBuffer *_target)
  8170. {
  8171. return static_cast<GPUObject*>(_target);
  8172. }
  8173. DllExport int
  8174. ConstantBuffer_GetType (Urho3D::ConstantBuffer *_target)
  8175. {
  8176. return (_target->GetType ()).Value ();
  8177. }
  8178. DllExport const char *
  8179. ConstantBuffer_GetTypeName (Urho3D::ConstantBuffer *_target)
  8180. {
  8181. return stringdup((_target->GetTypeName ()).CString ());
  8182. }
  8183. DllExport int
  8184. ConstantBuffer_GetTypeStatic ()
  8185. {
  8186. return (ConstantBuffer::GetTypeStatic ()).Value ();
  8187. }
  8188. DllExport const char *
  8189. ConstantBuffer_GetTypeNameStatic ()
  8190. {
  8191. return stringdup((ConstantBuffer::GetTypeNameStatic ()).CString ());
  8192. }
  8193. DllExport void *
  8194. ConstantBuffer_ConstantBuffer (Urho3D::Context * context)
  8195. {
  8196. return WeakPtr<ConstantBuffer>(new ConstantBuffer(context));
  8197. }
  8198. DllExport void
  8199. ConstantBuffer_Release (Urho3D::ConstantBuffer *_target)
  8200. {
  8201. _target->Release ();
  8202. }
  8203. DllExport int
  8204. ConstantBuffer_SetSize (Urho3D::ConstantBuffer *_target, unsigned int size)
  8205. {
  8206. return _target->SetSize (size);
  8207. }
  8208. DllExport void
  8209. ConstantBuffer_SetParameter (Urho3D::ConstantBuffer *_target, unsigned int offset, unsigned int size, const void * data)
  8210. {
  8211. _target->SetParameter (offset, size, data);
  8212. }
  8213. DllExport void
  8214. ConstantBuffer_SetVector3ArrayParameter (Urho3D::ConstantBuffer *_target, unsigned int offset, unsigned int rows, const void * data)
  8215. {
  8216. _target->SetVector3ArrayParameter (offset, rows, data);
  8217. }
  8218. DllExport void
  8219. ConstantBuffer_Apply (Urho3D::ConstantBuffer *_target)
  8220. {
  8221. _target->Apply ();
  8222. }
  8223. DllExport unsigned int
  8224. ConstantBuffer_GetSize (Urho3D::ConstantBuffer *_target)
  8225. {
  8226. return _target->GetSize ();
  8227. }
  8228. DllExport int
  8229. ConstantBuffer_IsDirty (Urho3D::ConstantBuffer *_target)
  8230. {
  8231. return _target->IsDirty ();
  8232. }
  8233. DllExport int
  8234. CustomGeometry_GetType (Urho3D::CustomGeometry *_target)
  8235. {
  8236. return (_target->GetType ()).Value ();
  8237. }
  8238. DllExport const char *
  8239. CustomGeometry_GetTypeName (Urho3D::CustomGeometry *_target)
  8240. {
  8241. return stringdup((_target->GetTypeName ()).CString ());
  8242. }
  8243. DllExport int
  8244. CustomGeometry_GetTypeStatic ()
  8245. {
  8246. return (CustomGeometry::GetTypeStatic ()).Value ();
  8247. }
  8248. DllExport const char *
  8249. CustomGeometry_GetTypeNameStatic ()
  8250. {
  8251. return stringdup((CustomGeometry::GetTypeNameStatic ()).CString ());
  8252. }
  8253. DllExport void *
  8254. CustomGeometry_CustomGeometry (Urho3D::Context * context)
  8255. {
  8256. return WeakPtr<CustomGeometry>(new CustomGeometry(context));
  8257. }
  8258. DllExport void
  8259. CustomGeometry_RegisterObject (Urho3D::Context * context)
  8260. {
  8261. CustomGeometry::RegisterObject (context);
  8262. }
  8263. DllExport Urho3D::Geometry *
  8264. CustomGeometry_GetLodGeometry (Urho3D::CustomGeometry *_target, unsigned int batchIndex, unsigned int level)
  8265. {
  8266. return _target->GetLodGeometry (batchIndex, level);
  8267. }
  8268. DllExport unsigned int
  8269. CustomGeometry_GetNumOccluderTriangles (Urho3D::CustomGeometry *_target)
  8270. {
  8271. return _target->GetNumOccluderTriangles ();
  8272. }
  8273. DllExport int
  8274. CustomGeometry_DrawOcclusion (Urho3D::CustomGeometry *_target, Urho3D::OcclusionBuffer * buffer)
  8275. {
  8276. return _target->DrawOcclusion (buffer);
  8277. }
  8278. DllExport void
  8279. CustomGeometry_Clear (Urho3D::CustomGeometry *_target)
  8280. {
  8281. _target->Clear ();
  8282. }
  8283. DllExport void
  8284. CustomGeometry_SetNumGeometries (Urho3D::CustomGeometry *_target, unsigned int num)
  8285. {
  8286. _target->SetNumGeometries (num);
  8287. }
  8288. DllExport void
  8289. CustomGeometry_SetDynamic (Urho3D::CustomGeometry *_target, bool enable)
  8290. {
  8291. _target->SetDynamic (enable);
  8292. }
  8293. DllExport void
  8294. CustomGeometry_BeginGeometry (Urho3D::CustomGeometry *_target, unsigned int index, enum Urho3D::PrimitiveType type)
  8295. {
  8296. _target->BeginGeometry (index, type);
  8297. }
  8298. DllExport void
  8299. CustomGeometry_DefineVertex (Urho3D::CustomGeometry *_target, const class Urho3D::Vector3 & position)
  8300. {
  8301. _target->DefineVertex (position);
  8302. }
  8303. DllExport void
  8304. CustomGeometry_DefineNormal (Urho3D::CustomGeometry *_target, const class Urho3D::Vector3 & normal)
  8305. {
  8306. _target->DefineNormal (normal);
  8307. }
  8308. DllExport void
  8309. CustomGeometry_DefineColor (Urho3D::CustomGeometry *_target, const class Urho3D::Color & color)
  8310. {
  8311. _target->DefineColor (color);
  8312. }
  8313. DllExport void
  8314. CustomGeometry_DefineTexCoord (Urho3D::CustomGeometry *_target, const class Urho3D::Vector2 & texCoord)
  8315. {
  8316. _target->DefineTexCoord (texCoord);
  8317. }
  8318. DllExport void
  8319. CustomGeometry_DefineTangent (Urho3D::CustomGeometry *_target, const class Urho3D::Vector4 & tangent)
  8320. {
  8321. _target->DefineTangent (tangent);
  8322. }
  8323. DllExport void
  8324. CustomGeometry_DefineGeometry (Urho3D::CustomGeometry *_target, unsigned int index, enum Urho3D::PrimitiveType type, unsigned int numVertices, bool hasNormals, bool hasColors, bool hasTexCoords, bool hasTangents)
  8325. {
  8326. _target->DefineGeometry (index, type, numVertices, hasNormals, hasColors, hasTexCoords, hasTangents);
  8327. }
  8328. DllExport void
  8329. CustomGeometry_Commit (Urho3D::CustomGeometry *_target)
  8330. {
  8331. _target->Commit ();
  8332. }
  8333. DllExport void
  8334. CustomGeometry_SetMaterial (Urho3D::CustomGeometry *_target, Urho3D::Material * material)
  8335. {
  8336. _target->SetMaterial (material);
  8337. }
  8338. DllExport int
  8339. CustomGeometry_SetMaterial0 (Urho3D::CustomGeometry *_target, unsigned int index, Urho3D::Material * material)
  8340. {
  8341. return _target->SetMaterial (index, material);
  8342. }
  8343. DllExport unsigned int
  8344. CustomGeometry_GetNumGeometries (Urho3D::CustomGeometry *_target)
  8345. {
  8346. return _target->GetNumGeometries ();
  8347. }
  8348. DllExport unsigned int
  8349. CustomGeometry_GetNumVertices (Urho3D::CustomGeometry *_target, unsigned int index)
  8350. {
  8351. return _target->GetNumVertices (index);
  8352. }
  8353. DllExport int
  8354. CustomGeometry_IsDynamic (Urho3D::CustomGeometry *_target)
  8355. {
  8356. return _target->IsDynamic ();
  8357. }
  8358. DllExport Urho3D::Material *
  8359. CustomGeometry_GetMaterial (Urho3D::CustomGeometry *_target, unsigned int index)
  8360. {
  8361. return _target->GetMaterial (index);
  8362. }
  8363. DllExport Urho3D::CustomGeometryVertex *
  8364. CustomGeometry_GetVertex (Urho3D::CustomGeometry *_target, unsigned int geometryIndex, unsigned int vertexNum)
  8365. {
  8366. return _target->GetVertex (geometryIndex, vertexNum);
  8367. }
  8368. DllExport int
  8369. DebugRenderer_GetType (Urho3D::DebugRenderer *_target)
  8370. {
  8371. return (_target->GetType ()).Value ();
  8372. }
  8373. DllExport const char *
  8374. DebugRenderer_GetTypeName (Urho3D::DebugRenderer *_target)
  8375. {
  8376. return stringdup((_target->GetTypeName ()).CString ());
  8377. }
  8378. DllExport int
  8379. DebugRenderer_GetTypeStatic ()
  8380. {
  8381. return (DebugRenderer::GetTypeStatic ()).Value ();
  8382. }
  8383. DllExport const char *
  8384. DebugRenderer_GetTypeNameStatic ()
  8385. {
  8386. return stringdup((DebugRenderer::GetTypeNameStatic ()).CString ());
  8387. }
  8388. DllExport void *
  8389. DebugRenderer_DebugRenderer (Urho3D::Context * context)
  8390. {
  8391. return WeakPtr<DebugRenderer>(new DebugRenderer(context));
  8392. }
  8393. DllExport void
  8394. DebugRenderer_RegisterObject (Urho3D::Context * context)
  8395. {
  8396. DebugRenderer::RegisterObject (context);
  8397. }
  8398. DllExport void
  8399. DebugRenderer_SetLineAntiAlias (Urho3D::DebugRenderer *_target, bool enable)
  8400. {
  8401. _target->SetLineAntiAlias (enable);
  8402. }
  8403. DllExport void
  8404. DebugRenderer_SetView (Urho3D::DebugRenderer *_target, Urho3D::Camera * camera)
  8405. {
  8406. _target->SetView (camera);
  8407. }
  8408. DllExport void
  8409. DebugRenderer_AddLine (Urho3D::DebugRenderer *_target, const class Urho3D::Vector3 & start, const class Urho3D::Vector3 & end, const class Urho3D::Color & color, bool depthTest)
  8410. {
  8411. _target->AddLine (start, end, color, depthTest);
  8412. }
  8413. DllExport void
  8414. DebugRenderer_AddLine0 (Urho3D::DebugRenderer *_target, const class Urho3D::Vector3 & start, const class Urho3D::Vector3 & end, unsigned int color, bool depthTest)
  8415. {
  8416. _target->AddLine (start, end, color, depthTest);
  8417. }
  8418. DllExport void
  8419. 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)
  8420. {
  8421. _target->AddTriangle (v1, v2, v3, color, depthTest);
  8422. }
  8423. DllExport void
  8424. 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)
  8425. {
  8426. _target->AddTriangle (v1, v2, v3, color, depthTest);
  8427. }
  8428. DllExport void
  8429. DebugRenderer_AddPolygon (Urho3D::DebugRenderer *_target, const class Urho3D::Vector3 & v1, const class Urho3D::Vector3 & v2, const class Urho3D::Vector3 & v3, const class Urho3D::Vector3 & v4, const class Urho3D::Color & color, bool depthTest)
  8430. {
  8431. _target->AddPolygon (v1, v2, v3, v4, color, depthTest);
  8432. }
  8433. DllExport void
  8434. DebugRenderer_AddPolygon2 (Urho3D::DebugRenderer *_target, const class Urho3D::Vector3 & v1, const class Urho3D::Vector3 & v2, const class Urho3D::Vector3 & v3, const class Urho3D::Vector3 & v4, unsigned int color, bool depthTest)
  8435. {
  8436. _target->AddPolygon (v1, v2, v3, v4, color, depthTest);
  8437. }
  8438. DllExport void
  8439. DebugRenderer_AddNode (Urho3D::DebugRenderer *_target, Urho3D::Node * node, float scale, bool depthTest)
  8440. {
  8441. _target->AddNode (node, scale, depthTest);
  8442. }
  8443. DllExport void
  8444. DebugRenderer_AddBoundingBox (Urho3D::DebugRenderer *_target, const class Urho3D::BoundingBox & box, const class Urho3D::Color & color, bool depthTest, bool solid)
  8445. {
  8446. _target->AddBoundingBox (box, color, depthTest, solid);
  8447. }
  8448. DllExport void
  8449. DebugRenderer_AddBoundingBox3 (Urho3D::DebugRenderer *_target, const class Urho3D::BoundingBox & box, const class Urho3D::Matrix3x4 & transform, const class Urho3D::Color & color, bool depthTest, bool solid)
  8450. {
  8451. _target->AddBoundingBox (box, transform, color, depthTest, solid);
  8452. }
  8453. DllExport void
  8454. DebugRenderer_AddFrustum (Urho3D::DebugRenderer *_target, const class Urho3D::Frustum & frustum, const class Urho3D::Color & color, bool depthTest)
  8455. {
  8456. _target->AddFrustum (frustum, color, depthTest);
  8457. }
  8458. DllExport void
  8459. DebugRenderer_AddPolyhedron (Urho3D::DebugRenderer *_target, const class Urho3D::Polyhedron & poly, const class Urho3D::Color & color, bool depthTest)
  8460. {
  8461. _target->AddPolyhedron (poly, color, depthTest);
  8462. }
  8463. DllExport void
  8464. DebugRenderer_AddSphere (Urho3D::DebugRenderer *_target, const class Urho3D::Sphere & sphere, const class Urho3D::Color & color, bool depthTest)
  8465. {
  8466. _target->AddSphere (sphere, color, depthTest);
  8467. }
  8468. DllExport void
  8469. DebugRenderer_AddSphereSector (Urho3D::DebugRenderer *_target, const class Urho3D::Sphere & sphere, const class Urho3D::Quaternion & rotation, float angle, bool drawLines, const class Urho3D::Color & color, bool depthTest)
  8470. {
  8471. _target->AddSphereSector (sphere, rotation, angle, drawLines, color, depthTest);
  8472. }
  8473. DllExport void
  8474. DebugRenderer_AddCylinder (Urho3D::DebugRenderer *_target, const class Urho3D::Vector3 & position, float radius, float height, const class Urho3D::Color & color, bool depthTest)
  8475. {
  8476. _target->AddCylinder (position, radius, height, color, depthTest);
  8477. }
  8478. DllExport void
  8479. 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)
  8480. {
  8481. _target->AddTriangleMesh (vertexData, vertexSize, indexData, indexSize, indexStart, indexCount, transform, color, depthTest);
  8482. }
  8483. DllExport void
  8484. DebugRenderer_AddTriangleMesh4 (Urho3D::DebugRenderer *_target, const void * vertexData, unsigned int vertexSize, unsigned int vertexStart, const void * indexData, unsigned int indexSize, unsigned int indexStart, unsigned int indexCount, const class Urho3D::Matrix3x4 & transform, const class Urho3D::Color & color, bool depthTest)
  8485. {
  8486. _target->AddTriangleMesh (vertexData, vertexSize, vertexStart, indexData, indexSize, indexStart, indexCount, transform, color, depthTest);
  8487. }
  8488. DllExport void
  8489. 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)
  8490. {
  8491. _target->AddCircle (center, normal, radius, color, steps, depthTest);
  8492. }
  8493. DllExport void
  8494. DebugRenderer_AddCross (Urho3D::DebugRenderer *_target, const class Urho3D::Vector3 & center, float size, const class Urho3D::Color & color, bool depthTest)
  8495. {
  8496. _target->AddCross (center, size, color, depthTest);
  8497. }
  8498. DllExport void
  8499. DebugRenderer_AddQuad (Urho3D::DebugRenderer *_target, const class Urho3D::Vector3 & center, float width, float height, const class Urho3D::Color & color, bool depthTest)
  8500. {
  8501. _target->AddQuad (center, width, height, color, depthTest);
  8502. }
  8503. DllExport void
  8504. DebugRenderer_Render (Urho3D::DebugRenderer *_target)
  8505. {
  8506. _target->Render ();
  8507. }
  8508. DllExport int
  8509. DebugRenderer_GetLineAntiAlias (Urho3D::DebugRenderer *_target)
  8510. {
  8511. return _target->GetLineAntiAlias ();
  8512. }
  8513. DllExport Interop::Matrix3x4
  8514. DebugRenderer_GetView (Urho3D::DebugRenderer *_target)
  8515. {
  8516. return *((Interop::Matrix3x4 *) &(_target->GetView ()));
  8517. }
  8518. DllExport Interop::Matrix4
  8519. DebugRenderer_GetProjection (Urho3D::DebugRenderer *_target)
  8520. {
  8521. return *((Interop::Matrix4 *) &(_target->GetProjection ()));
  8522. }
  8523. DllExport const class Urho3D::Frustum &
  8524. DebugRenderer_GetFrustum (Urho3D::DebugRenderer *_target)
  8525. {
  8526. return _target->GetFrustum ();
  8527. }
  8528. DllExport int
  8529. DebugRenderer_IsInside (Urho3D::DebugRenderer *_target, const class Urho3D::BoundingBox & box)
  8530. {
  8531. return _target->IsInside (box);
  8532. }
  8533. DllExport int
  8534. DebugRenderer_HasContent (Urho3D::DebugRenderer *_target)
  8535. {
  8536. return _target->HasContent ();
  8537. }
  8538. DllExport int
  8539. DecalSet_GetType (Urho3D::DecalSet *_target)
  8540. {
  8541. return (_target->GetType ()).Value ();
  8542. }
  8543. DllExport const char *
  8544. DecalSet_GetTypeName (Urho3D::DecalSet *_target)
  8545. {
  8546. return stringdup((_target->GetTypeName ()).CString ());
  8547. }
  8548. DllExport int
  8549. DecalSet_GetTypeStatic ()
  8550. {
  8551. return (DecalSet::GetTypeStatic ()).Value ();
  8552. }
  8553. DllExport const char *
  8554. DecalSet_GetTypeNameStatic ()
  8555. {
  8556. return stringdup((DecalSet::GetTypeNameStatic ()).CString ());
  8557. }
  8558. DllExport void *
  8559. DecalSet_DecalSet (Urho3D::Context * context)
  8560. {
  8561. return WeakPtr<DecalSet>(new DecalSet(context));
  8562. }
  8563. DllExport void
  8564. DecalSet_RegisterObject (Urho3D::Context * context)
  8565. {
  8566. DecalSet::RegisterObject (context);
  8567. }
  8568. DllExport void
  8569. DecalSet_ApplyAttributes (Urho3D::DecalSet *_target)
  8570. {
  8571. _target->ApplyAttributes ();
  8572. }
  8573. DllExport void
  8574. DecalSet_OnSetEnabled (Urho3D::DecalSet *_target)
  8575. {
  8576. _target->OnSetEnabled ();
  8577. }
  8578. DllExport enum Urho3D::UpdateGeometryType
  8579. DecalSet_GetUpdateGeometryType (Urho3D::DecalSet *_target)
  8580. {
  8581. return _target->GetUpdateGeometryType ();
  8582. }
  8583. DllExport void
  8584. DecalSet_SetMaterial (Urho3D::DecalSet *_target, Urho3D::Material * material)
  8585. {
  8586. _target->SetMaterial (material);
  8587. }
  8588. DllExport void
  8589. DecalSet_SetMaxVertices (Urho3D::DecalSet *_target, unsigned int num)
  8590. {
  8591. _target->SetMaxVertices (num);
  8592. }
  8593. DllExport void
  8594. DecalSet_SetMaxIndices (Urho3D::DecalSet *_target, unsigned int num)
  8595. {
  8596. _target->SetMaxIndices (num);
  8597. }
  8598. DllExport void
  8599. DecalSet_SetOptimizeBufferSize (Urho3D::DecalSet *_target, bool enable)
  8600. {
  8601. _target->SetOptimizeBufferSize (enable);
  8602. }
  8603. DllExport int
  8604. 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)
  8605. {
  8606. return _target->AddDecal (target, worldPosition, worldRotation, size, aspectRatio, depth, topLeftUV, bottomRightUV, timeToLive, normalCutoff, subGeometry);
  8607. }
  8608. DllExport void
  8609. DecalSet_RemoveDecals (Urho3D::DecalSet *_target, unsigned int num)
  8610. {
  8611. _target->RemoveDecals (num);
  8612. }
  8613. DllExport void
  8614. DecalSet_RemoveAllDecals (Urho3D::DecalSet *_target)
  8615. {
  8616. _target->RemoveAllDecals ();
  8617. }
  8618. DllExport Urho3D::Material *
  8619. DecalSet_GetMaterial (Urho3D::DecalSet *_target)
  8620. {
  8621. return _target->GetMaterial ();
  8622. }
  8623. DllExport unsigned int
  8624. DecalSet_GetNumDecals (Urho3D::DecalSet *_target)
  8625. {
  8626. return _target->GetNumDecals ();
  8627. }
  8628. DllExport unsigned int
  8629. DecalSet_GetNumVertices (Urho3D::DecalSet *_target)
  8630. {
  8631. return _target->GetNumVertices ();
  8632. }
  8633. DllExport unsigned int
  8634. DecalSet_GetNumIndices (Urho3D::DecalSet *_target)
  8635. {
  8636. return _target->GetNumIndices ();
  8637. }
  8638. DllExport unsigned int
  8639. DecalSet_GetMaxVertices (Urho3D::DecalSet *_target)
  8640. {
  8641. return _target->GetMaxVertices ();
  8642. }
  8643. DllExport unsigned int
  8644. DecalSet_GetMaxIndices (Urho3D::DecalSet *_target)
  8645. {
  8646. return _target->GetMaxIndices ();
  8647. }
  8648. DllExport int
  8649. DecalSet_GetOptimizeBufferSize (Urho3D::DecalSet *_target)
  8650. {
  8651. return _target->GetOptimizeBufferSize ();
  8652. }
  8653. DllExport Urho3D::ResourceRef
  8654. DecalSet_GetMaterialAttr (Urho3D::DecalSet *_target)
  8655. {
  8656. return _target->GetMaterialAttr ();
  8657. }
  8658. DllExport int
  8659. Geometry_GetType (Urho3D::Geometry *_target)
  8660. {
  8661. return (_target->GetType ()).Value ();
  8662. }
  8663. DllExport const char *
  8664. Geometry_GetTypeName (Urho3D::Geometry *_target)
  8665. {
  8666. return stringdup((_target->GetTypeName ()).CString ());
  8667. }
  8668. DllExport int
  8669. Geometry_GetTypeStatic ()
  8670. {
  8671. return (Geometry::GetTypeStatic ()).Value ();
  8672. }
  8673. DllExport const char *
  8674. Geometry_GetTypeNameStatic ()
  8675. {
  8676. return stringdup((Geometry::GetTypeNameStatic ()).CString ());
  8677. }
  8678. DllExport void *
  8679. Geometry_Geometry (Urho3D::Context * context)
  8680. {
  8681. return WeakPtr<Geometry>(new Geometry(context));
  8682. }
  8683. DllExport int
  8684. Geometry_SetNumVertexBuffers (Urho3D::Geometry *_target, unsigned int num)
  8685. {
  8686. return _target->SetNumVertexBuffers (num);
  8687. }
  8688. DllExport int
  8689. Geometry_SetVertexBuffer (Urho3D::Geometry *_target, unsigned int index, Urho3D::VertexBuffer * buffer)
  8690. {
  8691. return _target->SetVertexBuffer (index, buffer);
  8692. }
  8693. DllExport void
  8694. Geometry_SetIndexBuffer (Urho3D::Geometry *_target, Urho3D::IndexBuffer * buffer)
  8695. {
  8696. _target->SetIndexBuffer (buffer);
  8697. }
  8698. DllExport int
  8699. Geometry_SetDrawRange (Urho3D::Geometry *_target, enum Urho3D::PrimitiveType type, unsigned int indexStart, unsigned int indexCount, bool getUsedVertexRange)
  8700. {
  8701. return _target->SetDrawRange (type, indexStart, indexCount, getUsedVertexRange);
  8702. }
  8703. DllExport int
  8704. Geometry_SetDrawRange0 (Urho3D::Geometry *_target, enum Urho3D::PrimitiveType type, unsigned int indexStart, unsigned int indexCount, unsigned int vertexStart, unsigned int vertexCount, bool checkIllegal)
  8705. {
  8706. return _target->SetDrawRange (type, indexStart, indexCount, vertexStart, vertexCount, checkIllegal);
  8707. }
  8708. DllExport void
  8709. Geometry_SetLodDistance (Urho3D::Geometry *_target, float distance)
  8710. {
  8711. _target->SetLodDistance (distance);
  8712. }
  8713. DllExport void
  8714. Geometry_Draw (Urho3D::Geometry *_target, Urho3D::Graphics * graphics)
  8715. {
  8716. _target->Draw (graphics);
  8717. }
  8718. DllExport const Vector<SharedPtr<class Urho3D::VertexBuffer> > &
  8719. Geometry_GetVertexBuffers (Urho3D::Geometry *_target)
  8720. {
  8721. return _target->GetVertexBuffers ();
  8722. }
  8723. DllExport unsigned int
  8724. Geometry_GetNumVertexBuffers (Urho3D::Geometry *_target)
  8725. {
  8726. return _target->GetNumVertexBuffers ();
  8727. }
  8728. DllExport Urho3D::VertexBuffer *
  8729. Geometry_GetVertexBuffer (Urho3D::Geometry *_target, unsigned int index)
  8730. {
  8731. return _target->GetVertexBuffer (index);
  8732. }
  8733. DllExport Urho3D::IndexBuffer *
  8734. Geometry_GetIndexBuffer (Urho3D::Geometry *_target)
  8735. {
  8736. return _target->GetIndexBuffer ();
  8737. }
  8738. DllExport enum Urho3D::PrimitiveType
  8739. Geometry_GetPrimitiveType (Urho3D::Geometry *_target)
  8740. {
  8741. return _target->GetPrimitiveType ();
  8742. }
  8743. DllExport unsigned int
  8744. Geometry_GetIndexStart (Urho3D::Geometry *_target)
  8745. {
  8746. return _target->GetIndexStart ();
  8747. }
  8748. DllExport unsigned int
  8749. Geometry_GetIndexCount (Urho3D::Geometry *_target)
  8750. {
  8751. return _target->GetIndexCount ();
  8752. }
  8753. DllExport unsigned int
  8754. Geometry_GetVertexStart (Urho3D::Geometry *_target)
  8755. {
  8756. return _target->GetVertexStart ();
  8757. }
  8758. DllExport unsigned int
  8759. Geometry_GetVertexCount (Urho3D::Geometry *_target)
  8760. {
  8761. return _target->GetVertexCount ();
  8762. }
  8763. DllExport float
  8764. Geometry_GetLodDistance (Urho3D::Geometry *_target)
  8765. {
  8766. return _target->GetLodDistance ();
  8767. }
  8768. DllExport unsigned short
  8769. Geometry_GetBufferHash (Urho3D::Geometry *_target)
  8770. {
  8771. return _target->GetBufferHash ();
  8772. }
  8773. DllExport float
  8774. Geometry_GetHitDistance (Urho3D::Geometry *_target, const class Urho3D::Ray & ray, Urho3D::Vector3 * outNormal, Urho3D::Vector2 * outUV)
  8775. {
  8776. return _target->GetHitDistance (ray, outNormal, outUV);
  8777. }
  8778. DllExport int
  8779. Geometry_IsInside (Urho3D::Geometry *_target, const class Urho3D::Ray & ray)
  8780. {
  8781. return _target->IsInside (ray);
  8782. }
  8783. DllExport int
  8784. Geometry_IsEmpty (Urho3D::Geometry *_target)
  8785. {
  8786. return _target->IsEmpty ();
  8787. }
  8788. DllExport GPUObject*
  8789. ShaderVariation_CastToGPUObject(Urho3D::ShaderVariation *_target)
  8790. {
  8791. return static_cast<GPUObject*>(_target);
  8792. }
  8793. DllExport void *
  8794. ShaderVariation_ShaderVariation (Urho3D::Shader * owner, enum Urho3D::ShaderType type)
  8795. {
  8796. return WeakPtr<ShaderVariation>(new ShaderVariation(owner, type));
  8797. }
  8798. DllExport void
  8799. ShaderVariation_Release (Urho3D::ShaderVariation *_target)
  8800. {
  8801. _target->Release ();
  8802. }
  8803. DllExport int
  8804. ShaderVariation_Create (Urho3D::ShaderVariation *_target)
  8805. {
  8806. return _target->Create ();
  8807. }
  8808. DllExport void
  8809. ShaderVariation_SetName (Urho3D::ShaderVariation *_target, const char * name)
  8810. {
  8811. _target->SetName (Urho3D::String(name));
  8812. }
  8813. DllExport void
  8814. ShaderVariation_SetDefines (Urho3D::ShaderVariation *_target, const char * defines)
  8815. {
  8816. _target->SetDefines (Urho3D::String(defines));
  8817. }
  8818. DllExport Urho3D::Shader *
  8819. ShaderVariation_GetOwner (Urho3D::ShaderVariation *_target)
  8820. {
  8821. return _target->GetOwner ();
  8822. }
  8823. DllExport enum Urho3D::ShaderType
  8824. ShaderVariation_GetShaderType (Urho3D::ShaderVariation *_target)
  8825. {
  8826. return _target->GetShaderType ();
  8827. }
  8828. DllExport const char *
  8829. ShaderVariation_GetName (Urho3D::ShaderVariation *_target)
  8830. {
  8831. return stringdup((_target->GetName ()).CString ());
  8832. }
  8833. DllExport const char *
  8834. ShaderVariation_GetFullName (Urho3D::ShaderVariation *_target)
  8835. {
  8836. return stringdup((_target->GetFullName ()).CString ());
  8837. }
  8838. DllExport int
  8839. ShaderVariation_HasParameter (Urho3D::ShaderVariation *_target, int param)
  8840. {
  8841. return _target->HasParameter (Urho3D::StringHash(param));
  8842. }
  8843. DllExport int
  8844. ShaderVariation_HasTextureUnit (Urho3D::ShaderVariation *_target, enum Urho3D::TextureUnit unit)
  8845. {
  8846. return _target->HasTextureUnit (unit);
  8847. }
  8848. DllExport unsigned long long
  8849. ShaderVariation_GetElementHash (Urho3D::ShaderVariation *_target)
  8850. {
  8851. return _target->GetElementHash ();
  8852. }
  8853. DllExport const char *
  8854. ShaderVariation_GetDefines (Urho3D::ShaderVariation *_target)
  8855. {
  8856. return stringdup((_target->GetDefines ()).CString ());
  8857. }
  8858. DllExport const char *
  8859. ShaderVariation_GetCompilerOutput (Urho3D::ShaderVariation *_target)
  8860. {
  8861. return stringdup((_target->GetCompilerOutput ()).CString ());
  8862. }
  8863. DllExport const unsigned int *
  8864. ShaderVariation_GetConstantBufferSizes (Urho3D::ShaderVariation *_target)
  8865. {
  8866. return _target->GetConstantBufferSizes ();
  8867. }
  8868. DllExport const char *
  8869. ShaderVariation_GetDefinesClipPlane (Urho3D::ShaderVariation *_target)
  8870. {
  8871. return stringdup((_target->GetDefinesClipPlane ()).CString ());
  8872. }
  8873. DllExport int
  8874. Image_GetType (Urho3D::Image *_target)
  8875. {
  8876. return (_target->GetType ()).Value ();
  8877. }
  8878. DllExport const char *
  8879. Image_GetTypeName (Urho3D::Image *_target)
  8880. {
  8881. return stringdup((_target->GetTypeName ()).CString ());
  8882. }
  8883. DllExport int
  8884. Image_GetTypeStatic ()
  8885. {
  8886. return (Image::GetTypeStatic ()).Value ();
  8887. }
  8888. DllExport const char *
  8889. Image_GetTypeNameStatic ()
  8890. {
  8891. return stringdup((Image::GetTypeNameStatic ()).CString ());
  8892. }
  8893. DllExport void *
  8894. Image_Image (Urho3D::Context * context)
  8895. {
  8896. return WeakPtr<Image>(new Image(context));
  8897. }
  8898. DllExport void
  8899. Image_RegisterObject (Urho3D::Context * context)
  8900. {
  8901. Image::RegisterObject (context);
  8902. }
  8903. DllExport int
  8904. Image_BeginLoad_File (Urho3D::Image *_target, File * source)
  8905. {
  8906. return _target->BeginLoad (*source);
  8907. }
  8908. DllExport int
  8909. Image_BeginLoad_MemoryBuffer (Urho3D::Image *_target, MemoryBuffer * source)
  8910. {
  8911. return _target->BeginLoad (*source);
  8912. }
  8913. DllExport int
  8914. Image_Save_File (Urho3D::Image *_target, File * dest)
  8915. {
  8916. return _target->Save (*dest);
  8917. }
  8918. DllExport int
  8919. Image_Save_MemoryBuffer (Urho3D::Image *_target, MemoryBuffer * dest)
  8920. {
  8921. return _target->Save (*dest);
  8922. }
  8923. DllExport int
  8924. Image_SaveFile (Urho3D::Image *_target, const char * fileName)
  8925. {
  8926. return _target->SaveFile (Urho3D::String(fileName));
  8927. }
  8928. DllExport int
  8929. Image_SetSize (Urho3D::Image *_target, int width, int height, unsigned int components)
  8930. {
  8931. return _target->SetSize (width, height, components);
  8932. }
  8933. DllExport int
  8934. Image_SetSize0 (Urho3D::Image *_target, int width, int height, int depth, unsigned int components)
  8935. {
  8936. return _target->SetSize (width, height, depth, components);
  8937. }
  8938. DllExport void
  8939. Image_SetData (Urho3D::Image *_target, const unsigned char * pixelData)
  8940. {
  8941. _target->SetData (pixelData);
  8942. }
  8943. DllExport void
  8944. Image_SetPixel (Urho3D::Image *_target, int x, int y, const class Urho3D::Color & color)
  8945. {
  8946. _target->SetPixel (x, y, color);
  8947. }
  8948. DllExport void
  8949. Image_SetPixel1 (Urho3D::Image *_target, int x, int y, int z, const class Urho3D::Color & color)
  8950. {
  8951. _target->SetPixel (x, y, z, color);
  8952. }
  8953. DllExport void
  8954. Image_SetPixelInt (Urho3D::Image *_target, int x, int y, unsigned int uintColor)
  8955. {
  8956. _target->SetPixelInt (x, y, uintColor);
  8957. }
  8958. DllExport void
  8959. Image_SetPixelInt2 (Urho3D::Image *_target, int x, int y, int z, unsigned int uintColor)
  8960. {
  8961. _target->SetPixelInt (x, y, z, uintColor);
  8962. }
  8963. DllExport int
  8964. Image_LoadColorLUT_File (Urho3D::Image *_target, File * source)
  8965. {
  8966. return _target->LoadColorLUT (*source);
  8967. }
  8968. DllExport int
  8969. Image_LoadColorLUT_MemoryBuffer (Urho3D::Image *_target, MemoryBuffer * source)
  8970. {
  8971. return _target->LoadColorLUT (*source);
  8972. }
  8973. DllExport int
  8974. Image_FlipHorizontal (Urho3D::Image *_target)
  8975. {
  8976. return _target->FlipHorizontal ();
  8977. }
  8978. DllExport int
  8979. Image_FlipVertical (Urho3D::Image *_target)
  8980. {
  8981. return _target->FlipVertical ();
  8982. }
  8983. DllExport int
  8984. Image_Resize (Urho3D::Image *_target, int width, int height)
  8985. {
  8986. return _target->Resize (width, height);
  8987. }
  8988. DllExport void
  8989. Image_Clear (Urho3D::Image *_target, const class Urho3D::Color & color)
  8990. {
  8991. _target->Clear (color);
  8992. }
  8993. DllExport void
  8994. Image_ClearInt (Urho3D::Image *_target, unsigned int uintColor)
  8995. {
  8996. _target->ClearInt (uintColor);
  8997. }
  8998. DllExport int
  8999. Image_SaveBMP (Urho3D::Image *_target, const char * fileName)
  9000. {
  9001. return _target->SaveBMP (Urho3D::String(fileName));
  9002. }
  9003. DllExport int
  9004. Image_SavePNG (Urho3D::Image *_target, const char * fileName)
  9005. {
  9006. return _target->SavePNG (Urho3D::String(fileName));
  9007. }
  9008. DllExport int
  9009. Image_SaveTGA (Urho3D::Image *_target, const char * fileName)
  9010. {
  9011. return _target->SaveTGA (Urho3D::String(fileName));
  9012. }
  9013. DllExport int
  9014. Image_SaveJPG (Urho3D::Image *_target, const char * fileName, int quality)
  9015. {
  9016. return _target->SaveJPG (Urho3D::String(fileName), quality);
  9017. }
  9018. DllExport int
  9019. Image_SaveDDS (Urho3D::Image *_target, const char * fileName)
  9020. {
  9021. return _target->SaveDDS (Urho3D::String(fileName));
  9022. }
  9023. DllExport int
  9024. Image_SaveWEBP (Urho3D::Image *_target, const char * fileName, float compression)
  9025. {
  9026. return _target->SaveWEBP (Urho3D::String(fileName), compression);
  9027. }
  9028. DllExport int
  9029. Image_IsCubemap (Urho3D::Image *_target)
  9030. {
  9031. return _target->IsCubemap ();
  9032. }
  9033. DllExport int
  9034. Image_IsArray (Urho3D::Image *_target)
  9035. {
  9036. return _target->IsArray ();
  9037. }
  9038. DllExport int
  9039. Image_IsSRGB (Urho3D::Image *_target)
  9040. {
  9041. return _target->IsSRGB ();
  9042. }
  9043. DllExport Interop::Color
  9044. Image_GetPixel (Urho3D::Image *_target, int x, int y)
  9045. {
  9046. return *((Interop::Color *) &(_target->GetPixel (x, y)));
  9047. }
  9048. DllExport Interop::Color
  9049. Image_GetPixel3 (Urho3D::Image *_target, int x, int y, int z)
  9050. {
  9051. return *((Interop::Color *) &(_target->GetPixel (x, y, z)));
  9052. }
  9053. DllExport unsigned int
  9054. Image_GetPixelInt (Urho3D::Image *_target, int x, int y)
  9055. {
  9056. return _target->GetPixelInt (x, y);
  9057. }
  9058. DllExport unsigned int
  9059. Image_GetPixelInt4 (Urho3D::Image *_target, int x, int y, int z)
  9060. {
  9061. return _target->GetPixelInt (x, y, z);
  9062. }
  9063. DllExport Interop::Color
  9064. Image_GetPixelBilinear (Urho3D::Image *_target, float x, float y)
  9065. {
  9066. return *((Interop::Color *) &(_target->GetPixelBilinear (x, y)));
  9067. }
  9068. DllExport Interop::Color
  9069. Image_GetPixelTrilinear (Urho3D::Image *_target, float x, float y, float z)
  9070. {
  9071. return *((Interop::Color *) &(_target->GetPixelTrilinear (x, y, z)));
  9072. }
  9073. DllExport int
  9074. Image_GetWidth (Urho3D::Image *_target)
  9075. {
  9076. return _target->GetWidth ();
  9077. }
  9078. DllExport int
  9079. Image_GetHeight (Urho3D::Image *_target)
  9080. {
  9081. return _target->GetHeight ();
  9082. }
  9083. DllExport int
  9084. Image_GetDepth (Urho3D::Image *_target)
  9085. {
  9086. return _target->GetDepth ();
  9087. }
  9088. DllExport unsigned int
  9089. Image_GetComponents (Urho3D::Image *_target)
  9090. {
  9091. return _target->GetComponents ();
  9092. }
  9093. DllExport unsigned char *
  9094. Image_GetData (Urho3D::Image *_target)
  9095. {
  9096. return _target->GetData ();
  9097. }
  9098. DllExport int
  9099. Image_IsCompressed (Urho3D::Image *_target)
  9100. {
  9101. return _target->IsCompressed ();
  9102. }
  9103. DllExport enum Urho3D::CompressedFormat
  9104. Image_GetCompressedFormat (Urho3D::Image *_target)
  9105. {
  9106. return _target->GetCompressedFormat ();
  9107. }
  9108. DllExport unsigned int
  9109. Image_GetNumCompressedLevels (Urho3D::Image *_target)
  9110. {
  9111. return _target->GetNumCompressedLevels ();
  9112. }
  9113. DllExport Urho3D::Image *
  9114. Image_GetNextLevel (Urho3D::Image *_target)
  9115. {
  9116. auto copy = _target->GetNextLevel ();
  9117. auto plain = copy.Get();
  9118. copy.Detach();
  9119. delete copy;
  9120. return plain;
  9121. }
  9122. DllExport Urho3D::Image *
  9123. Image_GetNextSibling (Urho3D::Image *_target)
  9124. {
  9125. auto copy = _target->GetNextSibling ();
  9126. auto plain = copy.Get();
  9127. copy.Detach();
  9128. delete copy;
  9129. return plain;
  9130. }
  9131. DllExport Urho3D::Image *
  9132. Image_ConvertToRGBA (Urho3D::Image *_target)
  9133. {
  9134. auto copy = _target->ConvertToRGBA ();
  9135. auto plain = copy.Get();
  9136. copy.Detach();
  9137. delete copy;
  9138. return plain;
  9139. }
  9140. DllExport Urho3D::CompressedLevel
  9141. Image_GetCompressedLevel (Urho3D::Image *_target, unsigned int index)
  9142. {
  9143. return _target->GetCompressedLevel (index);
  9144. }
  9145. DllExport Urho3D::Image *
  9146. Image_GetSubimage (Urho3D::Image *_target, const class Urho3D::IntRect & rect)
  9147. {
  9148. return _target->GetSubimage (rect);
  9149. }
  9150. DllExport void
  9151. Image_PrecalculateLevels (Urho3D::Image *_target)
  9152. {
  9153. _target->PrecalculateLevels ();
  9154. }
  9155. DllExport int
  9156. Image_HasAlphaChannel (Urho3D::Image *_target)
  9157. {
  9158. return _target->HasAlphaChannel ();
  9159. }
  9160. DllExport int
  9161. Image_SetSubimage (Urho3D::Image *_target, const class Urho3D::Image * image, const class Urho3D::IntRect & rect)
  9162. {
  9163. return _target->SetSubimage (image, rect);
  9164. }
  9165. DllExport void
  9166. Image_CleanupLevels (Urho3D::Image *_target)
  9167. {
  9168. _target->CleanupLevels ();
  9169. }
  9170. DllExport int
  9171. Graphics_GetType (Urho3D::Graphics *_target)
  9172. {
  9173. return (_target->GetType ()).Value ();
  9174. }
  9175. DllExport const char *
  9176. Graphics_GetTypeName (Urho3D::Graphics *_target)
  9177. {
  9178. return stringdup((_target->GetTypeName ()).CString ());
  9179. }
  9180. DllExport int
  9181. Graphics_GetTypeStatic ()
  9182. {
  9183. return (Graphics::GetTypeStatic ()).Value ();
  9184. }
  9185. DllExport const char *
  9186. Graphics_GetTypeNameStatic ()
  9187. {
  9188. return stringdup((Graphics::GetTypeNameStatic ()).CString ());
  9189. }
  9190. DllExport void *
  9191. Graphics_Graphics (Urho3D::Context * context)
  9192. {
  9193. return WeakPtr<Graphics>(new Graphics(context));
  9194. }
  9195. DllExport void
  9196. Graphics_SetExternalWindow (Urho3D::Graphics *_target, void * window)
  9197. {
  9198. _target->SetExternalWindow (window);
  9199. }
  9200. DllExport void
  9201. Graphics_SetWindowTitle (Urho3D::Graphics *_target, const char * windowTitle)
  9202. {
  9203. _target->SetWindowTitle (Urho3D::String(windowTitle));
  9204. }
  9205. DllExport void
  9206. Graphics_SetWindowIcon (Urho3D::Graphics *_target, Urho3D::Image * windowIcon)
  9207. {
  9208. _target->SetWindowIcon (windowIcon);
  9209. }
  9210. DllExport void
  9211. Graphics_SetWindowPosition (Urho3D::Graphics *_target, const class Urho3D::IntVector2 & position)
  9212. {
  9213. _target->SetWindowPosition (position);
  9214. }
  9215. DllExport void
  9216. Graphics_SetWindowPosition0 (Urho3D::Graphics *_target, int x, int y)
  9217. {
  9218. _target->SetWindowPosition (x, y);
  9219. }
  9220. DllExport int
  9221. Graphics_SetMode (Urho3D::Graphics *_target, int width, int height, bool fullscreen, bool borderless, bool resizable, bool highDPI, bool vsync, bool tripleBuffer, int multiSample, int monitor, int refreshRate)
  9222. {
  9223. return _target->SetMode (width, height, fullscreen, borderless, resizable, highDPI, vsync, tripleBuffer, multiSample, monitor, refreshRate);
  9224. }
  9225. DllExport int
  9226. Graphics_SetMode1 (Urho3D::Graphics *_target, int width, int height)
  9227. {
  9228. return _target->SetMode (width, height);
  9229. }
  9230. DllExport void
  9231. Graphics_SetSRGB (Urho3D::Graphics *_target, bool enable)
  9232. {
  9233. _target->SetSRGB (enable);
  9234. }
  9235. DllExport void
  9236. Graphics_SetDither (Urho3D::Graphics *_target, bool enable)
  9237. {
  9238. _target->SetDither (enable);
  9239. }
  9240. DllExport void
  9241. Graphics_SetFlushGPU (Urho3D::Graphics *_target, bool enable)
  9242. {
  9243. _target->SetFlushGPU (enable);
  9244. }
  9245. DllExport void
  9246. Graphics_SetOrientations (Urho3D::Graphics *_target, const char * orientations)
  9247. {
  9248. _target->SetOrientations (Urho3D::String(orientations));
  9249. }
  9250. DllExport int
  9251. Graphics_ToggleFullscreen (Urho3D::Graphics *_target)
  9252. {
  9253. return _target->ToggleFullscreen ();
  9254. }
  9255. DllExport void
  9256. Graphics_Close (Urho3D::Graphics *_target)
  9257. {
  9258. _target->Close ();
  9259. }
  9260. DllExport int
  9261. Graphics_TakeScreenShot (Urho3D::Graphics *_target, Image * destImage)
  9262. {
  9263. return _target->TakeScreenShot (*destImage);
  9264. }
  9265. DllExport int
  9266. Graphics_BeginFrame (Urho3D::Graphics *_target)
  9267. {
  9268. return _target->BeginFrame ();
  9269. }
  9270. DllExport void
  9271. Graphics_EndFrame (Urho3D::Graphics *_target)
  9272. {
  9273. _target->EndFrame ();
  9274. }
  9275. DllExport void
  9276. Graphics_Clear (Urho3D::Graphics *_target, unsigned int flags, const class Urho3D::Color & color, float depth, unsigned int stencil)
  9277. {
  9278. _target->Clear (flags, color, depth, stencil);
  9279. }
  9280. DllExport int
  9281. Graphics_ResolveToTexture (Urho3D::Graphics *_target, Urho3D::Texture2D * destination, const class Urho3D::IntRect & viewport)
  9282. {
  9283. return _target->ResolveToTexture (destination, viewport);
  9284. }
  9285. DllExport int
  9286. Graphics_ResolveToTexture2 (Urho3D::Graphics *_target, Urho3D::Texture2D * texture)
  9287. {
  9288. return _target->ResolveToTexture (texture);
  9289. }
  9290. DllExport int
  9291. Graphics_ResolveToTexture3 (Urho3D::Graphics *_target, Urho3D::TextureCube * texture)
  9292. {
  9293. return _target->ResolveToTexture (texture);
  9294. }
  9295. DllExport void
  9296. Graphics_Draw (Urho3D::Graphics *_target, enum Urho3D::PrimitiveType type, unsigned int vertexStart, unsigned int vertexCount)
  9297. {
  9298. _target->Draw (type, vertexStart, vertexCount);
  9299. }
  9300. DllExport void
  9301. Graphics_Draw4 (Urho3D::Graphics *_target, enum Urho3D::PrimitiveType type, unsigned int indexStart, unsigned int indexCount, unsigned int minVertex, unsigned int vertexCount)
  9302. {
  9303. _target->Draw (type, indexStart, indexCount, minVertex, vertexCount);
  9304. }
  9305. DllExport void
  9306. Graphics_Draw5 (Urho3D::Graphics *_target, enum Urho3D::PrimitiveType type, unsigned int indexStart, unsigned int indexCount, unsigned int baseVertexIndex, unsigned int minVertex, unsigned int vertexCount)
  9307. {
  9308. _target->Draw (type, indexStart, indexCount, baseVertexIndex, minVertex, vertexCount);
  9309. }
  9310. DllExport void
  9311. Graphics_DrawInstanced (Urho3D::Graphics *_target, enum Urho3D::PrimitiveType type, unsigned int indexStart, unsigned int indexCount, unsigned int minVertex, unsigned int vertexCount, unsigned int instanceCount)
  9312. {
  9313. _target->DrawInstanced (type, indexStart, indexCount, minVertex, vertexCount, instanceCount);
  9314. }
  9315. DllExport void
  9316. 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)
  9317. {
  9318. _target->DrawInstanced (type, indexStart, indexCount, baseVertexIndex, minVertex, vertexCount, instanceCount);
  9319. }
  9320. DllExport void
  9321. Graphics_SetVertexBuffer (Urho3D::Graphics *_target, Urho3D::VertexBuffer * buffer)
  9322. {
  9323. _target->SetVertexBuffer (buffer);
  9324. }
  9325. DllExport void
  9326. Graphics_SetIndexBuffer (Urho3D::Graphics *_target, Urho3D::IndexBuffer * buffer)
  9327. {
  9328. _target->SetIndexBuffer (buffer);
  9329. }
  9330. DllExport void
  9331. Graphics_SetShaders (Urho3D::Graphics *_target, Urho3D::ShaderVariation * vs, Urho3D::ShaderVariation * ps)
  9332. {
  9333. _target->SetShaders (vs, ps);
  9334. }
  9335. DllExport void
  9336. Graphics_SetShaderParameter (Urho3D::Graphics *_target, int param, const float * data, unsigned int count)
  9337. {
  9338. _target->SetShaderParameter (Urho3D::StringHash(param), data, count);
  9339. }
  9340. DllExport void
  9341. Graphics_SetShaderParameter7 (Urho3D::Graphics *_target, int param, float value)
  9342. {
  9343. _target->SetShaderParameter (Urho3D::StringHash(param), value);
  9344. }
  9345. DllExport void
  9346. Graphics_SetShaderParameter8 (Urho3D::Graphics *_target, int param, int value)
  9347. {
  9348. _target->SetShaderParameter (Urho3D::StringHash(param), value);
  9349. }
  9350. DllExport void
  9351. Graphics_SetShaderParameter9 (Urho3D::Graphics *_target, int param, bool value)
  9352. {
  9353. _target->SetShaderParameter (Urho3D::StringHash(param), value);
  9354. }
  9355. DllExport void
  9356. Graphics_SetShaderParameter10 (Urho3D::Graphics *_target, int param, const class Urho3D::Color & color)
  9357. {
  9358. _target->SetShaderParameter (Urho3D::StringHash(param), color);
  9359. }
  9360. DllExport void
  9361. Graphics_SetShaderParameter11 (Urho3D::Graphics *_target, int param, const class Urho3D::Vector2 & vector)
  9362. {
  9363. _target->SetShaderParameter (Urho3D::StringHash(param), vector);
  9364. }
  9365. DllExport void
  9366. Graphics_SetShaderParameter12 (Urho3D::Graphics *_target, int param, const class Urho3D::Vector3 & vector)
  9367. {
  9368. _target->SetShaderParameter (Urho3D::StringHash(param), vector);
  9369. }
  9370. DllExport void
  9371. Graphics_SetShaderParameter13 (Urho3D::Graphics *_target, int param, const class Urho3D::Matrix4 & matrix)
  9372. {
  9373. _target->SetShaderParameter (Urho3D::StringHash(param), matrix);
  9374. }
  9375. DllExport void
  9376. Graphics_SetShaderParameter14 (Urho3D::Graphics *_target, int param, const class Urho3D::Vector4 & vector)
  9377. {
  9378. _target->SetShaderParameter (Urho3D::StringHash(param), vector);
  9379. }
  9380. DllExport void
  9381. Graphics_SetShaderParameter15 (Urho3D::Graphics *_target, int param, const class Urho3D::Matrix3x4 & matrix)
  9382. {
  9383. _target->SetShaderParameter (Urho3D::StringHash(param), matrix);
  9384. }
  9385. DllExport int
  9386. Graphics_NeedParameterUpdate (Urho3D::Graphics *_target, enum Urho3D::ShaderParameterGroup group, const void * source)
  9387. {
  9388. return _target->NeedParameterUpdate (group, source);
  9389. }
  9390. DllExport int
  9391. Graphics_HasShaderParameter (Urho3D::Graphics *_target, int param)
  9392. {
  9393. return _target->HasShaderParameter (Urho3D::StringHash(param));
  9394. }
  9395. DllExport int
  9396. Graphics_HasTextureUnit (Urho3D::Graphics *_target, enum Urho3D::TextureUnit unit)
  9397. {
  9398. return _target->HasTextureUnit (unit);
  9399. }
  9400. DllExport void
  9401. Graphics_ClearParameterSource (Urho3D::Graphics *_target, enum Urho3D::ShaderParameterGroup group)
  9402. {
  9403. _target->ClearParameterSource (group);
  9404. }
  9405. DllExport void
  9406. Graphics_ClearParameterSources (Urho3D::Graphics *_target)
  9407. {
  9408. _target->ClearParameterSources ();
  9409. }
  9410. DllExport void
  9411. Graphics_ClearTransformSources (Urho3D::Graphics *_target)
  9412. {
  9413. _target->ClearTransformSources ();
  9414. }
  9415. DllExport void
  9416. Graphics_SetTexture (Urho3D::Graphics *_target, unsigned int index, Urho3D::Texture * texture)
  9417. {
  9418. _target->SetTexture (index, texture);
  9419. }
  9420. DllExport void
  9421. Graphics_SetTextureParametersDirty (Urho3D::Graphics *_target)
  9422. {
  9423. _target->SetTextureParametersDirty ();
  9424. }
  9425. DllExport void
  9426. Graphics_SetDefaultTextureFilterMode (Urho3D::Graphics *_target, enum Urho3D::TextureFilterMode mode)
  9427. {
  9428. _target->SetDefaultTextureFilterMode (mode);
  9429. }
  9430. DllExport void
  9431. Graphics_SetDefaultTextureAnisotropy (Urho3D::Graphics *_target, unsigned int level)
  9432. {
  9433. _target->SetDefaultTextureAnisotropy (level);
  9434. }
  9435. DllExport void
  9436. Graphics_ResetRenderTargets (Urho3D::Graphics *_target)
  9437. {
  9438. _target->ResetRenderTargets ();
  9439. }
  9440. DllExport void
  9441. Graphics_ResetRenderTarget (Urho3D::Graphics *_target, unsigned int index)
  9442. {
  9443. _target->ResetRenderTarget (index);
  9444. }
  9445. DllExport void
  9446. Graphics_ResetDepthStencil (Urho3D::Graphics *_target)
  9447. {
  9448. _target->ResetDepthStencil ();
  9449. }
  9450. DllExport void
  9451. Graphics_SetRenderTarget (Urho3D::Graphics *_target, unsigned int index, Urho3D::RenderSurface * renderTarget)
  9452. {
  9453. _target->SetRenderTarget (index, renderTarget);
  9454. }
  9455. DllExport void
  9456. Graphics_SetRenderTarget16 (Urho3D::Graphics *_target, unsigned int index, Urho3D::Texture2D * texture)
  9457. {
  9458. _target->SetRenderTarget (index, texture);
  9459. }
  9460. DllExport void
  9461. Graphics_SetDepthStencil (Urho3D::Graphics *_target, Urho3D::RenderSurface * depthStencil)
  9462. {
  9463. _target->SetDepthStencil (depthStencil);
  9464. }
  9465. DllExport void
  9466. Graphics_SetDepthStencil17 (Urho3D::Graphics *_target, Urho3D::Texture2D * texture)
  9467. {
  9468. _target->SetDepthStencil (texture);
  9469. }
  9470. DllExport void
  9471. Graphics_SetViewport (Urho3D::Graphics *_target, const class Urho3D::IntRect & rect)
  9472. {
  9473. _target->SetViewport (rect);
  9474. }
  9475. DllExport void
  9476. Graphics_SetBlendMode (Urho3D::Graphics *_target, enum Urho3D::BlendMode mode, bool alphaToCoverage)
  9477. {
  9478. _target->SetBlendMode (mode, alphaToCoverage);
  9479. }
  9480. DllExport void
  9481. Graphics_SetColorWrite (Urho3D::Graphics *_target, bool enable)
  9482. {
  9483. _target->SetColorWrite (enable);
  9484. }
  9485. DllExport void
  9486. Graphics_SetCullMode (Urho3D::Graphics *_target, enum Urho3D::CullMode mode)
  9487. {
  9488. _target->SetCullMode (mode);
  9489. }
  9490. DllExport void
  9491. Graphics_SetDepthBias (Urho3D::Graphics *_target, float constantBias, float slopeScaledBias)
  9492. {
  9493. _target->SetDepthBias (constantBias, slopeScaledBias);
  9494. }
  9495. DllExport void
  9496. Graphics_SetDepthTest (Urho3D::Graphics *_target, enum Urho3D::CompareMode mode)
  9497. {
  9498. _target->SetDepthTest (mode);
  9499. }
  9500. DllExport void
  9501. Graphics_SetDepthWrite (Urho3D::Graphics *_target, bool enable)
  9502. {
  9503. _target->SetDepthWrite (enable);
  9504. }
  9505. DllExport void
  9506. Graphics_SetFillMode (Urho3D::Graphics *_target, enum Urho3D::FillMode mode)
  9507. {
  9508. _target->SetFillMode (mode);
  9509. }
  9510. DllExport void
  9511. Graphics_SetStereo (Urho3D::Graphics *_target, bool stereo)
  9512. {
  9513. _target->SetStereo (stereo);
  9514. }
  9515. DllExport void
  9516. Graphics_SetLineAntiAlias (Urho3D::Graphics *_target, bool enable)
  9517. {
  9518. _target->SetLineAntiAlias (enable);
  9519. }
  9520. DllExport void
  9521. Graphics_SetScissorTest (Urho3D::Graphics *_target, bool enable, const class Urho3D::IntRect & rect)
  9522. {
  9523. _target->SetScissorTest (enable, rect);
  9524. }
  9525. DllExport void
  9526. 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)
  9527. {
  9528. _target->SetStencilTest (enable, mode, pass, fail, zFail, stencilRef, compareMask, writeMask);
  9529. }
  9530. DllExport void
  9531. Graphics_SetClipPlane (Urho3D::Graphics *_target, bool enable, const class Urho3D::Plane & clipPlane, const class Urho3D::Matrix3x4 & view, const class Urho3D::Matrix4 & projection)
  9532. {
  9533. _target->SetClipPlane (enable, clipPlane, view, projection);
  9534. }
  9535. DllExport void
  9536. Graphics_BeginDumpShaders (Urho3D::Graphics *_target, const char * fileName)
  9537. {
  9538. _target->BeginDumpShaders (Urho3D::String(fileName));
  9539. }
  9540. DllExport void
  9541. Graphics_EndDumpShaders (Urho3D::Graphics *_target)
  9542. {
  9543. _target->EndDumpShaders ();
  9544. }
  9545. DllExport void
  9546. Graphics_PrecacheShaders_File (Urho3D::Graphics *_target, File * source)
  9547. {
  9548. _target->PrecacheShaders (*source);
  9549. }
  9550. DllExport void
  9551. Graphics_PrecacheShaders_MemoryBuffer (Urho3D::Graphics *_target, MemoryBuffer * source)
  9552. {
  9553. _target->PrecacheShaders (*source);
  9554. }
  9555. DllExport void
  9556. Graphics_SetShaderCacheDir (Urho3D::Graphics *_target, const char * path)
  9557. {
  9558. _target->SetShaderCacheDir (Urho3D::String(path));
  9559. }
  9560. DllExport int
  9561. Graphics_IsInitialized (Urho3D::Graphics *_target)
  9562. {
  9563. return _target->IsInitialized ();
  9564. }
  9565. DllExport Urho3D::GraphicsImpl *
  9566. Graphics_GetImpl (Urho3D::Graphics *_target)
  9567. {
  9568. return _target->GetImpl ();
  9569. }
  9570. DllExport void *
  9571. Graphics_GetExternalWindow (Urho3D::Graphics *_target)
  9572. {
  9573. return _target->GetExternalWindow ();
  9574. }
  9575. DllExport const char *
  9576. Graphics_GetWindowTitle (Urho3D::Graphics *_target)
  9577. {
  9578. return stringdup((_target->GetWindowTitle ()).CString ());
  9579. }
  9580. DllExport const char *
  9581. Graphics_GetApiName (Urho3D::Graphics *_target)
  9582. {
  9583. return stringdup((_target->GetApiName ()).CString ());
  9584. }
  9585. DllExport Interop::IntVector2
  9586. Graphics_GetWindowPosition (Urho3D::Graphics *_target)
  9587. {
  9588. return *((Interop::IntVector2 *) &(_target->GetWindowPosition ()));
  9589. }
  9590. DllExport int
  9591. Graphics_GetWidth (Urho3D::Graphics *_target)
  9592. {
  9593. return _target->GetWidth ();
  9594. }
  9595. DllExport int
  9596. Graphics_GetHeight (Urho3D::Graphics *_target)
  9597. {
  9598. return _target->GetHeight ();
  9599. }
  9600. DllExport int
  9601. Graphics_GetMultiSample (Urho3D::Graphics *_target)
  9602. {
  9603. return _target->GetMultiSample ();
  9604. }
  9605. DllExport Interop::IntVector2
  9606. Graphics_GetSize (Urho3D::Graphics *_target)
  9607. {
  9608. return *((Interop::IntVector2 *) &(_target->GetSize ()));
  9609. }
  9610. DllExport int
  9611. Graphics_GetFullscreen (Urho3D::Graphics *_target)
  9612. {
  9613. return _target->GetFullscreen ();
  9614. }
  9615. DllExport int
  9616. Graphics_GetBorderless (Urho3D::Graphics *_target)
  9617. {
  9618. return _target->GetBorderless ();
  9619. }
  9620. DllExport int
  9621. Graphics_GetResizable (Urho3D::Graphics *_target)
  9622. {
  9623. return _target->GetResizable ();
  9624. }
  9625. DllExport int
  9626. Graphics_GetHighDPI (Urho3D::Graphics *_target)
  9627. {
  9628. return _target->GetHighDPI ();
  9629. }
  9630. DllExport int
  9631. Graphics_GetVSync (Urho3D::Graphics *_target)
  9632. {
  9633. return _target->GetVSync ();
  9634. }
  9635. DllExport int
  9636. Graphics_GetRefreshRate (Urho3D::Graphics *_target)
  9637. {
  9638. return _target->GetRefreshRate ();
  9639. }
  9640. DllExport int
  9641. Graphics_GetMonitor (Urho3D::Graphics *_target)
  9642. {
  9643. return _target->GetMonitor ();
  9644. }
  9645. DllExport int
  9646. Graphics_GetTripleBuffer (Urho3D::Graphics *_target)
  9647. {
  9648. return _target->GetTripleBuffer ();
  9649. }
  9650. DllExport int
  9651. Graphics_GetSRGB (Urho3D::Graphics *_target)
  9652. {
  9653. return _target->GetSRGB ();
  9654. }
  9655. DllExport int
  9656. Graphics_GetDither (Urho3D::Graphics *_target)
  9657. {
  9658. return _target->GetDither ();
  9659. }
  9660. DllExport int
  9661. Graphics_GetFlushGPU (Urho3D::Graphics *_target)
  9662. {
  9663. return _target->GetFlushGPU ();
  9664. }
  9665. DllExport const char *
  9666. Graphics_GetOrientations (Urho3D::Graphics *_target)
  9667. {
  9668. return stringdup((_target->GetOrientations ()).CString ());
  9669. }
  9670. DllExport int
  9671. Graphics_IsDeviceLost (Urho3D::Graphics *_target)
  9672. {
  9673. return _target->IsDeviceLost ();
  9674. }
  9675. DllExport unsigned int
  9676. Graphics_GetNumPrimitives (Urho3D::Graphics *_target)
  9677. {
  9678. return _target->GetNumPrimitives ();
  9679. }
  9680. DllExport unsigned int
  9681. Graphics_GetNumBatches (Urho3D::Graphics *_target)
  9682. {
  9683. return _target->GetNumBatches ();
  9684. }
  9685. DllExport unsigned int
  9686. Graphics_GetDummyColorFormat (Urho3D::Graphics *_target)
  9687. {
  9688. return _target->GetDummyColorFormat ();
  9689. }
  9690. DllExport unsigned int
  9691. Graphics_GetShadowMapFormat (Urho3D::Graphics *_target)
  9692. {
  9693. return _target->GetShadowMapFormat ();
  9694. }
  9695. DllExport unsigned int
  9696. Graphics_GetHiresShadowMapFormat (Urho3D::Graphics *_target)
  9697. {
  9698. return _target->GetHiresShadowMapFormat ();
  9699. }
  9700. DllExport int
  9701. Graphics_GetInstancingSupport (Urho3D::Graphics *_target)
  9702. {
  9703. return _target->GetInstancingSupport ();
  9704. }
  9705. DllExport int
  9706. Graphics_GetLightPrepassSupport (Urho3D::Graphics *_target)
  9707. {
  9708. return _target->GetLightPrepassSupport ();
  9709. }
  9710. DllExport int
  9711. Graphics_GetDeferredSupport (Urho3D::Graphics *_target)
  9712. {
  9713. return _target->GetDeferredSupport ();
  9714. }
  9715. DllExport int
  9716. Graphics_GetHardwareShadowSupport (Urho3D::Graphics *_target)
  9717. {
  9718. return _target->GetHardwareShadowSupport ();
  9719. }
  9720. DllExport int
  9721. Graphics_GetReadableDepthSupport (Urho3D::Graphics *_target)
  9722. {
  9723. return _target->GetReadableDepthSupport ();
  9724. }
  9725. DllExport int
  9726. Graphics_GetSRGBSupport (Urho3D::Graphics *_target)
  9727. {
  9728. return _target->GetSRGBSupport ();
  9729. }
  9730. DllExport int
  9731. Graphics_GetSRGBWriteSupport (Urho3D::Graphics *_target)
  9732. {
  9733. return _target->GetSRGBWriteSupport ();
  9734. }
  9735. DllExport Interop::IntVector2
  9736. Graphics_GetDesktopResolution (Urho3D::Graphics *_target, int monitor)
  9737. {
  9738. return *((Interop::IntVector2 *) &(_target->GetDesktopResolution (monitor)));
  9739. }
  9740. DllExport int
  9741. Graphics_GetMonitorCount (Urho3D::Graphics *_target)
  9742. {
  9743. return _target->GetMonitorCount ();
  9744. }
  9745. DllExport int
  9746. Graphics_GetCurrentMonitor (Urho3D::Graphics *_target)
  9747. {
  9748. return _target->GetCurrentMonitor ();
  9749. }
  9750. DllExport int
  9751. Graphics_GetMaximized (Urho3D::Graphics *_target)
  9752. {
  9753. return _target->GetMaximized ();
  9754. }
  9755. DllExport Interop::Vector3
  9756. Graphics_GetDisplayDPI (Urho3D::Graphics *_target, int monitor)
  9757. {
  9758. return *((Interop::Vector3 *) &(_target->GetDisplayDPI (monitor)));
  9759. }
  9760. DllExport unsigned int
  9761. Graphics_GetFormat (Urho3D::Graphics *_target, enum Urho3D::CompressedFormat format)
  9762. {
  9763. return _target->GetFormat (format);
  9764. }
  9765. DllExport Urho3D::ShaderVariation *
  9766. Graphics_GetShader (Urho3D::Graphics *_target, enum Urho3D::ShaderType type, const char * name, const char * defines)
  9767. {
  9768. return _target->GetShader (type, Urho3D::String(name), Urho3D::String(defines));
  9769. }
  9770. DllExport Urho3D::VertexBuffer *
  9771. Graphics_GetVertexBuffer (Urho3D::Graphics *_target, unsigned int index)
  9772. {
  9773. return _target->GetVertexBuffer (index);
  9774. }
  9775. DllExport Urho3D::IndexBuffer *
  9776. Graphics_GetIndexBuffer (Urho3D::Graphics *_target)
  9777. {
  9778. return _target->GetIndexBuffer ();
  9779. }
  9780. DllExport Urho3D::ShaderVariation *
  9781. Graphics_GetVertexShader (Urho3D::Graphics *_target)
  9782. {
  9783. return _target->GetVertexShader ();
  9784. }
  9785. DllExport Urho3D::ShaderVariation *
  9786. Graphics_GetPixelShader (Urho3D::Graphics *_target)
  9787. {
  9788. return _target->GetPixelShader ();
  9789. }
  9790. DllExport enum Urho3D::TextureUnit
  9791. Graphics_GetTextureUnit (Urho3D::Graphics *_target, const char * name)
  9792. {
  9793. return _target->GetTextureUnit (Urho3D::String(name));
  9794. }
  9795. DllExport const char *
  9796. Graphics_GetTextureUnitName (Urho3D::Graphics *_target, enum Urho3D::TextureUnit unit)
  9797. {
  9798. return stringdup((_target->GetTextureUnitName (unit)).CString ());
  9799. }
  9800. DllExport Urho3D::Texture *
  9801. Graphics_GetTexture (Urho3D::Graphics *_target, unsigned int index)
  9802. {
  9803. return _target->GetTexture (index);
  9804. }
  9805. DllExport enum Urho3D::TextureFilterMode
  9806. Graphics_GetDefaultTextureFilterMode (Urho3D::Graphics *_target)
  9807. {
  9808. return _target->GetDefaultTextureFilterMode ();
  9809. }
  9810. DllExport unsigned int
  9811. Graphics_GetDefaultTextureAnisotropy (Urho3D::Graphics *_target)
  9812. {
  9813. return _target->GetDefaultTextureAnisotropy ();
  9814. }
  9815. DllExport Urho3D::RenderSurface *
  9816. Graphics_GetRenderTarget (Urho3D::Graphics *_target, unsigned int index)
  9817. {
  9818. return _target->GetRenderTarget (index);
  9819. }
  9820. DllExport Urho3D::RenderSurface *
  9821. Graphics_GetDepthStencil (Urho3D::Graphics *_target)
  9822. {
  9823. return _target->GetDepthStencil ();
  9824. }
  9825. DllExport Interop::IntRect
  9826. Graphics_GetViewport (Urho3D::Graphics *_target)
  9827. {
  9828. return *((Interop::IntRect *) &(_target->GetViewport ()));
  9829. }
  9830. DllExport enum Urho3D::BlendMode
  9831. Graphics_GetBlendMode (Urho3D::Graphics *_target)
  9832. {
  9833. return _target->GetBlendMode ();
  9834. }
  9835. DllExport int
  9836. Graphics_GetAlphaToCoverage (Urho3D::Graphics *_target)
  9837. {
  9838. return _target->GetAlphaToCoverage ();
  9839. }
  9840. DllExport int
  9841. Graphics_GetColorWrite (Urho3D::Graphics *_target)
  9842. {
  9843. return _target->GetColorWrite ();
  9844. }
  9845. DllExport enum Urho3D::CullMode
  9846. Graphics_GetCullMode (Urho3D::Graphics *_target)
  9847. {
  9848. return _target->GetCullMode ();
  9849. }
  9850. DllExport float
  9851. Graphics_GetDepthConstantBias (Urho3D::Graphics *_target)
  9852. {
  9853. return _target->GetDepthConstantBias ();
  9854. }
  9855. DllExport float
  9856. Graphics_GetDepthSlopeScaledBias (Urho3D::Graphics *_target)
  9857. {
  9858. return _target->GetDepthSlopeScaledBias ();
  9859. }
  9860. DllExport enum Urho3D::CompareMode
  9861. Graphics_GetDepthTest (Urho3D::Graphics *_target)
  9862. {
  9863. return _target->GetDepthTest ();
  9864. }
  9865. DllExport int
  9866. Graphics_GetDepthWrite (Urho3D::Graphics *_target)
  9867. {
  9868. return _target->GetDepthWrite ();
  9869. }
  9870. DllExport enum Urho3D::FillMode
  9871. Graphics_GetFillMode (Urho3D::Graphics *_target)
  9872. {
  9873. return _target->GetFillMode ();
  9874. }
  9875. DllExport int
  9876. Graphics_GetLineAntiAlias (Urho3D::Graphics *_target)
  9877. {
  9878. return _target->GetLineAntiAlias ();
  9879. }
  9880. DllExport int
  9881. Graphics_GetStencilTest (Urho3D::Graphics *_target)
  9882. {
  9883. return _target->GetStencilTest ();
  9884. }
  9885. DllExport int
  9886. Graphics_GetScissorTest (Urho3D::Graphics *_target)
  9887. {
  9888. return _target->GetScissorTest ();
  9889. }
  9890. DllExport Interop::IntRect
  9891. Graphics_GetScissorRect (Urho3D::Graphics *_target)
  9892. {
  9893. return *((Interop::IntRect *) &(_target->GetScissorRect ()));
  9894. }
  9895. DllExport enum Urho3D::CompareMode
  9896. Graphics_GetStencilTestMode (Urho3D::Graphics *_target)
  9897. {
  9898. return _target->GetStencilTestMode ();
  9899. }
  9900. DllExport enum Urho3D::StencilOp
  9901. Graphics_GetStencilPass (Urho3D::Graphics *_target)
  9902. {
  9903. return _target->GetStencilPass ();
  9904. }
  9905. DllExport enum Urho3D::StencilOp
  9906. Graphics_GetStencilFail (Urho3D::Graphics *_target)
  9907. {
  9908. return _target->GetStencilFail ();
  9909. }
  9910. DllExport enum Urho3D::StencilOp
  9911. Graphics_GetStencilZFail (Urho3D::Graphics *_target)
  9912. {
  9913. return _target->GetStencilZFail ();
  9914. }
  9915. DllExport unsigned int
  9916. Graphics_GetStencilRef (Urho3D::Graphics *_target)
  9917. {
  9918. return _target->GetStencilRef ();
  9919. }
  9920. DllExport unsigned int
  9921. Graphics_GetStencilCompareMask (Urho3D::Graphics *_target)
  9922. {
  9923. return _target->GetStencilCompareMask ();
  9924. }
  9925. DllExport unsigned int
  9926. Graphics_GetStencilWriteMask (Urho3D::Graphics *_target)
  9927. {
  9928. return _target->GetStencilWriteMask ();
  9929. }
  9930. DllExport int
  9931. Graphics_GetUseClipPlane (Urho3D::Graphics *_target)
  9932. {
  9933. return _target->GetUseClipPlane ();
  9934. }
  9935. DllExport const char *
  9936. Graphics_GetShaderCacheDir (Urho3D::Graphics *_target)
  9937. {
  9938. return stringdup((_target->GetShaderCacheDir ()).CString ());
  9939. }
  9940. DllExport Interop::IntVector2
  9941. Graphics_GetRenderTargetDimensions (Urho3D::Graphics *_target)
  9942. {
  9943. return *((Interop::IntVector2 *) &(_target->GetRenderTargetDimensions ()));
  9944. }
  9945. DllExport void
  9946. Graphics_OnWindowResized (Urho3D::Graphics *_target)
  9947. {
  9948. _target->OnWindowResized ();
  9949. }
  9950. DllExport void
  9951. Graphics_OnWindowMoved (Urho3D::Graphics *_target)
  9952. {
  9953. _target->OnWindowMoved ();
  9954. }
  9955. DllExport void
  9956. Graphics_Maximize (Urho3D::Graphics *_target)
  9957. {
  9958. _target->Maximize ();
  9959. }
  9960. DllExport void
  9961. Graphics_Minimize (Urho3D::Graphics *_target)
  9962. {
  9963. _target->Minimize ();
  9964. }
  9965. DllExport void
  9966. Graphics_Raise (Urho3D::Graphics *_target)
  9967. {
  9968. _target->Raise ();
  9969. }
  9970. DllExport void
  9971. Graphics_AddGPUObject (Urho3D::Graphics *_target, Urho3D::GPUObject * object)
  9972. {
  9973. _target->AddGPUObject (object);
  9974. }
  9975. DllExport void
  9976. Graphics_RemoveGPUObject (Urho3D::Graphics *_target, Urho3D::GPUObject * object)
  9977. {
  9978. _target->RemoveGPUObject (object);
  9979. }
  9980. DllExport void *
  9981. Graphics_ReserveScratchBuffer (Urho3D::Graphics *_target, unsigned int size)
  9982. {
  9983. return _target->ReserveScratchBuffer (size);
  9984. }
  9985. DllExport void
  9986. Graphics_FreeScratchBuffer (Urho3D::Graphics *_target, void * buffer)
  9987. {
  9988. _target->FreeScratchBuffer (buffer);
  9989. }
  9990. DllExport void
  9991. Graphics_CleanupScratchBuffers (Urho3D::Graphics *_target)
  9992. {
  9993. _target->CleanupScratchBuffers ();
  9994. }
  9995. DllExport unsigned int
  9996. Graphics_GetAlphaFormat ()
  9997. {
  9998. return Graphics::GetAlphaFormat ();
  9999. }
  10000. DllExport unsigned int
  10001. Graphics_GetLuminanceFormat ()
  10002. {
  10003. return Graphics::GetLuminanceFormat ();
  10004. }
  10005. DllExport unsigned int
  10006. Graphics_GetLuminanceAlphaFormat ()
  10007. {
  10008. return Graphics::GetLuminanceAlphaFormat ();
  10009. }
  10010. DllExport unsigned int
  10011. Graphics_GetRGBFormat ()
  10012. {
  10013. return Graphics::GetRGBFormat ();
  10014. }
  10015. DllExport unsigned int
  10016. Graphics_GetRGBAFormat ()
  10017. {
  10018. return Graphics::GetRGBAFormat ();
  10019. }
  10020. DllExport unsigned int
  10021. Graphics_GetRGBA16Format ()
  10022. {
  10023. return Graphics::GetRGBA16Format ();
  10024. }
  10025. DllExport unsigned int
  10026. Graphics_GetRGBAFloat16Format ()
  10027. {
  10028. return Graphics::GetRGBAFloat16Format ();
  10029. }
  10030. DllExport unsigned int
  10031. Graphics_GetRGBAFloat32Format ()
  10032. {
  10033. return Graphics::GetRGBAFloat32Format ();
  10034. }
  10035. DllExport unsigned int
  10036. Graphics_GetRG16Format ()
  10037. {
  10038. return Graphics::GetRG16Format ();
  10039. }
  10040. DllExport unsigned int
  10041. Graphics_GetRGFloat16Format ()
  10042. {
  10043. return Graphics::GetRGFloat16Format ();
  10044. }
  10045. DllExport unsigned int
  10046. Graphics_GetRGFloat32Format ()
  10047. {
  10048. return Graphics::GetRGFloat32Format ();
  10049. }
  10050. DllExport unsigned int
  10051. Graphics_GetFloat16Format ()
  10052. {
  10053. return Graphics::GetFloat16Format ();
  10054. }
  10055. DllExport unsigned int
  10056. Graphics_GetFloat32Format ()
  10057. {
  10058. return Graphics::GetFloat32Format ();
  10059. }
  10060. DllExport unsigned int
  10061. Graphics_GetLinearDepthFormat ()
  10062. {
  10063. return Graphics::GetLinearDepthFormat ();
  10064. }
  10065. DllExport unsigned int
  10066. Graphics_GetDepthStencilFormat ()
  10067. {
  10068. return Graphics::GetDepthStencilFormat ();
  10069. }
  10070. DllExport unsigned int
  10071. Graphics_GetReadableDepthFormat ()
  10072. {
  10073. return Graphics::GetReadableDepthFormat ();
  10074. }
  10075. DllExport unsigned int
  10076. Graphics_GetFormat18 (const char * formatName)
  10077. {
  10078. return Graphics::GetFormat (Urho3D::String(formatName));
  10079. }
  10080. DllExport Interop::Vector2
  10081. Graphics_GetPixelUVOffset ()
  10082. {
  10083. return *((Interop::Vector2 *) &(Graphics::GetPixelUVOffset ()));
  10084. }
  10085. DllExport unsigned int
  10086. Graphics_GetMaxBones ()
  10087. {
  10088. return Graphics::GetMaxBones ();
  10089. }
  10090. #if defined(URHO3D_OPENGL)
  10091. DllExport GPUObject*
  10092. ShaderProgram_CastToGPUObject(Urho3D::ShaderProgram *_target)
  10093. {
  10094. return static_cast<GPUObject*>(_target);
  10095. }
  10096. #endif
  10097. DllExport void *
  10098. ShaderProgram_ShaderProgram (Urho3D::Graphics * graphics, Urho3D::ShaderVariation * vertexShader, Urho3D::ShaderVariation * pixelShader)
  10099. {
  10100. return WeakPtr<ShaderProgram>(new ShaderProgram(graphics, vertexShader, pixelShader));
  10101. }
  10102. DllExport int
  10103. Viewport_GetType (Urho3D::Viewport *_target)
  10104. {
  10105. return (_target->GetType ()).Value ();
  10106. }
  10107. DllExport const char *
  10108. Viewport_GetTypeName (Urho3D::Viewport *_target)
  10109. {
  10110. return stringdup((_target->GetTypeName ()).CString ());
  10111. }
  10112. DllExport int
  10113. Viewport_GetTypeStatic ()
  10114. {
  10115. return (Viewport::GetTypeStatic ()).Value ();
  10116. }
  10117. DllExport const char *
  10118. Viewport_GetTypeNameStatic ()
  10119. {
  10120. return stringdup((Viewport::GetTypeNameStatic ()).CString ());
  10121. }
  10122. DllExport void *
  10123. Viewport_Viewport (Urho3D::Context * context)
  10124. {
  10125. return WeakPtr<Viewport>(new Viewport(context));
  10126. }
  10127. DllExport void *
  10128. Viewport_Viewport0 (Urho3D::Context * context, Urho3D::Scene * scene, Urho3D::Camera * camera, Urho3D::RenderPath * renderPath)
  10129. {
  10130. return WeakPtr<Viewport>(new Viewport(context, scene, camera, renderPath));
  10131. }
  10132. DllExport void *
  10133. Viewport_Viewport1 (Urho3D::Context * context, Urho3D::Scene * scene, Urho3D::Camera * camera, const class Urho3D::IntRect & rect, Urho3D::RenderPath * renderPath)
  10134. {
  10135. return WeakPtr<Viewport>(new Viewport(context, scene, camera, rect, renderPath));
  10136. }
  10137. DllExport void
  10138. Viewport_SetScene (Urho3D::Viewport *_target, Urho3D::Scene * scene)
  10139. {
  10140. _target->SetScene (scene);
  10141. }
  10142. DllExport void
  10143. Viewport_SetCamera (Urho3D::Viewport *_target, Urho3D::Camera * camera)
  10144. {
  10145. _target->SetCamera (camera);
  10146. }
  10147. DllExport void
  10148. Viewport_SetRect (Urho3D::Viewport *_target, const class Urho3D::IntRect & rect)
  10149. {
  10150. _target->SetRect (rect);
  10151. }
  10152. DllExport void
  10153. Viewport_SetRenderPath (Urho3D::Viewport *_target, Urho3D::RenderPath * path)
  10154. {
  10155. _target->SetRenderPath (path);
  10156. }
  10157. DllExport void
  10158. Viewport_SetStereoMode (Urho3D::Viewport *_target, bool stereo)
  10159. {
  10160. _target->SetStereoMode (stereo);
  10161. }
  10162. DllExport void
  10163. Viewport_SetRenderPath2 (Urho3D::Viewport *_target, Urho3D::XMLFile * file)
  10164. {
  10165. _target->SetRenderPath (file);
  10166. }
  10167. DllExport void
  10168. Viewport_SetDrawDebug (Urho3D::Viewport *_target, bool enable)
  10169. {
  10170. _target->SetDrawDebug (enable);
  10171. }
  10172. DllExport void
  10173. Viewport_SetCullCamera (Urho3D::Viewport *_target, Urho3D::Camera * camera)
  10174. {
  10175. _target->SetCullCamera (camera);
  10176. }
  10177. DllExport Urho3D::Scene *
  10178. Viewport_GetScene (Urho3D::Viewport *_target)
  10179. {
  10180. return _target->GetScene ();
  10181. }
  10182. DllExport Urho3D::Camera *
  10183. Viewport_GetCamera (Urho3D::Viewport *_target)
  10184. {
  10185. return _target->GetCamera ();
  10186. }
  10187. DllExport Urho3D::View *
  10188. Viewport_GetView (Urho3D::Viewport *_target)
  10189. {
  10190. return _target->GetView ();
  10191. }
  10192. DllExport Interop::IntRect
  10193. Viewport_GetRect (Urho3D::Viewport *_target)
  10194. {
  10195. return *((Interop::IntRect *) &(_target->GetRect ()));
  10196. }
  10197. DllExport Urho3D::RenderPath *
  10198. Viewport_GetRenderPath (Urho3D::Viewport *_target)
  10199. {
  10200. return _target->GetRenderPath ();
  10201. }
  10202. DllExport int
  10203. Viewport_GetDrawDebug (Urho3D::Viewport *_target)
  10204. {
  10205. return _target->GetDrawDebug ();
  10206. }
  10207. DllExport Urho3D::Camera *
  10208. Viewport_GetCullCamera (Urho3D::Viewport *_target)
  10209. {
  10210. return _target->GetCullCamera ();
  10211. }
  10212. DllExport Urho3D::Ray
  10213. Viewport_GetScreenRay (Urho3D::Viewport *_target, int x, int y)
  10214. {
  10215. return _target->GetScreenRay (x, y);
  10216. }
  10217. DllExport Interop::IntVector2
  10218. Viewport_WorldToScreenPoint (Urho3D::Viewport *_target, const class Urho3D::Vector3 & worldPos)
  10219. {
  10220. return *((Interop::IntVector2 *) &(_target->WorldToScreenPoint (worldPos)));
  10221. }
  10222. DllExport Interop::Vector3
  10223. Viewport_ScreenToWorldPoint (Urho3D::Viewport *_target, int x, int y, float depth)
  10224. {
  10225. return *((Interop::Vector3 *) &(_target->ScreenToWorldPoint (x, y, depth)));
  10226. }
  10227. DllExport void
  10228. Viewport_AllocateView (Urho3D::Viewport *_target)
  10229. {
  10230. _target->AllocateView ();
  10231. }
  10232. DllExport void *
  10233. RenderSurface_RenderSurface (Urho3D::Texture * parentTexture)
  10234. {
  10235. return WeakPtr<RenderSurface>(new RenderSurface(parentTexture));
  10236. }
  10237. DllExport void
  10238. RenderSurface_SetNumViewports (Urho3D::RenderSurface *_target, unsigned int num)
  10239. {
  10240. _target->SetNumViewports (num);
  10241. }
  10242. DllExport void
  10243. RenderSurface_SetViewport (Urho3D::RenderSurface *_target, unsigned int index, Urho3D::Viewport * viewport)
  10244. {
  10245. _target->SetViewport (index, viewport);
  10246. }
  10247. DllExport void
  10248. RenderSurface_SetUpdateMode (Urho3D::RenderSurface *_target, enum Urho3D::RenderSurfaceUpdateMode mode)
  10249. {
  10250. _target->SetUpdateMode (mode);
  10251. }
  10252. DllExport void
  10253. RenderSurface_SetLinkedRenderTarget (Urho3D::RenderSurface *_target, Urho3D::RenderSurface * renderTarget)
  10254. {
  10255. _target->SetLinkedRenderTarget (renderTarget);
  10256. }
  10257. DllExport void
  10258. RenderSurface_SetLinkedDepthStencil (Urho3D::RenderSurface *_target, Urho3D::RenderSurface * depthStencil)
  10259. {
  10260. _target->SetLinkedDepthStencil (depthStencil);
  10261. }
  10262. DllExport void
  10263. RenderSurface_QueueUpdate (Urho3D::RenderSurface *_target)
  10264. {
  10265. _target->QueueUpdate ();
  10266. }
  10267. DllExport void
  10268. RenderSurface_Release (Urho3D::RenderSurface *_target)
  10269. {
  10270. _target->Release ();
  10271. }
  10272. DllExport int
  10273. RenderSurface_CreateRenderBuffer (Urho3D::RenderSurface *_target, unsigned int width, unsigned int height, unsigned int format, int multiSample)
  10274. {
  10275. return _target->CreateRenderBuffer (width, height, format, multiSample);
  10276. }
  10277. DllExport int
  10278. RenderSurface_GetWidth (Urho3D::RenderSurface *_target)
  10279. {
  10280. return _target->GetWidth ();
  10281. }
  10282. DllExport int
  10283. RenderSurface_GetHeight (Urho3D::RenderSurface *_target)
  10284. {
  10285. return _target->GetHeight ();
  10286. }
  10287. DllExport enum Urho3D::TextureUsage
  10288. RenderSurface_GetUsage (Urho3D::RenderSurface *_target)
  10289. {
  10290. return _target->GetUsage ();
  10291. }
  10292. DllExport int
  10293. RenderSurface_GetMultiSample (Urho3D::RenderSurface *_target)
  10294. {
  10295. return _target->GetMultiSample ();
  10296. }
  10297. DllExport int
  10298. RenderSurface_GetAutoResolve (Urho3D::RenderSurface *_target)
  10299. {
  10300. return _target->GetAutoResolve ();
  10301. }
  10302. DllExport unsigned int
  10303. RenderSurface_GetNumViewports (Urho3D::RenderSurface *_target)
  10304. {
  10305. return _target->GetNumViewports ();
  10306. }
  10307. DllExport Urho3D::Viewport *
  10308. RenderSurface_GetViewport (Urho3D::RenderSurface *_target, unsigned int index)
  10309. {
  10310. return _target->GetViewport (index);
  10311. }
  10312. DllExport enum Urho3D::RenderSurfaceUpdateMode
  10313. RenderSurface_GetUpdateMode (Urho3D::RenderSurface *_target)
  10314. {
  10315. return _target->GetUpdateMode ();
  10316. }
  10317. DllExport Urho3D::RenderSurface *
  10318. RenderSurface_GetLinkedRenderTarget (Urho3D::RenderSurface *_target)
  10319. {
  10320. return _target->GetLinkedRenderTarget ();
  10321. }
  10322. DllExport Urho3D::RenderSurface *
  10323. RenderSurface_GetLinkedDepthStencil (Urho3D::RenderSurface *_target)
  10324. {
  10325. return _target->GetLinkedDepthStencil ();
  10326. }
  10327. DllExport int
  10328. RenderSurface_IsUpdateQueued (Urho3D::RenderSurface *_target)
  10329. {
  10330. return _target->IsUpdateQueued ();
  10331. }
  10332. DllExport void
  10333. RenderSurface_ResetUpdateQueued (Urho3D::RenderSurface *_target)
  10334. {
  10335. _target->ResetUpdateQueued ();
  10336. }
  10337. DllExport Urho3D::Texture *
  10338. RenderSurface_GetParentTexture (Urho3D::RenderSurface *_target)
  10339. {
  10340. return _target->GetParentTexture ();
  10341. }
  10342. DllExport void *
  10343. RenderSurface_GetSurface (Urho3D::RenderSurface *_target)
  10344. {
  10345. return _target->GetSurface ();
  10346. }
  10347. DllExport void *
  10348. RenderSurface_GetRenderTargetView (Urho3D::RenderSurface *_target)
  10349. {
  10350. return _target->GetRenderTargetView ();
  10351. }
  10352. DllExport void *
  10353. RenderSurface_GetReadOnlyView (Urho3D::RenderSurface *_target)
  10354. {
  10355. return _target->GetReadOnlyView ();
  10356. }
  10357. DllExport unsigned int
  10358. RenderSurface_GetTarget (Urho3D::RenderSurface *_target)
  10359. {
  10360. return _target->GetTarget ();
  10361. }
  10362. DllExport unsigned int
  10363. RenderSurface_GetRenderBuffer (Urho3D::RenderSurface *_target)
  10364. {
  10365. return _target->GetRenderBuffer ();
  10366. }
  10367. DllExport int
  10368. RenderSurface_IsResolveDirty (Urho3D::RenderSurface *_target)
  10369. {
  10370. return _target->IsResolveDirty ();
  10371. }
  10372. DllExport void
  10373. RenderSurface_SetResolveDirty (Urho3D::RenderSurface *_target, bool enable)
  10374. {
  10375. _target->SetResolveDirty (enable);
  10376. }
  10377. DllExport int
  10378. Texture2D_GetType (Urho3D::Texture2D *_target)
  10379. {
  10380. return (_target->GetType ()).Value ();
  10381. }
  10382. DllExport const char *
  10383. Texture2D_GetTypeName (Urho3D::Texture2D *_target)
  10384. {
  10385. return stringdup((_target->GetTypeName ()).CString ());
  10386. }
  10387. DllExport int
  10388. Texture2D_GetTypeStatic ()
  10389. {
  10390. return (Texture2D::GetTypeStatic ()).Value ();
  10391. }
  10392. DllExport const char *
  10393. Texture2D_GetTypeNameStatic ()
  10394. {
  10395. return stringdup((Texture2D::GetTypeNameStatic ()).CString ());
  10396. }
  10397. DllExport void *
  10398. Texture2D_Texture2D (Urho3D::Context * context)
  10399. {
  10400. return WeakPtr<Texture2D>(new Texture2D(context));
  10401. }
  10402. DllExport void
  10403. Texture2D_RegisterObject (Urho3D::Context * context)
  10404. {
  10405. Texture2D::RegisterObject (context);
  10406. }
  10407. DllExport int
  10408. Texture2D_BeginLoad_File (Urho3D::Texture2D *_target, File * source)
  10409. {
  10410. return _target->BeginLoad (*source);
  10411. }
  10412. DllExport int
  10413. Texture2D_BeginLoad_MemoryBuffer (Urho3D::Texture2D *_target, MemoryBuffer * source)
  10414. {
  10415. return _target->BeginLoad (*source);
  10416. }
  10417. DllExport int
  10418. Texture2D_EndLoad (Urho3D::Texture2D *_target)
  10419. {
  10420. return _target->EndLoad ();
  10421. }
  10422. DllExport void
  10423. Texture2D_Release (Urho3D::Texture2D *_target)
  10424. {
  10425. _target->Release ();
  10426. }
  10427. DllExport void
  10428. Texture2D_SetCustomTarget (Urho3D::Texture2D *_target, unsigned int target)
  10429. {
  10430. _target->SetCustomTarget (target);
  10431. }
  10432. DllExport int
  10433. Texture2D_SetSize (Urho3D::Texture2D *_target, int width, int height, unsigned int format, enum Urho3D::TextureUsage usage, int multiSample, bool autoResolve)
  10434. {
  10435. return _target->SetSize (width, height, format, usage, multiSample, autoResolve);
  10436. }
  10437. DllExport int
  10438. Texture2D_SetData (Urho3D::Texture2D *_target, unsigned int level, int x, int y, int width, int height, const void * data)
  10439. {
  10440. return _target->SetData (level, x, y, width, height, data);
  10441. }
  10442. DllExport int
  10443. Texture2D_SetData0 (Urho3D::Texture2D *_target, Urho3D::Image * image, bool useAlpha)
  10444. {
  10445. return _target->SetData (image, useAlpha);
  10446. }
  10447. DllExport int
  10448. Texture2D_GetData (Urho3D::Texture2D *_target, unsigned int level, void * dest)
  10449. {
  10450. return _target->GetData (level, dest);
  10451. }
  10452. DllExport int
  10453. Texture2D_GetImage (Urho3D::Texture2D *_target, Image * image)
  10454. {
  10455. return _target->GetImage (*image);
  10456. }
  10457. DllExport Urho3D::Image *
  10458. Texture2D_GetImage1 (Urho3D::Texture2D *_target)
  10459. {
  10460. auto copy = _target->GetImage ();
  10461. auto plain = copy.Get();
  10462. copy.Detach();
  10463. delete copy;
  10464. return plain;
  10465. }
  10466. DllExport Urho3D::RenderSurface *
  10467. Texture2D_GetRenderSurface (Urho3D::Texture2D *_target)
  10468. {
  10469. return _target->GetRenderSurface ();
  10470. }
  10471. DllExport GPUObject*
  10472. IndexBuffer_CastToGPUObject(Urho3D::IndexBuffer *_target)
  10473. {
  10474. return static_cast<GPUObject*>(_target);
  10475. }
  10476. DllExport int
  10477. IndexBuffer_GetType (Urho3D::IndexBuffer *_target)
  10478. {
  10479. return (_target->GetType ()).Value ();
  10480. }
  10481. DllExport const char *
  10482. IndexBuffer_GetTypeName (Urho3D::IndexBuffer *_target)
  10483. {
  10484. return stringdup((_target->GetTypeName ()).CString ());
  10485. }
  10486. DllExport int
  10487. IndexBuffer_GetTypeStatic ()
  10488. {
  10489. return (IndexBuffer::GetTypeStatic ()).Value ();
  10490. }
  10491. DllExport const char *
  10492. IndexBuffer_GetTypeNameStatic ()
  10493. {
  10494. return stringdup((IndexBuffer::GetTypeNameStatic ()).CString ());
  10495. }
  10496. DllExport void *
  10497. IndexBuffer_IndexBuffer (Urho3D::Context * context, bool forceHeadless)
  10498. {
  10499. return WeakPtr<IndexBuffer>(new IndexBuffer(context, forceHeadless));
  10500. }
  10501. DllExport void
  10502. IndexBuffer_OnDeviceLost (Urho3D::IndexBuffer *_target)
  10503. {
  10504. _target->OnDeviceLost ();
  10505. }
  10506. DllExport void
  10507. IndexBuffer_Release (Urho3D::IndexBuffer *_target)
  10508. {
  10509. _target->Release ();
  10510. }
  10511. DllExport void
  10512. IndexBuffer_SetShadowed (Urho3D::IndexBuffer *_target, bool enable)
  10513. {
  10514. _target->SetShadowed (enable);
  10515. }
  10516. DllExport int
  10517. IndexBuffer_SetSize (Urho3D::IndexBuffer *_target, unsigned int indexCount, bool largeIndices, bool dynamic)
  10518. {
  10519. return _target->SetSize (indexCount, largeIndices, dynamic);
  10520. }
  10521. DllExport int
  10522. IndexBuffer_SetData (Urho3D::IndexBuffer *_target, const void * data)
  10523. {
  10524. return _target->SetData (data);
  10525. }
  10526. DllExport int
  10527. IndexBuffer_SetDataRange (Urho3D::IndexBuffer *_target, const void * data, unsigned int start, unsigned int count, bool discard)
  10528. {
  10529. return _target->SetDataRange (data, start, count, discard);
  10530. }
  10531. DllExport void *
  10532. IndexBuffer_Lock (Urho3D::IndexBuffer *_target, unsigned int start, unsigned int count, bool discard)
  10533. {
  10534. return _target->Lock (start, count, discard);
  10535. }
  10536. DllExport void
  10537. IndexBuffer_Unlock (Urho3D::IndexBuffer *_target)
  10538. {
  10539. _target->Unlock ();
  10540. }
  10541. DllExport int
  10542. IndexBuffer_IsShadowed (Urho3D::IndexBuffer *_target)
  10543. {
  10544. return _target->IsShadowed ();
  10545. }
  10546. DllExport int
  10547. IndexBuffer_IsDynamic (Urho3D::IndexBuffer *_target)
  10548. {
  10549. return _target->IsDynamic ();
  10550. }
  10551. DllExport int
  10552. IndexBuffer_IsLocked (Urho3D::IndexBuffer *_target)
  10553. {
  10554. return _target->IsLocked ();
  10555. }
  10556. DllExport unsigned int
  10557. IndexBuffer_GetIndexCount (Urho3D::IndexBuffer *_target)
  10558. {
  10559. return _target->GetIndexCount ();
  10560. }
  10561. DllExport unsigned int
  10562. IndexBuffer_GetIndexSize (Urho3D::IndexBuffer *_target)
  10563. {
  10564. return _target->GetIndexSize ();
  10565. }
  10566. DllExport unsigned char *
  10567. IndexBuffer_GetShadowData (Urho3D::IndexBuffer *_target)
  10568. {
  10569. return _target->GetShadowData ();
  10570. }
  10571. DllExport int
  10572. OcclusionBuffer_GetType (Urho3D::OcclusionBuffer *_target)
  10573. {
  10574. return (_target->GetType ()).Value ();
  10575. }
  10576. DllExport const char *
  10577. OcclusionBuffer_GetTypeName (Urho3D::OcclusionBuffer *_target)
  10578. {
  10579. return stringdup((_target->GetTypeName ()).CString ());
  10580. }
  10581. DllExport int
  10582. OcclusionBuffer_GetTypeStatic ()
  10583. {
  10584. return (OcclusionBuffer::GetTypeStatic ()).Value ();
  10585. }
  10586. DllExport const char *
  10587. OcclusionBuffer_GetTypeNameStatic ()
  10588. {
  10589. return stringdup((OcclusionBuffer::GetTypeNameStatic ()).CString ());
  10590. }
  10591. DllExport void *
  10592. OcclusionBuffer_OcclusionBuffer (Urho3D::Context * context)
  10593. {
  10594. return WeakPtr<OcclusionBuffer>(new OcclusionBuffer(context));
  10595. }
  10596. DllExport int
  10597. OcclusionBuffer_SetSize (Urho3D::OcclusionBuffer *_target, int width, int height, bool threaded)
  10598. {
  10599. return _target->SetSize (width, height, threaded);
  10600. }
  10601. DllExport void
  10602. OcclusionBuffer_SetView (Urho3D::OcclusionBuffer *_target, Urho3D::Camera * camera)
  10603. {
  10604. _target->SetView (camera);
  10605. }
  10606. DllExport void
  10607. OcclusionBuffer_SetMaxTriangles (Urho3D::OcclusionBuffer *_target, unsigned int triangles)
  10608. {
  10609. _target->SetMaxTriangles (triangles);
  10610. }
  10611. DllExport void
  10612. OcclusionBuffer_SetCullMode (Urho3D::OcclusionBuffer *_target, enum Urho3D::CullMode mode)
  10613. {
  10614. _target->SetCullMode (mode);
  10615. }
  10616. DllExport void
  10617. OcclusionBuffer_Reset (Urho3D::OcclusionBuffer *_target)
  10618. {
  10619. _target->Reset ();
  10620. }
  10621. DllExport void
  10622. OcclusionBuffer_Clear (Urho3D::OcclusionBuffer *_target)
  10623. {
  10624. _target->Clear ();
  10625. }
  10626. DllExport int
  10627. OcclusionBuffer_AddTriangles (Urho3D::OcclusionBuffer *_target, const class Urho3D::Matrix3x4 & model, const void * vertexData, unsigned int vertexSize, unsigned int vertexStart, unsigned int vertexCount)
  10628. {
  10629. return _target->AddTriangles (model, vertexData, vertexSize, vertexStart, vertexCount);
  10630. }
  10631. DllExport int
  10632. 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)
  10633. {
  10634. return _target->AddTriangles (model, vertexData, vertexSize, indexData, indexSize, indexStart, indexCount);
  10635. }
  10636. DllExport void
  10637. OcclusionBuffer_DrawTriangles (Urho3D::OcclusionBuffer *_target)
  10638. {
  10639. _target->DrawTriangles ();
  10640. }
  10641. DllExport void
  10642. OcclusionBuffer_BuildDepthHierarchy (Urho3D::OcclusionBuffer *_target)
  10643. {
  10644. _target->BuildDepthHierarchy ();
  10645. }
  10646. DllExport void
  10647. OcclusionBuffer_ResetUseTimer (Urho3D::OcclusionBuffer *_target)
  10648. {
  10649. _target->ResetUseTimer ();
  10650. }
  10651. DllExport int *
  10652. OcclusionBuffer_GetBuffer (Urho3D::OcclusionBuffer *_target)
  10653. {
  10654. return _target->GetBuffer ();
  10655. }
  10656. DllExport Interop::Matrix3x4
  10657. OcclusionBuffer_GetView (Urho3D::OcclusionBuffer *_target)
  10658. {
  10659. return *((Interop::Matrix3x4 *) &(_target->GetView ()));
  10660. }
  10661. DllExport Interop::Matrix4
  10662. OcclusionBuffer_GetProjection (Urho3D::OcclusionBuffer *_target)
  10663. {
  10664. return *((Interop::Matrix4 *) &(_target->GetProjection ()));
  10665. }
  10666. DllExport int
  10667. OcclusionBuffer_GetWidth (Urho3D::OcclusionBuffer *_target)
  10668. {
  10669. return _target->GetWidth ();
  10670. }
  10671. DllExport int
  10672. OcclusionBuffer_GetHeight (Urho3D::OcclusionBuffer *_target)
  10673. {
  10674. return _target->GetHeight ();
  10675. }
  10676. DllExport unsigned int
  10677. OcclusionBuffer_GetNumTriangles (Urho3D::OcclusionBuffer *_target)
  10678. {
  10679. return _target->GetNumTriangles ();
  10680. }
  10681. DllExport unsigned int
  10682. OcclusionBuffer_GetMaxTriangles (Urho3D::OcclusionBuffer *_target)
  10683. {
  10684. return _target->GetMaxTriangles ();
  10685. }
  10686. DllExport enum Urho3D::CullMode
  10687. OcclusionBuffer_GetCullMode (Urho3D::OcclusionBuffer *_target)
  10688. {
  10689. return _target->GetCullMode ();
  10690. }
  10691. DllExport int
  10692. OcclusionBuffer_IsThreaded (Urho3D::OcclusionBuffer *_target)
  10693. {
  10694. return _target->IsThreaded ();
  10695. }
  10696. DllExport int
  10697. OcclusionBuffer_IsVisible (Urho3D::OcclusionBuffer *_target, const class Urho3D::BoundingBox & worldSpaceBox)
  10698. {
  10699. return _target->IsVisible (worldSpaceBox);
  10700. }
  10701. DllExport unsigned int
  10702. OcclusionBuffer_GetUseTimer (Urho3D::OcclusionBuffer *_target)
  10703. {
  10704. return _target->GetUseTimer ();
  10705. }
  10706. DllExport int
  10707. Octree_GetType (Urho3D::Octree *_target)
  10708. {
  10709. return (_target->GetType ()).Value ();
  10710. }
  10711. DllExport const char *
  10712. Octree_GetTypeName (Urho3D::Octree *_target)
  10713. {
  10714. return stringdup((_target->GetTypeName ()).CString ());
  10715. }
  10716. DllExport int
  10717. Octree_GetTypeStatic ()
  10718. {
  10719. return (Octree::GetTypeStatic ()).Value ();
  10720. }
  10721. DllExport const char *
  10722. Octree_GetTypeNameStatic ()
  10723. {
  10724. return stringdup((Octree::GetTypeNameStatic ()).CString ());
  10725. }
  10726. DllExport void *
  10727. Octree_Octree (Urho3D::Context * context)
  10728. {
  10729. return WeakPtr<Octree>(new Octree(context));
  10730. }
  10731. DllExport void
  10732. Octree_RegisterObject (Urho3D::Context * context)
  10733. {
  10734. Octree::RegisterObject (context);
  10735. }
  10736. DllExport void
  10737. Octree_DrawDebugGeometry (Urho3D::Octree *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  10738. {
  10739. _target->DrawDebugGeometry (debug, depthTest);
  10740. }
  10741. DllExport void
  10742. Octree_SetSize (Urho3D::Octree *_target, const class Urho3D::BoundingBox & box, unsigned int numLevels)
  10743. {
  10744. _target->SetSize (box, numLevels);
  10745. }
  10746. DllExport void
  10747. Octree_AddManualDrawable (Urho3D::Octree *_target, Urho3D::Drawable * drawable)
  10748. {
  10749. _target->AddManualDrawable (drawable);
  10750. }
  10751. DllExport void
  10752. Octree_RemoveManualDrawable (Urho3D::Octree *_target, Urho3D::Drawable * drawable)
  10753. {
  10754. _target->RemoveManualDrawable (drawable);
  10755. }
  10756. DllExport unsigned int
  10757. Octree_GetNumLevels (Urho3D::Octree *_target)
  10758. {
  10759. return _target->GetNumLevels ();
  10760. }
  10761. DllExport void
  10762. Octree_QueueUpdate (Urho3D::Octree *_target, Urho3D::Drawable * drawable)
  10763. {
  10764. _target->QueueUpdate (drawable);
  10765. }
  10766. DllExport void
  10767. Octree_CancelUpdate (Urho3D::Octree *_target, Urho3D::Drawable * drawable)
  10768. {
  10769. _target->CancelUpdate (drawable);
  10770. }
  10771. DllExport void
  10772. Octree_DrawDebugGeometry0 (Urho3D::Octree *_target, bool depthTest)
  10773. {
  10774. _target->DrawDebugGeometry (depthTest);
  10775. }
  10776. DllExport int
  10777. ParticleEffect_GetType (Urho3D::ParticleEffect *_target)
  10778. {
  10779. return (_target->GetType ()).Value ();
  10780. }
  10781. DllExport const char *
  10782. ParticleEffect_GetTypeName (Urho3D::ParticleEffect *_target)
  10783. {
  10784. return stringdup((_target->GetTypeName ()).CString ());
  10785. }
  10786. DllExport int
  10787. ParticleEffect_GetTypeStatic ()
  10788. {
  10789. return (ParticleEffect::GetTypeStatic ()).Value ();
  10790. }
  10791. DllExport const char *
  10792. ParticleEffect_GetTypeNameStatic ()
  10793. {
  10794. return stringdup((ParticleEffect::GetTypeNameStatic ()).CString ());
  10795. }
  10796. DllExport void *
  10797. ParticleEffect_ParticleEffect (Urho3D::Context * context)
  10798. {
  10799. return WeakPtr<ParticleEffect>(new ParticleEffect(context));
  10800. }
  10801. DllExport void
  10802. ParticleEffect_RegisterObject (Urho3D::Context * context)
  10803. {
  10804. ParticleEffect::RegisterObject (context);
  10805. }
  10806. DllExport int
  10807. ParticleEffect_BeginLoad_File (Urho3D::ParticleEffect *_target, File * source)
  10808. {
  10809. return _target->BeginLoad (*source);
  10810. }
  10811. DllExport int
  10812. ParticleEffect_BeginLoad_MemoryBuffer (Urho3D::ParticleEffect *_target, MemoryBuffer * source)
  10813. {
  10814. return _target->BeginLoad (*source);
  10815. }
  10816. DllExport int
  10817. ParticleEffect_EndLoad (Urho3D::ParticleEffect *_target)
  10818. {
  10819. return _target->EndLoad ();
  10820. }
  10821. DllExport int
  10822. ParticleEffect_Save_File (Urho3D::ParticleEffect *_target, File * dest)
  10823. {
  10824. return _target->Save (*dest);
  10825. }
  10826. DllExport int
  10827. ParticleEffect_Save_MemoryBuffer (Urho3D::ParticleEffect *_target, MemoryBuffer * dest)
  10828. {
  10829. return _target->Save (*dest);
  10830. }
  10831. DllExport int
  10832. ParticleEffect_Save0 (Urho3D::ParticleEffect *_target, Urho3D::XMLElement & dest)
  10833. {
  10834. return _target->Save (dest);
  10835. }
  10836. DllExport int
  10837. ParticleEffect_Load (Urho3D::ParticleEffect *_target, const class Urho3D::XMLElement & source)
  10838. {
  10839. return _target->Load (source);
  10840. }
  10841. DllExport void
  10842. ParticleEffect_SetMaterial (Urho3D::ParticleEffect *_target, Urho3D::Material * material)
  10843. {
  10844. _target->SetMaterial (material);
  10845. }
  10846. DllExport void
  10847. ParticleEffect_SetNumParticles (Urho3D::ParticleEffect *_target, unsigned int num)
  10848. {
  10849. _target->SetNumParticles (num);
  10850. }
  10851. DllExport void
  10852. ParticleEffect_SetUpdateInvisible (Urho3D::ParticleEffect *_target, bool enable)
  10853. {
  10854. _target->SetUpdateInvisible (enable);
  10855. }
  10856. DllExport void
  10857. ParticleEffect_SetRelative (Urho3D::ParticleEffect *_target, bool enable)
  10858. {
  10859. _target->SetRelative (enable);
  10860. }
  10861. DllExport void
  10862. ParticleEffect_SetScaled (Urho3D::ParticleEffect *_target, bool enable)
  10863. {
  10864. _target->SetScaled (enable);
  10865. }
  10866. DllExport void
  10867. ParticleEffect_SetSorted (Urho3D::ParticleEffect *_target, bool enable)
  10868. {
  10869. _target->SetSorted (enable);
  10870. }
  10871. DllExport void
  10872. ParticleEffect_SetFixedScreenSize (Urho3D::ParticleEffect *_target, bool enable)
  10873. {
  10874. _target->SetFixedScreenSize (enable);
  10875. }
  10876. DllExport void
  10877. ParticleEffect_SetAnimationLodBias (Urho3D::ParticleEffect *_target, float lodBias)
  10878. {
  10879. _target->SetAnimationLodBias (lodBias);
  10880. }
  10881. DllExport void
  10882. ParticleEffect_SetEmitterType (Urho3D::ParticleEffect *_target, enum Urho3D::EmitterType type)
  10883. {
  10884. _target->SetEmitterType (type);
  10885. }
  10886. DllExport void
  10887. ParticleEffect_SetEmitterSize (Urho3D::ParticleEffect *_target, const class Urho3D::Vector3 & size)
  10888. {
  10889. _target->SetEmitterSize (size);
  10890. }
  10891. DllExport void
  10892. ParticleEffect_SetMinDirection (Urho3D::ParticleEffect *_target, const class Urho3D::Vector3 & direction)
  10893. {
  10894. _target->SetMinDirection (direction);
  10895. }
  10896. DllExport void
  10897. ParticleEffect_SetMaxDirection (Urho3D::ParticleEffect *_target, const class Urho3D::Vector3 & direction)
  10898. {
  10899. _target->SetMaxDirection (direction);
  10900. }
  10901. DllExport void
  10902. ParticleEffect_SetConstantForce (Urho3D::ParticleEffect *_target, const class Urho3D::Vector3 & force)
  10903. {
  10904. _target->SetConstantForce (force);
  10905. }
  10906. DllExport void
  10907. ParticleEffect_SetDampingForce (Urho3D::ParticleEffect *_target, float force)
  10908. {
  10909. _target->SetDampingForce (force);
  10910. }
  10911. DllExport void
  10912. ParticleEffect_SetActiveTime (Urho3D::ParticleEffect *_target, float time)
  10913. {
  10914. _target->SetActiveTime (time);
  10915. }
  10916. DllExport void
  10917. ParticleEffect_SetInactiveTime (Urho3D::ParticleEffect *_target, float time)
  10918. {
  10919. _target->SetInactiveTime (time);
  10920. }
  10921. DllExport void
  10922. ParticleEffect_SetMinEmissionRate (Urho3D::ParticleEffect *_target, float rate)
  10923. {
  10924. _target->SetMinEmissionRate (rate);
  10925. }
  10926. DllExport void
  10927. ParticleEffect_SetMaxEmissionRate (Urho3D::ParticleEffect *_target, float rate)
  10928. {
  10929. _target->SetMaxEmissionRate (rate);
  10930. }
  10931. DllExport void
  10932. ParticleEffect_SetMinParticleSize (Urho3D::ParticleEffect *_target, const class Urho3D::Vector2 & size)
  10933. {
  10934. _target->SetMinParticleSize (size);
  10935. }
  10936. DllExport void
  10937. ParticleEffect_SetMaxParticleSize (Urho3D::ParticleEffect *_target, const class Urho3D::Vector2 & size)
  10938. {
  10939. _target->SetMaxParticleSize (size);
  10940. }
  10941. DllExport void
  10942. ParticleEffect_SetMinTimeToLive (Urho3D::ParticleEffect *_target, float time)
  10943. {
  10944. _target->SetMinTimeToLive (time);
  10945. }
  10946. DllExport void
  10947. ParticleEffect_SetMaxTimeToLive (Urho3D::ParticleEffect *_target, float time)
  10948. {
  10949. _target->SetMaxTimeToLive (time);
  10950. }
  10951. DllExport void
  10952. ParticleEffect_SetMinVelocity (Urho3D::ParticleEffect *_target, float velocity)
  10953. {
  10954. _target->SetMinVelocity (velocity);
  10955. }
  10956. DllExport void
  10957. ParticleEffect_SetMaxVelocity (Urho3D::ParticleEffect *_target, float velocity)
  10958. {
  10959. _target->SetMaxVelocity (velocity);
  10960. }
  10961. DllExport void
  10962. ParticleEffect_SetMinRotation (Urho3D::ParticleEffect *_target, float rotation)
  10963. {
  10964. _target->SetMinRotation (rotation);
  10965. }
  10966. DllExport void
  10967. ParticleEffect_SetMaxRotation (Urho3D::ParticleEffect *_target, float rotation)
  10968. {
  10969. _target->SetMaxRotation (rotation);
  10970. }
  10971. DllExport void
  10972. ParticleEffect_SetMinRotationSpeed (Urho3D::ParticleEffect *_target, float speed)
  10973. {
  10974. _target->SetMinRotationSpeed (speed);
  10975. }
  10976. DllExport void
  10977. ParticleEffect_SetMaxRotationSpeed (Urho3D::ParticleEffect *_target, float speed)
  10978. {
  10979. _target->SetMaxRotationSpeed (speed);
  10980. }
  10981. DllExport void
  10982. ParticleEffect_SetSizeAdd (Urho3D::ParticleEffect *_target, float sizeAdd)
  10983. {
  10984. _target->SetSizeAdd (sizeAdd);
  10985. }
  10986. DllExport void
  10987. ParticleEffect_SetSizeMul (Urho3D::ParticleEffect *_target, float sizeMul)
  10988. {
  10989. _target->SetSizeMul (sizeMul);
  10990. }
  10991. DllExport void
  10992. ParticleEffect_SetFaceCameraMode (Urho3D::ParticleEffect *_target, enum Urho3D::FaceCameraMode mode)
  10993. {
  10994. _target->SetFaceCameraMode (mode);
  10995. }
  10996. DllExport void
  10997. ParticleEffect_AddColorTime (Urho3D::ParticleEffect *_target, const class Urho3D::Color & color, float time)
  10998. {
  10999. _target->AddColorTime (color, time);
  11000. }
  11001. DllExport void
  11002. ParticleEffect_RemoveColorFrame (Urho3D::ParticleEffect *_target, unsigned int index)
  11003. {
  11004. _target->RemoveColorFrame (index);
  11005. }
  11006. DllExport void
  11007. ParticleEffect_SetNumColorFrames (Urho3D::ParticleEffect *_target, unsigned int number)
  11008. {
  11009. _target->SetNumColorFrames (number);
  11010. }
  11011. DllExport void
  11012. ParticleEffect_SortColorFrames (Urho3D::ParticleEffect *_target)
  11013. {
  11014. _target->SortColorFrames ();
  11015. }
  11016. DllExport void
  11017. ParticleEffect_RemoveTextureFrame (Urho3D::ParticleEffect *_target, unsigned int index)
  11018. {
  11019. _target->RemoveTextureFrame (index);
  11020. }
  11021. DllExport void
  11022. ParticleEffect_SetNumTextureFrames (Urho3D::ParticleEffect *_target, unsigned int number)
  11023. {
  11024. _target->SetNumTextureFrames (number);
  11025. }
  11026. DllExport void
  11027. ParticleEffect_SortTextureFrames (Urho3D::ParticleEffect *_target)
  11028. {
  11029. _target->SortTextureFrames ();
  11030. }
  11031. DllExport Urho3D::ParticleEffect *
  11032. ParticleEffect_Clone (Urho3D::ParticleEffect *_target, const char * cloneName)
  11033. {
  11034. auto copy = _target->Clone (Urho3D::String(cloneName));
  11035. auto plain = copy.Get();
  11036. copy.Detach();
  11037. delete copy;
  11038. return plain;
  11039. }
  11040. DllExport Urho3D::Material *
  11041. ParticleEffect_GetMaterial (Urho3D::ParticleEffect *_target)
  11042. {
  11043. return _target->GetMaterial ();
  11044. }
  11045. DllExport unsigned int
  11046. ParticleEffect_GetNumParticles (Urho3D::ParticleEffect *_target)
  11047. {
  11048. return _target->GetNumParticles ();
  11049. }
  11050. DllExport int
  11051. ParticleEffect_GetUpdateInvisible (Urho3D::ParticleEffect *_target)
  11052. {
  11053. return _target->GetUpdateInvisible ();
  11054. }
  11055. DllExport int
  11056. ParticleEffect_IsRelative (Urho3D::ParticleEffect *_target)
  11057. {
  11058. return _target->IsRelative ();
  11059. }
  11060. DllExport int
  11061. ParticleEffect_IsScaled (Urho3D::ParticleEffect *_target)
  11062. {
  11063. return _target->IsScaled ();
  11064. }
  11065. DllExport int
  11066. ParticleEffect_IsSorted (Urho3D::ParticleEffect *_target)
  11067. {
  11068. return _target->IsSorted ();
  11069. }
  11070. DllExport int
  11071. ParticleEffect_IsFixedScreenSize (Urho3D::ParticleEffect *_target)
  11072. {
  11073. return _target->IsFixedScreenSize ();
  11074. }
  11075. DllExport float
  11076. ParticleEffect_GetAnimationLodBias (Urho3D::ParticleEffect *_target)
  11077. {
  11078. return _target->GetAnimationLodBias ();
  11079. }
  11080. DllExport enum Urho3D::EmitterType
  11081. ParticleEffect_GetEmitterType (Urho3D::ParticleEffect *_target)
  11082. {
  11083. return _target->GetEmitterType ();
  11084. }
  11085. DllExport Interop::Vector3
  11086. ParticleEffect_GetEmitterSize (Urho3D::ParticleEffect *_target)
  11087. {
  11088. return *((Interop::Vector3 *) &(_target->GetEmitterSize ()));
  11089. }
  11090. DllExport Interop::Vector3
  11091. ParticleEffect_GetMinDirection (Urho3D::ParticleEffect *_target)
  11092. {
  11093. return *((Interop::Vector3 *) &(_target->GetMinDirection ()));
  11094. }
  11095. DllExport Interop::Vector3
  11096. ParticleEffect_GetMaxDirection (Urho3D::ParticleEffect *_target)
  11097. {
  11098. return *((Interop::Vector3 *) &(_target->GetMaxDirection ()));
  11099. }
  11100. DllExport Interop::Vector3
  11101. ParticleEffect_GetConstantForce (Urho3D::ParticleEffect *_target)
  11102. {
  11103. return *((Interop::Vector3 *) &(_target->GetConstantForce ()));
  11104. }
  11105. DllExport float
  11106. ParticleEffect_GetDampingForce (Urho3D::ParticleEffect *_target)
  11107. {
  11108. return _target->GetDampingForce ();
  11109. }
  11110. DllExport float
  11111. ParticleEffect_GetActiveTime (Urho3D::ParticleEffect *_target)
  11112. {
  11113. return _target->GetActiveTime ();
  11114. }
  11115. DllExport float
  11116. ParticleEffect_GetInactiveTime (Urho3D::ParticleEffect *_target)
  11117. {
  11118. return _target->GetInactiveTime ();
  11119. }
  11120. DllExport float
  11121. ParticleEffect_GetMinEmissionRate (Urho3D::ParticleEffect *_target)
  11122. {
  11123. return _target->GetMinEmissionRate ();
  11124. }
  11125. DllExport float
  11126. ParticleEffect_GetMaxEmissionRate (Urho3D::ParticleEffect *_target)
  11127. {
  11128. return _target->GetMaxEmissionRate ();
  11129. }
  11130. DllExport Interop::Vector2
  11131. ParticleEffect_GetMinParticleSize (Urho3D::ParticleEffect *_target)
  11132. {
  11133. return *((Interop::Vector2 *) &(_target->GetMinParticleSize ()));
  11134. }
  11135. DllExport Interop::Vector2
  11136. ParticleEffect_GetMaxParticleSize (Urho3D::ParticleEffect *_target)
  11137. {
  11138. return *((Interop::Vector2 *) &(_target->GetMaxParticleSize ()));
  11139. }
  11140. DllExport float
  11141. ParticleEffect_GetMinTimeToLive (Urho3D::ParticleEffect *_target)
  11142. {
  11143. return _target->GetMinTimeToLive ();
  11144. }
  11145. DllExport float
  11146. ParticleEffect_GetMaxTimeToLive (Urho3D::ParticleEffect *_target)
  11147. {
  11148. return _target->GetMaxTimeToLive ();
  11149. }
  11150. DllExport float
  11151. ParticleEffect_GetMinVelocity (Urho3D::ParticleEffect *_target)
  11152. {
  11153. return _target->GetMinVelocity ();
  11154. }
  11155. DllExport float
  11156. ParticleEffect_GetMaxVelocity (Urho3D::ParticleEffect *_target)
  11157. {
  11158. return _target->GetMaxVelocity ();
  11159. }
  11160. DllExport float
  11161. ParticleEffect_GetMinRotation (Urho3D::ParticleEffect *_target)
  11162. {
  11163. return _target->GetMinRotation ();
  11164. }
  11165. DllExport float
  11166. ParticleEffect_GetMaxRotation (Urho3D::ParticleEffect *_target)
  11167. {
  11168. return _target->GetMaxRotation ();
  11169. }
  11170. DllExport float
  11171. ParticleEffect_GetMinRotationSpeed (Urho3D::ParticleEffect *_target)
  11172. {
  11173. return _target->GetMinRotationSpeed ();
  11174. }
  11175. DllExport float
  11176. ParticleEffect_GetMaxRotationSpeed (Urho3D::ParticleEffect *_target)
  11177. {
  11178. return _target->GetMaxRotationSpeed ();
  11179. }
  11180. DllExport float
  11181. ParticleEffect_GetSizeAdd (Urho3D::ParticleEffect *_target)
  11182. {
  11183. return _target->GetSizeAdd ();
  11184. }
  11185. DllExport float
  11186. ParticleEffect_GetSizeMul (Urho3D::ParticleEffect *_target)
  11187. {
  11188. return _target->GetSizeMul ();
  11189. }
  11190. DllExport unsigned int
  11191. ParticleEffect_GetNumColorFrames (Urho3D::ParticleEffect *_target)
  11192. {
  11193. return _target->GetNumColorFrames ();
  11194. }
  11195. DllExport const struct Urho3D::ColorFrame *
  11196. ParticleEffect_GetColorFrame (Urho3D::ParticleEffect *_target, unsigned int index)
  11197. {
  11198. return _target->GetColorFrame (index);
  11199. }
  11200. DllExport unsigned int
  11201. ParticleEffect_GetNumTextureFrames (Urho3D::ParticleEffect *_target)
  11202. {
  11203. return _target->GetNumTextureFrames ();
  11204. }
  11205. DllExport const struct Urho3D::TextureFrame *
  11206. ParticleEffect_GetTextureFrame (Urho3D::ParticleEffect *_target, unsigned int index)
  11207. {
  11208. return _target->GetTextureFrame (index);
  11209. }
  11210. DllExport enum Urho3D::FaceCameraMode
  11211. ParticleEffect_GetFaceCameraMode (Urho3D::ParticleEffect *_target)
  11212. {
  11213. return _target->GetFaceCameraMode ();
  11214. }
  11215. DllExport Interop::Vector3
  11216. ParticleEffect_GetRandomDirection (Urho3D::ParticleEffect *_target)
  11217. {
  11218. return *((Interop::Vector3 *) &(_target->GetRandomDirection ()));
  11219. }
  11220. DllExport Interop::Vector2
  11221. ParticleEffect_GetRandomSize (Urho3D::ParticleEffect *_target)
  11222. {
  11223. return *((Interop::Vector2 *) &(_target->GetRandomSize ()));
  11224. }
  11225. DllExport float
  11226. ParticleEffect_GetRandomVelocity (Urho3D::ParticleEffect *_target)
  11227. {
  11228. return _target->GetRandomVelocity ();
  11229. }
  11230. DllExport float
  11231. ParticleEffect_GetRandomTimeToLive (Urho3D::ParticleEffect *_target)
  11232. {
  11233. return _target->GetRandomTimeToLive ();
  11234. }
  11235. DllExport float
  11236. ParticleEffect_GetRandomRotationSpeed (Urho3D::ParticleEffect *_target)
  11237. {
  11238. return _target->GetRandomRotationSpeed ();
  11239. }
  11240. DllExport float
  11241. ParticleEffect_GetRandomRotation (Urho3D::ParticleEffect *_target)
  11242. {
  11243. return _target->GetRandomRotation ();
  11244. }
  11245. DllExport int
  11246. ParticleEmitter_GetType (Urho3D::ParticleEmitter *_target)
  11247. {
  11248. return (_target->GetType ()).Value ();
  11249. }
  11250. DllExport const char *
  11251. ParticleEmitter_GetTypeName (Urho3D::ParticleEmitter *_target)
  11252. {
  11253. return stringdup((_target->GetTypeName ()).CString ());
  11254. }
  11255. DllExport int
  11256. ParticleEmitter_GetTypeStatic ()
  11257. {
  11258. return (ParticleEmitter::GetTypeStatic ()).Value ();
  11259. }
  11260. DllExport const char *
  11261. ParticleEmitter_GetTypeNameStatic ()
  11262. {
  11263. return stringdup((ParticleEmitter::GetTypeNameStatic ()).CString ());
  11264. }
  11265. DllExport void *
  11266. ParticleEmitter_ParticleEmitter (Urho3D::Context * context)
  11267. {
  11268. return WeakPtr<ParticleEmitter>(new ParticleEmitter(context));
  11269. }
  11270. DllExport void
  11271. ParticleEmitter_RegisterObject (Urho3D::Context * context)
  11272. {
  11273. ParticleEmitter::RegisterObject (context);
  11274. }
  11275. DllExport void
  11276. ParticleEmitter_OnSetEnabled (Urho3D::ParticleEmitter *_target)
  11277. {
  11278. _target->OnSetEnabled ();
  11279. }
  11280. DllExport void
  11281. ParticleEmitter_SetEffect (Urho3D::ParticleEmitter *_target, Urho3D::ParticleEffect * effect)
  11282. {
  11283. _target->SetEffect (effect);
  11284. }
  11285. DllExport void
  11286. ParticleEmitter_SetNumParticles (Urho3D::ParticleEmitter *_target, unsigned int num)
  11287. {
  11288. _target->SetNumParticles (num);
  11289. }
  11290. DllExport void
  11291. ParticleEmitter_SetEmitting (Urho3D::ParticleEmitter *_target, bool enable)
  11292. {
  11293. _target->SetEmitting (enable);
  11294. }
  11295. DllExport void
  11296. ParticleEmitter_SetSerializeParticles (Urho3D::ParticleEmitter *_target, bool enable)
  11297. {
  11298. _target->SetSerializeParticles (enable);
  11299. }
  11300. DllExport void
  11301. ParticleEmitter_SetAutoRemoveMode (Urho3D::ParticleEmitter *_target, enum Urho3D::AutoRemoveMode mode)
  11302. {
  11303. _target->SetAutoRemoveMode (mode);
  11304. }
  11305. DllExport void
  11306. ParticleEmitter_ResetEmissionTimer (Urho3D::ParticleEmitter *_target)
  11307. {
  11308. _target->ResetEmissionTimer ();
  11309. }
  11310. DllExport void
  11311. ParticleEmitter_RemoveAllParticles (Urho3D::ParticleEmitter *_target)
  11312. {
  11313. _target->RemoveAllParticles ();
  11314. }
  11315. DllExport void
  11316. ParticleEmitter_Reset (Urho3D::ParticleEmitter *_target)
  11317. {
  11318. _target->Reset ();
  11319. }
  11320. DllExport void
  11321. ParticleEmitter_ApplyEffect (Urho3D::ParticleEmitter *_target)
  11322. {
  11323. _target->ApplyEffect ();
  11324. }
  11325. DllExport Urho3D::ParticleEffect *
  11326. ParticleEmitter_GetEffect (Urho3D::ParticleEmitter *_target)
  11327. {
  11328. return _target->GetEffect ();
  11329. }
  11330. DllExport unsigned int
  11331. ParticleEmitter_GetNumParticles (Urho3D::ParticleEmitter *_target)
  11332. {
  11333. return _target->GetNumParticles ();
  11334. }
  11335. DllExport int
  11336. ParticleEmitter_IsEmitting (Urho3D::ParticleEmitter *_target)
  11337. {
  11338. return _target->IsEmitting ();
  11339. }
  11340. DllExport int
  11341. ParticleEmitter_GetSerializeParticles (Urho3D::ParticleEmitter *_target)
  11342. {
  11343. return _target->GetSerializeParticles ();
  11344. }
  11345. DllExport enum Urho3D::AutoRemoveMode
  11346. ParticleEmitter_GetAutoRemoveMode (Urho3D::ParticleEmitter *_target)
  11347. {
  11348. return _target->GetAutoRemoveMode ();
  11349. }
  11350. DllExport Urho3D::ResourceRef
  11351. ParticleEmitter_GetEffectAttr (Urho3D::ParticleEmitter *_target)
  11352. {
  11353. return _target->GetEffectAttr ();
  11354. }
  11355. DllExport void *
  11356. RenderPath_RenderPath ()
  11357. {
  11358. return WeakPtr<RenderPath>(new RenderPath());
  11359. }
  11360. DllExport Urho3D::RenderPath *
  11361. RenderPath_Clone (Urho3D::RenderPath *_target)
  11362. {
  11363. auto copy = _target->Clone ();
  11364. auto plain = copy.Get();
  11365. copy.Detach();
  11366. delete copy;
  11367. return plain;
  11368. }
  11369. DllExport int
  11370. RenderPath_Load (Urho3D::RenderPath *_target, Urho3D::XMLFile * file)
  11371. {
  11372. return _target->Load (file);
  11373. }
  11374. DllExport int
  11375. RenderPath_Append (Urho3D::RenderPath *_target, Urho3D::XMLFile * file)
  11376. {
  11377. return _target->Append (file);
  11378. }
  11379. DllExport void
  11380. RenderPath_SetEnabled (Urho3D::RenderPath *_target, const char * tag, bool active)
  11381. {
  11382. _target->SetEnabled (Urho3D::String(tag), active);
  11383. }
  11384. DllExport int
  11385. RenderPath_IsEnabled (Urho3D::RenderPath *_target, const char * tag)
  11386. {
  11387. return _target->IsEnabled (Urho3D::String(tag));
  11388. }
  11389. DllExport int
  11390. RenderPath_IsAdded (Urho3D::RenderPath *_target, const char * tag)
  11391. {
  11392. return _target->IsAdded (Urho3D::String(tag));
  11393. }
  11394. DllExport void
  11395. RenderPath_ToggleEnabled (Urho3D::RenderPath *_target, const char * tag)
  11396. {
  11397. _target->ToggleEnabled (Urho3D::String(tag));
  11398. }
  11399. DllExport void
  11400. RenderPath_RemoveRenderTarget (Urho3D::RenderPath *_target, unsigned int index)
  11401. {
  11402. _target->RemoveRenderTarget (index);
  11403. }
  11404. DllExport void
  11405. RenderPath_RemoveRenderTarget0 (Urho3D::RenderPath *_target, const char * name)
  11406. {
  11407. _target->RemoveRenderTarget (Urho3D::String(name));
  11408. }
  11409. DllExport void
  11410. RenderPath_RemoveRenderTargets (Urho3D::RenderPath *_target, const char * tag)
  11411. {
  11412. _target->RemoveRenderTargets (Urho3D::String(tag));
  11413. }
  11414. DllExport void
  11415. RenderPath_SetCommand (Urho3D::RenderPath *_target, unsigned int index, const struct Urho3D::RenderPathCommand & command)
  11416. {
  11417. _target->SetCommand (index, command);
  11418. }
  11419. DllExport void
  11420. RenderPath_AddCommand (Urho3D::RenderPath *_target, const struct Urho3D::RenderPathCommand & command)
  11421. {
  11422. _target->AddCommand (command);
  11423. }
  11424. DllExport void
  11425. RenderPath_InsertCommand (Urho3D::RenderPath *_target, unsigned int index, const struct Urho3D::RenderPathCommand & command)
  11426. {
  11427. _target->InsertCommand (index, command);
  11428. }
  11429. DllExport void
  11430. RenderPath_RemoveCommand (Urho3D::RenderPath *_target, unsigned int index)
  11431. {
  11432. _target->RemoveCommand (index);
  11433. }
  11434. DllExport void
  11435. RenderPath_RemoveCommands (Urho3D::RenderPath *_target, const char * tag)
  11436. {
  11437. _target->RemoveCommands (Urho3D::String(tag));
  11438. }
  11439. // Urho3D::Variant overloads begin:
  11440. DllExport void
  11441. RenderPath_SetShaderParameter_0 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::Vector3 & value)
  11442. {
  11443. _target->SetShaderParameter (Urho3D::String(name), (value));
  11444. }
  11445. DllExport void
  11446. RenderPath_SetShaderParameter_1 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::IntRect & value)
  11447. {
  11448. _target->SetShaderParameter (Urho3D::String(name), (value));
  11449. }
  11450. DllExport void
  11451. RenderPath_SetShaderParameter_2 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::Color & value)
  11452. {
  11453. _target->SetShaderParameter (Urho3D::String(name), (value));
  11454. }
  11455. DllExport void
  11456. RenderPath_SetShaderParameter_3 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::Vector2 & value)
  11457. {
  11458. _target->SetShaderParameter (Urho3D::String(name), (value));
  11459. }
  11460. DllExport void
  11461. RenderPath_SetShaderParameter_4 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::Vector4 & value)
  11462. {
  11463. _target->SetShaderParameter (Urho3D::String(name), (value));
  11464. }
  11465. DllExport void
  11466. RenderPath_SetShaderParameter_5 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::IntVector2 & value)
  11467. {
  11468. _target->SetShaderParameter (Urho3D::String(name), (value));
  11469. }
  11470. DllExport void
  11471. RenderPath_SetShaderParameter_6 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::Quaternion & value)
  11472. {
  11473. _target->SetShaderParameter (Urho3D::String(name), (value));
  11474. }
  11475. DllExport void
  11476. RenderPath_SetShaderParameter_7 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::Matrix4 & value)
  11477. {
  11478. _target->SetShaderParameter (Urho3D::String(name), (value));
  11479. }
  11480. DllExport void
  11481. RenderPath_SetShaderParameter_8 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::Matrix3x4 & value)
  11482. {
  11483. _target->SetShaderParameter (Urho3D::String(name), (value));
  11484. }
  11485. DllExport void
  11486. RenderPath_SetShaderParameter_9 (Urho3D::RenderPath *_target, const char * name, int value)
  11487. {
  11488. _target->SetShaderParameter (Urho3D::String(name), (value));
  11489. }
  11490. DllExport void
  11491. RenderPath_SetShaderParameter_10 (Urho3D::RenderPath *_target, const char * name, float value)
  11492. {
  11493. _target->SetShaderParameter (Urho3D::String(name), (value));
  11494. }
  11495. DllExport void
  11496. RenderPath_SetShaderParameter_11 (Urho3D::RenderPath *_target, const char * name, const char * value)
  11497. {
  11498. _target->SetShaderParameter (Urho3D::String(name), Urho3D::String(value));
  11499. }
  11500. DllExport void
  11501. RenderPath_SetShaderParameter_12 (Urho3D::RenderPath *_target, const char * name, bool value)
  11502. {
  11503. _target->SetShaderParameter (Urho3D::String(name), (value));
  11504. }
  11505. // Urho3D::Variant overloads end.
  11506. DllExport unsigned int
  11507. RenderPath_GetNumRenderTargets (Urho3D::RenderPath *_target)
  11508. {
  11509. return _target->GetNumRenderTargets ();
  11510. }
  11511. DllExport unsigned int
  11512. RenderPath_GetNumCommands (Urho3D::RenderPath *_target)
  11513. {
  11514. return _target->GetNumCommands ();
  11515. }
  11516. DllExport Urho3D::RenderPathCommand *
  11517. RenderPath_GetCommand (Urho3D::RenderPath *_target, unsigned int index)
  11518. {
  11519. return _target->GetCommand (index);
  11520. }
  11521. // Urho3D::Variant overloads begin:
  11522. DllExport Interop::Vector3
  11523. RenderPath_GetShaderParameter_0 (Urho3D::RenderPath *_target, const char * name)
  11524. {
  11525. return *((Interop::Vector3 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetVector3()));
  11526. }
  11527. DllExport Interop::IntRect
  11528. RenderPath_GetShaderParameter_1 (Urho3D::RenderPath *_target, const char * name)
  11529. {
  11530. return *((Interop::IntRect *) &(_target->GetShaderParameter (Urho3D::String(name)).GetIntRect()));
  11531. }
  11532. DllExport Interop::Color
  11533. RenderPath_GetShaderParameter_2 (Urho3D::RenderPath *_target, const char * name)
  11534. {
  11535. return *((Interop::Color *) &(_target->GetShaderParameter (Urho3D::String(name)).GetColor()));
  11536. }
  11537. DllExport Interop::Vector2
  11538. RenderPath_GetShaderParameter_3 (Urho3D::RenderPath *_target, const char * name)
  11539. {
  11540. return *((Interop::Vector2 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetVector2()));
  11541. }
  11542. DllExport Interop::Vector4
  11543. RenderPath_GetShaderParameter_4 (Urho3D::RenderPath *_target, const char * name)
  11544. {
  11545. return *((Interop::Vector4 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetVector4()));
  11546. }
  11547. DllExport Interop::IntVector2
  11548. RenderPath_GetShaderParameter_5 (Urho3D::RenderPath *_target, const char * name)
  11549. {
  11550. return *((Interop::IntVector2 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetIntVector2()));
  11551. }
  11552. DllExport Interop::Quaternion
  11553. RenderPath_GetShaderParameter_6 (Urho3D::RenderPath *_target, const char * name)
  11554. {
  11555. return *((Interop::Quaternion *) &(_target->GetShaderParameter (Urho3D::String(name)).GetQuaternion()));
  11556. }
  11557. DllExport Interop::Matrix4
  11558. RenderPath_GetShaderParameter_7 (Urho3D::RenderPath *_target, const char * name)
  11559. {
  11560. return *((Interop::Matrix4 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetMatrix4()));
  11561. }
  11562. DllExport Interop::Matrix3x4
  11563. RenderPath_GetShaderParameter_8 (Urho3D::RenderPath *_target, const char * name)
  11564. {
  11565. return *((Interop::Matrix3x4 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetMatrix3x4()));
  11566. }
  11567. DllExport int
  11568. RenderPath_GetShaderParameter_9 (Urho3D::RenderPath *_target, const char * name)
  11569. {
  11570. return (_target->GetShaderParameter (Urho3D::String(name)).GetInt());
  11571. }
  11572. DllExport float
  11573. RenderPath_GetShaderParameter_10 (Urho3D::RenderPath *_target, const char * name)
  11574. {
  11575. return (_target->GetShaderParameter (Urho3D::String(name)).GetFloat());
  11576. }
  11577. DllExport const char *
  11578. RenderPath_GetShaderParameter_11 (Urho3D::RenderPath *_target, const char * name)
  11579. {
  11580. return stringdup(_target->GetShaderParameter (Urho3D::String(name)).GetString().CString());
  11581. }
  11582. DllExport bool
  11583. RenderPath_GetShaderParameter_12 (Urho3D::RenderPath *_target, const char * name)
  11584. {
  11585. return (_target->GetShaderParameter (Urho3D::String(name)).GetBool());
  11586. }
  11587. // Urho3D::Variant overloads end.
  11588. DllExport int
  11589. Renderer_GetType (Urho3D::Renderer *_target)
  11590. {
  11591. return (_target->GetType ()).Value ();
  11592. }
  11593. DllExport const char *
  11594. Renderer_GetTypeName (Urho3D::Renderer *_target)
  11595. {
  11596. return stringdup((_target->GetTypeName ()).CString ());
  11597. }
  11598. DllExport int
  11599. Renderer_GetTypeStatic ()
  11600. {
  11601. return (Renderer::GetTypeStatic ()).Value ();
  11602. }
  11603. DllExport const char *
  11604. Renderer_GetTypeNameStatic ()
  11605. {
  11606. return stringdup((Renderer::GetTypeNameStatic ()).CString ());
  11607. }
  11608. DllExport void *
  11609. Renderer_Renderer (Urho3D::Context * context)
  11610. {
  11611. return WeakPtr<Renderer>(new Renderer(context));
  11612. }
  11613. DllExport void
  11614. Renderer_SetNumViewports (Urho3D::Renderer *_target, unsigned int num)
  11615. {
  11616. _target->SetNumViewports (num);
  11617. }
  11618. DllExport void
  11619. Renderer_SetViewport (Urho3D::Renderer *_target, unsigned int index, Urho3D::Viewport * viewport)
  11620. {
  11621. _target->SetViewport (index, viewport);
  11622. }
  11623. DllExport void
  11624. Renderer_SetDefaultRenderPath (Urho3D::Renderer *_target, Urho3D::RenderPath * renderPath)
  11625. {
  11626. _target->SetDefaultRenderPath (renderPath);
  11627. }
  11628. DllExport void
  11629. Renderer_SetDefaultRenderPath0 (Urho3D::Renderer *_target, Urho3D::XMLFile * file)
  11630. {
  11631. _target->SetDefaultRenderPath (file);
  11632. }
  11633. DllExport void
  11634. Renderer_SetDefaultTechnique (Urho3D::Renderer *_target, Urho3D::Technique * tech)
  11635. {
  11636. _target->SetDefaultTechnique (tech);
  11637. }
  11638. DllExport void
  11639. Renderer_SetHDRRendering (Urho3D::Renderer *_target, bool enable)
  11640. {
  11641. _target->SetHDRRendering (enable);
  11642. }
  11643. DllExport void
  11644. Renderer_SetSpecularLighting (Urho3D::Renderer *_target, bool enable)
  11645. {
  11646. _target->SetSpecularLighting (enable);
  11647. }
  11648. DllExport void
  11649. Renderer_SetTextureAnisotropy (Urho3D::Renderer *_target, int level)
  11650. {
  11651. _target->SetTextureAnisotropy (level);
  11652. }
  11653. DllExport void
  11654. Renderer_SetTextureFilterMode (Urho3D::Renderer *_target, enum Urho3D::TextureFilterMode mode)
  11655. {
  11656. _target->SetTextureFilterMode (mode);
  11657. }
  11658. DllExport void
  11659. Renderer_SetTextureQuality (Urho3D::Renderer *_target, int quality)
  11660. {
  11661. _target->SetTextureQuality (quality);
  11662. }
  11663. DllExport void
  11664. Renderer_SetMaterialQuality (Urho3D::Renderer *_target, int quality)
  11665. {
  11666. _target->SetMaterialQuality (quality);
  11667. }
  11668. DllExport void
  11669. Renderer_SetDrawShadows (Urho3D::Renderer *_target, bool enable)
  11670. {
  11671. _target->SetDrawShadows (enable);
  11672. }
  11673. DllExport void
  11674. Renderer_SetShadowMapSize (Urho3D::Renderer *_target, int size)
  11675. {
  11676. _target->SetShadowMapSize (size);
  11677. }
  11678. DllExport void
  11679. Renderer_SetShadowQuality (Urho3D::Renderer *_target, enum Urho3D::ShadowQuality quality)
  11680. {
  11681. _target->SetShadowQuality (quality);
  11682. }
  11683. DllExport void
  11684. Renderer_SetShadowSoftness (Urho3D::Renderer *_target, float shadowSoftness)
  11685. {
  11686. _target->SetShadowSoftness (shadowSoftness);
  11687. }
  11688. DllExport void
  11689. Renderer_SetVSMShadowParameters (Urho3D::Renderer *_target, float minVariance, float lightBleedingReduction)
  11690. {
  11691. _target->SetVSMShadowParameters (minVariance, lightBleedingReduction);
  11692. }
  11693. DllExport void
  11694. Renderer_SetVSMMultiSample (Urho3D::Renderer *_target, int multiSample)
  11695. {
  11696. _target->SetVSMMultiSample (multiSample);
  11697. }
  11698. DllExport void
  11699. Renderer_SetReuseShadowMaps (Urho3D::Renderer *_target, bool enable)
  11700. {
  11701. _target->SetReuseShadowMaps (enable);
  11702. }
  11703. DllExport void
  11704. Renderer_SetMaxShadowMaps (Urho3D::Renderer *_target, int shadowMaps)
  11705. {
  11706. _target->SetMaxShadowMaps (shadowMaps);
  11707. }
  11708. DllExport void
  11709. Renderer_SetDynamicInstancing (Urho3D::Renderer *_target, bool enable)
  11710. {
  11711. _target->SetDynamicInstancing (enable);
  11712. }
  11713. DllExport void
  11714. Renderer_SetNumExtraInstancingBufferElements (Urho3D::Renderer *_target, int elements)
  11715. {
  11716. _target->SetNumExtraInstancingBufferElements (elements);
  11717. }
  11718. DllExport void
  11719. Renderer_SetMinInstances (Urho3D::Renderer *_target, int instances)
  11720. {
  11721. _target->SetMinInstances (instances);
  11722. }
  11723. DllExport void
  11724. Renderer_SetMaxSortedInstances (Urho3D::Renderer *_target, int instances)
  11725. {
  11726. _target->SetMaxSortedInstances (instances);
  11727. }
  11728. DllExport void
  11729. Renderer_SetMaxOccluderTriangles (Urho3D::Renderer *_target, int triangles)
  11730. {
  11731. _target->SetMaxOccluderTriangles (triangles);
  11732. }
  11733. DllExport void
  11734. Renderer_SetOcclusionBufferSize (Urho3D::Renderer *_target, int size)
  11735. {
  11736. _target->SetOcclusionBufferSize (size);
  11737. }
  11738. DllExport void
  11739. Renderer_SetOccluderSizeThreshold (Urho3D::Renderer *_target, float screenSize)
  11740. {
  11741. _target->SetOccluderSizeThreshold (screenSize);
  11742. }
  11743. DllExport void
  11744. Renderer_SetThreadedOcclusion (Urho3D::Renderer *_target, bool enable)
  11745. {
  11746. _target->SetThreadedOcclusion (enable);
  11747. }
  11748. DllExport void
  11749. Renderer_SetMobileShadowBiasMul (Urho3D::Renderer *_target, float mul)
  11750. {
  11751. _target->SetMobileShadowBiasMul (mul);
  11752. }
  11753. DllExport void
  11754. Renderer_SetMobileShadowBiasAdd (Urho3D::Renderer *_target, float add)
  11755. {
  11756. _target->SetMobileShadowBiasAdd (add);
  11757. }
  11758. DllExport void
  11759. Renderer_SetMobileNormalOffsetMul (Urho3D::Renderer *_target, float mul)
  11760. {
  11761. _target->SetMobileNormalOffsetMul (mul);
  11762. }
  11763. DllExport void
  11764. Renderer_ReloadShaders (Urho3D::Renderer *_target)
  11765. {
  11766. _target->ReloadShaders ();
  11767. }
  11768. DllExport void
  11769. Renderer_ApplyShadowMapFilter (Urho3D::Renderer *_target, Urho3D::View * view, Urho3D::Texture2D * shadowMap, float blurScale)
  11770. {
  11771. _target->ApplyShadowMapFilter (view, shadowMap, blurScale);
  11772. }
  11773. DllExport unsigned int
  11774. Renderer_GetNumViewports (Urho3D::Renderer *_target)
  11775. {
  11776. return _target->GetNumViewports ();
  11777. }
  11778. DllExport Urho3D::Viewport *
  11779. Renderer_GetViewport (Urho3D::Renderer *_target, unsigned int index)
  11780. {
  11781. return _target->GetViewport (index);
  11782. }
  11783. DllExport Urho3D::Viewport *
  11784. Renderer_GetViewportForScene (Urho3D::Renderer *_target, Urho3D::Scene * scene, unsigned int index)
  11785. {
  11786. return _target->GetViewportForScene (scene, index);
  11787. }
  11788. DllExport Urho3D::RenderPath *
  11789. Renderer_GetDefaultRenderPath (Urho3D::Renderer *_target)
  11790. {
  11791. return _target->GetDefaultRenderPath ();
  11792. }
  11793. DllExport Urho3D::Technique *
  11794. Renderer_GetDefaultTechnique (Urho3D::Renderer *_target)
  11795. {
  11796. return _target->GetDefaultTechnique ();
  11797. }
  11798. DllExport int
  11799. Renderer_GetHDRRendering (Urho3D::Renderer *_target)
  11800. {
  11801. return _target->GetHDRRendering ();
  11802. }
  11803. DllExport int
  11804. Renderer_GetSpecularLighting (Urho3D::Renderer *_target)
  11805. {
  11806. return _target->GetSpecularLighting ();
  11807. }
  11808. DllExport int
  11809. Renderer_GetDrawShadows (Urho3D::Renderer *_target)
  11810. {
  11811. return _target->GetDrawShadows ();
  11812. }
  11813. DllExport int
  11814. Renderer_GetTextureAnisotropy (Urho3D::Renderer *_target)
  11815. {
  11816. return _target->GetTextureAnisotropy ();
  11817. }
  11818. DllExport enum Urho3D::TextureFilterMode
  11819. Renderer_GetTextureFilterMode (Urho3D::Renderer *_target)
  11820. {
  11821. return _target->GetTextureFilterMode ();
  11822. }
  11823. DllExport int
  11824. Renderer_GetTextureQuality (Urho3D::Renderer *_target)
  11825. {
  11826. return _target->GetTextureQuality ();
  11827. }
  11828. DllExport int
  11829. Renderer_GetMaterialQuality (Urho3D::Renderer *_target)
  11830. {
  11831. return _target->GetMaterialQuality ();
  11832. }
  11833. DllExport int
  11834. Renderer_GetShadowMapSize (Urho3D::Renderer *_target)
  11835. {
  11836. return _target->GetShadowMapSize ();
  11837. }
  11838. DllExport enum Urho3D::ShadowQuality
  11839. Renderer_GetShadowQuality (Urho3D::Renderer *_target)
  11840. {
  11841. return _target->GetShadowQuality ();
  11842. }
  11843. DllExport float
  11844. Renderer_GetShadowSoftness (Urho3D::Renderer *_target)
  11845. {
  11846. return _target->GetShadowSoftness ();
  11847. }
  11848. DllExport Interop::Vector2
  11849. Renderer_GetVSMShadowParameters (Urho3D::Renderer *_target)
  11850. {
  11851. return *((Interop::Vector2 *) &(_target->GetVSMShadowParameters ()));
  11852. }
  11853. DllExport int
  11854. Renderer_GetVSMMultiSample (Urho3D::Renderer *_target)
  11855. {
  11856. return _target->GetVSMMultiSample ();
  11857. }
  11858. DllExport int
  11859. Renderer_GetReuseShadowMaps (Urho3D::Renderer *_target)
  11860. {
  11861. return _target->GetReuseShadowMaps ();
  11862. }
  11863. DllExport int
  11864. Renderer_GetMaxShadowMaps (Urho3D::Renderer *_target)
  11865. {
  11866. return _target->GetMaxShadowMaps ();
  11867. }
  11868. DllExport int
  11869. Renderer_GetDynamicInstancing (Urho3D::Renderer *_target)
  11870. {
  11871. return _target->GetDynamicInstancing ();
  11872. }
  11873. DllExport int
  11874. Renderer_GetNumExtraInstancingBufferElements (Urho3D::Renderer *_target)
  11875. {
  11876. return _target->GetNumExtraInstancingBufferElements ();
  11877. }
  11878. DllExport int
  11879. Renderer_GetMinInstances (Urho3D::Renderer *_target)
  11880. {
  11881. return _target->GetMinInstances ();
  11882. }
  11883. DllExport int
  11884. Renderer_GetMaxSortedInstances (Urho3D::Renderer *_target)
  11885. {
  11886. return _target->GetMaxSortedInstances ();
  11887. }
  11888. DllExport int
  11889. Renderer_GetMaxOccluderTriangles (Urho3D::Renderer *_target)
  11890. {
  11891. return _target->GetMaxOccluderTriangles ();
  11892. }
  11893. DllExport int
  11894. Renderer_GetOcclusionBufferSize (Urho3D::Renderer *_target)
  11895. {
  11896. return _target->GetOcclusionBufferSize ();
  11897. }
  11898. DllExport float
  11899. Renderer_GetOccluderSizeThreshold (Urho3D::Renderer *_target)
  11900. {
  11901. return _target->GetOccluderSizeThreshold ();
  11902. }
  11903. DllExport int
  11904. Renderer_GetThreadedOcclusion (Urho3D::Renderer *_target)
  11905. {
  11906. return _target->GetThreadedOcclusion ();
  11907. }
  11908. DllExport float
  11909. Renderer_GetMobileShadowBiasMul (Urho3D::Renderer *_target)
  11910. {
  11911. return _target->GetMobileShadowBiasMul ();
  11912. }
  11913. DllExport float
  11914. Renderer_GetMobileShadowBiasAdd (Urho3D::Renderer *_target)
  11915. {
  11916. return _target->GetMobileShadowBiasAdd ();
  11917. }
  11918. DllExport float
  11919. Renderer_GetMobileNormalOffsetMul (Urho3D::Renderer *_target)
  11920. {
  11921. return _target->GetMobileNormalOffsetMul ();
  11922. }
  11923. DllExport unsigned int
  11924. Renderer_GetNumViews (Urho3D::Renderer *_target)
  11925. {
  11926. return _target->GetNumViews ();
  11927. }
  11928. DllExport unsigned int
  11929. Renderer_GetNumPrimitives (Urho3D::Renderer *_target)
  11930. {
  11931. return _target->GetNumPrimitives ();
  11932. }
  11933. DllExport unsigned int
  11934. Renderer_GetNumBatches (Urho3D::Renderer *_target)
  11935. {
  11936. return _target->GetNumBatches ();
  11937. }
  11938. DllExport unsigned int
  11939. Renderer_GetNumGeometries (Urho3D::Renderer *_target, bool allViews)
  11940. {
  11941. return _target->GetNumGeometries (allViews);
  11942. }
  11943. DllExport unsigned int
  11944. Renderer_GetNumLights (Urho3D::Renderer *_target, bool allViews)
  11945. {
  11946. return _target->GetNumLights (allViews);
  11947. }
  11948. DllExport unsigned int
  11949. Renderer_GetNumShadowMaps (Urho3D::Renderer *_target, bool allViews)
  11950. {
  11951. return _target->GetNumShadowMaps (allViews);
  11952. }
  11953. DllExport unsigned int
  11954. Renderer_GetNumOccluders (Urho3D::Renderer *_target, bool allViews)
  11955. {
  11956. return _target->GetNumOccluders (allViews);
  11957. }
  11958. DllExport Urho3D::Zone *
  11959. Renderer_GetDefaultZone (Urho3D::Renderer *_target)
  11960. {
  11961. return _target->GetDefaultZone ();
  11962. }
  11963. DllExport Urho3D::Material *
  11964. Renderer_GetDefaultMaterial (Urho3D::Renderer *_target)
  11965. {
  11966. return _target->GetDefaultMaterial ();
  11967. }
  11968. DllExport Urho3D::Texture2D *
  11969. Renderer_GetDefaultLightRamp (Urho3D::Renderer *_target)
  11970. {
  11971. return _target->GetDefaultLightRamp ();
  11972. }
  11973. DllExport Urho3D::Texture2D *
  11974. Renderer_GetDefaultLightSpot (Urho3D::Renderer *_target)
  11975. {
  11976. return _target->GetDefaultLightSpot ();
  11977. }
  11978. DllExport Urho3D::TextureCube *
  11979. Renderer_GetFaceSelectCubeMap (Urho3D::Renderer *_target)
  11980. {
  11981. return _target->GetFaceSelectCubeMap ();
  11982. }
  11983. DllExport Urho3D::TextureCube *
  11984. Renderer_GetIndirectionCubeMap (Urho3D::Renderer *_target)
  11985. {
  11986. return _target->GetIndirectionCubeMap ();
  11987. }
  11988. DllExport Urho3D::VertexBuffer *
  11989. Renderer_GetInstancingBuffer (Urho3D::Renderer *_target)
  11990. {
  11991. return _target->GetInstancingBuffer ();
  11992. }
  11993. DllExport void
  11994. Renderer_Update (Urho3D::Renderer *_target, float timeStep)
  11995. {
  11996. _target->Update (timeStep);
  11997. }
  11998. DllExport void
  11999. Renderer_Render (Urho3D::Renderer *_target)
  12000. {
  12001. _target->Render ();
  12002. }
  12003. DllExport void
  12004. Renderer_DrawDebugGeometry (Urho3D::Renderer *_target, bool depthTest)
  12005. {
  12006. _target->DrawDebugGeometry (depthTest);
  12007. }
  12008. DllExport void
  12009. Renderer_QueueRenderSurface (Urho3D::Renderer *_target, Urho3D::RenderSurface * renderTarget)
  12010. {
  12011. _target->QueueRenderSurface (renderTarget);
  12012. }
  12013. DllExport void
  12014. Renderer_QueueViewport (Urho3D::Renderer *_target, Urho3D::RenderSurface * renderTarget, Urho3D::Viewport * viewport)
  12015. {
  12016. _target->QueueViewport (renderTarget, viewport);
  12017. }
  12018. DllExport Urho3D::Geometry *
  12019. Renderer_GetLightGeometry (Urho3D::Renderer *_target, Urho3D::Light * light)
  12020. {
  12021. return _target->GetLightGeometry (light);
  12022. }
  12023. DllExport Urho3D::Geometry *
  12024. Renderer_GetQuadGeometry (Urho3D::Renderer *_target)
  12025. {
  12026. return _target->GetQuadGeometry ();
  12027. }
  12028. DllExport Urho3D::Texture2D *
  12029. Renderer_GetShadowMap (Urho3D::Renderer *_target, Urho3D::Light * light, Urho3D::Camera * camera, unsigned int viewWidth, unsigned int viewHeight)
  12030. {
  12031. return _target->GetShadowMap (light, camera, viewWidth, viewHeight);
  12032. }
  12033. DllExport Urho3D::Texture *
  12034. 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)
  12035. {
  12036. return _target->GetScreenBuffer (width, height, format, multiSample, autoResolve, cubemap, filtered, srgb, persistentKey);
  12037. }
  12038. DllExport Urho3D::RenderSurface *
  12039. Renderer_GetDepthStencil (Urho3D::Renderer *_target, int width, int height, int multiSample, bool autoResolve)
  12040. {
  12041. return _target->GetDepthStencil (width, height, multiSample, autoResolve);
  12042. }
  12043. DllExport Urho3D::OcclusionBuffer *
  12044. Renderer_GetOcclusionBuffer (Urho3D::Renderer *_target, Urho3D::Camera * camera)
  12045. {
  12046. return _target->GetOcclusionBuffer (camera);
  12047. }
  12048. DllExport Urho3D::Camera *
  12049. Renderer_GetShadowCamera (Urho3D::Renderer *_target)
  12050. {
  12051. return _target->GetShadowCamera ();
  12052. }
  12053. DllExport void
  12054. Renderer_StorePreparedView (Urho3D::Renderer *_target, Urho3D::View * view, Urho3D::Camera * cullCamera)
  12055. {
  12056. _target->StorePreparedView (view, cullCamera);
  12057. }
  12058. DllExport Urho3D::View *
  12059. Renderer_GetPreparedView (Urho3D::Renderer *_target, Urho3D::Camera * cullCamera)
  12060. {
  12061. return _target->GetPreparedView (cullCamera);
  12062. }
  12063. DllExport void
  12064. Renderer_SetCullMode (Urho3D::Renderer *_target, enum Urho3D::CullMode mode, Urho3D::Camera * camera)
  12065. {
  12066. _target->SetCullMode (mode, camera);
  12067. }
  12068. DllExport int
  12069. Renderer_ResizeInstancingBuffer (Urho3D::Renderer *_target, unsigned int numInstances)
  12070. {
  12071. return _target->ResizeInstancingBuffer (numInstances);
  12072. }
  12073. DllExport void
  12074. Renderer_OptimizeLightByScissor (Urho3D::Renderer *_target, Urho3D::Light * light, Urho3D::Camera * camera)
  12075. {
  12076. _target->OptimizeLightByScissor (light, camera);
  12077. }
  12078. DllExport void
  12079. Renderer_OptimizeLightByStencil (Urho3D::Renderer *_target, Urho3D::Light * light, Urho3D::Camera * camera)
  12080. {
  12081. _target->OptimizeLightByStencil (light, camera);
  12082. }
  12083. DllExport Urho3D::View *
  12084. Renderer_GetActualView (Urho3D::View * view)
  12085. {
  12086. return Renderer::GetActualView (view);
  12087. }
  12088. DllExport int
  12089. Shader_GetType (Urho3D::Shader *_target)
  12090. {
  12091. return (_target->GetType ()).Value ();
  12092. }
  12093. DllExport const char *
  12094. Shader_GetTypeName (Urho3D::Shader *_target)
  12095. {
  12096. return stringdup((_target->GetTypeName ()).CString ());
  12097. }
  12098. DllExport int
  12099. Shader_GetTypeStatic ()
  12100. {
  12101. return (Shader::GetTypeStatic ()).Value ();
  12102. }
  12103. DllExport const char *
  12104. Shader_GetTypeNameStatic ()
  12105. {
  12106. return stringdup((Shader::GetTypeNameStatic ()).CString ());
  12107. }
  12108. DllExport void *
  12109. Shader_Shader (Urho3D::Context * context)
  12110. {
  12111. return WeakPtr<Shader>(new Shader(context));
  12112. }
  12113. DllExport void
  12114. Shader_RegisterObject (Urho3D::Context * context)
  12115. {
  12116. Shader::RegisterObject (context);
  12117. }
  12118. DllExport int
  12119. Shader_BeginLoad_File (Urho3D::Shader *_target, File * source)
  12120. {
  12121. return _target->BeginLoad (*source);
  12122. }
  12123. DllExport int
  12124. Shader_BeginLoad_MemoryBuffer (Urho3D::Shader *_target, MemoryBuffer * source)
  12125. {
  12126. return _target->BeginLoad (*source);
  12127. }
  12128. DllExport int
  12129. Shader_EndLoad (Urho3D::Shader *_target)
  12130. {
  12131. return _target->EndLoad ();
  12132. }
  12133. DllExport Urho3D::ShaderVariation *
  12134. Shader_GetVariation (Urho3D::Shader *_target, enum Urho3D::ShaderType type, const char * defines)
  12135. {
  12136. return _target->GetVariation (type, Urho3D::String(defines));
  12137. }
  12138. DllExport const char *
  12139. Shader_GetSourceCode (Urho3D::Shader *_target, enum Urho3D::ShaderType type)
  12140. {
  12141. return stringdup((_target->GetSourceCode (type)).CString ());
  12142. }
  12143. DllExport unsigned int
  12144. Shader_GetTimeStamp (Urho3D::Shader *_target)
  12145. {
  12146. return _target->GetTimeStamp ();
  12147. }
  12148. DllExport int
  12149. RibbonTrail_GetType (Urho3D::RibbonTrail *_target)
  12150. {
  12151. return (_target->GetType ()).Value ();
  12152. }
  12153. DllExport const char *
  12154. RibbonTrail_GetTypeName (Urho3D::RibbonTrail *_target)
  12155. {
  12156. return stringdup((_target->GetTypeName ()).CString ());
  12157. }
  12158. DllExport int
  12159. RibbonTrail_GetTypeStatic ()
  12160. {
  12161. return (RibbonTrail::GetTypeStatic ()).Value ();
  12162. }
  12163. DllExport const char *
  12164. RibbonTrail_GetTypeNameStatic ()
  12165. {
  12166. return stringdup((RibbonTrail::GetTypeNameStatic ()).CString ());
  12167. }
  12168. DllExport void *
  12169. RibbonTrail_RibbonTrail (Urho3D::Context * context)
  12170. {
  12171. return WeakPtr<RibbonTrail>(new RibbonTrail(context));
  12172. }
  12173. DllExport void
  12174. RibbonTrail_RegisterObject (Urho3D::Context * context)
  12175. {
  12176. RibbonTrail::RegisterObject (context);
  12177. }
  12178. DllExport void
  12179. RibbonTrail_OnSetEnabled (Urho3D::RibbonTrail *_target)
  12180. {
  12181. _target->OnSetEnabled ();
  12182. }
  12183. DllExport enum Urho3D::UpdateGeometryType
  12184. RibbonTrail_GetUpdateGeometryType (Urho3D::RibbonTrail *_target)
  12185. {
  12186. return _target->GetUpdateGeometryType ();
  12187. }
  12188. DllExport void
  12189. RibbonTrail_SetMaterial (Urho3D::RibbonTrail *_target, Urho3D::Material * material)
  12190. {
  12191. _target->SetMaterial (material);
  12192. }
  12193. DllExport void
  12194. RibbonTrail_SetVertexDistance (Urho3D::RibbonTrail *_target, float length)
  12195. {
  12196. _target->SetVertexDistance (length);
  12197. }
  12198. DllExport void
  12199. RibbonTrail_SetWidth (Urho3D::RibbonTrail *_target, float width)
  12200. {
  12201. _target->SetWidth (width);
  12202. }
  12203. DllExport void
  12204. RibbonTrail_SetStartColor (Urho3D::RibbonTrail *_target, const class Urho3D::Color & color)
  12205. {
  12206. _target->SetStartColor (color);
  12207. }
  12208. DllExport void
  12209. RibbonTrail_SetEndColor (Urho3D::RibbonTrail *_target, const class Urho3D::Color & color)
  12210. {
  12211. _target->SetEndColor (color);
  12212. }
  12213. DllExport void
  12214. RibbonTrail_SetStartScale (Urho3D::RibbonTrail *_target, float startScale)
  12215. {
  12216. _target->SetStartScale (startScale);
  12217. }
  12218. DllExport void
  12219. RibbonTrail_SetEndScale (Urho3D::RibbonTrail *_target, float endScale)
  12220. {
  12221. _target->SetEndScale (endScale);
  12222. }
  12223. DllExport void
  12224. RibbonTrail_SetTrailType (Urho3D::RibbonTrail *_target, enum Urho3D::TrailType type)
  12225. {
  12226. _target->SetTrailType (type);
  12227. }
  12228. DllExport void
  12229. RibbonTrail_SetSorted (Urho3D::RibbonTrail *_target, bool enable)
  12230. {
  12231. _target->SetSorted (enable);
  12232. }
  12233. DllExport void
  12234. RibbonTrail_SetLifetime (Urho3D::RibbonTrail *_target, float time)
  12235. {
  12236. _target->SetLifetime (time);
  12237. }
  12238. DllExport void
  12239. RibbonTrail_SetEmitting (Urho3D::RibbonTrail *_target, bool emitting)
  12240. {
  12241. _target->SetEmitting (emitting);
  12242. }
  12243. DllExport void
  12244. RibbonTrail_SetUpdateInvisible (Urho3D::RibbonTrail *_target, bool enable)
  12245. {
  12246. _target->SetUpdateInvisible (enable);
  12247. }
  12248. DllExport void
  12249. RibbonTrail_SetTailColumn (Urho3D::RibbonTrail *_target, unsigned int tailColumn)
  12250. {
  12251. _target->SetTailColumn (tailColumn);
  12252. }
  12253. DllExport void
  12254. RibbonTrail_SetAnimationLodBias (Urho3D::RibbonTrail *_target, float bias)
  12255. {
  12256. _target->SetAnimationLodBias (bias);
  12257. }
  12258. DllExport void
  12259. RibbonTrail_Commit (Urho3D::RibbonTrail *_target)
  12260. {
  12261. _target->Commit ();
  12262. }
  12263. DllExport Urho3D::Material *
  12264. RibbonTrail_GetMaterial (Urho3D::RibbonTrail *_target)
  12265. {
  12266. return _target->GetMaterial ();
  12267. }
  12268. DllExport Urho3D::ResourceRef
  12269. RibbonTrail_GetMaterialAttr (Urho3D::RibbonTrail *_target)
  12270. {
  12271. return _target->GetMaterialAttr ();
  12272. }
  12273. DllExport float
  12274. RibbonTrail_GetVertexDistance (Urho3D::RibbonTrail *_target)
  12275. {
  12276. return _target->GetVertexDistance ();
  12277. }
  12278. DllExport float
  12279. RibbonTrail_GetWidth (Urho3D::RibbonTrail *_target)
  12280. {
  12281. return _target->GetWidth ();
  12282. }
  12283. DllExport Interop::Color
  12284. RibbonTrail_GetStartColor (Urho3D::RibbonTrail *_target)
  12285. {
  12286. return *((Interop::Color *) &(_target->GetStartColor ()));
  12287. }
  12288. DllExport Interop::Color
  12289. RibbonTrail_GetEndColor (Urho3D::RibbonTrail *_target)
  12290. {
  12291. return *((Interop::Color *) &(_target->GetEndColor ()));
  12292. }
  12293. DllExport float
  12294. RibbonTrail_GetStartScale (Urho3D::RibbonTrail *_target)
  12295. {
  12296. return _target->GetStartScale ();
  12297. }
  12298. DllExport float
  12299. RibbonTrail_GetEndScale (Urho3D::RibbonTrail *_target)
  12300. {
  12301. return _target->GetEndScale ();
  12302. }
  12303. DllExport int
  12304. RibbonTrail_IsSorted (Urho3D::RibbonTrail *_target)
  12305. {
  12306. return _target->IsSorted ();
  12307. }
  12308. DllExport float
  12309. RibbonTrail_GetLifetime (Urho3D::RibbonTrail *_target)
  12310. {
  12311. return _target->GetLifetime ();
  12312. }
  12313. DllExport float
  12314. RibbonTrail_GetAnimationLodBias (Urho3D::RibbonTrail *_target)
  12315. {
  12316. return _target->GetAnimationLodBias ();
  12317. }
  12318. DllExport enum Urho3D::TrailType
  12319. RibbonTrail_GetTrailType (Urho3D::RibbonTrail *_target)
  12320. {
  12321. return _target->GetTrailType ();
  12322. }
  12323. DllExport unsigned int
  12324. RibbonTrail_GetTailColumn (Urho3D::RibbonTrail *_target)
  12325. {
  12326. return _target->GetTailColumn ();
  12327. }
  12328. DllExport int
  12329. RibbonTrail_IsEmitting (Urho3D::RibbonTrail *_target)
  12330. {
  12331. return _target->IsEmitting ();
  12332. }
  12333. DllExport int
  12334. RibbonTrail_GetUpdateInvisible (Urho3D::RibbonTrail *_target)
  12335. {
  12336. return _target->GetUpdateInvisible ();
  12337. }
  12338. DllExport void *
  12339. XmlElement_XMLElement ()
  12340. {
  12341. return new XMLElement();
  12342. }
  12343. DllExport void *
  12344. XmlElement_XMLElement0 (const class Urho3D::XMLElement & rhs)
  12345. {
  12346. return new XMLElement(rhs);
  12347. }
  12348. DllExport Urho3D::XMLElement *
  12349. XmlElement_CreateChild (Urho3D::XMLElement *_target, const char * name)
  12350. {
  12351. return new Urho3D::XMLElement (_target->CreateChild (Urho3D::String(name)));
  12352. }
  12353. DllExport Urho3D::XMLElement *
  12354. XmlElement_GetOrCreateChild (Urho3D::XMLElement *_target, const char * name)
  12355. {
  12356. return new Urho3D::XMLElement (_target->GetOrCreateChild (Urho3D::String(name)));
  12357. }
  12358. DllExport int
  12359. XmlElement_AppendChild (Urho3D::XMLElement *_target, Urho3D::XMLElement element, bool asCopy)
  12360. {
  12361. return _target->AppendChild (element, asCopy);
  12362. }
  12363. DllExport int
  12364. XmlElement_Remove (Urho3D::XMLElement *_target)
  12365. {
  12366. return _target->Remove ();
  12367. }
  12368. DllExport int
  12369. XmlElement_RemoveChild (Urho3D::XMLElement *_target, const class Urho3D::XMLElement & element)
  12370. {
  12371. return _target->RemoveChild (element);
  12372. }
  12373. DllExport int
  12374. XmlElement_RemoveChild1 (Urho3D::XMLElement *_target, const char * name)
  12375. {
  12376. return _target->RemoveChild (Urho3D::String(name));
  12377. }
  12378. DllExport int
  12379. XmlElement_RemoveChildren (Urho3D::XMLElement *_target, const char * name)
  12380. {
  12381. return _target->RemoveChildren (Urho3D::String(name));
  12382. }
  12383. DllExport int
  12384. XmlElement_RemoveAttribute (Urho3D::XMLElement *_target, const char * name)
  12385. {
  12386. return _target->RemoveAttribute (Urho3D::String(name));
  12387. }
  12388. DllExport int
  12389. XmlElement_SetValue (Urho3D::XMLElement *_target, const char * value)
  12390. {
  12391. return _target->SetValue (Urho3D::String(value));
  12392. }
  12393. DllExport int
  12394. XmlElement_SetAttribute (Urho3D::XMLElement *_target, const char * name, const char * value)
  12395. {
  12396. return _target->SetAttribute (Urho3D::String(name), Urho3D::String(value));
  12397. }
  12398. DllExport int
  12399. XmlElement_SetAttribute2 (Urho3D::XMLElement *_target, const char * value)
  12400. {
  12401. return _target->SetAttribute (Urho3D::String(value));
  12402. }
  12403. DllExport int
  12404. XmlElement_SetBool (Urho3D::XMLElement *_target, const char * name, bool value)
  12405. {
  12406. return _target->SetBool (Urho3D::String(name), value);
  12407. }
  12408. DllExport int
  12409. XmlElement_SetBoundingBox (Urho3D::XMLElement *_target, const class Urho3D::BoundingBox & value)
  12410. {
  12411. return _target->SetBoundingBox (value);
  12412. }
  12413. DllExport int
  12414. XmlElement_SetBuffer (Urho3D::XMLElement *_target, const char * name, const void * data, unsigned int size)
  12415. {
  12416. return _target->SetBuffer (Urho3D::String(name), data, size);
  12417. }
  12418. DllExport int
  12419. XmlElement_SetColor (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Color & value)
  12420. {
  12421. return _target->SetColor (Urho3D::String(name), value);
  12422. }
  12423. DllExport int
  12424. XmlElement_SetFloat (Urho3D::XMLElement *_target, const char * name, float value)
  12425. {
  12426. return _target->SetFloat (Urho3D::String(name), value);
  12427. }
  12428. DllExport int
  12429. XmlElement_SetDouble (Urho3D::XMLElement *_target, const char * name, double value)
  12430. {
  12431. return _target->SetDouble (Urho3D::String(name), value);
  12432. }
  12433. DllExport int
  12434. XmlElement_SetUInt (Urho3D::XMLElement *_target, const char * name, unsigned int value)
  12435. {
  12436. return _target->SetUInt (Urho3D::String(name), value);
  12437. }
  12438. DllExport int
  12439. XmlElement_SetInt (Urho3D::XMLElement *_target, const char * name, int value)
  12440. {
  12441. return _target->SetInt (Urho3D::String(name), value);
  12442. }
  12443. DllExport int
  12444. XmlElement_SetUInt64 (Urho3D::XMLElement *_target, const char * name, unsigned long long value)
  12445. {
  12446. return _target->SetUInt64 (Urho3D::String(name), value);
  12447. }
  12448. DllExport int
  12449. XmlElement_SetInt64 (Urho3D::XMLElement *_target, const char * name, long long value)
  12450. {
  12451. return _target->SetInt64 (Urho3D::String(name), value);
  12452. }
  12453. DllExport int
  12454. XmlElement_SetIntRect (Urho3D::XMLElement *_target, const char * name, const class Urho3D::IntRect & value)
  12455. {
  12456. return _target->SetIntRect (Urho3D::String(name), value);
  12457. }
  12458. DllExport int
  12459. XmlElement_SetIntVector2 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::IntVector2 & value)
  12460. {
  12461. return _target->SetIntVector2 (Urho3D::String(name), value);
  12462. }
  12463. DllExport int
  12464. XmlElement_SetQuaternion (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Quaternion & value)
  12465. {
  12466. return _target->SetQuaternion (Urho3D::String(name), value);
  12467. }
  12468. DllExport int
  12469. XmlElement_SetString (Urho3D::XMLElement *_target, const char * name, const char * value)
  12470. {
  12471. return _target->SetString (Urho3D::String(name), Urho3D::String(value));
  12472. }
  12473. // Urho3D::Variant overloads begin:
  12474. DllExport int
  12475. XmlElement_SetVariant_0 (Urho3D::XMLElement *_target, const class Urho3D::Vector3 & value)
  12476. {
  12477. return _target->SetVariant ((value));
  12478. }
  12479. DllExport int
  12480. XmlElement_SetVariant_1 (Urho3D::XMLElement *_target, const class Urho3D::IntRect & value)
  12481. {
  12482. return _target->SetVariant ((value));
  12483. }
  12484. DllExport int
  12485. XmlElement_SetVariant_2 (Urho3D::XMLElement *_target, const class Urho3D::Color & value)
  12486. {
  12487. return _target->SetVariant ((value));
  12488. }
  12489. DllExport int
  12490. XmlElement_SetVariant_3 (Urho3D::XMLElement *_target, const class Urho3D::Vector2 & value)
  12491. {
  12492. return _target->SetVariant ((value));
  12493. }
  12494. DllExport int
  12495. XmlElement_SetVariant_4 (Urho3D::XMLElement *_target, const class Urho3D::Vector4 & value)
  12496. {
  12497. return _target->SetVariant ((value));
  12498. }
  12499. DllExport int
  12500. XmlElement_SetVariant_5 (Urho3D::XMLElement *_target, const class Urho3D::IntVector2 & value)
  12501. {
  12502. return _target->SetVariant ((value));
  12503. }
  12504. DllExport int
  12505. XmlElement_SetVariant_6 (Urho3D::XMLElement *_target, const class Urho3D::Quaternion & value)
  12506. {
  12507. return _target->SetVariant ((value));
  12508. }
  12509. DllExport int
  12510. XmlElement_SetVariant_7 (Urho3D::XMLElement *_target, const class Urho3D::Matrix4 & value)
  12511. {
  12512. return _target->SetVariant ((value));
  12513. }
  12514. DllExport int
  12515. XmlElement_SetVariant_8 (Urho3D::XMLElement *_target, const class Urho3D::Matrix3x4 & value)
  12516. {
  12517. return _target->SetVariant ((value));
  12518. }
  12519. DllExport int
  12520. XmlElement_SetVariant_9 (Urho3D::XMLElement *_target, int value)
  12521. {
  12522. return _target->SetVariant ((value));
  12523. }
  12524. DllExport int
  12525. XmlElement_SetVariant_10 (Urho3D::XMLElement *_target, float value)
  12526. {
  12527. return _target->SetVariant ((value));
  12528. }
  12529. DllExport int
  12530. XmlElement_SetVariant_11 (Urho3D::XMLElement *_target, const char * value)
  12531. {
  12532. return _target->SetVariant (Urho3D::String(value));
  12533. }
  12534. DllExport int
  12535. XmlElement_SetVariant_12 (Urho3D::XMLElement *_target, bool value)
  12536. {
  12537. return _target->SetVariant ((value));
  12538. }
  12539. // Urho3D::Variant overloads end.
  12540. // Urho3D::Variant overloads begin:
  12541. DllExport int
  12542. XmlElement_SetVariantValue_0 (Urho3D::XMLElement *_target, const class Urho3D::Vector3 & value)
  12543. {
  12544. return _target->SetVariantValue ((value));
  12545. }
  12546. DllExport int
  12547. XmlElement_SetVariantValue_1 (Urho3D::XMLElement *_target, const class Urho3D::IntRect & value)
  12548. {
  12549. return _target->SetVariantValue ((value));
  12550. }
  12551. DllExport int
  12552. XmlElement_SetVariantValue_2 (Urho3D::XMLElement *_target, const class Urho3D::Color & value)
  12553. {
  12554. return _target->SetVariantValue ((value));
  12555. }
  12556. DllExport int
  12557. XmlElement_SetVariantValue_3 (Urho3D::XMLElement *_target, const class Urho3D::Vector2 & value)
  12558. {
  12559. return _target->SetVariantValue ((value));
  12560. }
  12561. DllExport int
  12562. XmlElement_SetVariantValue_4 (Urho3D::XMLElement *_target, const class Urho3D::Vector4 & value)
  12563. {
  12564. return _target->SetVariantValue ((value));
  12565. }
  12566. DllExport int
  12567. XmlElement_SetVariantValue_5 (Urho3D::XMLElement *_target, const class Urho3D::IntVector2 & value)
  12568. {
  12569. return _target->SetVariantValue ((value));
  12570. }
  12571. DllExport int
  12572. XmlElement_SetVariantValue_6 (Urho3D::XMLElement *_target, const class Urho3D::Quaternion & value)
  12573. {
  12574. return _target->SetVariantValue ((value));
  12575. }
  12576. DllExport int
  12577. XmlElement_SetVariantValue_7 (Urho3D::XMLElement *_target, const class Urho3D::Matrix4 & value)
  12578. {
  12579. return _target->SetVariantValue ((value));
  12580. }
  12581. DllExport int
  12582. XmlElement_SetVariantValue_8 (Urho3D::XMLElement *_target, const class Urho3D::Matrix3x4 & value)
  12583. {
  12584. return _target->SetVariantValue ((value));
  12585. }
  12586. DllExport int
  12587. XmlElement_SetVariantValue_9 (Urho3D::XMLElement *_target, int value)
  12588. {
  12589. return _target->SetVariantValue ((value));
  12590. }
  12591. DllExport int
  12592. XmlElement_SetVariantValue_10 (Urho3D::XMLElement *_target, float value)
  12593. {
  12594. return _target->SetVariantValue ((value));
  12595. }
  12596. DllExport int
  12597. XmlElement_SetVariantValue_11 (Urho3D::XMLElement *_target, const char * value)
  12598. {
  12599. return _target->SetVariantValue (Urho3D::String(value));
  12600. }
  12601. DllExport int
  12602. XmlElement_SetVariantValue_12 (Urho3D::XMLElement *_target, bool value)
  12603. {
  12604. return _target->SetVariantValue ((value));
  12605. }
  12606. // Urho3D::Variant overloads end.
  12607. DllExport int
  12608. XmlElement_SetVector2 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Vector2 & value)
  12609. {
  12610. return _target->SetVector2 (Urho3D::String(name), value);
  12611. }
  12612. DllExport int
  12613. XmlElement_SetVector3 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Vector3 & value)
  12614. {
  12615. return _target->SetVector3 (Urho3D::String(name), value);
  12616. }
  12617. DllExport int
  12618. XmlElement_SetVector4 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Vector4 & value)
  12619. {
  12620. return _target->SetVector4 (Urho3D::String(name), value);
  12621. }
  12622. // Urho3D::Variant overloads begin:
  12623. DllExport int
  12624. XmlElement_SetVectorVariant_0 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Vector3 & value)
  12625. {
  12626. return _target->SetVectorVariant (Urho3D::String(name), (value));
  12627. }
  12628. DllExport int
  12629. XmlElement_SetVectorVariant_1 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::IntRect & value)
  12630. {
  12631. return _target->SetVectorVariant (Urho3D::String(name), (value));
  12632. }
  12633. DllExport int
  12634. XmlElement_SetVectorVariant_2 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Color & value)
  12635. {
  12636. return _target->SetVectorVariant (Urho3D::String(name), (value));
  12637. }
  12638. DllExport int
  12639. XmlElement_SetVectorVariant_3 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Vector2 & value)
  12640. {
  12641. return _target->SetVectorVariant (Urho3D::String(name), (value));
  12642. }
  12643. DllExport int
  12644. XmlElement_SetVectorVariant_4 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Vector4 & value)
  12645. {
  12646. return _target->SetVectorVariant (Urho3D::String(name), (value));
  12647. }
  12648. DllExport int
  12649. XmlElement_SetVectorVariant_5 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::IntVector2 & value)
  12650. {
  12651. return _target->SetVectorVariant (Urho3D::String(name), (value));
  12652. }
  12653. DllExport int
  12654. XmlElement_SetVectorVariant_6 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Quaternion & value)
  12655. {
  12656. return _target->SetVectorVariant (Urho3D::String(name), (value));
  12657. }
  12658. DllExport int
  12659. XmlElement_SetVectorVariant_7 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Matrix4 & value)
  12660. {
  12661. return _target->SetVectorVariant (Urho3D::String(name), (value));
  12662. }
  12663. DllExport int
  12664. XmlElement_SetVectorVariant_8 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Matrix3x4 & value)
  12665. {
  12666. return _target->SetVectorVariant (Urho3D::String(name), (value));
  12667. }
  12668. DllExport int
  12669. XmlElement_SetVectorVariant_9 (Urho3D::XMLElement *_target, const char * name, int value)
  12670. {
  12671. return _target->SetVectorVariant (Urho3D::String(name), (value));
  12672. }
  12673. DllExport int
  12674. XmlElement_SetVectorVariant_10 (Urho3D::XMLElement *_target, const char * name, float value)
  12675. {
  12676. return _target->SetVectorVariant (Urho3D::String(name), (value));
  12677. }
  12678. DllExport int
  12679. XmlElement_SetVectorVariant_11 (Urho3D::XMLElement *_target, const char * name, const char * value)
  12680. {
  12681. return _target->SetVectorVariant (Urho3D::String(name), Urho3D::String(value));
  12682. }
  12683. DllExport int
  12684. XmlElement_SetVectorVariant_12 (Urho3D::XMLElement *_target, const char * name, bool value)
  12685. {
  12686. return _target->SetVectorVariant (Urho3D::String(name), (value));
  12687. }
  12688. // Urho3D::Variant overloads end.
  12689. DllExport int
  12690. XmlElement_SetMatrix3x4 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Matrix3x4 & value)
  12691. {
  12692. return _target->SetMatrix3x4 (Urho3D::String(name), value);
  12693. }
  12694. DllExport int
  12695. XmlElement_SetMatrix4 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Matrix4 & value)
  12696. {
  12697. return _target->SetMatrix4 (Urho3D::String(name), value);
  12698. }
  12699. DllExport int
  12700. XmlElement_IsNull (Urho3D::XMLElement *_target)
  12701. {
  12702. return _target->IsNull ();
  12703. }
  12704. DllExport int
  12705. XmlElement_NotNull (Urho3D::XMLElement *_target)
  12706. {
  12707. return _target->NotNull ();
  12708. }
  12709. DllExport const char *
  12710. XmlElement_GetName (Urho3D::XMLElement *_target)
  12711. {
  12712. return stringdup((_target->GetName ()).CString ());
  12713. }
  12714. DllExport int
  12715. XmlElement_HasChild (Urho3D::XMLElement *_target, const char * name)
  12716. {
  12717. return _target->HasChild (Urho3D::String(name));
  12718. }
  12719. DllExport Urho3D::XMLElement *
  12720. XmlElement_GetChild (Urho3D::XMLElement *_target, const char * name)
  12721. {
  12722. return new Urho3D::XMLElement (_target->GetChild (Urho3D::String(name)));
  12723. }
  12724. DllExport Urho3D::XMLElement *
  12725. XmlElement_GetNext (Urho3D::XMLElement *_target, const char * name)
  12726. {
  12727. return new Urho3D::XMLElement (_target->GetNext (Urho3D::String(name)));
  12728. }
  12729. DllExport Urho3D::XMLElement *
  12730. XmlElement_GetParent (Urho3D::XMLElement *_target)
  12731. {
  12732. return new Urho3D::XMLElement (_target->GetParent ());
  12733. }
  12734. DllExport unsigned int
  12735. XmlElement_GetNumAttributes (Urho3D::XMLElement *_target)
  12736. {
  12737. return _target->GetNumAttributes ();
  12738. }
  12739. DllExport int
  12740. XmlElement_HasAttribute (Urho3D::XMLElement *_target, const char * name)
  12741. {
  12742. return _target->HasAttribute (Urho3D::String(name));
  12743. }
  12744. DllExport const char *
  12745. XmlElement_GetValue (Urho3D::XMLElement *_target)
  12746. {
  12747. return stringdup((_target->GetValue ()).CString ());
  12748. }
  12749. DllExport const char *
  12750. XmlElement_GetAttribute (Urho3D::XMLElement *_target, const char * name)
  12751. {
  12752. return stringdup((_target->GetAttribute (Urho3D::String(name))).CString ());
  12753. }
  12754. DllExport const char *
  12755. XmlElement_GetAttributeLower (Urho3D::XMLElement *_target, const char * name)
  12756. {
  12757. return stringdup((_target->GetAttributeLower (Urho3D::String(name))).CString ());
  12758. }
  12759. DllExport const char *
  12760. XmlElement_GetAttributeUpper (Urho3D::XMLElement *_target, const char * name)
  12761. {
  12762. return stringdup((_target->GetAttributeUpper (Urho3D::String(name))).CString ());
  12763. }
  12764. DllExport int
  12765. XmlElement_GetBool (Urho3D::XMLElement *_target, const char * name)
  12766. {
  12767. return _target->GetBool (Urho3D::String(name));
  12768. }
  12769. DllExport int
  12770. XmlElement_GetBuffer (Urho3D::XMLElement *_target, const char * name, void * dest, unsigned int size)
  12771. {
  12772. return _target->GetBuffer (Urho3D::String(name), dest, size);
  12773. }
  12774. DllExport Interop::BoundingBox
  12775. XmlElement_GetBoundingBox (Urho3D::XMLElement *_target)
  12776. {
  12777. return *((Interop::BoundingBox *) &(_target->GetBoundingBox ()));
  12778. }
  12779. DllExport Interop::Color
  12780. XmlElement_GetColor (Urho3D::XMLElement *_target, const char * name)
  12781. {
  12782. return *((Interop::Color *) &(_target->GetColor (Urho3D::String(name))));
  12783. }
  12784. DllExport float
  12785. XmlElement_GetFloat (Urho3D::XMLElement *_target, const char * name)
  12786. {
  12787. return _target->GetFloat (Urho3D::String(name));
  12788. }
  12789. DllExport double
  12790. XmlElement_GetDouble (Urho3D::XMLElement *_target, const char * name)
  12791. {
  12792. return _target->GetDouble (Urho3D::String(name));
  12793. }
  12794. DllExport unsigned int
  12795. XmlElement_GetUInt (Urho3D::XMLElement *_target, const char * name)
  12796. {
  12797. return _target->GetUInt (Urho3D::String(name));
  12798. }
  12799. DllExport int
  12800. XmlElement_GetInt (Urho3D::XMLElement *_target, const char * name)
  12801. {
  12802. return _target->GetInt (Urho3D::String(name));
  12803. }
  12804. DllExport unsigned long long
  12805. XmlElement_GetUInt64 (Urho3D::XMLElement *_target, const char * name)
  12806. {
  12807. return _target->GetUInt64 (Urho3D::String(name));
  12808. }
  12809. DllExport long long
  12810. XmlElement_GetInt64 (Urho3D::XMLElement *_target, const char * name)
  12811. {
  12812. return _target->GetInt64 (Urho3D::String(name));
  12813. }
  12814. DllExport Interop::IntRect
  12815. XmlElement_GetIntRect (Urho3D::XMLElement *_target, const char * name)
  12816. {
  12817. return *((Interop::IntRect *) &(_target->GetIntRect (Urho3D::String(name))));
  12818. }
  12819. DllExport Interop::IntVector2
  12820. XmlElement_GetIntVector2 (Urho3D::XMLElement *_target, const char * name)
  12821. {
  12822. return *((Interop::IntVector2 *) &(_target->GetIntVector2 (Urho3D::String(name))));
  12823. }
  12824. DllExport Urho3D::IntVector3
  12825. XmlElement_GetIntVector3 (Urho3D::XMLElement *_target, const char * name)
  12826. {
  12827. return _target->GetIntVector3 (Urho3D::String(name));
  12828. }
  12829. DllExport Urho3D::Rect
  12830. XmlElement_GetRect (Urho3D::XMLElement *_target, const char * name)
  12831. {
  12832. return _target->GetRect (Urho3D::String(name));
  12833. }
  12834. DllExport Interop::Quaternion
  12835. XmlElement_GetQuaternion (Urho3D::XMLElement *_target, const char * name)
  12836. {
  12837. return *((Interop::Quaternion *) &(_target->GetQuaternion (Urho3D::String(name))));
  12838. }
  12839. DllExport Urho3D::Variant
  12840. XmlElement_GetVariant (Urho3D::XMLElement *_target)
  12841. {
  12842. return _target->GetVariant ();
  12843. }
  12844. DllExport Urho3D::Variant
  12845. XmlElement_GetVariantValue (Urho3D::XMLElement *_target, enum Urho3D::VariantType type)
  12846. {
  12847. return _target->GetVariantValue (type);
  12848. }
  12849. DllExport Urho3D::ResourceRef
  12850. XmlElement_GetResourceRef (Urho3D::XMLElement *_target)
  12851. {
  12852. return _target->GetResourceRef ();
  12853. }
  12854. DllExport Urho3D::ResourceRefList
  12855. XmlElement_GetResourceRefList (Urho3D::XMLElement *_target)
  12856. {
  12857. return _target->GetResourceRefList ();
  12858. }
  12859. DllExport Interop::Vector2
  12860. XmlElement_GetVector2 (Urho3D::XMLElement *_target, const char * name)
  12861. {
  12862. return *((Interop::Vector2 *) &(_target->GetVector2 (Urho3D::String(name))));
  12863. }
  12864. DllExport Interop::Vector3
  12865. XmlElement_GetVector3 (Urho3D::XMLElement *_target, const char * name)
  12866. {
  12867. return *((Interop::Vector3 *) &(_target->GetVector3 (Urho3D::String(name))));
  12868. }
  12869. DllExport Interop::Vector4
  12870. XmlElement_GetVector4 (Urho3D::XMLElement *_target, const char * name)
  12871. {
  12872. return *((Interop::Vector4 *) &(_target->GetVector4 (Urho3D::String(name))));
  12873. }
  12874. DllExport Interop::Vector4
  12875. XmlElement_GetVector (Urho3D::XMLElement *_target, const char * name)
  12876. {
  12877. return *((Interop::Vector4 *) &(_target->GetVector (Urho3D::String(name))));
  12878. }
  12879. DllExport Urho3D::Variant
  12880. XmlElement_GetVectorVariant (Urho3D::XMLElement *_target, const char * name)
  12881. {
  12882. return _target->GetVectorVariant (Urho3D::String(name));
  12883. }
  12884. DllExport Urho3D::Matrix3
  12885. XmlElement_GetMatrix3 (Urho3D::XMLElement *_target, const char * name)
  12886. {
  12887. return _target->GetMatrix3 (Urho3D::String(name));
  12888. }
  12889. DllExport Interop::Matrix3x4
  12890. XmlElement_GetMatrix3x4 (Urho3D::XMLElement *_target, const char * name)
  12891. {
  12892. return *((Interop::Matrix3x4 *) &(_target->GetMatrix3x4 (Urho3D::String(name))));
  12893. }
  12894. DllExport Interop::Matrix4
  12895. XmlElement_GetMatrix4 (Urho3D::XMLElement *_target, const char * name)
  12896. {
  12897. return *((Interop::Matrix4 *) &(_target->GetMatrix4 (Urho3D::String(name))));
  12898. }
  12899. DllExport Urho3D::XMLFile *
  12900. XmlElement_GetFile (Urho3D::XMLElement *_target)
  12901. {
  12902. return _target->GetFile ();
  12903. }
  12904. DllExport const class Urho3D::XPathResultSet *
  12905. XmlElement_GetXPathResultSet (Urho3D::XMLElement *_target)
  12906. {
  12907. return _target->GetXPathResultSet ();
  12908. }
  12909. DllExport unsigned int
  12910. XmlElement_GetXPathResultIndex (Urho3D::XMLElement *_target)
  12911. {
  12912. return _target->GetXPathResultIndex ();
  12913. }
  12914. DllExport Urho3D::XMLElement *
  12915. XmlElement_NextResult (Urho3D::XMLElement *_target)
  12916. {
  12917. return new Urho3D::XMLElement (_target->NextResult ());
  12918. }
  12919. DllExport int
  12920. XmlFile_GetType (Urho3D::XMLFile *_target)
  12921. {
  12922. return (_target->GetType ()).Value ();
  12923. }
  12924. DllExport const char *
  12925. XmlFile_GetTypeName (Urho3D::XMLFile *_target)
  12926. {
  12927. return stringdup((_target->GetTypeName ()).CString ());
  12928. }
  12929. DllExport int
  12930. XmlFile_GetTypeStatic ()
  12931. {
  12932. return (XMLFile::GetTypeStatic ()).Value ();
  12933. }
  12934. DllExport const char *
  12935. XmlFile_GetTypeNameStatic ()
  12936. {
  12937. return stringdup((XMLFile::GetTypeNameStatic ()).CString ());
  12938. }
  12939. DllExport void *
  12940. XmlFile_XMLFile (Urho3D::Context * context)
  12941. {
  12942. return WeakPtr<XMLFile>(new XMLFile(context));
  12943. }
  12944. DllExport void
  12945. XmlFile_RegisterObject (Urho3D::Context * context)
  12946. {
  12947. XMLFile::RegisterObject (context);
  12948. }
  12949. DllExport int
  12950. XmlFile_BeginLoad_File (Urho3D::XMLFile *_target, File * source)
  12951. {
  12952. return _target->BeginLoad (*source);
  12953. }
  12954. DllExport int
  12955. XmlFile_BeginLoad_MemoryBuffer (Urho3D::XMLFile *_target, MemoryBuffer * source)
  12956. {
  12957. return _target->BeginLoad (*source);
  12958. }
  12959. DllExport int
  12960. XmlFile_Save_File (Urho3D::XMLFile *_target, File * dest)
  12961. {
  12962. return _target->Save (*dest);
  12963. }
  12964. DllExport int
  12965. XmlFile_Save_MemoryBuffer (Urho3D::XMLFile *_target, MemoryBuffer * dest)
  12966. {
  12967. return _target->Save (*dest);
  12968. }
  12969. DllExport int
  12970. XmlFile_Save0_File (Urho3D::XMLFile *_target, File * dest, const char * indentation)
  12971. {
  12972. return _target->Save (*dest, Urho3D::String(indentation));
  12973. }
  12974. DllExport int
  12975. XmlFile_Save0_MemoryBuffer (Urho3D::XMLFile *_target, MemoryBuffer * dest, const char * indentation)
  12976. {
  12977. return _target->Save (*dest, Urho3D::String(indentation));
  12978. }
  12979. DllExport int
  12980. XmlFile_FromString (Urho3D::XMLFile *_target, const char * source)
  12981. {
  12982. return _target->FromString (Urho3D::String(source));
  12983. }
  12984. DllExport Urho3D::XMLElement *
  12985. XmlFile_CreateRoot (Urho3D::XMLFile *_target, const char * name)
  12986. {
  12987. return new Urho3D::XMLElement (_target->CreateRoot (Urho3D::String(name)));
  12988. }
  12989. DllExport Urho3D::XMLElement *
  12990. XmlFile_GetOrCreateRoot (Urho3D::XMLFile *_target, const char * name)
  12991. {
  12992. return new Urho3D::XMLElement (_target->GetOrCreateRoot (Urho3D::String(name)));
  12993. }
  12994. DllExport Urho3D::XMLElement *
  12995. XmlFile_GetRoot (Urho3D::XMLFile *_target, const char * name)
  12996. {
  12997. return new Urho3D::XMLElement (_target->GetRoot (Urho3D::String(name)));
  12998. }
  12999. DllExport const char *
  13000. XmlFile_ToString (Urho3D::XMLFile *_target, const char * indentation)
  13001. {
  13002. return stringdup((_target->ToString (Urho3D::String(indentation))).CString ());
  13003. }
  13004. DllExport void
  13005. XmlFile_Patch (Urho3D::XMLFile *_target, Urho3D::XMLFile * patchFile)
  13006. {
  13007. _target->Patch (patchFile);
  13008. }
  13009. DllExport void
  13010. XmlFile_Patch1 (Urho3D::XMLFile *_target, Urho3D::XMLElement patchElement)
  13011. {
  13012. _target->Patch (patchElement);
  13013. }
  13014. DllExport int
  13015. ShaderPrecache_GetType (Urho3D::ShaderPrecache *_target)
  13016. {
  13017. return (_target->GetType ()).Value ();
  13018. }
  13019. DllExport const char *
  13020. ShaderPrecache_GetTypeName (Urho3D::ShaderPrecache *_target)
  13021. {
  13022. return stringdup((_target->GetTypeName ()).CString ());
  13023. }
  13024. DllExport int
  13025. ShaderPrecache_GetTypeStatic ()
  13026. {
  13027. return (ShaderPrecache::GetTypeStatic ()).Value ();
  13028. }
  13029. DllExport const char *
  13030. ShaderPrecache_GetTypeNameStatic ()
  13031. {
  13032. return stringdup((ShaderPrecache::GetTypeNameStatic ()).CString ());
  13033. }
  13034. DllExport void *
  13035. ShaderPrecache_ShaderPrecache (Urho3D::Context * context, const char * fileName)
  13036. {
  13037. return WeakPtr<ShaderPrecache>(new ShaderPrecache(context, Urho3D::String(fileName)));
  13038. }
  13039. DllExport void
  13040. ShaderPrecache_StoreShaders (Urho3D::ShaderPrecache *_target, Urho3D::ShaderVariation * vs, Urho3D::ShaderVariation * ps)
  13041. {
  13042. _target->StoreShaders (vs, ps);
  13043. }
  13044. DllExport void
  13045. ShaderPrecache_LoadShaders_File (Urho3D::Graphics * graphics, File * source)
  13046. {
  13047. ShaderPrecache::LoadShaders (graphics, *source);
  13048. }
  13049. DllExport void
  13050. ShaderPrecache_LoadShaders_MemoryBuffer (Urho3D::Graphics * graphics, MemoryBuffer * source)
  13051. {
  13052. ShaderPrecache::LoadShaders (graphics, *source);
  13053. }
  13054. DllExport int
  13055. Skybox_GetType (Urho3D::Skybox *_target)
  13056. {
  13057. return (_target->GetType ()).Value ();
  13058. }
  13059. DllExport const char *
  13060. Skybox_GetTypeName (Urho3D::Skybox *_target)
  13061. {
  13062. return stringdup((_target->GetTypeName ()).CString ());
  13063. }
  13064. DllExport int
  13065. Skybox_GetTypeStatic ()
  13066. {
  13067. return (Skybox::GetTypeStatic ()).Value ();
  13068. }
  13069. DllExport const char *
  13070. Skybox_GetTypeNameStatic ()
  13071. {
  13072. return stringdup((Skybox::GetTypeNameStatic ()).CString ());
  13073. }
  13074. DllExport void *
  13075. Skybox_Skybox (Urho3D::Context * context)
  13076. {
  13077. return WeakPtr<Skybox>(new Skybox(context));
  13078. }
  13079. DllExport void
  13080. Skybox_RegisterObject (Urho3D::Context * context)
  13081. {
  13082. Skybox::RegisterObject (context);
  13083. }
  13084. DllExport int
  13085. StaticModelGroup_GetType (Urho3D::StaticModelGroup *_target)
  13086. {
  13087. return (_target->GetType ()).Value ();
  13088. }
  13089. DllExport const char *
  13090. StaticModelGroup_GetTypeName (Urho3D::StaticModelGroup *_target)
  13091. {
  13092. return stringdup((_target->GetTypeName ()).CString ());
  13093. }
  13094. DllExport int
  13095. StaticModelGroup_GetTypeStatic ()
  13096. {
  13097. return (StaticModelGroup::GetTypeStatic ()).Value ();
  13098. }
  13099. DllExport const char *
  13100. StaticModelGroup_GetTypeNameStatic ()
  13101. {
  13102. return stringdup((StaticModelGroup::GetTypeNameStatic ()).CString ());
  13103. }
  13104. DllExport void *
  13105. StaticModelGroup_StaticModelGroup (Urho3D::Context * context)
  13106. {
  13107. return WeakPtr<StaticModelGroup>(new StaticModelGroup(context));
  13108. }
  13109. DllExport void
  13110. StaticModelGroup_RegisterObject (Urho3D::Context * context)
  13111. {
  13112. StaticModelGroup::RegisterObject (context);
  13113. }
  13114. DllExport void
  13115. StaticModelGroup_ApplyAttributes (Urho3D::StaticModelGroup *_target)
  13116. {
  13117. _target->ApplyAttributes ();
  13118. }
  13119. DllExport unsigned int
  13120. StaticModelGroup_GetNumOccluderTriangles (Urho3D::StaticModelGroup *_target)
  13121. {
  13122. return _target->GetNumOccluderTriangles ();
  13123. }
  13124. DllExport int
  13125. StaticModelGroup_DrawOcclusion (Urho3D::StaticModelGroup *_target, Urho3D::OcclusionBuffer * buffer)
  13126. {
  13127. return _target->DrawOcclusion (buffer);
  13128. }
  13129. DllExport void
  13130. StaticModelGroup_AddInstanceNode (Urho3D::StaticModelGroup *_target, Urho3D::Node * node)
  13131. {
  13132. _target->AddInstanceNode (node);
  13133. }
  13134. DllExport void
  13135. StaticModelGroup_RemoveInstanceNode (Urho3D::StaticModelGroup *_target, Urho3D::Node * node)
  13136. {
  13137. _target->RemoveInstanceNode (node);
  13138. }
  13139. DllExport void
  13140. StaticModelGroup_RemoveAllInstanceNodes (Urho3D::StaticModelGroup *_target)
  13141. {
  13142. _target->RemoveAllInstanceNodes ();
  13143. }
  13144. DllExport unsigned int
  13145. StaticModelGroup_GetNumInstanceNodes (Urho3D::StaticModelGroup *_target)
  13146. {
  13147. return _target->GetNumInstanceNodes ();
  13148. }
  13149. DllExport Urho3D::Node *
  13150. StaticModelGroup_GetInstanceNode (Urho3D::StaticModelGroup *_target, unsigned int index)
  13151. {
  13152. return _target->GetInstanceNode (index);
  13153. }
  13154. DllExport void *
  13155. Pass_Pass (const char * passName)
  13156. {
  13157. return WeakPtr<Pass>(new Pass(Urho3D::String(passName)));
  13158. }
  13159. DllExport void
  13160. Pass_SetBlendMode (Urho3D::Pass *_target, enum Urho3D::BlendMode mode)
  13161. {
  13162. _target->SetBlendMode (mode);
  13163. }
  13164. DllExport void
  13165. Pass_SetCullMode (Urho3D::Pass *_target, enum Urho3D::CullMode mode)
  13166. {
  13167. _target->SetCullMode (mode);
  13168. }
  13169. DllExport void
  13170. Pass_SetDepthTestMode (Urho3D::Pass *_target, enum Urho3D::CompareMode mode)
  13171. {
  13172. _target->SetDepthTestMode (mode);
  13173. }
  13174. DllExport void
  13175. Pass_SetLightingMode (Urho3D::Pass *_target, enum Urho3D::PassLightingMode mode)
  13176. {
  13177. _target->SetLightingMode (mode);
  13178. }
  13179. DllExport void
  13180. Pass_SetDepthWrite (Urho3D::Pass *_target, bool enable)
  13181. {
  13182. _target->SetDepthWrite (enable);
  13183. }
  13184. DllExport void
  13185. Pass_SetAlphaToCoverage (Urho3D::Pass *_target, bool enable)
  13186. {
  13187. _target->SetAlphaToCoverage (enable);
  13188. }
  13189. DllExport void
  13190. Pass_SetIsDesktop (Urho3D::Pass *_target, bool enable)
  13191. {
  13192. _target->SetIsDesktop (enable);
  13193. }
  13194. DllExport void
  13195. Pass_SetVertexShader (Urho3D::Pass *_target, const char * name)
  13196. {
  13197. _target->SetVertexShader (Urho3D::String(name));
  13198. }
  13199. DllExport void
  13200. Pass_SetPixelShader (Urho3D::Pass *_target, const char * name)
  13201. {
  13202. _target->SetPixelShader (Urho3D::String(name));
  13203. }
  13204. DllExport void
  13205. Pass_SetVertexShaderDefines (Urho3D::Pass *_target, const char * defines)
  13206. {
  13207. _target->SetVertexShaderDefines (Urho3D::String(defines));
  13208. }
  13209. DllExport void
  13210. Pass_SetPixelShaderDefines (Urho3D::Pass *_target, const char * defines)
  13211. {
  13212. _target->SetPixelShaderDefines (Urho3D::String(defines));
  13213. }
  13214. DllExport void
  13215. Pass_SetVertexShaderDefineExcludes (Urho3D::Pass *_target, const char * excludes)
  13216. {
  13217. _target->SetVertexShaderDefineExcludes (Urho3D::String(excludes));
  13218. }
  13219. DllExport void
  13220. Pass_SetPixelShaderDefineExcludes (Urho3D::Pass *_target, const char * excludes)
  13221. {
  13222. _target->SetPixelShaderDefineExcludes (Urho3D::String(excludes));
  13223. }
  13224. DllExport void
  13225. Pass_ReleaseShaders (Urho3D::Pass *_target)
  13226. {
  13227. _target->ReleaseShaders ();
  13228. }
  13229. DllExport void
  13230. Pass_MarkShadersLoaded (Urho3D::Pass *_target, unsigned int frameNumber)
  13231. {
  13232. _target->MarkShadersLoaded (frameNumber);
  13233. }
  13234. DllExport const char *
  13235. Pass_GetName (Urho3D::Pass *_target)
  13236. {
  13237. return stringdup((_target->GetName ()).CString ());
  13238. }
  13239. DllExport unsigned int
  13240. Pass_GetIndex (Urho3D::Pass *_target)
  13241. {
  13242. return _target->GetIndex ();
  13243. }
  13244. DllExport enum Urho3D::BlendMode
  13245. Pass_GetBlendMode (Urho3D::Pass *_target)
  13246. {
  13247. return _target->GetBlendMode ();
  13248. }
  13249. DllExport enum Urho3D::CullMode
  13250. Pass_GetCullMode (Urho3D::Pass *_target)
  13251. {
  13252. return _target->GetCullMode ();
  13253. }
  13254. DllExport enum Urho3D::CompareMode
  13255. Pass_GetDepthTestMode (Urho3D::Pass *_target)
  13256. {
  13257. return _target->GetDepthTestMode ();
  13258. }
  13259. DllExport enum Urho3D::PassLightingMode
  13260. Pass_GetLightingMode (Urho3D::Pass *_target)
  13261. {
  13262. return _target->GetLightingMode ();
  13263. }
  13264. DllExport unsigned int
  13265. Pass_GetShadersLoadedFrameNumber (Urho3D::Pass *_target)
  13266. {
  13267. return _target->GetShadersLoadedFrameNumber ();
  13268. }
  13269. DllExport int
  13270. Pass_GetDepthWrite (Urho3D::Pass *_target)
  13271. {
  13272. return _target->GetDepthWrite ();
  13273. }
  13274. DllExport int
  13275. Pass_GetAlphaToCoverage (Urho3D::Pass *_target)
  13276. {
  13277. return _target->GetAlphaToCoverage ();
  13278. }
  13279. DllExport int
  13280. Pass_IsDesktop (Urho3D::Pass *_target)
  13281. {
  13282. return _target->IsDesktop ();
  13283. }
  13284. DllExport const char *
  13285. Pass_GetVertexShader (Urho3D::Pass *_target)
  13286. {
  13287. return stringdup((_target->GetVertexShader ()).CString ());
  13288. }
  13289. DllExport const char *
  13290. Pass_GetPixelShader (Urho3D::Pass *_target)
  13291. {
  13292. return stringdup((_target->GetPixelShader ()).CString ());
  13293. }
  13294. DllExport const char *
  13295. Pass_GetVertexShaderDefines (Urho3D::Pass *_target)
  13296. {
  13297. return stringdup((_target->GetVertexShaderDefines ()).CString ());
  13298. }
  13299. DllExport const char *
  13300. Pass_GetPixelShaderDefines (Urho3D::Pass *_target)
  13301. {
  13302. return stringdup((_target->GetPixelShaderDefines ()).CString ());
  13303. }
  13304. DllExport const char *
  13305. Pass_GetVertexShaderDefineExcludes (Urho3D::Pass *_target)
  13306. {
  13307. return stringdup((_target->GetVertexShaderDefineExcludes ()).CString ());
  13308. }
  13309. DllExport const char *
  13310. Pass_GetPixelShaderDefineExcludes (Urho3D::Pass *_target)
  13311. {
  13312. return stringdup((_target->GetPixelShaderDefineExcludes ()).CString ());
  13313. }
  13314. DllExport const char *
  13315. Pass_GetEffectiveVertexShaderDefines (Urho3D::Pass *_target)
  13316. {
  13317. return stringdup((_target->GetEffectiveVertexShaderDefines ()).CString ());
  13318. }
  13319. DllExport const char *
  13320. Pass_GetEffectivePixelShaderDefines (Urho3D::Pass *_target)
  13321. {
  13322. return stringdup((_target->GetEffectivePixelShaderDefines ()).CString ());
  13323. }
  13324. DllExport int
  13325. Technique_GetType (Urho3D::Technique *_target)
  13326. {
  13327. return (_target->GetType ()).Value ();
  13328. }
  13329. DllExport const char *
  13330. Technique_GetTypeName (Urho3D::Technique *_target)
  13331. {
  13332. return stringdup((_target->GetTypeName ()).CString ());
  13333. }
  13334. DllExport int
  13335. Technique_GetTypeStatic ()
  13336. {
  13337. return (Technique::GetTypeStatic ()).Value ();
  13338. }
  13339. DllExport const char *
  13340. Technique_GetTypeNameStatic ()
  13341. {
  13342. return stringdup((Technique::GetTypeNameStatic ()).CString ());
  13343. }
  13344. DllExport void *
  13345. Technique_Technique (Urho3D::Context * context)
  13346. {
  13347. return WeakPtr<Technique>(new Technique(context));
  13348. }
  13349. DllExport void
  13350. Technique_RegisterObject (Urho3D::Context * context)
  13351. {
  13352. Technique::RegisterObject (context);
  13353. }
  13354. DllExport int
  13355. Technique_BeginLoad_File (Urho3D::Technique *_target, File * source)
  13356. {
  13357. return _target->BeginLoad (*source);
  13358. }
  13359. DllExport int
  13360. Technique_BeginLoad_MemoryBuffer (Urho3D::Technique *_target, MemoryBuffer * source)
  13361. {
  13362. return _target->BeginLoad (*source);
  13363. }
  13364. DllExport void
  13365. Technique_SetIsDesktop (Urho3D::Technique *_target, bool enable)
  13366. {
  13367. _target->SetIsDesktop (enable);
  13368. }
  13369. DllExport Urho3D::Pass *
  13370. Technique_CreatePass (Urho3D::Technique *_target, const char * passName)
  13371. {
  13372. return _target->CreatePass (Urho3D::String(passName));
  13373. }
  13374. DllExport void
  13375. Technique_RemovePass (Urho3D::Technique *_target, const char * passName)
  13376. {
  13377. _target->RemovePass (Urho3D::String(passName));
  13378. }
  13379. DllExport void
  13380. Technique_ReleaseShaders (Urho3D::Technique *_target)
  13381. {
  13382. _target->ReleaseShaders ();
  13383. }
  13384. DllExport Urho3D::Technique *
  13385. Technique_Clone (Urho3D::Technique *_target, const char * cloneName)
  13386. {
  13387. auto copy = _target->Clone (Urho3D::String(cloneName));
  13388. auto plain = copy.Get();
  13389. copy.Detach();
  13390. delete copy;
  13391. return plain;
  13392. }
  13393. DllExport int
  13394. Technique_IsDesktop (Urho3D::Technique *_target)
  13395. {
  13396. return _target->IsDesktop ();
  13397. }
  13398. DllExport int
  13399. Technique_IsSupported (Urho3D::Technique *_target)
  13400. {
  13401. return _target->IsSupported ();
  13402. }
  13403. DllExport int
  13404. Technique_HasPass (Urho3D::Technique *_target, unsigned int passIndex)
  13405. {
  13406. return _target->HasPass (passIndex);
  13407. }
  13408. DllExport int
  13409. Technique_HasPass0 (Urho3D::Technique *_target, const char * passName)
  13410. {
  13411. return _target->HasPass (Urho3D::String(passName));
  13412. }
  13413. DllExport Urho3D::Pass *
  13414. Technique_GetPass (Urho3D::Technique *_target, unsigned int passIndex)
  13415. {
  13416. return _target->GetPass (passIndex);
  13417. }
  13418. DllExport Urho3D::Pass *
  13419. Technique_GetPass1 (Urho3D::Technique *_target, const char * passName)
  13420. {
  13421. return _target->GetPass (Urho3D::String(passName));
  13422. }
  13423. DllExport Urho3D::Pass *
  13424. Technique_GetSupportedPass (Urho3D::Technique *_target, unsigned int passIndex)
  13425. {
  13426. return _target->GetSupportedPass (passIndex);
  13427. }
  13428. DllExport Urho3D::Pass *
  13429. Technique_GetSupportedPass2 (Urho3D::Technique *_target, const char * passName)
  13430. {
  13431. return _target->GetSupportedPass (Urho3D::String(passName));
  13432. }
  13433. DllExport unsigned int
  13434. Technique_GetNumPasses (Urho3D::Technique *_target)
  13435. {
  13436. return _target->GetNumPasses ();
  13437. }
  13438. DllExport Urho3D::Technique *
  13439. Technique_CloneWithDefines (Urho3D::Technique *_target, const char * vsDefines, const char * psDefines)
  13440. {
  13441. auto copy = _target->CloneWithDefines (Urho3D::String(vsDefines), Urho3D::String(psDefines));
  13442. auto plain = copy.Get();
  13443. copy.Detach();
  13444. delete copy;
  13445. return plain;
  13446. }
  13447. DllExport unsigned int
  13448. Technique_GetPassIndex (const char * passName)
  13449. {
  13450. return Technique::GetPassIndex (Urho3D::String(passName));
  13451. }
  13452. DllExport int
  13453. Terrain_GetType (Urho3D::Terrain *_target)
  13454. {
  13455. return (_target->GetType ()).Value ();
  13456. }
  13457. DllExport const char *
  13458. Terrain_GetTypeName (Urho3D::Terrain *_target)
  13459. {
  13460. return stringdup((_target->GetTypeName ()).CString ());
  13461. }
  13462. DllExport int
  13463. Terrain_GetTypeStatic ()
  13464. {
  13465. return (Terrain::GetTypeStatic ()).Value ();
  13466. }
  13467. DllExport const char *
  13468. Terrain_GetTypeNameStatic ()
  13469. {
  13470. return stringdup((Terrain::GetTypeNameStatic ()).CString ());
  13471. }
  13472. DllExport void *
  13473. Terrain_Terrain (Urho3D::Context * context)
  13474. {
  13475. return WeakPtr<Terrain>(new Terrain(context));
  13476. }
  13477. DllExport void
  13478. Terrain_RegisterObject (Urho3D::Context * context)
  13479. {
  13480. Terrain::RegisterObject (context);
  13481. }
  13482. DllExport void
  13483. Terrain_ApplyAttributes (Urho3D::Terrain *_target)
  13484. {
  13485. _target->ApplyAttributes ();
  13486. }
  13487. DllExport void
  13488. Terrain_OnSetEnabled (Urho3D::Terrain *_target)
  13489. {
  13490. _target->OnSetEnabled ();
  13491. }
  13492. DllExport void
  13493. Terrain_SetPatchSize (Urho3D::Terrain *_target, int size)
  13494. {
  13495. _target->SetPatchSize (size);
  13496. }
  13497. DllExport void
  13498. Terrain_SetSpacing (Urho3D::Terrain *_target, const class Urho3D::Vector3 & spacing)
  13499. {
  13500. _target->SetSpacing (spacing);
  13501. }
  13502. DllExport void
  13503. Terrain_SetMaxLodLevels (Urho3D::Terrain *_target, unsigned int levels)
  13504. {
  13505. _target->SetMaxLodLevels (levels);
  13506. }
  13507. DllExport void
  13508. Terrain_SetOcclusionLodLevel (Urho3D::Terrain *_target, unsigned int level)
  13509. {
  13510. _target->SetOcclusionLodLevel (level);
  13511. }
  13512. DllExport void
  13513. Terrain_SetSmoothing (Urho3D::Terrain *_target, bool enable)
  13514. {
  13515. _target->SetSmoothing (enable);
  13516. }
  13517. DllExport int
  13518. Terrain_SetHeightMap (Urho3D::Terrain *_target, Urho3D::Image * image)
  13519. {
  13520. return _target->SetHeightMap (image);
  13521. }
  13522. DllExport void
  13523. Terrain_SetMaterial (Urho3D::Terrain *_target, Urho3D::Material * material)
  13524. {
  13525. _target->SetMaterial (material);
  13526. }
  13527. DllExport void
  13528. Terrain_SetNorthNeighbor (Urho3D::Terrain *_target, Urho3D::Terrain * north)
  13529. {
  13530. _target->SetNorthNeighbor (north);
  13531. }
  13532. DllExport void
  13533. Terrain_SetSouthNeighbor (Urho3D::Terrain *_target, Urho3D::Terrain * south)
  13534. {
  13535. _target->SetSouthNeighbor (south);
  13536. }
  13537. DllExport void
  13538. Terrain_SetWestNeighbor (Urho3D::Terrain *_target, Urho3D::Terrain * west)
  13539. {
  13540. _target->SetWestNeighbor (west);
  13541. }
  13542. DllExport void
  13543. Terrain_SetEastNeighbor (Urho3D::Terrain *_target, Urho3D::Terrain * east)
  13544. {
  13545. _target->SetEastNeighbor (east);
  13546. }
  13547. DllExport void
  13548. Terrain_SetNeighbors (Urho3D::Terrain *_target, Urho3D::Terrain * north, Urho3D::Terrain * south, Urho3D::Terrain * west, Urho3D::Terrain * east)
  13549. {
  13550. _target->SetNeighbors (north, south, west, east);
  13551. }
  13552. DllExport void
  13553. Terrain_SetDrawDistance (Urho3D::Terrain *_target, float distance)
  13554. {
  13555. _target->SetDrawDistance (distance);
  13556. }
  13557. DllExport void
  13558. Terrain_SetShadowDistance (Urho3D::Terrain *_target, float distance)
  13559. {
  13560. _target->SetShadowDistance (distance);
  13561. }
  13562. DllExport void
  13563. Terrain_SetLodBias (Urho3D::Terrain *_target, float bias)
  13564. {
  13565. _target->SetLodBias (bias);
  13566. }
  13567. DllExport void
  13568. Terrain_SetViewMask (Urho3D::Terrain *_target, unsigned int mask)
  13569. {
  13570. _target->SetViewMask (mask);
  13571. }
  13572. DllExport void
  13573. Terrain_SetLightMask (Urho3D::Terrain *_target, unsigned int mask)
  13574. {
  13575. _target->SetLightMask (mask);
  13576. }
  13577. DllExport void
  13578. Terrain_SetShadowMask (Urho3D::Terrain *_target, unsigned int mask)
  13579. {
  13580. _target->SetShadowMask (mask);
  13581. }
  13582. DllExport void
  13583. Terrain_SetZoneMask (Urho3D::Terrain *_target, unsigned int mask)
  13584. {
  13585. _target->SetZoneMask (mask);
  13586. }
  13587. DllExport void
  13588. Terrain_SetMaxLights (Urho3D::Terrain *_target, unsigned int num)
  13589. {
  13590. _target->SetMaxLights (num);
  13591. }
  13592. DllExport void
  13593. Terrain_SetCastShadows (Urho3D::Terrain *_target, bool enable)
  13594. {
  13595. _target->SetCastShadows (enable);
  13596. }
  13597. DllExport void
  13598. Terrain_SetOccluder (Urho3D::Terrain *_target, bool enable)
  13599. {
  13600. _target->SetOccluder (enable);
  13601. }
  13602. DllExport void
  13603. Terrain_SetOccludee (Urho3D::Terrain *_target, bool enable)
  13604. {
  13605. _target->SetOccludee (enable);
  13606. }
  13607. DllExport void
  13608. Terrain_ApplyHeightMap (Urho3D::Terrain *_target)
  13609. {
  13610. _target->ApplyHeightMap ();
  13611. }
  13612. DllExport int
  13613. Terrain_GetPatchSize (Urho3D::Terrain *_target)
  13614. {
  13615. return _target->GetPatchSize ();
  13616. }
  13617. DllExport Interop::Vector3
  13618. Terrain_GetSpacing (Urho3D::Terrain *_target)
  13619. {
  13620. return *((Interop::Vector3 *) &(_target->GetSpacing ()));
  13621. }
  13622. DllExport Interop::IntVector2
  13623. Terrain_GetNumVertices (Urho3D::Terrain *_target)
  13624. {
  13625. return *((Interop::IntVector2 *) &(_target->GetNumVertices ()));
  13626. }
  13627. DllExport Interop::IntVector2
  13628. Terrain_GetNumPatches (Urho3D::Terrain *_target)
  13629. {
  13630. return *((Interop::IntVector2 *) &(_target->GetNumPatches ()));
  13631. }
  13632. DllExport unsigned int
  13633. Terrain_GetMaxLodLevels (Urho3D::Terrain *_target)
  13634. {
  13635. return _target->GetMaxLodLevels ();
  13636. }
  13637. DllExport unsigned int
  13638. Terrain_GetOcclusionLodLevel (Urho3D::Terrain *_target)
  13639. {
  13640. return _target->GetOcclusionLodLevel ();
  13641. }
  13642. DllExport int
  13643. Terrain_GetSmoothing (Urho3D::Terrain *_target)
  13644. {
  13645. return _target->GetSmoothing ();
  13646. }
  13647. DllExport Urho3D::Image *
  13648. Terrain_GetHeightMap (Urho3D::Terrain *_target)
  13649. {
  13650. return _target->GetHeightMap ();
  13651. }
  13652. DllExport Urho3D::Material *
  13653. Terrain_GetMaterial (Urho3D::Terrain *_target)
  13654. {
  13655. return _target->GetMaterial ();
  13656. }
  13657. DllExport Urho3D::TerrainPatch *
  13658. Terrain_GetPatch (Urho3D::Terrain *_target, unsigned int index)
  13659. {
  13660. return _target->GetPatch (index);
  13661. }
  13662. DllExport Urho3D::TerrainPatch *
  13663. Terrain_GetPatch0 (Urho3D::Terrain *_target, int x, int z)
  13664. {
  13665. return _target->GetPatch (x, z);
  13666. }
  13667. DllExport Urho3D::TerrainPatch *
  13668. Terrain_GetNeighborPatch (Urho3D::Terrain *_target, int x, int z)
  13669. {
  13670. return _target->GetNeighborPatch (x, z);
  13671. }
  13672. DllExport float
  13673. Terrain_GetHeight (Urho3D::Terrain *_target, const class Urho3D::Vector3 & worldPosition)
  13674. {
  13675. return _target->GetHeight (worldPosition);
  13676. }
  13677. DllExport Interop::Vector3
  13678. Terrain_GetNormal (Urho3D::Terrain *_target, const class Urho3D::Vector3 & worldPosition)
  13679. {
  13680. return *((Interop::Vector3 *) &(_target->GetNormal (worldPosition)));
  13681. }
  13682. DllExport Interop::IntVector2
  13683. Terrain_WorldToHeightMap (Urho3D::Terrain *_target, const class Urho3D::Vector3 & worldPosition)
  13684. {
  13685. return *((Interop::IntVector2 *) &(_target->WorldToHeightMap (worldPosition)));
  13686. }
  13687. DllExport Interop::Vector3
  13688. Terrain_HeightMapToWorld (Urho3D::Terrain *_target, const class Urho3D::IntVector2 & pixelPosition)
  13689. {
  13690. return *((Interop::Vector3 *) &(_target->HeightMapToWorld (pixelPosition)));
  13691. }
  13692. DllExport Urho3D::Terrain *
  13693. Terrain_GetNorthNeighbor (Urho3D::Terrain *_target)
  13694. {
  13695. return _target->GetNorthNeighbor ();
  13696. }
  13697. DllExport Urho3D::Terrain *
  13698. Terrain_GetSouthNeighbor (Urho3D::Terrain *_target)
  13699. {
  13700. return _target->GetSouthNeighbor ();
  13701. }
  13702. DllExport Urho3D::Terrain *
  13703. Terrain_GetWestNeighbor (Urho3D::Terrain *_target)
  13704. {
  13705. return _target->GetWestNeighbor ();
  13706. }
  13707. DllExport Urho3D::Terrain *
  13708. Terrain_GetEastNeighbor (Urho3D::Terrain *_target)
  13709. {
  13710. return _target->GetEastNeighbor ();
  13711. }
  13712. DllExport float
  13713. Terrain_GetDrawDistance (Urho3D::Terrain *_target)
  13714. {
  13715. return _target->GetDrawDistance ();
  13716. }
  13717. DllExport float
  13718. Terrain_GetShadowDistance (Urho3D::Terrain *_target)
  13719. {
  13720. return _target->GetShadowDistance ();
  13721. }
  13722. DllExport float
  13723. Terrain_GetLodBias (Urho3D::Terrain *_target)
  13724. {
  13725. return _target->GetLodBias ();
  13726. }
  13727. DllExport unsigned int
  13728. Terrain_GetViewMask (Urho3D::Terrain *_target)
  13729. {
  13730. return _target->GetViewMask ();
  13731. }
  13732. DllExport unsigned int
  13733. Terrain_GetLightMask (Urho3D::Terrain *_target)
  13734. {
  13735. return _target->GetLightMask ();
  13736. }
  13737. DllExport unsigned int
  13738. Terrain_GetShadowMask (Urho3D::Terrain *_target)
  13739. {
  13740. return _target->GetShadowMask ();
  13741. }
  13742. DllExport unsigned int
  13743. Terrain_GetZoneMask (Urho3D::Terrain *_target)
  13744. {
  13745. return _target->GetZoneMask ();
  13746. }
  13747. DllExport unsigned int
  13748. Terrain_GetMaxLights (Urho3D::Terrain *_target)
  13749. {
  13750. return _target->GetMaxLights ();
  13751. }
  13752. DllExport int
  13753. Terrain_IsVisible (Urho3D::Terrain *_target)
  13754. {
  13755. return _target->IsVisible ();
  13756. }
  13757. DllExport int
  13758. Terrain_GetCastShadows (Urho3D::Terrain *_target)
  13759. {
  13760. return _target->GetCastShadows ();
  13761. }
  13762. DllExport int
  13763. Terrain_IsOccluder (Urho3D::Terrain *_target)
  13764. {
  13765. return _target->IsOccluder ();
  13766. }
  13767. DllExport int
  13768. Terrain_IsOccludee (Urho3D::Terrain *_target)
  13769. {
  13770. return _target->IsOccludee ();
  13771. }
  13772. DllExport void
  13773. Terrain_CreatePatchGeometry (Urho3D::Terrain *_target, Urho3D::TerrainPatch * patch)
  13774. {
  13775. _target->CreatePatchGeometry (patch);
  13776. }
  13777. DllExport void
  13778. Terrain_UpdatePatchLod (Urho3D::Terrain *_target, Urho3D::TerrainPatch * patch)
  13779. {
  13780. _target->UpdatePatchLod (patch);
  13781. }
  13782. DllExport void
  13783. Terrain_SetPatchSizeAttr (Urho3D::Terrain *_target, int value)
  13784. {
  13785. _target->SetPatchSizeAttr (value);
  13786. }
  13787. DllExport void
  13788. Terrain_SetMaxLodLevelsAttr (Urho3D::Terrain *_target, unsigned int value)
  13789. {
  13790. _target->SetMaxLodLevelsAttr (value);
  13791. }
  13792. DllExport void
  13793. Terrain_SetOcclusionLodLevelAttr (Urho3D::Terrain *_target, unsigned int value)
  13794. {
  13795. _target->SetOcclusionLodLevelAttr (value);
  13796. }
  13797. DllExport Urho3D::ResourceRef
  13798. Terrain_GetHeightMapAttr (Urho3D::Terrain *_target)
  13799. {
  13800. return _target->GetHeightMapAttr ();
  13801. }
  13802. DllExport Urho3D::ResourceRef
  13803. Terrain_GetMaterialAttr (Urho3D::Terrain *_target)
  13804. {
  13805. return _target->GetMaterialAttr ();
  13806. }
  13807. DllExport int
  13808. TerrainPatch_GetType (Urho3D::TerrainPatch *_target)
  13809. {
  13810. return (_target->GetType ()).Value ();
  13811. }
  13812. DllExport const char *
  13813. TerrainPatch_GetTypeName (Urho3D::TerrainPatch *_target)
  13814. {
  13815. return stringdup((_target->GetTypeName ()).CString ());
  13816. }
  13817. DllExport int
  13818. TerrainPatch_GetTypeStatic ()
  13819. {
  13820. return (TerrainPatch::GetTypeStatic ()).Value ();
  13821. }
  13822. DllExport const char *
  13823. TerrainPatch_GetTypeNameStatic ()
  13824. {
  13825. return stringdup((TerrainPatch::GetTypeNameStatic ()).CString ());
  13826. }
  13827. DllExport void *
  13828. TerrainPatch_TerrainPatch (Urho3D::Context * context)
  13829. {
  13830. return WeakPtr<TerrainPatch>(new TerrainPatch(context));
  13831. }
  13832. DllExport void
  13833. TerrainPatch_RegisterObject (Urho3D::Context * context)
  13834. {
  13835. TerrainPatch::RegisterObject (context);
  13836. }
  13837. DllExport enum Urho3D::UpdateGeometryType
  13838. TerrainPatch_GetUpdateGeometryType (Urho3D::TerrainPatch *_target)
  13839. {
  13840. return _target->GetUpdateGeometryType ();
  13841. }
  13842. DllExport Urho3D::Geometry *
  13843. TerrainPatch_GetLodGeometry (Urho3D::TerrainPatch *_target, unsigned int batchIndex, unsigned int level)
  13844. {
  13845. return _target->GetLodGeometry (batchIndex, level);
  13846. }
  13847. DllExport unsigned int
  13848. TerrainPatch_GetNumOccluderTriangles (Urho3D::TerrainPatch *_target)
  13849. {
  13850. return _target->GetNumOccluderTriangles ();
  13851. }
  13852. DllExport int
  13853. TerrainPatch_DrawOcclusion (Urho3D::TerrainPatch *_target, Urho3D::OcclusionBuffer * buffer)
  13854. {
  13855. return _target->DrawOcclusion (buffer);
  13856. }
  13857. DllExport void
  13858. TerrainPatch_DrawDebugGeometry (Urho3D::TerrainPatch *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  13859. {
  13860. _target->DrawDebugGeometry (debug, depthTest);
  13861. }
  13862. DllExport void
  13863. TerrainPatch_SetOwner (Urho3D::TerrainPatch *_target, Urho3D::Terrain * terrain)
  13864. {
  13865. _target->SetOwner (terrain);
  13866. }
  13867. DllExport void
  13868. TerrainPatch_SetNeighbors (Urho3D::TerrainPatch *_target, Urho3D::TerrainPatch * north, Urho3D::TerrainPatch * south, Urho3D::TerrainPatch * west, Urho3D::TerrainPatch * east)
  13869. {
  13870. _target->SetNeighbors (north, south, west, east);
  13871. }
  13872. DllExport void
  13873. TerrainPatch_SetMaterial (Urho3D::TerrainPatch *_target, Urho3D::Material * material)
  13874. {
  13875. _target->SetMaterial (material);
  13876. }
  13877. DllExport void
  13878. TerrainPatch_SetBoundingBox (Urho3D::TerrainPatch *_target, const class Urho3D::BoundingBox & box)
  13879. {
  13880. _target->SetBoundingBox (box);
  13881. }
  13882. DllExport void
  13883. TerrainPatch_SetCoordinates (Urho3D::TerrainPatch *_target, const class Urho3D::IntVector2 & coordinates)
  13884. {
  13885. _target->SetCoordinates (coordinates);
  13886. }
  13887. DllExport void
  13888. TerrainPatch_ResetLod (Urho3D::TerrainPatch *_target)
  13889. {
  13890. _target->ResetLod ();
  13891. }
  13892. DllExport Urho3D::Geometry *
  13893. TerrainPatch_GetGeometry (Urho3D::TerrainPatch *_target)
  13894. {
  13895. return _target->GetGeometry ();
  13896. }
  13897. DllExport Urho3D::Geometry *
  13898. TerrainPatch_GetMaxLodGeometry (Urho3D::TerrainPatch *_target)
  13899. {
  13900. return _target->GetMaxLodGeometry ();
  13901. }
  13902. DllExport Urho3D::Geometry *
  13903. TerrainPatch_GetOcclusionGeometry (Urho3D::TerrainPatch *_target)
  13904. {
  13905. return _target->GetOcclusionGeometry ();
  13906. }
  13907. DllExport Urho3D::VertexBuffer *
  13908. TerrainPatch_GetVertexBuffer (Urho3D::TerrainPatch *_target)
  13909. {
  13910. return _target->GetVertexBuffer ();
  13911. }
  13912. DllExport Urho3D::Terrain *
  13913. TerrainPatch_GetOwner (Urho3D::TerrainPatch *_target)
  13914. {
  13915. return _target->GetOwner ();
  13916. }
  13917. DllExport Urho3D::TerrainPatch *
  13918. TerrainPatch_GetNorthPatch (Urho3D::TerrainPatch *_target)
  13919. {
  13920. return _target->GetNorthPatch ();
  13921. }
  13922. DllExport Urho3D::TerrainPatch *
  13923. TerrainPatch_GetSouthPatch (Urho3D::TerrainPatch *_target)
  13924. {
  13925. return _target->GetSouthPatch ();
  13926. }
  13927. DllExport Urho3D::TerrainPatch *
  13928. TerrainPatch_GetWestPatch (Urho3D::TerrainPatch *_target)
  13929. {
  13930. return _target->GetWestPatch ();
  13931. }
  13932. DllExport Urho3D::TerrainPatch *
  13933. TerrainPatch_GetEastPatch (Urho3D::TerrainPatch *_target)
  13934. {
  13935. return _target->GetEastPatch ();
  13936. }
  13937. DllExport Interop::IntVector2
  13938. TerrainPatch_GetCoordinates (Urho3D::TerrainPatch *_target)
  13939. {
  13940. return *((Interop::IntVector2 *) &(_target->GetCoordinates ()));
  13941. }
  13942. DllExport unsigned int
  13943. TerrainPatch_GetLodLevel (Urho3D::TerrainPatch *_target)
  13944. {
  13945. return _target->GetLodLevel ();
  13946. }
  13947. DllExport int
  13948. Texture2DArray_GetType (Urho3D::Texture2DArray *_target)
  13949. {
  13950. return (_target->GetType ()).Value ();
  13951. }
  13952. DllExport const char *
  13953. Texture2DArray_GetTypeName (Urho3D::Texture2DArray *_target)
  13954. {
  13955. return stringdup((_target->GetTypeName ()).CString ());
  13956. }
  13957. DllExport int
  13958. Texture2DArray_GetTypeStatic ()
  13959. {
  13960. return (Texture2DArray::GetTypeStatic ()).Value ();
  13961. }
  13962. DllExport const char *
  13963. Texture2DArray_GetTypeNameStatic ()
  13964. {
  13965. return stringdup((Texture2DArray::GetTypeNameStatic ()).CString ());
  13966. }
  13967. DllExport void *
  13968. Texture2DArray_Texture2DArray (Urho3D::Context * context)
  13969. {
  13970. return WeakPtr<Texture2DArray>(new Texture2DArray(context));
  13971. }
  13972. DllExport void
  13973. Texture2DArray_RegisterObject (Urho3D::Context * context)
  13974. {
  13975. Texture2DArray::RegisterObject (context);
  13976. }
  13977. DllExport int
  13978. Texture2DArray_BeginLoad_File (Urho3D::Texture2DArray *_target, File * source)
  13979. {
  13980. return _target->BeginLoad (*source);
  13981. }
  13982. DllExport int
  13983. Texture2DArray_BeginLoad_MemoryBuffer (Urho3D::Texture2DArray *_target, MemoryBuffer * source)
  13984. {
  13985. return _target->BeginLoad (*source);
  13986. }
  13987. DllExport int
  13988. Texture2DArray_EndLoad (Urho3D::Texture2DArray *_target)
  13989. {
  13990. return _target->EndLoad ();
  13991. }
  13992. DllExport void
  13993. Texture2DArray_OnDeviceLost (Urho3D::Texture2DArray *_target)
  13994. {
  13995. _target->OnDeviceLost ();
  13996. }
  13997. DllExport void
  13998. Texture2DArray_OnDeviceReset (Urho3D::Texture2DArray *_target)
  13999. {
  14000. _target->OnDeviceReset ();
  14001. }
  14002. DllExport void
  14003. Texture2DArray_Release (Urho3D::Texture2DArray *_target)
  14004. {
  14005. _target->Release ();
  14006. }
  14007. DllExport void
  14008. Texture2DArray_SetLayers (Urho3D::Texture2DArray *_target, unsigned int layers)
  14009. {
  14010. _target->SetLayers (layers);
  14011. }
  14012. DllExport int
  14013. Texture2DArray_SetSize (Urho3D::Texture2DArray *_target, unsigned int layers, int width, int height, unsigned int format, enum Urho3D::TextureUsage usage)
  14014. {
  14015. return _target->SetSize (layers, width, height, format, usage);
  14016. }
  14017. DllExport int
  14018. Texture2DArray_SetData (Urho3D::Texture2DArray *_target, unsigned int layer, unsigned int level, int x, int y, int width, int height, const void * data)
  14019. {
  14020. return _target->SetData (layer, level, x, y, width, height, data);
  14021. }
  14022. DllExport int
  14023. Texture2DArray_SetData0_File (Urho3D::Texture2DArray *_target, unsigned int layer, File * source)
  14024. {
  14025. return _target->SetData (layer, *source);
  14026. }
  14027. DllExport int
  14028. Texture2DArray_SetData0_MemoryBuffer (Urho3D::Texture2DArray *_target, unsigned int layer, MemoryBuffer * source)
  14029. {
  14030. return _target->SetData (layer, *source);
  14031. }
  14032. DllExport int
  14033. Texture2DArray_SetData1 (Urho3D::Texture2DArray *_target, unsigned int layer, Urho3D::Image * image, bool useAlpha)
  14034. {
  14035. return _target->SetData (layer, image, useAlpha);
  14036. }
  14037. DllExport unsigned int
  14038. Texture2DArray_GetLayers (Urho3D::Texture2DArray *_target)
  14039. {
  14040. return _target->GetLayers ();
  14041. }
  14042. DllExport int
  14043. Texture2DArray_GetData (Urho3D::Texture2DArray *_target, unsigned int layer, unsigned int level, void * dest)
  14044. {
  14045. return _target->GetData (layer, level, dest);
  14046. }
  14047. DllExport Urho3D::RenderSurface *
  14048. Texture2DArray_GetRenderSurface (Urho3D::Texture2DArray *_target)
  14049. {
  14050. return _target->GetRenderSurface ();
  14051. }
  14052. DllExport int
  14053. Texture3D_GetType (Urho3D::Texture3D *_target)
  14054. {
  14055. return (_target->GetType ()).Value ();
  14056. }
  14057. DllExport const char *
  14058. Texture3D_GetTypeName (Urho3D::Texture3D *_target)
  14059. {
  14060. return stringdup((_target->GetTypeName ()).CString ());
  14061. }
  14062. DllExport int
  14063. Texture3D_GetTypeStatic ()
  14064. {
  14065. return (Texture3D::GetTypeStatic ()).Value ();
  14066. }
  14067. DllExport const char *
  14068. Texture3D_GetTypeNameStatic ()
  14069. {
  14070. return stringdup((Texture3D::GetTypeNameStatic ()).CString ());
  14071. }
  14072. DllExport void *
  14073. Texture3D_Texture3D (Urho3D::Context * context)
  14074. {
  14075. return WeakPtr<Texture3D>(new Texture3D(context));
  14076. }
  14077. DllExport void
  14078. Texture3D_RegisterObject (Urho3D::Context * context)
  14079. {
  14080. Texture3D::RegisterObject (context);
  14081. }
  14082. DllExport int
  14083. Texture3D_BeginLoad_File (Urho3D::Texture3D *_target, File * source)
  14084. {
  14085. return _target->BeginLoad (*source);
  14086. }
  14087. DllExport int
  14088. Texture3D_BeginLoad_MemoryBuffer (Urho3D::Texture3D *_target, MemoryBuffer * source)
  14089. {
  14090. return _target->BeginLoad (*source);
  14091. }
  14092. DllExport int
  14093. Texture3D_EndLoad (Urho3D::Texture3D *_target)
  14094. {
  14095. return _target->EndLoad ();
  14096. }
  14097. DllExport void
  14098. Texture3D_Release (Urho3D::Texture3D *_target)
  14099. {
  14100. _target->Release ();
  14101. }
  14102. DllExport int
  14103. Texture3D_SetSize (Urho3D::Texture3D *_target, int width, int height, int depth, unsigned int format, enum Urho3D::TextureUsage usage)
  14104. {
  14105. return _target->SetSize (width, height, depth, format, usage);
  14106. }
  14107. DllExport int
  14108. Texture3D_SetData (Urho3D::Texture3D *_target, unsigned int level, int x, int y, int z, int width, int height, int depth, const void * data)
  14109. {
  14110. return _target->SetData (level, x, y, z, width, height, depth, data);
  14111. }
  14112. DllExport int
  14113. Texture3D_SetData0 (Urho3D::Texture3D *_target, Urho3D::Image * image, bool useAlpha)
  14114. {
  14115. return _target->SetData (image, useAlpha);
  14116. }
  14117. DllExport int
  14118. Texture3D_GetData (Urho3D::Texture3D *_target, unsigned int level, void * dest)
  14119. {
  14120. return _target->GetData (level, dest);
  14121. }
  14122. DllExport int
  14123. TextureCube_GetType (Urho3D::TextureCube *_target)
  14124. {
  14125. return (_target->GetType ()).Value ();
  14126. }
  14127. DllExport const char *
  14128. TextureCube_GetTypeName (Urho3D::TextureCube *_target)
  14129. {
  14130. return stringdup((_target->GetTypeName ()).CString ());
  14131. }
  14132. DllExport int
  14133. TextureCube_GetTypeStatic ()
  14134. {
  14135. return (TextureCube::GetTypeStatic ()).Value ();
  14136. }
  14137. DllExport const char *
  14138. TextureCube_GetTypeNameStatic ()
  14139. {
  14140. return stringdup((TextureCube::GetTypeNameStatic ()).CString ());
  14141. }
  14142. DllExport void *
  14143. TextureCube_TextureCube (Urho3D::Context * context)
  14144. {
  14145. return WeakPtr<TextureCube>(new TextureCube(context));
  14146. }
  14147. DllExport void
  14148. TextureCube_RegisterObject (Urho3D::Context * context)
  14149. {
  14150. TextureCube::RegisterObject (context);
  14151. }
  14152. DllExport int
  14153. TextureCube_BeginLoad_File (Urho3D::TextureCube *_target, File * source)
  14154. {
  14155. return _target->BeginLoad (*source);
  14156. }
  14157. DllExport int
  14158. TextureCube_BeginLoad_MemoryBuffer (Urho3D::TextureCube *_target, MemoryBuffer * source)
  14159. {
  14160. return _target->BeginLoad (*source);
  14161. }
  14162. DllExport int
  14163. TextureCube_EndLoad (Urho3D::TextureCube *_target)
  14164. {
  14165. return _target->EndLoad ();
  14166. }
  14167. DllExport void
  14168. TextureCube_Release (Urho3D::TextureCube *_target)
  14169. {
  14170. _target->Release ();
  14171. }
  14172. DllExport int
  14173. TextureCube_SetSize (Urho3D::TextureCube *_target, int size, unsigned int format, enum Urho3D::TextureUsage usage, int multiSample)
  14174. {
  14175. return _target->SetSize (size, format, usage, multiSample);
  14176. }
  14177. DllExport int
  14178. TextureCube_SetData (Urho3D::TextureCube *_target, enum Urho3D::CubeMapFace face, unsigned int level, int x, int y, int width, int height, const void * data)
  14179. {
  14180. return _target->SetData (face, level, x, y, width, height, data);
  14181. }
  14182. DllExport int
  14183. TextureCube_SetData0_File (Urho3D::TextureCube *_target, enum Urho3D::CubeMapFace face, File * source)
  14184. {
  14185. return _target->SetData (face, *source);
  14186. }
  14187. DllExport int
  14188. TextureCube_SetData0_MemoryBuffer (Urho3D::TextureCube *_target, enum Urho3D::CubeMapFace face, MemoryBuffer * source)
  14189. {
  14190. return _target->SetData (face, *source);
  14191. }
  14192. DllExport int
  14193. TextureCube_SetData1 (Urho3D::TextureCube *_target, enum Urho3D::CubeMapFace face, Urho3D::Image * image, bool useAlpha)
  14194. {
  14195. return _target->SetData (face, image, useAlpha);
  14196. }
  14197. DllExport int
  14198. TextureCube_GetData (Urho3D::TextureCube *_target, enum Urho3D::CubeMapFace face, unsigned int level, void * dest)
  14199. {
  14200. return _target->GetData (face, level, dest);
  14201. }
  14202. DllExport Urho3D::Image *
  14203. TextureCube_GetImage (Urho3D::TextureCube *_target, enum Urho3D::CubeMapFace face)
  14204. {
  14205. auto copy = _target->GetImage (face);
  14206. auto plain = copy.Get();
  14207. copy.Detach();
  14208. delete copy;
  14209. return plain;
  14210. }
  14211. DllExport Urho3D::RenderSurface *
  14212. TextureCube_GetRenderSurface (Urho3D::TextureCube *_target, enum Urho3D::CubeMapFace face)
  14213. {
  14214. return _target->GetRenderSurface (face);
  14215. }
  14216. DllExport GPUObject*
  14217. VertexBuffer_CastToGPUObject(Urho3D::VertexBuffer *_target)
  14218. {
  14219. return static_cast<GPUObject*>(_target);
  14220. }
  14221. DllExport int
  14222. VertexBuffer_GetType (Urho3D::VertexBuffer *_target)
  14223. {
  14224. return (_target->GetType ()).Value ();
  14225. }
  14226. DllExport const char *
  14227. VertexBuffer_GetTypeName (Urho3D::VertexBuffer *_target)
  14228. {
  14229. return stringdup((_target->GetTypeName ()).CString ());
  14230. }
  14231. DllExport int
  14232. VertexBuffer_GetTypeStatic ()
  14233. {
  14234. return (VertexBuffer::GetTypeStatic ()).Value ();
  14235. }
  14236. DllExport const char *
  14237. VertexBuffer_GetTypeNameStatic ()
  14238. {
  14239. return stringdup((VertexBuffer::GetTypeNameStatic ()).CString ());
  14240. }
  14241. DllExport void *
  14242. VertexBuffer_VertexBuffer (Urho3D::Context * context, bool forceHeadless)
  14243. {
  14244. return WeakPtr<VertexBuffer>(new VertexBuffer(context, forceHeadless));
  14245. }
  14246. DllExport void
  14247. VertexBuffer_OnDeviceLost (Urho3D::VertexBuffer *_target)
  14248. {
  14249. _target->OnDeviceLost ();
  14250. }
  14251. DllExport void
  14252. VertexBuffer_Release (Urho3D::VertexBuffer *_target)
  14253. {
  14254. _target->Release ();
  14255. }
  14256. DllExport void
  14257. VertexBuffer_SetShadowed (Urho3D::VertexBuffer *_target, bool enable)
  14258. {
  14259. _target->SetShadowed (enable);
  14260. }
  14261. DllExport int
  14262. VertexBuffer_SetSize (Urho3D::VertexBuffer *_target, unsigned int vertexCount, unsigned int elementMask, bool dynamic)
  14263. {
  14264. return _target->SetSize (vertexCount, elementMask, dynamic);
  14265. }
  14266. DllExport int
  14267. VertexBuffer_SetData (Urho3D::VertexBuffer *_target, const void * data)
  14268. {
  14269. return _target->SetData (data);
  14270. }
  14271. DllExport int
  14272. VertexBuffer_SetDataRange (Urho3D::VertexBuffer *_target, const void * data, unsigned int start, unsigned int count, bool discard)
  14273. {
  14274. return _target->SetDataRange (data, start, count, discard);
  14275. }
  14276. DllExport void *
  14277. VertexBuffer_Lock (Urho3D::VertexBuffer *_target, unsigned int start, unsigned int count, bool discard)
  14278. {
  14279. return _target->Lock (start, count, discard);
  14280. }
  14281. DllExport void
  14282. VertexBuffer_Unlock (Urho3D::VertexBuffer *_target)
  14283. {
  14284. _target->Unlock ();
  14285. }
  14286. DllExport int
  14287. VertexBuffer_IsShadowed (Urho3D::VertexBuffer *_target)
  14288. {
  14289. return _target->IsShadowed ();
  14290. }
  14291. DllExport int
  14292. VertexBuffer_IsDynamic (Urho3D::VertexBuffer *_target)
  14293. {
  14294. return _target->IsDynamic ();
  14295. }
  14296. DllExport int
  14297. VertexBuffer_IsLocked (Urho3D::VertexBuffer *_target)
  14298. {
  14299. return _target->IsLocked ();
  14300. }
  14301. DllExport unsigned int
  14302. VertexBuffer_GetVertexCount (Urho3D::VertexBuffer *_target)
  14303. {
  14304. return _target->GetVertexCount ();
  14305. }
  14306. DllExport unsigned int
  14307. VertexBuffer_GetVertexSize (Urho3D::VertexBuffer *_target)
  14308. {
  14309. return _target->GetVertexSize ();
  14310. }
  14311. DllExport const struct Urho3D::VertexElement *
  14312. VertexBuffer_GetElement (Urho3D::VertexBuffer *_target, enum Urho3D::VertexElementSemantic semantic, unsigned char index)
  14313. {
  14314. return _target->GetElement (semantic, index);
  14315. }
  14316. DllExport const struct Urho3D::VertexElement *
  14317. VertexBuffer_GetElement0 (Urho3D::VertexBuffer *_target, enum Urho3D::VertexElementType type, enum Urho3D::VertexElementSemantic semantic, unsigned char index)
  14318. {
  14319. return _target->GetElement (type, semantic, index);
  14320. }
  14321. DllExport int
  14322. VertexBuffer_HasElement (Urho3D::VertexBuffer *_target, enum Urho3D::VertexElementSemantic semantic, unsigned char index)
  14323. {
  14324. return _target->HasElement (semantic, index);
  14325. }
  14326. DllExport int
  14327. VertexBuffer_HasElement1 (Urho3D::VertexBuffer *_target, enum Urho3D::VertexElementType type, enum Urho3D::VertexElementSemantic semantic, unsigned char index)
  14328. {
  14329. return _target->HasElement (type, semantic, index);
  14330. }
  14331. DllExport unsigned int
  14332. VertexBuffer_GetElementOffset (Urho3D::VertexBuffer *_target, enum Urho3D::VertexElementSemantic semantic, unsigned char index)
  14333. {
  14334. return _target->GetElementOffset (semantic, index);
  14335. }
  14336. DllExport unsigned int
  14337. VertexBuffer_GetElementOffset2 (Urho3D::VertexBuffer *_target, enum Urho3D::VertexElementType type, enum Urho3D::VertexElementSemantic semantic, unsigned char index)
  14338. {
  14339. return _target->GetElementOffset (type, semantic, index);
  14340. }
  14341. DllExport unsigned int
  14342. VertexBuffer_GetElementMask (Urho3D::VertexBuffer *_target)
  14343. {
  14344. return _target->GetElementMask ();
  14345. }
  14346. DllExport unsigned char *
  14347. VertexBuffer_GetShadowData (Urho3D::VertexBuffer *_target)
  14348. {
  14349. return _target->GetShadowData ();
  14350. }
  14351. DllExport unsigned long long
  14352. VertexBuffer_GetBufferHash (Urho3D::VertexBuffer *_target, unsigned int streamIndex)
  14353. {
  14354. return _target->GetBufferHash (streamIndex);
  14355. }
  14356. DllExport unsigned int
  14357. VertexBuffer_GetVertexSize3 (unsigned int elementMask)
  14358. {
  14359. return VertexBuffer::GetVertexSize (elementMask);
  14360. }
  14361. DllExport int
  14362. Zone_GetType (Urho3D::Zone *_target)
  14363. {
  14364. return (_target->GetType ()).Value ();
  14365. }
  14366. DllExport const char *
  14367. Zone_GetTypeName (Urho3D::Zone *_target)
  14368. {
  14369. return stringdup((_target->GetTypeName ()).CString ());
  14370. }
  14371. DllExport int
  14372. Zone_GetTypeStatic ()
  14373. {
  14374. return (Zone::GetTypeStatic ()).Value ();
  14375. }
  14376. DllExport const char *
  14377. Zone_GetTypeNameStatic ()
  14378. {
  14379. return stringdup((Zone::GetTypeNameStatic ()).CString ());
  14380. }
  14381. DllExport void *
  14382. Zone_Zone (Urho3D::Context * context)
  14383. {
  14384. return WeakPtr<Zone>(new Zone(context));
  14385. }
  14386. DllExport void
  14387. Zone_RegisterObject (Urho3D::Context * context)
  14388. {
  14389. Zone::RegisterObject (context);
  14390. }
  14391. DllExport void
  14392. Zone_DrawDebugGeometry (Urho3D::Zone *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  14393. {
  14394. _target->DrawDebugGeometry (debug, depthTest);
  14395. }
  14396. DllExport void
  14397. Zone_SetBoundingBox (Urho3D::Zone *_target, const class Urho3D::BoundingBox & box)
  14398. {
  14399. _target->SetBoundingBox (box);
  14400. }
  14401. DllExport void
  14402. Zone_SetAmbientColor (Urho3D::Zone *_target, const class Urho3D::Color & color)
  14403. {
  14404. _target->SetAmbientColor (color);
  14405. }
  14406. DllExport void
  14407. Zone_SetFogColor (Urho3D::Zone *_target, const class Urho3D::Color & color)
  14408. {
  14409. _target->SetFogColor (color);
  14410. }
  14411. DllExport void
  14412. Zone_SetFogStart (Urho3D::Zone *_target, float start)
  14413. {
  14414. _target->SetFogStart (start);
  14415. }
  14416. DllExport void
  14417. Zone_SetFogEnd (Urho3D::Zone *_target, float end)
  14418. {
  14419. _target->SetFogEnd (end);
  14420. }
  14421. DllExport void
  14422. Zone_SetFogHeight (Urho3D::Zone *_target, float height)
  14423. {
  14424. _target->SetFogHeight (height);
  14425. }
  14426. DllExport void
  14427. Zone_SetFogHeightScale (Urho3D::Zone *_target, float scale)
  14428. {
  14429. _target->SetFogHeightScale (scale);
  14430. }
  14431. DllExport void
  14432. Zone_SetPriority (Urho3D::Zone *_target, int priority)
  14433. {
  14434. _target->SetPriority (priority);
  14435. }
  14436. DllExport void
  14437. Zone_SetHeightFog (Urho3D::Zone *_target, bool enable)
  14438. {
  14439. _target->SetHeightFog (enable);
  14440. }
  14441. DllExport void
  14442. Zone_SetOverride (Urho3D::Zone *_target, bool enable)
  14443. {
  14444. _target->SetOverride (enable);
  14445. }
  14446. DllExport void
  14447. Zone_SetAmbientGradient (Urho3D::Zone *_target, bool enable)
  14448. {
  14449. _target->SetAmbientGradient (enable);
  14450. }
  14451. DllExport void
  14452. Zone_SetZoneTexture (Urho3D::Zone *_target, Urho3D::Texture * texture)
  14453. {
  14454. _target->SetZoneTexture (texture);
  14455. }
  14456. DllExport Interop::Matrix3x4
  14457. Zone_GetInverseWorldTransform (Urho3D::Zone *_target)
  14458. {
  14459. return *((Interop::Matrix3x4 *) &(_target->GetInverseWorldTransform ()));
  14460. }
  14461. DllExport Interop::Color
  14462. Zone_GetAmbientColor (Urho3D::Zone *_target)
  14463. {
  14464. return *((Interop::Color *) &(_target->GetAmbientColor ()));
  14465. }
  14466. DllExport Interop::Color
  14467. Zone_GetAmbientStartColor (Urho3D::Zone *_target)
  14468. {
  14469. return *((Interop::Color *) &(_target->GetAmbientStartColor ()));
  14470. }
  14471. DllExport Interop::Color
  14472. Zone_GetAmbientEndColor (Urho3D::Zone *_target)
  14473. {
  14474. return *((Interop::Color *) &(_target->GetAmbientEndColor ()));
  14475. }
  14476. DllExport Interop::Color
  14477. Zone_GetFogColor (Urho3D::Zone *_target)
  14478. {
  14479. return *((Interop::Color *) &(_target->GetFogColor ()));
  14480. }
  14481. DllExport float
  14482. Zone_GetFogStart (Urho3D::Zone *_target)
  14483. {
  14484. return _target->GetFogStart ();
  14485. }
  14486. DllExport float
  14487. Zone_GetFogEnd (Urho3D::Zone *_target)
  14488. {
  14489. return _target->GetFogEnd ();
  14490. }
  14491. DllExport float
  14492. Zone_GetFogHeight (Urho3D::Zone *_target)
  14493. {
  14494. return _target->GetFogHeight ();
  14495. }
  14496. DllExport float
  14497. Zone_GetFogHeightScale (Urho3D::Zone *_target)
  14498. {
  14499. return _target->GetFogHeightScale ();
  14500. }
  14501. DllExport int
  14502. Zone_GetPriority (Urho3D::Zone *_target)
  14503. {
  14504. return _target->GetPriority ();
  14505. }
  14506. DllExport int
  14507. Zone_GetHeightFog (Urho3D::Zone *_target)
  14508. {
  14509. return _target->GetHeightFog ();
  14510. }
  14511. DllExport int
  14512. Zone_GetOverride (Urho3D::Zone *_target)
  14513. {
  14514. return _target->GetOverride ();
  14515. }
  14516. DllExport int
  14517. Zone_GetAmbientGradient (Urho3D::Zone *_target)
  14518. {
  14519. return _target->GetAmbientGradient ();
  14520. }
  14521. DllExport Urho3D::Texture *
  14522. Zone_GetZoneTexture (Urho3D::Zone *_target)
  14523. {
  14524. return _target->GetZoneTexture ();
  14525. }
  14526. DllExport int
  14527. Zone_IsInside (Urho3D::Zone *_target, const class Urho3D::Vector3 & point)
  14528. {
  14529. return _target->IsInside (point);
  14530. }
  14531. DllExport Urho3D::ResourceRef
  14532. Zone_GetZoneTextureAttr (Urho3D::Zone *_target)
  14533. {
  14534. return _target->GetZoneTextureAttr ();
  14535. }
  14536. DllExport void *
  14537. Polyhedron_Polyhedron ()
  14538. {
  14539. return new Polyhedron();
  14540. }
  14541. DllExport void *
  14542. Polyhedron_Polyhedron0 (const class Urho3D::Polyhedron & polyhedron)
  14543. {
  14544. return new Polyhedron(polyhedron);
  14545. }
  14546. DllExport void *
  14547. Polyhedron_Polyhedron1 (const class Urho3D::BoundingBox & box)
  14548. {
  14549. return new Polyhedron(box);
  14550. }
  14551. DllExport void *
  14552. Polyhedron_Polyhedron2 (const class Urho3D::Frustum & frustum)
  14553. {
  14554. return new Polyhedron(frustum);
  14555. }
  14556. DllExport void
  14557. Polyhedron_Define (Urho3D::Polyhedron *_target, const class Urho3D::BoundingBox & box)
  14558. {
  14559. _target->Define (box);
  14560. }
  14561. DllExport void
  14562. Polyhedron_Define3 (Urho3D::Polyhedron *_target, const class Urho3D::Frustum & frustum)
  14563. {
  14564. _target->Define (frustum);
  14565. }
  14566. DllExport void
  14567. Polyhedron_AddFace (Urho3D::Polyhedron *_target, const class Urho3D::Vector3 & v0, const class Urho3D::Vector3 & v1, const class Urho3D::Vector3 & v2)
  14568. {
  14569. _target->AddFace (v0, v1, v2);
  14570. }
  14571. DllExport void
  14572. Polyhedron_AddFace4 (Urho3D::Polyhedron *_target, const class Urho3D::Vector3 & v0, const class Urho3D::Vector3 & v1, const class Urho3D::Vector3 & v2, const class Urho3D::Vector3 & v3)
  14573. {
  14574. _target->AddFace (v0, v1, v2, v3);
  14575. }
  14576. DllExport void
  14577. Polyhedron_Clip (Urho3D::Polyhedron *_target, const class Urho3D::Plane & plane)
  14578. {
  14579. _target->Clip (plane);
  14580. }
  14581. DllExport void
  14582. Polyhedron_Clip5 (Urho3D::Polyhedron *_target, const class Urho3D::BoundingBox & box)
  14583. {
  14584. _target->Clip (box);
  14585. }
  14586. DllExport void
  14587. Polyhedron_Clip6 (Urho3D::Polyhedron *_target, const class Urho3D::Frustum & box)
  14588. {
  14589. _target->Clip (box);
  14590. }
  14591. DllExport void
  14592. Polyhedron_Clear (Urho3D::Polyhedron *_target)
  14593. {
  14594. _target->Clear ();
  14595. }
  14596. DllExport void
  14597. Polyhedron_Transform (Urho3D::Polyhedron *_target, const class Urho3D::Matrix3x4 & transform)
  14598. {
  14599. _target->Transform (transform);
  14600. }
  14601. DllExport Urho3D::Polyhedron *
  14602. Polyhedron_Transformed (Urho3D::Polyhedron *_target, const class Urho3D::Matrix3x4 & transform)
  14603. {
  14604. return new Urho3D::Polyhedron (_target->Transformed (transform));
  14605. }
  14606. DllExport int
  14607. Polyhedron_Empty (Urho3D::Polyhedron *_target)
  14608. {
  14609. return _target->Empty ();
  14610. }
  14611. DllExport int
  14612. View_GetType (Urho3D::View *_target)
  14613. {
  14614. return (_target->GetType ()).Value ();
  14615. }
  14616. DllExport const char *
  14617. View_GetTypeName (Urho3D::View *_target)
  14618. {
  14619. return stringdup((_target->GetTypeName ()).CString ());
  14620. }
  14621. DllExport int
  14622. View_GetTypeStatic ()
  14623. {
  14624. return (View::GetTypeStatic ()).Value ();
  14625. }
  14626. DllExport const char *
  14627. View_GetTypeNameStatic ()
  14628. {
  14629. return stringdup((View::GetTypeNameStatic ()).CString ());
  14630. }
  14631. DllExport void *
  14632. View_View (Urho3D::Context * context)
  14633. {
  14634. return WeakPtr<View>(new View(context));
  14635. }
  14636. DllExport int
  14637. View_Define (Urho3D::View *_target, Urho3D::RenderSurface * renderTarget, Urho3D::Viewport * viewport)
  14638. {
  14639. return _target->Define (renderTarget, viewport);
  14640. }
  14641. DllExport void
  14642. View_Render (Urho3D::View *_target)
  14643. {
  14644. _target->Render ();
  14645. }
  14646. DllExport Urho3D::Graphics *
  14647. View_GetGraphics (Urho3D::View *_target)
  14648. {
  14649. return _target->GetGraphics ();
  14650. }
  14651. DllExport Urho3D::Renderer *
  14652. View_GetRenderer (Urho3D::View *_target)
  14653. {
  14654. return _target->GetRenderer ();
  14655. }
  14656. DllExport Urho3D::Scene *
  14657. View_GetScene (Urho3D::View *_target)
  14658. {
  14659. return _target->GetScene ();
  14660. }
  14661. DllExport Urho3D::Octree *
  14662. View_GetOctree (Urho3D::View *_target)
  14663. {
  14664. return _target->GetOctree ();
  14665. }
  14666. DllExport Urho3D::Camera *
  14667. View_GetCamera (Urho3D::View *_target)
  14668. {
  14669. return _target->GetCamera ();
  14670. }
  14671. DllExport Urho3D::Camera *
  14672. View_GetCullCamera (Urho3D::View *_target)
  14673. {
  14674. return _target->GetCullCamera ();
  14675. }
  14676. DllExport Urho3D::RenderSurface *
  14677. View_GetRenderTarget (Urho3D::View *_target)
  14678. {
  14679. return _target->GetRenderTarget ();
  14680. }
  14681. DllExport int
  14682. View_GetDrawDebug (Urho3D::View *_target)
  14683. {
  14684. return _target->GetDrawDebug ();
  14685. }
  14686. DllExport Interop::IntRect
  14687. View_GetViewRect (Urho3D::View *_target)
  14688. {
  14689. return *((Interop::IntRect *) &(_target->GetViewRect ()));
  14690. }
  14691. DllExport Interop::IntVector2
  14692. View_GetViewSize (Urho3D::View *_target)
  14693. {
  14694. return *((Interop::IntVector2 *) &(_target->GetViewSize ()));
  14695. }
  14696. DllExport Urho3D::OcclusionBuffer *
  14697. View_GetOcclusionBuffer (Urho3D::View *_target)
  14698. {
  14699. return _target->GetOcclusionBuffer ();
  14700. }
  14701. DllExport unsigned int
  14702. View_GetNumActiveOccluders (Urho3D::View *_target)
  14703. {
  14704. return _target->GetNumActiveOccluders ();
  14705. }
  14706. DllExport Urho3D::View *
  14707. View_GetSourceView (Urho3D::View *_target)
  14708. {
  14709. return _target->GetSourceView ();
  14710. }
  14711. DllExport void
  14712. View_SetGlobalShaderParameters (Urho3D::View *_target)
  14713. {
  14714. _target->SetGlobalShaderParameters ();
  14715. }
  14716. DllExport void
  14717. View_SetCameraShaderParameters (Urho3D::View *_target, Urho3D::Camera * camera)
  14718. {
  14719. _target->SetCameraShaderParameters (camera);
  14720. }
  14721. DllExport void
  14722. View_SetCommandShaderParameters (Urho3D::View *_target, const struct Urho3D::RenderPathCommand & command)
  14723. {
  14724. _target->SetCommandShaderParameters (command);
  14725. }
  14726. DllExport void
  14727. View_SetGBufferShaderParameters (Urho3D::View *_target, const class Urho3D::IntVector2 & texSize, const class Urho3D::IntRect & viewRect)
  14728. {
  14729. _target->SetGBufferShaderParameters (texSize, viewRect);
  14730. }
  14731. DllExport void
  14732. View_SetStereoMode (Urho3D::View *_target, bool stereo)
  14733. {
  14734. _target->SetStereoMode (stereo);
  14735. }
  14736. DllExport void
  14737. View_DrawFullscreenQuad (Urho3D::View *_target, bool setIdentityProjection)
  14738. {
  14739. _target->DrawFullscreenQuad (setIdentityProjection);
  14740. }
  14741. DllExport Urho3D::Texture *
  14742. View_FindNamedTexture (Urho3D::View *_target, const char * name, bool isRenderTarget, bool isVolumeMap)
  14743. {
  14744. return _target->FindNamedTexture (Urho3D::String(name), isRenderTarget, isVolumeMap);
  14745. }
  14746. DllExport int
  14747. File_GetType (Urho3D::File *_target)
  14748. {
  14749. return (_target->GetType ()).Value ();
  14750. }
  14751. DllExport const char *
  14752. File_GetTypeName (Urho3D::File *_target)
  14753. {
  14754. return stringdup((_target->GetTypeName ()).CString ());
  14755. }
  14756. DllExport int
  14757. File_GetTypeStatic ()
  14758. {
  14759. return (File::GetTypeStatic ()).Value ();
  14760. }
  14761. DllExport const char *
  14762. File_GetTypeNameStatic ()
  14763. {
  14764. return stringdup((File::GetTypeNameStatic ()).CString ());
  14765. }
  14766. DllExport void *
  14767. File_File (Urho3D::Context * context)
  14768. {
  14769. return WeakPtr<File>(new File(context));
  14770. }
  14771. DllExport void *
  14772. File_File0 (Urho3D::Context * context, const char * fileName, enum Urho3D::FileMode mode)
  14773. {
  14774. return WeakPtr<File>(new File(context, Urho3D::String(fileName), mode));
  14775. }
  14776. DllExport void *
  14777. File_File1 (Urho3D::Context * context, Urho3D::PackageFile * package, const char * fileName)
  14778. {
  14779. return WeakPtr<File>(new File(context, package, Urho3D::String(fileName)));
  14780. }
  14781. DllExport unsigned int
  14782. File_Read (Urho3D::File *_target, void * dest, unsigned int size)
  14783. {
  14784. return _target->Read (dest, size);
  14785. }
  14786. DllExport unsigned int
  14787. File_Seek (Urho3D::File *_target, unsigned int position)
  14788. {
  14789. return _target->Seek (position);
  14790. }
  14791. DllExport unsigned int
  14792. File_Write (Urho3D::File *_target, const void * data, unsigned int size)
  14793. {
  14794. return _target->Write (data, size);
  14795. }
  14796. DllExport const char *
  14797. File_GetName (Urho3D::File *_target)
  14798. {
  14799. return stringdup((_target->GetName ()).CString ());
  14800. }
  14801. DllExport unsigned int
  14802. File_GetChecksum (Urho3D::File *_target)
  14803. {
  14804. return _target->GetChecksum ();
  14805. }
  14806. DllExport int
  14807. File_Open (Urho3D::File *_target, const char * fileName, enum Urho3D::FileMode mode)
  14808. {
  14809. return _target->Open (Urho3D::String(fileName), mode);
  14810. }
  14811. DllExport int
  14812. File_Open2 (Urho3D::File *_target, Urho3D::PackageFile * package, const char * fileName)
  14813. {
  14814. return _target->Open (package, Urho3D::String(fileName));
  14815. }
  14816. DllExport void
  14817. File_Close (Urho3D::File *_target)
  14818. {
  14819. _target->Close ();
  14820. }
  14821. DllExport void
  14822. File_Flush (Urho3D::File *_target)
  14823. {
  14824. _target->Flush ();
  14825. }
  14826. DllExport void
  14827. File_SetName (Urho3D::File *_target, const char * name)
  14828. {
  14829. _target->SetName (Urho3D::String(name));
  14830. }
  14831. DllExport enum Urho3D::FileMode
  14832. File_GetMode (Urho3D::File *_target)
  14833. {
  14834. return _target->GetMode ();
  14835. }
  14836. DllExport int
  14837. File_IsOpen (Urho3D::File *_target)
  14838. {
  14839. return _target->IsOpen ();
  14840. }
  14841. DllExport void *
  14842. File_GetHandle (Urho3D::File *_target)
  14843. {
  14844. return _target->GetHandle ();
  14845. }
  14846. DllExport int
  14847. File_IsPackaged (Urho3D::File *_target)
  14848. {
  14849. return _target->IsPackaged ();
  14850. }
  14851. DllExport int
  14852. FileSystem_GetType (Urho3D::FileSystem *_target)
  14853. {
  14854. return (_target->GetType ()).Value ();
  14855. }
  14856. DllExport const char *
  14857. FileSystem_GetTypeName (Urho3D::FileSystem *_target)
  14858. {
  14859. return stringdup((_target->GetTypeName ()).CString ());
  14860. }
  14861. DllExport int
  14862. FileSystem_GetTypeStatic ()
  14863. {
  14864. return (FileSystem::GetTypeStatic ()).Value ();
  14865. }
  14866. DllExport const char *
  14867. FileSystem_GetTypeNameStatic ()
  14868. {
  14869. return stringdup((FileSystem::GetTypeNameStatic ()).CString ());
  14870. }
  14871. DllExport void *
  14872. FileSystem_FileSystem (Urho3D::Context * context)
  14873. {
  14874. return WeakPtr<FileSystem>(new FileSystem(context));
  14875. }
  14876. DllExport int
  14877. FileSystem_SetCurrentDir (Urho3D::FileSystem *_target, const char * pathName)
  14878. {
  14879. return _target->SetCurrentDir (Urho3D::String(pathName));
  14880. }
  14881. DllExport int
  14882. FileSystem_CreateDir (Urho3D::FileSystem *_target, const char * pathName)
  14883. {
  14884. return _target->CreateDir (Urho3D::String(pathName));
  14885. }
  14886. DllExport void
  14887. FileSystem_SetExecuteConsoleCommands (Urho3D::FileSystem *_target, bool enable)
  14888. {
  14889. _target->SetExecuteConsoleCommands (enable);
  14890. }
  14891. DllExport int
  14892. FileSystem_SystemCommand (Urho3D::FileSystem *_target, const char * commandLine, bool redirectStdOutToLog)
  14893. {
  14894. return _target->SystemCommand (Urho3D::String(commandLine), redirectStdOutToLog);
  14895. }
  14896. DllExport unsigned int
  14897. FileSystem_SystemCommandAsync (Urho3D::FileSystem *_target, const char * commandLine)
  14898. {
  14899. return _target->SystemCommandAsync (Urho3D::String(commandLine));
  14900. }
  14901. DllExport int
  14902. FileSystem_SystemOpen (Urho3D::FileSystem *_target, const char * fileName, const char * mode)
  14903. {
  14904. return _target->SystemOpen (Urho3D::String(fileName), Urho3D::String(mode));
  14905. }
  14906. DllExport int
  14907. FileSystem_Copy (Urho3D::FileSystem *_target, const char * srcFileName, const char * destFileName)
  14908. {
  14909. return _target->Copy (Urho3D::String(srcFileName), Urho3D::String(destFileName));
  14910. }
  14911. DllExport int
  14912. FileSystem_Rename (Urho3D::FileSystem *_target, const char * srcFileName, const char * destFileName)
  14913. {
  14914. return _target->Rename (Urho3D::String(srcFileName), Urho3D::String(destFileName));
  14915. }
  14916. DllExport int
  14917. FileSystem_Delete (Urho3D::FileSystem *_target, const char * fileName)
  14918. {
  14919. return _target->Delete (Urho3D::String(fileName));
  14920. }
  14921. DllExport void
  14922. FileSystem_RegisterPath (Urho3D::FileSystem *_target, const char * pathName)
  14923. {
  14924. _target->RegisterPath (Urho3D::String(pathName));
  14925. }
  14926. DllExport int
  14927. FileSystem_SetLastModifiedTime (Urho3D::FileSystem *_target, const char * fileName, unsigned int newTime)
  14928. {
  14929. return _target->SetLastModifiedTime (Urho3D::String(fileName), newTime);
  14930. }
  14931. DllExport const char *
  14932. FileSystem_GetCurrentDir (Urho3D::FileSystem *_target)
  14933. {
  14934. return stringdup((_target->GetCurrentDir ()).CString ());
  14935. }
  14936. DllExport int
  14937. FileSystem_GetExecuteConsoleCommands (Urho3D::FileSystem *_target)
  14938. {
  14939. return _target->GetExecuteConsoleCommands ();
  14940. }
  14941. DllExport int
  14942. FileSystem_HasRegisteredPaths (Urho3D::FileSystem *_target)
  14943. {
  14944. return _target->HasRegisteredPaths ();
  14945. }
  14946. DllExport int
  14947. FileSystem_CheckAccess (Urho3D::FileSystem *_target, const char * pathName)
  14948. {
  14949. return _target->CheckAccess (Urho3D::String(pathName));
  14950. }
  14951. DllExport unsigned int
  14952. FileSystem_GetLastModifiedTime (Urho3D::FileSystem *_target, const char * fileName)
  14953. {
  14954. return _target->GetLastModifiedTime (Urho3D::String(fileName));
  14955. }
  14956. DllExport int
  14957. FileSystem_FileExists (Urho3D::FileSystem *_target, const char * fileName)
  14958. {
  14959. return _target->FileExists (Urho3D::String(fileName));
  14960. }
  14961. DllExport int
  14962. FileSystem_DirExists (Urho3D::FileSystem *_target, const char * pathName)
  14963. {
  14964. return _target->DirExists (Urho3D::String(pathName));
  14965. }
  14966. DllExport const char *
  14967. FileSystem_GetProgramDir (Urho3D::FileSystem *_target)
  14968. {
  14969. return stringdup((_target->GetProgramDir ()).CString ());
  14970. }
  14971. DllExport const char *
  14972. FileSystem_GetUserDocumentsDir (Urho3D::FileSystem *_target)
  14973. {
  14974. return stringdup((_target->GetUserDocumentsDir ()).CString ());
  14975. }
  14976. DllExport const char *
  14977. FileSystem_GetAppPreferencesDir (Urho3D::FileSystem *_target, const char * org, const char * app)
  14978. {
  14979. return stringdup((_target->GetAppPreferencesDir (Urho3D::String(org), Urho3D::String(app))).CString ());
  14980. }
  14981. DllExport const char *
  14982. FileSystem_GetTemporaryDir (Urho3D::FileSystem *_target)
  14983. {
  14984. return stringdup((_target->GetTemporaryDir ()).CString ());
  14985. }
  14986. DllExport int
  14987. FileWatcher_GetType (Urho3D::FileWatcher *_target)
  14988. {
  14989. return (_target->GetType ()).Value ();
  14990. }
  14991. DllExport const char *
  14992. FileWatcher_GetTypeName (Urho3D::FileWatcher *_target)
  14993. {
  14994. return stringdup((_target->GetTypeName ()).CString ());
  14995. }
  14996. DllExport int
  14997. FileWatcher_GetTypeStatic ()
  14998. {
  14999. return (FileWatcher::GetTypeStatic ()).Value ();
  15000. }
  15001. DllExport const char *
  15002. FileWatcher_GetTypeNameStatic ()
  15003. {
  15004. return stringdup((FileWatcher::GetTypeNameStatic ()).CString ());
  15005. }
  15006. DllExport void *
  15007. FileWatcher_FileWatcher (Urho3D::Context * context)
  15008. {
  15009. return WeakPtr<FileWatcher>(new FileWatcher(context));
  15010. }
  15011. DllExport void
  15012. FileWatcher_ThreadFunction (Urho3D::FileWatcher *_target)
  15013. {
  15014. _target->ThreadFunction ();
  15015. }
  15016. DllExport int
  15017. FileWatcher_StartWatching (Urho3D::FileWatcher *_target, const char * pathName, bool watchSubDirs)
  15018. {
  15019. return _target->StartWatching (Urho3D::String(pathName), watchSubDirs);
  15020. }
  15021. DllExport void
  15022. FileWatcher_StopWatching (Urho3D::FileWatcher *_target)
  15023. {
  15024. _target->StopWatching ();
  15025. }
  15026. DllExport void
  15027. FileWatcher_SetDelay (Urho3D::FileWatcher *_target, float interval)
  15028. {
  15029. _target->SetDelay (interval);
  15030. }
  15031. DllExport void
  15032. FileWatcher_AddChange (Urho3D::FileWatcher *_target, const char * fileName)
  15033. {
  15034. _target->AddChange (Urho3D::String(fileName));
  15035. }
  15036. DllExport const char *
  15037. FileWatcher_GetPath (Urho3D::FileWatcher *_target)
  15038. {
  15039. return stringdup((_target->GetPath ()).CString ());
  15040. }
  15041. DllExport float
  15042. FileWatcher_GetDelay (Urho3D::FileWatcher *_target)
  15043. {
  15044. return _target->GetDelay ();
  15045. }
  15046. DllExport int
  15047. Log_GetType (Urho3D::Log *_target)
  15048. {
  15049. return (_target->GetType ()).Value ();
  15050. }
  15051. DllExport const char *
  15052. Log_GetTypeName (Urho3D::Log *_target)
  15053. {
  15054. return stringdup((_target->GetTypeName ()).CString ());
  15055. }
  15056. DllExport int
  15057. Log_GetTypeStatic ()
  15058. {
  15059. return (Log::GetTypeStatic ()).Value ();
  15060. }
  15061. DllExport const char *
  15062. Log_GetTypeNameStatic ()
  15063. {
  15064. return stringdup((Log::GetTypeNameStatic ()).CString ());
  15065. }
  15066. DllExport void *
  15067. Log_Log (Urho3D::Context * context)
  15068. {
  15069. return WeakPtr<Log>(new Log(context));
  15070. }
  15071. DllExport void
  15072. Log_Open (Urho3D::Log *_target, const char * fileName)
  15073. {
  15074. _target->Open (Urho3D::String(fileName));
  15075. }
  15076. DllExport void
  15077. Log_Close (Urho3D::Log *_target)
  15078. {
  15079. _target->Close ();
  15080. }
  15081. DllExport void
  15082. Log_SetLevel (Urho3D::Log *_target, int level)
  15083. {
  15084. _target->SetLevel (level);
  15085. }
  15086. DllExport void
  15087. Log_SetTimeStamp (Urho3D::Log *_target, bool enable)
  15088. {
  15089. _target->SetTimeStamp (enable);
  15090. }
  15091. DllExport void
  15092. Log_SetQuiet (Urho3D::Log *_target, bool quiet)
  15093. {
  15094. _target->SetQuiet (quiet);
  15095. }
  15096. DllExport int
  15097. Log_GetLevel (Urho3D::Log *_target)
  15098. {
  15099. return _target->GetLevel ();
  15100. }
  15101. DllExport int
  15102. Log_GetTimeStamp (Urho3D::Log *_target)
  15103. {
  15104. return _target->GetTimeStamp ();
  15105. }
  15106. DllExport const char *
  15107. Log_GetLastMessage (Urho3D::Log *_target)
  15108. {
  15109. return stringdup((_target->GetLastMessage ()).CString ());
  15110. }
  15111. DllExport int
  15112. Log_IsQuiet (Urho3D::Log *_target)
  15113. {
  15114. return _target->IsQuiet ();
  15115. }
  15116. DllExport void
  15117. Log_Write (int level, const char * message)
  15118. {
  15119. Log::Write (level, Urho3D::String(message));
  15120. }
  15121. DllExport void
  15122. Log_WriteRaw (const char * message, bool error)
  15123. {
  15124. Log::WriteRaw (Urho3D::String(message), error);
  15125. }
  15126. DllExport int
  15127. PackageFile_GetType (Urho3D::PackageFile *_target)
  15128. {
  15129. return (_target->GetType ()).Value ();
  15130. }
  15131. DllExport const char *
  15132. PackageFile_GetTypeName (Urho3D::PackageFile *_target)
  15133. {
  15134. return stringdup((_target->GetTypeName ()).CString ());
  15135. }
  15136. DllExport int
  15137. PackageFile_GetTypeStatic ()
  15138. {
  15139. return (PackageFile::GetTypeStatic ()).Value ();
  15140. }
  15141. DllExport const char *
  15142. PackageFile_GetTypeNameStatic ()
  15143. {
  15144. return stringdup((PackageFile::GetTypeNameStatic ()).CString ());
  15145. }
  15146. DllExport void *
  15147. PackageFile_PackageFile (Urho3D::Context * context)
  15148. {
  15149. return WeakPtr<PackageFile>(new PackageFile(context));
  15150. }
  15151. DllExport void *
  15152. PackageFile_PackageFile0 (Urho3D::Context * context, const char * fileName, unsigned int startOffset)
  15153. {
  15154. return WeakPtr<PackageFile>(new PackageFile(context, Urho3D::String(fileName), startOffset));
  15155. }
  15156. DllExport int
  15157. PackageFile_Open (Urho3D::PackageFile *_target, const char * fileName, unsigned int startOffset)
  15158. {
  15159. return _target->Open (Urho3D::String(fileName), startOffset);
  15160. }
  15161. DllExport int
  15162. PackageFile_Exists (Urho3D::PackageFile *_target, const char * fileName)
  15163. {
  15164. return _target->Exists (Urho3D::String(fileName));
  15165. }
  15166. DllExport const struct Urho3D::PackageEntry *
  15167. PackageFile_GetEntry (Urho3D::PackageFile *_target, const char * fileName)
  15168. {
  15169. return _target->GetEntry (Urho3D::String(fileName));
  15170. }
  15171. DllExport const char *
  15172. PackageFile_GetName (Urho3D::PackageFile *_target)
  15173. {
  15174. return stringdup((_target->GetName ()).CString ());
  15175. }
  15176. DllExport int
  15177. PackageFile_GetNameHash (Urho3D::PackageFile *_target)
  15178. {
  15179. return (_target->GetNameHash ()).Value ();
  15180. }
  15181. DllExport unsigned int
  15182. PackageFile_GetNumFiles (Urho3D::PackageFile *_target)
  15183. {
  15184. return _target->GetNumFiles ();
  15185. }
  15186. DllExport unsigned int
  15187. PackageFile_GetTotalSize (Urho3D::PackageFile *_target)
  15188. {
  15189. return _target->GetTotalSize ();
  15190. }
  15191. DllExport unsigned int
  15192. PackageFile_GetTotalDataSize (Urho3D::PackageFile *_target)
  15193. {
  15194. return _target->GetTotalDataSize ();
  15195. }
  15196. DllExport unsigned int
  15197. PackageFile_GetChecksum (Urho3D::PackageFile *_target)
  15198. {
  15199. return _target->GetChecksum ();
  15200. }
  15201. DllExport int
  15202. PackageFile_IsCompressed (Urho3D::PackageFile *_target)
  15203. {
  15204. return _target->IsCompressed ();
  15205. }
  15206. DllExport void *
  15207. UIBatch_UIBatch ()
  15208. {
  15209. return new UIBatch();
  15210. }
  15211. DllExport void
  15212. UIBatch_SetColor (Urho3D::UIBatch *_target, const class Urho3D::Color & color, bool overrideAlpha)
  15213. {
  15214. _target->SetColor (color, overrideAlpha);
  15215. }
  15216. DllExport void
  15217. UIBatch_SetDefaultColor (Urho3D::UIBatch *_target)
  15218. {
  15219. _target->SetDefaultColor ();
  15220. }
  15221. DllExport void
  15222. UIBatch_AddQuad (Urho3D::UIBatch *_target, float x, float y, float width, float height, int texOffsetX, int texOffsetY, int texWidth, int texHeight)
  15223. {
  15224. _target->AddQuad (x, y, width, height, texOffsetX, texOffsetY, texWidth, texHeight);
  15225. }
  15226. DllExport void
  15227. UIBatch_AddQuad0 (Urho3D::UIBatch *_target, const class Urho3D::Matrix3x4 & transform, int x, int y, int width, int height, int texOffsetX, int texOffsetY, int texWidth, int texHeight)
  15228. {
  15229. _target->AddQuad (transform, x, y, width, height, texOffsetX, texOffsetY, texWidth, texHeight);
  15230. }
  15231. DllExport void
  15232. UIBatch_AddQuad1 (Urho3D::UIBatch *_target, int x, int y, int width, int height, int texOffsetX, int texOffsetY, int texWidth, int texHeight, bool tiled)
  15233. {
  15234. _target->AddQuad (x, y, width, height, texOffsetX, texOffsetY, texWidth, texHeight, tiled);
  15235. }
  15236. DllExport void
  15237. UIBatch_AddQuad2 (Urho3D::UIBatch *_target, const class Urho3D::Matrix3x4 & transform, const class Urho3D::IntVector2 & a, const class Urho3D::IntVector2 & b, const class Urho3D::IntVector2 & c, const class Urho3D::IntVector2 & d, const class Urho3D::IntVector2 & texA, const class Urho3D::IntVector2 & texB, const class Urho3D::IntVector2 & texC, const class Urho3D::IntVector2 & texD)
  15238. {
  15239. _target->AddQuad (transform, a, b, c, d, texA, texB, texC, texD);
  15240. }
  15241. DllExport void
  15242. UIBatch_AddQuad3 (Urho3D::UIBatch *_target, const class Urho3D::Matrix3x4 & transform, const class Urho3D::IntVector2 & a, const class Urho3D::IntVector2 & b, const class Urho3D::IntVector2 & c, const class Urho3D::IntVector2 & d, const class Urho3D::IntVector2 & texA, const class Urho3D::IntVector2 & texB, const class Urho3D::IntVector2 & texC, const class Urho3D::IntVector2 & texD, const class Urho3D::Color & colA, const class Urho3D::Color & colB, const class Urho3D::Color & colC, const class Urho3D::Color & colD)
  15243. {
  15244. _target->AddQuad (transform, a, b, c, d, texA, texB, texC, texD, colA, colB, colC, colD);
  15245. }
  15246. DllExport unsigned int
  15247. UIBatch_GetInterpolatedColor (Urho3D::UIBatch *_target, float x, float y)
  15248. {
  15249. return _target->GetInterpolatedColor (x, y);
  15250. }
  15251. DllExport int
  15252. UIElement_GetType (Urho3D::UIElement *_target)
  15253. {
  15254. return (_target->GetType ()).Value ();
  15255. }
  15256. DllExport const char *
  15257. UIElement_GetTypeName (Urho3D::UIElement *_target)
  15258. {
  15259. return stringdup((_target->GetTypeName ()).CString ());
  15260. }
  15261. DllExport int
  15262. UIElement_GetTypeStatic ()
  15263. {
  15264. return (UIElement::GetTypeStatic ()).Value ();
  15265. }
  15266. DllExport const char *
  15267. UIElement_GetTypeNameStatic ()
  15268. {
  15269. return stringdup((UIElement::GetTypeNameStatic ()).CString ());
  15270. }
  15271. DllExport void *
  15272. UIElement_UIElement (Urho3D::Context * context)
  15273. {
  15274. return WeakPtr<UIElement>(new UIElement(context));
  15275. }
  15276. DllExport void
  15277. UIElement_RegisterObject (Urho3D::Context * context)
  15278. {
  15279. UIElement::RegisterObject (context);
  15280. }
  15281. DllExport void
  15282. UIElement_ApplyAttributes (Urho3D::UIElement *_target)
  15283. {
  15284. _target->ApplyAttributes ();
  15285. }
  15286. DllExport int
  15287. UIElement_LoadXML (Urho3D::UIElement *_target, const class Urho3D::XMLElement & source, bool setInstanceDefault)
  15288. {
  15289. return _target->LoadXML (source, setInstanceDefault);
  15290. }
  15291. DllExport int
  15292. UIElement_LoadXML0 (Urho3D::UIElement *_target, const class Urho3D::XMLElement & source, Urho3D::XMLFile * styleFile, bool setInstanceDefault)
  15293. {
  15294. return _target->LoadXML (source, styleFile, setInstanceDefault);
  15295. }
  15296. DllExport Urho3D::UIElement *
  15297. UIElement_LoadChildXML (Urho3D::UIElement *_target, const class Urho3D::XMLElement & childElem, Urho3D::XMLFile * styleFile, bool setInstanceDefault)
  15298. {
  15299. return _target->LoadChildXML (childElem, styleFile, setInstanceDefault);
  15300. }
  15301. DllExport int
  15302. UIElement_SaveXML (Urho3D::UIElement *_target, Urho3D::XMLElement & dest)
  15303. {
  15304. return _target->SaveXML (dest);
  15305. }
  15306. DllExport void
  15307. UIElement_Update (Urho3D::UIElement *_target, float timeStep)
  15308. {
  15309. _target->Update (timeStep);
  15310. }
  15311. DllExport int
  15312. UIElement_IsWithinScissor (Urho3D::UIElement *_target, const class Urho3D::IntRect & currentScissor)
  15313. {
  15314. return _target->IsWithinScissor (currentScissor);
  15315. }
  15316. DllExport Interop::IntVector2
  15317. UIElement_GetScreenPosition (Urho3D::UIElement *_target)
  15318. {
  15319. return *((Interop::IntVector2 *) &(_target->GetScreenPosition ()));
  15320. }
  15321. DllExport void
  15322. UIElement_OnHover (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  15323. {
  15324. _target->OnHover (position, screenPosition, buttons, qualifiers, cursor);
  15325. }
  15326. DllExport void
  15327. UIElement_OnClickBegin (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int button, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  15328. {
  15329. _target->OnClickBegin (position, screenPosition, button, buttons, qualifiers, cursor);
  15330. }
  15331. DllExport void
  15332. 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)
  15333. {
  15334. _target->OnClickEnd (position, screenPosition, button, buttons, qualifiers, cursor, beginElement);
  15335. }
  15336. DllExport void
  15337. UIElement_OnDoubleClick (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int button, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  15338. {
  15339. _target->OnDoubleClick (position, screenPosition, button, buttons, qualifiers, cursor);
  15340. }
  15341. DllExport void
  15342. UIElement_OnWheel (Urho3D::UIElement *_target, int delta, int buttons, int qualifiers)
  15343. {
  15344. _target->OnWheel (delta, buttons, qualifiers);
  15345. }
  15346. DllExport void
  15347. UIElement_OnKey (Urho3D::UIElement *_target, int key, int buttons, int qualifiers)
  15348. {
  15349. _target->OnKey (key, buttons, qualifiers);
  15350. }
  15351. DllExport void
  15352. UIElement_OnTextInput (Urho3D::UIElement *_target, const char * text)
  15353. {
  15354. _target->OnTextInput (Urho3D::String(text));
  15355. }
  15356. DllExport void
  15357. UIElement_OnResize (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & newSize, const class Urho3D::IntVector2 & delta)
  15358. {
  15359. _target->OnResize (newSize, delta);
  15360. }
  15361. DllExport void
  15362. UIElement_OnPositionSet (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & newPosition)
  15363. {
  15364. _target->OnPositionSet (newPosition);
  15365. }
  15366. DllExport void
  15367. UIElement_OnSetEditable (Urho3D::UIElement *_target)
  15368. {
  15369. _target->OnSetEditable ();
  15370. }
  15371. DllExport void
  15372. UIElement_OnIndentSet (Urho3D::UIElement *_target)
  15373. {
  15374. _target->OnIndentSet ();
  15375. }
  15376. DllExport Interop::IntVector2
  15377. UIElement_ScreenToElement (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & screenPosition)
  15378. {
  15379. return *((Interop::IntVector2 *) &(_target->ScreenToElement (screenPosition)));
  15380. }
  15381. DllExport Interop::IntVector2
  15382. UIElement_ElementToScreen (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & position)
  15383. {
  15384. return *((Interop::IntVector2 *) &(_target->ElementToScreen (position)));
  15385. }
  15386. DllExport int
  15387. UIElement_IsWheelHandler (Urho3D::UIElement *_target)
  15388. {
  15389. return _target->IsWheelHandler ();
  15390. }
  15391. DllExport int
  15392. UIElement_LoadXML1_File (Urho3D::UIElement *_target, File * source)
  15393. {
  15394. return _target->LoadXML (*source);
  15395. }
  15396. DllExport int
  15397. UIElement_LoadXML1_MemoryBuffer (Urho3D::UIElement *_target, MemoryBuffer * source)
  15398. {
  15399. return _target->LoadXML (*source);
  15400. }
  15401. DllExport int
  15402. UIElement_SaveXML2_File (Urho3D::UIElement *_target, File * dest, const char * indentation)
  15403. {
  15404. return _target->SaveXML (*dest, Urho3D::String(indentation));
  15405. }
  15406. DllExport int
  15407. UIElement_SaveXML2_MemoryBuffer (Urho3D::UIElement *_target, MemoryBuffer * dest, const char * indentation)
  15408. {
  15409. return _target->SaveXML (*dest, Urho3D::String(indentation));
  15410. }
  15411. DllExport int
  15412. UIElement_FilterAttributes (Urho3D::UIElement *_target, Urho3D::XMLElement & dest)
  15413. {
  15414. return _target->FilterAttributes (dest);
  15415. }
  15416. DllExport void
  15417. UIElement_SetName (Urho3D::UIElement *_target, const char * name)
  15418. {
  15419. _target->SetName (Urho3D::String(name));
  15420. }
  15421. DllExport void
  15422. UIElement_SetPosition (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & position)
  15423. {
  15424. _target->SetPosition (position);
  15425. }
  15426. DllExport void
  15427. UIElement_SetPosition3 (Urho3D::UIElement *_target, int x, int y)
  15428. {
  15429. _target->SetPosition (x, y);
  15430. }
  15431. DllExport void
  15432. UIElement_SetSize (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & size)
  15433. {
  15434. _target->SetSize (size);
  15435. }
  15436. DllExport void
  15437. UIElement_SetSize4 (Urho3D::UIElement *_target, int width, int height)
  15438. {
  15439. _target->SetSize (width, height);
  15440. }
  15441. DllExport void
  15442. UIElement_SetWidth (Urho3D::UIElement *_target, int width)
  15443. {
  15444. _target->SetWidth (width);
  15445. }
  15446. DllExport void
  15447. UIElement_SetHeight (Urho3D::UIElement *_target, int height)
  15448. {
  15449. _target->SetHeight (height);
  15450. }
  15451. DllExport void
  15452. UIElement_SetMinSize (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & minSize)
  15453. {
  15454. _target->SetMinSize (minSize);
  15455. }
  15456. DllExport void
  15457. UIElement_SetMinSize5 (Urho3D::UIElement *_target, int width, int height)
  15458. {
  15459. _target->SetMinSize (width, height);
  15460. }
  15461. DllExport void
  15462. UIElement_SetMinWidth (Urho3D::UIElement *_target, int width)
  15463. {
  15464. _target->SetMinWidth (width);
  15465. }
  15466. DllExport void
  15467. UIElement_SetMinHeight (Urho3D::UIElement *_target, int height)
  15468. {
  15469. _target->SetMinHeight (height);
  15470. }
  15471. DllExport void
  15472. UIElement_SetMaxSize (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & maxSize)
  15473. {
  15474. _target->SetMaxSize (maxSize);
  15475. }
  15476. DllExport void
  15477. UIElement_SetMaxSize6 (Urho3D::UIElement *_target, int width, int height)
  15478. {
  15479. _target->SetMaxSize (width, height);
  15480. }
  15481. DllExport void
  15482. UIElement_SetMaxWidth (Urho3D::UIElement *_target, int width)
  15483. {
  15484. _target->SetMaxWidth (width);
  15485. }
  15486. DllExport void
  15487. UIElement_SetMaxHeight (Urho3D::UIElement *_target, int height)
  15488. {
  15489. _target->SetMaxHeight (height);
  15490. }
  15491. DllExport void
  15492. UIElement_SetFixedSize (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & size)
  15493. {
  15494. _target->SetFixedSize (size);
  15495. }
  15496. DllExport void
  15497. UIElement_SetFixedSize7 (Urho3D::UIElement *_target, int width, int height)
  15498. {
  15499. _target->SetFixedSize (width, height);
  15500. }
  15501. DllExport void
  15502. UIElement_SetFixedWidth (Urho3D::UIElement *_target, int width)
  15503. {
  15504. _target->SetFixedWidth (width);
  15505. }
  15506. DllExport void
  15507. UIElement_SetFixedHeight (Urho3D::UIElement *_target, int height)
  15508. {
  15509. _target->SetFixedHeight (height);
  15510. }
  15511. DllExport void
  15512. UIElement_SetAlignment (Urho3D::UIElement *_target, enum Urho3D::HorizontalAlignment hAlign, enum Urho3D::VerticalAlignment vAlign)
  15513. {
  15514. _target->SetAlignment (hAlign, vAlign);
  15515. }
  15516. DllExport void
  15517. UIElement_SetHorizontalAlignment (Urho3D::UIElement *_target, enum Urho3D::HorizontalAlignment align)
  15518. {
  15519. _target->SetHorizontalAlignment (align);
  15520. }
  15521. DllExport void
  15522. UIElement_SetVerticalAlignment (Urho3D::UIElement *_target, enum Urho3D::VerticalAlignment align)
  15523. {
  15524. _target->SetVerticalAlignment (align);
  15525. }
  15526. DllExport void
  15527. UIElement_SetEnableAnchor (Urho3D::UIElement *_target, bool enable)
  15528. {
  15529. _target->SetEnableAnchor (enable);
  15530. }
  15531. DllExport void
  15532. UIElement_SetMinAnchor (Urho3D::UIElement *_target, const class Urho3D::Vector2 & anchor)
  15533. {
  15534. _target->SetMinAnchor (anchor);
  15535. }
  15536. DllExport void
  15537. UIElement_SetMinAnchor8 (Urho3D::UIElement *_target, float x, float y)
  15538. {
  15539. _target->SetMinAnchor (x, y);
  15540. }
  15541. DllExport void
  15542. UIElement_SetMaxAnchor (Urho3D::UIElement *_target, const class Urho3D::Vector2 & anchor)
  15543. {
  15544. _target->SetMaxAnchor (anchor);
  15545. }
  15546. DllExport void
  15547. UIElement_SetMaxAnchor9 (Urho3D::UIElement *_target, float x, float y)
  15548. {
  15549. _target->SetMaxAnchor (x, y);
  15550. }
  15551. DllExport void
  15552. UIElement_SetMinOffset (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & offset)
  15553. {
  15554. _target->SetMinOffset (offset);
  15555. }
  15556. DllExport void
  15557. UIElement_SetMaxOffset (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & offset)
  15558. {
  15559. _target->SetMaxOffset (offset);
  15560. }
  15561. DllExport void
  15562. UIElement_SetPivot (Urho3D::UIElement *_target, const class Urho3D::Vector2 & pivot)
  15563. {
  15564. _target->SetPivot (pivot);
  15565. }
  15566. DllExport void
  15567. UIElement_SetPivot10 (Urho3D::UIElement *_target, float x, float y)
  15568. {
  15569. _target->SetPivot (x, y);
  15570. }
  15571. DllExport void
  15572. UIElement_SetClipBorder (Urho3D::UIElement *_target, const class Urho3D::IntRect & rect)
  15573. {
  15574. _target->SetClipBorder (rect);
  15575. }
  15576. DllExport void
  15577. UIElement_SetColor (Urho3D::UIElement *_target, const class Urho3D::Color & color)
  15578. {
  15579. _target->SetColor (color);
  15580. }
  15581. DllExport void
  15582. UIElement_SetColor11 (Urho3D::UIElement *_target, enum Urho3D::Corner corner, const class Urho3D::Color & color)
  15583. {
  15584. _target->SetColor (corner, color);
  15585. }
  15586. DllExport void
  15587. UIElement_SetPriority (Urho3D::UIElement *_target, int priority)
  15588. {
  15589. _target->SetPriority (priority);
  15590. }
  15591. DllExport void
  15592. UIElement_SetOpacity (Urho3D::UIElement *_target, float opacity)
  15593. {
  15594. _target->SetOpacity (opacity);
  15595. }
  15596. DllExport void
  15597. UIElement_SetBringToFront (Urho3D::UIElement *_target, bool enable)
  15598. {
  15599. _target->SetBringToFront (enable);
  15600. }
  15601. DllExport void
  15602. UIElement_SetBringToBack (Urho3D::UIElement *_target, bool enable)
  15603. {
  15604. _target->SetBringToBack (enable);
  15605. }
  15606. DllExport void
  15607. UIElement_SetClipChildren (Urho3D::UIElement *_target, bool enable)
  15608. {
  15609. _target->SetClipChildren (enable);
  15610. }
  15611. DllExport void
  15612. UIElement_SetSortChildren (Urho3D::UIElement *_target, bool enable)
  15613. {
  15614. _target->SetSortChildren (enable);
  15615. }
  15616. DllExport void
  15617. UIElement_SetUseDerivedOpacity (Urho3D::UIElement *_target, bool enable)
  15618. {
  15619. _target->SetUseDerivedOpacity (enable);
  15620. }
  15621. DllExport void
  15622. UIElement_SetEnabled (Urho3D::UIElement *_target, bool enable)
  15623. {
  15624. _target->SetEnabled (enable);
  15625. }
  15626. DllExport void
  15627. UIElement_SetDeepEnabled (Urho3D::UIElement *_target, bool enable)
  15628. {
  15629. _target->SetDeepEnabled (enable);
  15630. }
  15631. DllExport void
  15632. UIElement_ResetDeepEnabled (Urho3D::UIElement *_target)
  15633. {
  15634. _target->ResetDeepEnabled ();
  15635. }
  15636. DllExport void
  15637. UIElement_SetEnabledRecursive (Urho3D::UIElement *_target, bool enable)
  15638. {
  15639. _target->SetEnabledRecursive (enable);
  15640. }
  15641. DllExport void
  15642. UIElement_SetEditable (Urho3D::UIElement *_target, bool enable)
  15643. {
  15644. _target->SetEditable (enable);
  15645. }
  15646. DllExport void
  15647. UIElement_SetFocus (Urho3D::UIElement *_target, bool enable)
  15648. {
  15649. _target->SetFocus (enable);
  15650. }
  15651. DllExport void
  15652. UIElement_SetSelected (Urho3D::UIElement *_target, bool enable)
  15653. {
  15654. _target->SetSelected (enable);
  15655. }
  15656. DllExport void
  15657. UIElement_SetVisible (Urho3D::UIElement *_target, bool enable)
  15658. {
  15659. _target->SetVisible (enable);
  15660. }
  15661. DllExport void
  15662. UIElement_SetFocusMode (Urho3D::UIElement *_target, enum Urho3D::FocusMode mode)
  15663. {
  15664. _target->SetFocusMode (mode);
  15665. }
  15666. DllExport void
  15667. UIElement_SetDragDropMode (Urho3D::UIElement *_target, unsigned int mode)
  15668. {
  15669. _target->SetDragDropMode (mode);
  15670. }
  15671. DllExport int
  15672. UIElement_SetStyle (Urho3D::UIElement *_target, const char * styleName, Urho3D::XMLFile * file)
  15673. {
  15674. return _target->SetStyle (Urho3D::String(styleName), file);
  15675. }
  15676. DllExport int
  15677. UIElement_SetStyle12 (Urho3D::UIElement *_target, const class Urho3D::XMLElement & element)
  15678. {
  15679. return _target->SetStyle (element);
  15680. }
  15681. DllExport int
  15682. UIElement_SetStyleAuto (Urho3D::UIElement *_target, Urho3D::XMLFile * file)
  15683. {
  15684. return _target->SetStyleAuto (file);
  15685. }
  15686. DllExport void
  15687. UIElement_SetDefaultStyle (Urho3D::UIElement *_target, Urho3D::XMLFile * style)
  15688. {
  15689. _target->SetDefaultStyle (style);
  15690. }
  15691. DllExport void
  15692. UIElement_SetLayout (Urho3D::UIElement *_target, enum Urho3D::LayoutMode mode, int spacing, const class Urho3D::IntRect & border)
  15693. {
  15694. _target->SetLayout (mode, spacing, border);
  15695. }
  15696. DllExport void
  15697. UIElement_SetLayoutMode (Urho3D::UIElement *_target, enum Urho3D::LayoutMode mode)
  15698. {
  15699. _target->SetLayoutMode (mode);
  15700. }
  15701. DllExport void
  15702. UIElement_SetLayoutSpacing (Urho3D::UIElement *_target, int spacing)
  15703. {
  15704. _target->SetLayoutSpacing (spacing);
  15705. }
  15706. DllExport void
  15707. UIElement_SetLayoutBorder (Urho3D::UIElement *_target, const class Urho3D::IntRect & border)
  15708. {
  15709. _target->SetLayoutBorder (border);
  15710. }
  15711. DllExport void
  15712. UIElement_SetLayoutFlexScale (Urho3D::UIElement *_target, const class Urho3D::Vector2 & scale)
  15713. {
  15714. _target->SetLayoutFlexScale (scale);
  15715. }
  15716. DllExport void
  15717. UIElement_SetIndent (Urho3D::UIElement *_target, int indent)
  15718. {
  15719. _target->SetIndent (indent);
  15720. }
  15721. DllExport void
  15722. UIElement_SetIndentSpacing (Urho3D::UIElement *_target, int indentSpacing)
  15723. {
  15724. _target->SetIndentSpacing (indentSpacing);
  15725. }
  15726. DllExport void
  15727. UIElement_UpdateLayout (Urho3D::UIElement *_target)
  15728. {
  15729. _target->UpdateLayout ();
  15730. }
  15731. DllExport void
  15732. UIElement_DisableLayoutUpdate (Urho3D::UIElement *_target)
  15733. {
  15734. _target->DisableLayoutUpdate ();
  15735. }
  15736. DllExport void
  15737. UIElement_EnableLayoutUpdate (Urho3D::UIElement *_target)
  15738. {
  15739. _target->EnableLayoutUpdate ();
  15740. }
  15741. DllExport void
  15742. UIElement_BringToFront (Urho3D::UIElement *_target)
  15743. {
  15744. _target->BringToFront ();
  15745. }
  15746. DllExport Urho3D::UIElement *
  15747. UIElement_CreateChild (Urho3D::UIElement *_target, int type, const char * name, unsigned int index)
  15748. {
  15749. return _target->CreateChild (Urho3D::StringHash(type), Urho3D::String(name), index);
  15750. }
  15751. DllExport void
  15752. UIElement_AddChild (Urho3D::UIElement *_target, Urho3D::UIElement * element)
  15753. {
  15754. _target->AddChild (element);
  15755. }
  15756. DllExport void
  15757. UIElement_InsertChild (Urho3D::UIElement *_target, unsigned int index, Urho3D::UIElement * element)
  15758. {
  15759. _target->InsertChild (index, element);
  15760. }
  15761. DllExport void
  15762. UIElement_RemoveChild (Urho3D::UIElement *_target, Urho3D::UIElement * element, unsigned int index)
  15763. {
  15764. _target->RemoveChild (element, index);
  15765. }
  15766. DllExport void
  15767. UIElement_RemoveChildAtIndex (Urho3D::UIElement *_target, unsigned int index)
  15768. {
  15769. _target->RemoveChildAtIndex (index);
  15770. }
  15771. DllExport void
  15772. UIElement_RemoveAllChildren (Urho3D::UIElement *_target)
  15773. {
  15774. _target->RemoveAllChildren ();
  15775. }
  15776. DllExport void
  15777. UIElement_Remove (Urho3D::UIElement *_target)
  15778. {
  15779. _target->Remove ();
  15780. }
  15781. DllExport unsigned int
  15782. UIElement_FindChild (Urho3D::UIElement *_target, Urho3D::UIElement * element)
  15783. {
  15784. return _target->FindChild (element);
  15785. }
  15786. DllExport void
  15787. UIElement_SetParent (Urho3D::UIElement *_target, Urho3D::UIElement * parent, unsigned int index)
  15788. {
  15789. _target->SetParent (parent, index);
  15790. }
  15791. // Urho3D::Variant overloads begin:
  15792. DllExport void
  15793. UIElement_SetVar_0 (Urho3D::UIElement *_target, int key, const class Urho3D::Vector3 & value)
  15794. {
  15795. _target->SetVar (Urho3D::StringHash(key), (value));
  15796. }
  15797. DllExport void
  15798. UIElement_SetVar_1 (Urho3D::UIElement *_target, int key, const class Urho3D::IntRect & value)
  15799. {
  15800. _target->SetVar (Urho3D::StringHash(key), (value));
  15801. }
  15802. DllExport void
  15803. UIElement_SetVar_2 (Urho3D::UIElement *_target, int key, const class Urho3D::Color & value)
  15804. {
  15805. _target->SetVar (Urho3D::StringHash(key), (value));
  15806. }
  15807. DllExport void
  15808. UIElement_SetVar_3 (Urho3D::UIElement *_target, int key, const class Urho3D::Vector2 & value)
  15809. {
  15810. _target->SetVar (Urho3D::StringHash(key), (value));
  15811. }
  15812. DllExport void
  15813. UIElement_SetVar_4 (Urho3D::UIElement *_target, int key, const class Urho3D::Vector4 & value)
  15814. {
  15815. _target->SetVar (Urho3D::StringHash(key), (value));
  15816. }
  15817. DllExport void
  15818. UIElement_SetVar_5 (Urho3D::UIElement *_target, int key, const class Urho3D::IntVector2 & value)
  15819. {
  15820. _target->SetVar (Urho3D::StringHash(key), (value));
  15821. }
  15822. DllExport void
  15823. UIElement_SetVar_6 (Urho3D::UIElement *_target, int key, const class Urho3D::Quaternion & value)
  15824. {
  15825. _target->SetVar (Urho3D::StringHash(key), (value));
  15826. }
  15827. DllExport void
  15828. UIElement_SetVar_7 (Urho3D::UIElement *_target, int key, const class Urho3D::Matrix4 & value)
  15829. {
  15830. _target->SetVar (Urho3D::StringHash(key), (value));
  15831. }
  15832. DllExport void
  15833. UIElement_SetVar_8 (Urho3D::UIElement *_target, int key, const class Urho3D::Matrix3x4 & value)
  15834. {
  15835. _target->SetVar (Urho3D::StringHash(key), (value));
  15836. }
  15837. DllExport void
  15838. UIElement_SetVar_9 (Urho3D::UIElement *_target, int key, int value)
  15839. {
  15840. _target->SetVar (Urho3D::StringHash(key), (value));
  15841. }
  15842. DllExport void
  15843. UIElement_SetVar_10 (Urho3D::UIElement *_target, int key, float value)
  15844. {
  15845. _target->SetVar (Urho3D::StringHash(key), (value));
  15846. }
  15847. DllExport void
  15848. UIElement_SetVar_11 (Urho3D::UIElement *_target, int key, const char * value)
  15849. {
  15850. _target->SetVar (Urho3D::StringHash(key), Urho3D::String(value));
  15851. }
  15852. DllExport void
  15853. UIElement_SetVar_12 (Urho3D::UIElement *_target, int key, bool value)
  15854. {
  15855. _target->SetVar (Urho3D::StringHash(key), (value));
  15856. }
  15857. // Urho3D::Variant overloads end.
  15858. DllExport void
  15859. UIElement_SetInternal (Urho3D::UIElement *_target, bool enable)
  15860. {
  15861. _target->SetInternal (enable);
  15862. }
  15863. DllExport void
  15864. UIElement_SetTraversalMode (Urho3D::UIElement *_target, enum Urho3D::TraversalMode traversalMode)
  15865. {
  15866. _target->SetTraversalMode (traversalMode);
  15867. }
  15868. DllExport void
  15869. UIElement_SetElementEventSender (Urho3D::UIElement *_target, bool flag)
  15870. {
  15871. _target->SetElementEventSender (flag);
  15872. }
  15873. DllExport void
  15874. UIElement_AddTag (Urho3D::UIElement *_target, const char * tag)
  15875. {
  15876. _target->AddTag (Urho3D::String(tag));
  15877. }
  15878. DllExport int
  15879. UIElement_RemoveTag (Urho3D::UIElement *_target, const char * tag)
  15880. {
  15881. return _target->RemoveTag (Urho3D::String(tag));
  15882. }
  15883. DllExport void
  15884. UIElement_RemoveAllTags (Urho3D::UIElement *_target)
  15885. {
  15886. _target->RemoveAllTags ();
  15887. }
  15888. DllExport const char *
  15889. UIElement_GetName (Urho3D::UIElement *_target)
  15890. {
  15891. return stringdup((_target->GetName ()).CString ());
  15892. }
  15893. DllExport Interop::IntVector2
  15894. UIElement_GetPosition (Urho3D::UIElement *_target)
  15895. {
  15896. return *((Interop::IntVector2 *) &(_target->GetPosition ()));
  15897. }
  15898. DllExport Interop::IntVector2
  15899. UIElement_GetSize (Urho3D::UIElement *_target)
  15900. {
  15901. return *((Interop::IntVector2 *) &(_target->GetSize ()));
  15902. }
  15903. DllExport int
  15904. UIElement_GetWidth (Urho3D::UIElement *_target)
  15905. {
  15906. return _target->GetWidth ();
  15907. }
  15908. DllExport int
  15909. UIElement_GetHeight (Urho3D::UIElement *_target)
  15910. {
  15911. return _target->GetHeight ();
  15912. }
  15913. DllExport Interop::IntVector2
  15914. UIElement_GetMinSize (Urho3D::UIElement *_target)
  15915. {
  15916. return *((Interop::IntVector2 *) &(_target->GetMinSize ()));
  15917. }
  15918. DllExport int
  15919. UIElement_GetMinWidth (Urho3D::UIElement *_target)
  15920. {
  15921. return _target->GetMinWidth ();
  15922. }
  15923. DllExport int
  15924. UIElement_GetMinHeight (Urho3D::UIElement *_target)
  15925. {
  15926. return _target->GetMinHeight ();
  15927. }
  15928. DllExport Interop::IntVector2
  15929. UIElement_GetMaxSize (Urho3D::UIElement *_target)
  15930. {
  15931. return *((Interop::IntVector2 *) &(_target->GetMaxSize ()));
  15932. }
  15933. DllExport int
  15934. UIElement_GetMaxWidth (Urho3D::UIElement *_target)
  15935. {
  15936. return _target->GetMaxWidth ();
  15937. }
  15938. DllExport int
  15939. UIElement_GetMaxHeight (Urho3D::UIElement *_target)
  15940. {
  15941. return _target->GetMaxHeight ();
  15942. }
  15943. DllExport int
  15944. UIElement_IsFixedSize (Urho3D::UIElement *_target)
  15945. {
  15946. return _target->IsFixedSize ();
  15947. }
  15948. DllExport int
  15949. UIElement_IsFixedWidth (Urho3D::UIElement *_target)
  15950. {
  15951. return _target->IsFixedWidth ();
  15952. }
  15953. DllExport int
  15954. UIElement_IsFixedHeight (Urho3D::UIElement *_target)
  15955. {
  15956. return _target->IsFixedHeight ();
  15957. }
  15958. DllExport Interop::IntVector2
  15959. UIElement_GetChildOffset (Urho3D::UIElement *_target)
  15960. {
  15961. return *((Interop::IntVector2 *) &(_target->GetChildOffset ()));
  15962. }
  15963. DllExport enum Urho3D::HorizontalAlignment
  15964. UIElement_GetHorizontalAlignment (Urho3D::UIElement *_target)
  15965. {
  15966. return _target->GetHorizontalAlignment ();
  15967. }
  15968. DllExport enum Urho3D::VerticalAlignment
  15969. UIElement_GetVerticalAlignment (Urho3D::UIElement *_target)
  15970. {
  15971. return _target->GetVerticalAlignment ();
  15972. }
  15973. DllExport int
  15974. UIElement_GetEnableAnchor (Urho3D::UIElement *_target)
  15975. {
  15976. return _target->GetEnableAnchor ();
  15977. }
  15978. DllExport Interop::Vector2
  15979. UIElement_GetMinAnchor (Urho3D::UIElement *_target)
  15980. {
  15981. return *((Interop::Vector2 *) &(_target->GetMinAnchor ()));
  15982. }
  15983. DllExport Interop::Vector2
  15984. UIElement_GetMaxAnchor (Urho3D::UIElement *_target)
  15985. {
  15986. return *((Interop::Vector2 *) &(_target->GetMaxAnchor ()));
  15987. }
  15988. DllExport Interop::IntVector2
  15989. UIElement_GetMinOffset (Urho3D::UIElement *_target)
  15990. {
  15991. return *((Interop::IntVector2 *) &(_target->GetMinOffset ()));
  15992. }
  15993. DllExport Interop::IntVector2
  15994. UIElement_GetMaxOffset (Urho3D::UIElement *_target)
  15995. {
  15996. return *((Interop::IntVector2 *) &(_target->GetMaxOffset ()));
  15997. }
  15998. DllExport Interop::Vector2
  15999. UIElement_GetPivot (Urho3D::UIElement *_target)
  16000. {
  16001. return *((Interop::Vector2 *) &(_target->GetPivot ()));
  16002. }
  16003. DllExport Interop::IntRect
  16004. UIElement_GetClipBorder (Urho3D::UIElement *_target)
  16005. {
  16006. return *((Interop::IntRect *) &(_target->GetClipBorder ()));
  16007. }
  16008. DllExport Interop::Color
  16009. UIElement_GetColor (Urho3D::UIElement *_target, enum Urho3D::Corner corner)
  16010. {
  16011. return *((Interop::Color *) &(_target->GetColor (corner)));
  16012. }
  16013. DllExport int
  16014. UIElement_GetPriority (Urho3D::UIElement *_target)
  16015. {
  16016. return _target->GetPriority ();
  16017. }
  16018. DllExport float
  16019. UIElement_GetOpacity (Urho3D::UIElement *_target)
  16020. {
  16021. return _target->GetOpacity ();
  16022. }
  16023. DllExport float
  16024. UIElement_GetDerivedOpacity (Urho3D::UIElement *_target)
  16025. {
  16026. return _target->GetDerivedOpacity ();
  16027. }
  16028. DllExport int
  16029. UIElement_GetBringToFront (Urho3D::UIElement *_target)
  16030. {
  16031. return _target->GetBringToFront ();
  16032. }
  16033. DllExport int
  16034. UIElement_GetBringToBack (Urho3D::UIElement *_target)
  16035. {
  16036. return _target->GetBringToBack ();
  16037. }
  16038. DllExport int
  16039. UIElement_GetClipChildren (Urho3D::UIElement *_target)
  16040. {
  16041. return _target->GetClipChildren ();
  16042. }
  16043. DllExport int
  16044. UIElement_GetSortChildren (Urho3D::UIElement *_target)
  16045. {
  16046. return _target->GetSortChildren ();
  16047. }
  16048. DllExport int
  16049. UIElement_GetUseDerivedOpacity (Urho3D::UIElement *_target)
  16050. {
  16051. return _target->GetUseDerivedOpacity ();
  16052. }
  16053. DllExport int
  16054. UIElement_HasFocus (Urho3D::UIElement *_target)
  16055. {
  16056. return _target->HasFocus ();
  16057. }
  16058. DllExport int
  16059. UIElement_IsChildOf (Urho3D::UIElement *_target, Urho3D::UIElement * element)
  16060. {
  16061. return _target->IsChildOf (element);
  16062. }
  16063. DllExport int
  16064. UIElement_IsEnabled (Urho3D::UIElement *_target)
  16065. {
  16066. return _target->IsEnabled ();
  16067. }
  16068. DllExport int
  16069. UIElement_IsEnabledSelf (Urho3D::UIElement *_target)
  16070. {
  16071. return _target->IsEnabledSelf ();
  16072. }
  16073. DllExport int
  16074. UIElement_IsEditable (Urho3D::UIElement *_target)
  16075. {
  16076. return _target->IsEditable ();
  16077. }
  16078. DllExport int
  16079. UIElement_IsSelected (Urho3D::UIElement *_target)
  16080. {
  16081. return _target->IsSelected ();
  16082. }
  16083. DllExport int
  16084. UIElement_IsVisible (Urho3D::UIElement *_target)
  16085. {
  16086. return _target->IsVisible ();
  16087. }
  16088. DllExport int
  16089. UIElement_IsVisibleEffective (Urho3D::UIElement *_target)
  16090. {
  16091. return _target->IsVisibleEffective ();
  16092. }
  16093. DllExport int
  16094. UIElement_IsHovering (Urho3D::UIElement *_target)
  16095. {
  16096. return _target->IsHovering ();
  16097. }
  16098. DllExport int
  16099. UIElement_IsInternal (Urho3D::UIElement *_target)
  16100. {
  16101. return _target->IsInternal ();
  16102. }
  16103. DllExport int
  16104. UIElement_HasColorGradient (Urho3D::UIElement *_target)
  16105. {
  16106. return _target->HasColorGradient ();
  16107. }
  16108. DllExport enum Urho3D::FocusMode
  16109. UIElement_GetFocusMode (Urho3D::UIElement *_target)
  16110. {
  16111. return _target->GetFocusMode ();
  16112. }
  16113. DllExport unsigned int
  16114. UIElement_GetDragDropMode (Urho3D::UIElement *_target)
  16115. {
  16116. return _target->GetDragDropMode ();
  16117. }
  16118. DllExport const char *
  16119. UIElement_GetAppliedStyle (Urho3D::UIElement *_target)
  16120. {
  16121. return stringdup((_target->GetAppliedStyle ()).CString ());
  16122. }
  16123. DllExport Urho3D::XMLFile *
  16124. UIElement_GetDefaultStyle (Urho3D::UIElement *_target, bool recursiveUp)
  16125. {
  16126. return _target->GetDefaultStyle (recursiveUp);
  16127. }
  16128. DllExport enum Urho3D::LayoutMode
  16129. UIElement_GetLayoutMode (Urho3D::UIElement *_target)
  16130. {
  16131. return _target->GetLayoutMode ();
  16132. }
  16133. DllExport int
  16134. UIElement_GetLayoutSpacing (Urho3D::UIElement *_target)
  16135. {
  16136. return _target->GetLayoutSpacing ();
  16137. }
  16138. DllExport Interop::IntRect
  16139. UIElement_GetLayoutBorder (Urho3D::UIElement *_target)
  16140. {
  16141. return *((Interop::IntRect *) &(_target->GetLayoutBorder ()));
  16142. }
  16143. DllExport Interop::Vector2
  16144. UIElement_GetLayoutFlexScale (Urho3D::UIElement *_target)
  16145. {
  16146. return *((Interop::Vector2 *) &(_target->GetLayoutFlexScale ()));
  16147. }
  16148. DllExport unsigned int
  16149. UIElement_GetNumChildren (Urho3D::UIElement *_target, bool recursive)
  16150. {
  16151. return _target->GetNumChildren (recursive);
  16152. }
  16153. DllExport Urho3D::UIElement *
  16154. UIElement_GetChild (Urho3D::UIElement *_target, unsigned int index)
  16155. {
  16156. return _target->GetChild (index);
  16157. }
  16158. DllExport Urho3D::UIElement *
  16159. UIElement_GetChild13 (Urho3D::UIElement *_target, const char * name, bool recursive)
  16160. {
  16161. return _target->GetChild (Urho3D::String(name), recursive);
  16162. }
  16163. DllExport const Vector<SharedPtr<class Urho3D::UIElement> > &
  16164. UIElement_GetChildren (Urho3D::UIElement *_target)
  16165. {
  16166. return _target->GetChildren ();
  16167. }
  16168. DllExport Urho3D::UIElement *
  16169. UIElement_GetParent (Urho3D::UIElement *_target)
  16170. {
  16171. return _target->GetParent ();
  16172. }
  16173. DllExport Urho3D::UIElement *
  16174. UIElement_GetRoot (Urho3D::UIElement *_target)
  16175. {
  16176. return _target->GetRoot ();
  16177. }
  16178. DllExport Interop::Color
  16179. UIElement_GetDerivedColor (Urho3D::UIElement *_target)
  16180. {
  16181. return *((Interop::Color *) &(_target->GetDerivedColor ()));
  16182. }
  16183. DllExport int
  16184. UIElement_HasTag (Urho3D::UIElement *_target, const char * tag)
  16185. {
  16186. return _target->HasTag (Urho3D::String(tag));
  16187. }
  16188. DllExport int
  16189. UIElement_GetDragButtonCombo (Urho3D::UIElement *_target)
  16190. {
  16191. return _target->GetDragButtonCombo ();
  16192. }
  16193. DllExport unsigned int
  16194. UIElement_GetDragButtonCount (Urho3D::UIElement *_target)
  16195. {
  16196. return _target->GetDragButtonCount ();
  16197. }
  16198. DllExport int
  16199. UIElement_IsInside (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & position, bool isScreen)
  16200. {
  16201. return _target->IsInside (position, isScreen);
  16202. }
  16203. DllExport int
  16204. UIElement_IsInsideCombined (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & position, bool isScreen)
  16205. {
  16206. return _target->IsInsideCombined (position, isScreen);
  16207. }
  16208. DllExport Interop::IntRect
  16209. UIElement_GetCombinedScreenRect (Urho3D::UIElement *_target)
  16210. {
  16211. return *((Interop::IntRect *) &(_target->GetCombinedScreenRect ()));
  16212. }
  16213. DllExport void
  16214. UIElement_SortChildren (Urho3D::UIElement *_target)
  16215. {
  16216. _target->SortChildren ();
  16217. }
  16218. DllExport int
  16219. UIElement_GetLayoutElementMaxSize (Urho3D::UIElement *_target)
  16220. {
  16221. return _target->GetLayoutElementMaxSize ();
  16222. }
  16223. DllExport int
  16224. UIElement_GetIndent (Urho3D::UIElement *_target)
  16225. {
  16226. return _target->GetIndent ();
  16227. }
  16228. DllExport int
  16229. UIElement_GetIndentSpacing (Urho3D::UIElement *_target)
  16230. {
  16231. return _target->GetIndentSpacing ();
  16232. }
  16233. DllExport int
  16234. UIElement_GetIndentWidth (Urho3D::UIElement *_target)
  16235. {
  16236. return _target->GetIndentWidth ();
  16237. }
  16238. DllExport void
  16239. UIElement_SetChildOffset (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & offset)
  16240. {
  16241. _target->SetChildOffset (offset);
  16242. }
  16243. DllExport void
  16244. UIElement_SetHovering (Urho3D::UIElement *_target, bool enable)
  16245. {
  16246. _target->SetHovering (enable);
  16247. }
  16248. DllExport Interop::Color
  16249. UIElement_GetColorAttr (Urho3D::UIElement *_target)
  16250. {
  16251. return *((Interop::Color *) &(_target->GetColorAttr ()));
  16252. }
  16253. DllExport enum Urho3D::TraversalMode
  16254. UIElement_GetTraversalMode (Urho3D::UIElement *_target)
  16255. {
  16256. return _target->GetTraversalMode ();
  16257. }
  16258. DllExport int
  16259. UIElement_IsElementEventSender (Urho3D::UIElement *_target)
  16260. {
  16261. return _target->IsElementEventSender ();
  16262. }
  16263. DllExport Urho3D::UIElement *
  16264. UIElement_GetElementEventSender (Urho3D::UIElement *_target)
  16265. {
  16266. return _target->GetElementEventSender ();
  16267. }
  16268. DllExport Interop::IntVector2
  16269. UIElement_GetEffectiveMinSize (Urho3D::UIElement *_target)
  16270. {
  16271. return *((Interop::IntVector2 *) &(_target->GetEffectiveMinSize ()));
  16272. }
  16273. DllExport int
  16274. BorderImage_GetType (Urho3D::BorderImage *_target)
  16275. {
  16276. return (_target->GetType ()).Value ();
  16277. }
  16278. DllExport const char *
  16279. BorderImage_GetTypeName (Urho3D::BorderImage *_target)
  16280. {
  16281. return stringdup((_target->GetTypeName ()).CString ());
  16282. }
  16283. DllExport int
  16284. BorderImage_GetTypeStatic ()
  16285. {
  16286. return (BorderImage::GetTypeStatic ()).Value ();
  16287. }
  16288. DllExport const char *
  16289. BorderImage_GetTypeNameStatic ()
  16290. {
  16291. return stringdup((BorderImage::GetTypeNameStatic ()).CString ());
  16292. }
  16293. DllExport void *
  16294. BorderImage_BorderImage (Urho3D::Context * context)
  16295. {
  16296. return WeakPtr<BorderImage>(new BorderImage(context));
  16297. }
  16298. DllExport void
  16299. BorderImage_RegisterObject (Urho3D::Context * context)
  16300. {
  16301. BorderImage::RegisterObject (context);
  16302. }
  16303. DllExport void
  16304. BorderImage_SetTexture (Urho3D::BorderImage *_target, Urho3D::Texture * texture)
  16305. {
  16306. _target->SetTexture (texture);
  16307. }
  16308. DllExport void
  16309. BorderImage_SetImageRect (Urho3D::BorderImage *_target, const class Urho3D::IntRect & rect)
  16310. {
  16311. _target->SetImageRect (rect);
  16312. }
  16313. DllExport void
  16314. BorderImage_SetFullImageRect (Urho3D::BorderImage *_target)
  16315. {
  16316. _target->SetFullImageRect ();
  16317. }
  16318. DllExport void
  16319. BorderImage_SetBorder (Urho3D::BorderImage *_target, const class Urho3D::IntRect & rect)
  16320. {
  16321. _target->SetBorder (rect);
  16322. }
  16323. DllExport void
  16324. BorderImage_SetImageBorder (Urho3D::BorderImage *_target, const class Urho3D::IntRect & rect)
  16325. {
  16326. _target->SetImageBorder (rect);
  16327. }
  16328. DllExport void
  16329. BorderImage_SetHoverOffset (Urho3D::BorderImage *_target, const class Urho3D::IntVector2 & offset)
  16330. {
  16331. _target->SetHoverOffset (offset);
  16332. }
  16333. DllExport void
  16334. BorderImage_SetHoverOffset0 (Urho3D::BorderImage *_target, int x, int y)
  16335. {
  16336. _target->SetHoverOffset (x, y);
  16337. }
  16338. DllExport void
  16339. BorderImage_SetBlendMode (Urho3D::BorderImage *_target, enum Urho3D::BlendMode mode)
  16340. {
  16341. _target->SetBlendMode (mode);
  16342. }
  16343. DllExport void
  16344. BorderImage_SetTiled (Urho3D::BorderImage *_target, bool enable)
  16345. {
  16346. _target->SetTiled (enable);
  16347. }
  16348. DllExport Urho3D::Texture *
  16349. BorderImage_GetTexture (Urho3D::BorderImage *_target)
  16350. {
  16351. return _target->GetTexture ();
  16352. }
  16353. DllExport Interop::IntRect
  16354. BorderImage_GetImageRect (Urho3D::BorderImage *_target)
  16355. {
  16356. return *((Interop::IntRect *) &(_target->GetImageRect ()));
  16357. }
  16358. DllExport Interop::IntRect
  16359. BorderImage_GetBorder (Urho3D::BorderImage *_target)
  16360. {
  16361. return *((Interop::IntRect *) &(_target->GetBorder ()));
  16362. }
  16363. DllExport Interop::IntRect
  16364. BorderImage_GetImageBorder (Urho3D::BorderImage *_target)
  16365. {
  16366. return *((Interop::IntRect *) &(_target->GetImageBorder ()));
  16367. }
  16368. DllExport Interop::IntVector2
  16369. BorderImage_GetHoverOffset (Urho3D::BorderImage *_target)
  16370. {
  16371. return *((Interop::IntVector2 *) &(_target->GetHoverOffset ()));
  16372. }
  16373. DllExport enum Urho3D::BlendMode
  16374. BorderImage_GetBlendMode (Urho3D::BorderImage *_target)
  16375. {
  16376. return _target->GetBlendMode ();
  16377. }
  16378. DllExport int
  16379. BorderImage_IsTiled (Urho3D::BorderImage *_target)
  16380. {
  16381. return _target->IsTiled ();
  16382. }
  16383. DllExport Urho3D::ResourceRef
  16384. BorderImage_GetTextureAttr (Urho3D::BorderImage *_target)
  16385. {
  16386. return _target->GetTextureAttr ();
  16387. }
  16388. DllExport int
  16389. Cursor_GetType (Urho3D::Cursor *_target)
  16390. {
  16391. return (_target->GetType ()).Value ();
  16392. }
  16393. DllExport const char *
  16394. Cursor_GetTypeName (Urho3D::Cursor *_target)
  16395. {
  16396. return stringdup((_target->GetTypeName ()).CString ());
  16397. }
  16398. DllExport int
  16399. Cursor_GetTypeStatic ()
  16400. {
  16401. return (Cursor::GetTypeStatic ()).Value ();
  16402. }
  16403. DllExport const char *
  16404. Cursor_GetTypeNameStatic ()
  16405. {
  16406. return stringdup((Cursor::GetTypeNameStatic ()).CString ());
  16407. }
  16408. DllExport void *
  16409. Cursor_Cursor (Urho3D::Context * context)
  16410. {
  16411. return WeakPtr<Cursor>(new Cursor(context));
  16412. }
  16413. DllExport void
  16414. Cursor_RegisterObject (Urho3D::Context * context)
  16415. {
  16416. Cursor::RegisterObject (context);
  16417. }
  16418. DllExport void
  16419. Cursor_DefineShape (Urho3D::Cursor *_target, const char * shape, Urho3D::Image * image, const class Urho3D::IntRect & imageRect, const class Urho3D::IntVector2 & hotSpot)
  16420. {
  16421. _target->DefineShape (Urho3D::String(shape), image, imageRect, hotSpot);
  16422. }
  16423. DllExport void
  16424. Cursor_DefineShape0 (Urho3D::Cursor *_target, enum Urho3D::CursorShape shape, Urho3D::Image * image, const class Urho3D::IntRect & imageRect, const class Urho3D::IntVector2 & hotSpot)
  16425. {
  16426. _target->DefineShape (shape, image, imageRect, hotSpot);
  16427. }
  16428. DllExport void
  16429. Cursor_SetShape (Urho3D::Cursor *_target, const char * shape)
  16430. {
  16431. _target->SetShape (Urho3D::String(shape));
  16432. }
  16433. DllExport void
  16434. Cursor_SetShape1 (Urho3D::Cursor *_target, enum Urho3D::CursorShape shape)
  16435. {
  16436. _target->SetShape (shape);
  16437. }
  16438. DllExport void
  16439. Cursor_SetUseSystemShapes (Urho3D::Cursor *_target, bool enable)
  16440. {
  16441. _target->SetUseSystemShapes (enable);
  16442. }
  16443. DllExport const char *
  16444. Cursor_GetShape (Urho3D::Cursor *_target)
  16445. {
  16446. return stringdup((_target->GetShape ()).CString ());
  16447. }
  16448. DllExport int
  16449. Cursor_GetUseSystemShapes (Urho3D::Cursor *_target)
  16450. {
  16451. return _target->GetUseSystemShapes ();
  16452. }
  16453. DllExport void
  16454. Cursor_ApplyOSCursorShape (Urho3D::Cursor *_target)
  16455. {
  16456. _target->ApplyOSCursorShape ();
  16457. }
  16458. DllExport int
  16459. Input_GetType (Urho3D::Input *_target)
  16460. {
  16461. return (_target->GetType ()).Value ();
  16462. }
  16463. DllExport const char *
  16464. Input_GetTypeName (Urho3D::Input *_target)
  16465. {
  16466. return stringdup((_target->GetTypeName ()).CString ());
  16467. }
  16468. DllExport int
  16469. Input_GetTypeStatic ()
  16470. {
  16471. return (Input::GetTypeStatic ()).Value ();
  16472. }
  16473. DllExport const char *
  16474. Input_GetTypeNameStatic ()
  16475. {
  16476. return stringdup((Input::GetTypeNameStatic ()).CString ());
  16477. }
  16478. DllExport void *
  16479. Input_Input (Urho3D::Context * context)
  16480. {
  16481. return WeakPtr<Input>(new Input(context));
  16482. }
  16483. DllExport void
  16484. Input_Update (Urho3D::Input *_target)
  16485. {
  16486. _target->Update ();
  16487. }
  16488. DllExport void
  16489. Input_SetToggleFullscreen (Urho3D::Input *_target, bool enable)
  16490. {
  16491. _target->SetToggleFullscreen (enable);
  16492. }
  16493. DllExport void
  16494. Input_SetMouseVisible (Urho3D::Input *_target, bool enable, bool suppressEvent)
  16495. {
  16496. _target->SetMouseVisible (enable, suppressEvent);
  16497. }
  16498. DllExport void
  16499. Input_ResetMouseVisible (Urho3D::Input *_target)
  16500. {
  16501. _target->ResetMouseVisible ();
  16502. }
  16503. DllExport void
  16504. Input_SetMouseGrabbed (Urho3D::Input *_target, bool grab, bool suppressEvent)
  16505. {
  16506. _target->SetMouseGrabbed (grab, suppressEvent);
  16507. }
  16508. DllExport void
  16509. Input_ResetMouseGrabbed (Urho3D::Input *_target)
  16510. {
  16511. _target->ResetMouseGrabbed ();
  16512. }
  16513. DllExport void
  16514. Input_SetMouseMode (Urho3D::Input *_target, enum Urho3D::MouseMode mode, bool suppressEvent)
  16515. {
  16516. _target->SetMouseMode (mode, suppressEvent);
  16517. }
  16518. DllExport void
  16519. Input_ResetMouseMode (Urho3D::Input *_target)
  16520. {
  16521. _target->ResetMouseMode ();
  16522. }
  16523. DllExport SDL_JoystickID
  16524. Input_AddScreenJoystick (Urho3D::Input *_target, Urho3D::XMLFile * layoutFile, Urho3D::XMLFile * styleFile)
  16525. {
  16526. return _target->AddScreenJoystick (layoutFile, styleFile);
  16527. }
  16528. DllExport int
  16529. Input_RemoveScreenJoystick (Urho3D::Input *_target, SDL_JoystickID id)
  16530. {
  16531. return _target->RemoveScreenJoystick (id);
  16532. }
  16533. DllExport void
  16534. Input_SetScreenJoystickVisible (Urho3D::Input *_target, SDL_JoystickID id, bool enable)
  16535. {
  16536. _target->SetScreenJoystickVisible (id, enable);
  16537. }
  16538. DllExport void
  16539. Input_SetScreenKeyboardVisible (Urho3D::Input *_target, bool enable)
  16540. {
  16541. _target->SetScreenKeyboardVisible (enable);
  16542. }
  16543. DllExport void
  16544. Input_SetTouchEmulation (Urho3D::Input *_target, bool enable)
  16545. {
  16546. _target->SetTouchEmulation (enable);
  16547. }
  16548. DllExport void
  16549. Input_SetEnabled (Urho3D::Input *_target, bool enable)
  16550. {
  16551. _target->SetEnabled (enable);
  16552. }
  16553. DllExport int
  16554. Input_RecordGesture (Urho3D::Input *_target)
  16555. {
  16556. return _target->RecordGesture ();
  16557. }
  16558. DllExport int
  16559. Input_SaveGestures_File (Urho3D::Input *_target, File * dest)
  16560. {
  16561. return _target->SaveGestures (*dest);
  16562. }
  16563. DllExport int
  16564. Input_SaveGestures_MemoryBuffer (Urho3D::Input *_target, MemoryBuffer * dest)
  16565. {
  16566. return _target->SaveGestures (*dest);
  16567. }
  16568. DllExport int
  16569. Input_SaveGesture_File (Urho3D::Input *_target, File * dest, unsigned int gestureID)
  16570. {
  16571. return _target->SaveGesture (*dest, gestureID);
  16572. }
  16573. DllExport int
  16574. Input_SaveGesture_MemoryBuffer (Urho3D::Input *_target, MemoryBuffer * dest, unsigned int gestureID)
  16575. {
  16576. return _target->SaveGesture (*dest, gestureID);
  16577. }
  16578. DllExport unsigned int
  16579. Input_LoadGestures_File (Urho3D::Input *_target, File * source)
  16580. {
  16581. return _target->LoadGestures (*source);
  16582. }
  16583. DllExport unsigned int
  16584. Input_LoadGestures_MemoryBuffer (Urho3D::Input *_target, MemoryBuffer * source)
  16585. {
  16586. return _target->LoadGestures (*source);
  16587. }
  16588. DllExport int
  16589. Input_RemoveGesture (Urho3D::Input *_target, unsigned int gestureID)
  16590. {
  16591. return _target->RemoveGesture (gestureID);
  16592. }
  16593. DllExport void
  16594. Input_RemoveAllGestures (Urho3D::Input *_target)
  16595. {
  16596. _target->RemoveAllGestures ();
  16597. }
  16598. DllExport void
  16599. Input_SetMousePosition (Urho3D::Input *_target, const class Urho3D::IntVector2 & position)
  16600. {
  16601. _target->SetMousePosition (position);
  16602. }
  16603. DllExport void
  16604. Input_CenterMousePosition (Urho3D::Input *_target)
  16605. {
  16606. _target->CenterMousePosition ();
  16607. }
  16608. DllExport int
  16609. Input_GetKeyFromName (Urho3D::Input *_target, const char * name)
  16610. {
  16611. return _target->GetKeyFromName (Urho3D::String(name));
  16612. }
  16613. DllExport int
  16614. Input_GetKeyFromScancode (Urho3D::Input *_target, int scancode)
  16615. {
  16616. return _target->GetKeyFromScancode (scancode);
  16617. }
  16618. DllExport const char *
  16619. Input_GetKeyName (Urho3D::Input *_target, int key)
  16620. {
  16621. return stringdup((_target->GetKeyName (key)).CString ());
  16622. }
  16623. DllExport int
  16624. Input_GetScancodeFromKey (Urho3D::Input *_target, int key)
  16625. {
  16626. return _target->GetScancodeFromKey (key);
  16627. }
  16628. DllExport int
  16629. Input_GetScancodeFromName (Urho3D::Input *_target, const char * name)
  16630. {
  16631. return _target->GetScancodeFromName (Urho3D::String(name));
  16632. }
  16633. DllExport const char *
  16634. Input_GetScancodeName (Urho3D::Input *_target, int scancode)
  16635. {
  16636. return stringdup((_target->GetScancodeName (scancode)).CString ());
  16637. }
  16638. DllExport int
  16639. Input_GetKeyDown (Urho3D::Input *_target, int key)
  16640. {
  16641. return _target->GetKeyDown (key);
  16642. }
  16643. DllExport int
  16644. Input_GetKeyPress (Urho3D::Input *_target, int key)
  16645. {
  16646. return _target->GetKeyPress (key);
  16647. }
  16648. DllExport int
  16649. Input_GetScancodeDown (Urho3D::Input *_target, int scancode)
  16650. {
  16651. return _target->GetScancodeDown (scancode);
  16652. }
  16653. DllExport int
  16654. Input_GetScancodePress (Urho3D::Input *_target, int scancode)
  16655. {
  16656. return _target->GetScancodePress (scancode);
  16657. }
  16658. DllExport int
  16659. Input_GetMouseButtonDown (Urho3D::Input *_target, int button)
  16660. {
  16661. return _target->GetMouseButtonDown (button);
  16662. }
  16663. DllExport int
  16664. Input_GetMouseButtonPress (Urho3D::Input *_target, int button)
  16665. {
  16666. return _target->GetMouseButtonPress (button);
  16667. }
  16668. DllExport int
  16669. Input_GetQualifierDown (Urho3D::Input *_target, int qualifier)
  16670. {
  16671. return _target->GetQualifierDown (qualifier);
  16672. }
  16673. DllExport int
  16674. Input_GetQualifierPress (Urho3D::Input *_target, int qualifier)
  16675. {
  16676. return _target->GetQualifierPress (qualifier);
  16677. }
  16678. DllExport int
  16679. Input_GetQualifiers (Urho3D::Input *_target)
  16680. {
  16681. return _target->GetQualifiers ();
  16682. }
  16683. DllExport Interop::IntVector2
  16684. Input_GetMousePosition (Urho3D::Input *_target)
  16685. {
  16686. return *((Interop::IntVector2 *) &(_target->GetMousePosition ()));
  16687. }
  16688. DllExport Interop::IntVector2
  16689. Input_GetMouseMove (Urho3D::Input *_target)
  16690. {
  16691. return *((Interop::IntVector2 *) &(_target->GetMouseMove ()));
  16692. }
  16693. DllExport int
  16694. Input_GetMouseMoveX (Urho3D::Input *_target)
  16695. {
  16696. return _target->GetMouseMoveX ();
  16697. }
  16698. DllExport int
  16699. Input_GetMouseMoveY (Urho3D::Input *_target)
  16700. {
  16701. return _target->GetMouseMoveY ();
  16702. }
  16703. DllExport int
  16704. Input_GetMouseMoveWheel (Urho3D::Input *_target)
  16705. {
  16706. return _target->GetMouseMoveWheel ();
  16707. }
  16708. DllExport Interop::Vector2
  16709. Input_GetInputScale (Urho3D::Input *_target)
  16710. {
  16711. return *((Interop::Vector2 *) &(_target->GetInputScale ()));
  16712. }
  16713. DllExport unsigned int
  16714. Input_GetNumTouches (Urho3D::Input *_target)
  16715. {
  16716. return _target->GetNumTouches ();
  16717. }
  16718. DllExport Urho3D::TouchState *
  16719. Input_GetTouch (Urho3D::Input *_target, unsigned int index)
  16720. {
  16721. return _target->GetTouch (index);
  16722. }
  16723. DllExport unsigned int
  16724. Input_GetNumJoysticks (Urho3D::Input *_target)
  16725. {
  16726. return _target->GetNumJoysticks ();
  16727. }
  16728. DllExport Urho3D::JoystickState *
  16729. Input_GetJoystick (Urho3D::Input *_target, SDL_JoystickID id)
  16730. {
  16731. return _target->GetJoystick (id);
  16732. }
  16733. DllExport Urho3D::JoystickState *
  16734. Input_GetJoystickByIndex (Urho3D::Input *_target, unsigned int index)
  16735. {
  16736. return _target->GetJoystickByIndex (index);
  16737. }
  16738. DllExport Urho3D::JoystickState *
  16739. Input_GetJoystickByName (Urho3D::Input *_target, const char * name)
  16740. {
  16741. return _target->GetJoystickByName (Urho3D::String(name));
  16742. }
  16743. DllExport int
  16744. Input_GetToggleFullscreen (Urho3D::Input *_target)
  16745. {
  16746. return _target->GetToggleFullscreen ();
  16747. }
  16748. DllExport int
  16749. Input_IsScreenJoystickVisible (Urho3D::Input *_target, SDL_JoystickID id)
  16750. {
  16751. return _target->IsScreenJoystickVisible (id);
  16752. }
  16753. DllExport int
  16754. Input_GetScreenKeyboardSupport (Urho3D::Input *_target)
  16755. {
  16756. return _target->GetScreenKeyboardSupport ();
  16757. }
  16758. DllExport int
  16759. Input_IsScreenKeyboardVisible (Urho3D::Input *_target)
  16760. {
  16761. return _target->IsScreenKeyboardVisible ();
  16762. }
  16763. DllExport int
  16764. Input_GetTouchEmulation (Urho3D::Input *_target)
  16765. {
  16766. return _target->GetTouchEmulation ();
  16767. }
  16768. DllExport int
  16769. Input_IsMouseVisible (Urho3D::Input *_target)
  16770. {
  16771. return _target->IsMouseVisible ();
  16772. }
  16773. DllExport int
  16774. Input_IsMouseGrabbed (Urho3D::Input *_target)
  16775. {
  16776. return _target->IsMouseGrabbed ();
  16777. }
  16778. DllExport int
  16779. Input_IsMouseLocked (Urho3D::Input *_target)
  16780. {
  16781. return _target->IsMouseLocked ();
  16782. }
  16783. DllExport enum Urho3D::MouseMode
  16784. Input_GetMouseMode (Urho3D::Input *_target)
  16785. {
  16786. return _target->GetMouseMode ();
  16787. }
  16788. DllExport int
  16789. Input_HasFocus (Urho3D::Input *_target)
  16790. {
  16791. return _target->HasFocus ();
  16792. }
  16793. DllExport int
  16794. Input_IsEnabled (Urho3D::Input *_target)
  16795. {
  16796. return _target->IsEnabled ();
  16797. }
  16798. DllExport int
  16799. Input_IsMinimized (Urho3D::Input *_target)
  16800. {
  16801. return _target->IsMinimized ();
  16802. }
  16803. DllExport void *
  16804. AreaAllocator_AreaAllocator ()
  16805. {
  16806. return new AreaAllocator();
  16807. }
  16808. DllExport void *
  16809. AreaAllocator_AreaAllocator0 (int width, int height, bool fastMode)
  16810. {
  16811. return new AreaAllocator(width, height, fastMode);
  16812. }
  16813. DllExport void *
  16814. AreaAllocator_AreaAllocator1 (int width, int height, int maxWidth, int maxHeight, bool fastMode)
  16815. {
  16816. return new AreaAllocator(width, height, maxWidth, maxHeight, fastMode);
  16817. }
  16818. DllExport void
  16819. AreaAllocator_Reset (Urho3D::AreaAllocator *_target, int width, int height, int maxWidth, int maxHeight, bool fastMode)
  16820. {
  16821. _target->Reset (width, height, maxWidth, maxHeight, fastMode);
  16822. }
  16823. DllExport int
  16824. AreaAllocator_Allocate (Urho3D::AreaAllocator *_target, int width, int height, int & x, int & y)
  16825. {
  16826. return _target->Allocate (width, height, x, y);
  16827. }
  16828. DllExport int
  16829. AreaAllocator_GetWidth (Urho3D::AreaAllocator *_target)
  16830. {
  16831. return _target->GetWidth ();
  16832. }
  16833. DllExport int
  16834. AreaAllocator_GetHeight (Urho3D::AreaAllocator *_target)
  16835. {
  16836. return _target->GetHeight ();
  16837. }
  16838. DllExport int
  16839. AreaAllocator_GetFastMode (Urho3D::AreaAllocator *_target)
  16840. {
  16841. return _target->GetFastMode ();
  16842. }
  16843. DllExport int
  16844. CrowdManager_GetType (Urho3D::CrowdManager *_target)
  16845. {
  16846. return (_target->GetType ()).Value ();
  16847. }
  16848. DllExport const char *
  16849. CrowdManager_GetTypeName (Urho3D::CrowdManager *_target)
  16850. {
  16851. return stringdup((_target->GetTypeName ()).CString ());
  16852. }
  16853. DllExport int
  16854. CrowdManager_GetTypeStatic ()
  16855. {
  16856. return (CrowdManager::GetTypeStatic ()).Value ();
  16857. }
  16858. DllExport const char *
  16859. CrowdManager_GetTypeNameStatic ()
  16860. {
  16861. return stringdup((CrowdManager::GetTypeNameStatic ()).CString ());
  16862. }
  16863. DllExport void *
  16864. CrowdManager_CrowdManager (Urho3D::Context * context)
  16865. {
  16866. return WeakPtr<CrowdManager>(new CrowdManager(context));
  16867. }
  16868. DllExport void
  16869. CrowdManager_RegisterObject (Urho3D::Context * context)
  16870. {
  16871. CrowdManager::RegisterObject (context);
  16872. }
  16873. DllExport void
  16874. CrowdManager_ApplyAttributes (Urho3D::CrowdManager *_target)
  16875. {
  16876. _target->ApplyAttributes ();
  16877. }
  16878. DllExport void
  16879. CrowdManager_DrawDebugGeometry (Urho3D::CrowdManager *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  16880. {
  16881. _target->DrawDebugGeometry (debug, depthTest);
  16882. }
  16883. DllExport void
  16884. CrowdManager_DrawDebugGeometry0 (Urho3D::CrowdManager *_target, bool depthTest)
  16885. {
  16886. _target->DrawDebugGeometry (depthTest);
  16887. }
  16888. DllExport void
  16889. CrowdManager_SetCrowdTarget (Urho3D::CrowdManager *_target, const class Urho3D::Vector3 & position, Urho3D::Node * node)
  16890. {
  16891. _target->SetCrowdTarget (position, node);
  16892. }
  16893. DllExport void
  16894. CrowdManager_SetCrowdVelocity (Urho3D::CrowdManager *_target, const class Urho3D::Vector3 & velocity, Urho3D::Node * node)
  16895. {
  16896. _target->SetCrowdVelocity (velocity, node);
  16897. }
  16898. DllExport void
  16899. CrowdManager_ResetCrowdTarget (Urho3D::CrowdManager *_target, Urho3D::Node * node)
  16900. {
  16901. _target->ResetCrowdTarget (node);
  16902. }
  16903. DllExport void
  16904. CrowdManager_SetMaxAgents (Urho3D::CrowdManager *_target, unsigned int maxAgents)
  16905. {
  16906. _target->SetMaxAgents (maxAgents);
  16907. }
  16908. DllExport void
  16909. CrowdManager_SetMaxAgentRadius (Urho3D::CrowdManager *_target, float maxAgentRadius)
  16910. {
  16911. _target->SetMaxAgentRadius (maxAgentRadius);
  16912. }
  16913. DllExport void
  16914. CrowdManager_SetNavigationMesh (Urho3D::CrowdManager *_target, Urho3D::NavigationMesh * navMesh)
  16915. {
  16916. _target->SetNavigationMesh (navMesh);
  16917. }
  16918. DllExport void
  16919. CrowdManager_SetIncludeFlags (Urho3D::CrowdManager *_target, unsigned int queryFilterType, unsigned short flags)
  16920. {
  16921. _target->SetIncludeFlags (queryFilterType, flags);
  16922. }
  16923. DllExport void
  16924. CrowdManager_SetExcludeFlags (Urho3D::CrowdManager *_target, unsigned int queryFilterType, unsigned short flags)
  16925. {
  16926. _target->SetExcludeFlags (queryFilterType, flags);
  16927. }
  16928. DllExport void
  16929. CrowdManager_SetAreaCost (Urho3D::CrowdManager *_target, unsigned int queryFilterType, unsigned int areaID, float cost)
  16930. {
  16931. _target->SetAreaCost (queryFilterType, areaID, cost);
  16932. }
  16933. DllExport void
  16934. CrowdManager_SetObstacleAvoidanceParams (Urho3D::CrowdManager *_target, unsigned int obstacleAvoidanceType, const struct Urho3D::CrowdObstacleAvoidanceParams & params)
  16935. {
  16936. _target->SetObstacleAvoidanceParams (obstacleAvoidanceType, params);
  16937. }
  16938. DllExport Interop::Vector3
  16939. CrowdManager_FindNearestPoint (Urho3D::CrowdManager *_target, const class Urho3D::Vector3 & point, int queryFilterType, dtPolyRef * nearestRef)
  16940. {
  16941. return *((Interop::Vector3 *) &(_target->FindNearestPoint (point, queryFilterType, nearestRef)));
  16942. }
  16943. DllExport Interop::Vector3
  16944. CrowdManager_MoveAlongSurface (Urho3D::CrowdManager *_target, const class Urho3D::Vector3 & start, const class Urho3D::Vector3 & end, int queryFilterType, int maxVisited)
  16945. {
  16946. return *((Interop::Vector3 *) &(_target->MoveAlongSurface (start, end, queryFilterType, maxVisited)));
  16947. }
  16948. DllExport Interop::Vector3
  16949. CrowdManager_GetRandomPoint (Urho3D::CrowdManager *_target, int queryFilterType, dtPolyRef * randomRef)
  16950. {
  16951. return *((Interop::Vector3 *) &(_target->GetRandomPoint (queryFilterType, randomRef)));
  16952. }
  16953. DllExport Interop::Vector3
  16954. CrowdManager_GetRandomPointInCircle (Urho3D::CrowdManager *_target, const class Urho3D::Vector3 & center, float radius, int queryFilterType, dtPolyRef * randomRef)
  16955. {
  16956. return *((Interop::Vector3 *) &(_target->GetRandomPointInCircle (center, radius, queryFilterType, randomRef)));
  16957. }
  16958. DllExport float
  16959. CrowdManager_GetDistanceToWall (Urho3D::CrowdManager *_target, const class Urho3D::Vector3 & point, float radius, int queryFilterType, Urho3D::Vector3 * hitPos, Urho3D::Vector3 * hitNormal)
  16960. {
  16961. return _target->GetDistanceToWall (point, radius, queryFilterType, hitPos, hitNormal);
  16962. }
  16963. DllExport Interop::Vector3
  16964. CrowdManager_Raycast (Urho3D::CrowdManager *_target, const class Urho3D::Vector3 & start, const class Urho3D::Vector3 & end, int queryFilterType, Urho3D::Vector3 * hitNormal)
  16965. {
  16966. return *((Interop::Vector3 *) &(_target->Raycast (start, end, queryFilterType, hitNormal)));
  16967. }
  16968. DllExport unsigned int
  16969. CrowdManager_GetMaxAgents (Urho3D::CrowdManager *_target)
  16970. {
  16971. return _target->GetMaxAgents ();
  16972. }
  16973. DllExport float
  16974. CrowdManager_GetMaxAgentRadius (Urho3D::CrowdManager *_target)
  16975. {
  16976. return _target->GetMaxAgentRadius ();
  16977. }
  16978. DllExport Urho3D::NavigationMesh *
  16979. CrowdManager_GetNavigationMesh (Urho3D::CrowdManager *_target)
  16980. {
  16981. return _target->GetNavigationMesh ();
  16982. }
  16983. DllExport unsigned int
  16984. CrowdManager_GetNumQueryFilterTypes (Urho3D::CrowdManager *_target)
  16985. {
  16986. return _target->GetNumQueryFilterTypes ();
  16987. }
  16988. DllExport unsigned int
  16989. CrowdManager_GetNumAreas (Urho3D::CrowdManager *_target, unsigned int queryFilterType)
  16990. {
  16991. return _target->GetNumAreas (queryFilterType);
  16992. }
  16993. DllExport unsigned short
  16994. CrowdManager_GetIncludeFlags (Urho3D::CrowdManager *_target, unsigned int queryFilterType)
  16995. {
  16996. return _target->GetIncludeFlags (queryFilterType);
  16997. }
  16998. DllExport unsigned short
  16999. CrowdManager_GetExcludeFlags (Urho3D::CrowdManager *_target, unsigned int queryFilterType)
  17000. {
  17001. return _target->GetExcludeFlags (queryFilterType);
  17002. }
  17003. DllExport float
  17004. CrowdManager_GetAreaCost (Urho3D::CrowdManager *_target, unsigned int queryFilterType, unsigned int areaID)
  17005. {
  17006. return _target->GetAreaCost (queryFilterType, areaID);
  17007. }
  17008. DllExport unsigned int
  17009. CrowdManager_GetNumObstacleAvoidanceTypes (Urho3D::CrowdManager *_target)
  17010. {
  17011. return _target->GetNumObstacleAvoidanceTypes ();
  17012. }
  17013. DllExport Urho3D::CrowdObstacleAvoidanceParams
  17014. CrowdManager_GetObstacleAvoidanceParams (Urho3D::CrowdManager *_target, unsigned int obstacleAvoidanceType)
  17015. {
  17016. return _target->GetObstacleAvoidanceParams (obstacleAvoidanceType);
  17017. }
  17018. DllExport int
  17019. CrowdAgent_GetType (Urho3D::CrowdAgent *_target)
  17020. {
  17021. return (_target->GetType ()).Value ();
  17022. }
  17023. DllExport const char *
  17024. CrowdAgent_GetTypeName (Urho3D::CrowdAgent *_target)
  17025. {
  17026. return stringdup((_target->GetTypeName ()).CString ());
  17027. }
  17028. DllExport int
  17029. CrowdAgent_GetTypeStatic ()
  17030. {
  17031. return (CrowdAgent::GetTypeStatic ()).Value ();
  17032. }
  17033. DllExport const char *
  17034. CrowdAgent_GetTypeNameStatic ()
  17035. {
  17036. return stringdup((CrowdAgent::GetTypeNameStatic ()).CString ());
  17037. }
  17038. DllExport void *
  17039. CrowdAgent_CrowdAgent (Urho3D::Context * context)
  17040. {
  17041. return WeakPtr<CrowdAgent>(new CrowdAgent(context));
  17042. }
  17043. DllExport void
  17044. CrowdAgent_RegisterObject (Urho3D::Context * context)
  17045. {
  17046. CrowdAgent::RegisterObject (context);
  17047. }
  17048. DllExport void
  17049. CrowdAgent_ApplyAttributes (Urho3D::CrowdAgent *_target)
  17050. {
  17051. _target->ApplyAttributes ();
  17052. }
  17053. DllExport void
  17054. CrowdAgent_OnSetEnabled (Urho3D::CrowdAgent *_target)
  17055. {
  17056. _target->OnSetEnabled ();
  17057. }
  17058. DllExport void
  17059. CrowdAgent_DrawDebugGeometry (Urho3D::CrowdAgent *_target, bool depthTest)
  17060. {
  17061. _target->DrawDebugGeometry (depthTest);
  17062. }
  17063. DllExport void
  17064. CrowdAgent_DrawDebugGeometry0 (Urho3D::CrowdAgent *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  17065. {
  17066. _target->DrawDebugGeometry (debug, depthTest);
  17067. }
  17068. DllExport void
  17069. CrowdAgent_SetTargetPosition (Urho3D::CrowdAgent *_target, const class Urho3D::Vector3 & position)
  17070. {
  17071. _target->SetTargetPosition (position);
  17072. }
  17073. DllExport void
  17074. CrowdAgent_SetTargetVelocity (Urho3D::CrowdAgent *_target, const class Urho3D::Vector3 & velocity)
  17075. {
  17076. _target->SetTargetVelocity (velocity);
  17077. }
  17078. DllExport void
  17079. CrowdAgent_ResetTarget (Urho3D::CrowdAgent *_target)
  17080. {
  17081. _target->ResetTarget ();
  17082. }
  17083. DllExport void
  17084. CrowdAgent_SetUpdateNodePosition (Urho3D::CrowdAgent *_target, bool unodepos)
  17085. {
  17086. _target->SetUpdateNodePosition (unodepos);
  17087. }
  17088. DllExport void
  17089. CrowdAgent_SetMaxAccel (Urho3D::CrowdAgent *_target, float maxAccel)
  17090. {
  17091. _target->SetMaxAccel (maxAccel);
  17092. }
  17093. DllExport void
  17094. CrowdAgent_SetMaxSpeed (Urho3D::CrowdAgent *_target, float maxSpeed)
  17095. {
  17096. _target->SetMaxSpeed (maxSpeed);
  17097. }
  17098. DllExport void
  17099. CrowdAgent_SetRadius (Urho3D::CrowdAgent *_target, float radius)
  17100. {
  17101. _target->SetRadius (radius);
  17102. }
  17103. DllExport void
  17104. CrowdAgent_SetHeight (Urho3D::CrowdAgent *_target, float height)
  17105. {
  17106. _target->SetHeight (height);
  17107. }
  17108. DllExport void
  17109. CrowdAgent_SetQueryFilterType (Urho3D::CrowdAgent *_target, unsigned int queryFilterType)
  17110. {
  17111. _target->SetQueryFilterType (queryFilterType);
  17112. }
  17113. DllExport void
  17114. CrowdAgent_SetObstacleAvoidanceType (Urho3D::CrowdAgent *_target, unsigned int obstacleAvoidanceType)
  17115. {
  17116. _target->SetObstacleAvoidanceType (obstacleAvoidanceType);
  17117. }
  17118. DllExport void
  17119. CrowdAgent_SetNavigationQuality (Urho3D::CrowdAgent *_target, enum Urho3D::NavigationQuality val)
  17120. {
  17121. _target->SetNavigationQuality (val);
  17122. }
  17123. DllExport void
  17124. CrowdAgent_SetNavigationPushiness (Urho3D::CrowdAgent *_target, enum Urho3D::NavigationPushiness val)
  17125. {
  17126. _target->SetNavigationPushiness (val);
  17127. }
  17128. DllExport Interop::Vector3
  17129. CrowdAgent_GetPosition (Urho3D::CrowdAgent *_target)
  17130. {
  17131. return *((Interop::Vector3 *) &(_target->GetPosition ()));
  17132. }
  17133. DllExport Interop::Vector3
  17134. CrowdAgent_GetDesiredVelocity (Urho3D::CrowdAgent *_target)
  17135. {
  17136. return *((Interop::Vector3 *) &(_target->GetDesiredVelocity ()));
  17137. }
  17138. DllExport Interop::Vector3
  17139. CrowdAgent_GetActualVelocity (Urho3D::CrowdAgent *_target)
  17140. {
  17141. return *((Interop::Vector3 *) &(_target->GetActualVelocity ()));
  17142. }
  17143. DllExport Interop::Vector3
  17144. CrowdAgent_GetTargetPosition (Urho3D::CrowdAgent *_target)
  17145. {
  17146. return *((Interop::Vector3 *) &(_target->GetTargetPosition ()));
  17147. }
  17148. DllExport Interop::Vector3
  17149. CrowdAgent_GetTargetVelocity (Urho3D::CrowdAgent *_target)
  17150. {
  17151. return *((Interop::Vector3 *) &(_target->GetTargetVelocity ()));
  17152. }
  17153. DllExport enum Urho3D::CrowdAgentRequestedTarget
  17154. CrowdAgent_GetRequestedTargetType (Urho3D::CrowdAgent *_target)
  17155. {
  17156. return _target->GetRequestedTargetType ();
  17157. }
  17158. DllExport enum Urho3D::CrowdAgentState
  17159. CrowdAgent_GetAgentState (Urho3D::CrowdAgent *_target)
  17160. {
  17161. return _target->GetAgentState ();
  17162. }
  17163. DllExport enum Urho3D::CrowdAgentTargetState
  17164. CrowdAgent_GetTargetState (Urho3D::CrowdAgent *_target)
  17165. {
  17166. return _target->GetTargetState ();
  17167. }
  17168. DllExport int
  17169. CrowdAgent_GetUpdateNodePosition (Urho3D::CrowdAgent *_target)
  17170. {
  17171. return _target->GetUpdateNodePosition ();
  17172. }
  17173. DllExport int
  17174. CrowdAgent_GetAgentCrowdId (Urho3D::CrowdAgent *_target)
  17175. {
  17176. return _target->GetAgentCrowdId ();
  17177. }
  17178. DllExport float
  17179. CrowdAgent_GetMaxAccel (Urho3D::CrowdAgent *_target)
  17180. {
  17181. return _target->GetMaxAccel ();
  17182. }
  17183. DllExport float
  17184. CrowdAgent_GetMaxSpeed (Urho3D::CrowdAgent *_target)
  17185. {
  17186. return _target->GetMaxSpeed ();
  17187. }
  17188. DllExport float
  17189. CrowdAgent_GetRadius (Urho3D::CrowdAgent *_target)
  17190. {
  17191. return _target->GetRadius ();
  17192. }
  17193. DllExport float
  17194. CrowdAgent_GetHeight (Urho3D::CrowdAgent *_target)
  17195. {
  17196. return _target->GetHeight ();
  17197. }
  17198. DllExport unsigned int
  17199. CrowdAgent_GetQueryFilterType (Urho3D::CrowdAgent *_target)
  17200. {
  17201. return _target->GetQueryFilterType ();
  17202. }
  17203. DllExport unsigned int
  17204. CrowdAgent_GetObstacleAvoidanceType (Urho3D::CrowdAgent *_target)
  17205. {
  17206. return _target->GetObstacleAvoidanceType ();
  17207. }
  17208. DllExport enum Urho3D::NavigationQuality
  17209. CrowdAgent_GetNavigationQuality (Urho3D::CrowdAgent *_target)
  17210. {
  17211. return _target->GetNavigationQuality ();
  17212. }
  17213. DllExport enum Urho3D::NavigationPushiness
  17214. CrowdAgent_GetNavigationPushiness (Urho3D::CrowdAgent *_target)
  17215. {
  17216. return _target->GetNavigationPushiness ();
  17217. }
  17218. DllExport int
  17219. CrowdAgent_HasRequestedTarget (Urho3D::CrowdAgent *_target)
  17220. {
  17221. return _target->HasRequestedTarget ();
  17222. }
  17223. DllExport int
  17224. CrowdAgent_HasArrived (Urho3D::CrowdAgent *_target)
  17225. {
  17226. return _target->HasArrived ();
  17227. }
  17228. DllExport int
  17229. CrowdAgent_IsInCrowd (Urho3D::CrowdAgent *_target)
  17230. {
  17231. return _target->IsInCrowd ();
  17232. }
  17233. DllExport int
  17234. NavigationMesh_GetType (Urho3D::NavigationMesh *_target)
  17235. {
  17236. return (_target->GetType ()).Value ();
  17237. }
  17238. DllExport const char *
  17239. NavigationMesh_GetTypeName (Urho3D::NavigationMesh *_target)
  17240. {
  17241. return stringdup((_target->GetTypeName ()).CString ());
  17242. }
  17243. DllExport int
  17244. NavigationMesh_GetTypeStatic ()
  17245. {
  17246. return (NavigationMesh::GetTypeStatic ()).Value ();
  17247. }
  17248. DllExport const char *
  17249. NavigationMesh_GetTypeNameStatic ()
  17250. {
  17251. return stringdup((NavigationMesh::GetTypeNameStatic ()).CString ());
  17252. }
  17253. DllExport void *
  17254. NavigationMesh_NavigationMesh (Urho3D::Context * context)
  17255. {
  17256. return WeakPtr<NavigationMesh>(new NavigationMesh(context));
  17257. }
  17258. DllExport void
  17259. NavigationMesh_RegisterObject (Urho3D::Context * context)
  17260. {
  17261. NavigationMesh::RegisterObject (context);
  17262. }
  17263. DllExport void
  17264. NavigationMesh_DrawDebugGeometry (Urho3D::NavigationMesh *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  17265. {
  17266. _target->DrawDebugGeometry (debug, depthTest);
  17267. }
  17268. DllExport void
  17269. NavigationMesh_SetTileSize (Urho3D::NavigationMesh *_target, int size)
  17270. {
  17271. _target->SetTileSize (size);
  17272. }
  17273. DllExport void
  17274. NavigationMesh_SetCellSize (Urho3D::NavigationMesh *_target, float size)
  17275. {
  17276. _target->SetCellSize (size);
  17277. }
  17278. DllExport void
  17279. NavigationMesh_SetCellHeight (Urho3D::NavigationMesh *_target, float height)
  17280. {
  17281. _target->SetCellHeight (height);
  17282. }
  17283. DllExport void
  17284. NavigationMesh_SetAgentHeight (Urho3D::NavigationMesh *_target, float height)
  17285. {
  17286. _target->SetAgentHeight (height);
  17287. }
  17288. DllExport void
  17289. NavigationMesh_SetAgentRadius (Urho3D::NavigationMesh *_target, float radius)
  17290. {
  17291. _target->SetAgentRadius (radius);
  17292. }
  17293. DllExport void
  17294. NavigationMesh_SetAgentMaxClimb (Urho3D::NavigationMesh *_target, float maxClimb)
  17295. {
  17296. _target->SetAgentMaxClimb (maxClimb);
  17297. }
  17298. DllExport void
  17299. NavigationMesh_SetAgentMaxSlope (Urho3D::NavigationMesh *_target, float maxSlope)
  17300. {
  17301. _target->SetAgentMaxSlope (maxSlope);
  17302. }
  17303. DllExport void
  17304. NavigationMesh_SetRegionMinSize (Urho3D::NavigationMesh *_target, float size)
  17305. {
  17306. _target->SetRegionMinSize (size);
  17307. }
  17308. DllExport void
  17309. NavigationMesh_SetRegionMergeSize (Urho3D::NavigationMesh *_target, float size)
  17310. {
  17311. _target->SetRegionMergeSize (size);
  17312. }
  17313. DllExport void
  17314. NavigationMesh_SetEdgeMaxLength (Urho3D::NavigationMesh *_target, float length)
  17315. {
  17316. _target->SetEdgeMaxLength (length);
  17317. }
  17318. DllExport void
  17319. NavigationMesh_SetEdgeMaxError (Urho3D::NavigationMesh *_target, float error)
  17320. {
  17321. _target->SetEdgeMaxError (error);
  17322. }
  17323. DllExport void
  17324. NavigationMesh_SetDetailSampleDistance (Urho3D::NavigationMesh *_target, float distance)
  17325. {
  17326. _target->SetDetailSampleDistance (distance);
  17327. }
  17328. DllExport void
  17329. NavigationMesh_SetDetailSampleMaxError (Urho3D::NavigationMesh *_target, float error)
  17330. {
  17331. _target->SetDetailSampleMaxError (error);
  17332. }
  17333. DllExport void
  17334. NavigationMesh_SetPadding (Urho3D::NavigationMesh *_target, const class Urho3D::Vector3 & padding)
  17335. {
  17336. _target->SetPadding (padding);
  17337. }
  17338. DllExport void
  17339. NavigationMesh_SetAreaCost (Urho3D::NavigationMesh *_target, unsigned int areaID, float cost)
  17340. {
  17341. _target->SetAreaCost (areaID, cost);
  17342. }
  17343. DllExport int
  17344. NavigationMesh_Allocate (Urho3D::NavigationMesh *_target, const class Urho3D::BoundingBox & boundingBox, unsigned int maxTiles)
  17345. {
  17346. return _target->Allocate (boundingBox, maxTiles);
  17347. }
  17348. DllExport int
  17349. NavigationMesh_Build (Urho3D::NavigationMesh *_target)
  17350. {
  17351. return _target->Build ();
  17352. }
  17353. DllExport int
  17354. NavigationMesh_Build0 (Urho3D::NavigationMesh *_target, const class Urho3D::BoundingBox & boundingBox)
  17355. {
  17356. return _target->Build (boundingBox);
  17357. }
  17358. DllExport int
  17359. NavigationMesh_Build1 (Urho3D::NavigationMesh *_target, const class Urho3D::IntVector2 & from, const class Urho3D::IntVector2 & to)
  17360. {
  17361. return _target->Build (from, to);
  17362. }
  17363. DllExport void
  17364. NavigationMesh_RemoveTile (Urho3D::NavigationMesh *_target, const class Urho3D::IntVector2 & tile)
  17365. {
  17366. _target->RemoveTile (tile);
  17367. }
  17368. DllExport void
  17369. NavigationMesh_RemoveAllTiles (Urho3D::NavigationMesh *_target)
  17370. {
  17371. _target->RemoveAllTiles ();
  17372. }
  17373. DllExport int
  17374. NavigationMesh_HasTile (Urho3D::NavigationMesh *_target, const class Urho3D::IntVector2 & tile)
  17375. {
  17376. return _target->HasTile (tile);
  17377. }
  17378. DllExport Interop::BoundingBox
  17379. NavigationMesh_GetTileBoudningBox (Urho3D::NavigationMesh *_target, const class Urho3D::IntVector2 & tile)
  17380. {
  17381. return *((Interop::BoundingBox *) &(_target->GetTileBoudningBox (tile)));
  17382. }
  17383. DllExport Interop::IntVector2
  17384. NavigationMesh_GetTileIndex (Urho3D::NavigationMesh *_target, const class Urho3D::Vector3 & position)
  17385. {
  17386. return *((Interop::IntVector2 *) &(_target->GetTileIndex (position)));
  17387. }
  17388. DllExport Interop::Vector3
  17389. NavigationMesh_FindNearestPoint (Urho3D::NavigationMesh *_target, const class Urho3D::Vector3 & point, const class Urho3D::Vector3 & extents, const class dtQueryFilter * filter, dtPolyRef * nearestRef)
  17390. {
  17391. return *((Interop::Vector3 *) &(_target->FindNearestPoint (point, extents, filter, nearestRef)));
  17392. }
  17393. DllExport Interop::Vector3
  17394. 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)
  17395. {
  17396. return *((Interop::Vector3 *) &(_target->MoveAlongSurface (start, end, extents, maxVisited, filter)));
  17397. }
  17398. DllExport Interop::Vector3
  17399. NavigationMesh_GetRandomPoint (Urho3D::NavigationMesh *_target, const class dtQueryFilter * filter, dtPolyRef * randomRef)
  17400. {
  17401. return *((Interop::Vector3 *) &(_target->GetRandomPoint (filter, randomRef)));
  17402. }
  17403. DllExport Interop::Vector3
  17404. NavigationMesh_GetRandomPointInCircle (Urho3D::NavigationMesh *_target, const class Urho3D::Vector3 & center, float radius, const class Urho3D::Vector3 & extents, const class dtQueryFilter * filter, dtPolyRef * randomRef)
  17405. {
  17406. return *((Interop::Vector3 *) &(_target->GetRandomPointInCircle (center, radius, extents, filter, randomRef)));
  17407. }
  17408. DllExport float
  17409. 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)
  17410. {
  17411. return _target->GetDistanceToWall (point, radius, extents, filter, hitPos, hitNormal);
  17412. }
  17413. DllExport Interop::Vector3
  17414. 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)
  17415. {
  17416. return *((Interop::Vector3 *) &(_target->Raycast (start, end, extents, filter, hitNormal)));
  17417. }
  17418. DllExport void
  17419. NavigationMesh_DrawDebugGeometry2 (Urho3D::NavigationMesh *_target, bool depthTest)
  17420. {
  17421. _target->DrawDebugGeometry (depthTest);
  17422. }
  17423. DllExport const char *
  17424. NavigationMesh_GetMeshName (Urho3D::NavigationMesh *_target)
  17425. {
  17426. return stringdup((_target->GetMeshName ()).CString ());
  17427. }
  17428. DllExport void
  17429. NavigationMesh_SetMeshName (Urho3D::NavigationMesh *_target, const char * newName)
  17430. {
  17431. _target->SetMeshName (Urho3D::String(newName));
  17432. }
  17433. DllExport int
  17434. NavigationMesh_GetTileSize (Urho3D::NavigationMesh *_target)
  17435. {
  17436. return _target->GetTileSize ();
  17437. }
  17438. DllExport float
  17439. NavigationMesh_GetCellSize (Urho3D::NavigationMesh *_target)
  17440. {
  17441. return _target->GetCellSize ();
  17442. }
  17443. DllExport float
  17444. NavigationMesh_GetCellHeight (Urho3D::NavigationMesh *_target)
  17445. {
  17446. return _target->GetCellHeight ();
  17447. }
  17448. DllExport float
  17449. NavigationMesh_GetAgentHeight (Urho3D::NavigationMesh *_target)
  17450. {
  17451. return _target->GetAgentHeight ();
  17452. }
  17453. DllExport float
  17454. NavigationMesh_GetAgentRadius (Urho3D::NavigationMesh *_target)
  17455. {
  17456. return _target->GetAgentRadius ();
  17457. }
  17458. DllExport float
  17459. NavigationMesh_GetAgentMaxClimb (Urho3D::NavigationMesh *_target)
  17460. {
  17461. return _target->GetAgentMaxClimb ();
  17462. }
  17463. DllExport float
  17464. NavigationMesh_GetAgentMaxSlope (Urho3D::NavigationMesh *_target)
  17465. {
  17466. return _target->GetAgentMaxSlope ();
  17467. }
  17468. DllExport float
  17469. NavigationMesh_GetRegionMinSize (Urho3D::NavigationMesh *_target)
  17470. {
  17471. return _target->GetRegionMinSize ();
  17472. }
  17473. DllExport float
  17474. NavigationMesh_GetRegionMergeSize (Urho3D::NavigationMesh *_target)
  17475. {
  17476. return _target->GetRegionMergeSize ();
  17477. }
  17478. DllExport float
  17479. NavigationMesh_GetEdgeMaxLength (Urho3D::NavigationMesh *_target)
  17480. {
  17481. return _target->GetEdgeMaxLength ();
  17482. }
  17483. DllExport float
  17484. NavigationMesh_GetEdgeMaxError (Urho3D::NavigationMesh *_target)
  17485. {
  17486. return _target->GetEdgeMaxError ();
  17487. }
  17488. DllExport float
  17489. NavigationMesh_GetDetailSampleDistance (Urho3D::NavigationMesh *_target)
  17490. {
  17491. return _target->GetDetailSampleDistance ();
  17492. }
  17493. DllExport float
  17494. NavigationMesh_GetDetailSampleMaxError (Urho3D::NavigationMesh *_target)
  17495. {
  17496. return _target->GetDetailSampleMaxError ();
  17497. }
  17498. DllExport Interop::Vector3
  17499. NavigationMesh_GetPadding (Urho3D::NavigationMesh *_target)
  17500. {
  17501. return *((Interop::Vector3 *) &(_target->GetPadding ()));
  17502. }
  17503. DllExport float
  17504. NavigationMesh_GetAreaCost (Urho3D::NavigationMesh *_target, unsigned int areaID)
  17505. {
  17506. return _target->GetAreaCost (areaID);
  17507. }
  17508. DllExport int
  17509. NavigationMesh_IsInitialized (Urho3D::NavigationMesh *_target)
  17510. {
  17511. return _target->IsInitialized ();
  17512. }
  17513. DllExport Interop::BoundingBox
  17514. NavigationMesh_GetBoundingBox (Urho3D::NavigationMesh *_target)
  17515. {
  17516. return *((Interop::BoundingBox *) &(_target->GetBoundingBox ()));
  17517. }
  17518. DllExport Interop::BoundingBox
  17519. NavigationMesh_GetWorldBoundingBox (Urho3D::NavigationMesh *_target)
  17520. {
  17521. return *((Interop::BoundingBox *) &(_target->GetWorldBoundingBox ()));
  17522. }
  17523. DllExport Interop::IntVector2
  17524. NavigationMesh_GetNumTiles (Urho3D::NavigationMesh *_target)
  17525. {
  17526. return *((Interop::IntVector2 *) &(_target->GetNumTiles ()));
  17527. }
  17528. DllExport void
  17529. NavigationMesh_SetPartitionType (Urho3D::NavigationMesh *_target, enum Urho3D::NavmeshPartitionType aType)
  17530. {
  17531. _target->SetPartitionType (aType);
  17532. }
  17533. DllExport enum Urho3D::NavmeshPartitionType
  17534. NavigationMesh_GetPartitionType (Urho3D::NavigationMesh *_target)
  17535. {
  17536. return _target->GetPartitionType ();
  17537. }
  17538. DllExport void
  17539. NavigationMesh_SetDrawOffMeshConnections (Urho3D::NavigationMesh *_target, bool enable)
  17540. {
  17541. _target->SetDrawOffMeshConnections (enable);
  17542. }
  17543. DllExport int
  17544. NavigationMesh_GetDrawOffMeshConnections (Urho3D::NavigationMesh *_target)
  17545. {
  17546. return _target->GetDrawOffMeshConnections ();
  17547. }
  17548. DllExport void
  17549. NavigationMesh_SetDrawNavAreas (Urho3D::NavigationMesh *_target, bool enable)
  17550. {
  17551. _target->SetDrawNavAreas (enable);
  17552. }
  17553. DllExport int
  17554. NavigationMesh_GetDrawNavAreas (Urho3D::NavigationMesh *_target)
  17555. {
  17556. return _target->GetDrawNavAreas ();
  17557. }
  17558. DllExport int
  17559. DynamicNavigationMesh_GetType (Urho3D::DynamicNavigationMesh *_target)
  17560. {
  17561. return (_target->GetType ()).Value ();
  17562. }
  17563. DllExport const char *
  17564. DynamicNavigationMesh_GetTypeName (Urho3D::DynamicNavigationMesh *_target)
  17565. {
  17566. return stringdup((_target->GetTypeName ()).CString ());
  17567. }
  17568. DllExport int
  17569. DynamicNavigationMesh_GetTypeStatic ()
  17570. {
  17571. return (DynamicNavigationMesh::GetTypeStatic ()).Value ();
  17572. }
  17573. DllExport const char *
  17574. DynamicNavigationMesh_GetTypeNameStatic ()
  17575. {
  17576. return stringdup((DynamicNavigationMesh::GetTypeNameStatic ()).CString ());
  17577. }
  17578. DllExport void *
  17579. DynamicNavigationMesh_DynamicNavigationMesh (Urho3D::Context * param1)
  17580. {
  17581. return WeakPtr<DynamicNavigationMesh>(new DynamicNavigationMesh(param1));
  17582. }
  17583. DllExport void
  17584. DynamicNavigationMesh_RegisterObject (Urho3D::Context * param1)
  17585. {
  17586. DynamicNavigationMesh::RegisterObject (param1);
  17587. }
  17588. DllExport int
  17589. DynamicNavigationMesh_Allocate (Urho3D::DynamicNavigationMesh *_target, const class Urho3D::BoundingBox & boundingBox, unsigned int maxTiles)
  17590. {
  17591. return _target->Allocate (boundingBox, maxTiles);
  17592. }
  17593. DllExport int
  17594. DynamicNavigationMesh_Build (Urho3D::DynamicNavigationMesh *_target)
  17595. {
  17596. return _target->Build ();
  17597. }
  17598. DllExport int
  17599. DynamicNavigationMesh_Build0 (Urho3D::DynamicNavigationMesh *_target, const class Urho3D::BoundingBox & boundingBox)
  17600. {
  17601. return _target->Build (boundingBox);
  17602. }
  17603. DllExport int
  17604. DynamicNavigationMesh_Build1 (Urho3D::DynamicNavigationMesh *_target, const class Urho3D::IntVector2 & from, const class Urho3D::IntVector2 & to)
  17605. {
  17606. return _target->Build (from, to);
  17607. }
  17608. DllExport int
  17609. DynamicNavigationMesh_IsObstacleInTile (Urho3D::DynamicNavigationMesh *_target, Urho3D::Obstacle * obstacle, const class Urho3D::IntVector2 & tile)
  17610. {
  17611. return _target->IsObstacleInTile (obstacle, tile);
  17612. }
  17613. DllExport void
  17614. DynamicNavigationMesh_RemoveTile (Urho3D::DynamicNavigationMesh *_target, const class Urho3D::IntVector2 & tile)
  17615. {
  17616. _target->RemoveTile (tile);
  17617. }
  17618. DllExport void
  17619. DynamicNavigationMesh_RemoveAllTiles (Urho3D::DynamicNavigationMesh *_target)
  17620. {
  17621. _target->RemoveAllTiles ();
  17622. }
  17623. DllExport void
  17624. DynamicNavigationMesh_DrawDebugGeometry (Urho3D::DynamicNavigationMesh *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  17625. {
  17626. _target->DrawDebugGeometry (debug, depthTest);
  17627. }
  17628. DllExport void
  17629. DynamicNavigationMesh_DrawDebugGeometry2 (Urho3D::DynamicNavigationMesh *_target, bool depthTest)
  17630. {
  17631. _target->DrawDebugGeometry (depthTest);
  17632. }
  17633. DllExport void
  17634. DynamicNavigationMesh_SetMaxObstacles (Urho3D::DynamicNavigationMesh *_target, unsigned int maxObstacles)
  17635. {
  17636. _target->SetMaxObstacles (maxObstacles);
  17637. }
  17638. DllExport void
  17639. DynamicNavigationMesh_SetMaxLayers (Urho3D::DynamicNavigationMesh *_target, unsigned int maxLayers)
  17640. {
  17641. _target->SetMaxLayers (maxLayers);
  17642. }
  17643. DllExport unsigned int
  17644. DynamicNavigationMesh_GetMaxObstacles (Urho3D::DynamicNavigationMesh *_target)
  17645. {
  17646. return _target->GetMaxObstacles ();
  17647. }
  17648. DllExport unsigned int
  17649. DynamicNavigationMesh_GetMaxLayers (Urho3D::DynamicNavigationMesh *_target)
  17650. {
  17651. return _target->GetMaxLayers ();
  17652. }
  17653. DllExport void
  17654. DynamicNavigationMesh_SetDrawObstacles (Urho3D::DynamicNavigationMesh *_target, bool enable)
  17655. {
  17656. _target->SetDrawObstacles (enable);
  17657. }
  17658. DllExport int
  17659. DynamicNavigationMesh_GetDrawObstacles (Urho3D::DynamicNavigationMesh *_target)
  17660. {
  17661. return _target->GetDrawObstacles ();
  17662. }
  17663. DllExport int
  17664. NavArea_GetType (Urho3D::NavArea *_target)
  17665. {
  17666. return (_target->GetType ()).Value ();
  17667. }
  17668. DllExport const char *
  17669. NavArea_GetTypeName (Urho3D::NavArea *_target)
  17670. {
  17671. return stringdup((_target->GetTypeName ()).CString ());
  17672. }
  17673. DllExport int
  17674. NavArea_GetTypeStatic ()
  17675. {
  17676. return (NavArea::GetTypeStatic ()).Value ();
  17677. }
  17678. DllExport const char *
  17679. NavArea_GetTypeNameStatic ()
  17680. {
  17681. return stringdup((NavArea::GetTypeNameStatic ()).CString ());
  17682. }
  17683. DllExport void *
  17684. NavArea_NavArea (Urho3D::Context * param1)
  17685. {
  17686. return WeakPtr<NavArea>(new NavArea(param1));
  17687. }
  17688. DllExport void
  17689. NavArea_RegisterObject (Urho3D::Context * param1)
  17690. {
  17691. NavArea::RegisterObject (param1);
  17692. }
  17693. DllExport void
  17694. NavArea_DrawDebugGeometry (Urho3D::NavArea *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  17695. {
  17696. _target->DrawDebugGeometry (debug, depthTest);
  17697. }
  17698. DllExport unsigned int
  17699. NavArea_GetAreaID (Urho3D::NavArea *_target)
  17700. {
  17701. return _target->GetAreaID ();
  17702. }
  17703. DllExport void
  17704. NavArea_SetAreaID (Urho3D::NavArea *_target, unsigned int newID)
  17705. {
  17706. _target->SetAreaID (newID);
  17707. }
  17708. DllExport Interop::BoundingBox
  17709. NavArea_GetBoundingBox (Urho3D::NavArea *_target)
  17710. {
  17711. return *((Interop::BoundingBox *) &(_target->GetBoundingBox ()));
  17712. }
  17713. DllExport void
  17714. NavArea_SetBoundingBox (Urho3D::NavArea *_target, const class Urho3D::BoundingBox & bnds)
  17715. {
  17716. _target->SetBoundingBox (bnds);
  17717. }
  17718. DllExport Interop::BoundingBox
  17719. NavArea_GetWorldBoundingBox (Urho3D::NavArea *_target)
  17720. {
  17721. return *((Interop::BoundingBox *) &(_target->GetWorldBoundingBox ()));
  17722. }
  17723. DllExport int
  17724. Navigable_GetType (Urho3D::Navigable *_target)
  17725. {
  17726. return (_target->GetType ()).Value ();
  17727. }
  17728. DllExport const char *
  17729. Navigable_GetTypeName (Urho3D::Navigable *_target)
  17730. {
  17731. return stringdup((_target->GetTypeName ()).CString ());
  17732. }
  17733. DllExport int
  17734. Navigable_GetTypeStatic ()
  17735. {
  17736. return (Navigable::GetTypeStatic ()).Value ();
  17737. }
  17738. DllExport const char *
  17739. Navigable_GetTypeNameStatic ()
  17740. {
  17741. return stringdup((Navigable::GetTypeNameStatic ()).CString ());
  17742. }
  17743. DllExport void *
  17744. Navigable_Navigable (Urho3D::Context * context)
  17745. {
  17746. return WeakPtr<Navigable>(new Navigable(context));
  17747. }
  17748. DllExport void
  17749. Navigable_RegisterObject (Urho3D::Context * context)
  17750. {
  17751. Navigable::RegisterObject (context);
  17752. }
  17753. DllExport void
  17754. Navigable_SetRecursive (Urho3D::Navigable *_target, bool enable)
  17755. {
  17756. _target->SetRecursive (enable);
  17757. }
  17758. DllExport int
  17759. Navigable_IsRecursive (Urho3D::Navigable *_target)
  17760. {
  17761. return _target->IsRecursive ();
  17762. }
  17763. DllExport int
  17764. Obstacle_GetType (Urho3D::Obstacle *_target)
  17765. {
  17766. return (_target->GetType ()).Value ();
  17767. }
  17768. DllExport const char *
  17769. Obstacle_GetTypeName (Urho3D::Obstacle *_target)
  17770. {
  17771. return stringdup((_target->GetTypeName ()).CString ());
  17772. }
  17773. DllExport int
  17774. Obstacle_GetTypeStatic ()
  17775. {
  17776. return (Obstacle::GetTypeStatic ()).Value ();
  17777. }
  17778. DllExport const char *
  17779. Obstacle_GetTypeNameStatic ()
  17780. {
  17781. return stringdup((Obstacle::GetTypeNameStatic ()).CString ());
  17782. }
  17783. DllExport void *
  17784. Obstacle_Obstacle (Urho3D::Context * param1)
  17785. {
  17786. return WeakPtr<Obstacle>(new Obstacle(param1));
  17787. }
  17788. DllExport void
  17789. Obstacle_RegisterObject (Urho3D::Context * param1)
  17790. {
  17791. Obstacle::RegisterObject (param1);
  17792. }
  17793. DllExport void
  17794. Obstacle_OnSetEnabled (Urho3D::Obstacle *_target)
  17795. {
  17796. _target->OnSetEnabled ();
  17797. }
  17798. DllExport float
  17799. Obstacle_GetHeight (Urho3D::Obstacle *_target)
  17800. {
  17801. return _target->GetHeight ();
  17802. }
  17803. DllExport void
  17804. Obstacle_SetHeight (Urho3D::Obstacle *_target, float newHeight)
  17805. {
  17806. _target->SetHeight (newHeight);
  17807. }
  17808. DllExport float
  17809. Obstacle_GetRadius (Urho3D::Obstacle *_target)
  17810. {
  17811. return _target->GetRadius ();
  17812. }
  17813. DllExport void
  17814. Obstacle_SetRadius (Urho3D::Obstacle *_target, float newRadius)
  17815. {
  17816. _target->SetRadius (newRadius);
  17817. }
  17818. DllExport unsigned int
  17819. Obstacle_GetObstacleID (Urho3D::Obstacle *_target)
  17820. {
  17821. return _target->GetObstacleID ();
  17822. }
  17823. DllExport void
  17824. Obstacle_DrawDebugGeometry (Urho3D::Obstacle *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  17825. {
  17826. _target->DrawDebugGeometry (debug, depthTest);
  17827. }
  17828. DllExport void
  17829. Obstacle_DrawDebugGeometry0 (Urho3D::Obstacle *_target, bool depthTest)
  17830. {
  17831. _target->DrawDebugGeometry (depthTest);
  17832. }
  17833. DllExport int
  17834. OffMeshConnection_GetType (Urho3D::OffMeshConnection *_target)
  17835. {
  17836. return (_target->GetType ()).Value ();
  17837. }
  17838. DllExport const char *
  17839. OffMeshConnection_GetTypeName (Urho3D::OffMeshConnection *_target)
  17840. {
  17841. return stringdup((_target->GetTypeName ()).CString ());
  17842. }
  17843. DllExport int
  17844. OffMeshConnection_GetTypeStatic ()
  17845. {
  17846. return (OffMeshConnection::GetTypeStatic ()).Value ();
  17847. }
  17848. DllExport const char *
  17849. OffMeshConnection_GetTypeNameStatic ()
  17850. {
  17851. return stringdup((OffMeshConnection::GetTypeNameStatic ()).CString ());
  17852. }
  17853. DllExport void *
  17854. OffMeshConnection_OffMeshConnection (Urho3D::Context * context)
  17855. {
  17856. return WeakPtr<OffMeshConnection>(new OffMeshConnection(context));
  17857. }
  17858. DllExport void
  17859. OffMeshConnection_RegisterObject (Urho3D::Context * context)
  17860. {
  17861. OffMeshConnection::RegisterObject (context);
  17862. }
  17863. DllExport void
  17864. OffMeshConnection_ApplyAttributes (Urho3D::OffMeshConnection *_target)
  17865. {
  17866. _target->ApplyAttributes ();
  17867. }
  17868. DllExport void
  17869. OffMeshConnection_DrawDebugGeometry (Urho3D::OffMeshConnection *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  17870. {
  17871. _target->DrawDebugGeometry (debug, depthTest);
  17872. }
  17873. DllExport void
  17874. OffMeshConnection_SetEndPoint (Urho3D::OffMeshConnection *_target, Urho3D::Node * node)
  17875. {
  17876. _target->SetEndPoint (node);
  17877. }
  17878. DllExport void
  17879. OffMeshConnection_SetRadius (Urho3D::OffMeshConnection *_target, float radius)
  17880. {
  17881. _target->SetRadius (radius);
  17882. }
  17883. DllExport void
  17884. OffMeshConnection_SetBidirectional (Urho3D::OffMeshConnection *_target, bool enabled)
  17885. {
  17886. _target->SetBidirectional (enabled);
  17887. }
  17888. DllExport void
  17889. OffMeshConnection_SetMask (Urho3D::OffMeshConnection *_target, unsigned int newMask)
  17890. {
  17891. _target->SetMask (newMask);
  17892. }
  17893. DllExport void
  17894. OffMeshConnection_SetAreaID (Urho3D::OffMeshConnection *_target, unsigned int newAreaID)
  17895. {
  17896. _target->SetAreaID (newAreaID);
  17897. }
  17898. DllExport Urho3D::Node *
  17899. OffMeshConnection_GetEndPoint (Urho3D::OffMeshConnection *_target)
  17900. {
  17901. return _target->GetEndPoint ();
  17902. }
  17903. DllExport float
  17904. OffMeshConnection_GetRadius (Urho3D::OffMeshConnection *_target)
  17905. {
  17906. return _target->GetRadius ();
  17907. }
  17908. DllExport int
  17909. OffMeshConnection_IsBidirectional (Urho3D::OffMeshConnection *_target)
  17910. {
  17911. return _target->IsBidirectional ();
  17912. }
  17913. DllExport unsigned int
  17914. OffMeshConnection_GetMask (Urho3D::OffMeshConnection *_target)
  17915. {
  17916. return _target->GetMask ();
  17917. }
  17918. DllExport unsigned int
  17919. OffMeshConnection_GetAreaID (Urho3D::OffMeshConnection *_target)
  17920. {
  17921. return _target->GetAreaID ();
  17922. }
  17923. DllExport int
  17924. Connection_GetType (Urho3D::Connection *_target)
  17925. {
  17926. return (_target->GetType ()).Value ();
  17927. }
  17928. DllExport const char *
  17929. Connection_GetTypeName (Urho3D::Connection *_target)
  17930. {
  17931. return stringdup((_target->GetTypeName ()).CString ());
  17932. }
  17933. DllExport int
  17934. Connection_GetTypeStatic ()
  17935. {
  17936. return (Connection::GetTypeStatic ()).Value ();
  17937. }
  17938. DllExport const char *
  17939. Connection_GetTypeNameStatic ()
  17940. {
  17941. return stringdup((Connection::GetTypeNameStatic ()).CString ());
  17942. }
  17943. DllExport void
  17944. Connection_SendMessage (Urho3D::Connection *_target, int msgID, bool reliable, bool inOrder, const unsigned char * data, unsigned int numBytes, unsigned int contentID)
  17945. {
  17946. _target->SendMessage (msgID, reliable, inOrder, data, numBytes, contentID);
  17947. }
  17948. DllExport void
  17949. Connection_SetScene (Urho3D::Connection *_target, Urho3D::Scene * newScene)
  17950. {
  17951. _target->SetScene (newScene);
  17952. }
  17953. DllExport void
  17954. Connection_SetPosition (Urho3D::Connection *_target, const class Urho3D::Vector3 & position)
  17955. {
  17956. _target->SetPosition (position);
  17957. }
  17958. DllExport void
  17959. Connection_SetRotation (Urho3D::Connection *_target, const class Urho3D::Quaternion & rotation)
  17960. {
  17961. _target->SetRotation (rotation);
  17962. }
  17963. DllExport void
  17964. Connection_SetConnectPending (Urho3D::Connection *_target, bool connectPending)
  17965. {
  17966. _target->SetConnectPending (connectPending);
  17967. }
  17968. DllExport void
  17969. Connection_SetLogStatistics (Urho3D::Connection *_target, bool enable)
  17970. {
  17971. _target->SetLogStatistics (enable);
  17972. }
  17973. DllExport void
  17974. Connection_Disconnect (Urho3D::Connection *_target, int waitMSec)
  17975. {
  17976. _target->Disconnect (waitMSec);
  17977. }
  17978. DllExport void
  17979. Connection_SendServerUpdate (Urho3D::Connection *_target)
  17980. {
  17981. _target->SendServerUpdate ();
  17982. }
  17983. DllExport void
  17984. Connection_SendClientUpdate (Urho3D::Connection *_target)
  17985. {
  17986. _target->SendClientUpdate ();
  17987. }
  17988. DllExport void
  17989. Connection_SendRemoteEvents (Urho3D::Connection *_target)
  17990. {
  17991. _target->SendRemoteEvents ();
  17992. }
  17993. DllExport void
  17994. Connection_SendPackages (Urho3D::Connection *_target)
  17995. {
  17996. _target->SendPackages ();
  17997. }
  17998. DllExport void
  17999. Connection_ProcessPendingLatestData (Urho3D::Connection *_target)
  18000. {
  18001. _target->ProcessPendingLatestData ();
  18002. }
  18003. DllExport Urho3D::Scene *
  18004. Connection_GetScene (Urho3D::Connection *_target)
  18005. {
  18006. return _target->GetScene ();
  18007. }
  18008. DllExport unsigned char
  18009. Connection_GetTimeStamp (Urho3D::Connection *_target)
  18010. {
  18011. return _target->GetTimeStamp ();
  18012. }
  18013. DllExport Interop::Vector3
  18014. Connection_GetPosition (Urho3D::Connection *_target)
  18015. {
  18016. return *((Interop::Vector3 *) &(_target->GetPosition ()));
  18017. }
  18018. DllExport Interop::Quaternion
  18019. Connection_GetRotation (Urho3D::Connection *_target)
  18020. {
  18021. return *((Interop::Quaternion *) &(_target->GetRotation ()));
  18022. }
  18023. DllExport int
  18024. Connection_IsClient (Urho3D::Connection *_target)
  18025. {
  18026. return _target->IsClient ();
  18027. }
  18028. DllExport int
  18029. Connection_IsConnected (Urho3D::Connection *_target)
  18030. {
  18031. return _target->IsConnected ();
  18032. }
  18033. DllExport int
  18034. Connection_IsConnectPending (Urho3D::Connection *_target)
  18035. {
  18036. return _target->IsConnectPending ();
  18037. }
  18038. DllExport int
  18039. Connection_IsSceneLoaded (Urho3D::Connection *_target)
  18040. {
  18041. return _target->IsSceneLoaded ();
  18042. }
  18043. DllExport int
  18044. Connection_GetLogStatistics (Urho3D::Connection *_target)
  18045. {
  18046. return _target->GetLogStatistics ();
  18047. }
  18048. DllExport const char *
  18049. Connection_GetAddress (Urho3D::Connection *_target)
  18050. {
  18051. return stringdup((_target->GetAddress ()).CString ());
  18052. }
  18053. DllExport unsigned short
  18054. Connection_GetPort (Urho3D::Connection *_target)
  18055. {
  18056. return _target->GetPort ();
  18057. }
  18058. DllExport float
  18059. Connection_GetRoundTripTime (Urho3D::Connection *_target)
  18060. {
  18061. return _target->GetRoundTripTime ();
  18062. }
  18063. DllExport float
  18064. Connection_GetLastHeardTime (Urho3D::Connection *_target)
  18065. {
  18066. return _target->GetLastHeardTime ();
  18067. }
  18068. DllExport float
  18069. Connection_GetBytesInPerSec (Urho3D::Connection *_target)
  18070. {
  18071. return _target->GetBytesInPerSec ();
  18072. }
  18073. DllExport float
  18074. Connection_GetBytesOutPerSec (Urho3D::Connection *_target)
  18075. {
  18076. return _target->GetBytesOutPerSec ();
  18077. }
  18078. DllExport float
  18079. Connection_GetPacketsInPerSec (Urho3D::Connection *_target)
  18080. {
  18081. return _target->GetPacketsInPerSec ();
  18082. }
  18083. DllExport float
  18084. Connection_GetPacketsOutPerSec (Urho3D::Connection *_target)
  18085. {
  18086. return _target->GetPacketsOutPerSec ();
  18087. }
  18088. DllExport const char *
  18089. Connection_ToString (Urho3D::Connection *_target)
  18090. {
  18091. return stringdup((_target->ToString ()).CString ());
  18092. }
  18093. DllExport unsigned int
  18094. Connection_GetNumDownloads (Urho3D::Connection *_target)
  18095. {
  18096. return _target->GetNumDownloads ();
  18097. }
  18098. DllExport const char *
  18099. Connection_GetDownloadName (Urho3D::Connection *_target)
  18100. {
  18101. return stringdup((_target->GetDownloadName ()).CString ());
  18102. }
  18103. DllExport float
  18104. Connection_GetDownloadProgress (Urho3D::Connection *_target)
  18105. {
  18106. return _target->GetDownloadProgress ();
  18107. }
  18108. DllExport void
  18109. Connection_SendPackageToClient (Urho3D::Connection *_target, Urho3D::PackageFile * package)
  18110. {
  18111. _target->SendPackageToClient (package);
  18112. }
  18113. DllExport void
  18114. Connection_ConfigureNetworkSimulator (Urho3D::Connection *_target, int latencyMs, float packetLoss)
  18115. {
  18116. _target->ConfigureNetworkSimulator (latencyMs, packetLoss);
  18117. }
  18118. DllExport void
  18119. HttpRequest_ThreadFunction (Urho3D::HttpRequest *_target)
  18120. {
  18121. _target->ThreadFunction ();
  18122. }
  18123. DllExport unsigned int
  18124. HttpRequest_Read (Urho3D::HttpRequest *_target, void * dest, unsigned int size)
  18125. {
  18126. return _target->Read (dest, size);
  18127. }
  18128. DllExport unsigned int
  18129. HttpRequest_Seek (Urho3D::HttpRequest *_target, unsigned int position)
  18130. {
  18131. return _target->Seek (position);
  18132. }
  18133. DllExport int
  18134. HttpRequest_IsEof (Urho3D::HttpRequest *_target)
  18135. {
  18136. return _target->IsEof ();
  18137. }
  18138. DllExport const char *
  18139. HttpRequest_GetURL (Urho3D::HttpRequest *_target)
  18140. {
  18141. return stringdup((_target->GetURL ()).CString ());
  18142. }
  18143. DllExport const char *
  18144. HttpRequest_GetVerb (Urho3D::HttpRequest *_target)
  18145. {
  18146. return stringdup((_target->GetVerb ()).CString ());
  18147. }
  18148. DllExport const char *
  18149. HttpRequest_GetError (Urho3D::HttpRequest *_target)
  18150. {
  18151. return stringdup((_target->GetError ()).CString ());
  18152. }
  18153. DllExport enum Urho3D::HttpRequestState
  18154. HttpRequest_GetState (Urho3D::HttpRequest *_target)
  18155. {
  18156. return _target->GetState ();
  18157. }
  18158. DllExport unsigned int
  18159. HttpRequest_GetAvailableSize (Urho3D::HttpRequest *_target)
  18160. {
  18161. return _target->GetAvailableSize ();
  18162. }
  18163. DllExport int
  18164. HttpRequest_IsOpen (Urho3D::HttpRequest *_target)
  18165. {
  18166. return _target->IsOpen ();
  18167. }
  18168. DllExport int
  18169. Network_GetType (Urho3D::Network *_target)
  18170. {
  18171. return (_target->GetType ()).Value ();
  18172. }
  18173. DllExport const char *
  18174. Network_GetTypeName (Urho3D::Network *_target)
  18175. {
  18176. return stringdup((_target->GetTypeName ()).CString ());
  18177. }
  18178. DllExport int
  18179. Network_GetTypeStatic ()
  18180. {
  18181. return (Network::GetTypeStatic ()).Value ();
  18182. }
  18183. DllExport const char *
  18184. Network_GetTypeNameStatic ()
  18185. {
  18186. return stringdup((Network::GetTypeNameStatic ()).CString ());
  18187. }
  18188. DllExport void *
  18189. Network_Network (Urho3D::Context * context)
  18190. {
  18191. return WeakPtr<Network>(new Network(context));
  18192. }
  18193. DllExport void
  18194. Network_Disconnect (Urho3D::Network *_target, int waitMSec)
  18195. {
  18196. _target->Disconnect (waitMSec);
  18197. }
  18198. DllExport int
  18199. Network_StartServer (Urho3D::Network *_target, unsigned short port)
  18200. {
  18201. return _target->StartServer (port);
  18202. }
  18203. DllExport void
  18204. Network_StopServer (Urho3D::Network *_target)
  18205. {
  18206. _target->StopServer ();
  18207. }
  18208. DllExport void
  18209. Network_BroadcastMessage (Urho3D::Network *_target, int msgID, bool reliable, bool inOrder, const unsigned char * data, unsigned int numBytes, unsigned int contentID)
  18210. {
  18211. _target->BroadcastMessage (msgID, reliable, inOrder, data, numBytes, contentID);
  18212. }
  18213. DllExport void
  18214. Network_SetUpdateFps (Urho3D::Network *_target, int fps)
  18215. {
  18216. _target->SetUpdateFps (fps);
  18217. }
  18218. DllExport void
  18219. Network_SetSimulatedLatency (Urho3D::Network *_target, int ms)
  18220. {
  18221. _target->SetSimulatedLatency (ms);
  18222. }
  18223. DllExport void
  18224. Network_SetSimulatedPacketLoss (Urho3D::Network *_target, float probability)
  18225. {
  18226. _target->SetSimulatedPacketLoss (probability);
  18227. }
  18228. DllExport void
  18229. Network_RegisterRemoteEvent (Urho3D::Network *_target, int eventType)
  18230. {
  18231. _target->RegisterRemoteEvent (Urho3D::StringHash(eventType));
  18232. }
  18233. DllExport void
  18234. Network_UnregisterRemoteEvent (Urho3D::Network *_target, int eventType)
  18235. {
  18236. _target->UnregisterRemoteEvent (Urho3D::StringHash(eventType));
  18237. }
  18238. DllExport void
  18239. Network_UnregisterAllRemoteEvents (Urho3D::Network *_target)
  18240. {
  18241. _target->UnregisterAllRemoteEvents ();
  18242. }
  18243. DllExport void
  18244. Network_SetPackageCacheDir (Urho3D::Network *_target, const char * path)
  18245. {
  18246. _target->SetPackageCacheDir (Urho3D::String(path));
  18247. }
  18248. DllExport void
  18249. Network_SendPackageToClients (Urho3D::Network *_target, Urho3D::Scene * scene, Urho3D::PackageFile * package)
  18250. {
  18251. _target->SendPackageToClients (scene, package);
  18252. }
  18253. DllExport int
  18254. Network_GetUpdateFps (Urho3D::Network *_target)
  18255. {
  18256. return _target->GetUpdateFps ();
  18257. }
  18258. DllExport int
  18259. Network_GetSimulatedLatency (Urho3D::Network *_target)
  18260. {
  18261. return _target->GetSimulatedLatency ();
  18262. }
  18263. DllExport float
  18264. Network_GetSimulatedPacketLoss (Urho3D::Network *_target)
  18265. {
  18266. return _target->GetSimulatedPacketLoss ();
  18267. }
  18268. DllExport Urho3D::Connection *
  18269. Network_GetServerConnection (Urho3D::Network *_target)
  18270. {
  18271. return _target->GetServerConnection ();
  18272. }
  18273. DllExport int
  18274. Network_IsServerRunning (Urho3D::Network *_target)
  18275. {
  18276. return _target->IsServerRunning ();
  18277. }
  18278. DllExport int
  18279. Network_CheckRemoteEvent (Urho3D::Network *_target, int eventType)
  18280. {
  18281. return _target->CheckRemoteEvent (Urho3D::StringHash(eventType));
  18282. }
  18283. DllExport const char *
  18284. Network_GetPackageCacheDir (Urho3D::Network *_target)
  18285. {
  18286. return stringdup((_target->GetPackageCacheDir ()).CString ());
  18287. }
  18288. DllExport void
  18289. Network_Update (Urho3D::Network *_target, float timeStep)
  18290. {
  18291. _target->Update (timeStep);
  18292. }
  18293. DllExport void
  18294. Network_PostUpdate (Urho3D::Network *_target, float timeStep)
  18295. {
  18296. _target->PostUpdate (timeStep);
  18297. }
  18298. DllExport int
  18299. NetworkPriority_GetType (Urho3D::NetworkPriority *_target)
  18300. {
  18301. return (_target->GetType ()).Value ();
  18302. }
  18303. DllExport const char *
  18304. NetworkPriority_GetTypeName (Urho3D::NetworkPriority *_target)
  18305. {
  18306. return stringdup((_target->GetTypeName ()).CString ());
  18307. }
  18308. DllExport int
  18309. NetworkPriority_GetTypeStatic ()
  18310. {
  18311. return (NetworkPriority::GetTypeStatic ()).Value ();
  18312. }
  18313. DllExport const char *
  18314. NetworkPriority_GetTypeNameStatic ()
  18315. {
  18316. return stringdup((NetworkPriority::GetTypeNameStatic ()).CString ());
  18317. }
  18318. DllExport void *
  18319. NetworkPriority_NetworkPriority (Urho3D::Context * context)
  18320. {
  18321. return WeakPtr<NetworkPriority>(new NetworkPriority(context));
  18322. }
  18323. DllExport void
  18324. NetworkPriority_RegisterObject (Urho3D::Context * context)
  18325. {
  18326. NetworkPriority::RegisterObject (context);
  18327. }
  18328. DllExport void
  18329. NetworkPriority_SetBasePriority (Urho3D::NetworkPriority *_target, float priority)
  18330. {
  18331. _target->SetBasePriority (priority);
  18332. }
  18333. DllExport void
  18334. NetworkPriority_SetDistanceFactor (Urho3D::NetworkPriority *_target, float factor)
  18335. {
  18336. _target->SetDistanceFactor (factor);
  18337. }
  18338. DllExport void
  18339. NetworkPriority_SetMinPriority (Urho3D::NetworkPriority *_target, float priority)
  18340. {
  18341. _target->SetMinPriority (priority);
  18342. }
  18343. DllExport void
  18344. NetworkPriority_SetAlwaysUpdateOwner (Urho3D::NetworkPriority *_target, bool enable)
  18345. {
  18346. _target->SetAlwaysUpdateOwner (enable);
  18347. }
  18348. DllExport float
  18349. NetworkPriority_GetBasePriority (Urho3D::NetworkPriority *_target)
  18350. {
  18351. return _target->GetBasePriority ();
  18352. }
  18353. DllExport float
  18354. NetworkPriority_GetDistanceFactor (Urho3D::NetworkPriority *_target)
  18355. {
  18356. return _target->GetDistanceFactor ();
  18357. }
  18358. DllExport float
  18359. NetworkPriority_GetMinPriority (Urho3D::NetworkPriority *_target)
  18360. {
  18361. return _target->GetMinPriority ();
  18362. }
  18363. DllExport int
  18364. NetworkPriority_GetAlwaysUpdateOwner (Urho3D::NetworkPriority *_target)
  18365. {
  18366. return _target->GetAlwaysUpdateOwner ();
  18367. }
  18368. DllExport int
  18369. NetworkPriority_CheckUpdate (Urho3D::NetworkPriority *_target, float distance, float & accumulator)
  18370. {
  18371. return _target->CheckUpdate (distance, accumulator);
  18372. }
  18373. DllExport void *
  18374. TriangleMeshData_TriangleMeshData (Urho3D::Model * model, unsigned int lodLevel)
  18375. {
  18376. return WeakPtr<TriangleMeshData>(new TriangleMeshData(model, lodLevel));
  18377. }
  18378. DllExport void *
  18379. TriangleMeshData_TriangleMeshData0 (Urho3D::CustomGeometry * custom)
  18380. {
  18381. return WeakPtr<TriangleMeshData>(new TriangleMeshData(custom));
  18382. }
  18383. DllExport void *
  18384. GImpactMeshData_GImpactMeshData (Urho3D::Model * model, unsigned int lodLevel)
  18385. {
  18386. return WeakPtr<GImpactMeshData>(new GImpactMeshData(model, lodLevel));
  18387. }
  18388. DllExport void *
  18389. GImpactMeshData_GImpactMeshData0 (Urho3D::CustomGeometry * custom)
  18390. {
  18391. return WeakPtr<GImpactMeshData>(new GImpactMeshData(custom));
  18392. }
  18393. DllExport void *
  18394. ConvexData_ConvexData (Urho3D::Model * model, unsigned int lodLevel)
  18395. {
  18396. return WeakPtr<ConvexData>(new ConvexData(model, lodLevel));
  18397. }
  18398. DllExport void *
  18399. ConvexData_ConvexData0 (Urho3D::CustomGeometry * custom)
  18400. {
  18401. return WeakPtr<ConvexData>(new ConvexData(custom));
  18402. }
  18403. DllExport void *
  18404. HeightfieldData_HeightfieldData (Urho3D::Terrain * terrain, unsigned int lodLevel)
  18405. {
  18406. return WeakPtr<HeightfieldData>(new HeightfieldData(terrain, lodLevel));
  18407. }
  18408. DllExport int
  18409. CollisionShape_GetType (Urho3D::CollisionShape *_target)
  18410. {
  18411. return (_target->GetType ()).Value ();
  18412. }
  18413. DllExport const char *
  18414. CollisionShape_GetTypeName (Urho3D::CollisionShape *_target)
  18415. {
  18416. return stringdup((_target->GetTypeName ()).CString ());
  18417. }
  18418. DllExport int
  18419. CollisionShape_GetTypeStatic ()
  18420. {
  18421. return (CollisionShape::GetTypeStatic ()).Value ();
  18422. }
  18423. DllExport const char *
  18424. CollisionShape_GetTypeNameStatic ()
  18425. {
  18426. return stringdup((CollisionShape::GetTypeNameStatic ()).CString ());
  18427. }
  18428. DllExport void *
  18429. CollisionShape_CollisionShape (Urho3D::Context * context)
  18430. {
  18431. return WeakPtr<CollisionShape>(new CollisionShape(context));
  18432. }
  18433. DllExport void
  18434. CollisionShape_RegisterObject (Urho3D::Context * context)
  18435. {
  18436. CollisionShape::RegisterObject (context);
  18437. }
  18438. DllExport void
  18439. CollisionShape_ApplyAttributes (Urho3D::CollisionShape *_target)
  18440. {
  18441. _target->ApplyAttributes ();
  18442. }
  18443. DllExport void
  18444. CollisionShape_OnSetEnabled (Urho3D::CollisionShape *_target)
  18445. {
  18446. _target->OnSetEnabled ();
  18447. }
  18448. DllExport void
  18449. CollisionShape_DrawDebugGeometry (Urho3D::CollisionShape *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  18450. {
  18451. _target->DrawDebugGeometry (debug, depthTest);
  18452. }
  18453. DllExport void
  18454. CollisionShape_SetBox (Urho3D::CollisionShape *_target, const class Urho3D::Vector3 & size, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  18455. {
  18456. _target->SetBox (size, position, rotation);
  18457. }
  18458. DllExport void
  18459. CollisionShape_SetSphere (Urho3D::CollisionShape *_target, float diameter, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  18460. {
  18461. _target->SetSphere (diameter, position, rotation);
  18462. }
  18463. DllExport void
  18464. CollisionShape_SetStaticPlane (Urho3D::CollisionShape *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  18465. {
  18466. _target->SetStaticPlane (position, rotation);
  18467. }
  18468. DllExport void
  18469. CollisionShape_SetCylinder (Urho3D::CollisionShape *_target, float diameter, float height, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  18470. {
  18471. _target->SetCylinder (diameter, height, position, rotation);
  18472. }
  18473. DllExport void
  18474. CollisionShape_SetCapsule (Urho3D::CollisionShape *_target, float diameter, float height, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  18475. {
  18476. _target->SetCapsule (diameter, height, position, rotation);
  18477. }
  18478. DllExport void
  18479. CollisionShape_SetCone (Urho3D::CollisionShape *_target, float diameter, float height, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  18480. {
  18481. _target->SetCone (diameter, height, position, rotation);
  18482. }
  18483. DllExport void
  18484. 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)
  18485. {
  18486. _target->SetTriangleMesh (model, lodLevel, scale, position, rotation);
  18487. }
  18488. DllExport void
  18489. CollisionShape_SetCustomTriangleMesh (Urho3D::CollisionShape *_target, Urho3D::CustomGeometry * custom, const class Urho3D::Vector3 & scale, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  18490. {
  18491. _target->SetCustomTriangleMesh (custom, scale, position, rotation);
  18492. }
  18493. DllExport void
  18494. 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)
  18495. {
  18496. _target->SetConvexHull (model, lodLevel, scale, position, rotation);
  18497. }
  18498. DllExport void
  18499. CollisionShape_SetCustomConvexHull (Urho3D::CollisionShape *_target, Urho3D::CustomGeometry * custom, const class Urho3D::Vector3 & scale, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  18500. {
  18501. _target->SetCustomConvexHull (custom, scale, position, rotation);
  18502. }
  18503. DllExport void
  18504. CollisionShape_SetGImpactMesh (Urho3D::CollisionShape *_target, Urho3D::Model * model, unsigned int lodLevel, const class Urho3D::Vector3 & scale, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  18505. {
  18506. _target->SetGImpactMesh (model, lodLevel, scale, position, rotation);
  18507. }
  18508. DllExport void
  18509. CollisionShape_SetCustomGImpactMesh (Urho3D::CollisionShape *_target, Urho3D::CustomGeometry * custom, const class Urho3D::Vector3 & scale, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  18510. {
  18511. _target->SetCustomGImpactMesh (custom, scale, position, rotation);
  18512. }
  18513. DllExport void
  18514. CollisionShape_SetTerrain (Urho3D::CollisionShape *_target, unsigned int lodLevel)
  18515. {
  18516. _target->SetTerrain (lodLevel);
  18517. }
  18518. DllExport void
  18519. CollisionShape_SetShapeType (Urho3D::CollisionShape *_target, enum Urho3D::ShapeType type)
  18520. {
  18521. _target->SetShapeType (type);
  18522. }
  18523. DllExport void
  18524. CollisionShape_SetSize (Urho3D::CollisionShape *_target, const class Urho3D::Vector3 & size)
  18525. {
  18526. _target->SetSize (size);
  18527. }
  18528. DllExport void
  18529. CollisionShape_SetPosition (Urho3D::CollisionShape *_target, const class Urho3D::Vector3 & position)
  18530. {
  18531. _target->SetPosition (position);
  18532. }
  18533. DllExport void
  18534. CollisionShape_SetRotation (Urho3D::CollisionShape *_target, const class Urho3D::Quaternion & rotation)
  18535. {
  18536. _target->SetRotation (rotation);
  18537. }
  18538. DllExport void
  18539. CollisionShape_SetTransform (Urho3D::CollisionShape *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  18540. {
  18541. _target->SetTransform (position, rotation);
  18542. }
  18543. DllExport void
  18544. CollisionShape_SetMargin (Urho3D::CollisionShape *_target, float margin)
  18545. {
  18546. _target->SetMargin (margin);
  18547. }
  18548. DllExport void
  18549. CollisionShape_SetModel (Urho3D::CollisionShape *_target, Urho3D::Model * model)
  18550. {
  18551. _target->SetModel (model);
  18552. }
  18553. DllExport void
  18554. CollisionShape_SetLodLevel (Urho3D::CollisionShape *_target, unsigned int lodLevel)
  18555. {
  18556. _target->SetLodLevel (lodLevel);
  18557. }
  18558. DllExport Urho3D::PhysicsWorld *
  18559. CollisionShape_GetPhysicsWorld (Urho3D::CollisionShape *_target)
  18560. {
  18561. return _target->GetPhysicsWorld ();
  18562. }
  18563. DllExport enum Urho3D::ShapeType
  18564. CollisionShape_GetShapeType (Urho3D::CollisionShape *_target)
  18565. {
  18566. return _target->GetShapeType ();
  18567. }
  18568. DllExport Interop::Vector3
  18569. CollisionShape_GetSize (Urho3D::CollisionShape *_target)
  18570. {
  18571. return *((Interop::Vector3 *) &(_target->GetSize ()));
  18572. }
  18573. DllExport Interop::Vector3
  18574. CollisionShape_GetPosition (Urho3D::CollisionShape *_target)
  18575. {
  18576. return *((Interop::Vector3 *) &(_target->GetPosition ()));
  18577. }
  18578. DllExport Interop::Quaternion
  18579. CollisionShape_GetRotation (Urho3D::CollisionShape *_target)
  18580. {
  18581. return *((Interop::Quaternion *) &(_target->GetRotation ()));
  18582. }
  18583. DllExport float
  18584. CollisionShape_GetMargin (Urho3D::CollisionShape *_target)
  18585. {
  18586. return _target->GetMargin ();
  18587. }
  18588. DllExport Urho3D::Model *
  18589. CollisionShape_GetModel (Urho3D::CollisionShape *_target)
  18590. {
  18591. return _target->GetModel ();
  18592. }
  18593. DllExport unsigned int
  18594. CollisionShape_GetLodLevel (Urho3D::CollisionShape *_target)
  18595. {
  18596. return _target->GetLodLevel ();
  18597. }
  18598. DllExport Interop::BoundingBox
  18599. CollisionShape_GetWorldBoundingBox (Urho3D::CollisionShape *_target)
  18600. {
  18601. return *((Interop::BoundingBox *) &(_target->GetWorldBoundingBox ()));
  18602. }
  18603. DllExport void
  18604. CollisionShape_NotifyRigidBody (Urho3D::CollisionShape *_target, bool updateMass)
  18605. {
  18606. _target->NotifyRigidBody (updateMass);
  18607. }
  18608. DllExport Urho3D::ResourceRef
  18609. CollisionShape_GetModelAttr (Urho3D::CollisionShape *_target)
  18610. {
  18611. return _target->GetModelAttr ();
  18612. }
  18613. DllExport void
  18614. CollisionShape_ReleaseShape (Urho3D::CollisionShape *_target)
  18615. {
  18616. _target->ReleaseShape ();
  18617. }
  18618. DllExport int
  18619. Constraint_GetType (Urho3D::Constraint *_target)
  18620. {
  18621. return (_target->GetType ()).Value ();
  18622. }
  18623. DllExport const char *
  18624. Constraint_GetTypeName (Urho3D::Constraint *_target)
  18625. {
  18626. return stringdup((_target->GetTypeName ()).CString ());
  18627. }
  18628. DllExport int
  18629. Constraint_GetTypeStatic ()
  18630. {
  18631. return (Constraint::GetTypeStatic ()).Value ();
  18632. }
  18633. DllExport const char *
  18634. Constraint_GetTypeNameStatic ()
  18635. {
  18636. return stringdup((Constraint::GetTypeNameStatic ()).CString ());
  18637. }
  18638. DllExport void *
  18639. Constraint_Constraint (Urho3D::Context * context)
  18640. {
  18641. return WeakPtr<Constraint>(new Constraint(context));
  18642. }
  18643. DllExport void
  18644. Constraint_RegisterObject (Urho3D::Context * context)
  18645. {
  18646. Constraint::RegisterObject (context);
  18647. }
  18648. DllExport void
  18649. Constraint_ApplyAttributes (Urho3D::Constraint *_target)
  18650. {
  18651. _target->ApplyAttributes ();
  18652. }
  18653. DllExport void
  18654. Constraint_OnSetEnabled (Urho3D::Constraint *_target)
  18655. {
  18656. _target->OnSetEnabled ();
  18657. }
  18658. DllExport void
  18659. Constraint_DrawDebugGeometry (Urho3D::Constraint *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  18660. {
  18661. _target->DrawDebugGeometry (debug, depthTest);
  18662. }
  18663. DllExport void
  18664. Constraint_SetConstraintType (Urho3D::Constraint *_target, enum Urho3D::ConstraintType type)
  18665. {
  18666. _target->SetConstraintType (type);
  18667. }
  18668. DllExport void
  18669. Constraint_SetOtherBody (Urho3D::Constraint *_target, Urho3D::RigidBody * body)
  18670. {
  18671. _target->SetOtherBody (body);
  18672. }
  18673. DllExport void
  18674. Constraint_SetPosition (Urho3D::Constraint *_target, const class Urho3D::Vector3 & position)
  18675. {
  18676. _target->SetPosition (position);
  18677. }
  18678. DllExport void
  18679. Constraint_SetRotation (Urho3D::Constraint *_target, const class Urho3D::Quaternion & rotation)
  18680. {
  18681. _target->SetRotation (rotation);
  18682. }
  18683. DllExport void
  18684. Constraint_SetAxis (Urho3D::Constraint *_target, const class Urho3D::Vector3 & axis)
  18685. {
  18686. _target->SetAxis (axis);
  18687. }
  18688. DllExport void
  18689. Constraint_SetOtherPosition (Urho3D::Constraint *_target, const class Urho3D::Vector3 & position)
  18690. {
  18691. _target->SetOtherPosition (position);
  18692. }
  18693. DllExport void
  18694. Constraint_SetOtherRotation (Urho3D::Constraint *_target, const class Urho3D::Quaternion & rotation)
  18695. {
  18696. _target->SetOtherRotation (rotation);
  18697. }
  18698. DllExport void
  18699. Constraint_SetOtherAxis (Urho3D::Constraint *_target, const class Urho3D::Vector3 & axis)
  18700. {
  18701. _target->SetOtherAxis (axis);
  18702. }
  18703. DllExport void
  18704. Constraint_SetWorldPosition (Urho3D::Constraint *_target, const class Urho3D::Vector3 & position)
  18705. {
  18706. _target->SetWorldPosition (position);
  18707. }
  18708. DllExport void
  18709. Constraint_SetHighLimit (Urho3D::Constraint *_target, const class Urho3D::Vector2 & limit)
  18710. {
  18711. _target->SetHighLimit (limit);
  18712. }
  18713. DllExport void
  18714. Constraint_SetLowLimit (Urho3D::Constraint *_target, const class Urho3D::Vector2 & limit)
  18715. {
  18716. _target->SetLowLimit (limit);
  18717. }
  18718. DllExport void
  18719. Constraint_SetERP (Urho3D::Constraint *_target, float erp)
  18720. {
  18721. _target->SetERP (erp);
  18722. }
  18723. DllExport void
  18724. Constraint_SetCFM (Urho3D::Constraint *_target, float cfm)
  18725. {
  18726. _target->SetCFM (cfm);
  18727. }
  18728. DllExport void
  18729. Constraint_SetDisableCollision (Urho3D::Constraint *_target, bool disable)
  18730. {
  18731. _target->SetDisableCollision (disable);
  18732. }
  18733. DllExport Urho3D::PhysicsWorld *
  18734. Constraint_GetPhysicsWorld (Urho3D::Constraint *_target)
  18735. {
  18736. return _target->GetPhysicsWorld ();
  18737. }
  18738. DllExport enum Urho3D::ConstraintType
  18739. Constraint_GetConstraintType (Urho3D::Constraint *_target)
  18740. {
  18741. return _target->GetConstraintType ();
  18742. }
  18743. DllExport Urho3D::RigidBody *
  18744. Constraint_GetOwnBody (Urho3D::Constraint *_target)
  18745. {
  18746. return _target->GetOwnBody ();
  18747. }
  18748. DllExport Urho3D::RigidBody *
  18749. Constraint_GetOtherBody (Urho3D::Constraint *_target)
  18750. {
  18751. return _target->GetOtherBody ();
  18752. }
  18753. DllExport Interop::Vector3
  18754. Constraint_GetPosition (Urho3D::Constraint *_target)
  18755. {
  18756. return *((Interop::Vector3 *) &(_target->GetPosition ()));
  18757. }
  18758. DllExport Interop::Quaternion
  18759. Constraint_GetRotation (Urho3D::Constraint *_target)
  18760. {
  18761. return *((Interop::Quaternion *) &(_target->GetRotation ()));
  18762. }
  18763. DllExport Interop::Vector3
  18764. Constraint_GetOtherPosition (Urho3D::Constraint *_target)
  18765. {
  18766. return *((Interop::Vector3 *) &(_target->GetOtherPosition ()));
  18767. }
  18768. DllExport Interop::Quaternion
  18769. Constraint_GetOtherRotation (Urho3D::Constraint *_target)
  18770. {
  18771. return *((Interop::Quaternion *) &(_target->GetOtherRotation ()));
  18772. }
  18773. DllExport Interop::Vector3
  18774. Constraint_GetWorldPosition (Urho3D::Constraint *_target)
  18775. {
  18776. return *((Interop::Vector3 *) &(_target->GetWorldPosition ()));
  18777. }
  18778. DllExport Interop::Vector2
  18779. Constraint_GetHighLimit (Urho3D::Constraint *_target)
  18780. {
  18781. return *((Interop::Vector2 *) &(_target->GetHighLimit ()));
  18782. }
  18783. DllExport Interop::Vector2
  18784. Constraint_GetLowLimit (Urho3D::Constraint *_target)
  18785. {
  18786. return *((Interop::Vector2 *) &(_target->GetLowLimit ()));
  18787. }
  18788. DllExport float
  18789. Constraint_GetERP (Urho3D::Constraint *_target)
  18790. {
  18791. return _target->GetERP ();
  18792. }
  18793. DllExport float
  18794. Constraint_GetCFM (Urho3D::Constraint *_target)
  18795. {
  18796. return _target->GetCFM ();
  18797. }
  18798. DllExport int
  18799. Constraint_GetDisableCollision (Urho3D::Constraint *_target)
  18800. {
  18801. return _target->GetDisableCollision ();
  18802. }
  18803. DllExport void
  18804. Constraint_ReleaseConstraint (Urho3D::Constraint *_target)
  18805. {
  18806. _target->ReleaseConstraint ();
  18807. }
  18808. DllExport void
  18809. Constraint_ApplyFrames (Urho3D::Constraint *_target)
  18810. {
  18811. _target->ApplyFrames ();
  18812. }
  18813. DllExport int
  18814. PhysicsWorld_GetType (Urho3D::PhysicsWorld *_target)
  18815. {
  18816. return (_target->GetType ()).Value ();
  18817. }
  18818. DllExport const char *
  18819. PhysicsWorld_GetTypeName (Urho3D::PhysicsWorld *_target)
  18820. {
  18821. return stringdup((_target->GetTypeName ()).CString ());
  18822. }
  18823. DllExport int
  18824. PhysicsWorld_GetTypeStatic ()
  18825. {
  18826. return (PhysicsWorld::GetTypeStatic ()).Value ();
  18827. }
  18828. DllExport const char *
  18829. PhysicsWorld_GetTypeNameStatic ()
  18830. {
  18831. return stringdup((PhysicsWorld::GetTypeNameStatic ()).CString ());
  18832. }
  18833. DllExport void *
  18834. PhysicsWorld_PhysicsWorld (Urho3D::Context * scontext)
  18835. {
  18836. return WeakPtr<PhysicsWorld>(new PhysicsWorld(scontext));
  18837. }
  18838. DllExport void
  18839. PhysicsWorld_RegisterObject (Urho3D::Context * context)
  18840. {
  18841. PhysicsWorld::RegisterObject (context);
  18842. }
  18843. DllExport void
  18844. PhysicsWorld_setDebugMode (Urho3D::PhysicsWorld *_target, int debugMode)
  18845. {
  18846. _target->setDebugMode (debugMode);
  18847. }
  18848. DllExport int
  18849. PhysicsWorld_getDebugMode (Urho3D::PhysicsWorld *_target)
  18850. {
  18851. return _target->getDebugMode ();
  18852. }
  18853. DllExport void
  18854. PhysicsWorld_DrawDebugGeometry (Urho3D::PhysicsWorld *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  18855. {
  18856. _target->DrawDebugGeometry (debug, depthTest);
  18857. }
  18858. DllExport void
  18859. PhysicsWorld_Update (Urho3D::PhysicsWorld *_target, float timeStep)
  18860. {
  18861. _target->Update (timeStep);
  18862. }
  18863. DllExport void
  18864. PhysicsWorld_UpdateCollisions (Urho3D::PhysicsWorld *_target)
  18865. {
  18866. _target->UpdateCollisions ();
  18867. }
  18868. DllExport void
  18869. PhysicsWorld_SetFps (Urho3D::PhysicsWorld *_target, int fps)
  18870. {
  18871. _target->SetFps (fps);
  18872. }
  18873. DllExport void
  18874. PhysicsWorld_SetGravity (Urho3D::PhysicsWorld *_target, const class Urho3D::Vector3 & gravity)
  18875. {
  18876. _target->SetGravity (gravity);
  18877. }
  18878. DllExport void
  18879. PhysicsWorld_SetMaxSubSteps (Urho3D::PhysicsWorld *_target, int num)
  18880. {
  18881. _target->SetMaxSubSteps (num);
  18882. }
  18883. DllExport void
  18884. PhysicsWorld_SetNumIterations (Urho3D::PhysicsWorld *_target, int num)
  18885. {
  18886. _target->SetNumIterations (num);
  18887. }
  18888. DllExport void
  18889. PhysicsWorld_SetUpdateEnabled (Urho3D::PhysicsWorld *_target, bool enable)
  18890. {
  18891. _target->SetUpdateEnabled (enable);
  18892. }
  18893. DllExport void
  18894. PhysicsWorld_SetInterpolation (Urho3D::PhysicsWorld *_target, bool enable)
  18895. {
  18896. _target->SetInterpolation (enable);
  18897. }
  18898. DllExport void
  18899. PhysicsWorld_SetInternalEdge (Urho3D::PhysicsWorld *_target, bool enable)
  18900. {
  18901. _target->SetInternalEdge (enable);
  18902. }
  18903. DllExport void
  18904. PhysicsWorld_SetSplitImpulse (Urho3D::PhysicsWorld *_target, bool enable)
  18905. {
  18906. _target->SetSplitImpulse (enable);
  18907. }
  18908. DllExport void
  18909. PhysicsWorld_SetMaxNetworkAngularVelocity (Urho3D::PhysicsWorld *_target, float velocity)
  18910. {
  18911. _target->SetMaxNetworkAngularVelocity (velocity);
  18912. }
  18913. DllExport void
  18914. PhysicsWorld_RaycastSingle (Urho3D::PhysicsWorld *_target, Urho3D::PhysicsRaycastResult & result, const class Urho3D::Ray & ray, float maxDistance, unsigned int collisionMask)
  18915. {
  18916. _target->RaycastSingle (result, ray, maxDistance, collisionMask);
  18917. }
  18918. DllExport void
  18919. PhysicsWorld_RaycastSingleSegmented (Urho3D::PhysicsWorld *_target, Urho3D::PhysicsRaycastResult & result, const class Urho3D::Ray & ray, float maxDistance, float segmentDistance, unsigned int collisionMask)
  18920. {
  18921. _target->RaycastSingleSegmented (result, ray, maxDistance, segmentDistance, collisionMask);
  18922. }
  18923. DllExport void
  18924. PhysicsWorld_SphereCast (Urho3D::PhysicsWorld *_target, Urho3D::PhysicsRaycastResult & result, const class Urho3D::Ray & ray, float radius, float maxDistance, unsigned int collisionMask)
  18925. {
  18926. _target->SphereCast (result, ray, radius, maxDistance, collisionMask);
  18927. }
  18928. DllExport void
  18929. 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)
  18930. {
  18931. _target->ConvexCast (result, shape, startPos, startRot, endPos, endRot, collisionMask);
  18932. }
  18933. DllExport void
  18934. PhysicsWorld_RemoveCachedGeometry (Urho3D::PhysicsWorld *_target, Urho3D::Model * model)
  18935. {
  18936. _target->RemoveCachedGeometry (model);
  18937. }
  18938. DllExport Interop::Vector3
  18939. PhysicsWorld_GetGravity (Urho3D::PhysicsWorld *_target)
  18940. {
  18941. return *((Interop::Vector3 *) &(_target->GetGravity ()));
  18942. }
  18943. DllExport int
  18944. PhysicsWorld_GetMaxSubSteps (Urho3D::PhysicsWorld *_target)
  18945. {
  18946. return _target->GetMaxSubSteps ();
  18947. }
  18948. DllExport int
  18949. PhysicsWorld_GetNumIterations (Urho3D::PhysicsWorld *_target)
  18950. {
  18951. return _target->GetNumIterations ();
  18952. }
  18953. DllExport int
  18954. PhysicsWorld_IsUpdateEnabled (Urho3D::PhysicsWorld *_target)
  18955. {
  18956. return _target->IsUpdateEnabled ();
  18957. }
  18958. DllExport int
  18959. PhysicsWorld_GetInterpolation (Urho3D::PhysicsWorld *_target)
  18960. {
  18961. return _target->GetInterpolation ();
  18962. }
  18963. DllExport int
  18964. PhysicsWorld_GetInternalEdge (Urho3D::PhysicsWorld *_target)
  18965. {
  18966. return _target->GetInternalEdge ();
  18967. }
  18968. DllExport int
  18969. PhysicsWorld_GetSplitImpulse (Urho3D::PhysicsWorld *_target)
  18970. {
  18971. return _target->GetSplitImpulse ();
  18972. }
  18973. DllExport int
  18974. PhysicsWorld_GetFps (Urho3D::PhysicsWorld *_target)
  18975. {
  18976. return _target->GetFps ();
  18977. }
  18978. DllExport float
  18979. PhysicsWorld_GetMaxNetworkAngularVelocity (Urho3D::PhysicsWorld *_target)
  18980. {
  18981. return _target->GetMaxNetworkAngularVelocity ();
  18982. }
  18983. DllExport void
  18984. PhysicsWorld_AddRigidBody (Urho3D::PhysicsWorld *_target, Urho3D::RigidBody * body)
  18985. {
  18986. _target->AddRigidBody (body);
  18987. }
  18988. DllExport void
  18989. PhysicsWorld_RemoveRigidBody (Urho3D::PhysicsWorld *_target, Urho3D::RigidBody * body)
  18990. {
  18991. _target->RemoveRigidBody (body);
  18992. }
  18993. DllExport void
  18994. PhysicsWorld_AddCollisionShape (Urho3D::PhysicsWorld *_target, Urho3D::CollisionShape * shape)
  18995. {
  18996. _target->AddCollisionShape (shape);
  18997. }
  18998. DllExport void
  18999. PhysicsWorld_RemoveCollisionShape (Urho3D::PhysicsWorld *_target, Urho3D::CollisionShape * shape)
  19000. {
  19001. _target->RemoveCollisionShape (shape);
  19002. }
  19003. DllExport void
  19004. PhysicsWorld_AddConstraint (Urho3D::PhysicsWorld *_target, Urho3D::Constraint * joint)
  19005. {
  19006. _target->AddConstraint (joint);
  19007. }
  19008. DllExport void
  19009. PhysicsWorld_RemoveConstraint (Urho3D::PhysicsWorld *_target, Urho3D::Constraint * joint)
  19010. {
  19011. _target->RemoveConstraint (joint);
  19012. }
  19013. DllExport void
  19014. PhysicsWorld_DrawDebugGeometry0 (Urho3D::PhysicsWorld *_target, bool depthTest)
  19015. {
  19016. _target->DrawDebugGeometry (depthTest);
  19017. }
  19018. DllExport void
  19019. PhysicsWorld_SetDebugRenderer (Urho3D::PhysicsWorld *_target, Urho3D::DebugRenderer * debug)
  19020. {
  19021. _target->SetDebugRenderer (debug);
  19022. }
  19023. DllExport void
  19024. PhysicsWorld_SetDebugDepthTest (Urho3D::PhysicsWorld *_target, bool enable)
  19025. {
  19026. _target->SetDebugDepthTest (enable);
  19027. }
  19028. DllExport void
  19029. PhysicsWorld_CleanupGeometryCache (Urho3D::PhysicsWorld *_target)
  19030. {
  19031. _target->CleanupGeometryCache ();
  19032. }
  19033. DllExport void
  19034. PhysicsWorld_SetApplyingTransforms (Urho3D::PhysicsWorld *_target, bool enable)
  19035. {
  19036. _target->SetApplyingTransforms (enable);
  19037. }
  19038. DllExport int
  19039. PhysicsWorld_IsApplyingTransforms (Urho3D::PhysicsWorld *_target)
  19040. {
  19041. return _target->IsApplyingTransforms ();
  19042. }
  19043. DllExport int
  19044. PhysicsWorld_IsSimulating (Urho3D::PhysicsWorld *_target)
  19045. {
  19046. return _target->IsSimulating ();
  19047. }
  19048. DllExport int
  19049. RigidBody_GetType (Urho3D::RigidBody *_target)
  19050. {
  19051. return (_target->GetType ()).Value ();
  19052. }
  19053. DllExport const char *
  19054. RigidBody_GetTypeName (Urho3D::RigidBody *_target)
  19055. {
  19056. return stringdup((_target->GetTypeName ()).CString ());
  19057. }
  19058. DllExport int
  19059. RigidBody_GetTypeStatic ()
  19060. {
  19061. return (RigidBody::GetTypeStatic ()).Value ();
  19062. }
  19063. DllExport const char *
  19064. RigidBody_GetTypeNameStatic ()
  19065. {
  19066. return stringdup((RigidBody::GetTypeNameStatic ()).CString ());
  19067. }
  19068. DllExport void *
  19069. RigidBody_RigidBody (Urho3D::Context * context)
  19070. {
  19071. return WeakPtr<RigidBody>(new RigidBody(context));
  19072. }
  19073. DllExport void
  19074. RigidBody_RegisterObject (Urho3D::Context * context)
  19075. {
  19076. RigidBody::RegisterObject (context);
  19077. }
  19078. DllExport void
  19079. RigidBody_ApplyAttributes (Urho3D::RigidBody *_target)
  19080. {
  19081. _target->ApplyAttributes ();
  19082. }
  19083. DllExport void
  19084. RigidBody_OnSetEnabled (Urho3D::RigidBody *_target)
  19085. {
  19086. _target->OnSetEnabled ();
  19087. }
  19088. DllExport void
  19089. RigidBody_DrawDebugGeometry (Urho3D::RigidBody *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  19090. {
  19091. _target->DrawDebugGeometry (debug, depthTest);
  19092. }
  19093. DllExport void
  19094. RigidBody_SetMass (Urho3D::RigidBody *_target, float mass)
  19095. {
  19096. _target->SetMass (mass);
  19097. }
  19098. DllExport void
  19099. RigidBody_SetPosition (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & position)
  19100. {
  19101. _target->SetPosition (position);
  19102. }
  19103. DllExport void
  19104. RigidBody_SetRotation (Urho3D::RigidBody *_target, const class Urho3D::Quaternion & rotation)
  19105. {
  19106. _target->SetRotation (rotation);
  19107. }
  19108. DllExport void
  19109. RigidBody_SetTransform (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  19110. {
  19111. _target->SetTransform (position, rotation);
  19112. }
  19113. DllExport void
  19114. RigidBody_SetLinearVelocity (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & velocity)
  19115. {
  19116. _target->SetLinearVelocity (velocity);
  19117. }
  19118. DllExport void
  19119. RigidBody_SetLinearFactor (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & factor)
  19120. {
  19121. _target->SetLinearFactor (factor);
  19122. }
  19123. DllExport void
  19124. RigidBody_SetLinearRestThreshold (Urho3D::RigidBody *_target, float threshold)
  19125. {
  19126. _target->SetLinearRestThreshold (threshold);
  19127. }
  19128. DllExport void
  19129. RigidBody_SetLinearDamping (Urho3D::RigidBody *_target, float damping)
  19130. {
  19131. _target->SetLinearDamping (damping);
  19132. }
  19133. DllExport void
  19134. RigidBody_SetAngularVelocity (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & angularVelocity)
  19135. {
  19136. _target->SetAngularVelocity (angularVelocity);
  19137. }
  19138. DllExport void
  19139. RigidBody_SetAngularFactor (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & factor)
  19140. {
  19141. _target->SetAngularFactor (factor);
  19142. }
  19143. DllExport void
  19144. RigidBody_SetAngularRestThreshold (Urho3D::RigidBody *_target, float threshold)
  19145. {
  19146. _target->SetAngularRestThreshold (threshold);
  19147. }
  19148. DllExport void
  19149. RigidBody_SetAngularDamping (Urho3D::RigidBody *_target, float factor)
  19150. {
  19151. _target->SetAngularDamping (factor);
  19152. }
  19153. DllExport void
  19154. RigidBody_SetFriction (Urho3D::RigidBody *_target, float friction)
  19155. {
  19156. _target->SetFriction (friction);
  19157. }
  19158. DllExport void
  19159. RigidBody_SetAnisotropicFriction (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & friction)
  19160. {
  19161. _target->SetAnisotropicFriction (friction);
  19162. }
  19163. DllExport void
  19164. RigidBody_SetRollingFriction (Urho3D::RigidBody *_target, float friction)
  19165. {
  19166. _target->SetRollingFriction (friction);
  19167. }
  19168. DllExport void
  19169. RigidBody_SetRestitution (Urho3D::RigidBody *_target, float restitution)
  19170. {
  19171. _target->SetRestitution (restitution);
  19172. }
  19173. DllExport void
  19174. RigidBody_SetContactProcessingThreshold (Urho3D::RigidBody *_target, float threshold)
  19175. {
  19176. _target->SetContactProcessingThreshold (threshold);
  19177. }
  19178. DllExport void
  19179. RigidBody_SetCcdRadius (Urho3D::RigidBody *_target, float radius)
  19180. {
  19181. _target->SetCcdRadius (radius);
  19182. }
  19183. DllExport void
  19184. RigidBody_SetCcdMotionThreshold (Urho3D::RigidBody *_target, float threshold)
  19185. {
  19186. _target->SetCcdMotionThreshold (threshold);
  19187. }
  19188. DllExport void
  19189. RigidBody_SetUseGravity (Urho3D::RigidBody *_target, bool enable)
  19190. {
  19191. _target->SetUseGravity (enable);
  19192. }
  19193. DllExport void
  19194. RigidBody_SetGravityOverride (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & gravity)
  19195. {
  19196. _target->SetGravityOverride (gravity);
  19197. }
  19198. DllExport void
  19199. RigidBody_SetKinematic (Urho3D::RigidBody *_target, bool enable)
  19200. {
  19201. _target->SetKinematic (enable);
  19202. }
  19203. DllExport void
  19204. RigidBody_SetTrigger (Urho3D::RigidBody *_target, bool enable)
  19205. {
  19206. _target->SetTrigger (enable);
  19207. }
  19208. DllExport void
  19209. RigidBody_SetCollisionLayer (Urho3D::RigidBody *_target, unsigned int layer)
  19210. {
  19211. _target->SetCollisionLayer (layer);
  19212. }
  19213. DllExport void
  19214. RigidBody_SetCollisionMask (Urho3D::RigidBody *_target, unsigned int mask)
  19215. {
  19216. _target->SetCollisionMask (mask);
  19217. }
  19218. DllExport void
  19219. RigidBody_SetCollisionLayerAndMask (Urho3D::RigidBody *_target, unsigned int layer, unsigned int mask)
  19220. {
  19221. _target->SetCollisionLayerAndMask (layer, mask);
  19222. }
  19223. DllExport void
  19224. RigidBody_SetCollisionEventMode (Urho3D::RigidBody *_target, enum Urho3D::CollisionEventMode mode)
  19225. {
  19226. _target->SetCollisionEventMode (mode);
  19227. }
  19228. DllExport void
  19229. RigidBody_ApplyForce (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & force)
  19230. {
  19231. _target->ApplyForce (force);
  19232. }
  19233. DllExport void
  19234. RigidBody_ApplyForce0 (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & force, const class Urho3D::Vector3 & position)
  19235. {
  19236. _target->ApplyForce (force, position);
  19237. }
  19238. DllExport void
  19239. RigidBody_ApplyTorque (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & torque)
  19240. {
  19241. _target->ApplyTorque (torque);
  19242. }
  19243. DllExport void
  19244. RigidBody_ApplyImpulse (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & impulse)
  19245. {
  19246. _target->ApplyImpulse (impulse);
  19247. }
  19248. DllExport void
  19249. RigidBody_ApplyImpulse1 (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & impulse, const class Urho3D::Vector3 & position)
  19250. {
  19251. _target->ApplyImpulse (impulse, position);
  19252. }
  19253. DllExport void
  19254. RigidBody_ApplyTorqueImpulse (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & torque)
  19255. {
  19256. _target->ApplyTorqueImpulse (torque);
  19257. }
  19258. DllExport void
  19259. RigidBody_ResetForces (Urho3D::RigidBody *_target)
  19260. {
  19261. _target->ResetForces ();
  19262. }
  19263. DllExport void
  19264. RigidBody_Activate (Urho3D::RigidBody *_target)
  19265. {
  19266. _target->Activate ();
  19267. }
  19268. DllExport void
  19269. RigidBody_ReAddBodyToWorld (Urho3D::RigidBody *_target)
  19270. {
  19271. _target->ReAddBodyToWorld ();
  19272. }
  19273. DllExport void
  19274. RigidBody_DisableMassUpdate (Urho3D::RigidBody *_target)
  19275. {
  19276. _target->DisableMassUpdate ();
  19277. }
  19278. DllExport void
  19279. RigidBody_EnableMassUpdate (Urho3D::RigidBody *_target)
  19280. {
  19281. _target->EnableMassUpdate ();
  19282. }
  19283. DllExport Urho3D::PhysicsWorld *
  19284. RigidBody_GetPhysicsWorld (Urho3D::RigidBody *_target)
  19285. {
  19286. return _target->GetPhysicsWorld ();
  19287. }
  19288. DllExport float
  19289. RigidBody_GetMass (Urho3D::RigidBody *_target)
  19290. {
  19291. return _target->GetMass ();
  19292. }
  19293. DllExport Interop::Vector3
  19294. RigidBody_GetPosition (Urho3D::RigidBody *_target)
  19295. {
  19296. return *((Interop::Vector3 *) &(_target->GetPosition ()));
  19297. }
  19298. DllExport Interop::Quaternion
  19299. RigidBody_GetRotation (Urho3D::RigidBody *_target)
  19300. {
  19301. return *((Interop::Quaternion *) &(_target->GetRotation ()));
  19302. }
  19303. DllExport Interop::Vector3
  19304. RigidBody_GetLinearVelocity (Urho3D::RigidBody *_target)
  19305. {
  19306. return *((Interop::Vector3 *) &(_target->GetLinearVelocity ()));
  19307. }
  19308. DllExport Interop::Vector3
  19309. RigidBody_GetLinearFactor (Urho3D::RigidBody *_target)
  19310. {
  19311. return *((Interop::Vector3 *) &(_target->GetLinearFactor ()));
  19312. }
  19313. DllExport Interop::Vector3
  19314. RigidBody_GetVelocityAtPoint (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & position)
  19315. {
  19316. return *((Interop::Vector3 *) &(_target->GetVelocityAtPoint (position)));
  19317. }
  19318. DllExport float
  19319. RigidBody_GetLinearRestThreshold (Urho3D::RigidBody *_target)
  19320. {
  19321. return _target->GetLinearRestThreshold ();
  19322. }
  19323. DllExport float
  19324. RigidBody_GetLinearDamping (Urho3D::RigidBody *_target)
  19325. {
  19326. return _target->GetLinearDamping ();
  19327. }
  19328. DllExport Interop::Vector3
  19329. RigidBody_GetAngularVelocity (Urho3D::RigidBody *_target)
  19330. {
  19331. return *((Interop::Vector3 *) &(_target->GetAngularVelocity ()));
  19332. }
  19333. DllExport Interop::Vector3
  19334. RigidBody_GetAngularFactor (Urho3D::RigidBody *_target)
  19335. {
  19336. return *((Interop::Vector3 *) &(_target->GetAngularFactor ()));
  19337. }
  19338. DllExport float
  19339. RigidBody_GetAngularRestThreshold (Urho3D::RigidBody *_target)
  19340. {
  19341. return _target->GetAngularRestThreshold ();
  19342. }
  19343. DllExport float
  19344. RigidBody_GetAngularDamping (Urho3D::RigidBody *_target)
  19345. {
  19346. return _target->GetAngularDamping ();
  19347. }
  19348. DllExport float
  19349. RigidBody_GetFriction (Urho3D::RigidBody *_target)
  19350. {
  19351. return _target->GetFriction ();
  19352. }
  19353. DllExport Interop::Vector3
  19354. RigidBody_GetAnisotropicFriction (Urho3D::RigidBody *_target)
  19355. {
  19356. return *((Interop::Vector3 *) &(_target->GetAnisotropicFriction ()));
  19357. }
  19358. DllExport float
  19359. RigidBody_GetRollingFriction (Urho3D::RigidBody *_target)
  19360. {
  19361. return _target->GetRollingFriction ();
  19362. }
  19363. DllExport float
  19364. RigidBody_GetRestitution (Urho3D::RigidBody *_target)
  19365. {
  19366. return _target->GetRestitution ();
  19367. }
  19368. DllExport float
  19369. RigidBody_GetContactProcessingThreshold (Urho3D::RigidBody *_target)
  19370. {
  19371. return _target->GetContactProcessingThreshold ();
  19372. }
  19373. DllExport float
  19374. RigidBody_GetCcdRadius (Urho3D::RigidBody *_target)
  19375. {
  19376. return _target->GetCcdRadius ();
  19377. }
  19378. DllExport float
  19379. RigidBody_GetCcdMotionThreshold (Urho3D::RigidBody *_target)
  19380. {
  19381. return _target->GetCcdMotionThreshold ();
  19382. }
  19383. DllExport int
  19384. RigidBody_GetUseGravity (Urho3D::RigidBody *_target)
  19385. {
  19386. return _target->GetUseGravity ();
  19387. }
  19388. DllExport Interop::Vector3
  19389. RigidBody_GetGravityOverride (Urho3D::RigidBody *_target)
  19390. {
  19391. return *((Interop::Vector3 *) &(_target->GetGravityOverride ()));
  19392. }
  19393. DllExport Interop::Vector3
  19394. RigidBody_GetCenterOfMass (Urho3D::RigidBody *_target)
  19395. {
  19396. return *((Interop::Vector3 *) &(_target->GetCenterOfMass ()));
  19397. }
  19398. DllExport int
  19399. RigidBody_IsKinematic (Urho3D::RigidBody *_target)
  19400. {
  19401. return _target->IsKinematic ();
  19402. }
  19403. DllExport int
  19404. RigidBody_IsTrigger (Urho3D::RigidBody *_target)
  19405. {
  19406. return _target->IsTrigger ();
  19407. }
  19408. DllExport int
  19409. RigidBody_IsActive (Urho3D::RigidBody *_target)
  19410. {
  19411. return _target->IsActive ();
  19412. }
  19413. DllExport unsigned int
  19414. RigidBody_GetCollisionLayer (Urho3D::RigidBody *_target)
  19415. {
  19416. return _target->GetCollisionLayer ();
  19417. }
  19418. DllExport unsigned int
  19419. RigidBody_GetCollisionMask (Urho3D::RigidBody *_target)
  19420. {
  19421. return _target->GetCollisionMask ();
  19422. }
  19423. DllExport enum Urho3D::CollisionEventMode
  19424. RigidBody_GetCollisionEventMode (Urho3D::RigidBody *_target)
  19425. {
  19426. return _target->GetCollisionEventMode ();
  19427. }
  19428. DllExport void
  19429. RigidBody_ApplyWorldTransform (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & newWorldPosition, const class Urho3D::Quaternion & newWorldRotation)
  19430. {
  19431. _target->ApplyWorldTransform (newWorldPosition, newWorldRotation);
  19432. }
  19433. DllExport void
  19434. RigidBody_UpdateMass (Urho3D::RigidBody *_target)
  19435. {
  19436. _target->UpdateMass ();
  19437. }
  19438. DllExport void
  19439. RigidBody_UpdateGravity (Urho3D::RigidBody *_target)
  19440. {
  19441. _target->UpdateGravity ();
  19442. }
  19443. DllExport void
  19444. RigidBody_AddConstraint (Urho3D::RigidBody *_target, Urho3D::Constraint * constraint)
  19445. {
  19446. _target->AddConstraint (constraint);
  19447. }
  19448. DllExport void
  19449. RigidBody_RemoveConstraint (Urho3D::RigidBody *_target, Urho3D::Constraint * constraint)
  19450. {
  19451. _target->RemoveConstraint (constraint);
  19452. }
  19453. DllExport void
  19454. RigidBody_ReleaseBody (Urho3D::RigidBody *_target)
  19455. {
  19456. _target->ReleaseBody ();
  19457. }
  19458. DllExport int
  19459. JsonFile_GetType (Urho3D::JSONFile *_target)
  19460. {
  19461. return (_target->GetType ()).Value ();
  19462. }
  19463. DllExport const char *
  19464. JsonFile_GetTypeName (Urho3D::JSONFile *_target)
  19465. {
  19466. return stringdup((_target->GetTypeName ()).CString ());
  19467. }
  19468. DllExport int
  19469. JsonFile_GetTypeStatic ()
  19470. {
  19471. return (JSONFile::GetTypeStatic ()).Value ();
  19472. }
  19473. DllExport const char *
  19474. JsonFile_GetTypeNameStatic ()
  19475. {
  19476. return stringdup((JSONFile::GetTypeNameStatic ()).CString ());
  19477. }
  19478. DllExport void *
  19479. JsonFile_JSONFile (Urho3D::Context * context)
  19480. {
  19481. return WeakPtr<JSONFile>(new JSONFile(context));
  19482. }
  19483. DllExport void
  19484. JsonFile_RegisterObject (Urho3D::Context * context)
  19485. {
  19486. JSONFile::RegisterObject (context);
  19487. }
  19488. DllExport int
  19489. JsonFile_BeginLoad_File (Urho3D::JSONFile *_target, File * source)
  19490. {
  19491. return _target->BeginLoad (*source);
  19492. }
  19493. DllExport int
  19494. JsonFile_BeginLoad_MemoryBuffer (Urho3D::JSONFile *_target, MemoryBuffer * source)
  19495. {
  19496. return _target->BeginLoad (*source);
  19497. }
  19498. DllExport int
  19499. JsonFile_Save_File (Urho3D::JSONFile *_target, File * dest)
  19500. {
  19501. return _target->Save (*dest);
  19502. }
  19503. DllExport int
  19504. JsonFile_Save_MemoryBuffer (Urho3D::JSONFile *_target, MemoryBuffer * dest)
  19505. {
  19506. return _target->Save (*dest);
  19507. }
  19508. DllExport int
  19509. JsonFile_Save0_File (Urho3D::JSONFile *_target, File * dest, const char * indendation)
  19510. {
  19511. return _target->Save (*dest, Urho3D::String(indendation));
  19512. }
  19513. DllExport int
  19514. JsonFile_Save0_MemoryBuffer (Urho3D::JSONFile *_target, MemoryBuffer * dest, const char * indendation)
  19515. {
  19516. return _target->Save (*dest, Urho3D::String(indendation));
  19517. }
  19518. DllExport int
  19519. JsonFile_FromString (Urho3D::JSONFile *_target, const char * source)
  19520. {
  19521. return _target->FromString (Urho3D::String(source));
  19522. }
  19523. DllExport int
  19524. PListFile_GetType (Urho3D::PListFile *_target)
  19525. {
  19526. return (_target->GetType ()).Value ();
  19527. }
  19528. DllExport const char *
  19529. PListFile_GetTypeName (Urho3D::PListFile *_target)
  19530. {
  19531. return stringdup((_target->GetTypeName ()).CString ());
  19532. }
  19533. DllExport int
  19534. PListFile_GetTypeStatic ()
  19535. {
  19536. return (PListFile::GetTypeStatic ()).Value ();
  19537. }
  19538. DllExport const char *
  19539. PListFile_GetTypeNameStatic ()
  19540. {
  19541. return stringdup((PListFile::GetTypeNameStatic ()).CString ());
  19542. }
  19543. DllExport void *
  19544. PListFile_PListFile (Urho3D::Context * context)
  19545. {
  19546. return WeakPtr<PListFile>(new PListFile(context));
  19547. }
  19548. DllExport void
  19549. PListFile_RegisterObject (Urho3D::Context * context)
  19550. {
  19551. PListFile::RegisterObject (context);
  19552. }
  19553. DllExport int
  19554. PListFile_BeginLoad_File (Urho3D::PListFile *_target, File * source)
  19555. {
  19556. return _target->BeginLoad (*source);
  19557. }
  19558. DllExport int
  19559. PListFile_BeginLoad_MemoryBuffer (Urho3D::PListFile *_target, MemoryBuffer * source)
  19560. {
  19561. return _target->BeginLoad (*source);
  19562. }
  19563. DllExport int
  19564. Localization_GetType (Urho3D::Localization *_target)
  19565. {
  19566. return (_target->GetType ()).Value ();
  19567. }
  19568. DllExport const char *
  19569. Localization_GetTypeName (Urho3D::Localization *_target)
  19570. {
  19571. return stringdup((_target->GetTypeName ()).CString ());
  19572. }
  19573. DllExport int
  19574. Localization_GetTypeStatic ()
  19575. {
  19576. return (Localization::GetTypeStatic ()).Value ();
  19577. }
  19578. DllExport const char *
  19579. Localization_GetTypeNameStatic ()
  19580. {
  19581. return stringdup((Localization::GetTypeNameStatic ()).CString ());
  19582. }
  19583. DllExport void *
  19584. Localization_Localization (Urho3D::Context * context)
  19585. {
  19586. return WeakPtr<Localization>(new Localization(context));
  19587. }
  19588. DllExport int
  19589. Localization_GetNumLanguages (Urho3D::Localization *_target)
  19590. {
  19591. return _target->GetNumLanguages ();
  19592. }
  19593. DllExport int
  19594. Localization_GetLanguageIndex (Urho3D::Localization *_target)
  19595. {
  19596. return _target->GetLanguageIndex ();
  19597. }
  19598. DllExport int
  19599. Localization_GetLanguageIndex0 (Urho3D::Localization *_target, const char * language)
  19600. {
  19601. return _target->GetLanguageIndex (Urho3D::String(language));
  19602. }
  19603. DllExport const char *
  19604. Localization_GetLanguage (Urho3D::Localization *_target)
  19605. {
  19606. return stringdup((_target->GetLanguage ()).CString ());
  19607. }
  19608. DllExport const char *
  19609. Localization_GetLanguage1 (Urho3D::Localization *_target, int index)
  19610. {
  19611. return stringdup((_target->GetLanguage (index)).CString ());
  19612. }
  19613. DllExport void
  19614. Localization_SetLanguage (Urho3D::Localization *_target, int index)
  19615. {
  19616. _target->SetLanguage (index);
  19617. }
  19618. DllExport void
  19619. Localization_SetLanguage2 (Urho3D::Localization *_target, const char * language)
  19620. {
  19621. _target->SetLanguage (Urho3D::String(language));
  19622. }
  19623. DllExport const char *
  19624. Localization_Get (Urho3D::Localization *_target, const char * id)
  19625. {
  19626. return stringdup((_target->Get (Urho3D::String(id))).CString ());
  19627. }
  19628. DllExport void
  19629. Localization_Reset (Urho3D::Localization *_target)
  19630. {
  19631. _target->Reset ();
  19632. }
  19633. DllExport void
  19634. Localization_LoadJSONFile (Urho3D::Localization *_target, const char * name)
  19635. {
  19636. _target->LoadJSONFile (Urho3D::String(name));
  19637. }
  19638. DllExport int
  19639. ResourceCache_GetType (Urho3D::ResourceCache *_target)
  19640. {
  19641. return (_target->GetType ()).Value ();
  19642. }
  19643. DllExport const char *
  19644. ResourceCache_GetTypeName (Urho3D::ResourceCache *_target)
  19645. {
  19646. return stringdup((_target->GetTypeName ()).CString ());
  19647. }
  19648. DllExport int
  19649. ResourceCache_GetTypeStatic ()
  19650. {
  19651. return (ResourceCache::GetTypeStatic ()).Value ();
  19652. }
  19653. DllExport const char *
  19654. ResourceCache_GetTypeNameStatic ()
  19655. {
  19656. return stringdup((ResourceCache::GetTypeNameStatic ()).CString ());
  19657. }
  19658. DllExport void *
  19659. ResourceCache_ResourceCache (Urho3D::Context * context)
  19660. {
  19661. return WeakPtr<ResourceCache>(new ResourceCache(context));
  19662. }
  19663. DllExport int
  19664. ResourceCache_AddResourceDir (Urho3D::ResourceCache *_target, const char * pathName, unsigned int priority)
  19665. {
  19666. return _target->AddResourceDir (Urho3D::String(pathName), priority);
  19667. }
  19668. DllExport int
  19669. ResourceCache_AddPackageFile (Urho3D::ResourceCache *_target, Urho3D::PackageFile * package, unsigned int priority)
  19670. {
  19671. return _target->AddPackageFile (package, priority);
  19672. }
  19673. DllExport int
  19674. ResourceCache_AddPackageFile0 (Urho3D::ResourceCache *_target, const char * fileName, unsigned int priority)
  19675. {
  19676. return _target->AddPackageFile (Urho3D::String(fileName), priority);
  19677. }
  19678. DllExport int
  19679. ResourceCache_AddManualResource (Urho3D::ResourceCache *_target, Urho3D::Resource * resource)
  19680. {
  19681. return _target->AddManualResource (resource);
  19682. }
  19683. DllExport void
  19684. ResourceCache_RemoveResourceDir (Urho3D::ResourceCache *_target, const char * pathName)
  19685. {
  19686. _target->RemoveResourceDir (Urho3D::String(pathName));
  19687. }
  19688. DllExport void
  19689. ResourceCache_RemovePackageFile (Urho3D::ResourceCache *_target, Urho3D::PackageFile * package, bool releaseResources, bool forceRelease)
  19690. {
  19691. _target->RemovePackageFile (package, releaseResources, forceRelease);
  19692. }
  19693. DllExport void
  19694. ResourceCache_RemovePackageFile1 (Urho3D::ResourceCache *_target, const char * fileName, bool releaseResources, bool forceRelease)
  19695. {
  19696. _target->RemovePackageFile (Urho3D::String(fileName), releaseResources, forceRelease);
  19697. }
  19698. DllExport void
  19699. ResourceCache_ReleaseResource (Urho3D::ResourceCache *_target, int type, const char * name, bool force)
  19700. {
  19701. _target->ReleaseResource (Urho3D::StringHash(type), Urho3D::String(name), force);
  19702. }
  19703. DllExport void
  19704. ResourceCache_ReleaseResources (Urho3D::ResourceCache *_target, int type, bool force)
  19705. {
  19706. _target->ReleaseResources (Urho3D::StringHash(type), force);
  19707. }
  19708. DllExport void
  19709. ResourceCache_ReleaseResources2 (Urho3D::ResourceCache *_target, int type, const char * partialName, bool force)
  19710. {
  19711. _target->ReleaseResources (Urho3D::StringHash(type), Urho3D::String(partialName), force);
  19712. }
  19713. DllExport void
  19714. ResourceCache_ReleaseResources3 (Urho3D::ResourceCache *_target, const char * partialName, bool force)
  19715. {
  19716. _target->ReleaseResources (Urho3D::String(partialName), force);
  19717. }
  19718. DllExport void
  19719. ResourceCache_ReleaseAllResources (Urho3D::ResourceCache *_target, bool force)
  19720. {
  19721. _target->ReleaseAllResources (force);
  19722. }
  19723. DllExport int
  19724. ResourceCache_ReloadResource (Urho3D::ResourceCache *_target, Urho3D::Resource * resource)
  19725. {
  19726. return _target->ReloadResource (resource);
  19727. }
  19728. DllExport void
  19729. ResourceCache_ReloadResourceWithDependencies (Urho3D::ResourceCache *_target, const char * fileName)
  19730. {
  19731. _target->ReloadResourceWithDependencies (Urho3D::String(fileName));
  19732. }
  19733. DllExport void
  19734. ResourceCache_SetMemoryBudget (Urho3D::ResourceCache *_target, int type, unsigned long long budget)
  19735. {
  19736. _target->SetMemoryBudget (Urho3D::StringHash(type), budget);
  19737. }
  19738. DllExport void
  19739. ResourceCache_SetAutoReloadResources (Urho3D::ResourceCache *_target, bool enable)
  19740. {
  19741. _target->SetAutoReloadResources (enable);
  19742. }
  19743. DllExport void
  19744. ResourceCache_SetReturnFailedResources (Urho3D::ResourceCache *_target, bool enable)
  19745. {
  19746. _target->SetReturnFailedResources (enable);
  19747. }
  19748. DllExport void
  19749. ResourceCache_SetSearchPackagesFirst (Urho3D::ResourceCache *_target, bool value)
  19750. {
  19751. _target->SetSearchPackagesFirst (value);
  19752. }
  19753. DllExport void
  19754. ResourceCache_SetFinishBackgroundResourcesMs (Urho3D::ResourceCache *_target, int ms)
  19755. {
  19756. _target->SetFinishBackgroundResourcesMs (ms);
  19757. }
  19758. DllExport void
  19759. ResourceCache_AddResourceRouter (Urho3D::ResourceCache *_target, Urho3D::ResourceRouter * router, bool addAsFirst)
  19760. {
  19761. _target->AddResourceRouter (router, addAsFirst);
  19762. }
  19763. DllExport void
  19764. ResourceCache_RemoveResourceRouter (Urho3D::ResourceCache *_target, Urho3D::ResourceRouter * router)
  19765. {
  19766. _target->RemoveResourceRouter (router);
  19767. }
  19768. DllExport Urho3D::File *
  19769. ResourceCache_GetFile (Urho3D::ResourceCache *_target, const char * name, bool sendEventOnFailure)
  19770. {
  19771. auto copy = _target->GetFile (Urho3D::String(name), sendEventOnFailure);
  19772. auto plain = copy.Get();
  19773. copy.Detach();
  19774. delete copy;
  19775. return plain;
  19776. }
  19777. DllExport Urho3D::Resource *
  19778. ResourceCache_GetResource (Urho3D::ResourceCache *_target, int type, const char * name, bool sendEventOnFailure)
  19779. {
  19780. return _target->GetResource (Urho3D::StringHash(type), Urho3D::String(name), sendEventOnFailure);
  19781. }
  19782. DllExport Urho3D::Resource *
  19783. ResourceCache_GetTempResource (Urho3D::ResourceCache *_target, int type, const char * name, bool sendEventOnFailure)
  19784. {
  19785. auto copy = _target->GetTempResource (Urho3D::StringHash(type), Urho3D::String(name), sendEventOnFailure);
  19786. auto plain = copy.Get();
  19787. copy.Detach();
  19788. delete copy;
  19789. return plain;
  19790. }
  19791. DllExport int
  19792. ResourceCache_BackgroundLoadResource (Urho3D::ResourceCache *_target, int type, const char * name, bool sendEventOnFailure, Urho3D::Resource * caller)
  19793. {
  19794. return _target->BackgroundLoadResource (Urho3D::StringHash(type), Urho3D::String(name), sendEventOnFailure, caller);
  19795. }
  19796. DllExport unsigned int
  19797. ResourceCache_GetNumBackgroundLoadResources (Urho3D::ResourceCache *_target)
  19798. {
  19799. return _target->GetNumBackgroundLoadResources ();
  19800. }
  19801. DllExport Urho3D::Resource *
  19802. ResourceCache_GetExistingResource (Urho3D::ResourceCache *_target, int type, const char * name)
  19803. {
  19804. return _target->GetExistingResource (Urho3D::StringHash(type), Urho3D::String(name));
  19805. }
  19806. DllExport const Vector<SharedPtr<class Urho3D::PackageFile> > &
  19807. ResourceCache_GetPackageFiles (Urho3D::ResourceCache *_target)
  19808. {
  19809. return _target->GetPackageFiles ();
  19810. }
  19811. DllExport int
  19812. ResourceCache_Exists (Urho3D::ResourceCache *_target, const char * name)
  19813. {
  19814. return _target->Exists (Urho3D::String(name));
  19815. }
  19816. DllExport unsigned long long
  19817. ResourceCache_GetMemoryBudget (Urho3D::ResourceCache *_target, int type)
  19818. {
  19819. return _target->GetMemoryBudget (Urho3D::StringHash(type));
  19820. }
  19821. DllExport unsigned long long
  19822. ResourceCache_GetMemoryUse (Urho3D::ResourceCache *_target, int type)
  19823. {
  19824. return _target->GetMemoryUse (Urho3D::StringHash(type));
  19825. }
  19826. DllExport unsigned long long
  19827. ResourceCache_GetTotalMemoryUse (Urho3D::ResourceCache *_target)
  19828. {
  19829. return _target->GetTotalMemoryUse ();
  19830. }
  19831. DllExport const char *
  19832. ResourceCache_GetResourceFileName (Urho3D::ResourceCache *_target, const char * name)
  19833. {
  19834. return stringdup((_target->GetResourceFileName (Urho3D::String(name))).CString ());
  19835. }
  19836. DllExport int
  19837. ResourceCache_GetAutoReloadResources (Urho3D::ResourceCache *_target)
  19838. {
  19839. return _target->GetAutoReloadResources ();
  19840. }
  19841. DllExport int
  19842. ResourceCache_GetReturnFailedResources (Urho3D::ResourceCache *_target)
  19843. {
  19844. return _target->GetReturnFailedResources ();
  19845. }
  19846. DllExport int
  19847. ResourceCache_GetSearchPackagesFirst (Urho3D::ResourceCache *_target)
  19848. {
  19849. return _target->GetSearchPackagesFirst ();
  19850. }
  19851. DllExport int
  19852. ResourceCache_GetFinishBackgroundResourcesMs (Urho3D::ResourceCache *_target)
  19853. {
  19854. return _target->GetFinishBackgroundResourcesMs ();
  19855. }
  19856. DllExport Urho3D::ResourceRouter *
  19857. ResourceCache_GetResourceRouter (Urho3D::ResourceCache *_target, unsigned int index)
  19858. {
  19859. return _target->GetResourceRouter (index);
  19860. }
  19861. DllExport const char *
  19862. ResourceCache_GetPreferredResourceDir (Urho3D::ResourceCache *_target, const char * path)
  19863. {
  19864. return stringdup((_target->GetPreferredResourceDir (Urho3D::String(path))).CString ());
  19865. }
  19866. DllExport const char *
  19867. ResourceCache_SanitateResourceName (Urho3D::ResourceCache *_target, const char * name)
  19868. {
  19869. return stringdup((_target->SanitateResourceName (Urho3D::String(name))).CString ());
  19870. }
  19871. DllExport const char *
  19872. ResourceCache_SanitateResourceDirName (Urho3D::ResourceCache *_target, const char * name)
  19873. {
  19874. return stringdup((_target->SanitateResourceDirName (Urho3D::String(name))).CString ());
  19875. }
  19876. DllExport void
  19877. ResourceCache_StoreResourceDependency (Urho3D::ResourceCache *_target, Urho3D::Resource * resource, const char * dependency)
  19878. {
  19879. _target->StoreResourceDependency (resource, Urho3D::String(dependency));
  19880. }
  19881. DllExport void
  19882. ResourceCache_ResetDependencies (Urho3D::ResourceCache *_target, Urho3D::Resource * resource)
  19883. {
  19884. _target->ResetDependencies (resource);
  19885. }
  19886. DllExport const char *
  19887. ResourceCache_PrintMemoryUsage (Urho3D::ResourceCache *_target)
  19888. {
  19889. return stringdup((_target->PrintMemoryUsage ()).CString ());
  19890. }
  19891. DllExport int
  19892. LogicComponent_GetType (Urho3D::LogicComponent *_target)
  19893. {
  19894. return (_target->GetType ()).Value ();
  19895. }
  19896. DllExport const char *
  19897. LogicComponent_GetTypeName (Urho3D::LogicComponent *_target)
  19898. {
  19899. return stringdup((_target->GetTypeName ()).CString ());
  19900. }
  19901. DllExport int
  19902. LogicComponent_GetTypeStatic ()
  19903. {
  19904. return (LogicComponent::GetTypeStatic ()).Value ();
  19905. }
  19906. DllExport const char *
  19907. LogicComponent_GetTypeNameStatic ()
  19908. {
  19909. return stringdup((LogicComponent::GetTypeNameStatic ()).CString ());
  19910. }
  19911. DllExport void *
  19912. LogicComponent_LogicComponent (Urho3D::Context * context)
  19913. {
  19914. return WeakPtr<LogicComponent>(new LogicComponent(context));
  19915. }
  19916. DllExport void
  19917. LogicComponent_OnSetEnabled (Urho3D::LogicComponent *_target)
  19918. {
  19919. _target->OnSetEnabled ();
  19920. }
  19921. DllExport void
  19922. LogicComponent_Start (Urho3D::LogicComponent *_target)
  19923. {
  19924. _target->Start ();
  19925. }
  19926. DllExport void
  19927. LogicComponent_DelayedStart (Urho3D::LogicComponent *_target)
  19928. {
  19929. _target->DelayedStart ();
  19930. }
  19931. DllExport void
  19932. LogicComponent_Stop (Urho3D::LogicComponent *_target)
  19933. {
  19934. _target->Stop ();
  19935. }
  19936. DllExport void
  19937. LogicComponent_Update (Urho3D::LogicComponent *_target, float timeStep)
  19938. {
  19939. _target->Update (timeStep);
  19940. }
  19941. DllExport void
  19942. LogicComponent_PostUpdate (Urho3D::LogicComponent *_target, float timeStep)
  19943. {
  19944. _target->PostUpdate (timeStep);
  19945. }
  19946. DllExport void
  19947. LogicComponent_FixedUpdate (Urho3D::LogicComponent *_target, float timeStep)
  19948. {
  19949. _target->FixedUpdate (timeStep);
  19950. }
  19951. DllExport void
  19952. LogicComponent_FixedPostUpdate (Urho3D::LogicComponent *_target, float timeStep)
  19953. {
  19954. _target->FixedPostUpdate (timeStep);
  19955. }
  19956. DllExport void
  19957. LogicComponent_SetUpdateEventMask (Urho3D::LogicComponent *_target, unsigned char mask)
  19958. {
  19959. _target->SetUpdateEventMask (mask);
  19960. }
  19961. DllExport unsigned char
  19962. LogicComponent_GetUpdateEventMask (Urho3D::LogicComponent *_target)
  19963. {
  19964. return _target->GetUpdateEventMask ();
  19965. }
  19966. DllExport int
  19967. LogicComponent_IsDelayedStartCalled (Urho3D::LogicComponent *_target)
  19968. {
  19969. return _target->IsDelayedStartCalled ();
  19970. }
  19971. DllExport int
  19972. ObjectAnimation_GetType (Urho3D::ObjectAnimation *_target)
  19973. {
  19974. return (_target->GetType ()).Value ();
  19975. }
  19976. DllExport const char *
  19977. ObjectAnimation_GetTypeName (Urho3D::ObjectAnimation *_target)
  19978. {
  19979. return stringdup((_target->GetTypeName ()).CString ());
  19980. }
  19981. DllExport int
  19982. ObjectAnimation_GetTypeStatic ()
  19983. {
  19984. return (ObjectAnimation::GetTypeStatic ()).Value ();
  19985. }
  19986. DllExport const char *
  19987. ObjectAnimation_GetTypeNameStatic ()
  19988. {
  19989. return stringdup((ObjectAnimation::GetTypeNameStatic ()).CString ());
  19990. }
  19991. DllExport void *
  19992. ObjectAnimation_ObjectAnimation (Urho3D::Context * context)
  19993. {
  19994. return WeakPtr<ObjectAnimation>(new ObjectAnimation(context));
  19995. }
  19996. DllExport void
  19997. ObjectAnimation_RegisterObject (Urho3D::Context * context)
  19998. {
  19999. ObjectAnimation::RegisterObject (context);
  20000. }
  20001. DllExport int
  20002. ObjectAnimation_BeginLoad_File (Urho3D::ObjectAnimation *_target, File * source)
  20003. {
  20004. return _target->BeginLoad (*source);
  20005. }
  20006. DllExport int
  20007. ObjectAnimation_BeginLoad_MemoryBuffer (Urho3D::ObjectAnimation *_target, MemoryBuffer * source)
  20008. {
  20009. return _target->BeginLoad (*source);
  20010. }
  20011. DllExport int
  20012. ObjectAnimation_Save_File (Urho3D::ObjectAnimation *_target, File * dest)
  20013. {
  20014. return _target->Save (*dest);
  20015. }
  20016. DllExport int
  20017. ObjectAnimation_Save_MemoryBuffer (Urho3D::ObjectAnimation *_target, MemoryBuffer * dest)
  20018. {
  20019. return _target->Save (*dest);
  20020. }
  20021. DllExport int
  20022. ObjectAnimation_LoadXML (Urho3D::ObjectAnimation *_target, const class Urho3D::XMLElement & source)
  20023. {
  20024. return _target->LoadXML (source);
  20025. }
  20026. DllExport int
  20027. ObjectAnimation_SaveXML (Urho3D::ObjectAnimation *_target, Urho3D::XMLElement & dest)
  20028. {
  20029. return _target->SaveXML (dest);
  20030. }
  20031. DllExport void
  20032. ObjectAnimation_AddAttributeAnimation (Urho3D::ObjectAnimation *_target, const char * name, Urho3D::ValueAnimation * attributeAnimation, enum Urho3D::WrapMode wrapMode, float speed)
  20033. {
  20034. _target->AddAttributeAnimation (Urho3D::String(name), attributeAnimation, wrapMode, speed);
  20035. }
  20036. DllExport void
  20037. ObjectAnimation_RemoveAttributeAnimation (Urho3D::ObjectAnimation *_target, const char * name)
  20038. {
  20039. _target->RemoveAttributeAnimation (Urho3D::String(name));
  20040. }
  20041. DllExport void
  20042. ObjectAnimation_RemoveAttributeAnimation0 (Urho3D::ObjectAnimation *_target, Urho3D::ValueAnimation * attributeAnimation)
  20043. {
  20044. _target->RemoveAttributeAnimation (attributeAnimation);
  20045. }
  20046. DllExport Urho3D::ValueAnimation *
  20047. ObjectAnimation_GetAttributeAnimation (Urho3D::ObjectAnimation *_target, const char * name)
  20048. {
  20049. return _target->GetAttributeAnimation (Urho3D::String(name));
  20050. }
  20051. DllExport enum Urho3D::WrapMode
  20052. ObjectAnimation_GetAttributeAnimationWrapMode (Urho3D::ObjectAnimation *_target, const char * name)
  20053. {
  20054. return _target->GetAttributeAnimationWrapMode (Urho3D::String(name));
  20055. }
  20056. DllExport float
  20057. ObjectAnimation_GetAttributeAnimationSpeed (Urho3D::ObjectAnimation *_target, const char * name)
  20058. {
  20059. return _target->GetAttributeAnimationSpeed (Urho3D::String(name));
  20060. }
  20061. DllExport Urho3D::ValueAnimationInfo *
  20062. ObjectAnimation_GetAttributeAnimationInfo (Urho3D::ObjectAnimation *_target, const char * name)
  20063. {
  20064. return _target->GetAttributeAnimationInfo (Urho3D::String(name));
  20065. }
  20066. DllExport void *
  20067. SceneResolver_SceneResolver ()
  20068. {
  20069. return new SceneResolver();
  20070. }
  20071. DllExport void
  20072. SceneResolver_Reset (Urho3D::SceneResolver *_target)
  20073. {
  20074. _target->Reset ();
  20075. }
  20076. DllExport void
  20077. SceneResolver_AddNode (Urho3D::SceneResolver *_target, unsigned int oldID, Urho3D::Node * node)
  20078. {
  20079. _target->AddNode (oldID, node);
  20080. }
  20081. DllExport void
  20082. SceneResolver_AddComponent (Urho3D::SceneResolver *_target, unsigned int oldID, Urho3D::Component * component)
  20083. {
  20084. _target->AddComponent (oldID, component);
  20085. }
  20086. DllExport void
  20087. SceneResolver_Resolve (Urho3D::SceneResolver *_target)
  20088. {
  20089. _target->Resolve ();
  20090. }
  20091. DllExport int
  20092. Scene_GetType (Urho3D::Scene *_target)
  20093. {
  20094. return (_target->GetType ()).Value ();
  20095. }
  20096. DllExport const char *
  20097. Scene_GetTypeName (Urho3D::Scene *_target)
  20098. {
  20099. return stringdup((_target->GetTypeName ()).CString ());
  20100. }
  20101. DllExport int
  20102. Scene_GetTypeStatic ()
  20103. {
  20104. return (Scene::GetTypeStatic ()).Value ();
  20105. }
  20106. DllExport const char *
  20107. Scene_GetTypeNameStatic ()
  20108. {
  20109. return stringdup((Scene::GetTypeNameStatic ()).CString ());
  20110. }
  20111. DllExport void *
  20112. Scene_Scene (Urho3D::Context * context)
  20113. {
  20114. return WeakPtr<Scene>(new Scene(context));
  20115. }
  20116. DllExport void
  20117. Scene_RegisterObject (Urho3D::Context * context)
  20118. {
  20119. Scene::RegisterObject (context);
  20120. }
  20121. DllExport int
  20122. Scene_Load_File (Urho3D::Scene *_target, File * source, bool setInstanceDefault)
  20123. {
  20124. return _target->Load (*source, setInstanceDefault);
  20125. }
  20126. DllExport int
  20127. Scene_Load_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * source, bool setInstanceDefault)
  20128. {
  20129. return _target->Load (*source, setInstanceDefault);
  20130. }
  20131. DllExport int
  20132. Scene_Save_File (Urho3D::Scene *_target, File * dest)
  20133. {
  20134. return _target->Save (*dest);
  20135. }
  20136. DllExport int
  20137. Scene_Save_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * dest)
  20138. {
  20139. return _target->Save (*dest);
  20140. }
  20141. DllExport int
  20142. Scene_LoadXML (Urho3D::Scene *_target, const class Urho3D::XMLElement & source, bool setInstanceDefault)
  20143. {
  20144. return _target->LoadXML (source, setInstanceDefault);
  20145. }
  20146. DllExport void
  20147. Scene_MarkNetworkUpdate (Urho3D::Scene *_target)
  20148. {
  20149. _target->MarkNetworkUpdate ();
  20150. }
  20151. DllExport void
  20152. Scene_AddReplicationState (Urho3D::Scene *_target, Urho3D::NodeReplicationState * state)
  20153. {
  20154. _target->AddReplicationState (state);
  20155. }
  20156. DllExport int
  20157. Scene_LoadXML0_File (Urho3D::Scene *_target, File * source)
  20158. {
  20159. return _target->LoadXML (*source);
  20160. }
  20161. DllExport int
  20162. Scene_LoadXML0_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * source)
  20163. {
  20164. return _target->LoadXML (*source);
  20165. }
  20166. DllExport int
  20167. Scene_LoadJSON_File (Urho3D::Scene *_target, File * source)
  20168. {
  20169. return _target->LoadJSON (*source);
  20170. }
  20171. DllExport int
  20172. Scene_LoadJSON_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * source)
  20173. {
  20174. return _target->LoadJSON (*source);
  20175. }
  20176. DllExport int
  20177. Scene_SaveXML_File (Urho3D::Scene *_target, File * dest, const char * indentation)
  20178. {
  20179. return _target->SaveXML (*dest, Urho3D::String(indentation));
  20180. }
  20181. DllExport int
  20182. Scene_SaveXML_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * dest, const char * indentation)
  20183. {
  20184. return _target->SaveXML (*dest, Urho3D::String(indentation));
  20185. }
  20186. DllExport int
  20187. Scene_SaveJSON_File (Urho3D::Scene *_target, File * dest, const char * indentation)
  20188. {
  20189. return _target->SaveJSON (*dest, Urho3D::String(indentation));
  20190. }
  20191. DllExport int
  20192. Scene_SaveJSON_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * dest, const char * indentation)
  20193. {
  20194. return _target->SaveJSON (*dest, Urho3D::String(indentation));
  20195. }
  20196. DllExport int
  20197. Scene_LoadAsync (Urho3D::Scene *_target, Urho3D::File * file, enum Urho3D::LoadMode mode)
  20198. {
  20199. return _target->LoadAsync (file, mode);
  20200. }
  20201. DllExport int
  20202. Scene_LoadAsyncXML (Urho3D::Scene *_target, Urho3D::File * file, enum Urho3D::LoadMode mode)
  20203. {
  20204. return _target->LoadAsyncXML (file, mode);
  20205. }
  20206. DllExport int
  20207. Scene_LoadAsyncJSON (Urho3D::Scene *_target, Urho3D::File * file, enum Urho3D::LoadMode mode)
  20208. {
  20209. return _target->LoadAsyncJSON (file, mode);
  20210. }
  20211. DllExport void
  20212. Scene_StopAsyncLoading (Urho3D::Scene *_target)
  20213. {
  20214. _target->StopAsyncLoading ();
  20215. }
  20216. DllExport Urho3D::Node *
  20217. Scene_Instantiate_File (Urho3D::Scene *_target, File * source, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, enum Urho3D::CreateMode mode)
  20218. {
  20219. return _target->Instantiate (*source, position, rotation, mode);
  20220. }
  20221. DllExport Urho3D::Node *
  20222. Scene_Instantiate_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * source, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, enum Urho3D::CreateMode mode)
  20223. {
  20224. return _target->Instantiate (*source, position, rotation, mode);
  20225. }
  20226. DllExport Urho3D::Node *
  20227. Scene_InstantiateXML (Urho3D::Scene *_target, const class Urho3D::XMLElement & source, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, enum Urho3D::CreateMode mode)
  20228. {
  20229. return _target->InstantiateXML (source, position, rotation, mode);
  20230. }
  20231. DllExport Urho3D::Node *
  20232. Scene_InstantiateXML1_File (Urho3D::Scene *_target, File * source, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, enum Urho3D::CreateMode mode)
  20233. {
  20234. return _target->InstantiateXML (*source, position, rotation, mode);
  20235. }
  20236. DllExport Urho3D::Node *
  20237. Scene_InstantiateXML1_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * source, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, enum Urho3D::CreateMode mode)
  20238. {
  20239. return _target->InstantiateXML (*source, position, rotation, mode);
  20240. }
  20241. DllExport Urho3D::Node *
  20242. Scene_InstantiateJSON_File (Urho3D::Scene *_target, File * source, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, enum Urho3D::CreateMode mode)
  20243. {
  20244. return _target->InstantiateJSON (*source, position, rotation, mode);
  20245. }
  20246. DllExport Urho3D::Node *
  20247. Scene_InstantiateJSON_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * source, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, enum Urho3D::CreateMode mode)
  20248. {
  20249. return _target->InstantiateJSON (*source, position, rotation, mode);
  20250. }
  20251. DllExport void
  20252. Scene_Clear (Urho3D::Scene *_target, bool clearReplicated, bool clearLocal)
  20253. {
  20254. _target->Clear (clearReplicated, clearLocal);
  20255. }
  20256. DllExport void
  20257. Scene_SetUpdateEnabled (Urho3D::Scene *_target, bool enable)
  20258. {
  20259. _target->SetUpdateEnabled (enable);
  20260. }
  20261. DllExport void
  20262. Scene_SetTimeScale (Urho3D::Scene *_target, float scale)
  20263. {
  20264. _target->SetTimeScale (scale);
  20265. }
  20266. DllExport void
  20267. Scene_SetElapsedTime (Urho3D::Scene *_target, float time)
  20268. {
  20269. _target->SetElapsedTime (time);
  20270. }
  20271. DllExport void
  20272. Scene_SetSmoothingConstant (Urho3D::Scene *_target, float constant)
  20273. {
  20274. _target->SetSmoothingConstant (constant);
  20275. }
  20276. DllExport void
  20277. Scene_SetSnapThreshold (Urho3D::Scene *_target, float threshold)
  20278. {
  20279. _target->SetSnapThreshold (threshold);
  20280. }
  20281. DllExport void
  20282. Scene_SetAsyncLoadingMs (Urho3D::Scene *_target, int ms)
  20283. {
  20284. _target->SetAsyncLoadingMs (ms);
  20285. }
  20286. DllExport void
  20287. Scene_AddRequiredPackageFile (Urho3D::Scene *_target, Urho3D::PackageFile * package)
  20288. {
  20289. _target->AddRequiredPackageFile (package);
  20290. }
  20291. DllExport void
  20292. Scene_ClearRequiredPackageFiles (Urho3D::Scene *_target)
  20293. {
  20294. _target->ClearRequiredPackageFiles ();
  20295. }
  20296. DllExport void
  20297. Scene_RegisterVar (Urho3D::Scene *_target, const char * name)
  20298. {
  20299. _target->RegisterVar (Urho3D::String(name));
  20300. }
  20301. DllExport void
  20302. Scene_UnregisterVar (Urho3D::Scene *_target, const char * name)
  20303. {
  20304. _target->UnregisterVar (Urho3D::String(name));
  20305. }
  20306. DllExport void
  20307. Scene_UnregisterAllVars (Urho3D::Scene *_target)
  20308. {
  20309. _target->UnregisterAllVars ();
  20310. }
  20311. DllExport Urho3D::Node *
  20312. Scene_GetNode (Urho3D::Scene *_target, unsigned int id)
  20313. {
  20314. return _target->GetNode (id);
  20315. }
  20316. DllExport Urho3D::Component *
  20317. Scene_GetComponent (Urho3D::Scene *_target, unsigned int id)
  20318. {
  20319. return _target->GetComponent (id);
  20320. }
  20321. DllExport int
  20322. Scene_IsUpdateEnabled (Urho3D::Scene *_target)
  20323. {
  20324. return _target->IsUpdateEnabled ();
  20325. }
  20326. DllExport int
  20327. Scene_IsAsyncLoading (Urho3D::Scene *_target)
  20328. {
  20329. return _target->IsAsyncLoading ();
  20330. }
  20331. DllExport float
  20332. Scene_GetAsyncProgress (Urho3D::Scene *_target)
  20333. {
  20334. return _target->GetAsyncProgress ();
  20335. }
  20336. DllExport enum Urho3D::LoadMode
  20337. Scene_GetAsyncLoadMode (Urho3D::Scene *_target)
  20338. {
  20339. return _target->GetAsyncLoadMode ();
  20340. }
  20341. DllExport const char *
  20342. Scene_GetFileName (Urho3D::Scene *_target)
  20343. {
  20344. return stringdup((_target->GetFileName ()).CString ());
  20345. }
  20346. DllExport unsigned int
  20347. Scene_GetChecksum (Urho3D::Scene *_target)
  20348. {
  20349. return _target->GetChecksum ();
  20350. }
  20351. DllExport float
  20352. Scene_GetTimeScale (Urho3D::Scene *_target)
  20353. {
  20354. return _target->GetTimeScale ();
  20355. }
  20356. DllExport float
  20357. Scene_GetElapsedTime (Urho3D::Scene *_target)
  20358. {
  20359. return _target->GetElapsedTime ();
  20360. }
  20361. DllExport float
  20362. Scene_GetSmoothingConstant (Urho3D::Scene *_target)
  20363. {
  20364. return _target->GetSmoothingConstant ();
  20365. }
  20366. DllExport float
  20367. Scene_GetSnapThreshold (Urho3D::Scene *_target)
  20368. {
  20369. return _target->GetSnapThreshold ();
  20370. }
  20371. DllExport int
  20372. Scene_GetAsyncLoadingMs (Urho3D::Scene *_target)
  20373. {
  20374. return _target->GetAsyncLoadingMs ();
  20375. }
  20376. DllExport const Vector<SharedPtr<class Urho3D::PackageFile> > &
  20377. Scene_GetRequiredPackageFiles (Urho3D::Scene *_target)
  20378. {
  20379. return _target->GetRequiredPackageFiles ();
  20380. }
  20381. DllExport const char *
  20382. Scene_GetVarName (Urho3D::Scene *_target, int hash)
  20383. {
  20384. return stringdup((_target->GetVarName (Urho3D::StringHash(hash))).CString ());
  20385. }
  20386. DllExport void
  20387. Scene_Update (Urho3D::Scene *_target, float timeStep)
  20388. {
  20389. _target->Update (timeStep);
  20390. }
  20391. DllExport void
  20392. Scene_BeginThreadedUpdate (Urho3D::Scene *_target)
  20393. {
  20394. _target->BeginThreadedUpdate ();
  20395. }
  20396. DllExport void
  20397. Scene_EndThreadedUpdate (Urho3D::Scene *_target)
  20398. {
  20399. _target->EndThreadedUpdate ();
  20400. }
  20401. DllExport void
  20402. Scene_DelayedMarkedDirty (Urho3D::Scene *_target, Urho3D::Component * component)
  20403. {
  20404. _target->DelayedMarkedDirty (component);
  20405. }
  20406. DllExport int
  20407. Scene_IsThreadedUpdate (Urho3D::Scene *_target)
  20408. {
  20409. return _target->IsThreadedUpdate ();
  20410. }
  20411. DllExport unsigned int
  20412. Scene_GetFreeNodeID (Urho3D::Scene *_target, enum Urho3D::CreateMode mode)
  20413. {
  20414. return _target->GetFreeNodeID (mode);
  20415. }
  20416. DllExport unsigned int
  20417. Scene_GetFreeComponentID (Urho3D::Scene *_target, enum Urho3D::CreateMode mode)
  20418. {
  20419. return _target->GetFreeComponentID (mode);
  20420. }
  20421. DllExport void
  20422. Scene_NodeTagAdded (Urho3D::Scene *_target, Urho3D::Node * node, const char * tag)
  20423. {
  20424. _target->NodeTagAdded (node, Urho3D::String(tag));
  20425. }
  20426. DllExport void
  20427. Scene_NodeTagRemoved (Urho3D::Scene *_target, Urho3D::Node * node, const char * tag)
  20428. {
  20429. _target->NodeTagRemoved (node, Urho3D::String(tag));
  20430. }
  20431. DllExport void
  20432. Scene_SetVarNamesAttr (Urho3D::Scene *_target, const char * value)
  20433. {
  20434. _target->SetVarNamesAttr (Urho3D::String(value));
  20435. }
  20436. DllExport const char *
  20437. Scene_GetVarNamesAttr (Urho3D::Scene *_target)
  20438. {
  20439. return stringdup((_target->GetVarNamesAttr ()).CString ());
  20440. }
  20441. DllExport void
  20442. Scene_PrepareNetworkUpdate (Urho3D::Scene *_target)
  20443. {
  20444. _target->PrepareNetworkUpdate ();
  20445. }
  20446. DllExport void
  20447. Scene_CleanupConnection (Urho3D::Scene *_target, Urho3D::Connection * connection)
  20448. {
  20449. _target->CleanupConnection (connection);
  20450. }
  20451. DllExport void
  20452. Scene_MarkNetworkUpdate2 (Urho3D::Scene *_target, Urho3D::Node * node)
  20453. {
  20454. _target->MarkNetworkUpdate (node);
  20455. }
  20456. DllExport void
  20457. Scene_MarkNetworkUpdate3 (Urho3D::Scene *_target, Urho3D::Component * component)
  20458. {
  20459. _target->MarkNetworkUpdate (component);
  20460. }
  20461. DllExport void
  20462. Scene_MarkReplicationDirty (Urho3D::Scene *_target, Urho3D::Node * node)
  20463. {
  20464. _target->MarkReplicationDirty (node);
  20465. }
  20466. DllExport int
  20467. SmoothedTransform_GetType (Urho3D::SmoothedTransform *_target)
  20468. {
  20469. return (_target->GetType ()).Value ();
  20470. }
  20471. DllExport const char *
  20472. SmoothedTransform_GetTypeName (Urho3D::SmoothedTransform *_target)
  20473. {
  20474. return stringdup((_target->GetTypeName ()).CString ());
  20475. }
  20476. DllExport int
  20477. SmoothedTransform_GetTypeStatic ()
  20478. {
  20479. return (SmoothedTransform::GetTypeStatic ()).Value ();
  20480. }
  20481. DllExport const char *
  20482. SmoothedTransform_GetTypeNameStatic ()
  20483. {
  20484. return stringdup((SmoothedTransform::GetTypeNameStatic ()).CString ());
  20485. }
  20486. DllExport void *
  20487. SmoothedTransform_SmoothedTransform (Urho3D::Context * context)
  20488. {
  20489. return WeakPtr<SmoothedTransform>(new SmoothedTransform(context));
  20490. }
  20491. DllExport void
  20492. SmoothedTransform_RegisterObject (Urho3D::Context * context)
  20493. {
  20494. SmoothedTransform::RegisterObject (context);
  20495. }
  20496. DllExport void
  20497. SmoothedTransform_Update (Urho3D::SmoothedTransform *_target, float constant, float squaredSnapThreshold)
  20498. {
  20499. _target->Update (constant, squaredSnapThreshold);
  20500. }
  20501. DllExport void
  20502. SmoothedTransform_SetTargetPosition (Urho3D::SmoothedTransform *_target, const class Urho3D::Vector3 & position)
  20503. {
  20504. _target->SetTargetPosition (position);
  20505. }
  20506. DllExport void
  20507. SmoothedTransform_SetTargetRotation (Urho3D::SmoothedTransform *_target, const class Urho3D::Quaternion & rotation)
  20508. {
  20509. _target->SetTargetRotation (rotation);
  20510. }
  20511. DllExport void
  20512. SmoothedTransform_SetTargetWorldPosition (Urho3D::SmoothedTransform *_target, const class Urho3D::Vector3 & position)
  20513. {
  20514. _target->SetTargetWorldPosition (position);
  20515. }
  20516. DllExport void
  20517. SmoothedTransform_SetTargetWorldRotation (Urho3D::SmoothedTransform *_target, const class Urho3D::Quaternion & rotation)
  20518. {
  20519. _target->SetTargetWorldRotation (rotation);
  20520. }
  20521. DllExport Interop::Vector3
  20522. SmoothedTransform_GetTargetPosition (Urho3D::SmoothedTransform *_target)
  20523. {
  20524. return *((Interop::Vector3 *) &(_target->GetTargetPosition ()));
  20525. }
  20526. DllExport Interop::Quaternion
  20527. SmoothedTransform_GetTargetRotation (Urho3D::SmoothedTransform *_target)
  20528. {
  20529. return *((Interop::Quaternion *) &(_target->GetTargetRotation ()));
  20530. }
  20531. DllExport Interop::Vector3
  20532. SmoothedTransform_GetTargetWorldPosition (Urho3D::SmoothedTransform *_target)
  20533. {
  20534. return *((Interop::Vector3 *) &(_target->GetTargetWorldPosition ()));
  20535. }
  20536. DllExport Interop::Quaternion
  20537. SmoothedTransform_GetTargetWorldRotation (Urho3D::SmoothedTransform *_target)
  20538. {
  20539. return *((Interop::Quaternion *) &(_target->GetTargetWorldRotation ()));
  20540. }
  20541. DllExport int
  20542. SmoothedTransform_IsInProgress (Urho3D::SmoothedTransform *_target)
  20543. {
  20544. return _target->IsInProgress ();
  20545. }
  20546. DllExport int
  20547. SplinePath_GetType (Urho3D::SplinePath *_target)
  20548. {
  20549. return (_target->GetType ()).Value ();
  20550. }
  20551. DllExport const char *
  20552. SplinePath_GetTypeName (Urho3D::SplinePath *_target)
  20553. {
  20554. return stringdup((_target->GetTypeName ()).CString ());
  20555. }
  20556. DllExport int
  20557. SplinePath_GetTypeStatic ()
  20558. {
  20559. return (SplinePath::GetTypeStatic ()).Value ();
  20560. }
  20561. DllExport const char *
  20562. SplinePath_GetTypeNameStatic ()
  20563. {
  20564. return stringdup((SplinePath::GetTypeNameStatic ()).CString ());
  20565. }
  20566. DllExport void *
  20567. SplinePath_SplinePath (Urho3D::Context * context)
  20568. {
  20569. return WeakPtr<SplinePath>(new SplinePath(context));
  20570. }
  20571. DllExport void
  20572. SplinePath_RegisterObject (Urho3D::Context * context)
  20573. {
  20574. SplinePath::RegisterObject (context);
  20575. }
  20576. DllExport void
  20577. SplinePath_ApplyAttributes (Urho3D::SplinePath *_target)
  20578. {
  20579. _target->ApplyAttributes ();
  20580. }
  20581. DllExport void
  20582. SplinePath_DrawDebugGeometry (Urho3D::SplinePath *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  20583. {
  20584. _target->DrawDebugGeometry (debug, depthTest);
  20585. }
  20586. DllExport void
  20587. SplinePath_AddControlPoint (Urho3D::SplinePath *_target, Urho3D::Node * point, unsigned int index)
  20588. {
  20589. _target->AddControlPoint (point, index);
  20590. }
  20591. DllExport void
  20592. SplinePath_RemoveControlPoint (Urho3D::SplinePath *_target, Urho3D::Node * point)
  20593. {
  20594. _target->RemoveControlPoint (point);
  20595. }
  20596. DllExport void
  20597. SplinePath_ClearControlPoints (Urho3D::SplinePath *_target)
  20598. {
  20599. _target->ClearControlPoints ();
  20600. }
  20601. DllExport void
  20602. SplinePath_SetInterpolationMode (Urho3D::SplinePath *_target, enum Urho3D::InterpolationMode interpolationMode)
  20603. {
  20604. _target->SetInterpolationMode (interpolationMode);
  20605. }
  20606. DllExport void
  20607. SplinePath_SetSpeed (Urho3D::SplinePath *_target, float speed)
  20608. {
  20609. _target->SetSpeed (speed);
  20610. }
  20611. DllExport void
  20612. SplinePath_SetPosition (Urho3D::SplinePath *_target, float factor)
  20613. {
  20614. _target->SetPosition (factor);
  20615. }
  20616. DllExport void
  20617. SplinePath_SetControlledNode (Urho3D::SplinePath *_target, Urho3D::Node * controlled)
  20618. {
  20619. _target->SetControlledNode (controlled);
  20620. }
  20621. DllExport enum Urho3D::InterpolationMode
  20622. SplinePath_GetInterpolationMode (Urho3D::SplinePath *_target)
  20623. {
  20624. return _target->GetInterpolationMode ();
  20625. }
  20626. DllExport float
  20627. SplinePath_GetSpeed (Urho3D::SplinePath *_target)
  20628. {
  20629. return _target->GetSpeed ();
  20630. }
  20631. DllExport float
  20632. SplinePath_GetLength (Urho3D::SplinePath *_target)
  20633. {
  20634. return _target->GetLength ();
  20635. }
  20636. DllExport Interop::Vector3
  20637. SplinePath_GetPosition (Urho3D::SplinePath *_target)
  20638. {
  20639. return *((Interop::Vector3 *) &(_target->GetPosition ()));
  20640. }
  20641. DllExport Urho3D::Node *
  20642. SplinePath_GetControlledNode (Urho3D::SplinePath *_target)
  20643. {
  20644. return _target->GetControlledNode ();
  20645. }
  20646. DllExport Interop::Vector3
  20647. SplinePath_GetPoint (Urho3D::SplinePath *_target, float factor)
  20648. {
  20649. return *((Interop::Vector3 *) &(_target->GetPoint (factor)));
  20650. }
  20651. DllExport void
  20652. SplinePath_Move (Urho3D::SplinePath *_target, float timeStep)
  20653. {
  20654. _target->Move (timeStep);
  20655. }
  20656. DllExport void
  20657. SplinePath_Reset (Urho3D::SplinePath *_target)
  20658. {
  20659. _target->Reset ();
  20660. }
  20661. DllExport int
  20662. SplinePath_IsFinished (Urho3D::SplinePath *_target)
  20663. {
  20664. return _target->IsFinished ();
  20665. }
  20666. DllExport void
  20667. SplinePath_SetControlledIdAttr (Urho3D::SplinePath *_target, unsigned int value)
  20668. {
  20669. _target->SetControlledIdAttr (value);
  20670. }
  20671. DllExport unsigned int
  20672. SplinePath_GetControlledIdAttr (Urho3D::SplinePath *_target)
  20673. {
  20674. return _target->GetControlledIdAttr ();
  20675. }
  20676. DllExport void *
  20677. UnknownComponent_UnknownComponent (Urho3D::Context * context)
  20678. {
  20679. return WeakPtr<UnknownComponent>(new UnknownComponent(context));
  20680. }
  20681. DllExport void
  20682. UnknownComponent_RegisterObject (Urho3D::Context * context)
  20683. {
  20684. UnknownComponent::RegisterObject (context);
  20685. }
  20686. DllExport int
  20687. UnknownComponent_GetType (Urho3D::UnknownComponent *_target)
  20688. {
  20689. return (_target->GetType ()).Value ();
  20690. }
  20691. DllExport const char *
  20692. UnknownComponent_GetTypeName (Urho3D::UnknownComponent *_target)
  20693. {
  20694. return stringdup((_target->GetTypeName ()).CString ());
  20695. }
  20696. DllExport int
  20697. UnknownComponent_Load_File (Urho3D::UnknownComponent *_target, File * source, bool setInstanceDefault)
  20698. {
  20699. return _target->Load (*source, setInstanceDefault);
  20700. }
  20701. DllExport int
  20702. UnknownComponent_Load_MemoryBuffer (Urho3D::UnknownComponent *_target, MemoryBuffer * source, bool setInstanceDefault)
  20703. {
  20704. return _target->Load (*source, setInstanceDefault);
  20705. }
  20706. DllExport int
  20707. UnknownComponent_LoadXML (Urho3D::UnknownComponent *_target, const class Urho3D::XMLElement & source, bool setInstanceDefault)
  20708. {
  20709. return _target->LoadXML (source, setInstanceDefault);
  20710. }
  20711. DllExport int
  20712. UnknownComponent_Save_File (Urho3D::UnknownComponent *_target, File * dest)
  20713. {
  20714. return _target->Save (*dest);
  20715. }
  20716. DllExport int
  20717. UnknownComponent_Save_MemoryBuffer (Urho3D::UnknownComponent *_target, MemoryBuffer * dest)
  20718. {
  20719. return _target->Save (*dest);
  20720. }
  20721. DllExport int
  20722. UnknownComponent_SaveXML (Urho3D::UnknownComponent *_target, Urho3D::XMLElement & dest)
  20723. {
  20724. return _target->SaveXML (dest);
  20725. }
  20726. DllExport void
  20727. UnknownComponent_SetTypeName (Urho3D::UnknownComponent *_target, const char * typeName)
  20728. {
  20729. _target->SetTypeName (Urho3D::String(typeName));
  20730. }
  20731. DllExport void
  20732. UnknownComponent_SetType (Urho3D::UnknownComponent *_target, int typeHash)
  20733. {
  20734. _target->SetType (Urho3D::StringHash(typeHash));
  20735. }
  20736. DllExport int
  20737. UnknownComponent_GetUseXML (Urho3D::UnknownComponent *_target)
  20738. {
  20739. return _target->GetUseXML ();
  20740. }
  20741. DllExport int
  20742. UnknownComponent_GetTypeStatic ()
  20743. {
  20744. return (UnknownComponent::GetTypeStatic ()).Value ();
  20745. }
  20746. DllExport const char *
  20747. UnknownComponent_GetTypeNameStatic ()
  20748. {
  20749. return stringdup((UnknownComponent::GetTypeNameStatic ()).CString ());
  20750. }
  20751. DllExport int
  20752. ValueAnimation_GetType (Urho3D::ValueAnimation *_target)
  20753. {
  20754. return (_target->GetType ()).Value ();
  20755. }
  20756. DllExport const char *
  20757. ValueAnimation_GetTypeName (Urho3D::ValueAnimation *_target)
  20758. {
  20759. return stringdup((_target->GetTypeName ()).CString ());
  20760. }
  20761. DllExport int
  20762. ValueAnimation_GetTypeStatic ()
  20763. {
  20764. return (ValueAnimation::GetTypeStatic ()).Value ();
  20765. }
  20766. DllExport const char *
  20767. ValueAnimation_GetTypeNameStatic ()
  20768. {
  20769. return stringdup((ValueAnimation::GetTypeNameStatic ()).CString ());
  20770. }
  20771. DllExport void *
  20772. ValueAnimation_ValueAnimation (Urho3D::Context * context)
  20773. {
  20774. return WeakPtr<ValueAnimation>(new ValueAnimation(context));
  20775. }
  20776. DllExport void
  20777. ValueAnimation_RegisterObject (Urho3D::Context * context)
  20778. {
  20779. ValueAnimation::RegisterObject (context);
  20780. }
  20781. DllExport int
  20782. ValueAnimation_BeginLoad_File (Urho3D::ValueAnimation *_target, File * source)
  20783. {
  20784. return _target->BeginLoad (*source);
  20785. }
  20786. DllExport int
  20787. ValueAnimation_BeginLoad_MemoryBuffer (Urho3D::ValueAnimation *_target, MemoryBuffer * source)
  20788. {
  20789. return _target->BeginLoad (*source);
  20790. }
  20791. DllExport int
  20792. ValueAnimation_Save_File (Urho3D::ValueAnimation *_target, File * dest)
  20793. {
  20794. return _target->Save (*dest);
  20795. }
  20796. DllExport int
  20797. ValueAnimation_Save_MemoryBuffer (Urho3D::ValueAnimation *_target, MemoryBuffer * dest)
  20798. {
  20799. return _target->Save (*dest);
  20800. }
  20801. DllExport int
  20802. ValueAnimation_LoadXML (Urho3D::ValueAnimation *_target, const class Urho3D::XMLElement & source)
  20803. {
  20804. return _target->LoadXML (source);
  20805. }
  20806. DllExport int
  20807. ValueAnimation_SaveXML (Urho3D::ValueAnimation *_target, Urho3D::XMLElement & dest)
  20808. {
  20809. return _target->SaveXML (dest);
  20810. }
  20811. DllExport void
  20812. ValueAnimation_SetOwner (Urho3D::ValueAnimation *_target, void * owner)
  20813. {
  20814. _target->SetOwner (owner);
  20815. }
  20816. DllExport void
  20817. ValueAnimation_SetInterpolationMethod (Urho3D::ValueAnimation *_target, enum Urho3D::InterpMethod method)
  20818. {
  20819. _target->SetInterpolationMethod (method);
  20820. }
  20821. DllExport void
  20822. ValueAnimation_SetSplineTension (Urho3D::ValueAnimation *_target, float tension)
  20823. {
  20824. _target->SetSplineTension (tension);
  20825. }
  20826. DllExport void
  20827. ValueAnimation_SetValueType (Urho3D::ValueAnimation *_target, enum Urho3D::VariantType valueType)
  20828. {
  20829. _target->SetValueType (valueType);
  20830. }
  20831. // Urho3D::Variant overloads begin:
  20832. DllExport int
  20833. ValueAnimation_SetKeyFrame_0 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::Vector3 & value)
  20834. {
  20835. return _target->SetKeyFrame (time, (value));
  20836. }
  20837. DllExport int
  20838. ValueAnimation_SetKeyFrame_1 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::IntRect & value)
  20839. {
  20840. return _target->SetKeyFrame (time, (value));
  20841. }
  20842. DllExport int
  20843. ValueAnimation_SetKeyFrame_2 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::Color & value)
  20844. {
  20845. return _target->SetKeyFrame (time, (value));
  20846. }
  20847. DllExport int
  20848. ValueAnimation_SetKeyFrame_3 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::Vector2 & value)
  20849. {
  20850. return _target->SetKeyFrame (time, (value));
  20851. }
  20852. DllExport int
  20853. ValueAnimation_SetKeyFrame_4 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::Vector4 & value)
  20854. {
  20855. return _target->SetKeyFrame (time, (value));
  20856. }
  20857. DllExport int
  20858. ValueAnimation_SetKeyFrame_5 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::IntVector2 & value)
  20859. {
  20860. return _target->SetKeyFrame (time, (value));
  20861. }
  20862. DllExport int
  20863. ValueAnimation_SetKeyFrame_6 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::Quaternion & value)
  20864. {
  20865. return _target->SetKeyFrame (time, (value));
  20866. }
  20867. DllExport int
  20868. ValueAnimation_SetKeyFrame_7 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::Matrix4 & value)
  20869. {
  20870. return _target->SetKeyFrame (time, (value));
  20871. }
  20872. DllExport int
  20873. ValueAnimation_SetKeyFrame_8 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::Matrix3x4 & value)
  20874. {
  20875. return _target->SetKeyFrame (time, (value));
  20876. }
  20877. DllExport int
  20878. ValueAnimation_SetKeyFrame_9 (Urho3D::ValueAnimation *_target, float time, int value)
  20879. {
  20880. return _target->SetKeyFrame (time, (value));
  20881. }
  20882. DllExport int
  20883. ValueAnimation_SetKeyFrame_10 (Urho3D::ValueAnimation *_target, float time, float value)
  20884. {
  20885. return _target->SetKeyFrame (time, (value));
  20886. }
  20887. DllExport int
  20888. ValueAnimation_SetKeyFrame_11 (Urho3D::ValueAnimation *_target, float time, const char * value)
  20889. {
  20890. return _target->SetKeyFrame (time, Urho3D::String(value));
  20891. }
  20892. DllExport int
  20893. ValueAnimation_SetKeyFrame_12 (Urho3D::ValueAnimation *_target, float time, bool value)
  20894. {
  20895. return _target->SetKeyFrame (time, (value));
  20896. }
  20897. // Urho3D::Variant overloads end.
  20898. DllExport int
  20899. ValueAnimation_IsValid (Urho3D::ValueAnimation *_target)
  20900. {
  20901. return _target->IsValid ();
  20902. }
  20903. DllExport void *
  20904. ValueAnimation_GetOwner (Urho3D::ValueAnimation *_target)
  20905. {
  20906. return _target->GetOwner ();
  20907. }
  20908. DllExport enum Urho3D::InterpMethod
  20909. ValueAnimation_GetInterpolationMethod (Urho3D::ValueAnimation *_target)
  20910. {
  20911. return _target->GetInterpolationMethod ();
  20912. }
  20913. DllExport float
  20914. ValueAnimation_GetSplineTension (Urho3D::ValueAnimation *_target)
  20915. {
  20916. return _target->GetSplineTension ();
  20917. }
  20918. DllExport enum Urho3D::VariantType
  20919. ValueAnimation_GetValueType (Urho3D::ValueAnimation *_target)
  20920. {
  20921. return _target->GetValueType ();
  20922. }
  20923. DllExport float
  20924. ValueAnimation_GetBeginTime (Urho3D::ValueAnimation *_target)
  20925. {
  20926. return _target->GetBeginTime ();
  20927. }
  20928. DllExport float
  20929. ValueAnimation_GetEndTime (Urho3D::ValueAnimation *_target)
  20930. {
  20931. return _target->GetEndTime ();
  20932. }
  20933. DllExport Urho3D::Variant
  20934. ValueAnimation_GetAnimationValue (Urho3D::ValueAnimation *_target, float scaledTime)
  20935. {
  20936. return _target->GetAnimationValue (scaledTime);
  20937. }
  20938. DllExport int
  20939. ValueAnimation_HasEventFrames (Urho3D::ValueAnimation *_target)
  20940. {
  20941. return _target->HasEventFrames ();
  20942. }
  20943. DllExport int
  20944. Button_GetType (Urho3D::Button *_target)
  20945. {
  20946. return (_target->GetType ()).Value ();
  20947. }
  20948. DllExport const char *
  20949. Button_GetTypeName (Urho3D::Button *_target)
  20950. {
  20951. return stringdup((_target->GetTypeName ()).CString ());
  20952. }
  20953. DllExport int
  20954. Button_GetTypeStatic ()
  20955. {
  20956. return (Button::GetTypeStatic ()).Value ();
  20957. }
  20958. DllExport const char *
  20959. Button_GetTypeNameStatic ()
  20960. {
  20961. return stringdup((Button::GetTypeNameStatic ()).CString ());
  20962. }
  20963. DllExport void *
  20964. Button_Button (Urho3D::Context * context)
  20965. {
  20966. return WeakPtr<Button>(new Button(context));
  20967. }
  20968. DllExport void
  20969. Button_RegisterObject (Urho3D::Context * context)
  20970. {
  20971. Button::RegisterObject (context);
  20972. }
  20973. DllExport void
  20974. Button_Update (Urho3D::Button *_target, float timeStep)
  20975. {
  20976. _target->Update (timeStep);
  20977. }
  20978. DllExport void
  20979. Button_OnClickBegin (Urho3D::Button *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int button, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  20980. {
  20981. _target->OnClickBegin (position, screenPosition, button, buttons, qualifiers, cursor);
  20982. }
  20983. DllExport void
  20984. 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)
  20985. {
  20986. _target->OnClickEnd (position, screenPosition, button, buttons, qualifiers, cursor, beginElement);
  20987. }
  20988. DllExport void
  20989. Button_OnKey (Urho3D::Button *_target, int key, int buttons, int qualifiers)
  20990. {
  20991. _target->OnKey (key, buttons, qualifiers);
  20992. }
  20993. DllExport void
  20994. Button_SetPressedOffset (Urho3D::Button *_target, const class Urho3D::IntVector2 & offset)
  20995. {
  20996. _target->SetPressedOffset (offset);
  20997. }
  20998. DllExport void
  20999. Button_SetPressedOffset0 (Urho3D::Button *_target, int x, int y)
  21000. {
  21001. _target->SetPressedOffset (x, y);
  21002. }
  21003. DllExport void
  21004. Button_SetDisabledOffset (Urho3D::Button *_target, const class Urho3D::IntVector2 & offset)
  21005. {
  21006. _target->SetDisabledOffset (offset);
  21007. }
  21008. DllExport void
  21009. Button_SetDisabledOffset1 (Urho3D::Button *_target, int x, int y)
  21010. {
  21011. _target->SetDisabledOffset (x, y);
  21012. }
  21013. DllExport void
  21014. Button_SetPressedChildOffset (Urho3D::Button *_target, const class Urho3D::IntVector2 & offset)
  21015. {
  21016. _target->SetPressedChildOffset (offset);
  21017. }
  21018. DllExport void
  21019. Button_SetPressedChildOffset2 (Urho3D::Button *_target, int x, int y)
  21020. {
  21021. _target->SetPressedChildOffset (x, y);
  21022. }
  21023. DllExport void
  21024. Button_SetRepeat (Urho3D::Button *_target, float delay, float rate)
  21025. {
  21026. _target->SetRepeat (delay, rate);
  21027. }
  21028. DllExport void
  21029. Button_SetRepeatDelay (Urho3D::Button *_target, float delay)
  21030. {
  21031. _target->SetRepeatDelay (delay);
  21032. }
  21033. DllExport void
  21034. Button_SetRepeatRate (Urho3D::Button *_target, float rate)
  21035. {
  21036. _target->SetRepeatRate (rate);
  21037. }
  21038. DllExport Interop::IntVector2
  21039. Button_GetPressedOffset (Urho3D::Button *_target)
  21040. {
  21041. return *((Interop::IntVector2 *) &(_target->GetPressedOffset ()));
  21042. }
  21043. DllExport Interop::IntVector2
  21044. Button_GetDisabledOffset (Urho3D::Button *_target)
  21045. {
  21046. return *((Interop::IntVector2 *) &(_target->GetDisabledOffset ()));
  21047. }
  21048. DllExport Interop::IntVector2
  21049. Button_GetPressedChildOffset (Urho3D::Button *_target)
  21050. {
  21051. return *((Interop::IntVector2 *) &(_target->GetPressedChildOffset ()));
  21052. }
  21053. DllExport float
  21054. Button_GetRepeatDelay (Urho3D::Button *_target)
  21055. {
  21056. return _target->GetRepeatDelay ();
  21057. }
  21058. DllExport float
  21059. Button_GetRepeatRate (Urho3D::Button *_target)
  21060. {
  21061. return _target->GetRepeatRate ();
  21062. }
  21063. DllExport int
  21064. Button_IsPressed (Urho3D::Button *_target)
  21065. {
  21066. return _target->IsPressed ();
  21067. }
  21068. DllExport int
  21069. CheckBox_GetType (Urho3D::CheckBox *_target)
  21070. {
  21071. return (_target->GetType ()).Value ();
  21072. }
  21073. DllExport const char *
  21074. CheckBox_GetTypeName (Urho3D::CheckBox *_target)
  21075. {
  21076. return stringdup((_target->GetTypeName ()).CString ());
  21077. }
  21078. DllExport int
  21079. CheckBox_GetTypeStatic ()
  21080. {
  21081. return (CheckBox::GetTypeStatic ()).Value ();
  21082. }
  21083. DllExport const char *
  21084. CheckBox_GetTypeNameStatic ()
  21085. {
  21086. return stringdup((CheckBox::GetTypeNameStatic ()).CString ());
  21087. }
  21088. DllExport void *
  21089. CheckBox_CheckBox (Urho3D::Context * context)
  21090. {
  21091. return WeakPtr<CheckBox>(new CheckBox(context));
  21092. }
  21093. DllExport void
  21094. CheckBox_RegisterObject (Urho3D::Context * context)
  21095. {
  21096. CheckBox::RegisterObject (context);
  21097. }
  21098. DllExport void
  21099. CheckBox_OnClickBegin (Urho3D::CheckBox *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int button, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  21100. {
  21101. _target->OnClickBegin (position, screenPosition, button, buttons, qualifiers, cursor);
  21102. }
  21103. DllExport void
  21104. CheckBox_OnKey (Urho3D::CheckBox *_target, int key, int buttons, int qualifiers)
  21105. {
  21106. _target->OnKey (key, buttons, qualifiers);
  21107. }
  21108. DllExport void
  21109. CheckBox_SetChecked (Urho3D::CheckBox *_target, bool enable)
  21110. {
  21111. _target->SetChecked (enable);
  21112. }
  21113. DllExport void
  21114. CheckBox_SetCheckedOffset (Urho3D::CheckBox *_target, const class Urho3D::IntVector2 & rect)
  21115. {
  21116. _target->SetCheckedOffset (rect);
  21117. }
  21118. DllExport void
  21119. CheckBox_SetCheckedOffset0 (Urho3D::CheckBox *_target, int x, int y)
  21120. {
  21121. _target->SetCheckedOffset (x, y);
  21122. }
  21123. DllExport int
  21124. CheckBox_IsChecked (Urho3D::CheckBox *_target)
  21125. {
  21126. return _target->IsChecked ();
  21127. }
  21128. DllExport Interop::IntVector2
  21129. CheckBox_GetCheckedOffset (Urho3D::CheckBox *_target)
  21130. {
  21131. return *((Interop::IntVector2 *) &(_target->GetCheckedOffset ()));
  21132. }
  21133. DllExport int
  21134. Menu_GetType (Urho3D::Menu *_target)
  21135. {
  21136. return (_target->GetType ()).Value ();
  21137. }
  21138. DllExport const char *
  21139. Menu_GetTypeName (Urho3D::Menu *_target)
  21140. {
  21141. return stringdup((_target->GetTypeName ()).CString ());
  21142. }
  21143. DllExport int
  21144. Menu_GetTypeStatic ()
  21145. {
  21146. return (Menu::GetTypeStatic ()).Value ();
  21147. }
  21148. DllExport const char *
  21149. Menu_GetTypeNameStatic ()
  21150. {
  21151. return stringdup((Menu::GetTypeNameStatic ()).CString ());
  21152. }
  21153. DllExport void *
  21154. Menu_Menu (Urho3D::Context * context)
  21155. {
  21156. return WeakPtr<Menu>(new Menu(context));
  21157. }
  21158. DllExport void
  21159. Menu_RegisterObject (Urho3D::Context * context)
  21160. {
  21161. Menu::RegisterObject (context);
  21162. }
  21163. DllExport int
  21164. Menu_LoadXML (Urho3D::Menu *_target, const class Urho3D::XMLElement & source, Urho3D::XMLFile * styleFile, bool setInstanceDefault)
  21165. {
  21166. return _target->LoadXML (source, styleFile, setInstanceDefault);
  21167. }
  21168. DllExport int
  21169. Menu_SaveXML (Urho3D::Menu *_target, Urho3D::XMLElement & dest)
  21170. {
  21171. return _target->SaveXML (dest);
  21172. }
  21173. DllExport void
  21174. Menu_Update (Urho3D::Menu *_target, float timeStep)
  21175. {
  21176. _target->Update (timeStep);
  21177. }
  21178. DllExport void
  21179. Menu_OnHover (Urho3D::Menu *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  21180. {
  21181. _target->OnHover (position, screenPosition, buttons, qualifiers, cursor);
  21182. }
  21183. DllExport void
  21184. Menu_OnShowPopup (Urho3D::Menu *_target)
  21185. {
  21186. _target->OnShowPopup ();
  21187. }
  21188. DllExport void
  21189. Menu_OnHidePopup (Urho3D::Menu *_target)
  21190. {
  21191. _target->OnHidePopup ();
  21192. }
  21193. DllExport void
  21194. Menu_SetPopup (Urho3D::Menu *_target, Urho3D::UIElement * element)
  21195. {
  21196. _target->SetPopup (element);
  21197. }
  21198. DllExport void
  21199. Menu_SetPopupOffset (Urho3D::Menu *_target, const class Urho3D::IntVector2 & offset)
  21200. {
  21201. _target->SetPopupOffset (offset);
  21202. }
  21203. DllExport void
  21204. Menu_SetPopupOffset0 (Urho3D::Menu *_target, int x, int y)
  21205. {
  21206. _target->SetPopupOffset (x, y);
  21207. }
  21208. DllExport void
  21209. Menu_ShowPopup (Urho3D::Menu *_target, bool enable)
  21210. {
  21211. _target->ShowPopup (enable);
  21212. }
  21213. DllExport void
  21214. Menu_SetAccelerator (Urho3D::Menu *_target, int key, int qualifiers)
  21215. {
  21216. _target->SetAccelerator (key, qualifiers);
  21217. }
  21218. DllExport Urho3D::UIElement *
  21219. Menu_GetPopup (Urho3D::Menu *_target)
  21220. {
  21221. return _target->GetPopup ();
  21222. }
  21223. DllExport Interop::IntVector2
  21224. Menu_GetPopupOffset (Urho3D::Menu *_target)
  21225. {
  21226. return *((Interop::IntVector2 *) &(_target->GetPopupOffset ()));
  21227. }
  21228. DllExport int
  21229. Menu_GetShowPopup (Urho3D::Menu *_target)
  21230. {
  21231. return _target->GetShowPopup ();
  21232. }
  21233. DllExport int
  21234. Menu_GetAcceleratorKey (Urho3D::Menu *_target)
  21235. {
  21236. return _target->GetAcceleratorKey ();
  21237. }
  21238. DllExport int
  21239. Menu_GetAcceleratorQualifiers (Urho3D::Menu *_target)
  21240. {
  21241. return _target->GetAcceleratorQualifiers ();
  21242. }
  21243. DllExport int
  21244. DropDownList_GetType (Urho3D::DropDownList *_target)
  21245. {
  21246. return (_target->GetType ()).Value ();
  21247. }
  21248. DllExport const char *
  21249. DropDownList_GetTypeName (Urho3D::DropDownList *_target)
  21250. {
  21251. return stringdup((_target->GetTypeName ()).CString ());
  21252. }
  21253. DllExport int
  21254. DropDownList_GetTypeStatic ()
  21255. {
  21256. return (DropDownList::GetTypeStatic ()).Value ();
  21257. }
  21258. DllExport const char *
  21259. DropDownList_GetTypeNameStatic ()
  21260. {
  21261. return stringdup((DropDownList::GetTypeNameStatic ()).CString ());
  21262. }
  21263. DllExport void *
  21264. DropDownList_DropDownList (Urho3D::Context * context)
  21265. {
  21266. return WeakPtr<DropDownList>(new DropDownList(context));
  21267. }
  21268. DllExport void
  21269. DropDownList_RegisterObject (Urho3D::Context * context)
  21270. {
  21271. DropDownList::RegisterObject (context);
  21272. }
  21273. DllExport void
  21274. DropDownList_ApplyAttributes (Urho3D::DropDownList *_target)
  21275. {
  21276. _target->ApplyAttributes ();
  21277. }
  21278. DllExport void
  21279. DropDownList_OnShowPopup (Urho3D::DropDownList *_target)
  21280. {
  21281. _target->OnShowPopup ();
  21282. }
  21283. DllExport void
  21284. DropDownList_OnHidePopup (Urho3D::DropDownList *_target)
  21285. {
  21286. _target->OnHidePopup ();
  21287. }
  21288. DllExport void
  21289. DropDownList_OnSetEditable (Urho3D::DropDownList *_target)
  21290. {
  21291. _target->OnSetEditable ();
  21292. }
  21293. DllExport void
  21294. DropDownList_AddItem (Urho3D::DropDownList *_target, Urho3D::UIElement * item)
  21295. {
  21296. _target->AddItem (item);
  21297. }
  21298. DllExport void
  21299. DropDownList_InsertItem (Urho3D::DropDownList *_target, unsigned int index, Urho3D::UIElement * item)
  21300. {
  21301. _target->InsertItem (index, item);
  21302. }
  21303. DllExport void
  21304. DropDownList_RemoveItem (Urho3D::DropDownList *_target, Urho3D::UIElement * item)
  21305. {
  21306. _target->RemoveItem (item);
  21307. }
  21308. DllExport void
  21309. DropDownList_RemoveItem0 (Urho3D::DropDownList *_target, unsigned int index)
  21310. {
  21311. _target->RemoveItem (index);
  21312. }
  21313. DllExport void
  21314. DropDownList_RemoveAllItems (Urho3D::DropDownList *_target)
  21315. {
  21316. _target->RemoveAllItems ();
  21317. }
  21318. DllExport void
  21319. DropDownList_SetSelection (Urho3D::DropDownList *_target, unsigned int index)
  21320. {
  21321. _target->SetSelection (index);
  21322. }
  21323. DllExport void
  21324. DropDownList_SetPlaceholderText (Urho3D::DropDownList *_target, const char * text)
  21325. {
  21326. _target->SetPlaceholderText (Urho3D::String(text));
  21327. }
  21328. DllExport void
  21329. DropDownList_SetResizePopup (Urho3D::DropDownList *_target, bool enable)
  21330. {
  21331. _target->SetResizePopup (enable);
  21332. }
  21333. DllExport unsigned int
  21334. DropDownList_GetNumItems (Urho3D::DropDownList *_target)
  21335. {
  21336. return _target->GetNumItems ();
  21337. }
  21338. DllExport Urho3D::UIElement *
  21339. DropDownList_GetItem (Urho3D::DropDownList *_target, unsigned int index)
  21340. {
  21341. return _target->GetItem (index);
  21342. }
  21343. DllExport unsigned int
  21344. DropDownList_GetSelection (Urho3D::DropDownList *_target)
  21345. {
  21346. return _target->GetSelection ();
  21347. }
  21348. DllExport Urho3D::UIElement *
  21349. DropDownList_GetSelectedItem (Urho3D::DropDownList *_target)
  21350. {
  21351. return _target->GetSelectedItem ();
  21352. }
  21353. DllExport Urho3D::ListView *
  21354. DropDownList_GetListView (Urho3D::DropDownList *_target)
  21355. {
  21356. return _target->GetListView ();
  21357. }
  21358. DllExport Urho3D::UIElement *
  21359. DropDownList_GetPlaceholder (Urho3D::DropDownList *_target)
  21360. {
  21361. return _target->GetPlaceholder ();
  21362. }
  21363. DllExport const char *
  21364. DropDownList_GetPlaceholderText (Urho3D::DropDownList *_target)
  21365. {
  21366. return stringdup((_target->GetPlaceholderText ()).CString ());
  21367. }
  21368. DllExport int
  21369. DropDownList_GetResizePopup (Urho3D::DropDownList *_target)
  21370. {
  21371. return _target->GetResizePopup ();
  21372. }
  21373. DllExport void
  21374. DropDownList_SetSelectionAttr (Urho3D::DropDownList *_target, unsigned int index)
  21375. {
  21376. _target->SetSelectionAttr (index);
  21377. }
  21378. DllExport int
  21379. FileSelector_GetType (Urho3D::FileSelector *_target)
  21380. {
  21381. return (_target->GetType ()).Value ();
  21382. }
  21383. DllExport const char *
  21384. FileSelector_GetTypeName (Urho3D::FileSelector *_target)
  21385. {
  21386. return stringdup((_target->GetTypeName ()).CString ());
  21387. }
  21388. DllExport int
  21389. FileSelector_GetTypeStatic ()
  21390. {
  21391. return (FileSelector::GetTypeStatic ()).Value ();
  21392. }
  21393. DllExport const char *
  21394. FileSelector_GetTypeNameStatic ()
  21395. {
  21396. return stringdup((FileSelector::GetTypeNameStatic ()).CString ());
  21397. }
  21398. DllExport void *
  21399. FileSelector_FileSelector (Urho3D::Context * context)
  21400. {
  21401. return WeakPtr<FileSelector>(new FileSelector(context));
  21402. }
  21403. DllExport void
  21404. FileSelector_RegisterObject (Urho3D::Context * context)
  21405. {
  21406. FileSelector::RegisterObject (context);
  21407. }
  21408. DllExport void
  21409. FileSelector_SetDefaultStyle (Urho3D::FileSelector *_target, Urho3D::XMLFile * style)
  21410. {
  21411. _target->SetDefaultStyle (style);
  21412. }
  21413. DllExport void
  21414. FileSelector_SetTitle (Urho3D::FileSelector *_target, const char * text)
  21415. {
  21416. _target->SetTitle (Urho3D::String(text));
  21417. }
  21418. DllExport void
  21419. FileSelector_SetButtonTexts (Urho3D::FileSelector *_target, const char * okText, const char * cancelText)
  21420. {
  21421. _target->SetButtonTexts (Urho3D::String(okText), Urho3D::String(cancelText));
  21422. }
  21423. DllExport void
  21424. FileSelector_SetPath (Urho3D::FileSelector *_target, const char * path)
  21425. {
  21426. _target->SetPath (Urho3D::String(path));
  21427. }
  21428. DllExport void
  21429. FileSelector_SetFileName (Urho3D::FileSelector *_target, const char * fileName)
  21430. {
  21431. _target->SetFileName (Urho3D::String(fileName));
  21432. }
  21433. DllExport void
  21434. FileSelector_SetDirectoryMode (Urho3D::FileSelector *_target, bool enable)
  21435. {
  21436. _target->SetDirectoryMode (enable);
  21437. }
  21438. DllExport void
  21439. FileSelector_UpdateElements (Urho3D::FileSelector *_target)
  21440. {
  21441. _target->UpdateElements ();
  21442. }
  21443. DllExport Urho3D::XMLFile *
  21444. FileSelector_GetDefaultStyle (Urho3D::FileSelector *_target)
  21445. {
  21446. return _target->GetDefaultStyle ();
  21447. }
  21448. DllExport Urho3D::Window *
  21449. FileSelector_GetWindow (Urho3D::FileSelector *_target)
  21450. {
  21451. return _target->GetWindow ();
  21452. }
  21453. DllExport Urho3D::Text *
  21454. FileSelector_GetTitleText (Urho3D::FileSelector *_target)
  21455. {
  21456. return _target->GetTitleText ();
  21457. }
  21458. DllExport Urho3D::ListView *
  21459. FileSelector_GetFileList (Urho3D::FileSelector *_target)
  21460. {
  21461. return _target->GetFileList ();
  21462. }
  21463. DllExport Urho3D::LineEdit *
  21464. FileSelector_GetPathEdit (Urho3D::FileSelector *_target)
  21465. {
  21466. return _target->GetPathEdit ();
  21467. }
  21468. DllExport Urho3D::LineEdit *
  21469. FileSelector_GetFileNameEdit (Urho3D::FileSelector *_target)
  21470. {
  21471. return _target->GetFileNameEdit ();
  21472. }
  21473. DllExport Urho3D::DropDownList *
  21474. FileSelector_GetFilterList (Urho3D::FileSelector *_target)
  21475. {
  21476. return _target->GetFilterList ();
  21477. }
  21478. DllExport Urho3D::Button *
  21479. FileSelector_GetOKButton (Urho3D::FileSelector *_target)
  21480. {
  21481. return _target->GetOKButton ();
  21482. }
  21483. DllExport Urho3D::Button *
  21484. FileSelector_GetCancelButton (Urho3D::FileSelector *_target)
  21485. {
  21486. return _target->GetCancelButton ();
  21487. }
  21488. DllExport Urho3D::Button *
  21489. FileSelector_GetCloseButton (Urho3D::FileSelector *_target)
  21490. {
  21491. return _target->GetCloseButton ();
  21492. }
  21493. DllExport const char *
  21494. FileSelector_GetTitle (Urho3D::FileSelector *_target)
  21495. {
  21496. return stringdup((_target->GetTitle ()).CString ());
  21497. }
  21498. DllExport const char *
  21499. FileSelector_GetPath (Urho3D::FileSelector *_target)
  21500. {
  21501. return stringdup((_target->GetPath ()).CString ());
  21502. }
  21503. DllExport const char *
  21504. FileSelector_GetFileName (Urho3D::FileSelector *_target)
  21505. {
  21506. return stringdup((_target->GetFileName ()).CString ());
  21507. }
  21508. DllExport const char *
  21509. FileSelector_GetFilter (Urho3D::FileSelector *_target)
  21510. {
  21511. return stringdup((_target->GetFilter ()).CString ());
  21512. }
  21513. DllExport unsigned int
  21514. FileSelector_GetFilterIndex (Urho3D::FileSelector *_target)
  21515. {
  21516. return _target->GetFilterIndex ();
  21517. }
  21518. DllExport int
  21519. FileSelector_GetDirectoryMode (Urho3D::FileSelector *_target)
  21520. {
  21521. return _target->GetDirectoryMode ();
  21522. }
  21523. DllExport int
  21524. Font_GetType (Urho3D::Font *_target)
  21525. {
  21526. return (_target->GetType ()).Value ();
  21527. }
  21528. DllExport const char *
  21529. Font_GetTypeName (Urho3D::Font *_target)
  21530. {
  21531. return stringdup((_target->GetTypeName ()).CString ());
  21532. }
  21533. DllExport int
  21534. Font_GetTypeStatic ()
  21535. {
  21536. return (Font::GetTypeStatic ()).Value ();
  21537. }
  21538. DllExport const char *
  21539. Font_GetTypeNameStatic ()
  21540. {
  21541. return stringdup((Font::GetTypeNameStatic ()).CString ());
  21542. }
  21543. DllExport void *
  21544. Font_Font (Urho3D::Context * context)
  21545. {
  21546. return WeakPtr<Font>(new Font(context));
  21547. }
  21548. DllExport void
  21549. Font_RegisterObject (Urho3D::Context * context)
  21550. {
  21551. Font::RegisterObject (context);
  21552. }
  21553. DllExport int
  21554. Font_BeginLoad_File (Urho3D::Font *_target, File * source)
  21555. {
  21556. return _target->BeginLoad (*source);
  21557. }
  21558. DllExport int
  21559. Font_BeginLoad_MemoryBuffer (Urho3D::Font *_target, MemoryBuffer * source)
  21560. {
  21561. return _target->BeginLoad (*source);
  21562. }
  21563. DllExport int
  21564. Font_SaveXML_File (Urho3D::Font *_target, File * dest, int pointSize, bool usedGlyphs, const char * indentation)
  21565. {
  21566. return _target->SaveXML (*dest, pointSize, usedGlyphs, Urho3D::String(indentation));
  21567. }
  21568. DllExport int
  21569. Font_SaveXML_MemoryBuffer (Urho3D::Font *_target, MemoryBuffer * dest, int pointSize, bool usedGlyphs, const char * indentation)
  21570. {
  21571. return _target->SaveXML (*dest, pointSize, usedGlyphs, Urho3D::String(indentation));
  21572. }
  21573. DllExport void
  21574. Font_SetAbsoluteGlyphOffset (Urho3D::Font *_target, const class Urho3D::IntVector2 & offset)
  21575. {
  21576. _target->SetAbsoluteGlyphOffset (offset);
  21577. }
  21578. DllExport void
  21579. Font_SetScaledGlyphOffset (Urho3D::Font *_target, const class Urho3D::Vector2 & offset)
  21580. {
  21581. _target->SetScaledGlyphOffset (offset);
  21582. }
  21583. DllExport Urho3D::FontFace *
  21584. Font_GetFace (Urho3D::Font *_target, float pointSize)
  21585. {
  21586. return _target->GetFace (pointSize);
  21587. }
  21588. DllExport enum Urho3D::FontType
  21589. Font_GetFontType (Urho3D::Font *_target)
  21590. {
  21591. return _target->GetFontType ();
  21592. }
  21593. DllExport int
  21594. Font_IsSDFFont (Urho3D::Font *_target)
  21595. {
  21596. return _target->IsSDFFont ();
  21597. }
  21598. DllExport Interop::IntVector2
  21599. Font_GetAbsoluteGlyphOffset (Urho3D::Font *_target)
  21600. {
  21601. return *((Interop::IntVector2 *) &(_target->GetAbsoluteGlyphOffset ()));
  21602. }
  21603. DllExport Interop::Vector2
  21604. Font_GetScaledGlyphOffset (Urho3D::Font *_target)
  21605. {
  21606. return *((Interop::Vector2 *) &(_target->GetScaledGlyphOffset ()));
  21607. }
  21608. DllExport Interop::IntVector2
  21609. Font_GetTotalGlyphOffset (Urho3D::Font *_target, float pointSize)
  21610. {
  21611. return *((Interop::IntVector2 *) &(_target->GetTotalGlyphOffset (pointSize)));
  21612. }
  21613. DllExport void
  21614. Font_ReleaseFaces (Urho3D::Font *_target)
  21615. {
  21616. _target->ReleaseFaces ();
  21617. }
  21618. DllExport int
  21619. FontFace_Load (Urho3D::FontFace *_target, const unsigned char * fontData, unsigned int fontDataSize, float pointSize)
  21620. {
  21621. return _target->Load (fontData, fontDataSize, pointSize);
  21622. }
  21623. DllExport const struct Urho3D::FontGlyph *
  21624. FontFace_GetGlyph (Urho3D::FontFace *_target, unsigned int c)
  21625. {
  21626. return _target->GetGlyph (c);
  21627. }
  21628. DllExport int
  21629. FontFace_HasMutableGlyphs (Urho3D::FontFace *_target)
  21630. {
  21631. return _target->HasMutableGlyphs ();
  21632. }
  21633. DllExport float
  21634. FontFace_GetKerning (Urho3D::FontFace *_target, unsigned int c, unsigned int d)
  21635. {
  21636. return _target->GetKerning (c, d);
  21637. }
  21638. DllExport int
  21639. FontFace_IsDataLost (Urho3D::FontFace *_target)
  21640. {
  21641. return _target->IsDataLost ();
  21642. }
  21643. DllExport float
  21644. FontFace_GetPointSize (Urho3D::FontFace *_target)
  21645. {
  21646. return _target->GetPointSize ();
  21647. }
  21648. DllExport float
  21649. FontFace_GetRowHeight (Urho3D::FontFace *_target)
  21650. {
  21651. return _target->GetRowHeight ();
  21652. }
  21653. DllExport const Vector<SharedPtr<class Urho3D::Texture2D> > &
  21654. FontFace_GetTextures (Urho3D::FontFace *_target)
  21655. {
  21656. return _target->GetTextures ();
  21657. }
  21658. DllExport void *
  21659. FontFaceBitmap_FontFaceBitmap (Urho3D::Font * font)
  21660. {
  21661. return WeakPtr<FontFaceBitmap>(new FontFaceBitmap(font));
  21662. }
  21663. DllExport int
  21664. FontFaceBitmap_Load (Urho3D::FontFaceBitmap *_target, const unsigned char * fontData, unsigned int fontDataSize, float pointSize)
  21665. {
  21666. return _target->Load (fontData, fontDataSize, pointSize);
  21667. }
  21668. DllExport int
  21669. FontFaceBitmap_Load0 (Urho3D::FontFaceBitmap *_target, Urho3D::FontFace * fontFace, bool usedGlyphs)
  21670. {
  21671. return _target->Load (fontFace, usedGlyphs);
  21672. }
  21673. DllExport int
  21674. FontFaceBitmap_Save_File (Urho3D::FontFaceBitmap *_target, File * dest, int pointSize, const char * indentation)
  21675. {
  21676. return _target->Save (*dest, pointSize, Urho3D::String(indentation));
  21677. }
  21678. DllExport int
  21679. FontFaceBitmap_Save_MemoryBuffer (Urho3D::FontFaceBitmap *_target, MemoryBuffer * dest, int pointSize, const char * indentation)
  21680. {
  21681. return _target->Save (*dest, pointSize, Urho3D::String(indentation));
  21682. }
  21683. DllExport void *
  21684. FontFaceFreeType_FontFaceFreeType (Urho3D::Font * font)
  21685. {
  21686. return WeakPtr<FontFaceFreeType>(new FontFaceFreeType(font));
  21687. }
  21688. DllExport int
  21689. FontFaceFreeType_Load (Urho3D::FontFaceFreeType *_target, const unsigned char * fontData, unsigned int fontDataSize, float pointSize)
  21690. {
  21691. return _target->Load (fontData, fontDataSize, pointSize);
  21692. }
  21693. DllExport const struct Urho3D::FontGlyph *
  21694. FontFaceFreeType_GetGlyph (Urho3D::FontFaceFreeType *_target, unsigned int c)
  21695. {
  21696. return _target->GetGlyph (c);
  21697. }
  21698. DllExport int
  21699. FontFaceFreeType_HasMutableGlyphs (Urho3D::FontFaceFreeType *_target)
  21700. {
  21701. return _target->HasMutableGlyphs ();
  21702. }
  21703. DllExport int
  21704. LineEdit_GetType (Urho3D::LineEdit *_target)
  21705. {
  21706. return (_target->GetType ()).Value ();
  21707. }
  21708. DllExport const char *
  21709. LineEdit_GetTypeName (Urho3D::LineEdit *_target)
  21710. {
  21711. return stringdup((_target->GetTypeName ()).CString ());
  21712. }
  21713. DllExport int
  21714. LineEdit_GetTypeStatic ()
  21715. {
  21716. return (LineEdit::GetTypeStatic ()).Value ();
  21717. }
  21718. DllExport const char *
  21719. LineEdit_GetTypeNameStatic ()
  21720. {
  21721. return stringdup((LineEdit::GetTypeNameStatic ()).CString ());
  21722. }
  21723. DllExport void *
  21724. LineEdit_LineEdit (Urho3D::Context * context)
  21725. {
  21726. return WeakPtr<LineEdit>(new LineEdit(context));
  21727. }
  21728. DllExport void
  21729. LineEdit_RegisterObject (Urho3D::Context * context)
  21730. {
  21731. LineEdit::RegisterObject (context);
  21732. }
  21733. DllExport void
  21734. LineEdit_ApplyAttributes (Urho3D::LineEdit *_target)
  21735. {
  21736. _target->ApplyAttributes ();
  21737. }
  21738. DllExport void
  21739. LineEdit_Update (Urho3D::LineEdit *_target, float timeStep)
  21740. {
  21741. _target->Update (timeStep);
  21742. }
  21743. DllExport void
  21744. LineEdit_OnClickBegin (Urho3D::LineEdit *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int button, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  21745. {
  21746. _target->OnClickBegin (position, screenPosition, button, buttons, qualifiers, cursor);
  21747. }
  21748. DllExport void
  21749. LineEdit_OnDoubleClick (Urho3D::LineEdit *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int button, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  21750. {
  21751. _target->OnDoubleClick (position, screenPosition, button, buttons, qualifiers, cursor);
  21752. }
  21753. DllExport void
  21754. LineEdit_OnKey (Urho3D::LineEdit *_target, int key, int buttons, int qualifiers)
  21755. {
  21756. _target->OnKey (key, buttons, qualifiers);
  21757. }
  21758. DllExport void
  21759. LineEdit_OnTextInput (Urho3D::LineEdit *_target, const char * text)
  21760. {
  21761. _target->OnTextInput (Urho3D::String(text));
  21762. }
  21763. DllExport void
  21764. LineEdit_SetText (Urho3D::LineEdit *_target, const char * text)
  21765. {
  21766. _target->SetText (Urho3D::String(text));
  21767. }
  21768. DllExport void
  21769. LineEdit_SetCursorPosition (Urho3D::LineEdit *_target, unsigned int position)
  21770. {
  21771. _target->SetCursorPosition (position);
  21772. }
  21773. DllExport void
  21774. LineEdit_SetCursorBlinkRate (Urho3D::LineEdit *_target, float rate)
  21775. {
  21776. _target->SetCursorBlinkRate (rate);
  21777. }
  21778. DllExport void
  21779. LineEdit_SetMaxLength (Urho3D::LineEdit *_target, unsigned int length)
  21780. {
  21781. _target->SetMaxLength (length);
  21782. }
  21783. DllExport void
  21784. LineEdit_SetEchoCharacter (Urho3D::LineEdit *_target, unsigned int c)
  21785. {
  21786. _target->SetEchoCharacter (c);
  21787. }
  21788. DllExport void
  21789. LineEdit_SetCursorMovable (Urho3D::LineEdit *_target, bool enable)
  21790. {
  21791. _target->SetCursorMovable (enable);
  21792. }
  21793. DllExport void
  21794. LineEdit_SetTextSelectable (Urho3D::LineEdit *_target, bool enable)
  21795. {
  21796. _target->SetTextSelectable (enable);
  21797. }
  21798. DllExport void
  21799. LineEdit_SetTextCopyable (Urho3D::LineEdit *_target, bool enable)
  21800. {
  21801. _target->SetTextCopyable (enable);
  21802. }
  21803. DllExport const char *
  21804. LineEdit_GetText (Urho3D::LineEdit *_target)
  21805. {
  21806. return stringdup((_target->GetText ()).CString ());
  21807. }
  21808. DllExport unsigned int
  21809. LineEdit_GetCursorPosition (Urho3D::LineEdit *_target)
  21810. {
  21811. return _target->GetCursorPosition ();
  21812. }
  21813. DllExport float
  21814. LineEdit_GetCursorBlinkRate (Urho3D::LineEdit *_target)
  21815. {
  21816. return _target->GetCursorBlinkRate ();
  21817. }
  21818. DllExport unsigned int
  21819. LineEdit_GetMaxLength (Urho3D::LineEdit *_target)
  21820. {
  21821. return _target->GetMaxLength ();
  21822. }
  21823. DllExport unsigned int
  21824. LineEdit_GetEchoCharacter (Urho3D::LineEdit *_target)
  21825. {
  21826. return _target->GetEchoCharacter ();
  21827. }
  21828. DllExport int
  21829. LineEdit_IsCursorMovable (Urho3D::LineEdit *_target)
  21830. {
  21831. return _target->IsCursorMovable ();
  21832. }
  21833. DllExport int
  21834. LineEdit_IsTextSelectable (Urho3D::LineEdit *_target)
  21835. {
  21836. return _target->IsTextSelectable ();
  21837. }
  21838. DllExport int
  21839. LineEdit_IsTextCopyable (Urho3D::LineEdit *_target)
  21840. {
  21841. return _target->IsTextCopyable ();
  21842. }
  21843. DllExport Urho3D::Text *
  21844. LineEdit_GetTextElement (Urho3D::LineEdit *_target)
  21845. {
  21846. return _target->GetTextElement ();
  21847. }
  21848. DllExport Urho3D::BorderImage *
  21849. LineEdit_GetCursor (Urho3D::LineEdit *_target)
  21850. {
  21851. return _target->GetCursor ();
  21852. }
  21853. DllExport int
  21854. ScrollView_GetType (Urho3D::ScrollView *_target)
  21855. {
  21856. return (_target->GetType ()).Value ();
  21857. }
  21858. DllExport const char *
  21859. ScrollView_GetTypeName (Urho3D::ScrollView *_target)
  21860. {
  21861. return stringdup((_target->GetTypeName ()).CString ());
  21862. }
  21863. DllExport int
  21864. ScrollView_GetTypeStatic ()
  21865. {
  21866. return (ScrollView::GetTypeStatic ()).Value ();
  21867. }
  21868. DllExport const char *
  21869. ScrollView_GetTypeNameStatic ()
  21870. {
  21871. return stringdup((ScrollView::GetTypeNameStatic ()).CString ());
  21872. }
  21873. DllExport void *
  21874. ScrollView_ScrollView (Urho3D::Context * context)
  21875. {
  21876. return WeakPtr<ScrollView>(new ScrollView(context));
  21877. }
  21878. DllExport void
  21879. ScrollView_RegisterObject (Urho3D::Context * context)
  21880. {
  21881. ScrollView::RegisterObject (context);
  21882. }
  21883. DllExport void
  21884. ScrollView_Update (Urho3D::ScrollView *_target, float timeStep)
  21885. {
  21886. _target->Update (timeStep);
  21887. }
  21888. DllExport void
  21889. ScrollView_ApplyAttributes (Urho3D::ScrollView *_target)
  21890. {
  21891. _target->ApplyAttributes ();
  21892. }
  21893. DllExport void
  21894. ScrollView_OnWheel (Urho3D::ScrollView *_target, int delta, int buttons, int qualifiers)
  21895. {
  21896. _target->OnWheel (delta, buttons, qualifiers);
  21897. }
  21898. DllExport void
  21899. ScrollView_OnKey (Urho3D::ScrollView *_target, int key, int buttons, int qualifiers)
  21900. {
  21901. _target->OnKey (key, buttons, qualifiers);
  21902. }
  21903. DllExport void
  21904. ScrollView_OnResize (Urho3D::ScrollView *_target, const class Urho3D::IntVector2 & newSize, const class Urho3D::IntVector2 & delta)
  21905. {
  21906. _target->OnResize (newSize, delta);
  21907. }
  21908. DllExport int
  21909. ScrollView_IsWheelHandler (Urho3D::ScrollView *_target)
  21910. {
  21911. return _target->IsWheelHandler ();
  21912. }
  21913. DllExport void
  21914. ScrollView_SetContentElement (Urho3D::ScrollView *_target, Urho3D::UIElement * element)
  21915. {
  21916. _target->SetContentElement (element);
  21917. }
  21918. DllExport void
  21919. ScrollView_SetViewPosition (Urho3D::ScrollView *_target, const class Urho3D::IntVector2 & position)
  21920. {
  21921. _target->SetViewPosition (position);
  21922. }
  21923. DllExport void
  21924. ScrollView_SetViewPosition0 (Urho3D::ScrollView *_target, int x, int y)
  21925. {
  21926. _target->SetViewPosition (x, y);
  21927. }
  21928. DllExport void
  21929. ScrollView_SetScrollBarsVisible (Urho3D::ScrollView *_target, bool horizontal, bool vertical)
  21930. {
  21931. _target->SetScrollBarsVisible (horizontal, vertical);
  21932. }
  21933. DllExport void
  21934. ScrollView_SetHorizontalScrollBarVisible (Urho3D::ScrollView *_target, bool visible)
  21935. {
  21936. _target->SetHorizontalScrollBarVisible (visible);
  21937. }
  21938. DllExport void
  21939. ScrollView_SetVerticalScrollBarVisible (Urho3D::ScrollView *_target, bool visible)
  21940. {
  21941. _target->SetVerticalScrollBarVisible (visible);
  21942. }
  21943. DllExport void
  21944. ScrollView_SetScrollBarsAutoVisible (Urho3D::ScrollView *_target, bool enable)
  21945. {
  21946. _target->SetScrollBarsAutoVisible (enable);
  21947. }
  21948. DllExport void
  21949. ScrollView_SetScrollStep (Urho3D::ScrollView *_target, float step)
  21950. {
  21951. _target->SetScrollStep (step);
  21952. }
  21953. DllExport void
  21954. ScrollView_SetPageStep (Urho3D::ScrollView *_target, float step)
  21955. {
  21956. _target->SetPageStep (step);
  21957. }
  21958. DllExport void
  21959. ScrollView_SetScrollDeceleration (Urho3D::ScrollView *_target, float deceleration)
  21960. {
  21961. _target->SetScrollDeceleration (deceleration);
  21962. }
  21963. DllExport void
  21964. ScrollView_SetScrollSnapEpsilon (Urho3D::ScrollView *_target, float snap)
  21965. {
  21966. _target->SetScrollSnapEpsilon (snap);
  21967. }
  21968. DllExport void
  21969. ScrollView_SetAutoDisableChildren (Urho3D::ScrollView *_target, bool disable)
  21970. {
  21971. _target->SetAutoDisableChildren (disable);
  21972. }
  21973. DllExport void
  21974. ScrollView_SetAutoDisableThreshold (Urho3D::ScrollView *_target, float amount)
  21975. {
  21976. _target->SetAutoDisableThreshold (amount);
  21977. }
  21978. DllExport Interop::IntVector2
  21979. ScrollView_GetViewPosition (Urho3D::ScrollView *_target)
  21980. {
  21981. return *((Interop::IntVector2 *) &(_target->GetViewPosition ()));
  21982. }
  21983. DllExport Urho3D::UIElement *
  21984. ScrollView_GetContentElement (Urho3D::ScrollView *_target)
  21985. {
  21986. return _target->GetContentElement ();
  21987. }
  21988. DllExport Urho3D::ScrollBar *
  21989. ScrollView_GetHorizontalScrollBar (Urho3D::ScrollView *_target)
  21990. {
  21991. return _target->GetHorizontalScrollBar ();
  21992. }
  21993. DllExport Urho3D::ScrollBar *
  21994. ScrollView_GetVerticalScrollBar (Urho3D::ScrollView *_target)
  21995. {
  21996. return _target->GetVerticalScrollBar ();
  21997. }
  21998. DllExport Urho3D::BorderImage *
  21999. ScrollView_GetScrollPanel (Urho3D::ScrollView *_target)
  22000. {
  22001. return _target->GetScrollPanel ();
  22002. }
  22003. DllExport int
  22004. ScrollView_GetScrollBarsAutoVisible (Urho3D::ScrollView *_target)
  22005. {
  22006. return _target->GetScrollBarsAutoVisible ();
  22007. }
  22008. DllExport int
  22009. ScrollView_GetHorizontalScrollBarVisible (Urho3D::ScrollView *_target)
  22010. {
  22011. return _target->GetHorizontalScrollBarVisible ();
  22012. }
  22013. DllExport int
  22014. ScrollView_GetVerticalScrollBarVisible (Urho3D::ScrollView *_target)
  22015. {
  22016. return _target->GetVerticalScrollBarVisible ();
  22017. }
  22018. DllExport float
  22019. ScrollView_GetScrollStep (Urho3D::ScrollView *_target)
  22020. {
  22021. return _target->GetScrollStep ();
  22022. }
  22023. DllExport float
  22024. ScrollView_GetPageStep (Urho3D::ScrollView *_target)
  22025. {
  22026. return _target->GetPageStep ();
  22027. }
  22028. DllExport float
  22029. ScrollView_GetScrollDeceleration (Urho3D::ScrollView *_target)
  22030. {
  22031. return _target->GetScrollDeceleration ();
  22032. }
  22033. DllExport float
  22034. ScrollView_GetScrollSnapEpsilon (Urho3D::ScrollView *_target)
  22035. {
  22036. return _target->GetScrollSnapEpsilon ();
  22037. }
  22038. DllExport int
  22039. ScrollView_GetAutoDisableChildren (Urho3D::ScrollView *_target)
  22040. {
  22041. return _target->GetAutoDisableChildren ();
  22042. }
  22043. DllExport float
  22044. ScrollView_GetAutoDisableThreshold (Urho3D::ScrollView *_target)
  22045. {
  22046. return _target->GetAutoDisableThreshold ();
  22047. }
  22048. DllExport void
  22049. ScrollView_SetViewPositionAttr (Urho3D::ScrollView *_target, const class Urho3D::IntVector2 & value)
  22050. {
  22051. _target->SetViewPositionAttr (value);
  22052. }
  22053. DllExport int
  22054. ListView_GetType (Urho3D::ListView *_target)
  22055. {
  22056. return (_target->GetType ()).Value ();
  22057. }
  22058. DllExport const char *
  22059. ListView_GetTypeName (Urho3D::ListView *_target)
  22060. {
  22061. return stringdup((_target->GetTypeName ()).CString ());
  22062. }
  22063. DllExport int
  22064. ListView_GetTypeStatic ()
  22065. {
  22066. return (ListView::GetTypeStatic ()).Value ();
  22067. }
  22068. DllExport const char *
  22069. ListView_GetTypeNameStatic ()
  22070. {
  22071. return stringdup((ListView::GetTypeNameStatic ()).CString ());
  22072. }
  22073. DllExport void *
  22074. ListView_ListView (Urho3D::Context * context)
  22075. {
  22076. return WeakPtr<ListView>(new ListView(context));
  22077. }
  22078. DllExport void
  22079. ListView_RegisterObject (Urho3D::Context * context)
  22080. {
  22081. ListView::RegisterObject (context);
  22082. }
  22083. DllExport void
  22084. ListView_OnKey (Urho3D::ListView *_target, int key, int buttons, int qualifiers)
  22085. {
  22086. _target->OnKey (key, buttons, qualifiers);
  22087. }
  22088. DllExport void
  22089. ListView_OnResize (Urho3D::ListView *_target, const class Urho3D::IntVector2 & newSize, const class Urho3D::IntVector2 & delta)
  22090. {
  22091. _target->OnResize (newSize, delta);
  22092. }
  22093. DllExport void
  22094. ListView_UpdateInternalLayout (Urho3D::ListView *_target)
  22095. {
  22096. _target->UpdateInternalLayout ();
  22097. }
  22098. DllExport void
  22099. ListView_DisableInternalLayoutUpdate (Urho3D::ListView *_target)
  22100. {
  22101. _target->DisableInternalLayoutUpdate ();
  22102. }
  22103. DllExport void
  22104. ListView_EnableInternalLayoutUpdate (Urho3D::ListView *_target)
  22105. {
  22106. _target->EnableInternalLayoutUpdate ();
  22107. }
  22108. DllExport void
  22109. ListView_AddItem (Urho3D::ListView *_target, Urho3D::UIElement * item)
  22110. {
  22111. _target->AddItem (item);
  22112. }
  22113. DllExport void
  22114. ListView_InsertItem (Urho3D::ListView *_target, unsigned int index, Urho3D::UIElement * item, Urho3D::UIElement * parentItem)
  22115. {
  22116. _target->InsertItem (index, item, parentItem);
  22117. }
  22118. DllExport void
  22119. ListView_RemoveItem (Urho3D::ListView *_target, Urho3D::UIElement * item, unsigned int index)
  22120. {
  22121. _target->RemoveItem (item, index);
  22122. }
  22123. DllExport void
  22124. ListView_RemoveItem0 (Urho3D::ListView *_target, unsigned int index)
  22125. {
  22126. _target->RemoveItem (index);
  22127. }
  22128. DllExport void
  22129. ListView_RemoveAllItems (Urho3D::ListView *_target)
  22130. {
  22131. _target->RemoveAllItems ();
  22132. }
  22133. DllExport void
  22134. ListView_SetSelection (Urho3D::ListView *_target, unsigned int index)
  22135. {
  22136. _target->SetSelection (index);
  22137. }
  22138. DllExport void
  22139. ListView_AddSelection (Urho3D::ListView *_target, unsigned int index)
  22140. {
  22141. _target->AddSelection (index);
  22142. }
  22143. DllExport void
  22144. ListView_RemoveSelection (Urho3D::ListView *_target, unsigned int index)
  22145. {
  22146. _target->RemoveSelection (index);
  22147. }
  22148. DllExport void
  22149. ListView_ToggleSelection (Urho3D::ListView *_target, unsigned int index)
  22150. {
  22151. _target->ToggleSelection (index);
  22152. }
  22153. DllExport void
  22154. ListView_ChangeSelection (Urho3D::ListView *_target, int delta, bool additive)
  22155. {
  22156. _target->ChangeSelection (delta, additive);
  22157. }
  22158. DllExport void
  22159. ListView_ClearSelection (Urho3D::ListView *_target)
  22160. {
  22161. _target->ClearSelection ();
  22162. }
  22163. DllExport void
  22164. ListView_SetHighlightMode (Urho3D::ListView *_target, enum Urho3D::HighlightMode mode)
  22165. {
  22166. _target->SetHighlightMode (mode);
  22167. }
  22168. DllExport void
  22169. ListView_SetMultiselect (Urho3D::ListView *_target, bool enable)
  22170. {
  22171. _target->SetMultiselect (enable);
  22172. }
  22173. DllExport void
  22174. ListView_SetHierarchyMode (Urho3D::ListView *_target, bool enable)
  22175. {
  22176. _target->SetHierarchyMode (enable);
  22177. }
  22178. DllExport void
  22179. ListView_SetBaseIndent (Urho3D::ListView *_target, int baseIndent)
  22180. {
  22181. _target->SetBaseIndent (baseIndent);
  22182. }
  22183. DllExport void
  22184. ListView_SetClearSelectionOnDefocus (Urho3D::ListView *_target, bool enable)
  22185. {
  22186. _target->SetClearSelectionOnDefocus (enable);
  22187. }
  22188. DllExport void
  22189. ListView_SetSelectOnClickEnd (Urho3D::ListView *_target, bool enable)
  22190. {
  22191. _target->SetSelectOnClickEnd (enable);
  22192. }
  22193. DllExport void
  22194. ListView_Expand (Urho3D::ListView *_target, unsigned int index, bool enable, bool recursive)
  22195. {
  22196. _target->Expand (index, enable, recursive);
  22197. }
  22198. DllExport void
  22199. ListView_ToggleExpand (Urho3D::ListView *_target, unsigned int index, bool recursive)
  22200. {
  22201. _target->ToggleExpand (index, recursive);
  22202. }
  22203. DllExport unsigned int
  22204. ListView_GetNumItems (Urho3D::ListView *_target)
  22205. {
  22206. return _target->GetNumItems ();
  22207. }
  22208. DllExport Urho3D::UIElement *
  22209. ListView_GetItem (Urho3D::ListView *_target, unsigned int index)
  22210. {
  22211. return _target->GetItem (index);
  22212. }
  22213. DllExport unsigned int
  22214. ListView_FindItem (Urho3D::ListView *_target, Urho3D::UIElement * item)
  22215. {
  22216. return _target->FindItem (item);
  22217. }
  22218. DllExport unsigned int
  22219. ListView_GetSelection (Urho3D::ListView *_target)
  22220. {
  22221. return _target->GetSelection ();
  22222. }
  22223. DllExport void
  22224. ListView_CopySelectedItemsToClipboard (Urho3D::ListView *_target)
  22225. {
  22226. _target->CopySelectedItemsToClipboard ();
  22227. }
  22228. DllExport Urho3D::UIElement *
  22229. ListView_GetSelectedItem (Urho3D::ListView *_target)
  22230. {
  22231. return _target->GetSelectedItem ();
  22232. }
  22233. DllExport int
  22234. ListView_IsSelected (Urho3D::ListView *_target, unsigned int index)
  22235. {
  22236. return _target->IsSelected (index);
  22237. }
  22238. DllExport int
  22239. ListView_IsExpanded (Urho3D::ListView *_target, unsigned int index)
  22240. {
  22241. return _target->IsExpanded (index);
  22242. }
  22243. DllExport enum Urho3D::HighlightMode
  22244. ListView_GetHighlightMode (Urho3D::ListView *_target)
  22245. {
  22246. return _target->GetHighlightMode ();
  22247. }
  22248. DllExport int
  22249. ListView_GetMultiselect (Urho3D::ListView *_target)
  22250. {
  22251. return _target->GetMultiselect ();
  22252. }
  22253. DllExport int
  22254. ListView_GetClearSelectionOnDefocus (Urho3D::ListView *_target)
  22255. {
  22256. return _target->GetClearSelectionOnDefocus ();
  22257. }
  22258. DllExport int
  22259. ListView_GetSelectOnClickEnd (Urho3D::ListView *_target)
  22260. {
  22261. return _target->GetSelectOnClickEnd ();
  22262. }
  22263. DllExport int
  22264. ListView_GetHierarchyMode (Urho3D::ListView *_target)
  22265. {
  22266. return _target->GetHierarchyMode ();
  22267. }
  22268. DllExport int
  22269. ListView_GetBaseIndent (Urho3D::ListView *_target)
  22270. {
  22271. return _target->GetBaseIndent ();
  22272. }
  22273. DllExport void
  22274. ListView_EnsureItemVisibility (Urho3D::ListView *_target, unsigned int index)
  22275. {
  22276. _target->EnsureItemVisibility (index);
  22277. }
  22278. DllExport void
  22279. ListView_EnsureItemVisibility1 (Urho3D::ListView *_target, Urho3D::UIElement * item)
  22280. {
  22281. _target->EnsureItemVisibility (item);
  22282. }
  22283. DllExport int
  22284. UIComponent_GetType (Urho3D::UIComponent *_target)
  22285. {
  22286. return (_target->GetType ()).Value ();
  22287. }
  22288. DllExport const char *
  22289. UIComponent_GetTypeName (Urho3D::UIComponent *_target)
  22290. {
  22291. return stringdup((_target->GetTypeName ()).CString ());
  22292. }
  22293. DllExport int
  22294. UIComponent_GetTypeStatic ()
  22295. {
  22296. return (UIComponent::GetTypeStatic ()).Value ();
  22297. }
  22298. DllExport const char *
  22299. UIComponent_GetTypeNameStatic ()
  22300. {
  22301. return stringdup((UIComponent::GetTypeNameStatic ()).CString ());
  22302. }
  22303. DllExport void *
  22304. UIComponent_UIComponent (Urho3D::Context * context)
  22305. {
  22306. return WeakPtr<UIComponent>(new UIComponent(context));
  22307. }
  22308. DllExport void
  22309. UIComponent_RegisterObject (Urho3D::Context * context)
  22310. {
  22311. UIComponent::RegisterObject (context);
  22312. }
  22313. DllExport Urho3D::UIElement *
  22314. UIComponent_GetRoot (Urho3D::UIComponent *_target)
  22315. {
  22316. return _target->GetRoot ();
  22317. }
  22318. DllExport Urho3D::Material *
  22319. UIComponent_GetMaterial (Urho3D::UIComponent *_target)
  22320. {
  22321. return _target->GetMaterial ();
  22322. }
  22323. DllExport Urho3D::Texture2D *
  22324. UIComponent_GetTexture (Urho3D::UIComponent *_target)
  22325. {
  22326. return _target->GetTexture ();
  22327. }
  22328. DllExport int
  22329. ScrollBar_GetType (Urho3D::ScrollBar *_target)
  22330. {
  22331. return (_target->GetType ()).Value ();
  22332. }
  22333. DllExport const char *
  22334. ScrollBar_GetTypeName (Urho3D::ScrollBar *_target)
  22335. {
  22336. return stringdup((_target->GetTypeName ()).CString ());
  22337. }
  22338. DllExport int
  22339. ScrollBar_GetTypeStatic ()
  22340. {
  22341. return (ScrollBar::GetTypeStatic ()).Value ();
  22342. }
  22343. DllExport const char *
  22344. ScrollBar_GetTypeNameStatic ()
  22345. {
  22346. return stringdup((ScrollBar::GetTypeNameStatic ()).CString ());
  22347. }
  22348. DllExport void *
  22349. ScrollBar_ScrollBar (Urho3D::Context * context)
  22350. {
  22351. return WeakPtr<ScrollBar>(new ScrollBar(context));
  22352. }
  22353. DllExport void
  22354. ScrollBar_RegisterObject (Urho3D::Context * context)
  22355. {
  22356. ScrollBar::RegisterObject (context);
  22357. }
  22358. DllExport void
  22359. ScrollBar_ApplyAttributes (Urho3D::ScrollBar *_target)
  22360. {
  22361. _target->ApplyAttributes ();
  22362. }
  22363. DllExport void
  22364. ScrollBar_OnResize (Urho3D::ScrollBar *_target, const class Urho3D::IntVector2 & newSize, const class Urho3D::IntVector2 & delta)
  22365. {
  22366. _target->OnResize (newSize, delta);
  22367. }
  22368. DllExport void
  22369. ScrollBar_OnSetEditable (Urho3D::ScrollBar *_target)
  22370. {
  22371. _target->OnSetEditable ();
  22372. }
  22373. DllExport void
  22374. ScrollBar_SetOrientation (Urho3D::ScrollBar *_target, enum Urho3D::Orientation orientation)
  22375. {
  22376. _target->SetOrientation (orientation);
  22377. }
  22378. DllExport void
  22379. ScrollBar_SetRange (Urho3D::ScrollBar *_target, float range)
  22380. {
  22381. _target->SetRange (range);
  22382. }
  22383. DllExport void
  22384. ScrollBar_SetValue (Urho3D::ScrollBar *_target, float value)
  22385. {
  22386. _target->SetValue (value);
  22387. }
  22388. DllExport void
  22389. ScrollBar_ChangeValue (Urho3D::ScrollBar *_target, float delta)
  22390. {
  22391. _target->ChangeValue (delta);
  22392. }
  22393. DllExport void
  22394. ScrollBar_SetScrollStep (Urho3D::ScrollBar *_target, float step)
  22395. {
  22396. _target->SetScrollStep (step);
  22397. }
  22398. DllExport void
  22399. ScrollBar_SetStepFactor (Urho3D::ScrollBar *_target, float factor)
  22400. {
  22401. _target->SetStepFactor (factor);
  22402. }
  22403. DllExport void
  22404. ScrollBar_StepBack (Urho3D::ScrollBar *_target)
  22405. {
  22406. _target->StepBack ();
  22407. }
  22408. DllExport void
  22409. ScrollBar_StepForward (Urho3D::ScrollBar *_target)
  22410. {
  22411. _target->StepForward ();
  22412. }
  22413. DllExport enum Urho3D::Orientation
  22414. ScrollBar_GetOrientation (Urho3D::ScrollBar *_target)
  22415. {
  22416. return _target->GetOrientation ();
  22417. }
  22418. DllExport float
  22419. ScrollBar_GetRange (Urho3D::ScrollBar *_target)
  22420. {
  22421. return _target->GetRange ();
  22422. }
  22423. DllExport float
  22424. ScrollBar_GetValue (Urho3D::ScrollBar *_target)
  22425. {
  22426. return _target->GetValue ();
  22427. }
  22428. DllExport float
  22429. ScrollBar_GetScrollStep (Urho3D::ScrollBar *_target)
  22430. {
  22431. return _target->GetScrollStep ();
  22432. }
  22433. DllExport float
  22434. ScrollBar_GetStepFactor (Urho3D::ScrollBar *_target)
  22435. {
  22436. return _target->GetStepFactor ();
  22437. }
  22438. DllExport float
  22439. ScrollBar_GetEffectiveScrollStep (Urho3D::ScrollBar *_target)
  22440. {
  22441. return _target->GetEffectiveScrollStep ();
  22442. }
  22443. DllExport Urho3D::Button *
  22444. ScrollBar_GetBackButton (Urho3D::ScrollBar *_target)
  22445. {
  22446. return _target->GetBackButton ();
  22447. }
  22448. DllExport Urho3D::Button *
  22449. ScrollBar_GetForwardButton (Urho3D::ScrollBar *_target)
  22450. {
  22451. return _target->GetForwardButton ();
  22452. }
  22453. DllExport Urho3D::Slider *
  22454. ScrollBar_GetSlider (Urho3D::ScrollBar *_target)
  22455. {
  22456. return _target->GetSlider ();
  22457. }
  22458. DllExport int
  22459. Slider_GetType (Urho3D::Slider *_target)
  22460. {
  22461. return (_target->GetType ()).Value ();
  22462. }
  22463. DllExport const char *
  22464. Slider_GetTypeName (Urho3D::Slider *_target)
  22465. {
  22466. return stringdup((_target->GetTypeName ()).CString ());
  22467. }
  22468. DllExport int
  22469. Slider_GetTypeStatic ()
  22470. {
  22471. return (Slider::GetTypeStatic ()).Value ();
  22472. }
  22473. DllExport const char *
  22474. Slider_GetTypeNameStatic ()
  22475. {
  22476. return stringdup((Slider::GetTypeNameStatic ()).CString ());
  22477. }
  22478. DllExport void *
  22479. Slider_Slider (Urho3D::Context * context)
  22480. {
  22481. return WeakPtr<Slider>(new Slider(context));
  22482. }
  22483. DllExport void
  22484. Slider_RegisterObject (Urho3D::Context * context)
  22485. {
  22486. Slider::RegisterObject (context);
  22487. }
  22488. DllExport void
  22489. Slider_Update (Urho3D::Slider *_target, float timeStep)
  22490. {
  22491. _target->Update (timeStep);
  22492. }
  22493. DllExport void
  22494. Slider_OnHover (Urho3D::Slider *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  22495. {
  22496. _target->OnHover (position, screenPosition, buttons, qualifiers, cursor);
  22497. }
  22498. DllExport void
  22499. Slider_OnClickBegin (Urho3D::Slider *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int button, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  22500. {
  22501. _target->OnClickBegin (position, screenPosition, button, buttons, qualifiers, cursor);
  22502. }
  22503. DllExport void
  22504. 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)
  22505. {
  22506. _target->OnClickEnd (position, screenPosition, button, buttons, qualifiers, cursor, beginElement);
  22507. }
  22508. DllExport void
  22509. Slider_OnResize (Urho3D::Slider *_target, const class Urho3D::IntVector2 & newSize, const class Urho3D::IntVector2 & delta)
  22510. {
  22511. _target->OnResize (newSize, delta);
  22512. }
  22513. DllExport void
  22514. Slider_SetOrientation (Urho3D::Slider *_target, enum Urho3D::Orientation orientation)
  22515. {
  22516. _target->SetOrientation (orientation);
  22517. }
  22518. DllExport void
  22519. Slider_SetRange (Urho3D::Slider *_target, float range)
  22520. {
  22521. _target->SetRange (range);
  22522. }
  22523. DllExport void
  22524. Slider_SetValue (Urho3D::Slider *_target, float value)
  22525. {
  22526. _target->SetValue (value);
  22527. }
  22528. DllExport void
  22529. Slider_ChangeValue (Urho3D::Slider *_target, float delta)
  22530. {
  22531. _target->ChangeValue (delta);
  22532. }
  22533. DllExport void
  22534. Slider_SetRepeatRate (Urho3D::Slider *_target, float rate)
  22535. {
  22536. _target->SetRepeatRate (rate);
  22537. }
  22538. DllExport enum Urho3D::Orientation
  22539. Slider_GetOrientation (Urho3D::Slider *_target)
  22540. {
  22541. return _target->GetOrientation ();
  22542. }
  22543. DllExport float
  22544. Slider_GetRange (Urho3D::Slider *_target)
  22545. {
  22546. return _target->GetRange ();
  22547. }
  22548. DllExport float
  22549. Slider_GetValue (Urho3D::Slider *_target)
  22550. {
  22551. return _target->GetValue ();
  22552. }
  22553. DllExport Urho3D::BorderImage *
  22554. Slider_GetKnob (Urho3D::Slider *_target)
  22555. {
  22556. return _target->GetKnob ();
  22557. }
  22558. DllExport float
  22559. Slider_GetRepeatRate (Urho3D::Slider *_target)
  22560. {
  22561. return _target->GetRepeatRate ();
  22562. }
  22563. DllExport int
  22564. Sprite_GetType (Urho3D::Sprite *_target)
  22565. {
  22566. return (_target->GetType ()).Value ();
  22567. }
  22568. DllExport const char *
  22569. Sprite_GetTypeName (Urho3D::Sprite *_target)
  22570. {
  22571. return stringdup((_target->GetTypeName ()).CString ());
  22572. }
  22573. DllExport int
  22574. Sprite_GetTypeStatic ()
  22575. {
  22576. return (Sprite::GetTypeStatic ()).Value ();
  22577. }
  22578. DllExport const char *
  22579. Sprite_GetTypeNameStatic ()
  22580. {
  22581. return stringdup((Sprite::GetTypeNameStatic ()).CString ());
  22582. }
  22583. DllExport void *
  22584. Sprite_Sprite (Urho3D::Context * context)
  22585. {
  22586. return WeakPtr<Sprite>(new Sprite(context));
  22587. }
  22588. DllExport void
  22589. Sprite_RegisterObject (Urho3D::Context * context)
  22590. {
  22591. Sprite::RegisterObject (context);
  22592. }
  22593. DllExport int
  22594. Sprite_IsWithinScissor (Urho3D::Sprite *_target, const class Urho3D::IntRect & currentScissor)
  22595. {
  22596. return _target->IsWithinScissor (currentScissor);
  22597. }
  22598. DllExport Interop::IntVector2
  22599. Sprite_GetScreenPosition (Urho3D::Sprite *_target)
  22600. {
  22601. return *((Interop::IntVector2 *) &(_target->GetScreenPosition ()));
  22602. }
  22603. DllExport void
  22604. Sprite_OnPositionSet (Urho3D::Sprite *_target, const class Urho3D::IntVector2 & newPosition)
  22605. {
  22606. _target->OnPositionSet (newPosition);
  22607. }
  22608. DllExport Interop::IntVector2
  22609. Sprite_ScreenToElement (Urho3D::Sprite *_target, const class Urho3D::IntVector2 & screenPosition)
  22610. {
  22611. return *((Interop::IntVector2 *) &(_target->ScreenToElement (screenPosition)));
  22612. }
  22613. DllExport Interop::IntVector2
  22614. Sprite_ElementToScreen (Urho3D::Sprite *_target, const class Urho3D::IntVector2 & position)
  22615. {
  22616. return *((Interop::IntVector2 *) &(_target->ElementToScreen (position)));
  22617. }
  22618. DllExport void
  22619. Sprite_SetPosition (Urho3D::Sprite *_target, const class Urho3D::Vector2 & position)
  22620. {
  22621. _target->SetPosition (position);
  22622. }
  22623. DllExport void
  22624. Sprite_SetPosition0 (Urho3D::Sprite *_target, float x, float y)
  22625. {
  22626. _target->SetPosition (x, y);
  22627. }
  22628. DllExport void
  22629. Sprite_SetHotSpot (Urho3D::Sprite *_target, const class Urho3D::IntVector2 & hotSpot)
  22630. {
  22631. _target->SetHotSpot (hotSpot);
  22632. }
  22633. DllExport void
  22634. Sprite_SetHotSpot1 (Urho3D::Sprite *_target, int x, int y)
  22635. {
  22636. _target->SetHotSpot (x, y);
  22637. }
  22638. DllExport void
  22639. Sprite_SetScale (Urho3D::Sprite *_target, const class Urho3D::Vector2 & scale)
  22640. {
  22641. _target->SetScale (scale);
  22642. }
  22643. DllExport void
  22644. Sprite_SetScale2 (Urho3D::Sprite *_target, float x, float y)
  22645. {
  22646. _target->SetScale (x, y);
  22647. }
  22648. DllExport void
  22649. Sprite_SetScale3 (Urho3D::Sprite *_target, float scale)
  22650. {
  22651. _target->SetScale (scale);
  22652. }
  22653. DllExport void
  22654. Sprite_SetRotation (Urho3D::Sprite *_target, float angle)
  22655. {
  22656. _target->SetRotation (angle);
  22657. }
  22658. DllExport void
  22659. Sprite_SetTexture (Urho3D::Sprite *_target, Urho3D::Texture * texture)
  22660. {
  22661. _target->SetTexture (texture);
  22662. }
  22663. DllExport void
  22664. Sprite_SetImageRect (Urho3D::Sprite *_target, const class Urho3D::IntRect & rect)
  22665. {
  22666. _target->SetImageRect (rect);
  22667. }
  22668. DllExport void
  22669. Sprite_SetFullImageRect (Urho3D::Sprite *_target)
  22670. {
  22671. _target->SetFullImageRect ();
  22672. }
  22673. DllExport void
  22674. Sprite_SetBlendMode (Urho3D::Sprite *_target, enum Urho3D::BlendMode mode)
  22675. {
  22676. _target->SetBlendMode (mode);
  22677. }
  22678. DllExport Interop::Vector2
  22679. Sprite_GetPosition (Urho3D::Sprite *_target)
  22680. {
  22681. return *((Interop::Vector2 *) &(_target->GetPosition ()));
  22682. }
  22683. DllExport Interop::IntVector2
  22684. Sprite_GetHotSpot (Urho3D::Sprite *_target)
  22685. {
  22686. return *((Interop::IntVector2 *) &(_target->GetHotSpot ()));
  22687. }
  22688. DllExport Interop::Vector2
  22689. Sprite_GetScale (Urho3D::Sprite *_target)
  22690. {
  22691. return *((Interop::Vector2 *) &(_target->GetScale ()));
  22692. }
  22693. DllExport float
  22694. Sprite_GetRotation (Urho3D::Sprite *_target)
  22695. {
  22696. return _target->GetRotation ();
  22697. }
  22698. DllExport Urho3D::Texture *
  22699. Sprite_GetTexture (Urho3D::Sprite *_target)
  22700. {
  22701. return _target->GetTexture ();
  22702. }
  22703. DllExport Interop::IntRect
  22704. Sprite_GetImageRect (Urho3D::Sprite *_target)
  22705. {
  22706. return *((Interop::IntRect *) &(_target->GetImageRect ()));
  22707. }
  22708. DllExport enum Urho3D::BlendMode
  22709. Sprite_GetBlendMode (Urho3D::Sprite *_target)
  22710. {
  22711. return _target->GetBlendMode ();
  22712. }
  22713. DllExport Urho3D::ResourceRef
  22714. Sprite_GetTextureAttr (Urho3D::Sprite *_target)
  22715. {
  22716. return _target->GetTextureAttr ();
  22717. }
  22718. DllExport Interop::Matrix3x4
  22719. Sprite_GetTransform (Urho3D::Sprite *_target)
  22720. {
  22721. return *((Interop::Matrix3x4 *) &(_target->GetTransform ()));
  22722. }
  22723. DllExport int
  22724. Text_GetType (Urho3D::Text *_target)
  22725. {
  22726. return (_target->GetType ()).Value ();
  22727. }
  22728. DllExport const char *
  22729. Text_GetTypeName (Urho3D::Text *_target)
  22730. {
  22731. return stringdup((_target->GetTypeName ()).CString ());
  22732. }
  22733. DllExport int
  22734. Text_GetTypeStatic ()
  22735. {
  22736. return (Text::GetTypeStatic ()).Value ();
  22737. }
  22738. DllExport const char *
  22739. Text_GetTypeNameStatic ()
  22740. {
  22741. return stringdup((Text::GetTypeNameStatic ()).CString ());
  22742. }
  22743. DllExport void *
  22744. Text_Text (Urho3D::Context * context)
  22745. {
  22746. return WeakPtr<Text>(new Text(context));
  22747. }
  22748. DllExport void
  22749. Text_RegisterObject (Urho3D::Context * context)
  22750. {
  22751. Text::RegisterObject (context);
  22752. }
  22753. DllExport void
  22754. Text_ApplyAttributes (Urho3D::Text *_target)
  22755. {
  22756. _target->ApplyAttributes ();
  22757. }
  22758. DllExport void
  22759. Text_OnResize (Urho3D::Text *_target, const class Urho3D::IntVector2 & newSize, const class Urho3D::IntVector2 & delta)
  22760. {
  22761. _target->OnResize (newSize, delta);
  22762. }
  22763. DllExport void
  22764. Text_OnIndentSet (Urho3D::Text *_target)
  22765. {
  22766. _target->OnIndentSet ();
  22767. }
  22768. DllExport int
  22769. Text_SetFont (Urho3D::Text *_target, const char * fontName, float size)
  22770. {
  22771. return _target->SetFont (Urho3D::String(fontName), size);
  22772. }
  22773. DllExport int
  22774. Text_SetFont0 (Urho3D::Text *_target, Urho3D::Font * font, float size)
  22775. {
  22776. return _target->SetFont (font, size);
  22777. }
  22778. DllExport int
  22779. Text_SetFontSize (Urho3D::Text *_target, float size)
  22780. {
  22781. return _target->SetFontSize (size);
  22782. }
  22783. DllExport void
  22784. Text_SetText (Urho3D::Text *_target, const char * text)
  22785. {
  22786. _target->SetText (Urho3D::String(text));
  22787. }
  22788. DllExport void
  22789. Text_SetTextAlignment (Urho3D::Text *_target, enum Urho3D::HorizontalAlignment align)
  22790. {
  22791. _target->SetTextAlignment (align);
  22792. }
  22793. DllExport void
  22794. Text_SetRowSpacing (Urho3D::Text *_target, float spacing)
  22795. {
  22796. _target->SetRowSpacing (spacing);
  22797. }
  22798. DllExport void
  22799. Text_SetWordwrap (Urho3D::Text *_target, bool enable)
  22800. {
  22801. _target->SetWordwrap (enable);
  22802. }
  22803. DllExport void
  22804. Text_SetAutoLocalizable (Urho3D::Text *_target, bool enable)
  22805. {
  22806. _target->SetAutoLocalizable (enable);
  22807. }
  22808. DllExport void
  22809. Text_SetSelection (Urho3D::Text *_target, unsigned int start, unsigned int length)
  22810. {
  22811. _target->SetSelection (start, length);
  22812. }
  22813. DllExport void
  22814. Text_ClearSelection (Urho3D::Text *_target)
  22815. {
  22816. _target->ClearSelection ();
  22817. }
  22818. DllExport void
  22819. Text_SetSelectionColor (Urho3D::Text *_target, const class Urho3D::Color & color)
  22820. {
  22821. _target->SetSelectionColor (color);
  22822. }
  22823. DllExport void
  22824. Text_SetHoverColor (Urho3D::Text *_target, const class Urho3D::Color & color)
  22825. {
  22826. _target->SetHoverColor (color);
  22827. }
  22828. DllExport void
  22829. Text_SetTextEffect (Urho3D::Text *_target, enum Urho3D::TextEffect textEffect)
  22830. {
  22831. _target->SetTextEffect (textEffect);
  22832. }
  22833. DllExport void
  22834. Text_SetEffectShadowOffset (Urho3D::Text *_target, const class Urho3D::IntVector2 & offset)
  22835. {
  22836. _target->SetEffectShadowOffset (offset);
  22837. }
  22838. DllExport void
  22839. Text_SetEffectStrokeThickness (Urho3D::Text *_target, int thickness)
  22840. {
  22841. _target->SetEffectStrokeThickness (thickness);
  22842. }
  22843. DllExport void
  22844. Text_SetEffectRoundStroke (Urho3D::Text *_target, bool roundStroke)
  22845. {
  22846. _target->SetEffectRoundStroke (roundStroke);
  22847. }
  22848. DllExport void
  22849. Text_SetEffectColor (Urho3D::Text *_target, const class Urho3D::Color & effectColor)
  22850. {
  22851. _target->SetEffectColor (effectColor);
  22852. }
  22853. DllExport Urho3D::Font *
  22854. Text_GetFont (Urho3D::Text *_target)
  22855. {
  22856. return _target->GetFont ();
  22857. }
  22858. DllExport float
  22859. Text_GetFontSize (Urho3D::Text *_target)
  22860. {
  22861. return _target->GetFontSize ();
  22862. }
  22863. DllExport const char *
  22864. Text_GetText (Urho3D::Text *_target)
  22865. {
  22866. return stringdup((_target->GetText ()).CString ());
  22867. }
  22868. DllExport enum Urho3D::HorizontalAlignment
  22869. Text_GetTextAlignment (Urho3D::Text *_target)
  22870. {
  22871. return _target->GetTextAlignment ();
  22872. }
  22873. DllExport float
  22874. Text_GetRowSpacing (Urho3D::Text *_target)
  22875. {
  22876. return _target->GetRowSpacing ();
  22877. }
  22878. DllExport int
  22879. Text_GetWordwrap (Urho3D::Text *_target)
  22880. {
  22881. return _target->GetWordwrap ();
  22882. }
  22883. DllExport int
  22884. Text_GetAutoLocalizable (Urho3D::Text *_target)
  22885. {
  22886. return _target->GetAutoLocalizable ();
  22887. }
  22888. DllExport unsigned int
  22889. Text_GetSelectionStart (Urho3D::Text *_target)
  22890. {
  22891. return _target->GetSelectionStart ();
  22892. }
  22893. DllExport unsigned int
  22894. Text_GetSelectionLength (Urho3D::Text *_target)
  22895. {
  22896. return _target->GetSelectionLength ();
  22897. }
  22898. DllExport Interop::Color
  22899. Text_GetSelectionColor (Urho3D::Text *_target)
  22900. {
  22901. return *((Interop::Color *) &(_target->GetSelectionColor ()));
  22902. }
  22903. DllExport Interop::Color
  22904. Text_GetHoverColor (Urho3D::Text *_target)
  22905. {
  22906. return *((Interop::Color *) &(_target->GetHoverColor ()));
  22907. }
  22908. DllExport enum Urho3D::TextEffect
  22909. Text_GetTextEffect (Urho3D::Text *_target)
  22910. {
  22911. return _target->GetTextEffect ();
  22912. }
  22913. DllExport Interop::IntVector2
  22914. Text_GetEffectShadowOffset (Urho3D::Text *_target)
  22915. {
  22916. return *((Interop::IntVector2 *) &(_target->GetEffectShadowOffset ()));
  22917. }
  22918. DllExport int
  22919. Text_GetEffectStrokeThickness (Urho3D::Text *_target)
  22920. {
  22921. return _target->GetEffectStrokeThickness ();
  22922. }
  22923. DllExport int
  22924. Text_GetEffectRoundStroke (Urho3D::Text *_target)
  22925. {
  22926. return _target->GetEffectRoundStroke ();
  22927. }
  22928. DllExport Interop::Color
  22929. Text_GetEffectColor (Urho3D::Text *_target)
  22930. {
  22931. return *((Interop::Color *) &(_target->GetEffectColor ()));
  22932. }
  22933. DllExport float
  22934. Text_GetRowHeight (Urho3D::Text *_target)
  22935. {
  22936. return _target->GetRowHeight ();
  22937. }
  22938. DllExport unsigned int
  22939. Text_GetNumRows (Urho3D::Text *_target)
  22940. {
  22941. return _target->GetNumRows ();
  22942. }
  22943. DllExport unsigned int
  22944. Text_GetNumChars (Urho3D::Text *_target)
  22945. {
  22946. return _target->GetNumChars ();
  22947. }
  22948. DllExport float
  22949. Text_GetRowWidth (Urho3D::Text *_target, unsigned int index)
  22950. {
  22951. return _target->GetRowWidth (index);
  22952. }
  22953. DllExport Interop::Vector2
  22954. Text_GetCharPosition (Urho3D::Text *_target, unsigned int index)
  22955. {
  22956. return *((Interop::Vector2 *) &(_target->GetCharPosition (index)));
  22957. }
  22958. DllExport Interop::Vector2
  22959. Text_GetCharSize (Urho3D::Text *_target, unsigned int index)
  22960. {
  22961. return *((Interop::Vector2 *) &(_target->GetCharSize (index)));
  22962. }
  22963. DllExport void
  22964. Text_SetEffectDepthBias (Urho3D::Text *_target, float bias)
  22965. {
  22966. _target->SetEffectDepthBias (bias);
  22967. }
  22968. DllExport float
  22969. Text_GetEffectDepthBias (Urho3D::Text *_target)
  22970. {
  22971. return _target->GetEffectDepthBias ();
  22972. }
  22973. DllExport Urho3D::ResourceRef
  22974. Text_GetFontAttr (Urho3D::Text *_target)
  22975. {
  22976. return _target->GetFontAttr ();
  22977. }
  22978. DllExport void
  22979. Text_SetTextAttr (Urho3D::Text *_target, const char * value)
  22980. {
  22981. _target->SetTextAttr (Urho3D::String(value));
  22982. }
  22983. DllExport const char *
  22984. Text_GetTextAttr (Urho3D::Text *_target)
  22985. {
  22986. return stringdup((_target->GetTextAttr ()).CString ());
  22987. }
  22988. DllExport int
  22989. Text3D_GetType (Urho3D::Text3D *_target)
  22990. {
  22991. return (_target->GetType ()).Value ();
  22992. }
  22993. DllExport const char *
  22994. Text3D_GetTypeName (Urho3D::Text3D *_target)
  22995. {
  22996. return stringdup((_target->GetTypeName ()).CString ());
  22997. }
  22998. DllExport int
  22999. Text3D_GetTypeStatic ()
  23000. {
  23001. return (Text3D::GetTypeStatic ()).Value ();
  23002. }
  23003. DllExport const char *
  23004. Text3D_GetTypeNameStatic ()
  23005. {
  23006. return stringdup((Text3D::GetTypeNameStatic ()).CString ());
  23007. }
  23008. DllExport void *
  23009. Text3D_Text3D (Urho3D::Context * context)
  23010. {
  23011. return WeakPtr<Text3D>(new Text3D(context));
  23012. }
  23013. DllExport void
  23014. Text3D_RegisterObject (Urho3D::Context * context)
  23015. {
  23016. Text3D::RegisterObject (context);
  23017. }
  23018. DllExport void
  23019. Text3D_ApplyAttributes (Urho3D::Text3D *_target)
  23020. {
  23021. _target->ApplyAttributes ();
  23022. }
  23023. DllExport enum Urho3D::UpdateGeometryType
  23024. Text3D_GetUpdateGeometryType (Urho3D::Text3D *_target)
  23025. {
  23026. return _target->GetUpdateGeometryType ();
  23027. }
  23028. DllExport int
  23029. Text3D_SetFont (Urho3D::Text3D *_target, const char * fontName, float size)
  23030. {
  23031. return _target->SetFont (Urho3D::String(fontName), size);
  23032. }
  23033. DllExport int
  23034. Text3D_SetFont0 (Urho3D::Text3D *_target, Urho3D::Font * font, float size)
  23035. {
  23036. return _target->SetFont (font, size);
  23037. }
  23038. DllExport int
  23039. Text3D_SetFontSize (Urho3D::Text3D *_target, float size)
  23040. {
  23041. return _target->SetFontSize (size);
  23042. }
  23043. DllExport void
  23044. Text3D_SetMaterial (Urho3D::Text3D *_target, Urho3D::Material * material)
  23045. {
  23046. _target->SetMaterial (material);
  23047. }
  23048. DllExport void
  23049. Text3D_SetText (Urho3D::Text3D *_target, const char * text)
  23050. {
  23051. _target->SetText (Urho3D::String(text));
  23052. }
  23053. DllExport void
  23054. Text3D_SetAlignment (Urho3D::Text3D *_target, enum Urho3D::HorizontalAlignment hAlign, enum Urho3D::VerticalAlignment vAlign)
  23055. {
  23056. _target->SetAlignment (hAlign, vAlign);
  23057. }
  23058. DllExport void
  23059. Text3D_SetHorizontalAlignment (Urho3D::Text3D *_target, enum Urho3D::HorizontalAlignment align)
  23060. {
  23061. _target->SetHorizontalAlignment (align);
  23062. }
  23063. DllExport void
  23064. Text3D_SetVerticalAlignment (Urho3D::Text3D *_target, enum Urho3D::VerticalAlignment align)
  23065. {
  23066. _target->SetVerticalAlignment (align);
  23067. }
  23068. DllExport void
  23069. Text3D_SetTextAlignment (Urho3D::Text3D *_target, enum Urho3D::HorizontalAlignment align)
  23070. {
  23071. _target->SetTextAlignment (align);
  23072. }
  23073. DllExport void
  23074. Text3D_SetRowSpacing (Urho3D::Text3D *_target, float spacing)
  23075. {
  23076. _target->SetRowSpacing (spacing);
  23077. }
  23078. DllExport void
  23079. Text3D_SetWordwrap (Urho3D::Text3D *_target, bool enable)
  23080. {
  23081. _target->SetWordwrap (enable);
  23082. }
  23083. DllExport void
  23084. Text3D_SetTextEffect (Urho3D::Text3D *_target, enum Urho3D::TextEffect textEffect)
  23085. {
  23086. _target->SetTextEffect (textEffect);
  23087. }
  23088. DllExport void
  23089. Text3D_SetEffectShadowOffset (Urho3D::Text3D *_target, const class Urho3D::IntVector2 & offset)
  23090. {
  23091. _target->SetEffectShadowOffset (offset);
  23092. }
  23093. DllExport void
  23094. Text3D_SetEffectStrokeThickness (Urho3D::Text3D *_target, int thickness)
  23095. {
  23096. _target->SetEffectStrokeThickness (thickness);
  23097. }
  23098. DllExport void
  23099. Text3D_SetEffectRoundStroke (Urho3D::Text3D *_target, bool roundStroke)
  23100. {
  23101. _target->SetEffectRoundStroke (roundStroke);
  23102. }
  23103. DllExport void
  23104. Text3D_SetEffectColor (Urho3D::Text3D *_target, const class Urho3D::Color & effectColor)
  23105. {
  23106. _target->SetEffectColor (effectColor);
  23107. }
  23108. DllExport void
  23109. Text3D_SetEffectDepthBias (Urho3D::Text3D *_target, float bias)
  23110. {
  23111. _target->SetEffectDepthBias (bias);
  23112. }
  23113. DllExport void
  23114. Text3D_SetWidth (Urho3D::Text3D *_target, int width)
  23115. {
  23116. _target->SetWidth (width);
  23117. }
  23118. DllExport void
  23119. Text3D_SetColor (Urho3D::Text3D *_target, const class Urho3D::Color & color)
  23120. {
  23121. _target->SetColor (color);
  23122. }
  23123. DllExport void
  23124. Text3D_SetColor1 (Urho3D::Text3D *_target, enum Urho3D::Corner corner, const class Urho3D::Color & color)
  23125. {
  23126. _target->SetColor (corner, color);
  23127. }
  23128. DllExport void
  23129. Text3D_SetOpacity (Urho3D::Text3D *_target, float opacity)
  23130. {
  23131. _target->SetOpacity (opacity);
  23132. }
  23133. DllExport void
  23134. Text3D_SetFixedScreenSize (Urho3D::Text3D *_target, bool enable)
  23135. {
  23136. _target->SetFixedScreenSize (enable);
  23137. }
  23138. DllExport void
  23139. Text3D_SetFaceCameraMode (Urho3D::Text3D *_target, enum Urho3D::FaceCameraMode mode)
  23140. {
  23141. _target->SetFaceCameraMode (mode);
  23142. }
  23143. DllExport Urho3D::Font *
  23144. Text3D_GetFont (Urho3D::Text3D *_target)
  23145. {
  23146. return _target->GetFont ();
  23147. }
  23148. DllExport float
  23149. Text3D_GetFontSize (Urho3D::Text3D *_target)
  23150. {
  23151. return _target->GetFontSize ();
  23152. }
  23153. DllExport Urho3D::Material *
  23154. Text3D_GetMaterial (Urho3D::Text3D *_target)
  23155. {
  23156. return _target->GetMaterial ();
  23157. }
  23158. DllExport const char *
  23159. Text3D_GetText (Urho3D::Text3D *_target)
  23160. {
  23161. return stringdup((_target->GetText ()).CString ());
  23162. }
  23163. DllExport enum Urho3D::HorizontalAlignment
  23164. Text3D_GetTextAlignment (Urho3D::Text3D *_target)
  23165. {
  23166. return _target->GetTextAlignment ();
  23167. }
  23168. DllExport enum Urho3D::HorizontalAlignment
  23169. Text3D_GetHorizontalAlignment (Urho3D::Text3D *_target)
  23170. {
  23171. return _target->GetHorizontalAlignment ();
  23172. }
  23173. DllExport enum Urho3D::VerticalAlignment
  23174. Text3D_GetVerticalAlignment (Urho3D::Text3D *_target)
  23175. {
  23176. return _target->GetVerticalAlignment ();
  23177. }
  23178. DllExport float
  23179. Text3D_GetRowSpacing (Urho3D::Text3D *_target)
  23180. {
  23181. return _target->GetRowSpacing ();
  23182. }
  23183. DllExport int
  23184. Text3D_GetWordwrap (Urho3D::Text3D *_target)
  23185. {
  23186. return _target->GetWordwrap ();
  23187. }
  23188. DllExport enum Urho3D::TextEffect
  23189. Text3D_GetTextEffect (Urho3D::Text3D *_target)
  23190. {
  23191. return _target->GetTextEffect ();
  23192. }
  23193. DllExport Interop::IntVector2
  23194. Text3D_GetEffectShadowOffset (Urho3D::Text3D *_target)
  23195. {
  23196. return *((Interop::IntVector2 *) &(_target->GetEffectShadowOffset ()));
  23197. }
  23198. DllExport int
  23199. Text3D_GetEffectStrokeThickness (Urho3D::Text3D *_target)
  23200. {
  23201. return _target->GetEffectStrokeThickness ();
  23202. }
  23203. DllExport int
  23204. Text3D_GetEffectRoundStroke (Urho3D::Text3D *_target)
  23205. {
  23206. return _target->GetEffectRoundStroke ();
  23207. }
  23208. DllExport Interop::Color
  23209. Text3D_GetEffectColor (Urho3D::Text3D *_target)
  23210. {
  23211. return *((Interop::Color *) &(_target->GetEffectColor ()));
  23212. }
  23213. DllExport float
  23214. Text3D_GetEffectDepthBias (Urho3D::Text3D *_target)
  23215. {
  23216. return _target->GetEffectDepthBias ();
  23217. }
  23218. DllExport int
  23219. Text3D_GetWidth (Urho3D::Text3D *_target)
  23220. {
  23221. return _target->GetWidth ();
  23222. }
  23223. DllExport int
  23224. Text3D_GetHeight (Urho3D::Text3D *_target)
  23225. {
  23226. return _target->GetHeight ();
  23227. }
  23228. DllExport int
  23229. Text3D_GetRowHeight (Urho3D::Text3D *_target)
  23230. {
  23231. return _target->GetRowHeight ();
  23232. }
  23233. DllExport unsigned int
  23234. Text3D_GetNumRows (Urho3D::Text3D *_target)
  23235. {
  23236. return _target->GetNumRows ();
  23237. }
  23238. DllExport unsigned int
  23239. Text3D_GetNumChars (Urho3D::Text3D *_target)
  23240. {
  23241. return _target->GetNumChars ();
  23242. }
  23243. DllExport int
  23244. Text3D_GetRowWidth (Urho3D::Text3D *_target, unsigned int index)
  23245. {
  23246. return _target->GetRowWidth (index);
  23247. }
  23248. DllExport Interop::Vector2
  23249. Text3D_GetCharPosition (Urho3D::Text3D *_target, unsigned int index)
  23250. {
  23251. return *((Interop::Vector2 *) &(_target->GetCharPosition (index)));
  23252. }
  23253. DllExport Interop::Vector2
  23254. Text3D_GetCharSize (Urho3D::Text3D *_target, unsigned int index)
  23255. {
  23256. return *((Interop::Vector2 *) &(_target->GetCharSize (index)));
  23257. }
  23258. DllExport Interop::Color
  23259. Text3D_GetColor (Urho3D::Text3D *_target, enum Urho3D::Corner corner)
  23260. {
  23261. return *((Interop::Color *) &(_target->GetColor (corner)));
  23262. }
  23263. DllExport float
  23264. Text3D_GetOpacity (Urho3D::Text3D *_target)
  23265. {
  23266. return _target->GetOpacity ();
  23267. }
  23268. DllExport int
  23269. Text3D_IsFixedScreenSize (Urho3D::Text3D *_target)
  23270. {
  23271. return _target->IsFixedScreenSize ();
  23272. }
  23273. DllExport enum Urho3D::FaceCameraMode
  23274. Text3D_GetFaceCameraMode (Urho3D::Text3D *_target)
  23275. {
  23276. return _target->GetFaceCameraMode ();
  23277. }
  23278. DllExport Urho3D::ResourceRef
  23279. Text3D_GetFontAttr (Urho3D::Text3D *_target)
  23280. {
  23281. return _target->GetFontAttr ();
  23282. }
  23283. DllExport Urho3D::ResourceRef
  23284. Text3D_GetMaterialAttr (Urho3D::Text3D *_target)
  23285. {
  23286. return _target->GetMaterialAttr ();
  23287. }
  23288. DllExport void
  23289. Text3D_SetTextAttr (Urho3D::Text3D *_target, const char * value)
  23290. {
  23291. _target->SetTextAttr (Urho3D::String(value));
  23292. }
  23293. DllExport const char *
  23294. Text3D_GetTextAttr (Urho3D::Text3D *_target)
  23295. {
  23296. return stringdup((_target->GetTextAttr ()).CString ());
  23297. }
  23298. DllExport Interop::Color
  23299. Text3D_GetColorAttr (Urho3D::Text3D *_target)
  23300. {
  23301. return *((Interop::Color *) &(_target->GetColorAttr ()));
  23302. }
  23303. DllExport int
  23304. ToolTip_GetType (Urho3D::ToolTip *_target)
  23305. {
  23306. return (_target->GetType ()).Value ();
  23307. }
  23308. DllExport const char *
  23309. ToolTip_GetTypeName (Urho3D::ToolTip *_target)
  23310. {
  23311. return stringdup((_target->GetTypeName ()).CString ());
  23312. }
  23313. DllExport int
  23314. ToolTip_GetTypeStatic ()
  23315. {
  23316. return (ToolTip::GetTypeStatic ()).Value ();
  23317. }
  23318. DllExport const char *
  23319. ToolTip_GetTypeNameStatic ()
  23320. {
  23321. return stringdup((ToolTip::GetTypeNameStatic ()).CString ());
  23322. }
  23323. DllExport void *
  23324. ToolTip_ToolTip (Urho3D::Context * context)
  23325. {
  23326. return WeakPtr<ToolTip>(new ToolTip(context));
  23327. }
  23328. DllExport void
  23329. ToolTip_RegisterObject (Urho3D::Context * context)
  23330. {
  23331. ToolTip::RegisterObject (context);
  23332. }
  23333. DllExport void
  23334. ToolTip_Update (Urho3D::ToolTip *_target, float timeStep)
  23335. {
  23336. _target->Update (timeStep);
  23337. }
  23338. DllExport void
  23339. ToolTip_SetDelay (Urho3D::ToolTip *_target, float delay)
  23340. {
  23341. _target->SetDelay (delay);
  23342. }
  23343. DllExport float
  23344. ToolTip_GetDelay (Urho3D::ToolTip *_target)
  23345. {
  23346. return _target->GetDelay ();
  23347. }
  23348. DllExport int
  23349. UI_GetType (Urho3D::UI *_target)
  23350. {
  23351. return (_target->GetType ()).Value ();
  23352. }
  23353. DllExport const char *
  23354. UI_GetTypeName (Urho3D::UI *_target)
  23355. {
  23356. return stringdup((_target->GetTypeName ()).CString ());
  23357. }
  23358. DllExport int
  23359. UI_GetTypeStatic ()
  23360. {
  23361. return (UI::GetTypeStatic ()).Value ();
  23362. }
  23363. DllExport const char *
  23364. UI_GetTypeNameStatic ()
  23365. {
  23366. return stringdup((UI::GetTypeNameStatic ()).CString ());
  23367. }
  23368. DllExport void *
  23369. UI_UI (Urho3D::Context * context)
  23370. {
  23371. return WeakPtr<UI>(new UI(context));
  23372. }
  23373. DllExport void
  23374. UI_SetCursor (Urho3D::UI *_target, Urho3D::Cursor * cursor)
  23375. {
  23376. _target->SetCursor (cursor);
  23377. }
  23378. DllExport void
  23379. UI_SetFocusElement (Urho3D::UI *_target, Urho3D::UIElement * element, bool byKey)
  23380. {
  23381. _target->SetFocusElement (element, byKey);
  23382. }
  23383. DllExport int
  23384. UI_SetModalElement (Urho3D::UI *_target, Urho3D::UIElement * modalElement, bool enable)
  23385. {
  23386. return _target->SetModalElement (modalElement, enable);
  23387. }
  23388. DllExport void
  23389. UI_Clear (Urho3D::UI *_target)
  23390. {
  23391. _target->Clear ();
  23392. }
  23393. DllExport void
  23394. UI_Update (Urho3D::UI *_target, float timeStep)
  23395. {
  23396. _target->Update (timeStep);
  23397. }
  23398. DllExport void
  23399. UI_RenderUpdate (Urho3D::UI *_target)
  23400. {
  23401. _target->RenderUpdate ();
  23402. }
  23403. DllExport void
  23404. UI_Render (Urho3D::UI *_target, bool renderUICommand)
  23405. {
  23406. _target->Render (renderUICommand);
  23407. }
  23408. DllExport void
  23409. UI_DebugDraw (Urho3D::UI *_target, Urho3D::UIElement * element)
  23410. {
  23411. _target->DebugDraw (element);
  23412. }
  23413. DllExport Urho3D::UIElement *
  23414. UI_LoadLayout_File (Urho3D::UI *_target, File * source, Urho3D::XMLFile * styleFile)
  23415. {
  23416. auto copy = _target->LoadLayout (*source, styleFile);
  23417. auto plain = copy.Get();
  23418. copy.Detach();
  23419. delete copy;
  23420. return plain;
  23421. }
  23422. DllExport Urho3D::UIElement *
  23423. UI_LoadLayout_MemoryBuffer (Urho3D::UI *_target, MemoryBuffer * source, Urho3D::XMLFile * styleFile)
  23424. {
  23425. auto copy = _target->LoadLayout (*source, styleFile);
  23426. auto plain = copy.Get();
  23427. copy.Detach();
  23428. delete copy;
  23429. return plain;
  23430. }
  23431. DllExport Urho3D::UIElement *
  23432. UI_LoadLayout0 (Urho3D::UI *_target, Urho3D::XMLFile * file, Urho3D::XMLFile * styleFile)
  23433. {
  23434. auto copy = _target->LoadLayout (file, styleFile);
  23435. auto plain = copy.Get();
  23436. copy.Detach();
  23437. delete copy;
  23438. return plain;
  23439. }
  23440. DllExport int
  23441. UI_SaveLayout_File (Urho3D::UI *_target, File * dest, Urho3D::UIElement * element)
  23442. {
  23443. return _target->SaveLayout (*dest, element);
  23444. }
  23445. DllExport int
  23446. UI_SaveLayout_MemoryBuffer (Urho3D::UI *_target, MemoryBuffer * dest, Urho3D::UIElement * element)
  23447. {
  23448. return _target->SaveLayout (*dest, element);
  23449. }
  23450. DllExport void
  23451. UI_SetClipboardText (Urho3D::UI *_target, const char * text)
  23452. {
  23453. _target->SetClipboardText (Urho3D::String(text));
  23454. }
  23455. DllExport void
  23456. UI_SetDoubleClickInterval (Urho3D::UI *_target, float interval)
  23457. {
  23458. _target->SetDoubleClickInterval (interval);
  23459. }
  23460. DllExport void
  23461. UI_SetDragBeginInterval (Urho3D::UI *_target, float interval)
  23462. {
  23463. _target->SetDragBeginInterval (interval);
  23464. }
  23465. DllExport void
  23466. UI_SetDragBeginDistance (Urho3D::UI *_target, int pixels)
  23467. {
  23468. _target->SetDragBeginDistance (pixels);
  23469. }
  23470. DllExport void
  23471. UI_SetDefaultToolTipDelay (Urho3D::UI *_target, float delay)
  23472. {
  23473. _target->SetDefaultToolTipDelay (delay);
  23474. }
  23475. DllExport void
  23476. UI_SetMaxFontTextureSize (Urho3D::UI *_target, int size)
  23477. {
  23478. _target->SetMaxFontTextureSize (size);
  23479. }
  23480. DllExport void
  23481. UI_SetNonFocusedMouseWheel (Urho3D::UI *_target, bool nonFocusedMouseWheel)
  23482. {
  23483. _target->SetNonFocusedMouseWheel (nonFocusedMouseWheel);
  23484. }
  23485. DllExport void
  23486. UI_SetUseSystemClipboard (Urho3D::UI *_target, bool enable)
  23487. {
  23488. _target->SetUseSystemClipboard (enable);
  23489. }
  23490. DllExport void
  23491. UI_SetUseScreenKeyboard (Urho3D::UI *_target, bool enable)
  23492. {
  23493. _target->SetUseScreenKeyboard (enable);
  23494. }
  23495. DllExport void
  23496. UI_SetUseMutableGlyphs (Urho3D::UI *_target, bool enable)
  23497. {
  23498. _target->SetUseMutableGlyphs (enable);
  23499. }
  23500. DllExport void
  23501. UI_SetForceAutoHint (Urho3D::UI *_target, bool enable)
  23502. {
  23503. _target->SetForceAutoHint (enable);
  23504. }
  23505. DllExport void
  23506. UI_SetFontHintLevel (Urho3D::UI *_target, enum Urho3D::FontHintLevel level)
  23507. {
  23508. _target->SetFontHintLevel (level);
  23509. }
  23510. DllExport void
  23511. UI_SetFontSubpixelThreshold (Urho3D::UI *_target, float threshold)
  23512. {
  23513. _target->SetFontSubpixelThreshold (threshold);
  23514. }
  23515. DllExport void
  23516. UI_SetFontOversampling (Urho3D::UI *_target, int oversampling)
  23517. {
  23518. _target->SetFontOversampling (oversampling);
  23519. }
  23520. DllExport void
  23521. UI_SetScale (Urho3D::UI *_target, float scale)
  23522. {
  23523. _target->SetScale (scale);
  23524. }
  23525. DllExport void
  23526. UI_SetWidth (Urho3D::UI *_target, float width)
  23527. {
  23528. _target->SetWidth (width);
  23529. }
  23530. DllExport void
  23531. UI_SetHeight (Urho3D::UI *_target, float height)
  23532. {
  23533. _target->SetHeight (height);
  23534. }
  23535. DllExport void
  23536. UI_SetCustomSize (Urho3D::UI *_target, const class Urho3D::IntVector2 & size)
  23537. {
  23538. _target->SetCustomSize (size);
  23539. }
  23540. DllExport void
  23541. UI_SetCustomSize1 (Urho3D::UI *_target, int width, int height)
  23542. {
  23543. _target->SetCustomSize (width, height);
  23544. }
  23545. DllExport Urho3D::UIElement *
  23546. UI_GetRoot (Urho3D::UI *_target)
  23547. {
  23548. return _target->GetRoot ();
  23549. }
  23550. DllExport Urho3D::UIElement *
  23551. UI_GetRootModalElement (Urho3D::UI *_target)
  23552. {
  23553. return _target->GetRootModalElement ();
  23554. }
  23555. DllExport Urho3D::Cursor *
  23556. UI_GetCursor (Urho3D::UI *_target)
  23557. {
  23558. return _target->GetCursor ();
  23559. }
  23560. DllExport Interop::IntVector2
  23561. UI_GetCursorPosition (Urho3D::UI *_target)
  23562. {
  23563. return *((Interop::IntVector2 *) &(_target->GetCursorPosition ()));
  23564. }
  23565. DllExport Urho3D::UIElement *
  23566. UI_GetElementAt (Urho3D::UI *_target, const class Urho3D::IntVector2 & position, bool enabledOnly)
  23567. {
  23568. return _target->GetElementAt (position, enabledOnly);
  23569. }
  23570. DllExport Urho3D::UIElement *
  23571. UI_GetElementAt2 (Urho3D::UI *_target, int x, int y, bool enabledOnly)
  23572. {
  23573. return _target->GetElementAt (x, y, enabledOnly);
  23574. }
  23575. DllExport Urho3D::UIElement *
  23576. UI_GetElementAt3 (Urho3D::UI *_target, Urho3D::UIElement * root, const class Urho3D::IntVector2 & position, bool enabledOnly)
  23577. {
  23578. return _target->GetElementAt (root, position, enabledOnly);
  23579. }
  23580. DllExport Urho3D::UIElement *
  23581. UI_GetFocusElement (Urho3D::UI *_target)
  23582. {
  23583. return _target->GetFocusElement ();
  23584. }
  23585. DllExport Urho3D::UIElement *
  23586. UI_GetFrontElement (Urho3D::UI *_target)
  23587. {
  23588. return _target->GetFrontElement ();
  23589. }
  23590. DllExport unsigned int
  23591. UI_GetNumDragElements (Urho3D::UI *_target)
  23592. {
  23593. return _target->GetNumDragElements ();
  23594. }
  23595. DllExport Urho3D::UIElement *
  23596. UI_GetDragElement (Urho3D::UI *_target, unsigned int index)
  23597. {
  23598. return _target->GetDragElement (index);
  23599. }
  23600. DllExport const char *
  23601. UI_GetClipboardText (Urho3D::UI *_target)
  23602. {
  23603. return stringdup((_target->GetClipboardText ()).CString ());
  23604. }
  23605. DllExport float
  23606. UI_GetDoubleClickInterval (Urho3D::UI *_target)
  23607. {
  23608. return _target->GetDoubleClickInterval ();
  23609. }
  23610. DllExport float
  23611. UI_GetDragBeginInterval (Urho3D::UI *_target)
  23612. {
  23613. return _target->GetDragBeginInterval ();
  23614. }
  23615. DllExport int
  23616. UI_GetDragBeginDistance (Urho3D::UI *_target)
  23617. {
  23618. return _target->GetDragBeginDistance ();
  23619. }
  23620. DllExport float
  23621. UI_GetDefaultToolTipDelay (Urho3D::UI *_target)
  23622. {
  23623. return _target->GetDefaultToolTipDelay ();
  23624. }
  23625. DllExport int
  23626. UI_GetMaxFontTextureSize (Urho3D::UI *_target)
  23627. {
  23628. return _target->GetMaxFontTextureSize ();
  23629. }
  23630. DllExport int
  23631. UI_IsNonFocusedMouseWheel (Urho3D::UI *_target)
  23632. {
  23633. return _target->IsNonFocusedMouseWheel ();
  23634. }
  23635. DllExport int
  23636. UI_GetUseSystemClipboard (Urho3D::UI *_target)
  23637. {
  23638. return _target->GetUseSystemClipboard ();
  23639. }
  23640. DllExport int
  23641. UI_GetUseScreenKeyboard (Urho3D::UI *_target)
  23642. {
  23643. return _target->GetUseScreenKeyboard ();
  23644. }
  23645. DllExport int
  23646. UI_GetUseMutableGlyphs (Urho3D::UI *_target)
  23647. {
  23648. return _target->GetUseMutableGlyphs ();
  23649. }
  23650. DllExport int
  23651. UI_GetForceAutoHint (Urho3D::UI *_target)
  23652. {
  23653. return _target->GetForceAutoHint ();
  23654. }
  23655. DllExport enum Urho3D::FontHintLevel
  23656. UI_GetFontHintLevel (Urho3D::UI *_target)
  23657. {
  23658. return _target->GetFontHintLevel ();
  23659. }
  23660. DllExport float
  23661. UI_GetFontSubpixelThreshold (Urho3D::UI *_target)
  23662. {
  23663. return _target->GetFontSubpixelThreshold ();
  23664. }
  23665. DllExport int
  23666. UI_GetFontOversampling (Urho3D::UI *_target)
  23667. {
  23668. return _target->GetFontOversampling ();
  23669. }
  23670. DllExport int
  23671. UI_HasModalElement (Urho3D::UI *_target)
  23672. {
  23673. return _target->HasModalElement ();
  23674. }
  23675. DllExport int
  23676. UI_IsDragging (Urho3D::UI *_target)
  23677. {
  23678. return _target->IsDragging ();
  23679. }
  23680. DllExport float
  23681. UI_GetScale (Urho3D::UI *_target)
  23682. {
  23683. return _target->GetScale ();
  23684. }
  23685. DllExport Interop::IntVector2
  23686. UI_GetCustomSize (Urho3D::UI *_target)
  23687. {
  23688. return *((Interop::IntVector2 *) &(_target->GetCustomSize ()));
  23689. }
  23690. DllExport void
  23691. UI_SetRenderToTexture (Urho3D::UI *_target, Urho3D::UIComponent * component, bool enable)
  23692. {
  23693. _target->SetRenderToTexture (component, enable);
  23694. }
  23695. DllExport int
  23696. Window_GetType (Urho3D::Window *_target)
  23697. {
  23698. return (_target->GetType ()).Value ();
  23699. }
  23700. DllExport const char *
  23701. Window_GetTypeName (Urho3D::Window *_target)
  23702. {
  23703. return stringdup((_target->GetTypeName ()).CString ());
  23704. }
  23705. DllExport int
  23706. Window_GetTypeStatic ()
  23707. {
  23708. return (Window::GetTypeStatic ()).Value ();
  23709. }
  23710. DllExport const char *
  23711. Window_GetTypeNameStatic ()
  23712. {
  23713. return stringdup((Window::GetTypeNameStatic ()).CString ());
  23714. }
  23715. DllExport void *
  23716. Window_Window (Urho3D::Context * context)
  23717. {
  23718. return WeakPtr<Window>(new Window(context));
  23719. }
  23720. DllExport void
  23721. Window_RegisterObject (Urho3D::Context * context)
  23722. {
  23723. Window::RegisterObject (context);
  23724. }
  23725. DllExport void
  23726. Window_OnHover (Urho3D::Window *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  23727. {
  23728. _target->OnHover (position, screenPosition, buttons, qualifiers, cursor);
  23729. }
  23730. DllExport void
  23731. Window_SetMovable (Urho3D::Window *_target, bool enable)
  23732. {
  23733. _target->SetMovable (enable);
  23734. }
  23735. DllExport void
  23736. Window_SetResizable (Urho3D::Window *_target, bool enable)
  23737. {
  23738. _target->SetResizable (enable);
  23739. }
  23740. DllExport void
  23741. Window_SetFixedWidthResizing (Urho3D::Window *_target, bool enable)
  23742. {
  23743. _target->SetFixedWidthResizing (enable);
  23744. }
  23745. DllExport void
  23746. Window_SetFixedHeightResizing (Urho3D::Window *_target, bool enable)
  23747. {
  23748. _target->SetFixedHeightResizing (enable);
  23749. }
  23750. DllExport void
  23751. Window_SetResizeBorder (Urho3D::Window *_target, const class Urho3D::IntRect & rect)
  23752. {
  23753. _target->SetResizeBorder (rect);
  23754. }
  23755. DllExport void
  23756. Window_SetModal (Urho3D::Window *_target, bool modal)
  23757. {
  23758. _target->SetModal (modal);
  23759. }
  23760. DllExport void
  23761. Window_SetModalShadeColor (Urho3D::Window *_target, const class Urho3D::Color & color)
  23762. {
  23763. _target->SetModalShadeColor (color);
  23764. }
  23765. DllExport void
  23766. Window_SetModalFrameColor (Urho3D::Window *_target, const class Urho3D::Color & color)
  23767. {
  23768. _target->SetModalFrameColor (color);
  23769. }
  23770. DllExport void
  23771. Window_SetModalFrameSize (Urho3D::Window *_target, const class Urho3D::IntVector2 & size)
  23772. {
  23773. _target->SetModalFrameSize (size);
  23774. }
  23775. DllExport void
  23776. Window_SetModalAutoDismiss (Urho3D::Window *_target, bool enable)
  23777. {
  23778. _target->SetModalAutoDismiss (enable);
  23779. }
  23780. DllExport int
  23781. Window_IsMovable (Urho3D::Window *_target)
  23782. {
  23783. return _target->IsMovable ();
  23784. }
  23785. DllExport int
  23786. Window_IsResizable (Urho3D::Window *_target)
  23787. {
  23788. return _target->IsResizable ();
  23789. }
  23790. DllExport int
  23791. Window_GetFixedWidthResizing (Urho3D::Window *_target)
  23792. {
  23793. return _target->GetFixedWidthResizing ();
  23794. }
  23795. DllExport int
  23796. Window_GetFixedHeightResizing (Urho3D::Window *_target)
  23797. {
  23798. return _target->GetFixedHeightResizing ();
  23799. }
  23800. DllExport Interop::IntRect
  23801. Window_GetResizeBorder (Urho3D::Window *_target)
  23802. {
  23803. return *((Interop::IntRect *) &(_target->GetResizeBorder ()));
  23804. }
  23805. DllExport int
  23806. Window_IsModal (Urho3D::Window *_target)
  23807. {
  23808. return _target->IsModal ();
  23809. }
  23810. DllExport Interop::Color
  23811. Window_GetModalShadeColor (Urho3D::Window *_target)
  23812. {
  23813. return *((Interop::Color *) &(_target->GetModalShadeColor ()));
  23814. }
  23815. DllExport Interop::Color
  23816. Window_GetModalFrameColor (Urho3D::Window *_target)
  23817. {
  23818. return *((Interop::Color *) &(_target->GetModalFrameColor ()));
  23819. }
  23820. DllExport Interop::IntVector2
  23821. Window_GetModalFrameSize (Urho3D::Window *_target)
  23822. {
  23823. return *((Interop::IntVector2 *) &(_target->GetModalFrameSize ()));
  23824. }
  23825. DllExport int
  23826. Window_GetModalAutoDismiss (Urho3D::Window *_target)
  23827. {
  23828. return _target->GetModalAutoDismiss ();
  23829. }
  23830. DllExport int
  23831. View3D_GetType (Urho3D::View3D *_target)
  23832. {
  23833. return (_target->GetType ()).Value ();
  23834. }
  23835. DllExport const char *
  23836. View3D_GetTypeName (Urho3D::View3D *_target)
  23837. {
  23838. return stringdup((_target->GetTypeName ()).CString ());
  23839. }
  23840. DllExport int
  23841. View3D_GetTypeStatic ()
  23842. {
  23843. return (View3D::GetTypeStatic ()).Value ();
  23844. }
  23845. DllExport const char *
  23846. View3D_GetTypeNameStatic ()
  23847. {
  23848. return stringdup((View3D::GetTypeNameStatic ()).CString ());
  23849. }
  23850. DllExport void *
  23851. View3D_View3D (Urho3D::Context * context)
  23852. {
  23853. return WeakPtr<View3D>(new View3D(context));
  23854. }
  23855. DllExport void
  23856. View3D_RegisterObject (Urho3D::Context * context)
  23857. {
  23858. View3D::RegisterObject (context);
  23859. }
  23860. DllExport void
  23861. View3D_OnResize (Urho3D::View3D *_target, const class Urho3D::IntVector2 & newSize, const class Urho3D::IntVector2 & delta)
  23862. {
  23863. _target->OnResize (newSize, delta);
  23864. }
  23865. DllExport void
  23866. View3D_SetView (Urho3D::View3D *_target, Urho3D::Scene * scene, Urho3D::Camera * camera, bool ownScene)
  23867. {
  23868. _target->SetView (scene, camera, ownScene);
  23869. }
  23870. DllExport void
  23871. View3D_SetFormat (Urho3D::View3D *_target, unsigned int format)
  23872. {
  23873. _target->SetFormat (format);
  23874. }
  23875. DllExport void
  23876. View3D_SetAutoUpdate (Urho3D::View3D *_target, bool enable)
  23877. {
  23878. _target->SetAutoUpdate (enable);
  23879. }
  23880. DllExport void
  23881. View3D_QueueUpdate (Urho3D::View3D *_target)
  23882. {
  23883. _target->QueueUpdate ();
  23884. }
  23885. DllExport unsigned int
  23886. View3D_GetFormat (Urho3D::View3D *_target)
  23887. {
  23888. return _target->GetFormat ();
  23889. }
  23890. DllExport int
  23891. View3D_GetAutoUpdate (Urho3D::View3D *_target)
  23892. {
  23893. return _target->GetAutoUpdate ();
  23894. }
  23895. DllExport Urho3D::Scene *
  23896. View3D_GetScene (Urho3D::View3D *_target)
  23897. {
  23898. return _target->GetScene ();
  23899. }
  23900. DllExport Urho3D::Node *
  23901. View3D_GetCameraNode (Urho3D::View3D *_target)
  23902. {
  23903. return _target->GetCameraNode ();
  23904. }
  23905. DllExport Urho3D::Texture2D *
  23906. View3D_GetRenderTexture (Urho3D::View3D *_target)
  23907. {
  23908. return _target->GetRenderTexture ();
  23909. }
  23910. DllExport Urho3D::Texture2D *
  23911. View3D_GetDepthTexture (Urho3D::View3D *_target)
  23912. {
  23913. return _target->GetDepthTexture ();
  23914. }
  23915. DllExport Urho3D::Viewport *
  23916. View3D_GetViewport (Urho3D::View3D *_target)
  23917. {
  23918. return _target->GetViewport ();
  23919. }
  23920. DllExport int
  23921. Drawable2D_GetType (Urho3D::Drawable2D *_target)
  23922. {
  23923. return (_target->GetType ()).Value ();
  23924. }
  23925. DllExport const char *
  23926. Drawable2D_GetTypeName (Urho3D::Drawable2D *_target)
  23927. {
  23928. return stringdup((_target->GetTypeName ()).CString ());
  23929. }
  23930. DllExport int
  23931. Drawable2D_GetTypeStatic ()
  23932. {
  23933. return (Drawable2D::GetTypeStatic ()).Value ();
  23934. }
  23935. DllExport const char *
  23936. Drawable2D_GetTypeNameStatic ()
  23937. {
  23938. return stringdup((Drawable2D::GetTypeNameStatic ()).CString ());
  23939. }
  23940. DllExport void
  23941. Drawable2D_RegisterObject (Urho3D::Context * context)
  23942. {
  23943. Drawable2D::RegisterObject (context);
  23944. }
  23945. DllExport void
  23946. Drawable2D_OnSetEnabled (Urho3D::Drawable2D *_target)
  23947. {
  23948. _target->OnSetEnabled ();
  23949. }
  23950. DllExport void
  23951. Drawable2D_SetLayer (Urho3D::Drawable2D *_target, int layer)
  23952. {
  23953. _target->SetLayer (layer);
  23954. }
  23955. DllExport void
  23956. Drawable2D_SetOrderInLayer (Urho3D::Drawable2D *_target, int orderInLayer)
  23957. {
  23958. _target->SetOrderInLayer (orderInLayer);
  23959. }
  23960. DllExport int
  23961. Drawable2D_GetLayer (Urho3D::Drawable2D *_target)
  23962. {
  23963. return _target->GetLayer ();
  23964. }
  23965. DllExport int
  23966. Drawable2D_GetOrderInLayer (Urho3D::Drawable2D *_target)
  23967. {
  23968. return _target->GetOrderInLayer ();
  23969. }
  23970. DllExport int
  23971. StaticSprite2D_GetType (Urho3D::StaticSprite2D *_target)
  23972. {
  23973. return (_target->GetType ()).Value ();
  23974. }
  23975. DllExport const char *
  23976. StaticSprite2D_GetTypeName (Urho3D::StaticSprite2D *_target)
  23977. {
  23978. return stringdup((_target->GetTypeName ()).CString ());
  23979. }
  23980. DllExport int
  23981. StaticSprite2D_GetTypeStatic ()
  23982. {
  23983. return (StaticSprite2D::GetTypeStatic ()).Value ();
  23984. }
  23985. DllExport const char *
  23986. StaticSprite2D_GetTypeNameStatic ()
  23987. {
  23988. return stringdup((StaticSprite2D::GetTypeNameStatic ()).CString ());
  23989. }
  23990. DllExport void *
  23991. StaticSprite2D_StaticSprite2D (Urho3D::Context * context)
  23992. {
  23993. return WeakPtr<StaticSprite2D>(new StaticSprite2D(context));
  23994. }
  23995. DllExport void
  23996. StaticSprite2D_RegisterObject (Urho3D::Context * context)
  23997. {
  23998. StaticSprite2D::RegisterObject (context);
  23999. }
  24000. DllExport void
  24001. StaticSprite2D_SetSprite (Urho3D::StaticSprite2D *_target, Urho3D::Sprite2D * sprite)
  24002. {
  24003. _target->SetSprite (sprite);
  24004. }
  24005. DllExport void
  24006. StaticSprite2D_SetBlendMode (Urho3D::StaticSprite2D *_target, enum Urho3D::BlendMode blendMode)
  24007. {
  24008. _target->SetBlendMode (blendMode);
  24009. }
  24010. DllExport void
  24011. StaticSprite2D_SetFlip (Urho3D::StaticSprite2D *_target, bool flipX, bool flipY)
  24012. {
  24013. _target->SetFlip (flipX, flipY);
  24014. }
  24015. DllExport void
  24016. StaticSprite2D_SetFlipX (Urho3D::StaticSprite2D *_target, bool flipX)
  24017. {
  24018. _target->SetFlipX (flipX);
  24019. }
  24020. DllExport void
  24021. StaticSprite2D_SetFlipY (Urho3D::StaticSprite2D *_target, bool flipY)
  24022. {
  24023. _target->SetFlipY (flipY);
  24024. }
  24025. DllExport void
  24026. StaticSprite2D_SetColor (Urho3D::StaticSprite2D *_target, const class Urho3D::Color & color)
  24027. {
  24028. _target->SetColor (color);
  24029. }
  24030. DllExport void
  24031. StaticSprite2D_SetAlpha (Urho3D::StaticSprite2D *_target, float alpha)
  24032. {
  24033. _target->SetAlpha (alpha);
  24034. }
  24035. DllExport void
  24036. StaticSprite2D_SetUseHotSpot (Urho3D::StaticSprite2D *_target, bool useHotSpot)
  24037. {
  24038. _target->SetUseHotSpot (useHotSpot);
  24039. }
  24040. DllExport void
  24041. StaticSprite2D_SetUseDrawRect (Urho3D::StaticSprite2D *_target, bool useDrawRect)
  24042. {
  24043. _target->SetUseDrawRect (useDrawRect);
  24044. }
  24045. DllExport void
  24046. StaticSprite2D_SetUseTextureRect (Urho3D::StaticSprite2D *_target, bool useTextureRect)
  24047. {
  24048. _target->SetUseTextureRect (useTextureRect);
  24049. }
  24050. DllExport void
  24051. StaticSprite2D_SetHotSpot (Urho3D::StaticSprite2D *_target, const class Urho3D::Vector2 & hotspot)
  24052. {
  24053. _target->SetHotSpot (hotspot);
  24054. }
  24055. DllExport void
  24056. StaticSprite2D_SetCustomMaterial (Urho3D::StaticSprite2D *_target, Urho3D::Material * customMaterial)
  24057. {
  24058. _target->SetCustomMaterial (customMaterial);
  24059. }
  24060. DllExport Urho3D::Sprite2D *
  24061. StaticSprite2D_GetSprite (Urho3D::StaticSprite2D *_target)
  24062. {
  24063. return _target->GetSprite ();
  24064. }
  24065. DllExport enum Urho3D::BlendMode
  24066. StaticSprite2D_GetBlendMode (Urho3D::StaticSprite2D *_target)
  24067. {
  24068. return _target->GetBlendMode ();
  24069. }
  24070. DllExport int
  24071. StaticSprite2D_GetFlipX (Urho3D::StaticSprite2D *_target)
  24072. {
  24073. return _target->GetFlipX ();
  24074. }
  24075. DllExport int
  24076. StaticSprite2D_GetFlipY (Urho3D::StaticSprite2D *_target)
  24077. {
  24078. return _target->GetFlipY ();
  24079. }
  24080. DllExport Interop::Color
  24081. StaticSprite2D_GetColor (Urho3D::StaticSprite2D *_target)
  24082. {
  24083. return *((Interop::Color *) &(_target->GetColor ()));
  24084. }
  24085. DllExport float
  24086. StaticSprite2D_GetAlpha (Urho3D::StaticSprite2D *_target)
  24087. {
  24088. return _target->GetAlpha ();
  24089. }
  24090. DllExport int
  24091. StaticSprite2D_GetUseHotSpot (Urho3D::StaticSprite2D *_target)
  24092. {
  24093. return _target->GetUseHotSpot ();
  24094. }
  24095. DllExport int
  24096. StaticSprite2D_GetUseDrawRect (Urho3D::StaticSprite2D *_target)
  24097. {
  24098. return _target->GetUseDrawRect ();
  24099. }
  24100. DllExport int
  24101. StaticSprite2D_GetUseTextureRect (Urho3D::StaticSprite2D *_target)
  24102. {
  24103. return _target->GetUseTextureRect ();
  24104. }
  24105. DllExport Interop::Vector2
  24106. StaticSprite2D_GetHotSpot (Urho3D::StaticSprite2D *_target)
  24107. {
  24108. return *((Interop::Vector2 *) &(_target->GetHotSpot ()));
  24109. }
  24110. DllExport Urho3D::Material *
  24111. StaticSprite2D_GetCustomMaterial (Urho3D::StaticSprite2D *_target)
  24112. {
  24113. return _target->GetCustomMaterial ();
  24114. }
  24115. DllExport Urho3D::ResourceRef
  24116. StaticSprite2D_GetSpriteAttr (Urho3D::StaticSprite2D *_target)
  24117. {
  24118. return _target->GetSpriteAttr ();
  24119. }
  24120. DllExport Urho3D::ResourceRef
  24121. StaticSprite2D_GetCustomMaterialAttr (Urho3D::StaticSprite2D *_target)
  24122. {
  24123. return _target->GetCustomMaterialAttr ();
  24124. }
  24125. DllExport int
  24126. AnimatedSprite2D_GetType (Urho3D::AnimatedSprite2D *_target)
  24127. {
  24128. return (_target->GetType ()).Value ();
  24129. }
  24130. DllExport const char *
  24131. AnimatedSprite2D_GetTypeName (Urho3D::AnimatedSprite2D *_target)
  24132. {
  24133. return stringdup((_target->GetTypeName ()).CString ());
  24134. }
  24135. DllExport int
  24136. AnimatedSprite2D_GetTypeStatic ()
  24137. {
  24138. return (AnimatedSprite2D::GetTypeStatic ()).Value ();
  24139. }
  24140. DllExport const char *
  24141. AnimatedSprite2D_GetTypeNameStatic ()
  24142. {
  24143. return stringdup((AnimatedSprite2D::GetTypeNameStatic ()).CString ());
  24144. }
  24145. DllExport void *
  24146. AnimatedSprite2D_AnimatedSprite2D (Urho3D::Context * context)
  24147. {
  24148. return WeakPtr<AnimatedSprite2D>(new AnimatedSprite2D(context));
  24149. }
  24150. DllExport void
  24151. AnimatedSprite2D_RegisterObject (Urho3D::Context * context)
  24152. {
  24153. AnimatedSprite2D::RegisterObject (context);
  24154. }
  24155. DllExport void
  24156. AnimatedSprite2D_OnSetEnabled (Urho3D::AnimatedSprite2D *_target)
  24157. {
  24158. _target->OnSetEnabled ();
  24159. }
  24160. DllExport void
  24161. AnimatedSprite2D_SetAnimationSet (Urho3D::AnimatedSprite2D *_target, Urho3D::AnimationSet2D * animationSet)
  24162. {
  24163. _target->SetAnimationSet (animationSet);
  24164. }
  24165. DllExport void
  24166. AnimatedSprite2D_SetEntity (Urho3D::AnimatedSprite2D *_target, const char * name)
  24167. {
  24168. _target->SetEntity (Urho3D::String(name));
  24169. }
  24170. DllExport void
  24171. AnimatedSprite2D_SetAnimation (Urho3D::AnimatedSprite2D *_target, const char * name, enum LoopMode2D loopMode)
  24172. {
  24173. _target->SetAnimation (Urho3D::String(name), loopMode);
  24174. }
  24175. DllExport void
  24176. AnimatedSprite2D_SetLoopMode (Urho3D::AnimatedSprite2D *_target, enum LoopMode2D loopMode)
  24177. {
  24178. _target->SetLoopMode (loopMode);
  24179. }
  24180. DllExport void
  24181. AnimatedSprite2D_SetSpeed (Urho3D::AnimatedSprite2D *_target, float speed)
  24182. {
  24183. _target->SetSpeed (speed);
  24184. }
  24185. DllExport Urho3D::AnimationSet2D *
  24186. AnimatedSprite2D_GetAnimationSet (Urho3D::AnimatedSprite2D *_target)
  24187. {
  24188. return _target->GetAnimationSet ();
  24189. }
  24190. DllExport const char *
  24191. AnimatedSprite2D_GetEntity (Urho3D::AnimatedSprite2D *_target)
  24192. {
  24193. return stringdup((_target->GetEntity ()).CString ());
  24194. }
  24195. DllExport const char *
  24196. AnimatedSprite2D_GetAnimation (Urho3D::AnimatedSprite2D *_target)
  24197. {
  24198. return stringdup((_target->GetAnimation ()).CString ());
  24199. }
  24200. DllExport enum LoopMode2D
  24201. AnimatedSprite2D_GetLoopMode (Urho3D::AnimatedSprite2D *_target)
  24202. {
  24203. return _target->GetLoopMode ();
  24204. }
  24205. DllExport float
  24206. AnimatedSprite2D_GetSpeed (Urho3D::AnimatedSprite2D *_target)
  24207. {
  24208. return _target->GetSpeed ();
  24209. }
  24210. DllExport Urho3D::ResourceRef
  24211. AnimatedSprite2D_GetAnimationSetAttr (Urho3D::AnimatedSprite2D *_target)
  24212. {
  24213. return _target->GetAnimationSetAttr ();
  24214. }
  24215. DllExport void
  24216. AnimatedSprite2D_SetAnimationAttr (Urho3D::AnimatedSprite2D *_target, const char * name)
  24217. {
  24218. _target->SetAnimationAttr (Urho3D::String(name));
  24219. }
  24220. DllExport int
  24221. AnimationSet2D_GetType (Urho3D::AnimationSet2D *_target)
  24222. {
  24223. return (_target->GetType ()).Value ();
  24224. }
  24225. DllExport const char *
  24226. AnimationSet2D_GetTypeName (Urho3D::AnimationSet2D *_target)
  24227. {
  24228. return stringdup((_target->GetTypeName ()).CString ());
  24229. }
  24230. DllExport int
  24231. AnimationSet2D_GetTypeStatic ()
  24232. {
  24233. return (AnimationSet2D::GetTypeStatic ()).Value ();
  24234. }
  24235. DllExport const char *
  24236. AnimationSet2D_GetTypeNameStatic ()
  24237. {
  24238. return stringdup((AnimationSet2D::GetTypeNameStatic ()).CString ());
  24239. }
  24240. DllExport void *
  24241. AnimationSet2D_AnimationSet2D (Urho3D::Context * context)
  24242. {
  24243. return WeakPtr<AnimationSet2D>(new AnimationSet2D(context));
  24244. }
  24245. DllExport void
  24246. AnimationSet2D_RegisterObject (Urho3D::Context * context)
  24247. {
  24248. AnimationSet2D::RegisterObject (context);
  24249. }
  24250. DllExport int
  24251. AnimationSet2D_BeginLoad_File (Urho3D::AnimationSet2D *_target, File * source)
  24252. {
  24253. return _target->BeginLoad (*source);
  24254. }
  24255. DllExport int
  24256. AnimationSet2D_BeginLoad_MemoryBuffer (Urho3D::AnimationSet2D *_target, MemoryBuffer * source)
  24257. {
  24258. return _target->BeginLoad (*source);
  24259. }
  24260. DllExport int
  24261. AnimationSet2D_EndLoad (Urho3D::AnimationSet2D *_target)
  24262. {
  24263. return _target->EndLoad ();
  24264. }
  24265. DllExport unsigned int
  24266. AnimationSet2D_GetNumAnimations (Urho3D::AnimationSet2D *_target)
  24267. {
  24268. return _target->GetNumAnimations ();
  24269. }
  24270. DllExport const char *
  24271. AnimationSet2D_GetAnimation (Urho3D::AnimationSet2D *_target, unsigned int index)
  24272. {
  24273. return stringdup((_target->GetAnimation (index)).CString ());
  24274. }
  24275. DllExport int
  24276. AnimationSet2D_HasAnimation (Urho3D::AnimationSet2D *_target, const char * animation)
  24277. {
  24278. return _target->HasAnimation (Urho3D::String(animation));
  24279. }
  24280. DllExport Urho3D::Sprite2D *
  24281. AnimationSet2D_GetSprite (Urho3D::AnimationSet2D *_target)
  24282. {
  24283. return _target->GetSprite ();
  24284. }
  24285. DllExport Urho3D::Sprite2D *
  24286. AnimationSet2D_GetSpriterFileSprite (Urho3D::AnimationSet2D *_target, int folderId, int fileId)
  24287. {
  24288. return _target->GetSpriterFileSprite (folderId, fileId);
  24289. }
  24290. DllExport int
  24291. CollisionShape2D_GetType (Urho3D::CollisionShape2D *_target)
  24292. {
  24293. return (_target->GetType ()).Value ();
  24294. }
  24295. DllExport const char *
  24296. CollisionShape2D_GetTypeName (Urho3D::CollisionShape2D *_target)
  24297. {
  24298. return stringdup((_target->GetTypeName ()).CString ());
  24299. }
  24300. DllExport int
  24301. CollisionShape2D_GetTypeStatic ()
  24302. {
  24303. return (CollisionShape2D::GetTypeStatic ()).Value ();
  24304. }
  24305. DllExport const char *
  24306. CollisionShape2D_GetTypeNameStatic ()
  24307. {
  24308. return stringdup((CollisionShape2D::GetTypeNameStatic ()).CString ());
  24309. }
  24310. DllExport void
  24311. CollisionShape2D_RegisterObject (Urho3D::Context * context)
  24312. {
  24313. CollisionShape2D::RegisterObject (context);
  24314. }
  24315. DllExport void
  24316. CollisionShape2D_OnSetEnabled (Urho3D::CollisionShape2D *_target)
  24317. {
  24318. _target->OnSetEnabled ();
  24319. }
  24320. DllExport void
  24321. CollisionShape2D_SetTrigger (Urho3D::CollisionShape2D *_target, bool trigger)
  24322. {
  24323. _target->SetTrigger (trigger);
  24324. }
  24325. DllExport void
  24326. CollisionShape2D_SetCategoryBits (Urho3D::CollisionShape2D *_target, int categoryBits)
  24327. {
  24328. _target->SetCategoryBits (categoryBits);
  24329. }
  24330. DllExport void
  24331. CollisionShape2D_SetMaskBits (Urho3D::CollisionShape2D *_target, int maskBits)
  24332. {
  24333. _target->SetMaskBits (maskBits);
  24334. }
  24335. DllExport void
  24336. CollisionShape2D_SetGroupIndex (Urho3D::CollisionShape2D *_target, int groupIndex)
  24337. {
  24338. _target->SetGroupIndex (groupIndex);
  24339. }
  24340. DllExport void
  24341. CollisionShape2D_SetDensity (Urho3D::CollisionShape2D *_target, float density)
  24342. {
  24343. _target->SetDensity (density);
  24344. }
  24345. DllExport void
  24346. CollisionShape2D_SetFriction (Urho3D::CollisionShape2D *_target, float friction)
  24347. {
  24348. _target->SetFriction (friction);
  24349. }
  24350. DllExport void
  24351. CollisionShape2D_SetRestitution (Urho3D::CollisionShape2D *_target, float restitution)
  24352. {
  24353. _target->SetRestitution (restitution);
  24354. }
  24355. DllExport void
  24356. CollisionShape2D_CreateFixture (Urho3D::CollisionShape2D *_target)
  24357. {
  24358. _target->CreateFixture ();
  24359. }
  24360. DllExport void
  24361. CollisionShape2D_ReleaseFixture (Urho3D::CollisionShape2D *_target)
  24362. {
  24363. _target->ReleaseFixture ();
  24364. }
  24365. DllExport int
  24366. CollisionShape2D_IsTrigger (Urho3D::CollisionShape2D *_target)
  24367. {
  24368. return _target->IsTrigger ();
  24369. }
  24370. DllExport int
  24371. CollisionShape2D_GetCategoryBits (Urho3D::CollisionShape2D *_target)
  24372. {
  24373. return _target->GetCategoryBits ();
  24374. }
  24375. DllExport int
  24376. CollisionShape2D_GetMaskBits (Urho3D::CollisionShape2D *_target)
  24377. {
  24378. return _target->GetMaskBits ();
  24379. }
  24380. DllExport int
  24381. CollisionShape2D_GetGroupIndex (Urho3D::CollisionShape2D *_target)
  24382. {
  24383. return _target->GetGroupIndex ();
  24384. }
  24385. DllExport float
  24386. CollisionShape2D_GetDensity (Urho3D::CollisionShape2D *_target)
  24387. {
  24388. return _target->GetDensity ();
  24389. }
  24390. DllExport float
  24391. CollisionShape2D_GetFriction (Urho3D::CollisionShape2D *_target)
  24392. {
  24393. return _target->GetFriction ();
  24394. }
  24395. DllExport float
  24396. CollisionShape2D_GetRestitution (Urho3D::CollisionShape2D *_target)
  24397. {
  24398. return _target->GetRestitution ();
  24399. }
  24400. DllExport float
  24401. CollisionShape2D_GetMass (Urho3D::CollisionShape2D *_target)
  24402. {
  24403. return _target->GetMass ();
  24404. }
  24405. DllExport float
  24406. CollisionShape2D_GetInertia (Urho3D::CollisionShape2D *_target)
  24407. {
  24408. return _target->GetInertia ();
  24409. }
  24410. DllExport Interop::Vector2
  24411. CollisionShape2D_GetMassCenter (Urho3D::CollisionShape2D *_target)
  24412. {
  24413. return *((Interop::Vector2 *) &(_target->GetMassCenter ()));
  24414. }
  24415. DllExport int
  24416. CollisionBox2D_GetType (Urho3D::CollisionBox2D *_target)
  24417. {
  24418. return (_target->GetType ()).Value ();
  24419. }
  24420. DllExport const char *
  24421. CollisionBox2D_GetTypeName (Urho3D::CollisionBox2D *_target)
  24422. {
  24423. return stringdup((_target->GetTypeName ()).CString ());
  24424. }
  24425. DllExport int
  24426. CollisionBox2D_GetTypeStatic ()
  24427. {
  24428. return (CollisionBox2D::GetTypeStatic ()).Value ();
  24429. }
  24430. DllExport const char *
  24431. CollisionBox2D_GetTypeNameStatic ()
  24432. {
  24433. return stringdup((CollisionBox2D::GetTypeNameStatic ()).CString ());
  24434. }
  24435. DllExport void *
  24436. CollisionBox2D_CollisionBox2D (Urho3D::Context * context)
  24437. {
  24438. return WeakPtr<CollisionBox2D>(new CollisionBox2D(context));
  24439. }
  24440. DllExport void
  24441. CollisionBox2D_RegisterObject (Urho3D::Context * context)
  24442. {
  24443. CollisionBox2D::RegisterObject (context);
  24444. }
  24445. DllExport void
  24446. CollisionBox2D_SetSize (Urho3D::CollisionBox2D *_target, const class Urho3D::Vector2 & size)
  24447. {
  24448. _target->SetSize (size);
  24449. }
  24450. DllExport void
  24451. CollisionBox2D_SetSize0 (Urho3D::CollisionBox2D *_target, float width, float height)
  24452. {
  24453. _target->SetSize (width, height);
  24454. }
  24455. DllExport void
  24456. CollisionBox2D_SetCenter (Urho3D::CollisionBox2D *_target, const class Urho3D::Vector2 & center)
  24457. {
  24458. _target->SetCenter (center);
  24459. }
  24460. DllExport void
  24461. CollisionBox2D_SetCenter1 (Urho3D::CollisionBox2D *_target, float x, float y)
  24462. {
  24463. _target->SetCenter (x, y);
  24464. }
  24465. DllExport void
  24466. CollisionBox2D_SetAngle (Urho3D::CollisionBox2D *_target, float angle)
  24467. {
  24468. _target->SetAngle (angle);
  24469. }
  24470. DllExport Interop::Vector2
  24471. CollisionBox2D_GetSize (Urho3D::CollisionBox2D *_target)
  24472. {
  24473. return *((Interop::Vector2 *) &(_target->GetSize ()));
  24474. }
  24475. DllExport Interop::Vector2
  24476. CollisionBox2D_GetCenter (Urho3D::CollisionBox2D *_target)
  24477. {
  24478. return *((Interop::Vector2 *) &(_target->GetCenter ()));
  24479. }
  24480. DllExport float
  24481. CollisionBox2D_GetAngle (Urho3D::CollisionBox2D *_target)
  24482. {
  24483. return _target->GetAngle ();
  24484. }
  24485. DllExport int
  24486. CollisionChain2D_GetType (Urho3D::CollisionChain2D *_target)
  24487. {
  24488. return (_target->GetType ()).Value ();
  24489. }
  24490. DllExport const char *
  24491. CollisionChain2D_GetTypeName (Urho3D::CollisionChain2D *_target)
  24492. {
  24493. return stringdup((_target->GetTypeName ()).CString ());
  24494. }
  24495. DllExport int
  24496. CollisionChain2D_GetTypeStatic ()
  24497. {
  24498. return (CollisionChain2D::GetTypeStatic ()).Value ();
  24499. }
  24500. DllExport const char *
  24501. CollisionChain2D_GetTypeNameStatic ()
  24502. {
  24503. return stringdup((CollisionChain2D::GetTypeNameStatic ()).CString ());
  24504. }
  24505. DllExport void *
  24506. CollisionChain2D_CollisionChain2D (Urho3D::Context * context)
  24507. {
  24508. return WeakPtr<CollisionChain2D>(new CollisionChain2D(context));
  24509. }
  24510. DllExport void
  24511. CollisionChain2D_RegisterObject (Urho3D::Context * context)
  24512. {
  24513. CollisionChain2D::RegisterObject (context);
  24514. }
  24515. DllExport void
  24516. CollisionChain2D_SetLoop (Urho3D::CollisionChain2D *_target, bool loop)
  24517. {
  24518. _target->SetLoop (loop);
  24519. }
  24520. DllExport void
  24521. CollisionChain2D_SetVertexCount (Urho3D::CollisionChain2D *_target, unsigned int count)
  24522. {
  24523. _target->SetVertexCount (count);
  24524. }
  24525. DllExport void
  24526. CollisionChain2D_SetVertex (Urho3D::CollisionChain2D *_target, unsigned int index, const class Urho3D::Vector2 & vertex)
  24527. {
  24528. _target->SetVertex (index, vertex);
  24529. }
  24530. DllExport int
  24531. CollisionChain2D_GetLoop (Urho3D::CollisionChain2D *_target)
  24532. {
  24533. return _target->GetLoop ();
  24534. }
  24535. DllExport unsigned int
  24536. CollisionChain2D_GetVertexCount (Urho3D::CollisionChain2D *_target)
  24537. {
  24538. return _target->GetVertexCount ();
  24539. }
  24540. DllExport Interop::Vector2
  24541. CollisionChain2D_GetVertex (Urho3D::CollisionChain2D *_target, unsigned int index)
  24542. {
  24543. return *((Interop::Vector2 *) &(_target->GetVertex (index)));
  24544. }
  24545. DllExport int
  24546. CollisionCircle2D_GetType (Urho3D::CollisionCircle2D *_target)
  24547. {
  24548. return (_target->GetType ()).Value ();
  24549. }
  24550. DllExport const char *
  24551. CollisionCircle2D_GetTypeName (Urho3D::CollisionCircle2D *_target)
  24552. {
  24553. return stringdup((_target->GetTypeName ()).CString ());
  24554. }
  24555. DllExport int
  24556. CollisionCircle2D_GetTypeStatic ()
  24557. {
  24558. return (CollisionCircle2D::GetTypeStatic ()).Value ();
  24559. }
  24560. DllExport const char *
  24561. CollisionCircle2D_GetTypeNameStatic ()
  24562. {
  24563. return stringdup((CollisionCircle2D::GetTypeNameStatic ()).CString ());
  24564. }
  24565. DllExport void *
  24566. CollisionCircle2D_CollisionCircle2D (Urho3D::Context * context)
  24567. {
  24568. return WeakPtr<CollisionCircle2D>(new CollisionCircle2D(context));
  24569. }
  24570. DllExport void
  24571. CollisionCircle2D_RegisterObject (Urho3D::Context * context)
  24572. {
  24573. CollisionCircle2D::RegisterObject (context);
  24574. }
  24575. DllExport void
  24576. CollisionCircle2D_SetRadius (Urho3D::CollisionCircle2D *_target, float radius)
  24577. {
  24578. _target->SetRadius (radius);
  24579. }
  24580. DllExport void
  24581. CollisionCircle2D_SetCenter (Urho3D::CollisionCircle2D *_target, const class Urho3D::Vector2 & center)
  24582. {
  24583. _target->SetCenter (center);
  24584. }
  24585. DllExport void
  24586. CollisionCircle2D_SetCenter0 (Urho3D::CollisionCircle2D *_target, float x, float y)
  24587. {
  24588. _target->SetCenter (x, y);
  24589. }
  24590. DllExport float
  24591. CollisionCircle2D_GetRadius (Urho3D::CollisionCircle2D *_target)
  24592. {
  24593. return _target->GetRadius ();
  24594. }
  24595. DllExport Interop::Vector2
  24596. CollisionCircle2D_GetCenter (Urho3D::CollisionCircle2D *_target)
  24597. {
  24598. return *((Interop::Vector2 *) &(_target->GetCenter ()));
  24599. }
  24600. DllExport int
  24601. CollisionEdge2D_GetType (Urho3D::CollisionEdge2D *_target)
  24602. {
  24603. return (_target->GetType ()).Value ();
  24604. }
  24605. DllExport const char *
  24606. CollisionEdge2D_GetTypeName (Urho3D::CollisionEdge2D *_target)
  24607. {
  24608. return stringdup((_target->GetTypeName ()).CString ());
  24609. }
  24610. DllExport int
  24611. CollisionEdge2D_GetTypeStatic ()
  24612. {
  24613. return (CollisionEdge2D::GetTypeStatic ()).Value ();
  24614. }
  24615. DllExport const char *
  24616. CollisionEdge2D_GetTypeNameStatic ()
  24617. {
  24618. return stringdup((CollisionEdge2D::GetTypeNameStatic ()).CString ());
  24619. }
  24620. DllExport void *
  24621. CollisionEdge2D_CollisionEdge2D (Urho3D::Context * context)
  24622. {
  24623. return WeakPtr<CollisionEdge2D>(new CollisionEdge2D(context));
  24624. }
  24625. DllExport void
  24626. CollisionEdge2D_RegisterObject (Urho3D::Context * context)
  24627. {
  24628. CollisionEdge2D::RegisterObject (context);
  24629. }
  24630. DllExport void
  24631. CollisionEdge2D_SetVertex1 (Urho3D::CollisionEdge2D *_target, const class Urho3D::Vector2 & vertex)
  24632. {
  24633. _target->SetVertex1 (vertex);
  24634. }
  24635. DllExport void
  24636. CollisionEdge2D_SetVertex2 (Urho3D::CollisionEdge2D *_target, const class Urho3D::Vector2 & vertex)
  24637. {
  24638. _target->SetVertex2 (vertex);
  24639. }
  24640. DllExport void
  24641. CollisionEdge2D_SetVertices (Urho3D::CollisionEdge2D *_target, const class Urho3D::Vector2 & vertex1, const class Urho3D::Vector2 & vertex2)
  24642. {
  24643. _target->SetVertices (vertex1, vertex2);
  24644. }
  24645. DllExport Interop::Vector2
  24646. CollisionEdge2D_GetVertex1 (Urho3D::CollisionEdge2D *_target)
  24647. {
  24648. return *((Interop::Vector2 *) &(_target->GetVertex1 ()));
  24649. }
  24650. DllExport Interop::Vector2
  24651. CollisionEdge2D_GetVertex2 (Urho3D::CollisionEdge2D *_target)
  24652. {
  24653. return *((Interop::Vector2 *) &(_target->GetVertex2 ()));
  24654. }
  24655. DllExport int
  24656. CollisionPolygon2D_GetType (Urho3D::CollisionPolygon2D *_target)
  24657. {
  24658. return (_target->GetType ()).Value ();
  24659. }
  24660. DllExport const char *
  24661. CollisionPolygon2D_GetTypeName (Urho3D::CollisionPolygon2D *_target)
  24662. {
  24663. return stringdup((_target->GetTypeName ()).CString ());
  24664. }
  24665. DllExport int
  24666. CollisionPolygon2D_GetTypeStatic ()
  24667. {
  24668. return (CollisionPolygon2D::GetTypeStatic ()).Value ();
  24669. }
  24670. DllExport const char *
  24671. CollisionPolygon2D_GetTypeNameStatic ()
  24672. {
  24673. return stringdup((CollisionPolygon2D::GetTypeNameStatic ()).CString ());
  24674. }
  24675. DllExport void *
  24676. CollisionPolygon2D_CollisionPolygon2D (Urho3D::Context * context)
  24677. {
  24678. return WeakPtr<CollisionPolygon2D>(new CollisionPolygon2D(context));
  24679. }
  24680. DllExport void
  24681. CollisionPolygon2D_RegisterObject (Urho3D::Context * context)
  24682. {
  24683. CollisionPolygon2D::RegisterObject (context);
  24684. }
  24685. DllExport void
  24686. CollisionPolygon2D_SetVertexCount (Urho3D::CollisionPolygon2D *_target, unsigned int count)
  24687. {
  24688. _target->SetVertexCount (count);
  24689. }
  24690. DllExport void
  24691. CollisionPolygon2D_SetVertex (Urho3D::CollisionPolygon2D *_target, unsigned int index, const class Urho3D::Vector2 & vertex)
  24692. {
  24693. _target->SetVertex (index, vertex);
  24694. }
  24695. DllExport unsigned int
  24696. CollisionPolygon2D_GetVertexCount (Urho3D::CollisionPolygon2D *_target)
  24697. {
  24698. return _target->GetVertexCount ();
  24699. }
  24700. DllExport Interop::Vector2
  24701. CollisionPolygon2D_GetVertex (Urho3D::CollisionPolygon2D *_target, unsigned int index)
  24702. {
  24703. return *((Interop::Vector2 *) &(_target->GetVertex (index)));
  24704. }
  24705. DllExport int
  24706. Constraint2D_GetType (Urho3D::Constraint2D *_target)
  24707. {
  24708. return (_target->GetType ()).Value ();
  24709. }
  24710. DllExport const char *
  24711. Constraint2D_GetTypeName (Urho3D::Constraint2D *_target)
  24712. {
  24713. return stringdup((_target->GetTypeName ()).CString ());
  24714. }
  24715. DllExport int
  24716. Constraint2D_GetTypeStatic ()
  24717. {
  24718. return (Constraint2D::GetTypeStatic ()).Value ();
  24719. }
  24720. DllExport const char *
  24721. Constraint2D_GetTypeNameStatic ()
  24722. {
  24723. return stringdup((Constraint2D::GetTypeNameStatic ()).CString ());
  24724. }
  24725. DllExport void *
  24726. Constraint2D_Constraint2D (Urho3D::Context * context)
  24727. {
  24728. return WeakPtr<Constraint2D>(new Constraint2D(context));
  24729. }
  24730. DllExport void
  24731. Constraint2D_RegisterObject (Urho3D::Context * context)
  24732. {
  24733. Constraint2D::RegisterObject (context);
  24734. }
  24735. DllExport void
  24736. Constraint2D_ApplyAttributes (Urho3D::Constraint2D *_target)
  24737. {
  24738. _target->ApplyAttributes ();
  24739. }
  24740. DllExport void
  24741. Constraint2D_OnSetEnabled (Urho3D::Constraint2D *_target)
  24742. {
  24743. _target->OnSetEnabled ();
  24744. }
  24745. DllExport void
  24746. Constraint2D_CreateJoint (Urho3D::Constraint2D *_target)
  24747. {
  24748. _target->CreateJoint ();
  24749. }
  24750. DllExport void
  24751. Constraint2D_ReleaseJoint (Urho3D::Constraint2D *_target)
  24752. {
  24753. _target->ReleaseJoint ();
  24754. }
  24755. DllExport void
  24756. Constraint2D_SetOtherBody (Urho3D::Constraint2D *_target, Urho3D::RigidBody2D * body)
  24757. {
  24758. _target->SetOtherBody (body);
  24759. }
  24760. DllExport void
  24761. Constraint2D_SetCollideConnected (Urho3D::Constraint2D *_target, bool collideConnected)
  24762. {
  24763. _target->SetCollideConnected (collideConnected);
  24764. }
  24765. DllExport void
  24766. Constraint2D_SetAttachedConstraint (Urho3D::Constraint2D *_target, Urho3D::Constraint2D * constraint)
  24767. {
  24768. _target->SetAttachedConstraint (constraint);
  24769. }
  24770. DllExport Urho3D::RigidBody2D *
  24771. Constraint2D_GetOwnerBody (Urho3D::Constraint2D *_target)
  24772. {
  24773. return _target->GetOwnerBody ();
  24774. }
  24775. DllExport Urho3D::RigidBody2D *
  24776. Constraint2D_GetOtherBody (Urho3D::Constraint2D *_target)
  24777. {
  24778. return _target->GetOtherBody ();
  24779. }
  24780. DllExport int
  24781. Constraint2D_GetCollideConnected (Urho3D::Constraint2D *_target)
  24782. {
  24783. return _target->GetCollideConnected ();
  24784. }
  24785. DllExport Urho3D::Constraint2D *
  24786. Constraint2D_GetAttachedConstraint (Urho3D::Constraint2D *_target)
  24787. {
  24788. return _target->GetAttachedConstraint ();
  24789. }
  24790. DllExport int
  24791. ConstraintDistance2D_GetType (Urho3D::ConstraintDistance2D *_target)
  24792. {
  24793. return (_target->GetType ()).Value ();
  24794. }
  24795. DllExport const char *
  24796. ConstraintDistance2D_GetTypeName (Urho3D::ConstraintDistance2D *_target)
  24797. {
  24798. return stringdup((_target->GetTypeName ()).CString ());
  24799. }
  24800. DllExport int
  24801. ConstraintDistance2D_GetTypeStatic ()
  24802. {
  24803. return (ConstraintDistance2D::GetTypeStatic ()).Value ();
  24804. }
  24805. DllExport const char *
  24806. ConstraintDistance2D_GetTypeNameStatic ()
  24807. {
  24808. return stringdup((ConstraintDistance2D::GetTypeNameStatic ()).CString ());
  24809. }
  24810. DllExport void *
  24811. ConstraintDistance2D_ConstraintDistance2D (Urho3D::Context * context)
  24812. {
  24813. return WeakPtr<ConstraintDistance2D>(new ConstraintDistance2D(context));
  24814. }
  24815. DllExport void
  24816. ConstraintDistance2D_RegisterObject (Urho3D::Context * context)
  24817. {
  24818. ConstraintDistance2D::RegisterObject (context);
  24819. }
  24820. DllExport void
  24821. ConstraintDistance2D_SetOwnerBodyAnchor (Urho3D::ConstraintDistance2D *_target, const class Urho3D::Vector2 & anchor)
  24822. {
  24823. _target->SetOwnerBodyAnchor (anchor);
  24824. }
  24825. DllExport void
  24826. ConstraintDistance2D_SetOtherBodyAnchor (Urho3D::ConstraintDistance2D *_target, const class Urho3D::Vector2 & anchor)
  24827. {
  24828. _target->SetOtherBodyAnchor (anchor);
  24829. }
  24830. DllExport void
  24831. ConstraintDistance2D_SetFrequencyHz (Urho3D::ConstraintDistance2D *_target, float frequencyHz)
  24832. {
  24833. _target->SetFrequencyHz (frequencyHz);
  24834. }
  24835. DllExport void
  24836. ConstraintDistance2D_SetDampingRatio (Urho3D::ConstraintDistance2D *_target, float dampingRatio)
  24837. {
  24838. _target->SetDampingRatio (dampingRatio);
  24839. }
  24840. DllExport void
  24841. ConstraintDistance2D_SetLength (Urho3D::ConstraintDistance2D *_target, float length)
  24842. {
  24843. _target->SetLength (length);
  24844. }
  24845. DllExport Interop::Vector2
  24846. ConstraintDistance2D_GetOwnerBodyAnchor (Urho3D::ConstraintDistance2D *_target)
  24847. {
  24848. return *((Interop::Vector2 *) &(_target->GetOwnerBodyAnchor ()));
  24849. }
  24850. DllExport Interop::Vector2
  24851. ConstraintDistance2D_GetOtherBodyAnchor (Urho3D::ConstraintDistance2D *_target)
  24852. {
  24853. return *((Interop::Vector2 *) &(_target->GetOtherBodyAnchor ()));
  24854. }
  24855. DllExport float
  24856. ConstraintDistance2D_GetFrequencyHz (Urho3D::ConstraintDistance2D *_target)
  24857. {
  24858. return _target->GetFrequencyHz ();
  24859. }
  24860. DllExport float
  24861. ConstraintDistance2D_GetDampingRatio (Urho3D::ConstraintDistance2D *_target)
  24862. {
  24863. return _target->GetDampingRatio ();
  24864. }
  24865. DllExport float
  24866. ConstraintDistance2D_GetLength (Urho3D::ConstraintDistance2D *_target)
  24867. {
  24868. return _target->GetLength ();
  24869. }
  24870. DllExport int
  24871. ConstraintFriction2D_GetType (Urho3D::ConstraintFriction2D *_target)
  24872. {
  24873. return (_target->GetType ()).Value ();
  24874. }
  24875. DllExport const char *
  24876. ConstraintFriction2D_GetTypeName (Urho3D::ConstraintFriction2D *_target)
  24877. {
  24878. return stringdup((_target->GetTypeName ()).CString ());
  24879. }
  24880. DllExport int
  24881. ConstraintFriction2D_GetTypeStatic ()
  24882. {
  24883. return (ConstraintFriction2D::GetTypeStatic ()).Value ();
  24884. }
  24885. DllExport const char *
  24886. ConstraintFriction2D_GetTypeNameStatic ()
  24887. {
  24888. return stringdup((ConstraintFriction2D::GetTypeNameStatic ()).CString ());
  24889. }
  24890. DllExport void *
  24891. ConstraintFriction2D_ConstraintFriction2D (Urho3D::Context * context)
  24892. {
  24893. return WeakPtr<ConstraintFriction2D>(new ConstraintFriction2D(context));
  24894. }
  24895. DllExport void
  24896. ConstraintFriction2D_RegisterObject (Urho3D::Context * context)
  24897. {
  24898. ConstraintFriction2D::RegisterObject (context);
  24899. }
  24900. DllExport void
  24901. ConstraintFriction2D_SetAnchor (Urho3D::ConstraintFriction2D *_target, const class Urho3D::Vector2 & anchor)
  24902. {
  24903. _target->SetAnchor (anchor);
  24904. }
  24905. DllExport void
  24906. ConstraintFriction2D_SetMaxForce (Urho3D::ConstraintFriction2D *_target, float maxForce)
  24907. {
  24908. _target->SetMaxForce (maxForce);
  24909. }
  24910. DllExport void
  24911. ConstraintFriction2D_SetMaxTorque (Urho3D::ConstraintFriction2D *_target, float maxTorque)
  24912. {
  24913. _target->SetMaxTorque (maxTorque);
  24914. }
  24915. DllExport Interop::Vector2
  24916. ConstraintFriction2D_GetAnchor (Urho3D::ConstraintFriction2D *_target)
  24917. {
  24918. return *((Interop::Vector2 *) &(_target->GetAnchor ()));
  24919. }
  24920. DllExport float
  24921. ConstraintFriction2D_GetMaxForce (Urho3D::ConstraintFriction2D *_target)
  24922. {
  24923. return _target->GetMaxForce ();
  24924. }
  24925. DllExport float
  24926. ConstraintFriction2D_GetMaxTorque (Urho3D::ConstraintFriction2D *_target)
  24927. {
  24928. return _target->GetMaxTorque ();
  24929. }
  24930. DllExport int
  24931. ConstraintGear2D_GetType (Urho3D::ConstraintGear2D *_target)
  24932. {
  24933. return (_target->GetType ()).Value ();
  24934. }
  24935. DllExport const char *
  24936. ConstraintGear2D_GetTypeName (Urho3D::ConstraintGear2D *_target)
  24937. {
  24938. return stringdup((_target->GetTypeName ()).CString ());
  24939. }
  24940. DllExport int
  24941. ConstraintGear2D_GetTypeStatic ()
  24942. {
  24943. return (ConstraintGear2D::GetTypeStatic ()).Value ();
  24944. }
  24945. DllExport const char *
  24946. ConstraintGear2D_GetTypeNameStatic ()
  24947. {
  24948. return stringdup((ConstraintGear2D::GetTypeNameStatic ()).CString ());
  24949. }
  24950. DllExport void *
  24951. ConstraintGear2D_ConstraintGear2D (Urho3D::Context * context)
  24952. {
  24953. return WeakPtr<ConstraintGear2D>(new ConstraintGear2D(context));
  24954. }
  24955. DllExport void
  24956. ConstraintGear2D_RegisterObject (Urho3D::Context * context)
  24957. {
  24958. ConstraintGear2D::RegisterObject (context);
  24959. }
  24960. DllExport void
  24961. ConstraintGear2D_SetOwnerConstraint (Urho3D::ConstraintGear2D *_target, Urho3D::Constraint2D * constraint)
  24962. {
  24963. _target->SetOwnerConstraint (constraint);
  24964. }
  24965. DllExport void
  24966. ConstraintGear2D_SetOtherConstraint (Urho3D::ConstraintGear2D *_target, Urho3D::Constraint2D * constraint)
  24967. {
  24968. _target->SetOtherConstraint (constraint);
  24969. }
  24970. DllExport void
  24971. ConstraintGear2D_SetRatio (Urho3D::ConstraintGear2D *_target, float ratio)
  24972. {
  24973. _target->SetRatio (ratio);
  24974. }
  24975. DllExport Urho3D::Constraint2D *
  24976. ConstraintGear2D_GetOwnerConstraint (Urho3D::ConstraintGear2D *_target)
  24977. {
  24978. return _target->GetOwnerConstraint ();
  24979. }
  24980. DllExport Urho3D::Constraint2D *
  24981. ConstraintGear2D_GetOtherConstraint (Urho3D::ConstraintGear2D *_target)
  24982. {
  24983. return _target->GetOtherConstraint ();
  24984. }
  24985. DllExport float
  24986. ConstraintGear2D_GetRatio (Urho3D::ConstraintGear2D *_target)
  24987. {
  24988. return _target->GetRatio ();
  24989. }
  24990. DllExport int
  24991. ConstraintMotor2D_GetType (Urho3D::ConstraintMotor2D *_target)
  24992. {
  24993. return (_target->GetType ()).Value ();
  24994. }
  24995. DllExport const char *
  24996. ConstraintMotor2D_GetTypeName (Urho3D::ConstraintMotor2D *_target)
  24997. {
  24998. return stringdup((_target->GetTypeName ()).CString ());
  24999. }
  25000. DllExport int
  25001. ConstraintMotor2D_GetTypeStatic ()
  25002. {
  25003. return (ConstraintMotor2D::GetTypeStatic ()).Value ();
  25004. }
  25005. DllExport const char *
  25006. ConstraintMotor2D_GetTypeNameStatic ()
  25007. {
  25008. return stringdup((ConstraintMotor2D::GetTypeNameStatic ()).CString ());
  25009. }
  25010. DllExport void *
  25011. ConstraintMotor2D_ConstraintMotor2D (Urho3D::Context * context)
  25012. {
  25013. return WeakPtr<ConstraintMotor2D>(new ConstraintMotor2D(context));
  25014. }
  25015. DllExport void
  25016. ConstraintMotor2D_RegisterObject (Urho3D::Context * context)
  25017. {
  25018. ConstraintMotor2D::RegisterObject (context);
  25019. }
  25020. DllExport void
  25021. ConstraintMotor2D_SetLinearOffset (Urho3D::ConstraintMotor2D *_target, const class Urho3D::Vector2 & linearOffset)
  25022. {
  25023. _target->SetLinearOffset (linearOffset);
  25024. }
  25025. DllExport void
  25026. ConstraintMotor2D_SetAngularOffset (Urho3D::ConstraintMotor2D *_target, float angularOffset)
  25027. {
  25028. _target->SetAngularOffset (angularOffset);
  25029. }
  25030. DllExport void
  25031. ConstraintMotor2D_SetMaxForce (Urho3D::ConstraintMotor2D *_target, float maxForce)
  25032. {
  25033. _target->SetMaxForce (maxForce);
  25034. }
  25035. DllExport void
  25036. ConstraintMotor2D_SetMaxTorque (Urho3D::ConstraintMotor2D *_target, float maxTorque)
  25037. {
  25038. _target->SetMaxTorque (maxTorque);
  25039. }
  25040. DllExport void
  25041. ConstraintMotor2D_SetCorrectionFactor (Urho3D::ConstraintMotor2D *_target, float correctionFactor)
  25042. {
  25043. _target->SetCorrectionFactor (correctionFactor);
  25044. }
  25045. DllExport Interop::Vector2
  25046. ConstraintMotor2D_GetLinearOffset (Urho3D::ConstraintMotor2D *_target)
  25047. {
  25048. return *((Interop::Vector2 *) &(_target->GetLinearOffset ()));
  25049. }
  25050. DllExport float
  25051. ConstraintMotor2D_GetAngularOffset (Urho3D::ConstraintMotor2D *_target)
  25052. {
  25053. return _target->GetAngularOffset ();
  25054. }
  25055. DllExport float
  25056. ConstraintMotor2D_GetMaxForce (Urho3D::ConstraintMotor2D *_target)
  25057. {
  25058. return _target->GetMaxForce ();
  25059. }
  25060. DllExport float
  25061. ConstraintMotor2D_GetMaxTorque (Urho3D::ConstraintMotor2D *_target)
  25062. {
  25063. return _target->GetMaxTorque ();
  25064. }
  25065. DllExport float
  25066. ConstraintMotor2D_GetCorrectionFactor (Urho3D::ConstraintMotor2D *_target)
  25067. {
  25068. return _target->GetCorrectionFactor ();
  25069. }
  25070. DllExport int
  25071. ConstraintMouse2D_GetType (Urho3D::ConstraintMouse2D *_target)
  25072. {
  25073. return (_target->GetType ()).Value ();
  25074. }
  25075. DllExport const char *
  25076. ConstraintMouse2D_GetTypeName (Urho3D::ConstraintMouse2D *_target)
  25077. {
  25078. return stringdup((_target->GetTypeName ()).CString ());
  25079. }
  25080. DllExport int
  25081. ConstraintMouse2D_GetTypeStatic ()
  25082. {
  25083. return (ConstraintMouse2D::GetTypeStatic ()).Value ();
  25084. }
  25085. DllExport const char *
  25086. ConstraintMouse2D_GetTypeNameStatic ()
  25087. {
  25088. return stringdup((ConstraintMouse2D::GetTypeNameStatic ()).CString ());
  25089. }
  25090. DllExport void *
  25091. ConstraintMouse2D_ConstraintMouse2D (Urho3D::Context * context)
  25092. {
  25093. return WeakPtr<ConstraintMouse2D>(new ConstraintMouse2D(context));
  25094. }
  25095. DllExport void
  25096. ConstraintMouse2D_RegisterObject (Urho3D::Context * context)
  25097. {
  25098. ConstraintMouse2D::RegisterObject (context);
  25099. }
  25100. DllExport void
  25101. ConstraintMouse2D_SetTarget (Urho3D::ConstraintMouse2D *_target, const class Urho3D::Vector2 & target)
  25102. {
  25103. _target->SetTarget (target);
  25104. }
  25105. DllExport void
  25106. ConstraintMouse2D_SetMaxForce (Urho3D::ConstraintMouse2D *_target, float maxForce)
  25107. {
  25108. _target->SetMaxForce (maxForce);
  25109. }
  25110. DllExport void
  25111. ConstraintMouse2D_SetFrequencyHz (Urho3D::ConstraintMouse2D *_target, float frequencyHz)
  25112. {
  25113. _target->SetFrequencyHz (frequencyHz);
  25114. }
  25115. DllExport void
  25116. ConstraintMouse2D_SetDampingRatio (Urho3D::ConstraintMouse2D *_target, float dampingRatio)
  25117. {
  25118. _target->SetDampingRatio (dampingRatio);
  25119. }
  25120. DllExport Interop::Vector2
  25121. ConstraintMouse2D_GetTarget (Urho3D::ConstraintMouse2D *_target)
  25122. {
  25123. return *((Interop::Vector2 *) &(_target->GetTarget ()));
  25124. }
  25125. DllExport float
  25126. ConstraintMouse2D_GetMaxForce (Urho3D::ConstraintMouse2D *_target)
  25127. {
  25128. return _target->GetMaxForce ();
  25129. }
  25130. DllExport float
  25131. ConstraintMouse2D_GetFrequencyHz (Urho3D::ConstraintMouse2D *_target)
  25132. {
  25133. return _target->GetFrequencyHz ();
  25134. }
  25135. DllExport float
  25136. ConstraintMouse2D_GetDampingRatio (Urho3D::ConstraintMouse2D *_target)
  25137. {
  25138. return _target->GetDampingRatio ();
  25139. }
  25140. DllExport int
  25141. ConstraintPrismatic2D_GetType (Urho3D::ConstraintPrismatic2D *_target)
  25142. {
  25143. return (_target->GetType ()).Value ();
  25144. }
  25145. DllExport const char *
  25146. ConstraintPrismatic2D_GetTypeName (Urho3D::ConstraintPrismatic2D *_target)
  25147. {
  25148. return stringdup((_target->GetTypeName ()).CString ());
  25149. }
  25150. DllExport int
  25151. ConstraintPrismatic2D_GetTypeStatic ()
  25152. {
  25153. return (ConstraintPrismatic2D::GetTypeStatic ()).Value ();
  25154. }
  25155. DllExport const char *
  25156. ConstraintPrismatic2D_GetTypeNameStatic ()
  25157. {
  25158. return stringdup((ConstraintPrismatic2D::GetTypeNameStatic ()).CString ());
  25159. }
  25160. DllExport void *
  25161. ConstraintPrismatic2D_ConstraintPrismatic2D (Urho3D::Context * context)
  25162. {
  25163. return WeakPtr<ConstraintPrismatic2D>(new ConstraintPrismatic2D(context));
  25164. }
  25165. DllExport void
  25166. ConstraintPrismatic2D_RegisterObject (Urho3D::Context * context)
  25167. {
  25168. ConstraintPrismatic2D::RegisterObject (context);
  25169. }
  25170. DllExport void
  25171. ConstraintPrismatic2D_SetAnchor (Urho3D::ConstraintPrismatic2D *_target, const class Urho3D::Vector2 & anchor)
  25172. {
  25173. _target->SetAnchor (anchor);
  25174. }
  25175. DllExport void
  25176. ConstraintPrismatic2D_SetAxis (Urho3D::ConstraintPrismatic2D *_target, const class Urho3D::Vector2 & axis)
  25177. {
  25178. _target->SetAxis (axis);
  25179. }
  25180. DllExport void
  25181. ConstraintPrismatic2D_SetEnableLimit (Urho3D::ConstraintPrismatic2D *_target, bool enableLimit)
  25182. {
  25183. _target->SetEnableLimit (enableLimit);
  25184. }
  25185. DllExport void
  25186. ConstraintPrismatic2D_SetLowerTranslation (Urho3D::ConstraintPrismatic2D *_target, float lowerTranslation)
  25187. {
  25188. _target->SetLowerTranslation (lowerTranslation);
  25189. }
  25190. DllExport void
  25191. ConstraintPrismatic2D_SetUpperTranslation (Urho3D::ConstraintPrismatic2D *_target, float upperTranslation)
  25192. {
  25193. _target->SetUpperTranslation (upperTranslation);
  25194. }
  25195. DllExport void
  25196. ConstraintPrismatic2D_SetEnableMotor (Urho3D::ConstraintPrismatic2D *_target, bool enableMotor)
  25197. {
  25198. _target->SetEnableMotor (enableMotor);
  25199. }
  25200. DllExport void
  25201. ConstraintPrismatic2D_SetMaxMotorForce (Urho3D::ConstraintPrismatic2D *_target, float maxMotorForce)
  25202. {
  25203. _target->SetMaxMotorForce (maxMotorForce);
  25204. }
  25205. DllExport void
  25206. ConstraintPrismatic2D_SetMotorSpeed (Urho3D::ConstraintPrismatic2D *_target, float motorSpeed)
  25207. {
  25208. _target->SetMotorSpeed (motorSpeed);
  25209. }
  25210. DllExport Interop::Vector2
  25211. ConstraintPrismatic2D_GetAnchor (Urho3D::ConstraintPrismatic2D *_target)
  25212. {
  25213. return *((Interop::Vector2 *) &(_target->GetAnchor ()));
  25214. }
  25215. DllExport Interop::Vector2
  25216. ConstraintPrismatic2D_GetAxis (Urho3D::ConstraintPrismatic2D *_target)
  25217. {
  25218. return *((Interop::Vector2 *) &(_target->GetAxis ()));
  25219. }
  25220. DllExport int
  25221. ConstraintPrismatic2D_GetEnableLimit (Urho3D::ConstraintPrismatic2D *_target)
  25222. {
  25223. return _target->GetEnableLimit ();
  25224. }
  25225. DllExport float
  25226. ConstraintPrismatic2D_GetLowerTranslation (Urho3D::ConstraintPrismatic2D *_target)
  25227. {
  25228. return _target->GetLowerTranslation ();
  25229. }
  25230. DllExport float
  25231. ConstraintPrismatic2D_GetUpperTranslation (Urho3D::ConstraintPrismatic2D *_target)
  25232. {
  25233. return _target->GetUpperTranslation ();
  25234. }
  25235. DllExport int
  25236. ConstraintPrismatic2D_GetEnableMotor (Urho3D::ConstraintPrismatic2D *_target)
  25237. {
  25238. return _target->GetEnableMotor ();
  25239. }
  25240. DllExport float
  25241. ConstraintPrismatic2D_GetMaxMotorForce (Urho3D::ConstraintPrismatic2D *_target)
  25242. {
  25243. return _target->GetMaxMotorForce ();
  25244. }
  25245. DllExport float
  25246. ConstraintPrismatic2D_GetMotorSpeed (Urho3D::ConstraintPrismatic2D *_target)
  25247. {
  25248. return _target->GetMotorSpeed ();
  25249. }
  25250. DllExport int
  25251. ConstraintPulley2D_GetType (Urho3D::ConstraintPulley2D *_target)
  25252. {
  25253. return (_target->GetType ()).Value ();
  25254. }
  25255. DllExport const char *
  25256. ConstraintPulley2D_GetTypeName (Urho3D::ConstraintPulley2D *_target)
  25257. {
  25258. return stringdup((_target->GetTypeName ()).CString ());
  25259. }
  25260. DllExport int
  25261. ConstraintPulley2D_GetTypeStatic ()
  25262. {
  25263. return (ConstraintPulley2D::GetTypeStatic ()).Value ();
  25264. }
  25265. DllExport const char *
  25266. ConstraintPulley2D_GetTypeNameStatic ()
  25267. {
  25268. return stringdup((ConstraintPulley2D::GetTypeNameStatic ()).CString ());
  25269. }
  25270. DllExport void *
  25271. ConstraintPulley2D_ConstraintPulley2D (Urho3D::Context * context)
  25272. {
  25273. return WeakPtr<ConstraintPulley2D>(new ConstraintPulley2D(context));
  25274. }
  25275. DllExport void
  25276. ConstraintPulley2D_RegisterObject (Urho3D::Context * context)
  25277. {
  25278. ConstraintPulley2D::RegisterObject (context);
  25279. }
  25280. DllExport void
  25281. ConstraintPulley2D_SetOwnerBodyGroundAnchor (Urho3D::ConstraintPulley2D *_target, const class Urho3D::Vector2 & groundAnchor)
  25282. {
  25283. _target->SetOwnerBodyGroundAnchor (groundAnchor);
  25284. }
  25285. DllExport void
  25286. ConstraintPulley2D_SetOtherBodyGroundAnchor (Urho3D::ConstraintPulley2D *_target, const class Urho3D::Vector2 & groundAnchor)
  25287. {
  25288. _target->SetOtherBodyGroundAnchor (groundAnchor);
  25289. }
  25290. DllExport void
  25291. ConstraintPulley2D_SetOwnerBodyAnchor (Urho3D::ConstraintPulley2D *_target, const class Urho3D::Vector2 & anchor)
  25292. {
  25293. _target->SetOwnerBodyAnchor (anchor);
  25294. }
  25295. DllExport void
  25296. ConstraintPulley2D_SetOtherBodyAnchor (Urho3D::ConstraintPulley2D *_target, const class Urho3D::Vector2 & anchor)
  25297. {
  25298. _target->SetOtherBodyAnchor (anchor);
  25299. }
  25300. DllExport void
  25301. ConstraintPulley2D_SetRatio (Urho3D::ConstraintPulley2D *_target, float ratio)
  25302. {
  25303. _target->SetRatio (ratio);
  25304. }
  25305. DllExport Interop::Vector2
  25306. ConstraintPulley2D_GetOwnerBodyGroundAnchor (Urho3D::ConstraintPulley2D *_target)
  25307. {
  25308. return *((Interop::Vector2 *) &(_target->GetOwnerBodyGroundAnchor ()));
  25309. }
  25310. DllExport Interop::Vector2
  25311. ConstraintPulley2D_GetOtherBodyGroundAnchor (Urho3D::ConstraintPulley2D *_target)
  25312. {
  25313. return *((Interop::Vector2 *) &(_target->GetOtherBodyGroundAnchor ()));
  25314. }
  25315. DllExport Interop::Vector2
  25316. ConstraintPulley2D_GetOwnerBodyAnchor (Urho3D::ConstraintPulley2D *_target)
  25317. {
  25318. return *((Interop::Vector2 *) &(_target->GetOwnerBodyAnchor ()));
  25319. }
  25320. DllExport Interop::Vector2
  25321. ConstraintPulley2D_GetOtherBodyAnchor (Urho3D::ConstraintPulley2D *_target)
  25322. {
  25323. return *((Interop::Vector2 *) &(_target->GetOtherBodyAnchor ()));
  25324. }
  25325. DllExport float
  25326. ConstraintPulley2D_GetRatio (Urho3D::ConstraintPulley2D *_target)
  25327. {
  25328. return _target->GetRatio ();
  25329. }
  25330. DllExport int
  25331. ConstraintRevolute2D_GetType (Urho3D::ConstraintRevolute2D *_target)
  25332. {
  25333. return (_target->GetType ()).Value ();
  25334. }
  25335. DllExport const char *
  25336. ConstraintRevolute2D_GetTypeName (Urho3D::ConstraintRevolute2D *_target)
  25337. {
  25338. return stringdup((_target->GetTypeName ()).CString ());
  25339. }
  25340. DllExport int
  25341. ConstraintRevolute2D_GetTypeStatic ()
  25342. {
  25343. return (ConstraintRevolute2D::GetTypeStatic ()).Value ();
  25344. }
  25345. DllExport const char *
  25346. ConstraintRevolute2D_GetTypeNameStatic ()
  25347. {
  25348. return stringdup((ConstraintRevolute2D::GetTypeNameStatic ()).CString ());
  25349. }
  25350. DllExport void *
  25351. ConstraintRevolute2D_ConstraintRevolute2D (Urho3D::Context * context)
  25352. {
  25353. return WeakPtr<ConstraintRevolute2D>(new ConstraintRevolute2D(context));
  25354. }
  25355. DllExport void
  25356. ConstraintRevolute2D_RegisterObject (Urho3D::Context * context)
  25357. {
  25358. ConstraintRevolute2D::RegisterObject (context);
  25359. }
  25360. DllExport void
  25361. ConstraintRevolute2D_SetAnchor (Urho3D::ConstraintRevolute2D *_target, const class Urho3D::Vector2 & anchor)
  25362. {
  25363. _target->SetAnchor (anchor);
  25364. }
  25365. DllExport void
  25366. ConstraintRevolute2D_SetEnableLimit (Urho3D::ConstraintRevolute2D *_target, bool enableLimit)
  25367. {
  25368. _target->SetEnableLimit (enableLimit);
  25369. }
  25370. DllExport void
  25371. ConstraintRevolute2D_SetLowerAngle (Urho3D::ConstraintRevolute2D *_target, float lowerAngle)
  25372. {
  25373. _target->SetLowerAngle (lowerAngle);
  25374. }
  25375. DllExport void
  25376. ConstraintRevolute2D_SetUpperAngle (Urho3D::ConstraintRevolute2D *_target, float upperAngle)
  25377. {
  25378. _target->SetUpperAngle (upperAngle);
  25379. }
  25380. DllExport void
  25381. ConstraintRevolute2D_SetEnableMotor (Urho3D::ConstraintRevolute2D *_target, bool enableMotor)
  25382. {
  25383. _target->SetEnableMotor (enableMotor);
  25384. }
  25385. DllExport void
  25386. ConstraintRevolute2D_SetMotorSpeed (Urho3D::ConstraintRevolute2D *_target, float motorSpeed)
  25387. {
  25388. _target->SetMotorSpeed (motorSpeed);
  25389. }
  25390. DllExport void
  25391. ConstraintRevolute2D_SetMaxMotorTorque (Urho3D::ConstraintRevolute2D *_target, float maxMotorTorque)
  25392. {
  25393. _target->SetMaxMotorTorque (maxMotorTorque);
  25394. }
  25395. DllExport Interop::Vector2
  25396. ConstraintRevolute2D_GetAnchor (Urho3D::ConstraintRevolute2D *_target)
  25397. {
  25398. return *((Interop::Vector2 *) &(_target->GetAnchor ()));
  25399. }
  25400. DllExport int
  25401. ConstraintRevolute2D_GetEnableLimit (Urho3D::ConstraintRevolute2D *_target)
  25402. {
  25403. return _target->GetEnableLimit ();
  25404. }
  25405. DllExport float
  25406. ConstraintRevolute2D_GetLowerAngle (Urho3D::ConstraintRevolute2D *_target)
  25407. {
  25408. return _target->GetLowerAngle ();
  25409. }
  25410. DllExport float
  25411. ConstraintRevolute2D_GetUpperAngle (Urho3D::ConstraintRevolute2D *_target)
  25412. {
  25413. return _target->GetUpperAngle ();
  25414. }
  25415. DllExport int
  25416. ConstraintRevolute2D_GetEnableMotor (Urho3D::ConstraintRevolute2D *_target)
  25417. {
  25418. return _target->GetEnableMotor ();
  25419. }
  25420. DllExport float
  25421. ConstraintRevolute2D_GetMotorSpeed (Urho3D::ConstraintRevolute2D *_target)
  25422. {
  25423. return _target->GetMotorSpeed ();
  25424. }
  25425. DllExport float
  25426. ConstraintRevolute2D_GetMaxMotorTorque (Urho3D::ConstraintRevolute2D *_target)
  25427. {
  25428. return _target->GetMaxMotorTorque ();
  25429. }
  25430. DllExport int
  25431. ConstraintRope2D_GetType (Urho3D::ConstraintRope2D *_target)
  25432. {
  25433. return (_target->GetType ()).Value ();
  25434. }
  25435. DllExport const char *
  25436. ConstraintRope2D_GetTypeName (Urho3D::ConstraintRope2D *_target)
  25437. {
  25438. return stringdup((_target->GetTypeName ()).CString ());
  25439. }
  25440. DllExport int
  25441. ConstraintRope2D_GetTypeStatic ()
  25442. {
  25443. return (ConstraintRope2D::GetTypeStatic ()).Value ();
  25444. }
  25445. DllExport const char *
  25446. ConstraintRope2D_GetTypeNameStatic ()
  25447. {
  25448. return stringdup((ConstraintRope2D::GetTypeNameStatic ()).CString ());
  25449. }
  25450. DllExport void *
  25451. ConstraintRope2D_ConstraintRope2D (Urho3D::Context * context)
  25452. {
  25453. return WeakPtr<ConstraintRope2D>(new ConstraintRope2D(context));
  25454. }
  25455. DllExport void
  25456. ConstraintRope2D_RegisterObject (Urho3D::Context * context)
  25457. {
  25458. ConstraintRope2D::RegisterObject (context);
  25459. }
  25460. DllExport void
  25461. ConstraintRope2D_SetOwnerBodyAnchor (Urho3D::ConstraintRope2D *_target, const class Urho3D::Vector2 & anchor)
  25462. {
  25463. _target->SetOwnerBodyAnchor (anchor);
  25464. }
  25465. DllExport void
  25466. ConstraintRope2D_SetOtherBodyAnchor (Urho3D::ConstraintRope2D *_target, const class Urho3D::Vector2 & anchor)
  25467. {
  25468. _target->SetOtherBodyAnchor (anchor);
  25469. }
  25470. DllExport void
  25471. ConstraintRope2D_SetMaxLength (Urho3D::ConstraintRope2D *_target, float maxLength)
  25472. {
  25473. _target->SetMaxLength (maxLength);
  25474. }
  25475. DllExport Interop::Vector2
  25476. ConstraintRope2D_GetOwnerBodyAnchor (Urho3D::ConstraintRope2D *_target)
  25477. {
  25478. return *((Interop::Vector2 *) &(_target->GetOwnerBodyAnchor ()));
  25479. }
  25480. DllExport Interop::Vector2
  25481. ConstraintRope2D_GetOtherBodyAnchor (Urho3D::ConstraintRope2D *_target)
  25482. {
  25483. return *((Interop::Vector2 *) &(_target->GetOtherBodyAnchor ()));
  25484. }
  25485. DllExport float
  25486. ConstraintRope2D_GetMaxLength (Urho3D::ConstraintRope2D *_target)
  25487. {
  25488. return _target->GetMaxLength ();
  25489. }
  25490. DllExport int
  25491. ConstraintWeld2D_GetType (Urho3D::ConstraintWeld2D *_target)
  25492. {
  25493. return (_target->GetType ()).Value ();
  25494. }
  25495. DllExport const char *
  25496. ConstraintWeld2D_GetTypeName (Urho3D::ConstraintWeld2D *_target)
  25497. {
  25498. return stringdup((_target->GetTypeName ()).CString ());
  25499. }
  25500. DllExport int
  25501. ConstraintWeld2D_GetTypeStatic ()
  25502. {
  25503. return (ConstraintWeld2D::GetTypeStatic ()).Value ();
  25504. }
  25505. DllExport const char *
  25506. ConstraintWeld2D_GetTypeNameStatic ()
  25507. {
  25508. return stringdup((ConstraintWeld2D::GetTypeNameStatic ()).CString ());
  25509. }
  25510. DllExport void *
  25511. ConstraintWeld2D_ConstraintWeld2D (Urho3D::Context * context)
  25512. {
  25513. return WeakPtr<ConstraintWeld2D>(new ConstraintWeld2D(context));
  25514. }
  25515. DllExport void
  25516. ConstraintWeld2D_RegisterObject (Urho3D::Context * context)
  25517. {
  25518. ConstraintWeld2D::RegisterObject (context);
  25519. }
  25520. DllExport void
  25521. ConstraintWeld2D_SetAnchor (Urho3D::ConstraintWeld2D *_target, const class Urho3D::Vector2 & anchor)
  25522. {
  25523. _target->SetAnchor (anchor);
  25524. }
  25525. DllExport void
  25526. ConstraintWeld2D_SetFrequencyHz (Urho3D::ConstraintWeld2D *_target, float frequencyHz)
  25527. {
  25528. _target->SetFrequencyHz (frequencyHz);
  25529. }
  25530. DllExport void
  25531. ConstraintWeld2D_SetDampingRatio (Urho3D::ConstraintWeld2D *_target, float dampingRatio)
  25532. {
  25533. _target->SetDampingRatio (dampingRatio);
  25534. }
  25535. DllExport Interop::Vector2
  25536. ConstraintWeld2D_GetAnchor (Urho3D::ConstraintWeld2D *_target)
  25537. {
  25538. return *((Interop::Vector2 *) &(_target->GetAnchor ()));
  25539. }
  25540. DllExport float
  25541. ConstraintWeld2D_GetFrequencyHz (Urho3D::ConstraintWeld2D *_target)
  25542. {
  25543. return _target->GetFrequencyHz ();
  25544. }
  25545. DllExport float
  25546. ConstraintWeld2D_GetDampingRatio (Urho3D::ConstraintWeld2D *_target)
  25547. {
  25548. return _target->GetDampingRatio ();
  25549. }
  25550. DllExport int
  25551. ConstraintWheel2D_GetType (Urho3D::ConstraintWheel2D *_target)
  25552. {
  25553. return (_target->GetType ()).Value ();
  25554. }
  25555. DllExport const char *
  25556. ConstraintWheel2D_GetTypeName (Urho3D::ConstraintWheel2D *_target)
  25557. {
  25558. return stringdup((_target->GetTypeName ()).CString ());
  25559. }
  25560. DllExport int
  25561. ConstraintWheel2D_GetTypeStatic ()
  25562. {
  25563. return (ConstraintWheel2D::GetTypeStatic ()).Value ();
  25564. }
  25565. DllExport const char *
  25566. ConstraintWheel2D_GetTypeNameStatic ()
  25567. {
  25568. return stringdup((ConstraintWheel2D::GetTypeNameStatic ()).CString ());
  25569. }
  25570. DllExport void *
  25571. ConstraintWheel2D_ConstraintWheel2D (Urho3D::Context * context)
  25572. {
  25573. return WeakPtr<ConstraintWheel2D>(new ConstraintWheel2D(context));
  25574. }
  25575. DllExport void
  25576. ConstraintWheel2D_RegisterObject (Urho3D::Context * context)
  25577. {
  25578. ConstraintWheel2D::RegisterObject (context);
  25579. }
  25580. DllExport void
  25581. ConstraintWheel2D_SetAnchor (Urho3D::ConstraintWheel2D *_target, const class Urho3D::Vector2 & anchor)
  25582. {
  25583. _target->SetAnchor (anchor);
  25584. }
  25585. DllExport void
  25586. ConstraintWheel2D_SetAxis (Urho3D::ConstraintWheel2D *_target, const class Urho3D::Vector2 & axis)
  25587. {
  25588. _target->SetAxis (axis);
  25589. }
  25590. DllExport void
  25591. ConstraintWheel2D_SetEnableMotor (Urho3D::ConstraintWheel2D *_target, bool enableMotor)
  25592. {
  25593. _target->SetEnableMotor (enableMotor);
  25594. }
  25595. DllExport void
  25596. ConstraintWheel2D_SetMaxMotorTorque (Urho3D::ConstraintWheel2D *_target, float maxMotorTorque)
  25597. {
  25598. _target->SetMaxMotorTorque (maxMotorTorque);
  25599. }
  25600. DllExport void
  25601. ConstraintWheel2D_SetMotorSpeed (Urho3D::ConstraintWheel2D *_target, float motorSpeed)
  25602. {
  25603. _target->SetMotorSpeed (motorSpeed);
  25604. }
  25605. DllExport void
  25606. ConstraintWheel2D_SetFrequencyHz (Urho3D::ConstraintWheel2D *_target, float frequencyHz)
  25607. {
  25608. _target->SetFrequencyHz (frequencyHz);
  25609. }
  25610. DllExport void
  25611. ConstraintWheel2D_SetDampingRatio (Urho3D::ConstraintWheel2D *_target, float dampingRatio)
  25612. {
  25613. _target->SetDampingRatio (dampingRatio);
  25614. }
  25615. DllExport Interop::Vector2
  25616. ConstraintWheel2D_GetAnchor (Urho3D::ConstraintWheel2D *_target)
  25617. {
  25618. return *((Interop::Vector2 *) &(_target->GetAnchor ()));
  25619. }
  25620. DllExport Interop::Vector2
  25621. ConstraintWheel2D_GetAxis (Urho3D::ConstraintWheel2D *_target)
  25622. {
  25623. return *((Interop::Vector2 *) &(_target->GetAxis ()));
  25624. }
  25625. DllExport int
  25626. ConstraintWheel2D_GetEnableMotor (Urho3D::ConstraintWheel2D *_target)
  25627. {
  25628. return _target->GetEnableMotor ();
  25629. }
  25630. DllExport float
  25631. ConstraintWheel2D_GetMaxMotorTorque (Urho3D::ConstraintWheel2D *_target)
  25632. {
  25633. return _target->GetMaxMotorTorque ();
  25634. }
  25635. DllExport float
  25636. ConstraintWheel2D_GetMotorSpeed (Urho3D::ConstraintWheel2D *_target)
  25637. {
  25638. return _target->GetMotorSpeed ();
  25639. }
  25640. DllExport float
  25641. ConstraintWheel2D_GetFrequencyHz (Urho3D::ConstraintWheel2D *_target)
  25642. {
  25643. return _target->GetFrequencyHz ();
  25644. }
  25645. DllExport float
  25646. ConstraintWheel2D_GetDampingRatio (Urho3D::ConstraintWheel2D *_target)
  25647. {
  25648. return _target->GetDampingRatio ();
  25649. }
  25650. DllExport int
  25651. ParticleEffect2D_GetType (Urho3D::ParticleEffect2D *_target)
  25652. {
  25653. return (_target->GetType ()).Value ();
  25654. }
  25655. DllExport const char *
  25656. ParticleEffect2D_GetTypeName (Urho3D::ParticleEffect2D *_target)
  25657. {
  25658. return stringdup((_target->GetTypeName ()).CString ());
  25659. }
  25660. DllExport int
  25661. ParticleEffect2D_GetTypeStatic ()
  25662. {
  25663. return (ParticleEffect2D::GetTypeStatic ()).Value ();
  25664. }
  25665. DllExport const char *
  25666. ParticleEffect2D_GetTypeNameStatic ()
  25667. {
  25668. return stringdup((ParticleEffect2D::GetTypeNameStatic ()).CString ());
  25669. }
  25670. DllExport void *
  25671. ParticleEffect2D_ParticleEffect2D (Urho3D::Context * context)
  25672. {
  25673. return WeakPtr<ParticleEffect2D>(new ParticleEffect2D(context));
  25674. }
  25675. DllExport void
  25676. ParticleEffect2D_RegisterObject (Urho3D::Context * context)
  25677. {
  25678. ParticleEffect2D::RegisterObject (context);
  25679. }
  25680. DllExport int
  25681. ParticleEffect2D_BeginLoad_File (Urho3D::ParticleEffect2D *_target, File * source)
  25682. {
  25683. return _target->BeginLoad (*source);
  25684. }
  25685. DllExport int
  25686. ParticleEffect2D_BeginLoad_MemoryBuffer (Urho3D::ParticleEffect2D *_target, MemoryBuffer * source)
  25687. {
  25688. return _target->BeginLoad (*source);
  25689. }
  25690. DllExport int
  25691. ParticleEffect2D_EndLoad (Urho3D::ParticleEffect2D *_target)
  25692. {
  25693. return _target->EndLoad ();
  25694. }
  25695. DllExport int
  25696. ParticleEffect2D_Save_File (Urho3D::ParticleEffect2D *_target, File * dest)
  25697. {
  25698. return _target->Save (*dest);
  25699. }
  25700. DllExport int
  25701. ParticleEffect2D_Save_MemoryBuffer (Urho3D::ParticleEffect2D *_target, MemoryBuffer * dest)
  25702. {
  25703. return _target->Save (*dest);
  25704. }
  25705. DllExport void
  25706. ParticleEffect2D_SetSprite (Urho3D::ParticleEffect2D *_target, Urho3D::Sprite2D * sprite)
  25707. {
  25708. _target->SetSprite (sprite);
  25709. }
  25710. DllExport void
  25711. ParticleEffect2D_SetSourcePositionVariance (Urho3D::ParticleEffect2D *_target, const class Urho3D::Vector2 & sourcePositionVariance)
  25712. {
  25713. _target->SetSourcePositionVariance (sourcePositionVariance);
  25714. }
  25715. DllExport void
  25716. ParticleEffect2D_SetSpeed (Urho3D::ParticleEffect2D *_target, float speed)
  25717. {
  25718. _target->SetSpeed (speed);
  25719. }
  25720. DllExport void
  25721. ParticleEffect2D_SetSpeedVariance (Urho3D::ParticleEffect2D *_target, float speedVariance)
  25722. {
  25723. _target->SetSpeedVariance (speedVariance);
  25724. }
  25725. DllExport void
  25726. ParticleEffect2D_SetParticleLifeSpan (Urho3D::ParticleEffect2D *_target, float particleLifeSpan)
  25727. {
  25728. _target->SetParticleLifeSpan (particleLifeSpan);
  25729. }
  25730. DllExport void
  25731. ParticleEffect2D_SetParticleLifespanVariance (Urho3D::ParticleEffect2D *_target, float particleLifespanVariance)
  25732. {
  25733. _target->SetParticleLifespanVariance (particleLifespanVariance);
  25734. }
  25735. DllExport void
  25736. ParticleEffect2D_SetAngle (Urho3D::ParticleEffect2D *_target, float angle)
  25737. {
  25738. _target->SetAngle (angle);
  25739. }
  25740. DllExport void
  25741. ParticleEffect2D_SetAngleVariance (Urho3D::ParticleEffect2D *_target, float angleVariance)
  25742. {
  25743. _target->SetAngleVariance (angleVariance);
  25744. }
  25745. DllExport void
  25746. ParticleEffect2D_SetGravity (Urho3D::ParticleEffect2D *_target, const class Urho3D::Vector2 & gravity)
  25747. {
  25748. _target->SetGravity (gravity);
  25749. }
  25750. DllExport void
  25751. ParticleEffect2D_SetRadialAcceleration (Urho3D::ParticleEffect2D *_target, float radialAcceleration)
  25752. {
  25753. _target->SetRadialAcceleration (radialAcceleration);
  25754. }
  25755. DllExport void
  25756. ParticleEffect2D_SetTangentialAcceleration (Urho3D::ParticleEffect2D *_target, float tangentialAcceleration)
  25757. {
  25758. _target->SetTangentialAcceleration (tangentialAcceleration);
  25759. }
  25760. DllExport void
  25761. ParticleEffect2D_SetRadialAccelVariance (Urho3D::ParticleEffect2D *_target, float radialAccelVariance)
  25762. {
  25763. _target->SetRadialAccelVariance (radialAccelVariance);
  25764. }
  25765. DllExport void
  25766. ParticleEffect2D_SetTangentialAccelVariance (Urho3D::ParticleEffect2D *_target, float tangentialAccelVariance)
  25767. {
  25768. _target->SetTangentialAccelVariance (tangentialAccelVariance);
  25769. }
  25770. DllExport void
  25771. ParticleEffect2D_SetStartColor (Urho3D::ParticleEffect2D *_target, const class Urho3D::Color & startColor)
  25772. {
  25773. _target->SetStartColor (startColor);
  25774. }
  25775. DllExport void
  25776. ParticleEffect2D_SetStartColorVariance (Urho3D::ParticleEffect2D *_target, const class Urho3D::Color & startColorVariance)
  25777. {
  25778. _target->SetStartColorVariance (startColorVariance);
  25779. }
  25780. DllExport void
  25781. ParticleEffect2D_SetFinishColor (Urho3D::ParticleEffect2D *_target, const class Urho3D::Color & finishColor)
  25782. {
  25783. _target->SetFinishColor (finishColor);
  25784. }
  25785. DllExport void
  25786. ParticleEffect2D_SetFinishColorVariance (Urho3D::ParticleEffect2D *_target, const class Urho3D::Color & finishColorVariance)
  25787. {
  25788. _target->SetFinishColorVariance (finishColorVariance);
  25789. }
  25790. DllExport void
  25791. ParticleEffect2D_SetMaxParticles (Urho3D::ParticleEffect2D *_target, int maxParticles)
  25792. {
  25793. _target->SetMaxParticles (maxParticles);
  25794. }
  25795. DllExport void
  25796. ParticleEffect2D_SetStartParticleSize (Urho3D::ParticleEffect2D *_target, float startParticleSize)
  25797. {
  25798. _target->SetStartParticleSize (startParticleSize);
  25799. }
  25800. DllExport void
  25801. ParticleEffect2D_SetStartParticleSizeVariance (Urho3D::ParticleEffect2D *_target, float startParticleSizeVariance)
  25802. {
  25803. _target->SetStartParticleSizeVariance (startParticleSizeVariance);
  25804. }
  25805. DllExport void
  25806. ParticleEffect2D_SetFinishParticleSize (Urho3D::ParticleEffect2D *_target, float finishParticleSize)
  25807. {
  25808. _target->SetFinishParticleSize (finishParticleSize);
  25809. }
  25810. DllExport void
  25811. ParticleEffect2D_SetFinishParticleSizeVariance (Urho3D::ParticleEffect2D *_target, float FinishParticleSizeVariance)
  25812. {
  25813. _target->SetFinishParticleSizeVariance (FinishParticleSizeVariance);
  25814. }
  25815. DllExport void
  25816. ParticleEffect2D_SetDuration (Urho3D::ParticleEffect2D *_target, float duration)
  25817. {
  25818. _target->SetDuration (duration);
  25819. }
  25820. DllExport void
  25821. ParticleEffect2D_SetEmitterType (Urho3D::ParticleEffect2D *_target, enum Urho3D::EmitterType2D emitterType)
  25822. {
  25823. _target->SetEmitterType (emitterType);
  25824. }
  25825. DllExport void
  25826. ParticleEffect2D_SetMaxRadius (Urho3D::ParticleEffect2D *_target, float maxRadius)
  25827. {
  25828. _target->SetMaxRadius (maxRadius);
  25829. }
  25830. DllExport void
  25831. ParticleEffect2D_SetMaxRadiusVariance (Urho3D::ParticleEffect2D *_target, float maxRadiusVariance)
  25832. {
  25833. _target->SetMaxRadiusVariance (maxRadiusVariance);
  25834. }
  25835. DllExport void
  25836. ParticleEffect2D_SetMinRadius (Urho3D::ParticleEffect2D *_target, float minRadius)
  25837. {
  25838. _target->SetMinRadius (minRadius);
  25839. }
  25840. DllExport void
  25841. ParticleEffect2D_SetMinRadiusVariance (Urho3D::ParticleEffect2D *_target, float minRadiusVariance)
  25842. {
  25843. _target->SetMinRadiusVariance (minRadiusVariance);
  25844. }
  25845. DllExport void
  25846. ParticleEffect2D_SetRotatePerSecond (Urho3D::ParticleEffect2D *_target, float rotatePerSecond)
  25847. {
  25848. _target->SetRotatePerSecond (rotatePerSecond);
  25849. }
  25850. DllExport void
  25851. ParticleEffect2D_SetRotatePerSecondVariance (Urho3D::ParticleEffect2D *_target, float rotatePerSecondVariance)
  25852. {
  25853. _target->SetRotatePerSecondVariance (rotatePerSecondVariance);
  25854. }
  25855. DllExport void
  25856. ParticleEffect2D_SetBlendMode (Urho3D::ParticleEffect2D *_target, enum Urho3D::BlendMode blendMode)
  25857. {
  25858. _target->SetBlendMode (blendMode);
  25859. }
  25860. DllExport void
  25861. ParticleEffect2D_SetRotationStart (Urho3D::ParticleEffect2D *_target, float rotationStart)
  25862. {
  25863. _target->SetRotationStart (rotationStart);
  25864. }
  25865. DllExport void
  25866. ParticleEffect2D_SetRotationStartVariance (Urho3D::ParticleEffect2D *_target, float rotationStartVariance)
  25867. {
  25868. _target->SetRotationStartVariance (rotationStartVariance);
  25869. }
  25870. DllExport void
  25871. ParticleEffect2D_SetRotationEnd (Urho3D::ParticleEffect2D *_target, float rotationEnd)
  25872. {
  25873. _target->SetRotationEnd (rotationEnd);
  25874. }
  25875. DllExport void
  25876. ParticleEffect2D_SetRotationEndVariance (Urho3D::ParticleEffect2D *_target, float rotationEndVariance)
  25877. {
  25878. _target->SetRotationEndVariance (rotationEndVariance);
  25879. }
  25880. DllExport Urho3D::ParticleEffect2D *
  25881. ParticleEffect2D_Clone (Urho3D::ParticleEffect2D *_target, const char * cloneName)
  25882. {
  25883. auto copy = _target->Clone (Urho3D::String(cloneName));
  25884. auto plain = copy.Get();
  25885. copy.Detach();
  25886. delete copy;
  25887. return plain;
  25888. }
  25889. DllExport Urho3D::Sprite2D *
  25890. ParticleEffect2D_GetSprite (Urho3D::ParticleEffect2D *_target)
  25891. {
  25892. return _target->GetSprite ();
  25893. }
  25894. DllExport Interop::Vector2
  25895. ParticleEffect2D_GetSourcePositionVariance (Urho3D::ParticleEffect2D *_target)
  25896. {
  25897. return *((Interop::Vector2 *) &(_target->GetSourcePositionVariance ()));
  25898. }
  25899. DllExport float
  25900. ParticleEffect2D_GetSpeed (Urho3D::ParticleEffect2D *_target)
  25901. {
  25902. return _target->GetSpeed ();
  25903. }
  25904. DllExport float
  25905. ParticleEffect2D_GetSpeedVariance (Urho3D::ParticleEffect2D *_target)
  25906. {
  25907. return _target->GetSpeedVariance ();
  25908. }
  25909. DllExport float
  25910. ParticleEffect2D_GetParticleLifeSpan (Urho3D::ParticleEffect2D *_target)
  25911. {
  25912. return _target->GetParticleLifeSpan ();
  25913. }
  25914. DllExport float
  25915. ParticleEffect2D_GetParticleLifespanVariance (Urho3D::ParticleEffect2D *_target)
  25916. {
  25917. return _target->GetParticleLifespanVariance ();
  25918. }
  25919. DllExport float
  25920. ParticleEffect2D_GetAngle (Urho3D::ParticleEffect2D *_target)
  25921. {
  25922. return _target->GetAngle ();
  25923. }
  25924. DllExport float
  25925. ParticleEffect2D_GetAngleVariance (Urho3D::ParticleEffect2D *_target)
  25926. {
  25927. return _target->GetAngleVariance ();
  25928. }
  25929. DllExport Interop::Vector2
  25930. ParticleEffect2D_GetGravity (Urho3D::ParticleEffect2D *_target)
  25931. {
  25932. return *((Interop::Vector2 *) &(_target->GetGravity ()));
  25933. }
  25934. DllExport float
  25935. ParticleEffect2D_GetRadialAcceleration (Urho3D::ParticleEffect2D *_target)
  25936. {
  25937. return _target->GetRadialAcceleration ();
  25938. }
  25939. DllExport float
  25940. ParticleEffect2D_GetTangentialAcceleration (Urho3D::ParticleEffect2D *_target)
  25941. {
  25942. return _target->GetTangentialAcceleration ();
  25943. }
  25944. DllExport float
  25945. ParticleEffect2D_GetRadialAccelVariance (Urho3D::ParticleEffect2D *_target)
  25946. {
  25947. return _target->GetRadialAccelVariance ();
  25948. }
  25949. DllExport float
  25950. ParticleEffect2D_GetTangentialAccelVariance (Urho3D::ParticleEffect2D *_target)
  25951. {
  25952. return _target->GetTangentialAccelVariance ();
  25953. }
  25954. DllExport Interop::Color
  25955. ParticleEffect2D_GetStartColor (Urho3D::ParticleEffect2D *_target)
  25956. {
  25957. return *((Interop::Color *) &(_target->GetStartColor ()));
  25958. }
  25959. DllExport Interop::Color
  25960. ParticleEffect2D_GetStartColorVariance (Urho3D::ParticleEffect2D *_target)
  25961. {
  25962. return *((Interop::Color *) &(_target->GetStartColorVariance ()));
  25963. }
  25964. DllExport Interop::Color
  25965. ParticleEffect2D_GetFinishColor (Urho3D::ParticleEffect2D *_target)
  25966. {
  25967. return *((Interop::Color *) &(_target->GetFinishColor ()));
  25968. }
  25969. DllExport Interop::Color
  25970. ParticleEffect2D_GetFinishColorVariance (Urho3D::ParticleEffect2D *_target)
  25971. {
  25972. return *((Interop::Color *) &(_target->GetFinishColorVariance ()));
  25973. }
  25974. DllExport int
  25975. ParticleEffect2D_GetMaxParticles (Urho3D::ParticleEffect2D *_target)
  25976. {
  25977. return _target->GetMaxParticles ();
  25978. }
  25979. DllExport float
  25980. ParticleEffect2D_GetStartParticleSize (Urho3D::ParticleEffect2D *_target)
  25981. {
  25982. return _target->GetStartParticleSize ();
  25983. }
  25984. DllExport float
  25985. ParticleEffect2D_GetStartParticleSizeVariance (Urho3D::ParticleEffect2D *_target)
  25986. {
  25987. return _target->GetStartParticleSizeVariance ();
  25988. }
  25989. DllExport float
  25990. ParticleEffect2D_GetFinishParticleSize (Urho3D::ParticleEffect2D *_target)
  25991. {
  25992. return _target->GetFinishParticleSize ();
  25993. }
  25994. DllExport float
  25995. ParticleEffect2D_GetFinishParticleSizeVariance (Urho3D::ParticleEffect2D *_target)
  25996. {
  25997. return _target->GetFinishParticleSizeVariance ();
  25998. }
  25999. DllExport float
  26000. ParticleEffect2D_GetDuration (Urho3D::ParticleEffect2D *_target)
  26001. {
  26002. return _target->GetDuration ();
  26003. }
  26004. DllExport enum Urho3D::EmitterType2D
  26005. ParticleEffect2D_GetEmitterType (Urho3D::ParticleEffect2D *_target)
  26006. {
  26007. return _target->GetEmitterType ();
  26008. }
  26009. DllExport float
  26010. ParticleEffect2D_GetMaxRadius (Urho3D::ParticleEffect2D *_target)
  26011. {
  26012. return _target->GetMaxRadius ();
  26013. }
  26014. DllExport float
  26015. ParticleEffect2D_GetMaxRadiusVariance (Urho3D::ParticleEffect2D *_target)
  26016. {
  26017. return _target->GetMaxRadiusVariance ();
  26018. }
  26019. DllExport float
  26020. ParticleEffect2D_GetMinRadius (Urho3D::ParticleEffect2D *_target)
  26021. {
  26022. return _target->GetMinRadius ();
  26023. }
  26024. DllExport float
  26025. ParticleEffect2D_GetMinRadiusVariance (Urho3D::ParticleEffect2D *_target)
  26026. {
  26027. return _target->GetMinRadiusVariance ();
  26028. }
  26029. DllExport float
  26030. ParticleEffect2D_GetRotatePerSecond (Urho3D::ParticleEffect2D *_target)
  26031. {
  26032. return _target->GetRotatePerSecond ();
  26033. }
  26034. DllExport float
  26035. ParticleEffect2D_GetRotatePerSecondVariance (Urho3D::ParticleEffect2D *_target)
  26036. {
  26037. return _target->GetRotatePerSecondVariance ();
  26038. }
  26039. DllExport enum Urho3D::BlendMode
  26040. ParticleEffect2D_GetBlendMode (Urho3D::ParticleEffect2D *_target)
  26041. {
  26042. return _target->GetBlendMode ();
  26043. }
  26044. DllExport float
  26045. ParticleEffect2D_GetRotationStart (Urho3D::ParticleEffect2D *_target)
  26046. {
  26047. return _target->GetRotationStart ();
  26048. }
  26049. DllExport float
  26050. ParticleEffect2D_GetRotationStartVariance (Urho3D::ParticleEffect2D *_target)
  26051. {
  26052. return _target->GetRotationStartVariance ();
  26053. }
  26054. DllExport float
  26055. ParticleEffect2D_GetRotationEnd (Urho3D::ParticleEffect2D *_target)
  26056. {
  26057. return _target->GetRotationEnd ();
  26058. }
  26059. DllExport float
  26060. ParticleEffect2D_GetRotationEndVariance (Urho3D::ParticleEffect2D *_target)
  26061. {
  26062. return _target->GetRotationEndVariance ();
  26063. }
  26064. DllExport int
  26065. ParticleEmitter2D_GetType (Urho3D::ParticleEmitter2D *_target)
  26066. {
  26067. return (_target->GetType ()).Value ();
  26068. }
  26069. DllExport const char *
  26070. ParticleEmitter2D_GetTypeName (Urho3D::ParticleEmitter2D *_target)
  26071. {
  26072. return stringdup((_target->GetTypeName ()).CString ());
  26073. }
  26074. DllExport int
  26075. ParticleEmitter2D_GetTypeStatic ()
  26076. {
  26077. return (ParticleEmitter2D::GetTypeStatic ()).Value ();
  26078. }
  26079. DllExport const char *
  26080. ParticleEmitter2D_GetTypeNameStatic ()
  26081. {
  26082. return stringdup((ParticleEmitter2D::GetTypeNameStatic ()).CString ());
  26083. }
  26084. DllExport void *
  26085. ParticleEmitter2D_ParticleEmitter2D (Urho3D::Context * context)
  26086. {
  26087. return WeakPtr<ParticleEmitter2D>(new ParticleEmitter2D(context));
  26088. }
  26089. DllExport void
  26090. ParticleEmitter2D_RegisterObject (Urho3D::Context * context)
  26091. {
  26092. ParticleEmitter2D::RegisterObject (context);
  26093. }
  26094. DllExport void
  26095. ParticleEmitter2D_OnSetEnabled (Urho3D::ParticleEmitter2D *_target)
  26096. {
  26097. _target->OnSetEnabled ();
  26098. }
  26099. DllExport void
  26100. ParticleEmitter2D_SetEffect (Urho3D::ParticleEmitter2D *_target, Urho3D::ParticleEffect2D * effect)
  26101. {
  26102. _target->SetEffect (effect);
  26103. }
  26104. DllExport void
  26105. ParticleEmitter2D_SetSprite (Urho3D::ParticleEmitter2D *_target, Urho3D::Sprite2D * sprite)
  26106. {
  26107. _target->SetSprite (sprite);
  26108. }
  26109. DllExport void
  26110. ParticleEmitter2D_SetBlendMode (Urho3D::ParticleEmitter2D *_target, enum Urho3D::BlendMode blendMode)
  26111. {
  26112. _target->SetBlendMode (blendMode);
  26113. }
  26114. DllExport void
  26115. ParticleEmitter2D_SetMaxParticles (Urho3D::ParticleEmitter2D *_target, unsigned int maxParticles)
  26116. {
  26117. _target->SetMaxParticles (maxParticles);
  26118. }
  26119. DllExport void
  26120. ParticleEmitter2D_SetEmitting (Urho3D::ParticleEmitter2D *_target, bool enable)
  26121. {
  26122. _target->SetEmitting (enable);
  26123. }
  26124. DllExport Urho3D::ParticleEffect2D *
  26125. ParticleEmitter2D_GetEffect (Urho3D::ParticleEmitter2D *_target)
  26126. {
  26127. return _target->GetEffect ();
  26128. }
  26129. DllExport Urho3D::Sprite2D *
  26130. ParticleEmitter2D_GetSprite (Urho3D::ParticleEmitter2D *_target)
  26131. {
  26132. return _target->GetSprite ();
  26133. }
  26134. DllExport enum Urho3D::BlendMode
  26135. ParticleEmitter2D_GetBlendMode (Urho3D::ParticleEmitter2D *_target)
  26136. {
  26137. return _target->GetBlendMode ();
  26138. }
  26139. DllExport unsigned int
  26140. ParticleEmitter2D_GetMaxParticles (Urho3D::ParticleEmitter2D *_target)
  26141. {
  26142. return _target->GetMaxParticles ();
  26143. }
  26144. DllExport Urho3D::ResourceRef
  26145. ParticleEmitter2D_GetParticleEffectAttr (Urho3D::ParticleEmitter2D *_target)
  26146. {
  26147. return _target->GetParticleEffectAttr ();
  26148. }
  26149. DllExport Urho3D::ResourceRef
  26150. ParticleEmitter2D_GetSpriteAttr (Urho3D::ParticleEmitter2D *_target)
  26151. {
  26152. return _target->GetSpriteAttr ();
  26153. }
  26154. DllExport int
  26155. ParticleEmitter2D_IsEmitting (Urho3D::ParticleEmitter2D *_target)
  26156. {
  26157. return _target->IsEmitting ();
  26158. }
  26159. DllExport int
  26160. PhysicsWorld2D_GetType (Urho3D::PhysicsWorld2D *_target)
  26161. {
  26162. return (_target->GetType ()).Value ();
  26163. }
  26164. DllExport const char *
  26165. PhysicsWorld2D_GetTypeName (Urho3D::PhysicsWorld2D *_target)
  26166. {
  26167. return stringdup((_target->GetTypeName ()).CString ());
  26168. }
  26169. DllExport int
  26170. PhysicsWorld2D_GetTypeStatic ()
  26171. {
  26172. return (PhysicsWorld2D::GetTypeStatic ()).Value ();
  26173. }
  26174. DllExport const char *
  26175. PhysicsWorld2D_GetTypeNameStatic ()
  26176. {
  26177. return stringdup((PhysicsWorld2D::GetTypeNameStatic ()).CString ());
  26178. }
  26179. DllExport void *
  26180. PhysicsWorld2D_PhysicsWorld2D (Urho3D::Context * context)
  26181. {
  26182. return WeakPtr<PhysicsWorld2D>(new PhysicsWorld2D(context));
  26183. }
  26184. DllExport void
  26185. PhysicsWorld2D_RegisterObject (Urho3D::Context * context)
  26186. {
  26187. PhysicsWorld2D::RegisterObject (context);
  26188. }
  26189. DllExport void
  26190. PhysicsWorld2D_DrawDebugGeometry (Urho3D::PhysicsWorld2D *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  26191. {
  26192. _target->DrawDebugGeometry (debug, depthTest);
  26193. }
  26194. DllExport void
  26195. PhysicsWorld2D_Update (Urho3D::PhysicsWorld2D *_target, float timeStep)
  26196. {
  26197. _target->Update (timeStep);
  26198. }
  26199. DllExport void
  26200. PhysicsWorld2D_DrawDebugGeometry0 (Urho3D::PhysicsWorld2D *_target)
  26201. {
  26202. _target->DrawDebugGeometry ();
  26203. }
  26204. DllExport void
  26205. PhysicsWorld2D_SetUpdateEnabled (Urho3D::PhysicsWorld2D *_target, bool enable)
  26206. {
  26207. _target->SetUpdateEnabled (enable);
  26208. }
  26209. DllExport void
  26210. PhysicsWorld2D_SetDrawShape (Urho3D::PhysicsWorld2D *_target, bool drawShape)
  26211. {
  26212. _target->SetDrawShape (drawShape);
  26213. }
  26214. DllExport void
  26215. PhysicsWorld2D_SetDrawJoint (Urho3D::PhysicsWorld2D *_target, bool drawJoint)
  26216. {
  26217. _target->SetDrawJoint (drawJoint);
  26218. }
  26219. DllExport void
  26220. PhysicsWorld2D_SetDrawAabb (Urho3D::PhysicsWorld2D *_target, bool drawAabb)
  26221. {
  26222. _target->SetDrawAabb (drawAabb);
  26223. }
  26224. DllExport void
  26225. PhysicsWorld2D_SetDrawPair (Urho3D::PhysicsWorld2D *_target, bool drawPair)
  26226. {
  26227. _target->SetDrawPair (drawPair);
  26228. }
  26229. DllExport void
  26230. PhysicsWorld2D_SetDrawCenterOfMass (Urho3D::PhysicsWorld2D *_target, bool drawCenterOfMass)
  26231. {
  26232. _target->SetDrawCenterOfMass (drawCenterOfMass);
  26233. }
  26234. DllExport void
  26235. PhysicsWorld2D_SetAllowSleeping (Urho3D::PhysicsWorld2D *_target, bool enable)
  26236. {
  26237. _target->SetAllowSleeping (enable);
  26238. }
  26239. DllExport void
  26240. PhysicsWorld2D_SetWarmStarting (Urho3D::PhysicsWorld2D *_target, bool enable)
  26241. {
  26242. _target->SetWarmStarting (enable);
  26243. }
  26244. DllExport void
  26245. PhysicsWorld2D_SetContinuousPhysics (Urho3D::PhysicsWorld2D *_target, bool enable)
  26246. {
  26247. _target->SetContinuousPhysics (enable);
  26248. }
  26249. DllExport void
  26250. PhysicsWorld2D_SetSubStepping (Urho3D::PhysicsWorld2D *_target, bool enable)
  26251. {
  26252. _target->SetSubStepping (enable);
  26253. }
  26254. DllExport void
  26255. PhysicsWorld2D_SetGravity (Urho3D::PhysicsWorld2D *_target, const class Urho3D::Vector2 & gravity)
  26256. {
  26257. _target->SetGravity (gravity);
  26258. }
  26259. DllExport void
  26260. PhysicsWorld2D_SetAutoClearForces (Urho3D::PhysicsWorld2D *_target, bool enable)
  26261. {
  26262. _target->SetAutoClearForces (enable);
  26263. }
  26264. DllExport void
  26265. PhysicsWorld2D_SetVelocityIterations (Urho3D::PhysicsWorld2D *_target, int velocityIterations)
  26266. {
  26267. _target->SetVelocityIterations (velocityIterations);
  26268. }
  26269. DllExport void
  26270. PhysicsWorld2D_SetPositionIterations (Urho3D::PhysicsWorld2D *_target, int positionIterations)
  26271. {
  26272. _target->SetPositionIterations (positionIterations);
  26273. }
  26274. DllExport void
  26275. PhysicsWorld2D_AddRigidBody (Urho3D::PhysicsWorld2D *_target, Urho3D::RigidBody2D * rigidBody)
  26276. {
  26277. _target->AddRigidBody (rigidBody);
  26278. }
  26279. DllExport void
  26280. PhysicsWorld2D_RemoveRigidBody (Urho3D::PhysicsWorld2D *_target, Urho3D::RigidBody2D * rigidBody)
  26281. {
  26282. _target->RemoveRigidBody (rigidBody);
  26283. }
  26284. DllExport Urho3D::RigidBody2D *
  26285. PhysicsWorld2D_GetRigidBody (Urho3D::PhysicsWorld2D *_target, const class Urho3D::Vector2 & point, unsigned int collisionMask)
  26286. {
  26287. return _target->GetRigidBody (point, collisionMask);
  26288. }
  26289. DllExport Urho3D::RigidBody2D *
  26290. PhysicsWorld2D_GetRigidBody1 (Urho3D::PhysicsWorld2D *_target, int screenX, int screenY, unsigned int collisionMask)
  26291. {
  26292. return _target->GetRigidBody (screenX, screenY, collisionMask);
  26293. }
  26294. DllExport int
  26295. PhysicsWorld2D_IsUpdateEnabled (Urho3D::PhysicsWorld2D *_target)
  26296. {
  26297. return _target->IsUpdateEnabled ();
  26298. }
  26299. DllExport int
  26300. PhysicsWorld2D_GetDrawShape (Urho3D::PhysicsWorld2D *_target)
  26301. {
  26302. return _target->GetDrawShape ();
  26303. }
  26304. DllExport int
  26305. PhysicsWorld2D_GetDrawJoint (Urho3D::PhysicsWorld2D *_target)
  26306. {
  26307. return _target->GetDrawJoint ();
  26308. }
  26309. DllExport int
  26310. PhysicsWorld2D_GetDrawAabb (Urho3D::PhysicsWorld2D *_target)
  26311. {
  26312. return _target->GetDrawAabb ();
  26313. }
  26314. DllExport int
  26315. PhysicsWorld2D_GetDrawPair (Urho3D::PhysicsWorld2D *_target)
  26316. {
  26317. return _target->GetDrawPair ();
  26318. }
  26319. DllExport int
  26320. PhysicsWorld2D_GetDrawCenterOfMass (Urho3D::PhysicsWorld2D *_target)
  26321. {
  26322. return _target->GetDrawCenterOfMass ();
  26323. }
  26324. DllExport int
  26325. PhysicsWorld2D_GetAllowSleeping (Urho3D::PhysicsWorld2D *_target)
  26326. {
  26327. return _target->GetAllowSleeping ();
  26328. }
  26329. DllExport int
  26330. PhysicsWorld2D_GetWarmStarting (Urho3D::PhysicsWorld2D *_target)
  26331. {
  26332. return _target->GetWarmStarting ();
  26333. }
  26334. DllExport int
  26335. PhysicsWorld2D_GetContinuousPhysics (Urho3D::PhysicsWorld2D *_target)
  26336. {
  26337. return _target->GetContinuousPhysics ();
  26338. }
  26339. DllExport int
  26340. PhysicsWorld2D_GetSubStepping (Urho3D::PhysicsWorld2D *_target)
  26341. {
  26342. return _target->GetSubStepping ();
  26343. }
  26344. DllExport int
  26345. PhysicsWorld2D_GetAutoClearForces (Urho3D::PhysicsWorld2D *_target)
  26346. {
  26347. return _target->GetAutoClearForces ();
  26348. }
  26349. DllExport Interop::Vector2
  26350. PhysicsWorld2D_GetGravity (Urho3D::PhysicsWorld2D *_target)
  26351. {
  26352. return *((Interop::Vector2 *) &(_target->GetGravity ()));
  26353. }
  26354. DllExport int
  26355. PhysicsWorld2D_GetVelocityIterations (Urho3D::PhysicsWorld2D *_target)
  26356. {
  26357. return _target->GetVelocityIterations ();
  26358. }
  26359. DllExport int
  26360. PhysicsWorld2D_GetPositionIterations (Urho3D::PhysicsWorld2D *_target)
  26361. {
  26362. return _target->GetPositionIterations ();
  26363. }
  26364. DllExport void
  26365. PhysicsWorld2D_SetApplyingTransforms (Urho3D::PhysicsWorld2D *_target, bool enable)
  26366. {
  26367. _target->SetApplyingTransforms (enable);
  26368. }
  26369. DllExport int
  26370. PhysicsWorld2D_IsApplyingTransforms (Urho3D::PhysicsWorld2D *_target)
  26371. {
  26372. return _target->IsApplyingTransforms ();
  26373. }
  26374. DllExport int
  26375. Renderer2D_GetType (Urho3D::Renderer2D *_target)
  26376. {
  26377. return (_target->GetType ()).Value ();
  26378. }
  26379. DllExport const char *
  26380. Renderer2D_GetTypeName (Urho3D::Renderer2D *_target)
  26381. {
  26382. return stringdup((_target->GetTypeName ()).CString ());
  26383. }
  26384. DllExport int
  26385. Renderer2D_GetTypeStatic ()
  26386. {
  26387. return (Renderer2D::GetTypeStatic ()).Value ();
  26388. }
  26389. DllExport const char *
  26390. Renderer2D_GetTypeNameStatic ()
  26391. {
  26392. return stringdup((Renderer2D::GetTypeNameStatic ()).CString ());
  26393. }
  26394. DllExport void *
  26395. Renderer2D_Renderer2D (Urho3D::Context * context)
  26396. {
  26397. return WeakPtr<Renderer2D>(new Renderer2D(context));
  26398. }
  26399. DllExport void
  26400. Renderer2D_RegisterObject (Urho3D::Context * context)
  26401. {
  26402. Renderer2D::RegisterObject (context);
  26403. }
  26404. DllExport enum Urho3D::UpdateGeometryType
  26405. Renderer2D_GetUpdateGeometryType (Urho3D::Renderer2D *_target)
  26406. {
  26407. return _target->GetUpdateGeometryType ();
  26408. }
  26409. DllExport void
  26410. Renderer2D_AddDrawable (Urho3D::Renderer2D *_target, Urho3D::Drawable2D * drawable)
  26411. {
  26412. _target->AddDrawable (drawable);
  26413. }
  26414. DllExport void
  26415. Renderer2D_RemoveDrawable (Urho3D::Renderer2D *_target, Urho3D::Drawable2D * drawable)
  26416. {
  26417. _target->RemoveDrawable (drawable);
  26418. }
  26419. DllExport Urho3D::Material *
  26420. Renderer2D_GetMaterial (Urho3D::Renderer2D *_target, Urho3D::Texture2D * texture, enum Urho3D::BlendMode blendMode)
  26421. {
  26422. return _target->GetMaterial (texture, blendMode);
  26423. }
  26424. DllExport int
  26425. Renderer2D_CheckVisibility (Urho3D::Renderer2D *_target, Urho3D::Drawable2D * drawable)
  26426. {
  26427. return _target->CheckVisibility (drawable);
  26428. }
  26429. DllExport int
  26430. RigidBody2D_GetType (Urho3D::RigidBody2D *_target)
  26431. {
  26432. return (_target->GetType ()).Value ();
  26433. }
  26434. DllExport const char *
  26435. RigidBody2D_GetTypeName (Urho3D::RigidBody2D *_target)
  26436. {
  26437. return stringdup((_target->GetTypeName ()).CString ());
  26438. }
  26439. DllExport int
  26440. RigidBody2D_GetTypeStatic ()
  26441. {
  26442. return (RigidBody2D::GetTypeStatic ()).Value ();
  26443. }
  26444. DllExport const char *
  26445. RigidBody2D_GetTypeNameStatic ()
  26446. {
  26447. return stringdup((RigidBody2D::GetTypeNameStatic ()).CString ());
  26448. }
  26449. DllExport void *
  26450. RigidBody2D_RigidBody2D (Urho3D::Context * context)
  26451. {
  26452. return WeakPtr<RigidBody2D>(new RigidBody2D(context));
  26453. }
  26454. DllExport void
  26455. RigidBody2D_RegisterObject (Urho3D::Context * context)
  26456. {
  26457. RigidBody2D::RegisterObject (context);
  26458. }
  26459. DllExport void
  26460. RigidBody2D_OnSetEnabled (Urho3D::RigidBody2D *_target)
  26461. {
  26462. _target->OnSetEnabled ();
  26463. }
  26464. DllExport void
  26465. RigidBody2D_SetBodyType (Urho3D::RigidBody2D *_target, enum Urho3D::BodyType2D bodyType)
  26466. {
  26467. _target->SetBodyType (bodyType);
  26468. }
  26469. DllExport void
  26470. RigidBody2D_SetMass (Urho3D::RigidBody2D *_target, float mass)
  26471. {
  26472. _target->SetMass (mass);
  26473. }
  26474. DllExport void
  26475. RigidBody2D_SetInertia (Urho3D::RigidBody2D *_target, float inertia)
  26476. {
  26477. _target->SetInertia (inertia);
  26478. }
  26479. DllExport void
  26480. RigidBody2D_SetMassCenter (Urho3D::RigidBody2D *_target, const class Urho3D::Vector2 & center)
  26481. {
  26482. _target->SetMassCenter (center);
  26483. }
  26484. DllExport void
  26485. RigidBody2D_SetUseFixtureMass (Urho3D::RigidBody2D *_target, bool useFixtureMass)
  26486. {
  26487. _target->SetUseFixtureMass (useFixtureMass);
  26488. }
  26489. DllExport void
  26490. RigidBody2D_SetLinearDamping (Urho3D::RigidBody2D *_target, float linearDamping)
  26491. {
  26492. _target->SetLinearDamping (linearDamping);
  26493. }
  26494. DllExport void
  26495. RigidBody2D_SetAngularDamping (Urho3D::RigidBody2D *_target, float angularDamping)
  26496. {
  26497. _target->SetAngularDamping (angularDamping);
  26498. }
  26499. DllExport void
  26500. RigidBody2D_SetAllowSleep (Urho3D::RigidBody2D *_target, bool allowSleep)
  26501. {
  26502. _target->SetAllowSleep (allowSleep);
  26503. }
  26504. DllExport void
  26505. RigidBody2D_SetFixedRotation (Urho3D::RigidBody2D *_target, bool fixedRotation)
  26506. {
  26507. _target->SetFixedRotation (fixedRotation);
  26508. }
  26509. DllExport void
  26510. RigidBody2D_SetBullet (Urho3D::RigidBody2D *_target, bool bullet)
  26511. {
  26512. _target->SetBullet (bullet);
  26513. }
  26514. DllExport void
  26515. RigidBody2D_SetGravityScale (Urho3D::RigidBody2D *_target, float gravityScale)
  26516. {
  26517. _target->SetGravityScale (gravityScale);
  26518. }
  26519. DllExport void
  26520. RigidBody2D_SetAwake (Urho3D::RigidBody2D *_target, bool awake)
  26521. {
  26522. _target->SetAwake (awake);
  26523. }
  26524. DllExport void
  26525. RigidBody2D_SetLinearVelocity (Urho3D::RigidBody2D *_target, const class Urho3D::Vector2 & linearVelocity)
  26526. {
  26527. _target->SetLinearVelocity (linearVelocity);
  26528. }
  26529. DllExport void
  26530. RigidBody2D_SetAngularVelocity (Urho3D::RigidBody2D *_target, float angularVelocity)
  26531. {
  26532. _target->SetAngularVelocity (angularVelocity);
  26533. }
  26534. DllExport void
  26535. RigidBody2D_ApplyForce (Urho3D::RigidBody2D *_target, const class Urho3D::Vector2 & force, const class Urho3D::Vector2 & point, bool wake)
  26536. {
  26537. _target->ApplyForce (force, point, wake);
  26538. }
  26539. DllExport void
  26540. RigidBody2D_ApplyForceToCenter (Urho3D::RigidBody2D *_target, const class Urho3D::Vector2 & force, bool wake)
  26541. {
  26542. _target->ApplyForceToCenter (force, wake);
  26543. }
  26544. DllExport void
  26545. RigidBody2D_ApplyTorque (Urho3D::RigidBody2D *_target, float torque, bool wake)
  26546. {
  26547. _target->ApplyTorque (torque, wake);
  26548. }
  26549. DllExport void
  26550. RigidBody2D_ApplyLinearImpulse (Urho3D::RigidBody2D *_target, const class Urho3D::Vector2 & impulse, const class Urho3D::Vector2 & point, bool wake)
  26551. {
  26552. _target->ApplyLinearImpulse (impulse, point, wake);
  26553. }
  26554. DllExport void
  26555. RigidBody2D_ApplyLinearImpulseToCenter (Urho3D::RigidBody2D *_target, const class Urho3D::Vector2 & impulse, bool wake)
  26556. {
  26557. _target->ApplyLinearImpulseToCenter (impulse, wake);
  26558. }
  26559. DllExport void
  26560. RigidBody2D_ApplyAngularImpulse (Urho3D::RigidBody2D *_target, float impulse, bool wake)
  26561. {
  26562. _target->ApplyAngularImpulse (impulse, wake);
  26563. }
  26564. DllExport void
  26565. RigidBody2D_CreateBody (Urho3D::RigidBody2D *_target)
  26566. {
  26567. _target->CreateBody ();
  26568. }
  26569. DllExport void
  26570. RigidBody2D_ReleaseBody (Urho3D::RigidBody2D *_target)
  26571. {
  26572. _target->ReleaseBody ();
  26573. }
  26574. DllExport void
  26575. RigidBody2D_ApplyWorldTransform (Urho3D::RigidBody2D *_target)
  26576. {
  26577. _target->ApplyWorldTransform ();
  26578. }
  26579. DllExport void
  26580. RigidBody2D_ApplyWorldTransform0 (Urho3D::RigidBody2D *_target, const class Urho3D::Vector3 & newWorldPosition, const class Urho3D::Quaternion & newWorldRotation)
  26581. {
  26582. _target->ApplyWorldTransform (newWorldPosition, newWorldRotation);
  26583. }
  26584. DllExport void
  26585. RigidBody2D_AddCollisionShape2D (Urho3D::RigidBody2D *_target, Urho3D::CollisionShape2D * collisionShape)
  26586. {
  26587. _target->AddCollisionShape2D (collisionShape);
  26588. }
  26589. DllExport void
  26590. RigidBody2D_RemoveCollisionShape2D (Urho3D::RigidBody2D *_target, Urho3D::CollisionShape2D * collisionShape)
  26591. {
  26592. _target->RemoveCollisionShape2D (collisionShape);
  26593. }
  26594. DllExport void
  26595. RigidBody2D_AddConstraint2D (Urho3D::RigidBody2D *_target, Urho3D::Constraint2D * constraint)
  26596. {
  26597. _target->AddConstraint2D (constraint);
  26598. }
  26599. DllExport void
  26600. RigidBody2D_RemoveConstraint2D (Urho3D::RigidBody2D *_target, Urho3D::Constraint2D * constraint)
  26601. {
  26602. _target->RemoveConstraint2D (constraint);
  26603. }
  26604. DllExport enum Urho3D::BodyType2D
  26605. RigidBody2D_GetBodyType (Urho3D::RigidBody2D *_target)
  26606. {
  26607. return _target->GetBodyType ();
  26608. }
  26609. DllExport float
  26610. RigidBody2D_GetMass (Urho3D::RigidBody2D *_target)
  26611. {
  26612. return _target->GetMass ();
  26613. }
  26614. DllExport float
  26615. RigidBody2D_GetInertia (Urho3D::RigidBody2D *_target)
  26616. {
  26617. return _target->GetInertia ();
  26618. }
  26619. DllExport Interop::Vector2
  26620. RigidBody2D_GetMassCenter (Urho3D::RigidBody2D *_target)
  26621. {
  26622. return *((Interop::Vector2 *) &(_target->GetMassCenter ()));
  26623. }
  26624. DllExport int
  26625. RigidBody2D_GetUseFixtureMass (Urho3D::RigidBody2D *_target)
  26626. {
  26627. return _target->GetUseFixtureMass ();
  26628. }
  26629. DllExport float
  26630. RigidBody2D_GetLinearDamping (Urho3D::RigidBody2D *_target)
  26631. {
  26632. return _target->GetLinearDamping ();
  26633. }
  26634. DllExport float
  26635. RigidBody2D_GetAngularDamping (Urho3D::RigidBody2D *_target)
  26636. {
  26637. return _target->GetAngularDamping ();
  26638. }
  26639. DllExport int
  26640. RigidBody2D_IsAllowSleep (Urho3D::RigidBody2D *_target)
  26641. {
  26642. return _target->IsAllowSleep ();
  26643. }
  26644. DllExport int
  26645. RigidBody2D_IsFixedRotation (Urho3D::RigidBody2D *_target)
  26646. {
  26647. return _target->IsFixedRotation ();
  26648. }
  26649. DllExport int
  26650. RigidBody2D_IsBullet (Urho3D::RigidBody2D *_target)
  26651. {
  26652. return _target->IsBullet ();
  26653. }
  26654. DllExport float
  26655. RigidBody2D_GetGravityScale (Urho3D::RigidBody2D *_target)
  26656. {
  26657. return _target->GetGravityScale ();
  26658. }
  26659. DllExport int
  26660. RigidBody2D_IsAwake (Urho3D::RigidBody2D *_target)
  26661. {
  26662. return _target->IsAwake ();
  26663. }
  26664. DllExport Interop::Vector2
  26665. RigidBody2D_GetLinearVelocity (Urho3D::RigidBody2D *_target)
  26666. {
  26667. return *((Interop::Vector2 *) &(_target->GetLinearVelocity ()));
  26668. }
  26669. DllExport float
  26670. RigidBody2D_GetAngularVelocity (Urho3D::RigidBody2D *_target)
  26671. {
  26672. return _target->GetAngularVelocity ();
  26673. }
  26674. DllExport int
  26675. SpriteSheet2D_GetType (Urho3D::SpriteSheet2D *_target)
  26676. {
  26677. return (_target->GetType ()).Value ();
  26678. }
  26679. DllExport const char *
  26680. SpriteSheet2D_GetTypeName (Urho3D::SpriteSheet2D *_target)
  26681. {
  26682. return stringdup((_target->GetTypeName ()).CString ());
  26683. }
  26684. DllExport int
  26685. SpriteSheet2D_GetTypeStatic ()
  26686. {
  26687. return (SpriteSheet2D::GetTypeStatic ()).Value ();
  26688. }
  26689. DllExport const char *
  26690. SpriteSheet2D_GetTypeNameStatic ()
  26691. {
  26692. return stringdup((SpriteSheet2D::GetTypeNameStatic ()).CString ());
  26693. }
  26694. DllExport void *
  26695. SpriteSheet2D_SpriteSheet2D (Urho3D::Context * context)
  26696. {
  26697. return WeakPtr<SpriteSheet2D>(new SpriteSheet2D(context));
  26698. }
  26699. DllExport void
  26700. SpriteSheet2D_RegisterObject (Urho3D::Context * context)
  26701. {
  26702. SpriteSheet2D::RegisterObject (context);
  26703. }
  26704. DllExport int
  26705. SpriteSheet2D_BeginLoad_File (Urho3D::SpriteSheet2D *_target, File * source)
  26706. {
  26707. return _target->BeginLoad (*source);
  26708. }
  26709. DllExport int
  26710. SpriteSheet2D_BeginLoad_MemoryBuffer (Urho3D::SpriteSheet2D *_target, MemoryBuffer * source)
  26711. {
  26712. return _target->BeginLoad (*source);
  26713. }
  26714. DllExport int
  26715. SpriteSheet2D_EndLoad (Urho3D::SpriteSheet2D *_target)
  26716. {
  26717. return _target->EndLoad ();
  26718. }
  26719. DllExport void
  26720. SpriteSheet2D_SetTexture (Urho3D::SpriteSheet2D *_target, Urho3D::Texture2D * texture)
  26721. {
  26722. _target->SetTexture (texture);
  26723. }
  26724. DllExport void
  26725. SpriteSheet2D_DefineSprite (Urho3D::SpriteSheet2D *_target, const char * name, const class Urho3D::IntRect & rectangle, const class Urho3D::Vector2 & hotSpot, const class Urho3D::IntVector2 & offset)
  26726. {
  26727. _target->DefineSprite (Urho3D::String(name), rectangle, hotSpot, offset);
  26728. }
  26729. DllExport Urho3D::Texture2D *
  26730. SpriteSheet2D_GetTexture (Urho3D::SpriteSheet2D *_target)
  26731. {
  26732. return _target->GetTexture ();
  26733. }
  26734. DllExport Urho3D::Sprite2D *
  26735. SpriteSheet2D_GetSprite (Urho3D::SpriteSheet2D *_target, const char * name)
  26736. {
  26737. return _target->GetSprite (Urho3D::String(name));
  26738. }
  26739. DllExport int
  26740. TileMap2D_GetType (Urho3D::TileMap2D *_target)
  26741. {
  26742. return (_target->GetType ()).Value ();
  26743. }
  26744. DllExport const char *
  26745. TileMap2D_GetTypeName (Urho3D::TileMap2D *_target)
  26746. {
  26747. return stringdup((_target->GetTypeName ()).CString ());
  26748. }
  26749. DllExport int
  26750. TileMap2D_GetTypeStatic ()
  26751. {
  26752. return (TileMap2D::GetTypeStatic ()).Value ();
  26753. }
  26754. DllExport const char *
  26755. TileMap2D_GetTypeNameStatic ()
  26756. {
  26757. return stringdup((TileMap2D::GetTypeNameStatic ()).CString ());
  26758. }
  26759. DllExport void *
  26760. TileMap2D_TileMap2D (Urho3D::Context * context)
  26761. {
  26762. return WeakPtr<TileMap2D>(new TileMap2D(context));
  26763. }
  26764. DllExport void
  26765. TileMap2D_RegisterObject (Urho3D::Context * context)
  26766. {
  26767. TileMap2D::RegisterObject (context);
  26768. }
  26769. DllExport void
  26770. TileMap2D_DrawDebugGeometry (Urho3D::TileMap2D *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  26771. {
  26772. _target->DrawDebugGeometry (debug, depthTest);
  26773. }
  26774. DllExport void
  26775. TileMap2D_SetTmxFile (Urho3D::TileMap2D *_target, Urho3D::TmxFile2D * tmxFile)
  26776. {
  26777. _target->SetTmxFile (tmxFile);
  26778. }
  26779. DllExport void
  26780. TileMap2D_DrawDebugGeometry0 (Urho3D::TileMap2D *_target)
  26781. {
  26782. _target->DrawDebugGeometry ();
  26783. }
  26784. DllExport Urho3D::TmxFile2D *
  26785. TileMap2D_GetTmxFile (Urho3D::TileMap2D *_target)
  26786. {
  26787. return _target->GetTmxFile ();
  26788. }
  26789. DllExport Urho3D::TileMapInfo2D
  26790. TileMap2D_GetInfo (Urho3D::TileMap2D *_target)
  26791. {
  26792. return _target->GetInfo ();
  26793. }
  26794. DllExport unsigned int
  26795. TileMap2D_GetNumLayers (Urho3D::TileMap2D *_target)
  26796. {
  26797. return _target->GetNumLayers ();
  26798. }
  26799. DllExport Urho3D::TileMapLayer2D *
  26800. TileMap2D_GetLayer (Urho3D::TileMap2D *_target, unsigned int index)
  26801. {
  26802. return _target->GetLayer (index);
  26803. }
  26804. DllExport Interop::Vector2
  26805. TileMap2D_TileIndexToPosition (Urho3D::TileMap2D *_target, int x, int y)
  26806. {
  26807. return *((Interop::Vector2 *) &(_target->TileIndexToPosition (x, y)));
  26808. }
  26809. DllExport int
  26810. TileMap2D_PositionToTileIndex (Urho3D::TileMap2D *_target, int & x, int & y, const class Urho3D::Vector2 & position)
  26811. {
  26812. return _target->PositionToTileIndex (x, y, position);
  26813. }
  26814. DllExport Urho3D::ResourceRef
  26815. TileMap2D_GetTmxFileAttr (Urho3D::TileMap2D *_target)
  26816. {
  26817. return _target->GetTmxFileAttr ();
  26818. }
  26819. }