OpenGL directly to Linux framebuffer without X-Server
Asked Answered
A

0

7

I have a small OpenGL application that has been developed using GLUT. What are my best options to render directly to a Linux framebuffer (fbdev) with OpenGL, without an X-Server? I understand that GLUT needs X, so I'm not looking for ways to use GLUT without X.

The framebuffer device I intend to use is confirmed working with fbi and mplayer.

I have done (or I'd like to think that I have done) a pretty exhaustive research, and found some resources and libraries that might work. But most of the info is a bit outdated, and I'm not sure what to trust.

So, while a lot of SO answers mention DirectFB and Mesa as solutions, I can't bring myself to be confident in those options while so little material can be found.

So, if you can point me in the right direction here, give me any examples to go from, that would be highly appreciated. What am I missing?


Edit due to question being marked as duplicate:

The answer to the related question recommends using DRM. I intend to run my code on an Allwinner H3-based embedded computer that does not yet support the mainline Linux kernel. Currently, it's running on kernel version 3.14, which I believe does not have DRM support.

So, are there any alternatives?

Abiotic answered 28/9, 2016 at 21:51 Comment(3)
@datenwolf has an updated kmscubeToadeater
See updated questionAbiotic
@Abiotic you might have the mainline nowArchfiend

© 2022 - 2024 — McMap. All rights reserved.