README.ds
author Sam Lantinga <slouken@libsdl.org>
Sun, 13 Feb 2011 14:01:02 -0800
changeset 5289 1916a9e9714d
child 5423 b69fa50e80d7
permissions -rw-r--r--
Frank Zago to SDL

On 02/12/2011 01:44 PM, Sam Lantinga wrote:
> BTW, you probably want to nuke the NDS renderer and just implement these three
> functions instead:
> int (*CreateWindowFramebuffer) (_THIS, SDL_Window * window, Uint32 *
> format, void ** pixels, int *pitch);
> int (*UpdateWindowFramebuffer) (_THIS, SDL_Window * window, int numrects,
> SDL_Rect * rects);
> void (*DestroyWindowFramebuffer) (_THIS, SDL_Window * window);

Patch attached. The renderer for the DS is not used anymore, but I left the
file in place if someone wants to finish it.

I've also added a README.ds and fixed the spinlocks.
slouken@5289
     1
================================================================================
slouken@5289
     2
Simple DirectMedia Layer for Nintendo DS
slouken@5289
     3
================================================================================
slouken@5289
     4
slouken@5289
     5
-Requirements-
slouken@5289
     6
The devkitpro SDK available at http://devkitpro.org.
slouken@5289
     7
Read the information at http://devkitpro.org/wiki/Getting_Started/devkitARM
slouken@5289
     8
The necessary packages are devkitARM, libnds and default arm7.
slouken@5289
     9
slouken@5289
    10
-Building SDL-
slouken@5289
    11
After setting the devkitpro environment, type:
slouken@5289
    12
  make -f Makefile.ds
slouken@5289
    13
slouken@5289
    14
This will compile and install the library and headers into the proper libnds directories.
slouken@5289
    15
Additionnaly it will compile the general test, that you can run either on the DS or with desmume:
slouken@5289
    16
  desmume test/nds-test-progs/general/general.nds
slouken@5289
    17
slouken@5289
    18
slouken@5289
    19
Note that the port is very basic and incomplete.