PolySceneLabel.h 854 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * PolySceneLabel.h
  3. * Poly
  4. *
  5. * Created by Ivan Safrin on 3/31/08.
  6. * Copyright 2008 __MyCompanyName__. All rights reserved.
  7. *
  8. */
  9. // @package Scene
  10. #pragma once
  11. #include "PolyString.h"
  12. #include "PolyGlobals.h"
  13. #include "PolyCoreServices.h"
  14. #include "PolyFont.h"
  15. #include "PolyLabel.h"
  16. #include "PolyMesh.h"
  17. #include "PolyTexture.h"
  18. #include "PolyPolygon.h"
  19. #include "PolySceneEntity.h"
  20. #include <string>
  21. using std::string;
  22. namespace Polycode {
  23. class _PolyExport SceneLabel : public SceneEntity {
  24. public:
  25. SceneLabel(String fontName, String text, int size, float scale, int amode);
  26. ~SceneLabel();
  27. bool testMouseCollision(float x, float y);
  28. void setText(String newText);
  29. Label *getLabel();
  30. void Render();
  31. protected:
  32. Mesh *mesh;
  33. Texture *texture;
  34. float scale;
  35. Label *label;
  36. };
  37. }