一栗研究/SDL

出自Luzi82_wiki

跳轉到: 導航, 搜索

目錄

[編輯] What is it

  • A library to create game.

[編輯] Reference

[編輯] My pages in SDL wiki

I think that would be much better to put all I have discovered into the offical wiki.

[編輯] Limitation Found

  • Image scaling and rotation is not provided. OpenGL or other method are required to perform the task.
  • Lack of basic graphic drawing, such as line drawing and shape drawing. The only thing it provided is Rectangle filling.

[編輯] Samples

The following software is required to obtain the demos.
Subversion ( SVN )
The following platforms can be used to compile the code.
Win32 ( VC++.NET or VC++ Toolkit 2k3 )
Linux
Cygwin
MinGW
Obtains the code by SVN, and compile them using the compile.bat ( Win32 ) or compile.sh ( Linux, Cygwin, MinGW ).
  • svn://luzi82.homeip.net/wings/sample/SDL_BasicCompile
    Simple SDL apps compile demo.
  • svn://luzi82.homeip.net/wings/sample/SDL_BasicWindow
    Create an empty screen.
  • svn://luzi82.homeip.net/wings/sample/SDL_BasicFPSWindow
    Improve the reload time, show how is the frame ticks and event ticks works.
  • svn://luzi82.homeip.net/wings/sample/SDL_BasicRectDraw
    Draw a moving rectangle on the screen.
  • svn://luzi82.homeip.net/wings/sample/SDL_BasicImage
    Draw a moving image on the screen.
    The image may contains alpha value.
    SDL_image is required.
  • svn://luzi82.homeip.net/wings/sample/SDL_BasicKeyEvent
    Use arrow keys to move the white square.
  • svn://luzi82.homeip.net/wings/sample/SDL_GameDodge
    Use arrow keys to dodge the bullet.
  • svn://luzi82.homeip.net/wings/sample/SDL_BasicMouseEvent
    Read the mouse event and print to stdout.
  • svn://luzi82.homeip.net/wings/sample/SDL_BasicOgg
    Playing ogg audio file.
  • svn://luzi82.homeip.net/wings/sample/SDL_BasicGamepad
    Access the gamepad.
  • svn://luzi82.homeip.net/wings/sample/SDL_OpenGL
    Using OpenGL.
  • svn://luzi82.homeip.net/wings/sample/SDL_OpenGL_Image
    Using OpenGL with image loading and mipmap processing.
    SDL_image is required.
    MipMapExample
TODO
Use script files for compiling.
Play Movie
Using WHND in Win32
Create screensaver

[編輯] Further Planning

  • To create a Chinese Checker Application, for Linux and Win32.
  • To create games, for Linux and Win32.
  • Explore the potential of using it in Symbian OS.