Reputation: 602
How to init EGLNativeWindowType in order to create an Android Native OpenGL ES 3.0 app?
I haven't found any place documenting the valid values for EGLNativeWindowType. I'm reading OpenGL ES 3.0 programming guide 2nd ed. and I also googled many (far too many) terms.
Upvotes: 0
Views: 3862
Reputation: 52313
One does not simply create a native window on Android. You have to talk to the screen compositor. It used to be the case that a program running as root could open the framebuffer device if the app framework wasn't running, but that's (a) not very useful, and (b) not going to work on devices that don't have fbdev.
You need to get a window from the system, and use that. There's an example in the NativeActivity documentation.
Upvotes: 2