paysages3d/src/render/software/LightSource.h

29 lines
537 B
C
Raw Normal View History

2015-09-24 22:12:31 +00:00
#ifndef LIGHTSOURCE_H
#define LIGHTSOURCE_H
#include "software_global.h"
#include <vector>
2015-09-24 22:12:31 +00:00
namespace paysages {
namespace software {
/**
* Source of dynamic lights.
*/
class SOFTWARESHARED_EXPORT LightSource {
public:
2015-09-24 22:12:31 +00:00
LightSource() = default;
/**
* Get the list of raw lights that may be applied at a given location.
*
* Returns true if lights were added to *result*.
*/
2015-12-10 23:36:50 +00:00
virtual bool getLightsAt(vector<LightComponent> &result, const Vector3 &location) const = 0;
2015-09-24 22:12:31 +00:00
};
}
}
#endif // LIGHTSOURCE_H