I'm attempting to run code from the book Managed DirectX 9 and seem to have run into a problem on the chapter where the author discussed using sprites.
The errors are:
MSDN says:
Namespace Microsoft.DirectX.Direct3D
Assembly Microsoft.DirectX.Direct3DX (Microsoft.DirectX.Direct3DX.dll)
Which I've included. Has anyone else run into this or know what is wrong? I'm stumped.
sprite.Begin(SpriteFlags.AlphaBlend)
The errors are:
I can probably figure out the Draw function given the MSDN, but for the life of me I can't seem to see my error.E:\Prog\Visual Studio Projects\C# Projects\DXTest1\Form1.cs(104):
The type or namespace name 'SpriteFlags' could not
be found (are you missing a using directive or an assembly reference?)
E:\Prog\Visual Studio Projects\C# Projects\DXTest1\Form1.cs(204):
No overload for method 'Draw' takes '5' arguments
MSDN says:
Namespace Microsoft.DirectX.Direct3D
Assembly Microsoft.DirectX.Direct3DX (Microsoft.DirectX.Direct3DX.dll)
Which I've included. Has anyone else run into this or know what is wrong? I'm stumped.