Hi,
we currently try to use the unigine render context to render a external symbology to a texture within the same graphics context. To achive this we need to get the current context of the Unigine Render engine. We've tried to use the Unigine::RenderContext class by getting it from the App like this.
App::get()->getGLContext()
We've been also able to get the ogengl name of that context and the void* returned is not null.
We currently have trouble interpreting the return value, as there is no further information. In a current setup that we use, we use glfw in the backend that allows to access the native contexts via the following methods for Linux and Windows. The methods
glfwGetGLXContext
and
glfwGetWGLContext
described here
https://www.glfw.org/docs/latest/group__native.html
define the interface that we currently would expect.
Is there already something in Unigine that we could use to access the native OS's rendering context?
Best regards
Florian