LuaScriptAPI.dox 220 KB

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