LuaScriptAPI.dox 234 KB

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