1
0
Fork 0
blockofighter/src/light.h
Michaël Lemaire bf1f9192e5 Added several improvements from an old branch
* Added body rotation using hit button
* Added rotating decapitation camera
* Added slow motion on death
* Improved camera tracking
* Added motion blur
* Fixed several bugs
2015-06-03 15:36:33 +02:00

32 lines
674 B
C++

#ifndef __LIGHT_H_INCLUDED__
#define __LIGHT_H_INCLUDED__
#include "camera.h"
class Light {
private:
float position[4];
float diffuse[4];
float specular[4];
float attenuation[3];
bool enabled;
int glnum;
public:
// Creates DISABLED light
Light(void);
void setPosition(float x, float y, float z);
void setDirection(float x, float y, float z);
void setColor(float red, float green, float blue);
void setSpecular(float red, float green, float blue);
void setAttenuation(float constant, float linear, float quadratic);
void setEnabled(bool enabled);
void glUpdate(void);
void createFlare(Camera *camera);
};
void updateLights(void);
#endif