LuaScriptAPI.dox 251 KB

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