I was wondering if there was a fast way to effectively do 2D blts in D3D8 when there is no 3D acceleration present.
I found some tutorials on doing 2D graphics in DX8 and they all talked about doing it by texturemapping the source graphic to the target on a rectangular region difined by two triangles. I wrote a short program to just perform one "blt" per frame, and I the program ran at 0.3 frames per second.
Is there a faster way to do 2D graphics in DX8? Can I just get the back buffer surface from the Direct3DDevice, lock it, and then use my own blt functions to copy from another locked surface or texture to the back buffer? I haven''t written any code to see how fast this runs yet, but I was wondering if anyone knew if this technique would be fast (comparable to using DirectDraw7, which I am using in the meantime) on a computer with no 3D hardware.
Thanks,
Aeetes
Where''s my Golden Fleece?
D3D8: Fast 2D graphics with no 3D hardware
If that''s all you''re doing, then you might as well support a much lower DX version since I doubt 8 will give you any benefit. I don''t see much point in running DirectGraphics on a machine with no hardware acceleration.
The reason I ask is because I am in the process of writing a game application framework class library. I want my library to support doing both 2D and 3D graphics, making no assumptions about any sort of hardware being present (ignoring 3D when no 3D hardware is present).
So I figured it would be easier on me for sanity sake if I can have similar initialization code for both 2D and 3D graphics (i.e. using Direct3D8 for both 2D and 3D). For this reason, and because I didn''t really want to mix two versions of DirectX in the same library, I wanted to know about fast 2D in Direct3D8 when no 3D hardware is present.
Thanks,
Aeetes
Where''s my Golden Fleece?
So I figured it would be easier on me for sanity sake if I can have similar initialization code for both 2D and 3D graphics (i.e. using Direct3D8 for both 2D and 3D). For this reason, and because I didn''t really want to mix two versions of DirectX in the same library, I wanted to know about fast 2D in Direct3D8 when no 3D hardware is present.
Thanks,
Aeetes
Where''s my Golden Fleece?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement