예제 #1
0
    public MainWindow() : base(Gtk.WindowType.Toplevel)
    {
        Build();

        // Setup Emulator
        emulator = new CHIP8_Emulator.Chip8();
        emulator.Load("../../ROMS/PONG2");

        // Register our timer function
        hiResTimer.MicroTimerElapsed += new MicroTimer.MicroTimerElapsedEventHandler(hiResTick);
        hiResTimer.Enabled            = true;

        // Install drawing area
        da = new DrawingArea();
        Add(da);
        da.Show();

        // Setup drawing function
        da.ExposeEvent += ScreenExposeEvent;
    }
예제 #2
0
    public MainWindow()
        : base(Gtk.WindowType.Toplevel)
    {
        Build ();

        // Setup Emulator
        emulator = new CHIP8_Emulator.Chip8();
        emulator.Load("../../ROMS/PONG2");

        // Register our timer function
        hiResTimer.MicroTimerElapsed += new MicroTimer.MicroTimerElapsedEventHandler(hiResTick);
        hiResTimer.Enabled = true;

        // Install drawing area
        da = new DrawingArea();
        Add (da);
        da.Show();

        // Setup drawing function
        da.ExposeEvent += ScreenExposeEvent;
    }