Hi,
when I try to start a simple Test with Linux, written in C# and
monoxna, I get an error like this:
** (UniTTT.TestXNA.exe:3844): WARNING **: The class
System.Collections.ObjectModel.Collection`1 could not be loaded, used
in mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
My Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
namespace UniTTT.TestXNA
{
public class Game1 : Game
{
SpriteBatch spriteBatch;
Texture2D tex;
GraphicsDeviceManager graphics;
public Game1()
{
graphics = new GraphicsDeviceManager(this);
}
protected override void Initialize()
{
spriteBatch = new SpriteBatch(base.GraphicsDevice);
tex = new Texture2D(GraphicsDevice, 2, 2);
tex.SetData<Color>(new Color[] { Color.White });
base.Initialize();
}
protected override void Draw(GameTime gameTime)
{
spriteBatch.Begin();
spriteBatch.Draw(tex, new Rectangle(0, 0, 500, 500),
Color.Red);
spriteBatch.End();
base.Draw(gameTime);
}
}
The Output should be something like this (screenshoot form Windows):
http://dl.dropbox.com/u/46071056/UniTTT.TestXNA_Output.PNG
How can I solve the problem?
best greetings
Postremus