LuaScriptAPI.dox 253 KB

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