On Tue, 24 Oct 2006 18:28:16 +0200, "Jack Nielsen" <no_spam
ja**********@get2net.dkwrote:
>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