GFX with SDL Lesson 1: Getting started with SDL(翻译)[11]

[入库:2005年8月19日] [更新:2007年3月24日]

本文简介:选择自 heroboy2000 的 blog

  return 1;

}

如果出错了,sdl_geterror()函数返回一个字符串来描述这个错误。

但退出程序时,你必须调用sdl_quit()。如果没有调用的话,可能会出现一些异常的现象。告诉编译器你要在退出时调用sdl_quit,代码如下:

atexit(sdl_quit);

本文关键:GFX with SDL Lesson 1: Getting started with SDL(翻译)
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top