merged glut_wrap.h into glxgears

I saw a post yesterday where someone had made a similar fork and they left out glut_wrap.h for unknown reasons and they had ~dozen people involved, so I'm following suit. (peer pressure ftw)
This commit is contained in:
Lexxy Fox 2023-11-02 10:09:26 -05:00
parent bf9578a97a
commit 7fa54e80a5
2 changed files with 10 additions and 12 deletions

View File

@ -1,11 +0,0 @@
#ifdef HAVE_FREEGLUT
#include <GL/freeglut.h>
#elif defined __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
#ifndef GLAPIENTRY
#define GLAPIENTRY
#endif

View File

@ -19,8 +19,17 @@
#include <math.h>
#include <stdio.h>
#include <string.h>
#ifdef HAVE_FREEGLUT
#include <GL/freeglut.h>
#elif defined __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
#include "glut_wrap.h"
#ifndef GLAPIENTRY
#define GLAPIENTRY
#endif
static GLint T0 = 0;
static GLint Frames = 0;