65.9K
CodeProject is changing. Read more.
Home

A tip on glaux.h Header File & glaux.lib in OpenGL Programming

starIconstarIconstarIconstarIconstarIcon

5.00/5 (6 votes)

Mar 4, 2021

CPOL
viewsIcon

6893

glaux.h header file & glaux.lib can be replaced by freeglut.h & freeglut.lib

A Tip on glaux.h

When I tested some legacy lessons from Nehe's website, I noticed that all these legacy lessons' code projects use glaux.h header.

Also, if you browse Khronos OpenGL® Registry, it tells you that this header file can be replaced by new libraries. So I tried to replace this glaux.h header with freeglut.h header, glaux.lib with freeglut.lib, it turns out that all projects still work well.

Therefore, if you see a legacy OpenGL project still use glaux.h, you could replace it with freeglut library by looking for equivalent function names starting with aux_xxxx by glutxxxx(), but the caveat is that there is no equivalent image processing counterpart in freeglut. you have to find your own favorite image library.

Also you need find the right draw text function in freeglut.

Hope this tip can save some time for you.

Reference

History

  • 4th March, 2021: Initial version