LuaScriptAPI.dox 141 KB

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