Graphics in OS

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Shvets04
Member
Member
Posts: 28
Joined: Wed Feb 13, 2019 3:07 pm

Graphics in OS

Post by Shvets04 »

I am developing OS. I've made a bootloader, and simple kernel. How can i achieve graphics like in modern operating system?
MollenOS
Member
Member
Posts: 202
Joined: Wed Oct 26, 2011 12:00 pm

Re: Graphics in OS

Post by MollenOS »

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.
User avatar
SpyderTL
Member
Member
Posts: 1074
Joined: Sun Sep 19, 2010 10:05 pm

Re: Graphics in OS

Post by SpyderTL »

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
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott
Post Reply