OSDev.org
https://forum.osdev.org/

Graphics in OS
https://forum.osdev.org/viewtopic.php?f=1&t=33503
Page 1 of 1

Author:  Shvets04 [ Wed Feb 13, 2019 3:16 pm ]
Post subject:  Graphics in OS

I am developing OS. I've made a bootloader, and simple kernel. How can i achieve graphics like in modern operating system?

Author:  MollenOS [ Thu Feb 14, 2019 1:01 am ]
Post subject:  Re: Graphics in OS

To put it in simple terms, based on how you formatted your questions; You won't.

To achieve graphics like in modern operating systems without spending several years developing graphic drivers, and even should you do that, then the driver you've developed would be obsolete before you finished.

Now, if you simply mean high resolution graphics, I suggest you look into VBE/VESA where you can switch modes (during boot is simplest, as you can use bios interrupts) and get a handle to a framebuffer where you can draw pixels. There are plenty of resources online, on this forum and search on our osdev wiki.

Author:  SpyderTL [ Fri Feb 15, 2019 4:22 am ]
Post subject:  Re: Graphics in OS

If you are still running in 16-bit Real Mode, then you can use the BIOS to switch video modes to a specific graphics mode (mode 13h), or you can define your own. (i.e. 1024x768x32)

However, as long as you are in 16-bit Real Mode, you are going to be extremely limited in what you can do once you are in graphics mode. So, you may want to consider switching to a specific graphics mode, and then switching to 32-bit protected mode.

You can find more information on the wiki pages: How do I set a graphics mode

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/