OpenGL Resources

Updated on Dec 23  2015


Deborah R. Fowler

Using OpenGL in MinGW with Freeglut

Posted Oct 7  2015
Updated Oct 8  2015

Currently in Monty we do not have MinGW set up on Windows, however it is simple to install on your home computer.

If you do not have freeglut already installed:

  • Get file from
  • Extract the files where you will see three folders: lib, include and bin
  • Put the include and lib folders directly into your MinGW folder on C:
    • lib files: C:\MinGW\freeglut\lib
    • include files: C:\MinGW\freeglut\include
    • dll file: C:\Windows\SysWOW64

Use the cmd window with the appropriate flags:
ie. g++ -o test OpenGL_Step1_Window.cpp -I"C:\MinGW\freeglut\include" -L"C:\MinGW\freeglut\lib" -lfreeglut -lopengl32

then type test.exe to run the program

Alternatively you could use a make file.

  If you would like a sample test file and make file click here.