Having problems with riemers Tutorial

Last post 04-20-2008, 11:38 AM by Classicwarrior. 2 replies.
Sort Posts: Previous Next
  •  04-20-2008, 2:41 AM

    Having problems with riemers Tutorial

    I know he wrote the tutorial for the old version of XNA and i get the (2.0) version,but i know enough to change Contentmanager back to

    Content.RootDirectory = "Content";

     

    But it still shoots errors on these lines:

    terrainVertexBuffer = new VertexBuffer(device, VertexPositionNormalColored.SizeInBytes * WIDTH * HEIGHT, ResourceUsage.WriteOnly, ResourceManagementMode.Automatic);

    and

    terrainIndexBuffer = new IndexBuffer(device, typeof(int), (WIDTH - 1) * (HEIGHT - 1) * 6, ResourceUsage.WriteOnly, ResourceManagementMode.Automatic);

    How would i fix this?? plz help!! the red ones are what is shooting errors for me...


    Up and comming programmer... < far form comming >
  •  04-20-2008, 2:48 AM

    Re: Having problems with riemers Tutorial

    The constructors changed between 1.0 and 2.0. You'll want to fix them to match the new 2.0 declarations. You can find the constructors for each at these links:

    IndexBuffer Constructors

    VertexBuffer Constructors


    Nick Gravelyn -- Microsoft XNA MVP
    XNA Wiki | Zune Games
  •  04-20-2008, 11:38 AM

    Re: Having problems with riemers Tutorial

    thanks nick you always give a good answer... and btw i would like to see a 3D tutorial out of ya... lol
    Up and comming programmer... < far form comming >
View as RSS news feed in XML
©2007 Microsoft Corporation. All rights reserved. Privacy Statement Terms of Use Code of Conduct Feedback