LuaScriptAPI.dox 142 KB

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