LuaScriptAPI.dox 257 KB

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