So you were using GLU before?

Back to glh main page

So you were using GLU and want to get rid of it. You want glhlib to replace it.
This is possible for 99% of the projects out there.
Keep in mind that certain things are not in glhlib : NURBS, tesselator

I'm going to list the most used GLU function down to the least.

gluPerspective ===> glhPerspectivef
gluLookAt ===> glhLookAtf
gluOrtho2D ===> This is useless. It just calls glOrtho(..., 0.0, 1.0)
gluScaleImage ===> glhScaleImage_asm386 (an optimized version of gluScaleImage using assembly. It will run 50 to 150 times faster so give it a try)
gluBuild2DMipmaps ===> glhBuild2DMipmaps (I suggest you use glGenerateMipmapsEXT or glTexParameteri(GL_TEXTURE_2D, GL_GENERATE_MIPMAP, TRUE))
gluProject ===> glhProjectf, glhProjectf_3, glhProjectf_SSE_Aligned_2 and others
gluUnProject ===> glhUnProjectf, glhUnProjectf_3, glhUnProjectf_SSE_Aligned_2 and others (Use glhInvertMatrixf2 or glhQuickInvertMatrixf2 as well to invert your matrix)
gluGetString ===> glhGetString


This page is glu_to_glh.html
Copyright (C) 2007 Vrej M. All Rights Reserved.