opengl in visual c++.net 2003 standard edition

Hello Everyone

I just got started programming in visual c++.net and I want to Start writing graphical applications

I just wanted to know can visual c++.net be used to write opengl apps and how do you setup opengl ??

what type of project should i setup
console app or win32 ??

How do you add opengl libraries to My code ??

what needs to be done before i can start typing opengl code into my I.d.E??

What headers should i use?? for example

#include < > <-------- what headers go here??

int main {

           &lt;----------- what code goes here??

What code should i use ??

I need something that will compile and link and build and not give me an error

return 0;
}

to whoever responds thank you

Hello,

Personally, I’d go for GLUT. It’s so easy to use, it’s simply ridiculous. What’s more, all the examples from The Red Book–which, by the way, is required reading–use GLUT; so it’s a pretty good match.

You can find everything you need to get started with GLUT here:
http://www.xmission.com/~nate/glut.html

Here’s an online version of The Red Book:
http://fly.cc.fer.hr/~unreal/theredbook/

I hope this helps.

edit:

The online version of The Red Book is quite old, and uses the antiquated AUX API. While you can convert the examples easily enough, here’s an alternative example package:
http://www.sgi.com/products/software/opengl/examples/redbook/

edit2:

Note that there’s a README file included in the GLUT distribution that tells you where to put all the files.

OpenGLUT is an alternative GLUT implementation.
http://openglut.sourceforge.net/

One advantage with OpenGLUT is that it is being actively maintained and developed.

Pre-compiled packages are available for Dev-C++ and VC++ on Win32.

Regards,

Nigel Stewart

Hi Nigel,

I just wanted to let you know how smoothly the transition from GLUT to OpenGLUT went. I was able to drop it into some projects by changing only a single header; everything worked without a single line of code changed. And while I haven’t had a chance to peruse the documentation, it looks to be quite extensive indeed.

My only regret is that I couldn’t stop playing with that infernal glutWireSierpinskiSponge!

Thanks, this is very nice work.