Commit 1b0ad21ab4e476d4285d580eaa5dca8212b82883
- Diff rendering mode:
- inline
- side by side
src/opengl/qglshaderprogram.cpp
(16 / 14)
|   | |||
| 1555 | 1555 | indicates the number of components per vertex: 1, 2, 3, or 4. | |
| 1556 | 1556 | ||
| 1557 | 1557 | The array will become active when enableAttributeArray() is called | |
| 1558 | on the \a location. Otherwise the value specified with | ||
| 1559 | setAttributeValue() for \a location will be used. | ||
| 1558 | on the \a name. Otherwise the value specified with | ||
| 1559 | setAttributeValue() for \a name will be used. | ||
| 1560 | 1560 | ||
| 1561 | 1561 | The setAttributeBuffer() function can be used to set the attribute | |
| 1562 | 1562 | array to an offset within a vertex buffer. | |
| … | … | ||
| 1572 | 1572 | } | |
| 1573 | 1573 | ||
| 1574 | 1574 | /*! | |
| 1575 | Sets an array of vertex values on the attribute at \a location | ||
| 1576 | in this shader program, starting at a specific \a offset in the | ||
| 1575 | Sets an array of vertex values on the attribute at \a location in | ||
| 1576 | this shader program, starting at a specific \a offset in the | ||
| 1577 | 1577 | currently bound vertex buffer. The \a stride indicates the number | |
| 1578 | 1578 | of bytes between vertices. A default \a stride value of zero | |
| 1579 | indicates that the vertices are densely packed in \a values. | ||
| 1579 | indicates that the vertices are densely packed in the value array. | ||
| 1580 | 1580 | ||
| 1581 | The \a type indicates the type of elements in the \a values array, | ||
| 1582 | usually \c{GL_FLOAT}, \c{GL_UNSIGNED_BYTE}, etc. The \a tupleSize | ||
| 1583 | indicates the number of components per vertex: 1, 2, 3, or 4. | ||
| 1581 | The \a type indicates the type of elements in the vertex value | ||
| 1582 | array, usually \c{GL_FLOAT}, \c{GL_UNSIGNED_BYTE}, etc. The \a | ||
| 1583 | tupleSize indicates the number of components per vertex: 1, 2, 3, | ||
| 1584 | or 4. | ||
| 1584 | 1585 | ||
| 1585 | 1586 | The array will become active when enableAttributeArray() is called | |
| 1586 | 1587 | on the \a location. Otherwise the value specified with | |
| … | … | ||
| 1608 | 1608 | in this shader program, starting at a specific \a offset in the | |
| 1609 | 1609 | currently bound vertex buffer. The \a stride indicates the number | |
| 1610 | 1610 | of bytes between vertices. A default \a stride value of zero | |
| 1611 | indicates that the vertices are densely packed in \a values. | ||
| 1611 | indicates that the vertices are densely packed in the value array. | ||
| 1612 | 1612 | ||
| 1613 | The \a type indicates the type of elements in the \a values array, | ||
| 1614 | usually \c{GL_FLOAT}, \c{GL_UNSIGNED_BYTE}, etc. The \a tupleSize | ||
| 1615 | indicates the number of components per vertex: 1, 2, 3, or 4. | ||
| 1613 | The \a type indicates the type of elements in the vertex value | ||
| 1614 | array, usually \c{GL_FLOAT}, \c{GL_UNSIGNED_BYTE}, etc. The \a | ||
| 1615 | tupleSize indicates the number of components per vertex: 1, 2, 3, | ||
| 1616 | or 4. | ||
| 1616 | 1617 | ||
| 1617 | 1618 | The array will become active when enableAttributeArray() is called | |
| 1618 | on the \a location. Otherwise the value specified with | ||
| 1619 | setAttributeValue() for \a location will be used. | ||
| 1619 | on the \a name. Otherwise the value specified with | ||
| 1620 | setAttributeValue() for \a name will be used. | ||
| 1620 | 1621 | ||
| 1621 | 1622 | \sa setAttributeArray() | |
| 1622 | 1623 | \since 4.7 |

