XNA Creators Club Online
Page 1 of 1 (3 items)
Sort Posts: Previous Next

Having problems with riemers Tutorial

Last post 04-20-2008 11:38 AM by Classicwarrior. 2 replies.
  • 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 > but getting better though...
  • 04-20-2008 2:48 AM In reply to

    Re: Having problems with riemers Tutorial

    Answer
    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
    Blog | The Best Game. Ever. | Next-Gen
  • 04-20-2008 11:38 AM In reply to

    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 > but getting better though...
Page 1 of 1 (3 items) Previous Next
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG