\r\n \r\n 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.
\r\n
\r\n
Quote:
\r\n
\r\n \r\n | \r\n \r\n sprite.Begin(SpriteFlags.AlphaBlend)\r\n \r\n | \r\n
\r\n
\r\n
The errors are:
\r\n
\r\n
Quote:
\r\n
\r\n \r\n \r\n \r\n E:\\Prog\\Visual Studio Projects\\C# Projects\\DXTest1\\Form1.cs(104): \r\nThe type or namespace name \'SpriteFlags\' could not \r\nbe found (are you missing a using directive or an assembly reference?) \r\nE:\\Prog\\Visual Studio Projects\\C# Projects\\DXTest1\\Form1.cs(204): \r\nNo overload for method \'Draw\' takes \'5\' arguments\r\n \r\n | \r\n
\r\n
\r\n
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.
\r\n
MSDN says:
\r\nNamespace Microsoft.DirectX.Direct3D
\r\nAssembly Microsoft.DirectX.Direct3DX (Microsoft.DirectX.Direct3DX.dll)
\r\n
\r\nWhich I\'ve included. Has anyone else run into this or know what is wrong? I\'m stumped.\r\n