paysages3d/src/render/software/LightStatus.h

34 lines
635 B
C
Raw Normal View History

2013-12-08 16:56:59 +00:00
#ifndef LIGHTSTATUS_H
#define LIGHTSTATUS_H
#include "software_global.h"
#include "LightComponent.h"
namespace paysages {
namespace software {
/**
* @brief Light status at a given point.
*
* The light status is the combination of all LightComponent received at a given location.
*/
class SOFTWARESHARED_EXPORT LightStatus
{
public:
LightStatus(LightingManager *manager, const Vector3 &location, const Vector3 &eye);
void pushComponent(LightComponent component);
private:
LightingManager* manager;
Vector3 location;
Vector3 eye;
std::vector<LightComponent> components;
};
}
}
#endif // LIGHTSTATUS_H