diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-04-16 17:44:34 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2019-04-29 11:37:39 +0200 |
commit | 08163713e239ab7756dc9bbe9b6e2c4986f168d3 (patch) | |
tree | 391c7da104dbe3d12fc0152cddaa7dfc8abbea74 /src/mbgl/util | |
parent | 8f5e1ba20f7a356c5bdabb7cb9d0d10bb4d73e10 (diff) | |
download | qtlocation-mapboxgl-08163713e239ab7756dc9bbe9b6e2c4986f168d3.tar.gz |
[core] change approach to stencil clipping to (almost) match JS
Diffstat (limited to 'src/mbgl/util')
-rw-r--r-- | src/mbgl/util/clip_id.cpp | 11 | ||||
-rw-r--r-- | src/mbgl/util/clip_id.hpp | 34 |
2 files changed, 0 insertions, 45 deletions
diff --git a/src/mbgl/util/clip_id.cpp b/src/mbgl/util/clip_id.cpp deleted file mode 100644 index a73692c451..0000000000 --- a/src/mbgl/util/clip_id.cpp +++ /dev/null @@ -1,11 +0,0 @@ -#include <mbgl/util/clip_id.hpp> - -#include <iostream> - -namespace mbgl { - -::std::ostream& operator<<(::std::ostream& os, const ClipID& rhs) { - return os << "mask=" << rhs.mask << ",ref=" << rhs.reference; -} - -} // namespace mbgl diff --git a/src/mbgl/util/clip_id.hpp b/src/mbgl/util/clip_id.hpp deleted file mode 100644 index de2dc51919..0000000000 --- a/src/mbgl/util/clip_id.hpp +++ /dev/null @@ -1,34 +0,0 @@ -#pragma once - -#include <bitset> -#include <string> -#include <list> -#include <set> -#include <vector> -#include <forward_list> -#include <iosfwd> -#include <map> - -namespace mbgl { - -struct ClipID { - ClipID() {} - ClipID(const std::string &mask_, const std::string &reference_) : mask(mask_), reference(reference_) {} - - std::bitset<8> mask; - std::bitset<8> reference; - - bool operator==(const ClipID &other) const { - return mask == other.mask && reference == other.reference; - } - - ClipID& operator|=(const ClipID &other) { - mask |= other.mask; - reference |= other.reference; - return *this; - } -}; - -::std::ostream& operator<<(::std::ostream& os, const ClipID& rhs); - -} // namespace mbgl |