Ejemplo n.º 1
0
        protected override unsafe void UpdateBefore()
        {
            if (Emu == null)
            {
                return;
            }

            using ((_view = Emu.UpdateVDPViewContext()).EnterExit())
            {
                int *pal = (int *)_view.ColorCache;
                DrawPalettes(pal);
                DrawTiles();
                ushort *vramNt = (ushort *)_view.VRAM;
                byte *  tiles  = (byte *)_view.PatternCache;
                DrawNameTable(_view.NTA, vramNt, tiles, pal, bmpViewNTA);
                DrawNameTable(_view.NTB, vramNt, tiles, pal, bmpViewNTB);
                DrawNameTable(_view.NTW, vramNt, tiles, pal, bmpViewNTW);
                _view = null;
            }
        }
Ejemplo n.º 2
0
        public unsafe void UpdateValues()
        {
            if (Emu == null)
            {
                return;
            }

            using ((View = Emu.UpdateVDPViewContext()).EnterExit())
            {
                int *pal = (int *)View.ColorCache;
                //for (int i = 0; i < 0x40; i++)
                //	pal[i] |= unchecked((int)0xff000000);
                DrawPalettes(pal);
                DrawTiles();
                ushort *VRAMNT = (ushort *)View.VRAM;
                byte *  tiles  = (byte *)View.PatternCache;
                DrawNameTable(View.NTA, VRAMNT, tiles, pal, bmpViewNTA);
                DrawNameTable(View.NTB, VRAMNT, tiles, pal, bmpViewNTB);
                DrawNameTable(View.NTW, VRAMNT, tiles, pal, bmpViewNTW);
                View = null;
            }
        }