posts - 17,  comments - 226,  trackbacks - 1
<2010年3月>
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910

留言簿(0)

随笔档案

文章档案

搜索

最新评论

  • 1. sfwwbnwi
  • --sfwwbnwi
  • 2. re: 2D游戏碰撞检测之我见
  • 有想法是不错,可惜有错误。如果子弹速度很快,在2帧之间距离大,直接跳过了阻挡体,怎么办?
  • --cc
  • 3. clopidogrel
  • Human beings have an inalienable right to invent themselves.
  • --clopidogrel
  • 4. lipitor nargol liege
  • Patriotism is your conviction that this country is superior to all other countries because you were born in it.
  • --lipitor nargol liege
  • 5. calan
  • Never eat more than you can lift.
  • --calan
  • 6. diamox
  • The most beautiful adventures are not those we go to seek.
  • --diamox
  • 7. xanax side effects
  • Keep cool and you command everybody.
  • --xanax side effects
  • 8. vjgqqmqm
  • --vjgqqmqm
  • 9. ampicillin
  • When you encounter difficulties and contradictions, do not try to break them, but bend them with gentleness and time.
  • --ampicillin
  • 10. valium
  • A large income is the best recipe for happiness I ever heard of.
  • --valium

阅读排行榜

评论排行榜

  今天终于把DirectDraw7的模块写完了,其实功能并不是很多,主要是DirectDraw7的初始化、从文件中读取图像并加载到离屏表面、提供窗口模式和全屏模式的flip操作,并封装了我原来用MMX写的32位图像的Alpha混合、模糊、颜色叠加等方法。但比起原来写的DDraw程序,最大的进步就是这次我重视了错误的捕获和报告,使得这个模块尽可能地健壮。

  由于使用了IPicture接口,加载jpg、gif等格式的文件统统不是问题,用起来相当爽。刚才测试了一下,1024*768*32的全屏Alpha混合能到四十多的fps,我个人感觉相当不错了。将来可能还会加上一个读取已经加载到内存中的图像文件的功能。

  接下来我想写一个能处理声音的模块,要求能够播放一首背景音乐,同时能加上音效,能控制音量,支持尽可能多的文件格式。我个人觉得用DSound的话有点大材小用,程序也不大好写,但是Windows下面的API好像功能有点不足,不知道如何是好,希望大家给一点建议。

posted on 2006-07-14 17:08 一个咸蛋的唠叨 阅读(4493) 评论(9)  编辑 收藏
标题  
姓名  
主页
验证码 *
内容   
  登录  使用高级评论  Top
[使用Ctrl+Enter键可以直接提交]