aboutsummaryrefslogtreecommitdiff
path: root/game/addons/zylann.hterrain/native/src/gd_library.cpp
blob: d39387f2c9b64f0bc9c7e62700dc63bff8ae76fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "image_utils.h"
#include "quad_tree_lod.h"

extern "C" {

void GDN_EXPORT godot_gdnative_init(godot_gdnative_init_options *o) {
#ifdef _DEBUG
    printf("godot_gdnative_init hterrain_native\n");
#endif
    godot::Godot::gdnative_init(o);
}

void GDN_EXPORT godot_gdnative_terminate(godot_gdnative_terminate_options *o) {
#ifdef _DEBUG
    printf("godot_gdnative_terminate hterrain_native\n");
#endif
    godot::Godot::gdnative_terminate(o);
}

void GDN_EXPORT godot_nativescript_init(void *handle) {
#ifdef _DEBUG
    printf("godot_nativescript_init hterrain_native\n");
#endif
    godot::Godot::nativescript_init(handle);

    godot::register_tool_class<godot::ImageUtils>();
    godot::register_tool_class<godot::QuadTreeLod>();
}

} // extern "C"