README.DirectFB
changeset 2815 e759ad5e6f43
parent 2791 8133d1d278da
child 2998 d364ee9b9c15
equal deleted inserted replaced
2814:e841aa93e6be 2815:e759ad5e6f43
     3 Supports:
     3 Supports:
     4 
     4 
     5 - Hardware YUV overlays
     5 - Hardware YUV overlays
     6 - OpenGL - software only
     6 - OpenGL - software only
     7 - 2D/3D accelerations (depends on directfb driver)
     7 - 2D/3D accelerations (depends on directfb driver)
       
     8 - multiple displays
       
     9 - windows
     8 
    10 
     9 What you need:
    11 What you need:
    10 
    12 
    11 DirectFB 1.0.0 - required
    13 DirectFB 1.0.1, 1.2.x, 1.3.0
    12 Kernel-Framebuffer support: required: vesafb, radeonfb .... 
    14 Kernel-Framebuffer support: required: vesafb, radeonfb .... 
    13 Mesa 7.0.x	   - optional for OpenGL
    15 Mesa 7.0.x	   - optional for OpenGL
       
    16 
       
    17 /etc/directfbrc
       
    18 
       
    19 This file should contain the following lines to make
       
    20 your joystick work and avoid crashes:
       
    21 ------------------------
       
    22 disable-module=joystick
       
    23 disable-module=linux_input
       
    24 disable-module=cle266
       
    25 disable-module=cyber5k
       
    26 disable-module=x11input
       
    27 ------------------------
       
    28 
       
    29 To use hardware accelerated YUV-overlays for YUV-textures, use:
       
    30 
       
    31 export SDL_DIRECTFB_YUV_DIRECT=1
       
    32 
       
    33 This is disabled by default. It will only support one 
       
    34 YUV texture, namely the first. Every other YUV texture will be
       
    35 rendered in software.
       
    36 
       
    37 In addition, you may use (directfb-1.2.x)
       
    38 
       
    39 export SDL_DIRECTFB_YUV_UNDERLAY=1
       
    40 
       
    41 to make the YUV texture an underlay. This will make the cursor to
       
    42 be shown.
       
    43 
       
    44 OPENGL Support
       
    45 ==============
    14 
    46 
    15 As of this writing 20070810 you need to pull Mesa from git and do the following:
    47 As of this writing 20070810 you need to pull Mesa from git and do the following:
    16 
    48 
    17 ------------------------
    49 ------------------------
    18 cd mesa 
    50 cd mesa 
    19 make linux-directfb
    51 make linux-directfb
    20 make
    52 make
    21 
    53 
    22 echo Installing - pleaser enter sudo pw.
    54 echo Installing - please enter sudo pw.
    23 
    55 
    24 sudo make install INSTALL_DIR=/usr/local/dfb_GL
    56 sudo make install INSTALL_DIR=/usr/local/dfb_GL
    25 cd src/mesa/drivers/directfb
    57 cd src/mesa/drivers/directfb
    26 make
    58 make
    27 sudo make install INSTALL_DIR=/usr/local/dfb_GL
    59 sudo make install INSTALL_DIR=/usr/local/dfb_GL
    28 ------------------------
       
    29 
       
    30 /etc/directfbrc
       
    31 
       
    32 This file should contain the following two lines to make
       
    33 your joystick work:
       
    34 ------------------------
       
    35 disable-module=joystick
       
    36 disable-module=linux_input
       
    37 ------------------------
    60 ------------------------
    38 
    61 
    39 To run the SDL - testprograms:
    62 To run the SDL - testprograms:
    40 
    63 
    41 export SDL_VIDEODRIVER=directfb
    64 export SDL_VIDEODRIVER=directfb
    42 export LD_LIBRARY_PATH=/usr/local/dfb_GL/lib
    65 export LD_LIBRARY_PATH=/usr/local/dfb_GL/lib
    43 export LD_PRELOAD=/usr/local/dfb_GL/libGL.so.7
    66 export LD_PRELOAD=/usr/local/dfb_GL/libGL.so.7
    44 
    67 
    45 ./testgl
    68 ./testgl
    46 
       
    47 To use hardware accelerated YUV-overlays for YUV-textures, use:
       
    48 
       
    49 export SDL_DIRECTFB_YUV_DIRECT=1
       
    50 
       
    51 This is disabled by default. It will only support one 
       
    52 YUV texture, namely the first. Every other YUV texture will be
       
    53 rendered in software.
       
    54 
       
    55 In addition, you may use 
       
    56 
       
    57 export SDL_DIRECTFB_YUV_UNDERLAY=1
       
    58 
       
    59 to make the YUV texture an underlay. This will make the cursor to
       
    60 be shown.
       
    61