LuaScriptAPI.dox 143 KB

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