X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=docs%2Fglfbdev-driver.html;h=981df7c088a09abb8528eb4a66e4a8fcc86b447d;hb=3640e4acde2fb050b1659271d1687a8a5f90365d;hp=b49950eb9e1bb144b40329df62df26f182ca29bc;hpb=36da0459e4d0b12ab46f0e2090d107a22f68844a;p=mesa.git diff --git a/docs/glfbdev-driver.html b/docs/glfbdev-driver.html index b49950eb9e1..981df7c088a 100644 --- a/docs/glfbdev-driver.html +++ b/docs/glfbdev-driver.html @@ -37,54 +37,75 @@ The GL/glfbdev.h header file defines the glFBDev interface. The progs/fbdev/glfbdevtest.c demonstrates how to use the glFBDev interface.
+For more information about fbdev, see the Framebuffer Howto
- ++You will need at minimum, a framebuffer device, check /dev/fb0 +
To compile Mesa with support for the glFBDev interface:
- XXX todo + make realclean + make linux-fbdev
When compilation is finished look in progs/glfbdev/ for the glfbdevtest demo.
- - -xxx todo - - - --xxx todo -
- - +Typically /dev/fb/0 is grouped to the video group. It may be useful to add +your user to the video group so the demos will not have to be run as root. +To use fbdevglut with the prefered tty input, you should add the user to the +tty group as well +-
-First, you need to have a working fbdev environment. -See the - -Framebuffer Howto for information. +To compile the redbook sample programs: +
+ cd progs/redbook + make +- +
glut features not supported: +
Keyboard input is read by opening /dev/tty and reading keycodes in medium raw mode. +
Mouse input is read from env var MOUSE, or /dev/gpmdata and should be in ms3 format. +To forward data in this format to /dev/gpmdata, run gpm with the -Rms3 option. +
glutInit allows glut programs to pass parameters to the glut library, currently the +following options are supported for fbdevglut: +
Notes:
-Programs must be run with root permission. +1. The mouse pointer flickers in single buffering mode, as it must be rendered in software. Hopefully in the future there will be a way to access hardware cursors in fbdev devices.
- - - - -