2
0

LuaScriptAPI.dox 234 KB

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