mirror of
https://forge.univ-lyon1.fr/tplifap4/dungeonanddeamon.git
synced 2024-02-27 13:31:50 +01:00
81 lines
1.8 KiB
C++
81 lines
1.8 KiB
C++
#ifndef GODOT_CPP_VISUALSHADERNODEVECTORFUNC_HPP
|
|
#define GODOT_CPP_VISUALSHADERNODEVECTORFUNC_HPP
|
|
|
|
|
|
#include <gdnative_api_struct.gen.h>
|
|
#include <stdint.h>
|
|
|
|
#include <core/CoreTypes.hpp>
|
|
#include <core/Ref.hpp>
|
|
#include "VisualShaderNodeVectorFunc.hpp"
|
|
|
|
#include "VisualShaderNode.hpp"
|
|
namespace godot {
|
|
|
|
|
|
class VisualShaderNodeVectorFunc : public VisualShaderNode {
|
|
struct ___method_bindings {
|
|
godot_method_bind *mb_get_function;
|
|
godot_method_bind *mb_set_function;
|
|
};
|
|
static ___method_bindings ___mb;
|
|
|
|
public:
|
|
static void ___init_method_bindings();
|
|
|
|
static inline const char *___get_class_name() { return (const char *) "VisualShaderNodeVectorFunc"; }
|
|
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
|
|
enum Function {
|
|
FUNC_NORMALIZE = 0,
|
|
FUNC_SATURATE = 1,
|
|
FUNC_NEGATE = 2,
|
|
FUNC_RECIPROCAL = 3,
|
|
FUNC_RGB2HSV = 4,
|
|
FUNC_HSV2RGB = 5,
|
|
FUNC_ABS = 6,
|
|
FUNC_ACOS = 7,
|
|
FUNC_ACOSH = 8,
|
|
FUNC_ASIN = 9,
|
|
FUNC_ASINH = 10,
|
|
FUNC_ATAN = 11,
|
|
FUNC_ATANH = 12,
|
|
FUNC_CEIL = 13,
|
|
FUNC_COS = 14,
|
|
FUNC_COSH = 15,
|
|
FUNC_DEGREES = 16,
|
|
FUNC_EXP = 17,
|
|
FUNC_EXP2 = 18,
|
|
FUNC_FLOOR = 19,
|
|
FUNC_FRAC = 20,
|
|
FUNC_INVERSE_SQRT = 21,
|
|
FUNC_LOG = 22,
|
|
FUNC_LOG2 = 23,
|
|
FUNC_RADIANS = 24,
|
|
FUNC_ROUND = 25,
|
|
FUNC_ROUNDEVEN = 26,
|
|
FUNC_SIGN = 27,
|
|
FUNC_SIN = 28,
|
|
FUNC_SINH = 29,
|
|
FUNC_SQRT = 30,
|
|
FUNC_TAN = 31,
|
|
FUNC_TANH = 32,
|
|
FUNC_TRUNC = 33,
|
|
FUNC_ONEMINUS = 34,
|
|
};
|
|
|
|
// constants
|
|
|
|
|
|
static VisualShaderNodeVectorFunc *_new();
|
|
|
|
// methods
|
|
VisualShaderNodeVectorFunc::Function get_function() const;
|
|
void set_function(const int64_t func);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif |