| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>InstancedInterleavedBuffer - Three.js Docs</title>
- <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
- <script src="../scripts/highlight.min.js"></script>
- <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
- <link type="text/css" rel="stylesheet" href="../styles/page.css">
- </head>
- <body>
- <p class="inheritance" translate="no"><a href="InterleavedBuffer.html">InterleavedBuffer</a> → </p>
- <h1 translate="no">InstancedInterleavedBuffer</h1>
- <section>
- <header>
- <div class="class-description"><p>An instanced version of an interleaved buffer.</p></div>
- </header>
- <article>
- <div class="container-overview">
- <h2>Constructor</h2>
- <h3 class="name name-method" id="InstancedInterleavedBuffer" translate="no">new <a href="#InstancedInterleavedBuffer">InstancedInterleavedBuffer</a><span class="signature">( array : <span class="param-type">TypedArray</span>, stride : <span class="param-type">number</span>, meshPerAttribute : <span class="param-type">number</span> )</span> </h3>
- <div class="method">
- <div class="description">
- <p>Constructs a new instanced interleaved buffer.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name">
- <strong>array</strong>
- </td>
- <td class="description last">
- <p>A typed array with a shared buffer storing attribute data.</p>
- </td>
- </tr>
- <tr>
- <td class="name">
- <strong>stride</strong>
- </td>
- <td class="description last">
- <p>The number of typed-array elements per vertex.</p>
- </td>
- </tr>
- <tr>
- <td class="name">
- <strong>meshPerAttribute</strong>
- </td>
- <td class="description last">
- <p>Defines how often a value of this interleaved buffer should be repeated.</p>
- <p>Default is <code>1</code>.</p>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <h2 class="subsection-title">Properties</h2>
- <div class="member">
- <h3 class="name" id="isInstancedInterleavedBuffer" translate="no">.<a href="#isInstancedInterleavedBuffer">isInstancedInterleavedBuffer</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
- <div class="description">
- <p>This flag can be used for type testing.</p>
- <p>Default is <code>true</code>.</p>
- </div>
- </div>
- <div class="member">
- <h3 class="name" id="meshPerAttribute" translate="no">.<a href="#meshPerAttribute">meshPerAttribute</a><span class="type-signature"> : number</span> </h3>
- <div class="description">
- <p>Defines how often a value of this buffer attribute should be repeated,
- see <a href="InstancedBufferAttribute.html#meshPerAttribute">InstancedBufferAttribute#meshPerAttribute</a>.</p>
- <p>Default is <code>1</code>.</p>
- </div>
- </div>
- <h2 class="subsection-title">Source</h2>
- <p>
- <a href="https://github.com/mrdoob/three.js/blob/master/src/core/InstancedInterleavedBuffer.js" translate="no" target="_blank" rel="noopener">src/core/InstancedInterleavedBuffer.js</a>
- </p>
- </article>
- </section>
- <script src="../scripts/linenumber.js"></script>
- <script src="../scripts/page.js"></script>
- </body>
- </html>
|