Since I am using Microsoft Visual C++ during programming, so I will
use it as an example.
1.
Start --> Programs --> Microsoft Visual Studio 6.0 -->
Microsoft Visual C++ 6.0.
2. File
--> New Then, a 'New' window
appears.
3. From
'Projects' tab, choose 'Win32 Console
Application'.
4. At
the 'Project name' textbox, assign a name to your project by
filling in the textbox with your project name.
5. At
'Location', click the Browse button. Then, you can
see a pop-up window named 'Choose Directory'.
6.
Choose the folder where you want to store your work. After you
finish, click 'OK' button.
7.
Then, click other 'OK' button at 'New' window.
8.
After that, you can see a window named 'Win32 Console Application
- Step 1 of 1'.
9. Make
sure that the first radio box is checked. Then, Click
'Finish' button.
10.
Then, a new window will appear. Its name is 'New Project
Information'. Click
'OK'.
11. At
the menu bar, go to 'Project' --> 'Settings…'. Now,
you can see a 'Project Settings' window.
12. Go
to 'C/C++' tab.
13.
Check the 'Generate browse info' checkbox.
14.
Next, go to 'Link' tab.
15. At
the 'Object/library modules:' textbox, add
'glut32.lib' word as the first item in the list. Click
'OK'.
16. At
the menu bar, go to 'File' --> 'New'. Now, you can see
'New' window appear.
17. At
the 'Files' tab, click 'C++ Source File'.
18.
Named the source file at 'File name' textbox.
19.
Click 'OK'.
20.
Now, you are ready to write your own graphics program using
OpenGL.
|