// -- norly.
#include <stdlib.h>
+
+#ifdef __APPLE__
+#include <OpenGL/gl.h>
+#include <OpenGL/glu.h>
+#include <GLUT/glut.h>
+#else
+#include <GL/gl.h>
+#include <GL/glu.h>
#include <GL/glut.h>
+#endif
#include "graph.h"
#include "glancillary.h"
// Set up the Projection transformation
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
- gluPerspective(90, (GLfloat)w/(GLfloat)h, 0.0, 5.0);
+ gluPerspective(90, (GLfloat)w/(GLfloat)h, 0.0001, 1000.0);
// Switch to Model/view transformation for drawing objects
glMatrixMode(GL_MODELVIEW);