README.PS3
author Sunny Sachanandani <sunnysachanandani@gmail.com>
Fri, 09 Jul 2010 21:36:41 +0530
changeset 4590 1ad70fb49fcb
parent 3257 94fb40a4a9a7
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.
slouken@3257
     1
slouken@3257
     2
SDL on Sony Playstation3
slouken@3257
     3
------------------------
slouken@3257
     4
slouken@3257
     5
Installation:
slouken@3257
     6
  First, you have to install the Cell SDK
slouken@3257
     7
  - Download the Cell SDK installer RPM and ISO images to
slouken@3257
     8
    a temporary directory such as /tmp/cellsdk.
slouken@3257
     9
  - Mount the image: mount -o loop CellSDK-Devel-Fedora_3.1.0.0.0.iso /tmp/cellsdk
slouken@3257
    10
  - Install the SDK installer: rpm -ivh cell-install-3.1.0-0.0.noarch.rpm
slouken@3257
    11
  - Install the SDK: cd /opt/cell && ./cellsdk --iso /tmp/cellsdkiso install
slouken@3257
    12
slouken@3257
    13
  You'll than need to install the SPU-libs
slouken@3257
    14
  - Run make ps3-libs && make ps3libs-install
slouken@3257
    15
slouken@3257
    16
  Finally, install SDL
slouken@3257
    17
  - Go to SDL-1.2/ and build SDL like any other GNU style package.
slouken@3257
    18
  e.g.
slouken@3257
    19
    - Build the configure-script with ./autogen.sh
slouken@3257
    20
    - Configure SDL for your needs: ./configure --enable-video-ps3 ...
slouken@3257
    21
    - Build and install it: make && make install
slouken@3257
    22
slouken@3257
    23
slouken@3257
    24
Todo:
slouken@3257
    25
  - Mouse & Keyboard support
slouken@3257
    26
  - On SPU-side the current scaler and converter restrictions are:
slouken@3257
    27
    - resolution has to be a multiple of 8 (will work on that)
slouken@3257
    28
    - scaler/converter only supports the YV12 and IYUV format
slouken@3257
    29
    - the scaler works only bilinear (lanzos would be nice)
slouken@3257
    30
  - Optimize the SPU-program handling on the PPE side
slouken@3257
    31
  - Integrate spumedia in SDL
slouken@3257
    32
slouken@3257
    33
Have fun!
slouken@3257
    34
  Dirk Herrendoerfer <d.herrendoerfer [at] de [dot ibm [dot] com>
slouken@3257
    35