LuaScriptAPI.dox 257 KB

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