From b238ad6dad6942fc6a53dfee5d22e12ad8b13df5 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Sun, 12 Aug 2018 04:18:44 +0200 Subject: Add initial interface --- src/init.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/init.cpp (limited to 'src/init.cpp') diff --git a/src/init.cpp b/src/init.cpp new file mode 100644 index 0000000..601ac2a --- /dev/null +++ b/src/init.cpp @@ -0,0 +1,16 @@ +#include "WebRTCPeer.hpp" + +/* Godot export stuff */ +extern "C" void GDN_EXPORT godot_gdnative_init(godot_gdnative_init_options *o) { + godot::Godot::gdnative_init(o); +} + +extern "C" void GDN_EXPORT godot_gdnative_terminate(godot_gdnative_terminate_options *o) { + godot::Godot::gdnative_terminate(o); +} + +extern "C" void GDN_EXPORT godot_nativescript_init(void *handle) { + godot::Godot::nativescript_init(handle); + + godot::register_class(); +} -- cgit v1.2.3