summaryrefslogtreecommitdiff
path: root/scene/2d/path_texture.h
blob: 0e63758b105ae30ca3f5f606ff9b4ed296a54dab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef PATH_TEXTURE_H
#define PATH_TEXTURE_H

#include "scene/2d/node_2d.h"

class PathTexture : public Node2D {
	OBJ_TYPE( PathTexture, Node2D );

	Ref<Texture> begin;
	Ref<Texture> repeat;
	Ref<Texture> end;
	int subdivs;
	bool overlap;
public:

	void set_begin_texture(const Ref<Texture>& p_texture);
	Ref<Texture> get_begin_texture() const;

	void set_repeat_texture(const Ref<Texture>& p_texture);
	Ref<Texture> get_repeat_texture() const;

	void set_end_texture(const Ref<Texture>& p_texture);
	Ref<Texture> get_end_texture() const;

	void set_subdivisions(int p_amount);
	int get_subdivisions() const;

	void set_overlap(int p_amount);
	int get_overlap() const;

	PathTexture();
};

#endif // PATH_TEXTURE_H