I am developing an C++ application on QNX 7.0. In the application, I want to render a basic cube via OpenGL ES 3 and display it using OpenWFD API. For QNX, native windowing system is provided via screen API, however, in my case, I am not able to use it. I have access to OpenWFD API and can display content on my screen. I can also draw a cube via OpenGLES. However, I cannot find an efficienty way to pass the OpenGLES rendering output to OpenWFD api for displaying the rendered content.
Is there any way for this kind of architecture to work?
Up to now, I tried some methods listed below.
typedef struct wfd_buffer {
WFD_EGLImageType* image;
WFDSource source;
} wfd_buffer_t;
typedef struct wfd_window {
WFDDevice dev;
WFDPort port;
WFDPipeline pipeline;
unsigned int numBuffers;
wfd_buffer_t buffers[MAX_NUM_OF_WFD_BUFFERS];
} wfd_window_t;
Thanks
Ideally on QNX you'd use QNX Screen for displaying any OpenGL/GLES related content but IIUC you're not able to use QNX Screen in your usecase.
The OpenWFD drivers on QNX are primarily meant to be used solely by QNX Screen and may support creating WFDSource handles only from QNX Screen specific image objects and not from EGLimages.
The exact details of which buffer objects are supported for creating WFDSource handles from depends on the vendor of the OpenWFD driver so I'd suggest contacting the vendor of the OpenWFD driver you're using for inputs here.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.