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