LuaScriptAPI.dox 267 KB

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