goat3d
view goatview/src/opengl.h @ 103:45a9d493e98c
fixed the input latency issue by calling QWidget::update() instead of QGLWidget::updateGL()
update schedules an update instead of redrawing immediately.
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 12 Sep 2015 17:40:02 +0300 |
parents | c1871707c678 |
children |
line source
1 #ifndef OPENGL_H_
2 #define OPENGL_H_
4 #include <GL/glew.h>
5 #define QT_NO_OPENGL_ES_2
7 #ifdef WIN32
8 #define WIN32_LEAN_AND_MEAN 1
9 #include <windows.h>
10 #undef min
11 #endif
13 #ifdef __APPLE__
14 #include <OpenGL/gl.h>
15 #include <OpenGL/glu.h>
16 #else
17 #include <GL/gl.h>
18 #include <GL/glu.h>
19 #endif
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
25 int init_opengl(void);
27 #ifdef __cplusplus
28 }
29 #endif
31 #endif /* OPENGL_H_ */