summaryrefslogtreecommitdiffstats
path: root/progs/samples/README
blob: 853158873c9afc7bad24495d24534a45f5001884 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
/*
 * Copyright (c) 1991, 1992, 1993 Silicon Graphics, Inc.
 *
 * Permission to use, copy, modify, distribute, and sell this software and
 * its documentation for any purpose is hereby granted without fee, provided
 * that (i) the above copyright notices and this permission notice appear in
 * all copies of the software and related documentation, and (ii) the name of
 * Silicon Graphics may not be used in any advertising or
 * publicity relating to the software without the specific, prior written
 * permission of Silicon Graphics.
 *
 * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF
 * ANY KIND,
 * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
 * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
 *
 * IN NO EVENT SHALL SILICON GRAPHICS BE LIABLE FOR
 * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
 * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
 * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
 * OF THIS SOFTWARE.
 */

accum - Accumulation test.
    - RGBA, SB/DB (SB default).
    - cmd line options:
	-sb	Single buffer mode.
	-db	Double buffer mode.
    - keys:
	ESC	Quit
	1	Use filled polygon mode.
	2	Use outlined polygon mode.

bitmap1 - Bitmap test.
    - RGBA/CI (RGBA default), SB/DB (SB default).
    - cmd line options:
	-rgb	RGBA mode.
	-ci	Color index mode.
	-sb	Single buffer mode.
	-db	Double buffer mode.
    - keys:
	ESC	Quit.

bitmap2 - Bitmap test.
    - RGBA/CI (RGBA default), SB/DB (SB default).
    - cmd line options:
	-rgb	RGBA mode.
	-ci	Color index mode.
	-sb	Single buffer mode.
	-db	Double buffer mode.
    - keys:
	ESC	Quit.
	1	Toggle display list mode.
	2	Toggle color animation mode.

copy - Pixel copy test.
    - RGBA, SB/DB (SB default).
    - cmd line options:
	-sb		Single buffer mode.
	-db		Double buffer mode.
	-dr		Direct render mode.
	-ir		Indirect render mode.
	-f <file name>	RGB image file.
    - keys:
	ESC		Quit.
	Z		Increase zoom factor.
	z		Decrease zoom factor.
    - mouse input:
	Left		Copy location.

cursor - Cursor test.
    - RGBA/CI (RGBA default), SB/DB (SB default).
    - cmd line options:
	-rgb	RGBA mode.
	-ci	Color index mode.
	-sb	Single buffer mode.
	-db	Double buffer mode.
    - keys:
	ESC	Quit.
	SPACE	switch cursor color.

depth - Z buffer test.
    - RGBA/CI (RGBA default), SB/DB (SB default).
    - cmd line options:
	-rgb	RGBA mode.
	-ci	Color index mode.
	-sb	Single buffer mode.
	-db	Double buffer mode.
    - keys:
	ESC	Quit.
	1	Toggle anti-aliased mode.
	2	Toggle stipple mode.

eval - Evaluator test.
    - RGBA, SB/DB (SB default).
    - cmd line options:
	-sb	Single buffer mode.
	-db	Double buffer mode.
    - keys:
	ESC	Quit.
	LEFT	Rotate.
	RIGHT	Rotate.
	UP	Rotate.
	DOWN	Rotate.
	1	Toggle dimensions.
	2	Toggle dimensions.
	e	Use eval mode.
	m	Use mesh mode.
	f	Toggle polygon mode.
	p	Toggle point mode.
	c	Toggle color mode.
	t	Toggle texture mode.
	l	Toggle lighting mode.

fog - Fog test.
    - RGBA/CI (RGBA default), SB/DB (SB default).
    - cmd line options:
	-rgb	RGBA mode.
	-ci	Color index mode.
	-sb	Single buffer mode.
	-db	Double buffer mode.
    - keys:
	ESC	Quit.
	LEFT	Rotate.
	RIGHT	Rotate.
	UP	Rotate.
	DOWN	Rotate.
	D	Increase fog density.
	d	Decrease fog density.

font - font test.
    - RGBA/CI (RGBA default), SB/DB (SB default).
    - cmd line options:
	-rgb	RGBA mode.
	-ci	Color index mode.
	-sb	Single buffer mode.
	-db	Double buffer mode.
    - keys:
	ESC	Quit.
	Left	Shift left.
	Right	Shift right.
	Up	Shift up.
	Down	Shift down.
	n	Shift in.
	m	Shift out.
	q	Scale up x.
	w	Scale down x.
	a	Scale up y.
	s	Scale down y.
	z	Scale up z.
	x	Scale down z.
	e	Rotate clockwise x.
	r	Rotate counter-clockwise x.
	d	Rotate clockwise y.
	f	Rotate counter-clockwise y.
	c	Rotate clockwise z.
	v	Rotate counter-clockwise z.

line - Line test.
    - RGBA/CI (RGBA default), SB/DB (SB default).
    - cmd line options:
	-rgb	RGBA mode.
	-ci	Color index mode.
	-sb	Single buffer mode.
	-db	Double buffer mode.
    - keys:
	ESC	Quit.
	W	Increase line width.
	w	Decrease line width.
	1	Toggle stipple mode.
	2	Toggle anti-aliased mode.

logo - Demo.
    - RGBA/CI (RGBA default), SB/DB (SB default).
    - cmd line options:
	-rgb	RGBA mode.
	-ci	Color index mode.
	-sb	Single buffer mode.
	-db	Double buffer mode.
    - keys:
	ESC	Quit.
	LEFT	Rotate.
	RIGHT	Rotate
	UP	Move clipping plane.
	DOWN	Move clipping plane.
	Z	Translate.
	z	Translate.
	1	Use GL_POINT polygon mode.
	2	Use GL_LINE polygon mode.
	3	Use GL_FILL polygon mode.
	p	Toggle polygon fill modes.
	4	Use GL_NICEST for GL_POLYGON_SMOOTH_HINT.
	5	Use anti-aliased polygon mode.
	6	Use aliased polygon mode.
	8	Toggle dither mode.
	9	Toggle stipple polygon mode.
	0	Toggle flat/smooth shading mode.
	q	Disable cull mode.
	w	Use front face cull mode.
	e	Use back face cull mode.
	r	Use clockwise front face mode.
	t 	Use counter-clockwise front face mode.
	y	Use MSB first stipple pattern.
	u	Use LSB first stipple pattern.
	a	Use brick texture map.
	s	Use checker texture map.
	d	Disable texture map.
	f	Use decal texture environment mode.
	g	Use modulate texture environment mode.

nurb - Nurb test.
    - RGBA, SB/DB (SB default).
    - cmd line options:
	-sb	Single buffer mode.
	-db	Double buffer mode.
    - keys:
	ESC	Quit.
	LEFT	Rotate.
	RIGHT	Rotate.
	UP	Rotate.
	DOWN	Rotate.

olympic - Olymipic rings demo.
    - RGBA/CI (RGBA default), SB/DB (SB default).
    - cmd line options:
	-rgb	RGBA mode.
	-ci	Color index mode.
	-sb	Single buffer mode.
	-db	Double buffer mode.
    - keys:
	ESC	Quit.
	SPACE	Restart demo.

overlay - Overlay plane demo.
    - RGBA, SB/DB (SB default).
    - cmd line options:
	-sb	Single buffer mode.
	-db	Double buffer mode.
    - keys:
	ESC	Quit.
	SPACE	Toggle star weird movement mode.
	t	Toggle star turbo mode.

point - Point test.
    - RGBA/CI (RGBA default), SB/DB (SB default).
    - cmd line options:
	-rgb	RGBA mode.
	-ci	Color index mode.
	-sb	Single buffer mode.
	-db	Double buffer mode.
    - keys:
	ESC	Quit.
	LEFT	Translate.
	RIGHT	Translate.
	UP	Translate.
	DOWN	Translate.
	W	Increase point width.
	w	Decrease point width.
	1	Toggle anti-aliased mode.

prim - Primitive test.
    - RGBA/CI (RGBA default), SB/DB (SB default).
    - cmd line options:
	-rgb	RGBA mode.
	-ci	Color index mode.
	-sb	Single buffer mode.
	-db	Double buffer mode.
    - keys:
	ESC	Quit.
	1	Toggle flat/smooth shade mode.
	2	Toggle outlined/filled polygon mode.
	3	Toggle color mask mode.

quad - Quadric test.
    - RGBA/CI (RGBA default), SB/DB (SB default).
    - cmd line options:
	-rgb		RGBA mode.
	-ci		Color index mode.
	-sb		Single buffer mode.
	-db		Double buffer mode.
	-dr		Direct render mode.
	-ir		Indirect render mode.
	-f <file name>	texture file.
    - keys:
	ESC		Quit.
	LEFT		Rotate.
	RIGHT		Rotate.
	UP		Rotate.
	DOWN		Rotate.
	X		Rotate.
	x		Rotate.
	1		Use GLU_FILL draw style.
	2		Use GLU_POINT draw style.
	3		Use GLU_LINE draw style.
	4		Use GLU_SILHOUETTE draw style.
	0		Toggle flat/smooth shade mode.
	f		Cylce through quadrics.
	d		Toggle orientation.
	A		Increase number of stacks.
	a		Decrease number of stacks.
	S		Increase number of slices.
	s		Decrease number of slices.
	G		Increase radius1.
	g		Decrease radius1.
	J		Increase radius2.
	j		Decrease radius2.
	H		Increase height.
	h		Decrease height.
	K		Increase angle1.
	k		Decrease angle1.
	L		Increase angle2.
	l		Decrease angle2.
	z		Toggle texture mode.
	q		Disable cull mode.
	w		Use front face cull mode.
	e		Use back face cull mode.
	r		Use clockwise front face mode.
	t 		Use counter-clockwise front face mode.
	y		Toggle dither mode.

select - Selection test.
    - RGBA, SB.
    - cmd line options:
    - keys:
	ESC	Quit.
	LEFT	Rotate.
	RIGHT	Rotate.
	Z	Increase zoom factor.
	z	Decrease zoom factor.
	d	Zoom at current mouse location.
	f	Print feedback information.
	l	Toggle outlined/filled polygon mode.
    - mouse:
	Left	Recolor selected triangle.
	Center	Enlarge selected triangle.
	Right	Delete selected triangle.

shape - shape test.
    - RGBA/CI (RGBA default), SB/DB (SB default).
    - cmd line options:
	-rgb	RGBA mode.
	-ci	Color index mode.
	-sb	Single buffer mode.
	-db	Double buffer mode.
    - keys:
	ESC	Quit.
	Left	Shift left.
	Right	Shift right.
	Up	Shift up.
	Down	Shift down.
	n	Shift in.
	m	Shift out.
	q	Scale up x.
	w	Scale down x.
	a	Scale up y.
	s	Scale down y.
	z	Scale up z.
	x	Scale down z.
	e	Rotate clockwise x.
	r	Rotate counter-clockwise x.
	d	Rotate clockwise y.
	f	Rotate counter-clockwise y.
	c	Rotate clockwise z.
	v	Rotate counter-clockwise z.
	SPACE	switch shapes.

speed - Speed test.
    - RGBA/CI (RGBA default), SB/DB (SB default).
    - cmd line options:
	-rgb	RGBA mode.
	-ci	Color index mode.
	-sb	Single buffer mode.
	-db	Double buffer mode.
    - keys:
	ESC	Quit.
	a	Toggle anti-aliased mode.
	d	Toggle z buffering mode.
	f	Toggle fog mode.
	F	Toggle fog hint mode.
	s	Toggle flat/smooth shading mode.
	t	Toggle texturing mode.

sphere - Spheremap test.
    - RGBA, SB/DB (SB default).
    - cmd line options:
	-sb		Single buffer mode.
	-db		Double buffer mode.
	-dr		Direct render mode.
	-ir		Indirect render mode.
	-f <file name>	texture file.
	-3		Use RGB components.
	-4		Use RGBA components.
    - keys:
	ESC		Quit.
        LEFT		Rotate about the y axis.
        RIGHT		Rotate about the y axis.
        UP		Rotate about the x axis.
        DOWN		Rotate about the x axis.
        a		Toggle auto rotate mode.
        c		toggle between cylinder or cube object.
        t		Use torus object.
        d		Use decal texture mode.
      	m		Use modulate texture mode.
        l		Toggle lighted mode.
        f		Toggle fog mode.
        0		Use nearest magification filter.
        1		Use linear magification.
        2		Use nearest minification filter.
        3		Use linear minification filter. 
        4		Use nearest-mipmap-nearest minification filter. 
        5		Use nearest-mipmap-linear minification filter. 
        6		Use linear-mipmap-nearest minification filter. 
        7		Use linear-mipmap-linear minification filter. 

star - Demo.
    - RGBA, SB/DB (SB default).
    - cmd line options:
	-sb	Single buffer mode.
	-db	Double buffer mode.
    - keys:
	ESC	Quit.
	SPACE	Toggle weird movement mode.
	t	Toggle turbo mode.

stencil - Stencil test.
    - RGBA, SB.
    - cmd line options:

stretch - Texture test.
    - RGBA, SB.
    - cmd line options:
	-sb		Single buffer mode.
	-db		Double buffer mode.
	-dr		Direct render mode.
	-ir		Indirect render mode.
	-f <file name>	texture file.
    - keys:
	ESC		Quit.
	SPACE		Start animation.
    - mouse:
	Left		Added stretch point.

texture - Texture test.
    - RGBA, SB/DB (SB default).
    - cmd line options:
	-sb		Single buffer mode.
	-db		Double buffer mode.
	-dr		Direct render mode.
	-ir		Indirect render mode.
	-f <file name>	texture file.
    - keys:
	ESC		Quit.
	LEFT		Rotate.
	RIGHT		Rotate.
	UP		Rotate.
	DOWN		Rotate.
	T		Translate.
	t		Translate.
	s		Toggle sphere map mode.
	0		Use nearest magification filter.
	1		Use linear magification filter.
	2		Use nearest minification filter.
	3		Use linear minification filter.
	4		Use nearest-mipmap-nearest minification filter.
	5		Use nearest-mipmap-linear minification filter.
	6		Use linear-mipmap-nearest minification filter.
	7		Use linear-mipmap-linear minification filter.

tri - Triangle test.
    - RGBA/CI (RGBA default), SB/DB (SB default).
    - cmd line options:
	-rgb	RGBA mode.
	-ci	Color index mode.
	-sb	Single buffer mode.
	-db	Double buffer mode.
    - keys:
	ESC	Quit.
	LEFT	Translate.
	RIGHT	Translate.
	Z	Increase zoom factor.
	z	Decrease zoom factor.
	1	Use point polygon mode.
	2	Use line polygon mode.
	3	Use filled polygon mode.
	4	Use point primitive.
	5	Use line-loop primitive.
	6	Use polygon primitive.
	7	Toggle cull mode.
	8	Use clockwise/counter-clockwise front face mode.
	9	Toggle front/back face cull mode.
	v	Toggle show verticies mode.
	s	Toggle flat/smooth shade mode.
	h	Toggle hide bottom triangle mode.
	o	Toggle outline mode.
	m	Toggle dither mode.
	0	Toggle anti-aliased mode.

wave - Demo.
    - RGBA/CI (RGBA default), SB/DB (SB default).
    - cmd line options:
	-rgb		RGBA mode.
	-ci		Color index mode.
	-sb		Single buffer mode.
	-db		Double buffer mode.
	-dr		Direct render mode.
	-ir		Indirect render mode.
	-grid <x> <y>	Number of grids.
	-size <number>	Size of grid.
	-wave <number>	Height of wave (floating point number).
	-frames <count>	Number of frames.
    - keys:
	ESC		Quit.
	c		Toggle contouring mode.
	s		Toggle flat/smooth shade mode.
	l		Toggle lighting mode.
	d		Toggle depth checking mode.
	SPACE		Toggle step/animation mode.
	n		Single step in step mode.
	a		Toggle spin mode.