mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 03:29:44 -06:00
21 lines
403 B
C++
21 lines
403 B
C++
#ifndef __VOLUMESAMPLER_H__
|
|
#define __VOLUMESAMPLER_H__
|
|
|
|
namespace openspace {
|
|
|
|
template <typename VolumeType>
|
|
class VolumeSampler {
|
|
public:
|
|
VolumeSampler(const VolumeType& volume, const glm::vec3& filterSize);
|
|
typename VolumeType::VoxelType sample(const glm::vec3& position) const;
|
|
private:
|
|
glm::ivec3 _filterSize;
|
|
const VolumeType* _volume;
|
|
};
|
|
|
|
}
|
|
|
|
#include "volumesampler.inl"
|
|
|
|
#endif
|