Open GL

Started by
5 comments, last by bakery2k1 17 years, 6 months ago
Hello, Can Open GL be used in Visual Studios C++? And What is so good about Open GL? Why would i want to use it? Thanks, Crazy
Advertisement
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.
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

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.

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
We''re sorry, but you don''t have the clearance to read this post. Please exit your browser at this time. (Code 23)
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
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.

This topic is closed to new replies.

Advertisement