Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
panoramic
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Luis Penaranda
panoramic
Commits
cf9372e1
Commit
cf9372e1
authored
Jan 08, 2013
by
Luis Penaranda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corrected GL includes
parent
cf654b44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
17 deletions
+15
-17
openglcanvas.h
openglcanvas.h
+15
-17
No files found.
openglcanvas.h
View file @
cf9372e1
#ifndef OPENGLCANVAS_H
#define OPENGLCANVAS_H
#ifndef GL_VERSION_3_1
#include <GL/glew.h>
#if (!defined GLEW_VERSION_1_5) || (!defined GL_VERSION_3_1)
#error OpenGL 3.1 or GLEW 1.5.2 is required
#endif
// GLew might not be needed if a recent version of OpenGL is present
#include <GL/glew.h>
#if (!defined GLEW_VERSION_1_5) || (!defined GL_VERSION_3_1)
#error GLEW 1.5.2 is required
#endif
#include <QGLWidget>
#include <fcntl.h>
#include <unistd.h>
#include "chronos.h"
#include <QTimer>
extern
"C"
{
#include <ppm.h>
#include <pm.h>
#include <pam.h>
}
#define GL_GLEXT_PROTOTYPES 1
#ifdef __APPLE__
#include<OpenGL/gl.h>
...
...
@@ -33,8 +20,19 @@ extern "C" {
#include <GL/glext.h>
#endif
#include <QGLWidget>
#include <QTimer>
#include <QFile>
#include <QFileDialog>
#include <fcntl.h>
#include <unistd.h>
#include "chronos.h"
extern
"C"
{
#include <ppm.h>
#include <pm.h>
#include <pam.h>
}
class
OpenGLCanvas
:
public
QGLWidget
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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