I'm working with a bit of XNA code, as a beginner. So i use this tutorial, but it appears that i am doing something and i do not know why.
http://www.xnadevelopment.com/tutorials/theroadnottaken/theroadnottaken.shtml
I am at the part with Path collision, and this is how my code is written!
mTrackRender = new RenderTarget2D(graphics.GraphicsDevice, mCarWidth + 100,
mCarHeight + 100, 1, SurfaceFormat.Color,DepthFormat.Depth24);
mTrackRenderRotated = new RenderTarget2D(graphics.GraphicsDevice, mCarWidth + 100,
mCarHeight + 100, 1);
I have declared mTrackREnder, and mTrackREnderRotated has objects at class level.
Well, what the issue ism i get this error for both of them:
Error 3 'Microsoft.Xna.Framework.Graphics.RenderTarget2D' does not contain a constructor that takes 4 arguments'
What am i doing wrong? How can i resolve this issue?