最終更新:2012-12-29 (土) 19:16:50 (4133d)  

SDL/Mac OS X
Top / SDL / Mac OS X

ダウンロード

http://www.libsdl.org/download-1.2.php

インストール

  • runtime
    • SDL.framework を /Library/Frameworks にコピー
  • development
    • SDL-devel-extras.dmg/Documentation/docs/XcodeDocSet?/org.libsdl.sdl.docset を /Library/Developer/Shared/Documentation/DocSets? にコピー
      • Snow Leopardでポップアップを出したいときはOption-Double-Click
      • 対応した形式のドキュメントにすると1.6GBになるらしい
    • テンプレートを/Library/Application Support/Developer/Shared/Xcode/Project Templates/Applicationにコピー

エントリポイント

To compile an SDL based application on OS X, SDLMain.m must be compiled into your program.

  • 1. You must include either SDLMain.m/.h or libSDLmain in your application, because this is the code that defines SDL's entry point. (中略)
  • 2. You must give your main() procedure the following prototype:
int main(int argc, char*argv[]);

http://d.hatena.ne.jp/hiratara/20080719/1216481600

チュートリアル

関連