diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-04-12 14:41:47 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2017-04-12 14:43:10 +0200 |
commit | b54ba138c6759b4705a3a24f9762a51eb3512709 (patch) | |
tree | 55bb7c1cca90fd6f4ba03da3de008b4a6754cf01 /src/mbgl/gl/context.hpp | |
parent | 12b6fdbe3b1caad95089150d5c3ab69af31fb725 (diff) | |
download | qtlocation-mapboxgl-b54ba138c6759b4705a3a24f9762a51eb3512709.tar.gz |
[core] add anisotropic filtering to raster tilesupstream/8688-anisotropic-filtering
Diffstat (limited to 'src/mbgl/gl/context.hpp')
-rw-r--r-- | src/mbgl/gl/context.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mbgl/gl/context.hpp b/src/mbgl/gl/context.hpp index 14af299baa..20821f530f 100644 --- a/src/mbgl/gl/context.hpp +++ b/src/mbgl/gl/context.hpp @@ -36,6 +36,7 @@ namespace extension { class VertexArray; class Debugging; class ProgramBinary; +class TextureFilterAnisotropic; } // namespace extension class Context : private util::noncopyable { @@ -64,6 +65,8 @@ public: #endif optional<std::pair<BinaryProgramFormat, std::string>> getBinaryProgram(ProgramID) const; + bool supportsAnisotropicTextureFiltering() const; + template <class Vertex, class DrawMode> VertexBuffer<Vertex, DrawMode> createVertexBuffer(VertexVector<Vertex, DrawMode>&& v) { return VertexBuffer<Vertex, DrawMode> { @@ -135,6 +138,7 @@ public: TextureUnit = 0, TextureFilter = TextureFilter::Nearest, TextureMipMap = TextureMipMap::No, + TextureAnisotropic = TextureAnisotropic::Default, TextureWrap wrapX = TextureWrap::Clamp, TextureWrap wrapY = TextureWrap::Clamp); @@ -190,6 +194,7 @@ private: #if MBGL_HAS_BINARY_PROGRAMS std::unique_ptr<extension::ProgramBinary> programBinary; #endif + std::unique_ptr<extension::TextureFilterAnisotropic> textureFilterAnisotropic; public: State<value::ActiveTexture> activeTexture; |