- Posts: 2
- Joined: Tue Feb 25, 2020 10:09 am
- Real Name: Jiarong Che
Hi Jiarong,
I would recommend instead generating a custom QOpenGLWidget, and within GL context, get the texture handle by calling IBlackmagicRawOpenGLInteropHelper::SetImage with the processed image. You can then bind the GL texture to your viewport with this handle.
Be mindful of the output value openGLTextureTarget, it will either return GL_TEXTURE_2D (OpenGL) or GL_TEXTURE_RECTANGLE (Metal), so will have different coordinate systems. This is important if you are intending for your application to be cross-platform.
Regards
Cameron