PolyScreenMesh.h 804 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * PolyScreenMesh.h
  3. * Poly
  4. *
  5. * Created by Ivan Safrin on 5/6/08.
  6. * Copyright 2008 __MyCompanyName__. All rights reserved.
  7. *
  8. */
  9. // @package Screen
  10. #pragma once
  11. #include "PolyString.h"
  12. #include "PolyGlobals.h"
  13. #include "PolyCoreServices.h"
  14. #include "PolyScreenEntity.h"
  15. #include "PolyMesh.h"
  16. #include "PolyTexture.h"
  17. #include "PolyPolygon.h"
  18. #include <string>
  19. using std::string;
  20. namespace Polycode {
  21. class _PolyExport ScreenMesh : public ScreenEntity {
  22. public:
  23. ScreenMesh(String fileName);
  24. ScreenMesh(int meshType);
  25. ~ScreenMesh();
  26. void Render();
  27. Mesh *getMesh();
  28. Texture *getTexture();
  29. void loadTexture(String fileName);
  30. void loadTexture(Image *image);
  31. void setTexture(Texture *texture);
  32. protected:
  33. Mesh *mesh;
  34. Texture *texture;
  35. };
  36. }