LuaScriptAPI.dox 233 KB

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