binding.cpp 719 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624
  1. // Autogenerated, do not edit
  2. #include "../../Native/AllUrho.h"
  3. #include "../../Native/interop.h"
  4. using namespace Urho3D;
  5. extern "C" {
  6. DllExport void *
  7. RefCount_RefCount ()
  8. {
  9. return new RefCount();
  10. }
  11. DllExport void *
  12. RefCounted_RefCounted ()
  13. {
  14. return new RefCounted();
  15. }
  16. DllExport void
  17. RefCounted_AddRef (Urho3D::RefCounted *_target)
  18. {
  19. _target->AddRef ();
  20. }
  21. DllExport void
  22. RefCounted_ReleaseRef (Urho3D::RefCounted *_target)
  23. {
  24. _target->ReleaseRef ();
  25. }
  26. DllExport int
  27. RefCounted_Refs (Urho3D::RefCounted *_target)
  28. {
  29. return _target->Refs ();
  30. }
  31. DllExport int
  32. RefCounted_WeakRefs (Urho3D::RefCounted *_target)
  33. {
  34. return _target->WeakRefs ();
  35. }
  36. DllExport Urho3D::RefCount *
  37. RefCounted_RefCountPtr (Urho3D::RefCounted *_target)
  38. {
  39. return _target->RefCountPtr ();
  40. }
  41. DllExport void *
  42. UrhoString_String ()
  43. {
  44. return new String();
  45. }
  46. DllExport void *
  47. UrhoString_String0 (const char * str)
  48. {
  49. return new String(Urho3D::String(str));
  50. }
  51. DllExport void *
  52. UrhoString_String1 (int value)
  53. {
  54. return new String(value);
  55. }
  56. DllExport void *
  57. UrhoString_String2 (short value)
  58. {
  59. return new String(value);
  60. }
  61. DllExport void *
  62. UrhoString_String3 (long value)
  63. {
  64. return new String(value);
  65. }
  66. DllExport void *
  67. UrhoString_String4 (long long value)
  68. {
  69. return new String(value);
  70. }
  71. DllExport void *
  72. UrhoString_String5 (unsigned int value)
  73. {
  74. return new String(value);
  75. }
  76. DllExport void *
  77. UrhoString_String6 (unsigned short value)
  78. {
  79. return new String(value);
  80. }
  81. DllExport void *
  82. UrhoString_String7 (unsigned long value)
  83. {
  84. return new String(value);
  85. }
  86. DllExport void *
  87. UrhoString_String8 (unsigned long long value)
  88. {
  89. return new String(value);
  90. }
  91. DllExport void *
  92. UrhoString_String9 (float value)
  93. {
  94. return new String(value);
  95. }
  96. DllExport void *
  97. UrhoString_String10 (double value)
  98. {
  99. return new String(value);
  100. }
  101. DllExport void *
  102. UrhoString_String11 (bool value)
  103. {
  104. return new String(value);
  105. }
  106. DllExport void
  107. UrhoString_Replace (Urho3D::String *_target, const char * replaceThis, const char * replaceWith, bool caseSensitive)
  108. {
  109. _target->Replace (Urho3D::String(replaceThis), Urho3D::String(replaceWith), caseSensitive);
  110. }
  111. DllExport void
  112. UrhoString_Replace12 (Urho3D::String *_target, unsigned int pos, unsigned int length, const char * replaceWith)
  113. {
  114. _target->Replace (pos, length, Urho3D::String(replaceWith));
  115. }
  116. DllExport const char *
  117. UrhoString_Replaced (Urho3D::String *_target, const char * replaceThis, const char * replaceWith, bool caseSensitive)
  118. {
  119. return stringdup((_target->Replaced (Urho3D::String(replaceThis), Urho3D::String(replaceWith), caseSensitive)).CString ());
  120. }
  121. DllExport void
  122. UrhoString_Insert (Urho3D::String *_target, unsigned int pos, const char * str)
  123. {
  124. _target->Insert (pos, Urho3D::String(str));
  125. }
  126. DllExport void
  127. UrhoString_Erase (Urho3D::String *_target, unsigned int pos, unsigned int length)
  128. {
  129. _target->Erase (pos, length);
  130. }
  131. DllExport void
  132. UrhoString_Resize (Urho3D::String *_target, unsigned int newLength)
  133. {
  134. _target->Resize (newLength);
  135. }
  136. DllExport void
  137. UrhoString_Reserve (Urho3D::String *_target, unsigned int newCapacity)
  138. {
  139. _target->Reserve (newCapacity);
  140. }
  141. DllExport void
  142. UrhoString_Compact (Urho3D::String *_target)
  143. {
  144. _target->Compact ();
  145. }
  146. DllExport void
  147. UrhoString_Clear (Urho3D::String *_target)
  148. {
  149. _target->Clear ();
  150. }
  151. DllExport const char *
  152. UrhoString_Substring (Urho3D::String *_target, unsigned int pos)
  153. {
  154. return stringdup((_target->Substring (pos)).CString ());
  155. }
  156. DllExport const char *
  157. UrhoString_Substring13 (Urho3D::String *_target, unsigned int pos, unsigned int length)
  158. {
  159. return stringdup((_target->Substring (pos, length)).CString ());
  160. }
  161. DllExport const char *
  162. UrhoString_Trimmed (Urho3D::String *_target)
  163. {
  164. return stringdup((_target->Trimmed ()).CString ());
  165. }
  166. DllExport const char *
  167. UrhoString_ToUpper (Urho3D::String *_target)
  168. {
  169. return stringdup((_target->ToUpper ()).CString ());
  170. }
  171. DllExport const char *
  172. UrhoString_ToLower (Urho3D::String *_target)
  173. {
  174. return stringdup((_target->ToLower ()).CString ());
  175. }
  176. DllExport unsigned int
  177. UrhoString_Find (Urho3D::String *_target, const char * str, unsigned int startPos, bool caseSensitive)
  178. {
  179. return _target->Find (Urho3D::String(str), startPos, caseSensitive);
  180. }
  181. DllExport unsigned int
  182. UrhoString_FindLast (Urho3D::String *_target, const char * str, unsigned int startPos, bool caseSensitive)
  183. {
  184. return _target->FindLast (Urho3D::String(str), startPos, caseSensitive);
  185. }
  186. DllExport int
  187. UrhoString_StartsWith (Urho3D::String *_target, const char * str, bool caseSensitive)
  188. {
  189. return _target->StartsWith (Urho3D::String(str), caseSensitive);
  190. }
  191. DllExport int
  192. UrhoString_EndsWith (Urho3D::String *_target, const char * str, bool caseSensitive)
  193. {
  194. return _target->EndsWith (Urho3D::String(str), caseSensitive);
  195. }
  196. DllExport unsigned int
  197. UrhoString_Length (Urho3D::String *_target)
  198. {
  199. return _target->Length ();
  200. }
  201. DllExport unsigned int
  202. UrhoString_Capacity (Urho3D::String *_target)
  203. {
  204. return _target->Capacity ();
  205. }
  206. DllExport int
  207. UrhoString_Empty (Urho3D::String *_target)
  208. {
  209. return _target->Empty ();
  210. }
  211. DllExport int
  212. UrhoString_Compare (Urho3D::String *_target, const char * str, bool caseSensitive)
  213. {
  214. return _target->Compare (Urho3D::String(str), caseSensitive);
  215. }
  216. DllExport int
  217. UrhoString_Contains (Urho3D::String *_target, const char * str, bool caseSensitive)
  218. {
  219. return _target->Contains (Urho3D::String(str), caseSensitive);
  220. }
  221. DllExport unsigned int
  222. UrhoString_LengthUTF8 (Urho3D::String *_target)
  223. {
  224. return _target->LengthUTF8 ();
  225. }
  226. DllExport unsigned int
  227. UrhoString_ByteOffsetUTF8 (Urho3D::String *_target, unsigned int index)
  228. {
  229. return _target->ByteOffsetUTF8 (index);
  230. }
  231. DllExport unsigned int
  232. UrhoString_AtUTF8 (Urho3D::String *_target, unsigned int index)
  233. {
  234. return _target->AtUTF8 (index);
  235. }
  236. DllExport void
  237. UrhoString_ReplaceUTF8 (Urho3D::String *_target, unsigned int index, unsigned int unicodeChar)
  238. {
  239. _target->ReplaceUTF8 (index, unicodeChar);
  240. }
  241. DllExport const char *
  242. UrhoString_SubstringUTF8 (Urho3D::String *_target, unsigned int pos)
  243. {
  244. return stringdup((_target->SubstringUTF8 (pos)).CString ());
  245. }
  246. DllExport const char *
  247. UrhoString_SubstringUTF814 (Urho3D::String *_target, unsigned int pos, unsigned int length)
  248. {
  249. return stringdup((_target->SubstringUTF8 (pos, length)).CString ());
  250. }
  251. DllExport unsigned int
  252. UrhoString_ToHash (Urho3D::String *_target)
  253. {
  254. return _target->ToHash ();
  255. }
  256. // Urho3D::Variant overloads begin:
  257. DllExport void
  258. AttributeAccessor_Set0 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Vector3 & src)
  259. {
  260. _target->Set (ptr, (src));
  261. }
  262. DllExport void
  263. AttributeAccessor_Set1 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::IntRect & src)
  264. {
  265. _target->Set (ptr, (src));
  266. }
  267. DllExport void
  268. AttributeAccessor_Set2 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Color & src)
  269. {
  270. _target->Set (ptr, (src));
  271. }
  272. DllExport void
  273. AttributeAccessor_Set3 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Vector2 & src)
  274. {
  275. _target->Set (ptr, (src));
  276. }
  277. DllExport void
  278. AttributeAccessor_Set4 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Vector4 & src)
  279. {
  280. _target->Set (ptr, (src));
  281. }
  282. DllExport void
  283. AttributeAccessor_Set5 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::IntVector2 & src)
  284. {
  285. _target->Set (ptr, (src));
  286. }
  287. DllExport void
  288. AttributeAccessor_Set6 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Quaternion & src)
  289. {
  290. _target->Set (ptr, (src));
  291. }
  292. DllExport void
  293. AttributeAccessor_Set7 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Matrix4 & src)
  294. {
  295. _target->Set (ptr, (src));
  296. }
  297. DllExport void
  298. AttributeAccessor_Set8 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const class Urho3D::Matrix3x4 & src)
  299. {
  300. _target->Set (ptr, (src));
  301. }
  302. DllExport void
  303. AttributeAccessor_Set9 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, int src)
  304. {
  305. _target->Set (ptr, (src));
  306. }
  307. DllExport void
  308. AttributeAccessor_Set10 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, float src)
  309. {
  310. _target->Set (ptr, (src));
  311. }
  312. DllExport void
  313. AttributeAccessor_Set11 (Urho3D::AttributeAccessor *_target, Urho3D::Serializable * ptr, const char * src)
  314. {
  315. _target->Set (ptr, Urho3D::String(src));
  316. }
  317. DllExport void
  318. AttributeAccessor_Set12 (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_GetGlobalVar0 (Urho3D::Object *_target, int key)
  396. {
  397. return *((Interop::Vector3 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetVector3()));
  398. }
  399. DllExport Interop::IntRect
  400. UrhoObject_GetGlobalVar1 (Urho3D::Object *_target, int key)
  401. {
  402. return *((Interop::IntRect *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetIntRect()));
  403. }
  404. DllExport Interop::Color
  405. UrhoObject_GetGlobalVar2 (Urho3D::Object *_target, int key)
  406. {
  407. return *((Interop::Color *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetColor()));
  408. }
  409. DllExport Interop::Vector2
  410. UrhoObject_GetGlobalVar3 (Urho3D::Object *_target, int key)
  411. {
  412. return *((Interop::Vector2 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetVector2()));
  413. }
  414. DllExport Interop::Vector4
  415. UrhoObject_GetGlobalVar4 (Urho3D::Object *_target, int key)
  416. {
  417. return *((Interop::Vector4 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetVector4()));
  418. }
  419. DllExport Interop::IntVector2
  420. UrhoObject_GetGlobalVar5 (Urho3D::Object *_target, int key)
  421. {
  422. return *((Interop::IntVector2 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetIntVector2()));
  423. }
  424. DllExport Interop::Quaternion
  425. UrhoObject_GetGlobalVar6 (Urho3D::Object *_target, int key)
  426. {
  427. return *((Interop::Quaternion *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetQuaternion()));
  428. }
  429. DllExport Interop::Matrix4
  430. UrhoObject_GetGlobalVar7 (Urho3D::Object *_target, int key)
  431. {
  432. return *((Interop::Matrix4 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetMatrix4()));
  433. }
  434. DllExport Interop::Matrix3x4
  435. UrhoObject_GetGlobalVar8 (Urho3D::Object *_target, int key)
  436. {
  437. return *((Interop::Matrix3x4 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetMatrix3x4()));
  438. }
  439. DllExport int
  440. UrhoObject_GetGlobalVar9 (Urho3D::Object *_target, int key)
  441. {
  442. return (_target->GetGlobalVar (Urho3D::StringHash(key)).GetInt());
  443. }
  444. DllExport float
  445. UrhoObject_GetGlobalVar10 (Urho3D::Object *_target, int key)
  446. {
  447. return (_target->GetGlobalVar (Urho3D::StringHash(key)).GetFloat());
  448. }
  449. DllExport const char *
  450. UrhoObject_GetGlobalVar11 (Urho3D::Object *_target, int key)
  451. {
  452. return stringdup(_target->GetGlobalVar (Urho3D::StringHash(key)).GetString().CString());
  453. }
  454. DllExport bool
  455. UrhoObject_GetGlobalVar12 (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_SetGlobalVar0 (Urho3D::Object *_target, int key, const class Urho3D::Vector3 & value)
  463. {
  464. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  465. }
  466. DllExport void
  467. UrhoObject_SetGlobalVar1 (Urho3D::Object *_target, int key, const class Urho3D::IntRect & value)
  468. {
  469. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  470. }
  471. DllExport void
  472. UrhoObject_SetGlobalVar2 (Urho3D::Object *_target, int key, const class Urho3D::Color & value)
  473. {
  474. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  475. }
  476. DllExport void
  477. UrhoObject_SetGlobalVar3 (Urho3D::Object *_target, int key, const class Urho3D::Vector2 & value)
  478. {
  479. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  480. }
  481. DllExport void
  482. UrhoObject_SetGlobalVar4 (Urho3D::Object *_target, int key, const class Urho3D::Vector4 & value)
  483. {
  484. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  485. }
  486. DllExport void
  487. UrhoObject_SetGlobalVar5 (Urho3D::Object *_target, int key, const class Urho3D::IntVector2 & value)
  488. {
  489. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  490. }
  491. DllExport void
  492. UrhoObject_SetGlobalVar6 (Urho3D::Object *_target, int key, const class Urho3D::Quaternion & value)
  493. {
  494. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  495. }
  496. DllExport void
  497. UrhoObject_SetGlobalVar7 (Urho3D::Object *_target, int key, const class Urho3D::Matrix4 & value)
  498. {
  499. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  500. }
  501. DllExport void
  502. UrhoObject_SetGlobalVar8 (Urho3D::Object *_target, int key, const class Urho3D::Matrix3x4 & value)
  503. {
  504. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  505. }
  506. DllExport void
  507. UrhoObject_SetGlobalVar9 (Urho3D::Object *_target, int key, int value)
  508. {
  509. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  510. }
  511. DllExport void
  512. UrhoObject_SetGlobalVar10 (Urho3D::Object *_target, int key, float value)
  513. {
  514. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  515. }
  516. DllExport void
  517. UrhoObject_SetGlobalVar11 (Urho3D::Object *_target, int key, const char * value)
  518. {
  519. _target->SetGlobalVar (Urho3D::StringHash(key), Urho3D::String(value));
  520. }
  521. DllExport void
  522. UrhoObject_SetGlobalVar12 (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 Urho3D::Object *
  563. ObjectFactory_CreateObject (Urho3D::ObjectFactory *_target)
  564. {
  565. auto copy = _target->CreateObject ();
  566. auto plain = copy.Get();
  567. copy.Detach();
  568. delete copy;
  569. return plain;
  570. }
  571. DllExport Urho3D::Context *
  572. ObjectFactory_GetContext (Urho3D::ObjectFactory *_target)
  573. {
  574. return _target->GetContext ();
  575. }
  576. DllExport const class Urho3D::TypeInfo *
  577. ObjectFactory_GetTypeInfo (Urho3D::ObjectFactory *_target)
  578. {
  579. return _target->GetTypeInfo ();
  580. }
  581. DllExport int
  582. ObjectFactory_GetType (Urho3D::ObjectFactory *_target)
  583. {
  584. return (_target->GetType ()).Value ();
  585. }
  586. DllExport const char *
  587. ObjectFactory_GetTypeName (Urho3D::ObjectFactory *_target)
  588. {
  589. return stringdup((_target->GetTypeName ()).CString ());
  590. }
  591. DllExport int
  592. Serializable_GetType (Urho3D::Serializable *_target)
  593. {
  594. return (_target->GetType ()).Value ();
  595. }
  596. DllExport const char *
  597. Serializable_GetTypeName (Urho3D::Serializable *_target)
  598. {
  599. return stringdup((_target->GetTypeName ()).CString ());
  600. }
  601. DllExport int
  602. Serializable_GetTypeStatic ()
  603. {
  604. return (Serializable::GetTypeStatic ()).Value ();
  605. }
  606. DllExport const char *
  607. Serializable_GetTypeNameStatic ()
  608. {
  609. return stringdup((Serializable::GetTypeNameStatic ()).CString ());
  610. }
  611. DllExport void *
  612. Serializable_Serializable (Urho3D::Context * context)
  613. {
  614. return WeakPtr<Serializable>(new Serializable(context));
  615. }
  616. DllExport int
  617. Serializable_Load_File (Urho3D::Serializable *_target, File * source, bool setInstanceDefault)
  618. {
  619. return _target->Load (*source, setInstanceDefault);
  620. }
  621. DllExport int
  622. Serializable_Load_MemoryBuffer (Urho3D::Serializable *_target, MemoryBuffer * source, bool setInstanceDefault)
  623. {
  624. return _target->Load (*source, setInstanceDefault);
  625. }
  626. DllExport int
  627. Serializable_Save_File (Urho3D::Serializable *_target, File * dest)
  628. {
  629. return _target->Save (*dest);
  630. }
  631. DllExport int
  632. Serializable_Save_MemoryBuffer (Urho3D::Serializable *_target, MemoryBuffer * dest)
  633. {
  634. return _target->Save (*dest);
  635. }
  636. DllExport int
  637. Serializable_LoadXML (Urho3D::Serializable *_target, const class Urho3D::XMLElement & source, bool setInstanceDefault)
  638. {
  639. return _target->LoadXML (source, setInstanceDefault);
  640. }
  641. DllExport int
  642. Serializable_SaveXML (Urho3D::Serializable *_target, Urho3D::XMLElement & dest)
  643. {
  644. return _target->SaveXML (dest);
  645. }
  646. DllExport void
  647. Serializable_ApplyAttributes (Urho3D::Serializable *_target)
  648. {
  649. _target->ApplyAttributes ();
  650. }
  651. DllExport int
  652. Serializable_SaveDefaultAttributes (Urho3D::Serializable *_target)
  653. {
  654. return _target->SaveDefaultAttributes ();
  655. }
  656. DllExport void
  657. Serializable_MarkNetworkUpdate (Urho3D::Serializable *_target)
  658. {
  659. _target->MarkNetworkUpdate ();
  660. }
  661. // Urho3D::Variant overloads begin:
  662. DllExport int
  663. Serializable_SetAttribute0 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Vector3 & value)
  664. {
  665. return _target->SetAttribute (index, (value));
  666. }
  667. DllExport int
  668. Serializable_SetAttribute1 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::IntRect & value)
  669. {
  670. return _target->SetAttribute (index, (value));
  671. }
  672. DllExport int
  673. Serializable_SetAttribute2 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Color & value)
  674. {
  675. return _target->SetAttribute (index, (value));
  676. }
  677. DllExport int
  678. Serializable_SetAttribute3 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Vector2 & value)
  679. {
  680. return _target->SetAttribute (index, (value));
  681. }
  682. DllExport int
  683. Serializable_SetAttribute4 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Vector4 & value)
  684. {
  685. return _target->SetAttribute (index, (value));
  686. }
  687. DllExport int
  688. Serializable_SetAttribute5 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::IntVector2 & value)
  689. {
  690. return _target->SetAttribute (index, (value));
  691. }
  692. DllExport int
  693. Serializable_SetAttribute6 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Quaternion & value)
  694. {
  695. return _target->SetAttribute (index, (value));
  696. }
  697. DllExport int
  698. Serializable_SetAttribute7 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Matrix4 & value)
  699. {
  700. return _target->SetAttribute (index, (value));
  701. }
  702. DllExport int
  703. Serializable_SetAttribute8 (Urho3D::Serializable *_target, unsigned int index, const class Urho3D::Matrix3x4 & value)
  704. {
  705. return _target->SetAttribute (index, (value));
  706. }
  707. DllExport int
  708. Serializable_SetAttribute9 (Urho3D::Serializable *_target, unsigned int index, int value)
  709. {
  710. return _target->SetAttribute (index, (value));
  711. }
  712. DllExport int
  713. Serializable_SetAttribute10 (Urho3D::Serializable *_target, unsigned int index, float value)
  714. {
  715. return _target->SetAttribute (index, (value));
  716. }
  717. DllExport int
  718. Serializable_SetAttribute11 (Urho3D::Serializable *_target, unsigned int index, const char * value)
  719. {
  720. return _target->SetAttribute (index, Urho3D::String(value));
  721. }
  722. DllExport int
  723. Serializable_SetAttribute12 (Urho3D::Serializable *_target, unsigned int index, bool value)
  724. {
  725. return _target->SetAttribute (index, (value));
  726. }
  727. // Urho3D::Variant overloads end.
  728. // Urho3D::Variant overloads begin:
  729. DllExport int
  730. Serializable_SetAttribute00 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Vector3 & value)
  731. {
  732. return _target->SetAttribute (Urho3D::String(name), (value));
  733. }
  734. DllExport int
  735. Serializable_SetAttribute01 (Urho3D::Serializable *_target, const char * name, const class Urho3D::IntRect & value)
  736. {
  737. return _target->SetAttribute (Urho3D::String(name), (value));
  738. }
  739. DllExport int
  740. Serializable_SetAttribute02 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Color & value)
  741. {
  742. return _target->SetAttribute (Urho3D::String(name), (value));
  743. }
  744. DllExport int
  745. Serializable_SetAttribute03 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Vector2 & value)
  746. {
  747. return _target->SetAttribute (Urho3D::String(name), (value));
  748. }
  749. DllExport int
  750. Serializable_SetAttribute04 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Vector4 & value)
  751. {
  752. return _target->SetAttribute (Urho3D::String(name), (value));
  753. }
  754. DllExport int
  755. Serializable_SetAttribute05 (Urho3D::Serializable *_target, const char * name, const class Urho3D::IntVector2 & value)
  756. {
  757. return _target->SetAttribute (Urho3D::String(name), (value));
  758. }
  759. DllExport int
  760. Serializable_SetAttribute06 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Quaternion & value)
  761. {
  762. return _target->SetAttribute (Urho3D::String(name), (value));
  763. }
  764. DllExport int
  765. Serializable_SetAttribute07 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Matrix4 & value)
  766. {
  767. return _target->SetAttribute (Urho3D::String(name), (value));
  768. }
  769. DllExport int
  770. Serializable_SetAttribute08 (Urho3D::Serializable *_target, const char * name, const class Urho3D::Matrix3x4 & value)
  771. {
  772. return _target->SetAttribute (Urho3D::String(name), (value));
  773. }
  774. DllExport int
  775. Serializable_SetAttribute09 (Urho3D::Serializable *_target, const char * name, int value)
  776. {
  777. return _target->SetAttribute (Urho3D::String(name), (value));
  778. }
  779. DllExport int
  780. Serializable_SetAttribute010 (Urho3D::Serializable *_target, const char * name, float value)
  781. {
  782. return _target->SetAttribute (Urho3D::String(name), (value));
  783. }
  784. DllExport int
  785. Serializable_SetAttribute011 (Urho3D::Serializable *_target, const char * name, const char * value)
  786. {
  787. return _target->SetAttribute (Urho3D::String(name), Urho3D::String(value));
  788. }
  789. DllExport int
  790. Serializable_SetAttribute012 (Urho3D::Serializable *_target, const char * name, bool value)
  791. {
  792. return _target->SetAttribute (Urho3D::String(name), (value));
  793. }
  794. // Urho3D::Variant overloads end.
  795. DllExport void
  796. Serializable_ResetToDefault (Urho3D::Serializable *_target)
  797. {
  798. _target->ResetToDefault ();
  799. }
  800. DllExport void
  801. Serializable_RemoveInstanceDefault (Urho3D::Serializable *_target)
  802. {
  803. _target->RemoveInstanceDefault ();
  804. }
  805. DllExport void
  806. Serializable_SetTemporary (Urho3D::Serializable *_target, bool enable)
  807. {
  808. _target->SetTemporary (enable);
  809. }
  810. DllExport void
  811. Serializable_SetInterceptNetworkUpdate (Urho3D::Serializable *_target, const char * attributeName, bool enable)
  812. {
  813. _target->SetInterceptNetworkUpdate (Urho3D::String(attributeName), enable);
  814. }
  815. DllExport void
  816. Serializable_AllocateNetworkState (Urho3D::Serializable *_target)
  817. {
  818. _target->AllocateNetworkState ();
  819. }
  820. DllExport void
  821. Serializable_WriteInitialDeltaUpdate_File (Urho3D::Serializable *_target, File * dest, unsigned char timeStamp)
  822. {
  823. _target->WriteInitialDeltaUpdate (*dest, timeStamp);
  824. }
  825. DllExport void
  826. Serializable_WriteInitialDeltaUpdate_MemoryBuffer (Urho3D::Serializable *_target, MemoryBuffer * dest, unsigned char timeStamp)
  827. {
  828. _target->WriteInitialDeltaUpdate (*dest, timeStamp);
  829. }
  830. DllExport void
  831. Serializable_WriteLatestDataUpdate_File (Urho3D::Serializable *_target, File * dest, unsigned char timeStamp)
  832. {
  833. _target->WriteLatestDataUpdate (*dest, timeStamp);
  834. }
  835. DllExport void
  836. Serializable_WriteLatestDataUpdate_MemoryBuffer (Urho3D::Serializable *_target, MemoryBuffer * dest, unsigned char timeStamp)
  837. {
  838. _target->WriteLatestDataUpdate (*dest, timeStamp);
  839. }
  840. DllExport int
  841. Serializable_ReadDeltaUpdate_File (Urho3D::Serializable *_target, File * source)
  842. {
  843. return _target->ReadDeltaUpdate (*source);
  844. }
  845. DllExport int
  846. Serializable_ReadDeltaUpdate_MemoryBuffer (Urho3D::Serializable *_target, MemoryBuffer * source)
  847. {
  848. return _target->ReadDeltaUpdate (*source);
  849. }
  850. DllExport int
  851. Serializable_ReadLatestDataUpdate_File (Urho3D::Serializable *_target, File * source)
  852. {
  853. return _target->ReadLatestDataUpdate (*source);
  854. }
  855. DllExport int
  856. Serializable_ReadLatestDataUpdate_MemoryBuffer (Urho3D::Serializable *_target, MemoryBuffer * source)
  857. {
  858. return _target->ReadLatestDataUpdate (*source);
  859. }
  860. DllExport Urho3D::Variant
  861. Serializable_GetAttribute (Urho3D::Serializable *_target, unsigned int index)
  862. {
  863. return _target->GetAttribute (index);
  864. }
  865. DllExport Urho3D::Variant
  866. Serializable_GetAttribute1 (Urho3D::Serializable *_target, const char * name)
  867. {
  868. return _target->GetAttribute (Urho3D::String(name));
  869. }
  870. DllExport Urho3D::Variant
  871. Serializable_GetAttributeDefault (Urho3D::Serializable *_target, unsigned int index)
  872. {
  873. return _target->GetAttributeDefault (index);
  874. }
  875. DllExport Urho3D::Variant
  876. Serializable_GetAttributeDefault2 (Urho3D::Serializable *_target, const char * name)
  877. {
  878. return _target->GetAttributeDefault (Urho3D::String(name));
  879. }
  880. DllExport unsigned int
  881. Serializable_GetNumAttributes (Urho3D::Serializable *_target)
  882. {
  883. return _target->GetNumAttributes ();
  884. }
  885. DllExport unsigned int
  886. Serializable_GetNumNetworkAttributes (Urho3D::Serializable *_target)
  887. {
  888. return _target->GetNumNetworkAttributes ();
  889. }
  890. DllExport int
  891. Serializable_IsTemporary (Urho3D::Serializable *_target)
  892. {
  893. return _target->IsTemporary ();
  894. }
  895. DllExport int
  896. Serializable_GetInterceptNetworkUpdate (Urho3D::Serializable *_target, const char * attributeName)
  897. {
  898. return _target->GetInterceptNetworkUpdate (Urho3D::String(attributeName));
  899. }
  900. DllExport Urho3D::NetworkState *
  901. Serializable_GetNetworkState (Urho3D::Serializable *_target)
  902. {
  903. return _target->GetNetworkState ();
  904. }
  905. DllExport void *
  906. ValueAnimationInfo_ValueAnimationInfo (Urho3D::ValueAnimation * animation, enum Urho3D::WrapMode wrapMode, float speed)
  907. {
  908. return WeakPtr<ValueAnimationInfo>(new ValueAnimationInfo(animation, wrapMode, speed));
  909. }
  910. DllExport void *
  911. ValueAnimationInfo_ValueAnimationInfo0 (Urho3D::Object * target, Urho3D::ValueAnimation * animation, enum Urho3D::WrapMode wrapMode, float speed)
  912. {
  913. return WeakPtr<ValueAnimationInfo>(new ValueAnimationInfo(target, animation, wrapMode, speed));
  914. }
  915. DllExport int
  916. ValueAnimationInfo_Update (Urho3D::ValueAnimationInfo *_target, float timeStep)
  917. {
  918. return _target->Update (timeStep);
  919. }
  920. DllExport int
  921. ValueAnimationInfo_SetTime (Urho3D::ValueAnimationInfo *_target, float time)
  922. {
  923. return _target->SetTime (time);
  924. }
  925. DllExport void
  926. ValueAnimationInfo_SetWrapMode (Urho3D::ValueAnimationInfo *_target, enum Urho3D::WrapMode wrapMode)
  927. {
  928. _target->SetWrapMode (wrapMode);
  929. }
  930. DllExport void
  931. ValueAnimationInfo_SetSpeed (Urho3D::ValueAnimationInfo *_target, float speed)
  932. {
  933. _target->SetSpeed (speed);
  934. }
  935. DllExport Urho3D::Object *
  936. ValueAnimationInfo_GetTarget (Urho3D::ValueAnimationInfo *_target)
  937. {
  938. return _target->GetTarget ();
  939. }
  940. DllExport Urho3D::ValueAnimation *
  941. ValueAnimationInfo_GetAnimation (Urho3D::ValueAnimationInfo *_target)
  942. {
  943. return _target->GetAnimation ();
  944. }
  945. DllExport enum Urho3D::WrapMode
  946. ValueAnimationInfo_GetWrapMode (Urho3D::ValueAnimationInfo *_target)
  947. {
  948. return _target->GetWrapMode ();
  949. }
  950. DllExport float
  951. ValueAnimationInfo_GetTime (Urho3D::ValueAnimationInfo *_target)
  952. {
  953. return _target->GetTime ();
  954. }
  955. DllExport float
  956. ValueAnimationInfo_GetSpeed (Urho3D::ValueAnimationInfo *_target)
  957. {
  958. return _target->GetSpeed ();
  959. }
  960. DllExport int
  961. Animatable_GetType (Urho3D::Animatable *_target)
  962. {
  963. return (_target->GetType ()).Value ();
  964. }
  965. DllExport const char *
  966. Animatable_GetTypeName (Urho3D::Animatable *_target)
  967. {
  968. return stringdup((_target->GetTypeName ()).CString ());
  969. }
  970. DllExport int
  971. Animatable_GetTypeStatic ()
  972. {
  973. return (Animatable::GetTypeStatic ()).Value ();
  974. }
  975. DllExport const char *
  976. Animatable_GetTypeNameStatic ()
  977. {
  978. return stringdup((Animatable::GetTypeNameStatic ()).CString ());
  979. }
  980. DllExport void
  981. Animatable_RegisterObject (Urho3D::Context * context)
  982. {
  983. Animatable::RegisterObject (context);
  984. }
  985. DllExport int
  986. Animatable_LoadXML (Urho3D::Animatable *_target, const class Urho3D::XMLElement & source, bool setInstanceDefault)
  987. {
  988. return _target->LoadXML (source, setInstanceDefault);
  989. }
  990. DllExport int
  991. Animatable_SaveXML (Urho3D::Animatable *_target, Urho3D::XMLElement & dest)
  992. {
  993. return _target->SaveXML (dest);
  994. }
  995. DllExport void
  996. Animatable_SetAnimationEnabled (Urho3D::Animatable *_target, bool enable)
  997. {
  998. _target->SetAnimationEnabled (enable);
  999. }
  1000. DllExport void
  1001. Animatable_SetAnimationTime (Urho3D::Animatable *_target, float time)
  1002. {
  1003. _target->SetAnimationTime (time);
  1004. }
  1005. DllExport void
  1006. Animatable_SetObjectAnimation (Urho3D::Animatable *_target, Urho3D::ObjectAnimation * objectAnimation)
  1007. {
  1008. _target->SetObjectAnimation (objectAnimation);
  1009. }
  1010. DllExport void
  1011. Animatable_SetAttributeAnimation (Urho3D::Animatable *_target, const char * name, Urho3D::ValueAnimation * attributeAnimation, enum Urho3D::WrapMode wrapMode, float speed)
  1012. {
  1013. _target->SetAttributeAnimation (Urho3D::String(name), attributeAnimation, wrapMode, speed);
  1014. }
  1015. DllExport void
  1016. Animatable_SetAttributeAnimationWrapMode (Urho3D::Animatable *_target, const char * name, enum Urho3D::WrapMode wrapMode)
  1017. {
  1018. _target->SetAttributeAnimationWrapMode (Urho3D::String(name), wrapMode);
  1019. }
  1020. DllExport void
  1021. Animatable_SetAttributeAnimationSpeed (Urho3D::Animatable *_target, const char * name, float speed)
  1022. {
  1023. _target->SetAttributeAnimationSpeed (Urho3D::String(name), speed);
  1024. }
  1025. DllExport void
  1026. Animatable_SetAttributeAnimationTime (Urho3D::Animatable *_target, const char * name, float time)
  1027. {
  1028. _target->SetAttributeAnimationTime (Urho3D::String(name), time);
  1029. }
  1030. DllExport void
  1031. Animatable_RemoveObjectAnimation (Urho3D::Animatable *_target)
  1032. {
  1033. _target->RemoveObjectAnimation ();
  1034. }
  1035. DllExport void
  1036. Animatable_RemoveAttributeAnimation (Urho3D::Animatable *_target, const char * name)
  1037. {
  1038. _target->RemoveAttributeAnimation (Urho3D::String(name));
  1039. }
  1040. DllExport int
  1041. Animatable_GetAnimationEnabled (Urho3D::Animatable *_target)
  1042. {
  1043. return _target->GetAnimationEnabled ();
  1044. }
  1045. DllExport Urho3D::ObjectAnimation *
  1046. Animatable_GetObjectAnimation (Urho3D::Animatable *_target)
  1047. {
  1048. return _target->GetObjectAnimation ();
  1049. }
  1050. DllExport Urho3D::ValueAnimation *
  1051. Animatable_GetAttributeAnimation (Urho3D::Animatable *_target, const char * name)
  1052. {
  1053. return _target->GetAttributeAnimation (Urho3D::String(name));
  1054. }
  1055. DllExport enum Urho3D::WrapMode
  1056. Animatable_GetAttributeAnimationWrapMode (Urho3D::Animatable *_target, const char * name)
  1057. {
  1058. return _target->GetAttributeAnimationWrapMode (Urho3D::String(name));
  1059. }
  1060. DllExport float
  1061. Animatable_GetAttributeAnimationSpeed (Urho3D::Animatable *_target, const char * name)
  1062. {
  1063. return _target->GetAttributeAnimationSpeed (Urho3D::String(name));
  1064. }
  1065. DllExport float
  1066. Animatable_GetAttributeAnimationTime (Urho3D::Animatable *_target, const char * name)
  1067. {
  1068. return _target->GetAttributeAnimationTime (Urho3D::String(name));
  1069. }
  1070. DllExport Urho3D::ResourceRef
  1071. Animatable_GetObjectAnimationAttr (Urho3D::Animatable *_target)
  1072. {
  1073. return _target->GetObjectAnimationAttr ();
  1074. }
  1075. DllExport int
  1076. Component_GetType (Urho3D::Component *_target)
  1077. {
  1078. return (_target->GetType ()).Value ();
  1079. }
  1080. DllExport const char *
  1081. Component_GetTypeName (Urho3D::Component *_target)
  1082. {
  1083. return stringdup((_target->GetTypeName ()).CString ());
  1084. }
  1085. DllExport int
  1086. Component_GetTypeStatic ()
  1087. {
  1088. return (Component::GetTypeStatic ()).Value ();
  1089. }
  1090. DllExport const char *
  1091. Component_GetTypeNameStatic ()
  1092. {
  1093. return stringdup((Component::GetTypeNameStatic ()).CString ());
  1094. }
  1095. DllExport void *
  1096. Component_Component (Urho3D::Context * context)
  1097. {
  1098. return WeakPtr<Component>(new Component(context));
  1099. }
  1100. DllExport void
  1101. Component_OnSetEnabled (Urho3D::Component *_target)
  1102. {
  1103. _target->OnSetEnabled ();
  1104. }
  1105. DllExport int
  1106. Component_Save_File (Urho3D::Component *_target, File * dest)
  1107. {
  1108. return _target->Save (*dest);
  1109. }
  1110. DllExport int
  1111. Component_Save_MemoryBuffer (Urho3D::Component *_target, MemoryBuffer * dest)
  1112. {
  1113. return _target->Save (*dest);
  1114. }
  1115. DllExport int
  1116. Component_SaveXML (Urho3D::Component *_target, Urho3D::XMLElement & dest)
  1117. {
  1118. return _target->SaveXML (dest);
  1119. }
  1120. DllExport void
  1121. Component_MarkNetworkUpdate (Urho3D::Component *_target)
  1122. {
  1123. _target->MarkNetworkUpdate ();
  1124. }
  1125. DllExport void
  1126. Component_DrawDebugGeometry (Urho3D::Component *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  1127. {
  1128. _target->DrawDebugGeometry (debug, depthTest);
  1129. }
  1130. DllExport void
  1131. Component_SetEnabled (Urho3D::Component *_target, bool enable)
  1132. {
  1133. _target->SetEnabled (enable);
  1134. }
  1135. DllExport void
  1136. Component_Remove (Urho3D::Component *_target)
  1137. {
  1138. _target->Remove ();
  1139. }
  1140. DllExport unsigned int
  1141. Component_GetID (Urho3D::Component *_target)
  1142. {
  1143. return _target->GetID ();
  1144. }
  1145. DllExport Urho3D::Node *
  1146. Component_GetNode (Urho3D::Component *_target)
  1147. {
  1148. return _target->GetNode ();
  1149. }
  1150. DllExport Urho3D::Scene *
  1151. Component_GetScene (Urho3D::Component *_target)
  1152. {
  1153. return _target->GetScene ();
  1154. }
  1155. DllExport int
  1156. Component_IsEnabled (Urho3D::Component *_target)
  1157. {
  1158. return _target->IsEnabled ();
  1159. }
  1160. DllExport int
  1161. Component_IsEnabledEffective (Urho3D::Component *_target)
  1162. {
  1163. return _target->IsEnabledEffective ();
  1164. }
  1165. DllExport Urho3D::Component *
  1166. Component_GetComponent (Urho3D::Component *_target, int type)
  1167. {
  1168. return _target->GetComponent (Urho3D::StringHash(type));
  1169. }
  1170. DllExport void
  1171. Component_AddReplicationState (Urho3D::Component *_target, Urho3D::ComponentReplicationState * state)
  1172. {
  1173. _target->AddReplicationState (state);
  1174. }
  1175. DllExport void
  1176. Component_PrepareNetworkUpdate (Urho3D::Component *_target)
  1177. {
  1178. _target->PrepareNetworkUpdate ();
  1179. }
  1180. DllExport void
  1181. Component_CleanupConnection (Urho3D::Component *_target, Urho3D::Connection * connection)
  1182. {
  1183. _target->CleanupConnection (connection);
  1184. }
  1185. DllExport int
  1186. Time_GetType (Urho3D::Time *_target)
  1187. {
  1188. return (_target->GetType ()).Value ();
  1189. }
  1190. DllExport const char *
  1191. Time_GetTypeName (Urho3D::Time *_target)
  1192. {
  1193. return stringdup((_target->GetTypeName ()).CString ());
  1194. }
  1195. DllExport int
  1196. Time_GetTypeStatic ()
  1197. {
  1198. return (Time::GetTypeStatic ()).Value ();
  1199. }
  1200. DllExport const char *
  1201. Time_GetTypeNameStatic ()
  1202. {
  1203. return stringdup((Time::GetTypeNameStatic ()).CString ());
  1204. }
  1205. DllExport void *
  1206. Time_Time (Urho3D::Context * context)
  1207. {
  1208. return WeakPtr<Time>(new Time(context));
  1209. }
  1210. DllExport void
  1211. Time_BeginFrame (Urho3D::Time *_target, float timeStep)
  1212. {
  1213. _target->BeginFrame (timeStep);
  1214. }
  1215. DllExport void
  1216. Time_EndFrame (Urho3D::Time *_target)
  1217. {
  1218. _target->EndFrame ();
  1219. }
  1220. DllExport void
  1221. Time_SetTimerPeriod (Urho3D::Time *_target, unsigned int mSec)
  1222. {
  1223. _target->SetTimerPeriod (mSec);
  1224. }
  1225. DllExport unsigned int
  1226. Time_GetFrameNumber (Urho3D::Time *_target)
  1227. {
  1228. return _target->GetFrameNumber ();
  1229. }
  1230. DllExport float
  1231. Time_GetTimeStep (Urho3D::Time *_target)
  1232. {
  1233. return _target->GetTimeStep ();
  1234. }
  1235. DllExport unsigned int
  1236. Time_GetTimerPeriod (Urho3D::Time *_target)
  1237. {
  1238. return _target->GetTimerPeriod ();
  1239. }
  1240. DllExport float
  1241. Time_GetElapsedTime (Urho3D::Time *_target)
  1242. {
  1243. return _target->GetElapsedTime ();
  1244. }
  1245. DllExport unsigned int
  1246. Time_GetSystemTime ()
  1247. {
  1248. return Time::GetSystemTime ();
  1249. }
  1250. DllExport unsigned int
  1251. Time_GetTimeSinceEpoch ()
  1252. {
  1253. return Time::GetTimeSinceEpoch ();
  1254. }
  1255. DllExport const char *
  1256. Time_GetTimeStamp ()
  1257. {
  1258. return stringdup((Time::GetTimeStamp ()).CString ());
  1259. }
  1260. DllExport void
  1261. Time_Sleep (unsigned int mSec)
  1262. {
  1263. Time::Sleep (mSec);
  1264. }
  1265. DllExport int
  1266. Resource_GetType (Urho3D::Resource *_target)
  1267. {
  1268. return (_target->GetType ()).Value ();
  1269. }
  1270. DllExport const char *
  1271. Resource_GetTypeName (Urho3D::Resource *_target)
  1272. {
  1273. return stringdup((_target->GetTypeName ()).CString ());
  1274. }
  1275. DllExport int
  1276. Resource_GetTypeStatic ()
  1277. {
  1278. return (Resource::GetTypeStatic ()).Value ();
  1279. }
  1280. DllExport const char *
  1281. Resource_GetTypeNameStatic ()
  1282. {
  1283. return stringdup((Resource::GetTypeNameStatic ()).CString ());
  1284. }
  1285. DllExport void *
  1286. Resource_Resource (Urho3D::Context * context)
  1287. {
  1288. return WeakPtr<Resource>(new Resource(context));
  1289. }
  1290. DllExport int
  1291. Resource_Load_File (Urho3D::Resource *_target, File * source)
  1292. {
  1293. return _target->Load (*source);
  1294. }
  1295. DllExport int
  1296. Resource_Load_MemoryBuffer (Urho3D::Resource *_target, MemoryBuffer * source)
  1297. {
  1298. return _target->Load (*source);
  1299. }
  1300. DllExport int
  1301. Resource_BeginLoad_File (Urho3D::Resource *_target, File * source)
  1302. {
  1303. return _target->BeginLoad (*source);
  1304. }
  1305. DllExport int
  1306. Resource_BeginLoad_MemoryBuffer (Urho3D::Resource *_target, MemoryBuffer * source)
  1307. {
  1308. return _target->BeginLoad (*source);
  1309. }
  1310. DllExport int
  1311. Resource_EndLoad (Urho3D::Resource *_target)
  1312. {
  1313. return _target->EndLoad ();
  1314. }
  1315. DllExport int
  1316. Resource_Save_File (Urho3D::Resource *_target, File * dest)
  1317. {
  1318. return _target->Save (*dest);
  1319. }
  1320. DllExport int
  1321. Resource_Save_MemoryBuffer (Urho3D::Resource *_target, MemoryBuffer * dest)
  1322. {
  1323. return _target->Save (*dest);
  1324. }
  1325. DllExport int
  1326. Resource_LoadFile (Urho3D::Resource *_target, const char * fileName)
  1327. {
  1328. return _target->LoadFile (Urho3D::String(fileName));
  1329. }
  1330. DllExport int
  1331. Resource_SaveFile (Urho3D::Resource *_target, const char * fileName)
  1332. {
  1333. return _target->SaveFile (Urho3D::String(fileName));
  1334. }
  1335. DllExport void
  1336. Resource_SetName (Urho3D::Resource *_target, const char * name)
  1337. {
  1338. _target->SetName (Urho3D::String(name));
  1339. }
  1340. DllExport void
  1341. Resource_SetMemoryUse (Urho3D::Resource *_target, unsigned int size)
  1342. {
  1343. _target->SetMemoryUse (size);
  1344. }
  1345. DllExport void
  1346. Resource_ResetUseTimer (Urho3D::Resource *_target)
  1347. {
  1348. _target->ResetUseTimer ();
  1349. }
  1350. DllExport void
  1351. Resource_SetAsyncLoadState (Urho3D::Resource *_target, enum Urho3D::AsyncLoadState newState)
  1352. {
  1353. _target->SetAsyncLoadState (newState);
  1354. }
  1355. DllExport const char *
  1356. Resource_GetName (Urho3D::Resource *_target)
  1357. {
  1358. return stringdup((_target->GetName ()).CString ());
  1359. }
  1360. DllExport int
  1361. Resource_GetNameHash (Urho3D::Resource *_target)
  1362. {
  1363. return (_target->GetNameHash ()).Value ();
  1364. }
  1365. DllExport unsigned int
  1366. Resource_GetMemoryUse (Urho3D::Resource *_target)
  1367. {
  1368. return _target->GetMemoryUse ();
  1369. }
  1370. DllExport unsigned int
  1371. Resource_GetUseTimer (Urho3D::Resource *_target)
  1372. {
  1373. return _target->GetUseTimer ();
  1374. }
  1375. DllExport enum Urho3D::AsyncLoadState
  1376. Resource_GetAsyncLoadState (Urho3D::Resource *_target)
  1377. {
  1378. return _target->GetAsyncLoadState ();
  1379. }
  1380. DllExport int
  1381. ResourceWithMetadata_GetType (Urho3D::ResourceWithMetadata *_target)
  1382. {
  1383. return (_target->GetType ()).Value ();
  1384. }
  1385. DllExport const char *
  1386. ResourceWithMetadata_GetTypeName (Urho3D::ResourceWithMetadata *_target)
  1387. {
  1388. return stringdup((_target->GetTypeName ()).CString ());
  1389. }
  1390. DllExport int
  1391. ResourceWithMetadata_GetTypeStatic ()
  1392. {
  1393. return (ResourceWithMetadata::GetTypeStatic ()).Value ();
  1394. }
  1395. DllExport const char *
  1396. ResourceWithMetadata_GetTypeNameStatic ()
  1397. {
  1398. return stringdup((ResourceWithMetadata::GetTypeNameStatic ()).CString ());
  1399. }
  1400. DllExport void *
  1401. ResourceWithMetadata_ResourceWithMetadata (Urho3D::Context * context)
  1402. {
  1403. return WeakPtr<ResourceWithMetadata>(new ResourceWithMetadata(context));
  1404. }
  1405. // Urho3D::Variant overloads begin:
  1406. DllExport void
  1407. ResourceWithMetadata_AddMetadata0 (Urho3D::ResourceWithMetadata *_target, const char * name, const class Urho3D::Vector3 & value)
  1408. {
  1409. _target->AddMetadata (Urho3D::String(name), (value));
  1410. }
  1411. DllExport void
  1412. ResourceWithMetadata_AddMetadata1 (Urho3D::ResourceWithMetadata *_target, const char * name, const class Urho3D::IntRect & value)
  1413. {
  1414. _target->AddMetadata (Urho3D::String(name), (value));
  1415. }
  1416. DllExport void
  1417. ResourceWithMetadata_AddMetadata2 (Urho3D::ResourceWithMetadata *_target, const char * name, const class Urho3D::Color & value)
  1418. {
  1419. _target->AddMetadata (Urho3D::String(name), (value));
  1420. }
  1421. DllExport void
  1422. ResourceWithMetadata_AddMetadata3 (Urho3D::ResourceWithMetadata *_target, const char * name, const class Urho3D::Vector2 & value)
  1423. {
  1424. _target->AddMetadata (Urho3D::String(name), (value));
  1425. }
  1426. DllExport void
  1427. ResourceWithMetadata_AddMetadata4 (Urho3D::ResourceWithMetadata *_target, const char * name, const class Urho3D::Vector4 & value)
  1428. {
  1429. _target->AddMetadata (Urho3D::String(name), (value));
  1430. }
  1431. DllExport void
  1432. ResourceWithMetadata_AddMetadata5 (Urho3D::ResourceWithMetadata *_target, const char * name, const class Urho3D::IntVector2 & value)
  1433. {
  1434. _target->AddMetadata (Urho3D::String(name), (value));
  1435. }
  1436. DllExport void
  1437. ResourceWithMetadata_AddMetadata6 (Urho3D::ResourceWithMetadata *_target, const char * name, const class Urho3D::Quaternion & value)
  1438. {
  1439. _target->AddMetadata (Urho3D::String(name), (value));
  1440. }
  1441. DllExport void
  1442. ResourceWithMetadata_AddMetadata7 (Urho3D::ResourceWithMetadata *_target, const char * name, const class Urho3D::Matrix4 & value)
  1443. {
  1444. _target->AddMetadata (Urho3D::String(name), (value));
  1445. }
  1446. DllExport void
  1447. ResourceWithMetadata_AddMetadata8 (Urho3D::ResourceWithMetadata *_target, const char * name, const class Urho3D::Matrix3x4 & value)
  1448. {
  1449. _target->AddMetadata (Urho3D::String(name), (value));
  1450. }
  1451. DllExport void
  1452. ResourceWithMetadata_AddMetadata9 (Urho3D::ResourceWithMetadata *_target, const char * name, int value)
  1453. {
  1454. _target->AddMetadata (Urho3D::String(name), (value));
  1455. }
  1456. DllExport void
  1457. ResourceWithMetadata_AddMetadata10 (Urho3D::ResourceWithMetadata *_target, const char * name, float value)
  1458. {
  1459. _target->AddMetadata (Urho3D::String(name), (value));
  1460. }
  1461. DllExport void
  1462. ResourceWithMetadata_AddMetadata11 (Urho3D::ResourceWithMetadata *_target, const char * name, const char * value)
  1463. {
  1464. _target->AddMetadata (Urho3D::String(name), Urho3D::String(value));
  1465. }
  1466. DllExport void
  1467. ResourceWithMetadata_AddMetadata12 (Urho3D::ResourceWithMetadata *_target, const char * name, bool value)
  1468. {
  1469. _target->AddMetadata (Urho3D::String(name), (value));
  1470. }
  1471. // Urho3D::Variant overloads end.
  1472. DllExport void
  1473. ResourceWithMetadata_RemoveMetadata (Urho3D::ResourceWithMetadata *_target, const char * name)
  1474. {
  1475. _target->RemoveMetadata (Urho3D::String(name));
  1476. }
  1477. DllExport void
  1478. ResourceWithMetadata_RemoveAllMetadata (Urho3D::ResourceWithMetadata *_target)
  1479. {
  1480. _target->RemoveAllMetadata ();
  1481. }
  1482. // Urho3D::Variant overloads begin:
  1483. DllExport Interop::Vector3
  1484. ResourceWithMetadata_GetMetadata0 (Urho3D::ResourceWithMetadata *_target, const char * name)
  1485. {
  1486. return *((Interop::Vector3 *) &(_target->GetMetadata (Urho3D::String(name)).GetVector3()));
  1487. }
  1488. DllExport Interop::IntRect
  1489. ResourceWithMetadata_GetMetadata1 (Urho3D::ResourceWithMetadata *_target, const char * name)
  1490. {
  1491. return *((Interop::IntRect *) &(_target->GetMetadata (Urho3D::String(name)).GetIntRect()));
  1492. }
  1493. DllExport Interop::Color
  1494. ResourceWithMetadata_GetMetadata2 (Urho3D::ResourceWithMetadata *_target, const char * name)
  1495. {
  1496. return *((Interop::Color *) &(_target->GetMetadata (Urho3D::String(name)).GetColor()));
  1497. }
  1498. DllExport Interop::Vector2
  1499. ResourceWithMetadata_GetMetadata3 (Urho3D::ResourceWithMetadata *_target, const char * name)
  1500. {
  1501. return *((Interop::Vector2 *) &(_target->GetMetadata (Urho3D::String(name)).GetVector2()));
  1502. }
  1503. DllExport Interop::Vector4
  1504. ResourceWithMetadata_GetMetadata4 (Urho3D::ResourceWithMetadata *_target, const char * name)
  1505. {
  1506. return *((Interop::Vector4 *) &(_target->GetMetadata (Urho3D::String(name)).GetVector4()));
  1507. }
  1508. DllExport Interop::IntVector2
  1509. ResourceWithMetadata_GetMetadata5 (Urho3D::ResourceWithMetadata *_target, const char * name)
  1510. {
  1511. return *((Interop::IntVector2 *) &(_target->GetMetadata (Urho3D::String(name)).GetIntVector2()));
  1512. }
  1513. DllExport Interop::Quaternion
  1514. ResourceWithMetadata_GetMetadata6 (Urho3D::ResourceWithMetadata *_target, const char * name)
  1515. {
  1516. return *((Interop::Quaternion *) &(_target->GetMetadata (Urho3D::String(name)).GetQuaternion()));
  1517. }
  1518. DllExport Interop::Matrix4
  1519. ResourceWithMetadata_GetMetadata7 (Urho3D::ResourceWithMetadata *_target, const char * name)
  1520. {
  1521. return *((Interop::Matrix4 *) &(_target->GetMetadata (Urho3D::String(name)).GetMatrix4()));
  1522. }
  1523. DllExport Interop::Matrix3x4
  1524. ResourceWithMetadata_GetMetadata8 (Urho3D::ResourceWithMetadata *_target, const char * name)
  1525. {
  1526. return *((Interop::Matrix3x4 *) &(_target->GetMetadata (Urho3D::String(name)).GetMatrix3x4()));
  1527. }
  1528. DllExport int
  1529. ResourceWithMetadata_GetMetadata9 (Urho3D::ResourceWithMetadata *_target, const char * name)
  1530. {
  1531. return (_target->GetMetadata (Urho3D::String(name)).GetInt());
  1532. }
  1533. DllExport float
  1534. ResourceWithMetadata_GetMetadata10 (Urho3D::ResourceWithMetadata *_target, const char * name)
  1535. {
  1536. return (_target->GetMetadata (Urho3D::String(name)).GetFloat());
  1537. }
  1538. DllExport const char *
  1539. ResourceWithMetadata_GetMetadata11 (Urho3D::ResourceWithMetadata *_target, const char * name)
  1540. {
  1541. return stringdup(_target->GetMetadata (Urho3D::String(name)).GetString().CString());
  1542. }
  1543. DllExport bool
  1544. ResourceWithMetadata_GetMetadata12 (Urho3D::ResourceWithMetadata *_target, const char * name)
  1545. {
  1546. return (_target->GetMetadata (Urho3D::String(name)).GetBool());
  1547. }
  1548. // Urho3D::Variant overloads end.
  1549. DllExport int
  1550. ResourceWithMetadata_HasMetadata (Urho3D::ResourceWithMetadata *_target)
  1551. {
  1552. return _target->HasMetadata ();
  1553. }
  1554. DllExport int
  1555. Sprite2D_GetType (Urho3D::Sprite2D *_target)
  1556. {
  1557. return (_target->GetType ()).Value ();
  1558. }
  1559. DllExport const char *
  1560. Sprite2D_GetTypeName (Urho3D::Sprite2D *_target)
  1561. {
  1562. return stringdup((_target->GetTypeName ()).CString ());
  1563. }
  1564. DllExport int
  1565. Sprite2D_GetTypeStatic ()
  1566. {
  1567. return (Sprite2D::GetTypeStatic ()).Value ();
  1568. }
  1569. DllExport const char *
  1570. Sprite2D_GetTypeNameStatic ()
  1571. {
  1572. return stringdup((Sprite2D::GetTypeNameStatic ()).CString ());
  1573. }
  1574. DllExport void *
  1575. Sprite2D_Sprite2D (Urho3D::Context * context)
  1576. {
  1577. return WeakPtr<Sprite2D>(new Sprite2D(context));
  1578. }
  1579. DllExport void
  1580. Sprite2D_RegisterObject (Urho3D::Context * context)
  1581. {
  1582. Sprite2D::RegisterObject (context);
  1583. }
  1584. DllExport int
  1585. Sprite2D_BeginLoad_File (Urho3D::Sprite2D *_target, File * source)
  1586. {
  1587. return _target->BeginLoad (*source);
  1588. }
  1589. DllExport int
  1590. Sprite2D_BeginLoad_MemoryBuffer (Urho3D::Sprite2D *_target, MemoryBuffer * source)
  1591. {
  1592. return _target->BeginLoad (*source);
  1593. }
  1594. DllExport int
  1595. Sprite2D_EndLoad (Urho3D::Sprite2D *_target)
  1596. {
  1597. return _target->EndLoad ();
  1598. }
  1599. DllExport void
  1600. Sprite2D_SetTexture (Urho3D::Sprite2D *_target, Urho3D::Texture2D * texture)
  1601. {
  1602. _target->SetTexture (texture);
  1603. }
  1604. DllExport void
  1605. Sprite2D_SetRectangle (Urho3D::Sprite2D *_target, const class Urho3D::IntRect & rectangle)
  1606. {
  1607. _target->SetRectangle (rectangle);
  1608. }
  1609. DllExport void
  1610. Sprite2D_SetHotSpot (Urho3D::Sprite2D *_target, const class Urho3D::Vector2 & hotSpot)
  1611. {
  1612. _target->SetHotSpot (hotSpot);
  1613. }
  1614. DllExport void
  1615. Sprite2D_SetOffset (Urho3D::Sprite2D *_target, const class Urho3D::IntVector2 & offset)
  1616. {
  1617. _target->SetOffset (offset);
  1618. }
  1619. DllExport void
  1620. Sprite2D_SetTextureEdgeOffset (Urho3D::Sprite2D *_target, float offset)
  1621. {
  1622. _target->SetTextureEdgeOffset (offset);
  1623. }
  1624. DllExport void
  1625. Sprite2D_SetSpriteSheet (Urho3D::Sprite2D *_target, Urho3D::SpriteSheet2D * spriteSheet)
  1626. {
  1627. _target->SetSpriteSheet (spriteSheet);
  1628. }
  1629. DllExport Urho3D::Texture2D *
  1630. Sprite2D_GetTexture (Urho3D::Sprite2D *_target)
  1631. {
  1632. return _target->GetTexture ();
  1633. }
  1634. DllExport Interop::IntRect
  1635. Sprite2D_GetRectangle (Urho3D::Sprite2D *_target)
  1636. {
  1637. return *((Interop::IntRect *) &(_target->GetRectangle ()));
  1638. }
  1639. DllExport Interop::Vector2
  1640. Sprite2D_GetHotSpot (Urho3D::Sprite2D *_target)
  1641. {
  1642. return *((Interop::Vector2 *) &(_target->GetHotSpot ()));
  1643. }
  1644. DllExport Interop::IntVector2
  1645. Sprite2D_GetOffset (Urho3D::Sprite2D *_target)
  1646. {
  1647. return *((Interop::IntVector2 *) &(_target->GetOffset ()));
  1648. }
  1649. DllExport float
  1650. Sprite2D_GetTextureEdgeOffset (Urho3D::Sprite2D *_target)
  1651. {
  1652. return _target->GetTextureEdgeOffset ();
  1653. }
  1654. DllExport Urho3D::SpriteSheet2D *
  1655. Sprite2D_GetSpriteSheet (Urho3D::Sprite2D *_target)
  1656. {
  1657. return _target->GetSpriteSheet ();
  1658. }
  1659. DllExport Urho3D::ResourceRef
  1660. Sprite2D_SaveToResourceRef (Urho3D::Sprite2D * sprite)
  1661. {
  1662. return Sprite2D::SaveToResourceRef (sprite);
  1663. }
  1664. DllExport void *
  1665. PropertySet2D_PropertySet2D ()
  1666. {
  1667. return WeakPtr<PropertySet2D>(new PropertySet2D());
  1668. }
  1669. DllExport void
  1670. PropertySet2D_Load (Urho3D::PropertySet2D *_target, const class Urho3D::XMLElement & element)
  1671. {
  1672. _target->Load (element);
  1673. }
  1674. DllExport int
  1675. PropertySet2D_HasProperty (Urho3D::PropertySet2D *_target, const char * name)
  1676. {
  1677. return _target->HasProperty (Urho3D::String(name));
  1678. }
  1679. DllExport const char *
  1680. PropertySet2D_GetProperty (Urho3D::PropertySet2D *_target, const char * name)
  1681. {
  1682. return stringdup((_target->GetProperty (Urho3D::String(name))).CString ());
  1683. }
  1684. DllExport void *
  1685. Tile2D_Tile2D ()
  1686. {
  1687. return WeakPtr<Tile2D>(new Tile2D());
  1688. }
  1689. DllExport int
  1690. Tile2D_GetGid (Urho3D::Tile2D *_target)
  1691. {
  1692. return _target->GetGid ();
  1693. }
  1694. DllExport Urho3D::Sprite2D *
  1695. Tile2D_GetSprite (Urho3D::Tile2D *_target)
  1696. {
  1697. return _target->GetSprite ();
  1698. }
  1699. DllExport int
  1700. Tile2D_HasProperty (Urho3D::Tile2D *_target, const char * name)
  1701. {
  1702. return _target->HasProperty (Urho3D::String(name));
  1703. }
  1704. DllExport const char *
  1705. Tile2D_GetProperty (Urho3D::Tile2D *_target, const char * name)
  1706. {
  1707. return stringdup((_target->GetProperty (Urho3D::String(name))).CString ());
  1708. }
  1709. DllExport void *
  1710. TileMapObject2D_TileMapObject2D ()
  1711. {
  1712. return WeakPtr<TileMapObject2D>(new TileMapObject2D());
  1713. }
  1714. DllExport enum Urho3D::TileMapObjectType2D
  1715. TileMapObject2D_GetObjectType (Urho3D::TileMapObject2D *_target)
  1716. {
  1717. return _target->GetObjectType ();
  1718. }
  1719. DllExport const char *
  1720. TileMapObject2D_GetName (Urho3D::TileMapObject2D *_target)
  1721. {
  1722. return stringdup((_target->GetName ()).CString ());
  1723. }
  1724. DllExport const char *
  1725. TileMapObject2D_GetType (Urho3D::TileMapObject2D *_target)
  1726. {
  1727. return stringdup((_target->GetType ()).CString ());
  1728. }
  1729. DllExport Interop::Vector2
  1730. TileMapObject2D_GetPosition (Urho3D::TileMapObject2D *_target)
  1731. {
  1732. return *((Interop::Vector2 *) &(_target->GetPosition ()));
  1733. }
  1734. DllExport Interop::Vector2
  1735. TileMapObject2D_GetSize (Urho3D::TileMapObject2D *_target)
  1736. {
  1737. return *((Interop::Vector2 *) &(_target->GetSize ()));
  1738. }
  1739. DllExport unsigned int
  1740. TileMapObject2D_GetNumPoints (Urho3D::TileMapObject2D *_target)
  1741. {
  1742. return _target->GetNumPoints ();
  1743. }
  1744. DllExport Interop::Vector2
  1745. TileMapObject2D_GetPoint (Urho3D::TileMapObject2D *_target, unsigned int index)
  1746. {
  1747. return *((Interop::Vector2 *) &(_target->GetPoint (index)));
  1748. }
  1749. DllExport int
  1750. TileMapObject2D_GetTileGid (Urho3D::TileMapObject2D *_target)
  1751. {
  1752. return _target->GetTileGid ();
  1753. }
  1754. DllExport Urho3D::Sprite2D *
  1755. TileMapObject2D_GetTileSprite (Urho3D::TileMapObject2D *_target)
  1756. {
  1757. return _target->GetTileSprite ();
  1758. }
  1759. DllExport int
  1760. TileMapObject2D_HasProperty (Urho3D::TileMapObject2D *_target, const char * name)
  1761. {
  1762. return _target->HasProperty (Urho3D::String(name));
  1763. }
  1764. DllExport const char *
  1765. TileMapObject2D_GetProperty (Urho3D::TileMapObject2D *_target, const char * name)
  1766. {
  1767. return stringdup((_target->GetProperty (Urho3D::String(name))).CString ());
  1768. }
  1769. DllExport int
  1770. TileMapLayer2D_GetType (Urho3D::TileMapLayer2D *_target)
  1771. {
  1772. return (_target->GetType ()).Value ();
  1773. }
  1774. DllExport const char *
  1775. TileMapLayer2D_GetTypeName (Urho3D::TileMapLayer2D *_target)
  1776. {
  1777. return stringdup((_target->GetTypeName ()).CString ());
  1778. }
  1779. DllExport int
  1780. TileMapLayer2D_GetTypeStatic ()
  1781. {
  1782. return (TileMapLayer2D::GetTypeStatic ()).Value ();
  1783. }
  1784. DllExport const char *
  1785. TileMapLayer2D_GetTypeNameStatic ()
  1786. {
  1787. return stringdup((TileMapLayer2D::GetTypeNameStatic ()).CString ());
  1788. }
  1789. DllExport void *
  1790. TileMapLayer2D_TileMapLayer2D (Urho3D::Context * context)
  1791. {
  1792. return WeakPtr<TileMapLayer2D>(new TileMapLayer2D(context));
  1793. }
  1794. DllExport void
  1795. TileMapLayer2D_RegisterObject (Urho3D::Context * context)
  1796. {
  1797. TileMapLayer2D::RegisterObject (context);
  1798. }
  1799. DllExport void
  1800. TileMapLayer2D_DrawDebugGeometry (Urho3D::TileMapLayer2D *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  1801. {
  1802. _target->DrawDebugGeometry (debug, depthTest);
  1803. }
  1804. DllExport void
  1805. TileMapLayer2D_Initialize (Urho3D::TileMapLayer2D *_target, Urho3D::TileMap2D * tileMap, const class Urho3D::TmxLayer2D * tmxLayer)
  1806. {
  1807. _target->Initialize (tileMap, tmxLayer);
  1808. }
  1809. DllExport void
  1810. TileMapLayer2D_SetDrawOrder (Urho3D::TileMapLayer2D *_target, int drawOrder)
  1811. {
  1812. _target->SetDrawOrder (drawOrder);
  1813. }
  1814. DllExport void
  1815. TileMapLayer2D_SetVisible (Urho3D::TileMapLayer2D *_target, bool visible)
  1816. {
  1817. _target->SetVisible (visible);
  1818. }
  1819. DllExport Urho3D::TileMap2D *
  1820. TileMapLayer2D_GetTileMap (Urho3D::TileMapLayer2D *_target)
  1821. {
  1822. return _target->GetTileMap ();
  1823. }
  1824. DllExport const class Urho3D::TmxLayer2D *
  1825. TileMapLayer2D_GetTmxLayer (Urho3D::TileMapLayer2D *_target)
  1826. {
  1827. return _target->GetTmxLayer ();
  1828. }
  1829. DllExport int
  1830. TileMapLayer2D_GetDrawOrder (Urho3D::TileMapLayer2D *_target)
  1831. {
  1832. return _target->GetDrawOrder ();
  1833. }
  1834. DllExport int
  1835. TileMapLayer2D_IsVisible (Urho3D::TileMapLayer2D *_target)
  1836. {
  1837. return _target->IsVisible ();
  1838. }
  1839. DllExport int
  1840. TileMapLayer2D_HasProperty (Urho3D::TileMapLayer2D *_target, const char * name)
  1841. {
  1842. return _target->HasProperty (Urho3D::String(name));
  1843. }
  1844. DllExport const char *
  1845. TileMapLayer2D_GetProperty (Urho3D::TileMapLayer2D *_target, const char * name)
  1846. {
  1847. return stringdup((_target->GetProperty (Urho3D::String(name))).CString ());
  1848. }
  1849. DllExport enum Urho3D::TileMapLayerType2D
  1850. TileMapLayer2D_GetLayerType (Urho3D::TileMapLayer2D *_target)
  1851. {
  1852. return _target->GetLayerType ();
  1853. }
  1854. DllExport int
  1855. TileMapLayer2D_GetWidth (Urho3D::TileMapLayer2D *_target)
  1856. {
  1857. return _target->GetWidth ();
  1858. }
  1859. DllExport int
  1860. TileMapLayer2D_GetHeight (Urho3D::TileMapLayer2D *_target)
  1861. {
  1862. return _target->GetHeight ();
  1863. }
  1864. DllExport Urho3D::Node *
  1865. TileMapLayer2D_GetTileNode (Urho3D::TileMapLayer2D *_target, int x, int y)
  1866. {
  1867. return _target->GetTileNode (x, y);
  1868. }
  1869. DllExport Urho3D::Tile2D *
  1870. TileMapLayer2D_GetTile (Urho3D::TileMapLayer2D *_target, int x, int y)
  1871. {
  1872. return _target->GetTile (x, y);
  1873. }
  1874. DllExport unsigned int
  1875. TileMapLayer2D_GetNumObjects (Urho3D::TileMapLayer2D *_target)
  1876. {
  1877. return _target->GetNumObjects ();
  1878. }
  1879. DllExport Urho3D::TileMapObject2D *
  1880. TileMapLayer2D_GetObject (Urho3D::TileMapLayer2D *_target, unsigned int index)
  1881. {
  1882. return _target->GetObject (index);
  1883. }
  1884. DllExport Urho3D::Node *
  1885. TileMapLayer2D_GetObjectNode (Urho3D::TileMapLayer2D *_target, unsigned int index)
  1886. {
  1887. return _target->GetObjectNode (index);
  1888. }
  1889. DllExport Urho3D::Node *
  1890. TileMapLayer2D_GetImageNode (Urho3D::TileMapLayer2D *_target)
  1891. {
  1892. return _target->GetImageNode ();
  1893. }
  1894. DllExport void *
  1895. TmxLayer2D_TmxLayer2D (Urho3D::TmxFile2D * tmxFile, enum Urho3D::TileMapLayerType2D type)
  1896. {
  1897. return WeakPtr<TmxLayer2D>(new TmxLayer2D(tmxFile, type));
  1898. }
  1899. DllExport Urho3D::TmxFile2D *
  1900. TmxLayer2D_GetTmxFile (Urho3D::TmxLayer2D *_target)
  1901. {
  1902. return _target->GetTmxFile ();
  1903. }
  1904. DllExport enum Urho3D::TileMapLayerType2D
  1905. TmxLayer2D_GetType (Urho3D::TmxLayer2D *_target)
  1906. {
  1907. return _target->GetType ();
  1908. }
  1909. DllExport const char *
  1910. TmxLayer2D_GetName (Urho3D::TmxLayer2D *_target)
  1911. {
  1912. return stringdup((_target->GetName ()).CString ());
  1913. }
  1914. DllExport int
  1915. TmxLayer2D_GetWidth (Urho3D::TmxLayer2D *_target)
  1916. {
  1917. return _target->GetWidth ();
  1918. }
  1919. DllExport int
  1920. TmxLayer2D_GetHeight (Urho3D::TmxLayer2D *_target)
  1921. {
  1922. return _target->GetHeight ();
  1923. }
  1924. DllExport int
  1925. TmxLayer2D_IsVisible (Urho3D::TmxLayer2D *_target)
  1926. {
  1927. return _target->IsVisible ();
  1928. }
  1929. DllExport int
  1930. TmxLayer2D_HasProperty (Urho3D::TmxLayer2D *_target, const char * name)
  1931. {
  1932. return _target->HasProperty (Urho3D::String(name));
  1933. }
  1934. DllExport const char *
  1935. TmxLayer2D_GetProperty (Urho3D::TmxLayer2D *_target, const char * name)
  1936. {
  1937. return stringdup((_target->GetProperty (Urho3D::String(name))).CString ());
  1938. }
  1939. DllExport void *
  1940. TmxTileLayer2D_TmxTileLayer2D (Urho3D::TmxFile2D * tmxFile)
  1941. {
  1942. return WeakPtr<TmxTileLayer2D>(new TmxTileLayer2D(tmxFile));
  1943. }
  1944. DllExport int
  1945. TmxTileLayer2D_Load (Urho3D::TmxTileLayer2D *_target, const class Urho3D::XMLElement & element, const struct Urho3D::TileMapInfo2D & info)
  1946. {
  1947. return _target->Load (element, info);
  1948. }
  1949. DllExport Urho3D::Tile2D *
  1950. TmxTileLayer2D_GetTile (Urho3D::TmxTileLayer2D *_target, int x, int y)
  1951. {
  1952. return _target->GetTile (x, y);
  1953. }
  1954. DllExport void *
  1955. TmxObjectGroup2D_TmxObjectGroup2D (Urho3D::TmxFile2D * tmxFile)
  1956. {
  1957. return WeakPtr<TmxObjectGroup2D>(new TmxObjectGroup2D(tmxFile));
  1958. }
  1959. DllExport int
  1960. TmxObjectGroup2D_Load (Urho3D::TmxObjectGroup2D *_target, const class Urho3D::XMLElement & element, const struct Urho3D::TileMapInfo2D & info)
  1961. {
  1962. return _target->Load (element, info);
  1963. }
  1964. DllExport unsigned int
  1965. TmxObjectGroup2D_GetNumObjects (Urho3D::TmxObjectGroup2D *_target)
  1966. {
  1967. return _target->GetNumObjects ();
  1968. }
  1969. DllExport Urho3D::TileMapObject2D *
  1970. TmxObjectGroup2D_GetObject (Urho3D::TmxObjectGroup2D *_target, unsigned int index)
  1971. {
  1972. return _target->GetObject (index);
  1973. }
  1974. DllExport void *
  1975. TmxImageLayer2D_TmxImageLayer2D (Urho3D::TmxFile2D * tmxFile)
  1976. {
  1977. return WeakPtr<TmxImageLayer2D>(new TmxImageLayer2D(tmxFile));
  1978. }
  1979. DllExport int
  1980. TmxImageLayer2D_Load (Urho3D::TmxImageLayer2D *_target, const class Urho3D::XMLElement & element, const struct Urho3D::TileMapInfo2D & info)
  1981. {
  1982. return _target->Load (element, info);
  1983. }
  1984. DllExport Interop::Vector2
  1985. TmxImageLayer2D_GetPosition (Urho3D::TmxImageLayer2D *_target)
  1986. {
  1987. return *((Interop::Vector2 *) &(_target->GetPosition ()));
  1988. }
  1989. DllExport const char *
  1990. TmxImageLayer2D_GetSource (Urho3D::TmxImageLayer2D *_target)
  1991. {
  1992. return stringdup((_target->GetSource ()).CString ());
  1993. }
  1994. DllExport Urho3D::Sprite2D *
  1995. TmxImageLayer2D_GetSprite (Urho3D::TmxImageLayer2D *_target)
  1996. {
  1997. return _target->GetSprite ();
  1998. }
  1999. DllExport int
  2000. TmxFile2D_GetType (Urho3D::TmxFile2D *_target)
  2001. {
  2002. return (_target->GetType ()).Value ();
  2003. }
  2004. DllExport const char *
  2005. TmxFile2D_GetTypeName (Urho3D::TmxFile2D *_target)
  2006. {
  2007. return stringdup((_target->GetTypeName ()).CString ());
  2008. }
  2009. DllExport int
  2010. TmxFile2D_GetTypeStatic ()
  2011. {
  2012. return (TmxFile2D::GetTypeStatic ()).Value ();
  2013. }
  2014. DllExport const char *
  2015. TmxFile2D_GetTypeNameStatic ()
  2016. {
  2017. return stringdup((TmxFile2D::GetTypeNameStatic ()).CString ());
  2018. }
  2019. DllExport void *
  2020. TmxFile2D_TmxFile2D (Urho3D::Context * context)
  2021. {
  2022. return WeakPtr<TmxFile2D>(new TmxFile2D(context));
  2023. }
  2024. DllExport void
  2025. TmxFile2D_RegisterObject (Urho3D::Context * context)
  2026. {
  2027. TmxFile2D::RegisterObject (context);
  2028. }
  2029. DllExport int
  2030. TmxFile2D_BeginLoad_File (Urho3D::TmxFile2D *_target, File * source)
  2031. {
  2032. return _target->BeginLoad (*source);
  2033. }
  2034. DllExport int
  2035. TmxFile2D_BeginLoad_MemoryBuffer (Urho3D::TmxFile2D *_target, MemoryBuffer * source)
  2036. {
  2037. return _target->BeginLoad (*source);
  2038. }
  2039. DllExport int
  2040. TmxFile2D_EndLoad (Urho3D::TmxFile2D *_target)
  2041. {
  2042. return _target->EndLoad ();
  2043. }
  2044. DllExport int
  2045. TmxFile2D_SetInfo (Urho3D::TmxFile2D *_target, enum Urho3D::Orientation2D orientation, int width, int height, float tileWidth, float tileHeight)
  2046. {
  2047. return _target->SetInfo (orientation, width, height, tileWidth, tileHeight);
  2048. }
  2049. DllExport void
  2050. TmxFile2D_AddLayer (Urho3D::TmxFile2D *_target, unsigned int index, Urho3D::TmxLayer2D * layer)
  2051. {
  2052. _target->AddLayer (index, layer);
  2053. }
  2054. DllExport Urho3D::TileMapInfo2D
  2055. TmxFile2D_GetInfo (Urho3D::TmxFile2D *_target)
  2056. {
  2057. return _target->GetInfo ();
  2058. }
  2059. DllExport Urho3D::Sprite2D *
  2060. TmxFile2D_GetTileSprite (Urho3D::TmxFile2D *_target, int gid)
  2061. {
  2062. return _target->GetTileSprite (gid);
  2063. }
  2064. DllExport Urho3D::PropertySet2D *
  2065. TmxFile2D_GetTilePropertySet (Urho3D::TmxFile2D *_target, int gid)
  2066. {
  2067. return _target->GetTilePropertySet (gid);
  2068. }
  2069. DllExport unsigned int
  2070. TmxFile2D_GetNumLayers (Urho3D::TmxFile2D *_target)
  2071. {
  2072. return _target->GetNumLayers ();
  2073. }
  2074. DllExport const class Urho3D::TmxLayer2D *
  2075. TmxFile2D_GetLayer (Urho3D::TmxFile2D *_target, unsigned int index)
  2076. {
  2077. return _target->GetLayer (index);
  2078. }
  2079. DllExport int
  2080. MessageBox_GetType (Urho3D::MessageBox *_target)
  2081. {
  2082. return (_target->GetType ()).Value ();
  2083. }
  2084. DllExport const char *
  2085. MessageBox_GetTypeName (Urho3D::MessageBox *_target)
  2086. {
  2087. return stringdup((_target->GetTypeName ()).CString ());
  2088. }
  2089. DllExport int
  2090. MessageBox_GetTypeStatic ()
  2091. {
  2092. return (MessageBox::GetTypeStatic ()).Value ();
  2093. }
  2094. DllExport const char *
  2095. MessageBox_GetTypeNameStatic ()
  2096. {
  2097. return stringdup((MessageBox::GetTypeNameStatic ()).CString ());
  2098. }
  2099. DllExport void *
  2100. MessageBox_MessageBox (Urho3D::Context * context, const char * messageString, const char * titleString, Urho3D::XMLFile * layoutFile, Urho3D::XMLFile * styleFile)
  2101. {
  2102. return WeakPtr<MessageBox>(new MessageBox(context, Urho3D::String(messageString), Urho3D::String(titleString), layoutFile, styleFile));
  2103. }
  2104. DllExport void
  2105. MessageBox_RegisterObject (Urho3D::Context * context)
  2106. {
  2107. MessageBox::RegisterObject (context);
  2108. }
  2109. DllExport void
  2110. MessageBox_SetTitle (Urho3D::MessageBox *_target, const char * text)
  2111. {
  2112. _target->SetTitle (Urho3D::String(text));
  2113. }
  2114. DllExport void
  2115. MessageBox_SetMessage (Urho3D::MessageBox *_target, const char * text)
  2116. {
  2117. _target->SetMessage (Urho3D::String(text));
  2118. }
  2119. DllExport const char *
  2120. MessageBox_GetTitle (Urho3D::MessageBox *_target)
  2121. {
  2122. return stringdup((_target->GetTitle ()).CString ());
  2123. }
  2124. DllExport const char *
  2125. MessageBox_GetMessage (Urho3D::MessageBox *_target)
  2126. {
  2127. return stringdup((_target->GetMessage ()).CString ());
  2128. }
  2129. DllExport Urho3D::UIElement *
  2130. MessageBox_GetWindow (Urho3D::MessageBox *_target)
  2131. {
  2132. return _target->GetWindow ();
  2133. }
  2134. DllExport int
  2135. Audio_GetType (Urho3D::Audio *_target)
  2136. {
  2137. return (_target->GetType ()).Value ();
  2138. }
  2139. DllExport const char *
  2140. Audio_GetTypeName (Urho3D::Audio *_target)
  2141. {
  2142. return stringdup((_target->GetTypeName ()).CString ());
  2143. }
  2144. DllExport int
  2145. Audio_GetTypeStatic ()
  2146. {
  2147. return (Audio::GetTypeStatic ()).Value ();
  2148. }
  2149. DllExport const char *
  2150. Audio_GetTypeNameStatic ()
  2151. {
  2152. return stringdup((Audio::GetTypeNameStatic ()).CString ());
  2153. }
  2154. DllExport void *
  2155. Audio_Audio (Urho3D::Context * context)
  2156. {
  2157. return WeakPtr<Audio>(new Audio(context));
  2158. }
  2159. DllExport int
  2160. Audio_SetMode (Urho3D::Audio *_target, int bufferLengthMSec, int mixRate, bool stereo, bool interpolation)
  2161. {
  2162. return _target->SetMode (bufferLengthMSec, mixRate, stereo, interpolation);
  2163. }
  2164. DllExport void
  2165. Audio_Update (Urho3D::Audio *_target, float timeStep)
  2166. {
  2167. _target->Update (timeStep);
  2168. }
  2169. DllExport int
  2170. Audio_Play (Urho3D::Audio *_target)
  2171. {
  2172. return _target->Play ();
  2173. }
  2174. DllExport void
  2175. Audio_Stop (Urho3D::Audio *_target)
  2176. {
  2177. _target->Stop ();
  2178. }
  2179. DllExport void
  2180. Audio_SetMasterGain (Urho3D::Audio *_target, const char * type, float gain)
  2181. {
  2182. _target->SetMasterGain (Urho3D::String(type), gain);
  2183. }
  2184. DllExport void
  2185. Audio_PauseSoundType (Urho3D::Audio *_target, const char * type)
  2186. {
  2187. _target->PauseSoundType (Urho3D::String(type));
  2188. }
  2189. DllExport void
  2190. Audio_ResumeSoundType (Urho3D::Audio *_target, const char * type)
  2191. {
  2192. _target->ResumeSoundType (Urho3D::String(type));
  2193. }
  2194. DllExport void
  2195. Audio_ResumeAll (Urho3D::Audio *_target)
  2196. {
  2197. _target->ResumeAll ();
  2198. }
  2199. DllExport void
  2200. Audio_SetListener (Urho3D::Audio *_target, Urho3D::SoundListener * listener)
  2201. {
  2202. _target->SetListener (listener);
  2203. }
  2204. DllExport void
  2205. Audio_StopSound (Urho3D::Audio *_target, Urho3D::Sound * sound)
  2206. {
  2207. _target->StopSound (sound);
  2208. }
  2209. DllExport unsigned int
  2210. Audio_GetSampleSize (Urho3D::Audio *_target)
  2211. {
  2212. return _target->GetSampleSize ();
  2213. }
  2214. DllExport int
  2215. Audio_GetMixRate (Urho3D::Audio *_target)
  2216. {
  2217. return _target->GetMixRate ();
  2218. }
  2219. DllExport int
  2220. Audio_GetInterpolation (Urho3D::Audio *_target)
  2221. {
  2222. return _target->GetInterpolation ();
  2223. }
  2224. DllExport int
  2225. Audio_IsStereo (Urho3D::Audio *_target)
  2226. {
  2227. return _target->IsStereo ();
  2228. }
  2229. DllExport int
  2230. Audio_IsPlaying (Urho3D::Audio *_target)
  2231. {
  2232. return _target->IsPlaying ();
  2233. }
  2234. DllExport int
  2235. Audio_IsInitialized (Urho3D::Audio *_target)
  2236. {
  2237. return _target->IsInitialized ();
  2238. }
  2239. DllExport float
  2240. Audio_GetMasterGain (Urho3D::Audio *_target, const char * type)
  2241. {
  2242. return _target->GetMasterGain (Urho3D::String(type));
  2243. }
  2244. DllExport int
  2245. Audio_IsSoundTypePaused (Urho3D::Audio *_target, const char * type)
  2246. {
  2247. return _target->IsSoundTypePaused (Urho3D::String(type));
  2248. }
  2249. DllExport Urho3D::SoundListener *
  2250. Audio_GetListener (Urho3D::Audio *_target)
  2251. {
  2252. return _target->GetListener ();
  2253. }
  2254. DllExport int
  2255. Audio_HasMasterGain (Urho3D::Audio *_target, const char * type)
  2256. {
  2257. return _target->HasMasterGain (Urho3D::String(type));
  2258. }
  2259. DllExport void
  2260. Audio_AddSoundSource (Urho3D::Audio *_target, Urho3D::SoundSource * soundSource)
  2261. {
  2262. _target->AddSoundSource (soundSource);
  2263. }
  2264. DllExport void
  2265. Audio_RemoveSoundSource (Urho3D::Audio *_target, Urho3D::SoundSource * soundSource)
  2266. {
  2267. _target->RemoveSoundSource (soundSource);
  2268. }
  2269. DllExport float
  2270. Audio_GetSoundSourceMasterGain (Urho3D::Audio *_target, int typeHash)
  2271. {
  2272. return _target->GetSoundSourceMasterGain (Urho3D::StringHash(typeHash));
  2273. }
  2274. DllExport void
  2275. Audio_MixOutput (Urho3D::Audio *_target, void * dest, unsigned int samples)
  2276. {
  2277. _target->MixOutput (dest, samples);
  2278. }
  2279. DllExport int
  2280. SoundStream_Seek (Urho3D::SoundStream *_target, unsigned int sample_number)
  2281. {
  2282. return _target->Seek (sample_number);
  2283. }
  2284. DllExport unsigned int
  2285. SoundStream_GetData (Urho3D::SoundStream *_target, signed char * dest, unsigned int numBytes)
  2286. {
  2287. return _target->GetData (dest, numBytes);
  2288. }
  2289. DllExport void
  2290. SoundStream_SetFormat (Urho3D::SoundStream *_target, unsigned int frequency, bool sixteenBit, bool stereo)
  2291. {
  2292. _target->SetFormat (frequency, sixteenBit, stereo);
  2293. }
  2294. DllExport void
  2295. SoundStream_SetStopAtEnd (Urho3D::SoundStream *_target, bool enable)
  2296. {
  2297. _target->SetStopAtEnd (enable);
  2298. }
  2299. DllExport unsigned int
  2300. SoundStream_GetSampleSize (Urho3D::SoundStream *_target)
  2301. {
  2302. return _target->GetSampleSize ();
  2303. }
  2304. DllExport float
  2305. SoundStream_GetFrequency (Urho3D::SoundStream *_target)
  2306. {
  2307. return _target->GetFrequency ();
  2308. }
  2309. DllExport unsigned int
  2310. SoundStream_GetIntFrequency (Urho3D::SoundStream *_target)
  2311. {
  2312. return _target->GetIntFrequency ();
  2313. }
  2314. DllExport int
  2315. SoundStream_GetStopAtEnd (Urho3D::SoundStream *_target)
  2316. {
  2317. return _target->GetStopAtEnd ();
  2318. }
  2319. DllExport int
  2320. SoundStream_IsSixteenBit (Urho3D::SoundStream *_target)
  2321. {
  2322. return _target->IsSixteenBit ();
  2323. }
  2324. DllExport int
  2325. SoundStream_IsStereo (Urho3D::SoundStream *_target)
  2326. {
  2327. return _target->IsStereo ();
  2328. }
  2329. DllExport void *
  2330. BufferedSoundStream_BufferedSoundStream ()
  2331. {
  2332. return WeakPtr<BufferedSoundStream>(new BufferedSoundStream());
  2333. }
  2334. DllExport unsigned int
  2335. BufferedSoundStream_GetData (Urho3D::BufferedSoundStream *_target, signed char * dest, unsigned int numBytes)
  2336. {
  2337. return _target->GetData (dest, numBytes);
  2338. }
  2339. DllExport void
  2340. BufferedSoundStream_AddData (Urho3D::BufferedSoundStream *_target, void * data, unsigned int numBytes)
  2341. {
  2342. _target->AddData (data, numBytes);
  2343. }
  2344. DllExport void
  2345. BufferedSoundStream_Clear (Urho3D::BufferedSoundStream *_target)
  2346. {
  2347. _target->Clear ();
  2348. }
  2349. DllExport unsigned int
  2350. BufferedSoundStream_GetBufferNumBytes (Urho3D::BufferedSoundStream *_target)
  2351. {
  2352. return _target->GetBufferNumBytes ();
  2353. }
  2354. DllExport float
  2355. BufferedSoundStream_GetBufferLength (Urho3D::BufferedSoundStream *_target)
  2356. {
  2357. return _target->GetBufferLength ();
  2358. }
  2359. DllExport void *
  2360. OggVorbisSoundStream_OggVorbisSoundStream (const class Urho3D::Sound * sound)
  2361. {
  2362. return WeakPtr<OggVorbisSoundStream>(new OggVorbisSoundStream(sound));
  2363. }
  2364. DllExport int
  2365. OggVorbisSoundStream_Seek (Urho3D::OggVorbisSoundStream *_target, unsigned int sample_number)
  2366. {
  2367. return _target->Seek (sample_number);
  2368. }
  2369. DllExport unsigned int
  2370. OggVorbisSoundStream_GetData (Urho3D::OggVorbisSoundStream *_target, signed char * dest, unsigned int numBytes)
  2371. {
  2372. return _target->GetData (dest, numBytes);
  2373. }
  2374. DllExport int
  2375. Sound_GetType (Urho3D::Sound *_target)
  2376. {
  2377. return (_target->GetType ()).Value ();
  2378. }
  2379. DllExport const char *
  2380. Sound_GetTypeName (Urho3D::Sound *_target)
  2381. {
  2382. return stringdup((_target->GetTypeName ()).CString ());
  2383. }
  2384. DllExport int
  2385. Sound_GetTypeStatic ()
  2386. {
  2387. return (Sound::GetTypeStatic ()).Value ();
  2388. }
  2389. DllExport const char *
  2390. Sound_GetTypeNameStatic ()
  2391. {
  2392. return stringdup((Sound::GetTypeNameStatic ()).CString ());
  2393. }
  2394. DllExport void *
  2395. Sound_Sound (Urho3D::Context * context)
  2396. {
  2397. return WeakPtr<Sound>(new Sound(context));
  2398. }
  2399. DllExport void
  2400. Sound_RegisterObject (Urho3D::Context * context)
  2401. {
  2402. Sound::RegisterObject (context);
  2403. }
  2404. DllExport int
  2405. Sound_BeginLoad_File (Urho3D::Sound *_target, File * source)
  2406. {
  2407. return _target->BeginLoad (*source);
  2408. }
  2409. DllExport int
  2410. Sound_BeginLoad_MemoryBuffer (Urho3D::Sound *_target, MemoryBuffer * source)
  2411. {
  2412. return _target->BeginLoad (*source);
  2413. }
  2414. DllExport int
  2415. Sound_LoadRaw_File (Urho3D::Sound *_target, File * source)
  2416. {
  2417. return _target->LoadRaw (*source);
  2418. }
  2419. DllExport int
  2420. Sound_LoadRaw_MemoryBuffer (Urho3D::Sound *_target, MemoryBuffer * source)
  2421. {
  2422. return _target->LoadRaw (*source);
  2423. }
  2424. DllExport int
  2425. Sound_LoadWav_File (Urho3D::Sound *_target, File * source)
  2426. {
  2427. return _target->LoadWav (*source);
  2428. }
  2429. DllExport int
  2430. Sound_LoadWav_MemoryBuffer (Urho3D::Sound *_target, MemoryBuffer * source)
  2431. {
  2432. return _target->LoadWav (*source);
  2433. }
  2434. DllExport int
  2435. Sound_LoadOggVorbis_File (Urho3D::Sound *_target, File * source)
  2436. {
  2437. return _target->LoadOggVorbis (*source);
  2438. }
  2439. DllExport int
  2440. Sound_LoadOggVorbis_MemoryBuffer (Urho3D::Sound *_target, MemoryBuffer * source)
  2441. {
  2442. return _target->LoadOggVorbis (*source);
  2443. }
  2444. DllExport void
  2445. Sound_SetSize (Urho3D::Sound *_target, unsigned int dataSize)
  2446. {
  2447. _target->SetSize (dataSize);
  2448. }
  2449. DllExport void
  2450. Sound_SetData (Urho3D::Sound *_target, const void * data, unsigned int dataSize)
  2451. {
  2452. _target->SetData (data, dataSize);
  2453. }
  2454. DllExport void
  2455. Sound_SetFormat (Urho3D::Sound *_target, unsigned int frequency, bool sixteenBit, bool stereo)
  2456. {
  2457. _target->SetFormat (frequency, sixteenBit, stereo);
  2458. }
  2459. DllExport void
  2460. Sound_SetLooped (Urho3D::Sound *_target, bool enable)
  2461. {
  2462. _target->SetLooped (enable);
  2463. }
  2464. DllExport void
  2465. Sound_SetLoop (Urho3D::Sound *_target, unsigned int repeatOffset, unsigned int endOffset)
  2466. {
  2467. _target->SetLoop (repeatOffset, endOffset);
  2468. }
  2469. DllExport Urho3D::SoundStream *
  2470. Sound_GetDecoderStream (Urho3D::Sound *_target)
  2471. {
  2472. auto copy = _target->GetDecoderStream ();
  2473. auto plain = copy.Get();
  2474. copy.Detach();
  2475. delete copy;
  2476. return plain;
  2477. }
  2478. DllExport signed char *
  2479. Sound_GetStart (Urho3D::Sound *_target)
  2480. {
  2481. return _target->GetStart ();
  2482. }
  2483. DllExport signed char *
  2484. Sound_GetRepeat (Urho3D::Sound *_target)
  2485. {
  2486. return _target->GetRepeat ();
  2487. }
  2488. DllExport signed char *
  2489. Sound_GetEnd (Urho3D::Sound *_target)
  2490. {
  2491. return _target->GetEnd ();
  2492. }
  2493. DllExport float
  2494. Sound_GetLength (Urho3D::Sound *_target)
  2495. {
  2496. return _target->GetLength ();
  2497. }
  2498. DllExport unsigned int
  2499. Sound_GetDataSize (Urho3D::Sound *_target)
  2500. {
  2501. return _target->GetDataSize ();
  2502. }
  2503. DllExport unsigned int
  2504. Sound_GetSampleSize (Urho3D::Sound *_target)
  2505. {
  2506. return _target->GetSampleSize ();
  2507. }
  2508. DllExport float
  2509. Sound_GetFrequency (Urho3D::Sound *_target)
  2510. {
  2511. return _target->GetFrequency ();
  2512. }
  2513. DllExport unsigned int
  2514. Sound_GetIntFrequency (Urho3D::Sound *_target)
  2515. {
  2516. return _target->GetIntFrequency ();
  2517. }
  2518. DllExport int
  2519. Sound_IsLooped (Urho3D::Sound *_target)
  2520. {
  2521. return _target->IsLooped ();
  2522. }
  2523. DllExport int
  2524. Sound_IsSixteenBit (Urho3D::Sound *_target)
  2525. {
  2526. return _target->IsSixteenBit ();
  2527. }
  2528. DllExport int
  2529. Sound_IsStereo (Urho3D::Sound *_target)
  2530. {
  2531. return _target->IsStereo ();
  2532. }
  2533. DllExport int
  2534. Sound_IsCompressed (Urho3D::Sound *_target)
  2535. {
  2536. return _target->IsCompressed ();
  2537. }
  2538. DllExport void
  2539. Sound_FixInterpolation (Urho3D::Sound *_target)
  2540. {
  2541. _target->FixInterpolation ();
  2542. }
  2543. DllExport int
  2544. SoundListener_GetType (Urho3D::SoundListener *_target)
  2545. {
  2546. return (_target->GetType ()).Value ();
  2547. }
  2548. DllExport const char *
  2549. SoundListener_GetTypeName (Urho3D::SoundListener *_target)
  2550. {
  2551. return stringdup((_target->GetTypeName ()).CString ());
  2552. }
  2553. DllExport int
  2554. SoundListener_GetTypeStatic ()
  2555. {
  2556. return (SoundListener::GetTypeStatic ()).Value ();
  2557. }
  2558. DllExport const char *
  2559. SoundListener_GetTypeNameStatic ()
  2560. {
  2561. return stringdup((SoundListener::GetTypeNameStatic ()).CString ());
  2562. }
  2563. DllExport void *
  2564. SoundListener_SoundListener (Urho3D::Context * context)
  2565. {
  2566. return WeakPtr<SoundListener>(new SoundListener(context));
  2567. }
  2568. DllExport void
  2569. SoundListener_RegisterObject (Urho3D::Context * context)
  2570. {
  2571. SoundListener::RegisterObject (context);
  2572. }
  2573. DllExport int
  2574. SoundSource_GetType (Urho3D::SoundSource *_target)
  2575. {
  2576. return (_target->GetType ()).Value ();
  2577. }
  2578. DllExport const char *
  2579. SoundSource_GetTypeName (Urho3D::SoundSource *_target)
  2580. {
  2581. return stringdup((_target->GetTypeName ()).CString ());
  2582. }
  2583. DllExport int
  2584. SoundSource_GetTypeStatic ()
  2585. {
  2586. return (SoundSource::GetTypeStatic ()).Value ();
  2587. }
  2588. DllExport const char *
  2589. SoundSource_GetTypeNameStatic ()
  2590. {
  2591. return stringdup((SoundSource::GetTypeNameStatic ()).CString ());
  2592. }
  2593. DllExport void *
  2594. SoundSource_SoundSource (Urho3D::Context * context)
  2595. {
  2596. return WeakPtr<SoundSource>(new SoundSource(context));
  2597. }
  2598. DllExport void
  2599. SoundSource_RegisterObject (Urho3D::Context * context)
  2600. {
  2601. SoundSource::RegisterObject (context);
  2602. }
  2603. DllExport void
  2604. SoundSource_Seek (Urho3D::SoundSource *_target, float seekTime)
  2605. {
  2606. _target->Seek (seekTime);
  2607. }
  2608. DllExport void
  2609. SoundSource_Play (Urho3D::SoundSource *_target, Urho3D::Sound * sound)
  2610. {
  2611. _target->Play (sound);
  2612. }
  2613. DllExport void
  2614. SoundSource_Play0 (Urho3D::SoundSource *_target, Urho3D::Sound * sound, float frequency)
  2615. {
  2616. _target->Play (sound, frequency);
  2617. }
  2618. DllExport void
  2619. SoundSource_Play1 (Urho3D::SoundSource *_target, Urho3D::Sound * sound, float frequency, float gain)
  2620. {
  2621. _target->Play (sound, frequency, gain);
  2622. }
  2623. DllExport void
  2624. SoundSource_Play2 (Urho3D::SoundSource *_target, Urho3D::Sound * sound, float frequency, float gain, float panning)
  2625. {
  2626. _target->Play (sound, frequency, gain, panning);
  2627. }
  2628. DllExport void
  2629. SoundSource_Play3 (Urho3D::SoundSource *_target, Urho3D::SoundStream * stream)
  2630. {
  2631. _target->Play (stream);
  2632. }
  2633. DllExport void
  2634. SoundSource_Stop (Urho3D::SoundSource *_target)
  2635. {
  2636. _target->Stop ();
  2637. }
  2638. DllExport void
  2639. SoundSource_SetSoundType (Urho3D::SoundSource *_target, const char * type)
  2640. {
  2641. _target->SetSoundType (Urho3D::String(type));
  2642. }
  2643. DllExport void
  2644. SoundSource_SetFrequency (Urho3D::SoundSource *_target, float frequency)
  2645. {
  2646. _target->SetFrequency (frequency);
  2647. }
  2648. DllExport void
  2649. SoundSource_SetGain (Urho3D::SoundSource *_target, float gain)
  2650. {
  2651. _target->SetGain (gain);
  2652. }
  2653. DllExport void
  2654. SoundSource_SetAttenuation (Urho3D::SoundSource *_target, float attenuation)
  2655. {
  2656. _target->SetAttenuation (attenuation);
  2657. }
  2658. DllExport void
  2659. SoundSource_SetPanning (Urho3D::SoundSource *_target, float panning)
  2660. {
  2661. _target->SetPanning (panning);
  2662. }
  2663. DllExport void
  2664. SoundSource_SetAutoRemoveMode (Urho3D::SoundSource *_target, enum Urho3D::AutoRemoveMode mode)
  2665. {
  2666. _target->SetAutoRemoveMode (mode);
  2667. }
  2668. DllExport void
  2669. SoundSource_SetPlayPosition (Urho3D::SoundSource *_target, signed char * pos)
  2670. {
  2671. _target->SetPlayPosition (pos);
  2672. }
  2673. DllExport Urho3D::Sound *
  2674. SoundSource_GetSound (Urho3D::SoundSource *_target)
  2675. {
  2676. return _target->GetSound ();
  2677. }
  2678. DllExport volatile signed char *
  2679. SoundSource_GetPlayPosition (Urho3D::SoundSource *_target)
  2680. {
  2681. return _target->GetPlayPosition ();
  2682. }
  2683. DllExport const char *
  2684. SoundSource_GetSoundType (Urho3D::SoundSource *_target)
  2685. {
  2686. return stringdup((_target->GetSoundType ()).CString ());
  2687. }
  2688. DllExport float
  2689. SoundSource_GetTimePosition (Urho3D::SoundSource *_target)
  2690. {
  2691. return _target->GetTimePosition ();
  2692. }
  2693. DllExport float
  2694. SoundSource_GetFrequency (Urho3D::SoundSource *_target)
  2695. {
  2696. return _target->GetFrequency ();
  2697. }
  2698. DllExport float
  2699. SoundSource_GetGain (Urho3D::SoundSource *_target)
  2700. {
  2701. return _target->GetGain ();
  2702. }
  2703. DllExport float
  2704. SoundSource_GetAttenuation (Urho3D::SoundSource *_target)
  2705. {
  2706. return _target->GetAttenuation ();
  2707. }
  2708. DllExport float
  2709. SoundSource_GetPanning (Urho3D::SoundSource *_target)
  2710. {
  2711. return _target->GetPanning ();
  2712. }
  2713. DllExport enum Urho3D::AutoRemoveMode
  2714. SoundSource_GetAutoRemoveMode (Urho3D::SoundSource *_target)
  2715. {
  2716. return _target->GetAutoRemoveMode ();
  2717. }
  2718. DllExport int
  2719. SoundSource_IsPlaying (Urho3D::SoundSource *_target)
  2720. {
  2721. return _target->IsPlaying ();
  2722. }
  2723. DllExport void
  2724. SoundSource_Update (Urho3D::SoundSource *_target, float timeStep)
  2725. {
  2726. _target->Update (timeStep);
  2727. }
  2728. DllExport void
  2729. SoundSource_Mix (Urho3D::SoundSource *_target, int * dest, unsigned int samples, int mixRate, bool stereo, bool interpolation)
  2730. {
  2731. _target->Mix (dest, samples, mixRate, stereo, interpolation);
  2732. }
  2733. DllExport void
  2734. SoundSource_UpdateMasterGain (Urho3D::SoundSource *_target)
  2735. {
  2736. _target->UpdateMasterGain ();
  2737. }
  2738. DllExport void
  2739. SoundSource_SetPositionAttr (Urho3D::SoundSource *_target, int value)
  2740. {
  2741. _target->SetPositionAttr (value);
  2742. }
  2743. DllExport Urho3D::ResourceRef
  2744. SoundSource_GetSoundAttr (Urho3D::SoundSource *_target)
  2745. {
  2746. return _target->GetSoundAttr ();
  2747. }
  2748. DllExport void
  2749. SoundSource_SetPlayingAttr (Urho3D::SoundSource *_target, bool value)
  2750. {
  2751. _target->SetPlayingAttr (value);
  2752. }
  2753. DllExport int
  2754. SoundSource_GetPositionAttr (Urho3D::SoundSource *_target)
  2755. {
  2756. return _target->GetPositionAttr ();
  2757. }
  2758. DllExport int
  2759. SoundSource3D_GetType (Urho3D::SoundSource3D *_target)
  2760. {
  2761. return (_target->GetType ()).Value ();
  2762. }
  2763. DllExport const char *
  2764. SoundSource3D_GetTypeName (Urho3D::SoundSource3D *_target)
  2765. {
  2766. return stringdup((_target->GetTypeName ()).CString ());
  2767. }
  2768. DllExport int
  2769. SoundSource3D_GetTypeStatic ()
  2770. {
  2771. return (SoundSource3D::GetTypeStatic ()).Value ();
  2772. }
  2773. DllExport const char *
  2774. SoundSource3D_GetTypeNameStatic ()
  2775. {
  2776. return stringdup((SoundSource3D::GetTypeNameStatic ()).CString ());
  2777. }
  2778. DllExport void *
  2779. SoundSource3D_SoundSource3D (Urho3D::Context * context)
  2780. {
  2781. return WeakPtr<SoundSource3D>(new SoundSource3D(context));
  2782. }
  2783. DllExport void
  2784. SoundSource3D_RegisterObject (Urho3D::Context * context)
  2785. {
  2786. SoundSource3D::RegisterObject (context);
  2787. }
  2788. DllExport void
  2789. SoundSource3D_DrawDebugGeometry (Urho3D::SoundSource3D *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  2790. {
  2791. _target->DrawDebugGeometry (debug, depthTest);
  2792. }
  2793. DllExport void
  2794. SoundSource3D_Update (Urho3D::SoundSource3D *_target, float timeStep)
  2795. {
  2796. _target->Update (timeStep);
  2797. }
  2798. DllExport void
  2799. SoundSource3D_SetDistanceAttenuation (Urho3D::SoundSource3D *_target, float nearDistance, float farDistance, float rolloffFactor)
  2800. {
  2801. _target->SetDistanceAttenuation (nearDistance, farDistance, rolloffFactor);
  2802. }
  2803. DllExport void
  2804. SoundSource3D_SetAngleAttenuation (Urho3D::SoundSource3D *_target, float innerAngle, float outerAngle)
  2805. {
  2806. _target->SetAngleAttenuation (innerAngle, outerAngle);
  2807. }
  2808. DllExport void
  2809. SoundSource3D_SetNearDistance (Urho3D::SoundSource3D *_target, float distance)
  2810. {
  2811. _target->SetNearDistance (distance);
  2812. }
  2813. DllExport void
  2814. SoundSource3D_SetFarDistance (Urho3D::SoundSource3D *_target, float distance)
  2815. {
  2816. _target->SetFarDistance (distance);
  2817. }
  2818. DllExport void
  2819. SoundSource3D_SetInnerAngle (Urho3D::SoundSource3D *_target, float angle)
  2820. {
  2821. _target->SetInnerAngle (angle);
  2822. }
  2823. DllExport void
  2824. SoundSource3D_SetOuterAngle (Urho3D::SoundSource3D *_target, float angle)
  2825. {
  2826. _target->SetOuterAngle (angle);
  2827. }
  2828. DllExport void
  2829. SoundSource3D_SetRolloffFactor (Urho3D::SoundSource3D *_target, float factor)
  2830. {
  2831. _target->SetRolloffFactor (factor);
  2832. }
  2833. DllExport void
  2834. SoundSource3D_CalculateAttenuation (Urho3D::SoundSource3D *_target)
  2835. {
  2836. _target->CalculateAttenuation ();
  2837. }
  2838. DllExport float
  2839. SoundSource3D_GetNearDistance (Urho3D::SoundSource3D *_target)
  2840. {
  2841. return _target->GetNearDistance ();
  2842. }
  2843. DllExport float
  2844. SoundSource3D_GetFarDistance (Urho3D::SoundSource3D *_target)
  2845. {
  2846. return _target->GetFarDistance ();
  2847. }
  2848. DllExport float
  2849. SoundSource3D_GetInnerAngle (Urho3D::SoundSource3D *_target)
  2850. {
  2851. return _target->GetInnerAngle ();
  2852. }
  2853. DllExport float
  2854. SoundSource3D_GetOuterAngle (Urho3D::SoundSource3D *_target)
  2855. {
  2856. return _target->GetOuterAngle ();
  2857. }
  2858. DllExport float
  2859. SoundSource3D_RollAngleoffFactor (Urho3D::SoundSource3D *_target)
  2860. {
  2861. return _target->RollAngleoffFactor ();
  2862. }
  2863. DllExport void *
  2864. EventReceiverGroup_EventReceiverGroup ()
  2865. {
  2866. return WeakPtr<EventReceiverGroup>(new EventReceiverGroup());
  2867. }
  2868. DllExport void
  2869. EventReceiverGroup_BeginSendEvent (Urho3D::EventReceiverGroup *_target)
  2870. {
  2871. _target->BeginSendEvent ();
  2872. }
  2873. DllExport void
  2874. EventReceiverGroup_EndSendEvent (Urho3D::EventReceiverGroup *_target)
  2875. {
  2876. _target->EndSendEvent ();
  2877. }
  2878. DllExport void
  2879. EventReceiverGroup_Add (Urho3D::EventReceiverGroup *_target, Urho3D::Object * object)
  2880. {
  2881. _target->Add (object);
  2882. }
  2883. DllExport void
  2884. EventReceiverGroup_Remove (Urho3D::EventReceiverGroup *_target, Urho3D::Object * object)
  2885. {
  2886. _target->Remove (object);
  2887. }
  2888. DllExport void *
  2889. Context_Context ()
  2890. {
  2891. return WeakPtr<Context>(new Context());
  2892. }
  2893. DllExport Urho3D::Object *
  2894. Context_CreateObject (Urho3D::Context *_target, int objectType)
  2895. {
  2896. auto copy = _target->CreateObject (Urho3D::StringHash(objectType));
  2897. auto plain = copy.Get();
  2898. copy.Detach();
  2899. delete copy;
  2900. return plain;
  2901. }
  2902. DllExport void
  2903. Context_RegisterFactory (Urho3D::Context *_target, Urho3D::ObjectFactory * factory)
  2904. {
  2905. _target->RegisterFactory (factory);
  2906. }
  2907. DllExport void
  2908. Context_RegisterSubsystem (Urho3D::Context *_target, Urho3D::Object * subsystem)
  2909. {
  2910. _target->RegisterSubsystem (subsystem);
  2911. }
  2912. DllExport void
  2913. Context_RemoveSubsystem (Urho3D::Context *_target, int objectType)
  2914. {
  2915. _target->RemoveSubsystem (Urho3D::StringHash(objectType));
  2916. }
  2917. DllExport int
  2918. Context_RequireSDL (Urho3D::Context *_target, unsigned int sdlFlags)
  2919. {
  2920. return _target->RequireSDL (sdlFlags);
  2921. }
  2922. DllExport void
  2923. Context_ReleaseSDL (Urho3D::Context *_target)
  2924. {
  2925. _target->ReleaseSDL ();
  2926. }
  2927. DllExport void
  2928. Context_CopyBaseAttributes (Urho3D::Context *_target, int baseType, int derivedType)
  2929. {
  2930. _target->CopyBaseAttributes (Urho3D::StringHash(baseType), Urho3D::StringHash(derivedType));
  2931. }
  2932. DllExport Urho3D::Object *
  2933. Context_GetSubsystem (Urho3D::Context *_target, int type)
  2934. {
  2935. return _target->GetSubsystem (Urho3D::StringHash(type));
  2936. }
  2937. // Urho3D::Variant overloads begin:
  2938. DllExport Interop::Vector3
  2939. Context_GetGlobalVar0 (Urho3D::Context *_target, int key)
  2940. {
  2941. return *((Interop::Vector3 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetVector3()));
  2942. }
  2943. DllExport Interop::IntRect
  2944. Context_GetGlobalVar1 (Urho3D::Context *_target, int key)
  2945. {
  2946. return *((Interop::IntRect *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetIntRect()));
  2947. }
  2948. DllExport Interop::Color
  2949. Context_GetGlobalVar2 (Urho3D::Context *_target, int key)
  2950. {
  2951. return *((Interop::Color *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetColor()));
  2952. }
  2953. DllExport Interop::Vector2
  2954. Context_GetGlobalVar3 (Urho3D::Context *_target, int key)
  2955. {
  2956. return *((Interop::Vector2 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetVector2()));
  2957. }
  2958. DllExport Interop::Vector4
  2959. Context_GetGlobalVar4 (Urho3D::Context *_target, int key)
  2960. {
  2961. return *((Interop::Vector4 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetVector4()));
  2962. }
  2963. DllExport Interop::IntVector2
  2964. Context_GetGlobalVar5 (Urho3D::Context *_target, int key)
  2965. {
  2966. return *((Interop::IntVector2 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetIntVector2()));
  2967. }
  2968. DllExport Interop::Quaternion
  2969. Context_GetGlobalVar6 (Urho3D::Context *_target, int key)
  2970. {
  2971. return *((Interop::Quaternion *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetQuaternion()));
  2972. }
  2973. DllExport Interop::Matrix4
  2974. Context_GetGlobalVar7 (Urho3D::Context *_target, int key)
  2975. {
  2976. return *((Interop::Matrix4 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetMatrix4()));
  2977. }
  2978. DllExport Interop::Matrix3x4
  2979. Context_GetGlobalVar8 (Urho3D::Context *_target, int key)
  2980. {
  2981. return *((Interop::Matrix3x4 *) &(_target->GetGlobalVar (Urho3D::StringHash(key)).GetMatrix3x4()));
  2982. }
  2983. DllExport int
  2984. Context_GetGlobalVar9 (Urho3D::Context *_target, int key)
  2985. {
  2986. return (_target->GetGlobalVar (Urho3D::StringHash(key)).GetInt());
  2987. }
  2988. DllExport float
  2989. Context_GetGlobalVar10 (Urho3D::Context *_target, int key)
  2990. {
  2991. return (_target->GetGlobalVar (Urho3D::StringHash(key)).GetFloat());
  2992. }
  2993. DllExport const char *
  2994. Context_GetGlobalVar11 (Urho3D::Context *_target, int key)
  2995. {
  2996. return stringdup(_target->GetGlobalVar (Urho3D::StringHash(key)).GetString().CString());
  2997. }
  2998. DllExport bool
  2999. Context_GetGlobalVar12 (Urho3D::Context *_target, int key)
  3000. {
  3001. return (_target->GetGlobalVar (Urho3D::StringHash(key)).GetBool());
  3002. }
  3003. // Urho3D::Variant overloads end.
  3004. // Urho3D::Variant overloads begin:
  3005. DllExport void
  3006. Context_SetGlobalVar0 (Urho3D::Context *_target, int key, const class Urho3D::Vector3 & value)
  3007. {
  3008. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  3009. }
  3010. DllExport void
  3011. Context_SetGlobalVar1 (Urho3D::Context *_target, int key, const class Urho3D::IntRect & value)
  3012. {
  3013. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  3014. }
  3015. DllExport void
  3016. Context_SetGlobalVar2 (Urho3D::Context *_target, int key, const class Urho3D::Color & value)
  3017. {
  3018. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  3019. }
  3020. DllExport void
  3021. Context_SetGlobalVar3 (Urho3D::Context *_target, int key, const class Urho3D::Vector2 & value)
  3022. {
  3023. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  3024. }
  3025. DllExport void
  3026. Context_SetGlobalVar4 (Urho3D::Context *_target, int key, const class Urho3D::Vector4 & value)
  3027. {
  3028. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  3029. }
  3030. DllExport void
  3031. Context_SetGlobalVar5 (Urho3D::Context *_target, int key, const class Urho3D::IntVector2 & value)
  3032. {
  3033. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  3034. }
  3035. DllExport void
  3036. Context_SetGlobalVar6 (Urho3D::Context *_target, int key, const class Urho3D::Quaternion & value)
  3037. {
  3038. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  3039. }
  3040. DllExport void
  3041. Context_SetGlobalVar7 (Urho3D::Context *_target, int key, const class Urho3D::Matrix4 & value)
  3042. {
  3043. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  3044. }
  3045. DllExport void
  3046. Context_SetGlobalVar8 (Urho3D::Context *_target, int key, const class Urho3D::Matrix3x4 & value)
  3047. {
  3048. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  3049. }
  3050. DllExport void
  3051. Context_SetGlobalVar9 (Urho3D::Context *_target, int key, int value)
  3052. {
  3053. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  3054. }
  3055. DllExport void
  3056. Context_SetGlobalVar10 (Urho3D::Context *_target, int key, float value)
  3057. {
  3058. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  3059. }
  3060. DllExport void
  3061. Context_SetGlobalVar11 (Urho3D::Context *_target, int key, const char * value)
  3062. {
  3063. _target->SetGlobalVar (Urho3D::StringHash(key), Urho3D::String(value));
  3064. }
  3065. DllExport void
  3066. Context_SetGlobalVar12 (Urho3D::Context *_target, int key, bool value)
  3067. {
  3068. _target->SetGlobalVar (Urho3D::StringHash(key), (value));
  3069. }
  3070. // Urho3D::Variant overloads end.
  3071. DllExport Urho3D::Object *
  3072. Context_GetEventSender (Urho3D::Context *_target)
  3073. {
  3074. return _target->GetEventSender ();
  3075. }
  3076. DllExport Urho3D::EventHandler *
  3077. Context_GetEventHandler (Urho3D::Context *_target)
  3078. {
  3079. return _target->GetEventHandler ();
  3080. }
  3081. DllExport const char *
  3082. Context_GetTypeName (Urho3D::Context *_target, int objectType)
  3083. {
  3084. return stringdup((_target->GetTypeName (Urho3D::StringHash(objectType))).CString ());
  3085. }
  3086. DllExport Urho3D::EventReceiverGroup *
  3087. Context_GetEventReceivers (Urho3D::Context *_target, Urho3D::Object * sender, int eventType)
  3088. {
  3089. return _target->GetEventReceivers (sender, Urho3D::StringHash(eventType));
  3090. }
  3091. DllExport Urho3D::EventReceiverGroup *
  3092. Context_GetEventReceivers0 (Urho3D::Context *_target, int eventType)
  3093. {
  3094. return _target->GetEventReceivers (Urho3D::StringHash(eventType));
  3095. }
  3096. DllExport int
  3097. Profiler_GetType (Urho3D::Profiler *_target)
  3098. {
  3099. return (_target->GetType ()).Value ();
  3100. }
  3101. DllExport const char *
  3102. Profiler_GetTypeName (Urho3D::Profiler *_target)
  3103. {
  3104. return stringdup((_target->GetTypeName ()).CString ());
  3105. }
  3106. DllExport int
  3107. Profiler_GetTypeStatic ()
  3108. {
  3109. return (Profiler::GetTypeStatic ()).Value ();
  3110. }
  3111. DllExport const char *
  3112. Profiler_GetTypeNameStatic ()
  3113. {
  3114. return stringdup((Profiler::GetTypeNameStatic ()).CString ());
  3115. }
  3116. DllExport void *
  3117. Profiler_Profiler (Urho3D::Context * context)
  3118. {
  3119. return WeakPtr<Profiler>(new Profiler(context));
  3120. }
  3121. DllExport void
  3122. Profiler_EndBlock (Urho3D::Profiler *_target)
  3123. {
  3124. _target->EndBlock ();
  3125. }
  3126. DllExport void
  3127. Profiler_BeginFrame (Urho3D::Profiler *_target)
  3128. {
  3129. _target->BeginFrame ();
  3130. }
  3131. DllExport void
  3132. Profiler_EndFrame (Urho3D::Profiler *_target)
  3133. {
  3134. _target->EndFrame ();
  3135. }
  3136. DllExport void
  3137. Profiler_BeginInterval (Urho3D::Profiler *_target)
  3138. {
  3139. _target->BeginInterval ();
  3140. }
  3141. DllExport const char *
  3142. Profiler_PrintData (Urho3D::Profiler *_target, bool showUnused, bool showTotal, unsigned int maxDepth)
  3143. {
  3144. return stringdup((_target->PrintData (showUnused, showTotal, maxDepth)).CString ());
  3145. }
  3146. DllExport const class Urho3D::ProfilerBlock *
  3147. Profiler_GetCurrentBlock (Urho3D::Profiler *_target)
  3148. {
  3149. return _target->GetCurrentBlock ();
  3150. }
  3151. DllExport const class Urho3D::ProfilerBlock *
  3152. Profiler_GetRootBlock (Urho3D::Profiler *_target)
  3153. {
  3154. return _target->GetRootBlock ();
  3155. }
  3156. DllExport void *
  3157. WorkItem_WorkItem ()
  3158. {
  3159. return WeakPtr<WorkItem>(new WorkItem());
  3160. }
  3161. DllExport int
  3162. WorkQueue_GetType (Urho3D::WorkQueue *_target)
  3163. {
  3164. return (_target->GetType ()).Value ();
  3165. }
  3166. DllExport const char *
  3167. WorkQueue_GetTypeName (Urho3D::WorkQueue *_target)
  3168. {
  3169. return stringdup((_target->GetTypeName ()).CString ());
  3170. }
  3171. DllExport int
  3172. WorkQueue_GetTypeStatic ()
  3173. {
  3174. return (WorkQueue::GetTypeStatic ()).Value ();
  3175. }
  3176. DllExport const char *
  3177. WorkQueue_GetTypeNameStatic ()
  3178. {
  3179. return stringdup((WorkQueue::GetTypeNameStatic ()).CString ());
  3180. }
  3181. DllExport void *
  3182. WorkQueue_WorkQueue (Urho3D::Context * context)
  3183. {
  3184. return WeakPtr<WorkQueue>(new WorkQueue(context));
  3185. }
  3186. DllExport void
  3187. WorkQueue_CreateThreads (Urho3D::WorkQueue *_target, unsigned int numThreads)
  3188. {
  3189. _target->CreateThreads (numThreads);
  3190. }
  3191. DllExport Urho3D::WorkItem *
  3192. WorkQueue_GetFreeItem (Urho3D::WorkQueue *_target)
  3193. {
  3194. auto copy = _target->GetFreeItem ();
  3195. auto plain = copy.Get();
  3196. copy.Detach();
  3197. delete copy;
  3198. return plain;
  3199. }
  3200. DllExport void
  3201. WorkQueue_Pause (Urho3D::WorkQueue *_target)
  3202. {
  3203. _target->Pause ();
  3204. }
  3205. DllExport void
  3206. WorkQueue_Resume (Urho3D::WorkQueue *_target)
  3207. {
  3208. _target->Resume ();
  3209. }
  3210. DllExport void
  3211. WorkQueue_Complete (Urho3D::WorkQueue *_target, unsigned int priority)
  3212. {
  3213. _target->Complete (priority);
  3214. }
  3215. DllExport void
  3216. WorkQueue_SetTolerance (Urho3D::WorkQueue *_target, int tolerance)
  3217. {
  3218. _target->SetTolerance (tolerance);
  3219. }
  3220. DllExport void
  3221. WorkQueue_SetNonThreadedWorkMs (Urho3D::WorkQueue *_target, int ms)
  3222. {
  3223. _target->SetNonThreadedWorkMs (ms);
  3224. }
  3225. DllExport unsigned int
  3226. WorkQueue_GetNumThreads (Urho3D::WorkQueue *_target)
  3227. {
  3228. return _target->GetNumThreads ();
  3229. }
  3230. DllExport int
  3231. WorkQueue_IsCompleted (Urho3D::WorkQueue *_target, unsigned int priority)
  3232. {
  3233. return _target->IsCompleted (priority);
  3234. }
  3235. DllExport int
  3236. WorkQueue_IsCompleting (Urho3D::WorkQueue *_target)
  3237. {
  3238. return _target->IsCompleting ();
  3239. }
  3240. DllExport int
  3241. WorkQueue_GetTolerance (Urho3D::WorkQueue *_target)
  3242. {
  3243. return _target->GetTolerance ();
  3244. }
  3245. DllExport int
  3246. WorkQueue_GetNonThreadedWorkMs (Urho3D::WorkQueue *_target)
  3247. {
  3248. return _target->GetNonThreadedWorkMs ();
  3249. }
  3250. DllExport int
  3251. Engine_GetType (Urho3D::Engine *_target)
  3252. {
  3253. return (_target->GetType ()).Value ();
  3254. }
  3255. DllExport const char *
  3256. Engine_GetTypeName (Urho3D::Engine *_target)
  3257. {
  3258. return stringdup((_target->GetTypeName ()).CString ());
  3259. }
  3260. DllExport int
  3261. Engine_GetTypeStatic ()
  3262. {
  3263. return (Engine::GetTypeStatic ()).Value ();
  3264. }
  3265. DllExport const char *
  3266. Engine_GetTypeNameStatic ()
  3267. {
  3268. return stringdup((Engine::GetTypeNameStatic ()).CString ());
  3269. }
  3270. DllExport void *
  3271. Engine_Engine (Urho3D::Context * context)
  3272. {
  3273. return WeakPtr<Engine>(new Engine(context));
  3274. }
  3275. DllExport int
  3276. Engine_RunFrame (Urho3D::Engine *_target)
  3277. {
  3278. return _target->RunFrame ();
  3279. }
  3280. DllExport Urho3D::Console *
  3281. Engine_CreateConsole (Urho3D::Engine *_target)
  3282. {
  3283. return _target->CreateConsole ();
  3284. }
  3285. DllExport Urho3D::DebugHud *
  3286. Engine_CreateDebugHud (Urho3D::Engine *_target)
  3287. {
  3288. return _target->CreateDebugHud ();
  3289. }
  3290. DllExport void
  3291. Engine_SetMinFps (Urho3D::Engine *_target, int fps)
  3292. {
  3293. _target->SetMinFps (fps);
  3294. }
  3295. DllExport void
  3296. Engine_SetMaxFps (Urho3D::Engine *_target, int fps)
  3297. {
  3298. _target->SetMaxFps (fps);
  3299. }
  3300. DllExport void
  3301. Engine_SetMaxInactiveFps (Urho3D::Engine *_target, int fps)
  3302. {
  3303. _target->SetMaxInactiveFps (fps);
  3304. }
  3305. DllExport void
  3306. Engine_SetTimeStepSmoothing (Urho3D::Engine *_target, int frames)
  3307. {
  3308. _target->SetTimeStepSmoothing (frames);
  3309. }
  3310. DllExport void
  3311. Engine_SetPauseMinimized (Urho3D::Engine *_target, bool enable)
  3312. {
  3313. _target->SetPauseMinimized (enable);
  3314. }
  3315. DllExport void
  3316. Engine_SetAutoExit (Urho3D::Engine *_target, bool enable)
  3317. {
  3318. _target->SetAutoExit (enable);
  3319. }
  3320. DllExport void
  3321. Engine_SetNextTimeStep (Urho3D::Engine *_target, float seconds)
  3322. {
  3323. _target->SetNextTimeStep (seconds);
  3324. }
  3325. DllExport void
  3326. Engine_Exit (Urho3D::Engine *_target)
  3327. {
  3328. _target->Exit ();
  3329. }
  3330. DllExport void
  3331. Engine_DumpProfiler (Urho3D::Engine *_target)
  3332. {
  3333. _target->DumpProfiler ();
  3334. }
  3335. DllExport void
  3336. Engine_DumpResources (Urho3D::Engine *_target, bool dumpFileName)
  3337. {
  3338. _target->DumpResources (dumpFileName);
  3339. }
  3340. DllExport void
  3341. Engine_DumpMemory (Urho3D::Engine *_target)
  3342. {
  3343. _target->DumpMemory ();
  3344. }
  3345. DllExport float
  3346. Engine_GetNextTimeStep (Urho3D::Engine *_target)
  3347. {
  3348. return _target->GetNextTimeStep ();
  3349. }
  3350. DllExport int
  3351. Engine_GetMinFps (Urho3D::Engine *_target)
  3352. {
  3353. return _target->GetMinFps ();
  3354. }
  3355. DllExport int
  3356. Engine_GetMaxFps (Urho3D::Engine *_target)
  3357. {
  3358. return _target->GetMaxFps ();
  3359. }
  3360. DllExport int
  3361. Engine_GetMaxInactiveFps (Urho3D::Engine *_target)
  3362. {
  3363. return _target->GetMaxInactiveFps ();
  3364. }
  3365. DllExport int
  3366. Engine_GetTimeStepSmoothing (Urho3D::Engine *_target)
  3367. {
  3368. return _target->GetTimeStepSmoothing ();
  3369. }
  3370. DllExport int
  3371. Engine_GetPauseMinimized (Urho3D::Engine *_target)
  3372. {
  3373. return _target->GetPauseMinimized ();
  3374. }
  3375. DllExport int
  3376. Engine_GetAutoExit (Urho3D::Engine *_target)
  3377. {
  3378. return _target->GetAutoExit ();
  3379. }
  3380. DllExport int
  3381. Engine_IsInitialized (Urho3D::Engine *_target)
  3382. {
  3383. return _target->IsInitialized ();
  3384. }
  3385. DllExport int
  3386. Engine_IsExiting (Urho3D::Engine *_target)
  3387. {
  3388. return _target->IsExiting ();
  3389. }
  3390. DllExport int
  3391. Engine_IsHeadless (Urho3D::Engine *_target)
  3392. {
  3393. return _target->IsHeadless ();
  3394. }
  3395. DllExport void
  3396. Engine_Update (Urho3D::Engine *_target)
  3397. {
  3398. _target->Update ();
  3399. }
  3400. DllExport void
  3401. Engine_Render (Urho3D::Engine *_target)
  3402. {
  3403. _target->Render ();
  3404. }
  3405. DllExport int
  3406. Engine_ApplyFrameLimit (Urho3D::Engine *_target)
  3407. {
  3408. return _target->ApplyFrameLimit ();
  3409. }
  3410. DllExport int
  3411. Application_GetType (Urho3D::Application *_target)
  3412. {
  3413. return (_target->GetType ()).Value ();
  3414. }
  3415. DllExport const char *
  3416. Application_GetTypeName (Urho3D::Application *_target)
  3417. {
  3418. return stringdup((_target->GetTypeName ()).CString ());
  3419. }
  3420. DllExport int
  3421. Application_GetTypeStatic ()
  3422. {
  3423. return (Application::GetTypeStatic ()).Value ();
  3424. }
  3425. DllExport const char *
  3426. Application_GetTypeNameStatic ()
  3427. {
  3428. return stringdup((Application::GetTypeNameStatic ()).CString ());
  3429. }
  3430. DllExport int
  3431. Application_Run (Urho3D::Application *_target)
  3432. {
  3433. return _target->Run ();
  3434. }
  3435. DllExport void
  3436. Application_ErrorExit (Urho3D::Application *_target, const char * message)
  3437. {
  3438. _target->ErrorExit (Urho3D::String(message));
  3439. }
  3440. DllExport int
  3441. UrhoConsole_GetType (Urho3D::Console *_target)
  3442. {
  3443. return (_target->GetType ()).Value ();
  3444. }
  3445. DllExport const char *
  3446. UrhoConsole_GetTypeName (Urho3D::Console *_target)
  3447. {
  3448. return stringdup((_target->GetTypeName ()).CString ());
  3449. }
  3450. DllExport int
  3451. UrhoConsole_GetTypeStatic ()
  3452. {
  3453. return (Console::GetTypeStatic ()).Value ();
  3454. }
  3455. DllExport const char *
  3456. UrhoConsole_GetTypeNameStatic ()
  3457. {
  3458. return stringdup((Console::GetTypeNameStatic ()).CString ());
  3459. }
  3460. DllExport void *
  3461. UrhoConsole_Console (Urho3D::Context * context)
  3462. {
  3463. return WeakPtr<Console>(new Console(context));
  3464. }
  3465. DllExport void
  3466. UrhoConsole_SetDefaultStyle (Urho3D::Console *_target, Urho3D::XMLFile * style)
  3467. {
  3468. _target->SetDefaultStyle (style);
  3469. }
  3470. DllExport void
  3471. UrhoConsole_SetVisible (Urho3D::Console *_target, bool enable)
  3472. {
  3473. _target->SetVisible (enable);
  3474. }
  3475. DllExport void
  3476. UrhoConsole_Toggle (Urho3D::Console *_target)
  3477. {
  3478. _target->Toggle ();
  3479. }
  3480. DllExport void
  3481. UrhoConsole_SetAutoVisibleOnError (Urho3D::Console *_target, bool enable)
  3482. {
  3483. _target->SetAutoVisibleOnError (enable);
  3484. }
  3485. DllExport void
  3486. UrhoConsole_SetCommandInterpreter (Urho3D::Console *_target, const char * interpreter)
  3487. {
  3488. _target->SetCommandInterpreter (Urho3D::String(interpreter));
  3489. }
  3490. DllExport void
  3491. UrhoConsole_SetNumBufferedRows (Urho3D::Console *_target, unsigned int rows)
  3492. {
  3493. _target->SetNumBufferedRows (rows);
  3494. }
  3495. DllExport void
  3496. UrhoConsole_SetNumRows (Urho3D::Console *_target, unsigned int rows)
  3497. {
  3498. _target->SetNumRows (rows);
  3499. }
  3500. DllExport void
  3501. UrhoConsole_SetNumHistoryRows (Urho3D::Console *_target, unsigned int rows)
  3502. {
  3503. _target->SetNumHistoryRows (rows);
  3504. }
  3505. DllExport void
  3506. UrhoConsole_SetFocusOnShow (Urho3D::Console *_target, bool enable)
  3507. {
  3508. _target->SetFocusOnShow (enable);
  3509. }
  3510. DllExport void
  3511. UrhoConsole_AddAutoComplete (Urho3D::Console *_target, const char * option)
  3512. {
  3513. _target->AddAutoComplete (Urho3D::String(option));
  3514. }
  3515. DllExport void
  3516. UrhoConsole_RemoveAutoComplete (Urho3D::Console *_target, const char * option)
  3517. {
  3518. _target->RemoveAutoComplete (Urho3D::String(option));
  3519. }
  3520. DllExport void
  3521. UrhoConsole_UpdateElements (Urho3D::Console *_target)
  3522. {
  3523. _target->UpdateElements ();
  3524. }
  3525. DllExport Urho3D::XMLFile *
  3526. UrhoConsole_GetDefaultStyle (Urho3D::Console *_target)
  3527. {
  3528. return _target->GetDefaultStyle ();
  3529. }
  3530. DllExport Urho3D::BorderImage *
  3531. UrhoConsole_GetBackground (Urho3D::Console *_target)
  3532. {
  3533. return _target->GetBackground ();
  3534. }
  3535. DllExport Urho3D::LineEdit *
  3536. UrhoConsole_GetLineEdit (Urho3D::Console *_target)
  3537. {
  3538. return _target->GetLineEdit ();
  3539. }
  3540. DllExport Urho3D::Button *
  3541. UrhoConsole_GetCloseButton (Urho3D::Console *_target)
  3542. {
  3543. return _target->GetCloseButton ();
  3544. }
  3545. DllExport int
  3546. UrhoConsole_IsVisible (Urho3D::Console *_target)
  3547. {
  3548. return _target->IsVisible ();
  3549. }
  3550. DllExport int
  3551. UrhoConsole_IsAutoVisibleOnError (Urho3D::Console *_target)
  3552. {
  3553. return _target->IsAutoVisibleOnError ();
  3554. }
  3555. DllExport const char *
  3556. UrhoConsole_GetCommandInterpreter (Urho3D::Console *_target)
  3557. {
  3558. return stringdup((_target->GetCommandInterpreter ()).CString ());
  3559. }
  3560. DllExport unsigned int
  3561. UrhoConsole_GetNumBufferedRows (Urho3D::Console *_target)
  3562. {
  3563. return _target->GetNumBufferedRows ();
  3564. }
  3565. DllExport unsigned int
  3566. UrhoConsole_GetNumRows (Urho3D::Console *_target)
  3567. {
  3568. return _target->GetNumRows ();
  3569. }
  3570. DllExport void
  3571. UrhoConsole_CopySelectedRows (Urho3D::Console *_target)
  3572. {
  3573. _target->CopySelectedRows ();
  3574. }
  3575. DllExport unsigned int
  3576. UrhoConsole_GetNumHistoryRows (Urho3D::Console *_target)
  3577. {
  3578. return _target->GetNumHistoryRows ();
  3579. }
  3580. DllExport unsigned int
  3581. UrhoConsole_GetHistoryPosition (Urho3D::Console *_target)
  3582. {
  3583. return _target->GetHistoryPosition ();
  3584. }
  3585. DllExport const char *
  3586. UrhoConsole_GetHistoryRow (Urho3D::Console *_target, unsigned int index)
  3587. {
  3588. return stringdup((_target->GetHistoryRow (index)).CString ());
  3589. }
  3590. DllExport int
  3591. UrhoConsole_GetFocusOnShow (Urho3D::Console *_target)
  3592. {
  3593. return _target->GetFocusOnShow ();
  3594. }
  3595. DllExport int
  3596. DebugHud_GetType (Urho3D::DebugHud *_target)
  3597. {
  3598. return (_target->GetType ()).Value ();
  3599. }
  3600. DllExport const char *
  3601. DebugHud_GetTypeName (Urho3D::DebugHud *_target)
  3602. {
  3603. return stringdup((_target->GetTypeName ()).CString ());
  3604. }
  3605. DllExport int
  3606. DebugHud_GetTypeStatic ()
  3607. {
  3608. return (DebugHud::GetTypeStatic ()).Value ();
  3609. }
  3610. DllExport const char *
  3611. DebugHud_GetTypeNameStatic ()
  3612. {
  3613. return stringdup((DebugHud::GetTypeNameStatic ()).CString ());
  3614. }
  3615. DllExport void *
  3616. DebugHud_DebugHud (Urho3D::Context * context)
  3617. {
  3618. return WeakPtr<DebugHud>(new DebugHud(context));
  3619. }
  3620. DllExport void
  3621. DebugHud_Update (Urho3D::DebugHud *_target)
  3622. {
  3623. _target->Update ();
  3624. }
  3625. DllExport void
  3626. DebugHud_SetDefaultStyle (Urho3D::DebugHud *_target, Urho3D::XMLFile * style)
  3627. {
  3628. _target->SetDefaultStyle (style);
  3629. }
  3630. DllExport void
  3631. DebugHud_SetMode (Urho3D::DebugHud *_target, unsigned int mode)
  3632. {
  3633. _target->SetMode (mode);
  3634. }
  3635. DllExport void
  3636. DebugHud_SetProfilerMaxDepth (Urho3D::DebugHud *_target, unsigned int depth)
  3637. {
  3638. _target->SetProfilerMaxDepth (depth);
  3639. }
  3640. DllExport void
  3641. DebugHud_SetProfilerInterval (Urho3D::DebugHud *_target, float interval)
  3642. {
  3643. _target->SetProfilerInterval (interval);
  3644. }
  3645. DllExport void
  3646. DebugHud_SetUseRendererStats (Urho3D::DebugHud *_target, bool enable)
  3647. {
  3648. _target->SetUseRendererStats (enable);
  3649. }
  3650. DllExport void
  3651. DebugHud_Toggle (Urho3D::DebugHud *_target, unsigned int mode)
  3652. {
  3653. _target->Toggle (mode);
  3654. }
  3655. DllExport void
  3656. DebugHud_ToggleAll (Urho3D::DebugHud *_target)
  3657. {
  3658. _target->ToggleAll ();
  3659. }
  3660. DllExport Urho3D::XMLFile *
  3661. DebugHud_GetDefaultStyle (Urho3D::DebugHud *_target)
  3662. {
  3663. return _target->GetDefaultStyle ();
  3664. }
  3665. DllExport Urho3D::Text *
  3666. DebugHud_GetStatsText (Urho3D::DebugHud *_target)
  3667. {
  3668. return _target->GetStatsText ();
  3669. }
  3670. DllExport Urho3D::Text *
  3671. DebugHud_GetModeText (Urho3D::DebugHud *_target)
  3672. {
  3673. return _target->GetModeText ();
  3674. }
  3675. DllExport Urho3D::Text *
  3676. DebugHud_GetProfilerText (Urho3D::DebugHud *_target)
  3677. {
  3678. return _target->GetProfilerText ();
  3679. }
  3680. DllExport Urho3D::Text *
  3681. DebugHud_GetMemoryText (Urho3D::DebugHud *_target)
  3682. {
  3683. return _target->GetMemoryText ();
  3684. }
  3685. DllExport unsigned int
  3686. DebugHud_GetMode (Urho3D::DebugHud *_target)
  3687. {
  3688. return _target->GetMode ();
  3689. }
  3690. DllExport unsigned int
  3691. DebugHud_GetProfilerMaxDepth (Urho3D::DebugHud *_target)
  3692. {
  3693. return _target->GetProfilerMaxDepth ();
  3694. }
  3695. DllExport float
  3696. DebugHud_GetProfilerInterval (Urho3D::DebugHud *_target)
  3697. {
  3698. return _target->GetProfilerInterval ();
  3699. }
  3700. DllExport int
  3701. DebugHud_GetUseRendererStats (Urho3D::DebugHud *_target)
  3702. {
  3703. return _target->GetUseRendererStats ();
  3704. }
  3705. DllExport void
  3706. DebugHud_SetAppStats (Urho3D::DebugHud *_target, const char * label, const char * stats)
  3707. {
  3708. _target->SetAppStats (Urho3D::String(label), Urho3D::String(stats));
  3709. }
  3710. DllExport int
  3711. DebugHud_ResetAppStats (Urho3D::DebugHud *_target, const char * label)
  3712. {
  3713. return _target->ResetAppStats (Urho3D::String(label));
  3714. }
  3715. DllExport void
  3716. DebugHud_ClearAppStats (Urho3D::DebugHud *_target)
  3717. {
  3718. _target->ClearAppStats ();
  3719. }
  3720. DllExport int
  3721. Node_GetType (Urho3D::Node *_target)
  3722. {
  3723. return (_target->GetType ()).Value ();
  3724. }
  3725. DllExport const char *
  3726. Node_GetTypeName (Urho3D::Node *_target)
  3727. {
  3728. return stringdup((_target->GetTypeName ()).CString ());
  3729. }
  3730. DllExport int
  3731. Node_GetTypeStatic ()
  3732. {
  3733. return (Node::GetTypeStatic ()).Value ();
  3734. }
  3735. DllExport const char *
  3736. Node_GetTypeNameStatic ()
  3737. {
  3738. return stringdup((Node::GetTypeNameStatic ()).CString ());
  3739. }
  3740. DllExport void *
  3741. Node_Node (Urho3D::Context * context)
  3742. {
  3743. return WeakPtr<Node>(new Node(context));
  3744. }
  3745. DllExport void
  3746. Node_RegisterObject (Urho3D::Context * context)
  3747. {
  3748. Node::RegisterObject (context);
  3749. }
  3750. DllExport int
  3751. Node_Load_File (Urho3D::Node *_target, File * source, bool setInstanceDefault)
  3752. {
  3753. return _target->Load (*source, setInstanceDefault);
  3754. }
  3755. DllExport int
  3756. Node_Load_MemoryBuffer (Urho3D::Node *_target, MemoryBuffer * source, bool setInstanceDefault)
  3757. {
  3758. return _target->Load (*source, setInstanceDefault);
  3759. }
  3760. DllExport int
  3761. Node_LoadXML (Urho3D::Node *_target, const class Urho3D::XMLElement & source, bool setInstanceDefault)
  3762. {
  3763. return _target->LoadXML (source, setInstanceDefault);
  3764. }
  3765. DllExport int
  3766. Node_Save_File (Urho3D::Node *_target, File * dest)
  3767. {
  3768. return _target->Save (*dest);
  3769. }
  3770. DllExport int
  3771. Node_Save_MemoryBuffer (Urho3D::Node *_target, MemoryBuffer * dest)
  3772. {
  3773. return _target->Save (*dest);
  3774. }
  3775. DllExport int
  3776. Node_SaveXML (Urho3D::Node *_target, Urho3D::XMLElement & dest)
  3777. {
  3778. return _target->SaveXML (dest);
  3779. }
  3780. DllExport void
  3781. Node_ApplyAttributes (Urho3D::Node *_target)
  3782. {
  3783. _target->ApplyAttributes ();
  3784. }
  3785. DllExport int
  3786. Node_SaveDefaultAttributes (Urho3D::Node *_target)
  3787. {
  3788. return _target->SaveDefaultAttributes ();
  3789. }
  3790. DllExport void
  3791. Node_MarkNetworkUpdate (Urho3D::Node *_target)
  3792. {
  3793. _target->MarkNetworkUpdate ();
  3794. }
  3795. DllExport void
  3796. Node_AddReplicationState (Urho3D::Node *_target, Urho3D::NodeReplicationState * state)
  3797. {
  3798. _target->AddReplicationState (state);
  3799. }
  3800. DllExport int
  3801. Node_SaveXML0_File (Urho3D::Node *_target, File * dest, const char * indentation)
  3802. {
  3803. return _target->SaveXML (*dest, Urho3D::String(indentation));
  3804. }
  3805. DllExport int
  3806. Node_SaveXML0_MemoryBuffer (Urho3D::Node *_target, MemoryBuffer * dest, const char * indentation)
  3807. {
  3808. return _target->SaveXML (*dest, Urho3D::String(indentation));
  3809. }
  3810. DllExport int
  3811. Node_SaveJSON_File (Urho3D::Node *_target, File * dest, const char * indentation)
  3812. {
  3813. return _target->SaveJSON (*dest, Urho3D::String(indentation));
  3814. }
  3815. DllExport int
  3816. Node_SaveJSON_MemoryBuffer (Urho3D::Node *_target, MemoryBuffer * dest, const char * indentation)
  3817. {
  3818. return _target->SaveJSON (*dest, Urho3D::String(indentation));
  3819. }
  3820. DllExport void
  3821. Node_SetName (Urho3D::Node *_target, const char * name)
  3822. {
  3823. _target->SetName (Urho3D::String(name));
  3824. }
  3825. DllExport void
  3826. Node_AddTag (Urho3D::Node *_target, const char * tag)
  3827. {
  3828. _target->AddTag (Urho3D::String(tag));
  3829. }
  3830. DllExport int
  3831. Node_RemoveTag (Urho3D::Node *_target, const char * tag)
  3832. {
  3833. return _target->RemoveTag (Urho3D::String(tag));
  3834. }
  3835. DllExport void
  3836. Node_RemoveAllTags (Urho3D::Node *_target)
  3837. {
  3838. _target->RemoveAllTags ();
  3839. }
  3840. DllExport void
  3841. Node_SetPosition (Urho3D::Node *_target, const class Urho3D::Vector3 & position)
  3842. {
  3843. _target->SetPosition (position);
  3844. }
  3845. DllExport void
  3846. Node_SetPosition2D (Urho3D::Node *_target, const class Urho3D::Vector2 & position)
  3847. {
  3848. _target->SetPosition2D (position);
  3849. }
  3850. DllExport void
  3851. Node_SetPosition2D1 (Urho3D::Node *_target, float x, float y)
  3852. {
  3853. _target->SetPosition2D (x, y);
  3854. }
  3855. DllExport void
  3856. Node_SetRotation (Urho3D::Node *_target, const class Urho3D::Quaternion & rotation)
  3857. {
  3858. _target->SetRotation (rotation);
  3859. }
  3860. DllExport void
  3861. Node_SetRotation2D (Urho3D::Node *_target, float rotation)
  3862. {
  3863. _target->SetRotation2D (rotation);
  3864. }
  3865. DllExport void
  3866. Node_SetDirection (Urho3D::Node *_target, const class Urho3D::Vector3 & direction)
  3867. {
  3868. _target->SetDirection (direction);
  3869. }
  3870. DllExport void
  3871. Node_SetScale (Urho3D::Node *_target, float scale)
  3872. {
  3873. _target->SetScale (scale);
  3874. }
  3875. DllExport void
  3876. Node_SetScale2 (Urho3D::Node *_target, const class Urho3D::Vector3 & scale)
  3877. {
  3878. _target->SetScale (scale);
  3879. }
  3880. DllExport void
  3881. Node_SetScale2D (Urho3D::Node *_target, const class Urho3D::Vector2 & scale)
  3882. {
  3883. _target->SetScale2D (scale);
  3884. }
  3885. DllExport void
  3886. Node_SetScale2D3 (Urho3D::Node *_target, float x, float y)
  3887. {
  3888. _target->SetScale2D (x, y);
  3889. }
  3890. DllExport void
  3891. Node_SetTransform (Urho3D::Node *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  3892. {
  3893. _target->SetTransform (position, rotation);
  3894. }
  3895. DllExport void
  3896. Node_SetTransform4 (Urho3D::Node *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, float scale)
  3897. {
  3898. _target->SetTransform (position, rotation, scale);
  3899. }
  3900. DllExport void
  3901. Node_SetTransform5 (Urho3D::Node *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, const class Urho3D::Vector3 & scale)
  3902. {
  3903. _target->SetTransform (position, rotation, scale);
  3904. }
  3905. DllExport void
  3906. Node_SetTransform6 (Urho3D::Node *_target, const class Urho3D::Matrix3x4 & matrix)
  3907. {
  3908. _target->SetTransform (matrix);
  3909. }
  3910. DllExport void
  3911. Node_SetTransform2D (Urho3D::Node *_target, const class Urho3D::Vector2 & position, float rotation)
  3912. {
  3913. _target->SetTransform2D (position, rotation);
  3914. }
  3915. DllExport void
  3916. Node_SetTransform2D7 (Urho3D::Node *_target, const class Urho3D::Vector2 & position, float rotation, float scale)
  3917. {
  3918. _target->SetTransform2D (position, rotation, scale);
  3919. }
  3920. DllExport void
  3921. Node_SetTransform2D8 (Urho3D::Node *_target, const class Urho3D::Vector2 & position, float rotation, const class Urho3D::Vector2 & scale)
  3922. {
  3923. _target->SetTransform2D (position, rotation, scale);
  3924. }
  3925. DllExport void
  3926. Node_SetWorldPosition (Urho3D::Node *_target, const class Urho3D::Vector3 & position)
  3927. {
  3928. _target->SetWorldPosition (position);
  3929. }
  3930. DllExport void
  3931. Node_SetWorldPosition2D (Urho3D::Node *_target, const class Urho3D::Vector2 & position)
  3932. {
  3933. _target->SetWorldPosition2D (position);
  3934. }
  3935. DllExport void
  3936. Node_SetWorldPosition2D9 (Urho3D::Node *_target, float x, float y)
  3937. {
  3938. _target->SetWorldPosition2D (x, y);
  3939. }
  3940. DllExport void
  3941. Node_SetWorldRotation (Urho3D::Node *_target, const class Urho3D::Quaternion & rotation)
  3942. {
  3943. _target->SetWorldRotation (rotation);
  3944. }
  3945. DllExport void
  3946. Node_SetWorldRotation2D (Urho3D::Node *_target, float rotation)
  3947. {
  3948. _target->SetWorldRotation2D (rotation);
  3949. }
  3950. DllExport void
  3951. Node_SetWorldDirection (Urho3D::Node *_target, const class Urho3D::Vector3 & direction)
  3952. {
  3953. _target->SetWorldDirection (direction);
  3954. }
  3955. DllExport void
  3956. Node_SetWorldScale (Urho3D::Node *_target, float scale)
  3957. {
  3958. _target->SetWorldScale (scale);
  3959. }
  3960. DllExport void
  3961. Node_SetWorldScale10 (Urho3D::Node *_target, const class Urho3D::Vector3 & scale)
  3962. {
  3963. _target->SetWorldScale (scale);
  3964. }
  3965. DllExport void
  3966. Node_SetWorldScale2D (Urho3D::Node *_target, const class Urho3D::Vector2 & scale)
  3967. {
  3968. _target->SetWorldScale2D (scale);
  3969. }
  3970. DllExport void
  3971. Node_SetWorldScale2D11 (Urho3D::Node *_target, float x, float y)
  3972. {
  3973. _target->SetWorldScale2D (x, y);
  3974. }
  3975. DllExport void
  3976. Node_SetWorldTransform (Urho3D::Node *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  3977. {
  3978. _target->SetWorldTransform (position, rotation);
  3979. }
  3980. DllExport void
  3981. Node_SetWorldTransform12 (Urho3D::Node *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, float scale)
  3982. {
  3983. _target->SetWorldTransform (position, rotation, scale);
  3984. }
  3985. DllExport void
  3986. Node_SetWorldTransform13 (Urho3D::Node *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, const class Urho3D::Vector3 & scale)
  3987. {
  3988. _target->SetWorldTransform (position, rotation, scale);
  3989. }
  3990. DllExport void
  3991. Node_SetWorldTransform2D (Urho3D::Node *_target, const class Urho3D::Vector2 & position, float rotation)
  3992. {
  3993. _target->SetWorldTransform2D (position, rotation);
  3994. }
  3995. DllExport void
  3996. Node_SetWorldTransform2D14 (Urho3D::Node *_target, const class Urho3D::Vector2 & position, float rotation, float scale)
  3997. {
  3998. _target->SetWorldTransform2D (position, rotation, scale);
  3999. }
  4000. DllExport void
  4001. Node_SetWorldTransform2D15 (Urho3D::Node *_target, const class Urho3D::Vector2 & position, float rotation, const class Urho3D::Vector2 & scale)
  4002. {
  4003. _target->SetWorldTransform2D (position, rotation, scale);
  4004. }
  4005. DllExport void
  4006. Node_Translate (Urho3D::Node *_target, const class Urho3D::Vector3 & delta, enum Urho3D::TransformSpace space)
  4007. {
  4008. _target->Translate (delta, space);
  4009. }
  4010. DllExport void
  4011. Node_Translate2D (Urho3D::Node *_target, const class Urho3D::Vector2 & delta, enum Urho3D::TransformSpace space)
  4012. {
  4013. _target->Translate2D (delta, space);
  4014. }
  4015. DllExport void
  4016. Node_Rotate (Urho3D::Node *_target, const class Urho3D::Quaternion & delta, enum Urho3D::TransformSpace space)
  4017. {
  4018. _target->Rotate (delta, space);
  4019. }
  4020. DllExport void
  4021. Node_Rotate2D (Urho3D::Node *_target, float delta, enum Urho3D::TransformSpace space)
  4022. {
  4023. _target->Rotate2D (delta, space);
  4024. }
  4025. DllExport void
  4026. Node_RotateAround (Urho3D::Node *_target, const class Urho3D::Vector3 & point, const class Urho3D::Quaternion & delta, enum Urho3D::TransformSpace space)
  4027. {
  4028. _target->RotateAround (point, delta, space);
  4029. }
  4030. DllExport void
  4031. Node_RotateAround2D (Urho3D::Node *_target, const class Urho3D::Vector2 & point, float delta, enum Urho3D::TransformSpace space)
  4032. {
  4033. _target->RotateAround2D (point, delta, space);
  4034. }
  4035. DllExport void
  4036. Node_Pitch (Urho3D::Node *_target, float angle, enum Urho3D::TransformSpace space)
  4037. {
  4038. _target->Pitch (angle, space);
  4039. }
  4040. DllExport void
  4041. Node_Yaw (Urho3D::Node *_target, float angle, enum Urho3D::TransformSpace space)
  4042. {
  4043. _target->Yaw (angle, space);
  4044. }
  4045. DllExport void
  4046. Node_Roll (Urho3D::Node *_target, float angle, enum Urho3D::TransformSpace space)
  4047. {
  4048. _target->Roll (angle, space);
  4049. }
  4050. DllExport int
  4051. Node_LookAt (Urho3D::Node *_target, const class Urho3D::Vector3 & target, const class Urho3D::Vector3 & up, enum Urho3D::TransformSpace space)
  4052. {
  4053. return _target->LookAt (target, up, space);
  4054. }
  4055. DllExport void
  4056. Node_Scale (Urho3D::Node *_target, float scale)
  4057. {
  4058. _target->Scale (scale);
  4059. }
  4060. DllExport void
  4061. Node_Scale16 (Urho3D::Node *_target, const class Urho3D::Vector3 & scale)
  4062. {
  4063. _target->Scale (scale);
  4064. }
  4065. DllExport void
  4066. Node_Scale2D (Urho3D::Node *_target, const class Urho3D::Vector2 & scale)
  4067. {
  4068. _target->Scale2D (scale);
  4069. }
  4070. DllExport void
  4071. Node_SetEnabled (Urho3D::Node *_target, bool enable)
  4072. {
  4073. _target->SetEnabled (enable);
  4074. }
  4075. DllExport void
  4076. Node_SetDeepEnabled (Urho3D::Node *_target, bool enable)
  4077. {
  4078. _target->SetDeepEnabled (enable);
  4079. }
  4080. DllExport void
  4081. Node_ResetDeepEnabled (Urho3D::Node *_target)
  4082. {
  4083. _target->ResetDeepEnabled ();
  4084. }
  4085. DllExport void
  4086. Node_SetEnabledRecursive (Urho3D::Node *_target, bool enable)
  4087. {
  4088. _target->SetEnabledRecursive (enable);
  4089. }
  4090. DllExport void
  4091. Node_SetOwner (Urho3D::Node *_target, Urho3D::Connection * owner)
  4092. {
  4093. _target->SetOwner (owner);
  4094. }
  4095. DllExport void
  4096. Node_MarkDirty (Urho3D::Node *_target)
  4097. {
  4098. _target->MarkDirty ();
  4099. }
  4100. DllExport Urho3D::Node *
  4101. Node_CreateChild (Urho3D::Node *_target, const char * name, enum Urho3D::CreateMode mode, unsigned int id, bool temporary)
  4102. {
  4103. return _target->CreateChild (Urho3D::String(name), mode, id, temporary);
  4104. }
  4105. DllExport Urho3D::Node *
  4106. Node_CreateTemporaryChild (Urho3D::Node *_target, const char * name, enum Urho3D::CreateMode mode, unsigned int id)
  4107. {
  4108. return _target->CreateTemporaryChild (Urho3D::String(name), mode, id);
  4109. }
  4110. DllExport void
  4111. Node_AddChild (Urho3D::Node *_target, Urho3D::Node * node, unsigned int index)
  4112. {
  4113. _target->AddChild (node, index);
  4114. }
  4115. DllExport void
  4116. Node_RemoveChild (Urho3D::Node *_target, Urho3D::Node * node)
  4117. {
  4118. _target->RemoveChild (node);
  4119. }
  4120. DllExport void
  4121. Node_RemoveAllChildren (Urho3D::Node *_target)
  4122. {
  4123. _target->RemoveAllChildren ();
  4124. }
  4125. DllExport void
  4126. Node_RemoveChildren (Urho3D::Node *_target, bool removeReplicated, bool removeLocal, bool recursive)
  4127. {
  4128. _target->RemoveChildren (removeReplicated, removeLocal, recursive);
  4129. }
  4130. DllExport Urho3D::Component *
  4131. Node_CreateComponent (Urho3D::Node *_target, int type, enum Urho3D::CreateMode mode, unsigned int id)
  4132. {
  4133. return _target->CreateComponent (Urho3D::StringHash(type), mode, id);
  4134. }
  4135. DllExport Urho3D::Component *
  4136. Node_GetOrCreateComponent (Urho3D::Node *_target, int type, enum Urho3D::CreateMode mode, unsigned int id)
  4137. {
  4138. return _target->GetOrCreateComponent (Urho3D::StringHash(type), mode, id);
  4139. }
  4140. DllExport Urho3D::Component *
  4141. Node_CloneComponent (Urho3D::Node *_target, Urho3D::Component * component, unsigned int id)
  4142. {
  4143. return _target->CloneComponent (component, id);
  4144. }
  4145. DllExport Urho3D::Component *
  4146. Node_CloneComponent17 (Urho3D::Node *_target, Urho3D::Component * component, enum Urho3D::CreateMode mode, unsigned int id)
  4147. {
  4148. return _target->CloneComponent (component, mode, id);
  4149. }
  4150. DllExport void
  4151. Node_RemoveComponent (Urho3D::Node *_target, Urho3D::Component * component)
  4152. {
  4153. _target->RemoveComponent (component);
  4154. }
  4155. DllExport void
  4156. Node_RemoveComponent18 (Urho3D::Node *_target, int type)
  4157. {
  4158. _target->RemoveComponent (Urho3D::StringHash(type));
  4159. }
  4160. DllExport void
  4161. Node_RemoveComponents (Urho3D::Node *_target, bool removeReplicated, bool removeLocal)
  4162. {
  4163. _target->RemoveComponents (removeReplicated, removeLocal);
  4164. }
  4165. DllExport void
  4166. Node_RemoveComponents19 (Urho3D::Node *_target, int type)
  4167. {
  4168. _target->RemoveComponents (Urho3D::StringHash(type));
  4169. }
  4170. DllExport void
  4171. Node_RemoveAllComponents (Urho3D::Node *_target)
  4172. {
  4173. _target->RemoveAllComponents ();
  4174. }
  4175. DllExport void
  4176. Node_ReorderComponent (Urho3D::Node *_target, Urho3D::Component * component, unsigned int index)
  4177. {
  4178. _target->ReorderComponent (component, index);
  4179. }
  4180. DllExport Urho3D::Node *
  4181. Node_Clone (Urho3D::Node *_target, enum Urho3D::CreateMode mode)
  4182. {
  4183. return _target->Clone (mode);
  4184. }
  4185. DllExport void
  4186. Node_Remove (Urho3D::Node *_target)
  4187. {
  4188. _target->Remove ();
  4189. }
  4190. DllExport void
  4191. Node_SetParent (Urho3D::Node *_target, Urho3D::Node * parent)
  4192. {
  4193. _target->SetParent (parent);
  4194. }
  4195. // Urho3D::Variant overloads begin:
  4196. DllExport void
  4197. Node_SetVar0 (Urho3D::Node *_target, int key, const class Urho3D::Vector3 & value)
  4198. {
  4199. _target->SetVar (Urho3D::StringHash(key), (value));
  4200. }
  4201. DllExport void
  4202. Node_SetVar1 (Urho3D::Node *_target, int key, const class Urho3D::IntRect & value)
  4203. {
  4204. _target->SetVar (Urho3D::StringHash(key), (value));
  4205. }
  4206. DllExport void
  4207. Node_SetVar2 (Urho3D::Node *_target, int key, const class Urho3D::Color & value)
  4208. {
  4209. _target->SetVar (Urho3D::StringHash(key), (value));
  4210. }
  4211. DllExport void
  4212. Node_SetVar3 (Urho3D::Node *_target, int key, const class Urho3D::Vector2 & value)
  4213. {
  4214. _target->SetVar (Urho3D::StringHash(key), (value));
  4215. }
  4216. DllExport void
  4217. Node_SetVar4 (Urho3D::Node *_target, int key, const class Urho3D::Vector4 & value)
  4218. {
  4219. _target->SetVar (Urho3D::StringHash(key), (value));
  4220. }
  4221. DllExport void
  4222. Node_SetVar5 (Urho3D::Node *_target, int key, const class Urho3D::IntVector2 & value)
  4223. {
  4224. _target->SetVar (Urho3D::StringHash(key), (value));
  4225. }
  4226. DllExport void
  4227. Node_SetVar6 (Urho3D::Node *_target, int key, const class Urho3D::Quaternion & value)
  4228. {
  4229. _target->SetVar (Urho3D::StringHash(key), (value));
  4230. }
  4231. DllExport void
  4232. Node_SetVar7 (Urho3D::Node *_target, int key, const class Urho3D::Matrix4 & value)
  4233. {
  4234. _target->SetVar (Urho3D::StringHash(key), (value));
  4235. }
  4236. DllExport void
  4237. Node_SetVar8 (Urho3D::Node *_target, int key, const class Urho3D::Matrix3x4 & value)
  4238. {
  4239. _target->SetVar (Urho3D::StringHash(key), (value));
  4240. }
  4241. DllExport void
  4242. Node_SetVar9 (Urho3D::Node *_target, int key, int value)
  4243. {
  4244. _target->SetVar (Urho3D::StringHash(key), (value));
  4245. }
  4246. DllExport void
  4247. Node_SetVar10 (Urho3D::Node *_target, int key, float value)
  4248. {
  4249. _target->SetVar (Urho3D::StringHash(key), (value));
  4250. }
  4251. DllExport void
  4252. Node_SetVar11 (Urho3D::Node *_target, int key, const char * value)
  4253. {
  4254. _target->SetVar (Urho3D::StringHash(key), Urho3D::String(value));
  4255. }
  4256. DllExport void
  4257. Node_SetVar12 (Urho3D::Node *_target, int key, bool value)
  4258. {
  4259. _target->SetVar (Urho3D::StringHash(key), (value));
  4260. }
  4261. // Urho3D::Variant overloads end.
  4262. DllExport void
  4263. Node_AddListener (Urho3D::Node *_target, Urho3D::Component * component)
  4264. {
  4265. _target->AddListener (component);
  4266. }
  4267. DllExport void
  4268. Node_RemoveListener (Urho3D::Node *_target, Urho3D::Component * component)
  4269. {
  4270. _target->RemoveListener (component);
  4271. }
  4272. DllExport unsigned int
  4273. Node_GetID (Urho3D::Node *_target)
  4274. {
  4275. return _target->GetID ();
  4276. }
  4277. DllExport const char *
  4278. Node_GetName (Urho3D::Node *_target)
  4279. {
  4280. return stringdup((_target->GetName ()).CString ());
  4281. }
  4282. DllExport int
  4283. Node_GetNameHash (Urho3D::Node *_target)
  4284. {
  4285. return (_target->GetNameHash ()).Value ();
  4286. }
  4287. DllExport int
  4288. Node_HasTag (Urho3D::Node *_target, const char * tag)
  4289. {
  4290. return _target->HasTag (Urho3D::String(tag));
  4291. }
  4292. DllExport Urho3D::Node *
  4293. Node_GetParent (Urho3D::Node *_target)
  4294. {
  4295. return _target->GetParent ();
  4296. }
  4297. DllExport Urho3D::Scene *
  4298. Node_GetScene (Urho3D::Node *_target)
  4299. {
  4300. return _target->GetScene ();
  4301. }
  4302. DllExport int
  4303. Node_IsChildOf (Urho3D::Node *_target, Urho3D::Node * node)
  4304. {
  4305. return _target->IsChildOf (node);
  4306. }
  4307. DllExport int
  4308. Node_IsEnabled (Urho3D::Node *_target)
  4309. {
  4310. return _target->IsEnabled ();
  4311. }
  4312. DllExport int
  4313. Node_IsEnabledSelf (Urho3D::Node *_target)
  4314. {
  4315. return _target->IsEnabledSelf ();
  4316. }
  4317. DllExport Urho3D::Connection *
  4318. Node_GetOwner (Urho3D::Node *_target)
  4319. {
  4320. return _target->GetOwner ();
  4321. }
  4322. DllExport Interop::Vector3
  4323. Node_GetPosition (Urho3D::Node *_target)
  4324. {
  4325. return *((Interop::Vector3 *) &(_target->GetPosition ()));
  4326. }
  4327. DllExport Interop::Vector2
  4328. Node_GetPosition2D (Urho3D::Node *_target)
  4329. {
  4330. return *((Interop::Vector2 *) &(_target->GetPosition2D ()));
  4331. }
  4332. DllExport Interop::Quaternion
  4333. Node_GetRotation (Urho3D::Node *_target)
  4334. {
  4335. return *((Interop::Quaternion *) &(_target->GetRotation ()));
  4336. }
  4337. DllExport float
  4338. Node_GetRotation2D (Urho3D::Node *_target)
  4339. {
  4340. return _target->GetRotation2D ();
  4341. }
  4342. DllExport Interop::Vector3
  4343. Node_GetDirection (Urho3D::Node *_target)
  4344. {
  4345. return *((Interop::Vector3 *) &(_target->GetDirection ()));
  4346. }
  4347. DllExport Interop::Vector3
  4348. Node_GetUp (Urho3D::Node *_target)
  4349. {
  4350. return *((Interop::Vector3 *) &(_target->GetUp ()));
  4351. }
  4352. DllExport Interop::Vector3
  4353. Node_GetRight (Urho3D::Node *_target)
  4354. {
  4355. return *((Interop::Vector3 *) &(_target->GetRight ()));
  4356. }
  4357. DllExport Interop::Vector3
  4358. Node_GetScale (Urho3D::Node *_target)
  4359. {
  4360. return *((Interop::Vector3 *) &(_target->GetScale ()));
  4361. }
  4362. DllExport Interop::Vector2
  4363. Node_GetScale2D (Urho3D::Node *_target)
  4364. {
  4365. return *((Interop::Vector2 *) &(_target->GetScale2D ()));
  4366. }
  4367. DllExport Interop::Matrix3x4
  4368. Node_GetTransform (Urho3D::Node *_target)
  4369. {
  4370. return *((Interop::Matrix3x4 *) &(_target->GetTransform ()));
  4371. }
  4372. DllExport Interop::Vector3
  4373. Node_GetWorldPosition (Urho3D::Node *_target)
  4374. {
  4375. return *((Interop::Vector3 *) &(_target->GetWorldPosition ()));
  4376. }
  4377. DllExport Interop::Vector2
  4378. Node_GetWorldPosition2D (Urho3D::Node *_target)
  4379. {
  4380. return *((Interop::Vector2 *) &(_target->GetWorldPosition2D ()));
  4381. }
  4382. DllExport Interop::Quaternion
  4383. Node_GetWorldRotation (Urho3D::Node *_target)
  4384. {
  4385. return *((Interop::Quaternion *) &(_target->GetWorldRotation ()));
  4386. }
  4387. DllExport float
  4388. Node_GetWorldRotation2D (Urho3D::Node *_target)
  4389. {
  4390. return _target->GetWorldRotation2D ();
  4391. }
  4392. DllExport Interop::Vector3
  4393. Node_GetWorldDirection (Urho3D::Node *_target)
  4394. {
  4395. return *((Interop::Vector3 *) &(_target->GetWorldDirection ()));
  4396. }
  4397. DllExport Interop::Vector3
  4398. Node_GetWorldUp (Urho3D::Node *_target)
  4399. {
  4400. return *((Interop::Vector3 *) &(_target->GetWorldUp ()));
  4401. }
  4402. DllExport Interop::Vector3
  4403. Node_GetWorldRight (Urho3D::Node *_target)
  4404. {
  4405. return *((Interop::Vector3 *) &(_target->GetWorldRight ()));
  4406. }
  4407. DllExport Interop::Vector3
  4408. Node_GetWorldScale (Urho3D::Node *_target)
  4409. {
  4410. return *((Interop::Vector3 *) &(_target->GetWorldScale ()));
  4411. }
  4412. DllExport Interop::Vector3
  4413. Node_GetSignedWorldScale (Urho3D::Node *_target)
  4414. {
  4415. return *((Interop::Vector3 *) &(_target->GetSignedWorldScale ()));
  4416. }
  4417. DllExport Interop::Vector2
  4418. Node_GetWorldScale2D (Urho3D::Node *_target)
  4419. {
  4420. return *((Interop::Vector2 *) &(_target->GetWorldScale2D ()));
  4421. }
  4422. DllExport Interop::Matrix3x4
  4423. Node_GetWorldTransform (Urho3D::Node *_target)
  4424. {
  4425. return *((Interop::Matrix3x4 *) &(_target->GetWorldTransform ()));
  4426. }
  4427. DllExport Interop::Vector3
  4428. Node_LocalToWorld (Urho3D::Node *_target, const class Urho3D::Vector3 & position)
  4429. {
  4430. return *((Interop::Vector3 *) &(_target->LocalToWorld (position)));
  4431. }
  4432. DllExport Interop::Vector3
  4433. Node_LocalToWorld20 (Urho3D::Node *_target, const class Urho3D::Vector4 & vector)
  4434. {
  4435. return *((Interop::Vector3 *) &(_target->LocalToWorld (vector)));
  4436. }
  4437. DllExport Interop::Vector2
  4438. Node_LocalToWorld2D (Urho3D::Node *_target, const class Urho3D::Vector2 & vector)
  4439. {
  4440. return *((Interop::Vector2 *) &(_target->LocalToWorld2D (vector)));
  4441. }
  4442. DllExport Interop::Vector3
  4443. Node_WorldToLocal (Urho3D::Node *_target, const class Urho3D::Vector3 & position)
  4444. {
  4445. return *((Interop::Vector3 *) &(_target->WorldToLocal (position)));
  4446. }
  4447. DllExport Interop::Vector3
  4448. Node_WorldToLocal21 (Urho3D::Node *_target, const class Urho3D::Vector4 & vector)
  4449. {
  4450. return *((Interop::Vector3 *) &(_target->WorldToLocal (vector)));
  4451. }
  4452. DllExport Interop::Vector2
  4453. Node_WorldToLocal2D (Urho3D::Node *_target, const class Urho3D::Vector2 & vector)
  4454. {
  4455. return *((Interop::Vector2 *) &(_target->WorldToLocal2D (vector)));
  4456. }
  4457. DllExport int
  4458. Node_IsDirty (Urho3D::Node *_target)
  4459. {
  4460. return _target->IsDirty ();
  4461. }
  4462. DllExport unsigned int
  4463. Node_GetNumChildren (Urho3D::Node *_target, bool recursive)
  4464. {
  4465. return _target->GetNumChildren (recursive);
  4466. }
  4467. DllExport const Vector<SharedPtr<class Urho3D::Node> > &
  4468. Node_GetChildren (Urho3D::Node *_target)
  4469. {
  4470. return _target->GetChildren ();
  4471. }
  4472. DllExport Urho3D::Node *
  4473. Node_GetChild (Urho3D::Node *_target, unsigned int index)
  4474. {
  4475. return _target->GetChild (index);
  4476. }
  4477. DllExport Urho3D::Node *
  4478. Node_GetChild22 (Urho3D::Node *_target, const char * name, bool recursive)
  4479. {
  4480. return _target->GetChild (Urho3D::String(name), recursive);
  4481. }
  4482. DllExport Urho3D::Node *
  4483. Node_GetChild23 (Urho3D::Node *_target, int nameHash, bool recursive)
  4484. {
  4485. return _target->GetChild (Urho3D::StringHash(nameHash), recursive);
  4486. }
  4487. DllExport unsigned int
  4488. Node_GetNumComponents (Urho3D::Node *_target)
  4489. {
  4490. return _target->GetNumComponents ();
  4491. }
  4492. DllExport unsigned int
  4493. Node_GetNumNetworkComponents (Urho3D::Node *_target)
  4494. {
  4495. return _target->GetNumNetworkComponents ();
  4496. }
  4497. DllExport const Vector<SharedPtr<class Urho3D::Component> > &
  4498. Node_GetComponents (Urho3D::Node *_target)
  4499. {
  4500. return _target->GetComponents ();
  4501. }
  4502. DllExport Urho3D::Component *
  4503. Node_GetComponent (Urho3D::Node *_target, int type, bool recursive)
  4504. {
  4505. return _target->GetComponent (Urho3D::StringHash(type), recursive);
  4506. }
  4507. DllExport Urho3D::Component *
  4508. Node_GetParentComponent (Urho3D::Node *_target, int type, bool fullTraversal)
  4509. {
  4510. return _target->GetParentComponent (Urho3D::StringHash(type), fullTraversal);
  4511. }
  4512. DllExport int
  4513. Node_HasComponent (Urho3D::Node *_target, int type)
  4514. {
  4515. return _target->HasComponent (Urho3D::StringHash(type));
  4516. }
  4517. // Urho3D::Variant overloads begin:
  4518. DllExport Interop::Vector3
  4519. Node_GetVar0 (Urho3D::Node *_target, int key)
  4520. {
  4521. return *((Interop::Vector3 *) &(_target->GetVar (Urho3D::StringHash(key)).GetVector3()));
  4522. }
  4523. DllExport Interop::IntRect
  4524. Node_GetVar1 (Urho3D::Node *_target, int key)
  4525. {
  4526. return *((Interop::IntRect *) &(_target->GetVar (Urho3D::StringHash(key)).GetIntRect()));
  4527. }
  4528. DllExport Interop::Color
  4529. Node_GetVar2 (Urho3D::Node *_target, int key)
  4530. {
  4531. return *((Interop::Color *) &(_target->GetVar (Urho3D::StringHash(key)).GetColor()));
  4532. }
  4533. DllExport Interop::Vector2
  4534. Node_GetVar3 (Urho3D::Node *_target, int key)
  4535. {
  4536. return *((Interop::Vector2 *) &(_target->GetVar (Urho3D::StringHash(key)).GetVector2()));
  4537. }
  4538. DllExport Interop::Vector4
  4539. Node_GetVar4 (Urho3D::Node *_target, int key)
  4540. {
  4541. return *((Interop::Vector4 *) &(_target->GetVar (Urho3D::StringHash(key)).GetVector4()));
  4542. }
  4543. DllExport Interop::IntVector2
  4544. Node_GetVar5 (Urho3D::Node *_target, int key)
  4545. {
  4546. return *((Interop::IntVector2 *) &(_target->GetVar (Urho3D::StringHash(key)).GetIntVector2()));
  4547. }
  4548. DllExport Interop::Quaternion
  4549. Node_GetVar6 (Urho3D::Node *_target, int key)
  4550. {
  4551. return *((Interop::Quaternion *) &(_target->GetVar (Urho3D::StringHash(key)).GetQuaternion()));
  4552. }
  4553. DllExport Interop::Matrix4
  4554. Node_GetVar7 (Urho3D::Node *_target, int key)
  4555. {
  4556. return *((Interop::Matrix4 *) &(_target->GetVar (Urho3D::StringHash(key)).GetMatrix4()));
  4557. }
  4558. DllExport Interop::Matrix3x4
  4559. Node_GetVar8 (Urho3D::Node *_target, int key)
  4560. {
  4561. return *((Interop::Matrix3x4 *) &(_target->GetVar (Urho3D::StringHash(key)).GetMatrix3x4()));
  4562. }
  4563. DllExport int
  4564. Node_GetVar9 (Urho3D::Node *_target, int key)
  4565. {
  4566. return (_target->GetVar (Urho3D::StringHash(key)).GetInt());
  4567. }
  4568. DllExport float
  4569. Node_GetVar10 (Urho3D::Node *_target, int key)
  4570. {
  4571. return (_target->GetVar (Urho3D::StringHash(key)).GetFloat());
  4572. }
  4573. DllExport const char *
  4574. Node_GetVar11 (Urho3D::Node *_target, int key)
  4575. {
  4576. return stringdup(_target->GetVar (Urho3D::StringHash(key)).GetString().CString());
  4577. }
  4578. DllExport bool
  4579. Node_GetVar12 (Urho3D::Node *_target, int key)
  4580. {
  4581. return (_target->GetVar (Urho3D::StringHash(key)).GetBool());
  4582. }
  4583. // Urho3D::Variant overloads end.
  4584. DllExport void
  4585. Node_SetID (Urho3D::Node *_target, unsigned int id)
  4586. {
  4587. _target->SetID (id);
  4588. }
  4589. DllExport void
  4590. Node_SetScene (Urho3D::Node *_target, Urho3D::Scene * scene)
  4591. {
  4592. _target->SetScene (scene);
  4593. }
  4594. DllExport void
  4595. Node_ResetScene (Urho3D::Node *_target)
  4596. {
  4597. _target->ResetScene ();
  4598. }
  4599. DllExport void
  4600. Node_SetNetPositionAttr (Urho3D::Node *_target, const class Urho3D::Vector3 & value)
  4601. {
  4602. _target->SetNetPositionAttr (value);
  4603. }
  4604. DllExport Interop::Vector3
  4605. Node_GetNetPositionAttr (Urho3D::Node *_target)
  4606. {
  4607. return *((Interop::Vector3 *) &(_target->GetNetPositionAttr ()));
  4608. }
  4609. DllExport void
  4610. Node_PrepareNetworkUpdate (Urho3D::Node *_target)
  4611. {
  4612. _target->PrepareNetworkUpdate ();
  4613. }
  4614. DllExport void
  4615. Node_CleanupConnection (Urho3D::Node *_target, Urho3D::Connection * connection)
  4616. {
  4617. _target->CleanupConnection (connection);
  4618. }
  4619. DllExport void
  4620. Node_MarkReplicationDirty (Urho3D::Node *_target)
  4621. {
  4622. _target->MarkReplicationDirty ();
  4623. }
  4624. DllExport Urho3D::Node *
  4625. Node_CreateChild24 (Urho3D::Node *_target, unsigned int id, enum Urho3D::CreateMode mode, bool temporary)
  4626. {
  4627. return _target->CreateChild (id, mode, temporary);
  4628. }
  4629. DllExport void
  4630. Node_AddComponent (Urho3D::Node *_target, Urho3D::Component * component, unsigned int id, enum Urho3D::CreateMode mode)
  4631. {
  4632. _target->AddComponent (component, id, mode);
  4633. }
  4634. DllExport unsigned int
  4635. Node_GetNumPersistentChildren (Urho3D::Node *_target)
  4636. {
  4637. return _target->GetNumPersistentChildren ();
  4638. }
  4639. DllExport unsigned int
  4640. Node_GetNumPersistentComponents (Urho3D::Node *_target)
  4641. {
  4642. return _target->GetNumPersistentComponents ();
  4643. }
  4644. DllExport void
  4645. Node_SetPositionSilent (Urho3D::Node *_target, const class Urho3D::Vector3 & position)
  4646. {
  4647. _target->SetPositionSilent (position);
  4648. }
  4649. DllExport void
  4650. Node_SetRotationSilent (Urho3D::Node *_target, const class Urho3D::Quaternion & rotation)
  4651. {
  4652. _target->SetRotationSilent (rotation);
  4653. }
  4654. DllExport void
  4655. Node_SetScaleSilent (Urho3D::Node *_target, const class Urho3D::Vector3 & scale)
  4656. {
  4657. _target->SetScaleSilent (scale);
  4658. }
  4659. DllExport void
  4660. Node_SetTransformSilent (Urho3D::Node *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, const class Urho3D::Vector3 & scale)
  4661. {
  4662. _target->SetTransformSilent (position, rotation, scale);
  4663. }
  4664. DllExport int
  4665. Skeleton_Load_File (Urho3D::Skeleton *_target, File * source)
  4666. {
  4667. return _target->Load (*source);
  4668. }
  4669. DllExport int
  4670. Skeleton_Load_MemoryBuffer (Urho3D::Skeleton *_target, MemoryBuffer * source)
  4671. {
  4672. return _target->Load (*source);
  4673. }
  4674. DllExport int
  4675. Skeleton_Save_File (Urho3D::Skeleton *_target, File * dest)
  4676. {
  4677. return _target->Save (*dest);
  4678. }
  4679. DllExport int
  4680. Skeleton_Save_MemoryBuffer (Urho3D::Skeleton *_target, MemoryBuffer * dest)
  4681. {
  4682. return _target->Save (*dest);
  4683. }
  4684. DllExport void
  4685. Skeleton_SetRootBoneIndex (Urho3D::Skeleton *_target, unsigned int index)
  4686. {
  4687. _target->SetRootBoneIndex (index);
  4688. }
  4689. DllExport void
  4690. Skeleton_ClearBones (Urho3D::Skeleton *_target)
  4691. {
  4692. _target->ClearBones ();
  4693. }
  4694. DllExport void
  4695. Skeleton_Reset (Urho3D::Skeleton *_target)
  4696. {
  4697. _target->Reset ();
  4698. }
  4699. DllExport unsigned int
  4700. Skeleton_GetNumBones (Urho3D::Skeleton *_target)
  4701. {
  4702. return _target->GetNumBones ();
  4703. }
  4704. DllExport Urho3D::Bone *
  4705. Skeleton_GetRootBone (Urho3D::Skeleton *_target)
  4706. {
  4707. return _target->GetRootBone ();
  4708. }
  4709. DllExport Urho3D::Bone *
  4710. Skeleton_GetBone (Urho3D::Skeleton *_target, unsigned int index)
  4711. {
  4712. return _target->GetBone (index);
  4713. }
  4714. DllExport Urho3D::Bone *
  4715. Skeleton_GetBone0 (Urho3D::Skeleton *_target, int boneNameHash)
  4716. {
  4717. return _target->GetBone (Urho3D::StringHash(boneNameHash));
  4718. }
  4719. DllExport void
  4720. Skeleton_ResetSilent (Urho3D::Skeleton *_target)
  4721. {
  4722. _target->ResetSilent ();
  4723. }
  4724. DllExport int
  4725. Model_GetType (Urho3D::Model *_target)
  4726. {
  4727. return (_target->GetType ()).Value ();
  4728. }
  4729. DllExport const char *
  4730. Model_GetTypeName (Urho3D::Model *_target)
  4731. {
  4732. return stringdup((_target->GetTypeName ()).CString ());
  4733. }
  4734. DllExport int
  4735. Model_GetTypeStatic ()
  4736. {
  4737. return (Model::GetTypeStatic ()).Value ();
  4738. }
  4739. DllExport const char *
  4740. Model_GetTypeNameStatic ()
  4741. {
  4742. return stringdup((Model::GetTypeNameStatic ()).CString ());
  4743. }
  4744. DllExport void *
  4745. Model_Model (Urho3D::Context * context)
  4746. {
  4747. return WeakPtr<Model>(new Model(context));
  4748. }
  4749. DllExport void
  4750. Model_RegisterObject (Urho3D::Context * context)
  4751. {
  4752. Model::RegisterObject (context);
  4753. }
  4754. DllExport int
  4755. Model_BeginLoad_File (Urho3D::Model *_target, File * source)
  4756. {
  4757. return _target->BeginLoad (*source);
  4758. }
  4759. DllExport int
  4760. Model_BeginLoad_MemoryBuffer (Urho3D::Model *_target, MemoryBuffer * source)
  4761. {
  4762. return _target->BeginLoad (*source);
  4763. }
  4764. DllExport int
  4765. Model_EndLoad (Urho3D::Model *_target)
  4766. {
  4767. return _target->EndLoad ();
  4768. }
  4769. DllExport int
  4770. Model_Save_File (Urho3D::Model *_target, File * dest)
  4771. {
  4772. return _target->Save (*dest);
  4773. }
  4774. DllExport int
  4775. Model_Save_MemoryBuffer (Urho3D::Model *_target, MemoryBuffer * dest)
  4776. {
  4777. return _target->Save (*dest);
  4778. }
  4779. DllExport void
  4780. Model_SetBoundingBox (Urho3D::Model *_target, const class Urho3D::BoundingBox & box)
  4781. {
  4782. _target->SetBoundingBox (box);
  4783. }
  4784. DllExport void
  4785. Model_SetNumGeometries (Urho3D::Model *_target, unsigned int num)
  4786. {
  4787. _target->SetNumGeometries (num);
  4788. }
  4789. DllExport int
  4790. Model_SetNumGeometryLodLevels (Urho3D::Model *_target, unsigned int index, unsigned int num)
  4791. {
  4792. return _target->SetNumGeometryLodLevels (index, num);
  4793. }
  4794. DllExport int
  4795. Model_SetGeometry (Urho3D::Model *_target, unsigned int index, unsigned int lodLevel, Urho3D::Geometry * geometry)
  4796. {
  4797. return _target->SetGeometry (index, lodLevel, geometry);
  4798. }
  4799. DllExport int
  4800. Model_SetGeometryCenter (Urho3D::Model *_target, unsigned int index, const class Urho3D::Vector3 & center)
  4801. {
  4802. return _target->SetGeometryCenter (index, center);
  4803. }
  4804. DllExport Urho3D::Model *
  4805. Model_Clone (Urho3D::Model *_target, const char * cloneName)
  4806. {
  4807. auto copy = _target->Clone (Urho3D::String(cloneName));
  4808. auto plain = copy.Get();
  4809. copy.Detach();
  4810. delete copy;
  4811. return plain;
  4812. }
  4813. DllExport Interop::BoundingBox
  4814. Model_GetBoundingBox (Urho3D::Model *_target)
  4815. {
  4816. return *((Interop::BoundingBox *) &(_target->GetBoundingBox ()));
  4817. }
  4818. DllExport const Vector<SharedPtr<class Urho3D::VertexBuffer> > &
  4819. Model_GetVertexBuffers (Urho3D::Model *_target)
  4820. {
  4821. return _target->GetVertexBuffers ();
  4822. }
  4823. DllExport const Vector<SharedPtr<class Urho3D::IndexBuffer> > &
  4824. Model_GetIndexBuffers (Urho3D::Model *_target)
  4825. {
  4826. return _target->GetIndexBuffers ();
  4827. }
  4828. DllExport unsigned int
  4829. Model_GetNumGeometries (Urho3D::Model *_target)
  4830. {
  4831. return _target->GetNumGeometries ();
  4832. }
  4833. DllExport unsigned int
  4834. Model_GetNumGeometryLodLevels (Urho3D::Model *_target, unsigned int index)
  4835. {
  4836. return _target->GetNumGeometryLodLevels (index);
  4837. }
  4838. DllExport Urho3D::Geometry *
  4839. Model_GetGeometry (Urho3D::Model *_target, unsigned int index, unsigned int lodLevel)
  4840. {
  4841. return _target->GetGeometry (index, lodLevel);
  4842. }
  4843. DllExport Interop::Vector3
  4844. Model_GetGeometryCenter (Urho3D::Model *_target, unsigned int index)
  4845. {
  4846. return *((Interop::Vector3 *) &(_target->GetGeometryCenter (index)));
  4847. }
  4848. DllExport unsigned int
  4849. Model_GetNumMorphs (Urho3D::Model *_target)
  4850. {
  4851. return _target->GetNumMorphs ();
  4852. }
  4853. DllExport const struct Urho3D::ModelMorph *
  4854. Model_GetMorph (Urho3D::Model *_target, unsigned int index)
  4855. {
  4856. return _target->GetMorph (index);
  4857. }
  4858. DllExport const struct Urho3D::ModelMorph *
  4859. Model_GetMorph0 (Urho3D::Model *_target, const char * name)
  4860. {
  4861. return _target->GetMorph (Urho3D::String(name));
  4862. }
  4863. DllExport const struct Urho3D::ModelMorph *
  4864. Model_GetMorph1 (Urho3D::Model *_target, int nameHash)
  4865. {
  4866. return _target->GetMorph (Urho3D::StringHash(nameHash));
  4867. }
  4868. DllExport unsigned int
  4869. Model_GetMorphRangeStart (Urho3D::Model *_target, unsigned int bufferIndex)
  4870. {
  4871. return _target->GetMorphRangeStart (bufferIndex);
  4872. }
  4873. DllExport unsigned int
  4874. Model_GetMorphRangeCount (Urho3D::Model *_target, unsigned int bufferIndex)
  4875. {
  4876. return _target->GetMorphRangeCount (bufferIndex);
  4877. }
  4878. DllExport int
  4879. Drawable_GetType (Urho3D::Drawable *_target)
  4880. {
  4881. return (_target->GetType ()).Value ();
  4882. }
  4883. DllExport const char *
  4884. Drawable_GetTypeName (Urho3D::Drawable *_target)
  4885. {
  4886. return stringdup((_target->GetTypeName ()).CString ());
  4887. }
  4888. DllExport int
  4889. Drawable_GetTypeStatic ()
  4890. {
  4891. return (Drawable::GetTypeStatic ()).Value ();
  4892. }
  4893. DllExport const char *
  4894. Drawable_GetTypeNameStatic ()
  4895. {
  4896. return stringdup((Drawable::GetTypeNameStatic ()).CString ());
  4897. }
  4898. DllExport void
  4899. Drawable_RegisterObject (Urho3D::Context * context)
  4900. {
  4901. Drawable::RegisterObject (context);
  4902. }
  4903. DllExport void
  4904. Drawable_OnSetEnabled (Urho3D::Drawable *_target)
  4905. {
  4906. _target->OnSetEnabled ();
  4907. }
  4908. DllExport enum Urho3D::UpdateGeometryType
  4909. Drawable_GetUpdateGeometryType (Urho3D::Drawable *_target)
  4910. {
  4911. return _target->GetUpdateGeometryType ();
  4912. }
  4913. DllExport Urho3D::Geometry *
  4914. Drawable_GetLodGeometry (Urho3D::Drawable *_target, unsigned int batchIndex, unsigned int level)
  4915. {
  4916. return _target->GetLodGeometry (batchIndex, level);
  4917. }
  4918. DllExport unsigned int
  4919. Drawable_GetNumOccluderTriangles (Urho3D::Drawable *_target)
  4920. {
  4921. return _target->GetNumOccluderTriangles ();
  4922. }
  4923. DllExport int
  4924. Drawable_DrawOcclusion (Urho3D::Drawable *_target, Urho3D::OcclusionBuffer * buffer)
  4925. {
  4926. return _target->DrawOcclusion (buffer);
  4927. }
  4928. DllExport void
  4929. Drawable_DrawDebugGeometry (Urho3D::Drawable *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  4930. {
  4931. _target->DrawDebugGeometry (debug, depthTest);
  4932. }
  4933. DllExport void
  4934. Drawable_SetDrawDistance (Urho3D::Drawable *_target, float distance)
  4935. {
  4936. _target->SetDrawDistance (distance);
  4937. }
  4938. DllExport void
  4939. Drawable_SetShadowDistance (Urho3D::Drawable *_target, float distance)
  4940. {
  4941. _target->SetShadowDistance (distance);
  4942. }
  4943. DllExport void
  4944. Drawable_SetLodBias (Urho3D::Drawable *_target, float bias)
  4945. {
  4946. _target->SetLodBias (bias);
  4947. }
  4948. DllExport void
  4949. Drawable_SetViewMask (Urho3D::Drawable *_target, unsigned int mask)
  4950. {
  4951. _target->SetViewMask (mask);
  4952. }
  4953. DllExport void
  4954. Drawable_SetLightMask (Urho3D::Drawable *_target, unsigned int mask)
  4955. {
  4956. _target->SetLightMask (mask);
  4957. }
  4958. DllExport void
  4959. Drawable_SetShadowMask (Urho3D::Drawable *_target, unsigned int mask)
  4960. {
  4961. _target->SetShadowMask (mask);
  4962. }
  4963. DllExport void
  4964. Drawable_SetZoneMask (Urho3D::Drawable *_target, unsigned int mask)
  4965. {
  4966. _target->SetZoneMask (mask);
  4967. }
  4968. DllExport void
  4969. Drawable_SetMaxLights (Urho3D::Drawable *_target, unsigned int num)
  4970. {
  4971. _target->SetMaxLights (num);
  4972. }
  4973. DllExport void
  4974. Drawable_SetCastShadows (Urho3D::Drawable *_target, bool enable)
  4975. {
  4976. _target->SetCastShadows (enable);
  4977. }
  4978. DllExport void
  4979. Drawable_SetOccluder (Urho3D::Drawable *_target, bool enable)
  4980. {
  4981. _target->SetOccluder (enable);
  4982. }
  4983. DllExport void
  4984. Drawable_SetOccludee (Urho3D::Drawable *_target, bool enable)
  4985. {
  4986. _target->SetOccludee (enable);
  4987. }
  4988. DllExport void
  4989. Drawable_MarkForUpdate (Urho3D::Drawable *_target)
  4990. {
  4991. _target->MarkForUpdate ();
  4992. }
  4993. DllExport Interop::BoundingBox
  4994. Drawable_GetBoundingBox (Urho3D::Drawable *_target)
  4995. {
  4996. return *((Interop::BoundingBox *) &(_target->GetBoundingBox ()));
  4997. }
  4998. DllExport Interop::BoundingBox
  4999. Drawable_GetWorldBoundingBox (Urho3D::Drawable *_target)
  5000. {
  5001. return *((Interop::BoundingBox *) &(_target->GetWorldBoundingBox ()));
  5002. }
  5003. DllExport unsigned char
  5004. Drawable_GetDrawableFlags (Urho3D::Drawable *_target)
  5005. {
  5006. return _target->GetDrawableFlags ();
  5007. }
  5008. DllExport float
  5009. Drawable_GetDrawDistance (Urho3D::Drawable *_target)
  5010. {
  5011. return _target->GetDrawDistance ();
  5012. }
  5013. DllExport float
  5014. Drawable_GetShadowDistance (Urho3D::Drawable *_target)
  5015. {
  5016. return _target->GetShadowDistance ();
  5017. }
  5018. DllExport float
  5019. Drawable_GetLodBias (Urho3D::Drawable *_target)
  5020. {
  5021. return _target->GetLodBias ();
  5022. }
  5023. DllExport unsigned int
  5024. Drawable_GetViewMask (Urho3D::Drawable *_target)
  5025. {
  5026. return _target->GetViewMask ();
  5027. }
  5028. DllExport unsigned int
  5029. Drawable_GetLightMask (Urho3D::Drawable *_target)
  5030. {
  5031. return _target->GetLightMask ();
  5032. }
  5033. DllExport unsigned int
  5034. Drawable_GetShadowMask (Urho3D::Drawable *_target)
  5035. {
  5036. return _target->GetShadowMask ();
  5037. }
  5038. DllExport unsigned int
  5039. Drawable_GetZoneMask (Urho3D::Drawable *_target)
  5040. {
  5041. return _target->GetZoneMask ();
  5042. }
  5043. DllExport unsigned int
  5044. Drawable_GetMaxLights (Urho3D::Drawable *_target)
  5045. {
  5046. return _target->GetMaxLights ();
  5047. }
  5048. DllExport int
  5049. Drawable_GetCastShadows (Urho3D::Drawable *_target)
  5050. {
  5051. return _target->GetCastShadows ();
  5052. }
  5053. DllExport int
  5054. Drawable_IsOccluder (Urho3D::Drawable *_target)
  5055. {
  5056. return _target->IsOccluder ();
  5057. }
  5058. DllExport int
  5059. Drawable_IsOccludee (Urho3D::Drawable *_target)
  5060. {
  5061. return _target->IsOccludee ();
  5062. }
  5063. DllExport int
  5064. Drawable_IsInView (Urho3D::Drawable *_target)
  5065. {
  5066. return _target->IsInView ();
  5067. }
  5068. DllExport int
  5069. Drawable_IsInView0 (Urho3D::Drawable *_target, Urho3D::Camera * camera)
  5070. {
  5071. return _target->IsInView (camera);
  5072. }
  5073. DllExport void
  5074. Drawable_SetZone (Urho3D::Drawable *_target, Urho3D::Zone * zone, bool temporary)
  5075. {
  5076. _target->SetZone (zone, temporary);
  5077. }
  5078. DllExport void
  5079. Drawable_SetSortValue (Urho3D::Drawable *_target, float value)
  5080. {
  5081. _target->SetSortValue (value);
  5082. }
  5083. DllExport void
  5084. Drawable_SetMinMaxZ (Urho3D::Drawable *_target, float minZ, float maxZ)
  5085. {
  5086. _target->SetMinMaxZ (minZ, maxZ);
  5087. }
  5088. DllExport void
  5089. Drawable_MarkInView (Urho3D::Drawable *_target, unsigned int frameNumber)
  5090. {
  5091. _target->MarkInView (frameNumber);
  5092. }
  5093. DllExport void
  5094. Drawable_LimitLights (Urho3D::Drawable *_target)
  5095. {
  5096. _target->LimitLights ();
  5097. }
  5098. DllExport void
  5099. Drawable_LimitVertexLights (Urho3D::Drawable *_target, bool removeConvertedLights)
  5100. {
  5101. _target->LimitVertexLights (removeConvertedLights);
  5102. }
  5103. DllExport void
  5104. Drawable_SetBasePass (Urho3D::Drawable *_target, unsigned int batchIndex)
  5105. {
  5106. _target->SetBasePass (batchIndex);
  5107. }
  5108. DllExport Urho3D::Octant *
  5109. Drawable_GetOctant (Urho3D::Drawable *_target)
  5110. {
  5111. return _target->GetOctant ();
  5112. }
  5113. DllExport Urho3D::Zone *
  5114. Drawable_GetZone (Urho3D::Drawable *_target)
  5115. {
  5116. return _target->GetZone ();
  5117. }
  5118. DllExport int
  5119. Drawable_IsZoneDirty (Urho3D::Drawable *_target)
  5120. {
  5121. return _target->IsZoneDirty ();
  5122. }
  5123. DllExport float
  5124. Drawable_GetDistance (Urho3D::Drawable *_target)
  5125. {
  5126. return _target->GetDistance ();
  5127. }
  5128. DllExport float
  5129. Drawable_GetLodDistance (Urho3D::Drawable *_target)
  5130. {
  5131. return _target->GetLodDistance ();
  5132. }
  5133. DllExport float
  5134. Drawable_GetSortValue (Urho3D::Drawable *_target)
  5135. {
  5136. return _target->GetSortValue ();
  5137. }
  5138. DllExport int
  5139. Drawable_HasBasePass (Urho3D::Drawable *_target, unsigned int batchIndex)
  5140. {
  5141. return _target->HasBasePass (batchIndex);
  5142. }
  5143. DllExport Urho3D::Light *
  5144. Drawable_GetFirstLight (Urho3D::Drawable *_target)
  5145. {
  5146. return _target->GetFirstLight ();
  5147. }
  5148. DllExport float
  5149. Drawable_GetMinZ (Urho3D::Drawable *_target)
  5150. {
  5151. return _target->GetMinZ ();
  5152. }
  5153. DllExport float
  5154. Drawable_GetMaxZ (Urho3D::Drawable *_target)
  5155. {
  5156. return _target->GetMaxZ ();
  5157. }
  5158. DllExport void
  5159. Drawable_AddLight (Urho3D::Drawable *_target, Urho3D::Light * light)
  5160. {
  5161. _target->AddLight (light);
  5162. }
  5163. DllExport void
  5164. Drawable_AddVertexLight (Urho3D::Drawable *_target, Urho3D::Light * light)
  5165. {
  5166. _target->AddVertexLight (light);
  5167. }
  5168. DllExport int
  5169. StaticModel_GetType (Urho3D::StaticModel *_target)
  5170. {
  5171. return (_target->GetType ()).Value ();
  5172. }
  5173. DllExport const char *
  5174. StaticModel_GetTypeName (Urho3D::StaticModel *_target)
  5175. {
  5176. return stringdup((_target->GetTypeName ()).CString ());
  5177. }
  5178. DllExport int
  5179. StaticModel_GetTypeStatic ()
  5180. {
  5181. return (StaticModel::GetTypeStatic ()).Value ();
  5182. }
  5183. DllExport const char *
  5184. StaticModel_GetTypeNameStatic ()
  5185. {
  5186. return stringdup((StaticModel::GetTypeNameStatic ()).CString ());
  5187. }
  5188. DllExport void *
  5189. StaticModel_StaticModel (Urho3D::Context * context)
  5190. {
  5191. return WeakPtr<StaticModel>(new StaticModel(context));
  5192. }
  5193. DllExport void
  5194. StaticModel_RegisterObject (Urho3D::Context * context)
  5195. {
  5196. StaticModel::RegisterObject (context);
  5197. }
  5198. DllExport Urho3D::Geometry *
  5199. StaticModel_GetLodGeometry (Urho3D::StaticModel *_target, unsigned int batchIndex, unsigned int level)
  5200. {
  5201. return _target->GetLodGeometry (batchIndex, level);
  5202. }
  5203. DllExport unsigned int
  5204. StaticModel_GetNumOccluderTriangles (Urho3D::StaticModel *_target)
  5205. {
  5206. return _target->GetNumOccluderTriangles ();
  5207. }
  5208. DllExport int
  5209. StaticModel_DrawOcclusion (Urho3D::StaticModel *_target, Urho3D::OcclusionBuffer * buffer)
  5210. {
  5211. return _target->DrawOcclusion (buffer);
  5212. }
  5213. DllExport void
  5214. StaticModel_SetModel (Urho3D::StaticModel *_target, Urho3D::Model * model)
  5215. {
  5216. _target->SetModel (model);
  5217. }
  5218. DllExport void
  5219. StaticModel_SetMaterial (Urho3D::StaticModel *_target, Urho3D::Material * material)
  5220. {
  5221. _target->SetMaterial (material);
  5222. }
  5223. DllExport int
  5224. StaticModel_SetMaterial0 (Urho3D::StaticModel *_target, unsigned int index, Urho3D::Material * material)
  5225. {
  5226. return _target->SetMaterial (index, material);
  5227. }
  5228. DllExport void
  5229. StaticModel_SetOcclusionLodLevel (Urho3D::StaticModel *_target, unsigned int level)
  5230. {
  5231. _target->SetOcclusionLodLevel (level);
  5232. }
  5233. DllExport void
  5234. StaticModel_ApplyMaterialList (Urho3D::StaticModel *_target, const char * fileName)
  5235. {
  5236. _target->ApplyMaterialList (Urho3D::String(fileName));
  5237. }
  5238. DllExport Urho3D::Model *
  5239. StaticModel_GetModel (Urho3D::StaticModel *_target)
  5240. {
  5241. return _target->GetModel ();
  5242. }
  5243. DllExport unsigned int
  5244. StaticModel_GetNumGeometries (Urho3D::StaticModel *_target)
  5245. {
  5246. return _target->GetNumGeometries ();
  5247. }
  5248. DllExport Urho3D::Material *
  5249. StaticModel_GetMaterial (Urho3D::StaticModel *_target, unsigned int index)
  5250. {
  5251. return _target->GetMaterial (index);
  5252. }
  5253. DllExport unsigned int
  5254. StaticModel_GetOcclusionLodLevel (Urho3D::StaticModel *_target)
  5255. {
  5256. return _target->GetOcclusionLodLevel ();
  5257. }
  5258. DllExport int
  5259. StaticModel_IsInside (Urho3D::StaticModel *_target, const class Urho3D::Vector3 & point)
  5260. {
  5261. return _target->IsInside (point);
  5262. }
  5263. DllExport int
  5264. StaticModel_IsInsideLocal (Urho3D::StaticModel *_target, const class Urho3D::Vector3 & point)
  5265. {
  5266. return _target->IsInsideLocal (point);
  5267. }
  5268. DllExport Urho3D::ResourceRef
  5269. StaticModel_GetModelAttr (Urho3D::StaticModel *_target)
  5270. {
  5271. return _target->GetModelAttr ();
  5272. }
  5273. DllExport int
  5274. AnimatedModel_GetType (Urho3D::AnimatedModel *_target)
  5275. {
  5276. return (_target->GetType ()).Value ();
  5277. }
  5278. DllExport const char *
  5279. AnimatedModel_GetTypeName (Urho3D::AnimatedModel *_target)
  5280. {
  5281. return stringdup((_target->GetTypeName ()).CString ());
  5282. }
  5283. DllExport int
  5284. AnimatedModel_GetTypeStatic ()
  5285. {
  5286. return (AnimatedModel::GetTypeStatic ()).Value ();
  5287. }
  5288. DllExport const char *
  5289. AnimatedModel_GetTypeNameStatic ()
  5290. {
  5291. return stringdup((AnimatedModel::GetTypeNameStatic ()).CString ());
  5292. }
  5293. DllExport void *
  5294. AnimatedModel_AnimatedModel (Urho3D::Context * context)
  5295. {
  5296. return WeakPtr<AnimatedModel>(new AnimatedModel(context));
  5297. }
  5298. DllExport void
  5299. AnimatedModel_RegisterObject (Urho3D::Context * context)
  5300. {
  5301. AnimatedModel::RegisterObject (context);
  5302. }
  5303. DllExport int
  5304. AnimatedModel_Load_File (Urho3D::AnimatedModel *_target, File * source, bool setInstanceDefault)
  5305. {
  5306. return _target->Load (*source, setInstanceDefault);
  5307. }
  5308. DllExport int
  5309. AnimatedModel_Load_MemoryBuffer (Urho3D::AnimatedModel *_target, MemoryBuffer * source, bool setInstanceDefault)
  5310. {
  5311. return _target->Load (*source, setInstanceDefault);
  5312. }
  5313. DllExport int
  5314. AnimatedModel_LoadXML (Urho3D::AnimatedModel *_target, const class Urho3D::XMLElement & source, bool setInstanceDefault)
  5315. {
  5316. return _target->LoadXML (source, setInstanceDefault);
  5317. }
  5318. DllExport void
  5319. AnimatedModel_ApplyAttributes (Urho3D::AnimatedModel *_target)
  5320. {
  5321. _target->ApplyAttributes ();
  5322. }
  5323. DllExport enum Urho3D::UpdateGeometryType
  5324. AnimatedModel_GetUpdateGeometryType (Urho3D::AnimatedModel *_target)
  5325. {
  5326. return _target->GetUpdateGeometryType ();
  5327. }
  5328. DllExport void
  5329. AnimatedModel_DrawDebugGeometry (Urho3D::AnimatedModel *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  5330. {
  5331. _target->DrawDebugGeometry (debug, depthTest);
  5332. }
  5333. DllExport void
  5334. AnimatedModel_SetModel (Urho3D::AnimatedModel *_target, Urho3D::Model * model, bool createBones)
  5335. {
  5336. _target->SetModel (model, createBones);
  5337. }
  5338. DllExport Urho3D::AnimationState *
  5339. AnimatedModel_AddAnimationState (Urho3D::AnimatedModel *_target, Urho3D::Animation * animation)
  5340. {
  5341. return _target->AddAnimationState (animation);
  5342. }
  5343. DllExport void
  5344. AnimatedModel_RemoveAnimationState (Urho3D::AnimatedModel *_target, Urho3D::Animation * animation)
  5345. {
  5346. _target->RemoveAnimationState (animation);
  5347. }
  5348. DllExport void
  5349. AnimatedModel_RemoveAnimationState0 (Urho3D::AnimatedModel *_target, const char * animationName)
  5350. {
  5351. _target->RemoveAnimationState (Urho3D::String(animationName));
  5352. }
  5353. DllExport void
  5354. AnimatedModel_RemoveAnimationState1 (Urho3D::AnimatedModel *_target, int animationNameHash)
  5355. {
  5356. _target->RemoveAnimationState (Urho3D::StringHash(animationNameHash));
  5357. }
  5358. DllExport void
  5359. AnimatedModel_RemoveAnimationState2 (Urho3D::AnimatedModel *_target, Urho3D::AnimationState * state)
  5360. {
  5361. _target->RemoveAnimationState (state);
  5362. }
  5363. DllExport void
  5364. AnimatedModel_RemoveAnimationState3 (Urho3D::AnimatedModel *_target, unsigned int index)
  5365. {
  5366. _target->RemoveAnimationState (index);
  5367. }
  5368. DllExport void
  5369. AnimatedModel_RemoveAllAnimationStates (Urho3D::AnimatedModel *_target)
  5370. {
  5371. _target->RemoveAllAnimationStates ();
  5372. }
  5373. DllExport void
  5374. AnimatedModel_SetAnimationLodBias (Urho3D::AnimatedModel *_target, float bias)
  5375. {
  5376. _target->SetAnimationLodBias (bias);
  5377. }
  5378. DllExport void
  5379. AnimatedModel_SetUpdateInvisible (Urho3D::AnimatedModel *_target, bool enable)
  5380. {
  5381. _target->SetUpdateInvisible (enable);
  5382. }
  5383. DllExport void
  5384. AnimatedModel_SetMorphWeight (Urho3D::AnimatedModel *_target, unsigned int index, float weight)
  5385. {
  5386. _target->SetMorphWeight (index, weight);
  5387. }
  5388. DllExport void
  5389. AnimatedModel_SetMorphWeight4 (Urho3D::AnimatedModel *_target, const char * name, float weight)
  5390. {
  5391. _target->SetMorphWeight (Urho3D::String(name), weight);
  5392. }
  5393. DllExport void
  5394. AnimatedModel_SetMorphWeight5 (Urho3D::AnimatedModel *_target, int nameHash, float weight)
  5395. {
  5396. _target->SetMorphWeight (Urho3D::StringHash(nameHash), weight);
  5397. }
  5398. DllExport void
  5399. AnimatedModel_ResetMorphWeights (Urho3D::AnimatedModel *_target)
  5400. {
  5401. _target->ResetMorphWeights ();
  5402. }
  5403. DllExport void
  5404. AnimatedModel_ApplyAnimation (Urho3D::AnimatedModel *_target)
  5405. {
  5406. _target->ApplyAnimation ();
  5407. }
  5408. DllExport const Vector<SharedPtr<class Urho3D::AnimationState> > &
  5409. AnimatedModel_GetAnimationStates (Urho3D::AnimatedModel *_target)
  5410. {
  5411. return _target->GetAnimationStates ();
  5412. }
  5413. DllExport unsigned int
  5414. AnimatedModel_GetNumAnimationStates (Urho3D::AnimatedModel *_target)
  5415. {
  5416. return _target->GetNumAnimationStates ();
  5417. }
  5418. DllExport Urho3D::AnimationState *
  5419. AnimatedModel_GetAnimationState (Urho3D::AnimatedModel *_target, Urho3D::Animation * animation)
  5420. {
  5421. return _target->GetAnimationState (animation);
  5422. }
  5423. DllExport Urho3D::AnimationState *
  5424. AnimatedModel_GetAnimationState6 (Urho3D::AnimatedModel *_target, const char * animationName)
  5425. {
  5426. return _target->GetAnimationState (Urho3D::String(animationName));
  5427. }
  5428. DllExport Urho3D::AnimationState *
  5429. AnimatedModel_GetAnimationState7 (Urho3D::AnimatedModel *_target, int animationNameHash)
  5430. {
  5431. return _target->GetAnimationState (Urho3D::StringHash(animationNameHash));
  5432. }
  5433. DllExport Urho3D::AnimationState *
  5434. AnimatedModel_GetAnimationState8 (Urho3D::AnimatedModel *_target, unsigned int index)
  5435. {
  5436. return _target->GetAnimationState (index);
  5437. }
  5438. DllExport float
  5439. AnimatedModel_GetAnimationLodBias (Urho3D::AnimatedModel *_target)
  5440. {
  5441. return _target->GetAnimationLodBias ();
  5442. }
  5443. DllExport int
  5444. AnimatedModel_GetUpdateInvisible (Urho3D::AnimatedModel *_target)
  5445. {
  5446. return _target->GetUpdateInvisible ();
  5447. }
  5448. DllExport const Vector<SharedPtr<class Urho3D::VertexBuffer> > &
  5449. AnimatedModel_GetMorphVertexBuffers (Urho3D::AnimatedModel *_target)
  5450. {
  5451. return _target->GetMorphVertexBuffers ();
  5452. }
  5453. DllExport unsigned int
  5454. AnimatedModel_GetNumMorphs (Urho3D::AnimatedModel *_target)
  5455. {
  5456. return _target->GetNumMorphs ();
  5457. }
  5458. DllExport float
  5459. AnimatedModel_GetMorphWeight (Urho3D::AnimatedModel *_target, unsigned int index)
  5460. {
  5461. return _target->GetMorphWeight (index);
  5462. }
  5463. DllExport float
  5464. AnimatedModel_GetMorphWeight9 (Urho3D::AnimatedModel *_target, const char * name)
  5465. {
  5466. return _target->GetMorphWeight (Urho3D::String(name));
  5467. }
  5468. DllExport float
  5469. AnimatedModel_GetMorphWeight10 (Urho3D::AnimatedModel *_target, int nameHash)
  5470. {
  5471. return _target->GetMorphWeight (Urho3D::StringHash(nameHash));
  5472. }
  5473. DllExport int
  5474. AnimatedModel_IsMaster (Urho3D::AnimatedModel *_target)
  5475. {
  5476. return _target->IsMaster ();
  5477. }
  5478. DllExport Urho3D::ResourceRef
  5479. AnimatedModel_GetModelAttr (Urho3D::AnimatedModel *_target)
  5480. {
  5481. return _target->GetModelAttr ();
  5482. }
  5483. DllExport void
  5484. AnimatedModel_UpdateBoneBoundingBox (Urho3D::AnimatedModel *_target)
  5485. {
  5486. _target->UpdateBoneBoundingBox ();
  5487. }
  5488. DllExport int
  5489. Animation_GetType (Urho3D::Animation *_target)
  5490. {
  5491. return (_target->GetType ()).Value ();
  5492. }
  5493. DllExport const char *
  5494. Animation_GetTypeName (Urho3D::Animation *_target)
  5495. {
  5496. return stringdup((_target->GetTypeName ()).CString ());
  5497. }
  5498. DllExport int
  5499. Animation_GetTypeStatic ()
  5500. {
  5501. return (Animation::GetTypeStatic ()).Value ();
  5502. }
  5503. DllExport const char *
  5504. Animation_GetTypeNameStatic ()
  5505. {
  5506. return stringdup((Animation::GetTypeNameStatic ()).CString ());
  5507. }
  5508. DllExport void *
  5509. Animation_Animation (Urho3D::Context * context)
  5510. {
  5511. return WeakPtr<Animation>(new Animation(context));
  5512. }
  5513. DllExport void
  5514. Animation_RegisterObject (Urho3D::Context * context)
  5515. {
  5516. Animation::RegisterObject (context);
  5517. }
  5518. DllExport int
  5519. Animation_BeginLoad_File (Urho3D::Animation *_target, File * source)
  5520. {
  5521. return _target->BeginLoad (*source);
  5522. }
  5523. DllExport int
  5524. Animation_BeginLoad_MemoryBuffer (Urho3D::Animation *_target, MemoryBuffer * source)
  5525. {
  5526. return _target->BeginLoad (*source);
  5527. }
  5528. DllExport int
  5529. Animation_Save_File (Urho3D::Animation *_target, File * dest)
  5530. {
  5531. return _target->Save (*dest);
  5532. }
  5533. DllExport int
  5534. Animation_Save_MemoryBuffer (Urho3D::Animation *_target, MemoryBuffer * dest)
  5535. {
  5536. return _target->Save (*dest);
  5537. }
  5538. DllExport void
  5539. Animation_SetAnimationName (Urho3D::Animation *_target, const char * name)
  5540. {
  5541. _target->SetAnimationName (Urho3D::String(name));
  5542. }
  5543. DllExport void
  5544. Animation_SetLength (Urho3D::Animation *_target, float length)
  5545. {
  5546. _target->SetLength (length);
  5547. }
  5548. DllExport Urho3D::AnimationTrack *
  5549. Animation_CreateTrack (Urho3D::Animation *_target, const char * name)
  5550. {
  5551. return _target->CreateTrack (Urho3D::String(name));
  5552. }
  5553. DllExport int
  5554. Animation_RemoveTrack (Urho3D::Animation *_target, const char * name)
  5555. {
  5556. return _target->RemoveTrack (Urho3D::String(name));
  5557. }
  5558. DllExport void
  5559. Animation_RemoveAllTracks (Urho3D::Animation *_target)
  5560. {
  5561. _target->RemoveAllTracks ();
  5562. }
  5563. // Urho3D::Variant overloads begin:
  5564. DllExport void
  5565. Animation_AddTrigger0 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::Vector3 & data)
  5566. {
  5567. _target->AddTrigger (time, timeIsNormalized, (data));
  5568. }
  5569. DllExport void
  5570. Animation_AddTrigger1 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::IntRect & data)
  5571. {
  5572. _target->AddTrigger (time, timeIsNormalized, (data));
  5573. }
  5574. DllExport void
  5575. Animation_AddTrigger2 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::Color & data)
  5576. {
  5577. _target->AddTrigger (time, timeIsNormalized, (data));
  5578. }
  5579. DllExport void
  5580. Animation_AddTrigger3 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::Vector2 & data)
  5581. {
  5582. _target->AddTrigger (time, timeIsNormalized, (data));
  5583. }
  5584. DllExport void
  5585. Animation_AddTrigger4 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::Vector4 & data)
  5586. {
  5587. _target->AddTrigger (time, timeIsNormalized, (data));
  5588. }
  5589. DllExport void
  5590. Animation_AddTrigger5 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::IntVector2 & data)
  5591. {
  5592. _target->AddTrigger (time, timeIsNormalized, (data));
  5593. }
  5594. DllExport void
  5595. Animation_AddTrigger6 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::Quaternion & data)
  5596. {
  5597. _target->AddTrigger (time, timeIsNormalized, (data));
  5598. }
  5599. DllExport void
  5600. Animation_AddTrigger7 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::Matrix4 & data)
  5601. {
  5602. _target->AddTrigger (time, timeIsNormalized, (data));
  5603. }
  5604. DllExport void
  5605. Animation_AddTrigger8 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const class Urho3D::Matrix3x4 & data)
  5606. {
  5607. _target->AddTrigger (time, timeIsNormalized, (data));
  5608. }
  5609. DllExport void
  5610. Animation_AddTrigger9 (Urho3D::Animation *_target, float time, bool timeIsNormalized, int data)
  5611. {
  5612. _target->AddTrigger (time, timeIsNormalized, (data));
  5613. }
  5614. DllExport void
  5615. Animation_AddTrigger10 (Urho3D::Animation *_target, float time, bool timeIsNormalized, float data)
  5616. {
  5617. _target->AddTrigger (time, timeIsNormalized, (data));
  5618. }
  5619. DllExport void
  5620. Animation_AddTrigger11 (Urho3D::Animation *_target, float time, bool timeIsNormalized, const char * data)
  5621. {
  5622. _target->AddTrigger (time, timeIsNormalized, Urho3D::String(data));
  5623. }
  5624. DllExport void
  5625. Animation_AddTrigger12 (Urho3D::Animation *_target, float time, bool timeIsNormalized, bool data)
  5626. {
  5627. _target->AddTrigger (time, timeIsNormalized, (data));
  5628. }
  5629. // Urho3D::Variant overloads end.
  5630. DllExport void
  5631. Animation_RemoveTrigger (Urho3D::Animation *_target, unsigned int index)
  5632. {
  5633. _target->RemoveTrigger (index);
  5634. }
  5635. DllExport void
  5636. Animation_RemoveAllTriggers (Urho3D::Animation *_target)
  5637. {
  5638. _target->RemoveAllTriggers ();
  5639. }
  5640. DllExport void
  5641. Animation_SetNumTriggers (Urho3D::Animation *_target, unsigned int num)
  5642. {
  5643. _target->SetNumTriggers (num);
  5644. }
  5645. DllExport Urho3D::Animation *
  5646. Animation_Clone (Urho3D::Animation *_target, const char * cloneName)
  5647. {
  5648. auto copy = _target->Clone (Urho3D::String(cloneName));
  5649. auto plain = copy.Get();
  5650. copy.Detach();
  5651. delete copy;
  5652. return plain;
  5653. }
  5654. DllExport const char *
  5655. Animation_GetAnimationName (Urho3D::Animation *_target)
  5656. {
  5657. return stringdup((_target->GetAnimationName ()).CString ());
  5658. }
  5659. DllExport int
  5660. Animation_GetAnimationNameHash (Urho3D::Animation *_target)
  5661. {
  5662. return (_target->GetAnimationNameHash ()).Value ();
  5663. }
  5664. DllExport float
  5665. Animation_GetLength (Urho3D::Animation *_target)
  5666. {
  5667. return _target->GetLength ();
  5668. }
  5669. DllExport unsigned int
  5670. Animation_GetNumTracks (Urho3D::Animation *_target)
  5671. {
  5672. return _target->GetNumTracks ();
  5673. }
  5674. DllExport Urho3D::AnimationTrack *
  5675. Animation_GetTrack (Urho3D::Animation *_target, unsigned int index)
  5676. {
  5677. return _target->GetTrack (index);
  5678. }
  5679. DllExport Urho3D::AnimationTrack *
  5680. Animation_GetTrack0 (Urho3D::Animation *_target, const char * name)
  5681. {
  5682. return _target->GetTrack (Urho3D::String(name));
  5683. }
  5684. DllExport Urho3D::AnimationTrack *
  5685. Animation_GetTrack1 (Urho3D::Animation *_target, int nameHash)
  5686. {
  5687. return _target->GetTrack (Urho3D::StringHash(nameHash));
  5688. }
  5689. DllExport unsigned int
  5690. Animation_GetNumTriggers (Urho3D::Animation *_target)
  5691. {
  5692. return _target->GetNumTriggers ();
  5693. }
  5694. DllExport Urho3D::AnimationTriggerPoint *
  5695. Animation_GetTrigger (Urho3D::Animation *_target, unsigned int index)
  5696. {
  5697. return _target->GetTrigger (index);
  5698. }
  5699. DllExport void *
  5700. AnimationState_AnimationState (Urho3D::AnimatedModel * model, Urho3D::Animation * animation)
  5701. {
  5702. return WeakPtr<AnimationState>(new AnimationState(model, animation));
  5703. }
  5704. DllExport void *
  5705. AnimationState_AnimationState0 (Urho3D::Node * node, Urho3D::Animation * animation)
  5706. {
  5707. return WeakPtr<AnimationState>(new AnimationState(node, animation));
  5708. }
  5709. DllExport void
  5710. AnimationState_SetStartBone (Urho3D::AnimationState *_target, Urho3D::Bone * bone)
  5711. {
  5712. _target->SetStartBone (bone);
  5713. }
  5714. DllExport void
  5715. AnimationState_SetLooped (Urho3D::AnimationState *_target, bool looped)
  5716. {
  5717. _target->SetLooped (looped);
  5718. }
  5719. DllExport void
  5720. AnimationState_SetWeight (Urho3D::AnimationState *_target, float weight)
  5721. {
  5722. _target->SetWeight (weight);
  5723. }
  5724. DllExport void
  5725. AnimationState_SetBlendMode (Urho3D::AnimationState *_target, enum Urho3D::AnimationBlendMode mode)
  5726. {
  5727. _target->SetBlendMode (mode);
  5728. }
  5729. DllExport void
  5730. AnimationState_SetTime (Urho3D::AnimationState *_target, float time)
  5731. {
  5732. _target->SetTime (time);
  5733. }
  5734. DllExport void
  5735. AnimationState_SetBoneWeight (Urho3D::AnimationState *_target, unsigned int index, float weight, bool recursive)
  5736. {
  5737. _target->SetBoneWeight (index, weight, recursive);
  5738. }
  5739. DllExport void
  5740. AnimationState_SetBoneWeight1 (Urho3D::AnimationState *_target, const char * name, float weight, bool recursive)
  5741. {
  5742. _target->SetBoneWeight (Urho3D::String(name), weight, recursive);
  5743. }
  5744. DllExport void
  5745. AnimationState_SetBoneWeight2 (Urho3D::AnimationState *_target, int nameHash, float weight, bool recursive)
  5746. {
  5747. _target->SetBoneWeight (Urho3D::StringHash(nameHash), weight, recursive);
  5748. }
  5749. DllExport void
  5750. AnimationState_AddWeight (Urho3D::AnimationState *_target, float delta)
  5751. {
  5752. _target->AddWeight (delta);
  5753. }
  5754. DllExport void
  5755. AnimationState_AddTime (Urho3D::AnimationState *_target, float delta)
  5756. {
  5757. _target->AddTime (delta);
  5758. }
  5759. DllExport void
  5760. AnimationState_SetLayer (Urho3D::AnimationState *_target, unsigned char layer)
  5761. {
  5762. _target->SetLayer (layer);
  5763. }
  5764. DllExport Urho3D::Animation *
  5765. AnimationState_GetAnimation (Urho3D::AnimationState *_target)
  5766. {
  5767. return _target->GetAnimation ();
  5768. }
  5769. DllExport Urho3D::AnimatedModel *
  5770. AnimationState_GetModel (Urho3D::AnimationState *_target)
  5771. {
  5772. return _target->GetModel ();
  5773. }
  5774. DllExport Urho3D::Node *
  5775. AnimationState_GetNode (Urho3D::AnimationState *_target)
  5776. {
  5777. return _target->GetNode ();
  5778. }
  5779. DllExport Urho3D::Bone *
  5780. AnimationState_GetStartBone (Urho3D::AnimationState *_target)
  5781. {
  5782. return _target->GetStartBone ();
  5783. }
  5784. DllExport float
  5785. AnimationState_GetBoneWeight (Urho3D::AnimationState *_target, unsigned int index)
  5786. {
  5787. return _target->GetBoneWeight (index);
  5788. }
  5789. DllExport float
  5790. AnimationState_GetBoneWeight3 (Urho3D::AnimationState *_target, const char * name)
  5791. {
  5792. return _target->GetBoneWeight (Urho3D::String(name));
  5793. }
  5794. DllExport float
  5795. AnimationState_GetBoneWeight4 (Urho3D::AnimationState *_target, int nameHash)
  5796. {
  5797. return _target->GetBoneWeight (Urho3D::StringHash(nameHash));
  5798. }
  5799. DllExport unsigned int
  5800. AnimationState_GetTrackIndex (Urho3D::AnimationState *_target, Urho3D::Node * node)
  5801. {
  5802. return _target->GetTrackIndex (node);
  5803. }
  5804. DllExport unsigned int
  5805. AnimationState_GetTrackIndex5 (Urho3D::AnimationState *_target, const char * name)
  5806. {
  5807. return _target->GetTrackIndex (Urho3D::String(name));
  5808. }
  5809. DllExport unsigned int
  5810. AnimationState_GetTrackIndex6 (Urho3D::AnimationState *_target, int nameHash)
  5811. {
  5812. return _target->GetTrackIndex (Urho3D::StringHash(nameHash));
  5813. }
  5814. DllExport int
  5815. AnimationState_IsEnabled (Urho3D::AnimationState *_target)
  5816. {
  5817. return _target->IsEnabled ();
  5818. }
  5819. DllExport int
  5820. AnimationState_IsLooped (Urho3D::AnimationState *_target)
  5821. {
  5822. return _target->IsLooped ();
  5823. }
  5824. DllExport float
  5825. AnimationState_GetWeight (Urho3D::AnimationState *_target)
  5826. {
  5827. return _target->GetWeight ();
  5828. }
  5829. DllExport enum Urho3D::AnimationBlendMode
  5830. AnimationState_GetBlendMode (Urho3D::AnimationState *_target)
  5831. {
  5832. return _target->GetBlendMode ();
  5833. }
  5834. DllExport float
  5835. AnimationState_GetTime (Urho3D::AnimationState *_target)
  5836. {
  5837. return _target->GetTime ();
  5838. }
  5839. DllExport float
  5840. AnimationState_GetLength (Urho3D::AnimationState *_target)
  5841. {
  5842. return _target->GetLength ();
  5843. }
  5844. DllExport unsigned char
  5845. AnimationState_GetLayer (Urho3D::AnimationState *_target)
  5846. {
  5847. return _target->GetLayer ();
  5848. }
  5849. DllExport void
  5850. AnimationState_Apply (Urho3D::AnimationState *_target)
  5851. {
  5852. _target->Apply ();
  5853. }
  5854. DllExport int
  5855. AnimationController_GetType (Urho3D::AnimationController *_target)
  5856. {
  5857. return (_target->GetType ()).Value ();
  5858. }
  5859. DllExport const char *
  5860. AnimationController_GetTypeName (Urho3D::AnimationController *_target)
  5861. {
  5862. return stringdup((_target->GetTypeName ()).CString ());
  5863. }
  5864. DllExport int
  5865. AnimationController_GetTypeStatic ()
  5866. {
  5867. return (AnimationController::GetTypeStatic ()).Value ();
  5868. }
  5869. DllExport const char *
  5870. AnimationController_GetTypeNameStatic ()
  5871. {
  5872. return stringdup((AnimationController::GetTypeNameStatic ()).CString ());
  5873. }
  5874. DllExport void *
  5875. AnimationController_AnimationController (Urho3D::Context * context)
  5876. {
  5877. return WeakPtr<AnimationController>(new AnimationController(context));
  5878. }
  5879. DllExport void
  5880. AnimationController_RegisterObject (Urho3D::Context * context)
  5881. {
  5882. AnimationController::RegisterObject (context);
  5883. }
  5884. DllExport void
  5885. AnimationController_OnSetEnabled (Urho3D::AnimationController *_target)
  5886. {
  5887. _target->OnSetEnabled ();
  5888. }
  5889. DllExport void
  5890. AnimationController_Update (Urho3D::AnimationController *_target, float timeStep)
  5891. {
  5892. _target->Update (timeStep);
  5893. }
  5894. DllExport int
  5895. AnimationController_Play (Urho3D::AnimationController *_target, const char * name, unsigned char layer, bool looped, float fadeInTime)
  5896. {
  5897. return _target->Play (Urho3D::String(name), layer, looped, fadeInTime);
  5898. }
  5899. DllExport int
  5900. AnimationController_PlayExclusive (Urho3D::AnimationController *_target, const char * name, unsigned char layer, bool looped, float fadeTime)
  5901. {
  5902. return _target->PlayExclusive (Urho3D::String(name), layer, looped, fadeTime);
  5903. }
  5904. DllExport int
  5905. AnimationController_Stop (Urho3D::AnimationController *_target, const char * name, float fadeOutTime)
  5906. {
  5907. return _target->Stop (Urho3D::String(name), fadeOutTime);
  5908. }
  5909. DllExport void
  5910. AnimationController_StopLayer (Urho3D::AnimationController *_target, unsigned char layer, float fadeOutTime)
  5911. {
  5912. _target->StopLayer (layer, fadeOutTime);
  5913. }
  5914. DllExport void
  5915. AnimationController_StopAll (Urho3D::AnimationController *_target, float fadeTime)
  5916. {
  5917. _target->StopAll (fadeTime);
  5918. }
  5919. DllExport int
  5920. AnimationController_Fade (Urho3D::AnimationController *_target, const char * name, float targetWeight, float fadeTime)
  5921. {
  5922. return _target->Fade (Urho3D::String(name), targetWeight, fadeTime);
  5923. }
  5924. DllExport int
  5925. AnimationController_FadeOthers (Urho3D::AnimationController *_target, const char * name, float targetWeight, float fadeTime)
  5926. {
  5927. return _target->FadeOthers (Urho3D::String(name), targetWeight, fadeTime);
  5928. }
  5929. DllExport int
  5930. AnimationController_SetLayer (Urho3D::AnimationController *_target, const char * name, unsigned char layer)
  5931. {
  5932. return _target->SetLayer (Urho3D::String(name), layer);
  5933. }
  5934. DllExport int
  5935. AnimationController_SetStartBone (Urho3D::AnimationController *_target, const char * name, const char * startBoneName)
  5936. {
  5937. return _target->SetStartBone (Urho3D::String(name), Urho3D::String(startBoneName));
  5938. }
  5939. DllExport int
  5940. AnimationController_SetTime (Urho3D::AnimationController *_target, const char * name, float time)
  5941. {
  5942. return _target->SetTime (Urho3D::String(name), time);
  5943. }
  5944. DllExport int
  5945. AnimationController_SetWeight (Urho3D::AnimationController *_target, const char * name, float weight)
  5946. {
  5947. return _target->SetWeight (Urho3D::String(name), weight);
  5948. }
  5949. DllExport int
  5950. AnimationController_SetLooped (Urho3D::AnimationController *_target, const char * name, bool enable)
  5951. {
  5952. return _target->SetLooped (Urho3D::String(name), enable);
  5953. }
  5954. DllExport int
  5955. AnimationController_SetSpeed (Urho3D::AnimationController *_target, const char * name, float speed)
  5956. {
  5957. return _target->SetSpeed (Urho3D::String(name), speed);
  5958. }
  5959. DllExport int
  5960. AnimationController_SetAutoFade (Urho3D::AnimationController *_target, const char * name, float fadeOutTime)
  5961. {
  5962. return _target->SetAutoFade (Urho3D::String(name), fadeOutTime);
  5963. }
  5964. DllExport int
  5965. AnimationController_SetRemoveOnCompletion (Urho3D::AnimationController *_target, const char * name, bool removeOnCompletion)
  5966. {
  5967. return _target->SetRemoveOnCompletion (Urho3D::String(name), removeOnCompletion);
  5968. }
  5969. DllExport int
  5970. AnimationController_SetBlendMode (Urho3D::AnimationController *_target, const char * name, enum Urho3D::AnimationBlendMode mode)
  5971. {
  5972. return _target->SetBlendMode (Urho3D::String(name), mode);
  5973. }
  5974. DllExport int
  5975. AnimationController_IsPlaying (Urho3D::AnimationController *_target, const char * name)
  5976. {
  5977. return _target->IsPlaying (Urho3D::String(name));
  5978. }
  5979. DllExport int
  5980. AnimationController_IsPlaying0 (Urho3D::AnimationController *_target, unsigned char layer)
  5981. {
  5982. return _target->IsPlaying (layer);
  5983. }
  5984. DllExport int
  5985. AnimationController_IsFadingIn (Urho3D::AnimationController *_target, const char * name)
  5986. {
  5987. return _target->IsFadingIn (Urho3D::String(name));
  5988. }
  5989. DllExport int
  5990. AnimationController_IsFadingOut (Urho3D::AnimationController *_target, const char * name)
  5991. {
  5992. return _target->IsFadingOut (Urho3D::String(name));
  5993. }
  5994. DllExport int
  5995. AnimationController_IsAtEnd (Urho3D::AnimationController *_target, const char * name)
  5996. {
  5997. return _target->IsAtEnd (Urho3D::String(name));
  5998. }
  5999. DllExport unsigned char
  6000. AnimationController_GetLayer (Urho3D::AnimationController *_target, const char * name)
  6001. {
  6002. return _target->GetLayer (Urho3D::String(name));
  6003. }
  6004. DllExport Urho3D::Bone *
  6005. AnimationController_GetStartBone (Urho3D::AnimationController *_target, const char * name)
  6006. {
  6007. return _target->GetStartBone (Urho3D::String(name));
  6008. }
  6009. DllExport const char *
  6010. AnimationController_GetStartBoneName (Urho3D::AnimationController *_target, const char * name)
  6011. {
  6012. return stringdup((_target->GetStartBoneName (Urho3D::String(name))).CString ());
  6013. }
  6014. DllExport float
  6015. AnimationController_GetTime (Urho3D::AnimationController *_target, const char * name)
  6016. {
  6017. return _target->GetTime (Urho3D::String(name));
  6018. }
  6019. DllExport float
  6020. AnimationController_GetWeight (Urho3D::AnimationController *_target, const char * name)
  6021. {
  6022. return _target->GetWeight (Urho3D::String(name));
  6023. }
  6024. DllExport int
  6025. AnimationController_IsLooped (Urho3D::AnimationController *_target, const char * name)
  6026. {
  6027. return _target->IsLooped (Urho3D::String(name));
  6028. }
  6029. DllExport enum Urho3D::AnimationBlendMode
  6030. AnimationController_GetBlendMode (Urho3D::AnimationController *_target, const char * name)
  6031. {
  6032. return _target->GetBlendMode (Urho3D::String(name));
  6033. }
  6034. DllExport float
  6035. AnimationController_GetLength (Urho3D::AnimationController *_target, const char * name)
  6036. {
  6037. return _target->GetLength (Urho3D::String(name));
  6038. }
  6039. DllExport float
  6040. AnimationController_GetSpeed (Urho3D::AnimationController *_target, const char * name)
  6041. {
  6042. return _target->GetSpeed (Urho3D::String(name));
  6043. }
  6044. DllExport float
  6045. AnimationController_GetFadeTarget (Urho3D::AnimationController *_target, const char * name)
  6046. {
  6047. return _target->GetFadeTarget (Urho3D::String(name));
  6048. }
  6049. DllExport float
  6050. AnimationController_GetFadeTime (Urho3D::AnimationController *_target, const char * name)
  6051. {
  6052. return _target->GetFadeTime (Urho3D::String(name));
  6053. }
  6054. DllExport float
  6055. AnimationController_GetAutoFade (Urho3D::AnimationController *_target, const char * name)
  6056. {
  6057. return _target->GetAutoFade (Urho3D::String(name));
  6058. }
  6059. DllExport int
  6060. AnimationController_GetRemoveOnCompletion (Urho3D::AnimationController *_target, const char * name)
  6061. {
  6062. return _target->GetRemoveOnCompletion (Urho3D::String(name));
  6063. }
  6064. DllExport Urho3D::AnimationState *
  6065. AnimationController_GetAnimationState (Urho3D::AnimationController *_target, const char * name)
  6066. {
  6067. return _target->GetAnimationState (Urho3D::String(name));
  6068. }
  6069. DllExport Urho3D::AnimationState *
  6070. AnimationController_GetAnimationState1 (Urho3D::AnimationController *_target, int nameHash)
  6071. {
  6072. return _target->GetAnimationState (Urho3D::StringHash(nameHash));
  6073. }
  6074. DllExport void *
  6075. Frustum_Frustum ()
  6076. {
  6077. return new Frustum();
  6078. }
  6079. DllExport void *
  6080. Frustum_Frustum0 (const class Urho3D::Frustum & frustum)
  6081. {
  6082. return new Frustum(frustum);
  6083. }
  6084. DllExport void
  6085. Frustum_Define (Urho3D::Frustum *_target, float fov, float aspectRatio, float zoom, float nearZ, float farZ, const class Urho3D::Matrix3x4 & transform)
  6086. {
  6087. _target->Define (fov, aspectRatio, zoom, nearZ, farZ, transform);
  6088. }
  6089. DllExport void
  6090. Frustum_Define1 (Urho3D::Frustum *_target, const class Urho3D::Vector3 & nearValue, const class Urho3D::Vector3 & farValue, const class Urho3D::Matrix3x4 & transform)
  6091. {
  6092. _target->Define (nearValue, farValue, transform);
  6093. }
  6094. DllExport void
  6095. Frustum_Define2 (Urho3D::Frustum *_target, const class Urho3D::BoundingBox & box, const class Urho3D::Matrix3x4 & transform)
  6096. {
  6097. _target->Define (box, transform);
  6098. }
  6099. DllExport void
  6100. Frustum_Define3 (Urho3D::Frustum *_target, const class Urho3D::Matrix4 & projection)
  6101. {
  6102. _target->Define (projection);
  6103. }
  6104. DllExport void
  6105. Frustum_DefineOrtho (Urho3D::Frustum *_target, float orthoSize, float aspectRatio, float zoom, float nearZ, float farZ, const class Urho3D::Matrix3x4 & transform)
  6106. {
  6107. _target->DefineOrtho (orthoSize, aspectRatio, zoom, nearZ, farZ, transform);
  6108. }
  6109. DllExport void
  6110. Frustum_DefineSplit (Urho3D::Frustum *_target, const class Urho3D::Matrix4 & projection, float nearValue, float farValue)
  6111. {
  6112. _target->DefineSplit (projection, nearValue, farValue);
  6113. }
  6114. DllExport void
  6115. Frustum_Transform (Urho3D::Frustum *_target, const class Urho3D::Matrix3x4 & transform)
  6116. {
  6117. _target->Transform (transform);
  6118. }
  6119. DllExport enum Urho3D::Intersection
  6120. Frustum_IsInside (Urho3D::Frustum *_target, const class Urho3D::Vector3 & point)
  6121. {
  6122. return _target->IsInside (point);
  6123. }
  6124. DllExport enum Urho3D::Intersection
  6125. Frustum_IsInside4 (Urho3D::Frustum *_target, const class Urho3D::BoundingBox & box)
  6126. {
  6127. return _target->IsInside (box);
  6128. }
  6129. DllExport enum Urho3D::Intersection
  6130. Frustum_IsInsideFast (Urho3D::Frustum *_target, const class Urho3D::BoundingBox & box)
  6131. {
  6132. return _target->IsInsideFast (box);
  6133. }
  6134. DllExport float
  6135. Frustum_Distance (Urho3D::Frustum *_target, const class Urho3D::Vector3 & point)
  6136. {
  6137. return _target->Distance (point);
  6138. }
  6139. DllExport Urho3D::Frustum *
  6140. Frustum_Transformed (Urho3D::Frustum *_target, const class Urho3D::Matrix3x4 & transform)
  6141. {
  6142. return new Urho3D::Frustum (_target->Transformed (transform));
  6143. }
  6144. DllExport Urho3D::Rect
  6145. Frustum_Projected (Urho3D::Frustum *_target, const class Urho3D::Matrix4 & transform)
  6146. {
  6147. return _target->Projected (transform);
  6148. }
  6149. DllExport void
  6150. Frustum_UpdatePlanes (Urho3D::Frustum *_target)
  6151. {
  6152. _target->UpdatePlanes ();
  6153. }
  6154. DllExport void *
  6155. GPUObject_GPUObject (Urho3D::Graphics * graphics)
  6156. {
  6157. return new GPUObject(graphics);
  6158. }
  6159. DllExport void
  6160. GPUObject_OnDeviceLost (Urho3D::GPUObject *_target)
  6161. {
  6162. _target->OnDeviceLost ();
  6163. }
  6164. DllExport void
  6165. GPUObject_OnDeviceReset (Urho3D::GPUObject *_target)
  6166. {
  6167. _target->OnDeviceReset ();
  6168. }
  6169. DllExport void
  6170. GPUObject_Release (Urho3D::GPUObject *_target)
  6171. {
  6172. _target->Release ();
  6173. }
  6174. DllExport void
  6175. GPUObject_ClearDataLost (Urho3D::GPUObject *_target)
  6176. {
  6177. _target->ClearDataLost ();
  6178. }
  6179. DllExport Urho3D::Graphics *
  6180. GPUObject_GetGraphics (Urho3D::GPUObject *_target)
  6181. {
  6182. return _target->GetGraphics ();
  6183. }
  6184. DllExport void *
  6185. GPUObject_GetGPUObject (Urho3D::GPUObject *_target)
  6186. {
  6187. return _target->GetGPUObject ();
  6188. }
  6189. DllExport unsigned int
  6190. GPUObject_GetGPUObjectName (Urho3D::GPUObject *_target)
  6191. {
  6192. return _target->GetGPUObjectName ();
  6193. }
  6194. DllExport int
  6195. GPUObject_IsDataLost (Urho3D::GPUObject *_target)
  6196. {
  6197. return _target->IsDataLost ();
  6198. }
  6199. DllExport int
  6200. GPUObject_HasPendingData (Urho3D::GPUObject *_target)
  6201. {
  6202. return _target->HasPendingData ();
  6203. }
  6204. DllExport GPUObject*
  6205. Texture_CastToGPUObject(Urho3D::Texture *_target)
  6206. {
  6207. return static_cast<GPUObject*>(_target);
  6208. }
  6209. DllExport void *
  6210. Texture_Texture (Urho3D::Context * context)
  6211. {
  6212. return WeakPtr<Texture>(new Texture(context));
  6213. }
  6214. DllExport void
  6215. Texture_SetNumLevels (Urho3D::Texture *_target, unsigned int levels)
  6216. {
  6217. _target->SetNumLevels (levels);
  6218. }
  6219. DllExport void
  6220. Texture_SetFilterMode (Urho3D::Texture *_target, enum Urho3D::TextureFilterMode filter)
  6221. {
  6222. _target->SetFilterMode (filter);
  6223. }
  6224. DllExport void
  6225. Texture_SetAddressMode (Urho3D::Texture *_target, enum Urho3D::TextureCoordinate coord, enum Urho3D::TextureAddressMode address)
  6226. {
  6227. _target->SetAddressMode (coord, address);
  6228. }
  6229. DllExport void
  6230. Texture_SetAnisotropy (Urho3D::Texture *_target, unsigned int level)
  6231. {
  6232. _target->SetAnisotropy (level);
  6233. }
  6234. DllExport void
  6235. Texture_SetShadowCompare (Urho3D::Texture *_target, bool enable)
  6236. {
  6237. _target->SetShadowCompare (enable);
  6238. }
  6239. DllExport void
  6240. Texture_SetBorderColor (Urho3D::Texture *_target, const class Urho3D::Color & color)
  6241. {
  6242. _target->SetBorderColor (color);
  6243. }
  6244. DllExport void
  6245. Texture_SetSRGB (Urho3D::Texture *_target, bool enable)
  6246. {
  6247. _target->SetSRGB (enable);
  6248. }
  6249. DllExport void
  6250. Texture_SetBackupTexture (Urho3D::Texture *_target, Urho3D::Texture * texture)
  6251. {
  6252. _target->SetBackupTexture (texture);
  6253. }
  6254. DllExport void
  6255. Texture_SetMipsToSkip (Urho3D::Texture *_target, int quality, int toSkip)
  6256. {
  6257. _target->SetMipsToSkip (quality, toSkip);
  6258. }
  6259. DllExport unsigned int
  6260. Texture_GetFormat (Urho3D::Texture *_target)
  6261. {
  6262. return _target->GetFormat ();
  6263. }
  6264. DllExport int
  6265. Texture_IsCompressed (Urho3D::Texture *_target)
  6266. {
  6267. return _target->IsCompressed ();
  6268. }
  6269. DllExport unsigned int
  6270. Texture_GetLevels (Urho3D::Texture *_target)
  6271. {
  6272. return _target->GetLevels ();
  6273. }
  6274. DllExport int
  6275. Texture_GetWidth (Urho3D::Texture *_target)
  6276. {
  6277. return _target->GetWidth ();
  6278. }
  6279. DllExport int
  6280. Texture_GetHeight (Urho3D::Texture *_target)
  6281. {
  6282. return _target->GetHeight ();
  6283. }
  6284. DllExport int
  6285. Texture_GetDepth (Urho3D::Texture *_target)
  6286. {
  6287. return _target->GetDepth ();
  6288. }
  6289. DllExport enum Urho3D::TextureFilterMode
  6290. Texture_GetFilterMode (Urho3D::Texture *_target)
  6291. {
  6292. return _target->GetFilterMode ();
  6293. }
  6294. DllExport enum Urho3D::TextureAddressMode
  6295. Texture_GetAddressMode (Urho3D::Texture *_target, enum Urho3D::TextureCoordinate coord)
  6296. {
  6297. return _target->GetAddressMode (coord);
  6298. }
  6299. DllExport unsigned int
  6300. Texture_GetAnisotropy (Urho3D::Texture *_target)
  6301. {
  6302. return _target->GetAnisotropy ();
  6303. }
  6304. DllExport int
  6305. Texture_GetShadowCompare (Urho3D::Texture *_target)
  6306. {
  6307. return _target->GetShadowCompare ();
  6308. }
  6309. DllExport Interop::Color
  6310. Texture_GetBorderColor (Urho3D::Texture *_target)
  6311. {
  6312. return *((Interop::Color *) &(_target->GetBorderColor ()));
  6313. }
  6314. DllExport int
  6315. Texture_GetSRGB (Urho3D::Texture *_target)
  6316. {
  6317. return _target->GetSRGB ();
  6318. }
  6319. DllExport int
  6320. Texture_GetMultiSample (Urho3D::Texture *_target)
  6321. {
  6322. return _target->GetMultiSample ();
  6323. }
  6324. DllExport int
  6325. Texture_GetAutoResolve (Urho3D::Texture *_target)
  6326. {
  6327. return _target->GetAutoResolve ();
  6328. }
  6329. DllExport int
  6330. Texture_IsResolveDirty (Urho3D::Texture *_target)
  6331. {
  6332. return _target->IsResolveDirty ();
  6333. }
  6334. DllExport int
  6335. Texture_GetLevelsDirty (Urho3D::Texture *_target)
  6336. {
  6337. return _target->GetLevelsDirty ();
  6338. }
  6339. DllExport Urho3D::Texture *
  6340. Texture_GetBackupTexture (Urho3D::Texture *_target)
  6341. {
  6342. return _target->GetBackupTexture ();
  6343. }
  6344. DllExport int
  6345. Texture_GetMipsToSkip (Urho3D::Texture *_target, int quality)
  6346. {
  6347. return _target->GetMipsToSkip (quality);
  6348. }
  6349. DllExport int
  6350. Texture_GetLevelWidth (Urho3D::Texture *_target, unsigned int level)
  6351. {
  6352. return _target->GetLevelWidth (level);
  6353. }
  6354. DllExport int
  6355. Texture_GetLevelHeight (Urho3D::Texture *_target, unsigned int level)
  6356. {
  6357. return _target->GetLevelHeight (level);
  6358. }
  6359. DllExport int
  6360. Texture_GetLevelDepth (Urho3D::Texture *_target, unsigned int level)
  6361. {
  6362. return _target->GetLevelDepth (level);
  6363. }
  6364. DllExport enum Urho3D::TextureUsage
  6365. Texture_GetUsage (Urho3D::Texture *_target)
  6366. {
  6367. return _target->GetUsage ();
  6368. }
  6369. DllExport unsigned int
  6370. Texture_GetDataSize (Urho3D::Texture *_target, int width, int height)
  6371. {
  6372. return _target->GetDataSize (width, height);
  6373. }
  6374. DllExport unsigned int
  6375. Texture_GetDataSize0 (Urho3D::Texture *_target, int width, int height, int depth)
  6376. {
  6377. return _target->GetDataSize (width, height, depth);
  6378. }
  6379. DllExport unsigned int
  6380. Texture_GetRowDataSize (Urho3D::Texture *_target, int width)
  6381. {
  6382. return _target->GetRowDataSize (width);
  6383. }
  6384. DllExport unsigned int
  6385. Texture_GetComponents (Urho3D::Texture *_target)
  6386. {
  6387. return _target->GetComponents ();
  6388. }
  6389. DllExport int
  6390. Texture_GetParametersDirty (Urho3D::Texture *_target)
  6391. {
  6392. return _target->GetParametersDirty ();
  6393. }
  6394. DllExport void
  6395. Texture_SetParameters (Urho3D::Texture *_target, Urho3D::XMLFile * xml)
  6396. {
  6397. _target->SetParameters (xml);
  6398. }
  6399. DllExport void
  6400. Texture_SetParameters1 (Urho3D::Texture *_target, const class Urho3D::XMLElement & element)
  6401. {
  6402. _target->SetParameters (element);
  6403. }
  6404. DllExport void
  6405. Texture_SetParametersDirty (Urho3D::Texture *_target)
  6406. {
  6407. _target->SetParametersDirty ();
  6408. }
  6409. DllExport void
  6410. Texture_UpdateParameters (Urho3D::Texture *_target)
  6411. {
  6412. _target->UpdateParameters ();
  6413. }
  6414. DllExport void *
  6415. Texture_GetShaderResourceView (Urho3D::Texture *_target)
  6416. {
  6417. return _target->GetShaderResourceView ();
  6418. }
  6419. DllExport void *
  6420. Texture_GetSampler (Urho3D::Texture *_target)
  6421. {
  6422. return _target->GetSampler ();
  6423. }
  6424. DllExport void *
  6425. Texture_GetResolveTexture (Urho3D::Texture *_target)
  6426. {
  6427. return _target->GetResolveTexture ();
  6428. }
  6429. DllExport unsigned int
  6430. Texture_GetSRGBFormat (Urho3D::Texture *_target, unsigned int format)
  6431. {
  6432. return _target->GetSRGBFormat (format);
  6433. }
  6434. DllExport void
  6435. Texture_SetResolveDirty (Urho3D::Texture *_target, bool enable)
  6436. {
  6437. _target->SetResolveDirty (enable);
  6438. }
  6439. DllExport void
  6440. Texture_SetLevelsDirty (Urho3D::Texture *_target)
  6441. {
  6442. _target->SetLevelsDirty ();
  6443. }
  6444. DllExport void
  6445. Texture_RegenerateLevels (Urho3D::Texture *_target)
  6446. {
  6447. _target->RegenerateLevels ();
  6448. }
  6449. DllExport unsigned int
  6450. Texture_CheckMaxLevels (int width, int height, unsigned int requestedLevels)
  6451. {
  6452. return Texture::CheckMaxLevels (width, height, requestedLevels);
  6453. }
  6454. DllExport unsigned int
  6455. Texture_CheckMaxLevels2 (int width, int height, int depth, unsigned int requestedLevels)
  6456. {
  6457. return Texture::CheckMaxLevels (width, height, depth, requestedLevels);
  6458. }
  6459. DllExport int
  6460. Light_GetType (Urho3D::Light *_target)
  6461. {
  6462. return (_target->GetType ()).Value ();
  6463. }
  6464. DllExport const char *
  6465. Light_GetTypeName (Urho3D::Light *_target)
  6466. {
  6467. return stringdup((_target->GetTypeName ()).CString ());
  6468. }
  6469. DllExport int
  6470. Light_GetTypeStatic ()
  6471. {
  6472. return (Light::GetTypeStatic ()).Value ();
  6473. }
  6474. DllExport const char *
  6475. Light_GetTypeNameStatic ()
  6476. {
  6477. return stringdup((Light::GetTypeNameStatic ()).CString ());
  6478. }
  6479. DllExport void *
  6480. Light_Light (Urho3D::Context * context)
  6481. {
  6482. return WeakPtr<Light>(new Light(context));
  6483. }
  6484. DllExport void
  6485. Light_RegisterObject (Urho3D::Context * context)
  6486. {
  6487. Light::RegisterObject (context);
  6488. }
  6489. DllExport void
  6490. Light_DrawDebugGeometry (Urho3D::Light *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  6491. {
  6492. _target->DrawDebugGeometry (debug, depthTest);
  6493. }
  6494. DllExport void
  6495. Light_SetLightType (Urho3D::Light *_target, enum Urho3D::LightType type)
  6496. {
  6497. _target->SetLightType (type);
  6498. }
  6499. DllExport void
  6500. Light_SetPerVertex (Urho3D::Light *_target, bool enable)
  6501. {
  6502. _target->SetPerVertex (enable);
  6503. }
  6504. DllExport void
  6505. Light_SetColor (Urho3D::Light *_target, const class Urho3D::Color & color)
  6506. {
  6507. _target->SetColor (color);
  6508. }
  6509. DllExport void
  6510. Light_SetTemperature (Urho3D::Light *_target, float temperature)
  6511. {
  6512. _target->SetTemperature (temperature);
  6513. }
  6514. DllExport void
  6515. Light_SetRadius (Urho3D::Light *_target, float radius)
  6516. {
  6517. _target->SetRadius (radius);
  6518. }
  6519. DllExport void
  6520. Light_SetLength (Urho3D::Light *_target, float length)
  6521. {
  6522. _target->SetLength (length);
  6523. }
  6524. DllExport void
  6525. Light_SetUsePhysicalValues (Urho3D::Light *_target, bool enable)
  6526. {
  6527. _target->SetUsePhysicalValues (enable);
  6528. }
  6529. DllExport void
  6530. Light_SetSpecularIntensity (Urho3D::Light *_target, float intensity)
  6531. {
  6532. _target->SetSpecularIntensity (intensity);
  6533. }
  6534. DllExport void
  6535. Light_SetBrightness (Urho3D::Light *_target, float brightness)
  6536. {
  6537. _target->SetBrightness (brightness);
  6538. }
  6539. DllExport void
  6540. Light_SetRange (Urho3D::Light *_target, float range)
  6541. {
  6542. _target->SetRange (range);
  6543. }
  6544. DllExport void
  6545. Light_SetFov (Urho3D::Light *_target, float fov)
  6546. {
  6547. _target->SetFov (fov);
  6548. }
  6549. DllExport void
  6550. Light_SetAspectRatio (Urho3D::Light *_target, float aspectRatio)
  6551. {
  6552. _target->SetAspectRatio (aspectRatio);
  6553. }
  6554. DllExport void
  6555. Light_SetFadeDistance (Urho3D::Light *_target, float distance)
  6556. {
  6557. _target->SetFadeDistance (distance);
  6558. }
  6559. DllExport void
  6560. Light_SetShadowFadeDistance (Urho3D::Light *_target, float distance)
  6561. {
  6562. _target->SetShadowFadeDistance (distance);
  6563. }
  6564. DllExport void
  6565. Light_SetShadowBias (Urho3D::Light *_target, const struct Urho3D::BiasParameters & parameters)
  6566. {
  6567. _target->SetShadowBias (parameters);
  6568. }
  6569. DllExport void
  6570. Light_SetShadowConstantBias (Urho3D::Light *_target, float constantBias)
  6571. {
  6572. _target->SetShadowConstantBias (constantBias);
  6573. }
  6574. DllExport void
  6575. Light_SetShadowSlopeScaledBias (Urho3D::Light *_target, float slopeScaledBias)
  6576. {
  6577. _target->SetShadowSlopeScaledBias (slopeScaledBias);
  6578. }
  6579. DllExport void
  6580. Light_SetShadowNormalOffset (Urho3D::Light *_target, float normalOffset)
  6581. {
  6582. _target->SetShadowNormalOffset (normalOffset);
  6583. }
  6584. DllExport void
  6585. Light_SetShadowCascade (Urho3D::Light *_target, const struct Urho3D::CascadeParameters & parameters)
  6586. {
  6587. _target->SetShadowCascade (parameters);
  6588. }
  6589. DllExport void
  6590. Light_SetShadowCascadeSplits (Urho3D::Light *_target, const class Urho3D::Vector4 & value)
  6591. {
  6592. _target->SetShadowCascadeSplits (value);
  6593. }
  6594. DllExport void
  6595. Light_SetShadowCascadeFadeStart (Urho3D::Light *_target, float fadeStart)
  6596. {
  6597. _target->SetShadowCascadeFadeStart (fadeStart);
  6598. }
  6599. DllExport void
  6600. Light_SetShadowCascadeBiasAutoAdjust (Urho3D::Light *_target, float biasAutoAdjust)
  6601. {
  6602. _target->SetShadowCascadeBiasAutoAdjust (biasAutoAdjust);
  6603. }
  6604. DllExport void
  6605. Light_SetShadowFocus (Urho3D::Light *_target, const struct Urho3D::FocusParameters & parameters)
  6606. {
  6607. _target->SetShadowFocus (parameters);
  6608. }
  6609. DllExport void
  6610. Light_SetShadowFocusFlag (Urho3D::Light *_target, bool focus)
  6611. {
  6612. _target->SetShadowFocusFlag (focus);
  6613. }
  6614. DllExport void
  6615. Light_SetShadowFocusNonUniform (Urho3D::Light *_target, bool nonUniform)
  6616. {
  6617. _target->SetShadowFocusNonUniform (nonUniform);
  6618. }
  6619. DllExport void
  6620. Light_SetShadowFocusAutoSize (Urho3D::Light *_target, bool autoSize)
  6621. {
  6622. _target->SetShadowFocusAutoSize (autoSize);
  6623. }
  6624. DllExport void
  6625. Light_SetShadowFocusQuantize (Urho3D::Light *_target, float quantize)
  6626. {
  6627. _target->SetShadowFocusQuantize (quantize);
  6628. }
  6629. DllExport void
  6630. Light_SetShadowFocusMinView (Urho3D::Light *_target, float minView)
  6631. {
  6632. _target->SetShadowFocusMinView (minView);
  6633. }
  6634. DllExport void
  6635. Light_SetShadowIntensity (Urho3D::Light *_target, float intensity)
  6636. {
  6637. _target->SetShadowIntensity (intensity);
  6638. }
  6639. DllExport void
  6640. Light_SetShadowResolution (Urho3D::Light *_target, float resolution)
  6641. {
  6642. _target->SetShadowResolution (resolution);
  6643. }
  6644. DllExport void
  6645. Light_SetShadowNearFarRatio (Urho3D::Light *_target, float nearFarRatio)
  6646. {
  6647. _target->SetShadowNearFarRatio (nearFarRatio);
  6648. }
  6649. DllExport void
  6650. Light_SetShadowMaxExtrusion (Urho3D::Light *_target, float extrusion)
  6651. {
  6652. _target->SetShadowMaxExtrusion (extrusion);
  6653. }
  6654. DllExport void
  6655. Light_SetRampTexture (Urho3D::Light *_target, Urho3D::Texture * texture)
  6656. {
  6657. _target->SetRampTexture (texture);
  6658. }
  6659. DllExport void
  6660. Light_SetShapeTexture (Urho3D::Light *_target, Urho3D::Texture * texture)
  6661. {
  6662. _target->SetShapeTexture (texture);
  6663. }
  6664. DllExport enum Urho3D::LightType
  6665. Light_GetLightType (Urho3D::Light *_target)
  6666. {
  6667. return _target->GetLightType ();
  6668. }
  6669. DllExport int
  6670. Light_GetPerVertex (Urho3D::Light *_target)
  6671. {
  6672. return _target->GetPerVertex ();
  6673. }
  6674. DllExport Interop::Color
  6675. Light_GetColor (Urho3D::Light *_target)
  6676. {
  6677. return *((Interop::Color *) &(_target->GetColor ()));
  6678. }
  6679. DllExport float
  6680. Light_GetTemperature (Urho3D::Light *_target)
  6681. {
  6682. return _target->GetTemperature ();
  6683. }
  6684. DllExport float
  6685. Light_GetRadius (Urho3D::Light *_target)
  6686. {
  6687. return _target->GetRadius ();
  6688. }
  6689. DllExport float
  6690. Light_GetLength (Urho3D::Light *_target)
  6691. {
  6692. return _target->GetLength ();
  6693. }
  6694. DllExport int
  6695. Light_GetUsePhysicalValues (Urho3D::Light *_target)
  6696. {
  6697. return _target->GetUsePhysicalValues ();
  6698. }
  6699. DllExport Interop::Color
  6700. Light_GetColorFromTemperature (Urho3D::Light *_target)
  6701. {
  6702. return *((Interop::Color *) &(_target->GetColorFromTemperature ()));
  6703. }
  6704. DllExport float
  6705. Light_GetSpecularIntensity (Urho3D::Light *_target)
  6706. {
  6707. return _target->GetSpecularIntensity ();
  6708. }
  6709. DllExport float
  6710. Light_GetBrightness (Urho3D::Light *_target)
  6711. {
  6712. return _target->GetBrightness ();
  6713. }
  6714. DllExport Interop::Color
  6715. Light_GetEffectiveColor (Urho3D::Light *_target)
  6716. {
  6717. return *((Interop::Color *) &(_target->GetEffectiveColor ()));
  6718. }
  6719. DllExport float
  6720. Light_GetEffectiveSpecularIntensity (Urho3D::Light *_target)
  6721. {
  6722. return _target->GetEffectiveSpecularIntensity ();
  6723. }
  6724. DllExport float
  6725. Light_GetRange (Urho3D::Light *_target)
  6726. {
  6727. return _target->GetRange ();
  6728. }
  6729. DllExport float
  6730. Light_GetFov (Urho3D::Light *_target)
  6731. {
  6732. return _target->GetFov ();
  6733. }
  6734. DllExport float
  6735. Light_GetAspectRatio (Urho3D::Light *_target)
  6736. {
  6737. return _target->GetAspectRatio ();
  6738. }
  6739. DllExport float
  6740. Light_GetFadeDistance (Urho3D::Light *_target)
  6741. {
  6742. return _target->GetFadeDistance ();
  6743. }
  6744. DllExport float
  6745. Light_GetShadowFadeDistance (Urho3D::Light *_target)
  6746. {
  6747. return _target->GetShadowFadeDistance ();
  6748. }
  6749. DllExport const struct Urho3D::BiasParameters &
  6750. Light_GetShadowBias (Urho3D::Light *_target)
  6751. {
  6752. return _target->GetShadowBias ();
  6753. }
  6754. DllExport float
  6755. Light_GetShadowConstantBias (Urho3D::Light *_target)
  6756. {
  6757. return _target->GetShadowConstantBias ();
  6758. }
  6759. DllExport float
  6760. Light_GetShadowSlopeScaledBias (Urho3D::Light *_target)
  6761. {
  6762. return _target->GetShadowSlopeScaledBias ();
  6763. }
  6764. DllExport float
  6765. Light_GetShadowNormalOffset (Urho3D::Light *_target)
  6766. {
  6767. return _target->GetShadowNormalOffset ();
  6768. }
  6769. DllExport const struct Urho3D::CascadeParameters &
  6770. Light_GetShadowCascade (Urho3D::Light *_target)
  6771. {
  6772. return _target->GetShadowCascade ();
  6773. }
  6774. DllExport Interop::Vector4
  6775. Light_GetShadowCascadeSplits (Urho3D::Light *_target)
  6776. {
  6777. return *((Interop::Vector4 *) &(_target->GetShadowCascadeSplits ()));
  6778. }
  6779. DllExport float
  6780. Light_GetShadowCascadeFadeStart (Urho3D::Light *_target)
  6781. {
  6782. return _target->GetShadowCascadeFadeStart ();
  6783. }
  6784. DllExport float
  6785. Light_GetShadowCascadeBiasAutoAdjust (Urho3D::Light *_target)
  6786. {
  6787. return _target->GetShadowCascadeBiasAutoAdjust ();
  6788. }
  6789. DllExport const struct Urho3D::FocusParameters &
  6790. Light_GetShadowFocus (Urho3D::Light *_target)
  6791. {
  6792. return _target->GetShadowFocus ();
  6793. }
  6794. DllExport int
  6795. Light_GetShadowFocusFlag (Urho3D::Light *_target)
  6796. {
  6797. return _target->GetShadowFocusFlag ();
  6798. }
  6799. DllExport int
  6800. Light_GetShadowFocusNonUniform (Urho3D::Light *_target)
  6801. {
  6802. return _target->GetShadowFocusNonUniform ();
  6803. }
  6804. DllExport int
  6805. Light_GetShadowFocusAutoSize (Urho3D::Light *_target)
  6806. {
  6807. return _target->GetShadowFocusAutoSize ();
  6808. }
  6809. DllExport float
  6810. Light_GetShadowFocusQuantize (Urho3D::Light *_target)
  6811. {
  6812. return _target->GetShadowFocusQuantize ();
  6813. }
  6814. DllExport float
  6815. Light_GetShadowFocusMinView (Urho3D::Light *_target)
  6816. {
  6817. return _target->GetShadowFocusMinView ();
  6818. }
  6819. DllExport float
  6820. Light_GetShadowIntensity (Urho3D::Light *_target)
  6821. {
  6822. return _target->GetShadowIntensity ();
  6823. }
  6824. DllExport float
  6825. Light_GetShadowResolution (Urho3D::Light *_target)
  6826. {
  6827. return _target->GetShadowResolution ();
  6828. }
  6829. DllExport float
  6830. Light_GetShadowNearFarRatio (Urho3D::Light *_target)
  6831. {
  6832. return _target->GetShadowNearFarRatio ();
  6833. }
  6834. DllExport float
  6835. Light_GetShadowMaxExtrusion (Urho3D::Light *_target)
  6836. {
  6837. return _target->GetShadowMaxExtrusion ();
  6838. }
  6839. DllExport Urho3D::Texture *
  6840. Light_GetRampTexture (Urho3D::Light *_target)
  6841. {
  6842. return _target->GetRampTexture ();
  6843. }
  6844. DllExport Urho3D::Texture *
  6845. Light_GetShapeTexture (Urho3D::Light *_target)
  6846. {
  6847. return _target->GetShapeTexture ();
  6848. }
  6849. DllExport Urho3D::Frustum *
  6850. Light_GetFrustum (Urho3D::Light *_target)
  6851. {
  6852. return new Urho3D::Frustum (_target->GetFrustum ());
  6853. }
  6854. DllExport Urho3D::Frustum *
  6855. Light_GetViewSpaceFrustum (Urho3D::Light *_target, const class Urho3D::Matrix3x4 & view)
  6856. {
  6857. return new Urho3D::Frustum (_target->GetViewSpaceFrustum (view));
  6858. }
  6859. DllExport int
  6860. Light_GetNumShadowSplits (Urho3D::Light *_target)
  6861. {
  6862. return _target->GetNumShadowSplits ();
  6863. }
  6864. DllExport int
  6865. Light_IsNegative (Urho3D::Light *_target)
  6866. {
  6867. return _target->IsNegative ();
  6868. }
  6869. DllExport void
  6870. Light_SetIntensitySortValue (Urho3D::Light *_target, float distance)
  6871. {
  6872. _target->SetIntensitySortValue (distance);
  6873. }
  6874. DllExport void
  6875. Light_SetIntensitySortValue0 (Urho3D::Light *_target, const class Urho3D::BoundingBox & box)
  6876. {
  6877. _target->SetIntensitySortValue (box);
  6878. }
  6879. DllExport void
  6880. Light_SetLightQueue (Urho3D::Light *_target, Urho3D::LightBatchQueue * queue)
  6881. {
  6882. _target->SetLightQueue (queue);
  6883. }
  6884. DllExport Interop::Matrix3x4
  6885. Light_GetVolumeTransform (Urho3D::Light *_target, Urho3D::Camera * camera)
  6886. {
  6887. return *((Interop::Matrix3x4 *) &(_target->GetVolumeTransform (camera)));
  6888. }
  6889. DllExport Urho3D::LightBatchQueue *
  6890. Light_GetLightQueue (Urho3D::Light *_target)
  6891. {
  6892. return _target->GetLightQueue ();
  6893. }
  6894. DllExport float
  6895. Light_GetIntensityDivisor (Urho3D::Light *_target, float attenuation)
  6896. {
  6897. return _target->GetIntensityDivisor (attenuation);
  6898. }
  6899. DllExport Urho3D::ResourceRef
  6900. Light_GetRampTextureAttr (Urho3D::Light *_target)
  6901. {
  6902. return _target->GetRampTextureAttr ();
  6903. }
  6904. DllExport Urho3D::ResourceRef
  6905. Light_GetShapeTextureAttr (Urho3D::Light *_target)
  6906. {
  6907. return _target->GetShapeTextureAttr ();
  6908. }
  6909. DllExport Interop::Matrix3x4
  6910. Light_GetFullscreenQuadTransform (Urho3D::Camera * camera)
  6911. {
  6912. return *((Interop::Matrix3x4 *) &(Light::GetFullscreenQuadTransform (camera)));
  6913. }
  6914. DllExport void *
  6915. ShaderParameterAnimationInfo_ShaderParameterAnimationInfo (Urho3D::Material * material, const char * name, Urho3D::ValueAnimation * attributeAnimation, enum Urho3D::WrapMode wrapMode, float speed)
  6916. {
  6917. return WeakPtr<ShaderParameterAnimationInfo>(new ShaderParameterAnimationInfo(material, Urho3D::String(name), attributeAnimation, wrapMode, speed));
  6918. }
  6919. DllExport const char *
  6920. ShaderParameterAnimationInfo_GetName (Urho3D::ShaderParameterAnimationInfo *_target)
  6921. {
  6922. return stringdup((_target->GetName ()).CString ());
  6923. }
  6924. DllExport int
  6925. Material_GetType (Urho3D::Material *_target)
  6926. {
  6927. return (_target->GetType ()).Value ();
  6928. }
  6929. DllExport const char *
  6930. Material_GetTypeName (Urho3D::Material *_target)
  6931. {
  6932. return stringdup((_target->GetTypeName ()).CString ());
  6933. }
  6934. DllExport int
  6935. Material_GetTypeStatic ()
  6936. {
  6937. return (Material::GetTypeStatic ()).Value ();
  6938. }
  6939. DllExport const char *
  6940. Material_GetTypeNameStatic ()
  6941. {
  6942. return stringdup((Material::GetTypeNameStatic ()).CString ());
  6943. }
  6944. DllExport void *
  6945. Material_Material (Urho3D::Context * context)
  6946. {
  6947. return WeakPtr<Material>(new Material(context));
  6948. }
  6949. DllExport void
  6950. Material_RegisterObject (Urho3D::Context * context)
  6951. {
  6952. Material::RegisterObject (context);
  6953. }
  6954. DllExport int
  6955. Material_BeginLoad_File (Urho3D::Material *_target, File * source)
  6956. {
  6957. return _target->BeginLoad (*source);
  6958. }
  6959. DllExport int
  6960. Material_BeginLoad_MemoryBuffer (Urho3D::Material *_target, MemoryBuffer * source)
  6961. {
  6962. return _target->BeginLoad (*source);
  6963. }
  6964. DllExport int
  6965. Material_EndLoad (Urho3D::Material *_target)
  6966. {
  6967. return _target->EndLoad ();
  6968. }
  6969. DllExport int
  6970. Material_Save_File (Urho3D::Material *_target, File * dest)
  6971. {
  6972. return _target->Save (*dest);
  6973. }
  6974. DllExport int
  6975. Material_Save_MemoryBuffer (Urho3D::Material *_target, MemoryBuffer * dest)
  6976. {
  6977. return _target->Save (*dest);
  6978. }
  6979. DllExport int
  6980. Material_Load (Urho3D::Material *_target, const class Urho3D::XMLElement & source)
  6981. {
  6982. return _target->Load (source);
  6983. }
  6984. DllExport int
  6985. Material_Save0 (Urho3D::Material *_target, Urho3D::XMLElement & dest)
  6986. {
  6987. return _target->Save (dest);
  6988. }
  6989. DllExport void
  6990. Material_SetNumTechniques (Urho3D::Material *_target, unsigned int num)
  6991. {
  6992. _target->SetNumTechniques (num);
  6993. }
  6994. DllExport void
  6995. Material_SetTechnique (Urho3D::Material *_target, unsigned int index, Urho3D::Technique * tech, unsigned int qualityLevel, float lodDistance)
  6996. {
  6997. _target->SetTechnique (index, tech, qualityLevel, lodDistance);
  6998. }
  6999. DllExport void
  7000. Material_SetVertexShaderDefines (Urho3D::Material *_target, const char * defines)
  7001. {
  7002. _target->SetVertexShaderDefines (Urho3D::String(defines));
  7003. }
  7004. DllExport void
  7005. Material_SetPixelShaderDefines (Urho3D::Material *_target, const char * defines)
  7006. {
  7007. _target->SetPixelShaderDefines (Urho3D::String(defines));
  7008. }
  7009. // Urho3D::Variant overloads begin:
  7010. DllExport void
  7011. Material_SetShaderParameter0 (Urho3D::Material *_target, const char * name, const class Urho3D::Vector3 & value)
  7012. {
  7013. _target->SetShaderParameter (Urho3D::String(name), (value));
  7014. }
  7015. DllExport void
  7016. Material_SetShaderParameter1 (Urho3D::Material *_target, const char * name, const class Urho3D::IntRect & value)
  7017. {
  7018. _target->SetShaderParameter (Urho3D::String(name), (value));
  7019. }
  7020. DllExport void
  7021. Material_SetShaderParameter2 (Urho3D::Material *_target, const char * name, const class Urho3D::Color & value)
  7022. {
  7023. _target->SetShaderParameter (Urho3D::String(name), (value));
  7024. }
  7025. DllExport void
  7026. Material_SetShaderParameter3 (Urho3D::Material *_target, const char * name, const class Urho3D::Vector2 & value)
  7027. {
  7028. _target->SetShaderParameter (Urho3D::String(name), (value));
  7029. }
  7030. DllExport void
  7031. Material_SetShaderParameter4 (Urho3D::Material *_target, const char * name, const class Urho3D::Vector4 & value)
  7032. {
  7033. _target->SetShaderParameter (Urho3D::String(name), (value));
  7034. }
  7035. DllExport void
  7036. Material_SetShaderParameter5 (Urho3D::Material *_target, const char * name, const class Urho3D::IntVector2 & value)
  7037. {
  7038. _target->SetShaderParameter (Urho3D::String(name), (value));
  7039. }
  7040. DllExport void
  7041. Material_SetShaderParameter6 (Urho3D::Material *_target, const char * name, const class Urho3D::Quaternion & value)
  7042. {
  7043. _target->SetShaderParameter (Urho3D::String(name), (value));
  7044. }
  7045. DllExport void
  7046. Material_SetShaderParameter7 (Urho3D::Material *_target, const char * name, const class Urho3D::Matrix4 & value)
  7047. {
  7048. _target->SetShaderParameter (Urho3D::String(name), (value));
  7049. }
  7050. DllExport void
  7051. Material_SetShaderParameter8 (Urho3D::Material *_target, const char * name, const class Urho3D::Matrix3x4 & value)
  7052. {
  7053. _target->SetShaderParameter (Urho3D::String(name), (value));
  7054. }
  7055. DllExport void
  7056. Material_SetShaderParameter9 (Urho3D::Material *_target, const char * name, int value)
  7057. {
  7058. _target->SetShaderParameter (Urho3D::String(name), (value));
  7059. }
  7060. DllExport void
  7061. Material_SetShaderParameter10 (Urho3D::Material *_target, const char * name, float value)
  7062. {
  7063. _target->SetShaderParameter (Urho3D::String(name), (value));
  7064. }
  7065. DllExport void
  7066. Material_SetShaderParameter11 (Urho3D::Material *_target, const char * name, const char * value)
  7067. {
  7068. _target->SetShaderParameter (Urho3D::String(name), Urho3D::String(value));
  7069. }
  7070. DllExport void
  7071. Material_SetShaderParameter12 (Urho3D::Material *_target, const char * name, bool value)
  7072. {
  7073. _target->SetShaderParameter (Urho3D::String(name), (value));
  7074. }
  7075. // Urho3D::Variant overloads end.
  7076. DllExport void
  7077. Material_SetShaderParameterAnimation (Urho3D::Material *_target, const char * name, Urho3D::ValueAnimation * animation, enum Urho3D::WrapMode wrapMode, float speed)
  7078. {
  7079. _target->SetShaderParameterAnimation (Urho3D::String(name), animation, wrapMode, speed);
  7080. }
  7081. DllExport void
  7082. Material_SetShaderParameterAnimationWrapMode (Urho3D::Material *_target, const char * name, enum Urho3D::WrapMode wrapMode)
  7083. {
  7084. _target->SetShaderParameterAnimationWrapMode (Urho3D::String(name), wrapMode);
  7085. }
  7086. DllExport void
  7087. Material_SetShaderParameterAnimationSpeed (Urho3D::Material *_target, const char * name, float speed)
  7088. {
  7089. _target->SetShaderParameterAnimationSpeed (Urho3D::String(name), speed);
  7090. }
  7091. DllExport void
  7092. Material_SetTexture (Urho3D::Material *_target, enum Urho3D::TextureUnit unit, Urho3D::Texture * texture)
  7093. {
  7094. _target->SetTexture (unit, texture);
  7095. }
  7096. DllExport void
  7097. Material_SetUVTransform (Urho3D::Material *_target, const class Urho3D::Vector2 & offset, float rotation, const class Urho3D::Vector2 & repeat)
  7098. {
  7099. _target->SetUVTransform (offset, rotation, repeat);
  7100. }
  7101. DllExport void
  7102. Material_SetUVTransform1 (Urho3D::Material *_target, const class Urho3D::Vector2 & offset, float rotation, float repeat)
  7103. {
  7104. _target->SetUVTransform (offset, rotation, repeat);
  7105. }
  7106. DllExport void
  7107. Material_SetCullMode (Urho3D::Material *_target, enum Urho3D::CullMode mode)
  7108. {
  7109. _target->SetCullMode (mode);
  7110. }
  7111. DllExport void
  7112. Material_SetShadowCullMode (Urho3D::Material *_target, enum Urho3D::CullMode mode)
  7113. {
  7114. _target->SetShadowCullMode (mode);
  7115. }
  7116. DllExport void
  7117. Material_SetFillMode (Urho3D::Material *_target, enum Urho3D::FillMode mode)
  7118. {
  7119. _target->SetFillMode (mode);
  7120. }
  7121. DllExport void
  7122. Material_SetDepthBias (Urho3D::Material *_target, const struct Urho3D::BiasParameters & parameters)
  7123. {
  7124. _target->SetDepthBias (parameters);
  7125. }
  7126. DllExport void
  7127. Material_SetAlphaToCoverage (Urho3D::Material *_target, bool enable)
  7128. {
  7129. _target->SetAlphaToCoverage (enable);
  7130. }
  7131. DllExport void
  7132. Material_SetLineAntiAlias (Urho3D::Material *_target, bool enable)
  7133. {
  7134. _target->SetLineAntiAlias (enable);
  7135. }
  7136. DllExport void
  7137. Material_SetRenderOrder (Urho3D::Material *_target, unsigned char order)
  7138. {
  7139. _target->SetRenderOrder (order);
  7140. }
  7141. DllExport void
  7142. Material_SetOcclusion (Urho3D::Material *_target, bool enable)
  7143. {
  7144. _target->SetOcclusion (enable);
  7145. }
  7146. DllExport void
  7147. Material_SetScene (Urho3D::Material *_target, Urho3D::Scene * scene)
  7148. {
  7149. _target->SetScene (scene);
  7150. }
  7151. DllExport void
  7152. Material_RemoveShaderParameter (Urho3D::Material *_target, const char * name)
  7153. {
  7154. _target->RemoveShaderParameter (Urho3D::String(name));
  7155. }
  7156. DllExport void
  7157. Material_ReleaseShaders (Urho3D::Material *_target)
  7158. {
  7159. _target->ReleaseShaders ();
  7160. }
  7161. DllExport Urho3D::Material *
  7162. Material_Clone (Urho3D::Material *_target, const char * cloneName)
  7163. {
  7164. auto copy = _target->Clone (Urho3D::String(cloneName));
  7165. auto plain = copy.Get();
  7166. copy.Detach();
  7167. delete copy;
  7168. return plain;
  7169. }
  7170. DllExport void
  7171. Material_SortTechniques (Urho3D::Material *_target)
  7172. {
  7173. _target->SortTechniques ();
  7174. }
  7175. DllExport void
  7176. Material_MarkForAuxView (Urho3D::Material *_target, unsigned int frameNumber)
  7177. {
  7178. _target->MarkForAuxView (frameNumber);
  7179. }
  7180. DllExport unsigned int
  7181. Material_GetNumTechniques (Urho3D::Material *_target)
  7182. {
  7183. return _target->GetNumTechniques ();
  7184. }
  7185. DllExport Urho3D::Technique *
  7186. Material_GetTechnique (Urho3D::Material *_target, unsigned int index)
  7187. {
  7188. return _target->GetTechnique (index);
  7189. }
  7190. DllExport Urho3D::Pass *
  7191. Material_GetPass (Urho3D::Material *_target, unsigned int index, const char * passName)
  7192. {
  7193. return _target->GetPass (index, Urho3D::String(passName));
  7194. }
  7195. DllExport Urho3D::Texture *
  7196. Material_GetTexture (Urho3D::Material *_target, enum Urho3D::TextureUnit unit)
  7197. {
  7198. return _target->GetTexture (unit);
  7199. }
  7200. DllExport const char *
  7201. Material_GetVertexShaderDefines (Urho3D::Material *_target)
  7202. {
  7203. return stringdup((_target->GetVertexShaderDefines ()).CString ());
  7204. }
  7205. DllExport const char *
  7206. Material_GetPixelShaderDefines (Urho3D::Material *_target)
  7207. {
  7208. return stringdup((_target->GetPixelShaderDefines ()).CString ());
  7209. }
  7210. // Urho3D::Variant overloads begin:
  7211. DllExport Interop::Vector3
  7212. Material_GetShaderParameter0 (Urho3D::Material *_target, const char * name)
  7213. {
  7214. return *((Interop::Vector3 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetVector3()));
  7215. }
  7216. DllExport Interop::IntRect
  7217. Material_GetShaderParameter1 (Urho3D::Material *_target, const char * name)
  7218. {
  7219. return *((Interop::IntRect *) &(_target->GetShaderParameter (Urho3D::String(name)).GetIntRect()));
  7220. }
  7221. DllExport Interop::Color
  7222. Material_GetShaderParameter2 (Urho3D::Material *_target, const char * name)
  7223. {
  7224. return *((Interop::Color *) &(_target->GetShaderParameter (Urho3D::String(name)).GetColor()));
  7225. }
  7226. DllExport Interop::Vector2
  7227. Material_GetShaderParameter3 (Urho3D::Material *_target, const char * name)
  7228. {
  7229. return *((Interop::Vector2 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetVector2()));
  7230. }
  7231. DllExport Interop::Vector4
  7232. Material_GetShaderParameter4 (Urho3D::Material *_target, const char * name)
  7233. {
  7234. return *((Interop::Vector4 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetVector4()));
  7235. }
  7236. DllExport Interop::IntVector2
  7237. Material_GetShaderParameter5 (Urho3D::Material *_target, const char * name)
  7238. {
  7239. return *((Interop::IntVector2 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetIntVector2()));
  7240. }
  7241. DllExport Interop::Quaternion
  7242. Material_GetShaderParameter6 (Urho3D::Material *_target, const char * name)
  7243. {
  7244. return *((Interop::Quaternion *) &(_target->GetShaderParameter (Urho3D::String(name)).GetQuaternion()));
  7245. }
  7246. DllExport Interop::Matrix4
  7247. Material_GetShaderParameter7 (Urho3D::Material *_target, const char * name)
  7248. {
  7249. return *((Interop::Matrix4 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetMatrix4()));
  7250. }
  7251. DllExport Interop::Matrix3x4
  7252. Material_GetShaderParameter8 (Urho3D::Material *_target, const char * name)
  7253. {
  7254. return *((Interop::Matrix3x4 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetMatrix3x4()));
  7255. }
  7256. DllExport int
  7257. Material_GetShaderParameter9 (Urho3D::Material *_target, const char * name)
  7258. {
  7259. return (_target->GetShaderParameter (Urho3D::String(name)).GetInt());
  7260. }
  7261. DllExport float
  7262. Material_GetShaderParameter10 (Urho3D::Material *_target, const char * name)
  7263. {
  7264. return (_target->GetShaderParameter (Urho3D::String(name)).GetFloat());
  7265. }
  7266. DllExport const char *
  7267. Material_GetShaderParameter11 (Urho3D::Material *_target, const char * name)
  7268. {
  7269. return stringdup(_target->GetShaderParameter (Urho3D::String(name)).GetString().CString());
  7270. }
  7271. DllExport bool
  7272. Material_GetShaderParameter12 (Urho3D::Material *_target, const char * name)
  7273. {
  7274. return (_target->GetShaderParameter (Urho3D::String(name)).GetBool());
  7275. }
  7276. // Urho3D::Variant overloads end.
  7277. DllExport Urho3D::ValueAnimation *
  7278. Material_GetShaderParameterAnimation (Urho3D::Material *_target, const char * name)
  7279. {
  7280. return _target->GetShaderParameterAnimation (Urho3D::String(name));
  7281. }
  7282. DllExport enum Urho3D::WrapMode
  7283. Material_GetShaderParameterAnimationWrapMode (Urho3D::Material *_target, const char * name)
  7284. {
  7285. return _target->GetShaderParameterAnimationWrapMode (Urho3D::String(name));
  7286. }
  7287. DllExport float
  7288. Material_GetShaderParameterAnimationSpeed (Urho3D::Material *_target, const char * name)
  7289. {
  7290. return _target->GetShaderParameterAnimationSpeed (Urho3D::String(name));
  7291. }
  7292. DllExport enum Urho3D::CullMode
  7293. Material_GetCullMode (Urho3D::Material *_target)
  7294. {
  7295. return _target->GetCullMode ();
  7296. }
  7297. DllExport enum Urho3D::CullMode
  7298. Material_GetShadowCullMode (Urho3D::Material *_target)
  7299. {
  7300. return _target->GetShadowCullMode ();
  7301. }
  7302. DllExport enum Urho3D::FillMode
  7303. Material_GetFillMode (Urho3D::Material *_target)
  7304. {
  7305. return _target->GetFillMode ();
  7306. }
  7307. DllExport const struct Urho3D::BiasParameters &
  7308. Material_GetDepthBias (Urho3D::Material *_target)
  7309. {
  7310. return _target->GetDepthBias ();
  7311. }
  7312. DllExport int
  7313. Material_GetAlphaToCoverage (Urho3D::Material *_target)
  7314. {
  7315. return _target->GetAlphaToCoverage ();
  7316. }
  7317. DllExport int
  7318. Material_GetLineAntiAlias (Urho3D::Material *_target)
  7319. {
  7320. return _target->GetLineAntiAlias ();
  7321. }
  7322. DllExport unsigned char
  7323. Material_GetRenderOrder (Urho3D::Material *_target)
  7324. {
  7325. return _target->GetRenderOrder ();
  7326. }
  7327. DllExport unsigned int
  7328. Material_GetAuxViewFrameNumber (Urho3D::Material *_target)
  7329. {
  7330. return _target->GetAuxViewFrameNumber ();
  7331. }
  7332. DllExport int
  7333. Material_GetOcclusion (Urho3D::Material *_target)
  7334. {
  7335. return _target->GetOcclusion ();
  7336. }
  7337. DllExport int
  7338. Material_GetSpecular (Urho3D::Material *_target)
  7339. {
  7340. return _target->GetSpecular ();
  7341. }
  7342. DllExport Urho3D::Scene *
  7343. Material_GetScene (Urho3D::Material *_target)
  7344. {
  7345. return _target->GetScene ();
  7346. }
  7347. DllExport unsigned int
  7348. Material_GetShaderParameterHash (Urho3D::Material *_target)
  7349. {
  7350. return _target->GetShaderParameterHash ();
  7351. }
  7352. DllExport const char *
  7353. Material_GetTextureUnitName (enum Urho3D::TextureUnit unit)
  7354. {
  7355. return stringdup((Material::GetTextureUnitName (unit)).CString ());
  7356. }
  7357. DllExport Urho3D::Variant
  7358. Material_ParseShaderParameterValue (const char * value)
  7359. {
  7360. return Material::ParseShaderParameterValue (Urho3D::String(value));
  7361. }
  7362. DllExport int
  7363. BillboardSet_GetType (Urho3D::BillboardSet *_target)
  7364. {
  7365. return (_target->GetType ()).Value ();
  7366. }
  7367. DllExport const char *
  7368. BillboardSet_GetTypeName (Urho3D::BillboardSet *_target)
  7369. {
  7370. return stringdup((_target->GetTypeName ()).CString ());
  7371. }
  7372. DllExport int
  7373. BillboardSet_GetTypeStatic ()
  7374. {
  7375. return (BillboardSet::GetTypeStatic ()).Value ();
  7376. }
  7377. DllExport const char *
  7378. BillboardSet_GetTypeNameStatic ()
  7379. {
  7380. return stringdup((BillboardSet::GetTypeNameStatic ()).CString ());
  7381. }
  7382. DllExport void *
  7383. BillboardSet_BillboardSet (Urho3D::Context * context)
  7384. {
  7385. return WeakPtr<BillboardSet>(new BillboardSet(context));
  7386. }
  7387. DllExport void
  7388. BillboardSet_RegisterObject (Urho3D::Context * context)
  7389. {
  7390. BillboardSet::RegisterObject (context);
  7391. }
  7392. DllExport enum Urho3D::UpdateGeometryType
  7393. BillboardSet_GetUpdateGeometryType (Urho3D::BillboardSet *_target)
  7394. {
  7395. return _target->GetUpdateGeometryType ();
  7396. }
  7397. DllExport void
  7398. BillboardSet_SetMaterial (Urho3D::BillboardSet *_target, Urho3D::Material * material)
  7399. {
  7400. _target->SetMaterial (material);
  7401. }
  7402. DllExport void
  7403. BillboardSet_SetNumBillboards (Urho3D::BillboardSet *_target, unsigned int num)
  7404. {
  7405. _target->SetNumBillboards (num);
  7406. }
  7407. DllExport void
  7408. BillboardSet_SetRelative (Urho3D::BillboardSet *_target, bool enable)
  7409. {
  7410. _target->SetRelative (enable);
  7411. }
  7412. DllExport void
  7413. BillboardSet_SetScaled (Urho3D::BillboardSet *_target, bool enable)
  7414. {
  7415. _target->SetScaled (enable);
  7416. }
  7417. DllExport void
  7418. BillboardSet_SetSorted (Urho3D::BillboardSet *_target, bool enable)
  7419. {
  7420. _target->SetSorted (enable);
  7421. }
  7422. DllExport void
  7423. BillboardSet_SetFixedScreenSize (Urho3D::BillboardSet *_target, bool enable)
  7424. {
  7425. _target->SetFixedScreenSize (enable);
  7426. }
  7427. DllExport void
  7428. BillboardSet_SetFaceCameraMode (Urho3D::BillboardSet *_target, enum Urho3D::FaceCameraMode mode)
  7429. {
  7430. _target->SetFaceCameraMode (mode);
  7431. }
  7432. DllExport void
  7433. BillboardSet_SetMinAngle (Urho3D::BillboardSet *_target, float angle)
  7434. {
  7435. _target->SetMinAngle (angle);
  7436. }
  7437. DllExport void
  7438. BillboardSet_SetAnimationLodBias (Urho3D::BillboardSet *_target, float bias)
  7439. {
  7440. _target->SetAnimationLodBias (bias);
  7441. }
  7442. DllExport void
  7443. BillboardSet_Commit (Urho3D::BillboardSet *_target)
  7444. {
  7445. _target->Commit ();
  7446. }
  7447. DllExport Urho3D::Material *
  7448. BillboardSet_GetMaterial (Urho3D::BillboardSet *_target)
  7449. {
  7450. return _target->GetMaterial ();
  7451. }
  7452. DllExport unsigned int
  7453. BillboardSet_GetNumBillboards (Urho3D::BillboardSet *_target)
  7454. {
  7455. return _target->GetNumBillboards ();
  7456. }
  7457. DllExport Urho3D::Billboard *
  7458. BillboardSet_GetBillboard (Urho3D::BillboardSet *_target, unsigned int index)
  7459. {
  7460. return _target->GetBillboard (index);
  7461. }
  7462. DllExport int
  7463. BillboardSet_IsRelative (Urho3D::BillboardSet *_target)
  7464. {
  7465. return _target->IsRelative ();
  7466. }
  7467. DllExport int
  7468. BillboardSet_IsScaled (Urho3D::BillboardSet *_target)
  7469. {
  7470. return _target->IsScaled ();
  7471. }
  7472. DllExport int
  7473. BillboardSet_IsSorted (Urho3D::BillboardSet *_target)
  7474. {
  7475. return _target->IsSorted ();
  7476. }
  7477. DllExport int
  7478. BillboardSet_IsFixedScreenSize (Urho3D::BillboardSet *_target)
  7479. {
  7480. return _target->IsFixedScreenSize ();
  7481. }
  7482. DllExport enum Urho3D::FaceCameraMode
  7483. BillboardSet_GetFaceCameraMode (Urho3D::BillboardSet *_target)
  7484. {
  7485. return _target->GetFaceCameraMode ();
  7486. }
  7487. DllExport float
  7488. BillboardSet_GetMinAngle (Urho3D::BillboardSet *_target)
  7489. {
  7490. return _target->GetMinAngle ();
  7491. }
  7492. DllExport float
  7493. BillboardSet_GetAnimationLodBias (Urho3D::BillboardSet *_target)
  7494. {
  7495. return _target->GetAnimationLodBias ();
  7496. }
  7497. DllExport Urho3D::ResourceRef
  7498. BillboardSet_GetMaterialAttr (Urho3D::BillboardSet *_target)
  7499. {
  7500. return _target->GetMaterialAttr ();
  7501. }
  7502. DllExport int
  7503. Camera_GetType (Urho3D::Camera *_target)
  7504. {
  7505. return (_target->GetType ()).Value ();
  7506. }
  7507. DllExport const char *
  7508. Camera_GetTypeName (Urho3D::Camera *_target)
  7509. {
  7510. return stringdup((_target->GetTypeName ()).CString ());
  7511. }
  7512. DllExport int
  7513. Camera_GetTypeStatic ()
  7514. {
  7515. return (Camera::GetTypeStatic ()).Value ();
  7516. }
  7517. DllExport const char *
  7518. Camera_GetTypeNameStatic ()
  7519. {
  7520. return stringdup((Camera::GetTypeNameStatic ()).CString ());
  7521. }
  7522. DllExport void *
  7523. Camera_Camera (Urho3D::Context * context)
  7524. {
  7525. return WeakPtr<Camera>(new Camera(context));
  7526. }
  7527. DllExport void
  7528. Camera_RegisterObject (Urho3D::Context * context)
  7529. {
  7530. Camera::RegisterObject (context);
  7531. }
  7532. DllExport void
  7533. Camera_DrawDebugGeometry (Urho3D::Camera *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  7534. {
  7535. _target->DrawDebugGeometry (debug, depthTest);
  7536. }
  7537. DllExport void
  7538. Camera_SetNearClip (Urho3D::Camera *_target, float nearClip)
  7539. {
  7540. _target->SetNearClip (nearClip);
  7541. }
  7542. DllExport void
  7543. Camera_SetFarClip (Urho3D::Camera *_target, float farClip)
  7544. {
  7545. _target->SetFarClip (farClip);
  7546. }
  7547. DllExport void
  7548. Camera_SetFov (Urho3D::Camera *_target, float fov)
  7549. {
  7550. _target->SetFov (fov);
  7551. }
  7552. DllExport void
  7553. Camera_SetSkew (Urho3D::Camera *_target, float skew)
  7554. {
  7555. _target->SetSkew (skew);
  7556. }
  7557. DllExport void
  7558. Camera_SetOrthoSize (Urho3D::Camera *_target, float orthoSize)
  7559. {
  7560. _target->SetOrthoSize (orthoSize);
  7561. }
  7562. DllExport void
  7563. Camera_SetOrthoSize0 (Urho3D::Camera *_target, const class Urho3D::Vector2 & orthoSize)
  7564. {
  7565. _target->SetOrthoSize (orthoSize);
  7566. }
  7567. DllExport void
  7568. Camera_SetAspectRatio (Urho3D::Camera *_target, float aspectRatio)
  7569. {
  7570. _target->SetAspectRatio (aspectRatio);
  7571. }
  7572. DllExport void
  7573. Camera_SetFillMode (Urho3D::Camera *_target, enum Urho3D::FillMode mode)
  7574. {
  7575. _target->SetFillMode (mode);
  7576. }
  7577. DllExport void
  7578. Camera_SetZoom (Urho3D::Camera *_target, float zoom)
  7579. {
  7580. _target->SetZoom (zoom);
  7581. }
  7582. DllExport void
  7583. Camera_SetLodBias (Urho3D::Camera *_target, float bias)
  7584. {
  7585. _target->SetLodBias (bias);
  7586. }
  7587. DllExport void
  7588. Camera_SetViewMask (Urho3D::Camera *_target, unsigned int mask)
  7589. {
  7590. _target->SetViewMask (mask);
  7591. }
  7592. DllExport void
  7593. Camera_SetViewOverrideFlags (Urho3D::Camera *_target, unsigned int flags)
  7594. {
  7595. _target->SetViewOverrideFlags (flags);
  7596. }
  7597. DllExport void
  7598. Camera_SetOrthographic (Urho3D::Camera *_target, bool enable)
  7599. {
  7600. _target->SetOrthographic (enable);
  7601. }
  7602. DllExport void
  7603. Camera_SetAutoAspectRatio (Urho3D::Camera *_target, bool enable)
  7604. {
  7605. _target->SetAutoAspectRatio (enable);
  7606. }
  7607. DllExport void
  7608. Camera_SetProjectionOffset (Urho3D::Camera *_target, const class Urho3D::Vector2 & offset)
  7609. {
  7610. _target->SetProjectionOffset (offset);
  7611. }
  7612. DllExport void
  7613. Camera_SetUseReflection (Urho3D::Camera *_target, bool enable)
  7614. {
  7615. _target->SetUseReflection (enable);
  7616. }
  7617. DllExport void
  7618. Camera_SetReflectionPlane (Urho3D::Camera *_target, const class Urho3D::Plane & plane)
  7619. {
  7620. _target->SetReflectionPlane (plane);
  7621. }
  7622. DllExport void
  7623. Camera_SetUseClipping (Urho3D::Camera *_target, bool enable)
  7624. {
  7625. _target->SetUseClipping (enable);
  7626. }
  7627. DllExport void
  7628. Camera_SetClipPlane (Urho3D::Camera *_target, const class Urho3D::Plane & plane)
  7629. {
  7630. _target->SetClipPlane (plane);
  7631. }
  7632. DllExport void
  7633. Camera_SetFlipVertical (Urho3D::Camera *_target, bool enable)
  7634. {
  7635. _target->SetFlipVertical (enable);
  7636. }
  7637. DllExport void
  7638. Camera_SetProjection (Urho3D::Camera *_target, const class Urho3D::Matrix4 & projection)
  7639. {
  7640. _target->SetProjection (projection);
  7641. }
  7642. DllExport float
  7643. Camera_GetFarClip (Urho3D::Camera *_target)
  7644. {
  7645. return _target->GetFarClip ();
  7646. }
  7647. DllExport float
  7648. Camera_GetNearClip (Urho3D::Camera *_target)
  7649. {
  7650. return _target->GetNearClip ();
  7651. }
  7652. DllExport float
  7653. Camera_GetSkew (Urho3D::Camera *_target)
  7654. {
  7655. return _target->GetSkew ();
  7656. }
  7657. DllExport float
  7658. Camera_GetFov (Urho3D::Camera *_target)
  7659. {
  7660. return _target->GetFov ();
  7661. }
  7662. DllExport float
  7663. Camera_GetOrthoSize (Urho3D::Camera *_target)
  7664. {
  7665. return _target->GetOrthoSize ();
  7666. }
  7667. DllExport float
  7668. Camera_GetAspectRatio (Urho3D::Camera *_target)
  7669. {
  7670. return _target->GetAspectRatio ();
  7671. }
  7672. DllExport float
  7673. Camera_GetZoom (Urho3D::Camera *_target)
  7674. {
  7675. return _target->GetZoom ();
  7676. }
  7677. DllExport float
  7678. Camera_GetLodBias (Urho3D::Camera *_target)
  7679. {
  7680. return _target->GetLodBias ();
  7681. }
  7682. DllExport unsigned int
  7683. Camera_GetViewMask (Urho3D::Camera *_target)
  7684. {
  7685. return _target->GetViewMask ();
  7686. }
  7687. DllExport unsigned int
  7688. Camera_GetViewOverrideFlags (Urho3D::Camera *_target)
  7689. {
  7690. return _target->GetViewOverrideFlags ();
  7691. }
  7692. DllExport enum Urho3D::FillMode
  7693. Camera_GetFillMode (Urho3D::Camera *_target)
  7694. {
  7695. return _target->GetFillMode ();
  7696. }
  7697. DllExport int
  7698. Camera_IsOrthographic (Urho3D::Camera *_target)
  7699. {
  7700. return _target->IsOrthographic ();
  7701. }
  7702. DllExport int
  7703. Camera_GetAutoAspectRatio (Urho3D::Camera *_target)
  7704. {
  7705. return _target->GetAutoAspectRatio ();
  7706. }
  7707. DllExport const class Urho3D::Frustum &
  7708. Camera_GetFrustum (Urho3D::Camera *_target)
  7709. {
  7710. return _target->GetFrustum ();
  7711. }
  7712. DllExport Interop::Matrix4
  7713. Camera_GetProjection (Urho3D::Camera *_target)
  7714. {
  7715. return *((Interop::Matrix4 *) &(_target->GetProjection ()));
  7716. }
  7717. DllExport Interop::Matrix4
  7718. Camera_GetGPUProjection (Urho3D::Camera *_target)
  7719. {
  7720. return *((Interop::Matrix4 *) &(_target->GetGPUProjection ()));
  7721. }
  7722. DllExport Interop::Matrix3x4
  7723. Camera_GetView (Urho3D::Camera *_target)
  7724. {
  7725. return *((Interop::Matrix3x4 *) &(_target->GetView ()));
  7726. }
  7727. DllExport float
  7728. Camera_GetHalfViewSize (Urho3D::Camera *_target)
  7729. {
  7730. return _target->GetHalfViewSize ();
  7731. }
  7732. DllExport Urho3D::Frustum *
  7733. Camera_GetSplitFrustum (Urho3D::Camera *_target, float nearClip, float farClip)
  7734. {
  7735. return new Urho3D::Frustum (_target->GetSplitFrustum (nearClip, farClip));
  7736. }
  7737. DllExport Urho3D::Frustum *
  7738. Camera_GetViewSpaceFrustum (Urho3D::Camera *_target)
  7739. {
  7740. return new Urho3D::Frustum (_target->GetViewSpaceFrustum ());
  7741. }
  7742. DllExport Urho3D::Frustum *
  7743. Camera_GetViewSpaceSplitFrustum (Urho3D::Camera *_target, float nearClip, float farClip)
  7744. {
  7745. return new Urho3D::Frustum (_target->GetViewSpaceSplitFrustum (nearClip, farClip));
  7746. }
  7747. DllExport Urho3D::Ray
  7748. Camera_GetScreenRay (Urho3D::Camera *_target, float x, float y)
  7749. {
  7750. return _target->GetScreenRay (x, y);
  7751. }
  7752. DllExport Interop::Vector2
  7753. Camera_WorldToScreenPoint (Urho3D::Camera *_target, const class Urho3D::Vector3 & worldPos)
  7754. {
  7755. return *((Interop::Vector2 *) &(_target->WorldToScreenPoint (worldPos)));
  7756. }
  7757. DllExport Interop::Vector3
  7758. Camera_ScreenToWorldPoint (Urho3D::Camera *_target, const class Urho3D::Vector3 & screenPos)
  7759. {
  7760. return *((Interop::Vector3 *) &(_target->ScreenToWorldPoint (screenPos)));
  7761. }
  7762. DllExport Interop::Vector2
  7763. Camera_GetProjectionOffset (Urho3D::Camera *_target)
  7764. {
  7765. return *((Interop::Vector2 *) &(_target->GetProjectionOffset ()));
  7766. }
  7767. DllExport int
  7768. Camera_GetUseReflection (Urho3D::Camera *_target)
  7769. {
  7770. return _target->GetUseReflection ();
  7771. }
  7772. DllExport Interop::Plane
  7773. Camera_GetReflectionPlane (Urho3D::Camera *_target)
  7774. {
  7775. return *((Interop::Plane *) &(_target->GetReflectionPlane ()));
  7776. }
  7777. DllExport int
  7778. Camera_GetUseClipping (Urho3D::Camera *_target)
  7779. {
  7780. return _target->GetUseClipping ();
  7781. }
  7782. DllExport Interop::Plane
  7783. Camera_GetClipPlane (Urho3D::Camera *_target)
  7784. {
  7785. return *((Interop::Plane *) &(_target->GetClipPlane ()));
  7786. }
  7787. DllExport int
  7788. Camera_GetFlipVertical (Urho3D::Camera *_target)
  7789. {
  7790. return _target->GetFlipVertical ();
  7791. }
  7792. DllExport int
  7793. Camera_GetReverseCulling (Urho3D::Camera *_target)
  7794. {
  7795. return _target->GetReverseCulling ();
  7796. }
  7797. DllExport float
  7798. Camera_GetDistance (Urho3D::Camera *_target, const class Urho3D::Vector3 & worldPos)
  7799. {
  7800. return _target->GetDistance (worldPos);
  7801. }
  7802. DllExport float
  7803. Camera_GetDistanceSquared (Urho3D::Camera *_target, const class Urho3D::Vector3 & worldPos)
  7804. {
  7805. return _target->GetDistanceSquared (worldPos);
  7806. }
  7807. DllExport float
  7808. Camera_GetLodDistance (Urho3D::Camera *_target, float distance, float scale, float bias)
  7809. {
  7810. return _target->GetLodDistance (distance, scale, bias);
  7811. }
  7812. DllExport Interop::Quaternion
  7813. Camera_GetFaceCameraRotation (Urho3D::Camera *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, enum Urho3D::FaceCameraMode mode, float minAngle)
  7814. {
  7815. return *((Interop::Quaternion *) &(_target->GetFaceCameraRotation (position, rotation, mode, minAngle)));
  7816. }
  7817. DllExport Interop::Matrix3x4
  7818. Camera_GetEffectiveWorldTransform (Urho3D::Camera *_target)
  7819. {
  7820. return *((Interop::Matrix3x4 *) &(_target->GetEffectiveWorldTransform ()));
  7821. }
  7822. DllExport int
  7823. Camera_IsProjectionValid (Urho3D::Camera *_target)
  7824. {
  7825. return _target->IsProjectionValid ();
  7826. }
  7827. DllExport void
  7828. Camera_SetAspectRatioInternal (Urho3D::Camera *_target, float aspectRatio)
  7829. {
  7830. _target->SetAspectRatioInternal (aspectRatio);
  7831. }
  7832. DllExport void
  7833. Camera_SetOrthoSizeAttr (Urho3D::Camera *_target, float orthoSize)
  7834. {
  7835. _target->SetOrthoSizeAttr (orthoSize);
  7836. }
  7837. DllExport void
  7838. Camera_SetReflectionPlaneAttr (Urho3D::Camera *_target, const class Urho3D::Vector4 & value)
  7839. {
  7840. _target->SetReflectionPlaneAttr (value);
  7841. }
  7842. DllExport Interop::Vector4
  7843. Camera_GetReflectionPlaneAttr (Urho3D::Camera *_target)
  7844. {
  7845. return *((Interop::Vector4 *) &(_target->GetReflectionPlaneAttr ()));
  7846. }
  7847. DllExport void
  7848. Camera_SetClipPlaneAttr (Urho3D::Camera *_target, const class Urho3D::Vector4 & value)
  7849. {
  7850. _target->SetClipPlaneAttr (value);
  7851. }
  7852. DllExport Interop::Vector4
  7853. Camera_GetClipPlaneAttr (Urho3D::Camera *_target)
  7854. {
  7855. return *((Interop::Vector4 *) &(_target->GetClipPlaneAttr ()));
  7856. }
  7857. DllExport GPUObject*
  7858. ConstantBuffer_CastToGPUObject(Urho3D::ConstantBuffer *_target)
  7859. {
  7860. return static_cast<GPUObject*>(_target);
  7861. }
  7862. DllExport int
  7863. ConstantBuffer_GetType (Urho3D::ConstantBuffer *_target)
  7864. {
  7865. return (_target->GetType ()).Value ();
  7866. }
  7867. DllExport const char *
  7868. ConstantBuffer_GetTypeName (Urho3D::ConstantBuffer *_target)
  7869. {
  7870. return stringdup((_target->GetTypeName ()).CString ());
  7871. }
  7872. DllExport int
  7873. ConstantBuffer_GetTypeStatic ()
  7874. {
  7875. return (ConstantBuffer::GetTypeStatic ()).Value ();
  7876. }
  7877. DllExport const char *
  7878. ConstantBuffer_GetTypeNameStatic ()
  7879. {
  7880. return stringdup((ConstantBuffer::GetTypeNameStatic ()).CString ());
  7881. }
  7882. DllExport void *
  7883. ConstantBuffer_ConstantBuffer (Urho3D::Context * context)
  7884. {
  7885. return WeakPtr<ConstantBuffer>(new ConstantBuffer(context));
  7886. }
  7887. DllExport void
  7888. ConstantBuffer_Release (Urho3D::ConstantBuffer *_target)
  7889. {
  7890. _target->Release ();
  7891. }
  7892. DllExport int
  7893. ConstantBuffer_SetSize (Urho3D::ConstantBuffer *_target, unsigned int size)
  7894. {
  7895. return _target->SetSize (size);
  7896. }
  7897. DllExport void
  7898. ConstantBuffer_SetParameter (Urho3D::ConstantBuffer *_target, unsigned int offset, unsigned int size, const void * data)
  7899. {
  7900. _target->SetParameter (offset, size, data);
  7901. }
  7902. DllExport void
  7903. ConstantBuffer_SetVector3ArrayParameter (Urho3D::ConstantBuffer *_target, unsigned int offset, unsigned int rows, const void * data)
  7904. {
  7905. _target->SetVector3ArrayParameter (offset, rows, data);
  7906. }
  7907. DllExport void
  7908. ConstantBuffer_Apply (Urho3D::ConstantBuffer *_target)
  7909. {
  7910. _target->Apply ();
  7911. }
  7912. DllExport unsigned int
  7913. ConstantBuffer_GetSize (Urho3D::ConstantBuffer *_target)
  7914. {
  7915. return _target->GetSize ();
  7916. }
  7917. DllExport int
  7918. ConstantBuffer_IsDirty (Urho3D::ConstantBuffer *_target)
  7919. {
  7920. return _target->IsDirty ();
  7921. }
  7922. DllExport int
  7923. CustomGeometry_GetType (Urho3D::CustomGeometry *_target)
  7924. {
  7925. return (_target->GetType ()).Value ();
  7926. }
  7927. DllExport const char *
  7928. CustomGeometry_GetTypeName (Urho3D::CustomGeometry *_target)
  7929. {
  7930. return stringdup((_target->GetTypeName ()).CString ());
  7931. }
  7932. DllExport int
  7933. CustomGeometry_GetTypeStatic ()
  7934. {
  7935. return (CustomGeometry::GetTypeStatic ()).Value ();
  7936. }
  7937. DllExport const char *
  7938. CustomGeometry_GetTypeNameStatic ()
  7939. {
  7940. return stringdup((CustomGeometry::GetTypeNameStatic ()).CString ());
  7941. }
  7942. DllExport void *
  7943. CustomGeometry_CustomGeometry (Urho3D::Context * context)
  7944. {
  7945. return WeakPtr<CustomGeometry>(new CustomGeometry(context));
  7946. }
  7947. DllExport void
  7948. CustomGeometry_RegisterObject (Urho3D::Context * context)
  7949. {
  7950. CustomGeometry::RegisterObject (context);
  7951. }
  7952. DllExport Urho3D::Geometry *
  7953. CustomGeometry_GetLodGeometry (Urho3D::CustomGeometry *_target, unsigned int batchIndex, unsigned int level)
  7954. {
  7955. return _target->GetLodGeometry (batchIndex, level);
  7956. }
  7957. DllExport unsigned int
  7958. CustomGeometry_GetNumOccluderTriangles (Urho3D::CustomGeometry *_target)
  7959. {
  7960. return _target->GetNumOccluderTriangles ();
  7961. }
  7962. DllExport int
  7963. CustomGeometry_DrawOcclusion (Urho3D::CustomGeometry *_target, Urho3D::OcclusionBuffer * buffer)
  7964. {
  7965. return _target->DrawOcclusion (buffer);
  7966. }
  7967. DllExport void
  7968. CustomGeometry_Clear (Urho3D::CustomGeometry *_target)
  7969. {
  7970. _target->Clear ();
  7971. }
  7972. DllExport void
  7973. CustomGeometry_SetNumGeometries (Urho3D::CustomGeometry *_target, unsigned int num)
  7974. {
  7975. _target->SetNumGeometries (num);
  7976. }
  7977. DllExport void
  7978. CustomGeometry_SetDynamic (Urho3D::CustomGeometry *_target, bool enable)
  7979. {
  7980. _target->SetDynamic (enable);
  7981. }
  7982. DllExport void
  7983. CustomGeometry_BeginGeometry (Urho3D::CustomGeometry *_target, unsigned int index, enum Urho3D::PrimitiveType type)
  7984. {
  7985. _target->BeginGeometry (index, type);
  7986. }
  7987. DllExport void
  7988. CustomGeometry_DefineVertex (Urho3D::CustomGeometry *_target, const class Urho3D::Vector3 & position)
  7989. {
  7990. _target->DefineVertex (position);
  7991. }
  7992. DllExport void
  7993. CustomGeometry_DefineNormal (Urho3D::CustomGeometry *_target, const class Urho3D::Vector3 & normal)
  7994. {
  7995. _target->DefineNormal (normal);
  7996. }
  7997. DllExport void
  7998. CustomGeometry_DefineColor (Urho3D::CustomGeometry *_target, const class Urho3D::Color & color)
  7999. {
  8000. _target->DefineColor (color);
  8001. }
  8002. DllExport void
  8003. CustomGeometry_DefineTexCoord (Urho3D::CustomGeometry *_target, const class Urho3D::Vector2 & texCoord)
  8004. {
  8005. _target->DefineTexCoord (texCoord);
  8006. }
  8007. DllExport void
  8008. CustomGeometry_DefineTangent (Urho3D::CustomGeometry *_target, const class Urho3D::Vector4 & tangent)
  8009. {
  8010. _target->DefineTangent (tangent);
  8011. }
  8012. DllExport void
  8013. CustomGeometry_DefineGeometry (Urho3D::CustomGeometry *_target, unsigned int index, enum Urho3D::PrimitiveType type, unsigned int numVertices, bool hasNormals, bool hasColors, bool hasTexCoords, bool hasTangents)
  8014. {
  8015. _target->DefineGeometry (index, type, numVertices, hasNormals, hasColors, hasTexCoords, hasTangents);
  8016. }
  8017. DllExport void
  8018. CustomGeometry_Commit (Urho3D::CustomGeometry *_target)
  8019. {
  8020. _target->Commit ();
  8021. }
  8022. DllExport void
  8023. CustomGeometry_SetMaterial (Urho3D::CustomGeometry *_target, Urho3D::Material * material)
  8024. {
  8025. _target->SetMaterial (material);
  8026. }
  8027. DllExport int
  8028. CustomGeometry_SetMaterial0 (Urho3D::CustomGeometry *_target, unsigned int index, Urho3D::Material * material)
  8029. {
  8030. return _target->SetMaterial (index, material);
  8031. }
  8032. DllExport unsigned int
  8033. CustomGeometry_GetNumGeometries (Urho3D::CustomGeometry *_target)
  8034. {
  8035. return _target->GetNumGeometries ();
  8036. }
  8037. DllExport unsigned int
  8038. CustomGeometry_GetNumVertices (Urho3D::CustomGeometry *_target, unsigned int index)
  8039. {
  8040. return _target->GetNumVertices (index);
  8041. }
  8042. DllExport int
  8043. CustomGeometry_IsDynamic (Urho3D::CustomGeometry *_target)
  8044. {
  8045. return _target->IsDynamic ();
  8046. }
  8047. DllExport Urho3D::Material *
  8048. CustomGeometry_GetMaterial (Urho3D::CustomGeometry *_target, unsigned int index)
  8049. {
  8050. return _target->GetMaterial (index);
  8051. }
  8052. DllExport Urho3D::CustomGeometryVertex *
  8053. CustomGeometry_GetVertex (Urho3D::CustomGeometry *_target, unsigned int geometryIndex, unsigned int vertexNum)
  8054. {
  8055. return _target->GetVertex (geometryIndex, vertexNum);
  8056. }
  8057. DllExport int
  8058. DebugRenderer_GetType (Urho3D::DebugRenderer *_target)
  8059. {
  8060. return (_target->GetType ()).Value ();
  8061. }
  8062. DllExport const char *
  8063. DebugRenderer_GetTypeName (Urho3D::DebugRenderer *_target)
  8064. {
  8065. return stringdup((_target->GetTypeName ()).CString ());
  8066. }
  8067. DllExport int
  8068. DebugRenderer_GetTypeStatic ()
  8069. {
  8070. return (DebugRenderer::GetTypeStatic ()).Value ();
  8071. }
  8072. DllExport const char *
  8073. DebugRenderer_GetTypeNameStatic ()
  8074. {
  8075. return stringdup((DebugRenderer::GetTypeNameStatic ()).CString ());
  8076. }
  8077. DllExport void *
  8078. DebugRenderer_DebugRenderer (Urho3D::Context * context)
  8079. {
  8080. return WeakPtr<DebugRenderer>(new DebugRenderer(context));
  8081. }
  8082. DllExport void
  8083. DebugRenderer_RegisterObject (Urho3D::Context * context)
  8084. {
  8085. DebugRenderer::RegisterObject (context);
  8086. }
  8087. DllExport void
  8088. DebugRenderer_SetLineAntiAlias (Urho3D::DebugRenderer *_target, bool enable)
  8089. {
  8090. _target->SetLineAntiAlias (enable);
  8091. }
  8092. DllExport void
  8093. DebugRenderer_SetView (Urho3D::DebugRenderer *_target, Urho3D::Camera * camera)
  8094. {
  8095. _target->SetView (camera);
  8096. }
  8097. DllExport void
  8098. DebugRenderer_AddLine (Urho3D::DebugRenderer *_target, const class Urho3D::Vector3 & start, const class Urho3D::Vector3 & end, const class Urho3D::Color & color, bool depthTest)
  8099. {
  8100. _target->AddLine (start, end, color, depthTest);
  8101. }
  8102. DllExport void
  8103. DebugRenderer_AddLine0 (Urho3D::DebugRenderer *_target, const class Urho3D::Vector3 & start, const class Urho3D::Vector3 & end, unsigned int color, bool depthTest)
  8104. {
  8105. _target->AddLine (start, end, color, depthTest);
  8106. }
  8107. DllExport void
  8108. 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)
  8109. {
  8110. _target->AddTriangle (v1, v2, v3, color, depthTest);
  8111. }
  8112. DllExport void
  8113. 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)
  8114. {
  8115. _target->AddTriangle (v1, v2, v3, color, depthTest);
  8116. }
  8117. DllExport void
  8118. 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)
  8119. {
  8120. _target->AddPolygon (v1, v2, v3, v4, color, depthTest);
  8121. }
  8122. DllExport void
  8123. 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)
  8124. {
  8125. _target->AddPolygon (v1, v2, v3, v4, color, depthTest);
  8126. }
  8127. DllExport void
  8128. DebugRenderer_AddNode (Urho3D::DebugRenderer *_target, Urho3D::Node * node, float scale, bool depthTest)
  8129. {
  8130. _target->AddNode (node, scale, depthTest);
  8131. }
  8132. DllExport void
  8133. DebugRenderer_AddBoundingBox (Urho3D::DebugRenderer *_target, const class Urho3D::BoundingBox & box, const class Urho3D::Color & color, bool depthTest, bool solid)
  8134. {
  8135. _target->AddBoundingBox (box, color, depthTest, solid);
  8136. }
  8137. DllExport void
  8138. DebugRenderer_AddBoundingBox3 (Urho3D::DebugRenderer *_target, const class Urho3D::BoundingBox & box, const class Urho3D::Matrix3x4 & transform, const class Urho3D::Color & color, bool depthTest, bool solid)
  8139. {
  8140. _target->AddBoundingBox (box, transform, color, depthTest, solid);
  8141. }
  8142. DllExport void
  8143. DebugRenderer_AddFrustum (Urho3D::DebugRenderer *_target, const class Urho3D::Frustum & frustum, const class Urho3D::Color & color, bool depthTest)
  8144. {
  8145. _target->AddFrustum (frustum, color, depthTest);
  8146. }
  8147. DllExport void
  8148. DebugRenderer_AddPolyhedron (Urho3D::DebugRenderer *_target, const class Urho3D::Polyhedron & poly, const class Urho3D::Color & color, bool depthTest)
  8149. {
  8150. _target->AddPolyhedron (poly, color, depthTest);
  8151. }
  8152. DllExport void
  8153. DebugRenderer_AddCylinder (Urho3D::DebugRenderer *_target, const class Urho3D::Vector3 & position, float radius, float height, const class Urho3D::Color & color, bool depthTest)
  8154. {
  8155. _target->AddCylinder (position, radius, height, color, depthTest);
  8156. }
  8157. DllExport void
  8158. 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)
  8159. {
  8160. _target->AddTriangleMesh (vertexData, vertexSize, indexData, indexSize, indexStart, indexCount, transform, color, depthTest);
  8161. }
  8162. DllExport void
  8163. 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)
  8164. {
  8165. _target->AddCircle (center, normal, radius, color, steps, depthTest);
  8166. }
  8167. DllExport void
  8168. DebugRenderer_AddCross (Urho3D::DebugRenderer *_target, const class Urho3D::Vector3 & center, float size, const class Urho3D::Color & color, bool depthTest)
  8169. {
  8170. _target->AddCross (center, size, color, depthTest);
  8171. }
  8172. DllExport void
  8173. DebugRenderer_AddQuad (Urho3D::DebugRenderer *_target, const class Urho3D::Vector3 & center, float width, float height, const class Urho3D::Color & color, bool depthTest)
  8174. {
  8175. _target->AddQuad (center, width, height, color, depthTest);
  8176. }
  8177. DllExport void
  8178. DebugRenderer_Render (Urho3D::DebugRenderer *_target)
  8179. {
  8180. _target->Render ();
  8181. }
  8182. DllExport int
  8183. DebugRenderer_GetLineAntiAlias (Urho3D::DebugRenderer *_target)
  8184. {
  8185. return _target->GetLineAntiAlias ();
  8186. }
  8187. DllExport Interop::Matrix3x4
  8188. DebugRenderer_GetView (Urho3D::DebugRenderer *_target)
  8189. {
  8190. return *((Interop::Matrix3x4 *) &(_target->GetView ()));
  8191. }
  8192. DllExport Interop::Matrix4
  8193. DebugRenderer_GetProjection (Urho3D::DebugRenderer *_target)
  8194. {
  8195. return *((Interop::Matrix4 *) &(_target->GetProjection ()));
  8196. }
  8197. DllExport const class Urho3D::Frustum &
  8198. DebugRenderer_GetFrustum (Urho3D::DebugRenderer *_target)
  8199. {
  8200. return _target->GetFrustum ();
  8201. }
  8202. DllExport int
  8203. DebugRenderer_IsInside (Urho3D::DebugRenderer *_target, const class Urho3D::BoundingBox & box)
  8204. {
  8205. return _target->IsInside (box);
  8206. }
  8207. DllExport int
  8208. DebugRenderer_HasContent (Urho3D::DebugRenderer *_target)
  8209. {
  8210. return _target->HasContent ();
  8211. }
  8212. DllExport int
  8213. DecalSet_GetType (Urho3D::DecalSet *_target)
  8214. {
  8215. return (_target->GetType ()).Value ();
  8216. }
  8217. DllExport const char *
  8218. DecalSet_GetTypeName (Urho3D::DecalSet *_target)
  8219. {
  8220. return stringdup((_target->GetTypeName ()).CString ());
  8221. }
  8222. DllExport int
  8223. DecalSet_GetTypeStatic ()
  8224. {
  8225. return (DecalSet::GetTypeStatic ()).Value ();
  8226. }
  8227. DllExport const char *
  8228. DecalSet_GetTypeNameStatic ()
  8229. {
  8230. return stringdup((DecalSet::GetTypeNameStatic ()).CString ());
  8231. }
  8232. DllExport void *
  8233. DecalSet_DecalSet (Urho3D::Context * context)
  8234. {
  8235. return WeakPtr<DecalSet>(new DecalSet(context));
  8236. }
  8237. DllExport void
  8238. DecalSet_RegisterObject (Urho3D::Context * context)
  8239. {
  8240. DecalSet::RegisterObject (context);
  8241. }
  8242. DllExport void
  8243. DecalSet_ApplyAttributes (Urho3D::DecalSet *_target)
  8244. {
  8245. _target->ApplyAttributes ();
  8246. }
  8247. DllExport void
  8248. DecalSet_OnSetEnabled (Urho3D::DecalSet *_target)
  8249. {
  8250. _target->OnSetEnabled ();
  8251. }
  8252. DllExport enum Urho3D::UpdateGeometryType
  8253. DecalSet_GetUpdateGeometryType (Urho3D::DecalSet *_target)
  8254. {
  8255. return _target->GetUpdateGeometryType ();
  8256. }
  8257. DllExport void
  8258. DecalSet_SetMaterial (Urho3D::DecalSet *_target, Urho3D::Material * material)
  8259. {
  8260. _target->SetMaterial (material);
  8261. }
  8262. DllExport void
  8263. DecalSet_SetMaxVertices (Urho3D::DecalSet *_target, unsigned int num)
  8264. {
  8265. _target->SetMaxVertices (num);
  8266. }
  8267. DllExport void
  8268. DecalSet_SetMaxIndices (Urho3D::DecalSet *_target, unsigned int num)
  8269. {
  8270. _target->SetMaxIndices (num);
  8271. }
  8272. DllExport void
  8273. DecalSet_SetOptimizeBufferSize (Urho3D::DecalSet *_target, bool enable)
  8274. {
  8275. _target->SetOptimizeBufferSize (enable);
  8276. }
  8277. DllExport int
  8278. 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)
  8279. {
  8280. return _target->AddDecal (target, worldPosition, worldRotation, size, aspectRatio, depth, topLeftUV, bottomRightUV, timeToLive, normalCutoff, subGeometry);
  8281. }
  8282. DllExport void
  8283. DecalSet_RemoveDecals (Urho3D::DecalSet *_target, unsigned int num)
  8284. {
  8285. _target->RemoveDecals (num);
  8286. }
  8287. DllExport void
  8288. DecalSet_RemoveAllDecals (Urho3D::DecalSet *_target)
  8289. {
  8290. _target->RemoveAllDecals ();
  8291. }
  8292. DllExport Urho3D::Material *
  8293. DecalSet_GetMaterial (Urho3D::DecalSet *_target)
  8294. {
  8295. return _target->GetMaterial ();
  8296. }
  8297. DllExport unsigned int
  8298. DecalSet_GetNumDecals (Urho3D::DecalSet *_target)
  8299. {
  8300. return _target->GetNumDecals ();
  8301. }
  8302. DllExport unsigned int
  8303. DecalSet_GetNumVertices (Urho3D::DecalSet *_target)
  8304. {
  8305. return _target->GetNumVertices ();
  8306. }
  8307. DllExport unsigned int
  8308. DecalSet_GetNumIndices (Urho3D::DecalSet *_target)
  8309. {
  8310. return _target->GetNumIndices ();
  8311. }
  8312. DllExport unsigned int
  8313. DecalSet_GetMaxVertices (Urho3D::DecalSet *_target)
  8314. {
  8315. return _target->GetMaxVertices ();
  8316. }
  8317. DllExport unsigned int
  8318. DecalSet_GetMaxIndices (Urho3D::DecalSet *_target)
  8319. {
  8320. return _target->GetMaxIndices ();
  8321. }
  8322. DllExport int
  8323. DecalSet_GetOptimizeBufferSize (Urho3D::DecalSet *_target)
  8324. {
  8325. return _target->GetOptimizeBufferSize ();
  8326. }
  8327. DllExport Urho3D::ResourceRef
  8328. DecalSet_GetMaterialAttr (Urho3D::DecalSet *_target)
  8329. {
  8330. return _target->GetMaterialAttr ();
  8331. }
  8332. DllExport int
  8333. Geometry_GetType (Urho3D::Geometry *_target)
  8334. {
  8335. return (_target->GetType ()).Value ();
  8336. }
  8337. DllExport const char *
  8338. Geometry_GetTypeName (Urho3D::Geometry *_target)
  8339. {
  8340. return stringdup((_target->GetTypeName ()).CString ());
  8341. }
  8342. DllExport int
  8343. Geometry_GetTypeStatic ()
  8344. {
  8345. return (Geometry::GetTypeStatic ()).Value ();
  8346. }
  8347. DllExport const char *
  8348. Geometry_GetTypeNameStatic ()
  8349. {
  8350. return stringdup((Geometry::GetTypeNameStatic ()).CString ());
  8351. }
  8352. DllExport void *
  8353. Geometry_Geometry (Urho3D::Context * context)
  8354. {
  8355. return WeakPtr<Geometry>(new Geometry(context));
  8356. }
  8357. DllExport int
  8358. Geometry_SetNumVertexBuffers (Urho3D::Geometry *_target, unsigned int num)
  8359. {
  8360. return _target->SetNumVertexBuffers (num);
  8361. }
  8362. DllExport int
  8363. Geometry_SetVertexBuffer (Urho3D::Geometry *_target, unsigned int index, Urho3D::VertexBuffer * buffer)
  8364. {
  8365. return _target->SetVertexBuffer (index, buffer);
  8366. }
  8367. DllExport void
  8368. Geometry_SetIndexBuffer (Urho3D::Geometry *_target, Urho3D::IndexBuffer * buffer)
  8369. {
  8370. _target->SetIndexBuffer (buffer);
  8371. }
  8372. DllExport int
  8373. Geometry_SetDrawRange (Urho3D::Geometry *_target, enum Urho3D::PrimitiveType type, unsigned int indexStart, unsigned int indexCount, bool getUsedVertexRange)
  8374. {
  8375. return _target->SetDrawRange (type, indexStart, indexCount, getUsedVertexRange);
  8376. }
  8377. DllExport int
  8378. Geometry_SetDrawRange0 (Urho3D::Geometry *_target, enum Urho3D::PrimitiveType type, unsigned int indexStart, unsigned int indexCount, unsigned int vertexStart, unsigned int vertexCount, bool checkIllegal)
  8379. {
  8380. return _target->SetDrawRange (type, indexStart, indexCount, vertexStart, vertexCount, checkIllegal);
  8381. }
  8382. DllExport void
  8383. Geometry_SetLodDistance (Urho3D::Geometry *_target, float distance)
  8384. {
  8385. _target->SetLodDistance (distance);
  8386. }
  8387. DllExport void
  8388. Geometry_Draw (Urho3D::Geometry *_target, Urho3D::Graphics * graphics)
  8389. {
  8390. _target->Draw (graphics);
  8391. }
  8392. DllExport const Vector<SharedPtr<class Urho3D::VertexBuffer> > &
  8393. Geometry_GetVertexBuffers (Urho3D::Geometry *_target)
  8394. {
  8395. return _target->GetVertexBuffers ();
  8396. }
  8397. DllExport unsigned int
  8398. Geometry_GetNumVertexBuffers (Urho3D::Geometry *_target)
  8399. {
  8400. return _target->GetNumVertexBuffers ();
  8401. }
  8402. DllExport Urho3D::VertexBuffer *
  8403. Geometry_GetVertexBuffer (Urho3D::Geometry *_target, unsigned int index)
  8404. {
  8405. return _target->GetVertexBuffer (index);
  8406. }
  8407. DllExport Urho3D::IndexBuffer *
  8408. Geometry_GetIndexBuffer (Urho3D::Geometry *_target)
  8409. {
  8410. return _target->GetIndexBuffer ();
  8411. }
  8412. DllExport enum Urho3D::PrimitiveType
  8413. Geometry_GetPrimitiveType (Urho3D::Geometry *_target)
  8414. {
  8415. return _target->GetPrimitiveType ();
  8416. }
  8417. DllExport unsigned int
  8418. Geometry_GetIndexStart (Urho3D::Geometry *_target)
  8419. {
  8420. return _target->GetIndexStart ();
  8421. }
  8422. DllExport unsigned int
  8423. Geometry_GetIndexCount (Urho3D::Geometry *_target)
  8424. {
  8425. return _target->GetIndexCount ();
  8426. }
  8427. DllExport unsigned int
  8428. Geometry_GetVertexStart (Urho3D::Geometry *_target)
  8429. {
  8430. return _target->GetVertexStart ();
  8431. }
  8432. DllExport unsigned int
  8433. Geometry_GetVertexCount (Urho3D::Geometry *_target)
  8434. {
  8435. return _target->GetVertexCount ();
  8436. }
  8437. DllExport float
  8438. Geometry_GetLodDistance (Urho3D::Geometry *_target)
  8439. {
  8440. return _target->GetLodDistance ();
  8441. }
  8442. DllExport unsigned short
  8443. Geometry_GetBufferHash (Urho3D::Geometry *_target)
  8444. {
  8445. return _target->GetBufferHash ();
  8446. }
  8447. DllExport float
  8448. Geometry_GetHitDistance (Urho3D::Geometry *_target, const class Urho3D::Ray & ray, Urho3D::Vector3 * outNormal, Urho3D::Vector2 * outUV)
  8449. {
  8450. return _target->GetHitDistance (ray, outNormal, outUV);
  8451. }
  8452. DllExport int
  8453. Geometry_IsInside (Urho3D::Geometry *_target, const class Urho3D::Ray & ray)
  8454. {
  8455. return _target->IsInside (ray);
  8456. }
  8457. DllExport int
  8458. Geometry_IsEmpty (Urho3D::Geometry *_target)
  8459. {
  8460. return _target->IsEmpty ();
  8461. }
  8462. DllExport GPUObject*
  8463. ShaderVariation_CastToGPUObject(Urho3D::ShaderVariation *_target)
  8464. {
  8465. return static_cast<GPUObject*>(_target);
  8466. }
  8467. DllExport void *
  8468. ShaderVariation_ShaderVariation (Urho3D::Shader * owner, enum Urho3D::ShaderType type)
  8469. {
  8470. return WeakPtr<ShaderVariation>(new ShaderVariation(owner, type));
  8471. }
  8472. DllExport void
  8473. ShaderVariation_Release (Urho3D::ShaderVariation *_target)
  8474. {
  8475. _target->Release ();
  8476. }
  8477. DllExport int
  8478. ShaderVariation_Create (Urho3D::ShaderVariation *_target)
  8479. {
  8480. return _target->Create ();
  8481. }
  8482. DllExport void
  8483. ShaderVariation_SetName (Urho3D::ShaderVariation *_target, const char * name)
  8484. {
  8485. _target->SetName (Urho3D::String(name));
  8486. }
  8487. DllExport void
  8488. ShaderVariation_SetDefines (Urho3D::ShaderVariation *_target, const char * defines)
  8489. {
  8490. _target->SetDefines (Urho3D::String(defines));
  8491. }
  8492. DllExport Urho3D::Shader *
  8493. ShaderVariation_GetOwner (Urho3D::ShaderVariation *_target)
  8494. {
  8495. return _target->GetOwner ();
  8496. }
  8497. DllExport enum Urho3D::ShaderType
  8498. ShaderVariation_GetShaderType (Urho3D::ShaderVariation *_target)
  8499. {
  8500. return _target->GetShaderType ();
  8501. }
  8502. DllExport const char *
  8503. ShaderVariation_GetName (Urho3D::ShaderVariation *_target)
  8504. {
  8505. return stringdup((_target->GetName ()).CString ());
  8506. }
  8507. DllExport const char *
  8508. ShaderVariation_GetFullName (Urho3D::ShaderVariation *_target)
  8509. {
  8510. return stringdup((_target->GetFullName ()).CString ());
  8511. }
  8512. DllExport int
  8513. ShaderVariation_HasParameter (Urho3D::ShaderVariation *_target, int param)
  8514. {
  8515. return _target->HasParameter (Urho3D::StringHash(param));
  8516. }
  8517. DllExport int
  8518. ShaderVariation_HasTextureUnit (Urho3D::ShaderVariation *_target, enum Urho3D::TextureUnit unit)
  8519. {
  8520. return _target->HasTextureUnit (unit);
  8521. }
  8522. DllExport unsigned long long
  8523. ShaderVariation_GetElementHash (Urho3D::ShaderVariation *_target)
  8524. {
  8525. return _target->GetElementHash ();
  8526. }
  8527. DllExport const char *
  8528. ShaderVariation_GetDefines (Urho3D::ShaderVariation *_target)
  8529. {
  8530. return stringdup((_target->GetDefines ()).CString ());
  8531. }
  8532. DllExport const char *
  8533. ShaderVariation_GetCompilerOutput (Urho3D::ShaderVariation *_target)
  8534. {
  8535. return stringdup((_target->GetCompilerOutput ()).CString ());
  8536. }
  8537. DllExport const unsigned int *
  8538. ShaderVariation_GetConstantBufferSizes (Urho3D::ShaderVariation *_target)
  8539. {
  8540. return _target->GetConstantBufferSizes ();
  8541. }
  8542. DllExport const char *
  8543. ShaderVariation_GetDefinesClipPlane (Urho3D::ShaderVariation *_target)
  8544. {
  8545. return stringdup((_target->GetDefinesClipPlane ()).CString ());
  8546. }
  8547. DllExport int
  8548. Image_GetType (Urho3D::Image *_target)
  8549. {
  8550. return (_target->GetType ()).Value ();
  8551. }
  8552. DllExport const char *
  8553. Image_GetTypeName (Urho3D::Image *_target)
  8554. {
  8555. return stringdup((_target->GetTypeName ()).CString ());
  8556. }
  8557. DllExport int
  8558. Image_GetTypeStatic ()
  8559. {
  8560. return (Image::GetTypeStatic ()).Value ();
  8561. }
  8562. DllExport const char *
  8563. Image_GetTypeNameStatic ()
  8564. {
  8565. return stringdup((Image::GetTypeNameStatic ()).CString ());
  8566. }
  8567. DllExport void *
  8568. Image_Image (Urho3D::Context * context)
  8569. {
  8570. return WeakPtr<Image>(new Image(context));
  8571. }
  8572. DllExport void
  8573. Image_RegisterObject (Urho3D::Context * context)
  8574. {
  8575. Image::RegisterObject (context);
  8576. }
  8577. DllExport int
  8578. Image_BeginLoad_File (Urho3D::Image *_target, File * source)
  8579. {
  8580. return _target->BeginLoad (*source);
  8581. }
  8582. DllExport int
  8583. Image_BeginLoad_MemoryBuffer (Urho3D::Image *_target, MemoryBuffer * source)
  8584. {
  8585. return _target->BeginLoad (*source);
  8586. }
  8587. DllExport int
  8588. Image_Save_File (Urho3D::Image *_target, File * dest)
  8589. {
  8590. return _target->Save (*dest);
  8591. }
  8592. DllExport int
  8593. Image_Save_MemoryBuffer (Urho3D::Image *_target, MemoryBuffer * dest)
  8594. {
  8595. return _target->Save (*dest);
  8596. }
  8597. DllExport int
  8598. Image_SaveFile (Urho3D::Image *_target, const char * fileName)
  8599. {
  8600. return _target->SaveFile (Urho3D::String(fileName));
  8601. }
  8602. DllExport int
  8603. Image_SetSize (Urho3D::Image *_target, int width, int height, unsigned int components)
  8604. {
  8605. return _target->SetSize (width, height, components);
  8606. }
  8607. DllExport int
  8608. Image_SetSize0 (Urho3D::Image *_target, int width, int height, int depth, unsigned int components)
  8609. {
  8610. return _target->SetSize (width, height, depth, components);
  8611. }
  8612. DllExport void
  8613. Image_SetData (Urho3D::Image *_target, const unsigned char * pixelData)
  8614. {
  8615. _target->SetData (pixelData);
  8616. }
  8617. DllExport void
  8618. Image_SetPixel (Urho3D::Image *_target, int x, int y, const class Urho3D::Color & color)
  8619. {
  8620. _target->SetPixel (x, y, color);
  8621. }
  8622. DllExport void
  8623. Image_SetPixel1 (Urho3D::Image *_target, int x, int y, int z, const class Urho3D::Color & color)
  8624. {
  8625. _target->SetPixel (x, y, z, color);
  8626. }
  8627. DllExport void
  8628. Image_SetPixelInt (Urho3D::Image *_target, int x, int y, unsigned int uintColor)
  8629. {
  8630. _target->SetPixelInt (x, y, uintColor);
  8631. }
  8632. DllExport void
  8633. Image_SetPixelInt2 (Urho3D::Image *_target, int x, int y, int z, unsigned int uintColor)
  8634. {
  8635. _target->SetPixelInt (x, y, z, uintColor);
  8636. }
  8637. DllExport int
  8638. Image_LoadColorLUT_File (Urho3D::Image *_target, File * source)
  8639. {
  8640. return _target->LoadColorLUT (*source);
  8641. }
  8642. DllExport int
  8643. Image_LoadColorLUT_MemoryBuffer (Urho3D::Image *_target, MemoryBuffer * source)
  8644. {
  8645. return _target->LoadColorLUT (*source);
  8646. }
  8647. DllExport int
  8648. Image_FlipHorizontal (Urho3D::Image *_target)
  8649. {
  8650. return _target->FlipHorizontal ();
  8651. }
  8652. DllExport int
  8653. Image_FlipVertical (Urho3D::Image *_target)
  8654. {
  8655. return _target->FlipVertical ();
  8656. }
  8657. DllExport int
  8658. Image_Resize (Urho3D::Image *_target, int width, int height)
  8659. {
  8660. return _target->Resize (width, height);
  8661. }
  8662. DllExport void
  8663. Image_Clear (Urho3D::Image *_target, const class Urho3D::Color & color)
  8664. {
  8665. _target->Clear (color);
  8666. }
  8667. DllExport void
  8668. Image_ClearInt (Urho3D::Image *_target, unsigned int uintColor)
  8669. {
  8670. _target->ClearInt (uintColor);
  8671. }
  8672. DllExport int
  8673. Image_SaveBMP (Urho3D::Image *_target, const char * fileName)
  8674. {
  8675. return _target->SaveBMP (Urho3D::String(fileName));
  8676. }
  8677. DllExport int
  8678. Image_SavePNG (Urho3D::Image *_target, const char * fileName)
  8679. {
  8680. return _target->SavePNG (Urho3D::String(fileName));
  8681. }
  8682. DllExport int
  8683. Image_SaveTGA (Urho3D::Image *_target, const char * fileName)
  8684. {
  8685. return _target->SaveTGA (Urho3D::String(fileName));
  8686. }
  8687. DllExport int
  8688. Image_SaveJPG (Urho3D::Image *_target, const char * fileName, int quality)
  8689. {
  8690. return _target->SaveJPG (Urho3D::String(fileName), quality);
  8691. }
  8692. DllExport int
  8693. Image_SaveDDS (Urho3D::Image *_target, const char * fileName)
  8694. {
  8695. return _target->SaveDDS (Urho3D::String(fileName));
  8696. }
  8697. DllExport int
  8698. Image_SaveWEBP (Urho3D::Image *_target, const char * fileName, float compression)
  8699. {
  8700. return _target->SaveWEBP (Urho3D::String(fileName), compression);
  8701. }
  8702. DllExport int
  8703. Image_IsCubemap (Urho3D::Image *_target)
  8704. {
  8705. return _target->IsCubemap ();
  8706. }
  8707. DllExport int
  8708. Image_IsArray (Urho3D::Image *_target)
  8709. {
  8710. return _target->IsArray ();
  8711. }
  8712. DllExport int
  8713. Image_IsSRGB (Urho3D::Image *_target)
  8714. {
  8715. return _target->IsSRGB ();
  8716. }
  8717. DllExport Interop::Color
  8718. Image_GetPixel (Urho3D::Image *_target, int x, int y)
  8719. {
  8720. return *((Interop::Color *) &(_target->GetPixel (x, y)));
  8721. }
  8722. DllExport Interop::Color
  8723. Image_GetPixel3 (Urho3D::Image *_target, int x, int y, int z)
  8724. {
  8725. return *((Interop::Color *) &(_target->GetPixel (x, y, z)));
  8726. }
  8727. DllExport unsigned int
  8728. Image_GetPixelInt (Urho3D::Image *_target, int x, int y)
  8729. {
  8730. return _target->GetPixelInt (x, y);
  8731. }
  8732. DllExport unsigned int
  8733. Image_GetPixelInt4 (Urho3D::Image *_target, int x, int y, int z)
  8734. {
  8735. return _target->GetPixelInt (x, y, z);
  8736. }
  8737. DllExport Interop::Color
  8738. Image_GetPixelBilinear (Urho3D::Image *_target, float x, float y)
  8739. {
  8740. return *((Interop::Color *) &(_target->GetPixelBilinear (x, y)));
  8741. }
  8742. DllExport Interop::Color
  8743. Image_GetPixelTrilinear (Urho3D::Image *_target, float x, float y, float z)
  8744. {
  8745. return *((Interop::Color *) &(_target->GetPixelTrilinear (x, y, z)));
  8746. }
  8747. DllExport int
  8748. Image_GetWidth (Urho3D::Image *_target)
  8749. {
  8750. return _target->GetWidth ();
  8751. }
  8752. DllExport int
  8753. Image_GetHeight (Urho3D::Image *_target)
  8754. {
  8755. return _target->GetHeight ();
  8756. }
  8757. DllExport int
  8758. Image_GetDepth (Urho3D::Image *_target)
  8759. {
  8760. return _target->GetDepth ();
  8761. }
  8762. DllExport unsigned int
  8763. Image_GetComponents (Urho3D::Image *_target)
  8764. {
  8765. return _target->GetComponents ();
  8766. }
  8767. DllExport unsigned char *
  8768. Image_GetData (Urho3D::Image *_target)
  8769. {
  8770. return _target->GetData ();
  8771. }
  8772. DllExport int
  8773. Image_IsCompressed (Urho3D::Image *_target)
  8774. {
  8775. return _target->IsCompressed ();
  8776. }
  8777. DllExport enum Urho3D::CompressedFormat
  8778. Image_GetCompressedFormat (Urho3D::Image *_target)
  8779. {
  8780. return _target->GetCompressedFormat ();
  8781. }
  8782. DllExport unsigned int
  8783. Image_GetNumCompressedLevels (Urho3D::Image *_target)
  8784. {
  8785. return _target->GetNumCompressedLevels ();
  8786. }
  8787. DllExport Urho3D::Image *
  8788. Image_GetNextLevel (Urho3D::Image *_target)
  8789. {
  8790. auto copy = _target->GetNextLevel ();
  8791. auto plain = copy.Get();
  8792. copy.Detach();
  8793. delete copy;
  8794. return plain;
  8795. }
  8796. DllExport Urho3D::Image *
  8797. Image_GetNextSibling (Urho3D::Image *_target)
  8798. {
  8799. auto copy = _target->GetNextSibling ();
  8800. auto plain = copy.Get();
  8801. copy.Detach();
  8802. delete copy;
  8803. return plain;
  8804. }
  8805. DllExport Urho3D::Image *
  8806. Image_ConvertToRGBA (Urho3D::Image *_target)
  8807. {
  8808. auto copy = _target->ConvertToRGBA ();
  8809. auto plain = copy.Get();
  8810. copy.Detach();
  8811. delete copy;
  8812. return plain;
  8813. }
  8814. DllExport Urho3D::CompressedLevel
  8815. Image_GetCompressedLevel (Urho3D::Image *_target, unsigned int index)
  8816. {
  8817. return _target->GetCompressedLevel (index);
  8818. }
  8819. DllExport Urho3D::Image *
  8820. Image_GetSubimage (Urho3D::Image *_target, const class Urho3D::IntRect & rect)
  8821. {
  8822. return _target->GetSubimage (rect);
  8823. }
  8824. DllExport void
  8825. Image_PrecalculateLevels (Urho3D::Image *_target)
  8826. {
  8827. _target->PrecalculateLevels ();
  8828. }
  8829. DllExport void
  8830. Image_CleanupLevels (Urho3D::Image *_target)
  8831. {
  8832. _target->CleanupLevels ();
  8833. }
  8834. DllExport int
  8835. Graphics_GetType (Urho3D::Graphics *_target)
  8836. {
  8837. return (_target->GetType ()).Value ();
  8838. }
  8839. DllExport const char *
  8840. Graphics_GetTypeName (Urho3D::Graphics *_target)
  8841. {
  8842. return stringdup((_target->GetTypeName ()).CString ());
  8843. }
  8844. DllExport int
  8845. Graphics_GetTypeStatic ()
  8846. {
  8847. return (Graphics::GetTypeStatic ()).Value ();
  8848. }
  8849. DllExport const char *
  8850. Graphics_GetTypeNameStatic ()
  8851. {
  8852. return stringdup((Graphics::GetTypeNameStatic ()).CString ());
  8853. }
  8854. DllExport void *
  8855. Graphics_Graphics (Urho3D::Context * context)
  8856. {
  8857. return WeakPtr<Graphics>(new Graphics(context));
  8858. }
  8859. DllExport void
  8860. Graphics_SetExternalWindow (Urho3D::Graphics *_target, void * window)
  8861. {
  8862. _target->SetExternalWindow (window);
  8863. }
  8864. DllExport void
  8865. Graphics_SetWindowTitle (Urho3D::Graphics *_target, const char * windowTitle)
  8866. {
  8867. _target->SetWindowTitle (Urho3D::String(windowTitle));
  8868. }
  8869. DllExport void
  8870. Graphics_SetWindowIcon (Urho3D::Graphics *_target, Urho3D::Image * windowIcon)
  8871. {
  8872. _target->SetWindowIcon (windowIcon);
  8873. }
  8874. DllExport void
  8875. Graphics_SetWindowPosition (Urho3D::Graphics *_target, const class Urho3D::IntVector2 & position)
  8876. {
  8877. _target->SetWindowPosition (position);
  8878. }
  8879. DllExport void
  8880. Graphics_SetWindowPosition0 (Urho3D::Graphics *_target, int x, int y)
  8881. {
  8882. _target->SetWindowPosition (x, y);
  8883. }
  8884. DllExport int
  8885. 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)
  8886. {
  8887. return _target->SetMode (width, height, fullscreen, borderless, resizable, highDPI, vsync, tripleBuffer, multiSample, monitor, refreshRate);
  8888. }
  8889. DllExport int
  8890. Graphics_SetMode1 (Urho3D::Graphics *_target, int width, int height)
  8891. {
  8892. return _target->SetMode (width, height);
  8893. }
  8894. DllExport void
  8895. Graphics_SetSRGB (Urho3D::Graphics *_target, bool enable)
  8896. {
  8897. _target->SetSRGB (enable);
  8898. }
  8899. DllExport void
  8900. Graphics_SetDither (Urho3D::Graphics *_target, bool enable)
  8901. {
  8902. _target->SetDither (enable);
  8903. }
  8904. DllExport void
  8905. Graphics_SetFlushGPU (Urho3D::Graphics *_target, bool enable)
  8906. {
  8907. _target->SetFlushGPU (enable);
  8908. }
  8909. DllExport void
  8910. Graphics_SetOrientations (Urho3D::Graphics *_target, const char * orientations)
  8911. {
  8912. _target->SetOrientations (Urho3D::String(orientations));
  8913. }
  8914. DllExport int
  8915. Graphics_ToggleFullscreen (Urho3D::Graphics *_target)
  8916. {
  8917. return _target->ToggleFullscreen ();
  8918. }
  8919. DllExport void
  8920. Graphics_Close (Urho3D::Graphics *_target)
  8921. {
  8922. _target->Close ();
  8923. }
  8924. DllExport int
  8925. Graphics_TakeScreenShot (Urho3D::Graphics *_target, Image * destImage)
  8926. {
  8927. return _target->TakeScreenShot (*destImage);
  8928. }
  8929. DllExport int
  8930. Graphics_BeginFrame (Urho3D::Graphics *_target)
  8931. {
  8932. return _target->BeginFrame ();
  8933. }
  8934. DllExport void
  8935. Graphics_EndFrame (Urho3D::Graphics *_target)
  8936. {
  8937. _target->EndFrame ();
  8938. }
  8939. DllExport void
  8940. Graphics_Clear (Urho3D::Graphics *_target, unsigned int flags, const class Urho3D::Color & color, float depth, unsigned int stencil)
  8941. {
  8942. _target->Clear (flags, color, depth, stencil);
  8943. }
  8944. DllExport int
  8945. Graphics_ResolveToTexture (Urho3D::Graphics *_target, Urho3D::Texture2D * destination, const class Urho3D::IntRect & viewport)
  8946. {
  8947. return _target->ResolveToTexture (destination, viewport);
  8948. }
  8949. DllExport int
  8950. Graphics_ResolveToTexture2 (Urho3D::Graphics *_target, Urho3D::Texture2D * texture)
  8951. {
  8952. return _target->ResolveToTexture (texture);
  8953. }
  8954. DllExport int
  8955. Graphics_ResolveToTexture3 (Urho3D::Graphics *_target, Urho3D::TextureCube * texture)
  8956. {
  8957. return _target->ResolveToTexture (texture);
  8958. }
  8959. DllExport void
  8960. Graphics_Draw (Urho3D::Graphics *_target, enum Urho3D::PrimitiveType type, unsigned int vertexStart, unsigned int vertexCount)
  8961. {
  8962. _target->Draw (type, vertexStart, vertexCount);
  8963. }
  8964. DllExport void
  8965. Graphics_Draw4 (Urho3D::Graphics *_target, enum Urho3D::PrimitiveType type, unsigned int indexStart, unsigned int indexCount, unsigned int minVertex, unsigned int vertexCount)
  8966. {
  8967. _target->Draw (type, indexStart, indexCount, minVertex, vertexCount);
  8968. }
  8969. DllExport void
  8970. Graphics_Draw5 (Urho3D::Graphics *_target, enum Urho3D::PrimitiveType type, unsigned int indexStart, unsigned int indexCount, unsigned int baseVertexIndex, unsigned int minVertex, unsigned int vertexCount)
  8971. {
  8972. _target->Draw (type, indexStart, indexCount, baseVertexIndex, minVertex, vertexCount);
  8973. }
  8974. DllExport void
  8975. Graphics_DrawInstanced (Urho3D::Graphics *_target, enum Urho3D::PrimitiveType type, unsigned int indexStart, unsigned int indexCount, unsigned int minVertex, unsigned int vertexCount, unsigned int instanceCount)
  8976. {
  8977. _target->DrawInstanced (type, indexStart, indexCount, minVertex, vertexCount, instanceCount);
  8978. }
  8979. DllExport void
  8980. 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)
  8981. {
  8982. _target->DrawInstanced (type, indexStart, indexCount, baseVertexIndex, minVertex, vertexCount, instanceCount);
  8983. }
  8984. DllExport void
  8985. Graphics_SetVertexBuffer (Urho3D::Graphics *_target, Urho3D::VertexBuffer * buffer)
  8986. {
  8987. _target->SetVertexBuffer (buffer);
  8988. }
  8989. DllExport void
  8990. Graphics_SetIndexBuffer (Urho3D::Graphics *_target, Urho3D::IndexBuffer * buffer)
  8991. {
  8992. _target->SetIndexBuffer (buffer);
  8993. }
  8994. DllExport void
  8995. Graphics_SetShaders (Urho3D::Graphics *_target, Urho3D::ShaderVariation * vs, Urho3D::ShaderVariation * ps)
  8996. {
  8997. _target->SetShaders (vs, ps);
  8998. }
  8999. DllExport void
  9000. Graphics_SetShaderParameter (Urho3D::Graphics *_target, int param, const float * data, unsigned int count)
  9001. {
  9002. _target->SetShaderParameter (Urho3D::StringHash(param), data, count);
  9003. }
  9004. DllExport void
  9005. Graphics_SetShaderParameter7 (Urho3D::Graphics *_target, int param, float value)
  9006. {
  9007. _target->SetShaderParameter (Urho3D::StringHash(param), value);
  9008. }
  9009. DllExport void
  9010. Graphics_SetShaderParameter8 (Urho3D::Graphics *_target, int param, int value)
  9011. {
  9012. _target->SetShaderParameter (Urho3D::StringHash(param), value);
  9013. }
  9014. DllExport void
  9015. Graphics_SetShaderParameter9 (Urho3D::Graphics *_target, int param, bool value)
  9016. {
  9017. _target->SetShaderParameter (Urho3D::StringHash(param), value);
  9018. }
  9019. DllExport void
  9020. Graphics_SetShaderParameter10 (Urho3D::Graphics *_target, int param, const class Urho3D::Color & color)
  9021. {
  9022. _target->SetShaderParameter (Urho3D::StringHash(param), color);
  9023. }
  9024. DllExport void
  9025. Graphics_SetShaderParameter11 (Urho3D::Graphics *_target, int param, const class Urho3D::Vector2 & vector)
  9026. {
  9027. _target->SetShaderParameter (Urho3D::StringHash(param), vector);
  9028. }
  9029. DllExport void
  9030. Graphics_SetShaderParameter12 (Urho3D::Graphics *_target, int param, const class Urho3D::Vector3 & vector)
  9031. {
  9032. _target->SetShaderParameter (Urho3D::StringHash(param), vector);
  9033. }
  9034. DllExport void
  9035. Graphics_SetShaderParameter13 (Urho3D::Graphics *_target, int param, const class Urho3D::Matrix4 & matrix)
  9036. {
  9037. _target->SetShaderParameter (Urho3D::StringHash(param), matrix);
  9038. }
  9039. DllExport void
  9040. Graphics_SetShaderParameter14 (Urho3D::Graphics *_target, int param, const class Urho3D::Vector4 & vector)
  9041. {
  9042. _target->SetShaderParameter (Urho3D::StringHash(param), vector);
  9043. }
  9044. DllExport void
  9045. Graphics_SetShaderParameter15 (Urho3D::Graphics *_target, int param, const class Urho3D::Matrix3x4 & matrix)
  9046. {
  9047. _target->SetShaderParameter (Urho3D::StringHash(param), matrix);
  9048. }
  9049. DllExport int
  9050. Graphics_NeedParameterUpdate (Urho3D::Graphics *_target, enum Urho3D::ShaderParameterGroup group, const void * source)
  9051. {
  9052. return _target->NeedParameterUpdate (group, source);
  9053. }
  9054. DllExport int
  9055. Graphics_HasShaderParameter (Urho3D::Graphics *_target, int param)
  9056. {
  9057. return _target->HasShaderParameter (Urho3D::StringHash(param));
  9058. }
  9059. DllExport int
  9060. Graphics_HasTextureUnit (Urho3D::Graphics *_target, enum Urho3D::TextureUnit unit)
  9061. {
  9062. return _target->HasTextureUnit (unit);
  9063. }
  9064. DllExport void
  9065. Graphics_ClearParameterSource (Urho3D::Graphics *_target, enum Urho3D::ShaderParameterGroup group)
  9066. {
  9067. _target->ClearParameterSource (group);
  9068. }
  9069. DllExport void
  9070. Graphics_ClearParameterSources (Urho3D::Graphics *_target)
  9071. {
  9072. _target->ClearParameterSources ();
  9073. }
  9074. DllExport void
  9075. Graphics_ClearTransformSources (Urho3D::Graphics *_target)
  9076. {
  9077. _target->ClearTransformSources ();
  9078. }
  9079. DllExport void
  9080. Graphics_SetTexture (Urho3D::Graphics *_target, unsigned int index, Urho3D::Texture * texture)
  9081. {
  9082. _target->SetTexture (index, texture);
  9083. }
  9084. DllExport void
  9085. Graphics_SetTextureParametersDirty (Urho3D::Graphics *_target)
  9086. {
  9087. _target->SetTextureParametersDirty ();
  9088. }
  9089. DllExport void
  9090. Graphics_SetDefaultTextureFilterMode (Urho3D::Graphics *_target, enum Urho3D::TextureFilterMode mode)
  9091. {
  9092. _target->SetDefaultTextureFilterMode (mode);
  9093. }
  9094. DllExport void
  9095. Graphics_SetDefaultTextureAnisotropy (Urho3D::Graphics *_target, unsigned int level)
  9096. {
  9097. _target->SetDefaultTextureAnisotropy (level);
  9098. }
  9099. DllExport void
  9100. Graphics_ResetRenderTargets (Urho3D::Graphics *_target)
  9101. {
  9102. _target->ResetRenderTargets ();
  9103. }
  9104. DllExport void
  9105. Graphics_ResetRenderTarget (Urho3D::Graphics *_target, unsigned int index)
  9106. {
  9107. _target->ResetRenderTarget (index);
  9108. }
  9109. DllExport void
  9110. Graphics_ResetDepthStencil (Urho3D::Graphics *_target)
  9111. {
  9112. _target->ResetDepthStencil ();
  9113. }
  9114. DllExport void
  9115. Graphics_SetRenderTarget (Urho3D::Graphics *_target, unsigned int index, Urho3D::RenderSurface * renderTarget)
  9116. {
  9117. _target->SetRenderTarget (index, renderTarget);
  9118. }
  9119. DllExport void
  9120. Graphics_SetRenderTarget16 (Urho3D::Graphics *_target, unsigned int index, Urho3D::Texture2D * texture)
  9121. {
  9122. _target->SetRenderTarget (index, texture);
  9123. }
  9124. DllExport void
  9125. Graphics_SetDepthStencil (Urho3D::Graphics *_target, Urho3D::RenderSurface * depthStencil)
  9126. {
  9127. _target->SetDepthStencil (depthStencil);
  9128. }
  9129. DllExport void
  9130. Graphics_SetDepthStencil17 (Urho3D::Graphics *_target, Urho3D::Texture2D * texture)
  9131. {
  9132. _target->SetDepthStencil (texture);
  9133. }
  9134. DllExport void
  9135. Graphics_SetViewport (Urho3D::Graphics *_target, const class Urho3D::IntRect & rect)
  9136. {
  9137. _target->SetViewport (rect);
  9138. }
  9139. DllExport void
  9140. Graphics_SetBlendMode (Urho3D::Graphics *_target, enum Urho3D::BlendMode mode, bool alphaToCoverage)
  9141. {
  9142. _target->SetBlendMode (mode, alphaToCoverage);
  9143. }
  9144. DllExport void
  9145. Graphics_SetColorWrite (Urho3D::Graphics *_target, bool enable)
  9146. {
  9147. _target->SetColorWrite (enable);
  9148. }
  9149. DllExport void
  9150. Graphics_SetCullMode (Urho3D::Graphics *_target, enum Urho3D::CullMode mode)
  9151. {
  9152. _target->SetCullMode (mode);
  9153. }
  9154. DllExport void
  9155. Graphics_SetDepthBias (Urho3D::Graphics *_target, float constantBias, float slopeScaledBias)
  9156. {
  9157. _target->SetDepthBias (constantBias, slopeScaledBias);
  9158. }
  9159. DllExport void
  9160. Graphics_SetDepthTest (Urho3D::Graphics *_target, enum Urho3D::CompareMode mode)
  9161. {
  9162. _target->SetDepthTest (mode);
  9163. }
  9164. DllExport void
  9165. Graphics_SetDepthWrite (Urho3D::Graphics *_target, bool enable)
  9166. {
  9167. _target->SetDepthWrite (enable);
  9168. }
  9169. DllExport void
  9170. Graphics_SetFillMode (Urho3D::Graphics *_target, enum Urho3D::FillMode mode)
  9171. {
  9172. _target->SetFillMode (mode);
  9173. }
  9174. DllExport void
  9175. Graphics_SetStereo (Urho3D::Graphics *_target, bool stereo)
  9176. {
  9177. _target->SetStereo (stereo);
  9178. }
  9179. DllExport void
  9180. Graphics_SetLineAntiAlias (Urho3D::Graphics *_target, bool enable)
  9181. {
  9182. _target->SetLineAntiAlias (enable);
  9183. }
  9184. DllExport void
  9185. Graphics_SetScissorTest (Urho3D::Graphics *_target, bool enable, const class Urho3D::IntRect & rect)
  9186. {
  9187. _target->SetScissorTest (enable, rect);
  9188. }
  9189. DllExport void
  9190. 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)
  9191. {
  9192. _target->SetStencilTest (enable, mode, pass, fail, zFail, stencilRef, compareMask, writeMask);
  9193. }
  9194. DllExport void
  9195. Graphics_SetClipPlane (Urho3D::Graphics *_target, bool enable, const class Urho3D::Plane & clipPlane, const class Urho3D::Matrix3x4 & view, const class Urho3D::Matrix4 & projection)
  9196. {
  9197. _target->SetClipPlane (enable, clipPlane, view, projection);
  9198. }
  9199. DllExport void
  9200. Graphics_BeginDumpShaders (Urho3D::Graphics *_target, const char * fileName)
  9201. {
  9202. _target->BeginDumpShaders (Urho3D::String(fileName));
  9203. }
  9204. DllExport void
  9205. Graphics_EndDumpShaders (Urho3D::Graphics *_target)
  9206. {
  9207. _target->EndDumpShaders ();
  9208. }
  9209. DllExport void
  9210. Graphics_PrecacheShaders_File (Urho3D::Graphics *_target, File * source)
  9211. {
  9212. _target->PrecacheShaders (*source);
  9213. }
  9214. DllExport void
  9215. Graphics_PrecacheShaders_MemoryBuffer (Urho3D::Graphics *_target, MemoryBuffer * source)
  9216. {
  9217. _target->PrecacheShaders (*source);
  9218. }
  9219. DllExport void
  9220. Graphics_SetShaderCacheDir (Urho3D::Graphics *_target, const char * path)
  9221. {
  9222. _target->SetShaderCacheDir (Urho3D::String(path));
  9223. }
  9224. DllExport int
  9225. Graphics_IsInitialized (Urho3D::Graphics *_target)
  9226. {
  9227. return _target->IsInitialized ();
  9228. }
  9229. DllExport Urho3D::GraphicsImpl *
  9230. Graphics_GetImpl (Urho3D::Graphics *_target)
  9231. {
  9232. return _target->GetImpl ();
  9233. }
  9234. DllExport void *
  9235. Graphics_GetExternalWindow (Urho3D::Graphics *_target)
  9236. {
  9237. return _target->GetExternalWindow ();
  9238. }
  9239. DllExport const char *
  9240. Graphics_GetWindowTitle (Urho3D::Graphics *_target)
  9241. {
  9242. return stringdup((_target->GetWindowTitle ()).CString ());
  9243. }
  9244. DllExport const char *
  9245. Graphics_GetApiName (Urho3D::Graphics *_target)
  9246. {
  9247. return stringdup((_target->GetApiName ()).CString ());
  9248. }
  9249. DllExport Interop::IntVector2
  9250. Graphics_GetWindowPosition (Urho3D::Graphics *_target)
  9251. {
  9252. return *((Interop::IntVector2 *) &(_target->GetWindowPosition ()));
  9253. }
  9254. DllExport int
  9255. Graphics_GetWidth (Urho3D::Graphics *_target)
  9256. {
  9257. return _target->GetWidth ();
  9258. }
  9259. DllExport int
  9260. Graphics_GetHeight (Urho3D::Graphics *_target)
  9261. {
  9262. return _target->GetHeight ();
  9263. }
  9264. DllExport int
  9265. Graphics_GetMultiSample (Urho3D::Graphics *_target)
  9266. {
  9267. return _target->GetMultiSample ();
  9268. }
  9269. DllExport Interop::IntVector2
  9270. Graphics_GetSize (Urho3D::Graphics *_target)
  9271. {
  9272. return *((Interop::IntVector2 *) &(_target->GetSize ()));
  9273. }
  9274. DllExport int
  9275. Graphics_GetFullscreen (Urho3D::Graphics *_target)
  9276. {
  9277. return _target->GetFullscreen ();
  9278. }
  9279. DllExport int
  9280. Graphics_GetBorderless (Urho3D::Graphics *_target)
  9281. {
  9282. return _target->GetBorderless ();
  9283. }
  9284. DllExport int
  9285. Graphics_GetResizable (Urho3D::Graphics *_target)
  9286. {
  9287. return _target->GetResizable ();
  9288. }
  9289. DllExport int
  9290. Graphics_GetHighDPI (Urho3D::Graphics *_target)
  9291. {
  9292. return _target->GetHighDPI ();
  9293. }
  9294. DllExport int
  9295. Graphics_GetVSync (Urho3D::Graphics *_target)
  9296. {
  9297. return _target->GetVSync ();
  9298. }
  9299. DllExport int
  9300. Graphics_GetRefreshRate (Urho3D::Graphics *_target)
  9301. {
  9302. return _target->GetRefreshRate ();
  9303. }
  9304. DllExport int
  9305. Graphics_GetMonitor (Urho3D::Graphics *_target)
  9306. {
  9307. return _target->GetMonitor ();
  9308. }
  9309. DllExport int
  9310. Graphics_GetTripleBuffer (Urho3D::Graphics *_target)
  9311. {
  9312. return _target->GetTripleBuffer ();
  9313. }
  9314. DllExport int
  9315. Graphics_GetSRGB (Urho3D::Graphics *_target)
  9316. {
  9317. return _target->GetSRGB ();
  9318. }
  9319. DllExport int
  9320. Graphics_GetDither (Urho3D::Graphics *_target)
  9321. {
  9322. return _target->GetDither ();
  9323. }
  9324. DllExport int
  9325. Graphics_GetFlushGPU (Urho3D::Graphics *_target)
  9326. {
  9327. return _target->GetFlushGPU ();
  9328. }
  9329. DllExport const char *
  9330. Graphics_GetOrientations (Urho3D::Graphics *_target)
  9331. {
  9332. return stringdup((_target->GetOrientations ()).CString ());
  9333. }
  9334. DllExport int
  9335. Graphics_IsDeviceLost (Urho3D::Graphics *_target)
  9336. {
  9337. return _target->IsDeviceLost ();
  9338. }
  9339. DllExport unsigned int
  9340. Graphics_GetNumPrimitives (Urho3D::Graphics *_target)
  9341. {
  9342. return _target->GetNumPrimitives ();
  9343. }
  9344. DllExport unsigned int
  9345. Graphics_GetNumBatches (Urho3D::Graphics *_target)
  9346. {
  9347. return _target->GetNumBatches ();
  9348. }
  9349. DllExport unsigned int
  9350. Graphics_GetDummyColorFormat (Urho3D::Graphics *_target)
  9351. {
  9352. return _target->GetDummyColorFormat ();
  9353. }
  9354. DllExport unsigned int
  9355. Graphics_GetShadowMapFormat (Urho3D::Graphics *_target)
  9356. {
  9357. return _target->GetShadowMapFormat ();
  9358. }
  9359. DllExport unsigned int
  9360. Graphics_GetHiresShadowMapFormat (Urho3D::Graphics *_target)
  9361. {
  9362. return _target->GetHiresShadowMapFormat ();
  9363. }
  9364. DllExport int
  9365. Graphics_GetInstancingSupport (Urho3D::Graphics *_target)
  9366. {
  9367. return _target->GetInstancingSupport ();
  9368. }
  9369. DllExport int
  9370. Graphics_GetLightPrepassSupport (Urho3D::Graphics *_target)
  9371. {
  9372. return _target->GetLightPrepassSupport ();
  9373. }
  9374. DllExport int
  9375. Graphics_GetDeferredSupport (Urho3D::Graphics *_target)
  9376. {
  9377. return _target->GetDeferredSupport ();
  9378. }
  9379. DllExport int
  9380. Graphics_GetHardwareShadowSupport (Urho3D::Graphics *_target)
  9381. {
  9382. return _target->GetHardwareShadowSupport ();
  9383. }
  9384. DllExport int
  9385. Graphics_GetReadableDepthSupport (Urho3D::Graphics *_target)
  9386. {
  9387. return _target->GetReadableDepthSupport ();
  9388. }
  9389. DllExport int
  9390. Graphics_GetSRGBSupport (Urho3D::Graphics *_target)
  9391. {
  9392. return _target->GetSRGBSupport ();
  9393. }
  9394. DllExport int
  9395. Graphics_GetSRGBWriteSupport (Urho3D::Graphics *_target)
  9396. {
  9397. return _target->GetSRGBWriteSupport ();
  9398. }
  9399. DllExport Interop::IntVector2
  9400. Graphics_GetDesktopResolution (Urho3D::Graphics *_target, int monitor)
  9401. {
  9402. return *((Interop::IntVector2 *) &(_target->GetDesktopResolution (monitor)));
  9403. }
  9404. DllExport int
  9405. Graphics_GetMonitorCount (Urho3D::Graphics *_target)
  9406. {
  9407. return _target->GetMonitorCount ();
  9408. }
  9409. DllExport unsigned int
  9410. Graphics_GetFormat (Urho3D::Graphics *_target, enum Urho3D::CompressedFormat format)
  9411. {
  9412. return _target->GetFormat (format);
  9413. }
  9414. DllExport Urho3D::ShaderVariation *
  9415. Graphics_GetShader (Urho3D::Graphics *_target, enum Urho3D::ShaderType type, const char * name, const char * defines)
  9416. {
  9417. return _target->GetShader (type, Urho3D::String(name), Urho3D::String(defines));
  9418. }
  9419. DllExport Urho3D::VertexBuffer *
  9420. Graphics_GetVertexBuffer (Urho3D::Graphics *_target, unsigned int index)
  9421. {
  9422. return _target->GetVertexBuffer (index);
  9423. }
  9424. DllExport Urho3D::IndexBuffer *
  9425. Graphics_GetIndexBuffer (Urho3D::Graphics *_target)
  9426. {
  9427. return _target->GetIndexBuffer ();
  9428. }
  9429. DllExport Urho3D::ShaderVariation *
  9430. Graphics_GetVertexShader (Urho3D::Graphics *_target)
  9431. {
  9432. return _target->GetVertexShader ();
  9433. }
  9434. DllExport Urho3D::ShaderVariation *
  9435. Graphics_GetPixelShader (Urho3D::Graphics *_target)
  9436. {
  9437. return _target->GetPixelShader ();
  9438. }
  9439. DllExport enum Urho3D::TextureUnit
  9440. Graphics_GetTextureUnit (Urho3D::Graphics *_target, const char * name)
  9441. {
  9442. return _target->GetTextureUnit (Urho3D::String(name));
  9443. }
  9444. DllExport const char *
  9445. Graphics_GetTextureUnitName (Urho3D::Graphics *_target, enum Urho3D::TextureUnit unit)
  9446. {
  9447. return stringdup((_target->GetTextureUnitName (unit)).CString ());
  9448. }
  9449. DllExport Urho3D::Texture *
  9450. Graphics_GetTexture (Urho3D::Graphics *_target, unsigned int index)
  9451. {
  9452. return _target->GetTexture (index);
  9453. }
  9454. DllExport enum Urho3D::TextureFilterMode
  9455. Graphics_GetDefaultTextureFilterMode (Urho3D::Graphics *_target)
  9456. {
  9457. return _target->GetDefaultTextureFilterMode ();
  9458. }
  9459. DllExport unsigned int
  9460. Graphics_GetDefaultTextureAnisotropy (Urho3D::Graphics *_target)
  9461. {
  9462. return _target->GetDefaultTextureAnisotropy ();
  9463. }
  9464. DllExport Urho3D::RenderSurface *
  9465. Graphics_GetRenderTarget (Urho3D::Graphics *_target, unsigned int index)
  9466. {
  9467. return _target->GetRenderTarget (index);
  9468. }
  9469. DllExport Urho3D::RenderSurface *
  9470. Graphics_GetDepthStencil (Urho3D::Graphics *_target)
  9471. {
  9472. return _target->GetDepthStencil ();
  9473. }
  9474. DllExport Interop::IntRect
  9475. Graphics_GetViewport (Urho3D::Graphics *_target)
  9476. {
  9477. return *((Interop::IntRect *) &(_target->GetViewport ()));
  9478. }
  9479. DllExport enum Urho3D::BlendMode
  9480. Graphics_GetBlendMode (Urho3D::Graphics *_target)
  9481. {
  9482. return _target->GetBlendMode ();
  9483. }
  9484. DllExport int
  9485. Graphics_GetAlphaToCoverage (Urho3D::Graphics *_target)
  9486. {
  9487. return _target->GetAlphaToCoverage ();
  9488. }
  9489. DllExport int
  9490. Graphics_GetColorWrite (Urho3D::Graphics *_target)
  9491. {
  9492. return _target->GetColorWrite ();
  9493. }
  9494. DllExport enum Urho3D::CullMode
  9495. Graphics_GetCullMode (Urho3D::Graphics *_target)
  9496. {
  9497. return _target->GetCullMode ();
  9498. }
  9499. DllExport float
  9500. Graphics_GetDepthConstantBias (Urho3D::Graphics *_target)
  9501. {
  9502. return _target->GetDepthConstantBias ();
  9503. }
  9504. DllExport float
  9505. Graphics_GetDepthSlopeScaledBias (Urho3D::Graphics *_target)
  9506. {
  9507. return _target->GetDepthSlopeScaledBias ();
  9508. }
  9509. DllExport enum Urho3D::CompareMode
  9510. Graphics_GetDepthTest (Urho3D::Graphics *_target)
  9511. {
  9512. return _target->GetDepthTest ();
  9513. }
  9514. DllExport int
  9515. Graphics_GetDepthWrite (Urho3D::Graphics *_target)
  9516. {
  9517. return _target->GetDepthWrite ();
  9518. }
  9519. DllExport enum Urho3D::FillMode
  9520. Graphics_GetFillMode (Urho3D::Graphics *_target)
  9521. {
  9522. return _target->GetFillMode ();
  9523. }
  9524. DllExport int
  9525. Graphics_GetLineAntiAlias (Urho3D::Graphics *_target)
  9526. {
  9527. return _target->GetLineAntiAlias ();
  9528. }
  9529. DllExport int
  9530. Graphics_GetStencilTest (Urho3D::Graphics *_target)
  9531. {
  9532. return _target->GetStencilTest ();
  9533. }
  9534. DllExport int
  9535. Graphics_GetScissorTest (Urho3D::Graphics *_target)
  9536. {
  9537. return _target->GetScissorTest ();
  9538. }
  9539. DllExport Interop::IntRect
  9540. Graphics_GetScissorRect (Urho3D::Graphics *_target)
  9541. {
  9542. return *((Interop::IntRect *) &(_target->GetScissorRect ()));
  9543. }
  9544. DllExport enum Urho3D::CompareMode
  9545. Graphics_GetStencilTestMode (Urho3D::Graphics *_target)
  9546. {
  9547. return _target->GetStencilTestMode ();
  9548. }
  9549. DllExport enum Urho3D::StencilOp
  9550. Graphics_GetStencilPass (Urho3D::Graphics *_target)
  9551. {
  9552. return _target->GetStencilPass ();
  9553. }
  9554. DllExport enum Urho3D::StencilOp
  9555. Graphics_GetStencilFail (Urho3D::Graphics *_target)
  9556. {
  9557. return _target->GetStencilFail ();
  9558. }
  9559. DllExport enum Urho3D::StencilOp
  9560. Graphics_GetStencilZFail (Urho3D::Graphics *_target)
  9561. {
  9562. return _target->GetStencilZFail ();
  9563. }
  9564. DllExport unsigned int
  9565. Graphics_GetStencilRef (Urho3D::Graphics *_target)
  9566. {
  9567. return _target->GetStencilRef ();
  9568. }
  9569. DllExport unsigned int
  9570. Graphics_GetStencilCompareMask (Urho3D::Graphics *_target)
  9571. {
  9572. return _target->GetStencilCompareMask ();
  9573. }
  9574. DllExport unsigned int
  9575. Graphics_GetStencilWriteMask (Urho3D::Graphics *_target)
  9576. {
  9577. return _target->GetStencilWriteMask ();
  9578. }
  9579. DllExport int
  9580. Graphics_GetUseClipPlane (Urho3D::Graphics *_target)
  9581. {
  9582. return _target->GetUseClipPlane ();
  9583. }
  9584. DllExport const char *
  9585. Graphics_GetShaderCacheDir (Urho3D::Graphics *_target)
  9586. {
  9587. return stringdup((_target->GetShaderCacheDir ()).CString ());
  9588. }
  9589. DllExport Interop::IntVector2
  9590. Graphics_GetRenderTargetDimensions (Urho3D::Graphics *_target)
  9591. {
  9592. return *((Interop::IntVector2 *) &(_target->GetRenderTargetDimensions ()));
  9593. }
  9594. DllExport void
  9595. Graphics_OnWindowResized (Urho3D::Graphics *_target)
  9596. {
  9597. _target->OnWindowResized ();
  9598. }
  9599. DllExport void
  9600. Graphics_OnWindowMoved (Urho3D::Graphics *_target)
  9601. {
  9602. _target->OnWindowMoved ();
  9603. }
  9604. DllExport void
  9605. Graphics_Maximize (Urho3D::Graphics *_target)
  9606. {
  9607. _target->Maximize ();
  9608. }
  9609. DllExport void
  9610. Graphics_Minimize (Urho3D::Graphics *_target)
  9611. {
  9612. _target->Minimize ();
  9613. }
  9614. DllExport void
  9615. Graphics_AddGPUObject (Urho3D::Graphics *_target, Urho3D::GPUObject * object)
  9616. {
  9617. _target->AddGPUObject (object);
  9618. }
  9619. DllExport void
  9620. Graphics_RemoveGPUObject (Urho3D::Graphics *_target, Urho3D::GPUObject * object)
  9621. {
  9622. _target->RemoveGPUObject (object);
  9623. }
  9624. DllExport void *
  9625. Graphics_ReserveScratchBuffer (Urho3D::Graphics *_target, unsigned int size)
  9626. {
  9627. return _target->ReserveScratchBuffer (size);
  9628. }
  9629. DllExport void
  9630. Graphics_FreeScratchBuffer (Urho3D::Graphics *_target, void * buffer)
  9631. {
  9632. _target->FreeScratchBuffer (buffer);
  9633. }
  9634. DllExport void
  9635. Graphics_CleanupScratchBuffers (Urho3D::Graphics *_target)
  9636. {
  9637. _target->CleanupScratchBuffers ();
  9638. }
  9639. DllExport unsigned int
  9640. Graphics_GetAlphaFormat ()
  9641. {
  9642. return Graphics::GetAlphaFormat ();
  9643. }
  9644. DllExport unsigned int
  9645. Graphics_GetLuminanceFormat ()
  9646. {
  9647. return Graphics::GetLuminanceFormat ();
  9648. }
  9649. DllExport unsigned int
  9650. Graphics_GetLuminanceAlphaFormat ()
  9651. {
  9652. return Graphics::GetLuminanceAlphaFormat ();
  9653. }
  9654. DllExport unsigned int
  9655. Graphics_GetRGBFormat ()
  9656. {
  9657. return Graphics::GetRGBFormat ();
  9658. }
  9659. DllExport unsigned int
  9660. Graphics_GetRGBAFormat ()
  9661. {
  9662. return Graphics::GetRGBAFormat ();
  9663. }
  9664. DllExport unsigned int
  9665. Graphics_GetRGBA16Format ()
  9666. {
  9667. return Graphics::GetRGBA16Format ();
  9668. }
  9669. DllExport unsigned int
  9670. Graphics_GetRGBAFloat16Format ()
  9671. {
  9672. return Graphics::GetRGBAFloat16Format ();
  9673. }
  9674. DllExport unsigned int
  9675. Graphics_GetRGBAFloat32Format ()
  9676. {
  9677. return Graphics::GetRGBAFloat32Format ();
  9678. }
  9679. DllExport unsigned int
  9680. Graphics_GetRG16Format ()
  9681. {
  9682. return Graphics::GetRG16Format ();
  9683. }
  9684. DllExport unsigned int
  9685. Graphics_GetRGFloat16Format ()
  9686. {
  9687. return Graphics::GetRGFloat16Format ();
  9688. }
  9689. DllExport unsigned int
  9690. Graphics_GetRGFloat32Format ()
  9691. {
  9692. return Graphics::GetRGFloat32Format ();
  9693. }
  9694. DllExport unsigned int
  9695. Graphics_GetFloat16Format ()
  9696. {
  9697. return Graphics::GetFloat16Format ();
  9698. }
  9699. DllExport unsigned int
  9700. Graphics_GetFloat32Format ()
  9701. {
  9702. return Graphics::GetFloat32Format ();
  9703. }
  9704. DllExport unsigned int
  9705. Graphics_GetLinearDepthFormat ()
  9706. {
  9707. return Graphics::GetLinearDepthFormat ();
  9708. }
  9709. DllExport unsigned int
  9710. Graphics_GetDepthStencilFormat ()
  9711. {
  9712. return Graphics::GetDepthStencilFormat ();
  9713. }
  9714. DllExport unsigned int
  9715. Graphics_GetReadableDepthFormat ()
  9716. {
  9717. return Graphics::GetReadableDepthFormat ();
  9718. }
  9719. DllExport unsigned int
  9720. Graphics_GetFormat18 (const char * formatName)
  9721. {
  9722. return Graphics::GetFormat (Urho3D::String(formatName));
  9723. }
  9724. DllExport Interop::Vector2
  9725. Graphics_GetPixelUVOffset ()
  9726. {
  9727. return *((Interop::Vector2 *) &(Graphics::GetPixelUVOffset ()));
  9728. }
  9729. DllExport unsigned int
  9730. Graphics_GetMaxBones ()
  9731. {
  9732. return Graphics::GetMaxBones ();
  9733. }
  9734. #if defined(URHO3D_OPENGL)
  9735. DllExport GPUObject*
  9736. ShaderProgram_CastToGPUObject(Urho3D::ShaderProgram *_target)
  9737. {
  9738. return static_cast<GPUObject*>(_target);
  9739. }
  9740. #endif
  9741. DllExport void *
  9742. ShaderProgram_ShaderProgram (Urho3D::Graphics * graphics, Urho3D::ShaderVariation * vertexShader, Urho3D::ShaderVariation * pixelShader)
  9743. {
  9744. return WeakPtr<ShaderProgram>(new ShaderProgram(graphics, vertexShader, pixelShader));
  9745. }
  9746. DllExport int
  9747. Viewport_GetType (Urho3D::Viewport *_target)
  9748. {
  9749. return (_target->GetType ()).Value ();
  9750. }
  9751. DllExport const char *
  9752. Viewport_GetTypeName (Urho3D::Viewport *_target)
  9753. {
  9754. return stringdup((_target->GetTypeName ()).CString ());
  9755. }
  9756. DllExport int
  9757. Viewport_GetTypeStatic ()
  9758. {
  9759. return (Viewport::GetTypeStatic ()).Value ();
  9760. }
  9761. DllExport const char *
  9762. Viewport_GetTypeNameStatic ()
  9763. {
  9764. return stringdup((Viewport::GetTypeNameStatic ()).CString ());
  9765. }
  9766. DllExport void *
  9767. Viewport_Viewport (Urho3D::Context * context)
  9768. {
  9769. return WeakPtr<Viewport>(new Viewport(context));
  9770. }
  9771. DllExport void *
  9772. Viewport_Viewport0 (Urho3D::Context * context, Urho3D::Scene * scene, Urho3D::Camera * camera, Urho3D::RenderPath * renderPath)
  9773. {
  9774. return WeakPtr<Viewport>(new Viewport(context, scene, camera, renderPath));
  9775. }
  9776. DllExport void *
  9777. Viewport_Viewport1 (Urho3D::Context * context, Urho3D::Scene * scene, Urho3D::Camera * camera, const class Urho3D::IntRect & rect, Urho3D::RenderPath * renderPath)
  9778. {
  9779. return WeakPtr<Viewport>(new Viewport(context, scene, camera, rect, renderPath));
  9780. }
  9781. DllExport void
  9782. Viewport_SetScene (Urho3D::Viewport *_target, Urho3D::Scene * scene)
  9783. {
  9784. _target->SetScene (scene);
  9785. }
  9786. DllExport void
  9787. Viewport_SetCamera (Urho3D::Viewport *_target, Urho3D::Camera * camera)
  9788. {
  9789. _target->SetCamera (camera);
  9790. }
  9791. DllExport void
  9792. Viewport_SetRect (Urho3D::Viewport *_target, const class Urho3D::IntRect & rect)
  9793. {
  9794. _target->SetRect (rect);
  9795. }
  9796. DllExport void
  9797. Viewport_SetRenderPath (Urho3D::Viewport *_target, Urho3D::RenderPath * path)
  9798. {
  9799. _target->SetRenderPath (path);
  9800. }
  9801. DllExport void
  9802. Viewport_SetStereoMode (Urho3D::Viewport *_target, bool stereo)
  9803. {
  9804. _target->SetStereoMode (stereo);
  9805. }
  9806. DllExport void
  9807. Viewport_SetRenderPath2 (Urho3D::Viewport *_target, Urho3D::XMLFile * file)
  9808. {
  9809. _target->SetRenderPath (file);
  9810. }
  9811. DllExport void
  9812. Viewport_SetDrawDebug (Urho3D::Viewport *_target, bool enable)
  9813. {
  9814. _target->SetDrawDebug (enable);
  9815. }
  9816. DllExport void
  9817. Viewport_SetCullCamera (Urho3D::Viewport *_target, Urho3D::Camera * camera)
  9818. {
  9819. _target->SetCullCamera (camera);
  9820. }
  9821. DllExport Urho3D::Scene *
  9822. Viewport_GetScene (Urho3D::Viewport *_target)
  9823. {
  9824. return _target->GetScene ();
  9825. }
  9826. DllExport Urho3D::Camera *
  9827. Viewport_GetCamera (Urho3D::Viewport *_target)
  9828. {
  9829. return _target->GetCamera ();
  9830. }
  9831. DllExport Urho3D::View *
  9832. Viewport_GetView (Urho3D::Viewport *_target)
  9833. {
  9834. return _target->GetView ();
  9835. }
  9836. DllExport Interop::IntRect
  9837. Viewport_GetRect (Urho3D::Viewport *_target)
  9838. {
  9839. return *((Interop::IntRect *) &(_target->GetRect ()));
  9840. }
  9841. DllExport Urho3D::RenderPath *
  9842. Viewport_GetRenderPath (Urho3D::Viewport *_target)
  9843. {
  9844. return _target->GetRenderPath ();
  9845. }
  9846. DllExport int
  9847. Viewport_GetDrawDebug (Urho3D::Viewport *_target)
  9848. {
  9849. return _target->GetDrawDebug ();
  9850. }
  9851. DllExport Urho3D::Camera *
  9852. Viewport_GetCullCamera (Urho3D::Viewport *_target)
  9853. {
  9854. return _target->GetCullCamera ();
  9855. }
  9856. DllExport Urho3D::Ray
  9857. Viewport_GetScreenRay (Urho3D::Viewport *_target, int x, int y)
  9858. {
  9859. return _target->GetScreenRay (x, y);
  9860. }
  9861. DllExport Interop::IntVector2
  9862. Viewport_WorldToScreenPoint (Urho3D::Viewport *_target, const class Urho3D::Vector3 & worldPos)
  9863. {
  9864. return *((Interop::IntVector2 *) &(_target->WorldToScreenPoint (worldPos)));
  9865. }
  9866. DllExport Interop::Vector3
  9867. Viewport_ScreenToWorldPoint (Urho3D::Viewport *_target, int x, int y, float depth)
  9868. {
  9869. return *((Interop::Vector3 *) &(_target->ScreenToWorldPoint (x, y, depth)));
  9870. }
  9871. DllExport void
  9872. Viewport_AllocateView (Urho3D::Viewport *_target)
  9873. {
  9874. _target->AllocateView ();
  9875. }
  9876. DllExport void *
  9877. RenderSurface_RenderSurface (Urho3D::Texture * parentTexture)
  9878. {
  9879. return WeakPtr<RenderSurface>(new RenderSurface(parentTexture));
  9880. }
  9881. DllExport void
  9882. RenderSurface_SetNumViewports (Urho3D::RenderSurface *_target, unsigned int num)
  9883. {
  9884. _target->SetNumViewports (num);
  9885. }
  9886. DllExport void
  9887. RenderSurface_SetViewport (Urho3D::RenderSurface *_target, unsigned int index, Urho3D::Viewport * viewport)
  9888. {
  9889. _target->SetViewport (index, viewport);
  9890. }
  9891. DllExport void
  9892. RenderSurface_SetUpdateMode (Urho3D::RenderSurface *_target, enum Urho3D::RenderSurfaceUpdateMode mode)
  9893. {
  9894. _target->SetUpdateMode (mode);
  9895. }
  9896. DllExport void
  9897. RenderSurface_SetLinkedRenderTarget (Urho3D::RenderSurface *_target, Urho3D::RenderSurface * renderTarget)
  9898. {
  9899. _target->SetLinkedRenderTarget (renderTarget);
  9900. }
  9901. DllExport void
  9902. RenderSurface_SetLinkedDepthStencil (Urho3D::RenderSurface *_target, Urho3D::RenderSurface * depthStencil)
  9903. {
  9904. _target->SetLinkedDepthStencil (depthStencil);
  9905. }
  9906. DllExport void
  9907. RenderSurface_QueueUpdate (Urho3D::RenderSurface *_target)
  9908. {
  9909. _target->QueueUpdate ();
  9910. }
  9911. DllExport void
  9912. RenderSurface_Release (Urho3D::RenderSurface *_target)
  9913. {
  9914. _target->Release ();
  9915. }
  9916. DllExport int
  9917. RenderSurface_GetWidth (Urho3D::RenderSurface *_target)
  9918. {
  9919. return _target->GetWidth ();
  9920. }
  9921. DllExport int
  9922. RenderSurface_GetHeight (Urho3D::RenderSurface *_target)
  9923. {
  9924. return _target->GetHeight ();
  9925. }
  9926. DllExport enum Urho3D::TextureUsage
  9927. RenderSurface_GetUsage (Urho3D::RenderSurface *_target)
  9928. {
  9929. return _target->GetUsage ();
  9930. }
  9931. DllExport int
  9932. RenderSurface_GetMultiSample (Urho3D::RenderSurface *_target)
  9933. {
  9934. return _target->GetMultiSample ();
  9935. }
  9936. DllExport int
  9937. RenderSurface_GetAutoResolve (Urho3D::RenderSurface *_target)
  9938. {
  9939. return _target->GetAutoResolve ();
  9940. }
  9941. DllExport unsigned int
  9942. RenderSurface_GetNumViewports (Urho3D::RenderSurface *_target)
  9943. {
  9944. return _target->GetNumViewports ();
  9945. }
  9946. DllExport Urho3D::Viewport *
  9947. RenderSurface_GetViewport (Urho3D::RenderSurface *_target, unsigned int index)
  9948. {
  9949. return _target->GetViewport (index);
  9950. }
  9951. DllExport enum Urho3D::RenderSurfaceUpdateMode
  9952. RenderSurface_GetUpdateMode (Urho3D::RenderSurface *_target)
  9953. {
  9954. return _target->GetUpdateMode ();
  9955. }
  9956. DllExport Urho3D::RenderSurface *
  9957. RenderSurface_GetLinkedRenderTarget (Urho3D::RenderSurface *_target)
  9958. {
  9959. return _target->GetLinkedRenderTarget ();
  9960. }
  9961. DllExport Urho3D::RenderSurface *
  9962. RenderSurface_GetLinkedDepthStencil (Urho3D::RenderSurface *_target)
  9963. {
  9964. return _target->GetLinkedDepthStencil ();
  9965. }
  9966. DllExport int
  9967. RenderSurface_IsUpdateQueued (Urho3D::RenderSurface *_target)
  9968. {
  9969. return _target->IsUpdateQueued ();
  9970. }
  9971. DllExport void
  9972. RenderSurface_ResetUpdateQueued (Urho3D::RenderSurface *_target)
  9973. {
  9974. _target->ResetUpdateQueued ();
  9975. }
  9976. DllExport Urho3D::Texture *
  9977. RenderSurface_GetParentTexture (Urho3D::RenderSurface *_target)
  9978. {
  9979. return _target->GetParentTexture ();
  9980. }
  9981. DllExport void *
  9982. RenderSurface_GetSurface (Urho3D::RenderSurface *_target)
  9983. {
  9984. return _target->GetSurface ();
  9985. }
  9986. DllExport void *
  9987. RenderSurface_GetRenderTargetView (Urho3D::RenderSurface *_target)
  9988. {
  9989. return _target->GetRenderTargetView ();
  9990. }
  9991. DllExport void *
  9992. RenderSurface_GetReadOnlyView (Urho3D::RenderSurface *_target)
  9993. {
  9994. return _target->GetReadOnlyView ();
  9995. }
  9996. DllExport int
  9997. RenderSurface_IsResolveDirty (Urho3D::RenderSurface *_target)
  9998. {
  9999. return _target->IsResolveDirty ();
  10000. }
  10001. DllExport void
  10002. RenderSurface_SetResolveDirty (Urho3D::RenderSurface *_target, bool enable)
  10003. {
  10004. _target->SetResolveDirty (enable);
  10005. }
  10006. DllExport int
  10007. Texture2D_GetType (Urho3D::Texture2D *_target)
  10008. {
  10009. return (_target->GetType ()).Value ();
  10010. }
  10011. DllExport const char *
  10012. Texture2D_GetTypeName (Urho3D::Texture2D *_target)
  10013. {
  10014. return stringdup((_target->GetTypeName ()).CString ());
  10015. }
  10016. DllExport int
  10017. Texture2D_GetTypeStatic ()
  10018. {
  10019. return (Texture2D::GetTypeStatic ()).Value ();
  10020. }
  10021. DllExport const char *
  10022. Texture2D_GetTypeNameStatic ()
  10023. {
  10024. return stringdup((Texture2D::GetTypeNameStatic ()).CString ());
  10025. }
  10026. DllExport void *
  10027. Texture2D_Texture2D (Urho3D::Context * context)
  10028. {
  10029. return WeakPtr<Texture2D>(new Texture2D(context));
  10030. }
  10031. DllExport void
  10032. Texture2D_RegisterObject (Urho3D::Context * context)
  10033. {
  10034. Texture2D::RegisterObject (context);
  10035. }
  10036. DllExport int
  10037. Texture2D_BeginLoad_File (Urho3D::Texture2D *_target, File * source)
  10038. {
  10039. return _target->BeginLoad (*source);
  10040. }
  10041. DllExport int
  10042. Texture2D_BeginLoad_MemoryBuffer (Urho3D::Texture2D *_target, MemoryBuffer * source)
  10043. {
  10044. return _target->BeginLoad (*source);
  10045. }
  10046. DllExport int
  10047. Texture2D_EndLoad (Urho3D::Texture2D *_target)
  10048. {
  10049. return _target->EndLoad ();
  10050. }
  10051. DllExport void
  10052. Texture2D_Release (Urho3D::Texture2D *_target)
  10053. {
  10054. _target->Release ();
  10055. }
  10056. DllExport int
  10057. Texture2D_SetSize (Urho3D::Texture2D *_target, int width, int height, unsigned int format, enum Urho3D::TextureUsage usage, int multiSample, bool autoResolve)
  10058. {
  10059. return _target->SetSize (width, height, format, usage, multiSample, autoResolve);
  10060. }
  10061. DllExport int
  10062. Texture2D_SetData (Urho3D::Texture2D *_target, unsigned int level, int x, int y, int width, int height, const void * data)
  10063. {
  10064. return _target->SetData (level, x, y, width, height, data);
  10065. }
  10066. DllExport int
  10067. Texture2D_SetData0 (Urho3D::Texture2D *_target, Urho3D::Image * image, bool useAlpha)
  10068. {
  10069. return _target->SetData (image, useAlpha);
  10070. }
  10071. DllExport int
  10072. Texture2D_GetData (Urho3D::Texture2D *_target, unsigned int level, void * dest)
  10073. {
  10074. return _target->GetData (level, dest);
  10075. }
  10076. DllExport Urho3D::Image *
  10077. Texture2D_GetImage (Urho3D::Texture2D *_target)
  10078. {
  10079. auto copy = _target->GetImage ();
  10080. auto plain = copy.Get();
  10081. copy.Detach();
  10082. delete copy;
  10083. return plain;
  10084. }
  10085. DllExport Urho3D::RenderSurface *
  10086. Texture2D_GetRenderSurface (Urho3D::Texture2D *_target)
  10087. {
  10088. return _target->GetRenderSurface ();
  10089. }
  10090. DllExport GPUObject*
  10091. IndexBuffer_CastToGPUObject(Urho3D::IndexBuffer *_target)
  10092. {
  10093. return static_cast<GPUObject*>(_target);
  10094. }
  10095. DllExport int
  10096. IndexBuffer_GetType (Urho3D::IndexBuffer *_target)
  10097. {
  10098. return (_target->GetType ()).Value ();
  10099. }
  10100. DllExport const char *
  10101. IndexBuffer_GetTypeName (Urho3D::IndexBuffer *_target)
  10102. {
  10103. return stringdup((_target->GetTypeName ()).CString ());
  10104. }
  10105. DllExport int
  10106. IndexBuffer_GetTypeStatic ()
  10107. {
  10108. return (IndexBuffer::GetTypeStatic ()).Value ();
  10109. }
  10110. DllExport const char *
  10111. IndexBuffer_GetTypeNameStatic ()
  10112. {
  10113. return stringdup((IndexBuffer::GetTypeNameStatic ()).CString ());
  10114. }
  10115. DllExport void *
  10116. IndexBuffer_IndexBuffer (Urho3D::Context * context, bool forceHeadless)
  10117. {
  10118. return WeakPtr<IndexBuffer>(new IndexBuffer(context, forceHeadless));
  10119. }
  10120. DllExport void
  10121. IndexBuffer_OnDeviceLost (Urho3D::IndexBuffer *_target)
  10122. {
  10123. _target->OnDeviceLost ();
  10124. }
  10125. DllExport void
  10126. IndexBuffer_Release (Urho3D::IndexBuffer *_target)
  10127. {
  10128. _target->Release ();
  10129. }
  10130. DllExport void
  10131. IndexBuffer_SetShadowed (Urho3D::IndexBuffer *_target, bool enable)
  10132. {
  10133. _target->SetShadowed (enable);
  10134. }
  10135. DllExport int
  10136. IndexBuffer_SetSize (Urho3D::IndexBuffer *_target, unsigned int indexCount, bool largeIndices, bool dynamic)
  10137. {
  10138. return _target->SetSize (indexCount, largeIndices, dynamic);
  10139. }
  10140. DllExport int
  10141. IndexBuffer_SetData (Urho3D::IndexBuffer *_target, const void * data)
  10142. {
  10143. return _target->SetData (data);
  10144. }
  10145. DllExport int
  10146. IndexBuffer_SetDataRange (Urho3D::IndexBuffer *_target, const void * data, unsigned int start, unsigned int count, bool discard)
  10147. {
  10148. return _target->SetDataRange (data, start, count, discard);
  10149. }
  10150. DllExport void *
  10151. IndexBuffer_Lock (Urho3D::IndexBuffer *_target, unsigned int start, unsigned int count, bool discard)
  10152. {
  10153. return _target->Lock (start, count, discard);
  10154. }
  10155. DllExport void
  10156. IndexBuffer_Unlock (Urho3D::IndexBuffer *_target)
  10157. {
  10158. _target->Unlock ();
  10159. }
  10160. DllExport int
  10161. IndexBuffer_IsShadowed (Urho3D::IndexBuffer *_target)
  10162. {
  10163. return _target->IsShadowed ();
  10164. }
  10165. DllExport int
  10166. IndexBuffer_IsDynamic (Urho3D::IndexBuffer *_target)
  10167. {
  10168. return _target->IsDynamic ();
  10169. }
  10170. DllExport int
  10171. IndexBuffer_IsLocked (Urho3D::IndexBuffer *_target)
  10172. {
  10173. return _target->IsLocked ();
  10174. }
  10175. DllExport unsigned int
  10176. IndexBuffer_GetIndexCount (Urho3D::IndexBuffer *_target)
  10177. {
  10178. return _target->GetIndexCount ();
  10179. }
  10180. DllExport unsigned int
  10181. IndexBuffer_GetIndexSize (Urho3D::IndexBuffer *_target)
  10182. {
  10183. return _target->GetIndexSize ();
  10184. }
  10185. DllExport unsigned char *
  10186. IndexBuffer_GetShadowData (Urho3D::IndexBuffer *_target)
  10187. {
  10188. return _target->GetShadowData ();
  10189. }
  10190. DllExport int
  10191. OcclusionBuffer_GetType (Urho3D::OcclusionBuffer *_target)
  10192. {
  10193. return (_target->GetType ()).Value ();
  10194. }
  10195. DllExport const char *
  10196. OcclusionBuffer_GetTypeName (Urho3D::OcclusionBuffer *_target)
  10197. {
  10198. return stringdup((_target->GetTypeName ()).CString ());
  10199. }
  10200. DllExport int
  10201. OcclusionBuffer_GetTypeStatic ()
  10202. {
  10203. return (OcclusionBuffer::GetTypeStatic ()).Value ();
  10204. }
  10205. DllExport const char *
  10206. OcclusionBuffer_GetTypeNameStatic ()
  10207. {
  10208. return stringdup((OcclusionBuffer::GetTypeNameStatic ()).CString ());
  10209. }
  10210. DllExport void *
  10211. OcclusionBuffer_OcclusionBuffer (Urho3D::Context * context)
  10212. {
  10213. return WeakPtr<OcclusionBuffer>(new OcclusionBuffer(context));
  10214. }
  10215. DllExport int
  10216. OcclusionBuffer_SetSize (Urho3D::OcclusionBuffer *_target, int width, int height, bool threaded)
  10217. {
  10218. return _target->SetSize (width, height, threaded);
  10219. }
  10220. DllExport void
  10221. OcclusionBuffer_SetView (Urho3D::OcclusionBuffer *_target, Urho3D::Camera * camera)
  10222. {
  10223. _target->SetView (camera);
  10224. }
  10225. DllExport void
  10226. OcclusionBuffer_SetMaxTriangles (Urho3D::OcclusionBuffer *_target, unsigned int triangles)
  10227. {
  10228. _target->SetMaxTriangles (triangles);
  10229. }
  10230. DllExport void
  10231. OcclusionBuffer_SetCullMode (Urho3D::OcclusionBuffer *_target, enum Urho3D::CullMode mode)
  10232. {
  10233. _target->SetCullMode (mode);
  10234. }
  10235. DllExport void
  10236. OcclusionBuffer_Reset (Urho3D::OcclusionBuffer *_target)
  10237. {
  10238. _target->Reset ();
  10239. }
  10240. DllExport void
  10241. OcclusionBuffer_Clear (Urho3D::OcclusionBuffer *_target)
  10242. {
  10243. _target->Clear ();
  10244. }
  10245. DllExport int
  10246. OcclusionBuffer_AddTriangles (Urho3D::OcclusionBuffer *_target, const class Urho3D::Matrix3x4 & model, const void * vertexData, unsigned int vertexSize, unsigned int vertexStart, unsigned int vertexCount)
  10247. {
  10248. return _target->AddTriangles (model, vertexData, vertexSize, vertexStart, vertexCount);
  10249. }
  10250. DllExport int
  10251. 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)
  10252. {
  10253. return _target->AddTriangles (model, vertexData, vertexSize, indexData, indexSize, indexStart, indexCount);
  10254. }
  10255. DllExport void
  10256. OcclusionBuffer_DrawTriangles (Urho3D::OcclusionBuffer *_target)
  10257. {
  10258. _target->DrawTriangles ();
  10259. }
  10260. DllExport void
  10261. OcclusionBuffer_BuildDepthHierarchy (Urho3D::OcclusionBuffer *_target)
  10262. {
  10263. _target->BuildDepthHierarchy ();
  10264. }
  10265. DllExport void
  10266. OcclusionBuffer_ResetUseTimer (Urho3D::OcclusionBuffer *_target)
  10267. {
  10268. _target->ResetUseTimer ();
  10269. }
  10270. DllExport int *
  10271. OcclusionBuffer_GetBuffer (Urho3D::OcclusionBuffer *_target)
  10272. {
  10273. return _target->GetBuffer ();
  10274. }
  10275. DllExport Interop::Matrix3x4
  10276. OcclusionBuffer_GetView (Urho3D::OcclusionBuffer *_target)
  10277. {
  10278. return *((Interop::Matrix3x4 *) &(_target->GetView ()));
  10279. }
  10280. DllExport Interop::Matrix4
  10281. OcclusionBuffer_GetProjection (Urho3D::OcclusionBuffer *_target)
  10282. {
  10283. return *((Interop::Matrix4 *) &(_target->GetProjection ()));
  10284. }
  10285. DllExport int
  10286. OcclusionBuffer_GetWidth (Urho3D::OcclusionBuffer *_target)
  10287. {
  10288. return _target->GetWidth ();
  10289. }
  10290. DllExport int
  10291. OcclusionBuffer_GetHeight (Urho3D::OcclusionBuffer *_target)
  10292. {
  10293. return _target->GetHeight ();
  10294. }
  10295. DllExport unsigned int
  10296. OcclusionBuffer_GetNumTriangles (Urho3D::OcclusionBuffer *_target)
  10297. {
  10298. return _target->GetNumTriangles ();
  10299. }
  10300. DllExport unsigned int
  10301. OcclusionBuffer_GetMaxTriangles (Urho3D::OcclusionBuffer *_target)
  10302. {
  10303. return _target->GetMaxTriangles ();
  10304. }
  10305. DllExport enum Urho3D::CullMode
  10306. OcclusionBuffer_GetCullMode (Urho3D::OcclusionBuffer *_target)
  10307. {
  10308. return _target->GetCullMode ();
  10309. }
  10310. DllExport int
  10311. OcclusionBuffer_IsThreaded (Urho3D::OcclusionBuffer *_target)
  10312. {
  10313. return _target->IsThreaded ();
  10314. }
  10315. DllExport int
  10316. OcclusionBuffer_IsVisible (Urho3D::OcclusionBuffer *_target, const class Urho3D::BoundingBox & worldSpaceBox)
  10317. {
  10318. return _target->IsVisible (worldSpaceBox);
  10319. }
  10320. DllExport unsigned int
  10321. OcclusionBuffer_GetUseTimer (Urho3D::OcclusionBuffer *_target)
  10322. {
  10323. return _target->GetUseTimer ();
  10324. }
  10325. DllExport int
  10326. Octree_GetType (Urho3D::Octree *_target)
  10327. {
  10328. return (_target->GetType ()).Value ();
  10329. }
  10330. DllExport const char *
  10331. Octree_GetTypeName (Urho3D::Octree *_target)
  10332. {
  10333. return stringdup((_target->GetTypeName ()).CString ());
  10334. }
  10335. DllExport int
  10336. Octree_GetTypeStatic ()
  10337. {
  10338. return (Octree::GetTypeStatic ()).Value ();
  10339. }
  10340. DllExport const char *
  10341. Octree_GetTypeNameStatic ()
  10342. {
  10343. return stringdup((Octree::GetTypeNameStatic ()).CString ());
  10344. }
  10345. DllExport void *
  10346. Octree_Octree (Urho3D::Context * context)
  10347. {
  10348. return WeakPtr<Octree>(new Octree(context));
  10349. }
  10350. DllExport void
  10351. Octree_RegisterObject (Urho3D::Context * context)
  10352. {
  10353. Octree::RegisterObject (context);
  10354. }
  10355. DllExport void
  10356. Octree_DrawDebugGeometry (Urho3D::Octree *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  10357. {
  10358. _target->DrawDebugGeometry (debug, depthTest);
  10359. }
  10360. DllExport void
  10361. Octree_SetSize (Urho3D::Octree *_target, const class Urho3D::BoundingBox & box, unsigned int numLevels)
  10362. {
  10363. _target->SetSize (box, numLevels);
  10364. }
  10365. DllExport void
  10366. Octree_AddManualDrawable (Urho3D::Octree *_target, Urho3D::Drawable * drawable)
  10367. {
  10368. _target->AddManualDrawable (drawable);
  10369. }
  10370. DllExport void
  10371. Octree_RemoveManualDrawable (Urho3D::Octree *_target, Urho3D::Drawable * drawable)
  10372. {
  10373. _target->RemoveManualDrawable (drawable);
  10374. }
  10375. DllExport unsigned int
  10376. Octree_GetNumLevels (Urho3D::Octree *_target)
  10377. {
  10378. return _target->GetNumLevels ();
  10379. }
  10380. DllExport void
  10381. Octree_QueueUpdate (Urho3D::Octree *_target, Urho3D::Drawable * drawable)
  10382. {
  10383. _target->QueueUpdate (drawable);
  10384. }
  10385. DllExport void
  10386. Octree_CancelUpdate (Urho3D::Octree *_target, Urho3D::Drawable * drawable)
  10387. {
  10388. _target->CancelUpdate (drawable);
  10389. }
  10390. DllExport void
  10391. Octree_DrawDebugGeometry0 (Urho3D::Octree *_target, bool depthTest)
  10392. {
  10393. _target->DrawDebugGeometry (depthTest);
  10394. }
  10395. DllExport int
  10396. ParticleEffect_GetType (Urho3D::ParticleEffect *_target)
  10397. {
  10398. return (_target->GetType ()).Value ();
  10399. }
  10400. DllExport const char *
  10401. ParticleEffect_GetTypeName (Urho3D::ParticleEffect *_target)
  10402. {
  10403. return stringdup((_target->GetTypeName ()).CString ());
  10404. }
  10405. DllExport int
  10406. ParticleEffect_GetTypeStatic ()
  10407. {
  10408. return (ParticleEffect::GetTypeStatic ()).Value ();
  10409. }
  10410. DllExport const char *
  10411. ParticleEffect_GetTypeNameStatic ()
  10412. {
  10413. return stringdup((ParticleEffect::GetTypeNameStatic ()).CString ());
  10414. }
  10415. DllExport void *
  10416. ParticleEffect_ParticleEffect (Urho3D::Context * context)
  10417. {
  10418. return WeakPtr<ParticleEffect>(new ParticleEffect(context));
  10419. }
  10420. DllExport void
  10421. ParticleEffect_RegisterObject (Urho3D::Context * context)
  10422. {
  10423. ParticleEffect::RegisterObject (context);
  10424. }
  10425. DllExport int
  10426. ParticleEffect_BeginLoad_File (Urho3D::ParticleEffect *_target, File * source)
  10427. {
  10428. return _target->BeginLoad (*source);
  10429. }
  10430. DllExport int
  10431. ParticleEffect_BeginLoad_MemoryBuffer (Urho3D::ParticleEffect *_target, MemoryBuffer * source)
  10432. {
  10433. return _target->BeginLoad (*source);
  10434. }
  10435. DllExport int
  10436. ParticleEffect_EndLoad (Urho3D::ParticleEffect *_target)
  10437. {
  10438. return _target->EndLoad ();
  10439. }
  10440. DllExport int
  10441. ParticleEffect_Save_File (Urho3D::ParticleEffect *_target, File * dest)
  10442. {
  10443. return _target->Save (*dest);
  10444. }
  10445. DllExport int
  10446. ParticleEffect_Save_MemoryBuffer (Urho3D::ParticleEffect *_target, MemoryBuffer * dest)
  10447. {
  10448. return _target->Save (*dest);
  10449. }
  10450. DllExport int
  10451. ParticleEffect_Save0 (Urho3D::ParticleEffect *_target, Urho3D::XMLElement & dest)
  10452. {
  10453. return _target->Save (dest);
  10454. }
  10455. DllExport int
  10456. ParticleEffect_Load (Urho3D::ParticleEffect *_target, const class Urho3D::XMLElement & source)
  10457. {
  10458. return _target->Load (source);
  10459. }
  10460. DllExport void
  10461. ParticleEffect_SetMaterial (Urho3D::ParticleEffect *_target, Urho3D::Material * material)
  10462. {
  10463. _target->SetMaterial (material);
  10464. }
  10465. DllExport void
  10466. ParticleEffect_SetNumParticles (Urho3D::ParticleEffect *_target, unsigned int num)
  10467. {
  10468. _target->SetNumParticles (num);
  10469. }
  10470. DllExport void
  10471. ParticleEffect_SetUpdateInvisible (Urho3D::ParticleEffect *_target, bool enable)
  10472. {
  10473. _target->SetUpdateInvisible (enable);
  10474. }
  10475. DllExport void
  10476. ParticleEffect_SetRelative (Urho3D::ParticleEffect *_target, bool enable)
  10477. {
  10478. _target->SetRelative (enable);
  10479. }
  10480. DllExport void
  10481. ParticleEffect_SetScaled (Urho3D::ParticleEffect *_target, bool enable)
  10482. {
  10483. _target->SetScaled (enable);
  10484. }
  10485. DllExport void
  10486. ParticleEffect_SetSorted (Urho3D::ParticleEffect *_target, bool enable)
  10487. {
  10488. _target->SetSorted (enable);
  10489. }
  10490. DllExport void
  10491. ParticleEffect_SetFixedScreenSize (Urho3D::ParticleEffect *_target, bool enable)
  10492. {
  10493. _target->SetFixedScreenSize (enable);
  10494. }
  10495. DllExport void
  10496. ParticleEffect_SetAnimationLodBias (Urho3D::ParticleEffect *_target, float lodBias)
  10497. {
  10498. _target->SetAnimationLodBias (lodBias);
  10499. }
  10500. DllExport void
  10501. ParticleEffect_SetEmitterType (Urho3D::ParticleEffect *_target, enum Urho3D::EmitterType type)
  10502. {
  10503. _target->SetEmitterType (type);
  10504. }
  10505. DllExport void
  10506. ParticleEffect_SetEmitterSize (Urho3D::ParticleEffect *_target, const class Urho3D::Vector3 & size)
  10507. {
  10508. _target->SetEmitterSize (size);
  10509. }
  10510. DllExport void
  10511. ParticleEffect_SetMinDirection (Urho3D::ParticleEffect *_target, const class Urho3D::Vector3 & direction)
  10512. {
  10513. _target->SetMinDirection (direction);
  10514. }
  10515. DllExport void
  10516. ParticleEffect_SetMaxDirection (Urho3D::ParticleEffect *_target, const class Urho3D::Vector3 & direction)
  10517. {
  10518. _target->SetMaxDirection (direction);
  10519. }
  10520. DllExport void
  10521. ParticleEffect_SetConstantForce (Urho3D::ParticleEffect *_target, const class Urho3D::Vector3 & force)
  10522. {
  10523. _target->SetConstantForce (force);
  10524. }
  10525. DllExport void
  10526. ParticleEffect_SetDampingForce (Urho3D::ParticleEffect *_target, float force)
  10527. {
  10528. _target->SetDampingForce (force);
  10529. }
  10530. DllExport void
  10531. ParticleEffect_SetActiveTime (Urho3D::ParticleEffect *_target, float time)
  10532. {
  10533. _target->SetActiveTime (time);
  10534. }
  10535. DllExport void
  10536. ParticleEffect_SetInactiveTime (Urho3D::ParticleEffect *_target, float time)
  10537. {
  10538. _target->SetInactiveTime (time);
  10539. }
  10540. DllExport void
  10541. ParticleEffect_SetMinEmissionRate (Urho3D::ParticleEffect *_target, float rate)
  10542. {
  10543. _target->SetMinEmissionRate (rate);
  10544. }
  10545. DllExport void
  10546. ParticleEffect_SetMaxEmissionRate (Urho3D::ParticleEffect *_target, float rate)
  10547. {
  10548. _target->SetMaxEmissionRate (rate);
  10549. }
  10550. DllExport void
  10551. ParticleEffect_SetMinParticleSize (Urho3D::ParticleEffect *_target, const class Urho3D::Vector2 & size)
  10552. {
  10553. _target->SetMinParticleSize (size);
  10554. }
  10555. DllExport void
  10556. ParticleEffect_SetMaxParticleSize (Urho3D::ParticleEffect *_target, const class Urho3D::Vector2 & size)
  10557. {
  10558. _target->SetMaxParticleSize (size);
  10559. }
  10560. DllExport void
  10561. ParticleEffect_SetMinTimeToLive (Urho3D::ParticleEffect *_target, float time)
  10562. {
  10563. _target->SetMinTimeToLive (time);
  10564. }
  10565. DllExport void
  10566. ParticleEffect_SetMaxTimeToLive (Urho3D::ParticleEffect *_target, float time)
  10567. {
  10568. _target->SetMaxTimeToLive (time);
  10569. }
  10570. DllExport void
  10571. ParticleEffect_SetMinVelocity (Urho3D::ParticleEffect *_target, float velocity)
  10572. {
  10573. _target->SetMinVelocity (velocity);
  10574. }
  10575. DllExport void
  10576. ParticleEffect_SetMaxVelocity (Urho3D::ParticleEffect *_target, float velocity)
  10577. {
  10578. _target->SetMaxVelocity (velocity);
  10579. }
  10580. DllExport void
  10581. ParticleEffect_SetMinRotation (Urho3D::ParticleEffect *_target, float rotation)
  10582. {
  10583. _target->SetMinRotation (rotation);
  10584. }
  10585. DllExport void
  10586. ParticleEffect_SetMaxRotation (Urho3D::ParticleEffect *_target, float rotation)
  10587. {
  10588. _target->SetMaxRotation (rotation);
  10589. }
  10590. DllExport void
  10591. ParticleEffect_SetMinRotationSpeed (Urho3D::ParticleEffect *_target, float speed)
  10592. {
  10593. _target->SetMinRotationSpeed (speed);
  10594. }
  10595. DllExport void
  10596. ParticleEffect_SetMaxRotationSpeed (Urho3D::ParticleEffect *_target, float speed)
  10597. {
  10598. _target->SetMaxRotationSpeed (speed);
  10599. }
  10600. DllExport void
  10601. ParticleEffect_SetSizeAdd (Urho3D::ParticleEffect *_target, float sizeAdd)
  10602. {
  10603. _target->SetSizeAdd (sizeAdd);
  10604. }
  10605. DllExport void
  10606. ParticleEffect_SetSizeMul (Urho3D::ParticleEffect *_target, float sizeMul)
  10607. {
  10608. _target->SetSizeMul (sizeMul);
  10609. }
  10610. DllExport void
  10611. ParticleEffect_SetFaceCameraMode (Urho3D::ParticleEffect *_target, enum Urho3D::FaceCameraMode mode)
  10612. {
  10613. _target->SetFaceCameraMode (mode);
  10614. }
  10615. DllExport void
  10616. ParticleEffect_AddColorTime (Urho3D::ParticleEffect *_target, const class Urho3D::Color & color, float time)
  10617. {
  10618. _target->AddColorTime (color, time);
  10619. }
  10620. DllExport void
  10621. ParticleEffect_RemoveColorFrame (Urho3D::ParticleEffect *_target, unsigned int index)
  10622. {
  10623. _target->RemoveColorFrame (index);
  10624. }
  10625. DllExport void
  10626. ParticleEffect_SetNumColorFrames (Urho3D::ParticleEffect *_target, unsigned int number)
  10627. {
  10628. _target->SetNumColorFrames (number);
  10629. }
  10630. DllExport void
  10631. ParticleEffect_SortColorFrames (Urho3D::ParticleEffect *_target)
  10632. {
  10633. _target->SortColorFrames ();
  10634. }
  10635. DllExport void
  10636. ParticleEffect_RemoveTextureFrame (Urho3D::ParticleEffect *_target, unsigned int index)
  10637. {
  10638. _target->RemoveTextureFrame (index);
  10639. }
  10640. DllExport void
  10641. ParticleEffect_SetNumTextureFrames (Urho3D::ParticleEffect *_target, unsigned int number)
  10642. {
  10643. _target->SetNumTextureFrames (number);
  10644. }
  10645. DllExport void
  10646. ParticleEffect_SortTextureFrames (Urho3D::ParticleEffect *_target)
  10647. {
  10648. _target->SortTextureFrames ();
  10649. }
  10650. DllExport Urho3D::ParticleEffect *
  10651. ParticleEffect_Clone (Urho3D::ParticleEffect *_target, const char * cloneName)
  10652. {
  10653. auto copy = _target->Clone (Urho3D::String(cloneName));
  10654. auto plain = copy.Get();
  10655. copy.Detach();
  10656. delete copy;
  10657. return plain;
  10658. }
  10659. DllExport Urho3D::Material *
  10660. ParticleEffect_GetMaterial (Urho3D::ParticleEffect *_target)
  10661. {
  10662. return _target->GetMaterial ();
  10663. }
  10664. DllExport unsigned int
  10665. ParticleEffect_GetNumParticles (Urho3D::ParticleEffect *_target)
  10666. {
  10667. return _target->GetNumParticles ();
  10668. }
  10669. DllExport int
  10670. ParticleEffect_GetUpdateInvisible (Urho3D::ParticleEffect *_target)
  10671. {
  10672. return _target->GetUpdateInvisible ();
  10673. }
  10674. DllExport int
  10675. ParticleEffect_IsRelative (Urho3D::ParticleEffect *_target)
  10676. {
  10677. return _target->IsRelative ();
  10678. }
  10679. DllExport int
  10680. ParticleEffect_IsScaled (Urho3D::ParticleEffect *_target)
  10681. {
  10682. return _target->IsScaled ();
  10683. }
  10684. DllExport int
  10685. ParticleEffect_IsSorted (Urho3D::ParticleEffect *_target)
  10686. {
  10687. return _target->IsSorted ();
  10688. }
  10689. DllExport int
  10690. ParticleEffect_IsFixedScreenSize (Urho3D::ParticleEffect *_target)
  10691. {
  10692. return _target->IsFixedScreenSize ();
  10693. }
  10694. DllExport float
  10695. ParticleEffect_GetAnimationLodBias (Urho3D::ParticleEffect *_target)
  10696. {
  10697. return _target->GetAnimationLodBias ();
  10698. }
  10699. DllExport enum Urho3D::EmitterType
  10700. ParticleEffect_GetEmitterType (Urho3D::ParticleEffect *_target)
  10701. {
  10702. return _target->GetEmitterType ();
  10703. }
  10704. DllExport Interop::Vector3
  10705. ParticleEffect_GetEmitterSize (Urho3D::ParticleEffect *_target)
  10706. {
  10707. return *((Interop::Vector3 *) &(_target->GetEmitterSize ()));
  10708. }
  10709. DllExport Interop::Vector3
  10710. ParticleEffect_GetMinDirection (Urho3D::ParticleEffect *_target)
  10711. {
  10712. return *((Interop::Vector3 *) &(_target->GetMinDirection ()));
  10713. }
  10714. DllExport Interop::Vector3
  10715. ParticleEffect_GetMaxDirection (Urho3D::ParticleEffect *_target)
  10716. {
  10717. return *((Interop::Vector3 *) &(_target->GetMaxDirection ()));
  10718. }
  10719. DllExport Interop::Vector3
  10720. ParticleEffect_GetConstantForce (Urho3D::ParticleEffect *_target)
  10721. {
  10722. return *((Interop::Vector3 *) &(_target->GetConstantForce ()));
  10723. }
  10724. DllExport float
  10725. ParticleEffect_GetDampingForce (Urho3D::ParticleEffect *_target)
  10726. {
  10727. return _target->GetDampingForce ();
  10728. }
  10729. DllExport float
  10730. ParticleEffect_GetActiveTime (Urho3D::ParticleEffect *_target)
  10731. {
  10732. return _target->GetActiveTime ();
  10733. }
  10734. DllExport float
  10735. ParticleEffect_GetInactiveTime (Urho3D::ParticleEffect *_target)
  10736. {
  10737. return _target->GetInactiveTime ();
  10738. }
  10739. DllExport float
  10740. ParticleEffect_GetMinEmissionRate (Urho3D::ParticleEffect *_target)
  10741. {
  10742. return _target->GetMinEmissionRate ();
  10743. }
  10744. DllExport float
  10745. ParticleEffect_GetMaxEmissionRate (Urho3D::ParticleEffect *_target)
  10746. {
  10747. return _target->GetMaxEmissionRate ();
  10748. }
  10749. DllExport Interop::Vector2
  10750. ParticleEffect_GetMinParticleSize (Urho3D::ParticleEffect *_target)
  10751. {
  10752. return *((Interop::Vector2 *) &(_target->GetMinParticleSize ()));
  10753. }
  10754. DllExport Interop::Vector2
  10755. ParticleEffect_GetMaxParticleSize (Urho3D::ParticleEffect *_target)
  10756. {
  10757. return *((Interop::Vector2 *) &(_target->GetMaxParticleSize ()));
  10758. }
  10759. DllExport float
  10760. ParticleEffect_GetMinTimeToLive (Urho3D::ParticleEffect *_target)
  10761. {
  10762. return _target->GetMinTimeToLive ();
  10763. }
  10764. DllExport float
  10765. ParticleEffect_GetMaxTimeToLive (Urho3D::ParticleEffect *_target)
  10766. {
  10767. return _target->GetMaxTimeToLive ();
  10768. }
  10769. DllExport float
  10770. ParticleEffect_GetMinVelocity (Urho3D::ParticleEffect *_target)
  10771. {
  10772. return _target->GetMinVelocity ();
  10773. }
  10774. DllExport float
  10775. ParticleEffect_GetMaxVelocity (Urho3D::ParticleEffect *_target)
  10776. {
  10777. return _target->GetMaxVelocity ();
  10778. }
  10779. DllExport float
  10780. ParticleEffect_GetMinRotation (Urho3D::ParticleEffect *_target)
  10781. {
  10782. return _target->GetMinRotation ();
  10783. }
  10784. DllExport float
  10785. ParticleEffect_GetMaxRotation (Urho3D::ParticleEffect *_target)
  10786. {
  10787. return _target->GetMaxRotation ();
  10788. }
  10789. DllExport float
  10790. ParticleEffect_GetMinRotationSpeed (Urho3D::ParticleEffect *_target)
  10791. {
  10792. return _target->GetMinRotationSpeed ();
  10793. }
  10794. DllExport float
  10795. ParticleEffect_GetMaxRotationSpeed (Urho3D::ParticleEffect *_target)
  10796. {
  10797. return _target->GetMaxRotationSpeed ();
  10798. }
  10799. DllExport float
  10800. ParticleEffect_GetSizeAdd (Urho3D::ParticleEffect *_target)
  10801. {
  10802. return _target->GetSizeAdd ();
  10803. }
  10804. DllExport float
  10805. ParticleEffect_GetSizeMul (Urho3D::ParticleEffect *_target)
  10806. {
  10807. return _target->GetSizeMul ();
  10808. }
  10809. DllExport unsigned int
  10810. ParticleEffect_GetNumColorFrames (Urho3D::ParticleEffect *_target)
  10811. {
  10812. return _target->GetNumColorFrames ();
  10813. }
  10814. DllExport const struct Urho3D::ColorFrame *
  10815. ParticleEffect_GetColorFrame (Urho3D::ParticleEffect *_target, unsigned int index)
  10816. {
  10817. return _target->GetColorFrame (index);
  10818. }
  10819. DllExport unsigned int
  10820. ParticleEffect_GetNumTextureFrames (Urho3D::ParticleEffect *_target)
  10821. {
  10822. return _target->GetNumTextureFrames ();
  10823. }
  10824. DllExport const struct Urho3D::TextureFrame *
  10825. ParticleEffect_GetTextureFrame (Urho3D::ParticleEffect *_target, unsigned int index)
  10826. {
  10827. return _target->GetTextureFrame (index);
  10828. }
  10829. DllExport enum Urho3D::FaceCameraMode
  10830. ParticleEffect_GetFaceCameraMode (Urho3D::ParticleEffect *_target)
  10831. {
  10832. return _target->GetFaceCameraMode ();
  10833. }
  10834. DllExport Interop::Vector3
  10835. ParticleEffect_GetRandomDirection (Urho3D::ParticleEffect *_target)
  10836. {
  10837. return *((Interop::Vector3 *) &(_target->GetRandomDirection ()));
  10838. }
  10839. DllExport Interop::Vector2
  10840. ParticleEffect_GetRandomSize (Urho3D::ParticleEffect *_target)
  10841. {
  10842. return *((Interop::Vector2 *) &(_target->GetRandomSize ()));
  10843. }
  10844. DllExport float
  10845. ParticleEffect_GetRandomVelocity (Urho3D::ParticleEffect *_target)
  10846. {
  10847. return _target->GetRandomVelocity ();
  10848. }
  10849. DllExport float
  10850. ParticleEffect_GetRandomTimeToLive (Urho3D::ParticleEffect *_target)
  10851. {
  10852. return _target->GetRandomTimeToLive ();
  10853. }
  10854. DllExport float
  10855. ParticleEffect_GetRandomRotationSpeed (Urho3D::ParticleEffect *_target)
  10856. {
  10857. return _target->GetRandomRotationSpeed ();
  10858. }
  10859. DllExport float
  10860. ParticleEffect_GetRandomRotation (Urho3D::ParticleEffect *_target)
  10861. {
  10862. return _target->GetRandomRotation ();
  10863. }
  10864. DllExport int
  10865. ParticleEmitter_GetType (Urho3D::ParticleEmitter *_target)
  10866. {
  10867. return (_target->GetType ()).Value ();
  10868. }
  10869. DllExport const char *
  10870. ParticleEmitter_GetTypeName (Urho3D::ParticleEmitter *_target)
  10871. {
  10872. return stringdup((_target->GetTypeName ()).CString ());
  10873. }
  10874. DllExport int
  10875. ParticleEmitter_GetTypeStatic ()
  10876. {
  10877. return (ParticleEmitter::GetTypeStatic ()).Value ();
  10878. }
  10879. DllExport const char *
  10880. ParticleEmitter_GetTypeNameStatic ()
  10881. {
  10882. return stringdup((ParticleEmitter::GetTypeNameStatic ()).CString ());
  10883. }
  10884. DllExport void *
  10885. ParticleEmitter_ParticleEmitter (Urho3D::Context * context)
  10886. {
  10887. return WeakPtr<ParticleEmitter>(new ParticleEmitter(context));
  10888. }
  10889. DllExport void
  10890. ParticleEmitter_RegisterObject (Urho3D::Context * context)
  10891. {
  10892. ParticleEmitter::RegisterObject (context);
  10893. }
  10894. DllExport void
  10895. ParticleEmitter_OnSetEnabled (Urho3D::ParticleEmitter *_target)
  10896. {
  10897. _target->OnSetEnabled ();
  10898. }
  10899. DllExport void
  10900. ParticleEmitter_SetEffect (Urho3D::ParticleEmitter *_target, Urho3D::ParticleEffect * effect)
  10901. {
  10902. _target->SetEffect (effect);
  10903. }
  10904. DllExport void
  10905. ParticleEmitter_SetNumParticles (Urho3D::ParticleEmitter *_target, unsigned int num)
  10906. {
  10907. _target->SetNumParticles (num);
  10908. }
  10909. DllExport void
  10910. ParticleEmitter_SetEmitting (Urho3D::ParticleEmitter *_target, bool enable)
  10911. {
  10912. _target->SetEmitting (enable);
  10913. }
  10914. DllExport void
  10915. ParticleEmitter_SetSerializeParticles (Urho3D::ParticleEmitter *_target, bool enable)
  10916. {
  10917. _target->SetSerializeParticles (enable);
  10918. }
  10919. DllExport void
  10920. ParticleEmitter_SetAutoRemoveMode (Urho3D::ParticleEmitter *_target, enum Urho3D::AutoRemoveMode mode)
  10921. {
  10922. _target->SetAutoRemoveMode (mode);
  10923. }
  10924. DllExport void
  10925. ParticleEmitter_ResetEmissionTimer (Urho3D::ParticleEmitter *_target)
  10926. {
  10927. _target->ResetEmissionTimer ();
  10928. }
  10929. DllExport void
  10930. ParticleEmitter_RemoveAllParticles (Urho3D::ParticleEmitter *_target)
  10931. {
  10932. _target->RemoveAllParticles ();
  10933. }
  10934. DllExport void
  10935. ParticleEmitter_Reset (Urho3D::ParticleEmitter *_target)
  10936. {
  10937. _target->Reset ();
  10938. }
  10939. DllExport void
  10940. ParticleEmitter_ApplyEffect (Urho3D::ParticleEmitter *_target)
  10941. {
  10942. _target->ApplyEffect ();
  10943. }
  10944. DllExport Urho3D::ParticleEffect *
  10945. ParticleEmitter_GetEffect (Urho3D::ParticleEmitter *_target)
  10946. {
  10947. return _target->GetEffect ();
  10948. }
  10949. DllExport unsigned int
  10950. ParticleEmitter_GetNumParticles (Urho3D::ParticleEmitter *_target)
  10951. {
  10952. return _target->GetNumParticles ();
  10953. }
  10954. DllExport int
  10955. ParticleEmitter_IsEmitting (Urho3D::ParticleEmitter *_target)
  10956. {
  10957. return _target->IsEmitting ();
  10958. }
  10959. DllExport int
  10960. ParticleEmitter_GetSerializeParticles (Urho3D::ParticleEmitter *_target)
  10961. {
  10962. return _target->GetSerializeParticles ();
  10963. }
  10964. DllExport enum Urho3D::AutoRemoveMode
  10965. ParticleEmitter_GetAutoRemoveMode (Urho3D::ParticleEmitter *_target)
  10966. {
  10967. return _target->GetAutoRemoveMode ();
  10968. }
  10969. DllExport Urho3D::ResourceRef
  10970. ParticleEmitter_GetEffectAttr (Urho3D::ParticleEmitter *_target)
  10971. {
  10972. return _target->GetEffectAttr ();
  10973. }
  10974. DllExport void *
  10975. RenderPath_RenderPath ()
  10976. {
  10977. return WeakPtr<RenderPath>(new RenderPath());
  10978. }
  10979. DllExport Urho3D::RenderPath *
  10980. RenderPath_Clone (Urho3D::RenderPath *_target)
  10981. {
  10982. auto copy = _target->Clone ();
  10983. auto plain = copy.Get();
  10984. copy.Detach();
  10985. delete copy;
  10986. return plain;
  10987. }
  10988. DllExport int
  10989. RenderPath_Load (Urho3D::RenderPath *_target, Urho3D::XMLFile * file)
  10990. {
  10991. return _target->Load (file);
  10992. }
  10993. DllExport int
  10994. RenderPath_Append (Urho3D::RenderPath *_target, Urho3D::XMLFile * file)
  10995. {
  10996. return _target->Append (file);
  10997. }
  10998. DllExport void
  10999. RenderPath_SetEnabled (Urho3D::RenderPath *_target, const char * tag, bool active)
  11000. {
  11001. _target->SetEnabled (Urho3D::String(tag), active);
  11002. }
  11003. DllExport void
  11004. RenderPath_ToggleEnabled (Urho3D::RenderPath *_target, const char * tag)
  11005. {
  11006. _target->ToggleEnabled (Urho3D::String(tag));
  11007. }
  11008. DllExport void
  11009. RenderPath_RemoveRenderTarget (Urho3D::RenderPath *_target, unsigned int index)
  11010. {
  11011. _target->RemoveRenderTarget (index);
  11012. }
  11013. DllExport void
  11014. RenderPath_RemoveRenderTarget0 (Urho3D::RenderPath *_target, const char * name)
  11015. {
  11016. _target->RemoveRenderTarget (Urho3D::String(name));
  11017. }
  11018. DllExport void
  11019. RenderPath_RemoveRenderTargets (Urho3D::RenderPath *_target, const char * tag)
  11020. {
  11021. _target->RemoveRenderTargets (Urho3D::String(tag));
  11022. }
  11023. DllExport void
  11024. RenderPath_SetCommand (Urho3D::RenderPath *_target, unsigned int index, const struct Urho3D::RenderPathCommand & command)
  11025. {
  11026. _target->SetCommand (index, command);
  11027. }
  11028. DllExport void
  11029. RenderPath_AddCommand (Urho3D::RenderPath *_target, const struct Urho3D::RenderPathCommand & command)
  11030. {
  11031. _target->AddCommand (command);
  11032. }
  11033. DllExport void
  11034. RenderPath_InsertCommand (Urho3D::RenderPath *_target, unsigned int index, const struct Urho3D::RenderPathCommand & command)
  11035. {
  11036. _target->InsertCommand (index, command);
  11037. }
  11038. DllExport void
  11039. RenderPath_RemoveCommand (Urho3D::RenderPath *_target, unsigned int index)
  11040. {
  11041. _target->RemoveCommand (index);
  11042. }
  11043. DllExport void
  11044. RenderPath_RemoveCommands (Urho3D::RenderPath *_target, const char * tag)
  11045. {
  11046. _target->RemoveCommands (Urho3D::String(tag));
  11047. }
  11048. // Urho3D::Variant overloads begin:
  11049. DllExport void
  11050. RenderPath_SetShaderParameter0 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::Vector3 & value)
  11051. {
  11052. _target->SetShaderParameter (Urho3D::String(name), (value));
  11053. }
  11054. DllExport void
  11055. RenderPath_SetShaderParameter1 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::IntRect & value)
  11056. {
  11057. _target->SetShaderParameter (Urho3D::String(name), (value));
  11058. }
  11059. DllExport void
  11060. RenderPath_SetShaderParameter2 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::Color & value)
  11061. {
  11062. _target->SetShaderParameter (Urho3D::String(name), (value));
  11063. }
  11064. DllExport void
  11065. RenderPath_SetShaderParameter3 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::Vector2 & value)
  11066. {
  11067. _target->SetShaderParameter (Urho3D::String(name), (value));
  11068. }
  11069. DllExport void
  11070. RenderPath_SetShaderParameter4 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::Vector4 & value)
  11071. {
  11072. _target->SetShaderParameter (Urho3D::String(name), (value));
  11073. }
  11074. DllExport void
  11075. RenderPath_SetShaderParameter5 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::IntVector2 & value)
  11076. {
  11077. _target->SetShaderParameter (Urho3D::String(name), (value));
  11078. }
  11079. DllExport void
  11080. RenderPath_SetShaderParameter6 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::Quaternion & value)
  11081. {
  11082. _target->SetShaderParameter (Urho3D::String(name), (value));
  11083. }
  11084. DllExport void
  11085. RenderPath_SetShaderParameter7 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::Matrix4 & value)
  11086. {
  11087. _target->SetShaderParameter (Urho3D::String(name), (value));
  11088. }
  11089. DllExport void
  11090. RenderPath_SetShaderParameter8 (Urho3D::RenderPath *_target, const char * name, const class Urho3D::Matrix3x4 & value)
  11091. {
  11092. _target->SetShaderParameter (Urho3D::String(name), (value));
  11093. }
  11094. DllExport void
  11095. RenderPath_SetShaderParameter9 (Urho3D::RenderPath *_target, const char * name, int value)
  11096. {
  11097. _target->SetShaderParameter (Urho3D::String(name), (value));
  11098. }
  11099. DllExport void
  11100. RenderPath_SetShaderParameter10 (Urho3D::RenderPath *_target, const char * name, float value)
  11101. {
  11102. _target->SetShaderParameter (Urho3D::String(name), (value));
  11103. }
  11104. DllExport void
  11105. RenderPath_SetShaderParameter11 (Urho3D::RenderPath *_target, const char * name, const char * value)
  11106. {
  11107. _target->SetShaderParameter (Urho3D::String(name), Urho3D::String(value));
  11108. }
  11109. DllExport void
  11110. RenderPath_SetShaderParameter12 (Urho3D::RenderPath *_target, const char * name, bool value)
  11111. {
  11112. _target->SetShaderParameter (Urho3D::String(name), (value));
  11113. }
  11114. // Urho3D::Variant overloads end.
  11115. DllExport unsigned int
  11116. RenderPath_GetNumRenderTargets (Urho3D::RenderPath *_target)
  11117. {
  11118. return _target->GetNumRenderTargets ();
  11119. }
  11120. DllExport unsigned int
  11121. RenderPath_GetNumCommands (Urho3D::RenderPath *_target)
  11122. {
  11123. return _target->GetNumCommands ();
  11124. }
  11125. DllExport Urho3D::RenderPathCommand *
  11126. RenderPath_GetCommand (Urho3D::RenderPath *_target, unsigned int index)
  11127. {
  11128. return _target->GetCommand (index);
  11129. }
  11130. // Urho3D::Variant overloads begin:
  11131. DllExport Interop::Vector3
  11132. RenderPath_GetShaderParameter0 (Urho3D::RenderPath *_target, const char * name)
  11133. {
  11134. return *((Interop::Vector3 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetVector3()));
  11135. }
  11136. DllExport Interop::IntRect
  11137. RenderPath_GetShaderParameter1 (Urho3D::RenderPath *_target, const char * name)
  11138. {
  11139. return *((Interop::IntRect *) &(_target->GetShaderParameter (Urho3D::String(name)).GetIntRect()));
  11140. }
  11141. DllExport Interop::Color
  11142. RenderPath_GetShaderParameter2 (Urho3D::RenderPath *_target, const char * name)
  11143. {
  11144. return *((Interop::Color *) &(_target->GetShaderParameter (Urho3D::String(name)).GetColor()));
  11145. }
  11146. DllExport Interop::Vector2
  11147. RenderPath_GetShaderParameter3 (Urho3D::RenderPath *_target, const char * name)
  11148. {
  11149. return *((Interop::Vector2 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetVector2()));
  11150. }
  11151. DllExport Interop::Vector4
  11152. RenderPath_GetShaderParameter4 (Urho3D::RenderPath *_target, const char * name)
  11153. {
  11154. return *((Interop::Vector4 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetVector4()));
  11155. }
  11156. DllExport Interop::IntVector2
  11157. RenderPath_GetShaderParameter5 (Urho3D::RenderPath *_target, const char * name)
  11158. {
  11159. return *((Interop::IntVector2 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetIntVector2()));
  11160. }
  11161. DllExport Interop::Quaternion
  11162. RenderPath_GetShaderParameter6 (Urho3D::RenderPath *_target, const char * name)
  11163. {
  11164. return *((Interop::Quaternion *) &(_target->GetShaderParameter (Urho3D::String(name)).GetQuaternion()));
  11165. }
  11166. DllExport Interop::Matrix4
  11167. RenderPath_GetShaderParameter7 (Urho3D::RenderPath *_target, const char * name)
  11168. {
  11169. return *((Interop::Matrix4 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetMatrix4()));
  11170. }
  11171. DllExport Interop::Matrix3x4
  11172. RenderPath_GetShaderParameter8 (Urho3D::RenderPath *_target, const char * name)
  11173. {
  11174. return *((Interop::Matrix3x4 *) &(_target->GetShaderParameter (Urho3D::String(name)).GetMatrix3x4()));
  11175. }
  11176. DllExport int
  11177. RenderPath_GetShaderParameter9 (Urho3D::RenderPath *_target, const char * name)
  11178. {
  11179. return (_target->GetShaderParameter (Urho3D::String(name)).GetInt());
  11180. }
  11181. DllExport float
  11182. RenderPath_GetShaderParameter10 (Urho3D::RenderPath *_target, const char * name)
  11183. {
  11184. return (_target->GetShaderParameter (Urho3D::String(name)).GetFloat());
  11185. }
  11186. DllExport const char *
  11187. RenderPath_GetShaderParameter11 (Urho3D::RenderPath *_target, const char * name)
  11188. {
  11189. return stringdup(_target->GetShaderParameter (Urho3D::String(name)).GetString().CString());
  11190. }
  11191. DllExport bool
  11192. RenderPath_GetShaderParameter12 (Urho3D::RenderPath *_target, const char * name)
  11193. {
  11194. return (_target->GetShaderParameter (Urho3D::String(name)).GetBool());
  11195. }
  11196. // Urho3D::Variant overloads end.
  11197. DllExport int
  11198. Renderer_GetType (Urho3D::Renderer *_target)
  11199. {
  11200. return (_target->GetType ()).Value ();
  11201. }
  11202. DllExport const char *
  11203. Renderer_GetTypeName (Urho3D::Renderer *_target)
  11204. {
  11205. return stringdup((_target->GetTypeName ()).CString ());
  11206. }
  11207. DllExport int
  11208. Renderer_GetTypeStatic ()
  11209. {
  11210. return (Renderer::GetTypeStatic ()).Value ();
  11211. }
  11212. DllExport const char *
  11213. Renderer_GetTypeNameStatic ()
  11214. {
  11215. return stringdup((Renderer::GetTypeNameStatic ()).CString ());
  11216. }
  11217. DllExport void *
  11218. Renderer_Renderer (Urho3D::Context * context)
  11219. {
  11220. return WeakPtr<Renderer>(new Renderer(context));
  11221. }
  11222. DllExport void
  11223. Renderer_SetNumViewports (Urho3D::Renderer *_target, unsigned int num)
  11224. {
  11225. _target->SetNumViewports (num);
  11226. }
  11227. DllExport void
  11228. Renderer_SetViewport (Urho3D::Renderer *_target, unsigned int index, Urho3D::Viewport * viewport)
  11229. {
  11230. _target->SetViewport (index, viewport);
  11231. }
  11232. DllExport void
  11233. Renderer_SetDefaultRenderPath (Urho3D::Renderer *_target, Urho3D::RenderPath * renderPath)
  11234. {
  11235. _target->SetDefaultRenderPath (renderPath);
  11236. }
  11237. DllExport void
  11238. Renderer_SetDefaultRenderPath0 (Urho3D::Renderer *_target, Urho3D::XMLFile * file)
  11239. {
  11240. _target->SetDefaultRenderPath (file);
  11241. }
  11242. DllExport void
  11243. Renderer_SetDefaultTechnique (Urho3D::Renderer *_target, Urho3D::Technique * tech)
  11244. {
  11245. _target->SetDefaultTechnique (tech);
  11246. }
  11247. DllExport void
  11248. Renderer_SetHDRRendering (Urho3D::Renderer *_target, bool enable)
  11249. {
  11250. _target->SetHDRRendering (enable);
  11251. }
  11252. DllExport void
  11253. Renderer_SetSpecularLighting (Urho3D::Renderer *_target, bool enable)
  11254. {
  11255. _target->SetSpecularLighting (enable);
  11256. }
  11257. DllExport void
  11258. Renderer_SetTextureAnisotropy (Urho3D::Renderer *_target, int level)
  11259. {
  11260. _target->SetTextureAnisotropy (level);
  11261. }
  11262. DllExport void
  11263. Renderer_SetTextureFilterMode (Urho3D::Renderer *_target, enum Urho3D::TextureFilterMode mode)
  11264. {
  11265. _target->SetTextureFilterMode (mode);
  11266. }
  11267. DllExport void
  11268. Renderer_SetTextureQuality (Urho3D::Renderer *_target, int quality)
  11269. {
  11270. _target->SetTextureQuality (quality);
  11271. }
  11272. DllExport void
  11273. Renderer_SetMaterialQuality (Urho3D::Renderer *_target, int quality)
  11274. {
  11275. _target->SetMaterialQuality (quality);
  11276. }
  11277. DllExport void
  11278. Renderer_SetDrawShadows (Urho3D::Renderer *_target, bool enable)
  11279. {
  11280. _target->SetDrawShadows (enable);
  11281. }
  11282. DllExport void
  11283. Renderer_SetShadowMapSize (Urho3D::Renderer *_target, int size)
  11284. {
  11285. _target->SetShadowMapSize (size);
  11286. }
  11287. DllExport void
  11288. Renderer_SetShadowQuality (Urho3D::Renderer *_target, enum Urho3D::ShadowQuality quality)
  11289. {
  11290. _target->SetShadowQuality (quality);
  11291. }
  11292. DllExport void
  11293. Renderer_SetShadowSoftness (Urho3D::Renderer *_target, float shadowSoftness)
  11294. {
  11295. _target->SetShadowSoftness (shadowSoftness);
  11296. }
  11297. DllExport void
  11298. Renderer_SetVSMShadowParameters (Urho3D::Renderer *_target, float minVariance, float lightBleedingReduction)
  11299. {
  11300. _target->SetVSMShadowParameters (minVariance, lightBleedingReduction);
  11301. }
  11302. DllExport void
  11303. Renderer_SetVSMMultiSample (Urho3D::Renderer *_target, int multiSample)
  11304. {
  11305. _target->SetVSMMultiSample (multiSample);
  11306. }
  11307. DllExport void
  11308. Renderer_SetReuseShadowMaps (Urho3D::Renderer *_target, bool enable)
  11309. {
  11310. _target->SetReuseShadowMaps (enable);
  11311. }
  11312. DllExport void
  11313. Renderer_SetMaxShadowMaps (Urho3D::Renderer *_target, int shadowMaps)
  11314. {
  11315. _target->SetMaxShadowMaps (shadowMaps);
  11316. }
  11317. DllExport void
  11318. Renderer_SetDynamicInstancing (Urho3D::Renderer *_target, bool enable)
  11319. {
  11320. _target->SetDynamicInstancing (enable);
  11321. }
  11322. DllExport void
  11323. Renderer_SetNumExtraInstancingBufferElements (Urho3D::Renderer *_target, int elements)
  11324. {
  11325. _target->SetNumExtraInstancingBufferElements (elements);
  11326. }
  11327. DllExport void
  11328. Renderer_SetMinInstances (Urho3D::Renderer *_target, int instances)
  11329. {
  11330. _target->SetMinInstances (instances);
  11331. }
  11332. DllExport void
  11333. Renderer_SetMaxSortedInstances (Urho3D::Renderer *_target, int instances)
  11334. {
  11335. _target->SetMaxSortedInstances (instances);
  11336. }
  11337. DllExport void
  11338. Renderer_SetMaxOccluderTriangles (Urho3D::Renderer *_target, int triangles)
  11339. {
  11340. _target->SetMaxOccluderTriangles (triangles);
  11341. }
  11342. DllExport void
  11343. Renderer_SetOcclusionBufferSize (Urho3D::Renderer *_target, int size)
  11344. {
  11345. _target->SetOcclusionBufferSize (size);
  11346. }
  11347. DllExport void
  11348. Renderer_SetOccluderSizeThreshold (Urho3D::Renderer *_target, float screenSize)
  11349. {
  11350. _target->SetOccluderSizeThreshold (screenSize);
  11351. }
  11352. DllExport void
  11353. Renderer_SetThreadedOcclusion (Urho3D::Renderer *_target, bool enable)
  11354. {
  11355. _target->SetThreadedOcclusion (enable);
  11356. }
  11357. DllExport void
  11358. Renderer_SetMobileShadowBiasMul (Urho3D::Renderer *_target, float mul)
  11359. {
  11360. _target->SetMobileShadowBiasMul (mul);
  11361. }
  11362. DllExport void
  11363. Renderer_SetMobileShadowBiasAdd (Urho3D::Renderer *_target, float add)
  11364. {
  11365. _target->SetMobileShadowBiasAdd (add);
  11366. }
  11367. DllExport void
  11368. Renderer_SetMobileNormalOffsetMul (Urho3D::Renderer *_target, float mul)
  11369. {
  11370. _target->SetMobileNormalOffsetMul (mul);
  11371. }
  11372. DllExport void
  11373. Renderer_ReloadShaders (Urho3D::Renderer *_target)
  11374. {
  11375. _target->ReloadShaders ();
  11376. }
  11377. DllExport void
  11378. Renderer_ApplyShadowMapFilter (Urho3D::Renderer *_target, Urho3D::View * view, Urho3D::Texture2D * shadowMap, float blurScale)
  11379. {
  11380. _target->ApplyShadowMapFilter (view, shadowMap, blurScale);
  11381. }
  11382. DllExport unsigned int
  11383. Renderer_GetNumViewports (Urho3D::Renderer *_target)
  11384. {
  11385. return _target->GetNumViewports ();
  11386. }
  11387. DllExport Urho3D::Viewport *
  11388. Renderer_GetViewport (Urho3D::Renderer *_target, unsigned int index)
  11389. {
  11390. return _target->GetViewport (index);
  11391. }
  11392. DllExport Urho3D::Viewport *
  11393. Renderer_GetViewportForScene (Urho3D::Renderer *_target, Urho3D::Scene * scene, unsigned int index)
  11394. {
  11395. return _target->GetViewportForScene (scene, index);
  11396. }
  11397. DllExport Urho3D::RenderPath *
  11398. Renderer_GetDefaultRenderPath (Urho3D::Renderer *_target)
  11399. {
  11400. return _target->GetDefaultRenderPath ();
  11401. }
  11402. DllExport Urho3D::Technique *
  11403. Renderer_GetDefaultTechnique (Urho3D::Renderer *_target)
  11404. {
  11405. return _target->GetDefaultTechnique ();
  11406. }
  11407. DllExport int
  11408. Renderer_GetHDRRendering (Urho3D::Renderer *_target)
  11409. {
  11410. return _target->GetHDRRendering ();
  11411. }
  11412. DllExport int
  11413. Renderer_GetSpecularLighting (Urho3D::Renderer *_target)
  11414. {
  11415. return _target->GetSpecularLighting ();
  11416. }
  11417. DllExport int
  11418. Renderer_GetDrawShadows (Urho3D::Renderer *_target)
  11419. {
  11420. return _target->GetDrawShadows ();
  11421. }
  11422. DllExport int
  11423. Renderer_GetTextureAnisotropy (Urho3D::Renderer *_target)
  11424. {
  11425. return _target->GetTextureAnisotropy ();
  11426. }
  11427. DllExport enum Urho3D::TextureFilterMode
  11428. Renderer_GetTextureFilterMode (Urho3D::Renderer *_target)
  11429. {
  11430. return _target->GetTextureFilterMode ();
  11431. }
  11432. DllExport int
  11433. Renderer_GetTextureQuality (Urho3D::Renderer *_target)
  11434. {
  11435. return _target->GetTextureQuality ();
  11436. }
  11437. DllExport int
  11438. Renderer_GetMaterialQuality (Urho3D::Renderer *_target)
  11439. {
  11440. return _target->GetMaterialQuality ();
  11441. }
  11442. DllExport int
  11443. Renderer_GetShadowMapSize (Urho3D::Renderer *_target)
  11444. {
  11445. return _target->GetShadowMapSize ();
  11446. }
  11447. DllExport enum Urho3D::ShadowQuality
  11448. Renderer_GetShadowQuality (Urho3D::Renderer *_target)
  11449. {
  11450. return _target->GetShadowQuality ();
  11451. }
  11452. DllExport float
  11453. Renderer_GetShadowSoftness (Urho3D::Renderer *_target)
  11454. {
  11455. return _target->GetShadowSoftness ();
  11456. }
  11457. DllExport Interop::Vector2
  11458. Renderer_GetVSMShadowParameters (Urho3D::Renderer *_target)
  11459. {
  11460. return *((Interop::Vector2 *) &(_target->GetVSMShadowParameters ()));
  11461. }
  11462. DllExport int
  11463. Renderer_GetVSMMultiSample (Urho3D::Renderer *_target)
  11464. {
  11465. return _target->GetVSMMultiSample ();
  11466. }
  11467. DllExport int
  11468. Renderer_GetReuseShadowMaps (Urho3D::Renderer *_target)
  11469. {
  11470. return _target->GetReuseShadowMaps ();
  11471. }
  11472. DllExport int
  11473. Renderer_GetMaxShadowMaps (Urho3D::Renderer *_target)
  11474. {
  11475. return _target->GetMaxShadowMaps ();
  11476. }
  11477. DllExport int
  11478. Renderer_GetDynamicInstancing (Urho3D::Renderer *_target)
  11479. {
  11480. return _target->GetDynamicInstancing ();
  11481. }
  11482. DllExport int
  11483. Renderer_GetNumExtraInstancingBufferElements (Urho3D::Renderer *_target)
  11484. {
  11485. return _target->GetNumExtraInstancingBufferElements ();
  11486. }
  11487. DllExport int
  11488. Renderer_GetMinInstances (Urho3D::Renderer *_target)
  11489. {
  11490. return _target->GetMinInstances ();
  11491. }
  11492. DllExport int
  11493. Renderer_GetMaxSortedInstances (Urho3D::Renderer *_target)
  11494. {
  11495. return _target->GetMaxSortedInstances ();
  11496. }
  11497. DllExport int
  11498. Renderer_GetMaxOccluderTriangles (Urho3D::Renderer *_target)
  11499. {
  11500. return _target->GetMaxOccluderTriangles ();
  11501. }
  11502. DllExport int
  11503. Renderer_GetOcclusionBufferSize (Urho3D::Renderer *_target)
  11504. {
  11505. return _target->GetOcclusionBufferSize ();
  11506. }
  11507. DllExport float
  11508. Renderer_GetOccluderSizeThreshold (Urho3D::Renderer *_target)
  11509. {
  11510. return _target->GetOccluderSizeThreshold ();
  11511. }
  11512. DllExport int
  11513. Renderer_GetThreadedOcclusion (Urho3D::Renderer *_target)
  11514. {
  11515. return _target->GetThreadedOcclusion ();
  11516. }
  11517. DllExport float
  11518. Renderer_GetMobileShadowBiasMul (Urho3D::Renderer *_target)
  11519. {
  11520. return _target->GetMobileShadowBiasMul ();
  11521. }
  11522. DllExport float
  11523. Renderer_GetMobileShadowBiasAdd (Urho3D::Renderer *_target)
  11524. {
  11525. return _target->GetMobileShadowBiasAdd ();
  11526. }
  11527. DllExport float
  11528. Renderer_GetMobileNormalOffsetMul (Urho3D::Renderer *_target)
  11529. {
  11530. return _target->GetMobileNormalOffsetMul ();
  11531. }
  11532. DllExport unsigned int
  11533. Renderer_GetNumViews (Urho3D::Renderer *_target)
  11534. {
  11535. return _target->GetNumViews ();
  11536. }
  11537. DllExport unsigned int
  11538. Renderer_GetNumPrimitives (Urho3D::Renderer *_target)
  11539. {
  11540. return _target->GetNumPrimitives ();
  11541. }
  11542. DllExport unsigned int
  11543. Renderer_GetNumBatches (Urho3D::Renderer *_target)
  11544. {
  11545. return _target->GetNumBatches ();
  11546. }
  11547. DllExport unsigned int
  11548. Renderer_GetNumGeometries (Urho3D::Renderer *_target, bool allViews)
  11549. {
  11550. return _target->GetNumGeometries (allViews);
  11551. }
  11552. DllExport unsigned int
  11553. Renderer_GetNumLights (Urho3D::Renderer *_target, bool allViews)
  11554. {
  11555. return _target->GetNumLights (allViews);
  11556. }
  11557. DllExport unsigned int
  11558. Renderer_GetNumShadowMaps (Urho3D::Renderer *_target, bool allViews)
  11559. {
  11560. return _target->GetNumShadowMaps (allViews);
  11561. }
  11562. DllExport unsigned int
  11563. Renderer_GetNumOccluders (Urho3D::Renderer *_target, bool allViews)
  11564. {
  11565. return _target->GetNumOccluders (allViews);
  11566. }
  11567. DllExport Urho3D::Zone *
  11568. Renderer_GetDefaultZone (Urho3D::Renderer *_target)
  11569. {
  11570. return _target->GetDefaultZone ();
  11571. }
  11572. DllExport Urho3D::Material *
  11573. Renderer_GetDefaultMaterial (Urho3D::Renderer *_target)
  11574. {
  11575. return _target->GetDefaultMaterial ();
  11576. }
  11577. DllExport Urho3D::Texture2D *
  11578. Renderer_GetDefaultLightRamp (Urho3D::Renderer *_target)
  11579. {
  11580. return _target->GetDefaultLightRamp ();
  11581. }
  11582. DllExport Urho3D::Texture2D *
  11583. Renderer_GetDefaultLightSpot (Urho3D::Renderer *_target)
  11584. {
  11585. return _target->GetDefaultLightSpot ();
  11586. }
  11587. DllExport Urho3D::TextureCube *
  11588. Renderer_GetFaceSelectCubeMap (Urho3D::Renderer *_target)
  11589. {
  11590. return _target->GetFaceSelectCubeMap ();
  11591. }
  11592. DllExport Urho3D::TextureCube *
  11593. Renderer_GetIndirectionCubeMap (Urho3D::Renderer *_target)
  11594. {
  11595. return _target->GetIndirectionCubeMap ();
  11596. }
  11597. DllExport Urho3D::VertexBuffer *
  11598. Renderer_GetInstancingBuffer (Urho3D::Renderer *_target)
  11599. {
  11600. return _target->GetInstancingBuffer ();
  11601. }
  11602. DllExport void
  11603. Renderer_Update (Urho3D::Renderer *_target, float timeStep)
  11604. {
  11605. _target->Update (timeStep);
  11606. }
  11607. DllExport void
  11608. Renderer_Render (Urho3D::Renderer *_target)
  11609. {
  11610. _target->Render ();
  11611. }
  11612. DllExport void
  11613. Renderer_DrawDebugGeometry (Urho3D::Renderer *_target, bool depthTest)
  11614. {
  11615. _target->DrawDebugGeometry (depthTest);
  11616. }
  11617. DllExport void
  11618. Renderer_QueueRenderSurface (Urho3D::Renderer *_target, Urho3D::RenderSurface * renderTarget)
  11619. {
  11620. _target->QueueRenderSurface (renderTarget);
  11621. }
  11622. DllExport void
  11623. Renderer_QueueViewport (Urho3D::Renderer *_target, Urho3D::RenderSurface * renderTarget, Urho3D::Viewport * viewport)
  11624. {
  11625. _target->QueueViewport (renderTarget, viewport);
  11626. }
  11627. DllExport Urho3D::Geometry *
  11628. Renderer_GetLightGeometry (Urho3D::Renderer *_target, Urho3D::Light * light)
  11629. {
  11630. return _target->GetLightGeometry (light);
  11631. }
  11632. DllExport Urho3D::Geometry *
  11633. Renderer_GetQuadGeometry (Urho3D::Renderer *_target)
  11634. {
  11635. return _target->GetQuadGeometry ();
  11636. }
  11637. DllExport Urho3D::Texture2D *
  11638. Renderer_GetShadowMap (Urho3D::Renderer *_target, Urho3D::Light * light, Urho3D::Camera * camera, unsigned int viewWidth, unsigned int viewHeight)
  11639. {
  11640. return _target->GetShadowMap (light, camera, viewWidth, viewHeight);
  11641. }
  11642. DllExport Urho3D::Texture *
  11643. 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)
  11644. {
  11645. return _target->GetScreenBuffer (width, height, format, multiSample, autoResolve, cubemap, filtered, srgb, persistentKey);
  11646. }
  11647. DllExport Urho3D::RenderSurface *
  11648. Renderer_GetDepthStencil (Urho3D::Renderer *_target, int width, int height, int multiSample, bool autoResolve)
  11649. {
  11650. return _target->GetDepthStencil (width, height, multiSample, autoResolve);
  11651. }
  11652. DllExport Urho3D::OcclusionBuffer *
  11653. Renderer_GetOcclusionBuffer (Urho3D::Renderer *_target, Urho3D::Camera * camera)
  11654. {
  11655. return _target->GetOcclusionBuffer (camera);
  11656. }
  11657. DllExport Urho3D::Camera *
  11658. Renderer_GetShadowCamera (Urho3D::Renderer *_target)
  11659. {
  11660. return _target->GetShadowCamera ();
  11661. }
  11662. DllExport void
  11663. Renderer_StorePreparedView (Urho3D::Renderer *_target, Urho3D::View * view, Urho3D::Camera * cullCamera)
  11664. {
  11665. _target->StorePreparedView (view, cullCamera);
  11666. }
  11667. DllExport Urho3D::View *
  11668. Renderer_GetPreparedView (Urho3D::Renderer *_target, Urho3D::Camera * cullCamera)
  11669. {
  11670. return _target->GetPreparedView (cullCamera);
  11671. }
  11672. DllExport void
  11673. Renderer_SetCullMode (Urho3D::Renderer *_target, enum Urho3D::CullMode mode, Urho3D::Camera * camera)
  11674. {
  11675. _target->SetCullMode (mode, camera);
  11676. }
  11677. DllExport int
  11678. Renderer_ResizeInstancingBuffer (Urho3D::Renderer *_target, unsigned int numInstances)
  11679. {
  11680. return _target->ResizeInstancingBuffer (numInstances);
  11681. }
  11682. DllExport void
  11683. Renderer_OptimizeLightByScissor (Urho3D::Renderer *_target, Urho3D::Light * light, Urho3D::Camera * camera)
  11684. {
  11685. _target->OptimizeLightByScissor (light, camera);
  11686. }
  11687. DllExport void
  11688. Renderer_OptimizeLightByStencil (Urho3D::Renderer *_target, Urho3D::Light * light, Urho3D::Camera * camera)
  11689. {
  11690. _target->OptimizeLightByStencil (light, camera);
  11691. }
  11692. DllExport Urho3D::View *
  11693. Renderer_GetActualView (Urho3D::View * view)
  11694. {
  11695. return Renderer::GetActualView (view);
  11696. }
  11697. DllExport int
  11698. Shader_GetType (Urho3D::Shader *_target)
  11699. {
  11700. return (_target->GetType ()).Value ();
  11701. }
  11702. DllExport const char *
  11703. Shader_GetTypeName (Urho3D::Shader *_target)
  11704. {
  11705. return stringdup((_target->GetTypeName ()).CString ());
  11706. }
  11707. DllExport int
  11708. Shader_GetTypeStatic ()
  11709. {
  11710. return (Shader::GetTypeStatic ()).Value ();
  11711. }
  11712. DllExport const char *
  11713. Shader_GetTypeNameStatic ()
  11714. {
  11715. return stringdup((Shader::GetTypeNameStatic ()).CString ());
  11716. }
  11717. DllExport void *
  11718. Shader_Shader (Urho3D::Context * context)
  11719. {
  11720. return WeakPtr<Shader>(new Shader(context));
  11721. }
  11722. DllExport void
  11723. Shader_RegisterObject (Urho3D::Context * context)
  11724. {
  11725. Shader::RegisterObject (context);
  11726. }
  11727. DllExport int
  11728. Shader_BeginLoad_File (Urho3D::Shader *_target, File * source)
  11729. {
  11730. return _target->BeginLoad (*source);
  11731. }
  11732. DllExport int
  11733. Shader_BeginLoad_MemoryBuffer (Urho3D::Shader *_target, MemoryBuffer * source)
  11734. {
  11735. return _target->BeginLoad (*source);
  11736. }
  11737. DllExport int
  11738. Shader_EndLoad (Urho3D::Shader *_target)
  11739. {
  11740. return _target->EndLoad ();
  11741. }
  11742. DllExport Urho3D::ShaderVariation *
  11743. Shader_GetVariation (Urho3D::Shader *_target, enum Urho3D::ShaderType type, const char * defines)
  11744. {
  11745. return _target->GetVariation (type, Urho3D::String(defines));
  11746. }
  11747. DllExport const char *
  11748. Shader_GetSourceCode (Urho3D::Shader *_target, enum Urho3D::ShaderType type)
  11749. {
  11750. return stringdup((_target->GetSourceCode (type)).CString ());
  11751. }
  11752. DllExport unsigned int
  11753. Shader_GetTimeStamp (Urho3D::Shader *_target)
  11754. {
  11755. return _target->GetTimeStamp ();
  11756. }
  11757. DllExport int
  11758. RibbonTrail_GetType (Urho3D::RibbonTrail *_target)
  11759. {
  11760. return (_target->GetType ()).Value ();
  11761. }
  11762. DllExport const char *
  11763. RibbonTrail_GetTypeName (Urho3D::RibbonTrail *_target)
  11764. {
  11765. return stringdup((_target->GetTypeName ()).CString ());
  11766. }
  11767. DllExport int
  11768. RibbonTrail_GetTypeStatic ()
  11769. {
  11770. return (RibbonTrail::GetTypeStatic ()).Value ();
  11771. }
  11772. DllExport const char *
  11773. RibbonTrail_GetTypeNameStatic ()
  11774. {
  11775. return stringdup((RibbonTrail::GetTypeNameStatic ()).CString ());
  11776. }
  11777. DllExport void *
  11778. RibbonTrail_RibbonTrail (Urho3D::Context * context)
  11779. {
  11780. return WeakPtr<RibbonTrail>(new RibbonTrail(context));
  11781. }
  11782. DllExport void
  11783. RibbonTrail_RegisterObject (Urho3D::Context * context)
  11784. {
  11785. RibbonTrail::RegisterObject (context);
  11786. }
  11787. DllExport void
  11788. RibbonTrail_OnSetEnabled (Urho3D::RibbonTrail *_target)
  11789. {
  11790. _target->OnSetEnabled ();
  11791. }
  11792. DllExport enum Urho3D::UpdateGeometryType
  11793. RibbonTrail_GetUpdateGeometryType (Urho3D::RibbonTrail *_target)
  11794. {
  11795. return _target->GetUpdateGeometryType ();
  11796. }
  11797. DllExport void
  11798. RibbonTrail_SetMaterial (Urho3D::RibbonTrail *_target, Urho3D::Material * material)
  11799. {
  11800. _target->SetMaterial (material);
  11801. }
  11802. DllExport void
  11803. RibbonTrail_SetVertexDistance (Urho3D::RibbonTrail *_target, float length)
  11804. {
  11805. _target->SetVertexDistance (length);
  11806. }
  11807. DllExport void
  11808. RibbonTrail_SetWidth (Urho3D::RibbonTrail *_target, float width)
  11809. {
  11810. _target->SetWidth (width);
  11811. }
  11812. DllExport void
  11813. RibbonTrail_SetStartColor (Urho3D::RibbonTrail *_target, const class Urho3D::Color & color)
  11814. {
  11815. _target->SetStartColor (color);
  11816. }
  11817. DllExport void
  11818. RibbonTrail_SetEndColor (Urho3D::RibbonTrail *_target, const class Urho3D::Color & color)
  11819. {
  11820. _target->SetEndColor (color);
  11821. }
  11822. DllExport void
  11823. RibbonTrail_SetStartScale (Urho3D::RibbonTrail *_target, float startScale)
  11824. {
  11825. _target->SetStartScale (startScale);
  11826. }
  11827. DllExport void
  11828. RibbonTrail_SetEndScale (Urho3D::RibbonTrail *_target, float endScale)
  11829. {
  11830. _target->SetEndScale (endScale);
  11831. }
  11832. DllExport void
  11833. RibbonTrail_SetTrailType (Urho3D::RibbonTrail *_target, enum Urho3D::TrailType type)
  11834. {
  11835. _target->SetTrailType (type);
  11836. }
  11837. DllExport void
  11838. RibbonTrail_SetSorted (Urho3D::RibbonTrail *_target, bool enable)
  11839. {
  11840. _target->SetSorted (enable);
  11841. }
  11842. DllExport void
  11843. RibbonTrail_SetLifetime (Urho3D::RibbonTrail *_target, float time)
  11844. {
  11845. _target->SetLifetime (time);
  11846. }
  11847. DllExport void
  11848. RibbonTrail_SetEmitting (Urho3D::RibbonTrail *_target, bool emitting)
  11849. {
  11850. _target->SetEmitting (emitting);
  11851. }
  11852. DllExport void
  11853. RibbonTrail_SetUpdateInvisible (Urho3D::RibbonTrail *_target, bool enable)
  11854. {
  11855. _target->SetUpdateInvisible (enable);
  11856. }
  11857. DllExport void
  11858. RibbonTrail_SetTailColumn (Urho3D::RibbonTrail *_target, unsigned int tailColumn)
  11859. {
  11860. _target->SetTailColumn (tailColumn);
  11861. }
  11862. DllExport void
  11863. RibbonTrail_SetAnimationLodBias (Urho3D::RibbonTrail *_target, float bias)
  11864. {
  11865. _target->SetAnimationLodBias (bias);
  11866. }
  11867. DllExport void
  11868. RibbonTrail_Commit (Urho3D::RibbonTrail *_target)
  11869. {
  11870. _target->Commit ();
  11871. }
  11872. DllExport Urho3D::Material *
  11873. RibbonTrail_GetMaterial (Urho3D::RibbonTrail *_target)
  11874. {
  11875. return _target->GetMaterial ();
  11876. }
  11877. DllExport Urho3D::ResourceRef
  11878. RibbonTrail_GetMaterialAttr (Urho3D::RibbonTrail *_target)
  11879. {
  11880. return _target->GetMaterialAttr ();
  11881. }
  11882. DllExport float
  11883. RibbonTrail_GetVertexDistance (Urho3D::RibbonTrail *_target)
  11884. {
  11885. return _target->GetVertexDistance ();
  11886. }
  11887. DllExport float
  11888. RibbonTrail_GetWidth (Urho3D::RibbonTrail *_target)
  11889. {
  11890. return _target->GetWidth ();
  11891. }
  11892. DllExport Interop::Color
  11893. RibbonTrail_GetStartColor (Urho3D::RibbonTrail *_target)
  11894. {
  11895. return *((Interop::Color *) &(_target->GetStartColor ()));
  11896. }
  11897. DllExport Interop::Color
  11898. RibbonTrail_GetEndColor (Urho3D::RibbonTrail *_target)
  11899. {
  11900. return *((Interop::Color *) &(_target->GetEndColor ()));
  11901. }
  11902. DllExport float
  11903. RibbonTrail_GetStartScale (Urho3D::RibbonTrail *_target)
  11904. {
  11905. return _target->GetStartScale ();
  11906. }
  11907. DllExport float
  11908. RibbonTrail_GetEndScale (Urho3D::RibbonTrail *_target)
  11909. {
  11910. return _target->GetEndScale ();
  11911. }
  11912. DllExport int
  11913. RibbonTrail_IsSorted (Urho3D::RibbonTrail *_target)
  11914. {
  11915. return _target->IsSorted ();
  11916. }
  11917. DllExport float
  11918. RibbonTrail_GetLifetime (Urho3D::RibbonTrail *_target)
  11919. {
  11920. return _target->GetLifetime ();
  11921. }
  11922. DllExport float
  11923. RibbonTrail_GetAnimationLodBias (Urho3D::RibbonTrail *_target)
  11924. {
  11925. return _target->GetAnimationLodBias ();
  11926. }
  11927. DllExport enum Urho3D::TrailType
  11928. RibbonTrail_GetTrailType (Urho3D::RibbonTrail *_target)
  11929. {
  11930. return _target->GetTrailType ();
  11931. }
  11932. DllExport unsigned int
  11933. RibbonTrail_GetTailColumn (Urho3D::RibbonTrail *_target)
  11934. {
  11935. return _target->GetTailColumn ();
  11936. }
  11937. DllExport int
  11938. RibbonTrail_IsEmitting (Urho3D::RibbonTrail *_target)
  11939. {
  11940. return _target->IsEmitting ();
  11941. }
  11942. DllExport int
  11943. RibbonTrail_GetUpdateInvisible (Urho3D::RibbonTrail *_target)
  11944. {
  11945. return _target->GetUpdateInvisible ();
  11946. }
  11947. DllExport void *
  11948. XmlElement_XMLElement ()
  11949. {
  11950. return new XMLElement();
  11951. }
  11952. DllExport void *
  11953. XmlElement_XMLElement0 (const class Urho3D::XMLElement & rhs)
  11954. {
  11955. return new XMLElement(rhs);
  11956. }
  11957. DllExport Urho3D::XMLElement *
  11958. XmlElement_CreateChild (Urho3D::XMLElement *_target, const char * name)
  11959. {
  11960. return new Urho3D::XMLElement (_target->CreateChild (Urho3D::String(name)));
  11961. }
  11962. DllExport Urho3D::XMLElement *
  11963. XmlElement_GetOrCreateChild (Urho3D::XMLElement *_target, const char * name)
  11964. {
  11965. return new Urho3D::XMLElement (_target->GetOrCreateChild (Urho3D::String(name)));
  11966. }
  11967. DllExport int
  11968. XmlElement_RemoveChild (Urho3D::XMLElement *_target, const class Urho3D::XMLElement & element)
  11969. {
  11970. return _target->RemoveChild (element);
  11971. }
  11972. DllExport int
  11973. XmlElement_RemoveChild1 (Urho3D::XMLElement *_target, const char * name)
  11974. {
  11975. return _target->RemoveChild (Urho3D::String(name));
  11976. }
  11977. DllExport int
  11978. XmlElement_RemoveChildren (Urho3D::XMLElement *_target, const char * name)
  11979. {
  11980. return _target->RemoveChildren (Urho3D::String(name));
  11981. }
  11982. DllExport int
  11983. XmlElement_RemoveAttribute (Urho3D::XMLElement *_target, const char * name)
  11984. {
  11985. return _target->RemoveAttribute (Urho3D::String(name));
  11986. }
  11987. DllExport int
  11988. XmlElement_SetValue (Urho3D::XMLElement *_target, const char * value)
  11989. {
  11990. return _target->SetValue (Urho3D::String(value));
  11991. }
  11992. DllExport int
  11993. XmlElement_SetAttribute (Urho3D::XMLElement *_target, const char * name, const char * value)
  11994. {
  11995. return _target->SetAttribute (Urho3D::String(name), Urho3D::String(value));
  11996. }
  11997. DllExport int
  11998. XmlElement_SetAttribute2 (Urho3D::XMLElement *_target, const char * value)
  11999. {
  12000. return _target->SetAttribute (Urho3D::String(value));
  12001. }
  12002. DllExport int
  12003. XmlElement_SetBool (Urho3D::XMLElement *_target, const char * name, bool value)
  12004. {
  12005. return _target->SetBool (Urho3D::String(name), value);
  12006. }
  12007. DllExport int
  12008. XmlElement_SetBoundingBox (Urho3D::XMLElement *_target, const class Urho3D::BoundingBox & value)
  12009. {
  12010. return _target->SetBoundingBox (value);
  12011. }
  12012. DllExport int
  12013. XmlElement_SetBuffer (Urho3D::XMLElement *_target, const char * name, const void * data, unsigned int size)
  12014. {
  12015. return _target->SetBuffer (Urho3D::String(name), data, size);
  12016. }
  12017. DllExport int
  12018. XmlElement_SetColor (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Color & value)
  12019. {
  12020. return _target->SetColor (Urho3D::String(name), value);
  12021. }
  12022. DllExport int
  12023. XmlElement_SetFloat (Urho3D::XMLElement *_target, const char * name, float value)
  12024. {
  12025. return _target->SetFloat (Urho3D::String(name), value);
  12026. }
  12027. DllExport int
  12028. XmlElement_SetDouble (Urho3D::XMLElement *_target, const char * name, double value)
  12029. {
  12030. return _target->SetDouble (Urho3D::String(name), value);
  12031. }
  12032. DllExport int
  12033. XmlElement_SetUInt (Urho3D::XMLElement *_target, const char * name, unsigned int value)
  12034. {
  12035. return _target->SetUInt (Urho3D::String(name), value);
  12036. }
  12037. DllExport int
  12038. XmlElement_SetInt (Urho3D::XMLElement *_target, const char * name, int value)
  12039. {
  12040. return _target->SetInt (Urho3D::String(name), value);
  12041. }
  12042. DllExport int
  12043. XmlElement_SetUInt64 (Urho3D::XMLElement *_target, const char * name, unsigned long long value)
  12044. {
  12045. return _target->SetUInt64 (Urho3D::String(name), value);
  12046. }
  12047. DllExport int
  12048. XmlElement_SetInt64 (Urho3D::XMLElement *_target, const char * name, long long value)
  12049. {
  12050. return _target->SetInt64 (Urho3D::String(name), value);
  12051. }
  12052. DllExport int
  12053. XmlElement_SetIntRect (Urho3D::XMLElement *_target, const char * name, const class Urho3D::IntRect & value)
  12054. {
  12055. return _target->SetIntRect (Urho3D::String(name), value);
  12056. }
  12057. DllExport int
  12058. XmlElement_SetIntVector2 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::IntVector2 & value)
  12059. {
  12060. return _target->SetIntVector2 (Urho3D::String(name), value);
  12061. }
  12062. DllExport int
  12063. XmlElement_SetQuaternion (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Quaternion & value)
  12064. {
  12065. return _target->SetQuaternion (Urho3D::String(name), value);
  12066. }
  12067. DllExport int
  12068. XmlElement_SetString (Urho3D::XMLElement *_target, const char * name, const char * value)
  12069. {
  12070. return _target->SetString (Urho3D::String(name), Urho3D::String(value));
  12071. }
  12072. // Urho3D::Variant overloads begin:
  12073. DllExport int
  12074. XmlElement_SetVariant0 (Urho3D::XMLElement *_target, const class Urho3D::Vector3 & value)
  12075. {
  12076. return _target->SetVariant ((value));
  12077. }
  12078. DllExport int
  12079. XmlElement_SetVariant1 (Urho3D::XMLElement *_target, const class Urho3D::IntRect & value)
  12080. {
  12081. return _target->SetVariant ((value));
  12082. }
  12083. DllExport int
  12084. XmlElement_SetVariant2 (Urho3D::XMLElement *_target, const class Urho3D::Color & value)
  12085. {
  12086. return _target->SetVariant ((value));
  12087. }
  12088. DllExport int
  12089. XmlElement_SetVariant3 (Urho3D::XMLElement *_target, const class Urho3D::Vector2 & value)
  12090. {
  12091. return _target->SetVariant ((value));
  12092. }
  12093. DllExport int
  12094. XmlElement_SetVariant4 (Urho3D::XMLElement *_target, const class Urho3D::Vector4 & value)
  12095. {
  12096. return _target->SetVariant ((value));
  12097. }
  12098. DllExport int
  12099. XmlElement_SetVariant5 (Urho3D::XMLElement *_target, const class Urho3D::IntVector2 & value)
  12100. {
  12101. return _target->SetVariant ((value));
  12102. }
  12103. DllExport int
  12104. XmlElement_SetVariant6 (Urho3D::XMLElement *_target, const class Urho3D::Quaternion & value)
  12105. {
  12106. return _target->SetVariant ((value));
  12107. }
  12108. DllExport int
  12109. XmlElement_SetVariant7 (Urho3D::XMLElement *_target, const class Urho3D::Matrix4 & value)
  12110. {
  12111. return _target->SetVariant ((value));
  12112. }
  12113. DllExport int
  12114. XmlElement_SetVariant8 (Urho3D::XMLElement *_target, const class Urho3D::Matrix3x4 & value)
  12115. {
  12116. return _target->SetVariant ((value));
  12117. }
  12118. DllExport int
  12119. XmlElement_SetVariant9 (Urho3D::XMLElement *_target, int value)
  12120. {
  12121. return _target->SetVariant ((value));
  12122. }
  12123. DllExport int
  12124. XmlElement_SetVariant10 (Urho3D::XMLElement *_target, float value)
  12125. {
  12126. return _target->SetVariant ((value));
  12127. }
  12128. DllExport int
  12129. XmlElement_SetVariant11 (Urho3D::XMLElement *_target, const char * value)
  12130. {
  12131. return _target->SetVariant (Urho3D::String(value));
  12132. }
  12133. DllExport int
  12134. XmlElement_SetVariant12 (Urho3D::XMLElement *_target, bool value)
  12135. {
  12136. return _target->SetVariant ((value));
  12137. }
  12138. // Urho3D::Variant overloads end.
  12139. // Urho3D::Variant overloads begin:
  12140. DllExport int
  12141. XmlElement_SetVariantValue0 (Urho3D::XMLElement *_target, const class Urho3D::Vector3 & value)
  12142. {
  12143. return _target->SetVariantValue ((value));
  12144. }
  12145. DllExport int
  12146. XmlElement_SetVariantValue1 (Urho3D::XMLElement *_target, const class Urho3D::IntRect & value)
  12147. {
  12148. return _target->SetVariantValue ((value));
  12149. }
  12150. DllExport int
  12151. XmlElement_SetVariantValue2 (Urho3D::XMLElement *_target, const class Urho3D::Color & value)
  12152. {
  12153. return _target->SetVariantValue ((value));
  12154. }
  12155. DllExport int
  12156. XmlElement_SetVariantValue3 (Urho3D::XMLElement *_target, const class Urho3D::Vector2 & value)
  12157. {
  12158. return _target->SetVariantValue ((value));
  12159. }
  12160. DllExport int
  12161. XmlElement_SetVariantValue4 (Urho3D::XMLElement *_target, const class Urho3D::Vector4 & value)
  12162. {
  12163. return _target->SetVariantValue ((value));
  12164. }
  12165. DllExport int
  12166. XmlElement_SetVariantValue5 (Urho3D::XMLElement *_target, const class Urho3D::IntVector2 & value)
  12167. {
  12168. return _target->SetVariantValue ((value));
  12169. }
  12170. DllExport int
  12171. XmlElement_SetVariantValue6 (Urho3D::XMLElement *_target, const class Urho3D::Quaternion & value)
  12172. {
  12173. return _target->SetVariantValue ((value));
  12174. }
  12175. DllExport int
  12176. XmlElement_SetVariantValue7 (Urho3D::XMLElement *_target, const class Urho3D::Matrix4 & value)
  12177. {
  12178. return _target->SetVariantValue ((value));
  12179. }
  12180. DllExport int
  12181. XmlElement_SetVariantValue8 (Urho3D::XMLElement *_target, const class Urho3D::Matrix3x4 & value)
  12182. {
  12183. return _target->SetVariantValue ((value));
  12184. }
  12185. DllExport int
  12186. XmlElement_SetVariantValue9 (Urho3D::XMLElement *_target, int value)
  12187. {
  12188. return _target->SetVariantValue ((value));
  12189. }
  12190. DllExport int
  12191. XmlElement_SetVariantValue10 (Urho3D::XMLElement *_target, float value)
  12192. {
  12193. return _target->SetVariantValue ((value));
  12194. }
  12195. DllExport int
  12196. XmlElement_SetVariantValue11 (Urho3D::XMLElement *_target, const char * value)
  12197. {
  12198. return _target->SetVariantValue (Urho3D::String(value));
  12199. }
  12200. DllExport int
  12201. XmlElement_SetVariantValue12 (Urho3D::XMLElement *_target, bool value)
  12202. {
  12203. return _target->SetVariantValue ((value));
  12204. }
  12205. // Urho3D::Variant overloads end.
  12206. DllExport int
  12207. XmlElement_SetVector2 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Vector2 & value)
  12208. {
  12209. return _target->SetVector2 (Urho3D::String(name), value);
  12210. }
  12211. DllExport int
  12212. XmlElement_SetVector3 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Vector3 & value)
  12213. {
  12214. return _target->SetVector3 (Urho3D::String(name), value);
  12215. }
  12216. DllExport int
  12217. XmlElement_SetVector4 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Vector4 & value)
  12218. {
  12219. return _target->SetVector4 (Urho3D::String(name), value);
  12220. }
  12221. // Urho3D::Variant overloads begin:
  12222. DllExport int
  12223. XmlElement_SetVectorVariant0 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Vector3 & value)
  12224. {
  12225. return _target->SetVectorVariant (Urho3D::String(name), (value));
  12226. }
  12227. DllExport int
  12228. XmlElement_SetVectorVariant1 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::IntRect & value)
  12229. {
  12230. return _target->SetVectorVariant (Urho3D::String(name), (value));
  12231. }
  12232. DllExport int
  12233. XmlElement_SetVectorVariant2 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Color & value)
  12234. {
  12235. return _target->SetVectorVariant (Urho3D::String(name), (value));
  12236. }
  12237. DllExport int
  12238. XmlElement_SetVectorVariant3 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Vector2 & value)
  12239. {
  12240. return _target->SetVectorVariant (Urho3D::String(name), (value));
  12241. }
  12242. DllExport int
  12243. XmlElement_SetVectorVariant4 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Vector4 & value)
  12244. {
  12245. return _target->SetVectorVariant (Urho3D::String(name), (value));
  12246. }
  12247. DllExport int
  12248. XmlElement_SetVectorVariant5 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::IntVector2 & value)
  12249. {
  12250. return _target->SetVectorVariant (Urho3D::String(name), (value));
  12251. }
  12252. DllExport int
  12253. XmlElement_SetVectorVariant6 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Quaternion & value)
  12254. {
  12255. return _target->SetVectorVariant (Urho3D::String(name), (value));
  12256. }
  12257. DllExport int
  12258. XmlElement_SetVectorVariant7 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Matrix4 & value)
  12259. {
  12260. return _target->SetVectorVariant (Urho3D::String(name), (value));
  12261. }
  12262. DllExport int
  12263. XmlElement_SetVectorVariant8 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Matrix3x4 & value)
  12264. {
  12265. return _target->SetVectorVariant (Urho3D::String(name), (value));
  12266. }
  12267. DllExport int
  12268. XmlElement_SetVectorVariant9 (Urho3D::XMLElement *_target, const char * name, int value)
  12269. {
  12270. return _target->SetVectorVariant (Urho3D::String(name), (value));
  12271. }
  12272. DllExport int
  12273. XmlElement_SetVectorVariant10 (Urho3D::XMLElement *_target, const char * name, float value)
  12274. {
  12275. return _target->SetVectorVariant (Urho3D::String(name), (value));
  12276. }
  12277. DllExport int
  12278. XmlElement_SetVectorVariant11 (Urho3D::XMLElement *_target, const char * name, const char * value)
  12279. {
  12280. return _target->SetVectorVariant (Urho3D::String(name), Urho3D::String(value));
  12281. }
  12282. DllExport int
  12283. XmlElement_SetVectorVariant12 (Urho3D::XMLElement *_target, const char * name, bool value)
  12284. {
  12285. return _target->SetVectorVariant (Urho3D::String(name), (value));
  12286. }
  12287. // Urho3D::Variant overloads end.
  12288. DllExport int
  12289. XmlElement_SetMatrix3x4 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Matrix3x4 & value)
  12290. {
  12291. return _target->SetMatrix3x4 (Urho3D::String(name), value);
  12292. }
  12293. DllExport int
  12294. XmlElement_SetMatrix4 (Urho3D::XMLElement *_target, const char * name, const class Urho3D::Matrix4 & value)
  12295. {
  12296. return _target->SetMatrix4 (Urho3D::String(name), value);
  12297. }
  12298. DllExport int
  12299. XmlElement_IsNull (Urho3D::XMLElement *_target)
  12300. {
  12301. return _target->IsNull ();
  12302. }
  12303. DllExport int
  12304. XmlElement_NotNull (Urho3D::XMLElement *_target)
  12305. {
  12306. return _target->NotNull ();
  12307. }
  12308. DllExport const char *
  12309. XmlElement_GetName (Urho3D::XMLElement *_target)
  12310. {
  12311. return stringdup((_target->GetName ()).CString ());
  12312. }
  12313. DllExport int
  12314. XmlElement_HasChild (Urho3D::XMLElement *_target, const char * name)
  12315. {
  12316. return _target->HasChild (Urho3D::String(name));
  12317. }
  12318. DllExport Urho3D::XMLElement *
  12319. XmlElement_GetChild (Urho3D::XMLElement *_target, const char * name)
  12320. {
  12321. return new Urho3D::XMLElement (_target->GetChild (Urho3D::String(name)));
  12322. }
  12323. DllExport Urho3D::XMLElement *
  12324. XmlElement_GetNext (Urho3D::XMLElement *_target, const char * name)
  12325. {
  12326. return new Urho3D::XMLElement (_target->GetNext (Urho3D::String(name)));
  12327. }
  12328. DllExport Urho3D::XMLElement *
  12329. XmlElement_GetParent (Urho3D::XMLElement *_target)
  12330. {
  12331. return new Urho3D::XMLElement (_target->GetParent ());
  12332. }
  12333. DllExport unsigned int
  12334. XmlElement_GetNumAttributes (Urho3D::XMLElement *_target)
  12335. {
  12336. return _target->GetNumAttributes ();
  12337. }
  12338. DllExport int
  12339. XmlElement_HasAttribute (Urho3D::XMLElement *_target, const char * name)
  12340. {
  12341. return _target->HasAttribute (Urho3D::String(name));
  12342. }
  12343. DllExport const char *
  12344. XmlElement_GetValue (Urho3D::XMLElement *_target)
  12345. {
  12346. return stringdup((_target->GetValue ()).CString ());
  12347. }
  12348. DllExport const char *
  12349. XmlElement_GetAttribute (Urho3D::XMLElement *_target, const char * name)
  12350. {
  12351. return stringdup((_target->GetAttribute (Urho3D::String(name))).CString ());
  12352. }
  12353. DllExport const char *
  12354. XmlElement_GetAttributeLower (Urho3D::XMLElement *_target, const char * name)
  12355. {
  12356. return stringdup((_target->GetAttributeLower (Urho3D::String(name))).CString ());
  12357. }
  12358. DllExport const char *
  12359. XmlElement_GetAttributeUpper (Urho3D::XMLElement *_target, const char * name)
  12360. {
  12361. return stringdup((_target->GetAttributeUpper (Urho3D::String(name))).CString ());
  12362. }
  12363. DllExport int
  12364. XmlElement_GetBool (Urho3D::XMLElement *_target, const char * name)
  12365. {
  12366. return _target->GetBool (Urho3D::String(name));
  12367. }
  12368. DllExport int
  12369. XmlElement_GetBuffer (Urho3D::XMLElement *_target, const char * name, void * dest, unsigned int size)
  12370. {
  12371. return _target->GetBuffer (Urho3D::String(name), dest, size);
  12372. }
  12373. DllExport Interop::BoundingBox
  12374. XmlElement_GetBoundingBox (Urho3D::XMLElement *_target)
  12375. {
  12376. return *((Interop::BoundingBox *) &(_target->GetBoundingBox ()));
  12377. }
  12378. DllExport Interop::Color
  12379. XmlElement_GetColor (Urho3D::XMLElement *_target, const char * name)
  12380. {
  12381. return *((Interop::Color *) &(_target->GetColor (Urho3D::String(name))));
  12382. }
  12383. DllExport float
  12384. XmlElement_GetFloat (Urho3D::XMLElement *_target, const char * name)
  12385. {
  12386. return _target->GetFloat (Urho3D::String(name));
  12387. }
  12388. DllExport double
  12389. XmlElement_GetDouble (Urho3D::XMLElement *_target, const char * name)
  12390. {
  12391. return _target->GetDouble (Urho3D::String(name));
  12392. }
  12393. DllExport unsigned int
  12394. XmlElement_GetUInt (Urho3D::XMLElement *_target, const char * name)
  12395. {
  12396. return _target->GetUInt (Urho3D::String(name));
  12397. }
  12398. DllExport int
  12399. XmlElement_GetInt (Urho3D::XMLElement *_target, const char * name)
  12400. {
  12401. return _target->GetInt (Urho3D::String(name));
  12402. }
  12403. DllExport unsigned long long
  12404. XmlElement_GetUInt64 (Urho3D::XMLElement *_target, const char * name)
  12405. {
  12406. return _target->GetUInt64 (Urho3D::String(name));
  12407. }
  12408. DllExport long long
  12409. XmlElement_GetInt64 (Urho3D::XMLElement *_target, const char * name)
  12410. {
  12411. return _target->GetInt64 (Urho3D::String(name));
  12412. }
  12413. DllExport Interop::IntRect
  12414. XmlElement_GetIntRect (Urho3D::XMLElement *_target, const char * name)
  12415. {
  12416. return *((Interop::IntRect *) &(_target->GetIntRect (Urho3D::String(name))));
  12417. }
  12418. DllExport Interop::IntVector2
  12419. XmlElement_GetIntVector2 (Urho3D::XMLElement *_target, const char * name)
  12420. {
  12421. return *((Interop::IntVector2 *) &(_target->GetIntVector2 (Urho3D::String(name))));
  12422. }
  12423. DllExport Urho3D::IntVector3
  12424. XmlElement_GetIntVector3 (Urho3D::XMLElement *_target, const char * name)
  12425. {
  12426. return _target->GetIntVector3 (Urho3D::String(name));
  12427. }
  12428. DllExport Urho3D::Rect
  12429. XmlElement_GetRect (Urho3D::XMLElement *_target, const char * name)
  12430. {
  12431. return _target->GetRect (Urho3D::String(name));
  12432. }
  12433. DllExport Interop::Quaternion
  12434. XmlElement_GetQuaternion (Urho3D::XMLElement *_target, const char * name)
  12435. {
  12436. return *((Interop::Quaternion *) &(_target->GetQuaternion (Urho3D::String(name))));
  12437. }
  12438. DllExport Urho3D::Variant
  12439. XmlElement_GetVariant (Urho3D::XMLElement *_target)
  12440. {
  12441. return _target->GetVariant ();
  12442. }
  12443. DllExport Urho3D::Variant
  12444. XmlElement_GetVariantValue (Urho3D::XMLElement *_target, enum Urho3D::VariantType type)
  12445. {
  12446. return _target->GetVariantValue (type);
  12447. }
  12448. DllExport Urho3D::ResourceRef
  12449. XmlElement_GetResourceRef (Urho3D::XMLElement *_target)
  12450. {
  12451. return _target->GetResourceRef ();
  12452. }
  12453. DllExport Urho3D::ResourceRefList
  12454. XmlElement_GetResourceRefList (Urho3D::XMLElement *_target)
  12455. {
  12456. return _target->GetResourceRefList ();
  12457. }
  12458. DllExport Interop::Vector2
  12459. XmlElement_GetVector2 (Urho3D::XMLElement *_target, const char * name)
  12460. {
  12461. return *((Interop::Vector2 *) &(_target->GetVector2 (Urho3D::String(name))));
  12462. }
  12463. DllExport Interop::Vector3
  12464. XmlElement_GetVector3 (Urho3D::XMLElement *_target, const char * name)
  12465. {
  12466. return *((Interop::Vector3 *) &(_target->GetVector3 (Urho3D::String(name))));
  12467. }
  12468. DllExport Interop::Vector4
  12469. XmlElement_GetVector4 (Urho3D::XMLElement *_target, const char * name)
  12470. {
  12471. return *((Interop::Vector4 *) &(_target->GetVector4 (Urho3D::String(name))));
  12472. }
  12473. DllExport Interop::Vector4
  12474. XmlElement_GetVector (Urho3D::XMLElement *_target, const char * name)
  12475. {
  12476. return *((Interop::Vector4 *) &(_target->GetVector (Urho3D::String(name))));
  12477. }
  12478. DllExport Urho3D::Variant
  12479. XmlElement_GetVectorVariant (Urho3D::XMLElement *_target, const char * name)
  12480. {
  12481. return _target->GetVectorVariant (Urho3D::String(name));
  12482. }
  12483. DllExport Urho3D::Matrix3
  12484. XmlElement_GetMatrix3 (Urho3D::XMLElement *_target, const char * name)
  12485. {
  12486. return _target->GetMatrix3 (Urho3D::String(name));
  12487. }
  12488. DllExport Interop::Matrix3x4
  12489. XmlElement_GetMatrix3x4 (Urho3D::XMLElement *_target, const char * name)
  12490. {
  12491. return *((Interop::Matrix3x4 *) &(_target->GetMatrix3x4 (Urho3D::String(name))));
  12492. }
  12493. DllExport Interop::Matrix4
  12494. XmlElement_GetMatrix4 (Urho3D::XMLElement *_target, const char * name)
  12495. {
  12496. return *((Interop::Matrix4 *) &(_target->GetMatrix4 (Urho3D::String(name))));
  12497. }
  12498. DllExport Urho3D::XMLFile *
  12499. XmlElement_GetFile (Urho3D::XMLElement *_target)
  12500. {
  12501. return _target->GetFile ();
  12502. }
  12503. DllExport const class Urho3D::XPathResultSet *
  12504. XmlElement_GetXPathResultSet (Urho3D::XMLElement *_target)
  12505. {
  12506. return _target->GetXPathResultSet ();
  12507. }
  12508. DllExport unsigned int
  12509. XmlElement_GetXPathResultIndex (Urho3D::XMLElement *_target)
  12510. {
  12511. return _target->GetXPathResultIndex ();
  12512. }
  12513. DllExport Urho3D::XMLElement *
  12514. XmlElement_NextResult (Urho3D::XMLElement *_target)
  12515. {
  12516. return new Urho3D::XMLElement (_target->NextResult ());
  12517. }
  12518. DllExport int
  12519. XmlFile_GetType (Urho3D::XMLFile *_target)
  12520. {
  12521. return (_target->GetType ()).Value ();
  12522. }
  12523. DllExport const char *
  12524. XmlFile_GetTypeName (Urho3D::XMLFile *_target)
  12525. {
  12526. return stringdup((_target->GetTypeName ()).CString ());
  12527. }
  12528. DllExport int
  12529. XmlFile_GetTypeStatic ()
  12530. {
  12531. return (XMLFile::GetTypeStatic ()).Value ();
  12532. }
  12533. DllExport const char *
  12534. XmlFile_GetTypeNameStatic ()
  12535. {
  12536. return stringdup((XMLFile::GetTypeNameStatic ()).CString ());
  12537. }
  12538. DllExport void *
  12539. XmlFile_XMLFile (Urho3D::Context * context)
  12540. {
  12541. return WeakPtr<XMLFile>(new XMLFile(context));
  12542. }
  12543. DllExport void
  12544. XmlFile_RegisterObject (Urho3D::Context * context)
  12545. {
  12546. XMLFile::RegisterObject (context);
  12547. }
  12548. DllExport int
  12549. XmlFile_BeginLoad_File (Urho3D::XMLFile *_target, File * source)
  12550. {
  12551. return _target->BeginLoad (*source);
  12552. }
  12553. DllExport int
  12554. XmlFile_BeginLoad_MemoryBuffer (Urho3D::XMLFile *_target, MemoryBuffer * source)
  12555. {
  12556. return _target->BeginLoad (*source);
  12557. }
  12558. DllExport int
  12559. XmlFile_Save_File (Urho3D::XMLFile *_target, File * dest)
  12560. {
  12561. return _target->Save (*dest);
  12562. }
  12563. DllExport int
  12564. XmlFile_Save_MemoryBuffer (Urho3D::XMLFile *_target, MemoryBuffer * dest)
  12565. {
  12566. return _target->Save (*dest);
  12567. }
  12568. DllExport int
  12569. XmlFile_Save0_File (Urho3D::XMLFile *_target, File * dest, const char * indentation)
  12570. {
  12571. return _target->Save (*dest, Urho3D::String(indentation));
  12572. }
  12573. DllExport int
  12574. XmlFile_Save0_MemoryBuffer (Urho3D::XMLFile *_target, MemoryBuffer * dest, const char * indentation)
  12575. {
  12576. return _target->Save (*dest, Urho3D::String(indentation));
  12577. }
  12578. DllExport int
  12579. XmlFile_FromString (Urho3D::XMLFile *_target, const char * source)
  12580. {
  12581. return _target->FromString (Urho3D::String(source));
  12582. }
  12583. DllExport Urho3D::XMLElement *
  12584. XmlFile_CreateRoot (Urho3D::XMLFile *_target, const char * name)
  12585. {
  12586. return new Urho3D::XMLElement (_target->CreateRoot (Urho3D::String(name)));
  12587. }
  12588. DllExport Urho3D::XMLElement *
  12589. XmlFile_GetOrCreateRoot (Urho3D::XMLFile *_target, const char * name)
  12590. {
  12591. return new Urho3D::XMLElement (_target->GetOrCreateRoot (Urho3D::String(name)));
  12592. }
  12593. DllExport Urho3D::XMLElement *
  12594. XmlFile_GetRoot (Urho3D::XMLFile *_target, const char * name)
  12595. {
  12596. return new Urho3D::XMLElement (_target->GetRoot (Urho3D::String(name)));
  12597. }
  12598. DllExport const char *
  12599. XmlFile_ToString (Urho3D::XMLFile *_target, const char * indentation)
  12600. {
  12601. return stringdup((_target->ToString (Urho3D::String(indentation))).CString ());
  12602. }
  12603. DllExport void
  12604. XmlFile_Patch (Urho3D::XMLFile *_target, Urho3D::XMLFile * patchFile)
  12605. {
  12606. _target->Patch (patchFile);
  12607. }
  12608. DllExport void
  12609. XmlFile_Patch1 (Urho3D::XMLFile *_target, Urho3D::XMLElement patchElement)
  12610. {
  12611. _target->Patch (patchElement);
  12612. }
  12613. DllExport int
  12614. ShaderPrecache_GetType (Urho3D::ShaderPrecache *_target)
  12615. {
  12616. return (_target->GetType ()).Value ();
  12617. }
  12618. DllExport const char *
  12619. ShaderPrecache_GetTypeName (Urho3D::ShaderPrecache *_target)
  12620. {
  12621. return stringdup((_target->GetTypeName ()).CString ());
  12622. }
  12623. DllExport int
  12624. ShaderPrecache_GetTypeStatic ()
  12625. {
  12626. return (ShaderPrecache::GetTypeStatic ()).Value ();
  12627. }
  12628. DllExport const char *
  12629. ShaderPrecache_GetTypeNameStatic ()
  12630. {
  12631. return stringdup((ShaderPrecache::GetTypeNameStatic ()).CString ());
  12632. }
  12633. DllExport void *
  12634. ShaderPrecache_ShaderPrecache (Urho3D::Context * context, const char * fileName)
  12635. {
  12636. return WeakPtr<ShaderPrecache>(new ShaderPrecache(context, Urho3D::String(fileName)));
  12637. }
  12638. DllExport void
  12639. ShaderPrecache_StoreShaders (Urho3D::ShaderPrecache *_target, Urho3D::ShaderVariation * vs, Urho3D::ShaderVariation * ps)
  12640. {
  12641. _target->StoreShaders (vs, ps);
  12642. }
  12643. DllExport void
  12644. ShaderPrecache_LoadShaders_File (Urho3D::Graphics * graphics, File * source)
  12645. {
  12646. ShaderPrecache::LoadShaders (graphics, *source);
  12647. }
  12648. DllExport void
  12649. ShaderPrecache_LoadShaders_MemoryBuffer (Urho3D::Graphics * graphics, MemoryBuffer * source)
  12650. {
  12651. ShaderPrecache::LoadShaders (graphics, *source);
  12652. }
  12653. DllExport int
  12654. Skybox_GetType (Urho3D::Skybox *_target)
  12655. {
  12656. return (_target->GetType ()).Value ();
  12657. }
  12658. DllExport const char *
  12659. Skybox_GetTypeName (Urho3D::Skybox *_target)
  12660. {
  12661. return stringdup((_target->GetTypeName ()).CString ());
  12662. }
  12663. DllExport int
  12664. Skybox_GetTypeStatic ()
  12665. {
  12666. return (Skybox::GetTypeStatic ()).Value ();
  12667. }
  12668. DllExport const char *
  12669. Skybox_GetTypeNameStatic ()
  12670. {
  12671. return stringdup((Skybox::GetTypeNameStatic ()).CString ());
  12672. }
  12673. DllExport void *
  12674. Skybox_Skybox (Urho3D::Context * context)
  12675. {
  12676. return WeakPtr<Skybox>(new Skybox(context));
  12677. }
  12678. DllExport void
  12679. Skybox_RegisterObject (Urho3D::Context * context)
  12680. {
  12681. Skybox::RegisterObject (context);
  12682. }
  12683. DllExport int
  12684. StaticModelGroup_GetType (Urho3D::StaticModelGroup *_target)
  12685. {
  12686. return (_target->GetType ()).Value ();
  12687. }
  12688. DllExport const char *
  12689. StaticModelGroup_GetTypeName (Urho3D::StaticModelGroup *_target)
  12690. {
  12691. return stringdup((_target->GetTypeName ()).CString ());
  12692. }
  12693. DllExport int
  12694. StaticModelGroup_GetTypeStatic ()
  12695. {
  12696. return (StaticModelGroup::GetTypeStatic ()).Value ();
  12697. }
  12698. DllExport const char *
  12699. StaticModelGroup_GetTypeNameStatic ()
  12700. {
  12701. return stringdup((StaticModelGroup::GetTypeNameStatic ()).CString ());
  12702. }
  12703. DllExport void *
  12704. StaticModelGroup_StaticModelGroup (Urho3D::Context * context)
  12705. {
  12706. return WeakPtr<StaticModelGroup>(new StaticModelGroup(context));
  12707. }
  12708. DllExport void
  12709. StaticModelGroup_RegisterObject (Urho3D::Context * context)
  12710. {
  12711. StaticModelGroup::RegisterObject (context);
  12712. }
  12713. DllExport void
  12714. StaticModelGroup_ApplyAttributes (Urho3D::StaticModelGroup *_target)
  12715. {
  12716. _target->ApplyAttributes ();
  12717. }
  12718. DllExport unsigned int
  12719. StaticModelGroup_GetNumOccluderTriangles (Urho3D::StaticModelGroup *_target)
  12720. {
  12721. return _target->GetNumOccluderTriangles ();
  12722. }
  12723. DllExport int
  12724. StaticModelGroup_DrawOcclusion (Urho3D::StaticModelGroup *_target, Urho3D::OcclusionBuffer * buffer)
  12725. {
  12726. return _target->DrawOcclusion (buffer);
  12727. }
  12728. DllExport void
  12729. StaticModelGroup_AddInstanceNode (Urho3D::StaticModelGroup *_target, Urho3D::Node * node)
  12730. {
  12731. _target->AddInstanceNode (node);
  12732. }
  12733. DllExport void
  12734. StaticModelGroup_RemoveInstanceNode (Urho3D::StaticModelGroup *_target, Urho3D::Node * node)
  12735. {
  12736. _target->RemoveInstanceNode (node);
  12737. }
  12738. DllExport void
  12739. StaticModelGroup_RemoveAllInstanceNodes (Urho3D::StaticModelGroup *_target)
  12740. {
  12741. _target->RemoveAllInstanceNodes ();
  12742. }
  12743. DllExport unsigned int
  12744. StaticModelGroup_GetNumInstanceNodes (Urho3D::StaticModelGroup *_target)
  12745. {
  12746. return _target->GetNumInstanceNodes ();
  12747. }
  12748. DllExport Urho3D::Node *
  12749. StaticModelGroup_GetInstanceNode (Urho3D::StaticModelGroup *_target, unsigned int index)
  12750. {
  12751. return _target->GetInstanceNode (index);
  12752. }
  12753. DllExport void *
  12754. Pass_Pass (const char * passName)
  12755. {
  12756. return WeakPtr<Pass>(new Pass(Urho3D::String(passName)));
  12757. }
  12758. DllExport void
  12759. Pass_SetBlendMode (Urho3D::Pass *_target, enum Urho3D::BlendMode mode)
  12760. {
  12761. _target->SetBlendMode (mode);
  12762. }
  12763. DllExport void
  12764. Pass_SetCullMode (Urho3D::Pass *_target, enum Urho3D::CullMode mode)
  12765. {
  12766. _target->SetCullMode (mode);
  12767. }
  12768. DllExport void
  12769. Pass_SetDepthTestMode (Urho3D::Pass *_target, enum Urho3D::CompareMode mode)
  12770. {
  12771. _target->SetDepthTestMode (mode);
  12772. }
  12773. DllExport void
  12774. Pass_SetLightingMode (Urho3D::Pass *_target, enum Urho3D::PassLightingMode mode)
  12775. {
  12776. _target->SetLightingMode (mode);
  12777. }
  12778. DllExport void
  12779. Pass_SetDepthWrite (Urho3D::Pass *_target, bool enable)
  12780. {
  12781. _target->SetDepthWrite (enable);
  12782. }
  12783. DllExport void
  12784. Pass_SetAlphaToCoverage (Urho3D::Pass *_target, bool enable)
  12785. {
  12786. _target->SetAlphaToCoverage (enable);
  12787. }
  12788. DllExport void
  12789. Pass_SetIsDesktop (Urho3D::Pass *_target, bool enable)
  12790. {
  12791. _target->SetIsDesktop (enable);
  12792. }
  12793. DllExport void
  12794. Pass_SetVertexShader (Urho3D::Pass *_target, const char * name)
  12795. {
  12796. _target->SetVertexShader (Urho3D::String(name));
  12797. }
  12798. DllExport void
  12799. Pass_SetPixelShader (Urho3D::Pass *_target, const char * name)
  12800. {
  12801. _target->SetPixelShader (Urho3D::String(name));
  12802. }
  12803. DllExport void
  12804. Pass_SetVertexShaderDefines (Urho3D::Pass *_target, const char * defines)
  12805. {
  12806. _target->SetVertexShaderDefines (Urho3D::String(defines));
  12807. }
  12808. DllExport void
  12809. Pass_SetPixelShaderDefines (Urho3D::Pass *_target, const char * defines)
  12810. {
  12811. _target->SetPixelShaderDefines (Urho3D::String(defines));
  12812. }
  12813. DllExport void
  12814. Pass_SetVertexShaderDefineExcludes (Urho3D::Pass *_target, const char * excludes)
  12815. {
  12816. _target->SetVertexShaderDefineExcludes (Urho3D::String(excludes));
  12817. }
  12818. DllExport void
  12819. Pass_SetPixelShaderDefineExcludes (Urho3D::Pass *_target, const char * excludes)
  12820. {
  12821. _target->SetPixelShaderDefineExcludes (Urho3D::String(excludes));
  12822. }
  12823. DllExport void
  12824. Pass_ReleaseShaders (Urho3D::Pass *_target)
  12825. {
  12826. _target->ReleaseShaders ();
  12827. }
  12828. DllExport void
  12829. Pass_MarkShadersLoaded (Urho3D::Pass *_target, unsigned int frameNumber)
  12830. {
  12831. _target->MarkShadersLoaded (frameNumber);
  12832. }
  12833. DllExport const char *
  12834. Pass_GetName (Urho3D::Pass *_target)
  12835. {
  12836. return stringdup((_target->GetName ()).CString ());
  12837. }
  12838. DllExport unsigned int
  12839. Pass_GetIndex (Urho3D::Pass *_target)
  12840. {
  12841. return _target->GetIndex ();
  12842. }
  12843. DllExport enum Urho3D::BlendMode
  12844. Pass_GetBlendMode (Urho3D::Pass *_target)
  12845. {
  12846. return _target->GetBlendMode ();
  12847. }
  12848. DllExport enum Urho3D::CullMode
  12849. Pass_GetCullMode (Urho3D::Pass *_target)
  12850. {
  12851. return _target->GetCullMode ();
  12852. }
  12853. DllExport enum Urho3D::CompareMode
  12854. Pass_GetDepthTestMode (Urho3D::Pass *_target)
  12855. {
  12856. return _target->GetDepthTestMode ();
  12857. }
  12858. DllExport enum Urho3D::PassLightingMode
  12859. Pass_GetLightingMode (Urho3D::Pass *_target)
  12860. {
  12861. return _target->GetLightingMode ();
  12862. }
  12863. DllExport unsigned int
  12864. Pass_GetShadersLoadedFrameNumber (Urho3D::Pass *_target)
  12865. {
  12866. return _target->GetShadersLoadedFrameNumber ();
  12867. }
  12868. DllExport int
  12869. Pass_GetDepthWrite (Urho3D::Pass *_target)
  12870. {
  12871. return _target->GetDepthWrite ();
  12872. }
  12873. DllExport int
  12874. Pass_GetAlphaToCoverage (Urho3D::Pass *_target)
  12875. {
  12876. return _target->GetAlphaToCoverage ();
  12877. }
  12878. DllExport int
  12879. Pass_IsDesktop (Urho3D::Pass *_target)
  12880. {
  12881. return _target->IsDesktop ();
  12882. }
  12883. DllExport const char *
  12884. Pass_GetVertexShader (Urho3D::Pass *_target)
  12885. {
  12886. return stringdup((_target->GetVertexShader ()).CString ());
  12887. }
  12888. DllExport const char *
  12889. Pass_GetPixelShader (Urho3D::Pass *_target)
  12890. {
  12891. return stringdup((_target->GetPixelShader ()).CString ());
  12892. }
  12893. DllExport const char *
  12894. Pass_GetVertexShaderDefines (Urho3D::Pass *_target)
  12895. {
  12896. return stringdup((_target->GetVertexShaderDefines ()).CString ());
  12897. }
  12898. DllExport const char *
  12899. Pass_GetPixelShaderDefines (Urho3D::Pass *_target)
  12900. {
  12901. return stringdup((_target->GetPixelShaderDefines ()).CString ());
  12902. }
  12903. DllExport const char *
  12904. Pass_GetVertexShaderDefineExcludes (Urho3D::Pass *_target)
  12905. {
  12906. return stringdup((_target->GetVertexShaderDefineExcludes ()).CString ());
  12907. }
  12908. DllExport const char *
  12909. Pass_GetPixelShaderDefineExcludes (Urho3D::Pass *_target)
  12910. {
  12911. return stringdup((_target->GetPixelShaderDefineExcludes ()).CString ());
  12912. }
  12913. DllExport const char *
  12914. Pass_GetEffectiveVertexShaderDefines (Urho3D::Pass *_target)
  12915. {
  12916. return stringdup((_target->GetEffectiveVertexShaderDefines ()).CString ());
  12917. }
  12918. DllExport const char *
  12919. Pass_GetEffectivePixelShaderDefines (Urho3D::Pass *_target)
  12920. {
  12921. return stringdup((_target->GetEffectivePixelShaderDefines ()).CString ());
  12922. }
  12923. DllExport int
  12924. Technique_GetType (Urho3D::Technique *_target)
  12925. {
  12926. return (_target->GetType ()).Value ();
  12927. }
  12928. DllExport const char *
  12929. Technique_GetTypeName (Urho3D::Technique *_target)
  12930. {
  12931. return stringdup((_target->GetTypeName ()).CString ());
  12932. }
  12933. DllExport int
  12934. Technique_GetTypeStatic ()
  12935. {
  12936. return (Technique::GetTypeStatic ()).Value ();
  12937. }
  12938. DllExport const char *
  12939. Technique_GetTypeNameStatic ()
  12940. {
  12941. return stringdup((Technique::GetTypeNameStatic ()).CString ());
  12942. }
  12943. DllExport void *
  12944. Technique_Technique (Urho3D::Context * context)
  12945. {
  12946. return WeakPtr<Technique>(new Technique(context));
  12947. }
  12948. DllExport void
  12949. Technique_RegisterObject (Urho3D::Context * context)
  12950. {
  12951. Technique::RegisterObject (context);
  12952. }
  12953. DllExport int
  12954. Technique_BeginLoad_File (Urho3D::Technique *_target, File * source)
  12955. {
  12956. return _target->BeginLoad (*source);
  12957. }
  12958. DllExport int
  12959. Technique_BeginLoad_MemoryBuffer (Urho3D::Technique *_target, MemoryBuffer * source)
  12960. {
  12961. return _target->BeginLoad (*source);
  12962. }
  12963. DllExport void
  12964. Technique_SetIsDesktop (Urho3D::Technique *_target, bool enable)
  12965. {
  12966. _target->SetIsDesktop (enable);
  12967. }
  12968. DllExport Urho3D::Pass *
  12969. Technique_CreatePass (Urho3D::Technique *_target, const char * passName)
  12970. {
  12971. return _target->CreatePass (Urho3D::String(passName));
  12972. }
  12973. DllExport void
  12974. Technique_RemovePass (Urho3D::Technique *_target, const char * passName)
  12975. {
  12976. _target->RemovePass (Urho3D::String(passName));
  12977. }
  12978. DllExport void
  12979. Technique_ReleaseShaders (Urho3D::Technique *_target)
  12980. {
  12981. _target->ReleaseShaders ();
  12982. }
  12983. DllExport Urho3D::Technique *
  12984. Technique_Clone (Urho3D::Technique *_target, const char * cloneName)
  12985. {
  12986. auto copy = _target->Clone (Urho3D::String(cloneName));
  12987. auto plain = copy.Get();
  12988. copy.Detach();
  12989. delete copy;
  12990. return plain;
  12991. }
  12992. DllExport int
  12993. Technique_IsDesktop (Urho3D::Technique *_target)
  12994. {
  12995. return _target->IsDesktop ();
  12996. }
  12997. DllExport int
  12998. Technique_IsSupported (Urho3D::Technique *_target)
  12999. {
  13000. return _target->IsSupported ();
  13001. }
  13002. DllExport int
  13003. Technique_HasPass (Urho3D::Technique *_target, unsigned int passIndex)
  13004. {
  13005. return _target->HasPass (passIndex);
  13006. }
  13007. DllExport int
  13008. Technique_HasPass0 (Urho3D::Technique *_target, const char * passName)
  13009. {
  13010. return _target->HasPass (Urho3D::String(passName));
  13011. }
  13012. DllExport Urho3D::Pass *
  13013. Technique_GetPass (Urho3D::Technique *_target, unsigned int passIndex)
  13014. {
  13015. return _target->GetPass (passIndex);
  13016. }
  13017. DllExport Urho3D::Pass *
  13018. Technique_GetPass1 (Urho3D::Technique *_target, const char * passName)
  13019. {
  13020. return _target->GetPass (Urho3D::String(passName));
  13021. }
  13022. DllExport Urho3D::Pass *
  13023. Technique_GetSupportedPass (Urho3D::Technique *_target, unsigned int passIndex)
  13024. {
  13025. return _target->GetSupportedPass (passIndex);
  13026. }
  13027. DllExport Urho3D::Pass *
  13028. Technique_GetSupportedPass2 (Urho3D::Technique *_target, const char * passName)
  13029. {
  13030. return _target->GetSupportedPass (Urho3D::String(passName));
  13031. }
  13032. DllExport unsigned int
  13033. Technique_GetNumPasses (Urho3D::Technique *_target)
  13034. {
  13035. return _target->GetNumPasses ();
  13036. }
  13037. DllExport Urho3D::Technique *
  13038. Technique_CloneWithDefines (Urho3D::Technique *_target, const char * vsDefines, const char * psDefines)
  13039. {
  13040. auto copy = _target->CloneWithDefines (Urho3D::String(vsDefines), Urho3D::String(psDefines));
  13041. auto plain = copy.Get();
  13042. copy.Detach();
  13043. delete copy;
  13044. return plain;
  13045. }
  13046. DllExport unsigned int
  13047. Technique_GetPassIndex (const char * passName)
  13048. {
  13049. return Technique::GetPassIndex (Urho3D::String(passName));
  13050. }
  13051. DllExport int
  13052. Terrain_GetType (Urho3D::Terrain *_target)
  13053. {
  13054. return (_target->GetType ()).Value ();
  13055. }
  13056. DllExport const char *
  13057. Terrain_GetTypeName (Urho3D::Terrain *_target)
  13058. {
  13059. return stringdup((_target->GetTypeName ()).CString ());
  13060. }
  13061. DllExport int
  13062. Terrain_GetTypeStatic ()
  13063. {
  13064. return (Terrain::GetTypeStatic ()).Value ();
  13065. }
  13066. DllExport const char *
  13067. Terrain_GetTypeNameStatic ()
  13068. {
  13069. return stringdup((Terrain::GetTypeNameStatic ()).CString ());
  13070. }
  13071. DllExport void *
  13072. Terrain_Terrain (Urho3D::Context * context)
  13073. {
  13074. return WeakPtr<Terrain>(new Terrain(context));
  13075. }
  13076. DllExport void
  13077. Terrain_RegisterObject (Urho3D::Context * context)
  13078. {
  13079. Terrain::RegisterObject (context);
  13080. }
  13081. DllExport void
  13082. Terrain_ApplyAttributes (Urho3D::Terrain *_target)
  13083. {
  13084. _target->ApplyAttributes ();
  13085. }
  13086. DllExport void
  13087. Terrain_OnSetEnabled (Urho3D::Terrain *_target)
  13088. {
  13089. _target->OnSetEnabled ();
  13090. }
  13091. DllExport void
  13092. Terrain_SetPatchSize (Urho3D::Terrain *_target, int size)
  13093. {
  13094. _target->SetPatchSize (size);
  13095. }
  13096. DllExport void
  13097. Terrain_SetSpacing (Urho3D::Terrain *_target, const class Urho3D::Vector3 & spacing)
  13098. {
  13099. _target->SetSpacing (spacing);
  13100. }
  13101. DllExport void
  13102. Terrain_SetMaxLodLevels (Urho3D::Terrain *_target, unsigned int levels)
  13103. {
  13104. _target->SetMaxLodLevels (levels);
  13105. }
  13106. DllExport void
  13107. Terrain_SetOcclusionLodLevel (Urho3D::Terrain *_target, unsigned int level)
  13108. {
  13109. _target->SetOcclusionLodLevel (level);
  13110. }
  13111. DllExport void
  13112. Terrain_SetSmoothing (Urho3D::Terrain *_target, bool enable)
  13113. {
  13114. _target->SetSmoothing (enable);
  13115. }
  13116. DllExport int
  13117. Terrain_SetHeightMap (Urho3D::Terrain *_target, Urho3D::Image * image)
  13118. {
  13119. return _target->SetHeightMap (image);
  13120. }
  13121. DllExport void
  13122. Terrain_SetMaterial (Urho3D::Terrain *_target, Urho3D::Material * material)
  13123. {
  13124. _target->SetMaterial (material);
  13125. }
  13126. DllExport void
  13127. Terrain_SetNorthNeighbor (Urho3D::Terrain *_target, Urho3D::Terrain * north)
  13128. {
  13129. _target->SetNorthNeighbor (north);
  13130. }
  13131. DllExport void
  13132. Terrain_SetSouthNeighbor (Urho3D::Terrain *_target, Urho3D::Terrain * south)
  13133. {
  13134. _target->SetSouthNeighbor (south);
  13135. }
  13136. DllExport void
  13137. Terrain_SetWestNeighbor (Urho3D::Terrain *_target, Urho3D::Terrain * west)
  13138. {
  13139. _target->SetWestNeighbor (west);
  13140. }
  13141. DllExport void
  13142. Terrain_SetEastNeighbor (Urho3D::Terrain *_target, Urho3D::Terrain * east)
  13143. {
  13144. _target->SetEastNeighbor (east);
  13145. }
  13146. DllExport void
  13147. Terrain_SetNeighbors (Urho3D::Terrain *_target, Urho3D::Terrain * north, Urho3D::Terrain * south, Urho3D::Terrain * west, Urho3D::Terrain * east)
  13148. {
  13149. _target->SetNeighbors (north, south, west, east);
  13150. }
  13151. DllExport void
  13152. Terrain_SetDrawDistance (Urho3D::Terrain *_target, float distance)
  13153. {
  13154. _target->SetDrawDistance (distance);
  13155. }
  13156. DllExport void
  13157. Terrain_SetShadowDistance (Urho3D::Terrain *_target, float distance)
  13158. {
  13159. _target->SetShadowDistance (distance);
  13160. }
  13161. DllExport void
  13162. Terrain_SetLodBias (Urho3D::Terrain *_target, float bias)
  13163. {
  13164. _target->SetLodBias (bias);
  13165. }
  13166. DllExport void
  13167. Terrain_SetViewMask (Urho3D::Terrain *_target, unsigned int mask)
  13168. {
  13169. _target->SetViewMask (mask);
  13170. }
  13171. DllExport void
  13172. Terrain_SetLightMask (Urho3D::Terrain *_target, unsigned int mask)
  13173. {
  13174. _target->SetLightMask (mask);
  13175. }
  13176. DllExport void
  13177. Terrain_SetShadowMask (Urho3D::Terrain *_target, unsigned int mask)
  13178. {
  13179. _target->SetShadowMask (mask);
  13180. }
  13181. DllExport void
  13182. Terrain_SetZoneMask (Urho3D::Terrain *_target, unsigned int mask)
  13183. {
  13184. _target->SetZoneMask (mask);
  13185. }
  13186. DllExport void
  13187. Terrain_SetMaxLights (Urho3D::Terrain *_target, unsigned int num)
  13188. {
  13189. _target->SetMaxLights (num);
  13190. }
  13191. DllExport void
  13192. Terrain_SetCastShadows (Urho3D::Terrain *_target, bool enable)
  13193. {
  13194. _target->SetCastShadows (enable);
  13195. }
  13196. DllExport void
  13197. Terrain_SetOccluder (Urho3D::Terrain *_target, bool enable)
  13198. {
  13199. _target->SetOccluder (enable);
  13200. }
  13201. DllExport void
  13202. Terrain_SetOccludee (Urho3D::Terrain *_target, bool enable)
  13203. {
  13204. _target->SetOccludee (enable);
  13205. }
  13206. DllExport void
  13207. Terrain_ApplyHeightMap (Urho3D::Terrain *_target)
  13208. {
  13209. _target->ApplyHeightMap ();
  13210. }
  13211. DllExport int
  13212. Terrain_GetPatchSize (Urho3D::Terrain *_target)
  13213. {
  13214. return _target->GetPatchSize ();
  13215. }
  13216. DllExport Interop::Vector3
  13217. Terrain_GetSpacing (Urho3D::Terrain *_target)
  13218. {
  13219. return *((Interop::Vector3 *) &(_target->GetSpacing ()));
  13220. }
  13221. DllExport Interop::IntVector2
  13222. Terrain_GetNumVertices (Urho3D::Terrain *_target)
  13223. {
  13224. return *((Interop::IntVector2 *) &(_target->GetNumVertices ()));
  13225. }
  13226. DllExport Interop::IntVector2
  13227. Terrain_GetNumPatches (Urho3D::Terrain *_target)
  13228. {
  13229. return *((Interop::IntVector2 *) &(_target->GetNumPatches ()));
  13230. }
  13231. DllExport unsigned int
  13232. Terrain_GetMaxLodLevels (Urho3D::Terrain *_target)
  13233. {
  13234. return _target->GetMaxLodLevels ();
  13235. }
  13236. DllExport unsigned int
  13237. Terrain_GetOcclusionLodLevel (Urho3D::Terrain *_target)
  13238. {
  13239. return _target->GetOcclusionLodLevel ();
  13240. }
  13241. DllExport int
  13242. Terrain_GetSmoothing (Urho3D::Terrain *_target)
  13243. {
  13244. return _target->GetSmoothing ();
  13245. }
  13246. DllExport Urho3D::Image *
  13247. Terrain_GetHeightMap (Urho3D::Terrain *_target)
  13248. {
  13249. return _target->GetHeightMap ();
  13250. }
  13251. DllExport Urho3D::Material *
  13252. Terrain_GetMaterial (Urho3D::Terrain *_target)
  13253. {
  13254. return _target->GetMaterial ();
  13255. }
  13256. DllExport Urho3D::TerrainPatch *
  13257. Terrain_GetPatch (Urho3D::Terrain *_target, unsigned int index)
  13258. {
  13259. return _target->GetPatch (index);
  13260. }
  13261. DllExport Urho3D::TerrainPatch *
  13262. Terrain_GetPatch0 (Urho3D::Terrain *_target, int x, int z)
  13263. {
  13264. return _target->GetPatch (x, z);
  13265. }
  13266. DllExport Urho3D::TerrainPatch *
  13267. Terrain_GetNeighborPatch (Urho3D::Terrain *_target, int x, int z)
  13268. {
  13269. return _target->GetNeighborPatch (x, z);
  13270. }
  13271. DllExport float
  13272. Terrain_GetHeight (Urho3D::Terrain *_target, const class Urho3D::Vector3 & worldPosition)
  13273. {
  13274. return _target->GetHeight (worldPosition);
  13275. }
  13276. DllExport Interop::Vector3
  13277. Terrain_GetNormal (Urho3D::Terrain *_target, const class Urho3D::Vector3 & worldPosition)
  13278. {
  13279. return *((Interop::Vector3 *) &(_target->GetNormal (worldPosition)));
  13280. }
  13281. DllExport Interop::IntVector2
  13282. Terrain_WorldToHeightMap (Urho3D::Terrain *_target, const class Urho3D::Vector3 & worldPosition)
  13283. {
  13284. return *((Interop::IntVector2 *) &(_target->WorldToHeightMap (worldPosition)));
  13285. }
  13286. DllExport Interop::Vector3
  13287. Terrain_HeightMapToWorld (Urho3D::Terrain *_target, const class Urho3D::IntVector2 & pixelPosition)
  13288. {
  13289. return *((Interop::Vector3 *) &(_target->HeightMapToWorld (pixelPosition)));
  13290. }
  13291. DllExport Urho3D::Terrain *
  13292. Terrain_GetNorthNeighbor (Urho3D::Terrain *_target)
  13293. {
  13294. return _target->GetNorthNeighbor ();
  13295. }
  13296. DllExport Urho3D::Terrain *
  13297. Terrain_GetSouthNeighbor (Urho3D::Terrain *_target)
  13298. {
  13299. return _target->GetSouthNeighbor ();
  13300. }
  13301. DllExport Urho3D::Terrain *
  13302. Terrain_GetWestNeighbor (Urho3D::Terrain *_target)
  13303. {
  13304. return _target->GetWestNeighbor ();
  13305. }
  13306. DllExport Urho3D::Terrain *
  13307. Terrain_GetEastNeighbor (Urho3D::Terrain *_target)
  13308. {
  13309. return _target->GetEastNeighbor ();
  13310. }
  13311. DllExport unsigned int
  13312. Terrain_GetNorthNeighborNodeID (Urho3D::Terrain *_target)
  13313. {
  13314. return _target->GetNorthNeighborNodeID ();
  13315. }
  13316. DllExport unsigned int
  13317. Terrain_GetSouthNeighborNodeID (Urho3D::Terrain *_target)
  13318. {
  13319. return _target->GetSouthNeighborNodeID ();
  13320. }
  13321. DllExport unsigned int
  13322. Terrain_GetWestNeighborNodeID (Urho3D::Terrain *_target)
  13323. {
  13324. return _target->GetWestNeighborNodeID ();
  13325. }
  13326. DllExport unsigned int
  13327. Terrain_GetEastNeighborNodeID (Urho3D::Terrain *_target)
  13328. {
  13329. return _target->GetEastNeighborNodeID ();
  13330. }
  13331. DllExport float
  13332. Terrain_GetDrawDistance (Urho3D::Terrain *_target)
  13333. {
  13334. return _target->GetDrawDistance ();
  13335. }
  13336. DllExport float
  13337. Terrain_GetShadowDistance (Urho3D::Terrain *_target)
  13338. {
  13339. return _target->GetShadowDistance ();
  13340. }
  13341. DllExport float
  13342. Terrain_GetLodBias (Urho3D::Terrain *_target)
  13343. {
  13344. return _target->GetLodBias ();
  13345. }
  13346. DllExport unsigned int
  13347. Terrain_GetViewMask (Urho3D::Terrain *_target)
  13348. {
  13349. return _target->GetViewMask ();
  13350. }
  13351. DllExport unsigned int
  13352. Terrain_GetLightMask (Urho3D::Terrain *_target)
  13353. {
  13354. return _target->GetLightMask ();
  13355. }
  13356. DllExport unsigned int
  13357. Terrain_GetShadowMask (Urho3D::Terrain *_target)
  13358. {
  13359. return _target->GetShadowMask ();
  13360. }
  13361. DllExport unsigned int
  13362. Terrain_GetZoneMask (Urho3D::Terrain *_target)
  13363. {
  13364. return _target->GetZoneMask ();
  13365. }
  13366. DllExport unsigned int
  13367. Terrain_GetMaxLights (Urho3D::Terrain *_target)
  13368. {
  13369. return _target->GetMaxLights ();
  13370. }
  13371. DllExport int
  13372. Terrain_IsVisible (Urho3D::Terrain *_target)
  13373. {
  13374. return _target->IsVisible ();
  13375. }
  13376. DllExport int
  13377. Terrain_GetCastShadows (Urho3D::Terrain *_target)
  13378. {
  13379. return _target->GetCastShadows ();
  13380. }
  13381. DllExport int
  13382. Terrain_IsOccluder (Urho3D::Terrain *_target)
  13383. {
  13384. return _target->IsOccluder ();
  13385. }
  13386. DllExport int
  13387. Terrain_IsOccludee (Urho3D::Terrain *_target)
  13388. {
  13389. return _target->IsOccludee ();
  13390. }
  13391. DllExport void
  13392. Terrain_CreatePatchGeometry (Urho3D::Terrain *_target, Urho3D::TerrainPatch * patch)
  13393. {
  13394. _target->CreatePatchGeometry (patch);
  13395. }
  13396. DllExport void
  13397. Terrain_UpdatePatchLod (Urho3D::Terrain *_target, Urho3D::TerrainPatch * patch)
  13398. {
  13399. _target->UpdatePatchLod (patch);
  13400. }
  13401. DllExport void
  13402. Terrain_SetNorthNeighborNodeIDAttr (Urho3D::Terrain *_target, unsigned int nodeID)
  13403. {
  13404. _target->SetNorthNeighborNodeIDAttr (nodeID);
  13405. }
  13406. DllExport void
  13407. Terrain_SetSouthNeighborNodeIDAttr (Urho3D::Terrain *_target, unsigned int nodeID)
  13408. {
  13409. _target->SetSouthNeighborNodeIDAttr (nodeID);
  13410. }
  13411. DllExport void
  13412. Terrain_SetWestNeighborNodeIDAttr (Urho3D::Terrain *_target, unsigned int nodeID)
  13413. {
  13414. _target->SetWestNeighborNodeIDAttr (nodeID);
  13415. }
  13416. DllExport void
  13417. Terrain_SetEastNeighborNodeIDAttr (Urho3D::Terrain *_target, unsigned int nodeID)
  13418. {
  13419. _target->SetEastNeighborNodeIDAttr (nodeID);
  13420. }
  13421. DllExport void
  13422. Terrain_SetSpacingAttr (Urho3D::Terrain *_target, const class Urho3D::Vector3 & value)
  13423. {
  13424. _target->SetSpacingAttr (value);
  13425. }
  13426. DllExport void
  13427. Terrain_SetPatchSizeAttr (Urho3D::Terrain *_target, int value)
  13428. {
  13429. _target->SetPatchSizeAttr (value);
  13430. }
  13431. DllExport void
  13432. Terrain_SetMaxLodLevelsAttr (Urho3D::Terrain *_target, unsigned int value)
  13433. {
  13434. _target->SetMaxLodLevelsAttr (value);
  13435. }
  13436. DllExport void
  13437. Terrain_SetSmoothingAttr (Urho3D::Terrain *_target, bool enable)
  13438. {
  13439. _target->SetSmoothingAttr (enable);
  13440. }
  13441. DllExport void
  13442. Terrain_SetOcclusionLodLevelAttr (Urho3D::Terrain *_target, unsigned int value)
  13443. {
  13444. _target->SetOcclusionLodLevelAttr (value);
  13445. }
  13446. DllExport Urho3D::ResourceRef
  13447. Terrain_GetHeightMapAttr (Urho3D::Terrain *_target)
  13448. {
  13449. return _target->GetHeightMapAttr ();
  13450. }
  13451. DllExport Urho3D::ResourceRef
  13452. Terrain_GetMaterialAttr (Urho3D::Terrain *_target)
  13453. {
  13454. return _target->GetMaterialAttr ();
  13455. }
  13456. DllExport int
  13457. TerrainPatch_GetType (Urho3D::TerrainPatch *_target)
  13458. {
  13459. return (_target->GetType ()).Value ();
  13460. }
  13461. DllExport const char *
  13462. TerrainPatch_GetTypeName (Urho3D::TerrainPatch *_target)
  13463. {
  13464. return stringdup((_target->GetTypeName ()).CString ());
  13465. }
  13466. DllExport int
  13467. TerrainPatch_GetTypeStatic ()
  13468. {
  13469. return (TerrainPatch::GetTypeStatic ()).Value ();
  13470. }
  13471. DllExport const char *
  13472. TerrainPatch_GetTypeNameStatic ()
  13473. {
  13474. return stringdup((TerrainPatch::GetTypeNameStatic ()).CString ());
  13475. }
  13476. DllExport void *
  13477. TerrainPatch_TerrainPatch (Urho3D::Context * context)
  13478. {
  13479. return WeakPtr<TerrainPatch>(new TerrainPatch(context));
  13480. }
  13481. DllExport void
  13482. TerrainPatch_RegisterObject (Urho3D::Context * context)
  13483. {
  13484. TerrainPatch::RegisterObject (context);
  13485. }
  13486. DllExport enum Urho3D::UpdateGeometryType
  13487. TerrainPatch_GetUpdateGeometryType (Urho3D::TerrainPatch *_target)
  13488. {
  13489. return _target->GetUpdateGeometryType ();
  13490. }
  13491. DllExport Urho3D::Geometry *
  13492. TerrainPatch_GetLodGeometry (Urho3D::TerrainPatch *_target, unsigned int batchIndex, unsigned int level)
  13493. {
  13494. return _target->GetLodGeometry (batchIndex, level);
  13495. }
  13496. DllExport unsigned int
  13497. TerrainPatch_GetNumOccluderTriangles (Urho3D::TerrainPatch *_target)
  13498. {
  13499. return _target->GetNumOccluderTriangles ();
  13500. }
  13501. DllExport int
  13502. TerrainPatch_DrawOcclusion (Urho3D::TerrainPatch *_target, Urho3D::OcclusionBuffer * buffer)
  13503. {
  13504. return _target->DrawOcclusion (buffer);
  13505. }
  13506. DllExport void
  13507. TerrainPatch_DrawDebugGeometry (Urho3D::TerrainPatch *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  13508. {
  13509. _target->DrawDebugGeometry (debug, depthTest);
  13510. }
  13511. DllExport void
  13512. TerrainPatch_SetOwner (Urho3D::TerrainPatch *_target, Urho3D::Terrain * terrain)
  13513. {
  13514. _target->SetOwner (terrain);
  13515. }
  13516. DllExport void
  13517. TerrainPatch_SetNeighbors (Urho3D::TerrainPatch *_target, Urho3D::TerrainPatch * north, Urho3D::TerrainPatch * south, Urho3D::TerrainPatch * west, Urho3D::TerrainPatch * east)
  13518. {
  13519. _target->SetNeighbors (north, south, west, east);
  13520. }
  13521. DllExport void
  13522. TerrainPatch_SetMaterial (Urho3D::TerrainPatch *_target, Urho3D::Material * material)
  13523. {
  13524. _target->SetMaterial (material);
  13525. }
  13526. DllExport void
  13527. TerrainPatch_SetBoundingBox (Urho3D::TerrainPatch *_target, const class Urho3D::BoundingBox & box)
  13528. {
  13529. _target->SetBoundingBox (box);
  13530. }
  13531. DllExport void
  13532. TerrainPatch_SetCoordinates (Urho3D::TerrainPatch *_target, const class Urho3D::IntVector2 & coordinates)
  13533. {
  13534. _target->SetCoordinates (coordinates);
  13535. }
  13536. DllExport void
  13537. TerrainPatch_ResetLod (Urho3D::TerrainPatch *_target)
  13538. {
  13539. _target->ResetLod ();
  13540. }
  13541. DllExport Urho3D::Geometry *
  13542. TerrainPatch_GetGeometry (Urho3D::TerrainPatch *_target)
  13543. {
  13544. return _target->GetGeometry ();
  13545. }
  13546. DllExport Urho3D::Geometry *
  13547. TerrainPatch_GetMaxLodGeometry (Urho3D::TerrainPatch *_target)
  13548. {
  13549. return _target->GetMaxLodGeometry ();
  13550. }
  13551. DllExport Urho3D::Geometry *
  13552. TerrainPatch_GetOcclusionGeometry (Urho3D::TerrainPatch *_target)
  13553. {
  13554. return _target->GetOcclusionGeometry ();
  13555. }
  13556. DllExport Urho3D::VertexBuffer *
  13557. TerrainPatch_GetVertexBuffer (Urho3D::TerrainPatch *_target)
  13558. {
  13559. return _target->GetVertexBuffer ();
  13560. }
  13561. DllExport Urho3D::Terrain *
  13562. TerrainPatch_GetOwner (Urho3D::TerrainPatch *_target)
  13563. {
  13564. return _target->GetOwner ();
  13565. }
  13566. DllExport Urho3D::TerrainPatch *
  13567. TerrainPatch_GetNorthPatch (Urho3D::TerrainPatch *_target)
  13568. {
  13569. return _target->GetNorthPatch ();
  13570. }
  13571. DllExport Urho3D::TerrainPatch *
  13572. TerrainPatch_GetSouthPatch (Urho3D::TerrainPatch *_target)
  13573. {
  13574. return _target->GetSouthPatch ();
  13575. }
  13576. DllExport Urho3D::TerrainPatch *
  13577. TerrainPatch_GetWestPatch (Urho3D::TerrainPatch *_target)
  13578. {
  13579. return _target->GetWestPatch ();
  13580. }
  13581. DllExport Urho3D::TerrainPatch *
  13582. TerrainPatch_GetEastPatch (Urho3D::TerrainPatch *_target)
  13583. {
  13584. return _target->GetEastPatch ();
  13585. }
  13586. DllExport Interop::IntVector2
  13587. TerrainPatch_GetCoordinates (Urho3D::TerrainPatch *_target)
  13588. {
  13589. return *((Interop::IntVector2 *) &(_target->GetCoordinates ()));
  13590. }
  13591. DllExport unsigned int
  13592. TerrainPatch_GetLodLevel (Urho3D::TerrainPatch *_target)
  13593. {
  13594. return _target->GetLodLevel ();
  13595. }
  13596. DllExport int
  13597. Texture2DArray_GetType (Urho3D::Texture2DArray *_target)
  13598. {
  13599. return (_target->GetType ()).Value ();
  13600. }
  13601. DllExport const char *
  13602. Texture2DArray_GetTypeName (Urho3D::Texture2DArray *_target)
  13603. {
  13604. return stringdup((_target->GetTypeName ()).CString ());
  13605. }
  13606. DllExport int
  13607. Texture2DArray_GetTypeStatic ()
  13608. {
  13609. return (Texture2DArray::GetTypeStatic ()).Value ();
  13610. }
  13611. DllExport const char *
  13612. Texture2DArray_GetTypeNameStatic ()
  13613. {
  13614. return stringdup((Texture2DArray::GetTypeNameStatic ()).CString ());
  13615. }
  13616. DllExport void *
  13617. Texture2DArray_Texture2DArray (Urho3D::Context * context)
  13618. {
  13619. return WeakPtr<Texture2DArray>(new Texture2DArray(context));
  13620. }
  13621. DllExport void
  13622. Texture2DArray_RegisterObject (Urho3D::Context * context)
  13623. {
  13624. Texture2DArray::RegisterObject (context);
  13625. }
  13626. DllExport int
  13627. Texture2DArray_BeginLoad_File (Urho3D::Texture2DArray *_target, File * source)
  13628. {
  13629. return _target->BeginLoad (*source);
  13630. }
  13631. DllExport int
  13632. Texture2DArray_BeginLoad_MemoryBuffer (Urho3D::Texture2DArray *_target, MemoryBuffer * source)
  13633. {
  13634. return _target->BeginLoad (*source);
  13635. }
  13636. DllExport int
  13637. Texture2DArray_EndLoad (Urho3D::Texture2DArray *_target)
  13638. {
  13639. return _target->EndLoad ();
  13640. }
  13641. DllExport void
  13642. Texture2DArray_OnDeviceLost (Urho3D::Texture2DArray *_target)
  13643. {
  13644. _target->OnDeviceLost ();
  13645. }
  13646. DllExport void
  13647. Texture2DArray_OnDeviceReset (Urho3D::Texture2DArray *_target)
  13648. {
  13649. _target->OnDeviceReset ();
  13650. }
  13651. DllExport void
  13652. Texture2DArray_Release (Urho3D::Texture2DArray *_target)
  13653. {
  13654. _target->Release ();
  13655. }
  13656. DllExport void
  13657. Texture2DArray_SetLayers (Urho3D::Texture2DArray *_target, unsigned int layers)
  13658. {
  13659. _target->SetLayers (layers);
  13660. }
  13661. DllExport int
  13662. Texture2DArray_SetSize (Urho3D::Texture2DArray *_target, unsigned int layers, int width, int height, unsigned int format, enum Urho3D::TextureUsage usage)
  13663. {
  13664. return _target->SetSize (layers, width, height, format, usage);
  13665. }
  13666. DllExport int
  13667. Texture2DArray_SetData (Urho3D::Texture2DArray *_target, unsigned int layer, unsigned int level, int x, int y, int width, int height, const void * data)
  13668. {
  13669. return _target->SetData (layer, level, x, y, width, height, data);
  13670. }
  13671. DllExport int
  13672. Texture2DArray_SetData0_File (Urho3D::Texture2DArray *_target, unsigned int layer, File * source)
  13673. {
  13674. return _target->SetData (layer, *source);
  13675. }
  13676. DllExport int
  13677. Texture2DArray_SetData0_MemoryBuffer (Urho3D::Texture2DArray *_target, unsigned int layer, MemoryBuffer * source)
  13678. {
  13679. return _target->SetData (layer, *source);
  13680. }
  13681. DllExport int
  13682. Texture2DArray_SetData1 (Urho3D::Texture2DArray *_target, unsigned int layer, Urho3D::Image * image, bool useAlpha)
  13683. {
  13684. return _target->SetData (layer, image, useAlpha);
  13685. }
  13686. DllExport unsigned int
  13687. Texture2DArray_GetLayers (Urho3D::Texture2DArray *_target)
  13688. {
  13689. return _target->GetLayers ();
  13690. }
  13691. DllExport int
  13692. Texture2DArray_GetData (Urho3D::Texture2DArray *_target, unsigned int layer, unsigned int level, void * dest)
  13693. {
  13694. return _target->GetData (layer, level, dest);
  13695. }
  13696. DllExport Urho3D::RenderSurface *
  13697. Texture2DArray_GetRenderSurface (Urho3D::Texture2DArray *_target)
  13698. {
  13699. return _target->GetRenderSurface ();
  13700. }
  13701. DllExport int
  13702. Texture3D_GetType (Urho3D::Texture3D *_target)
  13703. {
  13704. return (_target->GetType ()).Value ();
  13705. }
  13706. DllExport const char *
  13707. Texture3D_GetTypeName (Urho3D::Texture3D *_target)
  13708. {
  13709. return stringdup((_target->GetTypeName ()).CString ());
  13710. }
  13711. DllExport int
  13712. Texture3D_GetTypeStatic ()
  13713. {
  13714. return (Texture3D::GetTypeStatic ()).Value ();
  13715. }
  13716. DllExport const char *
  13717. Texture3D_GetTypeNameStatic ()
  13718. {
  13719. return stringdup((Texture3D::GetTypeNameStatic ()).CString ());
  13720. }
  13721. DllExport void *
  13722. Texture3D_Texture3D (Urho3D::Context * context)
  13723. {
  13724. return WeakPtr<Texture3D>(new Texture3D(context));
  13725. }
  13726. DllExport void
  13727. Texture3D_RegisterObject (Urho3D::Context * context)
  13728. {
  13729. Texture3D::RegisterObject (context);
  13730. }
  13731. DllExport int
  13732. Texture3D_BeginLoad_File (Urho3D::Texture3D *_target, File * source)
  13733. {
  13734. return _target->BeginLoad (*source);
  13735. }
  13736. DllExport int
  13737. Texture3D_BeginLoad_MemoryBuffer (Urho3D::Texture3D *_target, MemoryBuffer * source)
  13738. {
  13739. return _target->BeginLoad (*source);
  13740. }
  13741. DllExport int
  13742. Texture3D_EndLoad (Urho3D::Texture3D *_target)
  13743. {
  13744. return _target->EndLoad ();
  13745. }
  13746. DllExport void
  13747. Texture3D_Release (Urho3D::Texture3D *_target)
  13748. {
  13749. _target->Release ();
  13750. }
  13751. DllExport int
  13752. Texture3D_SetSize (Urho3D::Texture3D *_target, int width, int height, int depth, unsigned int format, enum Urho3D::TextureUsage usage)
  13753. {
  13754. return _target->SetSize (width, height, depth, format, usage);
  13755. }
  13756. DllExport int
  13757. Texture3D_SetData (Urho3D::Texture3D *_target, unsigned int level, int x, int y, int z, int width, int height, int depth, const void * data)
  13758. {
  13759. return _target->SetData (level, x, y, z, width, height, depth, data);
  13760. }
  13761. DllExport int
  13762. Texture3D_SetData0 (Urho3D::Texture3D *_target, Urho3D::Image * image, bool useAlpha)
  13763. {
  13764. return _target->SetData (image, useAlpha);
  13765. }
  13766. DllExport int
  13767. Texture3D_GetData (Urho3D::Texture3D *_target, unsigned int level, void * dest)
  13768. {
  13769. return _target->GetData (level, dest);
  13770. }
  13771. DllExport int
  13772. TextureCube_GetType (Urho3D::TextureCube *_target)
  13773. {
  13774. return (_target->GetType ()).Value ();
  13775. }
  13776. DllExport const char *
  13777. TextureCube_GetTypeName (Urho3D::TextureCube *_target)
  13778. {
  13779. return stringdup((_target->GetTypeName ()).CString ());
  13780. }
  13781. DllExport int
  13782. TextureCube_GetTypeStatic ()
  13783. {
  13784. return (TextureCube::GetTypeStatic ()).Value ();
  13785. }
  13786. DllExport const char *
  13787. TextureCube_GetTypeNameStatic ()
  13788. {
  13789. return stringdup((TextureCube::GetTypeNameStatic ()).CString ());
  13790. }
  13791. DllExport void *
  13792. TextureCube_TextureCube (Urho3D::Context * context)
  13793. {
  13794. return WeakPtr<TextureCube>(new TextureCube(context));
  13795. }
  13796. DllExport void
  13797. TextureCube_RegisterObject (Urho3D::Context * context)
  13798. {
  13799. TextureCube::RegisterObject (context);
  13800. }
  13801. DllExport int
  13802. TextureCube_BeginLoad_File (Urho3D::TextureCube *_target, File * source)
  13803. {
  13804. return _target->BeginLoad (*source);
  13805. }
  13806. DllExport int
  13807. TextureCube_BeginLoad_MemoryBuffer (Urho3D::TextureCube *_target, MemoryBuffer * source)
  13808. {
  13809. return _target->BeginLoad (*source);
  13810. }
  13811. DllExport int
  13812. TextureCube_EndLoad (Urho3D::TextureCube *_target)
  13813. {
  13814. return _target->EndLoad ();
  13815. }
  13816. DllExport void
  13817. TextureCube_Release (Urho3D::TextureCube *_target)
  13818. {
  13819. _target->Release ();
  13820. }
  13821. DllExport int
  13822. TextureCube_SetSize (Urho3D::TextureCube *_target, int size, unsigned int format, enum Urho3D::TextureUsage usage, int multiSample)
  13823. {
  13824. return _target->SetSize (size, format, usage, multiSample);
  13825. }
  13826. DllExport int
  13827. TextureCube_SetData (Urho3D::TextureCube *_target, enum Urho3D::CubeMapFace face, unsigned int level, int x, int y, int width, int height, const void * data)
  13828. {
  13829. return _target->SetData (face, level, x, y, width, height, data);
  13830. }
  13831. DllExport int
  13832. TextureCube_SetData0_File (Urho3D::TextureCube *_target, enum Urho3D::CubeMapFace face, File * source)
  13833. {
  13834. return _target->SetData (face, *source);
  13835. }
  13836. DllExport int
  13837. TextureCube_SetData0_MemoryBuffer (Urho3D::TextureCube *_target, enum Urho3D::CubeMapFace face, MemoryBuffer * source)
  13838. {
  13839. return _target->SetData (face, *source);
  13840. }
  13841. DllExport int
  13842. TextureCube_SetData1 (Urho3D::TextureCube *_target, enum Urho3D::CubeMapFace face, Urho3D::Image * image, bool useAlpha)
  13843. {
  13844. return _target->SetData (face, image, useAlpha);
  13845. }
  13846. DllExport int
  13847. TextureCube_GetData (Urho3D::TextureCube *_target, enum Urho3D::CubeMapFace face, unsigned int level, void * dest)
  13848. {
  13849. return _target->GetData (face, level, dest);
  13850. }
  13851. DllExport Urho3D::Image *
  13852. TextureCube_GetImage (Urho3D::TextureCube *_target, enum Urho3D::CubeMapFace face)
  13853. {
  13854. auto copy = _target->GetImage (face);
  13855. auto plain = copy.Get();
  13856. copy.Detach();
  13857. delete copy;
  13858. return plain;
  13859. }
  13860. DllExport Urho3D::RenderSurface *
  13861. TextureCube_GetRenderSurface (Urho3D::TextureCube *_target, enum Urho3D::CubeMapFace face)
  13862. {
  13863. return _target->GetRenderSurface (face);
  13864. }
  13865. DllExport GPUObject*
  13866. VertexBuffer_CastToGPUObject(Urho3D::VertexBuffer *_target)
  13867. {
  13868. return static_cast<GPUObject*>(_target);
  13869. }
  13870. DllExport int
  13871. VertexBuffer_GetType (Urho3D::VertexBuffer *_target)
  13872. {
  13873. return (_target->GetType ()).Value ();
  13874. }
  13875. DllExport const char *
  13876. VertexBuffer_GetTypeName (Urho3D::VertexBuffer *_target)
  13877. {
  13878. return stringdup((_target->GetTypeName ()).CString ());
  13879. }
  13880. DllExport int
  13881. VertexBuffer_GetTypeStatic ()
  13882. {
  13883. return (VertexBuffer::GetTypeStatic ()).Value ();
  13884. }
  13885. DllExport const char *
  13886. VertexBuffer_GetTypeNameStatic ()
  13887. {
  13888. return stringdup((VertexBuffer::GetTypeNameStatic ()).CString ());
  13889. }
  13890. DllExport void *
  13891. VertexBuffer_VertexBuffer (Urho3D::Context * context, bool forceHeadless)
  13892. {
  13893. return WeakPtr<VertexBuffer>(new VertexBuffer(context, forceHeadless));
  13894. }
  13895. DllExport void
  13896. VertexBuffer_OnDeviceLost (Urho3D::VertexBuffer *_target)
  13897. {
  13898. _target->OnDeviceLost ();
  13899. }
  13900. DllExport void
  13901. VertexBuffer_Release (Urho3D::VertexBuffer *_target)
  13902. {
  13903. _target->Release ();
  13904. }
  13905. DllExport void
  13906. VertexBuffer_SetShadowed (Urho3D::VertexBuffer *_target, bool enable)
  13907. {
  13908. _target->SetShadowed (enable);
  13909. }
  13910. DllExport int
  13911. VertexBuffer_SetSize (Urho3D::VertexBuffer *_target, unsigned int vertexCount, unsigned int elementMask, bool dynamic)
  13912. {
  13913. return _target->SetSize (vertexCount, elementMask, dynamic);
  13914. }
  13915. DllExport int
  13916. VertexBuffer_SetData (Urho3D::VertexBuffer *_target, const void * data)
  13917. {
  13918. return _target->SetData (data);
  13919. }
  13920. DllExport int
  13921. VertexBuffer_SetDataRange (Urho3D::VertexBuffer *_target, const void * data, unsigned int start, unsigned int count, bool discard)
  13922. {
  13923. return _target->SetDataRange (data, start, count, discard);
  13924. }
  13925. DllExport void *
  13926. VertexBuffer_Lock (Urho3D::VertexBuffer *_target, unsigned int start, unsigned int count, bool discard)
  13927. {
  13928. return _target->Lock (start, count, discard);
  13929. }
  13930. DllExport void
  13931. VertexBuffer_Unlock (Urho3D::VertexBuffer *_target)
  13932. {
  13933. _target->Unlock ();
  13934. }
  13935. DllExport int
  13936. VertexBuffer_IsShadowed (Urho3D::VertexBuffer *_target)
  13937. {
  13938. return _target->IsShadowed ();
  13939. }
  13940. DllExport int
  13941. VertexBuffer_IsDynamic (Urho3D::VertexBuffer *_target)
  13942. {
  13943. return _target->IsDynamic ();
  13944. }
  13945. DllExport int
  13946. VertexBuffer_IsLocked (Urho3D::VertexBuffer *_target)
  13947. {
  13948. return _target->IsLocked ();
  13949. }
  13950. DllExport unsigned int
  13951. VertexBuffer_GetVertexCount (Urho3D::VertexBuffer *_target)
  13952. {
  13953. return _target->GetVertexCount ();
  13954. }
  13955. DllExport unsigned int
  13956. VertexBuffer_GetVertexSize (Urho3D::VertexBuffer *_target)
  13957. {
  13958. return _target->GetVertexSize ();
  13959. }
  13960. DllExport const struct Urho3D::VertexElement *
  13961. VertexBuffer_GetElement (Urho3D::VertexBuffer *_target, enum Urho3D::VertexElementSemantic semantic, unsigned char index)
  13962. {
  13963. return _target->GetElement (semantic, index);
  13964. }
  13965. DllExport const struct Urho3D::VertexElement *
  13966. VertexBuffer_GetElement0 (Urho3D::VertexBuffer *_target, enum Urho3D::VertexElementType type, enum Urho3D::VertexElementSemantic semantic, unsigned char index)
  13967. {
  13968. return _target->GetElement (type, semantic, index);
  13969. }
  13970. DllExport int
  13971. VertexBuffer_HasElement (Urho3D::VertexBuffer *_target, enum Urho3D::VertexElementSemantic semantic, unsigned char index)
  13972. {
  13973. return _target->HasElement (semantic, index);
  13974. }
  13975. DllExport int
  13976. VertexBuffer_HasElement1 (Urho3D::VertexBuffer *_target, enum Urho3D::VertexElementType type, enum Urho3D::VertexElementSemantic semantic, unsigned char index)
  13977. {
  13978. return _target->HasElement (type, semantic, index);
  13979. }
  13980. DllExport unsigned int
  13981. VertexBuffer_GetElementOffset (Urho3D::VertexBuffer *_target, enum Urho3D::VertexElementSemantic semantic, unsigned char index)
  13982. {
  13983. return _target->GetElementOffset (semantic, index);
  13984. }
  13985. DllExport unsigned int
  13986. VertexBuffer_GetElementOffset2 (Urho3D::VertexBuffer *_target, enum Urho3D::VertexElementType type, enum Urho3D::VertexElementSemantic semantic, unsigned char index)
  13987. {
  13988. return _target->GetElementOffset (type, semantic, index);
  13989. }
  13990. DllExport unsigned int
  13991. VertexBuffer_GetElementMask (Urho3D::VertexBuffer *_target)
  13992. {
  13993. return _target->GetElementMask ();
  13994. }
  13995. DllExport unsigned char *
  13996. VertexBuffer_GetShadowData (Urho3D::VertexBuffer *_target)
  13997. {
  13998. return _target->GetShadowData ();
  13999. }
  14000. DllExport unsigned long long
  14001. VertexBuffer_GetBufferHash (Urho3D::VertexBuffer *_target, unsigned int streamIndex)
  14002. {
  14003. return _target->GetBufferHash (streamIndex);
  14004. }
  14005. DllExport unsigned int
  14006. VertexBuffer_GetVertexSize3 (unsigned int elementMask)
  14007. {
  14008. return VertexBuffer::GetVertexSize (elementMask);
  14009. }
  14010. DllExport int
  14011. Zone_GetType (Urho3D::Zone *_target)
  14012. {
  14013. return (_target->GetType ()).Value ();
  14014. }
  14015. DllExport const char *
  14016. Zone_GetTypeName (Urho3D::Zone *_target)
  14017. {
  14018. return stringdup((_target->GetTypeName ()).CString ());
  14019. }
  14020. DllExport int
  14021. Zone_GetTypeStatic ()
  14022. {
  14023. return (Zone::GetTypeStatic ()).Value ();
  14024. }
  14025. DllExport const char *
  14026. Zone_GetTypeNameStatic ()
  14027. {
  14028. return stringdup((Zone::GetTypeNameStatic ()).CString ());
  14029. }
  14030. DllExport void *
  14031. Zone_Zone (Urho3D::Context * context)
  14032. {
  14033. return WeakPtr<Zone>(new Zone(context));
  14034. }
  14035. DllExport void
  14036. Zone_RegisterObject (Urho3D::Context * context)
  14037. {
  14038. Zone::RegisterObject (context);
  14039. }
  14040. DllExport void
  14041. Zone_DrawDebugGeometry (Urho3D::Zone *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  14042. {
  14043. _target->DrawDebugGeometry (debug, depthTest);
  14044. }
  14045. DllExport void
  14046. Zone_SetBoundingBox (Urho3D::Zone *_target, const class Urho3D::BoundingBox & box)
  14047. {
  14048. _target->SetBoundingBox (box);
  14049. }
  14050. DllExport void
  14051. Zone_SetBoundingBoxMin (Urho3D::Zone *_target, const class Urho3D::Vector3 & boxMin)
  14052. {
  14053. _target->SetBoundingBoxMin (boxMin);
  14054. }
  14055. DllExport void
  14056. Zone_SetBoundingBoxMax (Urho3D::Zone *_target, const class Urho3D::Vector3 & boxMax)
  14057. {
  14058. _target->SetBoundingBoxMax (boxMax);
  14059. }
  14060. DllExport void
  14061. Zone_SetAmbientColor (Urho3D::Zone *_target, const class Urho3D::Color & color)
  14062. {
  14063. _target->SetAmbientColor (color);
  14064. }
  14065. DllExport void
  14066. Zone_SetFogColor (Urho3D::Zone *_target, const class Urho3D::Color & color)
  14067. {
  14068. _target->SetFogColor (color);
  14069. }
  14070. DllExport void
  14071. Zone_SetFogStart (Urho3D::Zone *_target, float start)
  14072. {
  14073. _target->SetFogStart (start);
  14074. }
  14075. DllExport void
  14076. Zone_SetFogEnd (Urho3D::Zone *_target, float end)
  14077. {
  14078. _target->SetFogEnd (end);
  14079. }
  14080. DllExport void
  14081. Zone_SetFogHeight (Urho3D::Zone *_target, float height)
  14082. {
  14083. _target->SetFogHeight (height);
  14084. }
  14085. DllExport void
  14086. Zone_SetFogHeightScale (Urho3D::Zone *_target, float scale)
  14087. {
  14088. _target->SetFogHeightScale (scale);
  14089. }
  14090. DllExport void
  14091. Zone_SetPriority (Urho3D::Zone *_target, int priority)
  14092. {
  14093. _target->SetPriority (priority);
  14094. }
  14095. DllExport void
  14096. Zone_SetHeightFog (Urho3D::Zone *_target, bool enable)
  14097. {
  14098. _target->SetHeightFog (enable);
  14099. }
  14100. DllExport void
  14101. Zone_SetOverride (Urho3D::Zone *_target, bool enable)
  14102. {
  14103. _target->SetOverride (enable);
  14104. }
  14105. DllExport void
  14106. Zone_SetAmbientGradient (Urho3D::Zone *_target, bool enable)
  14107. {
  14108. _target->SetAmbientGradient (enable);
  14109. }
  14110. DllExport void
  14111. Zone_SetZoneTexture (Urho3D::Zone *_target, Urho3D::Texture * texture)
  14112. {
  14113. _target->SetZoneTexture (texture);
  14114. }
  14115. DllExport Interop::Matrix3x4
  14116. Zone_GetInverseWorldTransform (Urho3D::Zone *_target)
  14117. {
  14118. return *((Interop::Matrix3x4 *) &(_target->GetInverseWorldTransform ()));
  14119. }
  14120. DllExport Interop::BoundingBox
  14121. Zone_GetBoundingBox (Urho3D::Zone *_target)
  14122. {
  14123. return *((Interop::BoundingBox *) &(_target->GetBoundingBox ()));
  14124. }
  14125. DllExport Interop::Vector3
  14126. Zone_GetBoundingBoxMin (Urho3D::Zone *_target)
  14127. {
  14128. return *((Interop::Vector3 *) &(_target->GetBoundingBoxMin ()));
  14129. }
  14130. DllExport Interop::Vector3
  14131. Zone_GetBoundingBoxMax (Urho3D::Zone *_target)
  14132. {
  14133. return *((Interop::Vector3 *) &(_target->GetBoundingBoxMax ()));
  14134. }
  14135. DllExport Interop::Color
  14136. Zone_GetAmbientColor (Urho3D::Zone *_target)
  14137. {
  14138. return *((Interop::Color *) &(_target->GetAmbientColor ()));
  14139. }
  14140. DllExport Interop::Color
  14141. Zone_GetAmbientStartColor (Urho3D::Zone *_target)
  14142. {
  14143. return *((Interop::Color *) &(_target->GetAmbientStartColor ()));
  14144. }
  14145. DllExport Interop::Color
  14146. Zone_GetAmbientEndColor (Urho3D::Zone *_target)
  14147. {
  14148. return *((Interop::Color *) &(_target->GetAmbientEndColor ()));
  14149. }
  14150. DllExport Interop::Color
  14151. Zone_GetFogColor (Urho3D::Zone *_target)
  14152. {
  14153. return *((Interop::Color *) &(_target->GetFogColor ()));
  14154. }
  14155. DllExport float
  14156. Zone_GetFogStart (Urho3D::Zone *_target)
  14157. {
  14158. return _target->GetFogStart ();
  14159. }
  14160. DllExport float
  14161. Zone_GetFogEnd (Urho3D::Zone *_target)
  14162. {
  14163. return _target->GetFogEnd ();
  14164. }
  14165. DllExport float
  14166. Zone_GetFogHeight (Urho3D::Zone *_target)
  14167. {
  14168. return _target->GetFogHeight ();
  14169. }
  14170. DllExport float
  14171. Zone_GetFogHeightScale (Urho3D::Zone *_target)
  14172. {
  14173. return _target->GetFogHeightScale ();
  14174. }
  14175. DllExport int
  14176. Zone_GetPriority (Urho3D::Zone *_target)
  14177. {
  14178. return _target->GetPriority ();
  14179. }
  14180. DllExport int
  14181. Zone_GetHeightFog (Urho3D::Zone *_target)
  14182. {
  14183. return _target->GetHeightFog ();
  14184. }
  14185. DllExport int
  14186. Zone_GetOverride (Urho3D::Zone *_target)
  14187. {
  14188. return _target->GetOverride ();
  14189. }
  14190. DllExport int
  14191. Zone_GetAmbientGradient (Urho3D::Zone *_target)
  14192. {
  14193. return _target->GetAmbientGradient ();
  14194. }
  14195. DllExport Urho3D::Texture *
  14196. Zone_GetZoneTexture (Urho3D::Zone *_target)
  14197. {
  14198. return _target->GetZoneTexture ();
  14199. }
  14200. DllExport int
  14201. Zone_IsInside (Urho3D::Zone *_target, const class Urho3D::Vector3 & point)
  14202. {
  14203. return _target->IsInside (point);
  14204. }
  14205. DllExport Urho3D::ResourceRef
  14206. Zone_GetZoneTextureAttr (Urho3D::Zone *_target)
  14207. {
  14208. return _target->GetZoneTextureAttr ();
  14209. }
  14210. DllExport void *
  14211. Polyhedron_Polyhedron ()
  14212. {
  14213. return new Polyhedron();
  14214. }
  14215. DllExport void *
  14216. Polyhedron_Polyhedron0 (const class Urho3D::Polyhedron & polyhedron)
  14217. {
  14218. return new Polyhedron(polyhedron);
  14219. }
  14220. DllExport void *
  14221. Polyhedron_Polyhedron1 (const class Urho3D::BoundingBox & box)
  14222. {
  14223. return new Polyhedron(box);
  14224. }
  14225. DllExport void *
  14226. Polyhedron_Polyhedron2 (const class Urho3D::Frustum & frustum)
  14227. {
  14228. return new Polyhedron(frustum);
  14229. }
  14230. DllExport void
  14231. Polyhedron_Define (Urho3D::Polyhedron *_target, const class Urho3D::BoundingBox & box)
  14232. {
  14233. _target->Define (box);
  14234. }
  14235. DllExport void
  14236. Polyhedron_Define3 (Urho3D::Polyhedron *_target, const class Urho3D::Frustum & frustum)
  14237. {
  14238. _target->Define (frustum);
  14239. }
  14240. DllExport void
  14241. Polyhedron_AddFace (Urho3D::Polyhedron *_target, const class Urho3D::Vector3 & v0, const class Urho3D::Vector3 & v1, const class Urho3D::Vector3 & v2)
  14242. {
  14243. _target->AddFace (v0, v1, v2);
  14244. }
  14245. DllExport void
  14246. 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)
  14247. {
  14248. _target->AddFace (v0, v1, v2, v3);
  14249. }
  14250. DllExport void
  14251. Polyhedron_Clip (Urho3D::Polyhedron *_target, const class Urho3D::Plane & plane)
  14252. {
  14253. _target->Clip (plane);
  14254. }
  14255. DllExport void
  14256. Polyhedron_Clip5 (Urho3D::Polyhedron *_target, const class Urho3D::BoundingBox & box)
  14257. {
  14258. _target->Clip (box);
  14259. }
  14260. DllExport void
  14261. Polyhedron_Clip6 (Urho3D::Polyhedron *_target, const class Urho3D::Frustum & box)
  14262. {
  14263. _target->Clip (box);
  14264. }
  14265. DllExport void
  14266. Polyhedron_Clear (Urho3D::Polyhedron *_target)
  14267. {
  14268. _target->Clear ();
  14269. }
  14270. DllExport void
  14271. Polyhedron_Transform (Urho3D::Polyhedron *_target, const class Urho3D::Matrix3x4 & transform)
  14272. {
  14273. _target->Transform (transform);
  14274. }
  14275. DllExport Urho3D::Polyhedron *
  14276. Polyhedron_Transformed (Urho3D::Polyhedron *_target, const class Urho3D::Matrix3x4 & transform)
  14277. {
  14278. return new Urho3D::Polyhedron (_target->Transformed (transform));
  14279. }
  14280. DllExport int
  14281. Polyhedron_Empty (Urho3D::Polyhedron *_target)
  14282. {
  14283. return _target->Empty ();
  14284. }
  14285. DllExport int
  14286. View_GetType (Urho3D::View *_target)
  14287. {
  14288. return (_target->GetType ()).Value ();
  14289. }
  14290. DllExport const char *
  14291. View_GetTypeName (Urho3D::View *_target)
  14292. {
  14293. return stringdup((_target->GetTypeName ()).CString ());
  14294. }
  14295. DllExport int
  14296. View_GetTypeStatic ()
  14297. {
  14298. return (View::GetTypeStatic ()).Value ();
  14299. }
  14300. DllExport const char *
  14301. View_GetTypeNameStatic ()
  14302. {
  14303. return stringdup((View::GetTypeNameStatic ()).CString ());
  14304. }
  14305. DllExport void *
  14306. View_View (Urho3D::Context * context)
  14307. {
  14308. return WeakPtr<View>(new View(context));
  14309. }
  14310. DllExport int
  14311. View_Define (Urho3D::View *_target, Urho3D::RenderSurface * renderTarget, Urho3D::Viewport * viewport)
  14312. {
  14313. return _target->Define (renderTarget, viewport);
  14314. }
  14315. DllExport void
  14316. View_Render (Urho3D::View *_target)
  14317. {
  14318. _target->Render ();
  14319. }
  14320. DllExport Urho3D::Graphics *
  14321. View_GetGraphics (Urho3D::View *_target)
  14322. {
  14323. return _target->GetGraphics ();
  14324. }
  14325. DllExport Urho3D::Renderer *
  14326. View_GetRenderer (Urho3D::View *_target)
  14327. {
  14328. return _target->GetRenderer ();
  14329. }
  14330. DllExport Urho3D::Scene *
  14331. View_GetScene (Urho3D::View *_target)
  14332. {
  14333. return _target->GetScene ();
  14334. }
  14335. DllExport Urho3D::Octree *
  14336. View_GetOctree (Urho3D::View *_target)
  14337. {
  14338. return _target->GetOctree ();
  14339. }
  14340. DllExport Urho3D::Camera *
  14341. View_GetCamera (Urho3D::View *_target)
  14342. {
  14343. return _target->GetCamera ();
  14344. }
  14345. DllExport Urho3D::Camera *
  14346. View_GetCullCamera (Urho3D::View *_target)
  14347. {
  14348. return _target->GetCullCamera ();
  14349. }
  14350. DllExport Urho3D::RenderSurface *
  14351. View_GetRenderTarget (Urho3D::View *_target)
  14352. {
  14353. return _target->GetRenderTarget ();
  14354. }
  14355. DllExport int
  14356. View_GetDrawDebug (Urho3D::View *_target)
  14357. {
  14358. return _target->GetDrawDebug ();
  14359. }
  14360. DllExport Interop::IntRect
  14361. View_GetViewRect (Urho3D::View *_target)
  14362. {
  14363. return *((Interop::IntRect *) &(_target->GetViewRect ()));
  14364. }
  14365. DllExport Interop::IntVector2
  14366. View_GetViewSize (Urho3D::View *_target)
  14367. {
  14368. return *((Interop::IntVector2 *) &(_target->GetViewSize ()));
  14369. }
  14370. DllExport Urho3D::OcclusionBuffer *
  14371. View_GetOcclusionBuffer (Urho3D::View *_target)
  14372. {
  14373. return _target->GetOcclusionBuffer ();
  14374. }
  14375. DllExport unsigned int
  14376. View_GetNumActiveOccluders (Urho3D::View *_target)
  14377. {
  14378. return _target->GetNumActiveOccluders ();
  14379. }
  14380. DllExport Urho3D::View *
  14381. View_GetSourceView (Urho3D::View *_target)
  14382. {
  14383. return _target->GetSourceView ();
  14384. }
  14385. DllExport void
  14386. View_SetGlobalShaderParameters (Urho3D::View *_target)
  14387. {
  14388. _target->SetGlobalShaderParameters ();
  14389. }
  14390. DllExport void
  14391. View_SetCameraShaderParameters (Urho3D::View *_target, Urho3D::Camera * camera)
  14392. {
  14393. _target->SetCameraShaderParameters (camera);
  14394. }
  14395. DllExport void
  14396. View_SetCommandShaderParameters (Urho3D::View *_target, const struct Urho3D::RenderPathCommand & command)
  14397. {
  14398. _target->SetCommandShaderParameters (command);
  14399. }
  14400. DllExport void
  14401. View_SetGBufferShaderParameters (Urho3D::View *_target, const class Urho3D::IntVector2 & texSize, const class Urho3D::IntRect & viewRect)
  14402. {
  14403. _target->SetGBufferShaderParameters (texSize, viewRect);
  14404. }
  14405. DllExport void
  14406. View_SetStereoMode (Urho3D::View *_target, bool stereo)
  14407. {
  14408. _target->SetStereoMode (stereo);
  14409. }
  14410. DllExport void
  14411. View_DrawFullscreenQuad (Urho3D::View *_target, bool setIdentityProjection)
  14412. {
  14413. _target->DrawFullscreenQuad (setIdentityProjection);
  14414. }
  14415. DllExport Urho3D::Texture *
  14416. View_FindNamedTexture (Urho3D::View *_target, const char * name, bool isRenderTarget, bool isVolumeMap)
  14417. {
  14418. return _target->FindNamedTexture (Urho3D::String(name), isRenderTarget, isVolumeMap);
  14419. }
  14420. DllExport int
  14421. File_GetType (Urho3D::File *_target)
  14422. {
  14423. return (_target->GetType ()).Value ();
  14424. }
  14425. DllExport const char *
  14426. File_GetTypeName (Urho3D::File *_target)
  14427. {
  14428. return stringdup((_target->GetTypeName ()).CString ());
  14429. }
  14430. DllExport int
  14431. File_GetTypeStatic ()
  14432. {
  14433. return (File::GetTypeStatic ()).Value ();
  14434. }
  14435. DllExport const char *
  14436. File_GetTypeNameStatic ()
  14437. {
  14438. return stringdup((File::GetTypeNameStatic ()).CString ());
  14439. }
  14440. DllExport void *
  14441. File_File (Urho3D::Context * context)
  14442. {
  14443. return WeakPtr<File>(new File(context));
  14444. }
  14445. DllExport void *
  14446. File_File0 (Urho3D::Context * context, const char * fileName, enum Urho3D::FileMode mode)
  14447. {
  14448. return WeakPtr<File>(new File(context, Urho3D::String(fileName), mode));
  14449. }
  14450. DllExport void *
  14451. File_File1 (Urho3D::Context * context, Urho3D::PackageFile * package, const char * fileName)
  14452. {
  14453. return WeakPtr<File>(new File(context, package, Urho3D::String(fileName)));
  14454. }
  14455. DllExport unsigned int
  14456. File_Read (Urho3D::File *_target, void * dest, unsigned int size)
  14457. {
  14458. return _target->Read (dest, size);
  14459. }
  14460. DllExport unsigned int
  14461. File_Seek (Urho3D::File *_target, unsigned int position)
  14462. {
  14463. return _target->Seek (position);
  14464. }
  14465. DllExport unsigned int
  14466. File_Write (Urho3D::File *_target, const void * data, unsigned int size)
  14467. {
  14468. return _target->Write (data, size);
  14469. }
  14470. DllExport const char *
  14471. File_GetName (Urho3D::File *_target)
  14472. {
  14473. return stringdup((_target->GetName ()).CString ());
  14474. }
  14475. DllExport unsigned int
  14476. File_GetChecksum (Urho3D::File *_target)
  14477. {
  14478. return _target->GetChecksum ();
  14479. }
  14480. DllExport int
  14481. File_Open (Urho3D::File *_target, const char * fileName, enum Urho3D::FileMode mode)
  14482. {
  14483. return _target->Open (Urho3D::String(fileName), mode);
  14484. }
  14485. DllExport int
  14486. File_Open2 (Urho3D::File *_target, Urho3D::PackageFile * package, const char * fileName)
  14487. {
  14488. return _target->Open (package, Urho3D::String(fileName));
  14489. }
  14490. DllExport void
  14491. File_Close (Urho3D::File *_target)
  14492. {
  14493. _target->Close ();
  14494. }
  14495. DllExport void
  14496. File_Flush (Urho3D::File *_target)
  14497. {
  14498. _target->Flush ();
  14499. }
  14500. DllExport void
  14501. File_SetName (Urho3D::File *_target, const char * name)
  14502. {
  14503. _target->SetName (Urho3D::String(name));
  14504. }
  14505. DllExport enum Urho3D::FileMode
  14506. File_GetMode (Urho3D::File *_target)
  14507. {
  14508. return _target->GetMode ();
  14509. }
  14510. DllExport int
  14511. File_IsOpen (Urho3D::File *_target)
  14512. {
  14513. return _target->IsOpen ();
  14514. }
  14515. DllExport void *
  14516. File_GetHandle (Urho3D::File *_target)
  14517. {
  14518. return _target->GetHandle ();
  14519. }
  14520. DllExport int
  14521. File_IsPackaged (Urho3D::File *_target)
  14522. {
  14523. return _target->IsPackaged ();
  14524. }
  14525. DllExport int
  14526. FileSystem_GetType (Urho3D::FileSystem *_target)
  14527. {
  14528. return (_target->GetType ()).Value ();
  14529. }
  14530. DllExport const char *
  14531. FileSystem_GetTypeName (Urho3D::FileSystem *_target)
  14532. {
  14533. return stringdup((_target->GetTypeName ()).CString ());
  14534. }
  14535. DllExport int
  14536. FileSystem_GetTypeStatic ()
  14537. {
  14538. return (FileSystem::GetTypeStatic ()).Value ();
  14539. }
  14540. DllExport const char *
  14541. FileSystem_GetTypeNameStatic ()
  14542. {
  14543. return stringdup((FileSystem::GetTypeNameStatic ()).CString ());
  14544. }
  14545. DllExport void *
  14546. FileSystem_FileSystem (Urho3D::Context * context)
  14547. {
  14548. return WeakPtr<FileSystem>(new FileSystem(context));
  14549. }
  14550. DllExport int
  14551. FileSystem_SetCurrentDir (Urho3D::FileSystem *_target, const char * pathName)
  14552. {
  14553. return _target->SetCurrentDir (Urho3D::String(pathName));
  14554. }
  14555. DllExport int
  14556. FileSystem_CreateDir (Urho3D::FileSystem *_target, const char * pathName)
  14557. {
  14558. return _target->CreateDir (Urho3D::String(pathName));
  14559. }
  14560. DllExport void
  14561. FileSystem_SetExecuteConsoleCommands (Urho3D::FileSystem *_target, bool enable)
  14562. {
  14563. _target->SetExecuteConsoleCommands (enable);
  14564. }
  14565. DllExport int
  14566. FileSystem_SystemCommand (Urho3D::FileSystem *_target, const char * commandLine, bool redirectStdOutToLog)
  14567. {
  14568. return _target->SystemCommand (Urho3D::String(commandLine), redirectStdOutToLog);
  14569. }
  14570. DllExport unsigned int
  14571. FileSystem_SystemCommandAsync (Urho3D::FileSystem *_target, const char * commandLine)
  14572. {
  14573. return _target->SystemCommandAsync (Urho3D::String(commandLine));
  14574. }
  14575. DllExport int
  14576. FileSystem_SystemOpen (Urho3D::FileSystem *_target, const char * fileName, const char * mode)
  14577. {
  14578. return _target->SystemOpen (Urho3D::String(fileName), Urho3D::String(mode));
  14579. }
  14580. DllExport int
  14581. FileSystem_Copy (Urho3D::FileSystem *_target, const char * srcFileName, const char * destFileName)
  14582. {
  14583. return _target->Copy (Urho3D::String(srcFileName), Urho3D::String(destFileName));
  14584. }
  14585. DllExport int
  14586. FileSystem_Rename (Urho3D::FileSystem *_target, const char * srcFileName, const char * destFileName)
  14587. {
  14588. return _target->Rename (Urho3D::String(srcFileName), Urho3D::String(destFileName));
  14589. }
  14590. DllExport int
  14591. FileSystem_Delete (Urho3D::FileSystem *_target, const char * fileName)
  14592. {
  14593. return _target->Delete (Urho3D::String(fileName));
  14594. }
  14595. DllExport void
  14596. FileSystem_RegisterPath (Urho3D::FileSystem *_target, const char * pathName)
  14597. {
  14598. _target->RegisterPath (Urho3D::String(pathName));
  14599. }
  14600. DllExport int
  14601. FileSystem_SetLastModifiedTime (Urho3D::FileSystem *_target, const char * fileName, unsigned int newTime)
  14602. {
  14603. return _target->SetLastModifiedTime (Urho3D::String(fileName), newTime);
  14604. }
  14605. DllExport const char *
  14606. FileSystem_GetCurrentDir (Urho3D::FileSystem *_target)
  14607. {
  14608. return stringdup((_target->GetCurrentDir ()).CString ());
  14609. }
  14610. DllExport int
  14611. FileSystem_GetExecuteConsoleCommands (Urho3D::FileSystem *_target)
  14612. {
  14613. return _target->GetExecuteConsoleCommands ();
  14614. }
  14615. DllExport int
  14616. FileSystem_HasRegisteredPaths (Urho3D::FileSystem *_target)
  14617. {
  14618. return _target->HasRegisteredPaths ();
  14619. }
  14620. DllExport int
  14621. FileSystem_CheckAccess (Urho3D::FileSystem *_target, const char * pathName)
  14622. {
  14623. return _target->CheckAccess (Urho3D::String(pathName));
  14624. }
  14625. DllExport unsigned int
  14626. FileSystem_GetLastModifiedTime (Urho3D::FileSystem *_target, const char * fileName)
  14627. {
  14628. return _target->GetLastModifiedTime (Urho3D::String(fileName));
  14629. }
  14630. DllExport int
  14631. FileSystem_FileExists (Urho3D::FileSystem *_target, const char * fileName)
  14632. {
  14633. return _target->FileExists (Urho3D::String(fileName));
  14634. }
  14635. DllExport int
  14636. FileSystem_DirExists (Urho3D::FileSystem *_target, const char * pathName)
  14637. {
  14638. return _target->DirExists (Urho3D::String(pathName));
  14639. }
  14640. DllExport const char *
  14641. FileSystem_GetProgramDir (Urho3D::FileSystem *_target)
  14642. {
  14643. return stringdup((_target->GetProgramDir ()).CString ());
  14644. }
  14645. DllExport const char *
  14646. FileSystem_GetUserDocumentsDir (Urho3D::FileSystem *_target)
  14647. {
  14648. return stringdup((_target->GetUserDocumentsDir ()).CString ());
  14649. }
  14650. DllExport const char *
  14651. FileSystem_GetAppPreferencesDir (Urho3D::FileSystem *_target, const char * org, const char * app)
  14652. {
  14653. return stringdup((_target->GetAppPreferencesDir (Urho3D::String(org), Urho3D::String(app))).CString ());
  14654. }
  14655. DllExport int
  14656. FileWatcher_GetType (Urho3D::FileWatcher *_target)
  14657. {
  14658. return (_target->GetType ()).Value ();
  14659. }
  14660. DllExport const char *
  14661. FileWatcher_GetTypeName (Urho3D::FileWatcher *_target)
  14662. {
  14663. return stringdup((_target->GetTypeName ()).CString ());
  14664. }
  14665. DllExport int
  14666. FileWatcher_GetTypeStatic ()
  14667. {
  14668. return (FileWatcher::GetTypeStatic ()).Value ();
  14669. }
  14670. DllExport const char *
  14671. FileWatcher_GetTypeNameStatic ()
  14672. {
  14673. return stringdup((FileWatcher::GetTypeNameStatic ()).CString ());
  14674. }
  14675. DllExport void *
  14676. FileWatcher_FileWatcher (Urho3D::Context * context)
  14677. {
  14678. return WeakPtr<FileWatcher>(new FileWatcher(context));
  14679. }
  14680. DllExport void
  14681. FileWatcher_ThreadFunction (Urho3D::FileWatcher *_target)
  14682. {
  14683. _target->ThreadFunction ();
  14684. }
  14685. DllExport int
  14686. FileWatcher_StartWatching (Urho3D::FileWatcher *_target, const char * pathName, bool watchSubDirs)
  14687. {
  14688. return _target->StartWatching (Urho3D::String(pathName), watchSubDirs);
  14689. }
  14690. DllExport void
  14691. FileWatcher_StopWatching (Urho3D::FileWatcher *_target)
  14692. {
  14693. _target->StopWatching ();
  14694. }
  14695. DllExport void
  14696. FileWatcher_SetDelay (Urho3D::FileWatcher *_target, float interval)
  14697. {
  14698. _target->SetDelay (interval);
  14699. }
  14700. DllExport void
  14701. FileWatcher_AddChange (Urho3D::FileWatcher *_target, const char * fileName)
  14702. {
  14703. _target->AddChange (Urho3D::String(fileName));
  14704. }
  14705. DllExport const char *
  14706. FileWatcher_GetPath (Urho3D::FileWatcher *_target)
  14707. {
  14708. return stringdup((_target->GetPath ()).CString ());
  14709. }
  14710. DllExport float
  14711. FileWatcher_GetDelay (Urho3D::FileWatcher *_target)
  14712. {
  14713. return _target->GetDelay ();
  14714. }
  14715. DllExport int
  14716. Log_GetType (Urho3D::Log *_target)
  14717. {
  14718. return (_target->GetType ()).Value ();
  14719. }
  14720. DllExport const char *
  14721. Log_GetTypeName (Urho3D::Log *_target)
  14722. {
  14723. return stringdup((_target->GetTypeName ()).CString ());
  14724. }
  14725. DllExport int
  14726. Log_GetTypeStatic ()
  14727. {
  14728. return (Log::GetTypeStatic ()).Value ();
  14729. }
  14730. DllExport const char *
  14731. Log_GetTypeNameStatic ()
  14732. {
  14733. return stringdup((Log::GetTypeNameStatic ()).CString ());
  14734. }
  14735. DllExport void *
  14736. Log_Log (Urho3D::Context * context)
  14737. {
  14738. return WeakPtr<Log>(new Log(context));
  14739. }
  14740. DllExport void
  14741. Log_Open (Urho3D::Log *_target, const char * fileName)
  14742. {
  14743. _target->Open (Urho3D::String(fileName));
  14744. }
  14745. DllExport void
  14746. Log_Close (Urho3D::Log *_target)
  14747. {
  14748. _target->Close ();
  14749. }
  14750. DllExport void
  14751. Log_SetLevel (Urho3D::Log *_target, int level)
  14752. {
  14753. _target->SetLevel (level);
  14754. }
  14755. DllExport void
  14756. Log_SetTimeStamp (Urho3D::Log *_target, bool enable)
  14757. {
  14758. _target->SetTimeStamp (enable);
  14759. }
  14760. DllExport void
  14761. Log_SetQuiet (Urho3D::Log *_target, bool quiet)
  14762. {
  14763. _target->SetQuiet (quiet);
  14764. }
  14765. DllExport int
  14766. Log_GetLevel (Urho3D::Log *_target)
  14767. {
  14768. return _target->GetLevel ();
  14769. }
  14770. DllExport int
  14771. Log_GetTimeStamp (Urho3D::Log *_target)
  14772. {
  14773. return _target->GetTimeStamp ();
  14774. }
  14775. DllExport const char *
  14776. Log_GetLastMessage (Urho3D::Log *_target)
  14777. {
  14778. return stringdup((_target->GetLastMessage ()).CString ());
  14779. }
  14780. DllExport int
  14781. Log_IsQuiet (Urho3D::Log *_target)
  14782. {
  14783. return _target->IsQuiet ();
  14784. }
  14785. DllExport void
  14786. Log_Write (int level, const char * message)
  14787. {
  14788. Log::Write (level, Urho3D::String(message));
  14789. }
  14790. DllExport void
  14791. Log_WriteRaw (const char * message, bool error)
  14792. {
  14793. Log::WriteRaw (Urho3D::String(message), error);
  14794. }
  14795. DllExport int
  14796. PackageFile_GetType (Urho3D::PackageFile *_target)
  14797. {
  14798. return (_target->GetType ()).Value ();
  14799. }
  14800. DllExport const char *
  14801. PackageFile_GetTypeName (Urho3D::PackageFile *_target)
  14802. {
  14803. return stringdup((_target->GetTypeName ()).CString ());
  14804. }
  14805. DllExport int
  14806. PackageFile_GetTypeStatic ()
  14807. {
  14808. return (PackageFile::GetTypeStatic ()).Value ();
  14809. }
  14810. DllExport const char *
  14811. PackageFile_GetTypeNameStatic ()
  14812. {
  14813. return stringdup((PackageFile::GetTypeNameStatic ()).CString ());
  14814. }
  14815. DllExport void *
  14816. PackageFile_PackageFile (Urho3D::Context * context)
  14817. {
  14818. return WeakPtr<PackageFile>(new PackageFile(context));
  14819. }
  14820. DllExport void *
  14821. PackageFile_PackageFile0 (Urho3D::Context * context, const char * fileName, unsigned int startOffset)
  14822. {
  14823. return WeakPtr<PackageFile>(new PackageFile(context, Urho3D::String(fileName), startOffset));
  14824. }
  14825. DllExport int
  14826. PackageFile_Open (Urho3D::PackageFile *_target, const char * fileName, unsigned int startOffset)
  14827. {
  14828. return _target->Open (Urho3D::String(fileName), startOffset);
  14829. }
  14830. DllExport int
  14831. PackageFile_Exists (Urho3D::PackageFile *_target, const char * fileName)
  14832. {
  14833. return _target->Exists (Urho3D::String(fileName));
  14834. }
  14835. DllExport const struct Urho3D::PackageEntry *
  14836. PackageFile_GetEntry (Urho3D::PackageFile *_target, const char * fileName)
  14837. {
  14838. return _target->GetEntry (Urho3D::String(fileName));
  14839. }
  14840. DllExport const char *
  14841. PackageFile_GetName (Urho3D::PackageFile *_target)
  14842. {
  14843. return stringdup((_target->GetName ()).CString ());
  14844. }
  14845. DllExport int
  14846. PackageFile_GetNameHash (Urho3D::PackageFile *_target)
  14847. {
  14848. return (_target->GetNameHash ()).Value ();
  14849. }
  14850. DllExport unsigned int
  14851. PackageFile_GetNumFiles (Urho3D::PackageFile *_target)
  14852. {
  14853. return _target->GetNumFiles ();
  14854. }
  14855. DllExport unsigned int
  14856. PackageFile_GetTotalSize (Urho3D::PackageFile *_target)
  14857. {
  14858. return _target->GetTotalSize ();
  14859. }
  14860. DllExport unsigned int
  14861. PackageFile_GetTotalDataSize (Urho3D::PackageFile *_target)
  14862. {
  14863. return _target->GetTotalDataSize ();
  14864. }
  14865. DllExport unsigned int
  14866. PackageFile_GetChecksum (Urho3D::PackageFile *_target)
  14867. {
  14868. return _target->GetChecksum ();
  14869. }
  14870. DllExport int
  14871. PackageFile_IsCompressed (Urho3D::PackageFile *_target)
  14872. {
  14873. return _target->IsCompressed ();
  14874. }
  14875. DllExport int
  14876. UIElement_GetType (Urho3D::UIElement *_target)
  14877. {
  14878. return (_target->GetType ()).Value ();
  14879. }
  14880. DllExport const char *
  14881. UIElement_GetTypeName (Urho3D::UIElement *_target)
  14882. {
  14883. return stringdup((_target->GetTypeName ()).CString ());
  14884. }
  14885. DllExport int
  14886. UIElement_GetTypeStatic ()
  14887. {
  14888. return (UIElement::GetTypeStatic ()).Value ();
  14889. }
  14890. DllExport const char *
  14891. UIElement_GetTypeNameStatic ()
  14892. {
  14893. return stringdup((UIElement::GetTypeNameStatic ()).CString ());
  14894. }
  14895. DllExport void *
  14896. UIElement_UIElement (Urho3D::Context * context)
  14897. {
  14898. return WeakPtr<UIElement>(new UIElement(context));
  14899. }
  14900. DllExport void
  14901. UIElement_RegisterObject (Urho3D::Context * context)
  14902. {
  14903. UIElement::RegisterObject (context);
  14904. }
  14905. DllExport void
  14906. UIElement_ApplyAttributes (Urho3D::UIElement *_target)
  14907. {
  14908. _target->ApplyAttributes ();
  14909. }
  14910. DllExport int
  14911. UIElement_LoadXML (Urho3D::UIElement *_target, const class Urho3D::XMLElement & source, bool setInstanceDefault)
  14912. {
  14913. return _target->LoadXML (source, setInstanceDefault);
  14914. }
  14915. DllExport int
  14916. UIElement_LoadXML0 (Urho3D::UIElement *_target, const class Urho3D::XMLElement & source, Urho3D::XMLFile * styleFile, bool setInstanceDefault)
  14917. {
  14918. return _target->LoadXML (source, styleFile, setInstanceDefault);
  14919. }
  14920. DllExport Urho3D::UIElement *
  14921. UIElement_LoadChildXML (Urho3D::UIElement *_target, const class Urho3D::XMLElement & childElem, Urho3D::XMLFile * styleFile, bool setInstanceDefault)
  14922. {
  14923. return _target->LoadChildXML (childElem, styleFile, setInstanceDefault);
  14924. }
  14925. DllExport int
  14926. UIElement_SaveXML (Urho3D::UIElement *_target, Urho3D::XMLElement & dest)
  14927. {
  14928. return _target->SaveXML (dest);
  14929. }
  14930. DllExport void
  14931. UIElement_Update (Urho3D::UIElement *_target, float timeStep)
  14932. {
  14933. _target->Update (timeStep);
  14934. }
  14935. DllExport int
  14936. UIElement_IsWithinScissor (Urho3D::UIElement *_target, const class Urho3D::IntRect & currentScissor)
  14937. {
  14938. return _target->IsWithinScissor (currentScissor);
  14939. }
  14940. DllExport Interop::IntVector2
  14941. UIElement_GetScreenPosition (Urho3D::UIElement *_target)
  14942. {
  14943. return *((Interop::IntVector2 *) &(_target->GetScreenPosition ()));
  14944. }
  14945. DllExport void
  14946. UIElement_OnHover (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  14947. {
  14948. _target->OnHover (position, screenPosition, buttons, qualifiers, cursor);
  14949. }
  14950. DllExport void
  14951. UIElement_OnClickBegin (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int button, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  14952. {
  14953. _target->OnClickBegin (position, screenPosition, button, buttons, qualifiers, cursor);
  14954. }
  14955. DllExport void
  14956. 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)
  14957. {
  14958. _target->OnClickEnd (position, screenPosition, button, buttons, qualifiers, cursor, beginElement);
  14959. }
  14960. DllExport void
  14961. UIElement_OnDoubleClick (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int button, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  14962. {
  14963. _target->OnDoubleClick (position, screenPosition, button, buttons, qualifiers, cursor);
  14964. }
  14965. DllExport void
  14966. UIElement_OnWheel (Urho3D::UIElement *_target, int delta, int buttons, int qualifiers)
  14967. {
  14968. _target->OnWheel (delta, buttons, qualifiers);
  14969. }
  14970. DllExport void
  14971. UIElement_OnKey (Urho3D::UIElement *_target, int key, int buttons, int qualifiers)
  14972. {
  14973. _target->OnKey (key, buttons, qualifiers);
  14974. }
  14975. DllExport void
  14976. UIElement_OnTextInput (Urho3D::UIElement *_target, const char * text)
  14977. {
  14978. _target->OnTextInput (Urho3D::String(text));
  14979. }
  14980. DllExport void
  14981. UIElement_OnResize (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & newSize, const class Urho3D::IntVector2 & delta)
  14982. {
  14983. _target->OnResize (newSize, delta);
  14984. }
  14985. DllExport void
  14986. UIElement_OnPositionSet (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & newPosition)
  14987. {
  14988. _target->OnPositionSet (newPosition);
  14989. }
  14990. DllExport void
  14991. UIElement_OnSetEditable (Urho3D::UIElement *_target)
  14992. {
  14993. _target->OnSetEditable ();
  14994. }
  14995. DllExport void
  14996. UIElement_OnIndentSet (Urho3D::UIElement *_target)
  14997. {
  14998. _target->OnIndentSet ();
  14999. }
  15000. DllExport Interop::IntVector2
  15001. UIElement_ScreenToElement (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & screenPosition)
  15002. {
  15003. return *((Interop::IntVector2 *) &(_target->ScreenToElement (screenPosition)));
  15004. }
  15005. DllExport Interop::IntVector2
  15006. UIElement_ElementToScreen (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & position)
  15007. {
  15008. return *((Interop::IntVector2 *) &(_target->ElementToScreen (position)));
  15009. }
  15010. DllExport int
  15011. UIElement_LoadXML1_File (Urho3D::UIElement *_target, File * source)
  15012. {
  15013. return _target->LoadXML (*source);
  15014. }
  15015. DllExport int
  15016. UIElement_LoadXML1_MemoryBuffer (Urho3D::UIElement *_target, MemoryBuffer * source)
  15017. {
  15018. return _target->LoadXML (*source);
  15019. }
  15020. DllExport int
  15021. UIElement_SaveXML2_File (Urho3D::UIElement *_target, File * dest, const char * indentation)
  15022. {
  15023. return _target->SaveXML (*dest, Urho3D::String(indentation));
  15024. }
  15025. DllExport int
  15026. UIElement_SaveXML2_MemoryBuffer (Urho3D::UIElement *_target, MemoryBuffer * dest, const char * indentation)
  15027. {
  15028. return _target->SaveXML (*dest, Urho3D::String(indentation));
  15029. }
  15030. DllExport int
  15031. UIElement_FilterAttributes (Urho3D::UIElement *_target, Urho3D::XMLElement & dest)
  15032. {
  15033. return _target->FilterAttributes (dest);
  15034. }
  15035. DllExport void
  15036. UIElement_SetName (Urho3D::UIElement *_target, const char * name)
  15037. {
  15038. _target->SetName (Urho3D::String(name));
  15039. }
  15040. DllExport void
  15041. UIElement_SetPosition (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & position)
  15042. {
  15043. _target->SetPosition (position);
  15044. }
  15045. DllExport void
  15046. UIElement_SetPosition3 (Urho3D::UIElement *_target, int x, int y)
  15047. {
  15048. _target->SetPosition (x, y);
  15049. }
  15050. DllExport void
  15051. UIElement_SetSize (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & size)
  15052. {
  15053. _target->SetSize (size);
  15054. }
  15055. DllExport void
  15056. UIElement_SetSize4 (Urho3D::UIElement *_target, int width, int height)
  15057. {
  15058. _target->SetSize (width, height);
  15059. }
  15060. DllExport void
  15061. UIElement_SetWidth (Urho3D::UIElement *_target, int width)
  15062. {
  15063. _target->SetWidth (width);
  15064. }
  15065. DllExport void
  15066. UIElement_SetHeight (Urho3D::UIElement *_target, int height)
  15067. {
  15068. _target->SetHeight (height);
  15069. }
  15070. DllExport void
  15071. UIElement_SetMinSize (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & minSize)
  15072. {
  15073. _target->SetMinSize (minSize);
  15074. }
  15075. DllExport void
  15076. UIElement_SetMinSize5 (Urho3D::UIElement *_target, int width, int height)
  15077. {
  15078. _target->SetMinSize (width, height);
  15079. }
  15080. DllExport void
  15081. UIElement_SetMinWidth (Urho3D::UIElement *_target, int width)
  15082. {
  15083. _target->SetMinWidth (width);
  15084. }
  15085. DllExport void
  15086. UIElement_SetMinHeight (Urho3D::UIElement *_target, int height)
  15087. {
  15088. _target->SetMinHeight (height);
  15089. }
  15090. DllExport void
  15091. UIElement_SetMaxSize (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & maxSize)
  15092. {
  15093. _target->SetMaxSize (maxSize);
  15094. }
  15095. DllExport void
  15096. UIElement_SetMaxSize6 (Urho3D::UIElement *_target, int width, int height)
  15097. {
  15098. _target->SetMaxSize (width, height);
  15099. }
  15100. DllExport void
  15101. UIElement_SetMaxWidth (Urho3D::UIElement *_target, int width)
  15102. {
  15103. _target->SetMaxWidth (width);
  15104. }
  15105. DllExport void
  15106. UIElement_SetMaxHeight (Urho3D::UIElement *_target, int height)
  15107. {
  15108. _target->SetMaxHeight (height);
  15109. }
  15110. DllExport void
  15111. UIElement_SetFixedSize (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & size)
  15112. {
  15113. _target->SetFixedSize (size);
  15114. }
  15115. DllExport void
  15116. UIElement_SetFixedSize7 (Urho3D::UIElement *_target, int width, int height)
  15117. {
  15118. _target->SetFixedSize (width, height);
  15119. }
  15120. DllExport void
  15121. UIElement_SetFixedWidth (Urho3D::UIElement *_target, int width)
  15122. {
  15123. _target->SetFixedWidth (width);
  15124. }
  15125. DllExport void
  15126. UIElement_SetFixedHeight (Urho3D::UIElement *_target, int height)
  15127. {
  15128. _target->SetFixedHeight (height);
  15129. }
  15130. DllExport void
  15131. UIElement_SetAlignment (Urho3D::UIElement *_target, enum Urho3D::HorizontalAlignment hAlign, enum Urho3D::VerticalAlignment vAlign)
  15132. {
  15133. _target->SetAlignment (hAlign, vAlign);
  15134. }
  15135. DllExport void
  15136. UIElement_SetHorizontalAlignment (Urho3D::UIElement *_target, enum Urho3D::HorizontalAlignment align)
  15137. {
  15138. _target->SetHorizontalAlignment (align);
  15139. }
  15140. DllExport void
  15141. UIElement_SetVerticalAlignment (Urho3D::UIElement *_target, enum Urho3D::VerticalAlignment align)
  15142. {
  15143. _target->SetVerticalAlignment (align);
  15144. }
  15145. DllExport void
  15146. UIElement_SetEnableAnchor (Urho3D::UIElement *_target, bool enable)
  15147. {
  15148. _target->SetEnableAnchor (enable);
  15149. }
  15150. DllExport void
  15151. UIElement_SetMinAnchor (Urho3D::UIElement *_target, const class Urho3D::Vector2 & anchor)
  15152. {
  15153. _target->SetMinAnchor (anchor);
  15154. }
  15155. DllExport void
  15156. UIElement_SetMinAnchor8 (Urho3D::UIElement *_target, float x, float y)
  15157. {
  15158. _target->SetMinAnchor (x, y);
  15159. }
  15160. DllExport void
  15161. UIElement_SetMaxAnchor (Urho3D::UIElement *_target, const class Urho3D::Vector2 & anchor)
  15162. {
  15163. _target->SetMaxAnchor (anchor);
  15164. }
  15165. DllExport void
  15166. UIElement_SetMaxAnchor9 (Urho3D::UIElement *_target, float x, float y)
  15167. {
  15168. _target->SetMaxAnchor (x, y);
  15169. }
  15170. DllExport void
  15171. UIElement_SetMinOffset (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & offset)
  15172. {
  15173. _target->SetMinOffset (offset);
  15174. }
  15175. DllExport void
  15176. UIElement_SetMaxOffset (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & offset)
  15177. {
  15178. _target->SetMaxOffset (offset);
  15179. }
  15180. DllExport void
  15181. UIElement_SetPivot (Urho3D::UIElement *_target, const class Urho3D::Vector2 & pivot)
  15182. {
  15183. _target->SetPivot (pivot);
  15184. }
  15185. DllExport void
  15186. UIElement_SetPivot10 (Urho3D::UIElement *_target, float x, float y)
  15187. {
  15188. _target->SetPivot (x, y);
  15189. }
  15190. DllExport void
  15191. UIElement_SetClipBorder (Urho3D::UIElement *_target, const class Urho3D::IntRect & rect)
  15192. {
  15193. _target->SetClipBorder (rect);
  15194. }
  15195. DllExport void
  15196. UIElement_SetColor (Urho3D::UIElement *_target, const class Urho3D::Color & color)
  15197. {
  15198. _target->SetColor (color);
  15199. }
  15200. DllExport void
  15201. UIElement_SetColor11 (Urho3D::UIElement *_target, enum Urho3D::Corner corner, const class Urho3D::Color & color)
  15202. {
  15203. _target->SetColor (corner, color);
  15204. }
  15205. DllExport void
  15206. UIElement_SetPriority (Urho3D::UIElement *_target, int priority)
  15207. {
  15208. _target->SetPriority (priority);
  15209. }
  15210. DllExport void
  15211. UIElement_SetOpacity (Urho3D::UIElement *_target, float opacity)
  15212. {
  15213. _target->SetOpacity (opacity);
  15214. }
  15215. DllExport void
  15216. UIElement_SetBringToFront (Urho3D::UIElement *_target, bool enable)
  15217. {
  15218. _target->SetBringToFront (enable);
  15219. }
  15220. DllExport void
  15221. UIElement_SetBringToBack (Urho3D::UIElement *_target, bool enable)
  15222. {
  15223. _target->SetBringToBack (enable);
  15224. }
  15225. DllExport void
  15226. UIElement_SetClipChildren (Urho3D::UIElement *_target, bool enable)
  15227. {
  15228. _target->SetClipChildren (enable);
  15229. }
  15230. DllExport void
  15231. UIElement_SetSortChildren (Urho3D::UIElement *_target, bool enable)
  15232. {
  15233. _target->SetSortChildren (enable);
  15234. }
  15235. DllExport void
  15236. UIElement_SetUseDerivedOpacity (Urho3D::UIElement *_target, bool enable)
  15237. {
  15238. _target->SetUseDerivedOpacity (enable);
  15239. }
  15240. DllExport void
  15241. UIElement_SetEnabled (Urho3D::UIElement *_target, bool enable)
  15242. {
  15243. _target->SetEnabled (enable);
  15244. }
  15245. DllExport void
  15246. UIElement_SetDeepEnabled (Urho3D::UIElement *_target, bool enable)
  15247. {
  15248. _target->SetDeepEnabled (enable);
  15249. }
  15250. DllExport void
  15251. UIElement_ResetDeepEnabled (Urho3D::UIElement *_target)
  15252. {
  15253. _target->ResetDeepEnabled ();
  15254. }
  15255. DllExport void
  15256. UIElement_SetEnabledRecursive (Urho3D::UIElement *_target, bool enable)
  15257. {
  15258. _target->SetEnabledRecursive (enable);
  15259. }
  15260. DllExport void
  15261. UIElement_SetEditable (Urho3D::UIElement *_target, bool enable)
  15262. {
  15263. _target->SetEditable (enable);
  15264. }
  15265. DllExport void
  15266. UIElement_SetFocus (Urho3D::UIElement *_target, bool enable)
  15267. {
  15268. _target->SetFocus (enable);
  15269. }
  15270. DllExport void
  15271. UIElement_SetSelected (Urho3D::UIElement *_target, bool enable)
  15272. {
  15273. _target->SetSelected (enable);
  15274. }
  15275. DllExport void
  15276. UIElement_SetVisible (Urho3D::UIElement *_target, bool enable)
  15277. {
  15278. _target->SetVisible (enable);
  15279. }
  15280. DllExport void
  15281. UIElement_SetFocusMode (Urho3D::UIElement *_target, enum Urho3D::FocusMode mode)
  15282. {
  15283. _target->SetFocusMode (mode);
  15284. }
  15285. DllExport void
  15286. UIElement_SetDragDropMode (Urho3D::UIElement *_target, unsigned int mode)
  15287. {
  15288. _target->SetDragDropMode (mode);
  15289. }
  15290. DllExport int
  15291. UIElement_SetStyle (Urho3D::UIElement *_target, const char * styleName, Urho3D::XMLFile * file)
  15292. {
  15293. return _target->SetStyle (Urho3D::String(styleName), file);
  15294. }
  15295. DllExport int
  15296. UIElement_SetStyle12 (Urho3D::UIElement *_target, const class Urho3D::XMLElement & element)
  15297. {
  15298. return _target->SetStyle (element);
  15299. }
  15300. DllExport int
  15301. UIElement_SetStyleAuto (Urho3D::UIElement *_target, Urho3D::XMLFile * file)
  15302. {
  15303. return _target->SetStyleAuto (file);
  15304. }
  15305. DllExport void
  15306. UIElement_SetDefaultStyle (Urho3D::UIElement *_target, Urho3D::XMLFile * style)
  15307. {
  15308. _target->SetDefaultStyle (style);
  15309. }
  15310. DllExport void
  15311. UIElement_SetLayout (Urho3D::UIElement *_target, enum Urho3D::LayoutMode mode, int spacing, const class Urho3D::IntRect & border)
  15312. {
  15313. _target->SetLayout (mode, spacing, border);
  15314. }
  15315. DllExport void
  15316. UIElement_SetLayoutMode (Urho3D::UIElement *_target, enum Urho3D::LayoutMode mode)
  15317. {
  15318. _target->SetLayoutMode (mode);
  15319. }
  15320. DllExport void
  15321. UIElement_SetLayoutSpacing (Urho3D::UIElement *_target, int spacing)
  15322. {
  15323. _target->SetLayoutSpacing (spacing);
  15324. }
  15325. DllExport void
  15326. UIElement_SetLayoutBorder (Urho3D::UIElement *_target, const class Urho3D::IntRect & border)
  15327. {
  15328. _target->SetLayoutBorder (border);
  15329. }
  15330. DllExport void
  15331. UIElement_SetLayoutFlexScale (Urho3D::UIElement *_target, const class Urho3D::Vector2 & scale)
  15332. {
  15333. _target->SetLayoutFlexScale (scale);
  15334. }
  15335. DllExport void
  15336. UIElement_SetIndent (Urho3D::UIElement *_target, int indent)
  15337. {
  15338. _target->SetIndent (indent);
  15339. }
  15340. DllExport void
  15341. UIElement_SetIndentSpacing (Urho3D::UIElement *_target, int indentSpacing)
  15342. {
  15343. _target->SetIndentSpacing (indentSpacing);
  15344. }
  15345. DllExport void
  15346. UIElement_UpdateLayout (Urho3D::UIElement *_target)
  15347. {
  15348. _target->UpdateLayout ();
  15349. }
  15350. DllExport void
  15351. UIElement_DisableLayoutUpdate (Urho3D::UIElement *_target)
  15352. {
  15353. _target->DisableLayoutUpdate ();
  15354. }
  15355. DllExport void
  15356. UIElement_EnableLayoutUpdate (Urho3D::UIElement *_target)
  15357. {
  15358. _target->EnableLayoutUpdate ();
  15359. }
  15360. DllExport void
  15361. UIElement_BringToFront (Urho3D::UIElement *_target)
  15362. {
  15363. _target->BringToFront ();
  15364. }
  15365. DllExport Urho3D::UIElement *
  15366. UIElement_CreateChild (Urho3D::UIElement *_target, int type, const char * name, unsigned int index)
  15367. {
  15368. return _target->CreateChild (Urho3D::StringHash(type), Urho3D::String(name), index);
  15369. }
  15370. DllExport void
  15371. UIElement_AddChild (Urho3D::UIElement *_target, Urho3D::UIElement * element)
  15372. {
  15373. _target->AddChild (element);
  15374. }
  15375. DllExport void
  15376. UIElement_InsertChild (Urho3D::UIElement *_target, unsigned int index, Urho3D::UIElement * element)
  15377. {
  15378. _target->InsertChild (index, element);
  15379. }
  15380. DllExport void
  15381. UIElement_RemoveChild (Urho3D::UIElement *_target, Urho3D::UIElement * element, unsigned int index)
  15382. {
  15383. _target->RemoveChild (element, index);
  15384. }
  15385. DllExport void
  15386. UIElement_RemoveChildAtIndex (Urho3D::UIElement *_target, unsigned int index)
  15387. {
  15388. _target->RemoveChildAtIndex (index);
  15389. }
  15390. DllExport void
  15391. UIElement_RemoveAllChildren (Urho3D::UIElement *_target)
  15392. {
  15393. _target->RemoveAllChildren ();
  15394. }
  15395. DllExport void
  15396. UIElement_Remove (Urho3D::UIElement *_target)
  15397. {
  15398. _target->Remove ();
  15399. }
  15400. DllExport unsigned int
  15401. UIElement_FindChild (Urho3D::UIElement *_target, Urho3D::UIElement * element)
  15402. {
  15403. return _target->FindChild (element);
  15404. }
  15405. DllExport void
  15406. UIElement_SetParent (Urho3D::UIElement *_target, Urho3D::UIElement * parent, unsigned int index)
  15407. {
  15408. _target->SetParent (parent, index);
  15409. }
  15410. // Urho3D::Variant overloads begin:
  15411. DllExport void
  15412. UIElement_SetVar0 (Urho3D::UIElement *_target, int key, const class Urho3D::Vector3 & value)
  15413. {
  15414. _target->SetVar (Urho3D::StringHash(key), (value));
  15415. }
  15416. DllExport void
  15417. UIElement_SetVar1 (Urho3D::UIElement *_target, int key, const class Urho3D::IntRect & value)
  15418. {
  15419. _target->SetVar (Urho3D::StringHash(key), (value));
  15420. }
  15421. DllExport void
  15422. UIElement_SetVar2 (Urho3D::UIElement *_target, int key, const class Urho3D::Color & value)
  15423. {
  15424. _target->SetVar (Urho3D::StringHash(key), (value));
  15425. }
  15426. DllExport void
  15427. UIElement_SetVar3 (Urho3D::UIElement *_target, int key, const class Urho3D::Vector2 & value)
  15428. {
  15429. _target->SetVar (Urho3D::StringHash(key), (value));
  15430. }
  15431. DllExport void
  15432. UIElement_SetVar4 (Urho3D::UIElement *_target, int key, const class Urho3D::Vector4 & value)
  15433. {
  15434. _target->SetVar (Urho3D::StringHash(key), (value));
  15435. }
  15436. DllExport void
  15437. UIElement_SetVar5 (Urho3D::UIElement *_target, int key, const class Urho3D::IntVector2 & value)
  15438. {
  15439. _target->SetVar (Urho3D::StringHash(key), (value));
  15440. }
  15441. DllExport void
  15442. UIElement_SetVar6 (Urho3D::UIElement *_target, int key, const class Urho3D::Quaternion & value)
  15443. {
  15444. _target->SetVar (Urho3D::StringHash(key), (value));
  15445. }
  15446. DllExport void
  15447. UIElement_SetVar7 (Urho3D::UIElement *_target, int key, const class Urho3D::Matrix4 & value)
  15448. {
  15449. _target->SetVar (Urho3D::StringHash(key), (value));
  15450. }
  15451. DllExport void
  15452. UIElement_SetVar8 (Urho3D::UIElement *_target, int key, const class Urho3D::Matrix3x4 & value)
  15453. {
  15454. _target->SetVar (Urho3D::StringHash(key), (value));
  15455. }
  15456. DllExport void
  15457. UIElement_SetVar9 (Urho3D::UIElement *_target, int key, int value)
  15458. {
  15459. _target->SetVar (Urho3D::StringHash(key), (value));
  15460. }
  15461. DllExport void
  15462. UIElement_SetVar10 (Urho3D::UIElement *_target, int key, float value)
  15463. {
  15464. _target->SetVar (Urho3D::StringHash(key), (value));
  15465. }
  15466. DllExport void
  15467. UIElement_SetVar11 (Urho3D::UIElement *_target, int key, const char * value)
  15468. {
  15469. _target->SetVar (Urho3D::StringHash(key), Urho3D::String(value));
  15470. }
  15471. DllExport void
  15472. UIElement_SetVar12 (Urho3D::UIElement *_target, int key, bool value)
  15473. {
  15474. _target->SetVar (Urho3D::StringHash(key), (value));
  15475. }
  15476. // Urho3D::Variant overloads end.
  15477. DllExport void
  15478. UIElement_SetInternal (Urho3D::UIElement *_target, bool enable)
  15479. {
  15480. _target->SetInternal (enable);
  15481. }
  15482. DllExport void
  15483. UIElement_SetTraversalMode (Urho3D::UIElement *_target, enum Urho3D::TraversalMode traversalMode)
  15484. {
  15485. _target->SetTraversalMode (traversalMode);
  15486. }
  15487. DllExport void
  15488. UIElement_SetElementEventSender (Urho3D::UIElement *_target, bool flag)
  15489. {
  15490. _target->SetElementEventSender (flag);
  15491. }
  15492. DllExport void
  15493. UIElement_AddTag (Urho3D::UIElement *_target, const char * tag)
  15494. {
  15495. _target->AddTag (Urho3D::String(tag));
  15496. }
  15497. DllExport int
  15498. UIElement_RemoveTag (Urho3D::UIElement *_target, const char * tag)
  15499. {
  15500. return _target->RemoveTag (Urho3D::String(tag));
  15501. }
  15502. DllExport void
  15503. UIElement_RemoveAllTags (Urho3D::UIElement *_target)
  15504. {
  15505. _target->RemoveAllTags ();
  15506. }
  15507. DllExport const char *
  15508. UIElement_GetName (Urho3D::UIElement *_target)
  15509. {
  15510. return stringdup((_target->GetName ()).CString ());
  15511. }
  15512. DllExport Interop::IntVector2
  15513. UIElement_GetPosition (Urho3D::UIElement *_target)
  15514. {
  15515. return *((Interop::IntVector2 *) &(_target->GetPosition ()));
  15516. }
  15517. DllExport Interop::IntVector2
  15518. UIElement_GetSize (Urho3D::UIElement *_target)
  15519. {
  15520. return *((Interop::IntVector2 *) &(_target->GetSize ()));
  15521. }
  15522. DllExport int
  15523. UIElement_GetWidth (Urho3D::UIElement *_target)
  15524. {
  15525. return _target->GetWidth ();
  15526. }
  15527. DllExport int
  15528. UIElement_GetHeight (Urho3D::UIElement *_target)
  15529. {
  15530. return _target->GetHeight ();
  15531. }
  15532. DllExport Interop::IntVector2
  15533. UIElement_GetMinSize (Urho3D::UIElement *_target)
  15534. {
  15535. return *((Interop::IntVector2 *) &(_target->GetMinSize ()));
  15536. }
  15537. DllExport int
  15538. UIElement_GetMinWidth (Urho3D::UIElement *_target)
  15539. {
  15540. return _target->GetMinWidth ();
  15541. }
  15542. DllExport int
  15543. UIElement_GetMinHeight (Urho3D::UIElement *_target)
  15544. {
  15545. return _target->GetMinHeight ();
  15546. }
  15547. DllExport Interop::IntVector2
  15548. UIElement_GetMaxSize (Urho3D::UIElement *_target)
  15549. {
  15550. return *((Interop::IntVector2 *) &(_target->GetMaxSize ()));
  15551. }
  15552. DllExport int
  15553. UIElement_GetMaxWidth (Urho3D::UIElement *_target)
  15554. {
  15555. return _target->GetMaxWidth ();
  15556. }
  15557. DllExport int
  15558. UIElement_GetMaxHeight (Urho3D::UIElement *_target)
  15559. {
  15560. return _target->GetMaxHeight ();
  15561. }
  15562. DllExport int
  15563. UIElement_IsFixedSize (Urho3D::UIElement *_target)
  15564. {
  15565. return _target->IsFixedSize ();
  15566. }
  15567. DllExport int
  15568. UIElement_IsFixedWidth (Urho3D::UIElement *_target)
  15569. {
  15570. return _target->IsFixedWidth ();
  15571. }
  15572. DllExport int
  15573. UIElement_IsFixedHeight (Urho3D::UIElement *_target)
  15574. {
  15575. return _target->IsFixedHeight ();
  15576. }
  15577. DllExport Interop::IntVector2
  15578. UIElement_GetChildOffset (Urho3D::UIElement *_target)
  15579. {
  15580. return *((Interop::IntVector2 *) &(_target->GetChildOffset ()));
  15581. }
  15582. DllExport enum Urho3D::HorizontalAlignment
  15583. UIElement_GetHorizontalAlignment (Urho3D::UIElement *_target)
  15584. {
  15585. return _target->GetHorizontalAlignment ();
  15586. }
  15587. DllExport enum Urho3D::VerticalAlignment
  15588. UIElement_GetVerticalAlignment (Urho3D::UIElement *_target)
  15589. {
  15590. return _target->GetVerticalAlignment ();
  15591. }
  15592. DllExport int
  15593. UIElement_GetEnableAnchor (Urho3D::UIElement *_target)
  15594. {
  15595. return _target->GetEnableAnchor ();
  15596. }
  15597. DllExport Interop::Vector2
  15598. UIElement_GetMinAnchor (Urho3D::UIElement *_target)
  15599. {
  15600. return *((Interop::Vector2 *) &(_target->GetMinAnchor ()));
  15601. }
  15602. DllExport Interop::Vector2
  15603. UIElement_GetMaxAnchor (Urho3D::UIElement *_target)
  15604. {
  15605. return *((Interop::Vector2 *) &(_target->GetMaxAnchor ()));
  15606. }
  15607. DllExport Interop::IntVector2
  15608. UIElement_GetMinOffset (Urho3D::UIElement *_target)
  15609. {
  15610. return *((Interop::IntVector2 *) &(_target->GetMinOffset ()));
  15611. }
  15612. DllExport Interop::IntVector2
  15613. UIElement_GetMaxOffset (Urho3D::UIElement *_target)
  15614. {
  15615. return *((Interop::IntVector2 *) &(_target->GetMaxOffset ()));
  15616. }
  15617. DllExport Interop::Vector2
  15618. UIElement_GetPivot (Urho3D::UIElement *_target)
  15619. {
  15620. return *((Interop::Vector2 *) &(_target->GetPivot ()));
  15621. }
  15622. DllExport Interop::IntRect
  15623. UIElement_GetClipBorder (Urho3D::UIElement *_target)
  15624. {
  15625. return *((Interop::IntRect *) &(_target->GetClipBorder ()));
  15626. }
  15627. DllExport Interop::Color
  15628. UIElement_GetColor (Urho3D::UIElement *_target, enum Urho3D::Corner corner)
  15629. {
  15630. return *((Interop::Color *) &(_target->GetColor (corner)));
  15631. }
  15632. DllExport int
  15633. UIElement_GetPriority (Urho3D::UIElement *_target)
  15634. {
  15635. return _target->GetPriority ();
  15636. }
  15637. DllExport float
  15638. UIElement_GetOpacity (Urho3D::UIElement *_target)
  15639. {
  15640. return _target->GetOpacity ();
  15641. }
  15642. DllExport float
  15643. UIElement_GetDerivedOpacity (Urho3D::UIElement *_target)
  15644. {
  15645. return _target->GetDerivedOpacity ();
  15646. }
  15647. DllExport int
  15648. UIElement_GetBringToFront (Urho3D::UIElement *_target)
  15649. {
  15650. return _target->GetBringToFront ();
  15651. }
  15652. DllExport int
  15653. UIElement_GetBringToBack (Urho3D::UIElement *_target)
  15654. {
  15655. return _target->GetBringToBack ();
  15656. }
  15657. DllExport int
  15658. UIElement_GetClipChildren (Urho3D::UIElement *_target)
  15659. {
  15660. return _target->GetClipChildren ();
  15661. }
  15662. DllExport int
  15663. UIElement_GetSortChildren (Urho3D::UIElement *_target)
  15664. {
  15665. return _target->GetSortChildren ();
  15666. }
  15667. DllExport int
  15668. UIElement_GetUseDerivedOpacity (Urho3D::UIElement *_target)
  15669. {
  15670. return _target->GetUseDerivedOpacity ();
  15671. }
  15672. DllExport int
  15673. UIElement_HasFocus (Urho3D::UIElement *_target)
  15674. {
  15675. return _target->HasFocus ();
  15676. }
  15677. DllExport int
  15678. UIElement_IsEnabled (Urho3D::UIElement *_target)
  15679. {
  15680. return _target->IsEnabled ();
  15681. }
  15682. DllExport int
  15683. UIElement_IsEnabledSelf (Urho3D::UIElement *_target)
  15684. {
  15685. return _target->IsEnabledSelf ();
  15686. }
  15687. DllExport int
  15688. UIElement_IsEditable (Urho3D::UIElement *_target)
  15689. {
  15690. return _target->IsEditable ();
  15691. }
  15692. DllExport int
  15693. UIElement_IsSelected (Urho3D::UIElement *_target)
  15694. {
  15695. return _target->IsSelected ();
  15696. }
  15697. DllExport int
  15698. UIElement_IsVisible (Urho3D::UIElement *_target)
  15699. {
  15700. return _target->IsVisible ();
  15701. }
  15702. DllExport int
  15703. UIElement_IsVisibleEffective (Urho3D::UIElement *_target)
  15704. {
  15705. return _target->IsVisibleEffective ();
  15706. }
  15707. DllExport int
  15708. UIElement_IsHovering (Urho3D::UIElement *_target)
  15709. {
  15710. return _target->IsHovering ();
  15711. }
  15712. DllExport int
  15713. UIElement_IsInternal (Urho3D::UIElement *_target)
  15714. {
  15715. return _target->IsInternal ();
  15716. }
  15717. DllExport int
  15718. UIElement_HasColorGradient (Urho3D::UIElement *_target)
  15719. {
  15720. return _target->HasColorGradient ();
  15721. }
  15722. DllExport enum Urho3D::FocusMode
  15723. UIElement_GetFocusMode (Urho3D::UIElement *_target)
  15724. {
  15725. return _target->GetFocusMode ();
  15726. }
  15727. DllExport unsigned int
  15728. UIElement_GetDragDropMode (Urho3D::UIElement *_target)
  15729. {
  15730. return _target->GetDragDropMode ();
  15731. }
  15732. DllExport const char *
  15733. UIElement_GetAppliedStyle (Urho3D::UIElement *_target)
  15734. {
  15735. return stringdup((_target->GetAppliedStyle ()).CString ());
  15736. }
  15737. DllExport Urho3D::XMLFile *
  15738. UIElement_GetDefaultStyle (Urho3D::UIElement *_target, bool recursiveUp)
  15739. {
  15740. return _target->GetDefaultStyle (recursiveUp);
  15741. }
  15742. DllExport enum Urho3D::LayoutMode
  15743. UIElement_GetLayoutMode (Urho3D::UIElement *_target)
  15744. {
  15745. return _target->GetLayoutMode ();
  15746. }
  15747. DllExport int
  15748. UIElement_GetLayoutSpacing (Urho3D::UIElement *_target)
  15749. {
  15750. return _target->GetLayoutSpacing ();
  15751. }
  15752. DllExport Interop::IntRect
  15753. UIElement_GetLayoutBorder (Urho3D::UIElement *_target)
  15754. {
  15755. return *((Interop::IntRect *) &(_target->GetLayoutBorder ()));
  15756. }
  15757. DllExport Interop::Vector2
  15758. UIElement_GetLayoutFlexScale (Urho3D::UIElement *_target)
  15759. {
  15760. return *((Interop::Vector2 *) &(_target->GetLayoutFlexScale ()));
  15761. }
  15762. DllExport unsigned int
  15763. UIElement_GetNumChildren (Urho3D::UIElement *_target, bool recursive)
  15764. {
  15765. return _target->GetNumChildren (recursive);
  15766. }
  15767. DllExport Urho3D::UIElement *
  15768. UIElement_GetChild (Urho3D::UIElement *_target, unsigned int index)
  15769. {
  15770. return _target->GetChild (index);
  15771. }
  15772. DllExport Urho3D::UIElement *
  15773. UIElement_GetChild13 (Urho3D::UIElement *_target, const char * name, bool recursive)
  15774. {
  15775. return _target->GetChild (Urho3D::String(name), recursive);
  15776. }
  15777. DllExport const Vector<SharedPtr<class Urho3D::UIElement> > &
  15778. UIElement_GetChildren (Urho3D::UIElement *_target)
  15779. {
  15780. return _target->GetChildren ();
  15781. }
  15782. DllExport Urho3D::UIElement *
  15783. UIElement_GetParent (Urho3D::UIElement *_target)
  15784. {
  15785. return _target->GetParent ();
  15786. }
  15787. DllExport Urho3D::UIElement *
  15788. UIElement_GetRoot (Urho3D::UIElement *_target)
  15789. {
  15790. return _target->GetRoot ();
  15791. }
  15792. DllExport Interop::Color
  15793. UIElement_GetDerivedColor (Urho3D::UIElement *_target)
  15794. {
  15795. return *((Interop::Color *) &(_target->GetDerivedColor ()));
  15796. }
  15797. DllExport int
  15798. UIElement_HasTag (Urho3D::UIElement *_target, const char * tag)
  15799. {
  15800. return _target->HasTag (Urho3D::String(tag));
  15801. }
  15802. DllExport int
  15803. UIElement_GetDragButtonCombo (Urho3D::UIElement *_target)
  15804. {
  15805. return _target->GetDragButtonCombo ();
  15806. }
  15807. DllExport unsigned int
  15808. UIElement_GetDragButtonCount (Urho3D::UIElement *_target)
  15809. {
  15810. return _target->GetDragButtonCount ();
  15811. }
  15812. DllExport int
  15813. UIElement_IsInside (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & position, bool isScreen)
  15814. {
  15815. return _target->IsInside (position, isScreen);
  15816. }
  15817. DllExport int
  15818. UIElement_IsInsideCombined (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & position, bool isScreen)
  15819. {
  15820. return _target->IsInsideCombined (position, isScreen);
  15821. }
  15822. DllExport Interop::IntRect
  15823. UIElement_GetCombinedScreenRect (Urho3D::UIElement *_target)
  15824. {
  15825. return *((Interop::IntRect *) &(_target->GetCombinedScreenRect ()));
  15826. }
  15827. DllExport void
  15828. UIElement_SortChildren (Urho3D::UIElement *_target)
  15829. {
  15830. _target->SortChildren ();
  15831. }
  15832. DllExport int
  15833. UIElement_GetLayoutElementMaxSize (Urho3D::UIElement *_target)
  15834. {
  15835. return _target->GetLayoutElementMaxSize ();
  15836. }
  15837. DllExport int
  15838. UIElement_GetIndent (Urho3D::UIElement *_target)
  15839. {
  15840. return _target->GetIndent ();
  15841. }
  15842. DllExport int
  15843. UIElement_GetIndentSpacing (Urho3D::UIElement *_target)
  15844. {
  15845. return _target->GetIndentSpacing ();
  15846. }
  15847. DllExport int
  15848. UIElement_GetIndentWidth (Urho3D::UIElement *_target)
  15849. {
  15850. return _target->GetIndentWidth ();
  15851. }
  15852. DllExport void
  15853. UIElement_SetChildOffset (Urho3D::UIElement *_target, const class Urho3D::IntVector2 & offset)
  15854. {
  15855. _target->SetChildOffset (offset);
  15856. }
  15857. DllExport void
  15858. UIElement_SetHovering (Urho3D::UIElement *_target, bool enable)
  15859. {
  15860. _target->SetHovering (enable);
  15861. }
  15862. DllExport Interop::Color
  15863. UIElement_GetColorAttr (Urho3D::UIElement *_target)
  15864. {
  15865. return *((Interop::Color *) &(_target->GetColorAttr ()));
  15866. }
  15867. DllExport enum Urho3D::TraversalMode
  15868. UIElement_GetTraversalMode (Urho3D::UIElement *_target)
  15869. {
  15870. return _target->GetTraversalMode ();
  15871. }
  15872. DllExport int
  15873. UIElement_IsElementEventSender (Urho3D::UIElement *_target)
  15874. {
  15875. return _target->IsElementEventSender ();
  15876. }
  15877. DllExport Urho3D::UIElement *
  15878. UIElement_GetElementEventSender (Urho3D::UIElement *_target)
  15879. {
  15880. return _target->GetElementEventSender ();
  15881. }
  15882. DllExport Interop::IntVector2
  15883. UIElement_GetEffectiveMinSize (Urho3D::UIElement *_target)
  15884. {
  15885. return *((Interop::IntVector2 *) &(_target->GetEffectiveMinSize ()));
  15886. }
  15887. DllExport int
  15888. BorderImage_GetType (Urho3D::BorderImage *_target)
  15889. {
  15890. return (_target->GetType ()).Value ();
  15891. }
  15892. DllExport const char *
  15893. BorderImage_GetTypeName (Urho3D::BorderImage *_target)
  15894. {
  15895. return stringdup((_target->GetTypeName ()).CString ());
  15896. }
  15897. DllExport int
  15898. BorderImage_GetTypeStatic ()
  15899. {
  15900. return (BorderImage::GetTypeStatic ()).Value ();
  15901. }
  15902. DllExport const char *
  15903. BorderImage_GetTypeNameStatic ()
  15904. {
  15905. return stringdup((BorderImage::GetTypeNameStatic ()).CString ());
  15906. }
  15907. DllExport void *
  15908. BorderImage_BorderImage (Urho3D::Context * context)
  15909. {
  15910. return WeakPtr<BorderImage>(new BorderImage(context));
  15911. }
  15912. DllExport void
  15913. BorderImage_RegisterObject (Urho3D::Context * context)
  15914. {
  15915. BorderImage::RegisterObject (context);
  15916. }
  15917. DllExport void
  15918. BorderImage_SetTexture (Urho3D::BorderImage *_target, Urho3D::Texture * texture)
  15919. {
  15920. _target->SetTexture (texture);
  15921. }
  15922. DllExport void
  15923. BorderImage_SetImageRect (Urho3D::BorderImage *_target, const class Urho3D::IntRect & rect)
  15924. {
  15925. _target->SetImageRect (rect);
  15926. }
  15927. DllExport void
  15928. BorderImage_SetFullImageRect (Urho3D::BorderImage *_target)
  15929. {
  15930. _target->SetFullImageRect ();
  15931. }
  15932. DllExport void
  15933. BorderImage_SetBorder (Urho3D::BorderImage *_target, const class Urho3D::IntRect & rect)
  15934. {
  15935. _target->SetBorder (rect);
  15936. }
  15937. DllExport void
  15938. BorderImage_SetImageBorder (Urho3D::BorderImage *_target, const class Urho3D::IntRect & rect)
  15939. {
  15940. _target->SetImageBorder (rect);
  15941. }
  15942. DllExport void
  15943. BorderImage_SetHoverOffset (Urho3D::BorderImage *_target, const class Urho3D::IntVector2 & offset)
  15944. {
  15945. _target->SetHoverOffset (offset);
  15946. }
  15947. DllExport void
  15948. BorderImage_SetHoverOffset0 (Urho3D::BorderImage *_target, int x, int y)
  15949. {
  15950. _target->SetHoverOffset (x, y);
  15951. }
  15952. DllExport void
  15953. BorderImage_SetBlendMode (Urho3D::BorderImage *_target, enum Urho3D::BlendMode mode)
  15954. {
  15955. _target->SetBlendMode (mode);
  15956. }
  15957. DllExport void
  15958. BorderImage_SetTiled (Urho3D::BorderImage *_target, bool enable)
  15959. {
  15960. _target->SetTiled (enable);
  15961. }
  15962. DllExport Urho3D::Texture *
  15963. BorderImage_GetTexture (Urho3D::BorderImage *_target)
  15964. {
  15965. return _target->GetTexture ();
  15966. }
  15967. DllExport Interop::IntRect
  15968. BorderImage_GetImageRect (Urho3D::BorderImage *_target)
  15969. {
  15970. return *((Interop::IntRect *) &(_target->GetImageRect ()));
  15971. }
  15972. DllExport Interop::IntRect
  15973. BorderImage_GetBorder (Urho3D::BorderImage *_target)
  15974. {
  15975. return *((Interop::IntRect *) &(_target->GetBorder ()));
  15976. }
  15977. DllExport Interop::IntRect
  15978. BorderImage_GetImageBorder (Urho3D::BorderImage *_target)
  15979. {
  15980. return *((Interop::IntRect *) &(_target->GetImageBorder ()));
  15981. }
  15982. DllExport Interop::IntVector2
  15983. BorderImage_GetHoverOffset (Urho3D::BorderImage *_target)
  15984. {
  15985. return *((Interop::IntVector2 *) &(_target->GetHoverOffset ()));
  15986. }
  15987. DllExport enum Urho3D::BlendMode
  15988. BorderImage_GetBlendMode (Urho3D::BorderImage *_target)
  15989. {
  15990. return _target->GetBlendMode ();
  15991. }
  15992. DllExport int
  15993. BorderImage_IsTiled (Urho3D::BorderImage *_target)
  15994. {
  15995. return _target->IsTiled ();
  15996. }
  15997. DllExport Urho3D::ResourceRef
  15998. BorderImage_GetTextureAttr (Urho3D::BorderImage *_target)
  15999. {
  16000. return _target->GetTextureAttr ();
  16001. }
  16002. DllExport int
  16003. Cursor_GetType (Urho3D::Cursor *_target)
  16004. {
  16005. return (_target->GetType ()).Value ();
  16006. }
  16007. DllExport const char *
  16008. Cursor_GetTypeName (Urho3D::Cursor *_target)
  16009. {
  16010. return stringdup((_target->GetTypeName ()).CString ());
  16011. }
  16012. DllExport int
  16013. Cursor_GetTypeStatic ()
  16014. {
  16015. return (Cursor::GetTypeStatic ()).Value ();
  16016. }
  16017. DllExport const char *
  16018. Cursor_GetTypeNameStatic ()
  16019. {
  16020. return stringdup((Cursor::GetTypeNameStatic ()).CString ());
  16021. }
  16022. DllExport void *
  16023. Cursor_Cursor (Urho3D::Context * context)
  16024. {
  16025. return WeakPtr<Cursor>(new Cursor(context));
  16026. }
  16027. DllExport void
  16028. Cursor_RegisterObject (Urho3D::Context * context)
  16029. {
  16030. Cursor::RegisterObject (context);
  16031. }
  16032. DllExport void
  16033. Cursor_DefineShape (Urho3D::Cursor *_target, const char * shape, Urho3D::Image * image, const class Urho3D::IntRect & imageRect, const class Urho3D::IntVector2 & hotSpot)
  16034. {
  16035. _target->DefineShape (Urho3D::String(shape), image, imageRect, hotSpot);
  16036. }
  16037. DllExport void
  16038. Cursor_DefineShape0 (Urho3D::Cursor *_target, enum Urho3D::CursorShape shape, Urho3D::Image * image, const class Urho3D::IntRect & imageRect, const class Urho3D::IntVector2 & hotSpot)
  16039. {
  16040. _target->DefineShape (shape, image, imageRect, hotSpot);
  16041. }
  16042. DllExport void
  16043. Cursor_SetShape (Urho3D::Cursor *_target, const char * shape)
  16044. {
  16045. _target->SetShape (Urho3D::String(shape));
  16046. }
  16047. DllExport void
  16048. Cursor_SetShape1 (Urho3D::Cursor *_target, enum Urho3D::CursorShape shape)
  16049. {
  16050. _target->SetShape (shape);
  16051. }
  16052. DllExport void
  16053. Cursor_SetUseSystemShapes (Urho3D::Cursor *_target, bool enable)
  16054. {
  16055. _target->SetUseSystemShapes (enable);
  16056. }
  16057. DllExport const char *
  16058. Cursor_GetShape (Urho3D::Cursor *_target)
  16059. {
  16060. return stringdup((_target->GetShape ()).CString ());
  16061. }
  16062. DllExport int
  16063. Cursor_GetUseSystemShapes (Urho3D::Cursor *_target)
  16064. {
  16065. return _target->GetUseSystemShapes ();
  16066. }
  16067. DllExport void
  16068. Cursor_ApplyOSCursorShape (Urho3D::Cursor *_target)
  16069. {
  16070. _target->ApplyOSCursorShape ();
  16071. }
  16072. DllExport int
  16073. Input_GetType (Urho3D::Input *_target)
  16074. {
  16075. return (_target->GetType ()).Value ();
  16076. }
  16077. DllExport const char *
  16078. Input_GetTypeName (Urho3D::Input *_target)
  16079. {
  16080. return stringdup((_target->GetTypeName ()).CString ());
  16081. }
  16082. DllExport int
  16083. Input_GetTypeStatic ()
  16084. {
  16085. return (Input::GetTypeStatic ()).Value ();
  16086. }
  16087. DllExport const char *
  16088. Input_GetTypeNameStatic ()
  16089. {
  16090. return stringdup((Input::GetTypeNameStatic ()).CString ());
  16091. }
  16092. DllExport void *
  16093. Input_Input (Urho3D::Context * context)
  16094. {
  16095. return WeakPtr<Input>(new Input(context));
  16096. }
  16097. DllExport void
  16098. Input_Update (Urho3D::Input *_target)
  16099. {
  16100. _target->Update ();
  16101. }
  16102. DllExport void
  16103. Input_SetToggleFullscreen (Urho3D::Input *_target, bool enable)
  16104. {
  16105. _target->SetToggleFullscreen (enable);
  16106. }
  16107. DllExport void
  16108. Input_SetMouseVisible (Urho3D::Input *_target, bool enable, bool suppressEvent)
  16109. {
  16110. _target->SetMouseVisible (enable, suppressEvent);
  16111. }
  16112. DllExport void
  16113. Input_ResetMouseVisible (Urho3D::Input *_target)
  16114. {
  16115. _target->ResetMouseVisible ();
  16116. }
  16117. DllExport void
  16118. Input_SetMouseGrabbed (Urho3D::Input *_target, bool grab, bool suppressEvent)
  16119. {
  16120. _target->SetMouseGrabbed (grab, suppressEvent);
  16121. }
  16122. DllExport void
  16123. Input_ResetMouseGrabbed (Urho3D::Input *_target)
  16124. {
  16125. _target->ResetMouseGrabbed ();
  16126. }
  16127. DllExport void
  16128. Input_SetMouseMode (Urho3D::Input *_target, enum Urho3D::MouseMode mode, bool suppressEvent)
  16129. {
  16130. _target->SetMouseMode (mode, suppressEvent);
  16131. }
  16132. DllExport void
  16133. Input_ResetMouseMode (Urho3D::Input *_target)
  16134. {
  16135. _target->ResetMouseMode ();
  16136. }
  16137. DllExport SDL_JoystickID
  16138. Input_AddScreenJoystick (Urho3D::Input *_target, Urho3D::XMLFile * layoutFile, Urho3D::XMLFile * styleFile)
  16139. {
  16140. return _target->AddScreenJoystick (layoutFile, styleFile);
  16141. }
  16142. DllExport int
  16143. Input_RemoveScreenJoystick (Urho3D::Input *_target, SDL_JoystickID id)
  16144. {
  16145. return _target->RemoveScreenJoystick (id);
  16146. }
  16147. DllExport void
  16148. Input_SetScreenJoystickVisible (Urho3D::Input *_target, SDL_JoystickID id, bool enable)
  16149. {
  16150. _target->SetScreenJoystickVisible (id, enable);
  16151. }
  16152. DllExport void
  16153. Input_SetScreenKeyboardVisible (Urho3D::Input *_target, bool enable)
  16154. {
  16155. _target->SetScreenKeyboardVisible (enable);
  16156. }
  16157. DllExport void
  16158. Input_SetTouchEmulation (Urho3D::Input *_target, bool enable)
  16159. {
  16160. _target->SetTouchEmulation (enable);
  16161. }
  16162. DllExport void
  16163. Input_SetEnabled (Urho3D::Input *_target, bool enable)
  16164. {
  16165. _target->SetEnabled (enable);
  16166. }
  16167. DllExport int
  16168. Input_RecordGesture (Urho3D::Input *_target)
  16169. {
  16170. return _target->RecordGesture ();
  16171. }
  16172. DllExport int
  16173. Input_SaveGestures_File (Urho3D::Input *_target, File * dest)
  16174. {
  16175. return _target->SaveGestures (*dest);
  16176. }
  16177. DllExport int
  16178. Input_SaveGestures_MemoryBuffer (Urho3D::Input *_target, MemoryBuffer * dest)
  16179. {
  16180. return _target->SaveGestures (*dest);
  16181. }
  16182. DllExport int
  16183. Input_SaveGesture_File (Urho3D::Input *_target, File * dest, unsigned int gestureID)
  16184. {
  16185. return _target->SaveGesture (*dest, gestureID);
  16186. }
  16187. DllExport int
  16188. Input_SaveGesture_MemoryBuffer (Urho3D::Input *_target, MemoryBuffer * dest, unsigned int gestureID)
  16189. {
  16190. return _target->SaveGesture (*dest, gestureID);
  16191. }
  16192. DllExport unsigned int
  16193. Input_LoadGestures_File (Urho3D::Input *_target, File * source)
  16194. {
  16195. return _target->LoadGestures (*source);
  16196. }
  16197. DllExport unsigned int
  16198. Input_LoadGestures_MemoryBuffer (Urho3D::Input *_target, MemoryBuffer * source)
  16199. {
  16200. return _target->LoadGestures (*source);
  16201. }
  16202. DllExport int
  16203. Input_RemoveGesture (Urho3D::Input *_target, unsigned int gestureID)
  16204. {
  16205. return _target->RemoveGesture (gestureID);
  16206. }
  16207. DllExport void
  16208. Input_RemoveAllGestures (Urho3D::Input *_target)
  16209. {
  16210. _target->RemoveAllGestures ();
  16211. }
  16212. DllExport void
  16213. Input_SetMousePosition (Urho3D::Input *_target, const class Urho3D::IntVector2 & position)
  16214. {
  16215. _target->SetMousePosition (position);
  16216. }
  16217. DllExport void
  16218. Input_CenterMousePosition (Urho3D::Input *_target)
  16219. {
  16220. _target->CenterMousePosition ();
  16221. }
  16222. DllExport int
  16223. Input_GetKeyFromName (Urho3D::Input *_target, const char * name)
  16224. {
  16225. return _target->GetKeyFromName (Urho3D::String(name));
  16226. }
  16227. DllExport int
  16228. Input_GetKeyFromScancode (Urho3D::Input *_target, int scancode)
  16229. {
  16230. return _target->GetKeyFromScancode (scancode);
  16231. }
  16232. DllExport const char *
  16233. Input_GetKeyName (Urho3D::Input *_target, int key)
  16234. {
  16235. return stringdup((_target->GetKeyName (key)).CString ());
  16236. }
  16237. DllExport int
  16238. Input_GetScancodeFromKey (Urho3D::Input *_target, int key)
  16239. {
  16240. return _target->GetScancodeFromKey (key);
  16241. }
  16242. DllExport int
  16243. Input_GetScancodeFromName (Urho3D::Input *_target, const char * name)
  16244. {
  16245. return _target->GetScancodeFromName (Urho3D::String(name));
  16246. }
  16247. DllExport const char *
  16248. Input_GetScancodeName (Urho3D::Input *_target, int scancode)
  16249. {
  16250. return stringdup((_target->GetScancodeName (scancode)).CString ());
  16251. }
  16252. DllExport int
  16253. Input_GetKeyDown (Urho3D::Input *_target, int key)
  16254. {
  16255. return _target->GetKeyDown (key);
  16256. }
  16257. DllExport int
  16258. Input_GetKeyPress (Urho3D::Input *_target, int key)
  16259. {
  16260. return _target->GetKeyPress (key);
  16261. }
  16262. DllExport int
  16263. Input_GetScancodeDown (Urho3D::Input *_target, int scancode)
  16264. {
  16265. return _target->GetScancodeDown (scancode);
  16266. }
  16267. DllExport int
  16268. Input_GetScancodePress (Urho3D::Input *_target, int scancode)
  16269. {
  16270. return _target->GetScancodePress (scancode);
  16271. }
  16272. DllExport int
  16273. Input_GetMouseButtonDown (Urho3D::Input *_target, int button)
  16274. {
  16275. return _target->GetMouseButtonDown (button);
  16276. }
  16277. DllExport int
  16278. Input_GetMouseButtonPress (Urho3D::Input *_target, int button)
  16279. {
  16280. return _target->GetMouseButtonPress (button);
  16281. }
  16282. DllExport int
  16283. Input_GetQualifierDown (Urho3D::Input *_target, int qualifier)
  16284. {
  16285. return _target->GetQualifierDown (qualifier);
  16286. }
  16287. DllExport int
  16288. Input_GetQualifierPress (Urho3D::Input *_target, int qualifier)
  16289. {
  16290. return _target->GetQualifierPress (qualifier);
  16291. }
  16292. DllExport int
  16293. Input_GetQualifiers (Urho3D::Input *_target)
  16294. {
  16295. return _target->GetQualifiers ();
  16296. }
  16297. DllExport Interop::IntVector2
  16298. Input_GetMousePosition (Urho3D::Input *_target)
  16299. {
  16300. return *((Interop::IntVector2 *) &(_target->GetMousePosition ()));
  16301. }
  16302. DllExport Interop::IntVector2
  16303. Input_GetMouseMove (Urho3D::Input *_target)
  16304. {
  16305. return *((Interop::IntVector2 *) &(_target->GetMouseMove ()));
  16306. }
  16307. DllExport int
  16308. Input_GetMouseMoveX (Urho3D::Input *_target)
  16309. {
  16310. return _target->GetMouseMoveX ();
  16311. }
  16312. DllExport int
  16313. Input_GetMouseMoveY (Urho3D::Input *_target)
  16314. {
  16315. return _target->GetMouseMoveY ();
  16316. }
  16317. DllExport int
  16318. Input_GetMouseMoveWheel (Urho3D::Input *_target)
  16319. {
  16320. return _target->GetMouseMoveWheel ();
  16321. }
  16322. DllExport Interop::Vector2
  16323. Input_GetInputScale (Urho3D::Input *_target)
  16324. {
  16325. return *((Interop::Vector2 *) &(_target->GetInputScale ()));
  16326. }
  16327. DllExport unsigned int
  16328. Input_GetNumTouches (Urho3D::Input *_target)
  16329. {
  16330. return _target->GetNumTouches ();
  16331. }
  16332. DllExport Urho3D::TouchState *
  16333. Input_GetTouch (Urho3D::Input *_target, unsigned int index)
  16334. {
  16335. return _target->GetTouch (index);
  16336. }
  16337. DllExport unsigned int
  16338. Input_GetNumJoysticks (Urho3D::Input *_target)
  16339. {
  16340. return _target->GetNumJoysticks ();
  16341. }
  16342. DllExport Urho3D::JoystickState *
  16343. Input_GetJoystick (Urho3D::Input *_target, SDL_JoystickID id)
  16344. {
  16345. return _target->GetJoystick (id);
  16346. }
  16347. DllExport Urho3D::JoystickState *
  16348. Input_GetJoystickByIndex (Urho3D::Input *_target, unsigned int index)
  16349. {
  16350. return _target->GetJoystickByIndex (index);
  16351. }
  16352. DllExport Urho3D::JoystickState *
  16353. Input_GetJoystickByName (Urho3D::Input *_target, const char * name)
  16354. {
  16355. return _target->GetJoystickByName (Urho3D::String(name));
  16356. }
  16357. DllExport int
  16358. Input_GetToggleFullscreen (Urho3D::Input *_target)
  16359. {
  16360. return _target->GetToggleFullscreen ();
  16361. }
  16362. DllExport int
  16363. Input_IsScreenJoystickVisible (Urho3D::Input *_target, SDL_JoystickID id)
  16364. {
  16365. return _target->IsScreenJoystickVisible (id);
  16366. }
  16367. DllExport int
  16368. Input_GetScreenKeyboardSupport (Urho3D::Input *_target)
  16369. {
  16370. return _target->GetScreenKeyboardSupport ();
  16371. }
  16372. DllExport int
  16373. Input_IsScreenKeyboardVisible (Urho3D::Input *_target)
  16374. {
  16375. return _target->IsScreenKeyboardVisible ();
  16376. }
  16377. DllExport int
  16378. Input_GetTouchEmulation (Urho3D::Input *_target)
  16379. {
  16380. return _target->GetTouchEmulation ();
  16381. }
  16382. DllExport int
  16383. Input_IsMouseVisible (Urho3D::Input *_target)
  16384. {
  16385. return _target->IsMouseVisible ();
  16386. }
  16387. DllExport int
  16388. Input_IsMouseGrabbed (Urho3D::Input *_target)
  16389. {
  16390. return _target->IsMouseGrabbed ();
  16391. }
  16392. DllExport int
  16393. Input_IsMouseLocked (Urho3D::Input *_target)
  16394. {
  16395. return _target->IsMouseLocked ();
  16396. }
  16397. DllExport enum Urho3D::MouseMode
  16398. Input_GetMouseMode (Urho3D::Input *_target)
  16399. {
  16400. return _target->GetMouseMode ();
  16401. }
  16402. DllExport int
  16403. Input_HasFocus (Urho3D::Input *_target)
  16404. {
  16405. return _target->HasFocus ();
  16406. }
  16407. DllExport int
  16408. Input_IsEnabled (Urho3D::Input *_target)
  16409. {
  16410. return _target->IsEnabled ();
  16411. }
  16412. DllExport int
  16413. Input_IsMinimized (Urho3D::Input *_target)
  16414. {
  16415. return _target->IsMinimized ();
  16416. }
  16417. DllExport int
  16418. CrowdManager_GetType (Urho3D::CrowdManager *_target)
  16419. {
  16420. return (_target->GetType ()).Value ();
  16421. }
  16422. DllExport const char *
  16423. CrowdManager_GetTypeName (Urho3D::CrowdManager *_target)
  16424. {
  16425. return stringdup((_target->GetTypeName ()).CString ());
  16426. }
  16427. DllExport int
  16428. CrowdManager_GetTypeStatic ()
  16429. {
  16430. return (CrowdManager::GetTypeStatic ()).Value ();
  16431. }
  16432. DllExport const char *
  16433. CrowdManager_GetTypeNameStatic ()
  16434. {
  16435. return stringdup((CrowdManager::GetTypeNameStatic ()).CString ());
  16436. }
  16437. DllExport void *
  16438. CrowdManager_CrowdManager (Urho3D::Context * context)
  16439. {
  16440. return WeakPtr<CrowdManager>(new CrowdManager(context));
  16441. }
  16442. DllExport void
  16443. CrowdManager_RegisterObject (Urho3D::Context * context)
  16444. {
  16445. CrowdManager::RegisterObject (context);
  16446. }
  16447. DllExport void
  16448. CrowdManager_ApplyAttributes (Urho3D::CrowdManager *_target)
  16449. {
  16450. _target->ApplyAttributes ();
  16451. }
  16452. DllExport void
  16453. CrowdManager_DrawDebugGeometry (Urho3D::CrowdManager *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  16454. {
  16455. _target->DrawDebugGeometry (debug, depthTest);
  16456. }
  16457. DllExport void
  16458. CrowdManager_DrawDebugGeometry0 (Urho3D::CrowdManager *_target, bool depthTest)
  16459. {
  16460. _target->DrawDebugGeometry (depthTest);
  16461. }
  16462. DllExport void
  16463. CrowdManager_SetCrowdTarget (Urho3D::CrowdManager *_target, const class Urho3D::Vector3 & position, Urho3D::Node * node)
  16464. {
  16465. _target->SetCrowdTarget (position, node);
  16466. }
  16467. DllExport void
  16468. CrowdManager_SetCrowdVelocity (Urho3D::CrowdManager *_target, const class Urho3D::Vector3 & velocity, Urho3D::Node * node)
  16469. {
  16470. _target->SetCrowdVelocity (velocity, node);
  16471. }
  16472. DllExport void
  16473. CrowdManager_ResetCrowdTarget (Urho3D::CrowdManager *_target, Urho3D::Node * node)
  16474. {
  16475. _target->ResetCrowdTarget (node);
  16476. }
  16477. DllExport void
  16478. CrowdManager_SetMaxAgents (Urho3D::CrowdManager *_target, unsigned int maxAgents)
  16479. {
  16480. _target->SetMaxAgents (maxAgents);
  16481. }
  16482. DllExport void
  16483. CrowdManager_SetMaxAgentRadius (Urho3D::CrowdManager *_target, float maxAgentRadius)
  16484. {
  16485. _target->SetMaxAgentRadius (maxAgentRadius);
  16486. }
  16487. DllExport void
  16488. CrowdManager_SetNavigationMesh (Urho3D::CrowdManager *_target, Urho3D::NavigationMesh * navMesh)
  16489. {
  16490. _target->SetNavigationMesh (navMesh);
  16491. }
  16492. DllExport void
  16493. CrowdManager_SetIncludeFlags (Urho3D::CrowdManager *_target, unsigned int queryFilterType, unsigned short flags)
  16494. {
  16495. _target->SetIncludeFlags (queryFilterType, flags);
  16496. }
  16497. DllExport void
  16498. CrowdManager_SetExcludeFlags (Urho3D::CrowdManager *_target, unsigned int queryFilterType, unsigned short flags)
  16499. {
  16500. _target->SetExcludeFlags (queryFilterType, flags);
  16501. }
  16502. DllExport void
  16503. CrowdManager_SetAreaCost (Urho3D::CrowdManager *_target, unsigned int queryFilterType, unsigned int areaID, float cost)
  16504. {
  16505. _target->SetAreaCost (queryFilterType, areaID, cost);
  16506. }
  16507. DllExport void
  16508. CrowdManager_SetObstacleAvoidanceParams (Urho3D::CrowdManager *_target, unsigned int obstacleAvoidanceType, const struct Urho3D::CrowdObstacleAvoidanceParams & params)
  16509. {
  16510. _target->SetObstacleAvoidanceParams (obstacleAvoidanceType, params);
  16511. }
  16512. DllExport Interop::Vector3
  16513. CrowdManager_FindNearestPoint (Urho3D::CrowdManager *_target, const class Urho3D::Vector3 & point, int queryFilterType, dtPolyRef * nearestRef)
  16514. {
  16515. return *((Interop::Vector3 *) &(_target->FindNearestPoint (point, queryFilterType, nearestRef)));
  16516. }
  16517. DllExport Interop::Vector3
  16518. CrowdManager_MoveAlongSurface (Urho3D::CrowdManager *_target, const class Urho3D::Vector3 & start, const class Urho3D::Vector3 & end, int queryFilterType, int maxVisited)
  16519. {
  16520. return *((Interop::Vector3 *) &(_target->MoveAlongSurface (start, end, queryFilterType, maxVisited)));
  16521. }
  16522. DllExport Interop::Vector3
  16523. CrowdManager_GetRandomPoint (Urho3D::CrowdManager *_target, int queryFilterType, dtPolyRef * randomRef)
  16524. {
  16525. return *((Interop::Vector3 *) &(_target->GetRandomPoint (queryFilterType, randomRef)));
  16526. }
  16527. DllExport Interop::Vector3
  16528. CrowdManager_GetRandomPointInCircle (Urho3D::CrowdManager *_target, const class Urho3D::Vector3 & center, float radius, int queryFilterType, dtPolyRef * randomRef)
  16529. {
  16530. return *((Interop::Vector3 *) &(_target->GetRandomPointInCircle (center, radius, queryFilterType, randomRef)));
  16531. }
  16532. DllExport float
  16533. CrowdManager_GetDistanceToWall (Urho3D::CrowdManager *_target, const class Urho3D::Vector3 & point, float radius, int queryFilterType, Urho3D::Vector3 * hitPos, Urho3D::Vector3 * hitNormal)
  16534. {
  16535. return _target->GetDistanceToWall (point, radius, queryFilterType, hitPos, hitNormal);
  16536. }
  16537. DllExport Interop::Vector3
  16538. CrowdManager_Raycast (Urho3D::CrowdManager *_target, const class Urho3D::Vector3 & start, const class Urho3D::Vector3 & end, int queryFilterType, Urho3D::Vector3 * hitNormal)
  16539. {
  16540. return *((Interop::Vector3 *) &(_target->Raycast (start, end, queryFilterType, hitNormal)));
  16541. }
  16542. DllExport unsigned int
  16543. CrowdManager_GetMaxAgents (Urho3D::CrowdManager *_target)
  16544. {
  16545. return _target->GetMaxAgents ();
  16546. }
  16547. DllExport float
  16548. CrowdManager_GetMaxAgentRadius (Urho3D::CrowdManager *_target)
  16549. {
  16550. return _target->GetMaxAgentRadius ();
  16551. }
  16552. DllExport Urho3D::NavigationMesh *
  16553. CrowdManager_GetNavigationMesh (Urho3D::CrowdManager *_target)
  16554. {
  16555. return _target->GetNavigationMesh ();
  16556. }
  16557. DllExport unsigned int
  16558. CrowdManager_GetNumQueryFilterTypes (Urho3D::CrowdManager *_target)
  16559. {
  16560. return _target->GetNumQueryFilterTypes ();
  16561. }
  16562. DllExport unsigned int
  16563. CrowdManager_GetNumAreas (Urho3D::CrowdManager *_target, unsigned int queryFilterType)
  16564. {
  16565. return _target->GetNumAreas (queryFilterType);
  16566. }
  16567. DllExport unsigned short
  16568. CrowdManager_GetIncludeFlags (Urho3D::CrowdManager *_target, unsigned int queryFilterType)
  16569. {
  16570. return _target->GetIncludeFlags (queryFilterType);
  16571. }
  16572. DllExport unsigned short
  16573. CrowdManager_GetExcludeFlags (Urho3D::CrowdManager *_target, unsigned int queryFilterType)
  16574. {
  16575. return _target->GetExcludeFlags (queryFilterType);
  16576. }
  16577. DllExport float
  16578. CrowdManager_GetAreaCost (Urho3D::CrowdManager *_target, unsigned int queryFilterType, unsigned int areaID)
  16579. {
  16580. return _target->GetAreaCost (queryFilterType, areaID);
  16581. }
  16582. DllExport unsigned int
  16583. CrowdManager_GetNumObstacleAvoidanceTypes (Urho3D::CrowdManager *_target)
  16584. {
  16585. return _target->GetNumObstacleAvoidanceTypes ();
  16586. }
  16587. DllExport Urho3D::CrowdObstacleAvoidanceParams
  16588. CrowdManager_GetObstacleAvoidanceParams (Urho3D::CrowdManager *_target, unsigned int obstacleAvoidanceType)
  16589. {
  16590. return _target->GetObstacleAvoidanceParams (obstacleAvoidanceType);
  16591. }
  16592. DllExport int
  16593. CrowdAgent_GetType (Urho3D::CrowdAgent *_target)
  16594. {
  16595. return (_target->GetType ()).Value ();
  16596. }
  16597. DllExport const char *
  16598. CrowdAgent_GetTypeName (Urho3D::CrowdAgent *_target)
  16599. {
  16600. return stringdup((_target->GetTypeName ()).CString ());
  16601. }
  16602. DllExport int
  16603. CrowdAgent_GetTypeStatic ()
  16604. {
  16605. return (CrowdAgent::GetTypeStatic ()).Value ();
  16606. }
  16607. DllExport const char *
  16608. CrowdAgent_GetTypeNameStatic ()
  16609. {
  16610. return stringdup((CrowdAgent::GetTypeNameStatic ()).CString ());
  16611. }
  16612. DllExport void *
  16613. CrowdAgent_CrowdAgent (Urho3D::Context * context)
  16614. {
  16615. return WeakPtr<CrowdAgent>(new CrowdAgent(context));
  16616. }
  16617. DllExport void
  16618. CrowdAgent_RegisterObject (Urho3D::Context * context)
  16619. {
  16620. CrowdAgent::RegisterObject (context);
  16621. }
  16622. DllExport void
  16623. CrowdAgent_ApplyAttributes (Urho3D::CrowdAgent *_target)
  16624. {
  16625. _target->ApplyAttributes ();
  16626. }
  16627. DllExport void
  16628. CrowdAgent_OnSetEnabled (Urho3D::CrowdAgent *_target)
  16629. {
  16630. _target->OnSetEnabled ();
  16631. }
  16632. DllExport void
  16633. CrowdAgent_DrawDebugGeometry (Urho3D::CrowdAgent *_target, bool depthTest)
  16634. {
  16635. _target->DrawDebugGeometry (depthTest);
  16636. }
  16637. DllExport void
  16638. CrowdAgent_DrawDebugGeometry0 (Urho3D::CrowdAgent *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  16639. {
  16640. _target->DrawDebugGeometry (debug, depthTest);
  16641. }
  16642. DllExport void
  16643. CrowdAgent_SetTargetPosition (Urho3D::CrowdAgent *_target, const class Urho3D::Vector3 & position)
  16644. {
  16645. _target->SetTargetPosition (position);
  16646. }
  16647. DllExport void
  16648. CrowdAgent_SetTargetVelocity (Urho3D::CrowdAgent *_target, const class Urho3D::Vector3 & velocity)
  16649. {
  16650. _target->SetTargetVelocity (velocity);
  16651. }
  16652. DllExport void
  16653. CrowdAgent_ResetTarget (Urho3D::CrowdAgent *_target)
  16654. {
  16655. _target->ResetTarget ();
  16656. }
  16657. DllExport void
  16658. CrowdAgent_SetUpdateNodePosition (Urho3D::CrowdAgent *_target, bool unodepos)
  16659. {
  16660. _target->SetUpdateNodePosition (unodepos);
  16661. }
  16662. DllExport void
  16663. CrowdAgent_SetMaxAccel (Urho3D::CrowdAgent *_target, float maxAccel)
  16664. {
  16665. _target->SetMaxAccel (maxAccel);
  16666. }
  16667. DllExport void
  16668. CrowdAgent_SetMaxSpeed (Urho3D::CrowdAgent *_target, float maxSpeed)
  16669. {
  16670. _target->SetMaxSpeed (maxSpeed);
  16671. }
  16672. DllExport void
  16673. CrowdAgent_SetRadius (Urho3D::CrowdAgent *_target, float radius)
  16674. {
  16675. _target->SetRadius (radius);
  16676. }
  16677. DllExport void
  16678. CrowdAgent_SetHeight (Urho3D::CrowdAgent *_target, float height)
  16679. {
  16680. _target->SetHeight (height);
  16681. }
  16682. DllExport void
  16683. CrowdAgent_SetQueryFilterType (Urho3D::CrowdAgent *_target, unsigned int queryFilterType)
  16684. {
  16685. _target->SetQueryFilterType (queryFilterType);
  16686. }
  16687. DllExport void
  16688. CrowdAgent_SetObstacleAvoidanceType (Urho3D::CrowdAgent *_target, unsigned int obstacleAvoidanceType)
  16689. {
  16690. _target->SetObstacleAvoidanceType (obstacleAvoidanceType);
  16691. }
  16692. DllExport void
  16693. CrowdAgent_SetNavigationQuality (Urho3D::CrowdAgent *_target, enum Urho3D::NavigationQuality val)
  16694. {
  16695. _target->SetNavigationQuality (val);
  16696. }
  16697. DllExport void
  16698. CrowdAgent_SetNavigationPushiness (Urho3D::CrowdAgent *_target, enum Urho3D::NavigationPushiness val)
  16699. {
  16700. _target->SetNavigationPushiness (val);
  16701. }
  16702. DllExport Interop::Vector3
  16703. CrowdAgent_GetPosition (Urho3D::CrowdAgent *_target)
  16704. {
  16705. return *((Interop::Vector3 *) &(_target->GetPosition ()));
  16706. }
  16707. DllExport Interop::Vector3
  16708. CrowdAgent_GetDesiredVelocity (Urho3D::CrowdAgent *_target)
  16709. {
  16710. return *((Interop::Vector3 *) &(_target->GetDesiredVelocity ()));
  16711. }
  16712. DllExport Interop::Vector3
  16713. CrowdAgent_GetActualVelocity (Urho3D::CrowdAgent *_target)
  16714. {
  16715. return *((Interop::Vector3 *) &(_target->GetActualVelocity ()));
  16716. }
  16717. DllExport Interop::Vector3
  16718. CrowdAgent_GetTargetPosition (Urho3D::CrowdAgent *_target)
  16719. {
  16720. return *((Interop::Vector3 *) &(_target->GetTargetPosition ()));
  16721. }
  16722. DllExport Interop::Vector3
  16723. CrowdAgent_GetTargetVelocity (Urho3D::CrowdAgent *_target)
  16724. {
  16725. return *((Interop::Vector3 *) &(_target->GetTargetVelocity ()));
  16726. }
  16727. DllExport enum Urho3D::CrowdAgentRequestedTarget
  16728. CrowdAgent_GetRequestedTargetType (Urho3D::CrowdAgent *_target)
  16729. {
  16730. return _target->GetRequestedTargetType ();
  16731. }
  16732. DllExport enum Urho3D::CrowdAgentState
  16733. CrowdAgent_GetAgentState (Urho3D::CrowdAgent *_target)
  16734. {
  16735. return _target->GetAgentState ();
  16736. }
  16737. DllExport enum Urho3D::CrowdAgentTargetState
  16738. CrowdAgent_GetTargetState (Urho3D::CrowdAgent *_target)
  16739. {
  16740. return _target->GetTargetState ();
  16741. }
  16742. DllExport int
  16743. CrowdAgent_GetUpdateNodePosition (Urho3D::CrowdAgent *_target)
  16744. {
  16745. return _target->GetUpdateNodePosition ();
  16746. }
  16747. DllExport int
  16748. CrowdAgent_GetAgentCrowdId (Urho3D::CrowdAgent *_target)
  16749. {
  16750. return _target->GetAgentCrowdId ();
  16751. }
  16752. DllExport float
  16753. CrowdAgent_GetMaxAccel (Urho3D::CrowdAgent *_target)
  16754. {
  16755. return _target->GetMaxAccel ();
  16756. }
  16757. DllExport float
  16758. CrowdAgent_GetMaxSpeed (Urho3D::CrowdAgent *_target)
  16759. {
  16760. return _target->GetMaxSpeed ();
  16761. }
  16762. DllExport float
  16763. CrowdAgent_GetRadius (Urho3D::CrowdAgent *_target)
  16764. {
  16765. return _target->GetRadius ();
  16766. }
  16767. DllExport float
  16768. CrowdAgent_GetHeight (Urho3D::CrowdAgent *_target)
  16769. {
  16770. return _target->GetHeight ();
  16771. }
  16772. DllExport unsigned int
  16773. CrowdAgent_GetQueryFilterType (Urho3D::CrowdAgent *_target)
  16774. {
  16775. return _target->GetQueryFilterType ();
  16776. }
  16777. DllExport unsigned int
  16778. CrowdAgent_GetObstacleAvoidanceType (Urho3D::CrowdAgent *_target)
  16779. {
  16780. return _target->GetObstacleAvoidanceType ();
  16781. }
  16782. DllExport enum Urho3D::NavigationQuality
  16783. CrowdAgent_GetNavigationQuality (Urho3D::CrowdAgent *_target)
  16784. {
  16785. return _target->GetNavigationQuality ();
  16786. }
  16787. DllExport enum Urho3D::NavigationPushiness
  16788. CrowdAgent_GetNavigationPushiness (Urho3D::CrowdAgent *_target)
  16789. {
  16790. return _target->GetNavigationPushiness ();
  16791. }
  16792. DllExport int
  16793. CrowdAgent_HasRequestedTarget (Urho3D::CrowdAgent *_target)
  16794. {
  16795. return _target->HasRequestedTarget ();
  16796. }
  16797. DllExport int
  16798. CrowdAgent_HasArrived (Urho3D::CrowdAgent *_target)
  16799. {
  16800. return _target->HasArrived ();
  16801. }
  16802. DllExport int
  16803. CrowdAgent_IsInCrowd (Urho3D::CrowdAgent *_target)
  16804. {
  16805. return _target->IsInCrowd ();
  16806. }
  16807. DllExport int
  16808. NavigationMesh_GetType (Urho3D::NavigationMesh *_target)
  16809. {
  16810. return (_target->GetType ()).Value ();
  16811. }
  16812. DllExport const char *
  16813. NavigationMesh_GetTypeName (Urho3D::NavigationMesh *_target)
  16814. {
  16815. return stringdup((_target->GetTypeName ()).CString ());
  16816. }
  16817. DllExport int
  16818. NavigationMesh_GetTypeStatic ()
  16819. {
  16820. return (NavigationMesh::GetTypeStatic ()).Value ();
  16821. }
  16822. DllExport const char *
  16823. NavigationMesh_GetTypeNameStatic ()
  16824. {
  16825. return stringdup((NavigationMesh::GetTypeNameStatic ()).CString ());
  16826. }
  16827. DllExport void *
  16828. NavigationMesh_NavigationMesh (Urho3D::Context * context)
  16829. {
  16830. return WeakPtr<NavigationMesh>(new NavigationMesh(context));
  16831. }
  16832. DllExport void
  16833. NavigationMesh_RegisterObject (Urho3D::Context * context)
  16834. {
  16835. NavigationMesh::RegisterObject (context);
  16836. }
  16837. DllExport void
  16838. NavigationMesh_DrawDebugGeometry (Urho3D::NavigationMesh *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  16839. {
  16840. _target->DrawDebugGeometry (debug, depthTest);
  16841. }
  16842. DllExport void
  16843. NavigationMesh_SetTileSize (Urho3D::NavigationMesh *_target, int size)
  16844. {
  16845. _target->SetTileSize (size);
  16846. }
  16847. DllExport void
  16848. NavigationMesh_SetCellSize (Urho3D::NavigationMesh *_target, float size)
  16849. {
  16850. _target->SetCellSize (size);
  16851. }
  16852. DllExport void
  16853. NavigationMesh_SetCellHeight (Urho3D::NavigationMesh *_target, float height)
  16854. {
  16855. _target->SetCellHeight (height);
  16856. }
  16857. DllExport void
  16858. NavigationMesh_SetAgentHeight (Urho3D::NavigationMesh *_target, float height)
  16859. {
  16860. _target->SetAgentHeight (height);
  16861. }
  16862. DllExport void
  16863. NavigationMesh_SetAgentRadius (Urho3D::NavigationMesh *_target, float radius)
  16864. {
  16865. _target->SetAgentRadius (radius);
  16866. }
  16867. DllExport void
  16868. NavigationMesh_SetAgentMaxClimb (Urho3D::NavigationMesh *_target, float maxClimb)
  16869. {
  16870. _target->SetAgentMaxClimb (maxClimb);
  16871. }
  16872. DllExport void
  16873. NavigationMesh_SetAgentMaxSlope (Urho3D::NavigationMesh *_target, float maxSlope)
  16874. {
  16875. _target->SetAgentMaxSlope (maxSlope);
  16876. }
  16877. DllExport void
  16878. NavigationMesh_SetRegionMinSize (Urho3D::NavigationMesh *_target, float size)
  16879. {
  16880. _target->SetRegionMinSize (size);
  16881. }
  16882. DllExport void
  16883. NavigationMesh_SetRegionMergeSize (Urho3D::NavigationMesh *_target, float size)
  16884. {
  16885. _target->SetRegionMergeSize (size);
  16886. }
  16887. DllExport void
  16888. NavigationMesh_SetEdgeMaxLength (Urho3D::NavigationMesh *_target, float length)
  16889. {
  16890. _target->SetEdgeMaxLength (length);
  16891. }
  16892. DllExport void
  16893. NavigationMesh_SetEdgeMaxError (Urho3D::NavigationMesh *_target, float error)
  16894. {
  16895. _target->SetEdgeMaxError (error);
  16896. }
  16897. DllExport void
  16898. NavigationMesh_SetDetailSampleDistance (Urho3D::NavigationMesh *_target, float distance)
  16899. {
  16900. _target->SetDetailSampleDistance (distance);
  16901. }
  16902. DllExport void
  16903. NavigationMesh_SetDetailSampleMaxError (Urho3D::NavigationMesh *_target, float error)
  16904. {
  16905. _target->SetDetailSampleMaxError (error);
  16906. }
  16907. DllExport void
  16908. NavigationMesh_SetPadding (Urho3D::NavigationMesh *_target, const class Urho3D::Vector3 & padding)
  16909. {
  16910. _target->SetPadding (padding);
  16911. }
  16912. DllExport void
  16913. NavigationMesh_SetAreaCost (Urho3D::NavigationMesh *_target, unsigned int areaID, float cost)
  16914. {
  16915. _target->SetAreaCost (areaID, cost);
  16916. }
  16917. DllExport int
  16918. NavigationMesh_Allocate (Urho3D::NavigationMesh *_target, const class Urho3D::BoundingBox & boundingBox, unsigned int maxTiles)
  16919. {
  16920. return _target->Allocate (boundingBox, maxTiles);
  16921. }
  16922. DllExport int
  16923. NavigationMesh_Build (Urho3D::NavigationMesh *_target)
  16924. {
  16925. return _target->Build ();
  16926. }
  16927. DllExport int
  16928. NavigationMesh_Build0 (Urho3D::NavigationMesh *_target, const class Urho3D::BoundingBox & boundingBox)
  16929. {
  16930. return _target->Build (boundingBox);
  16931. }
  16932. DllExport int
  16933. NavigationMesh_Build1 (Urho3D::NavigationMesh *_target, const class Urho3D::IntVector2 & from, const class Urho3D::IntVector2 & to)
  16934. {
  16935. return _target->Build (from, to);
  16936. }
  16937. DllExport void
  16938. NavigationMesh_RemoveTile (Urho3D::NavigationMesh *_target, const class Urho3D::IntVector2 & tile)
  16939. {
  16940. _target->RemoveTile (tile);
  16941. }
  16942. DllExport void
  16943. NavigationMesh_RemoveAllTiles (Urho3D::NavigationMesh *_target)
  16944. {
  16945. _target->RemoveAllTiles ();
  16946. }
  16947. DllExport int
  16948. NavigationMesh_HasTile (Urho3D::NavigationMesh *_target, const class Urho3D::IntVector2 & tile)
  16949. {
  16950. return _target->HasTile (tile);
  16951. }
  16952. DllExport Interop::BoundingBox
  16953. NavigationMesh_GetTileBoudningBox (Urho3D::NavigationMesh *_target, const class Urho3D::IntVector2 & tile)
  16954. {
  16955. return *((Interop::BoundingBox *) &(_target->GetTileBoudningBox (tile)));
  16956. }
  16957. DllExport Interop::IntVector2
  16958. NavigationMesh_GetTileIndex (Urho3D::NavigationMesh *_target, const class Urho3D::Vector3 & position)
  16959. {
  16960. return *((Interop::IntVector2 *) &(_target->GetTileIndex (position)));
  16961. }
  16962. DllExport Interop::Vector3
  16963. NavigationMesh_FindNearestPoint (Urho3D::NavigationMesh *_target, const class Urho3D::Vector3 & point, const class Urho3D::Vector3 & extents, const class dtQueryFilter * filter, dtPolyRef * nearestRef)
  16964. {
  16965. return *((Interop::Vector3 *) &(_target->FindNearestPoint (point, extents, filter, nearestRef)));
  16966. }
  16967. DllExport Interop::Vector3
  16968. 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)
  16969. {
  16970. return *((Interop::Vector3 *) &(_target->MoveAlongSurface (start, end, extents, maxVisited, filter)));
  16971. }
  16972. DllExport Interop::Vector3
  16973. NavigationMesh_GetRandomPoint (Urho3D::NavigationMesh *_target, const class dtQueryFilter * filter, dtPolyRef * randomRef)
  16974. {
  16975. return *((Interop::Vector3 *) &(_target->GetRandomPoint (filter, randomRef)));
  16976. }
  16977. DllExport Interop::Vector3
  16978. NavigationMesh_GetRandomPointInCircle (Urho3D::NavigationMesh *_target, const class Urho3D::Vector3 & center, float radius, const class Urho3D::Vector3 & extents, const class dtQueryFilter * filter, dtPolyRef * randomRef)
  16979. {
  16980. return *((Interop::Vector3 *) &(_target->GetRandomPointInCircle (center, radius, extents, filter, randomRef)));
  16981. }
  16982. DllExport float
  16983. 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)
  16984. {
  16985. return _target->GetDistanceToWall (point, radius, extents, filter, hitPos, hitNormal);
  16986. }
  16987. DllExport Interop::Vector3
  16988. 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)
  16989. {
  16990. return *((Interop::Vector3 *) &(_target->Raycast (start, end, extents, filter, hitNormal)));
  16991. }
  16992. DllExport void
  16993. NavigationMesh_DrawDebugGeometry2 (Urho3D::NavigationMesh *_target, bool depthTest)
  16994. {
  16995. _target->DrawDebugGeometry (depthTest);
  16996. }
  16997. DllExport const char *
  16998. NavigationMesh_GetMeshName (Urho3D::NavigationMesh *_target)
  16999. {
  17000. return stringdup((_target->GetMeshName ()).CString ());
  17001. }
  17002. DllExport void
  17003. NavigationMesh_SetMeshName (Urho3D::NavigationMesh *_target, const char * newName)
  17004. {
  17005. _target->SetMeshName (Urho3D::String(newName));
  17006. }
  17007. DllExport int
  17008. NavigationMesh_GetTileSize (Urho3D::NavigationMesh *_target)
  17009. {
  17010. return _target->GetTileSize ();
  17011. }
  17012. DllExport float
  17013. NavigationMesh_GetCellSize (Urho3D::NavigationMesh *_target)
  17014. {
  17015. return _target->GetCellSize ();
  17016. }
  17017. DllExport float
  17018. NavigationMesh_GetCellHeight (Urho3D::NavigationMesh *_target)
  17019. {
  17020. return _target->GetCellHeight ();
  17021. }
  17022. DllExport float
  17023. NavigationMesh_GetAgentHeight (Urho3D::NavigationMesh *_target)
  17024. {
  17025. return _target->GetAgentHeight ();
  17026. }
  17027. DllExport float
  17028. NavigationMesh_GetAgentRadius (Urho3D::NavigationMesh *_target)
  17029. {
  17030. return _target->GetAgentRadius ();
  17031. }
  17032. DllExport float
  17033. NavigationMesh_GetAgentMaxClimb (Urho3D::NavigationMesh *_target)
  17034. {
  17035. return _target->GetAgentMaxClimb ();
  17036. }
  17037. DllExport float
  17038. NavigationMesh_GetAgentMaxSlope (Urho3D::NavigationMesh *_target)
  17039. {
  17040. return _target->GetAgentMaxSlope ();
  17041. }
  17042. DllExport float
  17043. NavigationMesh_GetRegionMinSize (Urho3D::NavigationMesh *_target)
  17044. {
  17045. return _target->GetRegionMinSize ();
  17046. }
  17047. DllExport float
  17048. NavigationMesh_GetRegionMergeSize (Urho3D::NavigationMesh *_target)
  17049. {
  17050. return _target->GetRegionMergeSize ();
  17051. }
  17052. DllExport float
  17053. NavigationMesh_GetEdgeMaxLength (Urho3D::NavigationMesh *_target)
  17054. {
  17055. return _target->GetEdgeMaxLength ();
  17056. }
  17057. DllExport float
  17058. NavigationMesh_GetEdgeMaxError (Urho3D::NavigationMesh *_target)
  17059. {
  17060. return _target->GetEdgeMaxError ();
  17061. }
  17062. DllExport float
  17063. NavigationMesh_GetDetailSampleDistance (Urho3D::NavigationMesh *_target)
  17064. {
  17065. return _target->GetDetailSampleDistance ();
  17066. }
  17067. DllExport float
  17068. NavigationMesh_GetDetailSampleMaxError (Urho3D::NavigationMesh *_target)
  17069. {
  17070. return _target->GetDetailSampleMaxError ();
  17071. }
  17072. DllExport Interop::Vector3
  17073. NavigationMesh_GetPadding (Urho3D::NavigationMesh *_target)
  17074. {
  17075. return *((Interop::Vector3 *) &(_target->GetPadding ()));
  17076. }
  17077. DllExport float
  17078. NavigationMesh_GetAreaCost (Urho3D::NavigationMesh *_target, unsigned int areaID)
  17079. {
  17080. return _target->GetAreaCost (areaID);
  17081. }
  17082. DllExport int
  17083. NavigationMesh_IsInitialized (Urho3D::NavigationMesh *_target)
  17084. {
  17085. return _target->IsInitialized ();
  17086. }
  17087. DllExport Interop::BoundingBox
  17088. NavigationMesh_GetBoundingBox (Urho3D::NavigationMesh *_target)
  17089. {
  17090. return *((Interop::BoundingBox *) &(_target->GetBoundingBox ()));
  17091. }
  17092. DllExport Interop::BoundingBox
  17093. NavigationMesh_GetWorldBoundingBox (Urho3D::NavigationMesh *_target)
  17094. {
  17095. return *((Interop::BoundingBox *) &(_target->GetWorldBoundingBox ()));
  17096. }
  17097. DllExport Interop::IntVector2
  17098. NavigationMesh_GetNumTiles (Urho3D::NavigationMesh *_target)
  17099. {
  17100. return *((Interop::IntVector2 *) &(_target->GetNumTiles ()));
  17101. }
  17102. DllExport void
  17103. NavigationMesh_SetPartitionType (Urho3D::NavigationMesh *_target, enum Urho3D::NavmeshPartitionType aType)
  17104. {
  17105. _target->SetPartitionType (aType);
  17106. }
  17107. DllExport enum Urho3D::NavmeshPartitionType
  17108. NavigationMesh_GetPartitionType (Urho3D::NavigationMesh *_target)
  17109. {
  17110. return _target->GetPartitionType ();
  17111. }
  17112. DllExport void
  17113. NavigationMesh_SetDrawOffMeshConnections (Urho3D::NavigationMesh *_target, bool enable)
  17114. {
  17115. _target->SetDrawOffMeshConnections (enable);
  17116. }
  17117. DllExport int
  17118. NavigationMesh_GetDrawOffMeshConnections (Urho3D::NavigationMesh *_target)
  17119. {
  17120. return _target->GetDrawOffMeshConnections ();
  17121. }
  17122. DllExport void
  17123. NavigationMesh_SetDrawNavAreas (Urho3D::NavigationMesh *_target, bool enable)
  17124. {
  17125. _target->SetDrawNavAreas (enable);
  17126. }
  17127. DllExport int
  17128. NavigationMesh_GetDrawNavAreas (Urho3D::NavigationMesh *_target)
  17129. {
  17130. return _target->GetDrawNavAreas ();
  17131. }
  17132. DllExport int
  17133. DynamicNavigationMesh_GetType (Urho3D::DynamicNavigationMesh *_target)
  17134. {
  17135. return (_target->GetType ()).Value ();
  17136. }
  17137. DllExport const char *
  17138. DynamicNavigationMesh_GetTypeName (Urho3D::DynamicNavigationMesh *_target)
  17139. {
  17140. return stringdup((_target->GetTypeName ()).CString ());
  17141. }
  17142. DllExport int
  17143. DynamicNavigationMesh_GetTypeStatic ()
  17144. {
  17145. return (DynamicNavigationMesh::GetTypeStatic ()).Value ();
  17146. }
  17147. DllExport const char *
  17148. DynamicNavigationMesh_GetTypeNameStatic ()
  17149. {
  17150. return stringdup((DynamicNavigationMesh::GetTypeNameStatic ()).CString ());
  17151. }
  17152. DllExport void *
  17153. DynamicNavigationMesh_DynamicNavigationMesh (Urho3D::Context * param1)
  17154. {
  17155. return WeakPtr<DynamicNavigationMesh>(new DynamicNavigationMesh(param1));
  17156. }
  17157. DllExport void
  17158. DynamicNavigationMesh_RegisterObject (Urho3D::Context * param1)
  17159. {
  17160. DynamicNavigationMesh::RegisterObject (param1);
  17161. }
  17162. DllExport int
  17163. DynamicNavigationMesh_Allocate (Urho3D::DynamicNavigationMesh *_target, const class Urho3D::BoundingBox & boundingBox, unsigned int maxTiles)
  17164. {
  17165. return _target->Allocate (boundingBox, maxTiles);
  17166. }
  17167. DllExport int
  17168. DynamicNavigationMesh_Build (Urho3D::DynamicNavigationMesh *_target)
  17169. {
  17170. return _target->Build ();
  17171. }
  17172. DllExport int
  17173. DynamicNavigationMesh_Build0 (Urho3D::DynamicNavigationMesh *_target, const class Urho3D::BoundingBox & boundingBox)
  17174. {
  17175. return _target->Build (boundingBox);
  17176. }
  17177. DllExport int
  17178. DynamicNavigationMesh_Build1 (Urho3D::DynamicNavigationMesh *_target, const class Urho3D::IntVector2 & from, const class Urho3D::IntVector2 & to)
  17179. {
  17180. return _target->Build (from, to);
  17181. }
  17182. DllExport int
  17183. DynamicNavigationMesh_IsObstacleInTile (Urho3D::DynamicNavigationMesh *_target, Urho3D::Obstacle * obstacle, const class Urho3D::IntVector2 & tile)
  17184. {
  17185. return _target->IsObstacleInTile (obstacle, tile);
  17186. }
  17187. DllExport void
  17188. DynamicNavigationMesh_RemoveTile (Urho3D::DynamicNavigationMesh *_target, const class Urho3D::IntVector2 & tile)
  17189. {
  17190. _target->RemoveTile (tile);
  17191. }
  17192. DllExport void
  17193. DynamicNavigationMesh_RemoveAllTiles (Urho3D::DynamicNavigationMesh *_target)
  17194. {
  17195. _target->RemoveAllTiles ();
  17196. }
  17197. DllExport void
  17198. DynamicNavigationMesh_DrawDebugGeometry (Urho3D::DynamicNavigationMesh *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  17199. {
  17200. _target->DrawDebugGeometry (debug, depthTest);
  17201. }
  17202. DllExport void
  17203. DynamicNavigationMesh_DrawDebugGeometry2 (Urho3D::DynamicNavigationMesh *_target, bool depthTest)
  17204. {
  17205. _target->DrawDebugGeometry (depthTest);
  17206. }
  17207. DllExport void
  17208. DynamicNavigationMesh_SetMaxObstacles (Urho3D::DynamicNavigationMesh *_target, unsigned int maxObstacles)
  17209. {
  17210. _target->SetMaxObstacles (maxObstacles);
  17211. }
  17212. DllExport void
  17213. DynamicNavigationMesh_SetMaxLayers (Urho3D::DynamicNavigationMesh *_target, unsigned int maxLayers)
  17214. {
  17215. _target->SetMaxLayers (maxLayers);
  17216. }
  17217. DllExport unsigned int
  17218. DynamicNavigationMesh_GetMaxObstacles (Urho3D::DynamicNavigationMesh *_target)
  17219. {
  17220. return _target->GetMaxObstacles ();
  17221. }
  17222. DllExport unsigned int
  17223. DynamicNavigationMesh_GetMaxLayers (Urho3D::DynamicNavigationMesh *_target)
  17224. {
  17225. return _target->GetMaxLayers ();
  17226. }
  17227. DllExport void
  17228. DynamicNavigationMesh_SetDrawObstacles (Urho3D::DynamicNavigationMesh *_target, bool enable)
  17229. {
  17230. _target->SetDrawObstacles (enable);
  17231. }
  17232. DllExport int
  17233. DynamicNavigationMesh_GetDrawObstacles (Urho3D::DynamicNavigationMesh *_target)
  17234. {
  17235. return _target->GetDrawObstacles ();
  17236. }
  17237. DllExport int
  17238. NavArea_GetType (Urho3D::NavArea *_target)
  17239. {
  17240. return (_target->GetType ()).Value ();
  17241. }
  17242. DllExport const char *
  17243. NavArea_GetTypeName (Urho3D::NavArea *_target)
  17244. {
  17245. return stringdup((_target->GetTypeName ()).CString ());
  17246. }
  17247. DllExport int
  17248. NavArea_GetTypeStatic ()
  17249. {
  17250. return (NavArea::GetTypeStatic ()).Value ();
  17251. }
  17252. DllExport const char *
  17253. NavArea_GetTypeNameStatic ()
  17254. {
  17255. return stringdup((NavArea::GetTypeNameStatic ()).CString ());
  17256. }
  17257. DllExport void *
  17258. NavArea_NavArea (Urho3D::Context * param1)
  17259. {
  17260. return WeakPtr<NavArea>(new NavArea(param1));
  17261. }
  17262. DllExport void
  17263. NavArea_RegisterObject (Urho3D::Context * param1)
  17264. {
  17265. NavArea::RegisterObject (param1);
  17266. }
  17267. DllExport void
  17268. NavArea_DrawDebugGeometry (Urho3D::NavArea *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  17269. {
  17270. _target->DrawDebugGeometry (debug, depthTest);
  17271. }
  17272. DllExport unsigned int
  17273. NavArea_GetAreaID (Urho3D::NavArea *_target)
  17274. {
  17275. return _target->GetAreaID ();
  17276. }
  17277. DllExport void
  17278. NavArea_SetAreaID (Urho3D::NavArea *_target, unsigned int newID)
  17279. {
  17280. _target->SetAreaID (newID);
  17281. }
  17282. DllExport Interop::BoundingBox
  17283. NavArea_GetBoundingBox (Urho3D::NavArea *_target)
  17284. {
  17285. return *((Interop::BoundingBox *) &(_target->GetBoundingBox ()));
  17286. }
  17287. DllExport void
  17288. NavArea_SetBoundingBox (Urho3D::NavArea *_target, const class Urho3D::BoundingBox & bnds)
  17289. {
  17290. _target->SetBoundingBox (bnds);
  17291. }
  17292. DllExport Interop::BoundingBox
  17293. NavArea_GetWorldBoundingBox (Urho3D::NavArea *_target)
  17294. {
  17295. return *((Interop::BoundingBox *) &(_target->GetWorldBoundingBox ()));
  17296. }
  17297. DllExport int
  17298. Navigable_GetType (Urho3D::Navigable *_target)
  17299. {
  17300. return (_target->GetType ()).Value ();
  17301. }
  17302. DllExport const char *
  17303. Navigable_GetTypeName (Urho3D::Navigable *_target)
  17304. {
  17305. return stringdup((_target->GetTypeName ()).CString ());
  17306. }
  17307. DllExport int
  17308. Navigable_GetTypeStatic ()
  17309. {
  17310. return (Navigable::GetTypeStatic ()).Value ();
  17311. }
  17312. DllExport const char *
  17313. Navigable_GetTypeNameStatic ()
  17314. {
  17315. return stringdup((Navigable::GetTypeNameStatic ()).CString ());
  17316. }
  17317. DllExport void *
  17318. Navigable_Navigable (Urho3D::Context * context)
  17319. {
  17320. return WeakPtr<Navigable>(new Navigable(context));
  17321. }
  17322. DllExport void
  17323. Navigable_RegisterObject (Urho3D::Context * context)
  17324. {
  17325. Navigable::RegisterObject (context);
  17326. }
  17327. DllExport void
  17328. Navigable_SetRecursive (Urho3D::Navigable *_target, bool enable)
  17329. {
  17330. _target->SetRecursive (enable);
  17331. }
  17332. DllExport int
  17333. Navigable_IsRecursive (Urho3D::Navigable *_target)
  17334. {
  17335. return _target->IsRecursive ();
  17336. }
  17337. DllExport int
  17338. Obstacle_GetType (Urho3D::Obstacle *_target)
  17339. {
  17340. return (_target->GetType ()).Value ();
  17341. }
  17342. DllExport const char *
  17343. Obstacle_GetTypeName (Urho3D::Obstacle *_target)
  17344. {
  17345. return stringdup((_target->GetTypeName ()).CString ());
  17346. }
  17347. DllExport int
  17348. Obstacle_GetTypeStatic ()
  17349. {
  17350. return (Obstacle::GetTypeStatic ()).Value ();
  17351. }
  17352. DllExport const char *
  17353. Obstacle_GetTypeNameStatic ()
  17354. {
  17355. return stringdup((Obstacle::GetTypeNameStatic ()).CString ());
  17356. }
  17357. DllExport void *
  17358. Obstacle_Obstacle (Urho3D::Context * param1)
  17359. {
  17360. return WeakPtr<Obstacle>(new Obstacle(param1));
  17361. }
  17362. DllExport void
  17363. Obstacle_RegisterObject (Urho3D::Context * param1)
  17364. {
  17365. Obstacle::RegisterObject (param1);
  17366. }
  17367. DllExport void
  17368. Obstacle_OnSetEnabled (Urho3D::Obstacle *_target)
  17369. {
  17370. _target->OnSetEnabled ();
  17371. }
  17372. DllExport float
  17373. Obstacle_GetHeight (Urho3D::Obstacle *_target)
  17374. {
  17375. return _target->GetHeight ();
  17376. }
  17377. DllExport void
  17378. Obstacle_SetHeight (Urho3D::Obstacle *_target, float newHeight)
  17379. {
  17380. _target->SetHeight (newHeight);
  17381. }
  17382. DllExport float
  17383. Obstacle_GetRadius (Urho3D::Obstacle *_target)
  17384. {
  17385. return _target->GetRadius ();
  17386. }
  17387. DllExport void
  17388. Obstacle_SetRadius (Urho3D::Obstacle *_target, float newRadius)
  17389. {
  17390. _target->SetRadius (newRadius);
  17391. }
  17392. DllExport unsigned int
  17393. Obstacle_GetObstacleID (Urho3D::Obstacle *_target)
  17394. {
  17395. return _target->GetObstacleID ();
  17396. }
  17397. DllExport void
  17398. Obstacle_DrawDebugGeometry (Urho3D::Obstacle *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  17399. {
  17400. _target->DrawDebugGeometry (debug, depthTest);
  17401. }
  17402. DllExport void
  17403. Obstacle_DrawDebugGeometry0 (Urho3D::Obstacle *_target, bool depthTest)
  17404. {
  17405. _target->DrawDebugGeometry (depthTest);
  17406. }
  17407. DllExport int
  17408. OffMeshConnection_GetType (Urho3D::OffMeshConnection *_target)
  17409. {
  17410. return (_target->GetType ()).Value ();
  17411. }
  17412. DllExport const char *
  17413. OffMeshConnection_GetTypeName (Urho3D::OffMeshConnection *_target)
  17414. {
  17415. return stringdup((_target->GetTypeName ()).CString ());
  17416. }
  17417. DllExport int
  17418. OffMeshConnection_GetTypeStatic ()
  17419. {
  17420. return (OffMeshConnection::GetTypeStatic ()).Value ();
  17421. }
  17422. DllExport const char *
  17423. OffMeshConnection_GetTypeNameStatic ()
  17424. {
  17425. return stringdup((OffMeshConnection::GetTypeNameStatic ()).CString ());
  17426. }
  17427. DllExport void *
  17428. OffMeshConnection_OffMeshConnection (Urho3D::Context * context)
  17429. {
  17430. return WeakPtr<OffMeshConnection>(new OffMeshConnection(context));
  17431. }
  17432. DllExport void
  17433. OffMeshConnection_RegisterObject (Urho3D::Context * context)
  17434. {
  17435. OffMeshConnection::RegisterObject (context);
  17436. }
  17437. DllExport void
  17438. OffMeshConnection_ApplyAttributes (Urho3D::OffMeshConnection *_target)
  17439. {
  17440. _target->ApplyAttributes ();
  17441. }
  17442. DllExport void
  17443. OffMeshConnection_DrawDebugGeometry (Urho3D::OffMeshConnection *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  17444. {
  17445. _target->DrawDebugGeometry (debug, depthTest);
  17446. }
  17447. DllExport void
  17448. OffMeshConnection_SetEndPoint (Urho3D::OffMeshConnection *_target, Urho3D::Node * node)
  17449. {
  17450. _target->SetEndPoint (node);
  17451. }
  17452. DllExport void
  17453. OffMeshConnection_SetEndPointNodeIDAttr (Urho3D::OffMeshConnection *_target, unsigned int nodeID)
  17454. {
  17455. _target->SetEndPointNodeIDAttr (nodeID);
  17456. }
  17457. DllExport void
  17458. OffMeshConnection_SetRadius (Urho3D::OffMeshConnection *_target, float radius)
  17459. {
  17460. _target->SetRadius (radius);
  17461. }
  17462. DllExport void
  17463. OffMeshConnection_SetBidirectional (Urho3D::OffMeshConnection *_target, bool enabled)
  17464. {
  17465. _target->SetBidirectional (enabled);
  17466. }
  17467. DllExport void
  17468. OffMeshConnection_SetMask (Urho3D::OffMeshConnection *_target, unsigned int newMask)
  17469. {
  17470. _target->SetMask (newMask);
  17471. }
  17472. DllExport void
  17473. OffMeshConnection_SetAreaID (Urho3D::OffMeshConnection *_target, unsigned int newAreaID)
  17474. {
  17475. _target->SetAreaID (newAreaID);
  17476. }
  17477. DllExport Urho3D::Node *
  17478. OffMeshConnection_GetEndPoint (Urho3D::OffMeshConnection *_target)
  17479. {
  17480. return _target->GetEndPoint ();
  17481. }
  17482. DllExport unsigned int
  17483. OffMeshConnection_GetEndPointNodeID (Urho3D::OffMeshConnection *_target)
  17484. {
  17485. return _target->GetEndPointNodeID ();
  17486. }
  17487. DllExport float
  17488. OffMeshConnection_GetRadius (Urho3D::OffMeshConnection *_target)
  17489. {
  17490. return _target->GetRadius ();
  17491. }
  17492. DllExport int
  17493. OffMeshConnection_IsBidirectional (Urho3D::OffMeshConnection *_target)
  17494. {
  17495. return _target->IsBidirectional ();
  17496. }
  17497. DllExport unsigned int
  17498. OffMeshConnection_GetMask (Urho3D::OffMeshConnection *_target)
  17499. {
  17500. return _target->GetMask ();
  17501. }
  17502. DllExport unsigned int
  17503. OffMeshConnection_GetAreaID (Urho3D::OffMeshConnection *_target)
  17504. {
  17505. return _target->GetAreaID ();
  17506. }
  17507. DllExport int
  17508. Connection_GetType (Urho3D::Connection *_target)
  17509. {
  17510. return (_target->GetType ()).Value ();
  17511. }
  17512. DllExport const char *
  17513. Connection_GetTypeName (Urho3D::Connection *_target)
  17514. {
  17515. return stringdup((_target->GetTypeName ()).CString ());
  17516. }
  17517. DllExport int
  17518. Connection_GetTypeStatic ()
  17519. {
  17520. return (Connection::GetTypeStatic ()).Value ();
  17521. }
  17522. DllExport const char *
  17523. Connection_GetTypeNameStatic ()
  17524. {
  17525. return stringdup((Connection::GetTypeNameStatic ()).CString ());
  17526. }
  17527. DllExport void
  17528. Connection_SendMessage (Urho3D::Connection *_target, int msgID, bool reliable, bool inOrder, const unsigned char * data, unsigned int numBytes, unsigned int contentID)
  17529. {
  17530. _target->SendMessage (msgID, reliable, inOrder, data, numBytes, contentID);
  17531. }
  17532. DllExport void
  17533. Connection_SetScene (Urho3D::Connection *_target, Urho3D::Scene * newScene)
  17534. {
  17535. _target->SetScene (newScene);
  17536. }
  17537. DllExport void
  17538. Connection_SetPosition (Urho3D::Connection *_target, const class Urho3D::Vector3 & position)
  17539. {
  17540. _target->SetPosition (position);
  17541. }
  17542. DllExport void
  17543. Connection_SetRotation (Urho3D::Connection *_target, const class Urho3D::Quaternion & rotation)
  17544. {
  17545. _target->SetRotation (rotation);
  17546. }
  17547. DllExport void
  17548. Connection_SetConnectPending (Urho3D::Connection *_target, bool connectPending)
  17549. {
  17550. _target->SetConnectPending (connectPending);
  17551. }
  17552. DllExport void
  17553. Connection_SetLogStatistics (Urho3D::Connection *_target, bool enable)
  17554. {
  17555. _target->SetLogStatistics (enable);
  17556. }
  17557. DllExport void
  17558. Connection_Disconnect (Urho3D::Connection *_target, int waitMSec)
  17559. {
  17560. _target->Disconnect (waitMSec);
  17561. }
  17562. DllExport void
  17563. Connection_SendServerUpdate (Urho3D::Connection *_target)
  17564. {
  17565. _target->SendServerUpdate ();
  17566. }
  17567. DllExport void
  17568. Connection_SendClientUpdate (Urho3D::Connection *_target)
  17569. {
  17570. _target->SendClientUpdate ();
  17571. }
  17572. DllExport void
  17573. Connection_SendRemoteEvents (Urho3D::Connection *_target)
  17574. {
  17575. _target->SendRemoteEvents ();
  17576. }
  17577. DllExport void
  17578. Connection_SendPackages (Urho3D::Connection *_target)
  17579. {
  17580. _target->SendPackages ();
  17581. }
  17582. DllExport void
  17583. Connection_ProcessPendingLatestData (Urho3D::Connection *_target)
  17584. {
  17585. _target->ProcessPendingLatestData ();
  17586. }
  17587. DllExport Urho3D::Scene *
  17588. Connection_GetScene (Urho3D::Connection *_target)
  17589. {
  17590. return _target->GetScene ();
  17591. }
  17592. DllExport unsigned char
  17593. Connection_GetTimeStamp (Urho3D::Connection *_target)
  17594. {
  17595. return _target->GetTimeStamp ();
  17596. }
  17597. DllExport Interop::Vector3
  17598. Connection_GetPosition (Urho3D::Connection *_target)
  17599. {
  17600. return *((Interop::Vector3 *) &(_target->GetPosition ()));
  17601. }
  17602. DllExport Interop::Quaternion
  17603. Connection_GetRotation (Urho3D::Connection *_target)
  17604. {
  17605. return *((Interop::Quaternion *) &(_target->GetRotation ()));
  17606. }
  17607. DllExport int
  17608. Connection_IsClient (Urho3D::Connection *_target)
  17609. {
  17610. return _target->IsClient ();
  17611. }
  17612. DllExport int
  17613. Connection_IsConnected (Urho3D::Connection *_target)
  17614. {
  17615. return _target->IsConnected ();
  17616. }
  17617. DllExport int
  17618. Connection_IsConnectPending (Urho3D::Connection *_target)
  17619. {
  17620. return _target->IsConnectPending ();
  17621. }
  17622. DllExport int
  17623. Connection_IsSceneLoaded (Urho3D::Connection *_target)
  17624. {
  17625. return _target->IsSceneLoaded ();
  17626. }
  17627. DllExport int
  17628. Connection_GetLogStatistics (Urho3D::Connection *_target)
  17629. {
  17630. return _target->GetLogStatistics ();
  17631. }
  17632. DllExport const char *
  17633. Connection_GetAddress (Urho3D::Connection *_target)
  17634. {
  17635. return stringdup((_target->GetAddress ()).CString ());
  17636. }
  17637. DllExport unsigned short
  17638. Connection_GetPort (Urho3D::Connection *_target)
  17639. {
  17640. return _target->GetPort ();
  17641. }
  17642. DllExport float
  17643. Connection_GetRoundTripTime (Urho3D::Connection *_target)
  17644. {
  17645. return _target->GetRoundTripTime ();
  17646. }
  17647. DllExport float
  17648. Connection_GetLastHeardTime (Urho3D::Connection *_target)
  17649. {
  17650. return _target->GetLastHeardTime ();
  17651. }
  17652. DllExport float
  17653. Connection_GetBytesInPerSec (Urho3D::Connection *_target)
  17654. {
  17655. return _target->GetBytesInPerSec ();
  17656. }
  17657. DllExport float
  17658. Connection_GetBytesOutPerSec (Urho3D::Connection *_target)
  17659. {
  17660. return _target->GetBytesOutPerSec ();
  17661. }
  17662. DllExport float
  17663. Connection_GetPacketsInPerSec (Urho3D::Connection *_target)
  17664. {
  17665. return _target->GetPacketsInPerSec ();
  17666. }
  17667. DllExport float
  17668. Connection_GetPacketsOutPerSec (Urho3D::Connection *_target)
  17669. {
  17670. return _target->GetPacketsOutPerSec ();
  17671. }
  17672. DllExport const char *
  17673. Connection_ToString (Urho3D::Connection *_target)
  17674. {
  17675. return stringdup((_target->ToString ()).CString ());
  17676. }
  17677. DllExport unsigned int
  17678. Connection_GetNumDownloads (Urho3D::Connection *_target)
  17679. {
  17680. return _target->GetNumDownloads ();
  17681. }
  17682. DllExport const char *
  17683. Connection_GetDownloadName (Urho3D::Connection *_target)
  17684. {
  17685. return stringdup((_target->GetDownloadName ()).CString ());
  17686. }
  17687. DllExport float
  17688. Connection_GetDownloadProgress (Urho3D::Connection *_target)
  17689. {
  17690. return _target->GetDownloadProgress ();
  17691. }
  17692. DllExport void
  17693. Connection_SendPackageToClient (Urho3D::Connection *_target, Urho3D::PackageFile * package)
  17694. {
  17695. _target->SendPackageToClient (package);
  17696. }
  17697. DllExport void
  17698. Connection_ConfigureNetworkSimulator (Urho3D::Connection *_target, int latencyMs, float packetLoss)
  17699. {
  17700. _target->ConfigureNetworkSimulator (latencyMs, packetLoss);
  17701. }
  17702. DllExport void
  17703. HttpRequest_ThreadFunction (Urho3D::HttpRequest *_target)
  17704. {
  17705. _target->ThreadFunction ();
  17706. }
  17707. DllExport unsigned int
  17708. HttpRequest_Read (Urho3D::HttpRequest *_target, void * dest, unsigned int size)
  17709. {
  17710. return _target->Read (dest, size);
  17711. }
  17712. DllExport unsigned int
  17713. HttpRequest_Seek (Urho3D::HttpRequest *_target, unsigned int position)
  17714. {
  17715. return _target->Seek (position);
  17716. }
  17717. DllExport int
  17718. HttpRequest_IsEof (Urho3D::HttpRequest *_target)
  17719. {
  17720. return _target->IsEof ();
  17721. }
  17722. DllExport const char *
  17723. HttpRequest_GetURL (Urho3D::HttpRequest *_target)
  17724. {
  17725. return stringdup((_target->GetURL ()).CString ());
  17726. }
  17727. DllExport const char *
  17728. HttpRequest_GetVerb (Urho3D::HttpRequest *_target)
  17729. {
  17730. return stringdup((_target->GetVerb ()).CString ());
  17731. }
  17732. DllExport const char *
  17733. HttpRequest_GetError (Urho3D::HttpRequest *_target)
  17734. {
  17735. return stringdup((_target->GetError ()).CString ());
  17736. }
  17737. DllExport enum Urho3D::HttpRequestState
  17738. HttpRequest_GetState (Urho3D::HttpRequest *_target)
  17739. {
  17740. return _target->GetState ();
  17741. }
  17742. DllExport unsigned int
  17743. HttpRequest_GetAvailableSize (Urho3D::HttpRequest *_target)
  17744. {
  17745. return _target->GetAvailableSize ();
  17746. }
  17747. DllExport int
  17748. HttpRequest_IsOpen (Urho3D::HttpRequest *_target)
  17749. {
  17750. return _target->IsOpen ();
  17751. }
  17752. DllExport int
  17753. Network_GetType (Urho3D::Network *_target)
  17754. {
  17755. return (_target->GetType ()).Value ();
  17756. }
  17757. DllExport const char *
  17758. Network_GetTypeName (Urho3D::Network *_target)
  17759. {
  17760. return stringdup((_target->GetTypeName ()).CString ());
  17761. }
  17762. DllExport int
  17763. Network_GetTypeStatic ()
  17764. {
  17765. return (Network::GetTypeStatic ()).Value ();
  17766. }
  17767. DllExport const char *
  17768. Network_GetTypeNameStatic ()
  17769. {
  17770. return stringdup((Network::GetTypeNameStatic ()).CString ());
  17771. }
  17772. DllExport void *
  17773. Network_Network (Urho3D::Context * context)
  17774. {
  17775. return WeakPtr<Network>(new Network(context));
  17776. }
  17777. DllExport void
  17778. Network_Disconnect (Urho3D::Network *_target, int waitMSec)
  17779. {
  17780. _target->Disconnect (waitMSec);
  17781. }
  17782. DllExport int
  17783. Network_StartServer (Urho3D::Network *_target, unsigned short port)
  17784. {
  17785. return _target->StartServer (port);
  17786. }
  17787. DllExport void
  17788. Network_StopServer (Urho3D::Network *_target)
  17789. {
  17790. _target->StopServer ();
  17791. }
  17792. DllExport void
  17793. Network_BroadcastMessage (Urho3D::Network *_target, int msgID, bool reliable, bool inOrder, const unsigned char * data, unsigned int numBytes, unsigned int contentID)
  17794. {
  17795. _target->BroadcastMessage (msgID, reliable, inOrder, data, numBytes, contentID);
  17796. }
  17797. DllExport void
  17798. Network_SetUpdateFps (Urho3D::Network *_target, int fps)
  17799. {
  17800. _target->SetUpdateFps (fps);
  17801. }
  17802. DllExport void
  17803. Network_SetSimulatedLatency (Urho3D::Network *_target, int ms)
  17804. {
  17805. _target->SetSimulatedLatency (ms);
  17806. }
  17807. DllExport void
  17808. Network_SetSimulatedPacketLoss (Urho3D::Network *_target, float probability)
  17809. {
  17810. _target->SetSimulatedPacketLoss (probability);
  17811. }
  17812. DllExport void
  17813. Network_RegisterRemoteEvent (Urho3D::Network *_target, int eventType)
  17814. {
  17815. _target->RegisterRemoteEvent (Urho3D::StringHash(eventType));
  17816. }
  17817. DllExport void
  17818. Network_UnregisterRemoteEvent (Urho3D::Network *_target, int eventType)
  17819. {
  17820. _target->UnregisterRemoteEvent (Urho3D::StringHash(eventType));
  17821. }
  17822. DllExport void
  17823. Network_UnregisterAllRemoteEvents (Urho3D::Network *_target)
  17824. {
  17825. _target->UnregisterAllRemoteEvents ();
  17826. }
  17827. DllExport void
  17828. Network_SetPackageCacheDir (Urho3D::Network *_target, const char * path)
  17829. {
  17830. _target->SetPackageCacheDir (Urho3D::String(path));
  17831. }
  17832. DllExport void
  17833. Network_SendPackageToClients (Urho3D::Network *_target, Urho3D::Scene * scene, Urho3D::PackageFile * package)
  17834. {
  17835. _target->SendPackageToClients (scene, package);
  17836. }
  17837. DllExport int
  17838. Network_GetUpdateFps (Urho3D::Network *_target)
  17839. {
  17840. return _target->GetUpdateFps ();
  17841. }
  17842. DllExport int
  17843. Network_GetSimulatedLatency (Urho3D::Network *_target)
  17844. {
  17845. return _target->GetSimulatedLatency ();
  17846. }
  17847. DllExport float
  17848. Network_GetSimulatedPacketLoss (Urho3D::Network *_target)
  17849. {
  17850. return _target->GetSimulatedPacketLoss ();
  17851. }
  17852. DllExport Urho3D::Connection *
  17853. Network_GetServerConnection (Urho3D::Network *_target)
  17854. {
  17855. return _target->GetServerConnection ();
  17856. }
  17857. DllExport int
  17858. Network_IsServerRunning (Urho3D::Network *_target)
  17859. {
  17860. return _target->IsServerRunning ();
  17861. }
  17862. DllExport int
  17863. Network_CheckRemoteEvent (Urho3D::Network *_target, int eventType)
  17864. {
  17865. return _target->CheckRemoteEvent (Urho3D::StringHash(eventType));
  17866. }
  17867. DllExport const char *
  17868. Network_GetPackageCacheDir (Urho3D::Network *_target)
  17869. {
  17870. return stringdup((_target->GetPackageCacheDir ()).CString ());
  17871. }
  17872. DllExport void
  17873. Network_Update (Urho3D::Network *_target, float timeStep)
  17874. {
  17875. _target->Update (timeStep);
  17876. }
  17877. DllExport void
  17878. Network_PostUpdate (Urho3D::Network *_target, float timeStep)
  17879. {
  17880. _target->PostUpdate (timeStep);
  17881. }
  17882. DllExport int
  17883. NetworkPriority_GetType (Urho3D::NetworkPriority *_target)
  17884. {
  17885. return (_target->GetType ()).Value ();
  17886. }
  17887. DllExport const char *
  17888. NetworkPriority_GetTypeName (Urho3D::NetworkPriority *_target)
  17889. {
  17890. return stringdup((_target->GetTypeName ()).CString ());
  17891. }
  17892. DllExport int
  17893. NetworkPriority_GetTypeStatic ()
  17894. {
  17895. return (NetworkPriority::GetTypeStatic ()).Value ();
  17896. }
  17897. DllExport const char *
  17898. NetworkPriority_GetTypeNameStatic ()
  17899. {
  17900. return stringdup((NetworkPriority::GetTypeNameStatic ()).CString ());
  17901. }
  17902. DllExport void *
  17903. NetworkPriority_NetworkPriority (Urho3D::Context * context)
  17904. {
  17905. return WeakPtr<NetworkPriority>(new NetworkPriority(context));
  17906. }
  17907. DllExport void
  17908. NetworkPriority_RegisterObject (Urho3D::Context * context)
  17909. {
  17910. NetworkPriority::RegisterObject (context);
  17911. }
  17912. DllExport void
  17913. NetworkPriority_SetBasePriority (Urho3D::NetworkPriority *_target, float priority)
  17914. {
  17915. _target->SetBasePriority (priority);
  17916. }
  17917. DllExport void
  17918. NetworkPriority_SetDistanceFactor (Urho3D::NetworkPriority *_target, float factor)
  17919. {
  17920. _target->SetDistanceFactor (factor);
  17921. }
  17922. DllExport void
  17923. NetworkPriority_SetMinPriority (Urho3D::NetworkPriority *_target, float priority)
  17924. {
  17925. _target->SetMinPriority (priority);
  17926. }
  17927. DllExport void
  17928. NetworkPriority_SetAlwaysUpdateOwner (Urho3D::NetworkPriority *_target, bool enable)
  17929. {
  17930. _target->SetAlwaysUpdateOwner (enable);
  17931. }
  17932. DllExport float
  17933. NetworkPriority_GetBasePriority (Urho3D::NetworkPriority *_target)
  17934. {
  17935. return _target->GetBasePriority ();
  17936. }
  17937. DllExport float
  17938. NetworkPriority_GetDistanceFactor (Urho3D::NetworkPriority *_target)
  17939. {
  17940. return _target->GetDistanceFactor ();
  17941. }
  17942. DllExport float
  17943. NetworkPriority_GetMinPriority (Urho3D::NetworkPriority *_target)
  17944. {
  17945. return _target->GetMinPriority ();
  17946. }
  17947. DllExport int
  17948. NetworkPriority_GetAlwaysUpdateOwner (Urho3D::NetworkPriority *_target)
  17949. {
  17950. return _target->GetAlwaysUpdateOwner ();
  17951. }
  17952. DllExport void *
  17953. TriangleMeshData_TriangleMeshData (Urho3D::Model * model, unsigned int lodLevel)
  17954. {
  17955. return WeakPtr<TriangleMeshData>(new TriangleMeshData(model, lodLevel));
  17956. }
  17957. DllExport void *
  17958. TriangleMeshData_TriangleMeshData0 (Urho3D::CustomGeometry * custom)
  17959. {
  17960. return WeakPtr<TriangleMeshData>(new TriangleMeshData(custom));
  17961. }
  17962. DllExport void *
  17963. ConvexData_ConvexData (Urho3D::Model * model, unsigned int lodLevel)
  17964. {
  17965. return WeakPtr<ConvexData>(new ConvexData(model, lodLevel));
  17966. }
  17967. DllExport void *
  17968. ConvexData_ConvexData0 (Urho3D::CustomGeometry * custom)
  17969. {
  17970. return WeakPtr<ConvexData>(new ConvexData(custom));
  17971. }
  17972. DllExport void *
  17973. HeightfieldData_HeightfieldData (Urho3D::Terrain * terrain, unsigned int lodLevel)
  17974. {
  17975. return WeakPtr<HeightfieldData>(new HeightfieldData(terrain, lodLevel));
  17976. }
  17977. DllExport int
  17978. CollisionShape_GetType (Urho3D::CollisionShape *_target)
  17979. {
  17980. return (_target->GetType ()).Value ();
  17981. }
  17982. DllExport const char *
  17983. CollisionShape_GetTypeName (Urho3D::CollisionShape *_target)
  17984. {
  17985. return stringdup((_target->GetTypeName ()).CString ());
  17986. }
  17987. DllExport int
  17988. CollisionShape_GetTypeStatic ()
  17989. {
  17990. return (CollisionShape::GetTypeStatic ()).Value ();
  17991. }
  17992. DllExport const char *
  17993. CollisionShape_GetTypeNameStatic ()
  17994. {
  17995. return stringdup((CollisionShape::GetTypeNameStatic ()).CString ());
  17996. }
  17997. DllExport void *
  17998. CollisionShape_CollisionShape (Urho3D::Context * context)
  17999. {
  18000. return WeakPtr<CollisionShape>(new CollisionShape(context));
  18001. }
  18002. DllExport void
  18003. CollisionShape_RegisterObject (Urho3D::Context * context)
  18004. {
  18005. CollisionShape::RegisterObject (context);
  18006. }
  18007. DllExport void
  18008. CollisionShape_ApplyAttributes (Urho3D::CollisionShape *_target)
  18009. {
  18010. _target->ApplyAttributes ();
  18011. }
  18012. DllExport void
  18013. CollisionShape_OnSetEnabled (Urho3D::CollisionShape *_target)
  18014. {
  18015. _target->OnSetEnabled ();
  18016. }
  18017. DllExport void
  18018. CollisionShape_DrawDebugGeometry (Urho3D::CollisionShape *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  18019. {
  18020. _target->DrawDebugGeometry (debug, depthTest);
  18021. }
  18022. DllExport void
  18023. CollisionShape_SetBox (Urho3D::CollisionShape *_target, const class Urho3D::Vector3 & size, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  18024. {
  18025. _target->SetBox (size, position, rotation);
  18026. }
  18027. DllExport void
  18028. CollisionShape_SetSphere (Urho3D::CollisionShape *_target, float diameter, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  18029. {
  18030. _target->SetSphere (diameter, position, rotation);
  18031. }
  18032. DllExport void
  18033. CollisionShape_SetStaticPlane (Urho3D::CollisionShape *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  18034. {
  18035. _target->SetStaticPlane (position, rotation);
  18036. }
  18037. DllExport void
  18038. CollisionShape_SetCylinder (Urho3D::CollisionShape *_target, float diameter, float height, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  18039. {
  18040. _target->SetCylinder (diameter, height, position, rotation);
  18041. }
  18042. DllExport void
  18043. CollisionShape_SetCapsule (Urho3D::CollisionShape *_target, float diameter, float height, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  18044. {
  18045. _target->SetCapsule (diameter, height, position, rotation);
  18046. }
  18047. DllExport void
  18048. CollisionShape_SetCone (Urho3D::CollisionShape *_target, float diameter, float height, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  18049. {
  18050. _target->SetCone (diameter, height, position, rotation);
  18051. }
  18052. DllExport void
  18053. 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)
  18054. {
  18055. _target->SetTriangleMesh (model, lodLevel, scale, position, rotation);
  18056. }
  18057. DllExport void
  18058. CollisionShape_SetCustomTriangleMesh (Urho3D::CollisionShape *_target, Urho3D::CustomGeometry * custom, const class Urho3D::Vector3 & scale, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  18059. {
  18060. _target->SetCustomTriangleMesh (custom, scale, position, rotation);
  18061. }
  18062. DllExport void
  18063. 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)
  18064. {
  18065. _target->SetConvexHull (model, lodLevel, scale, position, rotation);
  18066. }
  18067. DllExport void
  18068. CollisionShape_SetCustomConvexHull (Urho3D::CollisionShape *_target, Urho3D::CustomGeometry * custom, const class Urho3D::Vector3 & scale, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  18069. {
  18070. _target->SetCustomConvexHull (custom, scale, position, rotation);
  18071. }
  18072. DllExport void
  18073. CollisionShape_SetTerrain (Urho3D::CollisionShape *_target, unsigned int lodLevel)
  18074. {
  18075. _target->SetTerrain (lodLevel);
  18076. }
  18077. DllExport void
  18078. CollisionShape_SetShapeType (Urho3D::CollisionShape *_target, enum Urho3D::ShapeType type)
  18079. {
  18080. _target->SetShapeType (type);
  18081. }
  18082. DllExport void
  18083. CollisionShape_SetSize (Urho3D::CollisionShape *_target, const class Urho3D::Vector3 & size)
  18084. {
  18085. _target->SetSize (size);
  18086. }
  18087. DllExport void
  18088. CollisionShape_SetPosition (Urho3D::CollisionShape *_target, const class Urho3D::Vector3 & position)
  18089. {
  18090. _target->SetPosition (position);
  18091. }
  18092. DllExport void
  18093. CollisionShape_SetRotation (Urho3D::CollisionShape *_target, const class Urho3D::Quaternion & rotation)
  18094. {
  18095. _target->SetRotation (rotation);
  18096. }
  18097. DllExport void
  18098. CollisionShape_SetTransform (Urho3D::CollisionShape *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  18099. {
  18100. _target->SetTransform (position, rotation);
  18101. }
  18102. DllExport void
  18103. CollisionShape_SetMargin (Urho3D::CollisionShape *_target, float margin)
  18104. {
  18105. _target->SetMargin (margin);
  18106. }
  18107. DllExport void
  18108. CollisionShape_SetModel (Urho3D::CollisionShape *_target, Urho3D::Model * model)
  18109. {
  18110. _target->SetModel (model);
  18111. }
  18112. DllExport void
  18113. CollisionShape_SetLodLevel (Urho3D::CollisionShape *_target, unsigned int lodLevel)
  18114. {
  18115. _target->SetLodLevel (lodLevel);
  18116. }
  18117. DllExport Urho3D::PhysicsWorld *
  18118. CollisionShape_GetPhysicsWorld (Urho3D::CollisionShape *_target)
  18119. {
  18120. return _target->GetPhysicsWorld ();
  18121. }
  18122. DllExport enum Urho3D::ShapeType
  18123. CollisionShape_GetShapeType (Urho3D::CollisionShape *_target)
  18124. {
  18125. return _target->GetShapeType ();
  18126. }
  18127. DllExport Interop::Vector3
  18128. CollisionShape_GetSize (Urho3D::CollisionShape *_target)
  18129. {
  18130. return *((Interop::Vector3 *) &(_target->GetSize ()));
  18131. }
  18132. DllExport Interop::Vector3
  18133. CollisionShape_GetPosition (Urho3D::CollisionShape *_target)
  18134. {
  18135. return *((Interop::Vector3 *) &(_target->GetPosition ()));
  18136. }
  18137. DllExport Interop::Quaternion
  18138. CollisionShape_GetRotation (Urho3D::CollisionShape *_target)
  18139. {
  18140. return *((Interop::Quaternion *) &(_target->GetRotation ()));
  18141. }
  18142. DllExport float
  18143. CollisionShape_GetMargin (Urho3D::CollisionShape *_target)
  18144. {
  18145. return _target->GetMargin ();
  18146. }
  18147. DllExport unsigned int
  18148. CollisionShape_GetCustomGeometryID (Urho3D::CollisionShape *_target)
  18149. {
  18150. return _target->GetCustomGeometryID ();
  18151. }
  18152. DllExport Urho3D::Model *
  18153. CollisionShape_GetModel (Urho3D::CollisionShape *_target)
  18154. {
  18155. return _target->GetModel ();
  18156. }
  18157. DllExport unsigned int
  18158. CollisionShape_GetLodLevel (Urho3D::CollisionShape *_target)
  18159. {
  18160. return _target->GetLodLevel ();
  18161. }
  18162. DllExport Interop::BoundingBox
  18163. CollisionShape_GetWorldBoundingBox (Urho3D::CollisionShape *_target)
  18164. {
  18165. return *((Interop::BoundingBox *) &(_target->GetWorldBoundingBox ()));
  18166. }
  18167. DllExport void
  18168. CollisionShape_NotifyRigidBody (Urho3D::CollisionShape *_target, bool updateMass)
  18169. {
  18170. _target->NotifyRigidBody (updateMass);
  18171. }
  18172. DllExport void
  18173. CollisionShape_SetShapeTypeAttr (Urho3D::CollisionShape *_target, enum Urho3D::ShapeType type)
  18174. {
  18175. _target->SetShapeTypeAttr (type);
  18176. }
  18177. DllExport void
  18178. CollisionShape_SetSizeAttr (Urho3D::CollisionShape *_target, const class Urho3D::Vector3 & value)
  18179. {
  18180. _target->SetSizeAttr (value);
  18181. }
  18182. DllExport void
  18183. CollisionShape_SetLodLevelAttr (Urho3D::CollisionShape *_target, unsigned int value)
  18184. {
  18185. _target->SetLodLevelAttr (value);
  18186. }
  18187. DllExport void
  18188. CollisionShape_SetMarginAttr (Urho3D::CollisionShape *_target, float value)
  18189. {
  18190. _target->SetMarginAttr (value);
  18191. }
  18192. DllExport void
  18193. CollisionShape_SetCustomGeometryIDAttr (Urho3D::CollisionShape *_target, unsigned int componentID)
  18194. {
  18195. _target->SetCustomGeometryIDAttr (componentID);
  18196. }
  18197. DllExport Urho3D::ResourceRef
  18198. CollisionShape_GetModelAttr (Urho3D::CollisionShape *_target)
  18199. {
  18200. return _target->GetModelAttr ();
  18201. }
  18202. DllExport void
  18203. CollisionShape_ReleaseShape (Urho3D::CollisionShape *_target)
  18204. {
  18205. _target->ReleaseShape ();
  18206. }
  18207. DllExport int
  18208. Constraint_GetType (Urho3D::Constraint *_target)
  18209. {
  18210. return (_target->GetType ()).Value ();
  18211. }
  18212. DllExport const char *
  18213. Constraint_GetTypeName (Urho3D::Constraint *_target)
  18214. {
  18215. return stringdup((_target->GetTypeName ()).CString ());
  18216. }
  18217. DllExport int
  18218. Constraint_GetTypeStatic ()
  18219. {
  18220. return (Constraint::GetTypeStatic ()).Value ();
  18221. }
  18222. DllExport const char *
  18223. Constraint_GetTypeNameStatic ()
  18224. {
  18225. return stringdup((Constraint::GetTypeNameStatic ()).CString ());
  18226. }
  18227. DllExport void *
  18228. Constraint_Constraint (Urho3D::Context * context)
  18229. {
  18230. return WeakPtr<Constraint>(new Constraint(context));
  18231. }
  18232. DllExport void
  18233. Constraint_RegisterObject (Urho3D::Context * context)
  18234. {
  18235. Constraint::RegisterObject (context);
  18236. }
  18237. DllExport void
  18238. Constraint_ApplyAttributes (Urho3D::Constraint *_target)
  18239. {
  18240. _target->ApplyAttributes ();
  18241. }
  18242. DllExport void
  18243. Constraint_OnSetEnabled (Urho3D::Constraint *_target)
  18244. {
  18245. _target->OnSetEnabled ();
  18246. }
  18247. DllExport void
  18248. Constraint_DrawDebugGeometry (Urho3D::Constraint *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  18249. {
  18250. _target->DrawDebugGeometry (debug, depthTest);
  18251. }
  18252. DllExport void
  18253. Constraint_SetConstraintType (Urho3D::Constraint *_target, enum Urho3D::ConstraintType type)
  18254. {
  18255. _target->SetConstraintType (type);
  18256. }
  18257. DllExport void
  18258. Constraint_SetOtherBody (Urho3D::Constraint *_target, Urho3D::RigidBody * body)
  18259. {
  18260. _target->SetOtherBody (body);
  18261. }
  18262. DllExport void
  18263. Constraint_SetPosition (Urho3D::Constraint *_target, const class Urho3D::Vector3 & position)
  18264. {
  18265. _target->SetPosition (position);
  18266. }
  18267. DllExport void
  18268. Constraint_SetRotation (Urho3D::Constraint *_target, const class Urho3D::Quaternion & rotation)
  18269. {
  18270. _target->SetRotation (rotation);
  18271. }
  18272. DllExport void
  18273. Constraint_SetAxis (Urho3D::Constraint *_target, const class Urho3D::Vector3 & axis)
  18274. {
  18275. _target->SetAxis (axis);
  18276. }
  18277. DllExport void
  18278. Constraint_SetOtherPosition (Urho3D::Constraint *_target, const class Urho3D::Vector3 & position)
  18279. {
  18280. _target->SetOtherPosition (position);
  18281. }
  18282. DllExport void
  18283. Constraint_SetOtherRotation (Urho3D::Constraint *_target, const class Urho3D::Quaternion & rotation)
  18284. {
  18285. _target->SetOtherRotation (rotation);
  18286. }
  18287. DllExport void
  18288. Constraint_SetOtherAxis (Urho3D::Constraint *_target, const class Urho3D::Vector3 & axis)
  18289. {
  18290. _target->SetOtherAxis (axis);
  18291. }
  18292. DllExport void
  18293. Constraint_SetWorldPosition (Urho3D::Constraint *_target, const class Urho3D::Vector3 & position)
  18294. {
  18295. _target->SetWorldPosition (position);
  18296. }
  18297. DllExport void
  18298. Constraint_SetHighLimit (Urho3D::Constraint *_target, const class Urho3D::Vector2 & limit)
  18299. {
  18300. _target->SetHighLimit (limit);
  18301. }
  18302. DllExport void
  18303. Constraint_SetLowLimit (Urho3D::Constraint *_target, const class Urho3D::Vector2 & limit)
  18304. {
  18305. _target->SetLowLimit (limit);
  18306. }
  18307. DllExport void
  18308. Constraint_SetERP (Urho3D::Constraint *_target, float erp)
  18309. {
  18310. _target->SetERP (erp);
  18311. }
  18312. DllExport void
  18313. Constraint_SetCFM (Urho3D::Constraint *_target, float cfm)
  18314. {
  18315. _target->SetCFM (cfm);
  18316. }
  18317. DllExport void
  18318. Constraint_SetDisableCollision (Urho3D::Constraint *_target, bool disable)
  18319. {
  18320. _target->SetDisableCollision (disable);
  18321. }
  18322. DllExport Urho3D::PhysicsWorld *
  18323. Constraint_GetPhysicsWorld (Urho3D::Constraint *_target)
  18324. {
  18325. return _target->GetPhysicsWorld ();
  18326. }
  18327. DllExport enum Urho3D::ConstraintType
  18328. Constraint_GetConstraintType (Urho3D::Constraint *_target)
  18329. {
  18330. return _target->GetConstraintType ();
  18331. }
  18332. DllExport Urho3D::RigidBody *
  18333. Constraint_GetOwnBody (Urho3D::Constraint *_target)
  18334. {
  18335. return _target->GetOwnBody ();
  18336. }
  18337. DllExport Urho3D::RigidBody *
  18338. Constraint_GetOtherBody (Urho3D::Constraint *_target)
  18339. {
  18340. return _target->GetOtherBody ();
  18341. }
  18342. DllExport unsigned int
  18343. Constraint_GetOtherBodyNodeID (Urho3D::Constraint *_target)
  18344. {
  18345. return _target->GetOtherBodyNodeID ();
  18346. }
  18347. DllExport Interop::Vector3
  18348. Constraint_GetPosition (Urho3D::Constraint *_target)
  18349. {
  18350. return *((Interop::Vector3 *) &(_target->GetPosition ()));
  18351. }
  18352. DllExport Interop::Quaternion
  18353. Constraint_GetRotation (Urho3D::Constraint *_target)
  18354. {
  18355. return *((Interop::Quaternion *) &(_target->GetRotation ()));
  18356. }
  18357. DllExport Interop::Vector3
  18358. Constraint_GetOtherPosition (Urho3D::Constraint *_target)
  18359. {
  18360. return *((Interop::Vector3 *) &(_target->GetOtherPosition ()));
  18361. }
  18362. DllExport Interop::Quaternion
  18363. Constraint_GetOtherRotation (Urho3D::Constraint *_target)
  18364. {
  18365. return *((Interop::Quaternion *) &(_target->GetOtherRotation ()));
  18366. }
  18367. DllExport Interop::Vector3
  18368. Constraint_GetWorldPosition (Urho3D::Constraint *_target)
  18369. {
  18370. return *((Interop::Vector3 *) &(_target->GetWorldPosition ()));
  18371. }
  18372. DllExport Interop::Vector2
  18373. Constraint_GetHighLimit (Urho3D::Constraint *_target)
  18374. {
  18375. return *((Interop::Vector2 *) &(_target->GetHighLimit ()));
  18376. }
  18377. DllExport Interop::Vector2
  18378. Constraint_GetLowLimit (Urho3D::Constraint *_target)
  18379. {
  18380. return *((Interop::Vector2 *) &(_target->GetLowLimit ()));
  18381. }
  18382. DllExport float
  18383. Constraint_GetERP (Urho3D::Constraint *_target)
  18384. {
  18385. return _target->GetERP ();
  18386. }
  18387. DllExport float
  18388. Constraint_GetCFM (Urho3D::Constraint *_target)
  18389. {
  18390. return _target->GetCFM ();
  18391. }
  18392. DllExport int
  18393. Constraint_GetDisableCollision (Urho3D::Constraint *_target)
  18394. {
  18395. return _target->GetDisableCollision ();
  18396. }
  18397. DllExport void
  18398. Constraint_SetConstraintTypeAttr (Urho3D::Constraint *_target, enum Urho3D::ConstraintType type)
  18399. {
  18400. _target->SetConstraintTypeAttr (type);
  18401. }
  18402. DllExport void
  18403. Constraint_SetPositionAttr (Urho3D::Constraint *_target, const class Urho3D::Vector3 & position)
  18404. {
  18405. _target->SetPositionAttr (position);
  18406. }
  18407. DllExport void
  18408. Constraint_SetRotationAttr (Urho3D::Constraint *_target, const class Urho3D::Quaternion & rotation)
  18409. {
  18410. _target->SetRotationAttr (rotation);
  18411. }
  18412. DllExport void
  18413. Constraint_SetOtherPositionAttr (Urho3D::Constraint *_target, const class Urho3D::Vector3 & position)
  18414. {
  18415. _target->SetOtherPositionAttr (position);
  18416. }
  18417. DllExport void
  18418. Constraint_SetOtherRotationAttr (Urho3D::Constraint *_target, const class Urho3D::Quaternion & rotation)
  18419. {
  18420. _target->SetOtherRotationAttr (rotation);
  18421. }
  18422. DllExport void
  18423. Constraint_SetOtherBodyNodeIDAttr (Urho3D::Constraint *_target, unsigned int nodeID)
  18424. {
  18425. _target->SetOtherBodyNodeIDAttr (nodeID);
  18426. }
  18427. DllExport void
  18428. Constraint_SetDisableCollitionAttr (Urho3D::Constraint *_target, bool value)
  18429. {
  18430. _target->SetDisableCollitionAttr (value);
  18431. }
  18432. DllExport void
  18433. Constraint_ReleaseConstraint (Urho3D::Constraint *_target)
  18434. {
  18435. _target->ReleaseConstraint ();
  18436. }
  18437. DllExport void
  18438. Constraint_ApplyFrames (Urho3D::Constraint *_target)
  18439. {
  18440. _target->ApplyFrames ();
  18441. }
  18442. DllExport int
  18443. PhysicsWorld_GetType (Urho3D::PhysicsWorld *_target)
  18444. {
  18445. return (_target->GetType ()).Value ();
  18446. }
  18447. DllExport const char *
  18448. PhysicsWorld_GetTypeName (Urho3D::PhysicsWorld *_target)
  18449. {
  18450. return stringdup((_target->GetTypeName ()).CString ());
  18451. }
  18452. DllExport int
  18453. PhysicsWorld_GetTypeStatic ()
  18454. {
  18455. return (PhysicsWorld::GetTypeStatic ()).Value ();
  18456. }
  18457. DllExport const char *
  18458. PhysicsWorld_GetTypeNameStatic ()
  18459. {
  18460. return stringdup((PhysicsWorld::GetTypeNameStatic ()).CString ());
  18461. }
  18462. DllExport void *
  18463. PhysicsWorld_PhysicsWorld (Urho3D::Context * scontext)
  18464. {
  18465. return WeakPtr<PhysicsWorld>(new PhysicsWorld(scontext));
  18466. }
  18467. DllExport void
  18468. PhysicsWorld_RegisterObject (Urho3D::Context * context)
  18469. {
  18470. PhysicsWorld::RegisterObject (context);
  18471. }
  18472. DllExport void
  18473. PhysicsWorld_setDebugMode (Urho3D::PhysicsWorld *_target, int debugMode)
  18474. {
  18475. _target->setDebugMode (debugMode);
  18476. }
  18477. DllExport int
  18478. PhysicsWorld_getDebugMode (Urho3D::PhysicsWorld *_target)
  18479. {
  18480. return _target->getDebugMode ();
  18481. }
  18482. DllExport void
  18483. PhysicsWorld_DrawDebugGeometry (Urho3D::PhysicsWorld *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  18484. {
  18485. _target->DrawDebugGeometry (debug, depthTest);
  18486. }
  18487. DllExport void
  18488. PhysicsWorld_Update (Urho3D::PhysicsWorld *_target, float timeStep)
  18489. {
  18490. _target->Update (timeStep);
  18491. }
  18492. DllExport void
  18493. PhysicsWorld_UpdateCollisions (Urho3D::PhysicsWorld *_target)
  18494. {
  18495. _target->UpdateCollisions ();
  18496. }
  18497. DllExport void
  18498. PhysicsWorld_SetFps (Urho3D::PhysicsWorld *_target, int fps)
  18499. {
  18500. _target->SetFps (fps);
  18501. }
  18502. DllExport void
  18503. PhysicsWorld_SetGravity (Urho3D::PhysicsWorld *_target, const class Urho3D::Vector3 & gravity)
  18504. {
  18505. _target->SetGravity (gravity);
  18506. }
  18507. DllExport void
  18508. PhysicsWorld_SetMaxSubSteps (Urho3D::PhysicsWorld *_target, int num)
  18509. {
  18510. _target->SetMaxSubSteps (num);
  18511. }
  18512. DllExport void
  18513. PhysicsWorld_SetNumIterations (Urho3D::PhysicsWorld *_target, int num)
  18514. {
  18515. _target->SetNumIterations (num);
  18516. }
  18517. DllExport void
  18518. PhysicsWorld_SetUpdateEnabled (Urho3D::PhysicsWorld *_target, bool enable)
  18519. {
  18520. _target->SetUpdateEnabled (enable);
  18521. }
  18522. DllExport void
  18523. PhysicsWorld_SetInterpolation (Urho3D::PhysicsWorld *_target, bool enable)
  18524. {
  18525. _target->SetInterpolation (enable);
  18526. }
  18527. DllExport void
  18528. PhysicsWorld_SetInternalEdge (Urho3D::PhysicsWorld *_target, bool enable)
  18529. {
  18530. _target->SetInternalEdge (enable);
  18531. }
  18532. DllExport void
  18533. PhysicsWorld_SetSplitImpulse (Urho3D::PhysicsWorld *_target, bool enable)
  18534. {
  18535. _target->SetSplitImpulse (enable);
  18536. }
  18537. DllExport void
  18538. PhysicsWorld_SetMaxNetworkAngularVelocity (Urho3D::PhysicsWorld *_target, float velocity)
  18539. {
  18540. _target->SetMaxNetworkAngularVelocity (velocity);
  18541. }
  18542. DllExport void
  18543. PhysicsWorld_RaycastSingle (Urho3D::PhysicsWorld *_target, Urho3D::PhysicsRaycastResult & result, const class Urho3D::Ray & ray, float maxDistance, unsigned int collisionMask)
  18544. {
  18545. _target->RaycastSingle (result, ray, maxDistance, collisionMask);
  18546. }
  18547. DllExport void
  18548. PhysicsWorld_RaycastSingleSegmented (Urho3D::PhysicsWorld *_target, Urho3D::PhysicsRaycastResult & result, const class Urho3D::Ray & ray, float maxDistance, float segmentDistance, unsigned int collisionMask)
  18549. {
  18550. _target->RaycastSingleSegmented (result, ray, maxDistance, segmentDistance, collisionMask);
  18551. }
  18552. DllExport void
  18553. PhysicsWorld_SphereCast (Urho3D::PhysicsWorld *_target, Urho3D::PhysicsRaycastResult & result, const class Urho3D::Ray & ray, float radius, float maxDistance, unsigned int collisionMask)
  18554. {
  18555. _target->SphereCast (result, ray, radius, maxDistance, collisionMask);
  18556. }
  18557. DllExport void
  18558. 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)
  18559. {
  18560. _target->ConvexCast (result, shape, startPos, startRot, endPos, endRot, collisionMask);
  18561. }
  18562. DllExport void
  18563. PhysicsWorld_RemoveCachedGeometry (Urho3D::PhysicsWorld *_target, Urho3D::Model * model)
  18564. {
  18565. _target->RemoveCachedGeometry (model);
  18566. }
  18567. DllExport Interop::Vector3
  18568. PhysicsWorld_GetGravity (Urho3D::PhysicsWorld *_target)
  18569. {
  18570. return *((Interop::Vector3 *) &(_target->GetGravity ()));
  18571. }
  18572. DllExport int
  18573. PhysicsWorld_GetMaxSubSteps (Urho3D::PhysicsWorld *_target)
  18574. {
  18575. return _target->GetMaxSubSteps ();
  18576. }
  18577. DllExport int
  18578. PhysicsWorld_GetNumIterations (Urho3D::PhysicsWorld *_target)
  18579. {
  18580. return _target->GetNumIterations ();
  18581. }
  18582. DllExport int
  18583. PhysicsWorld_IsUpdateEnabled (Urho3D::PhysicsWorld *_target)
  18584. {
  18585. return _target->IsUpdateEnabled ();
  18586. }
  18587. DllExport int
  18588. PhysicsWorld_GetInterpolation (Urho3D::PhysicsWorld *_target)
  18589. {
  18590. return _target->GetInterpolation ();
  18591. }
  18592. DllExport int
  18593. PhysicsWorld_GetInternalEdge (Urho3D::PhysicsWorld *_target)
  18594. {
  18595. return _target->GetInternalEdge ();
  18596. }
  18597. DllExport int
  18598. PhysicsWorld_GetSplitImpulse (Urho3D::PhysicsWorld *_target)
  18599. {
  18600. return _target->GetSplitImpulse ();
  18601. }
  18602. DllExport int
  18603. PhysicsWorld_GetFps (Urho3D::PhysicsWorld *_target)
  18604. {
  18605. return _target->GetFps ();
  18606. }
  18607. DllExport float
  18608. PhysicsWorld_GetMaxNetworkAngularVelocity (Urho3D::PhysicsWorld *_target)
  18609. {
  18610. return _target->GetMaxNetworkAngularVelocity ();
  18611. }
  18612. DllExport void
  18613. PhysicsWorld_AddRigidBody (Urho3D::PhysicsWorld *_target, Urho3D::RigidBody * body)
  18614. {
  18615. _target->AddRigidBody (body);
  18616. }
  18617. DllExport void
  18618. PhysicsWorld_RemoveRigidBody (Urho3D::PhysicsWorld *_target, Urho3D::RigidBody * body)
  18619. {
  18620. _target->RemoveRigidBody (body);
  18621. }
  18622. DllExport void
  18623. PhysicsWorld_AddCollisionShape (Urho3D::PhysicsWorld *_target, Urho3D::CollisionShape * shape)
  18624. {
  18625. _target->AddCollisionShape (shape);
  18626. }
  18627. DllExport void
  18628. PhysicsWorld_RemoveCollisionShape (Urho3D::PhysicsWorld *_target, Urho3D::CollisionShape * shape)
  18629. {
  18630. _target->RemoveCollisionShape (shape);
  18631. }
  18632. DllExport void
  18633. PhysicsWorld_AddConstraint (Urho3D::PhysicsWorld *_target, Urho3D::Constraint * joint)
  18634. {
  18635. _target->AddConstraint (joint);
  18636. }
  18637. DllExport void
  18638. PhysicsWorld_RemoveConstraint (Urho3D::PhysicsWorld *_target, Urho3D::Constraint * joint)
  18639. {
  18640. _target->RemoveConstraint (joint);
  18641. }
  18642. DllExport void
  18643. PhysicsWorld_DrawDebugGeometry0 (Urho3D::PhysicsWorld *_target, bool depthTest)
  18644. {
  18645. _target->DrawDebugGeometry (depthTest);
  18646. }
  18647. DllExport void
  18648. PhysicsWorld_SetDebugRenderer (Urho3D::PhysicsWorld *_target, Urho3D::DebugRenderer * debug)
  18649. {
  18650. _target->SetDebugRenderer (debug);
  18651. }
  18652. DllExport void
  18653. PhysicsWorld_SetDebugDepthTest (Urho3D::PhysicsWorld *_target, bool enable)
  18654. {
  18655. _target->SetDebugDepthTest (enable);
  18656. }
  18657. DllExport void
  18658. PhysicsWorld_CleanupGeometryCache (Urho3D::PhysicsWorld *_target)
  18659. {
  18660. _target->CleanupGeometryCache ();
  18661. }
  18662. DllExport void
  18663. PhysicsWorld_SetApplyingTransforms (Urho3D::PhysicsWorld *_target, bool enable)
  18664. {
  18665. _target->SetApplyingTransforms (enable);
  18666. }
  18667. DllExport int
  18668. PhysicsWorld_IsApplyingTransforms (Urho3D::PhysicsWorld *_target)
  18669. {
  18670. return _target->IsApplyingTransforms ();
  18671. }
  18672. DllExport int
  18673. PhysicsWorld_IsSimulating (Urho3D::PhysicsWorld *_target)
  18674. {
  18675. return _target->IsSimulating ();
  18676. }
  18677. DllExport int
  18678. RigidBody_GetType (Urho3D::RigidBody *_target)
  18679. {
  18680. return (_target->GetType ()).Value ();
  18681. }
  18682. DllExport const char *
  18683. RigidBody_GetTypeName (Urho3D::RigidBody *_target)
  18684. {
  18685. return stringdup((_target->GetTypeName ()).CString ());
  18686. }
  18687. DllExport int
  18688. RigidBody_GetTypeStatic ()
  18689. {
  18690. return (RigidBody::GetTypeStatic ()).Value ();
  18691. }
  18692. DllExport const char *
  18693. RigidBody_GetTypeNameStatic ()
  18694. {
  18695. return stringdup((RigidBody::GetTypeNameStatic ()).CString ());
  18696. }
  18697. DllExport void *
  18698. RigidBody_RigidBody (Urho3D::Context * context)
  18699. {
  18700. return WeakPtr<RigidBody>(new RigidBody(context));
  18701. }
  18702. DllExport void
  18703. RigidBody_RegisterObject (Urho3D::Context * context)
  18704. {
  18705. RigidBody::RegisterObject (context);
  18706. }
  18707. DllExport void
  18708. RigidBody_ApplyAttributes (Urho3D::RigidBody *_target)
  18709. {
  18710. _target->ApplyAttributes ();
  18711. }
  18712. DllExport void
  18713. RigidBody_OnSetEnabled (Urho3D::RigidBody *_target)
  18714. {
  18715. _target->OnSetEnabled ();
  18716. }
  18717. DllExport void
  18718. RigidBody_DrawDebugGeometry (Urho3D::RigidBody *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  18719. {
  18720. _target->DrawDebugGeometry (debug, depthTest);
  18721. }
  18722. DllExport void
  18723. RigidBody_SetMass (Urho3D::RigidBody *_target, float mass)
  18724. {
  18725. _target->SetMass (mass);
  18726. }
  18727. DllExport void
  18728. RigidBody_SetPosition (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & position)
  18729. {
  18730. _target->SetPosition (position);
  18731. }
  18732. DllExport void
  18733. RigidBody_SetRotation (Urho3D::RigidBody *_target, const class Urho3D::Quaternion & rotation)
  18734. {
  18735. _target->SetRotation (rotation);
  18736. }
  18737. DllExport void
  18738. RigidBody_SetTransform (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation)
  18739. {
  18740. _target->SetTransform (position, rotation);
  18741. }
  18742. DllExport void
  18743. RigidBody_SetLinearVelocity (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & velocity)
  18744. {
  18745. _target->SetLinearVelocity (velocity);
  18746. }
  18747. DllExport void
  18748. RigidBody_SetLinearFactor (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & factor)
  18749. {
  18750. _target->SetLinearFactor (factor);
  18751. }
  18752. DllExport void
  18753. RigidBody_SetLinearRestThreshold (Urho3D::RigidBody *_target, float threshold)
  18754. {
  18755. _target->SetLinearRestThreshold (threshold);
  18756. }
  18757. DllExport void
  18758. RigidBody_SetLinearDamping (Urho3D::RigidBody *_target, float damping)
  18759. {
  18760. _target->SetLinearDamping (damping);
  18761. }
  18762. DllExport void
  18763. RigidBody_SetAngularVelocity (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & angularVelocity)
  18764. {
  18765. _target->SetAngularVelocity (angularVelocity);
  18766. }
  18767. DllExport void
  18768. RigidBody_SetAngularFactor (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & factor)
  18769. {
  18770. _target->SetAngularFactor (factor);
  18771. }
  18772. DllExport void
  18773. RigidBody_SetAngularRestThreshold (Urho3D::RigidBody *_target, float threshold)
  18774. {
  18775. _target->SetAngularRestThreshold (threshold);
  18776. }
  18777. DllExport void
  18778. RigidBody_SetAngularDamping (Urho3D::RigidBody *_target, float factor)
  18779. {
  18780. _target->SetAngularDamping (factor);
  18781. }
  18782. DllExport void
  18783. RigidBody_SetFriction (Urho3D::RigidBody *_target, float friction)
  18784. {
  18785. _target->SetFriction (friction);
  18786. }
  18787. DllExport void
  18788. RigidBody_SetAnisotropicFriction (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & friction)
  18789. {
  18790. _target->SetAnisotropicFriction (friction);
  18791. }
  18792. DllExport void
  18793. RigidBody_SetRollingFriction (Urho3D::RigidBody *_target, float friction)
  18794. {
  18795. _target->SetRollingFriction (friction);
  18796. }
  18797. DllExport void
  18798. RigidBody_SetRestitution (Urho3D::RigidBody *_target, float restitution)
  18799. {
  18800. _target->SetRestitution (restitution);
  18801. }
  18802. DllExport void
  18803. RigidBody_SetContactProcessingThreshold (Urho3D::RigidBody *_target, float threshold)
  18804. {
  18805. _target->SetContactProcessingThreshold (threshold);
  18806. }
  18807. DllExport void
  18808. RigidBody_SetCcdRadius (Urho3D::RigidBody *_target, float radius)
  18809. {
  18810. _target->SetCcdRadius (radius);
  18811. }
  18812. DllExport void
  18813. RigidBody_SetCcdMotionThreshold (Urho3D::RigidBody *_target, float threshold)
  18814. {
  18815. _target->SetCcdMotionThreshold (threshold);
  18816. }
  18817. DllExport void
  18818. RigidBody_SetUseGravity (Urho3D::RigidBody *_target, bool enable)
  18819. {
  18820. _target->SetUseGravity (enable);
  18821. }
  18822. DllExport void
  18823. RigidBody_SetGravityOverride (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & gravity)
  18824. {
  18825. _target->SetGravityOverride (gravity);
  18826. }
  18827. DllExport void
  18828. RigidBody_SetKinematic (Urho3D::RigidBody *_target, bool enable)
  18829. {
  18830. _target->SetKinematic (enable);
  18831. }
  18832. DllExport void
  18833. RigidBody_SetTrigger (Urho3D::RigidBody *_target, bool enable)
  18834. {
  18835. _target->SetTrigger (enable);
  18836. }
  18837. DllExport void
  18838. RigidBody_SetCollisionLayer (Urho3D::RigidBody *_target, unsigned int layer)
  18839. {
  18840. _target->SetCollisionLayer (layer);
  18841. }
  18842. DllExport void
  18843. RigidBody_SetCollisionMask (Urho3D::RigidBody *_target, unsigned int mask)
  18844. {
  18845. _target->SetCollisionMask (mask);
  18846. }
  18847. DllExport void
  18848. RigidBody_SetCollisionLayerAndMask (Urho3D::RigidBody *_target, unsigned int layer, unsigned int mask)
  18849. {
  18850. _target->SetCollisionLayerAndMask (layer, mask);
  18851. }
  18852. DllExport void
  18853. RigidBody_SetCollisionEventMode (Urho3D::RigidBody *_target, enum Urho3D::CollisionEventMode mode)
  18854. {
  18855. _target->SetCollisionEventMode (mode);
  18856. }
  18857. DllExport void
  18858. RigidBody_ApplyForce (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & force)
  18859. {
  18860. _target->ApplyForce (force);
  18861. }
  18862. DllExport void
  18863. RigidBody_ApplyForce0 (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & force, const class Urho3D::Vector3 & position)
  18864. {
  18865. _target->ApplyForce (force, position);
  18866. }
  18867. DllExport void
  18868. RigidBody_ApplyTorque (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & torque)
  18869. {
  18870. _target->ApplyTorque (torque);
  18871. }
  18872. DllExport void
  18873. RigidBody_ApplyImpulse (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & impulse)
  18874. {
  18875. _target->ApplyImpulse (impulse);
  18876. }
  18877. DllExport void
  18878. RigidBody_ApplyImpulse1 (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & impulse, const class Urho3D::Vector3 & position)
  18879. {
  18880. _target->ApplyImpulse (impulse, position);
  18881. }
  18882. DllExport void
  18883. RigidBody_ApplyTorqueImpulse (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & torque)
  18884. {
  18885. _target->ApplyTorqueImpulse (torque);
  18886. }
  18887. DllExport void
  18888. RigidBody_ResetForces (Urho3D::RigidBody *_target)
  18889. {
  18890. _target->ResetForces ();
  18891. }
  18892. DllExport void
  18893. RigidBody_Activate (Urho3D::RigidBody *_target)
  18894. {
  18895. _target->Activate ();
  18896. }
  18897. DllExport void
  18898. RigidBody_ReAddBodyToWorld (Urho3D::RigidBody *_target)
  18899. {
  18900. _target->ReAddBodyToWorld ();
  18901. }
  18902. DllExport void
  18903. RigidBody_DisableMassUpdate (Urho3D::RigidBody *_target)
  18904. {
  18905. _target->DisableMassUpdate ();
  18906. }
  18907. DllExport void
  18908. RigidBody_EnableMassUpdate (Urho3D::RigidBody *_target)
  18909. {
  18910. _target->EnableMassUpdate ();
  18911. }
  18912. DllExport Urho3D::PhysicsWorld *
  18913. RigidBody_GetPhysicsWorld (Urho3D::RigidBody *_target)
  18914. {
  18915. return _target->GetPhysicsWorld ();
  18916. }
  18917. DllExport float
  18918. RigidBody_GetMass (Urho3D::RigidBody *_target)
  18919. {
  18920. return _target->GetMass ();
  18921. }
  18922. DllExport Interop::Vector3
  18923. RigidBody_GetPosition (Urho3D::RigidBody *_target)
  18924. {
  18925. return *((Interop::Vector3 *) &(_target->GetPosition ()));
  18926. }
  18927. DllExport Interop::Quaternion
  18928. RigidBody_GetRotation (Urho3D::RigidBody *_target)
  18929. {
  18930. return *((Interop::Quaternion *) &(_target->GetRotation ()));
  18931. }
  18932. DllExport Interop::Vector3
  18933. RigidBody_GetLinearVelocity (Urho3D::RigidBody *_target)
  18934. {
  18935. return *((Interop::Vector3 *) &(_target->GetLinearVelocity ()));
  18936. }
  18937. DllExport Interop::Vector3
  18938. RigidBody_GetLinearFactor (Urho3D::RigidBody *_target)
  18939. {
  18940. return *((Interop::Vector3 *) &(_target->GetLinearFactor ()));
  18941. }
  18942. DllExport Interop::Vector3
  18943. RigidBody_GetVelocityAtPoint (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & position)
  18944. {
  18945. return *((Interop::Vector3 *) &(_target->GetVelocityAtPoint (position)));
  18946. }
  18947. DllExport float
  18948. RigidBody_GetLinearRestThreshold (Urho3D::RigidBody *_target)
  18949. {
  18950. return _target->GetLinearRestThreshold ();
  18951. }
  18952. DllExport float
  18953. RigidBody_GetLinearDamping (Urho3D::RigidBody *_target)
  18954. {
  18955. return _target->GetLinearDamping ();
  18956. }
  18957. DllExport Interop::Vector3
  18958. RigidBody_GetAngularVelocity (Urho3D::RigidBody *_target)
  18959. {
  18960. return *((Interop::Vector3 *) &(_target->GetAngularVelocity ()));
  18961. }
  18962. DllExport Interop::Vector3
  18963. RigidBody_GetAngularFactor (Urho3D::RigidBody *_target)
  18964. {
  18965. return *((Interop::Vector3 *) &(_target->GetAngularFactor ()));
  18966. }
  18967. DllExport float
  18968. RigidBody_GetAngularRestThreshold (Urho3D::RigidBody *_target)
  18969. {
  18970. return _target->GetAngularRestThreshold ();
  18971. }
  18972. DllExport float
  18973. RigidBody_GetAngularDamping (Urho3D::RigidBody *_target)
  18974. {
  18975. return _target->GetAngularDamping ();
  18976. }
  18977. DllExport float
  18978. RigidBody_GetFriction (Urho3D::RigidBody *_target)
  18979. {
  18980. return _target->GetFriction ();
  18981. }
  18982. DllExport Interop::Vector3
  18983. RigidBody_GetAnisotropicFriction (Urho3D::RigidBody *_target)
  18984. {
  18985. return *((Interop::Vector3 *) &(_target->GetAnisotropicFriction ()));
  18986. }
  18987. DllExport float
  18988. RigidBody_GetRollingFriction (Urho3D::RigidBody *_target)
  18989. {
  18990. return _target->GetRollingFriction ();
  18991. }
  18992. DllExport float
  18993. RigidBody_GetRestitution (Urho3D::RigidBody *_target)
  18994. {
  18995. return _target->GetRestitution ();
  18996. }
  18997. DllExport float
  18998. RigidBody_GetContactProcessingThreshold (Urho3D::RigidBody *_target)
  18999. {
  19000. return _target->GetContactProcessingThreshold ();
  19001. }
  19002. DllExport float
  19003. RigidBody_GetCcdRadius (Urho3D::RigidBody *_target)
  19004. {
  19005. return _target->GetCcdRadius ();
  19006. }
  19007. DllExport float
  19008. RigidBody_GetCcdMotionThreshold (Urho3D::RigidBody *_target)
  19009. {
  19010. return _target->GetCcdMotionThreshold ();
  19011. }
  19012. DllExport int
  19013. RigidBody_GetUseGravity (Urho3D::RigidBody *_target)
  19014. {
  19015. return _target->GetUseGravity ();
  19016. }
  19017. DllExport Interop::Vector3
  19018. RigidBody_GetGravityOverride (Urho3D::RigidBody *_target)
  19019. {
  19020. return *((Interop::Vector3 *) &(_target->GetGravityOverride ()));
  19021. }
  19022. DllExport Interop::Vector3
  19023. RigidBody_GetCenterOfMass (Urho3D::RigidBody *_target)
  19024. {
  19025. return *((Interop::Vector3 *) &(_target->GetCenterOfMass ()));
  19026. }
  19027. DllExport int
  19028. RigidBody_IsKinematic (Urho3D::RigidBody *_target)
  19029. {
  19030. return _target->IsKinematic ();
  19031. }
  19032. DllExport int
  19033. RigidBody_IsTrigger (Urho3D::RigidBody *_target)
  19034. {
  19035. return _target->IsTrigger ();
  19036. }
  19037. DllExport int
  19038. RigidBody_IsActive (Urho3D::RigidBody *_target)
  19039. {
  19040. return _target->IsActive ();
  19041. }
  19042. DllExport unsigned int
  19043. RigidBody_GetCollisionLayer (Urho3D::RigidBody *_target)
  19044. {
  19045. return _target->GetCollisionLayer ();
  19046. }
  19047. DllExport unsigned int
  19048. RigidBody_GetCollisionMask (Urho3D::RigidBody *_target)
  19049. {
  19050. return _target->GetCollisionMask ();
  19051. }
  19052. DllExport enum Urho3D::CollisionEventMode
  19053. RigidBody_GetCollisionEventMode (Urho3D::RigidBody *_target)
  19054. {
  19055. return _target->GetCollisionEventMode ();
  19056. }
  19057. DllExport void
  19058. RigidBody_ApplyWorldTransform (Urho3D::RigidBody *_target, const class Urho3D::Vector3 & newWorldPosition, const class Urho3D::Quaternion & newWorldRotation)
  19059. {
  19060. _target->ApplyWorldTransform (newWorldPosition, newWorldRotation);
  19061. }
  19062. DllExport void
  19063. RigidBody_UpdateMass (Urho3D::RigidBody *_target)
  19064. {
  19065. _target->UpdateMass ();
  19066. }
  19067. DllExport void
  19068. RigidBody_UpdateGravity (Urho3D::RigidBody *_target)
  19069. {
  19070. _target->UpdateGravity ();
  19071. }
  19072. DllExport void
  19073. RigidBody_SetMassAttr (Urho3D::RigidBody *_target, float mass)
  19074. {
  19075. _target->SetMassAttr (mass);
  19076. }
  19077. DllExport void
  19078. RigidBody_SetCollisionLayerAttr (Urho3D::RigidBody *_target, unsigned int layer)
  19079. {
  19080. _target->SetCollisionLayerAttr (layer);
  19081. }
  19082. DllExport void
  19083. RigidBody_SetCollisionMaskAttr (Urho3D::RigidBody *_target, unsigned int mask)
  19084. {
  19085. _target->SetCollisionMaskAttr (mask);
  19086. }
  19087. DllExport void
  19088. RigidBody_SetCollisionEventModeAttr (Urho3D::RigidBody *_target, enum Urho3D::CollisionEventMode mode)
  19089. {
  19090. _target->SetCollisionEventModeAttr (mode);
  19091. }
  19092. DllExport void
  19093. RigidBody_SetKinematicAttr (Urho3D::RigidBody *_target, bool value)
  19094. {
  19095. _target->SetKinematicAttr (value);
  19096. }
  19097. DllExport void
  19098. RigidBody_SetTriggerAttr (Urho3D::RigidBody *_target, bool value)
  19099. {
  19100. _target->SetTriggerAttr (value);
  19101. }
  19102. DllExport void
  19103. RigidBody_AddConstraint (Urho3D::RigidBody *_target, Urho3D::Constraint * constraint)
  19104. {
  19105. _target->AddConstraint (constraint);
  19106. }
  19107. DllExport void
  19108. RigidBody_RemoveConstraint (Urho3D::RigidBody *_target, Urho3D::Constraint * constraint)
  19109. {
  19110. _target->RemoveConstraint (constraint);
  19111. }
  19112. DllExport void
  19113. RigidBody_ReleaseBody (Urho3D::RigidBody *_target)
  19114. {
  19115. _target->ReleaseBody ();
  19116. }
  19117. DllExport int
  19118. JsonFile_GetType (Urho3D::JSONFile *_target)
  19119. {
  19120. return (_target->GetType ()).Value ();
  19121. }
  19122. DllExport const char *
  19123. JsonFile_GetTypeName (Urho3D::JSONFile *_target)
  19124. {
  19125. return stringdup((_target->GetTypeName ()).CString ());
  19126. }
  19127. DllExport int
  19128. JsonFile_GetTypeStatic ()
  19129. {
  19130. return (JSONFile::GetTypeStatic ()).Value ();
  19131. }
  19132. DllExport const char *
  19133. JsonFile_GetTypeNameStatic ()
  19134. {
  19135. return stringdup((JSONFile::GetTypeNameStatic ()).CString ());
  19136. }
  19137. DllExport void *
  19138. JsonFile_JSONFile (Urho3D::Context * context)
  19139. {
  19140. return WeakPtr<JSONFile>(new JSONFile(context));
  19141. }
  19142. DllExport void
  19143. JsonFile_RegisterObject (Urho3D::Context * context)
  19144. {
  19145. JSONFile::RegisterObject (context);
  19146. }
  19147. DllExport int
  19148. JsonFile_BeginLoad_File (Urho3D::JSONFile *_target, File * source)
  19149. {
  19150. return _target->BeginLoad (*source);
  19151. }
  19152. DllExport int
  19153. JsonFile_BeginLoad_MemoryBuffer (Urho3D::JSONFile *_target, MemoryBuffer * source)
  19154. {
  19155. return _target->BeginLoad (*source);
  19156. }
  19157. DllExport int
  19158. JsonFile_Save_File (Urho3D::JSONFile *_target, File * dest)
  19159. {
  19160. return _target->Save (*dest);
  19161. }
  19162. DllExport int
  19163. JsonFile_Save_MemoryBuffer (Urho3D::JSONFile *_target, MemoryBuffer * dest)
  19164. {
  19165. return _target->Save (*dest);
  19166. }
  19167. DllExport int
  19168. JsonFile_Save0_File (Urho3D::JSONFile *_target, File * dest, const char * indendation)
  19169. {
  19170. return _target->Save (*dest, Urho3D::String(indendation));
  19171. }
  19172. DllExport int
  19173. JsonFile_Save0_MemoryBuffer (Urho3D::JSONFile *_target, MemoryBuffer * dest, const char * indendation)
  19174. {
  19175. return _target->Save (*dest, Urho3D::String(indendation));
  19176. }
  19177. DllExport int
  19178. JsonFile_FromString (Urho3D::JSONFile *_target, const char * source)
  19179. {
  19180. return _target->FromString (Urho3D::String(source));
  19181. }
  19182. DllExport int
  19183. PListFile_GetType (Urho3D::PListFile *_target)
  19184. {
  19185. return (_target->GetType ()).Value ();
  19186. }
  19187. DllExport const char *
  19188. PListFile_GetTypeName (Urho3D::PListFile *_target)
  19189. {
  19190. return stringdup((_target->GetTypeName ()).CString ());
  19191. }
  19192. DllExport int
  19193. PListFile_GetTypeStatic ()
  19194. {
  19195. return (PListFile::GetTypeStatic ()).Value ();
  19196. }
  19197. DllExport const char *
  19198. PListFile_GetTypeNameStatic ()
  19199. {
  19200. return stringdup((PListFile::GetTypeNameStatic ()).CString ());
  19201. }
  19202. DllExport void *
  19203. PListFile_PListFile (Urho3D::Context * context)
  19204. {
  19205. return WeakPtr<PListFile>(new PListFile(context));
  19206. }
  19207. DllExport void
  19208. PListFile_RegisterObject (Urho3D::Context * context)
  19209. {
  19210. PListFile::RegisterObject (context);
  19211. }
  19212. DllExport int
  19213. PListFile_BeginLoad_File (Urho3D::PListFile *_target, File * source)
  19214. {
  19215. return _target->BeginLoad (*source);
  19216. }
  19217. DllExport int
  19218. PListFile_BeginLoad_MemoryBuffer (Urho3D::PListFile *_target, MemoryBuffer * source)
  19219. {
  19220. return _target->BeginLoad (*source);
  19221. }
  19222. DllExport int
  19223. Localization_GetType (Urho3D::Localization *_target)
  19224. {
  19225. return (_target->GetType ()).Value ();
  19226. }
  19227. DllExport const char *
  19228. Localization_GetTypeName (Urho3D::Localization *_target)
  19229. {
  19230. return stringdup((_target->GetTypeName ()).CString ());
  19231. }
  19232. DllExport int
  19233. Localization_GetTypeStatic ()
  19234. {
  19235. return (Localization::GetTypeStatic ()).Value ();
  19236. }
  19237. DllExport const char *
  19238. Localization_GetTypeNameStatic ()
  19239. {
  19240. return stringdup((Localization::GetTypeNameStatic ()).CString ());
  19241. }
  19242. DllExport void *
  19243. Localization_Localization (Urho3D::Context * context)
  19244. {
  19245. return WeakPtr<Localization>(new Localization(context));
  19246. }
  19247. DllExport int
  19248. Localization_GetNumLanguages (Urho3D::Localization *_target)
  19249. {
  19250. return _target->GetNumLanguages ();
  19251. }
  19252. DllExport int
  19253. Localization_GetLanguageIndex (Urho3D::Localization *_target)
  19254. {
  19255. return _target->GetLanguageIndex ();
  19256. }
  19257. DllExport int
  19258. Localization_GetLanguageIndex0 (Urho3D::Localization *_target, const char * language)
  19259. {
  19260. return _target->GetLanguageIndex (Urho3D::String(language));
  19261. }
  19262. DllExport const char *
  19263. Localization_GetLanguage (Urho3D::Localization *_target)
  19264. {
  19265. return stringdup((_target->GetLanguage ()).CString ());
  19266. }
  19267. DllExport const char *
  19268. Localization_GetLanguage1 (Urho3D::Localization *_target, int index)
  19269. {
  19270. return stringdup((_target->GetLanguage (index)).CString ());
  19271. }
  19272. DllExport void
  19273. Localization_SetLanguage (Urho3D::Localization *_target, int index)
  19274. {
  19275. _target->SetLanguage (index);
  19276. }
  19277. DllExport void
  19278. Localization_SetLanguage2 (Urho3D::Localization *_target, const char * language)
  19279. {
  19280. _target->SetLanguage (Urho3D::String(language));
  19281. }
  19282. DllExport const char *
  19283. Localization_Get (Urho3D::Localization *_target, const char * id)
  19284. {
  19285. return stringdup((_target->Get (Urho3D::String(id))).CString ());
  19286. }
  19287. DllExport void
  19288. Localization_Reset (Urho3D::Localization *_target)
  19289. {
  19290. _target->Reset ();
  19291. }
  19292. DllExport void
  19293. Localization_LoadJSONFile (Urho3D::Localization *_target, const char * name)
  19294. {
  19295. _target->LoadJSONFile (Urho3D::String(name));
  19296. }
  19297. DllExport int
  19298. ResourceCache_GetType (Urho3D::ResourceCache *_target)
  19299. {
  19300. return (_target->GetType ()).Value ();
  19301. }
  19302. DllExport const char *
  19303. ResourceCache_GetTypeName (Urho3D::ResourceCache *_target)
  19304. {
  19305. return stringdup((_target->GetTypeName ()).CString ());
  19306. }
  19307. DllExport int
  19308. ResourceCache_GetTypeStatic ()
  19309. {
  19310. return (ResourceCache::GetTypeStatic ()).Value ();
  19311. }
  19312. DllExport const char *
  19313. ResourceCache_GetTypeNameStatic ()
  19314. {
  19315. return stringdup((ResourceCache::GetTypeNameStatic ()).CString ());
  19316. }
  19317. DllExport void *
  19318. ResourceCache_ResourceCache (Urho3D::Context * context)
  19319. {
  19320. return WeakPtr<ResourceCache>(new ResourceCache(context));
  19321. }
  19322. DllExport int
  19323. ResourceCache_AddResourceDir (Urho3D::ResourceCache *_target, const char * pathName, unsigned int priority)
  19324. {
  19325. return _target->AddResourceDir (Urho3D::String(pathName), priority);
  19326. }
  19327. DllExport int
  19328. ResourceCache_AddPackageFile (Urho3D::ResourceCache *_target, Urho3D::PackageFile * package, unsigned int priority)
  19329. {
  19330. return _target->AddPackageFile (package, priority);
  19331. }
  19332. DllExport int
  19333. ResourceCache_AddPackageFile0 (Urho3D::ResourceCache *_target, const char * fileName, unsigned int priority)
  19334. {
  19335. return _target->AddPackageFile (Urho3D::String(fileName), priority);
  19336. }
  19337. DllExport int
  19338. ResourceCache_AddManualResource (Urho3D::ResourceCache *_target, Urho3D::Resource * resource)
  19339. {
  19340. return _target->AddManualResource (resource);
  19341. }
  19342. DllExport void
  19343. ResourceCache_RemoveResourceDir (Urho3D::ResourceCache *_target, const char * pathName)
  19344. {
  19345. _target->RemoveResourceDir (Urho3D::String(pathName));
  19346. }
  19347. DllExport void
  19348. ResourceCache_RemovePackageFile (Urho3D::ResourceCache *_target, Urho3D::PackageFile * package, bool releaseResources, bool forceRelease)
  19349. {
  19350. _target->RemovePackageFile (package, releaseResources, forceRelease);
  19351. }
  19352. DllExport void
  19353. ResourceCache_RemovePackageFile1 (Urho3D::ResourceCache *_target, const char * fileName, bool releaseResources, bool forceRelease)
  19354. {
  19355. _target->RemovePackageFile (Urho3D::String(fileName), releaseResources, forceRelease);
  19356. }
  19357. DllExport void
  19358. ResourceCache_ReleaseResource (Urho3D::ResourceCache *_target, int type, const char * name, bool force)
  19359. {
  19360. _target->ReleaseResource (Urho3D::StringHash(type), Urho3D::String(name), force);
  19361. }
  19362. DllExport void
  19363. ResourceCache_ReleaseResources (Urho3D::ResourceCache *_target, int type, bool force)
  19364. {
  19365. _target->ReleaseResources (Urho3D::StringHash(type), force);
  19366. }
  19367. DllExport void
  19368. ResourceCache_ReleaseResources2 (Urho3D::ResourceCache *_target, int type, const char * partialName, bool force)
  19369. {
  19370. _target->ReleaseResources (Urho3D::StringHash(type), Urho3D::String(partialName), force);
  19371. }
  19372. DllExport void
  19373. ResourceCache_ReleaseResources3 (Urho3D::ResourceCache *_target, const char * partialName, bool force)
  19374. {
  19375. _target->ReleaseResources (Urho3D::String(partialName), force);
  19376. }
  19377. DllExport void
  19378. ResourceCache_ReleaseAllResources (Urho3D::ResourceCache *_target, bool force)
  19379. {
  19380. _target->ReleaseAllResources (force);
  19381. }
  19382. DllExport int
  19383. ResourceCache_ReloadResource (Urho3D::ResourceCache *_target, Urho3D::Resource * resource)
  19384. {
  19385. return _target->ReloadResource (resource);
  19386. }
  19387. DllExport void
  19388. ResourceCache_ReloadResourceWithDependencies (Urho3D::ResourceCache *_target, const char * fileName)
  19389. {
  19390. _target->ReloadResourceWithDependencies (Urho3D::String(fileName));
  19391. }
  19392. DllExport void
  19393. ResourceCache_SetMemoryBudget (Urho3D::ResourceCache *_target, int type, unsigned long long budget)
  19394. {
  19395. _target->SetMemoryBudget (Urho3D::StringHash(type), budget);
  19396. }
  19397. DllExport void
  19398. ResourceCache_SetAutoReloadResources (Urho3D::ResourceCache *_target, bool enable)
  19399. {
  19400. _target->SetAutoReloadResources (enable);
  19401. }
  19402. DllExport void
  19403. ResourceCache_SetReturnFailedResources (Urho3D::ResourceCache *_target, bool enable)
  19404. {
  19405. _target->SetReturnFailedResources (enable);
  19406. }
  19407. DllExport void
  19408. ResourceCache_SetSearchPackagesFirst (Urho3D::ResourceCache *_target, bool value)
  19409. {
  19410. _target->SetSearchPackagesFirst (value);
  19411. }
  19412. DllExport void
  19413. ResourceCache_SetFinishBackgroundResourcesMs (Urho3D::ResourceCache *_target, int ms)
  19414. {
  19415. _target->SetFinishBackgroundResourcesMs (ms);
  19416. }
  19417. DllExport void
  19418. ResourceCache_AddResourceRouter (Urho3D::ResourceCache *_target, Urho3D::ResourceRouter * router, bool addAsFirst)
  19419. {
  19420. _target->AddResourceRouter (router, addAsFirst);
  19421. }
  19422. DllExport void
  19423. ResourceCache_RemoveResourceRouter (Urho3D::ResourceCache *_target, Urho3D::ResourceRouter * router)
  19424. {
  19425. _target->RemoveResourceRouter (router);
  19426. }
  19427. DllExport Urho3D::File *
  19428. ResourceCache_GetFile (Urho3D::ResourceCache *_target, const char * name, bool sendEventOnFailure)
  19429. {
  19430. auto copy = _target->GetFile (Urho3D::String(name), sendEventOnFailure);
  19431. auto plain = copy.Get();
  19432. copy.Detach();
  19433. delete copy;
  19434. return plain;
  19435. }
  19436. DllExport Urho3D::Resource *
  19437. ResourceCache_GetResource (Urho3D::ResourceCache *_target, int type, const char * name, bool sendEventOnFailure)
  19438. {
  19439. return _target->GetResource (Urho3D::StringHash(type), Urho3D::String(name), sendEventOnFailure);
  19440. }
  19441. DllExport Urho3D::Resource *
  19442. ResourceCache_GetTempResource (Urho3D::ResourceCache *_target, int type, const char * name, bool sendEventOnFailure)
  19443. {
  19444. auto copy = _target->GetTempResource (Urho3D::StringHash(type), Urho3D::String(name), sendEventOnFailure);
  19445. auto plain = copy.Get();
  19446. copy.Detach();
  19447. delete copy;
  19448. return plain;
  19449. }
  19450. DllExport int
  19451. ResourceCache_BackgroundLoadResource (Urho3D::ResourceCache *_target, int type, const char * name, bool sendEventOnFailure, Urho3D::Resource * caller)
  19452. {
  19453. return _target->BackgroundLoadResource (Urho3D::StringHash(type), Urho3D::String(name), sendEventOnFailure, caller);
  19454. }
  19455. DllExport unsigned int
  19456. ResourceCache_GetNumBackgroundLoadResources (Urho3D::ResourceCache *_target)
  19457. {
  19458. return _target->GetNumBackgroundLoadResources ();
  19459. }
  19460. DllExport Urho3D::Resource *
  19461. ResourceCache_GetExistingResource (Urho3D::ResourceCache *_target, int type, const char * name)
  19462. {
  19463. return _target->GetExistingResource (Urho3D::StringHash(type), Urho3D::String(name));
  19464. }
  19465. DllExport const Vector<SharedPtr<class Urho3D::PackageFile> > &
  19466. ResourceCache_GetPackageFiles (Urho3D::ResourceCache *_target)
  19467. {
  19468. return _target->GetPackageFiles ();
  19469. }
  19470. DllExport int
  19471. ResourceCache_Exists (Urho3D::ResourceCache *_target, const char * name)
  19472. {
  19473. return _target->Exists (Urho3D::String(name));
  19474. }
  19475. DllExport unsigned long long
  19476. ResourceCache_GetMemoryBudget (Urho3D::ResourceCache *_target, int type)
  19477. {
  19478. return _target->GetMemoryBudget (Urho3D::StringHash(type));
  19479. }
  19480. DllExport unsigned long long
  19481. ResourceCache_GetMemoryUse (Urho3D::ResourceCache *_target, int type)
  19482. {
  19483. return _target->GetMemoryUse (Urho3D::StringHash(type));
  19484. }
  19485. DllExport unsigned long long
  19486. ResourceCache_GetTotalMemoryUse (Urho3D::ResourceCache *_target)
  19487. {
  19488. return _target->GetTotalMemoryUse ();
  19489. }
  19490. DllExport const char *
  19491. ResourceCache_GetResourceFileName (Urho3D::ResourceCache *_target, const char * name)
  19492. {
  19493. return stringdup((_target->GetResourceFileName (Urho3D::String(name))).CString ());
  19494. }
  19495. DllExport int
  19496. ResourceCache_GetAutoReloadResources (Urho3D::ResourceCache *_target)
  19497. {
  19498. return _target->GetAutoReloadResources ();
  19499. }
  19500. DllExport int
  19501. ResourceCache_GetReturnFailedResources (Urho3D::ResourceCache *_target)
  19502. {
  19503. return _target->GetReturnFailedResources ();
  19504. }
  19505. DllExport int
  19506. ResourceCache_GetSearchPackagesFirst (Urho3D::ResourceCache *_target)
  19507. {
  19508. return _target->GetSearchPackagesFirst ();
  19509. }
  19510. DllExport int
  19511. ResourceCache_GetFinishBackgroundResourcesMs (Urho3D::ResourceCache *_target)
  19512. {
  19513. return _target->GetFinishBackgroundResourcesMs ();
  19514. }
  19515. DllExport Urho3D::ResourceRouter *
  19516. ResourceCache_GetResourceRouter (Urho3D::ResourceCache *_target, unsigned int index)
  19517. {
  19518. return _target->GetResourceRouter (index);
  19519. }
  19520. DllExport const char *
  19521. ResourceCache_GetPreferredResourceDir (Urho3D::ResourceCache *_target, const char * path)
  19522. {
  19523. return stringdup((_target->GetPreferredResourceDir (Urho3D::String(path))).CString ());
  19524. }
  19525. DllExport const char *
  19526. ResourceCache_SanitateResourceName (Urho3D::ResourceCache *_target, const char * name)
  19527. {
  19528. return stringdup((_target->SanitateResourceName (Urho3D::String(name))).CString ());
  19529. }
  19530. DllExport const char *
  19531. ResourceCache_SanitateResourceDirName (Urho3D::ResourceCache *_target, const char * name)
  19532. {
  19533. return stringdup((_target->SanitateResourceDirName (Urho3D::String(name))).CString ());
  19534. }
  19535. DllExport void
  19536. ResourceCache_StoreResourceDependency (Urho3D::ResourceCache *_target, Urho3D::Resource * resource, const char * dependency)
  19537. {
  19538. _target->StoreResourceDependency (resource, Urho3D::String(dependency));
  19539. }
  19540. DllExport void
  19541. ResourceCache_ResetDependencies (Urho3D::ResourceCache *_target, Urho3D::Resource * resource)
  19542. {
  19543. _target->ResetDependencies (resource);
  19544. }
  19545. DllExport const char *
  19546. ResourceCache_PrintMemoryUsage (Urho3D::ResourceCache *_target)
  19547. {
  19548. return stringdup((_target->PrintMemoryUsage ()).CString ());
  19549. }
  19550. DllExport int
  19551. LogicComponent_GetType (Urho3D::LogicComponent *_target)
  19552. {
  19553. return (_target->GetType ()).Value ();
  19554. }
  19555. DllExport const char *
  19556. LogicComponent_GetTypeName (Urho3D::LogicComponent *_target)
  19557. {
  19558. return stringdup((_target->GetTypeName ()).CString ());
  19559. }
  19560. DllExport int
  19561. LogicComponent_GetTypeStatic ()
  19562. {
  19563. return (LogicComponent::GetTypeStatic ()).Value ();
  19564. }
  19565. DllExport const char *
  19566. LogicComponent_GetTypeNameStatic ()
  19567. {
  19568. return stringdup((LogicComponent::GetTypeNameStatic ()).CString ());
  19569. }
  19570. DllExport void *
  19571. LogicComponent_LogicComponent (Urho3D::Context * context)
  19572. {
  19573. return WeakPtr<LogicComponent>(new LogicComponent(context));
  19574. }
  19575. DllExport void
  19576. LogicComponent_OnSetEnabled (Urho3D::LogicComponent *_target)
  19577. {
  19578. _target->OnSetEnabled ();
  19579. }
  19580. DllExport void
  19581. LogicComponent_Start (Urho3D::LogicComponent *_target)
  19582. {
  19583. _target->Start ();
  19584. }
  19585. DllExport void
  19586. LogicComponent_DelayedStart (Urho3D::LogicComponent *_target)
  19587. {
  19588. _target->DelayedStart ();
  19589. }
  19590. DllExport void
  19591. LogicComponent_Stop (Urho3D::LogicComponent *_target)
  19592. {
  19593. _target->Stop ();
  19594. }
  19595. DllExport void
  19596. LogicComponent_Update (Urho3D::LogicComponent *_target, float timeStep)
  19597. {
  19598. _target->Update (timeStep);
  19599. }
  19600. DllExport void
  19601. LogicComponent_PostUpdate (Urho3D::LogicComponent *_target, float timeStep)
  19602. {
  19603. _target->PostUpdate (timeStep);
  19604. }
  19605. DllExport void
  19606. LogicComponent_FixedUpdate (Urho3D::LogicComponent *_target, float timeStep)
  19607. {
  19608. _target->FixedUpdate (timeStep);
  19609. }
  19610. DllExport void
  19611. LogicComponent_FixedPostUpdate (Urho3D::LogicComponent *_target, float timeStep)
  19612. {
  19613. _target->FixedPostUpdate (timeStep);
  19614. }
  19615. DllExport void
  19616. LogicComponent_SetUpdateEventMask (Urho3D::LogicComponent *_target, unsigned char mask)
  19617. {
  19618. _target->SetUpdateEventMask (mask);
  19619. }
  19620. DllExport unsigned char
  19621. LogicComponent_GetUpdateEventMask (Urho3D::LogicComponent *_target)
  19622. {
  19623. return _target->GetUpdateEventMask ();
  19624. }
  19625. DllExport int
  19626. LogicComponent_IsDelayedStartCalled (Urho3D::LogicComponent *_target)
  19627. {
  19628. return _target->IsDelayedStartCalled ();
  19629. }
  19630. DllExport int
  19631. ObjectAnimation_GetType (Urho3D::ObjectAnimation *_target)
  19632. {
  19633. return (_target->GetType ()).Value ();
  19634. }
  19635. DllExport const char *
  19636. ObjectAnimation_GetTypeName (Urho3D::ObjectAnimation *_target)
  19637. {
  19638. return stringdup((_target->GetTypeName ()).CString ());
  19639. }
  19640. DllExport int
  19641. ObjectAnimation_GetTypeStatic ()
  19642. {
  19643. return (ObjectAnimation::GetTypeStatic ()).Value ();
  19644. }
  19645. DllExport const char *
  19646. ObjectAnimation_GetTypeNameStatic ()
  19647. {
  19648. return stringdup((ObjectAnimation::GetTypeNameStatic ()).CString ());
  19649. }
  19650. DllExport void *
  19651. ObjectAnimation_ObjectAnimation (Urho3D::Context * context)
  19652. {
  19653. return WeakPtr<ObjectAnimation>(new ObjectAnimation(context));
  19654. }
  19655. DllExport void
  19656. ObjectAnimation_RegisterObject (Urho3D::Context * context)
  19657. {
  19658. ObjectAnimation::RegisterObject (context);
  19659. }
  19660. DllExport int
  19661. ObjectAnimation_BeginLoad_File (Urho3D::ObjectAnimation *_target, File * source)
  19662. {
  19663. return _target->BeginLoad (*source);
  19664. }
  19665. DllExport int
  19666. ObjectAnimation_BeginLoad_MemoryBuffer (Urho3D::ObjectAnimation *_target, MemoryBuffer * source)
  19667. {
  19668. return _target->BeginLoad (*source);
  19669. }
  19670. DllExport int
  19671. ObjectAnimation_Save_File (Urho3D::ObjectAnimation *_target, File * dest)
  19672. {
  19673. return _target->Save (*dest);
  19674. }
  19675. DllExport int
  19676. ObjectAnimation_Save_MemoryBuffer (Urho3D::ObjectAnimation *_target, MemoryBuffer * dest)
  19677. {
  19678. return _target->Save (*dest);
  19679. }
  19680. DllExport int
  19681. ObjectAnimation_LoadXML (Urho3D::ObjectAnimation *_target, const class Urho3D::XMLElement & source)
  19682. {
  19683. return _target->LoadXML (source);
  19684. }
  19685. DllExport int
  19686. ObjectAnimation_SaveXML (Urho3D::ObjectAnimation *_target, Urho3D::XMLElement & dest)
  19687. {
  19688. return _target->SaveXML (dest);
  19689. }
  19690. DllExport void
  19691. ObjectAnimation_AddAttributeAnimation (Urho3D::ObjectAnimation *_target, const char * name, Urho3D::ValueAnimation * attributeAnimation, enum Urho3D::WrapMode wrapMode, float speed)
  19692. {
  19693. _target->AddAttributeAnimation (Urho3D::String(name), attributeAnimation, wrapMode, speed);
  19694. }
  19695. DllExport void
  19696. ObjectAnimation_RemoveAttributeAnimation (Urho3D::ObjectAnimation *_target, const char * name)
  19697. {
  19698. _target->RemoveAttributeAnimation (Urho3D::String(name));
  19699. }
  19700. DllExport void
  19701. ObjectAnimation_RemoveAttributeAnimation0 (Urho3D::ObjectAnimation *_target, Urho3D::ValueAnimation * attributeAnimation)
  19702. {
  19703. _target->RemoveAttributeAnimation (attributeAnimation);
  19704. }
  19705. DllExport Urho3D::ValueAnimation *
  19706. ObjectAnimation_GetAttributeAnimation (Urho3D::ObjectAnimation *_target, const char * name)
  19707. {
  19708. return _target->GetAttributeAnimation (Urho3D::String(name));
  19709. }
  19710. DllExport enum Urho3D::WrapMode
  19711. ObjectAnimation_GetAttributeAnimationWrapMode (Urho3D::ObjectAnimation *_target, const char * name)
  19712. {
  19713. return _target->GetAttributeAnimationWrapMode (Urho3D::String(name));
  19714. }
  19715. DllExport float
  19716. ObjectAnimation_GetAttributeAnimationSpeed (Urho3D::ObjectAnimation *_target, const char * name)
  19717. {
  19718. return _target->GetAttributeAnimationSpeed (Urho3D::String(name));
  19719. }
  19720. DllExport Urho3D::ValueAnimationInfo *
  19721. ObjectAnimation_GetAttributeAnimationInfo (Urho3D::ObjectAnimation *_target, const char * name)
  19722. {
  19723. return _target->GetAttributeAnimationInfo (Urho3D::String(name));
  19724. }
  19725. DllExport int
  19726. Scene_GetType (Urho3D::Scene *_target)
  19727. {
  19728. return (_target->GetType ()).Value ();
  19729. }
  19730. DllExport const char *
  19731. Scene_GetTypeName (Urho3D::Scene *_target)
  19732. {
  19733. return stringdup((_target->GetTypeName ()).CString ());
  19734. }
  19735. DllExport int
  19736. Scene_GetTypeStatic ()
  19737. {
  19738. return (Scene::GetTypeStatic ()).Value ();
  19739. }
  19740. DllExport const char *
  19741. Scene_GetTypeNameStatic ()
  19742. {
  19743. return stringdup((Scene::GetTypeNameStatic ()).CString ());
  19744. }
  19745. DllExport void *
  19746. Scene_Scene (Urho3D::Context * context)
  19747. {
  19748. return WeakPtr<Scene>(new Scene(context));
  19749. }
  19750. DllExport void
  19751. Scene_RegisterObject (Urho3D::Context * context)
  19752. {
  19753. Scene::RegisterObject (context);
  19754. }
  19755. DllExport int
  19756. Scene_Load_File (Urho3D::Scene *_target, File * source, bool setInstanceDefault)
  19757. {
  19758. return _target->Load (*source, setInstanceDefault);
  19759. }
  19760. DllExport int
  19761. Scene_Load_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * source, bool setInstanceDefault)
  19762. {
  19763. return _target->Load (*source, setInstanceDefault);
  19764. }
  19765. DllExport int
  19766. Scene_Save_File (Urho3D::Scene *_target, File * dest)
  19767. {
  19768. return _target->Save (*dest);
  19769. }
  19770. DllExport int
  19771. Scene_Save_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * dest)
  19772. {
  19773. return _target->Save (*dest);
  19774. }
  19775. DllExport int
  19776. Scene_LoadXML (Urho3D::Scene *_target, const class Urho3D::XMLElement & source, bool setInstanceDefault)
  19777. {
  19778. return _target->LoadXML (source, setInstanceDefault);
  19779. }
  19780. DllExport void
  19781. Scene_MarkNetworkUpdate (Urho3D::Scene *_target)
  19782. {
  19783. _target->MarkNetworkUpdate ();
  19784. }
  19785. DllExport void
  19786. Scene_AddReplicationState (Urho3D::Scene *_target, Urho3D::NodeReplicationState * state)
  19787. {
  19788. _target->AddReplicationState (state);
  19789. }
  19790. DllExport int
  19791. Scene_LoadXML0_File (Urho3D::Scene *_target, File * source)
  19792. {
  19793. return _target->LoadXML (*source);
  19794. }
  19795. DllExport int
  19796. Scene_LoadXML0_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * source)
  19797. {
  19798. return _target->LoadXML (*source);
  19799. }
  19800. DllExport int
  19801. Scene_LoadJSON_File (Urho3D::Scene *_target, File * source)
  19802. {
  19803. return _target->LoadJSON (*source);
  19804. }
  19805. DllExport int
  19806. Scene_LoadJSON_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * source)
  19807. {
  19808. return _target->LoadJSON (*source);
  19809. }
  19810. DllExport int
  19811. Scene_SaveXML_File (Urho3D::Scene *_target, File * dest, const char * indentation)
  19812. {
  19813. return _target->SaveXML (*dest, Urho3D::String(indentation));
  19814. }
  19815. DllExport int
  19816. Scene_SaveXML_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * dest, const char * indentation)
  19817. {
  19818. return _target->SaveXML (*dest, Urho3D::String(indentation));
  19819. }
  19820. DllExport int
  19821. Scene_SaveJSON_File (Urho3D::Scene *_target, File * dest, const char * indentation)
  19822. {
  19823. return _target->SaveJSON (*dest, Urho3D::String(indentation));
  19824. }
  19825. DllExport int
  19826. Scene_SaveJSON_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * dest, const char * indentation)
  19827. {
  19828. return _target->SaveJSON (*dest, Urho3D::String(indentation));
  19829. }
  19830. DllExport int
  19831. Scene_LoadAsync (Urho3D::Scene *_target, Urho3D::File * file, enum Urho3D::LoadMode mode)
  19832. {
  19833. return _target->LoadAsync (file, mode);
  19834. }
  19835. DllExport int
  19836. Scene_LoadAsyncXML (Urho3D::Scene *_target, Urho3D::File * file, enum Urho3D::LoadMode mode)
  19837. {
  19838. return _target->LoadAsyncXML (file, mode);
  19839. }
  19840. DllExport int
  19841. Scene_LoadAsyncJSON (Urho3D::Scene *_target, Urho3D::File * file, enum Urho3D::LoadMode mode)
  19842. {
  19843. return _target->LoadAsyncJSON (file, mode);
  19844. }
  19845. DllExport void
  19846. Scene_StopAsyncLoading (Urho3D::Scene *_target)
  19847. {
  19848. _target->StopAsyncLoading ();
  19849. }
  19850. DllExport Urho3D::Node *
  19851. Scene_Instantiate_File (Urho3D::Scene *_target, File * source, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, enum Urho3D::CreateMode mode)
  19852. {
  19853. return _target->Instantiate (*source, position, rotation, mode);
  19854. }
  19855. DllExport Urho3D::Node *
  19856. Scene_Instantiate_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * source, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, enum Urho3D::CreateMode mode)
  19857. {
  19858. return _target->Instantiate (*source, position, rotation, mode);
  19859. }
  19860. DllExport Urho3D::Node *
  19861. Scene_InstantiateXML (Urho3D::Scene *_target, const class Urho3D::XMLElement & source, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, enum Urho3D::CreateMode mode)
  19862. {
  19863. return _target->InstantiateXML (source, position, rotation, mode);
  19864. }
  19865. DllExport Urho3D::Node *
  19866. Scene_InstantiateXML1_File (Urho3D::Scene *_target, File * source, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, enum Urho3D::CreateMode mode)
  19867. {
  19868. return _target->InstantiateXML (*source, position, rotation, mode);
  19869. }
  19870. DllExport Urho3D::Node *
  19871. Scene_InstantiateXML1_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * source, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, enum Urho3D::CreateMode mode)
  19872. {
  19873. return _target->InstantiateXML (*source, position, rotation, mode);
  19874. }
  19875. DllExport Urho3D::Node *
  19876. Scene_InstantiateJSON_File (Urho3D::Scene *_target, File * source, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, enum Urho3D::CreateMode mode)
  19877. {
  19878. return _target->InstantiateJSON (*source, position, rotation, mode);
  19879. }
  19880. DllExport Urho3D::Node *
  19881. Scene_InstantiateJSON_MemoryBuffer (Urho3D::Scene *_target, MemoryBuffer * source, const class Urho3D::Vector3 & position, const class Urho3D::Quaternion & rotation, enum Urho3D::CreateMode mode)
  19882. {
  19883. return _target->InstantiateJSON (*source, position, rotation, mode);
  19884. }
  19885. DllExport void
  19886. Scene_Clear (Urho3D::Scene *_target, bool clearReplicated, bool clearLocal)
  19887. {
  19888. _target->Clear (clearReplicated, clearLocal);
  19889. }
  19890. DllExport void
  19891. Scene_SetUpdateEnabled (Urho3D::Scene *_target, bool enable)
  19892. {
  19893. _target->SetUpdateEnabled (enable);
  19894. }
  19895. DllExport void
  19896. Scene_SetTimeScale (Urho3D::Scene *_target, float scale)
  19897. {
  19898. _target->SetTimeScale (scale);
  19899. }
  19900. DllExport void
  19901. Scene_SetElapsedTime (Urho3D::Scene *_target, float time)
  19902. {
  19903. _target->SetElapsedTime (time);
  19904. }
  19905. DllExport void
  19906. Scene_SetSmoothingConstant (Urho3D::Scene *_target, float constant)
  19907. {
  19908. _target->SetSmoothingConstant (constant);
  19909. }
  19910. DllExport void
  19911. Scene_SetSnapThreshold (Urho3D::Scene *_target, float threshold)
  19912. {
  19913. _target->SetSnapThreshold (threshold);
  19914. }
  19915. DllExport void
  19916. Scene_SetAsyncLoadingMs (Urho3D::Scene *_target, int ms)
  19917. {
  19918. _target->SetAsyncLoadingMs (ms);
  19919. }
  19920. DllExport void
  19921. Scene_AddRequiredPackageFile (Urho3D::Scene *_target, Urho3D::PackageFile * package)
  19922. {
  19923. _target->AddRequiredPackageFile (package);
  19924. }
  19925. DllExport void
  19926. Scene_ClearRequiredPackageFiles (Urho3D::Scene *_target)
  19927. {
  19928. _target->ClearRequiredPackageFiles ();
  19929. }
  19930. DllExport void
  19931. Scene_RegisterVar (Urho3D::Scene *_target, const char * name)
  19932. {
  19933. _target->RegisterVar (Urho3D::String(name));
  19934. }
  19935. DllExport void
  19936. Scene_UnregisterVar (Urho3D::Scene *_target, const char * name)
  19937. {
  19938. _target->UnregisterVar (Urho3D::String(name));
  19939. }
  19940. DllExport void
  19941. Scene_UnregisterAllVars (Urho3D::Scene *_target)
  19942. {
  19943. _target->UnregisterAllVars ();
  19944. }
  19945. DllExport Urho3D::Node *
  19946. Scene_GetNode (Urho3D::Scene *_target, unsigned int id)
  19947. {
  19948. return _target->GetNode (id);
  19949. }
  19950. DllExport Urho3D::Component *
  19951. Scene_GetComponent (Urho3D::Scene *_target, unsigned int id)
  19952. {
  19953. return _target->GetComponent (id);
  19954. }
  19955. DllExport int
  19956. Scene_IsUpdateEnabled (Urho3D::Scene *_target)
  19957. {
  19958. return _target->IsUpdateEnabled ();
  19959. }
  19960. DllExport int
  19961. Scene_IsAsyncLoading (Urho3D::Scene *_target)
  19962. {
  19963. return _target->IsAsyncLoading ();
  19964. }
  19965. DllExport float
  19966. Scene_GetAsyncProgress (Urho3D::Scene *_target)
  19967. {
  19968. return _target->GetAsyncProgress ();
  19969. }
  19970. DllExport enum Urho3D::LoadMode
  19971. Scene_GetAsyncLoadMode (Urho3D::Scene *_target)
  19972. {
  19973. return _target->GetAsyncLoadMode ();
  19974. }
  19975. DllExport const char *
  19976. Scene_GetFileName (Urho3D::Scene *_target)
  19977. {
  19978. return stringdup((_target->GetFileName ()).CString ());
  19979. }
  19980. DllExport unsigned int
  19981. Scene_GetChecksum (Urho3D::Scene *_target)
  19982. {
  19983. return _target->GetChecksum ();
  19984. }
  19985. DllExport float
  19986. Scene_GetTimeScale (Urho3D::Scene *_target)
  19987. {
  19988. return _target->GetTimeScale ();
  19989. }
  19990. DllExport float
  19991. Scene_GetElapsedTime (Urho3D::Scene *_target)
  19992. {
  19993. return _target->GetElapsedTime ();
  19994. }
  19995. DllExport float
  19996. Scene_GetSmoothingConstant (Urho3D::Scene *_target)
  19997. {
  19998. return _target->GetSmoothingConstant ();
  19999. }
  20000. DllExport float
  20001. Scene_GetSnapThreshold (Urho3D::Scene *_target)
  20002. {
  20003. return _target->GetSnapThreshold ();
  20004. }
  20005. DllExport int
  20006. Scene_GetAsyncLoadingMs (Urho3D::Scene *_target)
  20007. {
  20008. return _target->GetAsyncLoadingMs ();
  20009. }
  20010. DllExport const Vector<SharedPtr<class Urho3D::PackageFile> > &
  20011. Scene_GetRequiredPackageFiles (Urho3D::Scene *_target)
  20012. {
  20013. return _target->GetRequiredPackageFiles ();
  20014. }
  20015. DllExport const char *
  20016. Scene_GetVarName (Urho3D::Scene *_target, int hash)
  20017. {
  20018. return stringdup((_target->GetVarName (Urho3D::StringHash(hash))).CString ());
  20019. }
  20020. DllExport void
  20021. Scene_Update (Urho3D::Scene *_target, float timeStep)
  20022. {
  20023. _target->Update (timeStep);
  20024. }
  20025. DllExport void
  20026. Scene_BeginThreadedUpdate (Urho3D::Scene *_target)
  20027. {
  20028. _target->BeginThreadedUpdate ();
  20029. }
  20030. DllExport void
  20031. Scene_EndThreadedUpdate (Urho3D::Scene *_target)
  20032. {
  20033. _target->EndThreadedUpdate ();
  20034. }
  20035. DllExport void
  20036. Scene_DelayedMarkedDirty (Urho3D::Scene *_target, Urho3D::Component * component)
  20037. {
  20038. _target->DelayedMarkedDirty (component);
  20039. }
  20040. DllExport int
  20041. Scene_IsThreadedUpdate (Urho3D::Scene *_target)
  20042. {
  20043. return _target->IsThreadedUpdate ();
  20044. }
  20045. DllExport unsigned int
  20046. Scene_GetFreeNodeID (Urho3D::Scene *_target, enum Urho3D::CreateMode mode)
  20047. {
  20048. return _target->GetFreeNodeID (mode);
  20049. }
  20050. DllExport unsigned int
  20051. Scene_GetFreeComponentID (Urho3D::Scene *_target, enum Urho3D::CreateMode mode)
  20052. {
  20053. return _target->GetFreeComponentID (mode);
  20054. }
  20055. DllExport void
  20056. Scene_NodeTagAdded (Urho3D::Scene *_target, Urho3D::Node * node, const char * tag)
  20057. {
  20058. _target->NodeTagAdded (node, Urho3D::String(tag));
  20059. }
  20060. DllExport void
  20061. Scene_NodeTagRemoved (Urho3D::Scene *_target, Urho3D::Node * node, const char * tag)
  20062. {
  20063. _target->NodeTagRemoved (node, Urho3D::String(tag));
  20064. }
  20065. DllExport void
  20066. Scene_SetVarNamesAttr (Urho3D::Scene *_target, const char * value)
  20067. {
  20068. _target->SetVarNamesAttr (Urho3D::String(value));
  20069. }
  20070. DllExport const char *
  20071. Scene_GetVarNamesAttr (Urho3D::Scene *_target)
  20072. {
  20073. return stringdup((_target->GetVarNamesAttr ()).CString ());
  20074. }
  20075. DllExport void
  20076. Scene_PrepareNetworkUpdate (Urho3D::Scene *_target)
  20077. {
  20078. _target->PrepareNetworkUpdate ();
  20079. }
  20080. DllExport void
  20081. Scene_CleanupConnection (Urho3D::Scene *_target, Urho3D::Connection * connection)
  20082. {
  20083. _target->CleanupConnection (connection);
  20084. }
  20085. DllExport void
  20086. Scene_MarkNetworkUpdate2 (Urho3D::Scene *_target, Urho3D::Node * node)
  20087. {
  20088. _target->MarkNetworkUpdate (node);
  20089. }
  20090. DllExport void
  20091. Scene_MarkNetworkUpdate3 (Urho3D::Scene *_target, Urho3D::Component * component)
  20092. {
  20093. _target->MarkNetworkUpdate (component);
  20094. }
  20095. DllExport void
  20096. Scene_MarkReplicationDirty (Urho3D::Scene *_target, Urho3D::Node * node)
  20097. {
  20098. _target->MarkReplicationDirty (node);
  20099. }
  20100. DllExport int
  20101. SmoothedTransform_GetType (Urho3D::SmoothedTransform *_target)
  20102. {
  20103. return (_target->GetType ()).Value ();
  20104. }
  20105. DllExport const char *
  20106. SmoothedTransform_GetTypeName (Urho3D::SmoothedTransform *_target)
  20107. {
  20108. return stringdup((_target->GetTypeName ()).CString ());
  20109. }
  20110. DllExport int
  20111. SmoothedTransform_GetTypeStatic ()
  20112. {
  20113. return (SmoothedTransform::GetTypeStatic ()).Value ();
  20114. }
  20115. DllExport const char *
  20116. SmoothedTransform_GetTypeNameStatic ()
  20117. {
  20118. return stringdup((SmoothedTransform::GetTypeNameStatic ()).CString ());
  20119. }
  20120. DllExport void *
  20121. SmoothedTransform_SmoothedTransform (Urho3D::Context * context)
  20122. {
  20123. return WeakPtr<SmoothedTransform>(new SmoothedTransform(context));
  20124. }
  20125. DllExport void
  20126. SmoothedTransform_RegisterObject (Urho3D::Context * context)
  20127. {
  20128. SmoothedTransform::RegisterObject (context);
  20129. }
  20130. DllExport void
  20131. SmoothedTransform_Update (Urho3D::SmoothedTransform *_target, float constant, float squaredSnapThreshold)
  20132. {
  20133. _target->Update (constant, squaredSnapThreshold);
  20134. }
  20135. DllExport void
  20136. SmoothedTransform_SetTargetPosition (Urho3D::SmoothedTransform *_target, const class Urho3D::Vector3 & position)
  20137. {
  20138. _target->SetTargetPosition (position);
  20139. }
  20140. DllExport void
  20141. SmoothedTransform_SetTargetRotation (Urho3D::SmoothedTransform *_target, const class Urho3D::Quaternion & rotation)
  20142. {
  20143. _target->SetTargetRotation (rotation);
  20144. }
  20145. DllExport void
  20146. SmoothedTransform_SetTargetWorldPosition (Urho3D::SmoothedTransform *_target, const class Urho3D::Vector3 & position)
  20147. {
  20148. _target->SetTargetWorldPosition (position);
  20149. }
  20150. DllExport void
  20151. SmoothedTransform_SetTargetWorldRotation (Urho3D::SmoothedTransform *_target, const class Urho3D::Quaternion & rotation)
  20152. {
  20153. _target->SetTargetWorldRotation (rotation);
  20154. }
  20155. DllExport Interop::Vector3
  20156. SmoothedTransform_GetTargetPosition (Urho3D::SmoothedTransform *_target)
  20157. {
  20158. return *((Interop::Vector3 *) &(_target->GetTargetPosition ()));
  20159. }
  20160. DllExport Interop::Quaternion
  20161. SmoothedTransform_GetTargetRotation (Urho3D::SmoothedTransform *_target)
  20162. {
  20163. return *((Interop::Quaternion *) &(_target->GetTargetRotation ()));
  20164. }
  20165. DllExport Interop::Vector3
  20166. SmoothedTransform_GetTargetWorldPosition (Urho3D::SmoothedTransform *_target)
  20167. {
  20168. return *((Interop::Vector3 *) &(_target->GetTargetWorldPosition ()));
  20169. }
  20170. DllExport Interop::Quaternion
  20171. SmoothedTransform_GetTargetWorldRotation (Urho3D::SmoothedTransform *_target)
  20172. {
  20173. return *((Interop::Quaternion *) &(_target->GetTargetWorldRotation ()));
  20174. }
  20175. DllExport int
  20176. SmoothedTransform_IsInProgress (Urho3D::SmoothedTransform *_target)
  20177. {
  20178. return _target->IsInProgress ();
  20179. }
  20180. DllExport int
  20181. SplinePath_GetType (Urho3D::SplinePath *_target)
  20182. {
  20183. return (_target->GetType ()).Value ();
  20184. }
  20185. DllExport const char *
  20186. SplinePath_GetTypeName (Urho3D::SplinePath *_target)
  20187. {
  20188. return stringdup((_target->GetTypeName ()).CString ());
  20189. }
  20190. DllExport int
  20191. SplinePath_GetTypeStatic ()
  20192. {
  20193. return (SplinePath::GetTypeStatic ()).Value ();
  20194. }
  20195. DllExport const char *
  20196. SplinePath_GetTypeNameStatic ()
  20197. {
  20198. return stringdup((SplinePath::GetTypeNameStatic ()).CString ());
  20199. }
  20200. DllExport void *
  20201. SplinePath_SplinePath (Urho3D::Context * context)
  20202. {
  20203. return WeakPtr<SplinePath>(new SplinePath(context));
  20204. }
  20205. DllExport void
  20206. SplinePath_RegisterObject (Urho3D::Context * context)
  20207. {
  20208. SplinePath::RegisterObject (context);
  20209. }
  20210. DllExport void
  20211. SplinePath_ApplyAttributes (Urho3D::SplinePath *_target)
  20212. {
  20213. _target->ApplyAttributes ();
  20214. }
  20215. DllExport void
  20216. SplinePath_DrawDebugGeometry (Urho3D::SplinePath *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  20217. {
  20218. _target->DrawDebugGeometry (debug, depthTest);
  20219. }
  20220. DllExport void
  20221. SplinePath_AddControlPoint (Urho3D::SplinePath *_target, Urho3D::Node * point, unsigned int index)
  20222. {
  20223. _target->AddControlPoint (point, index);
  20224. }
  20225. DllExport void
  20226. SplinePath_RemoveControlPoint (Urho3D::SplinePath *_target, Urho3D::Node * point)
  20227. {
  20228. _target->RemoveControlPoint (point);
  20229. }
  20230. DllExport void
  20231. SplinePath_ClearControlPoints (Urho3D::SplinePath *_target)
  20232. {
  20233. _target->ClearControlPoints ();
  20234. }
  20235. DllExport void
  20236. SplinePath_SetInterpolationMode (Urho3D::SplinePath *_target, enum Urho3D::InterpolationMode interpolationMode)
  20237. {
  20238. _target->SetInterpolationMode (interpolationMode);
  20239. }
  20240. DllExport void
  20241. SplinePath_SetSpeed (Urho3D::SplinePath *_target, float speed)
  20242. {
  20243. _target->SetSpeed (speed);
  20244. }
  20245. DllExport void
  20246. SplinePath_SetPosition (Urho3D::SplinePath *_target, float factor)
  20247. {
  20248. _target->SetPosition (factor);
  20249. }
  20250. DllExport void
  20251. SplinePath_SetControlledNode (Urho3D::SplinePath *_target, Urho3D::Node * controlled)
  20252. {
  20253. _target->SetControlledNode (controlled);
  20254. }
  20255. DllExport enum Urho3D::InterpolationMode
  20256. SplinePath_GetInterpolationMode (Urho3D::SplinePath *_target)
  20257. {
  20258. return _target->GetInterpolationMode ();
  20259. }
  20260. DllExport float
  20261. SplinePath_GetSpeed (Urho3D::SplinePath *_target)
  20262. {
  20263. return _target->GetSpeed ();
  20264. }
  20265. DllExport float
  20266. SplinePath_GetLength (Urho3D::SplinePath *_target)
  20267. {
  20268. return _target->GetLength ();
  20269. }
  20270. DllExport Interop::Vector3
  20271. SplinePath_GetPosition (Urho3D::SplinePath *_target)
  20272. {
  20273. return *((Interop::Vector3 *) &(_target->GetPosition ()));
  20274. }
  20275. DllExport Urho3D::Node *
  20276. SplinePath_GetControlledNode (Urho3D::SplinePath *_target)
  20277. {
  20278. return _target->GetControlledNode ();
  20279. }
  20280. DllExport Interop::Vector3
  20281. SplinePath_GetPoint (Urho3D::SplinePath *_target, float factor)
  20282. {
  20283. return *((Interop::Vector3 *) &(_target->GetPoint (factor)));
  20284. }
  20285. DllExport void
  20286. SplinePath_Move (Urho3D::SplinePath *_target, float timeStep)
  20287. {
  20288. _target->Move (timeStep);
  20289. }
  20290. DllExport void
  20291. SplinePath_Reset (Urho3D::SplinePath *_target)
  20292. {
  20293. _target->Reset ();
  20294. }
  20295. DllExport int
  20296. SplinePath_IsFinished (Urho3D::SplinePath *_target)
  20297. {
  20298. return _target->IsFinished ();
  20299. }
  20300. DllExport void
  20301. SplinePath_SetControlledIdAttr (Urho3D::SplinePath *_target, unsigned int value)
  20302. {
  20303. _target->SetControlledIdAttr (value);
  20304. }
  20305. DllExport unsigned int
  20306. SplinePath_GetControlledIdAttr (Urho3D::SplinePath *_target)
  20307. {
  20308. return _target->GetControlledIdAttr ();
  20309. }
  20310. DllExport void *
  20311. UnknownComponent_UnknownComponent (Urho3D::Context * context)
  20312. {
  20313. return WeakPtr<UnknownComponent>(new UnknownComponent(context));
  20314. }
  20315. DllExport void
  20316. UnknownComponent_RegisterObject (Urho3D::Context * context)
  20317. {
  20318. UnknownComponent::RegisterObject (context);
  20319. }
  20320. DllExport int
  20321. UnknownComponent_GetType (Urho3D::UnknownComponent *_target)
  20322. {
  20323. return (_target->GetType ()).Value ();
  20324. }
  20325. DllExport const char *
  20326. UnknownComponent_GetTypeName (Urho3D::UnknownComponent *_target)
  20327. {
  20328. return stringdup((_target->GetTypeName ()).CString ());
  20329. }
  20330. DllExport int
  20331. UnknownComponent_Load_File (Urho3D::UnknownComponent *_target, File * source, bool setInstanceDefault)
  20332. {
  20333. return _target->Load (*source, setInstanceDefault);
  20334. }
  20335. DllExport int
  20336. UnknownComponent_Load_MemoryBuffer (Urho3D::UnknownComponent *_target, MemoryBuffer * source, bool setInstanceDefault)
  20337. {
  20338. return _target->Load (*source, setInstanceDefault);
  20339. }
  20340. DllExport int
  20341. UnknownComponent_LoadXML (Urho3D::UnknownComponent *_target, const class Urho3D::XMLElement & source, bool setInstanceDefault)
  20342. {
  20343. return _target->LoadXML (source, setInstanceDefault);
  20344. }
  20345. DllExport int
  20346. UnknownComponent_Save_File (Urho3D::UnknownComponent *_target, File * dest)
  20347. {
  20348. return _target->Save (*dest);
  20349. }
  20350. DllExport int
  20351. UnknownComponent_Save_MemoryBuffer (Urho3D::UnknownComponent *_target, MemoryBuffer * dest)
  20352. {
  20353. return _target->Save (*dest);
  20354. }
  20355. DllExport int
  20356. UnknownComponent_SaveXML (Urho3D::UnknownComponent *_target, Urho3D::XMLElement & dest)
  20357. {
  20358. return _target->SaveXML (dest);
  20359. }
  20360. DllExport void
  20361. UnknownComponent_SetTypeName (Urho3D::UnknownComponent *_target, const char * typeName)
  20362. {
  20363. _target->SetTypeName (Urho3D::String(typeName));
  20364. }
  20365. DllExport void
  20366. UnknownComponent_SetType (Urho3D::UnknownComponent *_target, int typeHash)
  20367. {
  20368. _target->SetType (Urho3D::StringHash(typeHash));
  20369. }
  20370. DllExport int
  20371. UnknownComponent_GetUseXML (Urho3D::UnknownComponent *_target)
  20372. {
  20373. return _target->GetUseXML ();
  20374. }
  20375. DllExport int
  20376. UnknownComponent_GetTypeStatic ()
  20377. {
  20378. return (UnknownComponent::GetTypeStatic ()).Value ();
  20379. }
  20380. DllExport const char *
  20381. UnknownComponent_GetTypeNameStatic ()
  20382. {
  20383. return stringdup((UnknownComponent::GetTypeNameStatic ()).CString ());
  20384. }
  20385. DllExport int
  20386. ValueAnimation_GetType (Urho3D::ValueAnimation *_target)
  20387. {
  20388. return (_target->GetType ()).Value ();
  20389. }
  20390. DllExport const char *
  20391. ValueAnimation_GetTypeName (Urho3D::ValueAnimation *_target)
  20392. {
  20393. return stringdup((_target->GetTypeName ()).CString ());
  20394. }
  20395. DllExport int
  20396. ValueAnimation_GetTypeStatic ()
  20397. {
  20398. return (ValueAnimation::GetTypeStatic ()).Value ();
  20399. }
  20400. DllExport const char *
  20401. ValueAnimation_GetTypeNameStatic ()
  20402. {
  20403. return stringdup((ValueAnimation::GetTypeNameStatic ()).CString ());
  20404. }
  20405. DllExport void *
  20406. ValueAnimation_ValueAnimation (Urho3D::Context * context)
  20407. {
  20408. return WeakPtr<ValueAnimation>(new ValueAnimation(context));
  20409. }
  20410. DllExport void
  20411. ValueAnimation_RegisterObject (Urho3D::Context * context)
  20412. {
  20413. ValueAnimation::RegisterObject (context);
  20414. }
  20415. DllExport int
  20416. ValueAnimation_BeginLoad_File (Urho3D::ValueAnimation *_target, File * source)
  20417. {
  20418. return _target->BeginLoad (*source);
  20419. }
  20420. DllExport int
  20421. ValueAnimation_BeginLoad_MemoryBuffer (Urho3D::ValueAnimation *_target, MemoryBuffer * source)
  20422. {
  20423. return _target->BeginLoad (*source);
  20424. }
  20425. DllExport int
  20426. ValueAnimation_Save_File (Urho3D::ValueAnimation *_target, File * dest)
  20427. {
  20428. return _target->Save (*dest);
  20429. }
  20430. DllExport int
  20431. ValueAnimation_Save_MemoryBuffer (Urho3D::ValueAnimation *_target, MemoryBuffer * dest)
  20432. {
  20433. return _target->Save (*dest);
  20434. }
  20435. DllExport int
  20436. ValueAnimation_LoadXML (Urho3D::ValueAnimation *_target, const class Urho3D::XMLElement & source)
  20437. {
  20438. return _target->LoadXML (source);
  20439. }
  20440. DllExport int
  20441. ValueAnimation_SaveXML (Urho3D::ValueAnimation *_target, Urho3D::XMLElement & dest)
  20442. {
  20443. return _target->SaveXML (dest);
  20444. }
  20445. DllExport void
  20446. ValueAnimation_SetOwner (Urho3D::ValueAnimation *_target, void * owner)
  20447. {
  20448. _target->SetOwner (owner);
  20449. }
  20450. DllExport void
  20451. ValueAnimation_SetInterpolationMethod (Urho3D::ValueAnimation *_target, enum Urho3D::InterpMethod method)
  20452. {
  20453. _target->SetInterpolationMethod (method);
  20454. }
  20455. DllExport void
  20456. ValueAnimation_SetSplineTension (Urho3D::ValueAnimation *_target, float tension)
  20457. {
  20458. _target->SetSplineTension (tension);
  20459. }
  20460. DllExport void
  20461. ValueAnimation_SetValueType (Urho3D::ValueAnimation *_target, enum Urho3D::VariantType valueType)
  20462. {
  20463. _target->SetValueType (valueType);
  20464. }
  20465. // Urho3D::Variant overloads begin:
  20466. DllExport int
  20467. ValueAnimation_SetKeyFrame0 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::Vector3 & value)
  20468. {
  20469. return _target->SetKeyFrame (time, (value));
  20470. }
  20471. DllExport int
  20472. ValueAnimation_SetKeyFrame1 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::IntRect & value)
  20473. {
  20474. return _target->SetKeyFrame (time, (value));
  20475. }
  20476. DllExport int
  20477. ValueAnimation_SetKeyFrame2 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::Color & value)
  20478. {
  20479. return _target->SetKeyFrame (time, (value));
  20480. }
  20481. DllExport int
  20482. ValueAnimation_SetKeyFrame3 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::Vector2 & value)
  20483. {
  20484. return _target->SetKeyFrame (time, (value));
  20485. }
  20486. DllExport int
  20487. ValueAnimation_SetKeyFrame4 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::Vector4 & value)
  20488. {
  20489. return _target->SetKeyFrame (time, (value));
  20490. }
  20491. DllExport int
  20492. ValueAnimation_SetKeyFrame5 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::IntVector2 & value)
  20493. {
  20494. return _target->SetKeyFrame (time, (value));
  20495. }
  20496. DllExport int
  20497. ValueAnimation_SetKeyFrame6 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::Quaternion & value)
  20498. {
  20499. return _target->SetKeyFrame (time, (value));
  20500. }
  20501. DllExport int
  20502. ValueAnimation_SetKeyFrame7 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::Matrix4 & value)
  20503. {
  20504. return _target->SetKeyFrame (time, (value));
  20505. }
  20506. DllExport int
  20507. ValueAnimation_SetKeyFrame8 (Urho3D::ValueAnimation *_target, float time, const class Urho3D::Matrix3x4 & value)
  20508. {
  20509. return _target->SetKeyFrame (time, (value));
  20510. }
  20511. DllExport int
  20512. ValueAnimation_SetKeyFrame9 (Urho3D::ValueAnimation *_target, float time, int value)
  20513. {
  20514. return _target->SetKeyFrame (time, (value));
  20515. }
  20516. DllExport int
  20517. ValueAnimation_SetKeyFrame10 (Urho3D::ValueAnimation *_target, float time, float value)
  20518. {
  20519. return _target->SetKeyFrame (time, (value));
  20520. }
  20521. DllExport int
  20522. ValueAnimation_SetKeyFrame11 (Urho3D::ValueAnimation *_target, float time, const char * value)
  20523. {
  20524. return _target->SetKeyFrame (time, Urho3D::String(value));
  20525. }
  20526. DllExport int
  20527. ValueAnimation_SetKeyFrame12 (Urho3D::ValueAnimation *_target, float time, bool value)
  20528. {
  20529. return _target->SetKeyFrame (time, (value));
  20530. }
  20531. // Urho3D::Variant overloads end.
  20532. DllExport int
  20533. ValueAnimation_IsValid (Urho3D::ValueAnimation *_target)
  20534. {
  20535. return _target->IsValid ();
  20536. }
  20537. DllExport void *
  20538. ValueAnimation_GetOwner (Urho3D::ValueAnimation *_target)
  20539. {
  20540. return _target->GetOwner ();
  20541. }
  20542. DllExport enum Urho3D::InterpMethod
  20543. ValueAnimation_GetInterpolationMethod (Urho3D::ValueAnimation *_target)
  20544. {
  20545. return _target->GetInterpolationMethod ();
  20546. }
  20547. DllExport float
  20548. ValueAnimation_GetSplineTension (Urho3D::ValueAnimation *_target)
  20549. {
  20550. return _target->GetSplineTension ();
  20551. }
  20552. DllExport enum Urho3D::VariantType
  20553. ValueAnimation_GetValueType (Urho3D::ValueAnimation *_target)
  20554. {
  20555. return _target->GetValueType ();
  20556. }
  20557. DllExport float
  20558. ValueAnimation_GetBeginTime (Urho3D::ValueAnimation *_target)
  20559. {
  20560. return _target->GetBeginTime ();
  20561. }
  20562. DllExport float
  20563. ValueAnimation_GetEndTime (Urho3D::ValueAnimation *_target)
  20564. {
  20565. return _target->GetEndTime ();
  20566. }
  20567. DllExport Urho3D::Variant
  20568. ValueAnimation_GetAnimationValue (Urho3D::ValueAnimation *_target, float scaledTime)
  20569. {
  20570. return _target->GetAnimationValue (scaledTime);
  20571. }
  20572. DllExport int
  20573. ValueAnimation_HasEventFrames (Urho3D::ValueAnimation *_target)
  20574. {
  20575. return _target->HasEventFrames ();
  20576. }
  20577. DllExport int
  20578. Button_GetType (Urho3D::Button *_target)
  20579. {
  20580. return (_target->GetType ()).Value ();
  20581. }
  20582. DllExport const char *
  20583. Button_GetTypeName (Urho3D::Button *_target)
  20584. {
  20585. return stringdup((_target->GetTypeName ()).CString ());
  20586. }
  20587. DllExport int
  20588. Button_GetTypeStatic ()
  20589. {
  20590. return (Button::GetTypeStatic ()).Value ();
  20591. }
  20592. DllExport const char *
  20593. Button_GetTypeNameStatic ()
  20594. {
  20595. return stringdup((Button::GetTypeNameStatic ()).CString ());
  20596. }
  20597. DllExport void *
  20598. Button_Button (Urho3D::Context * context)
  20599. {
  20600. return WeakPtr<Button>(new Button(context));
  20601. }
  20602. DllExport void
  20603. Button_RegisterObject (Urho3D::Context * context)
  20604. {
  20605. Button::RegisterObject (context);
  20606. }
  20607. DllExport void
  20608. Button_Update (Urho3D::Button *_target, float timeStep)
  20609. {
  20610. _target->Update (timeStep);
  20611. }
  20612. DllExport void
  20613. Button_OnClickBegin (Urho3D::Button *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int button, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  20614. {
  20615. _target->OnClickBegin (position, screenPosition, button, buttons, qualifiers, cursor);
  20616. }
  20617. DllExport void
  20618. 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)
  20619. {
  20620. _target->OnClickEnd (position, screenPosition, button, buttons, qualifiers, cursor, beginElement);
  20621. }
  20622. DllExport void
  20623. Button_OnKey (Urho3D::Button *_target, int key, int buttons, int qualifiers)
  20624. {
  20625. _target->OnKey (key, buttons, qualifiers);
  20626. }
  20627. DllExport void
  20628. Button_SetPressedOffset (Urho3D::Button *_target, const class Urho3D::IntVector2 & offset)
  20629. {
  20630. _target->SetPressedOffset (offset);
  20631. }
  20632. DllExport void
  20633. Button_SetPressedOffset0 (Urho3D::Button *_target, int x, int y)
  20634. {
  20635. _target->SetPressedOffset (x, y);
  20636. }
  20637. DllExport void
  20638. Button_SetPressedChildOffset (Urho3D::Button *_target, const class Urho3D::IntVector2 & offset)
  20639. {
  20640. _target->SetPressedChildOffset (offset);
  20641. }
  20642. DllExport void
  20643. Button_SetPressedChildOffset1 (Urho3D::Button *_target, int x, int y)
  20644. {
  20645. _target->SetPressedChildOffset (x, y);
  20646. }
  20647. DllExport void
  20648. Button_SetRepeat (Urho3D::Button *_target, float delay, float rate)
  20649. {
  20650. _target->SetRepeat (delay, rate);
  20651. }
  20652. DllExport void
  20653. Button_SetRepeatDelay (Urho3D::Button *_target, float delay)
  20654. {
  20655. _target->SetRepeatDelay (delay);
  20656. }
  20657. DllExport void
  20658. Button_SetRepeatRate (Urho3D::Button *_target, float rate)
  20659. {
  20660. _target->SetRepeatRate (rate);
  20661. }
  20662. DllExport Interop::IntVector2
  20663. Button_GetPressedOffset (Urho3D::Button *_target)
  20664. {
  20665. return *((Interop::IntVector2 *) &(_target->GetPressedOffset ()));
  20666. }
  20667. DllExport Interop::IntVector2
  20668. Button_GetPressedChildOffset (Urho3D::Button *_target)
  20669. {
  20670. return *((Interop::IntVector2 *) &(_target->GetPressedChildOffset ()));
  20671. }
  20672. DllExport float
  20673. Button_GetRepeatDelay (Urho3D::Button *_target)
  20674. {
  20675. return _target->GetRepeatDelay ();
  20676. }
  20677. DllExport float
  20678. Button_GetRepeatRate (Urho3D::Button *_target)
  20679. {
  20680. return _target->GetRepeatRate ();
  20681. }
  20682. DllExport int
  20683. Button_IsPressed (Urho3D::Button *_target)
  20684. {
  20685. return _target->IsPressed ();
  20686. }
  20687. DllExport int
  20688. CheckBox_GetType (Urho3D::CheckBox *_target)
  20689. {
  20690. return (_target->GetType ()).Value ();
  20691. }
  20692. DllExport const char *
  20693. CheckBox_GetTypeName (Urho3D::CheckBox *_target)
  20694. {
  20695. return stringdup((_target->GetTypeName ()).CString ());
  20696. }
  20697. DllExport int
  20698. CheckBox_GetTypeStatic ()
  20699. {
  20700. return (CheckBox::GetTypeStatic ()).Value ();
  20701. }
  20702. DllExport const char *
  20703. CheckBox_GetTypeNameStatic ()
  20704. {
  20705. return stringdup((CheckBox::GetTypeNameStatic ()).CString ());
  20706. }
  20707. DllExport void *
  20708. CheckBox_CheckBox (Urho3D::Context * context)
  20709. {
  20710. return WeakPtr<CheckBox>(new CheckBox(context));
  20711. }
  20712. DllExport void
  20713. CheckBox_RegisterObject (Urho3D::Context * context)
  20714. {
  20715. CheckBox::RegisterObject (context);
  20716. }
  20717. DllExport void
  20718. CheckBox_OnClickBegin (Urho3D::CheckBox *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int button, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  20719. {
  20720. _target->OnClickBegin (position, screenPosition, button, buttons, qualifiers, cursor);
  20721. }
  20722. DllExport void
  20723. CheckBox_OnKey (Urho3D::CheckBox *_target, int key, int buttons, int qualifiers)
  20724. {
  20725. _target->OnKey (key, buttons, qualifiers);
  20726. }
  20727. DllExport void
  20728. CheckBox_SetChecked (Urho3D::CheckBox *_target, bool enable)
  20729. {
  20730. _target->SetChecked (enable);
  20731. }
  20732. DllExport void
  20733. CheckBox_SetCheckedOffset (Urho3D::CheckBox *_target, const class Urho3D::IntVector2 & rect)
  20734. {
  20735. _target->SetCheckedOffset (rect);
  20736. }
  20737. DllExport void
  20738. CheckBox_SetCheckedOffset0 (Urho3D::CheckBox *_target, int x, int y)
  20739. {
  20740. _target->SetCheckedOffset (x, y);
  20741. }
  20742. DllExport int
  20743. CheckBox_IsChecked (Urho3D::CheckBox *_target)
  20744. {
  20745. return _target->IsChecked ();
  20746. }
  20747. DllExport Interop::IntVector2
  20748. CheckBox_GetCheckedOffset (Urho3D::CheckBox *_target)
  20749. {
  20750. return *((Interop::IntVector2 *) &(_target->GetCheckedOffset ()));
  20751. }
  20752. DllExport int
  20753. Menu_GetType (Urho3D::Menu *_target)
  20754. {
  20755. return (_target->GetType ()).Value ();
  20756. }
  20757. DllExport const char *
  20758. Menu_GetTypeName (Urho3D::Menu *_target)
  20759. {
  20760. return stringdup((_target->GetTypeName ()).CString ());
  20761. }
  20762. DllExport int
  20763. Menu_GetTypeStatic ()
  20764. {
  20765. return (Menu::GetTypeStatic ()).Value ();
  20766. }
  20767. DllExport const char *
  20768. Menu_GetTypeNameStatic ()
  20769. {
  20770. return stringdup((Menu::GetTypeNameStatic ()).CString ());
  20771. }
  20772. DllExport void *
  20773. Menu_Menu (Urho3D::Context * context)
  20774. {
  20775. return WeakPtr<Menu>(new Menu(context));
  20776. }
  20777. DllExport void
  20778. Menu_RegisterObject (Urho3D::Context * context)
  20779. {
  20780. Menu::RegisterObject (context);
  20781. }
  20782. DllExport int
  20783. Menu_LoadXML (Urho3D::Menu *_target, const class Urho3D::XMLElement & source, Urho3D::XMLFile * styleFile, bool setInstanceDefault)
  20784. {
  20785. return _target->LoadXML (source, styleFile, setInstanceDefault);
  20786. }
  20787. DllExport int
  20788. Menu_SaveXML (Urho3D::Menu *_target, Urho3D::XMLElement & dest)
  20789. {
  20790. return _target->SaveXML (dest);
  20791. }
  20792. DllExport void
  20793. Menu_Update (Urho3D::Menu *_target, float timeStep)
  20794. {
  20795. _target->Update (timeStep);
  20796. }
  20797. DllExport void
  20798. Menu_OnHover (Urho3D::Menu *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  20799. {
  20800. _target->OnHover (position, screenPosition, buttons, qualifiers, cursor);
  20801. }
  20802. DllExport void
  20803. Menu_OnShowPopup (Urho3D::Menu *_target)
  20804. {
  20805. _target->OnShowPopup ();
  20806. }
  20807. DllExport void
  20808. Menu_OnHidePopup (Urho3D::Menu *_target)
  20809. {
  20810. _target->OnHidePopup ();
  20811. }
  20812. DllExport void
  20813. Menu_SetPopup (Urho3D::Menu *_target, Urho3D::UIElement * element)
  20814. {
  20815. _target->SetPopup (element);
  20816. }
  20817. DllExport void
  20818. Menu_SetPopupOffset (Urho3D::Menu *_target, const class Urho3D::IntVector2 & offset)
  20819. {
  20820. _target->SetPopupOffset (offset);
  20821. }
  20822. DllExport void
  20823. Menu_SetPopupOffset0 (Urho3D::Menu *_target, int x, int y)
  20824. {
  20825. _target->SetPopupOffset (x, y);
  20826. }
  20827. DllExport void
  20828. Menu_ShowPopup (Urho3D::Menu *_target, bool enable)
  20829. {
  20830. _target->ShowPopup (enable);
  20831. }
  20832. DllExport void
  20833. Menu_SetAccelerator (Urho3D::Menu *_target, int key, int qualifiers)
  20834. {
  20835. _target->SetAccelerator (key, qualifiers);
  20836. }
  20837. DllExport Urho3D::UIElement *
  20838. Menu_GetPopup (Urho3D::Menu *_target)
  20839. {
  20840. return _target->GetPopup ();
  20841. }
  20842. DllExport Interop::IntVector2
  20843. Menu_GetPopupOffset (Urho3D::Menu *_target)
  20844. {
  20845. return *((Interop::IntVector2 *) &(_target->GetPopupOffset ()));
  20846. }
  20847. DllExport int
  20848. Menu_GetShowPopup (Urho3D::Menu *_target)
  20849. {
  20850. return _target->GetShowPopup ();
  20851. }
  20852. DllExport int
  20853. Menu_GetAcceleratorKey (Urho3D::Menu *_target)
  20854. {
  20855. return _target->GetAcceleratorKey ();
  20856. }
  20857. DllExport int
  20858. Menu_GetAcceleratorQualifiers (Urho3D::Menu *_target)
  20859. {
  20860. return _target->GetAcceleratorQualifiers ();
  20861. }
  20862. DllExport int
  20863. DropDownList_GetType (Urho3D::DropDownList *_target)
  20864. {
  20865. return (_target->GetType ()).Value ();
  20866. }
  20867. DllExport const char *
  20868. DropDownList_GetTypeName (Urho3D::DropDownList *_target)
  20869. {
  20870. return stringdup((_target->GetTypeName ()).CString ());
  20871. }
  20872. DllExport int
  20873. DropDownList_GetTypeStatic ()
  20874. {
  20875. return (DropDownList::GetTypeStatic ()).Value ();
  20876. }
  20877. DllExport const char *
  20878. DropDownList_GetTypeNameStatic ()
  20879. {
  20880. return stringdup((DropDownList::GetTypeNameStatic ()).CString ());
  20881. }
  20882. DllExport void *
  20883. DropDownList_DropDownList (Urho3D::Context * context)
  20884. {
  20885. return WeakPtr<DropDownList>(new DropDownList(context));
  20886. }
  20887. DllExport void
  20888. DropDownList_RegisterObject (Urho3D::Context * context)
  20889. {
  20890. DropDownList::RegisterObject (context);
  20891. }
  20892. DllExport void
  20893. DropDownList_ApplyAttributes (Urho3D::DropDownList *_target)
  20894. {
  20895. _target->ApplyAttributes ();
  20896. }
  20897. DllExport void
  20898. DropDownList_OnShowPopup (Urho3D::DropDownList *_target)
  20899. {
  20900. _target->OnShowPopup ();
  20901. }
  20902. DllExport void
  20903. DropDownList_OnHidePopup (Urho3D::DropDownList *_target)
  20904. {
  20905. _target->OnHidePopup ();
  20906. }
  20907. DllExport void
  20908. DropDownList_OnSetEditable (Urho3D::DropDownList *_target)
  20909. {
  20910. _target->OnSetEditable ();
  20911. }
  20912. DllExport void
  20913. DropDownList_AddItem (Urho3D::DropDownList *_target, Urho3D::UIElement * item)
  20914. {
  20915. _target->AddItem (item);
  20916. }
  20917. DllExport void
  20918. DropDownList_InsertItem (Urho3D::DropDownList *_target, unsigned int index, Urho3D::UIElement * item)
  20919. {
  20920. _target->InsertItem (index, item);
  20921. }
  20922. DllExport void
  20923. DropDownList_RemoveItem (Urho3D::DropDownList *_target, Urho3D::UIElement * item)
  20924. {
  20925. _target->RemoveItem (item);
  20926. }
  20927. DllExport void
  20928. DropDownList_RemoveItem0 (Urho3D::DropDownList *_target, unsigned int index)
  20929. {
  20930. _target->RemoveItem (index);
  20931. }
  20932. DllExport void
  20933. DropDownList_RemoveAllItems (Urho3D::DropDownList *_target)
  20934. {
  20935. _target->RemoveAllItems ();
  20936. }
  20937. DllExport void
  20938. DropDownList_SetSelection (Urho3D::DropDownList *_target, unsigned int index)
  20939. {
  20940. _target->SetSelection (index);
  20941. }
  20942. DllExport void
  20943. DropDownList_SetPlaceholderText (Urho3D::DropDownList *_target, const char * text)
  20944. {
  20945. _target->SetPlaceholderText (Urho3D::String(text));
  20946. }
  20947. DllExport void
  20948. DropDownList_SetResizePopup (Urho3D::DropDownList *_target, bool enable)
  20949. {
  20950. _target->SetResizePopup (enable);
  20951. }
  20952. DllExport unsigned int
  20953. DropDownList_GetNumItems (Urho3D::DropDownList *_target)
  20954. {
  20955. return _target->GetNumItems ();
  20956. }
  20957. DllExport Urho3D::UIElement *
  20958. DropDownList_GetItem (Urho3D::DropDownList *_target, unsigned int index)
  20959. {
  20960. return _target->GetItem (index);
  20961. }
  20962. DllExport unsigned int
  20963. DropDownList_GetSelection (Urho3D::DropDownList *_target)
  20964. {
  20965. return _target->GetSelection ();
  20966. }
  20967. DllExport Urho3D::UIElement *
  20968. DropDownList_GetSelectedItem (Urho3D::DropDownList *_target)
  20969. {
  20970. return _target->GetSelectedItem ();
  20971. }
  20972. DllExport Urho3D::ListView *
  20973. DropDownList_GetListView (Urho3D::DropDownList *_target)
  20974. {
  20975. return _target->GetListView ();
  20976. }
  20977. DllExport Urho3D::UIElement *
  20978. DropDownList_GetPlaceholder (Urho3D::DropDownList *_target)
  20979. {
  20980. return _target->GetPlaceholder ();
  20981. }
  20982. DllExport const char *
  20983. DropDownList_GetPlaceholderText (Urho3D::DropDownList *_target)
  20984. {
  20985. return stringdup((_target->GetPlaceholderText ()).CString ());
  20986. }
  20987. DllExport int
  20988. DropDownList_GetResizePopup (Urho3D::DropDownList *_target)
  20989. {
  20990. return _target->GetResizePopup ();
  20991. }
  20992. DllExport void
  20993. DropDownList_SetSelectionAttr (Urho3D::DropDownList *_target, unsigned int index)
  20994. {
  20995. _target->SetSelectionAttr (index);
  20996. }
  20997. DllExport int
  20998. FileSelector_GetType (Urho3D::FileSelector *_target)
  20999. {
  21000. return (_target->GetType ()).Value ();
  21001. }
  21002. DllExport const char *
  21003. FileSelector_GetTypeName (Urho3D::FileSelector *_target)
  21004. {
  21005. return stringdup((_target->GetTypeName ()).CString ());
  21006. }
  21007. DllExport int
  21008. FileSelector_GetTypeStatic ()
  21009. {
  21010. return (FileSelector::GetTypeStatic ()).Value ();
  21011. }
  21012. DllExport const char *
  21013. FileSelector_GetTypeNameStatic ()
  21014. {
  21015. return stringdup((FileSelector::GetTypeNameStatic ()).CString ());
  21016. }
  21017. DllExport void *
  21018. FileSelector_FileSelector (Urho3D::Context * context)
  21019. {
  21020. return WeakPtr<FileSelector>(new FileSelector(context));
  21021. }
  21022. DllExport void
  21023. FileSelector_RegisterObject (Urho3D::Context * context)
  21024. {
  21025. FileSelector::RegisterObject (context);
  21026. }
  21027. DllExport void
  21028. FileSelector_SetDefaultStyle (Urho3D::FileSelector *_target, Urho3D::XMLFile * style)
  21029. {
  21030. _target->SetDefaultStyle (style);
  21031. }
  21032. DllExport void
  21033. FileSelector_SetTitle (Urho3D::FileSelector *_target, const char * text)
  21034. {
  21035. _target->SetTitle (Urho3D::String(text));
  21036. }
  21037. DllExport void
  21038. FileSelector_SetButtonTexts (Urho3D::FileSelector *_target, const char * okText, const char * cancelText)
  21039. {
  21040. _target->SetButtonTexts (Urho3D::String(okText), Urho3D::String(cancelText));
  21041. }
  21042. DllExport void
  21043. FileSelector_SetPath (Urho3D::FileSelector *_target, const char * path)
  21044. {
  21045. _target->SetPath (Urho3D::String(path));
  21046. }
  21047. DllExport void
  21048. FileSelector_SetFileName (Urho3D::FileSelector *_target, const char * fileName)
  21049. {
  21050. _target->SetFileName (Urho3D::String(fileName));
  21051. }
  21052. DllExport void
  21053. FileSelector_SetDirectoryMode (Urho3D::FileSelector *_target, bool enable)
  21054. {
  21055. _target->SetDirectoryMode (enable);
  21056. }
  21057. DllExport void
  21058. FileSelector_UpdateElements (Urho3D::FileSelector *_target)
  21059. {
  21060. _target->UpdateElements ();
  21061. }
  21062. DllExport Urho3D::XMLFile *
  21063. FileSelector_GetDefaultStyle (Urho3D::FileSelector *_target)
  21064. {
  21065. return _target->GetDefaultStyle ();
  21066. }
  21067. DllExport Urho3D::Window *
  21068. FileSelector_GetWindow (Urho3D::FileSelector *_target)
  21069. {
  21070. return _target->GetWindow ();
  21071. }
  21072. DllExport Urho3D::Text *
  21073. FileSelector_GetTitleText (Urho3D::FileSelector *_target)
  21074. {
  21075. return _target->GetTitleText ();
  21076. }
  21077. DllExport Urho3D::ListView *
  21078. FileSelector_GetFileList (Urho3D::FileSelector *_target)
  21079. {
  21080. return _target->GetFileList ();
  21081. }
  21082. DllExport Urho3D::LineEdit *
  21083. FileSelector_GetPathEdit (Urho3D::FileSelector *_target)
  21084. {
  21085. return _target->GetPathEdit ();
  21086. }
  21087. DllExport Urho3D::LineEdit *
  21088. FileSelector_GetFileNameEdit (Urho3D::FileSelector *_target)
  21089. {
  21090. return _target->GetFileNameEdit ();
  21091. }
  21092. DllExport Urho3D::DropDownList *
  21093. FileSelector_GetFilterList (Urho3D::FileSelector *_target)
  21094. {
  21095. return _target->GetFilterList ();
  21096. }
  21097. DllExport Urho3D::Button *
  21098. FileSelector_GetOKButton (Urho3D::FileSelector *_target)
  21099. {
  21100. return _target->GetOKButton ();
  21101. }
  21102. DllExport Urho3D::Button *
  21103. FileSelector_GetCancelButton (Urho3D::FileSelector *_target)
  21104. {
  21105. return _target->GetCancelButton ();
  21106. }
  21107. DllExport Urho3D::Button *
  21108. FileSelector_GetCloseButton (Urho3D::FileSelector *_target)
  21109. {
  21110. return _target->GetCloseButton ();
  21111. }
  21112. DllExport const char *
  21113. FileSelector_GetTitle (Urho3D::FileSelector *_target)
  21114. {
  21115. return stringdup((_target->GetTitle ()).CString ());
  21116. }
  21117. DllExport const char *
  21118. FileSelector_GetPath (Urho3D::FileSelector *_target)
  21119. {
  21120. return stringdup((_target->GetPath ()).CString ());
  21121. }
  21122. DllExport const char *
  21123. FileSelector_GetFileName (Urho3D::FileSelector *_target)
  21124. {
  21125. return stringdup((_target->GetFileName ()).CString ());
  21126. }
  21127. DllExport const char *
  21128. FileSelector_GetFilter (Urho3D::FileSelector *_target)
  21129. {
  21130. return stringdup((_target->GetFilter ()).CString ());
  21131. }
  21132. DllExport unsigned int
  21133. FileSelector_GetFilterIndex (Urho3D::FileSelector *_target)
  21134. {
  21135. return _target->GetFilterIndex ();
  21136. }
  21137. DllExport int
  21138. FileSelector_GetDirectoryMode (Urho3D::FileSelector *_target)
  21139. {
  21140. return _target->GetDirectoryMode ();
  21141. }
  21142. DllExport int
  21143. Font_GetType (Urho3D::Font *_target)
  21144. {
  21145. return (_target->GetType ()).Value ();
  21146. }
  21147. DllExport const char *
  21148. Font_GetTypeName (Urho3D::Font *_target)
  21149. {
  21150. return stringdup((_target->GetTypeName ()).CString ());
  21151. }
  21152. DllExport int
  21153. Font_GetTypeStatic ()
  21154. {
  21155. return (Font::GetTypeStatic ()).Value ();
  21156. }
  21157. DllExport const char *
  21158. Font_GetTypeNameStatic ()
  21159. {
  21160. return stringdup((Font::GetTypeNameStatic ()).CString ());
  21161. }
  21162. DllExport void *
  21163. Font_Font (Urho3D::Context * context)
  21164. {
  21165. return WeakPtr<Font>(new Font(context));
  21166. }
  21167. DllExport void
  21168. Font_RegisterObject (Urho3D::Context * context)
  21169. {
  21170. Font::RegisterObject (context);
  21171. }
  21172. DllExport int
  21173. Font_BeginLoad_File (Urho3D::Font *_target, File * source)
  21174. {
  21175. return _target->BeginLoad (*source);
  21176. }
  21177. DllExport int
  21178. Font_BeginLoad_MemoryBuffer (Urho3D::Font *_target, MemoryBuffer * source)
  21179. {
  21180. return _target->BeginLoad (*source);
  21181. }
  21182. DllExport int
  21183. Font_SaveXML_File (Urho3D::Font *_target, File * dest, int pointSize, bool usedGlyphs, const char * indentation)
  21184. {
  21185. return _target->SaveXML (*dest, pointSize, usedGlyphs, Urho3D::String(indentation));
  21186. }
  21187. DllExport int
  21188. Font_SaveXML_MemoryBuffer (Urho3D::Font *_target, MemoryBuffer * dest, int pointSize, bool usedGlyphs, const char * indentation)
  21189. {
  21190. return _target->SaveXML (*dest, pointSize, usedGlyphs, Urho3D::String(indentation));
  21191. }
  21192. DllExport void
  21193. Font_SetAbsoluteGlyphOffset (Urho3D::Font *_target, const class Urho3D::IntVector2 & offset)
  21194. {
  21195. _target->SetAbsoluteGlyphOffset (offset);
  21196. }
  21197. DllExport void
  21198. Font_SetScaledGlyphOffset (Urho3D::Font *_target, const class Urho3D::Vector2 & offset)
  21199. {
  21200. _target->SetScaledGlyphOffset (offset);
  21201. }
  21202. DllExport Urho3D::FontFace *
  21203. Font_GetFace (Urho3D::Font *_target, float pointSize)
  21204. {
  21205. return _target->GetFace (pointSize);
  21206. }
  21207. DllExport enum Urho3D::FontType
  21208. Font_GetFontType (Urho3D::Font *_target)
  21209. {
  21210. return _target->GetFontType ();
  21211. }
  21212. DllExport int
  21213. Font_IsSDFFont (Urho3D::Font *_target)
  21214. {
  21215. return _target->IsSDFFont ();
  21216. }
  21217. DllExport Interop::IntVector2
  21218. Font_GetAbsoluteGlyphOffset (Urho3D::Font *_target)
  21219. {
  21220. return *((Interop::IntVector2 *) &(_target->GetAbsoluteGlyphOffset ()));
  21221. }
  21222. DllExport Interop::Vector2
  21223. Font_GetScaledGlyphOffset (Urho3D::Font *_target)
  21224. {
  21225. return *((Interop::Vector2 *) &(_target->GetScaledGlyphOffset ()));
  21226. }
  21227. DllExport Interop::IntVector2
  21228. Font_GetTotalGlyphOffset (Urho3D::Font *_target, float pointSize)
  21229. {
  21230. return *((Interop::IntVector2 *) &(_target->GetTotalGlyphOffset (pointSize)));
  21231. }
  21232. DllExport void
  21233. Font_ReleaseFaces (Urho3D::Font *_target)
  21234. {
  21235. _target->ReleaseFaces ();
  21236. }
  21237. DllExport int
  21238. FontFace_Load (Urho3D::FontFace *_target, const unsigned char * fontData, unsigned int fontDataSize, float pointSize)
  21239. {
  21240. return _target->Load (fontData, fontDataSize, pointSize);
  21241. }
  21242. DllExport const struct Urho3D::FontGlyph *
  21243. FontFace_GetGlyph (Urho3D::FontFace *_target, unsigned int c)
  21244. {
  21245. return _target->GetGlyph (c);
  21246. }
  21247. DllExport int
  21248. FontFace_HasMutableGlyphs (Urho3D::FontFace *_target)
  21249. {
  21250. return _target->HasMutableGlyphs ();
  21251. }
  21252. DllExport float
  21253. FontFace_GetKerning (Urho3D::FontFace *_target, unsigned int c, unsigned int d)
  21254. {
  21255. return _target->GetKerning (c, d);
  21256. }
  21257. DllExport int
  21258. FontFace_IsDataLost (Urho3D::FontFace *_target)
  21259. {
  21260. return _target->IsDataLost ();
  21261. }
  21262. DllExport float
  21263. FontFace_GetPointSize (Urho3D::FontFace *_target)
  21264. {
  21265. return _target->GetPointSize ();
  21266. }
  21267. DllExport float
  21268. FontFace_GetRowHeight (Urho3D::FontFace *_target)
  21269. {
  21270. return _target->GetRowHeight ();
  21271. }
  21272. DllExport const Vector<SharedPtr<class Urho3D::Texture2D> > &
  21273. FontFace_GetTextures (Urho3D::FontFace *_target)
  21274. {
  21275. return _target->GetTextures ();
  21276. }
  21277. DllExport void *
  21278. FontFaceBitmap_FontFaceBitmap (Urho3D::Font * font)
  21279. {
  21280. return WeakPtr<FontFaceBitmap>(new FontFaceBitmap(font));
  21281. }
  21282. DllExport int
  21283. FontFaceBitmap_Load (Urho3D::FontFaceBitmap *_target, const unsigned char * fontData, unsigned int fontDataSize, float pointSize)
  21284. {
  21285. return _target->Load (fontData, fontDataSize, pointSize);
  21286. }
  21287. DllExport int
  21288. FontFaceBitmap_Load0 (Urho3D::FontFaceBitmap *_target, Urho3D::FontFace * fontFace, bool usedGlyphs)
  21289. {
  21290. return _target->Load (fontFace, usedGlyphs);
  21291. }
  21292. DllExport int
  21293. FontFaceBitmap_Save_File (Urho3D::FontFaceBitmap *_target, File * dest, int pointSize, const char * indentation)
  21294. {
  21295. return _target->Save (*dest, pointSize, Urho3D::String(indentation));
  21296. }
  21297. DllExport int
  21298. FontFaceBitmap_Save_MemoryBuffer (Urho3D::FontFaceBitmap *_target, MemoryBuffer * dest, int pointSize, const char * indentation)
  21299. {
  21300. return _target->Save (*dest, pointSize, Urho3D::String(indentation));
  21301. }
  21302. DllExport void *
  21303. FontFaceFreeType_FontFaceFreeType (Urho3D::Font * font)
  21304. {
  21305. return WeakPtr<FontFaceFreeType>(new FontFaceFreeType(font));
  21306. }
  21307. DllExport int
  21308. FontFaceFreeType_Load (Urho3D::FontFaceFreeType *_target, const unsigned char * fontData, unsigned int fontDataSize, float pointSize)
  21309. {
  21310. return _target->Load (fontData, fontDataSize, pointSize);
  21311. }
  21312. DllExport const struct Urho3D::FontGlyph *
  21313. FontFaceFreeType_GetGlyph (Urho3D::FontFaceFreeType *_target, unsigned int c)
  21314. {
  21315. return _target->GetGlyph (c);
  21316. }
  21317. DllExport int
  21318. FontFaceFreeType_HasMutableGlyphs (Urho3D::FontFaceFreeType *_target)
  21319. {
  21320. return _target->HasMutableGlyphs ();
  21321. }
  21322. DllExport int
  21323. LineEdit_GetType (Urho3D::LineEdit *_target)
  21324. {
  21325. return (_target->GetType ()).Value ();
  21326. }
  21327. DllExport const char *
  21328. LineEdit_GetTypeName (Urho3D::LineEdit *_target)
  21329. {
  21330. return stringdup((_target->GetTypeName ()).CString ());
  21331. }
  21332. DllExport int
  21333. LineEdit_GetTypeStatic ()
  21334. {
  21335. return (LineEdit::GetTypeStatic ()).Value ();
  21336. }
  21337. DllExport const char *
  21338. LineEdit_GetTypeNameStatic ()
  21339. {
  21340. return stringdup((LineEdit::GetTypeNameStatic ()).CString ());
  21341. }
  21342. DllExport void *
  21343. LineEdit_LineEdit (Urho3D::Context * context)
  21344. {
  21345. return WeakPtr<LineEdit>(new LineEdit(context));
  21346. }
  21347. DllExport void
  21348. LineEdit_RegisterObject (Urho3D::Context * context)
  21349. {
  21350. LineEdit::RegisterObject (context);
  21351. }
  21352. DllExport void
  21353. LineEdit_ApplyAttributes (Urho3D::LineEdit *_target)
  21354. {
  21355. _target->ApplyAttributes ();
  21356. }
  21357. DllExport void
  21358. LineEdit_Update (Urho3D::LineEdit *_target, float timeStep)
  21359. {
  21360. _target->Update (timeStep);
  21361. }
  21362. DllExport void
  21363. LineEdit_OnClickBegin (Urho3D::LineEdit *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int button, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  21364. {
  21365. _target->OnClickBegin (position, screenPosition, button, buttons, qualifiers, cursor);
  21366. }
  21367. DllExport void
  21368. LineEdit_OnDoubleClick (Urho3D::LineEdit *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int button, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  21369. {
  21370. _target->OnDoubleClick (position, screenPosition, button, buttons, qualifiers, cursor);
  21371. }
  21372. DllExport void
  21373. LineEdit_OnKey (Urho3D::LineEdit *_target, int key, int buttons, int qualifiers)
  21374. {
  21375. _target->OnKey (key, buttons, qualifiers);
  21376. }
  21377. DllExport void
  21378. LineEdit_OnTextInput (Urho3D::LineEdit *_target, const char * text)
  21379. {
  21380. _target->OnTextInput (Urho3D::String(text));
  21381. }
  21382. DllExport void
  21383. LineEdit_SetText (Urho3D::LineEdit *_target, const char * text)
  21384. {
  21385. _target->SetText (Urho3D::String(text));
  21386. }
  21387. DllExport void
  21388. LineEdit_SetCursorPosition (Urho3D::LineEdit *_target, unsigned int position)
  21389. {
  21390. _target->SetCursorPosition (position);
  21391. }
  21392. DllExport void
  21393. LineEdit_SetCursorBlinkRate (Urho3D::LineEdit *_target, float rate)
  21394. {
  21395. _target->SetCursorBlinkRate (rate);
  21396. }
  21397. DllExport void
  21398. LineEdit_SetMaxLength (Urho3D::LineEdit *_target, unsigned int length)
  21399. {
  21400. _target->SetMaxLength (length);
  21401. }
  21402. DllExport void
  21403. LineEdit_SetEchoCharacter (Urho3D::LineEdit *_target, unsigned int c)
  21404. {
  21405. _target->SetEchoCharacter (c);
  21406. }
  21407. DllExport void
  21408. LineEdit_SetCursorMovable (Urho3D::LineEdit *_target, bool enable)
  21409. {
  21410. _target->SetCursorMovable (enable);
  21411. }
  21412. DllExport void
  21413. LineEdit_SetTextSelectable (Urho3D::LineEdit *_target, bool enable)
  21414. {
  21415. _target->SetTextSelectable (enable);
  21416. }
  21417. DllExport void
  21418. LineEdit_SetTextCopyable (Urho3D::LineEdit *_target, bool enable)
  21419. {
  21420. _target->SetTextCopyable (enable);
  21421. }
  21422. DllExport const char *
  21423. LineEdit_GetText (Urho3D::LineEdit *_target)
  21424. {
  21425. return stringdup((_target->GetText ()).CString ());
  21426. }
  21427. DllExport unsigned int
  21428. LineEdit_GetCursorPosition (Urho3D::LineEdit *_target)
  21429. {
  21430. return _target->GetCursorPosition ();
  21431. }
  21432. DllExport float
  21433. LineEdit_GetCursorBlinkRate (Urho3D::LineEdit *_target)
  21434. {
  21435. return _target->GetCursorBlinkRate ();
  21436. }
  21437. DllExport unsigned int
  21438. LineEdit_GetMaxLength (Urho3D::LineEdit *_target)
  21439. {
  21440. return _target->GetMaxLength ();
  21441. }
  21442. DllExport unsigned int
  21443. LineEdit_GetEchoCharacter (Urho3D::LineEdit *_target)
  21444. {
  21445. return _target->GetEchoCharacter ();
  21446. }
  21447. DllExport int
  21448. LineEdit_IsCursorMovable (Urho3D::LineEdit *_target)
  21449. {
  21450. return _target->IsCursorMovable ();
  21451. }
  21452. DllExport int
  21453. LineEdit_IsTextSelectable (Urho3D::LineEdit *_target)
  21454. {
  21455. return _target->IsTextSelectable ();
  21456. }
  21457. DllExport int
  21458. LineEdit_IsTextCopyable (Urho3D::LineEdit *_target)
  21459. {
  21460. return _target->IsTextCopyable ();
  21461. }
  21462. DllExport Urho3D::Text *
  21463. LineEdit_GetTextElement (Urho3D::LineEdit *_target)
  21464. {
  21465. return _target->GetTextElement ();
  21466. }
  21467. DllExport Urho3D::BorderImage *
  21468. LineEdit_GetCursor (Urho3D::LineEdit *_target)
  21469. {
  21470. return _target->GetCursor ();
  21471. }
  21472. DllExport int
  21473. ScrollView_GetType (Urho3D::ScrollView *_target)
  21474. {
  21475. return (_target->GetType ()).Value ();
  21476. }
  21477. DllExport const char *
  21478. ScrollView_GetTypeName (Urho3D::ScrollView *_target)
  21479. {
  21480. return stringdup((_target->GetTypeName ()).CString ());
  21481. }
  21482. DllExport int
  21483. ScrollView_GetTypeStatic ()
  21484. {
  21485. return (ScrollView::GetTypeStatic ()).Value ();
  21486. }
  21487. DllExport const char *
  21488. ScrollView_GetTypeNameStatic ()
  21489. {
  21490. return stringdup((ScrollView::GetTypeNameStatic ()).CString ());
  21491. }
  21492. DllExport void *
  21493. ScrollView_ScrollView (Urho3D::Context * context)
  21494. {
  21495. return WeakPtr<ScrollView>(new ScrollView(context));
  21496. }
  21497. DllExport void
  21498. ScrollView_RegisterObject (Urho3D::Context * context)
  21499. {
  21500. ScrollView::RegisterObject (context);
  21501. }
  21502. DllExport void
  21503. ScrollView_Update (Urho3D::ScrollView *_target, float timeStep)
  21504. {
  21505. _target->Update (timeStep);
  21506. }
  21507. DllExport void
  21508. ScrollView_ApplyAttributes (Urho3D::ScrollView *_target)
  21509. {
  21510. _target->ApplyAttributes ();
  21511. }
  21512. DllExport void
  21513. ScrollView_OnWheel (Urho3D::ScrollView *_target, int delta, int buttons, int qualifiers)
  21514. {
  21515. _target->OnWheel (delta, buttons, qualifiers);
  21516. }
  21517. DllExport void
  21518. ScrollView_OnKey (Urho3D::ScrollView *_target, int key, int buttons, int qualifiers)
  21519. {
  21520. _target->OnKey (key, buttons, qualifiers);
  21521. }
  21522. DllExport void
  21523. ScrollView_OnResize (Urho3D::ScrollView *_target, const class Urho3D::IntVector2 & newSize, const class Urho3D::IntVector2 & delta)
  21524. {
  21525. _target->OnResize (newSize, delta);
  21526. }
  21527. DllExport void
  21528. ScrollView_SetContentElement (Urho3D::ScrollView *_target, Urho3D::UIElement * element)
  21529. {
  21530. _target->SetContentElement (element);
  21531. }
  21532. DllExport void
  21533. ScrollView_SetViewPosition (Urho3D::ScrollView *_target, const class Urho3D::IntVector2 & position)
  21534. {
  21535. _target->SetViewPosition (position);
  21536. }
  21537. DllExport void
  21538. ScrollView_SetViewPosition0 (Urho3D::ScrollView *_target, int x, int y)
  21539. {
  21540. _target->SetViewPosition (x, y);
  21541. }
  21542. DllExport void
  21543. ScrollView_SetScrollBarsVisible (Urho3D::ScrollView *_target, bool horizontal, bool vertical)
  21544. {
  21545. _target->SetScrollBarsVisible (horizontal, vertical);
  21546. }
  21547. DllExport void
  21548. ScrollView_SetScrollBarsAutoVisible (Urho3D::ScrollView *_target, bool enable)
  21549. {
  21550. _target->SetScrollBarsAutoVisible (enable);
  21551. }
  21552. DllExport void
  21553. ScrollView_SetScrollStep (Urho3D::ScrollView *_target, float step)
  21554. {
  21555. _target->SetScrollStep (step);
  21556. }
  21557. DllExport void
  21558. ScrollView_SetPageStep (Urho3D::ScrollView *_target, float step)
  21559. {
  21560. _target->SetPageStep (step);
  21561. }
  21562. DllExport void
  21563. ScrollView_SetScrollDeceleration (Urho3D::ScrollView *_target, float deceleration)
  21564. {
  21565. _target->SetScrollDeceleration (deceleration);
  21566. }
  21567. DllExport void
  21568. ScrollView_SetScrollSnapEpsilon (Urho3D::ScrollView *_target, float snap)
  21569. {
  21570. _target->SetScrollSnapEpsilon (snap);
  21571. }
  21572. DllExport void
  21573. ScrollView_SetAutoDisableChildren (Urho3D::ScrollView *_target, bool disable)
  21574. {
  21575. _target->SetAutoDisableChildren (disable);
  21576. }
  21577. DllExport void
  21578. ScrollView_SetAutoDisableThreshold (Urho3D::ScrollView *_target, float amount)
  21579. {
  21580. _target->SetAutoDisableThreshold (amount);
  21581. }
  21582. DllExport Interop::IntVector2
  21583. ScrollView_GetViewPosition (Urho3D::ScrollView *_target)
  21584. {
  21585. return *((Interop::IntVector2 *) &(_target->GetViewPosition ()));
  21586. }
  21587. DllExport Urho3D::UIElement *
  21588. ScrollView_GetContentElement (Urho3D::ScrollView *_target)
  21589. {
  21590. return _target->GetContentElement ();
  21591. }
  21592. DllExport Urho3D::ScrollBar *
  21593. ScrollView_GetHorizontalScrollBar (Urho3D::ScrollView *_target)
  21594. {
  21595. return _target->GetHorizontalScrollBar ();
  21596. }
  21597. DllExport Urho3D::ScrollBar *
  21598. ScrollView_GetVerticalScrollBar (Urho3D::ScrollView *_target)
  21599. {
  21600. return _target->GetVerticalScrollBar ();
  21601. }
  21602. DllExport Urho3D::BorderImage *
  21603. ScrollView_GetScrollPanel (Urho3D::ScrollView *_target)
  21604. {
  21605. return _target->GetScrollPanel ();
  21606. }
  21607. DllExport int
  21608. ScrollView_GetScrollBarsAutoVisible (Urho3D::ScrollView *_target)
  21609. {
  21610. return _target->GetScrollBarsAutoVisible ();
  21611. }
  21612. DllExport float
  21613. ScrollView_GetScrollStep (Urho3D::ScrollView *_target)
  21614. {
  21615. return _target->GetScrollStep ();
  21616. }
  21617. DllExport float
  21618. ScrollView_GetPageStep (Urho3D::ScrollView *_target)
  21619. {
  21620. return _target->GetPageStep ();
  21621. }
  21622. DllExport float
  21623. ScrollView_GetScrollDeceleration (Urho3D::ScrollView *_target)
  21624. {
  21625. return _target->GetScrollDeceleration ();
  21626. }
  21627. DllExport float
  21628. ScrollView_GetScrollSnapEpsilon (Urho3D::ScrollView *_target)
  21629. {
  21630. return _target->GetScrollSnapEpsilon ();
  21631. }
  21632. DllExport int
  21633. ScrollView_GetAutoDisableChildren (Urho3D::ScrollView *_target)
  21634. {
  21635. return _target->GetAutoDisableChildren ();
  21636. }
  21637. DllExport float
  21638. ScrollView_GetAutoDisableThreshold (Urho3D::ScrollView *_target)
  21639. {
  21640. return _target->GetAutoDisableThreshold ();
  21641. }
  21642. DllExport void
  21643. ScrollView_SetViewPositionAttr (Urho3D::ScrollView *_target, const class Urho3D::IntVector2 & value)
  21644. {
  21645. _target->SetViewPositionAttr (value);
  21646. }
  21647. DllExport int
  21648. ListView_GetType (Urho3D::ListView *_target)
  21649. {
  21650. return (_target->GetType ()).Value ();
  21651. }
  21652. DllExport const char *
  21653. ListView_GetTypeName (Urho3D::ListView *_target)
  21654. {
  21655. return stringdup((_target->GetTypeName ()).CString ());
  21656. }
  21657. DllExport int
  21658. ListView_GetTypeStatic ()
  21659. {
  21660. return (ListView::GetTypeStatic ()).Value ();
  21661. }
  21662. DllExport const char *
  21663. ListView_GetTypeNameStatic ()
  21664. {
  21665. return stringdup((ListView::GetTypeNameStatic ()).CString ());
  21666. }
  21667. DllExport void *
  21668. ListView_ListView (Urho3D::Context * context)
  21669. {
  21670. return WeakPtr<ListView>(new ListView(context));
  21671. }
  21672. DllExport void
  21673. ListView_RegisterObject (Urho3D::Context * context)
  21674. {
  21675. ListView::RegisterObject (context);
  21676. }
  21677. DllExport void
  21678. ListView_OnKey (Urho3D::ListView *_target, int key, int buttons, int qualifiers)
  21679. {
  21680. _target->OnKey (key, buttons, qualifiers);
  21681. }
  21682. DllExport void
  21683. ListView_OnResize (Urho3D::ListView *_target, const class Urho3D::IntVector2 & newSize, const class Urho3D::IntVector2 & delta)
  21684. {
  21685. _target->OnResize (newSize, delta);
  21686. }
  21687. DllExport void
  21688. ListView_AddItem (Urho3D::ListView *_target, Urho3D::UIElement * item)
  21689. {
  21690. _target->AddItem (item);
  21691. }
  21692. DllExport void
  21693. ListView_InsertItem (Urho3D::ListView *_target, unsigned int index, Urho3D::UIElement * item, Urho3D::UIElement * parentItem)
  21694. {
  21695. _target->InsertItem (index, item, parentItem);
  21696. }
  21697. DllExport void
  21698. ListView_RemoveItem (Urho3D::ListView *_target, Urho3D::UIElement * item, unsigned int index)
  21699. {
  21700. _target->RemoveItem (item, index);
  21701. }
  21702. DllExport void
  21703. ListView_RemoveItem0 (Urho3D::ListView *_target, unsigned int index)
  21704. {
  21705. _target->RemoveItem (index);
  21706. }
  21707. DllExport void
  21708. ListView_RemoveAllItems (Urho3D::ListView *_target)
  21709. {
  21710. _target->RemoveAllItems ();
  21711. }
  21712. DllExport void
  21713. ListView_SetSelection (Urho3D::ListView *_target, unsigned int index)
  21714. {
  21715. _target->SetSelection (index);
  21716. }
  21717. DllExport void
  21718. ListView_AddSelection (Urho3D::ListView *_target, unsigned int index)
  21719. {
  21720. _target->AddSelection (index);
  21721. }
  21722. DllExport void
  21723. ListView_RemoveSelection (Urho3D::ListView *_target, unsigned int index)
  21724. {
  21725. _target->RemoveSelection (index);
  21726. }
  21727. DllExport void
  21728. ListView_ToggleSelection (Urho3D::ListView *_target, unsigned int index)
  21729. {
  21730. _target->ToggleSelection (index);
  21731. }
  21732. DllExport void
  21733. ListView_ChangeSelection (Urho3D::ListView *_target, int delta, bool additive)
  21734. {
  21735. _target->ChangeSelection (delta, additive);
  21736. }
  21737. DllExport void
  21738. ListView_ClearSelection (Urho3D::ListView *_target)
  21739. {
  21740. _target->ClearSelection ();
  21741. }
  21742. DllExport void
  21743. ListView_SetHighlightMode (Urho3D::ListView *_target, enum Urho3D::HighlightMode mode)
  21744. {
  21745. _target->SetHighlightMode (mode);
  21746. }
  21747. DllExport void
  21748. ListView_SetMultiselect (Urho3D::ListView *_target, bool enable)
  21749. {
  21750. _target->SetMultiselect (enable);
  21751. }
  21752. DllExport void
  21753. ListView_SetHierarchyMode (Urho3D::ListView *_target, bool enable)
  21754. {
  21755. _target->SetHierarchyMode (enable);
  21756. }
  21757. DllExport void
  21758. ListView_SetBaseIndent (Urho3D::ListView *_target, int baseIndent)
  21759. {
  21760. _target->SetBaseIndent (baseIndent);
  21761. }
  21762. DllExport void
  21763. ListView_SetClearSelectionOnDefocus (Urho3D::ListView *_target, bool enable)
  21764. {
  21765. _target->SetClearSelectionOnDefocus (enable);
  21766. }
  21767. DllExport void
  21768. ListView_SetSelectOnClickEnd (Urho3D::ListView *_target, bool enable)
  21769. {
  21770. _target->SetSelectOnClickEnd (enable);
  21771. }
  21772. DllExport void
  21773. ListView_Expand (Urho3D::ListView *_target, unsigned int index, bool enable, bool recursive)
  21774. {
  21775. _target->Expand (index, enable, recursive);
  21776. }
  21777. DllExport void
  21778. ListView_ToggleExpand (Urho3D::ListView *_target, unsigned int index, bool recursive)
  21779. {
  21780. _target->ToggleExpand (index, recursive);
  21781. }
  21782. DllExport unsigned int
  21783. ListView_GetNumItems (Urho3D::ListView *_target)
  21784. {
  21785. return _target->GetNumItems ();
  21786. }
  21787. DllExport Urho3D::UIElement *
  21788. ListView_GetItem (Urho3D::ListView *_target, unsigned int index)
  21789. {
  21790. return _target->GetItem (index);
  21791. }
  21792. DllExport unsigned int
  21793. ListView_FindItem (Urho3D::ListView *_target, Urho3D::UIElement * item)
  21794. {
  21795. return _target->FindItem (item);
  21796. }
  21797. DllExport unsigned int
  21798. ListView_GetSelection (Urho3D::ListView *_target)
  21799. {
  21800. return _target->GetSelection ();
  21801. }
  21802. DllExport void
  21803. ListView_CopySelectedItemsToClipboard (Urho3D::ListView *_target)
  21804. {
  21805. _target->CopySelectedItemsToClipboard ();
  21806. }
  21807. DllExport Urho3D::UIElement *
  21808. ListView_GetSelectedItem (Urho3D::ListView *_target)
  21809. {
  21810. return _target->GetSelectedItem ();
  21811. }
  21812. DllExport int
  21813. ListView_IsSelected (Urho3D::ListView *_target, unsigned int index)
  21814. {
  21815. return _target->IsSelected (index);
  21816. }
  21817. DllExport int
  21818. ListView_IsExpanded (Urho3D::ListView *_target, unsigned int index)
  21819. {
  21820. return _target->IsExpanded (index);
  21821. }
  21822. DllExport enum Urho3D::HighlightMode
  21823. ListView_GetHighlightMode (Urho3D::ListView *_target)
  21824. {
  21825. return _target->GetHighlightMode ();
  21826. }
  21827. DllExport int
  21828. ListView_GetMultiselect (Urho3D::ListView *_target)
  21829. {
  21830. return _target->GetMultiselect ();
  21831. }
  21832. DllExport int
  21833. ListView_GetClearSelectionOnDefocus (Urho3D::ListView *_target)
  21834. {
  21835. return _target->GetClearSelectionOnDefocus ();
  21836. }
  21837. DllExport int
  21838. ListView_GetSelectOnClickEnd (Urho3D::ListView *_target)
  21839. {
  21840. return _target->GetSelectOnClickEnd ();
  21841. }
  21842. DllExport int
  21843. ListView_GetHierarchyMode (Urho3D::ListView *_target)
  21844. {
  21845. return _target->GetHierarchyMode ();
  21846. }
  21847. DllExport int
  21848. ListView_GetBaseIndent (Urho3D::ListView *_target)
  21849. {
  21850. return _target->GetBaseIndent ();
  21851. }
  21852. DllExport void
  21853. ListView_EnsureItemVisibility (Urho3D::ListView *_target, unsigned int index)
  21854. {
  21855. _target->EnsureItemVisibility (index);
  21856. }
  21857. DllExport void
  21858. ListView_EnsureItemVisibility1 (Urho3D::ListView *_target, Urho3D::UIElement * item)
  21859. {
  21860. _target->EnsureItemVisibility (item);
  21861. }
  21862. DllExport int
  21863. UIComponent_GetType (Urho3D::UIComponent *_target)
  21864. {
  21865. return (_target->GetType ()).Value ();
  21866. }
  21867. DllExport const char *
  21868. UIComponent_GetTypeName (Urho3D::UIComponent *_target)
  21869. {
  21870. return stringdup((_target->GetTypeName ()).CString ());
  21871. }
  21872. DllExport int
  21873. UIComponent_GetTypeStatic ()
  21874. {
  21875. return (UIComponent::GetTypeStatic ()).Value ();
  21876. }
  21877. DllExport const char *
  21878. UIComponent_GetTypeNameStatic ()
  21879. {
  21880. return stringdup((UIComponent::GetTypeNameStatic ()).CString ());
  21881. }
  21882. DllExport void *
  21883. UIComponent_UIComponent (Urho3D::Context * context)
  21884. {
  21885. return WeakPtr<UIComponent>(new UIComponent(context));
  21886. }
  21887. DllExport void
  21888. UIComponent_RegisterObject (Urho3D::Context * context)
  21889. {
  21890. UIComponent::RegisterObject (context);
  21891. }
  21892. DllExport Urho3D::UIElement *
  21893. UIComponent_GetRoot (Urho3D::UIComponent *_target)
  21894. {
  21895. return _target->GetRoot ();
  21896. }
  21897. DllExport Urho3D::Material *
  21898. UIComponent_GetMaterial (Urho3D::UIComponent *_target)
  21899. {
  21900. return _target->GetMaterial ();
  21901. }
  21902. DllExport Urho3D::Texture2D *
  21903. UIComponent_GetTexture (Urho3D::UIComponent *_target)
  21904. {
  21905. return _target->GetTexture ();
  21906. }
  21907. DllExport int
  21908. ScrollBar_GetType (Urho3D::ScrollBar *_target)
  21909. {
  21910. return (_target->GetType ()).Value ();
  21911. }
  21912. DllExport const char *
  21913. ScrollBar_GetTypeName (Urho3D::ScrollBar *_target)
  21914. {
  21915. return stringdup((_target->GetTypeName ()).CString ());
  21916. }
  21917. DllExport int
  21918. ScrollBar_GetTypeStatic ()
  21919. {
  21920. return (ScrollBar::GetTypeStatic ()).Value ();
  21921. }
  21922. DllExport const char *
  21923. ScrollBar_GetTypeNameStatic ()
  21924. {
  21925. return stringdup((ScrollBar::GetTypeNameStatic ()).CString ());
  21926. }
  21927. DllExport void *
  21928. ScrollBar_ScrollBar (Urho3D::Context * context)
  21929. {
  21930. return WeakPtr<ScrollBar>(new ScrollBar(context));
  21931. }
  21932. DllExport void
  21933. ScrollBar_RegisterObject (Urho3D::Context * context)
  21934. {
  21935. ScrollBar::RegisterObject (context);
  21936. }
  21937. DllExport void
  21938. ScrollBar_ApplyAttributes (Urho3D::ScrollBar *_target)
  21939. {
  21940. _target->ApplyAttributes ();
  21941. }
  21942. DllExport void
  21943. ScrollBar_OnResize (Urho3D::ScrollBar *_target, const class Urho3D::IntVector2 & newSize, const class Urho3D::IntVector2 & delta)
  21944. {
  21945. _target->OnResize (newSize, delta);
  21946. }
  21947. DllExport void
  21948. ScrollBar_OnSetEditable (Urho3D::ScrollBar *_target)
  21949. {
  21950. _target->OnSetEditable ();
  21951. }
  21952. DllExport void
  21953. ScrollBar_SetOrientation (Urho3D::ScrollBar *_target, enum Urho3D::Orientation orientation)
  21954. {
  21955. _target->SetOrientation (orientation);
  21956. }
  21957. DllExport void
  21958. ScrollBar_SetRange (Urho3D::ScrollBar *_target, float range)
  21959. {
  21960. _target->SetRange (range);
  21961. }
  21962. DllExport void
  21963. ScrollBar_SetValue (Urho3D::ScrollBar *_target, float value)
  21964. {
  21965. _target->SetValue (value);
  21966. }
  21967. DllExport void
  21968. ScrollBar_ChangeValue (Urho3D::ScrollBar *_target, float delta)
  21969. {
  21970. _target->ChangeValue (delta);
  21971. }
  21972. DllExport void
  21973. ScrollBar_SetScrollStep (Urho3D::ScrollBar *_target, float step)
  21974. {
  21975. _target->SetScrollStep (step);
  21976. }
  21977. DllExport void
  21978. ScrollBar_SetStepFactor (Urho3D::ScrollBar *_target, float factor)
  21979. {
  21980. _target->SetStepFactor (factor);
  21981. }
  21982. DllExport void
  21983. ScrollBar_StepBack (Urho3D::ScrollBar *_target)
  21984. {
  21985. _target->StepBack ();
  21986. }
  21987. DllExport void
  21988. ScrollBar_StepForward (Urho3D::ScrollBar *_target)
  21989. {
  21990. _target->StepForward ();
  21991. }
  21992. DllExport enum Urho3D::Orientation
  21993. ScrollBar_GetOrientation (Urho3D::ScrollBar *_target)
  21994. {
  21995. return _target->GetOrientation ();
  21996. }
  21997. DllExport float
  21998. ScrollBar_GetRange (Urho3D::ScrollBar *_target)
  21999. {
  22000. return _target->GetRange ();
  22001. }
  22002. DllExport float
  22003. ScrollBar_GetValue (Urho3D::ScrollBar *_target)
  22004. {
  22005. return _target->GetValue ();
  22006. }
  22007. DllExport float
  22008. ScrollBar_GetScrollStep (Urho3D::ScrollBar *_target)
  22009. {
  22010. return _target->GetScrollStep ();
  22011. }
  22012. DllExport float
  22013. ScrollBar_GetStepFactor (Urho3D::ScrollBar *_target)
  22014. {
  22015. return _target->GetStepFactor ();
  22016. }
  22017. DllExport float
  22018. ScrollBar_GetEffectiveScrollStep (Urho3D::ScrollBar *_target)
  22019. {
  22020. return _target->GetEffectiveScrollStep ();
  22021. }
  22022. DllExport Urho3D::Button *
  22023. ScrollBar_GetBackButton (Urho3D::ScrollBar *_target)
  22024. {
  22025. return _target->GetBackButton ();
  22026. }
  22027. DllExport Urho3D::Button *
  22028. ScrollBar_GetForwardButton (Urho3D::ScrollBar *_target)
  22029. {
  22030. return _target->GetForwardButton ();
  22031. }
  22032. DllExport Urho3D::Slider *
  22033. ScrollBar_GetSlider (Urho3D::ScrollBar *_target)
  22034. {
  22035. return _target->GetSlider ();
  22036. }
  22037. DllExport int
  22038. Slider_GetType (Urho3D::Slider *_target)
  22039. {
  22040. return (_target->GetType ()).Value ();
  22041. }
  22042. DllExport const char *
  22043. Slider_GetTypeName (Urho3D::Slider *_target)
  22044. {
  22045. return stringdup((_target->GetTypeName ()).CString ());
  22046. }
  22047. DllExport int
  22048. Slider_GetTypeStatic ()
  22049. {
  22050. return (Slider::GetTypeStatic ()).Value ();
  22051. }
  22052. DllExport const char *
  22053. Slider_GetTypeNameStatic ()
  22054. {
  22055. return stringdup((Slider::GetTypeNameStatic ()).CString ());
  22056. }
  22057. DllExport void *
  22058. Slider_Slider (Urho3D::Context * context)
  22059. {
  22060. return WeakPtr<Slider>(new Slider(context));
  22061. }
  22062. DllExport void
  22063. Slider_RegisterObject (Urho3D::Context * context)
  22064. {
  22065. Slider::RegisterObject (context);
  22066. }
  22067. DllExport void
  22068. Slider_Update (Urho3D::Slider *_target, float timeStep)
  22069. {
  22070. _target->Update (timeStep);
  22071. }
  22072. DllExport void
  22073. Slider_OnHover (Urho3D::Slider *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  22074. {
  22075. _target->OnHover (position, screenPosition, buttons, qualifiers, cursor);
  22076. }
  22077. DllExport void
  22078. Slider_OnClickBegin (Urho3D::Slider *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int button, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  22079. {
  22080. _target->OnClickBegin (position, screenPosition, button, buttons, qualifiers, cursor);
  22081. }
  22082. DllExport void
  22083. 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)
  22084. {
  22085. _target->OnClickEnd (position, screenPosition, button, buttons, qualifiers, cursor, beginElement);
  22086. }
  22087. DllExport void
  22088. Slider_OnResize (Urho3D::Slider *_target, const class Urho3D::IntVector2 & newSize, const class Urho3D::IntVector2 & delta)
  22089. {
  22090. _target->OnResize (newSize, delta);
  22091. }
  22092. DllExport void
  22093. Slider_SetOrientation (Urho3D::Slider *_target, enum Urho3D::Orientation orientation)
  22094. {
  22095. _target->SetOrientation (orientation);
  22096. }
  22097. DllExport void
  22098. Slider_SetRange (Urho3D::Slider *_target, float range)
  22099. {
  22100. _target->SetRange (range);
  22101. }
  22102. DllExport void
  22103. Slider_SetValue (Urho3D::Slider *_target, float value)
  22104. {
  22105. _target->SetValue (value);
  22106. }
  22107. DllExport void
  22108. Slider_ChangeValue (Urho3D::Slider *_target, float delta)
  22109. {
  22110. _target->ChangeValue (delta);
  22111. }
  22112. DllExport void
  22113. Slider_SetRepeatRate (Urho3D::Slider *_target, float rate)
  22114. {
  22115. _target->SetRepeatRate (rate);
  22116. }
  22117. DllExport enum Urho3D::Orientation
  22118. Slider_GetOrientation (Urho3D::Slider *_target)
  22119. {
  22120. return _target->GetOrientation ();
  22121. }
  22122. DllExport float
  22123. Slider_GetRange (Urho3D::Slider *_target)
  22124. {
  22125. return _target->GetRange ();
  22126. }
  22127. DllExport float
  22128. Slider_GetValue (Urho3D::Slider *_target)
  22129. {
  22130. return _target->GetValue ();
  22131. }
  22132. DllExport Urho3D::BorderImage *
  22133. Slider_GetKnob (Urho3D::Slider *_target)
  22134. {
  22135. return _target->GetKnob ();
  22136. }
  22137. DllExport float
  22138. Slider_GetRepeatRate (Urho3D::Slider *_target)
  22139. {
  22140. return _target->GetRepeatRate ();
  22141. }
  22142. DllExport int
  22143. Sprite_GetType (Urho3D::Sprite *_target)
  22144. {
  22145. return (_target->GetType ()).Value ();
  22146. }
  22147. DllExport const char *
  22148. Sprite_GetTypeName (Urho3D::Sprite *_target)
  22149. {
  22150. return stringdup((_target->GetTypeName ()).CString ());
  22151. }
  22152. DllExport int
  22153. Sprite_GetTypeStatic ()
  22154. {
  22155. return (Sprite::GetTypeStatic ()).Value ();
  22156. }
  22157. DllExport const char *
  22158. Sprite_GetTypeNameStatic ()
  22159. {
  22160. return stringdup((Sprite::GetTypeNameStatic ()).CString ());
  22161. }
  22162. DllExport void *
  22163. Sprite_Sprite (Urho3D::Context * context)
  22164. {
  22165. return WeakPtr<Sprite>(new Sprite(context));
  22166. }
  22167. DllExport void
  22168. Sprite_RegisterObject (Urho3D::Context * context)
  22169. {
  22170. Sprite::RegisterObject (context);
  22171. }
  22172. DllExport int
  22173. Sprite_IsWithinScissor (Urho3D::Sprite *_target, const class Urho3D::IntRect & currentScissor)
  22174. {
  22175. return _target->IsWithinScissor (currentScissor);
  22176. }
  22177. DllExport Interop::IntVector2
  22178. Sprite_GetScreenPosition (Urho3D::Sprite *_target)
  22179. {
  22180. return *((Interop::IntVector2 *) &(_target->GetScreenPosition ()));
  22181. }
  22182. DllExport void
  22183. Sprite_OnPositionSet (Urho3D::Sprite *_target, const class Urho3D::IntVector2 & newPosition)
  22184. {
  22185. _target->OnPositionSet (newPosition);
  22186. }
  22187. DllExport Interop::IntVector2
  22188. Sprite_ScreenToElement (Urho3D::Sprite *_target, const class Urho3D::IntVector2 & screenPosition)
  22189. {
  22190. return *((Interop::IntVector2 *) &(_target->ScreenToElement (screenPosition)));
  22191. }
  22192. DllExport Interop::IntVector2
  22193. Sprite_ElementToScreen (Urho3D::Sprite *_target, const class Urho3D::IntVector2 & position)
  22194. {
  22195. return *((Interop::IntVector2 *) &(_target->ElementToScreen (position)));
  22196. }
  22197. DllExport void
  22198. Sprite_SetPosition (Urho3D::Sprite *_target, const class Urho3D::Vector2 & position)
  22199. {
  22200. _target->SetPosition (position);
  22201. }
  22202. DllExport void
  22203. Sprite_SetPosition0 (Urho3D::Sprite *_target, float x, float y)
  22204. {
  22205. _target->SetPosition (x, y);
  22206. }
  22207. DllExport void
  22208. Sprite_SetHotSpot (Urho3D::Sprite *_target, const class Urho3D::IntVector2 & hotSpot)
  22209. {
  22210. _target->SetHotSpot (hotSpot);
  22211. }
  22212. DllExport void
  22213. Sprite_SetHotSpot1 (Urho3D::Sprite *_target, int x, int y)
  22214. {
  22215. _target->SetHotSpot (x, y);
  22216. }
  22217. DllExport void
  22218. Sprite_SetScale (Urho3D::Sprite *_target, const class Urho3D::Vector2 & scale)
  22219. {
  22220. _target->SetScale (scale);
  22221. }
  22222. DllExport void
  22223. Sprite_SetScale2 (Urho3D::Sprite *_target, float x, float y)
  22224. {
  22225. _target->SetScale (x, y);
  22226. }
  22227. DllExport void
  22228. Sprite_SetScale3 (Urho3D::Sprite *_target, float scale)
  22229. {
  22230. _target->SetScale (scale);
  22231. }
  22232. DllExport void
  22233. Sprite_SetRotation (Urho3D::Sprite *_target, float angle)
  22234. {
  22235. _target->SetRotation (angle);
  22236. }
  22237. DllExport void
  22238. Sprite_SetTexture (Urho3D::Sprite *_target, Urho3D::Texture * texture)
  22239. {
  22240. _target->SetTexture (texture);
  22241. }
  22242. DllExport void
  22243. Sprite_SetImageRect (Urho3D::Sprite *_target, const class Urho3D::IntRect & rect)
  22244. {
  22245. _target->SetImageRect (rect);
  22246. }
  22247. DllExport void
  22248. Sprite_SetFullImageRect (Urho3D::Sprite *_target)
  22249. {
  22250. _target->SetFullImageRect ();
  22251. }
  22252. DllExport void
  22253. Sprite_SetBlendMode (Urho3D::Sprite *_target, enum Urho3D::BlendMode mode)
  22254. {
  22255. _target->SetBlendMode (mode);
  22256. }
  22257. DllExport Interop::Vector2
  22258. Sprite_GetPosition (Urho3D::Sprite *_target)
  22259. {
  22260. return *((Interop::Vector2 *) &(_target->GetPosition ()));
  22261. }
  22262. DllExport Interop::IntVector2
  22263. Sprite_GetHotSpot (Urho3D::Sprite *_target)
  22264. {
  22265. return *((Interop::IntVector2 *) &(_target->GetHotSpot ()));
  22266. }
  22267. DllExport Interop::Vector2
  22268. Sprite_GetScale (Urho3D::Sprite *_target)
  22269. {
  22270. return *((Interop::Vector2 *) &(_target->GetScale ()));
  22271. }
  22272. DllExport float
  22273. Sprite_GetRotation (Urho3D::Sprite *_target)
  22274. {
  22275. return _target->GetRotation ();
  22276. }
  22277. DllExport Urho3D::Texture *
  22278. Sprite_GetTexture (Urho3D::Sprite *_target)
  22279. {
  22280. return _target->GetTexture ();
  22281. }
  22282. DllExport Interop::IntRect
  22283. Sprite_GetImageRect (Urho3D::Sprite *_target)
  22284. {
  22285. return *((Interop::IntRect *) &(_target->GetImageRect ()));
  22286. }
  22287. DllExport enum Urho3D::BlendMode
  22288. Sprite_GetBlendMode (Urho3D::Sprite *_target)
  22289. {
  22290. return _target->GetBlendMode ();
  22291. }
  22292. DllExport Urho3D::ResourceRef
  22293. Sprite_GetTextureAttr (Urho3D::Sprite *_target)
  22294. {
  22295. return _target->GetTextureAttr ();
  22296. }
  22297. DllExport Interop::Matrix3x4
  22298. Sprite_GetTransform (Urho3D::Sprite *_target)
  22299. {
  22300. return *((Interop::Matrix3x4 *) &(_target->GetTransform ()));
  22301. }
  22302. DllExport int
  22303. Text_GetType (Urho3D::Text *_target)
  22304. {
  22305. return (_target->GetType ()).Value ();
  22306. }
  22307. DllExport const char *
  22308. Text_GetTypeName (Urho3D::Text *_target)
  22309. {
  22310. return stringdup((_target->GetTypeName ()).CString ());
  22311. }
  22312. DllExport int
  22313. Text_GetTypeStatic ()
  22314. {
  22315. return (Text::GetTypeStatic ()).Value ();
  22316. }
  22317. DllExport const char *
  22318. Text_GetTypeNameStatic ()
  22319. {
  22320. return stringdup((Text::GetTypeNameStatic ()).CString ());
  22321. }
  22322. DllExport void *
  22323. Text_Text (Urho3D::Context * context)
  22324. {
  22325. return WeakPtr<Text>(new Text(context));
  22326. }
  22327. DllExport void
  22328. Text_RegisterObject (Urho3D::Context * context)
  22329. {
  22330. Text::RegisterObject (context);
  22331. }
  22332. DllExport void
  22333. Text_ApplyAttributes (Urho3D::Text *_target)
  22334. {
  22335. _target->ApplyAttributes ();
  22336. }
  22337. DllExport void
  22338. Text_OnResize (Urho3D::Text *_target, const class Urho3D::IntVector2 & newSize, const class Urho3D::IntVector2 & delta)
  22339. {
  22340. _target->OnResize (newSize, delta);
  22341. }
  22342. DllExport void
  22343. Text_OnIndentSet (Urho3D::Text *_target)
  22344. {
  22345. _target->OnIndentSet ();
  22346. }
  22347. DllExport int
  22348. Text_SetFont (Urho3D::Text *_target, const char * fontName, float size)
  22349. {
  22350. return _target->SetFont (Urho3D::String(fontName), size);
  22351. }
  22352. DllExport int
  22353. Text_SetFont0 (Urho3D::Text *_target, Urho3D::Font * font, float size)
  22354. {
  22355. return _target->SetFont (font, size);
  22356. }
  22357. DllExport int
  22358. Text_SetFontSize (Urho3D::Text *_target, float size)
  22359. {
  22360. return _target->SetFontSize (size);
  22361. }
  22362. DllExport void
  22363. Text_SetText (Urho3D::Text *_target, const char * text)
  22364. {
  22365. _target->SetText (Urho3D::String(text));
  22366. }
  22367. DllExport void
  22368. Text_SetTextAlignment (Urho3D::Text *_target, enum Urho3D::HorizontalAlignment align)
  22369. {
  22370. _target->SetTextAlignment (align);
  22371. }
  22372. DllExport void
  22373. Text_SetRowSpacing (Urho3D::Text *_target, float spacing)
  22374. {
  22375. _target->SetRowSpacing (spacing);
  22376. }
  22377. DllExport void
  22378. Text_SetWordwrap (Urho3D::Text *_target, bool enable)
  22379. {
  22380. _target->SetWordwrap (enable);
  22381. }
  22382. DllExport void
  22383. Text_SetAutoLocalizable (Urho3D::Text *_target, bool enable)
  22384. {
  22385. _target->SetAutoLocalizable (enable);
  22386. }
  22387. DllExport void
  22388. Text_SetSelection (Urho3D::Text *_target, unsigned int start, unsigned int length)
  22389. {
  22390. _target->SetSelection (start, length);
  22391. }
  22392. DllExport void
  22393. Text_ClearSelection (Urho3D::Text *_target)
  22394. {
  22395. _target->ClearSelection ();
  22396. }
  22397. DllExport void
  22398. Text_SetSelectionColor (Urho3D::Text *_target, const class Urho3D::Color & color)
  22399. {
  22400. _target->SetSelectionColor (color);
  22401. }
  22402. DllExport void
  22403. Text_SetHoverColor (Urho3D::Text *_target, const class Urho3D::Color & color)
  22404. {
  22405. _target->SetHoverColor (color);
  22406. }
  22407. DllExport void
  22408. Text_SetTextEffect (Urho3D::Text *_target, enum Urho3D::TextEffect textEffect)
  22409. {
  22410. _target->SetTextEffect (textEffect);
  22411. }
  22412. DllExport void
  22413. Text_SetEffectShadowOffset (Urho3D::Text *_target, const class Urho3D::IntVector2 & offset)
  22414. {
  22415. _target->SetEffectShadowOffset (offset);
  22416. }
  22417. DllExport void
  22418. Text_SetEffectStrokeThickness (Urho3D::Text *_target, int thickness)
  22419. {
  22420. _target->SetEffectStrokeThickness (thickness);
  22421. }
  22422. DllExport void
  22423. Text_SetEffectRoundStroke (Urho3D::Text *_target, bool roundStroke)
  22424. {
  22425. _target->SetEffectRoundStroke (roundStroke);
  22426. }
  22427. DllExport void
  22428. Text_SetEffectColor (Urho3D::Text *_target, const class Urho3D::Color & effectColor)
  22429. {
  22430. _target->SetEffectColor (effectColor);
  22431. }
  22432. DllExport Urho3D::Font *
  22433. Text_GetFont (Urho3D::Text *_target)
  22434. {
  22435. return _target->GetFont ();
  22436. }
  22437. DllExport float
  22438. Text_GetFontSize (Urho3D::Text *_target)
  22439. {
  22440. return _target->GetFontSize ();
  22441. }
  22442. DllExport const char *
  22443. Text_GetText (Urho3D::Text *_target)
  22444. {
  22445. return stringdup((_target->GetText ()).CString ());
  22446. }
  22447. DllExport enum Urho3D::HorizontalAlignment
  22448. Text_GetTextAlignment (Urho3D::Text *_target)
  22449. {
  22450. return _target->GetTextAlignment ();
  22451. }
  22452. DllExport float
  22453. Text_GetRowSpacing (Urho3D::Text *_target)
  22454. {
  22455. return _target->GetRowSpacing ();
  22456. }
  22457. DllExport int
  22458. Text_GetWordwrap (Urho3D::Text *_target)
  22459. {
  22460. return _target->GetWordwrap ();
  22461. }
  22462. DllExport int
  22463. Text_GetAutoLocalizable (Urho3D::Text *_target)
  22464. {
  22465. return _target->GetAutoLocalizable ();
  22466. }
  22467. DllExport unsigned int
  22468. Text_GetSelectionStart (Urho3D::Text *_target)
  22469. {
  22470. return _target->GetSelectionStart ();
  22471. }
  22472. DllExport unsigned int
  22473. Text_GetSelectionLength (Urho3D::Text *_target)
  22474. {
  22475. return _target->GetSelectionLength ();
  22476. }
  22477. DllExport Interop::Color
  22478. Text_GetSelectionColor (Urho3D::Text *_target)
  22479. {
  22480. return *((Interop::Color *) &(_target->GetSelectionColor ()));
  22481. }
  22482. DllExport Interop::Color
  22483. Text_GetHoverColor (Urho3D::Text *_target)
  22484. {
  22485. return *((Interop::Color *) &(_target->GetHoverColor ()));
  22486. }
  22487. DllExport enum Urho3D::TextEffect
  22488. Text_GetTextEffect (Urho3D::Text *_target)
  22489. {
  22490. return _target->GetTextEffect ();
  22491. }
  22492. DllExport Interop::IntVector2
  22493. Text_GetEffectShadowOffset (Urho3D::Text *_target)
  22494. {
  22495. return *((Interop::IntVector2 *) &(_target->GetEffectShadowOffset ()));
  22496. }
  22497. DllExport int
  22498. Text_GetEffectStrokeThickness (Urho3D::Text *_target)
  22499. {
  22500. return _target->GetEffectStrokeThickness ();
  22501. }
  22502. DllExport int
  22503. Text_GetEffectRoundStroke (Urho3D::Text *_target)
  22504. {
  22505. return _target->GetEffectRoundStroke ();
  22506. }
  22507. DllExport Interop::Color
  22508. Text_GetEffectColor (Urho3D::Text *_target)
  22509. {
  22510. return *((Interop::Color *) &(_target->GetEffectColor ()));
  22511. }
  22512. DllExport float
  22513. Text_GetRowHeight (Urho3D::Text *_target)
  22514. {
  22515. return _target->GetRowHeight ();
  22516. }
  22517. DllExport unsigned int
  22518. Text_GetNumRows (Urho3D::Text *_target)
  22519. {
  22520. return _target->GetNumRows ();
  22521. }
  22522. DllExport unsigned int
  22523. Text_GetNumChars (Urho3D::Text *_target)
  22524. {
  22525. return _target->GetNumChars ();
  22526. }
  22527. DllExport float
  22528. Text_GetRowWidth (Urho3D::Text *_target, unsigned int index)
  22529. {
  22530. return _target->GetRowWidth (index);
  22531. }
  22532. DllExport Interop::Vector2
  22533. Text_GetCharPosition (Urho3D::Text *_target, unsigned int index)
  22534. {
  22535. return *((Interop::Vector2 *) &(_target->GetCharPosition (index)));
  22536. }
  22537. DllExport Interop::Vector2
  22538. Text_GetCharSize (Urho3D::Text *_target, unsigned int index)
  22539. {
  22540. return *((Interop::Vector2 *) &(_target->GetCharSize (index)));
  22541. }
  22542. DllExport void
  22543. Text_SetEffectDepthBias (Urho3D::Text *_target, float bias)
  22544. {
  22545. _target->SetEffectDepthBias (bias);
  22546. }
  22547. DllExport float
  22548. Text_GetEffectDepthBias (Urho3D::Text *_target)
  22549. {
  22550. return _target->GetEffectDepthBias ();
  22551. }
  22552. DllExport Urho3D::ResourceRef
  22553. Text_GetFontAttr (Urho3D::Text *_target)
  22554. {
  22555. return _target->GetFontAttr ();
  22556. }
  22557. DllExport void
  22558. Text_SetTextAttr (Urho3D::Text *_target, const char * value)
  22559. {
  22560. _target->SetTextAttr (Urho3D::String(value));
  22561. }
  22562. DllExport const char *
  22563. Text_GetTextAttr (Urho3D::Text *_target)
  22564. {
  22565. return stringdup((_target->GetTextAttr ()).CString ());
  22566. }
  22567. DllExport int
  22568. Text3D_GetType (Urho3D::Text3D *_target)
  22569. {
  22570. return (_target->GetType ()).Value ();
  22571. }
  22572. DllExport const char *
  22573. Text3D_GetTypeName (Urho3D::Text3D *_target)
  22574. {
  22575. return stringdup((_target->GetTypeName ()).CString ());
  22576. }
  22577. DllExport int
  22578. Text3D_GetTypeStatic ()
  22579. {
  22580. return (Text3D::GetTypeStatic ()).Value ();
  22581. }
  22582. DllExport const char *
  22583. Text3D_GetTypeNameStatic ()
  22584. {
  22585. return stringdup((Text3D::GetTypeNameStatic ()).CString ());
  22586. }
  22587. DllExport void *
  22588. Text3D_Text3D (Urho3D::Context * context)
  22589. {
  22590. return WeakPtr<Text3D>(new Text3D(context));
  22591. }
  22592. DllExport void
  22593. Text3D_RegisterObject (Urho3D::Context * context)
  22594. {
  22595. Text3D::RegisterObject (context);
  22596. }
  22597. DllExport void
  22598. Text3D_ApplyAttributes (Urho3D::Text3D *_target)
  22599. {
  22600. _target->ApplyAttributes ();
  22601. }
  22602. DllExport enum Urho3D::UpdateGeometryType
  22603. Text3D_GetUpdateGeometryType (Urho3D::Text3D *_target)
  22604. {
  22605. return _target->GetUpdateGeometryType ();
  22606. }
  22607. DllExport int
  22608. Text3D_SetFont (Urho3D::Text3D *_target, const char * fontName, float size)
  22609. {
  22610. return _target->SetFont (Urho3D::String(fontName), size);
  22611. }
  22612. DllExport int
  22613. Text3D_SetFont0 (Urho3D::Text3D *_target, Urho3D::Font * font, float size)
  22614. {
  22615. return _target->SetFont (font, size);
  22616. }
  22617. DllExport int
  22618. Text3D_SetFontSize (Urho3D::Text3D *_target, float size)
  22619. {
  22620. return _target->SetFontSize (size);
  22621. }
  22622. DllExport void
  22623. Text3D_SetMaterial (Urho3D::Text3D *_target, Urho3D::Material * material)
  22624. {
  22625. _target->SetMaterial (material);
  22626. }
  22627. DllExport void
  22628. Text3D_SetText (Urho3D::Text3D *_target, const char * text)
  22629. {
  22630. _target->SetText (Urho3D::String(text));
  22631. }
  22632. DllExport void
  22633. Text3D_SetAlignment (Urho3D::Text3D *_target, enum Urho3D::HorizontalAlignment hAlign, enum Urho3D::VerticalAlignment vAlign)
  22634. {
  22635. _target->SetAlignment (hAlign, vAlign);
  22636. }
  22637. DllExport void
  22638. Text3D_SetHorizontalAlignment (Urho3D::Text3D *_target, enum Urho3D::HorizontalAlignment align)
  22639. {
  22640. _target->SetHorizontalAlignment (align);
  22641. }
  22642. DllExport void
  22643. Text3D_SetVerticalAlignment (Urho3D::Text3D *_target, enum Urho3D::VerticalAlignment align)
  22644. {
  22645. _target->SetVerticalAlignment (align);
  22646. }
  22647. DllExport void
  22648. Text3D_SetTextAlignment (Urho3D::Text3D *_target, enum Urho3D::HorizontalAlignment align)
  22649. {
  22650. _target->SetTextAlignment (align);
  22651. }
  22652. DllExport void
  22653. Text3D_SetRowSpacing (Urho3D::Text3D *_target, float spacing)
  22654. {
  22655. _target->SetRowSpacing (spacing);
  22656. }
  22657. DllExport void
  22658. Text3D_SetWordwrap (Urho3D::Text3D *_target, bool enable)
  22659. {
  22660. _target->SetWordwrap (enable);
  22661. }
  22662. DllExport void
  22663. Text3D_SetTextEffect (Urho3D::Text3D *_target, enum Urho3D::TextEffect textEffect)
  22664. {
  22665. _target->SetTextEffect (textEffect);
  22666. }
  22667. DllExport void
  22668. Text3D_SetEffectShadowOffset (Urho3D::Text3D *_target, const class Urho3D::IntVector2 & offset)
  22669. {
  22670. _target->SetEffectShadowOffset (offset);
  22671. }
  22672. DllExport void
  22673. Text3D_SetEffectStrokeThickness (Urho3D::Text3D *_target, int thickness)
  22674. {
  22675. _target->SetEffectStrokeThickness (thickness);
  22676. }
  22677. DllExport void
  22678. Text3D_SetEffectRoundStroke (Urho3D::Text3D *_target, bool roundStroke)
  22679. {
  22680. _target->SetEffectRoundStroke (roundStroke);
  22681. }
  22682. DllExport void
  22683. Text3D_SetEffectColor (Urho3D::Text3D *_target, const class Urho3D::Color & effectColor)
  22684. {
  22685. _target->SetEffectColor (effectColor);
  22686. }
  22687. DllExport void
  22688. Text3D_SetEffectDepthBias (Urho3D::Text3D *_target, float bias)
  22689. {
  22690. _target->SetEffectDepthBias (bias);
  22691. }
  22692. DllExport void
  22693. Text3D_SetWidth (Urho3D::Text3D *_target, int width)
  22694. {
  22695. _target->SetWidth (width);
  22696. }
  22697. DllExport void
  22698. Text3D_SetColor (Urho3D::Text3D *_target, const class Urho3D::Color & color)
  22699. {
  22700. _target->SetColor (color);
  22701. }
  22702. DllExport void
  22703. Text3D_SetColor1 (Urho3D::Text3D *_target, enum Urho3D::Corner corner, const class Urho3D::Color & color)
  22704. {
  22705. _target->SetColor (corner, color);
  22706. }
  22707. DllExport void
  22708. Text3D_SetOpacity (Urho3D::Text3D *_target, float opacity)
  22709. {
  22710. _target->SetOpacity (opacity);
  22711. }
  22712. DllExport void
  22713. Text3D_SetFixedScreenSize (Urho3D::Text3D *_target, bool enable)
  22714. {
  22715. _target->SetFixedScreenSize (enable);
  22716. }
  22717. DllExport void
  22718. Text3D_SetFaceCameraMode (Urho3D::Text3D *_target, enum Urho3D::FaceCameraMode mode)
  22719. {
  22720. _target->SetFaceCameraMode (mode);
  22721. }
  22722. DllExport Urho3D::Font *
  22723. Text3D_GetFont (Urho3D::Text3D *_target)
  22724. {
  22725. return _target->GetFont ();
  22726. }
  22727. DllExport float
  22728. Text3D_GetFontSize (Urho3D::Text3D *_target)
  22729. {
  22730. return _target->GetFontSize ();
  22731. }
  22732. DllExport Urho3D::Material *
  22733. Text3D_GetMaterial (Urho3D::Text3D *_target)
  22734. {
  22735. return _target->GetMaterial ();
  22736. }
  22737. DllExport const char *
  22738. Text3D_GetText (Urho3D::Text3D *_target)
  22739. {
  22740. return stringdup((_target->GetText ()).CString ());
  22741. }
  22742. DllExport enum Urho3D::HorizontalAlignment
  22743. Text3D_GetTextAlignment (Urho3D::Text3D *_target)
  22744. {
  22745. return _target->GetTextAlignment ();
  22746. }
  22747. DllExport enum Urho3D::HorizontalAlignment
  22748. Text3D_GetHorizontalAlignment (Urho3D::Text3D *_target)
  22749. {
  22750. return _target->GetHorizontalAlignment ();
  22751. }
  22752. DllExport enum Urho3D::VerticalAlignment
  22753. Text3D_GetVerticalAlignment (Urho3D::Text3D *_target)
  22754. {
  22755. return _target->GetVerticalAlignment ();
  22756. }
  22757. DllExport float
  22758. Text3D_GetRowSpacing (Urho3D::Text3D *_target)
  22759. {
  22760. return _target->GetRowSpacing ();
  22761. }
  22762. DllExport int
  22763. Text3D_GetWordwrap (Urho3D::Text3D *_target)
  22764. {
  22765. return _target->GetWordwrap ();
  22766. }
  22767. DllExport enum Urho3D::TextEffect
  22768. Text3D_GetTextEffect (Urho3D::Text3D *_target)
  22769. {
  22770. return _target->GetTextEffect ();
  22771. }
  22772. DllExport Interop::IntVector2
  22773. Text3D_GetEffectShadowOffset (Urho3D::Text3D *_target)
  22774. {
  22775. return *((Interop::IntVector2 *) &(_target->GetEffectShadowOffset ()));
  22776. }
  22777. DllExport int
  22778. Text3D_GetEffectStrokeThickness (Urho3D::Text3D *_target)
  22779. {
  22780. return _target->GetEffectStrokeThickness ();
  22781. }
  22782. DllExport int
  22783. Text3D_GetEffectRoundStroke (Urho3D::Text3D *_target)
  22784. {
  22785. return _target->GetEffectRoundStroke ();
  22786. }
  22787. DllExport Interop::Color
  22788. Text3D_GetEffectColor (Urho3D::Text3D *_target)
  22789. {
  22790. return *((Interop::Color *) &(_target->GetEffectColor ()));
  22791. }
  22792. DllExport float
  22793. Text3D_GetEffectDepthBias (Urho3D::Text3D *_target)
  22794. {
  22795. return _target->GetEffectDepthBias ();
  22796. }
  22797. DllExport int
  22798. Text3D_GetWidth (Urho3D::Text3D *_target)
  22799. {
  22800. return _target->GetWidth ();
  22801. }
  22802. DllExport int
  22803. Text3D_GetHeight (Urho3D::Text3D *_target)
  22804. {
  22805. return _target->GetHeight ();
  22806. }
  22807. DllExport int
  22808. Text3D_GetRowHeight (Urho3D::Text3D *_target)
  22809. {
  22810. return _target->GetRowHeight ();
  22811. }
  22812. DllExport unsigned int
  22813. Text3D_GetNumRows (Urho3D::Text3D *_target)
  22814. {
  22815. return _target->GetNumRows ();
  22816. }
  22817. DllExport unsigned int
  22818. Text3D_GetNumChars (Urho3D::Text3D *_target)
  22819. {
  22820. return _target->GetNumChars ();
  22821. }
  22822. DllExport int
  22823. Text3D_GetRowWidth (Urho3D::Text3D *_target, unsigned int index)
  22824. {
  22825. return _target->GetRowWidth (index);
  22826. }
  22827. DllExport Interop::Vector2
  22828. Text3D_GetCharPosition (Urho3D::Text3D *_target, unsigned int index)
  22829. {
  22830. return *((Interop::Vector2 *) &(_target->GetCharPosition (index)));
  22831. }
  22832. DllExport Interop::Vector2
  22833. Text3D_GetCharSize (Urho3D::Text3D *_target, unsigned int index)
  22834. {
  22835. return *((Interop::Vector2 *) &(_target->GetCharSize (index)));
  22836. }
  22837. DllExport Interop::Color
  22838. Text3D_GetColor (Urho3D::Text3D *_target, enum Urho3D::Corner corner)
  22839. {
  22840. return *((Interop::Color *) &(_target->GetColor (corner)));
  22841. }
  22842. DllExport float
  22843. Text3D_GetOpacity (Urho3D::Text3D *_target)
  22844. {
  22845. return _target->GetOpacity ();
  22846. }
  22847. DllExport int
  22848. Text3D_IsFixedScreenSize (Urho3D::Text3D *_target)
  22849. {
  22850. return _target->IsFixedScreenSize ();
  22851. }
  22852. DllExport enum Urho3D::FaceCameraMode
  22853. Text3D_GetFaceCameraMode (Urho3D::Text3D *_target)
  22854. {
  22855. return _target->GetFaceCameraMode ();
  22856. }
  22857. DllExport Urho3D::ResourceRef
  22858. Text3D_GetFontAttr (Urho3D::Text3D *_target)
  22859. {
  22860. return _target->GetFontAttr ();
  22861. }
  22862. DllExport Urho3D::ResourceRef
  22863. Text3D_GetMaterialAttr (Urho3D::Text3D *_target)
  22864. {
  22865. return _target->GetMaterialAttr ();
  22866. }
  22867. DllExport void
  22868. Text3D_SetTextAttr (Urho3D::Text3D *_target, const char * value)
  22869. {
  22870. _target->SetTextAttr (Urho3D::String(value));
  22871. }
  22872. DllExport const char *
  22873. Text3D_GetTextAttr (Urho3D::Text3D *_target)
  22874. {
  22875. return stringdup((_target->GetTextAttr ()).CString ());
  22876. }
  22877. DllExport Interop::Color
  22878. Text3D_GetColorAttr (Urho3D::Text3D *_target)
  22879. {
  22880. return *((Interop::Color *) &(_target->GetColorAttr ()));
  22881. }
  22882. DllExport int
  22883. ToolTip_GetType (Urho3D::ToolTip *_target)
  22884. {
  22885. return (_target->GetType ()).Value ();
  22886. }
  22887. DllExport const char *
  22888. ToolTip_GetTypeName (Urho3D::ToolTip *_target)
  22889. {
  22890. return stringdup((_target->GetTypeName ()).CString ());
  22891. }
  22892. DllExport int
  22893. ToolTip_GetTypeStatic ()
  22894. {
  22895. return (ToolTip::GetTypeStatic ()).Value ();
  22896. }
  22897. DllExport const char *
  22898. ToolTip_GetTypeNameStatic ()
  22899. {
  22900. return stringdup((ToolTip::GetTypeNameStatic ()).CString ());
  22901. }
  22902. DllExport void *
  22903. ToolTip_ToolTip (Urho3D::Context * context)
  22904. {
  22905. return WeakPtr<ToolTip>(new ToolTip(context));
  22906. }
  22907. DllExport void
  22908. ToolTip_RegisterObject (Urho3D::Context * context)
  22909. {
  22910. ToolTip::RegisterObject (context);
  22911. }
  22912. DllExport void
  22913. ToolTip_Update (Urho3D::ToolTip *_target, float timeStep)
  22914. {
  22915. _target->Update (timeStep);
  22916. }
  22917. DllExport void
  22918. ToolTip_SetDelay (Urho3D::ToolTip *_target, float delay)
  22919. {
  22920. _target->SetDelay (delay);
  22921. }
  22922. DllExport float
  22923. ToolTip_GetDelay (Urho3D::ToolTip *_target)
  22924. {
  22925. return _target->GetDelay ();
  22926. }
  22927. DllExport int
  22928. UI_GetType (Urho3D::UI *_target)
  22929. {
  22930. return (_target->GetType ()).Value ();
  22931. }
  22932. DllExport const char *
  22933. UI_GetTypeName (Urho3D::UI *_target)
  22934. {
  22935. return stringdup((_target->GetTypeName ()).CString ());
  22936. }
  22937. DllExport int
  22938. UI_GetTypeStatic ()
  22939. {
  22940. return (UI::GetTypeStatic ()).Value ();
  22941. }
  22942. DllExport const char *
  22943. UI_GetTypeNameStatic ()
  22944. {
  22945. return stringdup((UI::GetTypeNameStatic ()).CString ());
  22946. }
  22947. DllExport void *
  22948. UI_UI (Urho3D::Context * context)
  22949. {
  22950. return WeakPtr<UI>(new UI(context));
  22951. }
  22952. DllExport void
  22953. UI_SetCursor (Urho3D::UI *_target, Urho3D::Cursor * cursor)
  22954. {
  22955. _target->SetCursor (cursor);
  22956. }
  22957. DllExport void
  22958. UI_SetFocusElement (Urho3D::UI *_target, Urho3D::UIElement * element, bool byKey)
  22959. {
  22960. _target->SetFocusElement (element, byKey);
  22961. }
  22962. DllExport int
  22963. UI_SetModalElement (Urho3D::UI *_target, Urho3D::UIElement * modalElement, bool enable)
  22964. {
  22965. return _target->SetModalElement (modalElement, enable);
  22966. }
  22967. DllExport void
  22968. UI_Clear (Urho3D::UI *_target)
  22969. {
  22970. _target->Clear ();
  22971. }
  22972. DllExport void
  22973. UI_Update (Urho3D::UI *_target, float timeStep)
  22974. {
  22975. _target->Update (timeStep);
  22976. }
  22977. DllExport void
  22978. UI_RenderUpdate (Urho3D::UI *_target)
  22979. {
  22980. _target->RenderUpdate ();
  22981. }
  22982. DllExport void
  22983. UI_Render (Urho3D::UI *_target, bool renderUICommand)
  22984. {
  22985. _target->Render (renderUICommand);
  22986. }
  22987. DllExport void
  22988. UI_DebugDraw (Urho3D::UI *_target, Urho3D::UIElement * element)
  22989. {
  22990. _target->DebugDraw (element);
  22991. }
  22992. DllExport Urho3D::UIElement *
  22993. UI_LoadLayout_File (Urho3D::UI *_target, File * source, Urho3D::XMLFile * styleFile)
  22994. {
  22995. auto copy = _target->LoadLayout (*source, styleFile);
  22996. auto plain = copy.Get();
  22997. copy.Detach();
  22998. delete copy;
  22999. return plain;
  23000. }
  23001. DllExport Urho3D::UIElement *
  23002. UI_LoadLayout_MemoryBuffer (Urho3D::UI *_target, MemoryBuffer * source, Urho3D::XMLFile * styleFile)
  23003. {
  23004. auto copy = _target->LoadLayout (*source, styleFile);
  23005. auto plain = copy.Get();
  23006. copy.Detach();
  23007. delete copy;
  23008. return plain;
  23009. }
  23010. DllExport Urho3D::UIElement *
  23011. UI_LoadLayout0 (Urho3D::UI *_target, Urho3D::XMLFile * file, Urho3D::XMLFile * styleFile)
  23012. {
  23013. auto copy = _target->LoadLayout (file, styleFile);
  23014. auto plain = copy.Get();
  23015. copy.Detach();
  23016. delete copy;
  23017. return plain;
  23018. }
  23019. DllExport int
  23020. UI_SaveLayout_File (Urho3D::UI *_target, File * dest, Urho3D::UIElement * element)
  23021. {
  23022. return _target->SaveLayout (*dest, element);
  23023. }
  23024. DllExport int
  23025. UI_SaveLayout_MemoryBuffer (Urho3D::UI *_target, MemoryBuffer * dest, Urho3D::UIElement * element)
  23026. {
  23027. return _target->SaveLayout (*dest, element);
  23028. }
  23029. DllExport void
  23030. UI_SetClipboardText (Urho3D::UI *_target, const char * text)
  23031. {
  23032. _target->SetClipboardText (Urho3D::String(text));
  23033. }
  23034. DllExport void
  23035. UI_SetDoubleClickInterval (Urho3D::UI *_target, float interval)
  23036. {
  23037. _target->SetDoubleClickInterval (interval);
  23038. }
  23039. DllExport void
  23040. UI_SetDragBeginInterval (Urho3D::UI *_target, float interval)
  23041. {
  23042. _target->SetDragBeginInterval (interval);
  23043. }
  23044. DllExport void
  23045. UI_SetDragBeginDistance (Urho3D::UI *_target, int pixels)
  23046. {
  23047. _target->SetDragBeginDistance (pixels);
  23048. }
  23049. DllExport void
  23050. UI_SetDefaultToolTipDelay (Urho3D::UI *_target, float delay)
  23051. {
  23052. _target->SetDefaultToolTipDelay (delay);
  23053. }
  23054. DllExport void
  23055. UI_SetMaxFontTextureSize (Urho3D::UI *_target, int size)
  23056. {
  23057. _target->SetMaxFontTextureSize (size);
  23058. }
  23059. DllExport void
  23060. UI_SetNonFocusedMouseWheel (Urho3D::UI *_target, bool nonFocusedMouseWheel)
  23061. {
  23062. _target->SetNonFocusedMouseWheel (nonFocusedMouseWheel);
  23063. }
  23064. DllExport void
  23065. UI_SetUseSystemClipboard (Urho3D::UI *_target, bool enable)
  23066. {
  23067. _target->SetUseSystemClipboard (enable);
  23068. }
  23069. DllExport void
  23070. UI_SetUseScreenKeyboard (Urho3D::UI *_target, bool enable)
  23071. {
  23072. _target->SetUseScreenKeyboard (enable);
  23073. }
  23074. DllExport void
  23075. UI_SetUseMutableGlyphs (Urho3D::UI *_target, bool enable)
  23076. {
  23077. _target->SetUseMutableGlyphs (enable);
  23078. }
  23079. DllExport void
  23080. UI_SetForceAutoHint (Urho3D::UI *_target, bool enable)
  23081. {
  23082. _target->SetForceAutoHint (enable);
  23083. }
  23084. DllExport void
  23085. UI_SetFontHintLevel (Urho3D::UI *_target, enum Urho3D::FontHintLevel level)
  23086. {
  23087. _target->SetFontHintLevel (level);
  23088. }
  23089. DllExport void
  23090. UI_SetFontSubpixelThreshold (Urho3D::UI *_target, float threshold)
  23091. {
  23092. _target->SetFontSubpixelThreshold (threshold);
  23093. }
  23094. DllExport void
  23095. UI_SetFontOversampling (Urho3D::UI *_target, int oversampling)
  23096. {
  23097. _target->SetFontOversampling (oversampling);
  23098. }
  23099. DllExport void
  23100. UI_SetScale (Urho3D::UI *_target, float scale)
  23101. {
  23102. _target->SetScale (scale);
  23103. }
  23104. DllExport void
  23105. UI_SetWidth (Urho3D::UI *_target, float width)
  23106. {
  23107. _target->SetWidth (width);
  23108. }
  23109. DllExport void
  23110. UI_SetHeight (Urho3D::UI *_target, float height)
  23111. {
  23112. _target->SetHeight (height);
  23113. }
  23114. DllExport void
  23115. UI_SetCustomSize (Urho3D::UI *_target, const class Urho3D::IntVector2 & size)
  23116. {
  23117. _target->SetCustomSize (size);
  23118. }
  23119. DllExport void
  23120. UI_SetCustomSize1 (Urho3D::UI *_target, int width, int height)
  23121. {
  23122. _target->SetCustomSize (width, height);
  23123. }
  23124. DllExport Urho3D::UIElement *
  23125. UI_GetRoot (Urho3D::UI *_target)
  23126. {
  23127. return _target->GetRoot ();
  23128. }
  23129. DllExport Urho3D::UIElement *
  23130. UI_GetRootModalElement (Urho3D::UI *_target)
  23131. {
  23132. return _target->GetRootModalElement ();
  23133. }
  23134. DllExport Urho3D::Cursor *
  23135. UI_GetCursor (Urho3D::UI *_target)
  23136. {
  23137. return _target->GetCursor ();
  23138. }
  23139. DllExport Interop::IntVector2
  23140. UI_GetCursorPosition (Urho3D::UI *_target)
  23141. {
  23142. return *((Interop::IntVector2 *) &(_target->GetCursorPosition ()));
  23143. }
  23144. DllExport Urho3D::UIElement *
  23145. UI_GetElementAt (Urho3D::UI *_target, const class Urho3D::IntVector2 & position, bool enabledOnly)
  23146. {
  23147. return _target->GetElementAt (position, enabledOnly);
  23148. }
  23149. DllExport Urho3D::UIElement *
  23150. UI_GetElementAt2 (Urho3D::UI *_target, int x, int y, bool enabledOnly)
  23151. {
  23152. return _target->GetElementAt (x, y, enabledOnly);
  23153. }
  23154. DllExport Urho3D::UIElement *
  23155. UI_GetElementAt3 (Urho3D::UI *_target, Urho3D::UIElement * root, const class Urho3D::IntVector2 & position, bool enabledOnly)
  23156. {
  23157. return _target->GetElementAt (root, position, enabledOnly);
  23158. }
  23159. DllExport Urho3D::UIElement *
  23160. UI_GetFocusElement (Urho3D::UI *_target)
  23161. {
  23162. return _target->GetFocusElement ();
  23163. }
  23164. DllExport Urho3D::UIElement *
  23165. UI_GetFrontElement (Urho3D::UI *_target)
  23166. {
  23167. return _target->GetFrontElement ();
  23168. }
  23169. DllExport unsigned int
  23170. UI_GetNumDragElements (Urho3D::UI *_target)
  23171. {
  23172. return _target->GetNumDragElements ();
  23173. }
  23174. DllExport Urho3D::UIElement *
  23175. UI_GetDragElement (Urho3D::UI *_target, unsigned int index)
  23176. {
  23177. return _target->GetDragElement (index);
  23178. }
  23179. DllExport const char *
  23180. UI_GetClipboardText (Urho3D::UI *_target)
  23181. {
  23182. return stringdup((_target->GetClipboardText ()).CString ());
  23183. }
  23184. DllExport float
  23185. UI_GetDoubleClickInterval (Urho3D::UI *_target)
  23186. {
  23187. return _target->GetDoubleClickInterval ();
  23188. }
  23189. DllExport float
  23190. UI_GetDragBeginInterval (Urho3D::UI *_target)
  23191. {
  23192. return _target->GetDragBeginInterval ();
  23193. }
  23194. DllExport int
  23195. UI_GetDragBeginDistance (Urho3D::UI *_target)
  23196. {
  23197. return _target->GetDragBeginDistance ();
  23198. }
  23199. DllExport float
  23200. UI_GetDefaultToolTipDelay (Urho3D::UI *_target)
  23201. {
  23202. return _target->GetDefaultToolTipDelay ();
  23203. }
  23204. DllExport int
  23205. UI_GetMaxFontTextureSize (Urho3D::UI *_target)
  23206. {
  23207. return _target->GetMaxFontTextureSize ();
  23208. }
  23209. DllExport int
  23210. UI_IsNonFocusedMouseWheel (Urho3D::UI *_target)
  23211. {
  23212. return _target->IsNonFocusedMouseWheel ();
  23213. }
  23214. DllExport int
  23215. UI_GetUseSystemClipboard (Urho3D::UI *_target)
  23216. {
  23217. return _target->GetUseSystemClipboard ();
  23218. }
  23219. DllExport int
  23220. UI_GetUseScreenKeyboard (Urho3D::UI *_target)
  23221. {
  23222. return _target->GetUseScreenKeyboard ();
  23223. }
  23224. DllExport int
  23225. UI_GetUseMutableGlyphs (Urho3D::UI *_target)
  23226. {
  23227. return _target->GetUseMutableGlyphs ();
  23228. }
  23229. DllExport int
  23230. UI_GetForceAutoHint (Urho3D::UI *_target)
  23231. {
  23232. return _target->GetForceAutoHint ();
  23233. }
  23234. DllExport enum Urho3D::FontHintLevel
  23235. UI_GetFontHintLevel (Urho3D::UI *_target)
  23236. {
  23237. return _target->GetFontHintLevel ();
  23238. }
  23239. DllExport float
  23240. UI_GetFontSubpixelThreshold (Urho3D::UI *_target)
  23241. {
  23242. return _target->GetFontSubpixelThreshold ();
  23243. }
  23244. DllExport int
  23245. UI_GetFontOversampling (Urho3D::UI *_target)
  23246. {
  23247. return _target->GetFontOversampling ();
  23248. }
  23249. DllExport int
  23250. UI_HasModalElement (Urho3D::UI *_target)
  23251. {
  23252. return _target->HasModalElement ();
  23253. }
  23254. DllExport int
  23255. UI_IsDragging (Urho3D::UI *_target)
  23256. {
  23257. return _target->IsDragging ();
  23258. }
  23259. DllExport float
  23260. UI_GetScale (Urho3D::UI *_target)
  23261. {
  23262. return _target->GetScale ();
  23263. }
  23264. DllExport Interop::IntVector2
  23265. UI_GetCustomSize (Urho3D::UI *_target)
  23266. {
  23267. return *((Interop::IntVector2 *) &(_target->GetCustomSize ()));
  23268. }
  23269. DllExport void
  23270. UI_SetRenderToTexture (Urho3D::UI *_target, Urho3D::UIComponent * component, bool enable)
  23271. {
  23272. _target->SetRenderToTexture (component, enable);
  23273. }
  23274. DllExport int
  23275. Window_GetType (Urho3D::Window *_target)
  23276. {
  23277. return (_target->GetType ()).Value ();
  23278. }
  23279. DllExport const char *
  23280. Window_GetTypeName (Urho3D::Window *_target)
  23281. {
  23282. return stringdup((_target->GetTypeName ()).CString ());
  23283. }
  23284. DllExport int
  23285. Window_GetTypeStatic ()
  23286. {
  23287. return (Window::GetTypeStatic ()).Value ();
  23288. }
  23289. DllExport const char *
  23290. Window_GetTypeNameStatic ()
  23291. {
  23292. return stringdup((Window::GetTypeNameStatic ()).CString ());
  23293. }
  23294. DllExport void *
  23295. Window_Window (Urho3D::Context * context)
  23296. {
  23297. return WeakPtr<Window>(new Window(context));
  23298. }
  23299. DllExport void
  23300. Window_RegisterObject (Urho3D::Context * context)
  23301. {
  23302. Window::RegisterObject (context);
  23303. }
  23304. DllExport void
  23305. Window_OnHover (Urho3D::Window *_target, const class Urho3D::IntVector2 & position, const class Urho3D::IntVector2 & screenPosition, int buttons, int qualifiers, Urho3D::Cursor * cursor)
  23306. {
  23307. _target->OnHover (position, screenPosition, buttons, qualifiers, cursor);
  23308. }
  23309. DllExport void
  23310. Window_SetMovable (Urho3D::Window *_target, bool enable)
  23311. {
  23312. _target->SetMovable (enable);
  23313. }
  23314. DllExport void
  23315. Window_SetResizable (Urho3D::Window *_target, bool enable)
  23316. {
  23317. _target->SetResizable (enable);
  23318. }
  23319. DllExport void
  23320. Window_SetFixedWidthResizing (Urho3D::Window *_target, bool enable)
  23321. {
  23322. _target->SetFixedWidthResizing (enable);
  23323. }
  23324. DllExport void
  23325. Window_SetFixedHeightResizing (Urho3D::Window *_target, bool enable)
  23326. {
  23327. _target->SetFixedHeightResizing (enable);
  23328. }
  23329. DllExport void
  23330. Window_SetResizeBorder (Urho3D::Window *_target, const class Urho3D::IntRect & rect)
  23331. {
  23332. _target->SetResizeBorder (rect);
  23333. }
  23334. DllExport void
  23335. Window_SetModal (Urho3D::Window *_target, bool modal)
  23336. {
  23337. _target->SetModal (modal);
  23338. }
  23339. DllExport void
  23340. Window_SetModalShadeColor (Urho3D::Window *_target, const class Urho3D::Color & color)
  23341. {
  23342. _target->SetModalShadeColor (color);
  23343. }
  23344. DllExport void
  23345. Window_SetModalFrameColor (Urho3D::Window *_target, const class Urho3D::Color & color)
  23346. {
  23347. _target->SetModalFrameColor (color);
  23348. }
  23349. DllExport void
  23350. Window_SetModalFrameSize (Urho3D::Window *_target, const class Urho3D::IntVector2 & size)
  23351. {
  23352. _target->SetModalFrameSize (size);
  23353. }
  23354. DllExport void
  23355. Window_SetModalAutoDismiss (Urho3D::Window *_target, bool enable)
  23356. {
  23357. _target->SetModalAutoDismiss (enable);
  23358. }
  23359. DllExport int
  23360. Window_IsMovable (Urho3D::Window *_target)
  23361. {
  23362. return _target->IsMovable ();
  23363. }
  23364. DllExport int
  23365. Window_IsResizable (Urho3D::Window *_target)
  23366. {
  23367. return _target->IsResizable ();
  23368. }
  23369. DllExport int
  23370. Window_GetFixedWidthResizing (Urho3D::Window *_target)
  23371. {
  23372. return _target->GetFixedWidthResizing ();
  23373. }
  23374. DllExport int
  23375. Window_GetFixedHeightResizing (Urho3D::Window *_target)
  23376. {
  23377. return _target->GetFixedHeightResizing ();
  23378. }
  23379. DllExport Interop::IntRect
  23380. Window_GetResizeBorder (Urho3D::Window *_target)
  23381. {
  23382. return *((Interop::IntRect *) &(_target->GetResizeBorder ()));
  23383. }
  23384. DllExport int
  23385. Window_IsModal (Urho3D::Window *_target)
  23386. {
  23387. return _target->IsModal ();
  23388. }
  23389. DllExport Interop::Color
  23390. Window_GetModalShadeColor (Urho3D::Window *_target)
  23391. {
  23392. return *((Interop::Color *) &(_target->GetModalShadeColor ()));
  23393. }
  23394. DllExport Interop::Color
  23395. Window_GetModalFrameColor (Urho3D::Window *_target)
  23396. {
  23397. return *((Interop::Color *) &(_target->GetModalFrameColor ()));
  23398. }
  23399. DllExport Interop::IntVector2
  23400. Window_GetModalFrameSize (Urho3D::Window *_target)
  23401. {
  23402. return *((Interop::IntVector2 *) &(_target->GetModalFrameSize ()));
  23403. }
  23404. DllExport int
  23405. Window_GetModalAutoDismiss (Urho3D::Window *_target)
  23406. {
  23407. return _target->GetModalAutoDismiss ();
  23408. }
  23409. DllExport int
  23410. View3D_GetType (Urho3D::View3D *_target)
  23411. {
  23412. return (_target->GetType ()).Value ();
  23413. }
  23414. DllExport const char *
  23415. View3D_GetTypeName (Urho3D::View3D *_target)
  23416. {
  23417. return stringdup((_target->GetTypeName ()).CString ());
  23418. }
  23419. DllExport int
  23420. View3D_GetTypeStatic ()
  23421. {
  23422. return (View3D::GetTypeStatic ()).Value ();
  23423. }
  23424. DllExport const char *
  23425. View3D_GetTypeNameStatic ()
  23426. {
  23427. return stringdup((View3D::GetTypeNameStatic ()).CString ());
  23428. }
  23429. DllExport void *
  23430. View3D_View3D (Urho3D::Context * context)
  23431. {
  23432. return WeakPtr<View3D>(new View3D(context));
  23433. }
  23434. DllExport void
  23435. View3D_RegisterObject (Urho3D::Context * context)
  23436. {
  23437. View3D::RegisterObject (context);
  23438. }
  23439. DllExport void
  23440. View3D_OnResize (Urho3D::View3D *_target, const class Urho3D::IntVector2 & newSize, const class Urho3D::IntVector2 & delta)
  23441. {
  23442. _target->OnResize (newSize, delta);
  23443. }
  23444. DllExport void
  23445. View3D_SetView (Urho3D::View3D *_target, Urho3D::Scene * scene, Urho3D::Camera * camera, bool ownScene)
  23446. {
  23447. _target->SetView (scene, camera, ownScene);
  23448. }
  23449. DllExport void
  23450. View3D_SetFormat (Urho3D::View3D *_target, unsigned int format)
  23451. {
  23452. _target->SetFormat (format);
  23453. }
  23454. DllExport void
  23455. View3D_SetAutoUpdate (Urho3D::View3D *_target, bool enable)
  23456. {
  23457. _target->SetAutoUpdate (enable);
  23458. }
  23459. DllExport void
  23460. View3D_QueueUpdate (Urho3D::View3D *_target)
  23461. {
  23462. _target->QueueUpdate ();
  23463. }
  23464. DllExport unsigned int
  23465. View3D_GetFormat (Urho3D::View3D *_target)
  23466. {
  23467. return _target->GetFormat ();
  23468. }
  23469. DllExport int
  23470. View3D_GetAutoUpdate (Urho3D::View3D *_target)
  23471. {
  23472. return _target->GetAutoUpdate ();
  23473. }
  23474. DllExport Urho3D::Scene *
  23475. View3D_GetScene (Urho3D::View3D *_target)
  23476. {
  23477. return _target->GetScene ();
  23478. }
  23479. DllExport Urho3D::Node *
  23480. View3D_GetCameraNode (Urho3D::View3D *_target)
  23481. {
  23482. return _target->GetCameraNode ();
  23483. }
  23484. DllExport Urho3D::Texture2D *
  23485. View3D_GetRenderTexture (Urho3D::View3D *_target)
  23486. {
  23487. return _target->GetRenderTexture ();
  23488. }
  23489. DllExport Urho3D::Texture2D *
  23490. View3D_GetDepthTexture (Urho3D::View3D *_target)
  23491. {
  23492. return _target->GetDepthTexture ();
  23493. }
  23494. DllExport Urho3D::Viewport *
  23495. View3D_GetViewport (Urho3D::View3D *_target)
  23496. {
  23497. return _target->GetViewport ();
  23498. }
  23499. DllExport int
  23500. Drawable2D_GetType (Urho3D::Drawable2D *_target)
  23501. {
  23502. return (_target->GetType ()).Value ();
  23503. }
  23504. DllExport const char *
  23505. Drawable2D_GetTypeName (Urho3D::Drawable2D *_target)
  23506. {
  23507. return stringdup((_target->GetTypeName ()).CString ());
  23508. }
  23509. DllExport int
  23510. Drawable2D_GetTypeStatic ()
  23511. {
  23512. return (Drawable2D::GetTypeStatic ()).Value ();
  23513. }
  23514. DllExport const char *
  23515. Drawable2D_GetTypeNameStatic ()
  23516. {
  23517. return stringdup((Drawable2D::GetTypeNameStatic ()).CString ());
  23518. }
  23519. DllExport void
  23520. Drawable2D_RegisterObject (Urho3D::Context * context)
  23521. {
  23522. Drawable2D::RegisterObject (context);
  23523. }
  23524. DllExport void
  23525. Drawable2D_OnSetEnabled (Urho3D::Drawable2D *_target)
  23526. {
  23527. _target->OnSetEnabled ();
  23528. }
  23529. DllExport void
  23530. Drawable2D_SetLayer (Urho3D::Drawable2D *_target, int layer)
  23531. {
  23532. _target->SetLayer (layer);
  23533. }
  23534. DllExport void
  23535. Drawable2D_SetOrderInLayer (Urho3D::Drawable2D *_target, int orderInLayer)
  23536. {
  23537. _target->SetOrderInLayer (orderInLayer);
  23538. }
  23539. DllExport int
  23540. Drawable2D_GetLayer (Urho3D::Drawable2D *_target)
  23541. {
  23542. return _target->GetLayer ();
  23543. }
  23544. DllExport int
  23545. Drawable2D_GetOrderInLayer (Urho3D::Drawable2D *_target)
  23546. {
  23547. return _target->GetOrderInLayer ();
  23548. }
  23549. DllExport int
  23550. StaticSprite2D_GetType (Urho3D::StaticSprite2D *_target)
  23551. {
  23552. return (_target->GetType ()).Value ();
  23553. }
  23554. DllExport const char *
  23555. StaticSprite2D_GetTypeName (Urho3D::StaticSprite2D *_target)
  23556. {
  23557. return stringdup((_target->GetTypeName ()).CString ());
  23558. }
  23559. DllExport int
  23560. StaticSprite2D_GetTypeStatic ()
  23561. {
  23562. return (StaticSprite2D::GetTypeStatic ()).Value ();
  23563. }
  23564. DllExport const char *
  23565. StaticSprite2D_GetTypeNameStatic ()
  23566. {
  23567. return stringdup((StaticSprite2D::GetTypeNameStatic ()).CString ());
  23568. }
  23569. DllExport void *
  23570. StaticSprite2D_StaticSprite2D (Urho3D::Context * context)
  23571. {
  23572. return WeakPtr<StaticSprite2D>(new StaticSprite2D(context));
  23573. }
  23574. DllExport void
  23575. StaticSprite2D_RegisterObject (Urho3D::Context * context)
  23576. {
  23577. StaticSprite2D::RegisterObject (context);
  23578. }
  23579. DllExport void
  23580. StaticSprite2D_SetSprite (Urho3D::StaticSprite2D *_target, Urho3D::Sprite2D * sprite)
  23581. {
  23582. _target->SetSprite (sprite);
  23583. }
  23584. DllExport void
  23585. StaticSprite2D_SetBlendMode (Urho3D::StaticSprite2D *_target, enum Urho3D::BlendMode blendMode)
  23586. {
  23587. _target->SetBlendMode (blendMode);
  23588. }
  23589. DllExport void
  23590. StaticSprite2D_SetFlip (Urho3D::StaticSprite2D *_target, bool flipX, bool flipY)
  23591. {
  23592. _target->SetFlip (flipX, flipY);
  23593. }
  23594. DllExport void
  23595. StaticSprite2D_SetFlipX (Urho3D::StaticSprite2D *_target, bool flipX)
  23596. {
  23597. _target->SetFlipX (flipX);
  23598. }
  23599. DllExport void
  23600. StaticSprite2D_SetFlipY (Urho3D::StaticSprite2D *_target, bool flipY)
  23601. {
  23602. _target->SetFlipY (flipY);
  23603. }
  23604. DllExport void
  23605. StaticSprite2D_SetColor (Urho3D::StaticSprite2D *_target, const class Urho3D::Color & color)
  23606. {
  23607. _target->SetColor (color);
  23608. }
  23609. DllExport void
  23610. StaticSprite2D_SetAlpha (Urho3D::StaticSprite2D *_target, float alpha)
  23611. {
  23612. _target->SetAlpha (alpha);
  23613. }
  23614. DllExport void
  23615. StaticSprite2D_SetUseHotSpot (Urho3D::StaticSprite2D *_target, bool useHotSpot)
  23616. {
  23617. _target->SetUseHotSpot (useHotSpot);
  23618. }
  23619. DllExport void
  23620. StaticSprite2D_SetUseDrawRect (Urho3D::StaticSprite2D *_target, bool useDrawRect)
  23621. {
  23622. _target->SetUseDrawRect (useDrawRect);
  23623. }
  23624. DllExport void
  23625. StaticSprite2D_SetUseTextureRect (Urho3D::StaticSprite2D *_target, bool useTextureRect)
  23626. {
  23627. _target->SetUseTextureRect (useTextureRect);
  23628. }
  23629. DllExport void
  23630. StaticSprite2D_SetHotSpot (Urho3D::StaticSprite2D *_target, const class Urho3D::Vector2 & hotspot)
  23631. {
  23632. _target->SetHotSpot (hotspot);
  23633. }
  23634. DllExport void
  23635. StaticSprite2D_SetCustomMaterial (Urho3D::StaticSprite2D *_target, Urho3D::Material * customMaterial)
  23636. {
  23637. _target->SetCustomMaterial (customMaterial);
  23638. }
  23639. DllExport Urho3D::Sprite2D *
  23640. StaticSprite2D_GetSprite (Urho3D::StaticSprite2D *_target)
  23641. {
  23642. return _target->GetSprite ();
  23643. }
  23644. DllExport enum Urho3D::BlendMode
  23645. StaticSprite2D_GetBlendMode (Urho3D::StaticSprite2D *_target)
  23646. {
  23647. return _target->GetBlendMode ();
  23648. }
  23649. DllExport int
  23650. StaticSprite2D_GetFlipX (Urho3D::StaticSprite2D *_target)
  23651. {
  23652. return _target->GetFlipX ();
  23653. }
  23654. DllExport int
  23655. StaticSprite2D_GetFlipY (Urho3D::StaticSprite2D *_target)
  23656. {
  23657. return _target->GetFlipY ();
  23658. }
  23659. DllExport Interop::Color
  23660. StaticSprite2D_GetColor (Urho3D::StaticSprite2D *_target)
  23661. {
  23662. return *((Interop::Color *) &(_target->GetColor ()));
  23663. }
  23664. DllExport float
  23665. StaticSprite2D_GetAlpha (Urho3D::StaticSprite2D *_target)
  23666. {
  23667. return _target->GetAlpha ();
  23668. }
  23669. DllExport int
  23670. StaticSprite2D_GetUseHotSpot (Urho3D::StaticSprite2D *_target)
  23671. {
  23672. return _target->GetUseHotSpot ();
  23673. }
  23674. DllExport int
  23675. StaticSprite2D_GetUseDrawRect (Urho3D::StaticSprite2D *_target)
  23676. {
  23677. return _target->GetUseDrawRect ();
  23678. }
  23679. DllExport int
  23680. StaticSprite2D_GetUseTextureRect (Urho3D::StaticSprite2D *_target)
  23681. {
  23682. return _target->GetUseTextureRect ();
  23683. }
  23684. DllExport Interop::Vector2
  23685. StaticSprite2D_GetHotSpot (Urho3D::StaticSprite2D *_target)
  23686. {
  23687. return *((Interop::Vector2 *) &(_target->GetHotSpot ()));
  23688. }
  23689. DllExport Urho3D::Material *
  23690. StaticSprite2D_GetCustomMaterial (Urho3D::StaticSprite2D *_target)
  23691. {
  23692. return _target->GetCustomMaterial ();
  23693. }
  23694. DllExport Urho3D::ResourceRef
  23695. StaticSprite2D_GetSpriteAttr (Urho3D::StaticSprite2D *_target)
  23696. {
  23697. return _target->GetSpriteAttr ();
  23698. }
  23699. DllExport Urho3D::ResourceRef
  23700. StaticSprite2D_GetCustomMaterialAttr (Urho3D::StaticSprite2D *_target)
  23701. {
  23702. return _target->GetCustomMaterialAttr ();
  23703. }
  23704. DllExport int
  23705. AnimatedSprite2D_GetType (Urho3D::AnimatedSprite2D *_target)
  23706. {
  23707. return (_target->GetType ()).Value ();
  23708. }
  23709. DllExport const char *
  23710. AnimatedSprite2D_GetTypeName (Urho3D::AnimatedSprite2D *_target)
  23711. {
  23712. return stringdup((_target->GetTypeName ()).CString ());
  23713. }
  23714. DllExport int
  23715. AnimatedSprite2D_GetTypeStatic ()
  23716. {
  23717. return (AnimatedSprite2D::GetTypeStatic ()).Value ();
  23718. }
  23719. DllExport const char *
  23720. AnimatedSprite2D_GetTypeNameStatic ()
  23721. {
  23722. return stringdup((AnimatedSprite2D::GetTypeNameStatic ()).CString ());
  23723. }
  23724. DllExport void *
  23725. AnimatedSprite2D_AnimatedSprite2D (Urho3D::Context * context)
  23726. {
  23727. return WeakPtr<AnimatedSprite2D>(new AnimatedSprite2D(context));
  23728. }
  23729. DllExport void
  23730. AnimatedSprite2D_RegisterObject (Urho3D::Context * context)
  23731. {
  23732. AnimatedSprite2D::RegisterObject (context);
  23733. }
  23734. DllExport void
  23735. AnimatedSprite2D_OnSetEnabled (Urho3D::AnimatedSprite2D *_target)
  23736. {
  23737. _target->OnSetEnabled ();
  23738. }
  23739. DllExport void
  23740. AnimatedSprite2D_SetAnimationSet (Urho3D::AnimatedSprite2D *_target, Urho3D::AnimationSet2D * animationSet)
  23741. {
  23742. _target->SetAnimationSet (animationSet);
  23743. }
  23744. DllExport void
  23745. AnimatedSprite2D_SetEntity (Urho3D::AnimatedSprite2D *_target, const char * name)
  23746. {
  23747. _target->SetEntity (Urho3D::String(name));
  23748. }
  23749. DllExport void
  23750. AnimatedSprite2D_SetAnimation (Urho3D::AnimatedSprite2D *_target, const char * name, enum LoopMode2D loopMode)
  23751. {
  23752. _target->SetAnimation (Urho3D::String(name), loopMode);
  23753. }
  23754. DllExport void
  23755. AnimatedSprite2D_SetLoopMode (Urho3D::AnimatedSprite2D *_target, enum LoopMode2D loopMode)
  23756. {
  23757. _target->SetLoopMode (loopMode);
  23758. }
  23759. DllExport void
  23760. AnimatedSprite2D_SetSpeed (Urho3D::AnimatedSprite2D *_target, float speed)
  23761. {
  23762. _target->SetSpeed (speed);
  23763. }
  23764. DllExport Urho3D::AnimationSet2D *
  23765. AnimatedSprite2D_GetAnimationSet (Urho3D::AnimatedSprite2D *_target)
  23766. {
  23767. return _target->GetAnimationSet ();
  23768. }
  23769. DllExport const char *
  23770. AnimatedSprite2D_GetEntity (Urho3D::AnimatedSprite2D *_target)
  23771. {
  23772. return stringdup((_target->GetEntity ()).CString ());
  23773. }
  23774. DllExport const char *
  23775. AnimatedSprite2D_GetAnimation (Urho3D::AnimatedSprite2D *_target)
  23776. {
  23777. return stringdup((_target->GetAnimation ()).CString ());
  23778. }
  23779. DllExport enum LoopMode2D
  23780. AnimatedSprite2D_GetLoopMode (Urho3D::AnimatedSprite2D *_target)
  23781. {
  23782. return _target->GetLoopMode ();
  23783. }
  23784. DllExport float
  23785. AnimatedSprite2D_GetSpeed (Urho3D::AnimatedSprite2D *_target)
  23786. {
  23787. return _target->GetSpeed ();
  23788. }
  23789. DllExport Urho3D::ResourceRef
  23790. AnimatedSprite2D_GetAnimationSetAttr (Urho3D::AnimatedSprite2D *_target)
  23791. {
  23792. return _target->GetAnimationSetAttr ();
  23793. }
  23794. DllExport void
  23795. AnimatedSprite2D_SetAnimationAttr (Urho3D::AnimatedSprite2D *_target, const char * name)
  23796. {
  23797. _target->SetAnimationAttr (Urho3D::String(name));
  23798. }
  23799. DllExport int
  23800. AnimationSet2D_GetType (Urho3D::AnimationSet2D *_target)
  23801. {
  23802. return (_target->GetType ()).Value ();
  23803. }
  23804. DllExport const char *
  23805. AnimationSet2D_GetTypeName (Urho3D::AnimationSet2D *_target)
  23806. {
  23807. return stringdup((_target->GetTypeName ()).CString ());
  23808. }
  23809. DllExport int
  23810. AnimationSet2D_GetTypeStatic ()
  23811. {
  23812. return (AnimationSet2D::GetTypeStatic ()).Value ();
  23813. }
  23814. DllExport const char *
  23815. AnimationSet2D_GetTypeNameStatic ()
  23816. {
  23817. return stringdup((AnimationSet2D::GetTypeNameStatic ()).CString ());
  23818. }
  23819. DllExport void *
  23820. AnimationSet2D_AnimationSet2D (Urho3D::Context * context)
  23821. {
  23822. return WeakPtr<AnimationSet2D>(new AnimationSet2D(context));
  23823. }
  23824. DllExport void
  23825. AnimationSet2D_RegisterObject (Urho3D::Context * context)
  23826. {
  23827. AnimationSet2D::RegisterObject (context);
  23828. }
  23829. DllExport int
  23830. AnimationSet2D_BeginLoad_File (Urho3D::AnimationSet2D *_target, File * source)
  23831. {
  23832. return _target->BeginLoad (*source);
  23833. }
  23834. DllExport int
  23835. AnimationSet2D_BeginLoad_MemoryBuffer (Urho3D::AnimationSet2D *_target, MemoryBuffer * source)
  23836. {
  23837. return _target->BeginLoad (*source);
  23838. }
  23839. DllExport int
  23840. AnimationSet2D_EndLoad (Urho3D::AnimationSet2D *_target)
  23841. {
  23842. return _target->EndLoad ();
  23843. }
  23844. DllExport unsigned int
  23845. AnimationSet2D_GetNumAnimations (Urho3D::AnimationSet2D *_target)
  23846. {
  23847. return _target->GetNumAnimations ();
  23848. }
  23849. DllExport const char *
  23850. AnimationSet2D_GetAnimation (Urho3D::AnimationSet2D *_target, unsigned int index)
  23851. {
  23852. return stringdup((_target->GetAnimation (index)).CString ());
  23853. }
  23854. DllExport int
  23855. AnimationSet2D_HasAnimation (Urho3D::AnimationSet2D *_target, const char * animation)
  23856. {
  23857. return _target->HasAnimation (Urho3D::String(animation));
  23858. }
  23859. DllExport Urho3D::Sprite2D *
  23860. AnimationSet2D_GetSprite (Urho3D::AnimationSet2D *_target)
  23861. {
  23862. return _target->GetSprite ();
  23863. }
  23864. DllExport Urho3D::Sprite2D *
  23865. AnimationSet2D_GetSpriterFileSprite (Urho3D::AnimationSet2D *_target, int folderId, int fileId)
  23866. {
  23867. return _target->GetSpriterFileSprite (folderId, fileId);
  23868. }
  23869. DllExport int
  23870. CollisionShape2D_GetType (Urho3D::CollisionShape2D *_target)
  23871. {
  23872. return (_target->GetType ()).Value ();
  23873. }
  23874. DllExport const char *
  23875. CollisionShape2D_GetTypeName (Urho3D::CollisionShape2D *_target)
  23876. {
  23877. return stringdup((_target->GetTypeName ()).CString ());
  23878. }
  23879. DllExport int
  23880. CollisionShape2D_GetTypeStatic ()
  23881. {
  23882. return (CollisionShape2D::GetTypeStatic ()).Value ();
  23883. }
  23884. DllExport const char *
  23885. CollisionShape2D_GetTypeNameStatic ()
  23886. {
  23887. return stringdup((CollisionShape2D::GetTypeNameStatic ()).CString ());
  23888. }
  23889. DllExport void
  23890. CollisionShape2D_RegisterObject (Urho3D::Context * context)
  23891. {
  23892. CollisionShape2D::RegisterObject (context);
  23893. }
  23894. DllExport void
  23895. CollisionShape2D_OnSetEnabled (Urho3D::CollisionShape2D *_target)
  23896. {
  23897. _target->OnSetEnabled ();
  23898. }
  23899. DllExport void
  23900. CollisionShape2D_SetTrigger (Urho3D::CollisionShape2D *_target, bool trigger)
  23901. {
  23902. _target->SetTrigger (trigger);
  23903. }
  23904. DllExport void
  23905. CollisionShape2D_SetCategoryBits (Urho3D::CollisionShape2D *_target, int categoryBits)
  23906. {
  23907. _target->SetCategoryBits (categoryBits);
  23908. }
  23909. DllExport void
  23910. CollisionShape2D_SetMaskBits (Urho3D::CollisionShape2D *_target, int maskBits)
  23911. {
  23912. _target->SetMaskBits (maskBits);
  23913. }
  23914. DllExport void
  23915. CollisionShape2D_SetGroupIndex (Urho3D::CollisionShape2D *_target, int groupIndex)
  23916. {
  23917. _target->SetGroupIndex (groupIndex);
  23918. }
  23919. DllExport void
  23920. CollisionShape2D_SetDensity (Urho3D::CollisionShape2D *_target, float density)
  23921. {
  23922. _target->SetDensity (density);
  23923. }
  23924. DllExport void
  23925. CollisionShape2D_SetFriction (Urho3D::CollisionShape2D *_target, float friction)
  23926. {
  23927. _target->SetFriction (friction);
  23928. }
  23929. DllExport void
  23930. CollisionShape2D_SetRestitution (Urho3D::CollisionShape2D *_target, float restitution)
  23931. {
  23932. _target->SetRestitution (restitution);
  23933. }
  23934. DllExport void
  23935. CollisionShape2D_CreateFixture (Urho3D::CollisionShape2D *_target)
  23936. {
  23937. _target->CreateFixture ();
  23938. }
  23939. DllExport void
  23940. CollisionShape2D_ReleaseFixture (Urho3D::CollisionShape2D *_target)
  23941. {
  23942. _target->ReleaseFixture ();
  23943. }
  23944. DllExport int
  23945. CollisionShape2D_IsTrigger (Urho3D::CollisionShape2D *_target)
  23946. {
  23947. return _target->IsTrigger ();
  23948. }
  23949. DllExport int
  23950. CollisionShape2D_GetCategoryBits (Urho3D::CollisionShape2D *_target)
  23951. {
  23952. return _target->GetCategoryBits ();
  23953. }
  23954. DllExport int
  23955. CollisionShape2D_GetMaskBits (Urho3D::CollisionShape2D *_target)
  23956. {
  23957. return _target->GetMaskBits ();
  23958. }
  23959. DllExport int
  23960. CollisionShape2D_GetGroupIndex (Urho3D::CollisionShape2D *_target)
  23961. {
  23962. return _target->GetGroupIndex ();
  23963. }
  23964. DllExport float
  23965. CollisionShape2D_GetDensity (Urho3D::CollisionShape2D *_target)
  23966. {
  23967. return _target->GetDensity ();
  23968. }
  23969. DllExport float
  23970. CollisionShape2D_GetFriction (Urho3D::CollisionShape2D *_target)
  23971. {
  23972. return _target->GetFriction ();
  23973. }
  23974. DllExport float
  23975. CollisionShape2D_GetRestitution (Urho3D::CollisionShape2D *_target)
  23976. {
  23977. return _target->GetRestitution ();
  23978. }
  23979. DllExport float
  23980. CollisionShape2D_GetMass (Urho3D::CollisionShape2D *_target)
  23981. {
  23982. return _target->GetMass ();
  23983. }
  23984. DllExport float
  23985. CollisionShape2D_GetInertia (Urho3D::CollisionShape2D *_target)
  23986. {
  23987. return _target->GetInertia ();
  23988. }
  23989. DllExport Interop::Vector2
  23990. CollisionShape2D_GetMassCenter (Urho3D::CollisionShape2D *_target)
  23991. {
  23992. return *((Interop::Vector2 *) &(_target->GetMassCenter ()));
  23993. }
  23994. DllExport int
  23995. CollisionBox2D_GetType (Urho3D::CollisionBox2D *_target)
  23996. {
  23997. return (_target->GetType ()).Value ();
  23998. }
  23999. DllExport const char *
  24000. CollisionBox2D_GetTypeName (Urho3D::CollisionBox2D *_target)
  24001. {
  24002. return stringdup((_target->GetTypeName ()).CString ());
  24003. }
  24004. DllExport int
  24005. CollisionBox2D_GetTypeStatic ()
  24006. {
  24007. return (CollisionBox2D::GetTypeStatic ()).Value ();
  24008. }
  24009. DllExport const char *
  24010. CollisionBox2D_GetTypeNameStatic ()
  24011. {
  24012. return stringdup((CollisionBox2D::GetTypeNameStatic ()).CString ());
  24013. }
  24014. DllExport void *
  24015. CollisionBox2D_CollisionBox2D (Urho3D::Context * context)
  24016. {
  24017. return WeakPtr<CollisionBox2D>(new CollisionBox2D(context));
  24018. }
  24019. DllExport void
  24020. CollisionBox2D_RegisterObject (Urho3D::Context * context)
  24021. {
  24022. CollisionBox2D::RegisterObject (context);
  24023. }
  24024. DllExport void
  24025. CollisionBox2D_SetSize (Urho3D::CollisionBox2D *_target, const class Urho3D::Vector2 & size)
  24026. {
  24027. _target->SetSize (size);
  24028. }
  24029. DllExport void
  24030. CollisionBox2D_SetSize0 (Urho3D::CollisionBox2D *_target, float width, float height)
  24031. {
  24032. _target->SetSize (width, height);
  24033. }
  24034. DllExport void
  24035. CollisionBox2D_SetCenter (Urho3D::CollisionBox2D *_target, const class Urho3D::Vector2 & center)
  24036. {
  24037. _target->SetCenter (center);
  24038. }
  24039. DllExport void
  24040. CollisionBox2D_SetCenter1 (Urho3D::CollisionBox2D *_target, float x, float y)
  24041. {
  24042. _target->SetCenter (x, y);
  24043. }
  24044. DllExport void
  24045. CollisionBox2D_SetAngle (Urho3D::CollisionBox2D *_target, float angle)
  24046. {
  24047. _target->SetAngle (angle);
  24048. }
  24049. DllExport Interop::Vector2
  24050. CollisionBox2D_GetSize (Urho3D::CollisionBox2D *_target)
  24051. {
  24052. return *((Interop::Vector2 *) &(_target->GetSize ()));
  24053. }
  24054. DllExport Interop::Vector2
  24055. CollisionBox2D_GetCenter (Urho3D::CollisionBox2D *_target)
  24056. {
  24057. return *((Interop::Vector2 *) &(_target->GetCenter ()));
  24058. }
  24059. DllExport float
  24060. CollisionBox2D_GetAngle (Urho3D::CollisionBox2D *_target)
  24061. {
  24062. return _target->GetAngle ();
  24063. }
  24064. DllExport int
  24065. CollisionChain2D_GetType (Urho3D::CollisionChain2D *_target)
  24066. {
  24067. return (_target->GetType ()).Value ();
  24068. }
  24069. DllExport const char *
  24070. CollisionChain2D_GetTypeName (Urho3D::CollisionChain2D *_target)
  24071. {
  24072. return stringdup((_target->GetTypeName ()).CString ());
  24073. }
  24074. DllExport int
  24075. CollisionChain2D_GetTypeStatic ()
  24076. {
  24077. return (CollisionChain2D::GetTypeStatic ()).Value ();
  24078. }
  24079. DllExport const char *
  24080. CollisionChain2D_GetTypeNameStatic ()
  24081. {
  24082. return stringdup((CollisionChain2D::GetTypeNameStatic ()).CString ());
  24083. }
  24084. DllExport void *
  24085. CollisionChain2D_CollisionChain2D (Urho3D::Context * context)
  24086. {
  24087. return WeakPtr<CollisionChain2D>(new CollisionChain2D(context));
  24088. }
  24089. DllExport void
  24090. CollisionChain2D_RegisterObject (Urho3D::Context * context)
  24091. {
  24092. CollisionChain2D::RegisterObject (context);
  24093. }
  24094. DllExport void
  24095. CollisionChain2D_SetLoop (Urho3D::CollisionChain2D *_target, bool loop)
  24096. {
  24097. _target->SetLoop (loop);
  24098. }
  24099. DllExport void
  24100. CollisionChain2D_SetVertexCount (Urho3D::CollisionChain2D *_target, unsigned int count)
  24101. {
  24102. _target->SetVertexCount (count);
  24103. }
  24104. DllExport void
  24105. CollisionChain2D_SetVertex (Urho3D::CollisionChain2D *_target, unsigned int index, const class Urho3D::Vector2 & vertex)
  24106. {
  24107. _target->SetVertex (index, vertex);
  24108. }
  24109. DllExport int
  24110. CollisionChain2D_GetLoop (Urho3D::CollisionChain2D *_target)
  24111. {
  24112. return _target->GetLoop ();
  24113. }
  24114. DllExport unsigned int
  24115. CollisionChain2D_GetVertexCount (Urho3D::CollisionChain2D *_target)
  24116. {
  24117. return _target->GetVertexCount ();
  24118. }
  24119. DllExport Interop::Vector2
  24120. CollisionChain2D_GetVertex (Urho3D::CollisionChain2D *_target, unsigned int index)
  24121. {
  24122. return *((Interop::Vector2 *) &(_target->GetVertex (index)));
  24123. }
  24124. DllExport int
  24125. CollisionCircle2D_GetType (Urho3D::CollisionCircle2D *_target)
  24126. {
  24127. return (_target->GetType ()).Value ();
  24128. }
  24129. DllExport const char *
  24130. CollisionCircle2D_GetTypeName (Urho3D::CollisionCircle2D *_target)
  24131. {
  24132. return stringdup((_target->GetTypeName ()).CString ());
  24133. }
  24134. DllExport int
  24135. CollisionCircle2D_GetTypeStatic ()
  24136. {
  24137. return (CollisionCircle2D::GetTypeStatic ()).Value ();
  24138. }
  24139. DllExport const char *
  24140. CollisionCircle2D_GetTypeNameStatic ()
  24141. {
  24142. return stringdup((CollisionCircle2D::GetTypeNameStatic ()).CString ());
  24143. }
  24144. DllExport void *
  24145. CollisionCircle2D_CollisionCircle2D (Urho3D::Context * context)
  24146. {
  24147. return WeakPtr<CollisionCircle2D>(new CollisionCircle2D(context));
  24148. }
  24149. DllExport void
  24150. CollisionCircle2D_RegisterObject (Urho3D::Context * context)
  24151. {
  24152. CollisionCircle2D::RegisterObject (context);
  24153. }
  24154. DllExport void
  24155. CollisionCircle2D_SetRadius (Urho3D::CollisionCircle2D *_target, float radius)
  24156. {
  24157. _target->SetRadius (radius);
  24158. }
  24159. DllExport void
  24160. CollisionCircle2D_SetCenter (Urho3D::CollisionCircle2D *_target, const class Urho3D::Vector2 & center)
  24161. {
  24162. _target->SetCenter (center);
  24163. }
  24164. DllExport void
  24165. CollisionCircle2D_SetCenter0 (Urho3D::CollisionCircle2D *_target, float x, float y)
  24166. {
  24167. _target->SetCenter (x, y);
  24168. }
  24169. DllExport float
  24170. CollisionCircle2D_GetRadius (Urho3D::CollisionCircle2D *_target)
  24171. {
  24172. return _target->GetRadius ();
  24173. }
  24174. DllExport Interop::Vector2
  24175. CollisionCircle2D_GetCenter (Urho3D::CollisionCircle2D *_target)
  24176. {
  24177. return *((Interop::Vector2 *) &(_target->GetCenter ()));
  24178. }
  24179. DllExport int
  24180. CollisionEdge2D_GetType (Urho3D::CollisionEdge2D *_target)
  24181. {
  24182. return (_target->GetType ()).Value ();
  24183. }
  24184. DllExport const char *
  24185. CollisionEdge2D_GetTypeName (Urho3D::CollisionEdge2D *_target)
  24186. {
  24187. return stringdup((_target->GetTypeName ()).CString ());
  24188. }
  24189. DllExport int
  24190. CollisionEdge2D_GetTypeStatic ()
  24191. {
  24192. return (CollisionEdge2D::GetTypeStatic ()).Value ();
  24193. }
  24194. DllExport const char *
  24195. CollisionEdge2D_GetTypeNameStatic ()
  24196. {
  24197. return stringdup((CollisionEdge2D::GetTypeNameStatic ()).CString ());
  24198. }
  24199. DllExport void *
  24200. CollisionEdge2D_CollisionEdge2D (Urho3D::Context * context)
  24201. {
  24202. return WeakPtr<CollisionEdge2D>(new CollisionEdge2D(context));
  24203. }
  24204. DllExport void
  24205. CollisionEdge2D_RegisterObject (Urho3D::Context * context)
  24206. {
  24207. CollisionEdge2D::RegisterObject (context);
  24208. }
  24209. DllExport void
  24210. CollisionEdge2D_SetVertex1 (Urho3D::CollisionEdge2D *_target, const class Urho3D::Vector2 & vertex)
  24211. {
  24212. _target->SetVertex1 (vertex);
  24213. }
  24214. DllExport void
  24215. CollisionEdge2D_SetVertex2 (Urho3D::CollisionEdge2D *_target, const class Urho3D::Vector2 & vertex)
  24216. {
  24217. _target->SetVertex2 (vertex);
  24218. }
  24219. DllExport void
  24220. CollisionEdge2D_SetVertices (Urho3D::CollisionEdge2D *_target, const class Urho3D::Vector2 & vertex1, const class Urho3D::Vector2 & vertex2)
  24221. {
  24222. _target->SetVertices (vertex1, vertex2);
  24223. }
  24224. DllExport Interop::Vector2
  24225. CollisionEdge2D_GetVertex1 (Urho3D::CollisionEdge2D *_target)
  24226. {
  24227. return *((Interop::Vector2 *) &(_target->GetVertex1 ()));
  24228. }
  24229. DllExport Interop::Vector2
  24230. CollisionEdge2D_GetVertex2 (Urho3D::CollisionEdge2D *_target)
  24231. {
  24232. return *((Interop::Vector2 *) &(_target->GetVertex2 ()));
  24233. }
  24234. DllExport int
  24235. CollisionPolygon2D_GetType (Urho3D::CollisionPolygon2D *_target)
  24236. {
  24237. return (_target->GetType ()).Value ();
  24238. }
  24239. DllExport const char *
  24240. CollisionPolygon2D_GetTypeName (Urho3D::CollisionPolygon2D *_target)
  24241. {
  24242. return stringdup((_target->GetTypeName ()).CString ());
  24243. }
  24244. DllExport int
  24245. CollisionPolygon2D_GetTypeStatic ()
  24246. {
  24247. return (CollisionPolygon2D::GetTypeStatic ()).Value ();
  24248. }
  24249. DllExport const char *
  24250. CollisionPolygon2D_GetTypeNameStatic ()
  24251. {
  24252. return stringdup((CollisionPolygon2D::GetTypeNameStatic ()).CString ());
  24253. }
  24254. DllExport void *
  24255. CollisionPolygon2D_CollisionPolygon2D (Urho3D::Context * context)
  24256. {
  24257. return WeakPtr<CollisionPolygon2D>(new CollisionPolygon2D(context));
  24258. }
  24259. DllExport void
  24260. CollisionPolygon2D_RegisterObject (Urho3D::Context * context)
  24261. {
  24262. CollisionPolygon2D::RegisterObject (context);
  24263. }
  24264. DllExport void
  24265. CollisionPolygon2D_SetVertexCount (Urho3D::CollisionPolygon2D *_target, unsigned int count)
  24266. {
  24267. _target->SetVertexCount (count);
  24268. }
  24269. DllExport void
  24270. CollisionPolygon2D_SetVertex (Urho3D::CollisionPolygon2D *_target, unsigned int index, const class Urho3D::Vector2 & vertex)
  24271. {
  24272. _target->SetVertex (index, vertex);
  24273. }
  24274. DllExport unsigned int
  24275. CollisionPolygon2D_GetVertexCount (Urho3D::CollisionPolygon2D *_target)
  24276. {
  24277. return _target->GetVertexCount ();
  24278. }
  24279. DllExport Interop::Vector2
  24280. CollisionPolygon2D_GetVertex (Urho3D::CollisionPolygon2D *_target, unsigned int index)
  24281. {
  24282. return *((Interop::Vector2 *) &(_target->GetVertex (index)));
  24283. }
  24284. DllExport int
  24285. Constraint2D_GetType (Urho3D::Constraint2D *_target)
  24286. {
  24287. return (_target->GetType ()).Value ();
  24288. }
  24289. DllExport const char *
  24290. Constraint2D_GetTypeName (Urho3D::Constraint2D *_target)
  24291. {
  24292. return stringdup((_target->GetTypeName ()).CString ());
  24293. }
  24294. DllExport int
  24295. Constraint2D_GetTypeStatic ()
  24296. {
  24297. return (Constraint2D::GetTypeStatic ()).Value ();
  24298. }
  24299. DllExport const char *
  24300. Constraint2D_GetTypeNameStatic ()
  24301. {
  24302. return stringdup((Constraint2D::GetTypeNameStatic ()).CString ());
  24303. }
  24304. DllExport void *
  24305. Constraint2D_Constraint2D (Urho3D::Context * context)
  24306. {
  24307. return WeakPtr<Constraint2D>(new Constraint2D(context));
  24308. }
  24309. DllExport void
  24310. Constraint2D_RegisterObject (Urho3D::Context * context)
  24311. {
  24312. Constraint2D::RegisterObject (context);
  24313. }
  24314. DllExport void
  24315. Constraint2D_ApplyAttributes (Urho3D::Constraint2D *_target)
  24316. {
  24317. _target->ApplyAttributes ();
  24318. }
  24319. DllExport void
  24320. Constraint2D_OnSetEnabled (Urho3D::Constraint2D *_target)
  24321. {
  24322. _target->OnSetEnabled ();
  24323. }
  24324. DllExport void
  24325. Constraint2D_CreateJoint (Urho3D::Constraint2D *_target)
  24326. {
  24327. _target->CreateJoint ();
  24328. }
  24329. DllExport void
  24330. Constraint2D_ReleaseJoint (Urho3D::Constraint2D *_target)
  24331. {
  24332. _target->ReleaseJoint ();
  24333. }
  24334. DllExport void
  24335. Constraint2D_SetOtherBody (Urho3D::Constraint2D *_target, Urho3D::RigidBody2D * body)
  24336. {
  24337. _target->SetOtherBody (body);
  24338. }
  24339. DllExport void
  24340. Constraint2D_SetOtherBodyNodeIDAttr (Urho3D::Constraint2D *_target, unsigned int nodeID)
  24341. {
  24342. _target->SetOtherBodyNodeIDAttr (nodeID);
  24343. }
  24344. DllExport void
  24345. Constraint2D_SetCollideConnected (Urho3D::Constraint2D *_target, bool collideConnected)
  24346. {
  24347. _target->SetCollideConnected (collideConnected);
  24348. }
  24349. DllExport void
  24350. Constraint2D_SetAttachedConstraint (Urho3D::Constraint2D *_target, Urho3D::Constraint2D * constraint)
  24351. {
  24352. _target->SetAttachedConstraint (constraint);
  24353. }
  24354. DllExport Urho3D::RigidBody2D *
  24355. Constraint2D_GetOwnerBody (Urho3D::Constraint2D *_target)
  24356. {
  24357. return _target->GetOwnerBody ();
  24358. }
  24359. DllExport Urho3D::RigidBody2D *
  24360. Constraint2D_GetOtherBody (Urho3D::Constraint2D *_target)
  24361. {
  24362. return _target->GetOtherBody ();
  24363. }
  24364. DllExport unsigned int
  24365. Constraint2D_GetOtherBodyNodeID (Urho3D::Constraint2D *_target)
  24366. {
  24367. return _target->GetOtherBodyNodeID ();
  24368. }
  24369. DllExport int
  24370. Constraint2D_GetCollideConnected (Urho3D::Constraint2D *_target)
  24371. {
  24372. return _target->GetCollideConnected ();
  24373. }
  24374. DllExport Urho3D::Constraint2D *
  24375. Constraint2D_GetAttachedConstraint (Urho3D::Constraint2D *_target)
  24376. {
  24377. return _target->GetAttachedConstraint ();
  24378. }
  24379. DllExport int
  24380. ConstraintDistance2D_GetType (Urho3D::ConstraintDistance2D *_target)
  24381. {
  24382. return (_target->GetType ()).Value ();
  24383. }
  24384. DllExport const char *
  24385. ConstraintDistance2D_GetTypeName (Urho3D::ConstraintDistance2D *_target)
  24386. {
  24387. return stringdup((_target->GetTypeName ()).CString ());
  24388. }
  24389. DllExport int
  24390. ConstraintDistance2D_GetTypeStatic ()
  24391. {
  24392. return (ConstraintDistance2D::GetTypeStatic ()).Value ();
  24393. }
  24394. DllExport const char *
  24395. ConstraintDistance2D_GetTypeNameStatic ()
  24396. {
  24397. return stringdup((ConstraintDistance2D::GetTypeNameStatic ()).CString ());
  24398. }
  24399. DllExport void *
  24400. ConstraintDistance2D_ConstraintDistance2D (Urho3D::Context * context)
  24401. {
  24402. return WeakPtr<ConstraintDistance2D>(new ConstraintDistance2D(context));
  24403. }
  24404. DllExport void
  24405. ConstraintDistance2D_RegisterObject (Urho3D::Context * context)
  24406. {
  24407. ConstraintDistance2D::RegisterObject (context);
  24408. }
  24409. DllExport void
  24410. ConstraintDistance2D_SetOwnerBodyAnchor (Urho3D::ConstraintDistance2D *_target, const class Urho3D::Vector2 & anchor)
  24411. {
  24412. _target->SetOwnerBodyAnchor (anchor);
  24413. }
  24414. DllExport void
  24415. ConstraintDistance2D_SetOtherBodyAnchor (Urho3D::ConstraintDistance2D *_target, const class Urho3D::Vector2 & anchor)
  24416. {
  24417. _target->SetOtherBodyAnchor (anchor);
  24418. }
  24419. DllExport void
  24420. ConstraintDistance2D_SetFrequencyHz (Urho3D::ConstraintDistance2D *_target, float frequencyHz)
  24421. {
  24422. _target->SetFrequencyHz (frequencyHz);
  24423. }
  24424. DllExport void
  24425. ConstraintDistance2D_SetDampingRatio (Urho3D::ConstraintDistance2D *_target, float dampingRatio)
  24426. {
  24427. _target->SetDampingRatio (dampingRatio);
  24428. }
  24429. DllExport void
  24430. ConstraintDistance2D_SetLength (Urho3D::ConstraintDistance2D *_target, float length)
  24431. {
  24432. _target->SetLength (length);
  24433. }
  24434. DllExport Interop::Vector2
  24435. ConstraintDistance2D_GetOwnerBodyAnchor (Urho3D::ConstraintDistance2D *_target)
  24436. {
  24437. return *((Interop::Vector2 *) &(_target->GetOwnerBodyAnchor ()));
  24438. }
  24439. DllExport Interop::Vector2
  24440. ConstraintDistance2D_GetOtherBodyAnchor (Urho3D::ConstraintDistance2D *_target)
  24441. {
  24442. return *((Interop::Vector2 *) &(_target->GetOtherBodyAnchor ()));
  24443. }
  24444. DllExport float
  24445. ConstraintDistance2D_GetFrequencyHz (Urho3D::ConstraintDistance2D *_target)
  24446. {
  24447. return _target->GetFrequencyHz ();
  24448. }
  24449. DllExport float
  24450. ConstraintDistance2D_GetDampingRatio (Urho3D::ConstraintDistance2D *_target)
  24451. {
  24452. return _target->GetDampingRatio ();
  24453. }
  24454. DllExport float
  24455. ConstraintDistance2D_GetLength (Urho3D::ConstraintDistance2D *_target)
  24456. {
  24457. return _target->GetLength ();
  24458. }
  24459. DllExport int
  24460. ConstraintFriction2D_GetType (Urho3D::ConstraintFriction2D *_target)
  24461. {
  24462. return (_target->GetType ()).Value ();
  24463. }
  24464. DllExport const char *
  24465. ConstraintFriction2D_GetTypeName (Urho3D::ConstraintFriction2D *_target)
  24466. {
  24467. return stringdup((_target->GetTypeName ()).CString ());
  24468. }
  24469. DllExport int
  24470. ConstraintFriction2D_GetTypeStatic ()
  24471. {
  24472. return (ConstraintFriction2D::GetTypeStatic ()).Value ();
  24473. }
  24474. DllExport const char *
  24475. ConstraintFriction2D_GetTypeNameStatic ()
  24476. {
  24477. return stringdup((ConstraintFriction2D::GetTypeNameStatic ()).CString ());
  24478. }
  24479. DllExport void *
  24480. ConstraintFriction2D_ConstraintFriction2D (Urho3D::Context * context)
  24481. {
  24482. return WeakPtr<ConstraintFriction2D>(new ConstraintFriction2D(context));
  24483. }
  24484. DllExport void
  24485. ConstraintFriction2D_RegisterObject (Urho3D::Context * context)
  24486. {
  24487. ConstraintFriction2D::RegisterObject (context);
  24488. }
  24489. DllExport void
  24490. ConstraintFriction2D_SetAnchor (Urho3D::ConstraintFriction2D *_target, const class Urho3D::Vector2 & anchor)
  24491. {
  24492. _target->SetAnchor (anchor);
  24493. }
  24494. DllExport void
  24495. ConstraintFriction2D_SetMaxForce (Urho3D::ConstraintFriction2D *_target, float maxForce)
  24496. {
  24497. _target->SetMaxForce (maxForce);
  24498. }
  24499. DllExport void
  24500. ConstraintFriction2D_SetMaxTorque (Urho3D::ConstraintFriction2D *_target, float maxTorque)
  24501. {
  24502. _target->SetMaxTorque (maxTorque);
  24503. }
  24504. DllExport Interop::Vector2
  24505. ConstraintFriction2D_GetAnchor (Urho3D::ConstraintFriction2D *_target)
  24506. {
  24507. return *((Interop::Vector2 *) &(_target->GetAnchor ()));
  24508. }
  24509. DllExport float
  24510. ConstraintFriction2D_GetMaxForce (Urho3D::ConstraintFriction2D *_target)
  24511. {
  24512. return _target->GetMaxForce ();
  24513. }
  24514. DllExport float
  24515. ConstraintFriction2D_GetMaxTorque (Urho3D::ConstraintFriction2D *_target)
  24516. {
  24517. return _target->GetMaxTorque ();
  24518. }
  24519. DllExport int
  24520. ConstraintGear2D_GetType (Urho3D::ConstraintGear2D *_target)
  24521. {
  24522. return (_target->GetType ()).Value ();
  24523. }
  24524. DllExport const char *
  24525. ConstraintGear2D_GetTypeName (Urho3D::ConstraintGear2D *_target)
  24526. {
  24527. return stringdup((_target->GetTypeName ()).CString ());
  24528. }
  24529. DllExport int
  24530. ConstraintGear2D_GetTypeStatic ()
  24531. {
  24532. return (ConstraintGear2D::GetTypeStatic ()).Value ();
  24533. }
  24534. DllExport const char *
  24535. ConstraintGear2D_GetTypeNameStatic ()
  24536. {
  24537. return stringdup((ConstraintGear2D::GetTypeNameStatic ()).CString ());
  24538. }
  24539. DllExport void *
  24540. ConstraintGear2D_ConstraintGear2D (Urho3D::Context * context)
  24541. {
  24542. return WeakPtr<ConstraintGear2D>(new ConstraintGear2D(context));
  24543. }
  24544. DllExport void
  24545. ConstraintGear2D_RegisterObject (Urho3D::Context * context)
  24546. {
  24547. ConstraintGear2D::RegisterObject (context);
  24548. }
  24549. DllExport void
  24550. ConstraintGear2D_SetOwnerConstraint (Urho3D::ConstraintGear2D *_target, Urho3D::Constraint2D * constraint)
  24551. {
  24552. _target->SetOwnerConstraint (constraint);
  24553. }
  24554. DllExport void
  24555. ConstraintGear2D_SetOtherConstraint (Urho3D::ConstraintGear2D *_target, Urho3D::Constraint2D * constraint)
  24556. {
  24557. _target->SetOtherConstraint (constraint);
  24558. }
  24559. DllExport void
  24560. ConstraintGear2D_SetRatio (Urho3D::ConstraintGear2D *_target, float ratio)
  24561. {
  24562. _target->SetRatio (ratio);
  24563. }
  24564. DllExport Urho3D::Constraint2D *
  24565. ConstraintGear2D_GetOwnerConstraint (Urho3D::ConstraintGear2D *_target)
  24566. {
  24567. return _target->GetOwnerConstraint ();
  24568. }
  24569. DllExport Urho3D::Constraint2D *
  24570. ConstraintGear2D_GetOtherConstraint (Urho3D::ConstraintGear2D *_target)
  24571. {
  24572. return _target->GetOtherConstraint ();
  24573. }
  24574. DllExport float
  24575. ConstraintGear2D_GetRatio (Urho3D::ConstraintGear2D *_target)
  24576. {
  24577. return _target->GetRatio ();
  24578. }
  24579. DllExport int
  24580. ConstraintMotor2D_GetType (Urho3D::ConstraintMotor2D *_target)
  24581. {
  24582. return (_target->GetType ()).Value ();
  24583. }
  24584. DllExport const char *
  24585. ConstraintMotor2D_GetTypeName (Urho3D::ConstraintMotor2D *_target)
  24586. {
  24587. return stringdup((_target->GetTypeName ()).CString ());
  24588. }
  24589. DllExport int
  24590. ConstraintMotor2D_GetTypeStatic ()
  24591. {
  24592. return (ConstraintMotor2D::GetTypeStatic ()).Value ();
  24593. }
  24594. DllExport const char *
  24595. ConstraintMotor2D_GetTypeNameStatic ()
  24596. {
  24597. return stringdup((ConstraintMotor2D::GetTypeNameStatic ()).CString ());
  24598. }
  24599. DllExport void *
  24600. ConstraintMotor2D_ConstraintMotor2D (Urho3D::Context * context)
  24601. {
  24602. return WeakPtr<ConstraintMotor2D>(new ConstraintMotor2D(context));
  24603. }
  24604. DllExport void
  24605. ConstraintMotor2D_RegisterObject (Urho3D::Context * context)
  24606. {
  24607. ConstraintMotor2D::RegisterObject (context);
  24608. }
  24609. DllExport void
  24610. ConstraintMotor2D_SetLinearOffset (Urho3D::ConstraintMotor2D *_target, const class Urho3D::Vector2 & linearOffset)
  24611. {
  24612. _target->SetLinearOffset (linearOffset);
  24613. }
  24614. DllExport void
  24615. ConstraintMotor2D_SetAngularOffset (Urho3D::ConstraintMotor2D *_target, float angularOffset)
  24616. {
  24617. _target->SetAngularOffset (angularOffset);
  24618. }
  24619. DllExport void
  24620. ConstraintMotor2D_SetMaxForce (Urho3D::ConstraintMotor2D *_target, float maxForce)
  24621. {
  24622. _target->SetMaxForce (maxForce);
  24623. }
  24624. DllExport void
  24625. ConstraintMotor2D_SetMaxTorque (Urho3D::ConstraintMotor2D *_target, float maxTorque)
  24626. {
  24627. _target->SetMaxTorque (maxTorque);
  24628. }
  24629. DllExport void
  24630. ConstraintMotor2D_SetCorrectionFactor (Urho3D::ConstraintMotor2D *_target, float correctionFactor)
  24631. {
  24632. _target->SetCorrectionFactor (correctionFactor);
  24633. }
  24634. DllExport Interop::Vector2
  24635. ConstraintMotor2D_GetLinearOffset (Urho3D::ConstraintMotor2D *_target)
  24636. {
  24637. return *((Interop::Vector2 *) &(_target->GetLinearOffset ()));
  24638. }
  24639. DllExport float
  24640. ConstraintMotor2D_GetAngularOffset (Urho3D::ConstraintMotor2D *_target)
  24641. {
  24642. return _target->GetAngularOffset ();
  24643. }
  24644. DllExport float
  24645. ConstraintMotor2D_GetMaxForce (Urho3D::ConstraintMotor2D *_target)
  24646. {
  24647. return _target->GetMaxForce ();
  24648. }
  24649. DllExport float
  24650. ConstraintMotor2D_GetMaxTorque (Urho3D::ConstraintMotor2D *_target)
  24651. {
  24652. return _target->GetMaxTorque ();
  24653. }
  24654. DllExport float
  24655. ConstraintMotor2D_GetCorrectionFactor (Urho3D::ConstraintMotor2D *_target)
  24656. {
  24657. return _target->GetCorrectionFactor ();
  24658. }
  24659. DllExport int
  24660. ConstraintMouse2D_GetType (Urho3D::ConstraintMouse2D *_target)
  24661. {
  24662. return (_target->GetType ()).Value ();
  24663. }
  24664. DllExport const char *
  24665. ConstraintMouse2D_GetTypeName (Urho3D::ConstraintMouse2D *_target)
  24666. {
  24667. return stringdup((_target->GetTypeName ()).CString ());
  24668. }
  24669. DllExport int
  24670. ConstraintMouse2D_GetTypeStatic ()
  24671. {
  24672. return (ConstraintMouse2D::GetTypeStatic ()).Value ();
  24673. }
  24674. DllExport const char *
  24675. ConstraintMouse2D_GetTypeNameStatic ()
  24676. {
  24677. return stringdup((ConstraintMouse2D::GetTypeNameStatic ()).CString ());
  24678. }
  24679. DllExport void *
  24680. ConstraintMouse2D_ConstraintMouse2D (Urho3D::Context * context)
  24681. {
  24682. return WeakPtr<ConstraintMouse2D>(new ConstraintMouse2D(context));
  24683. }
  24684. DllExport void
  24685. ConstraintMouse2D_RegisterObject (Urho3D::Context * context)
  24686. {
  24687. ConstraintMouse2D::RegisterObject (context);
  24688. }
  24689. DllExport void
  24690. ConstraintMouse2D_SetTarget (Urho3D::ConstraintMouse2D *_target, const class Urho3D::Vector2 & target)
  24691. {
  24692. _target->SetTarget (target);
  24693. }
  24694. DllExport void
  24695. ConstraintMouse2D_SetMaxForce (Urho3D::ConstraintMouse2D *_target, float maxForce)
  24696. {
  24697. _target->SetMaxForce (maxForce);
  24698. }
  24699. DllExport void
  24700. ConstraintMouse2D_SetFrequencyHz (Urho3D::ConstraintMouse2D *_target, float frequencyHz)
  24701. {
  24702. _target->SetFrequencyHz (frequencyHz);
  24703. }
  24704. DllExport void
  24705. ConstraintMouse2D_SetDampingRatio (Urho3D::ConstraintMouse2D *_target, float dampingRatio)
  24706. {
  24707. _target->SetDampingRatio (dampingRatio);
  24708. }
  24709. DllExport Interop::Vector2
  24710. ConstraintMouse2D_GetTarget (Urho3D::ConstraintMouse2D *_target)
  24711. {
  24712. return *((Interop::Vector2 *) &(_target->GetTarget ()));
  24713. }
  24714. DllExport float
  24715. ConstraintMouse2D_GetMaxForce (Urho3D::ConstraintMouse2D *_target)
  24716. {
  24717. return _target->GetMaxForce ();
  24718. }
  24719. DllExport float
  24720. ConstraintMouse2D_GetFrequencyHz (Urho3D::ConstraintMouse2D *_target)
  24721. {
  24722. return _target->GetFrequencyHz ();
  24723. }
  24724. DllExport float
  24725. ConstraintMouse2D_GetDampingRatio (Urho3D::ConstraintMouse2D *_target)
  24726. {
  24727. return _target->GetDampingRatio ();
  24728. }
  24729. DllExport int
  24730. ConstraintPrismatic2D_GetType (Urho3D::ConstraintPrismatic2D *_target)
  24731. {
  24732. return (_target->GetType ()).Value ();
  24733. }
  24734. DllExport const char *
  24735. ConstraintPrismatic2D_GetTypeName (Urho3D::ConstraintPrismatic2D *_target)
  24736. {
  24737. return stringdup((_target->GetTypeName ()).CString ());
  24738. }
  24739. DllExport int
  24740. ConstraintPrismatic2D_GetTypeStatic ()
  24741. {
  24742. return (ConstraintPrismatic2D::GetTypeStatic ()).Value ();
  24743. }
  24744. DllExport const char *
  24745. ConstraintPrismatic2D_GetTypeNameStatic ()
  24746. {
  24747. return stringdup((ConstraintPrismatic2D::GetTypeNameStatic ()).CString ());
  24748. }
  24749. DllExport void *
  24750. ConstraintPrismatic2D_ConstraintPrismatic2D (Urho3D::Context * context)
  24751. {
  24752. return WeakPtr<ConstraintPrismatic2D>(new ConstraintPrismatic2D(context));
  24753. }
  24754. DllExport void
  24755. ConstraintPrismatic2D_RegisterObject (Urho3D::Context * context)
  24756. {
  24757. ConstraintPrismatic2D::RegisterObject (context);
  24758. }
  24759. DllExport void
  24760. ConstraintPrismatic2D_SetAnchor (Urho3D::ConstraintPrismatic2D *_target, const class Urho3D::Vector2 & anchor)
  24761. {
  24762. _target->SetAnchor (anchor);
  24763. }
  24764. DllExport void
  24765. ConstraintPrismatic2D_SetAxis (Urho3D::ConstraintPrismatic2D *_target, const class Urho3D::Vector2 & axis)
  24766. {
  24767. _target->SetAxis (axis);
  24768. }
  24769. DllExport void
  24770. ConstraintPrismatic2D_SetEnableLimit (Urho3D::ConstraintPrismatic2D *_target, bool enableLimit)
  24771. {
  24772. _target->SetEnableLimit (enableLimit);
  24773. }
  24774. DllExport void
  24775. ConstraintPrismatic2D_SetLowerTranslation (Urho3D::ConstraintPrismatic2D *_target, float lowerTranslation)
  24776. {
  24777. _target->SetLowerTranslation (lowerTranslation);
  24778. }
  24779. DllExport void
  24780. ConstraintPrismatic2D_SetUpperTranslation (Urho3D::ConstraintPrismatic2D *_target, float upperTranslation)
  24781. {
  24782. _target->SetUpperTranslation (upperTranslation);
  24783. }
  24784. DllExport void
  24785. ConstraintPrismatic2D_SetEnableMotor (Urho3D::ConstraintPrismatic2D *_target, bool enableMotor)
  24786. {
  24787. _target->SetEnableMotor (enableMotor);
  24788. }
  24789. DllExport void
  24790. ConstraintPrismatic2D_SetMaxMotorForce (Urho3D::ConstraintPrismatic2D *_target, float maxMotorForce)
  24791. {
  24792. _target->SetMaxMotorForce (maxMotorForce);
  24793. }
  24794. DllExport void
  24795. ConstraintPrismatic2D_SetMotorSpeed (Urho3D::ConstraintPrismatic2D *_target, float motorSpeed)
  24796. {
  24797. _target->SetMotorSpeed (motorSpeed);
  24798. }
  24799. DllExport Interop::Vector2
  24800. ConstraintPrismatic2D_GetAnchor (Urho3D::ConstraintPrismatic2D *_target)
  24801. {
  24802. return *((Interop::Vector2 *) &(_target->GetAnchor ()));
  24803. }
  24804. DllExport Interop::Vector2
  24805. ConstraintPrismatic2D_GetAxis (Urho3D::ConstraintPrismatic2D *_target)
  24806. {
  24807. return *((Interop::Vector2 *) &(_target->GetAxis ()));
  24808. }
  24809. DllExport int
  24810. ConstraintPrismatic2D_GetEnableLimit (Urho3D::ConstraintPrismatic2D *_target)
  24811. {
  24812. return _target->GetEnableLimit ();
  24813. }
  24814. DllExport float
  24815. ConstraintPrismatic2D_GetLowerTranslation (Urho3D::ConstraintPrismatic2D *_target)
  24816. {
  24817. return _target->GetLowerTranslation ();
  24818. }
  24819. DllExport float
  24820. ConstraintPrismatic2D_GetUpperTranslation (Urho3D::ConstraintPrismatic2D *_target)
  24821. {
  24822. return _target->GetUpperTranslation ();
  24823. }
  24824. DllExport int
  24825. ConstraintPrismatic2D_GetEnableMotor (Urho3D::ConstraintPrismatic2D *_target)
  24826. {
  24827. return _target->GetEnableMotor ();
  24828. }
  24829. DllExport float
  24830. ConstraintPrismatic2D_GetMaxMotorForce (Urho3D::ConstraintPrismatic2D *_target)
  24831. {
  24832. return _target->GetMaxMotorForce ();
  24833. }
  24834. DllExport float
  24835. ConstraintPrismatic2D_GetMotorSpeed (Urho3D::ConstraintPrismatic2D *_target)
  24836. {
  24837. return _target->GetMotorSpeed ();
  24838. }
  24839. DllExport int
  24840. ConstraintPulley2D_GetType (Urho3D::ConstraintPulley2D *_target)
  24841. {
  24842. return (_target->GetType ()).Value ();
  24843. }
  24844. DllExport const char *
  24845. ConstraintPulley2D_GetTypeName (Urho3D::ConstraintPulley2D *_target)
  24846. {
  24847. return stringdup((_target->GetTypeName ()).CString ());
  24848. }
  24849. DllExport int
  24850. ConstraintPulley2D_GetTypeStatic ()
  24851. {
  24852. return (ConstraintPulley2D::GetTypeStatic ()).Value ();
  24853. }
  24854. DllExport const char *
  24855. ConstraintPulley2D_GetTypeNameStatic ()
  24856. {
  24857. return stringdup((ConstraintPulley2D::GetTypeNameStatic ()).CString ());
  24858. }
  24859. DllExport void *
  24860. ConstraintPulley2D_ConstraintPulley2D (Urho3D::Context * context)
  24861. {
  24862. return WeakPtr<ConstraintPulley2D>(new ConstraintPulley2D(context));
  24863. }
  24864. DllExport void
  24865. ConstraintPulley2D_RegisterObject (Urho3D::Context * context)
  24866. {
  24867. ConstraintPulley2D::RegisterObject (context);
  24868. }
  24869. DllExport void
  24870. ConstraintPulley2D_SetOwnerBodyGroundAnchor (Urho3D::ConstraintPulley2D *_target, const class Urho3D::Vector2 & groundAnchor)
  24871. {
  24872. _target->SetOwnerBodyGroundAnchor (groundAnchor);
  24873. }
  24874. DllExport void
  24875. ConstraintPulley2D_SetOtherBodyGroundAnchor (Urho3D::ConstraintPulley2D *_target, const class Urho3D::Vector2 & groundAnchor)
  24876. {
  24877. _target->SetOtherBodyGroundAnchor (groundAnchor);
  24878. }
  24879. DllExport void
  24880. ConstraintPulley2D_SetOwnerBodyAnchor (Urho3D::ConstraintPulley2D *_target, const class Urho3D::Vector2 & anchor)
  24881. {
  24882. _target->SetOwnerBodyAnchor (anchor);
  24883. }
  24884. DllExport void
  24885. ConstraintPulley2D_SetOtherBodyAnchor (Urho3D::ConstraintPulley2D *_target, const class Urho3D::Vector2 & anchor)
  24886. {
  24887. _target->SetOtherBodyAnchor (anchor);
  24888. }
  24889. DllExport void
  24890. ConstraintPulley2D_SetRatio (Urho3D::ConstraintPulley2D *_target, float ratio)
  24891. {
  24892. _target->SetRatio (ratio);
  24893. }
  24894. DllExport Interop::Vector2
  24895. ConstraintPulley2D_GetOwnerBodyGroundAnchor (Urho3D::ConstraintPulley2D *_target)
  24896. {
  24897. return *((Interop::Vector2 *) &(_target->GetOwnerBodyGroundAnchor ()));
  24898. }
  24899. DllExport Interop::Vector2
  24900. ConstraintPulley2D_GetOtherBodyGroundAnchor (Urho3D::ConstraintPulley2D *_target)
  24901. {
  24902. return *((Interop::Vector2 *) &(_target->GetOtherBodyGroundAnchor ()));
  24903. }
  24904. DllExport Interop::Vector2
  24905. ConstraintPulley2D_GetOwnerBodyAnchor (Urho3D::ConstraintPulley2D *_target)
  24906. {
  24907. return *((Interop::Vector2 *) &(_target->GetOwnerBodyAnchor ()));
  24908. }
  24909. DllExport Interop::Vector2
  24910. ConstraintPulley2D_GetOtherBodyAnchor (Urho3D::ConstraintPulley2D *_target)
  24911. {
  24912. return *((Interop::Vector2 *) &(_target->GetOtherBodyAnchor ()));
  24913. }
  24914. DllExport float
  24915. ConstraintPulley2D_GetRatio (Urho3D::ConstraintPulley2D *_target)
  24916. {
  24917. return _target->GetRatio ();
  24918. }
  24919. DllExport int
  24920. ConstraintRevolute2D_GetType (Urho3D::ConstraintRevolute2D *_target)
  24921. {
  24922. return (_target->GetType ()).Value ();
  24923. }
  24924. DllExport const char *
  24925. ConstraintRevolute2D_GetTypeName (Urho3D::ConstraintRevolute2D *_target)
  24926. {
  24927. return stringdup((_target->GetTypeName ()).CString ());
  24928. }
  24929. DllExport int
  24930. ConstraintRevolute2D_GetTypeStatic ()
  24931. {
  24932. return (ConstraintRevolute2D::GetTypeStatic ()).Value ();
  24933. }
  24934. DllExport const char *
  24935. ConstraintRevolute2D_GetTypeNameStatic ()
  24936. {
  24937. return stringdup((ConstraintRevolute2D::GetTypeNameStatic ()).CString ());
  24938. }
  24939. DllExport void *
  24940. ConstraintRevolute2D_ConstraintRevolute2D (Urho3D::Context * context)
  24941. {
  24942. return WeakPtr<ConstraintRevolute2D>(new ConstraintRevolute2D(context));
  24943. }
  24944. DllExport void
  24945. ConstraintRevolute2D_RegisterObject (Urho3D::Context * context)
  24946. {
  24947. ConstraintRevolute2D::RegisterObject (context);
  24948. }
  24949. DllExport void
  24950. ConstraintRevolute2D_SetAnchor (Urho3D::ConstraintRevolute2D *_target, const class Urho3D::Vector2 & anchor)
  24951. {
  24952. _target->SetAnchor (anchor);
  24953. }
  24954. DllExport void
  24955. ConstraintRevolute2D_SetEnableLimit (Urho3D::ConstraintRevolute2D *_target, bool enableLimit)
  24956. {
  24957. _target->SetEnableLimit (enableLimit);
  24958. }
  24959. DllExport void
  24960. ConstraintRevolute2D_SetLowerAngle (Urho3D::ConstraintRevolute2D *_target, float lowerAngle)
  24961. {
  24962. _target->SetLowerAngle (lowerAngle);
  24963. }
  24964. DllExport void
  24965. ConstraintRevolute2D_SetUpperAngle (Urho3D::ConstraintRevolute2D *_target, float upperAngle)
  24966. {
  24967. _target->SetUpperAngle (upperAngle);
  24968. }
  24969. DllExport void
  24970. ConstraintRevolute2D_SetEnableMotor (Urho3D::ConstraintRevolute2D *_target, bool enableMotor)
  24971. {
  24972. _target->SetEnableMotor (enableMotor);
  24973. }
  24974. DllExport void
  24975. ConstraintRevolute2D_SetMotorSpeed (Urho3D::ConstraintRevolute2D *_target, float motorSpeed)
  24976. {
  24977. _target->SetMotorSpeed (motorSpeed);
  24978. }
  24979. DllExport void
  24980. ConstraintRevolute2D_SetMaxMotorTorque (Urho3D::ConstraintRevolute2D *_target, float maxMotorTorque)
  24981. {
  24982. _target->SetMaxMotorTorque (maxMotorTorque);
  24983. }
  24984. DllExport Interop::Vector2
  24985. ConstraintRevolute2D_GetAnchor (Urho3D::ConstraintRevolute2D *_target)
  24986. {
  24987. return *((Interop::Vector2 *) &(_target->GetAnchor ()));
  24988. }
  24989. DllExport int
  24990. ConstraintRevolute2D_GetEnableLimit (Urho3D::ConstraintRevolute2D *_target)
  24991. {
  24992. return _target->GetEnableLimit ();
  24993. }
  24994. DllExport float
  24995. ConstraintRevolute2D_GetLowerAngle (Urho3D::ConstraintRevolute2D *_target)
  24996. {
  24997. return _target->GetLowerAngle ();
  24998. }
  24999. DllExport float
  25000. ConstraintRevolute2D_GetUpperAngle (Urho3D::ConstraintRevolute2D *_target)
  25001. {
  25002. return _target->GetUpperAngle ();
  25003. }
  25004. DllExport int
  25005. ConstraintRevolute2D_GetEnableMotor (Urho3D::ConstraintRevolute2D *_target)
  25006. {
  25007. return _target->GetEnableMotor ();
  25008. }
  25009. DllExport float
  25010. ConstraintRevolute2D_GetMotorSpeed (Urho3D::ConstraintRevolute2D *_target)
  25011. {
  25012. return _target->GetMotorSpeed ();
  25013. }
  25014. DllExport float
  25015. ConstraintRevolute2D_GetMaxMotorTorque (Urho3D::ConstraintRevolute2D *_target)
  25016. {
  25017. return _target->GetMaxMotorTorque ();
  25018. }
  25019. DllExport int
  25020. ConstraintRope2D_GetType (Urho3D::ConstraintRope2D *_target)
  25021. {
  25022. return (_target->GetType ()).Value ();
  25023. }
  25024. DllExport const char *
  25025. ConstraintRope2D_GetTypeName (Urho3D::ConstraintRope2D *_target)
  25026. {
  25027. return stringdup((_target->GetTypeName ()).CString ());
  25028. }
  25029. DllExport int
  25030. ConstraintRope2D_GetTypeStatic ()
  25031. {
  25032. return (ConstraintRope2D::GetTypeStatic ()).Value ();
  25033. }
  25034. DllExport const char *
  25035. ConstraintRope2D_GetTypeNameStatic ()
  25036. {
  25037. return stringdup((ConstraintRope2D::GetTypeNameStatic ()).CString ());
  25038. }
  25039. DllExport void *
  25040. ConstraintRope2D_ConstraintRope2D (Urho3D::Context * context)
  25041. {
  25042. return WeakPtr<ConstraintRope2D>(new ConstraintRope2D(context));
  25043. }
  25044. DllExport void
  25045. ConstraintRope2D_RegisterObject (Urho3D::Context * context)
  25046. {
  25047. ConstraintRope2D::RegisterObject (context);
  25048. }
  25049. DllExport void
  25050. ConstraintRope2D_SetOwnerBodyAnchor (Urho3D::ConstraintRope2D *_target, const class Urho3D::Vector2 & anchor)
  25051. {
  25052. _target->SetOwnerBodyAnchor (anchor);
  25053. }
  25054. DllExport void
  25055. ConstraintRope2D_SetOtherBodyAnchor (Urho3D::ConstraintRope2D *_target, const class Urho3D::Vector2 & anchor)
  25056. {
  25057. _target->SetOtherBodyAnchor (anchor);
  25058. }
  25059. DllExport void
  25060. ConstraintRope2D_SetMaxLength (Urho3D::ConstraintRope2D *_target, float maxLength)
  25061. {
  25062. _target->SetMaxLength (maxLength);
  25063. }
  25064. DllExport Interop::Vector2
  25065. ConstraintRope2D_GetOwnerBodyAnchor (Urho3D::ConstraintRope2D *_target)
  25066. {
  25067. return *((Interop::Vector2 *) &(_target->GetOwnerBodyAnchor ()));
  25068. }
  25069. DllExport Interop::Vector2
  25070. ConstraintRope2D_GetOtherBodyAnchor (Urho3D::ConstraintRope2D *_target)
  25071. {
  25072. return *((Interop::Vector2 *) &(_target->GetOtherBodyAnchor ()));
  25073. }
  25074. DllExport float
  25075. ConstraintRope2D_GetMaxLength (Urho3D::ConstraintRope2D *_target)
  25076. {
  25077. return _target->GetMaxLength ();
  25078. }
  25079. DllExport int
  25080. ConstraintWeld2D_GetType (Urho3D::ConstraintWeld2D *_target)
  25081. {
  25082. return (_target->GetType ()).Value ();
  25083. }
  25084. DllExport const char *
  25085. ConstraintWeld2D_GetTypeName (Urho3D::ConstraintWeld2D *_target)
  25086. {
  25087. return stringdup((_target->GetTypeName ()).CString ());
  25088. }
  25089. DllExport int
  25090. ConstraintWeld2D_GetTypeStatic ()
  25091. {
  25092. return (ConstraintWeld2D::GetTypeStatic ()).Value ();
  25093. }
  25094. DllExport const char *
  25095. ConstraintWeld2D_GetTypeNameStatic ()
  25096. {
  25097. return stringdup((ConstraintWeld2D::GetTypeNameStatic ()).CString ());
  25098. }
  25099. DllExport void *
  25100. ConstraintWeld2D_ConstraintWeld2D (Urho3D::Context * context)
  25101. {
  25102. return WeakPtr<ConstraintWeld2D>(new ConstraintWeld2D(context));
  25103. }
  25104. DllExport void
  25105. ConstraintWeld2D_RegisterObject (Urho3D::Context * context)
  25106. {
  25107. ConstraintWeld2D::RegisterObject (context);
  25108. }
  25109. DllExport void
  25110. ConstraintWeld2D_SetAnchor (Urho3D::ConstraintWeld2D *_target, const class Urho3D::Vector2 & anchor)
  25111. {
  25112. _target->SetAnchor (anchor);
  25113. }
  25114. DllExport void
  25115. ConstraintWeld2D_SetFrequencyHz (Urho3D::ConstraintWeld2D *_target, float frequencyHz)
  25116. {
  25117. _target->SetFrequencyHz (frequencyHz);
  25118. }
  25119. DllExport void
  25120. ConstraintWeld2D_SetDampingRatio (Urho3D::ConstraintWeld2D *_target, float dampingRatio)
  25121. {
  25122. _target->SetDampingRatio (dampingRatio);
  25123. }
  25124. DllExport Interop::Vector2
  25125. ConstraintWeld2D_GetAnchor (Urho3D::ConstraintWeld2D *_target)
  25126. {
  25127. return *((Interop::Vector2 *) &(_target->GetAnchor ()));
  25128. }
  25129. DllExport float
  25130. ConstraintWeld2D_GetFrequencyHz (Urho3D::ConstraintWeld2D *_target)
  25131. {
  25132. return _target->GetFrequencyHz ();
  25133. }
  25134. DllExport float
  25135. ConstraintWeld2D_GetDampingRatio (Urho3D::ConstraintWeld2D *_target)
  25136. {
  25137. return _target->GetDampingRatio ();
  25138. }
  25139. DllExport int
  25140. ConstraintWheel2D_GetType (Urho3D::ConstraintWheel2D *_target)
  25141. {
  25142. return (_target->GetType ()).Value ();
  25143. }
  25144. DllExport const char *
  25145. ConstraintWheel2D_GetTypeName (Urho3D::ConstraintWheel2D *_target)
  25146. {
  25147. return stringdup((_target->GetTypeName ()).CString ());
  25148. }
  25149. DllExport int
  25150. ConstraintWheel2D_GetTypeStatic ()
  25151. {
  25152. return (ConstraintWheel2D::GetTypeStatic ()).Value ();
  25153. }
  25154. DllExport const char *
  25155. ConstraintWheel2D_GetTypeNameStatic ()
  25156. {
  25157. return stringdup((ConstraintWheel2D::GetTypeNameStatic ()).CString ());
  25158. }
  25159. DllExport void *
  25160. ConstraintWheel2D_ConstraintWheel2D (Urho3D::Context * context)
  25161. {
  25162. return WeakPtr<ConstraintWheel2D>(new ConstraintWheel2D(context));
  25163. }
  25164. DllExport void
  25165. ConstraintWheel2D_RegisterObject (Urho3D::Context * context)
  25166. {
  25167. ConstraintWheel2D::RegisterObject (context);
  25168. }
  25169. DllExport void
  25170. ConstraintWheel2D_SetAnchor (Urho3D::ConstraintWheel2D *_target, const class Urho3D::Vector2 & anchor)
  25171. {
  25172. _target->SetAnchor (anchor);
  25173. }
  25174. DllExport void
  25175. ConstraintWheel2D_SetAxis (Urho3D::ConstraintWheel2D *_target, const class Urho3D::Vector2 & axis)
  25176. {
  25177. _target->SetAxis (axis);
  25178. }
  25179. DllExport void
  25180. ConstraintWheel2D_SetEnableMotor (Urho3D::ConstraintWheel2D *_target, bool enableMotor)
  25181. {
  25182. _target->SetEnableMotor (enableMotor);
  25183. }
  25184. DllExport void
  25185. ConstraintWheel2D_SetMaxMotorTorque (Urho3D::ConstraintWheel2D *_target, float maxMotorTorque)
  25186. {
  25187. _target->SetMaxMotorTorque (maxMotorTorque);
  25188. }
  25189. DllExport void
  25190. ConstraintWheel2D_SetMotorSpeed (Urho3D::ConstraintWheel2D *_target, float motorSpeed)
  25191. {
  25192. _target->SetMotorSpeed (motorSpeed);
  25193. }
  25194. DllExport void
  25195. ConstraintWheel2D_SetFrequencyHz (Urho3D::ConstraintWheel2D *_target, float frequencyHz)
  25196. {
  25197. _target->SetFrequencyHz (frequencyHz);
  25198. }
  25199. DllExport void
  25200. ConstraintWheel2D_SetDampingRatio (Urho3D::ConstraintWheel2D *_target, float dampingRatio)
  25201. {
  25202. _target->SetDampingRatio (dampingRatio);
  25203. }
  25204. DllExport Interop::Vector2
  25205. ConstraintWheel2D_GetAnchor (Urho3D::ConstraintWheel2D *_target)
  25206. {
  25207. return *((Interop::Vector2 *) &(_target->GetAnchor ()));
  25208. }
  25209. DllExport Interop::Vector2
  25210. ConstraintWheel2D_GetAxis (Urho3D::ConstraintWheel2D *_target)
  25211. {
  25212. return *((Interop::Vector2 *) &(_target->GetAxis ()));
  25213. }
  25214. DllExport int
  25215. ConstraintWheel2D_GetEnableMotor (Urho3D::ConstraintWheel2D *_target)
  25216. {
  25217. return _target->GetEnableMotor ();
  25218. }
  25219. DllExport float
  25220. ConstraintWheel2D_GetMaxMotorTorque (Urho3D::ConstraintWheel2D *_target)
  25221. {
  25222. return _target->GetMaxMotorTorque ();
  25223. }
  25224. DllExport float
  25225. ConstraintWheel2D_GetMotorSpeed (Urho3D::ConstraintWheel2D *_target)
  25226. {
  25227. return _target->GetMotorSpeed ();
  25228. }
  25229. DllExport float
  25230. ConstraintWheel2D_GetFrequencyHz (Urho3D::ConstraintWheel2D *_target)
  25231. {
  25232. return _target->GetFrequencyHz ();
  25233. }
  25234. DllExport float
  25235. ConstraintWheel2D_GetDampingRatio (Urho3D::ConstraintWheel2D *_target)
  25236. {
  25237. return _target->GetDampingRatio ();
  25238. }
  25239. DllExport int
  25240. ParticleEffect2D_GetType (Urho3D::ParticleEffect2D *_target)
  25241. {
  25242. return (_target->GetType ()).Value ();
  25243. }
  25244. DllExport const char *
  25245. ParticleEffect2D_GetTypeName (Urho3D::ParticleEffect2D *_target)
  25246. {
  25247. return stringdup((_target->GetTypeName ()).CString ());
  25248. }
  25249. DllExport int
  25250. ParticleEffect2D_GetTypeStatic ()
  25251. {
  25252. return (ParticleEffect2D::GetTypeStatic ()).Value ();
  25253. }
  25254. DllExport const char *
  25255. ParticleEffect2D_GetTypeNameStatic ()
  25256. {
  25257. return stringdup((ParticleEffect2D::GetTypeNameStatic ()).CString ());
  25258. }
  25259. DllExport void *
  25260. ParticleEffect2D_ParticleEffect2D (Urho3D::Context * context)
  25261. {
  25262. return WeakPtr<ParticleEffect2D>(new ParticleEffect2D(context));
  25263. }
  25264. DllExport void
  25265. ParticleEffect2D_RegisterObject (Urho3D::Context * context)
  25266. {
  25267. ParticleEffect2D::RegisterObject (context);
  25268. }
  25269. DllExport int
  25270. ParticleEffect2D_BeginLoad_File (Urho3D::ParticleEffect2D *_target, File * source)
  25271. {
  25272. return _target->BeginLoad (*source);
  25273. }
  25274. DllExport int
  25275. ParticleEffect2D_BeginLoad_MemoryBuffer (Urho3D::ParticleEffect2D *_target, MemoryBuffer * source)
  25276. {
  25277. return _target->BeginLoad (*source);
  25278. }
  25279. DllExport int
  25280. ParticleEffect2D_EndLoad (Urho3D::ParticleEffect2D *_target)
  25281. {
  25282. return _target->EndLoad ();
  25283. }
  25284. DllExport int
  25285. ParticleEffect2D_Save_File (Urho3D::ParticleEffect2D *_target, File * dest)
  25286. {
  25287. return _target->Save (*dest);
  25288. }
  25289. DllExport int
  25290. ParticleEffect2D_Save_MemoryBuffer (Urho3D::ParticleEffect2D *_target, MemoryBuffer * dest)
  25291. {
  25292. return _target->Save (*dest);
  25293. }
  25294. DllExport void
  25295. ParticleEffect2D_SetSprite (Urho3D::ParticleEffect2D *_target, Urho3D::Sprite2D * sprite)
  25296. {
  25297. _target->SetSprite (sprite);
  25298. }
  25299. DllExport void
  25300. ParticleEffect2D_SetSourcePositionVariance (Urho3D::ParticleEffect2D *_target, const class Urho3D::Vector2 & sourcePositionVariance)
  25301. {
  25302. _target->SetSourcePositionVariance (sourcePositionVariance);
  25303. }
  25304. DllExport void
  25305. ParticleEffect2D_SetSpeed (Urho3D::ParticleEffect2D *_target, float speed)
  25306. {
  25307. _target->SetSpeed (speed);
  25308. }
  25309. DllExport void
  25310. ParticleEffect2D_SetSpeedVariance (Urho3D::ParticleEffect2D *_target, float speedVariance)
  25311. {
  25312. _target->SetSpeedVariance (speedVariance);
  25313. }
  25314. DllExport void
  25315. ParticleEffect2D_SetParticleLifeSpan (Urho3D::ParticleEffect2D *_target, float particleLifeSpan)
  25316. {
  25317. _target->SetParticleLifeSpan (particleLifeSpan);
  25318. }
  25319. DllExport void
  25320. ParticleEffect2D_SetParticleLifespanVariance (Urho3D::ParticleEffect2D *_target, float particleLifespanVariance)
  25321. {
  25322. _target->SetParticleLifespanVariance (particleLifespanVariance);
  25323. }
  25324. DllExport void
  25325. ParticleEffect2D_SetAngle (Urho3D::ParticleEffect2D *_target, float angle)
  25326. {
  25327. _target->SetAngle (angle);
  25328. }
  25329. DllExport void
  25330. ParticleEffect2D_SetAngleVariance (Urho3D::ParticleEffect2D *_target, float angleVariance)
  25331. {
  25332. _target->SetAngleVariance (angleVariance);
  25333. }
  25334. DllExport void
  25335. ParticleEffect2D_SetGravity (Urho3D::ParticleEffect2D *_target, const class Urho3D::Vector2 & gravity)
  25336. {
  25337. _target->SetGravity (gravity);
  25338. }
  25339. DllExport void
  25340. ParticleEffect2D_SetRadialAcceleration (Urho3D::ParticleEffect2D *_target, float radialAcceleration)
  25341. {
  25342. _target->SetRadialAcceleration (radialAcceleration);
  25343. }
  25344. DllExport void
  25345. ParticleEffect2D_SetTangentialAcceleration (Urho3D::ParticleEffect2D *_target, float tangentialAcceleration)
  25346. {
  25347. _target->SetTangentialAcceleration (tangentialAcceleration);
  25348. }
  25349. DllExport void
  25350. ParticleEffect2D_SetRadialAccelVariance (Urho3D::ParticleEffect2D *_target, float radialAccelVariance)
  25351. {
  25352. _target->SetRadialAccelVariance (radialAccelVariance);
  25353. }
  25354. DllExport void
  25355. ParticleEffect2D_SetTangentialAccelVariance (Urho3D::ParticleEffect2D *_target, float tangentialAccelVariance)
  25356. {
  25357. _target->SetTangentialAccelVariance (tangentialAccelVariance);
  25358. }
  25359. DllExport void
  25360. ParticleEffect2D_SetStartColor (Urho3D::ParticleEffect2D *_target, const class Urho3D::Color & startColor)
  25361. {
  25362. _target->SetStartColor (startColor);
  25363. }
  25364. DllExport void
  25365. ParticleEffect2D_SetStartColorVariance (Urho3D::ParticleEffect2D *_target, const class Urho3D::Color & startColorVariance)
  25366. {
  25367. _target->SetStartColorVariance (startColorVariance);
  25368. }
  25369. DllExport void
  25370. ParticleEffect2D_SetFinishColor (Urho3D::ParticleEffect2D *_target, const class Urho3D::Color & finishColor)
  25371. {
  25372. _target->SetFinishColor (finishColor);
  25373. }
  25374. DllExport void
  25375. ParticleEffect2D_SetFinishColorVariance (Urho3D::ParticleEffect2D *_target, const class Urho3D::Color & finishColorVariance)
  25376. {
  25377. _target->SetFinishColorVariance (finishColorVariance);
  25378. }
  25379. DllExport void
  25380. ParticleEffect2D_SetMaxParticles (Urho3D::ParticleEffect2D *_target, int maxParticles)
  25381. {
  25382. _target->SetMaxParticles (maxParticles);
  25383. }
  25384. DllExport void
  25385. ParticleEffect2D_SetStartParticleSize (Urho3D::ParticleEffect2D *_target, float startParticleSize)
  25386. {
  25387. _target->SetStartParticleSize (startParticleSize);
  25388. }
  25389. DllExport void
  25390. ParticleEffect2D_SetStartParticleSizeVariance (Urho3D::ParticleEffect2D *_target, float startParticleSizeVariance)
  25391. {
  25392. _target->SetStartParticleSizeVariance (startParticleSizeVariance);
  25393. }
  25394. DllExport void
  25395. ParticleEffect2D_SetFinishParticleSize (Urho3D::ParticleEffect2D *_target, float finishParticleSize)
  25396. {
  25397. _target->SetFinishParticleSize (finishParticleSize);
  25398. }
  25399. DllExport void
  25400. ParticleEffect2D_SetFinishParticleSizeVariance (Urho3D::ParticleEffect2D *_target, float FinishParticleSizeVariance)
  25401. {
  25402. _target->SetFinishParticleSizeVariance (FinishParticleSizeVariance);
  25403. }
  25404. DllExport void
  25405. ParticleEffect2D_SetDuration (Urho3D::ParticleEffect2D *_target, float duration)
  25406. {
  25407. _target->SetDuration (duration);
  25408. }
  25409. DllExport void
  25410. ParticleEffect2D_SetEmitterType (Urho3D::ParticleEffect2D *_target, enum Urho3D::EmitterType2D emitterType)
  25411. {
  25412. _target->SetEmitterType (emitterType);
  25413. }
  25414. DllExport void
  25415. ParticleEffect2D_SetMaxRadius (Urho3D::ParticleEffect2D *_target, float maxRadius)
  25416. {
  25417. _target->SetMaxRadius (maxRadius);
  25418. }
  25419. DllExport void
  25420. ParticleEffect2D_SetMaxRadiusVariance (Urho3D::ParticleEffect2D *_target, float maxRadiusVariance)
  25421. {
  25422. _target->SetMaxRadiusVariance (maxRadiusVariance);
  25423. }
  25424. DllExport void
  25425. ParticleEffect2D_SetMinRadius (Urho3D::ParticleEffect2D *_target, float minRadius)
  25426. {
  25427. _target->SetMinRadius (minRadius);
  25428. }
  25429. DllExport void
  25430. ParticleEffect2D_SetMinRadiusVariance (Urho3D::ParticleEffect2D *_target, float minRadiusVariance)
  25431. {
  25432. _target->SetMinRadiusVariance (minRadiusVariance);
  25433. }
  25434. DllExport void
  25435. ParticleEffect2D_SetRotatePerSecond (Urho3D::ParticleEffect2D *_target, float rotatePerSecond)
  25436. {
  25437. _target->SetRotatePerSecond (rotatePerSecond);
  25438. }
  25439. DllExport void
  25440. ParticleEffect2D_SetRotatePerSecondVariance (Urho3D::ParticleEffect2D *_target, float rotatePerSecondVariance)
  25441. {
  25442. _target->SetRotatePerSecondVariance (rotatePerSecondVariance);
  25443. }
  25444. DllExport void
  25445. ParticleEffect2D_SetBlendMode (Urho3D::ParticleEffect2D *_target, enum Urho3D::BlendMode blendMode)
  25446. {
  25447. _target->SetBlendMode (blendMode);
  25448. }
  25449. DllExport void
  25450. ParticleEffect2D_SetRotationStart (Urho3D::ParticleEffect2D *_target, float rotationStart)
  25451. {
  25452. _target->SetRotationStart (rotationStart);
  25453. }
  25454. DllExport void
  25455. ParticleEffect2D_SetRotationStartVariance (Urho3D::ParticleEffect2D *_target, float rotationStartVariance)
  25456. {
  25457. _target->SetRotationStartVariance (rotationStartVariance);
  25458. }
  25459. DllExport void
  25460. ParticleEffect2D_SetRotationEnd (Urho3D::ParticleEffect2D *_target, float rotationEnd)
  25461. {
  25462. _target->SetRotationEnd (rotationEnd);
  25463. }
  25464. DllExport void
  25465. ParticleEffect2D_SetRotationEndVariance (Urho3D::ParticleEffect2D *_target, float rotationEndVariance)
  25466. {
  25467. _target->SetRotationEndVariance (rotationEndVariance);
  25468. }
  25469. DllExport Urho3D::ParticleEffect2D *
  25470. ParticleEffect2D_Clone (Urho3D::ParticleEffect2D *_target, const char * cloneName)
  25471. {
  25472. auto copy = _target->Clone (Urho3D::String(cloneName));
  25473. auto plain = copy.Get();
  25474. copy.Detach();
  25475. delete copy;
  25476. return plain;
  25477. }
  25478. DllExport Urho3D::Sprite2D *
  25479. ParticleEffect2D_GetSprite (Urho3D::ParticleEffect2D *_target)
  25480. {
  25481. return _target->GetSprite ();
  25482. }
  25483. DllExport Interop::Vector2
  25484. ParticleEffect2D_GetSourcePositionVariance (Urho3D::ParticleEffect2D *_target)
  25485. {
  25486. return *((Interop::Vector2 *) &(_target->GetSourcePositionVariance ()));
  25487. }
  25488. DllExport float
  25489. ParticleEffect2D_GetSpeed (Urho3D::ParticleEffect2D *_target)
  25490. {
  25491. return _target->GetSpeed ();
  25492. }
  25493. DllExport float
  25494. ParticleEffect2D_GetSpeedVariance (Urho3D::ParticleEffect2D *_target)
  25495. {
  25496. return _target->GetSpeedVariance ();
  25497. }
  25498. DllExport float
  25499. ParticleEffect2D_GetParticleLifeSpan (Urho3D::ParticleEffect2D *_target)
  25500. {
  25501. return _target->GetParticleLifeSpan ();
  25502. }
  25503. DllExport float
  25504. ParticleEffect2D_GetParticleLifespanVariance (Urho3D::ParticleEffect2D *_target)
  25505. {
  25506. return _target->GetParticleLifespanVariance ();
  25507. }
  25508. DllExport float
  25509. ParticleEffect2D_GetAngle (Urho3D::ParticleEffect2D *_target)
  25510. {
  25511. return _target->GetAngle ();
  25512. }
  25513. DllExport float
  25514. ParticleEffect2D_GetAngleVariance (Urho3D::ParticleEffect2D *_target)
  25515. {
  25516. return _target->GetAngleVariance ();
  25517. }
  25518. DllExport Interop::Vector2
  25519. ParticleEffect2D_GetGravity (Urho3D::ParticleEffect2D *_target)
  25520. {
  25521. return *((Interop::Vector2 *) &(_target->GetGravity ()));
  25522. }
  25523. DllExport float
  25524. ParticleEffect2D_GetRadialAcceleration (Urho3D::ParticleEffect2D *_target)
  25525. {
  25526. return _target->GetRadialAcceleration ();
  25527. }
  25528. DllExport float
  25529. ParticleEffect2D_GetTangentialAcceleration (Urho3D::ParticleEffect2D *_target)
  25530. {
  25531. return _target->GetTangentialAcceleration ();
  25532. }
  25533. DllExport float
  25534. ParticleEffect2D_GetRadialAccelVariance (Urho3D::ParticleEffect2D *_target)
  25535. {
  25536. return _target->GetRadialAccelVariance ();
  25537. }
  25538. DllExport float
  25539. ParticleEffect2D_GetTangentialAccelVariance (Urho3D::ParticleEffect2D *_target)
  25540. {
  25541. return _target->GetTangentialAccelVariance ();
  25542. }
  25543. DllExport Interop::Color
  25544. ParticleEffect2D_GetStartColor (Urho3D::ParticleEffect2D *_target)
  25545. {
  25546. return *((Interop::Color *) &(_target->GetStartColor ()));
  25547. }
  25548. DllExport Interop::Color
  25549. ParticleEffect2D_GetStartColorVariance (Urho3D::ParticleEffect2D *_target)
  25550. {
  25551. return *((Interop::Color *) &(_target->GetStartColorVariance ()));
  25552. }
  25553. DllExport Interop::Color
  25554. ParticleEffect2D_GetFinishColor (Urho3D::ParticleEffect2D *_target)
  25555. {
  25556. return *((Interop::Color *) &(_target->GetFinishColor ()));
  25557. }
  25558. DllExport Interop::Color
  25559. ParticleEffect2D_GetFinishColorVariance (Urho3D::ParticleEffect2D *_target)
  25560. {
  25561. return *((Interop::Color *) &(_target->GetFinishColorVariance ()));
  25562. }
  25563. DllExport int
  25564. ParticleEffect2D_GetMaxParticles (Urho3D::ParticleEffect2D *_target)
  25565. {
  25566. return _target->GetMaxParticles ();
  25567. }
  25568. DllExport float
  25569. ParticleEffect2D_GetStartParticleSize (Urho3D::ParticleEffect2D *_target)
  25570. {
  25571. return _target->GetStartParticleSize ();
  25572. }
  25573. DllExport float
  25574. ParticleEffect2D_GetStartParticleSizeVariance (Urho3D::ParticleEffect2D *_target)
  25575. {
  25576. return _target->GetStartParticleSizeVariance ();
  25577. }
  25578. DllExport float
  25579. ParticleEffect2D_GetFinishParticleSize (Urho3D::ParticleEffect2D *_target)
  25580. {
  25581. return _target->GetFinishParticleSize ();
  25582. }
  25583. DllExport float
  25584. ParticleEffect2D_GetFinishParticleSizeVariance (Urho3D::ParticleEffect2D *_target)
  25585. {
  25586. return _target->GetFinishParticleSizeVariance ();
  25587. }
  25588. DllExport float
  25589. ParticleEffect2D_GetDuration (Urho3D::ParticleEffect2D *_target)
  25590. {
  25591. return _target->GetDuration ();
  25592. }
  25593. DllExport enum Urho3D::EmitterType2D
  25594. ParticleEffect2D_GetEmitterType (Urho3D::ParticleEffect2D *_target)
  25595. {
  25596. return _target->GetEmitterType ();
  25597. }
  25598. DllExport float
  25599. ParticleEffect2D_GetMaxRadius (Urho3D::ParticleEffect2D *_target)
  25600. {
  25601. return _target->GetMaxRadius ();
  25602. }
  25603. DllExport float
  25604. ParticleEffect2D_GetMaxRadiusVariance (Urho3D::ParticleEffect2D *_target)
  25605. {
  25606. return _target->GetMaxRadiusVariance ();
  25607. }
  25608. DllExport float
  25609. ParticleEffect2D_GetMinRadius (Urho3D::ParticleEffect2D *_target)
  25610. {
  25611. return _target->GetMinRadius ();
  25612. }
  25613. DllExport float
  25614. ParticleEffect2D_GetMinRadiusVariance (Urho3D::ParticleEffect2D *_target)
  25615. {
  25616. return _target->GetMinRadiusVariance ();
  25617. }
  25618. DllExport float
  25619. ParticleEffect2D_GetRotatePerSecond (Urho3D::ParticleEffect2D *_target)
  25620. {
  25621. return _target->GetRotatePerSecond ();
  25622. }
  25623. DllExport float
  25624. ParticleEffect2D_GetRotatePerSecondVariance (Urho3D::ParticleEffect2D *_target)
  25625. {
  25626. return _target->GetRotatePerSecondVariance ();
  25627. }
  25628. DllExport enum Urho3D::BlendMode
  25629. ParticleEffect2D_GetBlendMode (Urho3D::ParticleEffect2D *_target)
  25630. {
  25631. return _target->GetBlendMode ();
  25632. }
  25633. DllExport float
  25634. ParticleEffect2D_GetRotationStart (Urho3D::ParticleEffect2D *_target)
  25635. {
  25636. return _target->GetRotationStart ();
  25637. }
  25638. DllExport float
  25639. ParticleEffect2D_GetRotationStartVariance (Urho3D::ParticleEffect2D *_target)
  25640. {
  25641. return _target->GetRotationStartVariance ();
  25642. }
  25643. DllExport float
  25644. ParticleEffect2D_GetRotationEnd (Urho3D::ParticleEffect2D *_target)
  25645. {
  25646. return _target->GetRotationEnd ();
  25647. }
  25648. DllExport float
  25649. ParticleEffect2D_GetRotationEndVariance (Urho3D::ParticleEffect2D *_target)
  25650. {
  25651. return _target->GetRotationEndVariance ();
  25652. }
  25653. DllExport int
  25654. ParticleEmitter2D_GetType (Urho3D::ParticleEmitter2D *_target)
  25655. {
  25656. return (_target->GetType ()).Value ();
  25657. }
  25658. DllExport const char *
  25659. ParticleEmitter2D_GetTypeName (Urho3D::ParticleEmitter2D *_target)
  25660. {
  25661. return stringdup((_target->GetTypeName ()).CString ());
  25662. }
  25663. DllExport int
  25664. ParticleEmitter2D_GetTypeStatic ()
  25665. {
  25666. return (ParticleEmitter2D::GetTypeStatic ()).Value ();
  25667. }
  25668. DllExport const char *
  25669. ParticleEmitter2D_GetTypeNameStatic ()
  25670. {
  25671. return stringdup((ParticleEmitter2D::GetTypeNameStatic ()).CString ());
  25672. }
  25673. DllExport void *
  25674. ParticleEmitter2D_ParticleEmitter2D (Urho3D::Context * context)
  25675. {
  25676. return WeakPtr<ParticleEmitter2D>(new ParticleEmitter2D(context));
  25677. }
  25678. DllExport void
  25679. ParticleEmitter2D_RegisterObject (Urho3D::Context * context)
  25680. {
  25681. ParticleEmitter2D::RegisterObject (context);
  25682. }
  25683. DllExport void
  25684. ParticleEmitter2D_OnSetEnabled (Urho3D::ParticleEmitter2D *_target)
  25685. {
  25686. _target->OnSetEnabled ();
  25687. }
  25688. DllExport void
  25689. ParticleEmitter2D_SetEffect (Urho3D::ParticleEmitter2D *_target, Urho3D::ParticleEffect2D * effect)
  25690. {
  25691. _target->SetEffect (effect);
  25692. }
  25693. DllExport void
  25694. ParticleEmitter2D_SetSprite (Urho3D::ParticleEmitter2D *_target, Urho3D::Sprite2D * sprite)
  25695. {
  25696. _target->SetSprite (sprite);
  25697. }
  25698. DllExport void
  25699. ParticleEmitter2D_SetBlendMode (Urho3D::ParticleEmitter2D *_target, enum Urho3D::BlendMode blendMode)
  25700. {
  25701. _target->SetBlendMode (blendMode);
  25702. }
  25703. DllExport void
  25704. ParticleEmitter2D_SetMaxParticles (Urho3D::ParticleEmitter2D *_target, unsigned int maxParticles)
  25705. {
  25706. _target->SetMaxParticles (maxParticles);
  25707. }
  25708. DllExport void
  25709. ParticleEmitter2D_SetEmitting (Urho3D::ParticleEmitter2D *_target, bool enable)
  25710. {
  25711. _target->SetEmitting (enable);
  25712. }
  25713. DllExport Urho3D::ParticleEffect2D *
  25714. ParticleEmitter2D_GetEffect (Urho3D::ParticleEmitter2D *_target)
  25715. {
  25716. return _target->GetEffect ();
  25717. }
  25718. DllExport Urho3D::Sprite2D *
  25719. ParticleEmitter2D_GetSprite (Urho3D::ParticleEmitter2D *_target)
  25720. {
  25721. return _target->GetSprite ();
  25722. }
  25723. DllExport enum Urho3D::BlendMode
  25724. ParticleEmitter2D_GetBlendMode (Urho3D::ParticleEmitter2D *_target)
  25725. {
  25726. return _target->GetBlendMode ();
  25727. }
  25728. DllExport unsigned int
  25729. ParticleEmitter2D_GetMaxParticles (Urho3D::ParticleEmitter2D *_target)
  25730. {
  25731. return _target->GetMaxParticles ();
  25732. }
  25733. DllExport Urho3D::ResourceRef
  25734. ParticleEmitter2D_GetParticleEffectAttr (Urho3D::ParticleEmitter2D *_target)
  25735. {
  25736. return _target->GetParticleEffectAttr ();
  25737. }
  25738. DllExport Urho3D::ResourceRef
  25739. ParticleEmitter2D_GetSpriteAttr (Urho3D::ParticleEmitter2D *_target)
  25740. {
  25741. return _target->GetSpriteAttr ();
  25742. }
  25743. DllExport int
  25744. ParticleEmitter2D_IsEmitting (Urho3D::ParticleEmitter2D *_target)
  25745. {
  25746. return _target->IsEmitting ();
  25747. }
  25748. DllExport int
  25749. PhysicsWorld2D_GetType (Urho3D::PhysicsWorld2D *_target)
  25750. {
  25751. return (_target->GetType ()).Value ();
  25752. }
  25753. DllExport const char *
  25754. PhysicsWorld2D_GetTypeName (Urho3D::PhysicsWorld2D *_target)
  25755. {
  25756. return stringdup((_target->GetTypeName ()).CString ());
  25757. }
  25758. DllExport int
  25759. PhysicsWorld2D_GetTypeStatic ()
  25760. {
  25761. return (PhysicsWorld2D::GetTypeStatic ()).Value ();
  25762. }
  25763. DllExport const char *
  25764. PhysicsWorld2D_GetTypeNameStatic ()
  25765. {
  25766. return stringdup((PhysicsWorld2D::GetTypeNameStatic ()).CString ());
  25767. }
  25768. DllExport void *
  25769. PhysicsWorld2D_PhysicsWorld2D (Urho3D::Context * context)
  25770. {
  25771. return WeakPtr<PhysicsWorld2D>(new PhysicsWorld2D(context));
  25772. }
  25773. DllExport void
  25774. PhysicsWorld2D_RegisterObject (Urho3D::Context * context)
  25775. {
  25776. PhysicsWorld2D::RegisterObject (context);
  25777. }
  25778. DllExport void
  25779. PhysicsWorld2D_DrawDebugGeometry (Urho3D::PhysicsWorld2D *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  25780. {
  25781. _target->DrawDebugGeometry (debug, depthTest);
  25782. }
  25783. DllExport void
  25784. PhysicsWorld2D_Update (Urho3D::PhysicsWorld2D *_target, float timeStep)
  25785. {
  25786. _target->Update (timeStep);
  25787. }
  25788. DllExport void
  25789. PhysicsWorld2D_DrawDebugGeometry0 (Urho3D::PhysicsWorld2D *_target)
  25790. {
  25791. _target->DrawDebugGeometry ();
  25792. }
  25793. DllExport void
  25794. PhysicsWorld2D_SetUpdateEnabled (Urho3D::PhysicsWorld2D *_target, bool enable)
  25795. {
  25796. _target->SetUpdateEnabled (enable);
  25797. }
  25798. DllExport void
  25799. PhysicsWorld2D_SetDrawShape (Urho3D::PhysicsWorld2D *_target, bool drawShape)
  25800. {
  25801. _target->SetDrawShape (drawShape);
  25802. }
  25803. DllExport void
  25804. PhysicsWorld2D_SetDrawJoint (Urho3D::PhysicsWorld2D *_target, bool drawJoint)
  25805. {
  25806. _target->SetDrawJoint (drawJoint);
  25807. }
  25808. DllExport void
  25809. PhysicsWorld2D_SetDrawAabb (Urho3D::PhysicsWorld2D *_target, bool drawAabb)
  25810. {
  25811. _target->SetDrawAabb (drawAabb);
  25812. }
  25813. DllExport void
  25814. PhysicsWorld2D_SetDrawPair (Urho3D::PhysicsWorld2D *_target, bool drawPair)
  25815. {
  25816. _target->SetDrawPair (drawPair);
  25817. }
  25818. DllExport void
  25819. PhysicsWorld2D_SetDrawCenterOfMass (Urho3D::PhysicsWorld2D *_target, bool drawCenterOfMass)
  25820. {
  25821. _target->SetDrawCenterOfMass (drawCenterOfMass);
  25822. }
  25823. DllExport void
  25824. PhysicsWorld2D_SetAllowSleeping (Urho3D::PhysicsWorld2D *_target, bool enable)
  25825. {
  25826. _target->SetAllowSleeping (enable);
  25827. }
  25828. DllExport void
  25829. PhysicsWorld2D_SetWarmStarting (Urho3D::PhysicsWorld2D *_target, bool enable)
  25830. {
  25831. _target->SetWarmStarting (enable);
  25832. }
  25833. DllExport void
  25834. PhysicsWorld2D_SetContinuousPhysics (Urho3D::PhysicsWorld2D *_target, bool enable)
  25835. {
  25836. _target->SetContinuousPhysics (enable);
  25837. }
  25838. DllExport void
  25839. PhysicsWorld2D_SetSubStepping (Urho3D::PhysicsWorld2D *_target, bool enable)
  25840. {
  25841. _target->SetSubStepping (enable);
  25842. }
  25843. DllExport void
  25844. PhysicsWorld2D_SetGravity (Urho3D::PhysicsWorld2D *_target, const class Urho3D::Vector2 & gravity)
  25845. {
  25846. _target->SetGravity (gravity);
  25847. }
  25848. DllExport void
  25849. PhysicsWorld2D_SetAutoClearForces (Urho3D::PhysicsWorld2D *_target, bool enable)
  25850. {
  25851. _target->SetAutoClearForces (enable);
  25852. }
  25853. DllExport void
  25854. PhysicsWorld2D_SetVelocityIterations (Urho3D::PhysicsWorld2D *_target, int velocityIterations)
  25855. {
  25856. _target->SetVelocityIterations (velocityIterations);
  25857. }
  25858. DllExport void
  25859. PhysicsWorld2D_SetPositionIterations (Urho3D::PhysicsWorld2D *_target, int positionIterations)
  25860. {
  25861. _target->SetPositionIterations (positionIterations);
  25862. }
  25863. DllExport void
  25864. PhysicsWorld2D_AddRigidBody (Urho3D::PhysicsWorld2D *_target, Urho3D::RigidBody2D * rigidBody)
  25865. {
  25866. _target->AddRigidBody (rigidBody);
  25867. }
  25868. DllExport void
  25869. PhysicsWorld2D_RemoveRigidBody (Urho3D::PhysicsWorld2D *_target, Urho3D::RigidBody2D * rigidBody)
  25870. {
  25871. _target->RemoveRigidBody (rigidBody);
  25872. }
  25873. DllExport Urho3D::RigidBody2D *
  25874. PhysicsWorld2D_GetRigidBody (Urho3D::PhysicsWorld2D *_target, const class Urho3D::Vector2 & point, unsigned int collisionMask)
  25875. {
  25876. return _target->GetRigidBody (point, collisionMask);
  25877. }
  25878. DllExport Urho3D::RigidBody2D *
  25879. PhysicsWorld2D_GetRigidBody1 (Urho3D::PhysicsWorld2D *_target, int screenX, int screenY, unsigned int collisionMask)
  25880. {
  25881. return _target->GetRigidBody (screenX, screenY, collisionMask);
  25882. }
  25883. DllExport int
  25884. PhysicsWorld2D_IsUpdateEnabled (Urho3D::PhysicsWorld2D *_target)
  25885. {
  25886. return _target->IsUpdateEnabled ();
  25887. }
  25888. DllExport int
  25889. PhysicsWorld2D_GetDrawShape (Urho3D::PhysicsWorld2D *_target)
  25890. {
  25891. return _target->GetDrawShape ();
  25892. }
  25893. DllExport int
  25894. PhysicsWorld2D_GetDrawJoint (Urho3D::PhysicsWorld2D *_target)
  25895. {
  25896. return _target->GetDrawJoint ();
  25897. }
  25898. DllExport int
  25899. PhysicsWorld2D_GetDrawAabb (Urho3D::PhysicsWorld2D *_target)
  25900. {
  25901. return _target->GetDrawAabb ();
  25902. }
  25903. DllExport int
  25904. PhysicsWorld2D_GetDrawPair (Urho3D::PhysicsWorld2D *_target)
  25905. {
  25906. return _target->GetDrawPair ();
  25907. }
  25908. DllExport int
  25909. PhysicsWorld2D_GetDrawCenterOfMass (Urho3D::PhysicsWorld2D *_target)
  25910. {
  25911. return _target->GetDrawCenterOfMass ();
  25912. }
  25913. DllExport int
  25914. PhysicsWorld2D_GetAllowSleeping (Urho3D::PhysicsWorld2D *_target)
  25915. {
  25916. return _target->GetAllowSleeping ();
  25917. }
  25918. DllExport int
  25919. PhysicsWorld2D_GetWarmStarting (Urho3D::PhysicsWorld2D *_target)
  25920. {
  25921. return _target->GetWarmStarting ();
  25922. }
  25923. DllExport int
  25924. PhysicsWorld2D_GetContinuousPhysics (Urho3D::PhysicsWorld2D *_target)
  25925. {
  25926. return _target->GetContinuousPhysics ();
  25927. }
  25928. DllExport int
  25929. PhysicsWorld2D_GetSubStepping (Urho3D::PhysicsWorld2D *_target)
  25930. {
  25931. return _target->GetSubStepping ();
  25932. }
  25933. DllExport int
  25934. PhysicsWorld2D_GetAutoClearForces (Urho3D::PhysicsWorld2D *_target)
  25935. {
  25936. return _target->GetAutoClearForces ();
  25937. }
  25938. DllExport Interop::Vector2
  25939. PhysicsWorld2D_GetGravity (Urho3D::PhysicsWorld2D *_target)
  25940. {
  25941. return *((Interop::Vector2 *) &(_target->GetGravity ()));
  25942. }
  25943. DllExport int
  25944. PhysicsWorld2D_GetVelocityIterations (Urho3D::PhysicsWorld2D *_target)
  25945. {
  25946. return _target->GetVelocityIterations ();
  25947. }
  25948. DllExport int
  25949. PhysicsWorld2D_GetPositionIterations (Urho3D::PhysicsWorld2D *_target)
  25950. {
  25951. return _target->GetPositionIterations ();
  25952. }
  25953. DllExport void
  25954. PhysicsWorld2D_SetApplyingTransforms (Urho3D::PhysicsWorld2D *_target, bool enable)
  25955. {
  25956. _target->SetApplyingTransforms (enable);
  25957. }
  25958. DllExport int
  25959. PhysicsWorld2D_IsApplyingTransforms (Urho3D::PhysicsWorld2D *_target)
  25960. {
  25961. return _target->IsApplyingTransforms ();
  25962. }
  25963. DllExport int
  25964. Renderer2D_GetType (Urho3D::Renderer2D *_target)
  25965. {
  25966. return (_target->GetType ()).Value ();
  25967. }
  25968. DllExport const char *
  25969. Renderer2D_GetTypeName (Urho3D::Renderer2D *_target)
  25970. {
  25971. return stringdup((_target->GetTypeName ()).CString ());
  25972. }
  25973. DllExport int
  25974. Renderer2D_GetTypeStatic ()
  25975. {
  25976. return (Renderer2D::GetTypeStatic ()).Value ();
  25977. }
  25978. DllExport const char *
  25979. Renderer2D_GetTypeNameStatic ()
  25980. {
  25981. return stringdup((Renderer2D::GetTypeNameStatic ()).CString ());
  25982. }
  25983. DllExport void *
  25984. Renderer2D_Renderer2D (Urho3D::Context * context)
  25985. {
  25986. return WeakPtr<Renderer2D>(new Renderer2D(context));
  25987. }
  25988. DllExport void
  25989. Renderer2D_RegisterObject (Urho3D::Context * context)
  25990. {
  25991. Renderer2D::RegisterObject (context);
  25992. }
  25993. DllExport enum Urho3D::UpdateGeometryType
  25994. Renderer2D_GetUpdateGeometryType (Urho3D::Renderer2D *_target)
  25995. {
  25996. return _target->GetUpdateGeometryType ();
  25997. }
  25998. DllExport void
  25999. Renderer2D_AddDrawable (Urho3D::Renderer2D *_target, Urho3D::Drawable2D * drawable)
  26000. {
  26001. _target->AddDrawable (drawable);
  26002. }
  26003. DllExport void
  26004. Renderer2D_RemoveDrawable (Urho3D::Renderer2D *_target, Urho3D::Drawable2D * drawable)
  26005. {
  26006. _target->RemoveDrawable (drawable);
  26007. }
  26008. DllExport Urho3D::Material *
  26009. Renderer2D_GetMaterial (Urho3D::Renderer2D *_target, Urho3D::Texture2D * texture, enum Urho3D::BlendMode blendMode)
  26010. {
  26011. return _target->GetMaterial (texture, blendMode);
  26012. }
  26013. DllExport int
  26014. Renderer2D_CheckVisibility (Urho3D::Renderer2D *_target, Urho3D::Drawable2D * drawable)
  26015. {
  26016. return _target->CheckVisibility (drawable);
  26017. }
  26018. DllExport int
  26019. RigidBody2D_GetType (Urho3D::RigidBody2D *_target)
  26020. {
  26021. return (_target->GetType ()).Value ();
  26022. }
  26023. DllExport const char *
  26024. RigidBody2D_GetTypeName (Urho3D::RigidBody2D *_target)
  26025. {
  26026. return stringdup((_target->GetTypeName ()).CString ());
  26027. }
  26028. DllExport int
  26029. RigidBody2D_GetTypeStatic ()
  26030. {
  26031. return (RigidBody2D::GetTypeStatic ()).Value ();
  26032. }
  26033. DllExport const char *
  26034. RigidBody2D_GetTypeNameStatic ()
  26035. {
  26036. return stringdup((RigidBody2D::GetTypeNameStatic ()).CString ());
  26037. }
  26038. DllExport void *
  26039. RigidBody2D_RigidBody2D (Urho3D::Context * context)
  26040. {
  26041. return WeakPtr<RigidBody2D>(new RigidBody2D(context));
  26042. }
  26043. DllExport void
  26044. RigidBody2D_RegisterObject (Urho3D::Context * context)
  26045. {
  26046. RigidBody2D::RegisterObject (context);
  26047. }
  26048. DllExport void
  26049. RigidBody2D_OnSetEnabled (Urho3D::RigidBody2D *_target)
  26050. {
  26051. _target->OnSetEnabled ();
  26052. }
  26053. DllExport void
  26054. RigidBody2D_SetBodyType (Urho3D::RigidBody2D *_target, enum Urho3D::BodyType2D bodyType)
  26055. {
  26056. _target->SetBodyType (bodyType);
  26057. }
  26058. DllExport void
  26059. RigidBody2D_SetMass (Urho3D::RigidBody2D *_target, float mass)
  26060. {
  26061. _target->SetMass (mass);
  26062. }
  26063. DllExport void
  26064. RigidBody2D_SetInertia (Urho3D::RigidBody2D *_target, float inertia)
  26065. {
  26066. _target->SetInertia (inertia);
  26067. }
  26068. DllExport void
  26069. RigidBody2D_SetMassCenter (Urho3D::RigidBody2D *_target, const class Urho3D::Vector2 & center)
  26070. {
  26071. _target->SetMassCenter (center);
  26072. }
  26073. DllExport void
  26074. RigidBody2D_SetUseFixtureMass (Urho3D::RigidBody2D *_target, bool useFixtureMass)
  26075. {
  26076. _target->SetUseFixtureMass (useFixtureMass);
  26077. }
  26078. DllExport void
  26079. RigidBody2D_SetLinearDamping (Urho3D::RigidBody2D *_target, float linearDamping)
  26080. {
  26081. _target->SetLinearDamping (linearDamping);
  26082. }
  26083. DllExport void
  26084. RigidBody2D_SetAngularDamping (Urho3D::RigidBody2D *_target, float angularDamping)
  26085. {
  26086. _target->SetAngularDamping (angularDamping);
  26087. }
  26088. DllExport void
  26089. RigidBody2D_SetAllowSleep (Urho3D::RigidBody2D *_target, bool allowSleep)
  26090. {
  26091. _target->SetAllowSleep (allowSleep);
  26092. }
  26093. DllExport void
  26094. RigidBody2D_SetFixedRotation (Urho3D::RigidBody2D *_target, bool fixedRotation)
  26095. {
  26096. _target->SetFixedRotation (fixedRotation);
  26097. }
  26098. DllExport void
  26099. RigidBody2D_SetBullet (Urho3D::RigidBody2D *_target, bool bullet)
  26100. {
  26101. _target->SetBullet (bullet);
  26102. }
  26103. DllExport void
  26104. RigidBody2D_SetGravityScale (Urho3D::RigidBody2D *_target, float gravityScale)
  26105. {
  26106. _target->SetGravityScale (gravityScale);
  26107. }
  26108. DllExport void
  26109. RigidBody2D_SetAwake (Urho3D::RigidBody2D *_target, bool awake)
  26110. {
  26111. _target->SetAwake (awake);
  26112. }
  26113. DllExport void
  26114. RigidBody2D_SetLinearVelocity (Urho3D::RigidBody2D *_target, const class Urho3D::Vector2 & linearVelocity)
  26115. {
  26116. _target->SetLinearVelocity (linearVelocity);
  26117. }
  26118. DllExport void
  26119. RigidBody2D_SetAngularVelocity (Urho3D::RigidBody2D *_target, float angularVelocity)
  26120. {
  26121. _target->SetAngularVelocity (angularVelocity);
  26122. }
  26123. DllExport void
  26124. RigidBody2D_ApplyForce (Urho3D::RigidBody2D *_target, const class Urho3D::Vector2 & force, const class Urho3D::Vector2 & point, bool wake)
  26125. {
  26126. _target->ApplyForce (force, point, wake);
  26127. }
  26128. DllExport void
  26129. RigidBody2D_ApplyForceToCenter (Urho3D::RigidBody2D *_target, const class Urho3D::Vector2 & force, bool wake)
  26130. {
  26131. _target->ApplyForceToCenter (force, wake);
  26132. }
  26133. DllExport void
  26134. RigidBody2D_ApplyTorque (Urho3D::RigidBody2D *_target, float torque, bool wake)
  26135. {
  26136. _target->ApplyTorque (torque, wake);
  26137. }
  26138. DllExport void
  26139. RigidBody2D_ApplyLinearImpulse (Urho3D::RigidBody2D *_target, const class Urho3D::Vector2 & impulse, const class Urho3D::Vector2 & point, bool wake)
  26140. {
  26141. _target->ApplyLinearImpulse (impulse, point, wake);
  26142. }
  26143. DllExport void
  26144. RigidBody2D_ApplyLinearImpulseToCenter (Urho3D::RigidBody2D *_target, const class Urho3D::Vector2 & impulse, bool wake)
  26145. {
  26146. _target->ApplyLinearImpulseToCenter (impulse, wake);
  26147. }
  26148. DllExport void
  26149. RigidBody2D_ApplyAngularImpulse (Urho3D::RigidBody2D *_target, float impulse, bool wake)
  26150. {
  26151. _target->ApplyAngularImpulse (impulse, wake);
  26152. }
  26153. DllExport void
  26154. RigidBody2D_CreateBody (Urho3D::RigidBody2D *_target)
  26155. {
  26156. _target->CreateBody ();
  26157. }
  26158. DllExport void
  26159. RigidBody2D_ReleaseBody (Urho3D::RigidBody2D *_target)
  26160. {
  26161. _target->ReleaseBody ();
  26162. }
  26163. DllExport void
  26164. RigidBody2D_ApplyWorldTransform (Urho3D::RigidBody2D *_target)
  26165. {
  26166. _target->ApplyWorldTransform ();
  26167. }
  26168. DllExport void
  26169. RigidBody2D_ApplyWorldTransform0 (Urho3D::RigidBody2D *_target, const class Urho3D::Vector3 & newWorldPosition, const class Urho3D::Quaternion & newWorldRotation)
  26170. {
  26171. _target->ApplyWorldTransform (newWorldPosition, newWorldRotation);
  26172. }
  26173. DllExport void
  26174. RigidBody2D_AddCollisionShape2D (Urho3D::RigidBody2D *_target, Urho3D::CollisionShape2D * collisionShape)
  26175. {
  26176. _target->AddCollisionShape2D (collisionShape);
  26177. }
  26178. DllExport void
  26179. RigidBody2D_RemoveCollisionShape2D (Urho3D::RigidBody2D *_target, Urho3D::CollisionShape2D * collisionShape)
  26180. {
  26181. _target->RemoveCollisionShape2D (collisionShape);
  26182. }
  26183. DllExport void
  26184. RigidBody2D_AddConstraint2D (Urho3D::RigidBody2D *_target, Urho3D::Constraint2D * constraint)
  26185. {
  26186. _target->AddConstraint2D (constraint);
  26187. }
  26188. DllExport void
  26189. RigidBody2D_RemoveConstraint2D (Urho3D::RigidBody2D *_target, Urho3D::Constraint2D * constraint)
  26190. {
  26191. _target->RemoveConstraint2D (constraint);
  26192. }
  26193. DllExport enum Urho3D::BodyType2D
  26194. RigidBody2D_GetBodyType (Urho3D::RigidBody2D *_target)
  26195. {
  26196. return _target->GetBodyType ();
  26197. }
  26198. DllExport float
  26199. RigidBody2D_GetMass (Urho3D::RigidBody2D *_target)
  26200. {
  26201. return _target->GetMass ();
  26202. }
  26203. DllExport float
  26204. RigidBody2D_GetInertia (Urho3D::RigidBody2D *_target)
  26205. {
  26206. return _target->GetInertia ();
  26207. }
  26208. DllExport Interop::Vector2
  26209. RigidBody2D_GetMassCenter (Urho3D::RigidBody2D *_target)
  26210. {
  26211. return *((Interop::Vector2 *) &(_target->GetMassCenter ()));
  26212. }
  26213. DllExport int
  26214. RigidBody2D_GetUseFixtureMass (Urho3D::RigidBody2D *_target)
  26215. {
  26216. return _target->GetUseFixtureMass ();
  26217. }
  26218. DllExport float
  26219. RigidBody2D_GetLinearDamping (Urho3D::RigidBody2D *_target)
  26220. {
  26221. return _target->GetLinearDamping ();
  26222. }
  26223. DllExport float
  26224. RigidBody2D_GetAngularDamping (Urho3D::RigidBody2D *_target)
  26225. {
  26226. return _target->GetAngularDamping ();
  26227. }
  26228. DllExport int
  26229. RigidBody2D_IsAllowSleep (Urho3D::RigidBody2D *_target)
  26230. {
  26231. return _target->IsAllowSleep ();
  26232. }
  26233. DllExport int
  26234. RigidBody2D_IsFixedRotation (Urho3D::RigidBody2D *_target)
  26235. {
  26236. return _target->IsFixedRotation ();
  26237. }
  26238. DllExport int
  26239. RigidBody2D_IsBullet (Urho3D::RigidBody2D *_target)
  26240. {
  26241. return _target->IsBullet ();
  26242. }
  26243. DllExport float
  26244. RigidBody2D_GetGravityScale (Urho3D::RigidBody2D *_target)
  26245. {
  26246. return _target->GetGravityScale ();
  26247. }
  26248. DllExport int
  26249. RigidBody2D_IsAwake (Urho3D::RigidBody2D *_target)
  26250. {
  26251. return _target->IsAwake ();
  26252. }
  26253. DllExport Interop::Vector2
  26254. RigidBody2D_GetLinearVelocity (Urho3D::RigidBody2D *_target)
  26255. {
  26256. return *((Interop::Vector2 *) &(_target->GetLinearVelocity ()));
  26257. }
  26258. DllExport float
  26259. RigidBody2D_GetAngularVelocity (Urho3D::RigidBody2D *_target)
  26260. {
  26261. return _target->GetAngularVelocity ();
  26262. }
  26263. DllExport int
  26264. SpriteSheet2D_GetType (Urho3D::SpriteSheet2D *_target)
  26265. {
  26266. return (_target->GetType ()).Value ();
  26267. }
  26268. DllExport const char *
  26269. SpriteSheet2D_GetTypeName (Urho3D::SpriteSheet2D *_target)
  26270. {
  26271. return stringdup((_target->GetTypeName ()).CString ());
  26272. }
  26273. DllExport int
  26274. SpriteSheet2D_GetTypeStatic ()
  26275. {
  26276. return (SpriteSheet2D::GetTypeStatic ()).Value ();
  26277. }
  26278. DllExport const char *
  26279. SpriteSheet2D_GetTypeNameStatic ()
  26280. {
  26281. return stringdup((SpriteSheet2D::GetTypeNameStatic ()).CString ());
  26282. }
  26283. DllExport void *
  26284. SpriteSheet2D_SpriteSheet2D (Urho3D::Context * context)
  26285. {
  26286. return WeakPtr<SpriteSheet2D>(new SpriteSheet2D(context));
  26287. }
  26288. DllExport void
  26289. SpriteSheet2D_RegisterObject (Urho3D::Context * context)
  26290. {
  26291. SpriteSheet2D::RegisterObject (context);
  26292. }
  26293. DllExport int
  26294. SpriteSheet2D_BeginLoad_File (Urho3D::SpriteSheet2D *_target, File * source)
  26295. {
  26296. return _target->BeginLoad (*source);
  26297. }
  26298. DllExport int
  26299. SpriteSheet2D_BeginLoad_MemoryBuffer (Urho3D::SpriteSheet2D *_target, MemoryBuffer * source)
  26300. {
  26301. return _target->BeginLoad (*source);
  26302. }
  26303. DllExport int
  26304. SpriteSheet2D_EndLoad (Urho3D::SpriteSheet2D *_target)
  26305. {
  26306. return _target->EndLoad ();
  26307. }
  26308. DllExport void
  26309. SpriteSheet2D_SetTexture (Urho3D::SpriteSheet2D *_target, Urho3D::Texture2D * texture)
  26310. {
  26311. _target->SetTexture (texture);
  26312. }
  26313. DllExport void
  26314. SpriteSheet2D_DefineSprite (Urho3D::SpriteSheet2D *_target, const char * name, const class Urho3D::IntRect & rectangle, const class Urho3D::Vector2 & hotSpot, const class Urho3D::IntVector2 & offset)
  26315. {
  26316. _target->DefineSprite (Urho3D::String(name), rectangle, hotSpot, offset);
  26317. }
  26318. DllExport Urho3D::Texture2D *
  26319. SpriteSheet2D_GetTexture (Urho3D::SpriteSheet2D *_target)
  26320. {
  26321. return _target->GetTexture ();
  26322. }
  26323. DllExport Urho3D::Sprite2D *
  26324. SpriteSheet2D_GetSprite (Urho3D::SpriteSheet2D *_target, const char * name)
  26325. {
  26326. return _target->GetSprite (Urho3D::String(name));
  26327. }
  26328. DllExport int
  26329. TileMap2D_GetType (Urho3D::TileMap2D *_target)
  26330. {
  26331. return (_target->GetType ()).Value ();
  26332. }
  26333. DllExport const char *
  26334. TileMap2D_GetTypeName (Urho3D::TileMap2D *_target)
  26335. {
  26336. return stringdup((_target->GetTypeName ()).CString ());
  26337. }
  26338. DllExport int
  26339. TileMap2D_GetTypeStatic ()
  26340. {
  26341. return (TileMap2D::GetTypeStatic ()).Value ();
  26342. }
  26343. DllExport const char *
  26344. TileMap2D_GetTypeNameStatic ()
  26345. {
  26346. return stringdup((TileMap2D::GetTypeNameStatic ()).CString ());
  26347. }
  26348. DllExport void *
  26349. TileMap2D_TileMap2D (Urho3D::Context * context)
  26350. {
  26351. return WeakPtr<TileMap2D>(new TileMap2D(context));
  26352. }
  26353. DllExport void
  26354. TileMap2D_RegisterObject (Urho3D::Context * context)
  26355. {
  26356. TileMap2D::RegisterObject (context);
  26357. }
  26358. DllExport void
  26359. TileMap2D_DrawDebugGeometry (Urho3D::TileMap2D *_target, Urho3D::DebugRenderer * debug, bool depthTest)
  26360. {
  26361. _target->DrawDebugGeometry (debug, depthTest);
  26362. }
  26363. DllExport void
  26364. TileMap2D_SetTmxFile (Urho3D::TileMap2D *_target, Urho3D::TmxFile2D * tmxFile)
  26365. {
  26366. _target->SetTmxFile (tmxFile);
  26367. }
  26368. DllExport void
  26369. TileMap2D_DrawDebugGeometry0 (Urho3D::TileMap2D *_target)
  26370. {
  26371. _target->DrawDebugGeometry ();
  26372. }
  26373. DllExport Urho3D::TmxFile2D *
  26374. TileMap2D_GetTmxFile (Urho3D::TileMap2D *_target)
  26375. {
  26376. return _target->GetTmxFile ();
  26377. }
  26378. DllExport Urho3D::TileMapInfo2D
  26379. TileMap2D_GetInfo (Urho3D::TileMap2D *_target)
  26380. {
  26381. return _target->GetInfo ();
  26382. }
  26383. DllExport unsigned int
  26384. TileMap2D_GetNumLayers (Urho3D::TileMap2D *_target)
  26385. {
  26386. return _target->GetNumLayers ();
  26387. }
  26388. DllExport Urho3D::TileMapLayer2D *
  26389. TileMap2D_GetLayer (Urho3D::TileMap2D *_target, unsigned int index)
  26390. {
  26391. return _target->GetLayer (index);
  26392. }
  26393. DllExport Interop::Vector2
  26394. TileMap2D_TileIndexToPosition (Urho3D::TileMap2D *_target, int x, int y)
  26395. {
  26396. return *((Interop::Vector2 *) &(_target->TileIndexToPosition (x, y)));
  26397. }
  26398. DllExport Urho3D::ResourceRef
  26399. TileMap2D_GetTmxFileAttr (Urho3D::TileMap2D *_target)
  26400. {
  26401. return _target->GetTmxFileAttr ();
  26402. }
  26403. }