LuaScriptAPI.dox 220 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748
  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. - int AddScreenJoystick(XMLFile* layoutFile = 0, XMLFile* styleFile = 0)
  2033. - bool RemoveScreenJoystick(int id)
  2034. - void SetScreenJoystickVisible(int id, bool enable)
  2035. - void SetScreenKeyboardVisible(bool enable)
  2036. - void SetTouchEmulation(bool enable)
  2037. - bool RecordGesture()
  2038. - bool SaveGestures(File* dest)
  2039. - bool SaveGesture(File* dest, unsigned gestureID)
  2040. - unsigned LoadGestures(File* source)
  2041. - bool SaveGestures(const String fileName)
  2042. - bool SaveGesture(const String fileName, unsigned gestureID)
  2043. - unsigned LoadGestures(const String fileName)
  2044. - bool RemoveGesture(unsigned gestureID)
  2045. - void RemoveAllGestures()
  2046. - int GetKeyFromName(const String name) const
  2047. - int GetKeyFromScancode(int scancode) const
  2048. - String GetKeyName(int key) const
  2049. - int GetScancodeFromKey(int key) const
  2050. - int GetScancodeFromName(const String name) const
  2051. - String GetScancodeName(int scancode) const
  2052. - bool GetKeyDown(int key) const
  2053. - bool GetKeyPress(int key) const
  2054. - bool GetScancodeDown(int scancode) const
  2055. - bool GetScancodePress(int scancode) const
  2056. - bool GetMouseButtonDown(int button) const
  2057. - bool GetMouseButtonPress(int button) const
  2058. - bool GetQualifierDown(int qualifier) const
  2059. - bool GetQualifierPress(int qualifier) const
  2060. - int GetQualifiers() const
  2061. - IntVector2 GetMousePosition() const
  2062. - const IntVector2& GetMouseMove() const
  2063. - int GetMouseMoveX() const
  2064. - int GetMouseMoveY() const
  2065. - int GetMouseMoveWheel() const
  2066. - unsigned GetNumTouches() const
  2067. - TouchState* GetTouch(unsigned index) const
  2068. - unsigned GetNumJoysticks() const
  2069. - JoystickState* GetJoystick(int id)
  2070. - JoystickState* GetJoystickByIndex(unsigned index)
  2071. - bool GetToggleFullscreen() const
  2072. - bool GetScreenKeyboardSupport() const
  2073. - bool IsScreenJoystickVisible(int id) const
  2074. - bool IsScreenKeyboardVisible() const
  2075. - bool GetTouchEmulation() const
  2076. - bool IsMouseVisible() const
  2077. - bool IsMouseGrabbed() const
  2078. - bool HasFocus()
  2079. - bool IsMinimized() const
  2080. Properties:
  2081. - int qualifiers (readonly)
  2082. - IntVector2 mousePosition (readonly)
  2083. - IntVector2& mouseMove (readonly)
  2084. - int mouseMoveX (readonly)
  2085. - int mouseMoveY (readonly)
  2086. - int mouseMoveWheel (readonly)
  2087. - unsigned numTouches (readonly)
  2088. - unsigned numJoysticks (readonly)
  2089. - bool toggleFullscreen (readonly)
  2090. - bool screenKeyboardSupport (readonly)
  2091. - bool screenKeyboardVisible
  2092. - bool touchEmulation
  2093. - bool mouseVisible
  2094. - bool mouseGrabbed
  2095. - bool focus (readonly)
  2096. - bool minimized (readonly)
  2097. <a name="Class_IntRect"></a>
  2098. ### IntRect
  2099. Methods:
  2100. - IntRect() (GC)
  2101. - IntRect* new()
  2102. - IntRect(int left, int top, int right, int bottom) (GC)
  2103. - IntRect* new(int left, int top, int right, int bottom)
  2104. - void delete()
  2105. - bool operator==(const IntRect& rhs) const
  2106. - IntVector2 Size() const
  2107. - int Width() const
  2108. - int Height() const
  2109. - Intersection IsInside(const IntVector2& point) const
  2110. Properties:
  2111. - int left
  2112. - int top
  2113. - int right
  2114. - int bottom
  2115. - const IntRect ZERO
  2116. - IntVector2 size (readonly)
  2117. - int width (readonly)
  2118. - int height (readonly)
  2119. <a name="Class_IntVector2"></a>
  2120. ### IntVector2
  2121. Methods:
  2122. - IntVector2() (GC)
  2123. - IntVector2* new()
  2124. - IntVector2(int x, int y) (GC)
  2125. - IntVector2* new(int x, int y)
  2126. - IntVector2(const IntVector2& rhs) (GC)
  2127. - IntVector2* new(const IntVector2& rhs)
  2128. - void delete()
  2129. - bool operator==(const IntVector2& rhs) const
  2130. - IntVector2 operator+(const IntVector2& rhs) const
  2131. - IntVector2 operator-() const
  2132. - IntVector2 operator-(const IntVector2& rhs) const
  2133. - IntVector2 operator*(int rhs) const
  2134. - IntVector2 operator/(int rhs) const
  2135. - IntVector2 operator/(int rhs) const
  2136. - String ToString() const
  2137. Properties:
  2138. - int x
  2139. - int y
  2140. - const IntVector2 ZERO
  2141. <a name="Class_JSONFile"></a>
  2142. ### JSONFile : Resource
  2143. Methods:
  2144. - JSONFile() (GC)
  2145. - JSONFile* new()
  2146. - void delete()
  2147. - JSONValue CreateRoot(JSONValueType valueType = JSON_OBJECT)
  2148. - JSONValue GetRoot(JSONValueType valueType = JSON_ANY)
  2149. <a name="Class_JSONValue"></a>
  2150. ### JSONValue
  2151. Methods:
  2152. - bool IsNull() const
  2153. - bool NotNull() const
  2154. - bool operatorbool() const
  2155. - JSONValue CreateChild(const String name, JSONValueType valueType = JSON_OBJECT)
  2156. - JSONValue GetChild(const String name, JSONValueType valueType = JSON_ANY) const
  2157. - void SetInt(const String name, int value)
  2158. - void SetBool(const String name, bool value)
  2159. - void SetFloat(const String name, float value)
  2160. - void SetVector2(const String name, const Vector2& value)
  2161. - void SetVector3(const String name, const Vector3& value)
  2162. - void SetVector4(const String name, const Vector4& value)
  2163. - void SetVectorVariant(const String name, const Variant& value)
  2164. - void SetQuaternion(const String name, const Quaternion& value)
  2165. - void SetColor(const String name, const Color& value)
  2166. - void SetString(const String name, const String value)
  2167. - void SetResourceRef(const String name, const ResourceRef& value)
  2168. - void SetResourceRefList(const String name, const ResourceRefList& value)
  2169. - void SetIntRect(const String name, const IntRect& value)
  2170. - void SetIntVector2(const String name, const IntVector2& value)
  2171. - void SetMatrix3(const String name, const Matrix3& value)
  2172. - void SetMatrix3x4(const String name, const Matrix3x4& value)
  2173. - void SetMatrix4(const String name, const Matrix4& value)
  2174. - void SetVariant(const String name, const Variant& value)
  2175. - void SetVariantValue(const String name, const Variant& value)
  2176. - bool IsObject() const
  2177. - Vector<String> GetChildNames() const
  2178. - Vector<String> GetValueNames() const
  2179. - int GetInt(const String name) const
  2180. - bool GetBool(const String name) const
  2181. - float GetFloat(const String name) const
  2182. - Vector2 GetVector2(const String name) const
  2183. - Vector3 GetVector3(const String name) const
  2184. - Vector4 GetVector4(const String name) const
  2185. - Variant GetVectorVariant(const String name) const
  2186. - Quaternion GetQuaternion(const String name) const
  2187. - Color GetColor(const String name) const
  2188. - String GetString(const String name) const
  2189. - const char* GetCString(const String name) const
  2190. - ResourceRef GetResourceRef(const String name) const
  2191. - ResourceRefList GetResourceRefList(const String name) const
  2192. - IntRect GetIntRect(const String name) const
  2193. - IntVector2 GetIntVector2(const String name) const
  2194. - Matrix3 GetMatrix3(const String name) const
  2195. - Matrix3x4 GetMatrix3x4(const String name) const
  2196. - Matrix4 GetMatrix4(const String name) const
  2197. - Variant GetVariant(const String name) const
  2198. - Variant GetVariantValue(const String name, VariantType type) const
  2199. - JSONValue CreateChild(JSONValueType valueType = JSON_OBJECT)
  2200. - JSONValue GetChild(unsigned index, JSONValueType valueType = JSON_ANY) const
  2201. - void AddInt(int value)
  2202. - void AddBool(bool value)
  2203. - void AddFloat(float value)
  2204. - void AddVector2(const Vector2& value)
  2205. - void AddVector3(const Vector3& value)
  2206. - void AddVector4(const Vector4& value)
  2207. - void AddVectorVariant(const Variant& value)
  2208. - void AddQuaternion(const Quaternion& value)
  2209. - void AddColor(const Color& value)
  2210. - void AddString(const String value)
  2211. - void AddResourceRef(const ResourceRef& value)
  2212. - void AddResourceRefList(const ResourceRefList& value)
  2213. - void AddIntRect(const IntRect& value)
  2214. - void AddIntVector2(const IntVector2& value)
  2215. - void AddMatrix3(const Matrix3& value)
  2216. - void AddMatrix3x4(const Matrix3x4& value)
  2217. - void AddMatrix4(const Matrix4& value)
  2218. - void AddVariant(const Variant& value)
  2219. - void AddVariantValue(const Variant& value)
  2220. - bool IsArray() const
  2221. - unsigned GetSize() const
  2222. - int GetInt(unsigned index) const
  2223. - bool GetBool(unsigned index) const
  2224. - float GetFloat(unsigned index) const
  2225. - Vector2 GetVector2(unsigned index) const
  2226. - Vector3 GetVector3(unsigned index) const
  2227. - Vector4 GetVector4(unsigned index) const
  2228. - Variant GetVectorVariant(unsigned index) const
  2229. - Quaternion GetQuaternion(unsigned index) const
  2230. - Color GetColor(unsigned index) const
  2231. - String GetString(unsigned index) const
  2232. - const char* GetCString(unsigned index) const
  2233. - ResourceRef GetResourceRef(unsigned index) const
  2234. - ResourceRefList GetResourceRefList(unsigned index) const
  2235. - IntRect GetIntRect(unsigned index) const
  2236. - IntVector2 GetIntVector2(unsigned index) const
  2237. - Matrix3 GetMatrix3(unsigned index) const
  2238. - Matrix3x4 GetMatrix3x4(unsigned index) const
  2239. - Matrix4 GetMatrix4(unsigned index) const
  2240. - Variant GetVariant(unsigned index) const
  2241. - Variant GetVariantValue(unsigned index, VariantType type) const
  2242. Properties:
  2243. - const JSONValue EMPTY
  2244. - bool null (readonly)
  2245. - bool object (readonly)
  2246. - bool array (readonly)
  2247. <a name="Class_JoystickState"></a>
  2248. ### JoystickState
  2249. Methods:
  2250. - bool IsController() const
  2251. - unsigned GetNumButtons() const
  2252. - unsigned GetNumAxes() const
  2253. - unsigned GetNumHats() const
  2254. - bool GetButtonDown(unsigned index) const
  2255. - bool GetButtonPress(unsigned index) const
  2256. - float GetAxisPosition(unsigned index) const
  2257. - int GetHatPosition(unsigned index) const
  2258. Properties:
  2259. - const String name
  2260. - const int joystickID
  2261. - bool controller (readonly)
  2262. - unsigned numButtons (readonly)
  2263. - unsigned numAxes (readonly)
  2264. - unsigned numHats (readonly)
  2265. <a name="Class_Light"></a>
  2266. ### Light : Drawable
  2267. Methods:
  2268. - void SetLightType(LightType type)
  2269. - void SetPerVertex(bool enable)
  2270. - void SetColor(const Color& color)
  2271. - void SetSpecularIntensity(float intensity)
  2272. - void SetBrightness(float brightness)
  2273. - void SetRange(float range)
  2274. - void SetFov(float fov)
  2275. - void SetAspectRatio(float aspectRatio)
  2276. - void SetFadeDistance(float distance)
  2277. - void SetShadowFadeDistance(float distance)
  2278. - void SetShadowBias(const BiasParameters& parameters)
  2279. - void SetShadowCascade(const CascadeParameters& parameters)
  2280. - void SetShadowFocus(const FocusParameters& parameters)
  2281. - void SetShadowIntensity(float intensity)
  2282. - void SetShadowResolution(float resolution)
  2283. - void SetShadowNearFarRatio(float nearFarRatio)
  2284. - void SetRampTexture(Texture* texture)
  2285. - void SetShapeTexture(Texture* texture)
  2286. - LightType GetLightType() const
  2287. - bool GetPerVertex() const
  2288. - const Color& GetColor() const
  2289. - float GetSpecularIntensity() const
  2290. - float GetBrightness() const
  2291. - Color GetEffectiveColor() const
  2292. - float GetEffectiveSpecularIntensity() const
  2293. - float GetRange() const
  2294. - float GetFov() const
  2295. - float GetAspectRatio() const
  2296. - float GetFadeDistance() const
  2297. - float GetShadowFadeDistance() const
  2298. - const BiasParameters& GetShadowBias() const
  2299. - const CascadeParameters& GetShadowCascade() const
  2300. - const FocusParameters& GetShadowFocus() const
  2301. - float GetShadowIntensity() const
  2302. - float GetShadowResolution() const
  2303. - float GetShadowNearFarRatio() const
  2304. - Texture* GetRampTexture() const
  2305. - Texture* GetShapeTexture() const
  2306. - Frustum GetFrustum() const
  2307. - int GetNumShadowSplits() const
  2308. - bool IsNegative() const
  2309. Properties:
  2310. - LightType lightType
  2311. - bool perVertex
  2312. - Color& color
  2313. - float specularIntensity
  2314. - float brightness
  2315. - float range
  2316. - float fov
  2317. - float aspectRatio
  2318. - float fadeDistance
  2319. - float shadowFadeDistance
  2320. - BiasParameters& shadowBias
  2321. - CascadeParameters& shadowCascade
  2322. - FocusParameters& shadowFocus
  2323. - float shadowIntensity
  2324. - float shadowResolution
  2325. - float shadowNearFarRatio
  2326. - Texture* rampTexture
  2327. - Texture* shapeTexture
  2328. - Frustum frustum (readonly)
  2329. - int numShadowSplits (readonly)
  2330. - bool negative (readonly)
  2331. - Color effectiveColor (readonly)
  2332. - float effectiveSpecularIntensity (readonly)
  2333. <a name="Class_LineEdit"></a>
  2334. ### LineEdit : BorderImage
  2335. Methods:
  2336. - LineEdit() (GC)
  2337. - LineEdit* new()
  2338. - void delete()
  2339. - void SetText(const String text)
  2340. - void SetCursorPosition(unsigned position)
  2341. - void SetCursorBlinkRate(float rate)
  2342. - void SetMaxLength(unsigned length)
  2343. - void SetEchoCharacter(unsigned c)
  2344. - void SetCursorMovable(bool enable)
  2345. - void SetTextSelectable(bool enable)
  2346. - void SetTextCopyable(bool enable)
  2347. - const String GetText() const
  2348. - unsigned GetCursorPosition() const
  2349. - float GetCursorBlinkRate() const
  2350. - unsigned GetMaxLength() const
  2351. - unsigned GetEchoCharacter() const
  2352. - bool IsCursorMovable() const
  2353. - bool IsTextSelectable() const
  2354. - bool IsTextCopyable() const
  2355. - Text* GetTextElement() const
  2356. - BorderImage* GetCursor() const
  2357. Properties:
  2358. - String text
  2359. - unsigned cursorPosition
  2360. - float cursorBlinkRate
  2361. - unsigned maxLength
  2362. - unsigned echoCharacter
  2363. - bool cursorMovable
  2364. - bool textSelectable
  2365. - bool textCopyable
  2366. - Text* textElement (readonly)
  2367. - BorderImage* cursor (readonly)
  2368. <a name="Class_ListView"></a>
  2369. ### ListView : ScrollView
  2370. Methods:
  2371. - ListView() (GC)
  2372. - ListView* new()
  2373. - void delete()
  2374. - void AddItem(UIElement* item)
  2375. - void InsertItem(unsigned index, UIElement* item, UIElement* parentItem = 0)
  2376. - void RemoveItem(UIElement* item, unsigned index = 0)
  2377. - void RemoveItem(unsigned index)
  2378. - void RemoveAllItems()
  2379. - void SetSelection(unsigned index)
  2380. - void SetSelections(const PODVector<unsigned>& indices)
  2381. - void AddSelection(unsigned index)
  2382. - void RemoveSelection(unsigned index)
  2383. - void ToggleSelection(unsigned index)
  2384. - void ChangeSelection(int delta, bool additive = false)
  2385. - void ClearSelection()
  2386. - void SetHighlightMode(HighlightMode mode)
  2387. - void SetMultiselect(bool enable)
  2388. - void SetHierarchyMode(bool enable)
  2389. - void SetBaseIndent(int baseIndent)
  2390. - void SetClearSelectionOnDefocus(bool enable)
  2391. - void SetSelectOnClickEnd(bool enable)
  2392. - void Expand(unsigned index, bool enable, bool recursive = false)
  2393. - void ToggleExpand(unsigned index, bool recursive = false)
  2394. - unsigned GetNumItems() const
  2395. - UIElement* GetItem(unsigned index) const
  2396. - const PODVector<UIElement*>& GetItems() const
  2397. - unsigned FindItem(UIElement* item) const
  2398. - unsigned GetSelection() const
  2399. - const PODVector<unsigned>& GetSelections() const
  2400. - void CopySelectedItemsToClipboard() const
  2401. - UIElement* GetSelectedItem() const
  2402. - const PODVector<UIElement*>& GetSelectedItems() const
  2403. - bool IsSelected(unsigned index) const
  2404. - bool IsExpanded(unsigned index) const
  2405. - HighlightMode GetHighlightMode() const
  2406. - bool GetMultiselect() const
  2407. - bool GetClearSelectionOnDefocus() const
  2408. - bool GetSelectOnClickEnd() const
  2409. - bool GetHierarchyMode() const
  2410. - int GetBaseIndent() const
  2411. Properties:
  2412. - unsigned numItems (readonly)
  2413. - unsigned selection
  2414. - UIElement* selectedItem (readonly)
  2415. - HighlightMode highlightMode
  2416. - bool multiselect
  2417. - bool clearSelectionOnDefocus
  2418. - bool selectOnClickEnd
  2419. - bool hierarchyMode
  2420. - int baseIndent
  2421. <a name="Class_Log"></a>
  2422. ### Log : Object
  2423. Methods:
  2424. - void Open(const String fileName)
  2425. - void Close()
  2426. - void SetLevel(int level)
  2427. - void SetTimeStamp(bool enable)
  2428. - void SetQuiet(bool quiet)
  2429. - int GetLevel() const
  2430. - bool GetTimeStamp() const
  2431. - String GetLastMessage() const
  2432. - bool IsQuiet() const
  2433. - void Write(int level, const String message)
  2434. - void WriteRaw(const String message, bool error = false)
  2435. Properties:
  2436. - int level
  2437. - bool timeStamp
  2438. - bool quiet
  2439. <a name="Class_LuaScriptInstance"></a>
  2440. ### LuaScriptInstance : Component
  2441. Methods:
  2442. - bool CreateObject(const String scriptObjectType)
  2443. - bool CreateObject(LuaFile* scriptFile, const String scriptObjectType)
  2444. - void SetScriptFile(LuaFile* scriptFile)
  2445. - void SetScriptObjectType(const String scriptObjectType)
  2446. - void SubscribeToEvent(const String eventName, const String functionName)
  2447. - void UnsubscribeFromEvent(const String eventName)
  2448. - void UnsubscribeFromAllEvents()
  2449. - void SubscribeToEvent(void* sender, const String eventName, const String functionName)
  2450. - void UnsubscribeFromEvent(void* sender, const String eventName)
  2451. - void UnsubscribeFromEvents(void* sender)
  2452. - LuaFile* GetScriptFile() const
  2453. - const String GetScriptObjectType() const
  2454. Properties:
  2455. - const LuaFile* scriptFile
  2456. - const String scriptObjectType
  2457. <a name="Class_Material"></a>
  2458. ### Material : Resource
  2459. Methods:
  2460. - Material() (GC)
  2461. - Material* new()
  2462. - void delete()
  2463. - void SetNumTechniques(unsigned num)
  2464. - void SetTechnique(unsigned index, Technique* tech, unsigned qualityLevel = 0, float lodDistance = 0.0f)
  2465. - void SetShaderParameter(const String name, const Variant& value)
  2466. - void SetShaderParameterAnimation(const String name, ValueAnimation* animation, WrapMode wrapMode = WM_LOOP, float speed = 1.0f)
  2467. - void SetShaderParameterAnimationWrapMode(const String name, WrapMode wrapMode)
  2468. - void SetShaderParameterAnimationSpeed(const String name, float speed)
  2469. - void SetTexture(TextureUnit unit, Texture* texture)
  2470. - void SetUVTransform(const Vector2& offset, float rotation, const Vector2& repeat)
  2471. - void SetUVTransform(const Vector2& offset, float rotation, float repeat)
  2472. - void SetCullMode(CullMode mode)
  2473. - void SetShadowCullMode(CullMode mode)
  2474. - void SetDepthBias(const BiasParameters& parameters)
  2475. - void RemoveShaderParameter(const String name)
  2476. - void ReleaseShaders()
  2477. - Material* Clone(const String cloneName = String::EMPTY) const
  2478. - void SortTechniques()
  2479. - void MarkForAuxView(unsigned frameNumber)
  2480. - unsigned GetNumTechniques() const
  2481. - Technique* GetTechnique(unsigned index) const
  2482. - Pass* GetPass(unsigned index, StringHash passType) const
  2483. - Pass* GetPass(unsigned index, const String passType) const
  2484. - Texture* GetTexture(TextureUnit unit) const
  2485. - ValueAnimation* GetShaderParameterAnimation(const String name) const
  2486. - WrapMode GetShaderParameterAnimationWrapMode(const String name) const
  2487. - float GetShaderParameterAnimationSpeed(const String name) const
  2488. - CullMode GetCullMode() const
  2489. - CullMode GetShadowCullMode() const
  2490. - const BiasParameters& GetDepthBias() const
  2491. - unsigned GetAuxViewFrameNumber() const
  2492. - bool GetOcclusion() const
  2493. - bool GetSpecular() const
  2494. Properties:
  2495. - CullMode cullMode (readonly)
  2496. - CullMode shadowCullMode (readonly)
  2497. - unsigned auxViewFrameNumber (readonly)
  2498. - bool occlusion (readonly)
  2499. - bool specular (readonly)
  2500. <a name="Class_Matrix3"></a>
  2501. ### Matrix3
  2502. Methods:
  2503. - Matrix3() (GC)
  2504. - Matrix3* new()
  2505. - Matrix3(const Matrix3& matrix) (GC)
  2506. - Matrix3* new(const Matrix3& matrix)
  2507. - Matrix3(float v00, float v01, float v02, float v10, float v11, float v12, float v20, float v21, float v22) (GC)
  2508. - Matrix3* new(float v00, float v01, float v02, float v10, float v11, float v12, float v20, float v21, float v22)
  2509. - void delete()
  2510. - bool operator==(const Matrix3& rhs) const
  2511. - Vector3 operator*(const Vector3& rhs) const
  2512. - Matrix3 operator+(const Matrix3& rhs) const
  2513. - Matrix3 operator-(const Matrix3& rhs) const
  2514. - Matrix3 operator*(float rhs) const
  2515. - Matrix3 operator*(const Matrix3& rhs) const
  2516. - void SetScale(const Vector3& scale)
  2517. - void SetScale(float scale)
  2518. - Vector3 Scale() const
  2519. - Matrix3 Transpose() const
  2520. - Matrix3 Scaled(const Vector3& scale) const
  2521. - bool Equals(const Matrix3& rhs) const
  2522. - Matrix3 Inverse() const
  2523. - String ToString() const
  2524. Properties:
  2525. - float m00
  2526. - float m01
  2527. - float m02
  2528. - float m10
  2529. - float m11
  2530. - float m12
  2531. - float m20
  2532. - float m21
  2533. - float m22
  2534. - const Matrix3 ZERO
  2535. - const Matrix3 IDENTITY
  2536. <a name="Class_Matrix3x4"></a>
  2537. ### Matrix3x4
  2538. Methods:
  2539. - Matrix3x4() (GC)
  2540. - Matrix3x4* new()
  2541. - Matrix3x4(const Matrix3x4& matrix) (GC)
  2542. - Matrix3x4* new(const Matrix3x4& matrix)
  2543. - Matrix3x4(const Matrix3& matrix) (GC)
  2544. - Matrix3x4* new(const Matrix3& matrix)
  2545. - Matrix3x4(const Matrix4& matrix) (GC)
  2546. - Matrix3x4* new(const Matrix4& matrix)
  2547. - Matrix3x4(float v00, float v01, float v02, float v03, float v10, float v11, float v12, float v13, float v20, float v21, float v22, float v23) (GC)
  2548. - Matrix3x4* new(float v00, float v01, float v02, float v03, float v10, float v11, float v12, float v13, float v20, float v21, float v22, float v23)
  2549. - Matrix3x4(const Vector3& translation, const Quaternion& rotation, float scale) (GC)
  2550. - Matrix3x4* new(const Vector3& translation, const Quaternion& rotation, float scale)
  2551. - Matrix3x4(const Vector3& translation, const Quaternion& rotation, const Vector3& scale) (GC)
  2552. - Matrix3x4* new(const Vector3& translation, const Quaternion& rotation, const Vector3& scale)
  2553. - void delete()
  2554. - bool operator==(const Matrix3x4& rhs) const
  2555. - Vector3 operator*(const Vector3& rhs) const
  2556. - Vector3 operator*(const Vector4& rhs) const
  2557. - Matrix3x4 operator+(const Matrix3x4& rhs) const
  2558. - Matrix3x4 operator-(const Matrix3x4& rhs) const
  2559. - Matrix3x4 operator*(float rhs) const
  2560. - Matrix3x4 operator*(const Matrix3x4& rhs) const
  2561. - Matrix4 operator*(const Matrix4& rhs) const
  2562. - void SetTranslation(const Vector3& translation)
  2563. - void SetRotation(const Matrix3& rotation)
  2564. - void SetScale(const Vector3& scale)
  2565. - void SetScale(float scale)
  2566. - Matrix3 ToMatrix3() const
  2567. - Matrix4 ToMatrix4() const
  2568. - Matrix3 RotationMatrix() const
  2569. - Vector3 Translation() const
  2570. - Quaternion Rotation() const
  2571. - Vector3 Scale() const
  2572. - bool Equals(const Matrix3x4& rhs) const
  2573. - void Decompose(Vector3& translation, Quaternion& rotation, Vector3& scale) const
  2574. - Matrix3x4 Inverse() const
  2575. - String ToString() const
  2576. Properties:
  2577. - float m00
  2578. - float m01
  2579. - float m02
  2580. - float m03
  2581. - float m10
  2582. - float m11
  2583. - float m12
  2584. - float m13
  2585. - float m20
  2586. - float m21
  2587. - float m22
  2588. - float m23
  2589. - const Matrix3x4 ZERO
  2590. - const Matrix3x4 IDENTITY
  2591. <a name="Class_Matrix4"></a>
  2592. ### Matrix4
  2593. Methods:
  2594. - Matrix4() (GC)
  2595. - Matrix4* new()
  2596. - Matrix4(const Matrix4& matrix) (GC)
  2597. - Matrix4* new(const Matrix4& matrix)
  2598. - Matrix4(const Matrix3& matrix) (GC)
  2599. - Matrix4* new(const Matrix3& matrix)
  2600. - Matrix4(float v00, float v01, float v02, float v03, float v10, float v11, float v12, float v13, float v20, float v21, float v22, float v23, float v30, float v31, float v32, float v33) (GC)
  2601. - Matrix4* new(float v00, float v01, float v02, float v03, float v10, float v11, float v12, float v13, float v20, float v21, float v22, float v23, float v30, float v31, float v32, float v33)
  2602. - void delete()
  2603. - bool operator==(const Matrix4& rhs) const
  2604. - Vector3 operator*(const Vector3& rhs) const
  2605. - Vector4 operator*(const Vector4& rhs) const
  2606. - Matrix4 operator+(const Matrix4& rhs) const
  2607. - Matrix4 operator-(const Matrix4& rhs) const
  2608. - Matrix4 operator*(float rhs) const
  2609. - Matrix4 operator*(const Matrix4& rhs) const
  2610. - Matrix4 operator*(const Matrix3x4& rhs) const
  2611. - void SetTranslation(const Vector3& translation)
  2612. - void SetRotation(const Matrix3& rotation)
  2613. - void SetScale(const Vector3& scale)
  2614. - void SetScale(float scale)
  2615. - Matrix3 ToMatrix3() const
  2616. - Matrix3 RotationMatrix() const
  2617. - Vector3 Translation() const
  2618. - Quaternion Rotation() const
  2619. - Vector3 Scale() const
  2620. - Matrix4 Transpose() const
  2621. - bool Equals(const Matrix4& rhs) const
  2622. - void Decompose(Vector3& translation, Quaternion& rotation, Vector3& scale) const
  2623. - Matrix4 Inverse() const
  2624. - String ToString() const
  2625. Properties:
  2626. - float m00
  2627. - float m01
  2628. - float m02
  2629. - float m03
  2630. - float m10
  2631. - float m11
  2632. - float m12
  2633. - float m13
  2634. - float m20
  2635. - float m21
  2636. - float m22
  2637. - float m23
  2638. - float m30
  2639. - float m31
  2640. - float m32
  2641. - float m33
  2642. - const Matrix4 ZERO
  2643. - const Matrix4 IDENTITY
  2644. <a name="Class_Menu"></a>
  2645. ### Menu : Button
  2646. Methods:
  2647. - Menu() (GC)
  2648. - Menu* new()
  2649. - void delete()
  2650. - void SetPopup(UIElement* element)
  2651. - void SetPopupOffset(const IntVector2& offset)
  2652. - void SetPopupOffset(int x, int y)
  2653. - void ShowPopup(bool enable)
  2654. - void SetAccelerator(int key, int qualifiers)
  2655. - UIElement* GetPopup() const
  2656. - const IntVector2& GetPopupOffset() const
  2657. - bool GetShowPopup() const
  2658. - int GetAcceleratorKey() const
  2659. - int GetAcceleratorQualifiers() const
  2660. Properties:
  2661. - UIElement* popup
  2662. - IntVector2& popupOffset
  2663. - bool showPopup
  2664. - int acceleratorKey (readonly)
  2665. - int acceleratorQualifiers (readonly)
  2666. <a name="Class_MessageBox"></a>
  2667. ### MessageBox : Object
  2668. Methods:
  2669. - MessageBox(const String messageString = String::EMPTY, const String titleString = String::EMPTY, XMLFile* layoutFile = 0, XMLFile* styleFile = 0) (GC)
  2670. - MessageBox* new(const String messageString = String::EMPTY, const String titleString = String::EMPTY, XMLFile* layoutFile = 0, XMLFile* styleFile = 0)
  2671. - void delete()
  2672. - void SetTitle(const String text)
  2673. - void SetMessage(const String text)
  2674. - const String GetTitle() const
  2675. - const String GetMessage() const
  2676. - UIElement* GetWindow() const
  2677. Properties:
  2678. - String title
  2679. - String message
  2680. - UIElement* window (readonly)
  2681. <a name="Class_Model"></a>
  2682. ### Model : Resource
  2683. Methods:
  2684. - Model* Clone(const String cloneName = String::EMPTY) const
  2685. - const BoundingBox& GetBoundingBox() const
  2686. - Skeleton& GetSkeleton()
  2687. - unsigned GetNumGeometries() const
  2688. - unsigned GetNumGeometryLodLevels(unsigned index) const
  2689. - Geometry* GetGeometry(unsigned index, unsigned lodLevel) const
  2690. - unsigned GetNumMorphs() const
  2691. - const ModelMorph* GetMorph(const String name) const
  2692. - const ModelMorph* GetMorph(StringHash nameHash) const
  2693. - const ModelMorph* GetMorph(unsigned index) const
  2694. - unsigned GetMorphRangeStart(unsigned bufferIndex) const
  2695. - unsigned GetMorphRangeCount(unsigned bufferIndex) const
  2696. Properties:
  2697. - BoundingBox& boundingBox (readonly)
  2698. - Skeleton skeleton (readonly)
  2699. - unsigned numGeometries (readonly)
  2700. - unsigned numMorphs (readonly)
  2701. <a name="Class_Navigable"></a>
  2702. ### Navigable : Component
  2703. Methods:
  2704. - void SetRecursive(bool enable)
  2705. - bool IsRecursive() const
  2706. Properties:
  2707. - bool recursive
  2708. <a name="Class_NavigationGeometryInfo"></a>
  2709. ### NavigationGeometryInfo
  2710. Properties:
  2711. - Component* component
  2712. - unsigned lodLevel
  2713. - Matrix3x4 transform
  2714. - BoundingBox boundingBox
  2715. <a name="Class_NavigationMesh"></a>
  2716. ### NavigationMesh : Component
  2717. Methods:
  2718. - void SetTileSize(int size)
  2719. - void SetCellSize(float size)
  2720. - void SetCellHeight(float height)
  2721. - void SetAgentHeight(float height)
  2722. - void SetAgentRadius(float radius)
  2723. - void SetAgentMaxClimb(float maxClimb)
  2724. - void SetAgentMaxSlope(float maxSlope)
  2725. - void SetRegionMinSize(float size)
  2726. - void SetRegionMergeSize(float size)
  2727. - void SetEdgeMaxLength(float length)
  2728. - void SetEdgeMaxError(float error)
  2729. - void SetDetailSampleDistance(float distance)
  2730. - void SetDetailSampleMaxError(float error)
  2731. - void SetPadding(const Vector3& padding)
  2732. - bool Build()
  2733. - bool Build(const BoundingBox& boundingBox)
  2734. - Vector3 FindNearestPoint(const Vector3& point)
  2735. - Vector3 FindNearestPoint(const Vector3& point, const Vector3& extents)
  2736. - Vector3 MoveAlongSurface(const Vector3& start, const Vector3& end)
  2737. - Vector3 MoveAlongSurface(const Vector3& start, const Vector3& end, const Vector3& extents, int maxVisited = 3)
  2738. - const PODVector<Vector3>& FindPath(const Vector3& start, const Vector3& end)
  2739. - const PODVector<Vector3>& FindPath(const Vector3& start, const Vector3& end, const Vector3& extents)
  2740. - Vector3 GetRandomPoint()
  2741. - Vector3 GetRandomPointInCircle(const Vector3& center, float radius)
  2742. - Vector3 GetRandomPointInCircle(const Vector3& center, float radius, const Vector3& extents)
  2743. - float GetDistanceToWall(const Vector3& point, float radius)
  2744. - float GetDistanceToWall(const Vector3& point, float radius, const Vector3& extents)
  2745. - Vector3 Raycast(const Vector3& start, const Vector3& end)
  2746. - Vector3 Raycast(const Vector3& start, const Vector3& end, const Vector3& extents)
  2747. - void DrawDebugGeometry(bool depthTest)
  2748. - int GetTileSize() const
  2749. - float GetCellSize() const
  2750. - float GetCellHeight() const
  2751. - float GetAgentHeight() const
  2752. - float GetAgentRadius() const
  2753. - float GetAgentMaxClimb() const
  2754. - float GetAgentMaxSlope() const
  2755. - float GetRegionMinSize() const
  2756. - float GetRegionMergeSize() const
  2757. - float GetEdgeMaxLength() const
  2758. - float GetEdgeMaxError() const
  2759. - float GetDetailSampleDistance() const
  2760. - float GetDetailSampleMaxError() const
  2761. - const Vector3& GetPadding() const
  2762. - bool IsInitialized() const
  2763. - const BoundingBox& GetBoundingBox() const
  2764. - BoundingBox GetWorldBoundingBox() const
  2765. - IntVector2 GetNumTiles() const
  2766. Properties:
  2767. - int tileSize
  2768. - float cellSize
  2769. - float cellHeight
  2770. - float agentHeight
  2771. - float agentRadius
  2772. - float agentMaxClimb
  2773. - float agentMaxSlope
  2774. - float regionMinSize
  2775. - float regionMergeSize
  2776. - float edgeMaxLength
  2777. - float edgeMaxError
  2778. - float detailSampleDistance
  2779. - float detailSampleMaxError
  2780. - Vector3& padding
  2781. - bool initialized (readonly)
  2782. - BoundingBox& boundingBox (readonly)
  2783. - BoundingBox worldBoundingBox (readonly)
  2784. - IntVector2 numTiles (readonly)
  2785. <a name="Class_Network"></a>
  2786. ### Network
  2787. Methods:
  2788. - bool Connect(const String address, short port, Scene* scene)
  2789. - bool Connect(const String address, short port, Scene* scene, const VariantMap& identity)
  2790. - void Disconnect(int waitMSec = 0)
  2791. - bool StartServer(short port)
  2792. - void StopServer()
  2793. - void BroadcastMessage(int msgID, bool reliable, bool inOrder, const VectorBuffer& msg, unsigned contentID = 0)
  2794. - void BroadcastRemoteEvent(StringHash eventType, bool inOrder)
  2795. - void BroadcastRemoteEvent(StringHash eventType, bool inOrder, const VariantMap& eventData)
  2796. - void BroadcastRemoteEvent(const String eventType, bool inOrder)
  2797. - void BroadcastRemoteEvent(const String eventType, bool inOrder, const VariantMap& eventData)
  2798. - void BroadcastRemoteEvent(Scene* scene, StringHash eventType, bool inOrder)
  2799. - void BroadcastRemoteEvent(Scene* scene, StringHash eventType, bool inOrder, const VariantMap& eventData)
  2800. - void BroadcastRemoteEvent(Scene* scene, const String eventType, bool inOrder)
  2801. - void BroadcastRemoteEvent(Scene* scene, const String eventType, bool inOrder, const VariantMap& eventData)
  2802. - void BroadcastRemoteEvent(Node* node, StringHash eventType, bool inOrder)
  2803. - void BroadcastRemoteEvent(Node* node, StringHash eventType, bool inOrder, const VariantMap& eventData)
  2804. - void BroadcastRemoteEvent(Node* node, const String eventType, bool inOrder)
  2805. - void BroadcastRemoteEvent(Node* node, const String eventType, bool inOrder, const VariantMap& eventData)
  2806. - void SetUpdateFps(int fps)
  2807. - void RegisterRemoteEvent(StringHash eventType)
  2808. - void RegisterRemoteEvent(const String eventType)
  2809. - void UnregisterRemoteEvent(StringHash eventType)
  2810. - void UnregisterRemoteEvent(const String eventType)
  2811. - void UnregisterAllRemoteEvents()
  2812. - void SetPackageCacheDir(const String path)
  2813. - void SendPackageToClients(Scene* scene, PackageFile* package)
  2814. - HttpRequest* MakeHttpRequest(const String url, const String verb = String::EMPTY)
  2815. - HttpRequest* MakeHttpRequest(const String url, const String verb, const Vector<String>& headers, const String postData = String::EMPTY)
  2816. - int GetUpdateFps() const
  2817. - Connection* GetServerConnection() const
  2818. - bool IsServerRunning() const
  2819. - bool CheckRemoteEvent(StringHash eventType) const
  2820. - const String GetPackageCacheDir() const
  2821. Properties:
  2822. - int updateFps
  2823. - Connection* serverConnection (readonly)
  2824. - bool serverRunning (readonly)
  2825. - String packageCacheDir
  2826. <a name="Class_NetworkPriority"></a>
  2827. ### NetworkPriority : Component
  2828. Methods:
  2829. - void SetBasePriority(float priority)
  2830. - void SetDistanceFactor(float factor)
  2831. - void SetMinPriority(float priority)
  2832. - void SetAlwaysUpdateOwner(bool enable)
  2833. - float GetBasePriority() const
  2834. - float GetDistanceFactor() const
  2835. - float GetMinPriority() const
  2836. - bool GetAlwaysUpdateOwner() const
  2837. - bool CheckUpdate(float distance, float accumulator)
  2838. Properties:
  2839. - float basePriority
  2840. - float distanceFactor
  2841. - float minPriority
  2842. - bool alwaysUpdateOwner
  2843. <a name="Class_Node"></a>
  2844. ### Node : Animatable
  2845. Methods:
  2846. - Node() (GC)
  2847. - Node* new()
  2848. - void delete()
  2849. - bool SaveXML(File* dest) const
  2850. - void SetName(const String name)
  2851. - void SetPosition(const Vector3& position)
  2852. - void SetPosition2D(const Vector2& position)
  2853. - void SetPosition2D(float x, float y)
  2854. - void SetRotation(const Quaternion& rotation)
  2855. - void SetRotation2D(float rotation)
  2856. - void SetDirection(const Vector3& direction)
  2857. - void SetScale(float scale)
  2858. - void SetScale(const Vector3& scale)
  2859. - void SetScale2D(const Vector2& scale)
  2860. - void SetScale2D(float x, float y)
  2861. - void SetTransform(const Vector3& position, const Quaternion& rotation)
  2862. - void SetTransform(const Vector3& position, const Quaternion& rotation, const Vector3& scale)
  2863. - void SetTransform(const Vector3& position, const Quaternion& rotation, float scale)
  2864. - void SetTransform2D(const Vector2& position, float rotation)
  2865. - void SetTransform2D(const Vector2& position, float rotation, const Vector2& scale)
  2866. - void SetTransform2D(const Vector2& position, float rotation, float scale)
  2867. - void SetWorldPosition(const Vector3& position)
  2868. - void SetWorldPosition2D(const Vector2& position)
  2869. - void SetWorldPosition2D(float x, float y)
  2870. - void SetWorldRotation(const Quaternion& rotation)
  2871. - void SetWorldRotation2D(float rotation)
  2872. - void SetWorldDirection(const Vector3& direction)
  2873. - void SetWorldScale(float scale)
  2874. - void SetWorldScale(const Vector3& scale)
  2875. - void SetWorldScale2D(const Vector2& scale)
  2876. - void SetWorldScale2D(float x, float y)
  2877. - void SetWorldTransform(const Vector3& position, const Quaternion& rotation)
  2878. - void SetWorldTransform(const Vector3& position, const Quaternion& rotation, const Vector3& scale)
  2879. - void SetWorldTransform(const Vector3& position, const Quaternion& rotation, float scale)
  2880. - void SetWorldTransform2D(const Vector2& position, float rotation)
  2881. - void SetWorldTransform2D(const Vector2& position, float rotation, const Vector2& scale)
  2882. - void SetWorldTransform2D(const Vector2& position, float rotation, float scale)
  2883. - void Translate(const Vector3& delta, TransformSpace space = TS_LOCAL)
  2884. - void Translate2D(const Vector2& delta, TransformSpace space = TS_LOCAL)
  2885. - void Rotate(const Quaternion& delta, TransformSpace space = TS_LOCAL)
  2886. - void Rotate2D(float delta, TransformSpace space = TS_LOCAL)
  2887. - void RotateAround(const Vector3& point, const Quaternion& delta, TransformSpace space = TS_LOCAL)
  2888. - void RotateAround2D(const Vector2& point, float delta, TransformSpace space = TS_LOCAL)
  2889. - void Pitch(float angle, TransformSpace space = TS_LOCAL)
  2890. - void Yaw(float angle, TransformSpace space = TS_LOCAL)
  2891. - void Roll(float angle, TransformSpace space = TS_LOCAL)
  2892. - bool LookAt(const Vector3& target)
  2893. - bool LookAt(const Vector3& target, const Vector3& upAxis, TransformSpace space = TS_WORLD)
  2894. - void Scale(float scale)
  2895. - void Scale(const Vector3& scale)
  2896. - void Scale2D(const Vector2& scale)
  2897. - void SetEnabled(bool enable)
  2898. - void SetDeepEnabled(bool enable)
  2899. - void ResetDeepEnabled()
  2900. - void SetEnabledRecursive(bool enable)
  2901. - void SetOwner(Connection* owner)
  2902. - void MarkDirty()
  2903. - Node* CreateChild(const String name = String::EMPTY, CreateMode mode = REPLICATED, unsigned id = 0)
  2904. - void AddChild(Node* node, unsigned index = M_MAX_UNSIGNED)
  2905. - void RemoveChild(Node* node)
  2906. - void RemoveAllChildren()
  2907. - void RemoveChildren(bool removeReplicated, bool removeLocal, bool recursive)
  2908. - void RemoveComponent(Component* component)
  2909. - void RemoveComponent(StringHash type)
  2910. - void RemoveComponent(const String type)
  2911. - void RemoveAllComponents()
  2912. - void RemoveComponents(bool removeReplicated, bool removeLocal)
  2913. - Node* Clone(CreateMode mode = REPLICATED)
  2914. - void Remove()
  2915. - void SetParent(Node* parent)
  2916. - void SetVar(StringHash key, const Variant& value)
  2917. - void AddListener(Component* component)
  2918. - void RemoveListener(Component* component)
  2919. - Component* CreateComponent(const String type, CreateMode mode = REPLICATED, unsigned id = 0)
  2920. - Component* CloneComponent(Component* component, unsigned id = 0)
  2921. - Component* CloneComponent(Component* component, CreateMode mode, unsigned id = 0)
  2922. - int CreateScriptObject(const String scriptObjectType)
  2923. - int CreateScriptObject(const String fileName, const String scriptObjectType)
  2924. - int GetScriptObject() const
  2925. - int GetScriptObject(const String scriptObjectType) const
  2926. - unsigned GetID() const
  2927. - const String GetName() const
  2928. - StringHash GetNameHash() const
  2929. - Node* GetParent() const
  2930. - Scene* GetScene() const
  2931. - bool IsEnabled() const
  2932. - bool IsEnabledSelf() const
  2933. - Connection* GetOwner() const
  2934. - const Vector3& GetPosition() const
  2935. - Vector2 GetPosition2D() const
  2936. - const Quaternion& GetRotation() const
  2937. - float GetRotation2D() const
  2938. - Vector3 GetDirection() const
  2939. - Vector3 GetUp() const
  2940. - Vector3 GetRight() const
  2941. - const Vector3& GetScale() const
  2942. - Vector2 GetScale2D() const
  2943. - Matrix3x4 GetTransform() const
  2944. - Vector3 GetWorldPosition() const
  2945. - Vector2 GetWorldPosition2D() const
  2946. - Quaternion GetWorldRotation() const
  2947. - float GetWorldRotation2D() const
  2948. - Vector3 GetWorldDirection() const
  2949. - Vector3 GetWorldUp() const
  2950. - Vector3 GetWorldRight() const
  2951. - Vector3 GetWorldScale() const
  2952. - Vector2 GetWorldScale2D() const
  2953. - const Matrix3x4& GetWorldTransform() const
  2954. - Vector3 LocalToWorld(const Vector3& position) const
  2955. - Vector3 LocalToWorld(const Vector4& vector) const
  2956. - Vector2 LocalToWorld2D(const Vector2& vector) const
  2957. - Vector3 WorldToLocal(const Vector3& position) const
  2958. - Vector3 WorldToLocal(const Vector4& vector) const
  2959. - Vector2 WorldToLocal2D(const Vector2& vector) const
  2960. - bool IsDirty() const
  2961. - unsigned GetNumChildren(bool recursive = false) const
  2962. - Node* GetChild(const String name, bool recursive = false) const
  2963. - Node* GetChild(StringHash nameHash, bool recursive = false) const
  2964. - Node* GetChild(unsigned index) const
  2965. - unsigned GetNumComponents() const
  2966. - unsigned GetNumNetworkComponents() const
  2967. - bool HasComponent(StringHash type) const
  2968. - bool HasComponent(const String type) const
  2969. - const Variant& GetVar(StringHash key) const
  2970. - const VariantMap& GetVars() const
  2971. - Component* GetComponent(const String type) const
  2972. - void SetID(unsigned id)
  2973. - void SetScene(Scene* scene)
  2974. - void ResetScene()
  2975. - bool Load(Deserializer& source, SceneResolver& resolver, bool loadChildren = true, bool rewriteIDs = false, CreateMode mode = REPLICATED)
  2976. - bool LoadXML(const XMLElement& source, SceneResolver& resolver, bool loadChildren = true, bool rewriteIDs = false, CreateMode mode = REPLICATED)
  2977. - Node* CreateChild(unsigned id, CreateMode mode)
  2978. - void AddComponent(Component* component, unsigned id, CreateMode mode)
  2979. Properties:
  2980. - unsigned ID
  2981. - String name
  2982. - StringHash nameHash (readonly)
  2983. - Node* parent
  2984. - Scene* scene
  2985. - bool enabled
  2986. - bool enabledSelf (readonly)
  2987. - Connection* owner
  2988. - Vector3& position
  2989. - Vector2 position2D
  2990. - Quaternion& rotation
  2991. - float rotation2D
  2992. - Vector3 direction
  2993. - Vector3 up (readonly)
  2994. - Vector3 right (readonly)
  2995. - Vector3& scale
  2996. - Vector2 scale2D
  2997. - Matrix3x4 transform (readonly)
  2998. - Vector3 worldPosition
  2999. - Vector2 worldPosition2D
  3000. - Quaternion worldRotation
  3001. - float worldRotation2D
  3002. - Vector3 worldDirection
  3003. - Vector3 worldUp (readonly)
  3004. - Vector3 worldRight (readonly)
  3005. - Vector3 worldScale
  3006. - Vector2 worldScale2D
  3007. - Matrix3x4& worldTransform (readonly)
  3008. - bool dirty (readonly)
  3009. - unsigned numComponents (readonly)
  3010. - unsigned numNetworkComponents (readonly)
  3011. <a name="Class_Object"></a>
  3012. ### Object : RefCounted
  3013. Methods:
  3014. - StringHash GetType() const
  3015. - StringHash GetBaseType() const
  3016. - const String GetTypeName() const
  3017. - const String GetCategory() const
  3018. - void SendEvent(const String eventName, VariantMap* eventData = 0)
  3019. Properties:
  3020. - StringHash type (readonly)
  3021. - StringHash baseType (readonly)
  3022. - const String typeName (readonly)
  3023. - const String category (readonly)
  3024. <a name="Class_ObjectAnimation"></a>
  3025. ### ObjectAnimation : Resource
  3026. Methods:
  3027. - ObjectAnimation() (GC)
  3028. - ObjectAnimation* new()
  3029. - void delete()
  3030. - void AddAttributeAnimation(const String name, ValueAnimation* attributeAnimation, WrapMode wrapMode = WM_LOOP, float speed = 1.0f)
  3031. - void RemoveAttributeAnimation(const String name)
  3032. - void RemoveAttributeAnimation(ValueAnimation* attributeAnimation)
  3033. - ValueAnimation* GetAttributeAnimation(const String name) const
  3034. - WrapMode GetAttributeAnimationWrapMode(const String name) const
  3035. - float GetAttributeAnimationSpeed(const String name) const
  3036. <a name="Class_Octree"></a>
  3037. ### Octree : Component
  3038. Methods:
  3039. - void SetSize(const BoundingBox& box, unsigned numLevels)
  3040. - void Update(const FrameInfo& frame)
  3041. - void AddManualDrawable(Drawable* drawable)
  3042. - void RemoveManualDrawable(Drawable* drawable)
  3043. - const PODVector<OctreeQueryResult>& GetDrawables(const Vector3& point, char drawableFlags = DRAWABLE_ANY, unsigned viewMask = DEFAULT_VIEWMASK) const
  3044. - const PODVector<OctreeQueryResult>& GetDrawables(const BoundingBox& box, char drawableFlags = DRAWABLE_ANY, unsigned viewMask = DEFAULT_VIEWMASK) const
  3045. - const PODVector<OctreeQueryResult>& GetDrawables(const Frustum& frustum, char drawableFlags = DRAWABLE_ANY, unsigned viewMask = DEFAULT_VIEWMASK) const
  3046. - const PODVector<OctreeQueryResult>& GetDrawables(const Sphere& sphere, char drawableFlags = DRAWABLE_ANY, unsigned viewMask = DEFAULT_VIEWMASK) const
  3047. - const PODVector<RayQueryResult>& Raycast(const Ray& ray, RayQueryLevel level, float maxDistance, char drawableFlags, unsigned viewMask = DEFAULT_VIEWMASK) const
  3048. - RayQueryResult RaycastSingle(const Ray& ray, RayQueryLevel level, float maxDistance, char drawableFlags, unsigned viewMask = DEFAULT_VIEWMASK) const
  3049. - unsigned GetNumLevels() const
  3050. - void QueueUpdate(Drawable* drawable)
  3051. - void DrawDebugGeometry(bool depthTest)
  3052. Properties:
  3053. - unsigned numLevels (readonly)
  3054. <a name="Class_OctreeQueryResult"></a>
  3055. ### OctreeQueryResult
  3056. Methods:
  3057. - OctreeQueryResult() (GC)
  3058. - OctreeQueryResult* new()
  3059. - void delete()
  3060. Properties:
  3061. - Drawable* drawable
  3062. - Node* node
  3063. <a name="Class_OffMeshConnection"></a>
  3064. ### OffMeshConnection : Component
  3065. Methods:
  3066. - void SetEndPoint(Node* node)
  3067. - void SetRadius(float radius)
  3068. - void SetBidirectional(bool enabled)
  3069. - Node* GetEndPoint() const
  3070. - float GetRadius() const
  3071. - bool IsBidirectional() const
  3072. Properties:
  3073. - Node* endPoint
  3074. - float radius
  3075. - bool bidirectional
  3076. <a name="Class_PackageEntry"></a>
  3077. ### PackageEntry
  3078. Properties:
  3079. - unsigned offset
  3080. - unsigned size
  3081. - unsigned checksum
  3082. <a name="Class_PackageFile"></a>
  3083. ### PackageFile : Object
  3084. Methods:
  3085. - PackageFile() (GC)
  3086. - PackageFile* new()
  3087. - PackageFile(const String fileName, unsigned startOffset = 0) (GC)
  3088. - PackageFile* new(const String fileName, unsigned startOffset = 0)
  3089. - void delete()
  3090. - bool Open(const String fileName, unsigned startOffset = 0)
  3091. - bool Exists(const String fileName) const
  3092. - const PackageEntry* GetEntry(const String fileName) const
  3093. - const HashMap<String,PackageEntry>& GetEntries() const
  3094. - const String GetName() const
  3095. - StringHash GetNameHash() const
  3096. - unsigned GetNumFiles() const
  3097. - unsigned GetTotalSize() const
  3098. - unsigned GetChecksum() const
  3099. - bool IsCompressed() const
  3100. Properties:
  3101. - String name (readonly)
  3102. - StringHash nameHash (readonly)
  3103. - unsigned numFiles (readonly)
  3104. - unsigned totalSize (readonly)
  3105. - unsigned checksum (readonly)
  3106. - bool compressed (readonly)
  3107. <a name="Class_ParticleEffect"></a>
  3108. ### ParticleEffect : Resource
  3109. Methods:
  3110. - void SetMaterial(Material* material)
  3111. - void SetNumParticles(unsigned num)
  3112. - void SetUpdateInvisible(bool enable)
  3113. - void SetRelative(bool enable)
  3114. - void SetScaled(bool enable)
  3115. - void SetSorted(bool enable)
  3116. - void SetAnimationLodBias(float lodBias)
  3117. - void SetEmitterType(EmitterType type)
  3118. - void SetEmitterSize(const Vector3& size)
  3119. - void SetMinDirection(const Vector3& direction)
  3120. - void SetMaxDirection(const Vector3& direction)
  3121. - void SetConstantForce(const Vector3& force)
  3122. - void SetDampingForce(float force)
  3123. - void SetActiveTime(float time)
  3124. - void SetInactiveTime(float time)
  3125. - void SetMinEmissionRate(float rate)
  3126. - void SetMaxEmissionRate(float rate)
  3127. - void SetMinParticleSize(const Vector2& size)
  3128. - void SetMaxParticleSize(const Vector2& size)
  3129. - void SetMinTimeToLive(float time)
  3130. - void SetMaxTimeToLive(float time)
  3131. - void SetMinVelocity(float velocity)
  3132. - void SetMaxVelocity(float velocity)
  3133. - void SetMinRotation(float rotation)
  3134. - void SetMaxRotation(float rotation)
  3135. - void SetMinRotationSpeed(float speed)
  3136. - void SetMaxRotationSpeed(float speed)
  3137. - void SetSizeAdd(float sizeAdd)
  3138. - void SetSizeMul(float sizeMul)
  3139. - void SetColorFrame(unsigned index, const ColorFrame& colorFrame)
  3140. - void SetTextureFrame(unsigned index, const TextureFrame& textureFrame)
  3141. - Material* GetMaterial() const
  3142. - unsigned GetNumParticles() const
  3143. - bool GetUpdateInvisible() const
  3144. - bool IsRelative() const
  3145. - bool IsScaled() const
  3146. - bool IsSorted() const
  3147. - float GetAnimationLodBias() const
  3148. - EmitterType GetEmitterType() const
  3149. - const Vector3& GetEmitterSize() const
  3150. - const Vector3& GetMinDirection() const
  3151. - const Vector3& GetMaxDirection() const
  3152. - const Vector3& GetConstantForce() const
  3153. - float GetDampingForce() const
  3154. - float GetActiveTime() const
  3155. - float GetInactiveTime() const
  3156. - float GetMinEmissionRate() const
  3157. - float GetMaxEmissionRate() const
  3158. - const Vector2& GetMinParticleSize() const
  3159. - const Vector2& GetMaxParticleSize() const
  3160. - float GetMinTimeToLive() const
  3161. - float GetMaxTimeToLive() const
  3162. - float GetMinVelocity() const
  3163. - float GetMaxVelocity() const
  3164. - float GetMinRotation() const
  3165. - float GetMaxRotation() const
  3166. - float GetMinRotationSpeed() const
  3167. - float GetMaxRotationSpeed() const
  3168. - float GetSizeAdd() const
  3169. - float GetSizeMul() const
  3170. - unsigned GetNumColorFrames() const
  3171. - const ColorFrame* GetColorFrame(unsigned index) const
  3172. - unsigned GetNumTextureFrames() const
  3173. - const TextureFrame* GetTextureFrame(unsigned index) const
  3174. Properties:
  3175. - Material* material
  3176. - unsigned numParticles
  3177. - bool updateInvisible
  3178. - bool relative
  3179. - bool scaled
  3180. - bool sorted
  3181. - float animationLodBias
  3182. - EmitterType emitterType
  3183. - const Vector3& emitterSize
  3184. - const Vector3& minDirection
  3185. - const Vector3& maxDirection
  3186. - const Vector3& constantForce
  3187. - float dampingForce
  3188. - float activeTime
  3189. - float inactiveTime
  3190. - float minEmissionRate
  3191. - float maxEmissionRate
  3192. - const Vector2& minParticleSize
  3193. - const Vector2& maxParticleSize
  3194. - float minTimeToLive
  3195. - float maxTimeToLive
  3196. - float minVelocity
  3197. - float maxVelocity
  3198. - float minRotation
  3199. - float maxRotation
  3200. - float minRotationSpeed
  3201. - float maxRotationSpeed
  3202. - float sizeAdd
  3203. - float sizeMul
  3204. - unsigned numColorFrames
  3205. - unsigned numTextureFrames
  3206. <a name="Class_ParticleEffect2D"></a>
  3207. ### ParticleEffect2D : Resource
  3208. <a name="Class_ParticleEmitter"></a>
  3209. ### ParticleEmitter : BillboardSet
  3210. Methods:
  3211. - void SetEffect(ParticleEffect* effect)
  3212. - void SetNumParticles(unsigned num)
  3213. - void SetEmitting(bool enable)
  3214. - void ResetEmissionTimer()
  3215. - void RemoveAllParticles()
  3216. - void Reset()
  3217. - void ApplyEffect()
  3218. - ParticleEffect* GetEffect() const
  3219. - unsigned GetNumParticles() const
  3220. - bool IsEmitting() const
  3221. Properties:
  3222. - ParticleEffect* effect
  3223. - unsigned numParticles
  3224. - bool emitting
  3225. <a name="Class_ParticleEmitter2D"></a>
  3226. ### ParticleEmitter2D : Drawable2D
  3227. Methods:
  3228. - void SetEffect(ParticleEffect2D* effect)
  3229. - ParticleEffect2D* GetEffect() const
  3230. Properties:
  3231. - ParticleEffect2D* effect
  3232. <a name="Class_Pass"></a>
  3233. ### Pass : RefCounted
  3234. Methods:
  3235. - bool IsSM3() const
  3236. - bool IsDesktop() const
  3237. - const String GetVertexShader() const
  3238. - const String GetPixelShader() const
  3239. Properties:
  3240. - bool SM3 (readonly)
  3241. - bool desktop (readonly)
  3242. - const String vertexShader (readonly)
  3243. - const String pixelShader (readonly)
  3244. <a name="Class_PhysicsRaycastResult"></a>
  3245. ### PhysicsRaycastResult
  3246. Methods:
  3247. - PhysicsRaycastResult() (GC)
  3248. - PhysicsRaycastResult* new()
  3249. - void delete()
  3250. Properties:
  3251. - Vector3 position
  3252. - Vector3 normal
  3253. - float distance
  3254. - RigidBody* body
  3255. <a name="Class_PhysicsRaycastResult2D"></a>
  3256. ### PhysicsRaycastResult2D
  3257. Methods:
  3258. - PhysicsRaycastResult2D() (GC)
  3259. - PhysicsRaycastResult2D* new()
  3260. - void delete()
  3261. Properties:
  3262. - Vector2 position
  3263. - Vector2 normal
  3264. - float distance
  3265. - RigidBody2D* body
  3266. <a name="Class_PhysicsWorld"></a>
  3267. ### PhysicsWorld : Component
  3268. Methods:
  3269. - void Update(float timeStep)
  3270. - void UpdateCollisions()
  3271. - void SetFps(int fps)
  3272. - void SetGravity(Vector3 gravity)
  3273. - void SetMaxSubSteps(int num)
  3274. - void SetNumIterations(int num)
  3275. - void SetInterpolation(bool enable)
  3276. - void SetInternalEdge(bool enable)
  3277. - void SetSplitImpulse(bool enable)
  3278. - void SetMaxNetworkAngularVelocity(float velocity)
  3279. - const PODVector<PhysicsRaycastResult>& Raycast(const Ray& ray, float maxDistance, unsigned collisionMask = M_MAX_UNSIGNED)
  3280. - PhysicsRaycastResult RaycastSingle(const Ray& ray, float maxDistance, unsigned collisionMask = M_MAX_UNSIGNED)
  3281. - PhysicsRaycastResult SphereCast(const Ray& ray, float radius, float maxDistance, unsigned collisionMask = M_MAX_UNSIGNED)
  3282. - PhysicsRaycastResult ConvexCast(CollisionShape* shape, const Vector3& startPos, const Quaternion& startRot, const Vector3& endPos, const Quaternion& endRot, unsigned collisionMask = M_MAX_UNSIGNED)
  3283. - const PODVector<RigidBody*>& GetRigidBodies(const Sphere& sphere, unsigned collisionMask = M_MAX_UNSIGNED)
  3284. - const PODVector<RigidBody*>& GetRigidBodies(const BoundingBox& box, unsigned collisionMask = M_MAX_UNSIGNED)
  3285. - const PODVector<RigidBody*>& GetRigidBodies(const RigidBody* body)
  3286. - void DrawDebugGeometry(bool depthTest)
  3287. - void RemoveCachedGeometry(Model* model)
  3288. - Vector3 GetGravity() const
  3289. - int GetMaxSubSteps() const
  3290. - int GetNumIterations() const
  3291. - bool GetInterpolation() const
  3292. - bool GetInternalEdge() const
  3293. - bool GetSplitImpulse() const
  3294. - int GetFps() const
  3295. - float GetMaxNetworkAngularVelocity() const
  3296. Properties:
  3297. - Vector3 gravity
  3298. - int maxSubSteps
  3299. - int numIterations
  3300. - bool interpolation
  3301. - bool internalEdge
  3302. - bool splitImpulse
  3303. - int fps
  3304. - float maxNetworkAngularVelocity
  3305. - bool applyingTransforms
  3306. <a name="Class_PhysicsWorld2D"></a>
  3307. ### PhysicsWorld2D : Component
  3308. Methods:
  3309. - void DrawDebugGeometry()
  3310. - void SetDrawShape(bool drawShape)
  3311. - void SetDrawJoint(bool drawJoint)
  3312. - void SetDrawAabb(bool drawAabb)
  3313. - void SetDrawPair(bool drawPair)
  3314. - void SetDrawCenterOfMass(bool drawCenterOfMass)
  3315. - void SetAllowSleeping(bool enable)
  3316. - void SetWarmStarting(bool enable)
  3317. - void SetContinuousPhysics(bool enable)
  3318. - void SetSubStepping(bool enable)
  3319. - void SetGravity(const Vector2& gravity)
  3320. - void SetAutoClearForces(bool enable)
  3321. - void SetVelocityIterations(int velocityIterations)
  3322. - void SetPositionIterations(int positionIterations)
  3323. - const PODVector<PhysicsRaycastResult2D>& Raycast(const Vector2& startPoint, const Vector2& endPoint, unsigned collisionMask = M_MAX_UNSIGNED)
  3324. - PhysicsRaycastResult2D RaycastSingle(const Vector2& startPoint, const Vector2& endPoint, unsigned collisionMask = M_MAX_UNSIGNED)
  3325. - RigidBody2D* GetRigidBody(const Vector2& point, unsigned collisionMask = M_MAX_UNSIGNED)
  3326. - RigidBody2D* GetRigidBody(int screenX, int screenY, unsigned collisionMask = M_MAX_UNSIGNED)
  3327. - const PODVector<RigidBody2D*>& GetRigidBodies(const Rect& aabb, unsigned collisionMask = M_MAX_UNSIGNED)
  3328. - bool GetDrawShape() const
  3329. - bool GetDrawJoint() const
  3330. - bool GetDrawAabb() const
  3331. - bool GetDrawPair() const
  3332. - bool GetDrawCenterOfMass() const
  3333. - bool GetAllowSleeping() const
  3334. - bool GetWarmStarting() const
  3335. - bool GetContinuousPhysics() const
  3336. - bool GetSubStepping() const
  3337. - bool GetAutoClearForces() const
  3338. - const Vector2& GetGravity() const
  3339. - int GetVelocityIterations() const
  3340. - int GetPositionIterations() const
  3341. Properties:
  3342. - bool drawShape
  3343. - bool drawJoint
  3344. - bool drawAabb
  3345. - bool drawPair
  3346. - bool drawCenterOfMass
  3347. - bool allowSleeping
  3348. - bool warmStarting
  3349. - bool continuousPhysics
  3350. - bool subStepping
  3351. - bool autoClearForces
  3352. - Vector2& gravity
  3353. - int velocityIterations
  3354. - int positionIterations
  3355. <a name="Class_Plane"></a>
  3356. ### Plane
  3357. Methods:
  3358. - Plane() (GC)
  3359. - Plane* new()
  3360. - Plane(const Plane& plane) (GC)
  3361. - Plane* new(const Plane& plane)
  3362. - Plane(const Vector3& v0, const Vector3& v1, const Vector3& v2) (GC)
  3363. - Plane* new(const Vector3& v0, const Vector3& v1, const Vector3& v2)
  3364. - Plane(const Vector3& normal, const Vector3& point) (GC)
  3365. - Plane* new(const Vector3& normal, const Vector3& point)
  3366. - Plane(const Vector4& plane) (GC)
  3367. - Plane* new(const Vector4& plane)
  3368. - void delete()
  3369. - void Define(const Vector3& v0, const Vector3& v1, const Vector3& v2)
  3370. - void Define(const Vector3& normal, const Vector3& point)
  3371. - void Define(const Vector4& plane)
  3372. - void Transform(const Matrix3& transform)
  3373. - void Transform(const Matrix3x4& transform)
  3374. - void Transform(const Matrix4& transform)
  3375. - Vector3 Project(const Vector3& point) const
  3376. - float Distance(const Vector3& point) const
  3377. - Vector3 Reflect(const Vector3& direction) const
  3378. - Matrix3x4 ReflectionMatrix() const
  3379. - Plane Transformed(const Matrix3& transform) const
  3380. - Plane Transformed(const Matrix3x4& transform) const
  3381. - Plane Transformed(const Matrix4& transform) const
  3382. - Vector4 ToVector4() const
  3383. Properties:
  3384. - Vector3 normal
  3385. - Vector3 absNormal
  3386. - float d
  3387. - const Plane UP
  3388. <a name="Class_Polyhedron"></a>
  3389. ### Polyhedron
  3390. Methods:
  3391. - Polyhedron() (GC)
  3392. - Polyhedron* new()
  3393. - Polyhedron(const Polyhedron& polyhedron) (GC)
  3394. - Polyhedron* new(const Polyhedron& polyhedron)
  3395. - Polyhedron(const BoundingBox& box) (GC)
  3396. - Polyhedron* new(const BoundingBox& box)
  3397. - Polyhedron(const Frustum& frustum) (GC)
  3398. - Polyhedron* new(const Frustum& frustum)
  3399. - void delete()
  3400. - void Define(const BoundingBox& box)
  3401. - void Define(const Frustum& frustum)
  3402. - void AddFace(const Vector3& v0, const Vector3& v1, const Vector3& v2)
  3403. - void AddFace(const Vector3& v0, const Vector3& v1, const Vector3& v2, const Vector3& v3)
  3404. - void Clip(const Plane& plane)
  3405. - void Clip(const BoundingBox& box)
  3406. - void Clip(const Frustum& box)
  3407. - void Clear()
  3408. - void Transform(const Matrix3& transform)
  3409. - void Transform(const Matrix3x4& transform)
  3410. - Polyhedron Transformed(const Matrix3& transform) const
  3411. - Polyhedron Transformed(const Matrix3x4& transform) const
  3412. - bool Empty() const
  3413. Properties:
  3414. - bool empty (readonly)
  3415. <a name="Class_PropertySet2D"></a>
  3416. ### PropertySet2D
  3417. Methods:
  3418. - bool HasProperty(const String name) const
  3419. - const String GetProperty(const String name) const
  3420. <a name="Class_Quaternion"></a>
  3421. ### Quaternion
  3422. Methods:
  3423. - Quaternion() (GC)
  3424. - Quaternion* new()
  3425. - Quaternion(const Quaternion& quat) (GC)
  3426. - Quaternion* new(const Quaternion& quat)
  3427. - Quaternion(float w, float x, float y, float z) (GC)
  3428. - Quaternion* new(float w, float x, float y, float z)
  3429. - Quaternion(float angle, const Vector3& axis) (GC)
  3430. - Quaternion* new(float angle, const Vector3& axis)
  3431. - Quaternion(float angle) (GC)
  3432. - Quaternion* new(float angle)
  3433. - Quaternion(float x, float y, float z) (GC)
  3434. - Quaternion* new(float x, float y, float z)
  3435. - Quaternion(const Vector3& start, const Vector3& end) (GC)
  3436. - Quaternion* new(const Vector3& start, const Vector3& end)
  3437. - Quaternion(const Vector3& xAxis, const Vector3& yAxis, const Vector3& zAxis) (GC)
  3438. - Quaternion* new(const Vector3& xAxis, const Vector3& yAxis, const Vector3& zAxis)
  3439. - Quaternion(const Matrix3& matrix) (GC)
  3440. - Quaternion* new(const Matrix3& matrix)
  3441. - void delete()
  3442. - bool operator==(const Quaternion& rhs) const
  3443. - Quaternion operator*(float rhs) const
  3444. - Quaternion operator-() const
  3445. - bool operator==(const Quaternion& rhs) const
  3446. - Quaternion operator*(float rhs) const
  3447. - Quaternion operator-() const
  3448. - Quaternion operator+(const Quaternion& rhs) const
  3449. - Quaternion operator-(const Quaternion& rhs) const
  3450. - Quaternion operator*(const Quaternion& rhs) const
  3451. - Vector3 operator*(const Vector3& rhs) const
  3452. - void FromAngleAxis(float angle, const Vector3& axis)
  3453. - void FromEulerAngles(float x, float y, float z)
  3454. - void FromRotationTo(const Vector3& start, const Vector3& end)
  3455. - void FromAxes(const Vector3& xAxis, const Vector3& yAxis, const Vector3& zAxis)
  3456. - void FromRotationMatrix(const Matrix3& matrix)
  3457. - bool FromLookRotation(const Vector3& direction, const Vector3& up)
  3458. - void Normalize()
  3459. - Quaternion Normalized() const
  3460. - Quaternion Inverse() const
  3461. - float LengthSquared() const
  3462. - float DotProduct(const Quaternion& rhs) const
  3463. - bool Equals(const Quaternion& rhs) const
  3464. - bool IsNaN() const
  3465. - Quaternion Conjugate() const
  3466. - Vector3 EulerAngles() const
  3467. - float YawAngle() const
  3468. - float PitchAngle() const
  3469. - float RollAngle() const
  3470. - Matrix3 RotationMatrix() const
  3471. - Quaternion Slerp(Quaternion rhs, float t) const
  3472. - Quaternion Nlerp(Quaternion rhs, float t, bool shortestPath) const
  3473. - String ToString() const
  3474. Properties:
  3475. - float w
  3476. - float x
  3477. - float y
  3478. - float z
  3479. - const Quaternion IDENTITY
  3480. <a name="Class_Ray"></a>
  3481. ### Ray
  3482. Methods:
  3483. - Ray() (GC)
  3484. - Ray* new()
  3485. - Ray(const Vector3& origin, const Vector3& direction) (GC)
  3486. - Ray* new(const Vector3& origin, const Vector3& direction)
  3487. - Ray(const Ray& ray) (GC)
  3488. - Ray* new(const Ray& ray)
  3489. - void delete()
  3490. - bool operator==(const Ray& rhs) const
  3491. - void Define(const Vector3& origin, const Vector3& direction)
  3492. - Vector3 Project(const Vector3& point) const
  3493. - float Distance(const Vector3& point) const
  3494. - Vector3 ClosestPoint(const Ray& ray) const
  3495. - float HitDistance(const Plane& plane) const
  3496. - float HitDistance(const BoundingBox& box) const
  3497. - float HitDistance(const Frustum& frustum, bool solidInside = true) const
  3498. - float HitDistance(const Sphere& sphere) const
  3499. - float HitDistance(const Vector3& v0, const Vector3& v1, const Vector3& v2) const
  3500. - Ray Transformed(const Matrix3x4& transform) const
  3501. Properties:
  3502. - Vector3 origin
  3503. - Vector3 direction
  3504. <a name="Class_RayQueryResult"></a>
  3505. ### RayQueryResult
  3506. Methods:
  3507. - RayQueryResult() (GC)
  3508. - RayQueryResult* new()
  3509. - void delete()
  3510. Properties:
  3511. - Vector3 position
  3512. - Vector3 normal
  3513. - float distance
  3514. - Drawable* drawable
  3515. - Node* node
  3516. - unsigned subObject
  3517. <a name="Class_Rect"></a>
  3518. ### Rect
  3519. Methods:
  3520. - Rect() (GC)
  3521. - Rect* new()
  3522. - Rect(const Rect& rect) (GC)
  3523. - Rect* new(const Rect& rect)
  3524. - Rect(const Vector2& min, const Vector2& max) (GC)
  3525. - Rect* new(const Vector2& min, const Vector2& max)
  3526. - Rect(float left, float top, float right, float bottom) (GC)
  3527. - Rect* new(float left, float top, float right, float bottom)
  3528. - Rect(const Vector4& vector) (GC)
  3529. - Rect* new(const Vector4& vector)
  3530. - void delete()
  3531. - bool operator==(const Rect& rhs) const
  3532. - void Define(const Rect& rect)
  3533. - void Define(const Vector2& min, const Vector2& max)
  3534. - void Define(const Vector2& point)
  3535. - void Merge(const Vector2& point)
  3536. - void Merge(const Rect& rect)
  3537. - void Clear()
  3538. - void Clip(const Rect& rect)
  3539. - Vector2 Center() const
  3540. - Vector2 Size() const
  3541. - Vector2 HalfSize() const
  3542. - bool Equals(const Rect& rhs) const
  3543. - Intersection IsInside(const Vector2& point) const
  3544. - Vector4 ToVector4() const
  3545. - String ToString() const
  3546. Properties:
  3547. - Vector2 min
  3548. - Vector2 max
  3549. - const Rect FULL
  3550. - const Rect POSITIVE
  3551. - const Rect ZERO
  3552. - Vector2 center (readonly)
  3553. - Vector2 size (readonly)
  3554. - Vector2 halfSize (readonly)
  3555. <a name="Class_RemoteEvent"></a>
  3556. ### RemoteEvent
  3557. Properties:
  3558. - unsigned senderID
  3559. - StringHash eventType
  3560. - VariantMap eventData
  3561. - bool inOrder
  3562. <a name="Class_RenderPath"></a>
  3563. ### RenderPath
  3564. Methods:
  3565. - RenderPath* Clone()
  3566. - bool Load(XMLFile* file)
  3567. - bool Append(XMLFile* file)
  3568. - void SetEnabled(const String tag, bool active)
  3569. - void ToggleEnabled(const String tag)
  3570. - void SetRenderTarget(unsigned index, const RenderTargetInfo& info)
  3571. - void AddRenderTarget(const RenderTargetInfo& info)
  3572. - void RemoveRenderTarget(const String name)
  3573. - void RemoveRenderTarget(unsigned index)
  3574. - void RemoveRenderTargets(const String tag)
  3575. - void SetCommand(unsigned index, const RenderPathCommand& command)
  3576. - void AddCommand(const RenderPathCommand& command)
  3577. - void InsertCommand(unsigned index, const RenderPathCommand& command)
  3578. - void RemoveCommand(unsigned index)
  3579. - void RemoveCommands(const String tag)
  3580. - void SetShaderParameter(const String name, const Variant& value)
  3581. - unsigned GetNumRenderTargets() const
  3582. - unsigned GetNumCommands() const
  3583. - const Variant& GetShaderParameter(const String name) const
  3584. <a name="Class_RenderSurface"></a>
  3585. ### RenderSurface
  3586. Methods:
  3587. - RenderSurface(Texture* parentTexture) (GC)
  3588. - RenderSurface* new(Texture* parentTexture)
  3589. - void delete()
  3590. - void SetNumViewports(unsigned num)
  3591. - void SetViewport(unsigned index, Viewport* viewport)
  3592. - void SetUpdateMode(RenderSurfaceUpdateMode mode)
  3593. - void SetLinkedRenderTarget(RenderSurface* renderTarget)
  3594. - void SetLinkedDepthStencil(RenderSurface* depthStencil)
  3595. - void QueueUpdate()
  3596. - void Release()
  3597. - Texture* GetParentTexture() const
  3598. - int GetWidth() const
  3599. - int GetHeight() const
  3600. - TextureUsage GetUsage() const
  3601. - unsigned GetNumViewports() const
  3602. - Viewport* GetViewport(unsigned index) const
  3603. - RenderSurfaceUpdateMode GetUpdateMode() const
  3604. - RenderSurface* GetLinkedRenderTarget() const
  3605. - RenderSurface* GetLinkedDepthStencil() const
  3606. Properties:
  3607. - Texture* parentTexture (readonly)
  3608. - int width (readonly)
  3609. - int height (readonly)
  3610. - TextureUsage usage (readonly)
  3611. - unsigned numViewports
  3612. - RenderSurfaceUpdateMode updateMode
  3613. - RenderSurface* linkedRenderTarget
  3614. - RenderSurface* linkedDepthStencil
  3615. <a name="Class_Renderer"></a>
  3616. ### Renderer
  3617. Methods:
  3618. - void SetNumViewports(unsigned num)
  3619. - void SetViewport(unsigned index, Viewport* viewport)
  3620. - void SetDefaultRenderPath(RenderPath* renderPath)
  3621. - void SetDefaultRenderPath(XMLFile* file)
  3622. - void SetHDRRendering(bool enable)
  3623. - void SetSpecularLighting(bool enable)
  3624. - void SetTextureAnisotropy(int level)
  3625. - void SetTextureFilterMode(TextureFilterMode mode)
  3626. - void SetTextureQuality(int quality)
  3627. - void SetMaterialQuality(int quality)
  3628. - void SetDrawShadows(bool enable)
  3629. - void SetShadowMapSize(int size)
  3630. - void SetShadowQuality(int quality)
  3631. - void SetReuseShadowMaps(bool enable)
  3632. - void SetMaxShadowMaps(int shadowMaps)
  3633. - void SetDynamicInstancing(bool enable)
  3634. - void SetMinInstances(int instances)
  3635. - void SetMaxInstanceTriangles(int triangles)
  3636. - void SetMaxSortedInstances(int instances)
  3637. - void SetMaxOccluderTriangles(int triangles)
  3638. - void SetOcclusionBufferSize(int size)
  3639. - void SetOccluderSizeThreshold(float screenSize)
  3640. - void SetMobileShadowBiasMul(float mul)
  3641. - void SetMobileShadowBiasAdd(float add)
  3642. - void ReloadShaders()
  3643. - unsigned GetNumViewports() const
  3644. - Viewport* GetViewport(unsigned index) const
  3645. - RenderPath* GetDefaultRenderPath() const
  3646. - bool GetHDRRendering() const
  3647. - bool GetSpecularLighting() const
  3648. - bool GetDrawShadows() const
  3649. - int GetTextureAnisotropy() const
  3650. - TextureFilterMode GetTextureFilterMode() const
  3651. - int GetTextureQuality() const
  3652. - int GetMaterialQuality() const
  3653. - int GetShadowMapSize() const
  3654. - int GetShadowQuality() const
  3655. - bool GetReuseShadowMaps() const
  3656. - int GetMaxShadowMaps() const
  3657. - bool GetDynamicInstancing() const
  3658. - int GetMinInstances() const
  3659. - int GetMaxInstanceTriangles() const
  3660. - int GetMaxSortedInstances() const
  3661. - int GetMaxOccluderTriangles() const
  3662. - int GetOcclusionBufferSize() const
  3663. - float GetOccluderSizeThreshold() const
  3664. - float GetMobileShadowBiasMul() const
  3665. - float GetMobileShadowBiasAdd() const
  3666. - unsigned GetNumViews() const
  3667. - unsigned GetNumPrimitives() const
  3668. - unsigned GetNumBatches() const
  3669. - unsigned GetNumGeometries(bool allViews = false) const
  3670. - unsigned GetNumLights(bool allViews = false) const
  3671. - unsigned GetNumShadowMaps(bool allViews = false) const
  3672. - unsigned GetNumOccluders(bool allViews = false) const
  3673. - Zone* GetDefaultZone() const
  3674. - Material* GetDefaultMaterial() const
  3675. - Texture2D* GetDefaultLightRamp() const
  3676. - Texture2D* GetDefaultLightSpot() const
  3677. - void DrawDebugGeometry(bool depthTest)
  3678. Properties:
  3679. - unsigned numViewports
  3680. - RenderPath* defaultRenderPath
  3681. - bool HDRRendering
  3682. - bool specularLighting
  3683. - bool drawShadows
  3684. - int textureAnisotropy
  3685. - TextureFilterMode textureFilterMode
  3686. - int textureQuality
  3687. - int materialQuality
  3688. - int shadowMapSize
  3689. - int shadowQuality
  3690. - bool reuseShadowMaps
  3691. - int maxShadowMaps
  3692. - bool dynamicInstancing
  3693. - int minInstances
  3694. - int maxInstanceTriangles
  3695. - int maxSortedInstances
  3696. - int maxOccluderTriangles
  3697. - int occlusionBufferSize
  3698. - float occluderSizeThreshold
  3699. - float mobileShadowBiasMul
  3700. - float mobileShadowBiasAdd
  3701. - unsigned numViews (readonly)
  3702. - unsigned numPrimitives (readonly)
  3703. - unsigned numBatches (readonly)
  3704. - Zone* defaultZone (readonly)
  3705. - Material* defaultMaterial (readonly)
  3706. - Texture2D* defaultLightRamp (readonly)
  3707. - Texture2D* defaultLightSpot (readonly)
  3708. <a name="Class_Resource"></a>
  3709. ### Resource
  3710. Methods:
  3711. - bool Load(Deserializer& source)
  3712. - bool Save(Serializer& dest) const
  3713. - bool Load(const String fileName)
  3714. - bool Save(const String fileName) const
  3715. - const String GetName() const
  3716. - StringHash GetNameHash() const
  3717. - unsigned GetMemoryUse() const
  3718. Properties:
  3719. - String name (readonly)
  3720. - StringHash nameHash (readonly)
  3721. - unsigned memoryUse (readonly)
  3722. <a name="Class_ResourceCache"></a>
  3723. ### ResourceCache
  3724. Methods:
  3725. - void ReleaseAllResources(bool force = false)
  3726. - bool ReloadResource(Resource* resource)
  3727. - void ReloadResourceWithDependencies(const String fileName)
  3728. - void SetMemoryBudget(StringHash type, unsigned budget)
  3729. - void SetMemoryBudget(const String type, unsigned budget)
  3730. - void SetAutoReloadResources(bool enable)
  3731. - void SetReturnFailedResources(bool enable)
  3732. - void SetSearchPackagesFirst(bool value)
  3733. - void SetFinishBackgroundResourcesMs(int ms)
  3734. - File* GetFile(const String name)
  3735. - Resource* GetResource(const String type, const String name, bool sendEventOnFailure = true)
  3736. - bool BackgroundLoadResource(const String type, const String name, bool sendEventOnFailure = true)
  3737. - unsigned GetNumBackgroundLoadResources() const
  3738. - bool Exists(const String name) const
  3739. - unsigned GetMemoryBudget(StringHash type) const
  3740. - unsigned GetMemoryUse(StringHash type) const
  3741. - unsigned GetTotalMemoryUse() const
  3742. - String GetResourceFileName(const String name) const
  3743. - bool GetAutoReloadResources() const
  3744. - bool GetReturnFailedResources() const
  3745. - bool GetSearchPackagesFirst() const
  3746. - int GetFinishBackgroundResourcesMs() const
  3747. - String GetPreferredResourceDir(const String path) const
  3748. - String SanitateResourceName(const String name) const
  3749. - String SanitateResourceDirName(const String name) const
  3750. Properties:
  3751. - unsigned totalMemoryUse (readonly)
  3752. - bool autoReloadResources
  3753. - bool returnFailedResources
  3754. - bool searchPackagesFirst
  3755. - unsigned numBackgroundLoadResources (readonly)
  3756. - int finishBackgroundResourcesMs
  3757. <a name="Class_ResourceRef"></a>
  3758. ### ResourceRef
  3759. Methods:
  3760. - ResourceRef() (GC)
  3761. - ResourceRef* new()
  3762. - ResourceRef(StringHash type) (GC)
  3763. - ResourceRef* new(StringHash type)
  3764. - ResourceRef(StringHash type, String name) (GC)
  3765. - ResourceRef* new(StringHash type, String name)
  3766. - ResourceRef(const ResourceRef& rhs) (GC)
  3767. - ResourceRef* new(const ResourceRef& rhs)
  3768. - void delete()
  3769. - bool operator==(const ResourceRef& rhs) const
  3770. Properties:
  3771. - StringHash type
  3772. - String name
  3773. <a name="Class_ResourceRefList"></a>
  3774. ### ResourceRefList
  3775. Methods:
  3776. - ResourceRefList() (GC)
  3777. - ResourceRefList* new()
  3778. - ResourceRefList(StringHash type) (GC)
  3779. - ResourceRefList* new(StringHash type)
  3780. - void delete()
  3781. - bool operator==(const ResourceRefList& rhs) const
  3782. Properties:
  3783. - StringHash type
  3784. <a name="Class_RigidBody"></a>
  3785. ### RigidBody : Component
  3786. Methods:
  3787. - void SetMass(float mass)
  3788. - void SetPosition(Vector3 position)
  3789. - void SetRotation(Quaternion rotation)
  3790. - void SetTransform(const Vector3& position, const Quaternion& rotation)
  3791. - void SetLinearVelocity(Vector3 velocity)
  3792. - void SetLinearFactor(Vector3 factor)
  3793. - void SetLinearRestThreshold(float threshold)
  3794. - void SetLinearDamping(float damping)
  3795. - void SetAngularVelocity(Vector3 angularVelocity)
  3796. - void SetAngularFactor(Vector3 factor)
  3797. - void SetAngularRestThreshold(float threshold)
  3798. - void SetAngularDamping(float factor)
  3799. - void SetFriction(float friction)
  3800. - void SetAnisotropicFriction(Vector3 friction)
  3801. - void SetRollingFriction(float friction)
  3802. - void SetRestitution(float restitution)
  3803. - void SetContactProcessingThreshold(float threshold)
  3804. - void SetCcdRadius(float radius)
  3805. - void SetCcdMotionThreshold(float threshold)
  3806. - void SetUseGravity(bool enable)
  3807. - void SetGravityOverride(const Vector3& gravity)
  3808. - void SetKinematic(bool enable)
  3809. - void SetTrigger(bool enable)
  3810. - void SetCollisionLayer(unsigned layer)
  3811. - void SetCollisionMask(unsigned mask)
  3812. - void SetCollisionLayerAndMask(unsigned layer, unsigned mask)
  3813. - void SetCollisionEventMode(CollisionEventMode mode)
  3814. - void DisableMassUpdate()
  3815. - void EnableMassUpdate()
  3816. - void ApplyForce(const Vector3& force)
  3817. - void ApplyForce(const Vector3& force, const Vector3& position)
  3818. - void ApplyTorque(const Vector3& torque)
  3819. - void ApplyImpulse(const Vector3& impulse)
  3820. - void ApplyImpulse(const Vector3& impulse, const Vector3& position)
  3821. - void ApplyTorqueImpulse(const Vector3& torque)
  3822. - void ResetForces()
  3823. - void Activate()
  3824. - void ReAddBodyToWorld()
  3825. - PhysicsWorld* GetPhysicsWorld() const
  3826. - float GetMass() const
  3827. - Vector3 GetPosition() const
  3828. - Quaternion GetRotation() const
  3829. - Vector3 GetLinearVelocity() const
  3830. - Vector3 GetLinearFactor() const
  3831. - Vector3 GetVelocityAtPoint(const Vector3& position) const
  3832. - float GetLinearRestThreshold() const
  3833. - float GetLinearDamping() const
  3834. - Vector3 GetAngularVelocity() const
  3835. - Vector3 GetAngularFactor() const
  3836. - float GetAngularRestThreshold() const
  3837. - float GetAngularDamping() const
  3838. - float GetFriction() const
  3839. - Vector3 GetAnisotropicFriction() const
  3840. - float GetRollingFriction() const
  3841. - float GetRestitution() const
  3842. - float GetContactProcessingThreshold() const
  3843. - float GetCcdRadius() const
  3844. - float GetCcdMotionThreshold() const
  3845. - bool GetUseGravity() const
  3846. - const Vector3& GetGravityOverride() const
  3847. - const Vector3& GetCenterOfMass() const
  3848. - bool IsKinematic() const
  3849. - bool IsTrigger() const
  3850. - bool IsActive() const
  3851. - unsigned GetCollisionLayer() const
  3852. - unsigned GetCollisionMask() const
  3853. - CollisionEventMode GetCollisionEventMode() const
  3854. Properties:
  3855. - PhysicsWorld* physicsWorld (readonly)
  3856. - float mass
  3857. - Vector3 position
  3858. - Quaternion rotation
  3859. - Vector3 linearVelocity
  3860. - Vector3 linearFactor
  3861. - float linearRestThreshold
  3862. - float linearDamping
  3863. - Vector3 angularVelocity
  3864. - Vector3 angularFactor
  3865. - float angularRestThreshold
  3866. - float angularDamping
  3867. - float friction
  3868. - Vector3 anisotropicFriction
  3869. - float rollingFriction
  3870. - float restitution
  3871. - float contactProcessingThreshold
  3872. - float ccdRadius
  3873. - float ccdMotionThreshold
  3874. - bool useGravity
  3875. - Vector3& gravityOverride
  3876. - Vector3& centerOfMass (readonly)
  3877. - bool kinematic
  3878. - bool trigger
  3879. - bool active (readonly)
  3880. - unsigned collisionLayer
  3881. - unsigned collisionMask
  3882. - CollisionEventMode collisionEventMode
  3883. <a name="Class_RigidBody2D"></a>
  3884. ### RigidBody2D : Component
  3885. Methods:
  3886. - void SetBodyType(BodyType2D bodyType)
  3887. - void SetMass(float mass)
  3888. - void SetInertia(float inertia)
  3889. - void SetMassCenter(Vector2 center)
  3890. - void SetUseFixtureMass(bool useFixtureMass)
  3891. - void SetLinearDamping(float linearDamping)
  3892. - void SetAngularDamping(float angularDamping)
  3893. - void SetAllowSleep(bool allowSleep)
  3894. - void SetFixedRotation(bool fixedRotation)
  3895. - void SetBullet(bool bullet)
  3896. - void SetGravityScale(float gravityScale)
  3897. - void SetAwake(bool awake)
  3898. - void SetLinearVelocity(Vector2 linearVelocity)
  3899. - void SetAngularVelocity(float angularVelocity)
  3900. - void ApplyForce(const Vector2& force, const Vector2& point, bool wake)
  3901. - void ApplyForceToCenter(const Vector2& force, bool wake)
  3902. - void ApplyTorque(float torque, bool wake)
  3903. - void ApplyLinearImpulse(const Vector2& impulse, const Vector2& point, bool wake)
  3904. - void ApplyAngularImpulse(float impulse, bool wake)
  3905. - BodyType2D GetBodyType() const
  3906. - float GetMass() const
  3907. - float GetInertia() const
  3908. - Vector2 GetMassCenter() const
  3909. - bool GetUseFixtureMass() const
  3910. - float GetLinearDamping() const
  3911. - float GetAngularDamping() const
  3912. - bool IsAllowSleep() const
  3913. - bool IsFixedRotation() const
  3914. - bool IsBullet() const
  3915. - float GetGravityScale() const
  3916. - bool IsAwake() const
  3917. - Vector2 GetLinearVelocity() const
  3918. - float GetAngularVelocity() const
  3919. Properties:
  3920. - BodyType2D bodyType
  3921. - float mass
  3922. - float inertia
  3923. - Vector2 massCenter
  3924. - bool useFixtureMass
  3925. - float linearDamping
  3926. - float angularDamping
  3927. - bool allowSleep
  3928. - bool fixedRotation
  3929. - bool bullet
  3930. - float gravityScale
  3931. - bool awake
  3932. - Vector2 linearVelocity
  3933. - float angularVelocity
  3934. <a name="Class_Scene"></a>
  3935. ### Scene : Node
  3936. Methods:
  3937. - Scene() (GC)
  3938. - Scene* new()
  3939. - void delete()
  3940. - bool Load(File* source)
  3941. - bool Save(File* dest) const
  3942. - bool Load(const String fileName)
  3943. - bool Save(const String fileName) const
  3944. - bool LoadXML(File* source)
  3945. - bool SaveXML(File* dest) const
  3946. - bool LoadXML(const String fileName)
  3947. - bool SaveXML(const String fileName) const
  3948. - Node* Instantiate(File* source, const Vector3& position, const Quaternion& rotation, CreateMode mode = REPLICATED)
  3949. - Node* Instantiate(const String fileName, const Vector3& position, const Quaternion& rotation, CreateMode mode = REPLICATED)
  3950. - Node* InstantiateXML(File* source, const Vector3& position, const Quaternion& rotation, CreateMode mode = REPLICATED)
  3951. - Node* InstantiateXML(const String fileName, const Vector3& position, const Quaternion& rotation, CreateMode mode = REPLICATED)
  3952. - bool LoadAsync(File* file, LoadMode mode = LOAD_SCENE_AND_RESOURCES)
  3953. - bool LoadAsyncXML(File* file, LoadMode mode = LOAD_SCENE_AND_RESOURCES)
  3954. - bool LoadAsync(const String fileName, LoadMode mode = LOAD_SCENE_AND_RESOURCES)
  3955. - bool LoadAsyncXML(const String fileName, LoadMode mode = LOAD_SCENE_AND_RESOURCES)
  3956. - void StopAsyncLoading()
  3957. - void Clear(bool clearReplicated = true, bool clearLocal = true)
  3958. - void SetUpdateEnabled(bool enable)
  3959. - void SetTimeScale(float scale)
  3960. - void SetElapsedTime(float time)
  3961. - void SetSmoothingConstant(float constant)
  3962. - void SetSnapThreshold(float threshold)
  3963. - void SetAsyncLoadingMs(int ms)
  3964. - Node* GetNode(unsigned id) const
  3965. - bool IsUpdateEnabled() const
  3966. - bool IsAsyncLoading() const
  3967. - float GetAsyncProgress() const
  3968. - LoadMode GetAsyncLoadMode() const
  3969. - const String GetFileName() const
  3970. - unsigned GetChecksum() const
  3971. - float GetTimeScale() const
  3972. - float GetElapsedTime() const
  3973. - float GetSmoothingConstant() const
  3974. - float GetSnapThreshold() const
  3975. - int GetAsyncLoadingMs() const
  3976. - const String GetVarName(StringHash hash) const
  3977. - void Update(float timeStep)
  3978. - void BeginThreadedUpdate()
  3979. - void EndThreadedUpdate()
  3980. - void DelayedMarkedDirty(Component* component)
  3981. - bool IsThreadedUpdate() const
  3982. - unsigned GetFreeNodeID(CreateMode mode)
  3983. - unsigned GetFreeComponentID(CreateMode mode)
  3984. - void NodeAdded(Node* node)
  3985. - void NodeRemoved(Node* node)
  3986. - void ComponentAdded(Component* component)
  3987. - void ComponentRemoved(Component* component)
  3988. - void SetVarNamesAttr(String value)
  3989. - String GetVarNamesAttr() const
  3990. - void PrepareNetworkUpdate()
  3991. - void CleanupConnection(Connection* connection)
  3992. - void MarkNetworkUpdate(Node* node)
  3993. - void MarkNetworkUpdate(Component* component)
  3994. - void MarkReplicationDirty(Node* node)
  3995. Properties:
  3996. - bool updateEnabled
  3997. - bool asyncLoading (readonly)
  3998. - float asyncProgress (readonly)
  3999. - LoadMode asyncLoadMode (readonly)
  4000. - const String fileName
  4001. - unsigned checksum (readonly)
  4002. - float timeScale
  4003. - float elapsedTime
  4004. - float smoothingConstant
  4005. - float snapThreshold
  4006. - int asyncLoadingMs
  4007. - bool threadedUpdate (readonly)
  4008. - String varNamesAttr
  4009. <a name="Class_ScrollBar"></a>
  4010. ### ScrollBar : UIElement
  4011. Methods:
  4012. - ScrollBar() (GC)
  4013. - ScrollBar* new()
  4014. - void delete()
  4015. - void SetOrientation(Orientation orientation)
  4016. - void SetRange(float range)
  4017. - void SetValue(float value)
  4018. - void ChangeValue(float delta)
  4019. - void SetScrollStep(float step)
  4020. - void SetStepFactor(float factor)
  4021. - void StepBack()
  4022. - void StepForward()
  4023. - Orientation GetOrientation() const
  4024. - float GetRange() const
  4025. - float GetValue() const
  4026. - float GetScrollStep() const
  4027. - float GetStepFactor() const
  4028. - float GetEffectiveScrollStep() const
  4029. - Button* GetBackButton() const
  4030. - Button* GetForwardButton() const
  4031. - Slider* GetSlider() const
  4032. Properties:
  4033. - Orientation orientation
  4034. - float range
  4035. - float value
  4036. - float scrollStep
  4037. - float stepFactor
  4038. - float effectiveScrollStep (readonly)
  4039. - Button* backButton (readonly)
  4040. - Button* forwardButton (readonly)
  4041. - Slider* slider (readonly)
  4042. <a name="Class_ScrollView"></a>
  4043. ### ScrollView : UIElement
  4044. Methods:
  4045. - ScrollView() (GC)
  4046. - ScrollView* new()
  4047. - void delete()
  4048. - void SetContentElement(UIElement* element)
  4049. - void SetViewPosition(const IntVector2& position)
  4050. - void SetViewPosition(int x, int y)
  4051. - void SetScrollBarsVisible(bool horizontal, bool vertical)
  4052. - void SetScrollBarsAutoVisible(bool enable)
  4053. - void SetScrollStep(float step)
  4054. - void SetPageStep(float step)
  4055. - void SetScrollDeceleration(float deceleration)
  4056. - void SetScrollSnapEpsilon(float snap)
  4057. - void SetAutoDisableChildren(bool disable)
  4058. - void SetAutoDisableThreshold(float amount)
  4059. - const IntVector2& GetViewPosition() const
  4060. - UIElement* GetContentElement() const
  4061. - ScrollBar* GetHorizontalScrollBar() const
  4062. - ScrollBar* GetVerticalScrollBar() const
  4063. - BorderImage* GetScrollPanel() const
  4064. - bool GetScrollBarsAutoVisible() const
  4065. - float GetScrollStep() const
  4066. - float GetPageStep() const
  4067. - float GetScrollDeceleration() const
  4068. - float GetScrollSnapEpsilon() const
  4069. - bool GetAutoDisableChildren() const
  4070. - float GetAutoDisableThreshold() const
  4071. Properties:
  4072. - IntVector2& viewPosition
  4073. - UIElement* contentElement
  4074. - ScrollBar* horizontalScrollBar (readonly)
  4075. - ScrollBar* verticalScrollBar (readonly)
  4076. - BorderImage* scrollPanel (readonly)
  4077. - bool scrollBarsAutoVisible
  4078. - float scrollStep
  4079. - float pageStep
  4080. - float scrollDeceleration
  4081. - float scrollSnapEpsilon
  4082. <a name="Class_Serializable"></a>
  4083. ### Serializable : Object
  4084. Methods:
  4085. - void SetTemporary(bool enable)
  4086. - bool IsTemporary() const
  4087. Properties:
  4088. - bool temporary
  4089. <a name="Class_Serializer"></a>
  4090. ### Serializer
  4091. Methods:
  4092. - unsigned Write(const VectorBuffer& buffer)
  4093. - bool WriteInt(int value)
  4094. - bool WriteShort(short value)
  4095. - bool WriteByte(char value)
  4096. - bool WriteUInt(unsigned value)
  4097. - bool WriteUShort(short value)
  4098. - bool WriteUByte(char value)
  4099. - bool WriteBool(bool value)
  4100. - bool WriteFloat(float value)
  4101. - bool WriteIntRect(const IntRect& value)
  4102. - bool WriteIntVector2(const IntVector2& value)
  4103. - bool WriteRect(const Rect& value)
  4104. - bool WriteVector2(const Vector2& value)
  4105. - bool WriteVector3(const Vector3& value)
  4106. - bool WritePackedVector3(const Vector3& value, float maxAbsCoord)
  4107. - bool WriteVector4(const Vector4& value)
  4108. - bool WriteQuaternion(const Quaternion& value)
  4109. - bool WritePackedQuaternion(const Quaternion& value)
  4110. - bool WriteMatrix3(const Matrix3& value)
  4111. - bool WriteMatrix3x4(const Matrix3x4& value)
  4112. - bool WriteMatrix4(const Matrix4& value)
  4113. - bool WriteColor(const Color& value)
  4114. - bool WriteBoundingBox(const BoundingBox& value)
  4115. - bool WriteString(const String value)
  4116. - bool WriteFileID(const String value)
  4117. - bool WriteStringHash(const StringHash& value)
  4118. - bool WriteBuffer(const VectorBuffer& buffer)
  4119. - bool WriteResourceRef(const ResourceRef& value)
  4120. - bool WriteResourceRefList(const ResourceRefList& value)
  4121. - bool WriteVariant(const Variant& value)
  4122. - bool WriteVariantData(const Variant& value)
  4123. - bool WriteVariantVector(const VariantVector& value)
  4124. - bool WriteVariantMap(const VariantMap& value)
  4125. - bool WriteVLE(unsigned value)
  4126. - bool WriteNetID(unsigned value)
  4127. - bool WriteLine(const String value)
  4128. <a name="Class_Skeleton"></a>
  4129. ### Skeleton
  4130. Methods:
  4131. - unsigned GetNumBones() const
  4132. - Bone* GetRootBone()
  4133. - Bone* GetBone(const String name)
  4134. - Bone* GetBone(unsigned index)
  4135. Properties:
  4136. - unsigned numBones (readonly)
  4137. - Bone* rootBone (readonly)
  4138. <a name="Class_Skybox"></a>
  4139. ### Skybox : StaticModel
  4140. <a name="Class_Slider"></a>
  4141. ### Slider : BorderImage
  4142. Methods:
  4143. - Slider() (GC)
  4144. - Slider* new()
  4145. - void delete()
  4146. - void SetOrientation(Orientation orientation)
  4147. - void SetRange(float range)
  4148. - void SetValue(float value)
  4149. - void ChangeValue(float delta)
  4150. - void SetRepeatRate(float rate)
  4151. - Orientation GetOrientation() const
  4152. - float GetRange() const
  4153. - float GetValue() const
  4154. - BorderImage* GetKnob() const
  4155. - float GetRepeatRate() const
  4156. Properties:
  4157. - Orientation orientation
  4158. - float range
  4159. - float value
  4160. - BorderImage* knob (readonly)
  4161. - float repeatRate
  4162. <a name="Class_Sound"></a>
  4163. ### Sound : Resource
  4164. Methods:
  4165. - Sound() (GC)
  4166. - Sound* new()
  4167. - void delete()
  4168. - bool LoadRaw(Deserializer& source)
  4169. - bool LoadWav(Deserializer& source)
  4170. - bool LoadOggVorbis(Deserializer& source)
  4171. - bool LoadRaw(const String fileName)
  4172. - bool LoadWav(const String fileName)
  4173. - bool LoadOggVorbis(const String fileName)
  4174. - void SetSize(unsigned dataSize)
  4175. - void SetData(const void* data, unsigned dataSize)
  4176. - void SetFormat(unsigned frequency, bool sixteenBit, bool stereo)
  4177. - void SetLooped(bool enable)
  4178. - void SetLoop(unsigned repeatOffset, unsigned endOffset)
  4179. - void FixInterpolation()
  4180. - float GetLength() const
  4181. - unsigned GetDataSize() const
  4182. - unsigned GetSampleSize() const
  4183. - float GetFrequency() const
  4184. - unsigned GetIntFrequency() const
  4185. - bool IsLooped() const
  4186. - bool IsSixteenBit() const
  4187. - bool IsStereo() const
  4188. - bool IsCompressed() const
  4189. Properties:
  4190. - float length (readonly)
  4191. - unsigned dataSize (readonly)
  4192. - unsigned sampleSize (readonly)
  4193. - float frequency (readonly)
  4194. - int intFrequency (readonly)
  4195. - bool looped
  4196. - bool sixteenBit (readonly)
  4197. - bool stereo (readonly)
  4198. - bool compressed (readonly)
  4199. <a name="Class_SoundListener"></a>
  4200. ### SoundListener : Component
  4201. <a name="Class_SoundSource"></a>
  4202. ### SoundSource : Component
  4203. Methods:
  4204. - void Play(Sound* sound)
  4205. - void Play(Sound* sound, float frequency)
  4206. - void Play(Sound* sound, float frequency, float gain)
  4207. - void Play(Sound* sound, float frequency, float gain, float panning)
  4208. - void Stop()
  4209. - void SetSoundType(SoundType type)
  4210. - void SetFrequency(float frequency)
  4211. - void SetGain(float gain)
  4212. - void SetAttenuation(float attenuation)
  4213. - void SetPanning(float panning)
  4214. - void SetAutoRemove(bool enable)
  4215. - Sound* GetSound() const
  4216. - SoundType GetSoundType() const
  4217. - float GetTimePosition() const
  4218. - float GetFrequency() const
  4219. - float GetGain() const
  4220. - float GetAttenuation() const
  4221. - float GetPanning() const
  4222. - bool GetAutoRemove() const
  4223. - bool IsPlaying() const
  4224. Properties:
  4225. - Sound* sound (readonly)
  4226. - SoundType soundType
  4227. - float timePosition (readonly)
  4228. - float frequency
  4229. - float gain
  4230. - float attenuation
  4231. - float panning
  4232. - bool autoRemove
  4233. - bool playing (readonly)
  4234. <a name="Class_SoundSource3D"></a>
  4235. ### SoundSource3D : SoundSource
  4236. Methods:
  4237. - void SetDistanceAttenuation(float nearDistance, float farDistance, float rolloffFactor)
  4238. - void SetAngleAttenuation(float innerAngle, float outerAngle)
  4239. - void SetNearDistance(float distance)
  4240. - void SetFarDistance(float distance)
  4241. - void SetInnerAngle(float angle)
  4242. - void SetOuterAngle(float angle)
  4243. - void SetRolloffFactor(float factor)
  4244. - void CalculateAttenuation()
  4245. - float GetNearDistance() const
  4246. - float GetFarDistance() const
  4247. - float GetInnerAngle() const
  4248. - float GetOuterAngle() const
  4249. - float RollAngleoffFactor() const
  4250. Properties:
  4251. - float nearDistance
  4252. - float farDistance
  4253. - float innerAngle
  4254. - float outerAngle
  4255. - float rolloffFactor
  4256. <a name="Class_Sphere"></a>
  4257. ### Sphere
  4258. Methods:
  4259. - Sphere() (GC)
  4260. - Sphere* new()
  4261. - Sphere(const Sphere& sphere) (GC)
  4262. - Sphere* new(const Sphere& sphere)
  4263. - Sphere(const Vector3& center, float radius) (GC)
  4264. - Sphere* new(const Vector3& center, float radius)
  4265. - Sphere(const BoundingBox& box) (GC)
  4266. - Sphere* new(const BoundingBox& box)
  4267. - Sphere(const Frustum& frustum) (GC)
  4268. - Sphere* new(const Frustum& frustum)
  4269. - Sphere(const Polyhedron& poly) (GC)
  4270. - Sphere* new(const Polyhedron& poly)
  4271. - void delete()
  4272. - bool operator==(const Sphere& rhs) const
  4273. - void Define(const Sphere& sphere)
  4274. - void Define(const Vector3& center, float radius)
  4275. - void Define(const BoundingBox& box)
  4276. - void Define(const Frustum& frustum)
  4277. - void Define(const Polyhedron& poly)
  4278. - void Merge(const Vector3& point)
  4279. - void Merge(const BoundingBox& box)
  4280. - void Merge(const Frustum& frustum)
  4281. - void Merge(const Polyhedron& poly)
  4282. - void Merge(const Sphere& sphere)
  4283. - void Clear()
  4284. - Intersection IsInside(const Vector3& point) const
  4285. - Intersection IsInside(const Sphere& sphere) const
  4286. - Intersection IsInsideFast(const Sphere& sphere) const
  4287. - Intersection IsInside(const BoundingBox& box) const
  4288. - Intersection IsInsideFast(const BoundingBox& box) const
  4289. - float Distance(const Vector3& point) const
  4290. Properties:
  4291. - Vector3 center
  4292. - float radius
  4293. - bool defined
  4294. <a name="Class_Spline"></a>
  4295. ### Spline
  4296. Methods:
  4297. - Spline() (GC)
  4298. - Spline* new()
  4299. - Spline(InterpolationMode mode) (GC)
  4300. - Spline* new(InterpolationMode mode)
  4301. - Spline(const Spline& rhs) (GC)
  4302. - Spline* new(const Spline& rhs)
  4303. - void delete()
  4304. - bool operator==(const Spline& rhs) const
  4305. - Variant GetPoint(float f) const
  4306. - Variant GetKnot(unsigned index) const
  4307. - void SetKnot(const Variant& knot, unsigned tolua_var_1)
  4308. - void AddKnot(const Variant& knot)
  4309. - void AddKnot(const Variant& knot, unsigned index)
  4310. - void RemoveKnot()
  4311. - void RemoveKnot(unsigned index)
  4312. - void Clear()
  4313. Properties:
  4314. - InterpolationMode interpolationMode
  4315. <a name="Class_SplinePath"></a>
  4316. ### SplinePath : Component
  4317. Methods:
  4318. - void AddControlPoint(Node* point, unsigned index = M_MAX_UNSIGNED)
  4319. - void RemoveControlPoint(Node* point)
  4320. - void ClearControlPoints()
  4321. - Vector3 GetPoint(float factor) const
  4322. - InterpolationMode GetInterpolationMode() const
  4323. - Vector3 GetPosition() const
  4324. - void SetInterpolationMode(InterpolationMode mode)
  4325. - void SetPosition(float factor)
  4326. - void Move(float timeStep)
  4327. - void Reset()
  4328. - bool IsFinished() const
  4329. Properties:
  4330. - float speed
  4331. - Node* controlledNode
  4332. <a name="Class_Sprite"></a>
  4333. ### Sprite : UIElement
  4334. Methods:
  4335. - Sprite() (GC)
  4336. - Sprite* new()
  4337. - void delete()
  4338. - void SetPosition(const Vector2& position)
  4339. - void SetPosition(float x, float y)
  4340. - void SetHotSpot(const IntVector2& hotSpot)
  4341. - void SetHotSpot(int x, int y)
  4342. - void SetScale(const Vector2& scale)
  4343. - void SetScale(float x, float y)
  4344. - void SetScale(float scale)
  4345. - void SetRotation(float angle)
  4346. - void SetTexture(Texture* texture)
  4347. - void SetImageRect(const IntRect& rect)
  4348. - void SetFullImageRect()
  4349. - void SetBlendMode(BlendMode mode)
  4350. - const Vector2& GetPosition() const
  4351. - const IntVector2& GetHotSpot() const
  4352. - const Vector2& GetScale() const
  4353. - float GetRotation() const
  4354. - Texture* GetTexture() const
  4355. - const IntRect& GetImageRect() const
  4356. - BlendMode GetBlendMode() const
  4357. - const Matrix3x4& GetTransform() const
  4358. Properties:
  4359. - Vector2& position
  4360. - IntVector2& hotSpot
  4361. - Vector2& scale
  4362. - float rotation
  4363. - Texture* texture
  4364. - IntRect& imageRect
  4365. - BlendMode blendMode
  4366. - Matrix3x4& transform (readonly)
  4367. <a name="Class_Sprite2D"></a>
  4368. ### Sprite2D : Resource
  4369. Methods:
  4370. - void SetTexture(Texture2D* texture)
  4371. - void SetRectangle(const IntRect& rectangle)
  4372. - void SetHotSpot(const Vector2& hotSpot)
  4373. - void SetOffset(const IntVector2& offset)
  4374. - void SetSpriteSheet(SpriteSheet2D* spriteSheet)
  4375. - Texture2D* GetTexture() const
  4376. - const IntRect& GetRectangle() const
  4377. - const Vector2& GetHotSpot() const
  4378. - const IntVector2& GetOffset() const
  4379. - SpriteSheet2D* GetSpriteSheet() const
  4380. Properties:
  4381. - Texture2D* texture
  4382. - IntRect rectangle
  4383. - Vector2 hotSpot
  4384. - IntVector2 offset
  4385. - SpriteSheet2D* spriteSheet
  4386. <a name="Class_SpriteSheet2D"></a>
  4387. ### SpriteSheet2D : Resource
  4388. Methods:
  4389. - Texture2D* GetTexture() const
  4390. - Sprite2D* GetSprite(const String name) const
  4391. - void DefineSprite(const String name, const IntRect& rectangle)
  4392. - void DefineSprite(const String name, const IntRect& rectangle, const Vector2& hotSpot)
  4393. - void DefineSprite(const String name, const IntRect& rectangle, const Vector2& hotSpot, const IntVector2& originSize)
  4394. <a name="Class_StaticModel"></a>
  4395. ### StaticModel : Drawable
  4396. Methods:
  4397. - void SetModel(Model* model)
  4398. - void SetMaterial(Material* material)
  4399. - bool SetMaterial(unsigned index, Material* material)
  4400. - void SetOcclusionLodLevel(unsigned level)
  4401. - void ApplyMaterialList(const String fileName = String::EMPTY)
  4402. - Model* GetModel() const
  4403. - unsigned GetNumGeometries() const
  4404. - Material* GetMaterial(unsigned index = 0) const
  4405. - unsigned GetOcclusionLodLevel() const
  4406. - bool IsInside(const Vector3& point) const
  4407. - bool IsInsideLocal(const Vector3& point) const
  4408. Properties:
  4409. - Model* model
  4410. - Material* material
  4411. - BoundingBox& boundingBox (readonly)
  4412. - unsigned numGeometries (readonly)
  4413. - unsigned occlusionLodLevel
  4414. <a name="Class_StaticModelGroup"></a>
  4415. ### StaticModelGroup : StaticModel
  4416. Methods:
  4417. - void AddInstanceNode(Node* node)
  4418. - void RemoveInstanceNode(Node* node)
  4419. - void RemoveAllInstanceNodes()
  4420. - unsigned GetNumInstanceNodes() const
  4421. - Node* GetInstanceNode(unsigned index) const
  4422. Properties:
  4423. - unsigned numInstanceNodes (readonly)
  4424. <a name="Class_StaticSprite2D"></a>
  4425. ### StaticSprite2D : Drawable2D
  4426. Methods:
  4427. - void SetFlip(bool flipX, bool flipY)
  4428. - void SetFlipX(bool flipX)
  4429. - void SetFlipY(bool flipY)
  4430. - void SetColor(const Color& color)
  4431. - bool GetFlipX() const
  4432. - bool GetFlipY() const
  4433. - const Color& GetColor() const
  4434. Properties:
  4435. - bool flipX
  4436. - bool flipY
  4437. - Color& color
  4438. <a name="Class_StringHash"></a>
  4439. ### StringHash
  4440. Methods:
  4441. - StringHash() (GC)
  4442. - StringHash* new()
  4443. - StringHash(const StringHash& rhs) (GC)
  4444. - StringHash* new(const StringHash& rhs)
  4445. - StringHash(unsigned value) (GC)
  4446. - StringHash* new(unsigned value)
  4447. - StringHash(const String str) (GC)
  4448. - StringHash* new(const String str)
  4449. - void delete()
  4450. - StringHash operator+(const StringHash& rhs) const
  4451. - bool operator==(const StringHash& rhs) const
  4452. - bool operator<(const StringHash& rhs) const
  4453. - bool operatorbool() const
  4454. - unsigned Value() const
  4455. - String ToString() const
  4456. - unsigned ToHash() const
  4457. - unsigned Calculate(const char* str)
  4458. Properties:
  4459. - const StringHash ZERO
  4460. - unsigned value (readonly)
  4461. <a name="Class_Technique"></a>
  4462. ### Technique : Resource
  4463. Methods:
  4464. - bool HasPass(const StringHash type) const
  4465. - Pass* GetPass(const StringHash type) const
  4466. - Pass* GetSupportedPass(const StringHash type) const
  4467. - bool IsSupported() const
  4468. - bool IsSM3() const
  4469. - bool IsDesktop() const
  4470. - unsigned GetNumPasses() const
  4471. - const Vector<StringHash>& GetPassTypes() const
  4472. - const PODVector<Pass*>& GetPasses() const
  4473. Properties:
  4474. - bool supported (readonly)
  4475. - bool SM3 (readonly)
  4476. - bool desktop (readonly)
  4477. - unsigned numPasses (readonly)
  4478. <a name="Class_Terrain"></a>
  4479. ### Terrain : Component
  4480. Methods:
  4481. - void SetPatchSize(int size)
  4482. - void SetSpacing(const Vector3& spacing)
  4483. - void SetSmoothing(bool enable)
  4484. - bool SetHeightMap(Image* image)
  4485. - void SetMaterial(Material* material)
  4486. - void SetDrawDistance(float distance)
  4487. - void SetShadowDistance(float distance)
  4488. - void SetLodBias(float bias)
  4489. - void SetViewMask(unsigned mask)
  4490. - void SetLightMask(unsigned mask)
  4491. - void SetShadowMask(unsigned mask)
  4492. - void SetZoneMask(unsigned mask)
  4493. - void SetMaxLights(unsigned num)
  4494. - void SetCastShadows(bool enable)
  4495. - void SetOccluder(bool enable)
  4496. - void SetOccludee(bool enable)
  4497. - void ApplyHeightMap()
  4498. - int GetPatchSize() const
  4499. - const Vector3& GetSpacing() const
  4500. - const IntVector2& GetNumVertices() const
  4501. - const IntVector2& GetNumPatches() const
  4502. - bool GetSmoothing() const
  4503. - Image* GetHeightMap() const
  4504. - Material* GetMaterial() const
  4505. - TerrainPatch* GetPatch(unsigned index) const
  4506. - TerrainPatch* GetPatch(int x, int z) const
  4507. - float GetHeight(const Vector3& worldPosition) const
  4508. - Vector3 GetNormal(const Vector3& worldPosition) const
  4509. - IntVector2 WorldToHeightMap(const Vector3& worldPosition) const
  4510. - SharedArrayPtr<float> GetHeightData() const
  4511. - float GetDrawDistance() const
  4512. - float GetShadowDistance() const
  4513. - float GetLodBias() const
  4514. - unsigned GetViewMask() const
  4515. - unsigned GetLightMask() const
  4516. - unsigned GetShadowMask() const
  4517. - unsigned GetZoneMask() const
  4518. - unsigned GetMaxLights() const
  4519. - bool IsVisible() const
  4520. - bool GetCastShadows() const
  4521. - bool IsOccluder() const
  4522. - bool IsOccludee() const
  4523. Properties:
  4524. - int patchSize
  4525. - Vector3& spacing
  4526. - IntVector2& numVertices (readonly)
  4527. - IntVector2& numPatches (readonly)
  4528. - bool smoothing
  4529. - Image* heightMap
  4530. - Material* material
  4531. - float drawDistance
  4532. - float shadowDistance
  4533. - float lodBias
  4534. - unsigned viewMask
  4535. - unsigned lightMask
  4536. - unsigned shadowMask
  4537. - unsigned zoneMask
  4538. - unsigned maxLights
  4539. - bool visible (readonly)
  4540. - bool castShadows
  4541. - bool occluder
  4542. - bool occludee
  4543. <a name="Class_TerrainPatch"></a>
  4544. ### TerrainPatch : Drawable
  4545. Methods:
  4546. - void SetOwner(Terrain* terrain)
  4547. - void SetNeighbors(TerrainPatch* north, TerrainPatch* south, TerrainPatch* west, TerrainPatch* east)
  4548. - void SetMaterial(Material* material)
  4549. - void SetBoundingBox(const BoundingBox& box)
  4550. - void SetCoordinates(const IntVector2& coordinates)
  4551. - void SetOcclusionOffset(float offset)
  4552. - void ResetLod()
  4553. - Geometry* GetGeometry() const
  4554. - Geometry* GetMaxLodGeometry() const
  4555. - Geometry* GetMinLodGeometry() const
  4556. - VertexBuffer* GetVertexBuffer() const
  4557. - Terrain* GetOwner() const
  4558. - TerrainPatch* GetNorthPatch() const
  4559. - TerrainPatch* GetSouthPatch() const
  4560. - TerrainPatch* GetWestPatch() const
  4561. - TerrainPatch* GetEastPatch() const
  4562. - const IntVector2& GetCoordinates() const
  4563. - unsigned GetLodLevel() const
  4564. - float GetOcclusionOffset() const
  4565. Properties:
  4566. - Geometry* geometry (readonly)
  4567. - Geometry* maxLodGeometry (readonly)
  4568. - Geometry* minLodGeometry (readonly)
  4569. - VertexBuffer* vertexBuffer (readonly)
  4570. - Terrain* owner
  4571. - TerrainPatch* northPatch (readonly)
  4572. - TerrainPatch* southPatch (readonly)
  4573. - TerrainPatch* westPatch (readonly)
  4574. - TerrainPatch* eastPatch (readonly)
  4575. - BoundingBox& boundingBox
  4576. - IntVector2& coordinates
  4577. - unsigned lodLevel (readonly)
  4578. - float occlusionOffset
  4579. <a name="Class_Text"></a>
  4580. ### Text : UIElement
  4581. Methods:
  4582. - Text() (GC)
  4583. - Text* new()
  4584. - void delete()
  4585. - bool SetFont(const String fontName, int size = DEFAULT_FONT_SIZE)
  4586. - bool SetFont(Font* font, int size = DEFAULT_FONT_SIZE)
  4587. - void SetText(const String text)
  4588. - void SetTextAlignment(HorizontalAlignment align)
  4589. - void SetRowSpacing(float spacing)
  4590. - void SetWordwrap(bool enable)
  4591. - void SetSelection(unsigned start, unsigned length = M_MAX_UNSIGNED)
  4592. - void ClearSelection()
  4593. - void SetSelectionColor(const Color& color)
  4594. - void SetHoverColor(const Color& color)
  4595. - void SetTextEffect(TextEffect textEffect)
  4596. - void SetEffectColor(const Color& effectColor)
  4597. - Font* GetFont() const
  4598. - int GetFontSize() const
  4599. - const String GetText() const
  4600. - HorizontalAlignment GetTextAlignment() const
  4601. - float GetRowSpacing() const
  4602. - bool GetWordwrap() const
  4603. - unsigned GetSelectionStart() const
  4604. - unsigned GetSelectionLength() const
  4605. - const Color& GetSelectionColor() const
  4606. - const Color& GetHoverColor() const
  4607. - TextEffect GetTextEffect() const
  4608. - const Color& GetEffectColor() const
  4609. - int GetRowHeight() const
  4610. - unsigned GetNumRows() const
  4611. - unsigned GetNumChars() const
  4612. - int GetRowWidth(unsigned index) const
  4613. - IntVector2 GetCharPosition(unsigned index)
  4614. - IntVector2 GetCharSize(unsigned index)
  4615. - void SetEffectDepthBias(float bias)
  4616. - float GetEffectDepthBias() const
  4617. Properties:
  4618. - Font* font
  4619. - int fontSize (readonly)
  4620. - String text
  4621. - HorizontalAlignment textAlignment
  4622. - float rowSpacing
  4623. - bool wordwrap
  4624. - unsigned selectionStart (readonly)
  4625. - unsigned selectionLength (readonly)
  4626. - Color& selectionColor
  4627. - Color& hoverColor
  4628. - TextEffect textEffect
  4629. - Color& effectColor
  4630. - int rowHeight (readonly)
  4631. - unsigned numRows (readonly)
  4632. - unsigned numChars (readonly)
  4633. <a name="Class_Text3D"></a>
  4634. ### Text3D : Drawable
  4635. Methods:
  4636. - Text3D() (GC)
  4637. - Text3D* new()
  4638. - void delete()
  4639. - bool SetFont(const String fontName, int size = DEFAULT_FONT_SIZE)
  4640. - bool SetFont(Font* font, int size = DEFAULT_FONT_SIZE)
  4641. - void SetMaterial(Material* material)
  4642. - void SetText(const String text)
  4643. - void SetAlignment(HorizontalAlignment hAlign, VerticalAlignment vAlign)
  4644. - void SetHorizontalAlignment(HorizontalAlignment align)
  4645. - void SetVerticalAlignment(VerticalAlignment align)
  4646. - void SetTextAlignment(HorizontalAlignment align)
  4647. - void SetRowSpacing(float spacing)
  4648. - void SetWordwrap(bool enable)
  4649. - void SetTextEffect(TextEffect textEffect)
  4650. - void SetEffectColor(const Color& effectColor)
  4651. - void SetEffectDepthBias(float bias)
  4652. - void SetWidth(int width)
  4653. - void SetColor(const Color& color)
  4654. - void SetColor(Corner corner, const Color& color)
  4655. - void SetOpacity(float opacity)
  4656. - void SetFaceCameraMode(FaceCameraMode mode)
  4657. - Font* GetFont() const
  4658. - Material* GetMaterial() const
  4659. - int GetFontSize() const
  4660. - const String GetText() const
  4661. - HorizontalAlignment GetTextAlignment() const
  4662. - HorizontalAlignment GetHorizontalAlignment() const
  4663. - VerticalAlignment GetVerticalAlignment() const
  4664. - float GetRowSpacing() const
  4665. - bool GetWordwrap() const
  4666. - TextEffect GetTextEffect() const
  4667. - const Color& GetEffectColor() const
  4668. - float GetEffectDepthBias() const
  4669. - int GetWidth() const
  4670. - int GetRowHeight() const
  4671. - unsigned GetNumRows() const
  4672. - unsigned GetNumChars() const
  4673. - int GetRowWidth(unsigned index) const
  4674. - IntVector2 GetCharPosition(unsigned index)
  4675. - IntVector2 GetCharSize(unsigned index)
  4676. - const Color& GetColor(Corner corner) const
  4677. - float GetOpacity() const
  4678. - FaceCameraMode GetFaceCameraMode() const
  4679. Properties:
  4680. - Font* font
  4681. - Material* material
  4682. - int fontSize (readonly)
  4683. - String text
  4684. - HorizontalAlignment textAlignment
  4685. - HorizontalAlignment horizontalAlignment
  4686. - VerticalAlignment verticalAlignment
  4687. - float rowSpacing
  4688. - bool wordwrap
  4689. - TextEffect textEffect
  4690. - Color& effectColor
  4691. - float effectDepthBias
  4692. - int width
  4693. - Color& color
  4694. - int rowHeight (readonly)
  4695. - unsigned numRows (readonly)
  4696. - unsigned numChars (readonly)
  4697. - float opacity
  4698. - FaceCameraMode faceCameraMode
  4699. <a name="Class_Texture"></a>
  4700. ### Texture : Resource
  4701. Methods:
  4702. - void SetNumLevels(unsigned levels)
  4703. - void SetFilterMode(TextureFilterMode filter)
  4704. - void SetAddressMode(TextureCoordinate coord, TextureAddressMode address)
  4705. - void SetBorderColor(const Color& color)
  4706. - void SetSRGB(bool enable)
  4707. - void SetBackupTexture(Texture* texture)
  4708. - void SetMipsToSkip(int quality, int mips)
  4709. - unsigned GetFormat() const
  4710. - bool IsCompressed() const
  4711. - unsigned GetLevels() const
  4712. - int GetWidth() const
  4713. - int GetHeight() const
  4714. - TextureFilterMode GetFilterMode() const
  4715. - TextureAddressMode GetAddressMode(TextureCoordinate coord) const
  4716. - const Color& GetBorderColor() const
  4717. - bool GetSRGB() const
  4718. - Texture* GetBackupTexture() const
  4719. - int GetMipsToSkip(int quality) const
  4720. - int GetLevelWidth(unsigned level) const
  4721. - int GetLevelHeight(unsigned level) const
  4722. - TextureUsage GetUsage() const
  4723. - unsigned GetDataSize(int width, int height) const
  4724. - unsigned GetRowDataSize(int width) const
  4725. Properties:
  4726. - unsigned format (readonly)
  4727. - bool compressed (readonly)
  4728. - unsigned levels (readonly)
  4729. - int width (readonly)
  4730. - int height (readonly)
  4731. - TextureFilterMode filterMode
  4732. - Color& borderColor
  4733. - bool sRGB
  4734. - Texture* backupTexture
  4735. - TextureUsage usage (readonly)
  4736. <a name="Class_Texture2D"></a>
  4737. ### Texture2D : Texture
  4738. Methods:
  4739. - Texture2D() (GC)
  4740. - Texture2D* new()
  4741. - void delete()
  4742. - bool SetSize(int width, int height, unsigned format, TextureUsage usage = TEXTURE_STATIC)
  4743. - bool SetData(Image* image, bool useAlpha = false)
  4744. - RenderSurface* GetRenderSurface() const
  4745. Properties:
  4746. - RenderSurface* renderSurface (readonly)
  4747. <a name="Class_TextureCube"></a>
  4748. ### TextureCube : Texture
  4749. Methods:
  4750. - RenderSurface* GetRenderSurface(CubeMapFace face) const
  4751. <a name="Class_TextureFrame"></a>
  4752. ### TextureFrame
  4753. Methods:
  4754. - TextureFrame() (GC)
  4755. - TextureFrame* new()
  4756. - void delete()
  4757. Properties:
  4758. - Rect uv
  4759. - float time
  4760. <a name="Class_Tile2D"></a>
  4761. ### Tile2D
  4762. Methods:
  4763. - int GetGid() const
  4764. - Sprite2D* GetSprite() const
  4765. - bool HasProperty(const String name) const
  4766. - const String GetProperty(const String name) const
  4767. Properties:
  4768. - int gid (readonly)
  4769. - Sprite2D* sprite (readonly)
  4770. <a name="Class_TileMap2D"></a>
  4771. ### TileMap2D : Component
  4772. Methods:
  4773. - void SetTmxFile(TmxFile2D* tmxFile)
  4774. - TmxFile2D* GetTmxFile() const
  4775. - const TileMapInfo2D& GetInfo() const
  4776. - unsigned GetNumLayers() const
  4777. - TileMapLayer2D* GetLayer(unsigned index) const
  4778. - Vector2 TileIndexToPosition(int x, int y) const
  4779. - bool PositionToTileIndex(const Vector2& position, int x = 0, int y = 0) const
  4780. Properties:
  4781. - TmxFile2D* tmxFile
  4782. - TileMapInfo2D& info (readonly)
  4783. - unsigned numLayers (readonly)
  4784. <a name="Class_TileMapInfo2D"></a>
  4785. ### TileMapInfo2D
  4786. Methods:
  4787. - float GetMapWidth() const
  4788. - float GetMapHeight() const
  4789. Properties:
  4790. - Orientation2D orientation
  4791. - int width
  4792. - int height
  4793. - float tileWidth
  4794. - float tileHeight
  4795. - float mapWidth (readonly)
  4796. - float mapHeight (readonly)
  4797. <a name="Class_TileMapLayer2D"></a>
  4798. ### TileMapLayer2D : Component
  4799. Methods:
  4800. - void SetDrawOrder(int drawOrder)
  4801. - void SetVisible(bool visible)
  4802. - int GetDrawOrder() const
  4803. - bool IsVisible() const
  4804. - bool HasProperty(const String name) const
  4805. - const String GetProperty(const String name) const
  4806. - TileMapLayerType2D GetLayerType() const
  4807. - int GetWidth() const
  4808. - int GetHeight() const
  4809. - Node* GetTileNode(int x, int y) const
  4810. - Tile2D* GetTile(int x, int y) const
  4811. - unsigned GetNumObjects() const
  4812. - TileMapObject2D* GetObject(unsigned index) const
  4813. - Node* GetObjectNode(unsigned index) const
  4814. - Node* GetImageNode() const
  4815. Properties:
  4816. - int drawOrder (readonly)
  4817. - bool visible (readonly)
  4818. - TileMapLayerType2D layerType (readonly)
  4819. - int width (readonly)
  4820. - int height (readonly)
  4821. - unsigned numObjects (readonly)
  4822. - Node* imageNode (readonly)
  4823. <a name="Class_TileMapObject2D"></a>
  4824. ### TileMapObject2D
  4825. Methods:
  4826. - TileMapObjectType2D GetObjectType() const
  4827. - const String GetName() const
  4828. - const String GetType() const
  4829. - const Vector2& GetPosition() const
  4830. - const Vector2& GetSize() const
  4831. - unsigned GetNumPoints() const
  4832. - const Vector2& GetPoint(unsigned index) const
  4833. - int GetTileGid() const
  4834. - Sprite2D* GetTileSprite() const
  4835. - bool HasProperty(const String name) const
  4836. - const String GetProperty(const String name) const
  4837. Properties:
  4838. - TileMapObjectType2D objectType (readonly)
  4839. - String name (readonly)
  4840. - String type (readonly)
  4841. - Vector2 position (readonly)
  4842. - Vector2 size (readonly)
  4843. - unsigned numPoints (readonly)
  4844. - int tileGid (readonly)
  4845. - Sprite2D* tileSprite (readonly)
  4846. <a name="Class_Time"></a>
  4847. ### Time : Object
  4848. Methods:
  4849. - unsigned GetFrameNumber() const
  4850. - float GetTimeStep() const
  4851. - unsigned GetTimerPeriod() const
  4852. - float GetElapsedTime()
  4853. - unsigned GetSystemTime()
  4854. - unsigned GetTimeSinceEpoch()
  4855. - String GetTimeStamp()
  4856. - void Sleep(unsigned mSec)
  4857. Properties:
  4858. - unsigned frameNumber (readonly)
  4859. - float timeStep (readonly)
  4860. - unsigned timerPeriod (readonly)
  4861. - float elapsedTime (readonly)
  4862. <a name="Class_TmxFile2D"></a>
  4863. ### TmxFile2D : Resource
  4864. <a name="Class_ToolTip"></a>
  4865. ### ToolTip : UIElement
  4866. Methods:
  4867. - ToolTip() (GC)
  4868. - ToolTip* new()
  4869. - void delete()
  4870. - void SetDelay(float delay)
  4871. - float GetDelay() const
  4872. Properties:
  4873. - float delay
  4874. <a name="Class_TouchState"></a>
  4875. ### TouchState
  4876. Methods:
  4877. - UIElement* GetTouchedElement()
  4878. Properties:
  4879. - int touchID
  4880. - IntVector2 position
  4881. - IntVector2 lastPosition
  4882. - IntVector2 delta
  4883. - float pressure
  4884. - UIElement* touchedElement (readonly)
  4885. <a name="Class_UI"></a>
  4886. ### UI : Object
  4887. Methods:
  4888. - void SetCursor(Cursor* cursor)
  4889. - void SetFocusElement(UIElement* element, bool byKey = false)
  4890. - bool SetModalElement(UIElement* modalElement, bool enable)
  4891. - void Clear()
  4892. - void Update(float timeStep)
  4893. - void RenderUpdate()
  4894. - void Render()
  4895. - void DebugDraw(UIElement* element)
  4896. - UIElement* LoadLayout(File* source, XMLFile* styleFile = 0)
  4897. - UIElement* LoadLayout(const String fileName, XMLFile* styleFile = 0)
  4898. - UIElement* LoadLayout(XMLFile* file, XMLFile* styleFile = 0)
  4899. - bool SaveLayout(Serializer& dest, UIElement* element)
  4900. - void SetClipboardText(const String text)
  4901. - void SetDoubleClickInterval(float interval)
  4902. - void SetDragBeginInterval(float interval)
  4903. - void SetDragBeginDistance(int pixels)
  4904. - void SetDefaultToolTipDelay(float delay)
  4905. - void SetMaxFontTextureSize(int size)
  4906. - void SetNonFocusedMouseWheel(bool nonFocusedMouseWheel)
  4907. - void SetUseSystemClipboard(bool enable)
  4908. - void SetUseScreenKeyboard(bool enable)
  4909. - void SetUseMutableGlyphs(bool enable)
  4910. - void SetForceAutoHint(bool enable)
  4911. - UIElement* GetRoot() const
  4912. - UIElement* GetRootModalElement() const
  4913. - Cursor* GetCursor() const
  4914. - IntVector2 GetCursorPosition() const
  4915. - UIElement* GetElementAt(const IntVector2& position, bool enabledOnly = true)
  4916. - UIElement* GetElementAt(int x, int y, bool enabledOnly = true)
  4917. - UIElement* GetFocusElement() const
  4918. - UIElement* GetFrontElement() const
  4919. - UIElement* GetDragElement() const
  4920. - const String GetClipboardText() const
  4921. - float GetDoubleClickInterval() const
  4922. - float GetDragBeginInterval() const
  4923. - int GetDragBeginDistance() const
  4924. - float GetDefaultToolTipDelay() const
  4925. - int GetMaxFontTextureSize() const
  4926. - bool IsNonFocusedMouseWheel() const
  4927. - bool GetUseSystemClipboard() const
  4928. - bool GetUseScreenKeyboard() const
  4929. - bool GetUseMutableGlyphs() const
  4930. - bool GetForceAutoHint() const
  4931. - bool HasModalElement() const
  4932. Properties:
  4933. - UIElement* root (readonly)
  4934. - UIElement* rootModalElement (readonly)
  4935. - Cursor* cursor
  4936. - IntVector2 cursorPosition (readonly)
  4937. - UIElement* focusElement (readonly)
  4938. - UIElement* frontElement (readonly)
  4939. - UIElement* dragElement (readonly)
  4940. - String clipboardText
  4941. - float doubleClickInterval
  4942. - float dragBeginInterval
  4943. - int dragBeginDistance
  4944. - float defaultToolTipDelay
  4945. - int maxFontTextureSize
  4946. - bool nonFocusedMouseWheel
  4947. - bool useSystemClipboard
  4948. - bool useScreenKeyboard
  4949. - bool useMutableGlyphs
  4950. - bool forceAutoHint
  4951. - bool modalElement (readonly)
  4952. <a name="Class_UIElement"></a>
  4953. ### UIElement : Animatable
  4954. Methods:
  4955. - UIElement() (GC)
  4956. - UIElement* new()
  4957. - void delete()
  4958. - const IntVector2& GetScreenPosition() const
  4959. - bool LoadXML(Deserializer& source)
  4960. - bool SaveXML(Serializer& dest) const
  4961. - bool LoadXML(const String fileName)
  4962. - bool SaveXML(const String fileName) const
  4963. - bool FilterAttributes(XMLElement& dest) const
  4964. - void SetName(const String name)
  4965. - void SetPosition(const IntVector2& position)
  4966. - void SetPosition(int x, int y)
  4967. - void SetSize(const IntVector2& size)
  4968. - void SetSize(int width, int height)
  4969. - void SetWidth(int width)
  4970. - void SetHeight(int height)
  4971. - void SetMinSize(const IntVector2& minSize)
  4972. - void SetMinSize(int width, int height)
  4973. - void SetMinWidth(int width)
  4974. - void SetMinHeight(int height)
  4975. - void SetMaxSize(const IntVector2& maxSize)
  4976. - void SetMaxSize(int width, int height)
  4977. - void SetMaxWidth(int width)
  4978. - void SetMaxHeight(int height)
  4979. - void SetFixedSize(const IntVector2& size)
  4980. - void SetFixedSize(int width, int height)
  4981. - void SetFixedWidth(int width)
  4982. - void SetFixedHeight(int height)
  4983. - void SetAlignment(HorizontalAlignment hAlign, VerticalAlignment vAlign)
  4984. - void SetHorizontalAlignment(HorizontalAlignment align)
  4985. - void SetVerticalAlignment(VerticalAlignment align)
  4986. - void SetClipBorder(const IntRect& rect)
  4987. - void SetColor(const Color& color)
  4988. - void SetColor(Corner corner, const Color& color)
  4989. - void SetPriority(int priority)
  4990. - void SetOpacity(float opacity)
  4991. - void SetBringToFront(bool enable)
  4992. - void SetBringToBack(bool enable)
  4993. - void SetClipChildren(bool enable)
  4994. - void SetSortChildren(bool enable)
  4995. - void SetUseDerivedOpacity(bool enable)
  4996. - void SetEnabled(bool enable)
  4997. - void SetDeepEnabled(bool enable)
  4998. - void ResetDeepEnabled()
  4999. - void SetEnabledRecursive(bool enable)
  5000. - void SetEditable(bool enable)
  5001. - void SetFocus(bool enable)
  5002. - void SetSelected(bool enable)
  5003. - void SetVisible(bool enable)
  5004. - void SetFocusMode(FocusMode mode)
  5005. - void SetDragDropMode(unsigned mode)
  5006. - bool SetStyle(const String styleName, XMLFile* file = 0)
  5007. - bool SetStyle(const XMLElement& element)
  5008. - bool SetStyleAuto(XMLFile* file = 0)
  5009. - void SetDefaultStyle(XMLFile* style)
  5010. - void SetLayout(LayoutMode mode, int spacing = 0)
  5011. - void SetLayout(LayoutMode mode, int spacing, const IntRect& border)
  5012. - void SetLayoutMode(LayoutMode mode)
  5013. - void SetLayoutSpacing(int spacing)
  5014. - void SetLayoutBorder(const IntRect& border)
  5015. - void SetIndent(int indent)
  5016. - void SetIndentSpacing(int indentSpacing)
  5017. - void UpdateLayout()
  5018. - void DisableLayoutUpdate()
  5019. - void EnableLayoutUpdate()
  5020. - void BringToFront()
  5021. - UIElement* CreateChild(const String type, const String name = String::EMPTY, unsigned index = M_MAX_UNSIGNED)
  5022. - void AddChild(UIElement* element)
  5023. - void InsertChild(unsigned index, UIElement* element)
  5024. - void RemoveChild(UIElement* element, unsigned index = 0)
  5025. - void RemoveChildAtIndex(unsigned index)
  5026. - void RemoveAllChildren()
  5027. - void Remove()
  5028. - unsigned FindChild(UIElement* element) const
  5029. - void SetParent(UIElement* parent, unsigned index = M_MAX_UNSIGNED)
  5030. - void SetVar(StringHash key, const Variant& value)
  5031. - void SetInternal(bool enable)
  5032. - void SetTraversalMode(TraversalMode traversalMode)
  5033. - void SetElementEventSender(bool flag)
  5034. - const String GetName() const
  5035. - const IntVector2& GetPosition() const
  5036. - const IntVector2& GetSize() const
  5037. - int GetWidth() const
  5038. - int GetHeight() const
  5039. - const IntVector2& GetMinSize() const
  5040. - int GetMinWidth() const
  5041. - int GetMinHeight() const
  5042. - const IntVector2& GetMaxSize() const
  5043. - int GetMaxWidth() const
  5044. - int GetMaxHeight() const
  5045. - bool IsFixedSize() const
  5046. - bool IsFixedWidth() const
  5047. - bool IsFixedHeight() const
  5048. - const IntVector2& GetChildOffset() const
  5049. - HorizontalAlignment GetHorizontalAlignment() const
  5050. - VerticalAlignment GetVerticalAlignment() const
  5051. - const IntRect& GetClipBorder() const
  5052. - const Color& GetColor(Corner corner) const
  5053. - int GetPriority() const
  5054. - float GetOpacity() const
  5055. - float GetDerivedOpacity() const
  5056. - bool GetBringToFront() const
  5057. - bool GetBringToBack() const
  5058. - bool GetClipChildren() const
  5059. - bool GetSortChildren() const
  5060. - bool GetUseDerivedOpacity() const
  5061. - bool HasFocus() const
  5062. - bool IsEnabled() const
  5063. - bool IsEnabledSelf() const
  5064. - bool IsEditable() const
  5065. - bool IsSelected() const
  5066. - bool IsVisible() const
  5067. - bool IsHovering() const
  5068. - bool IsInternal() const
  5069. - bool HasColorGradient() const
  5070. - FocusMode GetFocusMode() const
  5071. - unsigned GetDragDropMode() const
  5072. - const String GetAppliedStyle() const
  5073. - XMLFile* GetDefaultStyle(bool recursiveUp = true) const
  5074. - LayoutMode GetLayoutMode() const
  5075. - int GetLayoutSpacing() const
  5076. - const IntRect& GetLayoutBorder() const
  5077. - unsigned GetNumChildren(bool recursive = false) const
  5078. - UIElement* GetChild(const String name, bool recursive = false) const
  5079. - UIElement* GetChild(unsigned index) const
  5080. - UIElement* GetParent() const
  5081. - UIElement* GetRoot() const
  5082. - const Color& GetDerivedColor() const
  5083. - const Variant& GetVar(StringHash key) const
  5084. - const VariantMap& GetVars() const
  5085. - IntVector2 ScreenToElement(const IntVector2& screenPosition)
  5086. - IntVector2 ElementToScreen(const IntVector2& position)
  5087. - bool IsInside(IntVector2 position, bool isScreen)
  5088. - bool IsInsideCombined(IntVector2 position, bool isScreen)
  5089. - IntRect GetCombinedScreenRect()
  5090. - void SortChildren()
  5091. - int GetLayoutMinSize() const
  5092. - int GetIndent() const
  5093. - int GetIndentSpacing() const
  5094. - int GetIndentWidth() const
  5095. - void SetChildOffset(const IntVector2& offset)
  5096. - void SetHovering(bool enable)
  5097. - const Color& GetColor() const
  5098. - TraversalMode GetTraversalMode() const
  5099. - bool IsElementEventSender() const
  5100. - UIElement* GetElementEventSender() const
  5101. Properties:
  5102. - IntVector2& screenPosition (readonly)
  5103. - String name
  5104. - IntVector2& position
  5105. - IntVector2 size
  5106. - int width
  5107. - int height
  5108. - IntVector2 minSize
  5109. - int minWidth
  5110. - int minHeight
  5111. - IntVector2 maxSize
  5112. - int maxWidth
  5113. - int maxHeight
  5114. - bool fixedSize (readonly)
  5115. - bool fixedWidth (readonly)
  5116. - bool fixedHeight (readonly)
  5117. - IntVector2& childOffset
  5118. - HorizontalAlignment horizontalAlignment
  5119. - VerticalAlignment verticalAlignment
  5120. - IntRect clipBorder
  5121. - Color& color
  5122. - int priority
  5123. - float opacity
  5124. - float derivedOpacity (readonly)
  5125. - bool bringToFront
  5126. - bool bringToBack
  5127. - bool clipChildren
  5128. - bool sortChildren
  5129. - bool useDerivedOpacity
  5130. - bool focus
  5131. - bool enabled
  5132. - bool enabledSelf (readonly)
  5133. - bool editable
  5134. - bool selected
  5135. - bool visible
  5136. - bool hovering
  5137. - bool internal
  5138. - bool colorGradient (readonly)
  5139. - FocusMode focusMode
  5140. - unsigned dragDropMode
  5141. - String style
  5142. - XMLFile* defaultStyle
  5143. - LayoutMode layoutMode
  5144. - int layoutSpacing
  5145. - IntRect& layoutBorder
  5146. - unsigned numChildren (readonly)
  5147. - UIElement* parent
  5148. - UIElement* root (readonly)
  5149. - Color& derivedColor (readonly)
  5150. - IntRect combinedScreenRect (readonly)
  5151. - int layoutMinSize (readonly)
  5152. - int indent
  5153. - int indentSpacing
  5154. - int indentWidth (readonly)
  5155. - TraversalMode traversalMode
  5156. - bool elementEventSender
  5157. <a name="Class_ValueAnimation"></a>
  5158. ### ValueAnimation : Resource
  5159. Methods:
  5160. - ValueAnimation() (GC)
  5161. - ValueAnimation* new()
  5162. - void delete()
  5163. - void SetInterpolationMethod(InterpMethod method)
  5164. - void SetSplineTension(float tension)
  5165. - void SetValueType(VariantType valueType)
  5166. - bool SetKeyFrame(float time, const Variant& value)
  5167. - void SetEventFrame(float time, const StringHash& eventType)
  5168. - void SetEventFrame(float time, const StringHash& eventType, const VariantMap& eventData)
  5169. - InterpMethod GetInterpolationMethod() const
  5170. - float GetSplineTension() const
  5171. - VariantType GetValueType() const
  5172. Properties:
  5173. - InterpMethod interpolationMethod
  5174. - float splineTension
  5175. - VariantType valueType
  5176. <a name="Class_Variant"></a>
  5177. ### Variant
  5178. Methods:
  5179. - Variant() (GC)
  5180. - Variant* new()
  5181. - Variant(int value) (GC)
  5182. - Variant* new(int value)
  5183. - Variant(unsigned value) (GC)
  5184. - Variant* new(unsigned value)
  5185. - Variant(const StringHash& value) (GC)
  5186. - Variant* new(const StringHash& value)
  5187. - Variant(bool value) (GC)
  5188. - Variant* new(bool value)
  5189. - Variant(float value) (GC)
  5190. - Variant* new(float value)
  5191. - Variant(const Vector2& value) (GC)
  5192. - Variant* new(const Vector2& value)
  5193. - Variant(const Vector3& value) (GC)
  5194. - Variant* new(const Vector3& value)
  5195. - Variant(const Vector4& value) (GC)
  5196. - Variant* new(const Vector4& value)
  5197. - Variant(const Quaternion& value) (GC)
  5198. - Variant* new(const Quaternion& value)
  5199. - Variant(const Color& value) (GC)
  5200. - Variant* new(const Color& value)
  5201. - Variant(const String value) (GC)
  5202. - Variant* new(const String value)
  5203. - Variant(const char* value) (GC)
  5204. - Variant* new(const char* value)
  5205. - Variant(const ResourceRef& value) (GC)
  5206. - Variant* new(const ResourceRef& value)
  5207. - Variant(const ResourceRefList& value) (GC)
  5208. - Variant* new(const ResourceRefList& value)
  5209. - Variant(const IntRect& value) (GC)
  5210. - Variant* new(const IntRect& value)
  5211. - Variant(const IntVector2& value) (GC)
  5212. - Variant* new(const IntVector2& value)
  5213. - Variant(const Matrix3& value) (GC)
  5214. - Variant* new(const Matrix3& value)
  5215. - Variant(const Matrix3x4& value) (GC)
  5216. - Variant* new(const Matrix3x4& value)
  5217. - Variant(const Matrix4& value) (GC)
  5218. - Variant* new(const Matrix4& value)
  5219. - Variant(const String type, const String value) (GC)
  5220. - Variant* new(const String type, const String value)
  5221. - Variant(VariantType type, const String value) (GC)
  5222. - Variant* new(VariantType type, const String value)
  5223. - Variant(VariantType type, const char* value) (GC)
  5224. - Variant* new(VariantType type, const char* value)
  5225. - Variant(const Variant& value) (GC)
  5226. - Variant* new(const Variant& value)
  5227. - void delete()
  5228. - void Clear()
  5229. - bool operator==(const Variant& rhs) const
  5230. - bool operator==(int rhs) const
  5231. - bool operator==(unsigned rhs) const
  5232. - bool operator==(bool rhs) const
  5233. - bool operator==(float rhs) const
  5234. - bool operator==(const Vector2& rhs)
  5235. - bool operator==(const Vector3& rhs) const
  5236. - bool operator==(const Vector4& rhs) const
  5237. - bool operator==(const Quaternion& rhs) const
  5238. - bool operator==(const Color& rhs) const
  5239. - bool operator==(const String rhs) const
  5240. - bool operator==(const ResourceRef& rhs) const
  5241. - bool operator==(const ResourceRefList& rhs) const
  5242. - bool operator==(const IntRect& rhs) const
  5243. - bool operator==(const IntVector2& rhs) const
  5244. - bool operator==(const StringHash& rhs) const
  5245. - bool operator==(const Matrix3& rhs) const
  5246. - bool operator==(const Matrix3x4& rhs) const
  5247. - bool operator==(const Matrix4& rhs) const
  5248. - void SetInt(int value)
  5249. - void SetUint(unsigned value)
  5250. - void SetStringHash(const StringHash& value)
  5251. - void SetBool(bool value)
  5252. - void SetFloat(float value)
  5253. - void SetVector2(const Vector2& value)
  5254. - void SetVector3(const Vector3& value)
  5255. - void SetVector4(const Vector4& value)
  5256. - void SetQuaternion(const Quaternion& value)
  5257. - void SetColor(const Color& value)
  5258. - void SetString(const String value)
  5259. - void SetBuffer(const VectorBuffer& value)
  5260. - void SetResourceRef(const ResourceRef& value)
  5261. - void SetResourceRefList(const ResourceRefList& value)
  5262. - void SetIntRect(const IntRect& value)
  5263. - void SetIntVector2(const IntVector2& value)
  5264. - void SetMatrix3(const Matrix3& value)
  5265. - void SetMatrix3x4(const Matrix3x4& value)
  5266. - void SetMatrix4(const Matrix4& value)
  5267. - int GetInt() const
  5268. - int GetUInt() const
  5269. - StringHash GetStringHash()
  5270. - bool GetBool() const
  5271. - float GetFloat() const
  5272. - const Vector2& GetVector2() const
  5273. - const Vector3& GetVector3() const
  5274. - const Vector4& GetVector4() const
  5275. - const Quaternion& GetQuaternion() const
  5276. - const Color& GetColor() const
  5277. - const String GetString() const
  5278. - VectorBuffer GetBuffer() const
  5279. - const ResourceRef& GetResourceRef() const
  5280. - const ResourceRefList& GetResourceRefList() const
  5281. - const IntRect& GetIntRect() const
  5282. - const IntVector2& GetIntVector2() const
  5283. - const Matrix3& GetMatrix3() const
  5284. - const Matrix3x4& GetMatrix3x4() const
  5285. - const Matrix4& GetMatrix4() const
  5286. - VariantType GetType() const
  5287. - String GetTypeName() const
  5288. - String ToString() const
  5289. - bool IsZero() const
  5290. - bool IsEmpty() const
  5291. Properties:
  5292. - VariantType type (readonly)
  5293. - String typeName (readonly)
  5294. - bool zero (readonly)
  5295. - bool empty (readonly)
  5296. <a name="Class_VariantMap"></a>
  5297. ### VariantMap
  5298. Methods:
  5299. - VariantMap() (GC)
  5300. - VariantMap* new()
  5301. - void delete()
  5302. - void SetInt(const String key, int value)
  5303. - void SetUInt(const String key, unsigned value)
  5304. - void SetStringHash(const String key, const StringHash& value)
  5305. - void SetBool(const String key, bool value)
  5306. - void SetFloat(const String key, float value)
  5307. - void SetVector2(const String key, const Vector2 value)
  5308. - void SetVector3(const String key, const Vector3 value)
  5309. - void SetVector4(const String key, const Vector4 value)
  5310. - void SetQuaternion(const String key, const Quaternion value)
  5311. - void SetColor(const String key, const Color value)
  5312. - void SetString(const String key, const String value)
  5313. - void SetBuffer(const String key, const VectorBuffer& value)
  5314. - void SetResourceRef(const String key, const ResourceRef value)
  5315. - void SetResourceRefList(const String key, const ResourceRefList value)
  5316. - void SetIntRect(const String key, const IntRect value)
  5317. - void SetIntVector2(const String key, const IntVector2 value)
  5318. - void SetPtr(const String key, void* value)
  5319. - void SetMatrix3(const String key, const Matrix3 value)
  5320. - void SetMatrix3x4(const String key, const Matrix3x4 value)
  5321. - void SetMatrix4(const String key, const Matrix4 value)
  5322. - int GetInt(const String key)
  5323. - int GetUInt(const String key)
  5324. - StringHash GetStringHash(const String key)
  5325. - bool GetBool(const String key)
  5326. - float GetFloat(const String key)
  5327. - const Vector2& GetVector2(const String key)
  5328. - const Vector3& GetVector3(const String key)
  5329. - const Vector4& GetVector4(const String key)
  5330. - const Quaternion& GetQuaternion(const String key)
  5331. - const Color& GetColor(const String key)
  5332. - const String GetString(const String key)
  5333. - VectorBuffer GetBuffer(const String key)
  5334. - const ResourceRef& GetResourceRef(const String key)
  5335. - const ResourceRefList& GetResourceRefList(const String key)
  5336. - const IntRect& GetIntRect(const String key)
  5337. - const IntVector2& GetIntVector2(const String key)
  5338. - const void* GetPtr(const String type, const String key)
  5339. - const Matrix3& GetMatrix3(const String key)
  5340. - const Matrix3x4& GetMatrix3x4(const String key)
  5341. - const Matrix4& GetMatrix4(const String key)
  5342. <a name="Class_Vector2"></a>
  5343. ### Vector2
  5344. Methods:
  5345. - Vector2() (GC)
  5346. - Vector2* new()
  5347. - Vector2(const Vector2& vector) (GC)
  5348. - Vector2* new(const Vector2& vector)
  5349. - Vector2(float x, float y) (GC)
  5350. - Vector2* new(float x, float y)
  5351. - void delete()
  5352. - bool operator==(const Vector2& rhs) const
  5353. - Vector2 operator+(const Vector2& rhs) const
  5354. - Vector2 operator-() const
  5355. - Vector2 operator-(const Vector2& rhs) const
  5356. - Vector2 operator*(float rhs) const
  5357. - Vector2 operator*(const Vector2& rhs) const
  5358. - Vector2 operator/(float rhs) const
  5359. - Vector2 operator/(const Vector2& rhs) const
  5360. - Vector2 operator/(const Vector2& rhs) const
  5361. - void Normalize()
  5362. - float Length() const
  5363. - float LengthSquared() const
  5364. - float DotProduct(const Vector2& rhs) const
  5365. - float AbsDotProduct(const Vector2& rhs) const
  5366. - Vector2 Abs() const
  5367. - Vector2 Lerp(const Vector2& rhs, float t) const
  5368. - bool Equals(const Vector2& rhs) const
  5369. - bool IsNaN() const
  5370. - Vector2 Normalized() const
  5371. - String ToString() const
  5372. Properties:
  5373. - float x
  5374. - float y
  5375. - const Vector2 ZERO
  5376. - const Vector2 LEFT
  5377. - const Vector2 RIGHT
  5378. - const Vector2 UP
  5379. - const Vector2 DOWN
  5380. - const Vector2 ONE
  5381. <a name="Class_Vector3"></a>
  5382. ### Vector3
  5383. Methods:
  5384. - Vector3() (GC)
  5385. - Vector3* new()
  5386. - Vector3(const Vector3& vector) (GC)
  5387. - Vector3* new(const Vector3& vector)
  5388. - Vector3(const Vector2& vector, float z) (GC)
  5389. - Vector3* new(const Vector2& vector, float z)
  5390. - Vector3(const Vector2& vector) (GC)
  5391. - Vector3* new(const Vector2& vector)
  5392. - Vector3(float x, float y, float z) (GC)
  5393. - Vector3* new(float x, float y, float z)
  5394. - Vector3(float x, float y) (GC)
  5395. - Vector3* new(float x, float y)
  5396. - void delete()
  5397. - bool operator==(const Vector3& rhs) const
  5398. - Vector3 operator+(const Vector3& rhs) const
  5399. - Vector3 operator-() const
  5400. - Vector3 operator-(const Vector3& rhs) const
  5401. - Vector3 operator*(float rhs) const
  5402. - Vector3 operator*(const Vector3& rhs) const
  5403. - Vector3 operator/(float rhs) const
  5404. - Vector3 operator/(const Vector3& rhs) const
  5405. - void Normalize()
  5406. - float Length() const
  5407. - float LengthSquared() const
  5408. - float DotProduct(const Vector3& rhs) const
  5409. - float AbsDotProduct(const Vector3& rhs) const
  5410. - Vector3 CrossProduct(const Vector3& rhs) const
  5411. - Vector3 Abs() const
  5412. - Vector3 Lerp(const Vector3& rhs, float t) const
  5413. - bool Equals(const Vector3& rhs) const
  5414. - bool IsNaN() const
  5415. - float Angle(const Vector3& rhs) const
  5416. - Vector3 Normalized() const
  5417. - String ToString() const
  5418. Properties:
  5419. - float x
  5420. - float y
  5421. - float z
  5422. - const Vector3 ZERO
  5423. - const Vector3 LEFT
  5424. - const Vector3 RIGHT
  5425. - const Vector3 UP
  5426. - const Vector3 DOWN
  5427. - const Vector3 FORWARD
  5428. - const Vector3 BACK
  5429. - const Vector3 ONE
  5430. <a name="Class_Vector4"></a>
  5431. ### Vector4
  5432. Methods:
  5433. - Vector4() (GC)
  5434. - Vector4* new()
  5435. - Vector4(const Vector4& vector) (GC)
  5436. - Vector4* new(const Vector4& vector)
  5437. - Vector4(const Vector3& vector, float w) (GC)
  5438. - Vector4* new(const Vector3& vector, float w)
  5439. - Vector4(float x, float y, float z, float w) (GC)
  5440. - Vector4* new(float x, float y, float z, float w)
  5441. - void delete()
  5442. - bool operator==(const Vector4& rhs) const
  5443. - Vector4 operator+(const Vector4& rhs) const
  5444. - Vector4 operator-() const
  5445. - Vector4 operator-(const Vector4& rhs) const
  5446. - Vector4 operator*(float rhs) const
  5447. - Vector4 operator*(const Vector4& rhs) const
  5448. - Vector4 operator/(float rhs) const
  5449. - Vector4 operator/(const Vector4& rhs) const
  5450. - Vector4 operator/(const Vector4& rhs) const
  5451. - float DotProduct(const Vector4& rhs) const
  5452. - float AbsDotProduct(const Vector4& rhs) const
  5453. - Vector4 Abs() const
  5454. - Vector4 Lerp(const Vector4& rhs, float t) const
  5455. - bool Equals(const Vector4& rhs) const
  5456. - bool IsNaN() const
  5457. - String ToString() const
  5458. Properties:
  5459. - float x
  5460. - float y
  5461. - float z
  5462. - float w
  5463. - const Vector4 ZERO
  5464. - const Vector4 ONE
  5465. <a name="Class_VectorBuffer"></a>
  5466. ### VectorBuffer
  5467. Methods:
  5468. - VectorBuffer() (GC)
  5469. - VectorBuffer* new()
  5470. - VectorBuffer(Deserializer& source, unsigned size) (GC)
  5471. - VectorBuffer* new(Deserializer& source, unsigned size)
  5472. - void delete()
  5473. - void SetData(Deserializer& source, unsigned size)
  5474. - void Clear()
  5475. - void Resize(unsigned size)
  5476. - const void* GetData() const
  5477. - void* GetModifiableData()
  5478. - VectorBuffer Read(unsigned size)
  5479. - unsigned Seek(unsigned position)
  5480. - const String GetName() const
  5481. - unsigned GetChecksum()
  5482. - unsigned GetPosition() const
  5483. - unsigned GetSize() const
  5484. - bool IsEof() const
  5485. - int ReadInt()
  5486. - short ReadShort()
  5487. - char ReadByte()
  5488. - unsigned ReadUInt()
  5489. - short ReadUShort()
  5490. - char ReadUByte()
  5491. - bool ReadBool()
  5492. - float ReadFloat()
  5493. - IntRect ReadIntRect()
  5494. - IntVector2 ReadIntVector2()
  5495. - Rect ReadRect()
  5496. - Vector2 ReadVector2()
  5497. - Vector3 ReadVector3()
  5498. - Vector3 ReadPackedVector3(float maxAbsCoord)
  5499. - Vector4 ReadVector4()
  5500. - Quaternion ReadQuaternion()
  5501. - Quaternion ReadPackedQuaternion()
  5502. - Matrix3 ReadMatrix3()
  5503. - Matrix3x4 ReadMatrix3x4()
  5504. - Matrix4 ReadMatrix4()
  5505. - Color ReadColor()
  5506. - BoundingBox ReadBoundingBox()
  5507. - String ReadString()
  5508. - String ReadFileID()
  5509. - StringHash ReadStringHash()
  5510. - VectorBuffer ReadBuffer()
  5511. - ResourceRef ReadResourceRef()
  5512. - ResourceRefList ReadResourceRefList()
  5513. - Variant ReadVariant()
  5514. - Variant ReadVariant(VariantType type)
  5515. - VariantVector ReadVariantVector()
  5516. - VariantMap ReadVariantMap()
  5517. - unsigned ReadVLE()
  5518. - unsigned ReadNetID()
  5519. - String ReadLine()
  5520. - unsigned Write(const VectorBuffer& buffer)
  5521. - bool WriteInt(int value)
  5522. - bool WriteShort(short value)
  5523. - bool WriteByte(char value)
  5524. - bool WriteUInt(unsigned value)
  5525. - bool WriteUShort(short value)
  5526. - bool WriteUByte(char value)
  5527. - bool WriteBool(bool value)
  5528. - bool WriteFloat(float value)
  5529. - bool WriteIntRect(const IntRect& value)
  5530. - bool WriteIntVector2(const IntVector2& value)
  5531. - bool WriteRect(const Rect& value)
  5532. - bool WriteVector2(const Vector2& value)
  5533. - bool WriteVector3(const Vector3& value)
  5534. - bool WritePackedVector3(const Vector3& value, float maxAbsCoord)
  5535. - bool WriteVector4(const Vector4& value)
  5536. - bool WriteQuaternion(const Quaternion& value)
  5537. - bool WritePackedQuaternion(const Quaternion& value)
  5538. - bool WriteMatrix3(const Matrix3& value)
  5539. - bool WriteMatrix3x4(const Matrix3x4& value)
  5540. - bool WriteMatrix4(const Matrix4& value)
  5541. - bool WriteColor(const Color& value)
  5542. - bool WriteBoundingBox(const BoundingBox& value)
  5543. - bool WriteString(const String value)
  5544. - bool WriteFileID(const String value)
  5545. - bool WriteStringHash(const StringHash& value)
  5546. - bool WriteBuffer(const VectorBuffer& buffer)
  5547. - bool WriteResourceRef(const ResourceRef& value)
  5548. - bool WriteResourceRefList(const ResourceRefList& value)
  5549. - bool WriteVariant(const Variant& value)
  5550. - bool WriteVariantData(const Variant& value)
  5551. - bool WriteVariantVector(const VariantVector& value)
  5552. - bool WriteVariantMap(const VariantMap& value)
  5553. - bool WriteVLE(unsigned value)
  5554. - bool WriteNetID(unsigned value)
  5555. - bool WriteLine(const String value)
  5556. Properties:
  5557. - String name (readonly)
  5558. - unsigned checksum (readonly)
  5559. - unsigned position (readonly)
  5560. - unsigned size (readonly)
  5561. - bool eof (readonly)
  5562. <a name="Class_View3D"></a>
  5563. ### View3D : Window
  5564. Methods:
  5565. - View3D() (GC)
  5566. - View3D* new()
  5567. - void delete()
  5568. - void SetView(Scene* scene, Camera* camera)
  5569. - void SetFormat(unsigned format)
  5570. - void SetAutoUpdate(bool enable)
  5571. - void QueueUpdate()
  5572. - unsigned GetFormat() const
  5573. - bool GetAutoUpdate() const
  5574. - Scene* GetScene() const
  5575. - Node* GetCameraNode() const
  5576. - Texture2D* GetRenderTexture() const
  5577. - Texture2D* GetDepthTexture() const
  5578. - Viewport* GetViewport() const
  5579. Properties:
  5580. - unsigned format
  5581. - bool autoUpdate
  5582. <a name="Class_Viewport"></a>
  5583. ### Viewport
  5584. Methods:
  5585. - Viewport() (GC)
  5586. - Viewport* new()
  5587. - Viewport(Scene* scene, Camera* camera, RenderPath* renderPath = 0) (GC)
  5588. - Viewport* new(Scene* scene, Camera* camera, RenderPath* renderPath = 0)
  5589. - Viewport(Scene* scene, Camera* camera, const IntRect& rect, RenderPath* renderPath = 0) (GC)
  5590. - Viewport* new(Scene* scene, Camera* camera, const IntRect& rect, RenderPath* renderPath = 0)
  5591. - void delete()
  5592. - void SetScene(Scene* scene)
  5593. - void SetCamera(Camera* camera)
  5594. - void SetRect(const IntRect& rect)
  5595. - void SetRenderPath(RenderPath* path)
  5596. - void SetRenderPath(XMLFile* file)
  5597. - void SetDrawDebug(bool enable)
  5598. - Scene* GetScene() const
  5599. - Camera* GetCamera() const
  5600. - const IntRect& GetRect() const
  5601. - RenderPath* GetRenderPath() const
  5602. - bool GetDrawDebug() const
  5603. - Ray GetScreenRay(int x, int y) const
  5604. - IntVector2 WorldToScreenPoint(const Vector3& worldPos) const
  5605. - Vector3 ScreenToWorldPoint(int x, int y, float depth) const
  5606. Properties:
  5607. - Scene* scene
  5608. - Camera* camera
  5609. - IntRect& rect
  5610. - RenderPath* renderPath
  5611. - bool drawDebug
  5612. <a name="Class_Window"></a>
  5613. ### Window : BorderImage
  5614. Methods:
  5615. - Window() (GC)
  5616. - Window* new()
  5617. - void delete()
  5618. - void SetMovable(bool enable)
  5619. - void SetResizable(bool enable)
  5620. - void SetFixedWidthResizing(bool enable)
  5621. - void SetFixedHeightResizing(bool enable)
  5622. - void SetResizeBorder(const IntRect& rect)
  5623. - void SetModal(bool modal)
  5624. - void SetModalShadeColor(const Color& color)
  5625. - void SetModalFrameColor(const Color& color)
  5626. - void SetModalFrameSize(const IntVector2& size)
  5627. - void SetModalAutoDismiss(bool enable)
  5628. - bool IsMovable() const
  5629. - bool IsResizable() const
  5630. - bool GetFixedWidthResizing() const
  5631. - bool GetFixedHeightResizing() const
  5632. - const IntRect& GetResizeBorder() const
  5633. - bool IsModal() const
  5634. - const Color& GetModalShadeColor() const
  5635. - const Color& GetModalFrameColor() const
  5636. - const IntVector2& GetModalFrameSize() const
  5637. - bool GetModalAutoDismiss() const
  5638. Properties:
  5639. - bool movable
  5640. - bool resizable
  5641. - bool fixedWidthResizing
  5642. - bool fixedHeightResizing
  5643. - IntRect& resizeBorder
  5644. - bool modal
  5645. - Color& modalShadeColor
  5646. - Color& modalFrameColor
  5647. - IntVector2& modalFrameSize
  5648. - bool modalAutoDismiss
  5649. <a name="Class_XMLElement"></a>
  5650. ### XMLElement
  5651. Methods:
  5652. - XMLElement CreateChild(const String name)
  5653. - bool RemoveChild(const XMLElement& element)
  5654. - bool RemoveChild(const String name)
  5655. - bool RemoveChildren(const String name = String::EMPTY)
  5656. - bool RemoveAttribute(const String name = String::EMPTY)
  5657. - bool SetValue(const String value)
  5658. - bool SetAttribute(const String name, const String value)
  5659. - bool SetAttribute(const String value)
  5660. - bool SetBool(const String name, bool value)
  5661. - bool SetBoundingBox(const BoundingBox& value)
  5662. - bool SetColor(const String name, const Color& value)
  5663. - bool SetFloat(const String name, float value)
  5664. - bool SetUInt(const String name, unsigned value)
  5665. - bool SetInt(const String name, int value)
  5666. - bool SetIntRect(const String name, const IntRect& value)
  5667. - bool SetIntVector2(const String name, const IntVector2& value)
  5668. - bool SetRect(const String name, const Rect& value)
  5669. - bool SetQuaternion(const String name, const Quaternion& value)
  5670. - bool SetString(const String name, const String value)
  5671. - bool SetVariant(const Variant& value)
  5672. - bool SetVariantValue(const Variant& value)
  5673. - bool SetResourceRef(const ResourceRef& value)
  5674. - bool SetResourceRefList(const ResourceRefList& value)
  5675. - bool SetVector2(const String name, const Vector2& value)
  5676. - bool SetVector3(const String name, const Vector3& value)
  5677. - bool SetVector4(const String name, const Vector4& value)
  5678. - bool SetVectorVariant(const String name, const Variant& value)
  5679. - bool SetMatrix3(const String name, const Matrix3& value)
  5680. - bool SetMatrix3x4(const String name, const Matrix3x4& value)
  5681. - bool SetMatrix4(const String name, const Matrix4& value)
  5682. - bool IsNull() const
  5683. - bool NotNull() const
  5684. - bool operatorbool() const
  5685. - String GetName() const
  5686. - bool HasChild(const String name) const
  5687. - XMLElement GetChild(const String name = String::EMPTY) const
  5688. - XMLElement GetNext(const String name = String::EMPTY) const
  5689. - XMLElement GetParent() const
  5690. - unsigned GetNumAttributes() const
  5691. - bool HasAttribute(const String name) const
  5692. - String GetValue() const
  5693. - String GetAttribute(const String name = String::EMPTY) const
  5694. - String GetAttributeLower(const String name) const
  5695. - String GetAttributeUpper(const String name) const
  5696. - Vector<String> GetAttributeNames() const
  5697. - bool GetBool(const String name) const
  5698. - BoundingBox GetBoundingBox() const
  5699. - Color GetColor(const String name) const
  5700. - float GetFloat(const String name) const
  5701. - unsigned GetUInt(const String name) const
  5702. - int GetInt(const String name) const
  5703. - IntRect GetIntRect(const String name) const
  5704. - IntVector2 GetIntVector2(const String name) const
  5705. - Rect GetRect(const String name) const
  5706. - Quaternion GetQuaternion(const String name) const
  5707. - Variant GetVariant() const
  5708. - Variant GetVariantValue(VariantType type) const
  5709. - ResourceRef GetResourceRef() const
  5710. - ResourceRefList GetResourceRefList() const
  5711. - VariantMap GetVariantMap() const
  5712. - Vector2 GetVector2(const String name) const
  5713. - Vector3 GetVector3(const String name) const
  5714. - Vector4 GetVector4(const String name) const
  5715. - Vector4 GetVector(const String name) const
  5716. - Matrix3 GetMatrix3(const String name) const
  5717. - Matrix3x4 GetMatrix3x4(const String name) const
  5718. - Matrix4 GetMatrix4(const String name) const
  5719. - XMLFile* GetFile() const
  5720. Properties:
  5721. - const XMLElement EMPTY
  5722. - bool null (readonly)
  5723. - String name (readonly)
  5724. - XMLElement parent (readonly)
  5725. - String value (readonly)
  5726. - unsigned numAttributes (readonly)
  5727. - XMLFile* file (readonly)
  5728. <a name="Class_XMLFile"></a>
  5729. ### XMLFile : Resource
  5730. Methods:
  5731. - XMLFile() (GC)
  5732. - XMLFile* new()
  5733. - void delete()
  5734. - bool FromString(const String source)
  5735. - XMLElement CreateRoot(const String name = String::EMPTY)
  5736. - XMLElement GetRoot(const String name = String::EMPTY)
  5737. - String ToString() const
  5738. - void Patch(XMLFile* patchFile)
  5739. - void Patch(XMLElement patchElement)
  5740. <a name="Class_Zone"></a>
  5741. ### Zone : Drawable
  5742. Methods:
  5743. - void SetBoundingBox(const BoundingBox& box)
  5744. - void SetAmbientColor(const Color& color)
  5745. - void SetFogColor(const Color& color)
  5746. - void SetFogStart(float start)
  5747. - void SetFogEnd(float end)
  5748. - void SetFogHeight(float height)
  5749. - void SetFogHeightScale(float scale)
  5750. - void SetPriority(int priority)
  5751. - void SetHeightFog(bool enable)
  5752. - void SetOverride(bool enable)
  5753. - void SetAmbientGradient(bool enable)
  5754. - void SetZoneTexture(Texture* texture)
  5755. - const Matrix3x4& GetInverseWorldTransform() const
  5756. - const Color& GetAmbientColor() const
  5757. - const Color& GetAmbientStartColor()
  5758. - const Color& GetAmbientEndColor()
  5759. - const Color& GetFogColor() const
  5760. - float GetFogStart() const
  5761. - float GetFogEnd() const
  5762. - float GetFogHeight() const
  5763. - float GetFogHeightScale() const
  5764. - int GetPriority() const
  5765. - bool GetHeightFog() const
  5766. - bool GetOverride() const
  5767. - bool GetAmbientGradient() const
  5768. - Texture* GetZoneTexture() const
  5769. - bool IsInside(const Vector3& point) const
  5770. Properties:
  5771. - BoundingBox& boundingBox
  5772. - Matrix3x4& inverseWorldTransform (readonly)
  5773. - Color& ambientColor
  5774. - Color& ambientStartColor (readonly)
  5775. - Color& ambientEndColor (readonly)
  5776. - Color& fogColor
  5777. - float fogStart
  5778. - float fogEnd
  5779. - float fogHeight
  5780. - float fogHeightScale
  5781. - int priority
  5782. - bool heightFog
  5783. - bool override
  5784. - bool ambientGradient
  5785. - Texture* zoneTexture
  5786. \section LuaScriptAPI_Enums Enumerations
  5787. ### BlendMode
  5788. - int BLEND_REPLACE
  5789. - int BLEND_ADD
  5790. - int BLEND_MULTIPLY
  5791. - int BLEND_ALPHA
  5792. - int BLEND_ADDALPHA
  5793. - int BLEND_PREMULALPHA
  5794. - int BLEND_INVDESTALPHA
  5795. - int BLEND_SUBTRACT
  5796. - int BLEND_SUBTRACTALPHA
  5797. - int MAX_BLENDMODES
  5798. ### BodyType2D
  5799. - int BT_STATIC
  5800. - int BT_DYNAMIC
  5801. - int BT_KINEMATIC
  5802. ### CollisionEventMode
  5803. - int COLLISION_NEVER
  5804. - int COLLISION_ACTIVE
  5805. - int COLLISION_ALWAYS
  5806. ### CompareMode
  5807. - int CMP_ALWAYS
  5808. - int CMP_EQUAL
  5809. - int CMP_NOTEQUAL
  5810. - int CMP_LESS
  5811. - int CMP_LESSEQUAL
  5812. - int CMP_GREATER
  5813. - int CMP_GREATEREQUAL
  5814. - int MAX_COMPAREMODES
  5815. ### CompressedFormat
  5816. - int CF_NONE
  5817. - int CF_DXT1
  5818. - int CF_DXT3
  5819. - int CF_DXT5
  5820. - int CF_ETC1
  5821. - int CF_PVRTC_RGB_2BPP
  5822. - int CF_PVRTC_RGBA_2BPP
  5823. - int CF_PVRTC_RGB_4BPP
  5824. - int CF_PVRTC_RGBA_4BPP
  5825. ### ConstraintType
  5826. - int CONSTRAINT_POINT
  5827. - int CONSTRAINT_HINGE
  5828. - int CONSTRAINT_SLIDER
  5829. - int CONSTRAINT_CONETWIST
  5830. ### Corner
  5831. - int C_TOPLEFT
  5832. - int C_TOPRIGHT
  5833. - int C_BOTTOMLEFT
  5834. - int C_BOTTOMRIGHT
  5835. - int MAX_UIELEMENT_CORNERS
  5836. ### CreateMode
  5837. - int REPLICATED
  5838. - int LOCAL
  5839. ### CubeMapFace
  5840. - int FACE_POSITIVE_X
  5841. - int FACE_NEGATIVE_X
  5842. - int FACE_POSITIVE_Y
  5843. - int FACE_NEGATIVE_Y
  5844. - int FACE_POSITIVE_Z
  5845. - int FACE_NEGATIVE_Z
  5846. - int MAX_CUBEMAP_FACES
  5847. ### CullMode
  5848. - int CULL_NONE
  5849. - int CULL_CCW
  5850. - int CULL_CW
  5851. - int MAX_CULLMODES
  5852. ### CursorShape
  5853. - int CS_NORMAL
  5854. - int CS_RESIZEVERTICAL
  5855. - int CS_RESIZEDIAGONAL_TOPRIGHT
  5856. - int CS_RESIZEHORIZONTAL
  5857. - int CS_RESIZEDIAGONAL_TOPLEFT
  5858. - int CS_ACCEPTDROP
  5859. - int CS_REJECTDROP
  5860. - int CS_BUSY
  5861. - int CS_MAX_SHAPES
  5862. ### EmitterType
  5863. - int EMITTER_SPHERE
  5864. - int EMITTER_BOX
  5865. ### EmitterType2D
  5866. - int EMITTER_TYPE_GRAVITY
  5867. - int EMITTER_TYPE_RADIAL
  5868. ### FaceCameraMode
  5869. - int FC_NONE
  5870. - int FC_ROTATE_XYZ
  5871. - int FC_ROTATE_Y
  5872. - int FC_LOOKAT_XYZ
  5873. - int FC_LOOKAT_Y
  5874. ### FaceCameraMode
  5875. - int FC_NONE
  5876. - int FC_ROTATE_XYZ
  5877. - int FC_ROTATE_Y
  5878. - int FC_LOOKAT_XYZ
  5879. - int FC_LOOKAT_Y
  5880. ### FileMode
  5881. - int FILE_READ
  5882. - int FILE_WRITE
  5883. - int FILE_READWRITE
  5884. ### FillMode
  5885. - int FILL_SOLID
  5886. - int FILL_WIREFRAME
  5887. - int FILL_POINT
  5888. ### FocusMode
  5889. - int FM_NOTFOCUSABLE
  5890. - int FM_RESETFOCUS
  5891. - int FM_FOCUSABLE
  5892. - int FM_FOCUSABLE_DEFOCUSABLE
  5893. ### FrustumPlane
  5894. - int PLANE_NEAR
  5895. - int PLANE_LEFT
  5896. - int PLANE_RIGHT
  5897. - int PLANE_UP
  5898. - int PLANE_DOWN
  5899. - int PLANE_FAR
  5900. ### GeometryType
  5901. - int GEOM_STATIC
  5902. - int GEOM_SKINNED
  5903. - int GEOM_INSTANCED
  5904. - int GEOM_BILLBOARD
  5905. - int GEOM_STATIC_NOINSTANCING
  5906. - int MAX_GEOMETRYTYPES
  5907. ### HighlightMode
  5908. - int HM_NEVER
  5909. - int HM_FOCUS
  5910. - int HM_ALWAYS
  5911. ### HorizontalAlignment
  5912. - int HA_LEFT
  5913. - int HA_CENTER
  5914. - int HA_RIGHT
  5915. ### HttpRequestState
  5916. - int HTTP_INITIALIZING
  5917. - int HTTP_ERROR
  5918. - int HTTP_OPEN
  5919. - int HTTP_CLOSED
  5920. ### InterpMethod
  5921. - int IM_LINEAR
  5922. - int IM_SPLINE
  5923. ### InterpolationMode
  5924. - int BEZIER_CURVE
  5925. ### Intersection
  5926. - int OUTSIDE
  5927. - int INTERSECTS
  5928. - int INSIDE
  5929. ### JSONValueType
  5930. - int JSON_ANY
  5931. - int JSON_OBJECT
  5932. - int JSON_ARRAY
  5933. ### LayoutMode
  5934. - int LM_FREE
  5935. - int LM_HORIZONTAL
  5936. - int LM_VERTICAL
  5937. ### LightType
  5938. - int LIGHT_DIRECTIONAL
  5939. - int LIGHT_SPOT
  5940. - int LIGHT_POINT
  5941. ### LoadMode
  5942. - int LOAD_RESOURCES_ONLY
  5943. - int LOAD_SCENE
  5944. - int LOAD_SCENE_AND_RESOURCES
  5945. ### LockState
  5946. - int LOCK_NONE
  5947. - int LOCK_HARDWARE
  5948. - int LOCK_SHADOW
  5949. - int LOCK_SCRATCH
  5950. ### LoopMode2D
  5951. - int LM_DEFAULT
  5952. - int LM_FORCE_LOOPED
  5953. - int LM_FORCE_CLAMPED
  5954. ### Orientation
  5955. - int O_HORIZONTAL
  5956. - int O_VERTICAL
  5957. ### Orientation2D
  5958. - int O_ORTHOGONAL
  5959. - int O_ISOMETRIC
  5960. - int O_STAGGERED
  5961. ### PassLightingMode
  5962. - int LIGHTING_UNLIT
  5963. - int LIGHTING_PERVERTEX
  5964. - int LIGHTING_PERPIXEL
  5965. ### PrimitiveType
  5966. - int TRIANGLE_LIST
  5967. - int LINE_LIST
  5968. - int POINT_LIST
  5969. - int TRIANGLE_STRIP
  5970. - int LINE_STRIP
  5971. - int TRIANGLE_FAN
  5972. ### RayQueryLevel
  5973. - int RAY_AABB
  5974. - int RAY_OBB
  5975. - int RAY_TRIANGLE
  5976. ### RenderSurfaceUpdateMode
  5977. - int SURFACE_MANUALUPDATE
  5978. - int SURFACE_UPDATEVISIBLE
  5979. - int SURFACE_UPDATEALWAYS
  5980. ### ShaderParameterGroup
  5981. - int SP_FRAME
  5982. - int SP_CAMERA
  5983. - int SP_VIEWPORT
  5984. - int SP_ZONE
  5985. - int SP_LIGHT
  5986. - int SP_VERTEXLIGHTS
  5987. - int SP_MATERIAL
  5988. - int SP_OBJECTTRANSFORM
  5989. - int MAX_SHADER_PARAMETER_GROUPS
  5990. ### ShaderType
  5991. - int VS
  5992. - int PS
  5993. ### ShapeType
  5994. - int SHAPE_BOX
  5995. - int SHAPE_SPHERE
  5996. - int SHAPE_STATICPLANE
  5997. - int SHAPE_CYLINDER
  5998. - int SHAPE_CAPSULE
  5999. - int SHAPE_CONE
  6000. - int SHAPE_TRIANGLEMESH
  6001. - int SHAPE_CONVEXHULL
  6002. - int SHAPE_TERRAIN
  6003. ### SoundType
  6004. - int SOUND_EFFECT
  6005. - int SOUND_AMBIENT
  6006. - int SOUND_VOICE
  6007. - int SOUND_MUSIC
  6008. - int SOUND_MASTER
  6009. - int MAX_SOUND_TYPES
  6010. ### StencilOp
  6011. - int OP_KEEP
  6012. - int OP_ZERO
  6013. - int OP_REF
  6014. - int OP_INCR
  6015. - int OP_DECR
  6016. ### TextEffect
  6017. - int TE_NONE
  6018. - int TE_SHADOW
  6019. - int TE_STROKE
  6020. ### TextureAddressMode
  6021. - int ADDRESS_WRAP
  6022. - int ADDRESS_MIRROR
  6023. - int ADDRESS_CLAMP
  6024. - int ADDRESS_BORDER
  6025. - int MAX_ADDRESSMODES
  6026. ### TextureCoordinate
  6027. - int COORD_U
  6028. - int COORD_V
  6029. - int COORD_W
  6030. - int MAX_COORDS
  6031. ### TextureFilterMode
  6032. - int FILTER_NEAREST
  6033. - int FILTER_BILINEAR
  6034. - int FILTER_TRILINEAR
  6035. - int FILTER_ANISOTROPIC
  6036. - int FILTER_DEFAULT
  6037. - int MAX_FILTERMODES
  6038. ### TextureUnit
  6039. - int TU_DIFFUSE
  6040. - int TU_ALBEDOBUFFER
  6041. - int TU_NORMAL
  6042. - int TU_NORMALBUFFER
  6043. - int TU_SPECULAR
  6044. - int TU_EMISSIVE
  6045. - int TU_ENVIRONMENT
  6046. - int MAX_MATERIAL_TEXTURE_UNITS
  6047. - int TU_LIGHTRAMP
  6048. - int TU_LIGHTSHAPE
  6049. - int TU_SHADOWMAP
  6050. - int TU_FACESELECT
  6051. - int TU_INDIRECTION
  6052. - int TU_DEPTHBUFFER
  6053. - int TU_LIGHTBUFFER
  6054. - int TU_VOLUMEMAP
  6055. - int TU_ZONE
  6056. - int MAX_TEXTURE_UNITS
  6057. ### TextureUsage
  6058. - int TEXTURE_STATIC
  6059. - int TEXTURE_DYNAMIC
  6060. - int TEXTURE_RENDERTARGET
  6061. - int TEXTURE_DEPTHSTENCIL
  6062. ### TileMapLayerType2D
  6063. - int LT_TILE_LAYER
  6064. - int LT_OBJECT_GROUP
  6065. - int LT_IMAGE_LAYER
  6066. - int LT_INVALID
  6067. ### TileMapObjectType2D
  6068. - int OT_RECTANGLE
  6069. - int OT_ELLIPSE
  6070. - int OT_POLYGON
  6071. - int OT_POLYLINE
  6072. - int OT_TILE
  6073. - int OT_INVALID
  6074. ### TransformSpace
  6075. - int TS_LOCAL
  6076. - int TS_PARENT
  6077. - int TS_WORLD
  6078. ### TraversalMode
  6079. - int TM_BREADTH_FIRST
  6080. - int TM_DEPTH_FIRST
  6081. ### VariantType
  6082. - int VAR_NONE
  6083. - int VAR_INT
  6084. - int VAR_BOOL
  6085. - int VAR_FLOAT
  6086. - int VAR_VECTOR2
  6087. - int VAR_VECTOR3
  6088. - int VAR_VECTOR4
  6089. - int VAR_QUATERNION
  6090. - int VAR_COLOR
  6091. - int VAR_STRING
  6092. - int VAR_BUFFER
  6093. - int VAR_VOIDPTR
  6094. - int VAR_RESOURCEREF
  6095. - int VAR_RESOURCEREFLIST
  6096. - int VAR_VARIANTVECTOR
  6097. - int VAR_VARIANTMAP
  6098. - int VAR_INTRECT
  6099. - int VAR_INTVECTOR2
  6100. - int VAR_PTR
  6101. - int VAR_MATRIX3
  6102. - int VAR_MATRIX3X4
  6103. - int VAR_MATRIX4
  6104. - int MAX_VAR_TYPES
  6105. ### VertexElement
  6106. - int ELEMENT_POSITION
  6107. - int ELEMENT_NORMAL
  6108. - int ELEMENT_COLOR
  6109. - int ELEMENT_TEXCOORD1
  6110. - int ELEMENT_TEXCOORD2
  6111. - int ELEMENT_CUBETEXCOORD1
  6112. - int ELEMENT_CUBETEXCOORD2
  6113. - int ELEMENT_TANGENT
  6114. - int ELEMENT_BLENDWEIGHTS
  6115. - int ELEMENT_BLENDINDICES
  6116. - int ELEMENT_INSTANCEMATRIX1
  6117. - int ELEMENT_INSTANCEMATRIX2
  6118. - int ELEMENT_INSTANCEMATRIX3
  6119. - int MAX_VERTEX_ELEMENTS
  6120. ### VerticalAlignment
  6121. - int VA_TOP
  6122. - int VA_CENTER
  6123. - int VA_BOTTOM
  6124. ### WindowDragMode
  6125. - int DRAG_NONE
  6126. - int DRAG_MOVE
  6127. - int DRAG_RESIZE_TOPLEFT
  6128. - int DRAG_RESIZE_TOP
  6129. - int DRAG_RESIZE_TOPRIGHT
  6130. - int DRAG_RESIZE_RIGHT
  6131. - int DRAG_RESIZE_BOTTOMRIGHT
  6132. - int DRAG_RESIZE_BOTTOM
  6133. - int DRAG_RESIZE_BOTTOMLEFT
  6134. - int DRAG_RESIZE_LEFT
  6135. ### WrapMode
  6136. - int WM_LOOP
  6137. - int WM_ONCE
  6138. - int WM_CLAMP
  6139. \section LuaScriptAPI_GlobalFunctions Global functions
  6140. - float Abs(float value)
  6141. - int AbsInt(int value)
  6142. - float Acos(float x)
  6143. - String AddTrailingSlash(const String pathName)
  6144. - float Asin(float x)
  6145. - float Atan(float x)
  6146. - float Atan2(float y, float x)
  6147. - float Clamp(float value, float min, float max)
  6148. - int ClampInt(int value, int min, int max)
  6149. - VectorBuffer CompressVectorBuffer(VectorBuffer& src)
  6150. - float Cos(float angle)
  6151. - VectorBuffer DecompressVectorBuffer(VectorBuffer& src)
  6152. - bool Equals(float lhs, float rhs)
  6153. - void ErrorDialog(const String title, const String message)
  6154. - void ErrorExit(const String message = String::EMPTY, int exitCode = EXIT_FAILURE)
  6155. - const Vector<String>& GetArguments()
  6156. - Audio* GetAudio()
  6157. - ResourceCache* GetCache()
  6158. - Console* GetConsole()
  6159. - String GetConsoleInput()
  6160. - Context* GetContext()
  6161. - DebugHud* GetDebugHud()
  6162. - Engine* GetEngine()
  6163. - EventHandler* GetEventHandler() const
  6164. - Object* GetEventSender()
  6165. - bool GetExecuteConsoleCommands()
  6166. - String GetExtension(const String fullPath, bool lowercaseExtension = true)
  6167. - String GetFileName(const String fullPath)
  6168. - String GetFileNameAndExtension(const String fullPath, bool lowercaseExtension = false)
  6169. - FileSystem* GetFileSystem()
  6170. - Graphics* GetGraphics()
  6171. - Input* GetInput()
  6172. - String GetInternalPath(const String pathName)
  6173. - Log* GetLog()
  6174. - String GetNativePath(const String pathName)
  6175. - Network* GetNetwork()
  6176. - unsigned GetNumLogicalCPUs()
  6177. - unsigned GetNumPhysicalCPUs()
  6178. - String GetParentPath(const String pathName)
  6179. - String GetPath(const String fullPath)
  6180. - String GetPlatform()
  6181. - unsigned GetRandomSeed()
  6182. - Renderer* GetRenderer()
  6183. - Time* GetTime()
  6184. - UI* GetUI()
  6185. - bool IsAbsolutePath(const String pathName)
  6186. - bool IsAlpha(unsigned ch)
  6187. - bool IsDigit(unsigned ch)
  6188. - bool IsNaN(float value)
  6189. - bool IsPowerOfTwo(unsigned value)
  6190. - float Lerp(float lhs, float rhs, float t)
  6191. - float Max(float lhs, float rhs)
  6192. - int MaxInt(int lhs, int rhs)
  6193. - float Min(float lhs, float rhs)
  6194. - int MinInt(int lhs, int rhs)
  6195. - unsigned NextPowerOfTwo(unsigned value)
  6196. - void OpenConsoleWindow()
  6197. - void PrintLine(const String str, bool error = false)
  6198. - int Rand()
  6199. - float RandStandardNormal()
  6200. - float Random(float range)
  6201. - float Random(float min, float max)
  6202. - float Random()
  6203. - int RandomInt(int min, int max)
  6204. - int RandomInt(int range)
  6205. - float RandomNormal(float meanValue, float variance)
  6206. - String RemoveTrailingSlash(const String pathName)
  6207. - String ReplaceExtension(const String fullPath, const String newExtension)
  6208. - unsigned SDBMHash(unsigned hash, char c)
  6209. - void SendEvent(const String eventName, VariantMap& eventData)
  6210. - void SetExecuteConsoleCommands(bool enable)
  6211. - void SetRandomSeed(unsigned seed)
  6212. - float Sign(float value)
  6213. - float Sin(float angle)
  6214. - float SmoothStep(float lhs, float rhs, float t)
  6215. - void SubscribeToEvent(void* sender, const String eventName, const String functionName)
  6216. - void SubscribeToEvent(const String eventName, const String functionName)
  6217. - float Tan(float angle)
  6218. - bool ToBool(const String source)
  6219. - Color ToColor(const String source)
  6220. - float ToFloat(const String source)
  6221. - int ToInt(const String source)
  6222. - IntRect ToIntRect(const String source)
  6223. - IntVector2 ToIntVector2(const String source)
  6224. - unsigned ToLower(unsigned ch)
  6225. - Matrix3 ToMatrix3(const String source)
  6226. - Matrix3x4 ToMatrix3x4(const String source)
  6227. - Matrix4 ToMatrix4(const String source)
  6228. - Quaternion ToQuaternion(const String source)
  6229. - Rect ToRect(const String source)
  6230. - String ToString(void* value)
  6231. - String ToStringHex(unsigned value)
  6232. - unsigned ToUInt(const String source)
  6233. - unsigned ToUpper(unsigned ch)
  6234. - Vector2 ToVector2(const String source)
  6235. - Vector3 ToVector3(const String source)
  6236. - Vector4 ToVector4(const String source, bool allowMissingCoords = false)
  6237. - void UnsubscribeFromAllEvents()
  6238. - void UnsubscribeFromEvent(void* sender, const String eventName, const String functionName = String::EMPTY)
  6239. - void UnsubscribeFromEvent(const String eventName, const String functionName = String::EMPTY)
  6240. - void UnsubscribeFromEvents(void* sender)
  6241. \section LuaScriptAPI_GlobalProperties Global properties
  6242. - Audio* audio (readonly)
  6243. - ResourceCache* cache (readonly)
  6244. - Console* console (readonly)
  6245. - DebugHud* debugHud (readonly)
  6246. - Engine* engine (readonly)
  6247. - FileSystem* fileSystem (readonly)
  6248. - Graphics* graphics (readonly)
  6249. - Input* input (readonly)
  6250. - Log* log (readonly)
  6251. - Network* network (readonly)
  6252. - Renderer* renderer (readonly)
  6253. - Time* time (readonly)
  6254. - UI* ui (readonly)
  6255. \section LuaScriptAPI_GlobalConstants Global constants
  6256. - float ANIMATION_LOD_BASESCALE
  6257. - char CHANNEL_POSITION
  6258. - char CHANNEL_ROTATION
  6259. - char CHANNEL_SCALE
  6260. - unsigned CLEAR_COLOR
  6261. - unsigned CLEAR_DEPTH
  6262. - unsigned CLEAR_STENCIL
  6263. - int CONTROLLER_AXIS_LEFTX
  6264. - int CONTROLLER_AXIS_LEFTY
  6265. - int CONTROLLER_AXIS_RIGHTX
  6266. - int CONTROLLER_AXIS_RIGHTY
  6267. - int CONTROLLER_AXIS_TRIGGERLEFT
  6268. - int CONTROLLER_AXIS_TRIGGERRIGHT
  6269. - int CONTROLLER_BUTTON_A
  6270. - int CONTROLLER_BUTTON_B
  6271. - int CONTROLLER_BUTTON_BACK
  6272. - int CONTROLLER_BUTTON_DPAD_DOWN
  6273. - int CONTROLLER_BUTTON_DPAD_LEFT
  6274. - int CONTROLLER_BUTTON_DPAD_RIGHT
  6275. - int CONTROLLER_BUTTON_DPAD_UP
  6276. - int CONTROLLER_BUTTON_GUIDE
  6277. - int CONTROLLER_BUTTON_LEFTSHOULDER
  6278. - int CONTROLLER_BUTTON_LEFTSTICK
  6279. - int CONTROLLER_BUTTON_RIGHTSHOULDER
  6280. - int CONTROLLER_BUTTON_RIGHTSTICK
  6281. - int CONTROLLER_BUTTON_START
  6282. - int CONTROLLER_BUTTON_X
  6283. - int CONTROLLER_BUTTON_Y
  6284. - unsigned DD_DISABLED
  6285. - unsigned DD_SOURCE
  6286. - unsigned DD_SOURCE_AND_TARGET
  6287. - unsigned DD_TARGET
  6288. - unsigned DEBUGHUD_SHOW_ALL
  6289. - unsigned DEBUGHUD_SHOW_MODE
  6290. - unsigned DEBUGHUD_SHOW_NONE
  6291. - unsigned DEBUGHUD_SHOW_PROFILER
  6292. - unsigned DEBUGHUD_SHOW_STATS
  6293. - unsigned DEFAULT_LIGHTMASK
  6294. - unsigned DEFAULT_SHADOWMASK
  6295. - unsigned DEFAULT_VIEWMASK
  6296. - unsigned DEFAULT_ZONEMASK
  6297. - unsigned DRAWABLE_ANY
  6298. - unsigned DRAWABLE_GEOMETRY
  6299. - unsigned DRAWABLE_LIGHT
  6300. - unsigned DRAWABLE_PROXYGEOMETRY
  6301. - unsigned DRAWABLE_ZONE
  6302. - unsigned FIRST_LOCAL_ID
  6303. - unsigned FIRST_REPLICATED_ID
  6304. - int HAT_CENTER
  6305. - int HAT_DOWN
  6306. - int HAT_LEFT
  6307. - int HAT_RIGHT
  6308. - int HAT_UP
  6309. - int KEY_0
  6310. - int KEY_1
  6311. - int KEY_2
  6312. - int KEY_3
  6313. - int KEY_4
  6314. - int KEY_5
  6315. - int KEY_6
  6316. - int KEY_7
  6317. - int KEY_8
  6318. - int KEY_9
  6319. - int KEY_A
  6320. - int KEY_ALT
  6321. - int KEY_APPLICATION
  6322. - int KEY_B
  6323. - int KEY_BACKSPACE
  6324. - int KEY_C
  6325. - int KEY_CAPSLOCK
  6326. - int KEY_CTRL
  6327. - int KEY_D
  6328. - int KEY_DELETE
  6329. - int KEY_DOWN
  6330. - int KEY_E
  6331. - int KEY_END
  6332. - int KEY_ESC
  6333. - int KEY_F
  6334. - int KEY_F1
  6335. - int KEY_F10
  6336. - int KEY_F11
  6337. - int KEY_F12
  6338. - int KEY_F13
  6339. - int KEY_F14
  6340. - int KEY_F15
  6341. - int KEY_F16
  6342. - int KEY_F17
  6343. - int KEY_F18
  6344. - int KEY_F19
  6345. - int KEY_F2
  6346. - int KEY_F20
  6347. - int KEY_F21
  6348. - int KEY_F22
  6349. - int KEY_F23
  6350. - int KEY_F24
  6351. - int KEY_F3
  6352. - int KEY_F4
  6353. - int KEY_F5
  6354. - int KEY_F6
  6355. - int KEY_F7
  6356. - int KEY_F8
  6357. - int KEY_F9
  6358. - int KEY_G
  6359. - int KEY_GUI
  6360. - int KEY_H
  6361. - int KEY_HOME
  6362. - int KEY_I
  6363. - int KEY_INSERT
  6364. - int KEY_J
  6365. - int KEY_K
  6366. - int KEY_KP_0
  6367. - int KEY_KP_1
  6368. - int KEY_KP_2
  6369. - int KEY_KP_3
  6370. - int KEY_KP_4
  6371. - int KEY_KP_5
  6372. - int KEY_KP_6
  6373. - int KEY_KP_7
  6374. - int KEY_KP_8
  6375. - int KEY_KP_9
  6376. - int KEY_KP_DIVIDE
  6377. - int KEY_KP_ENTER
  6378. - int KEY_KP_MINUS
  6379. - int KEY_KP_MULTIPLY
  6380. - int KEY_KP_PERIOD
  6381. - int KEY_KP_PLUS
  6382. - int KEY_L
  6383. - int KEY_LALT
  6384. - int KEY_LCTRL
  6385. - int KEY_LEFT
  6386. - int KEY_LGUI
  6387. - int KEY_LSHIFT
  6388. - int KEY_M
  6389. - int KEY_N
  6390. - int KEY_NUMLOCKCLEAR
  6391. - int KEY_O
  6392. - int KEY_P
  6393. - int KEY_PAGEDOWN
  6394. - int KEY_PAGEUP
  6395. - int KEY_PAUSE
  6396. - int KEY_PRINTSCREEN
  6397. - int KEY_Q
  6398. - int KEY_R
  6399. - int KEY_RALT
  6400. - int KEY_RCTRL
  6401. - int KEY_RETURN
  6402. - int KEY_RETURN2
  6403. - int KEY_RGUI
  6404. - int KEY_RIGHT
  6405. - int KEY_RSHIFT
  6406. - int KEY_S
  6407. - int KEY_SCROLLLOCK
  6408. - int KEY_SELECT
  6409. - int KEY_SHIFT
  6410. - int KEY_SPACE
  6411. - int KEY_T
  6412. - int KEY_TAB
  6413. - int KEY_U
  6414. - int KEY_UP
  6415. - int KEY_V
  6416. - int KEY_W
  6417. - int KEY_X
  6418. - int KEY_Y
  6419. - int KEY_Z
  6420. - unsigned LAST_LOCAL_ID
  6421. - unsigned LAST_REPLICATED_ID
  6422. - int LOG_DEBUG
  6423. - int LOG_ERROR
  6424. - int LOG_INFO
  6425. - int LOG_NONE
  6426. - int LOG_WARNING
  6427. - int MAX_VERTEX_LIGHTS
  6428. - int MOUSEB_LEFT
  6429. - int MOUSEB_MIDDLE
  6430. - int MOUSEB_RIGHT
  6431. - float M_DEGTORAD
  6432. - float M_DEGTORAD_2
  6433. - float M_EPSILON
  6434. - float M_HALF_PI
  6435. - float M_INFINITY
  6436. - float M_LARGE_EPSILON
  6437. - float M_LARGE_VALUE
  6438. - float M_MAX_FOV
  6439. - int M_MAX_INT
  6440. - unsigned M_MAX_UNSIGNED
  6441. - int M_MIN_INT
  6442. - float M_MIN_NEARCLIP
  6443. - unsigned M_MIN_UNSIGNED
  6444. - float M_PI
  6445. - float M_RADTODEG
  6446. - unsigned NUM_FRUSTUM_PLANES
  6447. - unsigned NUM_FRUSTUM_VERTICES
  6448. - float PIXEL_SIZE
  6449. - int QUALITY_HIGH
  6450. - int QUALITY_LOW
  6451. - int QUALITY_MAX
  6452. - int QUALITY_MEDIUM
  6453. - int QUAL_ALT
  6454. - int QUAL_ANY
  6455. - int QUAL_CTRL
  6456. - int QUAL_SHIFT
  6457. - int SCANCODE_0
  6458. - int SCANCODE_1
  6459. - int SCANCODE_2
  6460. - int SCANCODE_3
  6461. - int SCANCODE_4
  6462. - int SCANCODE_5
  6463. - int SCANCODE_6
  6464. - int SCANCODE_7
  6465. - int SCANCODE_8
  6466. - int SCANCODE_9
  6467. - int SCANCODE_A
  6468. - int SCANCODE_AC_BACK
  6469. - int SCANCODE_AC_BOOKMARKS
  6470. - int SCANCODE_AC_FORWARD
  6471. - int SCANCODE_AC_HOME
  6472. - int SCANCODE_AC_REFRESH
  6473. - int SCANCODE_AC_SEARCH
  6474. - int SCANCODE_AC_STOP
  6475. - int SCANCODE_AGAIN
  6476. - int SCANCODE_ALT
  6477. - int SCANCODE_ALTERASE
  6478. - int SCANCODE_APOSTROPHE
  6479. - int SCANCODE_APP1
  6480. - int SCANCODE_APP2
  6481. - int SCANCODE_APPLICATION
  6482. - int SCANCODE_AUDIOMUTE
  6483. - int SCANCODE_AUDIONEXT
  6484. - int SCANCODE_AUDIOPLAY
  6485. - int SCANCODE_AUDIOPREV
  6486. - int SCANCODE_AUDIOSTOP
  6487. - int SCANCODE_B
  6488. - int SCANCODE_BACKSLASH
  6489. - int SCANCODE_BACKSPACE
  6490. - int SCANCODE_BRIGHTNESSDOWN
  6491. - int SCANCODE_BRIGHTNESSUP
  6492. - int SCANCODE_C
  6493. - int SCANCODE_CALCULATOR
  6494. - int SCANCODE_CANCEL
  6495. - int SCANCODE_CAPSLOCK
  6496. - int SCANCODE_CLEAR
  6497. - int SCANCODE_CLEARAGAIN
  6498. - int SCANCODE_COMMA
  6499. - int SCANCODE_COMPUTER
  6500. - int SCANCODE_COPY
  6501. - int SCANCODE_CRSEL
  6502. - int SCANCODE_CTRL
  6503. - int SCANCODE_CURRENCYSUBUNIT
  6504. - int SCANCODE_CURRENCYUNIT
  6505. - int SCANCODE_CUT
  6506. - int SCANCODE_D
  6507. - int SCANCODE_DECIMALSEPARATOR
  6508. - int SCANCODE_DELETE
  6509. - int SCANCODE_DISPLAYSWITCH
  6510. - int SCANCODE_DOWN
  6511. - int SCANCODE_E
  6512. - int SCANCODE_EJECT
  6513. - int SCANCODE_END
  6514. - int SCANCODE_EQUALS
  6515. - int SCANCODE_ESCAPE
  6516. - int SCANCODE_EXECUTE
  6517. - int SCANCODE_EXSEL
  6518. - int SCANCODE_F
  6519. - int SCANCODE_F1
  6520. - int SCANCODE_F10
  6521. - int SCANCODE_F11
  6522. - int SCANCODE_F12
  6523. - int SCANCODE_F13
  6524. - int SCANCODE_F14
  6525. - int SCANCODE_F15
  6526. - int SCANCODE_F16
  6527. - int SCANCODE_F17
  6528. - int SCANCODE_F18
  6529. - int SCANCODE_F19
  6530. - int SCANCODE_F2
  6531. - int SCANCODE_F20
  6532. - int SCANCODE_F21
  6533. - int SCANCODE_F22
  6534. - int SCANCODE_F23
  6535. - int SCANCODE_F24
  6536. - int SCANCODE_F3
  6537. - int SCANCODE_F4
  6538. - int SCANCODE_F5
  6539. - int SCANCODE_F6
  6540. - int SCANCODE_F7
  6541. - int SCANCODE_F8
  6542. - int SCANCODE_F9
  6543. - int SCANCODE_FIND
  6544. - int SCANCODE_G
  6545. - int SCANCODE_GRAVE
  6546. - int SCANCODE_GUI
  6547. - int SCANCODE_H
  6548. - int SCANCODE_HELP
  6549. - int SCANCODE_HOME
  6550. - int SCANCODE_I
  6551. - int SCANCODE_INSERT
  6552. - int SCANCODE_INTERNATIONAL1
  6553. - int SCANCODE_INTERNATIONAL2
  6554. - int SCANCODE_INTERNATIONAL3
  6555. - int SCANCODE_INTERNATIONAL4
  6556. - int SCANCODE_INTERNATIONAL5
  6557. - int SCANCODE_INTERNATIONAL6
  6558. - int SCANCODE_INTERNATIONAL7
  6559. - int SCANCODE_INTERNATIONAL8
  6560. - int SCANCODE_INTERNATIONAL9
  6561. - int SCANCODE_J
  6562. - int SCANCODE_K
  6563. - int SCANCODE_KBDILLUMDOWN
  6564. - int SCANCODE_KBDILLUMTOGGLE
  6565. - int SCANCODE_KBDILLUMUP
  6566. - int SCANCODE_KP_0
  6567. - int SCANCODE_KP_00
  6568. - int SCANCODE_KP_000
  6569. - int SCANCODE_KP_1
  6570. - int SCANCODE_KP_2
  6571. - int SCANCODE_KP_3
  6572. - int SCANCODE_KP_4
  6573. - int SCANCODE_KP_5
  6574. - int SCANCODE_KP_6
  6575. - int SCANCODE_KP_7
  6576. - int SCANCODE_KP_8
  6577. - int SCANCODE_KP_9
  6578. - int SCANCODE_KP_A
  6579. - int SCANCODE_KP_AMPERSAND
  6580. - int SCANCODE_KP_AT
  6581. - int SCANCODE_KP_B
  6582. - int SCANCODE_KP_BACKSPACE
  6583. - int SCANCODE_KP_BINARY
  6584. - int SCANCODE_KP_C
  6585. - int SCANCODE_KP_CLEAR
  6586. - int SCANCODE_KP_CLEARENTRY
  6587. - int SCANCODE_KP_COLON
  6588. - int SCANCODE_KP_COMMA
  6589. - int SCANCODE_KP_D
  6590. - int SCANCODE_KP_DBLAMPERSAND
  6591. - int SCANCODE_KP_DBLVERTICALBAR
  6592. - int SCANCODE_KP_DECIMAL
  6593. - int SCANCODE_KP_DIVIDE
  6594. - int SCANCODE_KP_E
  6595. - int SCANCODE_KP_ENTER
  6596. - int SCANCODE_KP_EQUALS
  6597. - int SCANCODE_KP_EQUALSAS400
  6598. - int SCANCODE_KP_EXCLAM
  6599. - int SCANCODE_KP_F
  6600. - int SCANCODE_KP_GREATER
  6601. - int SCANCODE_KP_HASH
  6602. - int SCANCODE_KP_HEXADECIMAL
  6603. - int SCANCODE_KP_LEFTBRACE
  6604. - int SCANCODE_KP_LEFTPAREN
  6605. - int SCANCODE_KP_LESS
  6606. - int SCANCODE_KP_MEMADD
  6607. - int SCANCODE_KP_MEMCLEAR
  6608. - int SCANCODE_KP_MEMDIVIDE
  6609. - int SCANCODE_KP_MEMMULTIPLY
  6610. - int SCANCODE_KP_MEMRECALL
  6611. - int SCANCODE_KP_MEMSTORE
  6612. - int SCANCODE_KP_MEMSUBTRACT
  6613. - int SCANCODE_KP_MINUS
  6614. - int SCANCODE_KP_MULTIPLY
  6615. - int SCANCODE_KP_OCTAL
  6616. - int SCANCODE_KP_PERCENT
  6617. - int SCANCODE_KP_PERIOD
  6618. - int SCANCODE_KP_PLUS
  6619. - int SCANCODE_KP_PLUSMINUS
  6620. - int SCANCODE_KP_POWER
  6621. - int SCANCODE_KP_RIGHTBRACE
  6622. - int SCANCODE_KP_RIGHTPAREN
  6623. - int SCANCODE_KP_SPACE
  6624. - int SCANCODE_KP_TAB
  6625. - int SCANCODE_KP_VERTICALBAR
  6626. - int SCANCODE_KP_XOR
  6627. - int SCANCODE_L
  6628. - int SCANCODE_LALT
  6629. - int SCANCODE_LANG1
  6630. - int SCANCODE_LANG2
  6631. - int SCANCODE_LANG3
  6632. - int SCANCODE_LANG4
  6633. - int SCANCODE_LANG5
  6634. - int SCANCODE_LANG6
  6635. - int SCANCODE_LANG7
  6636. - int SCANCODE_LANG8
  6637. - int SCANCODE_LANG9
  6638. - int SCANCODE_LCTRL
  6639. - int SCANCODE_LEFT
  6640. - int SCANCODE_LEFTBRACKET
  6641. - int SCANCODE_LGUI
  6642. - int SCANCODE_LSHIFT
  6643. - int SCANCODE_M
  6644. - int SCANCODE_MAIL
  6645. - int SCANCODE_MEDIASELECT
  6646. - int SCANCODE_MENU
  6647. - int SCANCODE_MINUS
  6648. - int SCANCODE_MODE
  6649. - int SCANCODE_MUTE
  6650. - int SCANCODE_N
  6651. - int SCANCODE_NONUSBACKSLASH
  6652. - int SCANCODE_NONUSHASH
  6653. - int SCANCODE_NUMLOCKCLEAR
  6654. - int SCANCODE_O
  6655. - int SCANCODE_OPER
  6656. - int SCANCODE_OUT
  6657. - int SCANCODE_P
  6658. - int SCANCODE_PAGEDOWN
  6659. - int SCANCODE_PAGEUP
  6660. - int SCANCODE_PASTE
  6661. - int SCANCODE_PAUSE
  6662. - int SCANCODE_PERIOD
  6663. - int SCANCODE_POWER
  6664. - int SCANCODE_PRINTSCREEN
  6665. - int SCANCODE_PRIOR
  6666. - int SCANCODE_Q
  6667. - int SCANCODE_R
  6668. - int SCANCODE_RALT
  6669. - int SCANCODE_RCTRL
  6670. - int SCANCODE_RETURN
  6671. - int SCANCODE_RETURN2
  6672. - int SCANCODE_RGUI
  6673. - int SCANCODE_RIGHT
  6674. - int SCANCODE_RIGHTBRACKET
  6675. - int SCANCODE_RSHIFT
  6676. - int SCANCODE_S
  6677. - int SCANCODE_SCROLLLOCK
  6678. - int SCANCODE_SELECT
  6679. - int SCANCODE_SEMICOLON
  6680. - int SCANCODE_SEPARATOR
  6681. - int SCANCODE_SHIFT
  6682. - int SCANCODE_SLASH
  6683. - int SCANCODE_SLEEP
  6684. - int SCANCODE_SPACE
  6685. - int SCANCODE_STOP
  6686. - int SCANCODE_SYSREQ
  6687. - int SCANCODE_T
  6688. - int SCANCODE_TAB
  6689. - int SCANCODE_THOUSANDSSEPARATOR
  6690. - int SCANCODE_U
  6691. - int SCANCODE_UNDO
  6692. - int SCANCODE_UNKNOWN
  6693. - int SCANCODE_UP
  6694. - int SCANCODE_V
  6695. - int SCANCODE_VOLUMEDOWN
  6696. - int SCANCODE_VOLUMEUP
  6697. - int SCANCODE_W
  6698. - int SCANCODE_WWW
  6699. - int SCANCODE_X
  6700. - int SCANCODE_Y
  6701. - int SCANCODE_Z
  6702. - unsigned SCAN_DIRS
  6703. - unsigned SCAN_FILES
  6704. - unsigned SCAN_HIDDEN
  6705. - int SHADOWQUALITY_HIGH_16BIT
  6706. - int SHADOWQUALITY_HIGH_24BIT
  6707. - int SHADOWQUALITY_LOW_16BIT
  6708. - int SHADOWQUALITY_LOW_24BIT
  6709. - unsigned VO_DISABLE_OCCLUSION
  6710. - unsigned VO_DISABLE_SHADOWS
  6711. - unsigned VO_LOW_MATERIAL_QUALITY
  6712. - unsigned VO_NONE
  6713. */
  6714. }