LuaScriptAPI.dox 148 KB

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