summaryrefslogtreecommitdiffstats
path: root/progs/samples/fog.c
diff options
context:
space:
mode:
authorGareth Hughes <[email protected]>2000-10-27 02:49:17 +0000
committerGareth Hughes <[email protected]>2000-10-27 02:49:17 +0000
commitba58a6665f21319a636ec4c09f7f592fbc8e36b5 (patch)
treebd30cc32f1a96d40b930cc2807763820c535d783 /progs/samples/fog.c
parentb4df56fcd9e8e7ac8d9f585daf90ac2f246fa508 (diff)
Change animated apps to double-buffered visuals by default.
Diffstat (limited to 'progs/samples/fog.c')
-rw-r--r--progs/samples/fog.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/progs/samples/fog.c b/progs/samples/fog.c
index 96534dddcb6..3f3ffdbcc7a 100644
--- a/progs/samples/fog.c
+++ b/progs/samples/fog.c
@@ -41,55 +41,55 @@ GLint cubeList = 1;
float scp[18][3] = {
{
1.000000, 0.000000, 0.000000
- },
+ },
{
1.000000, 0.000000, 5.000000
},
{
0.707107, 0.707107, 0.000000
- },
+ },
{
0.707107, 0.707107, 5.000000
},
{
0.000000, 1.000000, 0.000000
- },
+ },
{
0.000000, 1.000000, 5.000000
},
{
-0.707107, 0.707107, 0.000000
- },
+ },
{
-0.707107, 0.707107, 5.000000
},
{
-1.000000, 0.000000, 0.000000
- },
+ },
{
-1.000000, 0.000000, 5.000000
},
{
-0.707107, -0.707107, 0.000000
- },
+ },
{
-0.707107, -0.707107, 5.000000
},
{
0.000000, -1.000000, 0.000000
- },
+ },
{
0.000000, -1.000000, 5.000000
},
{
0.707107, -0.707107, 0.000000
- },
+ },
{
0.707107, -0.707107, 5.000000
},
{
1.000000, 0.000000, 0.000000
- },
+ },
{
1.000000, 0.000000, 5.000000
},
@@ -136,7 +136,7 @@ static void Init(void)
static float back_mat_diffuse[] = {1.0, 0.0, 0.0, 1.0};
static float lmodel_ambient[] = {0.0, 0.0, 0.0, 1.0};
static float fog_color[] = {0.8, 0.8, 0.8, 1.0};
-
+
glFrontFace(GL_CW);
glEnable(GL_DEPTH_TEST);
@@ -148,7 +148,7 @@ static void Init(void)
glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, GL_TRUE);
glEnable(GL_LIGHTING);
glEnable(GL_LIGHT0);
-
+
glMaterialfv(GL_FRONT, GL_SHININESS, front_mat_shininess);
glMaterialfv(GL_FRONT, GL_SPECULAR, front_mat_specular);
glMaterialfv(GL_FRONT, GL_DIFFUSE, front_mat_diffuse);
@@ -258,7 +258,7 @@ static GLenum Args(int argc, char **argv)
GLint i;
rgb = GL_TRUE;
- doubleBuffer = GL_FALSE;
+ doubleBuffer = GL_TRUE;
for (i = 1; i < argc; i++) {
if (strcmp(argv[i], "-ci") == 0) {