Win32 C ++或MFC Sprite动画 [英] Win32 C++ or MFC Sprite Animation

查看:148
本文介绍了Win32 C ++或MFC Sprite动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我需要带 win32 mfc 样本的bitblt样本.我将使用黑白蒙版方法制作Sprite Sheet动画.请帮助我,我需要非常基础的蒙版和animationg示例.
谢谢

PS:我在vb6中使用了bitblt(srcand-sr​​ccopy),但是我需要c ++版本的sample

Hello I need bitblt sample with win32 or mfc sample. I will make sprite sheet animation with black-white masking metod. Please help me, I need very very basic masking and animationg sample.
thanks

PS: I was used bitblt with vb6 (srcand - srccopy) but I need c++ version sample

推荐答案

MFC和bitblt:
使用MFC方法绘制无闪烁的图形 [ ^ ]
MFC and bitblt:
Do a flicker-free drawing using MFC methods[^]


使用哪个应用程序框架(MFC或Win32)都没有关系

您将不得不使用Win32来进行精灵渲染和动画处理.是的,您可以使用一些MFC包装器(CDC,GDI +,...),但是所有这些都归结为Win32.

如果知道如何在VB中使用BitBlt,那么您应该可以在C/C ++ Windows应用程序中使用它,只需在Google上找到"bitblt c ++ mfc windows win32示例示例",就会发现大量相关建议.

祝你好运.

最多
It does not matter which application framework you use (MFC or Win32)

You will have to go down to Win32 to do that sprite rendering and animation; yes, you could use some of the MFC wrappers (CDC, GDI+, ... ), but it all come down to Win32.

If know how to use BitBlt with VB, then you should be able to use it in a C/C++ windows application, just google "bitblt c++ mfc windows win32 sample example" and you will find tons of relevant suggestions.

Good luck.

Max.


这篇关于Win32 C ++或MFC Sprite动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆