Game Programming and Development Tools

Setting up OpenGL – garand

garand

Member

Posts: 22
From: Michigan, USA
Registered: 06-19-2006
I am trying to setup Visual C++ Express Edition 2005 with OpenGL and I am having trouble doing so. I downloaded, installed, and set up the Platform SDK. I need to know what to do so that I can program using OpenGL.

Thanks,

garand

------------------
I see dead pixels...

Briant

Member

Posts: 742
From: Stony Plain, Alberta, Canada
Registered: 01-20-2001
All you need to do is:


#include "gl\gl.h"
#include "gl\glu.h"
#include "gl\glaux.h" // only needed if using auxiliary stuff

See tutorial #1 and #2 at http://nehe.gamedev.net for more info about setup and rendering a simply shape, or just ask here.

Brian

------------------
Brian

"OOP programmers have a lot of class"

Check out this webhost! Fantastic prices, features and support!

garand

Member

Posts: 22
From: Michigan, USA
Registered: 06-19-2006
Ok, thanks Ill try that.

------------------
I see dead pixels...

spade89

Member

Posts: 561
From: houston,tx
Registered: 11-28-2006
what ide are you using?? if you are using visual c++ then it's all easy(or so i heard) i still can't get glaux to run on my borland c++ 5 ide i have had LLLLLOTS of experience in setting up opengl i started a thread here at ccn for someone to help me setting up but i only got 2 replies.
EDIT:
by the way if you can don't use either glaux or nehe's tutorials the are nice and great and all but i heard the have many known memory leaks.

i'd recommend trying www.spacesimulator.net or googling for some ebooks.
------------------
John 14:6

Jesus answered, "I am the way and the truth and the life. No one comes to the Father except through me.

[This message has been edited by spade89 (edited March 27, 2007).]

jestermax

Member

Posts: 1064
From: Ontario, Canada
Registered: 06-21-2006
one of the GLU lib memory leaks happens when you 'X' out the window. you have to close the program using in-program input

------------------
Visit my portfolio (and check out my projects):
http://Jestermax.googlepages.com/