LuaScriptAPI.dox 266 KB

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