You Like My Tutorials? Click The Banner To Keep 'Em Coming!

glGameDeveloper(): The Game Developer's Source for OpenGL Coding
Main Menu
Latest News
Archived News
Tutorials
Links
E-Mail Me

Other
Message Board
My Guestbook

Tutorials -- Basic OpenGL Application
 


How to make a Simple OpenGL Application Page 3 of 3
< Previous Jump to Page: 1 | 2 | 3 Next >

The Windows Code

Ok, on to the fun stuff. This code has lots of wide lines of code that don't work with the layout of this site, so click here to view the source code in a new window. It's very well commented so you shouldn't get too mixed up.

Put all this code into your "main.cpp" file after the line "#include "main.h" we entered earlier. Then click the Run button (the exclaimation point) and hit Ok. If all goes well you should see a window pop up with nothing but black in it. It won't do anything special, all we want is for the black window to appear.

Please don't hesitate to ask right away if you have any questions or comments about this tutorial, or if some reason it won't compile. If there's something wrong or something that's hard to understand I'll fix it ASAP.

How to make a Simple OpenGL Application Page 3 of 3
< Previous Jump to Page: 1 | 2 | 3 Next >

This site best viewed with MS Internet Explorer 5.0 at 16-bit color and at least 800x600.

All Contents of this site are Copyright 1999, 2000 Joe Zimmerman. No part of this site (code, HTML, etc.) may be reproduced without my permission.

Click Here!