Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Luis Penaranda
panoramic
Commits
f31c31a5
Commit
f31c31a5
authored
May 15, 2013
by
Luis Penaranda
Browse files
moved includes related to GL to a separate header
parent
849dfe2d
Changes
2
Hide whitespace changes
Inline
Side-by-side
glincludes.h
0 → 100644
View file @
f31c31a5
#ifndef GLINCLUDES_H
#define GLINCLUDES_H
// GLew might not be needed on mac, or if a recent version of OpenGL is present
#ifndef __APPLE__
#include
<GL/glew.h>
#if (!defined GLEW_VERSION_1_5) || (!defined GL_VERSION_3_1)
#error GLEW 1.5.2 is required
#endif
#endif
#define GL_GLEXT_PROTOTYPES 1
#ifdef __APPLE__
#include
<OpenGL/gl.h>
#include
<OpenGL/glu.h>
#include
<Glut/glut.h>
#include
<OpenGL/glext.h>
#else
//#include <GL/gl.h>
//#include <GL/glu.h>
#include
<GL/glut.h>
// is glext really needed?
//#include <GL/glext.h>
#endif
#endif // GLINCLUDES_H
openglcanvas.h
View file @
f31c31a5
#ifndef OPENGLCANVAS_H
#define OPENGLCANVAS_H
// GLew might not be needed on mac, or if a recent version of OpenGL is present
#ifndef __APPLE__
#include
<GL/glew.h>
#if (!defined GLEW_VERSION_1_5) || (!defined GL_VERSION_3_1)
#error GLEW 1.5.2 is required
#endif
#endif
#define GL_GLEXT_PROTOTYPES 1
#ifdef __APPLE__
#include
<OpenGL/gl.h>
#include
<OpenGL/glu.h>
#include
<Glut/glut.h>
#include
<OpenGL/glext.h>
#else
//#include <GL/gl.h>
//#include <GL/glu.h>
#include
<GL/glut.h>
// is glext really needed?
//#include <GL/glext.h>
#endif
#include
"glincludes.h"
#include
<QGLWidget>
#include
<QTimer>
#include
<QFile>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment