26 lines
481 B
C++
26 lines
481 B
C++
#pragma once
|
|
|
|
#include "software_global.h"
|
|
|
|
#include <vector>
|
|
|
|
namespace paysages {
|
|
namespace software {
|
|
|
|
/**
|
|
* Source of dynamic lights.
|
|
*/
|
|
class SOFTWARESHARED_EXPORT LightSource {
|
|
public:
|
|
LightSource() = default;
|
|
|
|
/**
|
|
* Get the list of raw lights that may be applied at a given location.
|
|
*
|
|
* Returns true if lights were added to 'result'.
|
|
*/
|
|
virtual bool getLightsAt(vector<LightComponent> &result, const Vector3 &location) const = 0;
|
|
};
|
|
}
|
|
}
|