blob: 625e69233a8efffec80977ae2ae0641daad43ded (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#pragma once
#include <mbgl/gl/object.hpp>
#include <mbgl/util/size.hpp>
namespace mbgl {
namespace gl {
class Texture {
public:
Texture(Size size_, UniqueTexture texture_,
TextureFilter filter_ = TextureFilter::Nearest,
TextureMipMap mipmap_ = TextureMipMap::No,
TextureWrap wrapX_ = TextureWrap::Clamp,
TextureWrap wrapY_ = TextureWrap::Clamp)
: size(std::move(size_)),
texture(std::move(texture_)),
filter(filter_),
mipmap(mipmap_),
wrapX(wrapX_),
wrapY(wrapY_) {}
Size size;
UniqueTexture texture;
TextureFilter filter;
TextureMipMap mipmap;
TextureWrap wrapX;
TextureWrap wrapY;
};
} // namespace gl
} // namespace mbgl
|