-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathskybox.h
More file actions
30 lines (22 loc) · 789 Bytes
/
skybox.h
File metadata and controls
30 lines (22 loc) · 789 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
#ifndef SKYBOX_H
#define SKYBOX_H
#include <QImage>
#include "transformational.h"
class SkyBox : public Transformational
{
public:
SkyBox(float width, const QImage &texture);
~SkyBox();
// Transformational interface
void rotate(const QQuaternion &rotation) override;
void translate(const QVector3D &translation) override;
void scale(const float scaleKoef) override;
void setGlobalTransform(const QMatrix4x4 &matrix) override;
void draw(QOpenGLShaderProgram *program, QOpenGLFunctions *functions) override;
void objectPicking(QOpenGLShaderProgram *programm, QOpenGLFunctions *functions) override {}
QVector3D getPosition() const override;
// End Transformational interface
private:
class SimpleObject3D* m_cube;
};
#endif // SKYBOX_H