LuaScriptAPI.dox 142 KB

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