diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-09-06 14:38:49 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-09-07 17:56:38 +0200 |
commit | 3d960c8136541f1f6d71409e23b8f56eee9dd1d0 (patch) | |
tree | c51dfbc628232ba37db5d37a954dfca9e22449d6 /src/mbgl/geometry/line_atlas.hpp | |
parent | 85e222c8258654c5b75860d086d169fe998c8f63 (diff) | |
download | qtlocation-mapboxgl-3d960c8136541f1f6d71409e23b8f56eee9dd1d0.tar.gz |
[core] change bool round to LinePatternCap
Diffstat (limited to 'src/mbgl/geometry/line_atlas.hpp')
-rw-r--r-- | src/mbgl/geometry/line_atlas.hpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mbgl/geometry/line_atlas.hpp b/src/mbgl/geometry/line_atlas.hpp index 1e6c0ac84e..a2bda71863 100644 --- a/src/mbgl/geometry/line_atlas.hpp +++ b/src/mbgl/geometry/line_atlas.hpp @@ -19,6 +19,11 @@ typedef struct { float y; } LinePatternPos; +enum class LinePatternCap : bool { + Square = false, + Round = true, +}; + class LineAtlas { public: LineAtlas(GLsizei width, GLsizei height); @@ -31,8 +36,8 @@ public: // the texture is only bound when the data is out of date (=dirty). void upload(gl::ObjectStore&, gl::Config&, uint32_t unit); - LinePatternPos getDashPosition(const std::vector<float>&, bool); - LinePatternPos addDash(const std::vector<float>& dasharray, bool round); + LinePatternPos getDashPosition(const std::vector<float>&, LinePatternCap); + LinePatternPos addDash(const std::vector<float>& dasharray, LinePatternCap); const GLsizei width; const GLsizei height; |