-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathglwidget.h
More file actions
36 lines (29 loc) · 731 Bytes
/
glwidget.h
File metadata and controls
36 lines (29 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef GLWIDGET_H
#define GLWIDGET_H
#include <QGLWidget>
#include <QtOpenGL>
class GLWidget : public QGLWidget
{
public:
GLWidget();
~GLWidget();
double rotX, rotY, rotZ; //i want access these variable so public
void resizeGL(int width, int height);
short int col;
void setTexture(GLuint test);
void refreshSceneInterval(int ms);
void stopTimer();
void restartTimer();
protected:
void initializeGL();
void paintGL();
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
void timerEvent(QTimerEvent *event);
private:
bool m_texture;
GLuint m_glTexture;
int m_timerID;
int m_lastInterval;
};
#endif // GLWIDGET_H