View Full Version : /dev/fb

05-19-2006, 08:53 AM
How can I make OpenGL draw on the Linux framebuffer (/dev/fb device)? Should I use specific driver?

05-21-2006, 05:05 AM
If you only want software rendering to the framebuffer that shouldn't be much of a problem.
In case you want hardware-acceleration, read on.

OpenGL without X is experimental and so far works only with very few drivers. Jon Smirl did work on this before he gave up on developing OpenGL drivers.
You will need EGL-enabled rivers.
Jon Smirl's goal was to make the X server use OpenGL instead of card-specific drivers (and thus OpenGL would run directly on the graphics card without another X under it). There's some information about how to set this up at
more at

The mesa3d-dev mailing list is probably a place where you can get some more info about his topic. Dave Airlie is subscribed there, he still continues the work he once did together with Jon Smirl.

05-22-2006, 08:08 AM
Ok, the rendering is software for a start. What function should I call to create rendering context?

05-24-2006, 03:42 PM
AFAIK it implements the EGL API.