LuaScriptAPI.dox 268 KB

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