Hello,
You probably remember me because of that stupid question ( DX10 on DX9 gpu).
Anyway I decided to try XNA (I am not a game developer so I think I dont need to know DX10 for beginning.
So I've learned some C# basics and started with XNA.
I have choosed "New game project" and I got the basic code and assembly configuration provided by C# Express. (very cool feature).
So, I folowed a tutorial (mostly) and edited code on style I like (variable names and spaccing).
Now when I try to compile I get a compiler error:
Error 1 'Microsoft.Xna.Framework.GraphicsDeviceManager' does not contain a definition for 'VertexDeclaration' C:\Users\jan\Documents\Visual Studio 2005\Projects\WindowsGame1\WindowsGame1\Game1.cs 133 22 WindowsGame1
Error 2 The best overloaded method match for 'Microsoft.Xna.Framework.Graphics.VertexDeclaration.VertexDeclaration(Microsoft.Xna.Framework.Graphics.GraphicsDevice, Microsoft.Xna.Framework.Graphics.VertexElement[])' has some invalid arguments C:\Users\jan\Documents\Visual Studio 2005\Projects\WindowsGame1\WindowsGame1\Game1.cs 133 42 WindowsGame1
Error 3 Argument '1': cannot convert from 'Microsoft.Xna.Framework.GraphicsDeviceManager' to 'Microsoft.Xna.Framework.Graphics.GraphicsDevice' C:\Users\jan\Documents\Visual Studio 2005\Projects\WindowsGame1\WindowsGame1\Game1.cs 133 64 WindowsGame1
Error 4 'Microsoft.Xna.Framework.GraphicsDeviceManager' does not contain a definition for 'DrawUserPrimitives' C:\Users\jan\Documents\Visual Studio 2005\Projects\WindowsGame1\WindowsGame1\Game1.cs 134 20 WindowsGame1
The following lines are underlined:
graphics.VertexDeclaration = new VertexDeclaration(graphics, VertexPositionColor.VertexElements);
graphics.DrawUserPrimitives(PrimitiveType.TriangleList, vertices, 0, 1);
Hope you guys can help me :)