Panda’s graphics API has a bit of an awkward design issue right now: there can be a many-to-many association between windowing APIs and graphics interface APIs, but Panda’s current inheritance model only allows for a many-to-one association here, due to the need to inherit from x11GraphicsPipe or similar. We intend to fix this in the longer term.
In the meantime, since you don’t need to open any on-screen windows, and you’re willing to compile Panda from source, I think the easiest thing for you to do would be to make it possible to compile egldisplay without X11. This means that if HAVE_X11 is not set, it would not inherit from x11GraphicsPipe, but straight from GraphicsPipe. It would furthermore not compile the code in eglGraphicsWindow.h/.cxx nor offer to create an eglGraphicsWindow in
I would be quite happy to entertain a patch to this effect. I think this approach would not require many changes.
If you wish to use desktop OpenGL instead of OpenGL ES with EGL, as described in the NV article, you would additionally need to make it possible to compile egldisplay against the regular OpenGL API. This would not be much different from the current mechanism by which it switches between OpenGL ES 1 and OpenGL ES 2 at compile time.