View Full Version : implementation of API in openGL/Mesa

sandeep kumar
02-03-2012, 05:34 AM
mesa is a implementation for openGL, but i would like to know much deeper into tht like where exactly the implementation of each API is written ? as per the code of mesa i could able to understand the implementation of it...

and one more ques is where exactly the openGL will run ... either on GPU / CPU and on what basis the performance will vary ....

kindly let me know ...thnx

02-03-2012, 06:46 AM
For Linux

For Windows
It doesn't come with Mesa, but you can download the opengl32.dll.
Also, it is a software rasterizer.

02-03-2012, 07:52 AM
I don't quite understand the question ... What hardware CPU? GPU? do you plan to utilize with linux? This will help decide which case above makes most sense.

In linux if you want:

1. Optimal usage of GPU: Use proprietary binary drivers from NVIDIA or ATI (not open source). These are good typically up to OpenGL 4.2 spec depending on GPU.

2. Slower and partial use of GPU up to OpenGL 2.1: Mesa 3D and Direct Rendering Infrastructure (http://dri.freedesktop.org/wiki/) project tries to make use of the GPU for some limited cards. This is slower than case one but somewhat faster than pure CPU implementation if you have the supported GPU. Nvidia is not on the list of supported cards for instance -- for that there is the nouveau (http://nouveau.freedesktop.org/wiki/MesaDrivers) project.

3. A software CPU rasterizer not requiring a GPU: Mesa (http://www.mesa3d.org/) is essentially a software (CPU) implementation of OpenGL 2.1 API. There is some effort to get GPUs working as stated in case 2 but it is no where as complete and fast as case 1.

I personally have tried Mesa with each new linux upgrade just to see its progress. Then immediately install the proprietary driver because I really want to work in openGL 4.2 and have the faster performance. Don't get me wrong Mesa is pretty good and an impressive valuable project for the open source community. It really depends on what is required of your openGL expectations.

sandeep kumar
02-06-2012, 02:01 AM
thnx marshats

but can we able to see the function defination for API i.e..,like vertex2d .... in the mesa3d source code?

02-06-2012, 08:35 AM
Yes, mesa source code is completely open to look at. Why haven't you simply downloaded the source code at their website and looked at the code?

Have you clicked on the "Documentation"->"FAQ" link at mesa3d.org (http://www.mesa3d.org/)? It mentions what mesa3d is and is not in detail.

sandeep kumar
02-07-2012, 12:35 AM
yeah i have gone through the link but i am unable to trace the implementation for API in source code...i shall be happy :) if i get some information on finding that...