-
Notifications
You must be signed in to change notification settings - Fork 0
/
glwgt.h
38 lines (34 loc) · 802 Bytes
/
glwgt.h
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
37
38
#ifndef GLWGT_H
#define GLWGT_H
#include "logic.h"
#include <QtOpenGL/QGLWidget>
class GLWidget: public QGLWidget
{
Q_OBJECT
public:
GLWidget(QWidget *parent = 0);
void retranslateGLWidget();
~GLWidget();
protected:
void resizeGL(int w, int h);
void paintGL();
void initializeGL();
virtual void keyPressEvent(QKeyEvent *keyEvent);
private:
int a;
QString string_ren;
QString string_ren2;
QString string_ren3;
QString string_ren4;
QString string_ren5;
QString string_ren6;
void restructRes(int);
void drawGrid(double);
void debugBoard();
void reverse(double*, double*);
void drawPoint(double, double);
Logic *lgt;
QFont *font;
QImage data, gldata;
};
#endif // GLWGT_H