文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>SDL in Eclipse

SDL in Eclipse

时间:2006-05-26  来源:whtonline

Setting up SDL in Eclipse

Last Updated 3/25/06

First thing you need to do is download SDL headers and binaries.
You will find them on the SDL website, specifically on this page.

Scroll Down to the Development Libraries section and download the Linux development library:

Now run the RPM and let it do it's thing.

Now start a new managed make project:

After you've named your project and everything go to project properties:

Go to the C/C++ Build menu, then the Libraries submenu. In the Libraries submenu click add.

Then paste

SDL
and click ok.


Add a new source file to your project and paste the following code into it:
#include "SDL/SDL.h" int main( int argc, char* args[] ) { //Start SDL SDL_Init( SDL_INIT_EVERYTHING ); //Quit SDL SDL_Quit(); return 0; } Now save and compile your project and you're done. The RPM also installed the SDL documentation on your computer. It should be at usr/doc/SDL-devel-1.2.9/index.html.

Bookmark it and keep it handy for reference.
相关阅读 更多 +
排行榜 更多 +
僵尸运行3d城市逃生

僵尸运行3d城市逃生

冒险解谜 下载
顶尖猎人罗迪和凯茜

顶尖猎人罗迪和凯茜

冒险解谜 下载
火柴人飞爪忍者

火柴人飞爪忍者

冒险解谜 下载