Add note to docs about normalization in setAttributeBuffer
Task-number: QTBUG-37103 Change-Id: I0b1716b76e10c65871c6a96dab5d8d81c95095d7 Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
This commit is contained in:
parent
f6d3b65e45
commit
0a803dc90a
@ -1516,6 +1516,9 @@ void QOpenGLShaderProgram::setAttributeArray
|
|||||||
The setAttributeBuffer() function can be used to set the attribute
|
The setAttributeBuffer() function can be used to set the attribute
|
||||||
array to an offset within a vertex buffer.
|
array to an offset within a vertex buffer.
|
||||||
|
|
||||||
|
\note Normalization will be enabled. If this is not desired, call
|
||||||
|
glVertexAttribPointer directly through QOpenGLFunctions.
|
||||||
|
|
||||||
\sa setAttributeValue(), setUniformValue(), enableAttributeArray()
|
\sa setAttributeValue(), setUniformValue(), enableAttributeArray()
|
||||||
\sa disableAttributeArray(), setAttributeBuffer()
|
\sa disableAttributeArray(), setAttributeBuffer()
|
||||||
*/
|
*/
|
||||||
@ -1659,6 +1662,9 @@ void QOpenGLShaderProgram::setAttributeArray
|
|||||||
on the \a location. Otherwise the value specified with
|
on the \a location. Otherwise the value specified with
|
||||||
setAttributeValue() for \a location will be used.
|
setAttributeValue() for \a location will be used.
|
||||||
|
|
||||||
|
\note Normalization will be enabled. If this is not desired, call
|
||||||
|
glVertexAttribPointer directly through QOpenGLFunctions.
|
||||||
|
|
||||||
\sa setAttributeArray()
|
\sa setAttributeArray()
|
||||||
*/
|
*/
|
||||||
void QOpenGLShaderProgram::setAttributeBuffer
|
void QOpenGLShaderProgram::setAttributeBuffer
|
||||||
|
@ -1553,6 +1553,9 @@ void QGLShaderProgram::setAttributeArray
|
|||||||
The setAttributeBuffer() function can be used to set the attribute
|
The setAttributeBuffer() function can be used to set the attribute
|
||||||
array to an offset within a vertex buffer.
|
array to an offset within a vertex buffer.
|
||||||
|
|
||||||
|
\note Normalization will be enabled. If this is not desired, call
|
||||||
|
glVertexAttribPointer directly through QGLFunctions.
|
||||||
|
|
||||||
\sa setAttributeValue(), setUniformValue(), enableAttributeArray()
|
\sa setAttributeValue(), setUniformValue(), enableAttributeArray()
|
||||||
\sa disableAttributeArray(), setAttributeBuffer()
|
\sa disableAttributeArray(), setAttributeBuffer()
|
||||||
\since 4.7
|
\since 4.7
|
||||||
@ -1698,6 +1701,9 @@ void QGLShaderProgram::setAttributeArray
|
|||||||
on the \a location. Otherwise the value specified with
|
on the \a location. Otherwise the value specified with
|
||||||
setAttributeValue() for \a location will be used.
|
setAttributeValue() for \a location will be used.
|
||||||
|
|
||||||
|
\note Normalization will be enabled. If this is not desired, call
|
||||||
|
glVertexAttribPointer directly though QGLFunctions.
|
||||||
|
|
||||||
\sa setAttributeArray()
|
\sa setAttributeArray()
|
||||||
\since 4.7
|
\since 4.7
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user