Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > 8e6051afcdb111a0317a58fb64c2abf5 > files > 4139

qt4-doc-4.6.3-0.2mdv2010.2.i586.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- qglshaderprogram.cpp -->
<head>
  <title>Qt 4.6: QGLShaderProgram Class Reference</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<a name="//apple_ref/cpp/cl//QGLShaderProgram"></a>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">All&nbsp;Functions</font></a>&nbsp;&middot; <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><h1 class="title">QGLShaderProgram Class Reference<br /><span class="small-subtitle">[<a href="qtopengl.html">QtOpenGL</a> module]</span>
</h1>
<p>The QGLShaderProgram class allows OpenGL shader programs to be linked and used. <a href="#details">More...</a></p>
<pre> #include &lt;QGLShaderProgram&gt;</pre><p><b>This class is not part of the Qt GUI Framework Edition.</b></p>
<p>Inherits <a href="qobject.html">QObject</a>.</p>
<p>This class was introduced in Qt 4.6.</p>
<ul>
<li><a href="qglshaderprogram-members.html">List of all members, including inherited members</a></li>
</ul>
<hr />
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#QGLShaderProgram">QGLShaderProgram</a></b> ( QObject * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#QGLShaderProgram-2">QGLShaderProgram</a></b> ( const QGLContext * <i>context</i>, QObject * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#dtor.QGLShaderProgram">~QGLShaderProgram</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#addShader">addShader</a></b> ( QGLShader * <i>shader</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#addShaderFromSourceCode">addShaderFromSourceCode</a></b> ( QGLShader::ShaderType <i>type</i>, const char * <i>source</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#addShaderFromSourceCode-2">addShaderFromSourceCode</a></b> ( QGLShader::ShaderType <i>type</i>, const QByteArray &amp; <i>source</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#addShaderFromSourceCode-3">addShaderFromSourceCode</a></b> ( QGLShader::ShaderType <i>type</i>, const QString &amp; <i>source</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#addShaderFromSourceFile">addShaderFromSourceFile</a></b> ( QGLShader::ShaderType <i>type</i>, const QString &amp; <i>fileName</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#attributeLocation">attributeLocation</a></b> ( const char * <i>name</i> ) const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#attributeLocation-2">attributeLocation</a></b> ( const QByteArray &amp; <i>name</i> ) const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#attributeLocation-3">attributeLocation</a></b> ( const QString &amp; <i>name</i> ) const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#bind">bind</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#bindAttributeLocation">bindAttributeLocation</a></b> ( const char * <i>name</i>, int <i>location</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#bindAttributeLocation-2">bindAttributeLocation</a></b> ( const QByteArray &amp; <i>name</i>, int <i>location</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#bindAttributeLocation-3">bindAttributeLocation</a></b> ( const QString &amp; <i>name</i>, int <i>location</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#disableAttributeArray">disableAttributeArray</a></b> ( int <i>location</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#disableAttributeArray-2">disableAttributeArray</a></b> ( const char * <i>name</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a></b> ( int <i>location</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#enableAttributeArray-2">enableAttributeArray</a></b> ( const char * <i>name</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#isLinked">isLinked</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#link">link</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#log">log</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GLuint </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#programId">programId</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#release">release</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#removeAllShaders">removeAllShaders</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#removeShader">removeShader</a></b> ( QGLShader * <i>shader</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setAttributeArray">setAttributeArray</a></b> ( int <i>location</i>, const GLfloat * <i>values</i>, int <i>tupleSize</i>, int <i>stride</i> = 0 )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setAttributeArray-2">setAttributeArray</a></b> ( int <i>location</i>, const QVector2D * <i>values</i>, int <i>stride</i> = 0 )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setAttributeArray-3">setAttributeArray</a></b> ( int <i>location</i>, const QVector3D * <i>values</i>, int <i>stride</i> = 0 )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setAttributeArray-4">setAttributeArray</a></b> ( int <i>location</i>, const QVector4D * <i>values</i>, int <i>stride</i> = 0 )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setAttributeArray-5">setAttributeArray</a></b> ( const char * <i>name</i>, const GLfloat * <i>values</i>, int <i>tupleSize</i>, int <i>stride</i> = 0 )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setAttributeArray-6">setAttributeArray</a></b> ( const char * <i>name</i>, const QVector2D * <i>values</i>, int <i>stride</i> = 0 )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setAttributeArray-7">setAttributeArray</a></b> ( const char * <i>name</i>, const QVector3D * <i>values</i>, int <i>stride</i> = 0 )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setAttributeArray-8">setAttributeArray</a></b> ( const char * <i>name</i>, const QVector4D * <i>values</i>, int <i>stride</i> = 0 )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a></b> ( int <i>location</i>, GLfloat <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setAttributeValue-2">setAttributeValue</a></b> ( int <i>location</i>, GLfloat <i>x</i>, GLfloat <i>y</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setAttributeValue-3">setAttributeValue</a></b> ( int <i>location</i>, GLfloat <i>x</i>, GLfloat <i>y</i>, GLfloat <i>z</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setAttributeValue-4">setAttributeValue</a></b> ( int <i>location</i>, GLfloat <i>x</i>, GLfloat <i>y</i>, GLfloat <i>z</i>, GLfloat <i>w</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setAttributeValue-5">setAttributeValue</a></b> ( int <i>location</i>, const QVector2D &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setAttributeValue-6">setAttributeValue</a></b> ( int <i>location</i>, const QVector3D &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setAttributeValue-7">setAttributeValue</a></b> ( int <i>location</i>, const QVector4D &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setAttributeValue-8">setAttributeValue</a></b> ( int <i>location</i>, const QColor &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setAttributeValue-9">setAttributeValue</a></b> ( int <i>location</i>, const GLfloat * <i>values</i>, int <i>columns</i>, int <i>rows</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setAttributeValue-10">setAttributeValue</a></b> ( const char * <i>name</i>, GLfloat <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setAttributeValue-11">setAttributeValue</a></b> ( const char * <i>name</i>, GLfloat <i>x</i>, GLfloat <i>y</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setAttributeValue-12">setAttributeValue</a></b> ( const char * <i>name</i>, GLfloat <i>x</i>, GLfloat <i>y</i>, GLfloat <i>z</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setAttributeValue-13">setAttributeValue</a></b> ( const char * <i>name</i>, GLfloat <i>x</i>, GLfloat <i>y</i>, GLfloat <i>z</i>, GLfloat <i>w</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setAttributeValue-14">setAttributeValue</a></b> ( const char * <i>name</i>, const QVector2D &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setAttributeValue-15">setAttributeValue</a></b> ( const char * <i>name</i>, const QVector3D &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setAttributeValue-16">setAttributeValue</a></b> ( const char * <i>name</i>, const QVector4D &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setAttributeValue-17">setAttributeValue</a></b> ( const char * <i>name</i>, const QColor &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setAttributeValue-18">setAttributeValue</a></b> ( const char * <i>name</i>, const GLfloat * <i>values</i>, int <i>columns</i>, int <i>rows</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue">setUniformValue</a></b> ( int <i>location</i>, GLfloat <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-36">setUniformValue</a></b> ( const char * <i>name</i>, const QPointF &amp; <i>point</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-37">setUniformValue</a></b> ( const char * <i>name</i>, const QSize &amp; <i>size</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-38">setUniformValue</a></b> ( const char * <i>name</i>, const QSizeF &amp; <i>size</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-39">setUniformValue</a></b> ( const char * <i>name</i>, const QMatrix2x2 &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-40">setUniformValue</a></b> ( const char * <i>name</i>, const QMatrix2x3 &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-41">setUniformValue</a></b> ( const char * <i>name</i>, const QMatrix2x4 &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-42">setUniformValue</a></b> ( const char * <i>name</i>, const QMatrix3x2 &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-43">setUniformValue</a></b> ( const char * <i>name</i>, const QMatrix3x3 &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-44">setUniformValue</a></b> ( const char * <i>name</i>, const QMatrix3x4 &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-45">setUniformValue</a></b> ( const char * <i>name</i>, const QMatrix4x2 &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-46">setUniformValue</a></b> ( const char * <i>name</i>, const QMatrix4x3 &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-47">setUniformValue</a></b> ( const char * <i>name</i>, const QMatrix4x4 &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-48">setUniformValue</a></b> ( int <i>location</i>, const GLfloat[4][4] <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-49">setUniformValue</a></b> ( const char * <i>name</i>, const GLfloat[4][4] <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-50">setUniformValue</a></b> ( const char * <i>name</i>, const QTransform &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-2">setUniformValue</a></b> ( int <i>location</i>, GLint <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-3">setUniformValue</a></b> ( int <i>location</i>, GLuint <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-4">setUniformValue</a></b> ( int <i>location</i>, GLfloat <i>x</i>, GLfloat <i>y</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-5">setUniformValue</a></b> ( int <i>location</i>, GLfloat <i>x</i>, GLfloat <i>y</i>, GLfloat <i>z</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-6">setUniformValue</a></b> ( int <i>location</i>, GLfloat <i>x</i>, GLfloat <i>y</i>, GLfloat <i>z</i>, GLfloat <i>w</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-7">setUniformValue</a></b> ( int <i>location</i>, const QVector2D &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-8">setUniformValue</a></b> ( int <i>location</i>, const QVector3D &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-9">setUniformValue</a></b> ( int <i>location</i>, const QVector4D &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-10">setUniformValue</a></b> ( int <i>location</i>, const QColor &amp; <i>color</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-11">setUniformValue</a></b> ( int <i>location</i>, const QPoint &amp; <i>point</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-12">setUniformValue</a></b> ( int <i>location</i>, const QPointF &amp; <i>point</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-13">setUniformValue</a></b> ( int <i>location</i>, const QSize &amp; <i>size</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-14">setUniformValue</a></b> ( int <i>location</i>, const QSizeF &amp; <i>size</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-15">setUniformValue</a></b> ( int <i>location</i>, const QMatrix2x2 &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-16">setUniformValue</a></b> ( int <i>location</i>, const QMatrix2x3 &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-17">setUniformValue</a></b> ( int <i>location</i>, const QMatrix2x4 &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-18">setUniformValue</a></b> ( int <i>location</i>, const QMatrix3x2 &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-19">setUniformValue</a></b> ( int <i>location</i>, const QMatrix3x3 &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-20">setUniformValue</a></b> ( int <i>location</i>, const QMatrix3x4 &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-21">setUniformValue</a></b> ( int <i>location</i>, const QMatrix4x2 &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-22">setUniformValue</a></b> ( int <i>location</i>, const QMatrix4x3 &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-23">setUniformValue</a></b> ( int <i>location</i>, const QMatrix4x4 &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-24">setUniformValue</a></b> ( int <i>location</i>, const QTransform &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-25">setUniformValue</a></b> ( const char * <i>name</i>, GLfloat <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-26">setUniformValue</a></b> ( const char * <i>name</i>, GLint <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-27">setUniformValue</a></b> ( const char * <i>name</i>, GLuint <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-28">setUniformValue</a></b> ( const char * <i>name</i>, GLfloat <i>x</i>, GLfloat <i>y</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-29">setUniformValue</a></b> ( const char * <i>name</i>, GLfloat <i>x</i>, GLfloat <i>y</i>, GLfloat <i>z</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-30">setUniformValue</a></b> ( const char * <i>name</i>, GLfloat <i>x</i>, GLfloat <i>y</i>, GLfloat <i>z</i>, GLfloat <i>w</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-31">setUniformValue</a></b> ( const char * <i>name</i>, const QVector2D &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-32">setUniformValue</a></b> ( const char * <i>name</i>, const QVector3D &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-33">setUniformValue</a></b> ( const char * <i>name</i>, const QVector4D &amp; <i>value</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-34">setUniformValue</a></b> ( const char * <i>name</i>, const QColor &amp; <i>color</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValue-35">setUniformValue</a></b> ( const char * <i>name</i>, const QPoint &amp; <i>point</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray">setUniformValueArray</a></b> ( int <i>location</i>, const GLfloat * <i>values</i>, int <i>count</i>, int <i>tupleSize</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-2">setUniformValueArray</a></b> ( int <i>location</i>, const GLint * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-3">setUniformValueArray</a></b> ( int <i>location</i>, const GLuint * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-4">setUniformValueArray</a></b> ( int <i>location</i>, const QVector2D * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-5">setUniformValueArray</a></b> ( int <i>location</i>, const QVector3D * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-6">setUniformValueArray</a></b> ( int <i>location</i>, const QVector4D * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-7">setUniformValueArray</a></b> ( int <i>location</i>, const QMatrix2x2 * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-8">setUniformValueArray</a></b> ( int <i>location</i>, const QMatrix2x3 * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-9">setUniformValueArray</a></b> ( int <i>location</i>, const QMatrix2x4 * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-10">setUniformValueArray</a></b> ( int <i>location</i>, const QMatrix3x2 * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-11">setUniformValueArray</a></b> ( int <i>location</i>, const QMatrix3x3 * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-12">setUniformValueArray</a></b> ( int <i>location</i>, const QMatrix3x4 * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-13">setUniformValueArray</a></b> ( int <i>location</i>, const QMatrix4x2 * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-14">setUniformValueArray</a></b> ( int <i>location</i>, const QMatrix4x3 * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-15">setUniformValueArray</a></b> ( int <i>location</i>, const QMatrix4x4 * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-16">setUniformValueArray</a></b> ( const char * <i>name</i>, const GLint * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-17">setUniformValueArray</a></b> ( const char * <i>name</i>, const GLuint * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-18">setUniformValueArray</a></b> ( const char * <i>name</i>, const GLfloat * <i>values</i>, int <i>count</i>, int <i>tupleSize</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-19">setUniformValueArray</a></b> ( const char * <i>name</i>, const QVector2D * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-20">setUniformValueArray</a></b> ( const char * <i>name</i>, const QVector3D * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-21">setUniformValueArray</a></b> ( const char * <i>name</i>, const QVector4D * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-22">setUniformValueArray</a></b> ( const char * <i>name</i>, const QMatrix2x2 * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-23">setUniformValueArray</a></b> ( const char * <i>name</i>, const QMatrix2x3 * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-24">setUniformValueArray</a></b> ( const char * <i>name</i>, const QMatrix2x4 * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-25">setUniformValueArray</a></b> ( const char * <i>name</i>, const QMatrix3x2 * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-26">setUniformValueArray</a></b> ( const char * <i>name</i>, const QMatrix3x3 * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-27">setUniformValueArray</a></b> ( const char * <i>name</i>, const QMatrix3x4 * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-28">setUniformValueArray</a></b> ( const char * <i>name</i>, const QMatrix4x2 * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-29">setUniformValueArray</a></b> ( const char * <i>name</i>, const QMatrix4x3 * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#setUniformValueArray-30">setUniformValueArray</a></b> ( const char * <i>name</i>, const QMatrix4x4 * <i>values</i>, int <i>count</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QList&lt;QGLShader *&gt; </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#shaders">shaders</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#uniformLocation">uniformLocation</a></b> ( const char * <i>name</i> ) const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#uniformLocation-2">uniformLocation</a></b> ( const QByteArray &amp; <i>name</i> ) const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#uniformLocation-3">uniformLocation</a></b> ( const QString &amp; <i>name</i> ) const</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
</ul>
<hr />
<a name="static-public-members"></a>
<h2>Static Public Members</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qglshaderprogram.html#hasOpenGLShaderPrograms">hasOpenGLShaderPrograms</a></b> ( const QGLContext * <i>context</i> = 0 )</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>5 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li><div class="fn"></div>1 property inherited from <a href="qobject.html#properties">QObject</a></li>
<li><div class="fn"></div>1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
<li><div class="fn"></div>1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
<li><div class="fn"></div>7 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The QGLShaderProgram class allows OpenGL shader programs to be linked and used.</p>
<a name="introduction"></a>
<h3>Introduction</h3>
<p>This class supports shader programs written in the OpenGL Shading Language (GLSL) and in the OpenGL/ES Shading Language (GLSL/ES).</p>
<p><a href="qglshader.html">QGLShader</a> and QGLShaderProgram shelter the programmer from the details of compiling and linking vertex and fragment shaders.</p>
<p>The following example creates a vertex shader program using the supplied source <tt>code</tt>. Once compiled and linked, the shader program is activated in the current <a href="qglcontext.html">QGLContext</a> by calling <a href="qglshaderprogram.html#bind">QGLShaderProgram::bind</a>():</p>
<pre> QGLShader shader(QGLShader::Vertex);
 shader.compileSourceCode(code);

 QGLShaderProgram program(context);
 program.addShader(shader);
 program.link();

 program.bind();</pre>
<a name="writing-portable-shaders"></a>
<h3>Writing portable shaders</h3>
<p>Shader programs can be difficult to reuse across OpenGL implementations because of varying levels of support for standard vertex attributes and uniform variables. In particular, GLSL/ES lacks all of the standard variables that are present on desktop OpenGL systems: <tt>gl_Vertex</tt>, <tt>gl_Normal</tt>, <tt>gl_Color</tt>, and so on. Desktop OpenGL lacks the variable qualifiers <tt>highp</tt>, <tt>mediump</tt>, and <tt>lowp</tt>.</p>
<p>The QGLShaderProgram class makes the process of writing portable shaders easier by prefixing all shader programs with the following lines on desktop OpenGL:</p>
<pre> #define highp
 #define mediump
 #define lowp</pre>
<p>This makes it possible to run most GLSL/ES shader programs on desktop systems. The programmer should restrict themselves to just features that are present in GLSL/ES, and avoid standard variable names that only work on the desktop.</p>
<a name="simple-shader-example"></a>
<h3>Simple shader example</h3>
<pre> program.addShaderFromSourceCode(QGLShader::Vertex,
     &quot;attribute highp vec4 vertex;\n&quot;
     &quot;attribute mediump mat4 matrix;\n&quot;
     &quot;void main(void)\n&quot;
     &quot;{\n&quot;
     &quot;   gl_Position = matrix * vertex;\n&quot;
     &quot;}&quot;);
 program.addShaderFromSourceCode(QGLShader::Fragment,
     &quot;uniform mediump vec4 color;\n&quot;
     &quot;void main(void)\n&quot;
     &quot;{\n&quot;
     &quot;   gl_FragColor = color;\n&quot;
     &quot;}&quot;);
 program.link();
 program.bind();

 int vertexLocation = program.attributeLocation(&quot;vertex&quot;);
 int matrixLocation = program.attributeLocation(&quot;matrix&quot;);
 int colorLocation = program.uniformLocation(&quot;color&quot;);</pre>
<p>With the above shader program active, we can draw a green triangle as follows:</p>
<pre> static GLfloat const triangleVertices[] = {
     60.0f,  10.0f,  0.0f,
     110.0f, 110.0f, 0.0f,
     10.0f,  110.0f, 0.0f
 };

 QColor color(0, 255, 0, 255);

 QMatrix4x4 pmvMatrix;
 pmvMatrix.ortho(rect());

 program.enableAttributeArray(vertexLocation);
 program.setAttributeArray(vertexLocation, triangleVertices, 3);
 program.setUniformValue(matrixLocation, pmvMatrix);
 program.setUniformValue(colorLocation, color);

 glDrawArrays(GL_TRIANGLES, 0, 3);

 program.disableAttributeArray(vertexLocation);</pre>
<a name="binary-shaders-and-programs"></a>
<h3>Binary shaders and programs</h3>
<p>Binary shaders may be specified using <tt>glShaderBinary()</tt> on the return value from <a href="qglshader.html#shaderId">QGLShader::shaderId</a>(). The <a href="qglshader.html">QGLShader</a> instance containing the binary can then be added to the shader program with <a href="qglshaderprogram.html#addShader">addShader</a>() and linked in the usual fashion with <a href="qglshaderprogram.html#link">link</a>().</p>
<p>Binary programs may be specified using <tt>glProgramBinaryOES()</tt> on the return value from <a href="qglshaderprogram.html#programId">programId</a>(). Then the application should call <a href="qglshaderprogram.html#link">link</a>(), which will notice that the program has already been specified and linked, allowing other operations to be performed on the shader program.</p>
<p>See also <a href="qglshader.html">QGLShader</a>.</p>
<hr />
<h2>Member Function Documentation</h2>
<a name="//apple_ref/cpp/instm/QGLShaderProgram/QGLShaderProgram"></a>
<h3 class="fn"><a name="QGLShaderProgram"></a>QGLShaderProgram::QGLShaderProgram ( <a href="qobject.html">QObject</a> * <i>parent</i> = 0 )</h3>
<p>Constructs a new shader program and attaches it to <i>parent</i>. The program will be invalid until <a href="qglshaderprogram.html#addShader">addShader</a>() is called.</p>
<p>The shader program will be associated with the current <a href="qglcontext.html">QGLContext</a>.</p>
<p>See also <a href="qglshaderprogram.html#addShader">addShader</a>().</p>
<h3 class="fn"><a name="QGLShaderProgram-2"></a>QGLShaderProgram::QGLShaderProgram ( const <a href="qglcontext.html">QGLContext</a> * <i>context</i>, <a href="qobject.html">QObject</a> * <i>parent</i> = 0 )</h3>
<p>Constructs a new shader program and attaches it to <i>parent</i>. The program will be invalid until <a href="qglshaderprogram.html#addShader">addShader</a>() is called.</p>
<p>The shader program will be associated with <i>context</i>.</p>
<p>See also <a href="qglshaderprogram.html#addShader">addShader</a>().</p>
<a name="//apple_ref/cpp/instm/QGLShaderProgram/~QGLShaderProgram"></a>
<h3 class="fn"><a name="dtor.QGLShaderProgram"></a>QGLShaderProgram::~QGLShaderProgram ()&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Deletes this shader program.</p>
<a name="//apple_ref/cpp/instm/QGLShaderProgram/addShader"></a>
<h3 class="fn"><a name="addShader"></a>bool QGLShaderProgram::addShader ( <a href="qglshader.html">QGLShader</a> * <i>shader</i> )</h3>
<p>Adds a compiled <i>shader</i> to this shader program. Returns true if the shader could be added, or false otherwise.</p>
<p>Ownership of the <i>shader</i> object remains with the caller. It will not be deleted when this <a href="qglshaderprogram.html">QGLShaderProgram</a> instance is deleted. This allows the caller to add the same shader to multiple shader programs.</p>
<p>See also <a href="qglshaderprogram.html#addShaderFromSourceCode">addShaderFromSourceCode</a>(), <a href="qglshaderprogram.html#addShaderFromSourceFile">addShaderFromSourceFile</a>(), <a href="qglshaderprogram.html#removeShader">removeShader</a>(), <a href="qglshaderprogram.html#link">link</a>(), and <a href="qglshaderprogram.html#removeAllShaders">removeAllShaders</a>().</p>
<a name="//apple_ref/cpp/instm/QGLShaderProgram/addShaderFromSourceCode"></a>
<h3 class="fn"><a name="addShaderFromSourceCode"></a>bool QGLShaderProgram::addShaderFromSourceCode ( <a href="qglshader.html#ShaderTypeBit-enum">QGLShader::ShaderType</a> <i>type</i>, const char * <i>source</i> )</h3>
<p>Compiles <i>source</i> as a shader of the specified <i>type</i> and adds it to this shader program. Returns true if compilation was successful, false otherwise. The compilation errors and warnings will be made available via <a href="qglshaderprogram.html#log">log</a>().</p>
<p>This function is intended to be a short-cut for quickly adding vertex and fragment shaders to a shader program without creating an instance of <a href="qglshader.html">QGLShader</a> first.</p>
<p>See also <a href="qglshaderprogram.html#addShader">addShader</a>(), <a href="qglshaderprogram.html#addShaderFromSourceFile">addShaderFromSourceFile</a>(), <a href="qglshaderprogram.html#removeShader">removeShader</a>(), <a href="qglshaderprogram.html#link">link</a>(), <a href="qglshaderprogram.html#log">log</a>(), and <a href="qglshaderprogram.html#removeAllShaders">removeAllShaders</a>().</p>
<h3 class="fn"><a name="addShaderFromSourceCode-2"></a>bool QGLShaderProgram::addShaderFromSourceCode ( <a href="qglshader.html#ShaderTypeBit-enum">QGLShader::ShaderType</a> <i>type</i>, const <a href="qbytearray.html">QByteArray</a> &amp; <i>source</i> )</h3>
<p>This is an overloaded function.</p>
<p>Compiles <i>source</i> as a shader of the specified <i>type</i> and adds it to this shader program. Returns true if compilation was successful, false otherwise. The compilation errors and warnings will be made available via <a href="qglshaderprogram.html#log">log</a>().</p>
<p>This function is intended to be a short-cut for quickly adding vertex and fragment shaders to a shader program without creating an instance of <a href="qglshader.html">QGLShader</a> first.</p>
<p>See also <a href="qglshaderprogram.html#addShader">addShader</a>(), <a href="qglshaderprogram.html#addShaderFromSourceFile">addShaderFromSourceFile</a>(), <a href="qglshaderprogram.html#removeShader">removeShader</a>(), <a href="qglshaderprogram.html#link">link</a>(), <a href="qglshaderprogram.html#log">log</a>(), and <a href="qglshaderprogram.html#removeAllShaders">removeAllShaders</a>().</p>
<h3 class="fn"><a name="addShaderFromSourceCode-3"></a>bool QGLShaderProgram::addShaderFromSourceCode ( <a href="qglshader.html#ShaderTypeBit-enum">QGLShader::ShaderType</a> <i>type</i>, const <a href="qstring.html">QString</a> &amp; <i>source</i> )</h3>
<p>This is an overloaded function.</p>
<p>Compiles <i>source</i> as a shader of the specified <i>type</i> and adds it to this shader program. Returns true if compilation was successful, false otherwise. The compilation errors and warnings will be made available via <a href="qglshaderprogram.html#log">log</a>().</p>
<p>This function is intended to be a short-cut for quickly adding vertex and fragment shaders to a shader program without creating an instance of <a href="qglshader.html">QGLShader</a> first.</p>
<p>See also <a href="qglshaderprogram.html#addShader">addShader</a>(), <a href="qglshaderprogram.html#addShaderFromSourceFile">addShaderFromSourceFile</a>(), <a href="qglshaderprogram.html#removeShader">removeShader</a>(), <a href="qglshaderprogram.html#link">link</a>(), <a href="qglshaderprogram.html#log">log</a>(), and <a href="qglshaderprogram.html#removeAllShaders">removeAllShaders</a>().</p>
<a name="//apple_ref/cpp/instm/QGLShaderProgram/addShaderFromSourceFile"></a>
<h3 class="fn"><a name="addShaderFromSourceFile"></a>bool QGLShaderProgram::addShaderFromSourceFile ( <a href="qglshader.html#ShaderTypeBit-enum">QGLShader::ShaderType</a> <i>type</i>, const <a href="qstring.html">QString</a> &amp; <i>fileName</i> )</h3>
<p>Compiles the contents of <i>fileName</i> as a shader of the specified <i>type</i> and adds it to this shader program. Returns true if compilation was successful, false otherwise. The compilation errors and warnings will be made available via <a href="qglshaderprogram.html#log">log</a>().</p>
<p>This function is intended to be a short-cut for quickly adding vertex and fragment shaders to a shader program without creating an instance of <a href="qglshader.html">QGLShader</a> first.</p>
<p>See also <a href="qglshaderprogram.html#addShader">addShader</a>() and <a href="qglshaderprogram.html#addShaderFromSourceCode">addShaderFromSourceCode</a>().</p>
<a name="//apple_ref/cpp/instm/QGLShaderProgram/attributeLocation"></a>
<h3 class="fn"><a name="attributeLocation"></a>int QGLShaderProgram::attributeLocation ( const char * <i>name</i> ) const</h3>
<p>Returns the location of the attribute <i>name</i> within this shader program's parameter list. Returns -1 if <i>name</i> is not a valid attribute for this shader program.</p>
<p>See also <a href="qglshaderprogram.html#uniformLocation">uniformLocation</a>() and <a href="qglshaderprogram.html#bindAttributeLocation">bindAttributeLocation</a>().</p>
<h3 class="fn"><a name="attributeLocation-2"></a>int QGLShaderProgram::attributeLocation ( const <a href="qbytearray.html">QByteArray</a> &amp; <i>name</i> ) const</h3>
<p>This is an overloaded function.</p>
<p>Returns the location of the attribute <i>name</i> within this shader program's parameter list. Returns -1 if <i>name</i> is not a valid attribute for this shader program.</p>
<p>See also <a href="qglshaderprogram.html#uniformLocation">uniformLocation</a>() and <a href="qglshaderprogram.html#bindAttributeLocation">bindAttributeLocation</a>().</p>
<h3 class="fn"><a name="attributeLocation-3"></a>int QGLShaderProgram::attributeLocation ( const <a href="qstring.html">QString</a> &amp; <i>name</i> ) const</h3>
<p>This is an overloaded function.</p>
<p>Returns the location of the attribute <i>name</i> within this shader program's parameter list. Returns -1 if <i>name</i> is not a valid attribute for this shader program.</p>
<p>See also <a href="qglshaderprogram.html#uniformLocation">uniformLocation</a>() and <a href="qglshaderprogram.html#bindAttributeLocation">bindAttributeLocation</a>().</p>
<a name="//apple_ref/cpp/instm/QGLShaderProgram/bind"></a>
<h3 class="fn"><a name="bind"></a>bool QGLShaderProgram::bind ()</h3>
<p>Binds this shader program to the active <a href="qglcontext.html">QGLContext</a> and makes it the current shader program. Any previously bound shader program is released. This is equivalent to calling <tt>glUseProgram()</tt> on <a href="qglshaderprogram.html#programId">programId</a>(). Returns true if the program was successfully bound; false otherwise. If the shader program has not yet been linked, or it needs to be re-linked, this function will call <a href="qglshaderprogram.html#link">link</a>().</p>
<p>See also <a href="qglshaderprogram.html#link">link</a>() and <a href="qglshaderprogram.html#release">release</a>().</p>
<a name="//apple_ref/cpp/instm/QGLShaderProgram/bindAttributeLocation"></a>
<h3 class="fn"><a name="bindAttributeLocation"></a>void QGLShaderProgram::bindAttributeLocation ( const char * <i>name</i>, int <i>location</i> )</h3>
<p>Binds the attribute <i>name</i> to the specified <i>location</i>. This function can be called before or after the program has been linked. Any attributes that have not been explicitly bound when the program is linked will be assigned locations automatically.</p>
<p>When this function is called after the program has been linked, the program will need to be relinked for the change to take effect.</p>
<p>See also <a href="qglshaderprogram.html#attributeLocation">attributeLocation</a>().</p>
<h3 class="fn"><a name="bindAttributeLocation-2"></a>void QGLShaderProgram::bindAttributeLocation ( const <a href="qbytearray.html">QByteArray</a> &amp; <i>name</i>, int <i>location</i> )</h3>
<p>This is an overloaded function.</p>
<p>Binds the attribute <i>name</i> to the specified <i>location</i>. This function can be called before or after the program has been linked. Any attributes that have not been explicitly bound when the program is linked will be assigned locations automatically.</p>
<p>When this function is called after the program has been linked, the program will need to be relinked for the change to take effect.</p>
<p>See also <a href="qglshaderprogram.html#attributeLocation">attributeLocation</a>().</p>
<h3 class="fn"><a name="bindAttributeLocation-3"></a>void QGLShaderProgram::bindAttributeLocation ( const <a href="qstring.html">QString</a> &amp; <i>name</i>, int <i>location</i> )</h3>
<p>This is an overloaded function.</p>
<p>Binds the attribute <i>name</i> to the specified <i>location</i>. This function can be called before or after the program has been linked. Any attributes that have not been explicitly bound when the program is linked will be assigned locations automatically.</p>
<p>When this function is called after the program has been linked, the program will need to be relinked for the change to take effect.</p>
<p>See also <a href="qglshaderprogram.html#attributeLocation">attributeLocation</a>().</p>
<a name="//apple_ref/cpp/instm/QGLShaderProgram/disableAttributeArray"></a>
<h3 class="fn"><a name="disableAttributeArray"></a>void QGLShaderProgram::disableAttributeArray ( int <i>location</i> )</h3>
<p>Disables the vertex array at <i>location</i> in this shader program that was enabled by a previous call to <a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a>().</p>
<p>See also <a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a>(), <a href="qglshaderprogram.html#setAttributeArray">setAttributeArray</a>(), <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>(), and <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<h3 class="fn"><a name="disableAttributeArray-2"></a>void QGLShaderProgram::disableAttributeArray ( const char * <i>name</i> )</h3>
<p>This is an overloaded function.</p>
<p>Disables the vertex array called <i>name</i> in this shader program that was enabled by a previous call to <a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a>().</p>
<p>See also <a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a>(), <a href="qglshaderprogram.html#setAttributeArray">setAttributeArray</a>(), <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>(), and <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<a name="//apple_ref/cpp/instm/QGLShaderProgram/enableAttributeArray"></a>
<h3 class="fn"><a name="enableAttributeArray"></a>void QGLShaderProgram::enableAttributeArray ( int <i>location</i> )</h3>
<p>Enables the vertex array at <i>location</i> in this shader program so that the value set by <a href="qglshaderprogram.html#setAttributeArray">setAttributeArray</a>() on <i>location</i> will be used by the shader program.</p>
<p>See also <a href="qglshaderprogram.html#disableAttributeArray">disableAttributeArray</a>(), <a href="qglshaderprogram.html#setAttributeArray">setAttributeArray</a>(), <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>(), and <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<h3 class="fn"><a name="enableAttributeArray-2"></a>void QGLShaderProgram::enableAttributeArray ( const char * <i>name</i> )</h3>
<p>This is an overloaded function.</p>
<p>Enables the vertex array called <i>name</i> in this shader program so that the value set by <a href="qglshaderprogram.html#setAttributeArray">setAttributeArray</a>() on <i>name</i> will be used by the shader program.</p>
<p>See also <a href="qglshaderprogram.html#disableAttributeArray">disableAttributeArray</a>(), <a href="qglshaderprogram.html#setAttributeArray">setAttributeArray</a>(), <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>(), and <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<a name="//apple_ref/cpp/clm/QGLShaderProgram/hasOpenGLShaderPrograms"></a>
<h3 class="fn"><a name="hasOpenGLShaderPrograms"></a>bool QGLShaderProgram::hasOpenGLShaderPrograms ( const <a href="qglcontext.html">QGLContext</a> * <i>context</i> = 0 )&nbsp;&nbsp;<tt> [static]</tt></h3>
<p>Returns true if shader programs written in the OpenGL Shading Language (GLSL) are supported on this system; false otherwise.</p>
<p>The <i>context</i> is used to resolve the GLSL extensions. If <i>context</i> is null, then <a href="qglcontext.html#currentContext">QGLContext::currentContext</a>() is used.</p>
<a name="//apple_ref/cpp/instm/QGLShaderProgram/isLinked"></a>
<h3 class="fn"><a name="isLinked"></a>bool QGLShaderProgram::isLinked () const</h3>
<p>Returns true if this shader program has been linked; false otherwise.</p>
<p>See also <a href="qglshaderprogram.html#link">link</a>().</p>
<a name="//apple_ref/cpp/instm/QGLShaderProgram/link"></a>
<h3 class="fn"><a name="link"></a>bool QGLShaderProgram::link ()&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Links together the shaders that were added to this program with <a href="qglshaderprogram.html#addShader">addShader</a>(). Returns true if the link was successful or false otherwise. If the link failed, the error messages can be retrieved with <a href="qglshaderprogram.html#log">log</a>().</p>
<p>Subclasses can override this function to initialize attributes and uniform variables for use in specific shader programs.</p>
<p>If the shader program was already linked, calling this function again will force it to be re-linked.</p>
<p>See also <a href="qglshaderprogram.html#addShader">addShader</a>() and <a href="qglshaderprogram.html#log">log</a>().</p>
<a name="//apple_ref/cpp/instm/QGLShaderProgram/log"></a>
<h3 class="fn"><a name="log"></a><a href="qstring.html">QString</a> QGLShaderProgram::log () const</h3>
<p>Returns the errors and warnings that occurred during the last <a href="qglshaderprogram.html#link">link</a>() or <a href="qglshaderprogram.html#addShader">addShader</a>() with explicitly specified source code.</p>
<p>See also <a href="qglshaderprogram.html#link">link</a>().</p>
<a name="//apple_ref/cpp/instm/QGLShaderProgram/programId"></a>
<h3 class="fn"><a name="programId"></a>GLuint QGLShaderProgram::programId () const</h3>
<p>Returns the OpenGL identifier associated with this shader program.</p>
<p>See also <a href="qglshader.html#shaderId">QGLShader::shaderId</a>().</p>
<a name="//apple_ref/cpp/instm/QGLShaderProgram/release"></a>
<h3 class="fn"><a name="release"></a>void QGLShaderProgram::release ()</h3>
<p>Releases the active shader program from the current <a href="qglcontext.html">QGLContext</a>. This is equivalent to calling <tt>glUseProgram(0)</tt>.</p>
<p>See also <a href="qglshaderprogram.html#bind">bind</a>().</p>
<a name="//apple_ref/cpp/instm/QGLShaderProgram/removeAllShaders"></a>
<h3 class="fn"><a name="removeAllShaders"></a>void QGLShaderProgram::removeAllShaders ()</h3>
<p>Removes all of the shaders that were added to this program previously. The <a href="qglshader.html">QGLShader</a> objects for the shaders will not be deleted if they were constructed externally. <a href="qglshader.html">QGLShader</a> objects that are constructed internally by <a href="qglshaderprogram.html">QGLShaderProgram</a> will be deleted.</p>
<p>See also <a href="qglshaderprogram.html#addShader">addShader</a>() and <a href="qglshaderprogram.html#removeShader">removeShader</a>().</p>
<a name="//apple_ref/cpp/instm/QGLShaderProgram/removeShader"></a>
<h3 class="fn"><a name="removeShader"></a>void QGLShaderProgram::removeShader ( <a href="qglshader.html">QGLShader</a> * <i>shader</i> )</h3>
<p>Removes <i>shader</i> from this shader program. The object is not deleted.</p>
<p>See also <a href="qglshaderprogram.html#addShader">addShader</a>(), <a href="qglshaderprogram.html#link">link</a>(), and <a href="qglshaderprogram.html#removeAllShaders">removeAllShaders</a>().</p>
<a name="//apple_ref/cpp/instm/QGLShaderProgram/setAttributeArray"></a>
<h3 class="fn"><a name="setAttributeArray"></a>void QGLShaderProgram::setAttributeArray ( int <i>location</i>, const GLfloat * <i>values</i>, int <i>tupleSize</i>, int <i>stride</i> = 0 )</h3>
<p>Sets an array of vertex <i>values</i> on the attribute at <i>location</i> in this shader program. The <i>tupleSize</i> indicates the number of components per vertex (1, 2, 3, or 4), and the <i>stride</i> indicates the number of bytes between vertices. A default <i>stride</i> value of zero indicates that the vertices are densely packed in <i>values</i>.</p>
<p>The array will become active when <a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a>() is called on the <i>location</i>. Otherwise the value specified with <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>() for <i>location</i> will be used.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>(), <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>(), <a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a>(), and <a href="qglshaderprogram.html#disableAttributeArray">disableAttributeArray</a>().</p>
<h3 class="fn"><a name="setAttributeArray-2"></a>void QGLShaderProgram::setAttributeArray ( int <i>location</i>, const <a href="qvector2d.html">QVector2D</a> * <i>values</i>, int <i>stride</i> = 0 )</h3>
<p>Sets an array of 2D vertex <i>values</i> on the attribute at <i>location</i> in this shader program. The <i>stride</i> indicates the number of bytes between vertices. A default <i>stride</i> value of zero indicates that the vertices are densely packed in <i>values</i>.</p>
<p>The array will become active when <a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a>() is called on the <i>location</i>. Otherwise the value specified with <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>() for <i>location</i> will be used.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>(), <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>(), <a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a>(), and <a href="qglshaderprogram.html#disableAttributeArray">disableAttributeArray</a>().</p>
<h3 class="fn"><a name="setAttributeArray-3"></a>void QGLShaderProgram::setAttributeArray ( int <i>location</i>, const <a href="qvector3d.html">QVector3D</a> * <i>values</i>, int <i>stride</i> = 0 )</h3>
<p>Sets an array of 3D vertex <i>values</i> on the attribute at <i>location</i> in this shader program. The <i>stride</i> indicates the number of bytes between vertices. A default <i>stride</i> value of zero indicates that the vertices are densely packed in <i>values</i>.</p>
<p>The array will become active when <a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a>() is called on the <i>location</i>. Otherwise the value specified with <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>() for <i>location</i> will be used.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>(), <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>(), <a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a>(), and <a href="qglshaderprogram.html#disableAttributeArray">disableAttributeArray</a>().</p>
<h3 class="fn"><a name="setAttributeArray-4"></a>void QGLShaderProgram::setAttributeArray ( int <i>location</i>, const <a href="qvector4d.html">QVector4D</a> * <i>values</i>, int <i>stride</i> = 0 )</h3>
<p>Sets an array of 4D vertex <i>values</i> on the attribute at <i>location</i> in this shader program. The <i>stride</i> indicates the number of bytes between vertices. A default <i>stride</i> value of zero indicates that the vertices are densely packed in <i>values</i>.</p>
<p>The array will become active when <a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a>() is called on the <i>location</i>. Otherwise the value specified with <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>() for <i>location</i> will be used.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>(), <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>(), <a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a>(), and <a href="qglshaderprogram.html#disableAttributeArray">disableAttributeArray</a>().</p>
<h3 class="fn"><a name="setAttributeArray-5"></a>void QGLShaderProgram::setAttributeArray ( const char * <i>name</i>, const GLfloat * <i>values</i>, int <i>tupleSize</i>, int <i>stride</i> = 0 )</h3>
<p>This is an overloaded function.</p>
<p>Sets an array of vertex <i>values</i> on the attribute called <i>name</i> in this shader program. The <i>tupleSize</i> indicates the number of components per vertex (1, 2, 3, or 4), and the <i>stride</i> indicates the number of bytes between vertices. A default <i>stride</i> value of zero indicates that the vertices are densely packed in <i>values</i>.</p>
<p>The array will become active when <a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a>() is called on <i>name</i>. Otherwise the value specified with <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>() for <i>name</i> will be used.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>(), <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>(), <a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a>(), and <a href="qglshaderprogram.html#disableAttributeArray">disableAttributeArray</a>().</p>
<h3 class="fn"><a name="setAttributeArray-6"></a>void QGLShaderProgram::setAttributeArray ( const char * <i>name</i>, const <a href="qvector2d.html">QVector2D</a> * <i>values</i>, int <i>stride</i> = 0 )</h3>
<p>This is an overloaded function.</p>
<p>Sets an array of 2D vertex <i>values</i> on the attribute called <i>name</i> in this shader program. The <i>stride</i> indicates the number of bytes between vertices. A default <i>stride</i> value of zero indicates that the vertices are densely packed in <i>values</i>.</p>
<p>The array will become active when <a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a>() is called on <i>name</i>. Otherwise the value specified with <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>() for <i>name</i> will be used.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>(), <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>(), <a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a>(), and <a href="qglshaderprogram.html#disableAttributeArray">disableAttributeArray</a>().</p>
<h3 class="fn"><a name="setAttributeArray-7"></a>void QGLShaderProgram::setAttributeArray ( const char * <i>name</i>, const <a href="qvector3d.html">QVector3D</a> * <i>values</i>, int <i>stride</i> = 0 )</h3>
<p>This is an overloaded function.</p>
<p>Sets an array of 3D vertex <i>values</i> on the attribute called <i>name</i> in this shader program. The <i>stride</i> indicates the number of bytes between vertices. A default <i>stride</i> value of zero indicates that the vertices are densely packed in <i>values</i>.</p>
<p>The array will become active when <a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a>() is called on <i>name</i>. Otherwise the value specified with <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>() for <i>name</i> will be used.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>(), <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>(), <a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a>(), and <a href="qglshaderprogram.html#disableAttributeArray">disableAttributeArray</a>().</p>
<h3 class="fn"><a name="setAttributeArray-8"></a>void QGLShaderProgram::setAttributeArray ( const char * <i>name</i>, const <a href="qvector4d.html">QVector4D</a> * <i>values</i>, int <i>stride</i> = 0 )</h3>
<p>This is an overloaded function.</p>
<p>Sets an array of 4D vertex <i>values</i> on the attribute called <i>name</i> in this shader program. The <i>stride</i> indicates the number of bytes between vertices. A default <i>stride</i> value of zero indicates that the vertices are densely packed in <i>values</i>.</p>
<p>The array will become active when <a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a>() is called on <i>name</i>. Otherwise the value specified with <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>() for <i>name</i> will be used.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>(), <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>(), <a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a>(), and <a href="qglshaderprogram.html#disableAttributeArray">disableAttributeArray</a>().</p>
<a name="//apple_ref/cpp/instm/QGLShaderProgram/setAttributeValue"></a>
<h3 class="fn"><a name="setAttributeValue"></a>void QGLShaderProgram::setAttributeValue ( int <i>location</i>, GLfloat <i>value</i> )</h3>
<p>Sets the attribute at <i>location</i> in the current context to <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<h3 class="fn"><a name="setAttributeValue-2"></a>void QGLShaderProgram::setAttributeValue ( int <i>location</i>, GLfloat <i>x</i>, GLfloat <i>y</i> )</h3>
<p>Sets the attribute at <i>location</i> in the current context to the 2D vector (<i>x</i>, <i>y</i>).</p>
<p>See also <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<h3 class="fn"><a name="setAttributeValue-3"></a>void QGLShaderProgram::setAttributeValue ( int <i>location</i>, GLfloat <i>x</i>, GLfloat <i>y</i>, GLfloat <i>z</i> )</h3>
<p>Sets the attribute at <i>location</i> in the current context to the 3D vector (<i>x</i>, <i>y</i>, <i>z</i>).</p>
<p>See also <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<h3 class="fn"><a name="setAttributeValue-4"></a>void QGLShaderProgram::setAttributeValue ( int <i>location</i>, GLfloat <i>x</i>, GLfloat <i>y</i>, GLfloat <i>z</i>, GLfloat <i>w</i> )</h3>
<p>Sets the attribute at <i>location</i> in the current context to the 4D vector (<i>x</i>, <i>y</i>, <i>z</i>, <i>w</i>).</p>
<p>See also <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<h3 class="fn"><a name="setAttributeValue-5"></a>void QGLShaderProgram::setAttributeValue ( int <i>location</i>, const <a href="qvector2d.html">QVector2D</a> &amp; <i>value</i> )</h3>
<p>Sets the attribute at <i>location</i> in the current context to <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<h3 class="fn"><a name="setAttributeValue-6"></a>void QGLShaderProgram::setAttributeValue ( int <i>location</i>, const <a href="qvector3d.html">QVector3D</a> &amp; <i>value</i> )</h3>
<p>Sets the attribute at <i>location</i> in the current context to <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<h3 class="fn"><a name="setAttributeValue-7"></a>void QGLShaderProgram::setAttributeValue ( int <i>location</i>, const <a href="qvector4d.html">QVector4D</a> &amp; <i>value</i> )</h3>
<p>Sets the attribute at <i>location</i> in the current context to <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<h3 class="fn"><a name="setAttributeValue-8"></a>void QGLShaderProgram::setAttributeValue ( int <i>location</i>, const <a href="qcolor.html">QColor</a> &amp; <i>value</i> )</h3>
<p>Sets the attribute at <i>location</i> in the current context to <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<h3 class="fn"><a name="setAttributeValue-9"></a>void QGLShaderProgram::setAttributeValue ( int <i>location</i>, const GLfloat * <i>values</i>, int <i>columns</i>, int <i>rows</i> )</h3>
<p>Sets the attribute at <i>location</i> in the current context to the contents of <i>values</i>, which contains <i>columns</i> elements, each consisting of <i>rows</i> elements. The <i>rows</i> value should be 1, 2, 3, or 4. This function is typically used to set matrix values and column vectors.</p>
<p>See also <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<h3 class="fn"><a name="setAttributeValue-10"></a>void QGLShaderProgram::setAttributeValue ( const char * <i>name</i>, GLfloat <i>value</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the attribute called <i>name</i> in the current context to <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<h3 class="fn"><a name="setAttributeValue-11"></a>void QGLShaderProgram::setAttributeValue ( const char * <i>name</i>, GLfloat <i>x</i>, GLfloat <i>y</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the attribute called <i>name</i> in the current context to the 2D vector (<i>x</i>, <i>y</i>).</p>
<p>See also <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<h3 class="fn"><a name="setAttributeValue-12"></a>void QGLShaderProgram::setAttributeValue ( const char * <i>name</i>, GLfloat <i>x</i>, GLfloat <i>y</i>, GLfloat <i>z</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the attribute called <i>name</i> in the current context to the 3D vector (<i>x</i>, <i>y</i>, <i>z</i>).</p>
<p>See also <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<h3 class="fn"><a name="setAttributeValue-13"></a>void QGLShaderProgram::setAttributeValue ( const char * <i>name</i>, GLfloat <i>x</i>, GLfloat <i>y</i>, GLfloat <i>z</i>, GLfloat <i>w</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the attribute called <i>name</i> in the current context to the 4D vector (<i>x</i>, <i>y</i>, <i>z</i>, <i>w</i>).</p>
<p>See also <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<h3 class="fn"><a name="setAttributeValue-14"></a>void QGLShaderProgram::setAttributeValue ( const char * <i>name</i>, const <a href="qvector2d.html">QVector2D</a> &amp; <i>value</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the attribute called <i>name</i> in the current context to <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<h3 class="fn"><a name="setAttributeValue-15"></a>void QGLShaderProgram::setAttributeValue ( const char * <i>name</i>, const <a href="qvector3d.html">QVector3D</a> &amp; <i>value</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the attribute called <i>name</i> in the current context to <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<h3 class="fn"><a name="setAttributeValue-16"></a>void QGLShaderProgram::setAttributeValue ( const char * <i>name</i>, const <a href="qvector4d.html">QVector4D</a> &amp; <i>value</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the attribute called <i>name</i> in the current context to <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<h3 class="fn"><a name="setAttributeValue-17"></a>void QGLShaderProgram::setAttributeValue ( const char * <i>name</i>, const <a href="qcolor.html">QColor</a> &amp; <i>value</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the attribute called <i>name</i> in the current context to <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<h3 class="fn"><a name="setAttributeValue-18"></a>void QGLShaderProgram::setAttributeValue ( const char * <i>name</i>, const GLfloat * <i>values</i>, int <i>columns</i>, int <i>rows</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the attribute called <i>name</i> in the current context to the contents of <i>values</i>, which contains <i>columns</i> elements, each consisting of <i>rows</i> elements. The <i>rows</i> value should be 1, 2, 3, or 4. This function is typically used to set matrix values and column vectors.</p>
<p>See also <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<a name="//apple_ref/cpp/instm/QGLShaderProgram/setUniformValue"></a>
<h3 class="fn"><a name="setUniformValue"></a>void QGLShaderProgram::setUniformValue ( int <i>location</i>, GLfloat <i>value</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-36"></a>void QGLShaderProgram::setUniformValue ( const char * <i>name</i>, const <a href="qpointf.html">QPointF</a> &amp; <i>point</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable associated with <i>name</i> in the current context to the x and y coordinates of <i>point</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-37"></a>void QGLShaderProgram::setUniformValue ( const char * <i>name</i>, const <a href="qsize.html">QSize</a> &amp; <i>size</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable associated with <i>name</i> in the current context to the width and height of the given <i>size</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-38"></a>void QGLShaderProgram::setUniformValue ( const char * <i>name</i>, const <a href="qsizef.html">QSizeF</a> &amp; <i>size</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable associated with <i>name</i> in the current context to the width and height of the given <i>size</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-39"></a>void QGLShaderProgram::setUniformValue ( const char * <i>name</i>, const <a href="qgenericmatrix.html#QMatrix2x2-typedef">QMatrix2x2</a> &amp; <i>value</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable called <i>name</i> in the current context to a 2x2 matrix <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-40"></a>void QGLShaderProgram::setUniformValue ( const char * <i>name</i>, const <a href="qgenericmatrix.html#QMatrix2x3-typedef">QMatrix2x3</a> &amp; <i>value</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable called <i>name</i> in the current context to a 2x3 matrix <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-41"></a>void QGLShaderProgram::setUniformValue ( const char * <i>name</i>, const <a href="qgenericmatrix.html#QMatrix2x4-typedef">QMatrix2x4</a> &amp; <i>value</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable called <i>name</i> in the current context to a 2x4 matrix <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-42"></a>void QGLShaderProgram::setUniformValue ( const char * <i>name</i>, const <a href="qgenericmatrix.html#QMatrix3x2-typedef">QMatrix3x2</a> &amp; <i>value</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable called <i>name</i> in the current context to a 3x2 matrix <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-43"></a>void QGLShaderProgram::setUniformValue ( const char * <i>name</i>, const <a href="qgenericmatrix.html#QMatrix3x3-typedef">QMatrix3x3</a> &amp; <i>value</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable called <i>name</i> in the current context to a 3x3 matrix <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-44"></a>void QGLShaderProgram::setUniformValue ( const char * <i>name</i>, const <a href="qgenericmatrix.html#QMatrix3x4-typedef">QMatrix3x4</a> &amp; <i>value</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable called <i>name</i> in the current context to a 3x4 matrix <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-45"></a>void QGLShaderProgram::setUniformValue ( const char * <i>name</i>, const <a href="qgenericmatrix.html#QMatrix4x2-typedef">QMatrix4x2</a> &amp; <i>value</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable called <i>name</i> in the current context to a 4x2 matrix <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-46"></a>void QGLShaderProgram::setUniformValue ( const char * <i>name</i>, const <a href="qgenericmatrix.html#QMatrix4x3-typedef">QMatrix4x3</a> &amp; <i>value</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable called <i>name</i> in the current context to a 4x3 matrix <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-47"></a>void QGLShaderProgram::setUniformValue ( const char * <i>name</i>, const <a href="qmatrix4x4.html">QMatrix4x4</a> &amp; <i>value</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable called <i>name</i> in the current context to a 4x4 matrix <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-48"></a>void QGLShaderProgram::setUniformValue ( int <i>location</i>, const GLfloat[4][4] <i>value</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable at <i>location</i> in the current context to a 4x4 matrix <i>value</i>. The matrix elements must be specified in column-major order.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-49"></a>void QGLShaderProgram::setUniformValue ( const char * <i>name</i>, const GLfloat[4][4] <i>value</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable called <i>name</i> in the current context to a 4x4 matrix <i>value</i>. The matrix elements must be specified in column-major order.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-50"></a>void QGLShaderProgram::setUniformValue ( const char * <i>name</i>, const <a href="qtransform.html">QTransform</a> &amp; <i>value</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable called <i>name</i> in the current context to a 3x3 transformation matrix <i>value</i> that is specified as a <a href="qtransform.html">QTransform</a> value.</p>
<p>To set a <a href="qtransform.html">QTransform</a> value as a 4x4 matrix in a shader, use <tt>setUniformValue(name, QMatrix4x4(value))</tt>.</p>
<h3 class="fn"><a name="setUniformValue-2"></a>void QGLShaderProgram::setUniformValue ( int <i>location</i>, GLint <i>value</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-3"></a>void QGLShaderProgram::setUniformValue ( int <i>location</i>, GLuint <i>value</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to <i>value</i>. This function should be used when setting sampler values.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-4"></a>void QGLShaderProgram::setUniformValue ( int <i>location</i>, GLfloat <i>x</i>, GLfloat <i>y</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to the 2D vector (<i>x</i>, <i>y</i>).</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-5"></a>void QGLShaderProgram::setUniformValue ( int <i>location</i>, GLfloat <i>x</i>, GLfloat <i>y</i>, GLfloat <i>z</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to the 3D vector (<i>x</i>, <i>y</i>, <i>z</i>).</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-6"></a>void QGLShaderProgram::setUniformValue ( int <i>location</i>, GLfloat <i>x</i>, GLfloat <i>y</i>, GLfloat <i>z</i>, GLfloat <i>w</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to the 4D vector (<i>x</i>, <i>y</i>, <i>z</i>, <i>w</i>).</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-7"></a>void QGLShaderProgram::setUniformValue ( int <i>location</i>, const <a href="qvector2d.html">QVector2D</a> &amp; <i>value</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-8"></a>void QGLShaderProgram::setUniformValue ( int <i>location</i>, const <a href="qvector3d.html">QVector3D</a> &amp; <i>value</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-9"></a>void QGLShaderProgram::setUniformValue ( int <i>location</i>, const <a href="qvector4d.html">QVector4D</a> &amp; <i>value</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-10"></a>void QGLShaderProgram::setUniformValue ( int <i>location</i>, const <a href="qcolor.html">QColor</a> &amp; <i>color</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to the red, green, blue, and alpha components of <i>color</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-11"></a>void QGLShaderProgram::setUniformValue ( int <i>location</i>, const <a href="qpoint.html">QPoint</a> &amp; <i>point</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to the x and y coordinates of <i>point</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-12"></a>void QGLShaderProgram::setUniformValue ( int <i>location</i>, const <a href="qpointf.html">QPointF</a> &amp; <i>point</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to the x and y coordinates of <i>point</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-13"></a>void QGLShaderProgram::setUniformValue ( int <i>location</i>, const <a href="qsize.html">QSize</a> &amp; <i>size</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to the width and height of the given <i>size</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-14"></a>void QGLShaderProgram::setUniformValue ( int <i>location</i>, const <a href="qsizef.html">QSizeF</a> &amp; <i>size</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to the width and height of the given <i>size</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-15"></a>void QGLShaderProgram::setUniformValue ( int <i>location</i>, const <a href="qgenericmatrix.html#QMatrix2x2-typedef">QMatrix2x2</a> &amp; <i>value</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to a 2x2 matrix <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-16"></a>void QGLShaderProgram::setUniformValue ( int <i>location</i>, const <a href="qgenericmatrix.html#QMatrix2x3-typedef">QMatrix2x3</a> &amp; <i>value</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to a 2x3 matrix <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-17"></a>void QGLShaderProgram::setUniformValue ( int <i>location</i>, const <a href="qgenericmatrix.html#QMatrix2x4-typedef">QMatrix2x4</a> &amp; <i>value</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to a 2x4 matrix <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-18"></a>void QGLShaderProgram::setUniformValue ( int <i>location</i>, const <a href="qgenericmatrix.html#QMatrix3x2-typedef">QMatrix3x2</a> &amp; <i>value</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to a 3x2 matrix <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-19"></a>void QGLShaderProgram::setUniformValue ( int <i>location</i>, const <a href="qgenericmatrix.html#QMatrix3x3-typedef">QMatrix3x3</a> &amp; <i>value</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to a 3x3 matrix <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-20"></a>void QGLShaderProgram::setUniformValue ( int <i>location</i>, const <a href="qgenericmatrix.html#QMatrix3x4-typedef">QMatrix3x4</a> &amp; <i>value</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to a 3x4 matrix <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-21"></a>void QGLShaderProgram::setUniformValue ( int <i>location</i>, const <a href="qgenericmatrix.html#QMatrix4x2-typedef">QMatrix4x2</a> &amp; <i>value</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to a 4x2 matrix <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-22"></a>void QGLShaderProgram::setUniformValue ( int <i>location</i>, const <a href="qgenericmatrix.html#QMatrix4x3-typedef">QMatrix4x3</a> &amp; <i>value</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to a 4x3 matrix <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-23"></a>void QGLShaderProgram::setUniformValue ( int <i>location</i>, const <a href="qmatrix4x4.html">QMatrix4x4</a> &amp; <i>value</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to a 4x4 matrix <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-24"></a>void QGLShaderProgram::setUniformValue ( int <i>location</i>, const <a href="qtransform.html">QTransform</a> &amp; <i>value</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to a 3x3 transformation matrix <i>value</i> that is specified as a <a href="qtransform.html">QTransform</a> value.</p>
<p>To set a <a href="qtransform.html">QTransform</a> value as a 4x4 matrix in a shader, use <tt>setUniformValue(location, QMatrix4x4(value))</tt>.</p>
<h3 class="fn"><a name="setUniformValue-25"></a>void QGLShaderProgram::setUniformValue ( const char * <i>name</i>, GLfloat <i>value</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable called <i>name</i> in the current context to <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-26"></a>void QGLShaderProgram::setUniformValue ( const char * <i>name</i>, GLint <i>value</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable called <i>name</i> in the current context to <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-27"></a>void QGLShaderProgram::setUniformValue ( const char * <i>name</i>, GLuint <i>value</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable called <i>name</i> in the current context to <i>value</i>. This function should be used when setting sampler values.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-28"></a>void QGLShaderProgram::setUniformValue ( const char * <i>name</i>, GLfloat <i>x</i>, GLfloat <i>y</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable called <i>name</i> in the current context to the 2D vector (<i>x</i>, <i>y</i>).</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-29"></a>void QGLShaderProgram::setUniformValue ( const char * <i>name</i>, GLfloat <i>x</i>, GLfloat <i>y</i>, GLfloat <i>z</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable called <i>name</i> in the current context to the 3D vector (<i>x</i>, <i>y</i>, <i>z</i>).</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-30"></a>void QGLShaderProgram::setUniformValue ( const char * <i>name</i>, GLfloat <i>x</i>, GLfloat <i>y</i>, GLfloat <i>z</i>, GLfloat <i>w</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable called <i>name</i> in the current context to the 4D vector (<i>x</i>, <i>y</i>, <i>z</i>, <i>w</i>).</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-31"></a>void QGLShaderProgram::setUniformValue ( const char * <i>name</i>, const <a href="qvector2d.html">QVector2D</a> &amp; <i>value</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable called <i>name</i> in the current context to <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-32"></a>void QGLShaderProgram::setUniformValue ( const char * <i>name</i>, const <a href="qvector3d.html">QVector3D</a> &amp; <i>value</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable called <i>name</i> in the current context to <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-33"></a>void QGLShaderProgram::setUniformValue ( const char * <i>name</i>, const <a href="qvector4d.html">QVector4D</a> &amp; <i>value</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable called <i>name</i> in the current context to <i>value</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-34"></a>void QGLShaderProgram::setUniformValue ( const char * <i>name</i>, const <a href="qcolor.html">QColor</a> &amp; <i>color</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable called <i>name</i> in the current context to the red, green, blue, and alpha components of <i>color</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValue-35"></a>void QGLShaderProgram::setUniformValue ( const char * <i>name</i>, const <a href="qpoint.html">QPoint</a> &amp; <i>point</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable associated with <i>name</i> in the current context to the x and y coordinates of <i>point</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<a name="//apple_ref/cpp/instm/QGLShaderProgram/setUniformValueArray"></a>
<h3 class="fn"><a name="setUniformValueArray"></a>void QGLShaderProgram::setUniformValueArray ( int <i>location</i>, const GLfloat * <i>values</i>, int <i>count</i>, int <i>tupleSize</i> )</h3>
<p>Sets the uniform variable array at <i>location</i> in the current context to the <i>count</i> elements of <i>values</i>. Each element has <i>tupleSize</i> components. The <i>tupleSize</i> must be 1, 2, 3, or 4.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-2"></a>void QGLShaderProgram::setUniformValueArray ( int <i>location</i>, const GLint * <i>values</i>, int <i>count</i> )</h3>
<p>Sets the uniform variable array at <i>location</i> in the current context to the <i>count</i> elements of <i>values</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-3"></a>void QGLShaderProgram::setUniformValueArray ( int <i>location</i>, const GLuint * <i>values</i>, int <i>count</i> )</h3>
<p>Sets the uniform variable array at <i>location</i> in the current context to the <i>count</i> elements of <i>values</i>. This overload should be used when setting an array of sampler values.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-4"></a>void QGLShaderProgram::setUniformValueArray ( int <i>location</i>, const <a href="qvector2d.html">QVector2D</a> * <i>values</i>, int <i>count</i> )</h3>
<p>Sets the uniform variable array at <i>location</i> in the current context to the <i>count</i> 2D vector elements of <i>values</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-5"></a>void QGLShaderProgram::setUniformValueArray ( int <i>location</i>, const <a href="qvector3d.html">QVector3D</a> * <i>values</i>, int <i>count</i> )</h3>
<p>Sets the uniform variable array at <i>location</i> in the current context to the <i>count</i> 3D vector elements of <i>values</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-6"></a>void QGLShaderProgram::setUniformValueArray ( int <i>location</i>, const <a href="qvector4d.html">QVector4D</a> * <i>values</i>, int <i>count</i> )</h3>
<p>Sets the uniform variable array at <i>location</i> in the current context to the <i>count</i> 4D vector elements of <i>values</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-7"></a>void QGLShaderProgram::setUniformValueArray ( int <i>location</i>, const <a href="qgenericmatrix.html#QMatrix2x2-typedef">QMatrix2x2</a> * <i>values</i>, int <i>count</i> )</h3>
<p>Sets the uniform variable array at <i>location</i> in the current context to the <i>count</i> 2x2 matrix elements of <i>values</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-8"></a>void QGLShaderProgram::setUniformValueArray ( int <i>location</i>, const <a href="qgenericmatrix.html#QMatrix2x3-typedef">QMatrix2x3</a> * <i>values</i>, int <i>count</i> )</h3>
<p>Sets the uniform variable array at <i>location</i> in the current context to the <i>count</i> 2x3 matrix elements of <i>values</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-9"></a>void QGLShaderProgram::setUniformValueArray ( int <i>location</i>, const <a href="qgenericmatrix.html#QMatrix2x4-typedef">QMatrix2x4</a> * <i>values</i>, int <i>count</i> )</h3>
<p>Sets the uniform variable array at <i>location</i> in the current context to the <i>count</i> 2x4 matrix elements of <i>values</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-10"></a>void QGLShaderProgram::setUniformValueArray ( int <i>location</i>, const <a href="qgenericmatrix.html#QMatrix3x2-typedef">QMatrix3x2</a> * <i>values</i>, int <i>count</i> )</h3>
<p>Sets the uniform variable array at <i>location</i> in the current context to the <i>count</i> 3x2 matrix elements of <i>values</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-11"></a>void QGLShaderProgram::setUniformValueArray ( int <i>location</i>, const <a href="qgenericmatrix.html#QMatrix3x3-typedef">QMatrix3x3</a> * <i>values</i>, int <i>count</i> )</h3>
<p>Sets the uniform variable array at <i>location</i> in the current context to the <i>count</i> 3x3 matrix elements of <i>values</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-12"></a>void QGLShaderProgram::setUniformValueArray ( int <i>location</i>, const <a href="qgenericmatrix.html#QMatrix3x4-typedef">QMatrix3x4</a> * <i>values</i>, int <i>count</i> )</h3>
<p>Sets the uniform variable array at <i>location</i> in the current context to the <i>count</i> 3x4 matrix elements of <i>values</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-13"></a>void QGLShaderProgram::setUniformValueArray ( int <i>location</i>, const <a href="qgenericmatrix.html#QMatrix4x2-typedef">QMatrix4x2</a> * <i>values</i>, int <i>count</i> )</h3>
<p>Sets the uniform variable array at <i>location</i> in the current context to the <i>count</i> 4x2 matrix elements of <i>values</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-14"></a>void QGLShaderProgram::setUniformValueArray ( int <i>location</i>, const <a href="qgenericmatrix.html#QMatrix4x3-typedef">QMatrix4x3</a> * <i>values</i>, int <i>count</i> )</h3>
<p>Sets the uniform variable array at <i>location</i> in the current context to the <i>count</i> 4x3 matrix elements of <i>values</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-15"></a>void QGLShaderProgram::setUniformValueArray ( int <i>location</i>, const <a href="qmatrix4x4.html">QMatrix4x4</a> * <i>values</i>, int <i>count</i> )</h3>
<p>Sets the uniform variable array at <i>location</i> in the current context to the <i>count</i> 4x4 matrix elements of <i>values</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-16"></a>void QGLShaderProgram::setUniformValueArray ( const char * <i>name</i>, const GLint * <i>values</i>, int <i>count</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable array called <i>name</i> in the current context to the <i>count</i> elements of <i>values</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-17"></a>void QGLShaderProgram::setUniformValueArray ( const char * <i>name</i>, const GLuint * <i>values</i>, int <i>count</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable array called <i>name</i> in the current context to the <i>count</i> elements of <i>values</i>. This overload should be used when setting an array of sampler values.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-18"></a>void QGLShaderProgram::setUniformValueArray ( const char * <i>name</i>, const GLfloat * <i>values</i>, int <i>count</i>, int <i>tupleSize</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable array called <i>name</i> in the current context to the <i>count</i> elements of <i>values</i>. Each element has <i>tupleSize</i> components. The <i>tupleSize</i> must be 1, 2, 3, or 4.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-19"></a>void QGLShaderProgram::setUniformValueArray ( const char * <i>name</i>, const <a href="qvector2d.html">QVector2D</a> * <i>values</i>, int <i>count</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable array called <i>name</i> in the current context to the <i>count</i> 2D vector elements of <i>values</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-20"></a>void QGLShaderProgram::setUniformValueArray ( const char * <i>name</i>, const <a href="qvector3d.html">QVector3D</a> * <i>values</i>, int <i>count</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable array called <i>name</i> in the current context to the <i>count</i> 3D vector elements of <i>values</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-21"></a>void QGLShaderProgram::setUniformValueArray ( const char * <i>name</i>, const <a href="qvector4d.html">QVector4D</a> * <i>values</i>, int <i>count</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable array called <i>name</i> in the current context to the <i>count</i> 4D vector elements of <i>values</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-22"></a>void QGLShaderProgram::setUniformValueArray ( const char * <i>name</i>, const <a href="qgenericmatrix.html#QMatrix2x2-typedef">QMatrix2x2</a> * <i>values</i>, int <i>count</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable array called <i>name</i> in the current context to the <i>count</i> 2x2 matrix elements of <i>values</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-23"></a>void QGLShaderProgram::setUniformValueArray ( const char * <i>name</i>, const <a href="qgenericmatrix.html#QMatrix2x3-typedef">QMatrix2x3</a> * <i>values</i>, int <i>count</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable array called <i>name</i> in the current context to the <i>count</i> 2x3 matrix elements of <i>values</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-24"></a>void QGLShaderProgram::setUniformValueArray ( const char * <i>name</i>, const <a href="qgenericmatrix.html#QMatrix2x4-typedef">QMatrix2x4</a> * <i>values</i>, int <i>count</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable array called <i>name</i> in the current context to the <i>count</i> 2x4 matrix elements of <i>values</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-25"></a>void QGLShaderProgram::setUniformValueArray ( const char * <i>name</i>, const <a href="qgenericmatrix.html#QMatrix3x2-typedef">QMatrix3x2</a> * <i>values</i>, int <i>count</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable array called <i>name</i> in the current context to the <i>count</i> 3x2 matrix elements of <i>values</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-26"></a>void QGLShaderProgram::setUniformValueArray ( const char * <i>name</i>, const <a href="qgenericmatrix.html#QMatrix3x3-typedef">QMatrix3x3</a> * <i>values</i>, int <i>count</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable array called <i>name</i> in the current context to the <i>count</i> 3x3 matrix elements of <i>values</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-27"></a>void QGLShaderProgram::setUniformValueArray ( const char * <i>name</i>, const <a href="qgenericmatrix.html#QMatrix3x4-typedef">QMatrix3x4</a> * <i>values</i>, int <i>count</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable array called <i>name</i> in the current context to the <i>count</i> 3x4 matrix elements of <i>values</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-28"></a>void QGLShaderProgram::setUniformValueArray ( const char * <i>name</i>, const <a href="qgenericmatrix.html#QMatrix4x2-typedef">QMatrix4x2</a> * <i>values</i>, int <i>count</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable array called <i>name</i> in the current context to the <i>count</i> 4x2 matrix elements of <i>values</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-29"></a>void QGLShaderProgram::setUniformValueArray ( const char * <i>name</i>, const <a href="qgenericmatrix.html#QMatrix4x3-typedef">QMatrix4x3</a> * <i>values</i>, int <i>count</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable array called <i>name</i> in the current context to the <i>count</i> 4x3 matrix elements of <i>values</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<h3 class="fn"><a name="setUniformValueArray-30"></a>void QGLShaderProgram::setUniformValueArray ( const char * <i>name</i>, const <a href="qmatrix4x4.html">QMatrix4x4</a> * <i>values</i>, int <i>count</i> )</h3>
<p>This is an overloaded function.</p>
<p>Sets the uniform variable array called <i>name</i> in the current context to the <i>count</i> 4x4 matrix elements of <i>values</i>.</p>
<p>See also <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<a name="//apple_ref/cpp/instm/QGLShaderProgram/shaders"></a>
<h3 class="fn"><a name="shaders"></a><a href="qlist.html">QList</a>&lt;<a href="qglshader.html">QGLShader</a> *&gt; QGLShaderProgram::shaders () const</h3>
<p>Returns a list of all shaders that have been added to this shader program using <a href="qglshaderprogram.html#addShader">addShader</a>().</p>
<p>See also <a href="qglshaderprogram.html#addShader">addShader</a>() and <a href="qglshaderprogram.html#removeShader">removeShader</a>().</p>
<a name="//apple_ref/cpp/instm/QGLShaderProgram/uniformLocation"></a>
<h3 class="fn"><a name="uniformLocation"></a>int QGLShaderProgram::uniformLocation ( const char * <i>name</i> ) const</h3>
<p>Returns the location of the uniform variable <i>name</i> within this shader program's parameter list. Returns -1 if <i>name</i> is not a valid uniform variable for this shader program.</p>
<p>See also <a href="qglshaderprogram.html#attributeLocation">attributeLocation</a>().</p>
<h3 class="fn"><a name="uniformLocation-2"></a>int QGLShaderProgram::uniformLocation ( const <a href="qbytearray.html">QByteArray</a> &amp; <i>name</i> ) const</h3>
<p>This is an overloaded function.</p>
<p>Returns the location of the uniform variable <i>name</i> within this shader program's parameter list. Returns -1 if <i>name</i> is not a valid uniform variable for this shader program.</p>
<p>See also <a href="qglshaderprogram.html#attributeLocation">attributeLocation</a>().</p>
<h3 class="fn"><a name="uniformLocation-3"></a>int QGLShaderProgram::uniformLocation ( const <a href="qstring.html">QString</a> &amp; <i>name</i> ) const</h3>
<p>This is an overloaded function.</p>
<p>Returns the location of the uniform variable <i>name</i> within this shader program's parameter list. Returns -1 if <i>name</i> is not a valid uniform variable for this shader program.</p>
<p>See also <a href="qglshaderprogram.html#attributeLocation">attributeLocation</a>().</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="40%" align="left">Copyright &copy; 2010 Nokia Corporation and/or its subsidiary(-ies)</td>
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="40%" align="right"><div align="right">Qt 4.6.3</div></td>
</tr></table></div></address></body>
</html>