flat assembler
Message board for the users of flat assembler.

Index > Heap > Mesa, Open Source OpenGL

Author
Thread Post new topic Reply to topic
majidkamali1370



Joined: 31 Oct 2010
Posts: 50
Location: Iran
majidkamali1370
Hi.
I have two little questions about Mesa (and OpenGL).
1. Should I use Mesa or OpenGL for building GUI of my own OS?
If yes, can I use it in the same manner in other OSes like windows or need some extra low level code?
2. I just downloaded Mesa. please tell me where is the file that draws pixel in low level assembly code. I just want the assembly code that draws pixel on the screen. I can't find that.
Thanks in advance Smile
Post 16 Jan 2012, 11:37
View user's profile Send private message Send e-mail Yahoo Messenger ICQ Number Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17269
Location: In your JS exploiting you and your system
revolution
1. You could, I suppose, but as to whether you should we can't answer that for you. Your OS is entirely unknown to us and we don't know what you are doing.
2. IDK about Mesa, but if it is like OpenGL then it will be a high level graphics engine and won't have any low level code for drawing. It would use the OS drivers to put data onto the screen.
Post 16 Jan 2012, 12:05
View user's profile Send private message Visit poster's website Reply with quote
majidkamali1370



Joined: 31 Oct 2010
Posts: 50
Location: Iran
majidkamali1370
What should I tell you about my OS, for answering first question?
wikipedia says that it is written in C/C++/Assembly:
http://en.wikipedia.org/wiki/Mesa_%28computer_graphics%29
Post 16 Jan 2012, 15:55
View user's profile Send private message Send e-mail Yahoo Messenger ICQ Number Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17269
Location: In your JS exploiting you and your system
revolution
majidkamali1370 wrote:
What should I tell you about my OS, for answering first question?
Nothing. It is a design decision that you need to make yourself.
majidkamali1370 wrote:
wikipedia says that it is written in C/C++/Assembly:
http://en.wikipedia.org/wiki/Mesa_%28computer_graphics%29
So then there is no low level assembly code that draws pixels. It will most likely use the OS drivers to do the low level work.
Post 16 Jan 2012, 16:08
View user's profile Send private message Visit poster's website Reply with quote
majidkamali1370



Joined: 31 Oct 2010
Posts: 50
Location: Iran
majidkamali1370
So, how this and OpenGL are crossplatform? If it uses OS drivers to draw pixels, it become platform dependent, doesn't it?
Post 16 Jan 2012, 16:11
View user's profile Send private message Send e-mail Yahoo Messenger ICQ Number Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17269
Location: In your JS exploiting you and your system
revolution
majidkamali1370 wrote:
So, how this and OpenGL are crossplatform? If it uses OS drivers to draw pixels, it become platform dependent, doesn't it?
Well the drivers will be platform dependant. That is the purpose of the drivers, to interface directly to the hardware. But the interface to the drivers need no be platform dependant.
Post 16 Jan 2012, 16:18
View user's profile Send private message Visit poster's website Reply with quote
majidkamali1370



Joined: 31 Oct 2010
Posts: 50
Location: Iran
majidkamali1370
So, I need to create graphic driver for my OS to gain GUI feature, don't I?
How to do that? Very Happy
Thanks Smile
Post 16 Jan 2012, 18:22
View user's profile Send private message Send e-mail Yahoo Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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 vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.