You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

drawable.h 403B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Drawable class
  3. */
  4. #pragma once
  5. #include <memory>
  6. namespace vtk {
  7. //Forward declarations
  8. class Shader;
  9. class RenderTask;
  10. class Drawable {
  11. public:
  12. virtual ~Drawable();
  13. //Draw (called from rednertask)
  14. virtual void draw(RenderTask& task) = 0;
  15. void setShader(std::shared_ptr<Shader>);
  16. std::shared_ptr<Shader> getShader();
  17. protected:
  18. std::shared_ptr<Shader> mLinkedShader;
  19. };
  20. }