1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qglshaderprogram.cpp -->
<title>Qt 4.8: QGLShaderProgram Class Reference</title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="content">
<a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
</div>
<div class="breadcrumb toolblock">
<ul>
<li class="first"><a href="index.html">Home</a></li>
<!-- Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtopengl.html">QtOpenGL</a></li>
<li>QGLShaderProgram</li>
</ul>
</div>
</div>
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
<li class="level2"><a href="#introduction">Introduction</a></li>
<li class="level2"><a href="#writing-portable-shaders">Writing portable shaders</a></li>
<li class="level2"><a href="#simple-shader-example">Simple shader example</a></li>
<li class="level2"><a href="#binary-shaders-and-programs">Binary shaders and programs</a></li>
</ul>
</div>
<h1 class="title">QGLShaderProgram Class Reference</h1>
<!-- $$$QGLShaderProgram-brief -->
<p>The QGLShaderProgram class allows OpenGL shader programs to be linked and used. <a href="#details">More...</a></p>
<!-- @@@QGLShaderProgram -->
<pre class="cpp"> <span class="preprocessor">#include <QGLShaderProgram></span></pre><p><b>Inherits: </b><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>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#QGLShaderProgram">QGLShaderProgram</a></b> ( QObject * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#dtor.QGLShaderProgram">~QGLShaderProgram</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#addShader">addShader</a></b> ( QGLShader * <i>shader</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#addShaderFromSourceCode-2">addShaderFromSourceCode</a></b> ( QGLShader::ShaderType <i>type</i>, const QByteArray & <i>source</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#addShaderFromSourceCode-3">addShaderFromSourceCode</a></b> ( QGLShader::ShaderType <i>type</i>, const QString & <i>source</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#addShaderFromSourceFile">addShaderFromSourceFile</a></b> ( QGLShader::ShaderType <i>type</i>, const QString & <i>fileName</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#attributeLocation">attributeLocation</a></b> ( const char * <i>name</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#attributeLocation-2">attributeLocation</a></b> ( const QByteArray & <i>name</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#attributeLocation-3">attributeLocation</a></b> ( const QString & <i>name</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#bind">bind</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#bindAttributeLocation">bindAttributeLocation</a></b> ( const char * <i>name</i>, int <i>location</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#bindAttributeLocation-2">bindAttributeLocation</a></b> ( const QByteArray & <i>name</i>, int <i>location</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#bindAttributeLocation-3">bindAttributeLocation</a></b> ( const QString & <i>name</i>, int <i>location</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#disableAttributeArray">disableAttributeArray</a></b> ( int <i>location</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#disableAttributeArray-2">disableAttributeArray</a></b> ( const char * <i>name</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a></b> ( int <i>location</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#enableAttributeArray-2">enableAttributeArray</a></b> ( const char * <i>name</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> GLenum </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#geometryInputType">geometryInputType</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> GLenum </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#geometryOutputType">geometryOutputType</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#geometryOutputVertexCount">geometryOutputVertexCount</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#isLinked">isLinked</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#link">link</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#log">log</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#maxGeometryOutputVertices">maxGeometryOutputVertices</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> GLuint </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#programId">programId</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#release">release</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#removeAllShaders">removeAllShaders</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#removeShader">removeShader</a></b> ( QGLShader * <i>shader</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setAttributeArray-5">setAttributeArray</a></b> ( int <i>location</i>, GLenum <i>type</i>, const void * <i>values</i>, int <i>tupleSize</i>, int <i>stride</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setAttributeArray-6">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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setAttributeArray-7">setAttributeArray</a></b> ( const char * <i>name</i>, const QVector2D * <i>values</i>, int <i>stride</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setAttributeArray-8">setAttributeArray</a></b> ( const char * <i>name</i>, const QVector3D * <i>values</i>, int <i>stride</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setAttributeArray-9">setAttributeArray</a></b> ( const char * <i>name</i>, const QVector4D * <i>values</i>, int <i>stride</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setAttributeArray-10">setAttributeArray</a></b> ( const char * <i>name</i>, GLenum <i>type</i>, const void * <i>values</i>, int <i>tupleSize</i>, int <i>stride</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setAttributeBuffer">setAttributeBuffer</a></b> ( int <i>location</i>, GLenum <i>type</i>, int <i>offset</i>, int <i>tupleSize</i>, int <i>stride</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setAttributeBuffer-2">setAttributeBuffer</a></b> ( const char * <i>name</i>, GLenum <i>type</i>, int <i>offset</i>, int <i>tupleSize</i>, int <i>stride</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a></b> ( int <i>location</i>, GLfloat <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setAttributeValue-5">setAttributeValue</a></b> ( int <i>location</i>, const QVector2D & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setAttributeValue-6">setAttributeValue</a></b> ( int <i>location</i>, const QVector3D & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setAttributeValue-7">setAttributeValue</a></b> ( int <i>location</i>, const QVector4D & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setAttributeValue-8">setAttributeValue</a></b> ( int <i>location</i>, const QColor & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setAttributeValue-14">setAttributeValue</a></b> ( const char * <i>name</i>, const QVector2D & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setAttributeValue-15">setAttributeValue</a></b> ( const char * <i>name</i>, const QVector3D & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setAttributeValue-16">setAttributeValue</a></b> ( const char * <i>name</i>, const QVector4D & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setAttributeValue-17">setAttributeValue</a></b> ( const char * <i>name</i>, const QColor & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setGeometryInputType">setGeometryInputType</a></b> ( GLenum <i>inputType</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setGeometryOutputType">setGeometryOutputType</a></b> ( GLenum <i>outputType</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setGeometryOutputVertexCount">setGeometryOutputVertexCount</a></b> ( int <i>count</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue">setUniformValue</a></b> ( int <i>location</i>, GLfloat <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-36">setUniformValue</a></b> ( const char * <i>name</i>, const QPointF & <i>point</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-37">setUniformValue</a></b> ( const char * <i>name</i>, const QSize & <i>size</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-38">setUniformValue</a></b> ( const char * <i>name</i>, const QSizeF & <i>size</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-39">setUniformValue</a></b> ( const char * <i>name</i>, const QMatrix2x2 & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-40">setUniformValue</a></b> ( const char * <i>name</i>, const QMatrix2x3 & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-41">setUniformValue</a></b> ( const char * <i>name</i>, const QMatrix2x4 & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-42">setUniformValue</a></b> ( const char * <i>name</i>, const QMatrix3x2 & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-43">setUniformValue</a></b> ( const char * <i>name</i>, const QMatrix3x3 & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-44">setUniformValue</a></b> ( const char * <i>name</i>, const QMatrix3x4 & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-45">setUniformValue</a></b> ( const char * <i>name</i>, const QMatrix4x2 & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-46">setUniformValue</a></b> ( const char * <i>name</i>, const QMatrix4x3 & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-47">setUniformValue</a></b> ( const char * <i>name</i>, const QMatrix4x4 & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-48">setUniformValue</a></b> ( int <i>location</i>, const GLfloat[2][2] <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-49">setUniformValue</a></b> ( int <i>location</i>, const GLfloat[3][3] <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-50">setUniformValue</a></b> ( int <i>location</i>, const GLfloat[4][4] <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-51">setUniformValue</a></b> ( const char * <i>name</i>, const GLfloat[2][2] <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-52">setUniformValue</a></b> ( const char * <i>name</i>, const GLfloat[3][3] <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-53">setUniformValue</a></b> ( const char * <i>name</i>, const GLfloat[4][4] <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-54">setUniformValue</a></b> ( const char * <i>name</i>, const QTransform & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-2">setUniformValue</a></b> ( int <i>location</i>, GLint <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-3">setUniformValue</a></b> ( int <i>location</i>, GLuint <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-7">setUniformValue</a></b> ( int <i>location</i>, const QVector2D & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-8">setUniformValue</a></b> ( int <i>location</i>, const QVector3D & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-9">setUniformValue</a></b> ( int <i>location</i>, const QVector4D & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-10">setUniformValue</a></b> ( int <i>location</i>, const QColor & <i>color</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-11">setUniformValue</a></b> ( int <i>location</i>, const QPoint & <i>point</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-12">setUniformValue</a></b> ( int <i>location</i>, const QPointF & <i>point</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-13">setUniformValue</a></b> ( int <i>location</i>, const QSize & <i>size</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-14">setUniformValue</a></b> ( int <i>location</i>, const QSizeF & <i>size</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-15">setUniformValue</a></b> ( int <i>location</i>, const QMatrix2x2 & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-16">setUniformValue</a></b> ( int <i>location</i>, const QMatrix2x3 & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-17">setUniformValue</a></b> ( int <i>location</i>, const QMatrix2x4 & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-18">setUniformValue</a></b> ( int <i>location</i>, const QMatrix3x2 & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-19">setUniformValue</a></b> ( int <i>location</i>, const QMatrix3x3 & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-20">setUniformValue</a></b> ( int <i>location</i>, const QMatrix3x4 & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-21">setUniformValue</a></b> ( int <i>location</i>, const QMatrix4x2 & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-22">setUniformValue</a></b> ( int <i>location</i>, const QMatrix4x3 & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-23">setUniformValue</a></b> ( int <i>location</i>, const QMatrix4x4 & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-24">setUniformValue</a></b> ( int <i>location</i>, const QTransform & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-31">setUniformValue</a></b> ( const char * <i>name</i>, const QVector2D & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-32">setUniformValue</a></b> ( const char * <i>name</i>, const QVector3D & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-33">setUniformValue</a></b> ( const char * <i>name</i>, const QVector4D & <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-34">setUniformValue</a></b> ( const char * <i>name</i>, const QColor & <i>color</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#setUniformValue-35">setUniformValue</a></b> ( const char * <i>name</i>, const QPoint & <i>point</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><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 rightAlign topAlign"> QList<QGLShader *> </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#shaders">shaders</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#uniformLocation">uniformLocation</a></b> ( const char * <i>name</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#uniformLocation-2">uniformLocation</a></b> ( const QByteArray & <i>name</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#uniformLocation-3">uniformLocation</a></b> ( const QString & <i>name</i> ) const</td></tr>
</table>
<ul>
<li class="fn">29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
</ul>
<a name="static-public-members"></a>
<h2>Static Public Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qglshaderprogram.html#hasOpenGLShaderPrograms">hasOpenGLShaderPrograms</a></b> ( const QGLContext * <i>context</i> = 0 )</td></tr>
</table>
<ul>
<li class="fn">7 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 property inherited from <a href="qobject.html#properties">QObject</a></li>
<li class="fn">1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
<li class="fn">1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
<li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
</ul>
<a name="details"></a>
<!-- $$$QGLShaderProgram-description -->
<div class="descr">
<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 class="cpp"> <span class="type"><a href="qglshader.html">QGLShader</a></span> shader(<span class="type"><a href="qglshader.html">QGLShader</a></span><span class="operator">::</span>Vertex);
shader<span class="operator">.</span>compileSourceCode(code);
<span class="type">QGLShaderProgram</span> program(context);
program<span class="operator">.</span><a href="qglshaderprogram.html#addShader">addShader</a>(shader);
program<span class="operator">.</span><a href="qglshaderprogram.html#link">link</a>();
program<span class="operator">.</span><a href="qglshaderprogram.html#bind">bind</a>();</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 class="cpp"> <span class="preprocessor">#define highp</span>
<span class="preprocessor">#define mediump</span>
<span class="preprocessor">#define lowp</span></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 class="cpp"> program<span class="operator">.</span><a href="qglshaderprogram.html#addShaderFromSourceCode">addShaderFromSourceCode</a>(<span class="type"><a href="qglshader.html">QGLShader</a></span><span class="operator">::</span>Vertex<span class="operator">,</span>
<span class="string">"attribute highp vec4 vertex;\n"</span>
<span class="string">"uniform highp mat4 matrix;\n"</span>
<span class="string">"void main(void)\n"</span>
<span class="string">"{\n"</span>
<span class="string">" gl_Position = matrix * vertex;\n"</span>
<span class="string">"}"</span>);
program<span class="operator">.</span><a href="qglshaderprogram.html#addShaderFromSourceCode">addShaderFromSourceCode</a>(<span class="type"><a href="qglshader.html">QGLShader</a></span><span class="operator">::</span>Fragment<span class="operator">,</span>
<span class="string">"uniform mediump vec4 color;\n"</span>
<span class="string">"void main(void)\n"</span>
<span class="string">"{\n"</span>
<span class="string">" gl_FragColor = color;\n"</span>
<span class="string">"}"</span>);
program<span class="operator">.</span><a href="qglshaderprogram.html#link">link</a>();
program<span class="operator">.</span><a href="qglshaderprogram.html#bind">bind</a>();
<span class="type">int</span> vertexLocation <span class="operator">=</span> program<span class="operator">.</span><a href="qglshaderprogram.html#attributeLocation">attributeLocation</a>(<span class="string">"vertex"</span>);
<span class="type">int</span> matrixLocation <span class="operator">=</span> program<span class="operator">.</span><a href="qglshaderprogram.html#uniformLocation">uniformLocation</a>(<span class="string">"matrix"</span>);
<span class="type">int</span> colorLocation <span class="operator">=</span> program<span class="operator">.</span><a href="qglshaderprogram.html#uniformLocation">uniformLocation</a>(<span class="string">"color"</span>);</pre>
<p>With the above shader program active, we can draw a green triangle as follows:</p>
<pre class="cpp"> <span class="keyword">static</span> GLfloat <span class="keyword">const</span> triangleVertices<span class="operator">[</span><span class="operator">]</span> <span class="operator">=</span> {
<span class="number">60.0f</span><span class="operator">,</span> <span class="number">10.0f</span><span class="operator">,</span> <span class="number">0.0f</span><span class="operator">,</span>
<span class="number">110.0f</span><span class="operator">,</span> <span class="number">110.0f</span><span class="operator">,</span> <span class="number">0.0f</span><span class="operator">,</span>
<span class="number">10.0f</span><span class="operator">,</span> <span class="number">110.0f</span><span class="operator">,</span> <span class="number">0.0f</span>
};
<span class="type"><a href="qcolor.html">QColor</a></span> color(<span class="number">0</span><span class="operator">,</span> <span class="number">255</span><span class="operator">,</span> <span class="number">0</span><span class="operator">,</span> <span class="number">255</span>);
QMatrix4x4 pmvMatrix;
pmvMatrix<span class="operator">.</span>ortho(rect());
program<span class="operator">.</span><a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a>(vertexLocation);
program<span class="operator">.</span><a href="qglshaderprogram.html#setAttributeArray">setAttributeArray</a>(vertexLocation<span class="operator">,</span> triangleVertices<span class="operator">,</span> <span class="number">3</span>);
program<span class="operator">.</span><a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>(matrixLocation<span class="operator">,</span> pmvMatrix);
program<span class="operator">.</span><a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>(colorLocation<span class="operator">,</span> color);
glDrawArrays(GL_TRIANGLES<span class="operator">,</span> <span class="number">0</span><span class="operator">,</span> <span class="number">3</span>);
program<span class="operator">.</span><a href="qglshaderprogram.html#disableAttributeArray">disableAttributeArray</a>(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>
</div>
<p><b>See also </b><a href="qglshader.html">QGLShader</a>.</p>
<!-- @@@QGLShaderProgram -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QGLShaderProgram[overload1]$$$QGLShaderProgramQObject* -->
<h3 class="fn"><a name="QGLShaderProgram"></a>QGLShaderProgram::<span class="name">QGLShaderProgram</span> ( <span class="type"><a href="qobject.html">QObject</a></span> * <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><b>See also </b><a href="qglshaderprogram.html#addShader">addShader</a>().</p>
<!-- @@@QGLShaderProgram -->
<!-- $$$QGLShaderProgram$$$QGLShaderProgramconstQGLContext*QObject* -->
<h3 class="fn"><a name="QGLShaderProgram-2"></a>QGLShaderProgram::<span class="name">QGLShaderProgram</span> ( const <span class="type"><a href="qglcontext.html">QGLContext</a></span> * <i>context</i>, <span class="type"><a href="qobject.html">QObject</a></span> * <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><b>See also </b><a href="qglshaderprogram.html#addShader">addShader</a>().</p>
<!-- @@@QGLShaderProgram -->
<!-- $$$~QGLShaderProgram[overload1]$$$~QGLShaderProgram -->
<h3 class="fn"><a name="dtor.QGLShaderProgram"></a>QGLShaderProgram::<span class="name">~QGLShaderProgram</span> ()<tt> [virtual]</tt></h3>
<p>Deletes this shader program.</p>
<!-- @@@~QGLShaderProgram -->
<!-- $$$addShader[overload1]$$$addShaderQGLShader* -->
<h3 class="fn"><a name="addShader"></a><span class="type">bool</span> QGLShaderProgram::<span class="name">addShader</span> ( <span class="type"><a href="qglshader.html">QGLShader</a></span> * <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><b>See also </b><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>
<!-- @@@addShader -->
<!-- $$$addShaderFromSourceCode[overload1]$$$addShaderFromSourceCodeQGLShader::ShaderTypeconstchar* -->
<h3 class="fn"><a name="addShaderFromSourceCode"></a><span class="type">bool</span> QGLShaderProgram::<span class="name">addShaderFromSourceCode</span> ( <span class="type"><a href="qglshader.html#ShaderTypeBit-enum">QGLShader::ShaderType</a></span> <i>type</i>, const <span class="type">char</span> * <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><b>See also </b><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>
<!-- @@@addShaderFromSourceCode -->
<!-- $$$addShaderFromSourceCode$$$addShaderFromSourceCodeQGLShader::ShaderTypeconstQByteArray& -->
<h3 class="fn"><a name="addShaderFromSourceCode-2"></a><span class="type">bool</span> QGLShaderProgram::<span class="name">addShaderFromSourceCode</span> ( <span class="type"><a href="qglshader.html#ShaderTypeBit-enum">QGLShader::ShaderType</a></span> <i>type</i>, const <span class="type"><a href="qbytearray.html">QByteArray</a></span> & <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><b>See also </b><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>
<!-- @@@addShaderFromSourceCode -->
<!-- $$$addShaderFromSourceCode$$$addShaderFromSourceCodeQGLShader::ShaderTypeconstQString& -->
<h3 class="fn"><a name="addShaderFromSourceCode-3"></a><span class="type">bool</span> QGLShaderProgram::<span class="name">addShaderFromSourceCode</span> ( <span class="type"><a href="qglshader.html#ShaderTypeBit-enum">QGLShader::ShaderType</a></span> <i>type</i>, const <span class="type"><a href="qstring.html">QString</a></span> & <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><b>See also </b><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>
<!-- @@@addShaderFromSourceCode -->
<!-- $$$addShaderFromSourceFile[overload1]$$$addShaderFromSourceFileQGLShader::ShaderTypeconstQString& -->
<h3 class="fn"><a name="addShaderFromSourceFile"></a><span class="type">bool</span> QGLShaderProgram::<span class="name">addShaderFromSourceFile</span> ( <span class="type"><a href="qglshader.html#ShaderTypeBit-enum">QGLShader::ShaderType</a></span> <i>type</i>, const <span class="type"><a href="qstring.html">QString</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#addShader">addShader</a>() and <a href="qglshaderprogram.html#addShaderFromSourceCode">addShaderFromSourceCode</a>().</p>
<!-- @@@addShaderFromSourceFile -->
<!-- $$$attributeLocation[overload1]$$$attributeLocationconstchar* -->
<h3 class="fn"><a name="attributeLocation"></a><span class="type">int</span> QGLShaderProgram::<span class="name">attributeLocation</span> ( const <span class="type">char</span> * <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><b>See also </b><a href="qglshaderprogram.html#uniformLocation">uniformLocation</a>() and <a href="qglshaderprogram.html#bindAttributeLocation">bindAttributeLocation</a>().</p>
<!-- @@@attributeLocation -->
<!-- $$$attributeLocation$$$attributeLocationconstQByteArray& -->
<h3 class="fn"><a name="attributeLocation-2"></a><span class="type">int</span> QGLShaderProgram::<span class="name">attributeLocation</span> ( const <span class="type"><a href="qbytearray.html">QByteArray</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#uniformLocation">uniformLocation</a>() and <a href="qglshaderprogram.html#bindAttributeLocation">bindAttributeLocation</a>().</p>
<!-- @@@attributeLocation -->
<!-- $$$attributeLocation$$$attributeLocationconstQString& -->
<h3 class="fn"><a name="attributeLocation-3"></a><span class="type">int</span> QGLShaderProgram::<span class="name">attributeLocation</span> ( const <span class="type"><a href="qstring.html">QString</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#uniformLocation">uniformLocation</a>() and <a href="qglshaderprogram.html#bindAttributeLocation">bindAttributeLocation</a>().</p>
<!-- @@@attributeLocation -->
<!-- $$$bind[overload1]$$$bind -->
<h3 class="fn"><a name="bind"></a><span class="type">bool</span> QGLShaderProgram::<span class="name">bind</span> ()</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><b>See also </b><a href="qglshaderprogram.html#link">link</a>() and <a href="qglshaderprogram.html#release">release</a>().</p>
<!-- @@@bind -->
<!-- $$$bindAttributeLocation[overload1]$$$bindAttributeLocationconstchar*int -->
<h3 class="fn"><a name="bindAttributeLocation"></a><span class="type">void</span> QGLShaderProgram::<span class="name">bindAttributeLocation</span> ( const <span class="type">char</span> * <i>name</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#attributeLocation">attributeLocation</a>().</p>
<!-- @@@bindAttributeLocation -->
<!-- $$$bindAttributeLocation$$$bindAttributeLocationconstQByteArray&int -->
<h3 class="fn"><a name="bindAttributeLocation-2"></a><span class="type">void</span> QGLShaderProgram::<span class="name">bindAttributeLocation</span> ( const <span class="type"><a href="qbytearray.html">QByteArray</a></span> & <i>name</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#attributeLocation">attributeLocation</a>().</p>
<!-- @@@bindAttributeLocation -->
<!-- $$$bindAttributeLocation$$$bindAttributeLocationconstQString&int -->
<h3 class="fn"><a name="bindAttributeLocation-3"></a><span class="type">void</span> QGLShaderProgram::<span class="name">bindAttributeLocation</span> ( const <span class="type"><a href="qstring.html">QString</a></span> & <i>name</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#attributeLocation">attributeLocation</a>().</p>
<!-- @@@bindAttributeLocation -->
<!-- $$$disableAttributeArray[overload1]$$$disableAttributeArrayint -->
<h3 class="fn"><a name="disableAttributeArray"></a><span class="type">void</span> QGLShaderProgram::<span class="name">disableAttributeArray</span> ( <span class="type">int</span> <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><b>See also </b><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>
<!-- @@@disableAttributeArray -->
<!-- $$$disableAttributeArray$$$disableAttributeArrayconstchar* -->
<h3 class="fn"><a name="disableAttributeArray-2"></a><span class="type">void</span> QGLShaderProgram::<span class="name">disableAttributeArray</span> ( const <span class="type">char</span> * <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><b>See also </b><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>
<!-- @@@disableAttributeArray -->
<!-- $$$enableAttributeArray[overload1]$$$enableAttributeArrayint -->
<h3 class="fn"><a name="enableAttributeArray"></a><span class="type">void</span> QGLShaderProgram::<span class="name">enableAttributeArray</span> ( <span class="type">int</span> <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><b>See also </b><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>
<!-- @@@enableAttributeArray -->
<!-- $$$enableAttributeArray$$$enableAttributeArrayconstchar* -->
<h3 class="fn"><a name="enableAttributeArray-2"></a><span class="type">void</span> QGLShaderProgram::<span class="name">enableAttributeArray</span> ( const <span class="type">char</span> * <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><b>See also </b><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>
<!-- @@@enableAttributeArray -->
<!-- $$$geometryInputType[overload1]$$$geometryInputType -->
<h3 class="fn"><a name="geometryInputType"></a><span class="type">GLenum</span> QGLShaderProgram::<span class="name">geometryInputType</span> () const</h3>
<p>Returns the geometry shader input type, if active.</p>
<p>This parameter takes effect the next time the program is linked.</p>
<p>This function was introduced in Qt 4.7.</p>
<p><b>See also </b><a href="qglshaderprogram.html#setGeometryInputType">setGeometryInputType</a>().</p>
<!-- @@@geometryInputType -->
<!-- $$$geometryOutputType[overload1]$$$geometryOutputType -->
<h3 class="fn"><a name="geometryOutputType"></a><span class="type">GLenum</span> QGLShaderProgram::<span class="name">geometryOutputType</span> () const</h3>
<p>Returns the geometry shader output type, if active.</p>
<p>This parameter takes effect the next time the program is linked.</p>
<p>This function was introduced in Qt 4.7.</p>
<p><b>See also </b><a href="qglshaderprogram.html#setGeometryOutputType">setGeometryOutputType</a>().</p>
<!-- @@@geometryOutputType -->
<!-- $$$geometryOutputVertexCount[overload1]$$$geometryOutputVertexCount -->
<h3 class="fn"><a name="geometryOutputVertexCount"></a><span class="type">int</span> QGLShaderProgram::<span class="name">geometryOutputVertexCount</span> () const</h3>
<p>Returns the maximum number of vertices the current geometry shader program will produce, if active.</p>
<p>This parameter takes effect the ntext time the program is linked.</p>
<p>This function was introduced in Qt 4.7.</p>
<p><b>See also </b><a href="qglshaderprogram.html#setGeometryOutputVertexCount">setGeometryOutputVertexCount</a>().</p>
<!-- @@@geometryOutputVertexCount -->
<!-- $$$hasOpenGLShaderPrograms[overload1]$$$hasOpenGLShaderProgramsconstQGLContext* -->
<h3 class="fn"><a name="hasOpenGLShaderPrograms"></a><span class="type">bool</span> QGLShaderProgram::<span class="name">hasOpenGLShaderPrograms</span> ( const <span class="type"><a href="qglcontext.html">QGLContext</a></span> * <i>context</i> = 0 )<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>
<!-- @@@hasOpenGLShaderPrograms -->
<!-- $$$isLinked[overload1]$$$isLinked -->
<h3 class="fn"><a name="isLinked"></a><span class="type">bool</span> QGLShaderProgram::<span class="name">isLinked</span> () const</h3>
<p>Returns true if this shader program has been linked; false otherwise.</p>
<p><b>See also </b><a href="qglshaderprogram.html#link">link</a>().</p>
<!-- @@@isLinked -->
<!-- $$$link[overload1]$$$link -->
<h3 class="fn"><a name="link"></a><span class="type">bool</span> QGLShaderProgram::<span class="name">link</span> ()<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><b>See also </b><a href="qglshaderprogram.html#addShader">addShader</a>() and <a href="qglshaderprogram.html#log">log</a>().</p>
<!-- @@@link -->
<!-- $$$log[overload1]$$$log -->
<h3 class="fn"><a name="log"></a><span class="type"><a href="qstring.html">QString</a></span> QGLShaderProgram::<span class="name">log</span> () 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><b>See also </b><a href="qglshaderprogram.html#link">link</a>().</p>
<!-- @@@log -->
<!-- $$$maxGeometryOutputVertices[overload1]$$$maxGeometryOutputVertices -->
<h3 class="fn"><a name="maxGeometryOutputVertices"></a><span class="type">int</span> QGLShaderProgram::<span class="name">maxGeometryOutputVertices</span> () const</h3>
<p>Returns the hardware limit for how many vertices a geometry shader can output.</p>
<p>This function was introduced in Qt 4.7.</p>
<p><b>See also </b><a href="qglshaderprogram.html#setGeometryOutputVertexCount">setGeometryOutputVertexCount</a>().</p>
<!-- @@@maxGeometryOutputVertices -->
<!-- $$$programId[overload1]$$$programId -->
<h3 class="fn"><a name="programId"></a><span class="type">GLuint</span> QGLShaderProgram::<span class="name">programId</span> () const</h3>
<p>Returns the OpenGL identifier associated with this shader program.</p>
<p><b>See also </b><a href="qglshader.html#shaderId">QGLShader::shaderId</a>().</p>
<!-- @@@programId -->
<!-- $$$release[overload1]$$$release -->
<h3 class="fn"><a name="release"></a><span class="type">void</span> QGLShaderProgram::<span class="name">release</span> ()</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><b>See also </b><a href="qglshaderprogram.html#bind">bind</a>().</p>
<!-- @@@release -->
<!-- $$$removeAllShaders[overload1]$$$removeAllShaders -->
<h3 class="fn"><a name="removeAllShaders"></a><span class="type">void</span> QGLShaderProgram::<span class="name">removeAllShaders</span> ()</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><b>See also </b><a href="qglshaderprogram.html#addShader">addShader</a>() and <a href="qglshaderprogram.html#removeShader">removeShader</a>().</p>
<!-- @@@removeAllShaders -->
<!-- $$$removeShader[overload1]$$$removeShaderQGLShader* -->
<h3 class="fn"><a name="removeShader"></a><span class="type">void</span> QGLShaderProgram::<span class="name">removeShader</span> ( <span class="type"><a href="qglshader.html">QGLShader</a></span> * <i>shader</i> )</h3>
<p>Removes <i>shader</i> from this shader program. The object is not deleted.</p>
<p><b>See also </b><a href="qglshaderprogram.html#addShader">addShader</a>(), <a href="qglshaderprogram.html#link">link</a>(), and <a href="qglshaderprogram.html#removeAllShaders">removeAllShaders</a>().</p>
<!-- @@@removeShader -->
<!-- $$$setAttributeArray[overload1]$$$setAttributeArrayintconstGLfloat*intint -->
<h3 class="fn"><a name="setAttributeArray"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeArray</span> ( <span class="type">int</span> <i>location</i>, const <span class="type">GLfloat</span> * <i>values</i>, <span class="type">int</span> <i>tupleSize</i>, <span class="type">int</span> <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><b>See also </b><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>
<!-- @@@setAttributeArray -->
<!-- $$$setAttributeArray$$$setAttributeArrayintconstQVector2D*int -->
<h3 class="fn"><a name="setAttributeArray-2"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeArray</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qvector2d.html">QVector2D</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><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>
<!-- @@@setAttributeArray -->
<!-- $$$setAttributeArray$$$setAttributeArrayintconstQVector3D*int -->
<h3 class="fn"><a name="setAttributeArray-3"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeArray</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qvector3d.html">QVector3D</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><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>
<!-- @@@setAttributeArray -->
<!-- $$$setAttributeArray$$$setAttributeArrayintconstQVector4D*int -->
<h3 class="fn"><a name="setAttributeArray-4"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeArray</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qvector4d.html">QVector4D</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><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>
<!-- @@@setAttributeArray -->
<!-- $$$setAttributeArray$$$setAttributeArrayintGLenumconstvoid*intint -->
<h3 class="fn"><a name="setAttributeArray-5"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeArray</span> ( <span class="type">int</span> <i>location</i>, <span class="type">GLenum</span> <i>type</i>, const <span class="type">void</span> * <i>values</i>, <span class="type">int</span> <i>tupleSize</i>, <span class="type">int</span> <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>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 <i>type</i> indicates the type of elements in the <i>values</i> array, usually <tt>GL_FLOAT</tt>, <tt>GL_UNSIGNED_BYTE</tt>, etc. The <i>tupleSize</i> indicates the number of components per vertex: 1, 2, 3, or 4.</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>The <a href="qglshaderprogram.html#setAttributeBuffer">setAttributeBuffer</a>() function can be used to set the attribute array to an offset within a vertex buffer.</p>
<p>This function was introduced in Qt 4.7.</p>
<p><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>(), <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>(), <a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a>(), <a href="qglshaderprogram.html#disableAttributeArray">disableAttributeArray</a>(), and <a href="qglshaderprogram.html#setAttributeBuffer">setAttributeBuffer</a>().</p>
<!-- @@@setAttributeArray -->
<!-- $$$setAttributeArray$$$setAttributeArrayconstchar*constGLfloat*intint -->
<h3 class="fn"><a name="setAttributeArray-6"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeArray</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type">GLfloat</span> * <i>values</i>, <span class="type">int</span> <i>tupleSize</i>, <span class="type">int</span> <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><b>See also </b><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>
<!-- @@@setAttributeArray -->
<!-- $$$setAttributeArray$$$setAttributeArrayconstchar*constQVector2D*int -->
<h3 class="fn"><a name="setAttributeArray-7"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeArray</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qvector2d.html">QVector2D</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><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>
<!-- @@@setAttributeArray -->
<!-- $$$setAttributeArray$$$setAttributeArrayconstchar*constQVector3D*int -->
<h3 class="fn"><a name="setAttributeArray-8"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeArray</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qvector3d.html">QVector3D</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><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>
<!-- @@@setAttributeArray -->
<!-- $$$setAttributeArray$$$setAttributeArrayconstchar*constQVector4D*int -->
<h3 class="fn"><a name="setAttributeArray-9"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeArray</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qvector4d.html">QVector4D</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><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>
<!-- @@@setAttributeArray -->
<!-- $$$setAttributeArray$$$setAttributeArrayconstchar*GLenumconstvoid*intint -->
<h3 class="fn"><a name="setAttributeArray-10"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeArray</span> ( const <span class="type">char</span> * <i>name</i>, <span class="type">GLenum</span> <i>type</i>, const <span class="type">void</span> * <i>values</i>, <span class="type">int</span> <i>tupleSize</i>, <span class="type">int</span> <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>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 <i>type</i> indicates the type of elements in the <i>values</i> array, usually <tt>GL_FLOAT</tt>, <tt>GL_UNSIGNED_BYTE</tt>, etc. The <i>tupleSize</i> indicates the number of components per vertex: 1, 2, 3, or 4.</p>
<p>The array will become active when <a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a>() is called on the <i>name</i>. Otherwise the value specified with <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>() for <i>name</i> will be used.</p>
<p>The <a href="qglshaderprogram.html#setAttributeBuffer">setAttributeBuffer</a>() function can be used to set the attribute array to an offset within a vertex buffer.</p>
<p>This function was introduced in Qt 4.7.</p>
<p><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>(), <a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>(), <a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a>(), <a href="qglshaderprogram.html#disableAttributeArray">disableAttributeArray</a>(), and <a href="qglshaderprogram.html#setAttributeBuffer">setAttributeBuffer</a>().</p>
<!-- @@@setAttributeArray -->
<!-- $$$setAttributeBuffer[overload1]$$$setAttributeBufferintGLenumintintint -->
<h3 class="fn"><a name="setAttributeBuffer"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeBuffer</span> ( <span class="type">int</span> <i>location</i>, <span class="type">GLenum</span> <i>type</i>, <span class="type">int</span> <i>offset</i>, <span class="type">int</span> <i>tupleSize</i>, <span class="type">int</span> <i>stride</i> = 0 )</h3>
<p>Sets an array of vertex values on the attribute at <i>location</i> in this shader program, starting at a specific <i>offset</i> in the currently bound vertex buffer. 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 the value array.</p>
<p>The <i>type</i> indicates the type of elements in the vertex value array, usually <tt>GL_FLOAT</tt>, <tt>GL_UNSIGNED_BYTE</tt>, etc. The <i>tupleSize</i> indicates the number of components per vertex: 1, 2, 3, or 4.</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>This function was introduced in Qt 4.7.</p>
<p><b>See also </b><a href="qglshaderprogram.html#setAttributeArray">setAttributeArray</a>().</p>
<!-- @@@setAttributeBuffer -->
<!-- $$$setAttributeBuffer$$$setAttributeBufferconstchar*GLenumintintint -->
<h3 class="fn"><a name="setAttributeBuffer-2"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeBuffer</span> ( const <span class="type">char</span> * <i>name</i>, <span class="type">GLenum</span> <i>type</i>, <span class="type">int</span> <i>offset</i>, <span class="type">int</span> <i>tupleSize</i>, <span class="type">int</span> <i>stride</i> = 0 )</h3>
<p>This is an overloaded function.</p>
<p>Sets an array of vertex values on the attribute called <i>name</i> in this shader program, starting at a specific <i>offset</i> in the currently bound vertex buffer. 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 the value array.</p>
<p>The <i>type</i> indicates the type of elements in the vertex value array, usually <tt>GL_FLOAT</tt>, <tt>GL_UNSIGNED_BYTE</tt>, etc. The <i>tupleSize</i> indicates the number of components per vertex: 1, 2, 3, or 4.</p>
<p>The array will become active when <a href="qglshaderprogram.html#enableAttributeArray">enableAttributeArray</a>() is called on the <i>name</i>. Otherwise the value specified with <a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>() for <i>name</i> will be used.</p>
<p>This function was introduced in Qt 4.7.</p>
<p><b>See also </b><a href="qglshaderprogram.html#setAttributeArray">setAttributeArray</a>().</p>
<!-- @@@setAttributeBuffer -->
<!-- $$$setAttributeValue[overload1]$$$setAttributeValueintGLfloat -->
<h3 class="fn"><a name="setAttributeValue"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeValue</span> ( <span class="type">int</span> <i>location</i>, <span class="type">GLfloat</span> <i>value</i> )</h3>
<p>Sets the attribute at <i>location</i> in the current context to <i>value</i>.</p>
<p><b>See also </b><a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<!-- @@@setAttributeValue -->
<!-- $$$setAttributeValue$$$setAttributeValueintGLfloatGLfloat -->
<h3 class="fn"><a name="setAttributeValue-2"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeValue</span> ( <span class="type">int</span> <i>location</i>, <span class="type">GLfloat</span> <i>x</i>, <span class="type">GLfloat</span> <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><b>See also </b><a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<!-- @@@setAttributeValue -->
<!-- $$$setAttributeValue$$$setAttributeValueintGLfloatGLfloatGLfloat -->
<h3 class="fn"><a name="setAttributeValue-3"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeValue</span> ( <span class="type">int</span> <i>location</i>, <span class="type">GLfloat</span> <i>x</i>, <span class="type">GLfloat</span> <i>y</i>, <span class="type">GLfloat</span> <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><b>See also </b><a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<!-- @@@setAttributeValue -->
<!-- $$$setAttributeValue$$$setAttributeValueintGLfloatGLfloatGLfloatGLfloat -->
<h3 class="fn"><a name="setAttributeValue-4"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeValue</span> ( <span class="type">int</span> <i>location</i>, <span class="type">GLfloat</span> <i>x</i>, <span class="type">GLfloat</span> <i>y</i>, <span class="type">GLfloat</span> <i>z</i>, <span class="type">GLfloat</span> <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><b>See also </b><a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<!-- @@@setAttributeValue -->
<!-- $$$setAttributeValue$$$setAttributeValueintconstQVector2D& -->
<h3 class="fn"><a name="setAttributeValue-5"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeValue</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qvector2d.html">QVector2D</a></span> & <i>value</i> )</h3>
<p>Sets the attribute at <i>location</i> in the current context to <i>value</i>.</p>
<p><b>See also </b><a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<!-- @@@setAttributeValue -->
<!-- $$$setAttributeValue$$$setAttributeValueintconstQVector3D& -->
<h3 class="fn"><a name="setAttributeValue-6"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeValue</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qvector3d.html">QVector3D</a></span> & <i>value</i> )</h3>
<p>Sets the attribute at <i>location</i> in the current context to <i>value</i>.</p>
<p><b>See also </b><a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<!-- @@@setAttributeValue -->
<!-- $$$setAttributeValue$$$setAttributeValueintconstQVector4D& -->
<h3 class="fn"><a name="setAttributeValue-7"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeValue</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qvector4d.html">QVector4D</a></span> & <i>value</i> )</h3>
<p>Sets the attribute at <i>location</i> in the current context to <i>value</i>.</p>
<p><b>See also </b><a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<!-- @@@setAttributeValue -->
<!-- $$$setAttributeValue$$$setAttributeValueintconstQColor& -->
<h3 class="fn"><a name="setAttributeValue-8"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeValue</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qcolor.html">QColor</a></span> & <i>value</i> )</h3>
<p>Sets the attribute at <i>location</i> in the current context to <i>value</i>.</p>
<p><b>See also </b><a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<!-- @@@setAttributeValue -->
<!-- $$$setAttributeValue$$$setAttributeValueintconstGLfloat*intint -->
<h3 class="fn"><a name="setAttributeValue-9"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeValue</span> ( <span class="type">int</span> <i>location</i>, const <span class="type">GLfloat</span> * <i>values</i>, <span class="type">int</span> <i>columns</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<!-- @@@setAttributeValue -->
<!-- $$$setAttributeValue$$$setAttributeValueconstchar*GLfloat -->
<h3 class="fn"><a name="setAttributeValue-10"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeValue</span> ( const <span class="type">char</span> * <i>name</i>, <span class="type">GLfloat</span> <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><b>See also </b><a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<!-- @@@setAttributeValue -->
<!-- $$$setAttributeValue$$$setAttributeValueconstchar*GLfloatGLfloat -->
<h3 class="fn"><a name="setAttributeValue-11"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeValue</span> ( const <span class="type">char</span> * <i>name</i>, <span class="type">GLfloat</span> <i>x</i>, <span class="type">GLfloat</span> <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><b>See also </b><a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<!-- @@@setAttributeValue -->
<!-- $$$setAttributeValue$$$setAttributeValueconstchar*GLfloatGLfloatGLfloat -->
<h3 class="fn"><a name="setAttributeValue-12"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeValue</span> ( const <span class="type">char</span> * <i>name</i>, <span class="type">GLfloat</span> <i>x</i>, <span class="type">GLfloat</span> <i>y</i>, <span class="type">GLfloat</span> <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><b>See also </b><a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<!-- @@@setAttributeValue -->
<!-- $$$setAttributeValue$$$setAttributeValueconstchar*GLfloatGLfloatGLfloatGLfloat -->
<h3 class="fn"><a name="setAttributeValue-13"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeValue</span> ( const <span class="type">char</span> * <i>name</i>, <span class="type">GLfloat</span> <i>x</i>, <span class="type">GLfloat</span> <i>y</i>, <span class="type">GLfloat</span> <i>z</i>, <span class="type">GLfloat</span> <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><b>See also </b><a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<!-- @@@setAttributeValue -->
<!-- $$$setAttributeValue$$$setAttributeValueconstchar*constQVector2D& -->
<h3 class="fn"><a name="setAttributeValue-14"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeValue</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qvector2d.html">QVector2D</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<!-- @@@setAttributeValue -->
<!-- $$$setAttributeValue$$$setAttributeValueconstchar*constQVector3D& -->
<h3 class="fn"><a name="setAttributeValue-15"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeValue</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qvector3d.html">QVector3D</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<!-- @@@setAttributeValue -->
<!-- $$$setAttributeValue$$$setAttributeValueconstchar*constQVector4D& -->
<h3 class="fn"><a name="setAttributeValue-16"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeValue</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qvector4d.html">QVector4D</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<!-- @@@setAttributeValue -->
<!-- $$$setAttributeValue$$$setAttributeValueconstchar*constQColor& -->
<h3 class="fn"><a name="setAttributeValue-17"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeValue</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qcolor.html">QColor</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<!-- @@@setAttributeValue -->
<!-- $$$setAttributeValue$$$setAttributeValueconstchar*constGLfloat*intint -->
<h3 class="fn"><a name="setAttributeValue-18"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setAttributeValue</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type">GLfloat</span> * <i>values</i>, <span class="type">int</span> <i>columns</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setUniformValue">setUniformValue</a>().</p>
<!-- @@@setAttributeValue -->
<!-- $$$setGeometryInputType[overload1]$$$setGeometryInputTypeGLenum -->
<h3 class="fn"><a name="setGeometryInputType"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setGeometryInputType</span> ( <span class="type">GLenum</span> <i>inputType</i> )</h3>
<p>Sets the input type from <i>inputType</i>.</p>
<p>This parameter takes effect the next time the program is linked.</p>
<p><b>See also </b><a href="qglshaderprogram.html#geometryInputType">geometryInputType</a>().</p>
<!-- @@@setGeometryInputType -->
<!-- $$$setGeometryOutputType[overload1]$$$setGeometryOutputTypeGLenum -->
<h3 class="fn"><a name="setGeometryOutputType"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setGeometryOutputType</span> ( <span class="type">GLenum</span> <i>outputType</i> )</h3>
<p>Sets the output type from the geometry shader, if active, to <i>outputType</i>.</p>
<p>This parameter takes effect the next time the program is linked.</p>
<p>This function was introduced in Qt 4.7.</p>
<p><b>See also </b><a href="qglshaderprogram.html#geometryOutputType">geometryOutputType</a>().</p>
<!-- @@@setGeometryOutputType -->
<!-- $$$setGeometryOutputVertexCount[overload1]$$$setGeometryOutputVertexCountint -->
<h3 class="fn"><a name="setGeometryOutputVertexCount"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setGeometryOutputVertexCount</span> ( <span class="type">int</span> <i>count</i> )</h3>
<p>Sets the maximum number of vertices the current geometry shader program will produce, if active, to <i>count</i>.</p>
<p>This parameter takes effect the next time the program is linked.</p>
<p>This function was introduced in Qt 4.7.</p>
<p><b>See also </b><a href="qglshaderprogram.html#geometryOutputVertexCount">geometryOutputVertexCount</a>().</p>
<!-- @@@setGeometryOutputVertexCount -->
<!-- $$$setUniformValue[overload1]$$$setUniformValueintGLfloat -->
<h3 class="fn"><a name="setUniformValue"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, <span class="type">GLfloat</span> <i>value</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to <i>value</i>.</p>
<p><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*constQPointF& -->
<h3 class="fn"><a name="setUniformValue-36"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qpointf.html">QPointF</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*constQSize& -->
<h3 class="fn"><a name="setUniformValue-37"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qsize.html">QSize</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*constQSizeF& -->
<h3 class="fn"><a name="setUniformValue-38"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qsizef.html">QSizeF</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*constQMatrix2x2& -->
<h3 class="fn"><a name="setUniformValue-39"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix2x2-typedef">QMatrix2x2</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*constQMatrix2x3& -->
<h3 class="fn"><a name="setUniformValue-40"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix2x3-typedef">QMatrix2x3</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*constQMatrix2x4& -->
<h3 class="fn"><a name="setUniformValue-41"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix2x4-typedef">QMatrix2x4</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*constQMatrix3x2& -->
<h3 class="fn"><a name="setUniformValue-42"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix3x2-typedef">QMatrix3x2</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*constQMatrix3x3& -->
<h3 class="fn"><a name="setUniformValue-43"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix3x3-typedef">QMatrix3x3</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*constQMatrix3x4& -->
<h3 class="fn"><a name="setUniformValue-44"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix3x4-typedef">QMatrix3x4</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*constQMatrix4x2& -->
<h3 class="fn"><a name="setUniformValue-45"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix4x2-typedef">QMatrix4x2</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*constQMatrix4x3& -->
<h3 class="fn"><a name="setUniformValue-46"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix4x3-typedef">QMatrix4x3</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*constQMatrix4x4& -->
<h3 class="fn"><a name="setUniformValue-47"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qmatrix4x4.html">QMatrix4x4</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueintconstGLfloat[2][2] -->
<h3 class="fn"><a name="setUniformValue-48"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, const <span class="type">GLfloat</span>[<span class="type">2</span>][<span class="type">2</span>] <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 2x2 matrix <i>value</i>. The matrix elements must be specified in column-major order.</p>
<p>This function was introduced in Qt 4.7.</p>
<p><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueintconstGLfloat[3][3] -->
<h3 class="fn"><a name="setUniformValue-49"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, const <span class="type">GLfloat</span>[<span class="type">3</span>][<span class="type">3</span>] <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 3x3 matrix <i>value</i>. The matrix elements must be specified in column-major order.</p>
<p>This function was introduced in Qt 4.7.</p>
<p><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueintconstGLfloat[4][4] -->
<h3 class="fn"><a name="setUniformValue-50"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, const <span class="type">GLfloat</span>[<span class="type">4</span>][<span class="type">4</span>] <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*constGLfloat[2][2] -->
<h3 class="fn"><a name="setUniformValue-51"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type">GLfloat</span>[<span class="type">2</span>][<span class="type">2</span>] <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>. The matrix elements must be specified in column-major order.</p>
<p>This function was introduced in Qt 4.7.</p>
<p><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*constGLfloat[3][3] -->
<h3 class="fn"><a name="setUniformValue-52"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type">GLfloat</span>[<span class="type">3</span>][<span class="type">3</span>] <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>. The matrix elements must be specified in column-major order.</p>
<p>This function was introduced in Qt 4.7.</p>
<p><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*constGLfloat[4][4] -->
<h3 class="fn"><a name="setUniformValue-53"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type">GLfloat</span>[<span class="type">4</span>][<span class="type">4</span>] <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*constQTransform& -->
<h3 class="fn"><a name="setUniformValue-54"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qtransform.html">QTransform</a></span> & <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>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueintGLint -->
<h3 class="fn"><a name="setUniformValue-2"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, <span class="type">GLint</span> <i>value</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to <i>value</i>.</p>
<p><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueintGLuint -->
<h3 class="fn"><a name="setUniformValue-3"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, <span class="type">GLuint</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueintGLfloatGLfloat -->
<h3 class="fn"><a name="setUniformValue-4"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, <span class="type">GLfloat</span> <i>x</i>, <span class="type">GLfloat</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueintGLfloatGLfloatGLfloat -->
<h3 class="fn"><a name="setUniformValue-5"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, <span class="type">GLfloat</span> <i>x</i>, <span class="type">GLfloat</span> <i>y</i>, <span class="type">GLfloat</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueintGLfloatGLfloatGLfloatGLfloat -->
<h3 class="fn"><a name="setUniformValue-6"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, <span class="type">GLfloat</span> <i>x</i>, <span class="type">GLfloat</span> <i>y</i>, <span class="type">GLfloat</span> <i>z</i>, <span class="type">GLfloat</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueintconstQVector2D& -->
<h3 class="fn"><a name="setUniformValue-7"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qvector2d.html">QVector2D</a></span> & <i>value</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to <i>value</i>.</p>
<p><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueintconstQVector3D& -->
<h3 class="fn"><a name="setUniformValue-8"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qvector3d.html">QVector3D</a></span> & <i>value</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to <i>value</i>.</p>
<p><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueintconstQVector4D& -->
<h3 class="fn"><a name="setUniformValue-9"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qvector4d.html">QVector4D</a></span> & <i>value</i> )</h3>
<p>Sets the uniform variable at <i>location</i> in the current context to <i>value</i>.</p>
<p><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueintconstQColor& -->
<h3 class="fn"><a name="setUniformValue-10"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qcolor.html">QColor</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueintconstQPoint& -->
<h3 class="fn"><a name="setUniformValue-11"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qpoint.html">QPoint</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueintconstQPointF& -->
<h3 class="fn"><a name="setUniformValue-12"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qpointf.html">QPointF</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueintconstQSize& -->
<h3 class="fn"><a name="setUniformValue-13"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qsize.html">QSize</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueintconstQSizeF& -->
<h3 class="fn"><a name="setUniformValue-14"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qsizef.html">QSizeF</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueintconstQMatrix2x2& -->
<h3 class="fn"><a name="setUniformValue-15"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix2x2-typedef">QMatrix2x2</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueintconstQMatrix2x3& -->
<h3 class="fn"><a name="setUniformValue-16"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix2x3-typedef">QMatrix2x3</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueintconstQMatrix2x4& -->
<h3 class="fn"><a name="setUniformValue-17"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix2x4-typedef">QMatrix2x4</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueintconstQMatrix3x2& -->
<h3 class="fn"><a name="setUniformValue-18"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix3x2-typedef">QMatrix3x2</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueintconstQMatrix3x3& -->
<h3 class="fn"><a name="setUniformValue-19"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix3x3-typedef">QMatrix3x3</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueintconstQMatrix3x4& -->
<h3 class="fn"><a name="setUniformValue-20"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix3x4-typedef">QMatrix3x4</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueintconstQMatrix4x2& -->
<h3 class="fn"><a name="setUniformValue-21"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix4x2-typedef">QMatrix4x2</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueintconstQMatrix4x3& -->
<h3 class="fn"><a name="setUniformValue-22"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix4x3-typedef">QMatrix4x3</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueintconstQMatrix4x4& -->
<h3 class="fn"><a name="setUniformValue-23"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qmatrix4x4.html">QMatrix4x4</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueintconstQTransform& -->
<h3 class="fn"><a name="setUniformValue-24"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qtransform.html">QTransform</a></span> & <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>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*GLfloat -->
<h3 class="fn"><a name="setUniformValue-25"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, <span class="type">GLfloat</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*GLint -->
<h3 class="fn"><a name="setUniformValue-26"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, <span class="type">GLint</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*GLuint -->
<h3 class="fn"><a name="setUniformValue-27"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, <span class="type">GLuint</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*GLfloatGLfloat -->
<h3 class="fn"><a name="setUniformValue-28"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, <span class="type">GLfloat</span> <i>x</i>, <span class="type">GLfloat</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*GLfloatGLfloatGLfloat -->
<h3 class="fn"><a name="setUniformValue-29"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, <span class="type">GLfloat</span> <i>x</i>, <span class="type">GLfloat</span> <i>y</i>, <span class="type">GLfloat</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*GLfloatGLfloatGLfloatGLfloat -->
<h3 class="fn"><a name="setUniformValue-30"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, <span class="type">GLfloat</span> <i>x</i>, <span class="type">GLfloat</span> <i>y</i>, <span class="type">GLfloat</span> <i>z</i>, <span class="type">GLfloat</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*constQVector2D& -->
<h3 class="fn"><a name="setUniformValue-31"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qvector2d.html">QVector2D</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*constQVector3D& -->
<h3 class="fn"><a name="setUniformValue-32"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qvector3d.html">QVector3D</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*constQVector4D& -->
<h3 class="fn"><a name="setUniformValue-33"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qvector4d.html">QVector4D</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*constQColor& -->
<h3 class="fn"><a name="setUniformValue-34"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qcolor.html">QColor</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValue$$$setUniformValueconstchar*constQPoint& -->
<h3 class="fn"><a name="setUniformValue-35"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValue</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qpoint.html">QPoint</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValue -->
<!-- $$$setUniformValueArray[overload1]$$$setUniformValueArrayintconstGLfloat*intint -->
<h3 class="fn"><a name="setUniformValueArray"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( <span class="type">int</span> <i>location</i>, const <span class="type">GLfloat</span> * <i>values</i>, <span class="type">int</span> <i>count</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayintconstGLint*int -->
<h3 class="fn"><a name="setUniformValueArray-2"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( <span class="type">int</span> <i>location</i>, const <span class="type">GLint</span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayintconstGLuint*int -->
<h3 class="fn"><a name="setUniformValueArray-3"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( <span class="type">int</span> <i>location</i>, const <span class="type">GLuint</span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayintconstQVector2D*int -->
<h3 class="fn"><a name="setUniformValueArray-4"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qvector2d.html">QVector2D</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayintconstQVector3D*int -->
<h3 class="fn"><a name="setUniformValueArray-5"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qvector3d.html">QVector3D</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayintconstQVector4D*int -->
<h3 class="fn"><a name="setUniformValueArray-6"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qvector4d.html">QVector4D</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayintconstQMatrix2x2*int -->
<h3 class="fn"><a name="setUniformValueArray-7"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix2x2-typedef">QMatrix2x2</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayintconstQMatrix2x3*int -->
<h3 class="fn"><a name="setUniformValueArray-8"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix2x3-typedef">QMatrix2x3</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayintconstQMatrix2x4*int -->
<h3 class="fn"><a name="setUniformValueArray-9"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix2x4-typedef">QMatrix2x4</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayintconstQMatrix3x2*int -->
<h3 class="fn"><a name="setUniformValueArray-10"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix3x2-typedef">QMatrix3x2</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayintconstQMatrix3x3*int -->
<h3 class="fn"><a name="setUniformValueArray-11"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix3x3-typedef">QMatrix3x3</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayintconstQMatrix3x4*int -->
<h3 class="fn"><a name="setUniformValueArray-12"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix3x4-typedef">QMatrix3x4</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayintconstQMatrix4x2*int -->
<h3 class="fn"><a name="setUniformValueArray-13"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix4x2-typedef">QMatrix4x2</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayintconstQMatrix4x3*int -->
<h3 class="fn"><a name="setUniformValueArray-14"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix4x3-typedef">QMatrix4x3</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayintconstQMatrix4x4*int -->
<h3 class="fn"><a name="setUniformValueArray-15"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( <span class="type">int</span> <i>location</i>, const <span class="type"><a href="qmatrix4x4.html">QMatrix4x4</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayconstchar*constGLint*int -->
<h3 class="fn"><a name="setUniformValueArray-16"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type">GLint</span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayconstchar*constGLuint*int -->
<h3 class="fn"><a name="setUniformValueArray-17"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type">GLuint</span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayconstchar*constGLfloat*intint -->
<h3 class="fn"><a name="setUniformValueArray-18"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type">GLfloat</span> * <i>values</i>, <span class="type">int</span> <i>count</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayconstchar*constQVector2D*int -->
<h3 class="fn"><a name="setUniformValueArray-19"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qvector2d.html">QVector2D</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayconstchar*constQVector3D*int -->
<h3 class="fn"><a name="setUniformValueArray-20"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qvector3d.html">QVector3D</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayconstchar*constQVector4D*int -->
<h3 class="fn"><a name="setUniformValueArray-21"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qvector4d.html">QVector4D</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayconstchar*constQMatrix2x2*int -->
<h3 class="fn"><a name="setUniformValueArray-22"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix2x2-typedef">QMatrix2x2</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayconstchar*constQMatrix2x3*int -->
<h3 class="fn"><a name="setUniformValueArray-23"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix2x3-typedef">QMatrix2x3</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayconstchar*constQMatrix2x4*int -->
<h3 class="fn"><a name="setUniformValueArray-24"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix2x4-typedef">QMatrix2x4</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayconstchar*constQMatrix3x2*int -->
<h3 class="fn"><a name="setUniformValueArray-25"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix3x2-typedef">QMatrix3x2</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayconstchar*constQMatrix3x3*int -->
<h3 class="fn"><a name="setUniformValueArray-26"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix3x3-typedef">QMatrix3x3</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayconstchar*constQMatrix3x4*int -->
<h3 class="fn"><a name="setUniformValueArray-27"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix3x4-typedef">QMatrix3x4</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayconstchar*constQMatrix4x2*int -->
<h3 class="fn"><a name="setUniformValueArray-28"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix4x2-typedef">QMatrix4x2</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayconstchar*constQMatrix4x3*int -->
<h3 class="fn"><a name="setUniformValueArray-29"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qgenericmatrix.html#QMatrix4x3-typedef">QMatrix4x3</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$setUniformValueArray$$$setUniformValueArrayconstchar*constQMatrix4x4*int -->
<h3 class="fn"><a name="setUniformValueArray-30"></a><span class="type">void</span> QGLShaderProgram::<span class="name">setUniformValueArray</span> ( const <span class="type">char</span> * <i>name</i>, const <span class="type"><a href="qmatrix4x4.html">QMatrix4x4</a></span> * <i>values</i>, <span class="type">int</span> <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><b>See also </b><a href="qglshaderprogram.html#setAttributeValue">setAttributeValue</a>().</p>
<!-- @@@setUniformValueArray -->
<!-- $$$shaders[overload1]$$$shaders -->
<h3 class="fn"><a name="shaders"></a><span class="type"><a href="qlist.html">QList</a></span><<span class="type"><a href="qglshader.html">QGLShader</a></span> *> QGLShaderProgram::<span class="name">shaders</span> () 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><b>See also </b><a href="qglshaderprogram.html#addShader">addShader</a>() and <a href="qglshaderprogram.html#removeShader">removeShader</a>().</p>
<!-- @@@shaders -->
<!-- $$$uniformLocation[overload1]$$$uniformLocationconstchar* -->
<h3 class="fn"><a name="uniformLocation"></a><span class="type">int</span> QGLShaderProgram::<span class="name">uniformLocation</span> ( const <span class="type">char</span> * <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><b>See also </b><a href="qglshaderprogram.html#attributeLocation">attributeLocation</a>().</p>
<!-- @@@uniformLocation -->
<!-- $$$uniformLocation$$$uniformLocationconstQByteArray& -->
<h3 class="fn"><a name="uniformLocation-2"></a><span class="type">int</span> QGLShaderProgram::<span class="name">uniformLocation</span> ( const <span class="type"><a href="qbytearray.html">QByteArray</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#attributeLocation">attributeLocation</a>().</p>
<!-- @@@uniformLocation -->
<!-- $$$uniformLocation$$$uniformLocationconstQString& -->
<h3 class="fn"><a name="uniformLocation-3"></a><span class="type">int</span> QGLShaderProgram::<span class="name">uniformLocation</span> ( const <span class="type"><a href="qstring.html">QString</a></span> & <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><b>See also </b><a href="qglshaderprogram.html#attributeLocation">attributeLocation</a>().</p>
<!-- @@@uniformLocation -->
</div>
<div class="ft">
<span></span>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2012 Nokia Corporation and/or its
subsidiaries. Documentation contributions included herein are the copyrights of
their respective owners.</p>
<br />
<p>
The documentation provided herein is licensed under the terms of the
<a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
License version 1.3</a> as published by the Free Software Foundation.</p>
<p>
Documentation sources may be obtained from <a href="http://www.qt-project.org">
www.qt-project.org</a>.</p>
<br />
<p>
Nokia, Qt and their respective logos are trademarks of Nokia Corporation
in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. <a title="Privacy Policy"
href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
</div>
</body>
</html>
|