mirror of
https://forge.univ-lyon1.fr/tplifap4/dungeonanddeamon.git
synced 2024-02-27 13:31:50 +01:00
lib + include + Godot dossier
This commit is contained in:
96
GodoBinding/include/gen/Light.hpp
Normal file
96
GodoBinding/include/gen/Light.hpp
Normal file
@@ -0,0 +1,96 @@
|
||||
#ifndef GODOT_CPP_LIGHT_HPP
|
||||
#define GODOT_CPP_LIGHT_HPP
|
||||
|
||||
|
||||
#include <gdnative_api_struct.gen.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <core/CoreTypes.hpp>
|
||||
#include <core/Ref.hpp>
|
||||
#include "Light.hpp"
|
||||
|
||||
#include "VisualInstance.hpp"
|
||||
namespace godot {
|
||||
|
||||
|
||||
class Light : public VisualInstance {
|
||||
struct ___method_bindings {
|
||||
godot_method_bind *mb_get_bake_mode;
|
||||
godot_method_bind *mb_get_color;
|
||||
godot_method_bind *mb_get_cull_mask;
|
||||
godot_method_bind *mb_get_param;
|
||||
godot_method_bind *mb_get_shadow_color;
|
||||
godot_method_bind *mb_get_shadow_reverse_cull_face;
|
||||
godot_method_bind *mb_has_shadow;
|
||||
godot_method_bind *mb_is_editor_only;
|
||||
godot_method_bind *mb_is_negative;
|
||||
godot_method_bind *mb_set_bake_mode;
|
||||
godot_method_bind *mb_set_color;
|
||||
godot_method_bind *mb_set_cull_mask;
|
||||
godot_method_bind *mb_set_editor_only;
|
||||
godot_method_bind *mb_set_negative;
|
||||
godot_method_bind *mb_set_param;
|
||||
godot_method_bind *mb_set_shadow;
|
||||
godot_method_bind *mb_set_shadow_color;
|
||||
godot_method_bind *mb_set_shadow_reverse_cull_face;
|
||||
};
|
||||
static ___method_bindings ___mb;
|
||||
|
||||
public:
|
||||
static void ___init_method_bindings();
|
||||
|
||||
static inline const char *___get_class_name() { return (const char *) "Light"; }
|
||||
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 BakeMode {
|
||||
BAKE_DISABLED = 0,
|
||||
BAKE_INDIRECT = 1,
|
||||
BAKE_ALL = 2,
|
||||
};
|
||||
enum Param {
|
||||
PARAM_ENERGY = 0,
|
||||
PARAM_INDIRECT_ENERGY = 1,
|
||||
PARAM_SPECULAR = 2,
|
||||
PARAM_RANGE = 3,
|
||||
PARAM_ATTENUATION = 4,
|
||||
PARAM_SPOT_ANGLE = 5,
|
||||
PARAM_SPOT_ATTENUATION = 6,
|
||||
PARAM_CONTACT_SHADOW_SIZE = 7,
|
||||
PARAM_SHADOW_MAX_DISTANCE = 8,
|
||||
PARAM_SHADOW_SPLIT_1_OFFSET = 9,
|
||||
PARAM_SHADOW_SPLIT_2_OFFSET = 10,
|
||||
PARAM_SHADOW_SPLIT_3_OFFSET = 11,
|
||||
PARAM_SHADOW_NORMAL_BIAS = 12,
|
||||
PARAM_SHADOW_BIAS = 13,
|
||||
PARAM_SHADOW_BIAS_SPLIT_SCALE = 14,
|
||||
PARAM_MAX = 15,
|
||||
};
|
||||
|
||||
// constants
|
||||
|
||||
// methods
|
||||
Light::BakeMode get_bake_mode() const;
|
||||
Color get_color() const;
|
||||
int64_t get_cull_mask() const;
|
||||
real_t get_param(const int64_t param) const;
|
||||
Color get_shadow_color() const;
|
||||
bool get_shadow_reverse_cull_face() const;
|
||||
bool has_shadow() const;
|
||||
bool is_editor_only() const;
|
||||
bool is_negative() const;
|
||||
void set_bake_mode(const int64_t bake_mode);
|
||||
void set_color(const Color color);
|
||||
void set_cull_mask(const int64_t cull_mask);
|
||||
void set_editor_only(const bool editor_only);
|
||||
void set_negative(const bool enabled);
|
||||
void set_param(const int64_t param, const real_t value);
|
||||
void set_shadow(const bool enabled);
|
||||
void set_shadow_color(const Color shadow_color);
|
||||
void set_shadow_reverse_cull_face(const bool enable);
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user