summaryrefslogtreecommitdiff
path: root/src/mbgl/shader/circle_attributes.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/shader/circle_attributes.hpp')
-rw-r--r--src/mbgl/shader/circle_attributes.hpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/mbgl/shader/circle_attributes.hpp b/src/mbgl/shader/circle_attributes.hpp
deleted file mode 100644
index 92f8ff1e5c..0000000000
--- a/src/mbgl/shader/circle_attributes.hpp
+++ /dev/null
@@ -1,30 +0,0 @@
-#pragma once
-
-#include <mbgl/shader/attributes.hpp>
-#include <mbgl/util/geometry.hpp>
-
-namespace mbgl {
-
-struct CircleAttributes : gl::Attributes<
- attributes::a_pos>
-{
- /*
- * @param {number} x vertex position
- * @param {number} y vertex position
- * @param {number} ex extrude normal
- * @param {number} ey extrude normal
- */
- static Vertex vertex(Point<int16_t> p, float ex, float ey) {
- return Vertex {
- {
- static_cast<int16_t>((p.x * 2) + ((ex + 1) / 2)),
- static_cast<int16_t>((p.y * 2) + ((ey + 1) / 2))
- }
- };
- }
-};
-
-using CircleVertex = CircleAttributes::Vertex;
-static_assert(sizeof(CircleVertex) == 4, "expected CircleVertex size");
-
-} // namespace mbgl