5 #ifndef _SPICA_MIPMAP_H_
6 #define _SPICA_MIPMAP_H_
10 #include "core/core.hpp"
12 #include "core/common.h"
13 #include "core/image.h"
17 enum class ImageWrap : int {
25 MipMap(
const Image& image, ImageWrap imageWrap = ImageWrap::Repeat);
30 inline int levels()
const {
return static_cast<int>(pyramid_.size()); }
34 Spectrum texel(
int level,
int s,
int t)
const;
37 std::vector<Image> pyramid_;
42 #endif // _SPICA_MIPMAP_H_
RGB spectrum.
Definition: spectrum.h:18
Image class.
Definition: image.h:18