summaryrefslogtreecommitdiff
path: root/progs/samples/olympic.c
diff options
context:
space:
mode:
authorGareth Hughes <gareth@valinux.com>2000-10-27 02:49:17 +0000
committerGareth Hughes <gareth@valinux.com>2000-10-27 02:49:17 +0000
commitba58a6665f21319a636ec4c09f7f592fbc8e36b5 (patch)
treebd30cc32f1a96d40b930cc2807763820c535d783 /progs/samples/olympic.c
parentb4df56fcd9e8e7ac8d9f585daf90ac2f246fa508 (diff)
Change animated apps to double-buffered visuals by default.
Diffstat (limited to 'progs/samples/olympic.c')
-rw-r--r--progs/samples/olympic.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/progs/samples/olympic.c b/progs/samples/olympic.c
index db72002c01..d1cfa7250f 100644
--- a/progs/samples/olympic.c
+++ b/progs/samples/olympic.c
@@ -26,7 +26,7 @@
* Nov 20, 1995 use stdlib's rand()/srand() instead of random()/srand48(), etc.
*/
-/*
+/*
* Modified by Li Wei(liwei@aiar.xjtu.edu.cn) to be able to run in Windows
* 6/13
*
@@ -83,7 +83,7 @@ void FillTorus(float rc, int numc, float rt, int numt)
pi = 3.14159265358979323846;
twopi = 2 * pi;
-
+
for (i = 0; i < numc; i++) {
glBegin(GL_QUAD_STRIP);
for (j = 0; j <= numt; j++) {
@@ -136,7 +136,7 @@ void DrawScene(void)
}
glPushMatrix();
-
+
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
gluLookAt(0,0,10, 0,0,0, 0,1,0);
@@ -252,7 +252,7 @@ void Init(void)
dests[GREENRING][1] = bottom_y;
dests[GREENRING][2] = bottom_z;
- base = 2.0;
+ base = 2.0;
height = 2.0;
theTorus = glGenLists(1);
glNewList(theTorus, GL_COMPILE);
@@ -321,7 +321,7 @@ 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) {