Text.h 296 B

1234567891011121314151617181920
  1. #pragma once
  2. #include "MenuElement.h"
  3. #include "Vector.h"
  4. #include "Util.h"
  5. class Text : public MenuElement
  6. {
  7. private:
  8. std::string text;
  9. Vec3f color;
  10. public:
  11. Text(const std::string &text, Vec2f position);
  12. ~Text();
  13. void draw();
  14. void update(int x, int y);
  15. void setColor(Vec3f color);
  16. };