forked from Blackcatn13/houseDesigner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRender.h
More file actions
25 lines (22 loc) · 647 Bytes
/
Render.h
File metadata and controls
25 lines (22 loc) · 647 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
#ifndef RENDER_H
#define RENDER_H
#include "Util.h"
#include <QMouseEvent>
#include <qobject.h>
class Render : public QObject
{
Q_OBJECT
public:
void virtual Draw() = 0;
void virtual Update() = 0;
bool virtual KeyEvent(int key) = 0;
void virtual SetCameraProjection(int w, int h) = 0;
void virtual AddCameraDistance(float d) = 0;
void virtual mousePressEvent(QMouseEvent *event) = 0;
void virtual mouseReleaseEvent(QMouseEvent *event) = 0;
void virtual mouseMoveEvent(QMouseEvent *event, int x, int y) = 0;
void virtual setEditMode(EditModes em) = 0;
Render(QObject* p = 0);
~Render();
};
#endif