-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLesson8Renderer.h
More file actions
37 lines (25 loc) · 880 Bytes
/
Lesson8Renderer.h
File metadata and controls
37 lines (25 loc) · 880 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
37
#ifndef LESSON8RENDERER_H
#define LESSON8RENDERER_H
#include "TutorialRenderer.h"
class Lesson8Renderer : public TutorialRenderer
{
Q_OBJECT
public:
Q_INVOKABLE Lesson8Renderer();
~Lesson8Renderer() override;
virtual void initialize() override;
virtual QString getOptionsUrl() const override { return "Lesson8Options.qml"; }
virtual QString getDescriptionUrl() const override { return "file:///" + QDir::currentPath() + "/Assets/Lesson 8/Description/description.html"; }
signals:
public slots:
virtual void paint() override;
protected:
virtual void update(float deltaTime) override;
private:
QTime gameTime;
Transform modelTransform;
Model model;
QOpenGLShaderProgram* program = nullptr;
};
Q_DECLARE_METATYPE(Lesson8Renderer*)
#endif // LESSON8RENDERER_H