LuaScriptAPI.dox 231 KB

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