README.DirectFB
author Holmes Futrell
Fri, 15 Aug 2008 00:46:58 +0000
branchgsoc2008_iphone
changeset 2427 32b9909db651
parent 2226 0e70b4b8cf84
child 2791 8133d1d278da
permissions -rw-r--r--
changed macro MAX_G_FORCE to SDL_IPHONE_MAX_GFORCE and moved it to the SDL_config_iphoneos.h file. This should allow users to convert between the Sint16 returned by polling the joystick and units of g-force, which better describe what is going on with the iPhone (and are what the iPhone OS actually gives you). This conversion wouldn't be necessary except that we'd need floating point to store everything as g-force.
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