public static void Main(string[] args) { //Initialize (); GraphicsContext graphics = new GraphicsContext(); UISystem.Initialize(graphics); window = new HighScoreApp.MainWindow(); UISystem.SetScene(window); socket = new Sockets(); while (true) { SystemEvents.CheckEvents(); List<TouchData> touchData = Touch.GetData(0); UISystem.Update (touchData); Update (); graphics.SetViewport(0, 0, graphics.Screen.Width, graphics.Screen.Height); graphics.SetClearColor(new Vector4(0,0,0,1)); graphics.SetClearDepth(1.0f); graphics.Clear(); UISystem.Render (); graphics.SwapBuffers(); } }