using System;
using System.Collections.Generic;
using Sce.Pss.Core;
using Sce.Pss.Core.Environment;
using Sce.Pss.Core.Graphics;
using Sce.Pss.Core.Input;
using Sce.Pss.HighLevel.UI;
using System.Threading;
namespace TestTestTest
{
public class AppMain
{
private static GraphicsContext graphics;
public static void Main (string[] args)
{
Initialize ();
while (true) {
SystemEvents.CheckEvents ();
Update ();
Render ();
}
}
public static void Initialize ()
{
// Set up the graphics system
graphics = new GraphicsContext();
UISystem.Initialize(graphics);
ManualResetEvent mre = new ManualResetEvent(false);
mre.WaitOne();
Console.WriteLine("kokoni kitya dameyo");
var scene = new Scene();
UISystem.SetScene(scene);
}
public static void Update ()
{
// Query gamepad for current state
var gamePadData = GamePad.GetData (0);
List<TouchData> touchDataList = Touch.GetData (0);
UISystem.Update(touchDataList);
}
public static void Render ()
{
// Clear the screen
graphics.SetClearColor (0.0f, 0.0f, 0.0f, 0.0f);
graphics.Clear ();
UISystem.Render();
// Present the screen
graphics.SwapBuffers ();
}
}
}