WebGLRenderTarget.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>WebGLRenderTarget - 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. <p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a> → <a href="RenderTarget.html">RenderTarget</a> → </p>
  13. <h1 translate="no">WebGLRenderTarget</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>A render target used in context of <a href="WebGLRenderer.html">WebGLRenderer</a>.</p></div>
  17. </header>
  18. <article>
  19. <div class="container-overview">
  20. <h2>Constructor</h2>
  21. <h3 class="name name-method" id="WebGLRenderTarget" translate="no">new <a href="#WebGLRenderTarget">WebGLRenderTarget</a><span class="signature">( width : <span class="param-type">number</span>, height : <span class="param-type">number</span>, options : <span class="param-type">RenderTarget~Options</span> )</span> </h3>
  22. <div class="method">
  23. <div class="description">
  24. <p>Constructs a new 3D render target.</p>
  25. </div>
  26. <table class="params">
  27. <tbody>
  28. <tr>
  29. <td class="name"><code>width</code></td>
  30. <td class="description last"><p>The width of the render target.<br/>Default is <code>1</code>.</p></td>
  31. </tr>
  32. <tr>
  33. <td class="name"><code>height</code></td>
  34. <td class="description last"><p>The height of the render target.<br/>Default is <code>1</code>.</p></td>
  35. </tr>
  36. <tr>
  37. <td class="name"><code>options</code></td>
  38. <td class="description last"><p>The configuration object.</p></td>
  39. </tr>
  40. </tbody>
  41. </table>
  42. </div>
  43. </div>
  44. <h2 class="subsection-title">Properties</h2>
  45. <div class="member">
  46. <h3 class="name" id="isWebGLRenderTarget" translate="no">.<a href="#isWebGLRenderTarget">isWebGLRenderTarget</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  47. <div class="description">
  48. <p>This flag can be used for type testing.<br/>Default is <code>true</code>.</p>
  49. </div>
  50. </div>
  51. <h2 class="subsection-title">Source</h2>
  52. <p>
  53. <a href="https://github.com/mrdoob/three.js/blob/master/src/renderers/WebGLRenderTarget.js" target="_blank" rel="noopener" translate="no">src/renderers/WebGLRenderTarget.js</a>
  54. </p>
  55. </article>
  56. </section>
  57. <script src="../scripts/linenumber.js"></script>
  58. <script src="../scripts/page.js"></script>
  59. </body>
  60. </html>
粤ICP备19079148号