NodeParser.html 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>NodeParser - Three.js Docs</title>
  6. <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  7. <script src="../scripts/highlight.min.js"></script>
  8. <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
  9. <link type="text/css" rel="stylesheet" href="../styles/page.css">
  10. </head>
  11. <body>
  12. <h1 translate="no">NodeParser</h1>
  13. <section>
  14. <header>
  15. <div class="class-description"><p>Base class for node parsers. A derived parser must be implemented
  16. for each supported native shader language.</p></div>
  17. </header>
  18. <article>
  19. <div class="container-overview">
  20. <h2>Constructor</h2>
  21. <h3 class="name name-method" id="NodeParser" translate="no">new <a href="#NodeParser">NodeParser</a><span class="signature">()</span> </h3>
  22. <div class="method">
  23. </div>
  24. </div>
  25. <h2 class="subsection-title">Methods</h2>
  26. <h3 class="name name-method" id="parseFunction" translate="no">.<a href="#parseFunction">parseFunction</a><span class="signature">( source : <span class="param-type">string</span> )</span><span class="type-signature"> : <a href="NodeFunction.html">NodeFunction</a></span> <span class="type-signature">(abstract) </span></h3>
  27. <div class="method">
  28. <div class="description">
  29. <p>The method parses the given native code an returns a node function.</p>
  30. </div>
  31. <table class="params">
  32. <tbody>
  33. <tr>
  34. <td class="name"><code>source</code></td>
  35. <td class="description last"><p>The native shader code.</p></td>
  36. </tr>
  37. </tbody>
  38. </table>
  39. <dl class="details">
  40. <dt class="tag-returns"><strong>Returns:</strong> A node function.</dt>
  41. </dl>
  42. </div>
  43. <h2 class="subsection-title">Source</h2>
  44. <p>
  45. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/core/NodeParser.js" target="_blank" rel="noopener" translate="no">src/nodes/core/NodeParser.js</a>
  46. </p>
  47. </article>
  48. </section>
  49. <script src="../scripts/linenumber.js"></script>
  50. <script src="../scripts/page.js"></script>
  51. </body>
  52. </html>
粤ICP备19079148号