// // Created by shaohuatong on 06.12.19. // #ifndef SIMPLE_DRAW_SHAPES_HPP #define SIMPLE_DRAW_SHAPES_HPP #include "vkvm.hpp" #include "internal.hpp" class Shapes { public: void addShape(std::vector> shape, int startX, int startY, int endX, int endY); bool containsPixel(int x, int y); int getCount(); std::vector> getShape(int index); int getStartX(int index); int getStartY(int index); private: int count = 0; std::vector startXs; std::vector startYs; std::vector endXs; std::vector endYs; std::vector>> shapes; }; #endif //SIMPLE_DRAW_SHAPES_HPP