path_texture.h 716 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef PATH_TEXTURE_H
  2. #define PATH_TEXTURE_H
  3. #include "scene/2d/node_2d.h"
  4. class PathTexture : public Node2D {
  5. OBJ_TYPE( PathTexture, Node2D );
  6. Ref<Texture> begin;
  7. Ref<Texture> repeat;
  8. Ref<Texture> end;
  9. int subdivs;
  10. bool overlap;
  11. public:
  12. void set_begin_texture(const Ref<Texture>& p_texture);
  13. Ref<Texture> get_begin_texture() const;
  14. void set_repeat_texture(const Ref<Texture>& p_texture);
  15. Ref<Texture> get_repeat_texture() const;
  16. void set_end_texture(const Ref<Texture>& p_texture);
  17. Ref<Texture> get_end_texture() const;
  18. void set_subdivisions(int p_amount);
  19. int get_subdivisions() const;
  20. void set_overlap(int p_amount);
  21. int get_overlap() const;
  22. PathTexture();
  23. };
  24. #endif // PATH_TEXTURE_H