README.DirectFB
author Sam Lantinga <slouken@libsdl.org>
Sun, 04 Jan 2009 23:43:33 +0000
changeset 2998 d364ee9b9c15
parent 2815 e759ad5e6f43
child 3023 d72a0dd80e8b
permissions -rw-r--r--
Date: Sun, 04 Jan 2009 20:53:30 +0100
From: Couriersud
Subject: SDL1.3 DirectFB patches

The attached contains the following directfb changes:

- Dynamic loading of libdirectfb.so. This may to turned off as well in configure
- Use linux-input by default. May be switched off by environment variable.
- Added some code which will use directfb's x11 backend when DISPLAY is set.
     1 SDL on DirectFB
     2 
     3 Supports:
     4 
     5 - Hardware YUV overlays
     6 - OpenGL - software only
     7 - 2D/3D accelerations (depends on directfb driver)
     8 - multiple displays
     9 - windows
    10 
    11 What you need:
    12 
    13 DirectFB 1.0.1, 1.2.x, 1.3.0
    14 Kernel-Framebuffer support: required: vesafb, radeonfb .... 
    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=cle266
    24 disable-module=cyber5k
    25 no-linux-input-grab
    26 ------------------------
    27 
    28 To disable to use x11 backend when DISPLAY variable is found use
    29 
    30 export SDL_DIRECTFB_X11_CHECK=0
    31 
    32 To disable the use of linux input devices, i.e. multimice/multikeyboard support,
    33 use
    34 
    35 export SDL_DIRECTFB_LINUX_INPUT=0
    36 
    37 To use hardware accelerated YUV-overlays for YUV-textures, use:
    38 
    39 export SDL_DIRECTFB_YUV_DIRECT=1
    40 
    41 This is disabled by default. It will only support one 
    42 YUV texture, namely the first. Every other YUV texture will be
    43 rendered in software.
    44 
    45 In addition, you may use (directfb-1.2.x)
    46 
    47 export SDL_DIRECTFB_YUV_UNDERLAY=1
    48 
    49 to make the YUV texture an underlay. This will make the cursor to
    50 be shown.
    51 
    52 OPENGL Support
    53 ==============
    54 
    55 As of this writing 20070810 you need to pull Mesa from git and do the following:
    56 
    57 ------------------------
    58 cd mesa 
    59 make linux-directfb
    60 make
    61 
    62 echo Installing - please enter sudo pw.
    63 
    64 sudo make install INSTALL_DIR=/usr/local/dfb_GL
    65 cd src/mesa/drivers/directfb
    66 make
    67 sudo make install INSTALL_DIR=/usr/local/dfb_GL
    68 ------------------------
    69 
    70 To run the SDL - testprograms:
    71 
    72 export SDL_VIDEODRIVER=directfb
    73 export LD_LIBRARY_PATH=/usr/local/dfb_GL/lib
    74 export LD_PRELOAD=/usr/local/dfb_GL/libGL.so.7
    75 
    76 ./testgl