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

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

本文简介:选择自 heroboy2000 的 blog

那样就不需要在main函数中的每个return前加上sdl_quit()了。

sdl中需要很多的surface。一切都是surface。你可以在surface上绘图,也可以把一个surface画到另一个surface上。在sdl中,屏幕也是一个surface。在我们的程序中surface是一个指向sdl_surface结构的指针。如下得到屏幕surface

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

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

go top