摘要: 1 void drawLine(int x1,int y1,int x2,int y2,UINT color) 2 { 3 int dx = x2 - x1; 4 int dy = y2 - y1; 5 int ux = ((dx > 0) 0) dy) 16 { 17 for (x = x1;x != x2 + ux;x += ux... 阅读全文
posted @ 2016-04-29 15:57 luozhifu 阅读(214) 评论(0) 推荐(0) 编辑
摘要: SDL2是跨平台的图形库,在windows上使用的是directx的surface来实现的,surface可以用来开发视频播放之类的。 贴代码. 阅读全文
posted @ 2016-04-29 11:05 luozhifu 阅读(536) 评论(0) 推荐(0) 编辑