LuaScriptAPI.dox 248 KB

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