http://slackware.bholcomb.com/slackware/slackware-11.0/source/xap/xscreensaver/xscree...
[xscreensaver] / hacks / glx / ants.h
1 /* ants.h -- header file containing common ant parameters
2  *
3  * Permission to use, copy, modify, and distribute this software and its
4  * documentation for any purpose and without fee is hereby granted,
5  * provided that the above copyright notice appear in all copies and that
6  * both that copyright notice and this permission notice appear in
7  * supporting documentation.
8  *
9  * This file is provided AS IS with no warranties of any kind.  The author
10  * shall have no liability with respect to the infringement of copyrights,
11  * trade secrets or any patents by this file or any part thereof.  In no
12  * event will the author be liable for any lost revenue or profits or
13  * other special, indirect and consequential damages.
14  *
15  * Copyright 2003 Blair Tennessy
16 */
17
18 /* static const GLfloat MaterialRed[] = {0.6, 0.0, 0.0, 1.0}; */
19 /*static const GLfloat MaterialPurple[] = {0.6, 0.2, 0.5, 1.0};*/
20 /*static const GLfloat MaterialOrange[] = {1.0, 0.69, 0.00, 1.0};*/
21 /*static const GLfloat MaterialGreen[] = {0.1, 0.5, 0.2, 0.2};*/
22 /*static const GLfloat MaterialBlue[] = {0.4, 0.4, 0.8, 1.0};*/
23 /*static const GLfloat MaterialCyan[] = {0.2, 0.5, 0.7, 1.0};*/
24 /*static const GLfloat MaterialYellow[] = {0.7, 0.7, 0.0, 1.0};*/
25 /* static const GLfloat MaterialMagenta[] = {0.6, 0.2, 0.5, 1.0}; */
26 /*static const GLfloat MaterialWhite[] = {0.7, 0.7, 0.7, 1.0};*/
27 static const GLfloat MaterialGray[] = {0.2, 0.2, 0.2, 1.0};
28 static const GLfloat MaterialGrayB[] = {0.1, 0.1, 0.1, 0.5};
29 /*static const GLfloat MaterialGray35[] = {0.30, 0.30, 0.30, 1.0};*/
30
31 static const GLfloat MaterialGray5[] = {0.5, 0.5, 0.5, 1.0};
32 static const GLfloat MaterialGray6[] = {0.6, 0.6, 0.6, 1.0};
33 /* static const GLfloat MaterialGray8[] = {0.8, 0.8, 0.8, 1.0};*/
34
35 typedef struct {
36
37   double position[3];
38   double goal[3];
39   double velocity;
40   double direction;
41   double step;
42
43   const GLfloat *material;
44
45 } Ant;