| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>Uint8BufferAttribute - 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="BufferAttribute.html">BufferAttribute</a> → </p>
- <h1 translate="no">Uint8BufferAttribute</h1>
- <section>
- <header>
- <div class="class-description"><p>Convenient class that can be used when creating a <code>UInt8</code> buffer attribute with
- a plain <code>Array</code> instance.</p></div>
- </header>
- <article>
- <div class="container-overview">
- <h2>Constructor</h2>
- <h3 class="name name-method" id="Uint8BufferAttribute" translate="no">new <a href="#Uint8BufferAttribute">Uint8BufferAttribute</a><span class="signature">( array : <span class="param-type">Array.<number> | Uint8Array</span>, itemSize : <span class="param-type">number</span>, normalized : <span class="param-type">boolean</span> )</span> </h3>
- <div class="method">
- <div class="description">
- <p>Constructs a new buffer attribute.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name">
- <strong>array</strong>
- </td>
- <td class="description last">
- <p>The array holding the attribute data.</p>
- </td>
- </tr>
- <tr>
- <td class="name">
- <strong>itemSize</strong>
- </td>
- <td class="description last">
- <p>The item size.</p>
- </td>
- </tr>
- <tr>
- <td class="name">
- <strong>normalized</strong>
- </td>
- <td class="description last">
- <p>Whether the data are normalized or not.</p>
- <p>Default is <code>false</code>.</p>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <h2 class="subsection-title">Source</h2>
- <p>
- <a href="https://github.com/mrdoob/three.js/blob/master/src/core/BufferAttribute.js" translate="no" target="_blank" rel="noopener">src/core/BufferAttribute.js</a>
- </p>
- </article>
- </section>
- <script src="../scripts/linenumber.js"></script>
- <script src="../scripts/page.js"></script>
- </body>
- </html>
|