PolySceneLabel.h 832 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 "PolyGlobals.h"
  12. #include "PolyCoreServices.h"
  13. #include "PolyFont.h"
  14. #include "PolyLabel.h"
  15. #include "PolyMesh.h"
  16. #include "PolyTexture.h"
  17. #include "PolyPolygon.h"
  18. #include "PolySceneEntity.h"
  19. #include <string>
  20. using std::string;
  21. namespace Polycode {
  22. class _PolyExport SceneLabel : public SceneEntity {
  23. public:
  24. SceneLabel(string fontName, wstring text, int size, float scale, int amode);
  25. ~SceneLabel();
  26. bool testMouseCollision(float x, float y);
  27. void setText(wstring newText);
  28. Label *getLabel();
  29. void Render();
  30. protected:
  31. Mesh *mesh;
  32. Texture *texture;
  33. float scale;
  34. Label *label;
  35. };
  36. }