repo.or.cz
/
agianapa.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
First approact to a producer-consumer model
[agianapa.git]
/
qt
/
triangle
/
myglwidget.h
blob
378bfdc1397d257a2108409b2cab4d7b5956daa5
1
#ifndef MYGLWIDGET_H
2
#define MYGLWIDGET_H
3
4
#include <QGLWidget>
5
#include <QKeyEvent>
6
7
class
MyGLWidget
:
public
QGLWidget
8
{
9
Q_OBJECT
10
11
public
:
12
MyGLWidget
(
QWidget
*
parent
=
0
);
13
~
MyGLWidget
();
14
15
public
slots
:
16
void
setRotation
(
int
dir
);
17
void
resizeWidget
(
QResizeEvent
*
e
);
18
19
protected
:
20
void
initializeGL
();
21
void
paintGL
();
22
void
resizeGL
(
int
width
,
int
height
);
23
24
private
:
25
int
angle
;
26
};
27
28
#endif
// MYGLWIDGET