LuaScriptAPI.dox 265 KB

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