diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-06-01 21:32:26 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-06-13 13:37:41 +0300 |
commit | a05f060153497e1be6515120b65f580f4551f9e0 (patch) | |
tree | b736fe12eebe4bfdac0154c4e45d4dbf26207b57 /src/mbgl/gl/value.hpp | |
parent | 28eb2e635417c7fb8d746a9ed1d76774066098b3 (diff) | |
download | qtlocation-mapboxgl-a05f060153497e1be6515120b65f580f4551f9e0.tar.gz |
[core] Added Backend::{assume,set}ScissorTest
Diffstat (limited to 'src/mbgl/gl/value.hpp')
-rw-r--r-- | src/mbgl/gl/value.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mbgl/gl/value.hpp b/src/mbgl/gl/value.hpp index aa5cca6fec..b8656db5b0 100644 --- a/src/mbgl/gl/value.hpp +++ b/src/mbgl/gl/value.hpp @@ -182,6 +182,13 @@ struct Viewport { static Type Get(); }; +struct ScissorTest { + using Type = bool; + static const constexpr Type Default = false; + static void Set(const Type&); + static Type Get(); +}; + constexpr bool operator!=(const Viewport::Type& a, const Viewport::Type& b) { return a.x != b.x || a.y != b.y || a.size != b.size; } |