public static void InitGUI_1024x768() { VMWareSVGAII driver = new VMWareSVGAII(); driver.SetMode(1024, 768); driver.Clear(0x16711935); MouseDriver mouseDriver = new MouseDriver(1024, 768); bool OK = true; while (OK) { mouseDriver.Draw(driver); driver.Update(0, 0, 1024, 768); } }
public static void InitGUI_800x600() { VMWareSVGAII driver = new VMWareSVGAII(); driver.SetMode(800, 600); driver.Clear(0x16711935); MouseDriver mouseDriver = new MouseDriver(800, 600); bool OK = true; while (OK) { mouseDriver.Draw(driver); driver.Update(0, 0, 800, 600); } }
public static void ASUSEeePC1001PX_OEM() // It's recommended that this code be deleted in outside projects as it is not wanted. { Console.WriteLine("Using ASUS EeePC 1001PX Resolution Mode"); VMWareSVGAII driver = new VMWareSVGAII(); driver.SetMode(1024, 600); driver.Clear(0x16711935); MouseDriver mouseDriver = new MouseDriver(1024, 600); bool OK = true; while (OK) { mouseDriver.Draw(driver); driver.Update(0, 0, 1024, 600); } }
public static void Init() { // Initializes the GUI ColorConsole.WriteLine(ConsoleColor.White, "=> Loading driver..."); driver = new VMWareSVGAII(); driver.SetMode(Width, Height); driver.Clear(0x0); deltaT = RTC.Second; // And now the mouse ColorConsole.WriteLine(ConsoleColor.White, "=> Loading mouse..."); m = new Mouse(Width, Height); DrawComponents(); // Draws a simple mouse, rectangle and handles events }
public Graphics() { pallete[0] = 0x000000; // Black pallete[1] = 0x000080; // Darkblue pallete[2] = 0x008000; // DarkGreen pallete[3] = 0x008080; // DarkCyan pallete[4] = 0x800000; // DarkRed pallete[5] = 0x800080; // DarkMagenta pallete[6] = 0x808000; // DarkYellow pallete[7] = 0xC0C0C0; // Gray pallete[8] = 0x808080; // DarkGray pallete[9] = 0x5555FF; // Blue pallete[10] = 0x55FF55; // Green pallete[11] = 0x00FFFF; // Cyan pallete[12] = 0xFF5555; // Red pallete[13] = 0xFF00FF; // Magenta pallete[14] = 0xFFFF55; // Yellow pallete[15] = 0xFFFFFF; //White font = Read_font(); svga = new VMWareSVGAII(); svga.SetMode(800, 600); svga.Clear(0); }
public static void clear(color par1) { svga.Clear(par1.touint()); }
public void Clear() { svga.Clear(0x000000); svga.Update(0, 0, 800, 600); }