OS made with OpenGL?

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
fbelzile
Posts: 18
Joined: Tue Dec 28, 2004 12:00 am

OS made with OpenGL?

Post by fbelzile »

Hi, I'm new to the subject of OS development and these forums.

I recently got this bootstrap loader which loads a .bin file (which is just a 16-bit exe renamed with the bin extention) and I was wondering if I could make that exe with OpenGL. Mabey even doing a GUI with OpenGL

I know I'll need drivers, right?

All I wamt to know is if its possible, and if so how?

I know there is another post about implementing OpenGL but thats not what I want, I want to write the kernel with OpenGL!

Thanks for ANY help.
Legend
Member
Member
Posts: 195
Joined: Tue Nov 02, 2004 12:00 am
Contact:

Re: OS made with OpenGL?

Post by Legend »

I think you are missing the point a bit here, of course you can implement OpenGL on your operating system, but there is not too much point on trying to write it in opengl, as opengl is only an API!
*post*
fbelzile
Posts: 18
Joined: Tue Dec 28, 2004 12:00 am

Re: OS made with OpenGL?

Post by fbelzile »

Could I write the OpenGL program, compile it as an exe, disassemble it to asm code, assemble it with nasm as a bin file, and use it in my small OS?
Legend
Member
Member
Posts: 195
Joined: Tue Nov 02, 2004 12:00 am
Contact:

Re: OS made with OpenGL?

Post by Legend »

With .exe I guess you mean that you compile and link a windows program. You can use the .exe directly, in that case it doesn't matter that much, as there would be a greater task: Implement all system calls that the application uses.

However, there is an issue when trying to convert it to a .bin file - the .exe will depend on some dlls, which would make this process at least complicated.

I guess however that you don't have any real program loading yet if you ask this question - solve this problem before you address OpenGL. OpenGL needs some framework stuff.

And then you'll have to implement OpenGL again for your OS, as I said already, perhaps as a static lib if you want, and write your own version of the platform dependant extensions. And then you can link your application directly to whatever format you use.
*post*
fbelzile
Posts: 18
Joined: Tue Dec 28, 2004 12:00 am

Re: OS made with OpenGL?

Post by fbelzile »

Thanks for your help Legend!! :)
Post Reply