LuaScriptAPI.dox 156 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689
  1. namespace Urho3D
  2. {
  3. /**
  4. \page LuaScriptAPI Lua Scripting API
  5. \section LuaScriptAPI_Classes Classes
  6. ### Audio : Object
  7. Methods:
  8. - bool SetMode(int bufferLengthMSec, int mixRate, bool stereo, bool interpolation = true)
  9. - bool Play()
  10. - void Stop()
  11. - void SetMasterGain(SoundType type, float gain)
  12. - void SetListener(SoundListener* listener)
  13. - void StopSound(Sound* sound)
  14. - unsigned GetSampleSize() const
  15. - int GetMixRate() const
  16. - bool GetInterpolation() const
  17. - bool IsStereo() const
  18. - bool IsPlaying() const
  19. - bool IsInitialized() const
  20. - float GetMasterGain(SoundType type) const
  21. - SoundListener* GetListener() const
  22. - const PODVector<SoundSource*>& GetSoundSources() const
  23. - void AddSoundSource(SoundSource* soundSource)
  24. - void RemoveSoundSource(SoundSource* soundSource)
  25. - float GetSoundSourceMasterGain(SoundType type) const
  26. - void MixOutput(void *dest, unsigned samples)
  27. Properties:
  28. - unsigned sampleSize (readonly)
  29. - int mixRate (readonly)
  30. - bool interpolation (readonly)
  31. - bool stereo (readonly)
  32. - bool playing (readonly)
  33. - bool initialized (readonly)
  34. - SoundListener* listener
  35. ### Sound : Resource
  36. Methods:
  37. - Sound()
  38. - ~Sound()
  39. - bool LoadRaw(Deserializer& source)
  40. - bool LoadWav(Deserializer& source)
  41. - bool LoadOggVorbis(Deserializer& source)
  42. - bool LoadRaw(const String fileName)
  43. - bool LoadWav(const String fileName)
  44. - bool LoadOggVorbis(const String fileName)
  45. - void SetSize(unsigned dataSize)
  46. - void SetData(const void* data, unsigned dataSize)
  47. - void SetFormat(unsigned frequency, bool sixteenBit, bool stereo)
  48. - void SetLooped(bool enable)
  49. - void SetLoop(unsigned repeatOffset, unsigned endOffset)
  50. - void FixInterpolation()
  51. - float GetLength() const
  52. - unsigned GetDataSize() const
  53. - unsigned GetSampleSize() const
  54. - float GetFrequency()
  55. - unsigned GetIntFrequency()
  56. - bool IsLooped() const
  57. - bool IsSixteenBit() const
  58. - bool IsStereo() const
  59. - bool IsCompressed() const
  60. Properties:
  61. - float length (readonly)
  62. - unsigned dataSize (readonly)
  63. - unsigned sampleSize (readonly)
  64. - float frequency (readonly)
  65. - int intFrequency (readonly)
  66. - bool looped
  67. - bool sixteenBit (readonly)
  68. - bool stereo (readonly)
  69. - bool compressed (readonly)
  70. ### SoundListener : Component
  71. Methods:
  72. ### SoundSource : Component
  73. Methods:
  74. - void Play(Sound* sound)
  75. - void Play(Sound* sound, float frequency)
  76. - void Play(Sound* sound, float frequency, float gain)
  77. - void Play(Sound* sound, float frequency, float gain, float panning)
  78. - void Stop()
  79. - void SetSoundType(SoundType type)
  80. - void SetFrequency(float frequency)
  81. - void SetGain(float gain)
  82. - void SetAttenuation(float attenuation)
  83. - void SetPanning(float panning)
  84. - void SetAutoRemove(bool enable)
  85. - Sound* GetSound() const
  86. - SoundType GetSoundType() const
  87. - float GetTimePosition() const
  88. - float GetFrequency() const
  89. - float GetGain() const
  90. - float GetAttenuation() const
  91. - float GetPanning() const
  92. - bool GetAutoRemove() const
  93. - bool IsPlaying() const
  94. - void PlayLockless(Sound* sound)
  95. - void StopLockless()
  96. Properties:
  97. - Sound* sound (readonly)
  98. - SoundType soundType
  99. - float timePosition (readonly)
  100. - float frequency
  101. - float gain
  102. - float attenuation
  103. - float panning
  104. - bool autoRemove
  105. - bool playing (readonly)
  106. ### SoundSource3D : SoundSource
  107. Methods:
  108. - void SetDistanceAttenuation(float nearDistance, float farDistance, float rolloffFactor)
  109. - void SetAngleAttenuation(float innerAngle, float outerAngle)
  110. - void SetNearDistance(float distance)
  111. - void SetFarDistance(float distance)
  112. - void SetInnerAngle(float angle)
  113. - void SetOuterAngle(float angle)
  114. - void SetRolloffFactor(float factor)
  115. - void CalculateAttenuation()
  116. - float GetNearDistance() const
  117. - float GetFarDistance() const
  118. - float GetInnerAngle() const
  119. - float GetOuterAngle() const
  120. - float RollAngleoffFactor() const
  121. Properties:
  122. - float nearDistance
  123. - float farDistance
  124. - float innerAngle
  125. - float outerAngle
  126. - float rolloffFactor
  127. ### Context
  128. Methods:
  129. - Object* GetEventSender() const
  130. - EventHandler* GetEventHandler() const
  131. - const String GetTypeName(ShortStringHash objectType) const
  132. ### Object : RefCounted
  133. Methods:
  134. - ShortStringHash GetType() const
  135. - ShortStringHash GetBaseType() const
  136. - const String GetTypeName() const
  137. - const String GetCategory() const
  138. - void SendEvent(const String eventName, VariantMap* eventData = 0)
  139. Properties:
  140. - ShortStringHash type (readonly)
  141. - ShortStringHash baseType (readonly)
  142. - const String typeName (readonly)
  143. - const String category (readonly)
  144. ### ResourceRef
  145. Methods:
  146. - ResourceRef()
  147. - ResourceRef(ShortStringHash type)
  148. - ResourceRef(ShortStringHash type, String name)
  149. - ResourceRef(const ResourceRef& rhs)
  150. Properties:
  151. - ShortStringHash type
  152. - String name
  153. - bool operator == (const ResourceRef& rhs) const
  154. ### ResourceRefList
  155. Methods:
  156. - ResourceRefList()
  157. - ResourceRefList(ShortStringHash type)
  158. Properties:
  159. - ShortStringHash type
  160. - bool operator == (const ResourceRefList& rhs) const
  161. ### Variant
  162. Methods:
  163. - Variant()
  164. - Variant(int value)
  165. - Variant(unsigned value)
  166. - Variant(const StringHash& value)
  167. - Variant(const ShortStringHash& value)
  168. - Variant(bool value)
  169. - Variant(float value)
  170. - Variant(const Vector2& value)
  171. - Variant(const Vector3& value)
  172. - Variant(const Vector4& value)
  173. - Variant(const Quaternion& value)
  174. - Variant(const Color& value)
  175. - Variant(const String value)
  176. - Variant(const char* value)
  177. - Variant(const ResourceRef& value)
  178. - Variant(const ResourceRefList& value)
  179. - Variant(const IntRect& value)
  180. - Variant(const IntVector2& value)
  181. - Variant(const String type, const String value)
  182. - Variant(VariantType type, const String value)
  183. - Variant(VariantType type, const char* value)
  184. - Variant(const Variant& value)
  185. - ~Variant()
  186. - void Clear()
  187. - bool operator == (const Variant& rhs) const
  188. - bool operator == (int rhs) const
  189. - bool operator == (unsigned rhs) const
  190. - bool operator == (bool rhs) const
  191. - bool operator == (float rhs) const
  192. - bool operator == (const Vector2& rhs)
  193. - bool operator == (const Vector3& rhs) const
  194. - bool operator == (const Vector4& rhs) const
  195. - bool operator == (const Quaternion& rhs) const
  196. - bool operator == (const Color& rhs) const
  197. - bool operator == (const String rhs) const
  198. - bool operator == (const ResourceRef& rhs) const
  199. - bool operator == (const ResourceRefList& rhs) const
  200. - bool operator == (const IntRect& rhs) const
  201. - bool operator == (const IntVector2& rhs) const
  202. - bool operator == (const StringHash& rhs) const
  203. - bool operator == (const ShortStringHash& rhs) const
  204. - void SetInt(int value)
  205. - void SetUint(unsigned value)
  206. - void SetStringHash(const StringHash& value)
  207. - void SetShortStringHash(const ShortStringHash& value)
  208. - void SetBool(bool value)
  209. - void SetFloat(float value)
  210. - void SetVector2(const Vector2& value)
  211. - void SetVector3(const Vector3& value)
  212. - void SetVector4(const Vector4& value)
  213. - void SetQuaternion(const Quaternion& value)
  214. - void SetColor(const Color& value)
  215. - void SetString(const String value)
  216. - void SetBuffer(const VectorBuffer& value)
  217. - void SetResourceRef(const ResourceRef& value)
  218. - void SetResourceRefList(const ResourceRefList& value)
  219. - void SetIntRect(const IntRect& value)
  220. - void SetIntVector2(const IntVector2& value)
  221. - int GetInt() const
  222. - int GetUInt() const
  223. - StringHash GetStringHash()
  224. - ShortStringHash GetShortStringHash()
  225. - bool GetBool() const
  226. - float GetFloat() const
  227. - const Vector2& GetVector2() const
  228. - const Vector3& GetVector3() const
  229. - const Vector4& GetVector4() const
  230. - const Quaternion& GetQuaternion() const
  231. - const Color& GetColor() const
  232. - const String GetString() const
  233. - VectorBuffer GetBuffer() const
  234. - const ResourceRef& GetResourceRef() const
  235. - const ResourceRefList& GetResourceRefList() const
  236. - const IntRect& GetIntRect() const
  237. - const IntVector2& GetIntVector2() const
  238. - VariantType GetType() const
  239. - String GetTypeName() const
  240. - String ToString() const
  241. - bool IsZero() const
  242. - bool IsEmpty() const
  243. Properties:
  244. - VariantType type (readonly)
  245. - String typeName (readonly)
  246. - bool zero (readonly)
  247. - bool empty (readonly)
  248. ### VariantMap
  249. Methods:
  250. - VariantMap()
  251. - ~VariantMap()
  252. - void SetInt(const String key, int value)
  253. - void SetUInt(const String key, unsigned value)
  254. - void SetStringHash(const String key, const StringHash& value)
  255. - void SetShortStringHash(const String key, const ShortStringHash& value)
  256. - void SetBool(const String key, bool value)
  257. - void SetFloat(const String key, float value)
  258. - void SetVector2(const String key, const Vector2 value)
  259. - void SetVector3(const String key, const Vector3 value)
  260. - void SetVector4(const String key, const Vector4 value)
  261. - void SetQuaternion(const String key, const Quaternion value)
  262. - void SetColor(const String key, const Color value)
  263. - void SetString(const String key, const String value)
  264. - void SetBuffer(const String key, const VectorBuffer& value)
  265. - void SetResourceRef(const String key, const ResourceRef value)
  266. - void SetResourceRefList(const String key, const ResourceRefList value)
  267. - void SetIntRect(const String key, const IntRect value)
  268. - void SetIntVector2(const String key, const IntVector2 value)
  269. - void SetPtr(const String key, void* value)
  270. - int GetInt(const String key)
  271. - int GetUInt(const String key)
  272. - StringHash GetStringHash(const String key)
  273. - ShortStringHash GetShortStringHash(const String key)
  274. - bool GetBool(const String key)
  275. - float GetFloat(const String key)
  276. - const Vector2& GetVector2(const String key)
  277. - const Vector3& GetVector3(const String key)
  278. - const Vector4& GetVector4(const String key)
  279. - const Quaternion& GetQuaternion(const String key)
  280. - const Color& GetColor(const String key)
  281. - const String GetString(const String key)
  282. - VectorBuffer GetBuffer(const String key)
  283. - const ResourceRef& GetResourceRef(const String key)
  284. - const ResourceRefList& GetResourceRefList(const String key)
  285. - const IntRect& GetIntRect(const String key)
  286. - const IntVector2& GetIntVector2(const String key)
  287. - const void* GetPtr(const String type, const String key)
  288. ### Time : Object
  289. Methods:
  290. - unsigned GetFrameNumber() const
  291. - float GetTimeStep() const
  292. - unsigned GetTimerPeriod() const
  293. - float GetElapsedTime()
  294. - static unsigned GetSystemTime()
  295. - static String GetTimeStamp()
  296. - static void Sleep(unsigned mSec)
  297. Properties:
  298. - unsigned frameNumber (readonly)
  299. - float timeStep (readonly)
  300. - unsigned timerPeriod (readonly)
  301. - float elapsedTime (readonly)
  302. ### Console : Object
  303. Methods:
  304. - void SetDefaultStyle(XMLFile* style)
  305. - void SetVisible(bool enable)
  306. - void Toggle()
  307. - void SetNumRows(unsigned rows)
  308. - void SetNumHistoryRows(unsigned rows)
  309. - void UpdateElements()
  310. - XMLFile* GetDefaultStyle() const
  311. - BorderImage* GetBackground() const
  312. - LineEdit* GetLineEdit() const
  313. - bool IsVisible() const
  314. - unsigned GetNumRows() const
  315. - unsigned GetNumHistoryRows() const
  316. - unsigned GetHistoryPosition() const
  317. - const String GetHistoryRow(unsigned index) const
  318. Properties:
  319. - XMLFile* defaultStyle
  320. - BorderImage* background (readonly)
  321. - LineEdit* lineEdit (readonly)
  322. - bool visible
  323. - unsigned numRows
  324. - unsigned numHistoryRows
  325. - unsigned historyPosition (readonly)
  326. ### DebugHud : Object
  327. Methods:
  328. - void SetDefaultStyle(XMLFile* style)
  329. - void SetMode(unsigned mode)
  330. - void SetProfilerMaxDepth(unsigned depth)
  331. - void SetProfilerInterval(float interval)
  332. - void SetUseRendererStats(bool enable)
  333. - void Toggle(unsigned mode)
  334. - void ToggleAll()
  335. - XMLFile* GetDefaultStyle() const
  336. - Text* GetStatsText() const
  337. - Text* GetModeText() const
  338. - Text* GetProfilerText() const
  339. - unsigned GetMode() const
  340. - unsigned GetProfilerMaxDepth() const
  341. - float GetProfilerInterval() const
  342. - bool GetUseRendererStats() const
  343. - void SetAppStats(const String label, const Variant stats)
  344. - void SetAppStats(const String label, const String stats)
  345. - bool ResetAppStats(const String label)
  346. - void ClearAppStats()
  347. Properties:
  348. - XMLFile* defaultStyle
  349. - Text* statsText (readonly)
  350. - Text* modeText (readonly)
  351. - Text* profilerText (readonly)
  352. - unsigned mode
  353. - unsigned profilerMaxDepth
  354. - float profilerInterval
  355. - bool useRendererStats
  356. ### Engine : Object
  357. Methods:
  358. - void RunFrame()
  359. - Console* CreateConsole()
  360. - DebugHud* CreateDebugHud()
  361. - void SetMinFps(int fps)
  362. - void SetMaxFps(int fps)
  363. - void SetMaxInactiveFps(int fps)
  364. - void SetTimeStepSmoothing(int frames)
  365. - void SetPauseMinimized(bool enable)
  366. - void SetAutoExit(bool enable)
  367. - void Exit()
  368. - void DumpProfiler()
  369. - void DumpResources()
  370. - void DumpMemory()
  371. - int GetMinFps() const
  372. - int GetMaxFps() const
  373. - int GetMaxInactiveFps() const
  374. - int GetTimeStepSmoothing() const
  375. - bool GetPauseMinimized() const
  376. - bool GetAutoExit() const
  377. - bool IsInitialized() const
  378. - bool IsExiting() const
  379. - bool IsHeadless() const
  380. Properties:
  381. - int minFps
  382. - int maxFps
  383. - int maxInactiveFps
  384. - int timeStepSmoothing
  385. - bool pauseMinimized
  386. - bool autoExit
  387. - bool initialized (readonly)
  388. - bool exiting (readonly)
  389. - bool headless (readonly)
  390. ### Drawable : Component
  391. Methods:
  392. - void SetDrawDistance(float distance)
  393. - void SetShadowDistance(float distance)
  394. - void SetLodBias(float bias)
  395. - void SetViewMask(unsigned mask)
  396. - void SetLightMask(unsigned mask)
  397. - void SetShadowMask(unsigned mask)
  398. - void SetZoneMask(unsigned mask)
  399. - void SetMaxLights(unsigned num)
  400. - void SetCastShadows(bool enable)
  401. - void SetOccluder(bool enable)
  402. - void SetOccludee(bool enable)
  403. - void MarkForUpdate()
  404. - const BoundingBox& GetBoundingBox() const
  405. - const BoundingBox& GetWorldBoundingBox()
  406. - unsigned char GetDrawableFlags() const
  407. - float GetDrawDistance() const
  408. - float GetShadowDistance() const
  409. - float GetLodBias() const
  410. - unsigned GetViewMask() const
  411. - unsigned GetLightMask() const
  412. - unsigned GetShadowMask() const
  413. - unsigned GetZoneMask() const
  414. - unsigned GetMaxLights() const
  415. - bool GetCastShadows() const
  416. - bool IsOccluder() const
  417. - bool IsOccludee() const
  418. - void SetZone(Zone* zone, bool temporary = false)
  419. - void SetSortValue(float value)
  420. - void SetMinMaxZ(float minZ, float maxZ)
  421. - void MarkInView(const FrameInfo& frame, bool mainView = true)
  422. - void ClearLights()
  423. - void AddLight(Light* light)
  424. - void AddVertexLight(Light* light)
  425. - void LimitLights()
  426. - void LimitVertexLights()
  427. - void SetBasePass(unsigned batchIndex)
  428. - Octant* GetOctant() const
  429. - Zone* GetZone() const
  430. - Zone* GetLastZone() const
  431. - bool IsZoneDirty() const
  432. - float GetDistance() const
  433. - float GetLodDistance() const
  434. - float GetSortValue() const
  435. - bool IsInView(unsigned frameNumber) const
  436. - bool IsInView(const FrameInfo& frame, bool mainView = true) const
  437. - bool HasBasePass(unsigned batchIndex) const
  438. - Light* GetFirstLight() const
  439. - float GetMinZ() const
  440. - float GetMaxZ() const
  441. Properties:
  442. - BoundingBox& worldBoundingBox (readonly)
  443. - unsigned char drawableFlags (readonly)
  444. - float drawDistance
  445. - float shadowDistance
  446. - float lodBias
  447. - unsigned viewMask
  448. - unsigned lightMask
  449. - unsigned shadowMask
  450. - unsigned zoneMask
  451. - unsigned maxLights
  452. - bool castShadows
  453. - bool occluder
  454. - bool occludee
  455. - Octant* octant (readonly)
  456. - Zone* zone
  457. - Zone* lastZone (readonly)
  458. - bool zoneDirty (readonly)
  459. - float distance (readonly)
  460. - float lodDistance (readonly)
  461. - float sortValue
  462. - Light* firstLight (readonly)
  463. - float minZ (readonly)
  464. - float maxZ (readonly)
  465. ### AnimatedModel : StaticModel
  466. Methods:
  467. - void SetModel(Model* model)
  468. - AnimationState* AddAnimationState(Animation* animation)
  469. - void RemoveAnimationState(Animation* animation)
  470. - void RemoveAnimationState(const String animationName)
  471. - void RemoveAnimationState(StringHash animationNameHash)
  472. - void RemoveAnimationState(AnimationState* state)
  473. - void RemoveAnimationState(unsigned index)
  474. - void RemoveAllAnimationStates()
  475. - void SetAnimationLodBias(float bias)
  476. - void SetUpdateInvisible(bool enable)
  477. - void SetMorphWeight(unsigned index, float weight)
  478. - void SetMorphWeight(const String name, float weight)
  479. - void SetMorphWeight(StringHash nameHash, float weight)
  480. - void ResetMorphWeights()
  481. - Skeleton& GetSkeleton()
  482. - unsigned GetNumAnimationStates() const
  483. - AnimationState* GetAnimationState(Animation* animation) const
  484. - AnimationState* GetAnimationState(const String animationName) const
  485. - AnimationState* GetAnimationState(const StringHash animationNameHash) const
  486. - AnimationState* GetAnimationState(unsigned index) const
  487. - float GetAnimationLodBias() const
  488. - bool GetUpdateInvisible() const
  489. - unsigned GetNumMorphs() const
  490. - float GetMorphWeight(unsigned index) const
  491. - float GetMorphWeight(const String name) const
  492. - float GetMorphWeight(StringHash nameHash) const
  493. - bool IsMaster() const
  494. Properties:
  495. - Model* model
  496. - Skeleton& skeleton (readonly)
  497. - unsigned numAnimationStates (readonly)
  498. - float animationLodBias
  499. - bool updateInvisible
  500. - unsigned numMorphs (readonly)
  501. - bool master (readonly)
  502. ### AnimationKeyFrame
  503. Methods:
  504. Properties:
  505. - float time
  506. - Vector3 position
  507. - Quaternion rotation
  508. - Vector3 scale
  509. ### Animation : Resource
  510. Methods:
  511. - const String GetAnimationName() const
  512. - StringHash GetAnimationNameHash() const
  513. - float GetLength() const
  514. - unsigned GetNumTracks() const
  515. - const AnimationTrack* GetTrack(unsigned index) const
  516. - const AnimationTrack* GetTrack(const String name) const
  517. - const AnimationTrack* GetTrack(StringHash nameHash) const
  518. - unsigned GetNumTriggers() const
  519. Properties:
  520. - String animationName (readonly)
  521. - StringHash animationNameHash (readonly)
  522. - float length (readonly)
  523. - unsigned numTracks (readonly)
  524. - unsigned numTriggers (readonly)
  525. ### AnimationControl
  526. Methods:
  527. - AnimationControl()
  528. Properties:
  529. - StringHash hash_
  530. - float speed_
  531. - float targetWeight_
  532. - float fadeTime_
  533. - float autoFadeTime_
  534. - float setTimeTtl_
  535. - float setWeightTtl_
  536. - unsigned short setTime_
  537. - unsigned char setWeight_
  538. - unsigned char setTimeRev_
  539. - unsigned char setWeightRev_
  540. ### AnimationController : Component
  541. Methods:
  542. - bool Play(const String name, unsigned char layer, bool looped, float fadeInTime = 0.0f)
  543. - bool PlayExclusive(const String name, unsigned char layer, bool looped, float fadeTime = 0.0f)
  544. - bool Stop(const String name, float fadeOutTime = 0.0f)
  545. - void StopLayer(unsigned char layer, float fadeOutTime = 0.0f)
  546. - void StopAll(float fadeTime = 0.0f)
  547. - bool Fade(const String name, float targetWeight, float fadeTime)
  548. - bool FadeOthers(const String name, float targetWeight, float fadeTime)
  549. - bool SetLayer(const String name, unsigned char layer)
  550. - bool SetStartBone(const String name, const String startBoneName)
  551. - bool SetTime(const String name, float time)
  552. - bool SetWeight(const String name, float weight)
  553. - bool SetLooped(const String name, bool enable)
  554. - bool SetSpeed(const String name, float speed)
  555. - bool SetAutoFade(const String name, float fadeOutTime)
  556. - bool IsPlaying(const String name) const
  557. - bool IsFadingIn(const String name) const
  558. - bool IsFadingOut(const String name) const
  559. - unsigned char GetLayer(const String name) const
  560. - Bone* GetStartBone(const String name) const
  561. - const String GetStartBoneName(const String name) const
  562. - float GetTime(const String name) const
  563. - float GetWeight(const String name) const
  564. - bool IsLooped(const String name) const
  565. - float GetLength(const String name) const
  566. - float GetSpeed(const String name) const
  567. - float GetFadeTarget(const String name) const
  568. - float GetFadeTime(const String name) const
  569. - float GetAutoFade(const String name) const
  570. - AnimationState* GetAnimationState(const String name) const
  571. - AnimationState* GetAnimationState(StringHash nameHash) const
  572. ### AnimationState
  573. Methods:
  574. - AnimationState(AnimatedModel* model, Animation* animation)
  575. - AnimationState(Node* node, Animation* animation)
  576. - ~AnimationState()
  577. - void SetStartBone(Bone* bone)
  578. - void SetLooped(bool looped)
  579. - void SetWeight(float weight)
  580. - void SetTime(float time)
  581. - void SetBoneWeight(unsigned index, float weight, bool recursive = false)
  582. - void SetBoneWeight(const String name, float weight, bool recursive = false)
  583. - void SetBoneWeight(StringHash nameHash, float weight, bool recursive = false)
  584. - void AddWeight(float delta)
  585. - void AddTime(float delta)
  586. - void SetLayer(unsigned char layer)
  587. - Animation* GetAnimation() const
  588. - Bone* GetStartBone() const
  589. - float GetBoneWeight(unsigned index) const
  590. - float GetBoneWeight(const String name) const
  591. - float GetBoneWeight(StringHash nameHash) const
  592. - unsigned GetTrackIndex(const String name) const
  593. - unsigned GetTrackIndex(StringHash nameHash) const
  594. - bool IsEnabled() const
  595. - bool IsLooped() const
  596. - float GetWeight() const
  597. - float GetTime() const
  598. - float GetLength() const
  599. - unsigned char GetLayer() const
  600. Properties:
  601. - Animation* animation (readonly)
  602. - Bone* startBone
  603. - bool enabled (readonly)
  604. - bool looped
  605. - float weight
  606. - float time
  607. - float length (readonly)
  608. - unsigned char layer
  609. ### Billboard
  610. Methods:
  611. Properties:
  612. - Vector3 position
  613. - Vector2 size
  614. - Rect uv
  615. - Color color
  616. - float rotation
  617. - bool enabled
  618. - float sortDistance
  619. ### BillboardSet : Drawable
  620. Methods:
  621. - void SetMaterial(Material* material)
  622. - void SetNumBillboards(unsigned num)
  623. - void SetRelative(bool enable)
  624. - void SetScaled(bool enable)
  625. - void SetSorted(bool enable)
  626. - void SetFaceCamera(bool enable)
  627. - void SetAnimationLodBias(float bias)
  628. - void Commit()
  629. - Material* GetMaterial() const
  630. - unsigned GetNumBillboards() const
  631. - Billboard* GetBillboard(unsigned index)
  632. - bool IsRelative() const
  633. - bool IsScaled() const
  634. - bool IsSorted() const
  635. - bool GetFaceCamera() const
  636. - float GetAnimationLodBias() const
  637. Properties:
  638. - Material* material
  639. - unsigned numBillboards
  640. - bool relative
  641. - bool scaled
  642. - bool sorted
  643. - bool faceCamera
  644. - float animationLodBias
  645. ### Camera : Component
  646. Methods:
  647. - void SetNearClip(float nearClip)
  648. - void SetFarClip(float farClip)
  649. - void SetFov(float fov)
  650. - void SetOrthoSize(float orthoSize)
  651. - void SetOrthoSize(const Vector2& orthoSize)
  652. - void SetAspectRatio(float aspectRatio)
  653. - void SetFillMode(FillMode mode)
  654. - void SetZoom(float zoom)
  655. - void SetLodBias(float bias)
  656. - void SetViewMask(unsigned mask)
  657. - void SetViewOverrideFlags(unsigned flags)
  658. - void SetOrthographic(bool enable)
  659. - void SetAutoAspectRatio(bool enable)
  660. - void SetProjectionOffset(const Vector2& offset)
  661. - void SetUseReflection(bool enable)
  662. - void SetReflectionPlane(const Plane& reflectionPlane)
  663. - void SetUseClipping(bool enable)
  664. - void SetClipPlane(const Plane& clipPlane)
  665. - float GetFarClip() const
  666. - float GetNearClip() const
  667. - float GetFov() const
  668. - float GetOrthoSize() const
  669. - float GetAspectRatio() const
  670. - float GetZoom() const
  671. - float GetLodBias() const
  672. - unsigned GetViewMask() const
  673. - unsigned GetViewOverrideFlags() const
  674. - FillMode GetFillMode() const
  675. - bool IsOrthographic() const
  676. - bool GetAutoAspectRatio() const
  677. - const Frustum& GetFrustum() const
  678. - const Matrix4& GetProjection() const
  679. - const Matrix3x4& GetView() const
  680. - void GetFrustumSize(Vector3& near, Vector3& far) const
  681. - float GetHalfViewSize() const
  682. - Frustum GetSplitFrustum(float nearClip, float farClip) const
  683. - Frustum GetViewSpaceFrustum() const
  684. - Frustum GetViewSpaceSplitFrustum(float nearClip, float farClip) const
  685. - Ray GetScreenRay(float x, float y) const
  686. - Vector2 WorldToScreenPoint(const Vector3& worldPos) const
  687. - Vector3 ScreenToWorldPoint(const Vector3& screenPos) const
  688. - const Vector2& GetProjectionOffset() const
  689. - bool GetUseReflection() const
  690. - const Plane& GetReflectionPlane() const
  691. - bool GetUseClipping() const
  692. - const Plane& GetClipPlane() const
  693. - float GetDistance(const Vector3& worldPos) const
  694. - float GetDistanceSquared(const Vector3& worldPos) const
  695. - float GetLodDistance(float distance, float scale, float bias) const
  696. - bool IsProjectionValid() const
  697. - Matrix3x4 GetEffectiveWorldTransform() const
  698. Properties:
  699. - float farClip
  700. - float nearClip
  701. - float fov
  702. - float orthoSize
  703. - float aspectRatio
  704. - float zoom
  705. - float lodBias
  706. - unsigned viewMask
  707. - unsigned viewOverrideFlags
  708. - FillMode fillMode
  709. - bool orthographic
  710. - bool autoAspectRatio
  711. - Frustum& frustum (readonly)
  712. - Matrix4& projection (readonly)
  713. - Matrix3x4& view (readonly)
  714. - float halfViewSize (readonly)
  715. - Frustum viewSpaceFrustum (readonly)
  716. - Vector2& projectionOffset
  717. - bool useReflection
  718. - Plane& reflectionPlane
  719. - bool useClipping
  720. - Plane& clipPlane
  721. - bool projectionValid (readonly)
  722. - Matrix3x4 effectiveWorldTransform (readonly)
  723. ### DebugRenderer : Component
  724. Methods:
  725. - void SetView(Camera* camera)
  726. - void AddLine(const Vector3& start, const Vector3& end, const Color& color, bool depthTest = true)
  727. - void AddLine(const Vector3& start, const Vector3& end, unsigned color, bool depthTest = true)
  728. - void AddNode(Node* node, float scale = 1.0f, bool depthTest = true)
  729. - void AddBoundingBox(const BoundingBox& box, const Color& color, bool depthTest = true)
  730. - void AddBoundingBox(const BoundingBox& box, const Matrix3x4& transform, const Color& color, bool depthTest = true)
  731. - void AddFrustum(const Frustum& frustum, const Color& color, bool depthTest = true)
  732. - void AddPolyhedron(const Polyhedron& poly, const Color& color, bool depthTest = true)
  733. - void AddSphere(const Sphere& sphere, const Color& color, bool depthTest = true)
  734. - void AddSkeleton(const Skeleton& skeleton, const Color& color, bool depthTest = true)
  735. - 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)
  736. - void Render()
  737. - const Matrix3x4& GetView() const
  738. - const Matrix4& GetProjection() const
  739. - const Frustum& GetFrustum() const
  740. - bool IsInside(const BoundingBox& box) const
  741. Properties:
  742. - Matrix3x4& view (readonly)
  743. - Matrix4& projection (readonly)
  744. - Frustum& frustum (readonly)
  745. ### DecalSet : Drawable
  746. Methods:
  747. - void SetMaterial(Material* material)
  748. - void SetMaxVertices(unsigned num)
  749. - void SetMaxIndices(unsigned num)
  750. - 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)
  751. - void RemoveDecals(unsigned num)
  752. - void RemoveAllDecals()
  753. - Material* GetMaterial() const
  754. - unsigned GetNumDecals() const
  755. - unsigned GetNumVertices() const
  756. - unsigned GetNumIndices() const
  757. - unsigned GetMaxVertices() const
  758. - unsigned GetMaxIndices() const
  759. Properties:
  760. - Material* material
  761. - unsigned numDecals (readonly)
  762. - unsigned numVertices (readonly)
  763. - unsigned numIndices (readonly)
  764. - unsigned maxVertices
  765. - unsigned maxIndices
  766. ### Graphics : Object
  767. Methods:
  768. - void SetWindowTitle(const String windowTitle)
  769. - void SetWindowIcon(Image* windowIcon)
  770. - void SetWindowPosition(const IntVector2& position)
  771. - void SetWindowPosition(int x, int y)
  772. - bool SetMode(int width, int height, bool fullscreen, bool borderless, bool resizable, bool vsync, bool tripleBuffer, int multiSample)
  773. - bool SetMode(int width, int height)
  774. - void SetSRGB(bool enable)
  775. - void SetFlushGPU(bool enable)
  776. - bool ToggleFullscreen()
  777. - void Maximize()
  778. - void Minimize()
  779. - void Close()
  780. - bool TakeScreenShot(Image& destImage)
  781. - bool IsInitialized() const
  782. - void* GetExternalWindow() const
  783. - const String GetWindowTitle() const
  784. - IntVector2 GetWindowPosition() const
  785. - int GetWidth() const
  786. - int GetHeight() const
  787. - int GetMultiSample() const
  788. - bool GetFullscreen() const
  789. - bool GetResizable() const
  790. - bool GetBorderless() const
  791. - bool GetVSync() const
  792. - bool GetTripleBuffer() const
  793. - bool GetSRGB() const
  794. - bool GetFlushGPU() const
  795. - bool IsDeviceLost() const
  796. - unsigned GetNumPrimitives() const
  797. - unsigned GetNumBatches() const
  798. - unsigned GetDummyColorFormat() const
  799. - unsigned GetShadowMapFormat() const
  800. - unsigned GetHiresShadowMapFormat() const
  801. - bool GetSM3Support() const
  802. - bool GetInstancingSupport() const
  803. - bool GetLightPrepassSupport() const
  804. - bool GetDeferredSupport() const
  805. - bool GetHardwareShadowSupport() const
  806. - bool GetStreamOffsetSupport() const
  807. - bool GetSRGBSupport() const
  808. - bool GetSRGBWriteSupport() const
  809. - IntVector2 GetDesktopResolution() const
  810. - static unsigned GetRGBFormat()
  811. Properties:
  812. - bool initialized (readonly)
  813. - String windowTitle
  814. - IntVector2 windowPosition
  815. - int width (readonly)
  816. - int height (readonly)
  817. - int multiSample (readonly)
  818. - bool fullscreen (readonly)
  819. - bool resizable (readonly)
  820. - bool borderless (readonly)
  821. - bool vSync (readonly)
  822. - bool tripleBuffer (readonly)
  823. - bool sRGB
  824. - bool flushGPU
  825. - bool deviceLost (readonly)
  826. - unsigned numPrimitives (readonly)
  827. - unsigned numBatches (readonly)
  828. - unsigned dummyColorFormat (readonly)
  829. - unsigned shadowMapFormat (readonly)
  830. - unsigned hiresShadowMapFormat (readonly)
  831. - bool sM3Support (readonly)
  832. - bool instancingSupport (readonly)
  833. - bool lightPrepassSupport (readonly)
  834. - bool deferredSupport (readonly)
  835. - bool hardwareShadowSupport (readonly)
  836. - bool streamOffsetSupport (readonly)
  837. - bool sRGBSupport (readonly)
  838. - bool sRGBWriteSupport (readonly)
  839. - IntVector2 desktopResolution (readonly)
  840. ### BiasParameters
  841. Methods:
  842. - BiasParameters()
  843. - BiasParameters(float constantBias, float slopeScaledBias)
  844. ### CascadeParameters
  845. Methods:
  846. - CascadeParameters()
  847. - CascadeParameters(float split1, float split2, float split3, float split4, float fadeStart, float biasAutoAdjust = 1.0f)
  848. ### FocusParameters
  849. Methods:
  850. - FocusParameters()
  851. - FocusParameters(bool focus, bool nonUniform, bool autoSize, float quantize, float minView)
  852. ### Light : Drawable
  853. Methods:
  854. - void SetLightType(LightType type)
  855. - void SetPerVertex(bool enable)
  856. - void SetColor(const Color& color)
  857. - void SetSpecularIntensity(float intensity)
  858. - void SetRange(float range)
  859. - void SetFov(float fov)
  860. - void SetAspectRatio(float aspectRatio)
  861. - void SetFadeDistance(float distance)
  862. - void SetShadowFadeDistance(float distance)
  863. - void SetShadowBias(const BiasParameters& parameters)
  864. - void SetShadowCascade(const CascadeParameters& parameters)
  865. - void SetShadowFocus(const FocusParameters& parameters)
  866. - void SetShadowIntensity(float intensity)
  867. - void SetShadowResolution(float resolution)
  868. - void SetShadowNearFarRatio(float nearFarRatio)
  869. - void SetRampTexture(Texture* texture)
  870. - void SetShapeTexture(Texture* texture)
  871. - LightType GetLightType() const
  872. - bool GetPerVertex() const
  873. - const Color& GetColor() const
  874. - float GetSpecularIntensity() const
  875. - float GetRange() const
  876. - float GetFov() const
  877. - float GetAspectRatio() const
  878. - float GetFadeDistance() const
  879. - float GetShadowFadeDistance() const
  880. - const BiasParameters& GetShadowBias() const
  881. - const CascadeParameters& GetShadowCascade() const
  882. - const FocusParameters& GetShadowFocus() const
  883. - float GetShadowIntensity() const
  884. - float GetShadowResolution() const
  885. - float GetShadowNearFarRatio() const
  886. - Texture* GetRampTexture() const
  887. - Texture* GetShapeTexture() const
  888. - Frustum GetFrustum() const
  889. Properties:
  890. - LightType lightType
  891. - bool perVertex
  892. - Color& color
  893. - float specularIntensity
  894. - float range
  895. - float fov
  896. - float aspectRatio
  897. - float fadeDistance
  898. - float shadowFadeDistance
  899. - BiasParameters& shadowBias
  900. - CascadeParameters& shadowCascade
  901. - FocusParameters& shadowFocus
  902. - float shadowIntensity
  903. - float shadowResolution
  904. - float shadowNearFarRatio
  905. - Texture* rampTexture
  906. - Texture* shapeTexture
  907. - Frustum frustum (readonly)
  908. ### Material : Resource
  909. Methods:
  910. - Material()
  911. - ~Material()
  912. - void SetNumTechniques(unsigned num)
  913. - void SetTechnique(unsigned index, Technique* tech, unsigned qualityLevel = 0, float lodDistance = 0.0f)
  914. - void SetShaderParameter(const String name, const Variant& value)
  915. - void SetTexture(TextureUnit unit, Texture* texture)
  916. - void SetUVTransform(const Vector2& offset, float rotation, const Vector2& repeat)
  917. - void SetUVTransform(const Vector2& offset, float rotation, float repeat)
  918. - void SetCullMode(CullMode mode)
  919. - void SetShadowCullMode(CullMode mode)
  920. - void SetDepthBias(const BiasParameters& parameters)
  921. - void RemoveShaderParameter(const String name)
  922. - void ReleaseShaders()
  923. - Material* Clone(const String cloneName = String::EMPTY) const
  924. - void SortTechniques()
  925. - void MarkForAuxView(unsigned frameNumber)
  926. - unsigned GetNumTechniques() const
  927. - Technique* GetTechnique(unsigned index) const
  928. - Pass* GetPass(unsigned index, StringHash passType) const
  929. - Pass* GetPass(unsigned index, const String passType) const
  930. - Texture* GetTexture(TextureUnit unit) const
  931. - CullMode GetCullMode() const
  932. - CullMode GetShadowCullMode() const
  933. - const BiasParameters& GetDepthBias() const
  934. - unsigned GetAuxViewFrameNumber() const
  935. - bool GetOcclusion() const
  936. - bool GetSpecular() const
  937. Properties:
  938. - CullMode cullMode (readonly)
  939. - CullMode shadowCullMode (readonly)
  940. - unsigned auxViewFrameNumber (readonly)
  941. - bool occlusion (readonly)
  942. - bool specular (readonly)
  943. ### Model : Resource
  944. Methods:
  945. - const BoundingBox& GetBoundingBox() const
  946. - Skeleton& GetSkeleton()
  947. - unsigned GetNumGeometries() const
  948. - unsigned GetNumGeometryLodLevels(unsigned index) const
  949. - Geometry* GetGeometry(unsigned index, unsigned lodLevel) const
  950. - unsigned GetNumMorphs() const
  951. - const ModelMorph* GetMorph(unsigned index) const
  952. - const ModelMorph* GetMorph(const String name) const
  953. - const ModelMorph* GetMorph(StringHash nameHash) const
  954. - unsigned GetMorphRangeStart(unsigned bufferIndex) const
  955. - unsigned GetMorphRangeCount(unsigned bufferIndex) const
  956. Properties:
  957. - BoundingBox& boundingBox (readonly)
  958. - Skeleton skeleton (readonly)
  959. - unsigned numGeometries (readonly)
  960. - unsigned numMorphs (readonly)
  961. ### Octree : Component
  962. Methods:
  963. - void SetSize(const BoundingBox& box, unsigned numLevels)
  964. - void Update(const FrameInfo& frame)
  965. - void AddManualDrawable(Drawable* drawable)
  966. - void RemoveManualDrawable(Drawable* drawable)
  967. - const PODVector<OctreeQueryResult>& GetDrawables(const Vector3& point, unsigned char drawableFlags = DRAWABLE_ANY, unsigned viewMask = DEFAULT_VIEWMASK) const
  968. - const PODVector<OctreeQueryResult>& GetDrawables(const BoundingBox& box, unsigned char drawableFlags = DRAWABLE_ANY, unsigned viewMask = DEFAULT_VIEWMASK) const
  969. - const PODVector<OctreeQueryResult>& GetDrawables(const Frustum& frustum, unsigned char drawableFlags = DRAWABLE_ANY, unsigned viewMask = DEFAULT_VIEWMASK) const
  970. - const PODVector<OctreeQueryResult>& GetDrawables(const Sphere& sphere, unsigned char drawableFlags = DRAWABLE_ANY, unsigned viewMask = DEFAULT_VIEWMASK) const
  971. - const PODVector<RayQueryResult>& Raycast(const Ray& ray, RayQueryLevel level, float maxDistance, unsigned char drawableFlags) const
  972. - RayQueryResult RaycastSingle(const Ray& ray, RayQueryLevel level, float maxDistance, unsigned char drawableFlags) const
  973. - unsigned GetNumLevels() const
  974. - void QueueUpdate(Drawable* drawable)
  975. - void DrawDebugGeometry(bool depthTest)
  976. Properties:
  977. - unsigned numLevels (readonly)
  978. ### OctreeQueryResult
  979. Methods:
  980. - OctreeQueryResult()
  981. Properties:
  982. - Drawable* drawable
  983. - Node* node
  984. ### RayQueryResult
  985. Methods:
  986. - RayQueryResult()
  987. Properties:
  988. - Vector3 position
  989. - Vector3 normal
  990. - float distance
  991. - Drawable* drawable
  992. - Node* node
  993. - unsigned subObject
  994. ### ColorFrame
  995. Methods:
  996. - ColorFrame()
  997. - ColorFrame(const Color& color)
  998. - ColorFrame(const Color& color, float time)
  999. - Color Interpolate(const ColorFrame& next, float time)
  1000. Properties:
  1001. - Color color
  1002. - float time
  1003. ### TextureFrame
  1004. Methods:
  1005. - TextureFrame()
  1006. Properties:
  1007. - Rect uv
  1008. - float time
  1009. ### ParticleEmitter : BillboardSet
  1010. Methods:
  1011. - bool Load(XMLFile* file)
  1012. - bool Save(XMLFile* file)
  1013. - void SetNumParticles(unsigned num)
  1014. - void SetEmissionRate(float rate)
  1015. - void SetMinEmissionRate(float rate)
  1016. - void SetMaxEmissionRate(float rate)
  1017. - void SetEmitterType(EmitterType type)
  1018. - void SetEmitterSize(const Vector3& size)
  1019. - void SetActiveTime(float time)
  1020. - void SetInactiveTime(float time)
  1021. - void SetEmitting(bool enable, bool resetPeriod = false)
  1022. - void SetUpdateInvisible(bool enable)
  1023. - void SetTimeToLive(float time)
  1024. - void SetMinTimeToLive(float time)
  1025. - void SetMaxTimeToLive(float time)
  1026. - void SetParticleSize(const Vector2& size)
  1027. - void SetMinParticleSize(const Vector2& size)
  1028. - void SetMaxParticleSize(const Vector2& size)
  1029. - void SetMinDirection(const Vector3& direction)
  1030. - void SetMaxDirection(const Vector3& direction)
  1031. - void SetVelocity(float velocity)
  1032. - void SetMinVelocity(float velocity)
  1033. - void SetMaxVelocity(float velocity)
  1034. - void SetRotation(float rotation)
  1035. - void SetMinRotation(float rotation)
  1036. - void SetMaxRotation(float rotation)
  1037. - void SetRotationSpeed(float speed)
  1038. - void SetMinRotationSpeed(float speed)
  1039. - void SetMaxRotationSpeed(float speed)
  1040. - void SetConstantForce(const Vector3& force)
  1041. - void SetDampingForce(float force)
  1042. - void SetSizeAdd(float sizeAdd)
  1043. - void SetSizeMul(float sizeMul)
  1044. - void SetColor(const Color& color)
  1045. - void SetNumColors(unsigned num)
  1046. - void SetNumTextureFrames(unsigned num)
  1047. - unsigned GetNumParticles() const
  1048. - bool IsEmitting() const
  1049. - bool GetUpdateInvisible() const
  1050. - float GetMinEmissionRate() const
  1051. - float GetMaxEmissionRate() const
  1052. - EmitterType GetEmitterType() const
  1053. - const Vector3& GetEmitterSize() const
  1054. - float GetActiveTime() const
  1055. - float GetInactiveTime() const
  1056. - float GetMinTimeToLive() const
  1057. - float GetMaxTimeToLive() const
  1058. - const Vector2& GetMinParticleSize() const
  1059. - const Vector2& GetMaxParticleSize() const
  1060. - const Vector3& GetMinDirection() const
  1061. - const Vector3& GetMaxDirection() const
  1062. - float GetMinVelocity() const
  1063. - float GetMaxVelocity() const
  1064. - float GetMinRotation() const
  1065. - float GetMaxRotation() const
  1066. - float GetMinRotationSpeed() const
  1067. - float GetMaxRotationSpeed() const
  1068. - const Vector3& GetConstantForce() const
  1069. - float GetDampingForce() const
  1070. - float GetSizeAdd() const
  1071. - float GetSizeMul() const
  1072. - unsigned GetNumColors() const
  1073. - ColorFrame* GetColor(unsigned index)
  1074. - unsigned GetNumTextureFrames() const
  1075. - TextureFrame* GetTextureFrame(unsigned index)
  1076. Properties:
  1077. - unsigned numParticles
  1078. - bool emitting
  1079. - bool updateInvisible
  1080. - float minEmissionRate
  1081. - float maxEmissionRate
  1082. - EmitterType emitterType
  1083. - Vector3& emitterSize
  1084. - float activeTime
  1085. - float inactiveTime
  1086. - float minTimeToLive
  1087. - float maxTimeToLive
  1088. - Vector2& minParticleSize
  1089. - Vector2& maxParticleSize
  1090. - Vector3& minDirection
  1091. - Vector3& maxDirection
  1092. - float minVelocity
  1093. - float maxVelocity
  1094. - float minRotation
  1095. - float maxRotation
  1096. - float minRotationSpeed
  1097. - float maxRotationSpeed
  1098. - Vector3& constantForce
  1099. - float dampingForce
  1100. - float sizeAdd
  1101. - float sizeMul
  1102. - unsigned numColors
  1103. - unsigned numTextureFrames
  1104. ### Renderer
  1105. Methods:
  1106. - void SetNumViewports(unsigned num)
  1107. - void SetViewport(unsigned index, Viewport* viewport)
  1108. - void SetDefaultRenderPath(RenderPath* renderPath)
  1109. - void SetDefaultRenderPath(XMLFile* file)
  1110. - void SetHDRRendering(bool enable)
  1111. - void SetSpecularLighting(bool enable)
  1112. - void SetTextureAnisotropy(int level)
  1113. - void SetTextureFilterMode(TextureFilterMode mode)
  1114. - void SetTextureQuality(int quality)
  1115. - void SetMaterialQuality(int quality)
  1116. - void SetDrawShadows(bool enable)
  1117. - void SetShadowMapSize(int size)
  1118. - void SetShadowQuality(int quality)
  1119. - void SetReuseShadowMaps(bool enable)
  1120. - void SetMaxShadowMaps(int shadowMaps)
  1121. - void SetMaxShadowCascades(int cascades)
  1122. - void SetDynamicInstancing(bool enable)
  1123. - void SetMinInstances(int instances)
  1124. - void SetMaxInstanceTriangles(int triangles)
  1125. - void SetMaxSortedInstances(int instances)
  1126. - void SetMaxOccluderTriangles(int triangles)
  1127. - void SetOcclusionBufferSize(int size)
  1128. - void SetOccluderSizeThreshold(float screenSize)
  1129. - void ReloadShaders()
  1130. - unsigned GetNumViewports() const
  1131. - Viewport* GetViewport(unsigned index) const
  1132. - RenderPath* GetDefaultRenderPath() const
  1133. - bool GetHDRRendering() const
  1134. - bool GetSpecularLighting() const
  1135. - bool GetDrawShadows() const
  1136. - int GetTextureAnisotropy() const
  1137. - TextureFilterMode GetTextureFilterMode() const
  1138. - int GetTextureQuality() const
  1139. - int GetMaterialQuality() const
  1140. - int GetShadowMapSize() const
  1141. - int GetShadowQuality() const
  1142. - bool GetReuseShadowMaps() const
  1143. - int GetMaxShadowMaps() const
  1144. - int GetMaxShadowCascades() const
  1145. - bool GetDynamicInstancing() const
  1146. - int GetMinInstances() const
  1147. - int GetMaxInstanceTriangles() const
  1148. - int GetMaxSortedInstances() const
  1149. - int GetMaxOccluderTriangles() const
  1150. - int GetOcclusionBufferSize() const
  1151. - float GetOccluderSizeThreshold() const
  1152. - unsigned GetNumViews() const
  1153. - unsigned GetNumPrimitives() const
  1154. - unsigned GetNumBatches() const
  1155. - unsigned GetNumGeometries(bool allViews = false) const
  1156. - unsigned GetNumLights(bool allViews = false) const
  1157. - unsigned GetNumShadowMaps(bool allViews = false) const
  1158. - unsigned GetNumOccluders(bool allViews = false) const
  1159. - Zone* GetDefaultZone() const
  1160. - Light* GetQuadDirLight() const
  1161. - Material* GetDefaultMaterial() const
  1162. - Texture2D* GetDefaultLightRamp() const
  1163. - Texture2D* GetDefaultLightSpot() const
  1164. - TextureCube* GetFaceSelectCubeMap() const
  1165. - TextureCube* GetIndirectionCubeMap() const
  1166. - VertexBuffer* GetInstancingBuffer() const
  1167. - const FrameInfo& GetFrameInfo()
  1168. - void DrawDebugGeometry(bool depthTest)
  1169. Properties:
  1170. - unsigned numViewports
  1171. - RenderPath* defaultRenderPath
  1172. - bool HDRRendering
  1173. - bool specularLighting
  1174. - bool drawShadows
  1175. - int textureAnisotropy
  1176. - TextureFilterMode textureFilterMode
  1177. - int textureQuality
  1178. - int materialQuality
  1179. - int shadowMapSize
  1180. - int shadowQuality
  1181. - bool reuseShadowMaps
  1182. - int maxShadowMaps
  1183. - int maxShadowCascades
  1184. - bool dynamicInstancing
  1185. - int minInstances
  1186. - int maxInstanceTriangles
  1187. - int maxSortedInstances
  1188. - int maxOccluderTriangles
  1189. - int occlusionBufferSize
  1190. - float occluderSizeThreshold
  1191. - unsigned numViews (readonly)
  1192. - unsigned numPrimitives (readonly)
  1193. - unsigned numBatches (readonly)
  1194. - Zone* defaultZone (readonly)
  1195. - Material* defaultMaterial (readonly)
  1196. - Texture2D* defaultLightRamp (readonly)
  1197. - Texture2D* defaultLightSpot (readonly)
  1198. ### RenderPath
  1199. Methods:
  1200. - RenderPath* Clone()
  1201. - bool Load(XMLFile* file)
  1202. - bool Append(XMLFile* file)
  1203. - void SetEnabled(const String tag, bool active)
  1204. - void ToggleEnabled(const String tag)
  1205. - void SetRenderTarget(unsigned index, const RenderTargetInfo& info)
  1206. - void AddRenderTarget(const RenderTargetInfo& info)
  1207. - void RemoveRenderTarget(unsigned index)
  1208. - void RemoveRenderTarget(const String name)
  1209. - void RemoveRenderTargets(const String tag)
  1210. - void SetCommand(unsigned index, const RenderPathCommand& command)
  1211. - void AddCommand(const RenderPathCommand& command)
  1212. - void InsertCommand(unsigned index, const RenderPathCommand& command)
  1213. - void RemoveCommand(unsigned index)
  1214. - void RemoveCommands(const String tag)
  1215. - void SetShaderParameter(const String name, const Variant& value)
  1216. - unsigned GetNumRenderTargets() const
  1217. - unsigned GetNumCommands() const
  1218. - const Variant& GetShaderParameter(const String name) const
  1219. ### RenderSurface
  1220. Methods:
  1221. - RenderSurface(Texture* parentTexture)
  1222. - ~RenderSurface()
  1223. - void SetNumViewports(unsigned num)
  1224. - void SetViewport(unsigned index, Viewport* viewport)
  1225. - void SetUpdateMode(RenderSurfaceUpdateMode mode)
  1226. - void SetLinkedRenderTarget(RenderSurface* renderTarget)
  1227. - void SetLinkedDepthStencil(RenderSurface* depthStencil)
  1228. - void QueueUpdate()
  1229. - void Release()
  1230. - Texture* GetParentTexture() const
  1231. - int GetWidth() const
  1232. - int GetHeight() const
  1233. - TextureUsage GetUsage() const
  1234. - unsigned GetNumViewports() const
  1235. - Viewport* GetViewport(unsigned index) const
  1236. - RenderSurfaceUpdateMode GetUpdateMode() const
  1237. - RenderSurface* GetLinkedRenderTarget() const
  1238. - RenderSurface* GetLinkedDepthStencil() const
  1239. Properties:
  1240. - Texture* parentTexture (readonly)
  1241. - int width (readonly)
  1242. - int height (readonly)
  1243. - TextureUsage usage (readonly)
  1244. - unsigned numViewports
  1245. - RenderSurfaceUpdateMode updateMode
  1246. - RenderSurface* linkedRenderTarget
  1247. - RenderSurface* linkedDepthStencil
  1248. ### Bone
  1249. Methods:
  1250. - Bone()
  1251. Properties:
  1252. - String name
  1253. - StringHash nameHash
  1254. - unsigned parentIndex
  1255. - Vector3 initialPosition
  1256. - Quaternion initialRotation
  1257. - Vector3 initialScale
  1258. - Matrix3x4 offsetMatrix
  1259. - bool animated
  1260. - unsigned char collisionMask
  1261. - float radius
  1262. - BoundingBox boundingBox
  1263. - Node* node
  1264. ### Skeleton
  1265. Methods:
  1266. - unsigned GetNumBones() const
  1267. - Bone* GetRootBone()
  1268. - Bone* GetBone(const String name)
  1269. - Bone* GetBone(unsigned index)
  1270. Properties:
  1271. - unsigned numBones (readonly)
  1272. - Bone* rootBone (readonly)
  1273. ### Skybox : StaticModel
  1274. Methods:
  1275. ### StaticModelGeometryData
  1276. Methods:
  1277. Properties:
  1278. - Vector3 center
  1279. - unsigned lodLevel
  1280. ### StaticModel : Drawable
  1281. Methods:
  1282. - void SetModel(Model* model)
  1283. - void SetMaterial(Material* material)
  1284. - bool SetMaterial(unsigned index, Material* material)
  1285. - void SetOcclusionLodLevel(unsigned level)
  1286. - void ApplyMaterialList(const String fileName = String::EMPTY)
  1287. - Model* GetModel() const
  1288. - unsigned GetNumGeometries() const
  1289. - Material* GetMaterial(unsigned index = 0) const
  1290. - unsigned GetOcclusionLodLevel() const
  1291. - bool IsInside(const Vector3& point) const
  1292. - bool IsInsideLocal(const Vector3& point) const
  1293. Properties:
  1294. - Model* model
  1295. - Material* material
  1296. - BoundingBox& boundingBox (readonly)
  1297. - unsigned numGeometries (readonly)
  1298. - unsigned occlusionLodLevel
  1299. ### StaticModelGroup : StaticModel
  1300. Methods:
  1301. - void AddInstanceNode(Node* node)
  1302. - void RemoveInstanceNode(Node* node)
  1303. - void RemoveAllInstanceNodes()
  1304. - unsigned GetNumInstanceNodes() const
  1305. - Node* GetInstanceNode(unsigned index) const
  1306. Properties:
  1307. - unsigned numInstanceNodes (readonly)
  1308. ### Pass : RefCounted
  1309. Methods:
  1310. ### Technique : Resource
  1311. Methods:
  1312. - bool HasPass(const String type) const
  1313. - Pass* GetPass(const String type) const
  1314. - bool IsSM3() const
  1315. Properties:
  1316. - bool SM3 (readonly)
  1317. ### Terrain : Component
  1318. Methods:
  1319. - void SetPatchSize(int size)
  1320. - void SetSpacing(const Vector3& spacing)
  1321. - void SetSmoothing(bool enable)
  1322. - bool SetHeightMap(Image* image)
  1323. - void SetMaterial(Material* material)
  1324. - void SetDrawDistance(float distance)
  1325. - void SetShadowDistance(float distance)
  1326. - void SetLodBias(float bias)
  1327. - void SetViewMask(unsigned mask)
  1328. - void SetLightMask(unsigned mask)
  1329. - void SetShadowMask(unsigned mask)
  1330. - void SetZoneMask(unsigned mask)
  1331. - void SetMaxLights(unsigned num)
  1332. - void SetCastShadows(bool enable)
  1333. - void SetOccluder(bool enable)
  1334. - void SetOccludee(bool enable)
  1335. - int GetPatchSize() const
  1336. - const Vector3& GetSpacing() const
  1337. - const IntVector2& GetNumVertices() const
  1338. - const IntVector2& GetNumPatches() const
  1339. - bool GetSmoothing() const
  1340. - Image* GetHeightMap() const
  1341. - Material* GetMaterial() const
  1342. - TerrainPatch* GetPatch(unsigned index) const
  1343. - TerrainPatch* GetPatch(int x, int z) const
  1344. - float GetHeight(const Vector3& worldPosition) const
  1345. - Vector3 GetNormal(const Vector3& worldPosition) const
  1346. - SharedArrayPtr<float> GetHeightData() const
  1347. - float GetDrawDistance() const
  1348. - float GetShadowDistance() const
  1349. - float GetLodBias() const
  1350. - unsigned GetViewMask() const
  1351. - unsigned GetLightMask() const
  1352. - unsigned GetShadowMask() const
  1353. - unsigned GetZoneMask() const
  1354. - unsigned GetMaxLights() const
  1355. - bool IsVisible() const
  1356. - bool GetCastShadows() const
  1357. - bool IsOccluder() const
  1358. - bool IsOccludee() const
  1359. Properties:
  1360. - int patchSize
  1361. - Vector3& spacing
  1362. - IntVector2& numVertices (readonly)
  1363. - IntVector2& numPatches (readonly)
  1364. - bool smoothing
  1365. - Image* heightMap
  1366. - Material* material
  1367. - float drawDistance
  1368. - float shadowDistance
  1369. - float lodBias
  1370. - unsigned viewMask
  1371. - unsigned lightMask
  1372. - unsigned shadowMask
  1373. - unsigned zoneMask
  1374. - unsigned maxLights
  1375. - bool visible (readonly)
  1376. - bool castShadows
  1377. - bool occluder
  1378. - bool occludee
  1379. ### TerrainPatch : Drawable
  1380. Methods:
  1381. - void SetOwner(Terrain* terrain)
  1382. - void SetNeighbors(TerrainPatch* north, TerrainPatch* south, TerrainPatch* west, TerrainPatch* east)
  1383. - void SetMaterial(Material* material)
  1384. - void SetBoundingBox(const BoundingBox& box)
  1385. - void SetCoordinates(const IntVector2& coordinates)
  1386. - void SetOcclusionOffset(float offset)
  1387. - void ResetLod()
  1388. - Geometry* GetGeometry() const
  1389. - Geometry* GetMaxLodGeometry() const
  1390. - Geometry* GetMinLodGeometry() const
  1391. - VertexBuffer* GetVertexBuffer() const
  1392. - Terrain* GetOwner() const
  1393. - TerrainPatch* GetNorthPatch() const
  1394. - TerrainPatch* GetSouthPatch() const
  1395. - TerrainPatch* GetWestPatch() const
  1396. - TerrainPatch* GetEastPatch() const
  1397. - const IntVector2& GetCoordinates() const
  1398. - unsigned GetLodLevel() const
  1399. - float GetOcclusionOffset() const
  1400. Properties:
  1401. - Geometry* geometry (readonly)
  1402. - Geometry* maxLodGeometry (readonly)
  1403. - Geometry* minLodGeometry (readonly)
  1404. - VertexBuffer* vertexBuffer (readonly)
  1405. - Terrain* owner
  1406. - TerrainPatch* northPatch (readonly)
  1407. - TerrainPatch* southPatch (readonly)
  1408. - TerrainPatch* westPatch (readonly)
  1409. - TerrainPatch* eastPatch (readonly)
  1410. - BoundingBox& boundingBox
  1411. - IntVector2& coordinates
  1412. - unsigned lodLevel (readonly)
  1413. - float occlusionOffset
  1414. ### Texture : Resource
  1415. Methods:
  1416. - void SetNumLevels(unsigned levels)
  1417. - void SetFilterMode(TextureFilterMode filter)
  1418. - void SetAddressMode(TextureCoordinate coord, TextureAddressMode address)
  1419. - void SetBorderColor(const Color& color)
  1420. - void SetSRGB(bool enable)
  1421. - void SetBackupTexture(Texture* texture)
  1422. - void SetMipsToSkip(int quality, int mips)
  1423. - unsigned GetFormat() const
  1424. - bool IsCompressed() const
  1425. - unsigned GetLevels() const
  1426. - int GetWidth() const
  1427. - int GetHeight() const
  1428. - TextureFilterMode GetFilterMode() const
  1429. - TextureAddressMode GetAddressMode(TextureCoordinate coord) const
  1430. - const Color& GetBorderColor() const
  1431. - bool GetSRGB() const
  1432. - Texture* GetBackupTexture() const
  1433. - int GetMipsToSkip(int quality) const
  1434. - int GetLevelWidth(unsigned level) const
  1435. - int GetLevelHeight(unsigned level) const
  1436. - TextureUsage GetUsage() const
  1437. - unsigned GetDataSize(int width, int height) const
  1438. - unsigned GetRowDataSize(int width) const
  1439. Properties:
  1440. - unsigned format (readonly)
  1441. - bool compressed (readonly)
  1442. - unsigned levels (readonly)
  1443. - int width (readonly)
  1444. - int height (readonly)
  1445. - TextureFilterMode filterMode
  1446. - Color& borderColor
  1447. - bool sRGB
  1448. - Texture* backupTexture
  1449. - TextureUsage usage (readonly)
  1450. ### Texture2D : Texture
  1451. Methods:
  1452. - Texture2D()
  1453. - ~Texture2D()
  1454. - bool SetSize(int width, int height, unsigned format, TextureUsage usage = TEXTURE_STATIC)
  1455. - bool Load(Image* image, bool useAlpha = false)
  1456. - RenderSurface* GetRenderSurface() const
  1457. Properties:
  1458. - RenderSurface* renderSurface (readonly)
  1459. ### TextureCube : Texture
  1460. Methods:
  1461. - RenderSurface* GetRenderSurface(CubeMapFace face) const
  1462. ### Viewport
  1463. Methods:
  1464. - Viewport()
  1465. - Viewport(Scene* scene, Camera* camera, RenderPath* renderPath = 0)
  1466. - Viewport(Scene* scene, Camera* camera, const IntRect& rect, RenderPath* renderPath = 0)
  1467. - ~Viewport()
  1468. - void SetScene(Scene* scene)
  1469. - void SetCamera(Camera* camera)
  1470. - void SetRect(const IntRect& rect)
  1471. - void SetRenderPath(RenderPath* path)
  1472. - void SetRenderPath(XMLFile* file)
  1473. - Scene* GetScene() const
  1474. - Camera* GetCamera() const
  1475. - const IntRect& GetRect() const
  1476. - RenderPath* GetRenderPath() const
  1477. Properties:
  1478. - Scene* scene
  1479. - Camera* camera
  1480. - IntRect& rect
  1481. - RenderPath* renderPath
  1482. ### Zone : Drawable
  1483. Methods:
  1484. - void SetBoundingBox(const BoundingBox& box)
  1485. - void SetAmbientColor(const Color& color)
  1486. - void SetFogColor(const Color& color)
  1487. - void SetFogStart(float start)
  1488. - void SetFogEnd(float end)
  1489. - void SetFogHeight(float height)
  1490. - void SetFogHeightScale(float scale)
  1491. - void SetPriority(int priority)
  1492. - void SetHeightFog(bool enable)
  1493. - void SetOverride(bool enable)
  1494. - void SetAmbientGradient(bool enable)
  1495. - const Matrix3x4& GetInverseWorldTransform() const
  1496. - const Color& GetAmbientColor() const
  1497. - const Color& GetAmbientStartColor()
  1498. - const Color& GetAmbientEndColor()
  1499. - const Color& GetFogColor() const
  1500. - float GetFogStart() const
  1501. - float GetFogEnd() const
  1502. - float GetFogHeight() const
  1503. - float GetFogHeightScale() const
  1504. - int GetPriority() const
  1505. - bool GetHeightFog() const
  1506. - bool GetOverride() const
  1507. - bool GetAmbientGradient() const
  1508. - bool IsInside(const Vector3& point) const
  1509. Properties:
  1510. - BoundingBox& boundingBox
  1511. - Matrix3x4& inverseWorldTransform (readonly)
  1512. - Color& ambientColor
  1513. - Color& ambientStartColor (readonly)
  1514. - Color& ambientEndColor (readonly)
  1515. - Color& fogColor
  1516. - float fogStart
  1517. - float fogEnd
  1518. - float fogHeight
  1519. - float fogHeightScale
  1520. - int priority
  1521. - bool heightFog
  1522. - bool override
  1523. - bool ambientGradient
  1524. ### Deserializer
  1525. Methods:
  1526. - VectorBuffer Read(unsigned size)
  1527. - unsigned Seek(unsigned position)
  1528. - const String GetName() const
  1529. - unsigned GetChecksum()
  1530. - unsigned GetPosition() const
  1531. - unsigned GetSize() const
  1532. - bool IsEof() const
  1533. - int ReadInt()
  1534. - short ReadShort()
  1535. - signed char ReadByte()
  1536. - unsigned ReadUInt()
  1537. - unsigned short ReadUShort()
  1538. - unsigned char ReadUByte()
  1539. - bool ReadBool()
  1540. - float ReadFloat()
  1541. - IntRect ReadIntRect()
  1542. - IntVector2 ReadIntVector2()
  1543. - Rect ReadRect()
  1544. - Vector2 ReadVector2()
  1545. - Vector3 ReadVector3()
  1546. - Vector3 ReadPackedVector3(float maxAbsCoord)
  1547. - Vector4 ReadVector4()
  1548. - Quaternion ReadQuaternion()
  1549. - Quaternion ReadPackedQuaternion()
  1550. - Color ReadColor()
  1551. - BoundingBox ReadBoundingBox()
  1552. - String ReadString()
  1553. - String ReadFileID()
  1554. - StringHash ReadStringHash()
  1555. - ShortStringHash ReadShortStringHash()
  1556. - VectorBuffer ReadBuffer()
  1557. - ResourceRef ReadResourceRef()
  1558. - ResourceRefList ReadResourceRefList()
  1559. - Variant ReadVariant()
  1560. - Variant ReadVariant(VariantType type)
  1561. - VariantVector ReadVariantVector()
  1562. - VariantMap ReadVariantMap()
  1563. - unsigned ReadVLE()
  1564. - unsigned ReadNetID()
  1565. - String ReadLine()
  1566. Properties:
  1567. - String name (readonly)
  1568. - unsigned checksum (readonly)
  1569. - unsigned position (readonly)
  1570. - unsigned size (readonly)
  1571. - bool eof (readonly)
  1572. ### File : Object
  1573. Methods:
  1574. - File()
  1575. - File(const String fileName, FileMode mode = FILE_READ)
  1576. - File(PackageFile* package, const String fileName)
  1577. - ~File()
  1578. - bool Open(const String fileName, FileMode mode = FILE_READ)
  1579. - bool Open(PackageFile* package, const String fileName)
  1580. - void Close()
  1581. - void Flush()
  1582. - void SetName(const String name)
  1583. - FileMode GetMode() const
  1584. - bool IsOpen() const
  1585. - void* GetHandle() const
  1586. - bool IsPackaged() const
  1587. - VectorBuffer Read(unsigned size)
  1588. - unsigned Seek(unsigned position)
  1589. - const String GetName() const
  1590. - unsigned GetChecksum()
  1591. - unsigned GetPosition() const
  1592. - unsigned GetSize() const
  1593. - bool IsEof() const
  1594. - int ReadInt()
  1595. - short ReadShort()
  1596. - signed char ReadByte()
  1597. - unsigned ReadUInt()
  1598. - unsigned short ReadUShort()
  1599. - unsigned char ReadUByte()
  1600. - bool ReadBool()
  1601. - float ReadFloat()
  1602. - IntRect ReadIntRect()
  1603. - IntVector2 ReadIntVector2()
  1604. - Rect ReadRect()
  1605. - Vector2 ReadVector2()
  1606. - Vector3 ReadVector3()
  1607. - Vector3 ReadPackedVector3(float maxAbsCoord)
  1608. - Vector4 ReadVector4()
  1609. - Quaternion ReadQuaternion()
  1610. - Quaternion ReadPackedQuaternion()
  1611. - Color ReadColor()
  1612. - BoundingBox ReadBoundingBox()
  1613. - String ReadString()
  1614. - String ReadFileID()
  1615. - StringHash ReadStringHash()
  1616. - ShortStringHash ReadShortStringHash()
  1617. - VectorBuffer ReadBuffer()
  1618. - ResourceRef ReadResourceRef()
  1619. - ResourceRefList ReadResourceRefList()
  1620. - Variant ReadVariant()
  1621. - Variant ReadVariant(VariantType type)
  1622. - VariantVector ReadVariantVector()
  1623. - VariantMap ReadVariantMap()
  1624. - unsigned ReadVLE()
  1625. - unsigned ReadNetID()
  1626. - String ReadLine()
  1627. - unsigned Write(const VectorBuffer& buffer)
  1628. - bool WriteInt(int value)
  1629. - bool WriteShort(short value)
  1630. - bool WriteByte(signed char value)
  1631. - bool WriteUInt(unsigned value)
  1632. - bool WriteUShort(unsigned short value)
  1633. - bool WriteUByte(unsigned char value)
  1634. - bool WriteBool(bool value)
  1635. - bool WriteFloat(float value)
  1636. - bool WriteIntRect(const IntRect& value)
  1637. - bool WriteIntVector2(const IntVector2& value)
  1638. - bool WriteRect(const Rect& value)
  1639. - bool WriteVector2(const Vector2& value)
  1640. - bool WriteVector3(const Vector3& value)
  1641. - bool WritePackedVector3(const Vector3& value, float maxAbsCoord)
  1642. - bool WriteVector4(const Vector4& value)
  1643. - bool WriteQuaternion(const Quaternion& value)
  1644. - bool WritePackedQuaternion(const Quaternion& value)
  1645. - bool WriteColor(const Color& value)
  1646. - bool WriteBoundingBox(const BoundingBox& value)
  1647. - bool WriteString(const String value)
  1648. - bool WriteFileID(const String value)
  1649. - bool WriteStringHash(const StringHash& value)
  1650. - bool WriteShortStringHash(const ShortStringHash& value)
  1651. - bool WriteBuffer(const VectorBuffer& buffer)
  1652. - bool WriteResourceRef(const ResourceRef& value)
  1653. - bool WriteResourceRefList(const ResourceRefList& value)
  1654. - bool WriteVariant(const Variant& value)
  1655. - bool WriteVariantData(const Variant& value)
  1656. - bool WriteVariantVector(const VariantVector& value)
  1657. - bool WriteVariantMap(const VariantMap& value)
  1658. - bool WriteVLE(unsigned value)
  1659. - bool WriteNetID(unsigned value)
  1660. - bool WriteLine(const String value)
  1661. Properties:
  1662. - FileMode mode (readonly)
  1663. - bool open (readonly)
  1664. - bool packaged (readonly)
  1665. - String name (readonly)
  1666. - unsigned checksum (readonly)
  1667. - unsigned position (readonly)
  1668. - unsigned size (readonly)
  1669. - bool eof (readonly)
  1670. ### FileSystem : Object
  1671. Methods:
  1672. - bool SetCurrentDir(const String pathName)
  1673. - bool CreateDir(const String pathName)
  1674. - int SystemCommand(const String commandLine)
  1675. - int SystemRun(const String fileName, const Vector<String>& arguments)
  1676. - bool SystemOpen(const String fileName, const String mode = String::EMPTY)
  1677. - bool Copy(const String srcFileName, const String destFileName)
  1678. - bool Rename(const String srcFileName, const String destFileName)
  1679. - bool Delete(const String fileName)
  1680. - void RegisterPath(const String pathName)
  1681. - String GetCurrentDir() const
  1682. - bool HasRegisteredPaths() const
  1683. - bool CheckAccess(const String pathName) const
  1684. - unsigned GetLastModifiedTime(const String fileName) const
  1685. - bool FileExists(const String fileName) const
  1686. - bool DirExists(const String pathName) const
  1687. - const Vector<String>& ScanDir(const String pathName, const String filter, unsigned flags, bool recursive) const
  1688. - String GetProgramDir() const
  1689. - String GetUserDocumentsDir() const
  1690. ### FileWatcher : Object
  1691. Methods:
  1692. - bool StartWatching(const String pathName, bool watchSubDirs)
  1693. - void StopWatching()
  1694. - void AddChange(const String fileName)
  1695. - const String GetPath() const
  1696. ### Log : Object
  1697. Methods:
  1698. - void Open(const String fileName)
  1699. - void Close()
  1700. - void SetLevel(int level)
  1701. - void SetTimeStamp(bool enable)
  1702. - void SetQuiet(bool quiet)
  1703. - int GetLevel() const
  1704. - bool GetTimeStamp() const
  1705. - String GetLastMessage() const
  1706. - bool IsQuiet() const
  1707. - static void Write(int level, const String message)
  1708. - static void WriteRaw(const String message, bool error = false)
  1709. Properties:
  1710. - int level
  1711. - bool timeStamp
  1712. - bool quiet
  1713. ### PackageEntry
  1714. Methods:
  1715. Properties:
  1716. - unsigned offset
  1717. - unsigned size
  1718. - unsigned checksum
  1719. ### PackageFile : Object
  1720. Methods:
  1721. - PackageFile()
  1722. - PackageFile(const String fileName, unsigned startOffset = 0)
  1723. - ~PackageFile()
  1724. - bool Open(const String fileName, unsigned startOffset = 0)
  1725. - bool Exists(const String fileName) const
  1726. - const PackageEntry* GetEntry(const String fileName) const
  1727. - const HashMap<String, PackageEntry>& GetEntries() const
  1728. - const String GetName() const
  1729. - StringHash GetNameHash() const
  1730. - unsigned GetNumFiles() const
  1731. - unsigned GetTotalSize() const
  1732. - unsigned GetChecksum() const
  1733. - bool IsCompressed() const
  1734. Properties:
  1735. - String name (readonly)
  1736. - StringHash nameHash (readonly)
  1737. - unsigned numFiles (readonly)
  1738. - unsigned totalSize (readonly)
  1739. - unsigned checksum (readonly)
  1740. - bool compressed (readonly)
  1741. ### Serializer
  1742. Methods:
  1743. - unsigned Write(const VectorBuffer& buffer)
  1744. - bool WriteInt(int value)
  1745. - bool WriteShort(short value)
  1746. - bool WriteByte(signed char value)
  1747. - bool WriteUInt(unsigned value)
  1748. - bool WriteUShort(unsigned short value)
  1749. - bool WriteUByte(unsigned char value)
  1750. - bool WriteBool(bool value)
  1751. - bool WriteFloat(float value)
  1752. - bool WriteIntRect(const IntRect& value)
  1753. - bool WriteIntVector2(const IntVector2& value)
  1754. - bool WriteRect(const Rect& value)
  1755. - bool WriteVector2(const Vector2& value)
  1756. - bool WriteVector3(const Vector3& value)
  1757. - bool WritePackedVector3(const Vector3& value, float maxAbsCoord)
  1758. - bool WriteVector4(const Vector4& value)
  1759. - bool WriteQuaternion(const Quaternion& value)
  1760. - bool WritePackedQuaternion(const Quaternion& value)
  1761. - bool WriteColor(const Color& value)
  1762. - bool WriteBoundingBox(const BoundingBox& value)
  1763. - bool WriteString(const String value)
  1764. - bool WriteFileID(const String value)
  1765. - bool WriteStringHash(const StringHash& value)
  1766. - bool WriteShortStringHash(const ShortStringHash& value)
  1767. - bool WriteBuffer(const VectorBuffer& buffer)
  1768. - bool WriteResourceRef(const ResourceRef& value)
  1769. - bool WriteResourceRefList(const ResourceRefList& value)
  1770. - bool WriteVariant(const Variant& value)
  1771. - bool WriteVariantData(const Variant& value)
  1772. - bool WriteVariantVector(const VariantVector& value)
  1773. - bool WriteVariantMap(const VariantMap& value)
  1774. - bool WriteVLE(unsigned value)
  1775. - bool WriteNetID(unsigned value)
  1776. - bool WriteLine(const String value)
  1777. ### VectorBuffer
  1778. Methods:
  1779. - VectorBuffer()
  1780. - VectorBuffer(Deserializer& source, unsigned size)
  1781. - ~VectorBuffer()
  1782. - void SetData(Deserializer& source, unsigned size)
  1783. - void Clear()
  1784. - void Resize(unsigned size)
  1785. - const void* GetData() const
  1786. - void* GetModifiableData()
  1787. - VectorBuffer Read(unsigned size)
  1788. - unsigned Seek(unsigned position)
  1789. - const String GetName() const
  1790. - unsigned GetChecksum()
  1791. - unsigned GetPosition() const
  1792. - unsigned GetSize() const
  1793. - bool IsEof() const
  1794. - int ReadInt()
  1795. - short ReadShort()
  1796. - signed char ReadByte()
  1797. - unsigned ReadUInt()
  1798. - unsigned short ReadUShort()
  1799. - unsigned char ReadUByte()
  1800. - bool ReadBool()
  1801. - float ReadFloat()
  1802. - IntRect ReadIntRect()
  1803. - IntVector2 ReadIntVector2()
  1804. - Rect ReadRect()
  1805. - Vector2 ReadVector2()
  1806. - Vector3 ReadVector3()
  1807. - Vector3 ReadPackedVector3(float maxAbsCoord)
  1808. - Vector4 ReadVector4()
  1809. - Quaternion ReadQuaternion()
  1810. - Quaternion ReadPackedQuaternion()
  1811. - Color ReadColor()
  1812. - BoundingBox ReadBoundingBox()
  1813. - String ReadString()
  1814. - String ReadFileID()
  1815. - StringHash ReadStringHash()
  1816. - ShortStringHash ReadShortStringHash()
  1817. - VectorBuffer ReadBuffer()
  1818. - ResourceRef ReadResourceRef()
  1819. - ResourceRefList ReadResourceRefList()
  1820. - Variant ReadVariant()
  1821. - Variant ReadVariant(VariantType type)
  1822. - VariantVector ReadVariantVector()
  1823. - VariantMap ReadVariantMap()
  1824. - unsigned ReadVLE()
  1825. - unsigned ReadNetID()
  1826. - String ReadLine()
  1827. - unsigned Write(const VectorBuffer& buffer)
  1828. - bool WriteInt(int value)
  1829. - bool WriteShort(short value)
  1830. - bool WriteByte(signed char value)
  1831. - bool WriteUInt(unsigned value)
  1832. - bool WriteUShort(unsigned short value)
  1833. - bool WriteUByte(unsigned char value)
  1834. - bool WriteBool(bool value)
  1835. - bool WriteFloat(float value)
  1836. - bool WriteIntRect(const IntRect& value)
  1837. - bool WriteIntVector2(const IntVector2& value)
  1838. - bool WriteRect(const Rect& value)
  1839. - bool WriteVector2(const Vector2& value)
  1840. - bool WriteVector3(const Vector3& value)
  1841. - bool WritePackedVector3(const Vector3& value, float maxAbsCoord)
  1842. - bool WriteVector4(const Vector4& value)
  1843. - bool WriteQuaternion(const Quaternion& value)
  1844. - bool WritePackedQuaternion(const Quaternion& value)
  1845. - bool WriteColor(const Color& value)
  1846. - bool WriteBoundingBox(const BoundingBox& value)
  1847. - bool WriteString(const String value)
  1848. - bool WriteFileID(const String value)
  1849. - bool WriteStringHash(const StringHash& value)
  1850. - bool WriteShortStringHash(const ShortStringHash& value)
  1851. - bool WriteBuffer(const VectorBuffer& buffer)
  1852. - bool WriteResourceRef(const ResourceRef& value)
  1853. - bool WriteResourceRefList(const ResourceRefList& value)
  1854. - bool WriteVariant(const Variant& value)
  1855. - bool WriteVariantData(const Variant& value)
  1856. - bool WriteVariantVector(const VariantVector& value)
  1857. - bool WriteVariantMap(const VariantMap& value)
  1858. - bool WriteVLE(unsigned value)
  1859. - bool WriteNetID(unsigned value)
  1860. - bool WriteLine(const String value)
  1861. Properties:
  1862. - String name (readonly)
  1863. - unsigned checksum (readonly)
  1864. - unsigned position (readonly)
  1865. - unsigned size (readonly)
  1866. - bool eof (readonly)
  1867. ### TouchState
  1868. Methods:
  1869. Properties:
  1870. - int touchID
  1871. - IntVector2 position
  1872. - IntVector2 lastPosition
  1873. - IntVector2 delta
  1874. - float pressure
  1875. ### JoystickState
  1876. Methods:
  1877. - unsigned GetNumButtons() const
  1878. - unsigned GetNumAxes() const
  1879. - unsigned GetNumHats() const
  1880. - bool GetButtonDown(unsigned index) const
  1881. - bool GetButtonPress(unsigned index) const
  1882. - float GetAxisPosition(unsigned index) const
  1883. - int GetHatPosition(unsigned index) const
  1884. Properties:
  1885. - unsigned numButtons (readonly)
  1886. - unsigned numAxes (readonly)
  1887. - unsigned numHats (readonly)
  1888. ### Input : Object
  1889. Methods:
  1890. - void SetToggleFullscreen(bool enable)
  1891. - void SetMouseVisible(bool enable)
  1892. - bool OpenJoystick(unsigned index)
  1893. - void CloseJoystick(unsigned index)
  1894. - bool DetectJoysticks()
  1895. - void SetScreenKeyboardVisible(bool enable)
  1896. - bool GetKeyDown(int key) const
  1897. - bool GetKeyPress(int key) const
  1898. - bool GetMouseButtonDown(int button) const
  1899. - bool GetMouseButtonPress(int button) const
  1900. - bool GetQualifierDown(int qualifier) const
  1901. - bool GetQualifierPress(int qualifier) const
  1902. - int GetQualifiers() const
  1903. - IntVector2 GetMousePosition() const
  1904. - const IntVector2& GetMouseMove() const
  1905. - int GetMouseMoveX() const
  1906. - int GetMouseMoveY() const
  1907. - int GetMouseMoveWheel() const
  1908. - unsigned GetNumTouches() const
  1909. - TouchState* GetTouch(unsigned index) const
  1910. - unsigned GetNumJoysticks() const
  1911. - const String GetJoystickName(unsigned index) const
  1912. - JoystickState* GetJoystick(unsigned index)
  1913. - bool GetToggleFullscreen() const
  1914. - bool GetScreenKeyboardSupport() const
  1915. - bool IsScreenKeyboardVisible() const
  1916. - bool IsMouseVisible() const
  1917. - bool HasFocus()
  1918. - bool IsMinimized() const
  1919. Properties:
  1920. - int qualifiers (readonly)
  1921. - IntVector2 mousePosition (readonly)
  1922. - IntVector2& mouseMove (readonly)
  1923. - int mouseMoveX (readonly)
  1924. - int mouseMoveY (readonly)
  1925. - int mouseMoveWheel (readonly)
  1926. - unsigned numTouches (readonly)
  1927. - unsigned numJoysticks (readonly)
  1928. - bool toggleFullscreen (readonly)
  1929. - bool screenKeyboardSupport (readonly)
  1930. - bool screenKeyboardVisible
  1931. - bool mouseVisible
  1932. - bool focus (readonly)
  1933. - bool minimized (readonly)
  1934. ### LuaScriptInstance : Component
  1935. Methods:
  1936. - bool CreateObject(const String scriptObjectType)
  1937. - bool CreateObject(const String scriptFileName, const String scriptObjectType)
  1938. - void SetScriptFileName(const String scriptFileName)
  1939. - void SetScriptObjectType(const String scriptObjectType)
  1940. - void SubscribeToEvent(const String eventName, const String functionName)
  1941. - void UnsubscribeFromEvent(const String eventName)
  1942. - void UnsubscribeFromAllEvents()
  1943. - void SubscribeToEvent(void* sender, const String eventName, const String functionName)
  1944. - void UnsubscribeFromEvent(void* sender, const String eventName)
  1945. - void UnsubscribeFromEvents(void* sender)
  1946. - const String GetScriptFileName() const
  1947. - const String GetScriptObjectType() const
  1948. Properties:
  1949. - const String scriptFileName
  1950. - const String scriptObjectType
  1951. ### BoundingBox
  1952. Methods:
  1953. - BoundingBox()
  1954. - BoundingBox(const BoundingBox& box)
  1955. - BoundingBox(const Rect& rect)
  1956. - BoundingBox(const Vector3& min, const Vector3& max)
  1957. - BoundingBox(float min, float max)
  1958. - BoundingBox(const Frustum& frustum)
  1959. - BoundingBox(const Polyhedron& poly)
  1960. - BoundingBox(const Sphere& sphere)
  1961. - ~BoundingBox()
  1962. - bool operator == (const BoundingBox& rhs) const
  1963. - void Define(const BoundingBox& box)
  1964. - void Define(const Rect& rect)
  1965. - void Define(const Vector3& min, const Vector3& max)
  1966. - void Define(float min, float max)
  1967. - void Define(const Vector3& point)
  1968. - void Define(const Frustum& frustum)
  1969. - void Define(const Polyhedron& poly)
  1970. - void Define(const Sphere& sphere)
  1971. - void Merge(const Vector3& point)
  1972. - void Merge(const BoundingBox& box)
  1973. - void Merge(const Frustum& frustum)
  1974. - void Merge(const Polyhedron& poly)
  1975. - void Merge(const Sphere& sphere)
  1976. - void Clip(const BoundingBox& box)
  1977. - void Transform(const Matrix3& transform)
  1978. - void Transform(const Matrix3x4& transform)
  1979. - void Clear()
  1980. - Vector3 Center() const
  1981. - Vector3 Size() const
  1982. - Vector3 HalfSize() const
  1983. - BoundingBox Transformed(const Matrix3& transform) const
  1984. - BoundingBox Transformed(const Matrix3x4& transform) const
  1985. - Rect Projected(const Matrix4& projection) const
  1986. - Intersection IsInside(const Vector3& point) const
  1987. - Intersection IsInside(const BoundingBox& box) const
  1988. - Intersection IsInsideFast(const BoundingBox& box) const
  1989. - Intersection IsInside(const Sphere& sphere) const
  1990. - Intersection IsInsideFast(const Sphere& sphere) const
  1991. - String ToString() const
  1992. Properties:
  1993. - Vector3 min
  1994. - Vector3 max
  1995. - bool defined
  1996. - Vector3 center (readonly)
  1997. - Vector3 size (readonly)
  1998. - Vector3 halfSize (readonly)
  1999. ### Color
  2000. Methods:
  2001. - Color()
  2002. - Color(const Color& color)
  2003. - Color(const Color& color, float a)
  2004. - Color(float r, float g, float b)
  2005. - Color(float r, float g, float b, float a)
  2006. - ~Color()
  2007. - bool operator == (const Color& rhs) const
  2008. - Color operator * (float rhs) const
  2009. - Color operator + (const Color& rhs)
  2010. - unsigned ToUInt() const
  2011. - Vector3 ToHSL() const
  2012. - Vector3 ToHSV() const
  2013. - void FromHSL(float h, float s, float l, float a)
  2014. - void FromHSV(float h, float s, float v, float a)
  2015. - Vector3 ToVector3() const
  2016. - Vector4 ToVector4() const
  2017. - float SumRGB() const
  2018. - float Average() const
  2019. - float Luma() const
  2020. - float Chroma() const
  2021. - float Hue() const
  2022. - float SaturationHSL() const
  2023. - float SaturationHSV() const
  2024. - float Value() const
  2025. - float Lightness() const
  2026. - float MaxRGB() const
  2027. - float MinRGB() const
  2028. - float Range() const
  2029. - void Clip(bool clipAlpha = false)
  2030. - void Invert(bool invertAlpha = false)
  2031. - Color Lerp(const Color& rhs, float t) const
  2032. - String ToString() const
  2033. Properties:
  2034. - float r
  2035. - float g
  2036. - float b
  2037. - float a
  2038. - static const Color WHITE
  2039. - static const Color GRAY
  2040. - static const Color BLACK
  2041. - static const Color RED
  2042. - static const Color GREEN
  2043. - static const Color BLUE
  2044. - static const Color CYAN
  2045. - static const Color MAGENTA
  2046. - static const Color YELLOW
  2047. - static const Color TRANSPARENT
  2048. ### Frustum
  2049. Methods:
  2050. - Frustum()
  2051. - Frustum(const Frustum& frustum)
  2052. - ~Frustum()
  2053. - void Define(float fov, float aspectRatio, float zoom, float nearZ, float farZ, const Matrix3x4& transform = Matrix3x4::IDENTITY)
  2054. - void Define(const Vector3& near, const Vector3& far, const Matrix3x4& transform = Matrix3x4::IDENTITY)
  2055. - void Define(const BoundingBox& box, const Matrix3x4& transform = Matrix3x4::IDENTITY)
  2056. - void DefineOrtho(float orthoSize, float aspectRatio, float zoom, float nearZ, float farZ, const Matrix3x4& transform = Matrix3x4::IDENTITY)
  2057. - void Transform(const Matrix3& transform)
  2058. - void Transform(const Matrix3x4& transform)
  2059. - Intersection IsInside(const Vector3& point) const
  2060. - Intersection IsInside(const Sphere& sphere) const
  2061. - Intersection IsInsideFast(const Sphere& sphere) const
  2062. - Intersection IsInside(const BoundingBox& box) const
  2063. - Intersection IsInsideFast(const BoundingBox& box) const
  2064. - float Distance(const Vector3& point) const
  2065. - Frustum Transformed(const Matrix3& transform) const
  2066. - Frustum Transformed(const Matrix3x4& transform) const
  2067. - Rect Projected(const Matrix4& transform) const
  2068. - void UpdatePlanes()
  2069. ### Matrix3
  2070. Methods:
  2071. - Matrix3()
  2072. - Matrix3(const Matrix3& matrix)
  2073. Properties:
  2074. - Matrix3(float v00, float v01, float v02,
  2075. - float v10, float v11, float v12,
  2076. - float v20, float v21, float v22)
  2077. - ~Matrix3()
  2078. - bool operator == (const Matrix3& rhs) const
  2079. - Vector3 operator * (const Vector3& rhs) const
  2080. - Matrix3 operator + (const Matrix3& rhs) const
  2081. - Matrix3 operator - (const Matrix3& rhs) const
  2082. - Matrix3 operator * (float rhs) const
  2083. - Matrix3 operator * (const Matrix3& rhs) const
  2084. - void SetScale(const Vector3& scale)
  2085. - void SetScale(float scale)
  2086. - Vector3 Scale() const
  2087. - Matrix3 Transpose() const
  2088. - Matrix3 Scaled(const Vector3& scale) const
  2089. - bool Equals(const Matrix3& rhs) const
  2090. - Matrix3 Inverse() const
  2091. - float m00
  2092. - float m01
  2093. - float m02
  2094. - float m10
  2095. - float m11
  2096. - float m12
  2097. - float m20
  2098. - float m21
  2099. - float m22
  2100. - static const Matrix3 ZERO
  2101. - static const Matrix3 IDENTITY
  2102. ### Matrix3x4
  2103. Methods:
  2104. - Matrix3x4()
  2105. - Matrix3x4(const Matrix3x4& matrix)
  2106. - Matrix3x4(const Matrix3& matrix)
  2107. - Matrix3x4(const Matrix4& matrix)
  2108. Properties:
  2109. - Matrix3x4(float v00, float v01, float v02, float v03,
  2110. - float v10, float v11, float v12, float v13,
  2111. - float v20, float v21, float v22, float v23)
  2112. - Matrix3x4(const Vector3& translation, const Quaternion& rotation, float scale)
  2113. - Matrix3x4(const Vector3& translation, const Quaternion& rotation, const Vector3& scale)
  2114. - bool operator == (const Matrix3x4& rhs) const
  2115. - Vector3 operator * (const Vector3& rhs) const
  2116. - Vector3 operator * (const Vector4& rhs) const
  2117. - Matrix3x4 operator + (const Matrix3x4& rhs) const
  2118. - Matrix3x4 operator - (const Matrix3x4& rhs) const
  2119. - Matrix3x4 operator * (float rhs) const
  2120. - Matrix3x4 operator * (const Matrix3x4& rhs) const
  2121. - Matrix4 operator * (const Matrix4& rhs) const
  2122. - void SetTranslation(const Vector3& translation)
  2123. - void SetRotation(const Matrix3& rotation)
  2124. - void SetScale(const Vector3& scale)
  2125. - void SetScale(float scale)
  2126. - Matrix3 ToMatrix3() const
  2127. - Matrix4 ToMatrix4() const
  2128. - Matrix3 RotationMatrix() const
  2129. - Vector3 Translation() const
  2130. - Quaternion Rotation() const
  2131. - Vector3 Scale() const
  2132. - bool Equals(const Matrix3x4& rhs) const
  2133. - void Decompose(Vector3& translation, Quaternion& rotation, Vector3& scale) const
  2134. - Matrix3x4 Inverse() const
  2135. - float m00
  2136. - float m01
  2137. - float m02
  2138. - float m03
  2139. - float m10
  2140. - float m11
  2141. - float m12
  2142. - float m13
  2143. - float m20
  2144. - float m21
  2145. - float m22
  2146. - float m23
  2147. - static const Matrix3x4 ZERO
  2148. - static const Matrix3x4 IDENTITY
  2149. ### Matrix4
  2150. Methods:
  2151. - Matrix4()
  2152. - Matrix4(const Matrix4& matrix)
  2153. - Matrix4(const Matrix3& matrix)
  2154. Properties:
  2155. - Matrix4(float v00, float v01, float v02, float v03,
  2156. - float v10, float v11, float v12, float v13,
  2157. - float v20, float v21, float v22, float v23,
  2158. - float v30, float v31, float v32, float v33)
  2159. - ~Matrix4()
  2160. - bool operator == (const Matrix4& rhs) const
  2161. - Vector3 operator * (const Vector3& rhs) const
  2162. - Vector4 operator * (const Vector4& rhs) const
  2163. - Matrix4 operator + (const Matrix4& rhs) const
  2164. - Matrix4 operator - (const Matrix4& rhs) const
  2165. - Matrix4 operator * (float rhs) const
  2166. - Matrix4 operator * (const Matrix4& rhs) const
  2167. - void SetTranslation(const Vector3& translation)
  2168. - void SetRotation(const Matrix3& rotation)
  2169. - void SetScale(const Vector3& scale)
  2170. - void SetScale(float scale)
  2171. - Matrix3 ToMatrix3() const
  2172. - Matrix3 RotationMatrix() const
  2173. - Vector3 Translation() const
  2174. - Quaternion Rotation() const
  2175. - Vector3 Scale() const
  2176. - Matrix4 Transpose() const
  2177. - bool Equals(const Matrix4& rhs) const
  2178. - void Decompose(Vector3& translation, Quaternion& rotation, Vector3& scale) const
  2179. - Matrix4 Inverse() const
  2180. - float m00
  2181. - float m01
  2182. - float m02
  2183. - float m03
  2184. - float m10
  2185. - float m11
  2186. - float m12
  2187. - float m13
  2188. - float m20
  2189. - float m21
  2190. - float m22
  2191. - float m23
  2192. - float m30
  2193. - float m31
  2194. - float m32
  2195. - float m33
  2196. - static const Matrix4 ZERO
  2197. - static const Matrix4 IDENTITY
  2198. ### Plane
  2199. Methods:
  2200. - Plane()
  2201. - Plane(const Plane& plane)
  2202. - Plane(const Vector3& v0, const Vector3& v1, const Vector3& v2)
  2203. - Plane(const Vector3& normal, const Vector3& point)
  2204. - Plane(const Vector4& plane)
  2205. - ~Plane()
  2206. - void Define(const Vector3& v0, const Vector3& v1, const Vector3& v2)
  2207. - void Define(const Vector3& normal, const Vector3& point)
  2208. - void Define(const Vector4& plane)
  2209. - void Transform(const Matrix3& transform)
  2210. - void Transform(const Matrix3x4& transform)
  2211. - void Transform(const Matrix4& transform)
  2212. - float Distance(const Vector3& point) const
  2213. - Vector3 Reflect(const Vector3& direction) const
  2214. - Matrix3x4 ReflectionMatrix() const
  2215. - Plane Transformed(const Matrix3& transform) const
  2216. - Plane Transformed(const Matrix3x4& transform) const
  2217. - Plane Transformed(const Matrix4& transform) const
  2218. - Vector4 ToVector4() const
  2219. Properties:
  2220. - Vector3 normal
  2221. - Vector3 absNormal
  2222. - float d
  2223. - static const Plane UP
  2224. ### Polyhedron
  2225. Methods:
  2226. - Polyhedron()
  2227. - Polyhedron(const Polyhedron& polyhedron)
  2228. - Polyhedron(const BoundingBox& box)
  2229. - Polyhedron(const Frustum& frustum)
  2230. - ~Polyhedron()
  2231. - void Define(const BoundingBox& box)
  2232. - void Define(const Frustum& frustum)
  2233. - void AddFace(const Vector3& v0, const Vector3& v1, const Vector3& v2)
  2234. - void AddFace(const Vector3& v0, const Vector3& v1, const Vector3& v2, const Vector3& v3)
  2235. - void Clip(const Plane& plane)
  2236. - void Clip(const BoundingBox& box)
  2237. - void Clip(const Frustum& box)
  2238. - void Clear()
  2239. - void Transform(const Matrix3& transform)
  2240. - void Transform(const Matrix3x4& transform)
  2241. - Polyhedron Transformed(const Matrix3& transform) const
  2242. - Polyhedron Transformed(const Matrix3x4& transform) const
  2243. - bool Empty() const
  2244. Properties:
  2245. - bool empty (readonly)
  2246. ### Quaternion
  2247. Methods:
  2248. - Quaternion()
  2249. - Quaternion(const Quaternion& quat)
  2250. - Quaternion(float w, float x, float y, float z)
  2251. - Quaternion(float angle, const Vector3& axis)
  2252. - Quaternion(float x, float y, float z)
  2253. - Quaternion(const Vector3& start, const Vector3& end)
  2254. - Quaternion(const Vector3& xAxis, const Vector3& yAxis, const Vector3& zAxis)
  2255. - Quaternion(const Matrix3& matrix)
  2256. - ~Quaternion()
  2257. - bool operator == (const Quaternion& rhs) const
  2258. - Quaternion operator * (float rhs) const
  2259. - Quaternion operator - () const
  2260. - bool operator == (const Quaternion& rhs) const
  2261. - Quaternion operator * (float rhs) const
  2262. - Quaternion operator - () const
  2263. - Quaternion operator + (const Quaternion& rhs) const
  2264. - Quaternion operator - (const Quaternion& rhs) const
  2265. - Quaternion operator * (const Quaternion& rhs) const
  2266. - Vector3 operator * (const Vector3& rhs) const
  2267. - void FromAngleAxis(float angle, const Vector3& axis)
  2268. - void FromEulerAngles(float x, float y, float z)
  2269. - void FromRotationTo(const Vector3& start, const Vector3& end)
  2270. - void FromAxes(const Vector3& xAxis, const Vector3& yAxis, const Vector3& zAxis)
  2271. - void FromRotationMatrix(const Matrix3& matrix)
  2272. - void FromLookRotation(const Vector3& direction, const Vector3& up)
  2273. - void Normalize()
  2274. - Quaternion Normalized() const
  2275. - Quaternion Inverse() const
  2276. - float LengthSquared() const
  2277. - float DotProduct(const Quaternion& rhs) const
  2278. - bool Equals(const Quaternion& rhs) const
  2279. - Quaternion Conjugate() const
  2280. - Vector3 EulerAngles() const
  2281. - float YawAngle() const
  2282. - float PitchAngle() const
  2283. - float RollAngle() const
  2284. - Matrix3 RotationMatrix() const
  2285. - Quaternion Slerp(Quaternion rhs, float t) const
  2286. - Quaternion Nlerp(Quaternion rhs, float t, bool shortestPath) const
  2287. - String ToString() const
  2288. Properties:
  2289. - float w
  2290. - float x
  2291. - float y
  2292. - float z
  2293. - static const Quaternion IDENTITY
  2294. ### Ray
  2295. Methods:
  2296. - Ray()
  2297. - Ray(const Vector3& origin, const Vector3& direction)
  2298. - Ray(const Ray& ray)
  2299. - ~Ray()
  2300. - bool operator == (const Ray& rhs) const
  2301. - void Define(const Vector3& origin, const Vector3& direction)
  2302. - Vector3 Project(const Vector3& point) const
  2303. - float Distance(const Vector3& point) const
  2304. - Vector3 ClosestPoint(const Ray& ray) const
  2305. - float HitDistance(const Plane& plane) const
  2306. - float HitDistance(const BoundingBox& box) const
  2307. - float HitDistance(const Frustum& frustum, bool solidInside = true) const
  2308. - float HitDistance(const Sphere& sphere) const
  2309. - float HitDistance(const Vector3& v0, const Vector3& v1, const Vector3& v2) const
  2310. - Ray Transformed(const Matrix3x4& transform) const
  2311. Properties:
  2312. - Vector3 origin
  2313. - Vector3 direction
  2314. ### Rect
  2315. Methods:
  2316. - Rect()
  2317. - Rect(const Rect& rect)
  2318. - Rect(const Vector2& min, const Vector2& max)
  2319. - Rect(float left, float top, float right, float bottom)
  2320. - Rect(const Vector4& vector)
  2321. - ~Rect()
  2322. - bool operator == (const Rect& rhs) const
  2323. - void Define(const Rect& rect)
  2324. - void Define(const Vector2& min, const Vector2& max)
  2325. - void Define(const Vector2& point)
  2326. - void Merge(const Vector2& point)
  2327. - void Merge(const Rect& rect)
  2328. - void Clear()
  2329. - void Clip(const Rect& rect)
  2330. - Vector2 Center() const
  2331. - Vector2 Size() const
  2332. - Vector2 HalfSize() const
  2333. - bool Equals(const Rect& rhs) const
  2334. - Intersection IsInside(const Vector2& point) const
  2335. - Vector4 ToVector4() const
  2336. - String ToString() const
  2337. Properties:
  2338. - Vector2 min
  2339. - Vector2 max
  2340. - static const Rect FULL
  2341. - static const Rect POSITIVE
  2342. - static const Rect ZERO
  2343. - Vector2 center (readonly)
  2344. - Vector2 size (readonly)
  2345. - Vector2 halfSize (readonly)
  2346. ### IntRect
  2347. Methods:
  2348. - IntRect()
  2349. - IntRect(int left, int top, int right, int bottom)
  2350. - ~IntRect()
  2351. - bool operator == (const IntRect& rhs) const
  2352. - IntVector2 Size() const
  2353. - int Width() const
  2354. - int Height() const
  2355. - Intersection IsInside(const IntVector2& point) const
  2356. Properties:
  2357. - int left
  2358. - int top
  2359. - int right
  2360. - int bottom
  2361. - static const IntRect ZERO
  2362. - IntVector2 size (readonly)
  2363. - int width (readonly)
  2364. - int height (readonly)
  2365. ### Sphere
  2366. Methods:
  2367. - Sphere()
  2368. - Sphere(const Sphere& sphere)
  2369. - Sphere(const Vector3& center, float radius)
  2370. - Sphere(const BoundingBox& box)
  2371. - Sphere(const Frustum& frustum)
  2372. - Sphere(const Polyhedron& poly)
  2373. - ~Sphere()
  2374. - bool operator == (const Sphere& rhs) const
  2375. - void Define(const Sphere& sphere)
  2376. - void Define(const Vector3& center, float radius)
  2377. - void Define(const BoundingBox& box)
  2378. - void Define(const Frustum& frustum)
  2379. - void Define(const Polyhedron& poly)
  2380. - void Merge(const Vector3& point)
  2381. - void Merge(const BoundingBox& box)
  2382. - void Merge(const Frustum& frustum)
  2383. - void Merge(const Polyhedron& poly)
  2384. - void Merge(const Sphere& sphere)
  2385. - void Clear()
  2386. - Intersection IsInside(const Vector3& point) const
  2387. - Intersection IsInside(const Sphere& sphere) const
  2388. - Intersection IsInsideFast(const Sphere& sphere) const
  2389. - Intersection IsInside(const BoundingBox& box) const
  2390. - Intersection IsInsideFast(const BoundingBox& box) const
  2391. - float Distance(const Vector3& point) const
  2392. Properties:
  2393. - Vector3 center
  2394. - float radius
  2395. - bool defined
  2396. ### StringHash
  2397. Methods:
  2398. - StringHash()
  2399. - StringHash(const StringHash& rhs)
  2400. - StringHash(unsigned value)
  2401. - StringHash(const String str)
  2402. - ~StringHash()
  2403. - StringHash operator + (const StringHash& rhs) const
  2404. - bool operator == (const StringHash& rhs) const
  2405. - bool operator < (const StringHash& rhs) const
  2406. - operator bool () const
  2407. - unsigned Value() const
  2408. - String ToString() const
  2409. - unsigned ToHash() const
  2410. - static unsigned Calculate(const char* str)
  2411. Properties:
  2412. - static const StringHash ZERO
  2413. - unsigned value (readonly)
  2414. ### ShortStringHash
  2415. Methods:
  2416. - ShortStringHash()
  2417. - ShortStringHash(const ShortStringHash& rhs)
  2418. - ShortStringHash(const StringHash& rhs)
  2419. - ShortStringHash(unsigned short value)
  2420. - ShortStringHash(const String str)
  2421. - ~ShortStringHash()
  2422. - ShortStringHash operator + (const ShortStringHash& rhs) const
  2423. - bool operator == (const ShortStringHash& rhs) const
  2424. - bool operator < (const ShortStringHash& rhs) const
  2425. - unsigned short Value() const
  2426. - static unsigned short Calculate(const char* str)
  2427. Properties:
  2428. - static const ShortStringHash ZERO
  2429. - unsigned short value (readonly)
  2430. ### Vector2
  2431. Methods:
  2432. - Vector2()
  2433. - Vector2(const Vector2& vector)
  2434. - Vector2(float x, float y)
  2435. - ~Vector2()
  2436. - bool operator == (const Vector2& rhs) const
  2437. - Vector2 operator + (const Vector2& rhs) const
  2438. - Vector2 operator - () const
  2439. - Vector2 operator - (const Vector2& rhs) const
  2440. - Vector2 operator * (float rhs) const
  2441. - Vector2 operator * (const Vector2& rhs) const
  2442. - Vector2 operator / (float rhs) const
  2443. - Vector2 operator / (const Vector2& rhs) const
  2444. - Vector2 operator / (const Vector2& rhs) const
  2445. - void Normalize()
  2446. - float Length() const
  2447. - float LengthSquared() const
  2448. - float DotProduct(const Vector2& rhs) const
  2449. - float AbsDotProduct(const Vector2& rhs) const
  2450. - Vector2 Abs() const
  2451. - Vector2 Lerp(const Vector2& rhs, float t) const
  2452. - bool Equals(const Vector2& rhs) const
  2453. - Vector2 Normalized() const
  2454. - String ToString() const
  2455. Properties:
  2456. - float x
  2457. - float y
  2458. - static const Vector2 ZERO
  2459. - static const Vector2 LEFT
  2460. - static const Vector2 RIGHT
  2461. - static const Vector2 UP
  2462. - static const Vector2 DOWN
  2463. - static const Vector2 ONE
  2464. ### IntVector2
  2465. Methods:
  2466. - IntVector2()
  2467. - IntVector2(int x, int y)
  2468. - IntVector2(const IntVector2& rhs)
  2469. - ~IntVector2()
  2470. - bool operator == (const IntVector2& rhs) const
  2471. - IntVector2 operator + (const IntVector2& rhs) const
  2472. - IntVector2 operator - () const
  2473. - IntVector2 operator - (const IntVector2& rhs) const
  2474. - IntVector2 operator * (int rhs) const
  2475. - IntVector2 operator / (int rhs) const
  2476. - IntVector2 operator / (int rhs) const
  2477. - String ToString() const
  2478. Properties:
  2479. - int x
  2480. - int y
  2481. - static const IntVector2 ZERO
  2482. ### Vector3
  2483. Methods:
  2484. - Vector3()
  2485. - Vector3(const Vector3& vector)
  2486. - Vector3(const Vector2& vector, float z)
  2487. - Vector3(float x, float y, float z)
  2488. - ~Vector3()
  2489. - bool operator == (const Vector3& rhs) const
  2490. - Vector3 operator + (const Vector3& rhs) const
  2491. - Vector3 operator - () const
  2492. - Vector3 operator - (const Vector3& rhs) const
  2493. - Vector3 operator * (float rhs) const
  2494. - Vector3 operator * (const Vector3& rhs) const
  2495. - Vector3 operator / (float rhs) const
  2496. - Vector3 operator / (const Vector3& rhs) const
  2497. - Vector3 operator / (const Vector3& rhs) const
  2498. - void Normalize()
  2499. - float Length() const
  2500. - float LengthSquared() const
  2501. - float DotProduct(const Vector3& rhs) const
  2502. - float AbsDotProduct(const Vector3& rhs) const
  2503. - Vector3 CrossProduct(const Vector3& rhs) const
  2504. - Vector3 Abs() const
  2505. - Vector3 Lerp(const Vector3& rhs, float t) const
  2506. - bool Equals(const Vector3& rhs) const
  2507. - float Angle(const Vector3& rhs) const
  2508. - Vector3 Normalized() const
  2509. - String ToString() const
  2510. Properties:
  2511. - float x
  2512. - float y
  2513. - float z
  2514. - static const Vector3 ZERO
  2515. - static const Vector3 LEFT
  2516. - static const Vector3 RIGHT
  2517. - static const Vector3 UP
  2518. - static const Vector3 DOWN
  2519. - static const Vector3 FORWARD
  2520. - static const Vector3 BACK
  2521. - static const Vector3 ONE
  2522. ### Vector4
  2523. Methods:
  2524. - Vector4()
  2525. - Vector4(const Vector4& vector)
  2526. - Vector4(const Vector3& vector, float w)
  2527. - Vector4(float x, float y, float z, float w)
  2528. - ~Vector4()
  2529. - bool operator == (const Vector4& rhs) const
  2530. - Vector4 operator + (const Vector4& rhs) const
  2531. - Vector4 operator - () const
  2532. - Vector4 operator - (const Vector4& rhs) const
  2533. - Vector4 operator * (float rhs) const
  2534. - Vector4 operator * (const Vector4& rhs) const
  2535. - Vector4 operator / (float rhs) const
  2536. - Vector4 operator / (const Vector4& rhs) const
  2537. - Vector4 operator / (const Vector4& rhs) const
  2538. - float DotProduct(const Vector4& rhs) const
  2539. - float AbsDotProduct(const Vector4& rhs) const
  2540. - Vector4 Abs() const
  2541. - Vector4 Lerp(const Vector4& rhs, float t) const
  2542. - bool Equals(const Vector4& rhs) const
  2543. - String ToString() const
  2544. Properties:
  2545. - float x
  2546. - float y
  2547. - float z
  2548. - float w
  2549. - static const Vector4 ZERO
  2550. - static const Vector4 ONE
  2551. ### Navigable : Component
  2552. Methods:
  2553. - void SetRecursive(bool enable)
  2554. - bool IsRecursive() const
  2555. Properties:
  2556. - bool recursive
  2557. ### NavigationGeometryInfo
  2558. Methods:
  2559. Properties:
  2560. - Component* component
  2561. - unsigned lodLevel
  2562. - Matrix3x4 transform
  2563. - BoundingBox boundingBox
  2564. ### NavigationMesh : Component
  2565. Methods:
  2566. - void SetTileSize(int size)
  2567. - void SetCellSize(float size)
  2568. - void SetCellHeight(float height)
  2569. - void SetAgentHeight(float height)
  2570. - void SetAgentRadius(float radius)
  2571. - void SetAgentMaxClimb(float maxClimb)
  2572. - void SetAgentMaxSlope(float maxSlope)
  2573. - void SetRegionMinSize(float size)
  2574. - void SetRegionMergeSize(float size)
  2575. - void SetEdgeMaxLength(float length)
  2576. - void SetEdgeMaxError(float error)
  2577. - void SetDetailSampleDistance(float distance)
  2578. - void SetDetailSampleMaxError(float error)
  2579. - void SetPadding(const Vector3& padding)
  2580. - bool Build()
  2581. - bool Build(const BoundingBox& boundingBox)
  2582. - Vector3 FindNearestPoint(const Vector3& point, const Vector3& extents = Vector3::ONE)
  2583. - Vector3 MoveAlongSurface(const Vector3& start, const Vector3& end, const Vector3& extents=Vector3::ONE, int maxVisited=3)
  2584. - const PODVector<Vector3>& FindPath(const Vector3& start, const Vector3& end, const Vector3& extents = Vector3::ONE)
  2585. - Vector3 GetRandomPoint()
  2586. - Vector3 GetRandomPointInCircle(const Vector3& center, float radius, const Vector3& extents = Vector3::ONE)
  2587. - float GetDistanceToWall(const Vector3& point, float radius, const Vector3& extents = Vector3::ONE)
  2588. - Vector3 Raycast(const Vector3& start, const Vector3& end, const Vector3& extents = Vector3::ONE)
  2589. - void DrawDebugGeometry(bool depthTest)
  2590. - int GetTileSize() const
  2591. - float GetCellSize() const
  2592. - float GetCellHeight() const
  2593. - float GetAgentHeight() const
  2594. - float GetAgentRadius() const
  2595. - float GetAgentMaxClimb() const
  2596. - float GetAgentMaxSlope() const
  2597. - float GetRegionMinSize() const
  2598. - float GetRegionMergeSize() const
  2599. - float GetEdgeMaxLength() const
  2600. - float GetEdgeMaxError() const
  2601. - float GetDetailSampleDistance() const
  2602. - float GetDetailSampleMaxError() const
  2603. - const Vector3& GetPadding() const
  2604. - bool IsInitialized() const
  2605. - const BoundingBox& GetBoundingBox() const
  2606. - BoundingBox GetWorldBoundingBox() const
  2607. - IntVector2 GetNumTiles() const
  2608. Properties:
  2609. - int tileSize
  2610. - float cellSize
  2611. - float cellHeight
  2612. - float agentHeight
  2613. - float agentRadius
  2614. - float agentMaxClimb
  2615. - float agentMaxSlope
  2616. - float regionMinSize
  2617. - float regionMergeSize
  2618. - float edgeMaxLength
  2619. - float edgeMaxError
  2620. - float detailSampleDistance
  2621. - float detailSampleMaxError
  2622. - Vector3& padding
  2623. - bool initialized (readonly)
  2624. - BoundingBox& boundingBox (readonly)
  2625. - BoundingBox worldBoundingBox (readonly)
  2626. - IntVector2 numTiles (readonly)
  2627. ### OffMeshConnection : Component
  2628. Methods:
  2629. - void SetEndPoint(Node* node)
  2630. - void SetRadius(float radius)
  2631. - void SetBidirectional(bool enabled)
  2632. - Node* GetEndPoint() const
  2633. - float GetRadius() const
  2634. - bool IsBidirectional() const
  2635. Properties:
  2636. - Node* endPoint
  2637. - float radius
  2638. - bool bidirectional
  2639. ### RemoteEvent
  2640. Methods:
  2641. Properties:
  2642. - unsigned senderID
  2643. - StringHash eventType
  2644. - VariantMap eventData
  2645. - bool inOrder
  2646. ### Connection : Object
  2647. Methods:
  2648. - void SendMessage(int msgID, bool reliable, bool inOrder, const VectorBuffer& msg, unsigned contentID = 0)
  2649. - void SendRemoteEvent(StringHash eventType, bool inOrder, const VariantMap& eventData = Variant::emptyVariantMap)
  2650. - void SendRemoteEvent(const String eventType, bool inOrder, const VariantMap& eventData = Variant::emptyVariantMap)
  2651. - void SendRemoteEvent(Node* node, StringHash eventType, bool inOrder, const VariantMap& eventData = Variant::emptyVariantMap)
  2652. - void SendRemoteEvent(Node* node, const String eventType, bool inOrder, const VariantMap& eventData = Variant::emptyVariantMap)
  2653. - void SetScene(Scene* newScene)
  2654. - void SetIdentity(const VariantMap& identity)
  2655. - void SetControls(const Controls& newControls)
  2656. - void SetPosition(const Vector3& position)
  2657. - void SetConnectPending(bool connectPending)
  2658. - void SetLogStatistics(bool enable)
  2659. - void Disconnect(int waitMSec = 0)
  2660. - void SendServerUpdate()
  2661. - void SendClientUpdate()
  2662. - void SendRemoteEvents()
  2663. - void SendPackages()
  2664. - void ProcessPendingLatestData()
  2665. - bool ProcessMessage(int msgID, MemoryBuffer& msg)
  2666. - const VariantMap& GetIdentity() const
  2667. - Scene* GetScene() const
  2668. - const Controls& GetControls() const
  2669. - const Vector3& GetPosition() const
  2670. - bool IsClient() const
  2671. - bool IsConnected() const
  2672. - bool IsConnectPending() const
  2673. - bool IsSceneLoaded() const
  2674. - bool GetLogStatistics() const
  2675. - String GetAddress() const
  2676. - unsigned short GetPort() const
  2677. - String ToString() const
  2678. - unsigned GetNumDownloads() const
  2679. - const String GetDownloadName() const
  2680. - float GetDownloadProgress() const
  2681. Properties:
  2682. - VariantMap& identity
  2683. - Scene* scene
  2684. - Controls& controls
  2685. - Vector3& position
  2686. - bool client (readonly)
  2687. - bool connected (readonly)
  2688. - bool connectPending
  2689. - bool sceneLoaded (readonly)
  2690. - bool logStatistics
  2691. - String address (readonly)
  2692. - unsigned short port (readonly)
  2693. - unsigned numDownloads (readonly)
  2694. - String downloadName (readonly)
  2695. - float downloadProgress (readonly)
  2696. ### Controls
  2697. Methods:
  2698. - Controls()
  2699. - void Reset()
  2700. - void Set(unsigned buttons, bool down = true)
  2701. - bool IsDown(unsigned button) const
  2702. - bool IsPressed(unsigned button, const Controls& previousControls) const
  2703. Properties:
  2704. - unsigned buttons
  2705. - float yaw
  2706. - float pitch
  2707. - VariantMap extraData
  2708. ### HttpRequest : Deserializer
  2709. Methods:
  2710. - const String GetURL() const
  2711. - const String GetVerb() const
  2712. - String GetError() const
  2713. - HttpRequestState GetState() const
  2714. - unsigned GetAvailableSize() const
  2715. - bool IsOpen() const
  2716. Properties:
  2717. - String URL (readonly)
  2718. - String verb (readonly)
  2719. - String error (readonly)
  2720. - HttpRequestState state (readonly)
  2721. - unsigned availableSize (readonly)
  2722. - bool open (readonly)
  2723. ### Network
  2724. Methods:
  2725. - bool Connect(const String address, unsigned short port, Scene* scene, const VariantMap& identity = Variant::emptyVariantMap)
  2726. - void Disconnect(int waitMSec = 0)
  2727. - bool StartServer(unsigned short port)
  2728. - void StopServer()
  2729. - void BroadcastMessage(int msgID, bool reliable, bool inOrder, const VectorBuffer& msg, unsigned contentID = 0)
  2730. - void BroadcastRemoteEvent(StringHash eventType, bool inOrder, const VariantMap& eventData = Variant::emptyVariantMap)
  2731. - void BroadcastRemoteEvent(const String eventType, bool inOrder, const VariantMap& eventData = Variant::emptyVariantMap)
  2732. - void BroadcastRemoteEvent(Scene* scene, StringHash eventType, bool inOrder, const VariantMap& eventData = Variant::emptyVariantMap)
  2733. - void BroadcastRemoteEvent(Scene* scene, const String eventType, bool inOrder, const VariantMap& eventData = Variant::emptyVariantMap)
  2734. - void BroadcastRemoteEvent(Node* node, StringHash eventType, bool inOrder, const VariantMap& eventData = Variant::emptyVariantMap)
  2735. - void BroadcastRemoteEvent(Node* node, const String eventType, bool inOrder, const VariantMap& eventData = Variant::emptyVariantMap)
  2736. - void SetUpdateFps(int fps)
  2737. - void RegisterRemoteEvent(StringHash eventType)
  2738. - void RegisterRemoteEvent(const String eventType)
  2739. - void UnregisterRemoteEvent(StringHash eventType)
  2740. - void UnregisterRemoteEvent(const String eventType)
  2741. - void UnregisterAllRemoteEvents()
  2742. - void SetPackageCacheDir(const String path)
  2743. - HttpRequest* MakeHttpRequest(const String url, const String verb = String::EMPTY, const Vector<String>& headers = Vector<String>(), const String postData = String::EMPTY)
  2744. - int GetUpdateFps() const
  2745. - Connection* GetServerConnection() const
  2746. - bool IsServerRunning() const
  2747. - bool CheckRemoteEvent(StringHash eventType) const
  2748. - const String GetPackageCacheDir() const
  2749. Properties:
  2750. - int updateFps
  2751. - Connection* serverConnection (readonly)
  2752. - bool serverRunning (readonly)
  2753. - String packageCacheDir
  2754. ### NetworkPriority : Component
  2755. Methods:
  2756. - void SetBasePriority(float priority)
  2757. - void SetDistanceFactor(float factor)
  2758. - void SetMinPriority(float priority)
  2759. - void SetAlwaysUpdateOwner(bool enable)
  2760. - float GetBasePriority() const
  2761. - float GetDistanceFactor() const
  2762. - float GetMinPriority() const
  2763. - bool GetAlwaysUpdateOwner() const
  2764. - bool CheckUpdate(float distance, float& accumulator)
  2765. Properties:
  2766. - float basePriority
  2767. - float distanceFactor
  2768. - float minPriority
  2769. - bool alwaysUpdateOwner
  2770. ### CollisionShape : Component
  2771. Methods:
  2772. - void SetBox(const Vector3& size, const Vector3& position = Vector3::ZERO, const Quaternion& rotation = Quaternion::IDENTITY)
  2773. - void SetSphere(float diameter, const Vector3& position = Vector3::ZERO, const Quaternion& rotation = Quaternion::IDENTITY)
  2774. - void SetStaticPlane(const Vector3& position = Vector3::ZERO, const Quaternion& rotation = Quaternion::IDENTITY)
  2775. - void SetCylinder(float diameter, float height, const Vector3& position = Vector3::ZERO, const Quaternion& rotation = Quaternion::IDENTITY)
  2776. - void SetCapsule(float diameter, float height, const Vector3& position = Vector3::ZERO, const Quaternion& rotation = Quaternion::IDENTITY)
  2777. - void SetCone(float diameter, float height, const Vector3& position = Vector3::ZERO, const Quaternion& rotation = Quaternion::IDENTITY)
  2778. - void SetTriangleMesh(Model* model, unsigned lodLevel = 0, const Vector3& scale = Vector3::ONE, const Vector3& position = Vector3::ZERO, const Quaternion& rotation = Quaternion::IDENTITY)
  2779. - void SetConvexHull(Model* model, unsigned lodLevel = 0, const Vector3& scale = Vector3::ONE, const Vector3& position = Vector3::ZERO, const Quaternion& rotation = Quaternion::IDENTITY)
  2780. - void SetTerrain()
  2781. - void SetShapeType(ShapeType type)
  2782. - void SetSize(const Vector3& size)
  2783. - void SetPosition(const Vector3& position)
  2784. - void SetRotation(const Quaternion& rotation)
  2785. - void SetTransform(const Vector3& position, const Quaternion& rotation)
  2786. - void SetMargin(float margin)
  2787. - void SetModel(Model* model)
  2788. - void SetLodLevel(unsigned lodLevel)
  2789. - PhysicsWorld* GetPhysicsWorld() const
  2790. - ShapeType GetShapeType() const
  2791. - const Vector3& GetSize() const
  2792. - const Vector3& GetPosition() const
  2793. - const Quaternion& GetRotation() const
  2794. - float GetMargin() const
  2795. - Model* GetModel() const
  2796. - unsigned GetLodLevel() const
  2797. - BoundingBox GetWorldBoundingBox() const
  2798. Properties:
  2799. - PhysicsWorld* physicsWorld (readonly)
  2800. - ShapeType shapeType
  2801. - Vector3& size
  2802. - Vector3& position
  2803. - Quaternion& rotation
  2804. - float margin
  2805. - Model* model
  2806. - unsigned lodLevel
  2807. - tolua_readonlyBoundingBox worldBoundingBox (readonly)
  2808. - ResourceRef modelAttr
  2809. ### Constraint : Component
  2810. Methods:
  2811. - void SetConstraintType(ConstraintType type)
  2812. - void SetOtherBody(RigidBody* body)
  2813. - void SetPosition(const Vector3& position)
  2814. - void SetRotation(const Quaternion& rotation)
  2815. - void SetAxis(const Vector3& axis)
  2816. - void SetOtherPosition(const Vector3& position)
  2817. - void SetOtherRotation(const Quaternion& rotation)
  2818. - void SetOtherAxis(const Vector3& axis)
  2819. - void SetWorldPosition(const Vector3& position)
  2820. - void SetHighLimit(const Vector2& limit)
  2821. - void SetLowLimit(const Vector2& limit)
  2822. - void SetERP(float erp)
  2823. - void SetCFM(float cfm)
  2824. - void SetDisableCollision(bool disable)
  2825. - PhysicsWorld* GetPhysicsWorld() const
  2826. - ConstraintType GetConstraintType() const
  2827. - RigidBody* GetOwnBody() const
  2828. - RigidBody* GetOtherBody() const
  2829. - const Vector3& GetPosition() const
  2830. - const Quaternion& GetRotation() const
  2831. - const Vector3& GetOtherPosition() const
  2832. - const Quaternion& GetOtherRotation() const
  2833. - Vector3 GetWorldPosition() const
  2834. - const Vector2& GetHighLimit() const
  2835. - const Vector2& GetLowLimit() const
  2836. - float GetERP() const
  2837. - float GetCFM() const
  2838. - bool GetDisableCollision() const
  2839. Properties:
  2840. - PhysicsWorld* physicsWorld (readonly)
  2841. - ConstraintType constraintType
  2842. - RigidBody* ownBody (readonly)
  2843. - RigidBody* otherBody
  2844. - Vector3& position
  2845. - Quaternion& rotation
  2846. - Vector3& otherPosition
  2847. - Quaternion& otherRotation
  2848. - Vector3 worldPosition
  2849. - Vector2& highLimit
  2850. - Vector2& lowLimit
  2851. - float ERP
  2852. - float CFM
  2853. - bool disableCollision
  2854. ### PhysicsRaycastResult
  2855. Methods:
  2856. - PhysicsRaycastResult()
  2857. Properties:
  2858. - Vector3 position
  2859. - Vector3 normal
  2860. - float distance
  2861. - RigidBody* body
  2862. ### PhysicsWorld : Component
  2863. Methods:
  2864. - void Update(float timeStep)
  2865. - void UpdateCollisions()
  2866. - void SetFps(int fps)
  2867. - void SetGravity(Vector3 gravity)
  2868. - void SetNumIterations(int num)
  2869. - void SetInterpolation(bool enable)
  2870. - void SetInternalEdge(bool enable)
  2871. - void SetSplitImpulse(bool enable)
  2872. - void SetMaxNetworkAngularVelocity(float velocity)
  2873. - const PODVector<PhysicsRaycastResult>& Raycast(const Ray& ray, float maxDistance, unsigned collisionMask = M_MAX_UNSIGNED)
  2874. - PhysicsRaycastResult RaycastSingle(const Ray& ray, float maxDistance, unsigned collisionMask = M_MAX_UNSIGNED)
  2875. - PhysicsRaycastResult SphereCast(const Ray& ray, float radius, float maxDistance, unsigned collisionMask = M_MAX_UNSIGNED)
  2876. - void DrawDebugGeometry(bool depthTest)
  2877. - void RemoveCachedGeometry(Model* model)
  2878. - Vector3 GetGravity() const
  2879. - int GetNumIterations() const
  2880. - bool GetInterpolation() const
  2881. - bool GetInternalEdge() const
  2882. - bool GetSplitImpulse() const
  2883. - int GetFps() const
  2884. - float GetMaxNetworkAngularVelocity() const
  2885. Properties:
  2886. - Vector3 gravity
  2887. - int numIterations
  2888. - bool interpolation
  2889. - bool internalEdge
  2890. - bool splitImpulse
  2891. - int fps
  2892. - float maxNetworkAngularVelocity
  2893. - bool applyingTransforms
  2894. ### RigidBody : Component
  2895. Methods:
  2896. - void SetMass(float mass)
  2897. - void SetPosition(Vector3 position)
  2898. - void SetRotation(Quaternion rotation)
  2899. - void SetTransform(const Vector3& position, const Quaternion& rotation)
  2900. - void SetLinearVelocity(Vector3 velocity)
  2901. - void SetLinearFactor(Vector3 factor)
  2902. - void SetLinearRestThreshold(float threshold)
  2903. - void SetLinearDamping(float damping)
  2904. - void SetAngularVelocity(Vector3 angularVelocity)
  2905. - void SetAngularFactor(Vector3 factor)
  2906. - void SetAngularRestThreshold(float threshold)
  2907. - void SetAngularDamping(float factor)
  2908. - void SetFriction(float friction)
  2909. - void SetAnisotropicFriction(Vector3 friction)
  2910. - void SetRollingFriction(float friction)
  2911. - void SetRestitution(float restitution)
  2912. - void SetContactProcessingThreshold(float threshold)
  2913. - void SetCcdRadius(float radius)
  2914. - void SetCcdMotionThreshold(float threshold)
  2915. - void SetUseGravity(bool enable)
  2916. - void SetGravityOverride(const Vector3& gravity)
  2917. - void SetKinematic(bool enable)
  2918. - void SetPhantom(bool enable)
  2919. - void SetCollisionLayer(unsigned layer)
  2920. - void SetCollisionMask(unsigned mask)
  2921. - void SetCollisionLayerAndMask(unsigned layer, unsigned mask)
  2922. - void SetCollisionEventMode(CollisionEventMode mode)
  2923. - void ApplyForce(const Vector3& force)
  2924. - void ApplyForce(const Vector3& force, const Vector3& position)
  2925. - void ApplyTorque(const Vector3& torque)
  2926. - void ApplyImpulse(const Vector3& impulse)
  2927. - void ApplyImpulse(const Vector3& impulse, const Vector3& position)
  2928. - void ApplyTorqueImpulse(const Vector3& torque)
  2929. - void ResetForces()
  2930. - void Activate()
  2931. - void ReAddBodyToWorld()
  2932. - PhysicsWorld* GetPhysicsWorld() const
  2933. - float GetMass() const
  2934. - Vector3 GetPosition() const
  2935. - Quaternion GetRotation() const
  2936. - Vector3 GetLinearVelocity() const
  2937. - Vector3 GetLinearFactor() const
  2938. - Vector3 GetVelocityAtPoint(const Vector3& position) const
  2939. - float GetLinearRestThreshold() const
  2940. - float GetLinearDamping() const
  2941. - Vector3 GetAngularVelocity() const
  2942. - Vector3 GetAngularFactor() const
  2943. - float GetAngularRestThreshold() const
  2944. - float GetAngularDamping() const
  2945. - float GetFriction() const
  2946. - Vector3 GetAnisotropicFriction() const
  2947. - float GetRollingFriction() const
  2948. - float GetRestitution() const
  2949. - float GetContactProcessingThreshold() const
  2950. - float GetCcdRadius() const
  2951. - float GetCcdMotionThreshold() const
  2952. - bool GetUseGravity() const
  2953. - const Vector3& GetGravityOverride() const
  2954. - const Vector3& GetCenterOfMass() const
  2955. - bool IsKinematic() const
  2956. - bool IsPhantom() const
  2957. - bool IsActive() const
  2958. - unsigned GetCollisionLayer() const
  2959. - unsigned GetCollisionMask() const
  2960. - CollisionEventMode GetCollisionEventMode() const
  2961. Properties:
  2962. - PhysicsWorld* physicsWorld (readonly)
  2963. - float mass
  2964. - Vector3 position
  2965. - Quaternion rotation
  2966. - Vector3 linearVelocity
  2967. - Vector3 linearFactor
  2968. - float linearRestThreshold
  2969. - float linearDamping
  2970. - Vector3 angularVelocity
  2971. - Vector3 angularFactor
  2972. - float angularRestThreshold
  2973. - float angularDamping
  2974. - float friction
  2975. - Vector3 anisotropicFriction
  2976. - float rollingFriction
  2977. - float restitution
  2978. - float contactProcessingThreshold
  2979. - float ccdRadius
  2980. - float ccdMotionThreshold
  2981. - bool useGravity
  2982. - Vector3& gravityOverride
  2983. - Vector3& centerOfMass (readonly)
  2984. - bool kinematic
  2985. - bool phantom
  2986. - bool active (readonly)
  2987. - unsigned collisionLayer
  2988. - unsigned collisionMask
  2989. - CollisionEventMode collisionEventMode
  2990. ### Resource
  2991. Methods:
  2992. - bool Load(Deserializer& source)
  2993. - bool Save(Serializer& dest) const
  2994. - bool Load(const String fileName)
  2995. - bool Save(const String fileName) const
  2996. - const String GetName() const
  2997. - StringHash GetNameHash() const
  2998. - unsigned GetMemoryUse() const
  2999. Properties:
  3000. - String name (readonly)
  3001. - StringHash nameHash (readonly)
  3002. - unsigned memoryUse (readonly)
  3003. ### Image : Resource
  3004. Methods:
  3005. - Image()
  3006. - ~Image()
  3007. - bool SetSize(int width, int height, unsigned components)
  3008. - bool SetSize(int width, int height, int depth, unsigned components)
  3009. - void SetPixel(int x, int y, const Color& color)
  3010. - void SetPixel(int x, int y, int z, const Color& color)
  3011. - bool LoadColorLUT(Deserializer& source)
  3012. - bool LoadColorLUT(const String fileName)
  3013. - void FlipVertical()
  3014. - bool Resize(int width, int height)
  3015. - void Clear(const Color& color)
  3016. - bool SaveBMP(const String fileName) const
  3017. - bool SavePNG(const String fileName) const
  3018. - bool SaveTGA(const String fileName) const
  3019. - bool SaveJPG(const String fileName, int quality) const
  3020. - Color GetPixel(int x, int y) const
  3021. - Color GetPixel(int x, int y, int z) const
  3022. - Color GetPixelBilinear(float x, float y) const
  3023. - Color GetPixelTrilinear(float x, float y, float z) const
  3024. - int GetWidth() const
  3025. - int GetHeight() const
  3026. - int GetDepth() const
  3027. - unsigned GetComponents() const
  3028. - bool IsCompressed() const
  3029. - CompressedFormat GetCompressedFormat() const
  3030. - unsigned GetNumCompressedLevels() const
  3031. - CompressedLevel GetCompressedLevel(unsigned index) const
  3032. Properties:
  3033. - int width (readonly)
  3034. - int height (readonly)
  3035. - int depth (readonly)
  3036. - unsigned components (readonly)
  3037. - bool compressed (readonly)
  3038. - CompressedFormat compressedFormat (readonly)
  3039. - unsigned numCompressedLevels (readonly)
  3040. ### ResourceCache
  3041. Methods:
  3042. - void ReleaseAllResources(bool force = false)
  3043. - bool ReloadResource(Resource* resource)
  3044. - void SetMemoryBudget(ShortStringHash type, unsigned budget)
  3045. - void SetMemoryBudget(const String type, unsigned budget)
  3046. - void SetAutoReloadResources(bool enable)
  3047. - void SetSearchPackagesFirst(bool value)
  3048. - File* GetFile(const String name)
  3049. - Resource* GetResource(const String type, const String name)
  3050. - bool Exists(const String name) const
  3051. - unsigned GetMemoryBudget(ShortStringHash type) const
  3052. - unsigned GetMemoryUse(ShortStringHash type) const
  3053. - unsigned GetTotalMemoryUse() const
  3054. - String GetResourceFileName(const String name) const
  3055. - bool GetAutoReloadResources() const
  3056. - bool GetSearchPackagesFirst() const
  3057. - String GetPreferredResourceDir(const String path) const
  3058. - String SanitateResourceName(const String name) const
  3059. - String SanitateResourceDirName(const String name) const
  3060. Properties:
  3061. - unsigned totalMemoryUse (readonly)
  3062. - bool autoReloadResources (readonly)
  3063. - bool searchPackagesFirst (readonly)
  3064. ### XMLElement
  3065. Methods:
  3066. - XMLElement CreateChild(const String name)
  3067. - bool RemoveChild(const XMLElement& element)
  3068. - bool RemoveChild(const String name)
  3069. - bool RemoveChildren(const String name = String::EMPTY)
  3070. - bool RemoveAttribute(const String name = String::EMPTY)
  3071. - bool SetValue(const String value)
  3072. - bool SetAttribute(const String name, const String value)
  3073. - bool SetBool(const String name, bool value)
  3074. - bool SetBoundingBox(const BoundingBox& value)
  3075. - bool SetColor(const String name, const Color& value)
  3076. - bool SetFloat(const String name, float value)
  3077. - bool SetUInt(const String name, unsigned value)
  3078. - bool SetInt(const String name, int value)
  3079. - bool SetIntRect(const String name, const IntRect& value)
  3080. - bool SetIntVector2(const String name, const IntVector2& value)
  3081. - bool SetRect(const String name, const Rect& value)
  3082. - bool SetQuaternion(const String name, const Quaternion& value)
  3083. - bool SetString(const String name, const String value)
  3084. - bool SetVariant(const Variant& value)
  3085. - bool SetVariantValue(const Variant& value)
  3086. - bool SetResourceRef(const ResourceRef& value)
  3087. - bool SetResourceRefList(const ResourceRefList& value)
  3088. - bool SetVector2(const String name, const Vector2& value)
  3089. - bool SetVector3(const String name, const Vector3& value)
  3090. - bool SetVector4(const String name, const Vector4& value)
  3091. - bool SetVectorVariant(const String name, const Variant& value)
  3092. - bool IsNull() const
  3093. - bool NotNull() const
  3094. - operator bool () const
  3095. - String GetName() const
  3096. - bool HasChild(const String name) const
  3097. - XMLElement GetChild(const String name = String::EMPTY) const
  3098. - XMLElement GetNext(const String name = String::EMPTY) const
  3099. - XMLElement GetParent() const
  3100. - unsigned GetNumAttributes() const
  3101. - bool HasAttribute(const String name) const
  3102. - bool GetBool(const String name) const
  3103. - BoundingBox GetBoundingBox() const
  3104. - String GetValue() const
  3105. - Color GetColor(const String name) const
  3106. - float GetFloat(const String name) const
  3107. - unsigned GetUInt(const String name) const
  3108. - int GetInt(const String name) const
  3109. - IntRect GetIntRect(const String name) const
  3110. - IntVector2 GetIntVector2(const String name) const
  3111. - Rect GetRect(const String name) const
  3112. - Quaternion GetQuaternion(const String name) const
  3113. - Variant GetVariant() const
  3114. - Variant GetVariantValue(VariantType type) const
  3115. - ResourceRef GetResourceRef() const
  3116. - ResourceRefList GetResourceRefList() const
  3117. - VariantMap GetVariantMap() const
  3118. - Vector2 GetVector2(const String name) const
  3119. - Vector3 GetVector3(const String name) const
  3120. - Vector4 GetVector4(const String name) const
  3121. - Vector4 GetVector(const String name) const
  3122. - XMLFile* GetFile() const
  3123. Properties:
  3124. - static const XMLElement EMPTY
  3125. - bool null (readonly)
  3126. - String name (readonly)
  3127. - String value (readonly)
  3128. - XMLElement parent (readonly)
  3129. - unsigned numAttributes (readonly)
  3130. - XMLFile* file (readonly)
  3131. ### XMLFile : Resource
  3132. Methods:
  3133. - XMLFile()
  3134. - ~XMLFile()
  3135. - XMLElement CreateRoot(const String name = String::EMPTY)
  3136. - XMLElement GetRoot(const String name = String::EMPTY)
  3137. - void Patch(XMLFile* patchFile)
  3138. - void Patch(XMLElement patchElement)
  3139. ### Serializable : Object
  3140. Methods:
  3141. - void SetTemporary(bool enable)
  3142. - bool IsTemporary() const
  3143. Properties:
  3144. - bool temporary
  3145. ### Component : Serializable
  3146. Methods:
  3147. - void SetEnabled(bool enable)
  3148. - void Remove()
  3149. - unsigned GetID() const
  3150. - Node* GetNode() const
  3151. - Scene* GetScene() const
  3152. - bool IsEnabled() const
  3153. - bool IsEnabledEffective() const
  3154. - Component* GetComponent(ShortStringHash type) const
  3155. - Component* GetComponent(const String type) const
  3156. ### Node : Serializable
  3157. Methods:
  3158. - Node()
  3159. - virtual ~Node()
  3160. - bool SaveXML(File* dest) const
  3161. - void SetName(const String name)
  3162. - void SetPosition(const Vector3& position)
  3163. - void SetPositionXYZ(float x, float y, float z)
  3164. - void SetRotation(const Quaternion& rotation)
  3165. - void SetRotationXYZ(float x, float y, float z)
  3166. - void SetDirection(const Vector3& direction)
  3167. - void SetDirectionXYZ(float x, float y, float z)
  3168. - void SetScale(float scale)
  3169. - void SetScale(const Vector3& scale)
  3170. - void SetScaleXYZ(float x, float y, float z)
  3171. - void SetTransform(const Vector3& position, const Quaternion& rotation)
  3172. - void SetTransform(const Vector3& position, const Quaternion& rotation, float scale)
  3173. - void SetTransform(const Vector3& position, const Quaternion& rotation, const Vector3& scale)
  3174. - void SetWorldPosition(const Vector3& position)
  3175. - void SetWorldPositionXYZ(float x, float y, float z)
  3176. - void SetWorldRotation(const Quaternion& rotation)
  3177. - void SetWorldRotationXYZ(float x, float y, float z)
  3178. - void SetWorldDirection(const Vector3& direction)
  3179. - void SetWorldDirectionXYZ(float x, float y, float z)
  3180. - void SetWorldScale(float scale)
  3181. - void SetWorldScale(const Vector3& scale)
  3182. - void SetWorldScaleXYZ(float x, float y, float z)
  3183. - void SetWorldTransform(const Vector3& position, const Quaternion& rotation)
  3184. - void SetWorldTransform(const Vector3& position, const Quaternion& rotation, float scale)
  3185. - void SetWorldTransform(const Vector3& position, const Quaternion& rotation, const Vector3& scale)
  3186. - void Translate(const Vector3& delta)
  3187. - void TranslateXYZ(float x, float y, float z)
  3188. - void TranslateRelative(const Vector3& delta)
  3189. - void TranslateRelativeXYZ(float x, float y, float z)
  3190. - void Rotate(const Quaternion& delta, bool fixedAxis = false)
  3191. - void RotateXYZ(float x, float y, float z, bool fixedAxis = false)
  3192. - void Pitch(float angle, bool fixedAxis = false)
  3193. - void Yaw(float angle, bool fixedAxis = false)
  3194. - void Roll(float angle, bool fixedAxis = false)
  3195. - void LookAt(const Vector3& target, const Vector3& upAxis = Vector3::UP)
  3196. - void LookAtXYZ(float x, float y, float z, float upX = 0.0f, float upY = 1.0f, float upZ = 0.0f)
  3197. - void Scale(float scale)
  3198. - void Scale(const Vector3& scale)
  3199. - void ScaleXYZ(float x, float y, float z)
  3200. - void SetEnabled(bool enable)
  3201. - void SetEnabled(bool enable, bool recursive)
  3202. - void SetOwner(Connection* owner)
  3203. - void MarkDirty()
  3204. - Node* CreateChild(const String name = String::EMPTY, CreateMode mode = REPLICATED, unsigned id = 0)
  3205. - void AddChild(Node* node)
  3206. - void RemoveChild(Node* node)
  3207. - void RemoveAllChildren()
  3208. - void RemoveChildren(bool removeReplicated, bool removeLocal, bool recursive)
  3209. - void RemoveComponent(Component* component)
  3210. - void RemoveComponent(ShortStringHash type)
  3211. - void RemoveComponent(const String type)
  3212. - void RemoveAllComponents()
  3213. - void RemoveComponents(bool removeReplicated, bool removeLocal)
  3214. - Node* Clone(CreateMode mode = REPLICATED)
  3215. - void Remove()
  3216. - void SetParent(Node* parent)
  3217. - void SetVar(ShortStringHash key, const Variant& value)
  3218. - void AddListener(Component* component)
  3219. - void RemoveListener(Component* component)
  3220. - Component* CreateComponent(const String type, CreateMode mode = REPLICATED, unsigned id = 0)
  3221. - int CreateScriptObject(const String scriptObjectType)
  3222. - int CreateScriptObject(const String fileName, const String scriptObjectType)
  3223. - int GetScriptObject() const
  3224. - int GetScriptObject(const String scriptObjectType) const
  3225. - unsigned GetID() const
  3226. - const String GetName() const
  3227. - StringHash GetNameHash() const
  3228. - Node* GetParent() const
  3229. - Scene* GetScene() const
  3230. - bool IsEnabled() const
  3231. - Connection* GetOwner() const
  3232. - const Vector3& GetPosition() const
  3233. - void GetPositionXYZ(float* x = 0.0f, float* y = 0.0f, float* z = 0.0f) const
  3234. - const Quaternion& GetRotation() const
  3235. - void GetRotationXYZ(float* *x = 0.0f, float* *y = 0.0f, float* *z = 0.0f) const
  3236. - void GetRotationWXYZ(float* *w = 0.0f, float* *x = 0.0f, float* *y = 0.0f, float* *z = 0.0f) const
  3237. - Vector3 GetDirection() const
  3238. - void GetDirectionXYZ(float* *x = 0.0f, float* *y = 0.0f, float* *z = 0.0f) const
  3239. - Vector3 GetUp() const
  3240. - void GetUpXYZ(float* *x = 0.0f, float* *y = 0.0f, float* *z = 0.0f) const
  3241. - Vector3 GetRight() const
  3242. - void GetRightXYZ(float* *x = 0.0f, float* *y = 0.0f, float* *z = 0.0f) const
  3243. - const Vector3& GetScale() const
  3244. - void GetScaleXYZ(float* *x = 0.0f, float* *y = 0.0f, float* *z = 0.0f) const
  3245. - Matrix3x4 GetTransform() const
  3246. - Vector3 GetWorldPosition() const
  3247. - void GetWorldPositionXYZ(float* *x = 0.0f, float* *y = 0.0f, float* *z = 0.0f) const
  3248. - Quaternion GetWorldRotation() const
  3249. - void GetWorldRotationXYZ(float* *x = 0.0f, float* *y = 0.0f, float* *z = 0.0f) const
  3250. - void GetWorldRotationWXYZ(float* *w = 0.0f, float* *x = 0.0f, float* *y = 0.0f, float* *z = 0.0f) const
  3251. - Vector3 GetWorldDirection() const
  3252. - void GetWorldDirectionXYZ(float* *x = 0.0f, float* *y = 0.0f, float* *z = 0.0f) const
  3253. - Vector3 GetWorldUp() const
  3254. - void GetWorldUpXYZ(float* *x = 0.0f, float* *y = 0.0f, float* *z = 0.0f) const
  3255. - Vector3 GetWorldRight() const
  3256. - void GetWorldRightXYZ(float* *x = 0.0f, float* *y = 0.0f, float* *z = 0.0f) const
  3257. - Vector3 GetWorldScale() const
  3258. - void GetWorldScaleXYZ(float* *x = 0.0f, float* *y = 0.0f, float* *z = 0.0f) const
  3259. - const Matrix3x4& GetWorldTransform() const
  3260. - Vector3 LocalToWorld(const Vector3& position) const
  3261. - Vector3 LocalToWorld(const Vector4& vector) const
  3262. - Vector3 WorldToLocal(const Vector3& position) const
  3263. - Vector3 WorldToLocal(const Vector4& vector) const
  3264. - bool IsDirty() const
  3265. - unsigned GetNumChildren(bool recursive = false) const
  3266. - Node* GetChild(unsigned index) const
  3267. - Node* GetChild(const String name, bool recursive = false) const
  3268. - Node* GetChild(StringHash nameHash, bool recursive = false) const
  3269. - unsigned GetNumComponents() const
  3270. - unsigned GetNumNetworkComponents() const
  3271. - bool HasComponent(ShortStringHash type) const
  3272. - bool HasComponent(const String type) const
  3273. - const Variant& GetVar(ShortStringHash key) const
  3274. - const VariantMap& GetVars() const
  3275. - Component* GetComponent(const String type) const
  3276. - void SetID(unsigned id)
  3277. - void SetScene(Scene* scene)
  3278. - void ResetScene()
  3279. - bool Load(Deserializer& source, SceneResolver& resolver, bool loadChildren = true, bool rewriteIDs = false, CreateMode mode = REPLICATED)
  3280. - bool LoadXML(const XMLElement& source, SceneResolver& resolver, bool loadChildren = true, bool rewriteIDs = false, CreateMode mode = REPLICATED)
  3281. - Node* CreateChild(unsigned id, CreateMode mode)
  3282. - void AddComponent(Component* component, unsigned id, CreateMode mode)
  3283. Properties:
  3284. - unsigned ID
  3285. - String name
  3286. - StringHash nameHash (readonly)
  3287. - Node* parent
  3288. - Scene* scene
  3289. - bool enabled
  3290. - Connection* owner
  3291. - Vector3& position
  3292. - Quaternion& rotation
  3293. - Vector3 direction
  3294. - Vector3 up (readonly)
  3295. - Vector3 right (readonly)
  3296. - Vector3& scale
  3297. - Matrix3x4 transform (readonly)
  3298. - Vector3 worldPosition
  3299. - Quaternion worldRotation
  3300. - Vector3 worldDirection
  3301. - Vector3 worldUp (readonly)
  3302. - Vector3 worldRight (readonly)
  3303. - Vector3 worldScale
  3304. - Matrix3x4& worldTransform (readonly)
  3305. - bool dirty (readonly)
  3306. - unsigned numComponents (readonly)
  3307. - unsigned numNetworkComponents (readonly)
  3308. ### Scene : Node
  3309. Methods:
  3310. - Scene()
  3311. - virtual ~Scene()
  3312. - bool Load(File* source)
  3313. - bool Save(File* dest) const
  3314. - bool Load(const String fileName)
  3315. - bool Save(const String fileName) const
  3316. - bool LoadXML(File* source)
  3317. - bool SaveXML(File* dest) const
  3318. - bool LoadXML(const String fileName)
  3319. - bool SaveXML(const String fileName) const
  3320. - Node* Instantiate(File* source, const Vector3& position, const Quaternion& rotation, CreateMode mode = REPLICATED)
  3321. - Node* Instantiate(const String fileName, const Vector3& position, const Quaternion& rotation, CreateMode mode = REPLICATED)
  3322. - Node* InstantiateXML(File* source, const Vector3& position, const Quaternion& rotation, CreateMode mode = REPLICATED)
  3323. - Node* InstantiateXML(const String fileName, const Vector3& position, const Quaternion& rotation, CreateMode mode = REPLICATED)
  3324. - bool LoadAsync(File* file)
  3325. - bool LoadAsyncXML(File* file)
  3326. - void StopAsyncLoading()
  3327. - void Clear(bool clearReplicated = true, bool clearLocal = true)
  3328. - void SetUpdateEnabled(bool enable)
  3329. - void SetTimeScale(float scale)
  3330. - void SetElapsedTime(float time)
  3331. - void SetSmoothingConstant(float constant)
  3332. - void SetSnapThreshold(float threshold)
  3333. - Node* GetNode(unsigned id) const
  3334. - bool IsUpdateEnabled() const
  3335. - bool IsAsyncLoading() const
  3336. - float GetAsyncProgress() const
  3337. - const String GetFileName() const
  3338. - unsigned GetChecksum() const
  3339. - float GetTimeScale() const
  3340. - float GetElapsedTime() const
  3341. - float GetSmoothingConstant() const
  3342. - float GetSnapThreshold() const
  3343. - const String GetVarName(ShortStringHash hash) const
  3344. - void Update(float timeStep)
  3345. - void BeginThreadedUpdate()
  3346. - void EndThreadedUpdate()
  3347. - void DelayedMarkedDirty(Component* component)
  3348. - bool IsThreadedUpdate() const
  3349. - unsigned GetFreeNodeID(CreateMode mode)
  3350. - unsigned GetFreeComponentID(CreateMode mode)
  3351. - void NodeAdded(Node* node)
  3352. - void NodeRemoved(Node* node)
  3353. - void ComponentAdded(Component* component)
  3354. - void ComponentRemoved(Component* component)
  3355. - void SetVarNamesAttr(String value)
  3356. - String GetVarNamesAttr() const
  3357. - void PrepareNetworkUpdate()
  3358. - void CleanupConnection(Connection* connection)
  3359. - void MarkNetworkUpdate(Node* node)
  3360. - void MarkNetworkUpdate(Component* component)
  3361. - void MarkReplicationDirty(Node* node)
  3362. Properties:
  3363. - bool updateEnabled
  3364. - bool asyncLoading (readonly)
  3365. - float asyncProgress (readonly)
  3366. - const String fileName
  3367. - unsigned checksum (readonly)
  3368. - float timeScale
  3369. - float elapsedTime
  3370. - float smoothingConstant
  3371. - float snapThreshold
  3372. - bool threadedUpdate (readonly)
  3373. - String varNamesAttr
  3374. ### Spline : Component
  3375. Methods:
  3376. - void SetInterpolationMode(InterpolationMode interpolationMode)
  3377. - void SetSpeed(float speed)
  3378. - void SetPosition(float factor)
  3379. - InterpolationMode GetInterpolationMode() const
  3380. - float GetSpeed() const
  3381. - Vector3 GetPosition() const
  3382. - void Push(const Vector3& controlPoint)
  3383. - void Pop()
  3384. - Vector3 GetPoint(float factor) const
  3385. - void Move(float timeStep)
  3386. - void Reset()
  3387. - bool IsFinished() const
  3388. Properties:
  3389. - InterpolationMode interpolationMode
  3390. - float speed
  3391. ### UIElement : Serializable
  3392. Methods:
  3393. - UIElement()
  3394. - virtual ~UIElement()
  3395. - virtual const IntVector2& GetScreenPosition() const
  3396. - bool LoadXML(Deserializer& source)
  3397. - bool SaveXML(Serializer& dest) const
  3398. - bool LoadXML(const String fileName)
  3399. - bool SaveXML(const String fileName) const
  3400. - bool FilterAttributes(XMLElement& dest) const
  3401. - void SetName(const String name)
  3402. - void SetPosition(const IntVector2& position)
  3403. - void SetPosition(int x, int y)
  3404. - void SetSize(const IntVector2& size)
  3405. - void SetSize(int width, int height)
  3406. - void SetWidth(int width)
  3407. - void SetHeight(int height)
  3408. - void SetMinSize(const IntVector2& minSize)
  3409. - void SetMinSize(int width, int height)
  3410. - void SetMinWidth(int width)
  3411. - void SetMinHeight(int height)
  3412. - void SetMaxSize(const IntVector2& maxSize)
  3413. - void SetMaxSize(int width, int height)
  3414. - void SetMaxWidth(int width)
  3415. - void SetMaxHeight(int height)
  3416. - void SetFixedSize(const IntVector2& size)
  3417. - void SetFixedSize(int width, int height)
  3418. - void SetFixedWidth(int width)
  3419. - void SetFixedHeight(int height)
  3420. - void SetAlignment(HorizontalAlignment hAlign, VerticalAlignment vAlign)
  3421. - void SetHorizontalAlignment(HorizontalAlignment align)
  3422. - void SetVerticalAlignment(VerticalAlignment align)
  3423. - void SetClipBorder(const IntRect& rect)
  3424. - void SetColor(const Color& color)
  3425. - void SetColor(Corner corner, const Color& color)
  3426. - void SetPriority(int priority)
  3427. - void SetOpacity(float opacity)
  3428. - void SetBringToFront(bool enable)
  3429. - void SetBringToBack(bool enable)
  3430. - void SetClipChildren(bool enable)
  3431. - void SetSortChildren(bool enable)
  3432. - void SetUseDerivedOpacity(bool enable)
  3433. - void SetEnabled(bool enable)
  3434. - void SetEditable(bool enable)
  3435. - void SetFocus(bool enable)
  3436. - void SetSelected(bool enable)
  3437. - void SetVisible(bool enable)
  3438. - void SetFocusMode(FocusMode mode)
  3439. - void SetDragDropMode(unsigned mode)
  3440. - bool SetStyle(const String styleName, XMLFile* file = 0)
  3441. - bool SetStyle(const XMLElement& element)
  3442. - bool SetStyleAuto(XMLFile* file = 0)
  3443. - void SetDefaultStyle(XMLFile* style)
  3444. - void SetLayout(LayoutMode mode, int spacing = 0, const IntRect& border = IntRect::ZERO)
  3445. - void SetLayoutMode(LayoutMode mode)
  3446. - void SetLayoutSpacing(int spacing)
  3447. - void SetLayoutBorder(const IntRect& border)
  3448. - void SetIndent(int indent)
  3449. - void SetIndentSpacing(int indentSpacing)
  3450. - void UpdateLayout()
  3451. - void DisableLayoutUpdate()
  3452. - void EnableLayoutUpdate()
  3453. - void BringToFront()
  3454. - UIElement* CreateChild(const String type, const String name = String::EMPTY, unsigned index = M_MAX_UNSIGNED)
  3455. - void AddChild(UIElement* element)
  3456. - void InsertChild(unsigned index, UIElement* element)
  3457. - void RemoveChild(UIElement* element, unsigned index = 0)
  3458. - void RemoveChildAtIndex(unsigned index)
  3459. - void RemoveAllChildren()
  3460. - void Remove()
  3461. - unsigned FindChild(UIElement* element) const
  3462. - void SetParent(UIElement* parent, unsigned index = M_MAX_UNSIGNED)
  3463. - void SetVar(ShortStringHash key, const Variant& value)
  3464. - void SetInternal(bool enable)
  3465. - void SetTraversalMode(TraversalMode traversalMode)
  3466. - void SetElementEventSender(bool flag)
  3467. - const String GetName() const
  3468. - const IntVector2& GetPosition() const
  3469. - const IntVector2& GetSize() const
  3470. - int GetWidth() const
  3471. - int GetHeight() const
  3472. - const IntVector2& GetMinSize() const
  3473. - int GetMinWidth() const
  3474. - int GetMinHeight() const
  3475. - const IntVector2& GetMaxSize() const
  3476. - int GetMaxWidth() const
  3477. - int GetMaxHeight() const
  3478. - bool IsFixedSize() const
  3479. - bool IsFixedWidth() const
  3480. - bool IsFixedHeight() const
  3481. - const IntVector2& GetChildOffset() const
  3482. - HorizontalAlignment GetHorizontalAlignment() const
  3483. - VerticalAlignment GetVerticalAlignment() const
  3484. - const IntRect& GetClipBorder() const
  3485. - const Color& GetColor(Corner corner) const
  3486. - int GetPriority() const
  3487. - float GetOpacity() const
  3488. - float GetDerivedOpacity() const
  3489. - bool GetBringToFront() const
  3490. - bool GetBringToBack() const
  3491. - bool GetClipChildren() const
  3492. - bool GetSortChildren() const
  3493. - bool GetUseDerivedOpacity() const
  3494. - bool HasFocus() const
  3495. - bool IsEnabled() const
  3496. - bool IsEditable() const
  3497. - bool IsSelected() const
  3498. - bool IsVisible() const
  3499. - bool IsHovering() const
  3500. - bool IsInternal() const
  3501. - bool HasColorGradient() const
  3502. - FocusMode GetFocusMode() const
  3503. - unsigned GetDragDropMode() const
  3504. - const String GetAppliedStyle() const
  3505. - XMLFile* GetDefaultStyle(bool recursiveUp = true) const
  3506. - LayoutMode GetLayoutMode() const
  3507. - int GetLayoutSpacing() const
  3508. - const IntRect& GetLayoutBorder() const
  3509. - unsigned GetNumChildren(bool recursive = false) const
  3510. - UIElement* GetChild(unsigned index) const
  3511. - UIElement* GetChild(const String name, bool recursive = false) const
  3512. - UIElement* GetParent() const
  3513. - UIElement* GetRoot() const
  3514. - const Color& GetDerivedColor() const
  3515. - const Variant& GetVar(ShortStringHash key) const
  3516. - const VariantMap& GetVars() const
  3517. - IntVector2 ScreenToElement(const IntVector2& screenPosition)
  3518. - IntVector2 ElementToScreen(const IntVector2& position)
  3519. - bool IsInside(IntVector2 position, bool isScreen)
  3520. - bool IsInsideCombined(IntVector2 position, bool isScreen)
  3521. - IntRect GetCombinedScreenRect()
  3522. - void SortChildren()
  3523. - int GetLayoutMinSize() const
  3524. - int GetIndent() const
  3525. - int GetIndentSpacing() const
  3526. - int GetIndentWidth() const
  3527. - void SetChildOffset(const IntVector2& offset)
  3528. - void SetHovering(bool enable)
  3529. - const Color& GetColor() const
  3530. - TraversalMode GetTraversalMode() const
  3531. - bool IsElementEventSender() const
  3532. - UIElement* GetElementEventSender() const
  3533. Properties:
  3534. - IntVector2& screenPosition (readonly)
  3535. - String name
  3536. - IntVector2& position
  3537. - IntVector2 size
  3538. - int width
  3539. - int height
  3540. - IntVector2 minSize
  3541. - int minWidth
  3542. - int minHeight
  3543. - IntVector2 maxSize
  3544. - int maxWidth
  3545. - int maxHeight
  3546. - bool fixedSize (readonly)
  3547. - bool fixedWidth (readonly)
  3548. - bool fixedHeight (readonly)
  3549. - IntVector2& childOffset
  3550. - HorizontalAlignment horizontalAlignment
  3551. - VerticalAlignment verticalAlignment
  3552. - IntRect clipBorder
  3553. - Color& colorAttr @ color
  3554. - int priority
  3555. - float opacity
  3556. - float derivedOpacity (readonly)
  3557. - bool bringToFront
  3558. - bool bringToBack
  3559. - bool clipChildren
  3560. - bool sortChildren
  3561. - bool useDerivedOpacity
  3562. - bool focus
  3563. - bool enabled
  3564. - bool editable
  3565. - bool selected
  3566. - bool visible
  3567. - bool hovering
  3568. - bool internal
  3569. - bool colorGradient (readonly)
  3570. - FocusMode focusMode
  3571. - unsigned dragDropMode
  3572. - String style
  3573. - XMLFile* defaultStyle
  3574. - LayoutMode layoutMode
  3575. - int layoutSpacing
  3576. - IntRect& layoutBorder
  3577. - unsigned numChildren (readonly)
  3578. - UIElement* parent
  3579. - UIElement* root (readonly)
  3580. - Color& derivedColor (readonly)
  3581. - IntRect combinedScreenRect (readonly)
  3582. - int layoutMinSize (readonly)
  3583. - int indent
  3584. - int indentSpacing
  3585. - int indentWidth (readonly)
  3586. - TraversalMode traversalMode
  3587. - bool elementEventSender
  3588. ### BorderImage : UIElement
  3589. Methods:
  3590. - BorderImage()
  3591. - virtual ~BorderImage()
  3592. - void SetTexture(Texture* texture)
  3593. - void SetImageRect(const IntRect& rect)
  3594. - void SetFullImageRect()
  3595. - void SetBorder(const IntRect& rect)
  3596. - void SetHoverOffset(const IntVector2& offset)
  3597. - void SetHoverOffset(int x, int y)
  3598. - void SetBlendMode(BlendMode mode)
  3599. - void SetTiled(bool enable)
  3600. - Texture* GetTexture() const
  3601. - const IntRect& GetImageRect() const
  3602. - const IntRect& GetBorder() const
  3603. - const IntVector2& GetHoverOffset() const
  3604. - BlendMode GetBlendMode() const
  3605. - bool IsTiled() const
  3606. Properties:
  3607. - Texture* texture
  3608. - IntRect& imageRect
  3609. - IntRect& border
  3610. - IntVector2& hoverOffset
  3611. - BlendMode blendMode
  3612. - bool tiled
  3613. ### Button : BorderImage
  3614. Methods:
  3615. - Button()
  3616. - virtual ~Button()
  3617. - void SetPressedOffset(const IntVector2& offset)
  3618. - void SetPressedOffset(int x, int y)
  3619. - void SetPressedChildOffset(const IntVector2& offset)
  3620. - void SetPressedChildOffset(int x, int y)
  3621. - void SetRepeat(float delay, float rate)
  3622. - void SetRepeatDelay(float delay)
  3623. - void SetRepeatRate(float rate)
  3624. - const IntVector2& GetPressedOffset() const
  3625. - const IntVector2& GetPressedChildOffset() const
  3626. - float GetRepeatDelay() const
  3627. - float GetRepeatRate() const
  3628. - bool IsPressed() const
  3629. Properties:
  3630. - IntVector2& pressedOffset
  3631. - IntVector2& pressedChildOffset
  3632. - float repeatDelay
  3633. - float repeatRate
  3634. - bool pressed (readonly)
  3635. ### CheckBox : BorderImage
  3636. Methods:
  3637. - CheckBox()
  3638. - virtual ~CheckBox()
  3639. - void SetChecked(bool enable)
  3640. - void SetCheckedOffset(const IntVector2& rect)
  3641. - void SetCheckedOffset(int x, int y)
  3642. - bool IsChecked() const
  3643. - const IntVector2& GetCheckedOffset() const
  3644. Properties:
  3645. - bool checked
  3646. - IntVector2& checkedOffset
  3647. ### Cursor : BorderImage
  3648. Methods:
  3649. - Cursor()
  3650. - virtual ~Cursor()
  3651. - void DefineShape(CursorShape shape, Image* image, const IntRect& imageRect, const IntVector2& hotSpot)
  3652. - void SetShape(CursorShape shape)
  3653. - void SetUseSystemShapes(bool enable)
  3654. - CursorShape GetShape() const
  3655. - bool GetUseSystemShapes() const
  3656. Properties:
  3657. - CursorShape shape
  3658. - bool useSystemShapes
  3659. ### FileSelectorEntry
  3660. Methods:
  3661. Properties:
  3662. - String name
  3663. - bool directory
  3664. ### FileSelector : Object
  3665. Methods:
  3666. - FileSelector()
  3667. - virtual ~FileSelector()
  3668. - void SetDefaultStyle(XMLFile* style)
  3669. - void SetTitle(const String text)
  3670. - void SetButtonTexts(const String okText, const String cancelText)
  3671. - void SetPath(const String path)
  3672. - void SetFileName(const String fileName)
  3673. - void SetFilters(const Vector<String>& filters, unsigned defaultIndex)
  3674. - void SetDirectoryMode(bool enable)
  3675. - void UpdateElements()
  3676. - XMLFile* GetDefaultStyle() const
  3677. - Window* GetWindow() const
  3678. - Text* GetTitleText() const
  3679. - ListView* GetFileList() const
  3680. - LineEdit* GetPathEdit() const
  3681. - LineEdit* GetFileNameEdit() const
  3682. - DropDownList* GetFilterList() const
  3683. - Button* GetOKButton() const
  3684. - Button* GetCancelButton() const
  3685. - Button* GetCloseButton() const
  3686. - const String GetTitle() const
  3687. - const String GetPath() const
  3688. - const String GetFileName() const
  3689. - const String GetFilter() const
  3690. - unsigned GetFilterIndex() const
  3691. - bool GetDirectoryMode() const
  3692. Properties:
  3693. - XMLFile* defaultStyle
  3694. - Window* window (readonly)
  3695. - Text* titleText (readonly)
  3696. - ListView* fileList (readonly)
  3697. - LineEdit* pathEdit (readonly)
  3698. - LineEdit* fileNameEdit (readonly)
  3699. - DropDownList* filterList (readonly)
  3700. - Button* OKButton (readonly)
  3701. - Button* cancelButton (readonly)
  3702. - Button* closeButton (readonly)
  3703. - String title
  3704. - String path
  3705. - String fileName
  3706. - String filter (readonly)
  3707. - unsigned filterIndex (readonly)
  3708. - bool directoryMode
  3709. ### Font : Resource
  3710. Methods:
  3711. ### LineEdit : BorderImage
  3712. Methods:
  3713. - LineEdit()
  3714. - virtual ~LineEdit()
  3715. - void SetText(const String text)
  3716. - void SetCursorPosition(unsigned position)
  3717. - void SetCursorBlinkRate(float rate)
  3718. - void SetMaxLength(unsigned length)
  3719. - void SetEchoCharacter(unsigned c)
  3720. - void SetCursorMovable(bool enable)
  3721. - void SetTextSelectable(bool enable)
  3722. - void SetTextCopyable(bool enable)
  3723. - const String GetText() const
  3724. - unsigned GetCursorPosition() const
  3725. - float GetCursorBlinkRate() const
  3726. - unsigned GetMaxLength() const
  3727. - unsigned GetEchoCharacter() const
  3728. - bool IsCursorMovable() const
  3729. - bool IsTextSelectable() const
  3730. - bool IsTextCopyable() const
  3731. - Text* GetTextElement() const
  3732. - BorderImage* GetCursor() const
  3733. Properties:
  3734. - String text
  3735. - unsigned cursorPosition
  3736. - float cursorBlinkRate
  3737. - unsigned maxLength
  3738. - unsigned echoCharacter
  3739. - bool cursorMovable
  3740. - bool textSelectable
  3741. - bool textCopyable
  3742. - Text* textElement (readonly)
  3743. - BorderImage* cursor (readonly)
  3744. ### Menu : Button
  3745. Methods:
  3746. - Menu()
  3747. - virtual ~Menu()
  3748. - void SetPopup(UIElement* element)
  3749. - void SetPopupOffset(const IntVector2& offset)
  3750. - void SetPopupOffset(int x, int y)
  3751. - void ShowPopup(bool enable)
  3752. - void SetAccelerator(int key, int qualifiers)
  3753. - UIElement* GetPopup() const
  3754. - const IntVector2& GetPopupOffset() const
  3755. - bool GetShowPopup() const
  3756. - int GetAcceleratorKey() const
  3757. - int GetAcceleratorQualifiers() const
  3758. Properties:
  3759. - UIElement* popup
  3760. - IntVector2& popupOffset
  3761. - bool showPopup
  3762. - int acceleratorKey (readonly)
  3763. - int acceleratorQualifiers (readonly)
  3764. ### MessageBox : Object
  3765. Methods:
  3766. - MessageBox(const String messageString = String::EMPTY, const String titleString = String::EMPTY, XMLFile* layoutFile = 0, XMLFile* styleFile = 0)
  3767. - virtual ~MessageBox()
  3768. - void SetTitle(const String text)
  3769. - void SetMessage(const String text)
  3770. - const String GetTitle() const
  3771. - const String GetMessage() const
  3772. - UIElement* GetWindow() const
  3773. Properties:
  3774. - String title
  3775. - String message
  3776. - UIElement* window (readonly)
  3777. ### DropDownList : Menu
  3778. Methods:
  3779. - DropDownList()
  3780. - ~DropDownList()
  3781. - void AddItem(UIElement* item)
  3782. - void InsertItem(unsigned index, UIElement* item)
  3783. - void RemoveItem(UIElement* item)
  3784. - void RemoveItem(unsigned index)
  3785. - void RemoveAllItems()
  3786. - void SetSelection(unsigned index)
  3787. - void SetPlaceholderText(const String text)
  3788. - void SetResizePopup(bool enable)
  3789. - unsigned GetNumItems() const
  3790. - UIElement* GetItem(unsigned index) const
  3791. - const PODVector<UIElement*>& GetItems() const
  3792. - unsigned GetSelection() const
  3793. - UIElement* GetSelectedItem() const
  3794. - ListView* GetListView() const
  3795. - UIElement* GetPlaceholder() const
  3796. - const String GetPlaceholderText() const
  3797. - bool GetResizePopup() const
  3798. Properties:
  3799. - unsigned numItems (readonly)
  3800. - unsigned selection
  3801. - UIElement* selectedItem (readonly)
  3802. - ListView* listView (readonly)
  3803. - UIElement* placeholder (readonly)
  3804. - String placeholderText
  3805. - bool resizePopup
  3806. ### Slider : BorderImage
  3807. Methods:
  3808. - Slider()
  3809. - virtual ~Slider()
  3810. - void SetOrientation(Orientation orientation)
  3811. - void SetRange(float range)
  3812. - void SetValue(float value)
  3813. - void ChangeValue(float delta)
  3814. - void SetRepeatRate(float rate)
  3815. - Orientation GetOrientation() const
  3816. - float GetRange() const
  3817. - float GetValue() const
  3818. - BorderImage* GetKnob() const
  3819. - float GetRepeatRate() const
  3820. Properties:
  3821. - Orientation orientation
  3822. - float range
  3823. - float value
  3824. - BorderImage* knob (readonly)
  3825. - float repeatRate
  3826. ### ScrollBar : UIElement
  3827. Methods:
  3828. - ScrollBar()
  3829. - virtual ~ScrollBar()
  3830. - void SetOrientation(Orientation orientation)
  3831. - void SetRange(float range)
  3832. - void SetValue(float value)
  3833. - void ChangeValue(float delta)
  3834. - void SetScrollStep(float step)
  3835. - void SetStepFactor(float factor)
  3836. - void StepBack()
  3837. - void StepForward()
  3838. - Orientation GetOrientation() const
  3839. - float GetRange() const
  3840. - float GetValue() const
  3841. - float GetScrollStep() const
  3842. - float GetStepFactor() const
  3843. - float GetEffectiveScrollStep() const
  3844. - Button* GetBackButton() const
  3845. - Button* GetForwardButton() const
  3846. - Slider* GetSlider() const
  3847. Properties:
  3848. - Orientation orientation
  3849. - float range
  3850. - float value
  3851. - float scrollStep
  3852. - float stepFactor
  3853. - float effectiveScrollStep (readonly)
  3854. - Button* backButton (readonly)
  3855. - Button* forwardButton (readonly)
  3856. - Slider* slider (readonly)
  3857. ### ScrollView : UIElement
  3858. Methods:
  3859. - ScrollView()
  3860. - virtual ~ScrollView()
  3861. - void SetContentElement(UIElement* element)
  3862. - void SetViewPosition(const IntVector2& position)
  3863. - void SetViewPosition(int x, int y)
  3864. - void SetScrollBarsVisible(bool horizontal, bool vertical)
  3865. - void SetScrollBarsAutoVisible(bool enable)
  3866. - void SetScrollStep(float step)
  3867. - void SetPageStep(float step)
  3868. - const IntVector2& GetViewPosition() const
  3869. - UIElement* GetContentElement() const
  3870. - ScrollBar* GetHorizontalScrollBar() const
  3871. - ScrollBar* GetVerticalScrollBar() const
  3872. - BorderImage* GetScrollPanel() const
  3873. - bool GetScrollBarsAutoVisible() const
  3874. - float GetScrollStep() const
  3875. - float GetPageStep() const
  3876. Properties:
  3877. - IntVector2& viewPosition
  3878. - UIElement* contentElement
  3879. - ScrollBar* horizontalScrollBar (readonly)
  3880. - ScrollBar* verticalScrollBar (readonly)
  3881. - BorderImage* scrollPanel (readonly)
  3882. - bool scrollBarsAutoVisible
  3883. - float scrollStep
  3884. - float pageStep
  3885. ### ListView : ScrollView
  3886. Methods:
  3887. - ListView()
  3888. - virtual ~ListView()
  3889. - void AddItem(UIElement* item)
  3890. - void InsertItem(unsigned index, UIElement* item, UIElement* parentItem = 0)
  3891. - void RemoveItem(UIElement* item, unsigned index = 0)
  3892. - void RemoveItem(unsigned index)
  3893. - void RemoveAllItems()
  3894. - void SetSelection(unsigned index)
  3895. - void SetSelections(const PODVector<unsigned>& indices)
  3896. - void AddSelection(unsigned index)
  3897. - void RemoveSelection(unsigned index)
  3898. - void ToggleSelection(unsigned index)
  3899. - void ChangeSelection(int delta, bool additive = false)
  3900. - void ClearSelection()
  3901. - void SetHighlightMode(HighlightMode mode)
  3902. - void SetMultiselect(bool enable)
  3903. - void SetHierarchyMode(bool enable)
  3904. - void SetBaseIndent(int baseIndent)
  3905. - void SetClearSelectionOnDefocus(bool enable)
  3906. - void Expand(unsigned index, bool enable, bool recursive = false)
  3907. - void ToggleExpand(unsigned index, bool recursive = false)
  3908. - unsigned GetNumItems() const
  3909. - UIElement* GetItem(unsigned index) const
  3910. - const PODVector<UIElement*>& GetItems() const
  3911. - unsigned FindItem(UIElement* item) const
  3912. - unsigned GetSelection() const
  3913. - const PODVector<unsigned>& GetSelections() const
  3914. - UIElement* GetSelectedItem() const
  3915. - const PODVector<UIElement*>& GetSelectedItems() const
  3916. - bool IsSelected(unsigned index) const
  3917. - bool IsExpanded(unsigned index) const
  3918. - HighlightMode GetHighlightMode() const
  3919. - bool GetMultiselect() const
  3920. - bool GetClearSelectionOnDefocus() const
  3921. - bool GetHierarchyMode() const
  3922. - int GetBaseIndent() const
  3923. Properties:
  3924. - unsigned numItems (readonly)
  3925. - unsigned selection
  3926. - UIElement* selectedItem (readonly)
  3927. - HighlightMode highlightMode
  3928. - bool multiselect
  3929. - bool clearSelectionOnDefocus
  3930. - bool hierarchyMode
  3931. - int baseIndent
  3932. ### Sprite : UIElement
  3933. Methods:
  3934. - Sprite()
  3935. - virtual ~Sprite()
  3936. - void SetPosition(const Vector2& position)
  3937. - void SetPosition(float x, float y)
  3938. - void SetHotSpot(const IntVector2& hotSpot)
  3939. - void SetHotSpot(int x, int y)
  3940. - void SetScale(const Vector2& scale)
  3941. - void SetScale(float x, float y)
  3942. - void SetScale(float scale)
  3943. - void SetRotation(float angle)
  3944. - void SetTexture(Texture* texture)
  3945. - void SetImageRect(const IntRect& rect)
  3946. - void SetFullImageRect()
  3947. - void SetBlendMode(BlendMode mode)
  3948. - const Vector2& GetPosition() const
  3949. - const IntVector2& GetHotSpot() const
  3950. - const Vector2& GetScale() const
  3951. - float GetRotation() const
  3952. - Texture* GetTexture() const
  3953. - const IntRect& GetImageRect() const
  3954. - BlendMode GetBlendMode() const
  3955. - const Matrix3x4& GetTransform() const
  3956. Properties:
  3957. - Vector2& position
  3958. - IntVector2& hotSpot
  3959. - Vector2& scale
  3960. - float rotation
  3961. - Texture* texture
  3962. - IntRect& imageRect
  3963. - BlendMode blendMode
  3964. - Matrix3x4& transform (readonly)
  3965. ### Text : UIElement
  3966. Methods:
  3967. - Text()
  3968. - virtual ~Text()
  3969. - bool SetFont(const String fontName, int size = DEFAULT_FONT_SIZE)
  3970. - bool SetFont(Font* font, int size = DEFAULT_FONT_SIZE)
  3971. - void SetText(const String text)
  3972. - void SetTextAlignment(HorizontalAlignment align)
  3973. - void SetRowSpacing(float spacing)
  3974. - void SetWordwrap(bool enable)
  3975. - void SetSelection(unsigned start, unsigned length = M_MAX_UNSIGNED)
  3976. - void ClearSelection()
  3977. - void SetSelectionColor(const Color& color)
  3978. - void SetHoverColor(const Color& color)
  3979. - void SetTextEffect(TextEffect textEffect)
  3980. - void SetEffectColor(const Color& effectColor)
  3981. - Font* GetFont() const
  3982. - int GetFontSize() const
  3983. - const String GetText() const
  3984. - HorizontalAlignment GetTextAlignment() const
  3985. - float GetRowSpacing() const
  3986. - bool GetWordwrap() const
  3987. - unsigned GetSelectionStart() const
  3988. - unsigned GetSelectionLength() const
  3989. - const Color& GetSelectionColor() const
  3990. - const Color& GetHoverColor() const
  3991. - TextEffect GetTextEffect() const
  3992. - const Color& GetEffectColor() const
  3993. - int GetRowHeight() const
  3994. - unsigned GetNumRows() const
  3995. - unsigned GetNumChars() const
  3996. - int GetRowWidth(unsigned index) const
  3997. - IntVector2 GetCharPosition(unsigned index)
  3998. - IntVector2 GetCharSize(unsigned index)
  3999. - void SetEffectDepthBias(float bias)
  4000. - float GetEffectDepthBias() const
  4001. Properties:
  4002. - Font* font
  4003. - int fontSize (readonly)
  4004. - String text
  4005. - HorizontalAlignment textAlignment
  4006. - float rowSpacing
  4007. - bool wordwrap
  4008. - unsigned selectionStart (readonly)
  4009. - unsigned selectionLength (readonly)
  4010. - Color& selectionColor
  4011. - Color& hoverColor
  4012. - TextEffect textEffect
  4013. - Color& effectColor
  4014. - int rowHeight (readonly)
  4015. - unsigned numRows (readonly)
  4016. - unsigned numChars (readonly)
  4017. ### Text3D : Drawable
  4018. Methods:
  4019. - Text3D()
  4020. - ~Text3D()
  4021. - bool SetFont(const String fontName, int size = DEFAULT_FONT_SIZE)
  4022. - bool SetFont(Font* font, int size = DEFAULT_FONT_SIZE)
  4023. - void SetMaterial(Material* material)
  4024. - void SetText(const String text)
  4025. - void SetAlignment(HorizontalAlignment hAlign, VerticalAlignment vAlign)
  4026. - void SetHorizontalAlignment(HorizontalAlignment align)
  4027. - void SetVerticalAlignment(VerticalAlignment align)
  4028. - void SetTextAlignment(HorizontalAlignment align)
  4029. - void SetRowSpacing(float spacing)
  4030. - void SetWordwrap(bool enable)
  4031. - void SetTextEffect(TextEffect textEffect)
  4032. - void SetEffectColor(const Color& effectColor)
  4033. - void SetEffectDepthBias(float bias)
  4034. - void SetWidth(int width)
  4035. - void SetColor(const Color& color)
  4036. - void SetColor(Corner corner, const Color& color)
  4037. - void SetOpacity(float opacity)
  4038. - void SetFaceCamera(bool enable)
  4039. - Font* GetFont() const
  4040. - Material* GetMaterial() const
  4041. - int GetFontSize() const
  4042. - const String GetText() const
  4043. - HorizontalAlignment GetTextAlignment() const
  4044. - HorizontalAlignment GetHorizontalAlignment() const
  4045. - VerticalAlignment GetVerticalAlignment() const
  4046. - float GetRowSpacing() const
  4047. - bool GetWordwrap() const
  4048. - TextEffect GetTextEffect() const
  4049. - const Color& GetEffectColor() const
  4050. - float GetEffectDepthBias() const
  4051. - int GetWidth() const
  4052. - int GetRowHeight() const
  4053. - unsigned GetNumRows() const
  4054. - unsigned GetNumChars() const
  4055. - int GetRowWidth(unsigned index) const
  4056. - IntVector2 GetCharPosition(unsigned index)
  4057. - IntVector2 GetCharSize(unsigned index)
  4058. - const Color& GetColor(Corner corner) const
  4059. - float GetOpacity() const
  4060. - bool GetFaceCamera() const
  4061. Properties:
  4062. - Font* font
  4063. - Material* material
  4064. - int fontSize (readonly)
  4065. - String text
  4066. - HorizontalAlignment textAlignment
  4067. - HorizontalAlignment horizontalAlignment
  4068. - VerticalAlignment verticalAlignment
  4069. - float rowSpacing
  4070. - bool wordwrap
  4071. - TextEffect textEffect
  4072. - Color& effectColor
  4073. - float effectDepthBias
  4074. - int width
  4075. - int rowHeight (readonly)
  4076. - unsigned numRows (readonly)
  4077. - unsigned numChars (readonly)
  4078. - float opacity
  4079. - bool faceCamera
  4080. ### ToolTip : UIElement
  4081. Methods:
  4082. - ToolTip()
  4083. - virtual ~ToolTip()
  4084. - void SetDelay(float delay)
  4085. - float GetDelay() const
  4086. Properties:
  4087. - float delay
  4088. ### UI : Object
  4089. Methods:
  4090. - void SetCursor(Cursor* cursor)
  4091. - void SetFocusElement(UIElement* element, bool byKey = false)
  4092. - bool SetModalElement(UIElement* modalElement, bool enable)
  4093. - void Clear()
  4094. - void Update(float timeStep)
  4095. - void RenderUpdate()
  4096. - void Render()
  4097. - void DebugDraw(UIElement* element)
  4098. - bool SaveLayout(Serializer& dest, UIElement* element)
  4099. - void SetClipBoardText(const String text)
  4100. - void SetDoubleClickInterval(float interval)
  4101. - void SetDragBeginInterval(float interval)
  4102. - void SetDragBeginDistance(int pixels)
  4103. - void SetDefaultToolTipDelay(float delay)
  4104. - void SetMaxFontTextureSize(int size)
  4105. - void SetNonFocusedMouseWheel(bool nonFocusedMouseWheel)
  4106. - void SetUseSystemClipBoard(bool enable)
  4107. - void SetUseScreenKeyboard(bool enable)
  4108. - void SetUseMutableGlyphs(bool enable)
  4109. - void SetForceAutoHint(bool enable)
  4110. - UIElement* GetRoot() const
  4111. - UIElement* GetRootModalElement() const
  4112. - Cursor* GetCursor() const
  4113. - IntVector2 GetCursorPosition() const
  4114. - UIElement* GetElementAt(const IntVector2& position, bool enabledOnly = true)
  4115. - UIElement* GetElementAt(int x, int y, bool enabledOnly = true)
  4116. - UIElement* GetFocusElement() const
  4117. - UIElement* GetFrontElement() const
  4118. - UIElement* GetDragElement() const
  4119. - const String GetClipBoardText() const
  4120. - float GetDoubleClickInterval() const
  4121. - float GetDragBeginInterval() const
  4122. - int GetDragBeginDistance() const
  4123. - float GetDefaultToolTipDelay() const
  4124. - int GetMaxFontTextureSize() const
  4125. - bool IsNonFocusedMouseWheel() const
  4126. - bool GetUseSystemClipBoard() const
  4127. - bool GetUseScreenKeyboard() const
  4128. - bool GetUseMutableGlyphs() const
  4129. - bool GetForceAutoHint() const
  4130. - bool HasModalElement() const
  4131. Properties:
  4132. - UIElement* root (readonly)
  4133. - UIElement* rootModalElement (readonly)
  4134. - Cursor* cursor
  4135. - IntVector2 cursorPosition (readonly)
  4136. - UIElement* focusElement (readonly)
  4137. - UIElement* frontElement (readonly)
  4138. - UIElement* dragElement (readonly)
  4139. - String clipBoardText
  4140. - float doubleClickInterval
  4141. - float dragBeginInterval
  4142. - int dragBeginDistance
  4143. - float defaultToolTipDelay
  4144. - int maxFontTextureSize
  4145. - bool nonFocusedMouseWheel
  4146. - bool useSystemClipBoard
  4147. - bool useScreenKeyboard
  4148. - bool useMutableGlyphs
  4149. - bool forceAutoHint
  4150. - bool modalElement (readonly)
  4151. ### Window : BorderImage
  4152. Methods:
  4153. - Window()
  4154. - virtual ~Window()
  4155. - void SetMovable(bool enable)
  4156. - void SetResizable(bool enable)
  4157. - void SetFixedWidthResizing(bool enable)
  4158. - void SetFixedHeightResizing(bool enable)
  4159. - void SetResizeBorder(const IntRect& rect)
  4160. - void SetModal(bool modal)
  4161. - void SetModalShadeColor(const Color& color)
  4162. - void SetModalFrameColor(const Color& color)
  4163. - void SetModalFrameSize(const IntVector2& size)
  4164. - bool IsMovable() const
  4165. - bool IsResizable() const
  4166. - bool GetFixedWidthResizing() const
  4167. - bool GetFixedHeightResizing() const
  4168. - const IntRect& GetResizeBorder() const
  4169. - bool IsModal() const
  4170. - const Color& GetModalShadeColor() const
  4171. - const Color& GetModalFrameColor() const
  4172. - const IntVector2& GetModalFrameSize() const
  4173. Properties:
  4174. - bool movable
  4175. - bool resizable
  4176. - bool fixedWidthResizing
  4177. - bool fixedHeightResizing
  4178. - IntRect& resizeBorder
  4179. - bool modal
  4180. - Color& modalShadeColor
  4181. - Color& modalFrameColor
  4182. - IntVector2& modalFrameSize
  4183. ### View3D : Window
  4184. Methods:
  4185. - View3D()
  4186. - ~View3D()
  4187. - void SetView(Scene* scene, Camera* camera)
  4188. - void SetFormat(unsigned format)
  4189. - void SetAutoUpdate(bool enable)
  4190. - void QueueUpdate()
  4191. - unsigned GetFormat() const
  4192. - bool GetAutoUpdate() const
  4193. - Scene* GetScene() const
  4194. - Node* GetCameraNode() const
  4195. - Texture2D* GetRenderTexture() const
  4196. - Texture2D* GetDepthTexture() const
  4197. - Viewport* GetViewport() const
  4198. Properties:
  4199. - unsigned format
  4200. - bool autoUpdate
  4201. \section LuaScriptAPI_Enums Enumerations
  4202. ### SoundType
  4203. - int SOUND_EFFECT
  4204. - int SOUND_AMBIENT
  4205. - int SOUND_VOICE
  4206. - int SOUND_MUSIC
  4207. - int SOUND_MASTER
  4208. - int MAX_SOUND_TYPES
  4209. ### VariantType
  4210. - int VAR_NONE
  4211. - int VAR_INT
  4212. - int VAR_BOOL
  4213. - int VAR_FLOAT
  4214. - int VAR_VECTOR2
  4215. - int VAR_VECTOR3
  4216. - int VAR_VECTOR4
  4217. - int VAR_QUATERNION
  4218. - int VAR_COLOR
  4219. - int VAR_STRING
  4220. - int VAR_BUFFER
  4221. - int VAR_PTR
  4222. - int VAR_RESOURCEREF
  4223. - int VAR_RESOURCEREFLIST
  4224. - int VAR_VARIANTVECTOR
  4225. - int VAR_VARIANTMAP
  4226. - int VAR_INTRECT
  4227. - int VAR_INTVECTOR2
  4228. - int MAX_VAR_TYPES
  4229. ### PrimitiveType
  4230. - int TRIANGLE_LIST
  4231. - int LINE_LIST
  4232. ### GeometryType
  4233. - int GEOM_STATIC
  4234. - int GEOM_SKINNED
  4235. - int GEOM_INSTANCED
  4236. - int GEOM_BILLBOARD
  4237. - int GEOM_STATIC_NOINSTANCING
  4238. - int MAX_GEOMETRYTYPES
  4239. ### BlendMode
  4240. - int BLEND_REPLACE
  4241. - int BLEND_ADD
  4242. - int BLEND_MULTIPLY
  4243. - int BLEND_ALPHA
  4244. - int BLEND_ADDALPHA
  4245. - int BLEND_PREMULALPHA
  4246. - int BLEND_INVDESTALPHA
  4247. - int MAX_BLENDMODES
  4248. ### CompareMode
  4249. - int CMP_ALWAYS
  4250. - int CMP_EQUAL
  4251. - int CMP_NOTEQUAL
  4252. - int CMP_LESS
  4253. - int CMP_LESSEQUAL
  4254. - int CMP_GREATER
  4255. - int CMP_GREATEREQUAL
  4256. - int MAX_COMPAREMODES
  4257. ### CullMode
  4258. - int CULL_NONE
  4259. - int CULL_CCW
  4260. - int CULL_CW
  4261. - int MAX_CULLMODES
  4262. ### FillMode
  4263. - int FILL_SOLID
  4264. - int FILL_WIREFRAME
  4265. - int FILL_POINT
  4266. ### StencilOp
  4267. - int OP_KEEP
  4268. - int OP_ZERO
  4269. - int OP_REF
  4270. - int OP_INCR
  4271. - int OP_DECR
  4272. ### LockState
  4273. - int LOCK_NONE
  4274. - int LOCK_HARDWARE
  4275. - int LOCK_SHADOW
  4276. - int LOCK_SCRATCH
  4277. ### VertexElement
  4278. - int ELEMENT_POSITION
  4279. - int ELEMENT_NORMAL
  4280. - int ELEMENT_COLOR
  4281. - int ELEMENT_TEXCOORD1
  4282. - int ELEMENT_TEXCOORD2
  4283. - int ELEMENT_CUBETEXCOORD1
  4284. - int ELEMENT_CUBETEXCOORD2
  4285. - int ELEMENT_TANGENT
  4286. - int ELEMENT_BLENDWEIGHTS
  4287. - int ELEMENT_BLENDINDICES
  4288. - int ELEMENT_INSTANCEMATRIX1
  4289. - int ELEMENT_INSTANCEMATRIX2
  4290. - int ELEMENT_INSTANCEMATRIX3
  4291. - int MAX_VERTEX_ELEMENTS
  4292. ### TextureFilterMode
  4293. - int FILTER_NEAREST
  4294. - int FILTER_BILINEAR
  4295. - int FILTER_TRILINEAR
  4296. - int FILTER_ANISOTROPIC
  4297. - int FILTER_DEFAULT
  4298. - int MAX_FILTERMODES
  4299. ### TextureAddressMode
  4300. - int ADDRESS_WRAP
  4301. - int ADDRESS_MIRROR
  4302. - int ADDRESS_CLAMP
  4303. - int ADDRESS_BORDER
  4304. - int MAX_ADDRESSMODES
  4305. ### TextureCoordinate
  4306. - int COORD_U
  4307. - int COORD_V
  4308. - int COORD_W
  4309. - int MAX_COORDS
  4310. ### TextureUsage
  4311. - int TEXTURE_STATIC
  4312. - int TEXTURE_DYNAMIC
  4313. - int TEXTURE_RENDERTARGET
  4314. - int TEXTURE_DEPTHSTENCIL
  4315. ### CubeMapFace
  4316. - int FACE_POSITIVE_X
  4317. - int FACE_NEGATIVE_X
  4318. - int FACE_POSITIVE_Y
  4319. - int FACE_NEGATIVE_Y
  4320. - int FACE_POSITIVE_Z
  4321. - int FACE_NEGATIVE_Z
  4322. - int MAX_CUBEMAP_FACES
  4323. ### RenderSurfaceUpdateMode
  4324. - int SURFACE_MANUALUPDATE
  4325. - int SURFACE_UPDATEVISIBLE
  4326. - int SURFACE_UPDATEALWAYS
  4327. ### ShaderType
  4328. - int VS
  4329. - int PS
  4330. ### TextureUnit
  4331. - int TU_DIFFUSE
  4332. - int TU_ALBEDOBUFFER
  4333. - int TU_NORMAL
  4334. - int TU_NORMALBUFFER
  4335. - int TU_SPECULAR
  4336. - int TU_EMISSIVE
  4337. - int TU_ENVIRONMENT
  4338. - int MAX_MATERIAL_TEXTURE_UNITS
  4339. - int TU_LIGHTRAMP
  4340. - int TU_LIGHTSHAPE
  4341. - int TU_SHADOWMAP
  4342. - int TU_FACESELECT
  4343. - int TU_INDIRECTION
  4344. - int TU_DEPTHBUFFER
  4345. - int TU_LIGHTBUFFER
  4346. - int TU_VOLUMEMAP
  4347. - int MAX_TEXTURE_UNITS
  4348. ### ShaderParameterGroup
  4349. - int SP_FRAME
  4350. - int SP_CAMERA
  4351. - int SP_VIEWPORT
  4352. - int SP_ZONE
  4353. - int SP_LIGHT
  4354. - int SP_VERTEXLIGHTS
  4355. - int SP_MATERIAL
  4356. - int SP_OBJECTTRANSFORM
  4357. - int MAX_SHADER_PARAMETER_GROUPS
  4358. ### UpdateGeometryType
  4359. - int UPDATE_NONE
  4360. - int UPDATE_MAIN_THREAD
  4361. - int UPDATE_WORKER_THREAD
  4362. ### LightType
  4363. - int LIGHT_DIRECTIONAL
  4364. - int LIGHT_SPOT
  4365. - int LIGHT_POINT
  4366. ### RayQueryLevel
  4367. - int RAY_AABB
  4368. - int RAY_OBB
  4369. - int RAY_TRIANGLE
  4370. ### EmitterType
  4371. - int EMITTER_SPHERE
  4372. - int EMITTER_BOX
  4373. ### LightVSVariation
  4374. - int LVS_DIR
  4375. - int LVS_SPOT
  4376. - int LVS_POINT
  4377. - int LVS_SPEC
  4378. - int LVS_SPOTSPEC
  4379. - int LVS_POINTSPEC
  4380. - int LVS_SHADOW
  4381. - int LVS_SPOTSHADOW
  4382. - int LVS_POINTSHADOW
  4383. - int LVS_DIRSPECSHADOW
  4384. - int LVS_SPOTSPECSHADOW
  4385. - int LVS_POINTSPECSHADOW
  4386. - int MAX_LIGHT_VS_VARIATIONS
  4387. ### VertexLightVSVariation
  4388. - int VLVS_NOLIGHTS
  4389. - int VLVS_1LIGHT
  4390. - int VLVS_2LIGHTS
  4391. - int VLVS_3LIGHTS
  4392. - int VLVS_4LIGHTS
  4393. - int MAX_VERTEXLIGHT_VS_VARIATIONS
  4394. ### LightPSVariation
  4395. - int LPS_NONE
  4396. - int LPS_SPOT
  4397. - int LPS_POINT
  4398. - int LPS_POINTMASK
  4399. - int LPS_SPEC
  4400. - int LPS_SPOTSPEC
  4401. - int LPS_POINTSPEC
  4402. - int LPS_POINTMASKSPEC
  4403. - int LPS_SHADOW
  4404. - int LPS_SPOTSHADOW
  4405. - int LPS_POINTSHADOW
  4406. - int LPS_POINTMASKSHADOW
  4407. - int LPS_SHADOWSPEC
  4408. - int LPS_SPOTSHADOWSPEC
  4409. - int LPS_POINTSHADOWSPEC
  4410. - int LPS_POINTMASKSHADOWSPEC
  4411. - int MAX_LIGHT_PS_VARIATIONS
  4412. ### DeferredLightVSVariation
  4413. - int DLVS_NONE
  4414. - int DLVS_DIR
  4415. - int DLVS_ORTHO
  4416. - int DLVS_ORTHODIR
  4417. - int MAX_DEFERRED_LIGHT_VS_VARIATIONS
  4418. ### DeferredLightPSVariation
  4419. - int DLPS_NONE
  4420. - int DLPS_SPOT
  4421. - int DLPS_POINT
  4422. - int DLPS_POINTMASK
  4423. - int DLPS_SPEC
  4424. - int DLPS_SPOTSPEC
  4425. - int DLPS_POINTSPEC
  4426. - int DLPS_POINTMASKSPEC
  4427. - int DLPS_SHADOW
  4428. - int DLPS_SPOTSHADOW
  4429. - int DLPS_POINTSHADOW
  4430. - int DLPS_POINTMASKSHADOW
  4431. - int DLPS_SHADOWSPEC
  4432. - int DLPS_SPOTSHADOWSPEC
  4433. - int DLPS_POINTSHADOWSPEC
  4434. - int DLPS_POINTMASKSHADOWSPEC
  4435. - int DLPS_ORTHO
  4436. - int DLPS_ORTHOSPOT
  4437. - int DLPS_ORTHOPOINT
  4438. - int DLPS_ORTHOPOINTMASK
  4439. - int DLPS_ORTHOSPEC
  4440. - int DLPS_ORTHOSPOTSPEC
  4441. - int DLPS_ORTHOPOINTSPEC
  4442. - int DLPS_ORTHOPOINTMASKSPEC
  4443. - int DLPS_ORTHOSHADOW
  4444. - int DLPS_ORTHOSPOTSHADOW
  4445. - int DLPS_ORTHOPOINTSHADOW
  4446. - int DLPS_ORTHOPOINTMASKSHADOW
  4447. - int DLPS_ORTHOSHADOWSPEC
  4448. - int DLPS_ORTHOSPOTSHADOWSPEC
  4449. - int DLPS_ORTHOPOINTSHADOWSPEC
  4450. - int DLPS_ORTHOPOINTMASKSHADOWSPEC
  4451. - int MAX_DEFERRED_LIGHT_PS_VARIATIONS
  4452. ### PassLightingMode
  4453. - int LIGHTING_UNLIT
  4454. - int LIGHTING_PERVERTEX
  4455. - int LIGHTING_PERPIXEL
  4456. ### FileMode
  4457. - int FILE_READ
  4458. - int FILE_WRITE
  4459. - int FILE_READWRITE
  4460. ### Intersection
  4461. - int OUTSIDE
  4462. - int INTERSECTS
  4463. - int INSIDE
  4464. ### FrustumPlane
  4465. - int PLANE_NEAR
  4466. - int PLANE_LEFT
  4467. - int PLANE_RIGHT
  4468. - int PLANE_UP
  4469. - int PLANE_DOWN
  4470. - int PLANE_FAR
  4471. ### HttpRequestState
  4472. - int HTTP_INITIALIZING
  4473. - int HTTP_ERROR
  4474. - int HTTP_OPEN
  4475. - int HTTP_CLOSED
  4476. ### ShapeType
  4477. - int SHAPE_BOX
  4478. - int SHAPE_SPHERE
  4479. - int SHAPE_STATICPLANE
  4480. - int SHAPE_CYLINDER
  4481. - int SHAPE_CAPSULE
  4482. - int SHAPE_CONE
  4483. - int SHAPE_TRIANGLEMESH
  4484. - int SHAPE_CONVEXHULL
  4485. - int SHAPE_TERRAIN
  4486. ### ConstraintType
  4487. - int CONSTRAINT_POINT
  4488. - int CONSTRAINT_HINGE
  4489. - int CONSTRAINT_SLIDER
  4490. - int CONSTRAINT_CONETWIST
  4491. ### CollisionEventMode
  4492. - int COLLISION_NEVER
  4493. - int COLLISION_ACTIVE
  4494. - int COLLISION_ALWAYS
  4495. ### CompressedFormat
  4496. - int CF_NONE
  4497. - int CF_DXT1
  4498. - int CF_DXT3
  4499. - int CF_DXT5
  4500. - int CF_ETC1
  4501. - int CF_PVRTC_RGB_2BPP
  4502. - int CF_PVRTC_RGBA_2BPP
  4503. - int CF_PVRTC_RGB_4BPP
  4504. - int CF_PVRTC_RGBA_4BPP
  4505. ### CreateMode
  4506. - int REPLICATED
  4507. - int LOCAL
  4508. ### InterpolationMode
  4509. - int BEZIER_CURVE
  4510. ### HorizontalAlignment
  4511. - int HA_LEFT
  4512. - int HA_CENTER
  4513. - int HA_RIGHT
  4514. ### VerticalAlignment
  4515. - int VA_TOP
  4516. - int VA_CENTER
  4517. - int VA_BOTTOM
  4518. ### Corner
  4519. - int C_TOPLEFT
  4520. - int C_TOPRIGHT
  4521. - int C_BOTTOMLEFT
  4522. - int C_BOTTOMRIGHT
  4523. - int MAX_UIELEMENT_CORNERS
  4524. ### Orientation
  4525. - int O_HORIZONTAL
  4526. - int O_VERTICAL
  4527. ### FocusMode
  4528. - int FM_NOTFOCUSABLE
  4529. - int FM_RESETFOCUS
  4530. - int FM_FOCUSABLE
  4531. - int FM_FOCUSABLE_DEFOCUSABLE
  4532. ### LayoutMode
  4533. - int LM_FREE
  4534. - int LM_HORIZONTAL
  4535. - int LM_VERTICAL
  4536. ### TraversalMode
  4537. - int TM_BREADTH_FIRST
  4538. - int TM_DEPTH_FIRST
  4539. ### CursorShape
  4540. - int CS_NORMAL
  4541. - int CS_RESIZEVERTICAL
  4542. - int CS_RESIZEDIAGONAL_TOPRIGHT
  4543. - int CS_RESIZEHORIZONTAL
  4544. - int CS_RESIZEDIAGONAL_TOPLEFT
  4545. - int CS_ACCEPTDROP
  4546. - int CS_REJECTDROP
  4547. - int CS_BUSY
  4548. - int CS_MAX_SHAPES
  4549. ### HighlightMode
  4550. - int HM_NEVER
  4551. - int HM_FOCUS
  4552. - int HM_ALWAYS
  4553. ### TextEffect
  4554. - int TE_NONE
  4555. - int TE_SHADOW
  4556. - int TE_STROKE
  4557. ### WindowDragMode
  4558. - int DRAG_NONE
  4559. - int DRAG_MOVE
  4560. - int DRAG_RESIZE_TOPLEFT
  4561. - int DRAG_RESIZE_TOP
  4562. - int DRAG_RESIZE_TOPRIGHT
  4563. - int DRAG_RESIZE_RIGHT
  4564. - int DRAG_RESIZE_BOTTOMRIGHT
  4565. - int DRAG_RESIZE_BOTTOM
  4566. - int DRAG_RESIZE_BOTTOMLEFT
  4567. - int DRAG_RESIZE_LEFT
  4568. \section LuaScriptAPI_GlobalFunctions Global functions
  4569. - Audio* GetAudio()
  4570. - Context* GetContext()
  4571. - Object* GetEventSender()
  4572. - EventHandler* GetEventHandler() const
  4573. - void ErrorDialog(const String title, const String message)
  4574. - void ErrorExit(const String message = String::EMPTY, int exitCode = EXIT_FAILURE)
  4575. - void OpenConsoleWindow()
  4576. - void PrintLine(const String str, bool error = false)
  4577. - const Vector<String>& GetArguments()
  4578. - String GetConsoleInput()
  4579. - String GetPlatform()
  4580. - unsigned GetNumPhysicalCPUs()
  4581. - unsigned GetNumLogicalCPUs()
  4582. - bool ToBool(const String source)
  4583. - float ToFloat(const String source)
  4584. - int ToInt(const String source)
  4585. - unsigned ToUInt(const String source)
  4586. - Color ToColor(const String source)
  4587. - IntRect ToIntRect(const String source)
  4588. - IntVector2 ToIntVector2(const String source)
  4589. - Quaternion ToQuaternion(const String source)
  4590. - Rect ToRect(const String source)
  4591. - Vector2 ToVector2(const String source)
  4592. - Vector3 ToVector3(const String source)
  4593. - Vector4 ToVector4(const String source, bool allowMissingCoords = false)
  4594. - String ToString(void* value)
  4595. - String ToStringHex(unsigned value)
  4596. - bool IsAlpha(unsigned ch)
  4597. - bool IsDigit(unsigned ch)
  4598. - unsigned ToUpper(unsigned ch)
  4599. - unsigned ToLower(unsigned ch)
  4600. - Time* GetTime()
  4601. - Console* GetConsole()
  4602. - DebugHud* GetDebugHud()
  4603. - Engine* GetEngine()
  4604. - Graphics* GetGraphics()
  4605. - Renderer* GetRenderer()
  4606. - String GetPath(const String fullPath)
  4607. - String GetFileName(const String fullPath)
  4608. - String GetExtension(const String fullPath, bool lowercaseExtension = true)
  4609. - String GetFileNameAndExtension(const String fullPath, bool lowercaseExtension = false)
  4610. - String ReplaceExtension(const String fullPath, const String newExtension)
  4611. - String AddTrailingSlash(const String pathName)
  4612. - String RemoveTrailingSlash(const String pathName)
  4613. - String GetParentPath(const String pathName)
  4614. - String GetInternalPath(const String pathName)
  4615. - String GetNativePath(const String pathName)
  4616. - bool IsAbsolutePath(const String pathName)
  4617. - FileSystem * GetFileSystem()
  4618. - Log* GetLog()
  4619. - Input* GetInput()
  4620. - void SendEvent(const String eventName, VariantMap& eventData)
  4621. - void SubscribeToEvent(const String eventName, const String functionName)
  4622. - void UnsubscribeFromEvent(const String eventName)
  4623. - void UnsubscribeFromAllEvents()
  4624. - void SubscribeToEvent(void* sender, const String eventName, const String functionName)
  4625. - void UnsubscribeFromEvent(void* sender, const String eventName)
  4626. - void UnsubscribeFromEvents(void* sender)
  4627. - float Lerp(float lhs, float rhs, float t)
  4628. - float Min(float lhs, float rhs)
  4629. - float Max(float lhs, float rhs)
  4630. - float Abs(float value)
  4631. - float Sign(float value)
  4632. - float Clamp(float value, float min, float max)
  4633. - float SmoothStep(float lhs, float rhs, float t)
  4634. - bool Equals(float lhs, float rhs)
  4635. - float Random()
  4636. - float Random(float range)
  4637. - float Random(float min, float max)
  4638. - int RandomInt(int range)
  4639. - int RandomInt(int min, int max)
  4640. - void SetRandomSeed(unsigned seed)
  4641. - unsigned GetRandomSeed()
  4642. - int Rand()
  4643. - Network* GetNetwork()
  4644. - ResourceCache* GetCache()
  4645. - UI* GetUI()
  4646. \section LuaScriptAPI_GlobalProperties Global properties
  4647. - Audio* audio (readonly)
  4648. - Time* time (readonly)
  4649. - Console* console (readonly)
  4650. - DebugHud* debugHud (readonly)
  4651. - Engine* engine (readonly)
  4652. - Graphics* graphics (readonly)
  4653. - Renderer* renderer (readonly)
  4654. - FileSystem* fileSystem (readonly)
  4655. - Log* log (readonly)
  4656. - Input* input (readonly)
  4657. - Network* network (readonly)
  4658. - ResourceCache* cache (readonly)
  4659. - UI* ui (readonly)
  4660. \section LuaScriptAPI_GlobalConstants Global constants
  4661. - unsigned DEBUGHUD_SHOW_NONE
  4662. - unsigned DEBUGHUD_SHOW_STATS
  4663. - unsigned DEBUGHUD_SHOW_MODE
  4664. - unsigned DEBUGHUD_SHOW_PROFILER
  4665. - unsigned DEBUGHUD_SHOW_ALL
  4666. - int QUALITY_LOW
  4667. - int QUALITY_MEDIUM
  4668. - int QUALITY_HIGH
  4669. - int QUALITY_MAX
  4670. - int SHADOWQUALITY_LOW_16BIT
  4671. - int SHADOWQUALITY_LOW_24BIT
  4672. - int SHADOWQUALITY_HIGH_16BIT
  4673. - int SHADOWQUALITY_HIGH_24BIT
  4674. - unsigned CLEAR_COLOR
  4675. - unsigned CLEAR_DEPTH
  4676. - unsigned CLEAR_STENCIL
  4677. - unsigned DRAWABLE_GEOMETRY
  4678. - unsigned DRAWABLE_LIGHT
  4679. - unsigned DRAWABLE_ZONE
  4680. - unsigned DRAWABLE_ANY
  4681. - unsigned DEFAULT_VIEWMASK
  4682. - unsigned DEFAULT_LIGHTMASK
  4683. - unsigned DEFAULT_SHADOWMASK
  4684. - unsigned DEFAULT_ZONEMASK
  4685. - int MAX_VERTEX_LIGHTS
  4686. - float ANIMATION_LOD_BASESCALE
  4687. - unsigned char CHANNEL_POSITION
  4688. - unsigned char CHANNEL_ROTATION
  4689. - unsigned char CHANNEL_SCALE
  4690. - unsigned VO_NONE
  4691. - unsigned VO_LOW_MATERIAL_QUALITY
  4692. - unsigned VO_DISABLE_SHADOWS
  4693. - unsigned VO_DISABLE_OCCLUSION
  4694. - int SHADOW_MIN_PIXELS
  4695. - int INSTANCING_BUFFER_DEFAULT_SIZE
  4696. - unsigned SCAN_FILES
  4697. - unsigned SCAN_DIRS
  4698. - unsigned SCAN_HIDDEN
  4699. - int LOG_DEBUG
  4700. - int LOG_INFO
  4701. - int LOG_WARNING
  4702. - int LOG_ERROR
  4703. - int LOG_NONE
  4704. - int MOUSEB_LEFT
  4705. - int MOUSEB_MIDDLE
  4706. - int MOUSEB_RIGHT
  4707. - int QUAL_SHIFT
  4708. - int QUAL_CTRL
  4709. - int QUAL_ALT
  4710. - int QUAL_ANY
  4711. - int KEY_1
  4712. - int KEY_2
  4713. - int KEY_3
  4714. - int KEY_4
  4715. - int KEY_5
  4716. - int KEY_6
  4717. - int KEY_7
  4718. - int KEY_8
  4719. - int KEY_9
  4720. - int KEY_0
  4721. - int KEY_A
  4722. - int KEY_B
  4723. - int KEY_C
  4724. - int KEY_D
  4725. - int KEY_E
  4726. - int KEY_F
  4727. - int KEY_G
  4728. - int KEY_H
  4729. - int KEY_I
  4730. - int KEY_J
  4731. - int KEY_K
  4732. - int KEY_L
  4733. - int KEY_M
  4734. - int KEY_N
  4735. - int KEY_O
  4736. - int KEY_P
  4737. - int KEY_Q
  4738. - int KEY_R
  4739. - int KEY_S
  4740. - int KEY_T
  4741. - int KEY_U
  4742. - int KEY_V
  4743. - int KEY_W
  4744. - int KEY_X
  4745. - int KEY_Y
  4746. - int KEY_Z
  4747. - int KEY_BACKSPACE
  4748. - int KEY_TAB
  4749. - int KEY_RETURN
  4750. - int KEY_RETURN2
  4751. - int KEY_KP_ENTER
  4752. - int KEY_SHIFT
  4753. - int KEY_CTRL
  4754. - int KEY_ALT
  4755. - int KEY_PAUSE
  4756. - int KEY_CAPSLOCK
  4757. - int KEY_ESC
  4758. - int KEY_SPACE
  4759. - int KEY_PAGEUP
  4760. - int KEY_PAGEDOWN
  4761. - int KEY_END
  4762. - int KEY_HOME
  4763. - int KEY_LEFT
  4764. - int KEY_UP
  4765. - int KEY_RIGHT
  4766. - int KEY_DOWN
  4767. - int KEY_SELECT
  4768. - int KEY_PRINTSCREEN
  4769. - int KEY_INSERT
  4770. - int KEY_DELETE
  4771. - int KEY_LWIN
  4772. - int KEY_RWIN
  4773. - int KEY_APPS
  4774. - int KEY_NUMPAD0
  4775. - int KEY_NUMPAD1
  4776. - int KEY_NUMPAD2
  4777. - int KEY_NUMPAD3
  4778. - int KEY_NUMPAD4
  4779. - int KEY_NUMPAD5
  4780. - int KEY_NUMPAD6
  4781. - int KEY_NUMPAD7
  4782. - int KEY_NUMPAD8
  4783. - int KEY_NUMPAD9
  4784. - int KEY_MULTIPLY
  4785. - int KEY_ADD
  4786. - int KEY_SUBTRACT
  4787. - int KEY_DECIMAL
  4788. - int KEY_DIVIDE
  4789. - int KEY_F1
  4790. - int KEY_F2
  4791. - int KEY_F3
  4792. - int KEY_F4
  4793. - int KEY_F5
  4794. - int KEY_F6
  4795. - int KEY_F7
  4796. - int KEY_F8
  4797. - int KEY_F9
  4798. - int KEY_F10
  4799. - int KEY_F11
  4800. - int KEY_F12
  4801. - int KEY_F13
  4802. - int KEY_F14
  4803. - int KEY_F15
  4804. - int KEY_F16
  4805. - int KEY_F17
  4806. - int KEY_F18
  4807. - int KEY_F19
  4808. - int KEY_F20
  4809. - int KEY_F21
  4810. - int KEY_F22
  4811. - int KEY_F23
  4812. - int KEY_F24
  4813. - int KEY_NUMLOCK
  4814. - int KEY_SCROLLLOCK
  4815. - int KEY_LSHIFT
  4816. - int KEY_RSHIFT
  4817. - int KEY_LCTRL
  4818. - int KEY_RCTRL
  4819. - int KEY_LALT
  4820. - int KEY_RALT
  4821. - int HAT_CENTER
  4822. - int HAT_UP
  4823. - int HAT_RIGHT
  4824. - int HAT_DOWN
  4825. - int HAT_LEFT
  4826. - int CONTROLLER_BUTTON_A
  4827. - int CONTROLLER_BUTTON_B
  4828. - int CONTROLLER_BUTTON_X
  4829. - int CONTROLLER_BUTTON_Y
  4830. - int CONTROLLER_BUTTON_BACK
  4831. - int CONTROLLER_BUTTON_GUIDE
  4832. - int CONTROLLER_BUTTON_START
  4833. - int CONTROLLER_BUTTON_LEFTSTICK
  4834. - int CONTROLLER_BUTTON_RIGHTSTICK
  4835. - int CONTROLLER_BUTTON_LEFTSHOULDER
  4836. - int CONTROLLER_BUTTON_RIGHTSHOULDER
  4837. - int CONTROLLER_BUTTON_DPAD_UP
  4838. - int CONTROLLER_BUTTON_DPAD_DOWN
  4839. - int CONTROLLER_BUTTON_DPAD_LEFT
  4840. - int CONTROLLER_BUTTON_DPAD_RIGHT
  4841. - int CONTROLLER_AXIS_LEFTX
  4842. - int CONTROLLER_AXIS_LEFTY
  4843. - int CONTROLLER_AXIS_RIGHTX
  4844. - int CONTROLLER_AXIS_RIGHTY
  4845. - int CONTROLLER_AXIS_TRIGGERLEFT
  4846. - int CONTROLLER_AXIS_TRIGGERRIGHT
  4847. - float M_PI
  4848. - int M_MIN_INT
  4849. - int M_MAX_INT
  4850. - unsigned M_MIN_UNSIGNED
  4851. - unsigned M_MAX_UNSIGNED
  4852. - float M_EPSILON
  4853. - float M_LARGE_EPSILON
  4854. - float M_MIN_NEARCLIP
  4855. - float M_MAX_FOV
  4856. - float M_LARGE_VALUE
  4857. - float M_INFINITY
  4858. - float M_DEGTORAD
  4859. - float M_DEGTORAD_2
  4860. - float M_RADTODEG
  4861. - unsigned NUM_FRUSTUM_PLANES
  4862. - unsigned NUM_FRUSTUM_VERTICES
  4863. - unsigned FIRST_REPLICATED_ID
  4864. - unsigned LAST_REPLICATED_ID
  4865. - unsigned FIRST_LOCAL_ID
  4866. - unsigned LAST_LOCAL_ID
  4867. - unsigned DD_DISABLED
  4868. - unsigned DD_SOURCE
  4869. - unsigned DD_TARGET
  4870. - unsigned DD_SOURCE_AND_TARGET
  4871. \section LuaScriptAPI_RenameTypes Rename types
  4872. */
  4873. }