LuaScriptAPI.dox 220 KB

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