\r\n\r\n
DirectX Topics include: Managed DirectX (DX9)

Go Back  Xtreme .NET Talk > .NET > Graphics and Multimedia > DirectX > SpriteFlags in D3D (C#)


\r\n \r\n \r\n \r\n
 
 
Thread Tools Display Modes
\r\n \r\n
\r\n
\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
\r\n \r\n sprite.Begin(SpriteFlags.AlphaBlend)\r\n \r\n
\r\n
The errors are:
\r\n
\r\n
Quote:
\r\n \r\n \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
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\nMSDN 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
\r\n
\r\n \r\n
\r\n \r\n\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n
\r\n \r\n \r\n \r\n \r\n Reply With Quote\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n'; pd[405401] = '\r\n\r\n \r\n\r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n\r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n \r\n \r\n\r\n
\r\n
\r\n  \r\n #2  \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n
\r\n \r\n Old\r\n \r\n 02-14-2004, 03:23 PM\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n
\r\n \r\n LDV\r\n LDV is offline\r\n\r\n\r\n
\r\n \r\n
\r\n
\r\n \r\n Do you have to use VS 2003?\r\n
\r\n
\r\n \r\n
\r\n \r\n\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n
\r\n \r\n \r\n \r\n \r\n Reply With Quote\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n'; pd[405416] = '\r\n\r\n \r\n\r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n\r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n \r\n
\r\n
\r\n  \r\n #4  \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n
\r\n \r\n Old\r\n \r\n 02-14-2004, 07:58 PM\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n
\r\n \r\n slantz\r\n slantz is offline\r\n\r\n\r\n
Prev Previous Post   Next Post Next
  #1  
Old 02-13-2004, 02:26 PM
woodsman woodsman is offline
Newcomer

Preferred language:
C#
 
Join Date: Feb 2004
Posts: 3
woodsman is on a distinguished road
Default SpriteFlags in D3D (C#)

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.
Quote:
sprite.Begin(SpriteFlags.AlphaBlend)
The errors are:
Quote:
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
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.
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.
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SpriteFlags.DoNotModifyRenderState - Rendering stops dead... =/ Estauns DirectX 0 06-22-2005 02:19 PM
Examples of 2d in D3D Classes Mykre DirectX 31 09-28-2004 05:11 PM
screenshots in d3d ThePentiumGuy DirectX 5 03-12-2004 09:13 PM
D3D Camera Chamma DirectX 2 09-24-2003 07:35 AM
D3d Drawing 2d objects Kesper DirectX 2 02-05-2003 01:56 AM

Advertisement:

Powered by liquidweb