8 #if defined(__APPLE__) || defined(__MACOSX)
9 #include <OpenGL/OpenGL.h>
23 std::vector<float>* coordinates,
24 std::vector<uint>* lines,
25 std::vector<uchar>* labels,
26 std::vector<float>* scores,
27 std::shared_ptr<BoundingBoxSet> bbset
29 void addBoundingBox(std::shared_ptr<BoundingBox> box);
30 void addBoundingBox(Vector2f position, Vector2f size,
uchar label,
float score);
31 std::vector<float> getCoordinates()
const;
32 std::vector<uint> getLines()
const;
33 std::vector<uchar> getLabels()
const;
34 std::vector<float> getScores()
const;
35 void addBoundingBoxes(std::vector<float> coordinates, std::vector<uint> lines, std::vector<uchar> labels, std::vector<float> scores);
38 typedef std::unique_ptr<BoundingBoxSetAccess>
pointer;
46 bool m_released =
false;
51 BoundingBoxSetOpenGLAccess(GLuint m_coordinatesVBO, GLuint m_linesEBO, GLuint m_labels, std::shared_ptr<BoundingBoxSet> bbset);
52 GLuint getCoordinateVBO()
const;
53 GLuint getLinesEBO()
const;
54 GLuint getLabelVBO()
const;
57 typedef std::unique_ptr<BoundingBoxSetOpenGLAccess>
pointer;
61 bool m_released =
false;