Add light module
This commit is contained in:
parent
72c0d1475e
commit
14b246b6e9
3 changed files with 76 additions and 0 deletions
29
src/light.h
Normal file
29
src/light.h
Normal file
|
@ -0,0 +1,29 @@
|
|||
/* light.h
|
||||
*
|
||||
* Lights light the scene.
|
||||
*
|
||||
* Eryn Wells <eryn@erynwells.me>
|
||||
*/
|
||||
|
||||
#ifndef __LIGHT_H__
|
||||
#define __LIGHT_H__
|
||||
|
||||
#include "object.h"
|
||||
|
||||
|
||||
class Light
|
||||
: public Object
|
||||
{
|
||||
public:
|
||||
Light();
|
||||
Light(float i);
|
||||
Light(Vector3 o, float i);
|
||||
|
||||
float get_intensity() const;
|
||||
void set_intensity(float i);
|
||||
|
||||
private:
|
||||
float intensity;
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue