OpenGL binary files for Visual C++
Posted: Wed Dec 10, 2008 6:55 pm
Hi guys, I would like to know where I can download the OpenGL binary files and includes for Visual C++ 2008 or 2005. Please post the link here.
The Next Generation of 2D Roleplaying Games
http://elysianshadows.com/phpBB3/
meaning? like the lib and dll files? you still need the source files to compile program using openGL.Fear wrote:Hi guys, I would like to know where I can download the OpenGL binary files and includes for Visual C++ 2008 or 2005. Please post the link here.
I already have installed DirectX SDK November 2008 and configured the project but there isn't any OpenGL files here. In whitch folder you found those files?sparda wrote:If you'd like the latest OpenGL libraries for vs2008 (includes, libs, dlls), then download the DirectX SDK November 2008, it comes with opengl stuff as well by default. Here: http://www.microsoft.com/downloads/deta ... layLang=en
Its a big download though, so watch out. Remember to configure your project options in VS to include the necessary paths.
I will try it out. ThanksM_D_K wrote:Here at the bottom but the stuff is like 3 years out of date :/
I am downloading it now. Thanksavansc wrote:meaning? like the lib and dll files? you still need the source files to compile program using openGL.Fear wrote:Hi guys, I would like to know where I can download the OpenGL binary files and includes for Visual C++ 2008 or 2005. Please post the link here.
http://www.xmission.com/~nate/glut.html
Code: Select all
#include <windows.h>
#define WIN32_LEAN_AND_MEAN // This is optional, but I like it as it leaves out a lot of win32's bloat.
#include <gl/gl.h>
#include <gl/glu.h>
I will try it out and than I thank yousparda wrote:Fear, its all in there (Direct X), as I said. You need to include the path so that VS 2008 can see the include files, and the lib files!
Do this: Open up VS 2008, then go to:
tools->options
Then scroll down to "projects and solutions" and click on " VC++ Directories."
You should see a "new folder" icon to your right, click it once then find the path where you installed the direct sdk by clicking "browse", then inside select first the "Include" folder.
Next, click on the "new folder" icon again, and then "browse." Find the "Lib" folder within the November 2008 DirectX sdk installation folder, and select the "Lib" folder.
Thats it, you're set after that. Start a new empty project, and make sure you include <windows.h> BEFORE ANYTHING. You includes should be like this:Code: Select all
#include <windows.h> #define WIN32_LEAN_AND_MEAN // This is optional, but I like it as it leaves out a lot of win32's bloat. #include <gl/gl.h> #include <gl/glu.h>
DON'T FORGET TO LINK WITH THE PROPER LIBRARIES!!! I can only think of these off the top of my mind, but google the rest:
opengl32.lib glu32.lib glaux.lib gL.h glaux.h glu.h glu32.dll opengl32.dll
The way the you link them is by going to (in visual studio 2008): WITH AN ACTIVE OPENGL PROJECT, go to: Project-> properties, then click on the linker options. Then click on "input", and where it says: "Additional Dependencies" paste all of the libraries that I posted above.
Now you are ready to build you're opengl32 applications! Thank me later