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
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
|
2004-10-21 David Reveman <c99drn@cs.umu.se>
* src/glitz_pixel.c (glitz_get_pixels): Set read buffer and
scissor box before ReadPixels.
* src/glitz.c (glitz_copy_area): Reset scissor box when before
CopyPixels.
(glitz_copy_area): Moved pop_current to correct place.
(glitz_copy_area): Set read buffer and scissor box before
copy_texture.
2004-10-09 David Reveman <c99drn@cs.umu.se>
* src/glitz_pixel.c (glitz_get_pixels): Set intermediate image
size correctly.
2004-10-06 David Reveman <c99drn@cs.umu.se>
* src/glitz.c (glitz_copy_area): Fixed source drawable offset.
* src/glitz_pixel.c (glitz_set_pixels): Fixed drawable offset.
2004-10-04 David Reveman <c99drn@cs.umu.se>
* src/glitz.h (GLITZ_REVISION): Bump version to 0.2.3.
* configure.in: Bump version to 0.2.3.
* src/glitz_texture.c: Added glitz_texture_size_check.
* src/glitz_rect.c (glitz_set_rectangles): Made the software fall-back
for fill rectangles a bit more efficient.
* src/glitz.c (glitz_composite): Tracking changes to geometry objects.
* src/glitz_pixel.c: Tracking changes to geometry objects.
Fixed a few offset problems.
* src/glitz_glxint.h: Added GLX features.
* src/glitz_glx_surface.c: Added surface size checks.
* src/glitz_glx_pbuffer.c: screen_info to glitz_glx_pbuffer_create
and glitz_glx_pbuffer_destroy.
* src/glitz_glx_info.c: glBlendColor needs function address lookup.
(glitz_glx_get_proc_address): Only lookup glXGetProcAddress if
GLITZ_GLX_FEATURE_GLX_GET_PROC_ADDRESS_MASK is present.
(_glitz_glx_proc_address_lookup): Fixed GLX function address lookup.
Fixed root context creation.
(glitz_glx_screen_info_get): Check GLX extension version.
Added underscore prefix to static function names.
* src/glitz_glx_format.c: glitz_glx_query_formats_glx12 ->
glitz_glx_query_formats.
glitz_glx_query_formats_glx13 -> glitz_glx_query_formats_fbconfig.
* src/glitz_glx_extension.c: Check GLX extensions.
Check for GL_EXT_blend_color.
client_glx -> glx.
gl_extensions_strings -> gl_extensions_string.
* src/glitz_glx_context.c: glitz_glx_context_create_glx12 ->
glitz_glx_context_create.
glitz_glx_context_create_glx13 -> glitz_glx_context_create_fbconfig.
GLX function pointers are now stored in screen_info.
(glitz_glx_context_proc_address_lookup):
Function address lookup updates.
* src/glitz_gl.h: Added viewport and texture size tokens.
* src/glitz_geometry.c: Update default geometry to current clipping
box.
* src/glitz_compose.c: Check for GLITZ_FEATURE_BLEND_COLOR_MASK
support.
* src/glitz_buffer.c: Added support for glitz_buffer_create_for_data
functionality.
* src/glitz_aglint.h: Added GLITZ_AGL_FEATURE_BLEND_COLOR_MASK.
Max texture sizes and viewport sizes in glitz_agl_context_t.
* src/glitz_agl_surface.c: Added surface size checks.
* src/glitz_agl_info.c: glBlendColor needs function address lookup.
(glitz_agl_thread_info_init): Fixed root context init.
* src/glitz_agl_extension.c: Check for GL_EXT_blend_color.
(_glitz_agl_extension_query_gl): gl_extensions_strings ->
gl_extensions_string.
(glitz_agl_query_extensions): Check GL_EXT_blend_color.
* src/glitz_agl_context.c (glitz_agl_context_proc_address_lookup):
Function address lookup updates.
* src/glitz.h: Added GLITZ_FEATURE_BLEND_COLOR_MASK.
Added glitz_buffer_create_for_data.
2004-09-21 David Reveman <c99drn@cs.umu.se>
* src/glitz_glxint.h: Added create_new_context to
glitz_glx_static_proc_address_list_t.
A GLXContext as parameter to glitz_glx_context_make_current.
* src/glitz_glxext.h: Added glitz_glx_create_new_context_t function
prototype.
* src/glitz_glx_surface.c (_glitz_glx_surface_destroy): A
GLXContext to glitz_glx_context_make_current.
* src/glitz_glx_pbuffer.c (glitz_glx_pbuffer_create): Only create
pbuffer if we've got a valid fbconfig.
* src/glitz_glx_info.c (glitz_glx_proc_address_lookup): Added
glXCreateNewContext.
* src/glitz_glx_context.c (_glitz_glx_context_create_glx12): Use
GLITZ_GL_TRUE instead of 1 for GL_TRUE.
(_glitz_glx_context_create_glx13): If now visual could be found
for a format the context should be created with glXCreateNewContext.
(glitz_glx_context_make_current): The default GLXContext is now a
parameter.
(glitz_glx_context_update): Use root context as new context if no
real context is available.
2004-09-20 David Reveman <c99drn@cs.umu.se>
* src/glitz_filter.c (glitz_filter_set_params): Fixed number of color
stops calculation.
* src/glitz_texture.c (glitz_texture_init): Initialize texture
flags depending on border clamp support.
* src/glitz_program.c: Added better testing whether fragment program
failed to load or not.
* src/glitz_glx_info.c (glitz_glx_create_root_context): Don't set
program map here.
(glitz_glx_screen_info_get): Set program_map here.
* src/glitz_glx_context.c (glitz_glx_context_get): Init feature mask
to screen_info feature mask.
(glitz_glx_context_proc_address_lookup): No need to init feature mask
here.
* src/glitz_gl.h: Added a bunch of fragment program tokens.
* src/glitz_aglint.h: Added gl_version to thread_info.
Added function address lookup utility functions.
* src/glitz_agl_surface.c: Push context current if function address
lookup is needed.
* src/glitz_agl_info.c: Added function address lookup.
* src/glitz_agl_extension.c: Enable VBO and PBO extension
checking.
(glitz_agl_query_extensions): Store GL_VERSION in thread_info.
* src/glitz_agl_context.c: Added function address lookup for all
functions not part of OpenGL 1.2.
* TODO: Improved AGL backend.
2004-09-17 David Reveman <c99drn@cs.umu.se>
* src/glitz_pixel.c: GLITZ_TRANSFORM_COPY_BOX_MASK is more correct name
than GLITZ_TRANSFORM_COPY_REGION_MASK.
(glitz_set_pixels): Set GLITZ_GL_UNPACK_ROW_LENGTH.
(glitz_get_pixels): Set GLITZ_GL_PACK_ROW_LENGTH.
GLITZ_GL_UNPACK_ALIGNMENT should be GLITZ_GL_PACK_ALIGNMENT.
* src/glitz_buffer.c (_glitz_buffer_init): Unbind buffer after
creation.
(glitz_pixel_buffer_create): Use buffer hint for choosing target.
2004-09-16 David Reveman <c99drn@cs.umu.se>
* src/glitz.c (glitz_composite): Don't set texture wrap mode to
GL_CLAMP_TO_BORDER when extension is missing.
2004-09-15 David Reveman <c99drn@cs.umu.se>
* src/glitz_agl_extension.c:
* src/glitz_glx_extension.c: Don't accept any extension by using
GL_VERSION as if it's not listed in the extension string it's usually
not supported in hardware.
* src/glitz_pixel.c (glitz_set_pixels): Get texture before pixel
transform and buffer bind.
2004-09-14 David Reveman <c99drn@cs.umu.se>
* src/glitz_compose.c: Fixed division by zero bug that occurred when
solid color alpha was zero.
2004-09-13 David Reveman <c99drn@cs.umu.se>
* src/glitz_glx_info.c:
* src/glitz_agl_info.c: Addedd glBlendColor.
* src/glitzint.h: Added glBlendColor glitz_gl_proc_address_list_t.
Added render_op to glitz_composite_op_t.
component_alpha -> per_component.
Render operator to glitz_composite_op_init.
* src/glitz_compose.c: Added support for component alpha in one single
pass when using a solid color as source.
Render operator is now set from here.
* src/glitz_gl.h: Added GLITZ_GL_ONE_MINUS_SRC_COLOR and
GLITZ_GL_CONSTANT_COLOR tokens.
Added glitz_gl_blend_color_t prototype.
* src/glitz_glx_context.c:
* src/glitz_glx_extension.c:
* src/glitz_agl_extension.c:
* src/glitz.h: GLITZ_FEATURE_COMPONENT_ALPHA_MASK ->
GLITZ_FEATURE_PER_COMPONENT_RENDERING_MASK.
* src/glitz.c (glitz_composite): Render operator is now set by
in composite_enable.
(glitz_composite): component_alpha -> per_component, as we can now
do component alpha without multiple passes in some cases.
(glitz_composite): Multiply all alpha_mask components by weight, so
that we get solidc surfaces right.
2004-09-11 David Reveman <c99drn@cs.umu.se>
* src/glitz.h (GLITZ_REVISION): Bump version to 0.2.2.
* configure.in: Bump version to 0.2.2.
* src/glitz_filter.c (glitz_filter_set_params): Gradient coordinates
are now translated 0.5 in both x and y directions within glitz so
applications shouldn't have to think about this anymore. e.g.
specifying the top-left pixel as color stop coordinate is now done
with x parameter 0.0 and y parameter 0.0. This makes much more sence.
* src/glitz_rect.c (glitz_set_rectangles): Fixed memory leak.
Fixed order of pixel color components.
* src/glitz.c (glitz_composite): Oh, I'm good at these, not the
first time I accidentally replaced x with y.
2004-09-10 David Reveman <c99drn@cs.umu.se>
* src/glitz_rect.c: Added missing hidden_def to glitz_set_rectangles.
(glitz_rectangle_bounds): hmm, how did this function turn up like
this, well now it's fixed
* src/glitzint.h: Added PROJECTIVE_TRANSFORM flag.
* src/glitz_surface.c (glitz_surface_set_transform): Check if
projective transform.
* src/glitz_program.c: Fixed so that perspective transformations
work with convolution filters and gradient filters.
* src/glitz_compose.c (SURFACE_WRAP): Only allow projective
transformations if GL_ARB_texture_clamp_to_border is present.
2004-09-09 David Reveman <c99drn@cs.umu.se>
* src/glitzint.h: IGNORE_REPEAT flag replaced by IGNORE_WRAP flag.
TEXTURE_COORDS flag replaced by EYE_COORDS flag.
* src/glitz_texture.c (glitz_texture_set_tex_gen): Only shift
coordinates for texture border when it's not done by the
transformation matrix.
* src/glitz_surface.c (glitz_surface_init): No surface flags
set by default.
(glitz_surface_set_transform): Added transformation
support for hardware without GL_ARB_texture_clamp_to_border.
(glitz_surface_set_transform): Set new SURFACE_FLAG_TRANSFORM.
(glitz_surface_set_filter): IGNORE_REPEAT flag replaced by
IGNORE_WRAP flag. TEXTURE_COORDS flag replaced by EYE_COORDS flag.
* src/glitz_program.c: Program type should not be part of
convolution program headers or gradient program headers.
(_glitz_compile_arb_fragment_program): Improved failure checking.
(_glitz_create_fragment_program): Program type is now added here.
(_glitz_create_fragment_program): Pass number of parameters that
will be required to _glitz_compile_arb_fragment_program.
* src/glitz_pixel.c (glitz_set_pixels): 0 as flags to
glitz_texture_set_tex_gen is what we want here.
* src/glitz_glx_info.c: Added glGetError to gl_proc_address.
* src/glitz_glx_extension.c: GL_ARB_texture_non_power_of_two has
been promoted as a core feature to OpenGL 2.0.
GL_ENV_texture_combine_env is not really a OpenGL 1.3 feature,
GL_ARB_texture_combine_env is.
* src/glitz_gl.h: Added glGetError prototype and error tokens.
Added GLITZ_GL_MAX_PROGRAM_LOCAL_PARAMETERS token.
Fixed glGetProgramiv prototype.
* src/glitz_filter.c (glitz_filter_set_params): Fixed gradient
filter coordinate generation.
(glitz_filter_set_type): Don't use SURFACE_PAD macro to check for
padded gradient here.
* src/glitz_compose.c (SURFACE_WRAP): Added transformation
support for hardware without GL_ARB_texture_clamp_to_border.
* src/glitz_agl_surface.c: Fixed so that AGL backend actually
compiles.
* src/glitz_agl_info.c: Added glGetError to gl_proc_address.
* src/glitz_agl_extension.c (glitz_agl_query_extensions): Fixed so
that AGL backend actually compiles.
* src/glitz.c (glitz_composite): replaced TEXTURE_COORDS flag with
EYE_COORDS flag, which is obviously the other way around.
(glitz_copy_area): 0 as flags to glitz_texture_set_tex_gen is
what we want here.
2004-09-08 David Reveman <c99drn@cs.umu.se>
* src/glitz_format.c (glitz_format_for_each_texture_format): Use
default GLITZ_GL_PROXY_TEXTURE_2D texture.
2004-09-07 David Reveman <c99drn@cs.umu.se>
* src/glitzint.h: Allow use of a version number to check presence of
an extension.
* src/glitz_util.c (glitz_extensions_query): Allow use of a version
number to check presence of an extension.
* src/glitz_glx_info.c (glitz_glx_screen_info_get): Don't query
formats if OpenGL version is insufficient.
* src/glitz_glx_extension.c: Improved extension checking.
* src/glitz_glx_context.c (glitz_glx_context_proc_address_lookup):
Lookup correct symbols.
* src/glitz_agl_info.c (glitz_agl_thread_info_init): Don't query
formats if OpenGL version is insufficient.
* src/glitz_agl_extension.c: Improved extension checking.
* src/glitz.h (GLITZ_REVISION): Bump version to 0.2.1.
* configure.in: Bump version to 0.2.1.
* src/glitz-agl.h: Be consistent with the GLX backend.
* src/glitz_agl_surface.c: Be consistent with the GLX backend.
* src/glitz-glx.h: Window size as parameters to
glitz_glx_surface_create_for_window to avoid unnecessary server
round trip.
* src/glitz_glx_surface.c: Window size as parameters to
glitz_glx_surface_create_for_window to avoid unnecessary server
round trip.
* src/glitzint.h: Added texture flags.
Removed texture_mask.
GLITZ_FLAG -> GLITZ_SURFACE_FLAGS.
texcoord_height and texcoord_width replaced by texture.box.
* src/glitz_texture.c: Make sure fill transparent works even though
GL_ARB_texture_border_clamp is missing.
texture_mask goes away.
Added texture flags.
texcoord_height and texcoord_width replaced by texture.box.
* src/glitz_surface.c: GLITZ_FLAG -> GLITZ_SURFACE_FLAGS.
texture_mask goes away.
Added texture flags.
texcoord_height and texcoord_width replaced by texture.box.
Added GLITZ_SURFACE_FLAG_SIMPLE_TRANSFORM_MASK, which mean no
transform or translate only transform.
* src/glitz_rect.c (glitz_set_rectangles):
GLITZ_FLAG -> GLITZ_SURFACE_FLAGS.
* src/glitz_pixel.c (glitz_set_pixels): texture->box
specifies the texture origin in the texture map.
(glitz_set_pixels): no need to pass surface height
to glitz_texture_set_tex_gen anymore.
(glitz_set_pixels): GLITZ_FLAG -> GLITZ_SURFACE_FLAGS.
* src/glitz_glxint.h: texture_mask goes away.
* src/glitz_glx_surface.c: Added texture flags.
GLITZ_FLAG -> GLITZ_SURFACE_FLAGS.
* src/glitz_glx_info.c: texture_mask goes away.
* src/glitz_glx_extension.c (glitz_glx_query_extensions):
texture_mask goes away.
* src/glitz_geometry.c (glitz_set_geometry): GLITZ_FLAG ->
GLITZ_SURFACE_FLAGS.
* src/glitz_filter.c (glitz_filter_set_params): Don't calculate
texture unit sizes here, they have already been calculated in
the texture object.
texcoord_height and texcoord_width replaced by texture.box.
* src/glitz_compose.c: Added texture flags.
Fill type transparent supported even though
GL_ARB_texture_border_clamp is missing.
* src/glitz_aglint.h: texture_mask goes away.
* src/glitz_agl_surface.c: Added texture flags.
GLITZ_FLAG -> GLITZ_SURFACE_FLAGS.
* src/glitz_agl_extension.c (glitz_agl_query_extensions):
texture_mask goes away.
* src/glitz.c (glitz_composite): no need to pass surface height
to glitz_texture_set_tex_gen anymore.
2004-09-04 David Reveman <c99drn@cs.umu.se>
* src/glitz_buffer.c (glitz_buffer_unmap): Obviously wrong.
2004-09-03 David Reveman <c99drn@cs.umu.se>
* src/glitzint.h: Switched to geometry buffers.
* src/glitz_texture.c: Added texcoord_width_unit and
texcoord_height_unit.
Always use glTexGen for texture coordinates.
* src/glitz_surface.c: Cleaned up public API.
Switched to geometry buffers.
glitz_buffer_t -> glitz_color_buffer_t.
* src/glitz_status.c: Removed unused status values. Added
CONTENT_DESTROYED.
* src/glitz_rect.c: fill -> set and set always use SRC operator.
glitz_set_rectangles works for all surfaces, drawable or not.
* src/glitz_program.c: Transformations are no longer done in
fragment programs. Vertex programs are no longer needed.
* src/glitz_pixel.c: Use fixed point pixel conversion.
pixel_buffer -> buffer and moved to glitz_buffer.c.
glitz_put_pixels -> glitz_set_pixels.
* src/glitz_operator.c: Stencil operators no longer needed.
* src/glitz_gl.h: VertexArray, TexGen tokens and prototypes.
More buffer object prototypes.
* src/glitz_filter.c: Use float instead of double everywhere.
Do all calculations at "filter set" time and nothing at
"filter use" time.
Vertex programs are no longer needed.
* src/glitz_compose.c: Use float instead of double everywhere.
Vertex programs are no longer needed.
* src/glitz_glx_surface.c: New context specific backend objects.
Removed update_size backend function.
* src/glitz_agl_surface.c: New context specific backend objects.
Removed update_size backend function.
* src/glitz_glx_context.c: New context specific backend objects.
* src/glitz_agl_context.c: New context specific backend objects.
* src/glitz.h: Added new geometry system. Cleaned up public API.
* src/glitz.c: Switched using vertex arrays and vertex buffer
objects for everything.
* src/Makefile.am (libglitz_la_SOURCES): Removed glitz_trap.c,
glitz_tri.c and glitz_stencil.c. Added glitz_buffer.c and
glitz_geometry.c.
* src/glitz.h (GLITZ_REVISION): Bump version to 0.2.0.
* configure.in: Bump version to 0.2.0.
* TODO: Switched to geometry buffers.
Transformations are no longer done in fragment programs.
2004-08-18 David Reveman <c99drn@cs.umu.se>
* src/glitzint.h: New filter system should now be working.
Added x_offset, y_offset to all polygon rendering functions.
* src/glitz_util.c: Added glitz_clamp_value.
* src/glitz_tri.c: Added x_offset, y_offset.
Don't use display list for multi-sampling as it turned out slower than
without display lists.
Added new glitz_add_triangles function.
* src/glitz_trap.c: Switch to new trapezoid type.
Added x_offset, y_offset.
Don't use display list for multi-sampling as it turned out slower than
without display lists.
Added new glitz_add_trapezoids function.
* src/glitz_surface.c (glitz_surface_init): HINT_CLIP default.
(glitz_surface_set_transform): Fixed projective transformations.
Removed glitz_surface_get_affine_transform.
(glitz_surface_set_fill): Added GLITZ_FILL_CLIP.
Removed correctness hint.
(glitz_surface_set_filter): Updated filter system.
Removed polyopacity.
Added x_offset, y_offset to clipping functions.
* src/glitz_stencil.c: Added x_offset, y_offset.
* src/glitz_rect.c: Added x_offset, y_offset.
* src/glitz_program.c: Added new much improved fragment programs
and new system for creating them.
* src/glitz_pixel.c (glitz_put_pixels): Removed broken render texture
support.
* src/glitz_glx_surface.c: Don't use render texture.
* src/glitz_glx_info.c: Removed display list functions.
* src/glitz_glx_format.c (_glitz_glx_format_compare): We rather have
single buffered non-multisample formats first.
* src/glitz_glx_extension.c: Don't use render texture.
* src/glitz_glx_context.c: Don't use render texture.
Don't check max texture indirections here.
* src/glitz_gl.h: Added some fragment program tokens.
Removed display list function prototypes.
* src/glitz_filter.c: Added new convolution and new gradient filters.
* src/glitz_compose.c: Added fill type clip.
(_glitz_get_surface_type): Tracking changes to new filter system.
* src/glitz_aglint.h: Don't use render texture.
* src/glitz_agl_surface.c: Don't use render texture.
* src/glitz_agl_pbuffer.c: Don't use render texture. We need a better
interface for that. GL_EXT_render_target looks promising.
* src/glitz_agl_info.c: Removed display list functions.
* src/glitz_agl_format.c (_glitz_agl_format_compare): We rather have
non-multisample formats first.
* src/glitz_agl_extension.c (glitz_agl_query_extensions): Don't check
max texture indirections here.
* src/glitz.h: Switch to the new trapezoid type.
Added GLITZ_FILTER_GAUSSIAN.
Added fill type CLIP, which works the same way as X Render; no image
transformation, then dst rectangle is clipped to surface size. image
transformation, fill type transparent is used.
Removed correctness hint as highest quality is now always used.
Removed polyopacity as it's now a parameter to the composite polygon
functions.
Added x_offset and y_offset to all polygon rendering functions.
Added glitz_add_trapezoids and glitz_add_triangles.
* src/glitz.c: Removed the manual repeat fall-back as it was too many
problems with it and it just made everything a mess.
GL_ARB_texture_border_clamp is now required for normal transformations.
Switch to not using display lists for multi-sampling as it seems to
be faster.
* src/Makefile.am (libglitz_la_SOURCES): Removed glitz_matrix.c.
* TODO: Added new convolution and gradient filter.
Fixed projective transformations.
Added some notes about gamma correction.
2004-08-10 David Reveman <c99drn@cs.umu.se>
* src/glitz.h: Added glitz_surface_finish.
* src/glitzint.h: Added allocate parameter to get_texture backend
function.
* src/glitz_surface.c: Removed glitz_surface_try_push_current.
* src/glitz_format.c: Removed option from find_standard_format and
made standard format names match exactly.
Switch name of glitz_render data types, functions and source
code to glitz_combine_, glitz_composite_ and glitz_compose.c.
2004-08-05 David Reveman <c99drn@cs.umu.se>
* src/glitzint.h: New composite interface.
New filter system.
Improved OpenGL state updating.
Removed programmatic surface.
* src/glitz_util.c: Removed glitz_intersect_bounding_box_double.
(glitz_uint_to_power_of_two): Faster.
Removed glitz_uint_is_power_of_two in favor of the POWER_OF_TWO
macro, thanks to Roman Pozlevich for the tip.
* src/glitz_tri.c (glitz_int_composite_triangles): Smarter way for
doing polygon opacity.
* src/glitz_trap.c (glitz_composite_trapezoids): Smarter way for doing
polygon opacity.
* src/glitz_texture.c: Use POWER_OF_TWO macro.
(_glitz_texture_allocate): Clear unused texels.
New filter and wrap handling.
Added glitz_texture_tex_coord.
* src/glitz_surface.c (glitz_surface_init): Detect solid surface type.
Removed glitz_surface_create_intermediate.
Removed programmatic surfaces.
Added _glitz_surface_solid_store and glitz_surface_ensure_solid
functions for solid color handling.
(glitz_surface_set_transform): New filter system.
(glitz_surface_get_affine_transform): Added
glitz_surface_get_affine_transform so that affine transform is only
computed when actually needed.
Added glitz_surface_set_fill.
Added glitz_surface_set_correctness_hint.
(glitz_surface_set_filter): New filter system.
(glitz_surface_update_state): Added glitz_surface_update_state for much
more efficient OpenGL state updating.
(glitz_surface_update_state): Multisample handling is now done here.
* src/glitz_stencil.c: Write update mask.
* src/glitz_status.c: Added glitz_status_to_status_mask.
* src/glitz_render.c: Added support for component alpha with solid
surfaces.
Filters moved into glitz_filter.c.
Updated all of the render interface to match the new composite
interface.
* src/glitz_rect.c: Added STORE_16 macro.
(glitz_int_fill_rectangles): Don't compute bounds here.
Added _glitz_fill_solid for filling solid surfaces with SRC operator.
* src/glitz_program.c: Updated fragment programs to use texture matrix
for projective transformations.
(_glitz_create_vertex_program): Filter type determines vertex program
creation parameters.
(_glitz_create_fragment_program): Filter type determines fragment
program creation parameters.
(glitz_program_map_fini): Update to reflect changes to program map.
* src/glitz_pixel.c: Use new tex_coord functions.
* src/glitz_matrix.c: Removed glitz_matrix_transform_bounding_box.
* src/glitz_glxint.h: Removed ARB from feature names.
Switched to static context stack allocation.
* src/glitz_glx_surface.c (_glitz_glx_surface_push_current): Lazy
allocation of pbuffers.
(_glitz_glx_surface_create): Lazy allocation of pbuffers.
* src/glitz_glx_info.c: Added glLoadMatrixd and glMultMatrixd.
(glitz_glx_screen_info_get): Switched to static context stack
allocation.
* src/glitz_glx_extension.c: New extensions
GL_ARB_texture_border_clamp, GL_EXT_texture_env_combine.
* src/glitz_glx_context.c: Multisample control is moved into glitz
core library.
(glitz_glx_context_make_current): Write the update mask.
(glitz_glx_context_push_current): Switched to static context stack
allocation.
(glitz_glx_context_pop_current): Switched to static context stack
allocation.
* src/glitz_gl.h: Added GLITZ_GL_FLOAT and GLITZ_GL_CLAMP_TO_BORDER
tokens.
Added glitz_gl_load_matrix_d_t and glitz_gl_mult_matrix_d_t prototypes.
* src/glitz_filter.c: Added new filter interface, which matches the
X Render extensions filter interface.
* src/glitz_aglint.h: Removed ARB from feature names.
Switched to static context stack allocation.
* src/glitz_agl_surface.c (_glitz_agl_surface_push_current): Lazy
allocation of pbuffers.
(_glitz_agl_set_features): Stupid code goes away.
(_glitz_agl_surface_create): Lazy allocation of pbuffers.
* src/glitz_agl_info.c: Added glLoadMatrixd and glMultMatrixd.
(glitz_agl_thread_info_init): Switched to static context stack
allocation.
* src/glitz_agl_extension.c: New extensions
GL_ARB_texture_border_clamp, GL_EXT_texture_env_combine.
* src/glitz_agl_context.c: Multisample control is moved into glitz
core library.
(glitz_agl_context_make_current): Write the update mask.
(glitz_agl_context_push_current): Switched to static context stack
allocation.
(glitz_agl_context_pop_current): Switched to static context stack
allocation.
* src/glitz.man: Added new manual page with a short description.
* src/glitz.h: New filter types.
Removed ARB from feature names.
Color ranges and programmatic surfaces, get out of here!
Added fill types.
glitz_surface_set_repeat replaced by glitz_surface_set_fill.
Added glitz_surface_set_correctness_hint, which makes it possible
to turn off the software repeat fall-back that produces slightly
incorrect results.
Added filter parameters to glitz_surface_set_filter.
* src/glitz.c: New internal composite interface. This new interface
almost completely replaces the old way to do composite. Only some
parts of the old interface are left as fall-back for cases where
hardware is not capable of using this new much improved interface.
New interface is simpler and much more correct then the old one.
Different fill types and projective transformations are now supported.
* src/Makefile.am (libglitz_la_SOURCES): glitz_programmatic.c,
glitz_color_range.c goes away and in comes glitz_filter.c.
* TODO: Updated TODO list.
2004-07-24 David Reveman <c99drn@cs.umu.se>
* src/glitz_agl_info.c:
(glitz_agl_fini): Use glitz_agl_thread_info_destroy for thread info
destruction.
glitz_agl_thread_info_destroy is now used for manual thread info
destruction and _tsd_destroy is now destruction call-back function.
* src/glitz_glx_info.c (glitz_glx_create_root_context):
Store root_colormap in screen_info.
(glitz_glx_screen_destroy): Free root colormap.
(glitz_glx_fini): Use glitz_glx_thread_info_destroy for thread info
destruction.
(glitz_glx_thread_info_get): Don't use strdup.
glitz_glx_thread_info_destroy is now used for manual thread info
destruction and _tsd_destroy is now destruction call-back function.
* src/glitz_glxint.h: Added Colormap root_colormap to screen_info
struct.
* src/glitz_agl_surface.c (_glitz_agl_surface_destroy): More efficient
surface destruction.
* src/glitz_glx_surface.c (_glitz_glx_surface_destroy): More efficient
surface destruction.
* src/glitz_surface.c (glitz_surface_fini): More safe and
efficient texture deallocation.
* src/glitz_programmatic.c (_glitz_programmatic_surface_create):
Fixed serious memory leak in programmatic surfaces. This caused
a texture name allocation at each composite operation with a
programmatic surface.
2004-07-22 David Reveman <c99drn@cs.umu.se>
* TODO: Added some important stuff to the TODO list.
2004-07-20 David Reveman <c99drn@cs.umu.se>
* src/glitzint.h: Added glTexEnvfv, glColor4d and pixel buffer
functions to glitz_gl_proc_address_list_t.
Moved some stuff into glitz_color_range.c.
Added new glitz_render_op_t infrastructure.
Added component-alpha support.
Fixed some macros.
Added reference counting to glitz_surface_t.
programs -> program_map.
SHORT_MODULATE -> SHORT_MULT.
* src/glitz_surface.c (glitz_surface_init): programs -> program_map.
Added reference counting to surfaces.
Added glitz_surface_set_component_alpha.
* src/glitz_render.c: Added new glitz_render_op_t infrastructure.
This is a major improvement to the old mess. This new infrastructure
scales very well, is much easier to understand and is more efficient.
* src/glitz_programmatic.c: GLITZ_PROGRAMMATIC_SURFACE_LINEAR_TYPE ->
GLITZ_PROGRAMMATIC_SURFACE_TYPE_LINEAR and
GLITZ_PROGRAMMATIC_SURFACE_RADIAL_TYPE ->
GLITZ_PROGRAMMATIC_SURFACE_TYPE_RADIAL.
(_glitz_programmatic_surface_create): Use MAXSHORT for static surface
size.
Removed glitz_programmatic_surface_setup.
Removed glitz_programmatic_surface_bind as that code should now be
in glitz_render.c.
* src/glitz_program.c: Cleaned up and moved some that should be in
glitz_render.c. Added support for component-alpha.
* src/glitz_pixel.c: Added new pixel buffer interface, which
allows for asynchronous pixel transfers and access to
high-performance memory. Modified pixel transfer functions
to use the new pixel buffer interface.
* src/glitz_glxint.h: Added
GLITZ_GLX_FEATURE_ARB_TEXTURE_ENV_COMBINE_MASK,
GLITZ_GLX_FEATURE_ARB_TEXTURE_ENV_DOT3_MASK,
GLITZ_GLX_FEATURE_PIXEL_BUFFER_OBJECT_MASK;
programs -> program_map.
* src/glitz_glx_surface.c (_glitz_glx_set_features): Better check
for multi-texturing and check pixel buffer object extension
support.
programs -> program_map.
* src/glitz_glx_info.c: Added glTexEnvfv, glColor4d and pixel buffer
functions to _glitz_glx_gl_proc_address.
(glitz_glx_thread_info_get): Fixed thread specific data
allocation.
(glitz_glx_display_destroy): Fixed memory leak.
(glitz_glx_screen_info_get): Use glitz_program_map_init to
initialize program map.
(glitz_glx_screen_destroy): Use glitz_program_map_fini to
clean up program map.
* src/glitz_glx_extension.c: Check for GL_ARB_texture_env_combine,
GL_ARB_texture_env_dot3 and GL_EXT_pixel_buffer_object.
* src/glitz_glx_context.c (glitz_glx_context_proc_address_lookup):
Lookup pixel buffer object function pointers.
* src/glitz_gl.h: Added a bunch of new tokens and function
declarations.
* src/glitz_format.c: OpenGL GL_ALPHA formats are now used for
alpha textures instead of GL_INTENSITY.
* src/glitz_color_range.c: Moved some stuff from glitzint.h to this
file and use the new pixel buffer interface for asynchronous
color range data transfers.
* src/glitz_aglint.h: Added
GLITZ_AGL_FEATURE_ARB_TEXTURE_ENV_COMBINE_MASK,
GLITZ_AGL_FEATURE_ARB_TEXTURE_ENV_DOT3_MASK,
GLITZ_AGL_FEATURE_PIXEL_BUFFER_OBJECT_MASK.
programs -> program_map.
* src/glitz_agl_surface.c: programs -> program_map.
* src/glitz_agl_info.c: Added glTexEnvfv, glColor4d and pixel buffer
functions to _glitz_agl_gl_proc_address.
(glitz_agl_thread_info_get): Fixed thread specific data
allocation.
(glitz_agl_thread_info_init): Use glitz_program_map_init to
initialize program map.
(glitz_agl_thread_info_fini): Use glitz_program_map_fini to
clean up program map.
(glitz_agl_thread_info_fini): Do not free thread specific data here.
* src/glitz_agl_extension.c: Check for GL_ARB_texture_env_combine,
GL_ARB_texture_env_dot3 and GL_EXT_pixel_buffer_object.
* src/glitz.h: glitz_color_range_create now needs a surface
reference.
Added glitz_surface_set_component_alpha.
Added skip_lines to glitz_pixel_format_t.
Added new pixel buffer interface, which allows for asynchronous
pixel transfers and access to high-performance memory.
* src/glitz.h: Added GLITZ_FEATURE_ARB_TEXTURE_ENV_COMBINE_MASK,
GLITZ_FEATURE_ARB_TEXTURE_ENV_DOT3_MASK,
GLITZ_FEATURE_PIXEL_BUFFER_OBJECT_MASK,
GLITZ_FEATURE_COMPONENT_ALPHA_MASK.
* src/glitz.c: Moved in my new glitz.c code, much of it is similar
to the old glitz.c code. However, this new code uses the new
glitz_render_op_t infrastructure and supports component alpha.
* configure.in: Added GCC warning flags.
* TODO: Updated todo list.
* README: Added a short description of glitz.
2004-06-21 David Reveman <c99drn@cs.umu.se>
* src/glitz.h (GLITZ_REVISION): Bump version to 0.1.5.
* configure.in: Bump version to 0.1.5.
* src/glitzint.h: Added new pixel interface and support for none
24bit visuals.
Added byte order and bit order defines.
* src/glitz_util.c: Removed big_endian, and format functions.
* src/glitz_texture.c (glitz_texture_init): LUMINANCE_ALPHA is no
longer used for A8 textures.
* src/glitz_surface.c (glitz_surface_init): Init polyedge_smooth_hint
to GLITZ_POLYEDGE_SMOOTH_HINT_GOOD.
(glitz_surface_init): Use glitz_surface_texture_format to get correct
texture format.
Added glitz_surface_texture_format.
(glitz_surface_create_similar): Inherit filter and polygon hints.
(glitz_surface_setup_environment): Don't set PACK/UNPACK alignment.
Added 2x and 8x software multisample patterns.
(glitz_surface_enable_anti_aliasing): Use new polyedge smooth hint
to choose anti-aliasing method.
Removed draw_pixels and read_pixels functions.
* src/glitz_render.c (glitz_render_type): GL_INTENSITY is now used
for alpha textures.
(glitz_render_enable): Set fragment color to correctly support
non ARGB textures.
* src/glitz_programmatic.c (_glitz_programmatic_surface_create):
transform -> matrix.
(glitz_programmatic_surface_set_transform): transform -> matrix.
(glitz_programmatic_surface_bind): transform -> matrix.
* src/glitz_pixel.c: Added new pixel interface.
* src/glitz_operator.c (glitz_set_stencil_operator): Fixed
stencil operators SET and UNION.
* src/glitz_glx_surface.c (_glitz_glx_surface_update_size): Use
texture format.
* src/glitz_glx_info.c: Updated GL proc address table.
(glitz_glx_screen_info_get): Don't set PACK/UNPACK alignment.
* src/glitz_glx_format.c: Use new texture format detection system.
* src/glitz_glx_context.c
(glitz_glx_context_set_surface_anti_aliasing): Support new
polyedge smooth hint.
* src/glitz_gl.h: Added a few new GL defines and function prototypes.
* src/glitz_format.c: Added new texture format detection system and
full support for non 24-bit formats.
* src/glitz_color_range.c (glitz_color_range_bind): Compile time
byte-order check.
* src/glitz_agl_surface.c (_glitz_agl_surface_update_size): Use
texture format.
* src/glitz_agl_pbuffer.c (glitz_agl_pbuffer_create):
internal_format -> format.
* src/glitz_agl_info.c: Updated GL proc address table.
(glitz_agl_thread_info_init): Don't set PACK/UNPACK alignment.
* src/glitz_agl_format.c: Use new texture format detection system.
* src/glitz_agl_context.c
(glitz_agl_context_set_surface_anti_aliasing): Support new
polyedge smooth hint.
* src/glitz.h: Added new pixel interface.
Added glitz_surface_set_polyedge_smooth_hint.
* src/glitz.c (glitz_copy_area): Updated to use new pixel interface.
* src/Makefile.am (libglitz_la_SOURCES): Added glitz_pixel.c.
* configure.in: Added bigendian check.
2004-06-11 David Reveman <c99drn@cs.umu.se>
* src/glitz.h (GLITZ_REVISION): Bump version to 0.1.4.
* configure.in: Bump version to 0.1.4.
* src/glitzint.h: Added software multi-sampling, new render interface
and new stencil interface.
* src/glitz_util.c: Removed glitz_union_bounding_box_double as it's
no longer used.
* src/glitz_tri.c (glitz_int_fill_triangles): Added software
multi-sample support.
(glitz_int_composite_triangles): Use new stencil interface.
* src/glitz_trap.c (glitz_int_fill_trapezoids): Added software
multi-sample support.
(glitz_composite_trapezoids): Use new stencil interface.
* src/glitz_surface.c: Removed transform stack as it's no longer
needed.
(glitz_surface_create_intermediate): Added
GLITZ_INTERMEDIATE_RGBA_STENCIL.
Removed enable/disable program functions in favor of new render
interface.
Removed glitz_surface_bounds as it's no longer used.
(glitz_surface_set_transform): Fixed so that NULL as transform
for programmatic surface is handled correctly.
(glitz_surface_set_draw_buffer): Switch stencil mask.
(glitz_surface_swap_buffers): Clear all stencil masks.
Added glitz_surface_enable_anti_aliasing,
glitz_surface_disable_anti_aliasing and software multi-sample
support.
Move all clipping code into the new stencil interface.
(glitz_surface_get_hints): Add GLITZ_HINT_MULTISAMPLE_MASK if software
multi-sampling is used.
* src/glitz_program.c: Modulate linear and radial gradients
with current color to support dynamic gradient opacity. Modulate
convolution filter result with current color to support dynamic
opacity. Major cleanup, moved much code into the new render
interface.
* src/glitz_operator.c: Added glitz_set_stencil_operator as part
of the new stencil buffer interface.
* src/glitz_matrix.c: Removed glitz_matrix_translate as it's no
longer used.
* src/glitz_gl.h: Added GLITZ_GL_LESS, GLITZ_GL_LEQUAL,
GLITZ_GL_COMPILE and display list function prototypes.
* src/glitz_agl_info.c: Added display list functions.
* src/glitz_glx_info.c: Added display list functions.
* src/glitz.h: Added GLITZ_HINT_MULTISAMPLE_MASK hint.
* src/glitz.c (_glitz_composite_direct): Use new render interface.
(glitz_composite): Use new render interface. Software multi-sampling
support. Major cleanup to compositing using intermediate surface.
* src/Makefile.am (libglitz_la_SOURCES): Added glitz_render.c and
glitz_stencil.c.
2004-06-02 David Reveman <c99drn@cs.umu.se>
* src/glitzint.h: glitz_intersect_bounding_box should not be declared
internal.
2004-05-30 David Reveman <c99drn@cs.umu.se>
* src/glitz.c (glitz_copy_area): Use new glitz_texture_copy_surface
function.
* src/glitz_agl_surface.c (_glitz_agl_surface_get_texture): Use
new glitz_texture_copy_surface function.
* src/glitz_glx_surface.c (_glitz_glx_surface_get_texture): Use
new glitz_texture_copy_surface function.
* src/glitzint.h: New parameters to glitz_texture_copy_surface.
* src/glitz_texture.c (glitz_texture_copy_surface): Made it more
flexible, this was required to make glitz_copy_area work correctly.
* src/glitz.c (glitz_copy_area): And another one.
2004-05-29 David Reveman <c99drn@cs.umu.se>
* src/glitz_matrix.c (glitz_matrix_transform_bounding_box): Fixed
another typo.
2004-05-28 David Reveman <c99drn@cs.umu.se>
* src/glitz.c (_glitz_composite_direct): Fixed typo.
* src/glitz_glx_info.c (glitz_glx_screen_info_get): screen_info to
proc_address_lookup.
(glitz_glx_proc_address_lookup): Check for glXGetProcAddressARB last as
we don't want to use it for GLX 1.3 function pointer lookups.
* src/glitz_glxint.h: screen_info to proc_address_lookup.
* src/glitz_glx_context.c (glitz_glx_context_proc_address_lookup):
Only check the number of texture indirections if fragment program
extension is supported.
(glitz_glx_context_make_current): screen_info to proc_address_lookup.
2004-05-27 David Reveman <c99drn@cs.umu.se>
* src/glitz.c (glitz_copy_area): Coordinate calculation fix.
2004-05-26 David Reveman <c99drn@cs.umu.se>
* src/glitz_rect.c (glitz_int_fill_rectangles): Don't use glClear
if clipping is set.
2004-05-24 David Reveman <c99drn@cs.umu.se>
* src/glitzint.h: Added support for read-only surfaces.
* src/glitz_tri.c (glitz_int_composite_triangles): Use
create_intermediate.
* src/glitz_trap.c (glitz_composite_trapezoids): Use
create_intermediate.
* src/glitz_surface.c: Added support for read-only surfaces.
Added glitz_surface_find_similar_format and
glitz_surface_find_similar_standard_format.
* src/glitz_programmatic.c: Added support for read-only surfaces.
* src/glitz_glx_surface.c: Added support for read-only surfaces.
* src/glitz_glx_format.c: Added read-only formats.
* src/glitz_format.c: Added read-only formats.
* src/glitz_agl_surface.c: Added support for read-only surfaces.
* src/glitz_agl_format.c: Added read-only formats.
* src/glitz.h: Added read-only formats.
Added find_similar format functions, create_similar new takes a
a format pointer instead of an format name.
* src/glitz.c (glitz_composite): Use create_intermediate.
* src/glitz-glx.h: option_mask is a more appropriate name than options.
* src/glitz-agl.h: option_mask is a more appropriate name than options.
2004-05-20 David Reveman <c99drn@cs.umu.se>
* src/glitz.h (GLITZ_REVISION): Bump version to 0.1.3.
* configure.in: Bump version to 0.1.3.
* src/glitz_surface.c (glitz_surface_fini): Free inverse_transform
if allocated.
(glitz_surface_push_transform): Allocate inverse_transform.
(glitz_surface_set_transform): Set inverse_transform.
* src/glitzint.h: Added inverse_transform matrix.
* src/glitz.c (_glitz_composite_direct): Better direct compositing
support.
(glitz_composite): Fixed source offset handling.
2004-05-17 David Reveman <c99drn@cs.umu.se>
* src/glitzint.h: flush -> flush and swap_buffers. Added new
read/draw buffer interface. Minor updates to matrix functions. Added
glitz_function_pointer_t type.
* src/glitz_texture.c (glitz_texture_copy_surface): Added new
read/draw buffer interface.
* src/glitz_surface.c (glitz_surface_init): Added new read/draw buffer
interface.
Added _gl_buffer, glitz_surface_set_read_buffer,
glitz_surface_set_draw_buffer and glitz_surface_swap_buffers.
(glitz_surface_dirty): Only mark dirty if draw_buffer != read_buffer.
(glitz_surface_setup_environment): Added new read/draw buffer
interface.
(glitz_surface_read_pixels): Check for memory errors. Added new
read/draw buffer interface.
(glitz_surface_draw_pixels): Check for memory errors.
* src/glitz_programmatic.c: flush -> flush and swap_buffers.
* src/glitz_matrix.c: Minor updates to matrix functions.
* src/glitz_glxint.h: glitz_glx_get_proc_address returns
a glitz_function_pointer_t instead of void *.
* src/glitz_glxext.h: glitz_glx_get_proc_address_arb_t returns
a glitz_function_pointer_t instead of void *.
* src/glitz_glx_surface.c: flush -> flush and swap_buffers.
(_glitz_glx_surface_update_size): Update texture size.
* src/glitz_glx_info.c (glitz_glx_get_proc_address): Return
glitz_function_pointer_t instead of void *.
(glitz_glx_get_proc_address): Better error checking.
* src/glitz_aglint.h: Added bound_buffer variable to keep track
of currently pbuffer bound buffer.
* src/glitz_agl_surface.c: flush -> flush and swap_buffers.
Rebind pbuffer if needed.
(_glitz_agl_surface_update_size): Update texture size.
* src/glitz_agl_pbuffer.c (glitz_agl_pbuffer_bind): Support
rebinding to different buffers.
* src/glitz.h: New read/draw buffer interface.
* src/glitz.c (_glitz_composite_direct): Minor updates to
matrix functions.
(glitz_mask_bounds): Fixed mask bounding box calculations.
(glitz_composite): Minor updates to matrix functions.
(glitz_copy_area): Added new read/draw buffer interface.
2004-05-13 David Reveman <c99drn@cs.umu.se>
* src/glitz.c (glitz_copy_area): Fixed obvious memory leak.
(glitz_copy_area): Fixed default texture to drawable copy.
* src/glitz_glx_surface.c (_glitz_glx_surface_make_current_read):
Temporarily disabled glXMakeContextCurrent until I get it working
properly.
* TODO: Added copy area operation.
* src/glitz.h: Added copy area operation.
* src/glitz_agl_surface.c: Added _glitz_agl_surface_make_current_read.
* src/glitz_glx_surface.c: Added _glitz_glx_surface_make_current_read.
* src/glitz_glx_info.c (glitz_glx_proc_address_lookup): Lookup
function glXMakeContextCurrent.
* src/glitz_glxext.h: Added use of GLX 1.3 function
glXMakeContextCurrent.
* src/glitz_glxint.h: Added use of GLX 1.3 function
glXMakeContextCurrent.
* src/glitz_surface.c: Added glitz_surface_make_current_read.
_glitz_surface_try_push_current -> glitz_surface_try_push_current.
* src/glitzint.h: Added backend function make_current_read.
Added x_src and y_src parameters to glitz_texture_copy_surface.
glitz_programs_fini should not be declared with __internal_linkage
macro as it's used by the backend libraries.
Added glitz_surface_make_current_read, glitz_surface_try_push_current
and glitz_set_raster_pos.
* src/glitz.c: Added glitz_copy_area.
2004-05-11 David Reveman <c99drn@cs.umu.se>
* src/glitz.h (GLITZ_REVISION): Bump version to 0.1.2.
* configure.in: Bump version to 0.1.2.
* src/glitzint.h: Convolution filter optimizations.
* src/glitz_program.c: Convolution filter optimizations.
2004-05-10 David Reveman <c99drn@cs.umu.se>
* TODO: Added polygon opacity support.
* src/glitz_tri.c (glitz_int_composite_triangles): Added polygon
opacity support.
* src/glitz_trap.c (glitz_composite_trapezoids): Added polygon
opacity support.
* src/glitz_surface.c (glitz_surface_init): Initialize polyopacity
to 1.0.
Added glitz_surface_set_polyopacity.
* src/glitzint.h: Added surface attribute polyopacity.
Added glitz_surface_set_polyopacity.
* src/glitz.h: Added glitz_surface_set_polyopacity.
* src/glitz_agl_surface.c: region_box -> bounding_box,
sub_pixel_region_box -> bounding_box_double.
* src/glitz_glx_surface.c: region_box -> bounding_box,
sub_pixel_region_box -> bounding_box_double.
* src/glitz_tri.c: region_box -> bounding_box,
sub_pixel_region_box -> bounding_box_double.
* src/glitz_trap.c: region_box -> bounding_box,
sub_pixel_region_box -> bounding_box_double.
* src/glitz_rect.c: region_box -> bounding_box,
sub_pixel_region_box -> bounding_box_double.
* src/glitz_surface.c: region_box -> bounding_box,
sub_pixel_region_box -> bounding_box_double.
* src/glitz_matrix.c: region_box -> bounding_box,
sub_pixel_region_box -> bounding_box_double.
* src/glitz.c: region_box -> bounding_box,
sub_pixel_region_box -> bounding_box_double.
* src/glitz_util.c: region_box -> bounding_box,
sub_pixel_region_box -> bounding_box_double.
* src/glitzint.h: region_box -> bounding_box,
sub_pixel_region_box -> bounding_box_double.
* TODO: Fixed simultaneous transform and repeat.
* src/glitz_tri.c (glitz_int_composite_triangles): Use ARGB32 format
for mask surface.
* src/glitz_trap.c (glitz_composite_trapezoids): Use ARGB32 format
for mask surface.
* src/glitz.c: Added glitz_repeat_direction_t type.
(glitz_composite): Fixed simultaneous transform and repeat.
2004-05-09 David Reveman <c99drn@cs.umu.se>
* TODO: Added library cleanup functions.
* src/glitzint.h: Fixed program identifier types. Added
glitz_programs_fini.
* src/glitz_program.c: Fixed program identifier types. Added
glitz_programs_fini.
* src/glitz_glxint.h: GLX procedure addresses are now thread
specific. Added glitz_glx_context_destroy.
* src/glitz_glxext.h: GLX procedure addresses are now thread
specific.
* src/glitz_glx_surface.c: GLX procedure addresses are now thread
specific.
* src/glitz_glx_pbuffer.c: GLX procedure addresses are now thread
specific.
* src/glitz_glx_info.c: GLX procedure addresses are now thread
specific. Added glitz_glx_thread_info_init,
glitz_glx_thread_info_fini, glitz_glx_screen_destroy,
glitz_glx_display_destroy, glitz_glx_init and glitz_glx_fini.
* src/glitz_glx_format.c: GLX procedure addresses are now thread
specific.
* src/glitz_glx_extension.c (glitz_glx_query_extensions): GLX
procedure addresses are now thread specific.
* src/glitz_glx_context.c: GLX procedure addresses are now thread
specific. Added glitz_glx_context_destroy.
(_glitz_glx_context_create_glx13): Free visual info structure.
(glitz_glx_ensure_pbuffer_support): Free fbconfigs.
* src/glitz_aglint.h: Added glitz_agl_context_destroy.
* src/glitz_agl_info.c: Added glitz_agl_thread_info_fini,
glitz_agl_init and glitz_agl_fini.
* src/glitz_agl_context.c: Added glitz_agl_context_destroy.
* src/glitz-agl.h: Added glitz_agl_init and glitz_agl_fini.
2004-05-06 David Reveman <c99drn@cs.umu.se>
* src/glitzint.h: Better texture handling.
* src/glitz_texture.c: Better texture handling.
* src/glitz_programmatic.c: Better texture handling.
* src/glitz_surface.c: Better texture handling.
* src/glitz_glxint.h: Better texture handling.
* src/glitz_glx_surface.c: Better texture handling.
* src/glitz_aglint.h: Better texture handling.
* src/glitz_agl_surface.c: Fixed indentation.
Better texture handling.
* src/glitz_agl_pbuffer.c: Better texture handling.
* src/glitz.c (_glitz_composite_direct): Fixed dirty region.
Better texture handling.
2004-05-04 David Reveman <c99drn@cs.umu.se>
* src/glitz_glx_format.c (_glitz_glx_format_compare): Higher
priority to multisample formats.
* src/glitz_agl_surface.c (_glitz_agl_set_features): The feature
mask should not represent the features of the current surface
but the features of the graphics hardware.
* src/glitz_glx_surface.c (_glitz_glx_set_features): The feature
mask should not represent the features of the current surface
but the features of the graphics hardware.
2004-05-02 David Reveman <c99drn@cs.umu.se>
* src/glitz_glx_format.c (glitz_glx_query_formats): Make sure
pbuffers are really working before we allow full offscreen support.
* src/glitz_glxint.h: Added glitz_glx_ensure_pbuffer_support.
* src/glitz_glx_context.c: Added glitz_glx_ensure_pbuffer_support.
* src/glitz_glx_extension.c (glitz_glx_query_extensions): Moved
renderer declaration.
* TODO: Added planned features and some ideas.
2004-05-01 David Reveman <c99drn@cs.umu.se>
* src/glitz_agl_format.c (glitz_agl_query_formats): Cleaned up
creation of fake offscreen formats.
* src/glitz_glx_info.c (glitz_glx_thread_info_get): Do
proc address lookup.
(glitz_glx_screen_info_get): Handle errors better.
(glitz_glx_create_root_context): Better root context creation.
* src/glitz_glx_format.c: Cleaned up creation of fake offscreen
formats.
* src/glitz_glx_extension.c (glitz_glx_query_extensions): Pbuffer
multi-sampling supported on Quadro cards.
* src/glitz_format.c: Fixed indentation.
2004-04-30 David Reveman <c99drn@cs.umu.se>
* configure.in: Bump version to 0.1.1.
* src/glitz.h (GLITZ_REVISION): Bump version to 0.1.1.
* src/glitzint.h: Updated linear and radial surfaces.
* src/glitz_surface.c: Updated linear and radial surfaces.
* src/glitz_programmatic.c: Updated linear and radial surfaces.
* src/glitz_program.c: Updated linear and radial surfaces.
* src/glitz_matrix.c: Fixed indentation.
* src/glitz.h: Removed glitz_distance_fixed_t. Updated linear
and radial surfaces.
* src/glitz.c (_glitz_composite_direct): Fixed rare source/mask
offset bug.
2004-04-28 David Reveman <c99drn@cs.umu.se>
* src/glitzint.h: Added internal_format to glitz_texture_t. Added
SURFACE_SOLID macro. Removed glitz_format_find_sufficient_standard.
* src/glitz_util.c (glitz_get_gl_format_from_bpp):
Use GLITZ_GL_LUMINANCE_ALPHA instead of GLITZ_GL_ALPHA for
A8 surfaces.
* src/glitz_texture.c: Added support for direct compositing with mask
surface only using multi-texturing.
* src/glitz_surface.c: Added _glitz_surface_try_push_current.
Added support for direct compositing with mask surface only using
multi-texturing.
(glitz_surface_gl_begin): Removed unnecessary set of surface status.
* src/glitz_program.c: Added support for direct compositing with
mask surface only using multi-texturing.
* src/glitz_gl.h: Added GLITZ_GL_MODULATE and GLITZ_GL_LUMINANCE_ALPHA.
* src/glitz_format.c: Removed glitz_format_find_sufficient_standard.
* src/glitz_glxint.h: Added GLITZ_AGL_FEATURE_ARB_MULTITEXTURE_MASK.
* src/glitz_aglint.h: Added GLITZ_AGL_FEATURE_ARB_MULTITEXTURE_MASK.
* src/glitz_glx_surface.c (_glitz_glx_surface_create_similar):
Always use glitz_format_find_standard for similar surface formats.
(_glitz_glx_surface_push_current): Fixed invalid set of surface status.
* src/glitz_agl_surface.c (_glitz_agl_surface_create_similar):
Always use glitz_format_find_standard for similar surface formats.
(_glitz_agl_surface_push_current): Fixed invalid set of surface status.
* src/glitz_agl_pbuffer.c (glitz_agl_pbuffer_create): Use internal
format for pbuffer.
* src/glitz_glx_extension.c: Detect GL_ARB_multitexture extension.
* src/glitz_agl_extension.c: Detect GL_ARB_multitexture extension.
* src/glitz.h (GLITZ_FEATURE_OFFSCREEN_MULTISAMPLE_MASK): Added
GLITZ_FEATURE_ARB_MULTITEXTURE_MASK.
* src/glitz.c (_glitz_composite_direct): Added support for
direct compositing with mask surface only using multi-texturing.
(glitz_composite): Solid mask surfaces are now supported by all
hardware.
2004-04-25 David Reveman <c99drn@cs.umu.se>
* src/glitz_programmatic.c (glitz_programmatic_surface_bind):
* src/glitz_program.c: Removed unnecessary parameter from linear
gradient program.
* src/glitz_glx_surface.c (_glitz_glx_surface_push_current):
* src/glitz_agl_surface.c (_glitz_agl_surface_push_current):
Context procedure address lookup can no longer accidentally
raise "not supported" flag during surface initialization.
2004-04-15 David Reveman <c99drn@cs.umu.se>
* src/Makefile.am (libglitz_agl_la_SOURCES): glitz_aglext.h not
needed.
(libglitz_la_SOURCES): Fixed end of line.
2004-04-10 David Reveman <c99drn@cs.umu.se>
* configure.in: Backend detection similar to cairo.
2004-04-06 David Reveman <c99drn@cs.umu.se>
* ChangeLog: Added name to ChangeLog entries.
* src/glitz_rect.c (glitz_int_fill_rectangles): Use glClear
for solid color and stencil fills.
* src/glitz_surface.c (glitz_int_surface_clip_rectangles): Use
internal stencil operators with glitz_int_fill_rectangles.
* src/glitzint.h: Added STENCIL_RECT operators.
* autogen.sh (AUTOMAKE_FLAGS): Removed --foreign flag.
2004-04-03 David Reveman <c99drn@cs.umu.se>
* src/glitz_agl_surface.c (_glitz_agl_set_features):
* src/glitz_glx_surface.c (_glitz_glx_set_features): Fixed
detection of convolution filter support.
* src/glitz_glx_pbuffer.c:
* src/glitz_glx_context.c:
* src/glitz_glx_surface.c:
* src/glitz_glxint.h:
* src/glitzint.h:
* src/glitz_glxext.h: Removed ATI_render_texture support.
2004-04-01 David Reveman <c99drn@cs.umu.se>
* src/glitzint.h: Removed __internal_linkage from functions that
should be exported to backend libraries.
2004-03-31 David Reveman <c99drn@cs.umu.se>
* configure.in: Fixed misplacement of AM_CONDITIONAL macros.
2004-03-30 David Reveman <c99drn@cs.umu.se>
Name change (libglc -> libglitz)
2004-03-27 David Reveman <c99drn@cs.umu.se>
Added clipping support.
Added new polygon drawing code.
2004-03-20 David Reveman <c99drn@cs.umu.se>
Added color range interface.
New fragment program for radial gradient.
2004-03-15 David Reveman <c99drn@cs.umu.se>
* src/glc_programmatic.c: Divide by zero fix.
2004-03-14 David Reveman <c99drn@cs.umu.se>
* src/Makefile.am: Don't install GL extension headers.
Fixed polygon bounds.
2004-03-13 David Reveman <c99drn@cs.umu.se>
* src/glc_glx_format.c: Use GLX13 to find visual info if GLX13 is
present.
2004-03-12 David Reveman <c99drn@cs.umu.se>
* src/glc_trap.c: Removed ugly trapezoid hack.
2004-03-08 David Reveman <c99drn@cs.umu.se>
Fragment program updates. Added support for combined
convolution and solid programmatic surface operation.
2004-03-06 David Reveman <c99drn@cs.umu.se>
Included our own GL extension definitions.
2004-03-05 David Reveman <c99drn@cs.umu.se>
Added solid programmatic surfaces.
2004-02-28 David Reveman <c99drn@cs.umu.se>
* src/glc_agl_extension.c: Added NPOT texture support.
* src/glc_glx_extension.c: Added NPOT texture support.
* src/glcint.h: Added NPOT texture support.
* src/glc_texture.c: Added NPOT texture support.
2004-02-27 David Reveman <c99drn@cs.umu.se>
* src/glc.c (_glc_composite_direct): Texture coordinate fix.
* src/glc_tri.c: Important fix for source offset bug.
* src/glc_trap.c (glc_composite_trapezoids): Important fix for
source offset bug.
* src/glc.c (glc_composite): Reduced programmatic surface size.
* src/glc_program.c: Corrected some values in the expand map.
2004-02-26 David Reveman <c99drn@cs.umu.se>
Added programmatic surface support. Two types on programmatic
surfaces are currently supported, linear and radial gradients.
I also like to have a function based gradient and linear and
radial guassian shadings.
2004-02-23 David Reveman <c99drn@cs.umu.se>
* src/glc_glx_format.c (glc_glx_query_formats_glx13):
Use GLC_GLX_FEATURE_GLX13_MASK.
* src/glc_glx_context.c (glc_glx_context_get): Check
GLC_GLX_FEATURE_GLX13_MASK instead of
GLC_FEATURE_OFFSCREEN_DRAWING_MASK.
* src/glc_glx_extension.c (glc_glx_query_extensions):
Added GLC_GLX_FEATURE_GLX13_MASK.
* src/glcint.h: Added GLC_GLX_FEATURE_GLX13_MASK.
2004-02-21 David Reveman <c99drn@cs.umu.se>
* src/glc_matrix.c: Added glc_matrix_transform_region function.
* src/glcint.h: Added push/pop functionality for transform
matrix. Added glc_matrix_transform_region function.
* src/glc_surface.c: Added push/pop functionality for transform
matrix.
* src/glc.c: Only one intermediate surface is now needed when
doing none direct compositing with mask and the area of that
intermediate surface is now also minimized.
2004-02-20 David Reveman <c99drn@cs.umu.se>
Added convolution filter support.
2004-02-18 David Reveman <c99drn@cs.umu.se>
Fixed dynamic lookup handling and texture rectangle support.
2004-02-16 David Reveman <c99drn@cs.umu.se>
* configure.in: Check version of GL headers.
Dynamic lookup of all GL and GLX extension symbols.
2004-02-12 David Reveman <c99drn@cs.umu.se>
Added pixel read/draw format info.
2004-02-11 David Reveman <c99drn@cs.umu.se>
* src/glc.c: Sub-pixel positioning fixes.
* src/glc_glx_surface.c: Tracking changes of format pointer location.
Merged fragment program code.
2004-02-06 David Reveman <c99drn@cs.umu.se>
* src/glc_glx_extension.c (glc_glx_query_extensions): Add offscreen
multisample support for geforce fx cards.
* src/glc_tri.c (glc_color_triangles): Removed component masking.
* src/glc_trap.c (glc_color_trapezoids): Removed component masking.
* src/glc_rect.c: Removed component masking.
* src/glc.c (glc_composite): Removed component masking.
* src/glc_glx_format.c: Add a few more fake
offscreen formats.
* src/glc_agl_format.c (glc_agl_query_formats): Add a few more fake
offscreen formats.
* src/glc_surface.c (glc_surface_create_similar): Force all channels
on for intermediates.
* src/glc_format.c (glc_format_find_standard): All componenets must
match exactly when searching for standard formats.
* src/glc_glx_format.c (glc_glx_query_formats_glx12):
Fixed so that the correct visual IDs are retrieved.
2004-02-05 David Reveman <c99drn@cs.umu.se>
Merged new format handling code.
2004-02-03 David Reveman <c99drn@cs.umu.se>
* src/glc_glx_format.c (glc_glx_find_visual_format): Don't add options
when searching for specific visual.
(glc_glx_find_standard_format): Remove doublebuffer flag from standard
formats.
* src/glc_agl_surface.c (_glc_agl_surface_swap_buffers): When surface
is single buffered, call glFlush instead of swapping buffers.
* src/glc_glx_surface.c (_glc_glx_surface_swap_buffers): When surface
is single buffered, call glFlush instead of swapping buffers.
* src/glc_agl_format.c (_glc_add_options): Force single buffering
when double buffering is not specified.
* src/glc_glx_format.c (_glc_add_options): Force single buffering
when double buffering is not specified.
Restructuring of internal rendering model.
AGL backend added.
2003-12-13 David Reveman <c99drn@cs.umu.se>
* configure.in: Added --disable-glx switch.
* configure.in: External slim package is no longer required.
* src/glc.h: Directly fold in slim stuff rather than
depending on it from an external package.
* src/glcint.h: Directly fold in slim stuff rather than
depending on it from an external package.
2003-12-09 David Reveman <c99drn@cs.umu.se>
* src/glc_tri.c: Always turn off polygon smooth after rendering.
* src/glc_trap.c: Always turn off polygon smooth after rendering.
* src/glc_util.c: Added extension check functions.
* src/glcint.h: Moved out extension check functions from glx backend.
* src/glc_glx_extension.c: Check for client glx extensions and
validate fbconfig and pbuffer support.
* src/glc_surface.c (glc_surface_draw_pixels): Do not draw to both
back and front buffer.
2003-12-09 Peter Nilsson <c99pnn@cs.umu.se>
* src/glc.h: Moved read/draw pixels from glx backend to glc
core.
* src/glc_glx_surface.c: Moved read/draw pixels from glx backend to glc
core.
* src/glc_surface.c: Moved read/draw pixels from glx backend to glc
core.
2003-12-08 David Reveman <c99drn@cs.umu.se>
Texture format fixes. Linux and MacOSX ATI drivers should now work.
2003-12-07 David Reveman <c99drn@cs.umu.se>
New system for handling texture coordinates.
* src/glc_glx_surface.c (_glc_glx_surface_destroy): Make sure drawable
is not current when destroying it.
* src/glc_glx_context.c (glc_glx_context_release): Make sure context
is not current when destroying it.
2003-12-05 David Reveman <c99drn@cs.umu.se>
* configure.in: Keeping up with cairo.
* src/glcint.h: Added glc_intersect_region function.
* src/glc_util.c: Added glc_intersect_region function.
* src/glc.c (glc_composite): Added support for combined repeat and
transformations.
* Added conditional backend building.
2003-12-04 David Reveman <c99drn@cs.umu.se>
* src/glc.c (glc_composite): Use GLC_OPERATOR_IN instead of
GLC_OPERATOR_MASK.
* src/glc_operator.c: Removed GLC_OPERATOR_MASK.
* src/glcint.h: Removed GLC_OPERATOR_MASK.
* src/glc_texture.c (glc_texture_create): Use GL_RGBA as internal
texture format instead of GL_RGBA8.
* src/glc_glx_surface.c (glc_glx_surface_draw_pixels): Added glFlush
after glTexSubImage2D.
* src/glc_tri.c (glc_color_triangles): Added glFlush after
glCopyTexSubImage2D.
* src/glc_trap.c (glc_color_trapezoids): Added glFlush after
glCopyTexSubImage2D.
* src/glc_rect.c: Added glFlush after glCopyTexSubImage2D.
* src/glc.c (glc_composite): Repeat for none power of two textures
implemented.
(glc_composite): Added glFlush after glCopyTexSubImage2D.
2003-12-04 David Reveman <c99drn@cs.umu.se>
* src/glc_surface.c (glc_surface_setup_environment): Set pack/unpack
alignment.
* src/glc_glx_info.c (glc_glx_screen_info_get): Set pack/unpack
alignment.
* src/glc_glx_surface.c (glc_glx_surface_swap_buffers): Added
glFlush before glXSwapBuffers.
2003-12-03 David Reveman <c99drn@cs.umu.se>
* src/glc_texture.c: Internal texture format fixed.
* src/glc_util.c: New transformation model.
* src/glcint.h: New transformation model.
* src/glc.c (glc_composite): New transformation model.
(glc_composite): Set color mask.
(glc_composite): glCopyTexSubImage Y offset fix.
(glc_composite): Render to offscreen fix.
* src/glc_surface.c (glc_surface_setup_environment): Set polygon mode.
(glc_surface_set_transform): New transformation model.
* src/glc_tri.c (glc_color_triangles): glCopyTexSubImage Y offset fix.
* src/glc_trap.c (glc_color_trapezoids): glCopyTexSubImage Y offset
fix.
* src/glc_glx_surface.c (glc_glx_surface_draw_pixels): Texture Y
offset fix.
2003-12-01 David Reveman <c99drn@cs.umu.se>
* src/glc.c (glc_composite): Only pop matrix if transformations has
been used.
* src/glc_tri.c (glc_color_triangles): Removed unwanted
transformations.
* src/glc_trap.c (glc_color_trapezoids): Removed unwanted
transformations.
* src/glc_rect.c: Removed unwanted transformations.
* src/glc.c (glc_composite): Removed unwanted transformations.
* src/glc_surface.c: Added disable/enable transform functions.
* src/glcint.h: Added disable/enable transform functions.
2003-11-27 David Reveman <c99drn@cs.umu.se>
* src/glc_glx_info.c (glc_glx_thread_info_get): Type fix for not thread
safe building.
* src/glc_glx_context.c: Use XID instead of GLXFBConfigID.
* src/glc_glxint.h: Use XID instead of GLXFBConfigID.
|