Lines.h 402 B

1234567891011121314151617181920212223
  1. #ifndef LINES_H
  2. #define LINES_H
  3. #include "client/rendering/wrapper/VertexBuffer.h"
  4. #include "common/utils/List.h"
  5. #include "client/rendering/Triangle.h"
  6. class Lines final {
  7. public:
  8. Lines();
  9. void add(const Vector3& a, const Vector3& b, int color);
  10. void clear();
  11. void build();
  12. void draw() const;
  13. private:
  14. VertexBuffer vertexBuffer;
  15. List<Vector3, 20000> buffer;
  16. };
  17. #endif