1 /**
2 
3 
4 Copyright:
5 Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur.  
6 Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md)  
7 Copyright (c) 2017-2018 Godot-D contributors  
8 
9 License: $(LINK2 https://opensource.org/licenses/MIT, MIT License)
10 
11 
12 */
13 module godot.visualshadernodecubemap;
14 import std.meta : AliasSeq, staticIndexOf;
15 import std.traits : Unqual;
16 import godot.d.meta;
17 import godot.core;
18 import godot.c;
19 import godot.d.bind;
20 import godot.d.reference;
21 import godot.object;
22 import godot.classdb;
23 import godot.visualshadernode;
24 import godot.cubemap;
25 import godot.resource;
26 import godot.reference;
27 /**
28 
29 */
30 @GodotBaseClass struct VisualShaderNodeCubeMap
31 {
32 	enum string _GODOT_internal_name = "VisualShaderNodeCubeMap";
33 public:
34 @nogc nothrow:
35 	union { godot_object _godot_object; VisualShaderNode _GODOT_base; }
36 	alias _GODOT_base this;
37 	alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses);
38 	package(godot) __gshared bool _classBindingInitialized = false;
39 	package(godot) static struct _classBinding
40 	{
41 		__gshared:
42 		@GodotName("set_cube_map") GodotMethod!(void, CubeMap) setCubeMap;
43 		@GodotName("get_cube_map") GodotMethod!(CubeMap) getCubeMap;
44 		@GodotName("set_texture_type") GodotMethod!(void, long) setTextureType;
45 		@GodotName("get_texture_type") GodotMethod!(VisualShaderNodeCubeMap.TextureType) getTextureType;
46 	}
47 	bool opEquals(in VisualShaderNodeCubeMap other) const { return _godot_object.ptr is other._godot_object.ptr; }
48 	VisualShaderNodeCubeMap opAssign(T : typeof(null))(T n) { _godot_object.ptr = null; }
49 	bool opEquals(typeof(null) n) const { return _godot_object.ptr is null; }
50 	mixin baseCasts;
51 	static VisualShaderNodeCubeMap _new()
52 	{
53 		static godot_class_constructor constructor;
54 		if(constructor is null) constructor = _godot_api.godot_get_class_constructor("VisualShaderNodeCubeMap");
55 		if(constructor is null) return typeof(this).init;
56 		return cast(VisualShaderNodeCubeMap)(constructor());
57 	}
58 	@disable new(size_t s);
59 	/// 
60 	enum TextureType : int
61 	{
62 		/**
63 		
64 		*/
65 		typeData = 0,
66 		/**
67 		
68 		*/
69 		typeColor = 1,
70 		/**
71 		
72 		*/
73 		typeNormalmap = 2,
74 	}
75 	/// 
76 	enum Constants : int
77 	{
78 		typeData = 0,
79 		typeColor = 1,
80 		typeNormalmap = 2,
81 	}
82 	/**
83 	
84 	*/
85 	void setCubeMap(CubeMap value)
86 	{
87 		checkClassBinding!(typeof(this))();
88 		ptrcall!(void)(_classBinding.setCubeMap, _godot_object, value);
89 	}
90 	/**
91 	
92 	*/
93 	Ref!CubeMap getCubeMap() const
94 	{
95 		checkClassBinding!(typeof(this))();
96 		return ptrcall!(CubeMap)(_classBinding.getCubeMap, _godot_object);
97 	}
98 	/**
99 	
100 	*/
101 	void setTextureType(in long value)
102 	{
103 		checkClassBinding!(typeof(this))();
104 		ptrcall!(void)(_classBinding.setTextureType, _godot_object, value);
105 	}
106 	/**
107 	
108 	*/
109 	VisualShaderNodeCubeMap.TextureType getTextureType() const
110 	{
111 		checkClassBinding!(typeof(this))();
112 		return ptrcall!(VisualShaderNodeCubeMap.TextureType)(_classBinding.getTextureType, _godot_object);
113 	}
114 	/**
115 	
116 	*/
117 	@property CubeMap cubeMap()
118 	{
119 		return getCubeMap();
120 	}
121 	/// ditto
122 	@property void cubeMap(CubeMap v)
123 	{
124 		setCubeMap(v);
125 	}
126 	/**
127 	
128 	*/
129 	@property VisualShaderNodeCubeMap.TextureType textureType()
130 	{
131 		return getTextureType();
132 	}
133 	/// ditto
134 	@property void textureType(long v)
135 	{
136 		setTextureType(v);
137 	}
138 }