rlk
05-08-2007, 09:24 AM
This is a little frivolous, but what the hell. I was curious to know the actual number of unique OpenGL API entry points I had referenced in a particular project, including extensions. Yes, this is useless information. Here's a command line I worked out. This works under Linux and OSX, and probably Cygwin.
grep -ho '\<gl[A-Z]\w*\>' *.cpp | sort | uniq | wc -lThere were 89 in my project. Removing the wc bit lists them.
grep -ho '\<gl[A-Z]\w*\>' *.cpp | sort | uniq | wc -lThere were 89 in my project. Removing the wc bit lists them.