I was looking for a detailed guide to setting up Gl3w, since there are none anywhere I look!
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First of all, download gl3w at https://github.com/skaslev/gl3w
Then, download Python 3.x:
https://www.python.org/downloads/
Next, run the script. It’ll generate gl3w.c in the source folder, and gl3w.h and glcorearb.h in the include/GL/ folder.
Take the three of them, and either add them directly to your project, or (easier to do the includes), move them into your project’s source files folder, and add the 3 into the project.
In your main source AND in your “gl3w.c” source, you want to change the include to #include “gl3w.h”
Consequently, you’ll have to change gl3w.h’s include to #include “glcorearb.h”
This is because you changed their folder setups, the compiler will throw “can’t find xxx” otherwise.
And don’t forget to link to “opengl32”, simply add the library as such. In Code::Blocks, you select the root project, go into “build options”, select the root project once again (above Debug and Release), go to Linker Settings, Add, and type just “opengl2” without the quotes.
That’s all!