LuaScriptAPI.dox 190 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903
  1. namespace Urho3D
  2. {
  3. /**
  4. \page LuaScriptAPI Lua Scripting API
  5. \section LuaScriptAPI_Classes Classes
  6. ### Animatable : Serializable
  7. Methods:
  8. - void SetAnimationEnabled(bool enable)
  9. - void SetObjectAnimation(ObjectAnimation* objectAnimation)
  10. - void SetAttributeAnimation(const String name, AttributeAnimation* attributeAnimation, WrapMode wrapMode = WM_LOOP, float speed = 1.0f)
  11. - void SetAttributeAnimationWrapMode(const String name, WrapMode wrapMode)
  12. - void SetAttributeAnimationSpeed(const String name, float speed)
  13. - bool GetAnimationEnabled() const
  14. - ObjectAnimation* GetObjectAnimation() const
  15. - AttributeAnimation* GetAttributeAnimation(const String name) const
  16. - WrapMode GetAttributeAnimationWrapMode(const String name) const
  17. - float GetAttributeAnimationSpeed(const String name) const
  18. Properties:
  19. - bool animationEnabled
  20. - ObjectAnimation* objectAnimation
  21. ### AnimatedModel : StaticModel
  22. Methods:
  23. - void SetModel(Model* model)
  24. - AnimationState* AddAnimationState(Animation* animation)
  25. - void RemoveAnimationState(Animation* animation)
  26. - void RemoveAnimationState(const String animationName)
  27. - void RemoveAnimationState(StringHash animationNameHash)
  28. - void RemoveAnimationState(AnimationState* state)
  29. - void RemoveAnimationState(unsigned index)
  30. - void RemoveAllAnimationStates()
  31. - void SetAnimationLodBias(float bias)
  32. - void SetUpdateInvisible(bool enable)
  33. - void SetMorphWeight(const String name, float weight)
  34. - void SetMorphWeight(StringHash nameHash, float weight)
  35. - void SetMorphWeight(unsigned index, float weight)
  36. - void ResetMorphWeights()
  37. - Skeleton& GetSkeleton()
  38. - unsigned GetNumAnimationStates() const
  39. - AnimationState* GetAnimationState(Animation* animation) const
  40. - AnimationState* GetAnimationState(const String animationName) const
  41. - AnimationState* GetAnimationState(const StringHash animationNameHash) const
  42. - AnimationState* GetAnimationState(unsigned index) const
  43. - float GetAnimationLodBias() const
  44. - bool GetUpdateInvisible() const
  45. - unsigned GetNumMorphs() const
  46. - float GetMorphWeight(const String name) const
  47. - float GetMorphWeight(StringHash nameHash) const
  48. - float GetMorphWeight(unsigned index) const
  49. - bool IsMaster() const
  50. Properties:
  51. - Model* model
  52. - Skeleton& skeleton (readonly)
  53. - unsigned numAnimationStates (readonly)
  54. - float animationLodBias
  55. - bool updateInvisible
  56. - unsigned numMorphs (readonly)
  57. - bool master (readonly)
  58. ### AnimatedSprite2D : StaticSprite2D
  59. Methods:
  60. - void SetSpeed(float speed)
  61. - void SetCycleMode(CycleMode cycleMode)
  62. - void SetAnimation(Animation2D* animation)
  63. - float GetSpeed() const
  64. - CycleMode GetCycleMode() const
  65. - Animation2D* GetAnimation() const
  66. Properties:
  67. - float speed
  68. - CycleMode cycleMode
  69. - Animation2D* animation
  70. ### Animation : Resource
  71. Methods:
  72. - const String GetAnimationName() const
  73. - StringHash GetAnimationNameHash() const
  74. - float GetLength() const
  75. - unsigned GetNumTracks() const
  76. - const AnimationTrack* GetTrack(const String name) const
  77. - const AnimationTrack* GetTrack(StringHash nameHash) const
  78. - const AnimationTrack* GetTrack(unsigned index) const
  79. - unsigned GetNumTriggers() const
  80. Properties:
  81. - String animationName (readonly)
  82. - StringHash animationNameHash (readonly)
  83. - float length (readonly)
  84. - unsigned numTracks (readonly)
  85. - unsigned numTriggers (readonly)
  86. ### Animation2D : Resource
  87. Methods:
  88. - float GetTotalTime() const
  89. - unsigned GetNumFrames() const
  90. - Sprite2D* GetFrameSprite(unsigned index) const
  91. - Sprite2D* GetFrameSpriteByTime(float time) const
  92. Properties:
  93. - float totalTime (readonly)
  94. - unsigned numFrames (readonly)
  95. ### AnimationControl
  96. Methods:
  97. - AnimationControl() (GC)
  98. - AnimationControl* new()
  99. - void delete()
  100. Properties:
  101. - StringHash hash_
  102. - float speed_
  103. - float targetWeight_
  104. - float fadeTime_
  105. - float autoFadeTime_
  106. - float setTimeTtl_
  107. - float setWeightTtl_
  108. - short setTime_
  109. - char setWeight_
  110. - char setTimeRev_
  111. - char setWeightRev_
  112. ### AnimationController : Component
  113. Methods:
  114. - bool Play(const String name, char layer, bool looped, float fadeInTime = 0.0f)
  115. - bool PlayExclusive(const String name, char layer, bool looped, float fadeTime = 0.0f)
  116. - bool Stop(const String name, float fadeOutTime = 0.0f)
  117. - void StopLayer(char layer, float fadeOutTime = 0.0f)
  118. - void StopAll(float fadeTime = 0.0f)
  119. - bool Fade(const String name, float targetWeight, float fadeTime)
  120. - bool FadeOthers(const String name, float targetWeight, float fadeTime)
  121. - bool SetLayer(const String name, char layer)
  122. - bool SetStartBone(const String name, const String startBoneName)
  123. - bool SetTime(const String name, float time)
  124. - bool SetWeight(const String name, float weight)
  125. - bool SetLooped(const String name, bool enable)
  126. - bool SetSpeed(const String name, float speed)
  127. - bool SetAutoFade(const String name, float fadeOutTime)
  128. - bool IsPlaying(const String name) const
  129. - bool IsFadingIn(const String name) const
  130. - bool IsFadingOut(const String name) const
  131. - char GetLayer(const String name) const
  132. - Bone* GetStartBone(const String name) const
  133. - const String GetStartBoneName(const String name) const
  134. - float GetTime(const String name) const
  135. - float GetWeight(const String name) const
  136. - bool IsLooped(const String name) const
  137. - float GetLength(const String name) const
  138. - float GetSpeed(const String name) const
  139. - float GetFadeTarget(const String name) const
  140. - float GetFadeTime(const String name) const
  141. - float GetAutoFade(const String name) const
  142. - AnimationState* GetAnimationState(const String name) const
  143. - AnimationState* GetAnimationState(StringHash nameHash) const
  144. ### AnimationKeyFrame
  145. Properties:
  146. - float time
  147. - Vector3 position
  148. - Quaternion rotation
  149. - Vector3 scale
  150. ### AnimationState
  151. Methods:
  152. - AnimationState(AnimatedModel* model, Animation* animation) (GC)
  153. - AnimationState* new(AnimatedModel* model, Animation* animation)
  154. - AnimationState(Node* node, Animation* animation) (GC)
  155. - AnimationState* new(Node* node, Animation* animation)
  156. - void delete()
  157. - void SetStartBone(Bone* bone)
  158. - void SetLooped(bool looped)
  159. - void SetWeight(float weight)
  160. - void SetTime(float time)
  161. - void SetBoneWeight(const String name, float weight, bool recursive = false)
  162. - void SetBoneWeight(StringHash nameHash, float weight, bool recursive = false)
  163. - void SetBoneWeight(unsigned index, float weight, bool recursive = false)
  164. - void AddWeight(float delta)
  165. - void AddTime(float delta)
  166. - void SetLayer(char layer)
  167. - Animation* GetAnimation() const
  168. - Bone* GetStartBone() const
  169. - float GetBoneWeight(const String name) const
  170. - float GetBoneWeight(StringHash nameHash) const
  171. - float GetBoneWeight(unsigned index) const
  172. - unsigned GetTrackIndex(const String name) const
  173. - unsigned GetTrackIndex(StringHash nameHash) const
  174. - bool IsEnabled() const
  175. - bool IsLooped() const
  176. - float GetWeight() const
  177. - float GetTime() const
  178. - float GetLength() const
  179. - char GetLayer() const
  180. Properties:
  181. - Animation* animation (readonly)
  182. - Bone* startBone
  183. - bool enabled (readonly)
  184. - bool looped
  185. - float weight
  186. - float time
  187. - float length (readonly)
  188. - char layer
  189. ### AttributeAnimation : Resource
  190. Methods:
  191. - AttributeAnimation() (GC)
  192. - AttributeAnimation* new()
  193. - void delete()
  194. - void SetInterpolationMethod(InterpMethod method)
  195. - void SetSplineTension(float tension)
  196. - void SetValueType(VariantType valueType)
  197. - bool SetKeyFrame(float time, const Variant& value)
  198. - void SetEventFrame(float time, const StringHash& eventType)
  199. - void SetEventFrame(float time, const StringHash& eventType, const VariantMap& eventData)
  200. - InterpMethod GetInterpolationMethod() const
  201. - float GetSplineTension() const
  202. - VariantType GetValueType() const
  203. Properties:
  204. - InterpMethod interpolationMethod
  205. - float splineTension
  206. - VariantType valueType
  207. ### Audio : Object
  208. Methods:
  209. - bool SetMode(int bufferLengthMSec, int mixRate, bool stereo, bool interpolation = true)
  210. - bool Play()
  211. - void Stop()
  212. - void SetMasterGain(SoundType type, float gain)
  213. - void SetListener(SoundListener* listener)
  214. - void StopSound(Sound* sound)
  215. - unsigned GetSampleSize() const
  216. - int GetMixRate() const
  217. - bool GetInterpolation() const
  218. - bool IsStereo() const
  219. - bool IsPlaying() const
  220. - bool IsInitialized() const
  221. - float GetMasterGain(SoundType type) const
  222. - SoundListener* GetListener() const
  223. - const PODVector<SoundSource*>& GetSoundSources() const
  224. - void AddSoundSource(SoundSource* soundSource)
  225. - void RemoveSoundSource(SoundSource* soundSource)
  226. - float GetSoundSourceMasterGain(SoundType type) const
  227. - void MixOutput(void* dest, unsigned samples)
  228. Properties:
  229. - unsigned sampleSize (readonly)
  230. - int mixRate (readonly)
  231. - bool interpolation (readonly)
  232. - bool stereo (readonly)
  233. - bool playing (readonly)
  234. - bool initialized (readonly)
  235. - SoundListener* listener
  236. ### BiasParameters
  237. Methods:
  238. - BiasParameters() (GC)
  239. - BiasParameters* new()
  240. - BiasParameters(float constantBias, float slopeScaledBias) (GC)
  241. - BiasParameters* new(float constantBias, float slopeScaledBias)
  242. - void delete()
  243. ### Billboard
  244. Properties:
  245. - Vector3 position
  246. - Vector2 size
  247. - Rect uv
  248. - Color color
  249. - float rotation
  250. - bool enabled
  251. - float sortDistance
  252. ### BillboardSet : Drawable
  253. Methods:
  254. - void SetMaterial(Material* material)
  255. - void SetNumBillboards(unsigned num)
  256. - void SetRelative(bool enable)
  257. - void SetScaled(bool enable)
  258. - void SetSorted(bool enable)
  259. - void SetFaceCamera(bool enable)
  260. - void SetAnimationLodBias(float bias)
  261. - void Commit()
  262. - Material* GetMaterial() const
  263. - unsigned GetNumBillboards() const
  264. - Billboard* GetBillboard(unsigned index)
  265. - bool IsRelative() const
  266. - bool IsScaled() const
  267. - bool IsSorted() const
  268. - bool GetFaceCamera() const
  269. - float GetAnimationLodBias() const
  270. Properties:
  271. - Material* material
  272. - unsigned numBillboards
  273. - bool relative
  274. - bool scaled
  275. - bool sorted
  276. - bool faceCamera
  277. - float animationLodBias
  278. ### Bone
  279. Methods:
  280. - Bone() (GC)
  281. - Bone* new()
  282. - void delete()
  283. Properties:
  284. - String name
  285. - StringHash nameHash
  286. - unsigned parentIndex
  287. - Vector3 initialPosition
  288. - Quaternion initialRotation
  289. - Vector3 initialScale
  290. - Matrix3x4 offsetMatrix
  291. - bool animated
  292. - char collisionMask
  293. - float radius
  294. - BoundingBox boundingBox
  295. - Node* node
  296. ### BorderImage : UIElement
  297. Methods:
  298. - BorderImage() (GC)
  299. - BorderImage* new()
  300. - void delete()
  301. - void SetTexture(Texture* texture)
  302. - void SetImageRect(const IntRect& rect)
  303. - void SetFullImageRect()
  304. - void SetBorder(const IntRect& rect)
  305. - void SetImageBorder(const IntRect& rect)
  306. - void SetHoverOffset(const IntVector2& offset)
  307. - void SetHoverOffset(int x, int y)
  308. - void SetBlendMode(BlendMode mode)
  309. - void SetTiled(bool enable)
  310. - Texture* GetTexture() const
  311. - const IntRect& GetImageRect() const
  312. - const IntRect& GetBorder() const
  313. - const IntRect& GetImageBorder() const
  314. - const IntVector2& GetHoverOffset() const
  315. - BlendMode GetBlendMode() const
  316. - bool IsTiled() const
  317. Properties:
  318. - Texture* texture
  319. - IntRect& imageRect
  320. - IntRect& border
  321. - IntRect& imageBorder
  322. - IntVector2& hoverOffset
  323. - BlendMode blendMode
  324. - bool tiled
  325. ### BoundingBox
  326. Methods:
  327. - BoundingBox() (GC)
  328. - BoundingBox* new()
  329. - BoundingBox(const BoundingBox& box) (GC)
  330. - BoundingBox* new(const BoundingBox& box)
  331. - BoundingBox(const Rect& rect) (GC)
  332. - BoundingBox* new(const Rect& rect)
  333. - BoundingBox(const Vector3& min, const Vector3& max) (GC)
  334. - BoundingBox* new(const Vector3& min, const Vector3& max)
  335. - BoundingBox(float min, float max) (GC)
  336. - BoundingBox* new(float min, float max)
  337. - BoundingBox(const Frustum& frustum) (GC)
  338. - BoundingBox* new(const Frustum& frustum)
  339. - BoundingBox(const Polyhedron& poly) (GC)
  340. - BoundingBox* new(const Polyhedron& poly)
  341. - BoundingBox(const Sphere& sphere) (GC)
  342. - BoundingBox* new(const Sphere& sphere)
  343. - void delete()
  344. - bool operator==(const BoundingBox& rhs) const
  345. - void Define(const BoundingBox& box)
  346. - void Define(const Rect& rect)
  347. - void Define(const Vector3& min, const Vector3& max)
  348. - void Define(float min, float max)
  349. - void Define(const Vector3& point)
  350. - void Define(const Frustum& frustum)
  351. - void Define(const Polyhedron& poly)
  352. - void Define(const Sphere& sphere)
  353. - void Merge(const Vector3& point)
  354. - void Merge(const BoundingBox& box)
  355. - void Merge(const Frustum& frustum)
  356. - void Merge(const Polyhedron& poly)
  357. - void Merge(const Sphere& sphere)
  358. - void Clip(const BoundingBox& box)
  359. - void Transform(const Matrix3& transform)
  360. - void Transform(const Matrix3x4& transform)
  361. - void Clear()
  362. - Vector3 Center() const
  363. - Vector3 Size() const
  364. - Vector3 HalfSize() const
  365. - BoundingBox Transformed(const Matrix3& transform) const
  366. - BoundingBox Transformed(const Matrix3x4& transform) const
  367. - Rect Projected(const Matrix4& projection) const
  368. - Intersection IsInside(const Vector3& point) const
  369. - Intersection IsInside(const BoundingBox& box) const
  370. - Intersection IsInsideFast(const BoundingBox& box) const
  371. - Intersection IsInside(const Sphere& sphere) const
  372. - Intersection IsInsideFast(const Sphere& sphere) const
  373. - String ToString() const
  374. Properties:
  375. - Vector3 min
  376. - Vector3 max
  377. - bool defined
  378. - Vector3 center (readonly)
  379. - Vector3 size (readonly)
  380. - Vector3 halfSize (readonly)
  381. ### Button : BorderImage
  382. Methods:
  383. - Button() (GC)
  384. - Button* new()
  385. - void delete()
  386. - void SetPressedOffset(const IntVector2& offset)
  387. - void SetPressedOffset(int x, int y)
  388. - void SetPressedChildOffset(const IntVector2& offset)
  389. - void SetPressedChildOffset(int x, int y)
  390. - void SetRepeat(float delay, float rate)
  391. - void SetRepeatDelay(float delay)
  392. - void SetRepeatRate(float rate)
  393. - const IntVector2& GetPressedOffset() const
  394. - const IntVector2& GetPressedChildOffset() const
  395. - float GetRepeatDelay() const
  396. - float GetRepeatRate() const
  397. - bool IsPressed() const
  398. Properties:
  399. - IntVector2& pressedOffset
  400. - IntVector2& pressedChildOffset
  401. - float repeatDelay
  402. - float repeatRate
  403. - bool pressed (readonly)
  404. ### Camera : Component
  405. Methods:
  406. - void SetNearClip(float nearClip)
  407. - void SetFarClip(float farClip)
  408. - void SetFov(float fov)
  409. - void SetOrthoSize(float orthoSize)
  410. - void SetOrthoSize(const Vector2& orthoSize)
  411. - void SetAspectRatio(float aspectRatio)
  412. - void SetFillMode(FillMode mode)
  413. - void SetZoom(float zoom)
  414. - void SetLodBias(float bias)
  415. - void SetViewMask(unsigned mask)
  416. - void SetViewOverrideFlags(unsigned flags)
  417. - void SetOrthographic(bool enable)
  418. - void SetAutoAspectRatio(bool enable)
  419. - void SetProjectionOffset(const Vector2& offset)
  420. - void SetUseReflection(bool enable)
  421. - void SetReflectionPlane(const Plane& reflectionPlane)
  422. - void SetUseClipping(bool enable)
  423. - void SetClipPlane(const Plane& clipPlane)
  424. - float GetFarClip() const
  425. - float GetNearClip() const
  426. - float GetFov() const
  427. - float GetOrthoSize() const
  428. - float GetAspectRatio() const
  429. - float GetZoom() const
  430. - float GetLodBias() const
  431. - unsigned GetViewMask() const
  432. - unsigned GetViewOverrideFlags() const
  433. - FillMode GetFillMode() const
  434. - bool IsOrthographic() const
  435. - bool GetAutoAspectRatio() const
  436. - const Frustum& GetFrustum() const
  437. - const Matrix4& GetProjection() const
  438. - const Matrix3x4& GetView() const
  439. - void GetFrustumSize(Vector3& near, Vector3& far) const
  440. - float GetHalfViewSize() const
  441. - Frustum GetSplitFrustum(float nearClip, float farClip) const
  442. - Frustum GetViewSpaceFrustum() const
  443. - Frustum GetViewSpaceSplitFrustum(float nearClip, float farClip) const
  444. - Ray GetScreenRay(float x, float y) const
  445. - Vector2 WorldToScreenPoint(const Vector3& worldPos) const
  446. - Vector3 ScreenToWorldPoint(const Vector3& screenPos) const
  447. - const Vector2& GetProjectionOffset() const
  448. - bool GetUseReflection() const
  449. - const Plane& GetReflectionPlane() const
  450. - bool GetUseClipping() const
  451. - const Plane& GetClipPlane() const
  452. - float GetDistance(const Vector3& worldPos) const
  453. - float GetDistanceSquared(const Vector3& worldPos) const
  454. - float GetLodDistance(float distance, float scale, float bias) const
  455. - bool IsProjectionValid() const
  456. - Matrix3x4 GetEffectiveWorldTransform() const
  457. Properties:
  458. - float farClip
  459. - float nearClip
  460. - float fov
  461. - float orthoSize
  462. - float aspectRatio
  463. - float zoom
  464. - float lodBias
  465. - unsigned viewMask
  466. - unsigned viewOverrideFlags
  467. - FillMode fillMode
  468. - bool orthographic
  469. - bool autoAspectRatio
  470. - Frustum& frustum (readonly)
  471. - Matrix4& projection (readonly)
  472. - Matrix3x4& view (readonly)
  473. - float halfViewSize (readonly)
  474. - Frustum viewSpaceFrustum (readonly)
  475. - Vector2& projectionOffset
  476. - bool useReflection
  477. - Plane& reflectionPlane
  478. - bool useClipping
  479. - Plane& clipPlane
  480. - bool projectionValid (readonly)
  481. - Matrix3x4 effectiveWorldTransform (readonly)
  482. ### CascadeParameters
  483. Methods:
  484. - CascadeParameters() (GC)
  485. - CascadeParameters* new()
  486. - CascadeParameters(float split1, float split2, float split3, float split4, float fadeStart, float biasAutoAdjust = 1.0f) (GC)
  487. - CascadeParameters* new(float split1, float split2, float split3, float split4, float fadeStart, float biasAutoAdjust = 1.0f)
  488. - void delete()
  489. ### CheckBox : BorderImage
  490. Methods:
  491. - CheckBox() (GC)
  492. - CheckBox* new()
  493. - void delete()
  494. - void SetChecked(bool enable)
  495. - void SetCheckedOffset(const IntVector2& rect)
  496. - void SetCheckedOffset(int x, int y)
  497. - bool IsChecked() const
  498. - const IntVector2& GetCheckedOffset() const
  499. Properties:
  500. - bool checked
  501. - IntVector2& checkedOffset
  502. ### CollisionBox2D : CollisionShape2D
  503. Methods:
  504. - void SetSize(const Vector2& size)
  505. - void SetSize(float width, float height)
  506. - void SetCenter(const Vector2& center)
  507. - void SetCenter(float x, float y)
  508. - void SetAngle(float angle)
  509. - const Vector2& GetSize() const
  510. - const Vector2& GetCenter() const
  511. - float GetAngle() const
  512. Properties:
  513. - Vector2& size
  514. - Vector2& center
  515. - float angle
  516. ### CollisionChain2D : CollisionShape2D
  517. Methods:
  518. - void SetLoop(bool loop)
  519. - void SetVertexCount(unsigned count)
  520. - void SetVertex(unsigned index, const Vector2& vertex)
  521. - void SetVertices(const PODVector<Vector2>& vertices)
  522. - bool GetLoop() const
  523. - unsigned GetVertexCount() const
  524. - const Vector2& GetVertex(unsigned index) const
  525. Properties:
  526. - bool loop
  527. - unsigned vertexCount
  528. ### CollisionCircle2D : CollisionShape2D
  529. Methods:
  530. - void SetRadius(float radius)
  531. - void SetCenter(const Vector2& center)
  532. - void SetCenter(float x, float y)
  533. - float GetRadius() const
  534. - const Vector2& GetCenter() const
  535. Properties:
  536. - float radius
  537. - Vector2& center
  538. ### CollisionEdge2D : CollisionShape2D
  539. Methods:
  540. - void SetVertex1(const Vector2& vertex)
  541. - void SetVertex2(const Vector2& vertex)
  542. - void SetVertices(const Vector2& vertex1, const Vector2& vertex2)
  543. - const Vector2& GetVertex1() const
  544. - const Vector2& GetVertex2() const
  545. Properties:
  546. - Vector2& vertex1
  547. - Vector2& vertex2
  548. ### CollisionPolygon2D : CollisionShape2D
  549. Methods:
  550. - void SetVertexCount(unsigned count)
  551. - void SetVertex(unsigned index, const Vector2& vertex)
  552. - void SetVertices(const PODVector<Vector2>& vertices)
  553. - unsigned GetVertexCount() const
  554. - const Vector2& GetVertex(unsigned index) const
  555. Properties:
  556. - unsigned vertexCount
  557. ### CollisionShape : Component
  558. Methods:
  559. - void SetBox(const Vector3& size)
  560. - void SetBox(const Vector3& size, const Vector3& position)
  561. - void SetBox(const Vector3& size, const Vector3& position, const Quaternion& rotation)
  562. - void SetSphere(float diameter)
  563. - void SetSphere(float diameter, const Vector3& position)
  564. - void SetSphere(float diameter, const Vector3& position, const Quaternion& rotation)
  565. - void SetStaticPlane()
  566. - void SetStaticPlane(const Vector3& position)
  567. - void SetStaticPlane(const Vector3& position, const Quaternion& rotation)
  568. - void SetCylinder(float diameter, float height)
  569. - void SetCylinder(float diameter, float height, const Vector3& position)
  570. - void SetCylinder(float diameter, float height, const Vector3& position, const Quaternion& rotation)
  571. - void SetCapsule(float diameter, float height)
  572. - void SetCapsule(float diameter, float height, const Vector3& position)
  573. - void SetCapsule(float diameter, float height, const Vector3& position, const Quaternion& rotation)
  574. - void SetCone(float diameter, float height)
  575. - void SetCone(float diameter, float height, const Vector3& position)
  576. - void SetCone(float diameter, float height, const Vector3& position, const Quaternion& rotation)
  577. - void SetTriangleMesh(Model* model, unsigned lodLevel = 0)
  578. - void SetTriangleMesh(Model* model, unsigned lodLevel, const Vector3& scale)
  579. - void SetTriangleMesh(Model* model, unsigned lodLevel, const Vector3& scale, const Vector3& position)
  580. - void SetTriangleMesh(Model* model, unsigned lodLevel, const Vector3& scale, const Vector3& position, const Quaternion& rotation)
  581. - void SetConvexHull(Model* model, unsigned lodLevel = 0)
  582. - void SetConvexHull(Model* model, unsigned lodLevel, const Vector3& scale)
  583. - void SetConvexHull(Model* model, unsigned lodLevel, const Vector3& scale, const Vector3& position)
  584. - void SetConvexHull(Model* model, unsigned lodLevel, const Vector3& scale, const Vector3& position, const Quaternion& rotation)
  585. - void SetTerrain()
  586. - void SetShapeType(ShapeType type)
  587. - void SetSize(const Vector3& size)
  588. - void SetPosition(const Vector3& position)
  589. - void SetRotation(const Quaternion& rotation)
  590. - void SetTransform(const Vector3& position, const Quaternion& rotation)
  591. - void SetMargin(float margin)
  592. - void SetModel(Model* model)
  593. - void SetLodLevel(unsigned lodLevel)
  594. - PhysicsWorld* GetPhysicsWorld() const
  595. - ShapeType GetShapeType() const
  596. - const Vector3& GetSize() const
  597. - const Vector3& GetPosition() const
  598. - const Quaternion& GetRotation() const
  599. - float GetMargin() const
  600. - Model* GetModel() const
  601. - unsigned GetLodLevel() const
  602. - BoundingBox GetWorldBoundingBox() const
  603. Properties:
  604. - PhysicsWorld* physicsWorld (readonly)
  605. - ShapeType shapeType
  606. - Vector3& size
  607. - Vector3& position
  608. - Quaternion& rotation
  609. - float margin
  610. - Model* model
  611. - unsigned lodLevel
  612. - BoundingBox worldBoundingBox (readonly)
  613. - ResourceRef modelAttr
  614. ### CollisionShape2D : Component
  615. Methods:
  616. - void SetTrigger(bool trigger)
  617. - void SetCategoryBits(int categoryBits)
  618. - void SetMaskBits(int maskBits)
  619. - void SetGroupIndex(int groupIndex)
  620. - void SetDensity(float density)
  621. - void SetFriction(float friction)
  622. - void SetRestitution(float restitution)
  623. - bool IsTrigger() const
  624. - int GetCategoryBits() const
  625. - int GetMaskBits() const
  626. - int GetGroupIndex() const
  627. - float GetDensity() const
  628. - float GetFriction() const
  629. - float GetRestitution() const
  630. - float GetMass() const
  631. - float GetInertia() const
  632. - Vector2 GetMassCenter() const
  633. Properties:
  634. - bool trigger
  635. - int categoryBits
  636. - int maskBits
  637. - int groupIndex
  638. - float density
  639. - float friction
  640. - float restitution
  641. - float mass (readonly)
  642. - float inertia (readonly)
  643. - Vector2 massCenter (readonly)
  644. ### Color
  645. Methods:
  646. - Color() (GC)
  647. - Color* new()
  648. - Color(const Color& color) (GC)
  649. - Color* new(const Color& color)
  650. - Color(const Color& color, float a) (GC)
  651. - Color* new(const Color& color, float a)
  652. - Color(float r, float g, float b) (GC)
  653. - Color* new(float r, float g, float b)
  654. - Color(float r, float g, float b, float a) (GC)
  655. - Color* new(float r, float g, float b, float a)
  656. - void delete()
  657. - bool operator==(const Color& rhs) const
  658. - Color operator*(float rhs) const
  659. - Color operator+(const Color& rhs)
  660. - unsigned ToUInt() const
  661. - Vector3 ToHSL() const
  662. - Vector3 ToHSV() const
  663. - void FromHSL(float h, float s, float l, float a)
  664. - void FromHSV(float h, float s, float v, float a)
  665. - Vector3 ToVector3() const
  666. - Vector4 ToVector4() const
  667. - float SumRGB() const
  668. - float Average() const
  669. - float Luma() const
  670. - float Chroma() const
  671. - float Hue() const
  672. - float SaturationHSL() const
  673. - float SaturationHSV() const
  674. - float Value() const
  675. - float Lightness() const
  676. - float MaxRGB() const
  677. - float MinRGB() const
  678. - float Range() const
  679. - void Clip(bool clipAlpha = false)
  680. - void Invert(bool invertAlpha = false)
  681. - Color Lerp(const Color& rhs, float t) const
  682. - Color Abs() const
  683. - bool Equals(const Color& rhs) const
  684. - String ToString() const
  685. Properties:
  686. - float r
  687. - float g
  688. - float b
  689. - float a
  690. - const Color WHITE
  691. - const Color GRAY
  692. - const Color BLACK
  693. - const Color RED
  694. - const Color GREEN
  695. - const Color BLUE
  696. - const Color CYAN
  697. - const Color MAGENTA
  698. - const Color YELLOW
  699. - const Color TRANSPARENT
  700. ### ColorFrame
  701. Methods:
  702. - ColorFrame() (GC)
  703. - ColorFrame* new()
  704. - ColorFrame(const Color& color) (GC)
  705. - ColorFrame* new(const Color& color)
  706. - ColorFrame(const Color& color, float time) (GC)
  707. - ColorFrame* new(const Color& color, float time)
  708. - void delete()
  709. - Color Interpolate(const ColorFrame& next, float time)
  710. Properties:
  711. - Color color
  712. - float time
  713. ### Component : Animatable
  714. Methods:
  715. - void SetEnabled(bool enable)
  716. - void Remove()
  717. - unsigned GetID() const
  718. - Node* GetNode() const
  719. - Scene* GetScene() const
  720. - bool IsEnabled() const
  721. - bool IsEnabledEffective() const
  722. - Component* GetComponent(ShortStringHash type) const
  723. - Component* GetComponent(const String type) const
  724. ### Connection : Object
  725. Methods:
  726. - void SendMessage(int msgID, bool reliable, bool inOrder, const VectorBuffer& msg, unsigned contentID = 0)
  727. - void SendRemoteEvent(StringHash eventType, bool inOrder)
  728. - void SendRemoteEvent(StringHash eventType, bool inOrder, const VariantMap& eventData)
  729. - void SendRemoteEvent(const String eventType, bool inOrder)
  730. - void SendRemoteEvent(const String eventType, bool inOrder, const VariantMap& eventData)
  731. - void SendRemoteEvent(Node* node, StringHash eventType, bool inOrder)
  732. - void SendRemoteEvent(Node* node, StringHash eventType, bool inOrder, const VariantMap& eventData)
  733. - void SendRemoteEvent(Node* node, const String eventType, bool inOrder)
  734. - void SendRemoteEvent(Node* node, const String eventType, bool inOrder, const VariantMap& eventData)
  735. - void SetScene(Scene* newScene)
  736. - void SetIdentity(const VariantMap& identity)
  737. - void SetControls(const Controls& newControls)
  738. - void SetPosition(const Vector3& position)
  739. - void SetConnectPending(bool connectPending)
  740. - void SetLogStatistics(bool enable)
  741. - void Disconnect(int waitMSec = 0)
  742. - void SendServerUpdate()
  743. - void SendClientUpdate()
  744. - void SendRemoteEvents()
  745. - void SendPackages()
  746. - void ProcessPendingLatestData()
  747. - bool ProcessMessage(int msgID, MemoryBuffer& msg)
  748. - const VariantMap& GetIdentity() const
  749. - Scene* GetScene() const
  750. - const Controls& GetControls() const
  751. - const Vector3& GetPosition() const
  752. - bool IsClient() const
  753. - bool IsConnected() const
  754. - bool IsConnectPending() const
  755. - bool IsSceneLoaded() const
  756. - bool GetLogStatistics() const
  757. - String GetAddress() const
  758. - short GetPort() const
  759. - String ToString() const
  760. - unsigned GetNumDownloads() const
  761. - const String GetDownloadName() const
  762. - float GetDownloadProgress() const
  763. Properties:
  764. - VariantMap& identity
  765. - Scene* scene
  766. - Controls& controls
  767. - Vector3& position
  768. - bool client (readonly)
  769. - bool connected (readonly)
  770. - bool connectPending
  771. - bool sceneLoaded (readonly)
  772. - bool logStatistics
  773. - String address (readonly)
  774. - short port (readonly)
  775. - unsigned numDownloads (readonly)
  776. - String downloadName (readonly)
  777. - float downloadProgress (readonly)
  778. ### Console : Object
  779. Methods:
  780. - void SetDefaultStyle(XMLFile* style)
  781. - void SetVisible(bool enable)
  782. - void Toggle()
  783. - void SetAutoVisibleOnError(bool enable)
  784. - void SetCommandInterpreter(const String interpreter)
  785. - void SetNumBufferedRows(unsigned rows)
  786. - void SetNumRows(unsigned rows)
  787. - void SetNumHistoryRows(unsigned rows)
  788. - void SetFocusOnShow(bool enable)
  789. - void UpdateElements()
  790. - XMLFile* GetDefaultStyle() const
  791. - BorderImage* GetBackground() const
  792. - LineEdit* GetLineEdit() const
  793. - bool IsVisible() const
  794. - bool IsAutoVisibleOnError() const
  795. - const String GetCommandInterpreter() const
  796. - unsigned GetNumBufferedRows() const
  797. - unsigned GetNumRows() const
  798. - void CopySelectedRows() const
  799. - unsigned GetNumHistoryRows() const
  800. - unsigned GetHistoryPosition() const
  801. - const String GetHistoryRow(unsigned index) const
  802. - bool GetFocusOnShow() const
  803. Properties:
  804. - XMLFile* defaultStyle
  805. - BorderImage* background (readonly)
  806. - LineEdit* lineEdit (readonly)
  807. - bool visible
  808. - bool autoVisibleOnError
  809. - String commandInterpreter
  810. - unsigned numBufferedRows
  811. - unsigned numRows
  812. - unsigned numHistoryRows
  813. - unsigned historyPosition (readonly)
  814. - bool focusOnShow
  815. ### Constraint : Component
  816. Methods:
  817. - void SetConstraintType(ConstraintType type)
  818. - void SetOtherBody(RigidBody* body)
  819. - void SetPosition(const Vector3& position)
  820. - void SetRotation(const Quaternion& rotation)
  821. - void SetAxis(const Vector3& axis)
  822. - void SetOtherPosition(const Vector3& position)
  823. - void SetOtherRotation(const Quaternion& rotation)
  824. - void SetOtherAxis(const Vector3& axis)
  825. - void SetWorldPosition(const Vector3& position)
  826. - void SetHighLimit(const Vector2& limit)
  827. - void SetLowLimit(const Vector2& limit)
  828. - void SetERP(float erp)
  829. - void SetCFM(float cfm)
  830. - void SetDisableCollision(bool disable)
  831. - PhysicsWorld* GetPhysicsWorld() const
  832. - ConstraintType GetConstraintType() const
  833. - RigidBody* GetOwnBody() const
  834. - RigidBody* GetOtherBody() const
  835. - const Vector3& GetPosition() const
  836. - const Quaternion& GetRotation() const
  837. - const Vector3& GetOtherPosition() const
  838. - const Quaternion& GetOtherRotation() const
  839. - Vector3 GetWorldPosition() const
  840. - const Vector2& GetHighLimit() const
  841. - const Vector2& GetLowLimit() const
  842. - float GetERP() const
  843. - float GetCFM() const
  844. - bool GetDisableCollision() const
  845. Properties:
  846. - PhysicsWorld* physicsWorld (readonly)
  847. - ConstraintType constraintType
  848. - RigidBody* ownBody (readonly)
  849. - RigidBody* otherBody
  850. - Vector3& position
  851. - Quaternion& rotation
  852. - Vector3& axis
  853. - Vector3& otherPosition
  854. - Quaternion& otherRotation
  855. - Vector3& otherAxis
  856. - Vector3 worldPosition
  857. - Vector2& highLimit
  858. - Vector2& lowLimit
  859. - float ERP
  860. - float CFM
  861. - bool disableCollision
  862. ### Constraint2D : Component
  863. Methods:
  864. - void SetOtherBody(RigidBody2D* body)
  865. - void SetCollideConnected(bool collideConnected)
  866. - RigidBody2D* GetOwnerBody() const
  867. - RigidBody2D* GetOtherBody() const
  868. - bool GetCollideConnected() const
  869. Properties:
  870. - RigidBody2D* ownerBody (readonly)
  871. - RigidBody2D* otherBody
  872. - bool collideConnected
  873. ### ConstraintDistance2D : Constraint2D
  874. Methods:
  875. - void SetOwnerBodyAnchor(const Vector2& anchor)
  876. - void SetOtherBodyAnchor(const Vector2& anchor)
  877. - void SetFrequencyHz(float frequencyHz)
  878. - void SetDampingRatio(float dampingRatio)
  879. - const Vector2& GetOwnerBodyAnchor() const
  880. - const Vector2& GetOtherBodyAnchor() const
  881. - float GetFrequencyHz() const
  882. - float GetDampingRatio() const
  883. Properties:
  884. - Vector2& ownerBodyAnchor
  885. - Vector2& otherBodyAnchor
  886. - float frequencyHz
  887. - float dampingRatio
  888. ### ConstraintFriction2D : Constraint2D
  889. Methods:
  890. - void SetAnchor(const Vector2& anchor)
  891. - void SetMaxForce(float maxForce)
  892. - void SetMaxTorque(float maxTorque)
  893. - const Vector2& GetAnchor() const
  894. - float GetMaxForce() const
  895. - float GetMaxTorque() const
  896. Properties:
  897. - Vector2& anchor
  898. - float maxForce
  899. - float maxTorque
  900. ### ConstraintGear2D : Constraint2D
  901. Methods:
  902. - void SetOwnerConstraint(Constraint2D* constraint)
  903. - void SetOtherConstraint(Constraint2D* constraint)
  904. - void SetRatio(float ratio)
  905. - Constraint2D* GetOwnerConstraint() const
  906. - Constraint2D* GetOtherConstraint() const
  907. - float GetRatio() const
  908. Properties:
  909. - Constraint2D* ownerConstraint
  910. - Constraint2D* otherConstraint
  911. - float ratio
  912. ### ConstraintMotor2D : Constraint2D
  913. Methods:
  914. - void SetLinearOffset(const Vector2& linearOffset)
  915. - void SetAngularOffset(float angularOffset)
  916. - void SetMaxForce(float maxForce)
  917. - void SetMaxTorque(float maxTorque)
  918. - void SetCorrectionFactor(float correctionFactor)
  919. - const Vector2& GetLinearOffset() const
  920. - float GetAngularOffset() const
  921. - float GetMaxForce() const
  922. - float GetMaxTorque() const
  923. - float GetCorrectionFactor() const
  924. Properties:
  925. - Vector2& linearOffset
  926. - float angularOffset
  927. - float maxForce
  928. - float maxTorque
  929. - float correctionFactor
  930. ### ConstraintMouse2D : Constraint2D
  931. Methods:
  932. - void SetTarget(const Vector2& target)
  933. - void SetMaxForce(float maxForce)
  934. - void SetFrequencyHz(float frequencyHz)
  935. - void SetDampingRatio(float dampingRatio)
  936. - const Vector2& GetTarget() const
  937. - float GetMaxForce() const
  938. - float GetFrequencyHz() const
  939. - float GetDampingRatio() const
  940. Properties:
  941. - Vector2& target
  942. - float maxForce
  943. - float frequencyHz
  944. - float dampingRatio
  945. ### ConstraintPrismatic2D : Constraint2D
  946. Methods:
  947. - void SetAnchor(const Vector2& anchor)
  948. - void SetAxis(const Vector2& axis)
  949. - void SetEnableLimit(bool enableLimit)
  950. - void SetLowerTranslation(float lowerTranslation)
  951. - void SetUpperTranslation(float upperTranslation)
  952. - void SetEnableMotor(bool enableMotor)
  953. - void SetMaxMotorForce(float maxMotorForce)
  954. - void SetMotorSpeed(float motorSpeed)
  955. - const Vector2& GetAnchor() const
  956. - const Vector2& GetAxis() const
  957. - bool GetEnableLimit() const
  958. - float GetLowerTranslation() const
  959. - float GetUpperTranslation() const
  960. - bool GetEnableMotor() const
  961. - float GetMaxMotorForce() const
  962. - float GetMotorSpeed() const
  963. Properties:
  964. - Vector2& anchor
  965. - Vector2& axis
  966. - bool enableLimit
  967. - float lowerTranslation
  968. - float upperTranslation
  969. - bool enableMotor
  970. - float maxMotorForce
  971. - float motorSpeed
  972. ### ConstraintPulley2D : Constraint2D
  973. Methods:
  974. - void SetOwnerBodyGroundAnchor(const Vector2& groundAnchor)
  975. - void SetOtherBodyGroundAnchor(const Vector2& groundAnchor)
  976. - void SetOwnerBodyAnchor(const Vector2& anchor)
  977. - void SetOtherBodyAnchor(const Vector2& anchor)
  978. - void SetRatio(float ratio)
  979. - const Vector2& GetOwnerBodyGroundAnchor() const
  980. - const Vector2& GetOtherBodyGroundAnchor() const
  981. - const Vector2& GetOwnerBodyAnchor() const
  982. - const Vector2& GetOtherBodyAnchor() const
  983. - float GetRatio() const
  984. Properties:
  985. - Vector2& ownerBodyGroundAnchor
  986. - Vector2& otherBodyGroundAnchor
  987. - Vector2& ownerBodyAnchor
  988. - Vector2& otherBodyAnchor
  989. - float ratio
  990. ### ConstraintRevolute2D : Constraint2D
  991. Methods:
  992. - void SetAnchor(const Vector2& anchor)
  993. - void SetEnableLimit(bool enableLimit)
  994. - void SetLowerAngle(float lowerAngle)
  995. - void SetUpperAngle(float upperAngle)
  996. - void SetEnableMotor(bool enableMotor)
  997. - void SetMotorSpeed(float motorSpeed)
  998. - void SetMaxMotorTorque(float maxMotorTorque)
  999. - const Vector2& GetAnchor() const
  1000. - bool GetEnableLimit() const
  1001. - float GetLowerAngle() const
  1002. - float GetUpperAngle() const
  1003. - bool GetEnableMotor() const
  1004. - float GetMotorSpeed() const
  1005. - float GetMaxMotorTorque() const
  1006. Properties:
  1007. - Vector2& anchor
  1008. - bool enableLimit
  1009. - float lowerAngle
  1010. - float upperAngle
  1011. - bool enableMotor
  1012. - float motorSpeed
  1013. - float maxMotorTorque
  1014. ### ConstraintRope2D : Constraint2D
  1015. Methods:
  1016. - void SetOwnerBodyAnchor(const Vector2& anchor)
  1017. - void SetOtherBodyAnchor(const Vector2& anchor)
  1018. - void SetMaxLength(float maxLength)
  1019. - const Vector2& GetOwnerBodyAnchor() const
  1020. - const Vector2& GetOtherBodyAnchor() const
  1021. - float GetMaxLength() const
  1022. Properties:
  1023. - Vector2& ownerBodyAnchor
  1024. - Vector2& otherBodyAnchor
  1025. - float maxLength
  1026. ### ConstraintWeld2D : Constraint2D
  1027. Methods:
  1028. - void SetAnchor(const Vector2& anchor)
  1029. - void SetFrequencyHz(float frequencyHz)
  1030. - void SetDampingRatio(float dampingRatio)
  1031. - const Vector2& GetAnchor() const
  1032. - float GetFrequencyHz() const
  1033. - float GetDampingRatio() const
  1034. Properties:
  1035. - Vector2& anchor
  1036. - float frequencyHz
  1037. - float dampingRatio
  1038. ### ConstraintWheel2D : Constraint2D
  1039. Methods:
  1040. - void SetAnchor(const Vector2& anchor)
  1041. - void SetAxis(const Vector2& axis)
  1042. - void SetEnableMotor(bool enableMotor)
  1043. - void SetMaxMotorTorque(float maxMotorTorque)
  1044. - void SetMotorSpeed(float motorSpeed)
  1045. - void SetFrequencyHz(float frequencyHz)
  1046. - void SetDampingRatio(float dampingRatio)
  1047. - const Vector2& GetAnchor() const
  1048. - const Vector2& GetAxis() const
  1049. - bool GetEnableMotor() const
  1050. - float GetMaxMotorTorque() const
  1051. - float GetMotorSpeed() const
  1052. - float GetFrequencyHz() const
  1053. - float GetDampingRatio() const
  1054. Properties:
  1055. - Vector2& anchor
  1056. - Vector2& axis
  1057. - bool enableMotor
  1058. - float maxMotorTorque
  1059. - float motorSpeed
  1060. - float frequencyHz
  1061. - float dampingRatio
  1062. ### Context
  1063. Methods:
  1064. - Object* GetEventSender() const
  1065. - EventHandler* GetEventHandler() const
  1066. - const String GetTypeName(ShortStringHash objectType) const
  1067. ### Controls
  1068. Methods:
  1069. - Controls() (GC)
  1070. - Controls* new()
  1071. - void delete()
  1072. - void Reset()
  1073. - void Set(unsigned buttons, bool down = true)
  1074. - bool IsDown(unsigned button) const
  1075. - bool IsPressed(unsigned button, const Controls& previousControls) const
  1076. Properties:
  1077. - unsigned buttons
  1078. - float yaw
  1079. - float pitch
  1080. - VariantMap extraData
  1081. ### Cursor : BorderImage
  1082. Methods:
  1083. - Cursor() (GC)
  1084. - Cursor* new()
  1085. - void delete()
  1086. - void DefineShape(CursorShape shape, Image* image, const IntRect& imageRect, const IntVector2& hotSpot)
  1087. - void SetShape(CursorShape shape)
  1088. - void SetUseSystemShapes(bool enable)
  1089. - CursorShape GetShape() const
  1090. - bool GetUseSystemShapes() const
  1091. Properties:
  1092. - CursorShape shape
  1093. - bool useSystemShapes
  1094. ### DebugHud : Object
  1095. Methods:
  1096. - void SetDefaultStyle(XMLFile* style)
  1097. - void SetMode(unsigned mode)
  1098. - void SetProfilerMaxDepth(unsigned depth)
  1099. - void SetProfilerInterval(float interval)
  1100. - void SetUseRendererStats(bool enable)
  1101. - void Toggle(unsigned mode)
  1102. - void ToggleAll()
  1103. - XMLFile* GetDefaultStyle() const
  1104. - Text* GetStatsText() const
  1105. - Text* GetModeText() const
  1106. - Text* GetProfilerText() const
  1107. - unsigned GetMode() const
  1108. - unsigned GetProfilerMaxDepth() const
  1109. - float GetProfilerInterval() const
  1110. - bool GetUseRendererStats() const
  1111. - void SetAppStats(const String label, const Variant stats)
  1112. - void SetAppStats(const String label, const String stats)
  1113. - bool ResetAppStats(const String label)
  1114. - void ClearAppStats()
  1115. Properties:
  1116. - XMLFile* defaultStyle
  1117. - Text* statsText (readonly)
  1118. - Text* modeText (readonly)
  1119. - Text* profilerText (readonly)
  1120. - unsigned mode
  1121. - unsigned profilerMaxDepth
  1122. - float profilerInterval
  1123. - bool useRendererStats
  1124. ### DebugRenderer : Component
  1125. Methods:
  1126. - void SetView(Camera* camera)
  1127. - void AddLine(const Vector3& start, const Vector3& end, const Color& color, bool depthTest = true)
  1128. - void AddLine(const Vector3& start, const Vector3& end, unsigned color, bool depthTest = true)
  1129. - void AddTriangle(const Vector3& v1, const Vector3& v2, const Vector3& v3, const Color& color, bool depthTest = true)
  1130. - void AddTriangle(const Vector3& v1, const Vector3& v2, const Vector3& v3, unsigned color, bool depthTest = true)
  1131. - void AddNode(Node* node, float scale = 1.0f, bool depthTest = true)
  1132. - void AddBoundingBox(const BoundingBox& box, const Color& color, bool depthTest = true)
  1133. - void AddBoundingBox(const BoundingBox& box, const Matrix3x4& transform, const Color& color, bool depthTest = true)
  1134. - void AddFrustum(const Frustum& frustum, const Color& color, bool depthTest = true)
  1135. - void AddPolyhedron(const Polyhedron& poly, const Color& color, bool depthTest = true)
  1136. - void AddSphere(const Sphere& sphere, const Color& color, bool depthTest = true)
  1137. - void AddSkeleton(const Skeleton& skeleton, const Color& color, bool depthTest = true)
  1138. - 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)
  1139. - void Render()
  1140. - const Matrix3x4& GetView() const
  1141. - const Matrix4& GetProjection() const
  1142. - const Frustum& GetFrustum() const
  1143. - bool IsInside(const BoundingBox& box) const
  1144. Properties:
  1145. - Matrix3x4& view (readonly)
  1146. - Matrix4& projection (readonly)
  1147. - Frustum& frustum (readonly)
  1148. ### DecalSet : Drawable
  1149. Methods:
  1150. - void SetMaterial(Material* material)
  1151. - void SetMaxVertices(unsigned num)
  1152. - void SetMaxIndices(unsigned num)
  1153. - 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)
  1154. - void RemoveDecals(unsigned num)
  1155. - void RemoveAllDecals()
  1156. - Material* GetMaterial() const
  1157. - unsigned GetNumDecals() const
  1158. - unsigned GetNumVertices() const
  1159. - unsigned GetNumIndices() const
  1160. - unsigned GetMaxVertices() const
  1161. - unsigned GetMaxIndices() const
  1162. Properties:
  1163. - Material* material
  1164. - unsigned numDecals (readonly)
  1165. - unsigned numVertices (readonly)
  1166. - unsigned numIndices (readonly)
  1167. - unsigned maxVertices
  1168. - unsigned maxIndices
  1169. ### Deserializer
  1170. Methods:
  1171. - VectorBuffer Read(unsigned size)
  1172. - unsigned Seek(unsigned position)
  1173. - const String GetName() const
  1174. - unsigned GetChecksum()
  1175. - unsigned GetPosition() const
  1176. - unsigned GetSize() const
  1177. - bool IsEof() const
  1178. - int ReadInt()
  1179. - short ReadShort()
  1180. - char ReadByte()
  1181. - unsigned ReadUInt()
  1182. - short ReadUShort()
  1183. - char ReadUByte()
  1184. - bool ReadBool()
  1185. - float ReadFloat()
  1186. - IntRect ReadIntRect()
  1187. - IntVector2 ReadIntVector2()
  1188. - Rect ReadRect()
  1189. - Vector2 ReadVector2()
  1190. - Vector3 ReadVector3()
  1191. - Vector3 ReadPackedVector3(float maxAbsCoord)
  1192. - Vector4 ReadVector4()
  1193. - Quaternion ReadQuaternion()
  1194. - Quaternion ReadPackedQuaternion()
  1195. - Matrix3 ReadMatrix3()
  1196. - Matrix3x4 ReadMatrix3x4()
  1197. - Matrix4 ReadMatrix4()
  1198. - Color ReadColor()
  1199. - BoundingBox ReadBoundingBox()
  1200. - String ReadString()
  1201. - String ReadFileID()
  1202. - StringHash ReadStringHash()
  1203. - ShortStringHash ReadShortStringHash()
  1204. - VectorBuffer ReadBuffer()
  1205. - ResourceRef ReadResourceRef()
  1206. - ResourceRefList ReadResourceRefList()
  1207. - Variant ReadVariant()
  1208. - Variant ReadVariant(VariantType type)
  1209. - VariantVector ReadVariantVector()
  1210. - VariantMap ReadVariantMap()
  1211. - unsigned ReadVLE()
  1212. - unsigned ReadNetID()
  1213. - String ReadLine()
  1214. Properties:
  1215. - String name (readonly)
  1216. - unsigned checksum (readonly)
  1217. - unsigned position (readonly)
  1218. - unsigned size (readonly)
  1219. - bool eof (readonly)
  1220. ### Drawable : Component
  1221. Methods:
  1222. - void SetDrawDistance(float distance)
  1223. - void SetShadowDistance(float distance)
  1224. - void SetLodBias(float bias)
  1225. - void SetViewMask(unsigned mask)
  1226. - void SetLightMask(unsigned mask)
  1227. - void SetShadowMask(unsigned mask)
  1228. - void SetZoneMask(unsigned mask)
  1229. - void SetMaxLights(unsigned num)
  1230. - void SetCastShadows(bool enable)
  1231. - void SetOccluder(bool enable)
  1232. - void SetOccludee(bool enable)
  1233. - void MarkForUpdate()
  1234. - const BoundingBox& GetBoundingBox() const
  1235. - const BoundingBox& GetWorldBoundingBox()
  1236. - char GetDrawableFlags() const
  1237. - float GetDrawDistance() const
  1238. - float GetShadowDistance() const
  1239. - float GetLodBias() const
  1240. - unsigned GetViewMask() const
  1241. - unsigned GetLightMask() const
  1242. - unsigned GetShadowMask() const
  1243. - unsigned GetZoneMask() const
  1244. - unsigned GetMaxLights() const
  1245. - bool GetCastShadows() const
  1246. - bool IsOccluder() const
  1247. - bool IsOccludee() const
  1248. - bool IsInView() const
  1249. - bool IsInView(Camera* tolua_var_2) const
  1250. - Zone* GetZone() const
  1251. Properties:
  1252. - BoundingBox& worldBoundingBox (readonly)
  1253. - char drawableFlags (readonly)
  1254. - float drawDistance
  1255. - float shadowDistance
  1256. - float lodBias
  1257. - unsigned viewMask
  1258. - unsigned lightMask
  1259. - unsigned shadowMask
  1260. - unsigned zoneMask
  1261. - unsigned maxLights
  1262. - bool castShadows
  1263. - bool occluder
  1264. - bool occludee
  1265. - bool inView (readonly)
  1266. - Zone* zone (readonly)
  1267. ### Drawable2D : Drawable
  1268. Methods:
  1269. - void SetLayer(int layer)
  1270. - void SetOrderInLayer(int orderInLayer)
  1271. - void SetSprite(Sprite2D* sprite)
  1272. - void SetBlendMode(BlendMode mode)
  1273. - void SetMaterial(Material* material)
  1274. - int GetLayer() const
  1275. - int GetOrderInLayer() const
  1276. - Sprite2D* GetSprite() const
  1277. - Texture2D* GetTexture() const
  1278. - BlendMode GetBlendMode() const
  1279. - Material* GetMaterial() const
  1280. Properties:
  1281. - int layer
  1282. - int orderInLayer
  1283. - Sprite2D* sprite
  1284. - Texture2D* texture (readonly)
  1285. - BlendMode blendMode
  1286. - Material* material
  1287. ### DropDownList : Menu
  1288. Methods:
  1289. - DropDownList() (GC)
  1290. - DropDownList* new()
  1291. - void delete()
  1292. - void AddItem(UIElement* item)
  1293. - void InsertItem(unsigned index, UIElement* item)
  1294. - void RemoveItem(UIElement* item)
  1295. - void RemoveItem(unsigned index)
  1296. - void RemoveAllItems()
  1297. - void SetSelection(unsigned index)
  1298. - void SetPlaceholderText(const String text)
  1299. - void SetResizePopup(bool enable)
  1300. - unsigned GetNumItems() const
  1301. - UIElement* GetItem(unsigned index) const
  1302. - const PODVector<UIElement*>& GetItems() const
  1303. - unsigned GetSelection() const
  1304. - UIElement* GetSelectedItem() const
  1305. - ListView* GetListView() const
  1306. - UIElement* GetPlaceholder() const
  1307. - const String GetPlaceholderText() const
  1308. - bool GetResizePopup() const
  1309. Properties:
  1310. - unsigned numItems (readonly)
  1311. - unsigned selection
  1312. - UIElement* selectedItem (readonly)
  1313. - ListView* listView (readonly)
  1314. - UIElement* placeholder (readonly)
  1315. - String placeholderText
  1316. - bool resizePopup
  1317. ### Engine : Object
  1318. Methods:
  1319. - void RunFrame()
  1320. - Console* CreateConsole()
  1321. - DebugHud* CreateDebugHud()
  1322. - void SetMinFps(int fps)
  1323. - void SetMaxFps(int fps)
  1324. - void SetMaxInactiveFps(int fps)
  1325. - void SetTimeStepSmoothing(int frames)
  1326. - void SetPauseMinimized(bool enable)
  1327. - void SetAutoExit(bool enable)
  1328. - void Exit()
  1329. - void DumpProfiler()
  1330. - void DumpResources()
  1331. - void DumpMemory()
  1332. - int GetMinFps() const
  1333. - int GetMaxFps() const
  1334. - int GetMaxInactiveFps() const
  1335. - int GetTimeStepSmoothing() const
  1336. - bool GetPauseMinimized() const
  1337. - bool GetAutoExit() const
  1338. - bool IsInitialized() const
  1339. - bool IsExiting() const
  1340. - bool IsHeadless() const
  1341. Properties:
  1342. - int minFps
  1343. - int maxFps
  1344. - int maxInactiveFps
  1345. - int timeStepSmoothing
  1346. - bool pauseMinimized
  1347. - bool autoExit
  1348. - bool initialized (readonly)
  1349. - bool exiting (readonly)
  1350. - bool headless (readonly)
  1351. ### File : Object
  1352. Methods:
  1353. - File() (GC)
  1354. - File* new()
  1355. - File(const String fileName, FileMode mode = FILE_READ) (GC)
  1356. - File* new(const String fileName, FileMode mode = FILE_READ)
  1357. - File(PackageFile* package, const String fileName) (GC)
  1358. - File* new(PackageFile* package, const String fileName)
  1359. - void delete()
  1360. - bool Open(const String fileName, FileMode mode = FILE_READ)
  1361. - bool Open(PackageFile* package, const String fileName)
  1362. - void Close()
  1363. - void Flush()
  1364. - void SetName(const String name)
  1365. - FileMode GetMode() const
  1366. - bool IsOpen() const
  1367. - void* GetHandle() const
  1368. - bool IsPackaged() const
  1369. - VectorBuffer Read(unsigned size)
  1370. - unsigned Seek(unsigned position)
  1371. - const String GetName() const
  1372. - unsigned GetChecksum()
  1373. - unsigned GetPosition() const
  1374. - unsigned GetSize() const
  1375. - bool IsEof() const
  1376. - int ReadInt()
  1377. - short ReadShort()
  1378. - char ReadByte()
  1379. - unsigned ReadUInt()
  1380. - short ReadUShort()
  1381. - char ReadUByte()
  1382. - bool ReadBool()
  1383. - float ReadFloat()
  1384. - IntRect ReadIntRect()
  1385. - IntVector2 ReadIntVector2()
  1386. - Rect ReadRect()
  1387. - Vector2 ReadVector2()
  1388. - Vector3 ReadVector3()
  1389. - Vector3 ReadPackedVector3(float maxAbsCoord)
  1390. - Vector4 ReadVector4()
  1391. - Quaternion ReadQuaternion()
  1392. - Quaternion ReadPackedQuaternion()
  1393. - Matrix3 ReadMatrix3()
  1394. - Matrix3x4 ReadMatrix3x4()
  1395. - Matrix4 ReadMatrix4()
  1396. - Color ReadColor()
  1397. - BoundingBox ReadBoundingBox()
  1398. - String ReadString()
  1399. - String ReadFileID()
  1400. - StringHash ReadStringHash()
  1401. - ShortStringHash ReadShortStringHash()
  1402. - VectorBuffer ReadBuffer()
  1403. - ResourceRef ReadResourceRef()
  1404. - ResourceRefList ReadResourceRefList()
  1405. - Variant ReadVariant()
  1406. - Variant ReadVariant(VariantType type)
  1407. - VariantVector ReadVariantVector()
  1408. - VariantMap ReadVariantMap()
  1409. - unsigned ReadVLE()
  1410. - unsigned ReadNetID()
  1411. - String ReadLine()
  1412. - unsigned Write(const VectorBuffer& buffer)
  1413. - bool WriteInt(int value)
  1414. - bool WriteShort(short value)
  1415. - bool WriteByte(char value)
  1416. - bool WriteUInt(unsigned value)
  1417. - bool WriteUShort(short value)
  1418. - bool WriteUByte(char value)
  1419. - bool WriteBool(bool value)
  1420. - bool WriteFloat(float value)
  1421. - bool WriteIntRect(const IntRect& value)
  1422. - bool WriteIntVector2(const IntVector2& value)
  1423. - bool WriteRect(const Rect& value)
  1424. - bool WriteVector2(const Vector2& value)
  1425. - bool WriteVector3(const Vector3& value)
  1426. - bool WritePackedVector3(const Vector3& value, float maxAbsCoord)
  1427. - bool WriteVector4(const Vector4& value)
  1428. - bool WriteQuaternion(const Quaternion& value)
  1429. - bool WritePackedQuaternion(const Quaternion& value)
  1430. - bool WriteMatrix3(const Matrix3& value)
  1431. - bool WriteMatrix3x4(const Matrix3x4& value)
  1432. - bool WriteMatrix4(const Matrix4& value)
  1433. - bool WriteColor(const Color& value)
  1434. - bool WriteBoundingBox(const BoundingBox& value)
  1435. - bool WriteString(const String value)
  1436. - bool WriteFileID(const String value)
  1437. - bool WriteStringHash(const StringHash& value)
  1438. - bool WriteShortStringHash(const ShortStringHash& value)
  1439. - bool WriteBuffer(const VectorBuffer& buffer)
  1440. - bool WriteResourceRef(const ResourceRef& value)
  1441. - bool WriteResourceRefList(const ResourceRefList& value)
  1442. - bool WriteVariant(const Variant& value)
  1443. - bool WriteVariantData(const Variant& value)
  1444. - bool WriteVariantVector(const VariantVector& value)
  1445. - bool WriteVariantMap(const VariantMap& value)
  1446. - bool WriteVLE(unsigned value)
  1447. - bool WriteNetID(unsigned value)
  1448. - bool WriteLine(const String value)
  1449. Properties:
  1450. - FileMode mode (readonly)
  1451. - bool open (readonly)
  1452. - bool packaged (readonly)
  1453. - String name (readonly)
  1454. - unsigned checksum (readonly)
  1455. - unsigned position (readonly)
  1456. - unsigned size (readonly)
  1457. - bool eof (readonly)
  1458. ### FileSelector : Object
  1459. Methods:
  1460. - FileSelector() (GC)
  1461. - FileSelector* new()
  1462. - void delete()
  1463. - void SetDefaultStyle(XMLFile* style)
  1464. - void SetTitle(const String text)
  1465. - void SetButtonTexts(const String okText, const String cancelText)
  1466. - void SetPath(const String path)
  1467. - void SetFileName(const String fileName)
  1468. - void SetFilters(const Vector<String>& filters, unsigned defaultIndex)
  1469. - void SetDirectoryMode(bool enable)
  1470. - void UpdateElements()
  1471. - XMLFile* GetDefaultStyle() const
  1472. - Window* GetWindow() const
  1473. - Text* GetTitleText() const
  1474. - ListView* GetFileList() const
  1475. - LineEdit* GetPathEdit() const
  1476. - LineEdit* GetFileNameEdit() const
  1477. - DropDownList* GetFilterList() const
  1478. - Button* GetOKButton() const
  1479. - Button* GetCancelButton() const
  1480. - Button* GetCloseButton() const
  1481. - const String GetTitle() const
  1482. - const String GetPath() const
  1483. - const String GetFileName() const
  1484. - const String GetFilter() const
  1485. - unsigned GetFilterIndex() const
  1486. - bool GetDirectoryMode() const
  1487. Properties:
  1488. - XMLFile* defaultStyle
  1489. - Window* window (readonly)
  1490. - Text* titleText (readonly)
  1491. - ListView* fileList (readonly)
  1492. - LineEdit* pathEdit (readonly)
  1493. - LineEdit* fileNameEdit (readonly)
  1494. - DropDownList* filterList (readonly)
  1495. - Button* OKButton (readonly)
  1496. - Button* cancelButton (readonly)
  1497. - Button* closeButton (readonly)
  1498. - String title
  1499. - String path
  1500. - String fileName
  1501. - String filter (readonly)
  1502. - unsigned filterIndex (readonly)
  1503. - bool directoryMode
  1504. ### FileSelectorEntry
  1505. Properties:
  1506. - String name
  1507. - bool directory
  1508. ### FileSystem : Object
  1509. Methods:
  1510. - bool SetCurrentDir(const String pathName)
  1511. - bool CreateDir(const String pathName)
  1512. - void SetExecuteConsoleCommands(bool enable)
  1513. - int SystemCommand(const String commandLine, bool redirectStdOutToLog = false)
  1514. - int SystemRun(const String fileName, const Vector<String>& arguments)
  1515. - unsigned SystemCommandAsync(const String commandLine)
  1516. - unsigned SystemRunAsync(const String fileName, const Vector<String>& arguments)
  1517. - bool SystemOpen(const String fileName, const String mode = String::EMPTY)
  1518. - bool Copy(const String srcFileName, const String destFileName)
  1519. - bool Rename(const String srcFileName, const String destFileName)
  1520. - bool Delete(const String fileName)
  1521. - void RegisterPath(const String pathName)
  1522. - String GetCurrentDir() const
  1523. - bool GetExecuteConsoleCommands() const
  1524. - bool HasRegisteredPaths() const
  1525. - bool CheckAccess(const String pathName) const
  1526. - unsigned GetLastModifiedTime(const String fileName) const
  1527. - bool FileExists(const String fileName) const
  1528. - bool DirExists(const String pathName) const
  1529. - const Vector<String>& ScanDir(const String pathName, const String filter, unsigned flags, bool recursive) const
  1530. - String GetProgramDir() const
  1531. - String GetUserDocumentsDir() const
  1532. ### FileWatcher : Object
  1533. Methods:
  1534. - bool StartWatching(const String pathName, bool watchSubDirs)
  1535. - void StopWatching()
  1536. - void AddChange(const String fileName)
  1537. - const String GetPath() const
  1538. ### FocusParameters
  1539. Methods:
  1540. - FocusParameters() (GC)
  1541. - FocusParameters* new()
  1542. - FocusParameters(bool focus, bool nonUniform, bool autoSize, float quantize, float minView) (GC)
  1543. - FocusParameters* new(bool focus, bool nonUniform, bool autoSize, float quantize, float minView)
  1544. - void delete()
  1545. ### Font : Resource
  1546. ### Frustum
  1547. Methods:
  1548. - Frustum() (GC)
  1549. - Frustum* new()
  1550. - Frustum(const Frustum& frustum) (GC)
  1551. - Frustum* new(const Frustum& frustum)
  1552. - void delete()
  1553. - void Define(float fov, float aspectRatio, float zoom, float nearZ, float farZ)
  1554. - void Define(float fov, float aspectRatio, float zoom, float nearZ, float farZ, const Matrix3x4& transform)
  1555. - void Define(const Vector3& near, const Vector3& far)
  1556. - void Define(const Vector3& near, const Vector3& far, const Matrix3x4& transform)
  1557. - void Define(const BoundingBox& box)
  1558. - void Define(const BoundingBox& box, const Matrix3x4& transform)
  1559. - void DefineOrtho(float orthoSize, float aspectRatio, float zoom, float nearZ, float farZ)
  1560. - void DefineOrtho(float orthoSize, float aspectRatio, float zoom, float nearZ, float farZ, const Matrix3x4& transform)
  1561. - void Transform(const Matrix3& transform)
  1562. - void Transform(const Matrix3x4& transform)
  1563. - Intersection IsInside(const Vector3& point) const
  1564. - Intersection IsInside(const Sphere& sphere) const
  1565. - Intersection IsInsideFast(const Sphere& sphere) const
  1566. - Intersection IsInside(const BoundingBox& box) const
  1567. - Intersection IsInsideFast(const BoundingBox& box) const
  1568. - float Distance(const Vector3& point) const
  1569. - Frustum Transformed(const Matrix3& transform) const
  1570. - Frustum Transformed(const Matrix3x4& transform) const
  1571. - Rect Projected(const Matrix4& transform) const
  1572. - void UpdatePlanes()
  1573. ### Graphics : Object
  1574. Methods:
  1575. - void SetWindowTitle(const String windowTitle)
  1576. - void SetWindowIcon(Image* windowIcon)
  1577. - void SetWindowPosition(const IntVector2& position)
  1578. - void SetWindowPosition(int x, int y)
  1579. - bool SetMode(int width, int height, bool fullscreen, bool borderless, bool resizable, bool vsync, bool tripleBuffer, int multiSample)
  1580. - bool SetMode(int width, int height)
  1581. - void SetSRGB(bool enable)
  1582. - void SetFlushGPU(bool enable)
  1583. - void SetOrientations(const String orientations)
  1584. - bool ToggleFullscreen()
  1585. - void Maximize()
  1586. - void Minimize()
  1587. - void Close()
  1588. - bool TakeScreenShot(Image& destImage)
  1589. - void BeginDumpShaders(const String fileName)
  1590. - void EndDumpShaders()
  1591. - void PrecacheShaders(Deserializer& source)
  1592. - void PrecacheShaders(const String fileName)
  1593. - bool IsInitialized() const
  1594. - void* GetExternalWindow() const
  1595. - const String GetWindowTitle() const
  1596. - IntVector2 GetWindowPosition() const
  1597. - int GetWidth() const
  1598. - int GetHeight() const
  1599. - int GetMultiSample() const
  1600. - bool GetFullscreen() const
  1601. - bool GetResizable() const
  1602. - bool GetBorderless() const
  1603. - bool GetVSync() const
  1604. - bool GetTripleBuffer() const
  1605. - bool GetSRGB() const
  1606. - bool GetFlushGPU() const
  1607. - const String GetOrientations() const
  1608. - bool IsDeviceLost() const
  1609. - unsigned GetNumPrimitives() const
  1610. - unsigned GetNumBatches() const
  1611. - unsigned GetDummyColorFormat() const
  1612. - unsigned GetShadowMapFormat() const
  1613. - unsigned GetHiresShadowMapFormat() const
  1614. - bool GetSM3Support() const
  1615. - bool GetInstancingSupport() const
  1616. - bool GetLightPrepassSupport() const
  1617. - bool GetDeferredSupport() const
  1618. - bool GetHardwareShadowSupport() const
  1619. - bool GetStreamOffsetSupport() const
  1620. - bool GetSRGBSupport() const
  1621. - bool GetSRGBWriteSupport() const
  1622. - IntVector2 GetDesktopResolution() const
  1623. - unsigned GetRGBFormat()
  1624. Properties:
  1625. - bool initialized (readonly)
  1626. - String windowTitle
  1627. - IntVector2 windowPosition
  1628. - int width (readonly)
  1629. - int height (readonly)
  1630. - int multiSample (readonly)
  1631. - bool fullscreen (readonly)
  1632. - bool resizable (readonly)
  1633. - bool borderless (readonly)
  1634. - bool vSync (readonly)
  1635. - bool tripleBuffer (readonly)
  1636. - bool sRGB
  1637. - bool flushGPU
  1638. - String orientations
  1639. - bool deviceLost (readonly)
  1640. - unsigned numPrimitives (readonly)
  1641. - unsigned numBatches (readonly)
  1642. - unsigned dummyColorFormat (readonly)
  1643. - unsigned shadowMapFormat (readonly)
  1644. - unsigned hiresShadowMapFormat (readonly)
  1645. - bool sM3Support (readonly)
  1646. - bool instancingSupport (readonly)
  1647. - bool lightPrepassSupport (readonly)
  1648. - bool deferredSupport (readonly)
  1649. - bool hardwareShadowSupport (readonly)
  1650. - bool streamOffsetSupport (readonly)
  1651. - bool sRGBSupport (readonly)
  1652. - bool sRGBWriteSupport (readonly)
  1653. - IntVector2 desktopResolution (readonly)
  1654. ### HttpRequest : Deserializer
  1655. Methods:
  1656. - const String GetURL() const
  1657. - const String GetVerb() const
  1658. - String GetError() const
  1659. - HttpRequestState GetState() const
  1660. - unsigned GetAvailableSize() const
  1661. - bool IsOpen() const
  1662. Properties:
  1663. - String URL (readonly)
  1664. - String verb (readonly)
  1665. - String error (readonly)
  1666. - HttpRequestState state (readonly)
  1667. - unsigned availableSize (readonly)
  1668. - bool open (readonly)
  1669. ### Image : Resource
  1670. Methods:
  1671. - Image() (GC)
  1672. - Image* new()
  1673. - void delete()
  1674. - bool SetSize(int width, int height, unsigned components)
  1675. - bool SetSize(int width, int height, int depth, unsigned components)
  1676. - void SetPixel(int x, int y, const Color& color)
  1677. - void SetPixel(int x, int y, int z, const Color& color)
  1678. - bool LoadColorLUT(Deserializer& source)
  1679. - bool LoadColorLUT(const String fileName)
  1680. - void FlipVertical()
  1681. - bool Resize(int width, int height)
  1682. - void Clear(const Color& color)
  1683. - bool SaveBMP(const String fileName) const
  1684. - bool SavePNG(const String fileName) const
  1685. - bool SaveTGA(const String fileName) const
  1686. - bool SaveJPG(const String fileName, int quality) const
  1687. - Color GetPixel(int x, int y) const
  1688. - Color GetPixel(int x, int y, int z) const
  1689. - Color GetPixelBilinear(float x, float y) const
  1690. - Color GetPixelTrilinear(float x, float y, float z) const
  1691. - int GetWidth() const
  1692. - int GetHeight() const
  1693. - int GetDepth() const
  1694. - unsigned GetComponents() const
  1695. - bool IsCompressed() const
  1696. - CompressedFormat GetCompressedFormat() const
  1697. - unsigned GetNumCompressedLevels() const
  1698. - CompressedLevel GetCompressedLevel(unsigned index) const
  1699. Properties:
  1700. - int width (readonly)
  1701. - int height (readonly)
  1702. - int depth (readonly)
  1703. - unsigned components (readonly)
  1704. - bool compressed (readonly)
  1705. - CompressedFormat compressedFormat (readonly)
  1706. - unsigned numCompressedLevels (readonly)
  1707. ### Input : Object
  1708. Methods:
  1709. - void SetToggleFullscreen(bool enable)
  1710. - void SetMouseVisible(bool enable)
  1711. - bool OpenJoystick(unsigned index)
  1712. - void CloseJoystick(unsigned index)
  1713. - bool DetectJoysticks()
  1714. - unsigned AddScreenJoystick(XMLFile* layoutFile = 0, XMLFile* styleFile = 0)
  1715. - bool RemoveScreenJoystick(unsigned index)
  1716. - void SetScreenKeyboardVisible(bool enable)
  1717. - bool RecordGesture()
  1718. - bool SaveGestures(File* dest)
  1719. - bool SaveGesture(File* dest, unsigned gestureID)
  1720. - unsigned LoadGestures(File* source)
  1721. - bool SaveGestures(const String fileName)
  1722. - bool SaveGesture(const String fileName, unsigned gestureID)
  1723. - unsigned LoadGestures(const String fileName)
  1724. - int GetKeyFromName(const String name) const
  1725. - int GetKeyFromScancode(int scancode) const
  1726. - String GetKeyName(int key) const
  1727. - int GetScancodeFromKey(int key) const
  1728. - int GetScancodeFromName(const String name) const
  1729. - String GetScancodeName(int scancode) const
  1730. - bool GetKeyDown(int key) const
  1731. - bool GetKeyPress(int key) const
  1732. - bool GetScancodeDown(int scancode) const
  1733. - bool GetScancodePress(int scancode) const
  1734. - bool GetMouseButtonDown(int button) const
  1735. - bool GetMouseButtonPress(int button) const
  1736. - bool GetQualifierDown(int qualifier) const
  1737. - bool GetQualifierPress(int qualifier) const
  1738. - int GetQualifiers() const
  1739. - IntVector2 GetMousePosition() const
  1740. - const IntVector2& GetMouseMove() const
  1741. - int GetMouseMoveX() const
  1742. - int GetMouseMoveY() const
  1743. - int GetMouseMoveWheel() const
  1744. - unsigned GetNumTouches() const
  1745. - TouchState* GetTouch(unsigned index) const
  1746. - unsigned GetNumJoysticks() const
  1747. - const String GetJoystickName(unsigned index) const
  1748. - JoystickState* GetJoystick(unsigned index)
  1749. - bool GetToggleFullscreen() const
  1750. - bool GetScreenKeyboardSupport() const
  1751. - bool IsScreenKeyboardVisible() const
  1752. - bool IsMouseVisible() const
  1753. - bool HasFocus()
  1754. - bool IsMinimized() const
  1755. Properties:
  1756. - int qualifiers (readonly)
  1757. - IntVector2 mousePosition (readonly)
  1758. - IntVector2& mouseMove (readonly)
  1759. - int mouseMoveX (readonly)
  1760. - int mouseMoveY (readonly)
  1761. - int mouseMoveWheel (readonly)
  1762. - unsigned numTouches (readonly)
  1763. - unsigned numJoysticks (readonly)
  1764. - bool toggleFullscreen (readonly)
  1765. - bool screenKeyboardSupport (readonly)
  1766. - bool screenKeyboardVisible
  1767. - bool mouseVisible
  1768. - bool focus (readonly)
  1769. - bool minimized (readonly)
  1770. ### IntRect
  1771. Methods:
  1772. - IntRect() (GC)
  1773. - IntRect* new()
  1774. - IntRect(int left, int top, int right, int bottom) (GC)
  1775. - IntRect* new(int left, int top, int right, int bottom)
  1776. - void delete()
  1777. - bool operator==(const IntRect& rhs) const
  1778. - IntVector2 Size() const
  1779. - int Width() const
  1780. - int Height() const
  1781. - Intersection IsInside(const IntVector2& point) const
  1782. Properties:
  1783. - int left
  1784. - int top
  1785. - int right
  1786. - int bottom
  1787. - const IntRect ZERO
  1788. - IntVector2 size (readonly)
  1789. - int width (readonly)
  1790. - int height (readonly)
  1791. ### IntVector2
  1792. Methods:
  1793. - IntVector2() (GC)
  1794. - IntVector2* new()
  1795. - IntVector2(int x, int y) (GC)
  1796. - IntVector2* new(int x, int y)
  1797. - IntVector2(const IntVector2& rhs) (GC)
  1798. - IntVector2* new(const IntVector2& rhs)
  1799. - void delete()
  1800. - bool operator==(const IntVector2& rhs) const
  1801. - IntVector2 operator+(const IntVector2& rhs) const
  1802. - IntVector2 operator-() const
  1803. - IntVector2 operator-(const IntVector2& rhs) const
  1804. - IntVector2 operator*(int rhs) const
  1805. - IntVector2 operator/(int rhs) const
  1806. - IntVector2 operator/(int rhs) const
  1807. - String ToString() const
  1808. Properties:
  1809. - int x
  1810. - int y
  1811. - const IntVector2 ZERO
  1812. ### JoystickState
  1813. Methods:
  1814. - unsigned GetNumButtons() const
  1815. - unsigned GetNumAxes() const
  1816. - unsigned GetNumHats() const
  1817. - bool GetButtonDown(unsigned index) const
  1818. - bool GetButtonPress(unsigned index) const
  1819. - float GetAxisPosition(unsigned index) const
  1820. - int GetHatPosition(unsigned index) const
  1821. Properties:
  1822. - unsigned numButtons (readonly)
  1823. - unsigned numAxes (readonly)
  1824. - unsigned numHats (readonly)
  1825. ### Light : Drawable
  1826. Methods:
  1827. - void SetLightType(LightType type)
  1828. - void SetPerVertex(bool enable)
  1829. - void SetColor(const Color& color)
  1830. - void SetSpecularIntensity(float intensity)
  1831. - void SetBrightness(float brightness)
  1832. - void SetRange(float range)
  1833. - void SetFov(float fov)
  1834. - void SetAspectRatio(float aspectRatio)
  1835. - void SetFadeDistance(float distance)
  1836. - void SetShadowFadeDistance(float distance)
  1837. - void SetShadowBias(const BiasParameters& parameters)
  1838. - void SetShadowCascade(const CascadeParameters& parameters)
  1839. - void SetShadowFocus(const FocusParameters& parameters)
  1840. - void SetShadowIntensity(float intensity)
  1841. - void SetShadowResolution(float resolution)
  1842. - void SetShadowNearFarRatio(float nearFarRatio)
  1843. - void SetRampTexture(Texture* texture)
  1844. - void SetShapeTexture(Texture* texture)
  1845. - LightType GetLightType() const
  1846. - bool GetPerVertex() const
  1847. - const Color& GetColor() const
  1848. - float GetSpecularIntensity() const
  1849. - float GetBrightness() const
  1850. - Color GetEffectiveColor() const
  1851. - float GetEffectiveSpecularIntensity() const
  1852. - float GetRange() const
  1853. - float GetFov() const
  1854. - float GetAspectRatio() const
  1855. - float GetFadeDistance() const
  1856. - float GetShadowFadeDistance() const
  1857. - const BiasParameters& GetShadowBias() const
  1858. - const CascadeParameters& GetShadowCascade() const
  1859. - const FocusParameters& GetShadowFocus() const
  1860. - float GetShadowIntensity() const
  1861. - float GetShadowResolution() const
  1862. - float GetShadowNearFarRatio() const
  1863. - Texture* GetRampTexture() const
  1864. - Texture* GetShapeTexture() const
  1865. - Frustum GetFrustum() const
  1866. - int GetNumShadowSplits() const
  1867. - bool IsNegative() const
  1868. Properties:
  1869. - LightType lightType
  1870. - bool perVertex
  1871. - Color& color
  1872. - float specularIntensity
  1873. - float brightness
  1874. - float range
  1875. - float fov
  1876. - float aspectRatio
  1877. - float fadeDistance
  1878. - float shadowFadeDistance
  1879. - BiasParameters& shadowBias
  1880. - CascadeParameters& shadowCascade
  1881. - FocusParameters& shadowFocus
  1882. - float shadowIntensity
  1883. - float shadowResolution
  1884. - float shadowNearFarRatio
  1885. - Texture* rampTexture
  1886. - Texture* shapeTexture
  1887. - Frustum frustum (readonly)
  1888. - int numShadowSplits (readonly)
  1889. - bool negative (readonly)
  1890. - Color effectiveColor (readonly)
  1891. - float effectiveSpecularIntensity (readonly)
  1892. ### LineEdit : BorderImage
  1893. Methods:
  1894. - LineEdit() (GC)
  1895. - LineEdit* new()
  1896. - void delete()
  1897. - void SetText(const String text)
  1898. - void SetCursorPosition(unsigned position)
  1899. - void SetCursorBlinkRate(float rate)
  1900. - void SetMaxLength(unsigned length)
  1901. - void SetEchoCharacter(unsigned c)
  1902. - void SetCursorMovable(bool enable)
  1903. - void SetTextSelectable(bool enable)
  1904. - void SetTextCopyable(bool enable)
  1905. - const String GetText() const
  1906. - unsigned GetCursorPosition() const
  1907. - float GetCursorBlinkRate() const
  1908. - unsigned GetMaxLength() const
  1909. - unsigned GetEchoCharacter() const
  1910. - bool IsCursorMovable() const
  1911. - bool IsTextSelectable() const
  1912. - bool IsTextCopyable() const
  1913. - Text* GetTextElement() const
  1914. - BorderImage* GetCursor() const
  1915. Properties:
  1916. - String text
  1917. - unsigned cursorPosition
  1918. - float cursorBlinkRate
  1919. - unsigned maxLength
  1920. - unsigned echoCharacter
  1921. - bool cursorMovable
  1922. - bool textSelectable
  1923. - bool textCopyable
  1924. - Text* textElement (readonly)
  1925. - BorderImage* cursor (readonly)
  1926. ### ListView : ScrollView
  1927. Methods:
  1928. - ListView() (GC)
  1929. - ListView* new()
  1930. - void delete()
  1931. - void AddItem(UIElement* item)
  1932. - void InsertItem(unsigned index, UIElement* item, UIElement* parentItem = 0)
  1933. - void RemoveItem(UIElement* item, unsigned index = 0)
  1934. - void RemoveItem(unsigned index)
  1935. - void RemoveAllItems()
  1936. - void SetSelection(unsigned index)
  1937. - void SetSelections(const PODVector<unsigned>& indices)
  1938. - void AddSelection(unsigned index)
  1939. - void RemoveSelection(unsigned index)
  1940. - void ToggleSelection(unsigned index)
  1941. - void ChangeSelection(int delta, bool additive = false)
  1942. - void ClearSelection()
  1943. - void SetHighlightMode(HighlightMode mode)
  1944. - void SetMultiselect(bool enable)
  1945. - void SetHierarchyMode(bool enable)
  1946. - void SetBaseIndent(int baseIndent)
  1947. - void SetClearSelectionOnDefocus(bool enable)
  1948. - void Expand(unsigned index, bool enable, bool recursive = false)
  1949. - void ToggleExpand(unsigned index, bool recursive = false)
  1950. - unsigned GetNumItems() const
  1951. - UIElement* GetItem(unsigned index) const
  1952. - const PODVector<UIElement*>& GetItems() const
  1953. - unsigned FindItem(UIElement* item) const
  1954. - unsigned GetSelection() const
  1955. - const PODVector<unsigned>& GetSelections() const
  1956. - void CopySelectedItemsToClipboard() const
  1957. - UIElement* GetSelectedItem() const
  1958. - const PODVector<UIElement*>& GetSelectedItems() const
  1959. - bool IsSelected(unsigned index) const
  1960. - bool IsExpanded(unsigned index) const
  1961. - HighlightMode GetHighlightMode() const
  1962. - bool GetMultiselect() const
  1963. - bool GetClearSelectionOnDefocus() const
  1964. - bool GetHierarchyMode() const
  1965. - int GetBaseIndent() const
  1966. Properties:
  1967. - unsigned numItems (readonly)
  1968. - unsigned selection
  1969. - UIElement* selectedItem (readonly)
  1970. - HighlightMode highlightMode
  1971. - bool multiselect
  1972. - bool clearSelectionOnDefocus
  1973. - bool hierarchyMode
  1974. - int baseIndent
  1975. ### Log : Object
  1976. Methods:
  1977. - void Open(const String fileName)
  1978. - void Close()
  1979. - void SetLevel(int level)
  1980. - void SetTimeStamp(bool enable)
  1981. - void SetQuiet(bool quiet)
  1982. - int GetLevel() const
  1983. - bool GetTimeStamp() const
  1984. - String GetLastMessage() const
  1985. - bool IsQuiet() const
  1986. - void Write(int level, const String message)
  1987. - void WriteRaw(const String message, bool error = false)
  1988. Properties:
  1989. - int level
  1990. - bool timeStamp
  1991. - bool quiet
  1992. ### LuaScriptInstance : Component
  1993. Methods:
  1994. - bool CreateObject(const String scriptObjectType)
  1995. - bool CreateObject(LuaFile* scriptFile, const String scriptObjectType)
  1996. - void SetScriptFile(LuaFile* scriptFile)
  1997. - void SetScriptObjectType(const String scriptObjectType)
  1998. - void SubscribeToEvent(const String eventName, const String functionName)
  1999. - void UnsubscribeFromEvent(const String eventName)
  2000. - void UnsubscribeFromAllEvents()
  2001. - void SubscribeToEvent(void* sender, const String eventName, const String functionName)
  2002. - void UnsubscribeFromEvent(void* sender, const String eventName)
  2003. - void UnsubscribeFromEvents(void* sender)
  2004. - LuaFile* GetScriptFile() const
  2005. - const String GetScriptObjectType() const
  2006. Properties:
  2007. - const LuaFile* scriptFile
  2008. - const String scriptObjectType
  2009. ### Material : Resource
  2010. Methods:
  2011. - Material() (GC)
  2012. - Material* new()
  2013. - void delete()
  2014. - void SetNumTechniques(unsigned num)
  2015. - void SetTechnique(unsigned index, Technique* tech, unsigned qualityLevel = 0, float lodDistance = 0.0f)
  2016. - void SetShaderParameter(const String name, const Variant& value)
  2017. - void SetTexture(TextureUnit unit, Texture* texture)
  2018. - void SetUVTransform(const Vector2& offset, float rotation, const Vector2& repeat)
  2019. - void SetUVTransform(const Vector2& offset, float rotation, float repeat)
  2020. - void SetCullMode(CullMode mode)
  2021. - void SetShadowCullMode(CullMode mode)
  2022. - void SetDepthBias(const BiasParameters& parameters)
  2023. - void RemoveShaderParameter(const String name)
  2024. - void ReleaseShaders()
  2025. - Material* Clone(const String cloneName = String::EMPTY) const
  2026. - void SortTechniques()
  2027. - void MarkForAuxView(unsigned frameNumber)
  2028. - unsigned GetNumTechniques() const
  2029. - Technique* GetTechnique(unsigned index) const
  2030. - Pass* GetPass(unsigned index, StringHash passType) const
  2031. - Pass* GetPass(unsigned index, const String passType) const
  2032. - Texture* GetTexture(TextureUnit unit) const
  2033. - CullMode GetCullMode() const
  2034. - CullMode GetShadowCullMode() const
  2035. - const BiasParameters& GetDepthBias() const
  2036. - unsigned GetAuxViewFrameNumber() const
  2037. - bool GetOcclusion() const
  2038. - bool GetSpecular() const
  2039. Properties:
  2040. - CullMode cullMode (readonly)
  2041. - CullMode shadowCullMode (readonly)
  2042. - unsigned auxViewFrameNumber (readonly)
  2043. - bool occlusion (readonly)
  2044. - bool specular (readonly)
  2045. ### Matrix3
  2046. Methods:
  2047. - Matrix3() (GC)
  2048. - Matrix3* new()
  2049. - Matrix3(const Matrix3& matrix) (GC)
  2050. - Matrix3* new(const Matrix3& matrix)
  2051. - Matrix3(float v00, float v01, float v02, float v10, float v11, float v12, float v20, float v21, float v22) (GC)
  2052. - Matrix3* new(float v00, float v01, float v02, float v10, float v11, float v12, float v20, float v21, float v22)
  2053. - void delete()
  2054. - bool operator==(const Matrix3& rhs) const
  2055. - Vector3 operator*(const Vector3& rhs) const
  2056. - Matrix3 operator+(const Matrix3& rhs) const
  2057. - Matrix3 operator-(const Matrix3& rhs) const
  2058. - Matrix3 operator*(float rhs) const
  2059. - Matrix3 operator*(const Matrix3& rhs) const
  2060. - void SetScale(const Vector3& scale)
  2061. - void SetScale(float scale)
  2062. - Vector3 Scale() const
  2063. - Matrix3 Transpose() const
  2064. - Matrix3 Scaled(const Vector3& scale) const
  2065. - bool Equals(const Matrix3& rhs) const
  2066. - Matrix3 Inverse() const
  2067. - String ToString() const
  2068. Properties:
  2069. - float m00
  2070. - float m01
  2071. - float m02
  2072. - float m10
  2073. - float m11
  2074. - float m12
  2075. - float m20
  2076. - float m21
  2077. - float m22
  2078. - const Matrix3 ZERO
  2079. - const Matrix3 IDENTITY
  2080. ### Matrix3x4
  2081. Methods:
  2082. - Matrix3x4() (GC)
  2083. - Matrix3x4* new()
  2084. - Matrix3x4(const Matrix3x4& matrix) (GC)
  2085. - Matrix3x4* new(const Matrix3x4& matrix)
  2086. - Matrix3x4(const Matrix3& matrix) (GC)
  2087. - Matrix3x4* new(const Matrix3& matrix)
  2088. - Matrix3x4(const Matrix4& matrix) (GC)
  2089. - Matrix3x4* new(const Matrix4& matrix)
  2090. - 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)
  2091. - 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)
  2092. - Matrix3x4(const Vector3& translation, const Quaternion& rotation, float scale) (GC)
  2093. - Matrix3x4* new(const Vector3& translation, const Quaternion& rotation, float scale)
  2094. - Matrix3x4(const Vector3& translation, const Quaternion& rotation, const Vector3& scale) (GC)
  2095. - Matrix3x4* new(const Vector3& translation, const Quaternion& rotation, const Vector3& scale)
  2096. - void delete()
  2097. - bool operator==(const Matrix3x4& rhs) const
  2098. - Vector3 operator*(const Vector3& rhs) const
  2099. - Vector3 operator*(const Vector4& rhs) const
  2100. - Matrix3x4 operator+(const Matrix3x4& rhs) const
  2101. - Matrix3x4 operator-(const Matrix3x4& rhs) const
  2102. - Matrix3x4 operator*(float rhs) const
  2103. - Matrix3x4 operator*(const Matrix3x4& rhs) const
  2104. - Matrix4 operator*(const Matrix4& rhs) const
  2105. - void SetTranslation(const Vector3& translation)
  2106. - void SetRotation(const Matrix3& rotation)
  2107. - void SetScale(const Vector3& scale)
  2108. - void SetScale(float scale)
  2109. - Matrix3 ToMatrix3() const
  2110. - Matrix4 ToMatrix4() const
  2111. - Matrix3 RotationMatrix() const
  2112. - Vector3 Translation() const
  2113. - Quaternion Rotation() const
  2114. - Vector3 Scale() const
  2115. - bool Equals(const Matrix3x4& rhs) const
  2116. - void Decompose(Vector3& translation, Quaternion& rotation, Vector3& scale) const
  2117. - Matrix3x4 Inverse() const
  2118. - String ToString() const
  2119. Properties:
  2120. - float m00
  2121. - float m01
  2122. - float m02
  2123. - float m03
  2124. - float m10
  2125. - float m11
  2126. - float m12
  2127. - float m13
  2128. - float m20
  2129. - float m21
  2130. - float m22
  2131. - float m23
  2132. - const Matrix3x4 ZERO
  2133. - const Matrix3x4 IDENTITY
  2134. ### Matrix4
  2135. Methods:
  2136. - Matrix4() (GC)
  2137. - Matrix4* new()
  2138. - Matrix4(const Matrix4& matrix) (GC)
  2139. - Matrix4* new(const Matrix4& matrix)
  2140. - Matrix4(const Matrix3& matrix) (GC)
  2141. - Matrix4* new(const Matrix3& matrix)
  2142. - 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)
  2143. - 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)
  2144. - void delete()
  2145. - bool operator==(const Matrix4& rhs) const
  2146. - Vector3 operator*(const Vector3& rhs) const
  2147. - Vector4 operator*(const Vector4& rhs) const
  2148. - Matrix4 operator+(const Matrix4& rhs) const
  2149. - Matrix4 operator-(const Matrix4& rhs) const
  2150. - Matrix4 operator*(float rhs) const
  2151. - Matrix4 operator*(const Matrix4& rhs) const
  2152. - void SetTranslation(const Vector3& translation)
  2153. - void SetRotation(const Matrix3& rotation)
  2154. - void SetScale(const Vector3& scale)
  2155. - void SetScale(float scale)
  2156. - Matrix3 ToMatrix3() const
  2157. - Matrix3 RotationMatrix() const
  2158. - Vector3 Translation() const
  2159. - Quaternion Rotation() const
  2160. - Vector3 Scale() const
  2161. - Matrix4 Transpose() const
  2162. - bool Equals(const Matrix4& rhs) const
  2163. - void Decompose(Vector3& translation, Quaternion& rotation, Vector3& scale) const
  2164. - Matrix4 Inverse() const
  2165. - String ToString() const
  2166. Properties:
  2167. - float m00
  2168. - float m01
  2169. - float m02
  2170. - float m03
  2171. - float m10
  2172. - float m11
  2173. - float m12
  2174. - float m13
  2175. - float m20
  2176. - float m21
  2177. - float m22
  2178. - float m23
  2179. - float m30
  2180. - float m31
  2181. - float m32
  2182. - float m33
  2183. - const Matrix4 ZERO
  2184. - const Matrix4 IDENTITY
  2185. ### Menu : Button
  2186. Methods:
  2187. - Menu() (GC)
  2188. - Menu* new()
  2189. - void delete()
  2190. - void SetPopup(UIElement* element)
  2191. - void SetPopupOffset(const IntVector2& offset)
  2192. - void SetPopupOffset(int x, int y)
  2193. - void ShowPopup(bool enable)
  2194. - void SetAccelerator(int key, int qualifiers)
  2195. - UIElement* GetPopup() const
  2196. - const IntVector2& GetPopupOffset() const
  2197. - bool GetShowPopup() const
  2198. - int GetAcceleratorKey() const
  2199. - int GetAcceleratorQualifiers() const
  2200. Properties:
  2201. - UIElement* popup
  2202. - IntVector2& popupOffset
  2203. - bool showPopup
  2204. - int acceleratorKey (readonly)
  2205. - int acceleratorQualifiers (readonly)
  2206. ### MessageBox : Object
  2207. Methods:
  2208. - MessageBox(const String messageString = String::EMPTY, const String titleString = String::EMPTY, XMLFile* layoutFile = 0, XMLFile* styleFile = 0) (GC)
  2209. - MessageBox* new(const String messageString = String::EMPTY, const String titleString = String::EMPTY, XMLFile* layoutFile = 0, XMLFile* styleFile = 0)
  2210. - void delete()
  2211. - void SetTitle(const String text)
  2212. - void SetMessage(const String text)
  2213. - const String GetTitle() const
  2214. - const String GetMessage() const
  2215. - UIElement* GetWindow() const
  2216. Properties:
  2217. - String title
  2218. - String message
  2219. - UIElement* window (readonly)
  2220. ### Model : Resource
  2221. Methods:
  2222. - const BoundingBox& GetBoundingBox() const
  2223. - Skeleton& GetSkeleton()
  2224. - unsigned GetNumGeometries() const
  2225. - unsigned GetNumGeometryLodLevels(unsigned index) const
  2226. - Geometry* GetGeometry(unsigned index, unsigned lodLevel) const
  2227. - unsigned GetNumMorphs() const
  2228. - const ModelMorph* GetMorph(const String name) const
  2229. - const ModelMorph* GetMorph(StringHash nameHash) const
  2230. - const ModelMorph* GetMorph(unsigned index) const
  2231. - unsigned GetMorphRangeStart(unsigned bufferIndex) const
  2232. - unsigned GetMorphRangeCount(unsigned bufferIndex) const
  2233. Properties:
  2234. - BoundingBox& boundingBox (readonly)
  2235. - Skeleton skeleton (readonly)
  2236. - unsigned numGeometries (readonly)
  2237. - unsigned numMorphs (readonly)
  2238. ### Navigable : Component
  2239. Methods:
  2240. - void SetRecursive(bool enable)
  2241. - bool IsRecursive() const
  2242. Properties:
  2243. - bool recursive
  2244. ### NavigationGeometryInfo
  2245. Properties:
  2246. - Component* component
  2247. - unsigned lodLevel
  2248. - Matrix3x4 transform
  2249. - BoundingBox boundingBox
  2250. ### NavigationMesh : Component
  2251. Methods:
  2252. - void SetTileSize(int size)
  2253. - void SetCellSize(float size)
  2254. - void SetCellHeight(float height)
  2255. - void SetAgentHeight(float height)
  2256. - void SetAgentRadius(float radius)
  2257. - void SetAgentMaxClimb(float maxClimb)
  2258. - void SetAgentMaxSlope(float maxSlope)
  2259. - void SetRegionMinSize(float size)
  2260. - void SetRegionMergeSize(float size)
  2261. - void SetEdgeMaxLength(float length)
  2262. - void SetEdgeMaxError(float error)
  2263. - void SetDetailSampleDistance(float distance)
  2264. - void SetDetailSampleMaxError(float error)
  2265. - void SetPadding(const Vector3& padding)
  2266. - bool Build()
  2267. - bool Build(const BoundingBox& boundingBox)
  2268. - Vector3 FindNearestPoint(const Vector3& point)
  2269. - Vector3 FindNearestPoint(const Vector3& point, const Vector3& extents)
  2270. - Vector3 MoveAlongSurface(const Vector3& start, const Vector3& end)
  2271. - Vector3 MoveAlongSurface(const Vector3& start, const Vector3& end, const Vector3& extents, int maxVisited = 3)
  2272. - const PODVector<Vector3>& FindPath(const Vector3& start, const Vector3& end)
  2273. - const PODVector<Vector3>& FindPath(const Vector3& start, const Vector3& end, const Vector3& extents)
  2274. - Vector3 GetRandomPoint()
  2275. - Vector3 GetRandomPointInCircle(const Vector3& center, float radius)
  2276. - Vector3 GetRandomPointInCircle(const Vector3& center, float radius, const Vector3& extents)
  2277. - float GetDistanceToWall(const Vector3& point, float radius)
  2278. - float GetDistanceToWall(const Vector3& point, float radius, const Vector3& extents)
  2279. - Vector3 Raycast(const Vector3& start, const Vector3& end)
  2280. - Vector3 Raycast(const Vector3& start, const Vector3& end, const Vector3& extents)
  2281. - void DrawDebugGeometry(bool depthTest)
  2282. - int GetTileSize() const
  2283. - float GetCellSize() const
  2284. - float GetCellHeight() const
  2285. - float GetAgentHeight() const
  2286. - float GetAgentRadius() const
  2287. - float GetAgentMaxClimb() const
  2288. - float GetAgentMaxSlope() const
  2289. - float GetRegionMinSize() const
  2290. - float GetRegionMergeSize() const
  2291. - float GetEdgeMaxLength() const
  2292. - float GetEdgeMaxError() const
  2293. - float GetDetailSampleDistance() const
  2294. - float GetDetailSampleMaxError() const
  2295. - const Vector3& GetPadding() const
  2296. - bool IsInitialized() const
  2297. - const BoundingBox& GetBoundingBox() const
  2298. - BoundingBox GetWorldBoundingBox() const
  2299. - IntVector2 GetNumTiles() const
  2300. Properties:
  2301. - int tileSize
  2302. - float cellSize
  2303. - float cellHeight
  2304. - float agentHeight
  2305. - float agentRadius
  2306. - float agentMaxClimb
  2307. - float agentMaxSlope
  2308. - float regionMinSize
  2309. - float regionMergeSize
  2310. - float edgeMaxLength
  2311. - float edgeMaxError
  2312. - float detailSampleDistance
  2313. - float detailSampleMaxError
  2314. - Vector3& padding
  2315. - bool initialized (readonly)
  2316. - BoundingBox& boundingBox (readonly)
  2317. - BoundingBox worldBoundingBox (readonly)
  2318. - IntVector2 numTiles (readonly)
  2319. ### Network
  2320. Methods:
  2321. - bool Connect(const String address, short port, Scene* scene)
  2322. - bool Connect(const String address, short port, Scene* scene, const VariantMap& identity)
  2323. - void Disconnect(int waitMSec = 0)
  2324. - bool StartServer(short port)
  2325. - void StopServer()
  2326. - void BroadcastMessage(int msgID, bool reliable, bool inOrder, const VectorBuffer& msg, unsigned contentID = 0)
  2327. - void BroadcastRemoteEvent(StringHash eventType, bool inOrder)
  2328. - void BroadcastRemoteEvent(StringHash eventType, bool inOrder, const VariantMap& eventData)
  2329. - void BroadcastRemoteEvent(const String eventType, bool inOrder)
  2330. - void BroadcastRemoteEvent(const String eventType, bool inOrder, const VariantMap& eventData)
  2331. - void BroadcastRemoteEvent(Scene* scene, StringHash eventType, bool inOrder)
  2332. - void BroadcastRemoteEvent(Scene* scene, StringHash eventType, bool inOrder, const VariantMap& eventData)
  2333. - void BroadcastRemoteEvent(Scene* scene, const String eventType, bool inOrder)
  2334. - void BroadcastRemoteEvent(Scene* scene, const String eventType, bool inOrder, const VariantMap& eventData)
  2335. - void BroadcastRemoteEvent(Node* node, StringHash eventType, bool inOrder)
  2336. - void BroadcastRemoteEvent(Node* node, StringHash eventType, bool inOrder, const VariantMap& eventData)
  2337. - void BroadcastRemoteEvent(Node* node, const String eventType, bool inOrder)
  2338. - void BroadcastRemoteEvent(Node* node, const String eventType, bool inOrder, const VariantMap& eventData)
  2339. - void SetUpdateFps(int fps)
  2340. - void RegisterRemoteEvent(StringHash eventType)
  2341. - void RegisterRemoteEvent(const String eventType)
  2342. - void UnregisterRemoteEvent(StringHash eventType)
  2343. - void UnregisterRemoteEvent(const String eventType)
  2344. - void UnregisterAllRemoteEvents()
  2345. - void SetPackageCacheDir(const String path)
  2346. - HttpRequest* MakeHttpRequest(const String url, const String verb = String::EMPTY)
  2347. - HttpRequest* MakeHttpRequest(const String url, const String verb, const Vector<String>& headers, const String postData = String::EMPTY)
  2348. - int GetUpdateFps() const
  2349. - Connection* GetServerConnection() const
  2350. - bool IsServerRunning() const
  2351. - bool CheckRemoteEvent(StringHash eventType) const
  2352. - const String GetPackageCacheDir() const
  2353. Properties:
  2354. - int updateFps
  2355. - Connection* serverConnection (readonly)
  2356. - bool serverRunning (readonly)
  2357. - String packageCacheDir
  2358. ### NetworkPriority : Component
  2359. Methods:
  2360. - void SetBasePriority(float priority)
  2361. - void SetDistanceFactor(float factor)
  2362. - void SetMinPriority(float priority)
  2363. - void SetAlwaysUpdateOwner(bool enable)
  2364. - float GetBasePriority() const
  2365. - float GetDistanceFactor() const
  2366. - float GetMinPriority() const
  2367. - bool GetAlwaysUpdateOwner() const
  2368. - bool CheckUpdate(float distance, float accumulator)
  2369. Properties:
  2370. - float basePriority
  2371. - float distanceFactor
  2372. - float minPriority
  2373. - bool alwaysUpdateOwner
  2374. ### Node : Animatable
  2375. Methods:
  2376. - Node() (GC)
  2377. - Node* new()
  2378. - void delete()
  2379. - bool SaveXML(File* dest) const
  2380. - void SetName(const String name)
  2381. - void SetPosition(const Vector3& position)
  2382. - void SetPositionXYZ(float x, float y, float z)
  2383. - void SetRotation(const Quaternion& rotation)
  2384. - void SetRotationXYZ(float x, float y, float z)
  2385. - void SetDirection(const Vector3& direction)
  2386. - void SetDirectionXYZ(float x, float y, float z)
  2387. - void SetScale(float scale)
  2388. - void SetScale(const Vector3& scale)
  2389. - void SetScaleXYZ(float x, float y, float z)
  2390. - void SetTransform(const Vector3& position, const Quaternion& rotation)
  2391. - void SetTransform(const Vector3& position, const Quaternion& rotation, float scale)
  2392. - void SetTransform(const Vector3& position, const Quaternion& rotation, const Vector3& scale)
  2393. - void SetWorldPosition(const Vector3& position)
  2394. - void SetWorldPositionXYZ(float x, float y, float z)
  2395. - void SetWorldRotation(const Quaternion& rotation)
  2396. - void SetWorldRotationXYZ(float x, float y, float z)
  2397. - void SetWorldDirection(const Vector3& direction)
  2398. - void SetWorldDirectionXYZ(float x, float y, float z)
  2399. - void SetWorldScale(float scale)
  2400. - void SetWorldScale(const Vector3& scale)
  2401. - void SetWorldScaleXYZ(float x, float y, float z)
  2402. - void SetWorldTransform(const Vector3& position, const Quaternion& rotation)
  2403. - void SetWorldTransform(const Vector3& position, const Quaternion& rotation, float scale)
  2404. - void SetWorldTransform(const Vector3& position, const Quaternion& rotation, const Vector3& scale)
  2405. - void Translate(const Vector3& delta, TransformSpace space = TS_LOCAL)
  2406. - void TranslateXYZ(float x, float y, float z, TransformSpace space = TS_LOCAL)
  2407. - void Rotate(const Quaternion& delta, TransformSpace space = TS_LOCAL)
  2408. - void RotateXYZ(float x, float y, float z, TransformSpace space = TS_LOCAL)
  2409. - void RotateAround(const Vector3& point, const Quaternion& delta, TransformSpace space = TS_LOCAL)
  2410. - void RotateAroundXYZ(float pX, float pY, float pZ, float dX, float dY, float dZ, TransformSpace space = TS_LOCAL)
  2411. - void Pitch(float angle, TransformSpace space = TS_LOCAL)
  2412. - void Yaw(float angle, TransformSpace space = TS_LOCAL)
  2413. - void Roll(float angle, TransformSpace space = TS_LOCAL)
  2414. - bool LookAt(const Vector3& target)
  2415. - bool LookAt(const Vector3& target, const Vector3& upAxis, TransformSpace space = TS_WORLD)
  2416. - bool LookAtXYZ(float x, float y, float z, float upX = 0.0f, float upY = 1.0f, float upZ = 0.0f, TransformSpace space = TS_WORLD)
  2417. - void Scale(float scale)
  2418. - void Scale(const Vector3& scale)
  2419. - void ScaleXYZ(float x, float y, float z)
  2420. - void SetEnabled(bool enable)
  2421. - void SetEnabled(bool enable, bool recursive)
  2422. - void SetOwner(Connection* owner)
  2423. - void MarkDirty()
  2424. - Node* CreateChild(const String name = String::EMPTY, CreateMode mode = REPLICATED, unsigned id = 0)
  2425. - void AddChild(Node* node, unsigned index = M_MAX_UNSIGNED)
  2426. - void RemoveChild(Node* node)
  2427. - void RemoveAllChildren()
  2428. - void RemoveChildren(bool removeReplicated, bool removeLocal, bool recursive)
  2429. - void RemoveComponent(Component* component)
  2430. - void RemoveComponent(ShortStringHash type)
  2431. - void RemoveComponent(const String type)
  2432. - void RemoveAllComponents()
  2433. - void RemoveComponents(bool removeReplicated, bool removeLocal)
  2434. - Node* Clone(CreateMode mode = REPLICATED)
  2435. - void Remove()
  2436. - void SetParent(Node* parent)
  2437. - void SetVar(ShortStringHash key, const Variant& value)
  2438. - void AddListener(Component* component)
  2439. - void RemoveListener(Component* component)
  2440. - Component* CreateComponent(const String type, CreateMode mode = REPLICATED, unsigned id = 0)
  2441. - int CreateScriptObject(const String scriptObjectType)
  2442. - int CreateScriptObject(const String fileName, const String scriptObjectType)
  2443. - int GetScriptObject() const
  2444. - int GetScriptObject(const String scriptObjectType) const
  2445. - unsigned GetID() const
  2446. - const String GetName() const
  2447. - StringHash GetNameHash() const
  2448. - Node* GetParent() const
  2449. - Scene* GetScene() const
  2450. - bool IsEnabled() const
  2451. - Connection* GetOwner() const
  2452. - const Vector3& GetPosition() const
  2453. - void GetPositionXYZ(float x = 0.0f, float y = 0.0f, float z = 0.0f) const
  2454. - const Quaternion& GetRotation() const
  2455. - void GetRotationXYZ(float x = 0.0f, float y = 0.0f, float z = 0.0f) const
  2456. - void GetRotationWXYZ(float w = 0.0f, float x = 0.0f, float y = 0.0f, float z = 0.0f) const
  2457. - Vector3 GetDirection() const
  2458. - void GetDirectionXYZ(float x = 0.0f, float y = 0.0f, float z = 0.0f) const
  2459. - Vector3 GetUp() const
  2460. - void GetUpXYZ(float x = 0.0f, float y = 0.0f, float z = 0.0f) const
  2461. - Vector3 GetRight() const
  2462. - void GetRightXYZ(float x = 0.0f, float y = 0.0f, float z = 0.0f) const
  2463. - const Vector3& GetScale() const
  2464. - void GetScaleXYZ(float x = 0.0f, float y = 0.0f, float z = 0.0f) const
  2465. - Matrix3x4 GetTransform() const
  2466. - Vector3 GetWorldPosition() const
  2467. - void GetWorldPositionXYZ(float x = 0.0f, float y = 0.0f, float z = 0.0f) const
  2468. - Quaternion GetWorldRotation() const
  2469. - void GetWorldRotationXYZ(float x = 0.0f, float y = 0.0f, float z = 0.0f) const
  2470. - void GetWorldRotationWXYZ(float w = 0.0f, float x = 0.0f, float y = 0.0f, float z = 0.0f) const
  2471. - Vector3 GetWorldDirection() const
  2472. - void GetWorldDirectionXYZ(float x = 0.0f, float y = 0.0f, float z = 0.0f) const
  2473. - Vector3 GetWorldUp() const
  2474. - void GetWorldUpXYZ(float x = 0.0f, float y = 0.0f, float z = 0.0f) const
  2475. - Vector3 GetWorldRight() const
  2476. - void GetWorldRightXYZ(float x = 0.0f, float y = 0.0f, float z = 0.0f) const
  2477. - Vector3 GetWorldScale() const
  2478. - void GetWorldScaleXYZ(float x = 0.0f, float y = 0.0f, float z = 0.0f) const
  2479. - const Matrix3x4& GetWorldTransform() const
  2480. - Vector3 LocalToWorld(const Vector3& position) const
  2481. - Vector3 LocalToWorld(const Vector4& vector) const
  2482. - Vector3 WorldToLocal(const Vector3& position) const
  2483. - Vector3 WorldToLocal(const Vector4& vector) const
  2484. - bool IsDirty() const
  2485. - unsigned GetNumChildren(bool recursive = false) const
  2486. - Node* GetChild(const String name, bool recursive = false) const
  2487. - Node* GetChild(StringHash nameHash, bool recursive = false) const
  2488. - Node* GetChild(unsigned index) const
  2489. - unsigned GetNumComponents() const
  2490. - unsigned GetNumNetworkComponents() const
  2491. - bool HasComponent(ShortStringHash type) const
  2492. - bool HasComponent(const String type) const
  2493. - const Variant& GetVar(ShortStringHash key) const
  2494. - const VariantMap& GetVars() const
  2495. - Component* GetComponent(const String type) const
  2496. - void SetID(unsigned id)
  2497. - void SetScene(Scene* scene)
  2498. - void ResetScene()
  2499. - bool Load(Deserializer& source, SceneResolver& resolver, bool loadChildren = true, bool rewriteIDs = false, CreateMode mode = REPLICATED)
  2500. - bool LoadXML(const XMLElement& source, SceneResolver& resolver, bool loadChildren = true, bool rewriteIDs = false, CreateMode mode = REPLICATED)
  2501. - Node* CreateChild(unsigned id, CreateMode mode)
  2502. - void AddComponent(Component* component, unsigned id, CreateMode mode)
  2503. Properties:
  2504. - unsigned ID
  2505. - String name
  2506. - StringHash nameHash (readonly)
  2507. - Node* parent
  2508. - Scene* scene
  2509. - bool enabled
  2510. - Connection* owner
  2511. - Vector3& position
  2512. - Quaternion& rotation
  2513. - Vector3 direction
  2514. - Vector3 up (readonly)
  2515. - Vector3 right (readonly)
  2516. - Vector3& scale
  2517. - Matrix3x4 transform (readonly)
  2518. - Vector3 worldPosition
  2519. - Quaternion worldRotation
  2520. - Vector3 worldDirection
  2521. - Vector3 worldUp (readonly)
  2522. - Vector3 worldRight (readonly)
  2523. - Vector3 worldScale
  2524. - Matrix3x4& worldTransform (readonly)
  2525. - bool dirty (readonly)
  2526. - unsigned numComponents (readonly)
  2527. - unsigned numNetworkComponents (readonly)
  2528. ### Object : RefCounted
  2529. Methods:
  2530. - ShortStringHash GetType() const
  2531. - ShortStringHash GetBaseType() const
  2532. - const String GetTypeName() const
  2533. - const String GetCategory() const
  2534. - void SendEvent(const String eventName, VariantMap* eventData = 0)
  2535. Properties:
  2536. - ShortStringHash type (readonly)
  2537. - ShortStringHash baseType (readonly)
  2538. - const String typeName (readonly)
  2539. - const String category (readonly)
  2540. ### ObjectAnimation : Resource
  2541. Methods:
  2542. - ObjectAnimation() (GC)
  2543. - ObjectAnimation* new()
  2544. - void delete()
  2545. - void AddAttributeAnimation(const String name, AttributeAnimation* attributeAnimation, WrapMode wrapMode = WM_LOOP, float speed = 1.0f)
  2546. - void RemoveAttributeAnimation(const String name)
  2547. - void RemoveAttributeAnimation(AttributeAnimation* attributeAnimation)
  2548. - AttributeAnimation* GetAttributeAnimation(const String name) const
  2549. - WrapMode GetAttributeAnimationWrapMode(const String name) const
  2550. - float GetAttributeAnimationSpeed(const String name) const
  2551. ### Octree : Component
  2552. Methods:
  2553. - void SetSize(const BoundingBox& box, unsigned numLevels)
  2554. - void Update(const FrameInfo& frame)
  2555. - void AddManualDrawable(Drawable* drawable)
  2556. - void RemoveManualDrawable(Drawable* drawable)
  2557. - const PODVector<OctreeQueryResult>& GetDrawables(const Vector3& point, char drawableFlags = DRAWABLE_ANY, unsigned viewMask = DEFAULT_VIEWMASK) const
  2558. - const PODVector<OctreeQueryResult>& GetDrawables(const BoundingBox& box, char drawableFlags = DRAWABLE_ANY, unsigned viewMask = DEFAULT_VIEWMASK) const
  2559. - const PODVector<OctreeQueryResult>& GetDrawables(const Frustum& frustum, char drawableFlags = DRAWABLE_ANY, unsigned viewMask = DEFAULT_VIEWMASK) const
  2560. - const PODVector<OctreeQueryResult>& GetDrawables(const Sphere& sphere, char drawableFlags = DRAWABLE_ANY, unsigned viewMask = DEFAULT_VIEWMASK) const
  2561. - const PODVector<RayQueryResult>& Raycast(const Ray& ray, RayQueryLevel level, float maxDistance, char drawableFlags) const
  2562. - RayQueryResult RaycastSingle(const Ray& ray, RayQueryLevel level, float maxDistance, char drawableFlags) const
  2563. - unsigned GetNumLevels() const
  2564. - void QueueUpdate(Drawable* drawable)
  2565. - void DrawDebugGeometry(bool depthTest)
  2566. Properties:
  2567. - unsigned numLevels (readonly)
  2568. ### OctreeQueryResult
  2569. Methods:
  2570. - OctreeQueryResult() (GC)
  2571. - OctreeQueryResult* new()
  2572. - void delete()
  2573. Properties:
  2574. - Drawable* drawable
  2575. - Node* node
  2576. ### OffMeshConnection : Component
  2577. Methods:
  2578. - void SetEndPoint(Node* node)
  2579. - void SetRadius(float radius)
  2580. - void SetBidirectional(bool enabled)
  2581. - Node* GetEndPoint() const
  2582. - float GetRadius() const
  2583. - bool IsBidirectional() const
  2584. Properties:
  2585. - Node* endPoint
  2586. - float radius
  2587. - bool bidirectional
  2588. ### PackageEntry
  2589. Properties:
  2590. - unsigned offset
  2591. - unsigned size
  2592. - unsigned checksum
  2593. ### PackageFile : Object
  2594. Methods:
  2595. - PackageFile() (GC)
  2596. - PackageFile* new()
  2597. - PackageFile(const String fileName, unsigned startOffset = 0) (GC)
  2598. - PackageFile* new(const String fileName, unsigned startOffset = 0)
  2599. - void delete()
  2600. - bool Open(const String fileName, unsigned startOffset = 0)
  2601. - bool Exists(const String fileName) const
  2602. - const PackageEntry* GetEntry(const String fileName) const
  2603. - const HashMap<String,PackageEntry>& GetEntries() const
  2604. - const String GetName() const
  2605. - StringHash GetNameHash() const
  2606. - unsigned GetNumFiles() const
  2607. - unsigned GetTotalSize() const
  2608. - unsigned GetChecksum() const
  2609. - bool IsCompressed() const
  2610. Properties:
  2611. - String name (readonly)
  2612. - StringHash nameHash (readonly)
  2613. - unsigned numFiles (readonly)
  2614. - unsigned totalSize (readonly)
  2615. - unsigned checksum (readonly)
  2616. - bool compressed (readonly)
  2617. ### ParticleEffect2D : Resource
  2618. ### ParticleEmitter : BillboardSet
  2619. Methods:
  2620. - bool Load(XMLFile* file)
  2621. - bool Save(XMLFile* file)
  2622. - void SetNumParticles(unsigned num)
  2623. - void SetEmissionRate(float rate)
  2624. - void SetMinEmissionRate(float rate)
  2625. - void SetMaxEmissionRate(float rate)
  2626. - void SetEmitterType(EmitterType type)
  2627. - void SetEmitterSize(const Vector3& size)
  2628. - void SetActiveTime(float time)
  2629. - void SetInactiveTime(float time)
  2630. - void SetEmitting(bool enable, bool resetPeriod = false)
  2631. - void SetUpdateInvisible(bool enable)
  2632. - void SetTimeToLive(float time)
  2633. - void SetMinTimeToLive(float time)
  2634. - void SetMaxTimeToLive(float time)
  2635. - void SetParticleSize(const Vector2& size)
  2636. - void SetMinParticleSize(const Vector2& size)
  2637. - void SetMaxParticleSize(const Vector2& size)
  2638. - void SetMinDirection(const Vector3& direction)
  2639. - void SetMaxDirection(const Vector3& direction)
  2640. - void SetVelocity(float velocity)
  2641. - void SetMinVelocity(float velocity)
  2642. - void SetMaxVelocity(float velocity)
  2643. - void SetRotation(float rotation)
  2644. - void SetMinRotation(float rotation)
  2645. - void SetMaxRotation(float rotation)
  2646. - void SetRotationSpeed(float speed)
  2647. - void SetMinRotationSpeed(float speed)
  2648. - void SetMaxRotationSpeed(float speed)
  2649. - void SetConstantForce(const Vector3& force)
  2650. - void SetDampingForce(float force)
  2651. - void SetSizeAdd(float sizeAdd)
  2652. - void SetSizeMul(float sizeMul)
  2653. - void SetColor(const Color& color)
  2654. - void SetNumColors(unsigned num)
  2655. - void SetNumTextureFrames(unsigned num)
  2656. - unsigned GetNumParticles() const
  2657. - bool IsEmitting() const
  2658. - bool GetUpdateInvisible() const
  2659. - float GetMinEmissionRate() const
  2660. - float GetMaxEmissionRate() const
  2661. - EmitterType GetEmitterType() const
  2662. - const Vector3& GetEmitterSize() const
  2663. - float GetActiveTime() const
  2664. - float GetInactiveTime() const
  2665. - float GetMinTimeToLive() const
  2666. - float GetMaxTimeToLive() const
  2667. - const Vector2& GetMinParticleSize() const
  2668. - const Vector2& GetMaxParticleSize() const
  2669. - const Vector3& GetMinDirection() const
  2670. - const Vector3& GetMaxDirection() const
  2671. - float GetMinVelocity() const
  2672. - float GetMaxVelocity() const
  2673. - float GetMinRotation() const
  2674. - float GetMaxRotation() const
  2675. - float GetMinRotationSpeed() const
  2676. - float GetMaxRotationSpeed() const
  2677. - const Vector3& GetConstantForce() const
  2678. - float GetDampingForce() const
  2679. - float GetSizeAdd() const
  2680. - float GetSizeMul() const
  2681. - unsigned GetNumColors() const
  2682. - ColorFrame* GetColor(unsigned index)
  2683. - unsigned GetNumTextureFrames() const
  2684. - TextureFrame* GetTextureFrame(unsigned index)
  2685. Properties:
  2686. - unsigned numParticles
  2687. - float emissionRate
  2688. - bool emitting
  2689. - bool updateInvisible
  2690. - float minEmissionRate
  2691. - float maxEmissionRate
  2692. - EmitterType emitterType
  2693. - Vector3& emitterSize
  2694. - float activeTime
  2695. - float inactiveTime
  2696. - float timeToLive
  2697. - float minTimeToLive
  2698. - float maxTimeToLive
  2699. - Vector2& particleSize
  2700. - Vector2& minParticleSize
  2701. - Vector2& maxParticleSize
  2702. - Vector3& minDirection
  2703. - Vector3& maxDirection
  2704. - float velocity
  2705. - float minVelocity
  2706. - float maxVelocity
  2707. - float rotation
  2708. - float minRotation
  2709. - float maxRotation
  2710. - float rotationSpeed
  2711. - float minRotationSpeed
  2712. - float maxRotationSpeed
  2713. - Vector3& constantForce
  2714. - float dampingForce
  2715. - float sizeAdd
  2716. - float sizeMul
  2717. - unsigned numColors
  2718. - unsigned numTextureFrames
  2719. ### ParticleEmitter2D : Drawable2D
  2720. Methods:
  2721. - void SetEffect(ParticleEffect2D* effect)
  2722. - ParticleEffect2D* GetEffect() const
  2723. Properties:
  2724. - ParticleEffect2D* effect
  2725. ### Pass : RefCounted
  2726. Methods:
  2727. - bool IsSM3() const
  2728. Properties:
  2729. - bool SM3 (readonly)
  2730. ### PhysicsRaycastResult
  2731. Methods:
  2732. - PhysicsRaycastResult() (GC)
  2733. - PhysicsRaycastResult* new()
  2734. - void delete()
  2735. Properties:
  2736. - Vector3 position
  2737. - Vector3 normal
  2738. - float distance
  2739. - RigidBody* body
  2740. ### PhysicsRaycastResult2D
  2741. Methods:
  2742. - PhysicsRaycastResult2D() (GC)
  2743. - PhysicsRaycastResult2D* new()
  2744. - void delete()
  2745. Properties:
  2746. - Vector2 position
  2747. - Vector2 normal
  2748. - float distance
  2749. - RigidBody2D* body
  2750. ### PhysicsWorld : Component
  2751. Methods:
  2752. - void Update(float timeStep)
  2753. - void UpdateCollisions()
  2754. - void SetFps(int fps)
  2755. - void SetGravity(Vector3 gravity)
  2756. - void SetNumIterations(int num)
  2757. - void SetInterpolation(bool enable)
  2758. - void SetInternalEdge(bool enable)
  2759. - void SetSplitImpulse(bool enable)
  2760. - void SetMaxNetworkAngularVelocity(float velocity)
  2761. - const PODVector<PhysicsRaycastResult>& Raycast(const Ray& ray, float maxDistance, unsigned collisionMask = M_MAX_UNSIGNED)
  2762. - PhysicsRaycastResult RaycastSingle(const Ray& ray, float maxDistance, unsigned collisionMask = M_MAX_UNSIGNED)
  2763. - PhysicsRaycastResult SphereCast(const Ray& ray, float radius, float maxDistance, unsigned collisionMask = M_MAX_UNSIGNED)
  2764. - const PODVector<RigidBody*>& GetRigidBodies(const Sphere& sphere, unsigned collisionMask = M_MAX_UNSIGNED)
  2765. - const PODVector<RigidBody*>& GetRigidBodies(const BoundingBox& box, unsigned collisionMask = M_MAX_UNSIGNED)
  2766. - const PODVector<RigidBody*>& GetRigidBodies(const RigidBody* body)
  2767. - void DrawDebugGeometry(bool depthTest)
  2768. - void RemoveCachedGeometry(Model* model)
  2769. - Vector3 GetGravity() const
  2770. - int GetNumIterations() const
  2771. - bool GetInterpolation() const
  2772. - bool GetInternalEdge() const
  2773. - bool GetSplitImpulse() const
  2774. - int GetFps() const
  2775. - float GetMaxNetworkAngularVelocity() const
  2776. Properties:
  2777. - Vector3 gravity
  2778. - int numIterations
  2779. - bool interpolation
  2780. - bool internalEdge
  2781. - bool splitImpulse
  2782. - int fps
  2783. - float maxNetworkAngularVelocity
  2784. - bool applyingTransforms
  2785. ### PhysicsWorld2D : Component
  2786. Methods:
  2787. - void DrawDebugGeometry()
  2788. - void SetDrawShape(bool drawShape)
  2789. - void SetDrawJoint(bool drawJoint)
  2790. - void SetDrawAabb(bool drawAabb)
  2791. - void SetDrawPair(bool drawPair)
  2792. - void SetDrawCenterOfMass(bool drawCenterOfMass)
  2793. - void SetAllowSleeping(bool enable)
  2794. - void SetWarmStarting(bool enable)
  2795. - void SetContinuousPhysics(bool enable)
  2796. - void SetSubStepping(bool enable)
  2797. - void SetGravity(const Vector2& gravity)
  2798. - void SetAutoClearForces(bool enable)
  2799. - void SetVelocityIterations(int velocityIterations)
  2800. - void SetPositionIterations(int positionIterations)
  2801. - const PODVector<PhysicsRaycastResult2D>& Raycast(const Vector2& startPoint, const Vector2& endPoint, unsigned collisionMask = M_MAX_UNSIGNED)
  2802. - PhysicsRaycastResult2D RaycastSingle(const Vector2& startPoint, const Vector2& endPoint, unsigned collisionMask = M_MAX_UNSIGNED)
  2803. - RigidBody2D* GetRigidBody(const Vector2& point, unsigned collisionMask = M_MAX_UNSIGNED)
  2804. - RigidBody2D* GetRigidBody(int screenX, int screenY, unsigned collisionMask = M_MAX_UNSIGNED, Camera* camera = 0)
  2805. - const PODVector<RigidBody2D*>& GetRigidBodies(const Rect& aabb, unsigned collisionMask = M_MAX_UNSIGNED)
  2806. - bool GetDrawShape() const
  2807. - bool GetDrawJoint() const
  2808. - bool GetDrawAabb() const
  2809. - bool GetDrawPair() const
  2810. - bool GetDrawCenterOfMass() const
  2811. - bool GetAllowSleeping() const
  2812. - bool GetWarmStarting() const
  2813. - bool GetContinuousPhysics() const
  2814. - bool GetSubStepping() const
  2815. - bool GetAutoClearForces() const
  2816. - const Vector2& GetGravity() const
  2817. - int GetVelocityIterations() const
  2818. - int GetPositionIterations() const
  2819. Properties:
  2820. - bool drawShape
  2821. - bool drawJoint
  2822. - bool drawAabb
  2823. - bool drawPair
  2824. - bool drawCenterOfMass
  2825. - bool allowSleeping
  2826. - bool warmStarting
  2827. - bool continuousPhysics
  2828. - bool subStepping
  2829. - bool autoClearForces
  2830. - Vector2& gravity
  2831. - int velocityIterations
  2832. - int positionIterations
  2833. ### Plane
  2834. Methods:
  2835. - Plane() (GC)
  2836. - Plane* new()
  2837. - Plane(const Plane& plane) (GC)
  2838. - Plane* new(const Plane& plane)
  2839. - Plane(const Vector3& v0, const Vector3& v1, const Vector3& v2) (GC)
  2840. - Plane* new(const Vector3& v0, const Vector3& v1, const Vector3& v2)
  2841. - Plane(const Vector3& normal, const Vector3& point) (GC)
  2842. - Plane* new(const Vector3& normal, const Vector3& point)
  2843. - Plane(const Vector4& plane) (GC)
  2844. - Plane* new(const Vector4& plane)
  2845. - void delete()
  2846. - void Define(const Vector3& v0, const Vector3& v1, const Vector3& v2)
  2847. - void Define(const Vector3& normal, const Vector3& point)
  2848. - void Define(const Vector4& plane)
  2849. - void Transform(const Matrix3& transform)
  2850. - void Transform(const Matrix3x4& transform)
  2851. - void Transform(const Matrix4& transform)
  2852. - float Distance(const Vector3& point) const
  2853. - Vector3 Reflect(const Vector3& direction) const
  2854. - Matrix3x4 ReflectionMatrix() const
  2855. - Plane Transformed(const Matrix3& transform) const
  2856. - Plane Transformed(const Matrix3x4& transform) const
  2857. - Plane Transformed(const Matrix4& transform) const
  2858. - Vector4 ToVector4() const
  2859. Properties:
  2860. - Vector3 normal
  2861. - Vector3 absNormal
  2862. - float d
  2863. - const Plane UP
  2864. ### Polyhedron
  2865. Methods:
  2866. - Polyhedron() (GC)
  2867. - Polyhedron* new()
  2868. - Polyhedron(const Polyhedron& polyhedron) (GC)
  2869. - Polyhedron* new(const Polyhedron& polyhedron)
  2870. - Polyhedron(const BoundingBox& box) (GC)
  2871. - Polyhedron* new(const BoundingBox& box)
  2872. - Polyhedron(const Frustum& frustum) (GC)
  2873. - Polyhedron* new(const Frustum& frustum)
  2874. - void delete()
  2875. - void Define(const BoundingBox& box)
  2876. - void Define(const Frustum& frustum)
  2877. - void AddFace(const Vector3& v0, const Vector3& v1, const Vector3& v2)
  2878. - void AddFace(const Vector3& v0, const Vector3& v1, const Vector3& v2, const Vector3& v3)
  2879. - void Clip(const Plane& plane)
  2880. - void Clip(const BoundingBox& box)
  2881. - void Clip(const Frustum& box)
  2882. - void Clear()
  2883. - void Transform(const Matrix3& transform)
  2884. - void Transform(const Matrix3x4& transform)
  2885. - Polyhedron Transformed(const Matrix3& transform) const
  2886. - Polyhedron Transformed(const Matrix3x4& transform) const
  2887. - bool Empty() const
  2888. Properties:
  2889. - bool empty (readonly)
  2890. ### Quaternion
  2891. Methods:
  2892. - Quaternion() (GC)
  2893. - Quaternion* new()
  2894. - Quaternion(const Quaternion& quat) (GC)
  2895. - Quaternion* new(const Quaternion& quat)
  2896. - Quaternion(float w, float x, float y, float z) (GC)
  2897. - Quaternion* new(float w, float x, float y, float z)
  2898. - Quaternion(float angle, const Vector3& axis) (GC)
  2899. - Quaternion* new(float angle, const Vector3& axis)
  2900. - Quaternion(float x, float y, float z) (GC)
  2901. - Quaternion* new(float x, float y, float z)
  2902. - Quaternion(const Vector3& start, const Vector3& end) (GC)
  2903. - Quaternion* new(const Vector3& start, const Vector3& end)
  2904. - Quaternion(const Vector3& xAxis, const Vector3& yAxis, const Vector3& zAxis) (GC)
  2905. - Quaternion* new(const Vector3& xAxis, const Vector3& yAxis, const Vector3& zAxis)
  2906. - Quaternion(const Matrix3& matrix) (GC)
  2907. - Quaternion* new(const Matrix3& matrix)
  2908. - void delete()
  2909. - bool operator==(const Quaternion& rhs) const
  2910. - Quaternion operator*(float rhs) const
  2911. - Quaternion operator-() const
  2912. - bool operator==(const Quaternion& rhs) const
  2913. - Quaternion operator*(float rhs) const
  2914. - Quaternion operator-() const
  2915. - Quaternion operator+(const Quaternion& rhs) const
  2916. - Quaternion operator-(const Quaternion& rhs) const
  2917. - Quaternion operator*(const Quaternion& rhs) const
  2918. - Vector3 operator*(const Vector3& rhs) const
  2919. - void FromAngleAxis(float angle, const Vector3& axis)
  2920. - void FromEulerAngles(float x, float y, float z)
  2921. - void FromRotationTo(const Vector3& start, const Vector3& end)
  2922. - void FromAxes(const Vector3& xAxis, const Vector3& yAxis, const Vector3& zAxis)
  2923. - void FromRotationMatrix(const Matrix3& matrix)
  2924. - bool FromLookRotation(const Vector3& direction, const Vector3& up)
  2925. - void Normalize()
  2926. - Quaternion Normalized() const
  2927. - Quaternion Inverse() const
  2928. - float LengthSquared() const
  2929. - float DotProduct(const Quaternion& rhs) const
  2930. - bool Equals(const Quaternion& rhs) const
  2931. - bool IsNaN() const
  2932. - Quaternion Conjugate() const
  2933. - Vector3 EulerAngles() const
  2934. - float YawAngle() const
  2935. - float PitchAngle() const
  2936. - float RollAngle() const
  2937. - Matrix3 RotationMatrix() const
  2938. - Quaternion Slerp(Quaternion rhs, float t) const
  2939. - Quaternion Nlerp(Quaternion rhs, float t, bool shortestPath) const
  2940. - String ToString() const
  2941. Properties:
  2942. - float w
  2943. - float x
  2944. - float y
  2945. - float z
  2946. - const Quaternion IDENTITY
  2947. ### Ray
  2948. Methods:
  2949. - Ray() (GC)
  2950. - Ray* new()
  2951. - Ray(const Vector3& origin, const Vector3& direction) (GC)
  2952. - Ray* new(const Vector3& origin, const Vector3& direction)
  2953. - Ray(const Ray& ray) (GC)
  2954. - Ray* new(const Ray& ray)
  2955. - void delete()
  2956. - bool operator==(const Ray& rhs) const
  2957. - void Define(const Vector3& origin, const Vector3& direction)
  2958. - Vector3 Project(const Vector3& point) const
  2959. - float Distance(const Vector3& point) const
  2960. - Vector3 ClosestPoint(const Ray& ray) const
  2961. - float HitDistance(const Plane& plane) const
  2962. - float HitDistance(const BoundingBox& box) const
  2963. - float HitDistance(const Frustum& frustum, bool solidInside = true) const
  2964. - float HitDistance(const Sphere& sphere) const
  2965. - float HitDistance(const Vector3& v0, const Vector3& v1, const Vector3& v2) const
  2966. - Ray Transformed(const Matrix3x4& transform) const
  2967. Properties:
  2968. - Vector3 origin
  2969. - Vector3 direction
  2970. ### RayQueryResult
  2971. Methods:
  2972. - RayQueryResult() (GC)
  2973. - RayQueryResult* new()
  2974. - void delete()
  2975. Properties:
  2976. - Vector3 position
  2977. - Vector3 normal
  2978. - float distance
  2979. - Drawable* drawable
  2980. - Node* node
  2981. - unsigned subObject
  2982. ### Rect
  2983. Methods:
  2984. - Rect() (GC)
  2985. - Rect* new()
  2986. - Rect(const Rect& rect) (GC)
  2987. - Rect* new(const Rect& rect)
  2988. - Rect(const Vector2& min, const Vector2& max) (GC)
  2989. - Rect* new(const Vector2& min, const Vector2& max)
  2990. - Rect(float left, float top, float right, float bottom) (GC)
  2991. - Rect* new(float left, float top, float right, float bottom)
  2992. - Rect(const Vector4& vector) (GC)
  2993. - Rect* new(const Vector4& vector)
  2994. - void delete()
  2995. - bool operator==(const Rect& rhs) const
  2996. - void Define(const Rect& rect)
  2997. - void Define(const Vector2& min, const Vector2& max)
  2998. - void Define(const Vector2& point)
  2999. - void Merge(const Vector2& point)
  3000. - void Merge(const Rect& rect)
  3001. - void Clear()
  3002. - void Clip(const Rect& rect)
  3003. - Vector2 Center() const
  3004. - Vector2 Size() const
  3005. - Vector2 HalfSize() const
  3006. - bool Equals(const Rect& rhs) const
  3007. - Intersection IsInside(const Vector2& point) const
  3008. - Vector4 ToVector4() const
  3009. - String ToString() const
  3010. Properties:
  3011. - Vector2 min
  3012. - Vector2 max
  3013. - const Rect FULL
  3014. - const Rect POSITIVE
  3015. - const Rect ZERO
  3016. - Vector2 center (readonly)
  3017. - Vector2 size (readonly)
  3018. - Vector2 halfSize (readonly)
  3019. ### RemoteEvent
  3020. Properties:
  3021. - unsigned senderID
  3022. - StringHash eventType
  3023. - VariantMap eventData
  3024. - bool inOrder
  3025. ### RenderPath
  3026. Methods:
  3027. - RenderPath* Clone()
  3028. - bool Load(XMLFile* file)
  3029. - bool Append(XMLFile* file)
  3030. - void SetEnabled(const String tag, bool active)
  3031. - void ToggleEnabled(const String tag)
  3032. - void SetRenderTarget(unsigned index, const RenderTargetInfo& info)
  3033. - void AddRenderTarget(const RenderTargetInfo& info)
  3034. - void RemoveRenderTarget(const String name)
  3035. - void RemoveRenderTarget(unsigned index)
  3036. - void RemoveRenderTargets(const String tag)
  3037. - void SetCommand(unsigned index, const RenderPathCommand& command)
  3038. - void AddCommand(const RenderPathCommand& command)
  3039. - void InsertCommand(unsigned index, const RenderPathCommand& command)
  3040. - void RemoveCommand(unsigned index)
  3041. - void RemoveCommands(const String tag)
  3042. - void SetShaderParameter(const String name, const Variant& value)
  3043. - unsigned GetNumRenderTargets() const
  3044. - unsigned GetNumCommands() const
  3045. - const Variant& GetShaderParameter(const String name) const
  3046. ### RenderSurface
  3047. Methods:
  3048. - RenderSurface(Texture* parentTexture) (GC)
  3049. - RenderSurface* new(Texture* parentTexture)
  3050. - void delete()
  3051. - void SetNumViewports(unsigned num)
  3052. - void SetViewport(unsigned index, Viewport* viewport)
  3053. - void SetUpdateMode(RenderSurfaceUpdateMode mode)
  3054. - void SetLinkedRenderTarget(RenderSurface* renderTarget)
  3055. - void SetLinkedDepthStencil(RenderSurface* depthStencil)
  3056. - void QueueUpdate()
  3057. - void Release()
  3058. - Texture* GetParentTexture() const
  3059. - int GetWidth() const
  3060. - int GetHeight() const
  3061. - TextureUsage GetUsage() const
  3062. - unsigned GetNumViewports() const
  3063. - Viewport* GetViewport(unsigned index) const
  3064. - RenderSurfaceUpdateMode GetUpdateMode() const
  3065. - RenderSurface* GetLinkedRenderTarget() const
  3066. - RenderSurface* GetLinkedDepthStencil() const
  3067. Properties:
  3068. - Texture* parentTexture (readonly)
  3069. - int width (readonly)
  3070. - int height (readonly)
  3071. - TextureUsage usage (readonly)
  3072. - unsigned numViewports
  3073. - RenderSurfaceUpdateMode updateMode
  3074. - RenderSurface* linkedRenderTarget
  3075. - RenderSurface* linkedDepthStencil
  3076. ### Renderer
  3077. Methods:
  3078. - void SetNumViewports(unsigned num)
  3079. - void SetViewport(unsigned index, Viewport* viewport)
  3080. - void SetDefaultRenderPath(RenderPath* renderPath)
  3081. - void SetDefaultRenderPath(XMLFile* file)
  3082. - void SetHDRRendering(bool enable)
  3083. - void SetSpecularLighting(bool enable)
  3084. - void SetTextureAnisotropy(int level)
  3085. - void SetTextureFilterMode(TextureFilterMode mode)
  3086. - void SetTextureQuality(int quality)
  3087. - void SetMaterialQuality(int quality)
  3088. - void SetDrawShadows(bool enable)
  3089. - void SetShadowMapSize(int size)
  3090. - void SetShadowQuality(int quality)
  3091. - void SetReuseShadowMaps(bool enable)
  3092. - void SetMaxShadowMaps(int shadowMaps)
  3093. - void SetDynamicInstancing(bool enable)
  3094. - void SetMinInstances(int instances)
  3095. - void SetMaxInstanceTriangles(int triangles)
  3096. - void SetMaxSortedInstances(int instances)
  3097. - void SetMaxOccluderTriangles(int triangles)
  3098. - void SetOcclusionBufferSize(int size)
  3099. - void SetOccluderSizeThreshold(float screenSize)
  3100. - void SetMobileShadowBiasMul(float mul)
  3101. - void SetMobileShadowBiasAdd(float add)
  3102. - void ReloadShaders()
  3103. - unsigned GetNumViewports() const
  3104. - Viewport* GetViewport(unsigned index) const
  3105. - RenderPath* GetDefaultRenderPath() const
  3106. - bool GetHDRRendering() const
  3107. - bool GetSpecularLighting() const
  3108. - bool GetDrawShadows() const
  3109. - int GetTextureAnisotropy() const
  3110. - TextureFilterMode GetTextureFilterMode() const
  3111. - int GetTextureQuality() const
  3112. - int GetMaterialQuality() const
  3113. - int GetShadowMapSize() const
  3114. - int GetShadowQuality() const
  3115. - bool GetReuseShadowMaps() const
  3116. - int GetMaxShadowMaps() const
  3117. - bool GetDynamicInstancing() const
  3118. - int GetMinInstances() const
  3119. - int GetMaxInstanceTriangles() const
  3120. - int GetMaxSortedInstances() const
  3121. - int GetMaxOccluderTriangles() const
  3122. - int GetOcclusionBufferSize() const
  3123. - float GetOccluderSizeThreshold() const
  3124. - float GetMobileShadowBiasMul() const
  3125. - float GetMobileShadowBiasAdd() const
  3126. - unsigned GetNumViews() const
  3127. - unsigned GetNumPrimitives() const
  3128. - unsigned GetNumBatches() const
  3129. - unsigned GetNumGeometries(bool allViews = false) const
  3130. - unsigned GetNumLights(bool allViews = false) const
  3131. - unsigned GetNumShadowMaps(bool allViews = false) const
  3132. - unsigned GetNumOccluders(bool allViews = false) const
  3133. - Zone* GetDefaultZone() const
  3134. - Light* GetQuadDirLight() const
  3135. - Material* GetDefaultMaterial() const
  3136. - Texture2D* GetDefaultLightRamp() const
  3137. - Texture2D* GetDefaultLightSpot() const
  3138. - TextureCube* GetFaceSelectCubeMap() const
  3139. - TextureCube* GetIndirectionCubeMap() const
  3140. - VertexBuffer* GetInstancingBuffer() const
  3141. - const FrameInfo& GetFrameInfo()
  3142. - void DrawDebugGeometry(bool depthTest)
  3143. Properties:
  3144. - unsigned numViewports
  3145. - RenderPath* defaultRenderPath
  3146. - bool HDRRendering
  3147. - bool specularLighting
  3148. - bool drawShadows
  3149. - int textureAnisotropy
  3150. - TextureFilterMode textureFilterMode
  3151. - int textureQuality
  3152. - int materialQuality
  3153. - int shadowMapSize
  3154. - int shadowQuality
  3155. - bool reuseShadowMaps
  3156. - int maxShadowMaps
  3157. - bool dynamicInstancing
  3158. - int minInstances
  3159. - int maxInstanceTriangles
  3160. - int maxSortedInstances
  3161. - int maxOccluderTriangles
  3162. - int occlusionBufferSize
  3163. - float occluderSizeThreshold
  3164. - float mobileShadowBiasMul
  3165. - float mobileShadowBiasAdd
  3166. - unsigned numViews (readonly)
  3167. - unsigned numPrimitives (readonly)
  3168. - unsigned numBatches (readonly)
  3169. - Zone* defaultZone (readonly)
  3170. - Material* defaultMaterial (readonly)
  3171. - Texture2D* defaultLightRamp (readonly)
  3172. - Texture2D* defaultLightSpot (readonly)
  3173. ### Resource
  3174. Methods:
  3175. - bool Load(Deserializer& source)
  3176. - bool Save(Serializer& dest) const
  3177. - bool Load(const String fileName)
  3178. - bool Save(const String fileName) const
  3179. - const String GetName() const
  3180. - StringHash GetNameHash() const
  3181. - unsigned GetMemoryUse() const
  3182. Properties:
  3183. - String name (readonly)
  3184. - StringHash nameHash (readonly)
  3185. - unsigned memoryUse (readonly)
  3186. ### ResourceCache
  3187. Methods:
  3188. - void ReleaseAllResources(bool force = false)
  3189. - bool ReloadResource(Resource* resource)
  3190. - void SetMemoryBudget(ShortStringHash type, unsigned budget)
  3191. - void SetMemoryBudget(const String type, unsigned budget)
  3192. - void SetAutoReloadResources(bool enable)
  3193. - void SetReturnFailedResources(bool enable)
  3194. - void SetSearchPackagesFirst(bool value)
  3195. - File* GetFile(const String name)
  3196. - Resource* GetResource(const String type, const String name, bool SendEventOnFailure = true)
  3197. - bool Exists(const String name) const
  3198. - unsigned GetMemoryBudget(ShortStringHash type) const
  3199. - unsigned GetMemoryUse(ShortStringHash type) const
  3200. - unsigned GetTotalMemoryUse() const
  3201. - String GetResourceFileName(const String name) const
  3202. - bool GetAutoReloadResources() const
  3203. - bool GetReturnFailedResources() const
  3204. - bool GetSearchPackagesFirst() const
  3205. - String GetPreferredResourceDir(const String path) const
  3206. - String SanitateResourceName(const String name) const
  3207. - String SanitateResourceDirName(const String name) const
  3208. Properties:
  3209. - unsigned totalMemoryUse (readonly)
  3210. - bool autoReloadResources (readonly)
  3211. - bool returnFailedResources (readonly)
  3212. - bool searchPackagesFirst (readonly)
  3213. ### ResourceRef
  3214. Methods:
  3215. - ResourceRef() (GC)
  3216. - ResourceRef* new()
  3217. - ResourceRef(ShortStringHash type) (GC)
  3218. - ResourceRef* new(ShortStringHash type)
  3219. - ResourceRef(ShortStringHash type, String name) (GC)
  3220. - ResourceRef* new(ShortStringHash type, String name)
  3221. - ResourceRef(const ResourceRef& rhs) (GC)
  3222. - ResourceRef* new(const ResourceRef& rhs)
  3223. - void delete()
  3224. - bool operator==(const ResourceRef& rhs) const
  3225. Properties:
  3226. - ShortStringHash type
  3227. - String name
  3228. ### ResourceRefList
  3229. Methods:
  3230. - ResourceRefList() (GC)
  3231. - ResourceRefList* new()
  3232. - ResourceRefList(ShortStringHash type) (GC)
  3233. - ResourceRefList* new(ShortStringHash type)
  3234. - void delete()
  3235. - bool operator==(const ResourceRefList& rhs) const
  3236. Properties:
  3237. - ShortStringHash type
  3238. ### RigidBody : Component
  3239. Methods:
  3240. - void SetMass(float mass)
  3241. - void SetPosition(Vector3 position)
  3242. - void SetRotation(Quaternion rotation)
  3243. - void SetTransform(const Vector3& position, const Quaternion& rotation)
  3244. - void SetLinearVelocity(Vector3 velocity)
  3245. - void SetLinearFactor(Vector3 factor)
  3246. - void SetLinearRestThreshold(float threshold)
  3247. - void SetLinearDamping(float damping)
  3248. - void SetAngularVelocity(Vector3 angularVelocity)
  3249. - void SetAngularFactor(Vector3 factor)
  3250. - void SetAngularRestThreshold(float threshold)
  3251. - void SetAngularDamping(float factor)
  3252. - void SetFriction(float friction)
  3253. - void SetAnisotropicFriction(Vector3 friction)
  3254. - void SetRollingFriction(float friction)
  3255. - void SetRestitution(float restitution)
  3256. - void SetContactProcessingThreshold(float threshold)
  3257. - void SetCcdRadius(float radius)
  3258. - void SetCcdMotionThreshold(float threshold)
  3259. - void SetUseGravity(bool enable)
  3260. - void SetGravityOverride(const Vector3& gravity)
  3261. - void SetKinematic(bool enable)
  3262. - void SetTrigger(bool enable)
  3263. - void SetCollisionLayer(unsigned layer)
  3264. - void SetCollisionMask(unsigned mask)
  3265. - void SetCollisionLayerAndMask(unsigned layer, unsigned mask)
  3266. - void SetCollisionEventMode(CollisionEventMode mode)
  3267. - void ApplyForce(const Vector3& force)
  3268. - void ApplyForce(const Vector3& force, const Vector3& position)
  3269. - void ApplyTorque(const Vector3& torque)
  3270. - void ApplyImpulse(const Vector3& impulse)
  3271. - void ApplyImpulse(const Vector3& impulse, const Vector3& position)
  3272. - void ApplyTorqueImpulse(const Vector3& torque)
  3273. - void ResetForces()
  3274. - void Activate()
  3275. - void ReAddBodyToWorld()
  3276. - PhysicsWorld* GetPhysicsWorld() const
  3277. - float GetMass() const
  3278. - Vector3 GetPosition() const
  3279. - Quaternion GetRotation() const
  3280. - Vector3 GetLinearVelocity() const
  3281. - Vector3 GetLinearFactor() const
  3282. - Vector3 GetVelocityAtPoint(const Vector3& position) const
  3283. - float GetLinearRestThreshold() const
  3284. - float GetLinearDamping() const
  3285. - Vector3 GetAngularVelocity() const
  3286. - Vector3 GetAngularFactor() const
  3287. - float GetAngularRestThreshold() const
  3288. - float GetAngularDamping() const
  3289. - float GetFriction() const
  3290. - Vector3 GetAnisotropicFriction() const
  3291. - float GetRollingFriction() const
  3292. - float GetRestitution() const
  3293. - float GetContactProcessingThreshold() const
  3294. - float GetCcdRadius() const
  3295. - float GetCcdMotionThreshold() const
  3296. - bool GetUseGravity() const
  3297. - const Vector3& GetGravityOverride() const
  3298. - const Vector3& GetCenterOfMass() const
  3299. - bool IsKinematic() const
  3300. - bool IsTrigger() const
  3301. - bool IsActive() const
  3302. - unsigned GetCollisionLayer() const
  3303. - unsigned GetCollisionMask() const
  3304. - CollisionEventMode GetCollisionEventMode() const
  3305. Properties:
  3306. - PhysicsWorld* physicsWorld (readonly)
  3307. - float mass
  3308. - Vector3 position
  3309. - Quaternion rotation
  3310. - Vector3 linearVelocity
  3311. - Vector3 linearFactor
  3312. - float linearRestThreshold
  3313. - float linearDamping
  3314. - Vector3 angularVelocity
  3315. - Vector3 angularFactor
  3316. - float angularRestThreshold
  3317. - float angularDamping
  3318. - float friction
  3319. - Vector3 anisotropicFriction
  3320. - float rollingFriction
  3321. - float restitution
  3322. - float contactProcessingThreshold
  3323. - float ccdRadius
  3324. - float ccdMotionThreshold
  3325. - bool useGravity
  3326. - Vector3& gravityOverride
  3327. - Vector3& centerOfMass (readonly)
  3328. - bool kinematic
  3329. - bool trigger
  3330. - bool active (readonly)
  3331. - unsigned collisionLayer
  3332. - unsigned collisionMask
  3333. - CollisionEventMode collisionEventMode
  3334. ### RigidBody2D : Component
  3335. Methods:
  3336. - void SetBodyType(BodyType2D bodyType)
  3337. - void SetMass(float mass)
  3338. - void SetInertia(float inertia)
  3339. - void SetMassCenter(Vector2 center)
  3340. - void SetUseFixtureMass(bool useFixtureMass)
  3341. - void SetLinearDamping(float linearDamping)
  3342. - void SetAngularDamping(float angularDamping)
  3343. - void SetAllowSleep(bool allowSleep)
  3344. - void SetFixedRotation(bool fixedRotation)
  3345. - void SetBullet(bool bullet)
  3346. - void SetGravityScale(float gravityScale)
  3347. - void SetAwake(bool awake)
  3348. - void SetLinearVelocity(Vector2 linearVelocity)
  3349. - void SetAngularVelocity(float angularVelocity)
  3350. - void ApplyForce(const Vector2& force, const Vector2& point, bool wake)
  3351. - void ApplyForceToCenter(const Vector2& force, bool wake)
  3352. - void ApplyTorque(float torque, bool wake)
  3353. - void ApplyLinearImpulse(const Vector2& impulse, const Vector2& point, bool wake)
  3354. - void ApplyAngularImpulse(float impulse, bool wake)
  3355. - BodyType2D GetBodyType() const
  3356. - float GetMass() const
  3357. - float GetInertia() const
  3358. - Vector2 GetMassCenter() const
  3359. - bool GetUseFixtureMass() const
  3360. - float GetLinearDamping() const
  3361. - float GetAngularDamping() const
  3362. - bool IsAllowSleep() const
  3363. - bool IsFixedRotation() const
  3364. - bool IsBullet() const
  3365. - float GetGravityScale() const
  3366. - bool IsAwake() const
  3367. - Vector2 GetLinearVelocity() const
  3368. - float GetAngularVelocity() const
  3369. Properties:
  3370. - BodyType2D bodyType
  3371. - float mass
  3372. - float inertia
  3373. - Vector2 massCenter
  3374. - bool useFixtureMass
  3375. - float linearDamping
  3376. - float angularDamping
  3377. - bool allowSleep
  3378. - bool fixedRotation
  3379. - bool bullet
  3380. - float gravityScale
  3381. - bool awake
  3382. - Vector2 linearVelocity
  3383. - float angularVelocity
  3384. ### Scene : Node
  3385. Methods:
  3386. - Scene() (GC)
  3387. - Scene* new()
  3388. - void delete()
  3389. - bool Load(File* source)
  3390. - bool Save(File* dest) const
  3391. - bool Load(const String fileName)
  3392. - bool Save(const String fileName) const
  3393. - bool LoadXML(File* source)
  3394. - bool SaveXML(File* dest) const
  3395. - bool LoadXML(const String fileName)
  3396. - bool SaveXML(const String fileName) const
  3397. - Node* Instantiate(File* source, const Vector3& position, const Quaternion& rotation, CreateMode mode = REPLICATED)
  3398. - Node* Instantiate(const String fileName, const Vector3& position, const Quaternion& rotation, CreateMode mode = REPLICATED)
  3399. - Node* InstantiateXML(File* source, const Vector3& position, const Quaternion& rotation, CreateMode mode = REPLICATED)
  3400. - Node* InstantiateXML(const String fileName, const Vector3& position, const Quaternion& rotation, CreateMode mode = REPLICATED)
  3401. - bool LoadAsync(File* file)
  3402. - bool LoadAsyncXML(File* file)
  3403. - bool LoadAsync(const String fileName)
  3404. - bool LoadAsyncXML(const String fileName)
  3405. - void StopAsyncLoading()
  3406. - void Clear(bool clearReplicated = true, bool clearLocal = true)
  3407. - void SetUpdateEnabled(bool enable)
  3408. - void SetTimeScale(float scale)
  3409. - void SetElapsedTime(float time)
  3410. - void SetSmoothingConstant(float constant)
  3411. - void SetSnapThreshold(float threshold)
  3412. - Node* GetNode(unsigned id) const
  3413. - bool IsUpdateEnabled() const
  3414. - bool IsAsyncLoading() const
  3415. - float GetAsyncProgress() const
  3416. - const String GetFileName() const
  3417. - unsigned GetChecksum() const
  3418. - float GetTimeScale() const
  3419. - float GetElapsedTime() const
  3420. - float GetSmoothingConstant() const
  3421. - float GetSnapThreshold() const
  3422. - const String GetVarName(ShortStringHash hash) const
  3423. - void Update(float timeStep)
  3424. - void BeginThreadedUpdate()
  3425. - void EndThreadedUpdate()
  3426. - void DelayedMarkedDirty(Component* component)
  3427. - bool IsThreadedUpdate() const
  3428. - unsigned GetFreeNodeID(CreateMode mode)
  3429. - unsigned GetFreeComponentID(CreateMode mode)
  3430. - void NodeAdded(Node* node)
  3431. - void NodeRemoved(Node* node)
  3432. - void ComponentAdded(Component* component)
  3433. - void ComponentRemoved(Component* component)
  3434. - void SetVarNamesAttr(String value)
  3435. - String GetVarNamesAttr() const
  3436. - void PrepareNetworkUpdate()
  3437. - void CleanupConnection(Connection* connection)
  3438. - void MarkNetworkUpdate(Node* node)
  3439. - void MarkNetworkUpdate(Component* component)
  3440. - void MarkReplicationDirty(Node* node)
  3441. Properties:
  3442. - bool updateEnabled
  3443. - bool asyncLoading (readonly)
  3444. - float asyncProgress (readonly)
  3445. - const String fileName
  3446. - unsigned checksum (readonly)
  3447. - float timeScale
  3448. - float elapsedTime
  3449. - float smoothingConstant
  3450. - float snapThreshold
  3451. - bool threadedUpdate (readonly)
  3452. - String varNamesAttr
  3453. ### ScrollBar : UIElement
  3454. Methods:
  3455. - ScrollBar() (GC)
  3456. - ScrollBar* new()
  3457. - void delete()
  3458. - void SetOrientation(Orientation orientation)
  3459. - void SetRange(float range)
  3460. - void SetValue(float value)
  3461. - void ChangeValue(float delta)
  3462. - void SetScrollStep(float step)
  3463. - void SetStepFactor(float factor)
  3464. - void StepBack()
  3465. - void StepForward()
  3466. - Orientation GetOrientation() const
  3467. - float GetRange() const
  3468. - float GetValue() const
  3469. - float GetScrollStep() const
  3470. - float GetStepFactor() const
  3471. - float GetEffectiveScrollStep() const
  3472. - Button* GetBackButton() const
  3473. - Button* GetForwardButton() const
  3474. - Slider* GetSlider() const
  3475. Properties:
  3476. - Orientation orientation
  3477. - float range
  3478. - float value
  3479. - float scrollStep
  3480. - float stepFactor
  3481. - float effectiveScrollStep (readonly)
  3482. - Button* backButton (readonly)
  3483. - Button* forwardButton (readonly)
  3484. - Slider* slider (readonly)
  3485. ### ScrollView : UIElement
  3486. Methods:
  3487. - ScrollView() (GC)
  3488. - ScrollView* new()
  3489. - void delete()
  3490. - void SetContentElement(UIElement* element)
  3491. - void SetViewPosition(const IntVector2& position)
  3492. - void SetViewPosition(int x, int y)
  3493. - void SetScrollBarsVisible(bool horizontal, bool vertical)
  3494. - void SetScrollBarsAutoVisible(bool enable)
  3495. - void SetScrollStep(float step)
  3496. - void SetPageStep(float step)
  3497. - const IntVector2& GetViewPosition() const
  3498. - UIElement* GetContentElement() const
  3499. - ScrollBar* GetHorizontalScrollBar() const
  3500. - ScrollBar* GetVerticalScrollBar() const
  3501. - BorderImage* GetScrollPanel() const
  3502. - bool GetScrollBarsAutoVisible() const
  3503. - float GetScrollStep() const
  3504. - float GetPageStep() const
  3505. Properties:
  3506. - IntVector2& viewPosition
  3507. - UIElement* contentElement
  3508. - ScrollBar* horizontalScrollBar (readonly)
  3509. - ScrollBar* verticalScrollBar (readonly)
  3510. - BorderImage* scrollPanel (readonly)
  3511. - bool scrollBarsAutoVisible
  3512. - float scrollStep
  3513. - float pageStep
  3514. ### Serializable : Object
  3515. Methods:
  3516. - void SetTemporary(bool enable)
  3517. - bool IsTemporary() const
  3518. Properties:
  3519. - bool temporary
  3520. ### Serializer
  3521. Methods:
  3522. - unsigned Write(const VectorBuffer& buffer)
  3523. - bool WriteInt(int value)
  3524. - bool WriteShort(short value)
  3525. - bool WriteByte(char value)
  3526. - bool WriteUInt(unsigned value)
  3527. - bool WriteUShort(short value)
  3528. - bool WriteUByte(char value)
  3529. - bool WriteBool(bool value)
  3530. - bool WriteFloat(float value)
  3531. - bool WriteIntRect(const IntRect& value)
  3532. - bool WriteIntVector2(const IntVector2& value)
  3533. - bool WriteRect(const Rect& value)
  3534. - bool WriteVector2(const Vector2& value)
  3535. - bool WriteVector3(const Vector3& value)
  3536. - bool WritePackedVector3(const Vector3& value, float maxAbsCoord)
  3537. - bool WriteVector4(const Vector4& value)
  3538. - bool WriteQuaternion(const Quaternion& value)
  3539. - bool WritePackedQuaternion(const Quaternion& value)
  3540. - bool WriteMatrix3(const Matrix3& value)
  3541. - bool WriteMatrix3x4(const Matrix3x4& value)
  3542. - bool WriteMatrix4(const Matrix4& value)
  3543. - bool WriteColor(const Color& value)
  3544. - bool WriteBoundingBox(const BoundingBox& value)
  3545. - bool WriteString(const String value)
  3546. - bool WriteFileID(const String value)
  3547. - bool WriteStringHash(const StringHash& value)
  3548. - bool WriteShortStringHash(const ShortStringHash& value)
  3549. - bool WriteBuffer(const VectorBuffer& buffer)
  3550. - bool WriteResourceRef(const ResourceRef& value)
  3551. - bool WriteResourceRefList(const ResourceRefList& value)
  3552. - bool WriteVariant(const Variant& value)
  3553. - bool WriteVariantData(const Variant& value)
  3554. - bool WriteVariantVector(const VariantVector& value)
  3555. - bool WriteVariantMap(const VariantMap& value)
  3556. - bool WriteVLE(unsigned value)
  3557. - bool WriteNetID(unsigned value)
  3558. - bool WriteLine(const String value)
  3559. ### ShortStringHash
  3560. Methods:
  3561. - ShortStringHash() (GC)
  3562. - ShortStringHash* new()
  3563. - ShortStringHash(const ShortStringHash& rhs) (GC)
  3564. - ShortStringHash* new(const ShortStringHash& rhs)
  3565. - ShortStringHash(const StringHash& rhs) (GC)
  3566. - ShortStringHash* new(const StringHash& rhs)
  3567. - ShortStringHash(short value) (GC)
  3568. - ShortStringHash* new(short value)
  3569. - ShortStringHash(const String str) (GC)
  3570. - ShortStringHash* new(const String str)
  3571. - void delete()
  3572. - ShortStringHash operator+(const ShortStringHash& rhs) const
  3573. - bool operator==(const ShortStringHash& rhs) const
  3574. - bool operator<(const ShortStringHash& rhs) const
  3575. - short Value() const
  3576. - short Calculate(const char* str)
  3577. Properties:
  3578. - const ShortStringHash ZERO
  3579. - short value (readonly)
  3580. ### Skeleton
  3581. Methods:
  3582. - unsigned GetNumBones() const
  3583. - Bone* GetRootBone()
  3584. - Bone* GetBone(const String name)
  3585. - Bone* GetBone(unsigned index)
  3586. Properties:
  3587. - unsigned numBones (readonly)
  3588. - Bone* rootBone (readonly)
  3589. ### Skybox : StaticModel
  3590. ### Slider : BorderImage
  3591. Methods:
  3592. - Slider() (GC)
  3593. - Slider* new()
  3594. - void delete()
  3595. - void SetOrientation(Orientation orientation)
  3596. - void SetRange(float range)
  3597. - void SetValue(float value)
  3598. - void ChangeValue(float delta)
  3599. - void SetRepeatRate(float rate)
  3600. - Orientation GetOrientation() const
  3601. - float GetRange() const
  3602. - float GetValue() const
  3603. - BorderImage* GetKnob() const
  3604. - float GetRepeatRate() const
  3605. Properties:
  3606. - Orientation orientation
  3607. - float range
  3608. - float value
  3609. - BorderImage* knob (readonly)
  3610. - float repeatRate
  3611. ### Sound : Resource
  3612. Methods:
  3613. - Sound() (GC)
  3614. - Sound* new()
  3615. - void delete()
  3616. - bool LoadRaw(Deserializer& source)
  3617. - bool LoadWav(Deserializer& source)
  3618. - bool LoadOggVorbis(Deserializer& source)
  3619. - bool LoadRaw(const String fileName)
  3620. - bool LoadWav(const String fileName)
  3621. - bool LoadOggVorbis(const String fileName)
  3622. - void SetSize(unsigned dataSize)
  3623. - void SetData(const void* data, unsigned dataSize)
  3624. - void SetFormat(unsigned frequency, bool sixteenBit, bool stereo)
  3625. - void SetLooped(bool enable)
  3626. - void SetLoop(unsigned repeatOffset, unsigned endOffset)
  3627. - void FixInterpolation()
  3628. - float GetLength() const
  3629. - unsigned GetDataSize() const
  3630. - unsigned GetSampleSize() const
  3631. - float GetFrequency() const
  3632. - unsigned GetIntFrequency() const
  3633. - bool IsLooped() const
  3634. - bool IsSixteenBit() const
  3635. - bool IsStereo() const
  3636. - bool IsCompressed() const
  3637. Properties:
  3638. - float length (readonly)
  3639. - unsigned dataSize (readonly)
  3640. - unsigned sampleSize (readonly)
  3641. - float frequency (readonly)
  3642. - int intFrequency (readonly)
  3643. - bool looped
  3644. - bool sixteenBit (readonly)
  3645. - bool stereo (readonly)
  3646. - bool compressed (readonly)
  3647. ### SoundListener : Component
  3648. ### SoundSource : Component
  3649. Methods:
  3650. - void Play(Sound* sound)
  3651. - void Play(Sound* sound, float frequency)
  3652. - void Play(Sound* sound, float frequency, float gain)
  3653. - void Play(Sound* sound, float frequency, float gain, float panning)
  3654. - void Stop()
  3655. - void SetSoundType(SoundType type)
  3656. - void SetFrequency(float frequency)
  3657. - void SetGain(float gain)
  3658. - void SetAttenuation(float attenuation)
  3659. - void SetPanning(float panning)
  3660. - void SetAutoRemove(bool enable)
  3661. - Sound* GetSound() const
  3662. - SoundType GetSoundType() const
  3663. - float GetTimePosition() const
  3664. - float GetFrequency() const
  3665. - float GetGain() const
  3666. - float GetAttenuation() const
  3667. - float GetPanning() const
  3668. - bool GetAutoRemove() const
  3669. - bool IsPlaying() const
  3670. Properties:
  3671. - Sound* sound (readonly)
  3672. - SoundType soundType
  3673. - float timePosition (readonly)
  3674. - float frequency
  3675. - float gain
  3676. - float attenuation
  3677. - float panning
  3678. - bool autoRemove
  3679. - bool playing (readonly)
  3680. ### SoundSource3D : SoundSource
  3681. Methods:
  3682. - void SetDistanceAttenuation(float nearDistance, float farDistance, float rolloffFactor)
  3683. - void SetAngleAttenuation(float innerAngle, float outerAngle)
  3684. - void SetNearDistance(float distance)
  3685. - void SetFarDistance(float distance)
  3686. - void SetInnerAngle(float angle)
  3687. - void SetOuterAngle(float angle)
  3688. - void SetRolloffFactor(float factor)
  3689. - void CalculateAttenuation()
  3690. - float GetNearDistance() const
  3691. - float GetFarDistance() const
  3692. - float GetInnerAngle() const
  3693. - float GetOuterAngle() const
  3694. - float RollAngleoffFactor() const
  3695. Properties:
  3696. - float nearDistance
  3697. - float farDistance
  3698. - float innerAngle
  3699. - float outerAngle
  3700. - float rolloffFactor
  3701. ### Sphere
  3702. Methods:
  3703. - Sphere() (GC)
  3704. - Sphere* new()
  3705. - Sphere(const Sphere& sphere) (GC)
  3706. - Sphere* new(const Sphere& sphere)
  3707. - Sphere(const Vector3& center, float radius) (GC)
  3708. - Sphere* new(const Vector3& center, float radius)
  3709. - Sphere(const BoundingBox& box) (GC)
  3710. - Sphere* new(const BoundingBox& box)
  3711. - Sphere(const Frustum& frustum) (GC)
  3712. - Sphere* new(const Frustum& frustum)
  3713. - Sphere(const Polyhedron& poly) (GC)
  3714. - Sphere* new(const Polyhedron& poly)
  3715. - void delete()
  3716. - bool operator==(const Sphere& rhs) const
  3717. - void Define(const Sphere& sphere)
  3718. - void Define(const Vector3& center, float radius)
  3719. - void Define(const BoundingBox& box)
  3720. - void Define(const Frustum& frustum)
  3721. - void Define(const Polyhedron& poly)
  3722. - void Merge(const Vector3& point)
  3723. - void Merge(const BoundingBox& box)
  3724. - void Merge(const Frustum& frustum)
  3725. - void Merge(const Polyhedron& poly)
  3726. - void Merge(const Sphere& sphere)
  3727. - void Clear()
  3728. - Intersection IsInside(const Vector3& point) const
  3729. - Intersection IsInside(const Sphere& sphere) const
  3730. - Intersection IsInsideFast(const Sphere& sphere) const
  3731. - Intersection IsInside(const BoundingBox& box) const
  3732. - Intersection IsInsideFast(const BoundingBox& box) const
  3733. - float Distance(const Vector3& point) const
  3734. Properties:
  3735. - Vector3 center
  3736. - float radius
  3737. - bool defined
  3738. ### Spline
  3739. Methods:
  3740. - Spline() (GC)
  3741. - Spline* new()
  3742. - Spline(InterpolationMode mode) (GC)
  3743. - Spline* new(InterpolationMode mode)
  3744. - Spline(const Spline& rhs) (GC)
  3745. - Spline* new(const Spline& rhs)
  3746. - void delete()
  3747. - bool operator==(const Spline& rhs) const
  3748. - Variant GetPoint(float f) const
  3749. - Variant GetKnot(unsigned index) const
  3750. - void SetKnot(const Variant& knot, unsigned tolua_var_1)
  3751. - void AddKnot(const Variant& knot)
  3752. - void AddKnot(const Variant& knot, unsigned index)
  3753. - void RemoveKnot()
  3754. - void RemoveKnot(unsigned index)
  3755. - void Clear()
  3756. Properties:
  3757. - InterpolationMode interpolationMode
  3758. ### SplinePath : Component
  3759. Methods:
  3760. - void AddControlPoint(Node* point, unsigned index = M_MAX_UNSIGNED)
  3761. - void RemoveControlPoint(Node* point)
  3762. - void ClearControlPoints()
  3763. - Vector3 GetPoint(float factor) const
  3764. - InterpolationMode GetInterpolationMode() const
  3765. - Vector3 GetPosition() const
  3766. - void SetInterpolationMode(InterpolationMode mode)
  3767. - void SetPosition(float factor)
  3768. - void Move(float timeStep)
  3769. - void Reset()
  3770. - bool IsFinished() const
  3771. Properties:
  3772. - float speed
  3773. - Node* controlledNode
  3774. ### Sprite : UIElement
  3775. Methods:
  3776. - Sprite() (GC)
  3777. - Sprite* new()
  3778. - void delete()
  3779. - void SetPosition(const Vector2& position)
  3780. - void SetPosition(float x, float y)
  3781. - void SetHotSpot(const IntVector2& hotSpot)
  3782. - void SetHotSpot(int x, int y)
  3783. - void SetScale(const Vector2& scale)
  3784. - void SetScale(float x, float y)
  3785. - void SetScale(float scale)
  3786. - void SetRotation(float angle)
  3787. - void SetTexture(Texture* texture)
  3788. - void SetImageRect(const IntRect& rect)
  3789. - void SetFullImageRect()
  3790. - void SetBlendMode(BlendMode mode)
  3791. - const Vector2& GetPosition() const
  3792. - const IntVector2& GetHotSpot() const
  3793. - const Vector2& GetScale() const
  3794. - float GetRotation() const
  3795. - Texture* GetTexture() const
  3796. - const IntRect& GetImageRect() const
  3797. - BlendMode GetBlendMode() const
  3798. - const Matrix3x4& GetTransform() const
  3799. Properties:
  3800. - Vector2& position
  3801. - IntVector2& hotSpot
  3802. - Vector2& scale
  3803. - float rotation
  3804. - Texture* texture
  3805. - IntRect& imageRect
  3806. - BlendMode blendMode
  3807. - Matrix3x4& transform (readonly)
  3808. ### Sprite2D : Resource
  3809. Methods:
  3810. - void SetTexture(Texture2D* texture)
  3811. - void SetRectangle(const IntRect& rectangle)
  3812. - void SetHotSpot(const Vector2& hotSpot)
  3813. - void SetSpriteSheet(SpriteSheet2D* spriteSheet)
  3814. - Texture2D* GetTexture() const
  3815. - const IntRect& GetRectangle() const
  3816. - const Vector2& GetHotSpot() const
  3817. - SpriteSheet2D* GetSpriteSheet() const
  3818. Properties:
  3819. - Texture2D* texture
  3820. - IntRect rectangle
  3821. - Vector2 hotSpot
  3822. - SpriteSheet2D* spriteSheet
  3823. ### SpriteSheet2D : Resource
  3824. Methods:
  3825. - Texture2D* GetTexture() const
  3826. - Sprite2D* GetSprite(const String name) const
  3827. - void DefineSprite(const String name, const IntRect& rectangle)
  3828. - void DefineSprite(const String name, const IntRect& rectangle, const Vector2& hotSpot)
  3829. - void UpdateSprite(const String name, const IntRect& rectangle)
  3830. - void UpdateSprite(const String name, const IntRect& rectangle, const Vector2& hotSpot)
  3831. ### StaticModel : Drawable
  3832. Methods:
  3833. - void SetModel(Model* model)
  3834. - void SetMaterial(Material* material)
  3835. - bool SetMaterial(unsigned index, Material* material)
  3836. - void SetOcclusionLodLevel(unsigned level)
  3837. - void ApplyMaterialList(const String fileName = String::EMPTY)
  3838. - Model* GetModel() const
  3839. - unsigned GetNumGeometries() const
  3840. - Material* GetMaterial(unsigned index = 0) const
  3841. - unsigned GetOcclusionLodLevel() const
  3842. - bool IsInside(const Vector3& point) const
  3843. - bool IsInsideLocal(const Vector3& point) const
  3844. Properties:
  3845. - Model* model
  3846. - Material* material
  3847. - BoundingBox& boundingBox (readonly)
  3848. - unsigned numGeometries (readonly)
  3849. - unsigned occlusionLodLevel
  3850. ### StaticModelGeometryData
  3851. Properties:
  3852. - Vector3 center
  3853. - unsigned lodLevel
  3854. ### StaticModelGroup : StaticModel
  3855. Methods:
  3856. - void AddInstanceNode(Node* node)
  3857. - void RemoveInstanceNode(Node* node)
  3858. - void RemoveAllInstanceNodes()
  3859. - unsigned GetNumInstanceNodes() const
  3860. - Node* GetInstanceNode(unsigned index) const
  3861. Properties:
  3862. - unsigned numInstanceNodes (readonly)
  3863. ### StaticSprite2D : Drawable2D
  3864. Methods:
  3865. - void SetFlip(bool flipX, bool flipY)
  3866. - void SetFlipX(bool flipX)
  3867. - void SetFlipY(bool flipY)
  3868. - void SetColor(const Color& color)
  3869. - bool GetFlipX() const
  3870. - bool GetFlipY() const
  3871. - const Color& GetColor() const
  3872. Properties:
  3873. - bool flipX
  3874. - bool flipY
  3875. - Color& color
  3876. ### StringHash
  3877. Methods:
  3878. - StringHash() (GC)
  3879. - StringHash* new()
  3880. - StringHash(const StringHash& rhs) (GC)
  3881. - StringHash* new(const StringHash& rhs)
  3882. - StringHash(unsigned value) (GC)
  3883. - StringHash* new(unsigned value)
  3884. - StringHash(const String str) (GC)
  3885. - StringHash* new(const String str)
  3886. - void delete()
  3887. - StringHash operator+(const StringHash& rhs) const
  3888. - bool operator==(const StringHash& rhs) const
  3889. - bool operator<(const StringHash& rhs) const
  3890. - bool operatorbool() const
  3891. - unsigned Value() const
  3892. - String ToString() const
  3893. - unsigned ToHash() const
  3894. - unsigned Calculate(const char* str)
  3895. Properties:
  3896. - const StringHash ZERO
  3897. - unsigned value (readonly)
  3898. ### Technique : Resource
  3899. Methods:
  3900. - bool HasPass(const String type) const
  3901. - Pass* GetPass(const String type) const
  3902. - bool IsSM3() const
  3903. Properties:
  3904. - bool SM3 (readonly)
  3905. ### Terrain : Component
  3906. Methods:
  3907. - void SetPatchSize(int size)
  3908. - void SetSpacing(const Vector3& spacing)
  3909. - void SetSmoothing(bool enable)
  3910. - bool SetHeightMap(Image* image)
  3911. - void SetMaterial(Material* material)
  3912. - void SetDrawDistance(float distance)
  3913. - void SetShadowDistance(float distance)
  3914. - void SetLodBias(float bias)
  3915. - void SetViewMask(unsigned mask)
  3916. - void SetLightMask(unsigned mask)
  3917. - void SetShadowMask(unsigned mask)
  3918. - void SetZoneMask(unsigned mask)
  3919. - void SetMaxLights(unsigned num)
  3920. - void SetCastShadows(bool enable)
  3921. - void SetOccluder(bool enable)
  3922. - void SetOccludee(bool enable)
  3923. - int GetPatchSize() const
  3924. - const Vector3& GetSpacing() const
  3925. - const IntVector2& GetNumVertices() const
  3926. - const IntVector2& GetNumPatches() const
  3927. - bool GetSmoothing() const
  3928. - Image* GetHeightMap() const
  3929. - Material* GetMaterial() const
  3930. - TerrainPatch* GetPatch(unsigned index) const
  3931. - TerrainPatch* GetPatch(int x, int z) const
  3932. - float GetHeight(const Vector3& worldPosition) const
  3933. - Vector3 GetNormal(const Vector3& worldPosition) const
  3934. - SharedArrayPtr<float> GetHeightData() const
  3935. - float GetDrawDistance() const
  3936. - float GetShadowDistance() const
  3937. - float GetLodBias() const
  3938. - unsigned GetViewMask() const
  3939. - unsigned GetLightMask() const
  3940. - unsigned GetShadowMask() const
  3941. - unsigned GetZoneMask() const
  3942. - unsigned GetMaxLights() const
  3943. - bool IsVisible() const
  3944. - bool GetCastShadows() const
  3945. - bool IsOccluder() const
  3946. - bool IsOccludee() const
  3947. Properties:
  3948. - int patchSize
  3949. - Vector3& spacing
  3950. - IntVector2& numVertices (readonly)
  3951. - IntVector2& numPatches (readonly)
  3952. - bool smoothing
  3953. - Image* heightMap
  3954. - Material* material
  3955. - float drawDistance
  3956. - float shadowDistance
  3957. - float lodBias
  3958. - unsigned viewMask
  3959. - unsigned lightMask
  3960. - unsigned shadowMask
  3961. - unsigned zoneMask
  3962. - unsigned maxLights
  3963. - bool visible (readonly)
  3964. - bool castShadows
  3965. - bool occluder
  3966. - bool occludee
  3967. ### TerrainPatch : Drawable
  3968. Methods:
  3969. - void SetOwner(Terrain* terrain)
  3970. - void SetNeighbors(TerrainPatch* north, TerrainPatch* south, TerrainPatch* west, TerrainPatch* east)
  3971. - void SetMaterial(Material* material)
  3972. - void SetBoundingBox(const BoundingBox& box)
  3973. - void SetCoordinates(const IntVector2& coordinates)
  3974. - void SetOcclusionOffset(float offset)
  3975. - void ResetLod()
  3976. - Geometry* GetGeometry() const
  3977. - Geometry* GetMaxLodGeometry() const
  3978. - Geometry* GetMinLodGeometry() const
  3979. - VertexBuffer* GetVertexBuffer() const
  3980. - Terrain* GetOwner() const
  3981. - TerrainPatch* GetNorthPatch() const
  3982. - TerrainPatch* GetSouthPatch() const
  3983. - TerrainPatch* GetWestPatch() const
  3984. - TerrainPatch* GetEastPatch() const
  3985. - const IntVector2& GetCoordinates() const
  3986. - unsigned GetLodLevel() const
  3987. - float GetOcclusionOffset() const
  3988. Properties:
  3989. - Geometry* geometry (readonly)
  3990. - Geometry* maxLodGeometry (readonly)
  3991. - Geometry* minLodGeometry (readonly)
  3992. - VertexBuffer* vertexBuffer (readonly)
  3993. - Terrain* owner
  3994. - TerrainPatch* northPatch (readonly)
  3995. - TerrainPatch* southPatch (readonly)
  3996. - TerrainPatch* westPatch (readonly)
  3997. - TerrainPatch* eastPatch (readonly)
  3998. - BoundingBox& boundingBox
  3999. - IntVector2& coordinates
  4000. - unsigned lodLevel (readonly)
  4001. - float occlusionOffset
  4002. ### Text : UIElement
  4003. Methods:
  4004. - Text() (GC)
  4005. - Text* new()
  4006. - void delete()
  4007. - bool SetFont(const String fontName, int size = DEFAULT_FONT_SIZE)
  4008. - bool SetFont(Font* font, int size = DEFAULT_FONT_SIZE)
  4009. - void SetText(const String text)
  4010. - void SetTextAlignment(HorizontalAlignment align)
  4011. - void SetRowSpacing(float spacing)
  4012. - void SetWordwrap(bool enable)
  4013. - void SetSelection(unsigned start, unsigned length = M_MAX_UNSIGNED)
  4014. - void ClearSelection()
  4015. - void SetSelectionColor(const Color& color)
  4016. - void SetHoverColor(const Color& color)
  4017. - void SetTextEffect(TextEffect textEffect)
  4018. - void SetEffectColor(const Color& effectColor)
  4019. - Font* GetFont() const
  4020. - int GetFontSize() const
  4021. - const String GetText() const
  4022. - HorizontalAlignment GetTextAlignment() const
  4023. - float GetRowSpacing() const
  4024. - bool GetWordwrap() const
  4025. - unsigned GetSelectionStart() const
  4026. - unsigned GetSelectionLength() const
  4027. - const Color& GetSelectionColor() const
  4028. - const Color& GetHoverColor() const
  4029. - TextEffect GetTextEffect() const
  4030. - const Color& GetEffectColor() const
  4031. - int GetRowHeight() const
  4032. - unsigned GetNumRows() const
  4033. - unsigned GetNumChars() const
  4034. - int GetRowWidth(unsigned index) const
  4035. - IntVector2 GetCharPosition(unsigned index)
  4036. - IntVector2 GetCharSize(unsigned index)
  4037. - void SetEffectDepthBias(float bias)
  4038. - float GetEffectDepthBias() const
  4039. Properties:
  4040. - Font* font
  4041. - int fontSize (readonly)
  4042. - String text
  4043. - HorizontalAlignment textAlignment
  4044. - float rowSpacing
  4045. - bool wordwrap
  4046. - unsigned selectionStart (readonly)
  4047. - unsigned selectionLength (readonly)
  4048. - Color& selectionColor
  4049. - Color& hoverColor
  4050. - TextEffect textEffect
  4051. - Color& effectColor
  4052. - int rowHeight (readonly)
  4053. - unsigned numRows (readonly)
  4054. - unsigned numChars (readonly)
  4055. ### Text3D : Drawable
  4056. Methods:
  4057. - Text3D() (GC)
  4058. - Text3D* new()
  4059. - void delete()
  4060. - bool SetFont(const String fontName, int size = DEFAULT_FONT_SIZE)
  4061. - bool SetFont(Font* font, int size = DEFAULT_FONT_SIZE)
  4062. - void SetMaterial(Material* material)
  4063. - void SetText(const String text)
  4064. - void SetAlignment(HorizontalAlignment hAlign, VerticalAlignment vAlign)
  4065. - void SetHorizontalAlignment(HorizontalAlignment align)
  4066. - void SetVerticalAlignment(VerticalAlignment align)
  4067. - void SetTextAlignment(HorizontalAlignment align)
  4068. - void SetRowSpacing(float spacing)
  4069. - void SetWordwrap(bool enable)
  4070. - void SetTextEffect(TextEffect textEffect)
  4071. - void SetEffectColor(const Color& effectColor)
  4072. - void SetEffectDepthBias(float bias)
  4073. - void SetWidth(int width)
  4074. - void SetColor(const Color& color)
  4075. - void SetColor(Corner corner, const Color& color)
  4076. - void SetOpacity(float opacity)
  4077. - void SetFaceCamera(bool enable)
  4078. - Font* GetFont() const
  4079. - Material* GetMaterial() const
  4080. - int GetFontSize() const
  4081. - const String GetText() const
  4082. - HorizontalAlignment GetTextAlignment() const
  4083. - HorizontalAlignment GetHorizontalAlignment() const
  4084. - VerticalAlignment GetVerticalAlignment() const
  4085. - float GetRowSpacing() const
  4086. - bool GetWordwrap() const
  4087. - TextEffect GetTextEffect() const
  4088. - const Color& GetEffectColor() const
  4089. - float GetEffectDepthBias() const
  4090. - int GetWidth() const
  4091. - int GetRowHeight() const
  4092. - unsigned GetNumRows() const
  4093. - unsigned GetNumChars() const
  4094. - int GetRowWidth(unsigned index) const
  4095. - IntVector2 GetCharPosition(unsigned index)
  4096. - IntVector2 GetCharSize(unsigned index)
  4097. - const Color& GetColor(Corner corner) const
  4098. - float GetOpacity() const
  4099. - bool GetFaceCamera() const
  4100. Properties:
  4101. - Font* font
  4102. - Material* material
  4103. - int fontSize (readonly)
  4104. - String text
  4105. - HorizontalAlignment textAlignment
  4106. - HorizontalAlignment horizontalAlignment
  4107. - VerticalAlignment verticalAlignment
  4108. - float rowSpacing
  4109. - bool wordwrap
  4110. - TextEffect textEffect
  4111. - Color& effectColor
  4112. - float effectDepthBias
  4113. - int width
  4114. - Color& color
  4115. - int rowHeight (readonly)
  4116. - unsigned numRows (readonly)
  4117. - unsigned numChars (readonly)
  4118. - float opacity
  4119. - bool faceCamera
  4120. ### Texture : Resource
  4121. Methods:
  4122. - void SetNumLevels(unsigned levels)
  4123. - void SetFilterMode(TextureFilterMode filter)
  4124. - void SetAddressMode(TextureCoordinate coord, TextureAddressMode address)
  4125. - void SetBorderColor(const Color& color)
  4126. - void SetSRGB(bool enable)
  4127. - void SetBackupTexture(Texture* texture)
  4128. - void SetMipsToSkip(int quality, int mips)
  4129. - unsigned GetFormat() const
  4130. - bool IsCompressed() const
  4131. - unsigned GetLevels() const
  4132. - int GetWidth() const
  4133. - int GetHeight() const
  4134. - TextureFilterMode GetFilterMode() const
  4135. - TextureAddressMode GetAddressMode(TextureCoordinate coord) const
  4136. - const Color& GetBorderColor() const
  4137. - bool GetSRGB() const
  4138. - Texture* GetBackupTexture() const
  4139. - int GetMipsToSkip(int quality) const
  4140. - int GetLevelWidth(unsigned level) const
  4141. - int GetLevelHeight(unsigned level) const
  4142. - TextureUsage GetUsage() const
  4143. - unsigned GetDataSize(int width, int height) const
  4144. - unsigned GetRowDataSize(int width) const
  4145. Properties:
  4146. - unsigned format (readonly)
  4147. - bool compressed (readonly)
  4148. - unsigned levels (readonly)
  4149. - int width (readonly)
  4150. - int height (readonly)
  4151. - TextureFilterMode filterMode
  4152. - Color& borderColor
  4153. - bool sRGB
  4154. - Texture* backupTexture
  4155. - TextureUsage usage (readonly)
  4156. ### Texture2D : Texture
  4157. Methods:
  4158. - Texture2D() (GC)
  4159. - Texture2D* new()
  4160. - void delete()
  4161. - bool SetSize(int width, int height, unsigned format, TextureUsage usage = TEXTURE_STATIC)
  4162. - bool Load(Image* image, bool useAlpha = false)
  4163. - RenderSurface* GetRenderSurface() const
  4164. Properties:
  4165. - RenderSurface* renderSurface (readonly)
  4166. ### TextureCube : Texture
  4167. Methods:
  4168. - RenderSurface* GetRenderSurface(CubeMapFace face) const
  4169. ### TextureFrame
  4170. Methods:
  4171. - TextureFrame() (GC)
  4172. - TextureFrame* new()
  4173. - void delete()
  4174. Properties:
  4175. - Rect uv
  4176. - float time
  4177. ### Time : Object
  4178. Methods:
  4179. - unsigned GetFrameNumber() const
  4180. - float GetTimeStep() const
  4181. - unsigned GetTimerPeriod() const
  4182. - float GetElapsedTime()
  4183. - unsigned GetSystemTime()
  4184. - String GetTimeStamp()
  4185. - void Sleep(unsigned mSec)
  4186. Properties:
  4187. - unsigned frameNumber (readonly)
  4188. - float timeStep (readonly)
  4189. - unsigned timerPeriod (readonly)
  4190. - float elapsedTime (readonly)
  4191. ### ToolTip : UIElement
  4192. Methods:
  4193. - ToolTip() (GC)
  4194. - ToolTip* new()
  4195. - void delete()
  4196. - void SetDelay(float delay)
  4197. - float GetDelay() const
  4198. Properties:
  4199. - float delay
  4200. ### TouchState
  4201. Properties:
  4202. - int touchID
  4203. - IntVector2 position
  4204. - IntVector2 lastPosition
  4205. - IntVector2 delta
  4206. - float pressure
  4207. - WeakPtr<UIElement> touchedElement
  4208. ### UI : Object
  4209. Methods:
  4210. - void SetCursor(Cursor* cursor)
  4211. - void SetFocusElement(UIElement* element, bool byKey = false)
  4212. - bool SetModalElement(UIElement* modalElement, bool enable)
  4213. - void Clear()
  4214. - void Update(float timeStep)
  4215. - void RenderUpdate()
  4216. - void Render()
  4217. - void DebugDraw(UIElement* element)
  4218. - UIElement* LoadLayout(File* source, XMLFile* styleFile = 0)
  4219. - UIElement* LoadLayout(const String fileName, XMLFile* styleFile = 0)
  4220. - UIElement* LoadLayout(XMLFile* file, XMLFile* styleFile = 0)
  4221. - bool SaveLayout(Serializer& dest, UIElement* element)
  4222. - void SetClipboardText(const String text)
  4223. - void SetDoubleClickInterval(float interval)
  4224. - void SetDragBeginInterval(float interval)
  4225. - void SetDragBeginDistance(int pixels)
  4226. - void SetDefaultToolTipDelay(float delay)
  4227. - void SetMaxFontTextureSize(int size)
  4228. - void SetNonFocusedMouseWheel(bool nonFocusedMouseWheel)
  4229. - void SetUseSystemClipboard(bool enable)
  4230. - void SetUseScreenKeyboard(bool enable)
  4231. - void SetUseMutableGlyphs(bool enable)
  4232. - void SetForceAutoHint(bool enable)
  4233. - UIElement* GetRoot() const
  4234. - UIElement* GetRootModalElement() const
  4235. - Cursor* GetCursor() const
  4236. - IntVector2 GetCursorPosition() const
  4237. - UIElement* GetElementAt(const IntVector2& position, bool enabledOnly = true)
  4238. - UIElement* GetElementAt(int x, int y, bool enabledOnly = true)
  4239. - UIElement* GetFocusElement() const
  4240. - UIElement* GetFrontElement() const
  4241. - UIElement* GetDragElement() const
  4242. - const String GetClipboardText() const
  4243. - float GetDoubleClickInterval() const
  4244. - float GetDragBeginInterval() const
  4245. - int GetDragBeginDistance() const
  4246. - float GetDefaultToolTipDelay() const
  4247. - int GetMaxFontTextureSize() const
  4248. - bool IsNonFocusedMouseWheel() const
  4249. - bool GetUseSystemClipboard() const
  4250. - bool GetUseScreenKeyboard() const
  4251. - bool GetUseMutableGlyphs() const
  4252. - bool GetForceAutoHint() const
  4253. - bool HasModalElement() const
  4254. Properties:
  4255. - UIElement* root (readonly)
  4256. - UIElement* rootModalElement (readonly)
  4257. - Cursor* cursor
  4258. - IntVector2 cursorPosition (readonly)
  4259. - UIElement* focusElement (readonly)
  4260. - UIElement* frontElement (readonly)
  4261. - UIElement* dragElement (readonly)
  4262. - String clipboardText
  4263. - float doubleClickInterval
  4264. - float dragBeginInterval
  4265. - int dragBeginDistance
  4266. - float defaultToolTipDelay
  4267. - int maxFontTextureSize
  4268. - bool nonFocusedMouseWheel
  4269. - bool useSystemClipboard
  4270. - bool useScreenKeyboard
  4271. - bool useMutableGlyphs
  4272. - bool forceAutoHint
  4273. - bool modalElement (readonly)
  4274. ### UIElement : Animatable
  4275. Methods:
  4276. - UIElement() (GC)
  4277. - UIElement* new()
  4278. - void delete()
  4279. - const IntVector2& GetScreenPosition() const
  4280. - bool LoadXML(Deserializer& source)
  4281. - bool SaveXML(Serializer& dest) const
  4282. - bool LoadXML(const String fileName)
  4283. - bool SaveXML(const String fileName) const
  4284. - bool FilterAttributes(XMLElement& dest) const
  4285. - void SetName(const String name)
  4286. - void SetPosition(const IntVector2& position)
  4287. - void SetPosition(int x, int y)
  4288. - void SetSize(const IntVector2& size)
  4289. - void SetSize(int width, int height)
  4290. - void SetWidth(int width)
  4291. - void SetHeight(int height)
  4292. - void SetMinSize(const IntVector2& minSize)
  4293. - void SetMinSize(int width, int height)
  4294. - void SetMinWidth(int width)
  4295. - void SetMinHeight(int height)
  4296. - void SetMaxSize(const IntVector2& maxSize)
  4297. - void SetMaxSize(int width, int height)
  4298. - void SetMaxWidth(int width)
  4299. - void SetMaxHeight(int height)
  4300. - void SetFixedSize(const IntVector2& size)
  4301. - void SetFixedSize(int width, int height)
  4302. - void SetFixedWidth(int width)
  4303. - void SetFixedHeight(int height)
  4304. - void SetAlignment(HorizontalAlignment hAlign, VerticalAlignment vAlign)
  4305. - void SetHorizontalAlignment(HorizontalAlignment align)
  4306. - void SetVerticalAlignment(VerticalAlignment align)
  4307. - void SetClipBorder(const IntRect& rect)
  4308. - void SetColor(const Color& color)
  4309. - void SetColor(Corner corner, const Color& color)
  4310. - void SetPriority(int priority)
  4311. - void SetOpacity(float opacity)
  4312. - void SetBringToFront(bool enable)
  4313. - void SetBringToBack(bool enable)
  4314. - void SetClipChildren(bool enable)
  4315. - void SetSortChildren(bool enable)
  4316. - void SetUseDerivedOpacity(bool enable)
  4317. - void SetEnabled(bool enable)
  4318. - void SetEditable(bool enable)
  4319. - void SetFocus(bool enable)
  4320. - void SetSelected(bool enable)
  4321. - void SetVisible(bool enable)
  4322. - void SetFocusMode(FocusMode mode)
  4323. - void SetDragDropMode(unsigned mode)
  4324. - bool SetStyle(const String styleName, XMLFile* file = 0)
  4325. - bool SetStyle(const XMLElement& element)
  4326. - bool SetStyleAuto(XMLFile* file = 0)
  4327. - void SetDefaultStyle(XMLFile* style)
  4328. - void SetLayout(LayoutMode mode, int spacing = 0)
  4329. - void SetLayout(LayoutMode mode, int spacing, const IntRect& border)
  4330. - void SetLayoutMode(LayoutMode mode)
  4331. - void SetLayoutSpacing(int spacing)
  4332. - void SetLayoutBorder(const IntRect& border)
  4333. - void SetIndent(int indent)
  4334. - void SetIndentSpacing(int indentSpacing)
  4335. - void UpdateLayout()
  4336. - void DisableLayoutUpdate()
  4337. - void EnableLayoutUpdate()
  4338. - void BringToFront()
  4339. - UIElement* CreateChild(const String type, const String name = String::EMPTY, unsigned index = M_MAX_UNSIGNED)
  4340. - void AddChild(UIElement* element)
  4341. - void InsertChild(unsigned index, UIElement* element)
  4342. - void RemoveChild(UIElement* element, unsigned index = 0)
  4343. - void RemoveChildAtIndex(unsigned index)
  4344. - void RemoveAllChildren()
  4345. - void Remove()
  4346. - unsigned FindChild(UIElement* element) const
  4347. - void SetParent(UIElement* parent, unsigned index = M_MAX_UNSIGNED)
  4348. - void SetVar(ShortStringHash key, const Variant& value)
  4349. - void SetInternal(bool enable)
  4350. - void SetTraversalMode(TraversalMode traversalMode)
  4351. - void SetElementEventSender(bool flag)
  4352. - const String GetName() const
  4353. - const IntVector2& GetPosition() const
  4354. - const IntVector2& GetSize() const
  4355. - int GetWidth() const
  4356. - int GetHeight() const
  4357. - const IntVector2& GetMinSize() const
  4358. - int GetMinWidth() const
  4359. - int GetMinHeight() const
  4360. - const IntVector2& GetMaxSize() const
  4361. - int GetMaxWidth() const
  4362. - int GetMaxHeight() const
  4363. - bool IsFixedSize() const
  4364. - bool IsFixedWidth() const
  4365. - bool IsFixedHeight() const
  4366. - const IntVector2& GetChildOffset() const
  4367. - HorizontalAlignment GetHorizontalAlignment() const
  4368. - VerticalAlignment GetVerticalAlignment() const
  4369. - const IntRect& GetClipBorder() const
  4370. - const Color& GetColor(Corner corner) const
  4371. - int GetPriority() const
  4372. - float GetOpacity() const
  4373. - float GetDerivedOpacity() const
  4374. - bool GetBringToFront() const
  4375. - bool GetBringToBack() const
  4376. - bool GetClipChildren() const
  4377. - bool GetSortChildren() const
  4378. - bool GetUseDerivedOpacity() const
  4379. - bool HasFocus() const
  4380. - bool IsEnabled() const
  4381. - bool IsEditable() const
  4382. - bool IsSelected() const
  4383. - bool IsVisible() const
  4384. - bool IsHovering() const
  4385. - bool IsInternal() const
  4386. - bool HasColorGradient() const
  4387. - FocusMode GetFocusMode() const
  4388. - unsigned GetDragDropMode() const
  4389. - const String GetAppliedStyle() const
  4390. - XMLFile* GetDefaultStyle(bool recursiveUp = true) const
  4391. - LayoutMode GetLayoutMode() const
  4392. - int GetLayoutSpacing() const
  4393. - const IntRect& GetLayoutBorder() const
  4394. - unsigned GetNumChildren(bool recursive = false) const
  4395. - UIElement* GetChild(const String name, bool recursive = false) const
  4396. - UIElement* GetChild(unsigned index) const
  4397. - UIElement* GetParent() const
  4398. - UIElement* GetRoot() const
  4399. - const Color& GetDerivedColor() const
  4400. - const Variant& GetVar(ShortStringHash key) const
  4401. - const VariantMap& GetVars() const
  4402. - IntVector2 ScreenToElement(const IntVector2& screenPosition)
  4403. - IntVector2 ElementToScreen(const IntVector2& position)
  4404. - bool IsInside(IntVector2 position, bool isScreen)
  4405. - bool IsInsideCombined(IntVector2 position, bool isScreen)
  4406. - IntRect GetCombinedScreenRect()
  4407. - void SortChildren()
  4408. - int GetLayoutMinSize() const
  4409. - int GetIndent() const
  4410. - int GetIndentSpacing() const
  4411. - int GetIndentWidth() const
  4412. - void SetChildOffset(const IntVector2& offset)
  4413. - void SetHovering(bool enable)
  4414. - const Color& GetColor() const
  4415. - TraversalMode GetTraversalMode() const
  4416. - bool IsElementEventSender() const
  4417. - UIElement* GetElementEventSender() const
  4418. Properties:
  4419. - IntVector2& screenPosition (readonly)
  4420. - String name
  4421. - IntVector2& position
  4422. - IntVector2 size
  4423. - int width
  4424. - int height
  4425. - IntVector2 minSize
  4426. - int minWidth
  4427. - int minHeight
  4428. - IntVector2 maxSize
  4429. - int maxWidth
  4430. - int maxHeight
  4431. - bool fixedSize (readonly)
  4432. - bool fixedWidth (readonly)
  4433. - bool fixedHeight (readonly)
  4434. - IntVector2& childOffset
  4435. - HorizontalAlignment horizontalAlignment
  4436. - VerticalAlignment verticalAlignment
  4437. - IntRect clipBorder
  4438. - Color& color
  4439. - int priority
  4440. - float opacity
  4441. - float derivedOpacity (readonly)
  4442. - bool bringToFront
  4443. - bool bringToBack
  4444. - bool clipChildren
  4445. - bool sortChildren
  4446. - bool useDerivedOpacity
  4447. - bool focus
  4448. - bool enabled
  4449. - bool editable
  4450. - bool selected
  4451. - bool visible
  4452. - bool hovering
  4453. - bool internal
  4454. - bool colorGradient (readonly)
  4455. - FocusMode focusMode
  4456. - unsigned dragDropMode
  4457. - String style
  4458. - XMLFile* defaultStyle
  4459. - LayoutMode layoutMode
  4460. - int layoutSpacing
  4461. - IntRect& layoutBorder
  4462. - unsigned numChildren (readonly)
  4463. - UIElement* parent
  4464. - UIElement* root (readonly)
  4465. - Color& derivedColor (readonly)
  4466. - IntRect combinedScreenRect (readonly)
  4467. - int layoutMinSize (readonly)
  4468. - int indent
  4469. - int indentSpacing
  4470. - int indentWidth (readonly)
  4471. - TraversalMode traversalMode
  4472. - bool elementEventSender
  4473. ### Variant
  4474. Methods:
  4475. - Variant() (GC)
  4476. - Variant* new()
  4477. - Variant(int value) (GC)
  4478. - Variant* new(int value)
  4479. - Variant(unsigned value) (GC)
  4480. - Variant* new(unsigned value)
  4481. - Variant(const StringHash& value) (GC)
  4482. - Variant* new(const StringHash& value)
  4483. - Variant(const ShortStringHash& value) (GC)
  4484. - Variant* new(const ShortStringHash& value)
  4485. - Variant(bool value) (GC)
  4486. - Variant* new(bool value)
  4487. - Variant(float value) (GC)
  4488. - Variant* new(float value)
  4489. - Variant(const Vector2& value) (GC)
  4490. - Variant* new(const Vector2& value)
  4491. - Variant(const Vector3& value) (GC)
  4492. - Variant* new(const Vector3& value)
  4493. - Variant(const Vector4& value) (GC)
  4494. - Variant* new(const Vector4& value)
  4495. - Variant(const Quaternion& value) (GC)
  4496. - Variant* new(const Quaternion& value)
  4497. - Variant(const Color& value) (GC)
  4498. - Variant* new(const Color& value)
  4499. - Variant(const String value) (GC)
  4500. - Variant* new(const String value)
  4501. - Variant(const char* value) (GC)
  4502. - Variant* new(const char* value)
  4503. - Variant(const ResourceRef& value) (GC)
  4504. - Variant* new(const ResourceRef& value)
  4505. - Variant(const ResourceRefList& value) (GC)
  4506. - Variant* new(const ResourceRefList& value)
  4507. - Variant(const IntRect& value) (GC)
  4508. - Variant* new(const IntRect& value)
  4509. - Variant(const IntVector2& value) (GC)
  4510. - Variant* new(const IntVector2& value)
  4511. - Variant(const Matrix3& value) (GC)
  4512. - Variant* new(const Matrix3& value)
  4513. - Variant(const Matrix3x4& value) (GC)
  4514. - Variant* new(const Matrix3x4& value)
  4515. - Variant(const Matrix4& value) (GC)
  4516. - Variant* new(const Matrix4& value)
  4517. - Variant(const String type, const String value) (GC)
  4518. - Variant* new(const String type, const String value)
  4519. - Variant(VariantType type, const String value) (GC)
  4520. - Variant* new(VariantType type, const String value)
  4521. - Variant(VariantType type, const char* value) (GC)
  4522. - Variant* new(VariantType type, const char* value)
  4523. - Variant(const Variant& value) (GC)
  4524. - Variant* new(const Variant& value)
  4525. - void delete()
  4526. - void Clear()
  4527. - bool operator==(const Variant& rhs) const
  4528. - bool operator==(int rhs) const
  4529. - bool operator==(unsigned rhs) const
  4530. - bool operator==(bool rhs) const
  4531. - bool operator==(float rhs) const
  4532. - bool operator==(const Vector2& rhs)
  4533. - bool operator==(const Vector3& rhs) const
  4534. - bool operator==(const Vector4& rhs) const
  4535. - bool operator==(const Quaternion& rhs) const
  4536. - bool operator==(const Color& rhs) const
  4537. - bool operator==(const String rhs) const
  4538. - bool operator==(const ResourceRef& rhs) const
  4539. - bool operator==(const ResourceRefList& rhs) const
  4540. - bool operator==(const IntRect& rhs) const
  4541. - bool operator==(const IntVector2& rhs) const
  4542. - bool operator==(const StringHash& rhs) const
  4543. - bool operator==(const ShortStringHash& rhs) const
  4544. - bool operator==(const Matrix3& rhs) const
  4545. - bool operator==(const Matrix3x4& rhs) const
  4546. - bool operator==(const Matrix4& rhs) const
  4547. - void SetInt(int value)
  4548. - void SetUint(unsigned value)
  4549. - void SetStringHash(const StringHash& value)
  4550. - void SetShortStringHash(const ShortStringHash& value)
  4551. - void SetBool(bool value)
  4552. - void SetFloat(float value)
  4553. - void SetVector2(const Vector2& value)
  4554. - void SetVector3(const Vector3& value)
  4555. - void SetVector4(const Vector4& value)
  4556. - void SetQuaternion(const Quaternion& value)
  4557. - void SetColor(const Color& value)
  4558. - void SetString(const String value)
  4559. - void SetBuffer(const VectorBuffer& value)
  4560. - void SetResourceRef(const ResourceRef& value)
  4561. - void SetResourceRefList(const ResourceRefList& value)
  4562. - void SetIntRect(const IntRect& value)
  4563. - void SetIntVector2(const IntVector2& value)
  4564. - void SetMatrix3(const Matrix3& value)
  4565. - void SetMatrix3x4(const Matrix3x4& value)
  4566. - void SetMatrix4(const Matrix4& value)
  4567. - int GetInt() const
  4568. - int GetUInt() const
  4569. - StringHash GetStringHash()
  4570. - ShortStringHash GetShortStringHash()
  4571. - bool GetBool() const
  4572. - float GetFloat() const
  4573. - const Vector2& GetVector2() const
  4574. - const Vector3& GetVector3() const
  4575. - const Vector4& GetVector4() const
  4576. - const Quaternion& GetQuaternion() const
  4577. - const Color& GetColor() const
  4578. - const String GetString() const
  4579. - VectorBuffer GetBuffer() const
  4580. - const ResourceRef& GetResourceRef() const
  4581. - const ResourceRefList& GetResourceRefList() const
  4582. - const IntRect& GetIntRect() const
  4583. - const IntVector2& GetIntVector2() const
  4584. - const Matrix3& GetMatrix3() const
  4585. - const Matrix3x4& GetMatrix3x4() const
  4586. - const Matrix4& GetMatrix4() const
  4587. - VariantType GetType() const
  4588. - String GetTypeName() const
  4589. - String ToString() const
  4590. - bool IsZero() const
  4591. - bool IsEmpty() const
  4592. Properties:
  4593. - VariantType type (readonly)
  4594. - String typeName (readonly)
  4595. - bool zero (readonly)
  4596. - bool empty (readonly)
  4597. ### VariantMap
  4598. Methods:
  4599. - VariantMap() (GC)
  4600. - VariantMap* new()
  4601. - void delete()
  4602. - void SetInt(const String key, int value)
  4603. - void SetUInt(const String key, unsigned value)
  4604. - void SetStringHash(const String key, const StringHash& value)
  4605. - void SetShortStringHash(const String key, const ShortStringHash& value)
  4606. - void SetBool(const String key, bool value)
  4607. - void SetFloat(const String key, float value)
  4608. - void SetVector2(const String key, const Vector2 value)
  4609. - void SetVector3(const String key, const Vector3 value)
  4610. - void SetVector4(const String key, const Vector4 value)
  4611. - void SetQuaternion(const String key, const Quaternion value)
  4612. - void SetColor(const String key, const Color value)
  4613. - void SetString(const String key, const String value)
  4614. - void SetBuffer(const String key, const VectorBuffer& value)
  4615. - void SetResourceRef(const String key, const ResourceRef value)
  4616. - void SetResourceRefList(const String key, const ResourceRefList value)
  4617. - void SetIntRect(const String key, const IntRect value)
  4618. - void SetIntVector2(const String key, const IntVector2 value)
  4619. - void SetPtr(const String key, void* value)
  4620. - void SetMatrix3(const String key, const Matrix3 value)
  4621. - void SetMatrix3x4(const String key, const Matrix3x4 value)
  4622. - void SetMatrix4(const String key, const Matrix4 value)
  4623. - int GetInt(const String key)
  4624. - int GetUInt(const String key)
  4625. - StringHash GetStringHash(const String key)
  4626. - ShortStringHash GetShortStringHash(const String key)
  4627. - bool GetBool(const String key)
  4628. - float GetFloat(const String key)
  4629. - const Vector2& GetVector2(const String key)
  4630. - const Vector3& GetVector3(const String key)
  4631. - const Vector4& GetVector4(const String key)
  4632. - const Quaternion& GetQuaternion(const String key)
  4633. - const Color& GetColor(const String key)
  4634. - const String GetString(const String key)
  4635. - VectorBuffer GetBuffer(const String key)
  4636. - const ResourceRef& GetResourceRef(const String key)
  4637. - const ResourceRefList& GetResourceRefList(const String key)
  4638. - const IntRect& GetIntRect(const String key)
  4639. - const IntVector2& GetIntVector2(const String key)
  4640. - const void* GetPtr(const String type, const String key)
  4641. - const Matrix3& GetMatrix3(const String key)
  4642. - const Matrix3x4& GetMatrix3x4(const String key)
  4643. - const Matrix4& GetMatrix4(const String key)
  4644. ### Vector2
  4645. Methods:
  4646. - Vector2() (GC)
  4647. - Vector2* new()
  4648. - Vector2(const Vector2& vector) (GC)
  4649. - Vector2* new(const Vector2& vector)
  4650. - Vector2(float x, float y) (GC)
  4651. - Vector2* new(float x, float y)
  4652. - void delete()
  4653. - bool operator==(const Vector2& rhs) const
  4654. - Vector2 operator+(const Vector2& rhs) const
  4655. - Vector2 operator-() const
  4656. - Vector2 operator-(const Vector2& rhs) const
  4657. - Vector2 operator*(float rhs) const
  4658. - Vector2 operator*(const Vector2& rhs) const
  4659. - Vector2 operator/(float rhs) const
  4660. - Vector2 operator/(const Vector2& rhs) const
  4661. - Vector2 operator/(const Vector2& rhs) const
  4662. - void Normalize()
  4663. - float Length() const
  4664. - float LengthSquared() const
  4665. - float DotProduct(const Vector2& rhs) const
  4666. - float AbsDotProduct(const Vector2& rhs) const
  4667. - Vector2 Abs() const
  4668. - Vector2 Lerp(const Vector2& rhs, float t) const
  4669. - bool Equals(const Vector2& rhs) const
  4670. - bool IsNaN() const
  4671. - Vector2 Normalized() const
  4672. - String ToString() const
  4673. Properties:
  4674. - float x
  4675. - float y
  4676. - const Vector2 ZERO
  4677. - const Vector2 LEFT
  4678. - const Vector2 RIGHT
  4679. - const Vector2 UP
  4680. - const Vector2 DOWN
  4681. - const Vector2 ONE
  4682. ### Vector3
  4683. Methods:
  4684. - Vector3() (GC)
  4685. - Vector3* new()
  4686. - Vector3(const Vector3& vector) (GC)
  4687. - Vector3* new(const Vector3& vector)
  4688. - Vector3(const Vector2& vector, float z) (GC)
  4689. - Vector3* new(const Vector2& vector, float z)
  4690. - Vector3(float x, float y, float z) (GC)
  4691. - Vector3* new(float x, float y, float z)
  4692. - void delete()
  4693. - bool operator==(const Vector3& rhs) const
  4694. - Vector3 operator+(const Vector3& rhs) const
  4695. - Vector3 operator-() const
  4696. - Vector3 operator-(const Vector3& rhs) const
  4697. - Vector3 operator*(float rhs) const
  4698. - Vector3 operator*(const Vector3& rhs) const
  4699. - Vector3 operator/(float rhs) const
  4700. - Vector3 operator/(const Vector3& rhs) const
  4701. - void Normalize()
  4702. - float Length() const
  4703. - float LengthSquared() const
  4704. - float DotProduct(const Vector3& rhs) const
  4705. - float AbsDotProduct(const Vector3& rhs) const
  4706. - Vector3 CrossProduct(const Vector3& rhs) const
  4707. - Vector3 Abs() const
  4708. - Vector3 Lerp(const Vector3& rhs, float t) const
  4709. - bool Equals(const Vector3& rhs) const
  4710. - bool IsNaN() const
  4711. - float Angle(const Vector3& rhs) const
  4712. - Vector3 Normalized() const
  4713. - String ToString() const
  4714. Properties:
  4715. - float x
  4716. - float y
  4717. - float z
  4718. - const Vector3 ZERO
  4719. - const Vector3 LEFT
  4720. - const Vector3 RIGHT
  4721. - const Vector3 UP
  4722. - const Vector3 DOWN
  4723. - const Vector3 FORWARD
  4724. - const Vector3 BACK
  4725. - const Vector3 ONE
  4726. ### Vector4
  4727. Methods:
  4728. - Vector4() (GC)
  4729. - Vector4* new()
  4730. - Vector4(const Vector4& vector) (GC)
  4731. - Vector4* new(const Vector4& vector)
  4732. - Vector4(const Vector3& vector, float w) (GC)
  4733. - Vector4* new(const Vector3& vector, float w)
  4734. - Vector4(float x, float y, float z, float w) (GC)
  4735. - Vector4* new(float x, float y, float z, float w)
  4736. - void delete()
  4737. - bool operator==(const Vector4& rhs) const
  4738. - Vector4 operator+(const Vector4& rhs) const
  4739. - Vector4 operator-() const
  4740. - Vector4 operator-(const Vector4& rhs) const
  4741. - Vector4 operator*(float rhs) const
  4742. - Vector4 operator*(const Vector4& rhs) const
  4743. - Vector4 operator/(float rhs) const
  4744. - Vector4 operator/(const Vector4& rhs) const
  4745. - Vector4 operator/(const Vector4& rhs) const
  4746. - float DotProduct(const Vector4& rhs) const
  4747. - float AbsDotProduct(const Vector4& rhs) const
  4748. - Vector4 Abs() const
  4749. - Vector4 Lerp(const Vector4& rhs, float t) const
  4750. - bool Equals(const Vector4& rhs) const
  4751. - bool IsNaN() const
  4752. - String ToString() const
  4753. Properties:
  4754. - float x
  4755. - float y
  4756. - float z
  4757. - float w
  4758. - const Vector4 ZERO
  4759. - const Vector4 ONE
  4760. ### VectorBuffer
  4761. Methods:
  4762. - VectorBuffer() (GC)
  4763. - VectorBuffer* new()
  4764. - VectorBuffer(Deserializer& source, unsigned size) (GC)
  4765. - VectorBuffer* new(Deserializer& source, unsigned size)
  4766. - void delete()
  4767. - void SetData(Deserializer& source, unsigned size)
  4768. - void Clear()
  4769. - void Resize(unsigned size)
  4770. - const void* GetData() const
  4771. - void* GetModifiableData()
  4772. - VectorBuffer Read(unsigned size)
  4773. - unsigned Seek(unsigned position)
  4774. - const String GetName() const
  4775. - unsigned GetChecksum()
  4776. - unsigned GetPosition() const
  4777. - unsigned GetSize() const
  4778. - bool IsEof() const
  4779. - int ReadInt()
  4780. - short ReadShort()
  4781. - char ReadByte()
  4782. - unsigned ReadUInt()
  4783. - short ReadUShort()
  4784. - char ReadUByte()
  4785. - bool ReadBool()
  4786. - float ReadFloat()
  4787. - IntRect ReadIntRect()
  4788. - IntVector2 ReadIntVector2()
  4789. - Rect ReadRect()
  4790. - Vector2 ReadVector2()
  4791. - Vector3 ReadVector3()
  4792. - Vector3 ReadPackedVector3(float maxAbsCoord)
  4793. - Vector4 ReadVector4()
  4794. - Quaternion ReadQuaternion()
  4795. - Quaternion ReadPackedQuaternion()
  4796. - Matrix3 ReadMatrix3()
  4797. - Matrix3x4 ReadMatrix3x4()
  4798. - Matrix4 ReadMatrix4()
  4799. - Color ReadColor()
  4800. - BoundingBox ReadBoundingBox()
  4801. - String ReadString()
  4802. - String ReadFileID()
  4803. - StringHash ReadStringHash()
  4804. - ShortStringHash ReadShortStringHash()
  4805. - VectorBuffer ReadBuffer()
  4806. - ResourceRef ReadResourceRef()
  4807. - ResourceRefList ReadResourceRefList()
  4808. - Variant ReadVariant()
  4809. - Variant ReadVariant(VariantType type)
  4810. - VariantVector ReadVariantVector()
  4811. - VariantMap ReadVariantMap()
  4812. - unsigned ReadVLE()
  4813. - unsigned ReadNetID()
  4814. - String ReadLine()
  4815. - unsigned Write(const VectorBuffer& buffer)
  4816. - bool WriteInt(int value)
  4817. - bool WriteShort(short value)
  4818. - bool WriteByte(char value)
  4819. - bool WriteUInt(unsigned value)
  4820. - bool WriteUShort(short value)
  4821. - bool WriteUByte(char value)
  4822. - bool WriteBool(bool value)
  4823. - bool WriteFloat(float value)
  4824. - bool WriteIntRect(const IntRect& value)
  4825. - bool WriteIntVector2(const IntVector2& value)
  4826. - bool WriteRect(const Rect& value)
  4827. - bool WriteVector2(const Vector2& value)
  4828. - bool WriteVector3(const Vector3& value)
  4829. - bool WritePackedVector3(const Vector3& value, float maxAbsCoord)
  4830. - bool WriteVector4(const Vector4& value)
  4831. - bool WriteQuaternion(const Quaternion& value)
  4832. - bool WritePackedQuaternion(const Quaternion& value)
  4833. - bool WriteMatrix3(const Matrix3& value)
  4834. - bool WriteMatrix3x4(const Matrix3x4& value)
  4835. - bool WriteMatrix4(const Matrix4& value)
  4836. - bool WriteColor(const Color& value)
  4837. - bool WriteBoundingBox(const BoundingBox& value)
  4838. - bool WriteString(const String value)
  4839. - bool WriteFileID(const String value)
  4840. - bool WriteStringHash(const StringHash& value)
  4841. - bool WriteShortStringHash(const ShortStringHash& value)
  4842. - bool WriteBuffer(const VectorBuffer& buffer)
  4843. - bool WriteResourceRef(const ResourceRef& value)
  4844. - bool WriteResourceRefList(const ResourceRefList& value)
  4845. - bool WriteVariant(const Variant& value)
  4846. - bool WriteVariantData(const Variant& value)
  4847. - bool WriteVariantVector(const VariantVector& value)
  4848. - bool WriteVariantMap(const VariantMap& value)
  4849. - bool WriteVLE(unsigned value)
  4850. - bool WriteNetID(unsigned value)
  4851. - bool WriteLine(const String value)
  4852. Properties:
  4853. - String name (readonly)
  4854. - unsigned checksum (readonly)
  4855. - unsigned position (readonly)
  4856. - unsigned size (readonly)
  4857. - bool eof (readonly)
  4858. ### View3D : Window
  4859. Methods:
  4860. - View3D() (GC)
  4861. - View3D* new()
  4862. - void delete()
  4863. - void SetView(Scene* scene, Camera* camera)
  4864. - void SetFormat(unsigned format)
  4865. - void SetAutoUpdate(bool enable)
  4866. - void QueueUpdate()
  4867. - unsigned GetFormat() const
  4868. - bool GetAutoUpdate() const
  4869. - Scene* GetScene() const
  4870. - Node* GetCameraNode() const
  4871. - Texture2D* GetRenderTexture() const
  4872. - Texture2D* GetDepthTexture() const
  4873. - Viewport* GetViewport() const
  4874. Properties:
  4875. - unsigned format
  4876. - bool autoUpdate
  4877. ### Viewport
  4878. Methods:
  4879. - Viewport() (GC)
  4880. - Viewport* new()
  4881. - Viewport(Scene* scene, Camera* camera, RenderPath* renderPath = 0) (GC)
  4882. - Viewport* new(Scene* scene, Camera* camera, RenderPath* renderPath = 0)
  4883. - Viewport(Scene* scene, Camera* camera, const IntRect& rect, RenderPath* renderPath = 0) (GC)
  4884. - Viewport* new(Scene* scene, Camera* camera, const IntRect& rect, RenderPath* renderPath = 0)
  4885. - void delete()
  4886. - void SetScene(Scene* scene)
  4887. - void SetCamera(Camera* camera)
  4888. - void SetRect(const IntRect& rect)
  4889. - void SetRenderPath(RenderPath* path)
  4890. - void SetRenderPath(XMLFile* file)
  4891. - Scene* GetScene() const
  4892. - Camera* GetCamera() const
  4893. - const IntRect& GetRect() const
  4894. - RenderPath* GetRenderPath() const
  4895. Properties:
  4896. - Scene* scene
  4897. - Camera* camera
  4898. - IntRect& rect
  4899. - RenderPath* renderPath
  4900. ### Window : BorderImage
  4901. Methods:
  4902. - Window() (GC)
  4903. - Window* new()
  4904. - void delete()
  4905. - void SetMovable(bool enable)
  4906. - void SetResizable(bool enable)
  4907. - void SetFixedWidthResizing(bool enable)
  4908. - void SetFixedHeightResizing(bool enable)
  4909. - void SetResizeBorder(const IntRect& rect)
  4910. - void SetModal(bool modal)
  4911. - void SetModalShadeColor(const Color& color)
  4912. - void SetModalFrameColor(const Color& color)
  4913. - void SetModalFrameSize(const IntVector2& size)
  4914. - bool IsMovable() const
  4915. - bool IsResizable() const
  4916. - bool GetFixedWidthResizing() const
  4917. - bool GetFixedHeightResizing() const
  4918. - const IntRect& GetResizeBorder() const
  4919. - bool IsModal() const
  4920. - const Color& GetModalShadeColor() const
  4921. - const Color& GetModalFrameColor() const
  4922. - const IntVector2& GetModalFrameSize() const
  4923. Properties:
  4924. - bool movable
  4925. - bool resizable
  4926. - bool fixedWidthResizing
  4927. - bool fixedHeightResizing
  4928. - IntRect& resizeBorder
  4929. - bool modal
  4930. - Color& modalShadeColor
  4931. - Color& modalFrameColor
  4932. - IntVector2& modalFrameSize
  4933. ### XMLElement
  4934. Methods:
  4935. - XMLElement CreateChild(const String name)
  4936. - bool RemoveChild(const XMLElement& element)
  4937. - bool RemoveChild(const String name)
  4938. - bool RemoveChildren(const String name = String::EMPTY)
  4939. - bool RemoveAttribute(const String name = String::EMPTY)
  4940. - bool SetValue(const String value)
  4941. - bool SetAttribute(const String name, const String value)
  4942. - bool SetBool(const String name, bool value)
  4943. - bool SetBoundingBox(const BoundingBox& value)
  4944. - bool SetColor(const String name, const Color& value)
  4945. - bool SetFloat(const String name, float value)
  4946. - bool SetUInt(const String name, unsigned value)
  4947. - bool SetInt(const String name, int value)
  4948. - bool SetIntRect(const String name, const IntRect& value)
  4949. - bool SetIntVector2(const String name, const IntVector2& value)
  4950. - bool SetRect(const String name, const Rect& value)
  4951. - bool SetQuaternion(const String name, const Quaternion& value)
  4952. - bool SetString(const String name, const String value)
  4953. - bool SetVariant(const Variant& value)
  4954. - bool SetVariantValue(const Variant& value)
  4955. - bool SetResourceRef(const ResourceRef& value)
  4956. - bool SetResourceRefList(const ResourceRefList& value)
  4957. - bool SetVector2(const String name, const Vector2& value)
  4958. - bool SetVector3(const String name, const Vector3& value)
  4959. - bool SetVector4(const String name, const Vector4& value)
  4960. - bool SetVectorVariant(const String name, const Variant& value)
  4961. - bool SetMatrix3(const String name, const Matrix3& value)
  4962. - bool SetMatrix3x4(const String name, const Matrix3x4& value)
  4963. - bool SetMatrix4(const String name, const Matrix4& value)
  4964. - bool IsNull() const
  4965. - bool NotNull() const
  4966. - bool operatorbool() const
  4967. - String GetName() const
  4968. - bool HasChild(const String name) const
  4969. - XMLElement GetChild(const String name = String::EMPTY) const
  4970. - XMLElement GetNext(const String name = String::EMPTY) const
  4971. - XMLElement GetParent() const
  4972. - unsigned GetNumAttributes() const
  4973. - bool HasAttribute(const String name) const
  4974. - bool GetBool(const String name) const
  4975. - BoundingBox GetBoundingBox() const
  4976. - String GetValue() const
  4977. - Color GetColor(const String name) const
  4978. - float GetFloat(const String name) const
  4979. - unsigned GetUInt(const String name) const
  4980. - int GetInt(const String name) const
  4981. - IntRect GetIntRect(const String name) const
  4982. - IntVector2 GetIntVector2(const String name) const
  4983. - Rect GetRect(const String name) const
  4984. - Quaternion GetQuaternion(const String name) const
  4985. - Variant GetVariant() const
  4986. - Variant GetVariantValue(VariantType type) const
  4987. - ResourceRef GetResourceRef() const
  4988. - ResourceRefList GetResourceRefList() const
  4989. - VariantMap GetVariantMap() const
  4990. - Vector2 GetVector2(const String name) const
  4991. - Vector3 GetVector3(const String name) const
  4992. - Vector4 GetVector4(const String name) const
  4993. - Vector4 GetVector(const String name) const
  4994. - Matrix3 GetMatrix3(const String name) const
  4995. - Matrix3x4 GetMatrix3x4(const String name) const
  4996. - Matrix4 GetMatrix4(const String name) const
  4997. - XMLFile* GetFile() const
  4998. Properties:
  4999. - const XMLElement EMPTY
  5000. - bool null (readonly)
  5001. - String name (readonly)
  5002. - String value (readonly)
  5003. - XMLElement parent (readonly)
  5004. - unsigned numAttributes (readonly)
  5005. - XMLFile* file (readonly)
  5006. ### XMLFile : Resource
  5007. Methods:
  5008. - XMLFile() (GC)
  5009. - XMLFile* new()
  5010. - void delete()
  5011. - XMLElement CreateRoot(const String name = String::EMPTY)
  5012. - XMLElement GetRoot(const String name = String::EMPTY)
  5013. - void Patch(XMLFile* patchFile)
  5014. - void Patch(XMLElement patchElement)
  5015. ### Zone : Drawable
  5016. Methods:
  5017. - void SetBoundingBox(const BoundingBox& box)
  5018. - void SetAmbientColor(const Color& color)
  5019. - void SetFogColor(const Color& color)
  5020. - void SetFogStart(float start)
  5021. - void SetFogEnd(float end)
  5022. - void SetFogHeight(float height)
  5023. - void SetFogHeightScale(float scale)
  5024. - void SetPriority(int priority)
  5025. - void SetHeightFog(bool enable)
  5026. - void SetOverride(bool enable)
  5027. - void SetAmbientGradient(bool enable)
  5028. - const Matrix3x4& GetInverseWorldTransform() const
  5029. - const Color& GetAmbientColor() const
  5030. - const Color& GetAmbientStartColor()
  5031. - const Color& GetAmbientEndColor()
  5032. - const Color& GetFogColor() const
  5033. - float GetFogStart() const
  5034. - float GetFogEnd() const
  5035. - float GetFogHeight() const
  5036. - float GetFogHeightScale() const
  5037. - int GetPriority() const
  5038. - bool GetHeightFog() const
  5039. - bool GetOverride() const
  5040. - bool GetAmbientGradient() const
  5041. - bool IsInside(const Vector3& point) const
  5042. Properties:
  5043. - BoundingBox& boundingBox
  5044. - Matrix3x4& inverseWorldTransform (readonly)
  5045. - Color& ambientColor
  5046. - Color& ambientStartColor (readonly)
  5047. - Color& ambientEndColor (readonly)
  5048. - Color& fogColor
  5049. - float fogStart
  5050. - float fogEnd
  5051. - float fogHeight
  5052. - float fogHeightScale
  5053. - int priority
  5054. - bool heightFog
  5055. - bool override
  5056. - bool ambientGradient
  5057. \section LuaScriptAPI_Enums Enumerations
  5058. ### BlendMode
  5059. - int BLEND_REPLACE
  5060. - int BLEND_ADD
  5061. - int BLEND_MULTIPLY
  5062. - int BLEND_ALPHA
  5063. - int BLEND_ADDALPHA
  5064. - int BLEND_PREMULALPHA
  5065. - int BLEND_INVDESTALPHA
  5066. - int BLEND_SUBTRACT
  5067. - int BLEND_SUBTRACTALPHA
  5068. - int MAX_BLENDMODES
  5069. ### BodyType2D
  5070. - int BT_STATIC
  5071. - int BT_DYNAMIC
  5072. - int BT_KINEMATIC
  5073. ### CollisionEventMode
  5074. - int COLLISION_NEVER
  5075. - int COLLISION_ACTIVE
  5076. - int COLLISION_ALWAYS
  5077. ### CompareMode
  5078. - int CMP_ALWAYS
  5079. - int CMP_EQUAL
  5080. - int CMP_NOTEQUAL
  5081. - int CMP_LESS
  5082. - int CMP_LESSEQUAL
  5083. - int CMP_GREATER
  5084. - int CMP_GREATEREQUAL
  5085. - int MAX_COMPAREMODES
  5086. ### CompressedFormat
  5087. - int CF_NONE
  5088. - int CF_DXT1
  5089. - int CF_DXT3
  5090. - int CF_DXT5
  5091. - int CF_ETC1
  5092. - int CF_PVRTC_RGB_2BPP
  5093. - int CF_PVRTC_RGBA_2BPP
  5094. - int CF_PVRTC_RGB_4BPP
  5095. - int CF_PVRTC_RGBA_4BPP
  5096. ### ConstraintType
  5097. - int CONSTRAINT_POINT
  5098. - int CONSTRAINT_HINGE
  5099. - int CONSTRAINT_SLIDER
  5100. - int CONSTRAINT_CONETWIST
  5101. ### Corner
  5102. - int C_TOPLEFT
  5103. - int C_TOPRIGHT
  5104. - int C_BOTTOMLEFT
  5105. - int C_BOTTOMRIGHT
  5106. - int MAX_UIELEMENT_CORNERS
  5107. ### CreateMode
  5108. - int REPLICATED
  5109. - int LOCAL
  5110. ### CubeMapFace
  5111. - int FACE_POSITIVE_X
  5112. - int FACE_NEGATIVE_X
  5113. - int FACE_POSITIVE_Y
  5114. - int FACE_NEGATIVE_Y
  5115. - int FACE_POSITIVE_Z
  5116. - int FACE_NEGATIVE_Z
  5117. - int MAX_CUBEMAP_FACES
  5118. ### CullMode
  5119. - int CULL_NONE
  5120. - int CULL_CCW
  5121. - int CULL_CW
  5122. - int MAX_CULLMODES
  5123. ### CursorShape
  5124. - int CS_NORMAL
  5125. - int CS_RESIZEVERTICAL
  5126. - int CS_RESIZEDIAGONAL_TOPRIGHT
  5127. - int CS_RESIZEHORIZONTAL
  5128. - int CS_RESIZEDIAGONAL_TOPLEFT
  5129. - int CS_ACCEPTDROP
  5130. - int CS_REJECTDROP
  5131. - int CS_BUSY
  5132. - int CS_MAX_SHAPES
  5133. ### CycleMode
  5134. - int CM_LOOP
  5135. - int CM_CLAMP
  5136. - int CM_PINGPONG
  5137. ### EmitterType
  5138. - int EMITTER_SPHERE
  5139. - int EMITTER_BOX
  5140. ### EmitterType2D
  5141. - int EMITTER_TYPE_GRAVITY
  5142. - int EMITTER_TYPE_RADIAL
  5143. ### FileMode
  5144. - int FILE_READ
  5145. - int FILE_WRITE
  5146. - int FILE_READWRITE
  5147. ### FillMode
  5148. - int FILL_SOLID
  5149. - int FILL_WIREFRAME
  5150. - int FILL_POINT
  5151. ### FocusMode
  5152. - int FM_NOTFOCUSABLE
  5153. - int FM_RESETFOCUS
  5154. - int FM_FOCUSABLE
  5155. - int FM_FOCUSABLE_DEFOCUSABLE
  5156. ### FrustumPlane
  5157. - int PLANE_NEAR
  5158. - int PLANE_LEFT
  5159. - int PLANE_RIGHT
  5160. - int PLANE_UP
  5161. - int PLANE_DOWN
  5162. - int PLANE_FAR
  5163. ### GeometryType
  5164. - int GEOM_STATIC
  5165. - int GEOM_SKINNED
  5166. - int GEOM_INSTANCED
  5167. - int GEOM_BILLBOARD
  5168. - int GEOM_STATIC_NOINSTANCING
  5169. - int MAX_GEOMETRYTYPES
  5170. ### HighlightMode
  5171. - int HM_NEVER
  5172. - int HM_FOCUS
  5173. - int HM_ALWAYS
  5174. ### HorizontalAlignment
  5175. - int HA_LEFT
  5176. - int HA_CENTER
  5177. - int HA_RIGHT
  5178. ### HttpRequestState
  5179. - int HTTP_INITIALIZING
  5180. - int HTTP_ERROR
  5181. - int HTTP_OPEN
  5182. - int HTTP_CLOSED
  5183. ### InterpMethod
  5184. - int IM_LINEAR
  5185. - int IM_SPLINE
  5186. ### InterpolationMode
  5187. - int BEZIER_CURVE
  5188. ### Intersection
  5189. - int OUTSIDE
  5190. - int INTERSECTS
  5191. - int INSIDE
  5192. ### LayoutMode
  5193. - int LM_FREE
  5194. - int LM_HORIZONTAL
  5195. - int LM_VERTICAL
  5196. ### LightType
  5197. - int LIGHT_DIRECTIONAL
  5198. - int LIGHT_SPOT
  5199. - int LIGHT_POINT
  5200. ### LockState
  5201. - int LOCK_NONE
  5202. - int LOCK_HARDWARE
  5203. - int LOCK_SHADOW
  5204. - int LOCK_SCRATCH
  5205. ### Orientation
  5206. - int O_HORIZONTAL
  5207. - int O_VERTICAL
  5208. ### PassLightingMode
  5209. - int LIGHTING_UNLIT
  5210. - int LIGHTING_PERVERTEX
  5211. - int LIGHTING_PERPIXEL
  5212. ### PrimitiveType
  5213. - int TRIANGLE_LIST
  5214. - int LINE_LIST
  5215. ### RayQueryLevel
  5216. - int RAY_AABB
  5217. - int RAY_OBB
  5218. - int RAY_TRIANGLE
  5219. ### RenderSurfaceUpdateMode
  5220. - int SURFACE_MANUALUPDATE
  5221. - int SURFACE_UPDATEVISIBLE
  5222. - int SURFACE_UPDATEALWAYS
  5223. ### ShaderParameterGroup
  5224. - int SP_FRAME
  5225. - int SP_CAMERA
  5226. - int SP_VIEWPORT
  5227. - int SP_ZONE
  5228. - int SP_LIGHT
  5229. - int SP_VERTEXLIGHTS
  5230. - int SP_MATERIAL
  5231. - int SP_OBJECTTRANSFORM
  5232. - int MAX_SHADER_PARAMETER_GROUPS
  5233. ### ShaderType
  5234. - int VS
  5235. - int PS
  5236. ### ShapeType
  5237. - int SHAPE_BOX
  5238. - int SHAPE_SPHERE
  5239. - int SHAPE_STATICPLANE
  5240. - int SHAPE_CYLINDER
  5241. - int SHAPE_CAPSULE
  5242. - int SHAPE_CONE
  5243. - int SHAPE_TRIANGLEMESH
  5244. - int SHAPE_CONVEXHULL
  5245. - int SHAPE_TERRAIN
  5246. ### SoundType
  5247. - int SOUND_EFFECT
  5248. - int SOUND_AMBIENT
  5249. - int SOUND_VOICE
  5250. - int SOUND_MUSIC
  5251. - int SOUND_MASTER
  5252. - int MAX_SOUND_TYPES
  5253. ### StencilOp
  5254. - int OP_KEEP
  5255. - int OP_ZERO
  5256. - int OP_REF
  5257. - int OP_INCR
  5258. - int OP_DECR
  5259. ### TextEffect
  5260. - int TE_NONE
  5261. - int TE_SHADOW
  5262. - int TE_STROKE
  5263. ### TextureAddressMode
  5264. - int ADDRESS_WRAP
  5265. - int ADDRESS_MIRROR
  5266. - int ADDRESS_CLAMP
  5267. - int ADDRESS_BORDER
  5268. - int MAX_ADDRESSMODES
  5269. ### TextureCoordinate
  5270. - int COORD_U
  5271. - int COORD_V
  5272. - int COORD_W
  5273. - int MAX_COORDS
  5274. ### TextureFilterMode
  5275. - int FILTER_NEAREST
  5276. - int FILTER_BILINEAR
  5277. - int FILTER_TRILINEAR
  5278. - int FILTER_ANISOTROPIC
  5279. - int FILTER_DEFAULT
  5280. - int MAX_FILTERMODES
  5281. ### TextureUnit
  5282. - int TU_DIFFUSE
  5283. - int TU_ALBEDOBUFFER
  5284. - int TU_NORMAL
  5285. - int TU_NORMALBUFFER
  5286. - int TU_SPECULAR
  5287. - int TU_EMISSIVE
  5288. - int TU_ENVIRONMENT
  5289. - int MAX_MATERIAL_TEXTURE_UNITS
  5290. - int TU_LIGHTRAMP
  5291. - int TU_LIGHTSHAPE
  5292. - int TU_SHADOWMAP
  5293. - int TU_FACESELECT
  5294. - int TU_INDIRECTION
  5295. - int TU_DEPTHBUFFER
  5296. - int TU_LIGHTBUFFER
  5297. - int TU_VOLUMEMAP
  5298. - int MAX_TEXTURE_UNITS
  5299. ### TextureUsage
  5300. - int TEXTURE_STATIC
  5301. - int TEXTURE_DYNAMIC
  5302. - int TEXTURE_RENDERTARGET
  5303. - int TEXTURE_DEPTHSTENCIL
  5304. ### TransformSpace
  5305. - int TS_LOCAL
  5306. - int TS_PARENT
  5307. - int TS_WORLD
  5308. ### TraversalMode
  5309. - int TM_BREADTH_FIRST
  5310. - int TM_DEPTH_FIRST
  5311. ### VariantType
  5312. - int VAR_NONE
  5313. - int VAR_INT
  5314. - int VAR_BOOL
  5315. - int VAR_FLOAT
  5316. - int VAR_VECTOR2
  5317. - int VAR_VECTOR3
  5318. - int VAR_VECTOR4
  5319. - int VAR_QUATERNION
  5320. - int VAR_COLOR
  5321. - int VAR_STRING
  5322. - int VAR_BUFFER
  5323. - int VAR_VOIDPTR
  5324. - int VAR_RESOURCEREF
  5325. - int VAR_RESOURCEREFLIST
  5326. - int VAR_VARIANTVECTOR
  5327. - int VAR_VARIANTMAP
  5328. - int VAR_INTRECT
  5329. - int VAR_INTVECTOR2
  5330. - int VAR_PTR
  5331. - int VAR_MATRIX3
  5332. - int VAR_MATRIX3X4
  5333. - int VAR_MATRIX4
  5334. - int MAX_VAR_TYPES
  5335. ### VertexElement
  5336. - int ELEMENT_POSITION
  5337. - int ELEMENT_NORMAL
  5338. - int ELEMENT_COLOR
  5339. - int ELEMENT_TEXCOORD1
  5340. - int ELEMENT_TEXCOORD2
  5341. - int ELEMENT_CUBETEXCOORD1
  5342. - int ELEMENT_CUBETEXCOORD2
  5343. - int ELEMENT_TANGENT
  5344. - int ELEMENT_BLENDWEIGHTS
  5345. - int ELEMENT_BLENDINDICES
  5346. - int ELEMENT_INSTANCEMATRIX1
  5347. - int ELEMENT_INSTANCEMATRIX2
  5348. - int ELEMENT_INSTANCEMATRIX3
  5349. - int MAX_VERTEX_ELEMENTS
  5350. ### VerticalAlignment
  5351. - int VA_TOP
  5352. - int VA_CENTER
  5353. - int VA_BOTTOM
  5354. ### WindowDragMode
  5355. - int DRAG_NONE
  5356. - int DRAG_MOVE
  5357. - int DRAG_RESIZE_TOPLEFT
  5358. - int DRAG_RESIZE_TOP
  5359. - int DRAG_RESIZE_TOPRIGHT
  5360. - int DRAG_RESIZE_RIGHT
  5361. - int DRAG_RESIZE_BOTTOMRIGHT
  5362. - int DRAG_RESIZE_BOTTOM
  5363. - int DRAG_RESIZE_BOTTOMLEFT
  5364. - int DRAG_RESIZE_LEFT
  5365. ### WrapMode
  5366. - int WM_LOOP
  5367. - int WM_ONCE
  5368. - int WM_CLAMP
  5369. \section LuaScriptAPI_GlobalFunctions Global functions
  5370. - float Abs(float value)
  5371. - int Abs(int value)
  5372. - float Acos(float x)
  5373. - String AddTrailingSlash(const String pathName)
  5374. - float Asin(float x)
  5375. - float Atan(float x)
  5376. - float Atan2(float y, float x)
  5377. - float Clamp(float value, float min, float max)
  5378. - int ClampInt(int value, int min, int max)
  5379. - float Cos(float angle)
  5380. - bool Equals(float lhs, float rhs)
  5381. - void ErrorDialog(const String title, const String message)
  5382. - void ErrorExit(const String message = String::EMPTY, int exitCode = EXIT_FAILURE)
  5383. - const Vector<String>& GetArguments()
  5384. - Audio* GetAudio()
  5385. - ResourceCache* GetCache()
  5386. - Console* GetConsole()
  5387. - String GetConsoleInput()
  5388. - Context* GetContext()
  5389. - DebugHud* GetDebugHud()
  5390. - Engine* GetEngine()
  5391. - EventHandler* GetEventHandler() const
  5392. - Object* GetEventSender()
  5393. - bool GetExecuteConsoleCommands()
  5394. - String GetExtension(const String fullPath, bool lowercaseExtension = true)
  5395. - String GetFileName(const String fullPath)
  5396. - String GetFileNameAndExtension(const String fullPath, bool lowercaseExtension = false)
  5397. - FileSystem* GetFileSystem()
  5398. - Graphics* GetGraphics()
  5399. - Input* GetInput()
  5400. - String GetInternalPath(const String pathName)
  5401. - Log* GetLog()
  5402. - String GetNativePath(const String pathName)
  5403. - Network* GetNetwork()
  5404. - unsigned GetNumLogicalCPUs()
  5405. - unsigned GetNumPhysicalCPUs()
  5406. - String GetParentPath(const String pathName)
  5407. - String GetPath(const String fullPath)
  5408. - String GetPlatform()
  5409. - unsigned GetRandomSeed()
  5410. - Renderer* GetRenderer()
  5411. - Time* GetTime()
  5412. - UI* GetUI()
  5413. - bool IsAbsolutePath(const String pathName)
  5414. - bool IsAlpha(unsigned ch)
  5415. - bool IsDigit(unsigned ch)
  5416. - bool IsNaN(float value)
  5417. - bool IsPowerOfTwo(unsigned value)
  5418. - float Lerp(float lhs, float rhs, float t)
  5419. - int Max(int lhs, int rhs)
  5420. - float Max(float lhs, float rhs)
  5421. - float Min(float lhs, float rhs)
  5422. - int Min(int lhs, int rhs)
  5423. - unsigned NextPowerOfTwo(unsigned value)
  5424. - void OpenConsoleWindow()
  5425. - void PrintLine(const String str, bool error = false)
  5426. - int Rand()
  5427. - float RandStandardNormal()
  5428. - float Random()
  5429. - float Random(float min, float max)
  5430. - float Random(float range)
  5431. - int RandomInt(int range)
  5432. - int RandomInt(int min, int max)
  5433. - float RandomNormal(float meanValue, float variance)
  5434. - String RemoveTrailingSlash(const String pathName)
  5435. - String ReplaceExtension(const String fullPath, const String newExtension)
  5436. - unsigned SDBMHash(unsigned hash, char c)
  5437. - void SendEvent(const String eventName, VariantMap& eventData)
  5438. - void SetExecuteConsoleCommands(bool enable)
  5439. - void SetRandomSeed(unsigned seed)
  5440. - float Sign(float value)
  5441. - float Sin(float angle)
  5442. - float SmoothStep(float lhs, float rhs, float t)
  5443. - void SubscribeToEvent(const String eventName, const String functionName)
  5444. - void SubscribeToEvent(void* sender, const String eventName, const String functionName)
  5445. - float Tan(float angle)
  5446. - bool ToBool(const String source)
  5447. - Color ToColor(const String source)
  5448. - float ToFloat(const String source)
  5449. - int ToInt(const String source)
  5450. - IntRect ToIntRect(const String source)
  5451. - IntVector2 ToIntVector2(const String source)
  5452. - unsigned ToLower(unsigned ch)
  5453. - Matrix3 ToMatrix3(const String source)
  5454. - Matrix3x4 ToMatrix3x4(const String source)
  5455. - Matrix4 ToMatrix4(const String source)
  5456. - Quaternion ToQuaternion(const String source)
  5457. - Rect ToRect(const String source)
  5458. - String ToString(void* value)
  5459. - String ToStringHex(unsigned value)
  5460. - unsigned ToUInt(const String source)
  5461. - unsigned ToUpper(unsigned ch)
  5462. - Vector2 ToVector2(const String source)
  5463. - Vector3 ToVector3(const String source)
  5464. - Vector4 ToVector4(const String source, bool allowMissingCoords = false)
  5465. - void UnsubscribeFromAllEvents()
  5466. - void UnsubscribeFromEvent(void* sender, const String eventName, const String functionName = String::EMPTY)
  5467. - void UnsubscribeFromEvent(const String eventName, const String functionName = String::EMPTY)
  5468. - void UnsubscribeFromEvents(void* sender)
  5469. \section LuaScriptAPI_GlobalProperties Global properties
  5470. - Audio* audio (readonly)
  5471. - ResourceCache* cache (readonly)
  5472. - Console* console (readonly)
  5473. - DebugHud* debugHud (readonly)
  5474. - Engine* engine (readonly)
  5475. - FileSystem* fileSystem (readonly)
  5476. - Graphics* graphics (readonly)
  5477. - Input* input (readonly)
  5478. - Log* log (readonly)
  5479. - Network* network (readonly)
  5480. - Renderer* renderer (readonly)
  5481. - Time* time (readonly)
  5482. - UI* ui (readonly)
  5483. \section LuaScriptAPI_GlobalConstants Global constants
  5484. - float ANIMATION_LOD_BASESCALE
  5485. - char CHANNEL_POSITION
  5486. - char CHANNEL_ROTATION
  5487. - char CHANNEL_SCALE
  5488. - unsigned CLEAR_COLOR
  5489. - unsigned CLEAR_DEPTH
  5490. - unsigned CLEAR_STENCIL
  5491. - int CONTROLLER_AXIS_LEFTX
  5492. - int CONTROLLER_AXIS_LEFTY
  5493. - int CONTROLLER_AXIS_RIGHTX
  5494. - int CONTROLLER_AXIS_RIGHTY
  5495. - int CONTROLLER_AXIS_TRIGGERLEFT
  5496. - int CONTROLLER_AXIS_TRIGGERRIGHT
  5497. - int CONTROLLER_BUTTON_A
  5498. - int CONTROLLER_BUTTON_B
  5499. - int CONTROLLER_BUTTON_BACK
  5500. - int CONTROLLER_BUTTON_DPAD_DOWN
  5501. - int CONTROLLER_BUTTON_DPAD_LEFT
  5502. - int CONTROLLER_BUTTON_DPAD_RIGHT
  5503. - int CONTROLLER_BUTTON_DPAD_UP
  5504. - int CONTROLLER_BUTTON_GUIDE
  5505. - int CONTROLLER_BUTTON_LEFTSHOULDER
  5506. - int CONTROLLER_BUTTON_LEFTSTICK
  5507. - int CONTROLLER_BUTTON_RIGHTSHOULDER
  5508. - int CONTROLLER_BUTTON_RIGHTSTICK
  5509. - int CONTROLLER_BUTTON_START
  5510. - int CONTROLLER_BUTTON_X
  5511. - int CONTROLLER_BUTTON_Y
  5512. - unsigned DD_DISABLED
  5513. - unsigned DD_SOURCE
  5514. - unsigned DD_SOURCE_AND_TARGET
  5515. - unsigned DD_TARGET
  5516. - unsigned DEBUGHUD_SHOW_ALL
  5517. - unsigned DEBUGHUD_SHOW_MODE
  5518. - unsigned DEBUGHUD_SHOW_NONE
  5519. - unsigned DEBUGHUD_SHOW_PROFILER
  5520. - unsigned DEBUGHUD_SHOW_STATS
  5521. - unsigned DEFAULT_LIGHTMASK
  5522. - unsigned DEFAULT_SHADOWMASK
  5523. - unsigned DEFAULT_VIEWMASK
  5524. - unsigned DEFAULT_ZONEMASK
  5525. - unsigned DRAWABLE_ANY
  5526. - unsigned DRAWABLE_GEOMETRY
  5527. - unsigned DRAWABLE_LIGHT
  5528. - unsigned DRAWABLE_ZONE
  5529. - unsigned FIRST_LOCAL_ID
  5530. - unsigned FIRST_REPLICATED_ID
  5531. - int HAT_CENTER
  5532. - int HAT_DOWN
  5533. - int HAT_LEFT
  5534. - int HAT_RIGHT
  5535. - int HAT_UP
  5536. - int KEY_0
  5537. - int KEY_1
  5538. - int KEY_2
  5539. - int KEY_3
  5540. - int KEY_4
  5541. - int KEY_5
  5542. - int KEY_6
  5543. - int KEY_7
  5544. - int KEY_8
  5545. - int KEY_9
  5546. - int KEY_A
  5547. - int KEY_ALT
  5548. - int KEY_APPLICATION
  5549. - int KEY_B
  5550. - int KEY_BACKSPACE
  5551. - int KEY_C
  5552. - int KEY_CAPSLOCK
  5553. - int KEY_CTRL
  5554. - int KEY_D
  5555. - int KEY_DELETE
  5556. - int KEY_DOWN
  5557. - int KEY_E
  5558. - int KEY_END
  5559. - int KEY_ESC
  5560. - int KEY_F
  5561. - int KEY_F1
  5562. - int KEY_F10
  5563. - int KEY_F11
  5564. - int KEY_F12
  5565. - int KEY_F13
  5566. - int KEY_F14
  5567. - int KEY_F15
  5568. - int KEY_F16
  5569. - int KEY_F17
  5570. - int KEY_F18
  5571. - int KEY_F19
  5572. - int KEY_F2
  5573. - int KEY_F20
  5574. - int KEY_F21
  5575. - int KEY_F22
  5576. - int KEY_F23
  5577. - int KEY_F24
  5578. - int KEY_F3
  5579. - int KEY_F4
  5580. - int KEY_F5
  5581. - int KEY_F6
  5582. - int KEY_F7
  5583. - int KEY_F8
  5584. - int KEY_F9
  5585. - int KEY_G
  5586. - int KEY_GUI
  5587. - int KEY_H
  5588. - int KEY_HOME
  5589. - int KEY_I
  5590. - int KEY_INSERT
  5591. - int KEY_J
  5592. - int KEY_K
  5593. - int KEY_KP_0
  5594. - int KEY_KP_1
  5595. - int KEY_KP_2
  5596. - int KEY_KP_3
  5597. - int KEY_KP_4
  5598. - int KEY_KP_5
  5599. - int KEY_KP_6
  5600. - int KEY_KP_7
  5601. - int KEY_KP_8
  5602. - int KEY_KP_9
  5603. - int KEY_KP_DIVIDE
  5604. - int KEY_KP_ENTER
  5605. - int KEY_KP_MINUS
  5606. - int KEY_KP_MULTIPLY
  5607. - int KEY_KP_PERIOD
  5608. - int KEY_KP_PLUS
  5609. - int KEY_L
  5610. - int KEY_LALT
  5611. - int KEY_LCTRL
  5612. - int KEY_LEFT
  5613. - int KEY_LGUI
  5614. - int KEY_LSHIFT
  5615. - int KEY_M
  5616. - int KEY_N
  5617. - int KEY_NUMLOCKCLEAR
  5618. - int KEY_O
  5619. - int KEY_P
  5620. - int KEY_PAGEDOWN
  5621. - int KEY_PAGEUP
  5622. - int KEY_PAUSE
  5623. - int KEY_PRINTSCREEN
  5624. - int KEY_Q
  5625. - int KEY_R
  5626. - int KEY_RALT
  5627. - int KEY_RCTRL
  5628. - int KEY_RETURN
  5629. - int KEY_RETURN2
  5630. - int KEY_RGUI
  5631. - int KEY_RIGHT
  5632. - int KEY_RSHIFT
  5633. - int KEY_S
  5634. - int KEY_SCROLLLOCK
  5635. - int KEY_SELECT
  5636. - int KEY_SHIFT
  5637. - int KEY_SPACE
  5638. - int KEY_T
  5639. - int KEY_TAB
  5640. - int KEY_U
  5641. - int KEY_UP
  5642. - int KEY_V
  5643. - int KEY_W
  5644. - int KEY_X
  5645. - int KEY_Y
  5646. - int KEY_Z
  5647. - unsigned LAST_LOCAL_ID
  5648. - unsigned LAST_REPLICATED_ID
  5649. - int LOG_DEBUG
  5650. - int LOG_ERROR
  5651. - int LOG_INFO
  5652. - int LOG_NONE
  5653. - int LOG_WARNING
  5654. - int MAX_VERTEX_LIGHTS
  5655. - int MOUSEB_LEFT
  5656. - int MOUSEB_MIDDLE
  5657. - int MOUSEB_RIGHT
  5658. - float M_DEGTORAD
  5659. - float M_DEGTORAD_2
  5660. - float M_EPSILON
  5661. - float M_HALF_PI
  5662. - float M_INFINITY
  5663. - float M_LARGE_EPSILON
  5664. - float M_LARGE_VALUE
  5665. - float M_MAX_FOV
  5666. - int M_MAX_INT
  5667. - unsigned M_MAX_UNSIGNED
  5668. - int M_MIN_INT
  5669. - float M_MIN_NEARCLIP
  5670. - unsigned M_MIN_UNSIGNED
  5671. - float M_PI
  5672. - float M_RADTODEG
  5673. - unsigned NUM_FRUSTUM_PLANES
  5674. - unsigned NUM_FRUSTUM_VERTICES
  5675. - float PIXEL_SIZE
  5676. - int QUALITY_HIGH
  5677. - int QUALITY_LOW
  5678. - int QUALITY_MAX
  5679. - int QUALITY_MEDIUM
  5680. - int QUAL_ALT
  5681. - int QUAL_ANY
  5682. - int QUAL_CTRL
  5683. - int QUAL_SHIFT
  5684. - int SCANCODE_0
  5685. - int SCANCODE_1
  5686. - int SCANCODE_2
  5687. - int SCANCODE_3
  5688. - int SCANCODE_4
  5689. - int SCANCODE_5
  5690. - int SCANCODE_6
  5691. - int SCANCODE_7
  5692. - int SCANCODE_8
  5693. - int SCANCODE_9
  5694. - int SCANCODE_A
  5695. - int SCANCODE_AC_BACK
  5696. - int SCANCODE_AC_BOOKMARKS
  5697. - int SCANCODE_AC_FORWARD
  5698. - int SCANCODE_AC_HOME
  5699. - int SCANCODE_AC_REFRESH
  5700. - int SCANCODE_AC_SEARCH
  5701. - int SCANCODE_AC_STOP
  5702. - int SCANCODE_AGAIN
  5703. - int SCANCODE_ALT
  5704. - int SCANCODE_ALTERASE
  5705. - int SCANCODE_APOSTROPHE
  5706. - int SCANCODE_APP1
  5707. - int SCANCODE_APP2
  5708. - int SCANCODE_APPLICATION
  5709. - int SCANCODE_AUDIOMUTE
  5710. - int SCANCODE_AUDIONEXT
  5711. - int SCANCODE_AUDIOPLAY
  5712. - int SCANCODE_AUDIOPREV
  5713. - int SCANCODE_AUDIOSTOP
  5714. - int SCANCODE_B
  5715. - int SCANCODE_BACKSLASH
  5716. - int SCANCODE_BACKSPACE
  5717. - int SCANCODE_BRIGHTNESSDOWN
  5718. - int SCANCODE_BRIGHTNESSUP
  5719. - int SCANCODE_C
  5720. - int SCANCODE_CALCULATOR
  5721. - int SCANCODE_CANCEL
  5722. - int SCANCODE_CAPSLOCK
  5723. - int SCANCODE_CLEAR
  5724. - int SCANCODE_CLEARAGAIN
  5725. - int SCANCODE_COMMA
  5726. - int SCANCODE_COMPUTER
  5727. - int SCANCODE_COPY
  5728. - int SCANCODE_CRSEL
  5729. - int SCANCODE_CTRL
  5730. - int SCANCODE_CURRENCYSUBUNIT
  5731. - int SCANCODE_CURRENCYUNIT
  5732. - int SCANCODE_CUT
  5733. - int SCANCODE_D
  5734. - int SCANCODE_DECIMALSEPARATOR
  5735. - int SCANCODE_DELETE
  5736. - int SCANCODE_DISPLAYSWITCH
  5737. - int SCANCODE_DOWN
  5738. - int SCANCODE_E
  5739. - int SCANCODE_EJECT
  5740. - int SCANCODE_END
  5741. - int SCANCODE_EQUALS
  5742. - int SCANCODE_ESCAPE
  5743. - int SCANCODE_EXECUTE
  5744. - int SCANCODE_EXSEL
  5745. - int SCANCODE_F
  5746. - int SCANCODE_F1
  5747. - int SCANCODE_F10
  5748. - int SCANCODE_F11
  5749. - int SCANCODE_F12
  5750. - int SCANCODE_F13
  5751. - int SCANCODE_F14
  5752. - int SCANCODE_F15
  5753. - int SCANCODE_F16
  5754. - int SCANCODE_F17
  5755. - int SCANCODE_F18
  5756. - int SCANCODE_F19
  5757. - int SCANCODE_F2
  5758. - int SCANCODE_F20
  5759. - int SCANCODE_F21
  5760. - int SCANCODE_F22
  5761. - int SCANCODE_F23
  5762. - int SCANCODE_F24
  5763. - int SCANCODE_F3
  5764. - int SCANCODE_F4
  5765. - int SCANCODE_F5
  5766. - int SCANCODE_F6
  5767. - int SCANCODE_F7
  5768. - int SCANCODE_F8
  5769. - int SCANCODE_F9
  5770. - int SCANCODE_FIND
  5771. - int SCANCODE_G
  5772. - int SCANCODE_GRAVE
  5773. - int SCANCODE_GUI
  5774. - int SCANCODE_H
  5775. - int SCANCODE_HELP
  5776. - int SCANCODE_HOME
  5777. - int SCANCODE_I
  5778. - int SCANCODE_INSERT
  5779. - int SCANCODE_INTERNATIONAL1
  5780. - int SCANCODE_INTERNATIONAL2
  5781. - int SCANCODE_INTERNATIONAL3
  5782. - int SCANCODE_INTERNATIONAL4
  5783. - int SCANCODE_INTERNATIONAL5
  5784. - int SCANCODE_INTERNATIONAL6
  5785. - int SCANCODE_INTERNATIONAL7
  5786. - int SCANCODE_INTERNATIONAL8
  5787. - int SCANCODE_INTERNATIONAL9
  5788. - int SCANCODE_J
  5789. - int SCANCODE_K
  5790. - int SCANCODE_KBDILLUMDOWN
  5791. - int SCANCODE_KBDILLUMTOGGLE
  5792. - int SCANCODE_KBDILLUMUP
  5793. - int SCANCODE_KP_0
  5794. - int SCANCODE_KP_00
  5795. - int SCANCODE_KP_000
  5796. - int SCANCODE_KP_1
  5797. - int SCANCODE_KP_2
  5798. - int SCANCODE_KP_3
  5799. - int SCANCODE_KP_4
  5800. - int SCANCODE_KP_5
  5801. - int SCANCODE_KP_6
  5802. - int SCANCODE_KP_7
  5803. - int SCANCODE_KP_8
  5804. - int SCANCODE_KP_9
  5805. - int SCANCODE_KP_A
  5806. - int SCANCODE_KP_AMPERSAND
  5807. - int SCANCODE_KP_AT
  5808. - int SCANCODE_KP_B
  5809. - int SCANCODE_KP_BACKSPACE
  5810. - int SCANCODE_KP_BINARY
  5811. - int SCANCODE_KP_C
  5812. - int SCANCODE_KP_CLEAR
  5813. - int SCANCODE_KP_CLEARENTRY
  5814. - int SCANCODE_KP_COLON
  5815. - int SCANCODE_KP_COMMA
  5816. - int SCANCODE_KP_D
  5817. - int SCANCODE_KP_DBLAMPERSAND
  5818. - int SCANCODE_KP_DBLVERTICALBAR
  5819. - int SCANCODE_KP_DECIMAL
  5820. - int SCANCODE_KP_DIVIDE
  5821. - int SCANCODE_KP_E
  5822. - int SCANCODE_KP_ENTER
  5823. - int SCANCODE_KP_EQUALS
  5824. - int SCANCODE_KP_EQUALSAS400
  5825. - int SCANCODE_KP_EXCLAM
  5826. - int SCANCODE_KP_F
  5827. - int SCANCODE_KP_GREATER
  5828. - int SCANCODE_KP_HASH
  5829. - int SCANCODE_KP_HEXADECIMAL
  5830. - int SCANCODE_KP_LEFTBRACE
  5831. - int SCANCODE_KP_LEFTPAREN
  5832. - int SCANCODE_KP_LESS
  5833. - int SCANCODE_KP_MEMADD
  5834. - int SCANCODE_KP_MEMCLEAR
  5835. - int SCANCODE_KP_MEMDIVIDE
  5836. - int SCANCODE_KP_MEMMULTIPLY
  5837. - int SCANCODE_KP_MEMRECALL
  5838. - int SCANCODE_KP_MEMSTORE
  5839. - int SCANCODE_KP_MEMSUBTRACT
  5840. - int SCANCODE_KP_MINUS
  5841. - int SCANCODE_KP_MULTIPLY
  5842. - int SCANCODE_KP_OCTAL
  5843. - int SCANCODE_KP_PERCENT
  5844. - int SCANCODE_KP_PERIOD
  5845. - int SCANCODE_KP_PLUS
  5846. - int SCANCODE_KP_PLUSMINUS
  5847. - int SCANCODE_KP_POWER
  5848. - int SCANCODE_KP_RIGHTBRACE
  5849. - int SCANCODE_KP_RIGHTPAREN
  5850. - int SCANCODE_KP_SPACE
  5851. - int SCANCODE_KP_TAB
  5852. - int SCANCODE_KP_VERTICALBAR
  5853. - int SCANCODE_KP_XOR
  5854. - int SCANCODE_L
  5855. - int SCANCODE_LALT
  5856. - int SCANCODE_LANG1
  5857. - int SCANCODE_LANG2
  5858. - int SCANCODE_LANG3
  5859. - int SCANCODE_LANG4
  5860. - int SCANCODE_LANG5
  5861. - int SCANCODE_LANG6
  5862. - int SCANCODE_LANG7
  5863. - int SCANCODE_LANG8
  5864. - int SCANCODE_LANG9
  5865. - int SCANCODE_LCTRL
  5866. - int SCANCODE_LEFT
  5867. - int SCANCODE_LEFTBRACKET
  5868. - int SCANCODE_LGUI
  5869. - int SCANCODE_LSHIFT
  5870. - int SCANCODE_M
  5871. - int SCANCODE_MAIL
  5872. - int SCANCODE_MEDIASELECT
  5873. - int SCANCODE_MENU
  5874. - int SCANCODE_MINUS
  5875. - int SCANCODE_MODE
  5876. - int SCANCODE_MUTE
  5877. - int SCANCODE_N
  5878. - int SCANCODE_NONUSBACKSLASH
  5879. - int SCANCODE_NONUSHASH
  5880. - int SCANCODE_NUMLOCKCLEAR
  5881. - int SCANCODE_O
  5882. - int SCANCODE_OPER
  5883. - int SCANCODE_OUT
  5884. - int SCANCODE_P
  5885. - int SCANCODE_PAGEDOWN
  5886. - int SCANCODE_PAGEUP
  5887. - int SCANCODE_PASTE
  5888. - int SCANCODE_PAUSE
  5889. - int SCANCODE_PERIOD
  5890. - int SCANCODE_POWER
  5891. - int SCANCODE_PRINTSCREEN
  5892. - int SCANCODE_PRIOR
  5893. - int SCANCODE_Q
  5894. - int SCANCODE_R
  5895. - int SCANCODE_RALT
  5896. - int SCANCODE_RCTRL
  5897. - int SCANCODE_RETURN
  5898. - int SCANCODE_RETURN2
  5899. - int SCANCODE_RGUI
  5900. - int SCANCODE_RIGHT
  5901. - int SCANCODE_RIGHTBRACKET
  5902. - int SCANCODE_RSHIFT
  5903. - int SCANCODE_S
  5904. - int SCANCODE_SCROLLLOCK
  5905. - int SCANCODE_SELECT
  5906. - int SCANCODE_SEMICOLON
  5907. - int SCANCODE_SEPARATOR
  5908. - int SCANCODE_SHIFT
  5909. - int SCANCODE_SLASH
  5910. - int SCANCODE_SLEEP
  5911. - int SCANCODE_SPACE
  5912. - int SCANCODE_STOP
  5913. - int SCANCODE_SYSREQ
  5914. - int SCANCODE_T
  5915. - int SCANCODE_TAB
  5916. - int SCANCODE_THOUSANDSSEPARATOR
  5917. - int SCANCODE_U
  5918. - int SCANCODE_UNDO
  5919. - int SCANCODE_UNKNOWN
  5920. - int SCANCODE_UP
  5921. - int SCANCODE_V
  5922. - int SCANCODE_VOLUMEDOWN
  5923. - int SCANCODE_VOLUMEUP
  5924. - int SCANCODE_W
  5925. - int SCANCODE_WWW
  5926. - int SCANCODE_X
  5927. - int SCANCODE_Y
  5928. - int SCANCODE_Z
  5929. - unsigned SCAN_DIRS
  5930. - unsigned SCAN_FILES
  5931. - unsigned SCAN_HIDDEN
  5932. - int SHADOWQUALITY_HIGH_16BIT
  5933. - int SHADOWQUALITY_HIGH_24BIT
  5934. - int SHADOWQUALITY_LOW_16BIT
  5935. - int SHADOWQUALITY_LOW_24BIT
  5936. - unsigned VO_DISABLE_OCCLUSION
  5937. - unsigned VO_DISABLE_SHADOWS
  5938. - unsigned VO_LOW_MATERIAL_QUALITY
  5939. - unsigned VO_NONE
  5940. */
  5941. }