Install gl3w
Article Directory
Download gl3w
Download portal
Open MinGW with super administrator privileges
After decompressing locally, run the following command:
$ cd gl3w-master
$ python gl3w_gen.py //会自动下载Header files和Source files
$ cmake -G "Unix Makefiles" -f CMakeLists.txt
$ make && make install
默认安装路径:C:\Program Files (x86)\gl3w
After the installation is complete, you can see the following files:
how to use
Copy the following files to the project, which is to be used directly as a project file
- gl3w.c(Default path: C:\Program Files (x86)\gl3w\share\gl3w\gl3w.c)
- gl3w.h and glcorearb.h(Default path: C:\Program Files (x86)\gl3w\include\gl3w\GL*.h)
Modify the header file reference in the file
gl3w.c
修改#include <GL/gl3w.h> 为 #include "gl3w.h"
gl3w.h
修改#include <GL/glcorearb.h> 为 #include "glcorearb.h"
Finally, it can be used normally!
Those who like it, remember to use one button for three consecutive games ! !