LuaScriptAPI.dox 266 KB

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