Click to See Complete Forum and Search --> : Rotating In BitBlt
SteveCRM
Apr 20th, 2000, 05:35 AM
All right, I know a little (I mean LITTLE) BitBlt. And I was wondering how I would rotate a picture in bitblt. I can make it move, but I want it to rotate when I press the side arrows, and go in that direction when I press up. In all, I want to make an asteroids clone in BitBlt. Thanks.
[Edited by SteveCRM on 04-20-2000 at 06:36 PM]
Fox
Apr 20th, 2000, 06:44 AM
There's no function like BitBlt which would that make. And if there were one I don't know it would be very slow...
I think you're going to) use DirectDraw which is much faster or) have some pre-rotated pictures in memory which you draw like animations. Second way is as fast as BitBlt (because it *is* BitBlt and nothing more) but you waste as more memory as you have rotation steps.
KENNNY
Apr 20th, 2000, 06:43 PM
problem is, rotation in DirectDraw isn't supported on many video cards :( To do proper, fast rotation, you'd have to use Direct3d (urghhh) :)
I'd use the pre-rotated method as Fox says.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.