README.DirectFB
author Sunny Sachanandani <sunnysachanandani@gmail.com>
Fri, 09 Jul 2010 21:36:41 +0530
changeset 4590 1ad70fb49fcb
parent 3023 d72a0dd80e8b
child 4636 b196d2758026
permissions -rw-r--r--
Fix so many things that there is little place in this column to list them all but the result is that blending modes just work now for drawing primitives.

Fixes involved:
1. Fix handling of alpha channel when SDL_BLENDMODE_NONE is set.
2. Make xrendercolor use floating-point values for color channels and then convert to 16 bit ints.
3. Fix handling of visuals in SDL_x11modes.c so that a 32 bit ARGB visual is used.
4. Fix the background pixel value in SDL_x11window.c so that the window background has an alpha value of 0xFF and not 0.
     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 Simple Window Manager
    53 =====================
    54 
    55 The driver has support for a very, very basic window manager you may
    56 want to use when runnning with "wm=default". Use
    57 
    58 export SDL_DIRECTFB_WM=1
    59 
    60 to enable basic window borders. In order to have the window title rendered,
    61 you need to have the following font installed:
    62 
    63 /usr/share/fonts/truetype/freefont/FreeSans.ttf
    64 
    65 OPENGL Support
    66 ==============
    67 
    68 As of this writing 20070810 you need to pull Mesa from git and do the following:
    69 
    70 ------------------------
    71 cd mesa 
    72 make linux-directfb
    73 make
    74 
    75 echo Installing - please enter sudo pw.
    76 
    77 sudo make install INSTALL_DIR=/usr/local/dfb_GL
    78 cd src/mesa/drivers/directfb
    79 make
    80 sudo make install INSTALL_DIR=/usr/local/dfb_GL
    81 ------------------------
    82 
    83 To run the SDL - testprograms:
    84 
    85 export SDL_VIDEODRIVER=directfb
    86 export LD_LIBRARY_PATH=/usr/local/dfb_GL/lib
    87 export LD_PRELOAD=/usr/local/dfb_GL/libGL.so.7
    88 
    89 ./testgl