Right. I´m not the best at this sort of thing but the way I di it works.
First get the glfw.h header file from the GL folder in the include folder in the download of glfw. Add this file to a folder called "GL" Visual Studio´s include folder (C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include). If it doesn´t exist create it. Now add the lib file included with this post to the lib directly in VS (C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib). Or you could make it using the makefile. I think it´s suposed to be included with glfw but I never found it.
Ok. Now with that done open or create a DGDK project and go to project->Project Name Propeties. Go to linker->entrance and add "glfw.lib" to aditional dependeices. Now this is the skeleton of a glfw DGDK program:
#include <DarkSDK.h>
#include <GL/glfw.h>
void DarkSDK( void )
{
glfwInit();//Start the pad framework
while (!g_iDarkGameSDKQuit)
{
//dbCLS();
if (dbEscapeKey())
return;
}
glfwTerminate();//End the controller framework
}
I use !g_iDarkGameSDKQuit instead of LoopSDK so that it doesn´t exit instantly and runs glfwTerminate(); first.
If that doen´t work then your have to add OPENGL32.LIB glut32.lib GLU32.LIB to the propities and VS´s lib folder and gl.h glu.h glut.h to the "GL" folder in VS´ include folder. I don´t know why i hadto do that. I always thought opengl was included with VS anyway but hey if it works. That should be all. Sorry if I sounded patronising.
My signature has been erased by me because it's LARGE.
Thank you for the votez!1!