Hi everyone,
I am writing an XRInterfaceExtension to support various types of 3D displays.
With Godot3, I was able to retrieve the texture Id from a render_target in the function "godot_arvr_commit_for_eye" using the code uint32_t texid = godot::arvr_api->godot_arvr_get_texid(p_render_target);
.
I can then use the texture in a separate OpenGL context.
In Godot4, I want to do the same thing in _post_draw_viewport but I can not find the equivalent function.
I could not find an example in existing XRInterfaceExtensions (WebXR does something similar but relies on classes that do not exist in the godot-cpp API).
Does anyone know how to do that ?
Thanks in advance,
Florent