PolyScreenMesh.h 780 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 "PolyGlobals.h"
  12. #include "PolyCoreServices.h"
  13. #include "PolyScreenEntity.h"
  14. #include "PolyMesh.h"
  15. #include "PolyTexture.h"
  16. #include "PolyPolygon.h"
  17. #include <string>
  18. using std::string;
  19. namespace Polycode {
  20. class _PolyExport ScreenMesh : public ScreenEntity {
  21. public:
  22. ScreenMesh(string fileName);
  23. ScreenMesh(int meshType);
  24. ~ScreenMesh();
  25. void Render();
  26. Mesh *getMesh();
  27. Texture *getTexture();
  28. void loadTexture(string fileName);
  29. void loadTexture(Image *image);
  30. void setTexture(Texture *texture);
  31. protected:
  32. Mesh *mesh;
  33. Texture *texture;
  34. };
  35. }