LuaScriptAPI.dox 249 KB

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