LuaScriptAPI.dox 218 KB

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