iMX53 + OpenGL + dual display + Android

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX53 + OpenGL + dual display + Android

620 Views
tibowcc
Contributor I

Hi,

I have an touchscreen and an HDMI monitor connected to the board, the screens are mirrored. From a Linux/Android point of view, I can access (read/write) to fb0 and fb1 independently. But I was wondering if it's possible to render something in OpenGL only on fb1 ?


Thanks in advance for your help.

Labels (3)
0 Kudos
1 Reply

386 Views
jamesbone
NXP TechSupport
NXP TechSupport

Yes, you can use any of the FB0 and FB1

In the source code should be a call like this:

EGLNativeWindowType native_window = open("/dev/fb0",O_RDWR);

Where it specifies what FB to use, here is where you can change to other FB

0 Kudos