diff options
Diffstat (limited to 'src/mbgl/gl/draw_mode.hpp')
-rw-r--r-- | src/mbgl/gl/draw_mode.hpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/mbgl/gl/draw_mode.hpp b/src/mbgl/gl/draw_mode.hpp new file mode 100644 index 0000000000..a379162210 --- /dev/null +++ b/src/mbgl/gl/draw_mode.hpp @@ -0,0 +1,34 @@ +#pragma once + +#include <mbgl/util/variant.hpp> + +namespace mbgl { +namespace gl { + +class Points { +public: + float pointSize; +}; + +class Lines { +public: + float lineWidth; +}; + +class LineStrip { +public: + float lineWidth; +}; + +class Triangles {}; +class TriangleStrip {}; + +using DrawMode = variant< + Points, + Lines, + LineStrip, + Triangles, + TriangleStrip>; + +} // namespace gl +} // namespace mbgl |