my space war not working
hi i just downloaded XNA today and tried to run my space war example but i get an error saying: 'The method call is invalid'
it is highlighting the code:
public static void Init(Game game)
{
if (game != null)
{
IGraphicsDeviceService graphicsService = (IGraphicsDeviceService)game.Services.GetService(typeof(IGraphicsDeviceService));
if (batch == null)
batch = new SpriteBatch(graphicsService.GraphicsDevice);
}
}
this code is in Font.cs
what does this mean and how can i fix it?
ps i am new to C#
[656 byte] By [
yugbug9] at [2007-12-26]
Basically, what they're telling you is that you are getting that error because your current video card does not support the minimum shader requirements for XNA which is currently shader 2.0.
Many people are experiencing this with older or on board video cards. There's even a chance that if you played with only 2D graphics for Beta 1, that XNA was working for you but now doesn't. Again, this is just because the minimum requirements for XNA require shader 2.0 (and in beta 1 there was a bug that didn't check that for 2D graphics).
Go with one of Jim's recommendations, upgrade that card and you should be ready to start working on your game again.
Good luck!