LuaScriptAPI.dox 248 KB

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