If you want to use this code in your own projects thats fine... but let me give you a alittle bit of help.
In order for you to just copy paste my code and hit run lets cover what language its in.
Just because it has OpenGL in the repo title doesnt mean this code is for you. All this code was created in OpenTK (a OpenGL library for C#). That being said, you must have the OpenTK.dll inside of visual studio for it to compile.