LuaScriptAPI.dox 234 KB

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