qmlfrontend/main.cpp
changeset 14315 21be7838a127
parent 14292 1aac8a62be6f
child 14391 ef2fc0210362
--- a/qmlfrontend/main.cpp	Sun Nov 25 05:52:06 2018 +0300
+++ b/qmlfrontend/main.cpp	Sun Nov 25 22:32:49 2018 +0100
@@ -13,6 +13,9 @@
 cleanup_t* cleanup;
 send_ipc_t* send_ipc;
 read_ipc_t* read_ipc;
+setup_current_gl_context_t* setup_current_gl_context;
+render_frame_t* render_frame;
+advance_simulation_t* advance_simulation;
 };  // namespace Engine
 
 void loadEngineLibrary() {
@@ -39,6 +42,14 @@
   Engine::read_ipc =
       reinterpret_cast<Engine::read_ipc_t*>(hwlib.resolve("read_ipc"));
 
+  Engine::setup_current_gl_context =
+      reinterpret_cast<Engine::setup_current_gl_context_t*>(
+          hwlib.resolve("setup_current_gl_context"));
+  Engine::render_frame =
+      reinterpret_cast<Engine::render_frame_t*>(hwlib.resolve("render_frame"));
+  Engine::advance_simulation = reinterpret_cast<Engine::advance_simulation_t*>(
+      hwlib.resolve("advance_simulation"));
+
   if (Engine::protocol_version)
     qDebug() << "Loaded engine library with protocol version"
              << Engine::protocol_version();