};
+
+class OutlineModel {
+
+public:
+ std::vector<glm::vec3> vertices;
+ std::vector<glm::vec3> colors;
+
+public:
+ OutlineModel();
+ ~OutlineModel();
+
+ OutlineModel(const OutlineModel &) = delete;
+ OutlineModel &operator =(const OutlineModel &) = delete;
+
+ void Invalidate() { dirty = true; }
+
+ void Clear();
+ void Reserve(int);
+
+ void Draw();
+
+private:
+ void Update();
+
+private:
+ enum Attribute {
+ ATTRIB_VERTEX,
+ ATTRIB_COLOR,
+ ATTRIB_COUNT,
+ };
+
+ GLuint handle[ATTRIB_COUNT];
+ bool dirty;
+
+};
+
}
#endif