update to plugin 7

This commit is contained in:
Green Sky 2024-01-07 16:56:39 +01:00
parent 55df71d96e
commit 0b5ef1f101
No known key found for this signature in database

View File

@ -3,6 +3,7 @@
#include "../src/bridge.hpp" #include "../src/bridge.hpp"
#include <memory> #include <memory>
#include <limits>
#include <iostream> #include <iostream>
#define RESOLVE_INSTANCE(x) static_cast<x*>(solana_api->resolveInstance(#x)) #define RESOLVE_INSTANCE(x) static_cast<x*>(solana_api->resolveInstance(#x))
@ -68,11 +69,13 @@ SOLANA_PLUGIN_EXPORT void solana_plugin_stop(void) {
g_bridge.reset(); g_bridge.reset();
} }
SOLANA_PLUGIN_EXPORT void solana_plugin_tick(float delta) { SOLANA_PLUGIN_EXPORT float solana_plugin_tick(float delta) {
(void)delta;
//std::cout << "PLUGIN Bridge TICK()\n";
g_bridge->iterate(delta); g_bridge->iterate(delta);
return std::numeric_limits<float>::max();
} }
// no render
} // extern C } // extern C