mirror of
https://forge.univ-lyon1.fr/tplifap4/dungeonanddeamon.git
synced 2024-02-27 13:31:50 +01:00
60 lines
1.6 KiB
C++
60 lines
1.6 KiB
C++
#ifndef GODOT_CPP_LARGETEXTURE_HPP
|
|
#define GODOT_CPP_LARGETEXTURE_HPP
|
|
|
|
|
|
#include <gdnative_api_struct.gen.h>
|
|
#include <stdint.h>
|
|
|
|
#include <core/CoreTypes.hpp>
|
|
#include <core/Ref.hpp>
|
|
|
|
#include "Texture.hpp"
|
|
namespace godot {
|
|
|
|
class Texture;
|
|
|
|
class LargeTexture : public Texture {
|
|
struct ___method_bindings {
|
|
godot_method_bind *mb__get_data;
|
|
godot_method_bind *mb__set_data;
|
|
godot_method_bind *mb_add_piece;
|
|
godot_method_bind *mb_clear;
|
|
godot_method_bind *mb_get_piece_count;
|
|
godot_method_bind *mb_get_piece_offset;
|
|
godot_method_bind *mb_get_piece_texture;
|
|
godot_method_bind *mb_set_piece_offset;
|
|
godot_method_bind *mb_set_piece_texture;
|
|
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 *) "LargeTexture"; }
|
|
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 LargeTexture *_new();
|
|
|
|
// methods
|
|
Array _get_data() const;
|
|
void _set_data(const Array data);
|
|
int64_t add_piece(const Vector2 ofs, const Ref<Texture> texture);
|
|
void clear();
|
|
int64_t get_piece_count() const;
|
|
Vector2 get_piece_offset(const int64_t idx) const;
|
|
Ref<Texture> get_piece_texture(const int64_t idx) const;
|
|
void set_piece_offset(const int64_t idx, const Vector2 ofs);
|
|
void set_piece_texture(const int64_t idx, const Ref<Texture> texture);
|
|
void set_size(const Vector2 size);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif |