LuaScriptAPI.dox 220 KB

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