LuaScriptAPI.dox 274 KB

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