-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlight.h
36 lines (25 loc) · 829 Bytes
/
light.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
#ifndef LIGHT_H
#define LIGHT_H
#include <QOpenGLBuffer>
#include <QOpenGLShaderProgram>
#include <QOpenGLVertexArrayObject>
#include <QOpenGLFunctions>
#include <QColor>
class Light
{
public:
Light();
~Light();
void setAmbient(QString ambient) { this->ambient = ambient; }//void setAmbient(float ambient) { this->ambient = ambient; }
void setDiffuse(QString diffuse) { this->diffuse = diffuse; }
void setSpecular(QString specular) { this->specular = specular; }
QColor getAmbient() { return QColor(ambient); }//float getAmbient() { return ambient; }
QColor getDiffuse() { return QColor(diffuse); }
QColor getSpecular() { return QColor(specular); }
private:
QOpenGLFunctions *ogl;
QString ambient;//float ambient;
QString diffuse;
QString specular;
};
#endif // LIGHT_H