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

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

本文简介:选择自 heroboy2000 的 blog

我的建议是:使用 sdl_hwsurface|sdl_doublebuf。如果出错的话,使用sdl_swsurface.

sdl_setvideomode
返回指向sdl_surface的指针,出错的话返回null。使用如下代码检测出错:

if ( screen == null )

{

  printf("unable to set 640x480 video: %s\n", sdl_geterror());

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

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

go top