PolyScreenImage.h 746 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * PolyScreenImage.h
  3. * TAU
  4. *
  5. * Created by Ivan Safrin on 3/13/08.
  6. * Copyright 2008 __MyCompanyName__. All rights reserved.
  7. *
  8. */
  9. // @package Screen
  10. #pragma once
  11. #include <math.h>
  12. #include "PolyGlobals.h"
  13. #include "PolyScreenShape.h"
  14. #include "PolyCoreServices.h"
  15. #include "PolyImage.h"
  16. #include "PolyMesh.h"
  17. #include "PolyTexture.h"
  18. #include <string>
  19. using std::string;
  20. namespace Polycode {
  21. class _PolyExport ScreenImage : public ScreenShape {
  22. public:
  23. ScreenImage(string fileName);
  24. ScreenImage(Image *image);
  25. ~ScreenImage();
  26. void setImageCoordinates(float x, float y, float width, float height);
  27. float getImageWidth();
  28. float getImageHeight();
  29. private:
  30. float imageWidth;
  31. float imageHeight;
  32. };
  33. }