Click here to Skip to main content
15,881,803 members
Articles / Desktop Programming / MFC
Tip/Trick

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

Rate me:
Please Sign up or sign in to vote.
5.00/5 (6 votes)
4 Mar 2021CPOL 6.4K   3  
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)


Written By
Software Developer
United States United States
turns good thoughts into actions...


Comments and Discussions

 
-- There are no messages in this forum --