Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / desktop / MFC

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

5.00/5 (6 votes)
4 Mar 2021CPOL 6.9K  
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

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)