2002-12-10 20:50:48 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include <config.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_WINDOWS_H
|
|
|
|
# include <windows.h>
|
|
|
|
#endif
|
|
|
|
|
1998-07-03 12:18:55 +00:00
|
|
|
#include <stdio.h>
|
2002-12-10 20:50:48 +00:00
|
|
|
|
2004-11-18 19:53:00 +00:00
|
|
|
#include <simgear/compiler.h>
|
|
|
|
|
|
|
|
#include SG_GLUT_H
|
2002-12-10 20:50:48 +00:00
|
|
|
|
1998-07-03 12:18:55 +00:00
|
|
|
|
|
|
|
int main() {
|
|
|
|
GLfloat a, t;
|
|
|
|
|
|
|
|
a = 1.0;
|
|
|
|
|
|
|
|
do {
|
|
|
|
printf("a = %.10f\n", a);
|
|
|
|
a = a / 2.0;
|
|
|
|
t = 1.0 + a;
|
|
|
|
} while ( t > 1.0 );
|
|
|
|
|
|
|
|
a = a + a;
|
|
|
|
|
|
|
|
printf("Estimated GLfloat epsilon = %.10f\n", a);
|
|
|
|
|
|
|
|
return(0);
|
|
|
|
}
|