2007-08-11 21:51:19 +00:00
|
|
|
SDL on DirectFB
|
|
|
|
|
|
|
|
Supports:
|
|
|
|
|
|
|
|
- Hardware YUV overlays
|
|
|
|
- OpenGL - software only
|
|
|
|
- 2D/3D accelerations (depends on directfb driver)
|
2008-12-01 00:10:49 +00:00
|
|
|
- multiple displays
|
|
|
|
- windows
|
2007-08-11 21:51:19 +00:00
|
|
|
|
|
|
|
What you need:
|
|
|
|
|
2008-12-01 00:10:49 +00:00
|
|
|
DirectFB 1.0.1, 1.2.x, 1.3.0
|
2007-08-11 21:51:19 +00:00
|
|
|
Kernel-Framebuffer support: required: vesafb, radeonfb ....
|
|
|
|
Mesa 7.0.x - optional for OpenGL
|
|
|
|
|
2008-11-26 21:59:35 +00:00
|
|
|
/etc/directfbrc
|
|
|
|
|
2008-12-01 00:10:49 +00:00
|
|
|
This file should contain the following lines to make
|
|
|
|
your joystick work and avoid crashes:
|
2008-11-26 21:59:35 +00:00
|
|
|
------------------------
|
|
|
|
disable-module=joystick
|
|
|
|
disable-module=linux_input
|
2008-12-01 00:10:49 +00:00
|
|
|
disable-module=cle266
|
|
|
|
disable-module=cyber5k
|
|
|
|
disable-module=x11input
|
2008-11-26 21:59:35 +00:00
|
|
|
------------------------
|
|
|
|
|
2007-08-11 21:51:19 +00:00
|
|
|
To use hardware accelerated YUV-overlays for YUV-textures, use:
|
|
|
|
|
|
|
|
export SDL_DIRECTFB_YUV_DIRECT=1
|
|
|
|
|
2008-11-26 21:59:35 +00:00
|
|
|
This is disabled by default. It will only support one
|
|
|
|
YUV texture, namely the first. Every other YUV texture will be
|
|
|
|
rendered in software.
|
|
|
|
|
2008-12-01 00:10:49 +00:00
|
|
|
In addition, you may use (directfb-1.2.x)
|
2008-11-26 21:59:35 +00:00
|
|
|
|
|
|
|
export SDL_DIRECTFB_YUV_UNDERLAY=1
|
|
|
|
|
|
|
|
to make the YUV texture an underlay. This will make the cursor to
|
|
|
|
be shown.
|
|
|
|
|
2008-12-01 00:10:49 +00:00
|
|
|
OPENGL Support
|
|
|
|
==============
|
|
|
|
|
|
|
|
As of this writing 20070810 you need to pull Mesa from git and do the following:
|
|
|
|
|
|
|
|
------------------------
|
|
|
|
cd mesa
|
|
|
|
make linux-directfb
|
|
|
|
make
|
|
|
|
|
|
|
|
echo Installing - please enter sudo pw.
|
|
|
|
|
|
|
|
sudo make install INSTALL_DIR=/usr/local/dfb_GL
|
|
|
|
cd src/mesa/drivers/directfb
|
|
|
|
make
|
|
|
|
sudo make install INSTALL_DIR=/usr/local/dfb_GL
|
|
|
|
------------------------
|
|
|
|
|
|
|
|
To run the SDL - testprograms:
|
|
|
|
|
|
|
|
export SDL_VIDEODRIVER=directfb
|
|
|
|
export LD_LIBRARY_PATH=/usr/local/dfb_GL/lib
|
|
|
|
export LD_PRELOAD=/usr/local/dfb_GL/libGL.so.7
|
|
|
|
|
|
|
|
./testgl
|