Advertisement
obernardovieira

Start Unsing OpenGL in VS2012

Mar 12th, 2014
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. " This is how you correctly link in visual studio 12:
  2.  
  3. The first thing you create is a folder somewhere called "dev" (or really any name). In that folder you extract "freeglut"(only if you want a windowing toolkit) and "glew" (the openGL extension wrangler, this loads the gl functions).
  4.  
  5. After that you open a new project in VS12 and rightclick on the project->properties Under VC++ properties click on "Include directories" and add the path to your dev/glew/include folder and your dev/freeglut/include. Make sure your path is 100% correct! Then click on "Library directories" and add these 2 paths: dev/glew/lib and dev/freeglut/lib.
  6.  
  7. Then go to C/C++ and click on additional include directories and add these 2 paths:dev/glew/include and dev/freeglut/include. Then go to linker and add the lib folders in "additional library directories" this is a tricky one because you need to link to the correct version: \dev\glew\lib\Release\Win32
  8.  
  9. Then try your code again, if that doesn't work, try source code from the internet. Also if you copied the folders without changing there name you should include "GL/glew.h" These steps are required for each project that uses openGL. "
  10.  
  11. Anton D in Stack Overflow
  12.  
  13. http://stackoverflow.com/questions/18162847/opengl-functions-are-undefined-in-vs2012-express
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement