summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/context.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/gl/context.hpp')
-rw-r--r--src/mbgl/gl/context.hpp5
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;