PolyTextMesh.h 413 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include "PolyGlobals.h"
  3. #include "PolyEntity.h"
  4. #include "PolyMesh.h"
  5. #include "PolyString.h"
  6. namespace Polycode {
  7. class FontGlyphSheet;
  8. class _PolyExport TextMesh : public Mesh {
  9. public:
  10. TextMesh(FontGlyphSheet* font, const String& text);
  11. void setFont(FontGlyphSheet* font);
  12. void setText(const String& text);
  13. void rebuild();
  14. private:
  15. String text;
  16. FontGlyphSheet* font;
  17. };
  18. }