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
Commit of a vertex array example
[agianapa.git]
/
qt
/
vertexarray
/
myglwidget.h
blob
43c52565f4f425d7c978cc55de5d8420d5d26bf5
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
setNumOfVertices
(
int
dir
);
17
18
protected
:
19
void
initializeGL
();
20
void
paintGL
();
21
void
resizeGL
(
int
width
,
int
height
);
22
23
private
:
24
void
drawCircle
(
unsigned int
numVertices
);
25
unsigned int
numVertices
;
26
GLuint mycircle
;
27
GLfloat
*
pVertices
;
28
};
29
30
#endif
// MYGLWIDGET