Source.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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">
  12. Represents the data source of a texture.
  13. </p>
  14. <h2>Constructor</h2>
  15. <h3>[name]( [param:Any data] )</h3>
  16. <p>
  17. [page:Any data] -- The data definition of a texture. Default is *null*.
  18. </p>
  19. <h2>Properties</h2>
  20. <h3>[property:Any data]</h3>
  21. <p>
  22. The actual data of a texture. The type of this property depends on the texture that uses this instance.
  23. </p>
  24. <h3>[property:Boolean needsUpdate]</h3>
  25. <p>
  26. Set this to *true* to trigger a data upload to the GPU next time the source is used.
  27. </p>
  28. <h3>[property:String uuid]</h3>
  29. <p>
  30. [link:http://en.wikipedia.org/wiki/Universally_unique_identifier UUID] of this object instance.
  31. This gets automatically assigned, so this shouldn't be edited.
  32. </p>
  33. <h3>[property:Integer version]</h3>
  34. <p>
  35. This starts at *0* and counts how many times [page:Source.needsUpdate .needsUpdate] is set to *true*.
  36. </p>
  37. <h2>Methods</h2>
  38. <h3>[method:Object toJSON]( [param:Object meta] )</h3>
  39. <p>
  40. meta -- optional object containing metadata.<br />
  41. Convert the data source to three.js [link:https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4 JSON Object/Scene format].
  42. </p>
  43. <h2>Source</h2>
  44. <p>
  45. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  46. </p>
  47. </body>
  48. </html>