Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a Blt function in DirectX 8 Graphics?

Status
Not open for further replies.

apatterno

Programmer
Nov 26, 2002
368
US
One of the most powerful and frequently used functions of DirectDraw 7 (or an earlier version) was
Code:
IDirectDrawSurface7::Blt
. Now DirectX 8 has combined the DirectDraw and Direct3D components into one, and it seems as though the 2D graphics capabilities of DirectDraw have been lost.

I have already heard of the
Code:
IDirect3DDevice8::CopyRects
function, and I'm really not impressed. That function provides only the most basic abilities of the old
Code:
Blt
function. I am specifically looking for the capability to blit with scaling and color keys. Does anyone know where a function like this can be found?

OR, do you think it would be possible to use the old
Code:
IDirectDrawSurface7
interface instead of
Code:
IDirect3DSurface8
? If so, then how would I obtain a pointer to it?

Help would be helpful. Thanks!
 
Hi,

I'm just a beginner with DirectX, but as far as I know, you still can use your DirectDraw7 interface with DirectX 8. just query it as you did before,
with the IDirectDraw7::CreateSurface function.

hope this helps and I haven't written anything wrong. :)

Nights.
 
Yes, you're absolutely right, I guess I should have made myself more clear, in that I wanted to be able to use both 3D and 2D features.

But anyway, I found an answer in a forum on a different website --

[tt]SomeOtherGuy
New Member
USA
56 Posts
Posted - 01/15/2003 : 06:34:48 AM
-------------------------------------------

Since ms removed ddraw from dx8, you now have to do pretty much everything in 3d. so instead of blt, you draw a textured quad. if you want color keying, you now do that with alpha blending. I would suggest creating a wrapper class for doing 2d ops so you dont have to mess with it more than once. Here are some articles that should be of help...

-requires registration
[/tt]


Happy gaming.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top