OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Sep 19, 2019 12:42 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Graphics in OS
PostPosted: Wed Feb 13, 2019 3:16 pm 
Offline

Joined: Wed Feb 13, 2019 3:07 pm
Posts: 20
I am developing OS. I've made a bootloader, and simple kernel. How can i achieve graphics like in modern operating system?


Top
 Profile  
 
 Post subject: Re: Graphics in OS
PostPosted: Thu Feb 14, 2019 1:01 am 
Offline
Member
Member

Joined: Wed Oct 26, 2011 12:00 pm
Posts: 186
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.

_________________
Github
Website


Top
 Profile  
 
 Post subject: Re: Graphics in OS
PostPosted: Fri Feb 15, 2019 4:22 am 
Offline
Member
Member
User avatar

Joined: Sun Sep 19, 2010 10:05 pm
Posts: 1065
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: DOSBox Compatibility
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Kazinsal and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group