-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLights.h
More file actions
46 lines (37 loc) · 1 KB
/
Lights.h
File metadata and controls
46 lines (37 loc) · 1 KB
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
39
40
41
42
43
44
45
46
/*Bijan Hamidi & Ruth Obidah
* bhamidi@csu.fullerton.edu, ruthobidah@csu.fullerton.edu
* CS 599 Independent Study
* December 2017
*/
#include "glm/vec3.hpp"
#include "RGBcolor.h"
#include <vector>
using namespace std;
#ifndef _LIGHTS_H_
#define _LIGHTS_H_
#include "glm/vec3.hpp"
class Lights{
public:
vector<diffuseColor*> myDcolors;
vector<ambientColor*> myAcolors;
vector<SpecularColor*> myScolors;
glm::vec3 _position;
float _linearAttn;
float _quadraticAttn;
//RGBcolor( );
Lights( glm::vec3 p, vector<diffuseColor*> d, vector<ambientColor*> a, vector<SpecularColor*> s, float ln, float q ):
_position(p), myAcolors(a),myDcolors(d), myScolors(s), _linearAttn(ln), _quadraticAttn(q) {};
~Lights( );
glm::vec3 getposition() {return _position;}
Lights& operator=(Lights& l)
{
_position = l._position;
myAcolors = l.myAcolors;
myDcolors = l.myDcolors;
myScolors = l.myScolors;
_linearAttn = l._linearAttn;
_quadraticAttn = l._quadraticAttn;
return *this;
}
};
#endif