Home - lucasvra/Monogame.Processing GitHub Wiki
To create a new sketch, it is necessary to create a class that inherits Processing
public class Sketch : Processing
{
public override void Setup()
{
// setup() code goes here
}
public override void Draw()
{
// draw() code goes here
}
}
To run the sketch, it is necessary to use the Run method and the entry point of the program must have the attirbute STAThread
[STAThread]
static void Main()
{
using (var game = new Sketch()) game.Run();
}