Example #1
0
        protected override void BeforeRun()
        {
            Level_1();
            Level_2();
            Level_3();
            screen = new VGAScreen();

            //Level_4();
        }
Example #2
0
        public static void Init()
        {
            var screen = new VGAScreen();
            screen.SetGraphicsMode(VGAScreen.ScreenSize.Size320x200, VGAScreen.ColorDepth.BitDepth8);
            screen.Clear(0);

            SetPixel(100, 100, 255);
            ReDraw(screen);
        }
Example #3
0
        public static void Init()
        {
            var screen = new VGAScreen();

            screen.SetGraphicsMode(VGAScreen.ScreenSize.Size320x200, VGAScreen.ColorDepth.BitDepth8);
            //screen.Clear(0);

            SetPixel(100, 100, 255);
            ReDraw(screen);
            DrawFilledRectangle(0, 0, 1320, 200, 10);
            DrawFilledRectangle(0, 175, 320, 25, 60);
        }
Example #4
0
        private static void ReDraw(VGAScreen screen)
        {
            // VScreen.Clear(0);

            int c = 0;

            for (int y = 0; y < 200; y++) {
                for (int x = 0; x < 320; x++) {
                    uint cl = screen.GetPixel320x200x8((uint)x, (uint)y);
                    if (cl != (uint)SBuffer[c]) {
                        screen.SetPixel320x200x8((uint)x, (uint)y, SBuffer[c]);
                    }
                    c++;
                }
            }
            for (int i = 0; i < 64000; i++) {
                SBuffer[i] = 0;
            }
        }
Example #5
0
        public static void Init()
        {
            var screen = new VGAScreen();

            screen.SetGraphicsMode(VGAScreen.ScreenSize.Size320x200, VGAScreen.ColorDepth.BitDepth8);
            screen.Clear(0);

            SetPixel(100, 100, 255);
            //ReDraw(screen);
            m.Initialize(320, 200);
            screen.SetPixel((uint)m.X, (uint)m.Y, 40);
            screen.SetPixel((uint)m.X + 1, (uint)m.Y, 40);
            screen.SetPixel((uint)m.X + 2, (uint)m.Y, 40);
            screen.SetPixel((uint)m.X, (uint)m.Y + 1, 40);
            screen.SetPixel((uint)m.X, (uint)m.Y + 2, 40);
            screen.SetPixel((uint)m.X + 1, (uint)m.Y + 1, 40);
            screen.SetPixel((uint)m.X + 2, (uint)m.Y + 2, 40);
            screen.SetPixel((uint)m.X + 3, (uint)m.Y + 3, 40);
            //Screen.DrawFilledRectangle(0, 0, 320, 25, 50);
        }
Example #6
0
 public DisplayDriver()
 {
     screen = new VGAScreen();
 }