Ok, I can't really get to use OpenGL in NetBeans.
So I have Cygwin installed and the glut.h file in this path:
C:\cygwin64\usr\include\w32api\GL\glut.h
This is the default path where gl.h was, I only added glut.h ...
But when I include it NetBeans say: There are unresolved includes inside GL/glut.h as a warning, and when i run the glutInit(NULL, NULL); function it returns this error:
/cygdrive/c/Users/***/Documents/NetBeansProjects/***/main.cpp:8: undefined reference to `glutInit'
/cygdrive/c/Users/***/Documents/NetBeansProjects/***/main.cpp:8:(.text+0x18): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `glutInit'
Anyone know a solution or a complete tutorial on how to add the entire openGL to NetBeans?