WebRenderHandler.h 897 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #include <Atomic/Graphics/Texture2D.h>
  2. #include <Atomic/Graphics/Material.h>
  3. #pragma once
  4. namespace Atomic
  5. {
  6. class ATOMIC_API WebRenderHandler : public Object
  7. {
  8. OBJECT(WebRenderHandler);
  9. public:
  10. /// Construct.
  11. WebRenderHandler(Context* context);
  12. /// Destruct.
  13. virtual ~WebRenderHandler();
  14. virtual void SetCurrentWidth(unsigned width) = 0;
  15. virtual void SetCurrentHeight(unsigned height) = 0;
  16. virtual void SetMaxWidth(unsigned width) = 0;
  17. virtual void SetMaxHeight(unsigned height) = 0;
  18. unsigned GetCurrentWidth() const { return currentWidth_; }
  19. unsigned GetCurrentHeight() const { return currentHeight_; }
  20. unsigned GetMaxWidth() const { return maxWidth_; }
  21. unsigned GetMaxHeight() const { return maxHeight_; }
  22. private:
  23. unsigned currentWidth_;
  24. unsigned currentHeight_;
  25. unsigned maxHeight_;
  26. unsigned maxWidth_;
  27. };
  28. }