paysages3d/src/render/software/LightSource.h

26 lines
481 B
C
Raw Normal View History

#pragma once
2015-09-24 22:12:31 +00:00
#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.
*
2016-01-06 18:55:49 +00:00
* Returns true if lights were added to 'result'.
2015-09-24 22:12:31 +00:00
*/
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
};
}
}