LuaScriptAPI.dox 149 KB

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