Skip to content

Native windowing for Raspberry Pi 4 #6713

@ofTheo

Description

@ofTheo

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions