LuaScriptAPI.dox 189 KB

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