PDA

View Full Version : how it is implemented?



Giancarlo Amati
09-14-2006, 07:17 AM
Hi everybody,

I would like to ask you if there is any kind of documents which explains how an openGL function has been implemented. I wuold like to understand the source code for glRotate, as well as glVertex3f....and so on. Is that possibile to obtain these information?

k_szczech
09-14-2006, 08:11 AM
There are a lot of implementations. Actually, each driver update is a chance that some OpenGL's function implementation will change.
The only thing that doesn't change (not that often) is the specification. If you read it carefully then you have all information you need. Then it's just a question of putting it all together.

Overmind
09-14-2006, 09:03 AM
You can of course look at the source code of mesa. That's one possibility how to implement OpenGL using only the CPU.

But many functions of OpenGL are hardware accelerated, so the implementation is really a combination of software and hardware. I don't think the details are available.