All pastes #155330 Raw Edit

Stuff

public text v1 · immutable
#155330 ·published 2006-08-31 00:10 UTC
rendered paste body
public class SampleGame : Game
{
    private GraphicsComponent graphics;

    public SampleGame()
    {
        this.graphics = new GraphicsComponent();
        this.GameComponents.Add(graphics);
    }

    protected override void Update()
    {
    }

    protected override void Draw()
    {
        this.graphics.GraphicsDevice.Clear(Color.Blue);
        this.graphics.GraphicsDevice.Present();
    }

    static void Main(string[] args)
    {
        using (SampleGame game = new SampleGame())
        {
            game.Run();
        }
    }
}