LuaScriptAPI.dox 223 KB

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