LuaScriptAPI.dox 259 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099
  1. namespace Urho3D
  2. {
  3. /**
  4. \page LuaScriptAPI Lua scripting API
  5. \section LuaScriptAPI_TableOfContents Table of contents
  6. \ref LuaScriptAPI_ClassList "Class list"<br>
  7. \ref LuaScriptAPI_Classes "Classes"<br>
  8. \ref LuaScriptAPI_Enums "Enumerations"<br>
  9. \ref LuaScriptAPI_toluaFunctions "tolua functions"<br>
  10. \ref LuaScriptAPI_GlobalFunctions "Global functions"<br>
  11. \ref LuaScriptAPI_GlobalProperties "Global properties"<br>
  12. \ref LuaScriptAPI_GlobalConstants "Global constants"<br>
  13. \section LuaScriptAPI_ClassList Class list
  14. <a href="#Class_Animatable"><b>Animatable</b></a>
  15. <a href="#Class_AnimatedModel"><b>AnimatedModel</b></a>
  16. <a href="#Class_AnimatedSprite2D"><b>AnimatedSprite2D</b></a>
  17. <a href="#Class_Animation"><b>Animation</b></a>
  18. <a href="#Class_AnimationControl"><b>AnimationControl</b></a>
  19. <a href="#Class_AnimationController"><b>AnimationController</b></a>
  20. <a href="#Class_AnimationKeyFrame"><b>AnimationKeyFrame</b></a>
  21. <a href="#Class_AnimationSet2D"><b>AnimationSet2D</b></a>
  22. <a href="#Class_AnimationState"><b>AnimationState</b></a>
  23. <a href="#Class_AnimationTrack"><b>AnimationTrack</b></a>
  24. <a href="#Class_AnimationTriggerPoint"><b>AnimationTriggerPoint</b></a>
  25. <a href="#Class_Audio"><b>Audio</b></a>
  26. <a href="#Class_BiasParameters"><b>BiasParameters</b></a>
  27. <a href="#Class_Billboard"><b>Billboard</b></a>
  28. <a href="#Class_BillboardSet"><b>BillboardSet</b></a>
  29. <a href="#Class_Bone"><b>Bone</b></a>
  30. <a href="#Class_BorderImage"><b>BorderImage</b></a>
  31. <a href="#Class_BoundingBox"><b>BoundingBox</b></a>
  32. <a href="#Class_Button"><b>Button</b></a>
  33. <a href="#Class_Camera"><b>Camera</b></a>
  34. <a href="#Class_CascadeParameters"><b>CascadeParameters</b></a>
  35. <a href="#Class_CheckBox"><b>CheckBox</b></a>
  36. <a href="#Class_CollisionBox2D"><b>CollisionBox2D</b></a>
  37. <a href="#Class_CollisionChain2D"><b>CollisionChain2D</b></a>
  38. <a href="#Class_CollisionCircle2D"><b>CollisionCircle2D</b></a>
  39. <a href="#Class_CollisionEdge2D"><b>CollisionEdge2D</b></a>
  40. <a href="#Class_CollisionPolygon2D"><b>CollisionPolygon2D</b></a>
  41. <a href="#Class_CollisionShape"><b>CollisionShape</b></a>
  42. <a href="#Class_CollisionShape2D"><b>CollisionShape2D</b></a>
  43. <a href="#Class_Color"><b>Color</b></a>
  44. <a href="#Class_ColorFrame"><b>ColorFrame</b></a>
  45. <a href="#Class_Component"><b>Component</b></a>
  46. <a href="#Class_Connection"><b>Connection</b></a>
  47. <a href="#Class_Console"><b>Console</b></a>
  48. <a href="#Class_Constraint"><b>Constraint</b></a>
  49. <a href="#Class_Constraint2D"><b>Constraint2D</b></a>
  50. <a href="#Class_ConstraintDistance2D"><b>ConstraintDistance2D</b></a>
  51. <a href="#Class_ConstraintFriction2D"><b>ConstraintFriction2D</b></a>
  52. <a href="#Class_ConstraintGear2D"><b>ConstraintGear2D</b></a>
  53. <a href="#Class_ConstraintMotor2D"><b>ConstraintMotor2D</b></a>
  54. <a href="#Class_ConstraintMouse2D"><b>ConstraintMouse2D</b></a>
  55. <a href="#Class_ConstraintPrismatic2D"><b>ConstraintPrismatic2D</b></a>
  56. <a href="#Class_ConstraintPulley2D"><b>ConstraintPulley2D</b></a>
  57. <a href="#Class_ConstraintRevolute2D"><b>ConstraintRevolute2D</b></a>
  58. <a href="#Class_ConstraintRope2D"><b>ConstraintRope2D</b></a>
  59. <a href="#Class_ConstraintWeld2D"><b>ConstraintWeld2D</b></a>
  60. <a href="#Class_ConstraintWheel2D"><b>ConstraintWheel2D</b></a>
  61. <a href="#Class_Context"><b>Context</b></a>
  62. <a href="#Class_Controls"><b>Controls</b></a>
  63. <a href="#Class_CrowdAgent"><b>CrowdAgent</b></a>
  64. <a href="#Class_CrowdManager"><b>CrowdManager</b></a>
  65. <a href="#Class_Cursor"><b>Cursor</b></a>
  66. <a href="#Class_CustomGeometry"><b>CustomGeometry</b></a>
  67. <a href="#Class_CustomGeometryVertex"><b>CustomGeometryVertex</b></a>
  68. <a href="#Class_Database"><b>Database</b></a>
  69. <a href="#Class_DbConnection"><b>DbConnection</b></a>
  70. <a href="#Class_DbResult"><b>DbResult</b></a>
  71. <a href="#Class_DebugHud"><b>DebugHud</b></a>
  72. <a href="#Class_DebugRenderer"><b>DebugRenderer</b></a>
  73. <a href="#Class_DecalSet"><b>DecalSet</b></a>
  74. <a href="#Class_Deserializer"><b>Deserializer</b></a>
  75. <a href="#Class_Drawable"><b>Drawable</b></a>
  76. <a href="#Class_Drawable2D"><b>Drawable2D</b></a>
  77. <a href="#Class_DropDownList"><b>DropDownList</b></a>
  78. <a href="#Class_DynamicNavigationMesh"><b>DynamicNavigationMesh</b></a>
  79. <a href="#Class_Engine"><b>Engine</b></a>
  80. <a href="#Class_File"><b>File</b></a>
  81. <a href="#Class_FileSelector"><b>FileSelector</b></a>
  82. <a href="#Class_FileSelectorEntry"><b>FileSelectorEntry</b></a>
  83. <a href="#Class_FileSystem"><b>FileSystem</b></a>
  84. <a href="#Class_FocusParameters"><b>FocusParameters</b></a>
  85. <a href="#Class_Font"><b>Font</b></a>
  86. <a href="#Class_Frustum"><b>Frustum</b></a>
  87. <a href="#Class_Geometry"><b>Geometry</b></a>
  88. <a href="#Class_Graphics"><b>Graphics</b></a>
  89. <a href="#Class_HierarchyContainer"><b>HierarchyContainer</b></a>
  90. <a href="#Class_HttpRequest"><b>HttpRequest</b></a>
  91. <a href="#Class_Image"><b>Image</b></a>
  92. <a href="#Class_IndexBuffer"><b>IndexBuffer</b></a>
  93. <a href="#Class_Input"><b>Input</b></a>
  94. <a href="#Class_IntRect"><b>IntRect</b></a>
  95. <a href="#Class_IntVector2"><b>IntVector2</b></a>
  96. <a href="#Class_IntVector3"><b>IntVector3</b></a>
  97. <a href="#Class_JSONFile"><b>JSONFile</b></a>
  98. <a href="#Class_JSONValue"><b>JSONValue</b></a>
  99. <a href="#Class_JoystickState"><b>JoystickState</b></a>
  100. <a href="#Class_Light"><b>Light</b></a>
  101. <a href="#Class_LineEdit"><b>LineEdit</b></a>
  102. <a href="#Class_ListView"><b>ListView</b></a>
  103. <a href="#Class_Localization"><b>Localization</b></a>
  104. <a href="#Class_Log"><b>Log</b></a>
  105. <a href="#Class_LuaScriptInstance"><b>LuaScriptInstance</b></a>
  106. <a href="#Class_Material"><b>Material</b></a>
  107. <a href="#Class_Matrix3"><b>Matrix3</b></a>
  108. <a href="#Class_Matrix3x4"><b>Matrix3x4</b></a>
  109. <a href="#Class_Matrix4"><b>Matrix4</b></a>
  110. <a href="#Class_Menu"><b>Menu</b></a>
  111. <a href="#Class_MessageBox"><b>MessageBox</b></a>
  112. <a href="#Class_Model"><b>Model</b></a>
  113. <a href="#Class_NamedPipe"><b>NamedPipe</b></a>
  114. <a href="#Class_NavArea"><b>NavArea</b></a>
  115. <a href="#Class_Navigable"><b>Navigable</b></a>
  116. <a href="#Class_NavigationGeometryInfo"><b>NavigationGeometryInfo</b></a>
  117. <a href="#Class_NavigationMesh"><b>NavigationMesh</b></a>
  118. <a href="#Class_Network"><b>Network</b></a>
  119. <a href="#Class_NetworkPriority"><b>NetworkPriority</b></a>
  120. <a href="#Class_Node"><b>Node</b></a>
  121. <a href="#Class_Object"><b>Object</b></a>
  122. <a href="#Class_ObjectAnimation"><b>ObjectAnimation</b></a>
  123. <a href="#Class_Obstacle"><b>Obstacle</b></a>
  124. <a href="#Class_Octree"><b>Octree</b></a>
  125. <a href="#Class_OctreeQueryResult"><b>OctreeQueryResult</b></a>
  126. <a href="#Class_OffMeshConnection"><b>OffMeshConnection</b></a>
  127. <a href="#Class_PackageEntry"><b>PackageEntry</b></a>
  128. <a href="#Class_PackageFile"><b>PackageFile</b></a>
  129. <a href="#Class_ParticleEffect"><b>ParticleEffect</b></a>
  130. <a href="#Class_ParticleEffect2D"><b>ParticleEffect2D</b></a>
  131. <a href="#Class_ParticleEmitter"><b>ParticleEmitter</b></a>
  132. <a href="#Class_ParticleEmitter2D"><b>ParticleEmitter2D</b></a>
  133. <a href="#Class_Pass"><b>Pass</b></a>
  134. <a href="#Class_PhysicsRaycastResult"><b>PhysicsRaycastResult</b></a>
  135. <a href="#Class_PhysicsRaycastResult2D"><b>PhysicsRaycastResult2D</b></a>
  136. <a href="#Class_PhysicsWorld"><b>PhysicsWorld</b></a>
  137. <a href="#Class_PhysicsWorld2D"><b>PhysicsWorld2D</b></a>
  138. <a href="#Class_Plane"><b>Plane</b></a>
  139. <a href="#Class_Polyhedron"><b>Polyhedron</b></a>
  140. <a href="#Class_ProgressBar"><b>ProgressBar</b></a>
  141. <a href="#Class_PropertySet2D"><b>PropertySet2D</b></a>
  142. <a href="#Class_Quaternion"><b>Quaternion</b></a>
  143. <a href="#Class_Ray"><b>Ray</b></a>
  144. <a href="#Class_RayQueryResult"><b>RayQueryResult</b></a>
  145. <a href="#Class_Rect"><b>Rect</b></a>
  146. <a href="#Class_RemoteEvent"><b>RemoteEvent</b></a>
  147. <a href="#Class_RenderPath"><b>RenderPath</b></a>
  148. <a href="#Class_RenderPathCommand"><b>RenderPathCommand</b></a>
  149. <a href="#Class_RenderSurface"><b>RenderSurface</b></a>
  150. <a href="#Class_RenderTargetInfo"><b>RenderTargetInfo</b></a>
  151. <a href="#Class_Renderer"><b>Renderer</b></a>
  152. <a href="#Class_Resource"><b>Resource</b></a>
  153. <a href="#Class_ResourceCache"><b>ResourceCache</b></a>
  154. <a href="#Class_ResourceRef"><b>ResourceRef</b></a>
  155. <a href="#Class_ResourceRefList"><b>ResourceRefList</b></a>
  156. <a href="#Class_RibbonTrail"><b>RibbonTrail</b></a>
  157. <a href="#Class_RigidBody"><b>RigidBody</b></a>
  158. <a href="#Class_RigidBody2D"><b>RigidBody2D</b></a>
  159. <a href="#Class_Scene"><b>Scene</b></a>
  160. <a href="#Class_ScrollBar"><b>ScrollBar</b></a>
  161. <a href="#Class_ScrollView"><b>ScrollView</b></a>
  162. <a href="#Class_Serializable"><b>Serializable</b></a>
  163. <a href="#Class_Serializer"><b>Serializer</b></a>
  164. <a href="#Class_Skeleton"><b>Skeleton</b></a>
  165. <a href="#Class_Skybox"><b>Skybox</b></a>
  166. <a href="#Class_Slider"><b>Slider</b></a>
  167. <a href="#Class_Sound"><b>Sound</b></a>
  168. <a href="#Class_SoundListener"><b>SoundListener</b></a>
  169. <a href="#Class_SoundSource"><b>SoundSource</b></a>
  170. <a href="#Class_SoundSource3D"><b>SoundSource3D</b></a>
  171. <a href="#Class_Sphere"><b>Sphere</b></a>
  172. <a href="#Class_Spline"><b>Spline</b></a>
  173. <a href="#Class_SplinePath"><b>SplinePath</b></a>
  174. <a href="#Class_Sprite"><b>Sprite</b></a>
  175. <a href="#Class_Sprite2D"><b>Sprite2D</b></a>
  176. <a href="#Class_SpriteSheet2D"><b>SpriteSheet2D</b></a>
  177. <a href="#Class_StaticModel"><b>StaticModel</b></a>
  178. <a href="#Class_StaticModelGroup"><b>StaticModelGroup</b></a>
  179. <a href="#Class_StaticSprite2D"><b>StaticSprite2D</b></a>
  180. <a href="#Class_StringHash"><b>StringHash</b></a>
  181. <a href="#Class_Technique"><b>Technique</b></a>
  182. <a href="#Class_Terrain"><b>Terrain</b></a>
  183. <a href="#Class_TerrainPatch"><b>TerrainPatch</b></a>
  184. <a href="#Class_Text"><b>Text</b></a>
  185. <a href="#Class_Text3D"><b>Text3D</b></a>
  186. <a href="#Class_Texture"><b>Texture</b></a>
  187. <a href="#Class_Texture2D"><b>Texture2D</b></a>
  188. <a href="#Class_Texture2DArray"><b>Texture2DArray</b></a>
  189. <a href="#Class_Texture3D"><b>Texture3D</b></a>
  190. <a href="#Class_TextureCube"><b>TextureCube</b></a>
  191. <a href="#Class_TextureFrame"><b>TextureFrame</b></a>
  192. <a href="#Class_Tile2D"><b>Tile2D</b></a>
  193. <a href="#Class_TileMap2D"><b>TileMap2D</b></a>
  194. <a href="#Class_TileMapInfo2D"><b>TileMapInfo2D</b></a>
  195. <a href="#Class_TileMapLayer2D"><b>TileMapLayer2D</b></a>
  196. <a href="#Class_TileMapObject2D"><b>TileMapObject2D</b></a>
  197. <a href="#Class_Time"><b>Time</b></a>
  198. <a href="#Class_TmxFile2D"><b>TmxFile2D</b></a>
  199. <a href="#Class_ToolTip"><b>ToolTip</b></a>
  200. <a href="#Class_TouchState"><b>TouchState</b></a>
  201. <a href="#Class_UI"><b>UI</b></a>
  202. <a href="#Class_UIElement"><b>UIElement</b></a>
  203. <a href="#Class_ValueAnimation"><b>ValueAnimation</b></a>
  204. <a href="#Class_Variant"><b>Variant</b></a>
  205. <a href="#Class_VariantMap"><b>VariantMap</b></a>
  206. <a href="#Class_Vector2"><b>Vector2</b></a>
  207. <a href="#Class_Vector3"><b>Vector3</b></a>
  208. <a href="#Class_Vector4"><b>Vector4</b></a>
  209. <a href="#Class_VectorBuffer"><b>VectorBuffer</b></a>
  210. <a href="#Class_VertexBuffer"><b>VertexBuffer</b></a>
  211. <a href="#Class_VertexElement"><b>VertexElement</b></a>
  212. <a href="#Class_View3D"><b>View3D</b></a>
  213. <a href="#Class_Viewport"><b>Viewport</b></a>
  214. <a href="#Class_Window"><b>Window</b></a>
  215. <a href="#Class_XMLElement"><b>XMLElement</b></a>
  216. <a href="#Class_XMLFile"><b>XMLFile</b></a>
  217. <a href="#Class_Zone"><b>Zone</b></a>
  218. \section LuaScriptAPI_Classes Classes
  219. <a name="Class_Animatable"></a>
  220. ### Animatable : Serializable
  221. Methods:
  222. - void SetAnimationEnabled(bool enable)
  223. - void SetAnimationTime(float time)
  224. - void SetObjectAnimation(ObjectAnimation* objectAnimation)
  225. - void SetAttributeAnimation(const String name, ValueAnimation* attributeAnimation, WrapMode wrapMode = WM_LOOP, float speed = 1.0f)
  226. - void SetAttributeAnimationWrapMode(const String name, WrapMode wrapMode)
  227. - void SetAttributeAnimationSpeed(const String name, float speed)
  228. - void SetAttributeAnimationTime(const String name, float time)
  229. - void RemoveObjectAnimation()
  230. - void RemoveAttributeAnimation(const String name)
  231. - bool GetAnimationEnabled() const
  232. - ObjectAnimation* GetObjectAnimation() const
  233. - ValueAnimation* GetAttributeAnimation(const String name) const
  234. - WrapMode GetAttributeAnimationWrapMode(const String name) const
  235. - float GetAttributeAnimationSpeed(const String name) const
  236. - float GetAttributeAnimationTime(const String name) const
  237. Properties:
  238. - bool animationEnabled
  239. - ObjectAnimation* objectAnimation
  240. <a name="Class_AnimatedModel"></a>
  241. ### AnimatedModel : StaticModel
  242. Methods:
  243. - void SetModel(Model* model)
  244. - AnimationState* AddAnimationState(Animation* animation)
  245. - void RemoveAnimationState(Animation* animation)
  246. - void RemoveAnimationState(const String animationName)
  247. - void RemoveAnimationState(StringHash animationNameHash)
  248. - void RemoveAnimationState(AnimationState* state)
  249. - void RemoveAnimationState(unsigned index)
  250. - void RemoveAllAnimationStates()
  251. - void SetAnimationLodBias(float bias)
  252. - void SetUpdateInvisible(bool enable)
  253. - void SetMorphWeight(const String name, float weight)
  254. - void SetMorphWeight(StringHash nameHash, float weight)
  255. - void SetMorphWeight(unsigned index, float weight)
  256. - void ResetMorphWeights()
  257. - Skeleton& GetSkeleton()
  258. - unsigned GetNumAnimationStates() const
  259. - AnimationState* GetAnimationState(Animation* animation) const
  260. - AnimationState* GetAnimationState(const String animationName) const
  261. - AnimationState* GetAnimationState(const StringHash animationNameHash) const
  262. - AnimationState* GetAnimationState(unsigned index) const
  263. - float GetAnimationLodBias() const
  264. - bool GetUpdateInvisible() const
  265. - unsigned GetNumMorphs() const
  266. - float GetMorphWeight(const String name) const
  267. - float GetMorphWeight(StringHash nameHash) const
  268. - float GetMorphWeight(unsigned index) const
  269. - bool IsMaster() const
  270. - void UpdateBoneBoundingBox()
  271. Properties:
  272. - Model* model
  273. - Skeleton& skeleton (readonly)
  274. - unsigned numAnimationStates (readonly)
  275. - float animationLodBias
  276. - bool updateInvisible
  277. - unsigned numMorphs (readonly)
  278. - bool master (readonly)
  279. <a name="Class_AnimatedSprite2D"></a>
  280. ### AnimatedSprite2D : StaticSprite2D
  281. Methods:
  282. - void SetAnimationSet(AnimationSet2D* animationSet)
  283. - void SetEntity(const String entity)
  284. - void SetAnimation(const String name, LoopMode2D loopMode = LM_DEFAULT)
  285. - void SetLoopMode(LoopMode2D loopMode)
  286. - void SetSpeed(float speed)
  287. - AnimationSet2D* GetAnimationSet() const
  288. - const String GetEntity() const
  289. - const String GetAnimation() const
  290. - LoopMode2D GetLoopMode() const
  291. - float GetSpeed() const
  292. Properties:
  293. - float speed
  294. - String entity
  295. - String animation
  296. - AnimationSet2D* animationSet
  297. - LoopMode2D loopMode
  298. <a name="Class_Animation"></a>
  299. ### Animation : Resource
  300. Methods:
  301. - Animation() (GC)
  302. - Animation* new()
  303. - void delete()
  304. - void SetAnimationName(const String name)
  305. - void SetLength(float length)
  306. - AnimationTrack* CreateTrack(const String name)
  307. - bool RemoveTrack(const String name)
  308. - void RemoveAllTracks()
  309. - void SetTrigger(unsigned index, const AnimationTriggerPoint& trigger)
  310. - void AddTrigger(const AnimationTriggerPoint& trigger)
  311. - void AddTrigger(float time, bool timeIsNormalized, const Variant& data)
  312. - void RemoveTrigger(unsigned index)
  313. - void RemoveAllTriggers()
  314. - Animation* Clone(const String cloneName = String::EMPTY) const
  315. - const String GetAnimationName() const
  316. - float GetLength() const
  317. - unsigned GetNumTracks() const
  318. - AnimationTrack* GetTrack(const String name)
  319. - AnimationTrack* GetTrack(StringHash nameHash)
  320. - unsigned GetNumTriggers() const
  321. - AnimationTriggerPoint* GetTrigger(unsigned index)
  322. Properties:
  323. - String animationName
  324. - float length
  325. - unsigned numTracks (readonly)
  326. - unsigned numTriggers (readonly)
  327. <a name="Class_AnimationControl"></a>
  328. ### AnimationControl
  329. Methods:
  330. - AnimationControl() (GC)
  331. - AnimationControl* new()
  332. - void delete()
  333. Properties:
  334. - String name
  335. - StringHash hash
  336. - float speed
  337. - float targetWeight
  338. - float fadeTime
  339. - float autoFadeTime
  340. - bool removeOnCompletion
  341. <a name="Class_AnimationController"></a>
  342. ### AnimationController : Component
  343. Methods:
  344. - bool Play(const String name, char layer, bool looped, float fadeInTime = 0.0f)
  345. - bool PlayExclusive(const String name, char layer, bool looped, float fadeTime = 0.0f)
  346. - bool Stop(const String name, float fadeOutTime = 0.0f)
  347. - void StopLayer(char layer, float fadeOutTime = 0.0f)
  348. - void StopAll(float fadeTime = 0.0f)
  349. - bool Fade(const String name, float targetWeight, float fadeTime)
  350. - bool FadeOthers(const String name, float targetWeight, float fadeTime)
  351. - bool SetLayer(const String name, char layer)
  352. - bool SetStartBone(const String name, const String startBoneName)
  353. - bool SetTime(const String name, float time)
  354. - bool SetWeight(const String name, float weight)
  355. - bool SetLooped(const String name, bool enable)
  356. - bool SetBlendMode(const String name, AnimationBlendMode mode)
  357. - bool SetSpeed(const String name, float speed)
  358. - bool SetAutoFade(const String name, float fadeOutTime)
  359. - bool SetRemoveOnCompletion(const String name, bool removeOnCompletion)
  360. - bool IsPlaying(const String name) const
  361. - bool IsPlaying(char layer) const
  362. - bool IsFadingIn(const String name) const
  363. - bool IsFadingOut(const String name) const
  364. - bool IsAtEnd(const String name) const
  365. - char GetLayer(const String name) const
  366. - Bone* GetStartBone(const String name) const
  367. - const String GetStartBoneName(const String name) const
  368. - float GetTime(const String name) const
  369. - float GetWeight(const String name) const
  370. - bool IsLooped(const String name) const
  371. - AnimationBlendMode GetBlendMode(const String name) const
  372. - float GetLength(const String name) const
  373. - float GetSpeed(const String name) const
  374. - float GetFadeTarget(const String name) const
  375. - float GetFadeTime(const String name) const
  376. - float GetAutoFade(const String name) const
  377. - bool GetRemoveOnCompletion(const String name) const
  378. - AnimationState* GetAnimationState(const String name) const
  379. - AnimationState* GetAnimationState(StringHash nameHash) const
  380. - const AnimationControl* GetAnimation(unsigned index) const
  381. - unsigned GetNumAnimations() const
  382. <a name="Class_AnimationKeyFrame"></a>
  383. ### AnimationKeyFrame
  384. Properties:
  385. - float time
  386. - Vector3 position
  387. - Quaternion rotation
  388. - Vector3 scale
  389. <a name="Class_AnimationSet2D"></a>
  390. ### AnimationSet2D : Resource
  391. Methods:
  392. - unsigned GetNumAnimations() const
  393. - String GetAnimation(unsigned index) const
  394. Properties:
  395. - unsigned numAnimations (readonly)
  396. <a name="Class_AnimationState"></a>
  397. ### AnimationState
  398. Methods:
  399. - AnimationState(AnimatedModel* model, Animation* animation) (GC)
  400. - AnimationState* new(AnimatedModel* model, Animation* animation)
  401. - AnimationState(Node* node, Animation* animation) (GC)
  402. - AnimationState* new(Node* node, Animation* animation)
  403. - void delete()
  404. - void SetStartBone(Bone* bone)
  405. - void SetLooped(bool looped)
  406. - void SetWeight(float weight)
  407. - void SetTime(float time)
  408. - void SetBoneWeight(const String name, float weight, bool recursive = false)
  409. - void SetBoneWeight(StringHash nameHash, float weight, bool recursive = false)
  410. - void SetBoneWeight(unsigned index, float weight, bool recursive = false)
  411. - void AddWeight(float delta)
  412. - void AddTime(float delta)
  413. - void SetLayer(char layer)
  414. - void SetBlendMode(AnimationBlendMode mode)
  415. - Animation* GetAnimation() const
  416. - Bone* GetStartBone() const
  417. - float GetBoneWeight(const String name) const
  418. - float GetBoneWeight(StringHash nameHash) const
  419. - float GetBoneWeight(unsigned index) const
  420. - unsigned GetTrackIndex(const String name) const
  421. - unsigned GetTrackIndex(StringHash nameHash) const
  422. - bool IsEnabled() const
  423. - bool IsLooped() const
  424. - float GetWeight() const
  425. - float GetTime() const
  426. - float GetLength() const
  427. - char GetLayer() const
  428. - AnimationBlendMode GetBlendMode() const
  429. Properties:
  430. - Animation* animation (readonly)
  431. - Bone* startBone
  432. - bool enabled (readonly)
  433. - bool looped
  434. - float weight
  435. - float time
  436. - float length (readonly)
  437. - char layer
  438. - AnimationBlendMode blendMode
  439. <a name="Class_AnimationTrack"></a>
  440. ### AnimationTrack
  441. Methods:
  442. - void SetKeyFrame(unsigned index, const AnimationKeyFrame& keyFrame)
  443. - void AddKeyFrame(const AnimationKeyFrame& keyFrame)
  444. - void InsertKeyFrame(unsigned index, const AnimationKeyFrame& keyFrame)
  445. - void RemoveKeyFrame(unsigned index)
  446. - void RemoveAllKeyFrames()
  447. - AnimationKeyFrame* GetKeyFrame(unsigned index)
  448. - unsigned GetNumKeyFrames() const
  449. Properties:
  450. - const String name
  451. - const StringHash nameHash
  452. - char channelMask
  453. - Vector<AnimationKeyFrame> keyFrames
  454. - unsigned numKeyFrames (readonly)
  455. <a name="Class_AnimationTriggerPoint"></a>
  456. ### AnimationTriggerPoint
  457. Methods:
  458. - AnimationTriggerPoint() (GC)
  459. - AnimationTriggerPoint* new()
  460. Properties:
  461. - float time
  462. - Variant data
  463. <a name="Class_Audio"></a>
  464. ### Audio : Object
  465. Methods:
  466. - bool SetMode(int bufferLengthMSec, int mixRate, bool stereo, bool interpolation = true)
  467. - bool Play()
  468. - void Stop()
  469. - void SetMasterGain(const String type, float gain)
  470. - void PauseSoundType(const String type)
  471. - void ResumeSoundType(const String type)
  472. - void ResumeAll()
  473. - void SetListener(SoundListener* listener)
  474. - void StopSound(Sound* sound)
  475. - unsigned GetSampleSize() const
  476. - int GetMixRate() const
  477. - bool GetInterpolation() const
  478. - bool IsStereo() const
  479. - bool IsPlaying() const
  480. - bool IsInitialized() const
  481. - bool HasMasterGain(const String type) const
  482. - float GetMasterGain(const String type) const
  483. - bool IsSoundTypePaused(const String type) const
  484. - SoundListener* GetListener() const
  485. - const PODVector<SoundSource*>& GetSoundSources() const
  486. - void AddSoundSource(SoundSource* soundSource)
  487. - void RemoveSoundSource(SoundSource* soundSource)
  488. - void MixOutput(void* dest, unsigned samples)
  489. Properties:
  490. - unsigned sampleSize (readonly)
  491. - int mixRate (readonly)
  492. - bool interpolation (readonly)
  493. - bool stereo (readonly)
  494. - bool playing (readonly)
  495. - bool initialized (readonly)
  496. - SoundListener* listener
  497. <a name="Class_BiasParameters"></a>
  498. ### BiasParameters
  499. Methods:
  500. - BiasParameters() (GC)
  501. - BiasParameters* new()
  502. - BiasParameters(float constantBias, float slopeScaledBias, float normalOffset = 0.0f) (GC)
  503. - BiasParameters* new(float constantBias, float slopeScaledBias, float normalOffset = 0.0f)
  504. - void delete()
  505. Properties:
  506. - float constantBias
  507. - float slopeScaledBias
  508. - float normalOffset
  509. <a name="Class_Billboard"></a>
  510. ### Billboard
  511. Properties:
  512. - Vector3 position
  513. - Vector2 size
  514. - Rect uv
  515. - Color color
  516. - float rotation
  517. - bool enabled
  518. <a name="Class_BillboardSet"></a>
  519. ### BillboardSet : Drawable
  520. Methods:
  521. - void SetMaterial(Material* material)
  522. - void SetNumBillboards(unsigned num)
  523. - void SetRelative(bool enable)
  524. - void SetScaled(bool enable)
  525. - void SetSorted(bool enable)
  526. - void SetFixedScreenSize(bool enable)
  527. - void SetFaceCameraMode(FaceCameraMode mode)
  528. - void SetMinAngle(float angle)
  529. - void SetAnimationLodBias(float bias)
  530. - void Commit()
  531. - Material* GetMaterial() const
  532. - unsigned GetNumBillboards() const
  533. - Billboard* GetBillboard(unsigned index)
  534. - bool IsRelative() const
  535. - bool IsScaled() const
  536. - bool IsSorted() const
  537. - bool IsFixedScreenSize() const
  538. - FaceCameraMode GetFaceCameraMode() const
  539. - float GetMinAngle() const
  540. - float GetAnimationLodBias() const
  541. Properties:
  542. - Material* material
  543. - unsigned numBillboards
  544. - bool relative
  545. - bool scaled
  546. - bool sorted
  547. - bool fixedScreenSize
  548. - FaceCameraMode faceCameraMode
  549. - float minAngle
  550. - float animationLodBias
  551. <a name="Class_Bone"></a>
  552. ### Bone
  553. Methods:
  554. - Bone() (GC)
  555. - Bone* new()
  556. - void delete()
  557. Properties:
  558. - String name
  559. - StringHash nameHash
  560. - unsigned parentIndex
  561. - Vector3 initialPosition
  562. - Quaternion initialRotation
  563. - Vector3 initialScale
  564. - Matrix3x4 offsetMatrix
  565. - bool animated
  566. - char collisionMask
  567. - float radius
  568. - BoundingBox boundingBox
  569. - Node* node
  570. <a name="Class_BorderImage"></a>
  571. ### BorderImage : UIElement
  572. Methods:
  573. - BorderImage() (GC)
  574. - BorderImage* new()
  575. - void delete()
  576. - void SetTexture(Texture* texture)
  577. - void SetImageRect(const IntRect& rect)
  578. - void SetFullImageRect()
  579. - void SetBorder(const IntRect& rect)
  580. - void SetImageBorder(const IntRect& rect)
  581. - void SetHoverOffset(const IntVector2& offset)
  582. - void SetHoverOffset(int x, int y)
  583. - void SetBlendMode(BlendMode mode)
  584. - void SetTiled(bool enable)
  585. - Texture* GetTexture() const
  586. - const IntRect& GetImageRect() const
  587. - const IntRect& GetBorder() const
  588. - const IntRect& GetImageBorder() const
  589. - const IntVector2& GetHoverOffset() const
  590. - BlendMode GetBlendMode() const
  591. - bool IsTiled() const
  592. Properties:
  593. - Texture* texture
  594. - IntRect& imageRect
  595. - IntRect& border
  596. - IntRect& imageBorder
  597. - IntVector2& hoverOffset
  598. - BlendMode blendMode
  599. - bool tiled
  600. <a name="Class_BoundingBox"></a>
  601. ### BoundingBox
  602. Methods:
  603. - BoundingBox() (GC)
  604. - BoundingBox* new()
  605. - BoundingBox(const BoundingBox& box) (GC)
  606. - BoundingBox* new(const BoundingBox& box)
  607. - BoundingBox(const Rect& rect) (GC)
  608. - BoundingBox* new(const Rect& rect)
  609. - BoundingBox(const Vector3& min, const Vector3& max) (GC)
  610. - BoundingBox* new(const Vector3& min, const Vector3& max)
  611. - BoundingBox(float min, float max) (GC)
  612. - BoundingBox* new(float min, float max)
  613. - BoundingBox(const Frustum& frustum) (GC)
  614. - BoundingBox* new(const Frustum& frustum)
  615. - BoundingBox(const Polyhedron& poly) (GC)
  616. - BoundingBox* new(const Polyhedron& poly)
  617. - BoundingBox(const Sphere& sphere) (GC)
  618. - BoundingBox* new(const Sphere& sphere)
  619. - void delete()
  620. - bool operator==(const BoundingBox& rhs) const
  621. - void Define(const BoundingBox& box)
  622. - void Define(const Rect& rect)
  623. - void Define(const Vector3& min, const Vector3& max)
  624. - void Define(float min, float max)
  625. - void Define(const Vector3& point)
  626. - void Define(const Frustum& frustum)
  627. - void Define(const Polyhedron& poly)
  628. - void Define(const Sphere& sphere)
  629. - void Merge(const Vector3& point)
  630. - void Merge(const BoundingBox& box)
  631. - void Merge(const Frustum& frustum)
  632. - void Merge(const Polyhedron& poly)
  633. - void Merge(const Sphere& sphere)
  634. - void Clip(const BoundingBox& box)
  635. - void Transform(const Matrix3& transform)
  636. - void Transform(const Matrix3x4& transform)
  637. - void Clear()
  638. - bool Defined() const
  639. - Vector3 Center() const
  640. - Vector3 Size() const
  641. - Vector3 HalfSize() const
  642. - BoundingBox Transformed(const Matrix3& transform) const
  643. - BoundingBox Transformed(const Matrix3x4& transform) const
  644. - Rect Projected(const Matrix4& projection) const
  645. - Intersection IsInside(const Vector3& point) const
  646. - Intersection IsInside(const BoundingBox& box) const
  647. - Intersection IsInsideFast(const BoundingBox& box) const
  648. - Intersection IsInside(const Sphere& sphere) const
  649. - Intersection IsInsideFast(const Sphere& sphere) const
  650. - String ToString() const
  651. Properties:
  652. - Vector3 min
  653. - Vector3 max
  654. - Vector3 center (readonly)
  655. - Vector3 size (readonly)
  656. - Vector3 halfSize (readonly)
  657. <a name="Class_Button"></a>
  658. ### Button : BorderImage
  659. Methods:
  660. - Button() (GC)
  661. - Button* new()
  662. - void delete()
  663. - void SetPressedOffset(const IntVector2& offset)
  664. - void SetPressedOffset(int x, int y)
  665. - void SetPressedChildOffset(const IntVector2& offset)
  666. - void SetPressedChildOffset(int x, int y)
  667. - void SetRepeat(float delay, float rate)
  668. - void SetRepeatDelay(float delay)
  669. - void SetRepeatRate(float rate)
  670. - const IntVector2& GetPressedOffset() const
  671. - const IntVector2& GetPressedChildOffset() const
  672. - float GetRepeatDelay() const
  673. - float GetRepeatRate() const
  674. - bool IsPressed() const
  675. Properties:
  676. - IntVector2& pressedOffset
  677. - IntVector2& pressedChildOffset
  678. - float repeatDelay
  679. - float repeatRate
  680. - bool pressed (readonly)
  681. <a name="Class_Camera"></a>
  682. ### Camera : Component
  683. Methods:
  684. - void SetNearClip(float nearClip)
  685. - void SetFarClip(float farClip)
  686. - void SetFov(float fov)
  687. - void SetOrthoSize(float orthoSize)
  688. - void SetOrthoSize(const Vector2& orthoSize)
  689. - void SetAspectRatio(float aspectRatio)
  690. - void SetFillMode(FillMode mode)
  691. - void SetZoom(float zoom)
  692. - void SetLodBias(float bias)
  693. - void SetViewMask(unsigned mask)
  694. - void SetViewOverrideFlags(unsigned flags)
  695. - void SetOrthographic(bool enable)
  696. - void SetAutoAspectRatio(bool enable)
  697. - void SetProjectionOffset(const Vector2& offset)
  698. - void SetUseReflection(bool enable)
  699. - void SetReflectionPlane(const Plane& reflectionPlane)
  700. - void SetUseClipping(bool enable)
  701. - void SetClipPlane(const Plane& clipPlane)
  702. - void SetProjection(const Matrix4& projection)
  703. - float GetFarClip() const
  704. - float GetNearClip() const
  705. - float GetFov() const
  706. - float GetOrthoSize() const
  707. - float GetAspectRatio() const
  708. - float GetZoom() const
  709. - float GetLodBias() const
  710. - unsigned GetViewMask() const
  711. - unsigned GetViewOverrideFlags() const
  712. - FillMode GetFillMode() const
  713. - bool IsOrthographic() const
  714. - bool GetAutoAspectRatio() const
  715. - const Frustum& GetFrustum() const
  716. - Matrix4 GetProjection() const
  717. - Matrix4 GetGPUProjection() const
  718. - const Matrix3x4& GetView() const
  719. - void GetFrustumSize(Vector3& near, Vector3& far) const
  720. - float GetHalfViewSize() const
  721. - Frustum GetSplitFrustum(float nearClip, float farClip) const
  722. - Frustum GetViewSpaceFrustum() const
  723. - Frustum GetViewSpaceSplitFrustum(float nearClip, float farClip) const
  724. - Ray GetScreenRay(float x, float y) const
  725. - Vector2 WorldToScreenPoint(const Vector3& worldPos) const
  726. - Vector3 ScreenToWorldPoint(const Vector3& screenPos) const
  727. - const Vector2& GetProjectionOffset() const
  728. - bool GetUseReflection() const
  729. - const Plane& GetReflectionPlane() const
  730. - bool GetUseClipping() const
  731. - const Plane& GetClipPlane() const
  732. - float GetDistance(const Vector3& worldPos) const
  733. - float GetDistanceSquared(const Vector3& worldPos) const
  734. - float GetLodDistance(float distance, float scale, float bias) const
  735. - bool IsProjectionValid() const
  736. - Matrix3x4 GetEffectiveWorldTransform() const
  737. Properties:
  738. - float farClip
  739. - float nearClip
  740. - float fov
  741. - float orthoSize
  742. - float aspectRatio
  743. - float zoom
  744. - float lodBias
  745. - unsigned viewMask
  746. - unsigned viewOverrideFlags
  747. - FillMode fillMode
  748. - bool orthographic
  749. - bool autoAspectRatio
  750. - Frustum& frustum (readonly)
  751. - Matrix4 projection (readonly)
  752. - Matrix4 GPUProjection (readonly)
  753. - Matrix3x4& view (readonly)
  754. - float halfViewSize (readonly)
  755. - Frustum viewSpaceFrustum (readonly)
  756. - Vector2& projectionOffset
  757. - bool useReflection
  758. - Plane& reflectionPlane
  759. - bool useClipping
  760. - Plane& clipPlane
  761. - bool projectionValid (readonly)
  762. - Matrix3x4 effectiveWorldTransform (readonly)
  763. <a name="Class_CascadeParameters"></a>
  764. ### CascadeParameters
  765. Methods:
  766. - CascadeParameters() (GC)
  767. - CascadeParameters* new()
  768. - CascadeParameters(float split1, float split2, float split3, float split4, float fadeStart, float biasAutoAdjust = 1.0f) (GC)
  769. - CascadeParameters* new(float split1, float split2, float split3, float split4, float fadeStart, float biasAutoAdjust = 1.0f)
  770. - void delete()
  771. Properties:
  772. - float fadeStart
  773. - float biasAutoAdjust
  774. <a name="Class_CheckBox"></a>
  775. ### CheckBox : BorderImage
  776. Methods:
  777. - CheckBox() (GC)
  778. - CheckBox* new()
  779. - void delete()
  780. - void SetChecked(bool enable)
  781. - void SetCheckedOffset(const IntVector2& rect)
  782. - void SetCheckedOffset(int x, int y)
  783. - bool IsChecked() const
  784. - const IntVector2& GetCheckedOffset() const
  785. Properties:
  786. - bool checked
  787. - IntVector2& checkedOffset
  788. <a name="Class_CollisionBox2D"></a>
  789. ### CollisionBox2D : CollisionShape2D
  790. Methods:
  791. - void SetSize(const Vector2& size)
  792. - void SetSize(float width, float height)
  793. - void SetCenter(const Vector2& center)
  794. - void SetCenter(float x, float y)
  795. - void SetAngle(float angle)
  796. - const Vector2& GetSize() const
  797. - const Vector2& GetCenter() const
  798. - float GetAngle() const
  799. Properties:
  800. - Vector2& size
  801. - Vector2& center
  802. - float angle
  803. <a name="Class_CollisionChain2D"></a>
  804. ### CollisionChain2D : CollisionShape2D
  805. Methods:
  806. - void SetLoop(bool loop)
  807. - void SetVertexCount(unsigned count)
  808. - void SetVertex(unsigned index, const Vector2& vertex)
  809. - void SetVertices(const PODVector<Vector2>& vertices)
  810. - bool GetLoop() const
  811. - unsigned GetVertexCount() const
  812. - const Vector2& GetVertex(unsigned index) const
  813. Properties:
  814. - bool loop
  815. - unsigned vertexCount
  816. <a name="Class_CollisionCircle2D"></a>
  817. ### CollisionCircle2D : CollisionShape2D
  818. Methods:
  819. - void SetRadius(float radius)
  820. - void SetCenter(const Vector2& center)
  821. - void SetCenter(float x, float y)
  822. - float GetRadius() const
  823. - const Vector2& GetCenter() const
  824. Properties:
  825. - float radius
  826. - Vector2& center
  827. <a name="Class_CollisionEdge2D"></a>
  828. ### CollisionEdge2D : CollisionShape2D
  829. Methods:
  830. - void SetVertex1(const Vector2& vertex)
  831. - void SetVertex2(const Vector2& vertex)
  832. - void SetVertices(const Vector2& vertex1, const Vector2& vertex2)
  833. - const Vector2& GetVertex1() const
  834. - const Vector2& GetVertex2() const
  835. Properties:
  836. - Vector2& vertex1
  837. - Vector2& vertex2
  838. <a name="Class_CollisionPolygon2D"></a>
  839. ### CollisionPolygon2D : CollisionShape2D
  840. Methods:
  841. - void SetVertexCount(unsigned count)
  842. - void SetVertex(unsigned index, const Vector2& vertex)
  843. - void SetVertices(const PODVector<Vector2>& vertices)
  844. - unsigned GetVertexCount() const
  845. - const Vector2& GetVertex(unsigned index) const
  846. Properties:
  847. - unsigned vertexCount
  848. <a name="Class_CollisionShape"></a>
  849. ### CollisionShape : Component
  850. Methods:
  851. - void SetBox(const Vector3& size)
  852. - void SetBox(const Vector3& size, const Vector3& position)
  853. - void SetBox(const Vector3& size, const Vector3& position, const Quaternion& rotation)
  854. - void SetSphere(float diameter)
  855. - void SetSphere(float diameter, const Vector3& position)
  856. - void SetSphere(float diameter, const Vector3& position, const Quaternion& rotation)
  857. - void SetStaticPlane()
  858. - void SetStaticPlane(const Vector3& position)
  859. - void SetStaticPlane(const Vector3& position, const Quaternion& rotation)
  860. - void SetCylinder(float diameter, float height)
  861. - void SetCylinder(float diameter, float height, const Vector3& position)
  862. - void SetCylinder(float diameter, float height, const Vector3& position, const Quaternion& rotation)
  863. - void SetCapsule(float diameter, float height)
  864. - void SetCapsule(float diameter, float height, const Vector3& position)
  865. - void SetCapsule(float diameter, float height, const Vector3& position, const Quaternion& rotation)
  866. - void SetCone(float diameter, float height)
  867. - void SetCone(float diameter, float height, const Vector3& position)
  868. - void SetCone(float diameter, float height, const Vector3& position, const Quaternion& rotation)
  869. - void SetTriangleMesh(Model* model, unsigned lodLevel = 0)
  870. - void SetTriangleMesh(Model* model, unsigned lodLevel, const Vector3& scale)
  871. - void SetTriangleMesh(Model* model, unsigned lodLevel, const Vector3& scale, const Vector3& position)
  872. - void SetTriangleMesh(Model* model, unsigned lodLevel, const Vector3& scale, const Vector3& position, const Quaternion& rotation)
  873. - void SetCustomTriangleMesh(CustomGeometry* custom)
  874. - void SetCustomTriangleMesh(CustomGeometry* custom, const Vector3& scale)
  875. - void SetCustomTriangleMesh(CustomGeometry* custom, const Vector3& scale, const Vector3& position)
  876. - void SetCustomTriangleMesh(CustomGeometry* custom, const Vector3& scale, const Vector3& position, const Quaternion& rotation)
  877. - void SetConvexHull(Model* model, unsigned lodLevel = 0)
  878. - void SetConvexHull(Model* model, unsigned lodLevel, const Vector3& scale)
  879. - void SetConvexHull(Model* model, unsigned lodLevel, const Vector3& scale, const Vector3& position)
  880. - void SetConvexHull(Model* model, unsigned lodLevel, const Vector3& scale, const Vector3& position, const Quaternion& rotation)
  881. - void SetCustomConvexHull(CustomGeometry* custom)
  882. - void SetCustomConvexHull(CustomGeometry* custom, const Vector3& scale)
  883. - void SetCustomConvexHull(CustomGeometry* custom, const Vector3& scale, const Vector3& position)
  884. - void SetCustomConvexHull(CustomGeometry* custom, const Vector3& scale, const Vector3& position, const Quaternion& rotation)
  885. - void SetTerrain(unsigned lodLevel = 0)
  886. - void SetShapeType(ShapeType type)
  887. - void SetSize(const Vector3& size)
  888. - void SetPosition(const Vector3& position)
  889. - void SetRotation(const Quaternion& rotation)
  890. - void SetTransform(const Vector3& position, const Quaternion& rotation)
  891. - void SetMargin(float margin)
  892. - void SetModel(Model* model)
  893. - void SetLodLevel(unsigned lodLevel)
  894. - PhysicsWorld* GetPhysicsWorld() const
  895. - ShapeType GetShapeType() const
  896. - const Vector3& GetSize() const
  897. - const Vector3& GetPosition() const
  898. - const Quaternion& GetRotation() const
  899. - float GetMargin() const
  900. - Model* GetModel() const
  901. - unsigned GetLodLevel() const
  902. - BoundingBox GetWorldBoundingBox() const
  903. Properties:
  904. - PhysicsWorld* physicsWorld (readonly)
  905. - ShapeType shapeType
  906. - Vector3& size
  907. - Vector3& position
  908. - Quaternion& rotation
  909. - float margin
  910. - Model* model
  911. - unsigned lodLevel
  912. - BoundingBox worldBoundingBox (readonly)
  913. - ResourceRef modelAttr
  914. <a name="Class_CollisionShape2D"></a>
  915. ### CollisionShape2D : Component
  916. Methods:
  917. - void SetTrigger(bool trigger)
  918. - void SetCategoryBits(int categoryBits)
  919. - void SetMaskBits(int maskBits)
  920. - void SetGroupIndex(int groupIndex)
  921. - void SetDensity(float density)
  922. - void SetFriction(float friction)
  923. - void SetRestitution(float restitution)
  924. - bool IsTrigger() const
  925. - int GetCategoryBits() const
  926. - int GetMaskBits() const
  927. - int GetGroupIndex() const
  928. - float GetDensity() const
  929. - float GetFriction() const
  930. - float GetRestitution() const
  931. - float GetMass() const
  932. - float GetInertia() const
  933. - Vector2 GetMassCenter() const
  934. Properties:
  935. - bool trigger
  936. - int categoryBits
  937. - int maskBits
  938. - int groupIndex
  939. - float density
  940. - float friction
  941. - float restitution
  942. - float mass (readonly)
  943. - float inertia (readonly)
  944. - Vector2 massCenter (readonly)
  945. <a name="Class_Color"></a>
  946. ### Color
  947. Methods:
  948. - Color() (GC)
  949. - Color* new()
  950. - Color(const Color& color) (GC)
  951. - Color* new(const Color& color)
  952. - Color(const Color& color, float a) (GC)
  953. - Color* new(const Color& color, float a)
  954. - Color(float r, float g, float b) (GC)
  955. - Color* new(float r, float g, float b)
  956. - Color(float r, float g, float b, float a) (GC)
  957. - Color* new(float r, float g, float b, float a)
  958. - void delete()
  959. - bool operator==(const Color& rhs) const
  960. - Color operator*(float rhs) const
  961. - Color operator+(const Color& rhs)
  962. - unsigned ToUInt() const
  963. - Vector3 ToHSL() const
  964. - Vector3 ToHSV() const
  965. - void FromHSL(float h, float s, float l, float a)
  966. - void FromHSV(float h, float s, float v, float a)
  967. - Vector3 ToVector3() const
  968. - Vector4 ToVector4() const
  969. - float SumRGB() const
  970. - float Average() const
  971. - float Luma() const
  972. - float Chroma() const
  973. - float Hue() const
  974. - float SaturationHSL() const
  975. - float SaturationHSV() const
  976. - float Value() const
  977. - float Lightness() const
  978. - float MaxRGB() const
  979. - float MinRGB() const
  980. - float Range() const
  981. - void Clip(bool clipAlpha = false)
  982. - void Invert(bool invertAlpha = false)
  983. - Color Lerp(const Color& rhs, float t) const
  984. - Color Abs() const
  985. - bool Equals(const Color& rhs) const
  986. - String ToString() const
  987. Properties:
  988. - float r
  989. - float g
  990. - float b
  991. - float a
  992. - const Color WHITE
  993. - const Color GRAY
  994. - const Color BLACK
  995. - const Color RED
  996. - const Color GREEN
  997. - const Color BLUE
  998. - const Color CYAN
  999. - const Color MAGENTA
  1000. - const Color YELLOW
  1001. - const Color TRANSPARENT
  1002. <a name="Class_ColorFrame"></a>
  1003. ### ColorFrame
  1004. Methods:
  1005. - ColorFrame() (GC)
  1006. - ColorFrame* new()
  1007. - ColorFrame(const Color& color) (GC)
  1008. - ColorFrame* new(const Color& color)
  1009. - ColorFrame(const Color& color, float time) (GC)
  1010. - ColorFrame* new(const Color& color, float time)
  1011. - void delete()
  1012. - Color Interpolate(const ColorFrame& next, float time)
  1013. Properties:
  1014. - Color color
  1015. - float time
  1016. <a name="Class_Component"></a>
  1017. ### Component : Animatable
  1018. Methods:
  1019. - void SetEnabled(bool enable)
  1020. - void Remove()
  1021. - void DrawDebugGeometry(DebugRenderer* debug, bool depthTest)
  1022. - unsigned GetID() const
  1023. - Node* GetNode() const
  1024. - Scene* GetScene() const
  1025. - bool IsEnabled() const
  1026. - bool IsEnabledEffective() const
  1027. - Component* GetComponent(StringHash type) const
  1028. - Component* GetComponent(const String type) const
  1029. Properties:
  1030. - unsigned ID (readonly)
  1031. - bool enabled
  1032. - bool enabledEffective (readonly)
  1033. - Node* node (readonly)
  1034. - Scene* scene (readonly)
  1035. <a name="Class_Connection"></a>
  1036. ### Connection : Object
  1037. Methods:
  1038. - void SendMessage(int msgID, bool reliable, bool inOrder, const VectorBuffer& msg, unsigned contentID = 0)
  1039. - void SendRemoteEvent(StringHash eventType, bool inOrder)
  1040. - void SendRemoteEvent(StringHash eventType, bool inOrder, const VariantMap& eventData)
  1041. - void SendRemoteEvent(const String eventType, bool inOrder)
  1042. - void SendRemoteEvent(const String eventType, bool inOrder, const VariantMap& eventData)
  1043. - void SendRemoteEvent(Node* node, StringHash eventType, bool inOrder)
  1044. - void SendRemoteEvent(Node* node, StringHash eventType, bool inOrder, const VariantMap& eventData)
  1045. - void SendRemoteEvent(Node* node, const String eventType, bool inOrder)
  1046. - void SendRemoteEvent(Node* node, const String eventType, bool inOrder, const VariantMap& eventData)
  1047. - void SetScene(Scene* newScene)
  1048. - void SetIdentity(const VariantMap& identity)
  1049. - void SetControls(const Controls& newControls)
  1050. - void SetPosition(const Vector3& position)
  1051. - void SetRotation(const Quaternion& rotation)
  1052. - void SetConnectPending(bool connectPending)
  1053. - void SetLogStatistics(bool enable)
  1054. - void Disconnect(int waitMSec = 0)
  1055. - void SendPackageToClient(PackageFile* package)
  1056. - VariantMap& GetIdentity()
  1057. - Scene* GetScene() const
  1058. - const Controls& GetControls() const
  1059. - char GetTimeStamp() const
  1060. - const Vector3& GetPosition() const
  1061. - const Quaternion& GetRotation() const
  1062. - bool IsClient() const
  1063. - bool IsConnected() const
  1064. - bool IsConnectPending() const
  1065. - bool IsSceneLoaded() const
  1066. - bool GetLogStatistics() const
  1067. - String GetAddress() const
  1068. - short GetPort() const
  1069. - float GetRoundTripTime() const
  1070. - float GetLastHeardTime() const
  1071. - float GetBytesInPerSec() const
  1072. - float GetBytesOutPerSec() const
  1073. - float GetPacketsInPerSec() const
  1074. - float GetPacketsOutPerSec() const
  1075. - String ToString() const
  1076. - unsigned GetNumDownloads() const
  1077. - const String GetDownloadName() const
  1078. - float GetDownloadProgress() const
  1079. Properties:
  1080. - VariantMap& identity
  1081. - Scene* scene
  1082. - Controls& controls
  1083. - char timeStamp (readonly)
  1084. - Vector3& position
  1085. - Quaternion& rotation
  1086. - bool client (readonly)
  1087. - bool connected (readonly)
  1088. - bool connectPending
  1089. - bool sceneLoaded (readonly)
  1090. - bool logStatistics
  1091. - String address (readonly)
  1092. - short port (readonly)
  1093. - float roundTripTime (readonly)
  1094. - float lastHeardTime (readonly)
  1095. - float bytesInPerSec (readonly)
  1096. - float bytesOutPerSec (readonly)
  1097. - float packetsInPerSec (readonly)
  1098. - float packetsOutPerSec (readonly)
  1099. - unsigned numDownloads (readonly)
  1100. - String downloadName (readonly)
  1101. - float downloadProgress (readonly)
  1102. <a name="Class_Console"></a>
  1103. ### Console : Object
  1104. Methods:
  1105. - void SetDefaultStyle(XMLFile* style)
  1106. - void SetVisible(bool enable)
  1107. - void Toggle()
  1108. - void SetAutoVisibleOnError(bool enable)
  1109. - void SetCommandInterpreter(const String interpreter)
  1110. - void SetNumBufferedRows(unsigned rows)
  1111. - void SetNumRows(unsigned rows)
  1112. - void SetNumHistoryRows(unsigned rows)
  1113. - void SetFocusOnShow(bool enable)
  1114. - void AddAutoComplete(const String option)
  1115. - void RemoveAutoComplete(const String option)
  1116. - void UpdateElements()
  1117. - XMLFile* GetDefaultStyle() const
  1118. - BorderImage* GetBackground() const
  1119. - LineEdit* GetLineEdit() const
  1120. - Button* GetCloseButton() const
  1121. - bool IsVisible() const
  1122. - bool IsAutoVisibleOnError() const
  1123. - const String GetCommandInterpreter() const
  1124. - unsigned GetNumBufferedRows() const
  1125. - unsigned GetNumRows() const
  1126. - void CopySelectedRows() const
  1127. - unsigned GetNumHistoryRows() const
  1128. - unsigned GetHistoryPosition() const
  1129. - const String GetHistoryRow(unsigned index) const
  1130. - bool GetFocusOnShow() const
  1131. Properties:
  1132. - XMLFile* defaultStyle
  1133. - BorderImage* background (readonly)
  1134. - LineEdit* lineEdit (readonly)
  1135. - Button* closeButton (readonly)
  1136. - bool visible
  1137. - bool autoVisibleOnError
  1138. - String commandInterpreter
  1139. - unsigned numBufferedRows
  1140. - unsigned numRows
  1141. - unsigned numHistoryRows
  1142. - unsigned historyPosition (readonly)
  1143. - bool focusOnShow
  1144. <a name="Class_Constraint"></a>
  1145. ### Constraint : Component
  1146. Methods:
  1147. - void SetConstraintType(ConstraintType type)
  1148. - void SetOtherBody(RigidBody* body)
  1149. - void SetPosition(const Vector3& position)
  1150. - void SetRotation(const Quaternion& rotation)
  1151. - void SetAxis(const Vector3& axis)
  1152. - void SetOtherPosition(const Vector3& position)
  1153. - void SetOtherRotation(const Quaternion& rotation)
  1154. - void SetOtherAxis(const Vector3& axis)
  1155. - void SetWorldPosition(const Vector3& position)
  1156. - void SetHighLimit(const Vector2& limit)
  1157. - void SetLowLimit(const Vector2& limit)
  1158. - void SetERP(float erp)
  1159. - void SetCFM(float cfm)
  1160. - void SetDisableCollision(bool disable)
  1161. - PhysicsWorld* GetPhysicsWorld() const
  1162. - ConstraintType GetConstraintType() const
  1163. - RigidBody* GetOwnBody() const
  1164. - RigidBody* GetOtherBody() const
  1165. - const Vector3& GetPosition() const
  1166. - const Quaternion& GetRotation() const
  1167. - const Vector3& GetOtherPosition() const
  1168. - const Quaternion& GetOtherRotation() const
  1169. - Vector3 GetWorldPosition() const
  1170. - const Vector2& GetHighLimit() const
  1171. - const Vector2& GetLowLimit() const
  1172. - float GetERP() const
  1173. - float GetCFM() const
  1174. - bool GetDisableCollision() const
  1175. Properties:
  1176. - PhysicsWorld* physicsWorld (readonly)
  1177. - ConstraintType constraintType
  1178. - RigidBody* ownBody (readonly)
  1179. - RigidBody* otherBody
  1180. - Vector3& position
  1181. - Quaternion& rotation
  1182. - Vector3& axis
  1183. - Vector3& otherPosition
  1184. - Quaternion& otherRotation
  1185. - Vector3& otherAxis
  1186. - Vector3 worldPosition
  1187. - Vector2& highLimit
  1188. - Vector2& lowLimit
  1189. - float ERP
  1190. - float CFM
  1191. - bool disableCollision
  1192. <a name="Class_Constraint2D"></a>
  1193. ### Constraint2D : Component
  1194. Methods:
  1195. - void SetOtherBody(RigidBody2D* body)
  1196. - void SetCollideConnected(bool collideConnected)
  1197. - RigidBody2D* GetOwnerBody() const
  1198. - RigidBody2D* GetOtherBody() const
  1199. - bool GetCollideConnected() const
  1200. Properties:
  1201. - RigidBody2D* ownerBody (readonly)
  1202. - RigidBody2D* otherBody
  1203. - bool collideConnected
  1204. <a name="Class_ConstraintDistance2D"></a>
  1205. ### ConstraintDistance2D : Constraint2D
  1206. Methods:
  1207. - void SetOwnerBodyAnchor(const Vector2& anchor)
  1208. - void SetOtherBodyAnchor(const Vector2& anchor)
  1209. - void SetFrequencyHz(float frequencyHz)
  1210. - void SetDampingRatio(float dampingRatio)
  1211. - void SetLength(float length)
  1212. - const Vector2& GetOwnerBodyAnchor() const
  1213. - const Vector2& GetOtherBodyAnchor() const
  1214. - float GetFrequencyHz() const
  1215. - float GetDampingRatio() const
  1216. - float GetLength() const
  1217. Properties:
  1218. - Vector2& ownerBodyAnchor
  1219. - Vector2& otherBodyAnchor
  1220. - float frequencyHz
  1221. - float dampingRatio
  1222. - float length
  1223. <a name="Class_ConstraintFriction2D"></a>
  1224. ### ConstraintFriction2D : Constraint2D
  1225. Methods:
  1226. - void SetAnchor(const Vector2& anchor)
  1227. - void SetMaxForce(float maxForce)
  1228. - void SetMaxTorque(float maxTorque)
  1229. - const Vector2& GetAnchor() const
  1230. - float GetMaxForce() const
  1231. - float GetMaxTorque() const
  1232. Properties:
  1233. - Vector2& anchor
  1234. - float maxForce
  1235. - float maxTorque
  1236. <a name="Class_ConstraintGear2D"></a>
  1237. ### ConstraintGear2D : Constraint2D
  1238. Methods:
  1239. - void SetOwnerConstraint(Constraint2D* constraint)
  1240. - void SetOtherConstraint(Constraint2D* constraint)
  1241. - void SetRatio(float ratio)
  1242. - Constraint2D* GetOwnerConstraint() const
  1243. - Constraint2D* GetOtherConstraint() const
  1244. - float GetRatio() const
  1245. Properties:
  1246. - Constraint2D* ownerConstraint
  1247. - Constraint2D* otherConstraint
  1248. - float ratio
  1249. <a name="Class_ConstraintMotor2D"></a>
  1250. ### ConstraintMotor2D : Constraint2D
  1251. Methods:
  1252. - void SetLinearOffset(const Vector2& linearOffset)
  1253. - void SetAngularOffset(float angularOffset)
  1254. - void SetMaxForce(float maxForce)
  1255. - void SetMaxTorque(float maxTorque)
  1256. - void SetCorrectionFactor(float correctionFactor)
  1257. - const Vector2& GetLinearOffset() const
  1258. - float GetAngularOffset() const
  1259. - float GetMaxForce() const
  1260. - float GetMaxTorque() const
  1261. - float GetCorrectionFactor() const
  1262. Properties:
  1263. - Vector2& linearOffset
  1264. - float angularOffset
  1265. - float maxForce
  1266. - float maxTorque
  1267. - float correctionFactor
  1268. <a name="Class_ConstraintMouse2D"></a>
  1269. ### ConstraintMouse2D : Constraint2D
  1270. Methods:
  1271. - void SetTarget(const Vector2& target)
  1272. - void SetMaxForce(float maxForce)
  1273. - void SetFrequencyHz(float frequencyHz)
  1274. - void SetDampingRatio(float dampingRatio)
  1275. - const Vector2& GetTarget() const
  1276. - float GetMaxForce() const
  1277. - float GetFrequencyHz() const
  1278. - float GetDampingRatio() const
  1279. Properties:
  1280. - Vector2& target
  1281. - float maxForce
  1282. - float frequencyHz
  1283. - float dampingRatio
  1284. <a name="Class_ConstraintPrismatic2D"></a>
  1285. ### ConstraintPrismatic2D : Constraint2D
  1286. Methods:
  1287. - void SetAnchor(const Vector2& anchor)
  1288. - void SetAxis(const Vector2& axis)
  1289. - void SetEnableLimit(bool enableLimit)
  1290. - void SetLowerTranslation(float lowerTranslation)
  1291. - void SetUpperTranslation(float upperTranslation)
  1292. - void SetEnableMotor(bool enableMotor)
  1293. - void SetMaxMotorForce(float maxMotorForce)
  1294. - void SetMotorSpeed(float motorSpeed)
  1295. - const Vector2& GetAnchor() const
  1296. - const Vector2& GetAxis() const
  1297. - bool GetEnableLimit() const
  1298. - float GetLowerTranslation() const
  1299. - float GetUpperTranslation() const
  1300. - bool GetEnableMotor() const
  1301. - float GetMaxMotorForce() const
  1302. - float GetMotorSpeed() const
  1303. Properties:
  1304. - Vector2& anchor
  1305. - Vector2& axis
  1306. - bool enableLimit
  1307. - float lowerTranslation
  1308. - float upperTranslation
  1309. - bool enableMotor
  1310. - float maxMotorForce
  1311. - float motorSpeed
  1312. <a name="Class_ConstraintPulley2D"></a>
  1313. ### ConstraintPulley2D : Constraint2D
  1314. Methods:
  1315. - void SetOwnerBodyGroundAnchor(const Vector2& groundAnchor)
  1316. - void SetOtherBodyGroundAnchor(const Vector2& groundAnchor)
  1317. - void SetOwnerBodyAnchor(const Vector2& anchor)
  1318. - void SetOtherBodyAnchor(const Vector2& anchor)
  1319. - void SetRatio(float ratio)
  1320. - const Vector2& GetOwnerBodyGroundAnchor() const
  1321. - const Vector2& GetOtherBodyGroundAnchor() const
  1322. - const Vector2& GetOwnerBodyAnchor() const
  1323. - const Vector2& GetOtherBodyAnchor() const
  1324. - float GetRatio() const
  1325. Properties:
  1326. - Vector2& ownerBodyGroundAnchor
  1327. - Vector2& otherBodyGroundAnchor
  1328. - Vector2& ownerBodyAnchor
  1329. - Vector2& otherBodyAnchor
  1330. - float ratio
  1331. <a name="Class_ConstraintRevolute2D"></a>
  1332. ### ConstraintRevolute2D : Constraint2D
  1333. Methods:
  1334. - void SetAnchor(const Vector2& anchor)
  1335. - void SetEnableLimit(bool enableLimit)
  1336. - void SetLowerAngle(float lowerAngle)
  1337. - void SetUpperAngle(float upperAngle)
  1338. - void SetEnableMotor(bool enableMotor)
  1339. - void SetMotorSpeed(float motorSpeed)
  1340. - void SetMaxMotorTorque(float maxMotorTorque)
  1341. - const Vector2& GetAnchor() const
  1342. - bool GetEnableLimit() const
  1343. - float GetLowerAngle() const
  1344. - float GetUpperAngle() const
  1345. - bool GetEnableMotor() const
  1346. - float GetMotorSpeed() const
  1347. - float GetMaxMotorTorque() const
  1348. Properties:
  1349. - Vector2& anchor
  1350. - bool enableLimit
  1351. - float lowerAngle
  1352. - float upperAngle
  1353. - bool enableMotor
  1354. - float motorSpeed
  1355. - float maxMotorTorque
  1356. <a name="Class_ConstraintRope2D"></a>
  1357. ### ConstraintRope2D : Constraint2D
  1358. Methods:
  1359. - void SetOwnerBodyAnchor(const Vector2& anchor)
  1360. - void SetOtherBodyAnchor(const Vector2& anchor)
  1361. - void SetMaxLength(float maxLength)
  1362. - const Vector2& GetOwnerBodyAnchor() const
  1363. - const Vector2& GetOtherBodyAnchor() const
  1364. - float GetMaxLength() const
  1365. Properties:
  1366. - Vector2& ownerBodyAnchor
  1367. - Vector2& otherBodyAnchor
  1368. - float maxLength
  1369. <a name="Class_ConstraintWeld2D"></a>
  1370. ### ConstraintWeld2D : Constraint2D
  1371. Methods:
  1372. - void SetAnchor(const Vector2& anchor)
  1373. - void SetFrequencyHz(float frequencyHz)
  1374. - void SetDampingRatio(float dampingRatio)
  1375. - const Vector2& GetAnchor() const
  1376. - float GetFrequencyHz() const
  1377. - float GetDampingRatio() const
  1378. Properties:
  1379. - Vector2& anchor
  1380. - float frequencyHz
  1381. - float dampingRatio
  1382. <a name="Class_ConstraintWheel2D"></a>
  1383. ### ConstraintWheel2D : Constraint2D
  1384. Methods:
  1385. - void SetAnchor(const Vector2& anchor)
  1386. - void SetAxis(const Vector2& axis)
  1387. - void SetEnableMotor(bool enableMotor)
  1388. - void SetMaxMotorTorque(float maxMotorTorque)
  1389. - void SetMotorSpeed(float motorSpeed)
  1390. - void SetFrequencyHz(float frequencyHz)
  1391. - void SetDampingRatio(float dampingRatio)
  1392. - const Vector2& GetAnchor() const
  1393. - const Vector2& GetAxis() const
  1394. - bool GetEnableMotor() const
  1395. - float GetMaxMotorTorque() const
  1396. - float GetMotorSpeed() const
  1397. - float GetFrequencyHz() const
  1398. - float GetDampingRatio() const
  1399. Properties:
  1400. - Vector2& anchor
  1401. - Vector2& axis
  1402. - bool enableMotor
  1403. - float maxMotorTorque
  1404. - float motorSpeed
  1405. - float frequencyHz
  1406. - float dampingRatio
  1407. <a name="Class_Context"></a>
  1408. ### Context
  1409. Methods:
  1410. - Object* GetEventSender() const
  1411. - EventHandler* GetEventHandler() const
  1412. - const String GetTypeName(StringHash objectType) const
  1413. <a name="Class_Controls"></a>
  1414. ### Controls
  1415. Methods:
  1416. - Controls() (GC)
  1417. - Controls* new()
  1418. - void delete()
  1419. - void Reset()
  1420. - void Set(unsigned buttons, bool down = true)
  1421. - bool IsDown(unsigned button) const
  1422. - bool IsPressed(unsigned button, const Controls& previousControls) const
  1423. Properties:
  1424. - unsigned buttons
  1425. - float yaw
  1426. - float pitch
  1427. - VariantMap extraData
  1428. <a name="Class_CrowdAgent"></a>
  1429. ### CrowdAgent : Component
  1430. Methods:
  1431. - void DrawDebugGeometry(bool depthTest)
  1432. - void SetTargetPosition(const Vector3& position)
  1433. - void SetTargetVelocity(const Vector3& velocity)
  1434. - void ResetTarget()
  1435. - void SetUpdateNodePosition(bool unodepos)
  1436. - void SetMaxAccel(float maxAccel)
  1437. - void SetMaxSpeed(float maxSpeed)
  1438. - void SetRadius(float radius)
  1439. - void SetHeight(float height)
  1440. - void SetQueryFilterType(unsigned queryFilterType)
  1441. - void SetObstacleAvoidanceType(unsigned obstacleOvoidanceType)
  1442. - void SetNavigationQuality(NavigationQuality val)
  1443. - void SetNavigationPushiness(NavigationPushiness val)
  1444. - Vector3 GetPosition() const
  1445. - Vector3 GetDesiredVelocity() const
  1446. - Vector3 GetActualVelocity() const
  1447. - const Vector3& GetTargetPosition() const
  1448. - const Vector3& GetTargetVelocity() const
  1449. - CrowdAgentRequestedTarget GetRequestedTargetType() const
  1450. - CrowdAgentState GetAgentState() const
  1451. - CrowdAgentTargetState GetTargetState() const
  1452. - bool GetUpdateNodePosition() const
  1453. - float GetMaxAccel() const
  1454. - float GetMaxSpeed() const
  1455. - float GetRadius() const
  1456. - float GetHeight() const
  1457. - unsigned GetQueryFilterType() const
  1458. - unsigned GetObstacleAvoidanceType() const
  1459. - NavigationQuality GetNavigationQuality() const
  1460. - NavigationPushiness GetNavigationPushiness() const
  1461. - bool HasRequestedTarget() const
  1462. - bool HasArrived() const
  1463. - bool IsInCrowd() const
  1464. Properties:
  1465. - Vector3 targetPosition
  1466. - Vector3 targetVelocity
  1467. - bool updateNodePosition
  1468. - float maxAccel
  1469. - float maxSpeed
  1470. - float radius
  1471. - float height
  1472. - unsigned queryFilterType
  1473. - unsigned obstacleAvoidanceType
  1474. - NavigationQuality navigationQuality
  1475. - NavigationPushiness navigationPushiness
  1476. - Vector3 position (readonly)
  1477. - Vector3 desiredVelocity (readonly)
  1478. - Vector3 actualVelocity (readonly)
  1479. - CrowdAgentRequestedTarget requestedTargetType (readonly)
  1480. - CrowdAgentState agentState (readonly)
  1481. - CrowdAgentTargetState targetState (readonly)
  1482. - bool requestedTarget (readonly)
  1483. - bool arrived (readonly)
  1484. - bool inCrowd (readonly)
  1485. <a name="Class_CrowdManager"></a>
  1486. ### CrowdManager : Component
  1487. Methods:
  1488. - void DrawDebugGeometry(bool depthTest)
  1489. - void SetCrowdTarget(const Vector3& position, Node* node = 0)
  1490. - void SetCrowdVelocity(const Vector3& velocity, Node* node = 0)
  1491. - void ResetCrowdTarget(Node* node = 0)
  1492. - void SetMaxAgents(unsigned agentCt)
  1493. - void SetMaxAgentRadius(float maxAgentRadius)
  1494. - void SetNavigationMesh(NavigationMesh* navMesh)
  1495. - void SetIncludeFlags(unsigned queryFilterType, short flags)
  1496. - void SetExcludeFlags(unsigned queryFilterType, short flags)
  1497. - void SetAreaCost(unsigned queryFilterType, unsigned areaID, float cost)
  1498. - void SetObstacleAvoidanceParams(unsigned obstacleAvoidanceType, const CrowdObstacleAvoidanceParams& params)
  1499. - PODVector<CrowdAgent*> GetAgents(Node* node = 0, bool inCrowdFilter = true) const
  1500. - Vector3 FindNearestPoint(const Vector3& point, int queryFilterType)
  1501. - Vector3 MoveAlongSurface(const Vector3& start, const Vector3& end, int queryFilterType, int maxVisited = 3)
  1502. - const PODVector<Vector3>& FindPath(const Vector3& start, const Vector3& end, int queryFilterType)
  1503. - Vector3 GetRandomPoint(int queryFilterType)
  1504. - Vector3 GetRandomPointInCircle(const Vector3& center, float radius, int queryFilterType)
  1505. - float GetDistanceToWall(const Vector3& point, float radius, int queryFilterType, Vector3* hitPos = 0, Vector3* hitNormal = 0)
  1506. - Vector3 Raycast(const Vector3& start, const Vector3& end, int queryFilterType, Vector3* hitNormal = 0)
  1507. - unsigned GetMaxAgents() const
  1508. - float GetMaxAgentRadius() const
  1509. - NavigationMesh* GetNavigationMesh() const
  1510. - unsigned GetNumQueryFilterTypes() const
  1511. - unsigned GetNumAreas(unsigned queryFilterType) const
  1512. - short GetIncludeFlags(unsigned queryFilterType) const
  1513. - short GetExcludeFlags(unsigned queryFilterType) const
  1514. - float GetAreaCost(unsigned queryFilterType, unsigned areaID) const
  1515. - unsigned GetNumObstacleAvoidanceTypes() const
  1516. - const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(unsigned obstacleAvoidanceType) const
  1517. Properties:
  1518. - int maxAgents
  1519. - float maxAgentRadius
  1520. - NavigationMesh* navigationMesh
  1521. <a name="Class_Cursor"></a>
  1522. ### Cursor : BorderImage
  1523. Methods:
  1524. - Cursor() (GC)
  1525. - Cursor* new()
  1526. - void delete()
  1527. - void DefineShape(const String shape, Image* image, const IntRect& imageRect, const IntVector2& hotSpot)
  1528. - void DefineShape(CursorShape shape, Image* image, const IntRect& imageRect, const IntVector2& hotSpot)
  1529. - void SetShape(CursorShape shape)
  1530. - void SetShape(const String shape)
  1531. - void SetUseSystemShapes(bool enable)
  1532. - String GetShape() const
  1533. - bool GetUseSystemShapes() const
  1534. Properties:
  1535. - String shape
  1536. - bool useSystemShapes
  1537. <a name="Class_CustomGeometry"></a>
  1538. ### CustomGeometry : Drawable
  1539. Methods:
  1540. - void Clear()
  1541. - void SetNumGeometries(unsigned num)
  1542. - void SetDynamic(bool enable)
  1543. - void BeginGeometry(unsigned index, PrimitiveType type)
  1544. - void DefineVertex(const Vector3& position)
  1545. - void DefineNormal(const Vector3& normal)
  1546. - void DefineTangent(const Vector4& tangent)
  1547. - void DefineColor(const Color& color)
  1548. - void DefineTexCoord(const Vector2& texCoord)
  1549. - void DefineGeometry(unsigned index, PrimitiveType type, unsigned numVertices, bool hasNormals, bool hasColors, bool hasTexCoords, bool hasTangents)
  1550. - void Commit()
  1551. - void SetMaterial(Material* material)
  1552. - bool SetMaterial(unsigned index, Material* material)
  1553. - unsigned GetNumGeometries() const
  1554. - unsigned GetNumVertices(unsigned index) const
  1555. - bool IsDynamic() const
  1556. - Material* GetMaterial(unsigned index = 0)
  1557. - CustomGeometryVertex* GetVertex(unsigned geometryIndex, unsigned vertexNum)
  1558. Properties:
  1559. - Material* material
  1560. - unsigned numGeometries
  1561. - bool dynamic
  1562. <a name="Class_CustomGeometryVertex"></a>
  1563. ### CustomGeometryVertex
  1564. Properties:
  1565. - Vector3 position
  1566. - Vector3 normal
  1567. - unsigned color
  1568. - Vector2 texCoord
  1569. - Vector4 tangent
  1570. <a name="Class_Database"></a>
  1571. ### Database : Object
  1572. Methods:
  1573. - DbConnection* Connect(const String connectionString)
  1574. - void Disconnect(DbConnection* connection)
  1575. - bool IsPooling() const
  1576. - unsigned GetPoolSize() const
  1577. - void SetPoolSize(unsigned poolSize)
  1578. Properties:
  1579. - bool pooling (readonly)
  1580. - unsigned poolSize
  1581. <a name="Class_DbConnection"></a>
  1582. ### DbConnection : Object
  1583. Methods:
  1584. - void Finalize()
  1585. - DbResult Execute(const String sql, bool useCursorEvent = false)
  1586. - const String GetConnectionString() const
  1587. - bool IsConnected() const
  1588. Properties:
  1589. - const String connectionString (readonly)
  1590. - bool connected (readonly)
  1591. <a name="Class_DbResult"></a>
  1592. ### DbResult
  1593. Methods:
  1594. - unsigned GetNumColumns() const
  1595. - unsigned GetNumRows() const
  1596. - long GetNumAffectedRows() const
  1597. Properties:
  1598. - unsigned numColumns (readonly)
  1599. - unsigned numRows (readonly)
  1600. - long numAffectedRows (readonly)
  1601. <a name="Class_DebugHud"></a>
  1602. ### DebugHud : Object
  1603. Methods:
  1604. - void Update()
  1605. - void SetDefaultStyle(XMLFile* style)
  1606. - void SetMode(unsigned mode)
  1607. - void SetProfilerMaxDepth(unsigned depth)
  1608. - void SetProfilerInterval(float interval)
  1609. - void SetUseRendererStats(bool enable)
  1610. - void Toggle(unsigned mode)
  1611. - void ToggleAll()
  1612. - XMLFile* GetDefaultStyle() const
  1613. - Text* GetStatsText() const
  1614. - Text* GetModeText() const
  1615. - Text* GetProfilerText() const
  1616. - unsigned GetMode() const
  1617. - unsigned GetProfilerMaxDepth() const
  1618. - float GetProfilerInterval() const
  1619. - bool GetUseRendererStats() const
  1620. - void SetAppStats(const String label, const Variant stats)
  1621. - void SetAppStats(const String label, const String stats)
  1622. - bool ResetAppStats(const String label)
  1623. - void ClearAppStats()
  1624. Properties:
  1625. - XMLFile* defaultStyle
  1626. - Text* statsText (readonly)
  1627. - Text* modeText (readonly)
  1628. - Text* profilerText (readonly)
  1629. - unsigned mode
  1630. - unsigned profilerMaxDepth
  1631. - float profilerInterval
  1632. - bool useRendererStats
  1633. <a name="Class_DebugRenderer"></a>
  1634. ### DebugRenderer : Component
  1635. Methods:
  1636. - void SetLineAntiAlias(bool enable)
  1637. - void SetView(Camera* camera)
  1638. - void AddLine(const Vector3& start, const Vector3& end, const Color& color, bool depthTest = true)
  1639. - void AddLine(const Vector3& start, const Vector3& end, unsigned color, bool depthTest = true)
  1640. - void AddTriangle(const Vector3& v1, const Vector3& v2, const Vector3& v3, const Color& color, bool depthTest = true)
  1641. - void AddTriangle(const Vector3& v1, const Vector3& v2, const Vector3& v3, unsigned color, bool depthTest = true)
  1642. - void AddPolygon(const Vector3& v1, const Vector3& v2, const Vector3& v3, const Vector3& v4, const Color& color, bool depthTest = true)
  1643. - void AddPolygon(const Vector3& v1, const Vector3& v2, const Vector3& v3, const Vector3& v4, unsigned color, bool depthTest = true)
  1644. - void AddNode(Node* node, float scale = 1.0f, bool depthTest = true)
  1645. - void AddBoundingBox(const BoundingBox& box, const Color& color, bool depthTest = true, bool solid = false)
  1646. - void AddBoundingBox(const BoundingBox& box, const Matrix3x4& transform, const Color& color, bool depthTest = true, bool solid = false)
  1647. - void AddFrustum(const Frustum& frustum, const Color& color, bool depthTest = true)
  1648. - void AddPolyhedron(const Polyhedron& poly, const Color& color, bool depthTest = true)
  1649. - void AddSphere(const Sphere& sphere, const Color& color, bool depthTest = true)
  1650. - void AddSkeleton(const Skeleton& skeleton, const Color& color, bool depthTest = true)
  1651. - void AddTriangleMesh(const void* vertexData, unsigned vertexSize, const void* indexData, unsigned indexSize, unsigned indexStart, unsigned indexCount, const Matrix3x4& transform, const Color& color, bool depthTest = true)
  1652. - void AddCircle(const Vector3& center, const Vector3& normal, float radius, const Color& color, int steps = 64, bool depthTest = true)
  1653. - void AddCross(const Vector3& center, float size, const Color& color, bool depthTest = true)
  1654. - void AddQuad(const Vector3& center, float width, float height, const Color& color, bool depthTest = true)
  1655. - void Render()
  1656. - bool GetLineAntiAlias() const
  1657. - const Matrix3x4& GetView() const
  1658. - const Matrix4& GetProjection() const
  1659. - const Frustum& GetFrustum() const
  1660. - bool IsInside(const BoundingBox& box) const
  1661. Properties:
  1662. - bool lineAntiAlias
  1663. - Matrix3x4& view (readonly)
  1664. - Matrix4& projection (readonly)
  1665. - Frustum& frustum (readonly)
  1666. <a name="Class_DecalSet"></a>
  1667. ### DecalSet : Drawable
  1668. Methods:
  1669. - void SetMaterial(Material* material)
  1670. - void SetMaxVertices(unsigned num)
  1671. - void SetMaxIndices(unsigned num)
  1672. - void SetOptimizeBufferSize(bool enable)
  1673. - bool AddDecal(Drawable* target, const Vector3& worldPosition, const Quaternion& worldRotation, float size, float aspectRatio, float depth, const Vector2& topLeftUV, const Vector2& bottomRightUV, float timeToLive = 0.0f, float normalCutoff = 0.1f, unsigned subGeometry = M_MAX_UNSIGNED)
  1674. - void RemoveDecals(unsigned num)
  1675. - void RemoveAllDecals()
  1676. - Material* GetMaterial() const
  1677. - unsigned GetNumDecals() const
  1678. - unsigned GetNumVertices() const
  1679. - unsigned GetNumIndices() const
  1680. - unsigned GetMaxVertices() const
  1681. - unsigned GetMaxIndices() const
  1682. - bool GetOptimizeBufferSize() const
  1683. Properties:
  1684. - Material* material
  1685. - unsigned numDecals (readonly)
  1686. - unsigned numVertices (readonly)
  1687. - unsigned numIndices (readonly)
  1688. - unsigned maxVertices
  1689. - unsigned maxIndices
  1690. - bool optimizeBufferSize
  1691. <a name="Class_Deserializer"></a>
  1692. ### Deserializer
  1693. Methods:
  1694. - VectorBuffer Read(unsigned size)
  1695. - unsigned Seek(unsigned position)
  1696. - const String GetName() const
  1697. - unsigned GetChecksum()
  1698. - unsigned GetPosition() const
  1699. - unsigned GetSize() const
  1700. - bool IsEof() const
  1701. - int ReadInt()
  1702. - long ReadInt64()
  1703. - short ReadShort()
  1704. - char ReadByte()
  1705. - unsigned ReadUInt()
  1706. - long ReadUInt64()
  1707. - short ReadUShort()
  1708. - char ReadUByte()
  1709. - bool ReadBool()
  1710. - float ReadFloat()
  1711. - double ReadDouble()
  1712. - IntRect ReadIntRect()
  1713. - IntVector2 ReadIntVector2()
  1714. - IntVector3 ReadIntVector3()
  1715. - Rect ReadRect()
  1716. - Vector2 ReadVector2()
  1717. - Vector3 ReadVector3()
  1718. - Vector3 ReadPackedVector3(float maxAbsCoord)
  1719. - Vector4 ReadVector4()
  1720. - Quaternion ReadQuaternion()
  1721. - Quaternion ReadPackedQuaternion()
  1722. - Matrix3 ReadMatrix3()
  1723. - Matrix3x4 ReadMatrix3x4()
  1724. - Matrix4 ReadMatrix4()
  1725. - Color ReadColor()
  1726. - BoundingBox ReadBoundingBox()
  1727. - String ReadString()
  1728. - String ReadFileID()
  1729. - StringHash ReadStringHash()
  1730. - VectorBuffer ReadBuffer()
  1731. - ResourceRef ReadResourceRef()
  1732. - ResourceRefList ReadResourceRefList()
  1733. - Variant ReadVariant()
  1734. - Variant ReadVariant(VariantType type)
  1735. - VariantVector ReadVariantVector()
  1736. - VariantMap ReadVariantMap()
  1737. - unsigned ReadVLE()
  1738. - unsigned ReadNetID()
  1739. - String ReadLine()
  1740. Properties:
  1741. - String name (readonly)
  1742. - unsigned checksum (readonly)
  1743. - unsigned position (readonly)
  1744. - unsigned size (readonly)
  1745. - bool eof (readonly)
  1746. <a name="Class_Drawable"></a>
  1747. ### Drawable : Component
  1748. Methods:
  1749. - void SetDrawDistance(float distance)
  1750. - void SetShadowDistance(float distance)
  1751. - void SetLodBias(float bias)
  1752. - void SetViewMask(unsigned mask)
  1753. - void SetLightMask(unsigned mask)
  1754. - void SetShadowMask(unsigned mask)
  1755. - void SetZoneMask(unsigned mask)
  1756. - void SetMaxLights(unsigned num)
  1757. - void SetCastShadows(bool enable)
  1758. - void SetOccluder(bool enable)
  1759. - void SetOccludee(bool enable)
  1760. - void MarkForUpdate()
  1761. - const BoundingBox& GetBoundingBox() const
  1762. - const BoundingBox& GetWorldBoundingBox()
  1763. - char GetDrawableFlags() const
  1764. - float GetDrawDistance() const
  1765. - float GetShadowDistance() const
  1766. - float GetLodBias() const
  1767. - unsigned GetViewMask() const
  1768. - unsigned GetLightMask() const
  1769. - unsigned GetShadowMask() const
  1770. - unsigned GetZoneMask() const
  1771. - unsigned GetMaxLights() const
  1772. - bool GetCastShadows() const
  1773. - bool IsOccluder() const
  1774. - bool IsOccludee() const
  1775. - bool IsInView() const
  1776. - bool IsInView(Camera* tolua_var_2) const
  1777. - Zone* GetZone() const
  1778. Properties:
  1779. - BoundingBox& worldBoundingBox (readonly)
  1780. - char drawableFlags (readonly)
  1781. - float drawDistance
  1782. - float shadowDistance
  1783. - float lodBias
  1784. - unsigned viewMask
  1785. - unsigned lightMask
  1786. - unsigned shadowMask
  1787. - unsigned zoneMask
  1788. - unsigned maxLights
  1789. - bool castShadows
  1790. - bool occluder
  1791. - bool occludee
  1792. - bool inView (readonly)
  1793. - Zone* zone (readonly)
  1794. <a name="Class_Drawable2D"></a>
  1795. ### Drawable2D : Drawable
  1796. Methods:
  1797. - void SetLayer(int layer)
  1798. - void SetOrderInLayer(int orderInLayer)
  1799. - int GetLayer() const
  1800. - int GetOrderInLayer() const
  1801. Properties:
  1802. - int layer
  1803. - int orderInLayer
  1804. <a name="Class_DropDownList"></a>
  1805. ### DropDownList : Menu
  1806. Methods:
  1807. - DropDownList() (GC)
  1808. - DropDownList* new()
  1809. - void delete()
  1810. - void AddItem(UIElement* item)
  1811. - void InsertItem(unsigned index, UIElement* item)
  1812. - void RemoveItem(UIElement* item)
  1813. - void RemoveItem(unsigned index)
  1814. - void RemoveAllItems()
  1815. - void SetSelection(unsigned index)
  1816. - void SetPlaceholderText(const String text)
  1817. - void SetResizePopup(bool enable)
  1818. - unsigned GetNumItems() const
  1819. - UIElement* GetItem(unsigned index) const
  1820. - const PODVector<UIElement*>& GetItems() const
  1821. - unsigned GetSelection() const
  1822. - UIElement* GetSelectedItem() const
  1823. - ListView* GetListView() const
  1824. - UIElement* GetPlaceholder() const
  1825. - const String GetPlaceholderText() const
  1826. - bool GetResizePopup() const
  1827. Properties:
  1828. - unsigned numItems (readonly)
  1829. - unsigned selection
  1830. - UIElement* selectedItem (readonly)
  1831. - ListView* listView (readonly)
  1832. - UIElement* placeholder (readonly)
  1833. - String placeholderText
  1834. - bool resizePopup
  1835. <a name="Class_DynamicNavigationMesh"></a>
  1836. ### DynamicNavigationMesh : NavigationMesh
  1837. Methods:
  1838. - void SetDrawObstacles(bool enable)
  1839. - void SetMaxLayers(unsigned maxLayers)
  1840. - void SetMaxObstacles(unsigned maxObstacles)
  1841. - bool GetDrawObstacles() const
  1842. - unsigned GetMaxLayers() const
  1843. - unsigned GetMaxObstacles() const
  1844. Properties:
  1845. - bool drawObstacles
  1846. - int maxObstacles
  1847. - unsigned maxLayers
  1848. <a name="Class_Engine"></a>
  1849. ### Engine : Object
  1850. Methods:
  1851. - void RunFrame()
  1852. - Console* CreateConsole()
  1853. - DebugHud* CreateDebugHud()
  1854. - void SetMinFps(int fps)
  1855. - void SetMaxFps(int fps)
  1856. - void SetMaxInactiveFps(int fps)
  1857. - void SetTimeStepSmoothing(int frames)
  1858. - void SetPauseMinimized(bool enable)
  1859. - void SetAutoExit(bool enable)
  1860. - void Exit()
  1861. - void DumpProfiler()
  1862. - void DumpResources(bool dumpFileName = false)
  1863. - void DumpMemory()
  1864. - int GetMinFps() const
  1865. - int GetMaxFps() const
  1866. - int GetMaxInactiveFps() const
  1867. - int GetTimeStepSmoothing() const
  1868. - bool GetPauseMinimized() const
  1869. - bool GetAutoExit() const
  1870. - bool IsInitialized() const
  1871. - bool IsExiting() const
  1872. - bool IsHeadless() const
  1873. Properties:
  1874. - int minFps
  1875. - int maxFps
  1876. - int maxInactiveFps
  1877. - int timeStepSmoothing
  1878. - bool pauseMinimized
  1879. - bool autoExit
  1880. - bool initialized (readonly)
  1881. - bool exiting (readonly)
  1882. - bool headless (readonly)
  1883. <a name="Class_File"></a>
  1884. ### File : Object
  1885. Methods:
  1886. - File() (GC)
  1887. - File* new()
  1888. - File(const String fileName, FileMode mode = FILE_READ) (GC)
  1889. - File* new(const String fileName, FileMode mode = FILE_READ)
  1890. - File(PackageFile* package, const String fileName) (GC)
  1891. - File* new(PackageFile* package, const String fileName)
  1892. - void delete()
  1893. - bool Open(const String fileName, FileMode mode = FILE_READ)
  1894. - bool Open(PackageFile* package, const String fileName)
  1895. - void Close()
  1896. - void Flush()
  1897. - void SetName(const String name)
  1898. - FileMode GetMode() const
  1899. - bool IsOpen() const
  1900. - void* GetHandle() const
  1901. - bool IsPackaged() const
  1902. - VectorBuffer Read(unsigned size)
  1903. - unsigned Seek(unsigned position)
  1904. - const String GetName() const
  1905. - unsigned GetChecksum()
  1906. - unsigned GetPosition() const
  1907. - unsigned GetSize() const
  1908. - bool IsEof() const
  1909. - int ReadInt()
  1910. - long ReadInt64()
  1911. - short ReadShort()
  1912. - char ReadByte()
  1913. - unsigned ReadUInt()
  1914. - long ReadUInt64()
  1915. - short ReadUShort()
  1916. - char ReadUByte()
  1917. - bool ReadBool()
  1918. - float ReadFloat()
  1919. - double ReadDouble()
  1920. - IntRect ReadIntRect()
  1921. - IntVector2 ReadIntVector2()
  1922. - IntVector3 ReadIntVector3()
  1923. - Rect ReadRect()
  1924. - Vector2 ReadVector2()
  1925. - Vector3 ReadVector3()
  1926. - Vector3 ReadPackedVector3(float maxAbsCoord)
  1927. - Vector4 ReadVector4()
  1928. - Quaternion ReadQuaternion()
  1929. - Quaternion ReadPackedQuaternion()
  1930. - Matrix3 ReadMatrix3()
  1931. - Matrix3x4 ReadMatrix3x4()
  1932. - Matrix4 ReadMatrix4()
  1933. - Color ReadColor()
  1934. - BoundingBox ReadBoundingBox()
  1935. - String ReadString()
  1936. - String ReadFileID()
  1937. - StringHash ReadStringHash()
  1938. - VectorBuffer ReadBuffer()
  1939. - ResourceRef ReadResourceRef()
  1940. - ResourceRefList ReadResourceRefList()
  1941. - Variant ReadVariant()
  1942. - Variant ReadVariant(VariantType type)
  1943. - VariantVector ReadVariantVector()
  1944. - VariantMap ReadVariantMap()
  1945. - unsigned ReadVLE()
  1946. - unsigned ReadNetID()
  1947. - String ReadLine()
  1948. - unsigned Write(const VectorBuffer& buffer)
  1949. - bool WriteInt(int value)
  1950. - bool WriteInt64(long value)
  1951. - bool WriteShort(short value)
  1952. - bool WriteByte(char value)
  1953. - bool WriteUInt(unsigned value)
  1954. - bool WriteUInt64(long value)
  1955. - bool WriteUShort(short value)
  1956. - bool WriteUByte(char value)
  1957. - bool WriteBool(bool value)
  1958. - bool WriteFloat(float value)
  1959. - bool WriteDouble(double value)
  1960. - bool WriteIntRect(const IntRect& value)
  1961. - bool WriteIntVector2(const IntVector2& value)
  1962. - bool WriteIntVector3(const IntVector3& value)
  1963. - bool WriteRect(const Rect& value)
  1964. - bool WriteVector2(const Vector2& value)
  1965. - bool WriteVector3(const Vector3& value)
  1966. - bool WritePackedVector3(const Vector3& value, float maxAbsCoord)
  1967. - bool WriteVector4(const Vector4& value)
  1968. - bool WriteQuaternion(const Quaternion& value)
  1969. - bool WritePackedQuaternion(const Quaternion& value)
  1970. - bool WriteMatrix3(const Matrix3& value)
  1971. - bool WriteMatrix3x4(const Matrix3x4& value)
  1972. - bool WriteMatrix4(const Matrix4& value)
  1973. - bool WriteColor(const Color& value)
  1974. - bool WriteBoundingBox(const BoundingBox& value)
  1975. - bool WriteString(const String value)
  1976. - bool WriteFileID(const String value)
  1977. - bool WriteStringHash(const StringHash& value)
  1978. - bool WriteBuffer(const VectorBuffer& buffer)
  1979. - bool WriteResourceRef(const ResourceRef& value)
  1980. - bool WriteResourceRefList(const ResourceRefList& value)
  1981. - bool WriteVariant(const Variant& value)
  1982. - bool WriteVariantData(const Variant& value)
  1983. - bool WriteVariantVector(const VariantVector& value)
  1984. - bool WriteVariantMap(const VariantMap& value)
  1985. - bool WriteVLE(unsigned value)
  1986. - bool WriteNetID(unsigned value)
  1987. - bool WriteLine(const String value)
  1988. Properties:
  1989. - FileMode mode (readonly)
  1990. - bool open (readonly)
  1991. - bool packaged (readonly)
  1992. - String name (readonly)
  1993. - unsigned checksum (readonly)
  1994. - unsigned position (readonly)
  1995. - unsigned size (readonly)
  1996. - bool eof (readonly)
  1997. <a name="Class_FileSelector"></a>
  1998. ### FileSelector : Object
  1999. Methods:
  2000. - FileSelector() (GC)
  2001. - FileSelector* new()
  2002. - void delete()
  2003. - void SetDefaultStyle(XMLFile* style)
  2004. - void SetTitle(const String text)
  2005. - void SetButtonTexts(const String okText, const String cancelText)
  2006. - void SetPath(const String path)
  2007. - void SetFileName(const String fileName)
  2008. - void SetFilters(const Vector<String>& filters, unsigned defaultIndex)
  2009. - void SetDirectoryMode(bool enable)
  2010. - void UpdateElements()
  2011. - XMLFile* GetDefaultStyle() const
  2012. - Window* GetWindow() const
  2013. - Text* GetTitleText() const
  2014. - ListView* GetFileList() const
  2015. - LineEdit* GetPathEdit() const
  2016. - LineEdit* GetFileNameEdit() const
  2017. - DropDownList* GetFilterList() const
  2018. - Button* GetOKButton() const
  2019. - Button* GetCancelButton() const
  2020. - Button* GetCloseButton() const
  2021. - const String GetTitle() const
  2022. - const String GetPath() const
  2023. - const String GetFileName() const
  2024. - const String GetFilter() const
  2025. - unsigned GetFilterIndex() const
  2026. - bool GetDirectoryMode() const
  2027. Properties:
  2028. - XMLFile* defaultStyle
  2029. - Window* window (readonly)
  2030. - Text* titleText (readonly)
  2031. - ListView* fileList (readonly)
  2032. - LineEdit* pathEdit (readonly)
  2033. - LineEdit* fileNameEdit (readonly)
  2034. - DropDownList* filterList (readonly)
  2035. - Button* OKButton (readonly)
  2036. - Button* cancelButton (readonly)
  2037. - Button* closeButton (readonly)
  2038. - String title
  2039. - String path
  2040. - String fileName
  2041. - String filter (readonly)
  2042. - unsigned filterIndex (readonly)
  2043. - bool directoryMode
  2044. <a name="Class_FileSelectorEntry"></a>
  2045. ### FileSelectorEntry
  2046. Properties:
  2047. - String name
  2048. - bool directory
  2049. <a name="Class_FileSystem"></a>
  2050. ### FileSystem : Object
  2051. Methods:
  2052. - bool SetCurrentDir(const String pathName)
  2053. - bool CreateDir(const String pathName)
  2054. - void SetExecuteConsoleCommands(bool enable)
  2055. - int SystemCommand(const String commandLine, bool redirectStdOutToLog = false)
  2056. - int SystemRun(const String fileName, const Vector<String>& arguments)
  2057. - unsigned SystemCommandAsync(const String commandLine)
  2058. - unsigned SystemRunAsync(const String fileName, const Vector<String>& arguments)
  2059. - bool SystemOpen(const String fileName, const String mode = String::EMPTY)
  2060. - bool Copy(const String srcFileName, const String destFileName)
  2061. - bool Rename(const String srcFileName, const String destFileName)
  2062. - bool Delete(const String fileName)
  2063. - bool SetLastModifiedTime(const String fileName, unsigned newTime)
  2064. - String GetCurrentDir() const
  2065. - bool GetExecuteConsoleCommands() const
  2066. - bool HasRegisteredPaths() const
  2067. - bool CheckAccess(const String pathName) const
  2068. - unsigned GetLastModifiedTime(const String fileName) const
  2069. - bool FileExists(const String fileName) const
  2070. - bool DirExists(const String pathName) const
  2071. - const Vector<String>& ScanDir(const String pathName, const String filter, unsigned flags, bool recursive) const
  2072. - String GetProgramDir() const
  2073. - String GetUserDocumentsDir() const
  2074. - String GetAppPreferencesDir(const String org, const String app) const
  2075. <a name="Class_FocusParameters"></a>
  2076. ### FocusParameters
  2077. Methods:
  2078. - FocusParameters() (GC)
  2079. - FocusParameters* new()
  2080. - FocusParameters(bool focus, bool nonUniform, bool autoSize, float quantize, float minView) (GC)
  2081. - FocusParameters* new(bool focus, bool nonUniform, bool autoSize, float quantize, float minView)
  2082. - void delete()
  2083. Properties:
  2084. - bool focus
  2085. - bool nonUniform
  2086. - bool autoSize
  2087. - float quantize
  2088. - float minView
  2089. <a name="Class_Font"></a>
  2090. ### Font : Resource
  2091. Methods:
  2092. - void SetAbsoluteGlyphOffset(const IntVector2& offset)
  2093. - void SetScaledGlyphOffset(const Vector2& offset)
  2094. - const IntVector2& GetAbsoluteGlyphOffset() const
  2095. - const Vector2& GetScaledGlyphOffset() const
  2096. - IntVector2 GetTotalGlyphOffset(int pointSize) const
  2097. - FontType GetFontType() const
  2098. - bool IsSDFFont() const
  2099. Properties:
  2100. - IntVector2 absoluteGlyphOffset
  2101. - Vector2 scaledGlyphOffset
  2102. - FontType fontType (readonly)
  2103. <a name="Class_Frustum"></a>
  2104. ### Frustum
  2105. Methods:
  2106. - Frustum() (GC)
  2107. - Frustum* new()
  2108. - Frustum(const Frustum& frustum) (GC)
  2109. - Frustum* new(const Frustum& frustum)
  2110. - void delete()
  2111. - void Define(float fov, float aspectRatio, float zoom, float nearZ, float farZ)
  2112. - void Define(float fov, float aspectRatio, float zoom, float nearZ, float farZ, const Matrix3x4& transform)
  2113. - void Define(const Vector3& near, const Vector3& far)
  2114. - void Define(const Vector3& near, const Vector3& far, const Matrix3x4& transform)
  2115. - void Define(const BoundingBox& box)
  2116. - void Define(const BoundingBox& box, const Matrix3x4& transform)
  2117. - void Define(const Matrix4& projection)
  2118. - void DefineOrtho(float orthoSize, float aspectRatio, float zoom, float nearZ, float farZ)
  2119. - void DefineOrtho(float orthoSize, float aspectRatio, float zoom, float nearZ, float farZ, const Matrix3x4& transform)
  2120. - void DefineSplit(const Matrix4& projection, float near, float far)
  2121. - void Transform(const Matrix3& transform)
  2122. - void Transform(const Matrix3x4& transform)
  2123. - Intersection IsInside(const Vector3& point) const
  2124. - Intersection IsInside(const Sphere& sphere) const
  2125. - Intersection IsInsideFast(const Sphere& sphere) const
  2126. - Intersection IsInside(const BoundingBox& box) const
  2127. - Intersection IsInsideFast(const BoundingBox& box) const
  2128. - float Distance(const Vector3& point) const
  2129. - Frustum Transformed(const Matrix3& transform) const
  2130. - Frustum Transformed(const Matrix3x4& transform) const
  2131. - Rect Projected(const Matrix4& transform) const
  2132. - void UpdatePlanes()
  2133. <a name="Class_Geometry"></a>
  2134. ### Geometry : Object
  2135. Methods:
  2136. - Geometry() (GC)
  2137. - Geometry* new()
  2138. - void delete()
  2139. - bool SetNumVertexBuffers(unsigned num)
  2140. - bool SetVertexBuffer(unsigned index, VertexBuffer* buffer)
  2141. - void SetIndexBuffer(IndexBuffer* buffer)
  2142. - bool SetDrawRange(PrimitiveType type, unsigned indexStart, unsigned indexCount, bool getUsedVertexRange = true)
  2143. - bool SetDrawRange(PrimitiveType type, unsigned indexStart, unsigned indexCount, unsigned vertexStart, unsigned vertexCount, bool checkIllegal = true)
  2144. - void SetLodDistance(float distance)
  2145. - unsigned GetNumVertexBuffers() const
  2146. - VertexBuffer* GetVertexBuffer(unsigned index) const
  2147. - IndexBuffer* GetIndexBuffer() const
  2148. - PrimitiveType GetPrimitiveType() const
  2149. - unsigned GetIndexStart() const
  2150. - unsigned GetIndexCount() const
  2151. - unsigned GetVertexStart() const
  2152. - unsigned GetVertexCount() const
  2153. - float GetLodDistance()
  2154. - bool IsEmpty() const
  2155. Properties:
  2156. - unsigned numVertexBuffers
  2157. - IndexBuffer* indexBuffer
  2158. - PrimitiveType primitiveType (readonly)
  2159. - unsigned indexStart (readonly)
  2160. - unsigned indexCount (readonly)
  2161. - unsigned vertexStart (readonly)
  2162. - unsigned vertexCount (readonly)
  2163. - float lodDistance
  2164. - bool empty (readonly)
  2165. <a name="Class_Graphics"></a>
  2166. ### Graphics : Object
  2167. Methods:
  2168. - void SetWindowTitle(const String windowTitle)
  2169. - void SetWindowIcon(Image* windowIcon)
  2170. - void SetWindowPosition(const IntVector2& position)
  2171. - void SetWindowPosition(int x, int y)
  2172. - bool SetMode(int width, int height, bool fullscreen, bool borderless, bool resizable, bool highDPI, bool vsync, bool tripleBuffer, int multiSample)
  2173. - bool SetMode(int width, int height)
  2174. - void SetSRGB(bool enable)
  2175. - void SetDither(bool enable)
  2176. - void SetFlushGPU(bool enable)
  2177. - void SetOrientations(const String orientations)
  2178. - bool ToggleFullscreen()
  2179. - void Maximize()
  2180. - void Minimize()
  2181. - void Close()
  2182. - bool TakeScreenShot(Image& destImage)
  2183. - void BeginDumpShaders(const String fileName)
  2184. - void EndDumpShaders()
  2185. - void PrecacheShaders(Deserializer& source)
  2186. - void PrecacheShaders(const String fileName)
  2187. - void SetShaderCacheDir(const String path)
  2188. - bool IsInitialized() const
  2189. - void* GetExternalWindow() const
  2190. - const String GetWindowTitle() const
  2191. - const String GetApiName() const
  2192. - IntVector2 GetWindowPosition() const
  2193. - int GetWidth() const
  2194. - int GetHeight() const
  2195. - int GetMultiSample() const
  2196. - IntVector2 GetSize() const
  2197. - bool GetFullscreen() const
  2198. - bool GetResizable() const
  2199. - bool GetBorderless() const
  2200. - bool GetVSync() const
  2201. - bool GetTripleBuffer() const
  2202. - bool GetSRGB() const
  2203. - bool GetDither() const
  2204. - bool GetFlushGPU() const
  2205. - const String GetOrientations() const
  2206. - bool IsDeviceLost() const
  2207. - unsigned GetNumPrimitives() const
  2208. - unsigned GetNumBatches() const
  2209. - unsigned GetDummyColorFormat() const
  2210. - unsigned GetShadowMapFormat() const
  2211. - unsigned GetHiresShadowMapFormat() const
  2212. - bool GetInstancingSupport() const
  2213. - bool GetLightPrepassSupport() const
  2214. - bool GetDeferredSupport() const
  2215. - bool GetHardwareShadowSupport() const
  2216. - bool GetReadableDepthSupport() const
  2217. - bool GetSRGBSupport() const
  2218. - bool GetSRGBWriteSupport() const
  2219. - IntVector2 GetDesktopResolution() const
  2220. - const String GetShaderCacheDir() const
  2221. - unsigned GetAlphaFormat()
  2222. - unsigned GetLuminanceFormat()
  2223. - unsigned GetLuminanceAlphaFormat()
  2224. - unsigned GetRGBFormat()
  2225. - unsigned GetRGBAFormat()
  2226. - unsigned GetRGBA16Format()
  2227. - unsigned GetRGBAFloat16Format()
  2228. - unsigned GetRGBAFloat32Format()
  2229. - unsigned GetRG16Format()
  2230. - unsigned GetRGFloat16Format()
  2231. - unsigned GetRGFloat32Format()
  2232. - unsigned GetFloat16Format()
  2233. - unsigned GetFloat32Format()
  2234. - unsigned GetLinearDepthFormat()
  2235. - unsigned GetDepthStencilFormat()
  2236. - unsigned GetReadableDepthFormat()
  2237. - unsigned GetFormat(const String formatName)
  2238. - unsigned GetMaxBones()
  2239. Properties:
  2240. - bool initialized (readonly)
  2241. - String windowTitle
  2242. - String apiName (readonly)
  2243. - IntVector2 windowPosition
  2244. - int width (readonly)
  2245. - int height (readonly)
  2246. - int multiSample (readonly)
  2247. - IntVector2 size (readonly)
  2248. - bool fullscreen (readonly)
  2249. - bool resizable (readonly)
  2250. - bool borderless (readonly)
  2251. - bool vSync (readonly)
  2252. - bool tripleBuffer (readonly)
  2253. - bool sRGB
  2254. - bool dither
  2255. - bool flushGPU
  2256. - String orientations
  2257. - bool deviceLost (readonly)
  2258. - unsigned numPrimitives (readonly)
  2259. - unsigned numBatches (readonly)
  2260. - unsigned dummyColorFormat (readonly)
  2261. - unsigned shadowMapFormat (readonly)
  2262. - unsigned hiresShadowMapFormat (readonly)
  2263. - bool instancingSupport (readonly)
  2264. - bool lightPrepassSupport (readonly)
  2265. - bool deferredSupport (readonly)
  2266. - bool hardwareShadowSupport (readonly)
  2267. - bool readableDepthSupport (readonly)
  2268. - bool sRGBSupport (readonly)
  2269. - bool sRGBWriteSupport (readonly)
  2270. - IntVector2 desktopResolution (readonly)
  2271. - String shaderCacheDir
  2272. <a name="Class_HierarchyContainer"></a>
  2273. ### HierarchyContainer : UIElement
  2274. <a name="Class_HttpRequest"></a>
  2275. ### HttpRequest
  2276. Methods:
  2277. - const String GetURL() const
  2278. - const String GetVerb() const
  2279. - String GetError() const
  2280. - HttpRequestState GetState() const
  2281. - unsigned GetAvailableSize() const
  2282. - bool IsOpen() const
  2283. - VectorBuffer Read(unsigned size)
  2284. - bool IsEof() const
  2285. - int ReadInt()
  2286. - short ReadShort()
  2287. - char ReadByte()
  2288. - unsigned ReadUInt()
  2289. - short ReadUShort()
  2290. - char ReadUByte()
  2291. - bool ReadBool()
  2292. - float ReadFloat()
  2293. - double ReadDouble()
  2294. - IntRect ReadIntRect()
  2295. - IntVector2 ReadIntVector2()
  2296. - IntVector3 ReadIntVector3()
  2297. - Rect ReadRect()
  2298. - Vector2 ReadVector2()
  2299. - Vector3 ReadVector3()
  2300. - Vector3 ReadPackedVector3(float maxAbsCoord)
  2301. - Vector4 ReadVector4()
  2302. - Quaternion ReadQuaternion()
  2303. - Quaternion ReadPackedQuaternion()
  2304. - Matrix3 ReadMatrix3()
  2305. - Matrix3x4 ReadMatrix3x4()
  2306. - Matrix4 ReadMatrix4()
  2307. - Color ReadColor()
  2308. - BoundingBox ReadBoundingBox()
  2309. - String ReadString()
  2310. - String ReadFileID()
  2311. - StringHash ReadStringHash()
  2312. - VectorBuffer ReadBuffer()
  2313. - ResourceRef ReadResourceRef()
  2314. - ResourceRefList ReadResourceRefList()
  2315. - Variant ReadVariant()
  2316. - Variant ReadVariant(VariantType type)
  2317. - VariantVector ReadVariantVector()
  2318. - VariantMap ReadVariantMap()
  2319. - unsigned ReadVLE()
  2320. - unsigned ReadNetID()
  2321. - String ReadLine()
  2322. Properties:
  2323. - String URL (readonly)
  2324. - String verb (readonly)
  2325. - String error (readonly)
  2326. - HttpRequestState state (readonly)
  2327. - unsigned availableSize (readonly)
  2328. - bool open (readonly)
  2329. <a name="Class_Image"></a>
  2330. ### Image : Resource
  2331. Methods:
  2332. - Image() (GC)
  2333. - Image* new()
  2334. - void delete()
  2335. - bool SetSize(int width, int height, unsigned components)
  2336. - bool SetSize(int width, int height, int depth, unsigned components)
  2337. - void SetPixel(int x, int y, const Color& color)
  2338. - void SetPixel(int x, int y, int z, const Color& color)
  2339. - void SetPixelInt(int x, int y, unsigned uintColor)
  2340. - void SetPixelInt(int x, int y, int z, unsigned uintColor)
  2341. - bool LoadColorLUT(Deserializer& source)
  2342. - bool LoadColorLUT(const String fileName)
  2343. - bool FlipHorizontal()
  2344. - bool FlipVertical()
  2345. - bool Resize(int width, int height)
  2346. - void Clear(const Color& color)
  2347. - void ClearInt(unsigned uintColor)
  2348. - bool SaveBMP(const String fileName) const
  2349. - bool SavePNG(const String fileName) const
  2350. - bool SaveTGA(const String fileName) const
  2351. - bool SaveJPG(const String fileName, int quality) const
  2352. - bool SaveDDS(const String fileName) const
  2353. - Color GetPixel(int x, int y) const
  2354. - Color GetPixel(int x, int y, int z) const
  2355. - unsigned GetPixelInt(int x, int y) const
  2356. - unsigned GetPixelInt(int x, int y, int z) const
  2357. - Color GetPixelBilinear(float x, float y) const
  2358. - Color GetPixelTrilinear(float x, float y, float z) const
  2359. - int GetWidth() const
  2360. - int GetHeight() const
  2361. - int GetDepth() const
  2362. - unsigned GetComponents() const
  2363. - bool IsCompressed() const
  2364. - CompressedFormat GetCompressedFormat() const
  2365. - unsigned GetNumCompressedLevels() const
  2366. - Image* GetSubimage(const IntRect& rect) const
  2367. - bool IsCubemap() const
  2368. - bool IsArray() const
  2369. - bool IsSRGB() const
  2370. Properties:
  2371. - int width (readonly)
  2372. - int height (readonly)
  2373. - int depth (readonly)
  2374. - unsigned components (readonly)
  2375. - bool compressed (readonly)
  2376. - CompressedFormat compressedFormat (readonly)
  2377. - unsigned numCompressedLevels (readonly)
  2378. - bool cubemap (readonly)
  2379. - bool array (readonly)
  2380. - bool sRGB (readonly)
  2381. <a name="Class_IndexBuffer"></a>
  2382. ### IndexBuffer : Object
  2383. Methods:
  2384. - IndexBuffer() (GC)
  2385. - IndexBuffer* new()
  2386. - void delete()
  2387. - void SetShadowed(bool enable)
  2388. - bool SetSize(unsigned indexCount, bool largeIndices, bool dynamic = false)
  2389. - bool SetData(VectorBuffer& data)
  2390. - bool SetDataRange(VectorBuffer& data, unsigned start, unsigned count, bool discard = false)
  2391. - VectorBuffer GetData()
  2392. - bool IsShadowed() const
  2393. - bool IsDynamic() const
  2394. - unsigned GetIndexCount() const
  2395. - unsigned GetIndexSize() const
  2396. Properties:
  2397. - bool shadowed
  2398. - bool dynamic (readonly)
  2399. - unsigned indexCount (readonly)
  2400. - unsigned indexSize (readonly)
  2401. <a name="Class_Input"></a>
  2402. ### Input : Object
  2403. Methods:
  2404. - void SetToggleFullscreen(bool enable)
  2405. - void SetMouseVisible(bool enable, bool suppressEvent = false)
  2406. - void SetMouseGrabbed(bool grab, bool suppressEvent = false)
  2407. - void SetMouseMode(MouseMode mode, bool suppressEvent = false)
  2408. - bool IsMouseLocked()
  2409. - int AddScreenJoystick(XMLFile* layoutFile = 0, XMLFile* styleFile = 0)
  2410. - bool RemoveScreenJoystick(int id)
  2411. - void SetScreenJoystickVisible(int id, bool enable)
  2412. - void SetScreenKeyboardVisible(bool enable)
  2413. - void SetTouchEmulation(bool enable)
  2414. - bool RecordGesture()
  2415. - bool SaveGestures(File* dest)
  2416. - bool SaveGesture(File* dest, unsigned gestureID)
  2417. - unsigned LoadGestures(File* source)
  2418. - bool SaveGestures(const String fileName)
  2419. - bool SaveGesture(const String fileName, unsigned gestureID)
  2420. - unsigned LoadGestures(const String fileName)
  2421. - bool RemoveGesture(unsigned gestureID)
  2422. - void RemoveAllGestures()
  2423. - void SetMousePosition(const IntVector2& position)
  2424. - void CenterMousePosition()
  2425. - int GetKeyFromName(const String name) const
  2426. - int GetKeyFromScancode(int scancode) const
  2427. - String GetKeyName(int key) const
  2428. - int GetScancodeFromKey(int key) const
  2429. - int GetScancodeFromName(const String name) const
  2430. - String GetScancodeName(int scancode) const
  2431. - bool GetKeyDown(int key) const
  2432. - bool GetKeyPress(int key) const
  2433. - bool GetScancodeDown(int scancode) const
  2434. - bool GetScancodePress(int scancode) const
  2435. - bool GetMouseButtonDown(int button) const
  2436. - bool GetMouseButtonPress(int button) const
  2437. - bool GetQualifierDown(int qualifier) const
  2438. - bool GetQualifierPress(int qualifier) const
  2439. - int GetQualifiers() const
  2440. - IntVector2 GetMousePosition() const
  2441. - IntVector2 GetMouseMove() const
  2442. - int GetMouseMoveX() const
  2443. - int GetMouseMoveY() const
  2444. - int GetMouseMoveWheel() const
  2445. - unsigned GetNumTouches() const
  2446. - TouchState* GetTouch(unsigned index) const
  2447. - unsigned GetNumJoysticks() const
  2448. - JoystickState* GetJoystick(int id)
  2449. - JoystickState* GetJoystickByIndex(unsigned index)
  2450. - JoystickState* GetJoystickByName(const String name)
  2451. - bool GetToggleFullscreen() const
  2452. - bool GetScreenKeyboardSupport() const
  2453. - bool IsScreenJoystickVisible(int id) const
  2454. - bool IsScreenKeyboardVisible() const
  2455. - bool GetTouchEmulation() const
  2456. - bool IsMouseVisible() const
  2457. - bool IsMouseGrabbed() const
  2458. - MouseMode GetMouseMode() const
  2459. - bool HasFocus()
  2460. - bool IsMinimized() const
  2461. Properties:
  2462. - int qualifiers (readonly)
  2463. - IntVector2 mousePosition
  2464. - IntVector2 mouseMove (readonly)
  2465. - int mouseMoveX (readonly)
  2466. - int mouseMoveY (readonly)
  2467. - int mouseMoveWheel (readonly)
  2468. - unsigned numTouches (readonly)
  2469. - unsigned numJoysticks (readonly)
  2470. - bool toggleFullscreen (readonly)
  2471. - bool screenKeyboardSupport (readonly)
  2472. - MouseMode mouseMode
  2473. - bool screenKeyboardVisible
  2474. - bool touchEmulation
  2475. - bool mouseVisible
  2476. - bool mouseGrabbed
  2477. - bool mouseLocked (readonly)
  2478. - bool focus (readonly)
  2479. - bool minimized (readonly)
  2480. <a name="Class_IntRect"></a>
  2481. ### IntRect
  2482. Methods:
  2483. - IntRect() (GC)
  2484. - IntRect* new()
  2485. - IntRect(int left, int top, int right, int bottom) (GC)
  2486. - IntRect* new(int left, int top, int right, int bottom)
  2487. - void delete()
  2488. - bool operator==(const IntRect& rhs) const
  2489. - IntVector2 Size() const
  2490. - int Width() const
  2491. - int Height() const
  2492. - Intersection IsInside(const IntVector2& point) const
  2493. Properties:
  2494. - int left
  2495. - int top
  2496. - int right
  2497. - int bottom
  2498. - const IntRect ZERO
  2499. - IntVector2 size (readonly)
  2500. - int width (readonly)
  2501. - int height (readonly)
  2502. <a name="Class_IntVector2"></a>
  2503. ### IntVector2
  2504. Methods:
  2505. - IntVector2() (GC)
  2506. - IntVector2* new()
  2507. - IntVector2(int x, int y) (GC)
  2508. - IntVector2* new(int x, int y)
  2509. - IntVector2(const IntVector2& rhs) (GC)
  2510. - IntVector2* new(const IntVector2& rhs)
  2511. - void delete()
  2512. - bool operator==(const IntVector2& rhs) const
  2513. - IntVector2 operator+(const IntVector2& rhs) const
  2514. - IntVector2 operator-() const
  2515. - IntVector2 operator-(const IntVector2& rhs) const
  2516. - IntVector2 operator*(int rhs) const
  2517. - IntVector2 operator/(int rhs) const
  2518. - String ToString() const
  2519. - unsigned ToHash() const
  2520. - float Length() const
  2521. Properties:
  2522. - int x
  2523. - int y
  2524. - const IntVector2 ZERO
  2525. <a name="Class_IntVector3"></a>
  2526. ### IntVector3
  2527. Methods:
  2528. - IntVector3() (GC)
  2529. - IntVector3* new()
  2530. - IntVector3(int x, int y, int z) (GC)
  2531. - IntVector3* new(int x, int y, int z)
  2532. - IntVector3(const IntVector3& rhs) (GC)
  2533. - IntVector3* new(const IntVector3& rhs)
  2534. - void delete()
  2535. - bool operator==(const IntVector3& rhs) const
  2536. - IntVector3 operator+(const IntVector3& rhs) const
  2537. - IntVector3 operator-() const
  2538. - IntVector3 operator-(const IntVector3& rhs) const
  2539. - IntVector3 operator*(int rhs) const
  2540. - IntVector3 operator/(int rhs) const
  2541. - String ToString() const
  2542. - unsigned ToHash() const
  2543. - float Length() const
  2544. Properties:
  2545. - int x
  2546. - int y
  2547. - int z
  2548. - const IntVector3 ZERO
  2549. - const IntVector3 LEFT
  2550. - const IntVector3 RIGHT
  2551. - const IntVector3 UP
  2552. - const IntVector3 DOWN
  2553. - const IntVector3 FORWARD
  2554. - const IntVector3 BACK
  2555. - const IntVector3 ONE
  2556. <a name="Class_JSONFile"></a>
  2557. ### JSONFile : Resource
  2558. Methods:
  2559. - JSONFile() (GC)
  2560. - JSONFile* new()
  2561. - void delete()
  2562. - bool FromString(const String source)
  2563. - const JSONValue& GetRoot() const
  2564. - bool Save(const String fileName, const String indentation = "\t") const
  2565. <a name="Class_JSONValue"></a>
  2566. ### JSONValue
  2567. Methods:
  2568. - JSONValue() (GC)
  2569. - JSONValue* new()
  2570. - JSONValue(bool value) (GC)
  2571. - JSONValue* new(bool value)
  2572. - JSONValue(const char* value) (GC)
  2573. - JSONValue* new(const char* value)
  2574. - JSONValue(double value) (GC)
  2575. - JSONValue* new(double value)
  2576. - JSONValue(const JSONArray& value) (GC)
  2577. - JSONValue* new(const JSONArray& value)
  2578. - JSONValue(const JSONObject& value) (GC)
  2579. - JSONValue* new(const JSONObject& value)
  2580. - JSONValue(const JSONValue& value) (GC)
  2581. - JSONValue* new(const JSONValue& value)
  2582. - void delete()
  2583. - void SetBool(bool value)
  2584. - void SetInt(int value)
  2585. - void SetUint(unsigned value)
  2586. - void SetFloat(float value)
  2587. - void SetDouble(double value)
  2588. - void SetString(const String value)
  2589. - void SetArray(const JSONArray& value)
  2590. - void SetObject(const JSONObject& value)
  2591. - JSONValueType GetValueType() const
  2592. - JSONNumberType GetNumberType() const
  2593. - String GetValueTypeName() const
  2594. - String GetNumberTypeName() const
  2595. - bool IsNull() const
  2596. - bool IsBool() const
  2597. - bool IsNumber() const
  2598. - bool IsString() const
  2599. - bool IsArray() const
  2600. - bool IsObject() const
  2601. - bool GetBool() const
  2602. - int GetInt() const
  2603. - unsigned GetUInt() const
  2604. - float GetFloat() const
  2605. - double GetDouble() const
  2606. - const String GetString() const
  2607. - const JSONArray& GetArray() const
  2608. - const JSONObject& GetObject() const
  2609. - JSONValue operator&[](unsigned index, JSONValue tolua_value)
  2610. - JSONValue operator[](unsigned index)
  2611. - const JSONValue operator[](unsigned index) const
  2612. - void Push(const JSONValue& value)
  2613. - void Pop()
  2614. - void Insert(unsigned pos, const JSONValue& value)
  2615. - void Erase(unsigned pos, unsigned length = 1)
  2616. - void Resize(unsigned newSize)
  2617. - unsigned Size() const
  2618. - void Set(const String key, const JSONValue& value)
  2619. - const JSONValue& Get(const String key) const
  2620. - bool Erase(const String key)
  2621. - bool Contains(const String key) const
  2622. - void Clear()
  2623. Properties:
  2624. - const JSONValue EMPTY
  2625. - const JSONArray emptyArray
  2626. - const JSONObject emptyObject
  2627. - bool null (readonly)
  2628. - JSONValueType valueType (readonly)
  2629. - JSONNumberType numberType (readonly)
  2630. - String valueTypeName (readonly)
  2631. - String numberTypeName (readonly)
  2632. <a name="Class_JoystickState"></a>
  2633. ### JoystickState
  2634. Methods:
  2635. - bool IsController() const
  2636. - unsigned GetNumButtons() const
  2637. - unsigned GetNumAxes() const
  2638. - unsigned GetNumHats() const
  2639. - bool GetButtonDown(unsigned index) const
  2640. - bool GetButtonPress(unsigned index) const
  2641. - float GetAxisPosition(unsigned index) const
  2642. - int GetHatPosition(unsigned index) const
  2643. Properties:
  2644. - const String name
  2645. - const int joystickID
  2646. - bool controller (readonly)
  2647. - unsigned numButtons (readonly)
  2648. - unsigned numAxes (readonly)
  2649. - unsigned numHats (readonly)
  2650. <a name="Class_Light"></a>
  2651. ### Light : Drawable
  2652. Methods:
  2653. - void SetLightType(LightType type)
  2654. - void SetPerVertex(bool enable)
  2655. - void SetColor(const Color& color)
  2656. - void SetTemperature(float temperature)
  2657. - void SetRadius(float redius)
  2658. - void SetLength(float length)
  2659. - void SetUsePhysicalValues(bool enable)
  2660. - void SetSpecularIntensity(float intensity)
  2661. - void SetBrightness(float brightness)
  2662. - void SetRange(float range)
  2663. - void SetFov(float fov)
  2664. - void SetAspectRatio(float aspectRatio)
  2665. - void SetFadeDistance(float distance)
  2666. - void SetShadowFadeDistance(float distance)
  2667. - void SetShadowBias(const BiasParameters& parameters)
  2668. - void SetShadowCascade(const CascadeParameters& parameters)
  2669. - void SetShadowFocus(const FocusParameters& parameters)
  2670. - void SetShadowIntensity(float intensity)
  2671. - void SetShadowResolution(float resolution)
  2672. - void SetShadowNearFarRatio(float nearFarRatio)
  2673. - void SetShadowMaxExtrusion(float extrusion)
  2674. - void SetRampTexture(Texture* texture)
  2675. - void SetShapeTexture(Texture* texture)
  2676. - LightType GetLightType() const
  2677. - bool GetPerVertex() const
  2678. - const Color& GetColor() const
  2679. - float GetTemperature() const
  2680. - float GetRadius() const
  2681. - float GetLength() const
  2682. - float GetSpecularIntensity() const
  2683. - float GetBrightness() const
  2684. - Color GetEffectiveColor() const
  2685. - Color GetColorFromTemperature() const
  2686. - bool GetUsePhysicalValues() const
  2687. - float GetEffectiveSpecularIntensity() const
  2688. - float GetRange() const
  2689. - float GetFov() const
  2690. - float GetAspectRatio() const
  2691. - float GetFadeDistance() const
  2692. - float GetShadowFadeDistance() const
  2693. - const BiasParameters& GetShadowBias() const
  2694. - const CascadeParameters& GetShadowCascade() const
  2695. - const FocusParameters& GetShadowFocus() const
  2696. - float GetShadowIntensity() const
  2697. - float GetShadowResolution() const
  2698. - float GetShadowNearFarRatio() const
  2699. - float GetShadowMaxExtrusion() const
  2700. - Texture* GetRampTexture() const
  2701. - Texture* GetShapeTexture() const
  2702. - Frustum GetFrustum() const
  2703. - int GetNumShadowSplits() const
  2704. - bool IsNegative() const
  2705. Properties:
  2706. - LightType lightType
  2707. - bool perVertex
  2708. - Color& color
  2709. - float temperature
  2710. - float radius
  2711. - float length
  2712. - bool usePhysicalValues
  2713. - float specularIntensity
  2714. - float brightness
  2715. - float range
  2716. - float fov
  2717. - float aspectRatio
  2718. - float fadeDistance
  2719. - float shadowFadeDistance
  2720. - BiasParameters& shadowBias
  2721. - CascadeParameters& shadowCascade
  2722. - FocusParameters& shadowFocus
  2723. - float shadowIntensity
  2724. - float shadowResolution
  2725. - float shadowNearFarRatio
  2726. - float shadowMaxExtrusion
  2727. - Texture* rampTexture
  2728. - Texture* shapeTexture
  2729. - Frustum frustum (readonly)
  2730. - int numShadowSplits (readonly)
  2731. - bool negative (readonly)
  2732. - Color effectiveColor (readonly)
  2733. - float effectiveSpecularIntensity (readonly)
  2734. <a name="Class_LineEdit"></a>
  2735. ### LineEdit : BorderImage
  2736. Methods:
  2737. - LineEdit() (GC)
  2738. - LineEdit* new()
  2739. - void delete()
  2740. - void SetText(const String text)
  2741. - void SetCursorPosition(unsigned position)
  2742. - void SetCursorBlinkRate(float rate)
  2743. - void SetMaxLength(unsigned length)
  2744. - void SetEchoCharacter(unsigned c)
  2745. - void SetCursorMovable(bool enable)
  2746. - void SetTextSelectable(bool enable)
  2747. - void SetTextCopyable(bool enable)
  2748. - const String GetText() const
  2749. - unsigned GetCursorPosition() const
  2750. - float GetCursorBlinkRate() const
  2751. - unsigned GetMaxLength() const
  2752. - unsigned GetEchoCharacter() const
  2753. - bool IsCursorMovable() const
  2754. - bool IsTextSelectable() const
  2755. - bool IsTextCopyable() const
  2756. - Text* GetTextElement() const
  2757. - BorderImage* GetCursor() const
  2758. Properties:
  2759. - String text
  2760. - unsigned cursorPosition
  2761. - float cursorBlinkRate
  2762. - unsigned maxLength
  2763. - unsigned echoCharacter
  2764. - bool cursorMovable
  2765. - bool textSelectable
  2766. - bool textCopyable
  2767. - Text* textElement (readonly)
  2768. - BorderImage* cursor (readonly)
  2769. <a name="Class_ListView"></a>
  2770. ### ListView : ScrollView
  2771. Methods:
  2772. - ListView() (GC)
  2773. - ListView* new()
  2774. - void delete()
  2775. - void AddItem(UIElement* item)
  2776. - void InsertItem(unsigned index, UIElement* item, UIElement* parentItem = 0)
  2777. - void RemoveItem(UIElement* item, unsigned index = 0)
  2778. - void RemoveItem(unsigned index)
  2779. - void RemoveAllItems()
  2780. - void SetSelection(unsigned index)
  2781. - void SetSelections(const PODVector<unsigned>& indices)
  2782. - void AddSelection(unsigned index)
  2783. - void RemoveSelection(unsigned index)
  2784. - void ToggleSelection(unsigned index)
  2785. - void ChangeSelection(int delta, bool additive = false)
  2786. - void ClearSelection()
  2787. - void SetHighlightMode(HighlightMode mode)
  2788. - void SetMultiselect(bool enable)
  2789. - void SetHierarchyMode(bool enable)
  2790. - void SetBaseIndent(int baseIndent)
  2791. - void SetClearSelectionOnDefocus(bool enable)
  2792. - void SetSelectOnClickEnd(bool enable)
  2793. - void Expand(unsigned index, bool enable, bool recursive = false)
  2794. - void ToggleExpand(unsigned index, bool recursive = false)
  2795. - unsigned GetNumItems() const
  2796. - UIElement* GetItem(unsigned index) const
  2797. - const PODVector<UIElement*>& GetItems() const
  2798. - unsigned FindItem(UIElement* item) const
  2799. - unsigned GetSelection() const
  2800. - const PODVector<unsigned>& GetSelections() const
  2801. - void CopySelectedItemsToClipboard() const
  2802. - UIElement* GetSelectedItem() const
  2803. - const PODVector<UIElement*>& GetSelectedItems() const
  2804. - bool IsSelected(unsigned index) const
  2805. - bool IsExpanded(unsigned index) const
  2806. - HighlightMode GetHighlightMode() const
  2807. - bool GetMultiselect() const
  2808. - bool GetClearSelectionOnDefocus() const
  2809. - bool GetSelectOnClickEnd() const
  2810. - bool GetHierarchyMode() const
  2811. - int GetBaseIndent() const
  2812. Properties:
  2813. - unsigned numItems (readonly)
  2814. - unsigned selection
  2815. - UIElement* selectedItem (readonly)
  2816. - HighlightMode highlightMode
  2817. - bool multiselect
  2818. - bool clearSelectionOnDefocus
  2819. - bool selectOnClickEnd
  2820. - bool hierarchyMode
  2821. - int baseIndent
  2822. <a name="Class_Localization"></a>
  2823. ### Localization : Object
  2824. Methods:
  2825. - int GetNumLanguages() const
  2826. - int GetLanguageIndex() const
  2827. - int GetLanguageIndex(const String language)
  2828. - String GetLanguage()
  2829. - String GetLanguage(int index)
  2830. - void SetLanguage(const String language)
  2831. - void SetLanguage(int index)
  2832. - String Get(const String id)
  2833. - void Reset()
  2834. - void LoadJSON(const JSONValue& source)
  2835. - void LoadJSONFile(const String name)
  2836. Properties:
  2837. - int numLanguages (readonly)
  2838. - int languageIndex (readonly)
  2839. - String language (readonly)
  2840. <a name="Class_Log"></a>
  2841. ### Log : Object
  2842. Methods:
  2843. - void Open(const String fileName)
  2844. - void Close()
  2845. - void SetLevel(int level)
  2846. - void SetTimeStamp(bool enable)
  2847. - void SetQuiet(bool quiet)
  2848. - int GetLevel() const
  2849. - bool GetTimeStamp() const
  2850. - String GetLastMessage() const
  2851. - bool IsQuiet() const
  2852. - void Write(int level, const String message)
  2853. - void WriteRaw(const String message, bool error = false)
  2854. Properties:
  2855. - int level
  2856. - bool timeStamp
  2857. - bool quiet
  2858. <a name="Class_LuaScriptInstance"></a>
  2859. ### LuaScriptInstance : Component
  2860. Methods:
  2861. - bool CreateObject(const String scriptObjectType)
  2862. - bool CreateObject(LuaFile* scriptFile, const String scriptObjectType)
  2863. - void SetScriptFile(LuaFile* scriptFile)
  2864. - void SetScriptObjectType(const String scriptObjectType)
  2865. - void SubscribeToEvent(const String eventName, void* functionOrFunctionName)
  2866. - void SubscribeToEvent(void* sender, const String eventName, void* functionOrFunctionName)
  2867. - void UnsubscribeFromEvent(const String eventName)
  2868. - void UnsubscribeFromEvent(Object* sender, const String eventName)
  2869. - void UnsubscribeFromEvents(Object* sender)
  2870. - void UnsubscribeFromAllEvents()
  2871. - void UnsubscribeFromAllEventsExcept(const Vector<String>& exceptionNames)
  2872. - bool HasSubscribedToEvent(const String eventName)
  2873. - bool HasSubscribedToEvent(Object* sender, const String eventName)
  2874. - LuaFile* GetScriptFile() const
  2875. - const String GetScriptObjectType() const
  2876. Properties:
  2877. - const LuaFile* scriptFile
  2878. - const String scriptObjectType
  2879. <a name="Class_Material"></a>
  2880. ### Material : Resource
  2881. Methods:
  2882. - Material() (GC)
  2883. - Material* new()
  2884. - void delete()
  2885. - void SetNumTechniques(unsigned num)
  2886. - void SetTechnique(unsigned index, Technique* tech, unsigned qualityLevel = 0, float lodDistance = 0.0f)
  2887. - void SetVertexShaderDefines(const String defines)
  2888. - void SetPixelShaderDefines(const String defines)
  2889. - void SetShaderParameter(const String name, const Variant& value)
  2890. - void SetShaderParameterAnimation(const String name, ValueAnimation* animation, WrapMode wrapMode = WM_LOOP, float speed = 1.0f)
  2891. - void SetShaderParameterAnimationWrapMode(const String name, WrapMode wrapMode)
  2892. - void SetShaderParameterAnimationSpeed(const String name, float speed)
  2893. - void SetTexture(TextureUnit unit, Texture* texture)
  2894. - void SetUVTransform(const Vector2& offset, float rotation, const Vector2& repeat)
  2895. - void SetUVTransform(const Vector2& offset, float rotation, float repeat)
  2896. - void SetCullMode(CullMode mode)
  2897. - void SetShadowCullMode(CullMode mode)
  2898. - void SetFillMode(FillMode mode)
  2899. - void SetDepthBias(const BiasParameters& parameters)
  2900. - void SetAlphaToCoverage(bool enable)
  2901. - void SetLineAntiAlias(bool enable)
  2902. - void SetRenderOrder(char renderOrder)
  2903. - void SetOcclusion(bool enable)
  2904. - void SetScene(Scene* scene)
  2905. - void RemoveShaderParameter(const String name)
  2906. - void ReleaseShaders()
  2907. - Material* Clone(const String cloneName = String::EMPTY) const
  2908. - void SortTechniques()
  2909. - void MarkForAuxView(unsigned frameNumber)
  2910. - unsigned GetNumTechniques() const
  2911. - Technique* GetTechnique(unsigned index) const
  2912. - Pass* GetPass(unsigned index, const String passName) const
  2913. - Texture* GetTexture(TextureUnit unit) const
  2914. - const String GetVertexShaderDefines() const
  2915. - const String GetPixelShaderDefines() const
  2916. - ValueAnimation* GetShaderParameterAnimation(const String name) const
  2917. - WrapMode GetShaderParameterAnimationWrapMode(const String name) const
  2918. - float GetShaderParameterAnimationSpeed(const String name) const
  2919. - CullMode GetCullMode() const
  2920. - CullMode GetShadowCullMode() const
  2921. - FillMode GetFillMode() const
  2922. - const BiasParameters& GetDepthBias() const
  2923. - bool GetAlphaToCoverage() const
  2924. - bool GetLineAntiAlias() const
  2925. - char GetRenderOrder() const
  2926. - bool GetOcclusion() const
  2927. - bool GetSpecular() const
  2928. - Scene* GetScene() const
  2929. Properties:
  2930. - String vertexShaderDefines
  2931. - String pixelShaderDefines
  2932. - CullMode cullMode
  2933. - CullMode shadowCullMode
  2934. - FillMode fillMode
  2935. - BiasParameters depthBias
  2936. - bool alphaToCoverage
  2937. - bool lineAntiAlias
  2938. - char renderOrder
  2939. - bool occlusion
  2940. - bool specular (readonly)
  2941. - Scene* scene
  2942. <a name="Class_Matrix3"></a>
  2943. ### Matrix3
  2944. Methods:
  2945. - Matrix3() (GC)
  2946. - Matrix3* new()
  2947. - Matrix3(const Matrix3& matrix) (GC)
  2948. - Matrix3* new(const Matrix3& matrix)
  2949. - Matrix3(float v00, float v01, float v02, float v10, float v11, float v12, float v20, float v21, float v22) (GC)
  2950. - Matrix3* new(float v00, float v01, float v02, float v10, float v11, float v12, float v20, float v21, float v22)
  2951. - void delete()
  2952. - bool operator==(const Matrix3& rhs) const
  2953. - Vector3 operator*(const Vector3& rhs) const
  2954. - Matrix3 operator+(const Matrix3& rhs) const
  2955. - Matrix3 operator-(const Matrix3& rhs) const
  2956. - Matrix3 operator*(float rhs) const
  2957. - Matrix3 operator*(const Matrix3& rhs) const
  2958. - void SetScale(const Vector3& scale)
  2959. - void SetScale(float scale)
  2960. - Vector3 Scale() const
  2961. - Matrix3 Transpose() const
  2962. - Matrix3 Scaled(const Vector3& scale) const
  2963. - bool Equals(const Matrix3& rhs) const
  2964. - Matrix3 Inverse() const
  2965. - String ToString() const
  2966. Properties:
  2967. - float m00
  2968. - float m01
  2969. - float m02
  2970. - float m10
  2971. - float m11
  2972. - float m12
  2973. - float m20
  2974. - float m21
  2975. - float m22
  2976. - const Matrix3 ZERO
  2977. - const Matrix3 IDENTITY
  2978. <a name="Class_Matrix3x4"></a>
  2979. ### Matrix3x4
  2980. Methods:
  2981. - Matrix3x4() (GC)
  2982. - Matrix3x4* new()
  2983. - Matrix3x4(const Matrix3x4& matrix) (GC)
  2984. - Matrix3x4* new(const Matrix3x4& matrix)
  2985. - Matrix3x4(const Matrix3& matrix) (GC)
  2986. - Matrix3x4* new(const Matrix3& matrix)
  2987. - Matrix3x4(const Matrix4& matrix) (GC)
  2988. - Matrix3x4* new(const Matrix4& matrix)
  2989. - Matrix3x4(float v00, float v01, float v02, float v03, float v10, float v11, float v12, float v13, float v20, float v21, float v22, float v23) (GC)
  2990. - Matrix3x4* new(float v00, float v01, float v02, float v03, float v10, float v11, float v12, float v13, float v20, float v21, float v22, float v23)
  2991. - Matrix3x4(const Vector3& translation, const Quaternion& rotation, float scale) (GC)
  2992. - Matrix3x4* new(const Vector3& translation, const Quaternion& rotation, float scale)
  2993. - Matrix3x4(const Vector3& translation, const Quaternion& rotation, const Vector3& scale) (GC)
  2994. - Matrix3x4* new(const Vector3& translation, const Quaternion& rotation, const Vector3& scale)
  2995. - void delete()
  2996. - bool operator==(const Matrix3x4& rhs) const
  2997. - Vector3 operator*(const Vector3& rhs) const
  2998. - Vector3 operator*(const Vector4& rhs) const
  2999. - Matrix3x4 operator+(const Matrix3x4& rhs) const
  3000. - Matrix3x4 operator-(const Matrix3x4& rhs) const
  3001. - Matrix3x4 operator*(float rhs) const
  3002. - Matrix3x4 operator*(const Matrix3x4& rhs) const
  3003. - Matrix4 operator*(const Matrix4& rhs) const
  3004. - void SetTranslation(const Vector3& translation)
  3005. - void SetRotation(const Matrix3& rotation)
  3006. - void SetScale(const Vector3& scale)
  3007. - void SetScale(float scale)
  3008. - Matrix3 ToMatrix3() const
  3009. - Matrix4 ToMatrix4() const
  3010. - Matrix3 RotationMatrix() const
  3011. - Vector3 Translation() const
  3012. - Quaternion Rotation() const
  3013. - Vector3 Scale() const
  3014. - bool Equals(const Matrix3x4& rhs) const
  3015. - void Decompose(Vector3& translation, Quaternion& rotation, Vector3& scale) const
  3016. - Matrix3x4 Inverse() const
  3017. - String ToString() const
  3018. Properties:
  3019. - float m00
  3020. - float m01
  3021. - float m02
  3022. - float m03
  3023. - float m10
  3024. - float m11
  3025. - float m12
  3026. - float m13
  3027. - float m20
  3028. - float m21
  3029. - float m22
  3030. - float m23
  3031. - const Matrix3x4 ZERO
  3032. - const Matrix3x4 IDENTITY
  3033. <a name="Class_Matrix4"></a>
  3034. ### Matrix4
  3035. Methods:
  3036. - Matrix4() (GC)
  3037. - Matrix4* new()
  3038. - Matrix4(const Matrix4& matrix) (GC)
  3039. - Matrix4* new(const Matrix4& matrix)
  3040. - Matrix4(const Matrix3& matrix) (GC)
  3041. - Matrix4* new(const Matrix3& matrix)
  3042. - Matrix4(float v00, float v01, float v02, float v03, float v10, float v11, float v12, float v13, float v20, float v21, float v22, float v23, float v30, float v31, float v32, float v33) (GC)
  3043. - Matrix4* new(float v00, float v01, float v02, float v03, float v10, float v11, float v12, float v13, float v20, float v21, float v22, float v23, float v30, float v31, float v32, float v33)
  3044. - void delete()
  3045. - bool operator==(const Matrix4& rhs) const
  3046. - Vector3 operator*(const Vector3& rhs) const
  3047. - Vector4 operator*(const Vector4& rhs) const
  3048. - Matrix4 operator+(const Matrix4& rhs) const
  3049. - Matrix4 operator-(const Matrix4& rhs) const
  3050. - Matrix4 operator*(float rhs) const
  3051. - Matrix4 operator*(const Matrix4& rhs) const
  3052. - Matrix4 operator*(const Matrix3x4& rhs) const
  3053. - void SetTranslation(const Vector3& translation)
  3054. - void SetRotation(const Matrix3& rotation)
  3055. - void SetScale(const Vector3& scale)
  3056. - void SetScale(float scale)
  3057. - Matrix3 ToMatrix3() const
  3058. - Matrix3 RotationMatrix() const
  3059. - Vector3 Translation() const
  3060. - Quaternion Rotation() const
  3061. - Vector3 Scale() const
  3062. - Matrix4 Transpose() const
  3063. - bool Equals(const Matrix4& rhs) const
  3064. - void Decompose(Vector3& translation, Quaternion& rotation, Vector3& scale) const
  3065. - Matrix4 Inverse() const
  3066. - String ToString() const
  3067. Properties:
  3068. - float m00
  3069. - float m01
  3070. - float m02
  3071. - float m03
  3072. - float m10
  3073. - float m11
  3074. - float m12
  3075. - float m13
  3076. - float m20
  3077. - float m21
  3078. - float m22
  3079. - float m23
  3080. - float m30
  3081. - float m31
  3082. - float m32
  3083. - float m33
  3084. - const Matrix4 ZERO
  3085. - const Matrix4 IDENTITY
  3086. <a name="Class_Menu"></a>
  3087. ### Menu : Button
  3088. Methods:
  3089. - Menu() (GC)
  3090. - Menu* new()
  3091. - void delete()
  3092. - void SetPopup(UIElement* element)
  3093. - void SetPopupOffset(const IntVector2& offset)
  3094. - void SetPopupOffset(int x, int y)
  3095. - void ShowPopup(bool enable)
  3096. - void SetAccelerator(int key, int qualifiers)
  3097. - UIElement* GetPopup() const
  3098. - const IntVector2& GetPopupOffset() const
  3099. - bool GetShowPopup() const
  3100. - int GetAcceleratorKey() const
  3101. - int GetAcceleratorQualifiers() const
  3102. Properties:
  3103. - UIElement* popup
  3104. - IntVector2& popupOffset
  3105. - bool showPopup
  3106. - int acceleratorKey (readonly)
  3107. - int acceleratorQualifiers (readonly)
  3108. <a name="Class_MessageBox"></a>
  3109. ### MessageBox : Object
  3110. Methods:
  3111. - MessageBox(const String messageString = String::EMPTY, const String titleString = String::EMPTY, XMLFile* layoutFile = 0, XMLFile* styleFile = 0) (GC)
  3112. - MessageBox* new(const String messageString = String::EMPTY, const String titleString = String::EMPTY, XMLFile* layoutFile = 0, XMLFile* styleFile = 0)
  3113. - void delete()
  3114. - void SetTitle(const String text)
  3115. - void SetMessage(const String text)
  3116. - const String GetTitle() const
  3117. - const String GetMessage() const
  3118. - UIElement* GetWindow() const
  3119. Properties:
  3120. - String title
  3121. - String message
  3122. - UIElement* window (readonly)
  3123. <a name="Class_Model"></a>
  3124. ### Model : Resource
  3125. Methods:
  3126. - Model() (GC)
  3127. - Model* new()
  3128. - void delete()
  3129. - Model* Clone(const String cloneName = String::EMPTY) const
  3130. - void SetBoundingBox(const BoundingBox& box)
  3131. - bool SetVertexBuffers(const Vector<SharedPtr<VertexBuffer> >& buffers, const PODVector<unsigned>& morphRangeStarts, const PODVector<unsigned>& morphRangeCounts)
  3132. - bool SetIndexBuffers(const Vector<SharedPtr<IndexBuffer> >& buffers)
  3133. - void SetNumGeometries(unsigned num)
  3134. - bool SetNumGeometryLodLevels(unsigned index, unsigned num)
  3135. - bool SetGeometry(unsigned index, unsigned lodLevel, Geometry* geometry)
  3136. - bool SetGeometryCenter(unsigned index, const Vector3& center)
  3137. - const BoundingBox& GetBoundingBox() const
  3138. - Skeleton& GetSkeleton()
  3139. - unsigned GetNumGeometries() const
  3140. - unsigned GetNumGeometryLodLevels(unsigned index) const
  3141. - Geometry* GetGeometry(unsigned index, unsigned lodLevel) const
  3142. - const Vector3& GetGeometryCenter(unsigned index) const
  3143. - unsigned GetNumMorphs() const
  3144. - const ModelMorph* GetMorph(const String name) const
  3145. - const ModelMorph* GetMorph(StringHash nameHash) const
  3146. - const ModelMorph* GetMorph(unsigned index) const
  3147. - unsigned GetMorphRangeStart(unsigned bufferIndex) const
  3148. - unsigned GetMorphRangeCount(unsigned bufferIndex) const
  3149. Properties:
  3150. - BoundingBox& boundingBox
  3151. - Skeleton skeleton (readonly)
  3152. - unsigned numGeometries
  3153. - unsigned numMorphs (readonly)
  3154. <a name="Class_NamedPipe"></a>
  3155. ### NamedPipe : Object
  3156. Methods:
  3157. - NamedPipe() (GC)
  3158. - NamedPipe* new()
  3159. - NamedPipe(const String pipeName, bool isServer) (GC)
  3160. - NamedPipe* new(const String pipeName, bool isServer)
  3161. - void delete()
  3162. - bool Open(const String pipeName, bool isServer)
  3163. - void Close()
  3164. - bool IsOpen() const
  3165. - VectorBuffer Read(unsigned size)
  3166. - const String GetName() const
  3167. - bool IsEof() const
  3168. - int ReadInt()
  3169. - short ReadShort()
  3170. - char ReadByte()
  3171. - unsigned ReadUInt()
  3172. - short ReadUShort()
  3173. - char ReadUByte()
  3174. - bool ReadBool()
  3175. - float ReadFloat()
  3176. - double ReadDouble()
  3177. - IntRect ReadIntRect()
  3178. - IntVector2 ReadIntVector2()
  3179. - IntVector3 ReadIntVector3()
  3180. - Rect ReadRect()
  3181. - Vector2 ReadVector2()
  3182. - Vector3 ReadVector3()
  3183. - Vector3 ReadPackedVector3(float maxAbsCoord)
  3184. - Vector4 ReadVector4()
  3185. - Quaternion ReadQuaternion()
  3186. - Quaternion ReadPackedQuaternion()
  3187. - Matrix3 ReadMatrix3()
  3188. - Matrix3x4 ReadMatrix3x4()
  3189. - Matrix4 ReadMatrix4()
  3190. - Color ReadColor()
  3191. - BoundingBox ReadBoundingBox()
  3192. - String ReadString()
  3193. - String ReadFileID()
  3194. - StringHash ReadStringHash()
  3195. - VectorBuffer ReadBuffer()
  3196. - ResourceRef ReadResourceRef()
  3197. - ResourceRefList ReadResourceRefList()
  3198. - Variant ReadVariant()
  3199. - Variant ReadVariant(VariantType type)
  3200. - VariantVector ReadVariantVector()
  3201. - VariantMap ReadVariantMap()
  3202. - unsigned ReadVLE()
  3203. - unsigned ReadNetID()
  3204. - String ReadLine()
  3205. - unsigned Write(const VectorBuffer& buffer)
  3206. - bool WriteInt(int value)
  3207. - bool WriteShort(short value)
  3208. - bool WriteByte(char value)
  3209. - bool WriteUInt(unsigned value)
  3210. - bool WriteUShort(short value)
  3211. - bool WriteUByte(char value)
  3212. - bool WriteBool(bool value)
  3213. - bool WriteFloat(float value)
  3214. - bool WriteDouble(double value)
  3215. - bool WriteIntRect(const IntRect& value)
  3216. - bool WriteIntVector2(const IntVector2& value)
  3217. - bool WriteIntVector3(const IntVector3& value)
  3218. - bool WriteRect(const Rect& value)
  3219. - bool WriteVector2(const Vector2& value)
  3220. - bool WriteVector3(const Vector3& value)
  3221. - bool WritePackedVector3(const Vector3& value, float maxAbsCoord)
  3222. - bool WriteVector4(const Vector4& value)
  3223. - bool WriteQuaternion(const Quaternion& value)
  3224. - bool WritePackedQuaternion(const Quaternion& value)
  3225. - bool WriteMatrix3(const Matrix3& value)
  3226. - bool WriteMatrix3x4(const Matrix3x4& value)
  3227. - bool WriteMatrix4(const Matrix4& value)
  3228. - bool WriteColor(const Color& value)
  3229. - bool WriteBoundingBox(const BoundingBox& value)
  3230. - bool WriteString(const String value)
  3231. - bool WriteFileID(const String value)
  3232. - bool WriteStringHash(const StringHash& value)
  3233. - bool WriteBuffer(const VectorBuffer& buffer)
  3234. - bool WriteResourceRef(const ResourceRef& value)
  3235. - bool WriteResourceRefList(const ResourceRefList& value)
  3236. - bool WriteVariant(const Variant& value)
  3237. - bool WriteVariantData(const Variant& value)
  3238. - bool WriteVariantVector(const VariantVector& value)
  3239. - bool WriteVariantMap(const VariantMap& value)
  3240. - bool WriteVLE(unsigned value)
  3241. - bool WriteNetID(unsigned value)
  3242. - bool WriteLine(const String value)
  3243. Properties:
  3244. - String name (readonly)
  3245. - bool eof (readonly)
  3246. - bool open (readonly)
  3247. <a name="Class_NavArea"></a>
  3248. ### NavArea : Component
  3249. Methods:
  3250. - unsigned GetAreaID() const
  3251. - void SetAreaID(unsigned tolua_var_3)
  3252. - BoundingBox GetBoundingBox()
  3253. - void SetBoundingBox(const BoundingBox& bnds)
  3254. - BoundingBox GetWorldBoundingBox() const
  3255. Properties:
  3256. - unsigned areaID
  3257. - BoundingBox boundingBox
  3258. - BoundingBox worldBoundingBox (readonly)
  3259. <a name="Class_Navigable"></a>
  3260. ### Navigable : Component
  3261. Methods:
  3262. - void SetRecursive(bool enable)
  3263. - bool IsRecursive() const
  3264. Properties:
  3265. - bool recursive
  3266. <a name="Class_NavigationGeometryInfo"></a>
  3267. ### NavigationGeometryInfo
  3268. Properties:
  3269. - Component* component
  3270. - unsigned lodLevel
  3271. - Matrix3x4 transform
  3272. - BoundingBox boundingBox
  3273. <a name="Class_NavigationMesh"></a>
  3274. ### NavigationMesh : Component
  3275. Methods:
  3276. - void SetTileSize(int size)
  3277. - void SetCellSize(float size)
  3278. - void SetCellHeight(float height)
  3279. - void SetAgentHeight(float height)
  3280. - void SetAgentRadius(float radius)
  3281. - void SetAgentMaxClimb(float maxClimb)
  3282. - void SetAgentMaxSlope(float maxSlope)
  3283. - void SetRegionMinSize(float size)
  3284. - void SetRegionMergeSize(float size)
  3285. - void SetEdgeMaxLength(float length)
  3286. - void SetEdgeMaxError(float error)
  3287. - void SetDetailSampleDistance(float distance)
  3288. - void SetDetailSampleMaxError(float error)
  3289. - void SetPadding(const Vector3& padding)
  3290. - void SetAreaCost(unsigned areaID, float cost)
  3291. - bool Build()
  3292. - bool Build(const BoundingBox& boundingBox)
  3293. - void SetPartitionType(NavmeshPartitionType aType)
  3294. - void SetDrawOffMeshConnections(bool enable)
  3295. - void SetDrawNavAreas(bool enable)
  3296. - Vector3 FindNearestPoint(const Vector3& point)
  3297. - Vector3 FindNearestPoint(const Vector3& point, const Vector3& extents)
  3298. - Vector3 MoveAlongSurface(const Vector3& start, const Vector3& end)
  3299. - Vector3 MoveAlongSurface(const Vector3& start, const Vector3& end, const Vector3& extents, int maxVisited = 3)
  3300. - const PODVector<Vector3>& FindPath(const Vector3& start, const Vector3& end)
  3301. - const PODVector<Vector3>& FindPath(const Vector3& start, const Vector3& end, const Vector3& extents)
  3302. - Vector3 GetRandomPoint()
  3303. - Vector3 GetRandomPointInCircle(const Vector3& center, float radius)
  3304. - Vector3 GetRandomPointInCircle(const Vector3& center, float radius, const Vector3& extents)
  3305. - float GetDistanceToWall(const Vector3& point, float radius)
  3306. - float GetDistanceToWall(const Vector3& point, float radius, const Vector3& extents)
  3307. - Vector3 Raycast(const Vector3& start, const Vector3& end)
  3308. - Vector3 Raycast(const Vector3& start, const Vector3& end, const Vector3& extents)
  3309. - void DrawDebugGeometry(bool depthTest)
  3310. - int GetTileSize() const
  3311. - float GetCellSize() const
  3312. - float GetCellHeight() const
  3313. - float GetAgentHeight() const
  3314. - float GetAgentRadius() const
  3315. - float GetAgentMaxClimb() const
  3316. - float GetAgentMaxSlope() const
  3317. - float GetRegionMinSize() const
  3318. - float GetRegionMergeSize() const
  3319. - float GetEdgeMaxLength() const
  3320. - float GetEdgeMaxError() const
  3321. - float GetDetailSampleDistance() const
  3322. - float GetDetailSampleMaxError() const
  3323. - const Vector3& GetPadding() const
  3324. - float GetAreaCost(unsigned areaID) const
  3325. - bool IsInitialized() const
  3326. - const BoundingBox& GetBoundingBox() const
  3327. - BoundingBox GetWorldBoundingBox() const
  3328. - IntVector2 GetNumTiles() const
  3329. - NavmeshPartitionType GetPartitionType()
  3330. - bool GetDrawOffMeshConnections() const
  3331. - bool GetDrawNavAreas() const
  3332. Properties:
  3333. - int tileSize
  3334. - float cellSize
  3335. - float cellHeight
  3336. - float agentHeight
  3337. - float agentRadius
  3338. - float agentMaxClimb
  3339. - float agentMaxSlope
  3340. - float regionMinSize
  3341. - float regionMergeSize
  3342. - float edgeMaxLength
  3343. - float edgeMaxError
  3344. - float detailSampleDistance
  3345. - float detailSampleMaxError
  3346. - Vector3& padding
  3347. - NavmeshPartitionType partitionType
  3348. - bool drawOffMeshConnections
  3349. - bool drawNavAreas
  3350. - bool initialized (readonly)
  3351. - BoundingBox& boundingBox (readonly)
  3352. - BoundingBox worldBoundingBox (readonly)
  3353. - IntVector2 numTiles (readonly)
  3354. <a name="Class_Network"></a>
  3355. ### Network
  3356. Methods:
  3357. - bool Connect(const String address, short port, Scene* scene)
  3358. - bool Connect(const String address, short port, Scene* scene, const VariantMap& identity)
  3359. - void Disconnect(int waitMSec = 0)
  3360. - bool StartServer(short port)
  3361. - void StopServer()
  3362. - void BroadcastMessage(int msgID, bool reliable, bool inOrder, const VectorBuffer& msg, unsigned contentID = 0)
  3363. - void BroadcastRemoteEvent(StringHash eventType, bool inOrder)
  3364. - void BroadcastRemoteEvent(StringHash eventType, bool inOrder, const VariantMap& eventData)
  3365. - void BroadcastRemoteEvent(const String eventType, bool inOrder)
  3366. - void BroadcastRemoteEvent(const String eventType, bool inOrder, const VariantMap& eventData)
  3367. - void BroadcastRemoteEvent(Scene* scene, StringHash eventType, bool inOrder)
  3368. - void BroadcastRemoteEvent(Scene* scene, StringHash eventType, bool inOrder, const VariantMap& eventData)
  3369. - void BroadcastRemoteEvent(Scene* scene, const String eventType, bool inOrder)
  3370. - void BroadcastRemoteEvent(Scene* scene, const String eventType, bool inOrder, const VariantMap& eventData)
  3371. - void BroadcastRemoteEvent(Node* node, StringHash eventType, bool inOrder)
  3372. - void BroadcastRemoteEvent(Node* node, StringHash eventType, bool inOrder, const VariantMap& eventData)
  3373. - void BroadcastRemoteEvent(Node* node, const String eventType, bool inOrder)
  3374. - void BroadcastRemoteEvent(Node* node, const String eventType, bool inOrder, const VariantMap& eventData)
  3375. - void SetUpdateFps(int fps)
  3376. - void SetSimulatedLatency(int ms)
  3377. - void SetSimulatedPacketLoss(float loss)
  3378. - void RegisterRemoteEvent(StringHash eventType)
  3379. - void RegisterRemoteEvent(const String eventType)
  3380. - void UnregisterRemoteEvent(StringHash eventType)
  3381. - void UnregisterRemoteEvent(const String eventType)
  3382. - void UnregisterAllRemoteEvents()
  3383. - void SetPackageCacheDir(const String path)
  3384. - void SendPackageToClients(Scene* scene, PackageFile* package)
  3385. - HttpRequest* MakeHttpRequest(const String url, const String verb = String::EMPTY)
  3386. - HttpRequest* MakeHttpRequest(const String url, const String verb, const Vector<String>& headers, const String postData = String::EMPTY)
  3387. - int GetUpdateFps() const
  3388. - int GetSimulatedLatency() const
  3389. - float GetSimulatedPacketLoss() const
  3390. - Connection* GetServerConnection() const
  3391. - bool IsServerRunning() const
  3392. - bool CheckRemoteEvent(StringHash eventType) const
  3393. - const String GetPackageCacheDir() const
  3394. Properties:
  3395. - int updateFps
  3396. - int simulatedLatency
  3397. - float simulatedPacketLoss
  3398. - Connection* serverConnection (readonly)
  3399. - bool serverRunning (readonly)
  3400. - String packageCacheDir
  3401. <a name="Class_NetworkPriority"></a>
  3402. ### NetworkPriority : Component
  3403. Methods:
  3404. - void SetBasePriority(float priority)
  3405. - void SetDistanceFactor(float factor)
  3406. - void SetMinPriority(float priority)
  3407. - void SetAlwaysUpdateOwner(bool enable)
  3408. - float GetBasePriority() const
  3409. - float GetDistanceFactor() const
  3410. - float GetMinPriority() const
  3411. - bool GetAlwaysUpdateOwner() const
  3412. - bool CheckUpdate(float distance, float accumulator)
  3413. Properties:
  3414. - float basePriority
  3415. - float distanceFactor
  3416. - float minPriority
  3417. - bool alwaysUpdateOwner
  3418. <a name="Class_Node"></a>
  3419. ### Node : Animatable
  3420. Methods:
  3421. - Node() (GC)
  3422. - Node* new()
  3423. - void delete()
  3424. - bool SaveXML(File* dest, const String indentation = "\t") const
  3425. - bool SaveJSON(File* dest, const String indentation = "\t") const
  3426. - void SetName(const String name)
  3427. - void AddTag(const String tag)
  3428. - void AddTags(const String tags, char separator)
  3429. - bool RemoveTag(const String tag)
  3430. - void RemoveAllTags()
  3431. - void SetPosition(const Vector3& position)
  3432. - void SetPosition2D(const Vector2& position)
  3433. - void SetPosition2D(float x, float y)
  3434. - void SetRotation(const Quaternion& rotation)
  3435. - void SetRotation2D(float rotation)
  3436. - void SetDirection(const Vector3& direction)
  3437. - void SetScale(float scale)
  3438. - void SetScale(const Vector3& scale)
  3439. - void SetScale2D(const Vector2& scale)
  3440. - void SetScale2D(float x, float y)
  3441. - void SetTransform(const Vector3& position, const Quaternion& rotation)
  3442. - void SetTransform(const Vector3& position, const Quaternion& rotation, const Vector3& scale)
  3443. - void SetTransform(const Vector3& position, const Quaternion& rotation, float scale)
  3444. - void SetTransform(const Matrix3x4& transform)
  3445. - void SetTransform2D(const Vector2& position, float rotation)
  3446. - void SetTransform2D(const Vector2& position, float rotation, const Vector2& scale)
  3447. - void SetTransform2D(const Vector2& position, float rotation, float scale)
  3448. - void SetWorldPosition(const Vector3& position)
  3449. - void SetWorldPosition2D(const Vector2& position)
  3450. - void SetWorldPosition2D(float x, float y)
  3451. - void SetWorldRotation(const Quaternion& rotation)
  3452. - void SetWorldRotation2D(float rotation)
  3453. - void SetWorldDirection(const Vector3& direction)
  3454. - void SetWorldScale(float scale)
  3455. - void SetWorldScale(const Vector3& scale)
  3456. - void SetWorldScale2D(const Vector2& scale)
  3457. - void SetWorldScale2D(float x, float y)
  3458. - void SetWorldTransform(const Vector3& position, const Quaternion& rotation)
  3459. - void SetWorldTransform(const Vector3& position, const Quaternion& rotation, const Vector3& scale)
  3460. - void SetWorldTransform(const Vector3& position, const Quaternion& rotation, float scale)
  3461. - void SetWorldTransform2D(const Vector2& position, float rotation)
  3462. - void SetWorldTransform2D(const Vector2& position, float rotation, const Vector2& scale)
  3463. - void SetWorldTransform2D(const Vector2& position, float rotation, float scale)
  3464. - void Translate(const Vector3& delta, TransformSpace space = TS_LOCAL)
  3465. - void Translate2D(const Vector2& delta, TransformSpace space = TS_LOCAL)
  3466. - void Rotate(const Quaternion& delta, TransformSpace space = TS_LOCAL)
  3467. - void Rotate2D(float delta, TransformSpace space = TS_LOCAL)
  3468. - void RotateAround(const Vector3& point, const Quaternion& delta, TransformSpace space = TS_LOCAL)
  3469. - void RotateAround2D(const Vector2& point, float delta, TransformSpace space = TS_LOCAL)
  3470. - void Pitch(float angle, TransformSpace space = TS_LOCAL)
  3471. - void Yaw(float angle, TransformSpace space = TS_LOCAL)
  3472. - void Roll(float angle, TransformSpace space = TS_LOCAL)
  3473. - bool LookAt(const Vector3& target)
  3474. - bool LookAt(const Vector3& target, const Vector3& upAxis, TransformSpace space = TS_WORLD)
  3475. - void Scale(float scale)
  3476. - void Scale(const Vector3& scale)
  3477. - void Scale2D(const Vector2& scale)
  3478. - void SetEnabled(bool enable)
  3479. - void SetDeepEnabled(bool enable)
  3480. - void ResetDeepEnabled()
  3481. - void SetEnabledRecursive(bool enable)
  3482. - void SetOwner(Connection* owner)
  3483. - void MarkDirty()
  3484. - Node* CreateChild(const String name = String::EMPTY, CreateMode mode = REPLICATED, unsigned id = 0, bool temporary = false)
  3485. - Node* CreateTemporaryChild(const String name = String::EMPTY, CreateMode mode = REPLICATED, unsigned id = 0)
  3486. - void AddChild(Node* node, unsigned index = M_MAX_UNSIGNED)
  3487. - void RemoveChild(Node* node)
  3488. - void RemoveAllChildren()
  3489. - void RemoveChildren(bool removeReplicated, bool removeLocal, bool recursive)
  3490. - void RemoveComponent(Component* component)
  3491. - void RemoveComponent(StringHash type)
  3492. - void RemoveComponent(const String type)
  3493. - void RemoveComponents(bool removeReplicated, bool removeLocal)
  3494. - void RemoveComponents(const String type)
  3495. - void RemoveAllComponents()
  3496. - void ReorderComponent(Component* component, unsigned index)
  3497. - Node* Clone(CreateMode mode = REPLICATED)
  3498. - void Remove()
  3499. - void SetParent(Node* parent)
  3500. - void SetVar(StringHash key, const Variant& value)
  3501. - void AddListener(Component* component)
  3502. - void RemoveListener(Component* component)
  3503. - Component* CreateComponent(const String type, CreateMode mode = REPLICATED, unsigned id = 0)
  3504. - Component* GetOrCreateComponent(const String type, CreateMode mode = REPLICATED, unsigned id = 0)
  3505. - Component* CloneComponent(Component* component, unsigned id = 0)
  3506. - Component* CloneComponent(Component* component, CreateMode mode, unsigned id = 0)
  3507. - int CreateScriptObject(const String scriptObjectType)
  3508. - int CreateScriptObject(const String fileName, const String scriptObjectType)
  3509. - int GetScriptObject() const
  3510. - int GetScriptObject(const String scriptObjectType) const
  3511. - unsigned GetID() const
  3512. - const String GetName() const
  3513. - StringHash GetNameHash() const
  3514. - Node* GetParent() const
  3515. - Scene* GetScene() const
  3516. - bool IsEnabled() const
  3517. - bool IsEnabledSelf() const
  3518. - Connection* GetOwner() const
  3519. - const Vector3& GetPosition() const
  3520. - Vector2 GetPosition2D() const
  3521. - const Quaternion& GetRotation() const
  3522. - float GetRotation2D() const
  3523. - Vector3 GetDirection() const
  3524. - Vector3 GetUp() const
  3525. - Vector3 GetRight() const
  3526. - const Vector3& GetScale() const
  3527. - Vector2 GetScale2D() const
  3528. - Matrix3x4 GetTransform() const
  3529. - Vector3 GetWorldPosition() const
  3530. - Vector2 GetWorldPosition2D() const
  3531. - Quaternion GetWorldRotation() const
  3532. - float GetWorldRotation2D() const
  3533. - Vector3 GetWorldDirection() const
  3534. - Vector3 GetWorldUp() const
  3535. - Vector3 GetWorldRight() const
  3536. - Vector3 GetWorldScale() const
  3537. - Vector2 GetWorldScale2D() const
  3538. - const Matrix3x4& GetWorldTransform() const
  3539. - Vector3 LocalToWorld(const Vector3& position) const
  3540. - Vector3 LocalToWorld(const Vector4& vector) const
  3541. - Vector2 LocalToWorld2D(const Vector2& vector) const
  3542. - Vector3 WorldToLocal(const Vector3& position) const
  3543. - Vector3 WorldToLocal(const Vector4& vector) const
  3544. - Vector2 WorldToLocal2D(const Vector2& vector) const
  3545. - bool IsDirty() const
  3546. - unsigned GetNumChildren(bool recursive = false) const
  3547. - Node* GetChild(const String name, bool recursive = false) const
  3548. - Node* GetChild(StringHash nameHash, bool recursive = false) const
  3549. - Node* GetChild(unsigned index) const
  3550. - unsigned GetNumComponents() const
  3551. - unsigned GetNumNetworkComponents() const
  3552. - bool HasComponent(StringHash type) const
  3553. - bool HasComponent(const String type) const
  3554. - const Variant& GetVar(StringHash key) const
  3555. - const VariantMap& GetVars() const
  3556. - Component* GetComponent(const String type, bool recursive = false) const
  3557. - Component* GetParentComponent(const String type, bool recursive = false) const
  3558. - const PODVector<Component*>& GetComponents(const String type, bool recursive = false)
  3559. - const PODVector<Node*>& GetChildren(bool recursive = false)
  3560. - const PODVector<Node*>& GetChildrenWithComponent(const String type, bool recursive = false)
  3561. - bool Load(Deserializer& source, SceneResolver& resolver, bool loadChildren = true, bool rewriteIDs = false, CreateMode mode = REPLICATED)
  3562. - bool LoadXML(const XMLElement& source, SceneResolver& resolver, bool loadChildren = true, bool rewriteIDs = false, CreateMode mode = REPLICATED)
  3563. - bool LoadJSON(const JSONValue& source, SceneResolver& resolver, bool loadChildren = true, bool rewriteIDs = false, CreateMode mode = REPLICATED)
  3564. - Node* CreateChild(unsigned id, CreateMode mode, bool temporary = false)
  3565. - void AddComponent(Component* component, unsigned id, CreateMode mode)
  3566. - bool HasTag(const String tag) const
  3567. - const StringVector& GetTags() const
  3568. - const PODVector<Node*>& GetChildrenWithTag(const String tag, bool recursive = false) const
  3569. - void SetID(unsigned id)
  3570. Properties:
  3571. - unsigned ID (readonly)
  3572. - String name
  3573. - StringHash nameHash (readonly)
  3574. - Node* parent
  3575. - Scene* scene (readonly)
  3576. - bool enabled
  3577. - bool enabledSelf (readonly)
  3578. - Connection* owner
  3579. - Vector3& position
  3580. - Vector2 position2D
  3581. - Quaternion& rotation
  3582. - float rotation2D
  3583. - Vector3 direction
  3584. - Vector3 up (readonly)
  3585. - Vector3 right (readonly)
  3586. - Vector3& scale
  3587. - Vector2 scale2D
  3588. - Matrix3x4 transform (readonly)
  3589. - Vector3 worldPosition
  3590. - Vector2 worldPosition2D
  3591. - Quaternion worldRotation
  3592. - float worldRotation2D
  3593. - Vector3 worldDirection
  3594. - Vector3 worldUp (readonly)
  3595. - Vector3 worldRight (readonly)
  3596. - Vector3 worldScale
  3597. - Vector2 worldScale2D
  3598. - Matrix3x4& worldTransform (readonly)
  3599. - bool dirty (readonly)
  3600. - unsigned numComponents (readonly)
  3601. - unsigned numNetworkComponents (readonly)
  3602. <a name="Class_Object"></a>
  3603. ### Object : RefCounted
  3604. Methods:
  3605. - StringHash GetType() const
  3606. - const String GetTypeName() const
  3607. - const String GetCategory() const
  3608. - void SendEvent(const String eventName, VariantMap* eventData = 0)
  3609. - bool HasSubscribedToEvent(const String eventName) const
  3610. - bool HasSubscribedToEvent(Object* sender, const String eventName) const
  3611. Properties:
  3612. - StringHash type (readonly)
  3613. - const String typeName (readonly)
  3614. - const String category (readonly)
  3615. <a name="Class_ObjectAnimation"></a>
  3616. ### ObjectAnimation : Resource
  3617. Methods:
  3618. - ObjectAnimation() (GC)
  3619. - ObjectAnimation* new()
  3620. - void delete()
  3621. - void AddAttributeAnimation(const String name, ValueAnimation* attributeAnimation, WrapMode wrapMode = WM_LOOP, float speed = 1.0f)
  3622. - void RemoveAttributeAnimation(const String name)
  3623. - void RemoveAttributeAnimation(ValueAnimation* attributeAnimation)
  3624. - ValueAnimation* GetAttributeAnimation(const String name) const
  3625. - WrapMode GetAttributeAnimationWrapMode(const String name) const
  3626. - float GetAttributeAnimationSpeed(const String name) const
  3627. <a name="Class_Obstacle"></a>
  3628. ### Obstacle : Component
  3629. Methods:
  3630. - void DrawDebugGeometry(bool depthTest)
  3631. - void SetRadius(float radius)
  3632. - void SetHeight(float height)
  3633. - float GetRadius() const
  3634. - float GetHeight() const
  3635. Properties:
  3636. - float radius
  3637. - float height
  3638. <a name="Class_Octree"></a>
  3639. ### Octree : Component
  3640. Methods:
  3641. - void SetSize(const BoundingBox& box, unsigned numLevels)
  3642. - void Update(const FrameInfo& frame)
  3643. - void AddManualDrawable(Drawable* drawable)
  3644. - void RemoveManualDrawable(Drawable* drawable)
  3645. - const PODVector<OctreeQueryResult>& GetDrawables(const Vector3& point, char drawableFlags = DRAWABLE_ANY, unsigned viewMask = DEFAULT_VIEWMASK) const
  3646. - const PODVector<OctreeQueryResult>& GetDrawables(const BoundingBox& box, char drawableFlags = DRAWABLE_ANY, unsigned viewMask = DEFAULT_VIEWMASK) const
  3647. - const PODVector<OctreeQueryResult>& GetDrawables(const Frustum& frustum, char drawableFlags = DRAWABLE_ANY, unsigned viewMask = DEFAULT_VIEWMASK) const
  3648. - const PODVector<OctreeQueryResult>& GetDrawables(const Sphere& sphere, char drawableFlags = DRAWABLE_ANY, unsigned viewMask = DEFAULT_VIEWMASK) const
  3649. - const PODVector<OctreeQueryResult>& GetAllDrawables(char drawableFlags = DRAWABLE_ANY, unsigned viewMask = DEFAULT_VIEWMASK) const
  3650. - const PODVector<RayQueryResult>& Raycast(const Ray& ray, RayQueryLevel level, float maxDistance, char drawableFlags, unsigned viewMask = DEFAULT_VIEWMASK) const
  3651. - RayQueryResult RaycastSingle(const Ray& ray, RayQueryLevel level, float maxDistance, char drawableFlags, unsigned viewMask = DEFAULT_VIEWMASK) const
  3652. - unsigned GetNumLevels() const
  3653. - void QueueUpdate(Drawable* drawable)
  3654. - void DrawDebugGeometry(bool depthTest)
  3655. Properties:
  3656. - unsigned numLevels (readonly)
  3657. <a name="Class_OctreeQueryResult"></a>
  3658. ### OctreeQueryResult
  3659. Methods:
  3660. - OctreeQueryResult() (GC)
  3661. - OctreeQueryResult* new()
  3662. - void delete()
  3663. Properties:
  3664. - Drawable* drawable
  3665. - Node* node
  3666. <a name="Class_OffMeshConnection"></a>
  3667. ### OffMeshConnection : Component
  3668. Methods:
  3669. - void SetEndPoint(Node* node)
  3670. - void SetRadius(float radius)
  3671. - void SetBidirectional(bool enabled)
  3672. - void SetMask(unsigned newMask)
  3673. - void SetAreaID(unsigned newAreaID)
  3674. - Node* GetEndPoint() const
  3675. - float GetRadius() const
  3676. - bool IsBidirectional() const
  3677. - unsigned GetMask() const
  3678. - unsigned GetAreaID() const
  3679. Properties:
  3680. - Node* endPoint
  3681. - float radius
  3682. - bool bidirectional
  3683. - unsigned mask
  3684. - unsigned areaID
  3685. <a name="Class_PackageEntry"></a>
  3686. ### PackageEntry
  3687. Properties:
  3688. - unsigned offset
  3689. - unsigned size
  3690. - unsigned checksum
  3691. <a name="Class_PackageFile"></a>
  3692. ### PackageFile : Object
  3693. Methods:
  3694. - PackageFile() (GC)
  3695. - PackageFile* new()
  3696. - PackageFile(const String fileName, unsigned startOffset = 0) (GC)
  3697. - PackageFile* new(const String fileName, unsigned startOffset = 0)
  3698. - void delete()
  3699. - bool Open(const String fileName, unsigned startOffset = 0)
  3700. - bool Exists(const String fileName) const
  3701. - const PackageEntry* GetEntry(const String fileName) const
  3702. - const HashMap<String,PackageEntry>& GetEntries() const
  3703. - const String GetName() const
  3704. - StringHash GetNameHash() const
  3705. - unsigned GetNumFiles() const
  3706. - unsigned GetTotalSize() const
  3707. - unsigned GetTotalDataSize() const
  3708. - unsigned GetChecksum() const
  3709. - bool IsCompressed() const
  3710. Properties:
  3711. - String name (readonly)
  3712. - StringHash nameHash (readonly)
  3713. - unsigned numFiles (readonly)
  3714. - unsigned totalSize (readonly)
  3715. - unsigned totalDataSize (readonly)
  3716. - unsigned checksum (readonly)
  3717. - bool compressed (readonly)
  3718. <a name="Class_ParticleEffect"></a>
  3719. ### ParticleEffect : Resource
  3720. Methods:
  3721. - ParticleEffect() (GC)
  3722. - ParticleEffect* new()
  3723. - void delete()
  3724. - void SetMaterial(Material* material)
  3725. - void SetNumParticles(unsigned num)
  3726. - void SetUpdateInvisible(bool enable)
  3727. - void SetRelative(bool enable)
  3728. - void SetScaled(bool enable)
  3729. - void SetSorted(bool enable)
  3730. - void SetFixedScreenSize(bool enable)
  3731. - void SetAnimationLodBias(float lodBias)
  3732. - void SetEmitterType(EmitterType type)
  3733. - void SetEmitterSize(const Vector3& size)
  3734. - void SetMinDirection(const Vector3& direction)
  3735. - void SetMaxDirection(const Vector3& direction)
  3736. - void SetConstantForce(const Vector3& force)
  3737. - void SetDampingForce(float force)
  3738. - void SetActiveTime(float time)
  3739. - void SetInactiveTime(float time)
  3740. - void SetMinEmissionRate(float rate)
  3741. - void SetMaxEmissionRate(float rate)
  3742. - void SetMinParticleSize(const Vector2& size)
  3743. - void SetMaxParticleSize(const Vector2& size)
  3744. - void SetMinTimeToLive(float time)
  3745. - void SetMaxTimeToLive(float time)
  3746. - void SetMinVelocity(float velocity)
  3747. - void SetMaxVelocity(float velocity)
  3748. - void SetMinRotation(float rotation)
  3749. - void SetMaxRotation(float rotation)
  3750. - void SetMinRotationSpeed(float speed)
  3751. - void SetMaxRotationSpeed(float speed)
  3752. - void SetSizeAdd(float sizeAdd)
  3753. - void SetSizeMul(float sizeMul)
  3754. - void AddColorTime(const Color& color, const float time)
  3755. - void AddColorFrame(const ColorFrame& colorFrame)
  3756. - void RemoveColorFrame(unsigned index)
  3757. - void SetColorFrame(unsigned index, const ColorFrame& colorFrame)
  3758. - void SetNumColorFrames(unsigned number)
  3759. - void SortColorFrames()
  3760. - void AddTextureTime(const Rect& uv, const float time)
  3761. - void AddTextureFrame(const TextureFrame& textureFrame)
  3762. - void RemoveTextureFrame(unsigned index)
  3763. - void SetTextureFrame(unsigned index, const TextureFrame& textureFrame)
  3764. - void SetNumTextureFrames(unsigned number)
  3765. - void SortTextureFrames()
  3766. - ParticleEffect* Clone(const String cloneName = String::EMPTY) const
  3767. - Material* GetMaterial() const
  3768. - unsigned GetNumParticles() const
  3769. - bool GetUpdateInvisible() const
  3770. - bool IsRelative() const
  3771. - bool IsScaled() const
  3772. - bool IsSorted() const
  3773. - bool IsFixedScreenSize() const
  3774. - float GetAnimationLodBias() const
  3775. - EmitterType GetEmitterType() const
  3776. - const Vector3& GetEmitterSize() const
  3777. - const Vector3& GetMinDirection() const
  3778. - const Vector3& GetMaxDirection() const
  3779. - const Vector3& GetConstantForce() const
  3780. - float GetDampingForce() const
  3781. - float GetActiveTime() const
  3782. - float GetInactiveTime() const
  3783. - float GetMinEmissionRate() const
  3784. - float GetMaxEmissionRate() const
  3785. - const Vector2& GetMinParticleSize() const
  3786. - const Vector2& GetMaxParticleSize() const
  3787. - float GetMinTimeToLive() const
  3788. - float GetMaxTimeToLive() const
  3789. - float GetMinVelocity() const
  3790. - float GetMaxVelocity() const
  3791. - float GetMinRotation() const
  3792. - float GetMaxRotation() const
  3793. - float GetMinRotationSpeed() const
  3794. - float GetMaxRotationSpeed() const
  3795. - float GetSizeAdd() const
  3796. - float GetSizeMul() const
  3797. - unsigned GetNumColorFrames() const
  3798. - const ColorFrame* GetColorFrame(unsigned index) const
  3799. - unsigned GetNumTextureFrames() const
  3800. - const TextureFrame* GetTextureFrame(unsigned index) const
  3801. Properties:
  3802. - Material* material
  3803. - unsigned numParticles
  3804. - bool updateInvisible
  3805. - bool relative
  3806. - bool scaled
  3807. - bool sorted
  3808. - bool fixedScreenSize
  3809. - float animationLodBias
  3810. - EmitterType emitterType
  3811. - const Vector3& emitterSize
  3812. - const Vector3& minDirection
  3813. - const Vector3& maxDirection
  3814. - const Vector3& constantForce
  3815. - float dampingForce
  3816. - float activeTime
  3817. - float inactiveTime
  3818. - float minEmissionRate
  3819. - float maxEmissionRate
  3820. - const Vector2& minParticleSize
  3821. - const Vector2& maxParticleSize
  3822. - float minTimeToLive
  3823. - float maxTimeToLive
  3824. - float minVelocity
  3825. - float maxVelocity
  3826. - float minRotation
  3827. - float maxRotation
  3828. - float minRotationSpeed
  3829. - float maxRotationSpeed
  3830. - float sizeAdd
  3831. - float sizeMul
  3832. - unsigned numColorFrames
  3833. - unsigned numTextureFrames
  3834. <a name="Class_ParticleEffect2D"></a>
  3835. ### ParticleEffect2D : Resource
  3836. Methods:
  3837. - ParticleEffect2D* Clone(const String cloneName = String::EMPTY) const
  3838. <a name="Class_ParticleEmitter"></a>
  3839. ### ParticleEmitter : BillboardSet
  3840. Methods:
  3841. - void SetEffect(ParticleEffect* effect)
  3842. - void SetNumParticles(unsigned num)
  3843. - void SetEmitting(bool enable)
  3844. - void SetSerializeParticles(bool enable)
  3845. - void SetAutoRemoveMode(AutoRemoveMode mode)
  3846. - void ResetEmissionTimer()
  3847. - void RemoveAllParticles()
  3848. - void Reset()
  3849. - void ApplyEffect()
  3850. - ParticleEffect* GetEffect() const
  3851. - unsigned GetNumParticles() const
  3852. - bool IsEmitting() const
  3853. - bool GetSerializeParticles() const
  3854. - AutoRemoveMode GetAutoRemoveMode() const
  3855. Properties:
  3856. - ParticleEffect* effect
  3857. - unsigned numParticles
  3858. - bool emitting
  3859. - bool serializeParticles
  3860. - AutoRemoveMode autoRemoveMode
  3861. <a name="Class_ParticleEmitter2D"></a>
  3862. ### ParticleEmitter2D : Drawable2D
  3863. Methods:
  3864. - void SetEffect(ParticleEffect2D* effect)
  3865. - void SetSprite(Sprite2D* sprite)
  3866. - void SetBlendMode(BlendMode blendMode)
  3867. - ParticleEffect2D* GetEffect() const
  3868. - Sprite2D* GetSprite() const
  3869. - BlendMode GetBlendMode() const
  3870. Properties:
  3871. - ParticleEffect2D* effect
  3872. - Sprite2D* sprite
  3873. - BlendMode blendMode
  3874. <a name="Class_Pass"></a>
  3875. ### Pass : RefCounted
  3876. Methods:
  3877. - void SetBlendMode(BlendMode mode)
  3878. - void SetCullMode(CullMode mode)
  3879. - void SetDepthTestMode(CompareMode mode)
  3880. - void SetLightingMode(PassLightingMode mode)
  3881. - void SetDepthWrite(bool enable)
  3882. - void SetAlphaToCoverage(bool enable)
  3883. - void SetIsDesktop(bool enable)
  3884. - void SetVertexShader(const String name)
  3885. - void SetPixelShader(const String name)
  3886. - void SetVertexShaderDefines(const String defines)
  3887. - void SetPixelShaderDefines(const String defines)
  3888. - void SetVertexShaderDefineExcludes(const String excludes)
  3889. - void SetPixelShaderDefineExcludes(const String excludes)
  3890. - void ReleaseShaders()
  3891. - const String GetName() const
  3892. - unsigned GetIndex() const
  3893. - CullMode GetCullMode() const
  3894. - BlendMode GetBlendMode() const
  3895. - CompareMode GetDepthTestMode() const
  3896. - PassLightingMode GetLightingMode() const
  3897. - bool GetDepthWrite() const
  3898. - bool GetAlphaToCoverage() const
  3899. - bool IsDesktop() const
  3900. - const String GetVertexShader() const
  3901. - const String GetPixelShader() const
  3902. - const String GetVertexShaderDefines() const
  3903. - const String GetPixelShaderDefines() const
  3904. - const String GetVertexShaderDefineExcludes() const
  3905. - const String GetPixelShaderDefineExcludes() const
  3906. Properties:
  3907. - String name (readonly)
  3908. - unsigned index (readonly)
  3909. - BlendMode blendMode
  3910. - CullMode cullMode
  3911. - CompareMode depthTestMode
  3912. - PassLightingMode lightingMode
  3913. - bool depthWrite
  3914. - bool alphaToCoverage
  3915. - bool desktop (readonly)
  3916. - String vertexShader
  3917. - String pixelShader
  3918. - String vertexShaderDefines
  3919. - String pixelShaderDefines
  3920. - String vertexShaderDefineExcludes
  3921. - String pixelShaderDefineExcludes
  3922. <a name="Class_PhysicsRaycastResult"></a>
  3923. ### PhysicsRaycastResult
  3924. Methods:
  3925. - PhysicsRaycastResult() (GC)
  3926. - PhysicsRaycastResult* new()
  3927. - void delete()
  3928. Properties:
  3929. - Vector3 position
  3930. - Vector3 normal
  3931. - float distance
  3932. - float hitFraction
  3933. - RigidBody* body
  3934. <a name="Class_PhysicsRaycastResult2D"></a>
  3935. ### PhysicsRaycastResult2D
  3936. Methods:
  3937. - PhysicsRaycastResult2D() (GC)
  3938. - PhysicsRaycastResult2D* new()
  3939. - void delete()
  3940. Properties:
  3941. - Vector2 position
  3942. - Vector2 normal
  3943. - float distance
  3944. - RigidBody2D* body
  3945. <a name="Class_PhysicsWorld"></a>
  3946. ### PhysicsWorld : Component
  3947. Methods:
  3948. - void Update(float timeStep)
  3949. - void UpdateCollisions()
  3950. - void SetFps(int fps)
  3951. - void SetGravity(const Vector3& gravity)
  3952. - void SetMaxSubSteps(int num)
  3953. - void SetNumIterations(int num)
  3954. - void SetUpdateEnabled(bool enable)
  3955. - void SetInterpolation(bool enable)
  3956. - void SetInternalEdge(bool enable)
  3957. - void SetSplitImpulse(bool enable)
  3958. - void SetMaxNetworkAngularVelocity(float velocity)
  3959. - const PODVector<PhysicsRaycastResult>& Raycast(const Ray& ray, float maxDistance, unsigned collisionMask = M_MAX_UNSIGNED)
  3960. - PhysicsRaycastResult RaycastSingle(const Ray& ray, float maxDistance, unsigned collisionMask = M_MAX_UNSIGNED)
  3961. - PhysicsRaycastResult RaycastSingleSegmented(const Ray& ray, float maxDistance, float segmentDistance, unsigned collisionMask = M_MAX_UNSIGNED)
  3962. - PhysicsRaycastResult SphereCast(const Ray& ray, float radius, float maxDistance, unsigned collisionMask = M_MAX_UNSIGNED)
  3963. - PhysicsRaycastResult ConvexCast(CollisionShape* shape, const Vector3& startPos, const Quaternion& startRot, const Vector3& endPos, const Quaternion& endRot, unsigned collisionMask = M_MAX_UNSIGNED)
  3964. - const PODVector<RigidBody*>& GetRigidBodies(const Sphere& sphere, unsigned collisionMask = M_MAX_UNSIGNED)
  3965. - const PODVector<RigidBody*>& GetRigidBodies(const BoundingBox& box, unsigned collisionMask = M_MAX_UNSIGNED)
  3966. - const PODVector<RigidBody*>& GetRigidBodies(const RigidBody* body)
  3967. - const PODVector<RigidBody*>& GetCollidingBodies(const RigidBody* body)
  3968. - void DrawDebugGeometry(bool depthTest)
  3969. - void RemoveCachedGeometry(Model* model)
  3970. - Vector3 GetGravity() const
  3971. - int GetMaxSubSteps() const
  3972. - int GetNumIterations() const
  3973. - bool IsUpdateEnabled() const
  3974. - bool GetInterpolation() const
  3975. - bool GetInternalEdge() const
  3976. - bool GetSplitImpulse() const
  3977. - int GetFps() const
  3978. - float GetMaxNetworkAngularVelocity() const
  3979. Properties:
  3980. - Vector3 gravity
  3981. - int maxSubSteps
  3982. - int numIterations
  3983. - bool updateEnabled
  3984. - bool interpolation
  3985. - bool internalEdge
  3986. - bool splitImpulse
  3987. - int fps
  3988. - float maxNetworkAngularVelocity
  3989. <a name="Class_PhysicsWorld2D"></a>
  3990. ### PhysicsWorld2D : Component
  3991. Methods:
  3992. - void DrawDebugGeometry()
  3993. - void SetUpdateEnabled(bool enable)
  3994. - void SetDrawShape(bool drawShape)
  3995. - void SetDrawJoint(bool drawJoint)
  3996. - void SetDrawAabb(bool drawAabb)
  3997. - void SetDrawPair(bool drawPair)
  3998. - void SetDrawCenterOfMass(bool drawCenterOfMass)
  3999. - void SetAllowSleeping(bool enable)
  4000. - void SetWarmStarting(bool enable)
  4001. - void SetContinuousPhysics(bool enable)
  4002. - void SetSubStepping(bool enable)
  4003. - void SetGravity(const Vector2& gravity)
  4004. - void SetAutoClearForces(bool enable)
  4005. - void SetVelocityIterations(int velocityIterations)
  4006. - void SetPositionIterations(int positionIterations)
  4007. - const PODVector<PhysicsRaycastResult2D>& Raycast(const Vector2& startPoint, const Vector2& endPoint, unsigned collisionMask = M_MAX_UNSIGNED)
  4008. - PhysicsRaycastResult2D RaycastSingle(const Vector2& startPoint, const Vector2& endPoint, unsigned collisionMask = M_MAX_UNSIGNED)
  4009. - RigidBody2D* GetRigidBody(const Vector2& point, unsigned collisionMask = M_MAX_UNSIGNED)
  4010. - RigidBody2D* GetRigidBody(int screenX, int screenY, unsigned collisionMask = M_MAX_UNSIGNED)
  4011. - const PODVector<RigidBody2D*>& GetRigidBodies(const Rect& aabb, unsigned collisionMask = M_MAX_UNSIGNED)
  4012. - bool IsUpdateEnabled() const
  4013. - bool GetDrawShape() const
  4014. - bool GetDrawJoint() const
  4015. - bool GetDrawAabb() const
  4016. - bool GetDrawPair() const
  4017. - bool GetDrawCenterOfMass() const
  4018. - bool GetAllowSleeping() const
  4019. - bool GetWarmStarting() const
  4020. - bool GetContinuousPhysics() const
  4021. - bool GetSubStepping() const
  4022. - bool GetAutoClearForces() const
  4023. - const Vector2& GetGravity() const
  4024. - int GetVelocityIterations() const
  4025. - int GetPositionIterations() const
  4026. Properties:
  4027. - bool updateEnabled
  4028. - bool drawShape
  4029. - bool drawJoint
  4030. - bool drawAabb
  4031. - bool drawPair
  4032. - bool drawCenterOfMass
  4033. - bool allowSleeping
  4034. - bool warmStarting
  4035. - bool continuousPhysics
  4036. - bool subStepping
  4037. - bool autoClearForces
  4038. - Vector2& gravity
  4039. - int velocityIterations
  4040. - int positionIterations
  4041. <a name="Class_Plane"></a>
  4042. ### Plane
  4043. Methods:
  4044. - Plane() (GC)
  4045. - Plane* new()
  4046. - Plane(const Plane& plane) (GC)
  4047. - Plane* new(const Plane& plane)
  4048. - Plane(const Vector3& v0, const Vector3& v1, const Vector3& v2) (GC)
  4049. - Plane* new(const Vector3& v0, const Vector3& v1, const Vector3& v2)
  4050. - Plane(const Vector3& normal, const Vector3& point) (GC)
  4051. - Plane* new(const Vector3& normal, const Vector3& point)
  4052. - Plane(const Vector4& plane) (GC)
  4053. - Plane* new(const Vector4& plane)
  4054. - void delete()
  4055. - void Define(const Vector3& v0, const Vector3& v1, const Vector3& v2)
  4056. - void Define(const Vector3& normal, const Vector3& point)
  4057. - void Define(const Vector4& plane)
  4058. - void Transform(const Matrix3& transform)
  4059. - void Transform(const Matrix3x4& transform)
  4060. - void Transform(const Matrix4& transform)
  4061. - Vector3 Project(const Vector3& point) const
  4062. - float Distance(const Vector3& point) const
  4063. - Vector3 Reflect(const Vector3& direction) const
  4064. - Matrix3x4 ReflectionMatrix() const
  4065. - Plane Transformed(const Matrix3& transform) const
  4066. - Plane Transformed(const Matrix3x4& transform) const
  4067. - Plane Transformed(const Matrix4& transform) const
  4068. - Vector4 ToVector4() const
  4069. Properties:
  4070. - Vector3 normal
  4071. - Vector3 absNormal
  4072. - float d
  4073. - const Plane UP
  4074. <a name="Class_Polyhedron"></a>
  4075. ### Polyhedron
  4076. Methods:
  4077. - Polyhedron() (GC)
  4078. - Polyhedron* new()
  4079. - Polyhedron(const Polyhedron& polyhedron) (GC)
  4080. - Polyhedron* new(const Polyhedron& polyhedron)
  4081. - Polyhedron(const BoundingBox& box) (GC)
  4082. - Polyhedron* new(const BoundingBox& box)
  4083. - Polyhedron(const Frustum& frustum) (GC)
  4084. - Polyhedron* new(const Frustum& frustum)
  4085. - void delete()
  4086. - void Define(const BoundingBox& box)
  4087. - void Define(const Frustum& frustum)
  4088. - void AddFace(const Vector3& v0, const Vector3& v1, const Vector3& v2)
  4089. - void AddFace(const Vector3& v0, const Vector3& v1, const Vector3& v2, const Vector3& v3)
  4090. - void Clip(const Plane& plane)
  4091. - void Clip(const BoundingBox& box)
  4092. - void Clip(const Frustum& box)
  4093. - void Clear()
  4094. - void Transform(const Matrix3& transform)
  4095. - void Transform(const Matrix3x4& transform)
  4096. - Polyhedron Transformed(const Matrix3& transform) const
  4097. - Polyhedron Transformed(const Matrix3x4& transform) const
  4098. - bool Empty() const
  4099. Properties:
  4100. - bool empty (readonly)
  4101. <a name="Class_ProgressBar"></a>
  4102. ### ProgressBar : BorderImage
  4103. Methods:
  4104. - ProgressBar() (GC)
  4105. - ProgressBar* new()
  4106. - void delete()
  4107. - void SetOrientation(Orientation orientation)
  4108. - void SetRange(float range)
  4109. - void SetValue(float value)
  4110. - void ChangeValue(float delta)
  4111. - void SetLoadingPercentStyle(const String style)
  4112. - void SetShowPercentText(bool showPercentText)
  4113. - Orientation GetOrientation() const
  4114. - float GetRange() const
  4115. - float GetValue() const
  4116. - BorderImage* GetKnob() const
  4117. - const String GetLoadingPercentStyle()
  4118. - bool GetShowPercentText() const
  4119. Properties:
  4120. - Orientation orientation
  4121. - float range
  4122. - float value
  4123. - BorderImage* knob (readonly)
  4124. - String loadingPercentStyle (readonly)
  4125. - bool showPercentText
  4126. <a name="Class_PropertySet2D"></a>
  4127. ### PropertySet2D
  4128. Methods:
  4129. - bool HasProperty(const String name) const
  4130. - const String GetProperty(const String name) const
  4131. <a name="Class_Quaternion"></a>
  4132. ### Quaternion
  4133. Methods:
  4134. - Quaternion() (GC)
  4135. - Quaternion* new()
  4136. - Quaternion(const Quaternion& quat) (GC)
  4137. - Quaternion* new(const Quaternion& quat)
  4138. - Quaternion(float w, float x, float y, float z) (GC)
  4139. - Quaternion* new(float w, float x, float y, float z)
  4140. - Quaternion(float angle, const Vector3& axis) (GC)
  4141. - Quaternion* new(float angle, const Vector3& axis)
  4142. - Quaternion(float angle) (GC)
  4143. - Quaternion* new(float angle)
  4144. - Quaternion(float x, float y, float z) (GC)
  4145. - Quaternion* new(float x, float y, float z)
  4146. - Quaternion(const Vector3& start, const Vector3& end) (GC)
  4147. - Quaternion* new(const Vector3& start, const Vector3& end)
  4148. - Quaternion(const Vector3& xAxis, const Vector3& yAxis, const Vector3& zAxis) (GC)
  4149. - Quaternion* new(const Vector3& xAxis, const Vector3& yAxis, const Vector3& zAxis)
  4150. - Quaternion(const Matrix3& matrix) (GC)
  4151. - Quaternion* new(const Matrix3& matrix)
  4152. - void delete()
  4153. - bool operator==(const Quaternion& rhs) const
  4154. - Quaternion operator*(float rhs) const
  4155. - Quaternion operator-() const
  4156. - bool operator==(const Quaternion& rhs) const
  4157. - Quaternion operator*(float rhs) const
  4158. - Quaternion operator-() const
  4159. - Quaternion operator+(const Quaternion& rhs) const
  4160. - Quaternion operator-(const Quaternion& rhs) const
  4161. - Quaternion operator*(const Quaternion& rhs) const
  4162. - Vector3 operator*(const Vector3& rhs) const
  4163. - void FromAngleAxis(float angle, const Vector3& axis)
  4164. - void FromEulerAngles(float x, float y, float z)
  4165. - void FromRotationTo(const Vector3& start, const Vector3& end)
  4166. - void FromAxes(const Vector3& xAxis, const Vector3& yAxis, const Vector3& zAxis)
  4167. - void FromRotationMatrix(const Matrix3& matrix)
  4168. - bool FromLookRotation(const Vector3& direction, const Vector3& up)
  4169. - void Normalize()
  4170. - Quaternion Normalized() const
  4171. - Quaternion Inverse() const
  4172. - float LengthSquared() const
  4173. - float DotProduct(const Quaternion& rhs) const
  4174. - bool Equals(const Quaternion& rhs) const
  4175. - bool IsNaN() const
  4176. - Quaternion Conjugate() const
  4177. - Vector3 EulerAngles() const
  4178. - float YawAngle() const
  4179. - float PitchAngle() const
  4180. - float RollAngle() const
  4181. - Matrix3 RotationMatrix() const
  4182. - Quaternion Slerp(Quaternion rhs, float t) const
  4183. - Quaternion Nlerp(Quaternion rhs, float t, bool shortestPath) const
  4184. - String ToString() const
  4185. Properties:
  4186. - float w
  4187. - float x
  4188. - float y
  4189. - float z
  4190. - const Quaternion IDENTITY
  4191. <a name="Class_Ray"></a>
  4192. ### Ray
  4193. Methods:
  4194. - Ray() (GC)
  4195. - Ray* new()
  4196. - Ray(const Vector3& origin, const Vector3& direction) (GC)
  4197. - Ray* new(const Vector3& origin, const Vector3& direction)
  4198. - Ray(const Ray& ray) (GC)
  4199. - Ray* new(const Ray& ray)
  4200. - void delete()
  4201. - bool operator==(const Ray& rhs) const
  4202. - void Define(const Vector3& origin, const Vector3& direction)
  4203. - Vector3 Project(const Vector3& point) const
  4204. - float Distance(const Vector3& point) const
  4205. - Vector3 ClosestPoint(const Ray& ray) const
  4206. - float HitDistance(const Plane& plane) const
  4207. - float HitDistance(const BoundingBox& box) const
  4208. - float HitDistance(const Frustum& frustum, bool solidInside = true) const
  4209. - float HitDistance(const Sphere& sphere) const
  4210. - float HitDistance(const Vector3& v0, const Vector3& v1, const Vector3& v2) const
  4211. - Ray Transformed(const Matrix3x4& transform) const
  4212. Properties:
  4213. - Vector3 origin
  4214. - Vector3 direction
  4215. <a name="Class_RayQueryResult"></a>
  4216. ### RayQueryResult
  4217. Methods:
  4218. - RayQueryResult() (GC)
  4219. - RayQueryResult* new()
  4220. - void delete()
  4221. Properties:
  4222. - Vector3 position
  4223. - Vector3 normal
  4224. - Vector2 textureUV
  4225. - float distance
  4226. - Drawable* drawable
  4227. - Node* node
  4228. - unsigned subObject
  4229. <a name="Class_Rect"></a>
  4230. ### Rect
  4231. Methods:
  4232. - Rect() (GC)
  4233. - Rect* new()
  4234. - Rect(const Rect& rect) (GC)
  4235. - Rect* new(const Rect& rect)
  4236. - Rect(const Vector2& min, const Vector2& max) (GC)
  4237. - Rect* new(const Vector2& min, const Vector2& max)
  4238. - Rect(float left, float top, float right, float bottom) (GC)
  4239. - Rect* new(float left, float top, float right, float bottom)
  4240. - Rect(const Vector4& vector) (GC)
  4241. - Rect* new(const Vector4& vector)
  4242. - void delete()
  4243. - bool operator==(const Rect& rhs) const
  4244. - void Define(const Rect& rect)
  4245. - void Define(const Vector2& min, const Vector2& max)
  4246. - void Define(const Vector2& point)
  4247. - void Merge(const Vector2& point)
  4248. - void Merge(const Rect& rect)
  4249. - void Clear()
  4250. - void Clip(const Rect& rect)
  4251. - bool Defined() const
  4252. - Vector2 Center() const
  4253. - Vector2 Size() const
  4254. - Vector2 HalfSize() const
  4255. - bool Equals(const Rect& rhs) const
  4256. - Intersection IsInside(const Vector2& point) const
  4257. - Intersection IsInside(const Rect& rect) const
  4258. - Vector4 ToVector4() const
  4259. - String ToString() const
  4260. Properties:
  4261. - Vector2 min
  4262. - Vector2 max
  4263. - const Rect FULL
  4264. - const Rect POSITIVE
  4265. - const Rect ZERO
  4266. - Vector2 center (readonly)
  4267. - Vector2 size (readonly)
  4268. - Vector2 halfSize (readonly)
  4269. <a name="Class_RemoteEvent"></a>
  4270. ### RemoteEvent
  4271. Properties:
  4272. - unsigned senderID
  4273. - StringHash eventType
  4274. - VariantMap eventData
  4275. - bool inOrder
  4276. <a name="Class_RenderPath"></a>
  4277. ### RenderPath
  4278. Methods:
  4279. - RenderPath* Clone()
  4280. - bool Load(XMLFile* file)
  4281. - bool Append(XMLFile* file)
  4282. - void SetEnabled(const String tag, bool active)
  4283. - void ToggleEnabled(const String tag)
  4284. - void SetRenderTarget(unsigned index, const RenderTargetInfo& info)
  4285. - void AddRenderTarget(const RenderTargetInfo& info)
  4286. - void RemoveRenderTarget(const String name)
  4287. - void RemoveRenderTarget(unsigned index)
  4288. - void RemoveRenderTargets(const String tag)
  4289. - void SetCommand(unsigned index, const RenderPathCommand& command)
  4290. - void AddCommand(const RenderPathCommand& command)
  4291. - void InsertCommand(unsigned index, const RenderPathCommand& command)
  4292. - void RemoveCommand(unsigned index)
  4293. - void RemoveCommands(const String tag)
  4294. - void SetShaderParameter(const String name, const Variant& value)
  4295. - unsigned GetNumRenderTargets() const
  4296. - unsigned GetNumCommands() const
  4297. - RenderPathCommand* GetCommand(unsigned index)
  4298. - const Variant& GetShaderParameter(const String name) const
  4299. <a name="Class_RenderPathCommand"></a>
  4300. ### RenderPathCommand
  4301. Methods:
  4302. - RenderPathCommand() (GC)
  4303. - RenderPathCommand* new()
  4304. - void Load(const XMLElement& element)
  4305. - void SetTextureName(TextureUnit unit, const String name)
  4306. - void SetShaderParameter(const String name, const Variant& value)
  4307. - void RemoveShaderParameter(const String name)
  4308. - void SetNumOutputs(unsigned num)
  4309. - void SetOutput(unsigned index, const String name, CubeMapFace face)
  4310. - void SetOutputName(unsigned index, const String name)
  4311. - void SetOutputFace(unsigned index, CubeMapFace face)
  4312. - void SetDepthStencilName(const String name)
  4313. - const String GetTextureName(TextureUnit unit) const
  4314. - const Variant& GetShaderParameter(const String name) const
  4315. - unsigned GetNumOutputs() const
  4316. - const String GetOutputName(unsigned index) const
  4317. - CubeMapFace GetOutputFace(unsigned index) const
  4318. - const String GetDepthStencilName() const
  4319. Properties:
  4320. - String tag
  4321. - RenderCommandType type
  4322. - RenderCommandSortMode sortMode
  4323. - String pass
  4324. - String metadata
  4325. - String vertexShaderName
  4326. - String pixelShaderName
  4327. - String vertexShaderDefines
  4328. - String pixelShaderDefines
  4329. - unsigned clearFlags
  4330. - Color clearColor
  4331. - float clearDepth
  4332. - unsigned clearStencil
  4333. - BlendMode blendMode
  4334. - bool enabled
  4335. - bool useFogColor
  4336. - bool markToStencil
  4337. - bool useLitBase
  4338. - bool vertexLights
  4339. - String eventName
  4340. <a name="Class_RenderSurface"></a>
  4341. ### RenderSurface
  4342. Methods:
  4343. - RenderSurface(Texture* parentTexture) (GC)
  4344. - RenderSurface* new(Texture* parentTexture)
  4345. - void delete()
  4346. - void SetNumViewports(unsigned num)
  4347. - void SetViewport(unsigned index, Viewport* viewport)
  4348. - void SetUpdateMode(RenderSurfaceUpdateMode mode)
  4349. - void SetLinkedRenderTarget(RenderSurface* renderTarget)
  4350. - void SetLinkedDepthStencil(RenderSurface* depthStencil)
  4351. - void QueueUpdate()
  4352. - void Release()
  4353. - Texture* GetParentTexture() const
  4354. - int GetWidth() const
  4355. - int GetHeight() const
  4356. - TextureUsage GetUsage() const
  4357. - unsigned GetNumViewports() const
  4358. - Viewport* GetViewport(unsigned index) const
  4359. - RenderSurfaceUpdateMode GetUpdateMode() const
  4360. - RenderSurface* GetLinkedRenderTarget() const
  4361. - RenderSurface* GetLinkedDepthStencil() const
  4362. - bool IsResolveDirty() const
  4363. Properties:
  4364. - Texture* parentTexture (readonly)
  4365. - int width (readonly)
  4366. - int height (readonly)
  4367. - TextureUsage usage (readonly)
  4368. - unsigned numViewports
  4369. - RenderSurfaceUpdateMode updateMode
  4370. - RenderSurface* linkedRenderTarget
  4371. - RenderSurface* linkedDepthStencil
  4372. - bool resolveDirty (readonly)
  4373. <a name="Class_RenderTargetInfo"></a>
  4374. ### RenderTargetInfo
  4375. Methods:
  4376. - RenderTargetInfo() (GC)
  4377. - RenderTargetInfo* new()
  4378. - void Load(const XMLElement& element)
  4379. Properties:
  4380. - String name
  4381. - String tag
  4382. - unsigned format
  4383. - Vector2 size
  4384. - RenderTargetSizeMode sizeMode
  4385. - int multiSample
  4386. - bool autoResolve
  4387. - bool enabled
  4388. - bool cubemap
  4389. - bool filtered
  4390. - bool sRGB
  4391. - bool persistent
  4392. <a name="Class_Renderer"></a>
  4393. ### Renderer
  4394. Methods:
  4395. - void SetNumViewports(unsigned num)
  4396. - void SetViewport(unsigned index, Viewport* viewport)
  4397. - void SetDefaultRenderPath(RenderPath* renderPath)
  4398. - void SetDefaultRenderPath(XMLFile* file)
  4399. - void SetDefaultTechnique(Technique* technique)
  4400. - void SetHDRRendering(bool enable)
  4401. - void SetSpecularLighting(bool enable)
  4402. - void SetTextureAnisotropy(int level)
  4403. - void SetTextureFilterMode(TextureFilterMode mode)
  4404. - void SetTextureQuality(int quality)
  4405. - void SetMaterialQuality(int quality)
  4406. - void SetDrawShadows(bool enable)
  4407. - void SetShadowMapSize(int size)
  4408. - void SetShadowQuality(ShadowQuality quality)
  4409. - void SetShadowSoftness(float shadowSoftness)
  4410. - void SetVSMShadowParameters(float minVariance, float lightBleedingReduction)
  4411. - void SetVSMMultiSample(int multiSample)
  4412. - void SetReuseShadowMaps(bool enable)
  4413. - void SetMaxShadowMaps(int shadowMaps)
  4414. - void SetDynamicInstancing(bool enable)
  4415. - void SetNumExtraInstancingBufferElements(int elements)
  4416. - void SetMinInstances(int instances)
  4417. - void SetMaxSortedInstances(int instances)
  4418. - void SetMaxOccluderTriangles(int triangles)
  4419. - void SetOcclusionBufferSize(int size)
  4420. - void SetOccluderSizeThreshold(float screenSize)
  4421. - void SetThreadedOcclusion(bool enable)
  4422. - void SetMobileShadowBiasMul(float mul)
  4423. - void SetMobileShadowBiasAdd(float add)
  4424. - void SetMobileNormalOffsetMul(float mul)
  4425. - void ReloadShaders()
  4426. - unsigned GetNumViewports() const
  4427. - Viewport* GetViewport(unsigned index) const
  4428. - RenderPath* GetDefaultRenderPath() const
  4429. - Technique* GetDefaultTechnique() const
  4430. - bool GetHDRRendering() const
  4431. - bool GetSpecularLighting() const
  4432. - bool GetDrawShadows() const
  4433. - int GetTextureAnisotropy() const
  4434. - TextureFilterMode GetTextureFilterMode() const
  4435. - int GetTextureQuality() const
  4436. - int GetMaterialQuality() const
  4437. - int GetShadowMapSize() const
  4438. - ShadowQuality GetShadowQuality() const
  4439. - float GetShadowSoftness() const
  4440. - Vector2 GetVSMShadowParameters() const
  4441. - int GetVSMMultiSample() const
  4442. - bool GetReuseShadowMaps() const
  4443. - int GetMaxShadowMaps() const
  4444. - bool GetDynamicInstancing() const
  4445. - int GetNumExtraInstancingBufferElements() const
  4446. - int GetMinInstances() const
  4447. - int GetMaxSortedInstances() const
  4448. - int GetMaxOccluderTriangles() const
  4449. - int GetOcclusionBufferSize() const
  4450. - float GetOccluderSizeThreshold() const
  4451. - bool GetThreadedOcclusion() const
  4452. - float GetMobileShadowBiasMul() const
  4453. - float GetMobileShadowBiasAdd() const
  4454. - float GetMobileNormalOffsetMul() const
  4455. - unsigned GetNumViews() const
  4456. - unsigned GetNumPrimitives() const
  4457. - unsigned GetNumBatches() const
  4458. - unsigned GetNumGeometries(bool allViews = false) const
  4459. - unsigned GetNumLights(bool allViews = false) const
  4460. - unsigned GetNumShadowMaps(bool allViews = false) const
  4461. - unsigned GetNumOccluders(bool allViews = false) const
  4462. - Zone* GetDefaultZone() const
  4463. - Material* GetDefaultMaterial() const
  4464. - Texture2D* GetDefaultLightRamp() const
  4465. - Texture2D* GetDefaultLightSpot() const
  4466. - void DrawDebugGeometry(bool depthTest)
  4467. Properties:
  4468. - unsigned numViewports
  4469. - RenderPath* defaultRenderPath
  4470. - Technique* defaultTechnique
  4471. - bool HDRRendering
  4472. - bool specularLighting
  4473. - bool drawShadows
  4474. - int textureAnisotropy
  4475. - TextureFilterMode textureFilterMode
  4476. - int textureQuality
  4477. - int materialQuality
  4478. - int shadowMapSize
  4479. - ShadowQuality shadowQuality
  4480. - float shadowSoftness
  4481. - int VSMMultiSample
  4482. - bool reuseShadowMaps
  4483. - int maxShadowMaps
  4484. - bool dynamicInstancing
  4485. - int numExtraInstancingBufferElements
  4486. - int minInstances
  4487. - int maxSortedInstances
  4488. - int maxOccluderTriangles
  4489. - int occlusionBufferSize
  4490. - float occluderSizeThreshold
  4491. - bool threadedOcclusion
  4492. - float mobileShadowBiasMul
  4493. - float mobileShadowBiasAdd
  4494. - float mobileNormalOffsetMul
  4495. - unsigned numViews (readonly)
  4496. - unsigned numPrimitives (readonly)
  4497. - unsigned numBatches (readonly)
  4498. - Zone* defaultZone (readonly)
  4499. - Material* defaultMaterial (readonly)
  4500. - Texture2D* defaultLightRamp (readonly)
  4501. - Texture2D* defaultLightSpot (readonly)
  4502. <a name="Class_Resource"></a>
  4503. ### Resource
  4504. Methods:
  4505. - bool Load(Deserializer& source)
  4506. - bool Save(Serializer& dest) const
  4507. - bool Load(const String fileName)
  4508. - bool Save(const String fileName) const
  4509. - const String GetName() const
  4510. - StringHash GetNameHash() const
  4511. - unsigned GetMemoryUse() const
  4512. Properties:
  4513. - String name (readonly)
  4514. - StringHash nameHash (readonly)
  4515. - unsigned memoryUse (readonly)
  4516. <a name="Class_ResourceCache"></a>
  4517. ### ResourceCache
  4518. Methods:
  4519. - void ReleaseAllResources(bool force = false)
  4520. - bool ReloadResource(Resource* resource)
  4521. - void ReloadResourceWithDependencies(const String fileName)
  4522. - void SetMemoryBudget(StringHash type, long budget)
  4523. - void SetMemoryBudget(const String type, long budget)
  4524. - void SetAutoReloadResources(bool enable)
  4525. - void SetReturnFailedResources(bool enable)
  4526. - void SetSearchPackagesFirst(bool value)
  4527. - void SetFinishBackgroundResourcesMs(int ms)
  4528. - File* GetFile(const String name)
  4529. - Resource* GetResource(const String type, const String name, bool sendEventOnFailure = true)
  4530. - Resource* GetExistingResource(const String type, const String name)
  4531. - bool BackgroundLoadResource(const String type, const String name, bool sendEventOnFailure = true)
  4532. - unsigned GetNumBackgroundLoadResources() const
  4533. - const Vector<String>& GetResourceDirs() const
  4534. - bool Exists(const String name) const
  4535. - long GetMemoryBudget(StringHash type) const
  4536. - long GetMemoryUse(StringHash type) const
  4537. - long GetTotalMemoryUse() const
  4538. - String GetResourceFileName(const String name) const
  4539. - bool GetAutoReloadResources() const
  4540. - bool GetReturnFailedResources() const
  4541. - bool GetSearchPackagesFirst() const
  4542. - int GetFinishBackgroundResourcesMs() const
  4543. - String GetPreferredResourceDir(const String path) const
  4544. - String SanitateResourceName(const String name) const
  4545. - String SanitateResourceDirName(const String name) const
  4546. Properties:
  4547. - long totalMemoryUse (readonly)
  4548. - bool autoReloadResources
  4549. - bool returnFailedResources
  4550. - bool searchPackagesFirst
  4551. - unsigned numBackgroundLoadResources (readonly)
  4552. - Vector<String>& resourceDirs (readonly)
  4553. - int finishBackgroundResourcesMs
  4554. <a name="Class_ResourceRef"></a>
  4555. ### ResourceRef
  4556. Methods:
  4557. - ResourceRef() (GC)
  4558. - ResourceRef* new()
  4559. - ResourceRef(StringHash type) (GC)
  4560. - ResourceRef* new(StringHash type)
  4561. - ResourceRef(StringHash type, String name) (GC)
  4562. - ResourceRef* new(StringHash type, String name)
  4563. - ResourceRef(String type, String name) (GC)
  4564. - ResourceRef* new(String type, String name)
  4565. - ResourceRef(const ResourceRef& rhs) (GC)
  4566. - ResourceRef* new(const ResourceRef& rhs)
  4567. - void delete()
  4568. - bool operator==(const ResourceRef& rhs) const
  4569. Properties:
  4570. - StringHash type
  4571. - String name
  4572. <a name="Class_ResourceRefList"></a>
  4573. ### ResourceRefList
  4574. Methods:
  4575. - ResourceRefList() (GC)
  4576. - ResourceRefList* new()
  4577. - ResourceRefList(StringHash type) (GC)
  4578. - ResourceRefList* new(StringHash type)
  4579. - void delete()
  4580. - bool operator==(const ResourceRefList& rhs) const
  4581. Properties:
  4582. - StringHash type
  4583. <a name="Class_RibbonTrail"></a>
  4584. ### RibbonTrail : Drawable
  4585. Methods:
  4586. - void SetMaterial(Material* material)
  4587. - void SetVertexDistance(float length)
  4588. - void SetWidth(float width)
  4589. - void SetStartColor(const Color& c)
  4590. - void SetEndColor(const Color& c)
  4591. - void SetStartScale(float startScale)
  4592. - void SetEndScale(float endScale)
  4593. - void SetTrailType(TrailType type)
  4594. - void SetSorted(bool enable)
  4595. - void SetLifetime(float time)
  4596. - void SetEmitting(bool emitting)
  4597. - void SetUpdateInvisible(bool updateInvisible)
  4598. - void SetTailColumn(unsigned tailColumn)
  4599. - void SetAnimationLodBias(float bias)
  4600. - void Commit()
  4601. - Material* GetMaterial() const
  4602. - float GetVertexDistance() const
  4603. - float GetWidth() const
  4604. - const Color& GetStartColor() const
  4605. - const Color& GetEndColor() const
  4606. - float GetStartScale() const
  4607. - float GetEndScale() const
  4608. - TrailType GetTrailType() const
  4609. - bool IsSorted() const
  4610. - float GetLifetime() const
  4611. - unsigned GetTailColumn() const
  4612. - bool IsEmitting() const
  4613. - bool GetUpdateInvisible() const
  4614. - float GetAnimationLodBias() const
  4615. Properties:
  4616. - Material* material
  4617. - float vertexDistance
  4618. - float width
  4619. - Color& startColor
  4620. - Color& endColor
  4621. - float startScale
  4622. - float endScale
  4623. - TrailType trailType
  4624. - bool sorted
  4625. - float lifetime
  4626. - unsigned tailColumn
  4627. - bool emitting
  4628. - bool updateInvisible
  4629. - float animationLodBias
  4630. <a name="Class_RigidBody"></a>
  4631. ### RigidBody : Component
  4632. Methods:
  4633. - void SetMass(float mass)
  4634. - void SetPosition(const Vector3& position)
  4635. - void SetRotation(const Quaternion& rotation)
  4636. - void SetTransform(const Vector3& position, const Quaternion& rotation)
  4637. - void SetLinearVelocity(const Vector3& velocity)
  4638. - void SetLinearFactor(const Vector3& factor)
  4639. - void SetLinearRestThreshold(float threshold)
  4640. - void SetLinearDamping(float damping)
  4641. - void SetAngularVelocity(const Vector3& angularVelocity)
  4642. - void SetAngularFactor(const Vector3& factor)
  4643. - void SetAngularRestThreshold(float threshold)
  4644. - void SetAngularDamping(float factor)
  4645. - void SetFriction(float friction)
  4646. - void SetAnisotropicFriction(const Vector3& friction)
  4647. - void SetRollingFriction(float friction)
  4648. - void SetRestitution(float restitution)
  4649. - void SetContactProcessingThreshold(float threshold)
  4650. - void SetCcdRadius(float radius)
  4651. - void SetCcdMotionThreshold(float threshold)
  4652. - void SetUseGravity(bool enable)
  4653. - void SetGravityOverride(const Vector3& gravity)
  4654. - void SetKinematic(bool enable)
  4655. - void SetTrigger(bool enable)
  4656. - void SetCollisionLayer(unsigned layer)
  4657. - void SetCollisionMask(unsigned mask)
  4658. - void SetCollisionLayerAndMask(unsigned layer, unsigned mask)
  4659. - void SetCollisionEventMode(CollisionEventMode mode)
  4660. - void DisableMassUpdate()
  4661. - void EnableMassUpdate()
  4662. - void ApplyForce(const Vector3& force)
  4663. - void ApplyForce(const Vector3& force, const Vector3& position)
  4664. - void ApplyTorque(const Vector3& torque)
  4665. - void ApplyImpulse(const Vector3& impulse)
  4666. - void ApplyImpulse(const Vector3& impulse, const Vector3& position)
  4667. - void ApplyTorqueImpulse(const Vector3& torque)
  4668. - void ResetForces()
  4669. - void Activate()
  4670. - void ReAddBodyToWorld()
  4671. - PhysicsWorld* GetPhysicsWorld() const
  4672. - float GetMass() const
  4673. - Vector3 GetPosition() const
  4674. - Quaternion GetRotation() const
  4675. - Vector3 GetLinearVelocity() const
  4676. - Vector3 GetLinearFactor() const
  4677. - Vector3 GetVelocityAtPoint(const Vector3& position) const
  4678. - float GetLinearRestThreshold() const
  4679. - float GetLinearDamping() const
  4680. - Vector3 GetAngularVelocity() const
  4681. - Vector3 GetAngularFactor() const
  4682. - float GetAngularRestThreshold() const
  4683. - float GetAngularDamping() const
  4684. - float GetFriction() const
  4685. - Vector3 GetAnisotropicFriction() const
  4686. - float GetRollingFriction() const
  4687. - float GetRestitution() const
  4688. - float GetContactProcessingThreshold() const
  4689. - float GetCcdRadius() const
  4690. - float GetCcdMotionThreshold() const
  4691. - bool GetUseGravity() const
  4692. - const Vector3& GetGravityOverride() const
  4693. - const Vector3& GetCenterOfMass() const
  4694. - bool IsKinematic() const
  4695. - bool IsTrigger() const
  4696. - bool IsActive() const
  4697. - unsigned GetCollisionLayer() const
  4698. - unsigned GetCollisionMask() const
  4699. - CollisionEventMode GetCollisionEventMode() const
  4700. Properties:
  4701. - PhysicsWorld* physicsWorld (readonly)
  4702. - float mass
  4703. - Vector3 position
  4704. - Quaternion rotation
  4705. - Vector3 linearVelocity
  4706. - Vector3 linearFactor
  4707. - float linearRestThreshold
  4708. - float linearDamping
  4709. - Vector3 angularVelocity
  4710. - Vector3 angularFactor
  4711. - float angularRestThreshold
  4712. - float angularDamping
  4713. - float friction
  4714. - Vector3 anisotropicFriction
  4715. - float rollingFriction
  4716. - float restitution
  4717. - float contactProcessingThreshold
  4718. - float ccdRadius
  4719. - float ccdMotionThreshold
  4720. - bool useGravity
  4721. - Vector3& gravityOverride
  4722. - Vector3& centerOfMass (readonly)
  4723. - bool kinematic
  4724. - bool trigger
  4725. - bool active (readonly)
  4726. - unsigned collisionLayer
  4727. - unsigned collisionMask
  4728. - CollisionEventMode collisionEventMode
  4729. <a name="Class_RigidBody2D"></a>
  4730. ### RigidBody2D : Component
  4731. Methods:
  4732. - void SetBodyType(BodyType2D bodyType)
  4733. - void SetMass(float mass)
  4734. - void SetInertia(float inertia)
  4735. - void SetMassCenter(const Vector2& center)
  4736. - void SetUseFixtureMass(bool useFixtureMass)
  4737. - void SetLinearDamping(float linearDamping)
  4738. - void SetAngularDamping(float angularDamping)
  4739. - void SetAllowSleep(bool allowSleep)
  4740. - void SetFixedRotation(bool fixedRotation)
  4741. - void SetBullet(bool bullet)
  4742. - void SetGravityScale(float gravityScale)
  4743. - void SetAwake(bool awake)
  4744. - void SetLinearVelocity(const Vector2& linearVelocity)
  4745. - void SetAngularVelocity(float angularVelocity)
  4746. - void ApplyForce(const Vector2& force, const Vector2& point, bool wake)
  4747. - void ApplyForceToCenter(const Vector2& force, bool wake)
  4748. - void ApplyTorque(float torque, bool wake)
  4749. - void ApplyLinearImpulse(const Vector2& impulse, const Vector2& point, bool wake)
  4750. - void ApplyLinearImpulseToCenter(const Vector2& impulse, bool wake)
  4751. - void ApplyAngularImpulse(float impulse, bool wake)
  4752. - BodyType2D GetBodyType() const
  4753. - float GetMass() const
  4754. - float GetInertia() const
  4755. - Vector2 GetMassCenter() const
  4756. - bool GetUseFixtureMass() const
  4757. - float GetLinearDamping() const
  4758. - float GetAngularDamping() const
  4759. - bool IsAllowSleep() const
  4760. - bool IsFixedRotation() const
  4761. - bool IsBullet() const
  4762. - float GetGravityScale() const
  4763. - bool IsAwake() const
  4764. - Vector2 GetLinearVelocity() const
  4765. - float GetAngularVelocity() const
  4766. Properties:
  4767. - BodyType2D bodyType
  4768. - float mass
  4769. - float inertia
  4770. - Vector2 massCenter
  4771. - bool useFixtureMass
  4772. - float linearDamping
  4773. - float angularDamping
  4774. - bool allowSleep
  4775. - bool fixedRotation
  4776. - bool bullet
  4777. - float gravityScale
  4778. - bool awake
  4779. - Vector2 linearVelocity
  4780. - float angularVelocity
  4781. <a name="Class_Scene"></a>
  4782. ### Scene : Node
  4783. Methods:
  4784. - Scene() (GC)
  4785. - Scene* new()
  4786. - void delete()
  4787. - bool Load(File* source)
  4788. - bool Save(File* dest) const
  4789. - bool Load(const String fileName)
  4790. - bool Save(const String fileName) const
  4791. - bool LoadXML(File* source)
  4792. - bool SaveXML(File* dest, const String indentation = "\t") const
  4793. - bool LoadXML(const String fileName)
  4794. - bool SaveXML(const String fileName, const String indentation = "\t") const
  4795. - bool LoadJSON(File* source)
  4796. - bool SaveJSON(File* dest, const String indentation = "\t") const
  4797. - bool LoadJSON(const String fileName)
  4798. - bool SaveJSON(const String fileName, const String indentation = "\t") const
  4799. - Node* Instantiate(File* source, const Vector3& position, const Quaternion& rotation, CreateMode mode = REPLICATED)
  4800. - Node* Instantiate(const String fileName, const Vector3& position, const Quaternion& rotation, CreateMode mode = REPLICATED)
  4801. - Node* InstantiateXML(File* source, const Vector3& position, const Quaternion& rotation, CreateMode mode = REPLICATED)
  4802. - Node* InstantiateXML(const String fileName, const Vector3& position, const Quaternion& rotation, CreateMode mode = REPLICATED)
  4803. - bool LoadAsync(File* file, LoadMode mode = LOAD_SCENE_AND_RESOURCES)
  4804. - bool LoadAsyncXML(File* file, LoadMode mode = LOAD_SCENE_AND_RESOURCES)
  4805. - bool LoadAsync(const String fileName, LoadMode mode = LOAD_SCENE_AND_RESOURCES)
  4806. - bool LoadAsyncXML(const String fileName, LoadMode mode = LOAD_SCENE_AND_RESOURCES)
  4807. - void StopAsyncLoading()
  4808. - void Clear(bool clearReplicated = true, bool clearLocal = true)
  4809. - void SetUpdateEnabled(bool enable)
  4810. - void SetTimeScale(float scale)
  4811. - void SetElapsedTime(float time)
  4812. - void SetSmoothingConstant(float constant)
  4813. - void SetSnapThreshold(float threshold)
  4814. - void SetAsyncLoadingMs(int ms)
  4815. - Node* GetNode(unsigned id) const
  4816. - bool IsUpdateEnabled() const
  4817. - bool IsAsyncLoading() const
  4818. - float GetAsyncProgress() const
  4819. - LoadMode GetAsyncLoadMode() const
  4820. - const String GetFileName() const
  4821. - unsigned GetChecksum() const
  4822. - float GetTimeScale() const
  4823. - float GetElapsedTime() const
  4824. - float GetSmoothingConstant() const
  4825. - float GetSnapThreshold() const
  4826. - int GetAsyncLoadingMs() const
  4827. - const String GetVarName(StringHash hash) const
  4828. - void Update(float timeStep)
  4829. - void BeginThreadedUpdate()
  4830. - void EndThreadedUpdate()
  4831. - void DelayedMarkedDirty(Component* component)
  4832. - bool IsThreadedUpdate() const
  4833. - unsigned GetFreeNodeID(CreateMode mode)
  4834. - unsigned GetFreeComponentID(CreateMode mode)
  4835. - void NodeAdded(Node* node)
  4836. - void NodeRemoved(Node* node)
  4837. - void ComponentAdded(Component* component)
  4838. - void ComponentRemoved(Component* component)
  4839. - void SetVarNamesAttr(const String value)
  4840. - String GetVarNamesAttr() const
  4841. - void PrepareNetworkUpdate()
  4842. - void CleanupConnection(Connection* connection)
  4843. - void MarkNetworkUpdate(Node* node)
  4844. - void MarkNetworkUpdate(Component* component)
  4845. - void MarkReplicationDirty(Node* node)
  4846. - const PODVector<Node*>& GetNodesWithTag(const String tag) const
  4847. Properties:
  4848. - bool updateEnabled
  4849. - bool asyncLoading (readonly)
  4850. - float asyncProgress (readonly)
  4851. - LoadMode asyncLoadMode (readonly)
  4852. - const String fileName
  4853. - unsigned checksum (readonly)
  4854. - float timeScale
  4855. - float elapsedTime
  4856. - float smoothingConstant
  4857. - float snapThreshold
  4858. - int asyncLoadingMs
  4859. - bool threadedUpdate (readonly)
  4860. - String varNamesAttr
  4861. <a name="Class_ScrollBar"></a>
  4862. ### ScrollBar : BorderImage
  4863. Methods:
  4864. - ScrollBar() (GC)
  4865. - ScrollBar* new()
  4866. - void delete()
  4867. - void SetOrientation(Orientation orientation)
  4868. - void SetRange(float range)
  4869. - void SetValue(float value)
  4870. - void ChangeValue(float delta)
  4871. - void SetScrollStep(float step)
  4872. - void SetStepFactor(float factor)
  4873. - void StepBack()
  4874. - void StepForward()
  4875. - Orientation GetOrientation() const
  4876. - float GetRange() const
  4877. - float GetValue() const
  4878. - float GetScrollStep() const
  4879. - float GetStepFactor() const
  4880. - float GetEffectiveScrollStep() const
  4881. - Button* GetBackButton() const
  4882. - Button* GetForwardButton() const
  4883. - Slider* GetSlider() const
  4884. Properties:
  4885. - Orientation orientation
  4886. - float range
  4887. - float value
  4888. - float scrollStep
  4889. - float stepFactor
  4890. - float effectiveScrollStep (readonly)
  4891. - Button* backButton (readonly)
  4892. - Button* forwardButton (readonly)
  4893. - Slider* slider (readonly)
  4894. <a name="Class_ScrollView"></a>
  4895. ### ScrollView : UIElement
  4896. Methods:
  4897. - ScrollView() (GC)
  4898. - ScrollView* new()
  4899. - void delete()
  4900. - void SetContentElement(UIElement* element)
  4901. - void SetViewPosition(const IntVector2& position)
  4902. - void SetViewPosition(int x, int y)
  4903. - void SetScrollBarsVisible(bool horizontal, bool vertical)
  4904. - void SetScrollBarsAutoVisible(bool enable)
  4905. - void SetScrollStep(float step)
  4906. - void SetPageStep(float step)
  4907. - void SetScrollDeceleration(float deceleration)
  4908. - void SetScrollSnapEpsilon(float snap)
  4909. - void SetAutoDisableChildren(bool disable)
  4910. - void SetAutoDisableThreshold(float amount)
  4911. - const IntVector2& GetViewPosition() const
  4912. - UIElement* GetContentElement() const
  4913. - ScrollBar* GetHorizontalScrollBar() const
  4914. - ScrollBar* GetVerticalScrollBar() const
  4915. - BorderImage* GetScrollPanel() const
  4916. - bool GetScrollBarsAutoVisible() const
  4917. - float GetScrollStep() const
  4918. - float GetPageStep() const
  4919. - float GetScrollDeceleration() const
  4920. - float GetScrollSnapEpsilon() const
  4921. - bool GetAutoDisableChildren() const
  4922. - float GetAutoDisableThreshold() const
  4923. Properties:
  4924. - IntVector2& viewPosition
  4925. - UIElement* contentElement
  4926. - ScrollBar* horizontalScrollBar (readonly)
  4927. - ScrollBar* verticalScrollBar (readonly)
  4928. - BorderImage* scrollPanel (readonly)
  4929. - bool scrollBarsAutoVisible
  4930. - float scrollStep
  4931. - float pageStep
  4932. - float scrollDeceleration
  4933. - float scrollSnapEpsilon
  4934. <a name="Class_Serializable"></a>
  4935. ### Serializable : Object
  4936. Methods:
  4937. - void SetTemporary(bool enable)
  4938. - bool IsTemporary() const
  4939. - void SetInterceptNetworkUpdate(const String attributeName, bool enable)
  4940. - bool GetInterceptNetworkUpdate(const String attributeName)
  4941. Properties:
  4942. - bool temporary
  4943. <a name="Class_Serializer"></a>
  4944. ### Serializer
  4945. Methods:
  4946. - unsigned Write(const VectorBuffer& buffer)
  4947. - bool WriteInt(int value)
  4948. - bool WriteInt64(long value)
  4949. - bool WriteShort(short value)
  4950. - bool WriteByte(char value)
  4951. - bool WriteUInt(unsigned value)
  4952. - bool WriteUInt64(long value)
  4953. - bool WriteUShort(short value)
  4954. - bool WriteUByte(char value)
  4955. - bool WriteBool(bool value)
  4956. - bool WriteFloat(float value)
  4957. - bool WriteDouble(double value)
  4958. - bool WriteIntRect(const IntRect& value)
  4959. - bool WriteIntVector2(const IntVector2& value)
  4960. - bool WriteIntVector3(const IntVector3& value)
  4961. - bool WriteRect(const Rect& value)
  4962. - bool WriteVector2(const Vector2& value)
  4963. - bool WriteVector3(const Vector3& value)
  4964. - bool WritePackedVector3(const Vector3& value, float maxAbsCoord)
  4965. - bool WriteVector4(const Vector4& value)
  4966. - bool WriteQuaternion(const Quaternion& value)
  4967. - bool WritePackedQuaternion(const Quaternion& value)
  4968. - bool WriteMatrix3(const Matrix3& value)
  4969. - bool WriteMatrix3x4(const Matrix3x4& value)
  4970. - bool WriteMatrix4(const Matrix4& value)
  4971. - bool WriteColor(const Color& value)
  4972. - bool WriteBoundingBox(const BoundingBox& value)
  4973. - bool WriteString(const String value)
  4974. - bool WriteFileID(const String value)
  4975. - bool WriteStringHash(const StringHash& value)
  4976. - bool WriteBuffer(const VectorBuffer& buffer)
  4977. - bool WriteResourceRef(const ResourceRef& value)
  4978. - bool WriteResourceRefList(const ResourceRefList& value)
  4979. - bool WriteVariant(const Variant& value)
  4980. - bool WriteVariantData(const Variant& value)
  4981. - bool WriteVariantVector(const VariantVector& value)
  4982. - bool WriteVariantMap(const VariantMap& value)
  4983. - bool WriteVLE(unsigned value)
  4984. - bool WriteNetID(unsigned value)
  4985. - bool WriteLine(const String value)
  4986. <a name="Class_Skeleton"></a>
  4987. ### Skeleton
  4988. Methods:
  4989. - unsigned GetNumBones() const
  4990. - Bone* GetRootBone()
  4991. - Bone* GetBone(const String name)
  4992. - Bone* GetBone(unsigned index)
  4993. Properties:
  4994. - unsigned numBones (readonly)
  4995. - Bone* rootBone (readonly)
  4996. <a name="Class_Skybox"></a>
  4997. ### Skybox : StaticModel
  4998. <a name="Class_Slider"></a>
  4999. ### Slider : BorderImage
  5000. Methods:
  5001. - Slider() (GC)
  5002. - Slider* new()
  5003. - void delete()
  5004. - void SetOrientation(Orientation orientation)
  5005. - void SetRange(float range)
  5006. - void SetValue(float value)
  5007. - void ChangeValue(float delta)
  5008. - void SetRepeatRate(float rate)
  5009. - Orientation GetOrientation() const
  5010. - float GetRange() const
  5011. - float GetValue() const
  5012. - BorderImage* GetKnob() const
  5013. - float GetRepeatRate() const
  5014. Properties:
  5015. - Orientation orientation
  5016. - float range
  5017. - float value
  5018. - BorderImage* knob (readonly)
  5019. - float repeatRate
  5020. <a name="Class_Sound"></a>
  5021. ### Sound : Resource
  5022. Methods:
  5023. - Sound() (GC)
  5024. - Sound* new()
  5025. - void delete()
  5026. - bool LoadRaw(Deserializer& source)
  5027. - bool LoadWav(Deserializer& source)
  5028. - bool LoadOggVorbis(Deserializer& source)
  5029. - bool LoadRaw(const String fileName)
  5030. - bool LoadWav(const String fileName)
  5031. - bool LoadOggVorbis(const String fileName)
  5032. - void SetSize(unsigned dataSize)
  5033. - void SetData(const void* data, unsigned dataSize)
  5034. - void SetFormat(unsigned frequency, bool sixteenBit, bool stereo)
  5035. - void SetLooped(bool enable)
  5036. - void SetLoop(unsigned repeatOffset, unsigned endOffset)
  5037. - void FixInterpolation()
  5038. - float GetLength() const
  5039. - unsigned GetDataSize() const
  5040. - unsigned GetSampleSize() const
  5041. - float GetFrequency() const
  5042. - unsigned GetIntFrequency() const
  5043. - bool IsLooped() const
  5044. - bool IsSixteenBit() const
  5045. - bool IsStereo() const
  5046. - bool IsCompressed() const
  5047. Properties:
  5048. - float length (readonly)
  5049. - unsigned dataSize (readonly)
  5050. - unsigned sampleSize (readonly)
  5051. - float frequency (readonly)
  5052. - int intFrequency (readonly)
  5053. - bool looped
  5054. - bool sixteenBit (readonly)
  5055. - bool stereo (readonly)
  5056. - bool compressed (readonly)
  5057. <a name="Class_SoundListener"></a>
  5058. ### SoundListener : Component
  5059. <a name="Class_SoundSource"></a>
  5060. ### SoundSource : Component
  5061. Methods:
  5062. - void Play(Sound* sound)
  5063. - void Play(Sound* sound, float frequency)
  5064. - void Play(Sound* sound, float frequency, float gain)
  5065. - void Play(Sound* sound, float frequency, float gain, float panning)
  5066. - void Stop()
  5067. - void SetSoundType(const String type)
  5068. - void SetFrequency(float frequency)
  5069. - void SetGain(float gain)
  5070. - void SetAttenuation(float attenuation)
  5071. - void SetPanning(float panning)
  5072. - void SetAutoRemoveMode(AutoRemoveMode mode)
  5073. - Sound* GetSound() const
  5074. - String GetSoundType() const
  5075. - float GetTimePosition() const
  5076. - float GetFrequency() const
  5077. - float GetGain() const
  5078. - float GetAttenuation() const
  5079. - float GetPanning() const
  5080. - AutoRemoveMode GetAutoRemoveMode() const
  5081. - bool IsPlaying() const
  5082. Properties:
  5083. - Sound* sound (readonly)
  5084. - String soundType
  5085. - float timePosition (readonly)
  5086. - float frequency
  5087. - float gain
  5088. - float attenuation
  5089. - float panning
  5090. - AutoRemoveMode autoRemoveMode
  5091. - bool playing (readonly)
  5092. <a name="Class_SoundSource3D"></a>
  5093. ### SoundSource3D : SoundSource
  5094. Methods:
  5095. - void SetDistanceAttenuation(float nearDistance, float farDistance, float rolloffFactor)
  5096. - void SetAngleAttenuation(float innerAngle, float outerAngle)
  5097. - void SetNearDistance(float distance)
  5098. - void SetFarDistance(float distance)
  5099. - void SetInnerAngle(float angle)
  5100. - void SetOuterAngle(float angle)
  5101. - void SetRolloffFactor(float factor)
  5102. - void CalculateAttenuation()
  5103. - float GetNearDistance() const
  5104. - float GetFarDistance() const
  5105. - float GetInnerAngle() const
  5106. - float GetOuterAngle() const
  5107. - float RollAngleoffFactor() const
  5108. Properties:
  5109. - float nearDistance
  5110. - float farDistance
  5111. - float innerAngle
  5112. - float outerAngle
  5113. - float rolloffFactor
  5114. <a name="Class_Sphere"></a>
  5115. ### Sphere
  5116. Methods:
  5117. - Sphere() (GC)
  5118. - Sphere* new()
  5119. - Sphere(const Sphere& sphere) (GC)
  5120. - Sphere* new(const Sphere& sphere)
  5121. - Sphere(const Vector3& center, float radius) (GC)
  5122. - Sphere* new(const Vector3& center, float radius)
  5123. - Sphere(const BoundingBox& box) (GC)
  5124. - Sphere* new(const BoundingBox& box)
  5125. - Sphere(const Frustum& frustum) (GC)
  5126. - Sphere* new(const Frustum& frustum)
  5127. - Sphere(const Polyhedron& poly) (GC)
  5128. - Sphere* new(const Polyhedron& poly)
  5129. - void delete()
  5130. - bool operator==(const Sphere& rhs) const
  5131. - void Define(const Sphere& sphere)
  5132. - void Define(const Vector3& center, float radius)
  5133. - void Define(const BoundingBox& box)
  5134. - void Define(const Frustum& frustum)
  5135. - void Define(const Polyhedron& poly)
  5136. - void Merge(const Vector3& point)
  5137. - void Merge(const BoundingBox& box)
  5138. - void Merge(const Frustum& frustum)
  5139. - void Merge(const Polyhedron& poly)
  5140. - void Merge(const Sphere& sphere)
  5141. - void Clear()
  5142. - bool Defined() const
  5143. - Intersection IsInside(const Vector3& point) const
  5144. - Intersection IsInside(const Sphere& sphere) const
  5145. - Intersection IsInsideFast(const Sphere& sphere) const
  5146. - Intersection IsInside(const BoundingBox& box) const
  5147. - Intersection IsInsideFast(const BoundingBox& box) const
  5148. - float Distance(const Vector3& point) const
  5149. Properties:
  5150. - Vector3 center
  5151. - float radius
  5152. <a name="Class_Spline"></a>
  5153. ### Spline
  5154. Methods:
  5155. - Spline() (GC)
  5156. - Spline* new()
  5157. - Spline(InterpolationMode mode) (GC)
  5158. - Spline* new(InterpolationMode mode)
  5159. - Spline(const Spline& rhs) (GC)
  5160. - Spline* new(const Spline& rhs)
  5161. - void delete()
  5162. - bool operator==(const Spline& rhs) const
  5163. - Variant GetPoint(float f) const
  5164. - Variant GetKnot(unsigned index) const
  5165. - void SetKnot(const Variant& knot, unsigned tolua_var_1)
  5166. - void AddKnot(const Variant& knot)
  5167. - void AddKnot(const Variant& knot, unsigned index)
  5168. - void RemoveKnot()
  5169. - void RemoveKnot(unsigned index)
  5170. - void Clear()
  5171. Properties:
  5172. - InterpolationMode interpolationMode
  5173. <a name="Class_SplinePath"></a>
  5174. ### SplinePath : Component
  5175. Methods:
  5176. - void AddControlPoint(Node* point, unsigned index = M_MAX_UNSIGNED)
  5177. - void RemoveControlPoint(Node* point)
  5178. - void ClearControlPoints()
  5179. - void SetInterpolationMode(InterpolationMode mode)
  5180. - void SetPosition(float factor)
  5181. - void SetControlledNode(Node* controlled)
  5182. - InterpolationMode GetInterpolationMode() const
  5183. - float GetSpeed() const
  5184. - float GetLength() const
  5185. - Vector3 GetPosition() const
  5186. - Node* GetControlledNode() const
  5187. - Vector3 GetPoint(float factor) const
  5188. - void Move(float timeStep)
  5189. - void Reset()
  5190. - bool IsFinished() const
  5191. Properties:
  5192. - InterpolationMode interpolationMode
  5193. - float speed
  5194. - float length (readonly)
  5195. - Node* controlledNode
  5196. <a name="Class_Sprite"></a>
  5197. ### Sprite : UIElement
  5198. Methods:
  5199. - Sprite() (GC)
  5200. - Sprite* new()
  5201. - void delete()
  5202. - void SetPosition(const Vector2& position)
  5203. - void SetPosition(float x, float y)
  5204. - void SetHotSpot(const IntVector2& hotSpot)
  5205. - void SetHotSpot(int x, int y)
  5206. - void SetScale(const Vector2& scale)
  5207. - void SetScale(float x, float y)
  5208. - void SetScale(float scale)
  5209. - void SetRotation(float angle)
  5210. - void SetTexture(Texture* texture)
  5211. - void SetImageRect(const IntRect& rect)
  5212. - void SetFullImageRect()
  5213. - void SetBlendMode(BlendMode mode)
  5214. - const Vector2& GetPosition() const
  5215. - const IntVector2& GetHotSpot() const
  5216. - const Vector2& GetScale() const
  5217. - float GetRotation() const
  5218. - Texture* GetTexture() const
  5219. - const IntRect& GetImageRect() const
  5220. - BlendMode GetBlendMode() const
  5221. - const Matrix3x4& GetTransform() const
  5222. Properties:
  5223. - Vector2& position
  5224. - IntVector2& hotSpot
  5225. - Vector2& scale
  5226. - float rotation
  5227. - Texture* texture
  5228. - IntRect& imageRect
  5229. - BlendMode blendMode
  5230. - Matrix3x4& transform (readonly)
  5231. <a name="Class_Sprite2D"></a>
  5232. ### Sprite2D : Resource
  5233. Methods:
  5234. - void SetTexture(Texture2D* texture)
  5235. - void SetRectangle(const IntRect& rectangle)
  5236. - void SetHotSpot(const Vector2& hotSpot)
  5237. - void SetOffset(const IntVector2& offset)
  5238. - void SetTextureEdgeOffset(float offset)
  5239. - void SetSpriteSheet(SpriteSheet2D* spriteSheet)
  5240. - Texture2D* GetTexture() const
  5241. - const IntRect& GetRectangle() const
  5242. - const Vector2& GetHotSpot() const
  5243. - const IntVector2& GetOffset() const
  5244. - float GetTextureEdgeOffset() const
  5245. - SpriteSheet2D* GetSpriteSheet() const
  5246. Properties:
  5247. - Texture2D* texture
  5248. - IntRect rectangle
  5249. - Vector2 hotSpot
  5250. - IntVector2 offset
  5251. - float textureEdgeOffset
  5252. - SpriteSheet2D* spriteSheet
  5253. <a name="Class_SpriteSheet2D"></a>
  5254. ### SpriteSheet2D : Resource
  5255. Methods:
  5256. - void SetTexture(Texture2D* texture)
  5257. - Texture2D* GetTexture() const
  5258. - Sprite2D* GetSprite(const String name) const
  5259. - void DefineSprite(const String name, const IntRect& rectangle)
  5260. - void DefineSprite(const String name, const IntRect& rectangle, const Vector2& hotSpot)
  5261. - void DefineSprite(const String name, const IntRect& rectangle, const Vector2& hotSpot, const IntVector2& originSize)
  5262. Properties:
  5263. - Texture2D* texture
  5264. <a name="Class_StaticModel"></a>
  5265. ### StaticModel : Drawable
  5266. Methods:
  5267. - void SetModel(Model* model)
  5268. - void SetMaterial(Material* material)
  5269. - bool SetMaterial(unsigned index, Material* material)
  5270. - void SetOcclusionLodLevel(unsigned level)
  5271. - void ApplyMaterialList(const String fileName = String::EMPTY)
  5272. - Model* GetModel() const
  5273. - unsigned GetNumGeometries() const
  5274. - Material* GetMaterial(unsigned index = 0) const
  5275. - unsigned GetOcclusionLodLevel() const
  5276. - bool IsInside(const Vector3& point) const
  5277. - bool IsInsideLocal(const Vector3& point) const
  5278. Properties:
  5279. - Model* model
  5280. - Material* material
  5281. - BoundingBox& boundingBox (readonly)
  5282. - unsigned numGeometries (readonly)
  5283. - unsigned occlusionLodLevel
  5284. <a name="Class_StaticModelGroup"></a>
  5285. ### StaticModelGroup : StaticModel
  5286. Methods:
  5287. - void AddInstanceNode(Node* node)
  5288. - void RemoveInstanceNode(Node* node)
  5289. - void RemoveAllInstanceNodes()
  5290. - unsigned GetNumInstanceNodes() const
  5291. - Node* GetInstanceNode(unsigned index) const
  5292. Properties:
  5293. - unsigned numInstanceNodes (readonly)
  5294. <a name="Class_StaticSprite2D"></a>
  5295. ### StaticSprite2D : Drawable2D
  5296. Methods:
  5297. - void SetSprite(Sprite2D* sprite)
  5298. - void SetBlendMode(BlendMode mode)
  5299. - void SetFlip(bool flipX, bool flipY)
  5300. - void SetFlipX(bool flipX)
  5301. - void SetFlipY(bool flipY)
  5302. - void SetColor(const Color& color)
  5303. - void SetAlpha(float alpha)
  5304. - void SetUseHotSpot(bool useHotSpot)
  5305. - void SetHotSpot(const Vector2& hotspot)
  5306. - void SetUseDrawRect(bool useDrawRect)
  5307. - void SetDrawRect(const Rect& rect)
  5308. - void SetUseTextureRect(bool useTextureRect)
  5309. - void SetTextureRect(const Rect& rect)
  5310. - void SetCustomMaterial(Material* customMaterial)
  5311. - Sprite2D* GetSprite() const
  5312. - BlendMode GetBlendMode() const
  5313. - bool GetFlipX() const
  5314. - bool GetFlipY() const
  5315. - const Color& GetColor() const
  5316. - float GetAlpha() const
  5317. - bool GetUseHotSpot() const
  5318. - const Vector2& GetHotSpot() const
  5319. - bool GetUseDrawRect() const
  5320. - const Rect& GetDrawRect() const
  5321. - bool GetUseTextureRect() const
  5322. - const Rect& GetTextureRect() const
  5323. - Material* GetCustomMaterial() const
  5324. Properties:
  5325. - Sprite2D* sprite
  5326. - BlendMode blendMode
  5327. - bool flipX
  5328. - bool flipY
  5329. - Color& color
  5330. - float alpha
  5331. - bool useHotSpot
  5332. - Vector2 hotSpot
  5333. - Material* customMaterial
  5334. - Rect drawRect
  5335. - bool useDrawRect
  5336. - Rect textureRect
  5337. - bool useTextureRect
  5338. <a name="Class_StringHash"></a>
  5339. ### StringHash
  5340. Methods:
  5341. - StringHash() (GC)
  5342. - StringHash* new()
  5343. - StringHash(const StringHash& rhs) (GC)
  5344. - StringHash* new(const StringHash& rhs)
  5345. - StringHash(const char* str) (GC)
  5346. - StringHash* new(const char* str)
  5347. - StringHash(unsigned value) (GC)
  5348. - StringHash* new(unsigned value)
  5349. - void delete()
  5350. - StringHash operator+(const StringHash& rhs) const
  5351. - bool operator==(const StringHash& rhs) const
  5352. - bool operator<(const StringHash& rhs) const
  5353. - bool operatorbool() const
  5354. - unsigned Value() const
  5355. - String ToString() const
  5356. - unsigned ToHash() const
  5357. - unsigned Calculate(const char* str)
  5358. Properties:
  5359. - const StringHash ZERO
  5360. - unsigned value (readonly)
  5361. <a name="Class_Technique"></a>
  5362. ### Technique : Resource
  5363. Methods:
  5364. - void SetIsDesktop(bool enable)
  5365. - Pass* CreatePass(const String passName)
  5366. - void RemovePass(const String passName)
  5367. - void ReleaseShaders()
  5368. - Technique* Clone(const String cloneName = String::EMPTY) const
  5369. - bool HasPass(const String type) const
  5370. - Pass* GetPass(const String type) const
  5371. - Pass* GetSupportedPass(const String type) const
  5372. - bool IsSupported() const
  5373. - bool IsDesktop() const
  5374. - unsigned GetNumPasses() const
  5375. - const Vector<String>& GetPassTypes() const
  5376. - const PODVector<Pass*>& GetPasses() const
  5377. Properties:
  5378. - bool supported (readonly)
  5379. - bool desktop (readonly)
  5380. - unsigned numPasses (readonly)
  5381. <a name="Class_Terrain"></a>
  5382. ### Terrain : Component
  5383. Methods:
  5384. - void SetPatchSize(int size)
  5385. - void SetSpacing(const Vector3& spacing)
  5386. - void SetMaxLodLevels(unsigned levels)
  5387. - void SetOcclusionLodLevel(unsigned level)
  5388. - void SetSmoothing(bool enable)
  5389. - bool SetHeightMap(Image* image)
  5390. - void SetMaterial(Material* material)
  5391. - void SetNorthNeighbor(Terrain* north)
  5392. - void SetSouthNeighbor(Terrain* south)
  5393. - void SetWestNeighbor(Terrain* west)
  5394. - void SetEastNeighbor(Terrain* east)
  5395. - void SetNeighbors(Terrain* north, Terrain* south, Terrain* west, Terrain* east)
  5396. - void SetDrawDistance(float distance)
  5397. - void SetShadowDistance(float distance)
  5398. - void SetLodBias(float bias)
  5399. - void SetViewMask(unsigned mask)
  5400. - void SetLightMask(unsigned mask)
  5401. - void SetShadowMask(unsigned mask)
  5402. - void SetZoneMask(unsigned mask)
  5403. - void SetMaxLights(unsigned num)
  5404. - void SetCastShadows(bool enable)
  5405. - void SetOccluder(bool enable)
  5406. - void SetOccludee(bool enable)
  5407. - void ApplyHeightMap()
  5408. - int GetPatchSize() const
  5409. - const Vector3& GetSpacing() const
  5410. - const IntVector2& GetNumVertices() const
  5411. - const IntVector2& GetNumPatches() const
  5412. - unsigned GetMaxLodLevels() const
  5413. - unsigned GetOcclusionLodLevel() const
  5414. - bool GetSmoothing() const
  5415. - Image* GetHeightMap() const
  5416. - Material* GetMaterial() const
  5417. - Terrain* GetNorthNeighbor() const
  5418. - Terrain* GetSouthNeighbor() const
  5419. - Terrain* GetWestNeighbor() const
  5420. - Terrain* GetEastNeighbor() const
  5421. - TerrainPatch* GetPatch(unsigned index) const
  5422. - TerrainPatch* GetPatch(int x, int z) const
  5423. - TerrainPatch* GetNeighborPatch(int x, int z) const
  5424. - float GetHeight(const Vector3& worldPosition) const
  5425. - Vector3 GetNormal(const Vector3& worldPosition) const
  5426. - IntVector2 WorldToHeightMap(const Vector3& worldPosition) const
  5427. - SharedArrayPtr<float> GetHeightData() const
  5428. - float GetDrawDistance() const
  5429. - float GetShadowDistance() const
  5430. - float GetLodBias() const
  5431. - unsigned GetViewMask() const
  5432. - unsigned GetLightMask() const
  5433. - unsigned GetShadowMask() const
  5434. - unsigned GetZoneMask() const
  5435. - unsigned GetMaxLights() const
  5436. - bool IsVisible() const
  5437. - bool GetCastShadows() const
  5438. - bool IsOccluder() const
  5439. - bool IsOccludee() const
  5440. Properties:
  5441. - int patchSize
  5442. - Vector3& spacing
  5443. - IntVector2& numVertices (readonly)
  5444. - IntVector2& numPatches (readonly)
  5445. - unsigned maxLodLevels
  5446. - unsigned occlusionLodLevel
  5447. - bool smoothing
  5448. - Image* heightMap
  5449. - Material* material
  5450. - Terrain* northNeighbor
  5451. - Terrain* southNeighbor
  5452. - Terrain* westNeighbor
  5453. - Terrain* eastNeighbor
  5454. - float drawDistance
  5455. - float shadowDistance
  5456. - float lodBias
  5457. - unsigned viewMask
  5458. - unsigned lightMask
  5459. - unsigned shadowMask
  5460. - unsigned zoneMask
  5461. - unsigned maxLights
  5462. - bool visible (readonly)
  5463. - bool castShadows
  5464. - bool occluder
  5465. - bool occludee
  5466. <a name="Class_TerrainPatch"></a>
  5467. ### TerrainPatch : Drawable
  5468. Methods:
  5469. - void SetOwner(Terrain* terrain)
  5470. - void SetNeighbors(TerrainPatch* north, TerrainPatch* south, TerrainPatch* west, TerrainPatch* east)
  5471. - void SetMaterial(Material* material)
  5472. - void SetBoundingBox(const BoundingBox& box)
  5473. - void SetCoordinates(const IntVector2& coordinates)
  5474. - void ResetLod()
  5475. - Geometry* GetGeometry() const
  5476. - Geometry* GetMaxLodGeometry() const
  5477. - Geometry* GetOcclusionGeometry() const
  5478. - VertexBuffer* GetVertexBuffer() const
  5479. - Terrain* GetOwner() const
  5480. - TerrainPatch* GetNorthPatch() const
  5481. - TerrainPatch* GetSouthPatch() const
  5482. - TerrainPatch* GetWestPatch() const
  5483. - TerrainPatch* GetEastPatch() const
  5484. - const IntVector2& GetCoordinates() const
  5485. - unsigned GetLodLevel() const
  5486. Properties:
  5487. - Geometry* geometry (readonly)
  5488. - Geometry* maxLodGeometry (readonly)
  5489. - Geometry* occlusionGeometry (readonly)
  5490. - VertexBuffer* vertexBuffer (readonly)
  5491. - Terrain* owner
  5492. - TerrainPatch* northPatch (readonly)
  5493. - TerrainPatch* southPatch (readonly)
  5494. - TerrainPatch* westPatch (readonly)
  5495. - TerrainPatch* eastPatch (readonly)
  5496. - BoundingBox& boundingBox
  5497. - IntVector2& coordinates
  5498. - unsigned lodLevel (readonly)
  5499. <a name="Class_Text"></a>
  5500. ### Text : UIElement
  5501. Methods:
  5502. - Text() (GC)
  5503. - Text* new()
  5504. - void delete()
  5505. - bool SetFont(const String fontName, int size = DEFAULT_FONT_SIZE)
  5506. - bool SetFont(Font* font, int size = DEFAULT_FONT_SIZE)
  5507. - bool SetFontSize(int size)
  5508. - void SetText(const String text)
  5509. - void SetTextAlignment(HorizontalAlignment align)
  5510. - void SetRowSpacing(float spacing)
  5511. - void SetWordwrap(bool enable)
  5512. - void SetSelection(unsigned start, unsigned length = M_MAX_UNSIGNED)
  5513. - void ClearSelection()
  5514. - void SetSelectionColor(const Color& color)
  5515. - void SetHoverColor(const Color& color)
  5516. - void SetTextEffect(TextEffect textEffect)
  5517. - void SetEffectShadowOffset(const IntVector2& offset)
  5518. - void SetEffectStrokeThickness(int thickness)
  5519. - void SetEffectRoundStroke(bool roundStroke)
  5520. - void SetEffectColor(const Color& effectColor)
  5521. - bool GetAutoLocalizable() const
  5522. - void SetAutoLocalizable(bool enable)
  5523. - Font* GetFont() const
  5524. - int GetFontSize() const
  5525. - const String GetText() const
  5526. - HorizontalAlignment GetTextAlignment() const
  5527. - float GetRowSpacing() const
  5528. - bool GetWordwrap() const
  5529. - unsigned GetSelectionStart() const
  5530. - unsigned GetSelectionLength() const
  5531. - const Color& GetSelectionColor() const
  5532. - const Color& GetHoverColor() const
  5533. - TextEffect GetTextEffect() const
  5534. - const IntVector2& GetEffectShadowOffset() const
  5535. - int GetEffectStrokeThickness() const
  5536. - bool GetEffectRoundStroke() const
  5537. - const Color& GetEffectColor() const
  5538. - int GetRowHeight() const
  5539. - unsigned GetNumRows() const
  5540. - unsigned GetNumChars() const
  5541. - int GetRowWidth(unsigned index) const
  5542. - IntVector2 GetCharPosition(unsigned index)
  5543. - IntVector2 GetCharSize(unsigned index)
  5544. - void SetEffectDepthBias(float bias)
  5545. - float GetEffectDepthBias() const
  5546. Properties:
  5547. - Font* font
  5548. - int fontSize
  5549. - String text
  5550. - HorizontalAlignment textAlignment
  5551. - float rowSpacing
  5552. - bool wordwrap
  5553. - bool autoLocalizable
  5554. - unsigned selectionStart (readonly)
  5555. - unsigned selectionLength (readonly)
  5556. - Color& selectionColor
  5557. - Color& hoverColor
  5558. - TextEffect textEffect
  5559. - IntVector2& effectShadowOffset
  5560. - int effectStrokeThickness
  5561. - bool effectRoundStroke
  5562. - Color& effectColor
  5563. - int rowHeight (readonly)
  5564. - unsigned numRows (readonly)
  5565. - unsigned numChars (readonly)
  5566. <a name="Class_Text3D"></a>
  5567. ### Text3D : Drawable
  5568. Methods:
  5569. - Text3D() (GC)
  5570. - Text3D* new()
  5571. - void delete()
  5572. - bool SetFont(const String fontName, int size = DEFAULT_FONT_SIZE)
  5573. - bool SetFont(Font* font, int size = DEFAULT_FONT_SIZE)
  5574. - bool SetFontSize(int size)
  5575. - void SetMaterial(Material* material)
  5576. - void SetText(const String text)
  5577. - void SetAlignment(HorizontalAlignment hAlign, VerticalAlignment vAlign)
  5578. - void SetHorizontalAlignment(HorizontalAlignment align)
  5579. - void SetVerticalAlignment(VerticalAlignment align)
  5580. - void SetTextAlignment(HorizontalAlignment align)
  5581. - void SetRowSpacing(float spacing)
  5582. - void SetWordwrap(bool enable)
  5583. - void SetTextEffect(TextEffect textEffect)
  5584. - void SetEffectShadowOffset(const IntVector2& offset)
  5585. - void SetEffectStrokeThickness(int thickness)
  5586. - void SetEffectRoundStroke(bool roundStroke)
  5587. - void SetEffectColor(const Color& effectColor)
  5588. - void SetEffectDepthBias(float bias)
  5589. - void SetWidth(int width)
  5590. - void SetColor(const Color& color)
  5591. - void SetColor(Corner corner, const Color& color)
  5592. - void SetOpacity(float opacity)
  5593. - void SetFixedScreenSize(bool enable)
  5594. - void SetFaceCameraMode(FaceCameraMode mode)
  5595. - Font* GetFont() const
  5596. - Material* GetMaterial() const
  5597. - int GetFontSize() const
  5598. - const String GetText() const
  5599. - HorizontalAlignment GetTextAlignment() const
  5600. - HorizontalAlignment GetHorizontalAlignment() const
  5601. - VerticalAlignment GetVerticalAlignment() const
  5602. - float GetRowSpacing() const
  5603. - bool GetWordwrap() const
  5604. - TextEffect GetTextEffect() const
  5605. - const IntVector2& GetEffectShadowOffset() const
  5606. - int GetEffectStrokeThickness() const
  5607. - bool GetEffectRoundStroke() const
  5608. - const Color& GetEffectColor() const
  5609. - float GetEffectDepthBias() const
  5610. - int GetWidth() const
  5611. - int GetHeight() const
  5612. - int GetRowHeight() const
  5613. - unsigned GetNumRows() const
  5614. - unsigned GetNumChars() const
  5615. - int GetRowWidth(unsigned index) const
  5616. - IntVector2 GetCharPosition(unsigned index)
  5617. - IntVector2 GetCharSize(unsigned index)
  5618. - const Color& GetColor(Corner corner) const
  5619. - float GetOpacity() const
  5620. - bool IsFixedScreenSize() const
  5621. - FaceCameraMode GetFaceCameraMode() const
  5622. Properties:
  5623. - Font* font
  5624. - Material* material
  5625. - int fontSize
  5626. - String text
  5627. - HorizontalAlignment textAlignment
  5628. - HorizontalAlignment horizontalAlignment
  5629. - VerticalAlignment verticalAlignment
  5630. - float rowSpacing
  5631. - bool wordwrap
  5632. - TextEffect textEffect
  5633. - IntVector2& effectShadowOffset
  5634. - int effectStrokeThickness
  5635. - bool effectRoundStroke
  5636. - Color& effectColor
  5637. - float effectDepthBias
  5638. - int width
  5639. - Color& color
  5640. - int height (readonly)
  5641. - int rowHeight (readonly)
  5642. - unsigned numRows (readonly)
  5643. - unsigned numChars (readonly)
  5644. - float opacity
  5645. - bool fixedScreenSize
  5646. - FaceCameraMode faceCameraMode
  5647. <a name="Class_Texture"></a>
  5648. ### Texture : Resource
  5649. Methods:
  5650. - void SetNumLevels(unsigned levels)
  5651. - void SetFilterMode(TextureFilterMode filter)
  5652. - void SetAddressMode(TextureCoordinate coord, TextureAddressMode address)
  5653. - void SetAnisotropy(unsigned level)
  5654. - void SetBorderColor(const Color& color)
  5655. - void SetSRGB(bool enable)
  5656. - void SetBackupTexture(Texture* texture)
  5657. - void SetMipsToSkip(int quality, int toSkip)
  5658. - unsigned GetFormat() const
  5659. - bool IsCompressed() const
  5660. - unsigned GetLevels() const
  5661. - int GetWidth() const
  5662. - int GetHeight() const
  5663. - TextureFilterMode GetFilterMode() const
  5664. - TextureAddressMode GetAddressMode(TextureCoordinate coord) const
  5665. - unsigned GetAnisotropy() const
  5666. - const Color& GetBorderColor() const
  5667. - bool GetSRGB() const
  5668. - int GetMultiSample() const
  5669. - bool GetAutoResolve() const
  5670. - bool IsResolveDirty() const
  5671. - bool GetLevelsDirty() const
  5672. - Texture* GetBackupTexture() const
  5673. - int GetMipsToSkip(int quality) const
  5674. - int GetLevelWidth(unsigned level) const
  5675. - int GetLevelHeight(unsigned level) const
  5676. - TextureUsage GetUsage() const
  5677. - unsigned GetDataSize(int width, int height) const
  5678. - unsigned GetRowDataSize(int width) const
  5679. - unsigned GetComponents() const
  5680. Properties:
  5681. - unsigned format (readonly)
  5682. - bool compressed (readonly)
  5683. - unsigned levels (readonly)
  5684. - int width (readonly)
  5685. - int height (readonly)
  5686. - unsigned components (readonly)
  5687. - TextureFilterMode filterMode
  5688. - unsigned anisotropy
  5689. - Color& borderColor
  5690. - bool sRGB
  5691. - int multiSample (readonly)
  5692. - bool autoResolve (readonly)
  5693. - bool resolveDirty (readonly)
  5694. - bool levelsDirty (readonly)
  5695. - Texture* backupTexture
  5696. - TextureUsage usage (readonly)
  5697. <a name="Class_Texture2D"></a>
  5698. ### Texture2D : Texture
  5699. Methods:
  5700. - Texture2D() (GC)
  5701. - Texture2D* new()
  5702. - void delete()
  5703. - bool SetSize(int width, int height, unsigned format, TextureUsage usage = TEXTURE_STATIC, int multiSample = 1, bool autoResolve = true)
  5704. - bool SetData(Image* image, bool useAlpha = false)
  5705. - Image* GetImage() const
  5706. - RenderSurface* GetRenderSurface() const
  5707. Properties:
  5708. - RenderSurface* renderSurface (readonly)
  5709. <a name="Class_Texture2DArray"></a>
  5710. ### Texture2DArray : Texture
  5711. Methods:
  5712. - Texture2DArray() (GC)
  5713. - Texture2DArray* new()
  5714. - void delete()
  5715. - void SetLayers(unsigned layers)
  5716. - bool SetSize(unsigned layers, int width, int height, unsigned format, TextureUsage usage = TEXTURE_STATIC)
  5717. - bool SetData(unsigned layer, Image* image, bool useAlpha = false)
  5718. - unsigned GetLayers() const
  5719. - RenderSurface* GetRenderSurface() const
  5720. Properties:
  5721. - unsigned layers
  5722. - RenderSurface* renderSurface (readonly)
  5723. <a name="Class_Texture3D"></a>
  5724. ### Texture3D : Texture
  5725. Methods:
  5726. - Texture3D() (GC)
  5727. - Texture3D* new()
  5728. - void delete()
  5729. - bool SetSize(int width, int height, int depth, unsigned format, TextureUsage usage = TEXTURE_STATIC)
  5730. - bool SetData(Image* image, bool useAlpha = false)
  5731. <a name="Class_TextureCube"></a>
  5732. ### TextureCube : Texture
  5733. Methods:
  5734. - TextureCube() (GC)
  5735. - TextureCube* new()
  5736. - void delete()
  5737. - bool SetSize(int size, unsigned format, TextureUsage usage = TEXTURE_STATIC, int multiSample = 1)
  5738. - bool SetData(CubeMapFace face, Image* image, bool useAlpha = false)
  5739. - Image* GetImage(CubeMapFace face) const
  5740. - RenderSurface* GetRenderSurface(CubeMapFace face) const
  5741. <a name="Class_TextureFrame"></a>
  5742. ### TextureFrame
  5743. Methods:
  5744. - TextureFrame() (GC)
  5745. - TextureFrame* new()
  5746. - void delete()
  5747. Properties:
  5748. - Rect uv
  5749. - float time
  5750. <a name="Class_Tile2D"></a>
  5751. ### Tile2D
  5752. Methods:
  5753. - int GetGid() const
  5754. - Sprite2D* GetSprite() const
  5755. - bool HasProperty(const String name) const
  5756. - const String GetProperty(const String name) const
  5757. Properties:
  5758. - int gid (readonly)
  5759. - Sprite2D* sprite (readonly)
  5760. <a name="Class_TileMap2D"></a>
  5761. ### TileMap2D : Component
  5762. Methods:
  5763. - void SetTmxFile(TmxFile2D* tmxFile)
  5764. - TmxFile2D* GetTmxFile() const
  5765. - const TileMapInfo2D& GetInfo() const
  5766. - unsigned GetNumLayers() const
  5767. - TileMapLayer2D* GetLayer(unsigned index) const
  5768. - Vector2 TileIndexToPosition(int x, int y) const
  5769. - bool PositionToTileIndex(const Vector2& position, int x = 0, int y = 0) const
  5770. Properties:
  5771. - TmxFile2D* tmxFile
  5772. - TileMapInfo2D& info (readonly)
  5773. - unsigned numLayers (readonly)
  5774. <a name="Class_TileMapInfo2D"></a>
  5775. ### TileMapInfo2D
  5776. Methods:
  5777. - float GetMapWidth() const
  5778. - float GetMapHeight() const
  5779. Properties:
  5780. - Orientation2D orientation
  5781. - int width
  5782. - int height
  5783. - float tileWidth
  5784. - float tileHeight
  5785. - float mapWidth (readonly)
  5786. - float mapHeight (readonly)
  5787. <a name="Class_TileMapLayer2D"></a>
  5788. ### TileMapLayer2D : Component
  5789. Methods:
  5790. - void SetDrawOrder(int drawOrder)
  5791. - void SetVisible(bool visible)
  5792. - int GetDrawOrder() const
  5793. - bool IsVisible() const
  5794. - bool HasProperty(const String name) const
  5795. - const String GetProperty(const String name) const
  5796. - TileMapLayerType2D GetLayerType() const
  5797. - int GetWidth() const
  5798. - int GetHeight() const
  5799. - Node* GetTileNode(int x, int y) const
  5800. - Tile2D* GetTile(int x, int y) const
  5801. - unsigned GetNumObjects() const
  5802. - TileMapObject2D* GetObject(unsigned index) const
  5803. - Node* GetObjectNode(unsigned index) const
  5804. - Node* GetImageNode() const
  5805. Properties:
  5806. - int drawOrder (readonly)
  5807. - bool visible (readonly)
  5808. - TileMapLayerType2D layerType (readonly)
  5809. - int width (readonly)
  5810. - int height (readonly)
  5811. - unsigned numObjects (readonly)
  5812. - Node* imageNode (readonly)
  5813. <a name="Class_TileMapObject2D"></a>
  5814. ### TileMapObject2D
  5815. Methods:
  5816. - TileMapObjectType2D GetObjectType() const
  5817. - const String GetName() const
  5818. - const String GetType() const
  5819. - const Vector2& GetPosition() const
  5820. - const Vector2& GetSize() const
  5821. - unsigned GetNumPoints() const
  5822. - const Vector2& GetPoint(unsigned index) const
  5823. - int GetTileGid() const
  5824. - Sprite2D* GetTileSprite() const
  5825. - bool HasProperty(const String name) const
  5826. - const String GetProperty(const String name) const
  5827. Properties:
  5828. - TileMapObjectType2D objectType (readonly)
  5829. - String name (readonly)
  5830. - String type (readonly)
  5831. - Vector2 position (readonly)
  5832. - Vector2 size (readonly)
  5833. - unsigned numPoints (readonly)
  5834. - int tileGid (readonly)
  5835. - Sprite2D* tileSprite (readonly)
  5836. <a name="Class_Time"></a>
  5837. ### Time : Object
  5838. Methods:
  5839. - unsigned GetFrameNumber() const
  5840. - float GetTimeStep() const
  5841. - unsigned GetTimerPeriod() const
  5842. - float GetElapsedTime()
  5843. - unsigned GetSystemTime()
  5844. - unsigned GetTimeSinceEpoch()
  5845. - String GetTimeStamp()
  5846. - void Sleep(unsigned mSec)
  5847. Properties:
  5848. - unsigned frameNumber (readonly)
  5849. - float timeStep (readonly)
  5850. - unsigned timerPeriod (readonly)
  5851. - float elapsedTime (readonly)
  5852. <a name="Class_TmxFile2D"></a>
  5853. ### TmxFile2D : Resource
  5854. <a name="Class_ToolTip"></a>
  5855. ### ToolTip : UIElement
  5856. Methods:
  5857. - ToolTip() (GC)
  5858. - ToolTip* new()
  5859. - void delete()
  5860. - void SetDelay(float delay)
  5861. - float GetDelay() const
  5862. Properties:
  5863. - float delay
  5864. <a name="Class_TouchState"></a>
  5865. ### TouchState
  5866. Methods:
  5867. - UIElement* GetTouchedElement()
  5868. Properties:
  5869. - int touchID
  5870. - IntVector2 position
  5871. - IntVector2 lastPosition
  5872. - IntVector2 delta
  5873. - float pressure
  5874. - UIElement* touchedElement (readonly)
  5875. <a name="Class_UI"></a>
  5876. ### UI : Object
  5877. Methods:
  5878. - void SetCursor(Cursor* cursor)
  5879. - void SetFocusElement(UIElement* element, bool byKey = false)
  5880. - bool SetModalElement(UIElement* modalElement, bool enable)
  5881. - void Clear()
  5882. - void DebugDraw(UIElement* element)
  5883. - UIElement* LoadLayout(File* source, XMLFile* styleFile = 0)
  5884. - UIElement* LoadLayout(const String fileName, XMLFile* styleFile = 0)
  5885. - UIElement* LoadLayout(XMLFile* file, XMLFile* styleFile = 0)
  5886. - bool SaveLayout(Serializer& dest, UIElement* element)
  5887. - void SetClipboardText(const String text)
  5888. - void SetDoubleClickInterval(float interval)
  5889. - void SetDragBeginInterval(float interval)
  5890. - void SetDragBeginDistance(int pixels)
  5891. - void SetDefaultToolTipDelay(float delay)
  5892. - void SetMaxFontTextureSize(int size)
  5893. - void SetNonFocusedMouseWheel(bool nonFocusedMouseWheel)
  5894. - void SetUseSystemClipboard(bool enable)
  5895. - void SetUseScreenKeyboard(bool enable)
  5896. - void SetUseMutableGlyphs(bool enable)
  5897. - void SetForceAutoHint(bool enable)
  5898. - void SetScale(float scale)
  5899. - void SetWidth(float width)
  5900. - void SetHeight(float height)
  5901. - void SetCustomSize(const IntVector2& size)
  5902. - void SetCustomSize(int width, int height)
  5903. - UIElement* GetRoot() const
  5904. - UIElement* GetRootModalElement() const
  5905. - Cursor* GetCursor() const
  5906. - IntVector2 GetCursorPosition() const
  5907. - UIElement* GetElementAt(const IntVector2& position, bool enabledOnly = true)
  5908. - UIElement* GetElementAt(int x, int y, bool enabledOnly = true)
  5909. - UIElement* GetFocusElement() const
  5910. - UIElement* GetFrontElement() const
  5911. - UIElement* GetDragElement(unsigned index)
  5912. - const String GetClipboardText() const
  5913. - float GetDoubleClickInterval() const
  5914. - float GetDragBeginInterval() const
  5915. - int GetDragBeginDistance() const
  5916. - float GetDefaultToolTipDelay() const
  5917. - int GetMaxFontTextureSize() const
  5918. - bool IsNonFocusedMouseWheel() const
  5919. - bool GetUseSystemClipboard() const
  5920. - bool GetUseScreenKeyboard() const
  5921. - bool GetUseMutableGlyphs() const
  5922. - bool GetForceAutoHint() const
  5923. - bool HasModalElement() const
  5924. - bool IsDragging() const
  5925. - float GetScale() const
  5926. - const IntVector2& GetCustomSize() const
  5927. Properties:
  5928. - UIElement* root (readonly)
  5929. - UIElement* rootModalElement (readonly)
  5930. - Cursor* cursor
  5931. - IntVector2 cursorPosition (readonly)
  5932. - UIElement* focusElement (readonly)
  5933. - UIElement* frontElement (readonly)
  5934. - String clipboardText
  5935. - float doubleClickInterval
  5936. - float dragBeginInterval
  5937. - int dragBeginDistance
  5938. - float defaultToolTipDelay
  5939. - int maxFontTextureSize
  5940. - bool nonFocusedMouseWheel
  5941. - bool useSystemClipboard
  5942. - bool useScreenKeyboard
  5943. - bool useMutableGlyphs
  5944. - bool forceAutoHint
  5945. - bool modalElement (readonly)
  5946. - float scale
  5947. - IntVector2& customSize
  5948. <a name="Class_UIElement"></a>
  5949. ### UIElement : Animatable
  5950. Methods:
  5951. - UIElement() (GC)
  5952. - UIElement* new()
  5953. - void delete()
  5954. - const IntVector2& GetScreenPosition() const
  5955. - bool LoadXML(Deserializer& source)
  5956. - bool SaveXML(Serializer& dest, const String indentation = "\t") const
  5957. - bool LoadXML(const String fileName)
  5958. - bool SaveXML(const String fileName, const String indentation = "\t") const
  5959. - bool FilterAttributes(XMLElement& dest) const
  5960. - void SetName(const String name)
  5961. - void SetPosition(const IntVector2& position)
  5962. - void SetPosition(int x, int y)
  5963. - void SetSize(const IntVector2& size)
  5964. - void SetSize(int width, int height)
  5965. - void SetWidth(int width)
  5966. - void SetHeight(int height)
  5967. - void SetMinSize(const IntVector2& minSize)
  5968. - void SetMinSize(int width, int height)
  5969. - void SetMinWidth(int width)
  5970. - void SetMinHeight(int height)
  5971. - void SetMaxSize(const IntVector2& maxSize)
  5972. - void SetMaxSize(int width, int height)
  5973. - void SetMaxWidth(int width)
  5974. - void SetMaxHeight(int height)
  5975. - void SetFixedSize(const IntVector2& size)
  5976. - void SetFixedSize(int width, int height)
  5977. - void SetFixedWidth(int width)
  5978. - void SetFixedHeight(int height)
  5979. - void SetAlignment(HorizontalAlignment hAlign, VerticalAlignment vAlign)
  5980. - void SetHorizontalAlignment(HorizontalAlignment align)
  5981. - void SetVerticalAlignment(VerticalAlignment align)
  5982. - void SetEnableAnchor(bool enable)
  5983. - void SetMinAnchor(const Vector2& anchor)
  5984. - void SetMinAnchor(float x, float y)
  5985. - void SetMaxAnchor(const Vector2& anchor)
  5986. - void SetMaxAnchor(float x, float y)
  5987. - void SetMinOffset(const IntVector2& offset)
  5988. - void SetMaxOffset(const IntVector2& offset)
  5989. - void SetPivot(const Vector2& pivot)
  5990. - void SetPivot(float x, float y)
  5991. - void SetClipBorder(const IntRect& rect)
  5992. - void SetColor(const Color& color)
  5993. - void SetColor(Corner corner, const Color& color)
  5994. - void SetPriority(int priority)
  5995. - void SetOpacity(float opacity)
  5996. - void SetBringToFront(bool enable)
  5997. - void SetBringToBack(bool enable)
  5998. - void SetClipChildren(bool enable)
  5999. - void SetSortChildren(bool enable)
  6000. - void SetUseDerivedOpacity(bool enable)
  6001. - void SetEnabled(bool enable)
  6002. - void SetDeepEnabled(bool enable)
  6003. - void ResetDeepEnabled()
  6004. - void SetEnabledRecursive(bool enable)
  6005. - void SetEditable(bool enable)
  6006. - void SetFocus(bool enable)
  6007. - void SetSelected(bool enable)
  6008. - void SetVisible(bool enable)
  6009. - void SetFocusMode(FocusMode mode)
  6010. - void SetDragDropMode(unsigned mode)
  6011. - bool SetStyle(const String styleName, XMLFile* file = 0)
  6012. - bool SetStyle(const XMLElement& element)
  6013. - bool SetStyleAuto(XMLFile* file = 0)
  6014. - void SetDefaultStyle(XMLFile* style)
  6015. - void SetLayout(LayoutMode mode, int spacing = 0)
  6016. - void SetLayout(LayoutMode mode, int spacing, const IntRect& border)
  6017. - void SetLayoutMode(LayoutMode mode)
  6018. - void SetLayoutSpacing(int spacing)
  6019. - void SetLayoutBorder(const IntRect& border)
  6020. - void SetLayoutFlexScale(const Vector2& scale)
  6021. - void SetIndent(int indent)
  6022. - void SetIndentSpacing(int indentSpacing)
  6023. - void UpdateLayout()
  6024. - void DisableLayoutUpdate()
  6025. - void EnableLayoutUpdate()
  6026. - void BringToFront()
  6027. - UIElement* CreateChild(const String type, const String name = String::EMPTY, unsigned index = M_MAX_UNSIGNED)
  6028. - void AddChild(UIElement* element)
  6029. - void InsertChild(unsigned index, UIElement* element)
  6030. - void RemoveChild(UIElement* element, unsigned index = 0)
  6031. - void RemoveChildAtIndex(unsigned index)
  6032. - void RemoveAllChildren()
  6033. - void Remove()
  6034. - unsigned FindChild(UIElement* element) const
  6035. - void SetParent(UIElement* parent, unsigned index = M_MAX_UNSIGNED)
  6036. - void SetVar(StringHash key, const Variant& value)
  6037. - void SetInternal(bool enable)
  6038. - void SetTraversalMode(TraversalMode traversalMode)
  6039. - void SetElementEventSender(bool flag)
  6040. - void AddTag(const String tag)
  6041. - void AddTags(const String tags, char separator)
  6042. - bool RemoveTag(const String tag)
  6043. - void RemoveAllTags()
  6044. - const String GetName() const
  6045. - const IntVector2& GetPosition() const
  6046. - const IntVector2& GetSize() const
  6047. - int GetWidth() const
  6048. - int GetHeight() const
  6049. - const IntVector2& GetMinSize() const
  6050. - int GetMinWidth() const
  6051. - int GetMinHeight() const
  6052. - const IntVector2& GetMaxSize() const
  6053. - int GetMaxWidth() const
  6054. - int GetMaxHeight() const
  6055. - bool IsFixedSize() const
  6056. - bool IsFixedWidth() const
  6057. - bool IsFixedHeight() const
  6058. - const IntVector2& GetChildOffset() const
  6059. - HorizontalAlignment GetHorizontalAlignment() const
  6060. - VerticalAlignment GetVerticalAlignment() const
  6061. - bool GetEnableAnchor() const
  6062. - const Vector2& GetMinAnchor() const
  6063. - const Vector2& GetMaxAnchor() const
  6064. - const IntVector2& GetMinOffset() const
  6065. - const IntVector2& GetMaxOffset() const
  6066. - const Vector2& GetPivot() const
  6067. - const IntRect& GetClipBorder() const
  6068. - const Color& GetColor(Corner corner) const
  6069. - int GetPriority() const
  6070. - float GetOpacity() const
  6071. - float GetDerivedOpacity() const
  6072. - bool GetBringToFront() const
  6073. - bool GetBringToBack() const
  6074. - bool GetClipChildren() const
  6075. - bool GetSortChildren() const
  6076. - bool GetUseDerivedOpacity() const
  6077. - bool HasFocus() const
  6078. - bool IsEnabled() const
  6079. - bool IsEnabledSelf() const
  6080. - bool IsEditable() const
  6081. - bool IsSelected() const
  6082. - bool IsVisible() const
  6083. - bool IsVisibleEffective() const
  6084. - bool IsHovering() const
  6085. - bool IsInternal() const
  6086. - bool HasColorGradient() const
  6087. - FocusMode GetFocusMode() const
  6088. - unsigned GetDragDropMode() const
  6089. - const String GetAppliedStyle() const
  6090. - XMLFile* GetDefaultStyle(bool recursiveUp = true) const
  6091. - LayoutMode GetLayoutMode() const
  6092. - int GetLayoutSpacing() const
  6093. - const IntRect& GetLayoutBorder() const
  6094. - const Vector2& GetLayoutFlexScale() const
  6095. - unsigned GetNumChildren(bool recursive = false) const
  6096. - int GetDragButtonCombo() const
  6097. - unsigned GetDragButtonCount() const
  6098. - UIElement* GetChild(const String name, bool recursive = false) const
  6099. - UIElement* GetChild(unsigned index) const
  6100. - UIElement* GetParent() const
  6101. - UIElement* GetRoot() const
  6102. - const Color& GetDerivedColor() const
  6103. - const Variant& GetVar(StringHash key) const
  6104. - const VariantMap& GetVars() const
  6105. - bool HasTag(const String tag) const
  6106. - const StringVector& GetTags() const
  6107. - const PODVector<UIElement*>& GetChildrenWithTag(const String tag, bool recursive = false) const
  6108. - IntVector2 ScreenToElement(const IntVector2& screenPosition)
  6109. - IntVector2 ElementToScreen(const IntVector2& position)
  6110. - bool IsInside(IntVector2 position, bool isScreen)
  6111. - bool IsInsideCombined(IntVector2 position, bool isScreen)
  6112. - IntRect GetCombinedScreenRect()
  6113. - void SortChildren()
  6114. - int GetIndent() const
  6115. - int GetIndentSpacing() const
  6116. - int GetIndentWidth() const
  6117. - void SetChildOffset(const IntVector2& offset)
  6118. - void SetHovering(bool enable)
  6119. - const Color& GetColor() const
  6120. - TraversalMode GetTraversalMode() const
  6121. - bool IsElementEventSender() const
  6122. - UIElement* GetElementEventSender() const
  6123. Properties:
  6124. - IntVector2& screenPosition (readonly)
  6125. - String name
  6126. - IntVector2& position
  6127. - IntVector2 size
  6128. - int width
  6129. - int height
  6130. - IntVector2 minSize
  6131. - int minWidth
  6132. - int minHeight
  6133. - IntVector2 maxSize
  6134. - int maxWidth
  6135. - int maxHeight
  6136. - bool fixedSize (readonly)
  6137. - bool fixedWidth (readonly)
  6138. - bool fixedHeight (readonly)
  6139. - IntVector2& childOffset
  6140. - HorizontalAlignment horizontalAlignment
  6141. - VerticalAlignment verticalAlignment
  6142. - bool enableAnchor
  6143. - IntVector2& minOffset
  6144. - IntVector2& maxOffset
  6145. - Vector2& minAnchor
  6146. - Vector2& maxAnchor
  6147. - Vector2& pivot
  6148. - IntRect clipBorder
  6149. - Color& color
  6150. - int priority
  6151. - float opacity
  6152. - float derivedOpacity (readonly)
  6153. - bool bringToFront
  6154. - bool bringToBack
  6155. - bool clipChildren
  6156. - bool sortChildren
  6157. - bool useDerivedOpacity
  6158. - bool focus
  6159. - bool enabled
  6160. - bool enabledSelf (readonly)
  6161. - bool editable
  6162. - bool selected
  6163. - bool visible
  6164. - bool visibleEffective (readonly)
  6165. - bool hovering
  6166. - bool internal
  6167. - bool colorGradient (readonly)
  6168. - FocusMode focusMode
  6169. - unsigned dragDropMode
  6170. - String style
  6171. - XMLFile* defaultStyle
  6172. - LayoutMode layoutMode
  6173. - int layoutSpacing
  6174. - IntRect& layoutBorder
  6175. - Vector2& layoutFlexScale
  6176. - unsigned numChildren (readonly)
  6177. - UIElement* parent
  6178. - UIElement* root (readonly)
  6179. - Color& derivedColor (readonly)
  6180. - IntRect combinedScreenRect (readonly)
  6181. - int indent
  6182. - int indentSpacing
  6183. - int indentWidth (readonly)
  6184. - TraversalMode traversalMode
  6185. - bool elementEventSender
  6186. <a name="Class_ValueAnimation"></a>
  6187. ### ValueAnimation : Resource
  6188. Methods:
  6189. - ValueAnimation() (GC)
  6190. - ValueAnimation* new()
  6191. - void delete()
  6192. - void SetInterpolationMethod(InterpMethod method)
  6193. - void SetSplineTension(float tension)
  6194. - void SetValueType(VariantType valueType)
  6195. - bool SetKeyFrame(float time, const Variant& value)
  6196. - void SetEventFrame(float time, const StringHash& eventType)
  6197. - void SetEventFrame(float time, const StringHash& eventType, const VariantMap& eventData)
  6198. - InterpMethod GetInterpolationMethod() const
  6199. - float GetSplineTension() const
  6200. - VariantType GetValueType() const
  6201. Properties:
  6202. - InterpMethod interpolationMethod
  6203. - float splineTension
  6204. - VariantType valueType
  6205. <a name="Class_Variant"></a>
  6206. ### Variant
  6207. Methods:
  6208. - Variant() (GC)
  6209. - Variant* new()
  6210. - Variant(const Variant& value) (GC)
  6211. - Variant* new(const Variant& value)
  6212. - Variant(const char* type, const char* value) (GC)
  6213. - Variant* new(const char* type, const char* value)
  6214. - Variant(VariantType type, const char* value) (GC)
  6215. - Variant* new(VariantType type, const char* value)
  6216. - void delete()
  6217. - void Clear()
  6218. - bool operator==(const Variant& rhs) const
  6219. - void Set(const Variant& rhs)
  6220. - void* Get(const char* type = 0) const
  6221. - int GetInt() const
  6222. - unsigned GetUInt() const
  6223. - int GetInt64() const
  6224. - int GetUInt64() const
  6225. - StringHash GetStringHash() const
  6226. - bool GetBool() const
  6227. - float GetFloat() const
  6228. - double GetDouble() const
  6229. - const Vector2& GetVector2() const
  6230. - const Vector3& GetVector3() const
  6231. - const Vector4& GetVector4() const
  6232. - const Quaternion& GetQuaternion() const
  6233. - const Color& GetColor() const
  6234. - const String GetString() const
  6235. - const PODVector<unsigned char>& GetRawBuffer() const
  6236. - VectorBuffer GetBuffer() const
  6237. - void* GetVoidPtr(const char* type) const
  6238. - const ResourceRef& GetResourceRef() const
  6239. - const ResourceRefList& GetResourceRefList() const
  6240. - const Vector<Variant>& GetVariantVector() const
  6241. - const VariantMap& GetVariantMap() const
  6242. - const Vector<String>& GetStringVector() const
  6243. - const Rect& GetRect() const
  6244. - const IntRect& GetIntRect() const
  6245. - const IntVector2& GetIntVector2() const
  6246. - const IntVector3& GetIntVector3() const
  6247. - RefCounted* GetPtr(const char* type) const
  6248. - const Matrix3& GetMatrix3() const
  6249. - const Matrix3x4& GetMatrix3x4() const
  6250. - const Matrix4& GetMatrix4() const
  6251. - VariantType GetType() const
  6252. - String GetTypeName() const
  6253. - String ToString() const
  6254. - bool IsZero() const
  6255. - bool IsEmpty() const
  6256. Properties:
  6257. - VariantType type (readonly)
  6258. - String typeName (readonly)
  6259. - bool zero (readonly)
  6260. - bool empty (readonly)
  6261. <a name="Class_VariantMap"></a>
  6262. ### VariantMap
  6263. Methods:
  6264. - VariantMap() (GC)
  6265. - VariantMap* new()
  6266. - void delete()
  6267. <a name="Class_Vector2"></a>
  6268. ### Vector2
  6269. Methods:
  6270. - Vector2() (GC)
  6271. - Vector2* new()
  6272. - Vector2(const Vector2& vector) (GC)
  6273. - Vector2* new(const Vector2& vector)
  6274. - Vector2(const IntVector2& vector) (GC)
  6275. - Vector2* new(const IntVector2& vector)
  6276. - Vector2(float x, float y) (GC)
  6277. - Vector2* new(float x, float y)
  6278. - void delete()
  6279. - bool operator==(const Vector2& rhs) const
  6280. - Vector2 operator+(const Vector2& rhs) const
  6281. - Vector2 operator-() const
  6282. - Vector2 operator-(const Vector2& rhs) const
  6283. - Vector2 operator*(float rhs) const
  6284. - Vector2 operator*(const Vector2& rhs) const
  6285. - Vector2 operator/(float rhs) const
  6286. - Vector2 operator/(const Vector2& rhs) const
  6287. - Vector2 operator/(const Vector2& rhs) const
  6288. - void Normalize()
  6289. - float Length() const
  6290. - float LengthSquared() const
  6291. - float DotProduct(const Vector2& rhs) const
  6292. - float AbsDotProduct(const Vector2& rhs) const
  6293. - float ProjectOntoAxis(const Vector2& axis) const
  6294. - float Angle(const Vector2& rhs) const
  6295. - Vector2 Abs() const
  6296. - Vector2 Lerp(const Vector2& rhs, float t) const
  6297. - bool Equals(const Vector2& rhs) const
  6298. - bool IsNaN() const
  6299. - Vector2 Normalized() const
  6300. - String ToString() const
  6301. Properties:
  6302. - float x
  6303. - float y
  6304. - const Vector2 ZERO
  6305. - const Vector2 LEFT
  6306. - const Vector2 RIGHT
  6307. - const Vector2 UP
  6308. - const Vector2 DOWN
  6309. - const Vector2 ONE
  6310. <a name="Class_Vector3"></a>
  6311. ### Vector3
  6312. Methods:
  6313. - Vector3() (GC)
  6314. - Vector3* new()
  6315. - Vector3(const Vector3& vector) (GC)
  6316. - Vector3* new(const Vector3& vector)
  6317. - Vector3(const Vector2& vector, float z) (GC)
  6318. - Vector3* new(const Vector2& vector, float z)
  6319. - Vector3(const Vector2& vector) (GC)
  6320. - Vector3* new(const Vector2& vector)
  6321. - Vector3(const IntVector3& vector) (GC)
  6322. - Vector3* new(const IntVector3& vector)
  6323. - Vector3(float x, float y, float z) (GC)
  6324. - Vector3* new(float x, float y, float z)
  6325. - Vector3(float x, float y) (GC)
  6326. - Vector3* new(float x, float y)
  6327. - void delete()
  6328. - bool operator==(const Vector3& rhs) const
  6329. - Vector3 operator+(const Vector3& rhs) const
  6330. - Vector3 operator-() const
  6331. - Vector3 operator-(const Vector3& rhs) const
  6332. - Vector3 operator*(float rhs) const
  6333. - Vector3 operator*(const Vector3& rhs) const
  6334. - Vector3 operator/(float rhs) const
  6335. - Vector3 operator/(const Vector3& rhs) const
  6336. - void Normalize()
  6337. - float Length() const
  6338. - float LengthSquared() const
  6339. - float DotProduct(const Vector3& rhs) const
  6340. - float AbsDotProduct(const Vector3& rhs) const
  6341. - float ProjectOntoAxis(const Vector3& axis) const
  6342. - Vector3 CrossProduct(const Vector3& rhs) const
  6343. - Vector3 Abs() const
  6344. - Vector3 Lerp(const Vector3& rhs, float t) const
  6345. - bool Equals(const Vector3& rhs) const
  6346. - bool IsNaN() const
  6347. - float Angle(const Vector3& rhs) const
  6348. - Vector3 Normalized() const
  6349. - String ToString() const
  6350. Properties:
  6351. - float x
  6352. - float y
  6353. - float z
  6354. - const Vector3 ZERO
  6355. - const Vector3 LEFT
  6356. - const Vector3 RIGHT
  6357. - const Vector3 UP
  6358. - const Vector3 DOWN
  6359. - const Vector3 FORWARD
  6360. - const Vector3 BACK
  6361. - const Vector3 ONE
  6362. <a name="Class_Vector4"></a>
  6363. ### Vector4
  6364. Methods:
  6365. - Vector4() (GC)
  6366. - Vector4* new()
  6367. - Vector4(const Vector4& vector) (GC)
  6368. - Vector4* new(const Vector4& vector)
  6369. - Vector4(const Vector3& vector, float w) (GC)
  6370. - Vector4* new(const Vector3& vector, float w)
  6371. - Vector4(float x, float y, float z, float w) (GC)
  6372. - Vector4* new(float x, float y, float z, float w)
  6373. - void delete()
  6374. - bool operator==(const Vector4& rhs) const
  6375. - Vector4 operator+(const Vector4& rhs) const
  6376. - Vector4 operator-() const
  6377. - Vector4 operator-(const Vector4& rhs) const
  6378. - Vector4 operator*(float rhs) const
  6379. - Vector4 operator*(const Vector4& rhs) const
  6380. - Vector4 operator/(float rhs) const
  6381. - Vector4 operator/(const Vector4& rhs) const
  6382. - Vector4 operator/(const Vector4& rhs) const
  6383. - float DotProduct(const Vector4& rhs) const
  6384. - float AbsDotProduct(const Vector4& rhs) const
  6385. - float ProjectOntoAxis(const Vector3& axis) const
  6386. - Vector4 Abs() const
  6387. - Vector4 Lerp(const Vector4& rhs, float t) const
  6388. - bool Equals(const Vector4& rhs) const
  6389. - bool IsNaN() const
  6390. - String ToString() const
  6391. Properties:
  6392. - float x
  6393. - float y
  6394. - float z
  6395. - float w
  6396. - const Vector4 ZERO
  6397. - const Vector4 ONE
  6398. <a name="Class_VectorBuffer"></a>
  6399. ### VectorBuffer
  6400. Methods:
  6401. - VectorBuffer() (GC)
  6402. - VectorBuffer* new()
  6403. - VectorBuffer(Deserializer& source, unsigned size) (GC)
  6404. - VectorBuffer* new(Deserializer& source, unsigned size)
  6405. - void delete()
  6406. - void SetData(Deserializer& source, unsigned size)
  6407. - void Clear()
  6408. - void Resize(unsigned size)
  6409. - const void* GetData() const
  6410. - void* GetModifiableData()
  6411. - VectorBuffer Read(unsigned size)
  6412. - unsigned Seek(unsigned position)
  6413. - const String GetName() const
  6414. - unsigned GetChecksum()
  6415. - unsigned GetPosition() const
  6416. - unsigned GetSize() const
  6417. - bool IsEof() const
  6418. - int ReadInt()
  6419. - long ReadInt64()
  6420. - short ReadShort()
  6421. - char ReadByte()
  6422. - unsigned ReadUInt()
  6423. - long ReadUInt64()
  6424. - short ReadUShort()
  6425. - char ReadUByte()
  6426. - bool ReadBool()
  6427. - float ReadFloat()
  6428. - double ReadDouble()
  6429. - IntRect ReadIntRect()
  6430. - IntVector2 ReadIntVector2()
  6431. - IntVector3 ReadIntVector3()
  6432. - Rect ReadRect()
  6433. - Vector2 ReadVector2()
  6434. - Vector3 ReadVector3()
  6435. - Vector3 ReadPackedVector3(float maxAbsCoord)
  6436. - Vector4 ReadVector4()
  6437. - Quaternion ReadQuaternion()
  6438. - Quaternion ReadPackedQuaternion()
  6439. - Matrix3 ReadMatrix3()
  6440. - Matrix3x4 ReadMatrix3x4()
  6441. - Matrix4 ReadMatrix4()
  6442. - Color ReadColor()
  6443. - BoundingBox ReadBoundingBox()
  6444. - String ReadString()
  6445. - String ReadFileID()
  6446. - StringHash ReadStringHash()
  6447. - VectorBuffer ReadBuffer()
  6448. - ResourceRef ReadResourceRef()
  6449. - ResourceRefList ReadResourceRefList()
  6450. - Variant ReadVariant()
  6451. - Variant ReadVariant(VariantType type)
  6452. - VariantVector ReadVariantVector()
  6453. - VariantMap ReadVariantMap()
  6454. - unsigned ReadVLE()
  6455. - unsigned ReadNetID()
  6456. - String ReadLine()
  6457. - unsigned Write(const VectorBuffer& buffer)
  6458. - bool WriteInt(int value)
  6459. - bool WriteInt64(long value)
  6460. - bool WriteShort(short value)
  6461. - bool WriteByte(char value)
  6462. - bool WriteUInt(unsigned value)
  6463. - bool WriteUInt64(long value)
  6464. - bool WriteUShort(short value)
  6465. - bool WriteUByte(char value)
  6466. - bool WriteBool(bool value)
  6467. - bool WriteFloat(float value)
  6468. - bool WriteDouble(double value)
  6469. - bool WriteIntRect(const IntRect& value)
  6470. - bool WriteIntVector2(const IntVector2& value)
  6471. - bool WriteIntVector3(const IntVector3& value)
  6472. - bool WriteRect(const Rect& value)
  6473. - bool WriteVector2(const Vector2& value)
  6474. - bool WriteVector3(const Vector3& value)
  6475. - bool WritePackedVector3(const Vector3& value, float maxAbsCoord)
  6476. - bool WriteVector4(const Vector4& value)
  6477. - bool WriteQuaternion(const Quaternion& value)
  6478. - bool WritePackedQuaternion(const Quaternion& value)
  6479. - bool WriteMatrix3(const Matrix3& value)
  6480. - bool WriteMatrix3x4(const Matrix3x4& value)
  6481. - bool WriteMatrix4(const Matrix4& value)
  6482. - bool WriteColor(const Color& value)
  6483. - bool WriteBoundingBox(const BoundingBox& value)
  6484. - bool WriteString(const String value)
  6485. - bool WriteFileID(const String value)
  6486. - bool WriteStringHash(const StringHash& value)
  6487. - bool WriteBuffer(const VectorBuffer& buffer)
  6488. - bool WriteResourceRef(const ResourceRef& value)
  6489. - bool WriteResourceRefList(const ResourceRefList& value)
  6490. - bool WriteVariant(const Variant& value)
  6491. - bool WriteVariantData(const Variant& value)
  6492. - bool WriteVariantVector(const VariantVector& value)
  6493. - bool WriteVariantMap(const VariantMap& value)
  6494. - bool WriteVLE(unsigned value)
  6495. - bool WriteNetID(unsigned value)
  6496. - bool WriteLine(const String value)
  6497. Properties:
  6498. - String name (readonly)
  6499. - unsigned checksum (readonly)
  6500. - unsigned position (readonly)
  6501. - unsigned size (readonly)
  6502. - bool eof (readonly)
  6503. <a name="Class_VertexBuffer"></a>
  6504. ### VertexBuffer : Object
  6505. Methods:
  6506. - VertexBuffer() (GC)
  6507. - VertexBuffer* new()
  6508. - void delete()
  6509. - void SetShadowed(bool enable)
  6510. - bool SetSize(unsigned vertexCount, const PODVector<VertexElement>& elements, bool dynamic = false)
  6511. - bool SetSize(unsigned vertexCount, unsigned elementMask, bool dynamic = false)
  6512. - bool SetData(VectorBuffer& data)
  6513. - bool SetDataRange(VectorBuffer& data, unsigned start, unsigned count, bool discard = false)
  6514. - VectorBuffer GetData()
  6515. - bool IsShadowed() const
  6516. - bool IsDynamic() const
  6517. - unsigned GetVertexCount() const
  6518. - unsigned GetVertexSize() const
  6519. - const PODVector<VertexElement>& GetElements() const
  6520. - bool HasElement(VertexElementSemantic semantic, char index = 0) const
  6521. - bool HasElement(VertexElementType type, VertexElementSemantic semantic, char index = 0) const
  6522. - unsigned GetElementOffset(VertexElementSemantic semantic, char index = 0) const
  6523. - unsigned GetElementOffset(VertexElementType type, VertexElementSemantic semantic, char index = 0) const
  6524. - unsigned GetElementMask() const
  6525. Properties:
  6526. - bool shadowed
  6527. - bool dynamic (readonly)
  6528. - unsigned vertexCount (readonly)
  6529. - unsigned vertexSize (readonly)
  6530. - unsigned elementMask (readonly)
  6531. <a name="Class_VertexElement"></a>
  6532. ### VertexElement
  6533. Methods:
  6534. - VertexElement() (GC)
  6535. - VertexElement* new()
  6536. - VertexElement(VertexElementType type, VertexElementSemantic semantic, char index = 0, bool perInstance = false) (GC)
  6537. - VertexElement* new(VertexElementType type, VertexElementSemantic semantic, char index = 0, bool perInstance = false)
  6538. Properties:
  6539. - VertexElementType type
  6540. - VertexElementSemantic semantic
  6541. - char index
  6542. - bool perInstance
  6543. - unsigned offset
  6544. <a name="Class_View3D"></a>
  6545. ### View3D : Window
  6546. Methods:
  6547. - View3D() (GC)
  6548. - View3D* new()
  6549. - void delete()
  6550. - void SetView(Scene* scene, Camera* camera, bool ownScene = true)
  6551. - void SetFormat(unsigned format)
  6552. - void SetAutoUpdate(bool enable)
  6553. - void QueueUpdate()
  6554. - unsigned GetFormat() const
  6555. - bool GetAutoUpdate() const
  6556. - Scene* GetScene() const
  6557. - Node* GetCameraNode() const
  6558. - Texture2D* GetRenderTexture() const
  6559. - Texture2D* GetDepthTexture() const
  6560. - Viewport* GetViewport() const
  6561. Properties:
  6562. - unsigned format
  6563. - bool autoUpdate
  6564. <a name="Class_Viewport"></a>
  6565. ### Viewport
  6566. Methods:
  6567. - Viewport() (GC)
  6568. - Viewport* new()
  6569. - Viewport(Scene* scene, Camera* camera, RenderPath* renderPath = 0) (GC)
  6570. - Viewport* new(Scene* scene, Camera* camera, RenderPath* renderPath = 0)
  6571. - Viewport(Scene* scene, Camera* camera, const IntRect& rect, RenderPath* renderPath = 0) (GC)
  6572. - Viewport* new(Scene* scene, Camera* camera, const IntRect& rect, RenderPath* renderPath = 0)
  6573. - void delete()
  6574. - void SetScene(Scene* scene)
  6575. - void SetCamera(Camera* camera)
  6576. - void SetCullCamera(Camera* camera)
  6577. - void SetRect(const IntRect& rect)
  6578. - void SetRenderPath(RenderPath* path)
  6579. - void SetRenderPath(XMLFile* file)
  6580. - void SetDrawDebug(bool enable)
  6581. - Scene* GetScene() const
  6582. - Camera* GetCamera() const
  6583. - Camera* GetCullCamera() const
  6584. - const IntRect& GetRect() const
  6585. - RenderPath* GetRenderPath() const
  6586. - bool GetDrawDebug() const
  6587. - Ray GetScreenRay(int x, int y) const
  6588. - IntVector2 WorldToScreenPoint(const Vector3& worldPos) const
  6589. - Vector3 ScreenToWorldPoint(int x, int y, float depth) const
  6590. Properties:
  6591. - Scene* scene
  6592. - Camera* camera
  6593. - Camera* cullCamera
  6594. - IntRect& rect
  6595. - RenderPath* renderPath
  6596. - bool drawDebug
  6597. <a name="Class_Window"></a>
  6598. ### Window : BorderImage
  6599. Methods:
  6600. - Window() (GC)
  6601. - Window* new()
  6602. - void delete()
  6603. - void SetMovable(bool enable)
  6604. - void SetResizable(bool enable)
  6605. - void SetFixedWidthResizing(bool enable)
  6606. - void SetFixedHeightResizing(bool enable)
  6607. - void SetResizeBorder(const IntRect& rect)
  6608. - void SetModal(bool modal)
  6609. - void SetModalShadeColor(const Color& color)
  6610. - void SetModalFrameColor(const Color& color)
  6611. - void SetModalFrameSize(const IntVector2& size)
  6612. - void SetModalAutoDismiss(bool enable)
  6613. - bool IsMovable() const
  6614. - bool IsResizable() const
  6615. - bool GetFixedWidthResizing() const
  6616. - bool GetFixedHeightResizing() const
  6617. - const IntRect& GetResizeBorder() const
  6618. - bool IsModal() const
  6619. - const Color& GetModalShadeColor() const
  6620. - const Color& GetModalFrameColor() const
  6621. - const IntVector2& GetModalFrameSize() const
  6622. - bool GetModalAutoDismiss() const
  6623. Properties:
  6624. - bool movable
  6625. - bool resizable
  6626. - bool fixedWidthResizing
  6627. - bool fixedHeightResizing
  6628. - IntRect& resizeBorder
  6629. - bool modal
  6630. - Color& modalShadeColor
  6631. - Color& modalFrameColor
  6632. - IntVector2& modalFrameSize
  6633. - bool modalAutoDismiss
  6634. <a name="Class_XMLElement"></a>
  6635. ### XMLElement
  6636. Methods:
  6637. - XMLElement CreateChild(const String name)
  6638. - XMLElement GetOrCreateChild(const String name)
  6639. - bool RemoveChild(const XMLElement& element)
  6640. - bool RemoveChild(const String name)
  6641. - bool RemoveChildren(const String name = String::EMPTY)
  6642. - bool RemoveAttribute(const String name = String::EMPTY)
  6643. - bool SetValue(const String value)
  6644. - bool SetAttribute(const String name, const String value)
  6645. - bool SetAttribute(const String value)
  6646. - bool SetBool(const String name, bool value)
  6647. - bool SetBoundingBox(const BoundingBox& value)
  6648. - bool SetColor(const String name, const Color& value)
  6649. - bool SetFloat(const String name, float value)
  6650. - bool SetDouble(const String name, double value)
  6651. - bool SetUInt(const String name, unsigned value)
  6652. - bool SetInt(const String name, int value)
  6653. - bool SetUInt64(const String name, long value)
  6654. - bool SetInt64(const String name, long value)
  6655. - bool SetIntRect(const String name, const IntRect& value)
  6656. - bool SetIntVector2(const String name, const IntVector2& value)
  6657. - bool SetIntVector3(const String name, const IntVector3& value)
  6658. - bool SetRect(const String name, const Rect& value)
  6659. - bool SetQuaternion(const String name, const Quaternion& value)
  6660. - bool SetString(const String name, const String value)
  6661. - bool SetVariant(const Variant& value)
  6662. - bool SetVariantValue(const Variant& value)
  6663. - bool SetResourceRef(const ResourceRef& value)
  6664. - bool SetResourceRefList(const ResourceRefList& value)
  6665. - bool SetVector2(const String name, const Vector2& value)
  6666. - bool SetVector3(const String name, const Vector3& value)
  6667. - bool SetVector4(const String name, const Vector4& value)
  6668. - bool SetVectorVariant(const String name, const Variant& value)
  6669. - bool SetMatrix3(const String name, const Matrix3& value)
  6670. - bool SetMatrix3x4(const String name, const Matrix3x4& value)
  6671. - bool SetMatrix4(const String name, const Matrix4& value)
  6672. - bool IsNull() const
  6673. - bool NotNull() const
  6674. - bool operatorbool() const
  6675. - String GetName() const
  6676. - bool HasChild(const String name) const
  6677. - XMLElement GetChild(const String name = String::EMPTY) const
  6678. - XMLElement GetNext(const String name = String::EMPTY) const
  6679. - XMLElement GetParent() const
  6680. - unsigned GetNumAttributes() const
  6681. - bool HasAttribute(const String name) const
  6682. - String GetValue() const
  6683. - String GetAttribute(const String name = String::EMPTY) const
  6684. - String GetAttributeLower(const String name) const
  6685. - String GetAttributeUpper(const String name) const
  6686. - Vector<String> GetAttributeNames() const
  6687. - bool GetBool(const String name) const
  6688. - BoundingBox GetBoundingBox() const
  6689. - Color GetColor(const String name) const
  6690. - float GetFloat(const String name) const
  6691. - double GetDouble(const String name) const
  6692. - unsigned GetUInt(const String name) const
  6693. - int GetInt(const String name) const
  6694. - long GetUInt64(const String name) const
  6695. - long GetInt64(const String name) const
  6696. - IntRect GetIntRect(const String name) const
  6697. - IntVector2 GetIntVector2(const String name) const
  6698. - IntVector3 GetIntVector3(const String name) const
  6699. - Rect GetRect(const String name) const
  6700. - Quaternion GetQuaternion(const String name) const
  6701. - Variant GetVariant() const
  6702. - Variant GetVariantValue(VariantType type) const
  6703. - ResourceRef GetResourceRef() const
  6704. - ResourceRefList GetResourceRefList() const
  6705. - VariantMap GetVariantMap() const
  6706. - Vector2 GetVector2(const String name) const
  6707. - Vector3 GetVector3(const String name) const
  6708. - Vector4 GetVector4(const String name) const
  6709. - Vector4 GetVector(const String name) const
  6710. - Matrix3 GetMatrix3(const String name) const
  6711. - Matrix3x4 GetMatrix3x4(const String name) const
  6712. - Matrix4 GetMatrix4(const String name) const
  6713. - XMLFile* GetFile() const
  6714. Properties:
  6715. - const XMLElement EMPTY
  6716. - bool null (readonly)
  6717. - String name (readonly)
  6718. - XMLElement parent (readonly)
  6719. - String value (readonly)
  6720. - unsigned numAttributes (readonly)
  6721. - XMLFile* file (readonly)
  6722. <a name="Class_XMLFile"></a>
  6723. ### XMLFile : Resource
  6724. Methods:
  6725. - XMLFile() (GC)
  6726. - XMLFile* new()
  6727. - void delete()
  6728. - bool FromString(const String source)
  6729. - XMLElement CreateRoot(const String name = String::EMPTY)
  6730. - XMLElement GetOrCreateRoot(const String name = String::EMPTY)
  6731. - XMLElement GetRoot(const String name = String::EMPTY)
  6732. - String ToString(const String indentation = "\t") const
  6733. - void Patch(XMLFile* patchFile)
  6734. - void Patch(XMLElement patchElement)
  6735. - bool Save(const String fileName, const String indentation = "\t") const
  6736. <a name="Class_Zone"></a>
  6737. ### Zone : Drawable
  6738. Methods:
  6739. - void SetBoundingBox(const BoundingBox& box)
  6740. - void SetAmbientColor(const Color& color)
  6741. - void SetFogColor(const Color& color)
  6742. - void SetFogStart(float start)
  6743. - void SetFogEnd(float end)
  6744. - void SetFogHeight(float height)
  6745. - void SetFogHeightScale(float scale)
  6746. - void SetPriority(int priority)
  6747. - void SetHeightFog(bool enable)
  6748. - void SetOverride(bool enable)
  6749. - void SetAmbientGradient(bool enable)
  6750. - void SetZoneTexture(Texture* texture)
  6751. - const Matrix3x4& GetInverseWorldTransform() const
  6752. - const Color& GetAmbientColor() const
  6753. - const Color& GetAmbientStartColor()
  6754. - const Color& GetAmbientEndColor()
  6755. - const Color& GetFogColor() const
  6756. - float GetFogStart() const
  6757. - float GetFogEnd() const
  6758. - float GetFogHeight() const
  6759. - float GetFogHeightScale() const
  6760. - int GetPriority() const
  6761. - bool GetHeightFog() const
  6762. - bool GetOverride() const
  6763. - bool GetAmbientGradient() const
  6764. - Texture* GetZoneTexture() const
  6765. - bool IsInside(const Vector3& point) const
  6766. Properties:
  6767. - BoundingBox& boundingBox
  6768. - Matrix3x4& inverseWorldTransform (readonly)
  6769. - Color& ambientColor
  6770. - Color& ambientStartColor (readonly)
  6771. - Color& ambientEndColor (readonly)
  6772. - Color& fogColor
  6773. - float fogStart
  6774. - float fogEnd
  6775. - float fogHeight
  6776. - float fogHeightScale
  6777. - int priority
  6778. - bool heightFog
  6779. - bool override
  6780. - bool ambientGradient
  6781. - Texture* zoneTexture
  6782. \section LuaScriptAPI_Enums Enumerations
  6783. ### AnimationBlendMode
  6784. - int ABM_LERP
  6785. - int ABM_ADDITIVE
  6786. ### AutoRemoveMode
  6787. - int REMOVE_DISABLED
  6788. - int REMOVE_COMPONENT
  6789. - int REMOVE_NODE
  6790. ### BlendMode
  6791. - int BLEND_REPLACE
  6792. - int BLEND_ADD
  6793. - int BLEND_MULTIPLY
  6794. - int BLEND_ALPHA
  6795. - int BLEND_ADDALPHA
  6796. - int BLEND_PREMULALPHA
  6797. - int BLEND_INVDESTALPHA
  6798. - int BLEND_SUBTRACT
  6799. - int BLEND_SUBTRACTALPHA
  6800. - int MAX_BLENDMODES
  6801. ### BodyType2D
  6802. - int BT_STATIC
  6803. - int BT_KINEMATIC
  6804. - int BT_DYNAMIC
  6805. ### CollisionEventMode
  6806. - int COLLISION_NEVER
  6807. - int COLLISION_ACTIVE
  6808. - int COLLISION_ALWAYS
  6809. ### CompareMode
  6810. - int CMP_ALWAYS
  6811. - int CMP_EQUAL
  6812. - int CMP_NOTEQUAL
  6813. - int CMP_LESS
  6814. - int CMP_LESSEQUAL
  6815. - int CMP_GREATER
  6816. - int CMP_GREATEREQUAL
  6817. - int MAX_COMPAREMODES
  6818. ### CompressedFormat
  6819. - int CF_NONE
  6820. - int CF_RGBA
  6821. - int CF_DXT1
  6822. - int CF_DXT3
  6823. - int CF_DXT5
  6824. - int CF_ETC1
  6825. - int CF_PVRTC_RGB_2BPP
  6826. - int CF_PVRTC_RGBA_2BPP
  6827. - int CF_PVRTC_RGB_4BPP
  6828. - int CF_PVRTC_RGBA_4BPP
  6829. ### ConstraintType
  6830. - int CONSTRAINT_POINT
  6831. - int CONSTRAINT_HINGE
  6832. - int CONSTRAINT_SLIDER
  6833. - int CONSTRAINT_CONETWIST
  6834. ### Corner
  6835. - int C_TOPLEFT
  6836. - int C_TOPRIGHT
  6837. - int C_BOTTOMLEFT
  6838. - int C_BOTTOMRIGHT
  6839. - int MAX_UIELEMENT_CORNERS
  6840. ### CreateMode
  6841. - int REPLICATED
  6842. - int LOCAL
  6843. ### CrowdAgentRequestedTarget
  6844. - int CA_REQUESTEDTARGET_NONE
  6845. - int CA_REQUESTEDTARGET_POSITION
  6846. - int CA_REQUESTEDTARGET_VELOCITY
  6847. ### CrowdAgentState
  6848. - int CA_STATE_INVALID
  6849. - int CA_STATE_WALKING
  6850. - int CA_STATE_OFFMESH
  6851. ### CrowdAgentTargetState
  6852. - int CA_TARGET_NONE
  6853. - int CA_TARGET_FAILED
  6854. - int CA_TARGET_VALID
  6855. - int CA_TARGET_REQUESTING
  6856. - int CA_TARGET_WAITINGFORQUEUE
  6857. - int CA_TARGET_WAITINGFORPATH
  6858. - int CA_TARGET_VELOCITY
  6859. ### CubeMapFace
  6860. - int FACE_POSITIVE_X
  6861. - int FACE_NEGATIVE_X
  6862. - int FACE_POSITIVE_Y
  6863. - int FACE_NEGATIVE_Y
  6864. - int FACE_POSITIVE_Z
  6865. - int FACE_NEGATIVE_Z
  6866. - int MAX_CUBEMAP_FACES
  6867. ### CullMode
  6868. - int CULL_NONE
  6869. - int CULL_CCW
  6870. - int CULL_CW
  6871. - int MAX_CULLMODES
  6872. ### CursorShape
  6873. - int CS_NORMAL
  6874. - int CS_IBEAM
  6875. - int CS_CROSS
  6876. - int CS_RESIZEVERTICAL
  6877. - int CS_RESIZEDIAGONAL_TOPRIGHT
  6878. - int CS_RESIZEHORIZONTAL
  6879. - int CS_RESIZEDIAGONAL_TOPLEFT
  6880. - int CS_RESIZE_ALL
  6881. - int CS_ACCEPTDROP
  6882. - int CS_REJECTDROP
  6883. - int CS_BUSY
  6884. - int CS_BUSY_ARROW
  6885. - int CS_MAX_SHAPES
  6886. ### DBAPI
  6887. - int DBAPI_SQLITE
  6888. - int DBAPI_ODBC
  6889. ### EmitterType
  6890. - int EMITTER_SPHERE
  6891. - int EMITTER_BOX
  6892. ### EmitterType2D
  6893. - int EMITTER_TYPE_GRAVITY
  6894. - int EMITTER_TYPE_RADIAL
  6895. ### FaceCameraMode
  6896. - int FC_NONE
  6897. - int FC_ROTATE_XYZ
  6898. - int FC_ROTATE_Y
  6899. - int FC_LOOKAT_XYZ
  6900. - int FC_LOOKAT_Y
  6901. - int FC_LOOKAT_MIXED
  6902. - int FC_DIRECTION
  6903. ### FaceCameraMode
  6904. - int FC_NONE
  6905. - int FC_ROTATE_XYZ
  6906. - int FC_ROTATE_Y
  6907. - int FC_LOOKAT_XYZ
  6908. - int FC_LOOKAT_Y
  6909. - int FC_LOOKAT_MIXED
  6910. - int FC_DIRECTION
  6911. ### FileMode
  6912. - int FILE_READ
  6913. - int FILE_WRITE
  6914. - int FILE_READWRITE
  6915. ### FillMode
  6916. - int FILL_SOLID
  6917. - int FILL_WIREFRAME
  6918. - int FILL_POINT
  6919. ### FocusMode
  6920. - int FM_NOTFOCUSABLE
  6921. - int FM_RESETFOCUS
  6922. - int FM_FOCUSABLE
  6923. - int FM_FOCUSABLE_DEFOCUSABLE
  6924. ### FontType
  6925. - int FONT_NONE
  6926. - int FONT_FREETYPE
  6927. - int FONT_BITMAP
  6928. - int MAX_FONT_TYPES
  6929. ### FrustumPlane
  6930. - int PLANE_NEAR
  6931. - int PLANE_LEFT
  6932. - int PLANE_RIGHT
  6933. - int PLANE_UP
  6934. - int PLANE_DOWN
  6935. - int PLANE_FAR
  6936. ### GeometryType
  6937. - int GEOM_STATIC
  6938. - int GEOM_SKINNED
  6939. - int GEOM_INSTANCED
  6940. - int GEOM_BILLBOARD
  6941. - int GEOM_STATIC_NOINSTANCING
  6942. - int MAX_GEOMETRYTYPES
  6943. ### HighlightMode
  6944. - int HM_NEVER
  6945. - int HM_FOCUS
  6946. - int HM_ALWAYS
  6947. ### HorizontalAlignment
  6948. - int HA_LEFT
  6949. - int HA_CENTER
  6950. - int HA_RIGHT
  6951. - int HA_CUSTOM
  6952. ### HttpRequestState
  6953. - int HTTP_INITIALIZING
  6954. - int HTTP_ERROR
  6955. - int HTTP_OPEN
  6956. - int HTTP_CLOSED
  6957. ### InterpMethod
  6958. - int IM_NONE
  6959. - int IM_LINEAR
  6960. - int IM_SPLINE
  6961. ### InterpolationMode
  6962. - int BEZIER_CURVE
  6963. - int CATMULL_ROM_CURVE
  6964. - int LINEAR_CURVE
  6965. - int CATMULL_ROM_FULL_CURVE
  6966. ### Intersection
  6967. - int OUTSIDE
  6968. - int INTERSECTS
  6969. - int INSIDE
  6970. ### JSONNumberType
  6971. - int JSONNT_NAN
  6972. - int JSONNT_INT
  6973. - int JSONNT_UINT
  6974. - int JSONNT_FLOAT_DOUBLE
  6975. ### JSONValueType
  6976. - int JSON_NULL
  6977. - int JSON_BOOL
  6978. - int JSON_NUMBER
  6979. - int JSON_STRING
  6980. - int JSON_ARRAY
  6981. - int JSON_OBJECT
  6982. ### LayoutMode
  6983. - int LM_FREE
  6984. - int LM_HORIZONTAL
  6985. - int LM_VERTICAL
  6986. ### LegacyVertexElement
  6987. - int ELEMENT_POSITION
  6988. - int ELEMENT_NORMAL
  6989. - int ELEMENT_COLOR
  6990. - int ELEMENT_TEXCOORD1
  6991. - int ELEMENT_TEXCOORD2
  6992. - int ELEMENT_CUBETEXCOORD1
  6993. - int ELEMENT_CUBETEXCOORD2
  6994. - int ELEMENT_TANGENT
  6995. - int ELEMENT_BLENDWEIGHTS
  6996. - int ELEMENT_BLENDINDICES
  6997. - int ELEMENT_INSTANCEMATRIX1
  6998. - int ELEMENT_INSTANCEMATRIX2
  6999. - int ELEMENT_INSTANCEMATRIX3
  7000. - int ELEMENT_OBJECTINDEX
  7001. - int MAX_LEGACY_VERTEX_ELEMENTS
  7002. ### LightType
  7003. - int LIGHT_DIRECTIONAL
  7004. - int LIGHT_SPOT
  7005. - int LIGHT_POINT
  7006. ### LoadMode
  7007. - int LOAD_RESOURCES_ONLY
  7008. - int LOAD_SCENE
  7009. - int LOAD_SCENE_AND_RESOURCES
  7010. ### LockState
  7011. - int LOCK_NONE
  7012. - int LOCK_HARDWARE
  7013. - int LOCK_SHADOW
  7014. - int LOCK_SCRATCH
  7015. ### LoopMode2D
  7016. - int LM_DEFAULT
  7017. - int LM_FORCE_LOOPED
  7018. - int LM_FORCE_CLAMPED
  7019. ### MouseMode
  7020. - int MM_ABSOLUTE
  7021. - int MM_RELATIVE
  7022. - int MM_WRAP
  7023. - int MM_FREE
  7024. ### NavigationPushiness
  7025. - int NAVIGATIONPUSHINESS_LOW
  7026. - int NAVIGATIONPUSHINESS_MEDIUM
  7027. - int NAVIGATIONPUSHINESS_HIGH
  7028. - int NAVIGATIONPUSHINESS_NONE
  7029. ### NavigationQuality
  7030. - int NAVIGATIONQUALITY_LOW
  7031. - int NAVIGATIONQUALITY_MEDIUM
  7032. - int NAVIGATIONQUALITY_HIGH
  7033. ### NavmeshPartitionType
  7034. - int NAVMESH_PARTITION_WATERSHED
  7035. - int NAVMESH_PARTITION_MONOTONE
  7036. ### Orientation
  7037. - int O_HORIZONTAL
  7038. - int O_VERTICAL
  7039. ### Orientation2D
  7040. - int O_ORTHOGONAL
  7041. - int O_ISOMETRIC
  7042. - int O_STAGGERED
  7043. - int O_HEXAGONAL
  7044. ### PassLightingMode
  7045. - int LIGHTING_UNLIT
  7046. - int LIGHTING_PERVERTEX
  7047. - int LIGHTING_PERPIXEL
  7048. ### PrimitiveType
  7049. - int TRIANGLE_LIST
  7050. - int LINE_LIST
  7051. - int POINT_LIST
  7052. - int TRIANGLE_STRIP
  7053. - int LINE_STRIP
  7054. - int TRIANGLE_FAN
  7055. ### RayQueryLevel
  7056. - int RAY_AABB
  7057. - int RAY_OBB
  7058. - int RAY_TRIANGLE
  7059. - int RAY_TRIANGLE_UV
  7060. ### RenderCommandSortMode
  7061. - int SORT_FRONTTOBACK
  7062. - int SORT_BACKTOFRONT
  7063. ### RenderCommandType
  7064. - int CMD_NONE
  7065. - int CMD_CLEAR
  7066. - int CMD_SCENEPASS
  7067. - int CMD_QUAD
  7068. - int CMD_FORWARDLIGHTS
  7069. - int CMD_LIGHTVOLUMES
  7070. - int CMD_RENDERUI
  7071. - int CMD_SENDEVENT
  7072. ### RenderSurfaceUpdateMode
  7073. - int SURFACE_MANUALUPDATE
  7074. - int SURFACE_UPDATEVISIBLE
  7075. - int SURFACE_UPDATEALWAYS
  7076. ### RenderTargetSizeMode
  7077. - int SIZE_ABSOLUTE
  7078. - int SIZE_VIEWPORTDIVISOR
  7079. - int SIZE_VIEWPORTMULTIPLIER
  7080. ### ShaderType
  7081. - int VS
  7082. - int PS
  7083. ### ShadowQuality
  7084. - int SHADOWQUALITY_SIMPLE_16BIT
  7085. - int SHADOWQUALITY_SIMPLE_24BIT
  7086. - int SHADOWQUALITY_PCF_16BIT
  7087. - int SHADOWQUALITY_PCF_24BIT
  7088. - int SHADOWQUALITY_VSM
  7089. - int SHADOWQUALITY_BLUR_VSM
  7090. ### ShapeType
  7091. - int SHAPE_BOX
  7092. - int SHAPE_SPHERE
  7093. - int SHAPE_STATICPLANE
  7094. - int SHAPE_CYLINDER
  7095. - int SHAPE_CAPSULE
  7096. - int SHAPE_CONE
  7097. - int SHAPE_TRIANGLEMESH
  7098. - int SHAPE_CONVEXHULL
  7099. - int SHAPE_TERRAIN
  7100. ### StencilOp
  7101. - int OP_KEEP
  7102. - int OP_ZERO
  7103. - int OP_REF
  7104. - int OP_INCR
  7105. - int OP_DECR
  7106. ### TextEffect
  7107. - int TE_NONE
  7108. - int TE_SHADOW
  7109. - int TE_STROKE
  7110. ### TextureAddressMode
  7111. - int ADDRESS_WRAP
  7112. - int ADDRESS_MIRROR
  7113. - int ADDRESS_CLAMP
  7114. - int ADDRESS_BORDER
  7115. - int MAX_ADDRESSMODES
  7116. ### TextureCoordinate
  7117. - int COORD_U
  7118. - int COORD_V
  7119. - int COORD_W
  7120. - int MAX_COORDS
  7121. ### TextureFilterMode
  7122. - int FILTER_NEAREST
  7123. - int FILTER_BILINEAR
  7124. - int FILTER_TRILINEAR
  7125. - int FILTER_ANISOTROPIC
  7126. - int FILTER_NEAREST_ANISOTROPIC
  7127. - int FILTER_DEFAULT
  7128. - int MAX_FILTERMODES
  7129. ### TextureUnit
  7130. - int TU_DIFFUSE
  7131. - int TU_ALBEDOBUFFER
  7132. - int TU_NORMAL
  7133. - int TU_NORMALBUFFER
  7134. - int TU_SPECULAR
  7135. - int TU_EMISSIVE
  7136. - int TU_ENVIRONMENT
  7137. ### TextureUsage
  7138. - int TEXTURE_STATIC
  7139. - int TEXTURE_DYNAMIC
  7140. - int TEXTURE_RENDERTARGET
  7141. - int TEXTURE_DEPTHSTENCIL
  7142. ### TileMapLayerType2D
  7143. - int LT_TILE_LAYER
  7144. - int LT_OBJECT_GROUP
  7145. - int LT_IMAGE_LAYER
  7146. - int LT_INVALID
  7147. ### TileMapObjectType2D
  7148. - int OT_RECTANGLE
  7149. - int OT_ELLIPSE
  7150. - int OT_POLYGON
  7151. - int OT_POLYLINE
  7152. - int OT_TILE
  7153. - int OT_INVALID
  7154. ### TrailType
  7155. - int TT_FACE_CAMERA
  7156. - int TT_BONE
  7157. ### TransformSpace
  7158. - int TS_LOCAL
  7159. - int TS_PARENT
  7160. - int TS_WORLD
  7161. ### TraversalMode
  7162. - int TM_BREADTH_FIRST
  7163. - int TM_DEPTH_FIRST
  7164. ### VariantType
  7165. - int VAR_NONE
  7166. - int VAR_INT
  7167. - int VAR_BOOL
  7168. - int VAR_FLOAT
  7169. - int VAR_VECTOR2
  7170. - int VAR_VECTOR3
  7171. - int VAR_VECTOR4
  7172. - int VAR_QUATERNION
  7173. - int VAR_COLOR
  7174. - int VAR_STRING
  7175. - int VAR_BUFFER
  7176. - int VAR_VOIDPTR
  7177. - int VAR_RESOURCEREF
  7178. - int VAR_RESOURCEREFLIST
  7179. - int VAR_VARIANTVECTOR
  7180. - int VAR_VARIANTMAP
  7181. - int VAR_INTRECT
  7182. - int VAR_INTVECTOR2
  7183. - int VAR_PTR
  7184. - int VAR_MATRIX3
  7185. - int VAR_MATRIX3X4
  7186. - int VAR_MATRIX4
  7187. - int VAR_DOUBLE
  7188. - int VAR_STRINGVECTOR
  7189. - int VAR_RECT
  7190. - int VAR_INTVECTOR3
  7191. - int VAR_INT64
  7192. - int MAX_VAR_TYPES
  7193. ### VertexElementSemantic
  7194. - int SEM_POSITION
  7195. - int SEM_NORMAL
  7196. - int SEM_BINORMAL
  7197. - int SEM_TANGENT
  7198. - int SEM_TEXCOORD
  7199. - int SEM_COLOR
  7200. - int SEM_BLENDWEIGHTS
  7201. - int SEM_BLENDINDICES
  7202. - int SEM_OBJECTINDEX
  7203. - int MAX_VERTEX_ELEMENT_SEMANTICS
  7204. ### VertexElementType
  7205. - int TYPE_INT
  7206. - int TYPE_FLOAT
  7207. - int TYPE_VECTOR2
  7208. - int TYPE_VECTOR3
  7209. - int TYPE_VECTOR4
  7210. - int TYPE_UBYTE4
  7211. - int TYPE_UBYTE4_NORM
  7212. - int MAX_VERTEX_ELEMENT_TYPES
  7213. ### VerticalAlignment
  7214. - int VA_TOP
  7215. - int VA_CENTER
  7216. - int VA_BOTTOM
  7217. - int VA_CUSTOM
  7218. ### WindowDragMode
  7219. - int DRAG_NONE
  7220. - int DRAG_MOVE
  7221. - int DRAG_RESIZE_TOPLEFT
  7222. - int DRAG_RESIZE_TOP
  7223. - int DRAG_RESIZE_TOPRIGHT
  7224. - int DRAG_RESIZE_RIGHT
  7225. - int DRAG_RESIZE_BOTTOMRIGHT
  7226. - int DRAG_RESIZE_BOTTOM
  7227. - int DRAG_RESIZE_BOTTOMLEFT
  7228. - int DRAG_RESIZE_LEFT
  7229. ### WrapMode
  7230. - int WM_LOOP
  7231. - int WM_ONCE
  7232. - int WM_CLAMP
  7233. \section LuaScriptAPI_toluaFunctions tolua functions
  7234. - lua_usertype cast(lua_usertype object, const char* typename)
  7235. - lua_table getpeer(lua_userdata object)
  7236. - void inherit(lua_table table, lua_usertype c_instance)
  7237. - bool releaseownership(lua_usertype object)
  7238. - void setpeer(lua_userdata object, lua_table table)
  7239. - bool takeownership(lua_usertype object)
  7240. - const char* type(lua_object object)
  7241. \section LuaScriptAPI_GlobalFunctions Global functions
  7242. - float Abs(float value)
  7243. - int AbsInt(int value)
  7244. - float Acos(float x)
  7245. - String AddTrailingSlash(const String pathName)
  7246. - float Asin(float x)
  7247. - float Atan(float x)
  7248. - float Atan2(float y, float x)
  7249. - float Ceil(float x)
  7250. - int CeilToInt(float x)
  7251. - float Clamp(float value, float min, float max)
  7252. - int ClampInt(int value, int min, int max)
  7253. - VectorBuffer CompressVectorBuffer(VectorBuffer& src)
  7254. - float Cos(float angle)
  7255. - unsigned CountSetBits(unsigned value)
  7256. - VectorBuffer DecompressVectorBuffer(VectorBuffer& src)
  7257. - bool Equals(float lhs, float rhs)
  7258. - void ErrorDialog(const String title, const String message)
  7259. - void ErrorExit(const String message = String::EMPTY, int exitCode = EXIT_FAILURE)
  7260. - float Floor(float x)
  7261. - int FloorToInt(float x)
  7262. - float Fract(float x)
  7263. - const Vector<String>& GetArguments()
  7264. - Audio* GetAudio()
  7265. - ResourceCache* GetCache()
  7266. - Console* GetConsole()
  7267. - String GetConsoleInput()
  7268. - Context* GetContext()
  7269. - DBAPI GetDBAPI()
  7270. - Database* GetDatabase()
  7271. - DebugHud* GetDebugHud()
  7272. - Engine* GetEngine()
  7273. - EventHandler* GetEventHandler() const
  7274. - Object* GetEventSender()
  7275. - bool GetExecuteConsoleCommands()
  7276. - String GetExtension(const String fullPath, bool lowercaseExtension = true)
  7277. - String GetFileName(const String fullPath)
  7278. - String GetFileNameAndExtension(const String fullPath, bool lowercaseExtension = false)
  7279. - String GetFileSizeString(long memorySize)
  7280. - FileSystem* GetFileSystem()
  7281. - Variant GetGlobalVar(const String key)
  7282. - VariantMap& GetGlobalVars()
  7283. - Graphics* GetGraphics()
  7284. - Input* GetInput()
  7285. - String GetInternalPath(const String pathName)
  7286. - Localization* GetLocalization()
  7287. - Log* GetLog()
  7288. - String GetMiniDumpDir()
  7289. - String GetNativePath(const String pathName)
  7290. - Network* GetNetwork()
  7291. - unsigned GetNumLogicalCPUs()
  7292. - unsigned GetNumPhysicalCPUs()
  7293. - String GetParentPath(const String pathName)
  7294. - String GetPath(const String fullPath)
  7295. - String GetPlatform()
  7296. - unsigned GetRandomSeed()
  7297. - Renderer* GetRenderer()
  7298. - Time* GetTime()
  7299. - UI* GetUI()
  7300. - bool HasSubscribedToEvent(Object* sender, const String eventName)
  7301. - bool HasSubscribedToEvent(const String eventName)
  7302. - float InverseLerp(float lhs, float rhs, float x)
  7303. - bool IsAbsolutePath(const String pathName)
  7304. - bool IsAlpha(unsigned ch)
  7305. - bool IsDigit(unsigned ch)
  7306. - bool IsNaN(float value)
  7307. - bool IsPowerOfTwo(unsigned value)
  7308. - float Lerp(float lhs, float rhs, float t)
  7309. - float Ln(float x)
  7310. - float Max(float lhs, float rhs)
  7311. - int MaxInt(int lhs, int rhs)
  7312. - float Min(float lhs, float rhs)
  7313. - int MinInt(int lhs, int rhs)
  7314. - float Mod(float x, float y)
  7315. - unsigned NextPowerOfTwo(unsigned value)
  7316. - void OpenConsoleWindow()
  7317. - float Pow(float x, float y)
  7318. - void PrintLine(const String str, bool error = false)
  7319. - int Rand()
  7320. - float RandStandardNormal()
  7321. - float Random(float min, float max)
  7322. - float Random(float range)
  7323. - float Random()
  7324. - int RandomInt(int range)
  7325. - int RandomInt(int min, int max)
  7326. - float RandomNormal(float meanValue, float variance)
  7327. - void RegisterEventName(const String eventName)
  7328. - String RemoveTrailingSlash(const String pathName)
  7329. - String ReplaceExtension(const String fullPath, const String newExtension)
  7330. - float Round(float x)
  7331. - int RoundToInt(float x)
  7332. - unsigned SDBMHash(unsigned hash, char c)
  7333. - void SendEvent(const String eventName, VariantMap& eventData)
  7334. - void SetExecuteConsoleCommands(bool enable)
  7335. - void SetGlobalVar(const String key, Variant value)
  7336. - void SetMiniDumpDir(const String pathName)
  7337. - void SetRandomSeed(unsigned seed)
  7338. - float Sign(float value)
  7339. - float Sin(float angle)
  7340. - float SmoothStep(float lhs, float rhs, float t)
  7341. - float Sqrt(float x)
  7342. - float StableRandom(const Vector3& seed)
  7343. - float StableRandom(float seed)
  7344. - float StableRandom(const Vector2& seed)
  7345. - void SubscribeToEvent(const String eventName, void* functionOrFunctionName)
  7346. - void SubscribeToEvent(void* sender, const String eventName, void* functionOrFunctionName)
  7347. - float Tan(float angle)
  7348. - bool ToBool(const String source)
  7349. - Color ToColor(const String source)
  7350. - float ToFloat(const String source)
  7351. - int ToInt(const String source, int base = 10)
  7352. - int ToInt64(const String source, int base = 10)
  7353. - IntRect ToIntRect(const String source)
  7354. - IntVector2 ToIntVector2(const String source)
  7355. - IntVector3 ToIntVector3(const String source)
  7356. - unsigned ToLower(unsigned ch)
  7357. - Matrix3 ToMatrix3(const String source)
  7358. - Matrix3x4 ToMatrix3x4(const String source)
  7359. - Matrix4 ToMatrix4(const String source)
  7360. - Quaternion ToQuaternion(const String source)
  7361. - Rect ToRect(const String source)
  7362. - String ToString(void* value)
  7363. - String ToStringHex(unsigned value)
  7364. - unsigned ToUInt(const String source, int base = 10)
  7365. - int ToUInt64(const String source, int base = 10)
  7366. - unsigned ToUpper(unsigned ch)
  7367. - Vector2 ToVector2(const String source)
  7368. - Vector3 ToVector3(const String source)
  7369. - Vector4 ToVector4(const String source, bool allowMissingCoords = false)
  7370. - void UnsubscribeFromAllEvents()
  7371. - void UnsubscribeFromAllEventsExcept(const Vector<String>& exceptionNames)
  7372. - void UnsubscribeFromEvent(Object* sender, const String eventName)
  7373. - void UnsubscribeFromEvent(const String eventName)
  7374. - void UnsubscribeFromEvents(Object* sender)
  7375. - Vector2 VectorCeil(const Vector2& vec)
  7376. - Vector4 VectorCeil(const Vector4& vec)
  7377. - Vector3 VectorCeil(const Vector3& vec)
  7378. - IntVector3 VectorCeilToInt(const Vector3& vec)
  7379. - IntVector2 VectorCeilToInt(const Vector2& vec)
  7380. - Vector2 VectorFloor(const Vector2& vec)
  7381. - Vector3 VectorFloor(const Vector3& vec)
  7382. - Vector4 VectorFloor(const Vector4& vec)
  7383. - IntVector2 VectorFloorToInt(const Vector2& vec)
  7384. - IntVector3 VectorFloorToInt(const Vector3& vec)
  7385. - Vector2 VectorLerp(const Vector2& lhs, const Vector2& rhs, const Vector2& t)
  7386. - Vector4 VectorLerp(const Vector4& lhs, const Vector4& rhs, const Vector4& t)
  7387. - Vector3 VectorLerp(const Vector3& lhs, const Vector3& rhs, const Vector3& t)
  7388. - Vector4 VectorMax(const Vector4& lhs, const Vector4& rhs)
  7389. - Vector2 VectorMax(const Vector2& lhs, const Vector2& rhs)
  7390. - IntVector2 VectorMax(const IntVector2& lhs, const IntVector2& rhs)
  7391. - IntVector3 VectorMax(const IntVector3& lhs, const IntVector3& rhs)
  7392. - Vector3 VectorMax(const Vector3& lhs, const Vector3& rhs)
  7393. - Vector2 VectorMin(const Vector2& lhs, const Vector2& rhs)
  7394. - IntVector3 VectorMin(const IntVector3& lhs, const IntVector3& rhs)
  7395. - Vector4 VectorMin(const Vector4& lhs, const Vector4& rhs)
  7396. - Vector3 VectorMin(const Vector3& lhs, const Vector3& rhs)
  7397. - IntVector2 VectorMin(const IntVector2& lhs, const IntVector2& rhs)
  7398. - Vector4 VectorRound(const Vector4& vec)
  7399. - Vector2 VectorRound(const Vector2& vec)
  7400. - Vector3 VectorRound(const Vector3& vec)
  7401. - IntVector3 VectorRoundToInt(const Vector3& vec)
  7402. - IntVector2 VectorRoundToInt(const Vector2& vec)
  7403. \section LuaScriptAPI_GlobalProperties Global properties
  7404. - Audio* audio (readonly)
  7405. - ResourceCache* cache (readonly)
  7406. - Console* console (readonly)
  7407. - Context* context (readonly)
  7408. - Database* database (readonly)
  7409. - DebugHud* debugHud (readonly)
  7410. - Engine* engine (readonly)
  7411. - EventHandler* eventHandler (readonly)
  7412. - EventSender* eventSender (readonly)
  7413. - FileSystem* fileSystem (readonly)
  7414. - Graphics* graphics (readonly)
  7415. - Input* input (readonly)
  7416. - Localization* localization (readonly)
  7417. - Log* log (readonly)
  7418. - Network* network (readonly)
  7419. - Renderer* renderer (readonly)
  7420. - Time* time (readonly)
  7421. - UI* ui (readonly)
  7422. \section LuaScriptAPI_GlobalConstants Global constants
  7423. - float ANIMATION_LOD_BASESCALE
  7424. - char CHANNEL_POSITION
  7425. - char CHANNEL_ROTATION
  7426. - char CHANNEL_SCALE
  7427. - unsigned CLEAR_COLOR
  7428. - unsigned CLEAR_DEPTH
  7429. - unsigned CLEAR_STENCIL
  7430. - int CONTROLLER_AXIS_LEFTX
  7431. - int CONTROLLER_AXIS_LEFTY
  7432. - int CONTROLLER_AXIS_RIGHTX
  7433. - int CONTROLLER_AXIS_RIGHTY
  7434. - int CONTROLLER_AXIS_TRIGGERLEFT
  7435. - int CONTROLLER_AXIS_TRIGGERRIGHT
  7436. - int CONTROLLER_BUTTON_A
  7437. - int CONTROLLER_BUTTON_B
  7438. - int CONTROLLER_BUTTON_BACK
  7439. - int CONTROLLER_BUTTON_DPAD_DOWN
  7440. - int CONTROLLER_BUTTON_DPAD_LEFT
  7441. - int CONTROLLER_BUTTON_DPAD_RIGHT
  7442. - int CONTROLLER_BUTTON_DPAD_UP
  7443. - int CONTROLLER_BUTTON_GUIDE
  7444. - int CONTROLLER_BUTTON_LEFTSHOULDER
  7445. - int CONTROLLER_BUTTON_LEFTSTICK
  7446. - int CONTROLLER_BUTTON_RIGHTSHOULDER
  7447. - int CONTROLLER_BUTTON_RIGHTSTICK
  7448. - int CONTROLLER_BUTTON_START
  7449. - int CONTROLLER_BUTTON_X
  7450. - int CONTROLLER_BUTTON_Y
  7451. - unsigned DD_DISABLED
  7452. - unsigned DD_SOURCE
  7453. - unsigned DD_SOURCE_AND_TARGET
  7454. - unsigned DD_TARGET
  7455. - unsigned DEBUGHUD_SHOW_ALL
  7456. - unsigned DEBUGHUD_SHOW_EVENTPROFILER
  7457. - unsigned DEBUGHUD_SHOW_MEMORY
  7458. - unsigned DEBUGHUD_SHOW_MODE
  7459. - unsigned DEBUGHUD_SHOW_NONE
  7460. - unsigned DEBUGHUD_SHOW_PROFILER
  7461. - unsigned DEBUGHUD_SHOW_STATS
  7462. - unsigned DEFAULT_LIGHTMASK
  7463. - unsigned DEFAULT_SHADOWMASK
  7464. - unsigned DEFAULT_VIEWMASK
  7465. - unsigned DEFAULT_ZONEMASK
  7466. - unsigned DRAWABLE_ANY
  7467. - unsigned DRAWABLE_GEOMETRY
  7468. - unsigned DRAWABLE_GEOMETRY2D
  7469. - unsigned DRAWABLE_LIGHT
  7470. - unsigned DRAWABLE_ZONE
  7471. - unsigned FIRST_LOCAL_ID
  7472. - unsigned FIRST_REPLICATED_ID
  7473. - int HAT_CENTER
  7474. - int HAT_DOWN
  7475. - int HAT_LEFT
  7476. - int HAT_RIGHT
  7477. - int HAT_UP
  7478. - int KEY_0
  7479. - int KEY_1
  7480. - int KEY_2
  7481. - int KEY_3
  7482. - int KEY_4
  7483. - int KEY_5
  7484. - int KEY_6
  7485. - int KEY_7
  7486. - int KEY_8
  7487. - int KEY_9
  7488. - int KEY_A
  7489. - int KEY_ALT
  7490. - int KEY_APPLICATION
  7491. - int KEY_B
  7492. - int KEY_BACKSPACE
  7493. - int KEY_C
  7494. - int KEY_CAPSLOCK
  7495. - int KEY_CTRL
  7496. - int KEY_D
  7497. - int KEY_DELETE
  7498. - int KEY_DOWN
  7499. - int KEY_E
  7500. - int KEY_END
  7501. - int KEY_ESCAPE
  7502. - int KEY_F
  7503. - int KEY_F1
  7504. - int KEY_F10
  7505. - int KEY_F11
  7506. - int KEY_F12
  7507. - int KEY_F13
  7508. - int KEY_F14
  7509. - int KEY_F15
  7510. - int KEY_F16
  7511. - int KEY_F17
  7512. - int KEY_F18
  7513. - int KEY_F19
  7514. - int KEY_F2
  7515. - int KEY_F20
  7516. - int KEY_F21
  7517. - int KEY_F22
  7518. - int KEY_F23
  7519. - int KEY_F24
  7520. - int KEY_F3
  7521. - int KEY_F4
  7522. - int KEY_F5
  7523. - int KEY_F6
  7524. - int KEY_F7
  7525. - int KEY_F8
  7526. - int KEY_F9
  7527. - int KEY_G
  7528. - int KEY_GUI
  7529. - int KEY_H
  7530. - int KEY_HOME
  7531. - int KEY_I
  7532. - int KEY_INSERT
  7533. - int KEY_J
  7534. - int KEY_K
  7535. - int KEY_KP_0
  7536. - int KEY_KP_1
  7537. - int KEY_KP_2
  7538. - int KEY_KP_3
  7539. - int KEY_KP_4
  7540. - int KEY_KP_5
  7541. - int KEY_KP_6
  7542. - int KEY_KP_7
  7543. - int KEY_KP_8
  7544. - int KEY_KP_9
  7545. - int KEY_KP_DIVIDE
  7546. - int KEY_KP_ENTER
  7547. - int KEY_KP_MINUS
  7548. - int KEY_KP_MULTIPLY
  7549. - int KEY_KP_PERIOD
  7550. - int KEY_KP_PLUS
  7551. - int KEY_L
  7552. - int KEY_LALT
  7553. - int KEY_LCTRL
  7554. - int KEY_LEFT
  7555. - int KEY_LGUI
  7556. - int KEY_LSHIFT
  7557. - int KEY_M
  7558. - int KEY_N
  7559. - int KEY_NUMLOCKCLEAR
  7560. - int KEY_O
  7561. - int KEY_P
  7562. - int KEY_PAGEDOWN
  7563. - int KEY_PAGEUP
  7564. - int KEY_PAUSE
  7565. - int KEY_PRINTSCREEN
  7566. - int KEY_Q
  7567. - int KEY_R
  7568. - int KEY_RALT
  7569. - int KEY_RCTRL
  7570. - int KEY_RETURN
  7571. - int KEY_RETURN2
  7572. - int KEY_RGUI
  7573. - int KEY_RIGHT
  7574. - int KEY_RSHIFT
  7575. - int KEY_S
  7576. - int KEY_SCROLLLOCK
  7577. - int KEY_SELECT
  7578. - int KEY_SHIFT
  7579. - int KEY_SPACE
  7580. - int KEY_T
  7581. - int KEY_TAB
  7582. - int KEY_U
  7583. - int KEY_UNKNOWN
  7584. - int KEY_UP
  7585. - int KEY_V
  7586. - int KEY_W
  7587. - int KEY_X
  7588. - int KEY_Y
  7589. - int KEY_Z
  7590. - unsigned LAST_LOCAL_ID
  7591. - unsigned LAST_REPLICATED_ID
  7592. - int LOG_DEBUG
  7593. - int LOG_ERROR
  7594. - int LOG_INFO
  7595. - int LOG_NONE
  7596. - int LOG_WARNING
  7597. - unsigned MASK_BLENDINDICES
  7598. - unsigned MASK_BLENDWEIGHTS
  7599. - unsigned MASK_COLOR
  7600. - unsigned MASK_CUBETEXCOORD1
  7601. - unsigned MASK_CUBETEXCOORD2
  7602. - unsigned MASK_INSTANCEMATRIX1
  7603. - unsigned MASK_INSTANCEMATRIX2
  7604. - unsigned MASK_INSTANCEMATRIX3
  7605. - unsigned MASK_NONE
  7606. - unsigned MASK_NORMAL
  7607. - unsigned MASK_OBJECTINDEX
  7608. - unsigned MASK_POSITION
  7609. - unsigned MASK_TANGENT
  7610. - unsigned MASK_TEXCOORD1
  7611. - unsigned MASK_TEXCOORD2
  7612. - int MAX_VERTEX_LIGHTS
  7613. - int MOUSEB_LEFT
  7614. - int MOUSEB_MIDDLE
  7615. - int MOUSEB_RIGHT
  7616. - float M_DEGTORAD
  7617. - float M_DEGTORAD_2
  7618. - float M_EPSILON
  7619. - float M_HALF_PI
  7620. - float M_INFINITY
  7621. - float M_LARGE_EPSILON
  7622. - float M_LARGE_VALUE
  7623. - float M_MAX_FOV
  7624. - int M_MAX_INT
  7625. - unsigned M_MAX_UNSIGNED
  7626. - int M_MIN_INT
  7627. - float M_MIN_NEARCLIP
  7628. - unsigned M_MIN_UNSIGNED
  7629. - float M_PI
  7630. - float M_RADTODEG
  7631. - unsigned NUM_FRUSTUM_PLANES
  7632. - unsigned NUM_FRUSTUM_VERTICES
  7633. - float PIXEL_SIZE
  7634. - int QUALITY_HIGH
  7635. - int QUALITY_LOW
  7636. - int QUALITY_MAX
  7637. - int QUALITY_MEDIUM
  7638. - int QUAL_ALT
  7639. - int QUAL_ANY
  7640. - int QUAL_CTRL
  7641. - int QUAL_SHIFT
  7642. - int SCANCODE_0
  7643. - int SCANCODE_1
  7644. - int SCANCODE_2
  7645. - int SCANCODE_3
  7646. - int SCANCODE_4
  7647. - int SCANCODE_5
  7648. - int SCANCODE_6
  7649. - int SCANCODE_7
  7650. - int SCANCODE_8
  7651. - int SCANCODE_9
  7652. - int SCANCODE_A
  7653. - int SCANCODE_AC_BACK
  7654. - int SCANCODE_AC_BOOKMARKS
  7655. - int SCANCODE_AC_FORWARD
  7656. - int SCANCODE_AC_HOME
  7657. - int SCANCODE_AC_REFRESH
  7658. - int SCANCODE_AC_SEARCH
  7659. - int SCANCODE_AC_STOP
  7660. - int SCANCODE_AGAIN
  7661. - int SCANCODE_ALT
  7662. - int SCANCODE_ALTERASE
  7663. - int SCANCODE_APOSTROPHE
  7664. - int SCANCODE_APP1
  7665. - int SCANCODE_APP2
  7666. - int SCANCODE_APPLICATION
  7667. - int SCANCODE_AUDIOMUTE
  7668. - int SCANCODE_AUDIONEXT
  7669. - int SCANCODE_AUDIOPLAY
  7670. - int SCANCODE_AUDIOPREV
  7671. - int SCANCODE_AUDIOSTOP
  7672. - int SCANCODE_B
  7673. - int SCANCODE_BACKSLASH
  7674. - int SCANCODE_BACKSPACE
  7675. - int SCANCODE_BRIGHTNESSDOWN
  7676. - int SCANCODE_BRIGHTNESSUP
  7677. - int SCANCODE_C
  7678. - int SCANCODE_CALCULATOR
  7679. - int SCANCODE_CANCEL
  7680. - int SCANCODE_CAPSLOCK
  7681. - int SCANCODE_CLEAR
  7682. - int SCANCODE_CLEARAGAIN
  7683. - int SCANCODE_COMMA
  7684. - int SCANCODE_COMPUTER
  7685. - int SCANCODE_COPY
  7686. - int SCANCODE_CRSEL
  7687. - int SCANCODE_CTRL
  7688. - int SCANCODE_CURRENCYSUBUNIT
  7689. - int SCANCODE_CURRENCYUNIT
  7690. - int SCANCODE_CUT
  7691. - int SCANCODE_D
  7692. - int SCANCODE_DECIMALSEPARATOR
  7693. - int SCANCODE_DELETE
  7694. - int SCANCODE_DISPLAYSWITCH
  7695. - int SCANCODE_DOWN
  7696. - int SCANCODE_E
  7697. - int SCANCODE_EJECT
  7698. - int SCANCODE_END
  7699. - int SCANCODE_EQUALS
  7700. - int SCANCODE_ESCAPE
  7701. - int SCANCODE_EXECUTE
  7702. - int SCANCODE_EXSEL
  7703. - int SCANCODE_F
  7704. - int SCANCODE_F1
  7705. - int SCANCODE_F10
  7706. - int SCANCODE_F11
  7707. - int SCANCODE_F12
  7708. - int SCANCODE_F13
  7709. - int SCANCODE_F14
  7710. - int SCANCODE_F15
  7711. - int SCANCODE_F16
  7712. - int SCANCODE_F17
  7713. - int SCANCODE_F18
  7714. - int SCANCODE_F19
  7715. - int SCANCODE_F2
  7716. - int SCANCODE_F20
  7717. - int SCANCODE_F21
  7718. - int SCANCODE_F22
  7719. - int SCANCODE_F23
  7720. - int SCANCODE_F24
  7721. - int SCANCODE_F3
  7722. - int SCANCODE_F4
  7723. - int SCANCODE_F5
  7724. - int SCANCODE_F6
  7725. - int SCANCODE_F7
  7726. - int SCANCODE_F8
  7727. - int SCANCODE_F9
  7728. - int SCANCODE_FIND
  7729. - int SCANCODE_G
  7730. - int SCANCODE_GRAVE
  7731. - int SCANCODE_GUI
  7732. - int SCANCODE_H
  7733. - int SCANCODE_HELP
  7734. - int SCANCODE_HOME
  7735. - int SCANCODE_I
  7736. - int SCANCODE_INSERT
  7737. - int SCANCODE_INTERNATIONAL1
  7738. - int SCANCODE_INTERNATIONAL2
  7739. - int SCANCODE_INTERNATIONAL3
  7740. - int SCANCODE_INTERNATIONAL4
  7741. - int SCANCODE_INTERNATIONAL5
  7742. - int SCANCODE_INTERNATIONAL6
  7743. - int SCANCODE_INTERNATIONAL7
  7744. - int SCANCODE_INTERNATIONAL8
  7745. - int SCANCODE_INTERNATIONAL9
  7746. - int SCANCODE_J
  7747. - int SCANCODE_K
  7748. - int SCANCODE_KBDILLUMDOWN
  7749. - int SCANCODE_KBDILLUMTOGGLE
  7750. - int SCANCODE_KBDILLUMUP
  7751. - int SCANCODE_KP_0
  7752. - int SCANCODE_KP_00
  7753. - int SCANCODE_KP_000
  7754. - int SCANCODE_KP_1
  7755. - int SCANCODE_KP_2
  7756. - int SCANCODE_KP_3
  7757. - int SCANCODE_KP_4
  7758. - int SCANCODE_KP_5
  7759. - int SCANCODE_KP_6
  7760. - int SCANCODE_KP_7
  7761. - int SCANCODE_KP_8
  7762. - int SCANCODE_KP_9
  7763. - int SCANCODE_KP_A
  7764. - int SCANCODE_KP_AMPERSAND
  7765. - int SCANCODE_KP_AT
  7766. - int SCANCODE_KP_B
  7767. - int SCANCODE_KP_BACKSPACE
  7768. - int SCANCODE_KP_BINARY
  7769. - int SCANCODE_KP_C
  7770. - int SCANCODE_KP_CLEAR
  7771. - int SCANCODE_KP_CLEARENTRY
  7772. - int SCANCODE_KP_COLON
  7773. - int SCANCODE_KP_COMMA
  7774. - int SCANCODE_KP_D
  7775. - int SCANCODE_KP_DBLAMPERSAND
  7776. - int SCANCODE_KP_DBLVERTICALBAR
  7777. - int SCANCODE_KP_DECIMAL
  7778. - int SCANCODE_KP_DIVIDE
  7779. - int SCANCODE_KP_E
  7780. - int SCANCODE_KP_ENTER
  7781. - int SCANCODE_KP_EQUALS
  7782. - int SCANCODE_KP_EQUALSAS400
  7783. - int SCANCODE_KP_EXCLAM
  7784. - int SCANCODE_KP_F
  7785. - int SCANCODE_KP_GREATER
  7786. - int SCANCODE_KP_HASH
  7787. - int SCANCODE_KP_HEXADECIMAL
  7788. - int SCANCODE_KP_LEFTBRACE
  7789. - int SCANCODE_KP_LEFTPAREN
  7790. - int SCANCODE_KP_LESS
  7791. - int SCANCODE_KP_MEMADD
  7792. - int SCANCODE_KP_MEMCLEAR
  7793. - int SCANCODE_KP_MEMDIVIDE
  7794. - int SCANCODE_KP_MEMMULTIPLY
  7795. - int SCANCODE_KP_MEMRECALL
  7796. - int SCANCODE_KP_MEMSTORE
  7797. - int SCANCODE_KP_MEMSUBTRACT
  7798. - int SCANCODE_KP_MINUS
  7799. - int SCANCODE_KP_MULTIPLY
  7800. - int SCANCODE_KP_OCTAL
  7801. - int SCANCODE_KP_PERCENT
  7802. - int SCANCODE_KP_PERIOD
  7803. - int SCANCODE_KP_PLUS
  7804. - int SCANCODE_KP_PLUSMINUS
  7805. - int SCANCODE_KP_POWER
  7806. - int SCANCODE_KP_RIGHTBRACE
  7807. - int SCANCODE_KP_RIGHTPAREN
  7808. - int SCANCODE_KP_SPACE
  7809. - int SCANCODE_KP_TAB
  7810. - int SCANCODE_KP_VERTICALBAR
  7811. - int SCANCODE_KP_XOR
  7812. - int SCANCODE_L
  7813. - int SCANCODE_LALT
  7814. - int SCANCODE_LANG1
  7815. - int SCANCODE_LANG2
  7816. - int SCANCODE_LANG3
  7817. - int SCANCODE_LANG4
  7818. - int SCANCODE_LANG5
  7819. - int SCANCODE_LANG6
  7820. - int SCANCODE_LANG7
  7821. - int SCANCODE_LANG8
  7822. - int SCANCODE_LANG9
  7823. - int SCANCODE_LCTRL
  7824. - int SCANCODE_LEFT
  7825. - int SCANCODE_LEFTBRACKET
  7826. - int SCANCODE_LGUI
  7827. - int SCANCODE_LSHIFT
  7828. - int SCANCODE_M
  7829. - int SCANCODE_MAIL
  7830. - int SCANCODE_MEDIASELECT
  7831. - int SCANCODE_MENU
  7832. - int SCANCODE_MINUS
  7833. - int SCANCODE_MODE
  7834. - int SCANCODE_MUTE
  7835. - int SCANCODE_N
  7836. - int SCANCODE_NONUSBACKSLASH
  7837. - int SCANCODE_NONUSHASH
  7838. - int SCANCODE_NUMLOCKCLEAR
  7839. - int SCANCODE_O
  7840. - int SCANCODE_OPER
  7841. - int SCANCODE_OUT
  7842. - int SCANCODE_P
  7843. - int SCANCODE_PAGEDOWN
  7844. - int SCANCODE_PAGEUP
  7845. - int SCANCODE_PASTE
  7846. - int SCANCODE_PAUSE
  7847. - int SCANCODE_PERIOD
  7848. - int SCANCODE_POWER
  7849. - int SCANCODE_PRINTSCREEN
  7850. - int SCANCODE_PRIOR
  7851. - int SCANCODE_Q
  7852. - int SCANCODE_R
  7853. - int SCANCODE_RALT
  7854. - int SCANCODE_RCTRL
  7855. - int SCANCODE_RETURN
  7856. - int SCANCODE_RETURN2
  7857. - int SCANCODE_RGUI
  7858. - int SCANCODE_RIGHT
  7859. - int SCANCODE_RIGHTBRACKET
  7860. - int SCANCODE_RSHIFT
  7861. - int SCANCODE_S
  7862. - int SCANCODE_SCROLLLOCK
  7863. - int SCANCODE_SELECT
  7864. - int SCANCODE_SEMICOLON
  7865. - int SCANCODE_SEPARATOR
  7866. - int SCANCODE_SHIFT
  7867. - int SCANCODE_SLASH
  7868. - int SCANCODE_SLEEP
  7869. - int SCANCODE_SPACE
  7870. - int SCANCODE_STOP
  7871. - int SCANCODE_SYSREQ
  7872. - int SCANCODE_T
  7873. - int SCANCODE_TAB
  7874. - int SCANCODE_THOUSANDSSEPARATOR
  7875. - int SCANCODE_U
  7876. - int SCANCODE_UNDO
  7877. - int SCANCODE_UNKNOWN
  7878. - int SCANCODE_UP
  7879. - int SCANCODE_V
  7880. - int SCANCODE_VOLUMEDOWN
  7881. - int SCANCODE_VOLUMEUP
  7882. - int SCANCODE_W
  7883. - int SCANCODE_WWW
  7884. - int SCANCODE_X
  7885. - int SCANCODE_Y
  7886. - int SCANCODE_Z
  7887. - unsigned SCAN_DIRS
  7888. - unsigned SCAN_FILES
  7889. - unsigned SCAN_HIDDEN
  7890. - String SOUND_AMBIENT
  7891. - String SOUND_EFFECT
  7892. - String SOUND_MASTER
  7893. - String SOUND_MUSIC
  7894. - String SOUND_VOICE
  7895. - unsigned VO_DISABLE_OCCLUSION
  7896. - unsigned VO_DISABLE_SHADOWS
  7897. - unsigned VO_LOW_MATERIAL_QUALITY
  7898. - unsigned VO_NONE
  7899. */
  7900. }