LuaScriptAPI.dox 219 KB

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