mirror of
https://forge.univ-lyon1.fr/tplifap4/dungeonanddeamon.git
synced 2024-02-27 13:31:50 +01:00
85 lines
2.9 KiB
C++
85 lines
2.9 KiB
C++
#ifndef GODOT_CPP_VISUALSHADERNODEGROUPBASE_HPP
|
|
#define GODOT_CPP_VISUALSHADERNODEGROUPBASE_HPP
|
|
|
|
|
|
#include <gdnative_api_struct.gen.h>
|
|
#include <stdint.h>
|
|
|
|
#include <core/CoreTypes.hpp>
|
|
#include <core/Ref.hpp>
|
|
|
|
#include "VisualShaderNode.hpp"
|
|
namespace godot {
|
|
|
|
|
|
class VisualShaderNodeGroupBase : public VisualShaderNode {
|
|
struct ___method_bindings {
|
|
godot_method_bind *mb_add_input_port;
|
|
godot_method_bind *mb_add_output_port;
|
|
godot_method_bind *mb_clear_input_ports;
|
|
godot_method_bind *mb_clear_output_ports;
|
|
godot_method_bind *mb_get_free_input_port_id;
|
|
godot_method_bind *mb_get_free_output_port_id;
|
|
godot_method_bind *mb_get_input_port_count;
|
|
godot_method_bind *mb_get_inputs;
|
|
godot_method_bind *mb_get_output_port_count;
|
|
godot_method_bind *mb_get_outputs;
|
|
godot_method_bind *mb_get_size;
|
|
godot_method_bind *mb_has_input_port;
|
|
godot_method_bind *mb_has_output_port;
|
|
godot_method_bind *mb_is_valid_port_name;
|
|
godot_method_bind *mb_remove_input_port;
|
|
godot_method_bind *mb_remove_output_port;
|
|
godot_method_bind *mb_set_input_port_name;
|
|
godot_method_bind *mb_set_input_port_type;
|
|
godot_method_bind *mb_set_inputs;
|
|
godot_method_bind *mb_set_output_port_name;
|
|
godot_method_bind *mb_set_output_port_type;
|
|
godot_method_bind *mb_set_outputs;
|
|
godot_method_bind *mb_set_size;
|
|
};
|
|
static ___method_bindings ___mb;
|
|
|
|
public:
|
|
static void ___init_method_bindings();
|
|
|
|
static inline const char *___get_class_name() { return (const char *) "VisualShaderNodeGroupBase"; }
|
|
static inline Object *___get_from_variant(Variant a) { godot_object *o = (godot_object*) a; return (o) ? (Object *) godot::nativescript_1_1_api->godot_nativescript_get_instance_binding_data(godot::_RegisterState::language_index, o) : nullptr; }
|
|
|
|
// enums
|
|
|
|
// constants
|
|
|
|
|
|
static VisualShaderNodeGroupBase *_new();
|
|
|
|
// methods
|
|
void add_input_port(const int64_t id, const int64_t type, const String name);
|
|
void add_output_port(const int64_t id, const int64_t type, const String name);
|
|
void clear_input_ports();
|
|
void clear_output_ports();
|
|
int64_t get_free_input_port_id() const;
|
|
int64_t get_free_output_port_id() const;
|
|
int64_t get_input_port_count() const;
|
|
String get_inputs() const;
|
|
int64_t get_output_port_count() const;
|
|
String get_outputs() const;
|
|
Vector2 get_size() const;
|
|
bool has_input_port(const int64_t id) const;
|
|
bool has_output_port(const int64_t id) const;
|
|
bool is_valid_port_name(const String name) const;
|
|
void remove_input_port(const int64_t id);
|
|
void remove_output_port(const int64_t id);
|
|
void set_input_port_name(const int64_t id, const String name);
|
|
void set_input_port_type(const int64_t id, const int64_t type);
|
|
void set_inputs(const String inputs);
|
|
void set_output_port_name(const int64_t id, const String name);
|
|
void set_output_port_type(const int64_t id, const int64_t type);
|
|
void set_outputs(const String outputs);
|
|
void set_size(const Vector2 size);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif |