C# directx 2d

J

Jack Nielsen

Does anyone have a link to Visual Studio 2005 directcx 2d sprite
manipulation or just simple graphics with directx 2d.

Jack
 
M

MrAsm

On Tue, 24 Oct 2006 18:28:16 +0200, "Jack Nielsen" <no_spam
Does anyone have a link to Visual Studio 2005 directcx 2d sprite
manipulation or just simple graphics with directx 2d.

You could try this:

<http://tinyurl.com/y6dq3f>

It shows how to use DirectDraw7 with C#.

DirectDraw7 came with DirectX 7; DirectX 5,6,7 had separate
"components" (i.e. COM interfaces) for 2D graphics (they were called
"DirectDraw") and for 3D graphics (Direct3D).

With DirectX 8 and 9 there is a single component for graphics, called
DirectGraphics (no more DirectDraw). It manages mainly 3D, and 2D can
be "emulated" using this component and some tricks (e.g. using
textures, etc.).

IMHO, for a beginner, if what you want is a simple 2D sprite animation
using blitting with color-key, DirectDraw is OK (and DirectGraphics
would be too complicated).

If you plan to add features like alpha blending, sprite rotation,
scaling, etc. maybe you could invest some time in learning
DirectGraphics, so you can use 3D hardware acceleration for these
special effects.

Mr.Asm
 
E

Eric

MrAsm said:
With DirectX 8 and 9 there is a single component for graphics, called
DirectGraphics (no more DirectDraw). ....
IMHO, for a beginner, if what you want is a simple 2D sprite animation
using blitting with color-key, DirectDraw is OK (and DirectGraphics
would be too complicated).

Are you saying the older style DirectDraw calls still work on new
versions of DirectX, but they want us to use DrectGraphics instead?

Or, are you saying that we must use DirectGraphics if our computer has
a newer version of DirectX?

Eric
 
M

MrAsm

Are you saying the older style DirectDraw calls still work on new
versions of DirectX, but they want us to use DrectGraphics instead?

Yes, older style DirectDraw calls still work!
DirectGraphics is completely different from DirectDraw, but they live
"side by side" in the system.
Or, are you saying that we must use DirectGraphics if our computer has
a newer version of DirectX?

No, I have DirectX 9 drivers but old DirectDraw works :)
 
M

Miha Markic [MVP C#]

Hi Jack,

You should look into DirectX 3D stuff (there is managed wrapper out there)
as DirectDraw is way less capable.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top