Integrated changes for MacOSX, submitted by Phil Atkin, with small mods by

Robert Osfield to maintain compatability under Linux.
This commit is contained in:
Robert Osfield
2001-10-03 21:44:07 +00:00
parent 1ebddc2af7
commit 2c6e85442b
29 changed files with 395 additions and 91 deletions

View File

@@ -8,7 +8,7 @@
#include <sys/time.h>
#endif
#include <stdio.h>
#include <math.h>
#include <osg/Math>
#include <string>
@@ -48,7 +48,7 @@
#define USE_GLUT
#endif
#include <GL/glut.h>
#include <osgGLUT/glut>
#ifdef WIN32
#include <sys/timeb.h>
@@ -1049,7 +1049,7 @@ void Viewer::keyboard(unsigned char key, int x, int y)
if (_printStats>4) _printStats=0;
if (_printStats==4) { // count depth complexity by incrementing the stencil buffer every
// time a pixel is hit
int nsten=0; // Number of stencil planes available
GLint nsten=0; // Number of stencil planes available
glGetIntegerv(GL_STENCIL_BITS , &nsten);
if (nsten>0) {
glEnable(GL_STENCIL_TEST);