-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Description
We've had a lot of requests since 0.11.0 for native windowing for Rpi 4.
@jvcleave has an ofxRPI4Window addon which handles just the window ( no mouse / keyboard ) using libdrm.
I recently tried using his window / surface creation from his addon with ofAppEGLWindow.cpp and it works great.
ofAppEGLWindow works fine for Rpi 4 if you sub out the window / display calls from ofxRPI4Window.
Right now ofAppEGLWindow is a bit of a mess because of the split support for X11 and native windowing on older PI devices. I am nervous to add yet another pathway with dependencies for libdrm window creation.
If the window code from https://github.com/jvcleave/ofxRPI4Window could be used for older devices too then it would be cleaner to have the native stuff in ofAppEGLWindow swapped for the DRM code. ( To me that would be ideal )
The other option would be to have something like ofAppDRMWindow which would be similar to ofxRPI4Window but with the event stuff from ofAppEGLWindow. This would add another file to OF and duplicate a lot of code that is already in ofAppEGLWindow.
Would love some thoughts on this.
Tagging @bakercp @jvcleave