progs/trivial: draw non-interleaved arrays out of one vbo
[mesa.git] / progs / trivial / SConscript
1 Import('env')
2
3 if not env['GLUT']:
4 Return()
5
6 env = env.Clone()
7
8 env.Prepend(LIBS = ['$GLUT_LIB'])
9
10 progs = [
11 'clear-fbo-tex',
12 'clear-fbo',
13 'clear-scissor',
14 'clear-undefined',
15 'clear-repeat',
16 'clear',
17 'dlist-dangling',
18 'dlist-edgeflag-dangling',
19 'dlist-edgeflag',
20 'dlist-degenerate',
21 'drawarrays',
22 'draw2arrays',
23 'drawelements',
24 'drawrange',
25 'flat-clip',
26 'fs-tri',
27 'line-clip',
28 'line-cull',
29 'line-smooth',
30 'line-stipple-wide',
31 'line-userclip-clip',
32 'line-userclip-nop-clip',
33 'line-userclip-nop',
34 'line-userclip',
35 'line-wide',
36 'line',
37 'lineloop-clip',
38 'lineloop-elts',
39 'lineloop',
40 'linestrip-flat-stipple',
41 'linestrip-stipple-wide',
42 'linestrip-stipple',
43 'linestrip',
44 'long-fixed-func',
45 'pgon-mode',
46 'point-clip',
47 'point-param',
48 'point-sprite',
49 'point-wide',
50 'point-wide-smooth',
51 'point',
52 'poly-flat',
53 'poly-flat-clip',
54 'poly-flat-unfilled-clip',
55 'poly-unfilled',
56 'poly',
57 'quad-clip-all-vertices',
58 'quad-clip-nearplane',
59 'quad-clip',
60 'quad-degenerate',
61 'quad-flat',
62 'quad-offset-factor',
63 'quad-offset-unfilled',
64 'quad-offset-units',
65 'quad-tex-2d',
66 'quad-tex-3d',
67 'quad-tex-alpha',
68 'quad-tex-pbo',
69 'quad-tex-sub',
70 'quad-unfilled-clip',
71 'quad-unfilled-stipple',
72 'quad-unfilled',
73 'quad',
74 'quads',
75 'quadstrip-clip',
76 'quadstrip-cont',
77 'quadstrip-flat',
78 'quadstrip',
79 'tri-alpha',
80 'tri-blend-color',
81 'tri-blend-max',
82 'tri-blend-min',
83 'tri-blend-revsub',
84 'tri-blend-sub',
85 'tri-blend',
86 'tri-clip',
87 'tri-clear',
88 'tri-cull-both',
89 'tri-cull',
90 'tri-dlist',
91 'tri-edgeflag',
92 'tri-fbo-tex-mip',
93 'tri-fbo-tex',
94 'tri-fbo',
95 'tri-flat-clip',
96 'tri-flat',
97 'tri-fog',
98 'tri-fp',
99 'tri-fp-const-imm',
100 'tri-lit',
101 'tri-logicop-none',
102 'tri-logicop-xor',
103 'tri-mask-tri',
104 'tri-orig',
105 'tri-query',
106 'tri-repeat',
107 'tri-scissor-tri',
108 'tri-stencil',
109 'tri-stipple',
110 'tri-multitex-vbo',
111 'tri-tex',
112 'tri-tex-3d',
113 'tri-tri',
114 'tri-unfilled-fog',
115 'tri-unfilled-edgeflag',
116 'tri-unfilled-clip',
117 'tri-unfilled-smooth',
118 'tri-unfilled-tri',
119 'tri-unfilled-tri-lit',
120 'tri-unfilled-userclip-stip',
121 'tri-unfilled-userclip',
122 'tri-unfilled',
123 'tri-userclip',
124 'tri-viewport',
125 'tri-z-eq',
126 'tri-z',
127 'tri',
128 'trifan-flat',
129 'trifan-flat-clip',
130 'trifan-flat-unfilled-clip',
131 'trifan-unfilled',
132 'trifan',
133 'tristrip-clip',
134 'tristrip-flat',
135 'tristrip',
136 'vbo-drawarrays',
137 'vbo-drawelements',
138 'vbo-drawrange',
139 'vp-array',
140 'vp-array-int',
141 'vp-clip',
142 'vp-line-clip',
143 'vp-tri',
144 'vp-tri-swap',
145 'vp-tri-tex',
146 'vp-tri-imm',
147 'vp-tri-cb',
148 'vp-tri-cb-pos',
149 'vp-tri-cb-tex',
150 'vp-unfilled',
151 ]
152
153 for prog in progs:
154 prog = env.Program(
155 target = prog,
156 source = prog + '.c',
157 )
158
159 # auto code generation
160 #getprocaddress: getprocaddress.c getproclist.h
161
162 #getproclist.h: $(TOP)/src/mesa/glapi/gl_API.xml getprocaddress.c getprocaddress.py
163 # python getprocaddress.py > getproclist.h
164
165
166 #readtex.h: $(TOP)/progs/util/readtex.h
167 # ln -s $(TOP)/progs/util/readtex.h .
168
169 #readtex.c: $(TOP)/progs/util/readtex.c
170 # ln -s $(TOP)/progs/util/readtex.c .
171
172
173 #extfuncs.h: $(TOP)/progs/util/extfuncs.h
174 # cp $< .