LuaScriptAPI.dox 232 KB

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