Compare commits
	
		
			410 Commits
		
	
	
		
			22.3
			...
			mesa_7_0_3
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 48616e71d2 | ||
|  | 70d227ac62 | ||
|  | 7f2c4f96f5 | ||
|  | 667f0f60fc | ||
|  | 7592b8cc10 | ||
|  | f55b831859 | ||
|  | 217f7f7e5d | ||
|  | 1e83d70b6d | ||
|  | 767dfa5b9c | ||
|  | 7ff5b38126 | ||
|  | e209f5300d | ||
|  | 3c4b50c352 | ||
|  | 4e7c2fcf18 | ||
|  | 22534f94f5 | ||
|  | 1a6928fdbe | ||
|  | 325dbbac47 | ||
|  | 39ac6b0481 | ||
|  | 46cc4854e9 | ||
|  | f93882512e | ||
|  | 0dee2a4f6f | ||
|  | 3cebc35669 | ||
|  | e75a204fb9 | ||
|  | ac06a5c16a | ||
|  | ed758fee0c | ||
|  | a21c61ee8b | ||
|  | 24697da20e | ||
|  | 7120c0089d | ||
|  | 88a436a8f7 | ||
|  | 2fdb5a245d | ||
|  | 8441b53538 | ||
|  | d336df8b73 | ||
|  | 8aaf805b8a | ||
|  | 8161fd2785 | ||
|  | 2f23025dfe | ||
|  | 1867eac230 | ||
|  | 096e35d05f | ||
|  | 8998f52b97 | ||
|  | 0fd38dcc83 | ||
|  | ff63cf8068 | ||
|  | 4716670de9 | ||
|  | 33c5b38034 | ||
|  | 5737d6c565 | ||
|  | 08a7f56c6a | ||
|  | 7916f2b4aa | ||
|  | 193d303ac7 | ||
|  | e70609b7b8 | ||
|  | da476ff02d | ||
|  | 77e3b5d28b | ||
|  | bf97ca448c | ||
|  | c5f8ff8b32 | ||
|  | 50465766d1 | ||
|  | 7d8df58a63 | ||
|  | 762c074012 | ||
|  | 51f2ee3bfb | ||
|  | b5cd34aa21 | ||
|  | ae5c6dcd42 | ||
|  | 97196d0c8c | ||
|  | f6de56b88a | ||
|  | d64ea43b76 | ||
|  | 2deaf93d24 | ||
|  | a107ec8300 | ||
|  | 120a1f9508 | ||
|  | bb84007a57 | ||
|  | 86234e55a6 | ||
|  | 61972077cd | ||
|  | 5a7feb8ea2 | ||
|  | 4b4c131cd0 | ||
|  | 0fd23f01c6 | ||
|  | 557b0d9df7 | ||
|  | 888f4380cf | ||
|  | 3266c5e95a | ||
|  | 834decdaae | ||
|  | 18b2d83173 | ||
|  | 30c65c3c62 | ||
|  | 04fcc4cf1e | ||
|  | 48ae5cf09d | ||
|  | 45cdb6eb45 | ||
|  | b9f3f732aa | ||
|  | 17006ddd6b | ||
|  | b77a354df3 | ||
|  | 71d46beebf | ||
|  | 454e296eb1 | ||
|  | f9b696be2b | ||
|  | c923edbc71 | ||
|  | e20c1d987f | ||
|  | cd354eb10f | ||
|  | e9ac27ee23 | ||
|  | 3f9dc9f5b6 | ||
|  | ba709875ae | ||
|  | 80f8397b35 | ||
|  | b45fa27fa1 | ||
|  | b59480645d | ||
|  | 148cb36979 | ||
|  | c1eb78f7ff | ||
|  | 8aa0fd6b20 | ||
|  | a1b3a908f5 | ||
|  | f9e70d951a | ||
|  | 41ed6be1da | ||
|  | 27de28fc3e | ||
|  | dd2f01c229 | ||
|  | deb5c56c77 | ||
|  | 0107acded0 | ||
|  | 2ac5e08d1d | ||
|  | 1837b8c214 | ||
|  | 03d2bc1774 | ||
|  | 385bddbde0 | ||
|  | c135426267 | ||
|  | 4be0c98120 | ||
|  | e760aebd5a | ||
|  | 1f6e7d9c29 | ||
|  | c6d421af05 | ||
|  | 952df5e493 | ||
|  | 45acb8b058 | ||
|  | e8997c0183 | ||
|  | 169e62f563 | ||
|  | 1b43babfb1 | ||
|  | 43e902f774 | ||
|  | b0a800e249 | ||
|  | 73d5f232ad | ||
|  | f7209541e4 | ||
|  | 397a32dca7 | ||
|  | e0719d7122 | ||
|  | 3f18c0a9f2 | ||
|  | b14be61938 | ||
|  | 440d620308 | ||
|  | 8dd9df0f3e | ||
|  | 6b9534eaf5 | ||
|  | c91d374ad7 | ||
|  | 1cab4160bc | ||
|  | 718d2dfbbd | ||
|  | 0967e1270d | ||
|  | a08c02f1a8 | ||
|  | bdfd9afead | ||
|  | 1c91a590d6 | ||
|  | 65bd7968bf | ||
|  | 6ccd23b87b | ||
|  | 823409b7d0 | ||
|  | c85d31f4a0 | ||
|  | 24af5c44da | ||
|  | 75efacf8eb | ||
|  | 825e810247 | ||
|  | e20723cfc1 | ||
|  | 9f39a67c1d | ||
|  | 2044f3f791 | ||
|  | 30d4e8c422 | ||
|  | 92d552f6a2 | ||
|  | 5adfcbbc4f | ||
|  | 69969b3819 | ||
|  | edfee04fcb | ||
|  | 28c9930888 | ||
|  | e3a35a123e | ||
|  | 412168f2e8 | ||
|  | fc0fa0d636 | ||
|  | 8a40b670c3 | ||
|  | d9fa5cbfc9 | ||
|  | 1c21564292 | ||
|  | 6cc96bf156 | ||
|  | 29afd4bbc4 | ||
|  | 4e3db063ec | ||
|  | 6560744c38 | ||
|  | 572ad87881 | ||
|  | 2ab75d6cfa | ||
|  | 041a8eb5ec | ||
|  | c1c13bdcfa | ||
|  | 403edd34dd | ||
|  | f279e48416 | ||
|  | bf854d8d27 | ||
|  | f334121679 | ||
|  | b88e2be609 | ||
|  | 08229c8bb8 | ||
|  | c984017f71 | ||
|  | 00e7dd8a13 | ||
|  | d11b375b16 | ||
|  | d1afa8146f | ||
|  | 31d4ba8a93 | ||
|  | 1a7640958c | ||
|  | 2e2a5a450b | ||
|  | 574fd63ff0 | ||
|  | 1063d47526 | ||
|  | b59a892d3e | ||
|  | 6e5d5d77df | ||
|  | a6319d18cf | ||
|  | 5103e883fd | ||
|  | 98c4ea4b24 | ||
|  | 29b8cac7d7 | ||
|  | cdb02d43fe | ||
|  | 50cecddc4a | ||
|  | 177f6398e5 | ||
|  | 887bd6a46f | ||
|  | 9af5153410 | ||
|  | 0e2103689e | ||
|  | 2c496d8e46 | ||
|  | 8f0ba02e44 | ||
|  | 524c56e417 | ||
|  | 773f3a266c | ||
|  | 882ada0d22 | ||
|  | 6229005f93 | ||
|  | 6c63b35ef7 | ||
|  | fb85e50e09 | ||
|  | 5e5f908d0c | ||
|  | c09e2143c7 | ||
|  | 74ced1e67f | ||
|  | dd02c1609e | ||
|  | cdf4880a79 | ||
|  | 2ec8e8547d | ||
|  | b7c36d1d33 | ||
|  | 970d18a708 | ||
|  | 9456e7f0ff | ||
|  | a5db24adc2 | ||
|  | 17664e2620 | ||
|  | 43a0eb0253 | ||
|  | bcdaed2c0a | ||
|  | 78c6637db5 | ||
|  | 44214a98fd | ||
|  | 9cc6d2310c | ||
|  | 1a045954be | ||
|  | b3fc9a1585 | ||
|  | 2a86a449ca | ||
|  | 44f032db61 | ||
|  | 5a520729ee | ||
|  | 36fbe78c60 | ||
|  | 029bb17770 | ||
|  | 7958bee6be | ||
|  | 0b9bb21ce4 | ||
|  | cfcc5b794e | ||
|  | 925ff408a6 | ||
|  | f40ca444f5 | ||
|  | 638a5e0382 | ||
|  | 6d777bf055 | ||
|  | ae6d4e8bc0 | ||
|  | f2728724d3 | ||
|  | bc95b34cce | ||
|  | 9eb89616af | ||
|  | f7713a6d81 | ||
|  | 1cec9b727a | ||
|  | 18a4730f5b | ||
|  | 1342aefcdd | ||
|  | 1fd4b1e702 | ||
|  | 32dff44c28 | ||
|  | e7c2ae476a | ||
|  | a66301f83d | ||
|  | a5f7d56221 | ||
|  | 140080c1ec | ||
|  | ef43af6d43 | ||
|  | 949d0532f0 | ||
|  | 96efc76d74 | ||
|  | 6ca0d63692 | ||
|  | 95fc2485e2 | ||
|  | d6ce1e4834 | ||
|  | 2cc2b12fc7 | ||
|  | 2259f81cf7 | ||
|  | 791f12880f | ||
|  | 7aa7373a64 | ||
|  | 2f186a190f | ||
|  | 357893a873 | ||
|  | a17881da5f | ||
|  | 4872ee83a9 | ||
|  | 5ec222a832 | ||
|  | 40438b3440 | ||
|  | e0b80660c8 | ||
|  | a2016301f5 | ||
|  | 7ec6729fb6 | ||
|  | 837a2cf72e | ||
|  | 0adca14536 | ||
|  | 57b0f66c6d | ||
|  | e47e7a9571 | ||
|  | 68ca01560f | ||
|  | 64f1c91fcb | ||
|  | 7d33f94198 | ||
|  | d69a596193 | ||
|  | 8aa4ae638e | ||
|  | 3069f34841 | ||
|  | b3788a0e4f | ||
|  | 582bc029ab | ||
|  | e9e3099433 | ||
|  | 4fc561cc7b | ||
|  | ad3e3a0b99 | ||
|  | bfb8c849cb | ||
|  | 09dd25b5d1 | ||
|  | c48efb1dbe | ||
|  | 5408acb6b7 | ||
|  | 15481160f9 | ||
|  | 00ccff03a5 | ||
|  | 21594921b1 | ||
|  | 42c91eebc9 | ||
|  | 88273e08b4 | ||
|  | 08f7fb45ef | ||
|  | 75ebda3ce6 | ||
|  | 53ff15fcbf | ||
|  | 72adb70ee2 | ||
|  | 960d41fcfe | ||
|  | 0c4e35b070 | ||
|  | c53f1cb813 | ||
|  | f6696cc15e | ||
|  | fef9a41fe4 | ||
|  | e279a0a076 | ||
|  | 88c8aaed96 | ||
|  | 62cbbd7226 | ||
|  | f7cbe7fcee | ||
|  | d8e4ff9079 | ||
|  | 510ff27eda | ||
|  | 5abf055100 | ||
|  | 4bb5721f6b | ||
|  | c41ab70d3a | ||
|  | a05e403bf2 | ||
|  | 2f57e0f71d | ||
|  | 95a2eb9767 | ||
|  | 55175daed7 | ||
|  | ae16a51e95 | ||
|  | 4398d67546 | ||
|  | c93738687c | ||
|  | 799492e606 | ||
|  | f33ff071bb | ||
|  | 99e854743c | ||
|  | 6f79062d91 | ||
|  | 2f682c3995 | ||
|  | 067370e68f | ||
|  | 2aa439a6a4 | ||
|  | b477182dc3 | ||
|  | a8964ca89e | ||
|  | 4f0e92d07c | ||
|  | 577f4e8a5f | ||
|  | 0586d9fe56 | ||
|  | 1f0d9bf05e | ||
|  | 8bcae2a527 | ||
|  | 35ca9aae91 | ||
|  | 6cdd2bf8d7 | ||
|  | ce7d175adb | ||
|  | 1904fd095f | ||
|  | 897d0ac5cc | ||
|  | e262d0182f | ||
|  | aa5b748c10 | ||
|  | 3c182c5bc8 | ||
|  | 1b5677847b | ||
|  | 1be59a9dbe | ||
|  | 55c2178ad4 | ||
|  | 3e3d392e1c | ||
|  | 756a7a4e4b | ||
|  | 121b4ac220 | ||
|  | cdbd5db3af | ||
|  | b2240f6ad4 | ||
|  | 33814a55f8 | ||
|  | a57c5a417b | ||
|  | ff1a28de17 | ||
|  | 772f57f99b | ||
|  | dacee32b8b | ||
|  | fa1a3eb06d | ||
|  | bd4817ca54 | ||
|  | 005eea249c | ||
|  | 9747de8ec6 | ||
|  | 849a9799d0 | ||
|  | e32ae4fe33 | ||
|  | 4595389c4c | ||
|  | e8ccc7cc49 | ||
|  | 673d21047a | ||
|  | fdefc2bbda | ||
|  | 2079df8527 | ||
|  | b53659452c | ||
|  | 46f1d6653e | ||
|  | c1938a60f7 | ||
|  | d65110f352 | ||
|  | 9fa3bbcb5a | ||
|  | 99d62f2922 | ||
|  | 284743cafe | ||
|  | 08d7307b2a | ||
|  | ef6a64abe6 | ||
|  | 18bfa52ef7 | ||
|  | d62be2652c | ||
|  | ea53ff80af | ||
|  | feeca1bcbc | ||
|  | 12e7278c08 | ||
|  | 45b5c44eb9 | ||
|  | e3456c1028 | ||
|  | 327fb38573 | ||
|  | 1d25d9e15f | ||
|  | cc7cee3f48 | ||
|  | d7062710cd | ||
|  | 9bfba734d8 | ||
|  | aaebf2f47e | ||
|  | 23f8d77b38 | ||
|  | 87d22ee0fe | ||
|  | 52e25f63d4 | ||
|  | f3fb67972b | ||
|  | 6400756364 | ||
|  | d59f0314bd | ||
|  | 131baefac3 | ||
|  | a450078b67 | ||
|  | f6b041bf6c | ||
|  | 4f340d181a | ||
|  | b58e38e936 | ||
|  | 8713cb48a8 | ||
|  | 277c5e57ed | ||
|  | b3d62d5af5 | ||
|  | 9c0f0c8d81 | ||
|  | 18a0a2a7ac | ||
|  | 8b99d9e33c | ||
|  | 01e7e153e3 | ||
|  | 0ad4ca24d2 | ||
|  | 724a155552 | ||
|  | d38b74a316 | ||
|  | 54cab4b47b | ||
|  | c093666bc5 | ||
|  | 04972f6761 | ||
|  | 67f8234622 | ||
|  | 201d6dbd9c | ||
|  | fbcac5aa83 | ||
|  | 2b72ab8f8f | ||
|  | 0ea97b9408 | ||
|  | 28683ac7c0 | ||
|  | c72e3e210f | 
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -2,6 +2,7 @@ | ||||
| *.o | ||||
| *.so | ||||
| *.sw[a-z] | ||||
| *.pc | ||||
| *~ | ||||
| depend | ||||
| depend.bak | ||||
|   | ||||
							
								
								
									
										39
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										39
									
								
								Makefile
									
									
									
									
									
								
							| @@ -67,10 +67,14 @@ aix-64-static \ | ||||
| aix-gcc \ | ||||
| aix-static \ | ||||
| beos \ | ||||
| bluegene-osmesa \ | ||||
| bluegene-xlc-osmesa \ | ||||
| catamount-osmesa-pgi \ | ||||
| darwin \ | ||||
| darwin-fat-32bit \ | ||||
| darwin-fat-all \ | ||||
| darwin-static \ | ||||
| darwin-static-x86ppc \ | ||||
| darwin-x86ppc \ | ||||
| freebsd \ | ||||
| freebsd-dri \ | ||||
| freebsd-dri-amd64 \ | ||||
| @@ -151,8 +155,9 @@ sunos5-v8 \ | ||||
| sunos5-v8-static \ | ||||
| sunos5-v9 \ | ||||
| sunos5-v9-static \ | ||||
| sunos5-v9-cc-g++ \ | ||||
| ultrix-gcc: | ||||
| 	@ if [ -e configs/current ] ; then \ | ||||
| 	@ if test -f configs/current || test -L configs/current ; then \ | ||||
| 		echo "Please run 'make realclean' before changing configs" ; \ | ||||
| 		exit 1 ; \ | ||||
| 	fi | ||||
| @@ -162,10 +167,10 @@ ultrix-gcc: | ||||
|  | ||||
| # Rules for making release tarballs | ||||
|  | ||||
| DIRECTORY = Mesa-7.1pre | ||||
| LIB_NAME = MesaLib-7.1pre | ||||
| DEMO_NAME = MesaDemos-7.1pre | ||||
| GLUT_NAME = MesaGLUT-7.1pre | ||||
| DIRECTORY = Mesa-7.0.3 | ||||
| LIB_NAME = MesaLib-7.0.3 | ||||
| DEMO_NAME = MesaDemos-7.0.3 | ||||
| GLUT_NAME = MesaGLUT-7.0.3 | ||||
|  | ||||
| MAIN_FILES = \ | ||||
| 	$(DIRECTORY)/Makefile*						\ | ||||
| @@ -209,6 +214,7 @@ MAIN_FILES = \ | ||||
| 	$(DIRECTORY)/src/mesa/Makefile*					\ | ||||
| 	$(DIRECTORY)/src/mesa/sources					\ | ||||
| 	$(DIRECTORY)/src/mesa/descrip.mms				\ | ||||
| 	$(DIRECTORY)/src/mesa/gl.pc.in					\ | ||||
| 	$(DIRECTORY)/src/mesa/depend					\ | ||||
| 	$(DIRECTORY)/src/mesa/main/*.[chS]				\ | ||||
| 	$(DIRECTORY)/src/mesa/main/descrip.mms				\ | ||||
| @@ -288,17 +294,6 @@ MAIN_FILES = \ | ||||
| 	$(DIRECTORY)/vms/analyze_map.com				\ | ||||
| 	$(DIRECTORY)/vms/xlib.opt					\ | ||||
| 	$(DIRECTORY)/vms/xlib_share.opt					\ | ||||
| 	$(DIRECTORY)/windows/VC6/mesa/gdi/gdi.dsp			\ | ||||
| 	$(DIRECTORY)/windows/VC6/mesa/glu/*.txt				\ | ||||
| 	$(DIRECTORY)/windows/VC6/mesa/glu/glu.dsp			\ | ||||
| 	$(DIRECTORY)/windows/VC6/mesa/mesa.dsw				\ | ||||
| 	$(DIRECTORY)/windows/VC6/mesa/mesa/mesa.dsp			\ | ||||
| 	$(DIRECTORY)/windows/VC6/mesa/osmesa/osmesa.dsp			\ | ||||
| 	$(DIRECTORY)/windows/VC7/mesa/gdi/gdi.vcproj			\ | ||||
| 	$(DIRECTORY)/windows/VC7/mesa/glu/glu.vcproj			\ | ||||
| 	$(DIRECTORY)/windows/VC7/mesa/mesa.sln				\ | ||||
| 	$(DIRECTORY)/windows/VC7/mesa/mesa/mesa.vcproj			\ | ||||
| 	$(DIRECTORY)/windows/VC7/mesa/osmesa/osmesa.vcproj		\ | ||||
| 	$(DIRECTORY)/windows/VC8/mesa/mesa.sln				\ | ||||
| 	$(DIRECTORY)/windows/VC8/mesa/gdi/gdi.vcproj			\ | ||||
| 	$(DIRECTORY)/windows/VC8/mesa/glu/glu.vcproj			\ | ||||
| @@ -327,7 +322,9 @@ DRI_FILES = \ | ||||
| SGI_GLU_FILES = \ | ||||
| 	$(DIRECTORY)/src/glu/Makefile					\ | ||||
| 	$(DIRECTORY)/src/glu/descrip.mms				\ | ||||
| 	$(DIRECTORY)/src/glu/glu.pc.in					\ | ||||
| 	$(DIRECTORY)/src/glu/sgi/Makefile				\ | ||||
| 	$(DIRECTORY)/src/glu/sgi/Makefile.mgw				\ | ||||
| 	$(DIRECTORY)/src/glu/sgi/Makefile.win				\ | ||||
| 	$(DIRECTORY)/src/glu/sgi/Makefile.DJ				\ | ||||
| 	$(DIRECTORY)/src/glu/sgi/glu.def				\ | ||||
| @@ -359,6 +356,7 @@ GLW_FILES = \ | ||||
| 	$(DIRECTORY)/src/glw/*.[ch]			\ | ||||
| 	$(DIRECTORY)/src/glw/Makefile*			\ | ||||
| 	$(DIRECTORY)/src/glw/README			\ | ||||
| 	$(DIRECTORY)/src/glw/glw.pc.in			\ | ||||
| 	$(DIRECTORY)/src/glw/depend | ||||
|  | ||||
| DEMO_FILES = \ | ||||
| @@ -372,6 +370,8 @@ DEMO_FILES = \ | ||||
| 	$(DIRECTORY)/progs/demos/*.cxx			\ | ||||
| 	$(DIRECTORY)/progs/demos/*.dat			\ | ||||
| 	$(DIRECTORY)/progs/demos/README			\ | ||||
| 	$(DIRECTORY)/progs/fbdev/Makefile		\ | ||||
| 	$(DIRECTORY)/progs/fbdev/glfbdevtest.c		\ | ||||
| 	$(DIRECTORY)/progs/osdemos/Makefile		\ | ||||
| 	$(DIRECTORY)/progs/osdemos/*.c			\ | ||||
| 	$(DIRECTORY)/progs/xdemos/Makefile*		\ | ||||
| @@ -400,6 +400,7 @@ GLUT_FILES = \ | ||||
| 	$(DIRECTORY)/include/GL/glutf90.h		\ | ||||
| 	$(DIRECTORY)/src/glut/glx/Makefile*		\ | ||||
| 	$(DIRECTORY)/src/glut/glx/depend		\ | ||||
| 	$(DIRECTORY)/src/glut/glx/glut.pc.in		\ | ||||
| 	$(DIRECTORY)/src/glut/glx/*def			\ | ||||
| 	$(DIRECTORY)/src/glut/glx/descrip.mms		\ | ||||
| 	$(DIRECTORY)/src/glut/glx/mms_depend		\ | ||||
| @@ -415,6 +416,10 @@ GLUT_FILES = \ | ||||
| 	$(DIRECTORY)/src/glut/fbdev/Makefile		\ | ||||
| 	$(DIRECTORY)/src/glut/fbdev/*[ch]		\ | ||||
| 	$(DIRECTORY)/src/glut/mini/*[ch]		\ | ||||
| 	$(DIRECTORY)/src/glut/mini/glut.pc.in		\ | ||||
| 	$(DIRECTORY)/src/glut/directfb/Makefile		\ | ||||
| 	$(DIRECTORY)/src/glut/directfb/NOTES		\ | ||||
| 	$(DIRECTORY)/src/glut/directfb/*[ch]		\ | ||||
| 	$(DIRECTORY)/windows/VC6/progs/glut/glut.dsp	\ | ||||
| 	$(DIRECTORY)/windows/VC7/progs/glut/glut.vcproj | ||||
|  | ||||
|   | ||||
							
								
								
									
										28
									
								
								Makefile.mgw
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								Makefile.mgw
									
									
									
									
									
								
							| @@ -51,37 +51,59 @@ | ||||
| #	realclean:	remove all generated files | ||||
| # | ||||
|  | ||||
| # MinGW core makefile updated for Mesa 7.0 | ||||
| # | ||||
| #  Updated : by Heromyth, on 2007-7-21 | ||||
| #  Email   : zxpmyth@yahoo.com.cn | ||||
| #  Bugs    : 1) All the default settings work fine. But the setting X86=1 can't work.  | ||||
| #            The others havn't been tested yet. | ||||
| #            2) The generated DLLs are *not* compatible with the ones built | ||||
| #            with the other compilers like VC8, especially for GLUT.  | ||||
| #            3) MAlthough more tests are needed, it can be used individually! | ||||
|  | ||||
|  | ||||
| .PHONY : all libgl clean realclean | ||||
|  | ||||
| ifeq ($(ICD),1) | ||||
|   # when -std=c99 mingw will not define WIN32 | ||||
|   CFLAGS = -Wall -W -Werror | ||||
|   CFLAGS = -Wall -Werror | ||||
| else | ||||
|   # I love c89 | ||||
|   CFLAGS = -Wall -W -pedantic | ||||
|   CFLAGS = -Wall -pedantic | ||||
| endif | ||||
| CFLAGS += -O2 -ffast-math | ||||
|  | ||||
| export CFLAGS | ||||
|  | ||||
|  | ||||
| ifeq ($(wildcard $(addsuffix /rm.exe,$(subst ;, ,$(PATH)))),) | ||||
| UNLINK = del $(subst /,\,$(1)) | ||||
| else | ||||
| UNLINK = $(RM) $(1) | ||||
| endif | ||||
|  | ||||
| all: libgl | ||||
| all: libgl libglu libglut example | ||||
|  | ||||
| libgl: lib | ||||
| 	$(MAKE) -f Makefile.mgw -C src/mesa | ||||
|  | ||||
| libglu: libgl | ||||
| 	$(MAKE) -f Makefile.mgw -C src/glu/sgi | ||||
|  | ||||
| libglut: libglu  | ||||
| 	$(MAKE) -f Makefile.mgw -C src/glut/glx | ||||
|  | ||||
| example: libglut  | ||||
| 	$(MAKE) -f Makefile.mgw star -C progs/samples | ||||
| 	copy progs\samples\star.exe lib | ||||
|  | ||||
| lib: | ||||
| 	mkdir lib | ||||
|  | ||||
| clean: | ||||
| 	$(MAKE) -f Makefile.mgw clean -C src/mesa | ||||
| 	$(MAKE) -f Makefile.mgw clean -C src/glu/sgi | ||||
| 	$(MAKE) -f Makefile.mgw clean -C src/glut/glx | ||||
|  | ||||
| realclean: clean | ||||
| 	-$(call UNLINK,lib/*.a) | ||||
|   | ||||
							
								
								
									
										132
									
								
								bin/mklib
									
									
									
									
									
								
							
							
						
						
									
										132
									
								
								bin/mklib
									
									
									
									
									
								
							| @@ -34,6 +34,7 @@ MINOR=0 | ||||
| PATCH="" | ||||
| DEPS="" | ||||
| LINK="" | ||||
| LDFLAGS="" | ||||
| CPLUSPLUS=0 | ||||
| STATIC=0 | ||||
| DLOPEN=0 | ||||
| @@ -63,12 +64,14 @@ do | ||||
| 	    echo '  -LDIR         search in DIR for library dependencies' | ||||
| 	    echo '  -linker L     explicity specify the linker program to use (eg: gcc, g++)' | ||||
| 	    echo '                Not observed on all systems at this time.' | ||||
| 	    echo '  -ldflags OPT  specify any additional linker flags in OPT' | ||||
| 	    echo '  -cplusplus    link with C++ runtime' | ||||
| 	    echo '  -static       make a static library (default is dynamic/shared)' | ||||
| 	    echo '  -dlopen       make a shared library suitable for dynamic loading' | ||||
| 	    echo '  -install DIR  put resulting library file(s) in DIR' | ||||
| 	    echo '  -arch ARCH    override using `uname` to determine host system' | ||||
| 	    echo '  -archopt OPT  specify an extra achitecture-specific option OPT' | ||||
| 	    echo '  -altopts OPTS alternate options to override all others' | ||||
| 	    echo "  -noprefix     don't prefix library name with 'lib' nor add any suffix" | ||||
| 	    echo '  -exports FILE only export the symbols listed in FILE' | ||||
| 	    echo '  -h, --help    display this information and exit' | ||||
| @@ -94,6 +97,10 @@ do | ||||
| 	    shift 1; | ||||
| 	    LINK=$1 | ||||
| 	    ;; | ||||
| 	'-ldflags') | ||||
| 	    shift 1; | ||||
| 	    LDFLAGS=$1 | ||||
| 	    ;; | ||||
| 	-l*) | ||||
| 	    DEPS="$DEPS $1" | ||||
| 	    ;; | ||||
| @@ -104,6 +111,9 @@ do | ||||
| 	    # this is a special case (see bugzilla 10876) | ||||
| 	    DEPS="$DEPS $1" | ||||
| 	    ;; | ||||
| 	'-pthread') | ||||
| 	    DEPS="$DEPS -pthread" | ||||
| 	    ;; | ||||
| 	'-cplusplus') | ||||
| 	    CPLUSPLUS=1 | ||||
| 	    ;; | ||||
| @@ -125,6 +135,10 @@ do | ||||
| 	    shift 1; | ||||
| 	    ARCHOPT=$1 | ||||
| 	    ;; | ||||
| 	'-altopts') | ||||
|             shift 1; | ||||
|             ALTOPTS=$1 | ||||
|             ;; | ||||
| 	'-noprefix') | ||||
| 	    NOPREFIX=1 | ||||
| 	    ;; | ||||
| @@ -199,8 +213,13 @@ case $ARCH in | ||||
| 	if [ $NOPREFIX = 1 ] ; then | ||||
| 	    # No "lib" or ".so" part | ||||
| 	    echo "mklib: Making" $ARCH "shared library: " ${LIBNAME} | ||||
| 	    #OPTS="-shared -Wl,-soname,${LIBNAME}"  # soname??? | ||||
| 	    OPTS="-shared" | ||||
| 	    case $ARCH in 'Linux' | 'GNU' | GNU/*) | ||||
| 		OPTS="-Xlinker -Bsymbolic -shared" | ||||
| 	    ;; | ||||
| 	    *) | ||||
| 		OPTS="-shared" | ||||
| 	    ;; | ||||
| 	    esac | ||||
|  | ||||
| 	    # Check if objects are 32-bit and we're running in 64-bit | ||||
| 	    # environment.  If so, pass -m32 flag to linker. | ||||
| @@ -210,9 +229,13 @@ case $ARCH in | ||||
| 		OPTS="-m32 ${OPTS}" | ||||
| 	    fi | ||||
|  | ||||
|             if [ "${ALTOPTS}" ] ; then | ||||
|                 OPTS=${ALTOPTS} | ||||
|             fi | ||||
|  | ||||
|             rm -f ${LIBNAME} | ||||
|             # make lib | ||||
|             ${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS} | ||||
|             ${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS} | ||||
|             # finish up | ||||
|             FINAL_LIBS="${LIBNAME}" | ||||
|         elif [ $STATIC = 1 ] ; then | ||||
| @@ -220,6 +243,9 @@ case $ARCH in | ||||
|             echo "mklib: Making" $ARCH "static library: " ${LIBNAME} | ||||
|             LINK="ar" | ||||
|             OPTS="-ru" | ||||
|             if [ "${ALTOPTS}" ] ; then | ||||
|                 OPTS=${ALTOPTS} | ||||
|             fi | ||||
|             rm -f ${LIBNAME} | ||||
|             # make lib | ||||
|             ${LINK} ${OPTS} ${LIBNAME} ${OBJECTS} | ||||
| @@ -255,6 +281,9 @@ case $ARCH in | ||||
| 	    if [ "${ABI32}" -a `uname -m` = "x86_64" ] ; then | ||||
| 		OPTS="-m32 ${OPTS}" | ||||
| 	    fi | ||||
|             if [ "${ALTOPTS}" ] ; then | ||||
|                 OPTS=${ALTOPTS} | ||||
|             fi | ||||
|  | ||||
| 	    if [ x${PATCH} = "x" ] ; then | ||||
| 		VERSION="${MAJOR}.${MINOR}" | ||||
| @@ -270,7 +299,7 @@ case $ARCH in | ||||
|             rm -f ${LIBNAME}.so | ||||
|  | ||||
|             # make lib | ||||
|             ${LINK} ${OPTS} -o ${LIBNAME}.so.${VERSION} ${OBJECTS} ${DEPS} | ||||
|             ${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME}.so.${VERSION} ${OBJECTS} ${DEPS} | ||||
|             # make usual symlinks | ||||
|             ln -s ${LIBNAME}.so.${VERSION} ${LIBNAME}.so.${MAJOR} | ||||
|             ln -s ${LIBNAME}.so.${MAJOR} ${LIBNAME}.so | ||||
| @@ -337,15 +366,17 @@ case $ARCH in | ||||
| 	    if [ "${SPARCV9}" ] ; then | ||||
| 		OPTS="${OPTS} -xarch=v9" | ||||
| 	    fi | ||||
|  | ||||
|             if [ "${ALTOPTS}" ] ; then | ||||
|                 OPTS=${ALTOPTS} | ||||
|             fi | ||||
| 	    # for debug: | ||||
| 	    #echo "mklib: linker is" ${LINK} ${OPTS} | ||||
| 	    if [ $NOPREFIX = 1 ] ; then | ||||
| 		rm -f ${LIBNAME} | ||||
| 		${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS} | ||||
| 		${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS} | ||||
| 	    else | ||||
| 		rm -f ${LIBNAME}.${MAJOR} ${LIBNAME} | ||||
| 		${LINK} ${OPTS} -o ${LIBNAME}.${MAJOR} ${OBJECTS} ${DEPS} | ||||
| 		${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME}.${MAJOR} ${OBJECTS} ${DEPS} | ||||
| 		ln -s ${LIBNAME}.${MAJOR} ${LIBNAME} | ||||
| 	    fi | ||||
| 	    FINAL_LIBS="${LIBNAME}.${MAJOR} ${LIBNAME}" | ||||
| @@ -368,8 +399,11 @@ case $ARCH in | ||||
| 	    # No "lib" or ".so" part | ||||
| 	    echo "mklib: Making FreeBSD shared library: " ${LIBNAME} | ||||
| 	    OPTS="-shared" | ||||
|             if [ "${ALTOPTS}" ] ; then | ||||
|                 OPTS=${ALTOPTS} | ||||
|             fi | ||||
| 	    rm -f ${LIBNAME} | ||||
| 	    ${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS} | ||||
| 	    ${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS} | ||||
| 	    FINAL_LIBS=${LIBNAME} | ||||
|         elif [ $STATIC = 1 ] ; then | ||||
| 	    STLIB="lib${LIBNAME}.a" | ||||
| @@ -381,9 +415,12 @@ case $ARCH in | ||||
| 	else | ||||
| 	    SHLIB="lib${LIBNAME}.so.${MAJOR}" | ||||
| 	    OPTS="-shared -Wl,-soname,${SHLIB}" | ||||
|             if [ "${ALTOPTS}" ] ; then | ||||
|                 OPTS=${ALTOPTS} | ||||
|             fi | ||||
| 	    echo "mklib: Making FreeBSD shared library: " ${SHLIB} | ||||
| 	    rm -f ${SHLIB} | ||||
| 	    ${LINK} ${OPTS} -o ${SHLIB} ${OBJECTS} ${DEPS} | ||||
| 	    ${LINK} ${OPTS} ${LDFLAGS} -o ${SHLIB} ${OBJECTS} ${DEPS} | ||||
| 	    ln -sf ${SHLIB} "lib${LIBNAME}.so" | ||||
| 	    FINAL_LIBS="${SHLIB} lib${LIBNAME}.so" | ||||
| 	fi | ||||
| @@ -434,6 +471,10 @@ case $ARCH in | ||||
| 		exit 1 | ||||
| 	    fi | ||||
|  | ||||
|             if [ "${ALTOPTS}" ] ; then | ||||
|                 OPTS=${ALTOPTS} | ||||
|             fi | ||||
|  | ||||
| 	    if [ $CPLUSPLUS = 1 ] ; then | ||||
| 		LINK="CC" | ||||
| 	    else | ||||
| @@ -441,7 +482,7 @@ case $ARCH in | ||||
| 	    fi | ||||
|  | ||||
| 	    echo "mklib: Making IRIX " ${ABI} " shared library: " ${LIBNAME} | ||||
| 	    ${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS} | ||||
| 	    ${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS} | ||||
| 	    FINAL_LIBS=${LIBNAME} | ||||
| 	fi | ||||
| 	;; | ||||
| @@ -514,12 +555,16 @@ case $ARCH in | ||||
| 		} | ||||
| 	    }' | sort -u >> ${EXPFILE} | ||||
|  | ||||
|             if [ "${ALTOPTS}" ] ; then | ||||
|                 OPTS=${ALTOPTS} | ||||
|             fi | ||||
|  | ||||
|             # On AIX a shared library is linked differently when | ||||
|             # you want to dlopen the file | ||||
| 	    if [ $DLOPEN = "1" ] ; then | ||||
| 		cc -G ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS} | ||||
| 		cc -G ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS} | ||||
| 	    else | ||||
| 		cc ${OPTS} -o ${OFILE} ${OBJECTS} ${DEPS} | ||||
| 		cc ${OPTS} ${LDFLAGS} -o ${OFILE} ${OBJECTS} ${DEPS} | ||||
| 		ar ${X64} -r ${LIBNAME} ${OFILE} | ||||
| 	    fi | ||||
|  | ||||
| @@ -565,6 +610,9 @@ case $ARCH in | ||||
|             echo "mklib: Making Darwin static library: " ${LIBNAME} | ||||
|             LINK="ar" | ||||
|             OPTS="-ruvs" | ||||
|             if [ "${ALTOPTS}" ] ; then | ||||
|                 OPTS=${ALTOPTS} | ||||
|             fi | ||||
|             ${LINK} ${OPTS} ${LIBNAME} ${OBJECTS} | ||||
|             FINAL_LIBS=${LIBNAME} | ||||
|         else | ||||
| @@ -576,19 +624,37 @@ case $ARCH in | ||||
| 		LIBSUFFIX="dylib" | ||||
|                 OPTS="${ARCHOPT} -dynamiclib -multiply_defined suppress -current_version ${MAJOR}.${MINOR}.0 -compatibility_version ${MAJOR}.${MINOR}.0 -install_name lib${LIBNAME}.${MAJOR}.${LIBSUFFIX}" | ||||
|             fi | ||||
|             LINKNAME="lib${LIBNAME}.${LIBSUFFIX}" | ||||
|             LIBNAME="lib${LIBNAME}.${MAJOR}.${LIBSUFFIX}" | ||||
|  | ||||
|             if [ ${EXPORTS} ] ; then | ||||
|                 OPTS="${OPTS} -exported_symbols_list ${EXPORTS}" | ||||
|             fi  | ||||
|  | ||||
|             LINKNAME="lib${LIBNAME}.${MAJOR}.${LIBSUFFIX}" | ||||
|             LINKNAME2="lib${LIBNAME}.${LIBSUFFIX}" | ||||
|             LIBNAME="lib${LIBNAME}.${MAJOR}.${MINOR}.${LIBSUFFIX}" | ||||
|  | ||||
| 	    # examine first object to determine ABI | ||||
|     	    set ${OBJECTS} | ||||
| 	    ABI_PPC=`file $1 | grep 'object ppc'` | ||||
| 	    ABI_I386=`file $1 | grep 'object i386'` | ||||
| 	    if [ "${ABI_PPC}" ] ; then | ||||
| 		OPTS="${OPTS} -arch ppc" | ||||
| 	    fi | ||||
| 	    if [ "${ABI_I386}" ] ; then | ||||
| 		OPTS="${OPTS} -arch i386" | ||||
| 	    fi | ||||
|             ABI_PPC=`file $1 | grep ' ppc'` | ||||
|             ABI_I386=`file $1 | grep ' i386'` | ||||
|             ABI_PPC64=`file $1 | grep ' ppc64'` | ||||
|             ABI_X86_64=`file $1 | grep ' x86_64'` | ||||
|             if [ "${ABI_PPC}" ] ; then | ||||
|                 OPTS="${OPTS} -arch ppc" | ||||
|             fi | ||||
|             if [ "${ABI_I386}" ] ; then | ||||
|                 OPTS="${OPTS} -arch i386" | ||||
|             fi | ||||
|             if [ "${ABI_PPC64}" ] ; then | ||||
|                 OPTS="${OPTS} -arch ppc64" | ||||
|             fi | ||||
|             if [ "${ABI_X86_64}" ] ; then | ||||
|                 OPTS="${OPTS} -arch x86_64" | ||||
|             fi | ||||
|  | ||||
|             if [ "${ALTOPTS}" ] ; then | ||||
|                 OPTS=${ALTOPTS} | ||||
|             fi | ||||
|  | ||||
| 	    # XXX can we always add -isysroot /Developer/SDKs/MacOSX10.4u.sdk | ||||
| 	    # to OPTS here? | ||||
| @@ -601,9 +667,11 @@ case $ARCH in | ||||
| 	    fi | ||||
|  | ||||
|             echo "mklib: Making Darwin shared library: " ${LIBNAME} | ||||
|             ${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS} | ||||
|  | ||||
|             ${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS} | ||||
|             ln -s ${LIBNAME} ${LINKNAME} | ||||
|             FINAL_LIBS="${LIBNAME} ${LINKNAME}" | ||||
|             ln -s ${LIBNAME} ${LINKNAME2} | ||||
|             FINAL_LIBS="${LIBNAME} ${LINKNAME} ${LINKNAME2}" | ||||
|         fi | ||||
|         ;; | ||||
|  | ||||
| @@ -655,6 +723,9 @@ case $ARCH in | ||||
|             echo "mklib: Making Intel ICC static library: " ${LIBNAME}.a | ||||
|             LINK="ar" | ||||
|             OPTS="-ruv" | ||||
|             if [ "${ALTOPTS}" ] ; then | ||||
|                 OPTS=${ALTOPTS} | ||||
|             fi | ||||
|             # make lib | ||||
|             ${LINK} ${OPTS} ${LIBNAME}.a ${OBJECTS} | ||||
|             # finish up | ||||
| @@ -665,6 +736,9 @@ case $ARCH in | ||||
|             else | ||||
|                  OPTS="-shared" | ||||
|             fi | ||||
|             if [ "${ALTOPTS}" ] ; then | ||||
|                 OPTS=${ALTOPTS} | ||||
|             fi | ||||
|             VERSION="${MAJOR}.${MINOR}.${PATCH}" | ||||
|             echo "mklib: Making Intel ICC shared library: " ${LIBNAME}.so.${VERSION} | ||||
|  | ||||
| @@ -678,7 +752,7 @@ case $ARCH in | ||||
|             rm -f ${LIBNAME}.so.${MAJOR} | ||||
|             rm -f ${LIBNAME}.so | ||||
|             # make lib | ||||
|             ${LINK} ${OPTS} -o ${LIBNAME}.so.${VERSION} ${OBJECTS} ${DEPS} | ||||
|             ${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME}.so.${VERSION} ${OBJECTS} ${DEPS} | ||||
|             # make usual symlinks | ||||
|             ln -s ${LIBNAME}.so.${VERSION} ${LIBNAME}.so.${MAJOR} | ||||
|             ln -s ${LIBNAME}.so.${MAJOR} ${LIBNAME}.so | ||||
| @@ -729,6 +803,9 @@ case $ARCH in | ||||
|             echo "mklib: Making" $ARCH "static library: " ${LIBNAME}.a | ||||
|             LINK="ar" | ||||
|             OPTS="-ru" | ||||
|             if [ "${ALTOPTS}" ] ; then | ||||
|                 OPTS=${ALTOPTS} | ||||
|             fi | ||||
|             # make lib | ||||
|             ${LINK} ${OPTS} ${LIBNAME}.a ${OBJECTS} | ||||
| 	    ranlib ${LIBNAME}.a | ||||
| @@ -736,6 +813,9 @@ case $ARCH in | ||||
|             FINAL_LIBS=${LIBNAME}.a | ||||
|         else | ||||
| 	    OPTS="-shared -Wl,-export-all -Wl,--out-implib=${LIBNAME}-${MAJOR}.dll.a" | ||||
|             if [ "${ALTOPTS}" ] ; then | ||||
|                 OPTS=${ALTOPTS} | ||||
|             fi | ||||
|             echo "mklib: Making" $ARCH "shared library: " ${LIBNAME}-${MAJOR}.dll | ||||
|  | ||||
|             if [ $CPLUSPLUS = 1 ] ; then | ||||
| @@ -750,7 +830,7 @@ case $ARCH in | ||||
|             rm -f ${LIBNAME}.a | ||||
|  | ||||
|             # make lib | ||||
|             ${LINK} ${OPTS} -o ${CYGNAME}-${MAJOR}.dll ${OBJECTS} ${DEPS} | ||||
|             ${LINK} ${OPTS} ${LDFLAGS} -o ${CYGNAME}-${MAJOR}.dll ${OBJECTS} ${DEPS} | ||||
|             # make usual symlinks | ||||
|             ln -s ${LIBNAME}-${MAJOR}.dll.a ${LIBNAME}.dll.a | ||||
|             # finish up | ||||
|   | ||||
| @@ -11,6 +11,10 @@ CXX = g++ | ||||
| CFLAGS = -O2 -DAIXV3 | ||||
| CXXFLAGS = -O2 -DAIXV3 | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| MKLIB_OPTIONS = -arch aix-gcc | ||||
| GL_LIB_DEPS = -lX11 -lXext -lm | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm | ||||
|   | ||||
| @@ -39,6 +39,10 @@ ifeq ($(CPU), x86) | ||||
|  | ||||
| 	CXXFLAGS = $(CFLAGS) | ||||
|  | ||||
| 	# Work around aliasing bugs - developers should comment this out | ||||
| 	CFLAGS += -fno-strict-aliasing | ||||
| 	CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| 	LDFLAGS += -Xlinker | ||||
|  | ||||
| 	ifdef DEBUG | ||||
|   | ||||
							
								
								
									
										33
									
								
								configs/bluegene-osmesa
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								configs/bluegene-osmesa
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,33 @@ | ||||
| # Configuration for building only libOSMesa on BlueGene, no Xlib driver | ||||
| # This doesn't really have a lot of dependencies, so it should be usable | ||||
| # on other (gcc-based) systems too. | ||||
| # It uses static linking and disables multithreading. | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = bluegene-osmesa | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = /bgl/BlueLight/ppcfloor/blrts-gnu/bin/powerpc-bgl-blrts-gnu-gcc | ||||
| CXX = /bgl/BlueLight/ppcfloor/blrts-gnu/bin/powerpc-bgl-blrts-gnu-g++ | ||||
| CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE | ||||
| CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURC | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| MKLIB_OPTIONS = -static | ||||
|  | ||||
| OSMESA_LIB_NAME = libOSMesa.a | ||||
|  | ||||
| # Directories | ||||
| SRC_DIRS = mesa glu | ||||
| DRIVER_DIRS = osmesa | ||||
| PROGRAM_DIRS = osdemos | ||||
|  | ||||
|  | ||||
| # Dependencies | ||||
| OSMESA_LIB_DEPS = -lm | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB) | ||||
| APP_LIB_DEPS = -lOSMesa -lGLU -lm | ||||
							
								
								
									
										29
									
								
								configs/bluegene-xlc-osmesa
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								configs/bluegene-xlc-osmesa
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| # Configuration for building only libOSMesa on BlueGene using the IBM xlc compiler | ||||
| # This doesn't really have a lot of dependencies, so it should be usable | ||||
| # on similar systems too. | ||||
| # It uses static linking and disables multithreading. | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = bluegene-osmesa | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = /opt/ibmcmp/vacpp/bg/8.0/bin/blrts_xlc | ||||
| CXX = /opt/ibmcmp/vacpp/bg/8.0/bin/blrts_xlC | ||||
| CFLAGS = -O3 -pedantic -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE | ||||
| CXXFLAGS = -O3 -pedantic -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE | ||||
|  | ||||
| MKLIB_OPTIONS = -static | ||||
|  | ||||
| OSMESA_LIB_NAME = libOSMesa.a | ||||
|  | ||||
| # Directories | ||||
| SRC_DIRS = mesa glu | ||||
| DRIVER_DIRS = osmesa | ||||
| PROGRAM_DIRS = osdemos | ||||
|  | ||||
|  | ||||
| # Dependencies | ||||
| OSMESA_LIB_DEPS = -lm | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB) | ||||
| APP_LIB_DEPS = -lOSMesa -lGLU -lm | ||||
							
								
								
									
										32
									
								
								configs/catamount-osmesa-pgi
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								configs/catamount-osmesa-pgi
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,32 @@ | ||||
| # Configuration for building only libOSMesa on Cray Xt3 | ||||
| # for the compute nodes running Catamount using the  | ||||
| # Portland Group compiler. The Portland Group toolchain has to be  | ||||
| # enabled before using "module switch PrgEnv-gnu PrgEnv-pgi" . | ||||
| # This doesn't really have a lot of dependencies, so it should be usable | ||||
| # on other similar systems too. | ||||
| # It uses static linking and disables multithreading. | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = catamount-osmesa-pgi | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = CC | ||||
| CFLAGS = -target=catamount -fastsse -O3 -Mnontemporal -Mprefetch=distance:8,nta   -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE | ||||
| CXXFLAGS = -target=catamount -fastsse -O3 -Mnontemporal -Mprefetch=distance:8,nta -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE | ||||
|  | ||||
| MKLIB_OPTIONS = -static | ||||
|  | ||||
| OSMESA_LIB_NAME = libOSMesa.a | ||||
|  | ||||
| # Directories | ||||
| SRC_DIRS = mesa glu | ||||
| DRIVER_DIRS = osmesa | ||||
| PROGRAM_DIRS = osdemos | ||||
|  | ||||
|  | ||||
| # Dependencies | ||||
| OSMESA_LIB_DEPS = -lm | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB) | ||||
| APP_LIB_DEPS = -lOSMesa -lGLU -lm | ||||
| @@ -4,11 +4,22 @@ include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = darwin | ||||
|  | ||||
| DEFINES = -D_DARWIN_C_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L \ | ||||
| 	  -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE \ | ||||
| 	  -DPTHREADS -DGLX_ALIAS_UNSUPPORTED -DGLX_INDIRECT_RENDERING | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = cc | ||||
| CFLAGS = -I/usr/X11R6/include -O3 -fPIC -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin | ||||
| CXXFLAGS = -I/usr/X11R6/include -O3 -fPIC -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin | ||||
| CC = gcc | ||||
| CXX = gcc | ||||
| CFLAGS = -I/usr/X11/include -O3 -fPIC -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin $(DEFINES) | ||||
| CXXFLAGS = -I/usr/X11/include -O3 -fPIC -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin $(DEFINES) | ||||
|  | ||||
| CFLAGS += $(RC_CFLAGS) | ||||
| CXXFLAGS += $(RC_CFLAGS) | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.dylib | ||||
| @@ -17,13 +28,13 @@ GLUT_LIB_NAME = libglut.dylib | ||||
| GLW_LIB_NAME = libGLw.dylib | ||||
| OSMESA_LIB_NAME = libOSMesa.dylib | ||||
|  | ||||
| GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread | ||||
| GL_LIB_DEPS = -L/usr/X11/lib -lX11 -lXext -lm -lpthread | ||||
| OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lGL | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lGL | ||||
| GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lGL -lGLU -L/usr/X11R6/lib -lX11 -lXmu -lXi -lXext | ||||
| GLW_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXt $(TOP)/lib/GL.dylib | ||||
| APP_LIB_DEPS = -L$(TOP)/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm | ||||
| APP_LIB_DEPS = -L$(TOP)/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11/lib -lX11 -lXmu -lXt -lXi -lm | ||||
|  | ||||
| # omit glw lib for now: | ||||
| SRC_DIRS = mesa glu glut/glx | ||||
|  | ||||
| SRC_DIRS = glx/x11 glu glut/glx mesa | ||||
| DRIVER_DIRS = osmesa | ||||
|   | ||||
							
								
								
									
										7
									
								
								configs/darwin-fat-32bit
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								configs/darwin-fat-32bit
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| # Configuration for Darwin / MacOS X, making 32bit fat dynamic libs | ||||
|  | ||||
| RC_CFLAGS=-arch ppc -arch i386 | ||||
|  | ||||
| include $(TOP)/configs/darwin | ||||
|  | ||||
| CONFIG_NAME = darwin-fat-32bit | ||||
							
								
								
									
										7
									
								
								configs/darwin-fat-all
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								configs/darwin-fat-all
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| # Configuration for Darwin / MacOS X, making 32bit and 64bit fat dynamic libs | ||||
|  | ||||
| RC_CFLAGS=-arch ppc -arch i386 -arch ppc64 -arch x86_64 | ||||
|  | ||||
| include $(TOP)/configs/darwin | ||||
|  | ||||
| CONFIG_NAME = darwin-fat-all | ||||
| @@ -9,6 +9,10 @@ CFLAGS = -I/usr/X11R6/include -O3 -fno-common -ffast-math -funroll-loops -fexpen | ||||
| CXXFLAGS = -I/usr/X11R6/include -O3 -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin | ||||
| MKLIB_OPTIONS = -static | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.a | ||||
| GLU_LIB_NAME = libGLU.a | ||||
|   | ||||
| @@ -11,6 +11,10 @@ CXXFLAGS = -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk \ | ||||
|            -I/usr/X11R6/include -O3 -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin | ||||
| MKLIB_OPTIONS = -static -archopt "-isysroot /Developer/SDKs/MacOSX10.4u.sdk" | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.a | ||||
| GLU_LIB_NAME = libGLU.a | ||||
|   | ||||
| @@ -1,33 +0,0 @@ | ||||
| # Configuration for Darwin / MacOS X, making dynamic libs | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = darwin | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = cc | ||||
| CFLAGS = -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk \ | ||||
|          -I/usr/X11R6/include -O3 -fPIC -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin | ||||
| CXXFLAGS = -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk \ | ||||
|          -I/usr/X11R6/include -O3 -fPIC -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin | ||||
|  | ||||
| MKLIB_OPTIONS = -archopt "-isysroot /Developer/SDKs/MacOSX10.4u.sdk" | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.dylib | ||||
| GLU_LIB_NAME = libGLU.dylib | ||||
| GLUT_LIB_NAME = libglut.dylib | ||||
| GLW_LIB_NAME = libGLw.dylib | ||||
| OSMESA_LIB_NAME = libOSMesa.dylib | ||||
|  | ||||
| GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread | ||||
| OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lGL | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lGL | ||||
| GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lGL -lGLU -L/usr/X11R6/lib -lX11 -lXmu -lXi -lXext | ||||
| GLW_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXt $(TOP)/lib/GL.dylib | ||||
| APP_LIB_DEPS = -L$(TOP)/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm | ||||
|  | ||||
| # omit glw lib for now: | ||||
| SRC_DIRS = mesa glu glut/glx | ||||
|  | ||||
| @@ -9,8 +9,8 @@ CONFIG_NAME = default | ||||
|  | ||||
| # Version info | ||||
| MESA_MAJOR=7 | ||||
| MESA_MINOR=1 | ||||
| MESA_TINY=0 | ||||
| MESA_MINOR=0 | ||||
| MESA_TINY=3 | ||||
|  | ||||
| # external projects.  This should be useless now that we use libdrm. | ||||
| DRM_SOURCE_PATH=$(TOP)/../drm | ||||
| @@ -20,6 +20,7 @@ CC = cc | ||||
| CXX = CC | ||||
| CFLAGS = -O | ||||
| CXXFLAGS = -O | ||||
| LDFLAGS = | ||||
| GLU_CFLAGS =  | ||||
|  | ||||
| # Misc tools and flags | ||||
| @@ -29,9 +30,11 @@ MKDEP_OPTIONS = -fdepend | ||||
| MAKE = make | ||||
| INSTALL = $(TOP)/bin/minstall | ||||
|  | ||||
| # Python and flags (generally only needed by the developers) | ||||
| # Tools for regenerating glapi (generally only needed by the developers) | ||||
| PYTHON2 = python | ||||
| PYTHON_FLAGS = -t -O -O | ||||
| INDENT = indent | ||||
| INDENT_FLAGS = -i4 -nut -br -brs -npcs -ce -T GLubyte -T GLbyte -T Bool | ||||
|  | ||||
| # Library names (base name) | ||||
| GL_LIB = GL | ||||
| @@ -66,14 +69,16 @@ DRIVER_DIRS = x11 osmesa | ||||
| PROGRAM_DIRS = demos redbook samples glsl xdemos | ||||
|  | ||||
|  | ||||
| # Library/program dependencies | ||||
| # Library dependencies | ||||
| #EXTRA_LIB_PATH ?= | ||||
| GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread | ||||
| OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm | ||||
| GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lm | ||||
| GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lXt -lX11 | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm | ||||
|  | ||||
| # Program dependencies - specific GL/glut libraries added in Makefiles | ||||
| APP_LIB_DEPS = -lm | ||||
|  | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -13,7 +13,7 @@ OPT_FLAGS  = -O2 | ||||
| PIC_FLAGS  = -fPIC | ||||
|  | ||||
| DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -DUSE_XSHM \ | ||||
| 	-DHZ=100 -DHAVE_POSIX_MEMALIGN | ||||
| 	-DHZ=100 | ||||
|  | ||||
| X11_INCLUDES = -I/usr/X11R6/include | ||||
|  | ||||
| @@ -23,5 +23,9 @@ CXXFLAGS += $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) $(X11_INCLUDES) | ||||
|  | ||||
| GLUT_CFLAGS = -fexceptions | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| EXTRA_LIB_PATH = -L/usr/X11R6/lib | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) $(EXTRA_LIB_PATH) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lXext -lXmu -lXi -lX11 -lm | ||||
|   | ||||
| @@ -15,21 +15,25 @@ EXPAT_INCLUDES = -I/usr/local/include | ||||
| X11_INCLUDES = -I/usr/X11R6/include | ||||
| DEFINES = -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \ | ||||
| 	-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING \ | ||||
| 	-DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN | ||||
| 	-DHAVE_ALIAS | ||||
|  | ||||
| CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) -Wmissing-prototypes -std=c99 -Wundef -ffast-math \ | ||||
| 	$(ASM_FLAGS) $(X11_INCLUDES) $(DEFINES) | ||||
|  | ||||
| CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) -Wall -ansi -pedantic $(ASM_FLAGS) $(X11_INCLUDES)  | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| ASM_SOURCES =  | ||||
|  | ||||
| # Library/program dependencies | ||||
| LIBDRM_CFLAGS = `pkg-config --cflags libdrm` | ||||
| LIBDRM_LIB = `pkg-config --libs libdrm` | ||||
| DRI_LIB_DEPS = -L/usr/local/lib -lm -lpthread -lexpat $(LIBDRM_LIB) | ||||
| DRI_LIB_DEPS = -L/usr/local/lib -lm -pthread -lexpat $(LIBDRM_LIB) | ||||
| GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \ | ||||
| 	-lm -lpthread $(LIBDRM_LIB) | ||||
| 	-lm -pthread $(LIBDRM_LIB) | ||||
|  | ||||
| GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/X11R6/lib -lGLU -lGL -lX11 -lXmu -lXt -lXi -lm | ||||
| GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/X11R6/lib -lGL -lXt -lX11 | ||||
|   | ||||
| @@ -12,5 +12,9 @@ CFLAGS = -ansi -O3 -D_HPUX_SOURCE -I/usr/include/X11R6 -I/usr/contrib/X11R6/incl | ||||
| CXXFLAGS = -ansi -O3 -D_HPUX_SOURCE | ||||
| GLUT_CFLAGS = -fexceptions | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -lXext -lXmu -lXi -lX11 -lm | ||||
|  | ||||
|   | ||||
| @@ -28,6 +28,10 @@ CFLAGS = -Wall -Wmissing-prototypes $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \ | ||||
| CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \ | ||||
| 	$(X11_INCLUDES)  | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| GLUT_CFLAGS = -fexceptions | ||||
|  | ||||
| EXTRA_LIB_PATH = -L/usr/X11R6/lib | ||||
|   | ||||
| @@ -11,6 +11,10 @@ CFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -fPIC -D_XOPEN_SOURCE -DUSE_XSHM | ||||
| CXXFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -fPIC -D_XOPEN_SOURCE | ||||
| GLUT_CFLAGS = -fexceptions | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread | ||||
| GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm | ||||
| GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L/usr/X11R6/lib -lXt -lX11 | ||||
|   | ||||
| @@ -11,7 +11,11 @@ CFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -D_XOPEN_SOURCE -DUSE_XSHM | ||||
| CXXFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -D_XOPEN_SOURCE | ||||
| GLUT_CFLAGS = -fexceptions | ||||
| MKLIB_OPTIONS = -static | ||||
| PIC_FLAGS = | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.a | ||||
|   | ||||
| @@ -13,6 +13,10 @@ CFLAGS   = -Wall -O3 -ffast-math -fPIC -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -D | ||||
|  | ||||
| CXXFLAGS = -Wall -O3 -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE    | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| HAVE_X86 = $(shell uname -m | grep 'i[3-6]86' >/dev/null && echo yes) | ||||
| ifeq ($(HAVE_X86), yes) | ||||
|      CFLAGS   += -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM | ||||
|   | ||||
| @@ -32,6 +32,11 @@ CFLAGS = -Wall -Wmissing-prototypes -std=c99 -ffast-math \ | ||||
|  | ||||
| CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) | ||||
|  | ||||
| GLUT_CFLAGS = -fexceptions | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| ASM_SOURCES =  | ||||
|  | ||||
| @@ -55,10 +60,10 @@ USING_EGL=0 | ||||
| # Directories | ||||
| ifeq ($(USING_EGL), 1) | ||||
| SRC_DIRS = egl glx/x11 mesa glu glut/glx glw | ||||
| PROGRAM_DIRS = egl | ||||
| PROGRAM_DIRS = egl xdemos | ||||
| else | ||||
| SRC_DIRS = glx/x11 mesa glu glut/glx glw | ||||
| PROGRAM_DIRS = | ||||
| PROGRAM_DIRS = xdemos | ||||
| endif | ||||
|  | ||||
| DRIVER_DIRS = dri | ||||
|   | ||||
| @@ -5,9 +5,6 @@ include $(TOP)/configs/linux-dri | ||||
|  | ||||
| CONFIG_NAME = linux-dri-x86 | ||||
|  | ||||
| # Unnecessary on x86, generally. | ||||
| PIC_FLAGS =  | ||||
|  | ||||
| # Add -m32 to CFLAGS: | ||||
| ARCH_FLAGS = -m32 | ||||
|  | ||||
|   | ||||
| @@ -32,6 +32,9 @@ CFLAGS = -Wall -Wmissing-prototypes $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \ | ||||
|  | ||||
| CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| ASM_SOURCES =  | ||||
|  | ||||
| @@ -41,8 +44,9 @@ EXTRA_LIB_PATH=`pkg-config --libs-only-L x11` | ||||
| LIBDRM_CFLAGS = `pkg-config --cflags libdrm` | ||||
| LIBDRM_LIB = `pkg-config --libs libdrm` | ||||
| DRI_LIB_DEPS  = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB) | ||||
| GL_LIB_DEPS   = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lm -lpthread -ldl \ | ||||
|                 $(LIBDRM_LIB) `pkg-config --libs xcb` `pkg-config --libs x11-xcb` `pkg-config --libs xcb-glx` | ||||
| GL_LIB_DEPS   = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \ | ||||
| 		-lm -lpthread -ldl $(LIBDRM_LIB) `pkg-config --libs xcb` \ | ||||
| 		`pkg-config --libs x11-xcb` `pkg-config --libs xcb-glx` | ||||
|  | ||||
|  | ||||
| # This is now 0 by default since it seems to confuse the hell out of people | ||||
| @@ -54,10 +58,10 @@ USING_EGL=0 | ||||
| # Directories | ||||
| ifeq ($(USING_EGL), 1) | ||||
| SRC_DIRS = egl glx/x11 mesa glu glut/glx glw | ||||
| PROGRAM_DIRS = egl | ||||
| PROGRAM_DIRS = egl xdemos | ||||
| else | ||||
| SRC_DIRS = glx/x11 mesa glu glut/glx glw | ||||
| PROGRAM_DIRS = | ||||
| PROGRAM_DIRS = xdemos | ||||
| endif | ||||
|  | ||||
| DRIVER_DIRS = dri | ||||
|   | ||||
| @@ -6,6 +6,9 @@ CONFIG_NAME = linux-fbdev | ||||
|  | ||||
| CFLAGS = -O3 -ffast-math -ansi -pedantic -fPIC -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DPTHREADS -DUSE_GLFBDEV_DRIVER | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| SRC_DIRS = mesa glu glut/fbdev | ||||
| DRIVER_DIRS = fbdev osmesa | ||||
| PROGRAM_DIRS = fbdev demos redbook samples | ||||
|   | ||||
| @@ -12,6 +12,9 @@ CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE | ||||
| CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE | ||||
| GLUT_CFLAGS = -fexceptions | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| # Library/program dependencies | ||||
| GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -L/usr/local/glide/lib -lglide3x -lm -lpthread | ||||
|   | ||||
| @@ -33,6 +33,9 @@ CFLAGS   = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \ | ||||
|  | ||||
| CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| ASM_SOURCES =  | ||||
|  | ||||
|   | ||||
| @@ -12,6 +12,9 @@ CXX = g++ | ||||
| CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DPTHREADS | ||||
| CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| # Directories | ||||
| SRC_DIRS = mesa glu | ||||
|   | ||||
| @@ -10,6 +10,9 @@ CXX = g++ | ||||
| CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include -DCHAN_BITS=16 -DDEFAULT_SOFTWARE_DEPTH_BITS=31 | ||||
| CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| # Library names | ||||
| OSMESA_LIB = OSMesa16 | ||||
|   | ||||
| @@ -10,7 +10,11 @@ CXX = g++ | ||||
| CFLAGS = -O3 -ansi -pedantic -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include -DCHAN_BITS=16 -DDEFAULT_SOFTWARE_DEPTH_BITS=31 | ||||
| CXXFLAGS = -O3 -ansi -pedantic -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE | ||||
| MKLIB_OPTIONS = -static | ||||
| PIC_FLAGS = | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| # Library names | ||||
| OSMESA_LIB = OSMesa16 | ||||
|   | ||||
| @@ -10,6 +10,9 @@ CXX = g++ | ||||
| CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include -DCHAN_BITS=32 -DDEFAULT_SOFTWARE_DEPTH_BITS=31 | ||||
| CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| # Library names | ||||
| OSMESA_LIB = OSMesa32 | ||||
|   | ||||
| @@ -5,6 +5,7 @@ include $(TOP)/configs/linux-ppc | ||||
| CONFIG_NAME = linux-ppc-static | ||||
|  | ||||
| MKLIB_OPTIONS = -static | ||||
| PIC_FLAGS = | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.a | ||||
|   | ||||
| @@ -31,6 +31,9 @@ CFLAGS   = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \ | ||||
|  | ||||
| CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| ASM_SOURCES =  | ||||
|  | ||||
|   | ||||
| @@ -5,9 +5,6 @@ include $(TOP)/configs/linux-solo | ||||
|  | ||||
| CONFIG_NAME = linux-solo-x86 | ||||
|  | ||||
| # Unnecessary on x86, generally. | ||||
| PIC_FLAGS =  | ||||
|  | ||||
| ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM | ||||
| ASM_SOURCES = $(X86_SOURCES) | ||||
| ASM_API = $(X86_API) | ||||
|   | ||||
| @@ -5,6 +5,7 @@ include $(TOP)/configs/linux | ||||
| CONFIG_NAME = linux-static | ||||
|  | ||||
| MKLIB_OPTIONS = -static | ||||
| PIC_FLAGS = | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.a | ||||
| @@ -21,6 +22,5 @@ GLUT_LIB_DEPS = | ||||
| GLW_LIB_DEPS =  | ||||
|  | ||||
| # Need to specify all libraries we may need | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm \ | ||||
| 	-L/usr/X11R6/lib/ -lX11 -lXmu -lXi -lpthread | ||||
|  | ||||
| APP_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXmu -lXt -lXi -lpthread \ | ||||
| 	-lstdc++ -lm | ||||
|   | ||||
| @@ -5,6 +5,7 @@ include $(TOP)/configs/linux-x86-64 | ||||
| CONFIG_NAME = linux-x86-64-static | ||||
|  | ||||
| MKLIB_OPTIONS = -static | ||||
| PIC_FLAGS = | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.a | ||||
| @@ -19,5 +20,5 @@ OSMESA_LIB_DEPS = | ||||
| GLU_LIB_DEPS =  | ||||
| GLUT_LIB_DEPS =  | ||||
| GLW_LIB_DEPS =  | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) \ | ||||
|                $(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lpthread -lstdc++ -lm | ||||
| APP_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXmu -lXt -lXi -lpthread \ | ||||
| 	-lstdc++ -lm | ||||
|   | ||||
| @@ -14,6 +14,9 @@ CXXFLAGS = -Wall -O3 -ansi -pedantic -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199 | ||||
|  | ||||
| GLUT_CFLAGS = -fexceptions | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| ASM_SOURCES = $(X86_SOURCES) | ||||
| ASM_API = $(X86_API) | ||||
|   | ||||
| @@ -5,6 +5,7 @@ include $(TOP)/configs/linux-x86 | ||||
| CONFIG_NAME = linux-x86-static | ||||
|  | ||||
| MKLIB_OPTIONS = -static | ||||
| PIC_FLAGS = | ||||
|  | ||||
| # Library names (actual file names) | ||||
| GL_LIB_NAME = libGL.a | ||||
| @@ -19,5 +20,5 @@ OSMESA_LIB_DEPS = | ||||
| GLU_LIB_DEPS =  | ||||
| GLUT_LIB_DEPS =  | ||||
| GLW_LIB_DEPS =  | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) \ | ||||
|                $(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lpthread -lstdc++ -lm | ||||
| APP_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXmu -lXt -lXi -lpthread \ | ||||
| 	-lstdc++ -lm | ||||
|   | ||||
| @@ -12,3 +12,6 @@ CXXFLAGS = -O2 -fPIC | ||||
| GLUT_CFLAGS = -fexceptions | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11 -lm | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|   | ||||
| @@ -10,6 +10,10 @@ CXX = g++ | ||||
| CFLAGS = -O2 -fPIC -I/usr/X11R6/include -DUSE_XSHM -DHZ=100 | ||||
| CXXFLAGS = -O2 -fPIC -I/usr/X11R6/include -DHZ=100 | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm | ||||
| OSMESA_LIB_DEPS = -lm | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) | ||||
|   | ||||
| @@ -11,6 +11,10 @@ CFLAGS = -O3 -march=i486 -fPIC -I/usr/openwin/include -DUSE_XSHM | ||||
| CXXFLAGS = -O3 -march=i486 -fPIC | ||||
| GLUT_CFLAGS = -fexceptions | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| GL_LIB_DEPS = -L/usr/openwin/lib -lX11 -lXext -lm -lpthread | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm | ||||
| GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/openwin/lib -lX11 -lXmu -lXt -lXi -lm | ||||
|   | ||||
| @@ -12,6 +12,10 @@ CXXFLAGS = -O3 -march=i486 -fPIC | ||||
| GLUT_CFLAGS = -fexceptions | ||||
| MKLIB_OPTIONS = -static | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| GL_LIB_DEPS = -L/usr/openwin/lib -lX11 -lXext -lm -lpthread | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm | ||||
| GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/openwin/lib -lX11 -lXmu -lXt -lXi -lm | ||||
|   | ||||
| @@ -11,5 +11,9 @@ CFLAGS = -fPIC -O3 -I/usr/openwin/include -I/usr/include/X11R5 -I/usr/include/X1 | ||||
| CXXFLAGS = -fPIC -O3 -I/usr/openwin/include -DSUNOS4 | ||||
| GLUT_CFLAGS = -fexceptions -DSOLARIS_2_4_BUG | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/openwin/lib -lX11 -lXext -lXmu -lXi -lm | ||||
|  | ||||
|   | ||||
| @@ -28,6 +28,10 @@ CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \ | ||||
|  | ||||
| GLUT_CFLAGS = -fexceptions -DSOLARIS_2_4_BUG | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| # Library/program dependencies | ||||
| EXTRA_LIB_PATH=-L/usr/openwin/lib | ||||
|  | ||||
|   | ||||
							
								
								
									
										35
									
								
								configs/sunos5-v9-cc-g++
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								configs/sunos5-v9-cc-g++
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,35 @@ | ||||
| # Configuration for SunOS 5, SPARC V9 and cc/g++ (for C and C++ sources) | ||||
|  | ||||
| include $(TOP)/configs/default | ||||
|  | ||||
| CONFIG_NAME = sunos5-v9-cc-g++ | ||||
|  | ||||
| MKLIB_OPTIONS = -cplusplus | ||||
|  | ||||
| LIB_DIR = lib64 | ||||
|  | ||||
| # Compiler and flags | ||||
| CC = cc | ||||
| CXX = g++ | ||||
|  | ||||
| CXX_WARN_FLAGS = -Wall | ||||
| CXX_PIC_FLAGS  = -fPIC | ||||
| CXX_OPT_FLAGS  = -O3 -m64 -mcpu=ultrasparc -mv8plus -mvis -g -fomit-frame-pointer -pipe | ||||
| CXX_ARCH_FLAGS = -m64 | ||||
|  | ||||
|  | ||||
| CXXFLAGS = $(CXX_WARN_FLAGS) $(CXX_OPT_FLAGS) $(CXX_PIC_FLAGS) $(CXX_ARCH_FLAGS) $(DEFINES) \ | ||||
|         -I/usr/openwin/include | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| CFLAGS = -xarch=v9 -KPIC -O -I/usr/openwin/include -I/usr/dt/include -DUSE_XSHM -DPTHREADS | ||||
| #CXXFLAGS = -xarch=v9 -KPIC -O -I/usr/openwin/include -I/usr/dt/include -DPTHREADS | ||||
| GLUT_CFLAGS = -DSOLARIS_2_4_BUG | ||||
|  | ||||
| GL_LIB_DEPS = -L/usr/openwin/lib -L/usr/dt/lib -lX11 -lXext -lXmu -lXi -lm -lpthread | ||||
| GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm -lCstd -lCrun | ||||
| GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lm | ||||
| GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L/usr/openwin/lib -lXt -lX11 | ||||
| APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lX11 -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm | ||||
| @@ -12,6 +12,10 @@ CXXFLAGS = -pedantic -O2 | ||||
| GLUT_CFLAGS = -fexceptions | ||||
| MKLIB_OPTIONS = -static | ||||
|  | ||||
| # Work around aliasing bugs - developers should comment this out | ||||
| CFLAGS += -fno-strict-aliasing | ||||
| CXXFLAGS += -fno-strict-aliasing | ||||
|  | ||||
| GL_LIB_NAME = libGL.a | ||||
| GLU_LIB_NAME = libGLU.a | ||||
| GLUT_LIB_NAME = libglut.a | ||||
|   | ||||
| @@ -88,3 +88,66 @@ Running the Build: | ||||
|  | ||||
| 		Paul G. <pgarceau@users.sourceforge.net> | ||||
| 		Daniel Borca <dborca@users.sourceforge.net> | ||||
|  | ||||
|  | ||||
|  | ||||
| ******This section is added by Heromyth <zxpmyth@yahoo.com.cn>************* | ||||
|  | ||||
| ==================== | ||||
| Updated on 2007-7-21 | ||||
| ==================== | ||||
|  | ||||
| Notice: | ||||
| 	1) The generated DLLs are *not* compatible with the ones built | ||||
| with the other compilers like VC8, especially for GLUT.  | ||||
|  | ||||
| 	2) Although more tests are needed, it can be used individually! | ||||
|  | ||||
| 	3) You can set the options about whether using STDCALL to build MESA. The  | ||||
| config file is <Mesa3D-root>\configs\config.mgw. The default setting is that: | ||||
| 		ALL_USING_STDCALL = 1 | ||||
| , which means using STDCALL to build MESA.  | ||||
|  | ||||
| 	4) Of course, you can MESA without using STDCALL,I like this:)  | ||||
| The setting is : | ||||
| 		ALL_USING_STDCALL = 0 | ||||
| To do this, however, you must modify wingdi.h which is in MingW's include dir.  | ||||
| For example, run: | ||||
| 	notepad	C:\MingW\include\wingdi.h | ||||
| , and delete all the lines where all the wgl*() functions are. Because they would  | ||||
| be conflicted with the ones in <Mesa3D-root>\include\GL\mesa_wgl.h. | ||||
|  | ||||
| >>>>>>>>>> Conflicted Functions List >>>>>>>>>> | ||||
| WINGDIAPI BOOL WINAPI wglCopyContext(HGLRC,HGLRC,UINT); | ||||
| WINGDIAPI HGLRC WINAPI wglCreateContext(HDC); | ||||
| WINGDIAPI HGLRC WINAPI wglCreateLayerContext(HDC,int); | ||||
| WINGDIAPI BOOL WINAPI wglDeleteContext(HGLRC); | ||||
| WINGDIAPI BOOL WINAPI wglDescribeLayerPlane(HDC,int,int,UINT,LPLAYERPLANEDESCRIPTOR); | ||||
| WINGDIAPI HGLRC WINAPI wglGetCurrentContext(void); | ||||
| WINGDIAPI HDC WINAPI wglGetCurrentDC(void); | ||||
| WINGDIAPI int WINAPI wglGetLayerPaletteEntries(HDC,int,int,int,COLORREF*); | ||||
| WINGDIAPI PROC WINAPI wglGetProcAddress(LPCSTR); | ||||
| WINGDIAPI BOOL WINAPI wglMakeCurrent(HDC,HGLRC); | ||||
| WINGDIAPI BOOL WINAPI wglRealizeLayerPalette(HDC,int,BOOL); | ||||
| WINGDIAPI int WINAPI wglSetLayerPaletteEntries(HDC,int,int,int,const COLORREF*); | ||||
| WINGDIAPI BOOL WINAPI wglShareLists(HGLRC,HGLRC); | ||||
| WINGDIAPI BOOL WINAPI wglSwapLayerBuffers(HDC,UINT); | ||||
| WINGDIAPI BOOL WINAPI wglUseFontBitmapsA(HDC,DWORD,DWORD,DWORD); | ||||
| WINGDIAPI BOOL WINAPI wglUseFontBitmapsW(HDC,DWORD,DWORD,DWORD); | ||||
| WINGDIAPI BOOL WINAPI wglUseFontOutlinesA(HDC,DWORD,DWORD,DWORD,FLOAT,FLOAT,int,LPGLYPHMETRICSFLOAT); | ||||
| WINGDIAPI BOOL WINAPI wglUseFontOutlinesW(HDC,DWORD,DWORD,DWORD,FLOAT,FLOAT,int,LPGLYPHMETRICSFLOAT); | ||||
| <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< | ||||
|  | ||||
| ==================== | ||||
| Updated on 2007-7-22 | ||||
| ==================== | ||||
| 	I havn't thought that I would find a better way to solve my problems so soon.  | ||||
| I changed the method in which the import-libs and DLLs are made. After this update, | ||||
| the DLLs of MESA are more optimized and more compatible.  | ||||
| 	It seems that there is no need to keep the building way of 'NO-STDCALL'.The  | ||||
| way of USING_STDCALL is so nice! The file <Mesa3D-root>\configs\config.mgw is  | ||||
| also not needed, and can be deleted safely! | ||||
| 	 | ||||
|  | ||||
|  | ||||
| ********************************************************************************* | ||||
| @@ -9,11 +9,7 @@ | ||||
| <H1>Downloading</H1> | ||||
|  | ||||
| <p> | ||||
| Last development release: <b>6.5.3</b> | ||||
| </p> | ||||
|  | ||||
| <p> | ||||
| Last stable release: <b>6.4.2</b> | ||||
| Last stable release: <b>7.0.2</b> | ||||
| </p> | ||||
|  | ||||
| <p> | ||||
|   | ||||
| @@ -342,7 +342,7 @@ will fix the problem. | ||||
|  | ||||
| <h2>4.1 How can I contribute?</a></h2> | ||||
| <p> | ||||
| First, join the <a href="http://www.mesa3d.org/lists.html>Mesa3d-dev | ||||
| First, join the <a href="http://www.mesa3d.org/lists.html">Mesa3d-dev | ||||
| mailing list</a>. | ||||
| That's where Mesa development is discussed. | ||||
| </a></p> | ||||
|   | ||||
| @@ -1,15 +1,15 @@ | ||||
| <html> | ||||
| <html><head><title>Mesa fbdev/DRI Environment</title> | ||||
|  | ||||
|  | ||||
| <TITLE>Mesa fbdev/DRI Environment</TITLE> | ||||
|  | ||||
| <link rel="stylesheet" type="text/css" href="mesa.css"></head> | ||||
|  | ||||
| <BODY> | ||||
| <body> | ||||
|  | ||||
| <center><H1>Mesa fbdev/DRI Drivers</H1></center> | ||||
| <center><h1>Mesa fbdev/DRI Drivers</h1></center> | ||||
| <br> | ||||
|  | ||||
|  | ||||
| <H1>1. Introduction</H1> | ||||
| <h1>1. Introduction</h1> | ||||
|  | ||||
| <p> | ||||
| The fbdev/DRI environment supports hardware-accelerated 3D rendering without | ||||
| @@ -22,48 +22,131 @@ Contributors to this project include Jon Smirl, Keith Whitwell and Dave Airlie. | ||||
|  | ||||
| <p> | ||||
| Applications in the fbdev/DRI environment use | ||||
| the <a href="MiniGXL.html"> MiniGLX</a> interface to choose pixel | ||||
| the <a href="http://www.nabble.com/file/p15480666/MiniGXL.html"> MiniGLX</a> interface to choose pixel | ||||
| formats, create rendering contexts, etc.  It's a subset of the GLX and | ||||
| Xlib interfaces allowing some degree of application portability between | ||||
| the X and X-less environments. | ||||
| </p> | ||||
|  | ||||
| <p> | ||||
| Note that this environment is not well-supported and these instructions | ||||
| may not be completely up to date. | ||||
| </p> | ||||
| <br> | ||||
|  | ||||
|  | ||||
|  | ||||
| <h1>2. Compilation</h1> | ||||
|  | ||||
| <p> | ||||
| You'll need the DRM and pciaccess libraries.  Check with: | ||||
|  | ||||
| <h2>2.1 glxproto</h2> | ||||
|  | ||||
| Get <a href="http://cvsweb.xfree86.org/cvsweb/*checkout*/xc/include/GL/glxproto.h?rev=1.9">glxproto.h</a>. Copy it to the /mesa/include/GL/ directory. | ||||
| </p> | ||||
| <pre> | ||||
|    pkg-config --modversion libdrm | ||||
|    pkg-config --modversion pciaccess | ||||
|  | ||||
| <h2>2.2 libpciaccess</h2> | ||||
| <p> | ||||
| Check if you have libpciaccess installed: | ||||
| </p> | ||||
|  | ||||
| <pre>pkg-config --modversion pciaccess | ||||
| </pre> | ||||
| <p> | ||||
| If not you can download the latest code from: | ||||
| </p> | ||||
| <pre>   git clone git://anongit.freedesktop.org/git/xorg/lib/libpciaccess | ||||
| </pre> | ||||
| <p> | ||||
| Run autogen.sh to generate a configure file. autogen.sh uses autoconf | ||||
| utility. This utility may not be installed with your linux distro, | ||||
| check if it is available. if not you can use your package manager or | ||||
| type: | ||||
| </p> | ||||
| <pre>sudo apt-get install autoconf | ||||
| </pre> | ||||
| The next step is to install the libpciaccess library.  | ||||
| <pre>make | ||||
| make install | ||||
| </pre> | ||||
| <p> Now your libpciaccess.a file is saved into /usr/local/lib | ||||
| directory. If you have a libpciaccess.a in /usr/lib you may simply copy | ||||
| and overwrite these files. Don't forget to copy libpciaccess.pc file to | ||||
| /usr/lib/pkgconfig, which is also located in /usr/local/lib/pkgconfig/. | ||||
| Or you may use the following system variables: | ||||
| </p> | ||||
| <pre>export LD_LIBRARY_PATH=/usr/local/lib | ||||
| export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig | ||||
| </pre> | ||||
|  | ||||
| <p> | ||||
| You can get them from the git repository with: | ||||
| <h2>2.3 drm</h2> | ||||
|  | ||||
| <p>The next step is to compile the drm. DRM consists of two seperate parts, | ||||
| the DRM client library(lindrm.so) and kernel device module(such as | ||||
| radeon.ko). We need to make a small change in kernel device module. So | ||||
| you need to download the kernel source. You may choose the nearest | ||||
| mirror from www.kernel.org, or you are using Fedora Core 5, for | ||||
| example, you may need to install RPMs such as: | ||||
| kernel-smp-devel-2.16.15-1.2054_FC5.i686.rpm | ||||
| kernel-devel-2.6.15-1.2054_FC5.i686.rpm | ||||
| etc. You can find a detailed information <a href="http://www.howtoforge.com/kernel_compilation_fedora">here.</a> | ||||
| </p> | ||||
|  | ||||
| <p>You will find drm_drv.c at /usr/src/LINUX-VERSION/drivers/char/drm/. Edit this code and comment out the following part: | ||||
| </p> | ||||
|  | ||||
| <pre> | ||||
|    git clone git://anongit.freedesktop.org/git/mesa/drm | ||||
|    git clone git://anongit.freedesktop.org/git/xorg/lib/libpciaccess | ||||
|    /* || | ||||
|    ((ioctl->flags & DRM_MASTER) && !priv->master)*/ | ||||
| </pre> | ||||
|  | ||||
| <p> | ||||
| See the README files in those projects for build/install instructions. | ||||
| </p> | ||||
|  | ||||
|  | ||||
| <p> | ||||
| Now you are ready to compile your kernel. If your kernel version is | ||||
| identical to the version you have compiled, you can simply over write | ||||
| your new "ko" files over older ones. If you have compiled a different | ||||
| kernel, you must configure your grub or lilo to be able to boot your | ||||
| new kernel. <p> | ||||
| You'll need fbdev header files.  Check with: | ||||
| </p> | ||||
| <pre> | ||||
|    ls -l /usr/include/linux/fb.h | ||||
|    ls -l /usr/include/linux/fb. | ||||
| </pre> | ||||
| <p>This file may be missing if you have not installed linux header files. | ||||
|  | ||||
| <p> | ||||
| Compile Mesa with the 'linux-solo' configuration: | ||||
|  | ||||
| <h2>2.4 Mesa</h2> | ||||
|  | ||||
| </p><p>Get latest development Mesa sources from git repository | ||||
| (currently 7.1-prerelease) | ||||
| </p> | ||||
| <pre> | ||||
|    make linux-solo | ||||
|    git clone git://anongit.freedesktop.org/git/mesa/mesa | ||||
| </pre> | ||||
|  | ||||
| <p>You will need the makedepend utility which is a part of mesa project | ||||
| to build your linux-solo. You probably wont have this utility. You can | ||||
| download its source from following git repulsitory: | ||||
| </p> | ||||
| <pre> | ||||
|    git clone git://anongit.freedesktop.org/git/xorg/util/makedepend | ||||
| </pre> | ||||
|  | ||||
| <p>Get the latest stable mesa version from SourceForge (currently 7.0.3) | ||||
| <a href="http://sourceforge.net/project/showfiles.php?group_id=3">http://sourceforge.net/project/showfiles.php?group_id=3</a> | ||||
| </p> | ||||
|  | ||||
| <p>Copy the miniglx folder from 7.1-prerelease to 7.0.3. | ||||
| You may also extract GLUT to 7.0.3 version at this step.  | ||||
| </p> | ||||
|  | ||||
| <p>Edit linux-solo.conf at /conf directory, just only compile the | ||||
| graphics driver you need, delete the unwanted drivers names from the | ||||
| list(some drivers are causing problems...) | ||||
| </p> | ||||
| <pre> | ||||
|    while(build==0) | ||||
|    { | ||||
|      make linux-solo | ||||
|  | ||||
|      There will be some missing header files, copy them from 7.1-prerelease | ||||
|    } | ||||
| </pre> | ||||
|  | ||||
| <p> | ||||
| @@ -71,22 +154,40 @@ When complete you should have the following: | ||||
| </p> | ||||
| <ul> | ||||
| <li>lib/libGL.so - the GL library which applications link with | ||||
| <li>lib/*_dri_so - DRI drivers | ||||
| <li>lib/miniglx.conf - sample MiniGLX config file | ||||
| <li>progs/miniglx/* - several MiniGLX sample programs | ||||
| </ul> | ||||
| </li><li>lib/*_dri_so - DRI drivers | ||||
| </li><li>lib/miniglx.conf - sample MiniGLX config file | ||||
| </li><li>progs/miniglx/* - several MiniGLX sample programs | ||||
| </li></ul> | ||||
|  | ||||
| To install these files into appropriate locations in system: | ||||
| <pre> | ||||
|    make install | ||||
| </pre> | ||||
|  | ||||
| Now your openGL libraries are copied to /usr/local/lib and | ||||
| miniglx.conf is copied to /etc. You may copy them to /usr/lib and | ||||
| overwrite your old GL libraries. Or you may export following variable: | ||||
|  | ||||
| <pre> | ||||
|    export LIBGL_DRIVERS_PATH=/usr/local/lib | ||||
| </pre> | ||||
| <br> | ||||
|  | ||||
|  | ||||
| <h1>3. Using fbdev/DRI</h1> | ||||
|  | ||||
| <p> | ||||
| If an X server currently running, exit/stop it so you're working from | ||||
| the console. | ||||
| the console. Following command shuts down the x window and also the multi user support. | ||||
| </p> | ||||
| <pre> | ||||
|    init 1 | ||||
| </pre> | ||||
|  | ||||
|  | ||||
| <h2>3.1 Load Kernel Modules</h2> | ||||
| <p>Also you may define the runlevel as 1 in "/etc/inittab". Your system | ||||
| will always start in single user mode and without x-window with this | ||||
| option set. | ||||
| </p><h2>3.1 Load Kernel Modules</h2> | ||||
|  | ||||
| <p> | ||||
| You'll need to load the kernel modules specific to your graphics hardware. | ||||
| @@ -100,8 +201,7 @@ As root, the kernel modules can be loaded as follows: | ||||
| <p> | ||||
| If you have Intel i915/i945 hardware: | ||||
| </p> | ||||
| <pre> | ||||
|    modprobe agpgart            # the AGP GART module | ||||
| <pre>   modprobe agpgart            # the AGP GART module | ||||
|    modprobe intelfb            # the Intel fbdev driver | ||||
|    modprobe i915               # the i915/945 DRI kernel module | ||||
| </pre> | ||||
| @@ -109,8 +209,7 @@ If you have Intel i915/i945 hardware: | ||||
| <p> | ||||
| If you have ATI Radeon/R200 hardware: | ||||
| </p> | ||||
| <pre> | ||||
|    modprobe agpgart            # the AGP GART module | ||||
| <pre>   modprobe agpgart            # the AGP GART module | ||||
|    modprobe radeonfb           # the Radeon fbdev driver | ||||
|    modprobe radeon             # the Radeon DRI kernel module | ||||
| </pre> | ||||
| @@ -118,8 +217,7 @@ If you have ATI Radeon/R200 hardware: | ||||
| <p> | ||||
| If you have ATI Rage 128 hardware: | ||||
| </p> | ||||
| <pre> | ||||
|    modprobe agpgart            # the AGP GART module | ||||
| <pre>   modprobe agpgart            # the AGP GART module | ||||
|    modprobe aty128fb           # the Rage 128 fbdev driver | ||||
|    modprobe r128               # the Rage 128 DRI kernel module | ||||
| </pre> | ||||
| @@ -127,8 +225,7 @@ If you have ATI Rage 128 hardware: | ||||
| <p> | ||||
| If you have Matrox G200/G400 hardware: | ||||
| </p> | ||||
| <pre> | ||||
|    modprobe agpgart            # the AGP GART module | ||||
| <pre>   modprobe agpgart            # the AGP GART module | ||||
|    modprobe mgafb              # the Matrox fbdev driver | ||||
|    modprobe mga                # the Matrox DRI kernel module | ||||
| </pre> | ||||
| @@ -136,8 +233,7 @@ If you have Matrox G200/G400 hardware: | ||||
| <p> | ||||
| To verify that the agpgart, fbdev and drm modules are loaded: | ||||
| </p> | ||||
| <pre> | ||||
|    ls -l /dev/agpgart /dev/fb* /dev/dri | ||||
| <pre>   ls -l /dev/agpgart /dev/fb* /dev/dri | ||||
| </pre> | ||||
| <p> | ||||
| Alternately, use lsmod to inspect the currently installed modules. | ||||
| @@ -148,16 +244,15 @@ If you have problems, look at the output of dmesg. | ||||
| <h2>3.2 Configuration File</h2> | ||||
|  | ||||
| <p> | ||||
| Copy the sample miniglx.conf to /etc/miniglx.conf and review/edit its contents. | ||||
| review/edit /etc/miniglx.conf. | ||||
| Alternately, the MINIGLX_CONF environment variable can be used to | ||||
| indicate the location of miniglx.conf | ||||
| </p> | ||||
|  | ||||
| To determine the pciBusID value, run lspci and examine the output. | ||||
| For example: | ||||
| </p> | ||||
| <pre> | ||||
|    /sbin/lspci: | ||||
| <p></p> | ||||
| <pre>   /sbin/lspci: | ||||
|    00:02.0 VGA compatible controller: Intel Corporation 82915G/GV/910GL Express Chipset Family Graphics Controller (rev 04) | ||||
| </pre> | ||||
| <p> | ||||
| @@ -180,15 +275,13 @@ for example. | ||||
| Change to the <code>Mesa/progs/miniglx/</code> directory and | ||||
| start the sample_server program in the background: | ||||
| </p> | ||||
| <pre> | ||||
|    ./sample_server & | ||||
| <pre>   ./sample_server & | ||||
| </pre> | ||||
|  | ||||
| <p> | ||||
| Then try running the <code>miniglxtest</code> program: | ||||
| </p> | ||||
| <pre> | ||||
|    ./miniglxtest | ||||
| <pre>   ./miniglxtest | ||||
| </pre> | ||||
| <p> | ||||
| You should see a rotating quadrilateral which changes color as it rotates. | ||||
| @@ -199,7 +292,7 @@ It will exit automatically after a bit. | ||||
| If you run other tests in the miniglx/ directory, you may want to run | ||||
| them from a remote shell so that you can stop them with ctrl-C. | ||||
| </p> | ||||
|  | ||||
| <br> | ||||
|  | ||||
|  | ||||
| <h1>4.0 Troubleshooting</h1> | ||||
| @@ -208,8 +301,7 @@ them from a remote shell so that you can stop them with ctrl-C. | ||||
| <li> | ||||
| If you try to run miniglxtest and get the following: | ||||
| <br> | ||||
| <pre> | ||||
|    [miniglx] failed to probe chipset | ||||
| <pre>   [miniglx] failed to probe chipset | ||||
|    connect: Connection refused | ||||
|    server connection lost | ||||
| </pre> | ||||
| @@ -223,7 +315,7 @@ It means that the sample_server process is not running. | ||||
| <h1>5.0 Programming Information</h1> | ||||
|  | ||||
| <p> | ||||
| OpenGL/Mesa is interfaced to fbdev via the <a href="MiniGLX.html">MiniGLX</a> | ||||
| OpenGL/Mesa is interfaced to fbdev via the <a href="http://www.nabble.com/file/p15480666/MiniGLX.html">MiniGLX</a> | ||||
| interface. | ||||
| MiniGLX is a subset of Xlib and GLX API functions which provides just | ||||
| enough functionality to setup OpenGL rendering and respond to simple | ||||
| @@ -244,5 +336,6 @@ See the <code>GL/miniglx.h</code> header file for details. | ||||
| </p> | ||||
|  | ||||
|  | ||||
|  | ||||
| </body> | ||||
| </html> | ||||
|   | ||||
| @@ -6,7 +6,7 @@ | ||||
|  | ||||
| <BODY> | ||||
|  | ||||
| <H1>Help Wanted</H1> | ||||
| <H1>Help Wanted / To-Do List</H1> | ||||
|  | ||||
| <p> | ||||
| We can always use more help with the Mesa project. | ||||
| @@ -14,36 +14,13 @@ Here are some specific ideas and areas where help would be appreciated: | ||||
| </p> | ||||
|  | ||||
| <ol> | ||||
| <li><p> | ||||
|     Generate the src/mesa/main/enums.c file with a Python script which | ||||
|     uses the gl_API.xml file. | ||||
|     </p> | ||||
| <li><p> | ||||
|     Try to auto-generate the display list "save" functions seen in dlist.c | ||||
|     using a Python script and the gl_API.xml file. | ||||
|     The gl_API.xml file will probably need a new tag to indicate whether or | ||||
|     not each function gets compiled into display lists. | ||||
|     </p> | ||||
| <li><p> | ||||
|     Maintenance of assembly language files on Linux, Windows and SPARC systems. | ||||
|     </p> | ||||
| <li><p> | ||||
|     Help to incorporate the 3Dlabs' shading language compiler for OpenGL 2.0. | ||||
|     </p> | ||||
| <li><p> | ||||
|     Implement assembly language (SSE/MMX) code generation for | ||||
|     vertex/fragment programs. | ||||
|     </p> | ||||
| <li><p> | ||||
|     Windows 98/NT driver building, maintenance and testing | ||||
|     (Karl Schultz has been doing a great job of this lately). | ||||
|     </p> | ||||
| <li><p> | ||||
|     Maintenance and testing of various drivers, such as DOS/DJGPP, GGI, etc. | ||||
|     </p> | ||||
| <li><p> | ||||
|     Write new tests for Glean. | ||||
|     </p> | ||||
| <li> | ||||
| Enable -Wstrict-aliasing=2 -fstrict-aliasing and track down aliasing | ||||
| issues in the code. | ||||
| <li> | ||||
| Windows 98/NT driver building, maintenance and testing | ||||
| <li> | ||||
| Maintenance and testing of lesser-used drivers, such as DOS/DJGPP, GGI, etc. | ||||
| </ol> | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -57,50 +57,31 @@ the DRI hardware drivers. | ||||
|  | ||||
| <li> | ||||
| <p> | ||||
| DRM kernel modules and header files from the | ||||
| <a href="http://dri.sf.net/" target="_parent">DRI</a> project. | ||||
| </p> | ||||
|  | ||||
| <p> | ||||
| If you don't already have the DRM file, you can get the sources from | ||||
| CVS by doing: | ||||
| <pre> | ||||
| cvs -z3 -d:pserver:anonymous@anoncvs.freedesktop.org:/cvs/dri co drm | ||||
| </pre> | ||||
| <p> | ||||
| See the <a href="http://dri.freedesktop.org/wiki/Building" target="_parent"> | ||||
| DRI Building Instructions</a> for the steps to build the DRM modules.  Mesa | ||||
| 6.5 requires at least libdrm 2.0.1 or greater. | ||||
| For Mesa 7.0.2 <a href="http://dri.freedesktop.org/libdrm/"> | ||||
| DRM version 2.3</a> is required. | ||||
| </p> | ||||
| <p> | ||||
| You can verify that the DRM files have been properly installed by | ||||
| running <code>pkg-config --modversion libdrm</code> | ||||
|  | ||||
| To check if you already have it, run: | ||||
| <br> | ||||
| <code>pkg-config --modversion libdrm</code> | ||||
| </p> | ||||
| <p> | ||||
| You can download and install a <a href="http://dri.freedesktop.org/libdrm/"> | ||||
| tarball release</a> or get the code from git with: | ||||
| <br> | ||||
| <code>git clone git://anongit.freedesktop.org/git/mesa/drm</code> | ||||
| <br> | ||||
| Then revert to the drm-2.3.0 tag with: | ||||
| <br> | ||||
| <code>git-reset --hard drm-2.3.0</code> | ||||
| </p> | ||||
| </li> | ||||
|  | ||||
| <li> | ||||
| Recent /usr/include/GL/glxproto.h file. | ||||
| <p>You'll need this if you get any errors about _GLXvop_BindTexImageEXT | ||||
| being undefined. | ||||
| </p> | ||||
| <p> | ||||
| Download/install the | ||||
| <a href="http://gitweb.freedesktop.org/?p=xorg/proto/glproto.git">glproto</a> | ||||
| module from X.org git, or grab the | ||||
| <A href="http://webcvs.freedesktop.org/*checkout*/xorg/proto/GL/glxproto.h?rev=1.9&content-type=text%2Fplain">glxproto.h file</a> and put it in the | ||||
| Mesa/include/GL/ directory. | ||||
| </p> | ||||
|  | ||||
| </li> | ||||
|  | ||||
| <li>DRI-enabled X server. | ||||
| <p>Visit | ||||
| <a href="http://www.xfree86.org" target="_parent">XFree86</a> | ||||
| or | ||||
| Relatively recent | ||||
| <a href="http://freedesktop.org/wiki/Software_2fXserver" target="_parent"> | ||||
| X.org</a> | ||||
| for more information. | ||||
| </p> | ||||
| X.org</a> release. | ||||
| Mesa depends on a number of X header and library files. | ||||
| </li> | ||||
|  | ||||
| </ol> | ||||
| @@ -287,7 +268,15 @@ already installed, you'll have to choose different directories, like | ||||
| To install Mesa's headers and libraries, run <code>make install</code>. | ||||
| But first, check the Mesa/configs/default file and examine the values | ||||
| of the <b>INSTALL_DIR</b> and <b>DRI_DRIVER_INSTALL_DIR</b> variables. | ||||
| Change them if needed, then run <code>make install</code> | ||||
| Change them if needed, then run <code>make install</code>. | ||||
| </p> | ||||
|  | ||||
| <p> | ||||
| The variable | ||||
| <b>DESTDIR</b> may also be used to install the contents to a temporary | ||||
| staging directory. | ||||
| This can be useful for package management. | ||||
| For example: <code>make install DESTDIR=/somepath/</code> | ||||
| </p> | ||||
|  | ||||
| <p> | ||||
| @@ -298,6 +287,26 @@ This is a handy way to compare multiple OpenGL implementations. | ||||
| </p> | ||||
|  | ||||
|  | ||||
| <H3>1.5 pkg-config support</H3> | ||||
|  | ||||
| <p> | ||||
| Running <code>make install</code> will install package configuration files | ||||
| for the pkg-config utility. | ||||
| </p> | ||||
|  | ||||
| <p> | ||||
| When compiling your OpenGL application you can use pkg-config to determine | ||||
| the proper compiler and linker flags. | ||||
| </p> | ||||
|  | ||||
| <p> | ||||
| For example, compiling and linking a GLUT application can be done with: | ||||
| </p> | ||||
| <pre> | ||||
|    gcc `pkg-config --cflags --libs glut` mydemo.c -o mydemo | ||||
| </pre> | ||||
|  | ||||
| <br> | ||||
|  | ||||
| <a name="windows"> | ||||
| <H2>2. Windows Compilation and Installation</H1> | ||||
|   | ||||
| @@ -129,7 +129,7 @@ GL_ARB_fragment_program extensions. | ||||
| </p> | ||||
|  | ||||
| <p> | ||||
| May 2007: Mesa 7.0 is released, implementing the OpenGL 2.1 specification | ||||
| June 2007: Mesa 7.0 is released, implementing the OpenGL 2.1 specification | ||||
| and OpenGL Shading Language. | ||||
| </p> | ||||
|  | ||||
|   | ||||
| @@ -86,29 +86,32 @@ and their respective licenses. | ||||
| <H1>Mesa Component Licenses</H1> | ||||
|  | ||||
| <pre> | ||||
| Component         Location               Primary Author      License | ||||
| ---------------------------------------------------------------------------- | ||||
| Main Mesa code    src/mesa/              Brian Paul          Mesa (MIT) | ||||
| Component         Location               License | ||||
| ------------------------------------------------------------------ | ||||
| Main Mesa code    src/mesa/              Mesa (MIT) | ||||
|  | ||||
| Device drivers    src/mesa/drivers/*     See drivers         See drivers | ||||
| Device drivers    src/mesa/drivers/*     MIT, generally | ||||
|  | ||||
| Ext headers       include/GL/glext.h     SGI                 SGI Free B | ||||
| Ext headers       include/GL/glext.h     Khronos | ||||
|                   include/GL/glxext.h | ||||
|  | ||||
| GLUT              src/glut/              Mark Kilgard        Mark's copyright | ||||
| GLUT              src/glut/              Mark Kilgard's copyright | ||||
|  | ||||
| Mesa GLU library  src/glu/mesa/          Brian Paul          GNU-LGPL | ||||
| SGI GLU library   src/glu/sgi/           SGI Free B | ||||
|  | ||||
| SGI GLU library   src/glu/sgi/           SGI                 SGI Free B | ||||
| demo programs     progs/demos/           see source files | ||||
|  | ||||
| demo programs     progs/demos/           various             see source files | ||||
| X demos           progs/xdemos/          see source files | ||||
|  | ||||
| X demos           progs/xdemos/          Brian Paul          see source files | ||||
| SGI demos         progs/samples/         SGI license | ||||
|  | ||||
| SGI demos         progs/samples/         SGI                 SGI copyright | ||||
|  | ||||
| RedBook demos     progs/redbook/         SGI                 SGI copyright | ||||
| RedBook demos     progs/redbook/         SGI license | ||||
| </pre> | ||||
|  | ||||
| <p> | ||||
| In general, consult the source files for license terms. | ||||
| </p> | ||||
|  | ||||
|  | ||||
| </body> | ||||
| </html> | ||||
|   | ||||
							
								
								
									
										21
									
								
								docs/memory.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								docs/memory.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| <HTML> | ||||
|  | ||||
| <TITLE>Mesa News</TITLE> | ||||
|  | ||||
| <head><link rel="stylesheet" type="text/css" href="mesa.css"></head> | ||||
|  | ||||
| <BODY> | ||||
|  | ||||
| <body bgcolor="#eeeeee"> | ||||
|  | ||||
| <H1>DRI Memory Management</H1> | ||||
|  | ||||
| <p> | ||||
| Thomas Hellström's  | ||||
| <a href="http://www.tungstengraphics.com/mm.pdf">Memory Management | ||||
| whitepaper</a> describes the goals, design and implementation of the | ||||
| new DRI memory management system. | ||||
| </p> | ||||
|  | ||||
| </body> | ||||
| </html> | ||||
| @@ -28,7 +28,7 @@ | ||||
| 	</li><li><a href="http://innovation3d.sourceforge.net/" target="_parent">Innovation3D</a> | ||||
| 	- 3D modeling program | ||||
| 	</li><li><a href="http://mesa3d.sourceforge.net/notfound.html" target="_parent">KWRL</a> - VRML browser | ||||
| 	</li><li><a href="http://www.vermontel.com/%7Ecmorley/vrml.html" target="_parent">LibVRML97/Lookat</a> | ||||
| 	</li><li><a href="http://www.openvrml.org/" target="_parent">LibVRML97/Lookat</a> | ||||
| 	- VRML viewer | ||||
| 	</li><li><a href="http://aig.cs.man.ac.uk/systems/Maverik/" target="_parent">Maverik</a> | ||||
| 	- VR graphics and interaction system | ||||
|   | ||||
| @@ -11,7 +11,45 @@ | ||||
| <H1>News</H1> | ||||
|  | ||||
|  | ||||
| <h2>May ???, 2007</h2> | ||||
| <h2>April 4, 2008</h2> | ||||
| <p> | ||||
| <a href="relnotes-7.0.3.html">Mesa 7.0.3</a> is released. | ||||
| This is a bug-fix release. | ||||
| </p> | ||||
|  | ||||
|  | ||||
| <h2>November 13, 2007</h2> | ||||
|  | ||||
| <p> | ||||
| Gallium3D is the codename for the new Mesa device driver architecture | ||||
| which is currently under development. | ||||
| A <a href="http://www.tungstengraphics.com/wiki/index.php/Gallium3D" | ||||
| target="_parent"> summary</a> of the architecture can be found on the | ||||
| Tungsten Graphics website. | ||||
| </p> | ||||
| <p> | ||||
| Gallium3D development is taking place on the <em>gallium-0.1</em> branch | ||||
| of the git repository. | ||||
| Currently, there's only a software-only driver and an Intel i915/945 driver | ||||
| but other drivers will be coming... | ||||
| </p> | ||||
|  | ||||
|  | ||||
| <h2>November 10, 2007</h2> | ||||
| <p> | ||||
| <a href="relnotes-7.0.2.html">Mesa 7.0.2</a> is released. | ||||
| This is a bug-fix release. | ||||
| </p> | ||||
|  | ||||
|  | ||||
| <h2>August 3, 2007</h2> | ||||
| <p> | ||||
| <a href="relnotes-7.0.1.html">Mesa 7.0.1</a> is released. | ||||
| This is a bug-fix release. | ||||
| </p> | ||||
|  | ||||
|  | ||||
| <h2>June 22, 2007</h2> | ||||
| <p> | ||||
| <a href="relnotes-7.0.html">Mesa 7.0</a> is released. | ||||
| This is a stable release featuring OpenGL 2.1 support. | ||||
|   | ||||
							
								
								
									
										101
									
								
								docs/relnotes-7.0.1.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										101
									
								
								docs/relnotes-7.0.1.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,101 @@ | ||||
| <HTML> | ||||
|  | ||||
| <TITLE>Mesa Release Notes</TITLE> | ||||
|  | ||||
| <head><link rel="stylesheet" type="text/css" href="mesa.css"></head> | ||||
|  | ||||
| <BODY> | ||||
|  | ||||
| <body bgcolor="#eeeeee"> | ||||
|  | ||||
| <H1>Mesa 7.0.1 Release Notes / August 3, 2007</H1> | ||||
|  | ||||
| <p> | ||||
| Mesa 7.0.1 is a stable release with bug fixes since version 7.0. | ||||
| </p> | ||||
|  | ||||
|  | ||||
| <h2>MD5 checksums</h2> | ||||
| <pre> | ||||
| db55141a44b902fcc61d9265b7862c06  MesaLib-7.0.1.tar.gz | ||||
| c056abd763e899114bf745c9eedbf9ad  MesaLib-7.0.1.tar.bz2 | ||||
| ecc2637547fae2b38271ae362d013afa  MesaLib-7.0.1.zip | ||||
| b85a4a5be4e829f4a1165e4514b13183  MesaDemos-7.0.1.tar.gz | ||||
| 3b66b3268df12ca8a6c4e0c4c457912c  MesaDemos-7.0.1.tar.bz2 | ||||
| b1c18006f16e44e80fea66774c59b391  MesaDemos-7.0.1.zip | ||||
| b87a69986839ae43ce12fc8e3dc1ebb4  MesaGLUT-7.0.1.tar.gz | ||||
| 25f30d0c1651997b4412366ba0572f7f  MesaGLUT-7.0.1.tar.bz2 | ||||
| 676ee6682a6ce78a5540554fd975c03e  MesaGLUT-7.0.1.zip | ||||
| </pre> | ||||
|  | ||||
|  | ||||
| <h2>New features</h2> | ||||
| <ul> | ||||
| <li>Added a bluegene-osmesa build config | ||||
| </ul> | ||||
|  | ||||
| <h2>Bug fixes</h2> | ||||
| <ul> | ||||
| <li>Fixed some MingW build issues | ||||
| <li>Added a few missing OpenGL 2.0 API entrypoints: | ||||
|   <ul> | ||||
|   <li>glVertexAttrib4bv | ||||
|   <li>glVertexAttrib4iv | ||||
|   <li>glVertexAttrib4ubv | ||||
|   <li>glVertexAttrib4uiv | ||||
|   <li>glVertexAttrib4usv | ||||
|   </ul> | ||||
| <li>Fixed glDrawPixels(GL_STENCIL_INDEX) pixel transfer bug 11457 | ||||
| <li>GLSL bug fix: added vec2(vec4) constructor | ||||
| <li>GLSL bug fix: .strq and .rgba writemasks didn't always work | ||||
| <li>Stencil pixel map didn't always work for glDrawPixels (bug 11475) | ||||
| <li>Fixed polygon stipple bug in i915 driver | ||||
| <li>Binding a zero-sized texture didn't disable texturing (bug 11309) | ||||
| <li>Queries of GL_INFO_LOG_LENGTH, GL_SHADER_SOURCE_LENGTH didn't include | ||||
| the terminating zero (bug 11588) | ||||
| <li>glXChooseFBConfig() in Xlib driver didn't handle GLX_STEREO flag properly | ||||
| <li>Fixed a GLSL function call bug (#11731) | ||||
| <li>glPointParameteriv(GL_DISTANCE_ATTENUATION_EXT) didn't work (bug 11754) | ||||
| <li>glGetAttribLocation() always returned 1 (bug 11774) | ||||
| <li>Fixed a few memory-related bugs in GLU library | ||||
| </ul> | ||||
|  | ||||
|  | ||||
| <h2>Changes</h2> | ||||
| <ul> | ||||
| <li>The libOSMesa library version has been reverted to 6.5.3 (soname=6) | ||||
| in order to avoid application linking issues.  Otherwise, applications | ||||
| previously linked with libOSMesa.so.6 would no longer link with libOSMesa.so.7 | ||||
| <li>Dropped obsolete, unmaintained Windows project files for VC6 and VC7. | ||||
| </ul> | ||||
|  | ||||
|  | ||||
| <h2>To Do (someday) items</h2> | ||||
| <ul> | ||||
| <li>Switch to freeglut | ||||
| <li>Fix linux-glide target/driver. | ||||
| <li>Improved lambda and derivative calculation for frag progs. | ||||
| </ul> | ||||
|  | ||||
|  | ||||
| <h2>Driver Status</h2> | ||||
|  | ||||
| <pre> | ||||
| Driver			Status | ||||
| ----------------------	---------------------- | ||||
| DRI drivers		varies with the driver | ||||
| XMesa/GLX (on Xlib)	implements OpenGL 2.1 | ||||
| OSMesa (off-screen)	implements OpenGL 2.1 | ||||
| Windows/Win32		implements OpenGL 2.1 | ||||
| Glide (3dfx Voodoo1/2)	implements OpenGL 1.3 | ||||
| SVGA			unsupported | ||||
| Wind River UGL		unsupported | ||||
| DJGPP			unsupported | ||||
| GGI			unsupported | ||||
| BeOS			unsupported | ||||
| Allegro			unsupported | ||||
| D3D			unsupported | ||||
| </pre> | ||||
|  | ||||
| </body> | ||||
| </html> | ||||
							
								
								
									
										88
									
								
								docs/relnotes-7.0.2.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										88
									
								
								docs/relnotes-7.0.2.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,88 @@ | ||||
| <HTML> | ||||
|  | ||||
| <TITLE>Mesa Release Notes</TITLE> | ||||
|  | ||||
| <head><link rel="stylesheet" type="text/css" href="mesa.css"></head> | ||||
|  | ||||
| <BODY> | ||||
|  | ||||
| <body bgcolor="#eeeeee"> | ||||
|  | ||||
| <H1>Mesa 7.0.2 Release Notes / November 10, 2007</H1> | ||||
|  | ||||
| <p> | ||||
| Mesa 7.0.2 is a stable release with bug fixes since version 7.0. | ||||
| </p> | ||||
|  | ||||
|  | ||||
| <h2>MD5 checksums</h2> | ||||
| <pre> | ||||
| c9cf607f36e7e50172f5f9c7d552c34e  MesaLib-7.0.2.tar.gz | ||||
| 93e6ed7924ff069a4f883b4fce5349dc  MesaLib-7.0.2.tar.bz2 | ||||
| 10c324c3613f90f059cb8429f700f300  MesaLib-7.0.2.zip | ||||
| aa8b1244a5de1d23e5814bf9b67f1435  MesaDemos-7.0.2.tar.gz | ||||
| 11a10410bae7be85cf25bc7119966468  MesaDemos-7.0.2.tar.bz2 | ||||
| 1dd0b5fd6d69430a2fd76a6adbfd8fff  MesaDemos-7.0.2.zip | ||||
| a7dbf25c025955858bd2d89a6eb6db4c  MesaGLUT-7.0.2.tar.gz | ||||
| 3a33f8efc8c58a592a854cfc7a643286  MesaGLUT-7.0.2.tar.bz2 | ||||
| eba4ef2aa8c362ead81b54357f1903a3  MesaGLUT-7.0.2.zip | ||||
| </pre> | ||||
|  | ||||
|  | ||||
| <h2>New features</h2> | ||||
| <ul> | ||||
| <li>Updated Windows VC7 project files | ||||
| <li>Added DESTDIR variable for 'make install' | ||||
| <li>Added pkg-config files for gl, glu, glut and glw libraries | ||||
| <li>Added bluegene-xlc-osmesa and catamount-osmesa-pgi configs | ||||
| <li>Support for Intel G33/Q33/Q35 graphics chipsets | ||||
| </ul> | ||||
|  | ||||
| <h2>Bug fixes</h2> | ||||
| <ul> | ||||
| <li>Fixed a vertex buffer wrapping issue (bug 9962) | ||||
| <li>Added mutex protection around texture object reference counters | ||||
| <li>Added checking/support for additional chips in the i915/i945 family | ||||
| (see 11978) | ||||
| <li>Fixed a blending/banding issue (bug 11931) | ||||
| <li>Fixed a GLU matrix inversion bug (#6748) | ||||
| <li>Fixed problem with large glDrawArrays calls and indirect rendering (bug 12141) | ||||
| <li>Fixed an assortment of i965 driver bugs | ||||
| <li>Fixed x86-64 vertex transformation bug (12216) | ||||
| <li>Fixed X server crash caused by multiple indirect rendering clients | ||||
| <li>Parsing of state.texgen in ARB vertex/fragment programs didn't work (bug 12313) | ||||
| <li>Fixed a glCopyPixels/glPixelZoom bug (12417) | ||||
| <li>Fixed a bug when using glMaterial in display lists (bug 10604) | ||||
| <li>Fixed a few GLUT/Fortran issues (Bill Mitchell) | ||||
| <li>Fixed Blender crash bug (12164) | ||||
| <li>Fixed some issues preventing cross-compiling | ||||
| <li>Fixed up broken GL_ATI_separate_stencil extension | ||||
| <li>glDrawArrays(count=0) led to a crash | ||||
| <li>Fix SSE code gen memory leak, possible crash | ||||
| <li>Fixed MMX 565 rgb conversion problem (bug 12614) | ||||
| <li>Added -fno-strict-aliasing and -fPIC flags for gcc | ||||
| <li>Fixed Blender crash in Unichrome driver (bug 13142) | ||||
| </ul> | ||||
|  | ||||
|  | ||||
| <h2>Driver Status</h2> | ||||
|  | ||||
| <pre> | ||||
| Driver			Status | ||||
| ----------------------	---------------------- | ||||
| DRI drivers		varies with the driver | ||||
| XMesa/GLX (on Xlib)	implements OpenGL 2.1 | ||||
| OSMesa (off-screen)	implements OpenGL 2.1 | ||||
| Windows/Win32		implements OpenGL 2.1 | ||||
| Glide (3dfx Voodoo1/2)	implements OpenGL 1.3 | ||||
| SVGA			unsupported | ||||
| Wind River UGL		unsupported | ||||
| DJGPP			unsupported | ||||
| GGI			unsupported | ||||
| BeOS			unsupported | ||||
| Allegro			unsupported | ||||
| D3D			unsupported | ||||
| </pre> | ||||
|  | ||||
| </body> | ||||
| </html> | ||||
							
								
								
									
										75
									
								
								docs/relnotes-7.0.3.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										75
									
								
								docs/relnotes-7.0.3.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,75 @@ | ||||
| <HTML> | ||||
|  | ||||
| <TITLE>Mesa Release Notes</TITLE> | ||||
|  | ||||
| <head><link rel="stylesheet" type="text/css" href="mesa.css"></head> | ||||
|  | ||||
| <BODY> | ||||
|  | ||||
| <body bgcolor="#eeeeee"> | ||||
|  | ||||
| <H1>Mesa 7.0.3 Release Notes / April 4, 2008</H1> | ||||
|  | ||||
| <p> | ||||
| Mesa 7.0.3 is a stable release with bug fixes since version 7.0.2. | ||||
| </p> | ||||
|  | ||||
|  | ||||
| <h2>MD5 checksums</h2> | ||||
| <pre> | ||||
| </pre> | ||||
|  | ||||
|  | ||||
| <h2>Bug fixes</h2> | ||||
| <ul> | ||||
| <li>Added missing glw.pc.in file to release tarball | ||||
| <li>Fix GLUT/Fortran issues | ||||
| <li>GLSL gl_FrontLightModelProduct.sceneColor variable wasn't defined | ||||
| <li>Fix crash upon GLSL variable array indexes (not yet supported) | ||||
| <li>Two-sided stencil test didn't work in software rendering | ||||
| <li>Fix two-sided lighting bugs/crashes (bug 13368) | ||||
| <li>GLSL gl_FrontFacing didn't work properly | ||||
| <li>glGetActiveUniform returned incorrect sizes (bug 13751) | ||||
| <li>Fix several bugs relating to uniforms and attributes in GLSL API (Bruce Merry, bug 13753) | ||||
| <li>glTexImage3D(GL_PROXY_TEXTURE_3D) mis-set teximage depth field | ||||
| <li>Fixed GLX indirect vertex array rendering bug (14197) | ||||
| <li>Fixed crash when deleting framebuffer objects (bugs 13507, 14293) | ||||
| <li>User-defined clip planes enabled for R300 (bug 9871) | ||||
| <li>Fixed glBindTexture() crash upon bad target (bug 14514) | ||||
| <li>Fixed potential crash in glDrawPixels(GL_DEPTH_COMPONENT) (bug 13915) | ||||
| <li>Bad strings given to glProgramStringARB() didn't generate GL_INVALID_OPERATION | ||||
| <li>Fixed minor point rasterization regression (bug 11016) | ||||
| <li>state.texenv.color state var didn't work in GL_ARB_fragment_program (bug 14931) | ||||
| <li>glBitmap from a PBO didn't always work | ||||
| <li>glGetTexImage into a PBO didn't always work | ||||
| <li>Comments at the end of ARB vertex/fragment programs crashed the parser | ||||
| </ul> | ||||
|  | ||||
| <h2>Changes</h2> | ||||
| <ul> | ||||
| <li>Updated glext.h to version 40 | ||||
| </ul> | ||||
|  | ||||
|  | ||||
|  | ||||
| <h2>Driver Status</h2> | ||||
|  | ||||
| <pre> | ||||
| Driver			Status | ||||
| ----------------------	---------------------- | ||||
| DRI drivers		varies with the driver | ||||
| XMesa/GLX (on Xlib)	implements OpenGL 2.1 | ||||
| OSMesa (off-screen)	implements OpenGL 2.1 | ||||
| Windows/Win32		implements OpenGL 2.1 | ||||
| Glide (3dfx Voodoo1/2)	implements OpenGL 1.3 | ||||
| SVGA			unsupported | ||||
| Wind River UGL		unsupported | ||||
| DJGPP			unsupported | ||||
| GGI			unsupported | ||||
| BeOS			unsupported | ||||
| Allegro			unsupported | ||||
| D3D			unsupported | ||||
| </pre> | ||||
|  | ||||
| </body> | ||||
| </html> | ||||
| @@ -8,16 +8,25 @@ | ||||
|  | ||||
| <body bgcolor="#eeeeee"> | ||||
|  | ||||
| <H1>Mesa 7.0 Release Notes / (<em>in progress</em>)</H1> | ||||
| <H1>Mesa 7.0 Release Notes / June 22, 2007</H1> | ||||
|  | ||||
| <p> | ||||
| Mesa 7.0 is a stable release, featuring OpenGL 2.1 API support. | ||||
| A number of bugs have been fixed since the 6.5.3 release. | ||||
| </p> | ||||
|  | ||||
|  | ||||
| <h2>MD5 checksums</h2> | ||||
| <pre> | ||||
| TBD | ||||
| 35a1698986f7ac8dc435624ee9256cda  MesaLib-7.0.tar.gz | ||||
| 50c371455fa7532c04aa0a970f9bc51f  MesaLib-7.0.tar.bz2 | ||||
| bcedb6f43c97c1bc49e5cc7f12835722  MesaLib-7.0.zip | ||||
| 9bad332c7b74f59be96556135212ca9e  MesaDemos-7.0.tar.gz | ||||
| fada2bc1f29da513e015fda1e3abd0c0  MesaDemos-7.0.tar.bz2 | ||||
| 84e3bbe470d983ae32f1f0c779faf99e  MesaDemos-7.0.zip | ||||
| 76c7bb54f9850c689eba844f6daed332  MesaGLUT-7.0.tar.gz | ||||
| 4af28296e02772ef1de00e4e79bf3d12  MesaGLUT-7.0.tar.bz2 | ||||
| 9043cb0b54cc03d1874728d74b12188c  MesaGLUT-7.0.zip | ||||
| </pre> | ||||
|  | ||||
|  | ||||
| @@ -37,6 +46,12 @@ TBD | ||||
| <li>Fixed R300 vertex program/matrix bug (10848) | ||||
| <li>GLSL dFdx() and dFdy() work for fragment program inputs now (texcoords) | ||||
| <li>Specifying an invalid texture unit as a sampler could lead to a crash | ||||
| <li>The GLX protocol request for glXDestroyPBuffer() was incorrect (bug 10983) | ||||
| <li>ARB vp state.light[n].half value was incorrect (bug 10987) | ||||
| <li>Fixed a positional light source bug (bug 11009) | ||||
| <li>Fixed point size attenuation problem (bug 11042) | ||||
| <li>glPopAttrib didn't restore texture object's LOD bias (bug 11049) | ||||
| <li>Fixed a TLS / TEXTREL problem (bug 7459) | ||||
| </ul> | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -20,6 +20,9 @@ The release notes summarize what's new or changed in each Mesa release. | ||||
| </p> | ||||
|  | ||||
| <UL> | ||||
| <LI><A HREF="relnotes-7.0.3.html">7.0.3 release notes</A> | ||||
| <LI><A HREF="relnotes-7.0.2.html">7.0.2 release notes</A> | ||||
| <LI><A HREF="relnotes-7.0.1.html">7.0.1 release notes</A> | ||||
| <LI><A HREF="relnotes-7.0.html">7.0 release notes</A> | ||||
| <LI><A HREF="relnotes-6.5.3.html">6.5.3 release notes</A> | ||||
| <LI><A HREF="relnotes-6.5.2.html">6.5.2 release notes</A> | ||||
|   | ||||
| @@ -48,6 +48,7 @@ in Mesa: | ||||
| <li>The inverse trig functions asin(), acos(), and atan() are not implemented | ||||
| <li>The gl_Color and gl_SecondaryColor varying vars are interpolated | ||||
|     without perspective correction | ||||
| <li>Floating point literal suffixes 'f' and 'F' aren't allowed. | ||||
| </ul> | ||||
|  | ||||
| <p> | ||||
|   | ||||
| @@ -1,8 +1,8 @@ | ||||
| /* | ||||
|  * Mesa 3-D graphics library | ||||
|  * Version:  6.5.1 | ||||
|  * Version:  7.0 | ||||
|  * | ||||
|  * Copyright (C) 1999-2006  Brian Paul   All Rights Reserved. | ||||
|  * Copyright (C) 1999-2007  Brian Paul   All Rights Reserved. | ||||
|  * | ||||
|  * Permission is hereby granted, free of charge, to any person obtaining a | ||||
|  * copy of this software and associated documentation files (the "Software"), | ||||
| @@ -84,7 +84,8 @@ | ||||
| #include <windows.h> | ||||
| #endif | ||||
|  | ||||
| #if defined(_WIN32) && !defined(_WINGDI_) && !defined(_GNU_H_WINDOWS32_DEFINES) && !defined(OPENSTEP) && !defined(__CYGWIN__) | ||||
| #if defined(_WIN32) && !defined(_WINGDI_) && !defined(_GNU_H_WINDOWS32_DEFINES) \ | ||||
|      && !defined(OPENSTEP) && !defined(__CYGWIN__) || defined(__MINGW32__) | ||||
| #include <GL/mesa_wgl.h> | ||||
| #endif | ||||
|  | ||||
| @@ -2161,11 +2162,11 @@ typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLsh | ||||
| #define GL_DEBUG_PRINT_MESA               0x875A | ||||
| #define GL_DEBUG_ASSERT_MESA              0x875B | ||||
|  | ||||
| GLAPI GLhandleARB APIENTRY glCreateDebugObjectMESA (void); | ||||
| GLAPI void APIENTRY glClearDebugLogMESA (GLhandleARB obj, GLenum logType, GLenum shaderType); | ||||
| GLAPI void APIENTRY glGetDebugLogMESA (GLhandleARB obj, GLenum logType, GLenum shaderType, GLsizei maxLength, | ||||
| GLAPI GLhandleARB GLAPIENTRY glCreateDebugObjectMESA (void); | ||||
| GLAPI void GLAPIENTRY glClearDebugLogMESA (GLhandleARB obj, GLenum logType, GLenum shaderType); | ||||
| GLAPI void GLAPIENTRY glGetDebugLogMESA (GLhandleARB obj, GLenum logType, GLenum shaderType, GLsizei maxLength, | ||||
|                                          GLsizei *length, GLcharARB *debugLog); | ||||
| GLAPI GLsizei APIENTRY glGetDebugLogLengthMESA (GLhandleARB obj, GLenum logType, GLenum shaderType); | ||||
| GLAPI GLsizei GLAPIENTRY glGetDebugLogLengthMESA (GLhandleARB obj, GLenum logType, GLenum shaderType); | ||||
|  | ||||
| #endif /* GL_MESA_shader_debug */ | ||||
|  | ||||
|   | ||||
| @@ -33,6 +33,7 @@ | ||||
| #define glActiveStencilFaceEXT		MANGLE(ActiveStencilFaceEXT) | ||||
| #define glActiveTextureARB		MANGLE(ActiveTextureARB) | ||||
| #define glActiveTexture		MANGLE(ActiveTexture) | ||||
| #define glActiveVaryingNV		MANGLE(ActiveVaryingNV) | ||||
| #define glAlphaFragmentOp1ATI		MANGLE(AlphaFragmentOp1ATI) | ||||
| #define glAlphaFragmentOp2ATI		MANGLE(AlphaFragmentOp2ATI) | ||||
| #define glAlphaFragmentOp3ATI		MANGLE(AlphaFragmentOp3ATI) | ||||
| @@ -52,11 +53,16 @@ | ||||
| #define glBeginOcclusionQueryNV		MANGLE(BeginOcclusionQueryNV) | ||||
| #define glBeginQueryARB		MANGLE(BeginQueryARB) | ||||
| #define glBeginQuery		MANGLE(BeginQuery) | ||||
| #define glBeginTransformFeedbackNV		MANGLE(BeginTransformFeedbackNV) | ||||
| #define glBeginVertexShaderEXT		MANGLE(BeginVertexShaderEXT) | ||||
| #define glBindAttribLocationARB		MANGLE(BindAttribLocationARB) | ||||
| #define glBindAttribLocation		MANGLE(BindAttribLocation) | ||||
| #define glBindBufferARB		MANGLE(BindBufferARB) | ||||
| #define glBindBufferBaseNV		MANGLE(BindBufferBaseNV) | ||||
| #define glBindBuffer		MANGLE(BindBuffer) | ||||
| #define glBindBufferOffsetNV		MANGLE(BindBufferOffsetNV) | ||||
| #define glBindBufferRangeNV		MANGLE(BindBufferRangeNV) | ||||
| #define glBindFragDataLocationEXT		MANGLE(BindFragDataLocationEXT) | ||||
| #define glBindFragmentShaderATI		MANGLE(BindFragmentShaderATI) | ||||
| #define glBindFramebufferEXT		MANGLE(BindFramebufferEXT) | ||||
| #define glBindLightParameterEXT		MANGLE(BindLightParameterEXT) | ||||
| @@ -97,6 +103,7 @@ | ||||
| #define glBlitFramebufferEXT		MANGLE(BlitFramebufferEXT) | ||||
| #define glBufferDataARB		MANGLE(BufferDataARB) | ||||
| #define glBufferData		MANGLE(BufferData) | ||||
| #define glBufferParameteriAPPLE		MANGLE(BufferParameteriAPPLE) | ||||
| #define glBufferSubDataARB		MANGLE(BufferSubDataARB) | ||||
| #define glBufferSubData		MANGLE(BufferSubData) | ||||
| #define glCallList		MANGLE(CallList) | ||||
| @@ -104,8 +111,11 @@ | ||||
| #define glCheckFramebufferStatusEXT		MANGLE(CheckFramebufferStatusEXT) | ||||
| #define glClampColorARB		MANGLE(ClampColorARB) | ||||
| #define glClearAccum		MANGLE(ClearAccum) | ||||
| #define glClearColorIiEXT		MANGLE(ClearColorIiEXT) | ||||
| #define glClearColorIuiEXT		MANGLE(ClearColorIuiEXT) | ||||
| #define glClearColor		MANGLE(ClearColor) | ||||
| #define glClearDebugLogMESA		MANGLE(ClearDebugLogMESA) | ||||
| #define glClearDepthdNV		MANGLE(ClearDepthdNV) | ||||
| #define glClearDepth		MANGLE(ClearDepth) | ||||
| #define glClearIndex		MANGLE(ClearIndex) | ||||
| #define glClear		MANGLE(Clear) | ||||
| @@ -161,6 +171,7 @@ | ||||
| #define glColorFragmentOp1ATI		MANGLE(ColorFragmentOp1ATI) | ||||
| #define glColorFragmentOp2ATI		MANGLE(ColorFragmentOp2ATI) | ||||
| #define glColorFragmentOp3ATI		MANGLE(ColorFragmentOp3ATI) | ||||
| #define glColorMaskIndexedEXT		MANGLE(ColorMaskIndexedEXT) | ||||
| #define glColorMask		MANGLE(ColorMask) | ||||
| #define glColorMaterial		MANGLE(ColorMaterial) | ||||
| #define glColorPointerEXT		MANGLE(ColorPointerEXT) | ||||
| @@ -261,19 +272,23 @@ | ||||
| #define glDeleteTextures		MANGLE(DeleteTextures) | ||||
| #define glDeleteVertexArraysAPPLE		MANGLE(DeleteVertexArraysAPPLE) | ||||
| #define glDeleteVertexShaderEXT		MANGLE(DeleteVertexShaderEXT) | ||||
| #define glDepthBoundsdNV		MANGLE(DepthBoundsdNV) | ||||
| #define glDepthBoundsEXT		MANGLE(DepthBoundsEXT) | ||||
| #define glDepthFunc		MANGLE(DepthFunc) | ||||
| #define glDepthMask		MANGLE(DepthMask) | ||||
| #define glDepthRangedNV		MANGLE(DepthRangedNV) | ||||
| #define glDepthRange		MANGLE(DepthRange) | ||||
| #define glDetachObjectARB		MANGLE(DetachObjectARB) | ||||
| #define glDetachShader		MANGLE(DetachShader) | ||||
| #define glDetailTexFuncSGIS		MANGLE(DetailTexFuncSGIS) | ||||
| #define glDisableClientState		MANGLE(DisableClientState) | ||||
| #define glDisableIndexedEXT		MANGLE(DisableIndexedEXT) | ||||
| #define glDisable		MANGLE(Disable) | ||||
| #define glDisableVariantClientStateEXT		MANGLE(DisableVariantClientStateEXT) | ||||
| #define glDisableVertexAttribArrayARB		MANGLE(DisableVertexAttribArrayARB) | ||||
| #define glDisableVertexAttribArray		MANGLE(DisableVertexAttribArray) | ||||
| #define glDrawArraysEXT		MANGLE(DrawArraysEXT) | ||||
| #define glDrawArraysInstancedEXT		MANGLE(DrawArraysInstancedEXT) | ||||
| #define glDrawArrays		MANGLE(DrawArrays) | ||||
| #define glDrawBuffer		MANGLE(DrawBuffer) | ||||
| #define glDrawBuffersARB		MANGLE(DrawBuffersARB) | ||||
| @@ -281,6 +296,7 @@ | ||||
| #define glDrawBuffers		MANGLE(DrawBuffers) | ||||
| #define glDrawElementArrayAPPLE		MANGLE(DrawElementArrayAPPLE) | ||||
| #define glDrawElementArrayATI		MANGLE(DrawElementArrayATI) | ||||
| #define glDrawElementsInstancedEXT		MANGLE(DrawElementsInstancedEXT) | ||||
| #define glDrawElements		MANGLE(DrawElements) | ||||
| #define glDrawMeshArraysSUN		MANGLE(DrawMeshArraysSUN) | ||||
| #define glDrawPixels		MANGLE(DrawPixels) | ||||
| @@ -296,6 +312,7 @@ | ||||
| #define glElementPointerAPPLE		MANGLE(ElementPointerAPPLE) | ||||
| #define glElementPointerATI		MANGLE(ElementPointerATI) | ||||
| #define glEnableClientState		MANGLE(EnableClientState) | ||||
| #define glEnableIndexedEXT		MANGLE(EnableIndexedEXT) | ||||
| #define glEnable		MANGLE(Enable) | ||||
| #define glEnableVariantClientStateEXT		MANGLE(EnableVariantClientStateEXT) | ||||
| #define glEnableVertexAttribArrayARB		MANGLE(EnableVertexAttribArrayARB) | ||||
| @@ -306,6 +323,7 @@ | ||||
| #define glEndOcclusionQueryNV		MANGLE(EndOcclusionQueryNV) | ||||
| #define glEndQueryARB		MANGLE(EndQueryARB) | ||||
| #define glEndQuery		MANGLE(EndQuery) | ||||
| #define glEndTransformFeedbackNV		MANGLE(EndTransformFeedbackNV) | ||||
| #define glEndVertexShaderEXT		MANGLE(EndVertexShaderEXT) | ||||
| #define glEvalCoord1d		MANGLE(EvalCoord1d) | ||||
| #define glEvalCoord1dv		MANGLE(EvalCoord1dv) | ||||
| @@ -331,6 +349,7 @@ | ||||
| #define glFinishObjectAPPLE		MANGLE(FinishObjectAPPLE) | ||||
| #define glFinishTextureSUNX		MANGLE(FinishTextureSUNX) | ||||
| #define glFlush		MANGLE(Flush) | ||||
| #define glFlushMappedBufferRangeAPPLE		MANGLE(FlushMappedBufferRangeAPPLE) | ||||
| #define glFlushPixelDataRangeNV		MANGLE(FlushPixelDataRangeNV) | ||||
| #define glFlushRasterSGIX		MANGLE(FlushRasterSGIX) | ||||
| #define glFlushVertexArrayRangeAPPLE		MANGLE(FlushVertexArrayRangeAPPLE) | ||||
| @@ -370,6 +389,9 @@ | ||||
| #define glFramebufferTexture1DEXT		MANGLE(FramebufferTexture1DEXT) | ||||
| #define glFramebufferTexture2DEXT		MANGLE(FramebufferTexture2DEXT) | ||||
| #define glFramebufferTexture3DEXT		MANGLE(FramebufferTexture3DEXT) | ||||
| #define glFramebufferTextureEXT		MANGLE(FramebufferTextureEXT) | ||||
| #define glFramebufferTextureFaceEXT		MANGLE(FramebufferTextureFaceEXT) | ||||
| #define glFramebufferTextureLayerEXT		MANGLE(FramebufferTextureLayerEXT) | ||||
| #define glFrameZoomSGIX		MANGLE(FrameZoomSGIX) | ||||
| #define glFreeObjectBufferATI		MANGLE(FreeObjectBufferATI) | ||||
| #define glFrontFace		MANGLE(FrontFace) | ||||
| @@ -398,12 +420,14 @@ | ||||
| #define glGetActiveAttrib		MANGLE(GetActiveAttrib) | ||||
| #define glGetActiveUniformARB		MANGLE(GetActiveUniformARB) | ||||
| #define glGetActiveUniform		MANGLE(GetActiveUniform) | ||||
| #define glGetActiveVaryingNV		MANGLE(GetActiveVaryingNV) | ||||
| #define glGetArrayObjectfvATI		MANGLE(GetArrayObjectfvATI) | ||||
| #define glGetArrayObjectivATI		MANGLE(GetArrayObjectivATI) | ||||
| #define glGetAttachedObjectsARB		MANGLE(GetAttachedObjectsARB) | ||||
| #define glGetAttachedShaders		MANGLE(GetAttachedShaders) | ||||
| #define glGetAttribLocationARB		MANGLE(GetAttribLocationARB) | ||||
| #define glGetAttribLocation		MANGLE(GetAttribLocation) | ||||
| #define glGetBooleanIndexedvEXT		MANGLE(GetBooleanIndexedvEXT) | ||||
| #define glGetBooleanv		MANGLE(GetBooleanv) | ||||
| #define glGetBufferParameterivARB		MANGLE(GetBufferParameterivARB) | ||||
| #define glGetBufferParameteriv		MANGLE(GetBufferParameteriv) | ||||
| @@ -444,6 +468,7 @@ | ||||
| #define glGetFinalCombinerInputParameterivNV		MANGLE(GetFinalCombinerInputParameterivNV) | ||||
| #define glGetFloatv		MANGLE(GetFloatv) | ||||
| #define glGetFogFuncSGIS		MANGLE(GetFogFuncSGIS) | ||||
| #define glGetFragDataLocationEXT		MANGLE(GetFragDataLocationEXT) | ||||
| #define glGetFragmentLightfvSGIX		MANGLE(GetFragmentLightfvSGIX) | ||||
| #define glGetFragmentLightivSGIX		MANGLE(GetFragmentLightivSGIX) | ||||
| #define glGetFragmentMaterialfvSGIX		MANGLE(GetFragmentMaterialfvSGIX) | ||||
| @@ -460,6 +485,7 @@ | ||||
| #define glGetImageTransformParameterivHP		MANGLE(GetImageTransformParameterivHP) | ||||
| #define glGetInfoLogARB		MANGLE(GetInfoLogARB) | ||||
| #define glGetInstrumentsSGIX		MANGLE(GetInstrumentsSGIX) | ||||
| #define glGetIntegerIndexedvEXT		MANGLE(GetIntegerIndexedvEXT) | ||||
| #define glGetIntegerv		MANGLE(GetIntegerv) | ||||
| #define glGetInvariantBooleanvEXT		MANGLE(GetInvariantBooleanvEXT) | ||||
| #define glGetInvariantFloatvEXT		MANGLE(GetInvariantFloatvEXT) | ||||
| @@ -503,12 +529,16 @@ | ||||
| #define glGetPolygonStipple		MANGLE(GetPolygonStipple) | ||||
| #define glGetProgramEnvParameterdvARB		MANGLE(GetProgramEnvParameterdvARB) | ||||
| #define glGetProgramEnvParameterfvARB		MANGLE(GetProgramEnvParameterfvARB) | ||||
| #define glGetProgramEnvParameterIivNV		MANGLE(GetProgramEnvParameterIivNV) | ||||
| #define glGetProgramEnvParameterIuivNV		MANGLE(GetProgramEnvParameterIuivNV) | ||||
| #define glGetProgramInfoLog		MANGLE(GetProgramInfoLog) | ||||
| #define glGetProgramivARB		MANGLE(GetProgramivARB) | ||||
| #define glGetProgramiv		MANGLE(GetProgramiv) | ||||
| #define glGetProgramivNV		MANGLE(GetProgramivNV) | ||||
| #define glGetProgramLocalParameterdvARB		MANGLE(GetProgramLocalParameterdvARB) | ||||
| #define glGetProgramLocalParameterfvARB		MANGLE(GetProgramLocalParameterfvARB) | ||||
| #define glGetProgramLocalParameterIivNV		MANGLE(GetProgramLocalParameterIivNV) | ||||
| #define glGetProgramLocalParameterIuivNV		MANGLE(GetProgramLocalParameterIuivNV) | ||||
| #define glGetProgramNamedParameterdvNV		MANGLE(GetProgramNamedParameterdvNV) | ||||
| #define glGetProgramNamedParameterfvNV		MANGLE(GetProgramNamedParameterfvNV) | ||||
| #define glGetProgramParameterdvNV		MANGLE(GetProgramParameterdvNV) | ||||
| @@ -545,20 +575,27 @@ | ||||
| #define glGetTexLevelParameterfv		MANGLE(GetTexLevelParameterfv) | ||||
| #define glGetTexLevelParameteriv		MANGLE(GetTexLevelParameteriv) | ||||
| #define glGetTexParameterfv		MANGLE(GetTexParameterfv) | ||||
| #define glGetTexParameterIivEXT		MANGLE(GetTexParameterIivEXT) | ||||
| #define glGetTexParameterIuivEXT		MANGLE(GetTexParameterIuivEXT) | ||||
| #define glGetTexParameteriv		MANGLE(GetTexParameteriv) | ||||
| #define glGetTrackMatrixivNV		MANGLE(GetTrackMatrixivNV) | ||||
| #define glGetTransformFeedbackVaryingNV		MANGLE(GetTransformFeedbackVaryingNV) | ||||
| #define glGetUniformBufferSizeEXT		MANGLE(GetUniformBufferSizeEXT) | ||||
| #define glGetUniformfvARB		MANGLE(GetUniformfvARB) | ||||
| #define glGetUniformfv		MANGLE(GetUniformfv) | ||||
| #define glGetUniformivARB		MANGLE(GetUniformivARB) | ||||
| #define glGetUniformiv		MANGLE(GetUniformiv) | ||||
| #define glGetUniformLocationARB		MANGLE(GetUniformLocationARB) | ||||
| #define glGetUniformLocation		MANGLE(GetUniformLocation) | ||||
| #define glGetUniformOffsetEXT		MANGLE(GetUniformOffsetEXT) | ||||
| #define glGetUniformuivEXT		MANGLE(GetUniformuivEXT) | ||||
| #define glGetVariantArrayObjectfvATI		MANGLE(GetVariantArrayObjectfvATI) | ||||
| #define glGetVariantArrayObjectivATI		MANGLE(GetVariantArrayObjectivATI) | ||||
| #define glGetVariantBooleanvEXT		MANGLE(GetVariantBooleanvEXT) | ||||
| #define glGetVariantFloatvEXT		MANGLE(GetVariantFloatvEXT) | ||||
| #define glGetVariantIntegervEXT		MANGLE(GetVariantIntegervEXT) | ||||
| #define glGetVariantPointervEXT		MANGLE(GetVariantPointervEXT) | ||||
| #define glGetVaryingLocationNV		MANGLE(GetVaryingLocationNV) | ||||
| #define glGetVertexAttribArrayObjectfvATI		MANGLE(GetVertexAttribArrayObjectfvATI) | ||||
| #define glGetVertexAttribArrayObjectivATI		MANGLE(GetVertexAttribArrayObjectivATI) | ||||
| #define glGetVertexAttribdvARB		MANGLE(GetVertexAttribdvARB) | ||||
| @@ -567,6 +604,8 @@ | ||||
| #define glGetVertexAttribfvARB		MANGLE(GetVertexAttribfvARB) | ||||
| #define glGetVertexAttribfv		MANGLE(GetVertexAttribfv) | ||||
| #define glGetVertexAttribfvNV		MANGLE(GetVertexAttribfvNV) | ||||
| #define glGetVertexAttribIivEXT		MANGLE(GetVertexAttribIivEXT) | ||||
| #define glGetVertexAttribIuivEXT		MANGLE(GetVertexAttribIuivEXT) | ||||
| #define glGetVertexAttribivARB		MANGLE(GetVertexAttribivARB) | ||||
| #define glGetVertexAttribiv		MANGLE(GetVertexAttribiv) | ||||
| #define glGetVertexAttribivNV		MANGLE(GetVertexAttribivNV) | ||||
| @@ -613,6 +652,7 @@ | ||||
| #define glIsAsyncMarkerSGIX		MANGLE(IsAsyncMarkerSGIX) | ||||
| #define glIsBufferARB		MANGLE(IsBufferARB) | ||||
| #define glIsBuffer		MANGLE(IsBuffer) | ||||
| #define glIsEnabledIndexedEXT		MANGLE(IsEnabledIndexedEXT) | ||||
| #define glIsEnabled		MANGLE(IsEnabled) | ||||
| #define glIsFenceAPPLE		MANGLE(IsFenceAPPLE) | ||||
| #define glIsFenceNV		MANGLE(IsFenceNV) | ||||
| @@ -852,17 +892,32 @@ | ||||
| #define glPrimitiveRestartNV		MANGLE(PrimitiveRestartNV) | ||||
| #define glPrioritizeTexturesEXT		MANGLE(PrioritizeTexturesEXT) | ||||
| #define glPrioritizeTextures		MANGLE(PrioritizeTextures) | ||||
| #define glProgramBufferParametersfvNV		MANGLE(ProgramBufferParametersfvNV) | ||||
| #define glProgramBufferParametersIivNV		MANGLE(ProgramBufferParametersIivNV) | ||||
| #define glProgramBufferParametersIuivNV		MANGLE(ProgramBufferParametersIuivNV) | ||||
| #define glProgramCallbackMESA		MANGLE(ProgramCallbackMESA) | ||||
| #define glProgramEnvParameter4dARB		MANGLE(ProgramEnvParameter4dARB) | ||||
| #define glProgramEnvParameter4dvARB		MANGLE(ProgramEnvParameter4dvARB) | ||||
| #define glProgramEnvParameter4fARB		MANGLE(ProgramEnvParameter4fARB) | ||||
| #define glProgramEnvParameter4fvARB		MANGLE(ProgramEnvParameter4fvARB) | ||||
| #define glProgramEnvParameterI4iNV		MANGLE(ProgramEnvParameterI4iNV) | ||||
| #define glProgramEnvParameterI4ivNV		MANGLE(ProgramEnvParameterI4ivNV) | ||||
| #define glProgramEnvParameterI4uiNV		MANGLE(ProgramEnvParameterI4uiNV) | ||||
| #define glProgramEnvParameterI4uivNV		MANGLE(ProgramEnvParameterI4uivNV) | ||||
| #define glProgramEnvParameters4fvEXT		MANGLE(ProgramEnvParameters4fvEXT) | ||||
| #define glProgramEnvParametersI4ivNV		MANGLE(ProgramEnvParametersI4ivNV) | ||||
| #define glProgramEnvParametersI4uivNV		MANGLE(ProgramEnvParametersI4uivNV) | ||||
| #define glProgramLocalParameter4dARB		MANGLE(ProgramLocalParameter4dARB) | ||||
| #define glProgramLocalParameter4dvARB		MANGLE(ProgramLocalParameter4dvARB) | ||||
| #define glProgramLocalParameter4fARB		MANGLE(ProgramLocalParameter4fARB) | ||||
| #define glProgramLocalParameter4fvARB		MANGLE(ProgramLocalParameter4fvARB) | ||||
| #define glProgramLocalParameterI4iNV		MANGLE(ProgramLocalParameterI4iNV) | ||||
| #define glProgramLocalParameterI4ivNV		MANGLE(ProgramLocalParameterI4ivNV) | ||||
| #define glProgramLocalParameterI4uiNV		MANGLE(ProgramLocalParameterI4uiNV) | ||||
| #define glProgramLocalParameterI4uivNV		MANGLE(ProgramLocalParameterI4uivNV) | ||||
| #define glProgramLocalParameters4fvEXT		MANGLE(ProgramLocalParameters4fvEXT) | ||||
| #define glProgramLocalParametersI4ivNV		MANGLE(ProgramLocalParametersI4ivNV) | ||||
| #define glProgramLocalParametersI4uivNV		MANGLE(ProgramLocalParametersI4uivNV) | ||||
| #define glProgramNamedParameter4dNV		MANGLE(ProgramNamedParameter4dNV) | ||||
| #define glProgramNamedParameter4dvNV		MANGLE(ProgramNamedParameter4dvNV) | ||||
| #define glProgramNamedParameter4fNV		MANGLE(ProgramNamedParameter4fNV) | ||||
| @@ -871,9 +926,11 @@ | ||||
| #define glProgramParameter4dvNV		MANGLE(ProgramParameter4dvNV) | ||||
| #define glProgramParameter4fNV		MANGLE(ProgramParameter4fNV) | ||||
| #define glProgramParameter4fvNV		MANGLE(ProgramParameter4fvNV) | ||||
| #define glProgramParameteriEXT		MANGLE(ProgramParameteriEXT) | ||||
| #define glProgramParameters4dvNV		MANGLE(ProgramParameters4dvNV) | ||||
| #define glProgramParameters4fvNV		MANGLE(ProgramParameters4fvNV) | ||||
| #define glProgramStringARB		MANGLE(ProgramStringARB) | ||||
| #define glProgramVertexLimitNV		MANGLE(ProgramVertexLimitNV) | ||||
| #define glPushAttrib		MANGLE(PushAttrib) | ||||
| #define glPushClientAttrib		MANGLE(PushClientAttrib) | ||||
| #define glPushMatrix		MANGLE(PushMatrix) | ||||
| @@ -915,6 +972,7 @@ | ||||
| #define glRectsv		MANGLE(Rectsv) | ||||
| #define glReferencePlaneSGIX		MANGLE(ReferencePlaneSGIX) | ||||
| #define glRenderbufferStorageEXT		MANGLE(RenderbufferStorageEXT) | ||||
| #define glRenderbufferStorageMultisampleCoverageNV		MANGLE(RenderbufferStorageMultisampleCoverageNV) | ||||
| #define glRenderbufferStorageMultisampleEXT		MANGLE(RenderbufferStorageMultisampleEXT) | ||||
| #define glRenderMode		MANGLE(RenderMode) | ||||
| #define glReplacementCodePointerSUN		MANGLE(ReplacementCodePointerSUN) | ||||
| @@ -1043,6 +1101,7 @@ | ||||
| #define glTestFenceAPPLE		MANGLE(TestFenceAPPLE) | ||||
| #define glTestFenceNV		MANGLE(TestFenceNV) | ||||
| #define glTestObjectAPPLE		MANGLE(TestObjectAPPLE) | ||||
| #define glTexBufferEXT		MANGLE(TexBufferEXT) | ||||
| #define glTexBumpParameterfvATI		MANGLE(TexBumpParameterfvATI) | ||||
| #define glTexBumpParameterivATI		MANGLE(TexBumpParameterivATI) | ||||
| #define glTexCoord1d		MANGLE(TexCoord1d) | ||||
| @@ -1121,7 +1180,9 @@ | ||||
| #define glTexImage4DSGIS		MANGLE(TexImage4DSGIS) | ||||
| #define glTexParameterf		MANGLE(TexParameterf) | ||||
| #define glTexParameterfv		MANGLE(TexParameterfv) | ||||
| #define glTexParameterIivEXT		MANGLE(TexParameterIivEXT) | ||||
| #define glTexParameteri		MANGLE(TexParameteri) | ||||
| #define glTexParameterIuivEXT		MANGLE(TexParameterIuivEXT) | ||||
| #define glTexParameteriv		MANGLE(TexParameteriv) | ||||
| #define glTexSubImage1DEXT		MANGLE(TexSubImage1DEXT) | ||||
| #define glTexSubImage1D		MANGLE(TexSubImage1D) | ||||
| @@ -1135,6 +1196,8 @@ | ||||
| #define glTextureMaterialEXT		MANGLE(TextureMaterialEXT) | ||||
| #define glTextureNormalEXT		MANGLE(TextureNormalEXT) | ||||
| #define glTrackMatrixNV		MANGLE(TrackMatrixNV) | ||||
| #define glTransformFeedbackAttribsNV		MANGLE(TransformFeedbackAttribsNV) | ||||
| #define glTransformFeedbackVaryingsNV		MANGLE(TransformFeedbackVaryingsNV) | ||||
| #define glTranslated		MANGLE(Translated) | ||||
| #define glTranslatef		MANGLE(Translatef) | ||||
| #define glUniform1fARB		MANGLE(Uniform1fARB) | ||||
| @@ -1145,6 +1208,8 @@ | ||||
| #define glUniform1i		MANGLE(Uniform1i) | ||||
| #define glUniform1ivARB		MANGLE(Uniform1ivARB) | ||||
| #define glUniform1iv		MANGLE(Uniform1iv) | ||||
| #define glUniform1uiEXT		MANGLE(Uniform1uiEXT) | ||||
| #define glUniform1uivEXT		MANGLE(Uniform1uivEXT) | ||||
| #define glUniform2fARB		MANGLE(Uniform2fARB) | ||||
| #define glUniform2f		MANGLE(Uniform2f) | ||||
| #define glUniform2fvARB		MANGLE(Uniform2fvARB) | ||||
| @@ -1153,6 +1218,8 @@ | ||||
| #define glUniform2i		MANGLE(Uniform2i) | ||||
| #define glUniform2ivARB		MANGLE(Uniform2ivARB) | ||||
| #define glUniform2iv		MANGLE(Uniform2iv) | ||||
| #define glUniform2uiEXT		MANGLE(Uniform2uiEXT) | ||||
| #define glUniform2uivEXT		MANGLE(Uniform2uivEXT) | ||||
| #define glUniform3fARB		MANGLE(Uniform3fARB) | ||||
| #define glUniform3f		MANGLE(Uniform3f) | ||||
| #define glUniform3fvARB		MANGLE(Uniform3fvARB) | ||||
| @@ -1161,6 +1228,8 @@ | ||||
| #define glUniform3i		MANGLE(Uniform3i) | ||||
| #define glUniform3ivARB		MANGLE(Uniform3ivARB) | ||||
| #define glUniform3iv		MANGLE(Uniform3iv) | ||||
| #define glUniform3uiEXT		MANGLE(Uniform3uiEXT) | ||||
| #define glUniform3uivEXT		MANGLE(Uniform3uivEXT) | ||||
| #define glUniform4fARB		MANGLE(Uniform4fARB) | ||||
| #define glUniform4f		MANGLE(Uniform4f) | ||||
| #define glUniform4fvARB		MANGLE(Uniform4fvARB) | ||||
| @@ -1169,6 +1238,9 @@ | ||||
| #define glUniform4i		MANGLE(Uniform4i) | ||||
| #define glUniform4ivARB		MANGLE(Uniform4ivARB) | ||||
| #define glUniform4iv		MANGLE(Uniform4iv) | ||||
| #define glUniform4uiEXT		MANGLE(Uniform4uiEXT) | ||||
| #define glUniform4uivEXT		MANGLE(Uniform4uivEXT) | ||||
| #define glUniformBufferEXT		MANGLE(UniformBufferEXT) | ||||
| #define glUniformMatrix2fvARB		MANGLE(UniformMatrix2fvARB) | ||||
| #define glUniformMatrix2fv		MANGLE(UniformMatrix2fv) | ||||
| #define glUniformMatrix2x3fv		MANGLE(UniformMatrix2x3fv) | ||||
| @@ -1340,6 +1412,27 @@ | ||||
| #define glVertexAttrib4usvARB		MANGLE(VertexAttrib4usvARB) | ||||
| #define glVertexAttrib4usv		MANGLE(VertexAttrib4usv) | ||||
| #define glVertexAttribArrayObjectATI		MANGLE(VertexAttribArrayObjectATI) | ||||
| #define glVertexAttribI1iEXT		MANGLE(VertexAttribI1iEXT) | ||||
| #define glVertexAttribI1ivEXT		MANGLE(VertexAttribI1ivEXT) | ||||
| #define glVertexAttribI1uiEXT		MANGLE(VertexAttribI1uiEXT) | ||||
| #define glVertexAttribI1uivEXT		MANGLE(VertexAttribI1uivEXT) | ||||
| #define glVertexAttribI2iEXT		MANGLE(VertexAttribI2iEXT) | ||||
| #define glVertexAttribI2ivEXT		MANGLE(VertexAttribI2ivEXT) | ||||
| #define glVertexAttribI2uiEXT		MANGLE(VertexAttribI2uiEXT) | ||||
| #define glVertexAttribI2uivEXT		MANGLE(VertexAttribI2uivEXT) | ||||
| #define glVertexAttribI3iEXT		MANGLE(VertexAttribI3iEXT) | ||||
| #define glVertexAttribI3ivEXT		MANGLE(VertexAttribI3ivEXT) | ||||
| #define glVertexAttribI3uiEXT		MANGLE(VertexAttribI3uiEXT) | ||||
| #define glVertexAttribI3uivEXT		MANGLE(VertexAttribI3uivEXT) | ||||
| #define glVertexAttribI4bvEXT		MANGLE(VertexAttribI4bvEXT) | ||||
| #define glVertexAttribI4iEXT		MANGLE(VertexAttribI4iEXT) | ||||
| #define glVertexAttribI4ivEXT		MANGLE(VertexAttribI4ivEXT) | ||||
| #define glVertexAttribI4svEXT		MANGLE(VertexAttribI4svEXT) | ||||
| #define glVertexAttribI4ubvEXT		MANGLE(VertexAttribI4ubvEXT) | ||||
| #define glVertexAttribI4uiEXT		MANGLE(VertexAttribI4uiEXT) | ||||
| #define glVertexAttribI4uivEXT		MANGLE(VertexAttribI4uivEXT) | ||||
| #define glVertexAttribI4usvEXT		MANGLE(VertexAttribI4usvEXT) | ||||
| #define glVertexAttribIPointerEXT		MANGLE(VertexAttribIPointerEXT) | ||||
| #define glVertexAttribPointerARB		MANGLE(VertexAttribPointerARB) | ||||
| #define glVertexAttribPointer		MANGLE(VertexAttribPointer) | ||||
| #define glVertexAttribPointerNV		MANGLE(VertexAttribPointerNV) | ||||
|   | ||||
| @@ -46,9 +46,9 @@ extern "C" { | ||||
| /*************************************************************/ | ||||
|  | ||||
| /* Header file version number, required by OpenGL ABI for Linux */ | ||||
| /* glext.h last updated 2007/02/12 */ | ||||
| /* glext.h last updated 2008/03/24 */ | ||||
| /* Current version at http://www.opengl.org/registry/ */ | ||||
| #define GL_GLEXT_VERSION 39 | ||||
| #define GL_GLEXT_VERSION 40 | ||||
|  | ||||
| #ifndef GL_VERSION_1_2 | ||||
| #define GL_UNSIGNED_BYTE_3_3_2            0x8032 | ||||
| @@ -3091,8 +3091,8 @@ extern "C" { | ||||
| #ifndef GL_EXT_framebuffer_blit | ||||
| #define GL_READ_FRAMEBUFFER_EXT           0x8CA8 | ||||
| #define GL_DRAW_FRAMEBUFFER_EXT           0x8CA9 | ||||
| #define GL_READ_FRAMEBUFFER_BINDING_EXT   GL_FRAMEBUFFER_BINDING_EXT | ||||
| #define GL_DRAW_FRAMEBUFFER_BINDING_EXT   0x8CAA | ||||
| #define GL_DRAW_FRAMEBUFFER_BINDING_EXT   GL_FRAMEBUFFER_BINDING_EXT | ||||
| #define GL_READ_FRAMEBUFFER_BINDING_EXT   0x8CAA | ||||
| #endif | ||||
|  | ||||
| #ifndef GL_EXT_framebuffer_multisample | ||||
| @@ -3379,6 +3379,9 @@ extern "C" { | ||||
| #define GL_RGBA_INTEGER_MODE_EXT          0x8D9E | ||||
| #endif | ||||
|  | ||||
| #ifndef GL_GREMEDY_frame_terminator | ||||
| #endif | ||||
|  | ||||
|  | ||||
| /*************************************************************/ | ||||
|  | ||||
| @@ -7252,6 +7255,14 @@ typedef void (APIENTRYP PFNGLCLEARCOLORIIEXTPROC) (GLint red, GLint green, GLint | ||||
| typedef void (APIENTRYP PFNGLCLEARCOLORIUIEXTPROC) (GLuint red, GLuint green, GLuint blue, GLuint alpha); | ||||
| #endif | ||||
|  | ||||
| #ifndef GL_GREMEDY_frame_terminator | ||||
| #define GL_GREMEDY_frame_terminator 1 | ||||
| #ifdef GL_GLEXT_PROTOTYPES | ||||
| GLAPI void APIENTRY glFrameTerminatorGREMEDY (void); | ||||
| #endif /* GL_GLEXT_PROTOTYPES */ | ||||
| typedef void (APIENTRYP PFNGLFRAMETERMINATORGREMEDYPROC) (void); | ||||
| #endif | ||||
|  | ||||
|  | ||||
| #ifdef __cplusplus | ||||
| } | ||||
|   | ||||
| @@ -44,9 +44,17 @@ | ||||
| #define GLAPIENTRYP GLAPIENTRY * | ||||
| #endif | ||||
|  | ||||
| #ifndef GLAPI | ||||
| #define GLAPI | ||||
| #endif | ||||
| #if (defined(_MSC_VER) || defined(__MINGW32__)) && defined(BUILD_GLU32) | ||||
| # undef GLAPI | ||||
| # define GLAPI __declspec(dllexport) | ||||
| #elif (defined(_MSC_VER) || defined(__MINGW32__)) && defined(_DLL) | ||||
| /* tag specifying we're building for DLL runtime support */ | ||||
| # undef GLAPI | ||||
| # define GLAPI __declspec(dllimport) | ||||
| #elif !defined(GLAPI) | ||||
| /* for use with static link lib build of Win32 edition only */ | ||||
| # define GLAPI extern | ||||
| #endif /* _STATIC_MESA support */ | ||||
|  | ||||
| #ifdef __cplusplus | ||||
| extern "C" { | ||||
|   | ||||
| @@ -10,6 +10,10 @@ | ||||
| #include <GL/gl.h> | ||||
| #include <GL/glu.h> | ||||
|  | ||||
| #if defined(__MINGW32__) | ||||
| #include <GL/mesa_wgl.h> | ||||
| #endif | ||||
|  | ||||
| #ifdef __cplusplus | ||||
| extern "C" { | ||||
| #endif | ||||
| @@ -115,7 +119,7 @@ extern _CRTIMP void __cdecl exit(int); | ||||
| #endif | ||||
|  | ||||
| /* GLUT API entry point declarations for Win32. */ | ||||
| #if defined(GLUT_BUILDING_LIB) && defined(_DLL) | ||||
| #if (defined(BUILD_GLUT32) || defined(GLUT_BUILDING_LIB)) && defined(_DLL) | ||||
| # 	define GLUTAPI __declspec(dllexport) | ||||
| #elif defined(_DLL) | ||||
| #   define GLUTAPI __declspec(dllimport) | ||||
| @@ -130,9 +134,12 @@ extern _CRTIMP void __cdecl exit(int); | ||||
| #		pragma message( "----: being multiply defined you should include WINDOWS.H priot to gl/glut.h" ) | ||||
| #	endif | ||||
| #	define CALLBACK __stdcall | ||||
| typedef int (GLUTAPIENTRY *PROC)(); | ||||
| typedef void *HGLRC; | ||||
| typedef void *HDC; | ||||
|  | ||||
| #if !defined(__MINGW32__) | ||||
| 	typedef int (GLUTAPIENTRY *PROC)(); | ||||
| 	typedef void *HGLRC; | ||||
| 	typedef void *HDC; | ||||
| #endif | ||||
| typedef unsigned long COLORREF; | ||||
| #endif | ||||
|  | ||||
|   | ||||
| @@ -75,7 +75,7 @@ typedef void (GLUTCALLBACK *GLUTmenuStatusFCB) (int *, int *, int *); | ||||
| typedef void (GLUTCALLBACK *GLUTidleFCB) (void); | ||||
|  | ||||
| /* Functions that set and return Fortran callback functions. */ | ||||
| GLUTAPI void* APIENTRY __glutGetFCB(int which); | ||||
| GLUTAPI void APIENTRY __glutSetFCB(int which, void *func); | ||||
| GLUTAPI GLUTproc APIENTRY __glutGetFCB(int which); | ||||
| GLUTAPI void APIENTRY __glutSetFCB(int which, GLUTproc func); | ||||
|  | ||||
| #endif  /* __glutf90_h__ */ | ||||
|   | ||||
| @@ -361,6 +361,18 @@ struct __DRIscreenRec { | ||||
|     void * (*createNewContext)(__DRInativeDisplay *dpy, const __GLcontextModes *modes, | ||||
| 			       int render_type, | ||||
| 			       void *sharedPrivate, __DRIcontext *pctx); | ||||
|  | ||||
|     /** | ||||
|      * Method to override base texture image with a driver specific 'offset'. | ||||
|      * The depth passed in allows e.g. to ignore the alpha channel of texture | ||||
|      * images where the non-alpha components don't occupy a whole texel. | ||||
|      * | ||||
|      * For GLX_EXT_texture_from_pixmap with AIGLX. | ||||
|      * | ||||
|      * \since Internal API version 20070121. | ||||
|      */ | ||||
|     void (*setTexOffset)(__DRIcontext *pDRICtx, GLint texname, | ||||
| 			 unsigned long long offset, GLint depth, GLuint pitch); | ||||
| }; | ||||
|  | ||||
| /** | ||||
|   | ||||
| @@ -26,11 +26,12 @@ | ||||
| /* prototypes for the Mesa WGL functions */ | ||||
| /* relocated here so that I could make GLUT get them properly */ | ||||
|  | ||||
| #define _mesa_wgl_h_ | ||||
|  | ||||
| #ifndef _mesa_wgl_h_ | ||||
| #define _mesa_wgl_h_ | ||||
|  | ||||
| #if defined(__MINGW32__) | ||||
| #  define __W32API_USE_DLLIMPORT__ | ||||
| #endif | ||||
|  | ||||
| #include <GL/gl.h> | ||||
|  | ||||
| @@ -39,23 +40,16 @@ extern "C" { | ||||
| #endif | ||||
|  | ||||
|  | ||||
| #if !defined(OPENSTEP) && (defined(__WIN32__) || defined(__CYGWIN32__)) | ||||
| #  if (defined(_MSC_VER) || defined(__MINGW32__)) && defined(BUILD_GL32) /* tag specify we're building mesa as a DLL */ | ||||
| #    define GLAPI __declspec(dllexport) | ||||
| #    define WGLAPI __declspec(dllexport) | ||||
| #  elif (defined(_MSC_VER) || defined(__MINGW32__)) && defined(_DLL) /* tag specifying we're building for DLL runtime support */ | ||||
| #    define GLAPI __declspec(dllimport) | ||||
| #    define WGLAPI __declspec(dllimport) | ||||
| #  else /* for use with static link lib build of Win32 edition only */ | ||||
| #    define GLAPI extern | ||||
| #    define WGLAPI __declspec(dllimport) | ||||
| #  endif /* _STATIC_MESA support */ | ||||
| #  define GLAPIENTRY __stdcall | ||||
| #else | ||||
| /* non-Windows compilation */ | ||||
| #  define GLAPI extern | ||||
| #  define GLAPIENTRY | ||||
| #endif /* WIN32 / CYGWIN32 bracket */ | ||||
| #ifndef WGLAPI | ||||
| #define WGLAPI GLAPI | ||||
| #endif | ||||
|  | ||||
| #if defined(__MINGW32__) | ||||
| #  ifndef WIN32_LEAN_AND_MEAN | ||||
| #    define WIN32_LEAN_AND_MEAN 1 | ||||
| #  endif | ||||
| #  include <windows.h> | ||||
| #endif | ||||
|  | ||||
|  | ||||
| #if defined(_WIN32) && !defined(_WINGDI_) && !defined(_GNU_H_WINDOWS32_DEFINES) && !defined(OPENSTEP) | ||||
| @@ -80,23 +74,23 @@ typedef struct tagPIXELFORMATDESCRIPTOR PIXELFORMATDESCRIPTOR, *PPIXELFORMATDESC | ||||
| #  pragma warning( disable : 4273 ) /* 'function' : inconsistent DLL linkage. dllexport assumed. */ | ||||
| #endif | ||||
|  | ||||
| WGLAPI int   GLAPIENTRY wglDeleteContext(HGLRC); | ||||
| WGLAPI int   GLAPIENTRY wglMakeCurrent(HDC,HGLRC); | ||||
|  | ||||
| WGLAPI int   GLAPIENTRY wglSetPixelFormat(HDC, int, const PIXELFORMATDESCRIPTOR *); | ||||
| WGLAPI int   GLAPIENTRY wglSwapBuffers(HDC hdc); | ||||
| WGLAPI HDC   GLAPIENTRY wglGetCurrentDC(void); | ||||
| WGLAPI int   GLAPIENTRY wglChoosePixelFormat(HDC, const PIXELFORMATDESCRIPTOR *); | ||||
| WGLAPI int   GLAPIENTRY wglDescribePixelFormat(HDC,int, unsigned int, LPPIXELFORMATDESCRIPTOR); | ||||
| WGLAPI int   GLAPIENTRY wglGetPixelFormat(HDC hdc); | ||||
|  | ||||
| WGLAPI int   GLAPIENTRY wglCopyContext(HGLRC, HGLRC, unsigned int); | ||||
| WGLAPI HGLRC GLAPIENTRY wglCreateContext(HDC); | ||||
| WGLAPI HGLRC GLAPIENTRY wglCreateLayerContext(HDC,int); | ||||
| WGLAPI HGLRC GLAPIENTRY wglGetCurrentContext(void); | ||||
| WGLAPI PROC  GLAPIENTRY wglGetProcAddress(const char*); | ||||
| WGLAPI int   GLAPIENTRY wglChoosePixelFormat(HDC, const PIXELFORMATDESCRIPTOR *); | ||||
| WGLAPI int   GLAPIENTRY wglCopyContext(HGLRC, HGLRC, unsigned int); | ||||
| WGLAPI int   GLAPIENTRY wglDeleteContext(HGLRC); | ||||
| WGLAPI int   GLAPIENTRY wglDescribeLayerPlane(HDC, int, int, unsigned int,LPLAYERPLANEDESCRIPTOR); | ||||
| WGLAPI int   GLAPIENTRY wglDescribePixelFormat(HDC,int, unsigned int, LPPIXELFORMATDESCRIPTOR); | ||||
| WGLAPI HGLRC GLAPIENTRY wglGetCurrentContext(void); | ||||
| WGLAPI HDC   GLAPIENTRY wglGetCurrentDC(void); | ||||
| WGLAPI int   GLAPIENTRY wglGetLayerPaletteEntries(HDC, int, int, int,COLORREF *); | ||||
| WGLAPI int   GLAPIENTRY wglGetPixelFormat(HDC hdc); | ||||
| WGLAPI int   GLAPIENTRY wglMakeCurrent(HDC, HGLRC); | ||||
| WGLAPI PROC  GLAPIENTRY wglGetProcAddress(const char*); | ||||
| WGLAPI int   GLAPIENTRY wglMakeCurrent(HDC,HGLRC); | ||||
| WGLAPI int   GLAPIENTRY wglRealizeLayerPalette(HDC, int, int); | ||||
| WGLAPI int   GLAPIENTRY wglSetLayerPaletteEntries(HDC, int, int, int,const COLORREF *); | ||||
| WGLAPI int   GLAPIENTRY wglShareLists(HGLRC, HGLRC); | ||||
| @@ -105,12 +99,14 @@ WGLAPI int   GLAPIENTRY wglUseFontBitmapsA(HDC, unsigned long, unsigned long, un | ||||
| WGLAPI int   GLAPIENTRY wglUseFontBitmapsW(HDC, unsigned long, unsigned long, unsigned long); | ||||
| WGLAPI int   GLAPIENTRY wglUseFontOutlinesA(HDC, unsigned long, unsigned long, unsigned long, float,float, int, LPGLYPHMETRICSFLOAT); | ||||
| WGLAPI int   GLAPIENTRY wglUseFontOutlinesW(HDC, unsigned long, unsigned long, unsigned long, float,float, int, LPGLYPHMETRICSFLOAT); | ||||
|  | ||||
| #ifndef __MINGW32__ | ||||
| WGLAPI int   GLAPIENTRY SwapBuffers(HDC); | ||||
| WGLAPI int   GLAPIENTRY ChoosePixelFormat(HDC,const PIXELFORMATDESCRIPTOR *); | ||||
| WGLAPI int   GLAPIENTRY DescribePixelFormat(HDC,int,unsigned int,LPPIXELFORMATDESCRIPTOR); | ||||
| WGLAPI int   GLAPIENTRY GetPixelFormat(HDC); | ||||
| WGLAPI int   GLAPIENTRY SetPixelFormat(HDC,int,const PIXELFORMATDESCRIPTOR *); | ||||
|  | ||||
| #endif | ||||
|  | ||||
| #ifndef WGL_ARB_extensions_string | ||||
| #define WGL_ARB_extensions_string 1 | ||||
|   | ||||
							
								
								
									
										3
									
								
								progs/beos/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								progs/beos/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| demo | ||||
| GLInfo | ||||
| sample | ||||
| @@ -10,7 +10,9 @@ include $(TOP)/configs/current | ||||
| # | ||||
| # Modified by Philippe Houdoin | ||||
|  | ||||
| LDFLAGS += -soname=_APP_ $(APP_LIB_DEPS) | ||||
| LDFLAGS += -soname=_APP_ | ||||
|  | ||||
| LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS) | ||||
|  | ||||
| INCLUDES = -I. -I- -I../../include | ||||
|  | ||||
| @@ -21,13 +23,13 @@ clean: | ||||
| 	rm -f *.o | ||||
|  | ||||
| demo: demo.o | ||||
| 	$(LD) demo.o $(LDFLAGS) -o $@ | ||||
| 	$(LD) demo.o $(LDFLAGS) $(LIBS) -o $@ | ||||
|  | ||||
| sample: sample.o | ||||
| 	$(LD) sample.o $(LDFLAGS) -o $@ | ||||
| 	$(LD) sample.o $(LDFLAGS) $(LIBS) -o $@ | ||||
|  | ||||
| GTLInfo: GLInfo.o | ||||
| 	$(LD) GLInfo.o $(INCLUDES) $(LDFLAGS) -o $@ | ||||
| 	$(LD) GLInfo.o $(INCLUDES) $(LDFLAGS) $(LIBS) -o $@ | ||||
|  | ||||
| .cpp.o: | ||||
| 	$(CC) -c $< $(INCLUDES) $(CFLAGS) -o $@ | ||||
|   | ||||
							
								
								
									
										14
									
								
								progs/demos/.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								progs/demos/.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -1,17 +1,25 @@ | ||||
| .cvsignore | ||||
| arbfplight | ||||
| arbfslight | ||||
| arbocclude | ||||
| bounce | ||||
| clearspd | ||||
| copypix | ||||
| cubemap | ||||
| drawpix | ||||
| engine | ||||
| extfuncs.h | ||||
| fire | ||||
| fogcoord | ||||
| fplight | ||||
| fslight | ||||
| gamma | ||||
| gearbox | ||||
| gears | ||||
| geartrain | ||||
| glinfo | ||||
| gloss | ||||
| glslnoise | ||||
| gltestperf | ||||
| glutfx | ||||
| ipers | ||||
| @@ -33,8 +41,11 @@ renormal | ||||
| shadowtex | ||||
| showbuffer.c | ||||
| showbuffer.h | ||||
| singlebuffer | ||||
| spectex | ||||
| spriteblast | ||||
| stex3d | ||||
| streaming_rect | ||||
| teapot | ||||
| terrain | ||||
| tessdemo | ||||
| @@ -42,7 +53,10 @@ texcyl | ||||
| texdown | ||||
| texenv | ||||
| texobj | ||||
| trackball.c | ||||
| trackball.h | ||||
| trispd | ||||
| tunnel | ||||
| tunnel2 | ||||
| vao_demo | ||||
| winpos | ||||
|   | ||||
| @@ -13,6 +13,8 @@ OSMESA32_LIBS = -L$(TOP)/$(LIB_DIR) -lglut -lOSMesa32 -lGLU -lGL $(APP_LIB_DEPS) | ||||
|  | ||||
| LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME) | ||||
|  | ||||
| LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS) | ||||
|  | ||||
| PROGS = \ | ||||
| 	arbfplight \ | ||||
| 	arbfslight \ | ||||
| @@ -74,7 +76,7 @@ PROGS = \ | ||||
|  | ||||
| # make executable from .c file: | ||||
| .c: $(LIB_DEP) readtex.o | ||||
| 	$(CC) -I$(INCDIR) $(CFLAGS) $< readtex.o $(APP_LIB_DEPS) -o $@ | ||||
| 	$(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) $< readtex.o $(LIBS) -o $@ | ||||
|  | ||||
|  | ||||
| ##### TARGETS ##### | ||||
| @@ -118,35 +120,35 @@ extfuncs.h:  $(TOP)/progs/util/extfuncs.h | ||||
|  | ||||
|  | ||||
| reflect: reflect.o showbuffer.o readtex.o | ||||
| 	$(CC) reflect.o showbuffer.o readtex.o $(APP_LIB_DEPS) -o $@ | ||||
| 	$(CC) $(LDFLAGS) reflect.o showbuffer.o readtex.o $(LIBS) -o $@ | ||||
|  | ||||
| reflect.o: reflect.c showbuffer.h | ||||
| 	$(CC) -c -I$(INCDIR) $(CFLAGS) reflect.c | ||||
|  | ||||
|  | ||||
| shadowtex: shadowtex.o showbuffer.o | ||||
| 	$(CC) shadowtex.o showbuffer.o $(APP_LIB_DEPS) -o $@ | ||||
| 	$(CC) $(LDFLAGS) shadowtex.o showbuffer.o $(LIBS) -o $@ | ||||
|  | ||||
| shadowtex.o: shadowtex.c showbuffer.h | ||||
| 	$(CC) -c -I$(INCDIR) $(CFLAGS) shadowtex.c | ||||
|  | ||||
|  | ||||
| gloss: gloss.o trackball.o readtex.o | ||||
| 	$(CC) gloss.o trackball.o readtex.o $(APP_LIB_DEPS) -o $@ | ||||
| 	$(CC) $(LDFLAGS) gloss.o trackball.o readtex.o $(LIBS) -o $@ | ||||
|  | ||||
| gloss.o: gloss.c trackball.h | ||||
| 	$(CC) -c -I$(INCDIR) $(CFLAGS) gloss.c | ||||
|  | ||||
|  | ||||
| engine: engine.o trackball.o readtex.o | ||||
| 	$(CC) engine.o trackball.o readtex.o $(APP_LIB_DEPS) -o $@ | ||||
| 	$(CC) $(LDFLAGS) engine.o trackball.o readtex.o $(LIBS) -o $@ | ||||
|  | ||||
| engine.o: engine.c trackball.h | ||||
| 	$(CC) -c -I$(INCDIR) $(CFLAGS) engine.c | ||||
|  | ||||
|  | ||||
| fslight: fslight.o | ||||
| 	$(CC) fslight.o $(APP_LIB_DEPS) -o $@ | ||||
| 	$(CC) $(LDFLAGS) fslight.o $(LIBS) -o $@ | ||||
|  | ||||
| fslight.o: fslight.c extfuncs.h | ||||
| 	$(CC) -c -I$(INCDIR) $(CFLAGS) fslight.c | ||||
|   | ||||
| @@ -16,6 +16,10 @@ | ||||
| #include "trackball.h" | ||||
|  | ||||
|  | ||||
| #ifndef M_PI | ||||
| #define M_PI 3.14159265358979323846 | ||||
| #endif | ||||
|  | ||||
| #define DEG_TO_RAD(DEG)  ((DEG) * M_PI / 180.0) | ||||
|  | ||||
| #define TEXTURE_FILE "../images/reflect.rgb" | ||||
|   | ||||
| @@ -1053,6 +1053,7 @@ main (int argc, char *argv[]) | ||||
|     else | ||||
|        file = argv[1]; | ||||
|  | ||||
|     glutInit(&argc, argv);  | ||||
|     glutInitWindowPosition (0, 0); | ||||
|     glutInitWindowSize(640,480); | ||||
|     glutInitDisplayMode (GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE ); | ||||
|   | ||||
| @@ -569,6 +569,7 @@ main(int ac, char **av) | ||||
|    if (ac == 2) | ||||
|       frontbuffer = 0; | ||||
|  | ||||
|    glutInit(&ac, av); | ||||
|    glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH); | ||||
|    glutInitWindowPosition(0, 0); | ||||
|    glutInitWindowSize(640, 480); | ||||
|   | ||||
| @@ -1042,6 +1042,7 @@ int main(int argc, char **argv) | ||||
|  | ||||
|    read_surface( "isosurf.dat" ); | ||||
|  | ||||
|    glutInit( &argc, argv); | ||||
|    glutInitWindowPosition(0, 0); | ||||
|    glutInitWindowSize(400, 400); | ||||
|  | ||||
|   | ||||
| @@ -826,7 +826,7 @@ static void pinit(void) | ||||
|  | ||||
| } | ||||
|  | ||||
| static void INIT(void) | ||||
| int main(int argc, char **argv) | ||||
| { | ||||
|   printf("Morph 3D - Shows morphing platonic polyhedra\n"); | ||||
|   printf("Author: Marcelo Fernandes Vianna (vianna@cat.cbpf.br)\n\n"); | ||||
| @@ -841,6 +841,7 @@ static void INIT(void) | ||||
|  | ||||
|   object=1; | ||||
|  | ||||
|   glutInit(&argc, argv); | ||||
|   glutInitWindowPosition(0,0); | ||||
|   glutInitWindowSize(640,480); | ||||
|  | ||||
| @@ -888,9 +889,3 @@ static void INIT(void) | ||||
|   glutMainLoop(); | ||||
|    | ||||
| } | ||||
|  | ||||
| int main(int argc, char **argv) | ||||
| { | ||||
|   INIT(); | ||||
|   return(0); | ||||
| } | ||||
|   | ||||
| @@ -100,6 +100,7 @@ static void init( void ) | ||||
|  | ||||
| int main( int argc, char *argv[] ) | ||||
| { | ||||
|    glutInit(&argc, argv); | ||||
|    glutInitWindowPosition(0, 0); | ||||
|    glutInitWindowSize(500, 500); | ||||
|    glutInitDisplayMode( GLUT_RGB ); | ||||
|   | ||||
							
								
								
									
										4
									
								
								progs/directfb/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								progs/directfb/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| df_gears | ||||
| df_morph3d | ||||
| df_reflect | ||||
| multi_window | ||||
| @@ -11,6 +11,8 @@ LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME) | ||||
| CFLAGS += $(shell pkg-config --cflags directfb) | ||||
| APP_LIB_DEPS += $(shell pkg-config --libs directfb) | ||||
|  | ||||
| LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS) | ||||
|  | ||||
| PROGS = df_gears \ | ||||
| 	   df_reflect \ | ||||
| 	   df_morph3d \ | ||||
| @@ -22,7 +24,7 @@ PROGS = df_gears \ | ||||
| .SUFFIXES: .c | ||||
|  | ||||
| .c: $(LIB_DEP) | ||||
| 	$(CC) -I$(INCDIR) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@ | ||||
| 	$(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@ | ||||
|  | ||||
|  | ||||
| ##### TARGETS ##### | ||||
|   | ||||
							
								
								
									
										5
									
								
								progs/egl/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								progs/egl/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| demo1 | ||||
| demo2 | ||||
| demo3 | ||||
| eglgears | ||||
| eglinfo | ||||
| @@ -25,35 +25,35 @@ default: $(PROGRAMS) | ||||
|  | ||||
|  | ||||
| demo1: demo1.o $(TOP)/$(LIB_DIR)/libEGL.so | ||||
| 	$(CC) $(CFLAGS) demo1.o -L$(TOP)/$(LIB_DIR) -lEGL $(LIBDRM_LIB) -o $@ | ||||
| 	$(CC) $(CFLAGS) $(LDFLAGS) demo1.o -L$(TOP)/$(LIB_DIR) -lEGL $(LIBDRM_LIB) -o $@ | ||||
|  | ||||
| demo1.o: demo1.c $(HEADERS) | ||||
| 	$(CC) -c $(CFLAGS) -I$(TOP)/include demo1.c | ||||
|  | ||||
|  | ||||
| demo2: demo2.o $(TOP)/$(LIB_DIR)/libEGL.so | ||||
| 	$(CC) $(CFLAGS) demo2.o -L$(TOP)/$(LIB_DIR) -lEGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@ | ||||
| 	$(CC) $(CFLAGS) $(LDFLAGS) demo2.o -L$(TOP)/$(LIB_DIR) -lEGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@ | ||||
|  | ||||
| demo2.o: demo2.c $(HEADERS) | ||||
| 	$(CC) -c $(CFLAGS) -I$(TOP)/include demo2.c | ||||
|  | ||||
|  | ||||
| demo3: demo3.o $(TOP)/$(LIB_DIR)/libEGL.so | ||||
| 	$(CC) $(CFLAGS) demo3.o -L$(TOP)/$(LIB_DIR) -lEGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@ | ||||
| 	$(CC) $(CFLAGS) $(LDFLAGS) demo3.o -L$(TOP)/$(LIB_DIR) -lEGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@ | ||||
|  | ||||
| demo3.o: demo3.c $(HEADERS) | ||||
| 	$(CC) -c $(CFLAGS) -I$(TOP)/include demo3.c | ||||
|  | ||||
|  | ||||
| eglinfo: eglinfo.o $(TOP)/$(LIB_DIR)/libEGL.so | ||||
| 	$(CC) $(CFLAGS) eglinfo.o -L$(TOP)/$(LIB_DIR) -lEGL $(LIBDRM_LIB) -o $@ | ||||
| 	$(CC) $(CFLAGS) $(LDFLAGS) eglinfo.o -L$(TOP)/$(LIB_DIR) -lEGL $(LIBDRM_LIB) -o $@ | ||||
|  | ||||
| eglinfo.o: eglinfo.c $(HEADERS) | ||||
| 	$(CC) -c $(CFLAGS) -I$(TOP)/include eglinfo.c | ||||
|  | ||||
|  | ||||
| eglgears: eglgears.o $(TOP)/$(LIB_DIR)/libEGL.so | ||||
| 	$(CC) $(CFLAGS) eglgears.o -L$(TOP)/$(LIB_DIR) -lEGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@ | ||||
| 	$(CC) $(CFLAGS) $(LDFLAGS) eglgears.o -L$(TOP)/$(LIB_DIR) -lEGL $(LIBDRM_LIB) $(APP_LIB_DEPS) -o $@ | ||||
|  | ||||
| eglgears.o: eglgears.c $(HEADERS) | ||||
| 	$(CC) -c $(CFLAGS) -I$(TOP)/include eglgears.c | ||||
|   | ||||
							
								
								
									
										1
									
								
								progs/fbdev/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								progs/fbdev/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| glfbdevtest | ||||
| @@ -15,6 +15,7 @@ INCLUDES = \ | ||||
| 	-I. \ | ||||
| 	-I$(TOP)/include | ||||
|  | ||||
| LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS) | ||||
|  | ||||
| ##### RULES ##### | ||||
|  | ||||
| @@ -22,7 +23,7 @@ INCLUDES = \ | ||||
| .SUFFIXES: .c | ||||
|  | ||||
| .c: | ||||
| 	$(CC) $(INCLUDES) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@ | ||||
| 	$(CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@ | ||||
|  | ||||
| .c.o: | ||||
| 	$(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@ | ||||
|   | ||||
							
								
								
									
										42
									
								
								progs/fp/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								progs/fp/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,42 @@ | ||||
| point-position | ||||
| readtex.c | ||||
| readtex.h | ||||
| tri-abs | ||||
| tri-add | ||||
| tri-cmp | ||||
| tri-cos | ||||
| tri-depth | ||||
| tri-depth2 | ||||
| tri-depthwrite | ||||
| tri-depthwrite2 | ||||
| tri-dp3 | ||||
| tri-dp4 | ||||
| tri-dph | ||||
| tri-dst | ||||
| tri-ex2 | ||||
| tri-flr | ||||
| tri-frc | ||||
| tri-kil | ||||
| tri-lg2 | ||||
| tri-lit | ||||
| tri-lrp | ||||
| tri-mad | ||||
| tri-max | ||||
| tri-min | ||||
| tri-mov | ||||
| tri-mul | ||||
| tri-param | ||||
| tri-position | ||||
| tri-pow | ||||
| tri-rcp | ||||
| tri-rsq | ||||
| tri-scs | ||||
| tri-sge | ||||
| tri-sge2 | ||||
| tri-sin | ||||
| tri-slt | ||||
| tri-sub | ||||
| tri-swz | ||||
| tri-swz2 | ||||
| tri-tex | ||||
| tri-xpd | ||||
| @@ -8,7 +8,7 @@ TOP = ../.. | ||||
| include $(TOP)/configs/current | ||||
|  | ||||
|  | ||||
| LIBS = $(APP_LIB_DEPS) | ||||
| LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS) | ||||
|  | ||||
| SOURCES = \ | ||||
| 	tri-abs.c \ | ||||
|   | ||||
							
								
								
									
										13
									
								
								progs/glsl/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								progs/glsl/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| bitmap | ||||
| brick | ||||
| bump | ||||
| deriv | ||||
| extfuncs.h | ||||
| mandelbrot | ||||
| noise | ||||
| points | ||||
| readtex.c | ||||
| readtex.h | ||||
| texdemo1 | ||||
| trirast | ||||
| toyball | ||||
| @@ -7,6 +7,8 @@ INCDIR = $(TOP)/include | ||||
|  | ||||
| LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME) | ||||
|  | ||||
| LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS) | ||||
|  | ||||
| PROGS = \ | ||||
| 	brick \ | ||||
| 	bump \ | ||||
| @@ -25,7 +27,7 @@ PROGS = \ | ||||
|  | ||||
| # make executable from .c file: | ||||
| .c: $(LIB_DEP) | ||||
| 	$(CC) -I$(INCDIR) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@ | ||||
| 	$(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@ | ||||
|  | ||||
|  | ||||
| ##### TARGETS ##### | ||||
| @@ -57,7 +59,7 @@ mandelbrot.c: extfuncs.h | ||||
| toyball.c: extfuncs.h | ||||
|  | ||||
| texdemo1: texdemo1.o readtex.o | ||||
| 	$(CC) -I$(INCDIR) $(CFLAGS) texdemo1.o readtex.o $(APP_LIB_DEPS) -o $@ | ||||
| 	$(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) texdemo1.o readtex.o $(LIBS) -o $@ | ||||
|  | ||||
| texdemo1.o: texdemo1.c readtex.h extfuncs.h | ||||
| 	$(CC) -c -I$(INCDIR) $(CFLAGS) texdemo1.c | ||||
|   | ||||
| @@ -247,7 +247,7 @@ LoadAndCompileShader(GLuint shader, const char *text) | ||||
|       GLchar log[1000]; | ||||
|       GLsizei len; | ||||
|       glGetShaderInfoLog_func(shader, 1000, &len, log); | ||||
|       fprintf(stderr, "brick: problem compiling shader: %s\n", log); | ||||
|       fprintf(stderr, "bump: problem compiling shader: %s\n", log); | ||||
|       exit(1); | ||||
|    } | ||||
|    else { | ||||
| @@ -267,12 +267,12 @@ ReadShader(GLuint shader, const char *filename) | ||||
|    char *buffer = (char*) malloc(max); | ||||
|    FILE *f = fopen(filename, "r"); | ||||
|    if (!f) { | ||||
|       fprintf(stderr, "brick: Unable to open shader file %s\n", filename); | ||||
|       fprintf(stderr, "bump: Unable to open shader file %s\n", filename); | ||||
|       exit(1); | ||||
|    } | ||||
|  | ||||
|    n = fread(buffer, 1, max, f); | ||||
|    printf("brick: read %d bytes from shader file %s\n", n, filename); | ||||
|    printf("bump: read %d bytes from shader file %s\n", n, filename); | ||||
|    if (n > 0) { | ||||
|       buffer[n] = 0; | ||||
|       LoadAndCompileShader(shader, buffer); | ||||
|   | ||||
| @@ -172,7 +172,7 @@ LoadAndCompileShader(GLuint shader, const char *text) | ||||
|       GLchar log[1000]; | ||||
|       GLsizei len; | ||||
|       glGetShaderInfoLog_func(shader, 1000, &len, log); | ||||
|       fprintf(stderr, "brick: problem compiling shader: %s\n", log); | ||||
|       fprintf(stderr, "mandelbrot: problem compiling shader: %s\n", log); | ||||
|       exit(1); | ||||
|    } | ||||
|    else { | ||||
| @@ -192,12 +192,12 @@ ReadShader(GLuint shader, const char *filename) | ||||
|    char *buffer = (char*) malloc(max); | ||||
|    FILE *f = fopen(filename, "r"); | ||||
|    if (!f) { | ||||
|       fprintf(stderr, "brick: Unable to open shader file %s\n", filename); | ||||
|       fprintf(stderr, "mandelbrot: Unable to open shader file %s\n", filename); | ||||
|       exit(1); | ||||
|    } | ||||
|  | ||||
|    n = fread(buffer, 1, max, f); | ||||
|    printf("brick: read %d bytes from shader file %s\n", n, filename); | ||||
|    printf("mandelbrot: read %d bytes from shader file %s\n", n, filename); | ||||
|    if (n > 0) { | ||||
|       buffer[n] = 0; | ||||
|       LoadAndCompileShader(shader, buffer); | ||||
|   | ||||
| @@ -188,7 +188,7 @@ LoadAndCompileShader(GLuint shader, const char *text) | ||||
|       GLchar log[1000]; | ||||
|       GLsizei len; | ||||
|       glGetShaderInfoLog_func(shader, 1000, &len, log); | ||||
|       fprintf(stderr, "brick: problem compiling shader: %s\n", log); | ||||
|       fprintf(stderr, "noise: problem compiling shader: %s\n", log); | ||||
|       exit(1); | ||||
|    } | ||||
|    else { | ||||
|   | ||||
| @@ -185,7 +185,7 @@ LoadAndCompileShader(GLuint shader, const char *text) | ||||
|       GLchar log[1000]; | ||||
|       GLsizei len; | ||||
|       glGetShaderInfoLog_func(shader, 1000, &len, log); | ||||
|       fprintf(stderr, "brick: problem compiling shader: %s\n", log); | ||||
|       fprintf(stderr, "toyball: problem compiling shader: %s\n", log); | ||||
|       exit(1); | ||||
|    } | ||||
|    else { | ||||
| @@ -205,12 +205,12 @@ ReadShader(GLuint shader, const char *filename) | ||||
|    char *buffer = (char*) malloc(max); | ||||
|    FILE *f = fopen(filename, "r"); | ||||
|    if (!f) { | ||||
|       fprintf(stderr, "brick: Unable to open shader file %s\n", filename); | ||||
|       fprintf(stderr, "toyball: Unable to open shader file %s\n", filename); | ||||
|       exit(1); | ||||
|    } | ||||
|  | ||||
|    n = fread(buffer, 1, max, f); | ||||
|    printf("brick: read %d bytes from shader file %s\n", n, filename); | ||||
|    printf("toyball: read %d bytes from shader file %s\n", n, filename); | ||||
|    if (n > 0) { | ||||
|       buffer[n] = 0; | ||||
|       LoadAndCompileShader(shader, buffer); | ||||
|   | ||||
							
								
								
									
										6
									
								
								progs/miniglx/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								progs/miniglx/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| manytex | ||||
| miniglxsample | ||||
| miniglxtest | ||||
| sample_server | ||||
| sample_server2 | ||||
| texline | ||||
| @@ -20,6 +20,8 @@ INCLUDES = \ | ||||
| 	-I. \ | ||||
| 	-I$(TOP)/include | ||||
|  | ||||
| LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS) | ||||
|  | ||||
|  | ||||
| ##### RULES ##### | ||||
|  | ||||
| @@ -27,7 +29,7 @@ INCLUDES = \ | ||||
| .SUFFIXES: .c | ||||
|  | ||||
| .c: | ||||
| 	$(CC) $(INCLUDES) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@ | ||||
| 	$(CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@ | ||||
|  | ||||
| .c.o: | ||||
| 	$(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@ | ||||
|   | ||||
							
								
								
									
										8
									
								
								progs/osdemos/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								progs/osdemos/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| osdemo | ||||
| osdemo16 | ||||
| osdemo32 | ||||
| ostest1 | ||||
| readtex.c | ||||
| readtex.h | ||||
| showbuffer.c | ||||
| showbuffer.h | ||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user