Signed-off-by: somebody_master <somebody_master@somebodyserver.mooo.com>
This commit is contained in:
Somebody Master 2023-03-31 00:04:22 +02:00
parent b206f3d0c7
commit 7384d4ec10
Signed by: somebody_master
GPG Key ID: 78315CFDF0B25505

View File

@ -1,9 +1,23 @@
#include "test.hpp"
#include <godot_cpp/variant/utility_functions.hpp>
#include <godot_cpp/variant/variant.hpp>
#include <godot_cpp/classes/image_texture.hpp>
void Test::start_test() {
UtilityFunctions::print("Hello world form GDExtension");
Ref<ImageTexture> tex(memnew(ImageTexture));
auto format = tex->get_format();
UtilityFunctions::print(tex->get_reference_count());
Ref<ImageTexture> tex2 = tex;
UtilityFunctions::print(tex->get_reference_count());
tex2.unref();
UtilityFunctions::print(tex->get_reference_count());
tex.unref();
}
void Test::_bind_methods() {