Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #if !defined SHAPE_HPP
- #define SHAPE_HPP
- #include "vector_2d.hpp"
- #include <prg_interactive.hpp>
- #include <vector>
- class Shape {
- public:
- Shape() = default;
- Shape(const Vector2D& location);
- void scale (float s);
- void render(prg::Canvas& canvas) const;
- void update();
- protected:
- float rotation_angle_ {0.F};
- Vector2D location_;
- std::vector<Vector2D> vertices_;
- };
- #endif // SHAPE_HPP
Advertisement
Add Comment
Please, Sign In to add comment