mirror of
https://forge.univ-lyon1.fr/tplifap4/dungeonanddeamon.git
synced 2024-02-27 13:31:50 +01:00
68 lines
1.8 KiB
C++
68 lines
1.8 KiB
C++
#ifndef GODOT_CPP_SPRITE3D_HPP
|
|
#define GODOT_CPP_SPRITE3D_HPP
|
|
|
|
|
|
#include <gdnative_api_struct.gen.h>
|
|
#include <stdint.h>
|
|
|
|
#include <core/CoreTypes.hpp>
|
|
#include <core/Ref.hpp>
|
|
|
|
#include "SpriteBase3D.hpp"
|
|
namespace godot {
|
|
|
|
class Texture;
|
|
|
|
class Sprite3D : public SpriteBase3D {
|
|
struct ___method_bindings {
|
|
godot_method_bind *mb_get_frame;
|
|
godot_method_bind *mb_get_frame_coords;
|
|
godot_method_bind *mb_get_hframes;
|
|
godot_method_bind *mb_get_region_rect;
|
|
godot_method_bind *mb_get_texture;
|
|
godot_method_bind *mb_get_vframes;
|
|
godot_method_bind *mb_is_region;
|
|
godot_method_bind *mb_set_frame;
|
|
godot_method_bind *mb_set_frame_coords;
|
|
godot_method_bind *mb_set_hframes;
|
|
godot_method_bind *mb_set_region;
|
|
godot_method_bind *mb_set_region_rect;
|
|
godot_method_bind *mb_set_texture;
|
|
godot_method_bind *mb_set_vframes;
|
|
};
|
|
static ___method_bindings ___mb;
|
|
|
|
public:
|
|
static void ___init_method_bindings();
|
|
|
|
static inline const char *___get_class_name() { return (const char *) "Sprite3D"; }
|
|
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 Sprite3D *_new();
|
|
|
|
// methods
|
|
int64_t get_frame() const;
|
|
Vector2 get_frame_coords() const;
|
|
int64_t get_hframes() const;
|
|
Rect2 get_region_rect() const;
|
|
Ref<Texture> get_texture() const;
|
|
int64_t get_vframes() const;
|
|
bool is_region() const;
|
|
void set_frame(const int64_t frame);
|
|
void set_frame_coords(const Vector2 coords);
|
|
void set_hframes(const int64_t hframes);
|
|
void set_region(const bool enabled);
|
|
void set_region_rect(const Rect2 rect);
|
|
void set_texture(const Ref<Texture> texture);
|
|
void set_vframes(const int64_t vframes);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif |