Where can I download Source Code Of "OpenGL" ?
Asked
Active
Viewed 3.1k times
24
-
11OpenGL is a standard API, not a piece of software. You will need to look for the source code of a specific OpenGL implementation. – Tyler McHenry Jul 28 '10 at 12:13
-
5OpenGL itself is just a specification, not an implementation. You are most likely looking for what Eric posted as an answer, the source to a true implementation of the OpenGL spec. – Fosco Jul 28 '10 at 12:15
-
1possible duplicate of [Simple OpenGL implementatione](http://stackoverflow.com/questions/3086901/simple-opengl-implementatione) – Jerry Coffin Jul 28 '10 at 13:48
-
@TylerMcHenry Who implements OpenGL? – Quazi Irfan Jun 27 '15 at 20:05
-
Checkout https://github.com/rswinkle/PortableGL – aztack Sep 06 '22 at 03:50
1 Answers
26
If you want to see how a rasterizer (the thing that displays polygons on the screen) is done in software, follow Eric's suggestion and check out mesa3d or google "rasterizer".
If you want to see how a rasterizer is done on hardware, I'm afraid the only thing you can have access to is a photo of a GPU die.
If you want to see how a 3D engine is done, take a look at Ogre, Irrlicht or any other.
If you want to know what happens under the hood when you call glDrawArray on a geForce, you can't. The drivers are proprietary. They more or less forward the call to the graphic card, but it's such a simplification... for instance, a typical DirectX call takes more than 10000 cpu instructions.

Josh Sanford
- 622
- 5
- 18

Calvin1602
- 9,413
- 2
- 44
- 55