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 391B

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