2
0

Source.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="page.css" />
  8. </head>
  9. <body>
  10. <h1>[name]</h1>
  11. <p class="desc">Represents the data source of a texture.</p>
  12. <h2>Constructor</h2>
  13. <h3>[name]( [param:Any data] )</h3>
  14. <p>
  15. [page:Any data] -- The data definition of a texture. Default is `null`.
  16. </p>
  17. <h2>Properties</h2>
  18. <h3>[property:Any data]</h3>
  19. <p>
  20. The actual data of a texture. The type of this property depends on the
  21. texture that uses this instance.
  22. </p>
  23. <h3>[property:Boolean isSource]</h3>
  24. <p>Read-only flag to check if a given object is of type [name].</p>
  25. <h3>[property:Boolean needsUpdate]</h3>
  26. <p>
  27. Set this to `true` to trigger a data upload to the GPU next time the
  28. source is used.
  29. </p>
  30. <h3>[property:String uuid]</h3>
  31. <p>
  32. [link:http://en.wikipedia.org/wiki/Universally_unique_identifier UUID] of
  33. this object instance. This gets automatically assigned, so this shouldn't
  34. be edited.
  35. </p>
  36. <h3>[property:Integer version]</h3>
  37. <p>
  38. This starts at `0` and counts how many times [page:Source.needsUpdate .needsUpdate] is set to `true`.
  39. </p>
  40. <h2>Methods</h2>
  41. <h3>[method:Object toJSON]( [param:Object meta] )</h3>
  42. <p>
  43. meta -- optional object containing metadata.<br />
  44. Convert the data source to three.js
  45. [link:https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4 JSON Object/Scene format].
  46. </p>
  47. <h2>Source</h2>
  48. <p>
  49. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  50. </p>
  51. </body>
  52. </html>