LuaScriptAPI.dox 223 KB

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