Advertisement

Rotating Bitmaps Loaded in DRAWSURFACE

Started by September 19, 2000 06:27 AM
5 comments, last by Dukez 24 years, 3 months ago
Need a fast algorithm of Bitmap Rotation, mine uses GetDC(), PutPixel() and GetPixel() but is a bit to slow. Does smbdy know a fast algorithm that would uses memory block copy ? Bitmaps are loaded on DIRECTDRAWSURFACES. Please, post me answers to shinma@caramail.com
Are you using Directdraw at all?
In that case use bltFX with the DDBLTFX object
specifically rotationAngle

ZoomBoy
Developing a 2D RPG with skills, weapons, and adventure.
See my character editor, old Hex-Tile editor, diary, 3D Art resources at
Check out my web-site
Advertisement
Look up directx transforms. There is stuff in there for lots of cool 2D bitmap manipulation, and i know that rotation is one of them. Check it out in the SDK.

Possibility
Use IDirectDrawSurface::Lock() and IDirectDrawSurface::Unlock().

------------------------------
#pragma twice


sharewaregames.20m.com

Are you using Directdraw at all?
In that case use bltFX with the DDBLTFX object
specifically rotationAngle


this is not supported in software. This will only work if your video card supports it. And most video cards dont.
It doesn''t emulate it, like with most other DD stuff not supported by hardware? I can''t think the overheads would be too great.

-Charles "MrBlonde" Palmer
=========================
mrblonde@stomped.com
S T O M P E D
-Charles "MrBlonde" Palmer ========================= mrblonde@stomped.com S T O M P E D
Advertisement
I''m rotating sprites,

But since ddraw only supports it in hardware I wrote and algorithm instead. If you are using surfaces in ddraw, when you use the lock method you can get a pointer to that surface from the DDSURFACEDESC struct. It is linear, and you can find all of this on the DX homepage. I use it and it works fine.

a.h{text-decoration:none;color:blue;};a.h:hover{text-decoration:underline;background:red;};

Snootchie Bootchies!

-=CF=-
a.h{text-decoration:none;color:blue;};a.h:hover{text-decoration:underline;background:red;};

Why is it called a hot water heater? Isn't it cold when it goes in the tank?

[email=jtaylor@gtemail.net" class="h]-=CF=-[/email]

This topic is closed to new replies.

Advertisement