LuaScriptAPI.dox 190 KB

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