Sign in to follow this  
crazyoldman

Open GL

Recommended Posts

Yes, it can be used in Visual Studio.

The beauty of OpenGL is that it is platform-independent, whereas DirectX is Windows-only. However, it is a graphics only library, whereas DirectX can do sound, input, etc. in addition to graphics.

Share this post


Link to post
Share on other sites
Quote:
Original post by crazyoldman
Thanks for the speedy Reply, It was wity and informative.

Do you know where i can get Open GL for Visual Studios 2005?

Thanks,
Crazy

I think Opengl library is come with all OS ( it is located in C:\WINDOWS\system32 in my WinXP, named opengl32.dll) . See this for more.
I think it's something like this (just ignore the glut32.lib & glui32.lib & and their header files) to get started.

Share this post


Link to post
Share on other sites
Most likely, those files are already on your computer.
These sites will get you started:

http://nehe.gamedev.net/
http://www.nullterminator.net/opengl32.html

Share this post


Link to post
Share on other sites
I am trying to use Open Gl and i get this error saying that it cant include
windows.h, gl.h .... because it cannot find the directory or file.


#include <windows.h> // Header File For Windows
#include <gl\gl.h> // Header File For The OpenGL32 Library
#include <gl\glu.h> // Header File For The GLu32 Library
#include <gl\glaux.h> // Header File For The Glaux Library


Do i need to add these files into my project some where?

Thanks.

I am using VC++ 2005

Share this post


Link to post
Share on other sites
Did you install the platform SDK? You need to follow the instructions here.

Also, glaux is deprecated and you will probably struggle to find glaux.h anywhere. I recommend using a different library instead. Which one depends on what you are using glaux for.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this