0
|
1 # About SDL (Simple Direct Media Layer)
|
|
2
|
|
3 SDL's homepage is [[here:http://www.libsdl.org/index.php]]
|
|
4
|
|
5 Simple Direct media Layer の略だそうです.
|
|
6 フリーの multimedia library としては有名で、
|
|
7 エミュレータなどがこれで開発されているようです。
|
|
8 昔は2D 専用だったようですが、今は OpenGL (mesa)をサポートします。
|
|
9
|
|
10 # About study of SDL
|
|
11
|
|
12 SDL を勉強するなら [[SLD本家:http://www.libsdl.org/index.php]]の
|
|
13 Documentationの[[Doc Project:http://sdldoc.csn.ul.ie/]]が役に立ちます。
|
|
14
|
|
15 章の構成は、まずソースコードの一部分づつを挙げ、それについて解説し、
|
|
16 章の最後で全体のソースを紹介し解説しています。手取り足取りという感じで
|
|
17 英語も非常に分かりやすいレベルでかかれています。
|
|
18
|
|
19 [[Doc Project:http://sdldoc.csn.ul.ie/]] は 同ページのDownload の項目
|
|
20 を探せば tar書庫が 手に入ります。
|
|
21
|
|
22 # Example
|
|
23
|
|
24 CVS repository for applications using SDL is...
|
|
25
|
|
26 ```
|
|
27 Game_project/sdl/...
|
|
28 ```
|
|
29
|
|
30 If you running a browser on a PC in C.R. lab, you can access C.R. CVS repository
|
|
31 at [[here:http://www.cr.ie.u-ryukyu.ac.jp/internal/viewcvs.cgi/]].
|
|
32
|
|
33 # Compile (Mac OS X)
|
|
34
|
|
35 [[ここ:http://www.libsdl.org/index.php]]からSource Code を入手し、展開されたディレクリに移動して以下のコマンドを実行したらできます。
|
|
36
|
|
37 ```
|
|
38 cofigure
|
|
39 make
|
|
40 sudo make install
|
|
41 ```
|
|
42
|
|
43 もしmake でエラーが出た場合はX11 が正しくinstall されていない可能性があるので、X11 を入れなおすかMakefile のPATH を書き換える必要があります。
|
|
44
|
|
45 # include(SDL関連リンク)
|