README.DirectFB
author Holmes Futrell <hfutrell@umail.ucsb.edu>
Fri, 18 Jul 2008 21:16:48 +0000
branchgsoc2008_iphone
changeset 2394 6f686c41b53b
parent 2226 0e70b4b8cf84
child 2791 8133d1d278da
permissions -rw-r--r--
ugh
slouken@2226
     1
SDL on DirectFB
slouken@2226
     2
slouken@2226
     3
Supports:
slouken@2226
     4
slouken@2226
     5
- Hardware YUV overlays
slouken@2226
     6
- OpenGL - software only
slouken@2226
     7
- 2D/3D accelerations (depends on directfb driver)
slouken@2226
     8
slouken@2226
     9
What you need:
slouken@2226
    10
slouken@2226
    11
DirectFB 1.0.0 - required
slouken@2226
    12
Kernel-Framebuffer support: required: vesafb, radeonfb .... 
slouken@2226
    13
Mesa 7.0.x	   - optional for OpenGL
slouken@2226
    14
slouken@2226
    15
As of this writing 20070810 you need to pull Mesa from git and do the following:
slouken@2226
    16
slouken@2226
    17
------------------------
slouken@2226
    18
cd mesa 
slouken@2226
    19
make linux-directfb
slouken@2226
    20
make
slouken@2226
    21
slouken@2226
    22
echo Installing - pleaser enter sudo pw.
slouken@2226
    23
slouken@2226
    24
sudo make install INSTALL_DIR=/usr/local/dfb_GL
slouken@2226
    25
cd src/mesa/drivers/directfb
slouken@2226
    26
make
slouken@2226
    27
sudo make install INSTALL_DIR=/usr/local/dfb_GL
slouken@2226
    28
------------------------
slouken@2226
    29
slouken@2226
    30
To run the SDL - testprograms:
slouken@2226
    31
slouken@2226
    32
export SDL_VIDEODRIVER=directfb
slouken@2226
    33
export LD_LIBRARY_PATH=/usr/local/dfb_GL/lib
slouken@2226
    34
export LD_PRELOAD=/usr/local/dfb_GL/libGL.so.7
slouken@2226
    35
slouken@2226
    36
./testgl
slouken@2226
    37
slouken@2226
    38
To use hardware accelerated YUV-overlays for YUV-textures, use:
slouken@2226
    39
slouken@2226
    40
export SDL_DIRECTFB_YUV_DIRECT=1
slouken@2226
    41
slouken@2226
    42
This is disabled by default. It will only support one concurrent 
slouken@2226
    43
overlay and may behave strange if not used with SDL_CreateYUvOverlay
slouken@2226
    44
from SDLcompat.c. 
slouken@2226
    45