2 #include "triangle.hpp"
3 #include "util/gl_inc.h"
6 #include "util/vector_pair.hpp"
20 enum class Type { TRIANGLE, LINE, LINE0, LINE_BUTT, GLYPH, CIRCLE, ARC, ARC0 };
21 const std::map<int, vector_pair<Triangle, TriangleInfo>> &triangles;
22 std::map<int, std::map<std::pair<Type, bool>, std::pair<size_t, size_t>>> layer_offsets;
27 GLuint program_line_butt;
28 GLuint program_triangle;
29 GLuint program_circle;
39 enum class HighlightMode { SKIP, ONLY };
40 void render_layer(
int layer, HighlightMode highlight_mode,
bool ignore_flip =
false);
41 void render_annotations(
bool top);
42 std::array<float, 4> apply_highlight(
const class Color &color, HighlightMode mode,
int layer)
const;
Definition: canvas_gl.hpp:18
Definition: common.hpp:234
Definition: triangle_renderer.hpp:9
Definition: vector_pair.hpp:8