Active3 years, 3 months ago
Behrouz.MThe following C project contains the C source code and C examples used for opengl example using 3d objects and lights. It is an example of 3D Objects w/Lights and much more, such as Camera Rotation, Light Moving, Keyboard Arrows to move about the screen and etc.
- The home page of the OpenGL SuperBible. Learn about OpenGL, download example code and read the authors' blog.
- OpenGL-tutorialv001521 The OpenGL 2.1 port; Alternatively, you have access to the latest version of the code on the Git repository: Checkout the source on GitHub (The nodes corresponding to the above zips have tags OpenGL-tutorial001533 and OpenGL-tutorial001521 respectively) All the source code on this site (except third-party libraries.
1,51444 gold badges2929 silver badges5252 bronze badges
closed as off-topic by genpfault, Kromster, Taryn♦Jul 10 '14 at 22:49
This question appears to be off-topic. The users who voted to close gave this specific reason:
- 'Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.' – genpfault, Kromster, Taryn
2 Answers
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'.
![Code Code](/uploads/1/3/3/2/133279827/932138203.jpg)
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.
Calvin1602Calvin16028,18611 gold badge3434 silver badges5353 bronze badges
The SGI reference implementation of OpenGL can be downloaded from this ftp site:ftp://oss.sgi.com/projects/ogl-sample/download
user3813751user3813751