#ifndef GODOT_CPP_SHADER_HPP #define GODOT_CPP_SHADER_HPP #include #include #include #include #include #include namespace godot { class Texture; class Shader : public Resource { public: static void *___get_type_tag(); static void *___get_base_type_tag(); static inline const char *___get_class_name() { return (const char *) "Shader"; } static inline Object *___get_from_variant(Variant a) { godot_object *o = (godot_object*) a; return (Object *) godot::nativescript_1_1_api->godot_nativescript_get_instance_binding_data(godot::_RegisterState::language_index, o); } // enums enum Mode { MODE_SPATIAL = 0, MODE_CANVAS_ITEM = 1, MODE_PARTICLES = 2, }; // constants static Shader *_new(); // methods Shader::Mode get_mode() const; void set_code(const String code); String get_code() const; void set_default_texture_param(const String param, const Ref texture); Ref get_default_texture_param(const String param) const; bool has_param(const String name) const; }; } #endif